Add missing quotes.
[python.git] / configure
blob27fe217fd1ed1aae7af8cc348a08a7161907d798
1 #! /bin/sh
2 # From configure.in Revision: 77169 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for python 2.7.
6 # Report bugs to <http://bugs.python.org/>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 emulate sh
20 NULLCMD=:
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
24 setopt NO_GLOB_SUBST
25 else
26 case `(set -o) 2>/dev/null` in
27 *posix*) set -o posix ;;
28 esac
35 # PATH needs CR
36 # Avoid depending upon Character Ranges.
37 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40 as_cr_digits='0123456789'
41 as_cr_alnum=$as_cr_Letters$as_cr_digits
43 # The user is always right.
44 if test "${PATH_SEPARATOR+set}" != set; then
45 echo "#! /bin/sh" >conf$$.sh
46 echo "exit 0" >>conf$$.sh
47 chmod +x conf$$.sh
48 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49 PATH_SEPARATOR=';'
50 else
51 PATH_SEPARATOR=:
53 rm -f conf$$.sh
56 # Support unset when possible.
57 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58 as_unset=unset
59 else
60 as_unset=false
64 # IFS
65 # We need space, tab and new line, in precisely that order. Quoting is
66 # there to prevent editors from complaining about space-tab.
67 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
68 # splitting by setting IFS to empty value.)
69 as_nl='
71 IFS=" "" $as_nl"
73 # Find who we are. Look in the path if we contain no directory separator.
74 case $0 in
75 *[\\/]* ) as_myself=$0 ;;
76 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 for as_dir in $PATH
79 IFS=$as_save_IFS
80 test -z "$as_dir" && as_dir=.
81 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
82 done
83 IFS=$as_save_IFS
86 esac
87 # We did not find ourselves, most probably we were run as `sh COMMAND'
88 # in which case we are not to be found in the path.
89 if test "x$as_myself" = x; then
90 as_myself=$0
92 if test ! -f "$as_myself"; then
93 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 { (exit 1); exit 1; }
97 # Work around bugs in pre-3.0 UWIN ksh.
98 for as_var in ENV MAIL MAILPATH
99 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100 done
101 PS1='$ '
102 PS2='> '
103 PS4='+ '
105 # NLS nuisances.
106 for as_var in \
107 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
109 LC_TELEPHONE LC_TIME
111 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112 eval $as_var=C; export $as_var
113 else
114 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
116 done
118 # Required to use basename.
119 if expr a : '\(a\)' >/dev/null 2>&1 &&
120 test "X`expr 00001 : '.*\(...\)'`" = X001; then
121 as_expr=expr
122 else
123 as_expr=false
126 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
127 as_basename=basename
128 else
129 as_basename=false
133 # Name of the executable.
134 as_me=`$as_basename -- "$0" ||
135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136 X"$0" : 'X\(//\)$' \| \
137 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 echo X/"$0" |
139 sed '/^.*\/\([^/][^/]*\)\/*$/{
140 s//\1/
143 /^X\/\(\/\/\)$/{
144 s//\1/
147 /^X\/\(\/\).*/{
148 s//\1/
151 s/.*/./; q'`
153 # CDPATH.
154 $as_unset CDPATH
157 if test "x$CONFIG_SHELL" = x; then
158 if (eval ":") 2>/dev/null; then
159 as_have_required=yes
160 else
161 as_have_required=no
164 if test $as_have_required = yes && (eval ":
165 (as_func_return () {
166 (exit \$1)
168 as_func_success () {
169 as_func_return 0
171 as_func_failure () {
172 as_func_return 1
174 as_func_ret_success () {
175 return 0
177 as_func_ret_failure () {
178 return 1
181 exitcode=0
182 if as_func_success; then
184 else
185 exitcode=1
186 echo as_func_success failed.
189 if as_func_failure; then
190 exitcode=1
191 echo as_func_failure succeeded.
194 if as_func_ret_success; then
196 else
197 exitcode=1
198 echo as_func_ret_success failed.
201 if as_func_ret_failure; then
202 exitcode=1
203 echo as_func_ret_failure succeeded.
206 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
208 else
209 exitcode=1
210 echo positional parameters were not saved.
213 test \$exitcode = 0) || { (exit 1); exit 1; }
216 as_lineno_1=\$LINENO
217 as_lineno_2=\$LINENO
218 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220 ") 2> /dev/null; then
222 else
223 as_candidate_shells=
224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
225 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227 IFS=$as_save_IFS
228 test -z "$as_dir" && as_dir=.
229 case $as_dir in
231 for as_base in sh bash ksh sh5; do
232 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
233 done;;
234 esac
235 done
236 IFS=$as_save_IFS
239 for as_shell in $as_candidate_shells $SHELL; do
240 # Try only shells that exist, to save several forks.
241 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
242 { ("$as_shell") 2> /dev/null <<\_ASEOF
243 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 emulate sh
245 NULLCMD=:
246 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247 # is contrary to our usage. Disable this feature.
248 alias -g '${1+"$@"}'='"$@"'
249 setopt NO_GLOB_SUBST
250 else
251 case `(set -o) 2>/dev/null` in
252 *posix*) set -o posix ;;
253 esac
259 _ASEOF
260 }; then
261 CONFIG_SHELL=$as_shell
262 as_have_required=yes
263 if { "$as_shell" 2> /dev/null <<\_ASEOF
264 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
265 emulate sh
266 NULLCMD=:
267 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268 # is contrary to our usage. Disable this feature.
269 alias -g '${1+"$@"}'='"$@"'
270 setopt NO_GLOB_SUBST
271 else
272 case `(set -o) 2>/dev/null` in
273 *posix*) set -o posix ;;
274 esac
280 (as_func_return () {
281 (exit $1)
283 as_func_success () {
284 as_func_return 0
286 as_func_failure () {
287 as_func_return 1
289 as_func_ret_success () {
290 return 0
292 as_func_ret_failure () {
293 return 1
296 exitcode=0
297 if as_func_success; then
299 else
300 exitcode=1
301 echo as_func_success failed.
304 if as_func_failure; then
305 exitcode=1
306 echo as_func_failure succeeded.
309 if as_func_ret_success; then
311 else
312 exitcode=1
313 echo as_func_ret_success failed.
316 if as_func_ret_failure; then
317 exitcode=1
318 echo as_func_ret_failure succeeded.
321 if ( set x; as_func_ret_success y && test x = "$1" ); then
323 else
324 exitcode=1
325 echo positional parameters were not saved.
328 test $exitcode = 0) || { (exit 1); exit 1; }
331 as_lineno_1=$LINENO
332 as_lineno_2=$LINENO
333 test "x$as_lineno_1" != "x$as_lineno_2" &&
334 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
336 _ASEOF
337 }; then
338 break
343 done
345 if test "x$CONFIG_SHELL" != x; then
346 for as_var in BASH_ENV ENV
347 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
348 done
349 export CONFIG_SHELL
350 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
354 if test $as_have_required = no; then
355 echo This script requires a shell more modern than all the
356 echo shells that I found on your system. Please install a
357 echo modern shell, or manually run the script under such a
358 echo shell if you do have one.
359 { (exit 1); exit 1; }
369 (eval "as_func_return () {
370 (exit \$1)
372 as_func_success () {
373 as_func_return 0
375 as_func_failure () {
376 as_func_return 1
378 as_func_ret_success () {
379 return 0
381 as_func_ret_failure () {
382 return 1
385 exitcode=0
386 if as_func_success; then
388 else
389 exitcode=1
390 echo as_func_success failed.
393 if as_func_failure; then
394 exitcode=1
395 echo as_func_failure succeeded.
398 if as_func_ret_success; then
400 else
401 exitcode=1
402 echo as_func_ret_success failed.
405 if as_func_ret_failure; then
406 exitcode=1
407 echo as_func_ret_failure succeeded.
410 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
412 else
413 exitcode=1
414 echo positional parameters were not saved.
417 test \$exitcode = 0") || {
418 echo No shell found that supports shell functions.
419 echo Please tell autoconf@gnu.org about your system,
420 echo including any error possibly output before this
421 echo message
426 as_lineno_1=$LINENO
427 as_lineno_2=$LINENO
428 test "x$as_lineno_1" != "x$as_lineno_2" &&
429 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
431 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432 # uniformly replaced by the line number. The first 'sed' inserts a
433 # line-number line after each line using $LINENO; the second 'sed'
434 # does the real work. The second script uses 'N' to pair each
435 # line-number line with the line containing $LINENO, and appends
436 # trailing '-' during substitution so that $LINENO is not a special
437 # case at line end.
438 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439 # scripts with optimization help from Paolo Bonzini. Blame Lee
440 # E. McMahon (1931-1989) for sed's syntax. :-)
441 sed -n '
443 /[$]LINENO/=
444 ' <$as_myself |
445 sed '
446 s/[$]LINENO.*/&-/
447 t lineno
449 :lineno
451 :loop
452 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 t loop
454 s/-\n.*//
455 ' >$as_me.lineno &&
456 chmod +x "$as_me.lineno" ||
457 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458 { (exit 1); exit 1; }; }
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
463 . "./$as_me.lineno"
464 # Exit status is that of the last command.
465 exit
469 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 as_dirname=dirname
471 else
472 as_dirname=false
475 ECHO_C= ECHO_N= ECHO_T=
476 case `echo -n x` in
477 -n*)
478 case `echo 'x\c'` in
479 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
480 *) ECHO_C='\c';;
481 esac;;
483 ECHO_N='-n';;
484 esac
486 if expr a : '\(a\)' >/dev/null 2>&1 &&
487 test "X`expr 00001 : '.*\(...\)'`" = X001; then
488 as_expr=expr
489 else
490 as_expr=false
493 rm -f conf$$ conf$$.exe conf$$.file
494 if test -d conf$$.dir; then
495 rm -f conf$$.dir/conf$$.file
496 else
497 rm -f conf$$.dir
498 mkdir conf$$.dir
500 echo >conf$$.file
501 if ln -s conf$$.file conf$$ 2>/dev/null; then
502 as_ln_s='ln -s'
503 # ... but there are two gotchas:
504 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506 # In both cases, we have to default to `cp -p'.
507 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508 as_ln_s='cp -p'
509 elif ln conf$$.file conf$$ 2>/dev/null; then
510 as_ln_s=ln
511 else
512 as_ln_s='cp -p'
514 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
515 rmdir conf$$.dir 2>/dev/null
517 if mkdir -p . 2>/dev/null; then
518 as_mkdir_p=:
519 else
520 test -d ./-p && rmdir ./-p
521 as_mkdir_p=false
524 if test -x / >/dev/null 2>&1; then
525 as_test_x='test -x'
526 else
527 if ls -dL / >/dev/null 2>&1; then
528 as_ls_L_option=L
529 else
530 as_ls_L_option=
532 as_test_x='
533 eval sh -c '\''
534 if test -d "$1"; then
535 test -d "$1/.";
536 else
537 case $1 in
538 -*)set "./$1";;
539 esac;
540 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541 ???[sx]*):;;*)false;;esac;fi
542 '\'' sh
545 as_executable_p=$as_test_x
547 # Sed expression to map a string onto a valid CPP name.
548 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
550 # Sed expression to map a string onto a valid variable name.
551 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555 exec 7<&0 </dev/null 6>&1
557 # Name of the host.
558 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
559 # so uname gets run too.
560 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
563 # Initializations.
565 ac_default_prefix=/usr/local
566 ac_clean_files=
567 ac_config_libobj_dir=.
568 LIBOBJS=
569 cross_compiling=no
570 subdirs=
571 MFLAGS=
572 MAKEFLAGS=
573 SHELL=${CONFIG_SHELL-/bin/sh}
575 # Identity of this package.
576 PACKAGE_NAME='python'
577 PACKAGE_TARNAME='python'
578 PACKAGE_VERSION='2.7'
579 PACKAGE_STRING='python 2.7'
580 PACKAGE_BUGREPORT='http://bugs.python.org/'
582 ac_unique_file="Include/object.h"
583 # Factoring default headers for most tests.
584 ac_includes_default="\
585 #include <stdio.h>
586 #ifdef HAVE_SYS_TYPES_H
587 # include <sys/types.h>
588 #endif
589 #ifdef HAVE_SYS_STAT_H
590 # include <sys/stat.h>
591 #endif
592 #ifdef STDC_HEADERS
593 # include <stdlib.h>
594 # include <stddef.h>
595 #else
596 # ifdef HAVE_STDLIB_H
597 # include <stdlib.h>
598 # endif
599 #endif
600 #ifdef HAVE_STRING_H
601 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
602 # include <memory.h>
603 # endif
604 # include <string.h>
605 #endif
606 #ifdef HAVE_STRINGS_H
607 # include <strings.h>
608 #endif
609 #ifdef HAVE_INTTYPES_H
610 # include <inttypes.h>
611 #endif
612 #ifdef HAVE_STDINT_H
613 # include <stdint.h>
614 #endif
615 #ifdef HAVE_UNISTD_H
616 # include <unistd.h>
617 #endif"
619 ac_subst_vars='SHELL
620 PATH_SEPARATOR
621 PACKAGE_NAME
622 PACKAGE_TARNAME
623 PACKAGE_VERSION
624 PACKAGE_STRING
625 PACKAGE_BUGREPORT
626 exec_prefix
627 prefix
628 program_transform_name
629 bindir
630 sbindir
631 libexecdir
632 datarootdir
633 datadir
634 sysconfdir
635 sharedstatedir
636 localstatedir
637 includedir
638 oldincludedir
639 docdir
640 infodir
641 htmldir
642 dvidir
643 pdfdir
644 psdir
645 libdir
646 localedir
647 mandir
648 DEFS
649 ECHO_C
650 ECHO_N
651 ECHO_T
652 LIBS
653 build_alias
654 host_alias
655 target_alias
656 VERSION
657 SOVERSION
658 CONFIG_ARGS
659 UNIVERSALSDK
660 ARCH_RUN_32BIT
661 LIPO_32BIT_FLAGS
662 PYTHONFRAMEWORK
663 PYTHONFRAMEWORKIDENTIFIER
664 PYTHONFRAMEWORKDIR
665 PYTHONFRAMEWORKPREFIX
666 PYTHONFRAMEWORKINSTALLDIR
667 FRAMEWORKINSTALLFIRST
668 FRAMEWORKINSTALLLAST
669 FRAMEWORKALTINSTALLFIRST
670 FRAMEWORKALTINSTALLLAST
671 FRAMEWORKUNIXTOOLSPREFIX
672 MACHDEP
673 SGI_ABI
674 EXTRAPLATDIR
675 EXTRAMACHDEPPATH
676 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
677 EXPORT_MACOSX_DEPLOYMENT_TARGET
679 CFLAGS
680 LDFLAGS
681 CPPFLAGS
682 ac_ct_CC
683 EXEEXT
684 OBJEXT
686 MAINCC
688 GREP
689 EGREP
690 BUILDEXEEXT
691 LIBRARY
692 LDLIBRARY
693 DLLLIBRARY
694 BLDLIBRARY
695 LDLIBRARYDIR
696 INSTSONAME
697 RUNSHARED
698 LINKCC
699 GNULD
700 RANLIB
702 ARFLAGS
703 SVNVERSION
704 INSTALL_PROGRAM
705 INSTALL_SCRIPT
706 INSTALL_DATA
709 BASECFLAGS
710 UNIVERSAL_ARCH_FLAGS
711 OTHER_LIBTOOL_OPT
712 LIBTOOL_CRUFT
714 LDSHARED
715 BLDSHARED
716 CCSHARED
717 LINKFORSHARED
718 CFLAGSFORSHARED
719 SHLIBS
720 USE_SIGNAL_MODULE
721 SIGNAL_OBJS
722 USE_THREAD_MODULE
723 LDLAST
724 THREADOBJ
725 DLINCLDIR
726 DYNLOADFILE
727 MACHDEP_OBJS
728 TRUE
729 LIBOBJS
730 HAVE_GETHOSTBYNAME_R_6_ARG
731 HAVE_GETHOSTBYNAME_R_5_ARG
732 HAVE_GETHOSTBYNAME_R_3_ARG
733 HAVE_GETHOSTBYNAME_R
734 HAVE_GETHOSTBYNAME
735 LIBM
736 LIBC
737 UNICODE_OBJS
738 THREADHEADERS
739 SRCDIRS
740 LTLIBOBJS'
741 ac_subst_files=''
742 ac_precious_vars='build_alias
743 host_alias
744 target_alias
746 CFLAGS
747 LDFLAGS
748 LIBS
749 CPPFLAGS
750 CPP'
753 # Initialize some variables set by options.
754 ac_init_help=
755 ac_init_version=false
756 # The variables have the same names as the options, with
757 # dashes changed to underlines.
758 cache_file=/dev/null
759 exec_prefix=NONE
760 no_create=
761 no_recursion=
762 prefix=NONE
763 program_prefix=NONE
764 program_suffix=NONE
765 program_transform_name=s,x,x,
766 silent=
767 site=
768 srcdir=
769 verbose=
770 x_includes=NONE
771 x_libraries=NONE
773 # Installation directory options.
774 # These are left unexpanded so users can "make install exec_prefix=/foo"
775 # and all the variables that are supposed to be based on exec_prefix
776 # by default will actually change.
777 # Use braces instead of parens because sh, perl, etc. also accept them.
778 # (The list follows the same order as the GNU Coding Standards.)
779 bindir='${exec_prefix}/bin'
780 sbindir='${exec_prefix}/sbin'
781 libexecdir='${exec_prefix}/libexec'
782 datarootdir='${prefix}/share'
783 datadir='${datarootdir}'
784 sysconfdir='${prefix}/etc'
785 sharedstatedir='${prefix}/com'
786 localstatedir='${prefix}/var'
787 includedir='${prefix}/include'
788 oldincludedir='/usr/include'
789 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
790 infodir='${datarootdir}/info'
791 htmldir='${docdir}'
792 dvidir='${docdir}'
793 pdfdir='${docdir}'
794 psdir='${docdir}'
795 libdir='${exec_prefix}/lib'
796 localedir='${datarootdir}/locale'
797 mandir='${datarootdir}/man'
799 ac_prev=
800 ac_dashdash=
801 for ac_option
803 # If the previous option needs an argument, assign it.
804 if test -n "$ac_prev"; then
805 eval $ac_prev=\$ac_option
806 ac_prev=
807 continue
810 case $ac_option in
811 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
812 *) ac_optarg=yes ;;
813 esac
815 # Accept the important Cygnus configure options, so we can diagnose typos.
817 case $ac_dashdash$ac_option in
819 ac_dashdash=yes ;;
821 -bindir | --bindir | --bindi | --bind | --bin | --bi)
822 ac_prev=bindir ;;
823 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
824 bindir=$ac_optarg ;;
826 -build | --build | --buil | --bui | --bu)
827 ac_prev=build_alias ;;
828 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
829 build_alias=$ac_optarg ;;
831 -cache-file | --cache-file | --cache-fil | --cache-fi \
832 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
833 ac_prev=cache_file ;;
834 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
835 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
836 cache_file=$ac_optarg ;;
838 --config-cache | -C)
839 cache_file=config.cache ;;
841 -datadir | --datadir | --datadi | --datad)
842 ac_prev=datadir ;;
843 -datadir=* | --datadir=* | --datadi=* | --datad=*)
844 datadir=$ac_optarg ;;
846 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
847 | --dataroo | --dataro | --datar)
848 ac_prev=datarootdir ;;
849 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
850 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
851 datarootdir=$ac_optarg ;;
853 -disable-* | --disable-*)
854 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
855 # Reject names that are not valid shell variable names.
856 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
857 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
858 { (exit 1); exit 1; }; }
859 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
860 eval enable_$ac_feature=no ;;
862 -docdir | --docdir | --docdi | --doc | --do)
863 ac_prev=docdir ;;
864 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
865 docdir=$ac_optarg ;;
867 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
868 ac_prev=dvidir ;;
869 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
870 dvidir=$ac_optarg ;;
872 -enable-* | --enable-*)
873 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
874 # Reject names that are not valid shell variable names.
875 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
876 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
877 { (exit 1); exit 1; }; }
878 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
879 eval enable_$ac_feature=\$ac_optarg ;;
881 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
882 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
883 | --exec | --exe | --ex)
884 ac_prev=exec_prefix ;;
885 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
886 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
887 | --exec=* | --exe=* | --ex=*)
888 exec_prefix=$ac_optarg ;;
890 -gas | --gas | --ga | --g)
891 # Obsolete; use --with-gas.
892 with_gas=yes ;;
894 -help | --help | --hel | --he | -h)
895 ac_init_help=long ;;
896 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
897 ac_init_help=recursive ;;
898 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
899 ac_init_help=short ;;
901 -host | --host | --hos | --ho)
902 ac_prev=host_alias ;;
903 -host=* | --host=* | --hos=* | --ho=*)
904 host_alias=$ac_optarg ;;
906 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
907 ac_prev=htmldir ;;
908 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
909 | --ht=*)
910 htmldir=$ac_optarg ;;
912 -includedir | --includedir | --includedi | --included | --include \
913 | --includ | --inclu | --incl | --inc)
914 ac_prev=includedir ;;
915 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
916 | --includ=* | --inclu=* | --incl=* | --inc=*)
917 includedir=$ac_optarg ;;
919 -infodir | --infodir | --infodi | --infod | --info | --inf)
920 ac_prev=infodir ;;
921 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
922 infodir=$ac_optarg ;;
924 -libdir | --libdir | --libdi | --libd)
925 ac_prev=libdir ;;
926 -libdir=* | --libdir=* | --libdi=* | --libd=*)
927 libdir=$ac_optarg ;;
929 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
930 | --libexe | --libex | --libe)
931 ac_prev=libexecdir ;;
932 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
933 | --libexe=* | --libex=* | --libe=*)
934 libexecdir=$ac_optarg ;;
936 -localedir | --localedir | --localedi | --localed | --locale)
937 ac_prev=localedir ;;
938 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
939 localedir=$ac_optarg ;;
941 -localstatedir | --localstatedir | --localstatedi | --localstated \
942 | --localstate | --localstat | --localsta | --localst | --locals)
943 ac_prev=localstatedir ;;
944 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
945 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
946 localstatedir=$ac_optarg ;;
948 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
949 ac_prev=mandir ;;
950 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
951 mandir=$ac_optarg ;;
953 -nfp | --nfp | --nf)
954 # Obsolete; use --without-fp.
955 with_fp=no ;;
957 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
958 | --no-cr | --no-c | -n)
959 no_create=yes ;;
961 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
962 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
963 no_recursion=yes ;;
965 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
966 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
967 | --oldin | --oldi | --old | --ol | --o)
968 ac_prev=oldincludedir ;;
969 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
970 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
971 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
972 oldincludedir=$ac_optarg ;;
974 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
975 ac_prev=prefix ;;
976 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
977 prefix=$ac_optarg ;;
979 -program-prefix | --program-prefix | --program-prefi | --program-pref \
980 | --program-pre | --program-pr | --program-p)
981 ac_prev=program_prefix ;;
982 -program-prefix=* | --program-prefix=* | --program-prefi=* \
983 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
984 program_prefix=$ac_optarg ;;
986 -program-suffix | --program-suffix | --program-suffi | --program-suff \
987 | --program-suf | --program-su | --program-s)
988 ac_prev=program_suffix ;;
989 -program-suffix=* | --program-suffix=* | --program-suffi=* \
990 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
991 program_suffix=$ac_optarg ;;
993 -program-transform-name | --program-transform-name \
994 | --program-transform-nam | --program-transform-na \
995 | --program-transform-n | --program-transform- \
996 | --program-transform | --program-transfor \
997 | --program-transfo | --program-transf \
998 | --program-trans | --program-tran \
999 | --progr-tra | --program-tr | --program-t)
1000 ac_prev=program_transform_name ;;
1001 -program-transform-name=* | --program-transform-name=* \
1002 | --program-transform-nam=* | --program-transform-na=* \
1003 | --program-transform-n=* | --program-transform-=* \
1004 | --program-transform=* | --program-transfor=* \
1005 | --program-transfo=* | --program-transf=* \
1006 | --program-trans=* | --program-tran=* \
1007 | --progr-tra=* | --program-tr=* | --program-t=*)
1008 program_transform_name=$ac_optarg ;;
1010 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1011 ac_prev=pdfdir ;;
1012 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1013 pdfdir=$ac_optarg ;;
1015 -psdir | --psdir | --psdi | --psd | --ps)
1016 ac_prev=psdir ;;
1017 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1018 psdir=$ac_optarg ;;
1020 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1021 | -silent | --silent | --silen | --sile | --sil)
1022 silent=yes ;;
1024 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1025 ac_prev=sbindir ;;
1026 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1027 | --sbi=* | --sb=*)
1028 sbindir=$ac_optarg ;;
1030 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1031 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1032 | --sharedst | --shareds | --shared | --share | --shar \
1033 | --sha | --sh)
1034 ac_prev=sharedstatedir ;;
1035 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1036 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1037 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1038 | --sha=* | --sh=*)
1039 sharedstatedir=$ac_optarg ;;
1041 -site | --site | --sit)
1042 ac_prev=site ;;
1043 -site=* | --site=* | --sit=*)
1044 site=$ac_optarg ;;
1046 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1047 ac_prev=srcdir ;;
1048 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1049 srcdir=$ac_optarg ;;
1051 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1052 | --syscon | --sysco | --sysc | --sys | --sy)
1053 ac_prev=sysconfdir ;;
1054 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1055 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1056 sysconfdir=$ac_optarg ;;
1058 -target | --target | --targe | --targ | --tar | --ta | --t)
1059 ac_prev=target_alias ;;
1060 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1061 target_alias=$ac_optarg ;;
1063 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1064 verbose=yes ;;
1066 -version | --version | --versio | --versi | --vers | -V)
1067 ac_init_version=: ;;
1069 -with-* | --with-*)
1070 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1071 # Reject names that are not valid shell variable names.
1072 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1073 { echo "$as_me: error: invalid package name: $ac_package" >&2
1074 { (exit 1); exit 1; }; }
1075 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1076 eval with_$ac_package=\$ac_optarg ;;
1078 -without-* | --without-*)
1079 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1080 # Reject names that are not valid shell variable names.
1081 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1082 { echo "$as_me: error: invalid package name: $ac_package" >&2
1083 { (exit 1); exit 1; }; }
1084 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1085 eval with_$ac_package=no ;;
1087 --x)
1088 # Obsolete; use --with-x.
1089 with_x=yes ;;
1091 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1092 | --x-incl | --x-inc | --x-in | --x-i)
1093 ac_prev=x_includes ;;
1094 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1095 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1096 x_includes=$ac_optarg ;;
1098 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1099 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1100 ac_prev=x_libraries ;;
1101 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1102 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1103 x_libraries=$ac_optarg ;;
1105 -*) { echo "$as_me: error: unrecognized option: $ac_option
1106 Try \`$0 --help' for more information." >&2
1107 { (exit 1); exit 1; }; }
1110 *=*)
1111 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1112 # Reject names that are not valid shell variable names.
1113 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1114 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1115 { (exit 1); exit 1; }; }
1116 eval $ac_envvar=\$ac_optarg
1117 export $ac_envvar ;;
1120 # FIXME: should be removed in autoconf 3.0.
1121 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1122 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1123 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1124 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1127 esac
1128 done
1130 if test -n "$ac_prev"; then
1131 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1132 { echo "$as_me: error: missing argument to $ac_option" >&2
1133 { (exit 1); exit 1; }; }
1136 # Be sure to have absolute directory names.
1137 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1138 datadir sysconfdir sharedstatedir localstatedir includedir \
1139 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1140 libdir localedir mandir
1142 eval ac_val=\$$ac_var
1143 case $ac_val in
1144 [\\/$]* | ?:[\\/]* ) continue;;
1145 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1146 esac
1147 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1148 { (exit 1); exit 1; }; }
1149 done
1151 # There might be people who depend on the old broken behavior: `$host'
1152 # used to hold the argument of --host etc.
1153 # FIXME: To remove some day.
1154 build=$build_alias
1155 host=$host_alias
1156 target=$target_alias
1158 # FIXME: To remove some day.
1159 if test "x$host_alias" != x; then
1160 if test "x$build_alias" = x; then
1161 cross_compiling=maybe
1162 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1163 If a cross compiler is detected then cross compile mode will be used." >&2
1164 elif test "x$build_alias" != "x$host_alias"; then
1165 cross_compiling=yes
1169 ac_tool_prefix=
1170 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1172 test "$silent" = yes && exec 6>/dev/null
1175 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1176 ac_ls_di=`ls -di .` &&
1177 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1178 { echo "$as_me: error: Working directory cannot be determined" >&2
1179 { (exit 1); exit 1; }; }
1180 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1181 { echo "$as_me: error: pwd does not report name of working directory" >&2
1182 { (exit 1); exit 1; }; }
1185 # Find the source files, if location was not specified.
1186 if test -z "$srcdir"; then
1187 ac_srcdir_defaulted=yes
1188 # Try the directory containing this script, then the parent directory.
1189 ac_confdir=`$as_dirname -- "$0" ||
1190 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1191 X"$0" : 'X\(//\)[^/]' \| \
1192 X"$0" : 'X\(//\)$' \| \
1193 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1194 echo X"$0" |
1195 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1196 s//\1/
1199 /^X\(\/\/\)[^/].*/{
1200 s//\1/
1203 /^X\(\/\/\)$/{
1204 s//\1/
1207 /^X\(\/\).*/{
1208 s//\1/
1211 s/.*/./; q'`
1212 srcdir=$ac_confdir
1213 if test ! -r "$srcdir/$ac_unique_file"; then
1214 srcdir=..
1216 else
1217 ac_srcdir_defaulted=no
1219 if test ! -r "$srcdir/$ac_unique_file"; then
1220 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1221 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1222 { (exit 1); exit 1; }; }
1224 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1225 ac_abs_confdir=`(
1226 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1227 { (exit 1); exit 1; }; }
1228 pwd)`
1229 # When building in place, set srcdir=.
1230 if test "$ac_abs_confdir" = "$ac_pwd"; then
1231 srcdir=.
1233 # Remove unnecessary trailing slashes from srcdir.
1234 # Double slashes in file names in object file debugging info
1235 # mess up M-x gdb in Emacs.
1236 case $srcdir in
1237 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1238 esac
1239 for ac_var in $ac_precious_vars; do
1240 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1241 eval ac_env_${ac_var}_value=\$${ac_var}
1242 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1243 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1244 done
1247 # Report the --help message.
1249 if test "$ac_init_help" = "long"; then
1250 # Omit some internal or obsolete options to make the list less imposing.
1251 # This message is too long to be a string in the A/UX 3.1 sh.
1252 cat <<_ACEOF
1253 \`configure' configures python 2.7 to adapt to many kinds of systems.
1255 Usage: $0 [OPTION]... [VAR=VALUE]...
1257 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1258 VAR=VALUE. See below for descriptions of some of the useful variables.
1260 Defaults for the options are specified in brackets.
1262 Configuration:
1263 -h, --help display this help and exit
1264 --help=short display options specific to this package
1265 --help=recursive display the short help of all the included packages
1266 -V, --version display version information and exit
1267 -q, --quiet, --silent do not print \`checking...' messages
1268 --cache-file=FILE cache test results in FILE [disabled]
1269 -C, --config-cache alias for \`--cache-file=config.cache'
1270 -n, --no-create do not create output files
1271 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1273 Installation directories:
1274 --prefix=PREFIX install architecture-independent files in PREFIX
1275 [$ac_default_prefix]
1276 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1277 [PREFIX]
1279 By default, \`make install' will install all the files in
1280 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1281 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1282 for instance \`--prefix=\$HOME'.
1284 For better control, use the options below.
1286 Fine tuning of the installation directories:
1287 --bindir=DIR user executables [EPREFIX/bin]
1288 --sbindir=DIR system admin executables [EPREFIX/sbin]
1289 --libexecdir=DIR program executables [EPREFIX/libexec]
1290 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1291 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1292 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1293 --libdir=DIR object code libraries [EPREFIX/lib]
1294 --includedir=DIR C header files [PREFIX/include]
1295 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1296 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1297 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1298 --infodir=DIR info documentation [DATAROOTDIR/info]
1299 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1300 --mandir=DIR man documentation [DATAROOTDIR/man]
1301 --docdir=DIR documentation root [DATAROOTDIR/doc/python]
1302 --htmldir=DIR html documentation [DOCDIR]
1303 --dvidir=DIR dvi documentation [DOCDIR]
1304 --pdfdir=DIR pdf documentation [DOCDIR]
1305 --psdir=DIR ps documentation [DOCDIR]
1306 _ACEOF
1308 cat <<\_ACEOF
1309 _ACEOF
1312 if test -n "$ac_init_help"; then
1313 case $ac_init_help in
1314 short | recursive ) echo "Configuration of python 2.7:";;
1315 esac
1316 cat <<\_ACEOF
1318 Optional Features:
1319 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1320 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1321 --enable-universalsdk[=SDKDIR]
1322 Build against Mac OS X 10.4u SDK (ppc/i386)
1323 --enable-framework[=INSTALLDIR]
1324 Build (MacOSX|Darwin) framework
1325 --enable-shared disable/enable building shared python library
1326 --enable-profiling enable C-level code profiling
1327 --enable-toolbox-glue disable/enable MacOSX glue code for extensions
1328 --enable-ipv6 Enable ipv6 (with ipv4) support
1329 --disable-ipv6 Disable ipv6 support
1330 --enable-big-digits[=BITS]
1331 use big digits for Python longs [BITS=30]
1332 --enable-unicode[=ucs[24]]
1333 Enable Unicode strings (default is yes)
1335 Optional Packages:
1336 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1337 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1338 --with-universal-archs=ARCH
1339 select architectures for universal build ("32-bit",
1340 "64-bit", "3-way", "intel" or "all")
1341 --with-framework-name=FRAMEWORK
1342 specify an alternate name of the framework built
1343 with --enable-framework
1344 --without-gcc never use gcc
1345 --with-cxx-main=<compiler>
1346 compile main() and link python executable with C++
1347 compiler
1348 --with-suffix=.exe set executable suffix
1349 --with-pydebug build with Py_DEBUG defined
1350 --with-libs='lib1 ...' link against additional libs
1351 --with-system-expat build pyexpat module using an installed expat
1352 library
1353 --with-system-ffi build _ctypes module using an installed ffi library
1354 --with-dbmliborder=db1:db2:...
1355 order to check db backends for dbm. Valid value is a
1356 colon separated string with the backend names
1357 `ndbm', `gdbm' and `bdb'.
1358 --with-signal-module disable/enable signal module
1359 --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries
1360 --with(out)-threads[=DIRECTORY]
1361 disable/enable thread support
1362 --with(out)-thread[=DIRECTORY]
1363 deprecated; use --with(out)-threads
1364 --with-pth use GNU pth threading libraries
1365 --with(out)-doc-strings disable/enable documentation strings
1366 --with(out)-tsc enable/disable timestamp counter profile
1367 --with(out)-pymalloc disable/enable specialized mallocs
1368 --with-valgrind Enable Valgrind support
1369 --with-wctype-functions use wctype.h functions
1370 --with-fpectl enable SIGFPE catching
1371 --with-libm=STRING math library
1372 --with-libc=STRING C library
1374 Some influential environment variables:
1375 CC C compiler command
1376 CFLAGS C compiler flags
1377 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1378 nonstandard directory <lib dir>
1379 LIBS libraries to pass to the linker, e.g. -l<library>
1380 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1381 you have headers in a nonstandard directory <include dir>
1382 CPP C preprocessor
1384 Use these variables to override the choices made by `configure' or to help
1385 it to find libraries and programs with nonstandard names/locations.
1387 Report bugs to <http://bugs.python.org/>.
1388 _ACEOF
1389 ac_status=$?
1392 if test "$ac_init_help" = "recursive"; then
1393 # If there are subdirs, report their specific --help.
1394 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1395 test -d "$ac_dir" || continue
1396 ac_builddir=.
1398 case "$ac_dir" in
1399 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1401 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1402 # A ".." for each directory in $ac_dir_suffix.
1403 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1404 case $ac_top_builddir_sub in
1405 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1406 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1407 esac ;;
1408 esac
1409 ac_abs_top_builddir=$ac_pwd
1410 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1411 # for backward compatibility:
1412 ac_top_builddir=$ac_top_build_prefix
1414 case $srcdir in
1415 .) # We are building in place.
1416 ac_srcdir=.
1417 ac_top_srcdir=$ac_top_builddir_sub
1418 ac_abs_top_srcdir=$ac_pwd ;;
1419 [\\/]* | ?:[\\/]* ) # Absolute name.
1420 ac_srcdir=$srcdir$ac_dir_suffix;
1421 ac_top_srcdir=$srcdir
1422 ac_abs_top_srcdir=$srcdir ;;
1423 *) # Relative name.
1424 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1425 ac_top_srcdir=$ac_top_build_prefix$srcdir
1426 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1427 esac
1428 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1430 cd "$ac_dir" || { ac_status=$?; continue; }
1431 # Check for guested configure.
1432 if test -f "$ac_srcdir/configure.gnu"; then
1433 echo &&
1434 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1435 elif test -f "$ac_srcdir/configure"; then
1436 echo &&
1437 $SHELL "$ac_srcdir/configure" --help=recursive
1438 else
1439 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1440 fi || ac_status=$?
1441 cd "$ac_pwd" || { ac_status=$?; break; }
1442 done
1445 test -n "$ac_init_help" && exit $ac_status
1446 if $ac_init_version; then
1447 cat <<\_ACEOF
1448 python configure 2.7
1449 generated by GNU Autoconf 2.61
1451 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1452 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1453 This configure script is free software; the Free Software Foundation
1454 gives unlimited permission to copy, distribute and modify it.
1455 _ACEOF
1456 exit
1458 cat >config.log <<_ACEOF
1459 This file contains any messages produced by compilers while
1460 running configure, to aid debugging if configure makes a mistake.
1462 It was created by python $as_me 2.7, which was
1463 generated by GNU Autoconf 2.61. Invocation command line was
1465 $ $0 $@
1467 _ACEOF
1468 exec 5>>config.log
1470 cat <<_ASUNAME
1471 ## --------- ##
1472 ## Platform. ##
1473 ## --------- ##
1475 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1476 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1477 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1478 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1479 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1481 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1482 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1484 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1485 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1486 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1487 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1488 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1489 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1490 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1492 _ASUNAME
1494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1495 for as_dir in $PATH
1497 IFS=$as_save_IFS
1498 test -z "$as_dir" && as_dir=.
1499 echo "PATH: $as_dir"
1500 done
1501 IFS=$as_save_IFS
1503 } >&5
1505 cat >&5 <<_ACEOF
1508 ## ----------- ##
1509 ## Core tests. ##
1510 ## ----------- ##
1512 _ACEOF
1515 # Keep a trace of the command line.
1516 # Strip out --no-create and --no-recursion so they do not pile up.
1517 # Strip out --silent because we don't want to record it for future runs.
1518 # Also quote any args containing shell meta-characters.
1519 # Make two passes to allow for proper duplicate-argument suppression.
1520 ac_configure_args=
1521 ac_configure_args0=
1522 ac_configure_args1=
1523 ac_must_keep_next=false
1524 for ac_pass in 1 2
1526 for ac_arg
1528 case $ac_arg in
1529 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1530 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1531 | -silent | --silent | --silen | --sile | --sil)
1532 continue ;;
1533 *\'*)
1534 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1535 esac
1536 case $ac_pass in
1537 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1539 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1540 if test $ac_must_keep_next = true; then
1541 ac_must_keep_next=false # Got value, back to normal.
1542 else
1543 case $ac_arg in
1544 *=* | --config-cache | -C | -disable-* | --disable-* \
1545 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1546 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1547 | -with-* | --with-* | -without-* | --without-* | --x)
1548 case "$ac_configure_args0 " in
1549 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1550 esac
1552 -* ) ac_must_keep_next=true ;;
1553 esac
1555 ac_configure_args="$ac_configure_args '$ac_arg'"
1557 esac
1558 done
1559 done
1560 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1561 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1563 # When interrupted or exit'd, cleanup temporary files, and complete
1564 # config.log. We remove comments because anyway the quotes in there
1565 # would cause problems or look ugly.
1566 # WARNING: Use '\'' to represent an apostrophe within the trap.
1567 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1568 trap 'exit_status=$?
1569 # Save into config.log some information that might help in debugging.
1571 echo
1573 cat <<\_ASBOX
1574 ## ---------------- ##
1575 ## Cache variables. ##
1576 ## ---------------- ##
1577 _ASBOX
1578 echo
1579 # The following way of writing the cache mishandles newlines in values,
1581 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1582 eval ac_val=\$$ac_var
1583 case $ac_val in #(
1584 *${as_nl}*)
1585 case $ac_var in #(
1586 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1587 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1588 esac
1589 case $ac_var in #(
1590 _ | IFS | as_nl) ;; #(
1591 *) $as_unset $ac_var ;;
1592 esac ;;
1593 esac
1594 done
1595 (set) 2>&1 |
1596 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1597 *${as_nl}ac_space=\ *)
1598 sed -n \
1599 "s/'\''/'\''\\\\'\'''\''/g;
1600 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1601 ;; #(
1603 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1605 esac |
1606 sort
1608 echo
1610 cat <<\_ASBOX
1611 ## ----------------- ##
1612 ## Output variables. ##
1613 ## ----------------- ##
1614 _ASBOX
1615 echo
1616 for ac_var in $ac_subst_vars
1618 eval ac_val=\$$ac_var
1619 case $ac_val in
1620 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1621 esac
1622 echo "$ac_var='\''$ac_val'\''"
1623 done | sort
1624 echo
1626 if test -n "$ac_subst_files"; then
1627 cat <<\_ASBOX
1628 ## ------------------- ##
1629 ## File substitutions. ##
1630 ## ------------------- ##
1631 _ASBOX
1632 echo
1633 for ac_var in $ac_subst_files
1635 eval ac_val=\$$ac_var
1636 case $ac_val in
1637 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1638 esac
1639 echo "$ac_var='\''$ac_val'\''"
1640 done | sort
1641 echo
1644 if test -s confdefs.h; then
1645 cat <<\_ASBOX
1646 ## ----------- ##
1647 ## confdefs.h. ##
1648 ## ----------- ##
1649 _ASBOX
1650 echo
1651 cat confdefs.h
1652 echo
1654 test "$ac_signal" != 0 &&
1655 echo "$as_me: caught signal $ac_signal"
1656 echo "$as_me: exit $exit_status"
1657 } >&5
1658 rm -f core *.core core.conftest.* &&
1659 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1660 exit $exit_status
1662 for ac_signal in 1 2 13 15; do
1663 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1664 done
1665 ac_signal=0
1667 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1668 rm -f -r conftest* confdefs.h
1670 # Predefined preprocessor variables.
1672 cat >>confdefs.h <<_ACEOF
1673 #define PACKAGE_NAME "$PACKAGE_NAME"
1674 _ACEOF
1677 cat >>confdefs.h <<_ACEOF
1678 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1679 _ACEOF
1682 cat >>confdefs.h <<_ACEOF
1683 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1684 _ACEOF
1687 cat >>confdefs.h <<_ACEOF
1688 #define PACKAGE_STRING "$PACKAGE_STRING"
1689 _ACEOF
1692 cat >>confdefs.h <<_ACEOF
1693 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1694 _ACEOF
1697 # Let the site file select an alternate cache file if it wants to.
1698 # Prefer explicitly selected file to automatically selected ones.
1699 if test -n "$CONFIG_SITE"; then
1700 set x "$CONFIG_SITE"
1701 elif test "x$prefix" != xNONE; then
1702 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1703 else
1704 set x "$ac_default_prefix/share/config.site" \
1705 "$ac_default_prefix/etc/config.site"
1707 shift
1708 for ac_site_file
1710 if test -r "$ac_site_file"; then
1711 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1712 echo "$as_me: loading site script $ac_site_file" >&6;}
1713 sed 's/^/| /' "$ac_site_file" >&5
1714 . "$ac_site_file"
1716 done
1718 if test -r "$cache_file"; then
1719 # Some versions of bash will fail to source /dev/null (special
1720 # files actually), so we avoid doing that.
1721 if test -f "$cache_file"; then
1722 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1723 echo "$as_me: loading cache $cache_file" >&6;}
1724 case $cache_file in
1725 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1726 *) . "./$cache_file";;
1727 esac
1729 else
1730 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1731 echo "$as_me: creating cache $cache_file" >&6;}
1732 >$cache_file
1735 # Check that the precious variables saved in the cache have kept the same
1736 # value.
1737 ac_cache_corrupted=false
1738 for ac_var in $ac_precious_vars; do
1739 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1740 eval ac_new_set=\$ac_env_${ac_var}_set
1741 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1742 eval ac_new_val=\$ac_env_${ac_var}_value
1743 case $ac_old_set,$ac_new_set in
1744 set,)
1745 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1746 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1747 ac_cache_corrupted=: ;;
1748 ,set)
1749 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1750 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1751 ac_cache_corrupted=: ;;
1752 ,);;
1754 if test "x$ac_old_val" != "x$ac_new_val"; then
1755 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1756 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1757 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1758 echo "$as_me: former value: $ac_old_val" >&2;}
1759 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1760 echo "$as_me: current value: $ac_new_val" >&2;}
1761 ac_cache_corrupted=:
1762 fi;;
1763 esac
1764 # Pass precious variables to config.status.
1765 if test "$ac_new_set" = set; then
1766 case $ac_new_val in
1767 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1768 *) ac_arg=$ac_var=$ac_new_val ;;
1769 esac
1770 case " $ac_configure_args " in
1771 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1772 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1773 esac
1775 done
1776 if $ac_cache_corrupted; then
1777 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1778 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1779 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1780 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1781 { (exit 1); exit 1; }; }
1808 ac_ext=c
1809 ac_cpp='$CPP $CPPFLAGS'
1810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1816 ac_config_headers="$ac_config_headers pyconfig.h"
1820 if test "$prefix" != "/"; then
1821 prefix=`echo "$prefix" | sed -e 's/\/$//g'`
1829 # We don't use PACKAGE_ variables, and they cause conflicts
1830 # with other autoconf-based packages that include Python.h
1831 grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
1832 rm confdefs.h
1833 mv confdefs.h.new confdefs.h
1836 VERSION=2.7
1839 SOVERSION=1.0
1841 # The later defininition of _XOPEN_SOURCE disables certain features
1842 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
1844 cat >>confdefs.h <<\_ACEOF
1845 #define _GNU_SOURCE 1
1846 _ACEOF
1849 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1850 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
1851 # them.
1853 cat >>confdefs.h <<\_ACEOF
1854 #define _NETBSD_SOURCE 1
1855 _ACEOF
1858 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1859 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
1860 # them.
1862 cat >>confdefs.h <<\_ACEOF
1863 #define __BSD_VISIBLE 1
1864 _ACEOF
1867 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1868 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
1870 cat >>confdefs.h <<\_ACEOF
1871 #define _BSD_TYPES 1
1872 _ACEOF
1875 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1876 # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable
1877 # them.
1879 cat >>confdefs.h <<\_ACEOF
1880 #define _DARWIN_C_SOURCE 1
1881 _ACEOF
1885 define_xopen_source=yes
1887 # Arguments passed to configure.
1889 CONFIG_ARGS="$ac_configure_args"
1891 # Check whether --enable-universalsdk was given.
1892 if test "${enable_universalsdk+set}" = set; then
1893 enableval=$enable_universalsdk;
1894 case $enableval in
1895 yes)
1896 enableval=/Developer/SDKs/MacOSX10.4u.sdk
1898 esac
1899 case $enableval in
1901 UNIVERSALSDK=
1902 enable_universalsdk=
1905 UNIVERSALSDK=$enableval
1907 esac
1909 else
1911 UNIVERSALSDK=
1912 enable_universalsdk=
1920 UNIVERSAL_ARCHS="32-bit"
1922 { echo "$as_me:$LINENO: checking for --with-universal-archs" >&5
1923 echo $ECHO_N "checking for --with-universal-archs... $ECHO_C" >&6; }
1925 # Check whether --with-universal-archs was given.
1926 if test "${with_universal_archs+set}" = set; then
1927 withval=$with_universal_archs;
1928 { echo "$as_me:$LINENO: result: $withval" >&5
1929 echo "${ECHO_T}$withval" >&6; }
1930 UNIVERSAL_ARCHS="$withval"
1931 if test "${enable_universalsdk}" ; then
1933 else
1934 { { echo "$as_me:$LINENO: error: --with-universal-archs without --enable-universalsdk. See Mac/README" >&5
1935 echo "$as_me: error: --with-universal-archs without --enable-universalsdk. See Mac/README" >&2;}
1936 { (exit 1); exit 1; }; }
1939 else
1941 { echo "$as_me:$LINENO: result: 32-bit" >&5
1942 echo "${ECHO_T}32-bit" >&6; }
1950 # Check whether --with-framework-name was given.
1951 if test "${with_framework_name+set}" = set; then
1952 withval=$with_framework_name;
1953 if test "${enable_framework}"; then
1955 else
1956 { { echo "$as_me:$LINENO: error: --with-framework-name without --enable-framework. See Mac/README" >&5
1957 echo "$as_me: error: --with-framework-name without --enable-framework. See Mac/README" >&2;}
1958 { (exit 1); exit 1; }; }
1960 PYTHONFRAMEWORK=${withval}
1961 PYTHONFRAMEWORKDIR=${withval}.framework
1962 PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'`
1964 else
1966 PYTHONFRAMEWORK=Python
1967 PYTHONFRAMEWORKDIR=Python.framework
1968 PYTHONFRAMEWORKIDENTIFIER=org.python.python
1972 # Check whether --enable-framework was given.
1973 if test "${enable_framework+set}" = set; then
1974 enableval=$enable_framework;
1975 case $enableval in
1976 yes)
1977 enableval=/Library/Frameworks
1978 esac
1979 case $enableval in
1981 PYTHONFRAMEWORK=
1982 PYTHONFRAMEWORKDIR=no-framework
1983 PYTHONFRAMEWORKPREFIX=
1984 PYTHONFRAMEWORKINSTALLDIR=
1985 FRAMEWORKINSTALLFIRST=
1986 FRAMEWORKINSTALLLAST=
1987 FRAMEWORKALTINSTALLFIRST=
1988 FRAMEWORKALTINSTALLLAST=
1989 if test "x${prefix}" = "xNONE"; then
1990 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1991 else
1992 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1994 enable_framework=
1997 PYTHONFRAMEWORKPREFIX=$enableval
1998 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
1999 FRAMEWORKINSTALLFIRST="frameworkinstallstructure"
2000 FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure bininstall maninstall"
2001 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools"
2002 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
2004 if test "x${prefix}" = "xNONE" ; then
2005 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
2006 else
2007 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
2009 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
2011 # Add files for Mac specific code to the list of output
2012 # files:
2013 ac_config_files="$ac_config_files Mac/Makefile"
2015 ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile"
2017 ac_config_files="$ac_config_files Mac/IDLE/Makefile"
2019 ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist"
2021 ac_config_files="$ac_config_files Mac/Resources/app/Info.plist"
2023 esac
2025 else
2027 PYTHONFRAMEWORK=
2028 PYTHONFRAMEWORKDIR=no-framework
2029 PYTHONFRAMEWORKPREFIX=
2030 PYTHONFRAMEWORKINSTALLDIR=
2031 FRAMEWORKINSTALLFIRST=
2032 FRAMEWORKINSTALLLAST=
2033 FRAMEWORKALTINSTALLFIRST=
2034 FRAMEWORKALTINSTALLLAST=
2035 if test "x${prefix}" = "xNONE" ; then
2036 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
2037 else
2038 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
2040 enable_framework=
2056 ##AC_ARG_WITH(dyld,
2057 ## AC_HELP_STRING(--with-dyld,
2058 ## Use (OpenStep|Rhapsody) dynamic linker))
2060 # Set name for machine-dependent library files
2062 { echo "$as_me:$LINENO: checking MACHDEP" >&5
2063 echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6; }
2064 if test -z "$MACHDEP"
2065 then
2066 ac_sys_system=`uname -s`
2067 if test "$ac_sys_system" = "AIX" \
2068 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
2069 ac_sys_release=`uname -v`
2070 else
2071 ac_sys_release=`uname -r`
2073 ac_md_system=`echo $ac_sys_system |
2074 tr -d '/ ' | tr '[A-Z]' '[a-z]'`
2075 ac_md_release=`echo $ac_sys_release |
2076 tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'`
2077 MACHDEP="$ac_md_system$ac_md_release"
2079 case $MACHDEP in
2080 cygwin*) MACHDEP="cygwin";;
2081 darwin*) MACHDEP="darwin";;
2082 atheos*) MACHDEP="atheos";;
2083 irix646) MACHDEP="irix6";;
2084 '') MACHDEP="unknown";;
2085 esac
2088 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
2089 # disable features if it is defined, without any means to access these
2090 # features as extensions. For these systems, we skip the definition of
2091 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
2092 # some feature, make sure there is no alternative way to access this
2093 # feature. Also, when using wildcards, make sure you have verified the
2094 # need for not defining _XOPEN_SOURCE on all systems matching the
2095 # wildcard, and that the wildcard does not include future systems
2096 # (which may remove their limitations).
2097 case $ac_sys_system/$ac_sys_release in
2098 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
2099 # even though select is a POSIX function. Reported by J. Ribbens.
2100 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
2101 OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0123])
2102 define_xopen_source=no
2103 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
2104 # also defined. This can be overridden by defining _BSD_SOURCE
2105 # As this has a different meaning on Linux, only define it on OpenBSD
2107 cat >>confdefs.h <<\_ACEOF
2108 #define _BSD_SOURCE 1
2109 _ACEOF
2112 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
2113 # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
2114 # Marc Recht
2115 NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S])
2116 define_xopen_source=no;;
2117 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
2118 # of union __?sigval. Reported by Stuart Bishop.
2119 SunOS/5.6)
2120 define_xopen_source=no;;
2121 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
2122 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
2123 # Reconfirmed for 7.1.4 by Martin v. Loewis.
2124 OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
2125 define_xopen_source=no;;
2126 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
2127 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
2128 SCO_SV/3.2)
2129 define_xopen_source=no;;
2130 # On FreeBSD 4, the math functions C89 does not cover are never defined
2131 # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them.
2132 FreeBSD/4.*)
2133 define_xopen_source=no;;
2134 # On MacOS X 10.2, a bug in ncurses.h means that it craps out if
2135 # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which
2136 # identifies itself as Darwin/7.*
2137 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2138 # disables platform specific features beyond repair.
2139 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2140 # has no effect, don't bother defining them
2141 Darwin/[6789].*)
2142 define_xopen_source=no;;
2143 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
2144 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
2145 # or has another value. By not (re)defining it, the defaults come in place.
2146 AIX/4)
2147 define_xopen_source=no;;
2148 AIX/5)
2149 if test `uname -r` -eq 1; then
2150 define_xopen_source=no
2153 # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from
2154 # defining NI_NUMERICHOST.
2155 QNX/6.3.2)
2156 define_xopen_source=no
2159 esac
2161 if test $define_xopen_source = yes
2162 then
2163 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
2164 # defined precisely as g++ defines it
2165 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
2166 # compiler
2167 case $ac_sys_system/$ac_sys_release in
2168 SunOS/5.8|SunOS/5.9|SunOS/5.10)
2170 cat >>confdefs.h <<\_ACEOF
2171 #define _XOPEN_SOURCE 500
2172 _ACEOF
2177 cat >>confdefs.h <<\_ACEOF
2178 #define _XOPEN_SOURCE 600
2179 _ACEOF
2182 esac
2184 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
2185 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
2186 # several APIs are not declared. Since this is also needed in some
2187 # cases for HP-UX, we define it globally.
2188 # except for Solaris 10, where it must not be defined,
2189 # as it implies XPG4.2
2190 case $ac_sys_system/$ac_sys_release in
2191 SunOS/5.10)
2195 cat >>confdefs.h <<\_ACEOF
2196 #define _XOPEN_SOURCE_EXTENDED 1
2197 _ACEOF
2200 esac
2203 cat >>confdefs.h <<\_ACEOF
2204 #define _POSIX_C_SOURCE 200112L
2205 _ACEOF
2211 # SGI compilers allow the specification of the both the ABI and the
2212 # ISA on the command line. Depending on the values of these switches,
2213 # different and often incompatable code will be generated.
2215 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
2216 # thus supply support for various ABI/ISA combinations. The MACHDEP
2217 # variable is also adjusted.
2220 if test ! -z "$SGI_ABI"
2221 then
2222 CC="cc $SGI_ABI"
2223 LDFLAGS="$SGI_ABI $LDFLAGS"
2224 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
2226 { echo "$as_me:$LINENO: result: $MACHDEP" >&5
2227 echo "${ECHO_T}$MACHDEP" >&6; }
2229 # And add extra plat-mac for darwin
2232 { echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5
2233 echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6; }
2234 if test -z "$EXTRAPLATDIR"
2235 then
2236 case $MACHDEP in
2237 darwin)
2238 EXTRAPLATDIR="\$(PLATMACDIRS)"
2239 EXTRAMACHDEPPATH="\$(PLATMACPATH)"
2242 EXTRAPLATDIR=""
2243 EXTRAMACHDEPPATH=""
2245 esac
2247 { echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5
2248 echo "${ECHO_T}$EXTRAPLATDIR" >&6; }
2250 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
2251 # it may influence the way we can build extensions, so distutils
2252 # needs to check it
2255 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
2256 EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
2258 { echo "$as_me:$LINENO: checking machine type as reported by uname -m" >&5
2259 echo $ECHO_N "checking machine type as reported by uname -m... $ECHO_C" >&6; }
2260 ac_sys_machine=`uname -m`
2261 { echo "$as_me:$LINENO: result: $ac_sys_machine" >&5
2262 echo "${ECHO_T}$ac_sys_machine" >&6; }
2264 # checks for alternative programs
2266 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
2267 # for debug/optimization stuff. BASECFLAGS is for flags that are required
2268 # just to get things to compile and link. Users are free to override OPT
2269 # when running configure or make. The build should not break if they do.
2270 # BASECFLAGS should generally not be messed with, however.
2272 # XXX shouldn't some/most/all of this code be merged with the stuff later
2273 # on that fiddles with OPT and BASECFLAGS?
2274 { echo "$as_me:$LINENO: checking for --without-gcc" >&5
2275 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6; }
2277 # Check whether --with-gcc was given.
2278 if test "${with_gcc+set}" = set; then
2279 withval=$with_gcc;
2280 case $withval in
2281 no) CC=${CC:-cc}
2282 without_gcc=yes;;
2283 yes) CC=gcc
2284 without_gcc=no;;
2285 *) CC=$withval
2286 without_gcc=$withval;;
2287 esac
2288 else
2290 case $ac_sys_system in
2291 AIX*) CC=cc_r
2292 without_gcc=;;
2293 BeOS*)
2294 case $BE_HOST_CPU in
2295 ppc)
2296 CC=mwcc
2297 without_gcc=yes
2298 BASECFLAGS="$BASECFLAGS -export pragma"
2299 OPT="$OPT -O"
2300 LDFLAGS="$LDFLAGS -nodup"
2302 x86)
2303 CC=gcc
2304 without_gcc=no
2305 OPT="$OPT -O"
2308 { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5
2309 echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;}
2310 { (exit 1); exit 1; }; }
2312 esac
2313 AR="\$(srcdir)/Modules/ar_beos"
2314 RANLIB=:
2316 *) without_gcc=no;;
2317 esac
2320 { echo "$as_me:$LINENO: result: $without_gcc" >&5
2321 echo "${ECHO_T}$without_gcc" >&6; }
2323 # If the user switches compilers, we can't believe the cache
2324 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
2325 then
2326 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
2327 (it is also a good idea to do 'make clean' before compiling)" >&5
2328 echo "$as_me: error: cached CC is different -- throw away $cache_file
2329 (it is also a good idea to do 'make clean' before compiling)" >&2;}
2330 { (exit 1); exit 1; }; }
2333 ac_ext=c
2334 ac_cpp='$CPP $CPPFLAGS'
2335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2338 if test -n "$ac_tool_prefix"; then
2339 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2340 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2341 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2343 if test "${ac_cv_prog_CC+set}" = set; then
2344 echo $ECHO_N "(cached) $ECHO_C" >&6
2345 else
2346 if test -n "$CC"; then
2347 ac_cv_prog_CC="$CC" # Let the user override the test.
2348 else
2349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2350 for as_dir in $PATH
2352 IFS=$as_save_IFS
2353 test -z "$as_dir" && as_dir=.
2354 for ac_exec_ext in '' $ac_executable_extensions; do
2355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2356 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2358 break 2
2360 done
2361 done
2362 IFS=$as_save_IFS
2366 CC=$ac_cv_prog_CC
2367 if test -n "$CC"; then
2368 { echo "$as_me:$LINENO: result: $CC" >&5
2369 echo "${ECHO_T}$CC" >&6; }
2370 else
2371 { echo "$as_me:$LINENO: result: no" >&5
2372 echo "${ECHO_T}no" >&6; }
2377 if test -z "$ac_cv_prog_CC"; then
2378 ac_ct_CC=$CC
2379 # Extract the first word of "gcc", so it can be a program name with args.
2380 set dummy gcc; ac_word=$2
2381 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2383 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2384 echo $ECHO_N "(cached) $ECHO_C" >&6
2385 else
2386 if test -n "$ac_ct_CC"; then
2387 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2388 else
2389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2390 for as_dir in $PATH
2392 IFS=$as_save_IFS
2393 test -z "$as_dir" && as_dir=.
2394 for ac_exec_ext in '' $ac_executable_extensions; do
2395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2396 ac_cv_prog_ac_ct_CC="gcc"
2397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2398 break 2
2400 done
2401 done
2402 IFS=$as_save_IFS
2406 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2407 if test -n "$ac_ct_CC"; then
2408 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2409 echo "${ECHO_T}$ac_ct_CC" >&6; }
2410 else
2411 { echo "$as_me:$LINENO: result: no" >&5
2412 echo "${ECHO_T}no" >&6; }
2415 if test "x$ac_ct_CC" = x; then
2416 CC=""
2417 else
2418 case $cross_compiling:$ac_tool_warned in
2419 yes:)
2420 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2421 whose name does not start with the host triplet. If you think this
2422 configuration is useful to you, please write to autoconf@gnu.org." >&5
2423 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2424 whose name does not start with the host triplet. If you think this
2425 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2426 ac_tool_warned=yes ;;
2427 esac
2428 CC=$ac_ct_CC
2430 else
2431 CC="$ac_cv_prog_CC"
2434 if test -z "$CC"; then
2435 if test -n "$ac_tool_prefix"; then
2436 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2437 set dummy ${ac_tool_prefix}cc; ac_word=$2
2438 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2440 if test "${ac_cv_prog_CC+set}" = set; then
2441 echo $ECHO_N "(cached) $ECHO_C" >&6
2442 else
2443 if test -n "$CC"; then
2444 ac_cv_prog_CC="$CC" # Let the user override the test.
2445 else
2446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2447 for as_dir in $PATH
2449 IFS=$as_save_IFS
2450 test -z "$as_dir" && as_dir=.
2451 for ac_exec_ext in '' $ac_executable_extensions; do
2452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2453 ac_cv_prog_CC="${ac_tool_prefix}cc"
2454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2455 break 2
2457 done
2458 done
2459 IFS=$as_save_IFS
2463 CC=$ac_cv_prog_CC
2464 if test -n "$CC"; then
2465 { echo "$as_me:$LINENO: result: $CC" >&5
2466 echo "${ECHO_T}$CC" >&6; }
2467 else
2468 { echo "$as_me:$LINENO: result: no" >&5
2469 echo "${ECHO_T}no" >&6; }
2475 if test -z "$CC"; then
2476 # Extract the first word of "cc", so it can be a program name with args.
2477 set dummy cc; ac_word=$2
2478 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2480 if test "${ac_cv_prog_CC+set}" = set; then
2481 echo $ECHO_N "(cached) $ECHO_C" >&6
2482 else
2483 if test -n "$CC"; then
2484 ac_cv_prog_CC="$CC" # Let the user override the test.
2485 else
2486 ac_prog_rejected=no
2487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2488 for as_dir in $PATH
2490 IFS=$as_save_IFS
2491 test -z "$as_dir" && as_dir=.
2492 for ac_exec_ext in '' $ac_executable_extensions; do
2493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2494 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2495 ac_prog_rejected=yes
2496 continue
2498 ac_cv_prog_CC="cc"
2499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2500 break 2
2502 done
2503 done
2504 IFS=$as_save_IFS
2506 if test $ac_prog_rejected = yes; then
2507 # We found a bogon in the path, so make sure we never use it.
2508 set dummy $ac_cv_prog_CC
2509 shift
2510 if test $# != 0; then
2511 # We chose a different compiler from the bogus one.
2512 # However, it has the same basename, so the bogon will be chosen
2513 # first if we set CC to just the basename; use the full file name.
2514 shift
2515 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2520 CC=$ac_cv_prog_CC
2521 if test -n "$CC"; then
2522 { echo "$as_me:$LINENO: result: $CC" >&5
2523 echo "${ECHO_T}$CC" >&6; }
2524 else
2525 { echo "$as_me:$LINENO: result: no" >&5
2526 echo "${ECHO_T}no" >&6; }
2531 if test -z "$CC"; then
2532 if test -n "$ac_tool_prefix"; then
2533 for ac_prog in cl.exe
2535 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2536 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2537 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2539 if test "${ac_cv_prog_CC+set}" = set; then
2540 echo $ECHO_N "(cached) $ECHO_C" >&6
2541 else
2542 if test -n "$CC"; then
2543 ac_cv_prog_CC="$CC" # Let the user override the test.
2544 else
2545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2546 for as_dir in $PATH
2548 IFS=$as_save_IFS
2549 test -z "$as_dir" && as_dir=.
2550 for ac_exec_ext in '' $ac_executable_extensions; do
2551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2552 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2554 break 2
2556 done
2557 done
2558 IFS=$as_save_IFS
2562 CC=$ac_cv_prog_CC
2563 if test -n "$CC"; then
2564 { echo "$as_me:$LINENO: result: $CC" >&5
2565 echo "${ECHO_T}$CC" >&6; }
2566 else
2567 { echo "$as_me:$LINENO: result: no" >&5
2568 echo "${ECHO_T}no" >&6; }
2572 test -n "$CC" && break
2573 done
2575 if test -z "$CC"; then
2576 ac_ct_CC=$CC
2577 for ac_prog in cl.exe
2579 # Extract the first word of "$ac_prog", so it can be a program name with args.
2580 set dummy $ac_prog; ac_word=$2
2581 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2583 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2584 echo $ECHO_N "(cached) $ECHO_C" >&6
2585 else
2586 if test -n "$ac_ct_CC"; then
2587 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2588 else
2589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2590 for as_dir in $PATH
2592 IFS=$as_save_IFS
2593 test -z "$as_dir" && as_dir=.
2594 for ac_exec_ext in '' $ac_executable_extensions; do
2595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2596 ac_cv_prog_ac_ct_CC="$ac_prog"
2597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2598 break 2
2600 done
2601 done
2602 IFS=$as_save_IFS
2606 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2607 if test -n "$ac_ct_CC"; then
2608 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2609 echo "${ECHO_T}$ac_ct_CC" >&6; }
2610 else
2611 { echo "$as_me:$LINENO: result: no" >&5
2612 echo "${ECHO_T}no" >&6; }
2616 test -n "$ac_ct_CC" && break
2617 done
2619 if test "x$ac_ct_CC" = x; then
2620 CC=""
2621 else
2622 case $cross_compiling:$ac_tool_warned in
2623 yes:)
2624 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2625 whose name does not start with the host triplet. If you think this
2626 configuration is useful to you, please write to autoconf@gnu.org." >&5
2627 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2628 whose name does not start with the host triplet. If you think this
2629 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2630 ac_tool_warned=yes ;;
2631 esac
2632 CC=$ac_ct_CC
2639 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2640 See \`config.log' for more details." >&5
2641 echo "$as_me: error: no acceptable C compiler found in \$PATH
2642 See \`config.log' for more details." >&2;}
2643 { (exit 1); exit 1; }; }
2645 # Provide some information about the compiler.
2646 echo "$as_me:$LINENO: checking for C compiler version" >&5
2647 ac_compiler=`set X $ac_compile; echo $2`
2648 { (ac_try="$ac_compiler --version >&5"
2649 case "(($ac_try" in
2650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2651 *) ac_try_echo=$ac_try;;
2652 esac
2653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2654 (eval "$ac_compiler --version >&5") 2>&5
2655 ac_status=$?
2656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657 (exit $ac_status); }
2658 { (ac_try="$ac_compiler -v >&5"
2659 case "(($ac_try" in
2660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2661 *) ac_try_echo=$ac_try;;
2662 esac
2663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2664 (eval "$ac_compiler -v >&5") 2>&5
2665 ac_status=$?
2666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667 (exit $ac_status); }
2668 { (ac_try="$ac_compiler -V >&5"
2669 case "(($ac_try" in
2670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2671 *) ac_try_echo=$ac_try;;
2672 esac
2673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2674 (eval "$ac_compiler -V >&5") 2>&5
2675 ac_status=$?
2676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677 (exit $ac_status); }
2679 cat >conftest.$ac_ext <<_ACEOF
2680 /* confdefs.h. */
2681 _ACEOF
2682 cat confdefs.h >>conftest.$ac_ext
2683 cat >>conftest.$ac_ext <<_ACEOF
2684 /* end confdefs.h. */
2687 main ()
2691 return 0;
2693 _ACEOF
2694 ac_clean_files_save=$ac_clean_files
2695 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2696 # Try to create an executable without -o first, disregard a.out.
2697 # It will help us diagnose broken compilers, and finding out an intuition
2698 # of exeext.
2699 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2700 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2701 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2703 # List of possible output files, starting from the most likely.
2704 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2705 # only as a last resort. b.out is created by i960 compilers.
2706 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2708 # The IRIX 6 linker writes into existing files which may not be
2709 # executable, retaining their permissions. Remove them first so a
2710 # subsequent execution test works.
2711 ac_rmfiles=
2712 for ac_file in $ac_files
2714 case $ac_file in
2715 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2716 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2717 esac
2718 done
2719 rm -f $ac_rmfiles
2721 if { (ac_try="$ac_link_default"
2722 case "(($ac_try" in
2723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2724 *) ac_try_echo=$ac_try;;
2725 esac
2726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2727 (eval "$ac_link_default") 2>&5
2728 ac_status=$?
2729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730 (exit $ac_status); }; then
2731 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2732 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2733 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2734 # so that the user can short-circuit this test for compilers unknown to
2735 # Autoconf.
2736 for ac_file in $ac_files ''
2738 test -f "$ac_file" || continue
2739 case $ac_file in
2740 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2742 [ab].out )
2743 # We found the default executable, but exeext='' is most
2744 # certainly right.
2745 break;;
2746 *.* )
2747 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2748 then :; else
2749 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2751 # We set ac_cv_exeext here because the later test for it is not
2752 # safe: cross compilers may not add the suffix if given an `-o'
2753 # argument, so we may need to know it at that point already.
2754 # Even if this section looks crufty: it has the advantage of
2755 # actually working.
2756 break;;
2758 break;;
2759 esac
2760 done
2761 test "$ac_cv_exeext" = no && ac_cv_exeext=
2763 else
2764 ac_file=''
2767 { echo "$as_me:$LINENO: result: $ac_file" >&5
2768 echo "${ECHO_T}$ac_file" >&6; }
2769 if test -z "$ac_file"; then
2770 echo "$as_me: failed program was:" >&5
2771 sed 's/^/| /' conftest.$ac_ext >&5
2773 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2774 See \`config.log' for more details." >&5
2775 echo "$as_me: error: C compiler cannot create executables
2776 See \`config.log' for more details." >&2;}
2777 { (exit 77); exit 77; }; }
2780 ac_exeext=$ac_cv_exeext
2782 # Check that the compiler produces executables we can run. If not, either
2783 # the compiler is broken, or we cross compile.
2784 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2785 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2786 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2787 # If not cross compiling, check that we can run a simple program.
2788 if test "$cross_compiling" != yes; then
2789 if { ac_try='./$ac_file'
2790 { (case "(($ac_try" in
2791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2792 *) ac_try_echo=$ac_try;;
2793 esac
2794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2795 (eval "$ac_try") 2>&5
2796 ac_status=$?
2797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798 (exit $ac_status); }; }; then
2799 cross_compiling=no
2800 else
2801 if test "$cross_compiling" = maybe; then
2802 cross_compiling=yes
2803 else
2804 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2805 If you meant to cross compile, use \`--host'.
2806 See \`config.log' for more details." >&5
2807 echo "$as_me: error: cannot run C compiled programs.
2808 If you meant to cross compile, use \`--host'.
2809 See \`config.log' for more details." >&2;}
2810 { (exit 1); exit 1; }; }
2814 { echo "$as_me:$LINENO: result: yes" >&5
2815 echo "${ECHO_T}yes" >&6; }
2817 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2818 ac_clean_files=$ac_clean_files_save
2819 # Check that the compiler produces executables we can run. If not, either
2820 # the compiler is broken, or we cross compile.
2821 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2822 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2823 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2824 echo "${ECHO_T}$cross_compiling" >&6; }
2826 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2827 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2828 if { (ac_try="$ac_link"
2829 case "(($ac_try" in
2830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2831 *) ac_try_echo=$ac_try;;
2832 esac
2833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2834 (eval "$ac_link") 2>&5
2835 ac_status=$?
2836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837 (exit $ac_status); }; then
2838 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2839 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2840 # work properly (i.e., refer to `conftest.exe'), while it won't with
2841 # `rm'.
2842 for ac_file in conftest.exe conftest conftest.*; do
2843 test -f "$ac_file" || continue
2844 case $ac_file in
2845 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2846 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2847 break;;
2848 * ) break;;
2849 esac
2850 done
2851 else
2852 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2853 See \`config.log' for more details." >&5
2854 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2855 See \`config.log' for more details." >&2;}
2856 { (exit 1); exit 1; }; }
2859 rm -f conftest$ac_cv_exeext
2860 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2861 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2863 rm -f conftest.$ac_ext
2864 EXEEXT=$ac_cv_exeext
2865 ac_exeext=$EXEEXT
2866 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2867 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2868 if test "${ac_cv_objext+set}" = set; then
2869 echo $ECHO_N "(cached) $ECHO_C" >&6
2870 else
2871 cat >conftest.$ac_ext <<_ACEOF
2872 /* confdefs.h. */
2873 _ACEOF
2874 cat confdefs.h >>conftest.$ac_ext
2875 cat >>conftest.$ac_ext <<_ACEOF
2876 /* end confdefs.h. */
2879 main ()
2883 return 0;
2885 _ACEOF
2886 rm -f conftest.o conftest.obj
2887 if { (ac_try="$ac_compile"
2888 case "(($ac_try" in
2889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2890 *) ac_try_echo=$ac_try;;
2891 esac
2892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2893 (eval "$ac_compile") 2>&5
2894 ac_status=$?
2895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896 (exit $ac_status); }; then
2897 for ac_file in conftest.o conftest.obj conftest.*; do
2898 test -f "$ac_file" || continue;
2899 case $ac_file in
2900 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2901 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2902 break;;
2903 esac
2904 done
2905 else
2906 echo "$as_me: failed program was:" >&5
2907 sed 's/^/| /' conftest.$ac_ext >&5
2909 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2910 See \`config.log' for more details." >&5
2911 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2912 See \`config.log' for more details." >&2;}
2913 { (exit 1); exit 1; }; }
2916 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2918 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2919 echo "${ECHO_T}$ac_cv_objext" >&6; }
2920 OBJEXT=$ac_cv_objext
2921 ac_objext=$OBJEXT
2922 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2923 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2924 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2925 echo $ECHO_N "(cached) $ECHO_C" >&6
2926 else
2927 cat >conftest.$ac_ext <<_ACEOF
2928 /* confdefs.h. */
2929 _ACEOF
2930 cat confdefs.h >>conftest.$ac_ext
2931 cat >>conftest.$ac_ext <<_ACEOF
2932 /* end confdefs.h. */
2935 main ()
2937 #ifndef __GNUC__
2938 choke me
2939 #endif
2942 return 0;
2944 _ACEOF
2945 rm -f conftest.$ac_objext
2946 if { (ac_try="$ac_compile"
2947 case "(($ac_try" in
2948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2949 *) ac_try_echo=$ac_try;;
2950 esac
2951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2952 (eval "$ac_compile") 2>conftest.er1
2953 ac_status=$?
2954 grep -v '^ *+' conftest.er1 >conftest.err
2955 rm -f conftest.er1
2956 cat conftest.err >&5
2957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958 (exit $ac_status); } && {
2959 test -z "$ac_c_werror_flag" ||
2960 test ! -s conftest.err
2961 } && test -s conftest.$ac_objext; then
2962 ac_compiler_gnu=yes
2963 else
2964 echo "$as_me: failed program was:" >&5
2965 sed 's/^/| /' conftest.$ac_ext >&5
2967 ac_compiler_gnu=no
2970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2971 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2974 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2975 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2976 GCC=`test $ac_compiler_gnu = yes && echo yes`
2977 ac_test_CFLAGS=${CFLAGS+set}
2978 ac_save_CFLAGS=$CFLAGS
2979 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2980 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2981 if test "${ac_cv_prog_cc_g+set}" = set; then
2982 echo $ECHO_N "(cached) $ECHO_C" >&6
2983 else
2984 ac_save_c_werror_flag=$ac_c_werror_flag
2985 ac_c_werror_flag=yes
2986 ac_cv_prog_cc_g=no
2987 CFLAGS="-g"
2988 cat >conftest.$ac_ext <<_ACEOF
2989 /* confdefs.h. */
2990 _ACEOF
2991 cat confdefs.h >>conftest.$ac_ext
2992 cat >>conftest.$ac_ext <<_ACEOF
2993 /* end confdefs.h. */
2996 main ()
3000 return 0;
3002 _ACEOF
3003 rm -f conftest.$ac_objext
3004 if { (ac_try="$ac_compile"
3005 case "(($ac_try" in
3006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3007 *) ac_try_echo=$ac_try;;
3008 esac
3009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3010 (eval "$ac_compile") 2>conftest.er1
3011 ac_status=$?
3012 grep -v '^ *+' conftest.er1 >conftest.err
3013 rm -f conftest.er1
3014 cat conftest.err >&5
3015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016 (exit $ac_status); } && {
3017 test -z "$ac_c_werror_flag" ||
3018 test ! -s conftest.err
3019 } && test -s conftest.$ac_objext; then
3020 ac_cv_prog_cc_g=yes
3021 else
3022 echo "$as_me: failed program was:" >&5
3023 sed 's/^/| /' conftest.$ac_ext >&5
3025 CFLAGS=""
3026 cat >conftest.$ac_ext <<_ACEOF
3027 /* confdefs.h. */
3028 _ACEOF
3029 cat confdefs.h >>conftest.$ac_ext
3030 cat >>conftest.$ac_ext <<_ACEOF
3031 /* end confdefs.h. */
3034 main ()
3038 return 0;
3040 _ACEOF
3041 rm -f conftest.$ac_objext
3042 if { (ac_try="$ac_compile"
3043 case "(($ac_try" in
3044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3045 *) ac_try_echo=$ac_try;;
3046 esac
3047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3048 (eval "$ac_compile") 2>conftest.er1
3049 ac_status=$?
3050 grep -v '^ *+' conftest.er1 >conftest.err
3051 rm -f conftest.er1
3052 cat conftest.err >&5
3053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054 (exit $ac_status); } && {
3055 test -z "$ac_c_werror_flag" ||
3056 test ! -s conftest.err
3057 } && test -s conftest.$ac_objext; then
3059 else
3060 echo "$as_me: failed program was:" >&5
3061 sed 's/^/| /' conftest.$ac_ext >&5
3063 ac_c_werror_flag=$ac_save_c_werror_flag
3064 CFLAGS="-g"
3065 cat >conftest.$ac_ext <<_ACEOF
3066 /* confdefs.h. */
3067 _ACEOF
3068 cat confdefs.h >>conftest.$ac_ext
3069 cat >>conftest.$ac_ext <<_ACEOF
3070 /* end confdefs.h. */
3073 main ()
3077 return 0;
3079 _ACEOF
3080 rm -f conftest.$ac_objext
3081 if { (ac_try="$ac_compile"
3082 case "(($ac_try" in
3083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3084 *) ac_try_echo=$ac_try;;
3085 esac
3086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3087 (eval "$ac_compile") 2>conftest.er1
3088 ac_status=$?
3089 grep -v '^ *+' conftest.er1 >conftest.err
3090 rm -f conftest.er1
3091 cat conftest.err >&5
3092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093 (exit $ac_status); } && {
3094 test -z "$ac_c_werror_flag" ||
3095 test ! -s conftest.err
3096 } && test -s conftest.$ac_objext; then
3097 ac_cv_prog_cc_g=yes
3098 else
3099 echo "$as_me: failed program was:" >&5
3100 sed 's/^/| /' conftest.$ac_ext >&5
3105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3112 ac_c_werror_flag=$ac_save_c_werror_flag
3114 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3115 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3116 if test "$ac_test_CFLAGS" = set; then
3117 CFLAGS=$ac_save_CFLAGS
3118 elif test $ac_cv_prog_cc_g = yes; then
3119 if test "$GCC" = yes; then
3120 CFLAGS="-g -O2"
3121 else
3122 CFLAGS="-g"
3124 else
3125 if test "$GCC" = yes; then
3126 CFLAGS="-O2"
3127 else
3128 CFLAGS=
3131 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3132 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3133 if test "${ac_cv_prog_cc_c89+set}" = set; then
3134 echo $ECHO_N "(cached) $ECHO_C" >&6
3135 else
3136 ac_cv_prog_cc_c89=no
3137 ac_save_CC=$CC
3138 cat >conftest.$ac_ext <<_ACEOF
3139 /* confdefs.h. */
3140 _ACEOF
3141 cat confdefs.h >>conftest.$ac_ext
3142 cat >>conftest.$ac_ext <<_ACEOF
3143 /* end confdefs.h. */
3144 #include <stdarg.h>
3145 #include <stdio.h>
3146 #include <sys/types.h>
3147 #include <sys/stat.h>
3148 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3149 struct buf { int x; };
3150 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3151 static char *e (p, i)
3152 char **p;
3153 int i;
3155 return p[i];
3157 static char *f (char * (*g) (char **, int), char **p, ...)
3159 char *s;
3160 va_list v;
3161 va_start (v,p);
3162 s = g (p, va_arg (v,int));
3163 va_end (v);
3164 return s;
3167 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3168 function prototypes and stuff, but not '\xHH' hex character constants.
3169 These don't provoke an error unfortunately, instead are silently treated
3170 as 'x'. The following induces an error, until -std is added to get
3171 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3172 array size at least. It's necessary to write '\x00'==0 to get something
3173 that's true only with -std. */
3174 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3176 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3177 inside strings and character constants. */
3178 #define FOO(x) 'x'
3179 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3181 int test (int i, double x);
3182 struct s1 {int (*f) (int a);};
3183 struct s2 {int (*f) (double a);};
3184 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3185 int argc;
3186 char **argv;
3188 main ()
3190 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3192 return 0;
3194 _ACEOF
3195 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3196 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3198 CC="$ac_save_CC $ac_arg"
3199 rm -f conftest.$ac_objext
3200 if { (ac_try="$ac_compile"
3201 case "(($ac_try" in
3202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3203 *) ac_try_echo=$ac_try;;
3204 esac
3205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3206 (eval "$ac_compile") 2>conftest.er1
3207 ac_status=$?
3208 grep -v '^ *+' conftest.er1 >conftest.err
3209 rm -f conftest.er1
3210 cat conftest.err >&5
3211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3212 (exit $ac_status); } && {
3213 test -z "$ac_c_werror_flag" ||
3214 test ! -s conftest.err
3215 } && test -s conftest.$ac_objext; then
3216 ac_cv_prog_cc_c89=$ac_arg
3217 else
3218 echo "$as_me: failed program was:" >&5
3219 sed 's/^/| /' conftest.$ac_ext >&5
3224 rm -f core conftest.err conftest.$ac_objext
3225 test "x$ac_cv_prog_cc_c89" != "xno" && break
3226 done
3227 rm -f conftest.$ac_ext
3228 CC=$ac_save_CC
3231 # AC_CACHE_VAL
3232 case "x$ac_cv_prog_cc_c89" in
3234 { echo "$as_me:$LINENO: result: none needed" >&5
3235 echo "${ECHO_T}none needed" >&6; } ;;
3236 xno)
3237 { echo "$as_me:$LINENO: result: unsupported" >&5
3238 echo "${ECHO_T}unsupported" >&6; } ;;
3240 CC="$CC $ac_cv_prog_cc_c89"
3241 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3242 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3243 esac
3246 ac_ext=c
3247 ac_cpp='$CPP $CPPFLAGS'
3248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3255 { echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5
3256 echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6; }
3258 # Check whether --with-cxx_main was given.
3259 if test "${with_cxx_main+set}" = set; then
3260 withval=$with_cxx_main;
3262 case $withval in
3263 no) with_cxx_main=no
3264 MAINCC='$(CC)';;
3265 yes) with_cxx_main=yes
3266 MAINCC='$(CXX)';;
3267 *) with_cxx_main=yes
3268 MAINCC=$withval
3269 if test -z "$CXX"
3270 then
3271 CXX=$withval
3272 fi;;
3273 esac
3274 else
3276 with_cxx_main=no
3277 MAINCC='$(CC)'
3281 { echo "$as_me:$LINENO: result: $with_cxx_main" >&5
3282 echo "${ECHO_T}$with_cxx_main" >&6; }
3284 preset_cxx="$CXX"
3285 if test -z "$CXX"
3286 then
3287 case "$CC" in
3288 gcc) # Extract the first word of "g++", so it can be a program name with args.
3289 set dummy g++; ac_word=$2
3290 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3292 if test "${ac_cv_path_CXX+set}" = set; then
3293 echo $ECHO_N "(cached) $ECHO_C" >&6
3294 else
3295 case $CXX in
3296 [\\/]* | ?:[\\/]*)
3297 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3301 for as_dir in notfound
3303 IFS=$as_save_IFS
3304 test -z "$as_dir" && as_dir=.
3305 for ac_exec_ext in '' $ac_executable_extensions; do
3306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3307 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3309 break 2
3311 done
3312 done
3313 IFS=$as_save_IFS
3315 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="g++"
3317 esac
3319 CXX=$ac_cv_path_CXX
3320 if test -n "$CXX"; then
3321 { echo "$as_me:$LINENO: result: $CXX" >&5
3322 echo "${ECHO_T}$CXX" >&6; }
3323 else
3324 { echo "$as_me:$LINENO: result: no" >&5
3325 echo "${ECHO_T}no" >&6; }
3329 cc) # Extract the first word of "c++", so it can be a program name with args.
3330 set dummy c++; ac_word=$2
3331 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3333 if test "${ac_cv_path_CXX+set}" = set; then
3334 echo $ECHO_N "(cached) $ECHO_C" >&6
3335 else
3336 case $CXX in
3337 [\\/]* | ?:[\\/]*)
3338 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3342 for as_dir in notfound
3344 IFS=$as_save_IFS
3345 test -z "$as_dir" && as_dir=.
3346 for ac_exec_ext in '' $ac_executable_extensions; do
3347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3348 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3349 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3350 break 2
3352 done
3353 done
3354 IFS=$as_save_IFS
3356 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="c++"
3358 esac
3360 CXX=$ac_cv_path_CXX
3361 if test -n "$CXX"; then
3362 { echo "$as_me:$LINENO: result: $CXX" >&5
3363 echo "${ECHO_T}$CXX" >&6; }
3364 else
3365 { echo "$as_me:$LINENO: result: no" >&5
3366 echo "${ECHO_T}no" >&6; }
3370 esac
3371 if test "$CXX" = "notfound"
3372 then
3373 CXX=""
3376 if test -z "$CXX"
3377 then
3378 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
3380 # Extract the first word of "$ac_prog", so it can be a program name with args.
3381 set dummy $ac_prog; ac_word=$2
3382 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3384 if test "${ac_cv_prog_CXX+set}" = set; then
3385 echo $ECHO_N "(cached) $ECHO_C" >&6
3386 else
3387 if test -n "$CXX"; then
3388 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3389 else
3390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3391 for as_dir in $PATH
3393 IFS=$as_save_IFS
3394 test -z "$as_dir" && as_dir=.
3395 for ac_exec_ext in '' $ac_executable_extensions; do
3396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3397 ac_cv_prog_CXX="$ac_prog"
3398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3399 break 2
3401 done
3402 done
3403 IFS=$as_save_IFS
3407 CXX=$ac_cv_prog_CXX
3408 if test -n "$CXX"; then
3409 { echo "$as_me:$LINENO: result: $CXX" >&5
3410 echo "${ECHO_T}$CXX" >&6; }
3411 else
3412 { echo "$as_me:$LINENO: result: no" >&5
3413 echo "${ECHO_T}no" >&6; }
3417 test -n "$CXX" && break
3418 done
3419 test -n "$CXX" || CXX="notfound"
3421 if test "$CXX" = "notfound"
3422 then
3423 CXX=""
3426 if test "$preset_cxx" != "$CXX"
3427 then
3428 { echo "$as_me:$LINENO: WARNING:
3430 By default, distutils will build C++ extension modules with \"$CXX\".
3431 If this is not intended, then set CXX on the configure command line.
3432 " >&5
3433 echo "$as_me: WARNING:
3435 By default, distutils will build C++ extension modules with \"$CXX\".
3436 If this is not intended, then set CXX on the configure command line.
3437 " >&2;}
3441 # checks for UNIX variants that set C preprocessor variables
3443 ac_ext=c
3444 ac_cpp='$CPP $CPPFLAGS'
3445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3448 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3449 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3450 # On Suns, sometimes $CPP names a directory.
3451 if test -n "$CPP" && test -d "$CPP"; then
3452 CPP=
3454 if test -z "$CPP"; then
3455 if test "${ac_cv_prog_CPP+set}" = set; then
3456 echo $ECHO_N "(cached) $ECHO_C" >&6
3457 else
3458 # Double quotes because CPP needs to be expanded
3459 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3461 ac_preproc_ok=false
3462 for ac_c_preproc_warn_flag in '' yes
3464 # Use a header file that comes with gcc, so configuring glibc
3465 # with a fresh cross-compiler works.
3466 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3467 # <limits.h> exists even on freestanding compilers.
3468 # On the NeXT, cc -E runs the code through the compiler's parser,
3469 # not just through cpp. "Syntax error" is here to catch this case.
3470 cat >conftest.$ac_ext <<_ACEOF
3471 /* confdefs.h. */
3472 _ACEOF
3473 cat confdefs.h >>conftest.$ac_ext
3474 cat >>conftest.$ac_ext <<_ACEOF
3475 /* end confdefs.h. */
3476 #ifdef __STDC__
3477 # include <limits.h>
3478 #else
3479 # include <assert.h>
3480 #endif
3481 Syntax error
3482 _ACEOF
3483 if { (ac_try="$ac_cpp conftest.$ac_ext"
3484 case "(($ac_try" in
3485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3486 *) ac_try_echo=$ac_try;;
3487 esac
3488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3489 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3490 ac_status=$?
3491 grep -v '^ *+' conftest.er1 >conftest.err
3492 rm -f conftest.er1
3493 cat conftest.err >&5
3494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495 (exit $ac_status); } >/dev/null && {
3496 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3497 test ! -s conftest.err
3498 }; then
3500 else
3501 echo "$as_me: failed program was:" >&5
3502 sed 's/^/| /' conftest.$ac_ext >&5
3504 # Broken: fails on valid input.
3505 continue
3508 rm -f conftest.err conftest.$ac_ext
3510 # OK, works on sane cases. Now check whether nonexistent headers
3511 # can be detected and how.
3512 cat >conftest.$ac_ext <<_ACEOF
3513 /* confdefs.h. */
3514 _ACEOF
3515 cat confdefs.h >>conftest.$ac_ext
3516 cat >>conftest.$ac_ext <<_ACEOF
3517 /* end confdefs.h. */
3518 #include <ac_nonexistent.h>
3519 _ACEOF
3520 if { (ac_try="$ac_cpp conftest.$ac_ext"
3521 case "(($ac_try" in
3522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3523 *) ac_try_echo=$ac_try;;
3524 esac
3525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3526 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3527 ac_status=$?
3528 grep -v '^ *+' conftest.er1 >conftest.err
3529 rm -f conftest.er1
3530 cat conftest.err >&5
3531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532 (exit $ac_status); } >/dev/null && {
3533 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3534 test ! -s conftest.err
3535 }; then
3536 # Broken: success on invalid input.
3537 continue
3538 else
3539 echo "$as_me: failed program was:" >&5
3540 sed 's/^/| /' conftest.$ac_ext >&5
3542 # Passes both tests.
3543 ac_preproc_ok=:
3544 break
3547 rm -f conftest.err conftest.$ac_ext
3549 done
3550 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3551 rm -f conftest.err conftest.$ac_ext
3552 if $ac_preproc_ok; then
3553 break
3556 done
3557 ac_cv_prog_CPP=$CPP
3560 CPP=$ac_cv_prog_CPP
3561 else
3562 ac_cv_prog_CPP=$CPP
3564 { echo "$as_me:$LINENO: result: $CPP" >&5
3565 echo "${ECHO_T}$CPP" >&6; }
3566 ac_preproc_ok=false
3567 for ac_c_preproc_warn_flag in '' yes
3569 # Use a header file that comes with gcc, so configuring glibc
3570 # with a fresh cross-compiler works.
3571 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3572 # <limits.h> exists even on freestanding compilers.
3573 # On the NeXT, cc -E runs the code through the compiler's parser,
3574 # not just through cpp. "Syntax error" is here to catch this case.
3575 cat >conftest.$ac_ext <<_ACEOF
3576 /* confdefs.h. */
3577 _ACEOF
3578 cat confdefs.h >>conftest.$ac_ext
3579 cat >>conftest.$ac_ext <<_ACEOF
3580 /* end confdefs.h. */
3581 #ifdef __STDC__
3582 # include <limits.h>
3583 #else
3584 # include <assert.h>
3585 #endif
3586 Syntax error
3587 _ACEOF
3588 if { (ac_try="$ac_cpp conftest.$ac_ext"
3589 case "(($ac_try" in
3590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3591 *) ac_try_echo=$ac_try;;
3592 esac
3593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3594 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3595 ac_status=$?
3596 grep -v '^ *+' conftest.er1 >conftest.err
3597 rm -f conftest.er1
3598 cat conftest.err >&5
3599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600 (exit $ac_status); } >/dev/null && {
3601 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3602 test ! -s conftest.err
3603 }; then
3605 else
3606 echo "$as_me: failed program was:" >&5
3607 sed 's/^/| /' conftest.$ac_ext >&5
3609 # Broken: fails on valid input.
3610 continue
3613 rm -f conftest.err conftest.$ac_ext
3615 # OK, works on sane cases. Now check whether nonexistent headers
3616 # can be detected and how.
3617 cat >conftest.$ac_ext <<_ACEOF
3618 /* confdefs.h. */
3619 _ACEOF
3620 cat confdefs.h >>conftest.$ac_ext
3621 cat >>conftest.$ac_ext <<_ACEOF
3622 /* end confdefs.h. */
3623 #include <ac_nonexistent.h>
3624 _ACEOF
3625 if { (ac_try="$ac_cpp conftest.$ac_ext"
3626 case "(($ac_try" in
3627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3628 *) ac_try_echo=$ac_try;;
3629 esac
3630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3631 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3632 ac_status=$?
3633 grep -v '^ *+' conftest.er1 >conftest.err
3634 rm -f conftest.er1
3635 cat conftest.err >&5
3636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3637 (exit $ac_status); } >/dev/null && {
3638 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3639 test ! -s conftest.err
3640 }; then
3641 # Broken: success on invalid input.
3642 continue
3643 else
3644 echo "$as_me: failed program was:" >&5
3645 sed 's/^/| /' conftest.$ac_ext >&5
3647 # Passes both tests.
3648 ac_preproc_ok=:
3649 break
3652 rm -f conftest.err conftest.$ac_ext
3654 done
3655 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3656 rm -f conftest.err conftest.$ac_ext
3657 if $ac_preproc_ok; then
3659 else
3660 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3661 See \`config.log' for more details." >&5
3662 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3663 See \`config.log' for more details." >&2;}
3664 { (exit 1); exit 1; }; }
3667 ac_ext=c
3668 ac_cpp='$CPP $CPPFLAGS'
3669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3674 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3675 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3676 if test "${ac_cv_path_GREP+set}" = set; then
3677 echo $ECHO_N "(cached) $ECHO_C" >&6
3678 else
3679 # Extract the first word of "grep ggrep" to use in msg output
3680 if test -z "$GREP"; then
3681 set dummy grep ggrep; ac_prog_name=$2
3682 if test "${ac_cv_path_GREP+set}" = set; then
3683 echo $ECHO_N "(cached) $ECHO_C" >&6
3684 else
3685 ac_path_GREP_found=false
3686 # Loop through the user's path and test for each of PROGNAME-LIST
3687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3688 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3690 IFS=$as_save_IFS
3691 test -z "$as_dir" && as_dir=.
3692 for ac_prog in grep ggrep; do
3693 for ac_exec_ext in '' $ac_executable_extensions; do
3694 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3695 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3696 # Check for GNU ac_path_GREP and select it if it is found.
3697 # Check for GNU $ac_path_GREP
3698 case `"$ac_path_GREP" --version 2>&1` in
3699 *GNU*)
3700 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3702 ac_count=0
3703 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3704 while :
3706 cat "conftest.in" "conftest.in" >"conftest.tmp"
3707 mv "conftest.tmp" "conftest.in"
3708 cp "conftest.in" "conftest.nl"
3709 echo 'GREP' >> "conftest.nl"
3710 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3711 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3712 ac_count=`expr $ac_count + 1`
3713 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3714 # Best one so far, save it but keep looking for a better one
3715 ac_cv_path_GREP="$ac_path_GREP"
3716 ac_path_GREP_max=$ac_count
3718 # 10*(2^10) chars as input seems more than enough
3719 test $ac_count -gt 10 && break
3720 done
3721 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3722 esac
3725 $ac_path_GREP_found && break 3
3726 done
3727 done
3729 done
3730 IFS=$as_save_IFS
3735 GREP="$ac_cv_path_GREP"
3736 if test -z "$GREP"; then
3737 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3738 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3739 { (exit 1); exit 1; }; }
3742 else
3743 ac_cv_path_GREP=$GREP
3748 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3749 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3750 GREP="$ac_cv_path_GREP"
3753 { echo "$as_me:$LINENO: checking for egrep" >&5
3754 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3755 if test "${ac_cv_path_EGREP+set}" = set; then
3756 echo $ECHO_N "(cached) $ECHO_C" >&6
3757 else
3758 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3759 then ac_cv_path_EGREP="$GREP -E"
3760 else
3761 # Extract the first word of "egrep" to use in msg output
3762 if test -z "$EGREP"; then
3763 set dummy egrep; ac_prog_name=$2
3764 if test "${ac_cv_path_EGREP+set}" = set; then
3765 echo $ECHO_N "(cached) $ECHO_C" >&6
3766 else
3767 ac_path_EGREP_found=false
3768 # Loop through the user's path and test for each of PROGNAME-LIST
3769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3770 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3772 IFS=$as_save_IFS
3773 test -z "$as_dir" && as_dir=.
3774 for ac_prog in egrep; do
3775 for ac_exec_ext in '' $ac_executable_extensions; do
3776 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3777 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3778 # Check for GNU ac_path_EGREP and select it if it is found.
3779 # Check for GNU $ac_path_EGREP
3780 case `"$ac_path_EGREP" --version 2>&1` in
3781 *GNU*)
3782 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3784 ac_count=0
3785 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3786 while :
3788 cat "conftest.in" "conftest.in" >"conftest.tmp"
3789 mv "conftest.tmp" "conftest.in"
3790 cp "conftest.in" "conftest.nl"
3791 echo 'EGREP' >> "conftest.nl"
3792 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3793 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3794 ac_count=`expr $ac_count + 1`
3795 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3796 # Best one so far, save it but keep looking for a better one
3797 ac_cv_path_EGREP="$ac_path_EGREP"
3798 ac_path_EGREP_max=$ac_count
3800 # 10*(2^10) chars as input seems more than enough
3801 test $ac_count -gt 10 && break
3802 done
3803 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3804 esac
3807 $ac_path_EGREP_found && break 3
3808 done
3809 done
3811 done
3812 IFS=$as_save_IFS
3817 EGREP="$ac_cv_path_EGREP"
3818 if test -z "$EGREP"; then
3819 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3820 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3821 { (exit 1); exit 1; }; }
3824 else
3825 ac_cv_path_EGREP=$EGREP
3831 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3832 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3833 EGREP="$ac_cv_path_EGREP"
3837 { echo "$as_me:$LINENO: checking for AIX" >&5
3838 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3839 cat >conftest.$ac_ext <<_ACEOF
3840 /* confdefs.h. */
3841 _ACEOF
3842 cat confdefs.h >>conftest.$ac_ext
3843 cat >>conftest.$ac_ext <<_ACEOF
3844 /* end confdefs.h. */
3845 #ifdef _AIX
3847 #endif
3849 _ACEOF
3850 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3851 $EGREP "yes" >/dev/null 2>&1; then
3852 { echo "$as_me:$LINENO: result: yes" >&5
3853 echo "${ECHO_T}yes" >&6; }
3854 cat >>confdefs.h <<\_ACEOF
3855 #define _ALL_SOURCE 1
3856 _ACEOF
3858 else
3859 { echo "$as_me:$LINENO: result: no" >&5
3860 echo "${ECHO_T}no" >&6; }
3862 rm -f conftest*
3866 # Check for unsupported systems
3867 case $ac_sys_system/$ac_sys_release in
3868 atheos*|Linux*/1*)
3869 echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported.
3870 echo See README for details.
3871 exit 1;;
3872 esac
3875 { echo "$as_me:$LINENO: checking for --with-suffix" >&5
3876 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6; }
3878 # Check whether --with-suffix was given.
3879 if test "${with_suffix+set}" = set; then
3880 withval=$with_suffix;
3881 case $withval in
3882 no) EXEEXT=;;
3883 yes) EXEEXT=.exe;;
3884 *) EXEEXT=$withval;;
3885 esac
3888 { echo "$as_me:$LINENO: result: $EXEEXT" >&5
3889 echo "${ECHO_T}$EXEEXT" >&6; }
3891 # Test whether we're running on a non-case-sensitive system, in which
3892 # case we give a warning if no ext is given
3894 { echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3895 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6; }
3896 if test ! -d CaseSensitiveTestDir; then
3897 mkdir CaseSensitiveTestDir
3900 if test -d casesensitivetestdir
3901 then
3902 { echo "$as_me:$LINENO: result: yes" >&5
3903 echo "${ECHO_T}yes" >&6; }
3904 BUILDEXEEXT=.exe
3905 else
3906 { echo "$as_me:$LINENO: result: no" >&5
3907 echo "${ECHO_T}no" >&6; }
3908 BUILDEXEEXT=$EXEEXT
3910 rmdir CaseSensitiveTestDir
3912 case $MACHDEP in
3913 bsdos*)
3914 case $CC in
3915 gcc) CC="$CC -D_HAVE_BSDI";;
3916 esac;;
3917 esac
3919 case $ac_sys_system in
3920 hp*|HP*)
3921 case $CC in
3922 cc|*/cc) CC="$CC -Ae";;
3923 esac;;
3924 SunOS*)
3925 # Some functions have a prototype only with that define, e.g. confstr
3927 cat >>confdefs.h <<\_ACEOF
3928 #define __EXTENSIONS__ 1
3929 _ACEOF
3932 esac
3936 { echo "$as_me:$LINENO: checking LIBRARY" >&5
3937 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6; }
3938 if test -z "$LIBRARY"
3939 then
3940 LIBRARY='libpython$(VERSION).a'
3942 { echo "$as_me:$LINENO: result: $LIBRARY" >&5
3943 echo "${ECHO_T}$LIBRARY" >&6; }
3945 # LDLIBRARY is the name of the library to link against (as opposed to the
3946 # name of the library into which to insert object files). BLDLIBRARY is also
3947 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3948 # is blank as the main program is not linked directly against LDLIBRARY.
3949 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3950 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3951 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3952 # DLLLIBRARY is the shared (i.e., DLL) library.
3954 # RUNSHARED is used to run shared python without installed libraries
3956 # INSTSONAME is the name of the shared library that will be use to install
3957 # on the system - some systems like version suffix, others don't
3964 LDLIBRARY="$LIBRARY"
3965 BLDLIBRARY='$(LDLIBRARY)'
3966 INSTSONAME='$(LDLIBRARY)'
3967 DLLLIBRARY=''
3968 LDLIBRARYDIR=''
3969 RUNSHARED=''
3971 # LINKCC is the command that links the python executable -- default is $(CC).
3972 # If CXX is set, and if it is needed to link a main function that was
3973 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3974 # python might then depend on the C++ runtime
3975 # This is altered for AIX in order to build the export list before
3976 # linking.
3978 { echo "$as_me:$LINENO: checking LINKCC" >&5
3979 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6; }
3980 if test -z "$LINKCC"
3981 then
3982 LINKCC='$(PURIFY) $(MAINCC)'
3983 case $ac_sys_system in
3984 AIX*)
3985 exp_extra="\"\""
3986 if test $ac_sys_release -ge 5 -o \
3987 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3988 exp_extra="."
3990 LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3991 QNX*)
3992 # qcc must be used because the other compilers do not
3993 # support -N.
3994 LINKCC=qcc;;
3995 esac
3997 { echo "$as_me:$LINENO: result: $LINKCC" >&5
3998 echo "${ECHO_T}$LINKCC" >&6; }
4000 # GNULD is set to "yes" if the GNU linker is used. If this goes wrong
4001 # make sure we default having it set to "no": this is used by
4002 # distutils.unixccompiler to know if it should add --enable-new-dtags
4003 # to linker command lines, and failing to detect GNU ld simply results
4004 # in the same bahaviour as before.
4006 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4007 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4008 ac_prog=ld
4009 if test "$GCC" = yes; then
4010 ac_prog=`$CC -print-prog-name=ld`
4012 case `"$ac_prog" -V 2>&1 < /dev/null` in
4013 *GNU*)
4014 GNULD=yes;;
4016 GNULD=no;;
4017 esac
4018 { echo "$as_me:$LINENO: result: $GNULD" >&5
4019 echo "${ECHO_T}$GNULD" >&6; }
4021 { echo "$as_me:$LINENO: checking for --enable-shared" >&5
4022 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6; }
4023 # Check whether --enable-shared was given.
4024 if test "${enable_shared+set}" = set; then
4025 enableval=$enable_shared;
4029 if test -z "$enable_shared"
4030 then
4031 case $ac_sys_system in
4032 CYGWIN* | atheos*)
4033 enable_shared="yes";;
4035 enable_shared="no";;
4036 esac
4038 { echo "$as_me:$LINENO: result: $enable_shared" >&5
4039 echo "${ECHO_T}$enable_shared" >&6; }
4041 { echo "$as_me:$LINENO: checking for --enable-profiling" >&5
4042 echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6; }
4043 # Check whether --enable-profiling was given.
4044 if test "${enable_profiling+set}" = set; then
4045 enableval=$enable_profiling; ac_save_cc="$CC"
4046 CC="$CC -pg"
4047 if test "$cross_compiling" = yes; then
4048 ac_enable_profiling="no"
4049 else
4050 cat >conftest.$ac_ext <<_ACEOF
4051 /* confdefs.h. */
4052 _ACEOF
4053 cat confdefs.h >>conftest.$ac_ext
4054 cat >>conftest.$ac_ext <<_ACEOF
4055 /* end confdefs.h. */
4056 int main() { return 0; }
4057 _ACEOF
4058 rm -f conftest$ac_exeext
4059 if { (ac_try="$ac_link"
4060 case "(($ac_try" in
4061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4062 *) ac_try_echo=$ac_try;;
4063 esac
4064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4065 (eval "$ac_link") 2>&5
4066 ac_status=$?
4067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4068 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4069 { (case "(($ac_try" in
4070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4071 *) ac_try_echo=$ac_try;;
4072 esac
4073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4074 (eval "$ac_try") 2>&5
4075 ac_status=$?
4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); }; }; then
4078 ac_enable_profiling="yes"
4079 else
4080 echo "$as_me: program exited with status $ac_status" >&5
4081 echo "$as_me: failed program was:" >&5
4082 sed 's/^/| /' conftest.$ac_ext >&5
4084 ( exit $ac_status )
4085 ac_enable_profiling="no"
4087 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4091 CC="$ac_save_cc"
4094 { echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
4095 echo "${ECHO_T}$ac_enable_profiling" >&6; }
4097 case "$ac_enable_profiling" in
4098 "yes")
4099 BASECFLAGS="-pg $BASECFLAGS"
4100 LDFLAGS="-pg $LDFLAGS"
4102 esac
4104 { echo "$as_me:$LINENO: checking LDLIBRARY" >&5
4105 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6; }
4107 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
4108 # library that we build, but we do not want to link against it (we
4109 # will find it with a -framework option). For this reason there is an
4110 # extra variable BLDLIBRARY against which Python and the extension
4111 # modules are linked, BLDLIBRARY. This is normally the same as
4112 # LDLIBRARY, but empty for MacOSX framework builds.
4113 if test "$enable_framework"
4114 then
4115 LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
4116 RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH"
4117 BLDLIBRARY=''
4118 else
4119 BLDLIBRARY='$(LDLIBRARY)'
4122 # Other platforms follow
4123 if test $enable_shared = "yes"; then
4125 cat >>confdefs.h <<\_ACEOF
4126 #define Py_ENABLE_SHARED 1
4127 _ACEOF
4129 case $ac_sys_system in
4130 BeOS*)
4131 LDLIBRARY='libpython$(VERSION).so'
4133 CYGWIN*)
4134 LDLIBRARY='libpython$(VERSION).dll.a'
4135 DLLLIBRARY='libpython$(VERSION).dll'
4137 SunOS*)
4138 LDLIBRARY='libpython$(VERSION).so'
4139 BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
4140 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4141 INSTSONAME="$LDLIBRARY".$SOVERSION
4143 Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*)
4144 LDLIBRARY='libpython$(VERSION).so'
4145 BLDLIBRARY='-L. -lpython$(VERSION)'
4146 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4147 case $ac_sys_system in
4148 FreeBSD*)
4149 SOVERSION=`echo $SOVERSION|cut -d "." -f 1`
4151 esac
4152 INSTSONAME="$LDLIBRARY".$SOVERSION
4154 hp*|HP*)
4155 case `uname -m` in
4156 ia64)
4157 LDLIBRARY='libpython$(VERSION).so'
4160 LDLIBRARY='libpython$(VERSION).sl'
4162 esac
4163 BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
4164 RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH}
4166 OSF*)
4167 LDLIBRARY='libpython$(VERSION).so'
4168 BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
4169 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4171 atheos*)
4172 LDLIBRARY='libpython$(VERSION).so'
4173 BLDLIBRARY='-L. -lpython$(VERSION)'
4174 RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
4176 Darwin*)
4177 LDLIBRARY='libpython$(VERSION).dylib'
4178 BLDLIBRARY='-L. -lpython$(VERSION)'
4179 RUNSHARED='DYLD_LIBRARY_PATH=`pwd`:${DYLD_LIBRARY_PATH}'
4182 esac
4183 else # shared is disabled
4184 case $ac_sys_system in
4185 CYGWIN*)
4186 BLDLIBRARY='$(LIBRARY)'
4187 LDLIBRARY='libpython$(VERSION).dll.a'
4189 esac
4192 { echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
4193 echo "${ECHO_T}$LDLIBRARY" >&6; }
4195 if test -n "$ac_tool_prefix"; then
4196 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4197 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4198 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4200 if test "${ac_cv_prog_RANLIB+set}" = set; then
4201 echo $ECHO_N "(cached) $ECHO_C" >&6
4202 else
4203 if test -n "$RANLIB"; then
4204 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4205 else
4206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4207 for as_dir in $PATH
4209 IFS=$as_save_IFS
4210 test -z "$as_dir" && as_dir=.
4211 for ac_exec_ext in '' $ac_executable_extensions; do
4212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4213 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4215 break 2
4217 done
4218 done
4219 IFS=$as_save_IFS
4223 RANLIB=$ac_cv_prog_RANLIB
4224 if test -n "$RANLIB"; then
4225 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4226 echo "${ECHO_T}$RANLIB" >&6; }
4227 else
4228 { echo "$as_me:$LINENO: result: no" >&5
4229 echo "${ECHO_T}no" >&6; }
4234 if test -z "$ac_cv_prog_RANLIB"; then
4235 ac_ct_RANLIB=$RANLIB
4236 # Extract the first word of "ranlib", so it can be a program name with args.
4237 set dummy ranlib; ac_word=$2
4238 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4240 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4241 echo $ECHO_N "(cached) $ECHO_C" >&6
4242 else
4243 if test -n "$ac_ct_RANLIB"; then
4244 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4245 else
4246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4247 for as_dir in $PATH
4249 IFS=$as_save_IFS
4250 test -z "$as_dir" && as_dir=.
4251 for ac_exec_ext in '' $ac_executable_extensions; do
4252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4253 ac_cv_prog_ac_ct_RANLIB="ranlib"
4254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4255 break 2
4257 done
4258 done
4259 IFS=$as_save_IFS
4263 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4264 if test -n "$ac_ct_RANLIB"; then
4265 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4266 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4267 else
4268 { echo "$as_me:$LINENO: result: no" >&5
4269 echo "${ECHO_T}no" >&6; }
4272 if test "x$ac_ct_RANLIB" = x; then
4273 RANLIB=":"
4274 else
4275 case $cross_compiling:$ac_tool_warned in
4276 yes:)
4277 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4278 whose name does not start with the host triplet. If you think this
4279 configuration is useful to you, please write to autoconf@gnu.org." >&5
4280 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4281 whose name does not start with the host triplet. If you think this
4282 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4283 ac_tool_warned=yes ;;
4284 esac
4285 RANLIB=$ac_ct_RANLIB
4287 else
4288 RANLIB="$ac_cv_prog_RANLIB"
4292 for ac_prog in ar aal
4294 # Extract the first word of "$ac_prog", so it can be a program name with args.
4295 set dummy $ac_prog; ac_word=$2
4296 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4298 if test "${ac_cv_prog_AR+set}" = set; then
4299 echo $ECHO_N "(cached) $ECHO_C" >&6
4300 else
4301 if test -n "$AR"; then
4302 ac_cv_prog_AR="$AR" # Let the user override the test.
4303 else
4304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4305 for as_dir in $PATH
4307 IFS=$as_save_IFS
4308 test -z "$as_dir" && as_dir=.
4309 for ac_exec_ext in '' $ac_executable_extensions; do
4310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4311 ac_cv_prog_AR="$ac_prog"
4312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4313 break 2
4315 done
4316 done
4317 IFS=$as_save_IFS
4321 AR=$ac_cv_prog_AR
4322 if test -n "$AR"; then
4323 { echo "$as_me:$LINENO: result: $AR" >&5
4324 echo "${ECHO_T}$AR" >&6; }
4325 else
4326 { echo "$as_me:$LINENO: result: no" >&5
4327 echo "${ECHO_T}no" >&6; }
4331 test -n "$AR" && break
4332 done
4333 test -n "$AR" || AR="ar"
4336 # tweak ARFLAGS only if the user didn't set it on the command line
4338 if test -z "$ARFLAGS"
4339 then
4340 ARFLAGS="rc"
4344 # Extract the first word of "svnversion", so it can be a program name with args.
4345 set dummy svnversion; ac_word=$2
4346 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4348 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
4349 echo $ECHO_N "(cached) $ECHO_C" >&6
4350 else
4351 if test -n "$SVNVERSION"; then
4352 ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test.
4353 else
4354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4355 for as_dir in $PATH
4357 IFS=$as_save_IFS
4358 test -z "$as_dir" && as_dir=.
4359 for ac_exec_ext in '' $ac_executable_extensions; do
4360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4361 ac_cv_prog_SVNVERSION="found"
4362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4363 break 2
4365 done
4366 done
4367 IFS=$as_save_IFS
4369 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION="not-found"
4372 SVNVERSION=$ac_cv_prog_SVNVERSION
4373 if test -n "$SVNVERSION"; then
4374 { echo "$as_me:$LINENO: result: $SVNVERSION" >&5
4375 echo "${ECHO_T}$SVNVERSION" >&6; }
4376 else
4377 { echo "$as_me:$LINENO: result: no" >&5
4378 echo "${ECHO_T}no" >&6; }
4382 if test $SVNVERSION = found
4383 then
4384 SVNVERSION="svnversion \$(srcdir)"
4385 else
4386 SVNVERSION="echo Unversioned directory"
4389 case $MACHDEP in
4390 bsdos*|hp*|HP*)
4391 # install -d does not work on BSDI or HP-UX
4392 if test -z "$INSTALL"
4393 then
4394 INSTALL="${srcdir}/install-sh -c"
4396 esac
4397 ac_aux_dir=
4398 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4399 if test -f "$ac_dir/install-sh"; then
4400 ac_aux_dir=$ac_dir
4401 ac_install_sh="$ac_aux_dir/install-sh -c"
4402 break
4403 elif test -f "$ac_dir/install.sh"; then
4404 ac_aux_dir=$ac_dir
4405 ac_install_sh="$ac_aux_dir/install.sh -c"
4406 break
4407 elif test -f "$ac_dir/shtool"; then
4408 ac_aux_dir=$ac_dir
4409 ac_install_sh="$ac_aux_dir/shtool install -c"
4410 break
4412 done
4413 if test -z "$ac_aux_dir"; then
4414 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4415 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4416 { (exit 1); exit 1; }; }
4419 # These three variables are undocumented and unsupported,
4420 # and are intended to be withdrawn in a future Autoconf release.
4421 # They can cause serious problems if a builder's source tree is in a directory
4422 # whose full name contains unusual characters.
4423 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4424 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4425 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4428 # Find a good install program. We prefer a C program (faster),
4429 # so one script is as good as another. But avoid the broken or
4430 # incompatible versions:
4431 # SysV /etc/install, /usr/sbin/install
4432 # SunOS /usr/etc/install
4433 # IRIX /sbin/install
4434 # AIX /bin/install
4435 # AmigaOS /C/install, which installs bootblocks on floppy discs
4436 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4437 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4438 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4439 # OS/2's system install, which has a completely different semantic
4440 # ./install, which can be erroneously created by make from ./install.sh.
4441 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4442 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4443 if test -z "$INSTALL"; then
4444 if test "${ac_cv_path_install+set}" = set; then
4445 echo $ECHO_N "(cached) $ECHO_C" >&6
4446 else
4447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4448 for as_dir in $PATH
4450 IFS=$as_save_IFS
4451 test -z "$as_dir" && as_dir=.
4452 # Account for people who put trailing slashes in PATH elements.
4453 case $as_dir/ in
4454 ./ | .// | /cC/* | \
4455 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4456 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4457 /usr/ucb/* ) ;;
4459 # OSF1 and SCO ODT 3.0 have their own names for install.
4460 # Don't use installbsd from OSF since it installs stuff as root
4461 # by default.
4462 for ac_prog in ginstall scoinst install; do
4463 for ac_exec_ext in '' $ac_executable_extensions; do
4464 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4465 if test $ac_prog = install &&
4466 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4467 # AIX install. It has an incompatible calling convention.
4469 elif test $ac_prog = install &&
4470 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4471 # program-specific install script used by HP pwplus--don't use.
4473 else
4474 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4475 break 3
4478 done
4479 done
4481 esac
4482 done
4483 IFS=$as_save_IFS
4487 if test "${ac_cv_path_install+set}" = set; then
4488 INSTALL=$ac_cv_path_install
4489 else
4490 # As a last resort, use the slow shell script. Don't cache a
4491 # value for INSTALL within a source directory, because that will
4492 # break other packages using the cache if that directory is
4493 # removed, or if the value is a relative name.
4494 INSTALL=$ac_install_sh
4497 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4498 echo "${ECHO_T}$INSTALL" >&6; }
4500 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4501 # It thinks the first close brace ends the variable substitution.
4502 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4504 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4506 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4509 # Not every filesystem supports hard links
4511 if test -z "$LN" ; then
4512 case $ac_sys_system in
4513 BeOS*) LN="ln -s";;
4514 CYGWIN*) LN="ln -s";;
4515 atheos*) LN="ln -s";;
4516 *) LN=ln;;
4517 esac
4520 # Check for --with-pydebug
4521 { echo "$as_me:$LINENO: checking for --with-pydebug" >&5
4522 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6; }
4524 # Check whether --with-pydebug was given.
4525 if test "${with_pydebug+set}" = set; then
4526 withval=$with_pydebug;
4527 if test "$withval" != no
4528 then
4530 cat >>confdefs.h <<\_ACEOF
4531 #define Py_DEBUG 1
4532 _ACEOF
4534 { echo "$as_me:$LINENO: result: yes" >&5
4535 echo "${ECHO_T}yes" >&6; };
4536 Py_DEBUG='true'
4537 else { echo "$as_me:$LINENO: result: no" >&5
4538 echo "${ECHO_T}no" >&6; }; Py_DEBUG='false'
4540 else
4541 { echo "$as_me:$LINENO: result: no" >&5
4542 echo "${ECHO_T}no" >&6; }
4546 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
4547 # merged with this chunk of code?
4549 # Optimizer/debugger flags
4550 # ------------------------
4551 # (The following bit of code is complicated enough - please keep things
4552 # indented properly. Just pretend you're editing Python code. ;-)
4554 # There are two parallel sets of case statements below, one that checks to
4555 # see if OPT was set and one that does BASECFLAGS setting based upon
4556 # compiler and platform. BASECFLAGS tweaks need to be made even if the
4557 # user set OPT.
4559 # tweak OPT based on compiler and platform, only if the user didn't set
4560 # it on the command line
4562 if test -z "$OPT"
4563 then
4564 case $GCC in
4565 yes)
4566 if test "$CC" != 'g++' ; then
4567 STRICT_PROTO="-Wstrict-prototypes"
4569 # For gcc 4.x we need to use -fwrapv so lets check if its supported
4570 if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then
4571 WRAP="-fwrapv"
4573 case $ac_cv_prog_cc_g in
4574 yes)
4575 if test "$Py_DEBUG" = 'true' ; then
4576 # Optimization messes up debuggers, so turn it off for
4577 # debug builds.
4578 OPT="-g -Wall $STRICT_PROTO"
4579 else
4580 OPT="-g $WRAP -O3 -Wall $STRICT_PROTO"
4584 OPT="-O3 -Wall $STRICT_PROTO"
4586 esac
4587 case $ac_sys_system in
4588 SCO_SV*) OPT="$OPT -m486 -DSCO5"
4590 esac
4594 OPT="-O"
4596 esac
4601 # The -arch flags for universal builds on OSX
4602 UNIVERSAL_ARCH_FLAGS=
4605 # tweak BASECFLAGS based on compiler and platform
4606 case $GCC in
4607 yes)
4608 # Python violates C99 rules, by casting between incompatible
4609 # pointer types. GCC may generate bad code as a result of that,
4610 # so use -fno-strict-aliasing if supported.
4611 { echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
4612 echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6; }
4613 ac_save_cc="$CC"
4614 CC="$CC -fno-strict-aliasing"
4615 if test "${ac_cv_no_strict_aliasing_ok+set}" = set; then
4616 echo $ECHO_N "(cached) $ECHO_C" >&6
4617 else
4618 cat >conftest.$ac_ext <<_ACEOF
4619 /* confdefs.h. */
4620 _ACEOF
4621 cat confdefs.h >>conftest.$ac_ext
4622 cat >>conftest.$ac_ext <<_ACEOF
4623 /* end confdefs.h. */
4626 main ()
4628 int main() { return 0; }
4630 return 0;
4632 _ACEOF
4633 rm -f conftest.$ac_objext
4634 if { (ac_try="$ac_compile"
4635 case "(($ac_try" in
4636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4637 *) ac_try_echo=$ac_try;;
4638 esac
4639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4640 (eval "$ac_compile") 2>conftest.er1
4641 ac_status=$?
4642 grep -v '^ *+' conftest.er1 >conftest.err
4643 rm -f conftest.er1
4644 cat conftest.err >&5
4645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4646 (exit $ac_status); } && {
4647 test -z "$ac_c_werror_flag" ||
4648 test ! -s conftest.err
4649 } && test -s conftest.$ac_objext; then
4650 ac_cv_no_strict_aliasing_ok=yes
4651 else
4652 echo "$as_me: failed program was:" >&5
4653 sed 's/^/| /' conftest.$ac_ext >&5
4655 ac_cv_no_strict_aliasing_ok=no
4658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4661 CC="$ac_save_cc"
4662 { echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
4663 echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6; }
4664 if test $ac_cv_no_strict_aliasing_ok = yes
4665 then
4666 BASECFLAGS="$BASECFLAGS -fno-strict-aliasing"
4669 # if using gcc on alpha, use -mieee to get (near) full IEEE 754
4670 # support. Without this, treatment of subnormals doesn't follow
4671 # the standard.
4672 case $ac_sys_machine in
4673 alpha*)
4674 BASECFLAGS="$BASECFLAGS -mieee"
4676 esac
4678 case $ac_sys_system in
4679 SCO_SV*)
4680 BASECFLAGS="$BASECFLAGS -m486 -DSCO5"
4682 # is there any other compiler on Darwin besides gcc?
4683 Darwin*)
4684 # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd
4685 # used to be here, but non-Apple gcc doesn't accept them.
4688 if test "${enable_universalsdk}"; then
4689 UNIVERSAL_ARCH_FLAGS=""
4690 if test "$UNIVERSAL_ARCHS" = "32-bit" ; then
4691 UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386"
4692 ARCH_RUN_32BIT=""
4693 LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386"
4695 elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then
4696 UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64"
4697 LIPO_32BIT_FLAGS=""
4698 ARCH_RUN_32BIT="true"
4700 elif test "$UNIVERSAL_ARCHS" = "all" ; then
4701 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64"
4702 LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386"
4703 ARCH_RUN_32BIT="arch -i386 -ppc"
4705 elif test "$UNIVERSAL_ARCHS" = "intel" ; then
4706 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64"
4707 LIPO_32BIT_FLAGS="-extract i386"
4708 ARCH_RUN_32BIT="arch -i386"
4710 elif test "$UNIVERSAL_ARCHS" = "3-way" ; then
4711 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64"
4712 LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386"
4713 ARCH_RUN_32BIT="arch -i386 -ppc7400"
4715 else
4716 { { echo "$as_me:$LINENO: error: proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" >&5
4717 echo "$as_me: error: proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" >&2;}
4718 { (exit 1); exit 1; }; }
4723 BASECFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${BASECFLAGS}"
4724 tgt=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
4725 if test "${UNIVERSALSDK}" != "/" -a "${tgt}" '>' '10.4' ; then
4726 CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}"
4730 # Calculate the right deployment target for this build.
4732 cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
4733 if test ${cur_target} '>' 10.2; then
4734 cur_target=10.3
4735 if test ${enable_universalsdk}; then
4736 if test "${UNIVERSAL_ARCHS}" = "all"; then
4737 # Ensure that the default platform for a
4738 # 4-way universal build is OSX 10.5,
4739 # that's the first OS release where
4740 # 4-way builds make sense.
4741 cur_target='10.5'
4743 elif test "${UNIVERSAL_ARCHS}" = "3-way"; then
4744 cur_target='10.5'
4746 elif test "${UNIVERSAL_ARCHS}" = "intel"; then
4747 cur_target='10.5'
4749 elif test "${UNIVERSAL_ARCHS}" = "64-bit"; then
4750 cur_target='10.5'
4752 else
4753 if test `arch` = "i386"; then
4754 # On Intel macs default to a deployment
4755 # target of 10.4, that's the first OSX
4756 # release with Intel support.
4757 cur_target="10.4"
4761 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
4763 # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the
4764 # environment with a value that is the same as what we'll use
4765 # in the Makefile to ensure that we'll get the same compiler
4766 # environment during configure and build time.
4767 MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET"
4768 export MACOSX_DEPLOYMENT_TARGET
4769 EXPORT_MACOSX_DEPLOYMENT_TARGET=''
4772 OSF*)
4773 BASECFLAGS="$BASECFLAGS -mieee"
4775 esac
4779 case $ac_sys_system in
4780 OpenUNIX*|UnixWare*)
4781 BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
4783 OSF*)
4784 BASECFLAGS="$BASECFLAGS -ieee -std"
4786 SCO_SV*)
4787 BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5"
4789 esac
4791 esac
4793 if test "$Py_DEBUG" = 'true'; then
4795 else
4796 OPT="-DNDEBUG $OPT"
4799 if test "$ac_arch_flags"
4800 then
4801 BASECFLAGS="$BASECFLAGS $ac_arch_flags"
4804 # disable check for icc since it seems to pass, but generates a warning
4805 if test "$CC" = icc
4806 then
4807 ac_cv_opt_olimit_ok=no
4810 { echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
4811 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6; }
4812 if test "${ac_cv_opt_olimit_ok+set}" = set; then
4813 echo $ECHO_N "(cached) $ECHO_C" >&6
4814 else
4815 ac_save_cc="$CC"
4816 CC="$CC -OPT:Olimit=0"
4817 cat >conftest.$ac_ext <<_ACEOF
4818 /* confdefs.h. */
4819 _ACEOF
4820 cat confdefs.h >>conftest.$ac_ext
4821 cat >>conftest.$ac_ext <<_ACEOF
4822 /* end confdefs.h. */
4825 main ()
4827 int main() { return 0; }
4829 return 0;
4831 _ACEOF
4832 rm -f conftest.$ac_objext
4833 if { (ac_try="$ac_compile"
4834 case "(($ac_try" in
4835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4836 *) ac_try_echo=$ac_try;;
4837 esac
4838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4839 (eval "$ac_compile") 2>conftest.er1
4840 ac_status=$?
4841 grep -v '^ *+' conftest.er1 >conftest.err
4842 rm -f conftest.er1
4843 cat conftest.err >&5
4844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4845 (exit $ac_status); } && {
4846 test -z "$ac_c_werror_flag" ||
4847 test ! -s conftest.err
4848 } && test -s conftest.$ac_objext; then
4849 ac_cv_opt_olimit_ok=yes
4850 else
4851 echo "$as_me: failed program was:" >&5
4852 sed 's/^/| /' conftest.$ac_ext >&5
4854 ac_cv_opt_olimit_ok=no
4857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4858 CC="$ac_save_cc"
4861 { echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
4862 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6; }
4863 if test $ac_cv_opt_olimit_ok = yes; then
4864 case $ac_sys_system in
4865 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
4866 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
4867 # environment?
4868 Darwin*)
4871 BASECFLAGS="$BASECFLAGS -OPT:Olimit=0"
4873 esac
4874 else
4875 { echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
4876 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6; }
4877 if test "${ac_cv_olimit_ok+set}" = set; then
4878 echo $ECHO_N "(cached) $ECHO_C" >&6
4879 else
4880 ac_save_cc="$CC"
4881 CC="$CC -Olimit 1500"
4882 cat >conftest.$ac_ext <<_ACEOF
4883 /* confdefs.h. */
4884 _ACEOF
4885 cat confdefs.h >>conftest.$ac_ext
4886 cat >>conftest.$ac_ext <<_ACEOF
4887 /* end confdefs.h. */
4890 main ()
4892 int main() { return 0; }
4894 return 0;
4896 _ACEOF
4897 rm -f conftest.$ac_objext
4898 if { (ac_try="$ac_compile"
4899 case "(($ac_try" in
4900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4901 *) ac_try_echo=$ac_try;;
4902 esac
4903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4904 (eval "$ac_compile") 2>conftest.er1
4905 ac_status=$?
4906 grep -v '^ *+' conftest.er1 >conftest.err
4907 rm -f conftest.er1
4908 cat conftest.err >&5
4909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910 (exit $ac_status); } && {
4911 test -z "$ac_c_werror_flag" ||
4912 test ! -s conftest.err
4913 } && test -s conftest.$ac_objext; then
4914 ac_cv_olimit_ok=yes
4915 else
4916 echo "$as_me: failed program was:" >&5
4917 sed 's/^/| /' conftest.$ac_ext >&5
4919 ac_cv_olimit_ok=no
4922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4923 CC="$ac_save_cc"
4926 { echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
4927 echo "${ECHO_T}$ac_cv_olimit_ok" >&6; }
4928 if test $ac_cv_olimit_ok = yes; then
4929 BASECFLAGS="$BASECFLAGS -Olimit 1500"
4933 # Check whether GCC supports PyArg_ParseTuple format
4934 if test "$GCC" = "yes"
4935 then
4936 { echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5
4937 echo $ECHO_N "checking whether gcc supports ParseTuple __format__... $ECHO_C" >&6; }
4938 save_CFLAGS=$CFLAGS
4939 CFLAGS="$CFLAGS -Werror"
4940 cat >conftest.$ac_ext <<_ACEOF
4941 /* confdefs.h. */
4942 _ACEOF
4943 cat confdefs.h >>conftest.$ac_ext
4944 cat >>conftest.$ac_ext <<_ACEOF
4945 /* end confdefs.h. */
4947 void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2)));
4950 main ()
4954 return 0;
4956 _ACEOF
4957 rm -f conftest.$ac_objext
4958 if { (ac_try="$ac_compile"
4959 case "(($ac_try" in
4960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4961 *) ac_try_echo=$ac_try;;
4962 esac
4963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4964 (eval "$ac_compile") 2>conftest.er1
4965 ac_status=$?
4966 grep -v '^ *+' conftest.er1 >conftest.err
4967 rm -f conftest.er1
4968 cat conftest.err >&5
4969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970 (exit $ac_status); } && {
4971 test -z "$ac_c_werror_flag" ||
4972 test ! -s conftest.err
4973 } && test -s conftest.$ac_objext; then
4975 cat >>confdefs.h <<\_ACEOF
4976 #define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1
4977 _ACEOF
4979 { echo "$as_me:$LINENO: result: yes" >&5
4980 echo "${ECHO_T}yes" >&6; }
4981 else
4982 echo "$as_me: failed program was:" >&5
4983 sed 's/^/| /' conftest.$ac_ext >&5
4985 { echo "$as_me:$LINENO: result: no" >&5
4986 echo "${ECHO_T}no" >&6; }
4990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4991 CFLAGS=$save_CFLAGS
4994 # On some compilers, pthreads are available without further options
4995 # (e.g. MacOS X). On some of these systems, the compiler will not
4996 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
4997 # So we have to see first whether pthreads are available without
4998 # options before we can check whether -Kpthread improves anything.
4999 { echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
5000 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6; }
5001 if test "${ac_cv_pthread_is_default+set}" = set; then
5002 echo $ECHO_N "(cached) $ECHO_C" >&6
5003 else
5004 if test "$cross_compiling" = yes; then
5005 ac_cv_pthread_is_default=no
5006 else
5007 cat >conftest.$ac_ext <<_ACEOF
5008 /* confdefs.h. */
5009 _ACEOF
5010 cat confdefs.h >>conftest.$ac_ext
5011 cat >>conftest.$ac_ext <<_ACEOF
5012 /* end confdefs.h. */
5014 #include <pthread.h>
5016 void* routine(void* p){return NULL;}
5018 int main(){
5019 pthread_t p;
5020 if(pthread_create(&p,NULL,routine,NULL)!=0)
5021 return 1;
5022 (void)pthread_detach(p);
5023 return 0;
5026 _ACEOF
5027 rm -f conftest$ac_exeext
5028 if { (ac_try="$ac_link"
5029 case "(($ac_try" in
5030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5031 *) ac_try_echo=$ac_try;;
5032 esac
5033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5034 (eval "$ac_link") 2>&5
5035 ac_status=$?
5036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5037 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5038 { (case "(($ac_try" in
5039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5040 *) ac_try_echo=$ac_try;;
5041 esac
5042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5043 (eval "$ac_try") 2>&5
5044 ac_status=$?
5045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5046 (exit $ac_status); }; }; then
5048 ac_cv_pthread_is_default=yes
5049 ac_cv_kthread=no
5050 ac_cv_pthread=no
5052 else
5053 echo "$as_me: program exited with status $ac_status" >&5
5054 echo "$as_me: failed program was:" >&5
5055 sed 's/^/| /' conftest.$ac_ext >&5
5057 ( exit $ac_status )
5058 ac_cv_pthread_is_default=no
5060 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5067 { echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
5068 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6; }
5071 if test $ac_cv_pthread_is_default = yes
5072 then
5073 ac_cv_kpthread=no
5074 else
5075 # -Kpthread, if available, provides the right #defines
5076 # and linker options to make pthread_create available
5077 # Some compilers won't report that they do not support -Kpthread,
5078 # so we need to run a program to see whether it really made the
5079 # function available.
5080 { echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
5081 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6; }
5082 if test "${ac_cv_kpthread+set}" = set; then
5083 echo $ECHO_N "(cached) $ECHO_C" >&6
5084 else
5085 ac_save_cc="$CC"
5086 CC="$CC -Kpthread"
5087 if test "$cross_compiling" = yes; then
5088 ac_cv_kpthread=no
5089 else
5090 cat >conftest.$ac_ext <<_ACEOF
5091 /* confdefs.h. */
5092 _ACEOF
5093 cat confdefs.h >>conftest.$ac_ext
5094 cat >>conftest.$ac_ext <<_ACEOF
5095 /* end confdefs.h. */
5097 #include <pthread.h>
5099 void* routine(void* p){return NULL;}
5101 int main(){
5102 pthread_t p;
5103 if(pthread_create(&p,NULL,routine,NULL)!=0)
5104 return 1;
5105 (void)pthread_detach(p);
5106 return 0;
5109 _ACEOF
5110 rm -f conftest$ac_exeext
5111 if { (ac_try="$ac_link"
5112 case "(($ac_try" in
5113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5114 *) ac_try_echo=$ac_try;;
5115 esac
5116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5117 (eval "$ac_link") 2>&5
5118 ac_status=$?
5119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5120 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5121 { (case "(($ac_try" in
5122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5123 *) ac_try_echo=$ac_try;;
5124 esac
5125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5126 (eval "$ac_try") 2>&5
5127 ac_status=$?
5128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129 (exit $ac_status); }; }; then
5130 ac_cv_kpthread=yes
5131 else
5132 echo "$as_me: program exited with status $ac_status" >&5
5133 echo "$as_me: failed program was:" >&5
5134 sed 's/^/| /' conftest.$ac_ext >&5
5136 ( exit $ac_status )
5137 ac_cv_kpthread=no
5139 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5143 CC="$ac_save_cc"
5146 { echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
5147 echo "${ECHO_T}$ac_cv_kpthread" >&6; }
5150 if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
5151 then
5152 # -Kthread, if available, provides the right #defines
5153 # and linker options to make pthread_create available
5154 # Some compilers won't report that they do not support -Kthread,
5155 # so we need to run a program to see whether it really made the
5156 # function available.
5157 { echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
5158 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6; }
5159 if test "${ac_cv_kthread+set}" = set; then
5160 echo $ECHO_N "(cached) $ECHO_C" >&6
5161 else
5162 ac_save_cc="$CC"
5163 CC="$CC -Kthread"
5164 if test "$cross_compiling" = yes; then
5165 ac_cv_kthread=no
5166 else
5167 cat >conftest.$ac_ext <<_ACEOF
5168 /* confdefs.h. */
5169 _ACEOF
5170 cat confdefs.h >>conftest.$ac_ext
5171 cat >>conftest.$ac_ext <<_ACEOF
5172 /* end confdefs.h. */
5174 #include <pthread.h>
5176 void* routine(void* p){return NULL;}
5178 int main(){
5179 pthread_t p;
5180 if(pthread_create(&p,NULL,routine,NULL)!=0)
5181 return 1;
5182 (void)pthread_detach(p);
5183 return 0;
5186 _ACEOF
5187 rm -f conftest$ac_exeext
5188 if { (ac_try="$ac_link"
5189 case "(($ac_try" in
5190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5191 *) ac_try_echo=$ac_try;;
5192 esac
5193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5194 (eval "$ac_link") 2>&5
5195 ac_status=$?
5196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5198 { (case "(($ac_try" in
5199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5200 *) ac_try_echo=$ac_try;;
5201 esac
5202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5203 (eval "$ac_try") 2>&5
5204 ac_status=$?
5205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206 (exit $ac_status); }; }; then
5207 ac_cv_kthread=yes
5208 else
5209 echo "$as_me: program exited with status $ac_status" >&5
5210 echo "$as_me: failed program was:" >&5
5211 sed 's/^/| /' conftest.$ac_ext >&5
5213 ( exit $ac_status )
5214 ac_cv_kthread=no
5216 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5220 CC="$ac_save_cc"
5223 { echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
5224 echo "${ECHO_T}$ac_cv_kthread" >&6; }
5227 if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
5228 then
5229 # -pthread, if available, provides the right #defines
5230 # and linker options to make pthread_create available
5231 # Some compilers won't report that they do not support -pthread,
5232 # so we need to run a program to see whether it really made the
5233 # function available.
5234 { echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
5235 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6; }
5236 if test "${ac_cv_thread+set}" = set; then
5237 echo $ECHO_N "(cached) $ECHO_C" >&6
5238 else
5239 ac_save_cc="$CC"
5240 CC="$CC -pthread"
5241 if test "$cross_compiling" = yes; then
5242 ac_cv_pthread=no
5243 else
5244 cat >conftest.$ac_ext <<_ACEOF
5245 /* confdefs.h. */
5246 _ACEOF
5247 cat confdefs.h >>conftest.$ac_ext
5248 cat >>conftest.$ac_ext <<_ACEOF
5249 /* end confdefs.h. */
5251 #include <pthread.h>
5253 void* routine(void* p){return NULL;}
5255 int main(){
5256 pthread_t p;
5257 if(pthread_create(&p,NULL,routine,NULL)!=0)
5258 return 1;
5259 (void)pthread_detach(p);
5260 return 0;
5263 _ACEOF
5264 rm -f conftest$ac_exeext
5265 if { (ac_try="$ac_link"
5266 case "(($ac_try" in
5267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5268 *) ac_try_echo=$ac_try;;
5269 esac
5270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5271 (eval "$ac_link") 2>&5
5272 ac_status=$?
5273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5275 { (case "(($ac_try" in
5276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5277 *) ac_try_echo=$ac_try;;
5278 esac
5279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5280 (eval "$ac_try") 2>&5
5281 ac_status=$?
5282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5283 (exit $ac_status); }; }; then
5284 ac_cv_pthread=yes
5285 else
5286 echo "$as_me: program exited with status $ac_status" >&5
5287 echo "$as_me: failed program was:" >&5
5288 sed 's/^/| /' conftest.$ac_ext >&5
5290 ( exit $ac_status )
5291 ac_cv_pthread=no
5293 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5297 CC="$ac_save_cc"
5300 { echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
5301 echo "${ECHO_T}$ac_cv_pthread" >&6; }
5304 # If we have set a CC compiler flag for thread support then
5305 # check if it works for CXX, too.
5306 ac_cv_cxx_thread=no
5307 if test ! -z "$CXX"
5308 then
5309 { echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
5310 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6; }
5311 ac_save_cxx="$CXX"
5313 if test "$ac_cv_kpthread" = "yes"
5314 then
5315 CXX="$CXX -Kpthread"
5316 ac_cv_cxx_thread=yes
5317 elif test "$ac_cv_kthread" = "yes"
5318 then
5319 CXX="$CXX -Kthread"
5320 ac_cv_cxx_thread=yes
5321 elif test "$ac_cv_pthread" = "yes"
5322 then
5323 CXX="$CXX -pthread"
5324 ac_cv_cxx_thread=yes
5327 if test $ac_cv_cxx_thread = yes
5328 then
5329 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
5330 $CXX -c conftest.$ac_ext 2>&5
5331 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
5332 && test -s conftest$ac_exeext && ./conftest$ac_exeext
5333 then
5334 ac_cv_cxx_thread=yes
5335 else
5336 ac_cv_cxx_thread=no
5338 rm -fr conftest*
5340 { echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
5341 echo "${ECHO_T}$ac_cv_cxx_thread" >&6; }
5343 CXX="$ac_save_cxx"
5346 # checks for header files
5347 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5348 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5349 if test "${ac_cv_header_stdc+set}" = set; then
5350 echo $ECHO_N "(cached) $ECHO_C" >&6
5351 else
5352 cat >conftest.$ac_ext <<_ACEOF
5353 /* confdefs.h. */
5354 _ACEOF
5355 cat confdefs.h >>conftest.$ac_ext
5356 cat >>conftest.$ac_ext <<_ACEOF
5357 /* end confdefs.h. */
5358 #include <stdlib.h>
5359 #include <stdarg.h>
5360 #include <string.h>
5361 #include <float.h>
5364 main ()
5368 return 0;
5370 _ACEOF
5371 rm -f conftest.$ac_objext
5372 if { (ac_try="$ac_compile"
5373 case "(($ac_try" in
5374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5375 *) ac_try_echo=$ac_try;;
5376 esac
5377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5378 (eval "$ac_compile") 2>conftest.er1
5379 ac_status=$?
5380 grep -v '^ *+' conftest.er1 >conftest.err
5381 rm -f conftest.er1
5382 cat conftest.err >&5
5383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384 (exit $ac_status); } && {
5385 test -z "$ac_c_werror_flag" ||
5386 test ! -s conftest.err
5387 } && test -s conftest.$ac_objext; then
5388 ac_cv_header_stdc=yes
5389 else
5390 echo "$as_me: failed program was:" >&5
5391 sed 's/^/| /' conftest.$ac_ext >&5
5393 ac_cv_header_stdc=no
5396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5398 if test $ac_cv_header_stdc = yes; then
5399 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5400 cat >conftest.$ac_ext <<_ACEOF
5401 /* confdefs.h. */
5402 _ACEOF
5403 cat confdefs.h >>conftest.$ac_ext
5404 cat >>conftest.$ac_ext <<_ACEOF
5405 /* end confdefs.h. */
5406 #include <string.h>
5408 _ACEOF
5409 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5410 $EGREP "memchr" >/dev/null 2>&1; then
5412 else
5413 ac_cv_header_stdc=no
5415 rm -f conftest*
5419 if test $ac_cv_header_stdc = yes; then
5420 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5421 cat >conftest.$ac_ext <<_ACEOF
5422 /* confdefs.h. */
5423 _ACEOF
5424 cat confdefs.h >>conftest.$ac_ext
5425 cat >>conftest.$ac_ext <<_ACEOF
5426 /* end confdefs.h. */
5427 #include <stdlib.h>
5429 _ACEOF
5430 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5431 $EGREP "free" >/dev/null 2>&1; then
5433 else
5434 ac_cv_header_stdc=no
5436 rm -f conftest*
5440 if test $ac_cv_header_stdc = yes; then
5441 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5442 if test "$cross_compiling" = yes; then
5444 else
5445 cat >conftest.$ac_ext <<_ACEOF
5446 /* confdefs.h. */
5447 _ACEOF
5448 cat confdefs.h >>conftest.$ac_ext
5449 cat >>conftest.$ac_ext <<_ACEOF
5450 /* end confdefs.h. */
5451 #include <ctype.h>
5452 #include <stdlib.h>
5453 #if ((' ' & 0x0FF) == 0x020)
5454 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5455 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5456 #else
5457 # define ISLOWER(c) \
5458 (('a' <= (c) && (c) <= 'i') \
5459 || ('j' <= (c) && (c) <= 'r') \
5460 || ('s' <= (c) && (c) <= 'z'))
5461 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5462 #endif
5464 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5466 main ()
5468 int i;
5469 for (i = 0; i < 256; i++)
5470 if (XOR (islower (i), ISLOWER (i))
5471 || toupper (i) != TOUPPER (i))
5472 return 2;
5473 return 0;
5475 _ACEOF
5476 rm -f conftest$ac_exeext
5477 if { (ac_try="$ac_link"
5478 case "(($ac_try" in
5479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5480 *) ac_try_echo=$ac_try;;
5481 esac
5482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5483 (eval "$ac_link") 2>&5
5484 ac_status=$?
5485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5486 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5487 { (case "(($ac_try" in
5488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5489 *) ac_try_echo=$ac_try;;
5490 esac
5491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5492 (eval "$ac_try") 2>&5
5493 ac_status=$?
5494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495 (exit $ac_status); }; }; then
5497 else
5498 echo "$as_me: program exited with status $ac_status" >&5
5499 echo "$as_me: failed program was:" >&5
5500 sed 's/^/| /' conftest.$ac_ext >&5
5502 ( exit $ac_status )
5503 ac_cv_header_stdc=no
5505 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5511 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5512 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5513 if test $ac_cv_header_stdc = yes; then
5515 cat >>confdefs.h <<\_ACEOF
5516 #define STDC_HEADERS 1
5517 _ACEOF
5521 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5531 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5532 inttypes.h stdint.h unistd.h
5534 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5535 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5536 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5537 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5538 echo $ECHO_N "(cached) $ECHO_C" >&6
5539 else
5540 cat >conftest.$ac_ext <<_ACEOF
5541 /* confdefs.h. */
5542 _ACEOF
5543 cat confdefs.h >>conftest.$ac_ext
5544 cat >>conftest.$ac_ext <<_ACEOF
5545 /* end confdefs.h. */
5546 $ac_includes_default
5548 #include <$ac_header>
5549 _ACEOF
5550 rm -f conftest.$ac_objext
5551 if { (ac_try="$ac_compile"
5552 case "(($ac_try" in
5553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5554 *) ac_try_echo=$ac_try;;
5555 esac
5556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5557 (eval "$ac_compile") 2>conftest.er1
5558 ac_status=$?
5559 grep -v '^ *+' conftest.er1 >conftest.err
5560 rm -f conftest.er1
5561 cat conftest.err >&5
5562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5563 (exit $ac_status); } && {
5564 test -z "$ac_c_werror_flag" ||
5565 test ! -s conftest.err
5566 } && test -s conftest.$ac_objext; then
5567 eval "$as_ac_Header=yes"
5568 else
5569 echo "$as_me: failed program was:" >&5
5570 sed 's/^/| /' conftest.$ac_ext >&5
5572 eval "$as_ac_Header=no"
5575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5577 ac_res=`eval echo '${'$as_ac_Header'}'`
5578 { echo "$as_me:$LINENO: result: $ac_res" >&5
5579 echo "${ECHO_T}$ac_res" >&6; }
5580 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5581 cat >>confdefs.h <<_ACEOF
5582 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5583 _ACEOF
5587 done
5644 for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \
5645 fcntl.h grp.h \
5646 ieeefp.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
5647 shadow.h signal.h stdint.h stropts.h termios.h thread.h \
5648 unistd.h utime.h \
5649 sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \
5650 sys/lock.h sys/mkdev.h sys/modem.h \
5651 sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \
5652 sys/termio.h sys/time.h \
5653 sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
5654 sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
5655 bluetooth/bluetooth.h linux/tipc.h
5657 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5658 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5659 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5660 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5661 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5662 echo $ECHO_N "(cached) $ECHO_C" >&6
5664 ac_res=`eval echo '${'$as_ac_Header'}'`
5665 { echo "$as_me:$LINENO: result: $ac_res" >&5
5666 echo "${ECHO_T}$ac_res" >&6; }
5667 else
5668 # Is the header compilable?
5669 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5670 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5671 cat >conftest.$ac_ext <<_ACEOF
5672 /* confdefs.h. */
5673 _ACEOF
5674 cat confdefs.h >>conftest.$ac_ext
5675 cat >>conftest.$ac_ext <<_ACEOF
5676 /* end confdefs.h. */
5677 $ac_includes_default
5678 #include <$ac_header>
5679 _ACEOF
5680 rm -f conftest.$ac_objext
5681 if { (ac_try="$ac_compile"
5682 case "(($ac_try" in
5683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5684 *) ac_try_echo=$ac_try;;
5685 esac
5686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5687 (eval "$ac_compile") 2>conftest.er1
5688 ac_status=$?
5689 grep -v '^ *+' conftest.er1 >conftest.err
5690 rm -f conftest.er1
5691 cat conftest.err >&5
5692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5693 (exit $ac_status); } && {
5694 test -z "$ac_c_werror_flag" ||
5695 test ! -s conftest.err
5696 } && test -s conftest.$ac_objext; then
5697 ac_header_compiler=yes
5698 else
5699 echo "$as_me: failed program was:" >&5
5700 sed 's/^/| /' conftest.$ac_ext >&5
5702 ac_header_compiler=no
5705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5706 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5707 echo "${ECHO_T}$ac_header_compiler" >&6; }
5709 # Is the header present?
5710 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5711 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5712 cat >conftest.$ac_ext <<_ACEOF
5713 /* confdefs.h. */
5714 _ACEOF
5715 cat confdefs.h >>conftest.$ac_ext
5716 cat >>conftest.$ac_ext <<_ACEOF
5717 /* end confdefs.h. */
5718 #include <$ac_header>
5719 _ACEOF
5720 if { (ac_try="$ac_cpp conftest.$ac_ext"
5721 case "(($ac_try" in
5722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5723 *) ac_try_echo=$ac_try;;
5724 esac
5725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5726 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5727 ac_status=$?
5728 grep -v '^ *+' conftest.er1 >conftest.err
5729 rm -f conftest.er1
5730 cat conftest.err >&5
5731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732 (exit $ac_status); } >/dev/null && {
5733 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5734 test ! -s conftest.err
5735 }; then
5736 ac_header_preproc=yes
5737 else
5738 echo "$as_me: failed program was:" >&5
5739 sed 's/^/| /' conftest.$ac_ext >&5
5741 ac_header_preproc=no
5744 rm -f conftest.err conftest.$ac_ext
5745 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5746 echo "${ECHO_T}$ac_header_preproc" >&6; }
5748 # So? What about this header?
5749 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5750 yes:no: )
5751 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5752 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5753 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5754 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5755 ac_header_preproc=yes
5757 no:yes:* )
5758 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5759 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5760 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5761 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5762 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5763 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5764 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5765 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5766 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5767 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5768 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5769 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5770 ( cat <<\_ASBOX
5771 ## -------------------------------------- ##
5772 ## Report this to http://bugs.python.org/ ##
5773 ## -------------------------------------- ##
5774 _ASBOX
5775 ) | sed "s/^/$as_me: WARNING: /" >&2
5777 esac
5778 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5779 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5780 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5781 echo $ECHO_N "(cached) $ECHO_C" >&6
5782 else
5783 eval "$as_ac_Header=\$ac_header_preproc"
5785 ac_res=`eval echo '${'$as_ac_Header'}'`
5786 { echo "$as_me:$LINENO: result: $ac_res" >&5
5787 echo "${ECHO_T}$ac_res" >&6; }
5790 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5791 cat >>confdefs.h <<_ACEOF
5792 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5793 _ACEOF
5797 done
5804 ac_header_dirent=no
5805 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5806 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5807 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5808 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5809 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5810 echo $ECHO_N "(cached) $ECHO_C" >&6
5811 else
5812 cat >conftest.$ac_ext <<_ACEOF
5813 /* confdefs.h. */
5814 _ACEOF
5815 cat confdefs.h >>conftest.$ac_ext
5816 cat >>conftest.$ac_ext <<_ACEOF
5817 /* end confdefs.h. */
5818 #include <sys/types.h>
5819 #include <$ac_hdr>
5822 main ()
5824 if ((DIR *) 0)
5825 return 0;
5827 return 0;
5829 _ACEOF
5830 rm -f conftest.$ac_objext
5831 if { (ac_try="$ac_compile"
5832 case "(($ac_try" in
5833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5834 *) ac_try_echo=$ac_try;;
5835 esac
5836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5837 (eval "$ac_compile") 2>conftest.er1
5838 ac_status=$?
5839 grep -v '^ *+' conftest.er1 >conftest.err
5840 rm -f conftest.er1
5841 cat conftest.err >&5
5842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843 (exit $ac_status); } && {
5844 test -z "$ac_c_werror_flag" ||
5845 test ! -s conftest.err
5846 } && test -s conftest.$ac_objext; then
5847 eval "$as_ac_Header=yes"
5848 else
5849 echo "$as_me: failed program was:" >&5
5850 sed 's/^/| /' conftest.$ac_ext >&5
5852 eval "$as_ac_Header=no"
5855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5857 ac_res=`eval echo '${'$as_ac_Header'}'`
5858 { echo "$as_me:$LINENO: result: $ac_res" >&5
5859 echo "${ECHO_T}$ac_res" >&6; }
5860 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5861 cat >>confdefs.h <<_ACEOF
5862 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5863 _ACEOF
5865 ac_header_dirent=$ac_hdr; break
5868 done
5869 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5870 if test $ac_header_dirent = dirent.h; then
5871 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5872 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5873 if test "${ac_cv_search_opendir+set}" = set; then
5874 echo $ECHO_N "(cached) $ECHO_C" >&6
5875 else
5876 ac_func_search_save_LIBS=$LIBS
5877 cat >conftest.$ac_ext <<_ACEOF
5878 /* confdefs.h. */
5879 _ACEOF
5880 cat confdefs.h >>conftest.$ac_ext
5881 cat >>conftest.$ac_ext <<_ACEOF
5882 /* end confdefs.h. */
5884 /* Override any GCC internal prototype to avoid an error.
5885 Use char because int might match the return type of a GCC
5886 builtin and then its argument prototype would still apply. */
5887 #ifdef __cplusplus
5888 extern "C"
5889 #endif
5890 char opendir ();
5892 main ()
5894 return opendir ();
5896 return 0;
5898 _ACEOF
5899 for ac_lib in '' dir; do
5900 if test -z "$ac_lib"; then
5901 ac_res="none required"
5902 else
5903 ac_res=-l$ac_lib
5904 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5906 rm -f conftest.$ac_objext conftest$ac_exeext
5907 if { (ac_try="$ac_link"
5908 case "(($ac_try" in
5909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5910 *) ac_try_echo=$ac_try;;
5911 esac
5912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5913 (eval "$ac_link") 2>conftest.er1
5914 ac_status=$?
5915 grep -v '^ *+' conftest.er1 >conftest.err
5916 rm -f conftest.er1
5917 cat conftest.err >&5
5918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5919 (exit $ac_status); } && {
5920 test -z "$ac_c_werror_flag" ||
5921 test ! -s conftest.err
5922 } && test -s conftest$ac_exeext &&
5923 $as_test_x conftest$ac_exeext; then
5924 ac_cv_search_opendir=$ac_res
5925 else
5926 echo "$as_me: failed program was:" >&5
5927 sed 's/^/| /' conftest.$ac_ext >&5
5932 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5933 conftest$ac_exeext
5934 if test "${ac_cv_search_opendir+set}" = set; then
5935 break
5937 done
5938 if test "${ac_cv_search_opendir+set}" = set; then
5940 else
5941 ac_cv_search_opendir=no
5943 rm conftest.$ac_ext
5944 LIBS=$ac_func_search_save_LIBS
5946 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5947 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5948 ac_res=$ac_cv_search_opendir
5949 if test "$ac_res" != no; then
5950 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5954 else
5955 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5956 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5957 if test "${ac_cv_search_opendir+set}" = set; then
5958 echo $ECHO_N "(cached) $ECHO_C" >&6
5959 else
5960 ac_func_search_save_LIBS=$LIBS
5961 cat >conftest.$ac_ext <<_ACEOF
5962 /* confdefs.h. */
5963 _ACEOF
5964 cat confdefs.h >>conftest.$ac_ext
5965 cat >>conftest.$ac_ext <<_ACEOF
5966 /* end confdefs.h. */
5968 /* Override any GCC internal prototype to avoid an error.
5969 Use char because int might match the return type of a GCC
5970 builtin and then its argument prototype would still apply. */
5971 #ifdef __cplusplus
5972 extern "C"
5973 #endif
5974 char opendir ();
5976 main ()
5978 return opendir ();
5980 return 0;
5982 _ACEOF
5983 for ac_lib in '' x; do
5984 if test -z "$ac_lib"; then
5985 ac_res="none required"
5986 else
5987 ac_res=-l$ac_lib
5988 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5990 rm -f conftest.$ac_objext conftest$ac_exeext
5991 if { (ac_try="$ac_link"
5992 case "(($ac_try" in
5993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5994 *) ac_try_echo=$ac_try;;
5995 esac
5996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5997 (eval "$ac_link") 2>conftest.er1
5998 ac_status=$?
5999 grep -v '^ *+' conftest.er1 >conftest.err
6000 rm -f conftest.er1
6001 cat conftest.err >&5
6002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003 (exit $ac_status); } && {
6004 test -z "$ac_c_werror_flag" ||
6005 test ! -s conftest.err
6006 } && test -s conftest$ac_exeext &&
6007 $as_test_x conftest$ac_exeext; then
6008 ac_cv_search_opendir=$ac_res
6009 else
6010 echo "$as_me: failed program was:" >&5
6011 sed 's/^/| /' conftest.$ac_ext >&5
6016 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6017 conftest$ac_exeext
6018 if test "${ac_cv_search_opendir+set}" = set; then
6019 break
6021 done
6022 if test "${ac_cv_search_opendir+set}" = set; then
6024 else
6025 ac_cv_search_opendir=no
6027 rm conftest.$ac_ext
6028 LIBS=$ac_func_search_save_LIBS
6030 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6031 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
6032 ac_res=$ac_cv_search_opendir
6033 if test "$ac_res" != no; then
6034 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6040 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
6041 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
6042 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
6043 echo $ECHO_N "(cached) $ECHO_C" >&6
6044 else
6045 cat >conftest.$ac_ext <<_ACEOF
6046 /* confdefs.h. */
6047 _ACEOF
6048 cat confdefs.h >>conftest.$ac_ext
6049 cat >>conftest.$ac_ext <<_ACEOF
6050 /* end confdefs.h. */
6051 #include <sys/types.h>
6053 main ()
6055 return makedev(0, 0);
6057 return 0;
6059 _ACEOF
6060 rm -f conftest.$ac_objext conftest$ac_exeext
6061 if { (ac_try="$ac_link"
6062 case "(($ac_try" in
6063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6064 *) ac_try_echo=$ac_try;;
6065 esac
6066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6067 (eval "$ac_link") 2>conftest.er1
6068 ac_status=$?
6069 grep -v '^ *+' conftest.er1 >conftest.err
6070 rm -f conftest.er1
6071 cat conftest.err >&5
6072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6073 (exit $ac_status); } && {
6074 test -z "$ac_c_werror_flag" ||
6075 test ! -s conftest.err
6076 } && test -s conftest$ac_exeext &&
6077 $as_test_x conftest$ac_exeext; then
6078 ac_cv_header_sys_types_h_makedev=yes
6079 else
6080 echo "$as_me: failed program was:" >&5
6081 sed 's/^/| /' conftest.$ac_ext >&5
6083 ac_cv_header_sys_types_h_makedev=no
6086 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6087 conftest$ac_exeext conftest.$ac_ext
6090 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
6091 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
6093 if test $ac_cv_header_sys_types_h_makedev = no; then
6094 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6095 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6096 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6097 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6098 echo $ECHO_N "(cached) $ECHO_C" >&6
6100 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6101 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6102 else
6103 # Is the header compilable?
6104 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
6105 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
6106 cat >conftest.$ac_ext <<_ACEOF
6107 /* confdefs.h. */
6108 _ACEOF
6109 cat confdefs.h >>conftest.$ac_ext
6110 cat >>conftest.$ac_ext <<_ACEOF
6111 /* end confdefs.h. */
6112 $ac_includes_default
6113 #include <sys/mkdev.h>
6114 _ACEOF
6115 rm -f conftest.$ac_objext
6116 if { (ac_try="$ac_compile"
6117 case "(($ac_try" in
6118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6119 *) ac_try_echo=$ac_try;;
6120 esac
6121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6122 (eval "$ac_compile") 2>conftest.er1
6123 ac_status=$?
6124 grep -v '^ *+' conftest.er1 >conftest.err
6125 rm -f conftest.er1
6126 cat conftest.err >&5
6127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128 (exit $ac_status); } && {
6129 test -z "$ac_c_werror_flag" ||
6130 test ! -s conftest.err
6131 } && test -s conftest.$ac_objext; then
6132 ac_header_compiler=yes
6133 else
6134 echo "$as_me: failed program was:" >&5
6135 sed 's/^/| /' conftest.$ac_ext >&5
6137 ac_header_compiler=no
6140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6141 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6142 echo "${ECHO_T}$ac_header_compiler" >&6; }
6144 # Is the header present?
6145 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
6146 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
6147 cat >conftest.$ac_ext <<_ACEOF
6148 /* confdefs.h. */
6149 _ACEOF
6150 cat confdefs.h >>conftest.$ac_ext
6151 cat >>conftest.$ac_ext <<_ACEOF
6152 /* end confdefs.h. */
6153 #include <sys/mkdev.h>
6154 _ACEOF
6155 if { (ac_try="$ac_cpp conftest.$ac_ext"
6156 case "(($ac_try" in
6157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6158 *) ac_try_echo=$ac_try;;
6159 esac
6160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6161 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6162 ac_status=$?
6163 grep -v '^ *+' conftest.er1 >conftest.err
6164 rm -f conftest.er1
6165 cat conftest.err >&5
6166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6167 (exit $ac_status); } >/dev/null && {
6168 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6169 test ! -s conftest.err
6170 }; then
6171 ac_header_preproc=yes
6172 else
6173 echo "$as_me: failed program was:" >&5
6174 sed 's/^/| /' conftest.$ac_ext >&5
6176 ac_header_preproc=no
6179 rm -f conftest.err conftest.$ac_ext
6180 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6181 echo "${ECHO_T}$ac_header_preproc" >&6; }
6183 # So? What about this header?
6184 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6185 yes:no: )
6186 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
6187 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6188 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
6189 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
6190 ac_header_preproc=yes
6192 no:yes:* )
6193 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
6194 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
6195 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
6196 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
6197 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
6198 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
6199 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
6200 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
6201 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
6202 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
6203 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
6204 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
6205 ( cat <<\_ASBOX
6206 ## -------------------------------------- ##
6207 ## Report this to http://bugs.python.org/ ##
6208 ## -------------------------------------- ##
6209 _ASBOX
6210 ) | sed "s/^/$as_me: WARNING: /" >&2
6212 esac
6213 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6214 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6215 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6216 echo $ECHO_N "(cached) $ECHO_C" >&6
6217 else
6218 ac_cv_header_sys_mkdev_h=$ac_header_preproc
6220 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6221 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6224 if test $ac_cv_header_sys_mkdev_h = yes; then
6226 cat >>confdefs.h <<\_ACEOF
6227 #define MAJOR_IN_MKDEV 1
6228 _ACEOF
6234 if test $ac_cv_header_sys_mkdev_h = no; then
6235 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6236 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6237 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6238 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6239 echo $ECHO_N "(cached) $ECHO_C" >&6
6241 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6242 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6243 else
6244 # Is the header compilable?
6245 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
6246 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
6247 cat >conftest.$ac_ext <<_ACEOF
6248 /* confdefs.h. */
6249 _ACEOF
6250 cat confdefs.h >>conftest.$ac_ext
6251 cat >>conftest.$ac_ext <<_ACEOF
6252 /* end confdefs.h. */
6253 $ac_includes_default
6254 #include <sys/sysmacros.h>
6255 _ACEOF
6256 rm -f conftest.$ac_objext
6257 if { (ac_try="$ac_compile"
6258 case "(($ac_try" in
6259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6260 *) ac_try_echo=$ac_try;;
6261 esac
6262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6263 (eval "$ac_compile") 2>conftest.er1
6264 ac_status=$?
6265 grep -v '^ *+' conftest.er1 >conftest.err
6266 rm -f conftest.er1
6267 cat conftest.err >&5
6268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6269 (exit $ac_status); } && {
6270 test -z "$ac_c_werror_flag" ||
6271 test ! -s conftest.err
6272 } && test -s conftest.$ac_objext; then
6273 ac_header_compiler=yes
6274 else
6275 echo "$as_me: failed program was:" >&5
6276 sed 's/^/| /' conftest.$ac_ext >&5
6278 ac_header_compiler=no
6281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6282 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6283 echo "${ECHO_T}$ac_header_compiler" >&6; }
6285 # Is the header present?
6286 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
6287 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
6288 cat >conftest.$ac_ext <<_ACEOF
6289 /* confdefs.h. */
6290 _ACEOF
6291 cat confdefs.h >>conftest.$ac_ext
6292 cat >>conftest.$ac_ext <<_ACEOF
6293 /* end confdefs.h. */
6294 #include <sys/sysmacros.h>
6295 _ACEOF
6296 if { (ac_try="$ac_cpp conftest.$ac_ext"
6297 case "(($ac_try" in
6298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6299 *) ac_try_echo=$ac_try;;
6300 esac
6301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6302 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6303 ac_status=$?
6304 grep -v '^ *+' conftest.er1 >conftest.err
6305 rm -f conftest.er1
6306 cat conftest.err >&5
6307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308 (exit $ac_status); } >/dev/null && {
6309 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6310 test ! -s conftest.err
6311 }; then
6312 ac_header_preproc=yes
6313 else
6314 echo "$as_me: failed program was:" >&5
6315 sed 's/^/| /' conftest.$ac_ext >&5
6317 ac_header_preproc=no
6320 rm -f conftest.err conftest.$ac_ext
6321 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6322 echo "${ECHO_T}$ac_header_preproc" >&6; }
6324 # So? What about this header?
6325 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6326 yes:no: )
6327 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
6328 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6329 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
6330 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
6331 ac_header_preproc=yes
6333 no:yes:* )
6334 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
6335 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
6336 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
6337 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
6338 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
6339 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
6340 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
6341 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
6342 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
6343 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
6344 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
6345 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
6346 ( cat <<\_ASBOX
6347 ## -------------------------------------- ##
6348 ## Report this to http://bugs.python.org/ ##
6349 ## -------------------------------------- ##
6350 _ASBOX
6351 ) | sed "s/^/$as_me: WARNING: /" >&2
6353 esac
6354 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6355 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6356 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6357 echo $ECHO_N "(cached) $ECHO_C" >&6
6358 else
6359 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
6361 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6362 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6365 if test $ac_cv_header_sys_sysmacros_h = yes; then
6367 cat >>confdefs.h <<\_ACEOF
6368 #define MAJOR_IN_SYSMACROS 1
6369 _ACEOF
6378 # On Solaris, term.h requires curses.h
6380 for ac_header in term.h
6382 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6383 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6384 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6385 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6386 echo $ECHO_N "(cached) $ECHO_C" >&6
6387 else
6388 cat >conftest.$ac_ext <<_ACEOF
6389 /* confdefs.h. */
6390 _ACEOF
6391 cat confdefs.h >>conftest.$ac_ext
6392 cat >>conftest.$ac_ext <<_ACEOF
6393 /* end confdefs.h. */
6395 #ifdef HAVE_CURSES_H
6396 #include <curses.h>
6397 #endif
6400 #include <$ac_header>
6401 _ACEOF
6402 rm -f conftest.$ac_objext
6403 if { (ac_try="$ac_compile"
6404 case "(($ac_try" in
6405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6406 *) ac_try_echo=$ac_try;;
6407 esac
6408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6409 (eval "$ac_compile") 2>conftest.er1
6410 ac_status=$?
6411 grep -v '^ *+' conftest.er1 >conftest.err
6412 rm -f conftest.er1
6413 cat conftest.err >&5
6414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6415 (exit $ac_status); } && {
6416 test -z "$ac_c_werror_flag" ||
6417 test ! -s conftest.err
6418 } && test -s conftest.$ac_objext; then
6419 eval "$as_ac_Header=yes"
6420 else
6421 echo "$as_me: failed program was:" >&5
6422 sed 's/^/| /' conftest.$ac_ext >&5
6424 eval "$as_ac_Header=no"
6427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6429 ac_res=`eval echo '${'$as_ac_Header'}'`
6430 { echo "$as_me:$LINENO: result: $ac_res" >&5
6431 echo "${ECHO_T}$ac_res" >&6; }
6432 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6433 cat >>confdefs.h <<_ACEOF
6434 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6435 _ACEOF
6439 done
6442 # On Linux, netlink.h requires asm/types.h
6444 for ac_header in linux/netlink.h
6446 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6447 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6448 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6449 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6450 echo $ECHO_N "(cached) $ECHO_C" >&6
6451 else
6452 cat >conftest.$ac_ext <<_ACEOF
6453 /* confdefs.h. */
6454 _ACEOF
6455 cat confdefs.h >>conftest.$ac_ext
6456 cat >>conftest.$ac_ext <<_ACEOF
6457 /* end confdefs.h. */
6459 #ifdef HAVE_ASM_TYPES_H
6460 #include <asm/types.h>
6461 #endif
6462 #ifdef HAVE_SYS_SOCKET_H
6463 #include <sys/socket.h>
6464 #endif
6467 #include <$ac_header>
6468 _ACEOF
6469 rm -f conftest.$ac_objext
6470 if { (ac_try="$ac_compile"
6471 case "(($ac_try" in
6472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6473 *) ac_try_echo=$ac_try;;
6474 esac
6475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6476 (eval "$ac_compile") 2>conftest.er1
6477 ac_status=$?
6478 grep -v '^ *+' conftest.er1 >conftest.err
6479 rm -f conftest.er1
6480 cat conftest.err >&5
6481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482 (exit $ac_status); } && {
6483 test -z "$ac_c_werror_flag" ||
6484 test ! -s conftest.err
6485 } && test -s conftest.$ac_objext; then
6486 eval "$as_ac_Header=yes"
6487 else
6488 echo "$as_me: failed program was:" >&5
6489 sed 's/^/| /' conftest.$ac_ext >&5
6491 eval "$as_ac_Header=no"
6494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6496 ac_res=`eval echo '${'$as_ac_Header'}'`
6497 { echo "$as_me:$LINENO: result: $ac_res" >&5
6498 echo "${ECHO_T}$ac_res" >&6; }
6499 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6500 cat >>confdefs.h <<_ACEOF
6501 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6502 _ACEOF
6506 done
6509 # checks for typedefs
6510 was_it_defined=no
6511 { echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
6512 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6; }
6513 cat >conftest.$ac_ext <<_ACEOF
6514 /* confdefs.h. */
6515 _ACEOF
6516 cat confdefs.h >>conftest.$ac_ext
6517 cat >>conftest.$ac_ext <<_ACEOF
6518 /* end confdefs.h. */
6519 #include <time.h>
6521 _ACEOF
6522 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6523 $EGREP "clock_t" >/dev/null 2>&1; then
6524 was_it_defined=yes
6525 else
6528 cat >>confdefs.h <<\_ACEOF
6529 #define clock_t long
6530 _ACEOF
6534 rm -f conftest*
6536 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
6537 echo "${ECHO_T}$was_it_defined" >&6; }
6539 # Check whether using makedev requires defining _OSF_SOURCE
6540 { echo "$as_me:$LINENO: checking for makedev" >&5
6541 echo $ECHO_N "checking for makedev... $ECHO_C" >&6; }
6542 cat >conftest.$ac_ext <<_ACEOF
6543 /* confdefs.h. */
6544 _ACEOF
6545 cat confdefs.h >>conftest.$ac_ext
6546 cat >>conftest.$ac_ext <<_ACEOF
6547 /* end confdefs.h. */
6548 #include <sys/types.h>
6550 main ()
6552 makedev(0, 0)
6554 return 0;
6556 _ACEOF
6557 rm -f conftest.$ac_objext conftest$ac_exeext
6558 if { (ac_try="$ac_link"
6559 case "(($ac_try" in
6560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6561 *) ac_try_echo=$ac_try;;
6562 esac
6563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6564 (eval "$ac_link") 2>conftest.er1
6565 ac_status=$?
6566 grep -v '^ *+' conftest.er1 >conftest.err
6567 rm -f conftest.er1
6568 cat conftest.err >&5
6569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6570 (exit $ac_status); } && {
6571 test -z "$ac_c_werror_flag" ||
6572 test ! -s conftest.err
6573 } && test -s conftest$ac_exeext &&
6574 $as_test_x conftest$ac_exeext; then
6575 ac_cv_has_makedev=yes
6576 else
6577 echo "$as_me: failed program was:" >&5
6578 sed 's/^/| /' conftest.$ac_ext >&5
6580 ac_cv_has_makedev=no
6583 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6584 conftest$ac_exeext conftest.$ac_ext
6585 if test "$ac_cv_has_makedev" = "no"; then
6586 # we didn't link, try if _OSF_SOURCE will allow us to link
6587 cat >conftest.$ac_ext <<_ACEOF
6588 /* confdefs.h. */
6589 _ACEOF
6590 cat confdefs.h >>conftest.$ac_ext
6591 cat >>conftest.$ac_ext <<_ACEOF
6592 /* end confdefs.h. */
6594 #define _OSF_SOURCE 1
6595 #include <sys/types.h>
6598 main ()
6600 makedev(0, 0)
6602 return 0;
6604 _ACEOF
6605 rm -f conftest.$ac_objext conftest$ac_exeext
6606 if { (ac_try="$ac_link"
6607 case "(($ac_try" in
6608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6609 *) ac_try_echo=$ac_try;;
6610 esac
6611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6612 (eval "$ac_link") 2>conftest.er1
6613 ac_status=$?
6614 grep -v '^ *+' conftest.er1 >conftest.err
6615 rm -f conftest.er1
6616 cat conftest.err >&5
6617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6618 (exit $ac_status); } && {
6619 test -z "$ac_c_werror_flag" ||
6620 test ! -s conftest.err
6621 } && test -s conftest$ac_exeext &&
6622 $as_test_x conftest$ac_exeext; then
6623 ac_cv_has_makedev=yes
6624 else
6625 echo "$as_me: failed program was:" >&5
6626 sed 's/^/| /' conftest.$ac_ext >&5
6628 ac_cv_has_makedev=no
6631 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6632 conftest$ac_exeext conftest.$ac_ext
6633 if test "$ac_cv_has_makedev" = "yes"; then
6635 cat >>confdefs.h <<\_ACEOF
6636 #define _OSF_SOURCE 1
6637 _ACEOF
6641 { echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
6642 echo "${ECHO_T}$ac_cv_has_makedev" >&6; }
6643 if test "$ac_cv_has_makedev" = "yes"; then
6645 cat >>confdefs.h <<\_ACEOF
6646 #define HAVE_MAKEDEV 1
6647 _ACEOF
6651 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
6652 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
6653 # defined, but the compiler does not support pragma redefine_extname,
6654 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
6655 # structures (such as rlimit64) without declaring them. As a
6656 # work-around, disable LFS on such configurations
6658 use_lfs=yes
6659 { echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
6660 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6; }
6661 cat >conftest.$ac_ext <<_ACEOF
6662 /* confdefs.h. */
6663 _ACEOF
6664 cat confdefs.h >>conftest.$ac_ext
6665 cat >>conftest.$ac_ext <<_ACEOF
6666 /* end confdefs.h. */
6668 #define _LARGEFILE_SOURCE 1
6669 #define _FILE_OFFSET_BITS 64
6670 #include <sys/resource.h>
6673 main ()
6675 struct rlimit foo;
6677 return 0;
6679 _ACEOF
6680 rm -f conftest.$ac_objext
6681 if { (ac_try="$ac_compile"
6682 case "(($ac_try" in
6683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6684 *) ac_try_echo=$ac_try;;
6685 esac
6686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6687 (eval "$ac_compile") 2>conftest.er1
6688 ac_status=$?
6689 grep -v '^ *+' conftest.er1 >conftest.err
6690 rm -f conftest.er1
6691 cat conftest.err >&5
6692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6693 (exit $ac_status); } && {
6694 test -z "$ac_c_werror_flag" ||
6695 test ! -s conftest.err
6696 } && test -s conftest.$ac_objext; then
6697 sol_lfs_bug=no
6698 else
6699 echo "$as_me: failed program was:" >&5
6700 sed 's/^/| /' conftest.$ac_ext >&5
6702 sol_lfs_bug=yes
6705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6706 { echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
6707 echo "${ECHO_T}$sol_lfs_bug" >&6; }
6708 if test "$sol_lfs_bug" = "yes"; then
6709 use_lfs=no
6712 if test "$use_lfs" = "yes"; then
6713 # Two defines needed to enable largefile support on various platforms
6714 # These may affect some typedefs
6716 cat >>confdefs.h <<\_ACEOF
6717 #define _LARGEFILE_SOURCE 1
6718 _ACEOF
6721 cat >>confdefs.h <<\_ACEOF
6722 #define _FILE_OFFSET_BITS 64
6723 _ACEOF
6727 # Add some code to confdefs.h so that the test for off_t works on SCO
6728 cat >> confdefs.h <<\EOF
6729 #if defined(SCO_DS)
6730 #undef _OFF_T
6731 #endif
6734 # Type availability checks
6735 { echo "$as_me:$LINENO: checking for mode_t" >&5
6736 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
6737 if test "${ac_cv_type_mode_t+set}" = set; then
6738 echo $ECHO_N "(cached) $ECHO_C" >&6
6739 else
6740 cat >conftest.$ac_ext <<_ACEOF
6741 /* confdefs.h. */
6742 _ACEOF
6743 cat confdefs.h >>conftest.$ac_ext
6744 cat >>conftest.$ac_ext <<_ACEOF
6745 /* end confdefs.h. */
6746 $ac_includes_default
6747 typedef mode_t ac__type_new_;
6749 main ()
6751 if ((ac__type_new_ *) 0)
6752 return 0;
6753 if (sizeof (ac__type_new_))
6754 return 0;
6756 return 0;
6758 _ACEOF
6759 rm -f conftest.$ac_objext
6760 if { (ac_try="$ac_compile"
6761 case "(($ac_try" in
6762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6763 *) ac_try_echo=$ac_try;;
6764 esac
6765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6766 (eval "$ac_compile") 2>conftest.er1
6767 ac_status=$?
6768 grep -v '^ *+' conftest.er1 >conftest.err
6769 rm -f conftest.er1
6770 cat conftest.err >&5
6771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6772 (exit $ac_status); } && {
6773 test -z "$ac_c_werror_flag" ||
6774 test ! -s conftest.err
6775 } && test -s conftest.$ac_objext; then
6776 ac_cv_type_mode_t=yes
6777 else
6778 echo "$as_me: failed program was:" >&5
6779 sed 's/^/| /' conftest.$ac_ext >&5
6781 ac_cv_type_mode_t=no
6784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6786 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6787 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
6788 if test $ac_cv_type_mode_t = yes; then
6790 else
6792 cat >>confdefs.h <<_ACEOF
6793 #define mode_t int
6794 _ACEOF
6798 { echo "$as_me:$LINENO: checking for off_t" >&5
6799 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
6800 if test "${ac_cv_type_off_t+set}" = set; then
6801 echo $ECHO_N "(cached) $ECHO_C" >&6
6802 else
6803 cat >conftest.$ac_ext <<_ACEOF
6804 /* confdefs.h. */
6805 _ACEOF
6806 cat confdefs.h >>conftest.$ac_ext
6807 cat >>conftest.$ac_ext <<_ACEOF
6808 /* end confdefs.h. */
6809 $ac_includes_default
6810 typedef off_t ac__type_new_;
6812 main ()
6814 if ((ac__type_new_ *) 0)
6815 return 0;
6816 if (sizeof (ac__type_new_))
6817 return 0;
6819 return 0;
6821 _ACEOF
6822 rm -f conftest.$ac_objext
6823 if { (ac_try="$ac_compile"
6824 case "(($ac_try" in
6825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6826 *) ac_try_echo=$ac_try;;
6827 esac
6828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6829 (eval "$ac_compile") 2>conftest.er1
6830 ac_status=$?
6831 grep -v '^ *+' conftest.er1 >conftest.err
6832 rm -f conftest.er1
6833 cat conftest.err >&5
6834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6835 (exit $ac_status); } && {
6836 test -z "$ac_c_werror_flag" ||
6837 test ! -s conftest.err
6838 } && test -s conftest.$ac_objext; then
6839 ac_cv_type_off_t=yes
6840 else
6841 echo "$as_me: failed program was:" >&5
6842 sed 's/^/| /' conftest.$ac_ext >&5
6844 ac_cv_type_off_t=no
6847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6849 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6850 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
6851 if test $ac_cv_type_off_t = yes; then
6853 else
6855 cat >>confdefs.h <<_ACEOF
6856 #define off_t long int
6857 _ACEOF
6861 { echo "$as_me:$LINENO: checking for pid_t" >&5
6862 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
6863 if test "${ac_cv_type_pid_t+set}" = set; then
6864 echo $ECHO_N "(cached) $ECHO_C" >&6
6865 else
6866 cat >conftest.$ac_ext <<_ACEOF
6867 /* confdefs.h. */
6868 _ACEOF
6869 cat confdefs.h >>conftest.$ac_ext
6870 cat >>conftest.$ac_ext <<_ACEOF
6871 /* end confdefs.h. */
6872 $ac_includes_default
6873 typedef pid_t ac__type_new_;
6875 main ()
6877 if ((ac__type_new_ *) 0)
6878 return 0;
6879 if (sizeof (ac__type_new_))
6880 return 0;
6882 return 0;
6884 _ACEOF
6885 rm -f conftest.$ac_objext
6886 if { (ac_try="$ac_compile"
6887 case "(($ac_try" in
6888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6889 *) ac_try_echo=$ac_try;;
6890 esac
6891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6892 (eval "$ac_compile") 2>conftest.er1
6893 ac_status=$?
6894 grep -v '^ *+' conftest.er1 >conftest.err
6895 rm -f conftest.er1
6896 cat conftest.err >&5
6897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6898 (exit $ac_status); } && {
6899 test -z "$ac_c_werror_flag" ||
6900 test ! -s conftest.err
6901 } && test -s conftest.$ac_objext; then
6902 ac_cv_type_pid_t=yes
6903 else
6904 echo "$as_me: failed program was:" >&5
6905 sed 's/^/| /' conftest.$ac_ext >&5
6907 ac_cv_type_pid_t=no
6910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6912 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6913 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
6914 if test $ac_cv_type_pid_t = yes; then
6916 else
6918 cat >>confdefs.h <<_ACEOF
6919 #define pid_t int
6920 _ACEOF
6924 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6925 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
6926 if test "${ac_cv_type_signal+set}" = set; then
6927 echo $ECHO_N "(cached) $ECHO_C" >&6
6928 else
6929 cat >conftest.$ac_ext <<_ACEOF
6930 /* confdefs.h. */
6931 _ACEOF
6932 cat confdefs.h >>conftest.$ac_ext
6933 cat >>conftest.$ac_ext <<_ACEOF
6934 /* end confdefs.h. */
6935 #include <sys/types.h>
6936 #include <signal.h>
6939 main ()
6941 return *(signal (0, 0)) (0) == 1;
6943 return 0;
6945 _ACEOF
6946 rm -f conftest.$ac_objext
6947 if { (ac_try="$ac_compile"
6948 case "(($ac_try" in
6949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6950 *) ac_try_echo=$ac_try;;
6951 esac
6952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6953 (eval "$ac_compile") 2>conftest.er1
6954 ac_status=$?
6955 grep -v '^ *+' conftest.er1 >conftest.err
6956 rm -f conftest.er1
6957 cat conftest.err >&5
6958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6959 (exit $ac_status); } && {
6960 test -z "$ac_c_werror_flag" ||
6961 test ! -s conftest.err
6962 } && test -s conftest.$ac_objext; then
6963 ac_cv_type_signal=int
6964 else
6965 echo "$as_me: failed program was:" >&5
6966 sed 's/^/| /' conftest.$ac_ext >&5
6968 ac_cv_type_signal=void
6971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6973 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6974 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
6976 cat >>confdefs.h <<_ACEOF
6977 #define RETSIGTYPE $ac_cv_type_signal
6978 _ACEOF
6981 { echo "$as_me:$LINENO: checking for size_t" >&5
6982 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
6983 if test "${ac_cv_type_size_t+set}" = set; then
6984 echo $ECHO_N "(cached) $ECHO_C" >&6
6985 else
6986 cat >conftest.$ac_ext <<_ACEOF
6987 /* confdefs.h. */
6988 _ACEOF
6989 cat confdefs.h >>conftest.$ac_ext
6990 cat >>conftest.$ac_ext <<_ACEOF
6991 /* end confdefs.h. */
6992 $ac_includes_default
6993 typedef size_t ac__type_new_;
6995 main ()
6997 if ((ac__type_new_ *) 0)
6998 return 0;
6999 if (sizeof (ac__type_new_))
7000 return 0;
7002 return 0;
7004 _ACEOF
7005 rm -f conftest.$ac_objext
7006 if { (ac_try="$ac_compile"
7007 case "(($ac_try" in
7008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7009 *) ac_try_echo=$ac_try;;
7010 esac
7011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7012 (eval "$ac_compile") 2>conftest.er1
7013 ac_status=$?
7014 grep -v '^ *+' conftest.er1 >conftest.err
7015 rm -f conftest.er1
7016 cat conftest.err >&5
7017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7018 (exit $ac_status); } && {
7019 test -z "$ac_c_werror_flag" ||
7020 test ! -s conftest.err
7021 } && test -s conftest.$ac_objext; then
7022 ac_cv_type_size_t=yes
7023 else
7024 echo "$as_me: failed program was:" >&5
7025 sed 's/^/| /' conftest.$ac_ext >&5
7027 ac_cv_type_size_t=no
7030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7032 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7033 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
7034 if test $ac_cv_type_size_t = yes; then
7036 else
7038 cat >>confdefs.h <<_ACEOF
7039 #define size_t unsigned int
7040 _ACEOF
7044 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7045 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
7046 if test "${ac_cv_type_uid_t+set}" = set; then
7047 echo $ECHO_N "(cached) $ECHO_C" >&6
7048 else
7049 cat >conftest.$ac_ext <<_ACEOF
7050 /* confdefs.h. */
7051 _ACEOF
7052 cat confdefs.h >>conftest.$ac_ext
7053 cat >>conftest.$ac_ext <<_ACEOF
7054 /* end confdefs.h. */
7055 #include <sys/types.h>
7057 _ACEOF
7058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7059 $EGREP "uid_t" >/dev/null 2>&1; then
7060 ac_cv_type_uid_t=yes
7061 else
7062 ac_cv_type_uid_t=no
7064 rm -f conftest*
7067 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7068 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
7069 if test $ac_cv_type_uid_t = no; then
7071 cat >>confdefs.h <<\_ACEOF
7072 #define uid_t int
7073 _ACEOF
7076 cat >>confdefs.h <<\_ACEOF
7077 #define gid_t int
7078 _ACEOF
7083 { echo "$as_me:$LINENO: checking for uint32_t" >&5
7084 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
7085 if test "${ac_cv_c_uint32_t+set}" = set; then
7086 echo $ECHO_N "(cached) $ECHO_C" >&6
7087 else
7088 ac_cv_c_uint32_t=no
7089 for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
7090 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7091 cat >conftest.$ac_ext <<_ACEOF
7092 /* confdefs.h. */
7093 _ACEOF
7094 cat confdefs.h >>conftest.$ac_ext
7095 cat >>conftest.$ac_ext <<_ACEOF
7096 /* end confdefs.h. */
7097 $ac_includes_default
7099 main ()
7101 static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
7102 test_array [0] = 0
7105 return 0;
7107 _ACEOF
7108 rm -f conftest.$ac_objext
7109 if { (ac_try="$ac_compile"
7110 case "(($ac_try" in
7111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7112 *) ac_try_echo=$ac_try;;
7113 esac
7114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7115 (eval "$ac_compile") 2>conftest.er1
7116 ac_status=$?
7117 grep -v '^ *+' conftest.er1 >conftest.err
7118 rm -f conftest.er1
7119 cat conftest.err >&5
7120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7121 (exit $ac_status); } && {
7122 test -z "$ac_c_werror_flag" ||
7123 test ! -s conftest.err
7124 } && test -s conftest.$ac_objext; then
7125 case $ac_type in
7126 uint32_t) ac_cv_c_uint32_t=yes ;;
7127 *) ac_cv_c_uint32_t=$ac_type ;;
7128 esac
7130 else
7131 echo "$as_me: failed program was:" >&5
7132 sed 's/^/| /' conftest.$ac_ext >&5
7137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7138 test "$ac_cv_c_uint32_t" != no && break
7139 done
7141 { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
7142 echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; }
7143 case $ac_cv_c_uint32_t in #(
7144 no|yes) ;; #(
7147 cat >>confdefs.h <<\_ACEOF
7148 #define _UINT32_T 1
7149 _ACEOF
7152 cat >>confdefs.h <<_ACEOF
7153 #define uint32_t $ac_cv_c_uint32_t
7154 _ACEOF
7156 esac
7159 { echo "$as_me:$LINENO: checking for uint64_t" >&5
7160 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
7161 if test "${ac_cv_c_uint64_t+set}" = set; then
7162 echo $ECHO_N "(cached) $ECHO_C" >&6
7163 else
7164 ac_cv_c_uint64_t=no
7165 for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \
7166 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7167 cat >conftest.$ac_ext <<_ACEOF
7168 /* confdefs.h. */
7169 _ACEOF
7170 cat confdefs.h >>conftest.$ac_ext
7171 cat >>conftest.$ac_ext <<_ACEOF
7172 /* end confdefs.h. */
7173 $ac_includes_default
7175 main ()
7177 static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
7178 test_array [0] = 0
7181 return 0;
7183 _ACEOF
7184 rm -f conftest.$ac_objext
7185 if { (ac_try="$ac_compile"
7186 case "(($ac_try" in
7187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7188 *) ac_try_echo=$ac_try;;
7189 esac
7190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7191 (eval "$ac_compile") 2>conftest.er1
7192 ac_status=$?
7193 grep -v '^ *+' conftest.er1 >conftest.err
7194 rm -f conftest.er1
7195 cat conftest.err >&5
7196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7197 (exit $ac_status); } && {
7198 test -z "$ac_c_werror_flag" ||
7199 test ! -s conftest.err
7200 } && test -s conftest.$ac_objext; then
7201 case $ac_type in
7202 uint64_t) ac_cv_c_uint64_t=yes ;;
7203 *) ac_cv_c_uint64_t=$ac_type ;;
7204 esac
7206 else
7207 echo "$as_me: failed program was:" >&5
7208 sed 's/^/| /' conftest.$ac_ext >&5
7213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7214 test "$ac_cv_c_uint64_t" != no && break
7215 done
7217 { echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
7218 echo "${ECHO_T}$ac_cv_c_uint64_t" >&6; }
7219 case $ac_cv_c_uint64_t in #(
7220 no|yes) ;; #(
7223 cat >>confdefs.h <<\_ACEOF
7224 #define _UINT64_T 1
7225 _ACEOF
7228 cat >>confdefs.h <<_ACEOF
7229 #define uint64_t $ac_cv_c_uint64_t
7230 _ACEOF
7232 esac
7235 { echo "$as_me:$LINENO: checking for int32_t" >&5
7236 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
7237 if test "${ac_cv_c_int32_t+set}" = set; then
7238 echo $ECHO_N "(cached) $ECHO_C" >&6
7239 else
7240 ac_cv_c_int32_t=no
7241 for ac_type in 'int32_t' 'int' 'long int' \
7242 'long long int' 'short int' 'signed char'; do
7243 cat >conftest.$ac_ext <<_ACEOF
7244 /* confdefs.h. */
7245 _ACEOF
7246 cat confdefs.h >>conftest.$ac_ext
7247 cat >>conftest.$ac_ext <<_ACEOF
7248 /* end confdefs.h. */
7249 $ac_includes_default
7251 main ()
7253 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
7254 test_array [0] = 0
7257 return 0;
7259 _ACEOF
7260 rm -f conftest.$ac_objext
7261 if { (ac_try="$ac_compile"
7262 case "(($ac_try" in
7263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7264 *) ac_try_echo=$ac_try;;
7265 esac
7266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7267 (eval "$ac_compile") 2>conftest.er1
7268 ac_status=$?
7269 grep -v '^ *+' conftest.er1 >conftest.err
7270 rm -f conftest.er1
7271 cat conftest.err >&5
7272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7273 (exit $ac_status); } && {
7274 test -z "$ac_c_werror_flag" ||
7275 test ! -s conftest.err
7276 } && test -s conftest.$ac_objext; then
7277 cat >conftest.$ac_ext <<_ACEOF
7278 /* confdefs.h. */
7279 _ACEOF
7280 cat confdefs.h >>conftest.$ac_ext
7281 cat >>conftest.$ac_ext <<_ACEOF
7282 /* end confdefs.h. */
7283 $ac_includes_default
7285 main ()
7287 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
7288 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
7289 test_array [0] = 0
7292 return 0;
7294 _ACEOF
7295 rm -f conftest.$ac_objext
7296 if { (ac_try="$ac_compile"
7297 case "(($ac_try" in
7298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7299 *) ac_try_echo=$ac_try;;
7300 esac
7301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7302 (eval "$ac_compile") 2>conftest.er1
7303 ac_status=$?
7304 grep -v '^ *+' conftest.er1 >conftest.err
7305 rm -f conftest.er1
7306 cat conftest.err >&5
7307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7308 (exit $ac_status); } && {
7309 test -z "$ac_c_werror_flag" ||
7310 test ! -s conftest.err
7311 } && test -s conftest.$ac_objext; then
7313 else
7314 echo "$as_me: failed program was:" >&5
7315 sed 's/^/| /' conftest.$ac_ext >&5
7317 case $ac_type in
7318 int32_t) ac_cv_c_int32_t=yes ;;
7319 *) ac_cv_c_int32_t=$ac_type ;;
7320 esac
7324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7325 else
7326 echo "$as_me: failed program was:" >&5
7327 sed 's/^/| /' conftest.$ac_ext >&5
7332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7333 test "$ac_cv_c_int32_t" != no && break
7334 done
7336 { echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
7337 echo "${ECHO_T}$ac_cv_c_int32_t" >&6; }
7338 case $ac_cv_c_int32_t in #(
7339 no|yes) ;; #(
7342 cat >>confdefs.h <<_ACEOF
7343 #define int32_t $ac_cv_c_int32_t
7344 _ACEOF
7346 esac
7349 { echo "$as_me:$LINENO: checking for int64_t" >&5
7350 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
7351 if test "${ac_cv_c_int64_t+set}" = set; then
7352 echo $ECHO_N "(cached) $ECHO_C" >&6
7353 else
7354 ac_cv_c_int64_t=no
7355 for ac_type in 'int64_t' 'int' 'long int' \
7356 'long long int' 'short int' 'signed char'; do
7357 cat >conftest.$ac_ext <<_ACEOF
7358 /* confdefs.h. */
7359 _ACEOF
7360 cat confdefs.h >>conftest.$ac_ext
7361 cat >>conftest.$ac_ext <<_ACEOF
7362 /* end confdefs.h. */
7363 $ac_includes_default
7365 main ()
7367 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
7368 test_array [0] = 0
7371 return 0;
7373 _ACEOF
7374 rm -f conftest.$ac_objext
7375 if { (ac_try="$ac_compile"
7376 case "(($ac_try" in
7377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7378 *) ac_try_echo=$ac_try;;
7379 esac
7380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7381 (eval "$ac_compile") 2>conftest.er1
7382 ac_status=$?
7383 grep -v '^ *+' conftest.er1 >conftest.err
7384 rm -f conftest.er1
7385 cat conftest.err >&5
7386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7387 (exit $ac_status); } && {
7388 test -z "$ac_c_werror_flag" ||
7389 test ! -s conftest.err
7390 } && test -s conftest.$ac_objext; then
7391 cat >conftest.$ac_ext <<_ACEOF
7392 /* confdefs.h. */
7393 _ACEOF
7394 cat confdefs.h >>conftest.$ac_ext
7395 cat >>conftest.$ac_ext <<_ACEOF
7396 /* end confdefs.h. */
7397 $ac_includes_default
7399 main ()
7401 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
7402 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
7403 test_array [0] = 0
7406 return 0;
7408 _ACEOF
7409 rm -f conftest.$ac_objext
7410 if { (ac_try="$ac_compile"
7411 case "(($ac_try" in
7412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7413 *) ac_try_echo=$ac_try;;
7414 esac
7415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7416 (eval "$ac_compile") 2>conftest.er1
7417 ac_status=$?
7418 grep -v '^ *+' conftest.er1 >conftest.err
7419 rm -f conftest.er1
7420 cat conftest.err >&5
7421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7422 (exit $ac_status); } && {
7423 test -z "$ac_c_werror_flag" ||
7424 test ! -s conftest.err
7425 } && test -s conftest.$ac_objext; then
7427 else
7428 echo "$as_me: failed program was:" >&5
7429 sed 's/^/| /' conftest.$ac_ext >&5
7431 case $ac_type in
7432 int64_t) ac_cv_c_int64_t=yes ;;
7433 *) ac_cv_c_int64_t=$ac_type ;;
7434 esac
7438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7439 else
7440 echo "$as_me: failed program was:" >&5
7441 sed 's/^/| /' conftest.$ac_ext >&5
7446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7447 test "$ac_cv_c_int64_t" != no && break
7448 done
7450 { echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
7451 echo "${ECHO_T}$ac_cv_c_int64_t" >&6; }
7452 case $ac_cv_c_int64_t in #(
7453 no|yes) ;; #(
7456 cat >>confdefs.h <<_ACEOF
7457 #define int64_t $ac_cv_c_int64_t
7458 _ACEOF
7460 esac
7462 { echo "$as_me:$LINENO: checking for ssize_t" >&5
7463 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
7464 if test "${ac_cv_type_ssize_t+set}" = set; then
7465 echo $ECHO_N "(cached) $ECHO_C" >&6
7466 else
7467 cat >conftest.$ac_ext <<_ACEOF
7468 /* confdefs.h. */
7469 _ACEOF
7470 cat confdefs.h >>conftest.$ac_ext
7471 cat >>conftest.$ac_ext <<_ACEOF
7472 /* end confdefs.h. */
7473 $ac_includes_default
7474 typedef ssize_t ac__type_new_;
7476 main ()
7478 if ((ac__type_new_ *) 0)
7479 return 0;
7480 if (sizeof (ac__type_new_))
7481 return 0;
7483 return 0;
7485 _ACEOF
7486 rm -f conftest.$ac_objext
7487 if { (ac_try="$ac_compile"
7488 case "(($ac_try" in
7489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7490 *) ac_try_echo=$ac_try;;
7491 esac
7492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7493 (eval "$ac_compile") 2>conftest.er1
7494 ac_status=$?
7495 grep -v '^ *+' conftest.er1 >conftest.err
7496 rm -f conftest.er1
7497 cat conftest.err >&5
7498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7499 (exit $ac_status); } && {
7500 test -z "$ac_c_werror_flag" ||
7501 test ! -s conftest.err
7502 } && test -s conftest.$ac_objext; then
7503 ac_cv_type_ssize_t=yes
7504 else
7505 echo "$as_me: failed program was:" >&5
7506 sed 's/^/| /' conftest.$ac_ext >&5
7508 ac_cv_type_ssize_t=no
7511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7513 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
7514 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
7515 if test $ac_cv_type_ssize_t = yes; then
7517 cat >>confdefs.h <<\_ACEOF
7518 #define HAVE_SSIZE_T 1
7519 _ACEOF
7524 # Sizes of various common basic types
7525 # ANSI C requires sizeof(char) == 1, so no need to check it
7526 { echo "$as_me:$LINENO: checking for int" >&5
7527 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
7528 if test "${ac_cv_type_int+set}" = set; then
7529 echo $ECHO_N "(cached) $ECHO_C" >&6
7530 else
7531 cat >conftest.$ac_ext <<_ACEOF
7532 /* confdefs.h. */
7533 _ACEOF
7534 cat confdefs.h >>conftest.$ac_ext
7535 cat >>conftest.$ac_ext <<_ACEOF
7536 /* end confdefs.h. */
7537 $ac_includes_default
7538 typedef int ac__type_new_;
7540 main ()
7542 if ((ac__type_new_ *) 0)
7543 return 0;
7544 if (sizeof (ac__type_new_))
7545 return 0;
7547 return 0;
7549 _ACEOF
7550 rm -f conftest.$ac_objext
7551 if { (ac_try="$ac_compile"
7552 case "(($ac_try" in
7553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7554 *) ac_try_echo=$ac_try;;
7555 esac
7556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7557 (eval "$ac_compile") 2>conftest.er1
7558 ac_status=$?
7559 grep -v '^ *+' conftest.er1 >conftest.err
7560 rm -f conftest.er1
7561 cat conftest.err >&5
7562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7563 (exit $ac_status); } && {
7564 test -z "$ac_c_werror_flag" ||
7565 test ! -s conftest.err
7566 } && test -s conftest.$ac_objext; then
7567 ac_cv_type_int=yes
7568 else
7569 echo "$as_me: failed program was:" >&5
7570 sed 's/^/| /' conftest.$ac_ext >&5
7572 ac_cv_type_int=no
7575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7577 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
7578 echo "${ECHO_T}$ac_cv_type_int" >&6; }
7580 # The cast to long int works around a bug in the HP C Compiler
7581 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7582 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7583 # This bug is HP SR number 8606223364.
7584 { echo "$as_me:$LINENO: checking size of int" >&5
7585 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
7586 if test "${ac_cv_sizeof_int+set}" = set; then
7587 echo $ECHO_N "(cached) $ECHO_C" >&6
7588 else
7589 if test "$cross_compiling" = yes; then
7590 # Depending upon the size, compute the lo and hi bounds.
7591 cat >conftest.$ac_ext <<_ACEOF
7592 /* confdefs.h. */
7593 _ACEOF
7594 cat confdefs.h >>conftest.$ac_ext
7595 cat >>conftest.$ac_ext <<_ACEOF
7596 /* end confdefs.h. */
7597 $ac_includes_default
7598 typedef int ac__type_sizeof_;
7600 main ()
7602 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7603 test_array [0] = 0
7606 return 0;
7608 _ACEOF
7609 rm -f conftest.$ac_objext
7610 if { (ac_try="$ac_compile"
7611 case "(($ac_try" in
7612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7613 *) ac_try_echo=$ac_try;;
7614 esac
7615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7616 (eval "$ac_compile") 2>conftest.er1
7617 ac_status=$?
7618 grep -v '^ *+' conftest.er1 >conftest.err
7619 rm -f conftest.er1
7620 cat conftest.err >&5
7621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7622 (exit $ac_status); } && {
7623 test -z "$ac_c_werror_flag" ||
7624 test ! -s conftest.err
7625 } && test -s conftest.$ac_objext; then
7626 ac_lo=0 ac_mid=0
7627 while :; do
7628 cat >conftest.$ac_ext <<_ACEOF
7629 /* confdefs.h. */
7630 _ACEOF
7631 cat confdefs.h >>conftest.$ac_ext
7632 cat >>conftest.$ac_ext <<_ACEOF
7633 /* end confdefs.h. */
7634 $ac_includes_default
7635 typedef int ac__type_sizeof_;
7637 main ()
7639 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7640 test_array [0] = 0
7643 return 0;
7645 _ACEOF
7646 rm -f conftest.$ac_objext
7647 if { (ac_try="$ac_compile"
7648 case "(($ac_try" in
7649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7650 *) ac_try_echo=$ac_try;;
7651 esac
7652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7653 (eval "$ac_compile") 2>conftest.er1
7654 ac_status=$?
7655 grep -v '^ *+' conftest.er1 >conftest.err
7656 rm -f conftest.er1
7657 cat conftest.err >&5
7658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7659 (exit $ac_status); } && {
7660 test -z "$ac_c_werror_flag" ||
7661 test ! -s conftest.err
7662 } && test -s conftest.$ac_objext; then
7663 ac_hi=$ac_mid; break
7664 else
7665 echo "$as_me: failed program was:" >&5
7666 sed 's/^/| /' conftest.$ac_ext >&5
7668 ac_lo=`expr $ac_mid + 1`
7669 if test $ac_lo -le $ac_mid; then
7670 ac_lo= ac_hi=
7671 break
7673 ac_mid=`expr 2 '*' $ac_mid + 1`
7676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7677 done
7678 else
7679 echo "$as_me: failed program was:" >&5
7680 sed 's/^/| /' conftest.$ac_ext >&5
7682 cat >conftest.$ac_ext <<_ACEOF
7683 /* confdefs.h. */
7684 _ACEOF
7685 cat confdefs.h >>conftest.$ac_ext
7686 cat >>conftest.$ac_ext <<_ACEOF
7687 /* end confdefs.h. */
7688 $ac_includes_default
7689 typedef int ac__type_sizeof_;
7691 main ()
7693 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7694 test_array [0] = 0
7697 return 0;
7699 _ACEOF
7700 rm -f conftest.$ac_objext
7701 if { (ac_try="$ac_compile"
7702 case "(($ac_try" in
7703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7704 *) ac_try_echo=$ac_try;;
7705 esac
7706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7707 (eval "$ac_compile") 2>conftest.er1
7708 ac_status=$?
7709 grep -v '^ *+' conftest.er1 >conftest.err
7710 rm -f conftest.er1
7711 cat conftest.err >&5
7712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7713 (exit $ac_status); } && {
7714 test -z "$ac_c_werror_flag" ||
7715 test ! -s conftest.err
7716 } && test -s conftest.$ac_objext; then
7717 ac_hi=-1 ac_mid=-1
7718 while :; do
7719 cat >conftest.$ac_ext <<_ACEOF
7720 /* confdefs.h. */
7721 _ACEOF
7722 cat confdefs.h >>conftest.$ac_ext
7723 cat >>conftest.$ac_ext <<_ACEOF
7724 /* end confdefs.h. */
7725 $ac_includes_default
7726 typedef int ac__type_sizeof_;
7728 main ()
7730 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7731 test_array [0] = 0
7734 return 0;
7736 _ACEOF
7737 rm -f conftest.$ac_objext
7738 if { (ac_try="$ac_compile"
7739 case "(($ac_try" in
7740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7741 *) ac_try_echo=$ac_try;;
7742 esac
7743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7744 (eval "$ac_compile") 2>conftest.er1
7745 ac_status=$?
7746 grep -v '^ *+' conftest.er1 >conftest.err
7747 rm -f conftest.er1
7748 cat conftest.err >&5
7749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7750 (exit $ac_status); } && {
7751 test -z "$ac_c_werror_flag" ||
7752 test ! -s conftest.err
7753 } && test -s conftest.$ac_objext; then
7754 ac_lo=$ac_mid; break
7755 else
7756 echo "$as_me: failed program was:" >&5
7757 sed 's/^/| /' conftest.$ac_ext >&5
7759 ac_hi=`expr '(' $ac_mid ')' - 1`
7760 if test $ac_mid -le $ac_hi; then
7761 ac_lo= ac_hi=
7762 break
7764 ac_mid=`expr 2 '*' $ac_mid`
7767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7768 done
7769 else
7770 echo "$as_me: failed program was:" >&5
7771 sed 's/^/| /' conftest.$ac_ext >&5
7773 ac_lo= ac_hi=
7776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7780 # Binary search between lo and hi bounds.
7781 while test "x$ac_lo" != "x$ac_hi"; do
7782 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7783 cat >conftest.$ac_ext <<_ACEOF
7784 /* confdefs.h. */
7785 _ACEOF
7786 cat confdefs.h >>conftest.$ac_ext
7787 cat >>conftest.$ac_ext <<_ACEOF
7788 /* end confdefs.h. */
7789 $ac_includes_default
7790 typedef int ac__type_sizeof_;
7792 main ()
7794 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7795 test_array [0] = 0
7798 return 0;
7800 _ACEOF
7801 rm -f conftest.$ac_objext
7802 if { (ac_try="$ac_compile"
7803 case "(($ac_try" in
7804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7805 *) ac_try_echo=$ac_try;;
7806 esac
7807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7808 (eval "$ac_compile") 2>conftest.er1
7809 ac_status=$?
7810 grep -v '^ *+' conftest.er1 >conftest.err
7811 rm -f conftest.er1
7812 cat conftest.err >&5
7813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7814 (exit $ac_status); } && {
7815 test -z "$ac_c_werror_flag" ||
7816 test ! -s conftest.err
7817 } && test -s conftest.$ac_objext; then
7818 ac_hi=$ac_mid
7819 else
7820 echo "$as_me: failed program was:" >&5
7821 sed 's/^/| /' conftest.$ac_ext >&5
7823 ac_lo=`expr '(' $ac_mid ')' + 1`
7826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7827 done
7828 case $ac_lo in
7829 ?*) ac_cv_sizeof_int=$ac_lo;;
7830 '') if test "$ac_cv_type_int" = yes; then
7831 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7832 See \`config.log' for more details." >&5
7833 echo "$as_me: error: cannot compute sizeof (int)
7834 See \`config.log' for more details." >&2;}
7835 { (exit 77); exit 77; }; }
7836 else
7837 ac_cv_sizeof_int=0
7838 fi ;;
7839 esac
7840 else
7841 cat >conftest.$ac_ext <<_ACEOF
7842 /* confdefs.h. */
7843 _ACEOF
7844 cat confdefs.h >>conftest.$ac_ext
7845 cat >>conftest.$ac_ext <<_ACEOF
7846 /* end confdefs.h. */
7847 $ac_includes_default
7848 typedef int ac__type_sizeof_;
7849 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7850 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7851 #include <stdio.h>
7852 #include <stdlib.h>
7854 main ()
7857 FILE *f = fopen ("conftest.val", "w");
7858 if (! f)
7859 return 1;
7860 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7862 long int i = longval ();
7863 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7864 return 1;
7865 fprintf (f, "%ld\n", i);
7867 else
7869 unsigned long int i = ulongval ();
7870 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7871 return 1;
7872 fprintf (f, "%lu\n", i);
7874 return ferror (f) || fclose (f) != 0;
7877 return 0;
7879 _ACEOF
7880 rm -f conftest$ac_exeext
7881 if { (ac_try="$ac_link"
7882 case "(($ac_try" in
7883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7884 *) ac_try_echo=$ac_try;;
7885 esac
7886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7887 (eval "$ac_link") 2>&5
7888 ac_status=$?
7889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7890 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7891 { (case "(($ac_try" in
7892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7893 *) ac_try_echo=$ac_try;;
7894 esac
7895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7896 (eval "$ac_try") 2>&5
7897 ac_status=$?
7898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7899 (exit $ac_status); }; }; then
7900 ac_cv_sizeof_int=`cat conftest.val`
7901 else
7902 echo "$as_me: program exited with status $ac_status" >&5
7903 echo "$as_me: failed program was:" >&5
7904 sed 's/^/| /' conftest.$ac_ext >&5
7906 ( exit $ac_status )
7907 if test "$ac_cv_type_int" = yes; then
7908 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7909 See \`config.log' for more details." >&5
7910 echo "$as_me: error: cannot compute sizeof (int)
7911 See \`config.log' for more details." >&2;}
7912 { (exit 77); exit 77; }; }
7913 else
7914 ac_cv_sizeof_int=0
7917 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7919 rm -f conftest.val
7921 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
7922 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
7926 cat >>confdefs.h <<_ACEOF
7927 #define SIZEOF_INT $ac_cv_sizeof_int
7928 _ACEOF
7931 { echo "$as_me:$LINENO: checking for long" >&5
7932 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
7933 if test "${ac_cv_type_long+set}" = set; then
7934 echo $ECHO_N "(cached) $ECHO_C" >&6
7935 else
7936 cat >conftest.$ac_ext <<_ACEOF
7937 /* confdefs.h. */
7938 _ACEOF
7939 cat confdefs.h >>conftest.$ac_ext
7940 cat >>conftest.$ac_ext <<_ACEOF
7941 /* end confdefs.h. */
7942 $ac_includes_default
7943 typedef long ac__type_new_;
7945 main ()
7947 if ((ac__type_new_ *) 0)
7948 return 0;
7949 if (sizeof (ac__type_new_))
7950 return 0;
7952 return 0;
7954 _ACEOF
7955 rm -f conftest.$ac_objext
7956 if { (ac_try="$ac_compile"
7957 case "(($ac_try" in
7958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7959 *) ac_try_echo=$ac_try;;
7960 esac
7961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7962 (eval "$ac_compile") 2>conftest.er1
7963 ac_status=$?
7964 grep -v '^ *+' conftest.er1 >conftest.err
7965 rm -f conftest.er1
7966 cat conftest.err >&5
7967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968 (exit $ac_status); } && {
7969 test -z "$ac_c_werror_flag" ||
7970 test ! -s conftest.err
7971 } && test -s conftest.$ac_objext; then
7972 ac_cv_type_long=yes
7973 else
7974 echo "$as_me: failed program was:" >&5
7975 sed 's/^/| /' conftest.$ac_ext >&5
7977 ac_cv_type_long=no
7980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7982 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
7983 echo "${ECHO_T}$ac_cv_type_long" >&6; }
7985 # The cast to long int works around a bug in the HP C Compiler
7986 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7987 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7988 # This bug is HP SR number 8606223364.
7989 { echo "$as_me:$LINENO: checking size of long" >&5
7990 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
7991 if test "${ac_cv_sizeof_long+set}" = set; then
7992 echo $ECHO_N "(cached) $ECHO_C" >&6
7993 else
7994 if test "$cross_compiling" = yes; then
7995 # Depending upon the size, compute the lo and hi bounds.
7996 cat >conftest.$ac_ext <<_ACEOF
7997 /* confdefs.h. */
7998 _ACEOF
7999 cat confdefs.h >>conftest.$ac_ext
8000 cat >>conftest.$ac_ext <<_ACEOF
8001 /* end confdefs.h. */
8002 $ac_includes_default
8003 typedef long ac__type_sizeof_;
8005 main ()
8007 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8008 test_array [0] = 0
8011 return 0;
8013 _ACEOF
8014 rm -f conftest.$ac_objext
8015 if { (ac_try="$ac_compile"
8016 case "(($ac_try" in
8017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8018 *) ac_try_echo=$ac_try;;
8019 esac
8020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8021 (eval "$ac_compile") 2>conftest.er1
8022 ac_status=$?
8023 grep -v '^ *+' conftest.er1 >conftest.err
8024 rm -f conftest.er1
8025 cat conftest.err >&5
8026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8027 (exit $ac_status); } && {
8028 test -z "$ac_c_werror_flag" ||
8029 test ! -s conftest.err
8030 } && test -s conftest.$ac_objext; then
8031 ac_lo=0 ac_mid=0
8032 while :; do
8033 cat >conftest.$ac_ext <<_ACEOF
8034 /* confdefs.h. */
8035 _ACEOF
8036 cat confdefs.h >>conftest.$ac_ext
8037 cat >>conftest.$ac_ext <<_ACEOF
8038 /* end confdefs.h. */
8039 $ac_includes_default
8040 typedef long ac__type_sizeof_;
8042 main ()
8044 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8045 test_array [0] = 0
8048 return 0;
8050 _ACEOF
8051 rm -f conftest.$ac_objext
8052 if { (ac_try="$ac_compile"
8053 case "(($ac_try" in
8054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8055 *) ac_try_echo=$ac_try;;
8056 esac
8057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8058 (eval "$ac_compile") 2>conftest.er1
8059 ac_status=$?
8060 grep -v '^ *+' conftest.er1 >conftest.err
8061 rm -f conftest.er1
8062 cat conftest.err >&5
8063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8064 (exit $ac_status); } && {
8065 test -z "$ac_c_werror_flag" ||
8066 test ! -s conftest.err
8067 } && test -s conftest.$ac_objext; then
8068 ac_hi=$ac_mid; break
8069 else
8070 echo "$as_me: failed program was:" >&5
8071 sed 's/^/| /' conftest.$ac_ext >&5
8073 ac_lo=`expr $ac_mid + 1`
8074 if test $ac_lo -le $ac_mid; then
8075 ac_lo= ac_hi=
8076 break
8078 ac_mid=`expr 2 '*' $ac_mid + 1`
8081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8082 done
8083 else
8084 echo "$as_me: failed program was:" >&5
8085 sed 's/^/| /' conftest.$ac_ext >&5
8087 cat >conftest.$ac_ext <<_ACEOF
8088 /* confdefs.h. */
8089 _ACEOF
8090 cat confdefs.h >>conftest.$ac_ext
8091 cat >>conftest.$ac_ext <<_ACEOF
8092 /* end confdefs.h. */
8093 $ac_includes_default
8094 typedef long ac__type_sizeof_;
8096 main ()
8098 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8099 test_array [0] = 0
8102 return 0;
8104 _ACEOF
8105 rm -f conftest.$ac_objext
8106 if { (ac_try="$ac_compile"
8107 case "(($ac_try" in
8108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8109 *) ac_try_echo=$ac_try;;
8110 esac
8111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8112 (eval "$ac_compile") 2>conftest.er1
8113 ac_status=$?
8114 grep -v '^ *+' conftest.er1 >conftest.err
8115 rm -f conftest.er1
8116 cat conftest.err >&5
8117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8118 (exit $ac_status); } && {
8119 test -z "$ac_c_werror_flag" ||
8120 test ! -s conftest.err
8121 } && test -s conftest.$ac_objext; then
8122 ac_hi=-1 ac_mid=-1
8123 while :; do
8124 cat >conftest.$ac_ext <<_ACEOF
8125 /* confdefs.h. */
8126 _ACEOF
8127 cat confdefs.h >>conftest.$ac_ext
8128 cat >>conftest.$ac_ext <<_ACEOF
8129 /* end confdefs.h. */
8130 $ac_includes_default
8131 typedef long ac__type_sizeof_;
8133 main ()
8135 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8136 test_array [0] = 0
8139 return 0;
8141 _ACEOF
8142 rm -f conftest.$ac_objext
8143 if { (ac_try="$ac_compile"
8144 case "(($ac_try" in
8145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8146 *) ac_try_echo=$ac_try;;
8147 esac
8148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8149 (eval "$ac_compile") 2>conftest.er1
8150 ac_status=$?
8151 grep -v '^ *+' conftest.er1 >conftest.err
8152 rm -f conftest.er1
8153 cat conftest.err >&5
8154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8155 (exit $ac_status); } && {
8156 test -z "$ac_c_werror_flag" ||
8157 test ! -s conftest.err
8158 } && test -s conftest.$ac_objext; then
8159 ac_lo=$ac_mid; break
8160 else
8161 echo "$as_me: failed program was:" >&5
8162 sed 's/^/| /' conftest.$ac_ext >&5
8164 ac_hi=`expr '(' $ac_mid ')' - 1`
8165 if test $ac_mid -le $ac_hi; then
8166 ac_lo= ac_hi=
8167 break
8169 ac_mid=`expr 2 '*' $ac_mid`
8172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8173 done
8174 else
8175 echo "$as_me: failed program was:" >&5
8176 sed 's/^/| /' conftest.$ac_ext >&5
8178 ac_lo= ac_hi=
8181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8185 # Binary search between lo and hi bounds.
8186 while test "x$ac_lo" != "x$ac_hi"; do
8187 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8188 cat >conftest.$ac_ext <<_ACEOF
8189 /* confdefs.h. */
8190 _ACEOF
8191 cat confdefs.h >>conftest.$ac_ext
8192 cat >>conftest.$ac_ext <<_ACEOF
8193 /* end confdefs.h. */
8194 $ac_includes_default
8195 typedef long ac__type_sizeof_;
8197 main ()
8199 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8200 test_array [0] = 0
8203 return 0;
8205 _ACEOF
8206 rm -f conftest.$ac_objext
8207 if { (ac_try="$ac_compile"
8208 case "(($ac_try" in
8209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8210 *) ac_try_echo=$ac_try;;
8211 esac
8212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8213 (eval "$ac_compile") 2>conftest.er1
8214 ac_status=$?
8215 grep -v '^ *+' conftest.er1 >conftest.err
8216 rm -f conftest.er1
8217 cat conftest.err >&5
8218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8219 (exit $ac_status); } && {
8220 test -z "$ac_c_werror_flag" ||
8221 test ! -s conftest.err
8222 } && test -s conftest.$ac_objext; then
8223 ac_hi=$ac_mid
8224 else
8225 echo "$as_me: failed program was:" >&5
8226 sed 's/^/| /' conftest.$ac_ext >&5
8228 ac_lo=`expr '(' $ac_mid ')' + 1`
8231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8232 done
8233 case $ac_lo in
8234 ?*) ac_cv_sizeof_long=$ac_lo;;
8235 '') if test "$ac_cv_type_long" = yes; then
8236 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
8237 See \`config.log' for more details." >&5
8238 echo "$as_me: error: cannot compute sizeof (long)
8239 See \`config.log' for more details." >&2;}
8240 { (exit 77); exit 77; }; }
8241 else
8242 ac_cv_sizeof_long=0
8243 fi ;;
8244 esac
8245 else
8246 cat >conftest.$ac_ext <<_ACEOF
8247 /* confdefs.h. */
8248 _ACEOF
8249 cat confdefs.h >>conftest.$ac_ext
8250 cat >>conftest.$ac_ext <<_ACEOF
8251 /* end confdefs.h. */
8252 $ac_includes_default
8253 typedef long ac__type_sizeof_;
8254 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8255 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8256 #include <stdio.h>
8257 #include <stdlib.h>
8259 main ()
8262 FILE *f = fopen ("conftest.val", "w");
8263 if (! f)
8264 return 1;
8265 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8267 long int i = longval ();
8268 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8269 return 1;
8270 fprintf (f, "%ld\n", i);
8272 else
8274 unsigned long int i = ulongval ();
8275 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8276 return 1;
8277 fprintf (f, "%lu\n", i);
8279 return ferror (f) || fclose (f) != 0;
8282 return 0;
8284 _ACEOF
8285 rm -f conftest$ac_exeext
8286 if { (ac_try="$ac_link"
8287 case "(($ac_try" in
8288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8289 *) ac_try_echo=$ac_try;;
8290 esac
8291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8292 (eval "$ac_link") 2>&5
8293 ac_status=$?
8294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8295 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8296 { (case "(($ac_try" in
8297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8298 *) ac_try_echo=$ac_try;;
8299 esac
8300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8301 (eval "$ac_try") 2>&5
8302 ac_status=$?
8303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8304 (exit $ac_status); }; }; then
8305 ac_cv_sizeof_long=`cat conftest.val`
8306 else
8307 echo "$as_me: program exited with status $ac_status" >&5
8308 echo "$as_me: failed program was:" >&5
8309 sed 's/^/| /' conftest.$ac_ext >&5
8311 ( exit $ac_status )
8312 if test "$ac_cv_type_long" = yes; then
8313 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
8314 See \`config.log' for more details." >&5
8315 echo "$as_me: error: cannot compute sizeof (long)
8316 See \`config.log' for more details." >&2;}
8317 { (exit 77); exit 77; }; }
8318 else
8319 ac_cv_sizeof_long=0
8322 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8324 rm -f conftest.val
8326 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
8327 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
8331 cat >>confdefs.h <<_ACEOF
8332 #define SIZEOF_LONG $ac_cv_sizeof_long
8333 _ACEOF
8336 { echo "$as_me:$LINENO: checking for void *" >&5
8337 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
8338 if test "${ac_cv_type_void_p+set}" = set; then
8339 echo $ECHO_N "(cached) $ECHO_C" >&6
8340 else
8341 cat >conftest.$ac_ext <<_ACEOF
8342 /* confdefs.h. */
8343 _ACEOF
8344 cat confdefs.h >>conftest.$ac_ext
8345 cat >>conftest.$ac_ext <<_ACEOF
8346 /* end confdefs.h. */
8347 $ac_includes_default
8348 typedef void * ac__type_new_;
8350 main ()
8352 if ((ac__type_new_ *) 0)
8353 return 0;
8354 if (sizeof (ac__type_new_))
8355 return 0;
8357 return 0;
8359 _ACEOF
8360 rm -f conftest.$ac_objext
8361 if { (ac_try="$ac_compile"
8362 case "(($ac_try" in
8363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8364 *) ac_try_echo=$ac_try;;
8365 esac
8366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8367 (eval "$ac_compile") 2>conftest.er1
8368 ac_status=$?
8369 grep -v '^ *+' conftest.er1 >conftest.err
8370 rm -f conftest.er1
8371 cat conftest.err >&5
8372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373 (exit $ac_status); } && {
8374 test -z "$ac_c_werror_flag" ||
8375 test ! -s conftest.err
8376 } && test -s conftest.$ac_objext; then
8377 ac_cv_type_void_p=yes
8378 else
8379 echo "$as_me: failed program was:" >&5
8380 sed 's/^/| /' conftest.$ac_ext >&5
8382 ac_cv_type_void_p=no
8385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8387 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
8388 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
8390 # The cast to long int works around a bug in the HP C Compiler
8391 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8392 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8393 # This bug is HP SR number 8606223364.
8394 { echo "$as_me:$LINENO: checking size of void *" >&5
8395 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
8396 if test "${ac_cv_sizeof_void_p+set}" = set; then
8397 echo $ECHO_N "(cached) $ECHO_C" >&6
8398 else
8399 if test "$cross_compiling" = yes; then
8400 # Depending upon the size, compute the lo and hi bounds.
8401 cat >conftest.$ac_ext <<_ACEOF
8402 /* confdefs.h. */
8403 _ACEOF
8404 cat confdefs.h >>conftest.$ac_ext
8405 cat >>conftest.$ac_ext <<_ACEOF
8406 /* end confdefs.h. */
8407 $ac_includes_default
8408 typedef void * ac__type_sizeof_;
8410 main ()
8412 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8413 test_array [0] = 0
8416 return 0;
8418 _ACEOF
8419 rm -f conftest.$ac_objext
8420 if { (ac_try="$ac_compile"
8421 case "(($ac_try" in
8422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8423 *) ac_try_echo=$ac_try;;
8424 esac
8425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8426 (eval "$ac_compile") 2>conftest.er1
8427 ac_status=$?
8428 grep -v '^ *+' conftest.er1 >conftest.err
8429 rm -f conftest.er1
8430 cat conftest.err >&5
8431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8432 (exit $ac_status); } && {
8433 test -z "$ac_c_werror_flag" ||
8434 test ! -s conftest.err
8435 } && test -s conftest.$ac_objext; then
8436 ac_lo=0 ac_mid=0
8437 while :; do
8438 cat >conftest.$ac_ext <<_ACEOF
8439 /* confdefs.h. */
8440 _ACEOF
8441 cat confdefs.h >>conftest.$ac_ext
8442 cat >>conftest.$ac_ext <<_ACEOF
8443 /* end confdefs.h. */
8444 $ac_includes_default
8445 typedef void * ac__type_sizeof_;
8447 main ()
8449 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8450 test_array [0] = 0
8453 return 0;
8455 _ACEOF
8456 rm -f conftest.$ac_objext
8457 if { (ac_try="$ac_compile"
8458 case "(($ac_try" in
8459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8460 *) ac_try_echo=$ac_try;;
8461 esac
8462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8463 (eval "$ac_compile") 2>conftest.er1
8464 ac_status=$?
8465 grep -v '^ *+' conftest.er1 >conftest.err
8466 rm -f conftest.er1
8467 cat conftest.err >&5
8468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469 (exit $ac_status); } && {
8470 test -z "$ac_c_werror_flag" ||
8471 test ! -s conftest.err
8472 } && test -s conftest.$ac_objext; then
8473 ac_hi=$ac_mid; break
8474 else
8475 echo "$as_me: failed program was:" >&5
8476 sed 's/^/| /' conftest.$ac_ext >&5
8478 ac_lo=`expr $ac_mid + 1`
8479 if test $ac_lo -le $ac_mid; then
8480 ac_lo= ac_hi=
8481 break
8483 ac_mid=`expr 2 '*' $ac_mid + 1`
8486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8487 done
8488 else
8489 echo "$as_me: failed program was:" >&5
8490 sed 's/^/| /' conftest.$ac_ext >&5
8492 cat >conftest.$ac_ext <<_ACEOF
8493 /* confdefs.h. */
8494 _ACEOF
8495 cat confdefs.h >>conftest.$ac_ext
8496 cat >>conftest.$ac_ext <<_ACEOF
8497 /* end confdefs.h. */
8498 $ac_includes_default
8499 typedef void * ac__type_sizeof_;
8501 main ()
8503 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8504 test_array [0] = 0
8507 return 0;
8509 _ACEOF
8510 rm -f conftest.$ac_objext
8511 if { (ac_try="$ac_compile"
8512 case "(($ac_try" in
8513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8514 *) ac_try_echo=$ac_try;;
8515 esac
8516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8517 (eval "$ac_compile") 2>conftest.er1
8518 ac_status=$?
8519 grep -v '^ *+' conftest.er1 >conftest.err
8520 rm -f conftest.er1
8521 cat conftest.err >&5
8522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523 (exit $ac_status); } && {
8524 test -z "$ac_c_werror_flag" ||
8525 test ! -s conftest.err
8526 } && test -s conftest.$ac_objext; then
8527 ac_hi=-1 ac_mid=-1
8528 while :; do
8529 cat >conftest.$ac_ext <<_ACEOF
8530 /* confdefs.h. */
8531 _ACEOF
8532 cat confdefs.h >>conftest.$ac_ext
8533 cat >>conftest.$ac_ext <<_ACEOF
8534 /* end confdefs.h. */
8535 $ac_includes_default
8536 typedef void * ac__type_sizeof_;
8538 main ()
8540 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8541 test_array [0] = 0
8544 return 0;
8546 _ACEOF
8547 rm -f conftest.$ac_objext
8548 if { (ac_try="$ac_compile"
8549 case "(($ac_try" in
8550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8551 *) ac_try_echo=$ac_try;;
8552 esac
8553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8554 (eval "$ac_compile") 2>conftest.er1
8555 ac_status=$?
8556 grep -v '^ *+' conftest.er1 >conftest.err
8557 rm -f conftest.er1
8558 cat conftest.err >&5
8559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560 (exit $ac_status); } && {
8561 test -z "$ac_c_werror_flag" ||
8562 test ! -s conftest.err
8563 } && test -s conftest.$ac_objext; then
8564 ac_lo=$ac_mid; break
8565 else
8566 echo "$as_me: failed program was:" >&5
8567 sed 's/^/| /' conftest.$ac_ext >&5
8569 ac_hi=`expr '(' $ac_mid ')' - 1`
8570 if test $ac_mid -le $ac_hi; then
8571 ac_lo= ac_hi=
8572 break
8574 ac_mid=`expr 2 '*' $ac_mid`
8577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8578 done
8579 else
8580 echo "$as_me: failed program was:" >&5
8581 sed 's/^/| /' conftest.$ac_ext >&5
8583 ac_lo= ac_hi=
8586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8590 # Binary search between lo and hi bounds.
8591 while test "x$ac_lo" != "x$ac_hi"; do
8592 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8593 cat >conftest.$ac_ext <<_ACEOF
8594 /* confdefs.h. */
8595 _ACEOF
8596 cat confdefs.h >>conftest.$ac_ext
8597 cat >>conftest.$ac_ext <<_ACEOF
8598 /* end confdefs.h. */
8599 $ac_includes_default
8600 typedef void * ac__type_sizeof_;
8602 main ()
8604 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8605 test_array [0] = 0
8608 return 0;
8610 _ACEOF
8611 rm -f conftest.$ac_objext
8612 if { (ac_try="$ac_compile"
8613 case "(($ac_try" in
8614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8615 *) ac_try_echo=$ac_try;;
8616 esac
8617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8618 (eval "$ac_compile") 2>conftest.er1
8619 ac_status=$?
8620 grep -v '^ *+' conftest.er1 >conftest.err
8621 rm -f conftest.er1
8622 cat conftest.err >&5
8623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624 (exit $ac_status); } && {
8625 test -z "$ac_c_werror_flag" ||
8626 test ! -s conftest.err
8627 } && test -s conftest.$ac_objext; then
8628 ac_hi=$ac_mid
8629 else
8630 echo "$as_me: failed program was:" >&5
8631 sed 's/^/| /' conftest.$ac_ext >&5
8633 ac_lo=`expr '(' $ac_mid ')' + 1`
8636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8637 done
8638 case $ac_lo in
8639 ?*) ac_cv_sizeof_void_p=$ac_lo;;
8640 '') if test "$ac_cv_type_void_p" = yes; then
8641 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8642 See \`config.log' for more details." >&5
8643 echo "$as_me: error: cannot compute sizeof (void *)
8644 See \`config.log' for more details." >&2;}
8645 { (exit 77); exit 77; }; }
8646 else
8647 ac_cv_sizeof_void_p=0
8648 fi ;;
8649 esac
8650 else
8651 cat >conftest.$ac_ext <<_ACEOF
8652 /* confdefs.h. */
8653 _ACEOF
8654 cat confdefs.h >>conftest.$ac_ext
8655 cat >>conftest.$ac_ext <<_ACEOF
8656 /* end confdefs.h. */
8657 $ac_includes_default
8658 typedef void * ac__type_sizeof_;
8659 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8660 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8661 #include <stdio.h>
8662 #include <stdlib.h>
8664 main ()
8667 FILE *f = fopen ("conftest.val", "w");
8668 if (! f)
8669 return 1;
8670 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8672 long int i = longval ();
8673 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8674 return 1;
8675 fprintf (f, "%ld\n", i);
8677 else
8679 unsigned long int i = ulongval ();
8680 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8681 return 1;
8682 fprintf (f, "%lu\n", i);
8684 return ferror (f) || fclose (f) != 0;
8687 return 0;
8689 _ACEOF
8690 rm -f conftest$ac_exeext
8691 if { (ac_try="$ac_link"
8692 case "(($ac_try" in
8693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8694 *) ac_try_echo=$ac_try;;
8695 esac
8696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8697 (eval "$ac_link") 2>&5
8698 ac_status=$?
8699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8700 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8701 { (case "(($ac_try" in
8702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8703 *) ac_try_echo=$ac_try;;
8704 esac
8705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8706 (eval "$ac_try") 2>&5
8707 ac_status=$?
8708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8709 (exit $ac_status); }; }; then
8710 ac_cv_sizeof_void_p=`cat conftest.val`
8711 else
8712 echo "$as_me: program exited with status $ac_status" >&5
8713 echo "$as_me: failed program was:" >&5
8714 sed 's/^/| /' conftest.$ac_ext >&5
8716 ( exit $ac_status )
8717 if test "$ac_cv_type_void_p" = yes; then
8718 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8719 See \`config.log' for more details." >&5
8720 echo "$as_me: error: cannot compute sizeof (void *)
8721 See \`config.log' for more details." >&2;}
8722 { (exit 77); exit 77; }; }
8723 else
8724 ac_cv_sizeof_void_p=0
8727 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8729 rm -f conftest.val
8731 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
8732 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
8736 cat >>confdefs.h <<_ACEOF
8737 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8738 _ACEOF
8741 { echo "$as_me:$LINENO: checking for short" >&5
8742 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
8743 if test "${ac_cv_type_short+set}" = set; then
8744 echo $ECHO_N "(cached) $ECHO_C" >&6
8745 else
8746 cat >conftest.$ac_ext <<_ACEOF
8747 /* confdefs.h. */
8748 _ACEOF
8749 cat confdefs.h >>conftest.$ac_ext
8750 cat >>conftest.$ac_ext <<_ACEOF
8751 /* end confdefs.h. */
8752 $ac_includes_default
8753 typedef short ac__type_new_;
8755 main ()
8757 if ((ac__type_new_ *) 0)
8758 return 0;
8759 if (sizeof (ac__type_new_))
8760 return 0;
8762 return 0;
8764 _ACEOF
8765 rm -f conftest.$ac_objext
8766 if { (ac_try="$ac_compile"
8767 case "(($ac_try" in
8768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8769 *) ac_try_echo=$ac_try;;
8770 esac
8771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8772 (eval "$ac_compile") 2>conftest.er1
8773 ac_status=$?
8774 grep -v '^ *+' conftest.er1 >conftest.err
8775 rm -f conftest.er1
8776 cat conftest.err >&5
8777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8778 (exit $ac_status); } && {
8779 test -z "$ac_c_werror_flag" ||
8780 test ! -s conftest.err
8781 } && test -s conftest.$ac_objext; then
8782 ac_cv_type_short=yes
8783 else
8784 echo "$as_me: failed program was:" >&5
8785 sed 's/^/| /' conftest.$ac_ext >&5
8787 ac_cv_type_short=no
8790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8792 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
8793 echo "${ECHO_T}$ac_cv_type_short" >&6; }
8795 # The cast to long int works around a bug in the HP C Compiler
8796 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8797 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8798 # This bug is HP SR number 8606223364.
8799 { echo "$as_me:$LINENO: checking size of short" >&5
8800 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
8801 if test "${ac_cv_sizeof_short+set}" = set; then
8802 echo $ECHO_N "(cached) $ECHO_C" >&6
8803 else
8804 if test "$cross_compiling" = yes; then
8805 # Depending upon the size, compute the lo and hi bounds.
8806 cat >conftest.$ac_ext <<_ACEOF
8807 /* confdefs.h. */
8808 _ACEOF
8809 cat confdefs.h >>conftest.$ac_ext
8810 cat >>conftest.$ac_ext <<_ACEOF
8811 /* end confdefs.h. */
8812 $ac_includes_default
8813 typedef short ac__type_sizeof_;
8815 main ()
8817 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8818 test_array [0] = 0
8821 return 0;
8823 _ACEOF
8824 rm -f conftest.$ac_objext
8825 if { (ac_try="$ac_compile"
8826 case "(($ac_try" in
8827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8828 *) ac_try_echo=$ac_try;;
8829 esac
8830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8831 (eval "$ac_compile") 2>conftest.er1
8832 ac_status=$?
8833 grep -v '^ *+' conftest.er1 >conftest.err
8834 rm -f conftest.er1
8835 cat conftest.err >&5
8836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837 (exit $ac_status); } && {
8838 test -z "$ac_c_werror_flag" ||
8839 test ! -s conftest.err
8840 } && test -s conftest.$ac_objext; then
8841 ac_lo=0 ac_mid=0
8842 while :; do
8843 cat >conftest.$ac_ext <<_ACEOF
8844 /* confdefs.h. */
8845 _ACEOF
8846 cat confdefs.h >>conftest.$ac_ext
8847 cat >>conftest.$ac_ext <<_ACEOF
8848 /* end confdefs.h. */
8849 $ac_includes_default
8850 typedef short ac__type_sizeof_;
8852 main ()
8854 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8855 test_array [0] = 0
8858 return 0;
8860 _ACEOF
8861 rm -f conftest.$ac_objext
8862 if { (ac_try="$ac_compile"
8863 case "(($ac_try" in
8864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8865 *) ac_try_echo=$ac_try;;
8866 esac
8867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8868 (eval "$ac_compile") 2>conftest.er1
8869 ac_status=$?
8870 grep -v '^ *+' conftest.er1 >conftest.err
8871 rm -f conftest.er1
8872 cat conftest.err >&5
8873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874 (exit $ac_status); } && {
8875 test -z "$ac_c_werror_flag" ||
8876 test ! -s conftest.err
8877 } && test -s conftest.$ac_objext; then
8878 ac_hi=$ac_mid; break
8879 else
8880 echo "$as_me: failed program was:" >&5
8881 sed 's/^/| /' conftest.$ac_ext >&5
8883 ac_lo=`expr $ac_mid + 1`
8884 if test $ac_lo -le $ac_mid; then
8885 ac_lo= ac_hi=
8886 break
8888 ac_mid=`expr 2 '*' $ac_mid + 1`
8891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8892 done
8893 else
8894 echo "$as_me: failed program was:" >&5
8895 sed 's/^/| /' conftest.$ac_ext >&5
8897 cat >conftest.$ac_ext <<_ACEOF
8898 /* confdefs.h. */
8899 _ACEOF
8900 cat confdefs.h >>conftest.$ac_ext
8901 cat >>conftest.$ac_ext <<_ACEOF
8902 /* end confdefs.h. */
8903 $ac_includes_default
8904 typedef short ac__type_sizeof_;
8906 main ()
8908 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8909 test_array [0] = 0
8912 return 0;
8914 _ACEOF
8915 rm -f conftest.$ac_objext
8916 if { (ac_try="$ac_compile"
8917 case "(($ac_try" in
8918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8919 *) ac_try_echo=$ac_try;;
8920 esac
8921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8922 (eval "$ac_compile") 2>conftest.er1
8923 ac_status=$?
8924 grep -v '^ *+' conftest.er1 >conftest.err
8925 rm -f conftest.er1
8926 cat conftest.err >&5
8927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928 (exit $ac_status); } && {
8929 test -z "$ac_c_werror_flag" ||
8930 test ! -s conftest.err
8931 } && test -s conftest.$ac_objext; then
8932 ac_hi=-1 ac_mid=-1
8933 while :; do
8934 cat >conftest.$ac_ext <<_ACEOF
8935 /* confdefs.h. */
8936 _ACEOF
8937 cat confdefs.h >>conftest.$ac_ext
8938 cat >>conftest.$ac_ext <<_ACEOF
8939 /* end confdefs.h. */
8940 $ac_includes_default
8941 typedef short ac__type_sizeof_;
8943 main ()
8945 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8946 test_array [0] = 0
8949 return 0;
8951 _ACEOF
8952 rm -f conftest.$ac_objext
8953 if { (ac_try="$ac_compile"
8954 case "(($ac_try" in
8955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8956 *) ac_try_echo=$ac_try;;
8957 esac
8958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8959 (eval "$ac_compile") 2>conftest.er1
8960 ac_status=$?
8961 grep -v '^ *+' conftest.er1 >conftest.err
8962 rm -f conftest.er1
8963 cat conftest.err >&5
8964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8965 (exit $ac_status); } && {
8966 test -z "$ac_c_werror_flag" ||
8967 test ! -s conftest.err
8968 } && test -s conftest.$ac_objext; then
8969 ac_lo=$ac_mid; break
8970 else
8971 echo "$as_me: failed program was:" >&5
8972 sed 's/^/| /' conftest.$ac_ext >&5
8974 ac_hi=`expr '(' $ac_mid ')' - 1`
8975 if test $ac_mid -le $ac_hi; then
8976 ac_lo= ac_hi=
8977 break
8979 ac_mid=`expr 2 '*' $ac_mid`
8982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8983 done
8984 else
8985 echo "$as_me: failed program was:" >&5
8986 sed 's/^/| /' conftest.$ac_ext >&5
8988 ac_lo= ac_hi=
8991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8995 # Binary search between lo and hi bounds.
8996 while test "x$ac_lo" != "x$ac_hi"; do
8997 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8998 cat >conftest.$ac_ext <<_ACEOF
8999 /* confdefs.h. */
9000 _ACEOF
9001 cat confdefs.h >>conftest.$ac_ext
9002 cat >>conftest.$ac_ext <<_ACEOF
9003 /* end confdefs.h. */
9004 $ac_includes_default
9005 typedef short ac__type_sizeof_;
9007 main ()
9009 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9010 test_array [0] = 0
9013 return 0;
9015 _ACEOF
9016 rm -f conftest.$ac_objext
9017 if { (ac_try="$ac_compile"
9018 case "(($ac_try" in
9019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9020 *) ac_try_echo=$ac_try;;
9021 esac
9022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9023 (eval "$ac_compile") 2>conftest.er1
9024 ac_status=$?
9025 grep -v '^ *+' conftest.er1 >conftest.err
9026 rm -f conftest.er1
9027 cat conftest.err >&5
9028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9029 (exit $ac_status); } && {
9030 test -z "$ac_c_werror_flag" ||
9031 test ! -s conftest.err
9032 } && test -s conftest.$ac_objext; then
9033 ac_hi=$ac_mid
9034 else
9035 echo "$as_me: failed program was:" >&5
9036 sed 's/^/| /' conftest.$ac_ext >&5
9038 ac_lo=`expr '(' $ac_mid ')' + 1`
9041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9042 done
9043 case $ac_lo in
9044 ?*) ac_cv_sizeof_short=$ac_lo;;
9045 '') if test "$ac_cv_type_short" = yes; then
9046 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
9047 See \`config.log' for more details." >&5
9048 echo "$as_me: error: cannot compute sizeof (short)
9049 See \`config.log' for more details." >&2;}
9050 { (exit 77); exit 77; }; }
9051 else
9052 ac_cv_sizeof_short=0
9053 fi ;;
9054 esac
9055 else
9056 cat >conftest.$ac_ext <<_ACEOF
9057 /* confdefs.h. */
9058 _ACEOF
9059 cat confdefs.h >>conftest.$ac_ext
9060 cat >>conftest.$ac_ext <<_ACEOF
9061 /* end confdefs.h. */
9062 $ac_includes_default
9063 typedef short ac__type_sizeof_;
9064 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9065 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9066 #include <stdio.h>
9067 #include <stdlib.h>
9069 main ()
9072 FILE *f = fopen ("conftest.val", "w");
9073 if (! f)
9074 return 1;
9075 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9077 long int i = longval ();
9078 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9079 return 1;
9080 fprintf (f, "%ld\n", i);
9082 else
9084 unsigned long int i = ulongval ();
9085 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9086 return 1;
9087 fprintf (f, "%lu\n", i);
9089 return ferror (f) || fclose (f) != 0;
9092 return 0;
9094 _ACEOF
9095 rm -f conftest$ac_exeext
9096 if { (ac_try="$ac_link"
9097 case "(($ac_try" in
9098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9099 *) ac_try_echo=$ac_try;;
9100 esac
9101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9102 (eval "$ac_link") 2>&5
9103 ac_status=$?
9104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9105 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9106 { (case "(($ac_try" in
9107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9108 *) ac_try_echo=$ac_try;;
9109 esac
9110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9111 (eval "$ac_try") 2>&5
9112 ac_status=$?
9113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9114 (exit $ac_status); }; }; then
9115 ac_cv_sizeof_short=`cat conftest.val`
9116 else
9117 echo "$as_me: program exited with status $ac_status" >&5
9118 echo "$as_me: failed program was:" >&5
9119 sed 's/^/| /' conftest.$ac_ext >&5
9121 ( exit $ac_status )
9122 if test "$ac_cv_type_short" = yes; then
9123 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
9124 See \`config.log' for more details." >&5
9125 echo "$as_me: error: cannot compute sizeof (short)
9126 See \`config.log' for more details." >&2;}
9127 { (exit 77); exit 77; }; }
9128 else
9129 ac_cv_sizeof_short=0
9132 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9134 rm -f conftest.val
9136 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
9137 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
9141 cat >>confdefs.h <<_ACEOF
9142 #define SIZEOF_SHORT $ac_cv_sizeof_short
9143 _ACEOF
9146 { echo "$as_me:$LINENO: checking for float" >&5
9147 echo $ECHO_N "checking for float... $ECHO_C" >&6; }
9148 if test "${ac_cv_type_float+set}" = set; then
9149 echo $ECHO_N "(cached) $ECHO_C" >&6
9150 else
9151 cat >conftest.$ac_ext <<_ACEOF
9152 /* confdefs.h. */
9153 _ACEOF
9154 cat confdefs.h >>conftest.$ac_ext
9155 cat >>conftest.$ac_ext <<_ACEOF
9156 /* end confdefs.h. */
9157 $ac_includes_default
9158 typedef float ac__type_new_;
9160 main ()
9162 if ((ac__type_new_ *) 0)
9163 return 0;
9164 if (sizeof (ac__type_new_))
9165 return 0;
9167 return 0;
9169 _ACEOF
9170 rm -f conftest.$ac_objext
9171 if { (ac_try="$ac_compile"
9172 case "(($ac_try" in
9173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9174 *) ac_try_echo=$ac_try;;
9175 esac
9176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9177 (eval "$ac_compile") 2>conftest.er1
9178 ac_status=$?
9179 grep -v '^ *+' conftest.er1 >conftest.err
9180 rm -f conftest.er1
9181 cat conftest.err >&5
9182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9183 (exit $ac_status); } && {
9184 test -z "$ac_c_werror_flag" ||
9185 test ! -s conftest.err
9186 } && test -s conftest.$ac_objext; then
9187 ac_cv_type_float=yes
9188 else
9189 echo "$as_me: failed program was:" >&5
9190 sed 's/^/| /' conftest.$ac_ext >&5
9192 ac_cv_type_float=no
9195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9197 { echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
9198 echo "${ECHO_T}$ac_cv_type_float" >&6; }
9200 # The cast to long int works around a bug in the HP C Compiler
9201 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9202 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9203 # This bug is HP SR number 8606223364.
9204 { echo "$as_me:$LINENO: checking size of float" >&5
9205 echo $ECHO_N "checking size of float... $ECHO_C" >&6; }
9206 if test "${ac_cv_sizeof_float+set}" = set; then
9207 echo $ECHO_N "(cached) $ECHO_C" >&6
9208 else
9209 if test "$cross_compiling" = yes; then
9210 # Depending upon the size, compute the lo and hi bounds.
9211 cat >conftest.$ac_ext <<_ACEOF
9212 /* confdefs.h. */
9213 _ACEOF
9214 cat confdefs.h >>conftest.$ac_ext
9215 cat >>conftest.$ac_ext <<_ACEOF
9216 /* end confdefs.h. */
9217 $ac_includes_default
9218 typedef float ac__type_sizeof_;
9220 main ()
9222 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9223 test_array [0] = 0
9226 return 0;
9228 _ACEOF
9229 rm -f conftest.$ac_objext
9230 if { (ac_try="$ac_compile"
9231 case "(($ac_try" in
9232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9233 *) ac_try_echo=$ac_try;;
9234 esac
9235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9236 (eval "$ac_compile") 2>conftest.er1
9237 ac_status=$?
9238 grep -v '^ *+' conftest.er1 >conftest.err
9239 rm -f conftest.er1
9240 cat conftest.err >&5
9241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9242 (exit $ac_status); } && {
9243 test -z "$ac_c_werror_flag" ||
9244 test ! -s conftest.err
9245 } && test -s conftest.$ac_objext; then
9246 ac_lo=0 ac_mid=0
9247 while :; do
9248 cat >conftest.$ac_ext <<_ACEOF
9249 /* confdefs.h. */
9250 _ACEOF
9251 cat confdefs.h >>conftest.$ac_ext
9252 cat >>conftest.$ac_ext <<_ACEOF
9253 /* end confdefs.h. */
9254 $ac_includes_default
9255 typedef float ac__type_sizeof_;
9257 main ()
9259 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9260 test_array [0] = 0
9263 return 0;
9265 _ACEOF
9266 rm -f conftest.$ac_objext
9267 if { (ac_try="$ac_compile"
9268 case "(($ac_try" in
9269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9270 *) ac_try_echo=$ac_try;;
9271 esac
9272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9273 (eval "$ac_compile") 2>conftest.er1
9274 ac_status=$?
9275 grep -v '^ *+' conftest.er1 >conftest.err
9276 rm -f conftest.er1
9277 cat conftest.err >&5
9278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9279 (exit $ac_status); } && {
9280 test -z "$ac_c_werror_flag" ||
9281 test ! -s conftest.err
9282 } && test -s conftest.$ac_objext; then
9283 ac_hi=$ac_mid; break
9284 else
9285 echo "$as_me: failed program was:" >&5
9286 sed 's/^/| /' conftest.$ac_ext >&5
9288 ac_lo=`expr $ac_mid + 1`
9289 if test $ac_lo -le $ac_mid; then
9290 ac_lo= ac_hi=
9291 break
9293 ac_mid=`expr 2 '*' $ac_mid + 1`
9296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9297 done
9298 else
9299 echo "$as_me: failed program was:" >&5
9300 sed 's/^/| /' conftest.$ac_ext >&5
9302 cat >conftest.$ac_ext <<_ACEOF
9303 /* confdefs.h. */
9304 _ACEOF
9305 cat confdefs.h >>conftest.$ac_ext
9306 cat >>conftest.$ac_ext <<_ACEOF
9307 /* end confdefs.h. */
9308 $ac_includes_default
9309 typedef float ac__type_sizeof_;
9311 main ()
9313 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9314 test_array [0] = 0
9317 return 0;
9319 _ACEOF
9320 rm -f conftest.$ac_objext
9321 if { (ac_try="$ac_compile"
9322 case "(($ac_try" in
9323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9324 *) ac_try_echo=$ac_try;;
9325 esac
9326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9327 (eval "$ac_compile") 2>conftest.er1
9328 ac_status=$?
9329 grep -v '^ *+' conftest.er1 >conftest.err
9330 rm -f conftest.er1
9331 cat conftest.err >&5
9332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9333 (exit $ac_status); } && {
9334 test -z "$ac_c_werror_flag" ||
9335 test ! -s conftest.err
9336 } && test -s conftest.$ac_objext; then
9337 ac_hi=-1 ac_mid=-1
9338 while :; do
9339 cat >conftest.$ac_ext <<_ACEOF
9340 /* confdefs.h. */
9341 _ACEOF
9342 cat confdefs.h >>conftest.$ac_ext
9343 cat >>conftest.$ac_ext <<_ACEOF
9344 /* end confdefs.h. */
9345 $ac_includes_default
9346 typedef float ac__type_sizeof_;
9348 main ()
9350 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9351 test_array [0] = 0
9354 return 0;
9356 _ACEOF
9357 rm -f conftest.$ac_objext
9358 if { (ac_try="$ac_compile"
9359 case "(($ac_try" in
9360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9361 *) ac_try_echo=$ac_try;;
9362 esac
9363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9364 (eval "$ac_compile") 2>conftest.er1
9365 ac_status=$?
9366 grep -v '^ *+' conftest.er1 >conftest.err
9367 rm -f conftest.er1
9368 cat conftest.err >&5
9369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9370 (exit $ac_status); } && {
9371 test -z "$ac_c_werror_flag" ||
9372 test ! -s conftest.err
9373 } && test -s conftest.$ac_objext; then
9374 ac_lo=$ac_mid; break
9375 else
9376 echo "$as_me: failed program was:" >&5
9377 sed 's/^/| /' conftest.$ac_ext >&5
9379 ac_hi=`expr '(' $ac_mid ')' - 1`
9380 if test $ac_mid -le $ac_hi; then
9381 ac_lo= ac_hi=
9382 break
9384 ac_mid=`expr 2 '*' $ac_mid`
9387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9388 done
9389 else
9390 echo "$as_me: failed program was:" >&5
9391 sed 's/^/| /' conftest.$ac_ext >&5
9393 ac_lo= ac_hi=
9396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9400 # Binary search between lo and hi bounds.
9401 while test "x$ac_lo" != "x$ac_hi"; do
9402 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9403 cat >conftest.$ac_ext <<_ACEOF
9404 /* confdefs.h. */
9405 _ACEOF
9406 cat confdefs.h >>conftest.$ac_ext
9407 cat >>conftest.$ac_ext <<_ACEOF
9408 /* end confdefs.h. */
9409 $ac_includes_default
9410 typedef float ac__type_sizeof_;
9412 main ()
9414 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9415 test_array [0] = 0
9418 return 0;
9420 _ACEOF
9421 rm -f conftest.$ac_objext
9422 if { (ac_try="$ac_compile"
9423 case "(($ac_try" in
9424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9425 *) ac_try_echo=$ac_try;;
9426 esac
9427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9428 (eval "$ac_compile") 2>conftest.er1
9429 ac_status=$?
9430 grep -v '^ *+' conftest.er1 >conftest.err
9431 rm -f conftest.er1
9432 cat conftest.err >&5
9433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9434 (exit $ac_status); } && {
9435 test -z "$ac_c_werror_flag" ||
9436 test ! -s conftest.err
9437 } && test -s conftest.$ac_objext; then
9438 ac_hi=$ac_mid
9439 else
9440 echo "$as_me: failed program was:" >&5
9441 sed 's/^/| /' conftest.$ac_ext >&5
9443 ac_lo=`expr '(' $ac_mid ')' + 1`
9446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9447 done
9448 case $ac_lo in
9449 ?*) ac_cv_sizeof_float=$ac_lo;;
9450 '') if test "$ac_cv_type_float" = yes; then
9451 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
9452 See \`config.log' for more details." >&5
9453 echo "$as_me: error: cannot compute sizeof (float)
9454 See \`config.log' for more details." >&2;}
9455 { (exit 77); exit 77; }; }
9456 else
9457 ac_cv_sizeof_float=0
9458 fi ;;
9459 esac
9460 else
9461 cat >conftest.$ac_ext <<_ACEOF
9462 /* confdefs.h. */
9463 _ACEOF
9464 cat confdefs.h >>conftest.$ac_ext
9465 cat >>conftest.$ac_ext <<_ACEOF
9466 /* end confdefs.h. */
9467 $ac_includes_default
9468 typedef float ac__type_sizeof_;
9469 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9470 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9471 #include <stdio.h>
9472 #include <stdlib.h>
9474 main ()
9477 FILE *f = fopen ("conftest.val", "w");
9478 if (! f)
9479 return 1;
9480 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9482 long int i = longval ();
9483 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9484 return 1;
9485 fprintf (f, "%ld\n", i);
9487 else
9489 unsigned long int i = ulongval ();
9490 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9491 return 1;
9492 fprintf (f, "%lu\n", i);
9494 return ferror (f) || fclose (f) != 0;
9497 return 0;
9499 _ACEOF
9500 rm -f conftest$ac_exeext
9501 if { (ac_try="$ac_link"
9502 case "(($ac_try" in
9503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9504 *) ac_try_echo=$ac_try;;
9505 esac
9506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9507 (eval "$ac_link") 2>&5
9508 ac_status=$?
9509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9510 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9511 { (case "(($ac_try" in
9512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9513 *) ac_try_echo=$ac_try;;
9514 esac
9515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9516 (eval "$ac_try") 2>&5
9517 ac_status=$?
9518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9519 (exit $ac_status); }; }; then
9520 ac_cv_sizeof_float=`cat conftest.val`
9521 else
9522 echo "$as_me: program exited with status $ac_status" >&5
9523 echo "$as_me: failed program was:" >&5
9524 sed 's/^/| /' conftest.$ac_ext >&5
9526 ( exit $ac_status )
9527 if test "$ac_cv_type_float" = yes; then
9528 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
9529 See \`config.log' for more details." >&5
9530 echo "$as_me: error: cannot compute sizeof (float)
9531 See \`config.log' for more details." >&2;}
9532 { (exit 77); exit 77; }; }
9533 else
9534 ac_cv_sizeof_float=0
9537 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9539 rm -f conftest.val
9541 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
9542 echo "${ECHO_T}$ac_cv_sizeof_float" >&6; }
9546 cat >>confdefs.h <<_ACEOF
9547 #define SIZEOF_FLOAT $ac_cv_sizeof_float
9548 _ACEOF
9551 { echo "$as_me:$LINENO: checking for double" >&5
9552 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
9553 if test "${ac_cv_type_double+set}" = set; then
9554 echo $ECHO_N "(cached) $ECHO_C" >&6
9555 else
9556 cat >conftest.$ac_ext <<_ACEOF
9557 /* confdefs.h. */
9558 _ACEOF
9559 cat confdefs.h >>conftest.$ac_ext
9560 cat >>conftest.$ac_ext <<_ACEOF
9561 /* end confdefs.h. */
9562 $ac_includes_default
9563 typedef double ac__type_new_;
9565 main ()
9567 if ((ac__type_new_ *) 0)
9568 return 0;
9569 if (sizeof (ac__type_new_))
9570 return 0;
9572 return 0;
9574 _ACEOF
9575 rm -f conftest.$ac_objext
9576 if { (ac_try="$ac_compile"
9577 case "(($ac_try" in
9578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9579 *) ac_try_echo=$ac_try;;
9580 esac
9581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9582 (eval "$ac_compile") 2>conftest.er1
9583 ac_status=$?
9584 grep -v '^ *+' conftest.er1 >conftest.err
9585 rm -f conftest.er1
9586 cat conftest.err >&5
9587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9588 (exit $ac_status); } && {
9589 test -z "$ac_c_werror_flag" ||
9590 test ! -s conftest.err
9591 } && test -s conftest.$ac_objext; then
9592 ac_cv_type_double=yes
9593 else
9594 echo "$as_me: failed program was:" >&5
9595 sed 's/^/| /' conftest.$ac_ext >&5
9597 ac_cv_type_double=no
9600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9602 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
9603 echo "${ECHO_T}$ac_cv_type_double" >&6; }
9605 # The cast to long int works around a bug in the HP C Compiler
9606 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9607 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9608 # This bug is HP SR number 8606223364.
9609 { echo "$as_me:$LINENO: checking size of double" >&5
9610 echo $ECHO_N "checking size of double... $ECHO_C" >&6; }
9611 if test "${ac_cv_sizeof_double+set}" = set; then
9612 echo $ECHO_N "(cached) $ECHO_C" >&6
9613 else
9614 if test "$cross_compiling" = yes; then
9615 # Depending upon the size, compute the lo and hi bounds.
9616 cat >conftest.$ac_ext <<_ACEOF
9617 /* confdefs.h. */
9618 _ACEOF
9619 cat confdefs.h >>conftest.$ac_ext
9620 cat >>conftest.$ac_ext <<_ACEOF
9621 /* end confdefs.h. */
9622 $ac_includes_default
9623 typedef double ac__type_sizeof_;
9625 main ()
9627 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9628 test_array [0] = 0
9631 return 0;
9633 _ACEOF
9634 rm -f conftest.$ac_objext
9635 if { (ac_try="$ac_compile"
9636 case "(($ac_try" in
9637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9638 *) ac_try_echo=$ac_try;;
9639 esac
9640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9641 (eval "$ac_compile") 2>conftest.er1
9642 ac_status=$?
9643 grep -v '^ *+' conftest.er1 >conftest.err
9644 rm -f conftest.er1
9645 cat conftest.err >&5
9646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9647 (exit $ac_status); } && {
9648 test -z "$ac_c_werror_flag" ||
9649 test ! -s conftest.err
9650 } && test -s conftest.$ac_objext; then
9651 ac_lo=0 ac_mid=0
9652 while :; do
9653 cat >conftest.$ac_ext <<_ACEOF
9654 /* confdefs.h. */
9655 _ACEOF
9656 cat confdefs.h >>conftest.$ac_ext
9657 cat >>conftest.$ac_ext <<_ACEOF
9658 /* end confdefs.h. */
9659 $ac_includes_default
9660 typedef double ac__type_sizeof_;
9662 main ()
9664 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9665 test_array [0] = 0
9668 return 0;
9670 _ACEOF
9671 rm -f conftest.$ac_objext
9672 if { (ac_try="$ac_compile"
9673 case "(($ac_try" in
9674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9675 *) ac_try_echo=$ac_try;;
9676 esac
9677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9678 (eval "$ac_compile") 2>conftest.er1
9679 ac_status=$?
9680 grep -v '^ *+' conftest.er1 >conftest.err
9681 rm -f conftest.er1
9682 cat conftest.err >&5
9683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9684 (exit $ac_status); } && {
9685 test -z "$ac_c_werror_flag" ||
9686 test ! -s conftest.err
9687 } && test -s conftest.$ac_objext; then
9688 ac_hi=$ac_mid; break
9689 else
9690 echo "$as_me: failed program was:" >&5
9691 sed 's/^/| /' conftest.$ac_ext >&5
9693 ac_lo=`expr $ac_mid + 1`
9694 if test $ac_lo -le $ac_mid; then
9695 ac_lo= ac_hi=
9696 break
9698 ac_mid=`expr 2 '*' $ac_mid + 1`
9701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9702 done
9703 else
9704 echo "$as_me: failed program was:" >&5
9705 sed 's/^/| /' conftest.$ac_ext >&5
9707 cat >conftest.$ac_ext <<_ACEOF
9708 /* confdefs.h. */
9709 _ACEOF
9710 cat confdefs.h >>conftest.$ac_ext
9711 cat >>conftest.$ac_ext <<_ACEOF
9712 /* end confdefs.h. */
9713 $ac_includes_default
9714 typedef double ac__type_sizeof_;
9716 main ()
9718 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9719 test_array [0] = 0
9722 return 0;
9724 _ACEOF
9725 rm -f conftest.$ac_objext
9726 if { (ac_try="$ac_compile"
9727 case "(($ac_try" in
9728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9729 *) ac_try_echo=$ac_try;;
9730 esac
9731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9732 (eval "$ac_compile") 2>conftest.er1
9733 ac_status=$?
9734 grep -v '^ *+' conftest.er1 >conftest.err
9735 rm -f conftest.er1
9736 cat conftest.err >&5
9737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9738 (exit $ac_status); } && {
9739 test -z "$ac_c_werror_flag" ||
9740 test ! -s conftest.err
9741 } && test -s conftest.$ac_objext; then
9742 ac_hi=-1 ac_mid=-1
9743 while :; do
9744 cat >conftest.$ac_ext <<_ACEOF
9745 /* confdefs.h. */
9746 _ACEOF
9747 cat confdefs.h >>conftest.$ac_ext
9748 cat >>conftest.$ac_ext <<_ACEOF
9749 /* end confdefs.h. */
9750 $ac_includes_default
9751 typedef double ac__type_sizeof_;
9753 main ()
9755 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9756 test_array [0] = 0
9759 return 0;
9761 _ACEOF
9762 rm -f conftest.$ac_objext
9763 if { (ac_try="$ac_compile"
9764 case "(($ac_try" in
9765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9766 *) ac_try_echo=$ac_try;;
9767 esac
9768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9769 (eval "$ac_compile") 2>conftest.er1
9770 ac_status=$?
9771 grep -v '^ *+' conftest.er1 >conftest.err
9772 rm -f conftest.er1
9773 cat conftest.err >&5
9774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775 (exit $ac_status); } && {
9776 test -z "$ac_c_werror_flag" ||
9777 test ! -s conftest.err
9778 } && test -s conftest.$ac_objext; then
9779 ac_lo=$ac_mid; break
9780 else
9781 echo "$as_me: failed program was:" >&5
9782 sed 's/^/| /' conftest.$ac_ext >&5
9784 ac_hi=`expr '(' $ac_mid ')' - 1`
9785 if test $ac_mid -le $ac_hi; then
9786 ac_lo= ac_hi=
9787 break
9789 ac_mid=`expr 2 '*' $ac_mid`
9792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9793 done
9794 else
9795 echo "$as_me: failed program was:" >&5
9796 sed 's/^/| /' conftest.$ac_ext >&5
9798 ac_lo= ac_hi=
9801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9805 # Binary search between lo and hi bounds.
9806 while test "x$ac_lo" != "x$ac_hi"; do
9807 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9808 cat >conftest.$ac_ext <<_ACEOF
9809 /* confdefs.h. */
9810 _ACEOF
9811 cat confdefs.h >>conftest.$ac_ext
9812 cat >>conftest.$ac_ext <<_ACEOF
9813 /* end confdefs.h. */
9814 $ac_includes_default
9815 typedef double ac__type_sizeof_;
9817 main ()
9819 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9820 test_array [0] = 0
9823 return 0;
9825 _ACEOF
9826 rm -f conftest.$ac_objext
9827 if { (ac_try="$ac_compile"
9828 case "(($ac_try" in
9829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9830 *) ac_try_echo=$ac_try;;
9831 esac
9832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9833 (eval "$ac_compile") 2>conftest.er1
9834 ac_status=$?
9835 grep -v '^ *+' conftest.er1 >conftest.err
9836 rm -f conftest.er1
9837 cat conftest.err >&5
9838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839 (exit $ac_status); } && {
9840 test -z "$ac_c_werror_flag" ||
9841 test ! -s conftest.err
9842 } && test -s conftest.$ac_objext; then
9843 ac_hi=$ac_mid
9844 else
9845 echo "$as_me: failed program was:" >&5
9846 sed 's/^/| /' conftest.$ac_ext >&5
9848 ac_lo=`expr '(' $ac_mid ')' + 1`
9851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9852 done
9853 case $ac_lo in
9854 ?*) ac_cv_sizeof_double=$ac_lo;;
9855 '') if test "$ac_cv_type_double" = yes; then
9856 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
9857 See \`config.log' for more details." >&5
9858 echo "$as_me: error: cannot compute sizeof (double)
9859 See \`config.log' for more details." >&2;}
9860 { (exit 77); exit 77; }; }
9861 else
9862 ac_cv_sizeof_double=0
9863 fi ;;
9864 esac
9865 else
9866 cat >conftest.$ac_ext <<_ACEOF
9867 /* confdefs.h. */
9868 _ACEOF
9869 cat confdefs.h >>conftest.$ac_ext
9870 cat >>conftest.$ac_ext <<_ACEOF
9871 /* end confdefs.h. */
9872 $ac_includes_default
9873 typedef double ac__type_sizeof_;
9874 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9875 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9876 #include <stdio.h>
9877 #include <stdlib.h>
9879 main ()
9882 FILE *f = fopen ("conftest.val", "w");
9883 if (! f)
9884 return 1;
9885 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9887 long int i = longval ();
9888 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9889 return 1;
9890 fprintf (f, "%ld\n", i);
9892 else
9894 unsigned long int i = ulongval ();
9895 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9896 return 1;
9897 fprintf (f, "%lu\n", i);
9899 return ferror (f) || fclose (f) != 0;
9902 return 0;
9904 _ACEOF
9905 rm -f conftest$ac_exeext
9906 if { (ac_try="$ac_link"
9907 case "(($ac_try" in
9908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9909 *) ac_try_echo=$ac_try;;
9910 esac
9911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9912 (eval "$ac_link") 2>&5
9913 ac_status=$?
9914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9916 { (case "(($ac_try" in
9917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9918 *) ac_try_echo=$ac_try;;
9919 esac
9920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9921 (eval "$ac_try") 2>&5
9922 ac_status=$?
9923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9924 (exit $ac_status); }; }; then
9925 ac_cv_sizeof_double=`cat conftest.val`
9926 else
9927 echo "$as_me: program exited with status $ac_status" >&5
9928 echo "$as_me: failed program was:" >&5
9929 sed 's/^/| /' conftest.$ac_ext >&5
9931 ( exit $ac_status )
9932 if test "$ac_cv_type_double" = yes; then
9933 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
9934 See \`config.log' for more details." >&5
9935 echo "$as_me: error: cannot compute sizeof (double)
9936 See \`config.log' for more details." >&2;}
9937 { (exit 77); exit 77; }; }
9938 else
9939 ac_cv_sizeof_double=0
9942 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9944 rm -f conftest.val
9946 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
9947 echo "${ECHO_T}$ac_cv_sizeof_double" >&6; }
9951 cat >>confdefs.h <<_ACEOF
9952 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
9953 _ACEOF
9956 { echo "$as_me:$LINENO: checking for fpos_t" >&5
9957 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6; }
9958 if test "${ac_cv_type_fpos_t+set}" = set; then
9959 echo $ECHO_N "(cached) $ECHO_C" >&6
9960 else
9961 cat >conftest.$ac_ext <<_ACEOF
9962 /* confdefs.h. */
9963 _ACEOF
9964 cat confdefs.h >>conftest.$ac_ext
9965 cat >>conftest.$ac_ext <<_ACEOF
9966 /* end confdefs.h. */
9967 $ac_includes_default
9968 typedef fpos_t ac__type_new_;
9970 main ()
9972 if ((ac__type_new_ *) 0)
9973 return 0;
9974 if (sizeof (ac__type_new_))
9975 return 0;
9977 return 0;
9979 _ACEOF
9980 rm -f conftest.$ac_objext
9981 if { (ac_try="$ac_compile"
9982 case "(($ac_try" in
9983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9984 *) ac_try_echo=$ac_try;;
9985 esac
9986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9987 (eval "$ac_compile") 2>conftest.er1
9988 ac_status=$?
9989 grep -v '^ *+' conftest.er1 >conftest.err
9990 rm -f conftest.er1
9991 cat conftest.err >&5
9992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9993 (exit $ac_status); } && {
9994 test -z "$ac_c_werror_flag" ||
9995 test ! -s conftest.err
9996 } && test -s conftest.$ac_objext; then
9997 ac_cv_type_fpos_t=yes
9998 else
9999 echo "$as_me: failed program was:" >&5
10000 sed 's/^/| /' conftest.$ac_ext >&5
10002 ac_cv_type_fpos_t=no
10005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10007 { echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
10008 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6; }
10010 # The cast to long int works around a bug in the HP C Compiler
10011 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10012 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10013 # This bug is HP SR number 8606223364.
10014 { echo "$as_me:$LINENO: checking size of fpos_t" >&5
10015 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6; }
10016 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
10017 echo $ECHO_N "(cached) $ECHO_C" >&6
10018 else
10019 if test "$cross_compiling" = yes; then
10020 # Depending upon the size, compute the lo and hi bounds.
10021 cat >conftest.$ac_ext <<_ACEOF
10022 /* confdefs.h. */
10023 _ACEOF
10024 cat confdefs.h >>conftest.$ac_ext
10025 cat >>conftest.$ac_ext <<_ACEOF
10026 /* end confdefs.h. */
10027 $ac_includes_default
10028 typedef fpos_t ac__type_sizeof_;
10030 main ()
10032 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10033 test_array [0] = 0
10036 return 0;
10038 _ACEOF
10039 rm -f conftest.$ac_objext
10040 if { (ac_try="$ac_compile"
10041 case "(($ac_try" in
10042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10043 *) ac_try_echo=$ac_try;;
10044 esac
10045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10046 (eval "$ac_compile") 2>conftest.er1
10047 ac_status=$?
10048 grep -v '^ *+' conftest.er1 >conftest.err
10049 rm -f conftest.er1
10050 cat conftest.err >&5
10051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10052 (exit $ac_status); } && {
10053 test -z "$ac_c_werror_flag" ||
10054 test ! -s conftest.err
10055 } && test -s conftest.$ac_objext; then
10056 ac_lo=0 ac_mid=0
10057 while :; do
10058 cat >conftest.$ac_ext <<_ACEOF
10059 /* confdefs.h. */
10060 _ACEOF
10061 cat confdefs.h >>conftest.$ac_ext
10062 cat >>conftest.$ac_ext <<_ACEOF
10063 /* end confdefs.h. */
10064 $ac_includes_default
10065 typedef fpos_t ac__type_sizeof_;
10067 main ()
10069 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10070 test_array [0] = 0
10073 return 0;
10075 _ACEOF
10076 rm -f conftest.$ac_objext
10077 if { (ac_try="$ac_compile"
10078 case "(($ac_try" in
10079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10080 *) ac_try_echo=$ac_try;;
10081 esac
10082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10083 (eval "$ac_compile") 2>conftest.er1
10084 ac_status=$?
10085 grep -v '^ *+' conftest.er1 >conftest.err
10086 rm -f conftest.er1
10087 cat conftest.err >&5
10088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10089 (exit $ac_status); } && {
10090 test -z "$ac_c_werror_flag" ||
10091 test ! -s conftest.err
10092 } && test -s conftest.$ac_objext; then
10093 ac_hi=$ac_mid; break
10094 else
10095 echo "$as_me: failed program was:" >&5
10096 sed 's/^/| /' conftest.$ac_ext >&5
10098 ac_lo=`expr $ac_mid + 1`
10099 if test $ac_lo -le $ac_mid; then
10100 ac_lo= ac_hi=
10101 break
10103 ac_mid=`expr 2 '*' $ac_mid + 1`
10106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10107 done
10108 else
10109 echo "$as_me: failed program was:" >&5
10110 sed 's/^/| /' conftest.$ac_ext >&5
10112 cat >conftest.$ac_ext <<_ACEOF
10113 /* confdefs.h. */
10114 _ACEOF
10115 cat confdefs.h >>conftest.$ac_ext
10116 cat >>conftest.$ac_ext <<_ACEOF
10117 /* end confdefs.h. */
10118 $ac_includes_default
10119 typedef fpos_t ac__type_sizeof_;
10121 main ()
10123 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10124 test_array [0] = 0
10127 return 0;
10129 _ACEOF
10130 rm -f conftest.$ac_objext
10131 if { (ac_try="$ac_compile"
10132 case "(($ac_try" in
10133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10134 *) ac_try_echo=$ac_try;;
10135 esac
10136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10137 (eval "$ac_compile") 2>conftest.er1
10138 ac_status=$?
10139 grep -v '^ *+' conftest.er1 >conftest.err
10140 rm -f conftest.er1
10141 cat conftest.err >&5
10142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143 (exit $ac_status); } && {
10144 test -z "$ac_c_werror_flag" ||
10145 test ! -s conftest.err
10146 } && test -s conftest.$ac_objext; then
10147 ac_hi=-1 ac_mid=-1
10148 while :; do
10149 cat >conftest.$ac_ext <<_ACEOF
10150 /* confdefs.h. */
10151 _ACEOF
10152 cat confdefs.h >>conftest.$ac_ext
10153 cat >>conftest.$ac_ext <<_ACEOF
10154 /* end confdefs.h. */
10155 $ac_includes_default
10156 typedef fpos_t ac__type_sizeof_;
10158 main ()
10160 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10161 test_array [0] = 0
10164 return 0;
10166 _ACEOF
10167 rm -f conftest.$ac_objext
10168 if { (ac_try="$ac_compile"
10169 case "(($ac_try" in
10170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10171 *) ac_try_echo=$ac_try;;
10172 esac
10173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10174 (eval "$ac_compile") 2>conftest.er1
10175 ac_status=$?
10176 grep -v '^ *+' conftest.er1 >conftest.err
10177 rm -f conftest.er1
10178 cat conftest.err >&5
10179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10180 (exit $ac_status); } && {
10181 test -z "$ac_c_werror_flag" ||
10182 test ! -s conftest.err
10183 } && test -s conftest.$ac_objext; then
10184 ac_lo=$ac_mid; break
10185 else
10186 echo "$as_me: failed program was:" >&5
10187 sed 's/^/| /' conftest.$ac_ext >&5
10189 ac_hi=`expr '(' $ac_mid ')' - 1`
10190 if test $ac_mid -le $ac_hi; then
10191 ac_lo= ac_hi=
10192 break
10194 ac_mid=`expr 2 '*' $ac_mid`
10197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10198 done
10199 else
10200 echo "$as_me: failed program was:" >&5
10201 sed 's/^/| /' conftest.$ac_ext >&5
10203 ac_lo= ac_hi=
10206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10210 # Binary search between lo and hi bounds.
10211 while test "x$ac_lo" != "x$ac_hi"; do
10212 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10213 cat >conftest.$ac_ext <<_ACEOF
10214 /* confdefs.h. */
10215 _ACEOF
10216 cat confdefs.h >>conftest.$ac_ext
10217 cat >>conftest.$ac_ext <<_ACEOF
10218 /* end confdefs.h. */
10219 $ac_includes_default
10220 typedef fpos_t ac__type_sizeof_;
10222 main ()
10224 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10225 test_array [0] = 0
10228 return 0;
10230 _ACEOF
10231 rm -f conftest.$ac_objext
10232 if { (ac_try="$ac_compile"
10233 case "(($ac_try" in
10234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10235 *) ac_try_echo=$ac_try;;
10236 esac
10237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10238 (eval "$ac_compile") 2>conftest.er1
10239 ac_status=$?
10240 grep -v '^ *+' conftest.er1 >conftest.err
10241 rm -f conftest.er1
10242 cat conftest.err >&5
10243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10244 (exit $ac_status); } && {
10245 test -z "$ac_c_werror_flag" ||
10246 test ! -s conftest.err
10247 } && test -s conftest.$ac_objext; then
10248 ac_hi=$ac_mid
10249 else
10250 echo "$as_me: failed program was:" >&5
10251 sed 's/^/| /' conftest.$ac_ext >&5
10253 ac_lo=`expr '(' $ac_mid ')' + 1`
10256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10257 done
10258 case $ac_lo in
10259 ?*) ac_cv_sizeof_fpos_t=$ac_lo;;
10260 '') if test "$ac_cv_type_fpos_t" = yes; then
10261 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
10262 See \`config.log' for more details." >&5
10263 echo "$as_me: error: cannot compute sizeof (fpos_t)
10264 See \`config.log' for more details." >&2;}
10265 { (exit 77); exit 77; }; }
10266 else
10267 ac_cv_sizeof_fpos_t=0
10268 fi ;;
10269 esac
10270 else
10271 cat >conftest.$ac_ext <<_ACEOF
10272 /* confdefs.h. */
10273 _ACEOF
10274 cat confdefs.h >>conftest.$ac_ext
10275 cat >>conftest.$ac_ext <<_ACEOF
10276 /* end confdefs.h. */
10277 $ac_includes_default
10278 typedef fpos_t ac__type_sizeof_;
10279 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10280 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10281 #include <stdio.h>
10282 #include <stdlib.h>
10284 main ()
10287 FILE *f = fopen ("conftest.val", "w");
10288 if (! f)
10289 return 1;
10290 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10292 long int i = longval ();
10293 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10294 return 1;
10295 fprintf (f, "%ld\n", i);
10297 else
10299 unsigned long int i = ulongval ();
10300 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10301 return 1;
10302 fprintf (f, "%lu\n", i);
10304 return ferror (f) || fclose (f) != 0;
10307 return 0;
10309 _ACEOF
10310 rm -f conftest$ac_exeext
10311 if { (ac_try="$ac_link"
10312 case "(($ac_try" in
10313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10314 *) ac_try_echo=$ac_try;;
10315 esac
10316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10317 (eval "$ac_link") 2>&5
10318 ac_status=$?
10319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10320 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10321 { (case "(($ac_try" in
10322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10323 *) ac_try_echo=$ac_try;;
10324 esac
10325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10326 (eval "$ac_try") 2>&5
10327 ac_status=$?
10328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10329 (exit $ac_status); }; }; then
10330 ac_cv_sizeof_fpos_t=`cat conftest.val`
10331 else
10332 echo "$as_me: program exited with status $ac_status" >&5
10333 echo "$as_me: failed program was:" >&5
10334 sed 's/^/| /' conftest.$ac_ext >&5
10336 ( exit $ac_status )
10337 if test "$ac_cv_type_fpos_t" = yes; then
10338 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
10339 See \`config.log' for more details." >&5
10340 echo "$as_me: error: cannot compute sizeof (fpos_t)
10341 See \`config.log' for more details." >&2;}
10342 { (exit 77); exit 77; }; }
10343 else
10344 ac_cv_sizeof_fpos_t=0
10347 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10349 rm -f conftest.val
10351 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
10352 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6; }
10356 cat >>confdefs.h <<_ACEOF
10357 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
10358 _ACEOF
10361 { echo "$as_me:$LINENO: checking for size_t" >&5
10362 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
10363 if test "${ac_cv_type_size_t+set}" = set; then
10364 echo $ECHO_N "(cached) $ECHO_C" >&6
10365 else
10366 cat >conftest.$ac_ext <<_ACEOF
10367 /* confdefs.h. */
10368 _ACEOF
10369 cat confdefs.h >>conftest.$ac_ext
10370 cat >>conftest.$ac_ext <<_ACEOF
10371 /* end confdefs.h. */
10372 $ac_includes_default
10373 typedef size_t ac__type_new_;
10375 main ()
10377 if ((ac__type_new_ *) 0)
10378 return 0;
10379 if (sizeof (ac__type_new_))
10380 return 0;
10382 return 0;
10384 _ACEOF
10385 rm -f conftest.$ac_objext
10386 if { (ac_try="$ac_compile"
10387 case "(($ac_try" in
10388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10389 *) ac_try_echo=$ac_try;;
10390 esac
10391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10392 (eval "$ac_compile") 2>conftest.er1
10393 ac_status=$?
10394 grep -v '^ *+' conftest.er1 >conftest.err
10395 rm -f conftest.er1
10396 cat conftest.err >&5
10397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10398 (exit $ac_status); } && {
10399 test -z "$ac_c_werror_flag" ||
10400 test ! -s conftest.err
10401 } && test -s conftest.$ac_objext; then
10402 ac_cv_type_size_t=yes
10403 else
10404 echo "$as_me: failed program was:" >&5
10405 sed 's/^/| /' conftest.$ac_ext >&5
10407 ac_cv_type_size_t=no
10410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10412 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10413 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
10415 # The cast to long int works around a bug in the HP C Compiler
10416 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10417 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10418 # This bug is HP SR number 8606223364.
10419 { echo "$as_me:$LINENO: checking size of size_t" >&5
10420 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
10421 if test "${ac_cv_sizeof_size_t+set}" = set; then
10422 echo $ECHO_N "(cached) $ECHO_C" >&6
10423 else
10424 if test "$cross_compiling" = yes; then
10425 # Depending upon the size, compute the lo and hi bounds.
10426 cat >conftest.$ac_ext <<_ACEOF
10427 /* confdefs.h. */
10428 _ACEOF
10429 cat confdefs.h >>conftest.$ac_ext
10430 cat >>conftest.$ac_ext <<_ACEOF
10431 /* end confdefs.h. */
10432 $ac_includes_default
10433 typedef size_t ac__type_sizeof_;
10435 main ()
10437 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10438 test_array [0] = 0
10441 return 0;
10443 _ACEOF
10444 rm -f conftest.$ac_objext
10445 if { (ac_try="$ac_compile"
10446 case "(($ac_try" in
10447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10448 *) ac_try_echo=$ac_try;;
10449 esac
10450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10451 (eval "$ac_compile") 2>conftest.er1
10452 ac_status=$?
10453 grep -v '^ *+' conftest.er1 >conftest.err
10454 rm -f conftest.er1
10455 cat conftest.err >&5
10456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10457 (exit $ac_status); } && {
10458 test -z "$ac_c_werror_flag" ||
10459 test ! -s conftest.err
10460 } && test -s conftest.$ac_objext; then
10461 ac_lo=0 ac_mid=0
10462 while :; do
10463 cat >conftest.$ac_ext <<_ACEOF
10464 /* confdefs.h. */
10465 _ACEOF
10466 cat confdefs.h >>conftest.$ac_ext
10467 cat >>conftest.$ac_ext <<_ACEOF
10468 /* end confdefs.h. */
10469 $ac_includes_default
10470 typedef size_t ac__type_sizeof_;
10472 main ()
10474 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10475 test_array [0] = 0
10478 return 0;
10480 _ACEOF
10481 rm -f conftest.$ac_objext
10482 if { (ac_try="$ac_compile"
10483 case "(($ac_try" in
10484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10485 *) ac_try_echo=$ac_try;;
10486 esac
10487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10488 (eval "$ac_compile") 2>conftest.er1
10489 ac_status=$?
10490 grep -v '^ *+' conftest.er1 >conftest.err
10491 rm -f conftest.er1
10492 cat conftest.err >&5
10493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10494 (exit $ac_status); } && {
10495 test -z "$ac_c_werror_flag" ||
10496 test ! -s conftest.err
10497 } && test -s conftest.$ac_objext; then
10498 ac_hi=$ac_mid; break
10499 else
10500 echo "$as_me: failed program was:" >&5
10501 sed 's/^/| /' conftest.$ac_ext >&5
10503 ac_lo=`expr $ac_mid + 1`
10504 if test $ac_lo -le $ac_mid; then
10505 ac_lo= ac_hi=
10506 break
10508 ac_mid=`expr 2 '*' $ac_mid + 1`
10511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10512 done
10513 else
10514 echo "$as_me: failed program was:" >&5
10515 sed 's/^/| /' conftest.$ac_ext >&5
10517 cat >conftest.$ac_ext <<_ACEOF
10518 /* confdefs.h. */
10519 _ACEOF
10520 cat confdefs.h >>conftest.$ac_ext
10521 cat >>conftest.$ac_ext <<_ACEOF
10522 /* end confdefs.h. */
10523 $ac_includes_default
10524 typedef size_t ac__type_sizeof_;
10526 main ()
10528 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10529 test_array [0] = 0
10532 return 0;
10534 _ACEOF
10535 rm -f conftest.$ac_objext
10536 if { (ac_try="$ac_compile"
10537 case "(($ac_try" in
10538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10539 *) ac_try_echo=$ac_try;;
10540 esac
10541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10542 (eval "$ac_compile") 2>conftest.er1
10543 ac_status=$?
10544 grep -v '^ *+' conftest.er1 >conftest.err
10545 rm -f conftest.er1
10546 cat conftest.err >&5
10547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10548 (exit $ac_status); } && {
10549 test -z "$ac_c_werror_flag" ||
10550 test ! -s conftest.err
10551 } && test -s conftest.$ac_objext; then
10552 ac_hi=-1 ac_mid=-1
10553 while :; do
10554 cat >conftest.$ac_ext <<_ACEOF
10555 /* confdefs.h. */
10556 _ACEOF
10557 cat confdefs.h >>conftest.$ac_ext
10558 cat >>conftest.$ac_ext <<_ACEOF
10559 /* end confdefs.h. */
10560 $ac_includes_default
10561 typedef size_t ac__type_sizeof_;
10563 main ()
10565 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10566 test_array [0] = 0
10569 return 0;
10571 _ACEOF
10572 rm -f conftest.$ac_objext
10573 if { (ac_try="$ac_compile"
10574 case "(($ac_try" in
10575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10576 *) ac_try_echo=$ac_try;;
10577 esac
10578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10579 (eval "$ac_compile") 2>conftest.er1
10580 ac_status=$?
10581 grep -v '^ *+' conftest.er1 >conftest.err
10582 rm -f conftest.er1
10583 cat conftest.err >&5
10584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10585 (exit $ac_status); } && {
10586 test -z "$ac_c_werror_flag" ||
10587 test ! -s conftest.err
10588 } && test -s conftest.$ac_objext; then
10589 ac_lo=$ac_mid; break
10590 else
10591 echo "$as_me: failed program was:" >&5
10592 sed 's/^/| /' conftest.$ac_ext >&5
10594 ac_hi=`expr '(' $ac_mid ')' - 1`
10595 if test $ac_mid -le $ac_hi; then
10596 ac_lo= ac_hi=
10597 break
10599 ac_mid=`expr 2 '*' $ac_mid`
10602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10603 done
10604 else
10605 echo "$as_me: failed program was:" >&5
10606 sed 's/^/| /' conftest.$ac_ext >&5
10608 ac_lo= ac_hi=
10611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10615 # Binary search between lo and hi bounds.
10616 while test "x$ac_lo" != "x$ac_hi"; do
10617 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10618 cat >conftest.$ac_ext <<_ACEOF
10619 /* confdefs.h. */
10620 _ACEOF
10621 cat confdefs.h >>conftest.$ac_ext
10622 cat >>conftest.$ac_ext <<_ACEOF
10623 /* end confdefs.h. */
10624 $ac_includes_default
10625 typedef size_t ac__type_sizeof_;
10627 main ()
10629 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10630 test_array [0] = 0
10633 return 0;
10635 _ACEOF
10636 rm -f conftest.$ac_objext
10637 if { (ac_try="$ac_compile"
10638 case "(($ac_try" in
10639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10640 *) ac_try_echo=$ac_try;;
10641 esac
10642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10643 (eval "$ac_compile") 2>conftest.er1
10644 ac_status=$?
10645 grep -v '^ *+' conftest.er1 >conftest.err
10646 rm -f conftest.er1
10647 cat conftest.err >&5
10648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10649 (exit $ac_status); } && {
10650 test -z "$ac_c_werror_flag" ||
10651 test ! -s conftest.err
10652 } && test -s conftest.$ac_objext; then
10653 ac_hi=$ac_mid
10654 else
10655 echo "$as_me: failed program was:" >&5
10656 sed 's/^/| /' conftest.$ac_ext >&5
10658 ac_lo=`expr '(' $ac_mid ')' + 1`
10661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10662 done
10663 case $ac_lo in
10664 ?*) ac_cv_sizeof_size_t=$ac_lo;;
10665 '') if test "$ac_cv_type_size_t" = yes; then
10666 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10667 See \`config.log' for more details." >&5
10668 echo "$as_me: error: cannot compute sizeof (size_t)
10669 See \`config.log' for more details." >&2;}
10670 { (exit 77); exit 77; }; }
10671 else
10672 ac_cv_sizeof_size_t=0
10673 fi ;;
10674 esac
10675 else
10676 cat >conftest.$ac_ext <<_ACEOF
10677 /* confdefs.h. */
10678 _ACEOF
10679 cat confdefs.h >>conftest.$ac_ext
10680 cat >>conftest.$ac_ext <<_ACEOF
10681 /* end confdefs.h. */
10682 $ac_includes_default
10683 typedef size_t ac__type_sizeof_;
10684 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10685 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10686 #include <stdio.h>
10687 #include <stdlib.h>
10689 main ()
10692 FILE *f = fopen ("conftest.val", "w");
10693 if (! f)
10694 return 1;
10695 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10697 long int i = longval ();
10698 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10699 return 1;
10700 fprintf (f, "%ld\n", i);
10702 else
10704 unsigned long int i = ulongval ();
10705 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10706 return 1;
10707 fprintf (f, "%lu\n", i);
10709 return ferror (f) || fclose (f) != 0;
10712 return 0;
10714 _ACEOF
10715 rm -f conftest$ac_exeext
10716 if { (ac_try="$ac_link"
10717 case "(($ac_try" in
10718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10719 *) ac_try_echo=$ac_try;;
10720 esac
10721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10722 (eval "$ac_link") 2>&5
10723 ac_status=$?
10724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10726 { (case "(($ac_try" in
10727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10728 *) ac_try_echo=$ac_try;;
10729 esac
10730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10731 (eval "$ac_try") 2>&5
10732 ac_status=$?
10733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10734 (exit $ac_status); }; }; then
10735 ac_cv_sizeof_size_t=`cat conftest.val`
10736 else
10737 echo "$as_me: program exited with status $ac_status" >&5
10738 echo "$as_me: failed program was:" >&5
10739 sed 's/^/| /' conftest.$ac_ext >&5
10741 ( exit $ac_status )
10742 if test "$ac_cv_type_size_t" = yes; then
10743 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10744 See \`config.log' for more details." >&5
10745 echo "$as_me: error: cannot compute sizeof (size_t)
10746 See \`config.log' for more details." >&2;}
10747 { (exit 77); exit 77; }; }
10748 else
10749 ac_cv_sizeof_size_t=0
10752 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10754 rm -f conftest.val
10756 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
10757 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
10761 cat >>confdefs.h <<_ACEOF
10762 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
10763 _ACEOF
10766 { echo "$as_me:$LINENO: checking for pid_t" >&5
10767 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
10768 if test "${ac_cv_type_pid_t+set}" = set; then
10769 echo $ECHO_N "(cached) $ECHO_C" >&6
10770 else
10771 cat >conftest.$ac_ext <<_ACEOF
10772 /* confdefs.h. */
10773 _ACEOF
10774 cat confdefs.h >>conftest.$ac_ext
10775 cat >>conftest.$ac_ext <<_ACEOF
10776 /* end confdefs.h. */
10777 $ac_includes_default
10778 typedef pid_t ac__type_new_;
10780 main ()
10782 if ((ac__type_new_ *) 0)
10783 return 0;
10784 if (sizeof (ac__type_new_))
10785 return 0;
10787 return 0;
10789 _ACEOF
10790 rm -f conftest.$ac_objext
10791 if { (ac_try="$ac_compile"
10792 case "(($ac_try" in
10793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10794 *) ac_try_echo=$ac_try;;
10795 esac
10796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10797 (eval "$ac_compile") 2>conftest.er1
10798 ac_status=$?
10799 grep -v '^ *+' conftest.er1 >conftest.err
10800 rm -f conftest.er1
10801 cat conftest.err >&5
10802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10803 (exit $ac_status); } && {
10804 test -z "$ac_c_werror_flag" ||
10805 test ! -s conftest.err
10806 } && test -s conftest.$ac_objext; then
10807 ac_cv_type_pid_t=yes
10808 else
10809 echo "$as_me: failed program was:" >&5
10810 sed 's/^/| /' conftest.$ac_ext >&5
10812 ac_cv_type_pid_t=no
10815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10817 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10818 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
10820 # The cast to long int works around a bug in the HP C Compiler
10821 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10822 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10823 # This bug is HP SR number 8606223364.
10824 { echo "$as_me:$LINENO: checking size of pid_t" >&5
10825 echo $ECHO_N "checking size of pid_t... $ECHO_C" >&6; }
10826 if test "${ac_cv_sizeof_pid_t+set}" = set; then
10827 echo $ECHO_N "(cached) $ECHO_C" >&6
10828 else
10829 if test "$cross_compiling" = yes; then
10830 # Depending upon the size, compute the lo and hi bounds.
10831 cat >conftest.$ac_ext <<_ACEOF
10832 /* confdefs.h. */
10833 _ACEOF
10834 cat confdefs.h >>conftest.$ac_ext
10835 cat >>conftest.$ac_ext <<_ACEOF
10836 /* end confdefs.h. */
10837 $ac_includes_default
10838 typedef pid_t ac__type_sizeof_;
10840 main ()
10842 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10843 test_array [0] = 0
10846 return 0;
10848 _ACEOF
10849 rm -f conftest.$ac_objext
10850 if { (ac_try="$ac_compile"
10851 case "(($ac_try" in
10852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10853 *) ac_try_echo=$ac_try;;
10854 esac
10855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10856 (eval "$ac_compile") 2>conftest.er1
10857 ac_status=$?
10858 grep -v '^ *+' conftest.er1 >conftest.err
10859 rm -f conftest.er1
10860 cat conftest.err >&5
10861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10862 (exit $ac_status); } && {
10863 test -z "$ac_c_werror_flag" ||
10864 test ! -s conftest.err
10865 } && test -s conftest.$ac_objext; then
10866 ac_lo=0 ac_mid=0
10867 while :; do
10868 cat >conftest.$ac_ext <<_ACEOF
10869 /* confdefs.h. */
10870 _ACEOF
10871 cat confdefs.h >>conftest.$ac_ext
10872 cat >>conftest.$ac_ext <<_ACEOF
10873 /* end confdefs.h. */
10874 $ac_includes_default
10875 typedef pid_t ac__type_sizeof_;
10877 main ()
10879 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10880 test_array [0] = 0
10883 return 0;
10885 _ACEOF
10886 rm -f conftest.$ac_objext
10887 if { (ac_try="$ac_compile"
10888 case "(($ac_try" in
10889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10890 *) ac_try_echo=$ac_try;;
10891 esac
10892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10893 (eval "$ac_compile") 2>conftest.er1
10894 ac_status=$?
10895 grep -v '^ *+' conftest.er1 >conftest.err
10896 rm -f conftest.er1
10897 cat conftest.err >&5
10898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10899 (exit $ac_status); } && {
10900 test -z "$ac_c_werror_flag" ||
10901 test ! -s conftest.err
10902 } && test -s conftest.$ac_objext; then
10903 ac_hi=$ac_mid; break
10904 else
10905 echo "$as_me: failed program was:" >&5
10906 sed 's/^/| /' conftest.$ac_ext >&5
10908 ac_lo=`expr $ac_mid + 1`
10909 if test $ac_lo -le $ac_mid; then
10910 ac_lo= ac_hi=
10911 break
10913 ac_mid=`expr 2 '*' $ac_mid + 1`
10916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10917 done
10918 else
10919 echo "$as_me: failed program was:" >&5
10920 sed 's/^/| /' conftest.$ac_ext >&5
10922 cat >conftest.$ac_ext <<_ACEOF
10923 /* confdefs.h. */
10924 _ACEOF
10925 cat confdefs.h >>conftest.$ac_ext
10926 cat >>conftest.$ac_ext <<_ACEOF
10927 /* end confdefs.h. */
10928 $ac_includes_default
10929 typedef pid_t ac__type_sizeof_;
10931 main ()
10933 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10934 test_array [0] = 0
10937 return 0;
10939 _ACEOF
10940 rm -f conftest.$ac_objext
10941 if { (ac_try="$ac_compile"
10942 case "(($ac_try" in
10943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10944 *) ac_try_echo=$ac_try;;
10945 esac
10946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10947 (eval "$ac_compile") 2>conftest.er1
10948 ac_status=$?
10949 grep -v '^ *+' conftest.er1 >conftest.err
10950 rm -f conftest.er1
10951 cat conftest.err >&5
10952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10953 (exit $ac_status); } && {
10954 test -z "$ac_c_werror_flag" ||
10955 test ! -s conftest.err
10956 } && test -s conftest.$ac_objext; then
10957 ac_hi=-1 ac_mid=-1
10958 while :; do
10959 cat >conftest.$ac_ext <<_ACEOF
10960 /* confdefs.h. */
10961 _ACEOF
10962 cat confdefs.h >>conftest.$ac_ext
10963 cat >>conftest.$ac_ext <<_ACEOF
10964 /* end confdefs.h. */
10965 $ac_includes_default
10966 typedef pid_t ac__type_sizeof_;
10968 main ()
10970 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10971 test_array [0] = 0
10974 return 0;
10976 _ACEOF
10977 rm -f conftest.$ac_objext
10978 if { (ac_try="$ac_compile"
10979 case "(($ac_try" in
10980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10981 *) ac_try_echo=$ac_try;;
10982 esac
10983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10984 (eval "$ac_compile") 2>conftest.er1
10985 ac_status=$?
10986 grep -v '^ *+' conftest.er1 >conftest.err
10987 rm -f conftest.er1
10988 cat conftest.err >&5
10989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10990 (exit $ac_status); } && {
10991 test -z "$ac_c_werror_flag" ||
10992 test ! -s conftest.err
10993 } && test -s conftest.$ac_objext; then
10994 ac_lo=$ac_mid; break
10995 else
10996 echo "$as_me: failed program was:" >&5
10997 sed 's/^/| /' conftest.$ac_ext >&5
10999 ac_hi=`expr '(' $ac_mid ')' - 1`
11000 if test $ac_mid -le $ac_hi; then
11001 ac_lo= ac_hi=
11002 break
11004 ac_mid=`expr 2 '*' $ac_mid`
11007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11008 done
11009 else
11010 echo "$as_me: failed program was:" >&5
11011 sed 's/^/| /' conftest.$ac_ext >&5
11013 ac_lo= ac_hi=
11016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11020 # Binary search between lo and hi bounds.
11021 while test "x$ac_lo" != "x$ac_hi"; do
11022 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11023 cat >conftest.$ac_ext <<_ACEOF
11024 /* confdefs.h. */
11025 _ACEOF
11026 cat confdefs.h >>conftest.$ac_ext
11027 cat >>conftest.$ac_ext <<_ACEOF
11028 /* end confdefs.h. */
11029 $ac_includes_default
11030 typedef pid_t ac__type_sizeof_;
11032 main ()
11034 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11035 test_array [0] = 0
11038 return 0;
11040 _ACEOF
11041 rm -f conftest.$ac_objext
11042 if { (ac_try="$ac_compile"
11043 case "(($ac_try" in
11044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11045 *) ac_try_echo=$ac_try;;
11046 esac
11047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11048 (eval "$ac_compile") 2>conftest.er1
11049 ac_status=$?
11050 grep -v '^ *+' conftest.er1 >conftest.err
11051 rm -f conftest.er1
11052 cat conftest.err >&5
11053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11054 (exit $ac_status); } && {
11055 test -z "$ac_c_werror_flag" ||
11056 test ! -s conftest.err
11057 } && test -s conftest.$ac_objext; then
11058 ac_hi=$ac_mid
11059 else
11060 echo "$as_me: failed program was:" >&5
11061 sed 's/^/| /' conftest.$ac_ext >&5
11063 ac_lo=`expr '(' $ac_mid ')' + 1`
11066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11067 done
11068 case $ac_lo in
11069 ?*) ac_cv_sizeof_pid_t=$ac_lo;;
11070 '') if test "$ac_cv_type_pid_t" = yes; then
11071 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
11072 See \`config.log' for more details." >&5
11073 echo "$as_me: error: cannot compute sizeof (pid_t)
11074 See \`config.log' for more details." >&2;}
11075 { (exit 77); exit 77; }; }
11076 else
11077 ac_cv_sizeof_pid_t=0
11078 fi ;;
11079 esac
11080 else
11081 cat >conftest.$ac_ext <<_ACEOF
11082 /* confdefs.h. */
11083 _ACEOF
11084 cat confdefs.h >>conftest.$ac_ext
11085 cat >>conftest.$ac_ext <<_ACEOF
11086 /* end confdefs.h. */
11087 $ac_includes_default
11088 typedef pid_t ac__type_sizeof_;
11089 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11090 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11091 #include <stdio.h>
11092 #include <stdlib.h>
11094 main ()
11097 FILE *f = fopen ("conftest.val", "w");
11098 if (! f)
11099 return 1;
11100 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11102 long int i = longval ();
11103 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11104 return 1;
11105 fprintf (f, "%ld\n", i);
11107 else
11109 unsigned long int i = ulongval ();
11110 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11111 return 1;
11112 fprintf (f, "%lu\n", i);
11114 return ferror (f) || fclose (f) != 0;
11117 return 0;
11119 _ACEOF
11120 rm -f conftest$ac_exeext
11121 if { (ac_try="$ac_link"
11122 case "(($ac_try" in
11123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11124 *) ac_try_echo=$ac_try;;
11125 esac
11126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11127 (eval "$ac_link") 2>&5
11128 ac_status=$?
11129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11130 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11131 { (case "(($ac_try" in
11132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11133 *) ac_try_echo=$ac_try;;
11134 esac
11135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11136 (eval "$ac_try") 2>&5
11137 ac_status=$?
11138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11139 (exit $ac_status); }; }; then
11140 ac_cv_sizeof_pid_t=`cat conftest.val`
11141 else
11142 echo "$as_me: program exited with status $ac_status" >&5
11143 echo "$as_me: failed program was:" >&5
11144 sed 's/^/| /' conftest.$ac_ext >&5
11146 ( exit $ac_status )
11147 if test "$ac_cv_type_pid_t" = yes; then
11148 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
11149 See \`config.log' for more details." >&5
11150 echo "$as_me: error: cannot compute sizeof (pid_t)
11151 See \`config.log' for more details." >&2;}
11152 { (exit 77); exit 77; }; }
11153 else
11154 ac_cv_sizeof_pid_t=0
11157 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11159 rm -f conftest.val
11161 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pid_t" >&5
11162 echo "${ECHO_T}$ac_cv_sizeof_pid_t" >&6; }
11166 cat >>confdefs.h <<_ACEOF
11167 #define SIZEOF_PID_T $ac_cv_sizeof_pid_t
11168 _ACEOF
11172 { echo "$as_me:$LINENO: checking for long long support" >&5
11173 echo $ECHO_N "checking for long long support... $ECHO_C" >&6; }
11174 have_long_long=no
11175 cat >conftest.$ac_ext <<_ACEOF
11176 /* confdefs.h. */
11177 _ACEOF
11178 cat confdefs.h >>conftest.$ac_ext
11179 cat >>conftest.$ac_ext <<_ACEOF
11180 /* end confdefs.h. */
11183 main ()
11185 long long x; x = (long long)0;
11187 return 0;
11189 _ACEOF
11190 rm -f conftest.$ac_objext
11191 if { (ac_try="$ac_compile"
11192 case "(($ac_try" in
11193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11194 *) ac_try_echo=$ac_try;;
11195 esac
11196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11197 (eval "$ac_compile") 2>conftest.er1
11198 ac_status=$?
11199 grep -v '^ *+' conftest.er1 >conftest.err
11200 rm -f conftest.er1
11201 cat conftest.err >&5
11202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11203 (exit $ac_status); } && {
11204 test -z "$ac_c_werror_flag" ||
11205 test ! -s conftest.err
11206 } && test -s conftest.$ac_objext; then
11209 cat >>confdefs.h <<\_ACEOF
11210 #define HAVE_LONG_LONG 1
11211 _ACEOF
11213 have_long_long=yes
11215 else
11216 echo "$as_me: failed program was:" >&5
11217 sed 's/^/| /' conftest.$ac_ext >&5
11222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11223 { echo "$as_me:$LINENO: result: $have_long_long" >&5
11224 echo "${ECHO_T}$have_long_long" >&6; }
11225 if test "$have_long_long" = yes ; then
11226 { echo "$as_me:$LINENO: checking for long long" >&5
11227 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
11228 if test "${ac_cv_type_long_long+set}" = set; then
11229 echo $ECHO_N "(cached) $ECHO_C" >&6
11230 else
11231 cat >conftest.$ac_ext <<_ACEOF
11232 /* confdefs.h. */
11233 _ACEOF
11234 cat confdefs.h >>conftest.$ac_ext
11235 cat >>conftest.$ac_ext <<_ACEOF
11236 /* end confdefs.h. */
11237 $ac_includes_default
11238 typedef long long ac__type_new_;
11240 main ()
11242 if ((ac__type_new_ *) 0)
11243 return 0;
11244 if (sizeof (ac__type_new_))
11245 return 0;
11247 return 0;
11249 _ACEOF
11250 rm -f conftest.$ac_objext
11251 if { (ac_try="$ac_compile"
11252 case "(($ac_try" in
11253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11254 *) ac_try_echo=$ac_try;;
11255 esac
11256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11257 (eval "$ac_compile") 2>conftest.er1
11258 ac_status=$?
11259 grep -v '^ *+' conftest.er1 >conftest.err
11260 rm -f conftest.er1
11261 cat conftest.err >&5
11262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11263 (exit $ac_status); } && {
11264 test -z "$ac_c_werror_flag" ||
11265 test ! -s conftest.err
11266 } && test -s conftest.$ac_objext; then
11267 ac_cv_type_long_long=yes
11268 else
11269 echo "$as_me: failed program was:" >&5
11270 sed 's/^/| /' conftest.$ac_ext >&5
11272 ac_cv_type_long_long=no
11275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11277 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
11278 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
11280 # The cast to long int works around a bug in the HP C Compiler
11281 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11282 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11283 # This bug is HP SR number 8606223364.
11284 { echo "$as_me:$LINENO: checking size of long long" >&5
11285 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
11286 if test "${ac_cv_sizeof_long_long+set}" = set; then
11287 echo $ECHO_N "(cached) $ECHO_C" >&6
11288 else
11289 if test "$cross_compiling" = yes; then
11290 # Depending upon the size, compute the lo and hi bounds.
11291 cat >conftest.$ac_ext <<_ACEOF
11292 /* confdefs.h. */
11293 _ACEOF
11294 cat confdefs.h >>conftest.$ac_ext
11295 cat >>conftest.$ac_ext <<_ACEOF
11296 /* end confdefs.h. */
11297 $ac_includes_default
11298 typedef long long ac__type_sizeof_;
11300 main ()
11302 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11303 test_array [0] = 0
11306 return 0;
11308 _ACEOF
11309 rm -f conftest.$ac_objext
11310 if { (ac_try="$ac_compile"
11311 case "(($ac_try" in
11312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11313 *) ac_try_echo=$ac_try;;
11314 esac
11315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11316 (eval "$ac_compile") 2>conftest.er1
11317 ac_status=$?
11318 grep -v '^ *+' conftest.er1 >conftest.err
11319 rm -f conftest.er1
11320 cat conftest.err >&5
11321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11322 (exit $ac_status); } && {
11323 test -z "$ac_c_werror_flag" ||
11324 test ! -s conftest.err
11325 } && test -s conftest.$ac_objext; then
11326 ac_lo=0 ac_mid=0
11327 while :; do
11328 cat >conftest.$ac_ext <<_ACEOF
11329 /* confdefs.h. */
11330 _ACEOF
11331 cat confdefs.h >>conftest.$ac_ext
11332 cat >>conftest.$ac_ext <<_ACEOF
11333 /* end confdefs.h. */
11334 $ac_includes_default
11335 typedef long long ac__type_sizeof_;
11337 main ()
11339 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11340 test_array [0] = 0
11343 return 0;
11345 _ACEOF
11346 rm -f conftest.$ac_objext
11347 if { (ac_try="$ac_compile"
11348 case "(($ac_try" in
11349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11350 *) ac_try_echo=$ac_try;;
11351 esac
11352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11353 (eval "$ac_compile") 2>conftest.er1
11354 ac_status=$?
11355 grep -v '^ *+' conftest.er1 >conftest.err
11356 rm -f conftest.er1
11357 cat conftest.err >&5
11358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11359 (exit $ac_status); } && {
11360 test -z "$ac_c_werror_flag" ||
11361 test ! -s conftest.err
11362 } && test -s conftest.$ac_objext; then
11363 ac_hi=$ac_mid; break
11364 else
11365 echo "$as_me: failed program was:" >&5
11366 sed 's/^/| /' conftest.$ac_ext >&5
11368 ac_lo=`expr $ac_mid + 1`
11369 if test $ac_lo -le $ac_mid; then
11370 ac_lo= ac_hi=
11371 break
11373 ac_mid=`expr 2 '*' $ac_mid + 1`
11376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11377 done
11378 else
11379 echo "$as_me: failed program was:" >&5
11380 sed 's/^/| /' conftest.$ac_ext >&5
11382 cat >conftest.$ac_ext <<_ACEOF
11383 /* confdefs.h. */
11384 _ACEOF
11385 cat confdefs.h >>conftest.$ac_ext
11386 cat >>conftest.$ac_ext <<_ACEOF
11387 /* end confdefs.h. */
11388 $ac_includes_default
11389 typedef long long ac__type_sizeof_;
11391 main ()
11393 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11394 test_array [0] = 0
11397 return 0;
11399 _ACEOF
11400 rm -f conftest.$ac_objext
11401 if { (ac_try="$ac_compile"
11402 case "(($ac_try" in
11403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11404 *) ac_try_echo=$ac_try;;
11405 esac
11406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11407 (eval "$ac_compile") 2>conftest.er1
11408 ac_status=$?
11409 grep -v '^ *+' conftest.er1 >conftest.err
11410 rm -f conftest.er1
11411 cat conftest.err >&5
11412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11413 (exit $ac_status); } && {
11414 test -z "$ac_c_werror_flag" ||
11415 test ! -s conftest.err
11416 } && test -s conftest.$ac_objext; then
11417 ac_hi=-1 ac_mid=-1
11418 while :; do
11419 cat >conftest.$ac_ext <<_ACEOF
11420 /* confdefs.h. */
11421 _ACEOF
11422 cat confdefs.h >>conftest.$ac_ext
11423 cat >>conftest.$ac_ext <<_ACEOF
11424 /* end confdefs.h. */
11425 $ac_includes_default
11426 typedef long long ac__type_sizeof_;
11428 main ()
11430 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11431 test_array [0] = 0
11434 return 0;
11436 _ACEOF
11437 rm -f conftest.$ac_objext
11438 if { (ac_try="$ac_compile"
11439 case "(($ac_try" in
11440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11441 *) ac_try_echo=$ac_try;;
11442 esac
11443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11444 (eval "$ac_compile") 2>conftest.er1
11445 ac_status=$?
11446 grep -v '^ *+' conftest.er1 >conftest.err
11447 rm -f conftest.er1
11448 cat conftest.err >&5
11449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11450 (exit $ac_status); } && {
11451 test -z "$ac_c_werror_flag" ||
11452 test ! -s conftest.err
11453 } && test -s conftest.$ac_objext; then
11454 ac_lo=$ac_mid; break
11455 else
11456 echo "$as_me: failed program was:" >&5
11457 sed 's/^/| /' conftest.$ac_ext >&5
11459 ac_hi=`expr '(' $ac_mid ')' - 1`
11460 if test $ac_mid -le $ac_hi; then
11461 ac_lo= ac_hi=
11462 break
11464 ac_mid=`expr 2 '*' $ac_mid`
11467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11468 done
11469 else
11470 echo "$as_me: failed program was:" >&5
11471 sed 's/^/| /' conftest.$ac_ext >&5
11473 ac_lo= ac_hi=
11476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11480 # Binary search between lo and hi bounds.
11481 while test "x$ac_lo" != "x$ac_hi"; do
11482 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11483 cat >conftest.$ac_ext <<_ACEOF
11484 /* confdefs.h. */
11485 _ACEOF
11486 cat confdefs.h >>conftest.$ac_ext
11487 cat >>conftest.$ac_ext <<_ACEOF
11488 /* end confdefs.h. */
11489 $ac_includes_default
11490 typedef long long ac__type_sizeof_;
11492 main ()
11494 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11495 test_array [0] = 0
11498 return 0;
11500 _ACEOF
11501 rm -f conftest.$ac_objext
11502 if { (ac_try="$ac_compile"
11503 case "(($ac_try" in
11504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11505 *) ac_try_echo=$ac_try;;
11506 esac
11507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11508 (eval "$ac_compile") 2>conftest.er1
11509 ac_status=$?
11510 grep -v '^ *+' conftest.er1 >conftest.err
11511 rm -f conftest.er1
11512 cat conftest.err >&5
11513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11514 (exit $ac_status); } && {
11515 test -z "$ac_c_werror_flag" ||
11516 test ! -s conftest.err
11517 } && test -s conftest.$ac_objext; then
11518 ac_hi=$ac_mid
11519 else
11520 echo "$as_me: failed program was:" >&5
11521 sed 's/^/| /' conftest.$ac_ext >&5
11523 ac_lo=`expr '(' $ac_mid ')' + 1`
11526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11527 done
11528 case $ac_lo in
11529 ?*) ac_cv_sizeof_long_long=$ac_lo;;
11530 '') if test "$ac_cv_type_long_long" = yes; then
11531 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
11532 See \`config.log' for more details." >&5
11533 echo "$as_me: error: cannot compute sizeof (long long)
11534 See \`config.log' for more details." >&2;}
11535 { (exit 77); exit 77; }; }
11536 else
11537 ac_cv_sizeof_long_long=0
11538 fi ;;
11539 esac
11540 else
11541 cat >conftest.$ac_ext <<_ACEOF
11542 /* confdefs.h. */
11543 _ACEOF
11544 cat confdefs.h >>conftest.$ac_ext
11545 cat >>conftest.$ac_ext <<_ACEOF
11546 /* end confdefs.h. */
11547 $ac_includes_default
11548 typedef long long ac__type_sizeof_;
11549 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11550 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11551 #include <stdio.h>
11552 #include <stdlib.h>
11554 main ()
11557 FILE *f = fopen ("conftest.val", "w");
11558 if (! f)
11559 return 1;
11560 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11562 long int i = longval ();
11563 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11564 return 1;
11565 fprintf (f, "%ld\n", i);
11567 else
11569 unsigned long int i = ulongval ();
11570 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11571 return 1;
11572 fprintf (f, "%lu\n", i);
11574 return ferror (f) || fclose (f) != 0;
11577 return 0;
11579 _ACEOF
11580 rm -f conftest$ac_exeext
11581 if { (ac_try="$ac_link"
11582 case "(($ac_try" in
11583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11584 *) ac_try_echo=$ac_try;;
11585 esac
11586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11587 (eval "$ac_link") 2>&5
11588 ac_status=$?
11589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11590 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11591 { (case "(($ac_try" in
11592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11593 *) ac_try_echo=$ac_try;;
11594 esac
11595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11596 (eval "$ac_try") 2>&5
11597 ac_status=$?
11598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11599 (exit $ac_status); }; }; then
11600 ac_cv_sizeof_long_long=`cat conftest.val`
11601 else
11602 echo "$as_me: program exited with status $ac_status" >&5
11603 echo "$as_me: failed program was:" >&5
11604 sed 's/^/| /' conftest.$ac_ext >&5
11606 ( exit $ac_status )
11607 if test "$ac_cv_type_long_long" = yes; then
11608 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
11609 See \`config.log' for more details." >&5
11610 echo "$as_me: error: cannot compute sizeof (long long)
11611 See \`config.log' for more details." >&2;}
11612 { (exit 77); exit 77; }; }
11613 else
11614 ac_cv_sizeof_long_long=0
11617 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11619 rm -f conftest.val
11621 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
11622 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
11626 cat >>confdefs.h <<_ACEOF
11627 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11628 _ACEOF
11633 { echo "$as_me:$LINENO: checking for long double support" >&5
11634 echo $ECHO_N "checking for long double support... $ECHO_C" >&6; }
11635 have_long_double=no
11636 cat >conftest.$ac_ext <<_ACEOF
11637 /* confdefs.h. */
11638 _ACEOF
11639 cat confdefs.h >>conftest.$ac_ext
11640 cat >>conftest.$ac_ext <<_ACEOF
11641 /* end confdefs.h. */
11644 main ()
11646 long double x; x = (long double)0.;
11648 return 0;
11650 _ACEOF
11651 rm -f conftest.$ac_objext
11652 if { (ac_try="$ac_compile"
11653 case "(($ac_try" in
11654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11655 *) ac_try_echo=$ac_try;;
11656 esac
11657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11658 (eval "$ac_compile") 2>conftest.er1
11659 ac_status=$?
11660 grep -v '^ *+' conftest.er1 >conftest.err
11661 rm -f conftest.er1
11662 cat conftest.err >&5
11663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11664 (exit $ac_status); } && {
11665 test -z "$ac_c_werror_flag" ||
11666 test ! -s conftest.err
11667 } && test -s conftest.$ac_objext; then
11670 cat >>confdefs.h <<\_ACEOF
11671 #define HAVE_LONG_DOUBLE 1
11672 _ACEOF
11674 have_long_double=yes
11676 else
11677 echo "$as_me: failed program was:" >&5
11678 sed 's/^/| /' conftest.$ac_ext >&5
11683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11684 { echo "$as_me:$LINENO: result: $have_long_double" >&5
11685 echo "${ECHO_T}$have_long_double" >&6; }
11686 if test "$have_long_double" = yes ; then
11687 { echo "$as_me:$LINENO: checking for long double" >&5
11688 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
11689 if test "${ac_cv_type_long_double+set}" = set; then
11690 echo $ECHO_N "(cached) $ECHO_C" >&6
11691 else
11692 cat >conftest.$ac_ext <<_ACEOF
11693 /* confdefs.h. */
11694 _ACEOF
11695 cat confdefs.h >>conftest.$ac_ext
11696 cat >>conftest.$ac_ext <<_ACEOF
11697 /* end confdefs.h. */
11698 $ac_includes_default
11699 typedef long double ac__type_new_;
11701 main ()
11703 if ((ac__type_new_ *) 0)
11704 return 0;
11705 if (sizeof (ac__type_new_))
11706 return 0;
11708 return 0;
11710 _ACEOF
11711 rm -f conftest.$ac_objext
11712 if { (ac_try="$ac_compile"
11713 case "(($ac_try" in
11714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11715 *) ac_try_echo=$ac_try;;
11716 esac
11717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11718 (eval "$ac_compile") 2>conftest.er1
11719 ac_status=$?
11720 grep -v '^ *+' conftest.er1 >conftest.err
11721 rm -f conftest.er1
11722 cat conftest.err >&5
11723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11724 (exit $ac_status); } && {
11725 test -z "$ac_c_werror_flag" ||
11726 test ! -s conftest.err
11727 } && test -s conftest.$ac_objext; then
11728 ac_cv_type_long_double=yes
11729 else
11730 echo "$as_me: failed program was:" >&5
11731 sed 's/^/| /' conftest.$ac_ext >&5
11733 ac_cv_type_long_double=no
11736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11738 { echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
11739 echo "${ECHO_T}$ac_cv_type_long_double" >&6; }
11741 # The cast to long int works around a bug in the HP C Compiler
11742 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11743 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11744 # This bug is HP SR number 8606223364.
11745 { echo "$as_me:$LINENO: checking size of long double" >&5
11746 echo $ECHO_N "checking size of long double... $ECHO_C" >&6; }
11747 if test "${ac_cv_sizeof_long_double+set}" = set; then
11748 echo $ECHO_N "(cached) $ECHO_C" >&6
11749 else
11750 if test "$cross_compiling" = yes; then
11751 # Depending upon the size, compute the lo and hi bounds.
11752 cat >conftest.$ac_ext <<_ACEOF
11753 /* confdefs.h. */
11754 _ACEOF
11755 cat confdefs.h >>conftest.$ac_ext
11756 cat >>conftest.$ac_ext <<_ACEOF
11757 /* end confdefs.h. */
11758 $ac_includes_default
11759 typedef long double ac__type_sizeof_;
11761 main ()
11763 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11764 test_array [0] = 0
11767 return 0;
11769 _ACEOF
11770 rm -f conftest.$ac_objext
11771 if { (ac_try="$ac_compile"
11772 case "(($ac_try" in
11773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11774 *) ac_try_echo=$ac_try;;
11775 esac
11776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11777 (eval "$ac_compile") 2>conftest.er1
11778 ac_status=$?
11779 grep -v '^ *+' conftest.er1 >conftest.err
11780 rm -f conftest.er1
11781 cat conftest.err >&5
11782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11783 (exit $ac_status); } && {
11784 test -z "$ac_c_werror_flag" ||
11785 test ! -s conftest.err
11786 } && test -s conftest.$ac_objext; then
11787 ac_lo=0 ac_mid=0
11788 while :; do
11789 cat >conftest.$ac_ext <<_ACEOF
11790 /* confdefs.h. */
11791 _ACEOF
11792 cat confdefs.h >>conftest.$ac_ext
11793 cat >>conftest.$ac_ext <<_ACEOF
11794 /* end confdefs.h. */
11795 $ac_includes_default
11796 typedef long double ac__type_sizeof_;
11798 main ()
11800 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11801 test_array [0] = 0
11804 return 0;
11806 _ACEOF
11807 rm -f conftest.$ac_objext
11808 if { (ac_try="$ac_compile"
11809 case "(($ac_try" in
11810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11811 *) ac_try_echo=$ac_try;;
11812 esac
11813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11814 (eval "$ac_compile") 2>conftest.er1
11815 ac_status=$?
11816 grep -v '^ *+' conftest.er1 >conftest.err
11817 rm -f conftest.er1
11818 cat conftest.err >&5
11819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11820 (exit $ac_status); } && {
11821 test -z "$ac_c_werror_flag" ||
11822 test ! -s conftest.err
11823 } && test -s conftest.$ac_objext; then
11824 ac_hi=$ac_mid; break
11825 else
11826 echo "$as_me: failed program was:" >&5
11827 sed 's/^/| /' conftest.$ac_ext >&5
11829 ac_lo=`expr $ac_mid + 1`
11830 if test $ac_lo -le $ac_mid; then
11831 ac_lo= ac_hi=
11832 break
11834 ac_mid=`expr 2 '*' $ac_mid + 1`
11837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11838 done
11839 else
11840 echo "$as_me: failed program was:" >&5
11841 sed 's/^/| /' conftest.$ac_ext >&5
11843 cat >conftest.$ac_ext <<_ACEOF
11844 /* confdefs.h. */
11845 _ACEOF
11846 cat confdefs.h >>conftest.$ac_ext
11847 cat >>conftest.$ac_ext <<_ACEOF
11848 /* end confdefs.h. */
11849 $ac_includes_default
11850 typedef long double ac__type_sizeof_;
11852 main ()
11854 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11855 test_array [0] = 0
11858 return 0;
11860 _ACEOF
11861 rm -f conftest.$ac_objext
11862 if { (ac_try="$ac_compile"
11863 case "(($ac_try" in
11864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11865 *) ac_try_echo=$ac_try;;
11866 esac
11867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11868 (eval "$ac_compile") 2>conftest.er1
11869 ac_status=$?
11870 grep -v '^ *+' conftest.er1 >conftest.err
11871 rm -f conftest.er1
11872 cat conftest.err >&5
11873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11874 (exit $ac_status); } && {
11875 test -z "$ac_c_werror_flag" ||
11876 test ! -s conftest.err
11877 } && test -s conftest.$ac_objext; then
11878 ac_hi=-1 ac_mid=-1
11879 while :; do
11880 cat >conftest.$ac_ext <<_ACEOF
11881 /* confdefs.h. */
11882 _ACEOF
11883 cat confdefs.h >>conftest.$ac_ext
11884 cat >>conftest.$ac_ext <<_ACEOF
11885 /* end confdefs.h. */
11886 $ac_includes_default
11887 typedef long double ac__type_sizeof_;
11889 main ()
11891 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11892 test_array [0] = 0
11895 return 0;
11897 _ACEOF
11898 rm -f conftest.$ac_objext
11899 if { (ac_try="$ac_compile"
11900 case "(($ac_try" in
11901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11902 *) ac_try_echo=$ac_try;;
11903 esac
11904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11905 (eval "$ac_compile") 2>conftest.er1
11906 ac_status=$?
11907 grep -v '^ *+' conftest.er1 >conftest.err
11908 rm -f conftest.er1
11909 cat conftest.err >&5
11910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11911 (exit $ac_status); } && {
11912 test -z "$ac_c_werror_flag" ||
11913 test ! -s conftest.err
11914 } && test -s conftest.$ac_objext; then
11915 ac_lo=$ac_mid; break
11916 else
11917 echo "$as_me: failed program was:" >&5
11918 sed 's/^/| /' conftest.$ac_ext >&5
11920 ac_hi=`expr '(' $ac_mid ')' - 1`
11921 if test $ac_mid -le $ac_hi; then
11922 ac_lo= ac_hi=
11923 break
11925 ac_mid=`expr 2 '*' $ac_mid`
11928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11929 done
11930 else
11931 echo "$as_me: failed program was:" >&5
11932 sed 's/^/| /' conftest.$ac_ext >&5
11934 ac_lo= ac_hi=
11937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11941 # Binary search between lo and hi bounds.
11942 while test "x$ac_lo" != "x$ac_hi"; do
11943 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11944 cat >conftest.$ac_ext <<_ACEOF
11945 /* confdefs.h. */
11946 _ACEOF
11947 cat confdefs.h >>conftest.$ac_ext
11948 cat >>conftest.$ac_ext <<_ACEOF
11949 /* end confdefs.h. */
11950 $ac_includes_default
11951 typedef long double ac__type_sizeof_;
11953 main ()
11955 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11956 test_array [0] = 0
11959 return 0;
11961 _ACEOF
11962 rm -f conftest.$ac_objext
11963 if { (ac_try="$ac_compile"
11964 case "(($ac_try" in
11965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11966 *) ac_try_echo=$ac_try;;
11967 esac
11968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11969 (eval "$ac_compile") 2>conftest.er1
11970 ac_status=$?
11971 grep -v '^ *+' conftest.er1 >conftest.err
11972 rm -f conftest.er1
11973 cat conftest.err >&5
11974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11975 (exit $ac_status); } && {
11976 test -z "$ac_c_werror_flag" ||
11977 test ! -s conftest.err
11978 } && test -s conftest.$ac_objext; then
11979 ac_hi=$ac_mid
11980 else
11981 echo "$as_me: failed program was:" >&5
11982 sed 's/^/| /' conftest.$ac_ext >&5
11984 ac_lo=`expr '(' $ac_mid ')' + 1`
11987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11988 done
11989 case $ac_lo in
11990 ?*) ac_cv_sizeof_long_double=$ac_lo;;
11991 '') if test "$ac_cv_type_long_double" = yes; then
11992 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
11993 See \`config.log' for more details." >&5
11994 echo "$as_me: error: cannot compute sizeof (long double)
11995 See \`config.log' for more details." >&2;}
11996 { (exit 77); exit 77; }; }
11997 else
11998 ac_cv_sizeof_long_double=0
11999 fi ;;
12000 esac
12001 else
12002 cat >conftest.$ac_ext <<_ACEOF
12003 /* confdefs.h. */
12004 _ACEOF
12005 cat confdefs.h >>conftest.$ac_ext
12006 cat >>conftest.$ac_ext <<_ACEOF
12007 /* end confdefs.h. */
12008 $ac_includes_default
12009 typedef long double ac__type_sizeof_;
12010 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12011 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12012 #include <stdio.h>
12013 #include <stdlib.h>
12015 main ()
12018 FILE *f = fopen ("conftest.val", "w");
12019 if (! f)
12020 return 1;
12021 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12023 long int i = longval ();
12024 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12025 return 1;
12026 fprintf (f, "%ld\n", i);
12028 else
12030 unsigned long int i = ulongval ();
12031 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12032 return 1;
12033 fprintf (f, "%lu\n", i);
12035 return ferror (f) || fclose (f) != 0;
12038 return 0;
12040 _ACEOF
12041 rm -f conftest$ac_exeext
12042 if { (ac_try="$ac_link"
12043 case "(($ac_try" in
12044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12045 *) ac_try_echo=$ac_try;;
12046 esac
12047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12048 (eval "$ac_link") 2>&5
12049 ac_status=$?
12050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12051 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12052 { (case "(($ac_try" in
12053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12054 *) ac_try_echo=$ac_try;;
12055 esac
12056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12057 (eval "$ac_try") 2>&5
12058 ac_status=$?
12059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12060 (exit $ac_status); }; }; then
12061 ac_cv_sizeof_long_double=`cat conftest.val`
12062 else
12063 echo "$as_me: program exited with status $ac_status" >&5
12064 echo "$as_me: failed program was:" >&5
12065 sed 's/^/| /' conftest.$ac_ext >&5
12067 ( exit $ac_status )
12068 if test "$ac_cv_type_long_double" = yes; then
12069 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
12070 See \`config.log' for more details." >&5
12071 echo "$as_me: error: cannot compute sizeof (long double)
12072 See \`config.log' for more details." >&2;}
12073 { (exit 77); exit 77; }; }
12074 else
12075 ac_cv_sizeof_long_double=0
12078 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12080 rm -f conftest.val
12082 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
12083 echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6; }
12087 cat >>confdefs.h <<_ACEOF
12088 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
12089 _ACEOF
12094 { echo "$as_me:$LINENO: checking for _Bool support" >&5
12095 echo $ECHO_N "checking for _Bool support... $ECHO_C" >&6; }
12096 have_c99_bool=no
12097 cat >conftest.$ac_ext <<_ACEOF
12098 /* confdefs.h. */
12099 _ACEOF
12100 cat confdefs.h >>conftest.$ac_ext
12101 cat >>conftest.$ac_ext <<_ACEOF
12102 /* end confdefs.h. */
12105 main ()
12107 _Bool x; x = (_Bool)0;
12109 return 0;
12111 _ACEOF
12112 rm -f conftest.$ac_objext
12113 if { (ac_try="$ac_compile"
12114 case "(($ac_try" in
12115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12116 *) ac_try_echo=$ac_try;;
12117 esac
12118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12119 (eval "$ac_compile") 2>conftest.er1
12120 ac_status=$?
12121 grep -v '^ *+' conftest.er1 >conftest.err
12122 rm -f conftest.er1
12123 cat conftest.err >&5
12124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12125 (exit $ac_status); } && {
12126 test -z "$ac_c_werror_flag" ||
12127 test ! -s conftest.err
12128 } && test -s conftest.$ac_objext; then
12131 cat >>confdefs.h <<\_ACEOF
12132 #define HAVE_C99_BOOL 1
12133 _ACEOF
12135 have_c99_bool=yes
12137 else
12138 echo "$as_me: failed program was:" >&5
12139 sed 's/^/| /' conftest.$ac_ext >&5
12144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12145 { echo "$as_me:$LINENO: result: $have_c99_bool" >&5
12146 echo "${ECHO_T}$have_c99_bool" >&6; }
12147 if test "$have_c99_bool" = yes ; then
12148 { echo "$as_me:$LINENO: checking for _Bool" >&5
12149 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
12150 if test "${ac_cv_type__Bool+set}" = set; then
12151 echo $ECHO_N "(cached) $ECHO_C" >&6
12152 else
12153 cat >conftest.$ac_ext <<_ACEOF
12154 /* confdefs.h. */
12155 _ACEOF
12156 cat confdefs.h >>conftest.$ac_ext
12157 cat >>conftest.$ac_ext <<_ACEOF
12158 /* end confdefs.h. */
12159 $ac_includes_default
12160 typedef _Bool ac__type_new_;
12162 main ()
12164 if ((ac__type_new_ *) 0)
12165 return 0;
12166 if (sizeof (ac__type_new_))
12167 return 0;
12169 return 0;
12171 _ACEOF
12172 rm -f conftest.$ac_objext
12173 if { (ac_try="$ac_compile"
12174 case "(($ac_try" in
12175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12176 *) ac_try_echo=$ac_try;;
12177 esac
12178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12179 (eval "$ac_compile") 2>conftest.er1
12180 ac_status=$?
12181 grep -v '^ *+' conftest.er1 >conftest.err
12182 rm -f conftest.er1
12183 cat conftest.err >&5
12184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12185 (exit $ac_status); } && {
12186 test -z "$ac_c_werror_flag" ||
12187 test ! -s conftest.err
12188 } && test -s conftest.$ac_objext; then
12189 ac_cv_type__Bool=yes
12190 else
12191 echo "$as_me: failed program was:" >&5
12192 sed 's/^/| /' conftest.$ac_ext >&5
12194 ac_cv_type__Bool=no
12197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12199 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
12200 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
12202 # The cast to long int works around a bug in the HP C Compiler
12203 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12204 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12205 # This bug is HP SR number 8606223364.
12206 { echo "$as_me:$LINENO: checking size of _Bool" >&5
12207 echo $ECHO_N "checking size of _Bool... $ECHO_C" >&6; }
12208 if test "${ac_cv_sizeof__Bool+set}" = set; then
12209 echo $ECHO_N "(cached) $ECHO_C" >&6
12210 else
12211 if test "$cross_compiling" = yes; then
12212 # Depending upon the size, compute the lo and hi bounds.
12213 cat >conftest.$ac_ext <<_ACEOF
12214 /* confdefs.h. */
12215 _ACEOF
12216 cat confdefs.h >>conftest.$ac_ext
12217 cat >>conftest.$ac_ext <<_ACEOF
12218 /* end confdefs.h. */
12219 $ac_includes_default
12220 typedef _Bool ac__type_sizeof_;
12222 main ()
12224 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12225 test_array [0] = 0
12228 return 0;
12230 _ACEOF
12231 rm -f conftest.$ac_objext
12232 if { (ac_try="$ac_compile"
12233 case "(($ac_try" in
12234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12235 *) ac_try_echo=$ac_try;;
12236 esac
12237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12238 (eval "$ac_compile") 2>conftest.er1
12239 ac_status=$?
12240 grep -v '^ *+' conftest.er1 >conftest.err
12241 rm -f conftest.er1
12242 cat conftest.err >&5
12243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12244 (exit $ac_status); } && {
12245 test -z "$ac_c_werror_flag" ||
12246 test ! -s conftest.err
12247 } && test -s conftest.$ac_objext; then
12248 ac_lo=0 ac_mid=0
12249 while :; do
12250 cat >conftest.$ac_ext <<_ACEOF
12251 /* confdefs.h. */
12252 _ACEOF
12253 cat confdefs.h >>conftest.$ac_ext
12254 cat >>conftest.$ac_ext <<_ACEOF
12255 /* end confdefs.h. */
12256 $ac_includes_default
12257 typedef _Bool ac__type_sizeof_;
12259 main ()
12261 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12262 test_array [0] = 0
12265 return 0;
12267 _ACEOF
12268 rm -f conftest.$ac_objext
12269 if { (ac_try="$ac_compile"
12270 case "(($ac_try" in
12271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12272 *) ac_try_echo=$ac_try;;
12273 esac
12274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12275 (eval "$ac_compile") 2>conftest.er1
12276 ac_status=$?
12277 grep -v '^ *+' conftest.er1 >conftest.err
12278 rm -f conftest.er1
12279 cat conftest.err >&5
12280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12281 (exit $ac_status); } && {
12282 test -z "$ac_c_werror_flag" ||
12283 test ! -s conftest.err
12284 } && test -s conftest.$ac_objext; then
12285 ac_hi=$ac_mid; break
12286 else
12287 echo "$as_me: failed program was:" >&5
12288 sed 's/^/| /' conftest.$ac_ext >&5
12290 ac_lo=`expr $ac_mid + 1`
12291 if test $ac_lo -le $ac_mid; then
12292 ac_lo= ac_hi=
12293 break
12295 ac_mid=`expr 2 '*' $ac_mid + 1`
12298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12299 done
12300 else
12301 echo "$as_me: failed program was:" >&5
12302 sed 's/^/| /' conftest.$ac_ext >&5
12304 cat >conftest.$ac_ext <<_ACEOF
12305 /* confdefs.h. */
12306 _ACEOF
12307 cat confdefs.h >>conftest.$ac_ext
12308 cat >>conftest.$ac_ext <<_ACEOF
12309 /* end confdefs.h. */
12310 $ac_includes_default
12311 typedef _Bool ac__type_sizeof_;
12313 main ()
12315 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12316 test_array [0] = 0
12319 return 0;
12321 _ACEOF
12322 rm -f conftest.$ac_objext
12323 if { (ac_try="$ac_compile"
12324 case "(($ac_try" in
12325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12326 *) ac_try_echo=$ac_try;;
12327 esac
12328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12329 (eval "$ac_compile") 2>conftest.er1
12330 ac_status=$?
12331 grep -v '^ *+' conftest.er1 >conftest.err
12332 rm -f conftest.er1
12333 cat conftest.err >&5
12334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12335 (exit $ac_status); } && {
12336 test -z "$ac_c_werror_flag" ||
12337 test ! -s conftest.err
12338 } && test -s conftest.$ac_objext; then
12339 ac_hi=-1 ac_mid=-1
12340 while :; do
12341 cat >conftest.$ac_ext <<_ACEOF
12342 /* confdefs.h. */
12343 _ACEOF
12344 cat confdefs.h >>conftest.$ac_ext
12345 cat >>conftest.$ac_ext <<_ACEOF
12346 /* end confdefs.h. */
12347 $ac_includes_default
12348 typedef _Bool ac__type_sizeof_;
12350 main ()
12352 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12353 test_array [0] = 0
12356 return 0;
12358 _ACEOF
12359 rm -f conftest.$ac_objext
12360 if { (ac_try="$ac_compile"
12361 case "(($ac_try" in
12362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12363 *) ac_try_echo=$ac_try;;
12364 esac
12365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12366 (eval "$ac_compile") 2>conftest.er1
12367 ac_status=$?
12368 grep -v '^ *+' conftest.er1 >conftest.err
12369 rm -f conftest.er1
12370 cat conftest.err >&5
12371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12372 (exit $ac_status); } && {
12373 test -z "$ac_c_werror_flag" ||
12374 test ! -s conftest.err
12375 } && test -s conftest.$ac_objext; then
12376 ac_lo=$ac_mid; break
12377 else
12378 echo "$as_me: failed program was:" >&5
12379 sed 's/^/| /' conftest.$ac_ext >&5
12381 ac_hi=`expr '(' $ac_mid ')' - 1`
12382 if test $ac_mid -le $ac_hi; then
12383 ac_lo= ac_hi=
12384 break
12386 ac_mid=`expr 2 '*' $ac_mid`
12389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12390 done
12391 else
12392 echo "$as_me: failed program was:" >&5
12393 sed 's/^/| /' conftest.$ac_ext >&5
12395 ac_lo= ac_hi=
12398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12402 # Binary search between lo and hi bounds.
12403 while test "x$ac_lo" != "x$ac_hi"; do
12404 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12405 cat >conftest.$ac_ext <<_ACEOF
12406 /* confdefs.h. */
12407 _ACEOF
12408 cat confdefs.h >>conftest.$ac_ext
12409 cat >>conftest.$ac_ext <<_ACEOF
12410 /* end confdefs.h. */
12411 $ac_includes_default
12412 typedef _Bool ac__type_sizeof_;
12414 main ()
12416 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12417 test_array [0] = 0
12420 return 0;
12422 _ACEOF
12423 rm -f conftest.$ac_objext
12424 if { (ac_try="$ac_compile"
12425 case "(($ac_try" in
12426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12427 *) ac_try_echo=$ac_try;;
12428 esac
12429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12430 (eval "$ac_compile") 2>conftest.er1
12431 ac_status=$?
12432 grep -v '^ *+' conftest.er1 >conftest.err
12433 rm -f conftest.er1
12434 cat conftest.err >&5
12435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436 (exit $ac_status); } && {
12437 test -z "$ac_c_werror_flag" ||
12438 test ! -s conftest.err
12439 } && test -s conftest.$ac_objext; then
12440 ac_hi=$ac_mid
12441 else
12442 echo "$as_me: failed program was:" >&5
12443 sed 's/^/| /' conftest.$ac_ext >&5
12445 ac_lo=`expr '(' $ac_mid ')' + 1`
12448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12449 done
12450 case $ac_lo in
12451 ?*) ac_cv_sizeof__Bool=$ac_lo;;
12452 '') if test "$ac_cv_type__Bool" = yes; then
12453 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
12454 See \`config.log' for more details." >&5
12455 echo "$as_me: error: cannot compute sizeof (_Bool)
12456 See \`config.log' for more details." >&2;}
12457 { (exit 77); exit 77; }; }
12458 else
12459 ac_cv_sizeof__Bool=0
12460 fi ;;
12461 esac
12462 else
12463 cat >conftest.$ac_ext <<_ACEOF
12464 /* confdefs.h. */
12465 _ACEOF
12466 cat confdefs.h >>conftest.$ac_ext
12467 cat >>conftest.$ac_ext <<_ACEOF
12468 /* end confdefs.h. */
12469 $ac_includes_default
12470 typedef _Bool ac__type_sizeof_;
12471 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12472 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12473 #include <stdio.h>
12474 #include <stdlib.h>
12476 main ()
12479 FILE *f = fopen ("conftest.val", "w");
12480 if (! f)
12481 return 1;
12482 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12484 long int i = longval ();
12485 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12486 return 1;
12487 fprintf (f, "%ld\n", i);
12489 else
12491 unsigned long int i = ulongval ();
12492 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12493 return 1;
12494 fprintf (f, "%lu\n", i);
12496 return ferror (f) || fclose (f) != 0;
12499 return 0;
12501 _ACEOF
12502 rm -f conftest$ac_exeext
12503 if { (ac_try="$ac_link"
12504 case "(($ac_try" in
12505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12506 *) ac_try_echo=$ac_try;;
12507 esac
12508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12509 (eval "$ac_link") 2>&5
12510 ac_status=$?
12511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12512 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12513 { (case "(($ac_try" in
12514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12515 *) ac_try_echo=$ac_try;;
12516 esac
12517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12518 (eval "$ac_try") 2>&5
12519 ac_status=$?
12520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12521 (exit $ac_status); }; }; then
12522 ac_cv_sizeof__Bool=`cat conftest.val`
12523 else
12524 echo "$as_me: program exited with status $ac_status" >&5
12525 echo "$as_me: failed program was:" >&5
12526 sed 's/^/| /' conftest.$ac_ext >&5
12528 ( exit $ac_status )
12529 if test "$ac_cv_type__Bool" = yes; then
12530 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
12531 See \`config.log' for more details." >&5
12532 echo "$as_me: error: cannot compute sizeof (_Bool)
12533 See \`config.log' for more details." >&2;}
12534 { (exit 77); exit 77; }; }
12535 else
12536 ac_cv_sizeof__Bool=0
12539 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12541 rm -f conftest.val
12543 { echo "$as_me:$LINENO: result: $ac_cv_sizeof__Bool" >&5
12544 echo "${ECHO_T}$ac_cv_sizeof__Bool" >&6; }
12548 cat >>confdefs.h <<_ACEOF
12549 #define SIZEOF__BOOL $ac_cv_sizeof__Bool
12550 _ACEOF
12555 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
12556 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
12557 if test "${ac_cv_type_uintptr_t+set}" = set; then
12558 echo $ECHO_N "(cached) $ECHO_C" >&6
12559 else
12560 cat >conftest.$ac_ext <<_ACEOF
12561 /* confdefs.h. */
12562 _ACEOF
12563 cat confdefs.h >>conftest.$ac_ext
12564 cat >>conftest.$ac_ext <<_ACEOF
12565 /* end confdefs.h. */
12566 #ifdef HAVE_STDINT_H
12567 #include <stdint.h>
12568 #endif
12570 typedef uintptr_t ac__type_new_;
12572 main ()
12574 if ((ac__type_new_ *) 0)
12575 return 0;
12576 if (sizeof (ac__type_new_))
12577 return 0;
12579 return 0;
12581 _ACEOF
12582 rm -f conftest.$ac_objext
12583 if { (ac_try="$ac_compile"
12584 case "(($ac_try" in
12585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12586 *) ac_try_echo=$ac_try;;
12587 esac
12588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12589 (eval "$ac_compile") 2>conftest.er1
12590 ac_status=$?
12591 grep -v '^ *+' conftest.er1 >conftest.err
12592 rm -f conftest.er1
12593 cat conftest.err >&5
12594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12595 (exit $ac_status); } && {
12596 test -z "$ac_c_werror_flag" ||
12597 test ! -s conftest.err
12598 } && test -s conftest.$ac_objext; then
12599 ac_cv_type_uintptr_t=yes
12600 else
12601 echo "$as_me: failed program was:" >&5
12602 sed 's/^/| /' conftest.$ac_ext >&5
12604 ac_cv_type_uintptr_t=no
12607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12609 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12610 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12611 if test $ac_cv_type_uintptr_t = yes; then
12613 cat >>confdefs.h <<_ACEOF
12614 #define HAVE_UINTPTR_T 1
12615 _ACEOF
12617 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
12618 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
12619 if test "${ac_cv_type_uintptr_t+set}" = set; then
12620 echo $ECHO_N "(cached) $ECHO_C" >&6
12621 else
12622 cat >conftest.$ac_ext <<_ACEOF
12623 /* confdefs.h. */
12624 _ACEOF
12625 cat confdefs.h >>conftest.$ac_ext
12626 cat >>conftest.$ac_ext <<_ACEOF
12627 /* end confdefs.h. */
12628 $ac_includes_default
12629 typedef uintptr_t ac__type_new_;
12631 main ()
12633 if ((ac__type_new_ *) 0)
12634 return 0;
12635 if (sizeof (ac__type_new_))
12636 return 0;
12638 return 0;
12640 _ACEOF
12641 rm -f conftest.$ac_objext
12642 if { (ac_try="$ac_compile"
12643 case "(($ac_try" in
12644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12645 *) ac_try_echo=$ac_try;;
12646 esac
12647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12648 (eval "$ac_compile") 2>conftest.er1
12649 ac_status=$?
12650 grep -v '^ *+' conftest.er1 >conftest.err
12651 rm -f conftest.er1
12652 cat conftest.err >&5
12653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12654 (exit $ac_status); } && {
12655 test -z "$ac_c_werror_flag" ||
12656 test ! -s conftest.err
12657 } && test -s conftest.$ac_objext; then
12658 ac_cv_type_uintptr_t=yes
12659 else
12660 echo "$as_me: failed program was:" >&5
12661 sed 's/^/| /' conftest.$ac_ext >&5
12663 ac_cv_type_uintptr_t=no
12666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12668 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12669 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12671 # The cast to long int works around a bug in the HP C Compiler
12672 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12673 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12674 # This bug is HP SR number 8606223364.
12675 { echo "$as_me:$LINENO: checking size of uintptr_t" >&5
12676 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6; }
12677 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
12678 echo $ECHO_N "(cached) $ECHO_C" >&6
12679 else
12680 if test "$cross_compiling" = yes; then
12681 # Depending upon the size, compute the lo and hi bounds.
12682 cat >conftest.$ac_ext <<_ACEOF
12683 /* confdefs.h. */
12684 _ACEOF
12685 cat confdefs.h >>conftest.$ac_ext
12686 cat >>conftest.$ac_ext <<_ACEOF
12687 /* end confdefs.h. */
12688 $ac_includes_default
12689 typedef uintptr_t ac__type_sizeof_;
12691 main ()
12693 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12694 test_array [0] = 0
12697 return 0;
12699 _ACEOF
12700 rm -f conftest.$ac_objext
12701 if { (ac_try="$ac_compile"
12702 case "(($ac_try" in
12703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12704 *) ac_try_echo=$ac_try;;
12705 esac
12706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12707 (eval "$ac_compile") 2>conftest.er1
12708 ac_status=$?
12709 grep -v '^ *+' conftest.er1 >conftest.err
12710 rm -f conftest.er1
12711 cat conftest.err >&5
12712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12713 (exit $ac_status); } && {
12714 test -z "$ac_c_werror_flag" ||
12715 test ! -s conftest.err
12716 } && test -s conftest.$ac_objext; then
12717 ac_lo=0 ac_mid=0
12718 while :; do
12719 cat >conftest.$ac_ext <<_ACEOF
12720 /* confdefs.h. */
12721 _ACEOF
12722 cat confdefs.h >>conftest.$ac_ext
12723 cat >>conftest.$ac_ext <<_ACEOF
12724 /* end confdefs.h. */
12725 $ac_includes_default
12726 typedef uintptr_t ac__type_sizeof_;
12728 main ()
12730 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12731 test_array [0] = 0
12734 return 0;
12736 _ACEOF
12737 rm -f conftest.$ac_objext
12738 if { (ac_try="$ac_compile"
12739 case "(($ac_try" in
12740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12741 *) ac_try_echo=$ac_try;;
12742 esac
12743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12744 (eval "$ac_compile") 2>conftest.er1
12745 ac_status=$?
12746 grep -v '^ *+' conftest.er1 >conftest.err
12747 rm -f conftest.er1
12748 cat conftest.err >&5
12749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12750 (exit $ac_status); } && {
12751 test -z "$ac_c_werror_flag" ||
12752 test ! -s conftest.err
12753 } && test -s conftest.$ac_objext; then
12754 ac_hi=$ac_mid; break
12755 else
12756 echo "$as_me: failed program was:" >&5
12757 sed 's/^/| /' conftest.$ac_ext >&5
12759 ac_lo=`expr $ac_mid + 1`
12760 if test $ac_lo -le $ac_mid; then
12761 ac_lo= ac_hi=
12762 break
12764 ac_mid=`expr 2 '*' $ac_mid + 1`
12767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12768 done
12769 else
12770 echo "$as_me: failed program was:" >&5
12771 sed 's/^/| /' conftest.$ac_ext >&5
12773 cat >conftest.$ac_ext <<_ACEOF
12774 /* confdefs.h. */
12775 _ACEOF
12776 cat confdefs.h >>conftest.$ac_ext
12777 cat >>conftest.$ac_ext <<_ACEOF
12778 /* end confdefs.h. */
12779 $ac_includes_default
12780 typedef uintptr_t ac__type_sizeof_;
12782 main ()
12784 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12785 test_array [0] = 0
12788 return 0;
12790 _ACEOF
12791 rm -f conftest.$ac_objext
12792 if { (ac_try="$ac_compile"
12793 case "(($ac_try" in
12794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12795 *) ac_try_echo=$ac_try;;
12796 esac
12797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12798 (eval "$ac_compile") 2>conftest.er1
12799 ac_status=$?
12800 grep -v '^ *+' conftest.er1 >conftest.err
12801 rm -f conftest.er1
12802 cat conftest.err >&5
12803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12804 (exit $ac_status); } && {
12805 test -z "$ac_c_werror_flag" ||
12806 test ! -s conftest.err
12807 } && test -s conftest.$ac_objext; then
12808 ac_hi=-1 ac_mid=-1
12809 while :; do
12810 cat >conftest.$ac_ext <<_ACEOF
12811 /* confdefs.h. */
12812 _ACEOF
12813 cat confdefs.h >>conftest.$ac_ext
12814 cat >>conftest.$ac_ext <<_ACEOF
12815 /* end confdefs.h. */
12816 $ac_includes_default
12817 typedef uintptr_t ac__type_sizeof_;
12819 main ()
12821 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12822 test_array [0] = 0
12825 return 0;
12827 _ACEOF
12828 rm -f conftest.$ac_objext
12829 if { (ac_try="$ac_compile"
12830 case "(($ac_try" in
12831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12832 *) ac_try_echo=$ac_try;;
12833 esac
12834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12835 (eval "$ac_compile") 2>conftest.er1
12836 ac_status=$?
12837 grep -v '^ *+' conftest.er1 >conftest.err
12838 rm -f conftest.er1
12839 cat conftest.err >&5
12840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12841 (exit $ac_status); } && {
12842 test -z "$ac_c_werror_flag" ||
12843 test ! -s conftest.err
12844 } && test -s conftest.$ac_objext; then
12845 ac_lo=$ac_mid; break
12846 else
12847 echo "$as_me: failed program was:" >&5
12848 sed 's/^/| /' conftest.$ac_ext >&5
12850 ac_hi=`expr '(' $ac_mid ')' - 1`
12851 if test $ac_mid -le $ac_hi; then
12852 ac_lo= ac_hi=
12853 break
12855 ac_mid=`expr 2 '*' $ac_mid`
12858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12859 done
12860 else
12861 echo "$as_me: failed program was:" >&5
12862 sed 's/^/| /' conftest.$ac_ext >&5
12864 ac_lo= ac_hi=
12867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12871 # Binary search between lo and hi bounds.
12872 while test "x$ac_lo" != "x$ac_hi"; do
12873 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12874 cat >conftest.$ac_ext <<_ACEOF
12875 /* confdefs.h. */
12876 _ACEOF
12877 cat confdefs.h >>conftest.$ac_ext
12878 cat >>conftest.$ac_ext <<_ACEOF
12879 /* end confdefs.h. */
12880 $ac_includes_default
12881 typedef uintptr_t ac__type_sizeof_;
12883 main ()
12885 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12886 test_array [0] = 0
12889 return 0;
12891 _ACEOF
12892 rm -f conftest.$ac_objext
12893 if { (ac_try="$ac_compile"
12894 case "(($ac_try" in
12895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12896 *) ac_try_echo=$ac_try;;
12897 esac
12898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12899 (eval "$ac_compile") 2>conftest.er1
12900 ac_status=$?
12901 grep -v '^ *+' conftest.er1 >conftest.err
12902 rm -f conftest.er1
12903 cat conftest.err >&5
12904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12905 (exit $ac_status); } && {
12906 test -z "$ac_c_werror_flag" ||
12907 test ! -s conftest.err
12908 } && test -s conftest.$ac_objext; then
12909 ac_hi=$ac_mid
12910 else
12911 echo "$as_me: failed program was:" >&5
12912 sed 's/^/| /' conftest.$ac_ext >&5
12914 ac_lo=`expr '(' $ac_mid ')' + 1`
12917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12918 done
12919 case $ac_lo in
12920 ?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
12921 '') if test "$ac_cv_type_uintptr_t" = yes; then
12922 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
12923 See \`config.log' for more details." >&5
12924 echo "$as_me: error: cannot compute sizeof (uintptr_t)
12925 See \`config.log' for more details." >&2;}
12926 { (exit 77); exit 77; }; }
12927 else
12928 ac_cv_sizeof_uintptr_t=0
12929 fi ;;
12930 esac
12931 else
12932 cat >conftest.$ac_ext <<_ACEOF
12933 /* confdefs.h. */
12934 _ACEOF
12935 cat confdefs.h >>conftest.$ac_ext
12936 cat >>conftest.$ac_ext <<_ACEOF
12937 /* end confdefs.h. */
12938 $ac_includes_default
12939 typedef uintptr_t ac__type_sizeof_;
12940 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12941 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12942 #include <stdio.h>
12943 #include <stdlib.h>
12945 main ()
12948 FILE *f = fopen ("conftest.val", "w");
12949 if (! f)
12950 return 1;
12951 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12953 long int i = longval ();
12954 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12955 return 1;
12956 fprintf (f, "%ld\n", i);
12958 else
12960 unsigned long int i = ulongval ();
12961 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12962 return 1;
12963 fprintf (f, "%lu\n", i);
12965 return ferror (f) || fclose (f) != 0;
12968 return 0;
12970 _ACEOF
12971 rm -f conftest$ac_exeext
12972 if { (ac_try="$ac_link"
12973 case "(($ac_try" in
12974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12975 *) ac_try_echo=$ac_try;;
12976 esac
12977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12978 (eval "$ac_link") 2>&5
12979 ac_status=$?
12980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12981 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12982 { (case "(($ac_try" in
12983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12984 *) ac_try_echo=$ac_try;;
12985 esac
12986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12987 (eval "$ac_try") 2>&5
12988 ac_status=$?
12989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12990 (exit $ac_status); }; }; then
12991 ac_cv_sizeof_uintptr_t=`cat conftest.val`
12992 else
12993 echo "$as_me: program exited with status $ac_status" >&5
12994 echo "$as_me: failed program was:" >&5
12995 sed 's/^/| /' conftest.$ac_ext >&5
12997 ( exit $ac_status )
12998 if test "$ac_cv_type_uintptr_t" = yes; then
12999 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
13000 See \`config.log' for more details." >&5
13001 echo "$as_me: error: cannot compute sizeof (uintptr_t)
13002 See \`config.log' for more details." >&2;}
13003 { (exit 77); exit 77; }; }
13004 else
13005 ac_cv_sizeof_uintptr_t=0
13008 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13010 rm -f conftest.val
13012 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
13013 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6; }
13017 cat >>confdefs.h <<_ACEOF
13018 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
13019 _ACEOF
13025 { echo "$as_me:$LINENO: checking for off_t" >&5
13026 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
13027 if test "${ac_cv_type_off_t+set}" = set; then
13028 echo $ECHO_N "(cached) $ECHO_C" >&6
13029 else
13030 cat >conftest.$ac_ext <<_ACEOF
13031 /* confdefs.h. */
13032 _ACEOF
13033 cat confdefs.h >>conftest.$ac_ext
13034 cat >>conftest.$ac_ext <<_ACEOF
13035 /* end confdefs.h. */
13037 #ifdef HAVE_SYS_TYPES_H
13038 #include <sys/types.h>
13039 #endif
13042 typedef off_t ac__type_new_;
13044 main ()
13046 if ((ac__type_new_ *) 0)
13047 return 0;
13048 if (sizeof (ac__type_new_))
13049 return 0;
13051 return 0;
13053 _ACEOF
13054 rm -f conftest.$ac_objext
13055 if { (ac_try="$ac_compile"
13056 case "(($ac_try" in
13057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13058 *) ac_try_echo=$ac_try;;
13059 esac
13060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13061 (eval "$ac_compile") 2>conftest.er1
13062 ac_status=$?
13063 grep -v '^ *+' conftest.er1 >conftest.err
13064 rm -f conftest.er1
13065 cat conftest.err >&5
13066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13067 (exit $ac_status); } && {
13068 test -z "$ac_c_werror_flag" ||
13069 test ! -s conftest.err
13070 } && test -s conftest.$ac_objext; then
13071 ac_cv_type_off_t=yes
13072 else
13073 echo "$as_me: failed program was:" >&5
13074 sed 's/^/| /' conftest.$ac_ext >&5
13076 ac_cv_type_off_t=no
13079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13081 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
13082 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
13084 # The cast to long int works around a bug in the HP C Compiler
13085 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13086 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13087 # This bug is HP SR number 8606223364.
13088 { echo "$as_me:$LINENO: checking size of off_t" >&5
13089 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
13090 if test "${ac_cv_sizeof_off_t+set}" = set; then
13091 echo $ECHO_N "(cached) $ECHO_C" >&6
13092 else
13093 if test "$cross_compiling" = yes; then
13094 # Depending upon the size, compute the lo and hi bounds.
13095 cat >conftest.$ac_ext <<_ACEOF
13096 /* confdefs.h. */
13097 _ACEOF
13098 cat confdefs.h >>conftest.$ac_ext
13099 cat >>conftest.$ac_ext <<_ACEOF
13100 /* end confdefs.h. */
13102 #ifdef HAVE_SYS_TYPES_H
13103 #include <sys/types.h>
13104 #endif
13107 typedef off_t ac__type_sizeof_;
13109 main ()
13111 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13112 test_array [0] = 0
13115 return 0;
13117 _ACEOF
13118 rm -f conftest.$ac_objext
13119 if { (ac_try="$ac_compile"
13120 case "(($ac_try" in
13121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13122 *) ac_try_echo=$ac_try;;
13123 esac
13124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13125 (eval "$ac_compile") 2>conftest.er1
13126 ac_status=$?
13127 grep -v '^ *+' conftest.er1 >conftest.err
13128 rm -f conftest.er1
13129 cat conftest.err >&5
13130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13131 (exit $ac_status); } && {
13132 test -z "$ac_c_werror_flag" ||
13133 test ! -s conftest.err
13134 } && test -s conftest.$ac_objext; then
13135 ac_lo=0 ac_mid=0
13136 while :; do
13137 cat >conftest.$ac_ext <<_ACEOF
13138 /* confdefs.h. */
13139 _ACEOF
13140 cat confdefs.h >>conftest.$ac_ext
13141 cat >>conftest.$ac_ext <<_ACEOF
13142 /* end confdefs.h. */
13144 #ifdef HAVE_SYS_TYPES_H
13145 #include <sys/types.h>
13146 #endif
13149 typedef off_t ac__type_sizeof_;
13151 main ()
13153 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13154 test_array [0] = 0
13157 return 0;
13159 _ACEOF
13160 rm -f conftest.$ac_objext
13161 if { (ac_try="$ac_compile"
13162 case "(($ac_try" in
13163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13164 *) ac_try_echo=$ac_try;;
13165 esac
13166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13167 (eval "$ac_compile") 2>conftest.er1
13168 ac_status=$?
13169 grep -v '^ *+' conftest.er1 >conftest.err
13170 rm -f conftest.er1
13171 cat conftest.err >&5
13172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13173 (exit $ac_status); } && {
13174 test -z "$ac_c_werror_flag" ||
13175 test ! -s conftest.err
13176 } && test -s conftest.$ac_objext; then
13177 ac_hi=$ac_mid; break
13178 else
13179 echo "$as_me: failed program was:" >&5
13180 sed 's/^/| /' conftest.$ac_ext >&5
13182 ac_lo=`expr $ac_mid + 1`
13183 if test $ac_lo -le $ac_mid; then
13184 ac_lo= ac_hi=
13185 break
13187 ac_mid=`expr 2 '*' $ac_mid + 1`
13190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13191 done
13192 else
13193 echo "$as_me: failed program was:" >&5
13194 sed 's/^/| /' conftest.$ac_ext >&5
13196 cat >conftest.$ac_ext <<_ACEOF
13197 /* confdefs.h. */
13198 _ACEOF
13199 cat confdefs.h >>conftest.$ac_ext
13200 cat >>conftest.$ac_ext <<_ACEOF
13201 /* end confdefs.h. */
13203 #ifdef HAVE_SYS_TYPES_H
13204 #include <sys/types.h>
13205 #endif
13208 typedef off_t ac__type_sizeof_;
13210 main ()
13212 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13213 test_array [0] = 0
13216 return 0;
13218 _ACEOF
13219 rm -f conftest.$ac_objext
13220 if { (ac_try="$ac_compile"
13221 case "(($ac_try" in
13222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13223 *) ac_try_echo=$ac_try;;
13224 esac
13225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13226 (eval "$ac_compile") 2>conftest.er1
13227 ac_status=$?
13228 grep -v '^ *+' conftest.er1 >conftest.err
13229 rm -f conftest.er1
13230 cat conftest.err >&5
13231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13232 (exit $ac_status); } && {
13233 test -z "$ac_c_werror_flag" ||
13234 test ! -s conftest.err
13235 } && test -s conftest.$ac_objext; then
13236 ac_hi=-1 ac_mid=-1
13237 while :; do
13238 cat >conftest.$ac_ext <<_ACEOF
13239 /* confdefs.h. */
13240 _ACEOF
13241 cat confdefs.h >>conftest.$ac_ext
13242 cat >>conftest.$ac_ext <<_ACEOF
13243 /* end confdefs.h. */
13245 #ifdef HAVE_SYS_TYPES_H
13246 #include <sys/types.h>
13247 #endif
13250 typedef off_t ac__type_sizeof_;
13252 main ()
13254 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13255 test_array [0] = 0
13258 return 0;
13260 _ACEOF
13261 rm -f conftest.$ac_objext
13262 if { (ac_try="$ac_compile"
13263 case "(($ac_try" in
13264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13265 *) ac_try_echo=$ac_try;;
13266 esac
13267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13268 (eval "$ac_compile") 2>conftest.er1
13269 ac_status=$?
13270 grep -v '^ *+' conftest.er1 >conftest.err
13271 rm -f conftest.er1
13272 cat conftest.err >&5
13273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13274 (exit $ac_status); } && {
13275 test -z "$ac_c_werror_flag" ||
13276 test ! -s conftest.err
13277 } && test -s conftest.$ac_objext; then
13278 ac_lo=$ac_mid; break
13279 else
13280 echo "$as_me: failed program was:" >&5
13281 sed 's/^/| /' conftest.$ac_ext >&5
13283 ac_hi=`expr '(' $ac_mid ')' - 1`
13284 if test $ac_mid -le $ac_hi; then
13285 ac_lo= ac_hi=
13286 break
13288 ac_mid=`expr 2 '*' $ac_mid`
13291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13292 done
13293 else
13294 echo "$as_me: failed program was:" >&5
13295 sed 's/^/| /' conftest.$ac_ext >&5
13297 ac_lo= ac_hi=
13300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13304 # Binary search between lo and hi bounds.
13305 while test "x$ac_lo" != "x$ac_hi"; do
13306 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13307 cat >conftest.$ac_ext <<_ACEOF
13308 /* confdefs.h. */
13309 _ACEOF
13310 cat confdefs.h >>conftest.$ac_ext
13311 cat >>conftest.$ac_ext <<_ACEOF
13312 /* end confdefs.h. */
13314 #ifdef HAVE_SYS_TYPES_H
13315 #include <sys/types.h>
13316 #endif
13319 typedef off_t ac__type_sizeof_;
13321 main ()
13323 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13324 test_array [0] = 0
13327 return 0;
13329 _ACEOF
13330 rm -f conftest.$ac_objext
13331 if { (ac_try="$ac_compile"
13332 case "(($ac_try" in
13333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13334 *) ac_try_echo=$ac_try;;
13335 esac
13336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13337 (eval "$ac_compile") 2>conftest.er1
13338 ac_status=$?
13339 grep -v '^ *+' conftest.er1 >conftest.err
13340 rm -f conftest.er1
13341 cat conftest.err >&5
13342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13343 (exit $ac_status); } && {
13344 test -z "$ac_c_werror_flag" ||
13345 test ! -s conftest.err
13346 } && test -s conftest.$ac_objext; then
13347 ac_hi=$ac_mid
13348 else
13349 echo "$as_me: failed program was:" >&5
13350 sed 's/^/| /' conftest.$ac_ext >&5
13352 ac_lo=`expr '(' $ac_mid ')' + 1`
13355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13356 done
13357 case $ac_lo in
13358 ?*) ac_cv_sizeof_off_t=$ac_lo;;
13359 '') if test "$ac_cv_type_off_t" = yes; then
13360 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
13361 See \`config.log' for more details." >&5
13362 echo "$as_me: error: cannot compute sizeof (off_t)
13363 See \`config.log' for more details." >&2;}
13364 { (exit 77); exit 77; }; }
13365 else
13366 ac_cv_sizeof_off_t=0
13367 fi ;;
13368 esac
13369 else
13370 cat >conftest.$ac_ext <<_ACEOF
13371 /* confdefs.h. */
13372 _ACEOF
13373 cat confdefs.h >>conftest.$ac_ext
13374 cat >>conftest.$ac_ext <<_ACEOF
13375 /* end confdefs.h. */
13377 #ifdef HAVE_SYS_TYPES_H
13378 #include <sys/types.h>
13379 #endif
13382 typedef off_t ac__type_sizeof_;
13383 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13384 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13385 #include <stdio.h>
13386 #include <stdlib.h>
13388 main ()
13391 FILE *f = fopen ("conftest.val", "w");
13392 if (! f)
13393 return 1;
13394 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13396 long int i = longval ();
13397 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13398 return 1;
13399 fprintf (f, "%ld\n", i);
13401 else
13403 unsigned long int i = ulongval ();
13404 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13405 return 1;
13406 fprintf (f, "%lu\n", i);
13408 return ferror (f) || fclose (f) != 0;
13411 return 0;
13413 _ACEOF
13414 rm -f conftest$ac_exeext
13415 if { (ac_try="$ac_link"
13416 case "(($ac_try" in
13417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13418 *) ac_try_echo=$ac_try;;
13419 esac
13420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13421 (eval "$ac_link") 2>&5
13422 ac_status=$?
13423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13424 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13425 { (case "(($ac_try" in
13426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13427 *) ac_try_echo=$ac_try;;
13428 esac
13429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13430 (eval "$ac_try") 2>&5
13431 ac_status=$?
13432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13433 (exit $ac_status); }; }; then
13434 ac_cv_sizeof_off_t=`cat conftest.val`
13435 else
13436 echo "$as_me: program exited with status $ac_status" >&5
13437 echo "$as_me: failed program was:" >&5
13438 sed 's/^/| /' conftest.$ac_ext >&5
13440 ( exit $ac_status )
13441 if test "$ac_cv_type_off_t" = yes; then
13442 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
13443 See \`config.log' for more details." >&5
13444 echo "$as_me: error: cannot compute sizeof (off_t)
13445 See \`config.log' for more details." >&2;}
13446 { (exit 77); exit 77; }; }
13447 else
13448 ac_cv_sizeof_off_t=0
13451 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13453 rm -f conftest.val
13455 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
13456 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
13460 cat >>confdefs.h <<_ACEOF
13461 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
13462 _ACEOF
13466 { echo "$as_me:$LINENO: checking whether to enable large file support" >&5
13467 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6; }
13468 if test "$have_long_long" = yes -a \
13469 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
13470 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
13472 cat >>confdefs.h <<\_ACEOF
13473 #define HAVE_LARGEFILE_SUPPORT 1
13474 _ACEOF
13476 { echo "$as_me:$LINENO: result: yes" >&5
13477 echo "${ECHO_T}yes" >&6; }
13478 else
13479 { echo "$as_me:$LINENO: result: no" >&5
13480 echo "${ECHO_T}no" >&6; }
13483 { echo "$as_me:$LINENO: checking for time_t" >&5
13484 echo $ECHO_N "checking for time_t... $ECHO_C" >&6; }
13485 if test "${ac_cv_type_time_t+set}" = set; then
13486 echo $ECHO_N "(cached) $ECHO_C" >&6
13487 else
13488 cat >conftest.$ac_ext <<_ACEOF
13489 /* confdefs.h. */
13490 _ACEOF
13491 cat confdefs.h >>conftest.$ac_ext
13492 cat >>conftest.$ac_ext <<_ACEOF
13493 /* end confdefs.h. */
13495 #ifdef HAVE_SYS_TYPES_H
13496 #include <sys/types.h>
13497 #endif
13498 #ifdef HAVE_TIME_H
13499 #include <time.h>
13500 #endif
13503 typedef time_t ac__type_new_;
13505 main ()
13507 if ((ac__type_new_ *) 0)
13508 return 0;
13509 if (sizeof (ac__type_new_))
13510 return 0;
13512 return 0;
13514 _ACEOF
13515 rm -f conftest.$ac_objext
13516 if { (ac_try="$ac_compile"
13517 case "(($ac_try" in
13518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13519 *) ac_try_echo=$ac_try;;
13520 esac
13521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13522 (eval "$ac_compile") 2>conftest.er1
13523 ac_status=$?
13524 grep -v '^ *+' conftest.er1 >conftest.err
13525 rm -f conftest.er1
13526 cat conftest.err >&5
13527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13528 (exit $ac_status); } && {
13529 test -z "$ac_c_werror_flag" ||
13530 test ! -s conftest.err
13531 } && test -s conftest.$ac_objext; then
13532 ac_cv_type_time_t=yes
13533 else
13534 echo "$as_me: failed program was:" >&5
13535 sed 's/^/| /' conftest.$ac_ext >&5
13537 ac_cv_type_time_t=no
13540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13542 { echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5
13543 echo "${ECHO_T}$ac_cv_type_time_t" >&6; }
13545 # The cast to long int works around a bug in the HP C Compiler
13546 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13547 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13548 # This bug is HP SR number 8606223364.
13549 { echo "$as_me:$LINENO: checking size of time_t" >&5
13550 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6; }
13551 if test "${ac_cv_sizeof_time_t+set}" = set; then
13552 echo $ECHO_N "(cached) $ECHO_C" >&6
13553 else
13554 if test "$cross_compiling" = yes; then
13555 # Depending upon the size, compute the lo and hi bounds.
13556 cat >conftest.$ac_ext <<_ACEOF
13557 /* confdefs.h. */
13558 _ACEOF
13559 cat confdefs.h >>conftest.$ac_ext
13560 cat >>conftest.$ac_ext <<_ACEOF
13561 /* end confdefs.h. */
13563 #ifdef HAVE_SYS_TYPES_H
13564 #include <sys/types.h>
13565 #endif
13566 #ifdef HAVE_TIME_H
13567 #include <time.h>
13568 #endif
13571 typedef time_t ac__type_sizeof_;
13573 main ()
13575 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13576 test_array [0] = 0
13579 return 0;
13581 _ACEOF
13582 rm -f conftest.$ac_objext
13583 if { (ac_try="$ac_compile"
13584 case "(($ac_try" in
13585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13586 *) ac_try_echo=$ac_try;;
13587 esac
13588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13589 (eval "$ac_compile") 2>conftest.er1
13590 ac_status=$?
13591 grep -v '^ *+' conftest.er1 >conftest.err
13592 rm -f conftest.er1
13593 cat conftest.err >&5
13594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13595 (exit $ac_status); } && {
13596 test -z "$ac_c_werror_flag" ||
13597 test ! -s conftest.err
13598 } && test -s conftest.$ac_objext; then
13599 ac_lo=0 ac_mid=0
13600 while :; do
13601 cat >conftest.$ac_ext <<_ACEOF
13602 /* confdefs.h. */
13603 _ACEOF
13604 cat confdefs.h >>conftest.$ac_ext
13605 cat >>conftest.$ac_ext <<_ACEOF
13606 /* end confdefs.h. */
13608 #ifdef HAVE_SYS_TYPES_H
13609 #include <sys/types.h>
13610 #endif
13611 #ifdef HAVE_TIME_H
13612 #include <time.h>
13613 #endif
13616 typedef time_t ac__type_sizeof_;
13618 main ()
13620 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13621 test_array [0] = 0
13624 return 0;
13626 _ACEOF
13627 rm -f conftest.$ac_objext
13628 if { (ac_try="$ac_compile"
13629 case "(($ac_try" in
13630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13631 *) ac_try_echo=$ac_try;;
13632 esac
13633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13634 (eval "$ac_compile") 2>conftest.er1
13635 ac_status=$?
13636 grep -v '^ *+' conftest.er1 >conftest.err
13637 rm -f conftest.er1
13638 cat conftest.err >&5
13639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13640 (exit $ac_status); } && {
13641 test -z "$ac_c_werror_flag" ||
13642 test ! -s conftest.err
13643 } && test -s conftest.$ac_objext; then
13644 ac_hi=$ac_mid; break
13645 else
13646 echo "$as_me: failed program was:" >&5
13647 sed 's/^/| /' conftest.$ac_ext >&5
13649 ac_lo=`expr $ac_mid + 1`
13650 if test $ac_lo -le $ac_mid; then
13651 ac_lo= ac_hi=
13652 break
13654 ac_mid=`expr 2 '*' $ac_mid + 1`
13657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13658 done
13659 else
13660 echo "$as_me: failed program was:" >&5
13661 sed 's/^/| /' conftest.$ac_ext >&5
13663 cat >conftest.$ac_ext <<_ACEOF
13664 /* confdefs.h. */
13665 _ACEOF
13666 cat confdefs.h >>conftest.$ac_ext
13667 cat >>conftest.$ac_ext <<_ACEOF
13668 /* end confdefs.h. */
13670 #ifdef HAVE_SYS_TYPES_H
13671 #include <sys/types.h>
13672 #endif
13673 #ifdef HAVE_TIME_H
13674 #include <time.h>
13675 #endif
13678 typedef time_t ac__type_sizeof_;
13680 main ()
13682 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13683 test_array [0] = 0
13686 return 0;
13688 _ACEOF
13689 rm -f conftest.$ac_objext
13690 if { (ac_try="$ac_compile"
13691 case "(($ac_try" in
13692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13693 *) ac_try_echo=$ac_try;;
13694 esac
13695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13696 (eval "$ac_compile") 2>conftest.er1
13697 ac_status=$?
13698 grep -v '^ *+' conftest.er1 >conftest.err
13699 rm -f conftest.er1
13700 cat conftest.err >&5
13701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702 (exit $ac_status); } && {
13703 test -z "$ac_c_werror_flag" ||
13704 test ! -s conftest.err
13705 } && test -s conftest.$ac_objext; then
13706 ac_hi=-1 ac_mid=-1
13707 while :; do
13708 cat >conftest.$ac_ext <<_ACEOF
13709 /* confdefs.h. */
13710 _ACEOF
13711 cat confdefs.h >>conftest.$ac_ext
13712 cat >>conftest.$ac_ext <<_ACEOF
13713 /* end confdefs.h. */
13715 #ifdef HAVE_SYS_TYPES_H
13716 #include <sys/types.h>
13717 #endif
13718 #ifdef HAVE_TIME_H
13719 #include <time.h>
13720 #endif
13723 typedef time_t ac__type_sizeof_;
13725 main ()
13727 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13728 test_array [0] = 0
13731 return 0;
13733 _ACEOF
13734 rm -f conftest.$ac_objext
13735 if { (ac_try="$ac_compile"
13736 case "(($ac_try" in
13737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13738 *) ac_try_echo=$ac_try;;
13739 esac
13740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13741 (eval "$ac_compile") 2>conftest.er1
13742 ac_status=$?
13743 grep -v '^ *+' conftest.er1 >conftest.err
13744 rm -f conftest.er1
13745 cat conftest.err >&5
13746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13747 (exit $ac_status); } && {
13748 test -z "$ac_c_werror_flag" ||
13749 test ! -s conftest.err
13750 } && test -s conftest.$ac_objext; then
13751 ac_lo=$ac_mid; break
13752 else
13753 echo "$as_me: failed program was:" >&5
13754 sed 's/^/| /' conftest.$ac_ext >&5
13756 ac_hi=`expr '(' $ac_mid ')' - 1`
13757 if test $ac_mid -le $ac_hi; then
13758 ac_lo= ac_hi=
13759 break
13761 ac_mid=`expr 2 '*' $ac_mid`
13764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13765 done
13766 else
13767 echo "$as_me: failed program was:" >&5
13768 sed 's/^/| /' conftest.$ac_ext >&5
13770 ac_lo= ac_hi=
13773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13777 # Binary search between lo and hi bounds.
13778 while test "x$ac_lo" != "x$ac_hi"; do
13779 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13780 cat >conftest.$ac_ext <<_ACEOF
13781 /* confdefs.h. */
13782 _ACEOF
13783 cat confdefs.h >>conftest.$ac_ext
13784 cat >>conftest.$ac_ext <<_ACEOF
13785 /* end confdefs.h. */
13787 #ifdef HAVE_SYS_TYPES_H
13788 #include <sys/types.h>
13789 #endif
13790 #ifdef HAVE_TIME_H
13791 #include <time.h>
13792 #endif
13795 typedef time_t ac__type_sizeof_;
13797 main ()
13799 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13800 test_array [0] = 0
13803 return 0;
13805 _ACEOF
13806 rm -f conftest.$ac_objext
13807 if { (ac_try="$ac_compile"
13808 case "(($ac_try" in
13809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13810 *) ac_try_echo=$ac_try;;
13811 esac
13812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13813 (eval "$ac_compile") 2>conftest.er1
13814 ac_status=$?
13815 grep -v '^ *+' conftest.er1 >conftest.err
13816 rm -f conftest.er1
13817 cat conftest.err >&5
13818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13819 (exit $ac_status); } && {
13820 test -z "$ac_c_werror_flag" ||
13821 test ! -s conftest.err
13822 } && test -s conftest.$ac_objext; then
13823 ac_hi=$ac_mid
13824 else
13825 echo "$as_me: failed program was:" >&5
13826 sed 's/^/| /' conftest.$ac_ext >&5
13828 ac_lo=`expr '(' $ac_mid ')' + 1`
13831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13832 done
13833 case $ac_lo in
13834 ?*) ac_cv_sizeof_time_t=$ac_lo;;
13835 '') if test "$ac_cv_type_time_t" = yes; then
13836 { { echo "$as_me:$LINENO: error: cannot compute sizeof (time_t)
13837 See \`config.log' for more details." >&5
13838 echo "$as_me: error: cannot compute sizeof (time_t)
13839 See \`config.log' for more details." >&2;}
13840 { (exit 77); exit 77; }; }
13841 else
13842 ac_cv_sizeof_time_t=0
13843 fi ;;
13844 esac
13845 else
13846 cat >conftest.$ac_ext <<_ACEOF
13847 /* confdefs.h. */
13848 _ACEOF
13849 cat confdefs.h >>conftest.$ac_ext
13850 cat >>conftest.$ac_ext <<_ACEOF
13851 /* end confdefs.h. */
13853 #ifdef HAVE_SYS_TYPES_H
13854 #include <sys/types.h>
13855 #endif
13856 #ifdef HAVE_TIME_H
13857 #include <time.h>
13858 #endif
13861 typedef time_t ac__type_sizeof_;
13862 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13863 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13864 #include <stdio.h>
13865 #include <stdlib.h>
13867 main ()
13870 FILE *f = fopen ("conftest.val", "w");
13871 if (! f)
13872 return 1;
13873 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13875 long int i = longval ();
13876 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13877 return 1;
13878 fprintf (f, "%ld\n", i);
13880 else
13882 unsigned long int i = ulongval ();
13883 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13884 return 1;
13885 fprintf (f, "%lu\n", i);
13887 return ferror (f) || fclose (f) != 0;
13890 return 0;
13892 _ACEOF
13893 rm -f conftest$ac_exeext
13894 if { (ac_try="$ac_link"
13895 case "(($ac_try" in
13896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13897 *) ac_try_echo=$ac_try;;
13898 esac
13899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13900 (eval "$ac_link") 2>&5
13901 ac_status=$?
13902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13903 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13904 { (case "(($ac_try" in
13905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13906 *) ac_try_echo=$ac_try;;
13907 esac
13908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13909 (eval "$ac_try") 2>&5
13910 ac_status=$?
13911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13912 (exit $ac_status); }; }; then
13913 ac_cv_sizeof_time_t=`cat conftest.val`
13914 else
13915 echo "$as_me: program exited with status $ac_status" >&5
13916 echo "$as_me: failed program was:" >&5
13917 sed 's/^/| /' conftest.$ac_ext >&5
13919 ( exit $ac_status )
13920 if test "$ac_cv_type_time_t" = yes; then
13921 { { echo "$as_me:$LINENO: error: cannot compute sizeof (time_t)
13922 See \`config.log' for more details." >&5
13923 echo "$as_me: error: cannot compute sizeof (time_t)
13924 See \`config.log' for more details." >&2;}
13925 { (exit 77); exit 77; }; }
13926 else
13927 ac_cv_sizeof_time_t=0
13930 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13932 rm -f conftest.val
13934 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
13935 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; }
13939 cat >>confdefs.h <<_ACEOF
13940 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
13941 _ACEOF
13945 # if have pthread_t then define SIZEOF_PTHREAD_T
13946 ac_save_cc="$CC"
13947 if test "$ac_cv_kpthread" = "yes"
13948 then CC="$CC -Kpthread"
13949 elif test "$ac_cv_kthread" = "yes"
13950 then CC="$CC -Kthread"
13951 elif test "$ac_cv_pthread" = "yes"
13952 then CC="$CC -pthread"
13954 { echo "$as_me:$LINENO: checking for pthread_t" >&5
13955 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; }
13956 have_pthread_t=no
13957 cat >conftest.$ac_ext <<_ACEOF
13958 /* confdefs.h. */
13959 _ACEOF
13960 cat confdefs.h >>conftest.$ac_ext
13961 cat >>conftest.$ac_ext <<_ACEOF
13962 /* end confdefs.h. */
13963 #include <pthread.h>
13965 main ()
13967 pthread_t x; x = *(pthread_t*)0;
13969 return 0;
13971 _ACEOF
13972 rm -f conftest.$ac_objext
13973 if { (ac_try="$ac_compile"
13974 case "(($ac_try" in
13975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13976 *) ac_try_echo=$ac_try;;
13977 esac
13978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13979 (eval "$ac_compile") 2>conftest.er1
13980 ac_status=$?
13981 grep -v '^ *+' conftest.er1 >conftest.err
13982 rm -f conftest.er1
13983 cat conftest.err >&5
13984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13985 (exit $ac_status); } && {
13986 test -z "$ac_c_werror_flag" ||
13987 test ! -s conftest.err
13988 } && test -s conftest.$ac_objext; then
13989 have_pthread_t=yes
13990 else
13991 echo "$as_me: failed program was:" >&5
13992 sed 's/^/| /' conftest.$ac_ext >&5
13997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13998 { echo "$as_me:$LINENO: result: $have_pthread_t" >&5
13999 echo "${ECHO_T}$have_pthread_t" >&6; }
14000 if test "$have_pthread_t" = yes ; then
14001 { echo "$as_me:$LINENO: checking for pthread_t" >&5
14002 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; }
14003 if test "${ac_cv_type_pthread_t+set}" = set; then
14004 echo $ECHO_N "(cached) $ECHO_C" >&6
14005 else
14006 cat >conftest.$ac_ext <<_ACEOF
14007 /* confdefs.h. */
14008 _ACEOF
14009 cat confdefs.h >>conftest.$ac_ext
14010 cat >>conftest.$ac_ext <<_ACEOF
14011 /* end confdefs.h. */
14013 #ifdef HAVE_PTHREAD_H
14014 #include <pthread.h>
14015 #endif
14018 typedef pthread_t ac__type_new_;
14020 main ()
14022 if ((ac__type_new_ *) 0)
14023 return 0;
14024 if (sizeof (ac__type_new_))
14025 return 0;
14027 return 0;
14029 _ACEOF
14030 rm -f conftest.$ac_objext
14031 if { (ac_try="$ac_compile"
14032 case "(($ac_try" in
14033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14034 *) ac_try_echo=$ac_try;;
14035 esac
14036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14037 (eval "$ac_compile") 2>conftest.er1
14038 ac_status=$?
14039 grep -v '^ *+' conftest.er1 >conftest.err
14040 rm -f conftest.er1
14041 cat conftest.err >&5
14042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14043 (exit $ac_status); } && {
14044 test -z "$ac_c_werror_flag" ||
14045 test ! -s conftest.err
14046 } && test -s conftest.$ac_objext; then
14047 ac_cv_type_pthread_t=yes
14048 else
14049 echo "$as_me: failed program was:" >&5
14050 sed 's/^/| /' conftest.$ac_ext >&5
14052 ac_cv_type_pthread_t=no
14055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14057 { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_t" >&5
14058 echo "${ECHO_T}$ac_cv_type_pthread_t" >&6; }
14060 # The cast to long int works around a bug in the HP C Compiler
14061 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14062 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14063 # This bug is HP SR number 8606223364.
14064 { echo "$as_me:$LINENO: checking size of pthread_t" >&5
14065 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6; }
14066 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
14067 echo $ECHO_N "(cached) $ECHO_C" >&6
14068 else
14069 if test "$cross_compiling" = yes; then
14070 # Depending upon the size, compute the lo and hi bounds.
14071 cat >conftest.$ac_ext <<_ACEOF
14072 /* confdefs.h. */
14073 _ACEOF
14074 cat confdefs.h >>conftest.$ac_ext
14075 cat >>conftest.$ac_ext <<_ACEOF
14076 /* end confdefs.h. */
14078 #ifdef HAVE_PTHREAD_H
14079 #include <pthread.h>
14080 #endif
14083 typedef pthread_t ac__type_sizeof_;
14085 main ()
14087 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
14088 test_array [0] = 0
14091 return 0;
14093 _ACEOF
14094 rm -f conftest.$ac_objext
14095 if { (ac_try="$ac_compile"
14096 case "(($ac_try" in
14097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14098 *) ac_try_echo=$ac_try;;
14099 esac
14100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14101 (eval "$ac_compile") 2>conftest.er1
14102 ac_status=$?
14103 grep -v '^ *+' conftest.er1 >conftest.err
14104 rm -f conftest.er1
14105 cat conftest.err >&5
14106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107 (exit $ac_status); } && {
14108 test -z "$ac_c_werror_flag" ||
14109 test ! -s conftest.err
14110 } && test -s conftest.$ac_objext; then
14111 ac_lo=0 ac_mid=0
14112 while :; do
14113 cat >conftest.$ac_ext <<_ACEOF
14114 /* confdefs.h. */
14115 _ACEOF
14116 cat confdefs.h >>conftest.$ac_ext
14117 cat >>conftest.$ac_ext <<_ACEOF
14118 /* end confdefs.h. */
14120 #ifdef HAVE_PTHREAD_H
14121 #include <pthread.h>
14122 #endif
14125 typedef pthread_t ac__type_sizeof_;
14127 main ()
14129 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14130 test_array [0] = 0
14133 return 0;
14135 _ACEOF
14136 rm -f conftest.$ac_objext
14137 if { (ac_try="$ac_compile"
14138 case "(($ac_try" in
14139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14140 *) ac_try_echo=$ac_try;;
14141 esac
14142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14143 (eval "$ac_compile") 2>conftest.er1
14144 ac_status=$?
14145 grep -v '^ *+' conftest.er1 >conftest.err
14146 rm -f conftest.er1
14147 cat conftest.err >&5
14148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14149 (exit $ac_status); } && {
14150 test -z "$ac_c_werror_flag" ||
14151 test ! -s conftest.err
14152 } && test -s conftest.$ac_objext; then
14153 ac_hi=$ac_mid; break
14154 else
14155 echo "$as_me: failed program was:" >&5
14156 sed 's/^/| /' conftest.$ac_ext >&5
14158 ac_lo=`expr $ac_mid + 1`
14159 if test $ac_lo -le $ac_mid; then
14160 ac_lo= ac_hi=
14161 break
14163 ac_mid=`expr 2 '*' $ac_mid + 1`
14166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14167 done
14168 else
14169 echo "$as_me: failed program was:" >&5
14170 sed 's/^/| /' conftest.$ac_ext >&5
14172 cat >conftest.$ac_ext <<_ACEOF
14173 /* confdefs.h. */
14174 _ACEOF
14175 cat confdefs.h >>conftest.$ac_ext
14176 cat >>conftest.$ac_ext <<_ACEOF
14177 /* end confdefs.h. */
14179 #ifdef HAVE_PTHREAD_H
14180 #include <pthread.h>
14181 #endif
14184 typedef pthread_t ac__type_sizeof_;
14186 main ()
14188 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
14189 test_array [0] = 0
14192 return 0;
14194 _ACEOF
14195 rm -f conftest.$ac_objext
14196 if { (ac_try="$ac_compile"
14197 case "(($ac_try" in
14198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14199 *) ac_try_echo=$ac_try;;
14200 esac
14201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14202 (eval "$ac_compile") 2>conftest.er1
14203 ac_status=$?
14204 grep -v '^ *+' conftest.er1 >conftest.err
14205 rm -f conftest.er1
14206 cat conftest.err >&5
14207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14208 (exit $ac_status); } && {
14209 test -z "$ac_c_werror_flag" ||
14210 test ! -s conftest.err
14211 } && test -s conftest.$ac_objext; then
14212 ac_hi=-1 ac_mid=-1
14213 while :; do
14214 cat >conftest.$ac_ext <<_ACEOF
14215 /* confdefs.h. */
14216 _ACEOF
14217 cat confdefs.h >>conftest.$ac_ext
14218 cat >>conftest.$ac_ext <<_ACEOF
14219 /* end confdefs.h. */
14221 #ifdef HAVE_PTHREAD_H
14222 #include <pthread.h>
14223 #endif
14226 typedef pthread_t ac__type_sizeof_;
14228 main ()
14230 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
14231 test_array [0] = 0
14234 return 0;
14236 _ACEOF
14237 rm -f conftest.$ac_objext
14238 if { (ac_try="$ac_compile"
14239 case "(($ac_try" in
14240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14241 *) ac_try_echo=$ac_try;;
14242 esac
14243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14244 (eval "$ac_compile") 2>conftest.er1
14245 ac_status=$?
14246 grep -v '^ *+' conftest.er1 >conftest.err
14247 rm -f conftest.er1
14248 cat conftest.err >&5
14249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14250 (exit $ac_status); } && {
14251 test -z "$ac_c_werror_flag" ||
14252 test ! -s conftest.err
14253 } && test -s conftest.$ac_objext; then
14254 ac_lo=$ac_mid; break
14255 else
14256 echo "$as_me: failed program was:" >&5
14257 sed 's/^/| /' conftest.$ac_ext >&5
14259 ac_hi=`expr '(' $ac_mid ')' - 1`
14260 if test $ac_mid -le $ac_hi; then
14261 ac_lo= ac_hi=
14262 break
14264 ac_mid=`expr 2 '*' $ac_mid`
14267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14268 done
14269 else
14270 echo "$as_me: failed program was:" >&5
14271 sed 's/^/| /' conftest.$ac_ext >&5
14273 ac_lo= ac_hi=
14276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14280 # Binary search between lo and hi bounds.
14281 while test "x$ac_lo" != "x$ac_hi"; do
14282 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14283 cat >conftest.$ac_ext <<_ACEOF
14284 /* confdefs.h. */
14285 _ACEOF
14286 cat confdefs.h >>conftest.$ac_ext
14287 cat >>conftest.$ac_ext <<_ACEOF
14288 /* end confdefs.h. */
14290 #ifdef HAVE_PTHREAD_H
14291 #include <pthread.h>
14292 #endif
14295 typedef pthread_t ac__type_sizeof_;
14297 main ()
14299 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14300 test_array [0] = 0
14303 return 0;
14305 _ACEOF
14306 rm -f conftest.$ac_objext
14307 if { (ac_try="$ac_compile"
14308 case "(($ac_try" in
14309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14310 *) ac_try_echo=$ac_try;;
14311 esac
14312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14313 (eval "$ac_compile") 2>conftest.er1
14314 ac_status=$?
14315 grep -v '^ *+' conftest.er1 >conftest.err
14316 rm -f conftest.er1
14317 cat conftest.err >&5
14318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14319 (exit $ac_status); } && {
14320 test -z "$ac_c_werror_flag" ||
14321 test ! -s conftest.err
14322 } && test -s conftest.$ac_objext; then
14323 ac_hi=$ac_mid
14324 else
14325 echo "$as_me: failed program was:" >&5
14326 sed 's/^/| /' conftest.$ac_ext >&5
14328 ac_lo=`expr '(' $ac_mid ')' + 1`
14331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14332 done
14333 case $ac_lo in
14334 ?*) ac_cv_sizeof_pthread_t=$ac_lo;;
14335 '') if test "$ac_cv_type_pthread_t" = yes; then
14336 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pthread_t)
14337 See \`config.log' for more details." >&5
14338 echo "$as_me: error: cannot compute sizeof (pthread_t)
14339 See \`config.log' for more details." >&2;}
14340 { (exit 77); exit 77; }; }
14341 else
14342 ac_cv_sizeof_pthread_t=0
14343 fi ;;
14344 esac
14345 else
14346 cat >conftest.$ac_ext <<_ACEOF
14347 /* confdefs.h. */
14348 _ACEOF
14349 cat confdefs.h >>conftest.$ac_ext
14350 cat >>conftest.$ac_ext <<_ACEOF
14351 /* end confdefs.h. */
14353 #ifdef HAVE_PTHREAD_H
14354 #include <pthread.h>
14355 #endif
14358 typedef pthread_t ac__type_sizeof_;
14359 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
14360 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
14361 #include <stdio.h>
14362 #include <stdlib.h>
14364 main ()
14367 FILE *f = fopen ("conftest.val", "w");
14368 if (! f)
14369 return 1;
14370 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
14372 long int i = longval ();
14373 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14374 return 1;
14375 fprintf (f, "%ld\n", i);
14377 else
14379 unsigned long int i = ulongval ();
14380 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14381 return 1;
14382 fprintf (f, "%lu\n", i);
14384 return ferror (f) || fclose (f) != 0;
14387 return 0;
14389 _ACEOF
14390 rm -f conftest$ac_exeext
14391 if { (ac_try="$ac_link"
14392 case "(($ac_try" in
14393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14394 *) ac_try_echo=$ac_try;;
14395 esac
14396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14397 (eval "$ac_link") 2>&5
14398 ac_status=$?
14399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14400 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14401 { (case "(($ac_try" in
14402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14403 *) ac_try_echo=$ac_try;;
14404 esac
14405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14406 (eval "$ac_try") 2>&5
14407 ac_status=$?
14408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14409 (exit $ac_status); }; }; then
14410 ac_cv_sizeof_pthread_t=`cat conftest.val`
14411 else
14412 echo "$as_me: program exited with status $ac_status" >&5
14413 echo "$as_me: failed program was:" >&5
14414 sed 's/^/| /' conftest.$ac_ext >&5
14416 ( exit $ac_status )
14417 if test "$ac_cv_type_pthread_t" = yes; then
14418 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pthread_t)
14419 See \`config.log' for more details." >&5
14420 echo "$as_me: error: cannot compute sizeof (pthread_t)
14421 See \`config.log' for more details." >&2;}
14422 { (exit 77); exit 77; }; }
14423 else
14424 ac_cv_sizeof_pthread_t=0
14427 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14429 rm -f conftest.val
14431 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
14432 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6; }
14436 cat >>confdefs.h <<_ACEOF
14437 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
14438 _ACEOF
14442 CC="$ac_save_cc"
14444 { echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
14445 echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6; }
14446 # Check whether --enable-toolbox-glue was given.
14447 if test "${enable_toolbox_glue+set}" = set; then
14448 enableval=$enable_toolbox_glue;
14452 if test -z "$enable_toolbox_glue"
14453 then
14454 case $ac_sys_system/$ac_sys_release in
14455 Darwin/*)
14456 enable_toolbox_glue="yes";;
14458 enable_toolbox_glue="no";;
14459 esac
14461 case "$enable_toolbox_glue" in
14462 yes)
14463 extra_machdep_objs="Python/mactoolboxglue.o"
14464 extra_undefs="-u _PyMac_Error"
14466 cat >>confdefs.h <<\_ACEOF
14467 #define USE_TOOLBOX_OBJECT_GLUE 1
14468 _ACEOF
14472 extra_machdep_objs=""
14473 extra_undefs=""
14475 esac
14476 { echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
14477 echo "${ECHO_T}$enable_toolbox_glue" >&6; }
14481 case $ac_sys_system/$ac_sys_release in
14482 Darwin/[01567]\..*)
14483 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
14485 Darwin/*)
14486 OTHER_LIBTOOL_OPT=""
14488 esac
14491 ARCH_RUN_32BIT=""
14493 case $ac_sys_system/$ac_sys_release in
14494 Darwin/[01567]\..*)
14495 LIBTOOL_CRUFT="-framework System -lcc_dynamic"
14496 if test "${enable_universalsdk}"; then
14498 else
14499 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch`"
14501 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
14502 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
14503 Darwin/*)
14504 gcc_version=`gcc -v 2>&1 | grep version | cut -d\ -f3`
14505 if test ${gcc_version} '<' 4.0
14506 then
14507 LIBTOOL_CRUFT="-lcc_dynamic"
14508 else
14509 LIBTOOL_CRUFT=""
14511 if test "$cross_compiling" = yes; then
14512 ac_osx_32bit=yes
14513 else
14514 cat >conftest.$ac_ext <<_ACEOF
14515 /* confdefs.h. */
14516 _ACEOF
14517 cat confdefs.h >>conftest.$ac_ext
14518 cat >>conftest.$ac_ext <<_ACEOF
14519 /* end confdefs.h. */
14521 #include <unistd.h>
14522 int main(int argc, char*argv[])
14524 if (sizeof(long) == 4) {
14525 return 0;
14526 } else {
14527 return 1;
14531 _ACEOF
14532 rm -f conftest$ac_exeext
14533 if { (ac_try="$ac_link"
14534 case "(($ac_try" in
14535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14536 *) ac_try_echo=$ac_try;;
14537 esac
14538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14539 (eval "$ac_link") 2>&5
14540 ac_status=$?
14541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14542 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14543 { (case "(($ac_try" in
14544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14545 *) ac_try_echo=$ac_try;;
14546 esac
14547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14548 (eval "$ac_try") 2>&5
14549 ac_status=$?
14550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14551 (exit $ac_status); }; }; then
14552 ac_osx_32bit=yes
14553 else
14554 echo "$as_me: program exited with status $ac_status" >&5
14555 echo "$as_me: failed program was:" >&5
14556 sed 's/^/| /' conftest.$ac_ext >&5
14558 ( exit $ac_status )
14559 ac_osx_32bit=no
14561 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14566 if test "${ac_osx_32bit}" = "yes"; then
14567 case `arch` in
14568 i386)
14569 MACOSX_DEFAULT_ARCH="i386"
14571 ppc)
14572 MACOSX_DEFAULT_ARCH="ppc"
14575 { { echo "$as_me:$LINENO: error: Unexpected output of 'arch' on OSX" >&5
14576 echo "$as_me: error: Unexpected output of 'arch' on OSX" >&2;}
14577 { (exit 1); exit 1; }; }
14579 esac
14580 else
14581 case `arch` in
14582 i386)
14583 MACOSX_DEFAULT_ARCH="x86_64"
14585 ppc)
14586 MACOSX_DEFAULT_ARCH="ppc64"
14589 { { echo "$as_me:$LINENO: error: Unexpected output of 'arch' on OSX" >&5
14590 echo "$as_me: error: Unexpected output of 'arch' on OSX" >&2;}
14591 { (exit 1); exit 1; }; }
14593 esac
14595 #ARCH_RUN_32BIT="true"
14598 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}"
14599 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
14600 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
14601 esac
14603 { echo "$as_me:$LINENO: checking for --enable-framework" >&5
14604 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6; }
14605 if test "$enable_framework"
14606 then
14607 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
14608 # -F. is needed to allow linking to the framework while
14609 # in the build location.
14611 cat >>confdefs.h <<\_ACEOF
14612 #define WITH_NEXT_FRAMEWORK 1
14613 _ACEOF
14615 { echo "$as_me:$LINENO: result: yes" >&5
14616 echo "${ECHO_T}yes" >&6; }
14617 if test $enable_shared = "yes"
14618 then
14619 { { echo "$as_me:$LINENO: error: Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead. See Mac/README." >&5
14620 echo "$as_me: error: Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead. See Mac/README." >&2;}
14621 { (exit 1); exit 1; }; }
14623 else
14624 { echo "$as_me:$LINENO: result: no" >&5
14625 echo "${ECHO_T}no" >&6; }
14628 { echo "$as_me:$LINENO: checking for dyld" >&5
14629 echo $ECHO_N "checking for dyld... $ECHO_C" >&6; }
14630 case $ac_sys_system/$ac_sys_release in
14631 Darwin/*)
14633 cat >>confdefs.h <<\_ACEOF
14634 #define WITH_DYLD 1
14635 _ACEOF
14637 { echo "$as_me:$LINENO: result: always on for Darwin" >&5
14638 echo "${ECHO_T}always on for Darwin" >&6; }
14641 { echo "$as_me:$LINENO: result: no" >&5
14642 echo "${ECHO_T}no" >&6; }
14644 esac
14646 # Set info about shared libraries.
14652 # SO is the extension of shared libraries `(including the dot!)
14653 # -- usually .so, .sl on HP-UX, .dll on Cygwin
14654 { echo "$as_me:$LINENO: checking SO" >&5
14655 echo $ECHO_N "checking SO... $ECHO_C" >&6; }
14656 if test -z "$SO"
14657 then
14658 case $ac_sys_system in
14659 hp*|HP*)
14660 case `uname -m` in
14661 ia64) SO=.so;;
14662 *) SO=.sl;;
14663 esac
14665 CYGWIN*) SO=.dll;;
14666 *) SO=.so;;
14667 esac
14668 else
14669 # this might also be a termcap variable, see #610332
14670 echo
14671 echo '====================================================================='
14672 echo '+ +'
14673 echo '+ WARNING: You have set SO in your environment. +'
14674 echo '+ Do you really mean to change the extension for shared libraries? +'
14675 echo '+ Continuing in 10 seconds to let you to ponder. +'
14676 echo '+ +'
14677 echo '====================================================================='
14678 sleep 10
14680 { echo "$as_me:$LINENO: result: $SO" >&5
14681 echo "${ECHO_T}$SO" >&6; }
14684 cat >>confdefs.h <<_ACEOF
14685 #define SHLIB_EXT "$SO"
14686 _ACEOF
14688 # LDSHARED is the ld *command* used to create shared library
14689 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
14690 # (Shared libraries in this instance are shared modules to be loaded into
14691 # Python, as opposed to building Python itself as a shared library.)
14692 { echo "$as_me:$LINENO: checking LDSHARED" >&5
14693 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6; }
14694 if test -z "$LDSHARED"
14695 then
14696 case $ac_sys_system/$ac_sys_release in
14697 AIX*)
14698 BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
14699 LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
14701 BeOS*)
14702 BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
14703 LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
14705 IRIX/5*) LDSHARED="ld -shared";;
14706 IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
14707 SunOS/5*)
14708 if test "$GCC" = "yes"
14709 then LDSHARED='$(CC) -shared'
14710 else LDSHARED='$(CC) -G';
14711 fi ;;
14712 hp*|HP*)
14713 if test "$GCC" = "yes"
14714 then LDSHARED='$(CC) -shared'
14715 else LDSHARED='ld -b';
14716 fi ;;
14717 OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
14718 Darwin/1.3*)
14719 LDSHARED='$(CC) $(LDFLAGS) -bundle'
14720 if test "$enable_framework" ; then
14721 # Link against the framework. All externals should be defined.
14722 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
14723 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
14724 else
14725 # No framework. Ignore undefined symbols, assuming they come from Python
14726 LDSHARED="$LDSHARED -undefined suppress"
14727 fi ;;
14728 Darwin/1.4*|Darwin/5.*|Darwin/6.*)
14729 LDSHARED='$(CC) $(LDFLAGS) -bundle'
14730 if test "$enable_framework" ; then
14731 # Link against the framework. All externals should be defined.
14732 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
14733 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
14734 else
14735 # No framework, use the Python app as bundle-loader
14736 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
14737 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
14738 fi ;;
14739 Darwin/*)
14740 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
14741 # This allows an extension to be used in any Python
14743 if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2
14744 then
14745 if test "${enable_universalsdk}"; then
14746 LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
14748 LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
14749 BLDSHARED="$LDSHARED"
14750 else
14751 LDSHARED='$(CC) $(LDFLAGS) -bundle'
14752 if test "$enable_framework" ; then
14753 # Link against the framework. All externals should be defined.
14754 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
14755 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
14756 else
14757 # No framework, use the Python app as bundle-loader
14758 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
14759 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
14763 Linux*|GNU*|QNX*) LDSHARED='$(CC) -shared';;
14764 BSD/OS*/4*) LDSHARED="gcc -shared";;
14765 FreeBSD*)
14766 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
14767 then
14768 LDSHARED="$CC -shared ${LDFLAGS}"
14769 else
14770 LDSHARED="ld -Bshareable ${LDFLAGS}"
14771 fi;;
14772 OpenBSD*)
14773 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
14774 then
14775 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
14776 else
14777 case `uname -r` in
14778 [01].* | 2.[0-7] | 2.[0-7].*)
14779 LDSHARED="ld -Bshareable ${LDFLAGS}"
14782 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
14784 esac
14785 fi;;
14786 NetBSD*|DragonFly*) LDSHARED="cc -shared ${LDFLAGS}";;
14787 OpenUNIX*|UnixWare*)
14788 if test "$GCC" = "yes"
14789 then LDSHARED='$(CC) -shared'
14790 else LDSHARED='$(CC) -G'
14791 fi;;
14792 SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';;
14793 CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";;
14794 atheos*) LDSHARED="gcc -shared";;
14795 *) LDSHARED="ld";;
14796 esac
14798 { echo "$as_me:$LINENO: result: $LDSHARED" >&5
14799 echo "${ECHO_T}$LDSHARED" >&6; }
14800 BLDSHARED=${BLDSHARED-$LDSHARED}
14801 # CCSHARED are the C *flags* used to create objects to go into a shared
14802 # library (module) -- this is only needed for a few systems
14803 { echo "$as_me:$LINENO: checking CCSHARED" >&5
14804 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6; }
14805 if test -z "$CCSHARED"
14806 then
14807 case $ac_sys_system/$ac_sys_release in
14808 SunOS*) if test "$GCC" = yes;
14809 then CCSHARED="-fPIC";
14810 elif test `uname -p` = sparc;
14811 then CCSHARED="-xcode=pic32";
14812 else CCSHARED="-Kpic";
14813 fi;;
14814 hp*|HP*) if test "$GCC" = yes;
14815 then CCSHARED="-fPIC";
14816 else CCSHARED="+z";
14817 fi;;
14818 Linux*|GNU*) CCSHARED="-fPIC";;
14819 BSD/OS*/4*) CCSHARED="-fpic";;
14820 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";;
14821 OpenUNIX*|UnixWare*)
14822 if test "$GCC" = "yes"
14823 then CCSHARED="-fPIC"
14824 else CCSHARED="-KPIC"
14825 fi;;
14826 SCO_SV*)
14827 if test "$GCC" = "yes"
14828 then CCSHARED="-fPIC"
14829 else CCSHARED="-Kpic -belf"
14830 fi;;
14831 IRIX*/6*) case $CC in
14832 *gcc*) CCSHARED="-shared";;
14833 *) CCSHARED="";;
14834 esac;;
14835 atheos*) CCSHARED="-fPIC";;
14836 esac
14838 { echo "$as_me:$LINENO: result: $CCSHARED" >&5
14839 echo "${ECHO_T}$CCSHARED" >&6; }
14840 # LINKFORSHARED are the flags passed to the $(CC) command that links
14841 # the python executable -- this is only needed for a few systems
14842 { echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
14843 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6; }
14844 if test -z "$LINKFORSHARED"
14845 then
14846 case $ac_sys_system/$ac_sys_release in
14847 AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';;
14848 hp*|HP*)
14849 LINKFORSHARED="-Wl,-E -Wl,+s";;
14850 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
14851 BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
14852 Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
14853 # -u libsys_s pulls in all symbols in libsys
14854 Darwin/*)
14855 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
14856 # which is
14857 # not used by the core itself but which needs to be in the core so
14858 # that dynamically loaded extension modules have access to it.
14859 # -prebind is no longer used, because it actually seems to give a
14860 # slowdown in stead of a speedup, maybe due to the large number of
14861 # dynamic loads Python does.
14863 LINKFORSHARED="$extra_undefs"
14864 if test "$enable_framework"
14865 then
14866 LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
14868 LINKFORSHARED="$LINKFORSHARED";;
14869 OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
14870 SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
14871 ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
14872 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*)
14873 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
14874 then
14875 LINKFORSHARED="-Wl,--export-dynamic"
14876 fi;;
14877 SunOS/5*) case $CC in
14878 *gcc*)
14879 if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
14880 then
14881 LINKFORSHARED="-Xlinker --export-dynamic"
14882 fi;;
14883 esac;;
14884 CYGWIN*)
14885 if test $enable_shared = "no"
14886 then
14887 LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)'
14888 fi;;
14889 QNX*)
14890 # -Wl,-E causes the symbols to be added to the dynamic
14891 # symbol table so that they can be found when a module
14892 # is loaded. -N 2048K causes the stack size to be set
14893 # to 2048 kilobytes so that the stack doesn't overflow
14894 # when running test_compile.py.
14895 LINKFORSHARED='-Wl,-E -N 2048K';;
14896 esac
14898 { echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
14899 echo "${ECHO_T}$LINKFORSHARED" >&6; }
14903 { echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
14904 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6; }
14905 if test ! "$LIBRARY" = "$LDLIBRARY"
14906 then
14907 case $ac_sys_system in
14908 CYGWIN*)
14909 # Cygwin needs CCSHARED when building extension DLLs
14910 # but not when building the interpreter DLL.
14911 CFLAGSFORSHARED='';;
14913 CFLAGSFORSHARED='$(CCSHARED)'
14914 esac
14916 { echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
14917 echo "${ECHO_T}$CFLAGSFORSHARED" >&6; }
14919 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
14920 # library (with --enable-shared).
14921 # For platforms on which shared libraries are not allowed to have unresolved
14922 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
14923 # if it is not required, since it creates a dependency of the shared library
14924 # to LIBS. This, in turn, means that applications linking the shared libpython
14925 # don't need to link LIBS explicitly. The default should be only changed
14926 # on systems where this approach causes problems.
14928 { echo "$as_me:$LINENO: checking SHLIBS" >&5
14929 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6; }
14930 case "$ac_sys_system" in
14932 SHLIBS='$(LIBS)';;
14933 esac
14934 { echo "$as_me:$LINENO: result: $SHLIBS" >&5
14935 echo "${ECHO_T}$SHLIBS" >&6; }
14938 # checks for libraries
14940 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14941 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
14942 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14943 echo $ECHO_N "(cached) $ECHO_C" >&6
14944 else
14945 ac_check_lib_save_LIBS=$LIBS
14946 LIBS="-ldl $LIBS"
14947 cat >conftest.$ac_ext <<_ACEOF
14948 /* confdefs.h. */
14949 _ACEOF
14950 cat confdefs.h >>conftest.$ac_ext
14951 cat >>conftest.$ac_ext <<_ACEOF
14952 /* end confdefs.h. */
14954 /* Override any GCC internal prototype to avoid an error.
14955 Use char because int might match the return type of a GCC
14956 builtin and then its argument prototype would still apply. */
14957 #ifdef __cplusplus
14958 extern "C"
14959 #endif
14960 char dlopen ();
14962 main ()
14964 return dlopen ();
14966 return 0;
14968 _ACEOF
14969 rm -f conftest.$ac_objext conftest$ac_exeext
14970 if { (ac_try="$ac_link"
14971 case "(($ac_try" in
14972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14973 *) ac_try_echo=$ac_try;;
14974 esac
14975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14976 (eval "$ac_link") 2>conftest.er1
14977 ac_status=$?
14978 grep -v '^ *+' conftest.er1 >conftest.err
14979 rm -f conftest.er1
14980 cat conftest.err >&5
14981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14982 (exit $ac_status); } && {
14983 test -z "$ac_c_werror_flag" ||
14984 test ! -s conftest.err
14985 } && test -s conftest$ac_exeext &&
14986 $as_test_x conftest$ac_exeext; then
14987 ac_cv_lib_dl_dlopen=yes
14988 else
14989 echo "$as_me: failed program was:" >&5
14990 sed 's/^/| /' conftest.$ac_ext >&5
14992 ac_cv_lib_dl_dlopen=no
14995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14996 conftest$ac_exeext conftest.$ac_ext
14997 LIBS=$ac_check_lib_save_LIBS
14999 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15000 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
15001 if test $ac_cv_lib_dl_dlopen = yes; then
15002 cat >>confdefs.h <<_ACEOF
15003 #define HAVE_LIBDL 1
15004 _ACEOF
15006 LIBS="-ldl $LIBS"
15009 # Dynamic linking for SunOS/Solaris and SYSV
15011 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
15012 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
15013 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
15014 echo $ECHO_N "(cached) $ECHO_C" >&6
15015 else
15016 ac_check_lib_save_LIBS=$LIBS
15017 LIBS="-ldld $LIBS"
15018 cat >conftest.$ac_ext <<_ACEOF
15019 /* confdefs.h. */
15020 _ACEOF
15021 cat confdefs.h >>conftest.$ac_ext
15022 cat >>conftest.$ac_ext <<_ACEOF
15023 /* end confdefs.h. */
15025 /* Override any GCC internal prototype to avoid an error.
15026 Use char because int might match the return type of a GCC
15027 builtin and then its argument prototype would still apply. */
15028 #ifdef __cplusplus
15029 extern "C"
15030 #endif
15031 char shl_load ();
15033 main ()
15035 return shl_load ();
15037 return 0;
15039 _ACEOF
15040 rm -f conftest.$ac_objext conftest$ac_exeext
15041 if { (ac_try="$ac_link"
15042 case "(($ac_try" in
15043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15044 *) ac_try_echo=$ac_try;;
15045 esac
15046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15047 (eval "$ac_link") 2>conftest.er1
15048 ac_status=$?
15049 grep -v '^ *+' conftest.er1 >conftest.err
15050 rm -f conftest.er1
15051 cat conftest.err >&5
15052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15053 (exit $ac_status); } && {
15054 test -z "$ac_c_werror_flag" ||
15055 test ! -s conftest.err
15056 } && test -s conftest$ac_exeext &&
15057 $as_test_x conftest$ac_exeext; then
15058 ac_cv_lib_dld_shl_load=yes
15059 else
15060 echo "$as_me: failed program was:" >&5
15061 sed 's/^/| /' conftest.$ac_ext >&5
15063 ac_cv_lib_dld_shl_load=no
15066 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15067 conftest$ac_exeext conftest.$ac_ext
15068 LIBS=$ac_check_lib_save_LIBS
15070 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
15071 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
15072 if test $ac_cv_lib_dld_shl_load = yes; then
15073 cat >>confdefs.h <<_ACEOF
15074 #define HAVE_LIBDLD 1
15075 _ACEOF
15077 LIBS="-ldld $LIBS"
15080 # Dynamic linking for HP-UX
15082 # only check for sem_init if thread support is requested
15083 if test "$with_threads" = "yes" -o -z "$with_threads"; then
15084 { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
15085 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
15086 if test "${ac_cv_search_sem_init+set}" = set; then
15087 echo $ECHO_N "(cached) $ECHO_C" >&6
15088 else
15089 ac_func_search_save_LIBS=$LIBS
15090 cat >conftest.$ac_ext <<_ACEOF
15091 /* confdefs.h. */
15092 _ACEOF
15093 cat confdefs.h >>conftest.$ac_ext
15094 cat >>conftest.$ac_ext <<_ACEOF
15095 /* end confdefs.h. */
15097 /* Override any GCC internal prototype to avoid an error.
15098 Use char because int might match the return type of a GCC
15099 builtin and then its argument prototype would still apply. */
15100 #ifdef __cplusplus
15101 extern "C"
15102 #endif
15103 char sem_init ();
15105 main ()
15107 return sem_init ();
15109 return 0;
15111 _ACEOF
15112 for ac_lib in '' pthread rt posix4; do
15113 if test -z "$ac_lib"; then
15114 ac_res="none required"
15115 else
15116 ac_res=-l$ac_lib
15117 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15119 rm -f conftest.$ac_objext conftest$ac_exeext
15120 if { (ac_try="$ac_link"
15121 case "(($ac_try" in
15122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15123 *) ac_try_echo=$ac_try;;
15124 esac
15125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15126 (eval "$ac_link") 2>conftest.er1
15127 ac_status=$?
15128 grep -v '^ *+' conftest.er1 >conftest.err
15129 rm -f conftest.er1
15130 cat conftest.err >&5
15131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15132 (exit $ac_status); } && {
15133 test -z "$ac_c_werror_flag" ||
15134 test ! -s conftest.err
15135 } && test -s conftest$ac_exeext &&
15136 $as_test_x conftest$ac_exeext; then
15137 ac_cv_search_sem_init=$ac_res
15138 else
15139 echo "$as_me: failed program was:" >&5
15140 sed 's/^/| /' conftest.$ac_ext >&5
15145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15146 conftest$ac_exeext
15147 if test "${ac_cv_search_sem_init+set}" = set; then
15148 break
15150 done
15151 if test "${ac_cv_search_sem_init+set}" = set; then
15153 else
15154 ac_cv_search_sem_init=no
15156 rm conftest.$ac_ext
15157 LIBS=$ac_func_search_save_LIBS
15159 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
15160 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
15161 ac_res=$ac_cv_search_sem_init
15162 if test "$ac_res" != no; then
15163 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15166 # 'Real Time' functions on Solaris
15167 # posix4 on Solaris 2.6
15168 # pthread (first!) on Linux
15171 # check if we need libintl for locale functions
15172 { echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
15173 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6; }
15174 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
15175 echo $ECHO_N "(cached) $ECHO_C" >&6
15176 else
15177 ac_check_lib_save_LIBS=$LIBS
15178 LIBS="-lintl $LIBS"
15179 cat >conftest.$ac_ext <<_ACEOF
15180 /* confdefs.h. */
15181 _ACEOF
15182 cat confdefs.h >>conftest.$ac_ext
15183 cat >>conftest.$ac_ext <<_ACEOF
15184 /* end confdefs.h. */
15186 /* Override any GCC internal prototype to avoid an error.
15187 Use char because int might match the return type of a GCC
15188 builtin and then its argument prototype would still apply. */
15189 #ifdef __cplusplus
15190 extern "C"
15191 #endif
15192 char textdomain ();
15194 main ()
15196 return textdomain ();
15198 return 0;
15200 _ACEOF
15201 rm -f conftest.$ac_objext conftest$ac_exeext
15202 if { (ac_try="$ac_link"
15203 case "(($ac_try" in
15204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15205 *) ac_try_echo=$ac_try;;
15206 esac
15207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15208 (eval "$ac_link") 2>conftest.er1
15209 ac_status=$?
15210 grep -v '^ *+' conftest.er1 >conftest.err
15211 rm -f conftest.er1
15212 cat conftest.err >&5
15213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15214 (exit $ac_status); } && {
15215 test -z "$ac_c_werror_flag" ||
15216 test ! -s conftest.err
15217 } && test -s conftest$ac_exeext &&
15218 $as_test_x conftest$ac_exeext; then
15219 ac_cv_lib_intl_textdomain=yes
15220 else
15221 echo "$as_me: failed program was:" >&5
15222 sed 's/^/| /' conftest.$ac_ext >&5
15224 ac_cv_lib_intl_textdomain=no
15227 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15228 conftest$ac_exeext conftest.$ac_ext
15229 LIBS=$ac_check_lib_save_LIBS
15231 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
15232 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6; }
15233 if test $ac_cv_lib_intl_textdomain = yes; then
15235 cat >>confdefs.h <<\_ACEOF
15236 #define WITH_LIBINTL 1
15237 _ACEOF
15242 # checks for system dependent C++ extensions support
15243 case "$ac_sys_system" in
15244 AIX*) { echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
15245 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6; }
15246 cat >conftest.$ac_ext <<_ACEOF
15247 /* confdefs.h. */
15248 _ACEOF
15249 cat confdefs.h >>conftest.$ac_ext
15250 cat >>conftest.$ac_ext <<_ACEOF
15251 /* end confdefs.h. */
15252 #include "/usr/lpp/xlC/include/load.h"
15254 main ()
15256 loadAndInit("", 0, "")
15258 return 0;
15260 _ACEOF
15261 rm -f conftest.$ac_objext conftest$ac_exeext
15262 if { (ac_try="$ac_link"
15263 case "(($ac_try" in
15264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15265 *) ac_try_echo=$ac_try;;
15266 esac
15267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15268 (eval "$ac_link") 2>conftest.er1
15269 ac_status=$?
15270 grep -v '^ *+' conftest.er1 >conftest.err
15271 rm -f conftest.er1
15272 cat conftest.err >&5
15273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15274 (exit $ac_status); } && {
15275 test -z "$ac_c_werror_flag" ||
15276 test ! -s conftest.err
15277 } && test -s conftest$ac_exeext &&
15278 $as_test_x conftest$ac_exeext; then
15280 cat >>confdefs.h <<\_ACEOF
15281 #define AIX_GENUINE_CPLUSPLUS 1
15282 _ACEOF
15284 { echo "$as_me:$LINENO: result: yes" >&5
15285 echo "${ECHO_T}yes" >&6; }
15286 else
15287 echo "$as_me: failed program was:" >&5
15288 sed 's/^/| /' conftest.$ac_ext >&5
15290 { echo "$as_me:$LINENO: result: no" >&5
15291 echo "${ECHO_T}no" >&6; }
15294 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15295 conftest$ac_exeext conftest.$ac_ext;;
15296 *) ;;
15297 esac
15299 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
15300 # BeOS' sockets are stashed in libnet.
15301 { echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
15302 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6; }
15303 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
15304 echo $ECHO_N "(cached) $ECHO_C" >&6
15305 else
15306 ac_check_lib_save_LIBS=$LIBS
15307 LIBS="-lnsl $LIBS"
15308 cat >conftest.$ac_ext <<_ACEOF
15309 /* confdefs.h. */
15310 _ACEOF
15311 cat confdefs.h >>conftest.$ac_ext
15312 cat >>conftest.$ac_ext <<_ACEOF
15313 /* end confdefs.h. */
15315 /* Override any GCC internal prototype to avoid an error.
15316 Use char because int might match the return type of a GCC
15317 builtin and then its argument prototype would still apply. */
15318 #ifdef __cplusplus
15319 extern "C"
15320 #endif
15321 char t_open ();
15323 main ()
15325 return t_open ();
15327 return 0;
15329 _ACEOF
15330 rm -f conftest.$ac_objext conftest$ac_exeext
15331 if { (ac_try="$ac_link"
15332 case "(($ac_try" in
15333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15334 *) ac_try_echo=$ac_try;;
15335 esac
15336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15337 (eval "$ac_link") 2>conftest.er1
15338 ac_status=$?
15339 grep -v '^ *+' conftest.er1 >conftest.err
15340 rm -f conftest.er1
15341 cat conftest.err >&5
15342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15343 (exit $ac_status); } && {
15344 test -z "$ac_c_werror_flag" ||
15345 test ! -s conftest.err
15346 } && test -s conftest$ac_exeext &&
15347 $as_test_x conftest$ac_exeext; then
15348 ac_cv_lib_nsl_t_open=yes
15349 else
15350 echo "$as_me: failed program was:" >&5
15351 sed 's/^/| /' conftest.$ac_ext >&5
15353 ac_cv_lib_nsl_t_open=no
15356 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15357 conftest$ac_exeext conftest.$ac_ext
15358 LIBS=$ac_check_lib_save_LIBS
15360 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
15361 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6; }
15362 if test $ac_cv_lib_nsl_t_open = yes; then
15363 LIBS="-lnsl $LIBS"
15365 # SVR4
15366 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15367 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
15368 if test "${ac_cv_lib_socket_socket+set}" = set; then
15369 echo $ECHO_N "(cached) $ECHO_C" >&6
15370 else
15371 ac_check_lib_save_LIBS=$LIBS
15372 LIBS="-lsocket $LIBS $LIBS"
15373 cat >conftest.$ac_ext <<_ACEOF
15374 /* confdefs.h. */
15375 _ACEOF
15376 cat confdefs.h >>conftest.$ac_ext
15377 cat >>conftest.$ac_ext <<_ACEOF
15378 /* end confdefs.h. */
15380 /* Override any GCC internal prototype to avoid an error.
15381 Use char because int might match the return type of a GCC
15382 builtin and then its argument prototype would still apply. */
15383 #ifdef __cplusplus
15384 extern "C"
15385 #endif
15386 char socket ();
15388 main ()
15390 return socket ();
15392 return 0;
15394 _ACEOF
15395 rm -f conftest.$ac_objext conftest$ac_exeext
15396 if { (ac_try="$ac_link"
15397 case "(($ac_try" in
15398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15399 *) ac_try_echo=$ac_try;;
15400 esac
15401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15402 (eval "$ac_link") 2>conftest.er1
15403 ac_status=$?
15404 grep -v '^ *+' conftest.er1 >conftest.err
15405 rm -f conftest.er1
15406 cat conftest.err >&5
15407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15408 (exit $ac_status); } && {
15409 test -z "$ac_c_werror_flag" ||
15410 test ! -s conftest.err
15411 } && test -s conftest$ac_exeext &&
15412 $as_test_x conftest$ac_exeext; then
15413 ac_cv_lib_socket_socket=yes
15414 else
15415 echo "$as_me: failed program was:" >&5
15416 sed 's/^/| /' conftest.$ac_ext >&5
15418 ac_cv_lib_socket_socket=no
15421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15422 conftest$ac_exeext conftest.$ac_ext
15423 LIBS=$ac_check_lib_save_LIBS
15425 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15426 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
15427 if test $ac_cv_lib_socket_socket = yes; then
15428 LIBS="-lsocket $LIBS"
15430 # SVR4 sockets
15432 case "$ac_sys_system" in
15433 BeOS*)
15434 { echo "$as_me:$LINENO: checking for socket in -lnet" >&5
15435 echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6; }
15436 if test "${ac_cv_lib_net_socket+set}" = set; then
15437 echo $ECHO_N "(cached) $ECHO_C" >&6
15438 else
15439 ac_check_lib_save_LIBS=$LIBS
15440 LIBS="-lnet $LIBS $LIBS"
15441 cat >conftest.$ac_ext <<_ACEOF
15442 /* confdefs.h. */
15443 _ACEOF
15444 cat confdefs.h >>conftest.$ac_ext
15445 cat >>conftest.$ac_ext <<_ACEOF
15446 /* end confdefs.h. */
15448 /* Override any GCC internal prototype to avoid an error.
15449 Use char because int might match the return type of a GCC
15450 builtin and then its argument prototype would still apply. */
15451 #ifdef __cplusplus
15452 extern "C"
15453 #endif
15454 char socket ();
15456 main ()
15458 return socket ();
15460 return 0;
15462 _ACEOF
15463 rm -f conftest.$ac_objext conftest$ac_exeext
15464 if { (ac_try="$ac_link"
15465 case "(($ac_try" in
15466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15467 *) ac_try_echo=$ac_try;;
15468 esac
15469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15470 (eval "$ac_link") 2>conftest.er1
15471 ac_status=$?
15472 grep -v '^ *+' conftest.er1 >conftest.err
15473 rm -f conftest.er1
15474 cat conftest.err >&5
15475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15476 (exit $ac_status); } && {
15477 test -z "$ac_c_werror_flag" ||
15478 test ! -s conftest.err
15479 } && test -s conftest$ac_exeext &&
15480 $as_test_x conftest$ac_exeext; then
15481 ac_cv_lib_net_socket=yes
15482 else
15483 echo "$as_me: failed program was:" >&5
15484 sed 's/^/| /' conftest.$ac_ext >&5
15486 ac_cv_lib_net_socket=no
15489 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15490 conftest$ac_exeext conftest.$ac_ext
15491 LIBS=$ac_check_lib_save_LIBS
15493 { echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
15494 echo "${ECHO_T}$ac_cv_lib_net_socket" >&6; }
15495 if test $ac_cv_lib_net_socket = yes; then
15496 LIBS="-lnet $LIBS"
15498 # BeOS
15500 esac
15502 { echo "$as_me:$LINENO: checking for --with-libs" >&5
15503 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6; }
15505 # Check whether --with-libs was given.
15506 if test "${with_libs+set}" = set; then
15507 withval=$with_libs;
15508 { echo "$as_me:$LINENO: result: $withval" >&5
15509 echo "${ECHO_T}$withval" >&6; }
15510 LIBS="$withval $LIBS"
15512 else
15513 { echo "$as_me:$LINENO: result: no" >&5
15514 echo "${ECHO_T}no" >&6; }
15518 # Check for use of the system expat library
15519 { echo "$as_me:$LINENO: checking for --with-system-expat" >&5
15520 echo $ECHO_N "checking for --with-system-expat... $ECHO_C" >&6; }
15522 # Check whether --with-system_expat was given.
15523 if test "${with_system_expat+set}" = set; then
15524 withval=$with_system_expat;
15528 { echo "$as_me:$LINENO: result: $with_system_expat" >&5
15529 echo "${ECHO_T}$with_system_expat" >&6; }
15531 # Check for use of the system libffi library
15532 { echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
15533 echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6; }
15535 # Check whether --with-system_ffi was given.
15536 if test "${with_system_ffi+set}" = set; then
15537 withval=$with_system_ffi;
15541 { echo "$as_me:$LINENO: result: $with_system_ffi" >&5
15542 echo "${ECHO_T}$with_system_ffi" >&6; }
15544 # Check for --with-dbmliborder
15545 { echo "$as_me:$LINENO: checking for --with-dbmliborder" >&5
15546 echo $ECHO_N "checking for --with-dbmliborder... $ECHO_C" >&6; }
15548 # Check whether --with-dbmliborder was given.
15549 if test "${with_dbmliborder+set}" = set; then
15550 withval=$with_dbmliborder;
15551 if test x$with_dbmliborder = xyes
15552 then
15553 { { echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5
15554 echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;}
15555 { (exit 1); exit 1; }; }
15556 else
15557 for db in `echo $with_dbmliborder | sed 's/:/ /g'`; do
15558 if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb
15559 then
15560 { { echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5
15561 echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;}
15562 { (exit 1); exit 1; }; }
15564 done
15568 { echo "$as_me:$LINENO: result: $with_dbmliborder" >&5
15569 echo "${ECHO_T}$with_dbmliborder" >&6; }
15571 # Determine if signalmodule should be used.
15574 { echo "$as_me:$LINENO: checking for --with-signal-module" >&5
15575 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6; }
15577 # Check whether --with-signal-module was given.
15578 if test "${with_signal_module+set}" = set; then
15579 withval=$with_signal_module;
15583 if test -z "$with_signal_module"
15584 then with_signal_module="yes"
15586 { echo "$as_me:$LINENO: result: $with_signal_module" >&5
15587 echo "${ECHO_T}$with_signal_module" >&6; }
15589 if test "${with_signal_module}" = "yes"; then
15590 USE_SIGNAL_MODULE=""
15591 SIGNAL_OBJS=""
15592 else
15593 USE_SIGNAL_MODULE="#"
15594 SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o"
15597 # This is used to generate Setup.config
15599 USE_THREAD_MODULE=""
15601 { echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
15602 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6; }
15605 # Check whether --with-dec-threads was given.
15606 if test "${with_dec_threads+set}" = set; then
15607 withval=$with_dec_threads;
15608 { echo "$as_me:$LINENO: result: $withval" >&5
15609 echo "${ECHO_T}$withval" >&6; }
15610 LDLAST=-threads
15611 if test "${with_thread+set}" != set; then
15612 with_thread="$withval";
15614 else
15615 { echo "$as_me:$LINENO: result: no" >&5
15616 echo "${ECHO_T}no" >&6; }
15620 # Templates for things AC_DEFINEd more than once.
15621 # For a single AC_DEFINE, no template is needed.
15629 { echo "$as_me:$LINENO: checking for --with-threads" >&5
15630 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6; }
15632 # Check whether --with-threads was given.
15633 if test "${with_threads+set}" = set; then
15634 withval=$with_threads;
15638 # --with-thread is deprecated, but check for it anyway
15640 # Check whether --with-thread was given.
15641 if test "${with_thread+set}" = set; then
15642 withval=$with_thread; with_threads=$with_thread
15646 if test -z "$with_threads"
15647 then with_threads="yes"
15649 { echo "$as_me:$LINENO: result: $with_threads" >&5
15650 echo "${ECHO_T}$with_threads" >&6; }
15653 if test "$with_threads" = "no"
15654 then
15655 USE_THREAD_MODULE="#"
15656 elif test "$ac_cv_pthread_is_default" = yes
15657 then
15658 cat >>confdefs.h <<\_ACEOF
15659 #define WITH_THREAD 1
15660 _ACEOF
15662 # Defining _REENTRANT on system with POSIX threads should not hurt.
15663 cat >>confdefs.h <<\_ACEOF
15664 #define _REENTRANT 1
15665 _ACEOF
15667 posix_threads=yes
15668 THREADOBJ="Python/thread.o"
15669 elif test "$ac_cv_kpthread" = "yes"
15670 then
15671 CC="$CC -Kpthread"
15672 if test "$ac_cv_cxx_thread" = "yes"; then
15673 CXX="$CXX -Kpthread"
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_kthread" = "yes"
15682 then
15683 CC="$CC -Kthread"
15684 if test "$ac_cv_cxx_thread" = "yes"; then
15685 CXX="$CXX -Kthread"
15687 cat >>confdefs.h <<\_ACEOF
15688 #define WITH_THREAD 1
15689 _ACEOF
15691 posix_threads=yes
15692 THREADOBJ="Python/thread.o"
15693 elif test "$ac_cv_pthread" = "yes"
15694 then
15695 CC="$CC -pthread"
15696 if test "$ac_cv_cxx_thread" = "yes"; then
15697 CXX="$CXX -pthread"
15699 cat >>confdefs.h <<\_ACEOF
15700 #define WITH_THREAD 1
15701 _ACEOF
15703 posix_threads=yes
15704 THREADOBJ="Python/thread.o"
15705 else
15706 if test ! -z "$with_threads" -a -d "$with_threads"
15707 then LDFLAGS="$LDFLAGS -L$with_threads"
15709 if test ! -z "$withval" -a -d "$withval"
15710 then LDFLAGS="$LDFLAGS -L$withval"
15713 # According to the POSIX spec, a pthreads implementation must
15714 # define _POSIX_THREADS in unistd.h. Some apparently don't
15715 # (e.g. gnu pth with pthread emulation)
15716 { echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
15717 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6; }
15718 cat >conftest.$ac_ext <<_ACEOF
15719 /* confdefs.h. */
15720 _ACEOF
15721 cat confdefs.h >>conftest.$ac_ext
15722 cat >>conftest.$ac_ext <<_ACEOF
15723 /* end confdefs.h. */
15725 #include <unistd.h>
15726 #ifdef _POSIX_THREADS
15728 #endif
15730 _ACEOF
15731 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15732 $EGREP "yes" >/dev/null 2>&1; then
15733 unistd_defines_pthreads=yes
15734 else
15735 unistd_defines_pthreads=no
15737 rm -f conftest*
15739 { echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
15740 echo "${ECHO_T}$unistd_defines_pthreads" >&6; }
15742 cat >>confdefs.h <<\_ACEOF
15743 #define _REENTRANT 1
15744 _ACEOF
15746 if test "${ac_cv_header_cthreads_h+set}" = set; then
15747 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
15748 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
15749 if test "${ac_cv_header_cthreads_h+set}" = set; then
15750 echo $ECHO_N "(cached) $ECHO_C" >&6
15752 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
15753 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
15754 else
15755 # Is the header compilable?
15756 { echo "$as_me:$LINENO: checking cthreads.h usability" >&5
15757 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6; }
15758 cat >conftest.$ac_ext <<_ACEOF
15759 /* confdefs.h. */
15760 _ACEOF
15761 cat confdefs.h >>conftest.$ac_ext
15762 cat >>conftest.$ac_ext <<_ACEOF
15763 /* end confdefs.h. */
15764 $ac_includes_default
15765 #include <cthreads.h>
15766 _ACEOF
15767 rm -f conftest.$ac_objext
15768 if { (ac_try="$ac_compile"
15769 case "(($ac_try" in
15770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15771 *) ac_try_echo=$ac_try;;
15772 esac
15773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15774 (eval "$ac_compile") 2>conftest.er1
15775 ac_status=$?
15776 grep -v '^ *+' conftest.er1 >conftest.err
15777 rm -f conftest.er1
15778 cat conftest.err >&5
15779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15780 (exit $ac_status); } && {
15781 test -z "$ac_c_werror_flag" ||
15782 test ! -s conftest.err
15783 } && test -s conftest.$ac_objext; then
15784 ac_header_compiler=yes
15785 else
15786 echo "$as_me: failed program was:" >&5
15787 sed 's/^/| /' conftest.$ac_ext >&5
15789 ac_header_compiler=no
15792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15793 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15794 echo "${ECHO_T}$ac_header_compiler" >&6; }
15796 # Is the header present?
15797 { echo "$as_me:$LINENO: checking cthreads.h presence" >&5
15798 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6; }
15799 cat >conftest.$ac_ext <<_ACEOF
15800 /* confdefs.h. */
15801 _ACEOF
15802 cat confdefs.h >>conftest.$ac_ext
15803 cat >>conftest.$ac_ext <<_ACEOF
15804 /* end confdefs.h. */
15805 #include <cthreads.h>
15806 _ACEOF
15807 if { (ac_try="$ac_cpp conftest.$ac_ext"
15808 case "(($ac_try" in
15809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15810 *) ac_try_echo=$ac_try;;
15811 esac
15812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15813 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15814 ac_status=$?
15815 grep -v '^ *+' conftest.er1 >conftest.err
15816 rm -f conftest.er1
15817 cat conftest.err >&5
15818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15819 (exit $ac_status); } >/dev/null && {
15820 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15821 test ! -s conftest.err
15822 }; then
15823 ac_header_preproc=yes
15824 else
15825 echo "$as_me: failed program was:" >&5
15826 sed 's/^/| /' conftest.$ac_ext >&5
15828 ac_header_preproc=no
15831 rm -f conftest.err conftest.$ac_ext
15832 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15833 echo "${ECHO_T}$ac_header_preproc" >&6; }
15835 # So? What about this header?
15836 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15837 yes:no: )
15838 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
15839 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15840 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
15841 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
15842 ac_header_preproc=yes
15844 no:yes:* )
15845 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
15846 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
15847 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
15848 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
15849 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
15850 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
15851 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
15852 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
15853 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
15854 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
15855 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
15856 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
15857 ( cat <<\_ASBOX
15858 ## -------------------------------------- ##
15859 ## Report this to http://bugs.python.org/ ##
15860 ## -------------------------------------- ##
15861 _ASBOX
15862 ) | sed "s/^/$as_me: WARNING: /" >&2
15864 esac
15865 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
15866 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
15867 if test "${ac_cv_header_cthreads_h+set}" = set; then
15868 echo $ECHO_N "(cached) $ECHO_C" >&6
15869 else
15870 ac_cv_header_cthreads_h=$ac_header_preproc
15872 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
15873 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
15876 if test $ac_cv_header_cthreads_h = yes; then
15877 cat >>confdefs.h <<\_ACEOF
15878 #define WITH_THREAD 1
15879 _ACEOF
15881 cat >>confdefs.h <<\_ACEOF
15882 #define C_THREADS 1
15883 _ACEOF
15886 cat >>confdefs.h <<\_ACEOF
15887 #define HURD_C_THREADS 1
15888 _ACEOF
15890 LIBS="$LIBS -lthreads"
15891 THREADOBJ="Python/thread.o"
15892 else
15894 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
15895 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
15896 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
15897 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
15898 echo $ECHO_N "(cached) $ECHO_C" >&6
15900 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
15901 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
15902 else
15903 # Is the header compilable?
15904 { echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
15905 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6; }
15906 cat >conftest.$ac_ext <<_ACEOF
15907 /* confdefs.h. */
15908 _ACEOF
15909 cat confdefs.h >>conftest.$ac_ext
15910 cat >>conftest.$ac_ext <<_ACEOF
15911 /* end confdefs.h. */
15912 $ac_includes_default
15913 #include <mach/cthreads.h>
15914 _ACEOF
15915 rm -f conftest.$ac_objext
15916 if { (ac_try="$ac_compile"
15917 case "(($ac_try" in
15918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15919 *) ac_try_echo=$ac_try;;
15920 esac
15921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15922 (eval "$ac_compile") 2>conftest.er1
15923 ac_status=$?
15924 grep -v '^ *+' conftest.er1 >conftest.err
15925 rm -f conftest.er1
15926 cat conftest.err >&5
15927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15928 (exit $ac_status); } && {
15929 test -z "$ac_c_werror_flag" ||
15930 test ! -s conftest.err
15931 } && test -s conftest.$ac_objext; then
15932 ac_header_compiler=yes
15933 else
15934 echo "$as_me: failed program was:" >&5
15935 sed 's/^/| /' conftest.$ac_ext >&5
15937 ac_header_compiler=no
15940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15941 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15942 echo "${ECHO_T}$ac_header_compiler" >&6; }
15944 # Is the header present?
15945 { echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
15946 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6; }
15947 cat >conftest.$ac_ext <<_ACEOF
15948 /* confdefs.h. */
15949 _ACEOF
15950 cat confdefs.h >>conftest.$ac_ext
15951 cat >>conftest.$ac_ext <<_ACEOF
15952 /* end confdefs.h. */
15953 #include <mach/cthreads.h>
15954 _ACEOF
15955 if { (ac_try="$ac_cpp conftest.$ac_ext"
15956 case "(($ac_try" in
15957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15958 *) ac_try_echo=$ac_try;;
15959 esac
15960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15961 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15962 ac_status=$?
15963 grep -v '^ *+' conftest.er1 >conftest.err
15964 rm -f conftest.er1
15965 cat conftest.err >&5
15966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15967 (exit $ac_status); } >/dev/null && {
15968 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15969 test ! -s conftest.err
15970 }; then
15971 ac_header_preproc=yes
15972 else
15973 echo "$as_me: failed program was:" >&5
15974 sed 's/^/| /' conftest.$ac_ext >&5
15976 ac_header_preproc=no
15979 rm -f conftest.err conftest.$ac_ext
15980 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15981 echo "${ECHO_T}$ac_header_preproc" >&6; }
15983 # So? What about this header?
15984 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15985 yes:no: )
15986 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
15987 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15988 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
15989 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
15990 ac_header_preproc=yes
15992 no:yes:* )
15993 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
15994 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
15995 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
15996 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
15997 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
15998 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
15999 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
16000 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
16001 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
16002 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
16003 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
16004 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
16005 ( cat <<\_ASBOX
16006 ## -------------------------------------- ##
16007 ## Report this to http://bugs.python.org/ ##
16008 ## -------------------------------------- ##
16009 _ASBOX
16010 ) | sed "s/^/$as_me: WARNING: /" >&2
16012 esac
16013 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
16014 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
16015 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
16016 echo $ECHO_N "(cached) $ECHO_C" >&6
16017 else
16018 ac_cv_header_mach_cthreads_h=$ac_header_preproc
16020 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
16021 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
16024 if test $ac_cv_header_mach_cthreads_h = yes; then
16025 cat >>confdefs.h <<\_ACEOF
16026 #define WITH_THREAD 1
16027 _ACEOF
16029 cat >>confdefs.h <<\_ACEOF
16030 #define C_THREADS 1
16031 _ACEOF
16034 cat >>confdefs.h <<\_ACEOF
16035 #define MACH_C_THREADS 1
16036 _ACEOF
16038 THREADOBJ="Python/thread.o"
16039 else
16041 { echo "$as_me:$LINENO: checking for --with-pth" >&5
16042 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6; }
16044 # Check whether --with-pth was given.
16045 if test "${with_pth+set}" = set; then
16046 withval=$with_pth; { echo "$as_me:$LINENO: result: $withval" >&5
16047 echo "${ECHO_T}$withval" >&6; }
16048 cat >>confdefs.h <<\_ACEOF
16049 #define WITH_THREAD 1
16050 _ACEOF
16053 cat >>confdefs.h <<\_ACEOF
16054 #define HAVE_PTH 1
16055 _ACEOF
16057 LIBS="-lpth $LIBS"
16058 THREADOBJ="Python/thread.o"
16059 else
16060 { echo "$as_me:$LINENO: result: no" >&5
16061 echo "${ECHO_T}no" >&6; }
16063 # Just looking for pthread_create in libpthread is not enough:
16064 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
16065 # So we really have to include pthread.h, and then link.
16066 _libs=$LIBS
16067 LIBS="$LIBS -lpthread"
16068 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
16069 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
16070 cat >conftest.$ac_ext <<_ACEOF
16071 /* confdefs.h. */
16072 _ACEOF
16073 cat confdefs.h >>conftest.$ac_ext
16074 cat >>conftest.$ac_ext <<_ACEOF
16075 /* end confdefs.h. */
16076 #include <pthread.h>
16078 void * start_routine (void *arg) { exit (0); }
16080 main ()
16083 pthread_create (NULL, NULL, start_routine, NULL)
16085 return 0;
16087 _ACEOF
16088 rm -f conftest.$ac_objext conftest$ac_exeext
16089 if { (ac_try="$ac_link"
16090 case "(($ac_try" in
16091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16092 *) ac_try_echo=$ac_try;;
16093 esac
16094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16095 (eval "$ac_link") 2>conftest.er1
16096 ac_status=$?
16097 grep -v '^ *+' conftest.er1 >conftest.err
16098 rm -f conftest.er1
16099 cat conftest.err >&5
16100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16101 (exit $ac_status); } && {
16102 test -z "$ac_c_werror_flag" ||
16103 test ! -s conftest.err
16104 } && test -s conftest$ac_exeext &&
16105 $as_test_x conftest$ac_exeext; then
16107 { echo "$as_me:$LINENO: result: yes" >&5
16108 echo "${ECHO_T}yes" >&6; }
16109 cat >>confdefs.h <<\_ACEOF
16110 #define WITH_THREAD 1
16111 _ACEOF
16113 posix_threads=yes
16114 THREADOBJ="Python/thread.o"
16115 else
16116 echo "$as_me: failed program was:" >&5
16117 sed 's/^/| /' conftest.$ac_ext >&5
16120 LIBS=$_libs
16121 { echo "$as_me:$LINENO: checking for pthread_detach" >&5
16122 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6; }
16123 if test "${ac_cv_func_pthread_detach+set}" = set; then
16124 echo $ECHO_N "(cached) $ECHO_C" >&6
16125 else
16126 cat >conftest.$ac_ext <<_ACEOF
16127 /* confdefs.h. */
16128 _ACEOF
16129 cat confdefs.h >>conftest.$ac_ext
16130 cat >>conftest.$ac_ext <<_ACEOF
16131 /* end confdefs.h. */
16132 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
16133 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16134 #define pthread_detach innocuous_pthread_detach
16136 /* System header to define __stub macros and hopefully few prototypes,
16137 which can conflict with char pthread_detach (); below.
16138 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16139 <limits.h> exists even on freestanding compilers. */
16141 #ifdef __STDC__
16142 # include <limits.h>
16143 #else
16144 # include <assert.h>
16145 #endif
16147 #undef pthread_detach
16149 /* Override any GCC internal prototype to avoid an error.
16150 Use char because int might match the return type of a GCC
16151 builtin and then its argument prototype would still apply. */
16152 #ifdef __cplusplus
16153 extern "C"
16154 #endif
16155 char pthread_detach ();
16156 /* The GNU C library defines this for functions which it implements
16157 to always fail with ENOSYS. Some functions are actually named
16158 something starting with __ and the normal name is an alias. */
16159 #if defined __stub_pthread_detach || defined __stub___pthread_detach
16160 choke me
16161 #endif
16164 main ()
16166 return pthread_detach ();
16168 return 0;
16170 _ACEOF
16171 rm -f conftest.$ac_objext conftest$ac_exeext
16172 if { (ac_try="$ac_link"
16173 case "(($ac_try" in
16174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16175 *) ac_try_echo=$ac_try;;
16176 esac
16177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16178 (eval "$ac_link") 2>conftest.er1
16179 ac_status=$?
16180 grep -v '^ *+' conftest.er1 >conftest.err
16181 rm -f conftest.er1
16182 cat conftest.err >&5
16183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16184 (exit $ac_status); } && {
16185 test -z "$ac_c_werror_flag" ||
16186 test ! -s conftest.err
16187 } && test -s conftest$ac_exeext &&
16188 $as_test_x conftest$ac_exeext; then
16189 ac_cv_func_pthread_detach=yes
16190 else
16191 echo "$as_me: failed program was:" >&5
16192 sed 's/^/| /' conftest.$ac_ext >&5
16194 ac_cv_func_pthread_detach=no
16197 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16198 conftest$ac_exeext conftest.$ac_ext
16200 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
16201 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6; }
16202 if test $ac_cv_func_pthread_detach = yes; then
16203 cat >>confdefs.h <<\_ACEOF
16204 #define WITH_THREAD 1
16205 _ACEOF
16207 posix_threads=yes
16208 THREADOBJ="Python/thread.o"
16209 else
16211 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
16212 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
16213 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
16214 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
16215 echo $ECHO_N "(cached) $ECHO_C" >&6
16217 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
16218 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
16219 else
16220 # Is the header compilable?
16221 { echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
16222 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6; }
16223 cat >conftest.$ac_ext <<_ACEOF
16224 /* confdefs.h. */
16225 _ACEOF
16226 cat confdefs.h >>conftest.$ac_ext
16227 cat >>conftest.$ac_ext <<_ACEOF
16228 /* end confdefs.h. */
16229 $ac_includes_default
16230 #include <atheos/threads.h>
16231 _ACEOF
16232 rm -f conftest.$ac_objext
16233 if { (ac_try="$ac_compile"
16234 case "(($ac_try" in
16235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16236 *) ac_try_echo=$ac_try;;
16237 esac
16238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16239 (eval "$ac_compile") 2>conftest.er1
16240 ac_status=$?
16241 grep -v '^ *+' conftest.er1 >conftest.err
16242 rm -f conftest.er1
16243 cat conftest.err >&5
16244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16245 (exit $ac_status); } && {
16246 test -z "$ac_c_werror_flag" ||
16247 test ! -s conftest.err
16248 } && test -s conftest.$ac_objext; then
16249 ac_header_compiler=yes
16250 else
16251 echo "$as_me: failed program was:" >&5
16252 sed 's/^/| /' conftest.$ac_ext >&5
16254 ac_header_compiler=no
16257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16258 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16259 echo "${ECHO_T}$ac_header_compiler" >&6; }
16261 # Is the header present?
16262 { echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
16263 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6; }
16264 cat >conftest.$ac_ext <<_ACEOF
16265 /* confdefs.h. */
16266 _ACEOF
16267 cat confdefs.h >>conftest.$ac_ext
16268 cat >>conftest.$ac_ext <<_ACEOF
16269 /* end confdefs.h. */
16270 #include <atheos/threads.h>
16271 _ACEOF
16272 if { (ac_try="$ac_cpp conftest.$ac_ext"
16273 case "(($ac_try" in
16274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16275 *) ac_try_echo=$ac_try;;
16276 esac
16277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16278 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16279 ac_status=$?
16280 grep -v '^ *+' conftest.er1 >conftest.err
16281 rm -f conftest.er1
16282 cat conftest.err >&5
16283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16284 (exit $ac_status); } >/dev/null && {
16285 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16286 test ! -s conftest.err
16287 }; then
16288 ac_header_preproc=yes
16289 else
16290 echo "$as_me: failed program was:" >&5
16291 sed 's/^/| /' conftest.$ac_ext >&5
16293 ac_header_preproc=no
16296 rm -f conftest.err conftest.$ac_ext
16297 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16298 echo "${ECHO_T}$ac_header_preproc" >&6; }
16300 # So? What about this header?
16301 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16302 yes:no: )
16303 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
16304 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16305 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
16306 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
16307 ac_header_preproc=yes
16309 no:yes:* )
16310 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
16311 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
16312 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
16313 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
16314 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
16315 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
16316 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
16317 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
16318 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
16319 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
16320 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
16321 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
16322 ( cat <<\_ASBOX
16323 ## -------------------------------------- ##
16324 ## Report this to http://bugs.python.org/ ##
16325 ## -------------------------------------- ##
16326 _ASBOX
16327 ) | sed "s/^/$as_me: WARNING: /" >&2
16329 esac
16330 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
16331 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
16332 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
16333 echo $ECHO_N "(cached) $ECHO_C" >&6
16334 else
16335 ac_cv_header_atheos_threads_h=$ac_header_preproc
16337 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
16338 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
16341 if test $ac_cv_header_atheos_threads_h = yes; then
16342 cat >>confdefs.h <<\_ACEOF
16343 #define WITH_THREAD 1
16344 _ACEOF
16347 cat >>confdefs.h <<\_ACEOF
16348 #define ATHEOS_THREADS 1
16349 _ACEOF
16351 THREADOBJ="Python/thread.o"
16352 else
16354 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
16355 { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
16356 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
16357 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
16358 echo $ECHO_N "(cached) $ECHO_C" >&6
16360 { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
16361 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
16362 else
16363 # Is the header compilable?
16364 { echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
16365 echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6; }
16366 cat >conftest.$ac_ext <<_ACEOF
16367 /* confdefs.h. */
16368 _ACEOF
16369 cat confdefs.h >>conftest.$ac_ext
16370 cat >>conftest.$ac_ext <<_ACEOF
16371 /* end confdefs.h. */
16372 $ac_includes_default
16373 #include <kernel/OS.h>
16374 _ACEOF
16375 rm -f conftest.$ac_objext
16376 if { (ac_try="$ac_compile"
16377 case "(($ac_try" in
16378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16379 *) ac_try_echo=$ac_try;;
16380 esac
16381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16382 (eval "$ac_compile") 2>conftest.er1
16383 ac_status=$?
16384 grep -v '^ *+' conftest.er1 >conftest.err
16385 rm -f conftest.er1
16386 cat conftest.err >&5
16387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16388 (exit $ac_status); } && {
16389 test -z "$ac_c_werror_flag" ||
16390 test ! -s conftest.err
16391 } && test -s conftest.$ac_objext; then
16392 ac_header_compiler=yes
16393 else
16394 echo "$as_me: failed program was:" >&5
16395 sed 's/^/| /' conftest.$ac_ext >&5
16397 ac_header_compiler=no
16400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16401 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16402 echo "${ECHO_T}$ac_header_compiler" >&6; }
16404 # Is the header present?
16405 { echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
16406 echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6; }
16407 cat >conftest.$ac_ext <<_ACEOF
16408 /* confdefs.h. */
16409 _ACEOF
16410 cat confdefs.h >>conftest.$ac_ext
16411 cat >>conftest.$ac_ext <<_ACEOF
16412 /* end confdefs.h. */
16413 #include <kernel/OS.h>
16414 _ACEOF
16415 if { (ac_try="$ac_cpp conftest.$ac_ext"
16416 case "(($ac_try" in
16417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16418 *) ac_try_echo=$ac_try;;
16419 esac
16420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16421 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16422 ac_status=$?
16423 grep -v '^ *+' conftest.er1 >conftest.err
16424 rm -f conftest.er1
16425 cat conftest.err >&5
16426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16427 (exit $ac_status); } >/dev/null && {
16428 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16429 test ! -s conftest.err
16430 }; then
16431 ac_header_preproc=yes
16432 else
16433 echo "$as_me: failed program was:" >&5
16434 sed 's/^/| /' conftest.$ac_ext >&5
16436 ac_header_preproc=no
16439 rm -f conftest.err conftest.$ac_ext
16440 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16441 echo "${ECHO_T}$ac_header_preproc" >&6; }
16443 # So? What about this header?
16444 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16445 yes:no: )
16446 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
16447 echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16448 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5
16449 echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;}
16450 ac_header_preproc=yes
16452 no:yes:* )
16453 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
16454 echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
16455 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
16456 echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
16457 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5
16458 echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;}
16459 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5
16460 echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;}
16461 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
16462 echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;}
16463 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5
16464 echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;}
16465 ( cat <<\_ASBOX
16466 ## -------------------------------------- ##
16467 ## Report this to http://bugs.python.org/ ##
16468 ## -------------------------------------- ##
16469 _ASBOX
16470 ) | sed "s/^/$as_me: WARNING: /" >&2
16472 esac
16473 { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
16474 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
16475 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
16476 echo $ECHO_N "(cached) $ECHO_C" >&6
16477 else
16478 ac_cv_header_kernel_OS_h=$ac_header_preproc
16480 { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
16481 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
16484 if test $ac_cv_header_kernel_OS_h = yes; then
16485 cat >>confdefs.h <<\_ACEOF
16486 #define WITH_THREAD 1
16487 _ACEOF
16490 cat >>confdefs.h <<\_ACEOF
16491 #define BEOS_THREADS 1
16492 _ACEOF
16494 THREADOBJ="Python/thread.o"
16495 else
16497 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
16498 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
16499 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
16500 echo $ECHO_N "(cached) $ECHO_C" >&6
16501 else
16502 ac_check_lib_save_LIBS=$LIBS
16503 LIBS="-lpthreads $LIBS"
16504 cat >conftest.$ac_ext <<_ACEOF
16505 /* confdefs.h. */
16506 _ACEOF
16507 cat confdefs.h >>conftest.$ac_ext
16508 cat >>conftest.$ac_ext <<_ACEOF
16509 /* end confdefs.h. */
16511 /* Override any GCC internal prototype to avoid an error.
16512 Use char because int might match the return type of a GCC
16513 builtin and then its argument prototype would still apply. */
16514 #ifdef __cplusplus
16515 extern "C"
16516 #endif
16517 char pthread_create ();
16519 main ()
16521 return pthread_create ();
16523 return 0;
16525 _ACEOF
16526 rm -f conftest.$ac_objext conftest$ac_exeext
16527 if { (ac_try="$ac_link"
16528 case "(($ac_try" in
16529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16530 *) ac_try_echo=$ac_try;;
16531 esac
16532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16533 (eval "$ac_link") 2>conftest.er1
16534 ac_status=$?
16535 grep -v '^ *+' conftest.er1 >conftest.err
16536 rm -f conftest.er1
16537 cat conftest.err >&5
16538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16539 (exit $ac_status); } && {
16540 test -z "$ac_c_werror_flag" ||
16541 test ! -s conftest.err
16542 } && test -s conftest$ac_exeext &&
16543 $as_test_x conftest$ac_exeext; then
16544 ac_cv_lib_pthreads_pthread_create=yes
16545 else
16546 echo "$as_me: failed program was:" >&5
16547 sed 's/^/| /' conftest.$ac_ext >&5
16549 ac_cv_lib_pthreads_pthread_create=no
16552 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16553 conftest$ac_exeext conftest.$ac_ext
16554 LIBS=$ac_check_lib_save_LIBS
16556 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
16557 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
16558 if test $ac_cv_lib_pthreads_pthread_create = yes; then
16559 cat >>confdefs.h <<\_ACEOF
16560 #define WITH_THREAD 1
16561 _ACEOF
16563 posix_threads=yes
16564 LIBS="$LIBS -lpthreads"
16565 THREADOBJ="Python/thread.o"
16566 else
16568 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
16569 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
16570 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
16571 echo $ECHO_N "(cached) $ECHO_C" >&6
16572 else
16573 ac_check_lib_save_LIBS=$LIBS
16574 LIBS="-lc_r $LIBS"
16575 cat >conftest.$ac_ext <<_ACEOF
16576 /* confdefs.h. */
16577 _ACEOF
16578 cat confdefs.h >>conftest.$ac_ext
16579 cat >>conftest.$ac_ext <<_ACEOF
16580 /* end confdefs.h. */
16582 /* Override any GCC internal prototype to avoid an error.
16583 Use char because int might match the return type of a GCC
16584 builtin and then its argument prototype would still apply. */
16585 #ifdef __cplusplus
16586 extern "C"
16587 #endif
16588 char pthread_create ();
16590 main ()
16592 return pthread_create ();
16594 return 0;
16596 _ACEOF
16597 rm -f conftest.$ac_objext conftest$ac_exeext
16598 if { (ac_try="$ac_link"
16599 case "(($ac_try" in
16600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16601 *) ac_try_echo=$ac_try;;
16602 esac
16603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16604 (eval "$ac_link") 2>conftest.er1
16605 ac_status=$?
16606 grep -v '^ *+' conftest.er1 >conftest.err
16607 rm -f conftest.er1
16608 cat conftest.err >&5
16609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16610 (exit $ac_status); } && {
16611 test -z "$ac_c_werror_flag" ||
16612 test ! -s conftest.err
16613 } && test -s conftest$ac_exeext &&
16614 $as_test_x conftest$ac_exeext; then
16615 ac_cv_lib_c_r_pthread_create=yes
16616 else
16617 echo "$as_me: failed program was:" >&5
16618 sed 's/^/| /' conftest.$ac_ext >&5
16620 ac_cv_lib_c_r_pthread_create=no
16623 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16624 conftest$ac_exeext conftest.$ac_ext
16625 LIBS=$ac_check_lib_save_LIBS
16627 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
16628 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
16629 if test $ac_cv_lib_c_r_pthread_create = yes; then
16630 cat >>confdefs.h <<\_ACEOF
16631 #define WITH_THREAD 1
16632 _ACEOF
16634 posix_threads=yes
16635 LIBS="$LIBS -lc_r"
16636 THREADOBJ="Python/thread.o"
16637 else
16639 { echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
16640 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6; }
16641 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
16642 echo $ECHO_N "(cached) $ECHO_C" >&6
16643 else
16644 ac_check_lib_save_LIBS=$LIBS
16645 LIBS="-lpthread $LIBS"
16646 cat >conftest.$ac_ext <<_ACEOF
16647 /* confdefs.h. */
16648 _ACEOF
16649 cat confdefs.h >>conftest.$ac_ext
16650 cat >>conftest.$ac_ext <<_ACEOF
16651 /* end confdefs.h. */
16653 /* Override any GCC internal prototype to avoid an error.
16654 Use char because int might match the return type of a GCC
16655 builtin and then its argument prototype would still apply. */
16656 #ifdef __cplusplus
16657 extern "C"
16658 #endif
16659 char __pthread_create_system ();
16661 main ()
16663 return __pthread_create_system ();
16665 return 0;
16667 _ACEOF
16668 rm -f conftest.$ac_objext conftest$ac_exeext
16669 if { (ac_try="$ac_link"
16670 case "(($ac_try" in
16671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16672 *) ac_try_echo=$ac_try;;
16673 esac
16674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16675 (eval "$ac_link") 2>conftest.er1
16676 ac_status=$?
16677 grep -v '^ *+' conftest.er1 >conftest.err
16678 rm -f conftest.er1
16679 cat conftest.err >&5
16680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16681 (exit $ac_status); } && {
16682 test -z "$ac_c_werror_flag" ||
16683 test ! -s conftest.err
16684 } && test -s conftest$ac_exeext &&
16685 $as_test_x conftest$ac_exeext; then
16686 ac_cv_lib_pthread___pthread_create_system=yes
16687 else
16688 echo "$as_me: failed program was:" >&5
16689 sed 's/^/| /' conftest.$ac_ext >&5
16691 ac_cv_lib_pthread___pthread_create_system=no
16694 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16695 conftest$ac_exeext conftest.$ac_ext
16696 LIBS=$ac_check_lib_save_LIBS
16698 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
16699 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6; }
16700 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
16701 cat >>confdefs.h <<\_ACEOF
16702 #define WITH_THREAD 1
16703 _ACEOF
16705 posix_threads=yes
16706 LIBS="$LIBS -lpthread"
16707 THREADOBJ="Python/thread.o"
16708 else
16710 { echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
16711 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6; }
16712 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
16713 echo $ECHO_N "(cached) $ECHO_C" >&6
16714 else
16715 ac_check_lib_save_LIBS=$LIBS
16716 LIBS="-lcma $LIBS"
16717 cat >conftest.$ac_ext <<_ACEOF
16718 /* confdefs.h. */
16719 _ACEOF
16720 cat confdefs.h >>conftest.$ac_ext
16721 cat >>conftest.$ac_ext <<_ACEOF
16722 /* end confdefs.h. */
16724 /* Override any GCC internal prototype to avoid an error.
16725 Use char because int might match the return type of a GCC
16726 builtin and then its argument prototype would still apply. */
16727 #ifdef __cplusplus
16728 extern "C"
16729 #endif
16730 char pthread_create ();
16732 main ()
16734 return pthread_create ();
16736 return 0;
16738 _ACEOF
16739 rm -f conftest.$ac_objext conftest$ac_exeext
16740 if { (ac_try="$ac_link"
16741 case "(($ac_try" in
16742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16743 *) ac_try_echo=$ac_try;;
16744 esac
16745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16746 (eval "$ac_link") 2>conftest.er1
16747 ac_status=$?
16748 grep -v '^ *+' conftest.er1 >conftest.err
16749 rm -f conftest.er1
16750 cat conftest.err >&5
16751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16752 (exit $ac_status); } && {
16753 test -z "$ac_c_werror_flag" ||
16754 test ! -s conftest.err
16755 } && test -s conftest$ac_exeext &&
16756 $as_test_x conftest$ac_exeext; then
16757 ac_cv_lib_cma_pthread_create=yes
16758 else
16759 echo "$as_me: failed program was:" >&5
16760 sed 's/^/| /' conftest.$ac_ext >&5
16762 ac_cv_lib_cma_pthread_create=no
16765 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16766 conftest$ac_exeext conftest.$ac_ext
16767 LIBS=$ac_check_lib_save_LIBS
16769 { echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
16770 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6; }
16771 if test $ac_cv_lib_cma_pthread_create = yes; then
16772 cat >>confdefs.h <<\_ACEOF
16773 #define WITH_THREAD 1
16774 _ACEOF
16776 posix_threads=yes
16777 LIBS="$LIBS -lcma"
16778 THREADOBJ="Python/thread.o"
16779 else
16781 USE_THREAD_MODULE="#"
16801 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16802 conftest$ac_exeext conftest.$ac_ext
16812 { echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
16813 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6; }
16814 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
16815 echo $ECHO_N "(cached) $ECHO_C" >&6
16816 else
16817 ac_check_lib_save_LIBS=$LIBS
16818 LIBS="-lmpc $LIBS"
16819 cat >conftest.$ac_ext <<_ACEOF
16820 /* confdefs.h. */
16821 _ACEOF
16822 cat confdefs.h >>conftest.$ac_ext
16823 cat >>conftest.$ac_ext <<_ACEOF
16824 /* end confdefs.h. */
16826 /* Override any GCC internal prototype to avoid an error.
16827 Use char because int might match the return type of a GCC
16828 builtin and then its argument prototype would still apply. */
16829 #ifdef __cplusplus
16830 extern "C"
16831 #endif
16832 char usconfig ();
16834 main ()
16836 return usconfig ();
16838 return 0;
16840 _ACEOF
16841 rm -f conftest.$ac_objext conftest$ac_exeext
16842 if { (ac_try="$ac_link"
16843 case "(($ac_try" in
16844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16845 *) ac_try_echo=$ac_try;;
16846 esac
16847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16848 (eval "$ac_link") 2>conftest.er1
16849 ac_status=$?
16850 grep -v '^ *+' conftest.er1 >conftest.err
16851 rm -f conftest.er1
16852 cat conftest.err >&5
16853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16854 (exit $ac_status); } && {
16855 test -z "$ac_c_werror_flag" ||
16856 test ! -s conftest.err
16857 } && test -s conftest$ac_exeext &&
16858 $as_test_x conftest$ac_exeext; then
16859 ac_cv_lib_mpc_usconfig=yes
16860 else
16861 echo "$as_me: failed program was:" >&5
16862 sed 's/^/| /' conftest.$ac_ext >&5
16864 ac_cv_lib_mpc_usconfig=no
16867 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16868 conftest$ac_exeext conftest.$ac_ext
16869 LIBS=$ac_check_lib_save_LIBS
16871 { echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
16872 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6; }
16873 if test $ac_cv_lib_mpc_usconfig = yes; then
16874 cat >>confdefs.h <<\_ACEOF
16875 #define WITH_THREAD 1
16876 _ACEOF
16878 LIBS="$LIBS -lmpc"
16879 THREADOBJ="Python/thread.o"
16880 USE_THREAD_MODULE=""
16884 if test "$posix_threads" != "yes"; then
16885 { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
16886 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
16887 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
16888 echo $ECHO_N "(cached) $ECHO_C" >&6
16889 else
16890 ac_check_lib_save_LIBS=$LIBS
16891 LIBS="-lthread $LIBS"
16892 cat >conftest.$ac_ext <<_ACEOF
16893 /* confdefs.h. */
16894 _ACEOF
16895 cat confdefs.h >>conftest.$ac_ext
16896 cat >>conftest.$ac_ext <<_ACEOF
16897 /* end confdefs.h. */
16899 /* Override any GCC internal prototype to avoid an error.
16900 Use char because int might match the return type of a GCC
16901 builtin and then its argument prototype would still apply. */
16902 #ifdef __cplusplus
16903 extern "C"
16904 #endif
16905 char thr_create ();
16907 main ()
16909 return thr_create ();
16911 return 0;
16913 _ACEOF
16914 rm -f conftest.$ac_objext conftest$ac_exeext
16915 if { (ac_try="$ac_link"
16916 case "(($ac_try" in
16917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16918 *) ac_try_echo=$ac_try;;
16919 esac
16920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16921 (eval "$ac_link") 2>conftest.er1
16922 ac_status=$?
16923 grep -v '^ *+' conftest.er1 >conftest.err
16924 rm -f conftest.er1
16925 cat conftest.err >&5
16926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16927 (exit $ac_status); } && {
16928 test -z "$ac_c_werror_flag" ||
16929 test ! -s conftest.err
16930 } && test -s conftest$ac_exeext &&
16931 $as_test_x conftest$ac_exeext; then
16932 ac_cv_lib_thread_thr_create=yes
16933 else
16934 echo "$as_me: failed program was:" >&5
16935 sed 's/^/| /' conftest.$ac_ext >&5
16937 ac_cv_lib_thread_thr_create=no
16940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16941 conftest$ac_exeext conftest.$ac_ext
16942 LIBS=$ac_check_lib_save_LIBS
16944 { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
16945 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
16946 if test $ac_cv_lib_thread_thr_create = yes; then
16947 cat >>confdefs.h <<\_ACEOF
16948 #define WITH_THREAD 1
16949 _ACEOF
16951 LIBS="$LIBS -lthread"
16952 THREADOBJ="Python/thread.o"
16953 USE_THREAD_MODULE=""
16958 if test "$USE_THREAD_MODULE" != "#"
16959 then
16960 # If the above checks didn't disable threads, (at least) OSF1
16961 # needs this '-threads' argument during linking.
16962 case $ac_sys_system in
16963 OSF1) LDLAST=-threads;;
16964 esac
16968 if test "$posix_threads" = "yes"; then
16969 if test "$unistd_defines_pthreads" = "no"; then
16971 cat >>confdefs.h <<\_ACEOF
16972 #define _POSIX_THREADS 1
16973 _ACEOF
16977 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
16978 case $ac_sys_system/$ac_sys_release in
16979 SunOS/5.6)
16980 cat >>confdefs.h <<\_ACEOF
16981 #define HAVE_PTHREAD_DESTRUCTOR 1
16982 _ACEOF
16985 SunOS/5.8)
16986 cat >>confdefs.h <<\_ACEOF
16987 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
16988 _ACEOF
16991 AIX/5)
16992 cat >>confdefs.h <<\_ACEOF
16993 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
16994 _ACEOF
16997 esac
16999 { echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
17000 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6; }
17001 if test "${ac_cv_pthread_system_supported+set}" = set; then
17002 echo $ECHO_N "(cached) $ECHO_C" >&6
17003 else
17004 if test "$cross_compiling" = yes; then
17005 ac_cv_pthread_system_supported=no
17006 else
17007 cat >conftest.$ac_ext <<_ACEOF
17008 /* confdefs.h. */
17009 _ACEOF
17010 cat confdefs.h >>conftest.$ac_ext
17011 cat >>conftest.$ac_ext <<_ACEOF
17012 /* end confdefs.h. */
17013 #include <pthread.h>
17014 void *foo(void *parm) {
17015 return NULL;
17017 main() {
17018 pthread_attr_t attr;
17019 pthread_t id;
17020 if (pthread_attr_init(&attr)) exit(-1);
17021 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
17022 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
17023 exit(0);
17025 _ACEOF
17026 rm -f conftest$ac_exeext
17027 if { (ac_try="$ac_link"
17028 case "(($ac_try" in
17029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17030 *) ac_try_echo=$ac_try;;
17031 esac
17032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17033 (eval "$ac_link") 2>&5
17034 ac_status=$?
17035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17036 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17037 { (case "(($ac_try" in
17038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17039 *) ac_try_echo=$ac_try;;
17040 esac
17041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17042 (eval "$ac_try") 2>&5
17043 ac_status=$?
17044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17045 (exit $ac_status); }; }; then
17046 ac_cv_pthread_system_supported=yes
17047 else
17048 echo "$as_me: program exited with status $ac_status" >&5
17049 echo "$as_me: failed program was:" >&5
17050 sed 's/^/| /' conftest.$ac_ext >&5
17052 ( exit $ac_status )
17053 ac_cv_pthread_system_supported=no
17055 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17062 { echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
17063 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6; }
17064 if test "$ac_cv_pthread_system_supported" = "yes"; then
17066 cat >>confdefs.h <<\_ACEOF
17067 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
17068 _ACEOF
17072 for ac_func in pthread_sigmask
17074 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17075 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17076 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17077 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17078 echo $ECHO_N "(cached) $ECHO_C" >&6
17079 else
17080 cat >conftest.$ac_ext <<_ACEOF
17081 /* confdefs.h. */
17082 _ACEOF
17083 cat confdefs.h >>conftest.$ac_ext
17084 cat >>conftest.$ac_ext <<_ACEOF
17085 /* end confdefs.h. */
17086 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17087 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17088 #define $ac_func innocuous_$ac_func
17090 /* System header to define __stub macros and hopefully few prototypes,
17091 which can conflict with char $ac_func (); below.
17092 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17093 <limits.h> exists even on freestanding compilers. */
17095 #ifdef __STDC__
17096 # include <limits.h>
17097 #else
17098 # include <assert.h>
17099 #endif
17101 #undef $ac_func
17103 /* Override any GCC internal prototype to avoid an error.
17104 Use char because int might match the return type of a GCC
17105 builtin and then its argument prototype would still apply. */
17106 #ifdef __cplusplus
17107 extern "C"
17108 #endif
17109 char $ac_func ();
17110 /* The GNU C library defines this for functions which it implements
17111 to always fail with ENOSYS. Some functions are actually named
17112 something starting with __ and the normal name is an alias. */
17113 #if defined __stub_$ac_func || defined __stub___$ac_func
17114 choke me
17115 #endif
17118 main ()
17120 return $ac_func ();
17122 return 0;
17124 _ACEOF
17125 rm -f conftest.$ac_objext conftest$ac_exeext
17126 if { (ac_try="$ac_link"
17127 case "(($ac_try" in
17128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17129 *) ac_try_echo=$ac_try;;
17130 esac
17131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17132 (eval "$ac_link") 2>conftest.er1
17133 ac_status=$?
17134 grep -v '^ *+' conftest.er1 >conftest.err
17135 rm -f conftest.er1
17136 cat conftest.err >&5
17137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17138 (exit $ac_status); } && {
17139 test -z "$ac_c_werror_flag" ||
17140 test ! -s conftest.err
17141 } && test -s conftest$ac_exeext &&
17142 $as_test_x conftest$ac_exeext; then
17143 eval "$as_ac_var=yes"
17144 else
17145 echo "$as_me: failed program was:" >&5
17146 sed 's/^/| /' conftest.$ac_ext >&5
17148 eval "$as_ac_var=no"
17151 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17152 conftest$ac_exeext conftest.$ac_ext
17154 ac_res=`eval echo '${'$as_ac_var'}'`
17155 { echo "$as_me:$LINENO: result: $ac_res" >&5
17156 echo "${ECHO_T}$ac_res" >&6; }
17157 if test `eval echo '${'$as_ac_var'}'` = yes; then
17158 cat >>confdefs.h <<_ACEOF
17159 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17160 _ACEOF
17161 case $ac_sys_system in
17162 CYGWIN*)
17164 cat >>confdefs.h <<\_ACEOF
17165 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
17166 _ACEOF
17169 esac
17171 done
17176 # Check for enable-ipv6
17179 { echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
17180 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6; }
17181 # Check whether --enable-ipv6 was given.
17182 if test "${enable_ipv6+set}" = set; then
17183 enableval=$enable_ipv6; case "$enableval" in
17185 { echo "$as_me:$LINENO: result: no" >&5
17186 echo "${ECHO_T}no" >&6; }
17187 ipv6=no
17189 *) { echo "$as_me:$LINENO: result: yes" >&5
17190 echo "${ECHO_T}yes" >&6; }
17191 cat >>confdefs.h <<\_ACEOF
17192 #define ENABLE_IPV6 1
17193 _ACEOF
17195 ipv6=yes
17197 esac
17198 else
17200 if test "$cross_compiling" = yes; then
17201 { echo "$as_me:$LINENO: result: no" >&5
17202 echo "${ECHO_T}no" >&6; }
17203 ipv6=no
17205 else
17206 cat >conftest.$ac_ext <<_ACEOF
17207 /* confdefs.h. */
17208 _ACEOF
17209 cat confdefs.h >>conftest.$ac_ext
17210 cat >>conftest.$ac_ext <<_ACEOF
17211 /* end confdefs.h. */
17212 /* AF_INET6 available check */
17213 #include <sys/types.h>
17214 #include <sys/socket.h>
17215 main()
17217 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
17218 exit(1);
17219 else
17220 exit(0);
17223 _ACEOF
17224 rm -f conftest$ac_exeext
17225 if { (ac_try="$ac_link"
17226 case "(($ac_try" in
17227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17228 *) ac_try_echo=$ac_try;;
17229 esac
17230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17231 (eval "$ac_link") 2>&5
17232 ac_status=$?
17233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17234 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17235 { (case "(($ac_try" in
17236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17237 *) ac_try_echo=$ac_try;;
17238 esac
17239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17240 (eval "$ac_try") 2>&5
17241 ac_status=$?
17242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17243 (exit $ac_status); }; }; then
17244 { echo "$as_me:$LINENO: result: yes" >&5
17245 echo "${ECHO_T}yes" >&6; }
17246 ipv6=yes
17247 else
17248 echo "$as_me: program exited with status $ac_status" >&5
17249 echo "$as_me: failed program was:" >&5
17250 sed 's/^/| /' conftest.$ac_ext >&5
17252 ( exit $ac_status )
17253 { echo "$as_me:$LINENO: result: no" >&5
17254 echo "${ECHO_T}no" >&6; }
17255 ipv6=no
17257 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17262 if test "$ipv6" = "yes"; then
17263 { echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
17264 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6; }
17265 cat >conftest.$ac_ext <<_ACEOF
17266 /* confdefs.h. */
17267 _ACEOF
17268 cat confdefs.h >>conftest.$ac_ext
17269 cat >>conftest.$ac_ext <<_ACEOF
17270 /* end confdefs.h. */
17271 #include <sys/types.h>
17272 #include <netinet/in.h>
17274 main ()
17276 struct sockaddr_in6 x;
17277 x.sin6_scope_id;
17279 return 0;
17281 _ACEOF
17282 rm -f conftest.$ac_objext
17283 if { (ac_try="$ac_compile"
17284 case "(($ac_try" in
17285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17286 *) ac_try_echo=$ac_try;;
17287 esac
17288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17289 (eval "$ac_compile") 2>conftest.er1
17290 ac_status=$?
17291 grep -v '^ *+' conftest.er1 >conftest.err
17292 rm -f conftest.er1
17293 cat conftest.err >&5
17294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17295 (exit $ac_status); } && {
17296 test -z "$ac_c_werror_flag" ||
17297 test ! -s conftest.err
17298 } && test -s conftest.$ac_objext; then
17299 { echo "$as_me:$LINENO: result: yes" >&5
17300 echo "${ECHO_T}yes" >&6; }
17301 ipv6=yes
17302 else
17303 echo "$as_me: failed program was:" >&5
17304 sed 's/^/| /' conftest.$ac_ext >&5
17306 { echo "$as_me:$LINENO: result: no" >&5
17307 echo "${ECHO_T}no" >&6; }
17308 ipv6=no
17311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17314 if test "$ipv6" = "yes"; then
17315 cat >>confdefs.h <<\_ACEOF
17316 #define ENABLE_IPV6 1
17317 _ACEOF
17324 ipv6type=unknown
17325 ipv6lib=none
17326 ipv6trylibc=no
17328 if test "$ipv6" = "yes"; then
17329 { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
17330 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
17331 for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
17333 case $i in
17334 inria)
17335 cat >conftest.$ac_ext <<_ACEOF
17336 /* confdefs.h. */
17337 _ACEOF
17338 cat confdefs.h >>conftest.$ac_ext
17339 cat >>conftest.$ac_ext <<_ACEOF
17340 /* end confdefs.h. */
17342 #include <netinet/in.h>
17343 #ifdef IPV6_INRIA_VERSION
17345 #endif
17346 _ACEOF
17347 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17348 $EGREP "yes" >/dev/null 2>&1; then
17349 ipv6type=$i
17351 rm -f conftest*
17354 kame)
17355 cat >conftest.$ac_ext <<_ACEOF
17356 /* confdefs.h. */
17357 _ACEOF
17358 cat confdefs.h >>conftest.$ac_ext
17359 cat >>conftest.$ac_ext <<_ACEOF
17360 /* end confdefs.h. */
17362 #include <netinet/in.h>
17363 #ifdef __KAME__
17365 #endif
17366 _ACEOF
17367 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17368 $EGREP "yes" >/dev/null 2>&1; then
17369 ipv6type=$i;
17370 ipv6lib=inet6
17371 ipv6libdir=/usr/local/v6/lib
17372 ipv6trylibc=yes
17374 rm -f conftest*
17377 linux-glibc)
17378 cat >conftest.$ac_ext <<_ACEOF
17379 /* confdefs.h. */
17380 _ACEOF
17381 cat confdefs.h >>conftest.$ac_ext
17382 cat >>conftest.$ac_ext <<_ACEOF
17383 /* end confdefs.h. */
17385 #include <features.h>
17386 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
17388 #endif
17389 _ACEOF
17390 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17391 $EGREP "yes" >/dev/null 2>&1; then
17392 ipv6type=$i;
17393 ipv6trylibc=yes
17395 rm -f conftest*
17398 linux-inet6)
17399 if test -d /usr/inet6; then
17400 ipv6type=$i
17401 ipv6lib=inet6
17402 ipv6libdir=/usr/inet6/lib
17403 BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
17406 solaris)
17407 if test -f /etc/netconfig; then
17408 if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then
17409 ipv6type=$i
17410 ipv6trylibc=yes
17414 toshiba)
17415 cat >conftest.$ac_ext <<_ACEOF
17416 /* confdefs.h. */
17417 _ACEOF
17418 cat confdefs.h >>conftest.$ac_ext
17419 cat >>conftest.$ac_ext <<_ACEOF
17420 /* end confdefs.h. */
17422 #include <sys/param.h>
17423 #ifdef _TOSHIBA_INET6
17425 #endif
17426 _ACEOF
17427 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17428 $EGREP "yes" >/dev/null 2>&1; then
17429 ipv6type=$i;
17430 ipv6lib=inet6;
17431 ipv6libdir=/usr/local/v6/lib
17433 rm -f conftest*
17436 v6d)
17437 cat >conftest.$ac_ext <<_ACEOF
17438 /* confdefs.h. */
17439 _ACEOF
17440 cat confdefs.h >>conftest.$ac_ext
17441 cat >>conftest.$ac_ext <<_ACEOF
17442 /* end confdefs.h. */
17444 #include </usr/local/v6/include/sys/v6config.h>
17445 #ifdef __V6D__
17447 #endif
17448 _ACEOF
17449 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17450 $EGREP "yes" >/dev/null 2>&1; then
17451 ipv6type=$i;
17452 ipv6lib=v6;
17453 ipv6libdir=/usr/local/v6/lib;
17454 BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
17456 rm -f conftest*
17459 zeta)
17460 cat >conftest.$ac_ext <<_ACEOF
17461 /* confdefs.h. */
17462 _ACEOF
17463 cat confdefs.h >>conftest.$ac_ext
17464 cat >>conftest.$ac_ext <<_ACEOF
17465 /* end confdefs.h. */
17467 #include <sys/param.h>
17468 #ifdef _ZETA_MINAMI_INET6
17470 #endif
17471 _ACEOF
17472 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17473 $EGREP "yes" >/dev/null 2>&1; then
17474 ipv6type=$i;
17475 ipv6lib=inet6;
17476 ipv6libdir=/usr/local/v6/lib
17478 rm -f conftest*
17481 esac
17482 if test "$ipv6type" != "unknown"; then
17483 break
17485 done
17486 { echo "$as_me:$LINENO: result: $ipv6type" >&5
17487 echo "${ECHO_T}$ipv6type" >&6; }
17490 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
17491 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
17492 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
17493 echo "using lib$ipv6lib"
17494 else
17495 if test $ipv6trylibc = "yes"; then
17496 echo "using libc"
17497 else
17498 echo 'Fatal: no $ipv6lib library found. cannot continue.'
17499 echo "You need to fetch lib$ipv6lib.a from appropriate"
17500 echo 'ipv6 kit and compile beforehand.'
17501 exit 1
17506 { echo "$as_me:$LINENO: checking for OSX 10.5 SDK or later" >&5
17507 echo $ECHO_N "checking for OSX 10.5 SDK or later... $ECHO_C" >&6; }
17508 cat >conftest.$ac_ext <<_ACEOF
17509 /* confdefs.h. */
17510 _ACEOF
17511 cat confdefs.h >>conftest.$ac_ext
17512 cat >>conftest.$ac_ext <<_ACEOF
17513 /* end confdefs.h. */
17514 #include <Carbon/Carbon.h>
17516 main ()
17518 FSIORefNum fRef = 0
17520 return 0;
17522 _ACEOF
17523 rm -f conftest.$ac_objext
17524 if { (ac_try="$ac_compile"
17525 case "(($ac_try" in
17526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17527 *) ac_try_echo=$ac_try;;
17528 esac
17529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17530 (eval "$ac_compile") 2>conftest.er1
17531 ac_status=$?
17532 grep -v '^ *+' conftest.er1 >conftest.err
17533 rm -f conftest.er1
17534 cat conftest.err >&5
17535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17536 (exit $ac_status); } && {
17537 test -z "$ac_c_werror_flag" ||
17538 test ! -s conftest.err
17539 } && test -s conftest.$ac_objext; then
17541 cat >>confdefs.h <<\_ACEOF
17542 #define HAVE_OSX105_SDK 1
17543 _ACEOF
17545 { echo "$as_me:$LINENO: result: yes" >&5
17546 echo "${ECHO_T}yes" >&6; }
17547 else
17548 echo "$as_me: failed program was:" >&5
17549 sed 's/^/| /' conftest.$ac_ext >&5
17551 { echo "$as_me:$LINENO: result: no" >&5
17552 echo "${ECHO_T}no" >&6; }
17556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17558 # Check for --with-doc-strings
17559 { echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
17560 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6; }
17562 # Check whether --with-doc-strings was given.
17563 if test "${with_doc_strings+set}" = set; then
17564 withval=$with_doc_strings;
17568 if test -z "$with_doc_strings"
17569 then with_doc_strings="yes"
17571 if test "$with_doc_strings" != "no"
17572 then
17574 cat >>confdefs.h <<\_ACEOF
17575 #define WITH_DOC_STRINGS 1
17576 _ACEOF
17579 { echo "$as_me:$LINENO: result: $with_doc_strings" >&5
17580 echo "${ECHO_T}$with_doc_strings" >&6; }
17582 # Check for Python-specific malloc support
17583 { echo "$as_me:$LINENO: checking for --with-tsc" >&5
17584 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6; }
17586 # Check whether --with-tsc was given.
17587 if test "${with_tsc+set}" = set; then
17588 withval=$with_tsc;
17589 if test "$withval" != no
17590 then
17592 cat >>confdefs.h <<\_ACEOF
17593 #define WITH_TSC 1
17594 _ACEOF
17596 { echo "$as_me:$LINENO: result: yes" >&5
17597 echo "${ECHO_T}yes" >&6; }
17598 else { echo "$as_me:$LINENO: result: no" >&5
17599 echo "${ECHO_T}no" >&6; }
17601 else
17602 { echo "$as_me:$LINENO: result: no" >&5
17603 echo "${ECHO_T}no" >&6; }
17607 # Check for Python-specific malloc support
17608 { echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
17609 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6; }
17611 # Check whether --with-pymalloc was given.
17612 if test "${with_pymalloc+set}" = set; then
17613 withval=$with_pymalloc;
17617 if test -z "$with_pymalloc"
17618 then with_pymalloc="yes"
17620 if test "$with_pymalloc" != "no"
17621 then
17623 cat >>confdefs.h <<\_ACEOF
17624 #define WITH_PYMALLOC 1
17625 _ACEOF
17628 { echo "$as_me:$LINENO: result: $with_pymalloc" >&5
17629 echo "${ECHO_T}$with_pymalloc" >&6; }
17631 # Check for Valgrind support
17632 { echo "$as_me:$LINENO: checking for --with-valgrind" >&5
17633 echo $ECHO_N "checking for --with-valgrind... $ECHO_C" >&6; }
17635 # Check whether --with-valgrind was given.
17636 if test "${with_valgrind+set}" = set; then
17637 withval=$with_valgrind;
17638 else
17639 with_valgrind=no
17642 { echo "$as_me:$LINENO: result: $with_valgrind" >&5
17643 echo "${ECHO_T}$with_valgrind" >&6; }
17644 if test "$with_valgrind" != no; then
17645 if test "${ac_cv_header_valgrind_valgrind_h+set}" = set; then
17646 { echo "$as_me:$LINENO: checking for valgrind/valgrind.h" >&5
17647 echo $ECHO_N "checking for valgrind/valgrind.h... $ECHO_C" >&6; }
17648 if test "${ac_cv_header_valgrind_valgrind_h+set}" = set; then
17649 echo $ECHO_N "(cached) $ECHO_C" >&6
17651 { echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_valgrind_h" >&5
17652 echo "${ECHO_T}$ac_cv_header_valgrind_valgrind_h" >&6; }
17653 else
17654 # Is the header compilable?
17655 { echo "$as_me:$LINENO: checking valgrind/valgrind.h usability" >&5
17656 echo $ECHO_N "checking valgrind/valgrind.h usability... $ECHO_C" >&6; }
17657 cat >conftest.$ac_ext <<_ACEOF
17658 /* confdefs.h. */
17659 _ACEOF
17660 cat confdefs.h >>conftest.$ac_ext
17661 cat >>conftest.$ac_ext <<_ACEOF
17662 /* end confdefs.h. */
17663 $ac_includes_default
17664 #include <valgrind/valgrind.h>
17665 _ACEOF
17666 rm -f conftest.$ac_objext
17667 if { (ac_try="$ac_compile"
17668 case "(($ac_try" in
17669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17670 *) ac_try_echo=$ac_try;;
17671 esac
17672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17673 (eval "$ac_compile") 2>conftest.er1
17674 ac_status=$?
17675 grep -v '^ *+' conftest.er1 >conftest.err
17676 rm -f conftest.er1
17677 cat conftest.err >&5
17678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17679 (exit $ac_status); } && {
17680 test -z "$ac_c_werror_flag" ||
17681 test ! -s conftest.err
17682 } && test -s conftest.$ac_objext; then
17683 ac_header_compiler=yes
17684 else
17685 echo "$as_me: failed program was:" >&5
17686 sed 's/^/| /' conftest.$ac_ext >&5
17688 ac_header_compiler=no
17691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17692 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17693 echo "${ECHO_T}$ac_header_compiler" >&6; }
17695 # Is the header present?
17696 { echo "$as_me:$LINENO: checking valgrind/valgrind.h presence" >&5
17697 echo $ECHO_N "checking valgrind/valgrind.h presence... $ECHO_C" >&6; }
17698 cat >conftest.$ac_ext <<_ACEOF
17699 /* confdefs.h. */
17700 _ACEOF
17701 cat confdefs.h >>conftest.$ac_ext
17702 cat >>conftest.$ac_ext <<_ACEOF
17703 /* end confdefs.h. */
17704 #include <valgrind/valgrind.h>
17705 _ACEOF
17706 if { (ac_try="$ac_cpp conftest.$ac_ext"
17707 case "(($ac_try" in
17708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17709 *) ac_try_echo=$ac_try;;
17710 esac
17711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17712 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17713 ac_status=$?
17714 grep -v '^ *+' conftest.er1 >conftest.err
17715 rm -f conftest.er1
17716 cat conftest.err >&5
17717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17718 (exit $ac_status); } >/dev/null && {
17719 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17720 test ! -s conftest.err
17721 }; then
17722 ac_header_preproc=yes
17723 else
17724 echo "$as_me: failed program was:" >&5
17725 sed 's/^/| /' conftest.$ac_ext >&5
17727 ac_header_preproc=no
17730 rm -f conftest.err conftest.$ac_ext
17731 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17732 echo "${ECHO_T}$ac_header_preproc" >&6; }
17734 # So? What about this header?
17735 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17736 yes:no: )
17737 { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
17738 echo "$as_me: WARNING: valgrind/valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17739 { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: proceeding with the compiler's result" >&5
17740 echo "$as_me: WARNING: valgrind/valgrind.h: proceeding with the compiler's result" >&2;}
17741 ac_header_preproc=yes
17743 no:yes:* )
17744 { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: present but cannot be compiled" >&5
17745 echo "$as_me: WARNING: valgrind/valgrind.h: present but cannot be compiled" >&2;}
17746 { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: check for missing prerequisite headers?" >&5
17747 echo "$as_me: WARNING: valgrind/valgrind.h: check for missing prerequisite headers?" >&2;}
17748 { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: see the Autoconf documentation" >&5
17749 echo "$as_me: WARNING: valgrind/valgrind.h: see the Autoconf documentation" >&2;}
17750 { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
17751 echo "$as_me: WARNING: valgrind/valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
17752 { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: proceeding with the preprocessor's result" >&5
17753 echo "$as_me: WARNING: valgrind/valgrind.h: proceeding with the preprocessor's result" >&2;}
17754 { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: in the future, the compiler will take precedence" >&5
17755 echo "$as_me: WARNING: valgrind/valgrind.h: in the future, the compiler will take precedence" >&2;}
17756 ( cat <<\_ASBOX
17757 ## -------------------------------------- ##
17758 ## Report this to http://bugs.python.org/ ##
17759 ## -------------------------------------- ##
17760 _ASBOX
17761 ) | sed "s/^/$as_me: WARNING: /" >&2
17763 esac
17764 { echo "$as_me:$LINENO: checking for valgrind/valgrind.h" >&5
17765 echo $ECHO_N "checking for valgrind/valgrind.h... $ECHO_C" >&6; }
17766 if test "${ac_cv_header_valgrind_valgrind_h+set}" = set; then
17767 echo $ECHO_N "(cached) $ECHO_C" >&6
17768 else
17769 ac_cv_header_valgrind_valgrind_h=$ac_header_preproc
17771 { echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_valgrind_h" >&5
17772 echo "${ECHO_T}$ac_cv_header_valgrind_valgrind_h" >&6; }
17775 if test $ac_cv_header_valgrind_valgrind_h = yes; then
17777 cat >>confdefs.h <<\_ACEOF
17778 #define WITH_VALGRIND 1
17779 _ACEOF
17781 else
17782 { { echo "$as_me:$LINENO: error: Valgrind support requested but headers not available" >&5
17783 echo "$as_me: error: Valgrind support requested but headers not available" >&2;}
17784 { (exit 1); exit 1; }; }
17791 # Check for --with-wctype-functions
17792 { echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
17793 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6; }
17795 # Check whether --with-wctype-functions was given.
17796 if test "${with_wctype_functions+set}" = set; then
17797 withval=$with_wctype_functions;
17798 if test "$withval" != no
17799 then
17801 cat >>confdefs.h <<\_ACEOF
17802 #define WANT_WCTYPE_FUNCTIONS 1
17803 _ACEOF
17805 { echo "$as_me:$LINENO: result: yes" >&5
17806 echo "${ECHO_T}yes" >&6; }
17807 else { echo "$as_me:$LINENO: result: no" >&5
17808 echo "${ECHO_T}no" >&6; }
17810 else
17811 { echo "$as_me:$LINENO: result: no" >&5
17812 echo "${ECHO_T}no" >&6; }
17816 # -I${DLINCLDIR} is added to the compile rule for importdl.o
17818 DLINCLDIR=.
17820 # the dlopen() function means we might want to use dynload_shlib.o. some
17821 # platforms, such as AIX, have dlopen(), but don't want to use it.
17823 for ac_func in dlopen
17825 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17826 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17827 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17828 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17829 echo $ECHO_N "(cached) $ECHO_C" >&6
17830 else
17831 cat >conftest.$ac_ext <<_ACEOF
17832 /* confdefs.h. */
17833 _ACEOF
17834 cat confdefs.h >>conftest.$ac_ext
17835 cat >>conftest.$ac_ext <<_ACEOF
17836 /* end confdefs.h. */
17837 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17838 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17839 #define $ac_func innocuous_$ac_func
17841 /* System header to define __stub macros and hopefully few prototypes,
17842 which can conflict with char $ac_func (); below.
17843 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17844 <limits.h> exists even on freestanding compilers. */
17846 #ifdef __STDC__
17847 # include <limits.h>
17848 #else
17849 # include <assert.h>
17850 #endif
17852 #undef $ac_func
17854 /* Override any GCC internal prototype to avoid an error.
17855 Use char because int might match the return type of a GCC
17856 builtin and then its argument prototype would still apply. */
17857 #ifdef __cplusplus
17858 extern "C"
17859 #endif
17860 char $ac_func ();
17861 /* The GNU C library defines this for functions which it implements
17862 to always fail with ENOSYS. Some functions are actually named
17863 something starting with __ and the normal name is an alias. */
17864 #if defined __stub_$ac_func || defined __stub___$ac_func
17865 choke me
17866 #endif
17869 main ()
17871 return $ac_func ();
17873 return 0;
17875 _ACEOF
17876 rm -f conftest.$ac_objext conftest$ac_exeext
17877 if { (ac_try="$ac_link"
17878 case "(($ac_try" in
17879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17880 *) ac_try_echo=$ac_try;;
17881 esac
17882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17883 (eval "$ac_link") 2>conftest.er1
17884 ac_status=$?
17885 grep -v '^ *+' conftest.er1 >conftest.err
17886 rm -f conftest.er1
17887 cat conftest.err >&5
17888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17889 (exit $ac_status); } && {
17890 test -z "$ac_c_werror_flag" ||
17891 test ! -s conftest.err
17892 } && test -s conftest$ac_exeext &&
17893 $as_test_x conftest$ac_exeext; then
17894 eval "$as_ac_var=yes"
17895 else
17896 echo "$as_me: failed program was:" >&5
17897 sed 's/^/| /' conftest.$ac_ext >&5
17899 eval "$as_ac_var=no"
17902 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17903 conftest$ac_exeext conftest.$ac_ext
17905 ac_res=`eval echo '${'$as_ac_var'}'`
17906 { echo "$as_me:$LINENO: result: $ac_res" >&5
17907 echo "${ECHO_T}$ac_res" >&6; }
17908 if test `eval echo '${'$as_ac_var'}'` = yes; then
17909 cat >>confdefs.h <<_ACEOF
17910 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17911 _ACEOF
17914 done
17917 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
17918 # loading of modules.
17920 { echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
17921 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6; }
17922 if test -z "$DYNLOADFILE"
17923 then
17924 case $ac_sys_system/$ac_sys_release in
17925 AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
17926 if test "$ac_cv_func_dlopen" = yes
17927 then DYNLOADFILE="dynload_shlib.o"
17928 else DYNLOADFILE="dynload_aix.o"
17931 BeOS*) DYNLOADFILE="dynload_beos.o";;
17932 hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
17933 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
17934 Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";;
17935 atheos*) DYNLOADFILE="dynload_atheos.o";;
17937 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
17938 # out any dynamic loading
17939 if test "$ac_cv_func_dlopen" = yes
17940 then DYNLOADFILE="dynload_shlib.o"
17941 else DYNLOADFILE="dynload_stub.o"
17944 esac
17946 { echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
17947 echo "${ECHO_T}$DYNLOADFILE" >&6; }
17948 if test "$DYNLOADFILE" != "dynload_stub.o"
17949 then
17951 cat >>confdefs.h <<\_ACEOF
17952 #define HAVE_DYNAMIC_LOADING 1
17953 _ACEOF
17957 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
17960 { echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
17961 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6; }
17962 if test -z "$MACHDEP_OBJS"
17963 then
17964 MACHDEP_OBJS=$extra_machdep_objs
17965 else
17966 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
17968 { echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
17969 echo "${ECHO_T}MACHDEP_OBJS" >&6; }
17971 # checks for library functions
18071 for ac_func in alarm setitimer getitimer bind_textdomain_codeset chown \
18072 clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \
18073 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
18074 getpriority getresuid getresgid getpwent getspnam getspent getsid getwd \
18075 initgroups kill killpg lchmod lchown lstat mkfifo mknod mktime \
18076 mremap nice pathconf pause plock poll pthread_init \
18077 putenv readlink realpath \
18078 select sem_open sem_timedwait sem_getvalue sem_unlink setegid seteuid \
18079 setgid \
18080 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
18081 setlocale setregid setreuid setresuid setresgid \
18082 setsid setpgid setpgrp setuid setvbuf snprintf \
18083 sigaction siginterrupt sigrelse strftime \
18084 sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
18085 truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty
18087 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18088 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18089 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18090 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18091 echo $ECHO_N "(cached) $ECHO_C" >&6
18092 else
18093 cat >conftest.$ac_ext <<_ACEOF
18094 /* confdefs.h. */
18095 _ACEOF
18096 cat confdefs.h >>conftest.$ac_ext
18097 cat >>conftest.$ac_ext <<_ACEOF
18098 /* end confdefs.h. */
18099 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18100 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18101 #define $ac_func innocuous_$ac_func
18103 /* System header to define __stub macros and hopefully few prototypes,
18104 which can conflict with char $ac_func (); below.
18105 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18106 <limits.h> exists even on freestanding compilers. */
18108 #ifdef __STDC__
18109 # include <limits.h>
18110 #else
18111 # include <assert.h>
18112 #endif
18114 #undef $ac_func
18116 /* Override any GCC internal prototype to avoid an error.
18117 Use char because int might match the return type of a GCC
18118 builtin and then its argument prototype would still apply. */
18119 #ifdef __cplusplus
18120 extern "C"
18121 #endif
18122 char $ac_func ();
18123 /* The GNU C library defines this for functions which it implements
18124 to always fail with ENOSYS. Some functions are actually named
18125 something starting with __ and the normal name is an alias. */
18126 #if defined __stub_$ac_func || defined __stub___$ac_func
18127 choke me
18128 #endif
18131 main ()
18133 return $ac_func ();
18135 return 0;
18137 _ACEOF
18138 rm -f conftest.$ac_objext conftest$ac_exeext
18139 if { (ac_try="$ac_link"
18140 case "(($ac_try" in
18141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18142 *) ac_try_echo=$ac_try;;
18143 esac
18144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18145 (eval "$ac_link") 2>conftest.er1
18146 ac_status=$?
18147 grep -v '^ *+' conftest.er1 >conftest.err
18148 rm -f conftest.er1
18149 cat conftest.err >&5
18150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18151 (exit $ac_status); } && {
18152 test -z "$ac_c_werror_flag" ||
18153 test ! -s conftest.err
18154 } && test -s conftest$ac_exeext &&
18155 $as_test_x conftest$ac_exeext; then
18156 eval "$as_ac_var=yes"
18157 else
18158 echo "$as_me: failed program was:" >&5
18159 sed 's/^/| /' conftest.$ac_ext >&5
18161 eval "$as_ac_var=no"
18164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18165 conftest$ac_exeext conftest.$ac_ext
18167 ac_res=`eval echo '${'$as_ac_var'}'`
18168 { echo "$as_me:$LINENO: result: $ac_res" >&5
18169 echo "${ECHO_T}$ac_res" >&6; }
18170 if test `eval echo '${'$as_ac_var'}'` = yes; then
18171 cat >>confdefs.h <<_ACEOF
18172 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18173 _ACEOF
18176 done
18179 # For some functions, having a definition is not sufficient, since
18180 # we want to take their address.
18181 { echo "$as_me:$LINENO: checking for chroot" >&5
18182 echo $ECHO_N "checking for chroot... $ECHO_C" >&6; }
18183 cat >conftest.$ac_ext <<_ACEOF
18184 /* confdefs.h. */
18185 _ACEOF
18186 cat confdefs.h >>conftest.$ac_ext
18187 cat >>conftest.$ac_ext <<_ACEOF
18188 /* end confdefs.h. */
18189 #include <unistd.h>
18191 main ()
18193 void *x=chroot
18195 return 0;
18197 _ACEOF
18198 rm -f conftest.$ac_objext
18199 if { (ac_try="$ac_compile"
18200 case "(($ac_try" in
18201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18202 *) ac_try_echo=$ac_try;;
18203 esac
18204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18205 (eval "$ac_compile") 2>conftest.er1
18206 ac_status=$?
18207 grep -v '^ *+' conftest.er1 >conftest.err
18208 rm -f conftest.er1
18209 cat conftest.err >&5
18210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18211 (exit $ac_status); } && {
18212 test -z "$ac_c_werror_flag" ||
18213 test ! -s conftest.err
18214 } && test -s conftest.$ac_objext; then
18216 cat >>confdefs.h <<\_ACEOF
18217 #define HAVE_CHROOT 1
18218 _ACEOF
18220 { echo "$as_me:$LINENO: result: yes" >&5
18221 echo "${ECHO_T}yes" >&6; }
18222 else
18223 echo "$as_me: failed program was:" >&5
18224 sed 's/^/| /' conftest.$ac_ext >&5
18226 { echo "$as_me:$LINENO: result: no" >&5
18227 echo "${ECHO_T}no" >&6; }
18231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18232 { echo "$as_me:$LINENO: checking for link" >&5
18233 echo $ECHO_N "checking for link... $ECHO_C" >&6; }
18234 cat >conftest.$ac_ext <<_ACEOF
18235 /* confdefs.h. */
18236 _ACEOF
18237 cat confdefs.h >>conftest.$ac_ext
18238 cat >>conftest.$ac_ext <<_ACEOF
18239 /* end confdefs.h. */
18240 #include <unistd.h>
18242 main ()
18244 void *x=link
18246 return 0;
18248 _ACEOF
18249 rm -f conftest.$ac_objext
18250 if { (ac_try="$ac_compile"
18251 case "(($ac_try" in
18252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18253 *) ac_try_echo=$ac_try;;
18254 esac
18255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18256 (eval "$ac_compile") 2>conftest.er1
18257 ac_status=$?
18258 grep -v '^ *+' conftest.er1 >conftest.err
18259 rm -f conftest.er1
18260 cat conftest.err >&5
18261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18262 (exit $ac_status); } && {
18263 test -z "$ac_c_werror_flag" ||
18264 test ! -s conftest.err
18265 } && test -s conftest.$ac_objext; then
18267 cat >>confdefs.h <<\_ACEOF
18268 #define HAVE_LINK 1
18269 _ACEOF
18271 { echo "$as_me:$LINENO: result: yes" >&5
18272 echo "${ECHO_T}yes" >&6; }
18273 else
18274 echo "$as_me: failed program was:" >&5
18275 sed 's/^/| /' conftest.$ac_ext >&5
18277 { echo "$as_me:$LINENO: result: no" >&5
18278 echo "${ECHO_T}no" >&6; }
18282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18283 { echo "$as_me:$LINENO: checking for symlink" >&5
18284 echo $ECHO_N "checking for symlink... $ECHO_C" >&6; }
18285 cat >conftest.$ac_ext <<_ACEOF
18286 /* confdefs.h. */
18287 _ACEOF
18288 cat confdefs.h >>conftest.$ac_ext
18289 cat >>conftest.$ac_ext <<_ACEOF
18290 /* end confdefs.h. */
18291 #include <unistd.h>
18293 main ()
18295 void *x=symlink
18297 return 0;
18299 _ACEOF
18300 rm -f conftest.$ac_objext
18301 if { (ac_try="$ac_compile"
18302 case "(($ac_try" in
18303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18304 *) ac_try_echo=$ac_try;;
18305 esac
18306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18307 (eval "$ac_compile") 2>conftest.er1
18308 ac_status=$?
18309 grep -v '^ *+' conftest.er1 >conftest.err
18310 rm -f conftest.er1
18311 cat conftest.err >&5
18312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18313 (exit $ac_status); } && {
18314 test -z "$ac_c_werror_flag" ||
18315 test ! -s conftest.err
18316 } && test -s conftest.$ac_objext; then
18318 cat >>confdefs.h <<\_ACEOF
18319 #define HAVE_SYMLINK 1
18320 _ACEOF
18322 { echo "$as_me:$LINENO: result: yes" >&5
18323 echo "${ECHO_T}yes" >&6; }
18324 else
18325 echo "$as_me: failed program was:" >&5
18326 sed 's/^/| /' conftest.$ac_ext >&5
18328 { echo "$as_me:$LINENO: result: no" >&5
18329 echo "${ECHO_T}no" >&6; }
18333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18334 { echo "$as_me:$LINENO: checking for fchdir" >&5
18335 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6; }
18336 cat >conftest.$ac_ext <<_ACEOF
18337 /* confdefs.h. */
18338 _ACEOF
18339 cat confdefs.h >>conftest.$ac_ext
18340 cat >>conftest.$ac_ext <<_ACEOF
18341 /* end confdefs.h. */
18342 #include <unistd.h>
18344 main ()
18346 void *x=fchdir
18348 return 0;
18350 _ACEOF
18351 rm -f conftest.$ac_objext
18352 if { (ac_try="$ac_compile"
18353 case "(($ac_try" in
18354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18355 *) ac_try_echo=$ac_try;;
18356 esac
18357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18358 (eval "$ac_compile") 2>conftest.er1
18359 ac_status=$?
18360 grep -v '^ *+' conftest.er1 >conftest.err
18361 rm -f conftest.er1
18362 cat conftest.err >&5
18363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18364 (exit $ac_status); } && {
18365 test -z "$ac_c_werror_flag" ||
18366 test ! -s conftest.err
18367 } && test -s conftest.$ac_objext; then
18369 cat >>confdefs.h <<\_ACEOF
18370 #define HAVE_FCHDIR 1
18371 _ACEOF
18373 { echo "$as_me:$LINENO: result: yes" >&5
18374 echo "${ECHO_T}yes" >&6; }
18375 else
18376 echo "$as_me: failed program was:" >&5
18377 sed 's/^/| /' conftest.$ac_ext >&5
18379 { echo "$as_me:$LINENO: result: no" >&5
18380 echo "${ECHO_T}no" >&6; }
18384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18385 { echo "$as_me:$LINENO: checking for fsync" >&5
18386 echo $ECHO_N "checking for fsync... $ECHO_C" >&6; }
18387 cat >conftest.$ac_ext <<_ACEOF
18388 /* confdefs.h. */
18389 _ACEOF
18390 cat confdefs.h >>conftest.$ac_ext
18391 cat >>conftest.$ac_ext <<_ACEOF
18392 /* end confdefs.h. */
18393 #include <unistd.h>
18395 main ()
18397 void *x=fsync
18399 return 0;
18401 _ACEOF
18402 rm -f conftest.$ac_objext
18403 if { (ac_try="$ac_compile"
18404 case "(($ac_try" in
18405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18406 *) ac_try_echo=$ac_try;;
18407 esac
18408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18409 (eval "$ac_compile") 2>conftest.er1
18410 ac_status=$?
18411 grep -v '^ *+' conftest.er1 >conftest.err
18412 rm -f conftest.er1
18413 cat conftest.err >&5
18414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18415 (exit $ac_status); } && {
18416 test -z "$ac_c_werror_flag" ||
18417 test ! -s conftest.err
18418 } && test -s conftest.$ac_objext; then
18420 cat >>confdefs.h <<\_ACEOF
18421 #define HAVE_FSYNC 1
18422 _ACEOF
18424 { echo "$as_me:$LINENO: result: yes" >&5
18425 echo "${ECHO_T}yes" >&6; }
18426 else
18427 echo "$as_me: failed program was:" >&5
18428 sed 's/^/| /' conftest.$ac_ext >&5
18430 { echo "$as_me:$LINENO: result: no" >&5
18431 echo "${ECHO_T}no" >&6; }
18435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18436 { echo "$as_me:$LINENO: checking for fdatasync" >&5
18437 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; }
18438 cat >conftest.$ac_ext <<_ACEOF
18439 /* confdefs.h. */
18440 _ACEOF
18441 cat confdefs.h >>conftest.$ac_ext
18442 cat >>conftest.$ac_ext <<_ACEOF
18443 /* end confdefs.h. */
18444 #include <unistd.h>
18446 main ()
18448 void *x=fdatasync
18450 return 0;
18452 _ACEOF
18453 rm -f conftest.$ac_objext
18454 if { (ac_try="$ac_compile"
18455 case "(($ac_try" in
18456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18457 *) ac_try_echo=$ac_try;;
18458 esac
18459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18460 (eval "$ac_compile") 2>conftest.er1
18461 ac_status=$?
18462 grep -v '^ *+' conftest.er1 >conftest.err
18463 rm -f conftest.er1
18464 cat conftest.err >&5
18465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18466 (exit $ac_status); } && {
18467 test -z "$ac_c_werror_flag" ||
18468 test ! -s conftest.err
18469 } && test -s conftest.$ac_objext; then
18471 cat >>confdefs.h <<\_ACEOF
18472 #define HAVE_FDATASYNC 1
18473 _ACEOF
18475 { echo "$as_me:$LINENO: result: yes" >&5
18476 echo "${ECHO_T}yes" >&6; }
18477 else
18478 echo "$as_me: failed program was:" >&5
18479 sed 's/^/| /' conftest.$ac_ext >&5
18481 { echo "$as_me:$LINENO: result: no" >&5
18482 echo "${ECHO_T}no" >&6; }
18486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18487 { echo "$as_me:$LINENO: checking for epoll" >&5
18488 echo $ECHO_N "checking for epoll... $ECHO_C" >&6; }
18489 cat >conftest.$ac_ext <<_ACEOF
18490 /* confdefs.h. */
18491 _ACEOF
18492 cat confdefs.h >>conftest.$ac_ext
18493 cat >>conftest.$ac_ext <<_ACEOF
18494 /* end confdefs.h. */
18495 #include <sys/epoll.h>
18497 main ()
18499 void *x=epoll_create
18501 return 0;
18503 _ACEOF
18504 rm -f conftest.$ac_objext
18505 if { (ac_try="$ac_compile"
18506 case "(($ac_try" in
18507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18508 *) ac_try_echo=$ac_try;;
18509 esac
18510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18511 (eval "$ac_compile") 2>conftest.er1
18512 ac_status=$?
18513 grep -v '^ *+' conftest.er1 >conftest.err
18514 rm -f conftest.er1
18515 cat conftest.err >&5
18516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18517 (exit $ac_status); } && {
18518 test -z "$ac_c_werror_flag" ||
18519 test ! -s conftest.err
18520 } && test -s conftest.$ac_objext; then
18522 cat >>confdefs.h <<\_ACEOF
18523 #define HAVE_EPOLL 1
18524 _ACEOF
18526 { echo "$as_me:$LINENO: result: yes" >&5
18527 echo "${ECHO_T}yes" >&6; }
18528 else
18529 echo "$as_me: failed program was:" >&5
18530 sed 's/^/| /' conftest.$ac_ext >&5
18532 { echo "$as_me:$LINENO: result: no" >&5
18533 echo "${ECHO_T}no" >&6; }
18537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18538 { echo "$as_me:$LINENO: checking for kqueue" >&5
18539 echo $ECHO_N "checking for kqueue... $ECHO_C" >&6; }
18540 cat >conftest.$ac_ext <<_ACEOF
18541 /* confdefs.h. */
18542 _ACEOF
18543 cat confdefs.h >>conftest.$ac_ext
18544 cat >>conftest.$ac_ext <<_ACEOF
18545 /* end confdefs.h. */
18547 #include <sys/types.h>
18548 #include <sys/event.h>
18551 main ()
18553 int x=kqueue()
18555 return 0;
18557 _ACEOF
18558 rm -f conftest.$ac_objext
18559 if { (ac_try="$ac_compile"
18560 case "(($ac_try" in
18561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18562 *) ac_try_echo=$ac_try;;
18563 esac
18564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18565 (eval "$ac_compile") 2>conftest.er1
18566 ac_status=$?
18567 grep -v '^ *+' conftest.er1 >conftest.err
18568 rm -f conftest.er1
18569 cat conftest.err >&5
18570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18571 (exit $ac_status); } && {
18572 test -z "$ac_c_werror_flag" ||
18573 test ! -s conftest.err
18574 } && test -s conftest.$ac_objext; then
18576 cat >>confdefs.h <<\_ACEOF
18577 #define HAVE_KQUEUE 1
18578 _ACEOF
18580 { echo "$as_me:$LINENO: result: yes" >&5
18581 echo "${ECHO_T}yes" >&6; }
18582 else
18583 echo "$as_me: failed program was:" >&5
18584 sed 's/^/| /' conftest.$ac_ext >&5
18586 { echo "$as_me:$LINENO: result: no" >&5
18587 echo "${ECHO_T}no" >&6; }
18591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18592 # On some systems (eg. FreeBSD 5), we would find a definition of the
18593 # functions ctermid_r, setgroups in the library, but no prototype
18594 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
18595 # address to avoid compiler warnings and potential miscompilations
18596 # because of the missing prototypes.
18598 { echo "$as_me:$LINENO: checking for ctermid_r" >&5
18599 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6; }
18600 cat >conftest.$ac_ext <<_ACEOF
18601 /* confdefs.h. */
18602 _ACEOF
18603 cat confdefs.h >>conftest.$ac_ext
18604 cat >>conftest.$ac_ext <<_ACEOF
18605 /* end confdefs.h. */
18607 #include "confdefs.h"
18608 #include <stdio.h>
18611 main ()
18613 void* p = ctermid_r
18615 return 0;
18617 _ACEOF
18618 rm -f conftest.$ac_objext
18619 if { (ac_try="$ac_compile"
18620 case "(($ac_try" in
18621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18622 *) ac_try_echo=$ac_try;;
18623 esac
18624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18625 (eval "$ac_compile") 2>conftest.er1
18626 ac_status=$?
18627 grep -v '^ *+' conftest.er1 >conftest.err
18628 rm -f conftest.er1
18629 cat conftest.err >&5
18630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18631 (exit $ac_status); } && {
18632 test -z "$ac_c_werror_flag" ||
18633 test ! -s conftest.err
18634 } && test -s conftest.$ac_objext; then
18636 cat >>confdefs.h <<\_ACEOF
18637 #define HAVE_CTERMID_R 1
18638 _ACEOF
18640 { echo "$as_me:$LINENO: result: yes" >&5
18641 echo "${ECHO_T}yes" >&6; }
18642 else
18643 echo "$as_me: failed program was:" >&5
18644 sed 's/^/| /' conftest.$ac_ext >&5
18646 { echo "$as_me:$LINENO: result: no" >&5
18647 echo "${ECHO_T}no" >&6; }
18651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18653 { echo "$as_me:$LINENO: checking for flock" >&5
18654 echo $ECHO_N "checking for flock... $ECHO_C" >&6; }
18655 cat >conftest.$ac_ext <<_ACEOF
18656 /* confdefs.h. */
18657 _ACEOF
18658 cat confdefs.h >>conftest.$ac_ext
18659 cat >>conftest.$ac_ext <<_ACEOF
18660 /* end confdefs.h. */
18662 #include "confdefs.h"
18663 #include <sys/file.h>
18666 main ()
18668 void* p = flock
18670 return 0;
18672 _ACEOF
18673 rm -f conftest.$ac_objext
18674 if { (ac_try="$ac_compile"
18675 case "(($ac_try" in
18676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18677 *) ac_try_echo=$ac_try;;
18678 esac
18679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18680 (eval "$ac_compile") 2>conftest.er1
18681 ac_status=$?
18682 grep -v '^ *+' conftest.er1 >conftest.err
18683 rm -f conftest.er1
18684 cat conftest.err >&5
18685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18686 (exit $ac_status); } && {
18687 test -z "$ac_c_werror_flag" ||
18688 test ! -s conftest.err
18689 } && test -s conftest.$ac_objext; then
18691 cat >>confdefs.h <<\_ACEOF
18692 #define HAVE_FLOCK 1
18693 _ACEOF
18695 { echo "$as_me:$LINENO: result: yes" >&5
18696 echo "${ECHO_T}yes" >&6; }
18697 else
18698 echo "$as_me: failed program was:" >&5
18699 sed 's/^/| /' conftest.$ac_ext >&5
18701 { echo "$as_me:$LINENO: result: no" >&5
18702 echo "${ECHO_T}no" >&6; }
18706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18708 { echo "$as_me:$LINENO: checking for getpagesize" >&5
18709 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; }
18710 cat >conftest.$ac_ext <<_ACEOF
18711 /* confdefs.h. */
18712 _ACEOF
18713 cat confdefs.h >>conftest.$ac_ext
18714 cat >>conftest.$ac_ext <<_ACEOF
18715 /* end confdefs.h. */
18717 #include "confdefs.h"
18718 #include <unistd.h>
18721 main ()
18723 void* p = getpagesize
18725 return 0;
18727 _ACEOF
18728 rm -f conftest.$ac_objext
18729 if { (ac_try="$ac_compile"
18730 case "(($ac_try" in
18731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18732 *) ac_try_echo=$ac_try;;
18733 esac
18734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18735 (eval "$ac_compile") 2>conftest.er1
18736 ac_status=$?
18737 grep -v '^ *+' conftest.er1 >conftest.err
18738 rm -f conftest.er1
18739 cat conftest.err >&5
18740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18741 (exit $ac_status); } && {
18742 test -z "$ac_c_werror_flag" ||
18743 test ! -s conftest.err
18744 } && test -s conftest.$ac_objext; then
18746 cat >>confdefs.h <<\_ACEOF
18747 #define HAVE_GETPAGESIZE 1
18748 _ACEOF
18750 { echo "$as_me:$LINENO: result: yes" >&5
18751 echo "${ECHO_T}yes" >&6; }
18752 else
18753 echo "$as_me: failed program was:" >&5
18754 sed 's/^/| /' conftest.$ac_ext >&5
18756 { echo "$as_me:$LINENO: result: no" >&5
18757 echo "${ECHO_T}no" >&6; }
18761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18763 for ac_prog in true
18765 # Extract the first word of "$ac_prog", so it can be a program name with args.
18766 set dummy $ac_prog; ac_word=$2
18767 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18769 if test "${ac_cv_prog_TRUE+set}" = set; then
18770 echo $ECHO_N "(cached) $ECHO_C" >&6
18771 else
18772 if test -n "$TRUE"; then
18773 ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
18774 else
18775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18776 for as_dir in $PATH
18778 IFS=$as_save_IFS
18779 test -z "$as_dir" && as_dir=.
18780 for ac_exec_ext in '' $ac_executable_extensions; do
18781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18782 ac_cv_prog_TRUE="$ac_prog"
18783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18784 break 2
18786 done
18787 done
18788 IFS=$as_save_IFS
18792 TRUE=$ac_cv_prog_TRUE
18793 if test -n "$TRUE"; then
18794 { echo "$as_me:$LINENO: result: $TRUE" >&5
18795 echo "${ECHO_T}$TRUE" >&6; }
18796 else
18797 { echo "$as_me:$LINENO: result: no" >&5
18798 echo "${ECHO_T}no" >&6; }
18802 test -n "$TRUE" && break
18803 done
18804 test -n "$TRUE" || TRUE="/bin/true"
18807 { echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
18808 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6; }
18809 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
18810 echo $ECHO_N "(cached) $ECHO_C" >&6
18811 else
18812 ac_check_lib_save_LIBS=$LIBS
18813 LIBS="-lc $LIBS"
18814 cat >conftest.$ac_ext <<_ACEOF
18815 /* confdefs.h. */
18816 _ACEOF
18817 cat confdefs.h >>conftest.$ac_ext
18818 cat >>conftest.$ac_ext <<_ACEOF
18819 /* end confdefs.h. */
18821 /* Override any GCC internal prototype to avoid an error.
18822 Use char because int might match the return type of a GCC
18823 builtin and then its argument prototype would still apply. */
18824 #ifdef __cplusplus
18825 extern "C"
18826 #endif
18827 char inet_aton ();
18829 main ()
18831 return inet_aton ();
18833 return 0;
18835 _ACEOF
18836 rm -f conftest.$ac_objext conftest$ac_exeext
18837 if { (ac_try="$ac_link"
18838 case "(($ac_try" in
18839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18840 *) ac_try_echo=$ac_try;;
18841 esac
18842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18843 (eval "$ac_link") 2>conftest.er1
18844 ac_status=$?
18845 grep -v '^ *+' conftest.er1 >conftest.err
18846 rm -f conftest.er1
18847 cat conftest.err >&5
18848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18849 (exit $ac_status); } && {
18850 test -z "$ac_c_werror_flag" ||
18851 test ! -s conftest.err
18852 } && test -s conftest$ac_exeext &&
18853 $as_test_x conftest$ac_exeext; then
18854 ac_cv_lib_c_inet_aton=yes
18855 else
18856 echo "$as_me: failed program was:" >&5
18857 sed 's/^/| /' conftest.$ac_ext >&5
18859 ac_cv_lib_c_inet_aton=no
18862 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18863 conftest$ac_exeext conftest.$ac_ext
18864 LIBS=$ac_check_lib_save_LIBS
18866 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
18867 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6; }
18868 if test $ac_cv_lib_c_inet_aton = yes; then
18869 $ac_cv_prog_TRUE
18870 else
18872 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
18873 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
18874 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
18875 echo $ECHO_N "(cached) $ECHO_C" >&6
18876 else
18877 ac_check_lib_save_LIBS=$LIBS
18878 LIBS="-lresolv $LIBS"
18879 cat >conftest.$ac_ext <<_ACEOF
18880 /* confdefs.h. */
18881 _ACEOF
18882 cat confdefs.h >>conftest.$ac_ext
18883 cat >>conftest.$ac_ext <<_ACEOF
18884 /* end confdefs.h. */
18886 /* Override any GCC internal prototype to avoid an error.
18887 Use char because int might match the return type of a GCC
18888 builtin and then its argument prototype would still apply. */
18889 #ifdef __cplusplus
18890 extern "C"
18891 #endif
18892 char inet_aton ();
18894 main ()
18896 return inet_aton ();
18898 return 0;
18900 _ACEOF
18901 rm -f conftest.$ac_objext conftest$ac_exeext
18902 if { (ac_try="$ac_link"
18903 case "(($ac_try" in
18904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18905 *) ac_try_echo=$ac_try;;
18906 esac
18907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18908 (eval "$ac_link") 2>conftest.er1
18909 ac_status=$?
18910 grep -v '^ *+' conftest.er1 >conftest.err
18911 rm -f conftest.er1
18912 cat conftest.err >&5
18913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18914 (exit $ac_status); } && {
18915 test -z "$ac_c_werror_flag" ||
18916 test ! -s conftest.err
18917 } && test -s conftest$ac_exeext &&
18918 $as_test_x conftest$ac_exeext; then
18919 ac_cv_lib_resolv_inet_aton=yes
18920 else
18921 echo "$as_me: failed program was:" >&5
18922 sed 's/^/| /' conftest.$ac_ext >&5
18924 ac_cv_lib_resolv_inet_aton=no
18927 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18928 conftest$ac_exeext conftest.$ac_ext
18929 LIBS=$ac_check_lib_save_LIBS
18931 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
18932 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
18933 if test $ac_cv_lib_resolv_inet_aton = yes; then
18934 cat >>confdefs.h <<_ACEOF
18935 #define HAVE_LIBRESOLV 1
18936 _ACEOF
18938 LIBS="-lresolv $LIBS"
18946 # On Tru64, chflags seems to be present, but calling it will
18947 # exit Python
18948 { echo "$as_me:$LINENO: checking for chflags" >&5
18949 echo $ECHO_N "checking for chflags... $ECHO_C" >&6; }
18950 if test "${ac_cv_have_chflags+set}" = set; then
18951 echo $ECHO_N "(cached) $ECHO_C" >&6
18952 else
18953 if test "$cross_compiling" = yes; then
18954 ac_cv_have_chflags=cross
18955 else
18956 cat >conftest.$ac_ext <<_ACEOF
18957 /* confdefs.h. */
18958 _ACEOF
18959 cat confdefs.h >>conftest.$ac_ext
18960 cat >>conftest.$ac_ext <<_ACEOF
18961 /* end confdefs.h. */
18963 #include <sys/stat.h>
18964 #include <unistd.h>
18965 int main(int argc, char*argv[])
18967 if(chflags(argv[0], 0) != 0)
18968 return 1;
18969 return 0;
18972 _ACEOF
18973 rm -f conftest$ac_exeext
18974 if { (ac_try="$ac_link"
18975 case "(($ac_try" in
18976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18977 *) ac_try_echo=$ac_try;;
18978 esac
18979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18980 (eval "$ac_link") 2>&5
18981 ac_status=$?
18982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18983 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18984 { (case "(($ac_try" in
18985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18986 *) ac_try_echo=$ac_try;;
18987 esac
18988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18989 (eval "$ac_try") 2>&5
18990 ac_status=$?
18991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18992 (exit $ac_status); }; }; then
18993 ac_cv_have_chflags=yes
18994 else
18995 echo "$as_me: program exited with status $ac_status" >&5
18996 echo "$as_me: failed program was:" >&5
18997 sed 's/^/| /' conftest.$ac_ext >&5
18999 ( exit $ac_status )
19000 ac_cv_have_chflags=no
19002 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19008 { echo "$as_me:$LINENO: result: $ac_cv_have_chflags" >&5
19009 echo "${ECHO_T}$ac_cv_have_chflags" >&6; }
19010 if test "$ac_cv_have_chflags" = cross ; then
19011 { echo "$as_me:$LINENO: checking for chflags" >&5
19012 echo $ECHO_N "checking for chflags... $ECHO_C" >&6; }
19013 if test "${ac_cv_func_chflags+set}" = set; then
19014 echo $ECHO_N "(cached) $ECHO_C" >&6
19015 else
19016 cat >conftest.$ac_ext <<_ACEOF
19017 /* confdefs.h. */
19018 _ACEOF
19019 cat confdefs.h >>conftest.$ac_ext
19020 cat >>conftest.$ac_ext <<_ACEOF
19021 /* end confdefs.h. */
19022 /* Define chflags to an innocuous variant, in case <limits.h> declares chflags.
19023 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19024 #define chflags innocuous_chflags
19026 /* System header to define __stub macros and hopefully few prototypes,
19027 which can conflict with char chflags (); below.
19028 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19029 <limits.h> exists even on freestanding compilers. */
19031 #ifdef __STDC__
19032 # include <limits.h>
19033 #else
19034 # include <assert.h>
19035 #endif
19037 #undef chflags
19039 /* Override any GCC internal prototype to avoid an error.
19040 Use char because int might match the return type of a GCC
19041 builtin and then its argument prototype would still apply. */
19042 #ifdef __cplusplus
19043 extern "C"
19044 #endif
19045 char chflags ();
19046 /* The GNU C library defines this for functions which it implements
19047 to always fail with ENOSYS. Some functions are actually named
19048 something starting with __ and the normal name is an alias. */
19049 #if defined __stub_chflags || defined __stub___chflags
19050 choke me
19051 #endif
19054 main ()
19056 return chflags ();
19058 return 0;
19060 _ACEOF
19061 rm -f conftest.$ac_objext conftest$ac_exeext
19062 if { (ac_try="$ac_link"
19063 case "(($ac_try" in
19064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19065 *) ac_try_echo=$ac_try;;
19066 esac
19067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19068 (eval "$ac_link") 2>conftest.er1
19069 ac_status=$?
19070 grep -v '^ *+' conftest.er1 >conftest.err
19071 rm -f conftest.er1
19072 cat conftest.err >&5
19073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19074 (exit $ac_status); } && {
19075 test -z "$ac_c_werror_flag" ||
19076 test ! -s conftest.err
19077 } && test -s conftest$ac_exeext &&
19078 $as_test_x conftest$ac_exeext; then
19079 ac_cv_func_chflags=yes
19080 else
19081 echo "$as_me: failed program was:" >&5
19082 sed 's/^/| /' conftest.$ac_ext >&5
19084 ac_cv_func_chflags=no
19087 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19088 conftest$ac_exeext conftest.$ac_ext
19090 { echo "$as_me:$LINENO: result: $ac_cv_func_chflags" >&5
19091 echo "${ECHO_T}$ac_cv_func_chflags" >&6; }
19092 if test $ac_cv_func_chflags = yes; then
19093 ac_cv_have_chflags="yes"
19094 else
19095 ac_cv_have_chflags="no"
19099 if test "$ac_cv_have_chflags" = yes ; then
19101 cat >>confdefs.h <<\_ACEOF
19102 #define HAVE_CHFLAGS 1
19103 _ACEOF
19107 { echo "$as_me:$LINENO: checking for lchflags" >&5
19108 echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; }
19109 if test "${ac_cv_have_lchflags+set}" = set; then
19110 echo $ECHO_N "(cached) $ECHO_C" >&6
19111 else
19112 if test "$cross_compiling" = yes; then
19113 ac_cv_have_lchflags=cross
19114 else
19115 cat >conftest.$ac_ext <<_ACEOF
19116 /* confdefs.h. */
19117 _ACEOF
19118 cat confdefs.h >>conftest.$ac_ext
19119 cat >>conftest.$ac_ext <<_ACEOF
19120 /* end confdefs.h. */
19122 #include <sys/stat.h>
19123 #include <unistd.h>
19124 int main(int argc, char*argv[])
19126 if(lchflags(argv[0], 0) != 0)
19127 return 1;
19128 return 0;
19131 _ACEOF
19132 rm -f 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>&5
19140 ac_status=$?
19141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19142 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19143 { (case "(($ac_try" in
19144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19145 *) ac_try_echo=$ac_try;;
19146 esac
19147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19148 (eval "$ac_try") 2>&5
19149 ac_status=$?
19150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19151 (exit $ac_status); }; }; then
19152 ac_cv_have_lchflags=yes
19153 else
19154 echo "$as_me: program exited with status $ac_status" >&5
19155 echo "$as_me: failed program was:" >&5
19156 sed 's/^/| /' conftest.$ac_ext >&5
19158 ( exit $ac_status )
19159 ac_cv_have_lchflags=no
19161 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19167 { echo "$as_me:$LINENO: result: $ac_cv_have_lchflags" >&5
19168 echo "${ECHO_T}$ac_cv_have_lchflags" >&6; }
19169 if test "$ac_cv_have_lchflags" = cross ; then
19170 { echo "$as_me:$LINENO: checking for lchflags" >&5
19171 echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; }
19172 if test "${ac_cv_func_lchflags+set}" = set; then
19173 echo $ECHO_N "(cached) $ECHO_C" >&6
19174 else
19175 cat >conftest.$ac_ext <<_ACEOF
19176 /* confdefs.h. */
19177 _ACEOF
19178 cat confdefs.h >>conftest.$ac_ext
19179 cat >>conftest.$ac_ext <<_ACEOF
19180 /* end confdefs.h. */
19181 /* Define lchflags to an innocuous variant, in case <limits.h> declares lchflags.
19182 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19183 #define lchflags innocuous_lchflags
19185 /* System header to define __stub macros and hopefully few prototypes,
19186 which can conflict with char lchflags (); below.
19187 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19188 <limits.h> exists even on freestanding compilers. */
19190 #ifdef __STDC__
19191 # include <limits.h>
19192 #else
19193 # include <assert.h>
19194 #endif
19196 #undef lchflags
19198 /* Override any GCC internal prototype to avoid an error.
19199 Use char because int might match the return type of a GCC
19200 builtin and then its argument prototype would still apply. */
19201 #ifdef __cplusplus
19202 extern "C"
19203 #endif
19204 char lchflags ();
19205 /* The GNU C library defines this for functions which it implements
19206 to always fail with ENOSYS. Some functions are actually named
19207 something starting with __ and the normal name is an alias. */
19208 #if defined __stub_lchflags || defined __stub___lchflags
19209 choke me
19210 #endif
19213 main ()
19215 return lchflags ();
19217 return 0;
19219 _ACEOF
19220 rm -f conftest.$ac_objext conftest$ac_exeext
19221 if { (ac_try="$ac_link"
19222 case "(($ac_try" in
19223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19224 *) ac_try_echo=$ac_try;;
19225 esac
19226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19227 (eval "$ac_link") 2>conftest.er1
19228 ac_status=$?
19229 grep -v '^ *+' conftest.er1 >conftest.err
19230 rm -f conftest.er1
19231 cat conftest.err >&5
19232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19233 (exit $ac_status); } && {
19234 test -z "$ac_c_werror_flag" ||
19235 test ! -s conftest.err
19236 } && test -s conftest$ac_exeext &&
19237 $as_test_x conftest$ac_exeext; then
19238 ac_cv_func_lchflags=yes
19239 else
19240 echo "$as_me: failed program was:" >&5
19241 sed 's/^/| /' conftest.$ac_ext >&5
19243 ac_cv_func_lchflags=no
19246 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19247 conftest$ac_exeext conftest.$ac_ext
19249 { echo "$as_me:$LINENO: result: $ac_cv_func_lchflags" >&5
19250 echo "${ECHO_T}$ac_cv_func_lchflags" >&6; }
19251 if test $ac_cv_func_lchflags = yes; then
19252 ac_cv_have_lchflags="yes"
19253 else
19254 ac_cv_have_lchflags="no"
19258 if test "$ac_cv_have_lchflags" = yes ; then
19260 cat >>confdefs.h <<\_ACEOF
19261 #define HAVE_LCHFLAGS 1
19262 _ACEOF
19266 case $ac_sys_system/$ac_sys_release in
19267 Darwin/*)
19268 _CUR_CFLAGS="${CFLAGS}"
19269 _CUR_LDFLAGS="${LDFLAGS}"
19270 CFLAGS="${CFLAGS} -Wl,-search_paths_first"
19271 LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
19273 esac
19275 { echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5
19276 echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6; }
19277 if test "${ac_cv_lib_z_inflateCopy+set}" = set; then
19278 echo $ECHO_N "(cached) $ECHO_C" >&6
19279 else
19280 ac_check_lib_save_LIBS=$LIBS
19281 LIBS="-lz $LIBS"
19282 cat >conftest.$ac_ext <<_ACEOF
19283 /* confdefs.h. */
19284 _ACEOF
19285 cat confdefs.h >>conftest.$ac_ext
19286 cat >>conftest.$ac_ext <<_ACEOF
19287 /* end confdefs.h. */
19289 /* Override any GCC internal prototype to avoid an error.
19290 Use char because int might match the return type of a GCC
19291 builtin and then its argument prototype would still apply. */
19292 #ifdef __cplusplus
19293 extern "C"
19294 #endif
19295 char inflateCopy ();
19297 main ()
19299 return inflateCopy ();
19301 return 0;
19303 _ACEOF
19304 rm -f conftest.$ac_objext conftest$ac_exeext
19305 if { (ac_try="$ac_link"
19306 case "(($ac_try" in
19307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19308 *) ac_try_echo=$ac_try;;
19309 esac
19310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19311 (eval "$ac_link") 2>conftest.er1
19312 ac_status=$?
19313 grep -v '^ *+' conftest.er1 >conftest.err
19314 rm -f conftest.er1
19315 cat conftest.err >&5
19316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19317 (exit $ac_status); } && {
19318 test -z "$ac_c_werror_flag" ||
19319 test ! -s conftest.err
19320 } && test -s conftest$ac_exeext &&
19321 $as_test_x conftest$ac_exeext; then
19322 ac_cv_lib_z_inflateCopy=yes
19323 else
19324 echo "$as_me: failed program was:" >&5
19325 sed 's/^/| /' conftest.$ac_ext >&5
19327 ac_cv_lib_z_inflateCopy=no
19330 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19331 conftest$ac_exeext conftest.$ac_ext
19332 LIBS=$ac_check_lib_save_LIBS
19334 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5
19335 echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6; }
19336 if test $ac_cv_lib_z_inflateCopy = yes; then
19338 cat >>confdefs.h <<\_ACEOF
19339 #define HAVE_ZLIB_COPY 1
19340 _ACEOF
19345 case $ac_sys_system/$ac_sys_release in
19346 Darwin/*)
19347 CFLAGS="${_CUR_CFLAGS}"
19348 LDFLAGS="${_CUR_LDFLAGS}"
19350 esac
19352 { echo "$as_me:$LINENO: checking for hstrerror" >&5
19353 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6; }
19354 cat >conftest.$ac_ext <<_ACEOF
19355 /* confdefs.h. */
19356 _ACEOF
19357 cat confdefs.h >>conftest.$ac_ext
19358 cat >>conftest.$ac_ext <<_ACEOF
19359 /* end confdefs.h. */
19361 #include "confdefs.h"
19362 #include <netdb.h>
19365 main ()
19367 void* p = hstrerror; hstrerror(0)
19369 return 0;
19371 _ACEOF
19372 rm -f conftest.$ac_objext conftest$ac_exeext
19373 if { (ac_try="$ac_link"
19374 case "(($ac_try" in
19375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19376 *) ac_try_echo=$ac_try;;
19377 esac
19378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19379 (eval "$ac_link") 2>conftest.er1
19380 ac_status=$?
19381 grep -v '^ *+' conftest.er1 >conftest.err
19382 rm -f conftest.er1
19383 cat conftest.err >&5
19384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19385 (exit $ac_status); } && {
19386 test -z "$ac_c_werror_flag" ||
19387 test ! -s conftest.err
19388 } && test -s conftest$ac_exeext &&
19389 $as_test_x conftest$ac_exeext; then
19391 cat >>confdefs.h <<\_ACEOF
19392 #define HAVE_HSTRERROR 1
19393 _ACEOF
19395 { echo "$as_me:$LINENO: result: yes" >&5
19396 echo "${ECHO_T}yes" >&6; }
19397 else
19398 echo "$as_me: failed program was:" >&5
19399 sed 's/^/| /' conftest.$ac_ext >&5
19401 { echo "$as_me:$LINENO: result: no" >&5
19402 echo "${ECHO_T}no" >&6; }
19406 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19407 conftest$ac_exeext conftest.$ac_ext
19409 { echo "$as_me:$LINENO: checking for inet_aton" >&5
19410 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
19411 cat >conftest.$ac_ext <<_ACEOF
19412 /* confdefs.h. */
19413 _ACEOF
19414 cat confdefs.h >>conftest.$ac_ext
19415 cat >>conftest.$ac_ext <<_ACEOF
19416 /* end confdefs.h. */
19418 #include "confdefs.h"
19419 #include <sys/types.h>
19420 #include <sys/socket.h>
19421 #include <netinet/in.h>
19422 #include <arpa/inet.h>
19425 main ()
19427 void* p = inet_aton;inet_aton(0,0)
19429 return 0;
19431 _ACEOF
19432 rm -f conftest.$ac_objext conftest$ac_exeext
19433 if { (ac_try="$ac_link"
19434 case "(($ac_try" in
19435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19436 *) ac_try_echo=$ac_try;;
19437 esac
19438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19439 (eval "$ac_link") 2>conftest.er1
19440 ac_status=$?
19441 grep -v '^ *+' conftest.er1 >conftest.err
19442 rm -f conftest.er1
19443 cat conftest.err >&5
19444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19445 (exit $ac_status); } && {
19446 test -z "$ac_c_werror_flag" ||
19447 test ! -s conftest.err
19448 } && test -s conftest$ac_exeext &&
19449 $as_test_x conftest$ac_exeext; then
19451 cat >>confdefs.h <<\_ACEOF
19452 #define HAVE_INET_ATON 1
19453 _ACEOF
19455 { echo "$as_me:$LINENO: result: yes" >&5
19456 echo "${ECHO_T}yes" >&6; }
19457 else
19458 echo "$as_me: failed program was:" >&5
19459 sed 's/^/| /' conftest.$ac_ext >&5
19461 { echo "$as_me:$LINENO: result: no" >&5
19462 echo "${ECHO_T}no" >&6; }
19466 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19467 conftest$ac_exeext conftest.$ac_ext
19469 { echo "$as_me:$LINENO: checking for inet_pton" >&5
19470 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
19471 cat >conftest.$ac_ext <<_ACEOF
19472 /* confdefs.h. */
19473 _ACEOF
19474 cat confdefs.h >>conftest.$ac_ext
19475 cat >>conftest.$ac_ext <<_ACEOF
19476 /* end confdefs.h. */
19478 #include "confdefs.h"
19479 #include <sys/types.h>
19480 #include <sys/socket.h>
19481 #include <netinet/in.h>
19482 #include <arpa/inet.h>
19485 main ()
19487 void* p = inet_pton
19489 return 0;
19491 _ACEOF
19492 rm -f conftest.$ac_objext
19493 if { (ac_try="$ac_compile"
19494 case "(($ac_try" in
19495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19496 *) ac_try_echo=$ac_try;;
19497 esac
19498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19499 (eval "$ac_compile") 2>conftest.er1
19500 ac_status=$?
19501 grep -v '^ *+' conftest.er1 >conftest.err
19502 rm -f conftest.er1
19503 cat conftest.err >&5
19504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19505 (exit $ac_status); } && {
19506 test -z "$ac_c_werror_flag" ||
19507 test ! -s conftest.err
19508 } && test -s conftest.$ac_objext; then
19510 cat >>confdefs.h <<\_ACEOF
19511 #define HAVE_INET_PTON 1
19512 _ACEOF
19514 { echo "$as_me:$LINENO: result: yes" >&5
19515 echo "${ECHO_T}yes" >&6; }
19516 else
19517 echo "$as_me: failed program was:" >&5
19518 sed 's/^/| /' conftest.$ac_ext >&5
19520 { echo "$as_me:$LINENO: result: no" >&5
19521 echo "${ECHO_T}no" >&6; }
19525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19527 # On some systems, setgroups is in unistd.h, on others, in grp.h
19528 { echo "$as_me:$LINENO: checking for setgroups" >&5
19529 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6; }
19530 cat >conftest.$ac_ext <<_ACEOF
19531 /* confdefs.h. */
19532 _ACEOF
19533 cat confdefs.h >>conftest.$ac_ext
19534 cat >>conftest.$ac_ext <<_ACEOF
19535 /* end confdefs.h. */
19537 #include "confdefs.h"
19538 #include <unistd.h>
19539 #ifdef HAVE_GRP_H
19540 #include <grp.h>
19541 #endif
19544 main ()
19546 void* p = setgroups
19548 return 0;
19550 _ACEOF
19551 rm -f conftest.$ac_objext
19552 if { (ac_try="$ac_compile"
19553 case "(($ac_try" in
19554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19555 *) ac_try_echo=$ac_try;;
19556 esac
19557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19558 (eval "$ac_compile") 2>conftest.er1
19559 ac_status=$?
19560 grep -v '^ *+' conftest.er1 >conftest.err
19561 rm -f conftest.er1
19562 cat conftest.err >&5
19563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19564 (exit $ac_status); } && {
19565 test -z "$ac_c_werror_flag" ||
19566 test ! -s conftest.err
19567 } && test -s conftest.$ac_objext; then
19569 cat >>confdefs.h <<\_ACEOF
19570 #define HAVE_SETGROUPS 1
19571 _ACEOF
19573 { echo "$as_me:$LINENO: result: yes" >&5
19574 echo "${ECHO_T}yes" >&6; }
19575 else
19576 echo "$as_me: failed program was:" >&5
19577 sed 's/^/| /' conftest.$ac_ext >&5
19579 { echo "$as_me:$LINENO: result: no" >&5
19580 echo "${ECHO_T}no" >&6; }
19584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19586 # check for openpty and forkpty
19589 for ac_func in openpty
19591 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19592 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19593 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19594 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19595 echo $ECHO_N "(cached) $ECHO_C" >&6
19596 else
19597 cat >conftest.$ac_ext <<_ACEOF
19598 /* confdefs.h. */
19599 _ACEOF
19600 cat confdefs.h >>conftest.$ac_ext
19601 cat >>conftest.$ac_ext <<_ACEOF
19602 /* end confdefs.h. */
19603 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19604 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19605 #define $ac_func innocuous_$ac_func
19607 /* System header to define __stub macros and hopefully few prototypes,
19608 which can conflict with char $ac_func (); below.
19609 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19610 <limits.h> exists even on freestanding compilers. */
19612 #ifdef __STDC__
19613 # include <limits.h>
19614 #else
19615 # include <assert.h>
19616 #endif
19618 #undef $ac_func
19620 /* Override any GCC internal prototype to avoid an error.
19621 Use char because int might match the return type of a GCC
19622 builtin and then its argument prototype would still apply. */
19623 #ifdef __cplusplus
19624 extern "C"
19625 #endif
19626 char $ac_func ();
19627 /* The GNU C library defines this for functions which it implements
19628 to always fail with ENOSYS. Some functions are actually named
19629 something starting with __ and the normal name is an alias. */
19630 #if defined __stub_$ac_func || defined __stub___$ac_func
19631 choke me
19632 #endif
19635 main ()
19637 return $ac_func ();
19639 return 0;
19641 _ACEOF
19642 rm -f conftest.$ac_objext conftest$ac_exeext
19643 if { (ac_try="$ac_link"
19644 case "(($ac_try" in
19645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19646 *) ac_try_echo=$ac_try;;
19647 esac
19648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19649 (eval "$ac_link") 2>conftest.er1
19650 ac_status=$?
19651 grep -v '^ *+' conftest.er1 >conftest.err
19652 rm -f conftest.er1
19653 cat conftest.err >&5
19654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19655 (exit $ac_status); } && {
19656 test -z "$ac_c_werror_flag" ||
19657 test ! -s conftest.err
19658 } && test -s conftest$ac_exeext &&
19659 $as_test_x conftest$ac_exeext; then
19660 eval "$as_ac_var=yes"
19661 else
19662 echo "$as_me: failed program was:" >&5
19663 sed 's/^/| /' conftest.$ac_ext >&5
19665 eval "$as_ac_var=no"
19668 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19669 conftest$ac_exeext conftest.$ac_ext
19671 ac_res=`eval echo '${'$as_ac_var'}'`
19672 { echo "$as_me:$LINENO: result: $ac_res" >&5
19673 echo "${ECHO_T}$ac_res" >&6; }
19674 if test `eval echo '${'$as_ac_var'}'` = yes; then
19675 cat >>confdefs.h <<_ACEOF
19676 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19677 _ACEOF
19679 else
19680 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
19681 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
19682 if test "${ac_cv_lib_util_openpty+set}" = set; then
19683 echo $ECHO_N "(cached) $ECHO_C" >&6
19684 else
19685 ac_check_lib_save_LIBS=$LIBS
19686 LIBS="-lutil $LIBS"
19687 cat >conftest.$ac_ext <<_ACEOF
19688 /* confdefs.h. */
19689 _ACEOF
19690 cat confdefs.h >>conftest.$ac_ext
19691 cat >>conftest.$ac_ext <<_ACEOF
19692 /* end confdefs.h. */
19694 /* Override any GCC internal prototype to avoid an error.
19695 Use char because int might match the return type of a GCC
19696 builtin and then its argument prototype would still apply. */
19697 #ifdef __cplusplus
19698 extern "C"
19699 #endif
19700 char openpty ();
19702 main ()
19704 return openpty ();
19706 return 0;
19708 _ACEOF
19709 rm -f conftest.$ac_objext conftest$ac_exeext
19710 if { (ac_try="$ac_link"
19711 case "(($ac_try" in
19712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19713 *) ac_try_echo=$ac_try;;
19714 esac
19715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19716 (eval "$ac_link") 2>conftest.er1
19717 ac_status=$?
19718 grep -v '^ *+' conftest.er1 >conftest.err
19719 rm -f conftest.er1
19720 cat conftest.err >&5
19721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19722 (exit $ac_status); } && {
19723 test -z "$ac_c_werror_flag" ||
19724 test ! -s conftest.err
19725 } && test -s conftest$ac_exeext &&
19726 $as_test_x conftest$ac_exeext; then
19727 ac_cv_lib_util_openpty=yes
19728 else
19729 echo "$as_me: failed program was:" >&5
19730 sed 's/^/| /' conftest.$ac_ext >&5
19732 ac_cv_lib_util_openpty=no
19735 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19736 conftest$ac_exeext conftest.$ac_ext
19737 LIBS=$ac_check_lib_save_LIBS
19739 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
19740 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
19741 if test $ac_cv_lib_util_openpty = yes; then
19742 cat >>confdefs.h <<\_ACEOF
19743 #define HAVE_OPENPTY 1
19744 _ACEOF
19745 LIBS="$LIBS -lutil"
19746 else
19747 { echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
19748 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6; }
19749 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
19750 echo $ECHO_N "(cached) $ECHO_C" >&6
19751 else
19752 ac_check_lib_save_LIBS=$LIBS
19753 LIBS="-lbsd $LIBS"
19754 cat >conftest.$ac_ext <<_ACEOF
19755 /* confdefs.h. */
19756 _ACEOF
19757 cat confdefs.h >>conftest.$ac_ext
19758 cat >>conftest.$ac_ext <<_ACEOF
19759 /* end confdefs.h. */
19761 /* Override any GCC internal prototype to avoid an error.
19762 Use char because int might match the return type of a GCC
19763 builtin and then its argument prototype would still apply. */
19764 #ifdef __cplusplus
19765 extern "C"
19766 #endif
19767 char openpty ();
19769 main ()
19771 return openpty ();
19773 return 0;
19775 _ACEOF
19776 rm -f conftest.$ac_objext conftest$ac_exeext
19777 if { (ac_try="$ac_link"
19778 case "(($ac_try" in
19779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19780 *) ac_try_echo=$ac_try;;
19781 esac
19782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19783 (eval "$ac_link") 2>conftest.er1
19784 ac_status=$?
19785 grep -v '^ *+' conftest.er1 >conftest.err
19786 rm -f conftest.er1
19787 cat conftest.err >&5
19788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19789 (exit $ac_status); } && {
19790 test -z "$ac_c_werror_flag" ||
19791 test ! -s conftest.err
19792 } && test -s conftest$ac_exeext &&
19793 $as_test_x conftest$ac_exeext; then
19794 ac_cv_lib_bsd_openpty=yes
19795 else
19796 echo "$as_me: failed program was:" >&5
19797 sed 's/^/| /' conftest.$ac_ext >&5
19799 ac_cv_lib_bsd_openpty=no
19802 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19803 conftest$ac_exeext conftest.$ac_ext
19804 LIBS=$ac_check_lib_save_LIBS
19806 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
19807 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6; }
19808 if test $ac_cv_lib_bsd_openpty = yes; then
19809 cat >>confdefs.h <<\_ACEOF
19810 #define HAVE_OPENPTY 1
19811 _ACEOF
19812 LIBS="$LIBS -lbsd"
19820 done
19823 for ac_func in forkpty
19825 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19826 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19827 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19828 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19829 echo $ECHO_N "(cached) $ECHO_C" >&6
19830 else
19831 cat >conftest.$ac_ext <<_ACEOF
19832 /* confdefs.h. */
19833 _ACEOF
19834 cat confdefs.h >>conftest.$ac_ext
19835 cat >>conftest.$ac_ext <<_ACEOF
19836 /* end confdefs.h. */
19837 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19838 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19839 #define $ac_func innocuous_$ac_func
19841 /* System header to define __stub macros and hopefully few prototypes,
19842 which can conflict with char $ac_func (); below.
19843 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19844 <limits.h> exists even on freestanding compilers. */
19846 #ifdef __STDC__
19847 # include <limits.h>
19848 #else
19849 # include <assert.h>
19850 #endif
19852 #undef $ac_func
19854 /* Override any GCC internal prototype to avoid an error.
19855 Use char because int might match the return type of a GCC
19856 builtin and then its argument prototype would still apply. */
19857 #ifdef __cplusplus
19858 extern "C"
19859 #endif
19860 char $ac_func ();
19861 /* The GNU C library defines this for functions which it implements
19862 to always fail with ENOSYS. Some functions are actually named
19863 something starting with __ and the normal name is an alias. */
19864 #if defined __stub_$ac_func || defined __stub___$ac_func
19865 choke me
19866 #endif
19869 main ()
19871 return $ac_func ();
19873 return 0;
19875 _ACEOF
19876 rm -f conftest.$ac_objext conftest$ac_exeext
19877 if { (ac_try="$ac_link"
19878 case "(($ac_try" in
19879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19880 *) ac_try_echo=$ac_try;;
19881 esac
19882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19883 (eval "$ac_link") 2>conftest.er1
19884 ac_status=$?
19885 grep -v '^ *+' conftest.er1 >conftest.err
19886 rm -f conftest.er1
19887 cat conftest.err >&5
19888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19889 (exit $ac_status); } && {
19890 test -z "$ac_c_werror_flag" ||
19891 test ! -s conftest.err
19892 } && test -s conftest$ac_exeext &&
19893 $as_test_x conftest$ac_exeext; then
19894 eval "$as_ac_var=yes"
19895 else
19896 echo "$as_me: failed program was:" >&5
19897 sed 's/^/| /' conftest.$ac_ext >&5
19899 eval "$as_ac_var=no"
19902 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19903 conftest$ac_exeext conftest.$ac_ext
19905 ac_res=`eval echo '${'$as_ac_var'}'`
19906 { echo "$as_me:$LINENO: result: $ac_res" >&5
19907 echo "${ECHO_T}$ac_res" >&6; }
19908 if test `eval echo '${'$as_ac_var'}'` = yes; then
19909 cat >>confdefs.h <<_ACEOF
19910 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19911 _ACEOF
19913 else
19914 { echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
19915 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6; }
19916 if test "${ac_cv_lib_util_forkpty+set}" = set; then
19917 echo $ECHO_N "(cached) $ECHO_C" >&6
19918 else
19919 ac_check_lib_save_LIBS=$LIBS
19920 LIBS="-lutil $LIBS"
19921 cat >conftest.$ac_ext <<_ACEOF
19922 /* confdefs.h. */
19923 _ACEOF
19924 cat confdefs.h >>conftest.$ac_ext
19925 cat >>conftest.$ac_ext <<_ACEOF
19926 /* end confdefs.h. */
19928 /* Override any GCC internal prototype to avoid an error.
19929 Use char because int might match the return type of a GCC
19930 builtin and then its argument prototype would still apply. */
19931 #ifdef __cplusplus
19932 extern "C"
19933 #endif
19934 char forkpty ();
19936 main ()
19938 return forkpty ();
19940 return 0;
19942 _ACEOF
19943 rm -f conftest.$ac_objext conftest$ac_exeext
19944 if { (ac_try="$ac_link"
19945 case "(($ac_try" in
19946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19947 *) ac_try_echo=$ac_try;;
19948 esac
19949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19950 (eval "$ac_link") 2>conftest.er1
19951 ac_status=$?
19952 grep -v '^ *+' conftest.er1 >conftest.err
19953 rm -f conftest.er1
19954 cat conftest.err >&5
19955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19956 (exit $ac_status); } && {
19957 test -z "$ac_c_werror_flag" ||
19958 test ! -s conftest.err
19959 } && test -s conftest$ac_exeext &&
19960 $as_test_x conftest$ac_exeext; then
19961 ac_cv_lib_util_forkpty=yes
19962 else
19963 echo "$as_me: failed program was:" >&5
19964 sed 's/^/| /' conftest.$ac_ext >&5
19966 ac_cv_lib_util_forkpty=no
19969 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19970 conftest$ac_exeext conftest.$ac_ext
19971 LIBS=$ac_check_lib_save_LIBS
19973 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
19974 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6; }
19975 if test $ac_cv_lib_util_forkpty = yes; then
19976 cat >>confdefs.h <<\_ACEOF
19977 #define HAVE_FORKPTY 1
19978 _ACEOF
19979 LIBS="$LIBS -lutil"
19980 else
19981 { echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
19982 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6; }
19983 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
19984 echo $ECHO_N "(cached) $ECHO_C" >&6
19985 else
19986 ac_check_lib_save_LIBS=$LIBS
19987 LIBS="-lbsd $LIBS"
19988 cat >conftest.$ac_ext <<_ACEOF
19989 /* confdefs.h. */
19990 _ACEOF
19991 cat confdefs.h >>conftest.$ac_ext
19992 cat >>conftest.$ac_ext <<_ACEOF
19993 /* end confdefs.h. */
19995 /* Override any GCC internal prototype to avoid an error.
19996 Use char because int might match the return type of a GCC
19997 builtin and then its argument prototype would still apply. */
19998 #ifdef __cplusplus
19999 extern "C"
20000 #endif
20001 char forkpty ();
20003 main ()
20005 return forkpty ();
20007 return 0;
20009 _ACEOF
20010 rm -f conftest.$ac_objext conftest$ac_exeext
20011 if { (ac_try="$ac_link"
20012 case "(($ac_try" in
20013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20014 *) ac_try_echo=$ac_try;;
20015 esac
20016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20017 (eval "$ac_link") 2>conftest.er1
20018 ac_status=$?
20019 grep -v '^ *+' conftest.er1 >conftest.err
20020 rm -f conftest.er1
20021 cat conftest.err >&5
20022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20023 (exit $ac_status); } && {
20024 test -z "$ac_c_werror_flag" ||
20025 test ! -s conftest.err
20026 } && test -s conftest$ac_exeext &&
20027 $as_test_x conftest$ac_exeext; then
20028 ac_cv_lib_bsd_forkpty=yes
20029 else
20030 echo "$as_me: failed program was:" >&5
20031 sed 's/^/| /' conftest.$ac_ext >&5
20033 ac_cv_lib_bsd_forkpty=no
20036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20037 conftest$ac_exeext conftest.$ac_ext
20038 LIBS=$ac_check_lib_save_LIBS
20040 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
20041 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6; }
20042 if test $ac_cv_lib_bsd_forkpty = yes; then
20043 cat >>confdefs.h <<\_ACEOF
20044 #define HAVE_FORKPTY 1
20045 _ACEOF
20046 LIBS="$LIBS -lbsd"
20054 done
20057 # Stuff for expat.
20059 for ac_func in memmove
20061 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20062 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20063 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20064 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20065 echo $ECHO_N "(cached) $ECHO_C" >&6
20066 else
20067 cat >conftest.$ac_ext <<_ACEOF
20068 /* confdefs.h. */
20069 _ACEOF
20070 cat confdefs.h >>conftest.$ac_ext
20071 cat >>conftest.$ac_ext <<_ACEOF
20072 /* end confdefs.h. */
20073 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20074 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20075 #define $ac_func innocuous_$ac_func
20077 /* System header to define __stub macros and hopefully few prototypes,
20078 which can conflict with char $ac_func (); below.
20079 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20080 <limits.h> exists even on freestanding compilers. */
20082 #ifdef __STDC__
20083 # include <limits.h>
20084 #else
20085 # include <assert.h>
20086 #endif
20088 #undef $ac_func
20090 /* Override any GCC internal prototype to avoid an error.
20091 Use char because int might match the return type of a GCC
20092 builtin and then its argument prototype would still apply. */
20093 #ifdef __cplusplus
20094 extern "C"
20095 #endif
20096 char $ac_func ();
20097 /* The GNU C library defines this for functions which it implements
20098 to always fail with ENOSYS. Some functions are actually named
20099 something starting with __ and the normal name is an alias. */
20100 #if defined __stub_$ac_func || defined __stub___$ac_func
20101 choke me
20102 #endif
20105 main ()
20107 return $ac_func ();
20109 return 0;
20111 _ACEOF
20112 rm -f conftest.$ac_objext conftest$ac_exeext
20113 if { (ac_try="$ac_link"
20114 case "(($ac_try" in
20115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20116 *) ac_try_echo=$ac_try;;
20117 esac
20118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20119 (eval "$ac_link") 2>conftest.er1
20120 ac_status=$?
20121 grep -v '^ *+' conftest.er1 >conftest.err
20122 rm -f conftest.er1
20123 cat conftest.err >&5
20124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20125 (exit $ac_status); } && {
20126 test -z "$ac_c_werror_flag" ||
20127 test ! -s conftest.err
20128 } && test -s conftest$ac_exeext &&
20129 $as_test_x conftest$ac_exeext; then
20130 eval "$as_ac_var=yes"
20131 else
20132 echo "$as_me: failed program was:" >&5
20133 sed 's/^/| /' conftest.$ac_ext >&5
20135 eval "$as_ac_var=no"
20138 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20139 conftest$ac_exeext conftest.$ac_ext
20141 ac_res=`eval echo '${'$as_ac_var'}'`
20142 { echo "$as_me:$LINENO: result: $ac_res" >&5
20143 echo "${ECHO_T}$ac_res" >&6; }
20144 if test `eval echo '${'$as_ac_var'}'` = yes; then
20145 cat >>confdefs.h <<_ACEOF
20146 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20147 _ACEOF
20150 done
20153 # check for long file support functions
20160 for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
20162 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20163 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20164 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20165 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20166 echo $ECHO_N "(cached) $ECHO_C" >&6
20167 else
20168 cat >conftest.$ac_ext <<_ACEOF
20169 /* confdefs.h. */
20170 _ACEOF
20171 cat confdefs.h >>conftest.$ac_ext
20172 cat >>conftest.$ac_ext <<_ACEOF
20173 /* end confdefs.h. */
20174 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20175 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20176 #define $ac_func innocuous_$ac_func
20178 /* System header to define __stub macros and hopefully few prototypes,
20179 which can conflict with char $ac_func (); below.
20180 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20181 <limits.h> exists even on freestanding compilers. */
20183 #ifdef __STDC__
20184 # include <limits.h>
20185 #else
20186 # include <assert.h>
20187 #endif
20189 #undef $ac_func
20191 /* Override any GCC internal prototype to avoid an error.
20192 Use char because int might match the return type of a GCC
20193 builtin and then its argument prototype would still apply. */
20194 #ifdef __cplusplus
20195 extern "C"
20196 #endif
20197 char $ac_func ();
20198 /* The GNU C library defines this for functions which it implements
20199 to always fail with ENOSYS. Some functions are actually named
20200 something starting with __ and the normal name is an alias. */
20201 #if defined __stub_$ac_func || defined __stub___$ac_func
20202 choke me
20203 #endif
20206 main ()
20208 return $ac_func ();
20210 return 0;
20212 _ACEOF
20213 rm -f conftest.$ac_objext conftest$ac_exeext
20214 if { (ac_try="$ac_link"
20215 case "(($ac_try" in
20216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20217 *) ac_try_echo=$ac_try;;
20218 esac
20219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20220 (eval "$ac_link") 2>conftest.er1
20221 ac_status=$?
20222 grep -v '^ *+' conftest.er1 >conftest.err
20223 rm -f conftest.er1
20224 cat conftest.err >&5
20225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20226 (exit $ac_status); } && {
20227 test -z "$ac_c_werror_flag" ||
20228 test ! -s conftest.err
20229 } && test -s conftest$ac_exeext &&
20230 $as_test_x conftest$ac_exeext; then
20231 eval "$as_ac_var=yes"
20232 else
20233 echo "$as_me: failed program was:" >&5
20234 sed 's/^/| /' conftest.$ac_ext >&5
20236 eval "$as_ac_var=no"
20239 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20240 conftest$ac_exeext conftest.$ac_ext
20242 ac_res=`eval echo '${'$as_ac_var'}'`
20243 { echo "$as_me:$LINENO: result: $ac_res" >&5
20244 echo "${ECHO_T}$ac_res" >&6; }
20245 if test `eval echo '${'$as_ac_var'}'` = yes; then
20246 cat >>confdefs.h <<_ACEOF
20247 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20248 _ACEOF
20251 done
20257 for ac_func in dup2 getcwd strdup
20259 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20260 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20261 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20262 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20263 echo $ECHO_N "(cached) $ECHO_C" >&6
20264 else
20265 cat >conftest.$ac_ext <<_ACEOF
20266 /* confdefs.h. */
20267 _ACEOF
20268 cat confdefs.h >>conftest.$ac_ext
20269 cat >>conftest.$ac_ext <<_ACEOF
20270 /* end confdefs.h. */
20271 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20272 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20273 #define $ac_func innocuous_$ac_func
20275 /* System header to define __stub macros and hopefully few prototypes,
20276 which can conflict with char $ac_func (); below.
20277 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20278 <limits.h> exists even on freestanding compilers. */
20280 #ifdef __STDC__
20281 # include <limits.h>
20282 #else
20283 # include <assert.h>
20284 #endif
20286 #undef $ac_func
20288 /* Override any GCC internal prototype to avoid an error.
20289 Use char because int might match the return type of a GCC
20290 builtin and then its argument prototype would still apply. */
20291 #ifdef __cplusplus
20292 extern "C"
20293 #endif
20294 char $ac_func ();
20295 /* The GNU C library defines this for functions which it implements
20296 to always fail with ENOSYS. Some functions are actually named
20297 something starting with __ and the normal name is an alias. */
20298 #if defined __stub_$ac_func || defined __stub___$ac_func
20299 choke me
20300 #endif
20303 main ()
20305 return $ac_func ();
20307 return 0;
20309 _ACEOF
20310 rm -f conftest.$ac_objext conftest$ac_exeext
20311 if { (ac_try="$ac_link"
20312 case "(($ac_try" in
20313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20314 *) ac_try_echo=$ac_try;;
20315 esac
20316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20317 (eval "$ac_link") 2>conftest.er1
20318 ac_status=$?
20319 grep -v '^ *+' conftest.er1 >conftest.err
20320 rm -f conftest.er1
20321 cat conftest.err >&5
20322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20323 (exit $ac_status); } && {
20324 test -z "$ac_c_werror_flag" ||
20325 test ! -s conftest.err
20326 } && test -s conftest$ac_exeext &&
20327 $as_test_x conftest$ac_exeext; then
20328 eval "$as_ac_var=yes"
20329 else
20330 echo "$as_me: failed program was:" >&5
20331 sed 's/^/| /' conftest.$ac_ext >&5
20333 eval "$as_ac_var=no"
20336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20337 conftest$ac_exeext conftest.$ac_ext
20339 ac_res=`eval echo '${'$as_ac_var'}'`
20340 { echo "$as_me:$LINENO: result: $ac_res" >&5
20341 echo "${ECHO_T}$ac_res" >&6; }
20342 if test `eval echo '${'$as_ac_var'}'` = yes; then
20343 cat >>confdefs.h <<_ACEOF
20344 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20345 _ACEOF
20347 else
20348 case " $LIBOBJS " in
20349 *" $ac_func.$ac_objext "* ) ;;
20350 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20352 esac
20355 done
20359 for ac_func in getpgrp
20361 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20362 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20363 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20364 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20365 echo $ECHO_N "(cached) $ECHO_C" >&6
20366 else
20367 cat >conftest.$ac_ext <<_ACEOF
20368 /* confdefs.h. */
20369 _ACEOF
20370 cat confdefs.h >>conftest.$ac_ext
20371 cat >>conftest.$ac_ext <<_ACEOF
20372 /* end confdefs.h. */
20373 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20374 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20375 #define $ac_func innocuous_$ac_func
20377 /* System header to define __stub macros and hopefully few prototypes,
20378 which can conflict with char $ac_func (); below.
20379 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20380 <limits.h> exists even on freestanding compilers. */
20382 #ifdef __STDC__
20383 # include <limits.h>
20384 #else
20385 # include <assert.h>
20386 #endif
20388 #undef $ac_func
20390 /* Override any GCC internal prototype to avoid an error.
20391 Use char because int might match the return type of a GCC
20392 builtin and then its argument prototype would still apply. */
20393 #ifdef __cplusplus
20394 extern "C"
20395 #endif
20396 char $ac_func ();
20397 /* The GNU C library defines this for functions which it implements
20398 to always fail with ENOSYS. Some functions are actually named
20399 something starting with __ and the normal name is an alias. */
20400 #if defined __stub_$ac_func || defined __stub___$ac_func
20401 choke me
20402 #endif
20405 main ()
20407 return $ac_func ();
20409 return 0;
20411 _ACEOF
20412 rm -f conftest.$ac_objext conftest$ac_exeext
20413 if { (ac_try="$ac_link"
20414 case "(($ac_try" in
20415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20416 *) ac_try_echo=$ac_try;;
20417 esac
20418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20419 (eval "$ac_link") 2>conftest.er1
20420 ac_status=$?
20421 grep -v '^ *+' conftest.er1 >conftest.err
20422 rm -f conftest.er1
20423 cat conftest.err >&5
20424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20425 (exit $ac_status); } && {
20426 test -z "$ac_c_werror_flag" ||
20427 test ! -s conftest.err
20428 } && test -s conftest$ac_exeext &&
20429 $as_test_x conftest$ac_exeext; then
20430 eval "$as_ac_var=yes"
20431 else
20432 echo "$as_me: failed program was:" >&5
20433 sed 's/^/| /' conftest.$ac_ext >&5
20435 eval "$as_ac_var=no"
20438 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20439 conftest$ac_exeext conftest.$ac_ext
20441 ac_res=`eval echo '${'$as_ac_var'}'`
20442 { echo "$as_me:$LINENO: result: $ac_res" >&5
20443 echo "${ECHO_T}$ac_res" >&6; }
20444 if test `eval echo '${'$as_ac_var'}'` = yes; then
20445 cat >>confdefs.h <<_ACEOF
20446 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20447 _ACEOF
20448 cat >conftest.$ac_ext <<_ACEOF
20449 /* confdefs.h. */
20450 _ACEOF
20451 cat confdefs.h >>conftest.$ac_ext
20452 cat >>conftest.$ac_ext <<_ACEOF
20453 /* end confdefs.h. */
20454 #include <unistd.h>
20456 main ()
20458 getpgrp(0);
20460 return 0;
20462 _ACEOF
20463 rm -f conftest.$ac_objext
20464 if { (ac_try="$ac_compile"
20465 case "(($ac_try" in
20466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20467 *) ac_try_echo=$ac_try;;
20468 esac
20469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20470 (eval "$ac_compile") 2>conftest.er1
20471 ac_status=$?
20472 grep -v '^ *+' conftest.er1 >conftest.err
20473 rm -f conftest.er1
20474 cat conftest.err >&5
20475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20476 (exit $ac_status); } && {
20477 test -z "$ac_c_werror_flag" ||
20478 test ! -s conftest.err
20479 } && test -s conftest.$ac_objext; then
20481 cat >>confdefs.h <<\_ACEOF
20482 #define GETPGRP_HAVE_ARG 1
20483 _ACEOF
20486 else
20487 echo "$as_me: failed program was:" >&5
20488 sed 's/^/| /' conftest.$ac_ext >&5
20493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20496 done
20499 for ac_func in setpgrp
20501 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20502 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20503 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20504 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20505 echo $ECHO_N "(cached) $ECHO_C" >&6
20506 else
20507 cat >conftest.$ac_ext <<_ACEOF
20508 /* confdefs.h. */
20509 _ACEOF
20510 cat confdefs.h >>conftest.$ac_ext
20511 cat >>conftest.$ac_ext <<_ACEOF
20512 /* end confdefs.h. */
20513 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20514 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20515 #define $ac_func innocuous_$ac_func
20517 /* System header to define __stub macros and hopefully few prototypes,
20518 which can conflict with char $ac_func (); below.
20519 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20520 <limits.h> exists even on freestanding compilers. */
20522 #ifdef __STDC__
20523 # include <limits.h>
20524 #else
20525 # include <assert.h>
20526 #endif
20528 #undef $ac_func
20530 /* Override any GCC internal prototype to avoid an error.
20531 Use char because int might match the return type of a GCC
20532 builtin and then its argument prototype would still apply. */
20533 #ifdef __cplusplus
20534 extern "C"
20535 #endif
20536 char $ac_func ();
20537 /* The GNU C library defines this for functions which it implements
20538 to always fail with ENOSYS. Some functions are actually named
20539 something starting with __ and the normal name is an alias. */
20540 #if defined __stub_$ac_func || defined __stub___$ac_func
20541 choke me
20542 #endif
20545 main ()
20547 return $ac_func ();
20549 return 0;
20551 _ACEOF
20552 rm -f conftest.$ac_objext conftest$ac_exeext
20553 if { (ac_try="$ac_link"
20554 case "(($ac_try" in
20555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20556 *) ac_try_echo=$ac_try;;
20557 esac
20558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20559 (eval "$ac_link") 2>conftest.er1
20560 ac_status=$?
20561 grep -v '^ *+' conftest.er1 >conftest.err
20562 rm -f conftest.er1
20563 cat conftest.err >&5
20564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20565 (exit $ac_status); } && {
20566 test -z "$ac_c_werror_flag" ||
20567 test ! -s conftest.err
20568 } && test -s conftest$ac_exeext &&
20569 $as_test_x conftest$ac_exeext; then
20570 eval "$as_ac_var=yes"
20571 else
20572 echo "$as_me: failed program was:" >&5
20573 sed 's/^/| /' conftest.$ac_ext >&5
20575 eval "$as_ac_var=no"
20578 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20579 conftest$ac_exeext conftest.$ac_ext
20581 ac_res=`eval echo '${'$as_ac_var'}'`
20582 { echo "$as_me:$LINENO: result: $ac_res" >&5
20583 echo "${ECHO_T}$ac_res" >&6; }
20584 if test `eval echo '${'$as_ac_var'}'` = yes; then
20585 cat >>confdefs.h <<_ACEOF
20586 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20587 _ACEOF
20588 cat >conftest.$ac_ext <<_ACEOF
20589 /* confdefs.h. */
20590 _ACEOF
20591 cat confdefs.h >>conftest.$ac_ext
20592 cat >>conftest.$ac_ext <<_ACEOF
20593 /* end confdefs.h. */
20594 #include <unistd.h>
20596 main ()
20598 setpgrp(0,0);
20600 return 0;
20602 _ACEOF
20603 rm -f conftest.$ac_objext
20604 if { (ac_try="$ac_compile"
20605 case "(($ac_try" in
20606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20607 *) ac_try_echo=$ac_try;;
20608 esac
20609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20610 (eval "$ac_compile") 2>conftest.er1
20611 ac_status=$?
20612 grep -v '^ *+' conftest.er1 >conftest.err
20613 rm -f conftest.er1
20614 cat conftest.err >&5
20615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20616 (exit $ac_status); } && {
20617 test -z "$ac_c_werror_flag" ||
20618 test ! -s conftest.err
20619 } && test -s conftest.$ac_objext; then
20621 cat >>confdefs.h <<\_ACEOF
20622 #define SETPGRP_HAVE_ARG 1
20623 _ACEOF
20626 else
20627 echo "$as_me: failed program was:" >&5
20628 sed 's/^/| /' conftest.$ac_ext >&5
20633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20636 done
20639 for ac_func in gettimeofday
20641 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20642 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20643 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20644 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20645 echo $ECHO_N "(cached) $ECHO_C" >&6
20646 else
20647 cat >conftest.$ac_ext <<_ACEOF
20648 /* confdefs.h. */
20649 _ACEOF
20650 cat confdefs.h >>conftest.$ac_ext
20651 cat >>conftest.$ac_ext <<_ACEOF
20652 /* end confdefs.h. */
20653 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20654 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20655 #define $ac_func innocuous_$ac_func
20657 /* System header to define __stub macros and hopefully few prototypes,
20658 which can conflict with char $ac_func (); below.
20659 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20660 <limits.h> exists even on freestanding compilers. */
20662 #ifdef __STDC__
20663 # include <limits.h>
20664 #else
20665 # include <assert.h>
20666 #endif
20668 #undef $ac_func
20670 /* Override any GCC internal prototype to avoid an error.
20671 Use char because int might match the return type of a GCC
20672 builtin and then its argument prototype would still apply. */
20673 #ifdef __cplusplus
20674 extern "C"
20675 #endif
20676 char $ac_func ();
20677 /* The GNU C library defines this for functions which it implements
20678 to always fail with ENOSYS. Some functions are actually named
20679 something starting with __ and the normal name is an alias. */
20680 #if defined __stub_$ac_func || defined __stub___$ac_func
20681 choke me
20682 #endif
20685 main ()
20687 return $ac_func ();
20689 return 0;
20691 _ACEOF
20692 rm -f conftest.$ac_objext conftest$ac_exeext
20693 if { (ac_try="$ac_link"
20694 case "(($ac_try" in
20695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20696 *) ac_try_echo=$ac_try;;
20697 esac
20698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20699 (eval "$ac_link") 2>conftest.er1
20700 ac_status=$?
20701 grep -v '^ *+' conftest.er1 >conftest.err
20702 rm -f conftest.er1
20703 cat conftest.err >&5
20704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20705 (exit $ac_status); } && {
20706 test -z "$ac_c_werror_flag" ||
20707 test ! -s conftest.err
20708 } && test -s conftest$ac_exeext &&
20709 $as_test_x conftest$ac_exeext; then
20710 eval "$as_ac_var=yes"
20711 else
20712 echo "$as_me: failed program was:" >&5
20713 sed 's/^/| /' conftest.$ac_ext >&5
20715 eval "$as_ac_var=no"
20718 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20719 conftest$ac_exeext conftest.$ac_ext
20721 ac_res=`eval echo '${'$as_ac_var'}'`
20722 { echo "$as_me:$LINENO: result: $ac_res" >&5
20723 echo "${ECHO_T}$ac_res" >&6; }
20724 if test `eval echo '${'$as_ac_var'}'` = yes; then
20725 cat >>confdefs.h <<_ACEOF
20726 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20727 _ACEOF
20728 cat >conftest.$ac_ext <<_ACEOF
20729 /* confdefs.h. */
20730 _ACEOF
20731 cat confdefs.h >>conftest.$ac_ext
20732 cat >>conftest.$ac_ext <<_ACEOF
20733 /* end confdefs.h. */
20734 #include <sys/time.h>
20736 main ()
20738 gettimeofday((struct timeval*)0,(struct timezone*)0);
20740 return 0;
20742 _ACEOF
20743 rm -f conftest.$ac_objext
20744 if { (ac_try="$ac_compile"
20745 case "(($ac_try" in
20746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20747 *) ac_try_echo=$ac_try;;
20748 esac
20749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20750 (eval "$ac_compile") 2>conftest.er1
20751 ac_status=$?
20752 grep -v '^ *+' conftest.er1 >conftest.err
20753 rm -f conftest.er1
20754 cat conftest.err >&5
20755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20756 (exit $ac_status); } && {
20757 test -z "$ac_c_werror_flag" ||
20758 test ! -s conftest.err
20759 } && test -s conftest.$ac_objext; then
20761 else
20762 echo "$as_me: failed program was:" >&5
20763 sed 's/^/| /' conftest.$ac_ext >&5
20766 cat >>confdefs.h <<\_ACEOF
20767 #define GETTIMEOFDAY_NO_TZ 1
20768 _ACEOF
20773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20776 done
20779 { echo "$as_me:$LINENO: checking for major" >&5
20780 echo $ECHO_N "checking for major... $ECHO_C" >&6; }
20781 cat >conftest.$ac_ext <<_ACEOF
20782 /* confdefs.h. */
20783 _ACEOF
20784 cat confdefs.h >>conftest.$ac_ext
20785 cat >>conftest.$ac_ext <<_ACEOF
20786 /* end confdefs.h. */
20788 #if defined(MAJOR_IN_MKDEV)
20789 #include <sys/mkdev.h>
20790 #elif defined(MAJOR_IN_SYSMACROS)
20791 #include <sys/sysmacros.h>
20792 #else
20793 #include <sys/types.h>
20794 #endif
20797 main ()
20800 makedev(major(0),minor(0));
20803 return 0;
20805 _ACEOF
20806 rm -f conftest.$ac_objext conftest$ac_exeext
20807 if { (ac_try="$ac_link"
20808 case "(($ac_try" in
20809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20810 *) ac_try_echo=$ac_try;;
20811 esac
20812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20813 (eval "$ac_link") 2>conftest.er1
20814 ac_status=$?
20815 grep -v '^ *+' conftest.er1 >conftest.err
20816 rm -f conftest.er1
20817 cat conftest.err >&5
20818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20819 (exit $ac_status); } && {
20820 test -z "$ac_c_werror_flag" ||
20821 test ! -s conftest.err
20822 } && test -s conftest$ac_exeext &&
20823 $as_test_x conftest$ac_exeext; then
20826 cat >>confdefs.h <<\_ACEOF
20827 #define HAVE_DEVICE_MACROS 1
20828 _ACEOF
20830 { echo "$as_me:$LINENO: result: yes" >&5
20831 echo "${ECHO_T}yes" >&6; }
20833 else
20834 echo "$as_me: failed program was:" >&5
20835 sed 's/^/| /' conftest.$ac_ext >&5
20838 { echo "$as_me:$LINENO: result: no" >&5
20839 echo "${ECHO_T}no" >&6; }
20843 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20844 conftest$ac_exeext conftest.$ac_ext
20846 # On OSF/1 V5.1, getaddrinfo is available, but a define
20847 # for [no]getaddrinfo in netdb.h.
20848 { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
20849 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
20850 cat >conftest.$ac_ext <<_ACEOF
20851 /* confdefs.h. */
20852 _ACEOF
20853 cat confdefs.h >>conftest.$ac_ext
20854 cat >>conftest.$ac_ext <<_ACEOF
20855 /* end confdefs.h. */
20857 #include <sys/types.h>
20858 #include <sys/socket.h>
20859 #include <netdb.h>
20860 #include <stdio.h>
20863 main ()
20865 getaddrinfo(NULL, NULL, NULL, NULL);
20867 return 0;
20869 _ACEOF
20870 rm -f conftest.$ac_objext conftest$ac_exeext
20871 if { (ac_try="$ac_link"
20872 case "(($ac_try" in
20873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20874 *) ac_try_echo=$ac_try;;
20875 esac
20876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20877 (eval "$ac_link") 2>conftest.er1
20878 ac_status=$?
20879 grep -v '^ *+' conftest.er1 >conftest.err
20880 rm -f conftest.er1
20881 cat conftest.err >&5
20882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20883 (exit $ac_status); } && {
20884 test -z "$ac_c_werror_flag" ||
20885 test ! -s conftest.err
20886 } && test -s conftest$ac_exeext &&
20887 $as_test_x conftest$ac_exeext; then
20888 have_getaddrinfo=yes
20889 else
20890 echo "$as_me: failed program was:" >&5
20891 sed 's/^/| /' conftest.$ac_ext >&5
20893 have_getaddrinfo=no
20896 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20897 conftest$ac_exeext conftest.$ac_ext
20898 { echo "$as_me:$LINENO: result: $have_getaddrinfo" >&5
20899 echo "${ECHO_T}$have_getaddrinfo" >&6; }
20900 if test $have_getaddrinfo = yes
20901 then
20902 { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
20903 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
20904 if test "${ac_cv_buggy_getaddrinfo+set}" = set; then
20905 echo $ECHO_N "(cached) $ECHO_C" >&6
20906 else
20907 if test "$cross_compiling" = yes; then
20908 ac_cv_buggy_getaddrinfo=yes
20909 else
20910 cat >conftest.$ac_ext <<_ACEOF
20911 /* confdefs.h. */
20912 _ACEOF
20913 cat confdefs.h >>conftest.$ac_ext
20914 cat >>conftest.$ac_ext <<_ACEOF
20915 /* end confdefs.h. */
20917 #include <sys/types.h>
20918 #include <netdb.h>
20919 #include <string.h>
20920 #include <sys/socket.h>
20921 #include <netinet/in.h>
20923 int main()
20925 int passive, gaierr, inet4 = 0, inet6 = 0;
20926 struct addrinfo hints, *ai, *aitop;
20927 char straddr[INET6_ADDRSTRLEN], strport[16];
20929 for (passive = 0; passive <= 1; passive++) {
20930 memset(&hints, 0, sizeof(hints));
20931 hints.ai_family = AF_UNSPEC;
20932 hints.ai_flags = passive ? AI_PASSIVE : 0;
20933 hints.ai_socktype = SOCK_STREAM;
20934 hints.ai_protocol = IPPROTO_TCP;
20935 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
20936 (void)gai_strerror(gaierr);
20937 goto bad;
20939 for (ai = aitop; ai; ai = ai->ai_next) {
20940 if (ai->ai_addr == NULL ||
20941 ai->ai_addrlen == 0 ||
20942 getnameinfo(ai->ai_addr, ai->ai_addrlen,
20943 straddr, sizeof(straddr), strport, sizeof(strport),
20944 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
20945 goto bad;
20947 switch (ai->ai_family) {
20948 case AF_INET:
20949 if (strcmp(strport, "54321") != 0) {
20950 goto bad;
20952 if (passive) {
20953 if (strcmp(straddr, "0.0.0.0") != 0) {
20954 goto bad;
20956 } else {
20957 if (strcmp(straddr, "127.0.0.1") != 0) {
20958 goto bad;
20961 inet4++;
20962 break;
20963 case AF_INET6:
20964 if (strcmp(strport, "54321") != 0) {
20965 goto bad;
20967 if (passive) {
20968 if (strcmp(straddr, "::") != 0) {
20969 goto bad;
20971 } else {
20972 if (strcmp(straddr, "::1") != 0) {
20973 goto bad;
20976 inet6++;
20977 break;
20978 case AF_UNSPEC:
20979 goto bad;
20980 break;
20981 default:
20982 /* another family support? */
20983 break;
20988 if (!(inet4 == 0 || inet4 == 2))
20989 goto bad;
20990 if (!(inet6 == 0 || inet6 == 2))
20991 goto bad;
20993 if (aitop)
20994 freeaddrinfo(aitop);
20995 return 0;
20997 bad:
20998 if (aitop)
20999 freeaddrinfo(aitop);
21000 return 1;
21003 _ACEOF
21004 rm -f conftest$ac_exeext
21005 if { (ac_try="$ac_link"
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_link") 2>&5
21012 ac_status=$?
21013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21014 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21015 { (case "(($ac_try" in
21016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21017 *) ac_try_echo=$ac_try;;
21018 esac
21019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21020 (eval "$ac_try") 2>&5
21021 ac_status=$?
21022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21023 (exit $ac_status); }; }; then
21024 ac_cv_buggy_getaddrinfo=no
21025 else
21026 echo "$as_me: program exited with status $ac_status" >&5
21027 echo "$as_me: failed program was:" >&5
21028 sed 's/^/| /' conftest.$ac_ext >&5
21030 ( exit $ac_status )
21031 ac_cv_buggy_getaddrinfo=yes
21033 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21041 if test $have_getaddrinfo = no -o $ac_cv_buggy_getaddrinfo = yes
21042 then
21043 if test $ipv6 = yes
21044 then
21045 echo 'Fatal: You must get working getaddrinfo() function.'
21046 echo ' or you can specify "--disable-ipv6"'.
21047 exit 1
21049 else
21051 cat >>confdefs.h <<\_ACEOF
21052 #define HAVE_GETADDRINFO 1
21053 _ACEOF
21057 for ac_func in getnameinfo
21059 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21060 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21061 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21062 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21063 echo $ECHO_N "(cached) $ECHO_C" >&6
21064 else
21065 cat >conftest.$ac_ext <<_ACEOF
21066 /* confdefs.h. */
21067 _ACEOF
21068 cat confdefs.h >>conftest.$ac_ext
21069 cat >>conftest.$ac_ext <<_ACEOF
21070 /* end confdefs.h. */
21071 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21072 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21073 #define $ac_func innocuous_$ac_func
21075 /* System header to define __stub macros and hopefully few prototypes,
21076 which can conflict with char $ac_func (); below.
21077 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21078 <limits.h> exists even on freestanding compilers. */
21080 #ifdef __STDC__
21081 # include <limits.h>
21082 #else
21083 # include <assert.h>
21084 #endif
21086 #undef $ac_func
21088 /* Override any GCC internal prototype to avoid an error.
21089 Use char because int might match the return type of a GCC
21090 builtin and then its argument prototype would still apply. */
21091 #ifdef __cplusplus
21092 extern "C"
21093 #endif
21094 char $ac_func ();
21095 /* The GNU C library defines this for functions which it implements
21096 to always fail with ENOSYS. Some functions are actually named
21097 something starting with __ and the normal name is an alias. */
21098 #if defined __stub_$ac_func || defined __stub___$ac_func
21099 choke me
21100 #endif
21103 main ()
21105 return $ac_func ();
21107 return 0;
21109 _ACEOF
21110 rm -f conftest.$ac_objext conftest$ac_exeext
21111 if { (ac_try="$ac_link"
21112 case "(($ac_try" in
21113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21114 *) ac_try_echo=$ac_try;;
21115 esac
21116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21117 (eval "$ac_link") 2>conftest.er1
21118 ac_status=$?
21119 grep -v '^ *+' conftest.er1 >conftest.err
21120 rm -f conftest.er1
21121 cat conftest.err >&5
21122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21123 (exit $ac_status); } && {
21124 test -z "$ac_c_werror_flag" ||
21125 test ! -s conftest.err
21126 } && test -s conftest$ac_exeext &&
21127 $as_test_x conftest$ac_exeext; then
21128 eval "$as_ac_var=yes"
21129 else
21130 echo "$as_me: failed program was:" >&5
21131 sed 's/^/| /' conftest.$ac_ext >&5
21133 eval "$as_ac_var=no"
21136 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21137 conftest$ac_exeext conftest.$ac_ext
21139 ac_res=`eval echo '${'$as_ac_var'}'`
21140 { echo "$as_me:$LINENO: result: $ac_res" >&5
21141 echo "${ECHO_T}$ac_res" >&6; }
21142 if test `eval echo '${'$as_ac_var'}'` = yes; then
21143 cat >>confdefs.h <<_ACEOF
21144 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21145 _ACEOF
21148 done
21151 # checks for structures
21152 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21153 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
21154 if test "${ac_cv_header_time+set}" = set; then
21155 echo $ECHO_N "(cached) $ECHO_C" >&6
21156 else
21157 cat >conftest.$ac_ext <<_ACEOF
21158 /* confdefs.h. */
21159 _ACEOF
21160 cat confdefs.h >>conftest.$ac_ext
21161 cat >>conftest.$ac_ext <<_ACEOF
21162 /* end confdefs.h. */
21163 #include <sys/types.h>
21164 #include <sys/time.h>
21165 #include <time.h>
21168 main ()
21170 if ((struct tm *) 0)
21171 return 0;
21173 return 0;
21175 _ACEOF
21176 rm -f conftest.$ac_objext
21177 if { (ac_try="$ac_compile"
21178 case "(($ac_try" in
21179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21180 *) ac_try_echo=$ac_try;;
21181 esac
21182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21183 (eval "$ac_compile") 2>conftest.er1
21184 ac_status=$?
21185 grep -v '^ *+' conftest.er1 >conftest.err
21186 rm -f conftest.er1
21187 cat conftest.err >&5
21188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21189 (exit $ac_status); } && {
21190 test -z "$ac_c_werror_flag" ||
21191 test ! -s conftest.err
21192 } && test -s conftest.$ac_objext; then
21193 ac_cv_header_time=yes
21194 else
21195 echo "$as_me: failed program was:" >&5
21196 sed 's/^/| /' conftest.$ac_ext >&5
21198 ac_cv_header_time=no
21201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21203 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21204 echo "${ECHO_T}$ac_cv_header_time" >&6; }
21205 if test $ac_cv_header_time = yes; then
21207 cat >>confdefs.h <<\_ACEOF
21208 #define TIME_WITH_SYS_TIME 1
21209 _ACEOF
21213 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
21214 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
21215 if test "${ac_cv_struct_tm+set}" = set; then
21216 echo $ECHO_N "(cached) $ECHO_C" >&6
21217 else
21218 cat >conftest.$ac_ext <<_ACEOF
21219 /* confdefs.h. */
21220 _ACEOF
21221 cat confdefs.h >>conftest.$ac_ext
21222 cat >>conftest.$ac_ext <<_ACEOF
21223 /* end confdefs.h. */
21224 #include <sys/types.h>
21225 #include <time.h>
21228 main ()
21230 struct tm tm;
21231 int *p = &tm.tm_sec;
21232 return !p;
21234 return 0;
21236 _ACEOF
21237 rm -f conftest.$ac_objext
21238 if { (ac_try="$ac_compile"
21239 case "(($ac_try" in
21240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21241 *) ac_try_echo=$ac_try;;
21242 esac
21243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21244 (eval "$ac_compile") 2>conftest.er1
21245 ac_status=$?
21246 grep -v '^ *+' conftest.er1 >conftest.err
21247 rm -f conftest.er1
21248 cat conftest.err >&5
21249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21250 (exit $ac_status); } && {
21251 test -z "$ac_c_werror_flag" ||
21252 test ! -s conftest.err
21253 } && test -s conftest.$ac_objext; then
21254 ac_cv_struct_tm=time.h
21255 else
21256 echo "$as_me: failed program was:" >&5
21257 sed 's/^/| /' conftest.$ac_ext >&5
21259 ac_cv_struct_tm=sys/time.h
21262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21264 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
21265 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
21266 if test $ac_cv_struct_tm = sys/time.h; then
21268 cat >>confdefs.h <<\_ACEOF
21269 #define TM_IN_SYS_TIME 1
21270 _ACEOF
21274 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
21275 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
21276 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
21277 echo $ECHO_N "(cached) $ECHO_C" >&6
21278 else
21279 cat >conftest.$ac_ext <<_ACEOF
21280 /* confdefs.h. */
21281 _ACEOF
21282 cat confdefs.h >>conftest.$ac_ext
21283 cat >>conftest.$ac_ext <<_ACEOF
21284 /* end confdefs.h. */
21285 #include <sys/types.h>
21286 #include <$ac_cv_struct_tm>
21290 main ()
21292 static struct tm ac_aggr;
21293 if (ac_aggr.tm_zone)
21294 return 0;
21296 return 0;
21298 _ACEOF
21299 rm -f conftest.$ac_objext
21300 if { (ac_try="$ac_compile"
21301 case "(($ac_try" in
21302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21303 *) ac_try_echo=$ac_try;;
21304 esac
21305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21306 (eval "$ac_compile") 2>conftest.er1
21307 ac_status=$?
21308 grep -v '^ *+' conftest.er1 >conftest.err
21309 rm -f conftest.er1
21310 cat conftest.err >&5
21311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21312 (exit $ac_status); } && {
21313 test -z "$ac_c_werror_flag" ||
21314 test ! -s conftest.err
21315 } && test -s conftest.$ac_objext; then
21316 ac_cv_member_struct_tm_tm_zone=yes
21317 else
21318 echo "$as_me: failed program was:" >&5
21319 sed 's/^/| /' conftest.$ac_ext >&5
21321 cat >conftest.$ac_ext <<_ACEOF
21322 /* confdefs.h. */
21323 _ACEOF
21324 cat confdefs.h >>conftest.$ac_ext
21325 cat >>conftest.$ac_ext <<_ACEOF
21326 /* end confdefs.h. */
21327 #include <sys/types.h>
21328 #include <$ac_cv_struct_tm>
21332 main ()
21334 static struct tm ac_aggr;
21335 if (sizeof ac_aggr.tm_zone)
21336 return 0;
21338 return 0;
21340 _ACEOF
21341 rm -f conftest.$ac_objext
21342 if { (ac_try="$ac_compile"
21343 case "(($ac_try" in
21344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21345 *) ac_try_echo=$ac_try;;
21346 esac
21347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21348 (eval "$ac_compile") 2>conftest.er1
21349 ac_status=$?
21350 grep -v '^ *+' conftest.er1 >conftest.err
21351 rm -f conftest.er1
21352 cat conftest.err >&5
21353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21354 (exit $ac_status); } && {
21355 test -z "$ac_c_werror_flag" ||
21356 test ! -s conftest.err
21357 } && test -s conftest.$ac_objext; then
21358 ac_cv_member_struct_tm_tm_zone=yes
21359 else
21360 echo "$as_me: failed program was:" >&5
21361 sed 's/^/| /' conftest.$ac_ext >&5
21363 ac_cv_member_struct_tm_tm_zone=no
21366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21371 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21372 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
21373 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21375 cat >>confdefs.h <<_ACEOF
21376 #define HAVE_STRUCT_TM_TM_ZONE 1
21377 _ACEOF
21382 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21384 cat >>confdefs.h <<\_ACEOF
21385 #define HAVE_TM_ZONE 1
21386 _ACEOF
21388 else
21389 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
21390 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
21391 if test "${ac_cv_have_decl_tzname+set}" = set; then
21392 echo $ECHO_N "(cached) $ECHO_C" >&6
21393 else
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 #include <time.h>
21403 main ()
21405 #ifndef tzname
21406 (void) tzname;
21407 #endif
21410 return 0;
21412 _ACEOF
21413 rm -f conftest.$ac_objext
21414 if { (ac_try="$ac_compile"
21415 case "(($ac_try" in
21416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21417 *) ac_try_echo=$ac_try;;
21418 esac
21419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21420 (eval "$ac_compile") 2>conftest.er1
21421 ac_status=$?
21422 grep -v '^ *+' conftest.er1 >conftest.err
21423 rm -f conftest.er1
21424 cat conftest.err >&5
21425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21426 (exit $ac_status); } && {
21427 test -z "$ac_c_werror_flag" ||
21428 test ! -s conftest.err
21429 } && test -s conftest.$ac_objext; then
21430 ac_cv_have_decl_tzname=yes
21431 else
21432 echo "$as_me: failed program was:" >&5
21433 sed 's/^/| /' conftest.$ac_ext >&5
21435 ac_cv_have_decl_tzname=no
21438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21440 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
21441 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
21442 if test $ac_cv_have_decl_tzname = yes; then
21444 cat >>confdefs.h <<_ACEOF
21445 #define HAVE_DECL_TZNAME 1
21446 _ACEOF
21449 else
21450 cat >>confdefs.h <<_ACEOF
21451 #define HAVE_DECL_TZNAME 0
21452 _ACEOF
21458 { echo "$as_me:$LINENO: checking for tzname" >&5
21459 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
21460 if test "${ac_cv_var_tzname+set}" = set; then
21461 echo $ECHO_N "(cached) $ECHO_C" >&6
21462 else
21463 cat >conftest.$ac_ext <<_ACEOF
21464 /* confdefs.h. */
21465 _ACEOF
21466 cat confdefs.h >>conftest.$ac_ext
21467 cat >>conftest.$ac_ext <<_ACEOF
21468 /* end confdefs.h. */
21469 #include <time.h>
21470 #if !HAVE_DECL_TZNAME
21471 extern char *tzname[];
21472 #endif
21475 main ()
21477 return tzname[0][0];
21479 return 0;
21481 _ACEOF
21482 rm -f conftest.$ac_objext conftest$ac_exeext
21483 if { (ac_try="$ac_link"
21484 case "(($ac_try" in
21485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21486 *) ac_try_echo=$ac_try;;
21487 esac
21488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21489 (eval "$ac_link") 2>conftest.er1
21490 ac_status=$?
21491 grep -v '^ *+' conftest.er1 >conftest.err
21492 rm -f conftest.er1
21493 cat conftest.err >&5
21494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21495 (exit $ac_status); } && {
21496 test -z "$ac_c_werror_flag" ||
21497 test ! -s conftest.err
21498 } && test -s conftest$ac_exeext &&
21499 $as_test_x conftest$ac_exeext; then
21500 ac_cv_var_tzname=yes
21501 else
21502 echo "$as_me: failed program was:" >&5
21503 sed 's/^/| /' conftest.$ac_ext >&5
21505 ac_cv_var_tzname=no
21508 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21509 conftest$ac_exeext conftest.$ac_ext
21511 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21512 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
21513 if test $ac_cv_var_tzname = yes; then
21515 cat >>confdefs.h <<\_ACEOF
21516 #define HAVE_TZNAME 1
21517 _ACEOF
21522 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
21523 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
21524 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
21525 echo $ECHO_N "(cached) $ECHO_C" >&6
21526 else
21527 cat >conftest.$ac_ext <<_ACEOF
21528 /* confdefs.h. */
21529 _ACEOF
21530 cat confdefs.h >>conftest.$ac_ext
21531 cat >>conftest.$ac_ext <<_ACEOF
21532 /* end confdefs.h. */
21533 $ac_includes_default
21535 main ()
21537 static struct stat ac_aggr;
21538 if (ac_aggr.st_rdev)
21539 return 0;
21541 return 0;
21543 _ACEOF
21544 rm -f conftest.$ac_objext
21545 if { (ac_try="$ac_compile"
21546 case "(($ac_try" in
21547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21548 *) ac_try_echo=$ac_try;;
21549 esac
21550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21551 (eval "$ac_compile") 2>conftest.er1
21552 ac_status=$?
21553 grep -v '^ *+' conftest.er1 >conftest.err
21554 rm -f conftest.er1
21555 cat conftest.err >&5
21556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21557 (exit $ac_status); } && {
21558 test -z "$ac_c_werror_flag" ||
21559 test ! -s conftest.err
21560 } && test -s conftest.$ac_objext; then
21561 ac_cv_member_struct_stat_st_rdev=yes
21562 else
21563 echo "$as_me: failed program was:" >&5
21564 sed 's/^/| /' conftest.$ac_ext >&5
21566 cat >conftest.$ac_ext <<_ACEOF
21567 /* confdefs.h. */
21568 _ACEOF
21569 cat confdefs.h >>conftest.$ac_ext
21570 cat >>conftest.$ac_ext <<_ACEOF
21571 /* end confdefs.h. */
21572 $ac_includes_default
21574 main ()
21576 static struct stat ac_aggr;
21577 if (sizeof ac_aggr.st_rdev)
21578 return 0;
21580 return 0;
21582 _ACEOF
21583 rm -f conftest.$ac_objext
21584 if { (ac_try="$ac_compile"
21585 case "(($ac_try" in
21586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21587 *) ac_try_echo=$ac_try;;
21588 esac
21589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21590 (eval "$ac_compile") 2>conftest.er1
21591 ac_status=$?
21592 grep -v '^ *+' conftest.er1 >conftest.err
21593 rm -f conftest.er1
21594 cat conftest.err >&5
21595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21596 (exit $ac_status); } && {
21597 test -z "$ac_c_werror_flag" ||
21598 test ! -s conftest.err
21599 } && test -s conftest.$ac_objext; then
21600 ac_cv_member_struct_stat_st_rdev=yes
21601 else
21602 echo "$as_me: failed program was:" >&5
21603 sed 's/^/| /' conftest.$ac_ext >&5
21605 ac_cv_member_struct_stat_st_rdev=no
21608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21613 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
21614 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
21615 if test $ac_cv_member_struct_stat_st_rdev = yes; then
21617 cat >>confdefs.h <<_ACEOF
21618 #define HAVE_STRUCT_STAT_ST_RDEV 1
21619 _ACEOF
21624 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
21625 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
21626 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
21627 echo $ECHO_N "(cached) $ECHO_C" >&6
21628 else
21629 cat >conftest.$ac_ext <<_ACEOF
21630 /* confdefs.h. */
21631 _ACEOF
21632 cat confdefs.h >>conftest.$ac_ext
21633 cat >>conftest.$ac_ext <<_ACEOF
21634 /* end confdefs.h. */
21635 $ac_includes_default
21637 main ()
21639 static struct stat ac_aggr;
21640 if (ac_aggr.st_blksize)
21641 return 0;
21643 return 0;
21645 _ACEOF
21646 rm -f conftest.$ac_objext
21647 if { (ac_try="$ac_compile"
21648 case "(($ac_try" in
21649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21650 *) ac_try_echo=$ac_try;;
21651 esac
21652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21653 (eval "$ac_compile") 2>conftest.er1
21654 ac_status=$?
21655 grep -v '^ *+' conftest.er1 >conftest.err
21656 rm -f conftest.er1
21657 cat conftest.err >&5
21658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21659 (exit $ac_status); } && {
21660 test -z "$ac_c_werror_flag" ||
21661 test ! -s conftest.err
21662 } && test -s conftest.$ac_objext; then
21663 ac_cv_member_struct_stat_st_blksize=yes
21664 else
21665 echo "$as_me: failed program was:" >&5
21666 sed 's/^/| /' conftest.$ac_ext >&5
21668 cat >conftest.$ac_ext <<_ACEOF
21669 /* confdefs.h. */
21670 _ACEOF
21671 cat confdefs.h >>conftest.$ac_ext
21672 cat >>conftest.$ac_ext <<_ACEOF
21673 /* end confdefs.h. */
21674 $ac_includes_default
21676 main ()
21678 static struct stat ac_aggr;
21679 if (sizeof ac_aggr.st_blksize)
21680 return 0;
21682 return 0;
21684 _ACEOF
21685 rm -f conftest.$ac_objext
21686 if { (ac_try="$ac_compile"
21687 case "(($ac_try" in
21688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21689 *) ac_try_echo=$ac_try;;
21690 esac
21691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21692 (eval "$ac_compile") 2>conftest.er1
21693 ac_status=$?
21694 grep -v '^ *+' conftest.er1 >conftest.err
21695 rm -f conftest.er1
21696 cat conftest.err >&5
21697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21698 (exit $ac_status); } && {
21699 test -z "$ac_c_werror_flag" ||
21700 test ! -s conftest.err
21701 } && test -s conftest.$ac_objext; then
21702 ac_cv_member_struct_stat_st_blksize=yes
21703 else
21704 echo "$as_me: failed program was:" >&5
21705 sed 's/^/| /' conftest.$ac_ext >&5
21707 ac_cv_member_struct_stat_st_blksize=no
21710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21715 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
21716 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
21717 if test $ac_cv_member_struct_stat_st_blksize = yes; then
21719 cat >>confdefs.h <<_ACEOF
21720 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
21721 _ACEOF
21726 { echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
21727 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6; }
21728 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
21729 echo $ECHO_N "(cached) $ECHO_C" >&6
21730 else
21731 cat >conftest.$ac_ext <<_ACEOF
21732 /* confdefs.h. */
21733 _ACEOF
21734 cat confdefs.h >>conftest.$ac_ext
21735 cat >>conftest.$ac_ext <<_ACEOF
21736 /* end confdefs.h. */
21737 $ac_includes_default
21739 main ()
21741 static struct stat ac_aggr;
21742 if (ac_aggr.st_flags)
21743 return 0;
21745 return 0;
21747 _ACEOF
21748 rm -f conftest.$ac_objext
21749 if { (ac_try="$ac_compile"
21750 case "(($ac_try" in
21751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21752 *) ac_try_echo=$ac_try;;
21753 esac
21754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21755 (eval "$ac_compile") 2>conftest.er1
21756 ac_status=$?
21757 grep -v '^ *+' conftest.er1 >conftest.err
21758 rm -f conftest.er1
21759 cat conftest.err >&5
21760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21761 (exit $ac_status); } && {
21762 test -z "$ac_c_werror_flag" ||
21763 test ! -s conftest.err
21764 } && test -s conftest.$ac_objext; then
21765 ac_cv_member_struct_stat_st_flags=yes
21766 else
21767 echo "$as_me: failed program was:" >&5
21768 sed 's/^/| /' conftest.$ac_ext >&5
21770 cat >conftest.$ac_ext <<_ACEOF
21771 /* confdefs.h. */
21772 _ACEOF
21773 cat confdefs.h >>conftest.$ac_ext
21774 cat >>conftest.$ac_ext <<_ACEOF
21775 /* end confdefs.h. */
21776 $ac_includes_default
21778 main ()
21780 static struct stat ac_aggr;
21781 if (sizeof ac_aggr.st_flags)
21782 return 0;
21784 return 0;
21786 _ACEOF
21787 rm -f conftest.$ac_objext
21788 if { (ac_try="$ac_compile"
21789 case "(($ac_try" in
21790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21791 *) ac_try_echo=$ac_try;;
21792 esac
21793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21794 (eval "$ac_compile") 2>conftest.er1
21795 ac_status=$?
21796 grep -v '^ *+' conftest.er1 >conftest.err
21797 rm -f conftest.er1
21798 cat conftest.err >&5
21799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21800 (exit $ac_status); } && {
21801 test -z "$ac_c_werror_flag" ||
21802 test ! -s conftest.err
21803 } && test -s conftest.$ac_objext; then
21804 ac_cv_member_struct_stat_st_flags=yes
21805 else
21806 echo "$as_me: failed program was:" >&5
21807 sed 's/^/| /' conftest.$ac_ext >&5
21809 ac_cv_member_struct_stat_st_flags=no
21812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21817 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
21818 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6; }
21819 if test $ac_cv_member_struct_stat_st_flags = yes; then
21821 cat >>confdefs.h <<_ACEOF
21822 #define HAVE_STRUCT_STAT_ST_FLAGS 1
21823 _ACEOF
21828 { echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
21829 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6; }
21830 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
21831 echo $ECHO_N "(cached) $ECHO_C" >&6
21832 else
21833 cat >conftest.$ac_ext <<_ACEOF
21834 /* confdefs.h. */
21835 _ACEOF
21836 cat confdefs.h >>conftest.$ac_ext
21837 cat >>conftest.$ac_ext <<_ACEOF
21838 /* end confdefs.h. */
21839 $ac_includes_default
21841 main ()
21843 static struct stat ac_aggr;
21844 if (ac_aggr.st_gen)
21845 return 0;
21847 return 0;
21849 _ACEOF
21850 rm -f conftest.$ac_objext
21851 if { (ac_try="$ac_compile"
21852 case "(($ac_try" in
21853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21854 *) ac_try_echo=$ac_try;;
21855 esac
21856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21857 (eval "$ac_compile") 2>conftest.er1
21858 ac_status=$?
21859 grep -v '^ *+' conftest.er1 >conftest.err
21860 rm -f conftest.er1
21861 cat conftest.err >&5
21862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21863 (exit $ac_status); } && {
21864 test -z "$ac_c_werror_flag" ||
21865 test ! -s conftest.err
21866 } && test -s conftest.$ac_objext; then
21867 ac_cv_member_struct_stat_st_gen=yes
21868 else
21869 echo "$as_me: failed program was:" >&5
21870 sed 's/^/| /' conftest.$ac_ext >&5
21872 cat >conftest.$ac_ext <<_ACEOF
21873 /* confdefs.h. */
21874 _ACEOF
21875 cat confdefs.h >>conftest.$ac_ext
21876 cat >>conftest.$ac_ext <<_ACEOF
21877 /* end confdefs.h. */
21878 $ac_includes_default
21880 main ()
21882 static struct stat ac_aggr;
21883 if (sizeof ac_aggr.st_gen)
21884 return 0;
21886 return 0;
21888 _ACEOF
21889 rm -f conftest.$ac_objext
21890 if { (ac_try="$ac_compile"
21891 case "(($ac_try" in
21892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21893 *) ac_try_echo=$ac_try;;
21894 esac
21895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21896 (eval "$ac_compile") 2>conftest.er1
21897 ac_status=$?
21898 grep -v '^ *+' conftest.er1 >conftest.err
21899 rm -f conftest.er1
21900 cat conftest.err >&5
21901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21902 (exit $ac_status); } && {
21903 test -z "$ac_c_werror_flag" ||
21904 test ! -s conftest.err
21905 } && test -s conftest.$ac_objext; then
21906 ac_cv_member_struct_stat_st_gen=yes
21907 else
21908 echo "$as_me: failed program was:" >&5
21909 sed 's/^/| /' conftest.$ac_ext >&5
21911 ac_cv_member_struct_stat_st_gen=no
21914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21919 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
21920 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6; }
21921 if test $ac_cv_member_struct_stat_st_gen = yes; then
21923 cat >>confdefs.h <<_ACEOF
21924 #define HAVE_STRUCT_STAT_ST_GEN 1
21925 _ACEOF
21930 { echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
21931 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6; }
21932 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
21933 echo $ECHO_N "(cached) $ECHO_C" >&6
21934 else
21935 cat >conftest.$ac_ext <<_ACEOF
21936 /* confdefs.h. */
21937 _ACEOF
21938 cat confdefs.h >>conftest.$ac_ext
21939 cat >>conftest.$ac_ext <<_ACEOF
21940 /* end confdefs.h. */
21941 $ac_includes_default
21943 main ()
21945 static struct stat ac_aggr;
21946 if (ac_aggr.st_birthtime)
21947 return 0;
21949 return 0;
21951 _ACEOF
21952 rm -f conftest.$ac_objext
21953 if { (ac_try="$ac_compile"
21954 case "(($ac_try" in
21955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21956 *) ac_try_echo=$ac_try;;
21957 esac
21958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21959 (eval "$ac_compile") 2>conftest.er1
21960 ac_status=$?
21961 grep -v '^ *+' conftest.er1 >conftest.err
21962 rm -f conftest.er1
21963 cat conftest.err >&5
21964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21965 (exit $ac_status); } && {
21966 test -z "$ac_c_werror_flag" ||
21967 test ! -s conftest.err
21968 } && test -s conftest.$ac_objext; then
21969 ac_cv_member_struct_stat_st_birthtime=yes
21970 else
21971 echo "$as_me: failed program was:" >&5
21972 sed 's/^/| /' conftest.$ac_ext >&5
21974 cat >conftest.$ac_ext <<_ACEOF
21975 /* confdefs.h. */
21976 _ACEOF
21977 cat confdefs.h >>conftest.$ac_ext
21978 cat >>conftest.$ac_ext <<_ACEOF
21979 /* end confdefs.h. */
21980 $ac_includes_default
21982 main ()
21984 static struct stat ac_aggr;
21985 if (sizeof ac_aggr.st_birthtime)
21986 return 0;
21988 return 0;
21990 _ACEOF
21991 rm -f conftest.$ac_objext
21992 if { (ac_try="$ac_compile"
21993 case "(($ac_try" in
21994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21995 *) ac_try_echo=$ac_try;;
21996 esac
21997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21998 (eval "$ac_compile") 2>conftest.er1
21999 ac_status=$?
22000 grep -v '^ *+' conftest.er1 >conftest.err
22001 rm -f conftest.er1
22002 cat conftest.err >&5
22003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22004 (exit $ac_status); } && {
22005 test -z "$ac_c_werror_flag" ||
22006 test ! -s conftest.err
22007 } && test -s conftest.$ac_objext; then
22008 ac_cv_member_struct_stat_st_birthtime=yes
22009 else
22010 echo "$as_me: failed program was:" >&5
22011 sed 's/^/| /' conftest.$ac_ext >&5
22013 ac_cv_member_struct_stat_st_birthtime=no
22016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22021 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
22022 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6; }
22023 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
22025 cat >>confdefs.h <<_ACEOF
22026 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
22027 _ACEOF
22032 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
22033 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
22034 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
22035 echo $ECHO_N "(cached) $ECHO_C" >&6
22036 else
22037 cat >conftest.$ac_ext <<_ACEOF
22038 /* confdefs.h. */
22039 _ACEOF
22040 cat confdefs.h >>conftest.$ac_ext
22041 cat >>conftest.$ac_ext <<_ACEOF
22042 /* end confdefs.h. */
22043 $ac_includes_default
22045 main ()
22047 static struct stat ac_aggr;
22048 if (ac_aggr.st_blocks)
22049 return 0;
22051 return 0;
22053 _ACEOF
22054 rm -f conftest.$ac_objext
22055 if { (ac_try="$ac_compile"
22056 case "(($ac_try" in
22057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22058 *) ac_try_echo=$ac_try;;
22059 esac
22060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22061 (eval "$ac_compile") 2>conftest.er1
22062 ac_status=$?
22063 grep -v '^ *+' conftest.er1 >conftest.err
22064 rm -f conftest.er1
22065 cat conftest.err >&5
22066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22067 (exit $ac_status); } && {
22068 test -z "$ac_c_werror_flag" ||
22069 test ! -s conftest.err
22070 } && test -s conftest.$ac_objext; then
22071 ac_cv_member_struct_stat_st_blocks=yes
22072 else
22073 echo "$as_me: failed program was:" >&5
22074 sed 's/^/| /' conftest.$ac_ext >&5
22076 cat >conftest.$ac_ext <<_ACEOF
22077 /* confdefs.h. */
22078 _ACEOF
22079 cat confdefs.h >>conftest.$ac_ext
22080 cat >>conftest.$ac_ext <<_ACEOF
22081 /* end confdefs.h. */
22082 $ac_includes_default
22084 main ()
22086 static struct stat ac_aggr;
22087 if (sizeof ac_aggr.st_blocks)
22088 return 0;
22090 return 0;
22092 _ACEOF
22093 rm -f conftest.$ac_objext
22094 if { (ac_try="$ac_compile"
22095 case "(($ac_try" in
22096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22097 *) ac_try_echo=$ac_try;;
22098 esac
22099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22100 (eval "$ac_compile") 2>conftest.er1
22101 ac_status=$?
22102 grep -v '^ *+' conftest.er1 >conftest.err
22103 rm -f conftest.er1
22104 cat conftest.err >&5
22105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22106 (exit $ac_status); } && {
22107 test -z "$ac_c_werror_flag" ||
22108 test ! -s conftest.err
22109 } && test -s conftest.$ac_objext; then
22110 ac_cv_member_struct_stat_st_blocks=yes
22111 else
22112 echo "$as_me: failed program was:" >&5
22113 sed 's/^/| /' conftest.$ac_ext >&5
22115 ac_cv_member_struct_stat_st_blocks=no
22118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22123 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
22124 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
22125 if test $ac_cv_member_struct_stat_st_blocks = yes; then
22127 cat >>confdefs.h <<_ACEOF
22128 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
22129 _ACEOF
22132 cat >>confdefs.h <<\_ACEOF
22133 #define HAVE_ST_BLOCKS 1
22134 _ACEOF
22136 else
22137 case " $LIBOBJS " in
22138 *" fileblocks.$ac_objext "* ) ;;
22139 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
22141 esac
22147 { echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
22148 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6; }
22149 if test "${ac_cv_header_time_altzone+set}" = set; then
22150 echo $ECHO_N "(cached) $ECHO_C" >&6
22151 else
22152 cat >conftest.$ac_ext <<_ACEOF
22153 /* confdefs.h. */
22154 _ACEOF
22155 cat confdefs.h >>conftest.$ac_ext
22156 cat >>conftest.$ac_ext <<_ACEOF
22157 /* end confdefs.h. */
22158 #include <time.h>
22160 main ()
22162 return altzone;
22164 return 0;
22166 _ACEOF
22167 rm -f conftest.$ac_objext
22168 if { (ac_try="$ac_compile"
22169 case "(($ac_try" in
22170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22171 *) ac_try_echo=$ac_try;;
22172 esac
22173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22174 (eval "$ac_compile") 2>conftest.er1
22175 ac_status=$?
22176 grep -v '^ *+' conftest.er1 >conftest.err
22177 rm -f conftest.er1
22178 cat conftest.err >&5
22179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22180 (exit $ac_status); } && {
22181 test -z "$ac_c_werror_flag" ||
22182 test ! -s conftest.err
22183 } && test -s conftest.$ac_objext; then
22184 ac_cv_header_time_altzone=yes
22185 else
22186 echo "$as_me: failed program was:" >&5
22187 sed 's/^/| /' conftest.$ac_ext >&5
22189 ac_cv_header_time_altzone=no
22192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22195 { echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
22196 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6; }
22197 if test $ac_cv_header_time_altzone = yes; then
22199 cat >>confdefs.h <<\_ACEOF
22200 #define HAVE_ALTZONE 1
22201 _ACEOF
22205 was_it_defined=no
22206 { echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
22207 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6; }
22208 cat >conftest.$ac_ext <<_ACEOF
22209 /* confdefs.h. */
22210 _ACEOF
22211 cat confdefs.h >>conftest.$ac_ext
22212 cat >>conftest.$ac_ext <<_ACEOF
22213 /* end confdefs.h. */
22215 #include <sys/types.h>
22216 #include <sys/select.h>
22217 #include <sys/time.h>
22220 main ()
22224 return 0;
22226 _ACEOF
22227 rm -f conftest.$ac_objext
22228 if { (ac_try="$ac_compile"
22229 case "(($ac_try" in
22230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22231 *) ac_try_echo=$ac_try;;
22232 esac
22233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22234 (eval "$ac_compile") 2>conftest.er1
22235 ac_status=$?
22236 grep -v '^ *+' conftest.er1 >conftest.err
22237 rm -f conftest.er1
22238 cat conftest.err >&5
22239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22240 (exit $ac_status); } && {
22241 test -z "$ac_c_werror_flag" ||
22242 test ! -s conftest.err
22243 } && test -s conftest.$ac_objext; then
22246 cat >>confdefs.h <<\_ACEOF
22247 #define SYS_SELECT_WITH_SYS_TIME 1
22248 _ACEOF
22250 was_it_defined=yes
22252 else
22253 echo "$as_me: failed program was:" >&5
22254 sed 's/^/| /' conftest.$ac_ext >&5
22259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22260 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
22261 echo "${ECHO_T}$was_it_defined" >&6; }
22263 { echo "$as_me:$LINENO: checking for addrinfo" >&5
22264 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
22265 if test "${ac_cv_struct_addrinfo+set}" = set; then
22266 echo $ECHO_N "(cached) $ECHO_C" >&6
22267 else
22268 cat >conftest.$ac_ext <<_ACEOF
22269 /* confdefs.h. */
22270 _ACEOF
22271 cat confdefs.h >>conftest.$ac_ext
22272 cat >>conftest.$ac_ext <<_ACEOF
22273 /* end confdefs.h. */
22275 # include <netdb.h>
22277 main ()
22279 struct addrinfo a
22281 return 0;
22283 _ACEOF
22284 rm -f conftest.$ac_objext
22285 if { (ac_try="$ac_compile"
22286 case "(($ac_try" in
22287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22288 *) ac_try_echo=$ac_try;;
22289 esac
22290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22291 (eval "$ac_compile") 2>conftest.er1
22292 ac_status=$?
22293 grep -v '^ *+' conftest.er1 >conftest.err
22294 rm -f conftest.er1
22295 cat conftest.err >&5
22296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22297 (exit $ac_status); } && {
22298 test -z "$ac_c_werror_flag" ||
22299 test ! -s conftest.err
22300 } && test -s conftest.$ac_objext; then
22301 ac_cv_struct_addrinfo=yes
22302 else
22303 echo "$as_me: failed program was:" >&5
22304 sed 's/^/| /' conftest.$ac_ext >&5
22306 ac_cv_struct_addrinfo=no
22309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22312 { echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
22313 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6; }
22314 if test $ac_cv_struct_addrinfo = yes; then
22316 cat >>confdefs.h <<\_ACEOF
22317 #define HAVE_ADDRINFO 1
22318 _ACEOF
22322 { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
22323 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
22324 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
22325 echo $ECHO_N "(cached) $ECHO_C" >&6
22326 else
22327 cat >conftest.$ac_ext <<_ACEOF
22328 /* confdefs.h. */
22329 _ACEOF
22330 cat confdefs.h >>conftest.$ac_ext
22331 cat >>conftest.$ac_ext <<_ACEOF
22332 /* end confdefs.h. */
22334 # include <sys/types.h>
22335 # include <sys/socket.h>
22337 main ()
22339 struct sockaddr_storage s
22341 return 0;
22343 _ACEOF
22344 rm -f conftest.$ac_objext
22345 if { (ac_try="$ac_compile"
22346 case "(($ac_try" in
22347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22348 *) ac_try_echo=$ac_try;;
22349 esac
22350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22351 (eval "$ac_compile") 2>conftest.er1
22352 ac_status=$?
22353 grep -v '^ *+' conftest.er1 >conftest.err
22354 rm -f conftest.er1
22355 cat conftest.err >&5
22356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22357 (exit $ac_status); } && {
22358 test -z "$ac_c_werror_flag" ||
22359 test ! -s conftest.err
22360 } && test -s conftest.$ac_objext; then
22361 ac_cv_struct_sockaddr_storage=yes
22362 else
22363 echo "$as_me: failed program was:" >&5
22364 sed 's/^/| /' conftest.$ac_ext >&5
22366 ac_cv_struct_sockaddr_storage=no
22369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22372 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
22373 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6; }
22374 if test $ac_cv_struct_sockaddr_storage = yes; then
22376 cat >>confdefs.h <<\_ACEOF
22377 #define HAVE_SOCKADDR_STORAGE 1
22378 _ACEOF
22382 # checks for compiler characteristics
22385 { echo "$as_me:$LINENO: checking whether char is unsigned" >&5
22386 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; }
22387 if test "${ac_cv_c_char_unsigned+set}" = set; then
22388 echo $ECHO_N "(cached) $ECHO_C" >&6
22389 else
22390 cat >conftest.$ac_ext <<_ACEOF
22391 /* confdefs.h. */
22392 _ACEOF
22393 cat confdefs.h >>conftest.$ac_ext
22394 cat >>conftest.$ac_ext <<_ACEOF
22395 /* end confdefs.h. */
22396 $ac_includes_default
22398 main ()
22400 static int test_array [1 - 2 * !(((char) -1) < 0)];
22401 test_array [0] = 0
22404 return 0;
22406 _ACEOF
22407 rm -f conftest.$ac_objext
22408 if { (ac_try="$ac_compile"
22409 case "(($ac_try" in
22410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22411 *) ac_try_echo=$ac_try;;
22412 esac
22413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22414 (eval "$ac_compile") 2>conftest.er1
22415 ac_status=$?
22416 grep -v '^ *+' conftest.er1 >conftest.err
22417 rm -f conftest.er1
22418 cat conftest.err >&5
22419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22420 (exit $ac_status); } && {
22421 test -z "$ac_c_werror_flag" ||
22422 test ! -s conftest.err
22423 } && test -s conftest.$ac_objext; then
22424 ac_cv_c_char_unsigned=no
22425 else
22426 echo "$as_me: failed program was:" >&5
22427 sed 's/^/| /' conftest.$ac_ext >&5
22429 ac_cv_c_char_unsigned=yes
22432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22434 { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
22435 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; }
22436 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
22437 cat >>confdefs.h <<\_ACEOF
22438 #define __CHAR_UNSIGNED__ 1
22439 _ACEOF
22443 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22444 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
22445 if test "${ac_cv_c_const+set}" = set; then
22446 echo $ECHO_N "(cached) $ECHO_C" >&6
22447 else
22448 cat >conftest.$ac_ext <<_ACEOF
22449 /* confdefs.h. */
22450 _ACEOF
22451 cat confdefs.h >>conftest.$ac_ext
22452 cat >>conftest.$ac_ext <<_ACEOF
22453 /* end confdefs.h. */
22456 main ()
22458 /* FIXME: Include the comments suggested by Paul. */
22459 #ifndef __cplusplus
22460 /* Ultrix mips cc rejects this. */
22461 typedef int charset[2];
22462 const charset cs;
22463 /* SunOS 4.1.1 cc rejects this. */
22464 char const *const *pcpcc;
22465 char **ppc;
22466 /* NEC SVR4.0.2 mips cc rejects this. */
22467 struct point {int x, y;};
22468 static struct point const zero = {0,0};
22469 /* AIX XL C 1.02.0.0 rejects this.
22470 It does not let you subtract one const X* pointer from another in
22471 an arm of an if-expression whose if-part is not a constant
22472 expression */
22473 const char *g = "string";
22474 pcpcc = &g + (g ? g-g : 0);
22475 /* HPUX 7.0 cc rejects these. */
22476 ++pcpcc;
22477 ppc = (char**) pcpcc;
22478 pcpcc = (char const *const *) ppc;
22479 { /* SCO 3.2v4 cc rejects this. */
22480 char *t;
22481 char const *s = 0 ? (char *) 0 : (char const *) 0;
22483 *t++ = 0;
22484 if (s) return 0;
22486 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22487 int x[] = {25, 17};
22488 const int *foo = &x[0];
22489 ++foo;
22491 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22492 typedef const int *iptr;
22493 iptr p = 0;
22494 ++p;
22496 { /* AIX XL C 1.02.0.0 rejects this saying
22497 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22498 struct s { int j; const int *ap[3]; };
22499 struct s *b; b->j = 5;
22501 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22502 const int foo = 10;
22503 if (!foo) return 0;
22505 return !cs[0] && !zero.x;
22506 #endif
22509 return 0;
22511 _ACEOF
22512 rm -f conftest.$ac_objext
22513 if { (ac_try="$ac_compile"
22514 case "(($ac_try" in
22515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22516 *) ac_try_echo=$ac_try;;
22517 esac
22518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22519 (eval "$ac_compile") 2>conftest.er1
22520 ac_status=$?
22521 grep -v '^ *+' conftest.er1 >conftest.err
22522 rm -f conftest.er1
22523 cat conftest.err >&5
22524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22525 (exit $ac_status); } && {
22526 test -z "$ac_c_werror_flag" ||
22527 test ! -s conftest.err
22528 } && test -s conftest.$ac_objext; then
22529 ac_cv_c_const=yes
22530 else
22531 echo "$as_me: failed program was:" >&5
22532 sed 's/^/| /' conftest.$ac_ext >&5
22534 ac_cv_c_const=no
22537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22539 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22540 echo "${ECHO_T}$ac_cv_c_const" >&6; }
22541 if test $ac_cv_c_const = no; then
22543 cat >>confdefs.h <<\_ACEOF
22544 #define const
22545 _ACEOF
22550 works=no
22551 { echo "$as_me:$LINENO: checking for working volatile" >&5
22552 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
22553 cat >conftest.$ac_ext <<_ACEOF
22554 /* confdefs.h. */
22555 _ACEOF
22556 cat confdefs.h >>conftest.$ac_ext
22557 cat >>conftest.$ac_ext <<_ACEOF
22558 /* end confdefs.h. */
22561 main ()
22563 volatile int x; x = 0;
22565 return 0;
22567 _ACEOF
22568 rm -f conftest.$ac_objext
22569 if { (ac_try="$ac_compile"
22570 case "(($ac_try" in
22571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22572 *) ac_try_echo=$ac_try;;
22573 esac
22574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22575 (eval "$ac_compile") 2>conftest.er1
22576 ac_status=$?
22577 grep -v '^ *+' conftest.er1 >conftest.err
22578 rm -f conftest.er1
22579 cat conftest.err >&5
22580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22581 (exit $ac_status); } && {
22582 test -z "$ac_c_werror_flag" ||
22583 test ! -s conftest.err
22584 } && test -s conftest.$ac_objext; then
22585 works=yes
22586 else
22587 echo "$as_me: failed program was:" >&5
22588 sed 's/^/| /' conftest.$ac_ext >&5
22591 cat >>confdefs.h <<\_ACEOF
22592 #define volatile
22593 _ACEOF
22598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22599 { echo "$as_me:$LINENO: result: $works" >&5
22600 echo "${ECHO_T}$works" >&6; }
22602 works=no
22603 { echo "$as_me:$LINENO: checking for working signed char" >&5
22604 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6; }
22605 cat >conftest.$ac_ext <<_ACEOF
22606 /* confdefs.h. */
22607 _ACEOF
22608 cat confdefs.h >>conftest.$ac_ext
22609 cat >>conftest.$ac_ext <<_ACEOF
22610 /* end confdefs.h. */
22613 main ()
22615 signed char c;
22617 return 0;
22619 _ACEOF
22620 rm -f conftest.$ac_objext
22621 if { (ac_try="$ac_compile"
22622 case "(($ac_try" in
22623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22624 *) ac_try_echo=$ac_try;;
22625 esac
22626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22627 (eval "$ac_compile") 2>conftest.er1
22628 ac_status=$?
22629 grep -v '^ *+' conftest.er1 >conftest.err
22630 rm -f conftest.er1
22631 cat conftest.err >&5
22632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22633 (exit $ac_status); } && {
22634 test -z "$ac_c_werror_flag" ||
22635 test ! -s conftest.err
22636 } && test -s conftest.$ac_objext; then
22637 works=yes
22638 else
22639 echo "$as_me: failed program was:" >&5
22640 sed 's/^/| /' conftest.$ac_ext >&5
22643 cat >>confdefs.h <<\_ACEOF
22644 #define signed
22645 _ACEOF
22650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22651 { echo "$as_me:$LINENO: result: $works" >&5
22652 echo "${ECHO_T}$works" >&6; }
22654 have_prototypes=no
22655 { echo "$as_me:$LINENO: checking for prototypes" >&5
22656 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6; }
22657 cat >conftest.$ac_ext <<_ACEOF
22658 /* confdefs.h. */
22659 _ACEOF
22660 cat confdefs.h >>conftest.$ac_ext
22661 cat >>conftest.$ac_ext <<_ACEOF
22662 /* end confdefs.h. */
22663 int foo(int x) { return 0; }
22665 main ()
22667 return foo(10);
22669 return 0;
22671 _ACEOF
22672 rm -f conftest.$ac_objext
22673 if { (ac_try="$ac_compile"
22674 case "(($ac_try" in
22675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22676 *) ac_try_echo=$ac_try;;
22677 esac
22678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22679 (eval "$ac_compile") 2>conftest.er1
22680 ac_status=$?
22681 grep -v '^ *+' conftest.er1 >conftest.err
22682 rm -f conftest.er1
22683 cat conftest.err >&5
22684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22685 (exit $ac_status); } && {
22686 test -z "$ac_c_werror_flag" ||
22687 test ! -s conftest.err
22688 } && test -s conftest.$ac_objext; then
22691 cat >>confdefs.h <<\_ACEOF
22692 #define HAVE_PROTOTYPES 1
22693 _ACEOF
22695 have_prototypes=yes
22697 else
22698 echo "$as_me: failed program was:" >&5
22699 sed 's/^/| /' conftest.$ac_ext >&5
22704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22705 { echo "$as_me:$LINENO: result: $have_prototypes" >&5
22706 echo "${ECHO_T}$have_prototypes" >&6; }
22708 works=no
22709 { echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
22710 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6; }
22711 cat >conftest.$ac_ext <<_ACEOF
22712 /* confdefs.h. */
22713 _ACEOF
22714 cat confdefs.h >>conftest.$ac_ext
22715 cat >>conftest.$ac_ext <<_ACEOF
22716 /* end confdefs.h. */
22718 #include <stdarg.h>
22719 int foo(int x, ...) {
22720 va_list va;
22721 va_start(va, x);
22722 va_arg(va, int);
22723 va_arg(va, char *);
22724 va_arg(va, double);
22725 return 0;
22729 main ()
22731 return foo(10, "", 3.14);
22733 return 0;
22735 _ACEOF
22736 rm -f conftest.$ac_objext
22737 if { (ac_try="$ac_compile"
22738 case "(($ac_try" in
22739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22740 *) ac_try_echo=$ac_try;;
22741 esac
22742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22743 (eval "$ac_compile") 2>conftest.er1
22744 ac_status=$?
22745 grep -v '^ *+' conftest.er1 >conftest.err
22746 rm -f conftest.er1
22747 cat conftest.err >&5
22748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22749 (exit $ac_status); } && {
22750 test -z "$ac_c_werror_flag" ||
22751 test ! -s conftest.err
22752 } && test -s conftest.$ac_objext; then
22755 cat >>confdefs.h <<\_ACEOF
22756 #define HAVE_STDARG_PROTOTYPES 1
22757 _ACEOF
22759 works=yes
22761 else
22762 echo "$as_me: failed program was:" >&5
22763 sed 's/^/| /' conftest.$ac_ext >&5
22768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22769 { echo "$as_me:$LINENO: result: $works" >&5
22770 echo "${ECHO_T}$works" >&6; }
22772 # check for socketpair
22773 { echo "$as_me:$LINENO: checking for socketpair" >&5
22774 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6; }
22775 cat >conftest.$ac_ext <<_ACEOF
22776 /* confdefs.h. */
22777 _ACEOF
22778 cat confdefs.h >>conftest.$ac_ext
22779 cat >>conftest.$ac_ext <<_ACEOF
22780 /* end confdefs.h. */
22782 #include <sys/types.h>
22783 #include <sys/socket.h>
22786 main ()
22788 void *x=socketpair
22790 return 0;
22792 _ACEOF
22793 rm -f conftest.$ac_objext
22794 if { (ac_try="$ac_compile"
22795 case "(($ac_try" in
22796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22797 *) ac_try_echo=$ac_try;;
22798 esac
22799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22800 (eval "$ac_compile") 2>conftest.er1
22801 ac_status=$?
22802 grep -v '^ *+' conftest.er1 >conftest.err
22803 rm -f conftest.er1
22804 cat conftest.err >&5
22805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22806 (exit $ac_status); } && {
22807 test -z "$ac_c_werror_flag" ||
22808 test ! -s conftest.err
22809 } && test -s conftest.$ac_objext; then
22811 cat >>confdefs.h <<\_ACEOF
22812 #define HAVE_SOCKETPAIR 1
22813 _ACEOF
22815 { echo "$as_me:$LINENO: result: yes" >&5
22816 echo "${ECHO_T}yes" >&6; }
22817 else
22818 echo "$as_me: failed program was:" >&5
22819 sed 's/^/| /' conftest.$ac_ext >&5
22821 { echo "$as_me:$LINENO: result: no" >&5
22822 echo "${ECHO_T}no" >&6; }
22826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22828 # check if sockaddr has sa_len member
22829 { echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
22830 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6; }
22831 cat >conftest.$ac_ext <<_ACEOF
22832 /* confdefs.h. */
22833 _ACEOF
22834 cat confdefs.h >>conftest.$ac_ext
22835 cat >>conftest.$ac_ext <<_ACEOF
22836 /* end confdefs.h. */
22837 #include <sys/types.h>
22838 #include <sys/socket.h>
22840 main ()
22842 struct sockaddr x;
22843 x.sa_len = 0;
22845 return 0;
22847 _ACEOF
22848 rm -f conftest.$ac_objext
22849 if { (ac_try="$ac_compile"
22850 case "(($ac_try" in
22851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22852 *) ac_try_echo=$ac_try;;
22853 esac
22854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22855 (eval "$ac_compile") 2>conftest.er1
22856 ac_status=$?
22857 grep -v '^ *+' conftest.er1 >conftest.err
22858 rm -f conftest.er1
22859 cat conftest.err >&5
22860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22861 (exit $ac_status); } && {
22862 test -z "$ac_c_werror_flag" ||
22863 test ! -s conftest.err
22864 } && test -s conftest.$ac_objext; then
22865 { echo "$as_me:$LINENO: result: yes" >&5
22866 echo "${ECHO_T}yes" >&6; }
22868 cat >>confdefs.h <<\_ACEOF
22869 #define HAVE_SOCKADDR_SA_LEN 1
22870 _ACEOF
22872 else
22873 echo "$as_me: failed program was:" >&5
22874 sed 's/^/| /' conftest.$ac_ext >&5
22876 { echo "$as_me:$LINENO: result: no" >&5
22877 echo "${ECHO_T}no" >&6; }
22880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22882 va_list_is_array=no
22883 { echo "$as_me:$LINENO: checking whether va_list is an array" >&5
22884 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6; }
22885 cat >conftest.$ac_ext <<_ACEOF
22886 /* confdefs.h. */
22887 _ACEOF
22888 cat confdefs.h >>conftest.$ac_ext
22889 cat >>conftest.$ac_ext <<_ACEOF
22890 /* end confdefs.h. */
22892 #ifdef HAVE_STDARG_PROTOTYPES
22893 #include <stdarg.h>
22894 #else
22895 #include <varargs.h>
22896 #endif
22899 main ()
22901 va_list list1, list2; list1 = list2;
22903 return 0;
22905 _ACEOF
22906 rm -f conftest.$ac_objext
22907 if { (ac_try="$ac_compile"
22908 case "(($ac_try" in
22909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22910 *) ac_try_echo=$ac_try;;
22911 esac
22912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22913 (eval "$ac_compile") 2>conftest.er1
22914 ac_status=$?
22915 grep -v '^ *+' conftest.er1 >conftest.err
22916 rm -f conftest.er1
22917 cat conftest.err >&5
22918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22919 (exit $ac_status); } && {
22920 test -z "$ac_c_werror_flag" ||
22921 test ! -s conftest.err
22922 } && test -s conftest.$ac_objext; then
22924 else
22925 echo "$as_me: failed program was:" >&5
22926 sed 's/^/| /' conftest.$ac_ext >&5
22930 cat >>confdefs.h <<\_ACEOF
22931 #define VA_LIST_IS_ARRAY 1
22932 _ACEOF
22934 va_list_is_array=yes
22938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22939 { echo "$as_me:$LINENO: result: $va_list_is_array" >&5
22940 echo "${ECHO_T}$va_list_is_array" >&6; }
22942 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
22946 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
22947 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
22948 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
22949 echo $ECHO_N "(cached) $ECHO_C" >&6
22950 else
22951 cat >conftest.$ac_ext <<_ACEOF
22952 /* confdefs.h. */
22953 _ACEOF
22954 cat confdefs.h >>conftest.$ac_ext
22955 cat >>conftest.$ac_ext <<_ACEOF
22956 /* end confdefs.h. */
22957 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
22958 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22959 #define gethostbyname_r innocuous_gethostbyname_r
22961 /* System header to define __stub macros and hopefully few prototypes,
22962 which can conflict with char gethostbyname_r (); below.
22963 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22964 <limits.h> exists even on freestanding compilers. */
22966 #ifdef __STDC__
22967 # include <limits.h>
22968 #else
22969 # include <assert.h>
22970 #endif
22972 #undef gethostbyname_r
22974 /* Override any GCC internal prototype to avoid an error.
22975 Use char because int might match the return type of a GCC
22976 builtin and then its argument prototype would still apply. */
22977 #ifdef __cplusplus
22978 extern "C"
22979 #endif
22980 char gethostbyname_r ();
22981 /* The GNU C library defines this for functions which it implements
22982 to always fail with ENOSYS. Some functions are actually named
22983 something starting with __ and the normal name is an alias. */
22984 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
22985 choke me
22986 #endif
22989 main ()
22991 return gethostbyname_r ();
22993 return 0;
22995 _ACEOF
22996 rm -f conftest.$ac_objext conftest$ac_exeext
22997 if { (ac_try="$ac_link"
22998 case "(($ac_try" in
22999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23000 *) ac_try_echo=$ac_try;;
23001 esac
23002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23003 (eval "$ac_link") 2>conftest.er1
23004 ac_status=$?
23005 grep -v '^ *+' conftest.er1 >conftest.err
23006 rm -f conftest.er1
23007 cat conftest.err >&5
23008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23009 (exit $ac_status); } && {
23010 test -z "$ac_c_werror_flag" ||
23011 test ! -s conftest.err
23012 } && test -s conftest$ac_exeext &&
23013 $as_test_x conftest$ac_exeext; then
23014 ac_cv_func_gethostbyname_r=yes
23015 else
23016 echo "$as_me: failed program was:" >&5
23017 sed 's/^/| /' conftest.$ac_ext >&5
23019 ac_cv_func_gethostbyname_r=no
23022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23023 conftest$ac_exeext conftest.$ac_ext
23025 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
23026 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
23027 if test $ac_cv_func_gethostbyname_r = yes; then
23029 cat >>confdefs.h <<\_ACEOF
23030 #define HAVE_GETHOSTBYNAME_R 1
23031 _ACEOF
23033 { echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
23034 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6; }
23035 OLD_CFLAGS=$CFLAGS
23036 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
23037 cat >conftest.$ac_ext <<_ACEOF
23038 /* confdefs.h. */
23039 _ACEOF
23040 cat confdefs.h >>conftest.$ac_ext
23041 cat >>conftest.$ac_ext <<_ACEOF
23042 /* end confdefs.h. */
23044 # include <netdb.h>
23047 main ()
23050 char *name;
23051 struct hostent *he, *res;
23052 char buffer[2048];
23053 int buflen = 2048;
23054 int h_errnop;
23056 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
23059 return 0;
23061 _ACEOF
23062 rm -f conftest.$ac_objext
23063 if { (ac_try="$ac_compile"
23064 case "(($ac_try" in
23065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23066 *) ac_try_echo=$ac_try;;
23067 esac
23068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23069 (eval "$ac_compile") 2>conftest.er1
23070 ac_status=$?
23071 grep -v '^ *+' conftest.er1 >conftest.err
23072 rm -f conftest.er1
23073 cat conftest.err >&5
23074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23075 (exit $ac_status); } && {
23076 test -z "$ac_c_werror_flag" ||
23077 test ! -s conftest.err
23078 } && test -s conftest.$ac_objext; then
23080 cat >>confdefs.h <<\_ACEOF
23081 #define HAVE_GETHOSTBYNAME_R 1
23082 _ACEOF
23085 cat >>confdefs.h <<\_ACEOF
23086 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
23087 _ACEOF
23089 { echo "$as_me:$LINENO: result: yes" >&5
23090 echo "${ECHO_T}yes" >&6; }
23092 else
23093 echo "$as_me: failed program was:" >&5
23094 sed 's/^/| /' conftest.$ac_ext >&5
23097 { echo "$as_me:$LINENO: result: no" >&5
23098 echo "${ECHO_T}no" >&6; }
23099 { echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
23100 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6; }
23101 cat >conftest.$ac_ext <<_ACEOF
23102 /* confdefs.h. */
23103 _ACEOF
23104 cat confdefs.h >>conftest.$ac_ext
23105 cat >>conftest.$ac_ext <<_ACEOF
23106 /* end confdefs.h. */
23108 # include <netdb.h>
23111 main ()
23114 char *name;
23115 struct hostent *he;
23116 char buffer[2048];
23117 int buflen = 2048;
23118 int h_errnop;
23120 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
23123 return 0;
23125 _ACEOF
23126 rm -f conftest.$ac_objext
23127 if { (ac_try="$ac_compile"
23128 case "(($ac_try" in
23129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23130 *) ac_try_echo=$ac_try;;
23131 esac
23132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23133 (eval "$ac_compile") 2>conftest.er1
23134 ac_status=$?
23135 grep -v '^ *+' conftest.er1 >conftest.err
23136 rm -f conftest.er1
23137 cat conftest.err >&5
23138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23139 (exit $ac_status); } && {
23140 test -z "$ac_c_werror_flag" ||
23141 test ! -s conftest.err
23142 } && test -s conftest.$ac_objext; then
23144 cat >>confdefs.h <<\_ACEOF
23145 #define HAVE_GETHOSTBYNAME_R 1
23146 _ACEOF
23149 cat >>confdefs.h <<\_ACEOF
23150 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
23151 _ACEOF
23153 { echo "$as_me:$LINENO: result: yes" >&5
23154 echo "${ECHO_T}yes" >&6; }
23156 else
23157 echo "$as_me: failed program was:" >&5
23158 sed 's/^/| /' conftest.$ac_ext >&5
23161 { echo "$as_me:$LINENO: result: no" >&5
23162 echo "${ECHO_T}no" >&6; }
23163 { echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
23164 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6; }
23165 cat >conftest.$ac_ext <<_ACEOF
23166 /* confdefs.h. */
23167 _ACEOF
23168 cat confdefs.h >>conftest.$ac_ext
23169 cat >>conftest.$ac_ext <<_ACEOF
23170 /* end confdefs.h. */
23172 # include <netdb.h>
23175 main ()
23178 char *name;
23179 struct hostent *he;
23180 struct hostent_data data;
23182 (void) gethostbyname_r(name, he, &data);
23185 return 0;
23187 _ACEOF
23188 rm -f conftest.$ac_objext
23189 if { (ac_try="$ac_compile"
23190 case "(($ac_try" in
23191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23192 *) ac_try_echo=$ac_try;;
23193 esac
23194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23195 (eval "$ac_compile") 2>conftest.er1
23196 ac_status=$?
23197 grep -v '^ *+' conftest.er1 >conftest.err
23198 rm -f conftest.er1
23199 cat conftest.err >&5
23200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23201 (exit $ac_status); } && {
23202 test -z "$ac_c_werror_flag" ||
23203 test ! -s conftest.err
23204 } && test -s conftest.$ac_objext; then
23206 cat >>confdefs.h <<\_ACEOF
23207 #define HAVE_GETHOSTBYNAME_R 1
23208 _ACEOF
23211 cat >>confdefs.h <<\_ACEOF
23212 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
23213 _ACEOF
23215 { echo "$as_me:$LINENO: result: yes" >&5
23216 echo "${ECHO_T}yes" >&6; }
23218 else
23219 echo "$as_me: failed program was:" >&5
23220 sed 's/^/| /' conftest.$ac_ext >&5
23223 { echo "$as_me:$LINENO: result: no" >&5
23224 echo "${ECHO_T}no" >&6; }
23228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23237 CFLAGS=$OLD_CFLAGS
23239 else
23242 for ac_func in gethostbyname
23244 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23245 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23246 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23247 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23248 echo $ECHO_N "(cached) $ECHO_C" >&6
23249 else
23250 cat >conftest.$ac_ext <<_ACEOF
23251 /* confdefs.h. */
23252 _ACEOF
23253 cat confdefs.h >>conftest.$ac_ext
23254 cat >>conftest.$ac_ext <<_ACEOF
23255 /* end confdefs.h. */
23256 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23257 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23258 #define $ac_func innocuous_$ac_func
23260 /* System header to define __stub macros and hopefully few prototypes,
23261 which can conflict with char $ac_func (); below.
23262 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23263 <limits.h> exists even on freestanding compilers. */
23265 #ifdef __STDC__
23266 # include <limits.h>
23267 #else
23268 # include <assert.h>
23269 #endif
23271 #undef $ac_func
23273 /* Override any GCC internal prototype to avoid an error.
23274 Use char because int might match the return type of a GCC
23275 builtin and then its argument prototype would still apply. */
23276 #ifdef __cplusplus
23277 extern "C"
23278 #endif
23279 char $ac_func ();
23280 /* The GNU C library defines this for functions which it implements
23281 to always fail with ENOSYS. Some functions are actually named
23282 something starting with __ and the normal name is an alias. */
23283 #if defined __stub_$ac_func || defined __stub___$ac_func
23284 choke me
23285 #endif
23288 main ()
23290 return $ac_func ();
23292 return 0;
23294 _ACEOF
23295 rm -f conftest.$ac_objext conftest$ac_exeext
23296 if { (ac_try="$ac_link"
23297 case "(($ac_try" in
23298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23299 *) ac_try_echo=$ac_try;;
23300 esac
23301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23302 (eval "$ac_link") 2>conftest.er1
23303 ac_status=$?
23304 grep -v '^ *+' conftest.er1 >conftest.err
23305 rm -f conftest.er1
23306 cat conftest.err >&5
23307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23308 (exit $ac_status); } && {
23309 test -z "$ac_c_werror_flag" ||
23310 test ! -s conftest.err
23311 } && test -s conftest$ac_exeext &&
23312 $as_test_x conftest$ac_exeext; then
23313 eval "$as_ac_var=yes"
23314 else
23315 echo "$as_me: failed program was:" >&5
23316 sed 's/^/| /' conftest.$ac_ext >&5
23318 eval "$as_ac_var=no"
23321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23322 conftest$ac_exeext conftest.$ac_ext
23324 ac_res=`eval echo '${'$as_ac_var'}'`
23325 { echo "$as_me:$LINENO: result: $ac_res" >&5
23326 echo "${ECHO_T}$ac_res" >&6; }
23327 if test `eval echo '${'$as_ac_var'}'` = yes; then
23328 cat >>confdefs.h <<_ACEOF
23329 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23330 _ACEOF
23333 done
23344 # checks for system services
23345 # (none yet)
23347 # Linux requires this for correct f.p. operations
23348 { echo "$as_me:$LINENO: checking for __fpu_control" >&5
23349 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6; }
23350 if test "${ac_cv_func___fpu_control+set}" = set; then
23351 echo $ECHO_N "(cached) $ECHO_C" >&6
23352 else
23353 cat >conftest.$ac_ext <<_ACEOF
23354 /* confdefs.h. */
23355 _ACEOF
23356 cat confdefs.h >>conftest.$ac_ext
23357 cat >>conftest.$ac_ext <<_ACEOF
23358 /* end confdefs.h. */
23359 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
23360 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23361 #define __fpu_control innocuous___fpu_control
23363 /* System header to define __stub macros and hopefully few prototypes,
23364 which can conflict with char __fpu_control (); below.
23365 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23366 <limits.h> exists even on freestanding compilers. */
23368 #ifdef __STDC__
23369 # include <limits.h>
23370 #else
23371 # include <assert.h>
23372 #endif
23374 #undef __fpu_control
23376 /* Override any GCC internal prototype to avoid an error.
23377 Use char because int might match the return type of a GCC
23378 builtin and then its argument prototype would still apply. */
23379 #ifdef __cplusplus
23380 extern "C"
23381 #endif
23382 char __fpu_control ();
23383 /* The GNU C library defines this for functions which it implements
23384 to always fail with ENOSYS. Some functions are actually named
23385 something starting with __ and the normal name is an alias. */
23386 #if defined __stub___fpu_control || defined __stub_____fpu_control
23387 choke me
23388 #endif
23391 main ()
23393 return __fpu_control ();
23395 return 0;
23397 _ACEOF
23398 rm -f conftest.$ac_objext conftest$ac_exeext
23399 if { (ac_try="$ac_link"
23400 case "(($ac_try" in
23401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23402 *) ac_try_echo=$ac_try;;
23403 esac
23404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23405 (eval "$ac_link") 2>conftest.er1
23406 ac_status=$?
23407 grep -v '^ *+' conftest.er1 >conftest.err
23408 rm -f conftest.er1
23409 cat conftest.err >&5
23410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23411 (exit $ac_status); } && {
23412 test -z "$ac_c_werror_flag" ||
23413 test ! -s conftest.err
23414 } && test -s conftest$ac_exeext &&
23415 $as_test_x conftest$ac_exeext; then
23416 ac_cv_func___fpu_control=yes
23417 else
23418 echo "$as_me: failed program was:" >&5
23419 sed 's/^/| /' conftest.$ac_ext >&5
23421 ac_cv_func___fpu_control=no
23424 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23425 conftest$ac_exeext conftest.$ac_ext
23427 { echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
23428 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6; }
23429 if test $ac_cv_func___fpu_control = yes; then
23431 else
23433 { echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
23434 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6; }
23435 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
23436 echo $ECHO_N "(cached) $ECHO_C" >&6
23437 else
23438 ac_check_lib_save_LIBS=$LIBS
23439 LIBS="-lieee $LIBS"
23440 cat >conftest.$ac_ext <<_ACEOF
23441 /* confdefs.h. */
23442 _ACEOF
23443 cat confdefs.h >>conftest.$ac_ext
23444 cat >>conftest.$ac_ext <<_ACEOF
23445 /* end confdefs.h. */
23447 /* Override any GCC internal prototype to avoid an error.
23448 Use char because int might match the return type of a GCC
23449 builtin and then its argument prototype would still apply. */
23450 #ifdef __cplusplus
23451 extern "C"
23452 #endif
23453 char __fpu_control ();
23455 main ()
23457 return __fpu_control ();
23459 return 0;
23461 _ACEOF
23462 rm -f conftest.$ac_objext conftest$ac_exeext
23463 if { (ac_try="$ac_link"
23464 case "(($ac_try" in
23465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23466 *) ac_try_echo=$ac_try;;
23467 esac
23468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23469 (eval "$ac_link") 2>conftest.er1
23470 ac_status=$?
23471 grep -v '^ *+' conftest.er1 >conftest.err
23472 rm -f conftest.er1
23473 cat conftest.err >&5
23474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23475 (exit $ac_status); } && {
23476 test -z "$ac_c_werror_flag" ||
23477 test ! -s conftest.err
23478 } && test -s conftest$ac_exeext &&
23479 $as_test_x conftest$ac_exeext; then
23480 ac_cv_lib_ieee___fpu_control=yes
23481 else
23482 echo "$as_me: failed program was:" >&5
23483 sed 's/^/| /' conftest.$ac_ext >&5
23485 ac_cv_lib_ieee___fpu_control=no
23488 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23489 conftest$ac_exeext conftest.$ac_ext
23490 LIBS=$ac_check_lib_save_LIBS
23492 { echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
23493 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6; }
23494 if test $ac_cv_lib_ieee___fpu_control = yes; then
23495 cat >>confdefs.h <<_ACEOF
23496 #define HAVE_LIBIEEE 1
23497 _ACEOF
23499 LIBS="-lieee $LIBS"
23507 # Check for --with-fpectl
23508 { echo "$as_me:$LINENO: checking for --with-fpectl" >&5
23509 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6; }
23511 # Check whether --with-fpectl was given.
23512 if test "${with_fpectl+set}" = set; then
23513 withval=$with_fpectl;
23514 if test "$withval" != no
23515 then
23517 cat >>confdefs.h <<\_ACEOF
23518 #define WANT_SIGFPE_HANDLER 1
23519 _ACEOF
23521 { echo "$as_me:$LINENO: result: yes" >&5
23522 echo "${ECHO_T}yes" >&6; }
23523 else { echo "$as_me:$LINENO: result: no" >&5
23524 echo "${ECHO_T}no" >&6; }
23526 else
23527 { echo "$as_me:$LINENO: result: no" >&5
23528 echo "${ECHO_T}no" >&6; }
23532 # check for --with-libm=...
23534 case $ac_sys_system in
23535 Darwin) ;;
23536 BeOS) ;;
23537 *) LIBM=-lm
23538 esac
23539 { echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
23540 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6; }
23542 # Check whether --with-libm was given.
23543 if test "${with_libm+set}" = set; then
23544 withval=$with_libm;
23545 if test "$withval" = no
23546 then LIBM=
23547 { echo "$as_me:$LINENO: result: force LIBM empty" >&5
23548 echo "${ECHO_T}force LIBM empty" >&6; }
23549 elif test "$withval" != yes
23550 then LIBM=$withval
23551 { echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
23552 echo "${ECHO_T}set LIBM=\"$withval\"" >&6; }
23553 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
23554 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
23555 { (exit 1); exit 1; }; }
23557 else
23558 { echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
23559 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6; }
23563 # check for --with-libc=...
23565 { echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
23566 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6; }
23568 # Check whether --with-libc was given.
23569 if test "${with_libc+set}" = set; then
23570 withval=$with_libc;
23571 if test "$withval" = no
23572 then LIBC=
23573 { echo "$as_me:$LINENO: result: force LIBC empty" >&5
23574 echo "${ECHO_T}force LIBC empty" >&6; }
23575 elif test "$withval" != yes
23576 then LIBC=$withval
23577 { echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
23578 echo "${ECHO_T}set LIBC=\"$withval\"" >&6; }
23579 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
23580 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
23581 { (exit 1); exit 1; }; }
23583 else
23584 { echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
23585 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6; }
23589 # **************************************************
23590 # * Check for various properties of floating point *
23591 # **************************************************
23593 { echo "$as_me:$LINENO: checking whether C doubles are little-endian IEEE 754 binary64" >&5
23594 echo $ECHO_N "checking whether C doubles are little-endian IEEE 754 binary64... $ECHO_C" >&6; }
23595 if test "${ac_cv_little_endian_double+set}" = set; then
23596 echo $ECHO_N "(cached) $ECHO_C" >&6
23597 else
23599 if test "$cross_compiling" = yes; then
23600 ac_cv_little_endian_double=no
23601 else
23602 cat >conftest.$ac_ext <<_ACEOF
23603 /* confdefs.h. */
23604 _ACEOF
23605 cat confdefs.h >>conftest.$ac_ext
23606 cat >>conftest.$ac_ext <<_ACEOF
23607 /* end confdefs.h. */
23609 #include <string.h>
23610 int main() {
23611 double x = 9006104071832581.0;
23612 if (memcmp(&x, "\x05\x04\x03\x02\x01\xff\x3f\x43", 8) == 0)
23613 return 0;
23614 else
23615 return 1;
23618 _ACEOF
23619 rm -f conftest$ac_exeext
23620 if { (ac_try="$ac_link"
23621 case "(($ac_try" in
23622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23623 *) ac_try_echo=$ac_try;;
23624 esac
23625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23626 (eval "$ac_link") 2>&5
23627 ac_status=$?
23628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23629 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23630 { (case "(($ac_try" in
23631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23632 *) ac_try_echo=$ac_try;;
23633 esac
23634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23635 (eval "$ac_try") 2>&5
23636 ac_status=$?
23637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23638 (exit $ac_status); }; }; then
23639 ac_cv_little_endian_double=yes
23640 else
23641 echo "$as_me: program exited with status $ac_status" >&5
23642 echo "$as_me: failed program was:" >&5
23643 sed 's/^/| /' conftest.$ac_ext >&5
23645 ( exit $ac_status )
23646 ac_cv_little_endian_double=no
23648 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23654 { echo "$as_me:$LINENO: result: $ac_cv_little_endian_double" >&5
23655 echo "${ECHO_T}$ac_cv_little_endian_double" >&6; }
23656 if test "$ac_cv_little_endian_double" = yes
23657 then
23659 cat >>confdefs.h <<\_ACEOF
23660 #define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1
23661 _ACEOF
23665 { echo "$as_me:$LINENO: checking whether C doubles are big-endian IEEE 754 binary64" >&5
23666 echo $ECHO_N "checking whether C doubles are big-endian IEEE 754 binary64... $ECHO_C" >&6; }
23667 if test "${ac_cv_big_endian_double+set}" = set; then
23668 echo $ECHO_N "(cached) $ECHO_C" >&6
23669 else
23671 if test "$cross_compiling" = yes; then
23672 ac_cv_big_endian_double=no
23673 else
23674 cat >conftest.$ac_ext <<_ACEOF
23675 /* confdefs.h. */
23676 _ACEOF
23677 cat confdefs.h >>conftest.$ac_ext
23678 cat >>conftest.$ac_ext <<_ACEOF
23679 /* end confdefs.h. */
23681 #include <string.h>
23682 int main() {
23683 double x = 9006104071832581.0;
23684 if (memcmp(&x, "\x43\x3f\xff\x01\x02\x03\x04\x05", 8) == 0)
23685 return 0;
23686 else
23687 return 1;
23690 _ACEOF
23691 rm -f conftest$ac_exeext
23692 if { (ac_try="$ac_link"
23693 case "(($ac_try" in
23694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23695 *) ac_try_echo=$ac_try;;
23696 esac
23697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23698 (eval "$ac_link") 2>&5
23699 ac_status=$?
23700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23701 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23702 { (case "(($ac_try" in
23703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23704 *) ac_try_echo=$ac_try;;
23705 esac
23706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23707 (eval "$ac_try") 2>&5
23708 ac_status=$?
23709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23710 (exit $ac_status); }; }; then
23711 ac_cv_big_endian_double=yes
23712 else
23713 echo "$as_me: program exited with status $ac_status" >&5
23714 echo "$as_me: failed program was:" >&5
23715 sed 's/^/| /' conftest.$ac_ext >&5
23717 ( exit $ac_status )
23718 ac_cv_big_endian_double=no
23720 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23726 { echo "$as_me:$LINENO: result: $ac_cv_big_endian_double" >&5
23727 echo "${ECHO_T}$ac_cv_big_endian_double" >&6; }
23728 if test "$ac_cv_big_endian_double" = yes
23729 then
23731 cat >>confdefs.h <<\_ACEOF
23732 #define DOUBLE_IS_BIG_ENDIAN_IEEE754 1
23733 _ACEOF
23737 # Some ARM platforms use a mixed-endian representation for doubles.
23738 # While Python doesn't currently have full support for these platforms
23739 # (see e.g., issue 1762561), we can at least make sure that float <-> string
23740 # conversions work.
23741 { echo "$as_me:$LINENO: checking whether C doubles are ARM mixed-endian IEEE 754 binary64" >&5
23742 echo $ECHO_N "checking whether C doubles are ARM mixed-endian IEEE 754 binary64... $ECHO_C" >&6; }
23743 if test "${ac_cv_mixed_endian_double+set}" = set; then
23744 echo $ECHO_N "(cached) $ECHO_C" >&6
23745 else
23747 if test "$cross_compiling" = yes; then
23748 ac_cv_mixed_endian_double=no
23749 else
23750 cat >conftest.$ac_ext <<_ACEOF
23751 /* confdefs.h. */
23752 _ACEOF
23753 cat confdefs.h >>conftest.$ac_ext
23754 cat >>conftest.$ac_ext <<_ACEOF
23755 /* end confdefs.h. */
23757 #include <string.h>
23758 int main() {
23759 double x = 9006104071832581.0;
23760 if (memcmp(&x, "\x01\xff\x3f\x43\x05\x04\x03\x02", 8) == 0)
23761 return 0;
23762 else
23763 return 1;
23766 _ACEOF
23767 rm -f conftest$ac_exeext
23768 if { (ac_try="$ac_link"
23769 case "(($ac_try" in
23770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23771 *) ac_try_echo=$ac_try;;
23772 esac
23773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23774 (eval "$ac_link") 2>&5
23775 ac_status=$?
23776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23777 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23778 { (case "(($ac_try" in
23779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23780 *) ac_try_echo=$ac_try;;
23781 esac
23782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23783 (eval "$ac_try") 2>&5
23784 ac_status=$?
23785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23786 (exit $ac_status); }; }; then
23787 ac_cv_mixed_endian_double=yes
23788 else
23789 echo "$as_me: program exited with status $ac_status" >&5
23790 echo "$as_me: failed program was:" >&5
23791 sed 's/^/| /' conftest.$ac_ext >&5
23793 ( exit $ac_status )
23794 ac_cv_mixed_endian_double=no
23796 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23802 { echo "$as_me:$LINENO: result: $ac_cv_mixed_endian_double" >&5
23803 echo "${ECHO_T}$ac_cv_mixed_endian_double" >&6; }
23804 if test "$ac_cv_mixed_endian_double" = yes
23805 then
23807 cat >>confdefs.h <<\_ACEOF
23808 #define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1
23809 _ACEOF
23813 # The short float repr introduced in Python 3.1 requires the
23814 # correctly-rounded string <-> double conversion functions from
23815 # Python/dtoa.c, which in turn require that the FPU uses 53-bit
23816 # rounding; this is a problem on x86, where the x87 FPU has a default
23817 # rounding precision of 64 bits. For gcc/x86, we can fix this by
23818 # using inline assembler to get and set the x87 FPU control word.
23820 # This inline assembler syntax may also work for suncc and icc,
23821 # so we try it on all platforms.
23823 { echo "$as_me:$LINENO: checking whether we can use gcc inline assembler to get and set x87 control word" >&5
23824 echo $ECHO_N "checking whether we can use gcc inline assembler to get and set x87 control word... $ECHO_C" >&6; }
23825 cat >conftest.$ac_ext <<_ACEOF
23826 /* confdefs.h. */
23827 _ACEOF
23828 cat confdefs.h >>conftest.$ac_ext
23829 cat >>conftest.$ac_ext <<_ACEOF
23830 /* end confdefs.h. */
23833 main ()
23836 unsigned short cw;
23837 __asm__ __volatile__ ("fnstcw %0" : "=m" (cw));
23838 __asm__ __volatile__ ("fldcw %0" : : "m" (cw));
23841 return 0;
23843 _ACEOF
23844 rm -f conftest.$ac_objext
23845 if { (ac_try="$ac_compile"
23846 case "(($ac_try" in
23847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23848 *) ac_try_echo=$ac_try;;
23849 esac
23850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23851 (eval "$ac_compile") 2>conftest.er1
23852 ac_status=$?
23853 grep -v '^ *+' conftest.er1 >conftest.err
23854 rm -f conftest.er1
23855 cat conftest.err >&5
23856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23857 (exit $ac_status); } && {
23858 test -z "$ac_c_werror_flag" ||
23859 test ! -s conftest.err
23860 } && test -s conftest.$ac_objext; then
23861 have_gcc_asm_for_x87=yes
23862 else
23863 echo "$as_me: failed program was:" >&5
23864 sed 's/^/| /' conftest.$ac_ext >&5
23866 have_gcc_asm_for_x87=no
23869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23870 { echo "$as_me:$LINENO: result: $have_gcc_asm_for_x87" >&5
23871 echo "${ECHO_T}$have_gcc_asm_for_x87" >&6; }
23872 if test "$have_gcc_asm_for_x87" = yes
23873 then
23875 cat >>confdefs.h <<\_ACEOF
23876 #define HAVE_GCC_ASM_FOR_X87 1
23877 _ACEOF
23881 # Detect whether system arithmetic is subject to x87-style double
23882 # rounding issues. The result of this test has little meaning on non
23883 # IEEE 754 platforms. On IEEE 754, test should return 1 if rounding
23884 # mode is round-to-nearest and double rounding issues are present, and
23885 # 0 otherwise. See http://bugs.python.org/issue2937 for more info.
23886 { echo "$as_me:$LINENO: checking for x87-style double rounding" >&5
23887 echo $ECHO_N "checking for x87-style double rounding... $ECHO_C" >&6; }
23888 # $BASECFLAGS may affect the result
23889 ac_save_cc="$CC"
23890 CC="$CC $BASECFLAGS"
23891 if test "$cross_compiling" = yes; then
23892 ac_cv_x87_double_rounding=no
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. */
23901 #include <stdlib.h>
23902 #include <math.h>
23903 int main() {
23904 volatile double x, y, z;
23905 /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */
23906 x = 0.99999999999999989; /* 1-2**-53 */
23907 y = 1./x;
23908 if (y != 1.)
23909 exit(0);
23910 /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */
23911 x = 1e16;
23912 y = 2.99999;
23913 z = x + y;
23914 if (z != 1e16+4.)
23915 exit(0);
23916 /* both tests show evidence of double rounding */
23917 exit(1);
23920 _ACEOF
23921 rm -f conftest$ac_exeext
23922 if { (ac_try="$ac_link"
23923 case "(($ac_try" in
23924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23925 *) ac_try_echo=$ac_try;;
23926 esac
23927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23928 (eval "$ac_link") 2>&5
23929 ac_status=$?
23930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23931 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23932 { (case "(($ac_try" in
23933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23934 *) ac_try_echo=$ac_try;;
23935 esac
23936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23937 (eval "$ac_try") 2>&5
23938 ac_status=$?
23939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23940 (exit $ac_status); }; }; then
23941 ac_cv_x87_double_rounding=no
23942 else
23943 echo "$as_me: program exited with status $ac_status" >&5
23944 echo "$as_me: failed program was:" >&5
23945 sed 's/^/| /' conftest.$ac_ext >&5
23947 ( exit $ac_status )
23948 ac_cv_x87_double_rounding=yes
23950 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23954 CC="$ac_save_cc"
23955 { echo "$as_me:$LINENO: result: $ac_cv_x87_double_rounding" >&5
23956 echo "${ECHO_T}$ac_cv_x87_double_rounding" >&6; }
23957 if test "$ac_cv_x87_double_rounding" = yes
23958 then
23960 cat >>confdefs.h <<\_ACEOF
23961 #define X87_DOUBLE_ROUNDING 1
23962 _ACEOF
23966 # ************************************
23967 # * Check for mathematical functions *
23968 # ************************************
23970 LIBS_SAVE=$LIBS
23971 LIBS="$LIBS $LIBM"
23973 # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of
23974 # -0. on some architectures.
23975 { echo "$as_me:$LINENO: checking whether tanh preserves the sign of zero" >&5
23976 echo $ECHO_N "checking whether tanh preserves the sign of zero... $ECHO_C" >&6; }
23977 if test "${ac_cv_tanh_preserves_zero_sign+set}" = set; then
23978 echo $ECHO_N "(cached) $ECHO_C" >&6
23979 else
23981 if test "$cross_compiling" = yes; then
23982 ac_cv_tanh_preserves_zero_sign=no
23983 else
23984 cat >conftest.$ac_ext <<_ACEOF
23985 /* confdefs.h. */
23986 _ACEOF
23987 cat confdefs.h >>conftest.$ac_ext
23988 cat >>conftest.$ac_ext <<_ACEOF
23989 /* end confdefs.h. */
23991 #include <math.h>
23992 #include <stdlib.h>
23993 int main() {
23994 /* return 0 if either negative zeros don't exist
23995 on this platform or if negative zeros exist
23996 and tanh(-0.) == -0. */
23997 if (atan2(0., -1.) == atan2(-0., -1.) ||
23998 atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0);
23999 else exit(1);
24002 _ACEOF
24003 rm -f conftest$ac_exeext
24004 if { (ac_try="$ac_link"
24005 case "(($ac_try" in
24006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24007 *) ac_try_echo=$ac_try;;
24008 esac
24009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24010 (eval "$ac_link") 2>&5
24011 ac_status=$?
24012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24013 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24014 { (case "(($ac_try" in
24015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24016 *) ac_try_echo=$ac_try;;
24017 esac
24018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24019 (eval "$ac_try") 2>&5
24020 ac_status=$?
24021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24022 (exit $ac_status); }; }; then
24023 ac_cv_tanh_preserves_zero_sign=yes
24024 else
24025 echo "$as_me: program exited with status $ac_status" >&5
24026 echo "$as_me: failed program was:" >&5
24027 sed 's/^/| /' conftest.$ac_ext >&5
24029 ( exit $ac_status )
24030 ac_cv_tanh_preserves_zero_sign=no
24032 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24038 { echo "$as_me:$LINENO: result: $ac_cv_tanh_preserves_zero_sign" >&5
24039 echo "${ECHO_T}$ac_cv_tanh_preserves_zero_sign" >&6; }
24040 if test "$ac_cv_tanh_preserves_zero_sign" = yes
24041 then
24043 cat >>confdefs.h <<\_ACEOF
24044 #define TANH_PRESERVES_ZERO_SIGN 1
24045 _ACEOF
24058 for ac_func in acosh asinh atanh copysign erf erfc expm1 finite gamma
24060 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24061 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24062 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24063 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24064 echo $ECHO_N "(cached) $ECHO_C" >&6
24065 else
24066 cat >conftest.$ac_ext <<_ACEOF
24067 /* confdefs.h. */
24068 _ACEOF
24069 cat confdefs.h >>conftest.$ac_ext
24070 cat >>conftest.$ac_ext <<_ACEOF
24071 /* end confdefs.h. */
24072 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24073 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24074 #define $ac_func innocuous_$ac_func
24076 /* System header to define __stub macros and hopefully few prototypes,
24077 which can conflict with char $ac_func (); below.
24078 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24079 <limits.h> exists even on freestanding compilers. */
24081 #ifdef __STDC__
24082 # include <limits.h>
24083 #else
24084 # include <assert.h>
24085 #endif
24087 #undef $ac_func
24089 /* Override any GCC internal prototype to avoid an error.
24090 Use char because int might match the return type of a GCC
24091 builtin and then its argument prototype would still apply. */
24092 #ifdef __cplusplus
24093 extern "C"
24094 #endif
24095 char $ac_func ();
24096 /* The GNU C library defines this for functions which it implements
24097 to always fail with ENOSYS. Some functions are actually named
24098 something starting with __ and the normal name is an alias. */
24099 #if defined __stub_$ac_func || defined __stub___$ac_func
24100 choke me
24101 #endif
24104 main ()
24106 return $ac_func ();
24108 return 0;
24110 _ACEOF
24111 rm -f conftest.$ac_objext conftest$ac_exeext
24112 if { (ac_try="$ac_link"
24113 case "(($ac_try" in
24114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24115 *) ac_try_echo=$ac_try;;
24116 esac
24117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24118 (eval "$ac_link") 2>conftest.er1
24119 ac_status=$?
24120 grep -v '^ *+' conftest.er1 >conftest.err
24121 rm -f conftest.er1
24122 cat conftest.err >&5
24123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24124 (exit $ac_status); } && {
24125 test -z "$ac_c_werror_flag" ||
24126 test ! -s conftest.err
24127 } && test -s conftest$ac_exeext &&
24128 $as_test_x conftest$ac_exeext; then
24129 eval "$as_ac_var=yes"
24130 else
24131 echo "$as_me: failed program was:" >&5
24132 sed 's/^/| /' conftest.$ac_ext >&5
24134 eval "$as_ac_var=no"
24137 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24138 conftest$ac_exeext conftest.$ac_ext
24140 ac_res=`eval echo '${'$as_ac_var'}'`
24141 { echo "$as_me:$LINENO: result: $ac_res" >&5
24142 echo "${ECHO_T}$ac_res" >&6; }
24143 if test `eval echo '${'$as_ac_var'}'` = yes; then
24144 cat >>confdefs.h <<_ACEOF
24145 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24146 _ACEOF
24149 done
24156 for ac_func in hypot lgamma log1p round tgamma
24158 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24159 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24160 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24161 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24162 echo $ECHO_N "(cached) $ECHO_C" >&6
24163 else
24164 cat >conftest.$ac_ext <<_ACEOF
24165 /* confdefs.h. */
24166 _ACEOF
24167 cat confdefs.h >>conftest.$ac_ext
24168 cat >>conftest.$ac_ext <<_ACEOF
24169 /* end confdefs.h. */
24170 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24171 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24172 #define $ac_func innocuous_$ac_func
24174 /* System header to define __stub macros and hopefully few prototypes,
24175 which can conflict with char $ac_func (); below.
24176 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24177 <limits.h> exists even on freestanding compilers. */
24179 #ifdef __STDC__
24180 # include <limits.h>
24181 #else
24182 # include <assert.h>
24183 #endif
24185 #undef $ac_func
24187 /* Override any GCC internal prototype to avoid an error.
24188 Use char because int might match the return type of a GCC
24189 builtin and then its argument prototype would still apply. */
24190 #ifdef __cplusplus
24191 extern "C"
24192 #endif
24193 char $ac_func ();
24194 /* The GNU C library defines this for functions which it implements
24195 to always fail with ENOSYS. Some functions are actually named
24196 something starting with __ and the normal name is an alias. */
24197 #if defined __stub_$ac_func || defined __stub___$ac_func
24198 choke me
24199 #endif
24202 main ()
24204 return $ac_func ();
24206 return 0;
24208 _ACEOF
24209 rm -f conftest.$ac_objext conftest$ac_exeext
24210 if { (ac_try="$ac_link"
24211 case "(($ac_try" in
24212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24213 *) ac_try_echo=$ac_try;;
24214 esac
24215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24216 (eval "$ac_link") 2>conftest.er1
24217 ac_status=$?
24218 grep -v '^ *+' conftest.er1 >conftest.err
24219 rm -f conftest.er1
24220 cat conftest.err >&5
24221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24222 (exit $ac_status); } && {
24223 test -z "$ac_c_werror_flag" ||
24224 test ! -s conftest.err
24225 } && test -s conftest$ac_exeext &&
24226 $as_test_x conftest$ac_exeext; then
24227 eval "$as_ac_var=yes"
24228 else
24229 echo "$as_me: failed program was:" >&5
24230 sed 's/^/| /' conftest.$ac_ext >&5
24232 eval "$as_ac_var=no"
24235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24236 conftest$ac_exeext conftest.$ac_ext
24238 ac_res=`eval echo '${'$as_ac_var'}'`
24239 { echo "$as_me:$LINENO: result: $ac_res" >&5
24240 echo "${ECHO_T}$ac_res" >&6; }
24241 if test `eval echo '${'$as_ac_var'}'` = yes; then
24242 cat >>confdefs.h <<_ACEOF
24243 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24244 _ACEOF
24247 done
24249 { echo "$as_me:$LINENO: checking whether isinf is declared" >&5
24250 echo $ECHO_N "checking whether isinf is declared... $ECHO_C" >&6; }
24251 if test "${ac_cv_have_decl_isinf+set}" = set; then
24252 echo $ECHO_N "(cached) $ECHO_C" >&6
24253 else
24254 cat >conftest.$ac_ext <<_ACEOF
24255 /* confdefs.h. */
24256 _ACEOF
24257 cat confdefs.h >>conftest.$ac_ext
24258 cat >>conftest.$ac_ext <<_ACEOF
24259 /* end confdefs.h. */
24260 #include <math.h>
24263 main ()
24265 #ifndef isinf
24266 (void) isinf;
24267 #endif
24270 return 0;
24272 _ACEOF
24273 rm -f conftest.$ac_objext
24274 if { (ac_try="$ac_compile"
24275 case "(($ac_try" in
24276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24277 *) ac_try_echo=$ac_try;;
24278 esac
24279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24280 (eval "$ac_compile") 2>conftest.er1
24281 ac_status=$?
24282 grep -v '^ *+' conftest.er1 >conftest.err
24283 rm -f conftest.er1
24284 cat conftest.err >&5
24285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24286 (exit $ac_status); } && {
24287 test -z "$ac_c_werror_flag" ||
24288 test ! -s conftest.err
24289 } && test -s conftest.$ac_objext; then
24290 ac_cv_have_decl_isinf=yes
24291 else
24292 echo "$as_me: failed program was:" >&5
24293 sed 's/^/| /' conftest.$ac_ext >&5
24295 ac_cv_have_decl_isinf=no
24298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24300 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isinf" >&5
24301 echo "${ECHO_T}$ac_cv_have_decl_isinf" >&6; }
24302 if test $ac_cv_have_decl_isinf = yes; then
24304 cat >>confdefs.h <<_ACEOF
24305 #define HAVE_DECL_ISINF 1
24306 _ACEOF
24309 else
24310 cat >>confdefs.h <<_ACEOF
24311 #define HAVE_DECL_ISINF 0
24312 _ACEOF
24316 { echo "$as_me:$LINENO: checking whether isnan is declared" >&5
24317 echo $ECHO_N "checking whether isnan is declared... $ECHO_C" >&6; }
24318 if test "${ac_cv_have_decl_isnan+set}" = set; then
24319 echo $ECHO_N "(cached) $ECHO_C" >&6
24320 else
24321 cat >conftest.$ac_ext <<_ACEOF
24322 /* confdefs.h. */
24323 _ACEOF
24324 cat confdefs.h >>conftest.$ac_ext
24325 cat >>conftest.$ac_ext <<_ACEOF
24326 /* end confdefs.h. */
24327 #include <math.h>
24330 main ()
24332 #ifndef isnan
24333 (void) isnan;
24334 #endif
24337 return 0;
24339 _ACEOF
24340 rm -f conftest.$ac_objext
24341 if { (ac_try="$ac_compile"
24342 case "(($ac_try" in
24343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24344 *) ac_try_echo=$ac_try;;
24345 esac
24346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24347 (eval "$ac_compile") 2>conftest.er1
24348 ac_status=$?
24349 grep -v '^ *+' conftest.er1 >conftest.err
24350 rm -f conftest.er1
24351 cat conftest.err >&5
24352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24353 (exit $ac_status); } && {
24354 test -z "$ac_c_werror_flag" ||
24355 test ! -s conftest.err
24356 } && test -s conftest.$ac_objext; then
24357 ac_cv_have_decl_isnan=yes
24358 else
24359 echo "$as_me: failed program was:" >&5
24360 sed 's/^/| /' conftest.$ac_ext >&5
24362 ac_cv_have_decl_isnan=no
24365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24367 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isnan" >&5
24368 echo "${ECHO_T}$ac_cv_have_decl_isnan" >&6; }
24369 if test $ac_cv_have_decl_isnan = yes; then
24371 cat >>confdefs.h <<_ACEOF
24372 #define HAVE_DECL_ISNAN 1
24373 _ACEOF
24376 else
24377 cat >>confdefs.h <<_ACEOF
24378 #define HAVE_DECL_ISNAN 0
24379 _ACEOF
24383 { echo "$as_me:$LINENO: checking whether isfinite is declared" >&5
24384 echo $ECHO_N "checking whether isfinite is declared... $ECHO_C" >&6; }
24385 if test "${ac_cv_have_decl_isfinite+set}" = set; then
24386 echo $ECHO_N "(cached) $ECHO_C" >&6
24387 else
24388 cat >conftest.$ac_ext <<_ACEOF
24389 /* confdefs.h. */
24390 _ACEOF
24391 cat confdefs.h >>conftest.$ac_ext
24392 cat >>conftest.$ac_ext <<_ACEOF
24393 /* end confdefs.h. */
24394 #include <math.h>
24397 main ()
24399 #ifndef isfinite
24400 (void) isfinite;
24401 #endif
24404 return 0;
24406 _ACEOF
24407 rm -f conftest.$ac_objext
24408 if { (ac_try="$ac_compile"
24409 case "(($ac_try" in
24410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24411 *) ac_try_echo=$ac_try;;
24412 esac
24413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24414 (eval "$ac_compile") 2>conftest.er1
24415 ac_status=$?
24416 grep -v '^ *+' conftest.er1 >conftest.err
24417 rm -f conftest.er1
24418 cat conftest.err >&5
24419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24420 (exit $ac_status); } && {
24421 test -z "$ac_c_werror_flag" ||
24422 test ! -s conftest.err
24423 } && test -s conftest.$ac_objext; then
24424 ac_cv_have_decl_isfinite=yes
24425 else
24426 echo "$as_me: failed program was:" >&5
24427 sed 's/^/| /' conftest.$ac_ext >&5
24429 ac_cv_have_decl_isfinite=no
24432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24434 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isfinite" >&5
24435 echo "${ECHO_T}$ac_cv_have_decl_isfinite" >&6; }
24436 if test $ac_cv_have_decl_isfinite = yes; then
24438 cat >>confdefs.h <<_ACEOF
24439 #define HAVE_DECL_ISFINITE 1
24440 _ACEOF
24443 else
24444 cat >>confdefs.h <<_ACEOF
24445 #define HAVE_DECL_ISFINITE 0
24446 _ACEOF
24453 LIBS=$LIBS_SAVE
24455 # For multiprocessing module, check that sem_open
24456 # actually works. For FreeBSD versions <= 7.2,
24457 # the kernel module that provides POSIX semaphores
24458 # isn't loaded by default, so an attempt to call
24459 # sem_open results in a 'Signal 12' error.
24460 { echo "$as_me:$LINENO: checking whether POSIX semaphores are enabled" >&5
24461 echo $ECHO_N "checking whether POSIX semaphores are enabled... $ECHO_C" >&6; }
24462 if test "${ac_cv_posix_semaphores_enabled+set}" = set; then
24463 echo $ECHO_N "(cached) $ECHO_C" >&6
24464 else
24465 if test "$cross_compiling" = yes; then
24466 ac_cv_posix_semaphores_enabled=yes
24467 else
24468 cat >conftest.$ac_ext <<_ACEOF
24469 /* confdefs.h. */
24470 _ACEOF
24471 cat confdefs.h >>conftest.$ac_ext
24472 cat >>conftest.$ac_ext <<_ACEOF
24473 /* end confdefs.h. */
24475 #include <unistd.h>
24476 #include <fcntl.h>
24477 #include <stdio.h>
24478 #include <semaphore.h>
24479 #include <sys/stat.h>
24481 int main(void) {
24482 sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0);
24483 if (a == SEM_FAILED) {
24484 perror("sem_open");
24485 return 1;
24487 sem_close(a);
24488 sem_unlink("/autoconf");
24489 return 0;
24492 _ACEOF
24493 rm -f conftest$ac_exeext
24494 if { (ac_try="$ac_link"
24495 case "(($ac_try" in
24496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24497 *) ac_try_echo=$ac_try;;
24498 esac
24499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24500 (eval "$ac_link") 2>&5
24501 ac_status=$?
24502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24503 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24504 { (case "(($ac_try" in
24505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24506 *) ac_try_echo=$ac_try;;
24507 esac
24508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24509 (eval "$ac_try") 2>&5
24510 ac_status=$?
24511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24512 (exit $ac_status); }; }; then
24513 ac_cv_posix_semaphores_enabled=yes
24514 else
24515 echo "$as_me: program exited with status $ac_status" >&5
24516 echo "$as_me: failed program was:" >&5
24517 sed 's/^/| /' conftest.$ac_ext >&5
24519 ( exit $ac_status )
24520 ac_cv_posix_semaphores_enabled=no
24522 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24529 { echo "$as_me:$LINENO: result: $ac_cv_posix_semaphores_enabled" >&5
24530 echo "${ECHO_T}$ac_cv_posix_semaphores_enabled" >&6; }
24531 if test $ac_cv_posix_semaphores_enabled = no
24532 then
24534 cat >>confdefs.h <<\_ACEOF
24535 #define POSIX_SEMAPHORES_NOT_ENABLED 1
24536 _ACEOF
24540 # Multiprocessing check for broken sem_getvalue
24541 { echo "$as_me:$LINENO: checking for broken sem_getvalue" >&5
24542 echo $ECHO_N "checking for broken sem_getvalue... $ECHO_C" >&6; }
24543 if test "${ac_cv_broken_sem_getvalue+set}" = set; then
24544 echo $ECHO_N "(cached) $ECHO_C" >&6
24545 else
24546 if test "$cross_compiling" = yes; then
24547 ac_cv_broken_sem_getvalue=yes
24548 else
24549 cat >conftest.$ac_ext <<_ACEOF
24550 /* confdefs.h. */
24551 _ACEOF
24552 cat confdefs.h >>conftest.$ac_ext
24553 cat >>conftest.$ac_ext <<_ACEOF
24554 /* end confdefs.h. */
24556 #include <unistd.h>
24557 #include <fcntl.h>
24558 #include <stdio.h>
24559 #include <semaphore.h>
24560 #include <sys/stat.h>
24562 int main(void){
24563 sem_t *a = sem_open("/autocftw", O_CREAT, S_IRUSR|S_IWUSR, 0);
24564 int count;
24565 int res;
24566 if(a==SEM_FAILED){
24567 perror("sem_open");
24568 return 1;
24571 res = sem_getvalue(a, &count);
24572 sem_close(a);
24573 sem_unlink("/autocftw");
24574 return res==-1 ? 1 : 0;
24577 _ACEOF
24578 rm -f conftest$ac_exeext
24579 if { (ac_try="$ac_link"
24580 case "(($ac_try" in
24581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24582 *) ac_try_echo=$ac_try;;
24583 esac
24584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24585 (eval "$ac_link") 2>&5
24586 ac_status=$?
24587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24588 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24589 { (case "(($ac_try" in
24590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24591 *) ac_try_echo=$ac_try;;
24592 esac
24593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24594 (eval "$ac_try") 2>&5
24595 ac_status=$?
24596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24597 (exit $ac_status); }; }; then
24598 ac_cv_broken_sem_getvalue=no
24599 else
24600 echo "$as_me: program exited with status $ac_status" >&5
24601 echo "$as_me: failed program was:" >&5
24602 sed 's/^/| /' conftest.$ac_ext >&5
24604 ( exit $ac_status )
24605 ac_cv_broken_sem_getvalue=yes
24607 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24614 { echo "$as_me:$LINENO: result: $ac_cv_broken_sem_getvalue" >&5
24615 echo "${ECHO_T}$ac_cv_broken_sem_getvalue" >&6; }
24616 if test $ac_cv_broken_sem_getvalue = yes
24617 then
24619 cat >>confdefs.h <<\_ACEOF
24620 #define HAVE_BROKEN_SEM_GETVALUE 1
24621 _ACEOF
24625 # determine what size digit to use for Python's longs
24626 { echo "$as_me:$LINENO: checking digit size for Python's longs" >&5
24627 echo $ECHO_N "checking digit size for Python's longs... $ECHO_C" >&6; }
24628 # Check whether --enable-big-digits was given.
24629 if test "${enable_big_digits+set}" = set; then
24630 enableval=$enable_big_digits; case $enable_big_digits in
24631 yes)
24632 enable_big_digits=30 ;;
24634 enable_big_digits=15 ;;
24635 15|30)
24638 { { echo "$as_me:$LINENO: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&5
24639 echo "$as_me: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&2;}
24640 { (exit 1); exit 1; }; } ;;
24641 esac
24642 { echo "$as_me:$LINENO: result: $enable_big_digits" >&5
24643 echo "${ECHO_T}$enable_big_digits" >&6; }
24645 cat >>confdefs.h <<_ACEOF
24646 #define PYLONG_BITS_IN_DIGIT $enable_big_digits
24647 _ACEOF
24650 else
24651 { echo "$as_me:$LINENO: result: no value specified" >&5
24652 echo "${ECHO_T}no value specified" >&6; }
24656 # check for wchar.h
24657 if test "${ac_cv_header_wchar_h+set}" = set; then
24658 { echo "$as_me:$LINENO: checking for wchar.h" >&5
24659 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
24660 if test "${ac_cv_header_wchar_h+set}" = set; then
24661 echo $ECHO_N "(cached) $ECHO_C" >&6
24663 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
24664 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
24665 else
24666 # Is the header compilable?
24667 { echo "$as_me:$LINENO: checking wchar.h usability" >&5
24668 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6; }
24669 cat >conftest.$ac_ext <<_ACEOF
24670 /* confdefs.h. */
24671 _ACEOF
24672 cat confdefs.h >>conftest.$ac_ext
24673 cat >>conftest.$ac_ext <<_ACEOF
24674 /* end confdefs.h. */
24675 $ac_includes_default
24676 #include <wchar.h>
24677 _ACEOF
24678 rm -f conftest.$ac_objext
24679 if { (ac_try="$ac_compile"
24680 case "(($ac_try" in
24681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24682 *) ac_try_echo=$ac_try;;
24683 esac
24684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24685 (eval "$ac_compile") 2>conftest.er1
24686 ac_status=$?
24687 grep -v '^ *+' conftest.er1 >conftest.err
24688 rm -f conftest.er1
24689 cat conftest.err >&5
24690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24691 (exit $ac_status); } && {
24692 test -z "$ac_c_werror_flag" ||
24693 test ! -s conftest.err
24694 } && test -s conftest.$ac_objext; then
24695 ac_header_compiler=yes
24696 else
24697 echo "$as_me: failed program was:" >&5
24698 sed 's/^/| /' conftest.$ac_ext >&5
24700 ac_header_compiler=no
24703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24704 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24705 echo "${ECHO_T}$ac_header_compiler" >&6; }
24707 # Is the header present?
24708 { echo "$as_me:$LINENO: checking wchar.h presence" >&5
24709 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6; }
24710 cat >conftest.$ac_ext <<_ACEOF
24711 /* confdefs.h. */
24712 _ACEOF
24713 cat confdefs.h >>conftest.$ac_ext
24714 cat >>conftest.$ac_ext <<_ACEOF
24715 /* end confdefs.h. */
24716 #include <wchar.h>
24717 _ACEOF
24718 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
24731 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24732 test ! -s conftest.err
24733 }; then
24734 ac_header_preproc=yes
24735 else
24736 echo "$as_me: failed program was:" >&5
24737 sed 's/^/| /' conftest.$ac_ext >&5
24739 ac_header_preproc=no
24742 rm -f conftest.err conftest.$ac_ext
24743 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24744 echo "${ECHO_T}$ac_header_preproc" >&6; }
24746 # So? What about this header?
24747 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24748 yes:no: )
24749 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
24750 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24751 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
24752 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
24753 ac_header_preproc=yes
24755 no:yes:* )
24756 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
24757 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
24758 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
24759 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
24760 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
24761 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
24762 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
24763 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
24764 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
24765 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
24766 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
24767 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
24768 ( cat <<\_ASBOX
24769 ## -------------------------------------- ##
24770 ## Report this to http://bugs.python.org/ ##
24771 ## -------------------------------------- ##
24772 _ASBOX
24773 ) | sed "s/^/$as_me: WARNING: /" >&2
24775 esac
24776 { echo "$as_me:$LINENO: checking for wchar.h" >&5
24777 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
24778 if test "${ac_cv_header_wchar_h+set}" = set; then
24779 echo $ECHO_N "(cached) $ECHO_C" >&6
24780 else
24781 ac_cv_header_wchar_h=$ac_header_preproc
24783 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
24784 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
24787 if test $ac_cv_header_wchar_h = yes; then
24790 cat >>confdefs.h <<\_ACEOF
24791 #define HAVE_WCHAR_H 1
24792 _ACEOF
24794 wchar_h="yes"
24796 else
24797 wchar_h="no"
24803 # determine wchar_t size
24804 if test "$wchar_h" = yes
24805 then
24806 { echo "$as_me:$LINENO: checking for wchar_t" >&5
24807 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
24808 if test "${ac_cv_type_wchar_t+set}" = set; then
24809 echo $ECHO_N "(cached) $ECHO_C" >&6
24810 else
24811 cat >conftest.$ac_ext <<_ACEOF
24812 /* confdefs.h. */
24813 _ACEOF
24814 cat confdefs.h >>conftest.$ac_ext
24815 cat >>conftest.$ac_ext <<_ACEOF
24816 /* end confdefs.h. */
24817 #include <wchar.h>
24819 typedef wchar_t ac__type_new_;
24821 main ()
24823 if ((ac__type_new_ *) 0)
24824 return 0;
24825 if (sizeof (ac__type_new_))
24826 return 0;
24828 return 0;
24830 _ACEOF
24831 rm -f conftest.$ac_objext
24832 if { (ac_try="$ac_compile"
24833 case "(($ac_try" in
24834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24835 *) ac_try_echo=$ac_try;;
24836 esac
24837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24838 (eval "$ac_compile") 2>conftest.er1
24839 ac_status=$?
24840 grep -v '^ *+' conftest.er1 >conftest.err
24841 rm -f conftest.er1
24842 cat conftest.err >&5
24843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24844 (exit $ac_status); } && {
24845 test -z "$ac_c_werror_flag" ||
24846 test ! -s conftest.err
24847 } && test -s conftest.$ac_objext; then
24848 ac_cv_type_wchar_t=yes
24849 else
24850 echo "$as_me: failed program was:" >&5
24851 sed 's/^/| /' conftest.$ac_ext >&5
24853 ac_cv_type_wchar_t=no
24856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24858 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
24859 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
24861 # The cast to long int works around a bug in the HP C Compiler
24862 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24863 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24864 # This bug is HP SR number 8606223364.
24865 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
24866 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
24867 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
24868 echo $ECHO_N "(cached) $ECHO_C" >&6
24869 else
24870 if test "$cross_compiling" = yes; then
24871 # Depending upon the size, compute the lo and hi bounds.
24872 cat >conftest.$ac_ext <<_ACEOF
24873 /* confdefs.h. */
24874 _ACEOF
24875 cat confdefs.h >>conftest.$ac_ext
24876 cat >>conftest.$ac_ext <<_ACEOF
24877 /* end confdefs.h. */
24878 #include <wchar.h>
24880 typedef wchar_t ac__type_sizeof_;
24882 main ()
24884 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24885 test_array [0] = 0
24888 return 0;
24890 _ACEOF
24891 rm -f conftest.$ac_objext
24892 if { (ac_try="$ac_compile"
24893 case "(($ac_try" in
24894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24895 *) ac_try_echo=$ac_try;;
24896 esac
24897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24898 (eval "$ac_compile") 2>conftest.er1
24899 ac_status=$?
24900 grep -v '^ *+' conftest.er1 >conftest.err
24901 rm -f conftest.er1
24902 cat conftest.err >&5
24903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24904 (exit $ac_status); } && {
24905 test -z "$ac_c_werror_flag" ||
24906 test ! -s conftest.err
24907 } && test -s conftest.$ac_objext; then
24908 ac_lo=0 ac_mid=0
24909 while :; do
24910 cat >conftest.$ac_ext <<_ACEOF
24911 /* confdefs.h. */
24912 _ACEOF
24913 cat confdefs.h >>conftest.$ac_ext
24914 cat >>conftest.$ac_ext <<_ACEOF
24915 /* end confdefs.h. */
24916 #include <wchar.h>
24918 typedef wchar_t ac__type_sizeof_;
24920 main ()
24922 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24923 test_array [0] = 0
24926 return 0;
24928 _ACEOF
24929 rm -f conftest.$ac_objext
24930 if { (ac_try="$ac_compile"
24931 case "(($ac_try" in
24932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24933 *) ac_try_echo=$ac_try;;
24934 esac
24935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24936 (eval "$ac_compile") 2>conftest.er1
24937 ac_status=$?
24938 grep -v '^ *+' conftest.er1 >conftest.err
24939 rm -f conftest.er1
24940 cat conftest.err >&5
24941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24942 (exit $ac_status); } && {
24943 test -z "$ac_c_werror_flag" ||
24944 test ! -s conftest.err
24945 } && test -s conftest.$ac_objext; then
24946 ac_hi=$ac_mid; break
24947 else
24948 echo "$as_me: failed program was:" >&5
24949 sed 's/^/| /' conftest.$ac_ext >&5
24951 ac_lo=`expr $ac_mid + 1`
24952 if test $ac_lo -le $ac_mid; then
24953 ac_lo= ac_hi=
24954 break
24956 ac_mid=`expr 2 '*' $ac_mid + 1`
24959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24960 done
24961 else
24962 echo "$as_me: failed program was:" >&5
24963 sed 's/^/| /' conftest.$ac_ext >&5
24965 cat >conftest.$ac_ext <<_ACEOF
24966 /* confdefs.h. */
24967 _ACEOF
24968 cat confdefs.h >>conftest.$ac_ext
24969 cat >>conftest.$ac_ext <<_ACEOF
24970 /* end confdefs.h. */
24971 #include <wchar.h>
24973 typedef wchar_t ac__type_sizeof_;
24975 main ()
24977 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24978 test_array [0] = 0
24981 return 0;
24983 _ACEOF
24984 rm -f conftest.$ac_objext
24985 if { (ac_try="$ac_compile"
24986 case "(($ac_try" in
24987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24988 *) ac_try_echo=$ac_try;;
24989 esac
24990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24991 (eval "$ac_compile") 2>conftest.er1
24992 ac_status=$?
24993 grep -v '^ *+' conftest.er1 >conftest.err
24994 rm -f conftest.er1
24995 cat conftest.err >&5
24996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24997 (exit $ac_status); } && {
24998 test -z "$ac_c_werror_flag" ||
24999 test ! -s conftest.err
25000 } && test -s conftest.$ac_objext; then
25001 ac_hi=-1 ac_mid=-1
25002 while :; do
25003 cat >conftest.$ac_ext <<_ACEOF
25004 /* confdefs.h. */
25005 _ACEOF
25006 cat confdefs.h >>conftest.$ac_ext
25007 cat >>conftest.$ac_ext <<_ACEOF
25008 /* end confdefs.h. */
25009 #include <wchar.h>
25011 typedef wchar_t ac__type_sizeof_;
25013 main ()
25015 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25016 test_array [0] = 0
25019 return 0;
25021 _ACEOF
25022 rm -f conftest.$ac_objext
25023 if { (ac_try="$ac_compile"
25024 case "(($ac_try" in
25025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25026 *) ac_try_echo=$ac_try;;
25027 esac
25028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25029 (eval "$ac_compile") 2>conftest.er1
25030 ac_status=$?
25031 grep -v '^ *+' conftest.er1 >conftest.err
25032 rm -f conftest.er1
25033 cat conftest.err >&5
25034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25035 (exit $ac_status); } && {
25036 test -z "$ac_c_werror_flag" ||
25037 test ! -s conftest.err
25038 } && test -s conftest.$ac_objext; then
25039 ac_lo=$ac_mid; break
25040 else
25041 echo "$as_me: failed program was:" >&5
25042 sed 's/^/| /' conftest.$ac_ext >&5
25044 ac_hi=`expr '(' $ac_mid ')' - 1`
25045 if test $ac_mid -le $ac_hi; then
25046 ac_lo= ac_hi=
25047 break
25049 ac_mid=`expr 2 '*' $ac_mid`
25052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25053 done
25054 else
25055 echo "$as_me: failed program was:" >&5
25056 sed 's/^/| /' conftest.$ac_ext >&5
25058 ac_lo= ac_hi=
25061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25065 # Binary search between lo and hi bounds.
25066 while test "x$ac_lo" != "x$ac_hi"; do
25067 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25068 cat >conftest.$ac_ext <<_ACEOF
25069 /* confdefs.h. */
25070 _ACEOF
25071 cat confdefs.h >>conftest.$ac_ext
25072 cat >>conftest.$ac_ext <<_ACEOF
25073 /* end confdefs.h. */
25074 #include <wchar.h>
25076 typedef wchar_t ac__type_sizeof_;
25078 main ()
25080 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25081 test_array [0] = 0
25084 return 0;
25086 _ACEOF
25087 rm -f conftest.$ac_objext
25088 if { (ac_try="$ac_compile"
25089 case "(($ac_try" in
25090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25091 *) ac_try_echo=$ac_try;;
25092 esac
25093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25094 (eval "$ac_compile") 2>conftest.er1
25095 ac_status=$?
25096 grep -v '^ *+' conftest.er1 >conftest.err
25097 rm -f conftest.er1
25098 cat conftest.err >&5
25099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25100 (exit $ac_status); } && {
25101 test -z "$ac_c_werror_flag" ||
25102 test ! -s conftest.err
25103 } && test -s conftest.$ac_objext; then
25104 ac_hi=$ac_mid
25105 else
25106 echo "$as_me: failed program was:" >&5
25107 sed 's/^/| /' conftest.$ac_ext >&5
25109 ac_lo=`expr '(' $ac_mid ')' + 1`
25112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25113 done
25114 case $ac_lo in
25115 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
25116 '') if test "$ac_cv_type_wchar_t" = yes; then
25117 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
25118 See \`config.log' for more details." >&5
25119 echo "$as_me: error: cannot compute sizeof (wchar_t)
25120 See \`config.log' for more details." >&2;}
25121 { (exit 77); exit 77; }; }
25122 else
25123 ac_cv_sizeof_wchar_t=0
25124 fi ;;
25125 esac
25126 else
25127 cat >conftest.$ac_ext <<_ACEOF
25128 /* confdefs.h. */
25129 _ACEOF
25130 cat confdefs.h >>conftest.$ac_ext
25131 cat >>conftest.$ac_ext <<_ACEOF
25132 /* end confdefs.h. */
25133 #include <wchar.h>
25135 typedef wchar_t ac__type_sizeof_;
25136 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25137 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25138 #include <stdio.h>
25139 #include <stdlib.h>
25141 main ()
25144 FILE *f = fopen ("conftest.val", "w");
25145 if (! f)
25146 return 1;
25147 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25149 long int i = longval ();
25150 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25151 return 1;
25152 fprintf (f, "%ld\n", i);
25154 else
25156 unsigned long int i = ulongval ();
25157 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25158 return 1;
25159 fprintf (f, "%lu\n", i);
25161 return ferror (f) || fclose (f) != 0;
25164 return 0;
25166 _ACEOF
25167 rm -f conftest$ac_exeext
25168 if { (ac_try="$ac_link"
25169 case "(($ac_try" in
25170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25171 *) ac_try_echo=$ac_try;;
25172 esac
25173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25174 (eval "$ac_link") 2>&5
25175 ac_status=$?
25176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25177 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25178 { (case "(($ac_try" in
25179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25180 *) ac_try_echo=$ac_try;;
25181 esac
25182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25183 (eval "$ac_try") 2>&5
25184 ac_status=$?
25185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25186 (exit $ac_status); }; }; then
25187 ac_cv_sizeof_wchar_t=`cat conftest.val`
25188 else
25189 echo "$as_me: program exited with status $ac_status" >&5
25190 echo "$as_me: failed program was:" >&5
25191 sed 's/^/| /' conftest.$ac_ext >&5
25193 ( exit $ac_status )
25194 if test "$ac_cv_type_wchar_t" = yes; then
25195 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
25196 See \`config.log' for more details." >&5
25197 echo "$as_me: error: cannot compute sizeof (wchar_t)
25198 See \`config.log' for more details." >&2;}
25199 { (exit 77); exit 77; }; }
25200 else
25201 ac_cv_sizeof_wchar_t=0
25204 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25206 rm -f conftest.val
25208 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
25209 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
25213 cat >>confdefs.h <<_ACEOF
25214 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
25215 _ACEOF
25220 { echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
25221 echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6; }
25222 have_ucs4_tcl=no
25223 cat >conftest.$ac_ext <<_ACEOF
25224 /* confdefs.h. */
25225 _ACEOF
25226 cat confdefs.h >>conftest.$ac_ext
25227 cat >>conftest.$ac_ext <<_ACEOF
25228 /* end confdefs.h. */
25230 #include <tcl.h>
25231 #if TCL_UTF_MAX != 6
25232 # error "NOT UCS4_TCL"
25233 #endif
25235 main ()
25239 return 0;
25241 _ACEOF
25242 rm -f conftest.$ac_objext
25243 if { (ac_try="$ac_compile"
25244 case "(($ac_try" in
25245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25246 *) ac_try_echo=$ac_try;;
25247 esac
25248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25249 (eval "$ac_compile") 2>conftest.er1
25250 ac_status=$?
25251 grep -v '^ *+' conftest.er1 >conftest.err
25252 rm -f conftest.er1
25253 cat conftest.err >&5
25254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25255 (exit $ac_status); } && {
25256 test -z "$ac_c_werror_flag" ||
25257 test ! -s conftest.err
25258 } && test -s conftest.$ac_objext; then
25261 cat >>confdefs.h <<\_ACEOF
25262 #define HAVE_UCS4_TCL 1
25263 _ACEOF
25265 have_ucs4_tcl=yes
25267 else
25268 echo "$as_me: failed program was:" >&5
25269 sed 's/^/| /' conftest.$ac_ext >&5
25274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25275 { echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
25276 echo "${ECHO_T}$have_ucs4_tcl" >&6; }
25278 # check whether wchar_t is signed or not
25279 if test "$wchar_h" = yes
25280 then
25281 # check whether wchar_t is signed or not
25282 { echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
25283 echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6; }
25284 if test "${ac_cv_wchar_t_signed+set}" = set; then
25285 echo $ECHO_N "(cached) $ECHO_C" >&6
25286 else
25288 if test "$cross_compiling" = yes; then
25289 ac_cv_wchar_t_signed=yes
25290 else
25291 cat >conftest.$ac_ext <<_ACEOF
25292 /* confdefs.h. */
25293 _ACEOF
25294 cat confdefs.h >>conftest.$ac_ext
25295 cat >>conftest.$ac_ext <<_ACEOF
25296 /* end confdefs.h. */
25298 #include <wchar.h>
25299 int main()
25301 /* Success: exit code 0 */
25302 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
25305 _ACEOF
25306 rm -f conftest$ac_exeext
25307 if { (ac_try="$ac_link"
25308 case "(($ac_try" in
25309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25310 *) ac_try_echo=$ac_try;;
25311 esac
25312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25313 (eval "$ac_link") 2>&5
25314 ac_status=$?
25315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25316 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25317 { (case "(($ac_try" in
25318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25319 *) ac_try_echo=$ac_try;;
25320 esac
25321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25322 (eval "$ac_try") 2>&5
25323 ac_status=$?
25324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25325 (exit $ac_status); }; }; then
25326 ac_cv_wchar_t_signed=yes
25327 else
25328 echo "$as_me: program exited with status $ac_status" >&5
25329 echo "$as_me: failed program was:" >&5
25330 sed 's/^/| /' conftest.$ac_ext >&5
25332 ( exit $ac_status )
25333 ac_cv_wchar_t_signed=no
25335 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25341 { echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
25342 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6; }
25345 { echo "$as_me:$LINENO: checking what type to use for unicode" >&5
25346 echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6; }
25347 # Check whether --enable-unicode was given.
25348 if test "${enable_unicode+set}" = set; then
25349 enableval=$enable_unicode;
25350 else
25351 enable_unicode=yes
25355 if test $enable_unicode = yes
25356 then
25357 # Without any arguments, Py_UNICODE defaults to two-byte mode
25358 case "$have_ucs4_tcl" in
25359 yes) enable_unicode="ucs4"
25361 *) enable_unicode="ucs2"
25363 esac
25368 case "$enable_unicode" in
25369 ucs2) unicode_size="2"
25370 cat >>confdefs.h <<\_ACEOF
25371 #define Py_UNICODE_SIZE 2
25372 _ACEOF
25375 ucs4) unicode_size="4"
25376 cat >>confdefs.h <<\_ACEOF
25377 #define Py_UNICODE_SIZE 4
25378 _ACEOF
25381 esac
25387 if test "$enable_unicode" = "no"
25388 then
25389 UNICODE_OBJS=""
25390 { echo "$as_me:$LINENO: result: not used" >&5
25391 echo "${ECHO_T}not used" >&6; }
25392 else
25393 UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o"
25395 cat >>confdefs.h <<\_ACEOF
25396 #define Py_USING_UNICODE 1
25397 _ACEOF
25400 # wchar_t is only usable if it maps to an unsigned type
25401 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
25402 -a "$ac_cv_wchar_t_signed" = "no"
25403 then
25404 PY_UNICODE_TYPE="wchar_t"
25406 cat >>confdefs.h <<\_ACEOF
25407 #define HAVE_USABLE_WCHAR_T 1
25408 _ACEOF
25410 cat >>confdefs.h <<\_ACEOF
25411 #define PY_UNICODE_TYPE wchar_t
25412 _ACEOF
25414 elif test "$ac_cv_sizeof_short" = "$unicode_size"
25415 then
25416 PY_UNICODE_TYPE="unsigned short"
25417 cat >>confdefs.h <<\_ACEOF
25418 #define PY_UNICODE_TYPE unsigned short
25419 _ACEOF
25421 elif test "$ac_cv_sizeof_long" = "$unicode_size"
25422 then
25423 PY_UNICODE_TYPE="unsigned long"
25424 cat >>confdefs.h <<\_ACEOF
25425 #define PY_UNICODE_TYPE unsigned long
25426 _ACEOF
25428 else
25429 PY_UNICODE_TYPE="no type found"
25431 { echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
25432 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6; }
25435 # check for endianness
25436 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
25437 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
25438 if test "${ac_cv_c_bigendian+set}" = set; then
25439 echo $ECHO_N "(cached) $ECHO_C" >&6
25440 else
25441 # See if sys/param.h defines the BYTE_ORDER macro.
25442 cat >conftest.$ac_ext <<_ACEOF
25443 /* confdefs.h. */
25444 _ACEOF
25445 cat confdefs.h >>conftest.$ac_ext
25446 cat >>conftest.$ac_ext <<_ACEOF
25447 /* end confdefs.h. */
25448 #include <sys/types.h>
25449 #include <sys/param.h>
25452 main ()
25454 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
25455 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
25456 bogus endian macros
25457 #endif
25460 return 0;
25462 _ACEOF
25463 rm -f conftest.$ac_objext
25464 if { (ac_try="$ac_compile"
25465 case "(($ac_try" in
25466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25467 *) ac_try_echo=$ac_try;;
25468 esac
25469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25470 (eval "$ac_compile") 2>conftest.er1
25471 ac_status=$?
25472 grep -v '^ *+' conftest.er1 >conftest.err
25473 rm -f conftest.er1
25474 cat conftest.err >&5
25475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25476 (exit $ac_status); } && {
25477 test -z "$ac_c_werror_flag" ||
25478 test ! -s conftest.err
25479 } && test -s conftest.$ac_objext; then
25480 # It does; now see whether it defined to BIG_ENDIAN or not.
25481 cat >conftest.$ac_ext <<_ACEOF
25482 /* confdefs.h. */
25483 _ACEOF
25484 cat confdefs.h >>conftest.$ac_ext
25485 cat >>conftest.$ac_ext <<_ACEOF
25486 /* end confdefs.h. */
25487 #include <sys/types.h>
25488 #include <sys/param.h>
25491 main ()
25493 #if BYTE_ORDER != BIG_ENDIAN
25494 not big endian
25495 #endif
25498 return 0;
25500 _ACEOF
25501 rm -f conftest.$ac_objext
25502 if { (ac_try="$ac_compile"
25503 case "(($ac_try" in
25504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25505 *) ac_try_echo=$ac_try;;
25506 esac
25507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25508 (eval "$ac_compile") 2>conftest.er1
25509 ac_status=$?
25510 grep -v '^ *+' conftest.er1 >conftest.err
25511 rm -f conftest.er1
25512 cat conftest.err >&5
25513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25514 (exit $ac_status); } && {
25515 test -z "$ac_c_werror_flag" ||
25516 test ! -s conftest.err
25517 } && test -s conftest.$ac_objext; then
25518 ac_cv_c_bigendian=yes
25519 else
25520 echo "$as_me: failed program was:" >&5
25521 sed 's/^/| /' conftest.$ac_ext >&5
25523 ac_cv_c_bigendian=no
25526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25527 else
25528 echo "$as_me: failed program was:" >&5
25529 sed 's/^/| /' conftest.$ac_ext >&5
25531 # It does not; compile a test program.
25532 if test "$cross_compiling" = yes; then
25533 # try to guess the endianness by grepping values into an object file
25534 ac_cv_c_bigendian=unknown
25535 cat >conftest.$ac_ext <<_ACEOF
25536 /* confdefs.h. */
25537 _ACEOF
25538 cat confdefs.h >>conftest.$ac_ext
25539 cat >>conftest.$ac_ext <<_ACEOF
25540 /* end confdefs.h. */
25541 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
25542 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
25543 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
25544 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
25545 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
25546 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
25548 main ()
25550 _ascii (); _ebcdic ();
25552 return 0;
25554 _ACEOF
25555 rm -f conftest.$ac_objext
25556 if { (ac_try="$ac_compile"
25557 case "(($ac_try" in
25558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25559 *) ac_try_echo=$ac_try;;
25560 esac
25561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25562 (eval "$ac_compile") 2>conftest.er1
25563 ac_status=$?
25564 grep -v '^ *+' conftest.er1 >conftest.err
25565 rm -f conftest.er1
25566 cat conftest.err >&5
25567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25568 (exit $ac_status); } && {
25569 test -z "$ac_c_werror_flag" ||
25570 test ! -s conftest.err
25571 } && test -s conftest.$ac_objext; then
25572 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
25573 ac_cv_c_bigendian=yes
25575 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
25576 if test "$ac_cv_c_bigendian" = unknown; then
25577 ac_cv_c_bigendian=no
25578 else
25579 # finding both strings is unlikely to happen, but who knows?
25580 ac_cv_c_bigendian=unknown
25583 else
25584 echo "$as_me: failed program was:" >&5
25585 sed 's/^/| /' conftest.$ac_ext >&5
25590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25591 else
25592 cat >conftest.$ac_ext <<_ACEOF
25593 /* confdefs.h. */
25594 _ACEOF
25595 cat confdefs.h >>conftest.$ac_ext
25596 cat >>conftest.$ac_ext <<_ACEOF
25597 /* end confdefs.h. */
25598 $ac_includes_default
25600 main ()
25603 /* Are we little or big endian? From Harbison&Steele. */
25604 union
25606 long int l;
25607 char c[sizeof (long int)];
25608 } u;
25609 u.l = 1;
25610 return u.c[sizeof (long int) - 1] == 1;
25613 return 0;
25615 _ACEOF
25616 rm -f conftest$ac_exeext
25617 if { (ac_try="$ac_link"
25618 case "(($ac_try" in
25619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25620 *) ac_try_echo=$ac_try;;
25621 esac
25622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25623 (eval "$ac_link") 2>&5
25624 ac_status=$?
25625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25626 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25627 { (case "(($ac_try" in
25628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25629 *) ac_try_echo=$ac_try;;
25630 esac
25631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25632 (eval "$ac_try") 2>&5
25633 ac_status=$?
25634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25635 (exit $ac_status); }; }; then
25636 ac_cv_c_bigendian=no
25637 else
25638 echo "$as_me: program exited with status $ac_status" >&5
25639 echo "$as_me: failed program was:" >&5
25640 sed 's/^/| /' conftest.$ac_ext >&5
25642 ( exit $ac_status )
25643 ac_cv_c_bigendian=yes
25645 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25653 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
25654 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
25655 case $ac_cv_c_bigendian in
25656 yes)
25658 cat >>confdefs.h <<\_ACEOF
25659 #define WORDS_BIGENDIAN 1
25660 _ACEOF
25665 { { echo "$as_me:$LINENO: error: unknown endianness
25666 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
25667 echo "$as_me: error: unknown endianness
25668 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
25669 { (exit 1); exit 1; }; } ;;
25670 esac
25673 # Check whether right shifting a negative integer extends the sign bit
25674 # or fills with zeros (like the Cray J90, according to Tim Peters).
25675 { echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
25676 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6; }
25677 if test "${ac_cv_rshift_extends_sign+set}" = set; then
25678 echo $ECHO_N "(cached) $ECHO_C" >&6
25679 else
25681 if test "$cross_compiling" = yes; then
25682 ac_cv_rshift_extends_sign=yes
25683 else
25684 cat >conftest.$ac_ext <<_ACEOF
25685 /* confdefs.h. */
25686 _ACEOF
25687 cat confdefs.h >>conftest.$ac_ext
25688 cat >>conftest.$ac_ext <<_ACEOF
25689 /* end confdefs.h. */
25691 int main()
25693 exit(((-1)>>3 == -1) ? 0 : 1);
25696 _ACEOF
25697 rm -f conftest$ac_exeext
25698 if { (ac_try="$ac_link"
25699 case "(($ac_try" in
25700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25701 *) ac_try_echo=$ac_try;;
25702 esac
25703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25704 (eval "$ac_link") 2>&5
25705 ac_status=$?
25706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25707 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25708 { (case "(($ac_try" in
25709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25710 *) ac_try_echo=$ac_try;;
25711 esac
25712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25713 (eval "$ac_try") 2>&5
25714 ac_status=$?
25715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25716 (exit $ac_status); }; }; then
25717 ac_cv_rshift_extends_sign=yes
25718 else
25719 echo "$as_me: program exited with status $ac_status" >&5
25720 echo "$as_me: failed program was:" >&5
25721 sed 's/^/| /' conftest.$ac_ext >&5
25723 ( exit $ac_status )
25724 ac_cv_rshift_extends_sign=no
25726 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25732 { echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
25733 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6; }
25734 if test "$ac_cv_rshift_extends_sign" = no
25735 then
25737 cat >>confdefs.h <<\_ACEOF
25738 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
25739 _ACEOF
25743 # check for getc_unlocked and related locking functions
25744 { echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
25745 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6; }
25746 if test "${ac_cv_have_getc_unlocked+set}" = set; then
25747 echo $ECHO_N "(cached) $ECHO_C" >&6
25748 else
25750 cat >conftest.$ac_ext <<_ACEOF
25751 /* confdefs.h. */
25752 _ACEOF
25753 cat confdefs.h >>conftest.$ac_ext
25754 cat >>conftest.$ac_ext <<_ACEOF
25755 /* end confdefs.h. */
25756 #include <stdio.h>
25758 main ()
25761 FILE *f = fopen("/dev/null", "r");
25762 flockfile(f);
25763 getc_unlocked(f);
25764 funlockfile(f);
25767 return 0;
25769 _ACEOF
25770 rm -f conftest.$ac_objext conftest$ac_exeext
25771 if { (ac_try="$ac_link"
25772 case "(($ac_try" in
25773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25774 *) ac_try_echo=$ac_try;;
25775 esac
25776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25777 (eval "$ac_link") 2>conftest.er1
25778 ac_status=$?
25779 grep -v '^ *+' conftest.er1 >conftest.err
25780 rm -f conftest.er1
25781 cat conftest.err >&5
25782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25783 (exit $ac_status); } && {
25784 test -z "$ac_c_werror_flag" ||
25785 test ! -s conftest.err
25786 } && test -s conftest$ac_exeext &&
25787 $as_test_x conftest$ac_exeext; then
25788 ac_cv_have_getc_unlocked=yes
25789 else
25790 echo "$as_me: failed program was:" >&5
25791 sed 's/^/| /' conftest.$ac_ext >&5
25793 ac_cv_have_getc_unlocked=no
25796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25797 conftest$ac_exeext conftest.$ac_ext
25800 { echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
25801 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6; }
25802 if test "$ac_cv_have_getc_unlocked" = yes
25803 then
25805 cat >>confdefs.h <<\_ACEOF
25806 #define HAVE_GETC_UNLOCKED 1
25807 _ACEOF
25811 # check where readline lives
25812 # save the value of LIBS so we don't actually link Python with readline
25813 LIBS_no_readline=$LIBS
25815 # On some systems we need to link readline to a termcap compatible
25816 # library. NOTE: Keep the precedence of listed libraries synchronised
25817 # with setup.py.
25818 py_cv_lib_readline=no
25819 { echo "$as_me:$LINENO: checking how to link readline libs" >&5
25820 echo $ECHO_N "checking how to link readline libs... $ECHO_C" >&6; }
25821 for py_libtermcap in "" ncursesw ncurses curses termcap; do
25822 if test -z "$py_libtermcap"; then
25823 READLINE_LIBS="-lreadline"
25824 else
25825 READLINE_LIBS="-lreadline -l$py_libtermcap"
25827 LIBS="$READLINE_LIBS $LIBS_no_readline"
25828 cat >conftest.$ac_ext <<_ACEOF
25829 /* confdefs.h. */
25830 _ACEOF
25831 cat confdefs.h >>conftest.$ac_ext
25832 cat >>conftest.$ac_ext <<_ACEOF
25833 /* end confdefs.h. */
25835 /* Override any GCC internal prototype to avoid an error.
25836 Use char because int might match the return type of a GCC
25837 builtin and then its argument prototype would still apply. */
25838 #ifdef __cplusplus
25839 extern "C"
25840 #endif
25841 char readline ();
25843 main ()
25845 return readline ();
25847 return 0;
25849 _ACEOF
25850 rm -f conftest.$ac_objext conftest$ac_exeext
25851 if { (ac_try="$ac_link"
25852 case "(($ac_try" in
25853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25854 *) ac_try_echo=$ac_try;;
25855 esac
25856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25857 (eval "$ac_link") 2>conftest.er1
25858 ac_status=$?
25859 grep -v '^ *+' conftest.er1 >conftest.err
25860 rm -f conftest.er1
25861 cat conftest.err >&5
25862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25863 (exit $ac_status); } && {
25864 test -z "$ac_c_werror_flag" ||
25865 test ! -s conftest.err
25866 } && test -s conftest$ac_exeext &&
25867 $as_test_x conftest$ac_exeext; then
25868 py_cv_lib_readline=yes
25869 else
25870 echo "$as_me: failed program was:" >&5
25871 sed 's/^/| /' conftest.$ac_ext >&5
25876 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25877 conftest$ac_exeext conftest.$ac_ext
25878 if test $py_cv_lib_readline = yes; then
25879 break
25881 done
25882 # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts
25883 #AC_SUBST([READLINE_LIBS])
25884 if test $py_cv_lib_readline = no; then
25885 { echo "$as_me:$LINENO: result: none" >&5
25886 echo "${ECHO_T}none" >&6; }
25887 else
25888 { echo "$as_me:$LINENO: result: $READLINE_LIBS" >&5
25889 echo "${ECHO_T}$READLINE_LIBS" >&6; }
25891 cat >>confdefs.h <<\_ACEOF
25892 #define HAVE_LIBREADLINE 1
25893 _ACEOF
25897 # check for readline 2.1
25898 { echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
25899 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6; }
25900 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
25901 echo $ECHO_N "(cached) $ECHO_C" >&6
25902 else
25903 ac_check_lib_save_LIBS=$LIBS
25904 LIBS="-lreadline $READLINE_LIBS $LIBS"
25905 cat >conftest.$ac_ext <<_ACEOF
25906 /* confdefs.h. */
25907 _ACEOF
25908 cat confdefs.h >>conftest.$ac_ext
25909 cat >>conftest.$ac_ext <<_ACEOF
25910 /* end confdefs.h. */
25912 /* Override any GCC internal prototype to avoid an error.
25913 Use char because int might match the return type of a GCC
25914 builtin and then its argument prototype would still apply. */
25915 #ifdef __cplusplus
25916 extern "C"
25917 #endif
25918 char rl_callback_handler_install ();
25920 main ()
25922 return rl_callback_handler_install ();
25924 return 0;
25926 _ACEOF
25927 rm -f conftest.$ac_objext conftest$ac_exeext
25928 if { (ac_try="$ac_link"
25929 case "(($ac_try" in
25930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25931 *) ac_try_echo=$ac_try;;
25932 esac
25933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25934 (eval "$ac_link") 2>conftest.er1
25935 ac_status=$?
25936 grep -v '^ *+' conftest.er1 >conftest.err
25937 rm -f conftest.er1
25938 cat conftest.err >&5
25939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25940 (exit $ac_status); } && {
25941 test -z "$ac_c_werror_flag" ||
25942 test ! -s conftest.err
25943 } && test -s conftest$ac_exeext &&
25944 $as_test_x conftest$ac_exeext; then
25945 ac_cv_lib_readline_rl_callback_handler_install=yes
25946 else
25947 echo "$as_me: failed program was:" >&5
25948 sed 's/^/| /' conftest.$ac_ext >&5
25950 ac_cv_lib_readline_rl_callback_handler_install=no
25953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25954 conftest$ac_exeext conftest.$ac_ext
25955 LIBS=$ac_check_lib_save_LIBS
25957 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
25958 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
25959 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
25961 cat >>confdefs.h <<\_ACEOF
25962 #define HAVE_RL_CALLBACK 1
25963 _ACEOF
25968 # check for readline 2.2
25969 cat >conftest.$ac_ext <<_ACEOF
25970 /* confdefs.h. */
25971 _ACEOF
25972 cat confdefs.h >>conftest.$ac_ext
25973 cat >>conftest.$ac_ext <<_ACEOF
25974 /* end confdefs.h. */
25975 #include <readline/readline.h>
25976 _ACEOF
25977 if { (ac_try="$ac_cpp conftest.$ac_ext"
25978 case "(($ac_try" in
25979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25980 *) ac_try_echo=$ac_try;;
25981 esac
25982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25983 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25984 ac_status=$?
25985 grep -v '^ *+' conftest.er1 >conftest.err
25986 rm -f conftest.er1
25987 cat conftest.err >&5
25988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25989 (exit $ac_status); } >/dev/null && {
25990 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25991 test ! -s conftest.err
25992 }; then
25993 have_readline=yes
25994 else
25995 echo "$as_me: failed program was:" >&5
25996 sed 's/^/| /' conftest.$ac_ext >&5
25998 have_readline=no
26001 rm -f conftest.err conftest.$ac_ext
26002 if test $have_readline = yes
26003 then
26004 cat >conftest.$ac_ext <<_ACEOF
26005 /* confdefs.h. */
26006 _ACEOF
26007 cat confdefs.h >>conftest.$ac_ext
26008 cat >>conftest.$ac_ext <<_ACEOF
26009 /* end confdefs.h. */
26010 #include <readline/readline.h>
26012 _ACEOF
26013 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26014 $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then
26016 cat >>confdefs.h <<\_ACEOF
26017 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
26018 _ACEOF
26021 rm -f conftest*
26023 cat >conftest.$ac_ext <<_ACEOF
26024 /* confdefs.h. */
26025 _ACEOF
26026 cat confdefs.h >>conftest.$ac_ext
26027 cat >>conftest.$ac_ext <<_ACEOF
26028 /* end confdefs.h. */
26029 #include <readline/readline.h>
26031 _ACEOF
26032 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26033 $EGREP "extern int rl_completion_suppress_append;" >/dev/null 2>&1; then
26035 cat >>confdefs.h <<\_ACEOF
26036 #define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1
26037 _ACEOF
26040 rm -f conftest*
26044 # check for readline 4.0
26045 { echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
26046 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6; }
26047 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
26048 echo $ECHO_N "(cached) $ECHO_C" >&6
26049 else
26050 ac_check_lib_save_LIBS=$LIBS
26051 LIBS="-lreadline $READLINE_LIBS $LIBS"
26052 cat >conftest.$ac_ext <<_ACEOF
26053 /* confdefs.h. */
26054 _ACEOF
26055 cat confdefs.h >>conftest.$ac_ext
26056 cat >>conftest.$ac_ext <<_ACEOF
26057 /* end confdefs.h. */
26059 /* Override any GCC internal prototype to avoid an error.
26060 Use char because int might match the return type of a GCC
26061 builtin and then its argument prototype would still apply. */
26062 #ifdef __cplusplus
26063 extern "C"
26064 #endif
26065 char rl_pre_input_hook ();
26067 main ()
26069 return rl_pre_input_hook ();
26071 return 0;
26073 _ACEOF
26074 rm -f conftest.$ac_objext conftest$ac_exeext
26075 if { (ac_try="$ac_link"
26076 case "(($ac_try" in
26077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26078 *) ac_try_echo=$ac_try;;
26079 esac
26080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26081 (eval "$ac_link") 2>conftest.er1
26082 ac_status=$?
26083 grep -v '^ *+' conftest.er1 >conftest.err
26084 rm -f conftest.er1
26085 cat conftest.err >&5
26086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26087 (exit $ac_status); } && {
26088 test -z "$ac_c_werror_flag" ||
26089 test ! -s conftest.err
26090 } && test -s conftest$ac_exeext &&
26091 $as_test_x conftest$ac_exeext; then
26092 ac_cv_lib_readline_rl_pre_input_hook=yes
26093 else
26094 echo "$as_me: failed program was:" >&5
26095 sed 's/^/| /' conftest.$ac_ext >&5
26097 ac_cv_lib_readline_rl_pre_input_hook=no
26100 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26101 conftest$ac_exeext conftest.$ac_ext
26102 LIBS=$ac_check_lib_save_LIBS
26104 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
26105 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6; }
26106 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
26108 cat >>confdefs.h <<\_ACEOF
26109 #define HAVE_RL_PRE_INPUT_HOOK 1
26110 _ACEOF
26115 # also in 4.0
26116 { echo "$as_me:$LINENO: checking for rl_completion_display_matches_hook in -lreadline" >&5
26117 echo $ECHO_N "checking for rl_completion_display_matches_hook in -lreadline... $ECHO_C" >&6; }
26118 if test "${ac_cv_lib_readline_rl_completion_display_matches_hook+set}" = set; then
26119 echo $ECHO_N "(cached) $ECHO_C" >&6
26120 else
26121 ac_check_lib_save_LIBS=$LIBS
26122 LIBS="-lreadline $READLINE_LIBS $LIBS"
26123 cat >conftest.$ac_ext <<_ACEOF
26124 /* confdefs.h. */
26125 _ACEOF
26126 cat confdefs.h >>conftest.$ac_ext
26127 cat >>conftest.$ac_ext <<_ACEOF
26128 /* end confdefs.h. */
26130 /* Override any GCC internal prototype to avoid an error.
26131 Use char because int might match the return type of a GCC
26132 builtin and then its argument prototype would still apply. */
26133 #ifdef __cplusplus
26134 extern "C"
26135 #endif
26136 char rl_completion_display_matches_hook ();
26138 main ()
26140 return rl_completion_display_matches_hook ();
26142 return 0;
26144 _ACEOF
26145 rm -f conftest.$ac_objext conftest$ac_exeext
26146 if { (ac_try="$ac_link"
26147 case "(($ac_try" in
26148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26149 *) ac_try_echo=$ac_try;;
26150 esac
26151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26152 (eval "$ac_link") 2>conftest.er1
26153 ac_status=$?
26154 grep -v '^ *+' conftest.er1 >conftest.err
26155 rm -f conftest.er1
26156 cat conftest.err >&5
26157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26158 (exit $ac_status); } && {
26159 test -z "$ac_c_werror_flag" ||
26160 test ! -s conftest.err
26161 } && test -s conftest$ac_exeext &&
26162 $as_test_x conftest$ac_exeext; then
26163 ac_cv_lib_readline_rl_completion_display_matches_hook=yes
26164 else
26165 echo "$as_me: failed program was:" >&5
26166 sed 's/^/| /' conftest.$ac_ext >&5
26168 ac_cv_lib_readline_rl_completion_display_matches_hook=no
26171 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26172 conftest$ac_exeext conftest.$ac_ext
26173 LIBS=$ac_check_lib_save_LIBS
26175 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5
26176 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; }
26177 if test $ac_cv_lib_readline_rl_completion_display_matches_hook = yes; then
26179 cat >>confdefs.h <<\_ACEOF
26180 #define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1
26181 _ACEOF
26186 # check for readline 4.2
26187 { echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
26188 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6; }
26189 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
26190 echo $ECHO_N "(cached) $ECHO_C" >&6
26191 else
26192 ac_check_lib_save_LIBS=$LIBS
26193 LIBS="-lreadline $READLINE_LIBS $LIBS"
26194 cat >conftest.$ac_ext <<_ACEOF
26195 /* confdefs.h. */
26196 _ACEOF
26197 cat confdefs.h >>conftest.$ac_ext
26198 cat >>conftest.$ac_ext <<_ACEOF
26199 /* end confdefs.h. */
26201 /* Override any GCC internal prototype to avoid an error.
26202 Use char because int might match the return type of a GCC
26203 builtin and then its argument prototype would still apply. */
26204 #ifdef __cplusplus
26205 extern "C"
26206 #endif
26207 char rl_completion_matches ();
26209 main ()
26211 return rl_completion_matches ();
26213 return 0;
26215 _ACEOF
26216 rm -f conftest.$ac_objext conftest$ac_exeext
26217 if { (ac_try="$ac_link"
26218 case "(($ac_try" in
26219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26220 *) ac_try_echo=$ac_try;;
26221 esac
26222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26223 (eval "$ac_link") 2>conftest.er1
26224 ac_status=$?
26225 grep -v '^ *+' conftest.er1 >conftest.err
26226 rm -f conftest.er1
26227 cat conftest.err >&5
26228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26229 (exit $ac_status); } && {
26230 test -z "$ac_c_werror_flag" ||
26231 test ! -s conftest.err
26232 } && test -s conftest$ac_exeext &&
26233 $as_test_x conftest$ac_exeext; then
26234 ac_cv_lib_readline_rl_completion_matches=yes
26235 else
26236 echo "$as_me: failed program was:" >&5
26237 sed 's/^/| /' conftest.$ac_ext >&5
26239 ac_cv_lib_readline_rl_completion_matches=no
26242 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26243 conftest$ac_exeext conftest.$ac_ext
26244 LIBS=$ac_check_lib_save_LIBS
26246 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
26247 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6; }
26248 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
26250 cat >>confdefs.h <<\_ACEOF
26251 #define HAVE_RL_COMPLETION_MATCHES 1
26252 _ACEOF
26257 # also in readline 4.2
26258 cat >conftest.$ac_ext <<_ACEOF
26259 /* confdefs.h. */
26260 _ACEOF
26261 cat confdefs.h >>conftest.$ac_ext
26262 cat >>conftest.$ac_ext <<_ACEOF
26263 /* end confdefs.h. */
26264 #include <readline/readline.h>
26265 _ACEOF
26266 if { (ac_try="$ac_cpp conftest.$ac_ext"
26267 case "(($ac_try" in
26268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26269 *) ac_try_echo=$ac_try;;
26270 esac
26271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26272 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26273 ac_status=$?
26274 grep -v '^ *+' conftest.er1 >conftest.err
26275 rm -f conftest.er1
26276 cat conftest.err >&5
26277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26278 (exit $ac_status); } >/dev/null && {
26279 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26280 test ! -s conftest.err
26281 }; then
26282 have_readline=yes
26283 else
26284 echo "$as_me: failed program was:" >&5
26285 sed 's/^/| /' conftest.$ac_ext >&5
26287 have_readline=no
26290 rm -f conftest.err conftest.$ac_ext
26291 if test $have_readline = yes
26292 then
26293 cat >conftest.$ac_ext <<_ACEOF
26294 /* confdefs.h. */
26295 _ACEOF
26296 cat confdefs.h >>conftest.$ac_ext
26297 cat >>conftest.$ac_ext <<_ACEOF
26298 /* end confdefs.h. */
26299 #include <readline/readline.h>
26301 _ACEOF
26302 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26303 $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then
26305 cat >>confdefs.h <<\_ACEOF
26306 #define HAVE_RL_CATCH_SIGNAL 1
26307 _ACEOF
26310 rm -f conftest*
26314 # End of readline checks: restore LIBS
26315 LIBS=$LIBS_no_readline
26317 { echo "$as_me:$LINENO: checking for broken nice()" >&5
26318 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6; }
26319 if test "${ac_cv_broken_nice+set}" = set; then
26320 echo $ECHO_N "(cached) $ECHO_C" >&6
26321 else
26323 if test "$cross_compiling" = yes; then
26324 ac_cv_broken_nice=no
26325 else
26326 cat >conftest.$ac_ext <<_ACEOF
26327 /* confdefs.h. */
26328 _ACEOF
26329 cat confdefs.h >>conftest.$ac_ext
26330 cat >>conftest.$ac_ext <<_ACEOF
26331 /* end confdefs.h. */
26333 int main()
26335 int val1 = nice(1);
26336 if (val1 != -1 && val1 == nice(2))
26337 exit(0);
26338 exit(1);
26341 _ACEOF
26342 rm -f conftest$ac_exeext
26343 if { (ac_try="$ac_link"
26344 case "(($ac_try" in
26345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26346 *) ac_try_echo=$ac_try;;
26347 esac
26348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26349 (eval "$ac_link") 2>&5
26350 ac_status=$?
26351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26352 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26353 { (case "(($ac_try" in
26354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26355 *) ac_try_echo=$ac_try;;
26356 esac
26357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26358 (eval "$ac_try") 2>&5
26359 ac_status=$?
26360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26361 (exit $ac_status); }; }; then
26362 ac_cv_broken_nice=yes
26363 else
26364 echo "$as_me: program exited with status $ac_status" >&5
26365 echo "$as_me: failed program was:" >&5
26366 sed 's/^/| /' conftest.$ac_ext >&5
26368 ( exit $ac_status )
26369 ac_cv_broken_nice=no
26371 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26377 { echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
26378 echo "${ECHO_T}$ac_cv_broken_nice" >&6; }
26379 if test "$ac_cv_broken_nice" = yes
26380 then
26382 cat >>confdefs.h <<\_ACEOF
26383 #define HAVE_BROKEN_NICE 1
26384 _ACEOF
26388 { echo "$as_me:$LINENO: checking for broken poll()" >&5
26389 echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6; }
26390 if test "${ac_cv_broken_poll+set}" = set; then
26391 echo $ECHO_N "(cached) $ECHO_C" >&6
26392 else
26393 if test "$cross_compiling" = yes; then
26394 ac_cv_broken_poll=no
26395 else
26396 cat >conftest.$ac_ext <<_ACEOF
26397 /* confdefs.h. */
26398 _ACEOF
26399 cat confdefs.h >>conftest.$ac_ext
26400 cat >>conftest.$ac_ext <<_ACEOF
26401 /* end confdefs.h. */
26403 #include <poll.h>
26405 int main()
26407 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
26408 int poll_test;
26410 close (42);
26412 poll_test = poll(&poll_struct, 1, 0);
26413 if (poll_test < 0)
26414 return 0;
26415 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
26416 return 0;
26417 else
26418 return 1;
26421 _ACEOF
26422 rm -f conftest$ac_exeext
26423 if { (ac_try="$ac_link"
26424 case "(($ac_try" in
26425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26426 *) ac_try_echo=$ac_try;;
26427 esac
26428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26429 (eval "$ac_link") 2>&5
26430 ac_status=$?
26431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26432 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26433 { (case "(($ac_try" in
26434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26435 *) ac_try_echo=$ac_try;;
26436 esac
26437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26438 (eval "$ac_try") 2>&5
26439 ac_status=$?
26440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26441 (exit $ac_status); }; }; then
26442 ac_cv_broken_poll=yes
26443 else
26444 echo "$as_me: program exited with status $ac_status" >&5
26445 echo "$as_me: failed program was:" >&5
26446 sed 's/^/| /' conftest.$ac_ext >&5
26448 ( exit $ac_status )
26449 ac_cv_broken_poll=no
26451 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26457 { echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
26458 echo "${ECHO_T}$ac_cv_broken_poll" >&6; }
26459 if test "$ac_cv_broken_poll" = yes
26460 then
26462 cat >>confdefs.h <<\_ACEOF
26463 #define HAVE_BROKEN_POLL 1
26464 _ACEOF
26468 # Before we can test tzset, we need to check if struct tm has a tm_zone
26469 # (which is not required by ISO C or UNIX spec) and/or if we support
26470 # tzname[]
26471 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
26472 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
26473 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
26474 echo $ECHO_N "(cached) $ECHO_C" >&6
26475 else
26476 cat >conftest.$ac_ext <<_ACEOF
26477 /* confdefs.h. */
26478 _ACEOF
26479 cat confdefs.h >>conftest.$ac_ext
26480 cat >>conftest.$ac_ext <<_ACEOF
26481 /* end confdefs.h. */
26482 #include <sys/types.h>
26483 #include <$ac_cv_struct_tm>
26487 main ()
26489 static struct tm ac_aggr;
26490 if (ac_aggr.tm_zone)
26491 return 0;
26493 return 0;
26495 _ACEOF
26496 rm -f conftest.$ac_objext
26497 if { (ac_try="$ac_compile"
26498 case "(($ac_try" in
26499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26500 *) ac_try_echo=$ac_try;;
26501 esac
26502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26503 (eval "$ac_compile") 2>conftest.er1
26504 ac_status=$?
26505 grep -v '^ *+' conftest.er1 >conftest.err
26506 rm -f conftest.er1
26507 cat conftest.err >&5
26508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26509 (exit $ac_status); } && {
26510 test -z "$ac_c_werror_flag" ||
26511 test ! -s conftest.err
26512 } && test -s conftest.$ac_objext; then
26513 ac_cv_member_struct_tm_tm_zone=yes
26514 else
26515 echo "$as_me: failed program was:" >&5
26516 sed 's/^/| /' conftest.$ac_ext >&5
26518 cat >conftest.$ac_ext <<_ACEOF
26519 /* confdefs.h. */
26520 _ACEOF
26521 cat confdefs.h >>conftest.$ac_ext
26522 cat >>conftest.$ac_ext <<_ACEOF
26523 /* end confdefs.h. */
26524 #include <sys/types.h>
26525 #include <$ac_cv_struct_tm>
26529 main ()
26531 static struct tm ac_aggr;
26532 if (sizeof ac_aggr.tm_zone)
26533 return 0;
26535 return 0;
26537 _ACEOF
26538 rm -f conftest.$ac_objext
26539 if { (ac_try="$ac_compile"
26540 case "(($ac_try" in
26541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26542 *) ac_try_echo=$ac_try;;
26543 esac
26544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26545 (eval "$ac_compile") 2>conftest.er1
26546 ac_status=$?
26547 grep -v '^ *+' conftest.er1 >conftest.err
26548 rm -f conftest.er1
26549 cat conftest.err >&5
26550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26551 (exit $ac_status); } && {
26552 test -z "$ac_c_werror_flag" ||
26553 test ! -s conftest.err
26554 } && test -s conftest.$ac_objext; then
26555 ac_cv_member_struct_tm_tm_zone=yes
26556 else
26557 echo "$as_me: failed program was:" >&5
26558 sed 's/^/| /' conftest.$ac_ext >&5
26560 ac_cv_member_struct_tm_tm_zone=no
26563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26568 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
26569 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
26570 if test $ac_cv_member_struct_tm_tm_zone = yes; then
26572 cat >>confdefs.h <<_ACEOF
26573 #define HAVE_STRUCT_TM_TM_ZONE 1
26574 _ACEOF
26579 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
26581 cat >>confdefs.h <<\_ACEOF
26582 #define HAVE_TM_ZONE 1
26583 _ACEOF
26585 else
26586 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
26587 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
26588 if test "${ac_cv_have_decl_tzname+set}" = set; then
26589 echo $ECHO_N "(cached) $ECHO_C" >&6
26590 else
26591 cat >conftest.$ac_ext <<_ACEOF
26592 /* confdefs.h. */
26593 _ACEOF
26594 cat confdefs.h >>conftest.$ac_ext
26595 cat >>conftest.$ac_ext <<_ACEOF
26596 /* end confdefs.h. */
26597 #include <time.h>
26600 main ()
26602 #ifndef tzname
26603 (void) tzname;
26604 #endif
26607 return 0;
26609 _ACEOF
26610 rm -f conftest.$ac_objext
26611 if { (ac_try="$ac_compile"
26612 case "(($ac_try" in
26613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26614 *) ac_try_echo=$ac_try;;
26615 esac
26616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26617 (eval "$ac_compile") 2>conftest.er1
26618 ac_status=$?
26619 grep -v '^ *+' conftest.er1 >conftest.err
26620 rm -f conftest.er1
26621 cat conftest.err >&5
26622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26623 (exit $ac_status); } && {
26624 test -z "$ac_c_werror_flag" ||
26625 test ! -s conftest.err
26626 } && test -s conftest.$ac_objext; then
26627 ac_cv_have_decl_tzname=yes
26628 else
26629 echo "$as_me: failed program was:" >&5
26630 sed 's/^/| /' conftest.$ac_ext >&5
26632 ac_cv_have_decl_tzname=no
26635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26637 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
26638 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
26639 if test $ac_cv_have_decl_tzname = yes; then
26641 cat >>confdefs.h <<_ACEOF
26642 #define HAVE_DECL_TZNAME 1
26643 _ACEOF
26646 else
26647 cat >>confdefs.h <<_ACEOF
26648 #define HAVE_DECL_TZNAME 0
26649 _ACEOF
26655 { echo "$as_me:$LINENO: checking for tzname" >&5
26656 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
26657 if test "${ac_cv_var_tzname+set}" = set; then
26658 echo $ECHO_N "(cached) $ECHO_C" >&6
26659 else
26660 cat >conftest.$ac_ext <<_ACEOF
26661 /* confdefs.h. */
26662 _ACEOF
26663 cat confdefs.h >>conftest.$ac_ext
26664 cat >>conftest.$ac_ext <<_ACEOF
26665 /* end confdefs.h. */
26666 #include <time.h>
26667 #if !HAVE_DECL_TZNAME
26668 extern char *tzname[];
26669 #endif
26672 main ()
26674 return tzname[0][0];
26676 return 0;
26678 _ACEOF
26679 rm -f conftest.$ac_objext conftest$ac_exeext
26680 if { (ac_try="$ac_link"
26681 case "(($ac_try" in
26682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26683 *) ac_try_echo=$ac_try;;
26684 esac
26685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26686 (eval "$ac_link") 2>conftest.er1
26687 ac_status=$?
26688 grep -v '^ *+' conftest.er1 >conftest.err
26689 rm -f conftest.er1
26690 cat conftest.err >&5
26691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26692 (exit $ac_status); } && {
26693 test -z "$ac_c_werror_flag" ||
26694 test ! -s conftest.err
26695 } && test -s conftest$ac_exeext &&
26696 $as_test_x conftest$ac_exeext; then
26697 ac_cv_var_tzname=yes
26698 else
26699 echo "$as_me: failed program was:" >&5
26700 sed 's/^/| /' conftest.$ac_ext >&5
26702 ac_cv_var_tzname=no
26705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26706 conftest$ac_exeext conftest.$ac_ext
26708 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
26709 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
26710 if test $ac_cv_var_tzname = yes; then
26712 cat >>confdefs.h <<\_ACEOF
26713 #define HAVE_TZNAME 1
26714 _ACEOF
26720 # check tzset(3) exists and works like we expect it to
26721 { echo "$as_me:$LINENO: checking for working tzset()" >&5
26722 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6; }
26723 if test "${ac_cv_working_tzset+set}" = set; then
26724 echo $ECHO_N "(cached) $ECHO_C" >&6
26725 else
26727 if test "$cross_compiling" = yes; then
26728 ac_cv_working_tzset=no
26729 else
26730 cat >conftest.$ac_ext <<_ACEOF
26731 /* confdefs.h. */
26732 _ACEOF
26733 cat confdefs.h >>conftest.$ac_ext
26734 cat >>conftest.$ac_ext <<_ACEOF
26735 /* end confdefs.h. */
26737 #include <stdlib.h>
26738 #include <time.h>
26739 #include <string.h>
26741 #if HAVE_TZNAME
26742 extern char *tzname[];
26743 #endif
26745 int main()
26747 /* Note that we need to ensure that not only does tzset(3)
26748 do 'something' with localtime, but it works as documented
26749 in the library reference and as expected by the test suite.
26750 This includes making sure that tzname is set properly if
26751 tm->tm_zone does not exist since it is the alternative way
26752 of getting timezone info.
26754 Red Hat 6.2 doesn't understand the southern hemisphere
26755 after New Year's Day.
26758 time_t groundhogday = 1044144000; /* GMT-based */
26759 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
26761 putenv("TZ=UTC+0");
26762 tzset();
26763 if (localtime(&groundhogday)->tm_hour != 0)
26764 exit(1);
26765 #if HAVE_TZNAME
26766 /* For UTC, tzname[1] is sometimes "", sometimes " " */
26767 if (strcmp(tzname[0], "UTC") ||
26768 (tzname[1][0] != 0 && tzname[1][0] != ' '))
26769 exit(1);
26770 #endif
26772 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
26773 tzset();
26774 if (localtime(&groundhogday)->tm_hour != 19)
26775 exit(1);
26776 #if HAVE_TZNAME
26777 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
26778 exit(1);
26779 #endif
26781 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
26782 tzset();
26783 if (localtime(&groundhogday)->tm_hour != 11)
26784 exit(1);
26785 #if HAVE_TZNAME
26786 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
26787 exit(1);
26788 #endif
26790 #if HAVE_STRUCT_TM_TM_ZONE
26791 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
26792 exit(1);
26793 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
26794 exit(1);
26795 #endif
26797 exit(0);
26800 _ACEOF
26801 rm -f conftest$ac_exeext
26802 if { (ac_try="$ac_link"
26803 case "(($ac_try" in
26804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26805 *) ac_try_echo=$ac_try;;
26806 esac
26807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26808 (eval "$ac_link") 2>&5
26809 ac_status=$?
26810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26811 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26812 { (case "(($ac_try" in
26813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26814 *) ac_try_echo=$ac_try;;
26815 esac
26816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26817 (eval "$ac_try") 2>&5
26818 ac_status=$?
26819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26820 (exit $ac_status); }; }; then
26821 ac_cv_working_tzset=yes
26822 else
26823 echo "$as_me: program exited with status $ac_status" >&5
26824 echo "$as_me: failed program was:" >&5
26825 sed 's/^/| /' conftest.$ac_ext >&5
26827 ( exit $ac_status )
26828 ac_cv_working_tzset=no
26830 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26836 { echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
26837 echo "${ECHO_T}$ac_cv_working_tzset" >&6; }
26838 if test "$ac_cv_working_tzset" = yes
26839 then
26841 cat >>confdefs.h <<\_ACEOF
26842 #define HAVE_WORKING_TZSET 1
26843 _ACEOF
26847 # Look for subsecond timestamps in struct stat
26848 { echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
26849 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6; }
26850 if test "${ac_cv_stat_tv_nsec+set}" = set; then
26851 echo $ECHO_N "(cached) $ECHO_C" >&6
26852 else
26853 cat >conftest.$ac_ext <<_ACEOF
26854 /* confdefs.h. */
26855 _ACEOF
26856 cat confdefs.h >>conftest.$ac_ext
26857 cat >>conftest.$ac_ext <<_ACEOF
26858 /* end confdefs.h. */
26859 #include <sys/stat.h>
26861 main ()
26864 struct stat st;
26865 st.st_mtim.tv_nsec = 1;
26868 return 0;
26870 _ACEOF
26871 rm -f conftest.$ac_objext
26872 if { (ac_try="$ac_compile"
26873 case "(($ac_try" in
26874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26875 *) ac_try_echo=$ac_try;;
26876 esac
26877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26878 (eval "$ac_compile") 2>conftest.er1
26879 ac_status=$?
26880 grep -v '^ *+' conftest.er1 >conftest.err
26881 rm -f conftest.er1
26882 cat conftest.err >&5
26883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26884 (exit $ac_status); } && {
26885 test -z "$ac_c_werror_flag" ||
26886 test ! -s conftest.err
26887 } && test -s conftest.$ac_objext; then
26888 ac_cv_stat_tv_nsec=yes
26889 else
26890 echo "$as_me: failed program was:" >&5
26891 sed 's/^/| /' conftest.$ac_ext >&5
26893 ac_cv_stat_tv_nsec=no
26896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26899 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
26900 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6; }
26901 if test "$ac_cv_stat_tv_nsec" = yes
26902 then
26904 cat >>confdefs.h <<\_ACEOF
26905 #define HAVE_STAT_TV_NSEC 1
26906 _ACEOF
26910 # Look for BSD style subsecond timestamps in struct stat
26911 { echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
26912 echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6; }
26913 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
26914 echo $ECHO_N "(cached) $ECHO_C" >&6
26915 else
26916 cat >conftest.$ac_ext <<_ACEOF
26917 /* confdefs.h. */
26918 _ACEOF
26919 cat confdefs.h >>conftest.$ac_ext
26920 cat >>conftest.$ac_ext <<_ACEOF
26921 /* end confdefs.h. */
26922 #include <sys/stat.h>
26924 main ()
26927 struct stat st;
26928 st.st_mtimespec.tv_nsec = 1;
26931 return 0;
26933 _ACEOF
26934 rm -f conftest.$ac_objext
26935 if { (ac_try="$ac_compile"
26936 case "(($ac_try" in
26937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26938 *) ac_try_echo=$ac_try;;
26939 esac
26940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26941 (eval "$ac_compile") 2>conftest.er1
26942 ac_status=$?
26943 grep -v '^ *+' conftest.er1 >conftest.err
26944 rm -f conftest.er1
26945 cat conftest.err >&5
26946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26947 (exit $ac_status); } && {
26948 test -z "$ac_c_werror_flag" ||
26949 test ! -s conftest.err
26950 } && test -s conftest.$ac_objext; then
26951 ac_cv_stat_tv_nsec2=yes
26952 else
26953 echo "$as_me: failed program was:" >&5
26954 sed 's/^/| /' conftest.$ac_ext >&5
26956 ac_cv_stat_tv_nsec2=no
26959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26962 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
26963 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6; }
26964 if test "$ac_cv_stat_tv_nsec2" = yes
26965 then
26967 cat >>confdefs.h <<\_ACEOF
26968 #define HAVE_STAT_TV_NSEC2 1
26969 _ACEOF
26973 # On HP/UX 11.0, mvwdelch is a block with a return statement
26974 { echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
26975 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6; }
26976 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
26977 echo $ECHO_N "(cached) $ECHO_C" >&6
26978 else
26979 cat >conftest.$ac_ext <<_ACEOF
26980 /* confdefs.h. */
26981 _ACEOF
26982 cat confdefs.h >>conftest.$ac_ext
26983 cat >>conftest.$ac_ext <<_ACEOF
26984 /* end confdefs.h. */
26985 #include <curses.h>
26987 main ()
26990 int rtn;
26991 rtn = mvwdelch(0,0,0);
26994 return 0;
26996 _ACEOF
26997 rm -f conftest.$ac_objext
26998 if { (ac_try="$ac_compile"
26999 case "(($ac_try" in
27000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27001 *) ac_try_echo=$ac_try;;
27002 esac
27003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27004 (eval "$ac_compile") 2>conftest.er1
27005 ac_status=$?
27006 grep -v '^ *+' conftest.er1 >conftest.err
27007 rm -f conftest.er1
27008 cat conftest.err >&5
27009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27010 (exit $ac_status); } && {
27011 test -z "$ac_c_werror_flag" ||
27012 test ! -s conftest.err
27013 } && test -s conftest.$ac_objext; then
27014 ac_cv_mvwdelch_is_expression=yes
27015 else
27016 echo "$as_me: failed program was:" >&5
27017 sed 's/^/| /' conftest.$ac_ext >&5
27019 ac_cv_mvwdelch_is_expression=no
27022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27025 { echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
27026 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6; }
27028 if test "$ac_cv_mvwdelch_is_expression" = yes
27029 then
27031 cat >>confdefs.h <<\_ACEOF
27032 #define MVWDELCH_IS_EXPRESSION 1
27033 _ACEOF
27037 { echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
27038 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6; }
27039 if test "${ac_cv_window_has_flags+set}" = set; then
27040 echo $ECHO_N "(cached) $ECHO_C" >&6
27041 else
27042 cat >conftest.$ac_ext <<_ACEOF
27043 /* confdefs.h. */
27044 _ACEOF
27045 cat confdefs.h >>conftest.$ac_ext
27046 cat >>conftest.$ac_ext <<_ACEOF
27047 /* end confdefs.h. */
27048 #include <curses.h>
27050 main ()
27053 WINDOW *w;
27054 w->_flags = 0;
27057 return 0;
27059 _ACEOF
27060 rm -f conftest.$ac_objext
27061 if { (ac_try="$ac_compile"
27062 case "(($ac_try" in
27063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27064 *) ac_try_echo=$ac_try;;
27065 esac
27066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27067 (eval "$ac_compile") 2>conftest.er1
27068 ac_status=$?
27069 grep -v '^ *+' conftest.er1 >conftest.err
27070 rm -f conftest.er1
27071 cat conftest.err >&5
27072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27073 (exit $ac_status); } && {
27074 test -z "$ac_c_werror_flag" ||
27075 test ! -s conftest.err
27076 } && test -s conftest.$ac_objext; then
27077 ac_cv_window_has_flags=yes
27078 else
27079 echo "$as_me: failed program was:" >&5
27080 sed 's/^/| /' conftest.$ac_ext >&5
27082 ac_cv_window_has_flags=no
27085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27088 { echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
27089 echo "${ECHO_T}$ac_cv_window_has_flags" >&6; }
27092 if test "$ac_cv_window_has_flags" = yes
27093 then
27095 cat >>confdefs.h <<\_ACEOF
27096 #define WINDOW_HAS_FLAGS 1
27097 _ACEOF
27101 { echo "$as_me:$LINENO: checking for is_term_resized" >&5
27102 echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6; }
27103 cat >conftest.$ac_ext <<_ACEOF
27104 /* confdefs.h. */
27105 _ACEOF
27106 cat confdefs.h >>conftest.$ac_ext
27107 cat >>conftest.$ac_ext <<_ACEOF
27108 /* end confdefs.h. */
27109 #include <curses.h>
27111 main ()
27113 void *x=is_term_resized
27115 return 0;
27117 _ACEOF
27118 rm -f conftest.$ac_objext
27119 if { (ac_try="$ac_compile"
27120 case "(($ac_try" in
27121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27122 *) ac_try_echo=$ac_try;;
27123 esac
27124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27125 (eval "$ac_compile") 2>conftest.er1
27126 ac_status=$?
27127 grep -v '^ *+' conftest.er1 >conftest.err
27128 rm -f conftest.er1
27129 cat conftest.err >&5
27130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27131 (exit $ac_status); } && {
27132 test -z "$ac_c_werror_flag" ||
27133 test ! -s conftest.err
27134 } && test -s conftest.$ac_objext; then
27136 cat >>confdefs.h <<\_ACEOF
27137 #define HAVE_CURSES_IS_TERM_RESIZED 1
27138 _ACEOF
27140 { echo "$as_me:$LINENO: result: yes" >&5
27141 echo "${ECHO_T}yes" >&6; }
27142 else
27143 echo "$as_me: failed program was:" >&5
27144 sed 's/^/| /' conftest.$ac_ext >&5
27146 { echo "$as_me:$LINENO: result: no" >&5
27147 echo "${ECHO_T}no" >&6; }
27151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27153 { echo "$as_me:$LINENO: checking for resize_term" >&5
27154 echo $ECHO_N "checking for resize_term... $ECHO_C" >&6; }
27155 cat >conftest.$ac_ext <<_ACEOF
27156 /* confdefs.h. */
27157 _ACEOF
27158 cat confdefs.h >>conftest.$ac_ext
27159 cat >>conftest.$ac_ext <<_ACEOF
27160 /* end confdefs.h. */
27161 #include <curses.h>
27163 main ()
27165 void *x=resize_term
27167 return 0;
27169 _ACEOF
27170 rm -f conftest.$ac_objext
27171 if { (ac_try="$ac_compile"
27172 case "(($ac_try" in
27173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27174 *) ac_try_echo=$ac_try;;
27175 esac
27176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27177 (eval "$ac_compile") 2>conftest.er1
27178 ac_status=$?
27179 grep -v '^ *+' conftest.er1 >conftest.err
27180 rm -f conftest.er1
27181 cat conftest.err >&5
27182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27183 (exit $ac_status); } && {
27184 test -z "$ac_c_werror_flag" ||
27185 test ! -s conftest.err
27186 } && test -s conftest.$ac_objext; then
27188 cat >>confdefs.h <<\_ACEOF
27189 #define HAVE_CURSES_RESIZE_TERM 1
27190 _ACEOF
27192 { echo "$as_me:$LINENO: result: yes" >&5
27193 echo "${ECHO_T}yes" >&6; }
27194 else
27195 echo "$as_me: failed program was:" >&5
27196 sed 's/^/| /' conftest.$ac_ext >&5
27198 { echo "$as_me:$LINENO: result: no" >&5
27199 echo "${ECHO_T}no" >&6; }
27203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27205 { echo "$as_me:$LINENO: checking for resizeterm" >&5
27206 echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6; }
27207 cat >conftest.$ac_ext <<_ACEOF
27208 /* confdefs.h. */
27209 _ACEOF
27210 cat confdefs.h >>conftest.$ac_ext
27211 cat >>conftest.$ac_ext <<_ACEOF
27212 /* end confdefs.h. */
27213 #include <curses.h>
27215 main ()
27217 void *x=resizeterm
27219 return 0;
27221 _ACEOF
27222 rm -f conftest.$ac_objext
27223 if { (ac_try="$ac_compile"
27224 case "(($ac_try" in
27225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27226 *) ac_try_echo=$ac_try;;
27227 esac
27228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27229 (eval "$ac_compile") 2>conftest.er1
27230 ac_status=$?
27231 grep -v '^ *+' conftest.er1 >conftest.err
27232 rm -f conftest.er1
27233 cat conftest.err >&5
27234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27235 (exit $ac_status); } && {
27236 test -z "$ac_c_werror_flag" ||
27237 test ! -s conftest.err
27238 } && test -s conftest.$ac_objext; then
27240 cat >>confdefs.h <<\_ACEOF
27241 #define HAVE_CURSES_RESIZETERM 1
27242 _ACEOF
27244 { echo "$as_me:$LINENO: result: yes" >&5
27245 echo "${ECHO_T}yes" >&6; }
27246 else
27247 echo "$as_me: failed program was:" >&5
27248 sed 's/^/| /' conftest.$ac_ext >&5
27250 { echo "$as_me:$LINENO: result: no" >&5
27251 echo "${ECHO_T}no" >&6; }
27255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27257 { echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
27258 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6; }
27260 if test -r /dev/ptmx
27261 then
27262 { echo "$as_me:$LINENO: result: yes" >&5
27263 echo "${ECHO_T}yes" >&6; }
27265 cat >>confdefs.h <<\_ACEOF
27266 #define HAVE_DEV_PTMX 1
27267 _ACEOF
27269 else
27270 { echo "$as_me:$LINENO: result: no" >&5
27271 echo "${ECHO_T}no" >&6; }
27274 { echo "$as_me:$LINENO: checking for /dev/ptc" >&5
27275 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; }
27277 if test -r /dev/ptc
27278 then
27279 { echo "$as_me:$LINENO: result: yes" >&5
27280 echo "${ECHO_T}yes" >&6; }
27282 cat >>confdefs.h <<\_ACEOF
27283 #define HAVE_DEV_PTC 1
27284 _ACEOF
27286 else
27287 { echo "$as_me:$LINENO: result: no" >&5
27288 echo "${ECHO_T}no" >&6; }
27291 if test "$have_long_long" = yes
27292 then
27293 { echo "$as_me:$LINENO: checking for %lld and %llu printf() format support" >&5
27294 echo $ECHO_N "checking for %lld and %llu printf() format support... $ECHO_C" >&6; }
27295 if test "${ac_cv_have_long_long_format+set}" = set; then
27296 echo $ECHO_N "(cached) $ECHO_C" >&6
27297 else
27298 if test "$cross_compiling" = yes; then
27299 ac_cv_have_long_long_format=no
27300 else
27301 cat >conftest.$ac_ext <<_ACEOF
27302 /* confdefs.h. */
27303 _ACEOF
27304 cat confdefs.h >>conftest.$ac_ext
27305 cat >>conftest.$ac_ext <<_ACEOF
27306 /* end confdefs.h. */
27308 #include <stdio.h>
27309 #include <stddef.h>
27310 #include <string.h>
27312 #ifdef HAVE_SYS_TYPES_H
27313 #include <sys/types.h>
27314 #endif
27316 int main()
27318 char buffer[256];
27320 if (sprintf(buffer, "%lld", (long long)123) < 0)
27321 return 1;
27322 if (strcmp(buffer, "123"))
27323 return 1;
27325 if (sprintf(buffer, "%lld", (long long)-123) < 0)
27326 return 1;
27327 if (strcmp(buffer, "-123"))
27328 return 1;
27330 if (sprintf(buffer, "%llu", (unsigned long long)123) < 0)
27331 return 1;
27332 if (strcmp(buffer, "123"))
27333 return 1;
27335 return 0;
27338 _ACEOF
27339 rm -f conftest$ac_exeext
27340 if { (ac_try="$ac_link"
27341 case "(($ac_try" in
27342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27343 *) ac_try_echo=$ac_try;;
27344 esac
27345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27346 (eval "$ac_link") 2>&5
27347 ac_status=$?
27348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27349 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
27356 ac_status=$?
27357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27358 (exit $ac_status); }; }; then
27359 ac_cv_have_long_long_format=yes
27360 else
27361 echo "$as_me: program exited with status $ac_status" >&5
27362 echo "$as_me: failed program was:" >&5
27363 sed 's/^/| /' conftest.$ac_ext >&5
27365 ( exit $ac_status )
27366 ac_cv_have_long_long_format=no
27368 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27375 { echo "$as_me:$LINENO: result: $ac_cv_have_long_long_format" >&5
27376 echo "${ECHO_T}$ac_cv_have_long_long_format" >&6; }
27379 if test "$ac_cv_have_long_long_format" = yes
27380 then
27382 cat >>confdefs.h <<\_ACEOF
27383 #define PY_FORMAT_LONG_LONG "ll"
27384 _ACEOF
27388 if test $ac_sys_system = Darwin
27389 then
27390 LIBS="$LIBS -framework CoreFoundation"
27394 { echo "$as_me:$LINENO: checking for %zd printf() format support" >&5
27395 echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6; }
27396 if test "${ac_cv_have_size_t_format+set}" = set; then
27397 echo $ECHO_N "(cached) $ECHO_C" >&6
27398 else
27399 if test "$cross_compiling" = yes; then
27400 ac_cv_have_size_t_format="cross -- assuming yes"
27402 else
27403 cat >conftest.$ac_ext <<_ACEOF
27404 /* confdefs.h. */
27405 _ACEOF
27406 cat confdefs.h >>conftest.$ac_ext
27407 cat >>conftest.$ac_ext <<_ACEOF
27408 /* end confdefs.h. */
27410 #include <stdio.h>
27411 #include <stddef.h>
27412 #include <string.h>
27414 #ifdef HAVE_SYS_TYPES_H
27415 #include <sys/types.h>
27416 #endif
27418 #ifdef HAVE_SSIZE_T
27419 typedef ssize_t Py_ssize_t;
27420 #elif SIZEOF_VOID_P == SIZEOF_LONG
27421 typedef long Py_ssize_t;
27422 #else
27423 typedef int Py_ssize_t;
27424 #endif
27426 int main()
27428 char buffer[256];
27430 if(sprintf(buffer, "%zd", (size_t)123) < 0)
27431 return 1;
27433 if (strcmp(buffer, "123"))
27434 return 1;
27436 if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
27437 return 1;
27439 if (strcmp(buffer, "-123"))
27440 return 1;
27442 return 0;
27445 _ACEOF
27446 rm -f conftest$ac_exeext
27447 if { (ac_try="$ac_link"
27448 case "(($ac_try" in
27449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27450 *) ac_try_echo=$ac_try;;
27451 esac
27452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27453 (eval "$ac_link") 2>&5
27454 ac_status=$?
27455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27456 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27457 { (case "(($ac_try" in
27458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27459 *) ac_try_echo=$ac_try;;
27460 esac
27461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27462 (eval "$ac_try") 2>&5
27463 ac_status=$?
27464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27465 (exit $ac_status); }; }; then
27466 ac_cv_have_size_t_format=yes
27467 else
27468 echo "$as_me: program exited with status $ac_status" >&5
27469 echo "$as_me: failed program was:" >&5
27470 sed 's/^/| /' conftest.$ac_ext >&5
27472 ( exit $ac_status )
27473 ac_cv_have_size_t_format=no
27475 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27480 { echo "$as_me:$LINENO: result: $ac_cv_have_size_t_format" >&5
27481 echo "${ECHO_T}$ac_cv_have_size_t_format" >&6; }
27482 if test "$ac_cv_have_size_t_format" != no ; then
27484 cat >>confdefs.h <<\_ACEOF
27485 #define PY_FORMAT_SIZE_T "z"
27486 _ACEOF
27490 { echo "$as_me:$LINENO: checking for socklen_t" >&5
27491 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
27492 if test "${ac_cv_type_socklen_t+set}" = set; then
27493 echo $ECHO_N "(cached) $ECHO_C" >&6
27494 else
27495 cat >conftest.$ac_ext <<_ACEOF
27496 /* confdefs.h. */
27497 _ACEOF
27498 cat confdefs.h >>conftest.$ac_ext
27499 cat >>conftest.$ac_ext <<_ACEOF
27500 /* end confdefs.h. */
27502 #ifdef HAVE_SYS_TYPES_H
27503 #include <sys/types.h>
27504 #endif
27505 #ifdef HAVE_SYS_SOCKET_H
27506 #include <sys/socket.h>
27507 #endif
27510 typedef socklen_t ac__type_new_;
27512 main ()
27514 if ((ac__type_new_ *) 0)
27515 return 0;
27516 if (sizeof (ac__type_new_))
27517 return 0;
27519 return 0;
27521 _ACEOF
27522 rm -f conftest.$ac_objext
27523 if { (ac_try="$ac_compile"
27524 case "(($ac_try" in
27525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27526 *) ac_try_echo=$ac_try;;
27527 esac
27528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27529 (eval "$ac_compile") 2>conftest.er1
27530 ac_status=$?
27531 grep -v '^ *+' conftest.er1 >conftest.err
27532 rm -f conftest.er1
27533 cat conftest.err >&5
27534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27535 (exit $ac_status); } && {
27536 test -z "$ac_c_werror_flag" ||
27537 test ! -s conftest.err
27538 } && test -s conftest.$ac_objext; then
27539 ac_cv_type_socklen_t=yes
27540 else
27541 echo "$as_me: failed program was:" >&5
27542 sed 's/^/| /' conftest.$ac_ext >&5
27544 ac_cv_type_socklen_t=no
27547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27549 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
27550 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
27551 if test $ac_cv_type_socklen_t = yes; then
27553 else
27555 cat >>confdefs.h <<\_ACEOF
27556 #define socklen_t int
27557 _ACEOF
27564 for h in `(cd $srcdir;echo Python/thread_*.h)`
27566 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
27567 done
27570 SRCDIRS="Parser Grammar Objects Python Modules Mac"
27571 { echo "$as_me:$LINENO: checking for build directories" >&5
27572 echo $ECHO_N "checking for build directories... $ECHO_C" >&6; }
27573 for dir in $SRCDIRS; do
27574 if test ! -d $dir; then
27575 mkdir $dir
27577 done
27578 { echo "$as_me:$LINENO: result: done" >&5
27579 echo "${ECHO_T}done" >&6; }
27581 # generate output files
27582 ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config Misc/python.pc"
27584 cat >confcache <<\_ACEOF
27585 # This file is a shell script that caches the results of configure
27586 # tests run on this system so they can be shared between configure
27587 # scripts and configure runs, see configure's option --config-cache.
27588 # It is not useful on other systems. If it contains results you don't
27589 # want to keep, you may remove or edit it.
27591 # config.status only pays attention to the cache file if you give it
27592 # the --recheck option to rerun configure.
27594 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27595 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27596 # following values.
27598 _ACEOF
27600 # The following way of writing the cache mishandles newlines in values,
27601 # but we know of no workaround that is simple, portable, and efficient.
27602 # So, we kill variables containing newlines.
27603 # Ultrix sh set writes to stderr and can't be redirected directly,
27604 # and sets the high bit in the cache file unless we assign to the vars.
27606 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27607 eval ac_val=\$$ac_var
27608 case $ac_val in #(
27609 *${as_nl}*)
27610 case $ac_var in #(
27611 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
27612 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
27613 esac
27614 case $ac_var in #(
27615 _ | IFS | as_nl) ;; #(
27616 *) $as_unset $ac_var ;;
27617 esac ;;
27618 esac
27619 done
27621 (set) 2>&1 |
27622 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27623 *${as_nl}ac_space=\ *)
27624 # `set' does not quote correctly, so add quotes (double-quote
27625 # substitution turns \\\\ into \\, and sed turns \\ into \).
27626 sed -n \
27627 "s/'/'\\\\''/g;
27628 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27629 ;; #(
27631 # `set' quotes correctly as required by POSIX, so do not add quotes.
27632 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27634 esac |
27635 sort
27637 sed '
27638 /^ac_cv_env_/b end
27639 t clear
27640 :clear
27641 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27642 t end
27643 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27644 :end' >>confcache
27645 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27646 if test -w "$cache_file"; then
27647 test "x$cache_file" != "x/dev/null" &&
27648 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
27649 echo "$as_me: updating cache $cache_file" >&6;}
27650 cat confcache >$cache_file
27651 else
27652 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
27653 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27656 rm -f confcache
27658 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27659 # Let make expand exec_prefix.
27660 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27662 DEFS=-DHAVE_CONFIG_H
27664 ac_libobjs=
27665 ac_ltlibobjs=
27666 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27667 # 1. Remove the extension, and $U if already installed.
27668 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27669 ac_i=`echo "$ac_i" | sed "$ac_script"`
27670 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27671 # will be set to the directory where LIBOBJS objects are built.
27672 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27673 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
27674 done
27675 LIBOBJS=$ac_libobjs
27677 LTLIBOBJS=$ac_ltlibobjs
27681 : ${CONFIG_STATUS=./config.status}
27682 ac_clean_files_save=$ac_clean_files
27683 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27684 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
27685 echo "$as_me: creating $CONFIG_STATUS" >&6;}
27686 cat >$CONFIG_STATUS <<_ACEOF
27687 #! $SHELL
27688 # Generated by $as_me.
27689 # Run this file to recreate the current configuration.
27690 # Compiler output produced by configure, useful for debugging
27691 # configure, is in config.log if it exists.
27693 debug=false
27694 ac_cs_recheck=false
27695 ac_cs_silent=false
27696 SHELL=\${CONFIG_SHELL-$SHELL}
27697 _ACEOF
27699 cat >>$CONFIG_STATUS <<\_ACEOF
27700 ## --------------------- ##
27701 ## M4sh Initialization. ##
27702 ## --------------------- ##
27704 # Be more Bourne compatible
27705 DUALCASE=1; export DUALCASE # for MKS sh
27706 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27707 emulate sh
27708 NULLCMD=:
27709 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
27710 # is contrary to our usage. Disable this feature.
27711 alias -g '${1+"$@"}'='"$@"'
27712 setopt NO_GLOB_SUBST
27713 else
27714 case `(set -o) 2>/dev/null` in
27715 *posix*) set -o posix ;;
27716 esac
27723 # PATH needs CR
27724 # Avoid depending upon Character Ranges.
27725 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27726 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27727 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27728 as_cr_digits='0123456789'
27729 as_cr_alnum=$as_cr_Letters$as_cr_digits
27731 # The user is always right.
27732 if test "${PATH_SEPARATOR+set}" != set; then
27733 echo "#! /bin/sh" >conf$$.sh
27734 echo "exit 0" >>conf$$.sh
27735 chmod +x conf$$.sh
27736 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
27737 PATH_SEPARATOR=';'
27738 else
27739 PATH_SEPARATOR=:
27741 rm -f conf$$.sh
27744 # Support unset when possible.
27745 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27746 as_unset=unset
27747 else
27748 as_unset=false
27752 # IFS
27753 # We need space, tab and new line, in precisely that order. Quoting is
27754 # there to prevent editors from complaining about space-tab.
27755 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27756 # splitting by setting IFS to empty value.)
27757 as_nl='
27759 IFS=" "" $as_nl"
27761 # Find who we are. Look in the path if we contain no directory separator.
27762 case $0 in
27763 *[\\/]* ) as_myself=$0 ;;
27764 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27765 for as_dir in $PATH
27767 IFS=$as_save_IFS
27768 test -z "$as_dir" && as_dir=.
27769 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27770 done
27771 IFS=$as_save_IFS
27774 esac
27775 # We did not find ourselves, most probably we were run as `sh COMMAND'
27776 # in which case we are not to be found in the path.
27777 if test "x$as_myself" = x; then
27778 as_myself=$0
27780 if test ! -f "$as_myself"; then
27781 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27782 { (exit 1); exit 1; }
27785 # Work around bugs in pre-3.0 UWIN ksh.
27786 for as_var in ENV MAIL MAILPATH
27787 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
27788 done
27789 PS1='$ '
27790 PS2='> '
27791 PS4='+ '
27793 # NLS nuisances.
27794 for as_var in \
27795 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
27796 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
27797 LC_TELEPHONE LC_TIME
27799 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
27800 eval $as_var=C; export $as_var
27801 else
27802 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
27804 done
27806 # Required to use basename.
27807 if expr a : '\(a\)' >/dev/null 2>&1 &&
27808 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27809 as_expr=expr
27810 else
27811 as_expr=false
27814 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27815 as_basename=basename
27816 else
27817 as_basename=false
27821 # Name of the executable.
27822 as_me=`$as_basename -- "$0" ||
27823 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27824 X"$0" : 'X\(//\)$' \| \
27825 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27826 echo X/"$0" |
27827 sed '/^.*\/\([^/][^/]*\)\/*$/{
27828 s//\1/
27831 /^X\/\(\/\/\)$/{
27832 s//\1/
27835 /^X\/\(\/\).*/{
27836 s//\1/
27839 s/.*/./; q'`
27841 # CDPATH.
27842 $as_unset CDPATH
27846 as_lineno_1=$LINENO
27847 as_lineno_2=$LINENO
27848 test "x$as_lineno_1" != "x$as_lineno_2" &&
27849 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
27851 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
27852 # uniformly replaced by the line number. The first 'sed' inserts a
27853 # line-number line after each line using $LINENO; the second 'sed'
27854 # does the real work. The second script uses 'N' to pair each
27855 # line-number line with the line containing $LINENO, and appends
27856 # trailing '-' during substitution so that $LINENO is not a special
27857 # case at line end.
27858 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27859 # scripts with optimization help from Paolo Bonzini. Blame Lee
27860 # E. McMahon (1931-1989) for sed's syntax. :-)
27861 sed -n '
27863 /[$]LINENO/=
27864 ' <$as_myself |
27865 sed '
27866 s/[$]LINENO.*/&-/
27867 t lineno
27869 :lineno
27871 :loop
27872 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
27873 t loop
27874 s/-\n.*//
27875 ' >$as_me.lineno &&
27876 chmod +x "$as_me.lineno" ||
27877 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
27878 { (exit 1); exit 1; }; }
27880 # Don't try to exec as it changes $[0], causing all sort of problems
27881 # (the dirname of $[0] is not the place where we might find the
27882 # original and so on. Autoconf is especially sensitive to this).
27883 . "./$as_me.lineno"
27884 # Exit status is that of the last command.
27885 exit
27889 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27890 as_dirname=dirname
27891 else
27892 as_dirname=false
27895 ECHO_C= ECHO_N= ECHO_T=
27896 case `echo -n x` in
27897 -n*)
27898 case `echo 'x\c'` in
27899 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27900 *) ECHO_C='\c';;
27901 esac;;
27903 ECHO_N='-n';;
27904 esac
27906 if expr a : '\(a\)' >/dev/null 2>&1 &&
27907 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27908 as_expr=expr
27909 else
27910 as_expr=false
27913 rm -f conf$$ conf$$.exe conf$$.file
27914 if test -d conf$$.dir; then
27915 rm -f conf$$.dir/conf$$.file
27916 else
27917 rm -f conf$$.dir
27918 mkdir conf$$.dir
27920 echo >conf$$.file
27921 if ln -s conf$$.file conf$$ 2>/dev/null; then
27922 as_ln_s='ln -s'
27923 # ... but there are two gotchas:
27924 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27925 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27926 # In both cases, we have to default to `cp -p'.
27927 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27928 as_ln_s='cp -p'
27929 elif ln conf$$.file conf$$ 2>/dev/null; then
27930 as_ln_s=ln
27931 else
27932 as_ln_s='cp -p'
27934 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27935 rmdir conf$$.dir 2>/dev/null
27937 if mkdir -p . 2>/dev/null; then
27938 as_mkdir_p=:
27939 else
27940 test -d ./-p && rmdir ./-p
27941 as_mkdir_p=false
27944 if test -x / >/dev/null 2>&1; then
27945 as_test_x='test -x'
27946 else
27947 if ls -dL / >/dev/null 2>&1; then
27948 as_ls_L_option=L
27949 else
27950 as_ls_L_option=
27952 as_test_x='
27953 eval sh -c '\''
27954 if test -d "$1"; then
27955 test -d "$1/.";
27956 else
27957 case $1 in
27958 -*)set "./$1";;
27959 esac;
27960 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
27961 ???[sx]*):;;*)false;;esac;fi
27962 '\'' sh
27965 as_executable_p=$as_test_x
27967 # Sed expression to map a string onto a valid CPP name.
27968 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27970 # Sed expression to map a string onto a valid variable name.
27971 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27974 exec 6>&1
27976 # Save the log message, to keep $[0] and so on meaningful, and to
27977 # report actual input values of CONFIG_FILES etc. instead of their
27978 # values after options handling.
27979 ac_log="
27980 This file was extended by python $as_me 2.7, which was
27981 generated by GNU Autoconf 2.61. Invocation command line was
27983 CONFIG_FILES = $CONFIG_FILES
27984 CONFIG_HEADERS = $CONFIG_HEADERS
27985 CONFIG_LINKS = $CONFIG_LINKS
27986 CONFIG_COMMANDS = $CONFIG_COMMANDS
27987 $ $0 $@
27989 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27992 _ACEOF
27994 cat >>$CONFIG_STATUS <<_ACEOF
27995 # Files that config.status was made for.
27996 config_files="$ac_config_files"
27997 config_headers="$ac_config_headers"
27999 _ACEOF
28001 cat >>$CONFIG_STATUS <<\_ACEOF
28002 ac_cs_usage="\
28003 \`$as_me' instantiates files from templates according to the
28004 current configuration.
28006 Usage: $0 [OPTIONS] [FILE]...
28008 -h, --help print this help, then exit
28009 -V, --version print version number and configuration settings, then exit
28010 -q, --quiet do not print progress messages
28011 -d, --debug don't remove temporary files
28012 --recheck update $as_me by reconfiguring in the same conditions
28013 --file=FILE[:TEMPLATE]
28014 instantiate the configuration file FILE
28015 --header=FILE[:TEMPLATE]
28016 instantiate the configuration header FILE
28018 Configuration files:
28019 $config_files
28021 Configuration headers:
28022 $config_headers
28024 Report bugs to <bug-autoconf@gnu.org>."
28026 _ACEOF
28027 cat >>$CONFIG_STATUS <<_ACEOF
28028 ac_cs_version="\\
28029 python config.status 2.7
28030 configured by $0, generated by GNU Autoconf 2.61,
28031 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
28033 Copyright (C) 2006 Free Software Foundation, Inc.
28034 This config.status script is free software; the Free Software Foundation
28035 gives unlimited permission to copy, distribute and modify it."
28037 ac_pwd='$ac_pwd'
28038 srcdir='$srcdir'
28039 INSTALL='$INSTALL'
28040 _ACEOF
28042 cat >>$CONFIG_STATUS <<\_ACEOF
28043 # If no file are specified by the user, then we need to provide default
28044 # value. By we need to know if files were specified by the user.
28045 ac_need_defaults=:
28046 while test $# != 0
28048 case $1 in
28049 --*=*)
28050 ac_option=`expr "X$1" : 'X\([^=]*\)='`
28051 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
28052 ac_shift=:
28055 ac_option=$1
28056 ac_optarg=$2
28057 ac_shift=shift
28059 esac
28061 case $ac_option in
28062 # Handling of the options.
28063 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28064 ac_cs_recheck=: ;;
28065 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
28066 echo "$ac_cs_version"; exit ;;
28067 --debug | --debu | --deb | --de | --d | -d )
28068 debug=: ;;
28069 --file | --fil | --fi | --f )
28070 $ac_shift
28071 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
28072 ac_need_defaults=false;;
28073 --header | --heade | --head | --hea )
28074 $ac_shift
28075 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
28076 ac_need_defaults=false;;
28077 --he | --h)
28078 # Conflict between --help and --header
28079 { echo "$as_me: error: ambiguous option: $1
28080 Try \`$0 --help' for more information." >&2
28081 { (exit 1); exit 1; }; };;
28082 --help | --hel | -h )
28083 echo "$ac_cs_usage"; exit ;;
28084 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28085 | -silent | --silent | --silen | --sile | --sil | --si | --s)
28086 ac_cs_silent=: ;;
28088 # This is an error.
28089 -*) { echo "$as_me: error: unrecognized option: $1
28090 Try \`$0 --help' for more information." >&2
28091 { (exit 1); exit 1; }; } ;;
28093 *) ac_config_targets="$ac_config_targets $1"
28094 ac_need_defaults=false ;;
28096 esac
28097 shift
28098 done
28100 ac_configure_extra_args=
28102 if $ac_cs_silent; then
28103 exec 6>/dev/null
28104 ac_configure_extra_args="$ac_configure_extra_args --silent"
28107 _ACEOF
28108 cat >>$CONFIG_STATUS <<_ACEOF
28109 if \$ac_cs_recheck; then
28110 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
28111 CONFIG_SHELL=$SHELL
28112 export CONFIG_SHELL
28113 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28116 _ACEOF
28117 cat >>$CONFIG_STATUS <<\_ACEOF
28118 exec 5>>config.log
28120 echo
28121 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28122 ## Running $as_me. ##
28123 _ASBOX
28124 echo "$ac_log"
28125 } >&5
28127 _ACEOF
28128 cat >>$CONFIG_STATUS <<_ACEOF
28129 _ACEOF
28131 cat >>$CONFIG_STATUS <<\_ACEOF
28133 # Handling of arguments.
28134 for ac_config_target in $ac_config_targets
28136 case $ac_config_target in
28137 "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;;
28138 "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;;
28139 "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
28140 "Mac/IDLE/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/IDLE/Makefile" ;;
28141 "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;;
28142 "Mac/Resources/app/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/app/Info.plist" ;;
28143 "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;;
28144 "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;;
28145 "Misc/python.pc") CONFIG_FILES="$CONFIG_FILES Misc/python.pc" ;;
28147 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
28148 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
28149 { (exit 1); exit 1; }; };;
28150 esac
28151 done
28154 # If the user did not use the arguments to specify the items to instantiate,
28155 # then the envvar interface is used. Set only those that are not.
28156 # We use the long form for the default assignment because of an extremely
28157 # bizarre bug on SunOS 4.1.3.
28158 if $ac_need_defaults; then
28159 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28160 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28163 # Have a temporary directory for convenience. Make it in the build tree
28164 # simply because there is no reason against having it here, and in addition,
28165 # creating and moving files from /tmp can sometimes cause problems.
28166 # Hook for its removal unless debugging.
28167 # Note that there is a small window in which the directory will not be cleaned:
28168 # after its creation but before its name has been assigned to `$tmp'.
28169 $debug ||
28171 tmp=
28172 trap 'exit_status=$?
28173 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28175 trap '{ (exit 1); exit 1; }' 1 2 13 15
28177 # Create a (secure) tmp directory for tmp files.
28180 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28181 test -n "$tmp" && test -d "$tmp"
28182 } ||
28184 tmp=./conf$$-$RANDOM
28185 (umask 077 && mkdir "$tmp")
28186 } ||
28188 echo "$me: cannot create a temporary directory in ." >&2
28189 { (exit 1); exit 1; }
28193 # Set up the sed scripts for CONFIG_FILES section.
28196 # No need to generate the scripts if there are no CONFIG_FILES.
28197 # This happens for instance when ./config.status config.h
28198 if test -n "$CONFIG_FILES"; then
28200 _ACEOF
28204 ac_delim='%!_!# '
28205 for ac_last_try in false false false false false :; do
28206 cat >conf$$subs.sed <<_ACEOF
28207 SHELL!$SHELL$ac_delim
28208 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
28209 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
28210 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
28211 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
28212 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
28213 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
28214 exec_prefix!$exec_prefix$ac_delim
28215 prefix!$prefix$ac_delim
28216 program_transform_name!$program_transform_name$ac_delim
28217 bindir!$bindir$ac_delim
28218 sbindir!$sbindir$ac_delim
28219 libexecdir!$libexecdir$ac_delim
28220 datarootdir!$datarootdir$ac_delim
28221 datadir!$datadir$ac_delim
28222 sysconfdir!$sysconfdir$ac_delim
28223 sharedstatedir!$sharedstatedir$ac_delim
28224 localstatedir!$localstatedir$ac_delim
28225 includedir!$includedir$ac_delim
28226 oldincludedir!$oldincludedir$ac_delim
28227 docdir!$docdir$ac_delim
28228 infodir!$infodir$ac_delim
28229 htmldir!$htmldir$ac_delim
28230 dvidir!$dvidir$ac_delim
28231 pdfdir!$pdfdir$ac_delim
28232 psdir!$psdir$ac_delim
28233 libdir!$libdir$ac_delim
28234 localedir!$localedir$ac_delim
28235 mandir!$mandir$ac_delim
28236 DEFS!$DEFS$ac_delim
28237 ECHO_C!$ECHO_C$ac_delim
28238 ECHO_N!$ECHO_N$ac_delim
28239 ECHO_T!$ECHO_T$ac_delim
28240 LIBS!$LIBS$ac_delim
28241 build_alias!$build_alias$ac_delim
28242 host_alias!$host_alias$ac_delim
28243 target_alias!$target_alias$ac_delim
28244 VERSION!$VERSION$ac_delim
28245 SOVERSION!$SOVERSION$ac_delim
28246 CONFIG_ARGS!$CONFIG_ARGS$ac_delim
28247 UNIVERSALSDK!$UNIVERSALSDK$ac_delim
28248 ARCH_RUN_32BIT!$ARCH_RUN_32BIT$ac_delim
28249 LIPO_32BIT_FLAGS!$LIPO_32BIT_FLAGS$ac_delim
28250 PYTHONFRAMEWORK!$PYTHONFRAMEWORK$ac_delim
28251 PYTHONFRAMEWORKIDENTIFIER!$PYTHONFRAMEWORKIDENTIFIER$ac_delim
28252 PYTHONFRAMEWORKDIR!$PYTHONFRAMEWORKDIR$ac_delim
28253 PYTHONFRAMEWORKPREFIX!$PYTHONFRAMEWORKPREFIX$ac_delim
28254 PYTHONFRAMEWORKINSTALLDIR!$PYTHONFRAMEWORKINSTALLDIR$ac_delim
28255 FRAMEWORKINSTALLFIRST!$FRAMEWORKINSTALLFIRST$ac_delim
28256 FRAMEWORKINSTALLLAST!$FRAMEWORKINSTALLLAST$ac_delim
28257 FRAMEWORKALTINSTALLFIRST!$FRAMEWORKALTINSTALLFIRST$ac_delim
28258 FRAMEWORKALTINSTALLLAST!$FRAMEWORKALTINSTALLLAST$ac_delim
28259 FRAMEWORKUNIXTOOLSPREFIX!$FRAMEWORKUNIXTOOLSPREFIX$ac_delim
28260 MACHDEP!$MACHDEP$ac_delim
28261 SGI_ABI!$SGI_ABI$ac_delim
28262 EXTRAPLATDIR!$EXTRAPLATDIR$ac_delim
28263 EXTRAMACHDEPPATH!$EXTRAMACHDEPPATH$ac_delim
28264 CONFIGURE_MACOSX_DEPLOYMENT_TARGET!$CONFIGURE_MACOSX_DEPLOYMENT_TARGET$ac_delim
28265 EXPORT_MACOSX_DEPLOYMENT_TARGET!$EXPORT_MACOSX_DEPLOYMENT_TARGET$ac_delim
28266 CC!$CC$ac_delim
28267 CFLAGS!$CFLAGS$ac_delim
28268 LDFLAGS!$LDFLAGS$ac_delim
28269 CPPFLAGS!$CPPFLAGS$ac_delim
28270 ac_ct_CC!$ac_ct_CC$ac_delim
28271 EXEEXT!$EXEEXT$ac_delim
28272 OBJEXT!$OBJEXT$ac_delim
28273 CXX!$CXX$ac_delim
28274 MAINCC!$MAINCC$ac_delim
28275 CPP!$CPP$ac_delim
28276 GREP!$GREP$ac_delim
28277 EGREP!$EGREP$ac_delim
28278 BUILDEXEEXT!$BUILDEXEEXT$ac_delim
28279 LIBRARY!$LIBRARY$ac_delim
28280 LDLIBRARY!$LDLIBRARY$ac_delim
28281 DLLLIBRARY!$DLLLIBRARY$ac_delim
28282 BLDLIBRARY!$BLDLIBRARY$ac_delim
28283 LDLIBRARYDIR!$LDLIBRARYDIR$ac_delim
28284 INSTSONAME!$INSTSONAME$ac_delim
28285 RUNSHARED!$RUNSHARED$ac_delim
28286 LINKCC!$LINKCC$ac_delim
28287 GNULD!$GNULD$ac_delim
28288 RANLIB!$RANLIB$ac_delim
28289 AR!$AR$ac_delim
28290 ARFLAGS!$ARFLAGS$ac_delim
28291 SVNVERSION!$SVNVERSION$ac_delim
28292 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
28293 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
28294 INSTALL_DATA!$INSTALL_DATA$ac_delim
28295 LN!$LN$ac_delim
28296 OPT!$OPT$ac_delim
28297 BASECFLAGS!$BASECFLAGS$ac_delim
28298 UNIVERSAL_ARCH_FLAGS!$UNIVERSAL_ARCH_FLAGS$ac_delim
28299 OTHER_LIBTOOL_OPT!$OTHER_LIBTOOL_OPT$ac_delim
28300 LIBTOOL_CRUFT!$LIBTOOL_CRUFT$ac_delim
28301 SO!$SO$ac_delim
28302 LDSHARED!$LDSHARED$ac_delim
28303 BLDSHARED!$BLDSHARED$ac_delim
28304 _ACEOF
28306 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
28307 break
28308 elif $ac_last_try; then
28309 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
28310 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
28311 { (exit 1); exit 1; }; }
28312 else
28313 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28315 done
28317 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
28318 if test -n "$ac_eof"; then
28319 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
28320 ac_eof=`expr $ac_eof + 1`
28323 cat >>$CONFIG_STATUS <<_ACEOF
28324 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
28325 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28326 _ACEOF
28327 sed '
28328 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
28329 s/^/s,@/; s/!/@,|#_!!_#|/
28332 s/'"$ac_delim"'$/,g/; t
28333 s/$/\\/; p
28334 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
28335 ' >>$CONFIG_STATUS <conf$$subs.sed
28336 rm -f conf$$subs.sed
28337 cat >>$CONFIG_STATUS <<_ACEOF
28338 CEOF$ac_eof
28339 _ACEOF
28342 ac_delim='%!_!# '
28343 for ac_last_try in false false false false false :; do
28344 cat >conf$$subs.sed <<_ACEOF
28345 CCSHARED!$CCSHARED$ac_delim
28346 LINKFORSHARED!$LINKFORSHARED$ac_delim
28347 CFLAGSFORSHARED!$CFLAGSFORSHARED$ac_delim
28348 SHLIBS!$SHLIBS$ac_delim
28349 USE_SIGNAL_MODULE!$USE_SIGNAL_MODULE$ac_delim
28350 SIGNAL_OBJS!$SIGNAL_OBJS$ac_delim
28351 USE_THREAD_MODULE!$USE_THREAD_MODULE$ac_delim
28352 LDLAST!$LDLAST$ac_delim
28353 THREADOBJ!$THREADOBJ$ac_delim
28354 DLINCLDIR!$DLINCLDIR$ac_delim
28355 DYNLOADFILE!$DYNLOADFILE$ac_delim
28356 MACHDEP_OBJS!$MACHDEP_OBJS$ac_delim
28357 TRUE!$TRUE$ac_delim
28358 LIBOBJS!$LIBOBJS$ac_delim
28359 HAVE_GETHOSTBYNAME_R_6_ARG!$HAVE_GETHOSTBYNAME_R_6_ARG$ac_delim
28360 HAVE_GETHOSTBYNAME_R_5_ARG!$HAVE_GETHOSTBYNAME_R_5_ARG$ac_delim
28361 HAVE_GETHOSTBYNAME_R_3_ARG!$HAVE_GETHOSTBYNAME_R_3_ARG$ac_delim
28362 HAVE_GETHOSTBYNAME_R!$HAVE_GETHOSTBYNAME_R$ac_delim
28363 HAVE_GETHOSTBYNAME!$HAVE_GETHOSTBYNAME$ac_delim
28364 LIBM!$LIBM$ac_delim
28365 LIBC!$LIBC$ac_delim
28366 UNICODE_OBJS!$UNICODE_OBJS$ac_delim
28367 THREADHEADERS!$THREADHEADERS$ac_delim
28368 SRCDIRS!$SRCDIRS$ac_delim
28369 LTLIBOBJS!$LTLIBOBJS$ac_delim
28370 _ACEOF
28372 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 25; then
28373 break
28374 elif $ac_last_try; then
28375 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
28376 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
28377 { (exit 1); exit 1; }; }
28378 else
28379 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28381 done
28383 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
28384 if test -n "$ac_eof"; then
28385 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
28386 ac_eof=`expr $ac_eof + 1`
28389 cat >>$CONFIG_STATUS <<_ACEOF
28390 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
28391 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
28392 _ACEOF
28393 sed '
28394 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
28395 s/^/s,@/; s/!/@,|#_!!_#|/
28398 s/'"$ac_delim"'$/,g/; t
28399 s/$/\\/; p
28400 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
28401 ' >>$CONFIG_STATUS <conf$$subs.sed
28402 rm -f conf$$subs.sed
28403 cat >>$CONFIG_STATUS <<_ACEOF
28404 :end
28405 s/|#_!!_#|//g
28406 CEOF$ac_eof
28407 _ACEOF
28410 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28411 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28412 # trailing colons and then remove the whole line if VPATH becomes empty
28413 # (actually we leave an empty line to preserve line numbers).
28414 if test "x$srcdir" = x.; then
28415 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28416 s/:*\$(srcdir):*/:/
28417 s/:*\${srcdir}:*/:/
28418 s/:*@srcdir@:*/:/
28419 s/^\([^=]*=[ ]*\):*/\1/
28420 s/:*$//
28421 s/^[^=]*=[ ]*$//
28425 cat >>$CONFIG_STATUS <<\_ACEOF
28426 fi # test -n "$CONFIG_FILES"
28429 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
28431 case $ac_tag in
28432 :[FHLC]) ac_mode=$ac_tag; continue;;
28433 esac
28434 case $ac_mode$ac_tag in
28435 :[FHL]*:*);;
28436 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
28437 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
28438 { (exit 1); exit 1; }; };;
28439 :[FH]-) ac_tag=-:-;;
28440 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28441 esac
28442 ac_save_IFS=$IFS
28443 IFS=:
28444 set x $ac_tag
28445 IFS=$ac_save_IFS
28446 shift
28447 ac_file=$1
28448 shift
28450 case $ac_mode in
28451 :L) ac_source=$1;;
28452 :[FH])
28453 ac_file_inputs=
28454 for ac_f
28456 case $ac_f in
28457 -) ac_f="$tmp/stdin";;
28458 *) # Look for the file first in the build tree, then in the source tree
28459 # (if the path is not absolute). The absolute path cannot be DOS-style,
28460 # because $ac_f cannot contain `:'.
28461 test -f "$ac_f" ||
28462 case $ac_f in
28463 [\\/$]*) false;;
28464 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28465 esac ||
28466 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
28467 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
28468 { (exit 1); exit 1; }; };;
28469 esac
28470 ac_file_inputs="$ac_file_inputs $ac_f"
28471 done
28473 # Let's still pretend it is `configure' which instantiates (i.e., don't
28474 # use $as_me), people would be surprised to read:
28475 # /* config.h. Generated by config.status. */
28476 configure_input="Generated from "`IFS=:
28477 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
28478 if test x"$ac_file" != x-; then
28479 configure_input="$ac_file. $configure_input"
28480 { echo "$as_me:$LINENO: creating $ac_file" >&5
28481 echo "$as_me: creating $ac_file" >&6;}
28484 case $ac_tag in
28485 *:-:* | *:-) cat >"$tmp/stdin";;
28486 esac
28488 esac
28490 ac_dir=`$as_dirname -- "$ac_file" ||
28491 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28492 X"$ac_file" : 'X\(//\)[^/]' \| \
28493 X"$ac_file" : 'X\(//\)$' \| \
28494 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28495 echo X"$ac_file" |
28496 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28497 s//\1/
28500 /^X\(\/\/\)[^/].*/{
28501 s//\1/
28504 /^X\(\/\/\)$/{
28505 s//\1/
28508 /^X\(\/\).*/{
28509 s//\1/
28512 s/.*/./; q'`
28513 { as_dir="$ac_dir"
28514 case $as_dir in #(
28515 -*) as_dir=./$as_dir;;
28516 esac
28517 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
28518 as_dirs=
28519 while :; do
28520 case $as_dir in #(
28521 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
28522 *) as_qdir=$as_dir;;
28523 esac
28524 as_dirs="'$as_qdir' $as_dirs"
28525 as_dir=`$as_dirname -- "$as_dir" ||
28526 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28527 X"$as_dir" : 'X\(//\)[^/]' \| \
28528 X"$as_dir" : 'X\(//\)$' \| \
28529 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28530 echo X"$as_dir" |
28531 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28532 s//\1/
28535 /^X\(\/\/\)[^/].*/{
28536 s//\1/
28539 /^X\(\/\/\)$/{
28540 s//\1/
28543 /^X\(\/\).*/{
28544 s//\1/
28547 s/.*/./; q'`
28548 test -d "$as_dir" && break
28549 done
28550 test -z "$as_dirs" || eval "mkdir $as_dirs"
28551 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
28552 echo "$as_me: error: cannot create directory $as_dir" >&2;}
28553 { (exit 1); exit 1; }; }; }
28554 ac_builddir=.
28556 case "$ac_dir" in
28557 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28559 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28560 # A ".." for each directory in $ac_dir_suffix.
28561 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
28562 case $ac_top_builddir_sub in
28563 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28564 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28565 esac ;;
28566 esac
28567 ac_abs_top_builddir=$ac_pwd
28568 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28569 # for backward compatibility:
28570 ac_top_builddir=$ac_top_build_prefix
28572 case $srcdir in
28573 .) # We are building in place.
28574 ac_srcdir=.
28575 ac_top_srcdir=$ac_top_builddir_sub
28576 ac_abs_top_srcdir=$ac_pwd ;;
28577 [\\/]* | ?:[\\/]* ) # Absolute name.
28578 ac_srcdir=$srcdir$ac_dir_suffix;
28579 ac_top_srcdir=$srcdir
28580 ac_abs_top_srcdir=$srcdir ;;
28581 *) # Relative name.
28582 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28583 ac_top_srcdir=$ac_top_build_prefix$srcdir
28584 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28585 esac
28586 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28589 case $ac_mode in
28592 # CONFIG_FILE
28595 case $INSTALL in
28596 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28597 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
28598 esac
28599 _ACEOF
28601 cat >>$CONFIG_STATUS <<\_ACEOF
28602 # If the template does not know about datarootdir, expand it.
28603 # FIXME: This hack should be removed a few years after 2.60.
28604 ac_datarootdir_hack=; ac_datarootdir_seen=
28606 case `sed -n '/datarootdir/ {
28610 /@datadir@/p
28611 /@docdir@/p
28612 /@infodir@/p
28613 /@localedir@/p
28614 /@mandir@/p
28615 ' $ac_file_inputs` in
28616 *datarootdir*) ac_datarootdir_seen=yes;;
28617 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28618 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28619 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28620 _ACEOF
28621 cat >>$CONFIG_STATUS <<_ACEOF
28622 ac_datarootdir_hack='
28623 s&@datadir@&$datadir&g
28624 s&@docdir@&$docdir&g
28625 s&@infodir@&$infodir&g
28626 s&@localedir@&$localedir&g
28627 s&@mandir@&$mandir&g
28628 s&\\\${datarootdir}&$datarootdir&g' ;;
28629 esac
28630 _ACEOF
28632 # Neutralize VPATH when `$srcdir' = `.'.
28633 # Shell code in configure.ac might set extrasub.
28634 # FIXME: do we really want to maintain this feature?
28635 cat >>$CONFIG_STATUS <<_ACEOF
28636 sed "$ac_vpsub
28637 $extrasub
28638 _ACEOF
28639 cat >>$CONFIG_STATUS <<\_ACEOF
28641 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28642 s&@configure_input@&$configure_input&;t t
28643 s&@top_builddir@&$ac_top_builddir_sub&;t t
28644 s&@srcdir@&$ac_srcdir&;t t
28645 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28646 s&@top_srcdir@&$ac_top_srcdir&;t t
28647 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28648 s&@builddir@&$ac_builddir&;t t
28649 s&@abs_builddir@&$ac_abs_builddir&;t t
28650 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28651 s&@INSTALL@&$ac_INSTALL&;t t
28652 $ac_datarootdir_hack
28653 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
28655 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28656 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28657 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28658 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28659 which seems to be undefined. Please make sure it is defined." >&5
28660 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28661 which seems to be undefined. Please make sure it is defined." >&2;}
28663 rm -f "$tmp/stdin"
28664 case $ac_file in
28665 -) cat "$tmp/out"; rm -f "$tmp/out";;
28666 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
28667 esac
28671 # CONFIG_HEADER
28673 _ACEOF
28675 # Transform confdefs.h into a sed script `conftest.defines', that
28676 # substitutes the proper values into config.h.in to produce config.h.
28677 rm -f conftest.defines conftest.tail
28678 # First, append a space to every undef/define line, to ease matching.
28679 echo 's/$/ /' >conftest.defines
28680 # Then, protect against being on the right side of a sed subst, or in
28681 # an unquoted here document, in config.status. If some macros were
28682 # called several times there might be several #defines for the same
28683 # symbol, which is useless. But do not sort them, since the last
28684 # AC_DEFINE must be honored.
28685 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28686 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
28687 # NAME is the cpp macro being defined, VALUE is the value it is being given.
28688 # PARAMS is the parameter list in the macro definition--in most cases, it's
28689 # just an empty string.
28690 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
28691 ac_dB='\\)[ (].*,\\1define\\2'
28692 ac_dC=' '
28693 ac_dD=' ,'
28695 uniq confdefs.h |
28696 sed -n '
28697 t rset
28698 :rset
28699 s/^[ ]*#[ ]*define[ ][ ]*//
28700 t ok
28703 s/[\\&,]/\\&/g
28704 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
28705 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
28706 ' >>conftest.defines
28708 # Remove the space that was appended to ease matching.
28709 # Then replace #undef with comments. This is necessary, for
28710 # example, in the case of _POSIX_SOURCE, which is predefined and required
28711 # on some systems where configure will not decide to define it.
28712 # (The regexp can be short, since the line contains either #define or #undef.)
28713 echo 's/ $//
28714 s,^[ #]*u.*,/* & */,' >>conftest.defines
28716 # Break up conftest.defines:
28717 ac_max_sed_lines=50
28719 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
28720 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
28721 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
28722 # et cetera.
28723 ac_in='$ac_file_inputs'
28724 ac_out='"$tmp/out1"'
28725 ac_nxt='"$tmp/out2"'
28727 while :
28729 # Write a here document:
28730 cat >>$CONFIG_STATUS <<_ACEOF
28731 # First, check the format of the line:
28732 cat >"\$tmp/defines.sed" <<\\CEOF
28733 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
28734 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
28736 :def
28737 _ACEOF
28738 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
28739 echo 'CEOF
28740 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
28741 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
28742 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
28743 grep . conftest.tail >/dev/null || break
28744 rm -f conftest.defines
28745 mv conftest.tail conftest.defines
28746 done
28747 rm -f conftest.defines conftest.tail
28749 echo "ac_result=$ac_in" >>$CONFIG_STATUS
28750 cat >>$CONFIG_STATUS <<\_ACEOF
28751 if test x"$ac_file" != x-; then
28752 echo "/* $configure_input */" >"$tmp/config.h"
28753 cat "$ac_result" >>"$tmp/config.h"
28754 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
28755 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
28756 echo "$as_me: $ac_file is unchanged" >&6;}
28757 else
28758 rm -f $ac_file
28759 mv "$tmp/config.h" $ac_file
28761 else
28762 echo "/* $configure_input */"
28763 cat "$ac_result"
28765 rm -f "$tmp/out12"
28769 esac
28771 done # for ac_tag
28774 { (exit 0); exit 0; }
28775 _ACEOF
28776 chmod +x $CONFIG_STATUS
28777 ac_clean_files=$ac_clean_files_save
28780 # configure is writing to config.log, and then calls config.status.
28781 # config.status does its own redirection, appending to config.log.
28782 # Unfortunately, on DOS this fails, as config.log is still kept open
28783 # by configure, so config.status won't be able to write to it; its
28784 # output is simply discarded. So we exec the FD to /dev/null,
28785 # effectively closing config.log, so it can be properly (re)opened and
28786 # appended to by config.status. When coming back to configure, we
28787 # need to make the FD available again.
28788 if test "$no_create" != yes; then
28789 ac_cs_success=:
28790 ac_config_status_args=
28791 test "$silent" = yes &&
28792 ac_config_status_args="$ac_config_status_args --quiet"
28793 exec 5>/dev/null
28794 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28795 exec 5>>config.log
28796 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28797 # would make configure fail if this is the last instruction.
28798 $ac_cs_success || { (exit 1); exit 1; }
28802 echo "creating Modules/Setup"
28803 if test ! -f Modules/Setup
28804 then
28805 cp $srcdir/Modules/Setup.dist Modules/Setup
28808 echo "creating Modules/Setup.local"
28809 if test ! -f Modules/Setup.local
28810 then
28811 echo "# Edit this file for local setup changes" >Modules/Setup.local
28814 echo "creating Makefile"
28815 $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
28816 -s Modules Modules/Setup.config \
28817 Modules/Setup.local Modules/Setup
28819 case $ac_sys_system in
28820 BeOS)
28821 { echo "$as_me:$LINENO: WARNING:
28823 Support for BeOS is deprecated as of Python 2.6.
28824 See PEP 11 for the gory details.
28825 " >&5
28826 echo "$as_me: WARNING:
28828 Support for BeOS is deprecated as of Python 2.6.
28829 See PEP 11 for the gory details.
28830 " >&2;}
28832 *) ;;
28833 esac
28835 mv config.c Modules