Merged revisions 77459 via svnmerge from
[python/dscho.git] / configure
blob9b30edfb685cccd43c97ed0d77b4198204f931f1
1 #! /bin/sh
2 # From configure.in Revision: 76821 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for python 3.1.
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='3.1'
579 PACKAGE_STRING='python 3.1'
580 PACKAGE_BUGREPORT='http://bugs.python.org/'
582 ac_unique_file="Include/object.h"
583 # Factoring default headers for most tests.
584 ac_includes_default="\
585 #include <stdio.h>
586 #ifdef HAVE_SYS_TYPES_H
587 # include <sys/types.h>
588 #endif
589 #ifdef HAVE_SYS_STAT_H
590 # include <sys/stat.h>
591 #endif
592 #ifdef STDC_HEADERS
593 # include <stdlib.h>
594 # include <stddef.h>
595 #else
596 # ifdef HAVE_STDLIB_H
597 # include <stdlib.h>
598 # endif
599 #endif
600 #ifdef HAVE_STRING_H
601 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
602 # include <memory.h>
603 # endif
604 # include <string.h>
605 #endif
606 #ifdef HAVE_STRINGS_H
607 # include <strings.h>
608 #endif
609 #ifdef HAVE_INTTYPES_H
610 # include <inttypes.h>
611 #endif
612 #ifdef HAVE_STDINT_H
613 # include <stdint.h>
614 #endif
615 #ifdef HAVE_UNISTD_H
616 # include <unistd.h>
617 #endif"
619 ac_subst_vars='SHELL
620 PATH_SEPARATOR
621 PACKAGE_NAME
622 PACKAGE_TARNAME
623 PACKAGE_VERSION
624 PACKAGE_STRING
625 PACKAGE_BUGREPORT
626 exec_prefix
627 prefix
628 program_transform_name
629 bindir
630 sbindir
631 libexecdir
632 datarootdir
633 datadir
634 sysconfdir
635 sharedstatedir
636 localstatedir
637 includedir
638 oldincludedir
639 docdir
640 infodir
641 htmldir
642 dvidir
643 pdfdir
644 psdir
645 libdir
646 localedir
647 mandir
648 DEFS
649 ECHO_C
650 ECHO_N
651 ECHO_T
652 LIBS
653 build_alias
654 host_alias
655 target_alias
656 VERSION
657 SOVERSION
658 CONFIG_ARGS
659 UNIVERSALSDK
660 ARCH_RUN_32BIT
661 PYTHONFRAMEWORK
662 PYTHONFRAMEWORKIDENTIFIER
663 PYTHONFRAMEWORKDIR
664 PYTHONFRAMEWORKPREFIX
665 PYTHONFRAMEWORKINSTALLDIR
666 FRAMEWORKINSTALLFIRST
667 FRAMEWORKINSTALLLAST
668 FRAMEWORKALTINSTALLFIRST
669 FRAMEWORKALTINSTALLLAST
670 FRAMEWORKUNIXTOOLSPREFIX
671 MACHDEP
672 SGI_ABI
673 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
674 EXPORT_MACOSX_DEPLOYMENT_TARGET
676 CFLAGS
677 LDFLAGS
678 CPPFLAGS
679 ac_ct_CC
680 EXEEXT
681 OBJEXT
683 MAINCC
685 GREP
686 EGREP
687 BUILDEXEEXT
688 LIBRARY
689 LDLIBRARY
690 DLLLIBRARY
691 BLDLIBRARY
692 LDLIBRARYDIR
693 INSTSONAME
694 RUNSHARED
695 LINKCC
696 GNULD
697 RANLIB
699 ARFLAGS
700 SVNVERSION
701 INSTALL_PROGRAM
702 INSTALL_SCRIPT
703 INSTALL_DATA
706 BASECFLAGS
707 UNIVERSAL_ARCH_FLAGS
708 OTHER_LIBTOOL_OPT
709 LIBTOOL_CRUFT
711 LDSHARED
712 BLDSHARED
713 CCSHARED
714 LINKFORSHARED
715 CFLAGSFORSHARED
716 SHLIBS
717 USE_SIGNAL_MODULE
718 SIGNAL_OBJS
719 USE_THREAD_MODULE
720 LDLAST
721 THREADOBJ
722 DLINCLDIR
723 DYNLOADFILE
724 MACHDEP_OBJS
725 TRUE
726 LIBOBJS
727 HAVE_GETHOSTBYNAME_R_6_ARG
728 HAVE_GETHOSTBYNAME_R_5_ARG
729 HAVE_GETHOSTBYNAME_R_3_ARG
730 HAVE_GETHOSTBYNAME_R
731 HAVE_GETHOSTBYNAME
732 LIBM
733 LIBC
734 THREADHEADERS
735 SRCDIRS
736 LTLIBOBJS'
737 ac_subst_files=''
738 ac_precious_vars='build_alias
739 host_alias
740 target_alias
742 CFLAGS
743 LDFLAGS
744 LIBS
745 CPPFLAGS
746 CPP'
749 # Initialize some variables set by options.
750 ac_init_help=
751 ac_init_version=false
752 # The variables have the same names as the options, with
753 # dashes changed to underlines.
754 cache_file=/dev/null
755 exec_prefix=NONE
756 no_create=
757 no_recursion=
758 prefix=NONE
759 program_prefix=NONE
760 program_suffix=NONE
761 program_transform_name=s,x,x,
762 silent=
763 site=
764 srcdir=
765 verbose=
766 x_includes=NONE
767 x_libraries=NONE
769 # Installation directory options.
770 # These are left unexpanded so users can "make install exec_prefix=/foo"
771 # and all the variables that are supposed to be based on exec_prefix
772 # by default will actually change.
773 # Use braces instead of parens because sh, perl, etc. also accept them.
774 # (The list follows the same order as the GNU Coding Standards.)
775 bindir='${exec_prefix}/bin'
776 sbindir='${exec_prefix}/sbin'
777 libexecdir='${exec_prefix}/libexec'
778 datarootdir='${prefix}/share'
779 datadir='${datarootdir}'
780 sysconfdir='${prefix}/etc'
781 sharedstatedir='${prefix}/com'
782 localstatedir='${prefix}/var'
783 includedir='${prefix}/include'
784 oldincludedir='/usr/include'
785 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
786 infodir='${datarootdir}/info'
787 htmldir='${docdir}'
788 dvidir='${docdir}'
789 pdfdir='${docdir}'
790 psdir='${docdir}'
791 libdir='${exec_prefix}/lib'
792 localedir='${datarootdir}/locale'
793 mandir='${datarootdir}/man'
795 ac_prev=
796 ac_dashdash=
797 for ac_option
799 # If the previous option needs an argument, assign it.
800 if test -n "$ac_prev"; then
801 eval $ac_prev=\$ac_option
802 ac_prev=
803 continue
806 case $ac_option in
807 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
808 *) ac_optarg=yes ;;
809 esac
811 # Accept the important Cygnus configure options, so we can diagnose typos.
813 case $ac_dashdash$ac_option in
815 ac_dashdash=yes ;;
817 -bindir | --bindir | --bindi | --bind | --bin | --bi)
818 ac_prev=bindir ;;
819 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
820 bindir=$ac_optarg ;;
822 -build | --build | --buil | --bui | --bu)
823 ac_prev=build_alias ;;
824 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
825 build_alias=$ac_optarg ;;
827 -cache-file | --cache-file | --cache-fil | --cache-fi \
828 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
829 ac_prev=cache_file ;;
830 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
831 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
832 cache_file=$ac_optarg ;;
834 --config-cache | -C)
835 cache_file=config.cache ;;
837 -datadir | --datadir | --datadi | --datad)
838 ac_prev=datadir ;;
839 -datadir=* | --datadir=* | --datadi=* | --datad=*)
840 datadir=$ac_optarg ;;
842 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
843 | --dataroo | --dataro | --datar)
844 ac_prev=datarootdir ;;
845 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
846 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
847 datarootdir=$ac_optarg ;;
849 -disable-* | --disable-*)
850 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
851 # Reject names that are not valid shell variable names.
852 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
853 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
854 { (exit 1); exit 1; }; }
855 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
856 eval enable_$ac_feature=no ;;
858 -docdir | --docdir | --docdi | --doc | --do)
859 ac_prev=docdir ;;
860 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
861 docdir=$ac_optarg ;;
863 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
864 ac_prev=dvidir ;;
865 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
866 dvidir=$ac_optarg ;;
868 -enable-* | --enable-*)
869 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
870 # Reject names that are not valid shell variable names.
871 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
872 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
873 { (exit 1); exit 1; }; }
874 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
875 eval enable_$ac_feature=\$ac_optarg ;;
877 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
878 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
879 | --exec | --exe | --ex)
880 ac_prev=exec_prefix ;;
881 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
882 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
883 | --exec=* | --exe=* | --ex=*)
884 exec_prefix=$ac_optarg ;;
886 -gas | --gas | --ga | --g)
887 # Obsolete; use --with-gas.
888 with_gas=yes ;;
890 -help | --help | --hel | --he | -h)
891 ac_init_help=long ;;
892 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
893 ac_init_help=recursive ;;
894 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
895 ac_init_help=short ;;
897 -host | --host | --hos | --ho)
898 ac_prev=host_alias ;;
899 -host=* | --host=* | --hos=* | --ho=*)
900 host_alias=$ac_optarg ;;
902 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
903 ac_prev=htmldir ;;
904 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
905 | --ht=*)
906 htmldir=$ac_optarg ;;
908 -includedir | --includedir | --includedi | --included | --include \
909 | --includ | --inclu | --incl | --inc)
910 ac_prev=includedir ;;
911 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
912 | --includ=* | --inclu=* | --incl=* | --inc=*)
913 includedir=$ac_optarg ;;
915 -infodir | --infodir | --infodi | --infod | --info | --inf)
916 ac_prev=infodir ;;
917 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
918 infodir=$ac_optarg ;;
920 -libdir | --libdir | --libdi | --libd)
921 ac_prev=libdir ;;
922 -libdir=* | --libdir=* | --libdi=* | --libd=*)
923 libdir=$ac_optarg ;;
925 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
926 | --libexe | --libex | --libe)
927 ac_prev=libexecdir ;;
928 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
929 | --libexe=* | --libex=* | --libe=*)
930 libexecdir=$ac_optarg ;;
932 -localedir | --localedir | --localedi | --localed | --locale)
933 ac_prev=localedir ;;
934 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
935 localedir=$ac_optarg ;;
937 -localstatedir | --localstatedir | --localstatedi | --localstated \
938 | --localstate | --localstat | --localsta | --localst | --locals)
939 ac_prev=localstatedir ;;
940 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
941 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
942 localstatedir=$ac_optarg ;;
944 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
945 ac_prev=mandir ;;
946 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
947 mandir=$ac_optarg ;;
949 -nfp | --nfp | --nf)
950 # Obsolete; use --without-fp.
951 with_fp=no ;;
953 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
954 | --no-cr | --no-c | -n)
955 no_create=yes ;;
957 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
958 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
959 no_recursion=yes ;;
961 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
962 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
963 | --oldin | --oldi | --old | --ol | --o)
964 ac_prev=oldincludedir ;;
965 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
966 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
967 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
968 oldincludedir=$ac_optarg ;;
970 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
971 ac_prev=prefix ;;
972 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
973 prefix=$ac_optarg ;;
975 -program-prefix | --program-prefix | --program-prefi | --program-pref \
976 | --program-pre | --program-pr | --program-p)
977 ac_prev=program_prefix ;;
978 -program-prefix=* | --program-prefix=* | --program-prefi=* \
979 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
980 program_prefix=$ac_optarg ;;
982 -program-suffix | --program-suffix | --program-suffi | --program-suff \
983 | --program-suf | --program-su | --program-s)
984 ac_prev=program_suffix ;;
985 -program-suffix=* | --program-suffix=* | --program-suffi=* \
986 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
987 program_suffix=$ac_optarg ;;
989 -program-transform-name | --program-transform-name \
990 | --program-transform-nam | --program-transform-na \
991 | --program-transform-n | --program-transform- \
992 | --program-transform | --program-transfor \
993 | --program-transfo | --program-transf \
994 | --program-trans | --program-tran \
995 | --progr-tra | --program-tr | --program-t)
996 ac_prev=program_transform_name ;;
997 -program-transform-name=* | --program-transform-name=* \
998 | --program-transform-nam=* | --program-transform-na=* \
999 | --program-transform-n=* | --program-transform-=* \
1000 | --program-transform=* | --program-transfor=* \
1001 | --program-transfo=* | --program-transf=* \
1002 | --program-trans=* | --program-tran=* \
1003 | --progr-tra=* | --program-tr=* | --program-t=*)
1004 program_transform_name=$ac_optarg ;;
1006 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1007 ac_prev=pdfdir ;;
1008 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1009 pdfdir=$ac_optarg ;;
1011 -psdir | --psdir | --psdi | --psd | --ps)
1012 ac_prev=psdir ;;
1013 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1014 psdir=$ac_optarg ;;
1016 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1017 | -silent | --silent | --silen | --sile | --sil)
1018 silent=yes ;;
1020 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1021 ac_prev=sbindir ;;
1022 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1023 | --sbi=* | --sb=*)
1024 sbindir=$ac_optarg ;;
1026 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1027 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1028 | --sharedst | --shareds | --shared | --share | --shar \
1029 | --sha | --sh)
1030 ac_prev=sharedstatedir ;;
1031 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1032 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1033 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1034 | --sha=* | --sh=*)
1035 sharedstatedir=$ac_optarg ;;
1037 -site | --site | --sit)
1038 ac_prev=site ;;
1039 -site=* | --site=* | --sit=*)
1040 site=$ac_optarg ;;
1042 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1043 ac_prev=srcdir ;;
1044 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1045 srcdir=$ac_optarg ;;
1047 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1048 | --syscon | --sysco | --sysc | --sys | --sy)
1049 ac_prev=sysconfdir ;;
1050 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1051 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1052 sysconfdir=$ac_optarg ;;
1054 -target | --target | --targe | --targ | --tar | --ta | --t)
1055 ac_prev=target_alias ;;
1056 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1057 target_alias=$ac_optarg ;;
1059 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1060 verbose=yes ;;
1062 -version | --version | --versio | --versi | --vers | -V)
1063 ac_init_version=: ;;
1065 -with-* | --with-*)
1066 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1067 # Reject names that are not valid shell variable names.
1068 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1069 { echo "$as_me: error: invalid package name: $ac_package" >&2
1070 { (exit 1); exit 1; }; }
1071 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1072 eval with_$ac_package=\$ac_optarg ;;
1074 -without-* | --without-*)
1075 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1076 # Reject names that are not valid shell variable names.
1077 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1078 { echo "$as_me: error: invalid package name: $ac_package" >&2
1079 { (exit 1); exit 1; }; }
1080 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1081 eval with_$ac_package=no ;;
1083 --x)
1084 # Obsolete; use --with-x.
1085 with_x=yes ;;
1087 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1088 | --x-incl | --x-inc | --x-in | --x-i)
1089 ac_prev=x_includes ;;
1090 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1091 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1092 x_includes=$ac_optarg ;;
1094 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1095 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1096 ac_prev=x_libraries ;;
1097 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1098 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1099 x_libraries=$ac_optarg ;;
1101 -*) { echo "$as_me: error: unrecognized option: $ac_option
1102 Try \`$0 --help' for more information." >&2
1103 { (exit 1); exit 1; }; }
1106 *=*)
1107 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1108 # Reject names that are not valid shell variable names.
1109 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1110 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1111 { (exit 1); exit 1; }; }
1112 eval $ac_envvar=\$ac_optarg
1113 export $ac_envvar ;;
1116 # FIXME: should be removed in autoconf 3.0.
1117 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1118 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1119 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1120 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1123 esac
1124 done
1126 if test -n "$ac_prev"; then
1127 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1128 { echo "$as_me: error: missing argument to $ac_option" >&2
1129 { (exit 1); exit 1; }; }
1132 # Be sure to have absolute directory names.
1133 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1134 datadir sysconfdir sharedstatedir localstatedir includedir \
1135 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1136 libdir localedir mandir
1138 eval ac_val=\$$ac_var
1139 case $ac_val in
1140 [\\/$]* | ?:[\\/]* ) continue;;
1141 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1142 esac
1143 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1144 { (exit 1); exit 1; }; }
1145 done
1147 # There might be people who depend on the old broken behavior: `$host'
1148 # used to hold the argument of --host etc.
1149 # FIXME: To remove some day.
1150 build=$build_alias
1151 host=$host_alias
1152 target=$target_alias
1154 # FIXME: To remove some day.
1155 if test "x$host_alias" != x; then
1156 if test "x$build_alias" = x; then
1157 cross_compiling=maybe
1158 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1159 If a cross compiler is detected then cross compile mode will be used." >&2
1160 elif test "x$build_alias" != "x$host_alias"; then
1161 cross_compiling=yes
1165 ac_tool_prefix=
1166 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1168 test "$silent" = yes && exec 6>/dev/null
1171 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1172 ac_ls_di=`ls -di .` &&
1173 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1174 { echo "$as_me: error: Working directory cannot be determined" >&2
1175 { (exit 1); exit 1; }; }
1176 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1177 { echo "$as_me: error: pwd does not report name of working directory" >&2
1178 { (exit 1); exit 1; }; }
1181 # Find the source files, if location was not specified.
1182 if test -z "$srcdir"; then
1183 ac_srcdir_defaulted=yes
1184 # Try the directory containing this script, then the parent directory.
1185 ac_confdir=`$as_dirname -- "$0" ||
1186 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1187 X"$0" : 'X\(//\)[^/]' \| \
1188 X"$0" : 'X\(//\)$' \| \
1189 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1190 echo X"$0" |
1191 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1192 s//\1/
1195 /^X\(\/\/\)[^/].*/{
1196 s//\1/
1199 /^X\(\/\/\)$/{
1200 s//\1/
1203 /^X\(\/\).*/{
1204 s//\1/
1207 s/.*/./; q'`
1208 srcdir=$ac_confdir
1209 if test ! -r "$srcdir/$ac_unique_file"; then
1210 srcdir=..
1212 else
1213 ac_srcdir_defaulted=no
1215 if test ! -r "$srcdir/$ac_unique_file"; then
1216 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1217 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1218 { (exit 1); exit 1; }; }
1220 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1221 ac_abs_confdir=`(
1222 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1223 { (exit 1); exit 1; }; }
1224 pwd)`
1225 # When building in place, set srcdir=.
1226 if test "$ac_abs_confdir" = "$ac_pwd"; then
1227 srcdir=.
1229 # Remove unnecessary trailing slashes from srcdir.
1230 # Double slashes in file names in object file debugging info
1231 # mess up M-x gdb in Emacs.
1232 case $srcdir in
1233 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1234 esac
1235 for ac_var in $ac_precious_vars; do
1236 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1237 eval ac_env_${ac_var}_value=\$${ac_var}
1238 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1239 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1240 done
1243 # Report the --help message.
1245 if test "$ac_init_help" = "long"; then
1246 # Omit some internal or obsolete options to make the list less imposing.
1247 # This message is too long to be a string in the A/UX 3.1 sh.
1248 cat <<_ACEOF
1249 \`configure' configures python 3.1 to adapt to many kinds of systems.
1251 Usage: $0 [OPTION]... [VAR=VALUE]...
1253 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1254 VAR=VALUE. See below for descriptions of some of the useful variables.
1256 Defaults for the options are specified in brackets.
1258 Configuration:
1259 -h, --help display this help and exit
1260 --help=short display options specific to this package
1261 --help=recursive display the short help of all the included packages
1262 -V, --version display version information and exit
1263 -q, --quiet, --silent do not print \`checking...' messages
1264 --cache-file=FILE cache test results in FILE [disabled]
1265 -C, --config-cache alias for \`--cache-file=config.cache'
1266 -n, --no-create do not create output files
1267 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1269 Installation directories:
1270 --prefix=PREFIX install architecture-independent files in PREFIX
1271 [$ac_default_prefix]
1272 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1273 [PREFIX]
1275 By default, \`make install' will install all the files in
1276 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1277 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1278 for instance \`--prefix=\$HOME'.
1280 For better control, use the options below.
1282 Fine tuning of the installation directories:
1283 --bindir=DIR user executables [EPREFIX/bin]
1284 --sbindir=DIR system admin executables [EPREFIX/sbin]
1285 --libexecdir=DIR program executables [EPREFIX/libexec]
1286 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1287 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1288 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1289 --libdir=DIR object code libraries [EPREFIX/lib]
1290 --includedir=DIR C header files [PREFIX/include]
1291 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1292 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1293 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1294 --infodir=DIR info documentation [DATAROOTDIR/info]
1295 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1296 --mandir=DIR man documentation [DATAROOTDIR/man]
1297 --docdir=DIR documentation root [DATAROOTDIR/doc/python]
1298 --htmldir=DIR html documentation [DOCDIR]
1299 --dvidir=DIR dvi documentation [DOCDIR]
1300 --pdfdir=DIR pdf documentation [DOCDIR]
1301 --psdir=DIR ps documentation [DOCDIR]
1302 _ACEOF
1304 cat <<\_ACEOF
1305 _ACEOF
1308 if test -n "$ac_init_help"; then
1309 case $ac_init_help in
1310 short | recursive ) echo "Configuration of python 3.1:";;
1311 esac
1312 cat <<\_ACEOF
1314 Optional Features:
1315 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1316 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1317 --enable-universalsdk[=SDKDIR]
1318 Build against Mac OS X 10.4u SDK (ppc/i386)
1319 --enable-framework[=INSTALLDIR]
1320 Build (MacOSX|Darwin) framework
1321 --enable-shared disable/enable building shared python library
1322 --enable-profiling enable C-level code profiling
1323 --enable-ipv6 Enable ipv6 (with ipv4) support
1324 --disable-ipv6 Disable ipv6 support
1325 --enable-big-digits[=BITS]
1326 use big digits for Python longs [BITS=30]
1328 Optional Packages:
1329 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1330 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1331 --with-universal-archs=ARCH
1332 select architectures for universal build ("32-bit",
1333 "64-bit", "3-way", "intel" or "all")
1334 --with-framework-name=FRAMEWORK
1335 specify an alternate name of the framework built
1336 with --enable-framework
1337 --without-gcc never use gcc
1338 --with-cxx-main=<compiler>
1339 compile main() and link python executable with C++
1340 compiler
1341 --with-suffix=.exe set executable suffix
1342 --with-pydebug build with Py_DEBUG defined
1343 --with-libs='lib1 ...' link against additional libs
1344 --with-system-ffi build _ctypes module using an installed ffi library
1345 --with-dbmliborder=db1:db2:...
1346 order to check db backends for dbm. Valid value is a
1347 colon separated string with the backend names
1348 `ndbm', `gdbm' and `bdb'.
1349 --with-signal-module disable/enable signal module
1350 --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries
1351 --with(out)-threads[=DIRECTORY]
1352 disable/enable thread support
1353 --with(out)-thread[=DIRECTORY]
1354 deprecated; use --with(out)-threads
1355 --with-pth use GNU pth threading libraries
1356 --with(out)-doc-strings disable/enable documentation strings
1357 --with(out)-tsc enable/disable timestamp counter profile
1358 --with(out)-pymalloc disable/enable specialized mallocs
1359 --with-wctype-functions use wctype.h functions
1360 --with-fpectl enable SIGFPE catching
1361 --with-libm=STRING math library
1362 --with-libc=STRING C library
1363 --with-wide-unicode Use 4-byte Unicode characters (default is 2 bytes)
1364 --with-computed-gotos Use computed gotos / threaded dispatch in evaluation
1365 loop (not available on all compilers)
1367 Some influential environment variables:
1368 CC C compiler command
1369 CFLAGS C compiler flags
1370 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1371 nonstandard directory <lib dir>
1372 LIBS libraries to pass to the linker, e.g. -l<library>
1373 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1374 you have headers in a nonstandard directory <include dir>
1375 CPP C preprocessor
1377 Use these variables to override the choices made by `configure' or to help
1378 it to find libraries and programs with nonstandard names/locations.
1380 Report bugs to <http://bugs.python.org/>.
1381 _ACEOF
1382 ac_status=$?
1385 if test "$ac_init_help" = "recursive"; then
1386 # If there are subdirs, report their specific --help.
1387 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1388 test -d "$ac_dir" || continue
1389 ac_builddir=.
1391 case "$ac_dir" in
1392 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1394 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1395 # A ".." for each directory in $ac_dir_suffix.
1396 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1397 case $ac_top_builddir_sub in
1398 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1399 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1400 esac ;;
1401 esac
1402 ac_abs_top_builddir=$ac_pwd
1403 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1404 # for backward compatibility:
1405 ac_top_builddir=$ac_top_build_prefix
1407 case $srcdir in
1408 .) # We are building in place.
1409 ac_srcdir=.
1410 ac_top_srcdir=$ac_top_builddir_sub
1411 ac_abs_top_srcdir=$ac_pwd ;;
1412 [\\/]* | ?:[\\/]* ) # Absolute name.
1413 ac_srcdir=$srcdir$ac_dir_suffix;
1414 ac_top_srcdir=$srcdir
1415 ac_abs_top_srcdir=$srcdir ;;
1416 *) # Relative name.
1417 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1418 ac_top_srcdir=$ac_top_build_prefix$srcdir
1419 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1420 esac
1421 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1423 cd "$ac_dir" || { ac_status=$?; continue; }
1424 # Check for guested configure.
1425 if test -f "$ac_srcdir/configure.gnu"; then
1426 echo &&
1427 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1428 elif test -f "$ac_srcdir/configure"; then
1429 echo &&
1430 $SHELL "$ac_srcdir/configure" --help=recursive
1431 else
1432 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1433 fi || ac_status=$?
1434 cd "$ac_pwd" || { ac_status=$?; break; }
1435 done
1438 test -n "$ac_init_help" && exit $ac_status
1439 if $ac_init_version; then
1440 cat <<\_ACEOF
1441 python configure 3.1
1442 generated by GNU Autoconf 2.61
1444 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1445 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1446 This configure script is free software; the Free Software Foundation
1447 gives unlimited permission to copy, distribute and modify it.
1448 _ACEOF
1449 exit
1451 cat >config.log <<_ACEOF
1452 This file contains any messages produced by compilers while
1453 running configure, to aid debugging if configure makes a mistake.
1455 It was created by python $as_me 3.1, which was
1456 generated by GNU Autoconf 2.61. Invocation command line was
1458 $ $0 $@
1460 _ACEOF
1461 exec 5>>config.log
1463 cat <<_ASUNAME
1464 ## --------- ##
1465 ## Platform. ##
1466 ## --------- ##
1468 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1469 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1470 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1471 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1472 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1474 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1475 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1477 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1478 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1479 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1480 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1481 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1482 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1483 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1485 _ASUNAME
1487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1488 for as_dir in $PATH
1490 IFS=$as_save_IFS
1491 test -z "$as_dir" && as_dir=.
1492 echo "PATH: $as_dir"
1493 done
1494 IFS=$as_save_IFS
1496 } >&5
1498 cat >&5 <<_ACEOF
1501 ## ----------- ##
1502 ## Core tests. ##
1503 ## ----------- ##
1505 _ACEOF
1508 # Keep a trace of the command line.
1509 # Strip out --no-create and --no-recursion so they do not pile up.
1510 # Strip out --silent because we don't want to record it for future runs.
1511 # Also quote any args containing shell meta-characters.
1512 # Make two passes to allow for proper duplicate-argument suppression.
1513 ac_configure_args=
1514 ac_configure_args0=
1515 ac_configure_args1=
1516 ac_must_keep_next=false
1517 for ac_pass in 1 2
1519 for ac_arg
1521 case $ac_arg in
1522 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1523 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1524 | -silent | --silent | --silen | --sile | --sil)
1525 continue ;;
1526 *\'*)
1527 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1528 esac
1529 case $ac_pass in
1530 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1532 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1533 if test $ac_must_keep_next = true; then
1534 ac_must_keep_next=false # Got value, back to normal.
1535 else
1536 case $ac_arg in
1537 *=* | --config-cache | -C | -disable-* | --disable-* \
1538 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1539 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1540 | -with-* | --with-* | -without-* | --without-* | --x)
1541 case "$ac_configure_args0 " in
1542 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1543 esac
1545 -* ) ac_must_keep_next=true ;;
1546 esac
1548 ac_configure_args="$ac_configure_args '$ac_arg'"
1550 esac
1551 done
1552 done
1553 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1554 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1556 # When interrupted or exit'd, cleanup temporary files, and complete
1557 # config.log. We remove comments because anyway the quotes in there
1558 # would cause problems or look ugly.
1559 # WARNING: Use '\'' to represent an apostrophe within the trap.
1560 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1561 trap 'exit_status=$?
1562 # Save into config.log some information that might help in debugging.
1564 echo
1566 cat <<\_ASBOX
1567 ## ---------------- ##
1568 ## Cache variables. ##
1569 ## ---------------- ##
1570 _ASBOX
1571 echo
1572 # The following way of writing the cache mishandles newlines in values,
1574 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1575 eval ac_val=\$$ac_var
1576 case $ac_val in #(
1577 *${as_nl}*)
1578 case $ac_var in #(
1579 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1580 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1581 esac
1582 case $ac_var in #(
1583 _ | IFS | as_nl) ;; #(
1584 *) $as_unset $ac_var ;;
1585 esac ;;
1586 esac
1587 done
1588 (set) 2>&1 |
1589 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1590 *${as_nl}ac_space=\ *)
1591 sed -n \
1592 "s/'\''/'\''\\\\'\'''\''/g;
1593 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1594 ;; #(
1596 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1598 esac |
1599 sort
1601 echo
1603 cat <<\_ASBOX
1604 ## ----------------- ##
1605 ## Output variables. ##
1606 ## ----------------- ##
1607 _ASBOX
1608 echo
1609 for ac_var in $ac_subst_vars
1611 eval ac_val=\$$ac_var
1612 case $ac_val in
1613 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1614 esac
1615 echo "$ac_var='\''$ac_val'\''"
1616 done | sort
1617 echo
1619 if test -n "$ac_subst_files"; then
1620 cat <<\_ASBOX
1621 ## ------------------- ##
1622 ## File substitutions. ##
1623 ## ------------------- ##
1624 _ASBOX
1625 echo
1626 for ac_var in $ac_subst_files
1628 eval ac_val=\$$ac_var
1629 case $ac_val in
1630 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1631 esac
1632 echo "$ac_var='\''$ac_val'\''"
1633 done | sort
1634 echo
1637 if test -s confdefs.h; then
1638 cat <<\_ASBOX
1639 ## ----------- ##
1640 ## confdefs.h. ##
1641 ## ----------- ##
1642 _ASBOX
1643 echo
1644 cat confdefs.h
1645 echo
1647 test "$ac_signal" != 0 &&
1648 echo "$as_me: caught signal $ac_signal"
1649 echo "$as_me: exit $exit_status"
1650 } >&5
1651 rm -f core *.core core.conftest.* &&
1652 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1653 exit $exit_status
1655 for ac_signal in 1 2 13 15; do
1656 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1657 done
1658 ac_signal=0
1660 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1661 rm -f -r conftest* confdefs.h
1663 # Predefined preprocessor variables.
1665 cat >>confdefs.h <<_ACEOF
1666 #define PACKAGE_NAME "$PACKAGE_NAME"
1667 _ACEOF
1670 cat >>confdefs.h <<_ACEOF
1671 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1672 _ACEOF
1675 cat >>confdefs.h <<_ACEOF
1676 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1677 _ACEOF
1680 cat >>confdefs.h <<_ACEOF
1681 #define PACKAGE_STRING "$PACKAGE_STRING"
1682 _ACEOF
1685 cat >>confdefs.h <<_ACEOF
1686 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1687 _ACEOF
1690 # Let the site file select an alternate cache file if it wants to.
1691 # Prefer explicitly selected file to automatically selected ones.
1692 if test -n "$CONFIG_SITE"; then
1693 set x "$CONFIG_SITE"
1694 elif test "x$prefix" != xNONE; then
1695 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1696 else
1697 set x "$ac_default_prefix/share/config.site" \
1698 "$ac_default_prefix/etc/config.site"
1700 shift
1701 for ac_site_file
1703 if test -r "$ac_site_file"; then
1704 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1705 echo "$as_me: loading site script $ac_site_file" >&6;}
1706 sed 's/^/| /' "$ac_site_file" >&5
1707 . "$ac_site_file"
1709 done
1711 if test -r "$cache_file"; then
1712 # Some versions of bash will fail to source /dev/null (special
1713 # files actually), so we avoid doing that.
1714 if test -f "$cache_file"; then
1715 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1716 echo "$as_me: loading cache $cache_file" >&6;}
1717 case $cache_file in
1718 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1719 *) . "./$cache_file";;
1720 esac
1722 else
1723 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1724 echo "$as_me: creating cache $cache_file" >&6;}
1725 >$cache_file
1728 # Check that the precious variables saved in the cache have kept the same
1729 # value.
1730 ac_cache_corrupted=false
1731 for ac_var in $ac_precious_vars; do
1732 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1733 eval ac_new_set=\$ac_env_${ac_var}_set
1734 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1735 eval ac_new_val=\$ac_env_${ac_var}_value
1736 case $ac_old_set,$ac_new_set in
1737 set,)
1738 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1739 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1740 ac_cache_corrupted=: ;;
1741 ,set)
1742 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1743 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1744 ac_cache_corrupted=: ;;
1745 ,);;
1747 if test "x$ac_old_val" != "x$ac_new_val"; then
1748 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1749 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1750 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1751 echo "$as_me: former value: $ac_old_val" >&2;}
1752 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1753 echo "$as_me: current value: $ac_new_val" >&2;}
1754 ac_cache_corrupted=:
1755 fi;;
1756 esac
1757 # Pass precious variables to config.status.
1758 if test "$ac_new_set" = set; then
1759 case $ac_new_val in
1760 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1761 *) ac_arg=$ac_var=$ac_new_val ;;
1762 esac
1763 case " $ac_configure_args " in
1764 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1765 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1766 esac
1768 done
1769 if $ac_cache_corrupted; then
1770 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1771 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1772 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1773 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1774 { (exit 1); exit 1; }; }
1801 ac_ext=c
1802 ac_cpp='$CPP $CPPFLAGS'
1803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1809 ac_config_headers="$ac_config_headers pyconfig.h"
1813 if test "$prefix" != "/"; then
1814 prefix=`echo "$prefix" | sed -e 's/\/$//g'`
1822 # We don't use PACKAGE_ variables, and they cause conflicts
1823 # with other autoconf-based packages that include Python.h
1824 grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
1825 rm confdefs.h
1826 mv confdefs.h.new confdefs.h
1829 VERSION=3.1
1832 SOVERSION=1.0
1834 # The later defininition of _XOPEN_SOURCE disables certain features
1835 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
1837 cat >>confdefs.h <<\_ACEOF
1838 #define _GNU_SOURCE 1
1839 _ACEOF
1842 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1843 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
1844 # them.
1846 cat >>confdefs.h <<\_ACEOF
1847 #define _NETBSD_SOURCE 1
1848 _ACEOF
1851 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1852 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
1853 # them.
1855 cat >>confdefs.h <<\_ACEOF
1856 #define __BSD_VISIBLE 1
1857 _ACEOF
1860 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1861 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
1863 cat >>confdefs.h <<\_ACEOF
1864 #define _BSD_TYPES 1
1865 _ACEOF
1868 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1869 # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable
1870 # them.
1872 cat >>confdefs.h <<\_ACEOF
1873 #define _DARWIN_C_SOURCE 1
1874 _ACEOF
1878 define_xopen_source=yes
1880 # Arguments passed to configure.
1882 CONFIG_ARGS="$ac_configure_args"
1884 # Check whether --enable-universalsdk was given.
1885 if test "${enable_universalsdk+set}" = set; then
1886 enableval=$enable_universalsdk;
1887 case $enableval in
1888 yes)
1889 enableval=/Developer/SDKs/MacOSX10.4u.sdk
1891 esac
1892 case $enableval in
1894 UNIVERSALSDK=
1895 enable_universalsdk=
1898 UNIVERSALSDK=$enableval
1900 esac
1902 else
1904 UNIVERSALSDK=
1905 enable_universalsdk=
1913 UNIVERSAL_ARCHS="32-bit"
1914 { echo "$as_me:$LINENO: checking for --with-universal-archs" >&5
1915 echo $ECHO_N "checking for --with-universal-archs... $ECHO_C" >&6; }
1917 # Check whether --with-universal-archs was given.
1918 if test "${with_universal_archs+set}" = set; then
1919 withval=$with_universal_archs;
1920 { echo "$as_me:$LINENO: result: $withval" >&5
1921 echo "${ECHO_T}$withval" >&6; }
1922 UNIVERSAL_ARCHS="$withval"
1924 else
1926 { echo "$as_me:$LINENO: result: 32-bit" >&5
1927 echo "${ECHO_T}32-bit" >&6; }
1935 # Check whether --with-framework-name was given.
1936 if test "${with_framework_name+set}" = set; then
1937 withval=$with_framework_name;
1938 PYTHONFRAMEWORK=${withval}
1939 PYTHONFRAMEWORKDIR=${withval}.framework
1940 PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'`
1942 else
1944 PYTHONFRAMEWORK=Python
1945 PYTHONFRAMEWORKDIR=Python.framework
1946 PYTHONFRAMEWORKIDENTIFIER=org.python.python
1950 # Check whether --enable-framework was given.
1951 if test "${enable_framework+set}" = set; then
1952 enableval=$enable_framework;
1953 case $enableval in
1954 yes)
1955 enableval=/Library/Frameworks
1956 esac
1957 case $enableval in
1959 PYTHONFRAMEWORK=
1960 PYTHONFRAMEWORKDIR=no-framework
1961 PYTHONFRAMEWORKPREFIX=
1962 PYTHONFRAMEWORKINSTALLDIR=
1963 FRAMEWORKINSTALLFIRST=
1964 FRAMEWORKINSTALLLAST=
1965 FRAMEWORKALTINSTALLFIRST=
1966 FRAMEWORKALTINSTALLLAST=
1967 if test "x${prefix}" = "xNONE"; then
1968 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1969 else
1970 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1972 enable_framework=
1975 PYTHONFRAMEWORKPREFIX=$enableval
1976 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
1977 FRAMEWORKINSTALLFIRST="frameworkinstallstructure"
1978 FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure "
1979 if test "$UNIVERSAL_ARCHS" = "all"
1980 then
1981 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkinstallunixtools4way"
1982 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkaltinstallunixtools4way"
1983 else
1984 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools"
1985 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
1988 if test "x${prefix}" = "xNONE" ; then
1989 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1990 else
1991 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1993 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
1995 # Add files for Mac specific code to the list of output
1996 # files:
1997 ac_config_files="$ac_config_files Mac/Makefile"
1999 ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile"
2001 ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist"
2003 ac_config_files="$ac_config_files Mac/Resources/app/Info.plist"
2005 esac
2007 else
2009 PYTHONFRAMEWORK=
2010 PYTHONFRAMEWORKDIR=no-framework
2011 PYTHONFRAMEWORKPREFIX=
2012 PYTHONFRAMEWORKINSTALLDIR=
2013 FRAMEWORKINSTALLFIRST=
2014 FRAMEWORKINSTALLLAST=
2015 FRAMEWORKALTINSTALLFIRST=
2016 FRAMEWORKALTINSTALLLAST=
2017 if test "x${prefix}" = "xNONE" ; then
2018 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
2019 else
2020 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
2022 enable_framework=
2024 if test "$UNIVERSAL_ARCHS" = "all"
2025 then
2026 FRAMEWORKINSTALLLAST=update4wayuniversal
2027 FRAMEWORKALTINSTALLLAST=update4wayuniversal
2043 ##AC_ARG_WITH(dyld,
2044 ## AC_HELP_STRING(--with-dyld,
2045 ## Use (OpenStep|Rhapsody) dynamic linker))
2047 # Set name for machine-dependent library files
2049 { echo "$as_me:$LINENO: checking MACHDEP" >&5
2050 echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6; }
2051 if test -z "$MACHDEP"
2052 then
2053 ac_sys_system=`uname -s`
2054 if test "$ac_sys_system" = "AIX" \
2055 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
2056 ac_sys_release=`uname -v`
2057 else
2058 ac_sys_release=`uname -r`
2060 ac_md_system=`echo $ac_sys_system |
2061 tr -d '/ ' | tr '[A-Z]' '[a-z]'`
2062 ac_md_release=`echo $ac_sys_release |
2063 tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'`
2064 MACHDEP="$ac_md_system$ac_md_release"
2066 case $MACHDEP in
2067 cygwin*) MACHDEP="cygwin";;
2068 darwin*) MACHDEP="darwin";;
2069 atheos*) MACHDEP="atheos";;
2070 irix646) MACHDEP="irix6";;
2071 '') MACHDEP="unknown";;
2072 esac
2075 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
2076 # disable features if it is defined, without any means to access these
2077 # features as extensions. For these systems, we skip the definition of
2078 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
2079 # some feature, make sure there is no alternative way to access this
2080 # feature. Also, when using wildcards, make sure you have verified the
2081 # need for not defining _XOPEN_SOURCE on all systems matching the
2082 # wildcard, and that the wildcard does not include future systems
2083 # (which may remove their limitations).
2084 case $ac_sys_system/$ac_sys_release in
2085 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
2086 # even though select is a POSIX function. Reported by J. Ribbens.
2087 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
2088 OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0123])
2089 define_xopen_source=no
2090 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
2091 # also defined. This can be overridden by defining _BSD_SOURCE
2092 # As this has a different meaning on Linux, only define it on OpenBSD
2094 cat >>confdefs.h <<\_ACEOF
2095 #define _BSD_SOURCE 1
2096 _ACEOF
2099 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
2100 # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
2101 # Marc Recht
2102 NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S])
2103 define_xopen_source=no;;
2104 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
2105 # of union __?sigval. Reported by Stuart Bishop.
2106 SunOS/5.6)
2107 define_xopen_source=no;;
2108 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
2109 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
2110 # Reconfirmed for 7.1.4 by Martin v. Loewis.
2111 OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
2112 define_xopen_source=no;;
2113 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
2114 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
2115 SCO_SV/3.2)
2116 define_xopen_source=no;;
2117 # On FreeBSD 4, the math functions C89 does not cover are never defined
2118 # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them.
2119 FreeBSD/4.*)
2120 define_xopen_source=no;;
2121 # On MacOS X 10.2, a bug in ncurses.h means that it craps out if
2122 # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which
2123 # identifies itself as Darwin/7.*
2124 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2125 # disables platform specific features beyond repair.
2126 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2127 # has no effect, don't bother defining them
2128 Darwin/[6789].*)
2129 define_xopen_source=no;;
2130 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
2131 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
2132 # or has another value. By not (re)defining it, the defaults come in place.
2133 AIX/4)
2134 define_xopen_source=no;;
2135 AIX/5)
2136 if test `uname -r` -eq 1; then
2137 define_xopen_source=no
2140 # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from
2141 # defining NI_NUMERICHOST.
2142 QNX/6.3.2)
2143 define_xopen_source=no
2146 esac
2148 if test $define_xopen_source = yes
2149 then
2150 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
2151 # defined precisely as g++ defines it
2152 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
2153 # compiler
2154 case $ac_sys_system/$ac_sys_release in
2155 SunOS/5.8|SunOS/5.9|SunOS/5.10)
2157 cat >>confdefs.h <<\_ACEOF
2158 #define _XOPEN_SOURCE 500
2159 _ACEOF
2164 cat >>confdefs.h <<\_ACEOF
2165 #define _XOPEN_SOURCE 600
2166 _ACEOF
2169 esac
2171 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
2172 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
2173 # several APIs are not declared. Since this is also needed in some
2174 # cases for HP-UX, we define it globally.
2175 # except for Solaris 10, where it must not be defined,
2176 # as it implies XPG4.2
2177 case $ac_sys_system/$ac_sys_release in
2178 SunOS/5.10)
2182 cat >>confdefs.h <<\_ACEOF
2183 #define _XOPEN_SOURCE_EXTENDED 1
2184 _ACEOF
2187 esac
2190 cat >>confdefs.h <<\_ACEOF
2191 #define _POSIX_C_SOURCE 200112L
2192 _ACEOF
2198 # SGI compilers allow the specification of the both the ABI and the
2199 # ISA on the command line. Depending on the values of these switches,
2200 # different and often incompatable code will be generated.
2202 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
2203 # thus supply support for various ABI/ISA combinations. The MACHDEP
2204 # variable is also adjusted.
2207 if test ! -z "$SGI_ABI"
2208 then
2209 CC="cc $SGI_ABI"
2210 LDFLAGS="$SGI_ABI $LDFLAGS"
2211 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
2213 { echo "$as_me:$LINENO: result: $MACHDEP" >&5
2214 echo "${ECHO_T}$MACHDEP" >&6; }
2216 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
2217 # it may influence the way we can build extensions, so distutils
2218 # needs to check it
2221 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
2222 EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
2224 { echo "$as_me:$LINENO: checking machine type as reported by uname -m" >&5
2225 echo $ECHO_N "checking machine type as reported by uname -m... $ECHO_C" >&6; }
2226 ac_sys_machine=`uname -m`
2227 { echo "$as_me:$LINENO: result: $ac_sys_machine" >&5
2228 echo "${ECHO_T}$ac_sys_machine" >&6; }
2230 # checks for alternative programs
2232 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
2233 # for debug/optimization stuff. BASECFLAGS is for flags that are required
2234 # just to get things to compile and link. Users are free to override OPT
2235 # when running configure or make. The build should not break if they do.
2236 # BASECFLAGS should generally not be messed with, however.
2238 # XXX shouldn't some/most/all of this code be merged with the stuff later
2239 # on that fiddles with OPT and BASECFLAGS?
2240 { echo "$as_me:$LINENO: checking for --without-gcc" >&5
2241 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6; }
2243 # Check whether --with-gcc was given.
2244 if test "${with_gcc+set}" = set; then
2245 withval=$with_gcc;
2246 case $withval in
2247 no) CC=${CC:-cc}
2248 without_gcc=yes;;
2249 yes) CC=gcc
2250 without_gcc=no;;
2251 *) CC=$withval
2252 without_gcc=$withval;;
2253 esac
2254 else
2256 case $ac_sys_system in
2257 AIX*) CC=cc_r
2258 without_gcc=;;
2259 *) without_gcc=no;;
2260 esac
2263 { echo "$as_me:$LINENO: result: $without_gcc" >&5
2264 echo "${ECHO_T}$without_gcc" >&6; }
2266 # If the user switches compilers, we can't believe the cache
2267 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
2268 then
2269 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
2270 (it is also a good idea to do 'make clean' before compiling)" >&5
2271 echo "$as_me: error: cached CC is different -- throw away $cache_file
2272 (it is also a good idea to do 'make clean' before compiling)" >&2;}
2273 { (exit 1); exit 1; }; }
2276 ac_ext=c
2277 ac_cpp='$CPP $CPPFLAGS'
2278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2281 if test -n "$ac_tool_prefix"; then
2282 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2283 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2284 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2286 if test "${ac_cv_prog_CC+set}" = set; then
2287 echo $ECHO_N "(cached) $ECHO_C" >&6
2288 else
2289 if test -n "$CC"; then
2290 ac_cv_prog_CC="$CC" # Let the user override the test.
2291 else
2292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2293 for as_dir in $PATH
2295 IFS=$as_save_IFS
2296 test -z "$as_dir" && as_dir=.
2297 for ac_exec_ext in '' $ac_executable_extensions; do
2298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2299 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2301 break 2
2303 done
2304 done
2305 IFS=$as_save_IFS
2309 CC=$ac_cv_prog_CC
2310 if test -n "$CC"; then
2311 { echo "$as_me:$LINENO: result: $CC" >&5
2312 echo "${ECHO_T}$CC" >&6; }
2313 else
2314 { echo "$as_me:$LINENO: result: no" >&5
2315 echo "${ECHO_T}no" >&6; }
2320 if test -z "$ac_cv_prog_CC"; then
2321 ac_ct_CC=$CC
2322 # Extract the first word of "gcc", so it can be a program name with args.
2323 set dummy gcc; ac_word=$2
2324 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2326 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2327 echo $ECHO_N "(cached) $ECHO_C" >&6
2328 else
2329 if test -n "$ac_ct_CC"; then
2330 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2331 else
2332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2333 for as_dir in $PATH
2335 IFS=$as_save_IFS
2336 test -z "$as_dir" && as_dir=.
2337 for ac_exec_ext in '' $ac_executable_extensions; do
2338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2339 ac_cv_prog_ac_ct_CC="gcc"
2340 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2341 break 2
2343 done
2344 done
2345 IFS=$as_save_IFS
2349 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2350 if test -n "$ac_ct_CC"; then
2351 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2352 echo "${ECHO_T}$ac_ct_CC" >&6; }
2353 else
2354 { echo "$as_me:$LINENO: result: no" >&5
2355 echo "${ECHO_T}no" >&6; }
2358 if test "x$ac_ct_CC" = x; then
2359 CC=""
2360 else
2361 case $cross_compiling:$ac_tool_warned in
2362 yes:)
2363 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2364 whose name does not start with the host triplet. If you think this
2365 configuration is useful to you, please write to autoconf@gnu.org." >&5
2366 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2367 whose name does not start with the host triplet. If you think this
2368 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2369 ac_tool_warned=yes ;;
2370 esac
2371 CC=$ac_ct_CC
2373 else
2374 CC="$ac_cv_prog_CC"
2377 if test -z "$CC"; then
2378 if test -n "$ac_tool_prefix"; then
2379 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2380 set dummy ${ac_tool_prefix}cc; 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_CC+set}" = set; then
2384 echo $ECHO_N "(cached) $ECHO_C" >&6
2385 else
2386 if test -n "$CC"; then
2387 ac_cv_prog_CC="$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_CC="${ac_tool_prefix}cc"
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 CC=$ac_cv_prog_CC
2407 if test -n "$CC"; then
2408 { echo "$as_me:$LINENO: result: $CC" >&5
2409 echo "${ECHO_T}$CC" >&6; }
2410 else
2411 { echo "$as_me:$LINENO: result: no" >&5
2412 echo "${ECHO_T}no" >&6; }
2418 if test -z "$CC"; then
2419 # Extract the first word of "cc", so it can be a program name with args.
2420 set dummy cc; ac_word=$2
2421 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2423 if test "${ac_cv_prog_CC+set}" = set; then
2424 echo $ECHO_N "(cached) $ECHO_C" >&6
2425 else
2426 if test -n "$CC"; then
2427 ac_cv_prog_CC="$CC" # Let the user override the test.
2428 else
2429 ac_prog_rejected=no
2430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2431 for as_dir in $PATH
2433 IFS=$as_save_IFS
2434 test -z "$as_dir" && as_dir=.
2435 for ac_exec_ext in '' $ac_executable_extensions; do
2436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2437 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2438 ac_prog_rejected=yes
2439 continue
2441 ac_cv_prog_CC="cc"
2442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2443 break 2
2445 done
2446 done
2447 IFS=$as_save_IFS
2449 if test $ac_prog_rejected = yes; then
2450 # We found a bogon in the path, so make sure we never use it.
2451 set dummy $ac_cv_prog_CC
2452 shift
2453 if test $# != 0; then
2454 # We chose a different compiler from the bogus one.
2455 # However, it has the same basename, so the bogon will be chosen
2456 # first if we set CC to just the basename; use the full file name.
2457 shift
2458 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
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; }
2474 if test -z "$CC"; then
2475 if test -n "$ac_tool_prefix"; then
2476 for ac_prog in cl.exe
2478 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2479 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2480 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2482 if test "${ac_cv_prog_CC+set}" = set; then
2483 echo $ECHO_N "(cached) $ECHO_C" >&6
2484 else
2485 if test -n "$CC"; then
2486 ac_cv_prog_CC="$CC" # Let the user override the test.
2487 else
2488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2489 for as_dir in $PATH
2491 IFS=$as_save_IFS
2492 test -z "$as_dir" && as_dir=.
2493 for ac_exec_ext in '' $ac_executable_extensions; do
2494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2495 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2497 break 2
2499 done
2500 done
2501 IFS=$as_save_IFS
2505 CC=$ac_cv_prog_CC
2506 if test -n "$CC"; then
2507 { echo "$as_me:$LINENO: result: $CC" >&5
2508 echo "${ECHO_T}$CC" >&6; }
2509 else
2510 { echo "$as_me:$LINENO: result: no" >&5
2511 echo "${ECHO_T}no" >&6; }
2515 test -n "$CC" && break
2516 done
2518 if test -z "$CC"; then
2519 ac_ct_CC=$CC
2520 for ac_prog in cl.exe
2522 # Extract the first word of "$ac_prog", so it can be a program name with args.
2523 set dummy $ac_prog; ac_word=$2
2524 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2526 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2527 echo $ECHO_N "(cached) $ECHO_C" >&6
2528 else
2529 if test -n "$ac_ct_CC"; then
2530 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2531 else
2532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2533 for as_dir in $PATH
2535 IFS=$as_save_IFS
2536 test -z "$as_dir" && as_dir=.
2537 for ac_exec_ext in '' $ac_executable_extensions; do
2538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2539 ac_cv_prog_ac_ct_CC="$ac_prog"
2540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2541 break 2
2543 done
2544 done
2545 IFS=$as_save_IFS
2549 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2550 if test -n "$ac_ct_CC"; then
2551 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2552 echo "${ECHO_T}$ac_ct_CC" >&6; }
2553 else
2554 { echo "$as_me:$LINENO: result: no" >&5
2555 echo "${ECHO_T}no" >&6; }
2559 test -n "$ac_ct_CC" && break
2560 done
2562 if test "x$ac_ct_CC" = x; then
2563 CC=""
2564 else
2565 case $cross_compiling:$ac_tool_warned in
2566 yes:)
2567 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2568 whose name does not start with the host triplet. If you think this
2569 configuration is useful to you, please write to autoconf@gnu.org." >&5
2570 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2571 whose name does not start with the host triplet. If you think this
2572 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2573 ac_tool_warned=yes ;;
2574 esac
2575 CC=$ac_ct_CC
2582 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2583 See \`config.log' for more details." >&5
2584 echo "$as_me: error: no acceptable C compiler found in \$PATH
2585 See \`config.log' for more details." >&2;}
2586 { (exit 1); exit 1; }; }
2588 # Provide some information about the compiler.
2589 echo "$as_me:$LINENO: checking for C compiler version" >&5
2590 ac_compiler=`set X $ac_compile; echo $2`
2591 { (ac_try="$ac_compiler --version >&5"
2592 case "(($ac_try" in
2593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2594 *) ac_try_echo=$ac_try;;
2595 esac
2596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2597 (eval "$ac_compiler --version >&5") 2>&5
2598 ac_status=$?
2599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600 (exit $ac_status); }
2601 { (ac_try="$ac_compiler -v >&5"
2602 case "(($ac_try" in
2603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2604 *) ac_try_echo=$ac_try;;
2605 esac
2606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2607 (eval "$ac_compiler -v >&5") 2>&5
2608 ac_status=$?
2609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610 (exit $ac_status); }
2611 { (ac_try="$ac_compiler -V >&5"
2612 case "(($ac_try" in
2613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2614 *) ac_try_echo=$ac_try;;
2615 esac
2616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2617 (eval "$ac_compiler -V >&5") 2>&5
2618 ac_status=$?
2619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620 (exit $ac_status); }
2622 cat >conftest.$ac_ext <<_ACEOF
2623 /* confdefs.h. */
2624 _ACEOF
2625 cat confdefs.h >>conftest.$ac_ext
2626 cat >>conftest.$ac_ext <<_ACEOF
2627 /* end confdefs.h. */
2630 main ()
2634 return 0;
2636 _ACEOF
2637 ac_clean_files_save=$ac_clean_files
2638 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2639 # Try to create an executable without -o first, disregard a.out.
2640 # It will help us diagnose broken compilers, and finding out an intuition
2641 # of exeext.
2642 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2643 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2644 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2646 # List of possible output files, starting from the most likely.
2647 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2648 # only as a last resort. b.out is created by i960 compilers.
2649 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2651 # The IRIX 6 linker writes into existing files which may not be
2652 # executable, retaining their permissions. Remove them first so a
2653 # subsequent execution test works.
2654 ac_rmfiles=
2655 for ac_file in $ac_files
2657 case $ac_file in
2658 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2659 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2660 esac
2661 done
2662 rm -f $ac_rmfiles
2664 if { (ac_try="$ac_link_default"
2665 case "(($ac_try" in
2666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2667 *) ac_try_echo=$ac_try;;
2668 esac
2669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2670 (eval "$ac_link_default") 2>&5
2671 ac_status=$?
2672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673 (exit $ac_status); }; then
2674 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2675 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2676 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2677 # so that the user can short-circuit this test for compilers unknown to
2678 # Autoconf.
2679 for ac_file in $ac_files ''
2681 test -f "$ac_file" || continue
2682 case $ac_file in
2683 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2685 [ab].out )
2686 # We found the default executable, but exeext='' is most
2687 # certainly right.
2688 break;;
2689 *.* )
2690 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2691 then :; else
2692 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2694 # We set ac_cv_exeext here because the later test for it is not
2695 # safe: cross compilers may not add the suffix if given an `-o'
2696 # argument, so we may need to know it at that point already.
2697 # Even if this section looks crufty: it has the advantage of
2698 # actually working.
2699 break;;
2701 break;;
2702 esac
2703 done
2704 test "$ac_cv_exeext" = no && ac_cv_exeext=
2706 else
2707 ac_file=''
2710 { echo "$as_me:$LINENO: result: $ac_file" >&5
2711 echo "${ECHO_T}$ac_file" >&6; }
2712 if test -z "$ac_file"; then
2713 echo "$as_me: failed program was:" >&5
2714 sed 's/^/| /' conftest.$ac_ext >&5
2716 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2717 See \`config.log' for more details." >&5
2718 echo "$as_me: error: C compiler cannot create executables
2719 See \`config.log' for more details." >&2;}
2720 { (exit 77); exit 77; }; }
2723 ac_exeext=$ac_cv_exeext
2725 # Check that the compiler produces executables we can run. If not, either
2726 # the compiler is broken, or we cross compile.
2727 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2728 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2729 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2730 # If not cross compiling, check that we can run a simple program.
2731 if test "$cross_compiling" != yes; then
2732 if { ac_try='./$ac_file'
2733 { (case "(($ac_try" in
2734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2735 *) ac_try_echo=$ac_try;;
2736 esac
2737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2738 (eval "$ac_try") 2>&5
2739 ac_status=$?
2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); }; }; then
2742 cross_compiling=no
2743 else
2744 if test "$cross_compiling" = maybe; then
2745 cross_compiling=yes
2746 else
2747 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2748 If you meant to cross compile, use \`--host'.
2749 See \`config.log' for more details." >&5
2750 echo "$as_me: error: cannot run C compiled programs.
2751 If you meant to cross compile, use \`--host'.
2752 See \`config.log' for more details." >&2;}
2753 { (exit 1); exit 1; }; }
2757 { echo "$as_me:$LINENO: result: yes" >&5
2758 echo "${ECHO_T}yes" >&6; }
2760 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2761 ac_clean_files=$ac_clean_files_save
2762 # Check that the compiler produces executables we can run. If not, either
2763 # the compiler is broken, or we cross compile.
2764 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2765 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2766 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2767 echo "${ECHO_T}$cross_compiling" >&6; }
2769 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2770 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2771 if { (ac_try="$ac_link"
2772 case "(($ac_try" in
2773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2774 *) ac_try_echo=$ac_try;;
2775 esac
2776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2777 (eval "$ac_link") 2>&5
2778 ac_status=$?
2779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780 (exit $ac_status); }; then
2781 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2782 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2783 # work properly (i.e., refer to `conftest.exe'), while it won't with
2784 # `rm'.
2785 for ac_file in conftest.exe conftest conftest.*; do
2786 test -f "$ac_file" || continue
2787 case $ac_file in
2788 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2789 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2790 break;;
2791 * ) break;;
2792 esac
2793 done
2794 else
2795 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2796 See \`config.log' for more details." >&5
2797 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2798 See \`config.log' for more details." >&2;}
2799 { (exit 1); exit 1; }; }
2802 rm -f conftest$ac_cv_exeext
2803 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2804 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2806 rm -f conftest.$ac_ext
2807 EXEEXT=$ac_cv_exeext
2808 ac_exeext=$EXEEXT
2809 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2810 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2811 if test "${ac_cv_objext+set}" = set; then
2812 echo $ECHO_N "(cached) $ECHO_C" >&6
2813 else
2814 cat >conftest.$ac_ext <<_ACEOF
2815 /* confdefs.h. */
2816 _ACEOF
2817 cat confdefs.h >>conftest.$ac_ext
2818 cat >>conftest.$ac_ext <<_ACEOF
2819 /* end confdefs.h. */
2822 main ()
2826 return 0;
2828 _ACEOF
2829 rm -f conftest.o conftest.obj
2830 if { (ac_try="$ac_compile"
2831 case "(($ac_try" in
2832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2833 *) ac_try_echo=$ac_try;;
2834 esac
2835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2836 (eval "$ac_compile") 2>&5
2837 ac_status=$?
2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839 (exit $ac_status); }; then
2840 for ac_file in conftest.o conftest.obj conftest.*; do
2841 test -f "$ac_file" || continue;
2842 case $ac_file in
2843 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2844 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2845 break;;
2846 esac
2847 done
2848 else
2849 echo "$as_me: failed program was:" >&5
2850 sed 's/^/| /' conftest.$ac_ext >&5
2852 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2853 See \`config.log' for more details." >&5
2854 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2855 See \`config.log' for more details." >&2;}
2856 { (exit 1); exit 1; }; }
2859 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2861 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2862 echo "${ECHO_T}$ac_cv_objext" >&6; }
2863 OBJEXT=$ac_cv_objext
2864 ac_objext=$OBJEXT
2865 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2866 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2867 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2868 echo $ECHO_N "(cached) $ECHO_C" >&6
2869 else
2870 cat >conftest.$ac_ext <<_ACEOF
2871 /* confdefs.h. */
2872 _ACEOF
2873 cat confdefs.h >>conftest.$ac_ext
2874 cat >>conftest.$ac_ext <<_ACEOF
2875 /* end confdefs.h. */
2878 main ()
2880 #ifndef __GNUC__
2881 choke me
2882 #endif
2885 return 0;
2887 _ACEOF
2888 rm -f conftest.$ac_objext
2889 if { (ac_try="$ac_compile"
2890 case "(($ac_try" in
2891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2892 *) ac_try_echo=$ac_try;;
2893 esac
2894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2895 (eval "$ac_compile") 2>conftest.er1
2896 ac_status=$?
2897 grep -v '^ *+' conftest.er1 >conftest.err
2898 rm -f conftest.er1
2899 cat conftest.err >&5
2900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901 (exit $ac_status); } && {
2902 test -z "$ac_c_werror_flag" ||
2903 test ! -s conftest.err
2904 } && test -s conftest.$ac_objext; then
2905 ac_compiler_gnu=yes
2906 else
2907 echo "$as_me: failed program was:" >&5
2908 sed 's/^/| /' conftest.$ac_ext >&5
2910 ac_compiler_gnu=no
2913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2914 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2917 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2918 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2919 GCC=`test $ac_compiler_gnu = yes && echo yes`
2920 ac_test_CFLAGS=${CFLAGS+set}
2921 ac_save_CFLAGS=$CFLAGS
2922 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2923 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2924 if test "${ac_cv_prog_cc_g+set}" = set; then
2925 echo $ECHO_N "(cached) $ECHO_C" >&6
2926 else
2927 ac_save_c_werror_flag=$ac_c_werror_flag
2928 ac_c_werror_flag=yes
2929 ac_cv_prog_cc_g=no
2930 CFLAGS="-g"
2931 cat >conftest.$ac_ext <<_ACEOF
2932 /* confdefs.h. */
2933 _ACEOF
2934 cat confdefs.h >>conftest.$ac_ext
2935 cat >>conftest.$ac_ext <<_ACEOF
2936 /* end confdefs.h. */
2939 main ()
2943 return 0;
2945 _ACEOF
2946 rm -f conftest.$ac_objext
2947 if { (ac_try="$ac_compile"
2948 case "(($ac_try" in
2949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2950 *) ac_try_echo=$ac_try;;
2951 esac
2952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2953 (eval "$ac_compile") 2>conftest.er1
2954 ac_status=$?
2955 grep -v '^ *+' conftest.er1 >conftest.err
2956 rm -f conftest.er1
2957 cat conftest.err >&5
2958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959 (exit $ac_status); } && {
2960 test -z "$ac_c_werror_flag" ||
2961 test ! -s conftest.err
2962 } && test -s conftest.$ac_objext; then
2963 ac_cv_prog_cc_g=yes
2964 else
2965 echo "$as_me: failed program was:" >&5
2966 sed 's/^/| /' conftest.$ac_ext >&5
2968 CFLAGS=""
2969 cat >conftest.$ac_ext <<_ACEOF
2970 /* confdefs.h. */
2971 _ACEOF
2972 cat confdefs.h >>conftest.$ac_ext
2973 cat >>conftest.$ac_ext <<_ACEOF
2974 /* end confdefs.h. */
2977 main ()
2981 return 0;
2983 _ACEOF
2984 rm -f conftest.$ac_objext
2985 if { (ac_try="$ac_compile"
2986 case "(($ac_try" in
2987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2988 *) ac_try_echo=$ac_try;;
2989 esac
2990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2991 (eval "$ac_compile") 2>conftest.er1
2992 ac_status=$?
2993 grep -v '^ *+' conftest.er1 >conftest.err
2994 rm -f conftest.er1
2995 cat conftest.err >&5
2996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2997 (exit $ac_status); } && {
2998 test -z "$ac_c_werror_flag" ||
2999 test ! -s conftest.err
3000 } && test -s conftest.$ac_objext; then
3002 else
3003 echo "$as_me: failed program was:" >&5
3004 sed 's/^/| /' conftest.$ac_ext >&5
3006 ac_c_werror_flag=$ac_save_c_werror_flag
3007 CFLAGS="-g"
3008 cat >conftest.$ac_ext <<_ACEOF
3009 /* confdefs.h. */
3010 _ACEOF
3011 cat confdefs.h >>conftest.$ac_ext
3012 cat >>conftest.$ac_ext <<_ACEOF
3013 /* end confdefs.h. */
3016 main ()
3020 return 0;
3022 _ACEOF
3023 rm -f conftest.$ac_objext
3024 if { (ac_try="$ac_compile"
3025 case "(($ac_try" in
3026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3027 *) ac_try_echo=$ac_try;;
3028 esac
3029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3030 (eval "$ac_compile") 2>conftest.er1
3031 ac_status=$?
3032 grep -v '^ *+' conftest.er1 >conftest.err
3033 rm -f conftest.er1
3034 cat conftest.err >&5
3035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036 (exit $ac_status); } && {
3037 test -z "$ac_c_werror_flag" ||
3038 test ! -s conftest.err
3039 } && test -s conftest.$ac_objext; then
3040 ac_cv_prog_cc_g=yes
3041 else
3042 echo "$as_me: failed program was:" >&5
3043 sed 's/^/| /' conftest.$ac_ext >&5
3048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3055 ac_c_werror_flag=$ac_save_c_werror_flag
3057 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3058 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3059 if test "$ac_test_CFLAGS" = set; then
3060 CFLAGS=$ac_save_CFLAGS
3061 elif test $ac_cv_prog_cc_g = yes; then
3062 if test "$GCC" = yes; then
3063 CFLAGS="-g -O2"
3064 else
3065 CFLAGS="-g"
3067 else
3068 if test "$GCC" = yes; then
3069 CFLAGS="-O2"
3070 else
3071 CFLAGS=
3074 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3075 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3076 if test "${ac_cv_prog_cc_c89+set}" = set; then
3077 echo $ECHO_N "(cached) $ECHO_C" >&6
3078 else
3079 ac_cv_prog_cc_c89=no
3080 ac_save_CC=$CC
3081 cat >conftest.$ac_ext <<_ACEOF
3082 /* confdefs.h. */
3083 _ACEOF
3084 cat confdefs.h >>conftest.$ac_ext
3085 cat >>conftest.$ac_ext <<_ACEOF
3086 /* end confdefs.h. */
3087 #include <stdarg.h>
3088 #include <stdio.h>
3089 #include <sys/types.h>
3090 #include <sys/stat.h>
3091 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3092 struct buf { int x; };
3093 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3094 static char *e (p, i)
3095 char **p;
3096 int i;
3098 return p[i];
3100 static char *f (char * (*g) (char **, int), char **p, ...)
3102 char *s;
3103 va_list v;
3104 va_start (v,p);
3105 s = g (p, va_arg (v,int));
3106 va_end (v);
3107 return s;
3110 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3111 function prototypes and stuff, but not '\xHH' hex character constants.
3112 These don't provoke an error unfortunately, instead are silently treated
3113 as 'x'. The following induces an error, until -std is added to get
3114 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3115 array size at least. It's necessary to write '\x00'==0 to get something
3116 that's true only with -std. */
3117 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3119 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3120 inside strings and character constants. */
3121 #define FOO(x) 'x'
3122 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3124 int test (int i, double x);
3125 struct s1 {int (*f) (int a);};
3126 struct s2 {int (*f) (double a);};
3127 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3128 int argc;
3129 char **argv;
3131 main ()
3133 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3135 return 0;
3137 _ACEOF
3138 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3139 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3141 CC="$ac_save_CC $ac_arg"
3142 rm -f conftest.$ac_objext
3143 if { (ac_try="$ac_compile"
3144 case "(($ac_try" in
3145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3146 *) ac_try_echo=$ac_try;;
3147 esac
3148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3149 (eval "$ac_compile") 2>conftest.er1
3150 ac_status=$?
3151 grep -v '^ *+' conftest.er1 >conftest.err
3152 rm -f conftest.er1
3153 cat conftest.err >&5
3154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155 (exit $ac_status); } && {
3156 test -z "$ac_c_werror_flag" ||
3157 test ! -s conftest.err
3158 } && test -s conftest.$ac_objext; then
3159 ac_cv_prog_cc_c89=$ac_arg
3160 else
3161 echo "$as_me: failed program was:" >&5
3162 sed 's/^/| /' conftest.$ac_ext >&5
3167 rm -f core conftest.err conftest.$ac_objext
3168 test "x$ac_cv_prog_cc_c89" != "xno" && break
3169 done
3170 rm -f conftest.$ac_ext
3171 CC=$ac_save_CC
3174 # AC_CACHE_VAL
3175 case "x$ac_cv_prog_cc_c89" in
3177 { echo "$as_me:$LINENO: result: none needed" >&5
3178 echo "${ECHO_T}none needed" >&6; } ;;
3179 xno)
3180 { echo "$as_me:$LINENO: result: unsupported" >&5
3181 echo "${ECHO_T}unsupported" >&6; } ;;
3183 CC="$CC $ac_cv_prog_cc_c89"
3184 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3185 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3186 esac
3189 ac_ext=c
3190 ac_cpp='$CPP $CPPFLAGS'
3191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3198 { echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5
3199 echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6; }
3201 # Check whether --with-cxx_main was given.
3202 if test "${with_cxx_main+set}" = set; then
3203 withval=$with_cxx_main;
3205 case $withval in
3206 no) with_cxx_main=no
3207 MAINCC='$(CC)';;
3208 yes) with_cxx_main=yes
3209 MAINCC='$(CXX)';;
3210 *) with_cxx_main=yes
3211 MAINCC=$withval
3212 if test -z "$CXX"
3213 then
3214 CXX=$withval
3215 fi;;
3216 esac
3217 else
3219 with_cxx_main=no
3220 MAINCC='$(CC)'
3224 { echo "$as_me:$LINENO: result: $with_cxx_main" >&5
3225 echo "${ECHO_T}$with_cxx_main" >&6; }
3227 preset_cxx="$CXX"
3228 if test -z "$CXX"
3229 then
3230 case "$CC" in
3231 gcc) # Extract the first word of "g++", so it can be a program name with args.
3232 set dummy g++; ac_word=$2
3233 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3235 if test "${ac_cv_path_CXX+set}" = set; then
3236 echo $ECHO_N "(cached) $ECHO_C" >&6
3237 else
3238 case $CXX in
3239 [\\/]* | ?:[\\/]*)
3240 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3244 for as_dir in notfound
3246 IFS=$as_save_IFS
3247 test -z "$as_dir" && as_dir=.
3248 for ac_exec_ext in '' $ac_executable_extensions; do
3249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3250 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3252 break 2
3254 done
3255 done
3256 IFS=$as_save_IFS
3258 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="g++"
3260 esac
3262 CXX=$ac_cv_path_CXX
3263 if test -n "$CXX"; then
3264 { echo "$as_me:$LINENO: result: $CXX" >&5
3265 echo "${ECHO_T}$CXX" >&6; }
3266 else
3267 { echo "$as_me:$LINENO: result: no" >&5
3268 echo "${ECHO_T}no" >&6; }
3272 cc) # Extract the first word of "c++", so it can be a program name with args.
3273 set dummy c++; ac_word=$2
3274 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3276 if test "${ac_cv_path_CXX+set}" = set; then
3277 echo $ECHO_N "(cached) $ECHO_C" >&6
3278 else
3279 case $CXX in
3280 [\\/]* | ?:[\\/]*)
3281 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3285 for as_dir in notfound
3287 IFS=$as_save_IFS
3288 test -z "$as_dir" && as_dir=.
3289 for ac_exec_ext in '' $ac_executable_extensions; do
3290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3291 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3293 break 2
3295 done
3296 done
3297 IFS=$as_save_IFS
3299 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="c++"
3301 esac
3303 CXX=$ac_cv_path_CXX
3304 if test -n "$CXX"; then
3305 { echo "$as_me:$LINENO: result: $CXX" >&5
3306 echo "${ECHO_T}$CXX" >&6; }
3307 else
3308 { echo "$as_me:$LINENO: result: no" >&5
3309 echo "${ECHO_T}no" >&6; }
3313 esac
3314 if test "$CXX" = "notfound"
3315 then
3316 CXX=""
3319 if test -z "$CXX"
3320 then
3321 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
3323 # Extract the first word of "$ac_prog", so it can be a program name with args.
3324 set dummy $ac_prog; ac_word=$2
3325 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3327 if test "${ac_cv_prog_CXX+set}" = set; then
3328 echo $ECHO_N "(cached) $ECHO_C" >&6
3329 else
3330 if test -n "$CXX"; then
3331 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3332 else
3333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3334 for as_dir in $PATH
3336 IFS=$as_save_IFS
3337 test -z "$as_dir" && as_dir=.
3338 for ac_exec_ext in '' $ac_executable_extensions; do
3339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3340 ac_cv_prog_CXX="$ac_prog"
3341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3342 break 2
3344 done
3345 done
3346 IFS=$as_save_IFS
3350 CXX=$ac_cv_prog_CXX
3351 if test -n "$CXX"; then
3352 { echo "$as_me:$LINENO: result: $CXX" >&5
3353 echo "${ECHO_T}$CXX" >&6; }
3354 else
3355 { echo "$as_me:$LINENO: result: no" >&5
3356 echo "${ECHO_T}no" >&6; }
3360 test -n "$CXX" && break
3361 done
3362 test -n "$CXX" || CXX="notfound"
3364 if test "$CXX" = "notfound"
3365 then
3366 CXX=""
3369 if test "$preset_cxx" != "$CXX"
3370 then
3371 { echo "$as_me:$LINENO: WARNING:
3373 By default, distutils will build C++ extension modules with \"$CXX\".
3374 If this is not intended, then set CXX on the configure command line.
3375 " >&5
3376 echo "$as_me: WARNING:
3378 By default, distutils will build C++ extension modules with \"$CXX\".
3379 If this is not intended, then set CXX on the configure command line.
3380 " >&2;}
3384 # checks for UNIX variants that set C preprocessor variables
3386 ac_ext=c
3387 ac_cpp='$CPP $CPPFLAGS'
3388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3391 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3392 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3393 # On Suns, sometimes $CPP names a directory.
3394 if test -n "$CPP" && test -d "$CPP"; then
3395 CPP=
3397 if test -z "$CPP"; then
3398 if test "${ac_cv_prog_CPP+set}" = set; then
3399 echo $ECHO_N "(cached) $ECHO_C" >&6
3400 else
3401 # Double quotes because CPP needs to be expanded
3402 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3404 ac_preproc_ok=false
3405 for ac_c_preproc_warn_flag in '' yes
3407 # Use a header file that comes with gcc, so configuring glibc
3408 # with a fresh cross-compiler works.
3409 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3410 # <limits.h> exists even on freestanding compilers.
3411 # On the NeXT, cc -E runs the code through the compiler's parser,
3412 # not just through cpp. "Syntax error" is here to catch this case.
3413 cat >conftest.$ac_ext <<_ACEOF
3414 /* confdefs.h. */
3415 _ACEOF
3416 cat confdefs.h >>conftest.$ac_ext
3417 cat >>conftest.$ac_ext <<_ACEOF
3418 /* end confdefs.h. */
3419 #ifdef __STDC__
3420 # include <limits.h>
3421 #else
3422 # include <assert.h>
3423 #endif
3424 Syntax error
3425 _ACEOF
3426 if { (ac_try="$ac_cpp conftest.$ac_ext"
3427 case "(($ac_try" in
3428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3429 *) ac_try_echo=$ac_try;;
3430 esac
3431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3432 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3433 ac_status=$?
3434 grep -v '^ *+' conftest.er1 >conftest.err
3435 rm -f conftest.er1
3436 cat conftest.err >&5
3437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438 (exit $ac_status); } >/dev/null && {
3439 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3440 test ! -s conftest.err
3441 }; then
3443 else
3444 echo "$as_me: failed program was:" >&5
3445 sed 's/^/| /' conftest.$ac_ext >&5
3447 # Broken: fails on valid input.
3448 continue
3451 rm -f conftest.err conftest.$ac_ext
3453 # OK, works on sane cases. Now check whether nonexistent headers
3454 # can be detected and how.
3455 cat >conftest.$ac_ext <<_ACEOF
3456 /* confdefs.h. */
3457 _ACEOF
3458 cat confdefs.h >>conftest.$ac_ext
3459 cat >>conftest.$ac_ext <<_ACEOF
3460 /* end confdefs.h. */
3461 #include <ac_nonexistent.h>
3462 _ACEOF
3463 if { (ac_try="$ac_cpp conftest.$ac_ext"
3464 case "(($ac_try" in
3465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3466 *) ac_try_echo=$ac_try;;
3467 esac
3468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3469 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3470 ac_status=$?
3471 grep -v '^ *+' conftest.er1 >conftest.err
3472 rm -f conftest.er1
3473 cat conftest.err >&5
3474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475 (exit $ac_status); } >/dev/null && {
3476 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3477 test ! -s conftest.err
3478 }; then
3479 # Broken: success on invalid input.
3480 continue
3481 else
3482 echo "$as_me: failed program was:" >&5
3483 sed 's/^/| /' conftest.$ac_ext >&5
3485 # Passes both tests.
3486 ac_preproc_ok=:
3487 break
3490 rm -f conftest.err conftest.$ac_ext
3492 done
3493 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3494 rm -f conftest.err conftest.$ac_ext
3495 if $ac_preproc_ok; then
3496 break
3499 done
3500 ac_cv_prog_CPP=$CPP
3503 CPP=$ac_cv_prog_CPP
3504 else
3505 ac_cv_prog_CPP=$CPP
3507 { echo "$as_me:$LINENO: result: $CPP" >&5
3508 echo "${ECHO_T}$CPP" >&6; }
3509 ac_preproc_ok=false
3510 for ac_c_preproc_warn_flag in '' yes
3512 # Use a header file that comes with gcc, so configuring glibc
3513 # with a fresh cross-compiler works.
3514 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3515 # <limits.h> exists even on freestanding compilers.
3516 # On the NeXT, cc -E runs the code through the compiler's parser,
3517 # not just through cpp. "Syntax error" is here to catch this case.
3518 cat >conftest.$ac_ext <<_ACEOF
3519 /* confdefs.h. */
3520 _ACEOF
3521 cat confdefs.h >>conftest.$ac_ext
3522 cat >>conftest.$ac_ext <<_ACEOF
3523 /* end confdefs.h. */
3524 #ifdef __STDC__
3525 # include <limits.h>
3526 #else
3527 # include <assert.h>
3528 #endif
3529 Syntax error
3530 _ACEOF
3531 if { (ac_try="$ac_cpp conftest.$ac_ext"
3532 case "(($ac_try" in
3533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3534 *) ac_try_echo=$ac_try;;
3535 esac
3536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3537 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3538 ac_status=$?
3539 grep -v '^ *+' conftest.er1 >conftest.err
3540 rm -f conftest.er1
3541 cat conftest.err >&5
3542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543 (exit $ac_status); } >/dev/null && {
3544 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3545 test ! -s conftest.err
3546 }; then
3548 else
3549 echo "$as_me: failed program was:" >&5
3550 sed 's/^/| /' conftest.$ac_ext >&5
3552 # Broken: fails on valid input.
3553 continue
3556 rm -f conftest.err conftest.$ac_ext
3558 # OK, works on sane cases. Now check whether nonexistent headers
3559 # can be detected and how.
3560 cat >conftest.$ac_ext <<_ACEOF
3561 /* confdefs.h. */
3562 _ACEOF
3563 cat confdefs.h >>conftest.$ac_ext
3564 cat >>conftest.$ac_ext <<_ACEOF
3565 /* end confdefs.h. */
3566 #include <ac_nonexistent.h>
3567 _ACEOF
3568 if { (ac_try="$ac_cpp conftest.$ac_ext"
3569 case "(($ac_try" in
3570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3571 *) ac_try_echo=$ac_try;;
3572 esac
3573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3574 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3575 ac_status=$?
3576 grep -v '^ *+' conftest.er1 >conftest.err
3577 rm -f conftest.er1
3578 cat conftest.err >&5
3579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580 (exit $ac_status); } >/dev/null && {
3581 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3582 test ! -s conftest.err
3583 }; then
3584 # Broken: success on invalid input.
3585 continue
3586 else
3587 echo "$as_me: failed program was:" >&5
3588 sed 's/^/| /' conftest.$ac_ext >&5
3590 # Passes both tests.
3591 ac_preproc_ok=:
3592 break
3595 rm -f conftest.err conftest.$ac_ext
3597 done
3598 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3599 rm -f conftest.err conftest.$ac_ext
3600 if $ac_preproc_ok; then
3602 else
3603 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3604 See \`config.log' for more details." >&5
3605 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3606 See \`config.log' for more details." >&2;}
3607 { (exit 1); exit 1; }; }
3610 ac_ext=c
3611 ac_cpp='$CPP $CPPFLAGS'
3612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3617 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3618 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3619 if test "${ac_cv_path_GREP+set}" = set; then
3620 echo $ECHO_N "(cached) $ECHO_C" >&6
3621 else
3622 # Extract the first word of "grep ggrep" to use in msg output
3623 if test -z "$GREP"; then
3624 set dummy grep ggrep; ac_prog_name=$2
3625 if test "${ac_cv_path_GREP+set}" = set; then
3626 echo $ECHO_N "(cached) $ECHO_C" >&6
3627 else
3628 ac_path_GREP_found=false
3629 # Loop through the user's path and test for each of PROGNAME-LIST
3630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3631 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3633 IFS=$as_save_IFS
3634 test -z "$as_dir" && as_dir=.
3635 for ac_prog in grep ggrep; do
3636 for ac_exec_ext in '' $ac_executable_extensions; do
3637 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3638 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3639 # Check for GNU ac_path_GREP and select it if it is found.
3640 # Check for GNU $ac_path_GREP
3641 case `"$ac_path_GREP" --version 2>&1` in
3642 *GNU*)
3643 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3645 ac_count=0
3646 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3647 while :
3649 cat "conftest.in" "conftest.in" >"conftest.tmp"
3650 mv "conftest.tmp" "conftest.in"
3651 cp "conftest.in" "conftest.nl"
3652 echo 'GREP' >> "conftest.nl"
3653 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3654 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3655 ac_count=`expr $ac_count + 1`
3656 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3657 # Best one so far, save it but keep looking for a better one
3658 ac_cv_path_GREP="$ac_path_GREP"
3659 ac_path_GREP_max=$ac_count
3661 # 10*(2^10) chars as input seems more than enough
3662 test $ac_count -gt 10 && break
3663 done
3664 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3665 esac
3668 $ac_path_GREP_found && break 3
3669 done
3670 done
3672 done
3673 IFS=$as_save_IFS
3678 GREP="$ac_cv_path_GREP"
3679 if test -z "$GREP"; then
3680 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3681 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3682 { (exit 1); exit 1; }; }
3685 else
3686 ac_cv_path_GREP=$GREP
3691 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3692 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3693 GREP="$ac_cv_path_GREP"
3696 { echo "$as_me:$LINENO: checking for egrep" >&5
3697 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3698 if test "${ac_cv_path_EGREP+set}" = set; then
3699 echo $ECHO_N "(cached) $ECHO_C" >&6
3700 else
3701 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3702 then ac_cv_path_EGREP="$GREP -E"
3703 else
3704 # Extract the first word of "egrep" to use in msg output
3705 if test -z "$EGREP"; then
3706 set dummy egrep; ac_prog_name=$2
3707 if test "${ac_cv_path_EGREP+set}" = set; then
3708 echo $ECHO_N "(cached) $ECHO_C" >&6
3709 else
3710 ac_path_EGREP_found=false
3711 # Loop through the user's path and test for each of PROGNAME-LIST
3712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3713 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3715 IFS=$as_save_IFS
3716 test -z "$as_dir" && as_dir=.
3717 for ac_prog in egrep; do
3718 for ac_exec_ext in '' $ac_executable_extensions; do
3719 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3720 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3721 # Check for GNU ac_path_EGREP and select it if it is found.
3722 # Check for GNU $ac_path_EGREP
3723 case `"$ac_path_EGREP" --version 2>&1` in
3724 *GNU*)
3725 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3727 ac_count=0
3728 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3729 while :
3731 cat "conftest.in" "conftest.in" >"conftest.tmp"
3732 mv "conftest.tmp" "conftest.in"
3733 cp "conftest.in" "conftest.nl"
3734 echo 'EGREP' >> "conftest.nl"
3735 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3736 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3737 ac_count=`expr $ac_count + 1`
3738 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3739 # Best one so far, save it but keep looking for a better one
3740 ac_cv_path_EGREP="$ac_path_EGREP"
3741 ac_path_EGREP_max=$ac_count
3743 # 10*(2^10) chars as input seems more than enough
3744 test $ac_count -gt 10 && break
3745 done
3746 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3747 esac
3750 $ac_path_EGREP_found && break 3
3751 done
3752 done
3754 done
3755 IFS=$as_save_IFS
3760 EGREP="$ac_cv_path_EGREP"
3761 if test -z "$EGREP"; then
3762 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3763 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3764 { (exit 1); exit 1; }; }
3767 else
3768 ac_cv_path_EGREP=$EGREP
3774 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3775 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3776 EGREP="$ac_cv_path_EGREP"
3780 { echo "$as_me:$LINENO: checking for AIX" >&5
3781 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3782 cat >conftest.$ac_ext <<_ACEOF
3783 /* confdefs.h. */
3784 _ACEOF
3785 cat confdefs.h >>conftest.$ac_ext
3786 cat >>conftest.$ac_ext <<_ACEOF
3787 /* end confdefs.h. */
3788 #ifdef _AIX
3790 #endif
3792 _ACEOF
3793 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3794 $EGREP "yes" >/dev/null 2>&1; then
3795 { echo "$as_me:$LINENO: result: yes" >&5
3796 echo "${ECHO_T}yes" >&6; }
3797 cat >>confdefs.h <<\_ACEOF
3798 #define _ALL_SOURCE 1
3799 _ACEOF
3801 else
3802 { echo "$as_me:$LINENO: result: no" >&5
3803 echo "${ECHO_T}no" >&6; }
3805 rm -f conftest*
3809 # Check for unsupported systems
3810 case $ac_sys_system/$ac_sys_release in
3811 atheos*|Linux*/1*)
3812 echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported.
3813 echo See README for details.
3814 exit 1;;
3815 esac
3818 { echo "$as_me:$LINENO: checking for --with-suffix" >&5
3819 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6; }
3821 # Check whether --with-suffix was given.
3822 if test "${with_suffix+set}" = set; then
3823 withval=$with_suffix;
3824 case $withval in
3825 no) EXEEXT=;;
3826 yes) EXEEXT=.exe;;
3827 *) EXEEXT=$withval;;
3828 esac
3831 { echo "$as_me:$LINENO: result: $EXEEXT" >&5
3832 echo "${ECHO_T}$EXEEXT" >&6; }
3834 # Test whether we're running on a non-case-sensitive system, in which
3835 # case we give a warning if no ext is given
3837 { echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3838 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6; }
3839 if test ! -d CaseSensitiveTestDir; then
3840 mkdir CaseSensitiveTestDir
3843 if test -d casesensitivetestdir
3844 then
3845 { echo "$as_me:$LINENO: result: yes" >&5
3846 echo "${ECHO_T}yes" >&6; }
3847 BUILDEXEEXT=.exe
3848 else
3849 { echo "$as_me:$LINENO: result: no" >&5
3850 echo "${ECHO_T}no" >&6; }
3851 BUILDEXEEXT=$EXEEXT
3853 rmdir CaseSensitiveTestDir
3855 case $MACHDEP in
3856 bsdos*)
3857 case $CC in
3858 gcc) CC="$CC -D_HAVE_BSDI";;
3859 esac;;
3860 esac
3862 case $ac_sys_system in
3863 hp*|HP*)
3864 case $CC in
3865 cc|*/cc) CC="$CC -Ae";;
3866 esac;;
3867 SunOS*)
3868 # Some functions have a prototype only with that define, e.g. confstr
3870 cat >>confdefs.h <<\_ACEOF
3871 #define __EXTENSIONS__ 1
3872 _ACEOF
3875 esac
3879 { echo "$as_me:$LINENO: checking LIBRARY" >&5
3880 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6; }
3881 if test -z "$LIBRARY"
3882 then
3883 LIBRARY='libpython$(VERSION).a'
3885 { echo "$as_me:$LINENO: result: $LIBRARY" >&5
3886 echo "${ECHO_T}$LIBRARY" >&6; }
3888 # LDLIBRARY is the name of the library to link against (as opposed to the
3889 # name of the library into which to insert object files). BLDLIBRARY is also
3890 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3891 # is blank as the main program is not linked directly against LDLIBRARY.
3892 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3893 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3894 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3895 # DLLLIBRARY is the shared (i.e., DLL) library.
3897 # RUNSHARED is used to run shared python without installed libraries
3899 # INSTSONAME is the name of the shared library that will be use to install
3900 # on the system - some systems like version suffix, others don't
3907 LDLIBRARY="$LIBRARY"
3908 BLDLIBRARY='$(LDLIBRARY)'
3909 INSTSONAME='$(LDLIBRARY)'
3910 DLLLIBRARY=''
3911 LDLIBRARYDIR=''
3912 RUNSHARED=''
3914 # LINKCC is the command that links the python executable -- default is $(CC).
3915 # If CXX is set, and if it is needed to link a main function that was
3916 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3917 # python might then depend on the C++ runtime
3918 # This is altered for AIX in order to build the export list before
3919 # linking.
3921 { echo "$as_me:$LINENO: checking LINKCC" >&5
3922 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6; }
3923 if test -z "$LINKCC"
3924 then
3925 LINKCC='$(PURIFY) $(MAINCC)'
3926 case $ac_sys_system in
3927 AIX*)
3928 exp_extra="\"\""
3929 if test $ac_sys_release -ge 5 -o \
3930 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3931 exp_extra="."
3933 LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3934 QNX*)
3935 # qcc must be used because the other compilers do not
3936 # support -N.
3937 LINKCC=qcc;;
3938 esac
3940 { echo "$as_me:$LINENO: result: $LINKCC" >&5
3941 echo "${ECHO_T}$LINKCC" >&6; }
3943 # GNULD is set to "yes" if the GNU linker is used. If this goes wrong
3944 # make sure we default having it set to "no": this is used by
3945 # distutils.unixccompiler to know if it should add --enable-new-dtags
3946 # to linker command lines, and failing to detect GNU ld simply results
3947 # in the same bahaviour as before.
3949 { echo "$as_me:$LINENO: checking for GNU ld" >&5
3950 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3951 ac_prog=ld
3952 if test "$GCC" = yes; then
3953 ac_prog=`$CC -print-prog-name=ld`
3955 case `"$ac_prog" -V 2>&1 < /dev/null` in
3956 *GNU*)
3957 GNULD=yes;;
3959 GNULD=no;;
3960 esac
3961 { echo "$as_me:$LINENO: result: $GNULD" >&5
3962 echo "${ECHO_T}$GNULD" >&6; }
3964 { echo "$as_me:$LINENO: checking for --enable-shared" >&5
3965 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6; }
3966 # Check whether --enable-shared was given.
3967 if test "${enable_shared+set}" = set; then
3968 enableval=$enable_shared;
3972 if test -z "$enable_shared"
3973 then
3974 case $ac_sys_system in
3975 CYGWIN* | atheos*)
3976 enable_shared="yes";;
3978 enable_shared="no";;
3979 esac
3981 { echo "$as_me:$LINENO: result: $enable_shared" >&5
3982 echo "${ECHO_T}$enable_shared" >&6; }
3984 { echo "$as_me:$LINENO: checking for --enable-profiling" >&5
3985 echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6; }
3986 # Check whether --enable-profiling was given.
3987 if test "${enable_profiling+set}" = set; then
3988 enableval=$enable_profiling; ac_save_cc="$CC"
3989 CC="$CC -pg"
3990 if test "$cross_compiling" = yes; then
3991 ac_enable_profiling="no"
3992 else
3993 cat >conftest.$ac_ext <<_ACEOF
3994 /* confdefs.h. */
3995 _ACEOF
3996 cat confdefs.h >>conftest.$ac_ext
3997 cat >>conftest.$ac_ext <<_ACEOF
3998 /* end confdefs.h. */
3999 int main() { return 0; }
4000 _ACEOF
4001 rm -f conftest$ac_exeext
4002 if { (ac_try="$ac_link"
4003 case "(($ac_try" in
4004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4005 *) ac_try_echo=$ac_try;;
4006 esac
4007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4008 (eval "$ac_link") 2>&5
4009 ac_status=$?
4010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4011 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4012 { (case "(($ac_try" in
4013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4014 *) ac_try_echo=$ac_try;;
4015 esac
4016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4017 (eval "$ac_try") 2>&5
4018 ac_status=$?
4019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4020 (exit $ac_status); }; }; then
4021 ac_enable_profiling="yes"
4022 else
4023 echo "$as_me: program exited with status $ac_status" >&5
4024 echo "$as_me: failed program was:" >&5
4025 sed 's/^/| /' conftest.$ac_ext >&5
4027 ( exit $ac_status )
4028 ac_enable_profiling="no"
4030 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4034 CC="$ac_save_cc"
4037 { echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
4038 echo "${ECHO_T}$ac_enable_profiling" >&6; }
4040 case "$ac_enable_profiling" in
4041 "yes")
4042 BASECFLAGS="-pg $BASECFLAGS"
4043 LDFLAGS="-pg $LDFLAGS"
4045 esac
4047 { echo "$as_me:$LINENO: checking LDLIBRARY" >&5
4048 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6; }
4050 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
4051 # library that we build, but we do not want to link against it (we
4052 # will find it with a -framework option). For this reason there is an
4053 # extra variable BLDLIBRARY against which Python and the extension
4054 # modules are linked, BLDLIBRARY. This is normally the same as
4055 # LDLIBRARY, but empty for MacOSX framework builds.
4056 if test "$enable_framework"
4057 then
4058 LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
4059 RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH"
4060 BLDLIBRARY=''
4061 else
4062 BLDLIBRARY='$(LDLIBRARY)'
4065 # Other platforms follow
4066 if test $enable_shared = "yes"; then
4068 cat >>confdefs.h <<\_ACEOF
4069 #define Py_ENABLE_SHARED 1
4070 _ACEOF
4072 case $ac_sys_system in
4073 CYGWIN*)
4074 LDLIBRARY='libpython$(VERSION).dll.a'
4075 DLLLIBRARY='libpython$(VERSION).dll'
4077 SunOS*)
4078 LDLIBRARY='libpython$(VERSION).so'
4079 BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
4080 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4081 INSTSONAME="$LDLIBRARY".$SOVERSION
4083 Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*)
4084 LDLIBRARY='libpython$(VERSION).so'
4085 BLDLIBRARY='-L. -lpython$(VERSION)'
4086 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4087 case $ac_sys_system in
4088 FreeBSD*)
4089 SOVERSION=`echo $SOVERSION|cut -d "." -f 1`
4091 esac
4092 INSTSONAME="$LDLIBRARY".$SOVERSION
4094 hp*|HP*)
4095 case `uname -m` in
4096 ia64)
4097 LDLIBRARY='libpython$(VERSION).so'
4100 LDLIBRARY='libpython$(VERSION).sl'
4102 esac
4103 BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
4104 RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH}
4106 OSF*)
4107 LDLIBRARY='libpython$(VERSION).so'
4108 BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
4109 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4111 atheos*)
4112 LDLIBRARY='libpython$(VERSION).so'
4113 BLDLIBRARY='-L. -lpython$(VERSION)'
4114 RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
4116 Darwin*)
4117 LDLIBRARY='libpython$(VERSION).dylib'
4118 BLDLIBRARY='-L. -lpython$(VERSION)'
4119 RUNSHARED='DYLD_LIBRARY_PATH=`pwd`:${DYLD_LIBRARY_PATH}'
4122 esac
4123 else # shared is disabled
4124 case $ac_sys_system in
4125 CYGWIN*)
4126 BLDLIBRARY='$(LIBRARY)'
4127 LDLIBRARY='libpython$(VERSION).dll.a'
4129 esac
4132 { echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
4133 echo "${ECHO_T}$LDLIBRARY" >&6; }
4135 if test -n "$ac_tool_prefix"; then
4136 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4137 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4138 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4140 if test "${ac_cv_prog_RANLIB+set}" = set; then
4141 echo $ECHO_N "(cached) $ECHO_C" >&6
4142 else
4143 if test -n "$RANLIB"; then
4144 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4145 else
4146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4147 for as_dir in $PATH
4149 IFS=$as_save_IFS
4150 test -z "$as_dir" && as_dir=.
4151 for ac_exec_ext in '' $ac_executable_extensions; do
4152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4153 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4155 break 2
4157 done
4158 done
4159 IFS=$as_save_IFS
4163 RANLIB=$ac_cv_prog_RANLIB
4164 if test -n "$RANLIB"; then
4165 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4166 echo "${ECHO_T}$RANLIB" >&6; }
4167 else
4168 { echo "$as_me:$LINENO: result: no" >&5
4169 echo "${ECHO_T}no" >&6; }
4174 if test -z "$ac_cv_prog_RANLIB"; then
4175 ac_ct_RANLIB=$RANLIB
4176 # Extract the first word of "ranlib", so it can be a program name with args.
4177 set dummy ranlib; ac_word=$2
4178 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4180 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4181 echo $ECHO_N "(cached) $ECHO_C" >&6
4182 else
4183 if test -n "$ac_ct_RANLIB"; then
4184 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4185 else
4186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4187 for as_dir in $PATH
4189 IFS=$as_save_IFS
4190 test -z "$as_dir" && as_dir=.
4191 for ac_exec_ext in '' $ac_executable_extensions; do
4192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4193 ac_cv_prog_ac_ct_RANLIB="ranlib"
4194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4195 break 2
4197 done
4198 done
4199 IFS=$as_save_IFS
4203 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4204 if test -n "$ac_ct_RANLIB"; then
4205 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4206 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4207 else
4208 { echo "$as_me:$LINENO: result: no" >&5
4209 echo "${ECHO_T}no" >&6; }
4212 if test "x$ac_ct_RANLIB" = x; then
4213 RANLIB=":"
4214 else
4215 case $cross_compiling:$ac_tool_warned in
4216 yes:)
4217 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4218 whose name does not start with the host triplet. If you think this
4219 configuration is useful to you, please write to autoconf@gnu.org." >&5
4220 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4221 whose name does not start with the host triplet. If you think this
4222 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4223 ac_tool_warned=yes ;;
4224 esac
4225 RANLIB=$ac_ct_RANLIB
4227 else
4228 RANLIB="$ac_cv_prog_RANLIB"
4232 for ac_prog in ar aal
4234 # Extract the first word of "$ac_prog", so it can be a program name with args.
4235 set dummy $ac_prog; ac_word=$2
4236 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4238 if test "${ac_cv_prog_AR+set}" = set; then
4239 echo $ECHO_N "(cached) $ECHO_C" >&6
4240 else
4241 if test -n "$AR"; then
4242 ac_cv_prog_AR="$AR" # Let the user override the test.
4243 else
4244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4245 for as_dir in $PATH
4247 IFS=$as_save_IFS
4248 test -z "$as_dir" && as_dir=.
4249 for ac_exec_ext in '' $ac_executable_extensions; do
4250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4251 ac_cv_prog_AR="$ac_prog"
4252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4253 break 2
4255 done
4256 done
4257 IFS=$as_save_IFS
4261 AR=$ac_cv_prog_AR
4262 if test -n "$AR"; then
4263 { echo "$as_me:$LINENO: result: $AR" >&5
4264 echo "${ECHO_T}$AR" >&6; }
4265 else
4266 { echo "$as_me:$LINENO: result: no" >&5
4267 echo "${ECHO_T}no" >&6; }
4271 test -n "$AR" && break
4272 done
4273 test -n "$AR" || AR="ar"
4276 # tweak ARFLAGS only if the user didn't set it on the command line
4278 if test -z "$ARFLAGS"
4279 then
4280 ARFLAGS="rc"
4284 # Extract the first word of "svnversion", so it can be a program name with args.
4285 set dummy svnversion; ac_word=$2
4286 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4288 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
4289 echo $ECHO_N "(cached) $ECHO_C" >&6
4290 else
4291 if test -n "$SVNVERSION"; then
4292 ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test.
4293 else
4294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4295 for as_dir in $PATH
4297 IFS=$as_save_IFS
4298 test -z "$as_dir" && as_dir=.
4299 for ac_exec_ext in '' $ac_executable_extensions; do
4300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4301 ac_cv_prog_SVNVERSION="found"
4302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4303 break 2
4305 done
4306 done
4307 IFS=$as_save_IFS
4309 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION="not-found"
4312 SVNVERSION=$ac_cv_prog_SVNVERSION
4313 if test -n "$SVNVERSION"; then
4314 { echo "$as_me:$LINENO: result: $SVNVERSION" >&5
4315 echo "${ECHO_T}$SVNVERSION" >&6; }
4316 else
4317 { echo "$as_me:$LINENO: result: no" >&5
4318 echo "${ECHO_T}no" >&6; }
4322 if test $SVNVERSION = found
4323 then
4324 SVNVERSION="svnversion \$(srcdir)"
4325 else
4326 SVNVERSION="echo Unversioned directory"
4329 case $MACHDEP in
4330 bsdos*|hp*|HP*)
4331 # install -d does not work on BSDI or HP-UX
4332 if test -z "$INSTALL"
4333 then
4334 INSTALL="${srcdir}/install-sh -c"
4336 esac
4337 ac_aux_dir=
4338 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4339 if test -f "$ac_dir/install-sh"; then
4340 ac_aux_dir=$ac_dir
4341 ac_install_sh="$ac_aux_dir/install-sh -c"
4342 break
4343 elif test -f "$ac_dir/install.sh"; then
4344 ac_aux_dir=$ac_dir
4345 ac_install_sh="$ac_aux_dir/install.sh -c"
4346 break
4347 elif test -f "$ac_dir/shtool"; then
4348 ac_aux_dir=$ac_dir
4349 ac_install_sh="$ac_aux_dir/shtool install -c"
4350 break
4352 done
4353 if test -z "$ac_aux_dir"; then
4354 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4355 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4356 { (exit 1); exit 1; }; }
4359 # These three variables are undocumented and unsupported,
4360 # and are intended to be withdrawn in a future Autoconf release.
4361 # They can cause serious problems if a builder's source tree is in a directory
4362 # whose full name contains unusual characters.
4363 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4364 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4365 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4368 # Find a good install program. We prefer a C program (faster),
4369 # so one script is as good as another. But avoid the broken or
4370 # incompatible versions:
4371 # SysV /etc/install, /usr/sbin/install
4372 # SunOS /usr/etc/install
4373 # IRIX /sbin/install
4374 # AIX /bin/install
4375 # AmigaOS /C/install, which installs bootblocks on floppy discs
4376 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4377 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4378 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4379 # OS/2's system install, which has a completely different semantic
4380 # ./install, which can be erroneously created by make from ./install.sh.
4381 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4382 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4383 if test -z "$INSTALL"; then
4384 if test "${ac_cv_path_install+set}" = set; then
4385 echo $ECHO_N "(cached) $ECHO_C" >&6
4386 else
4387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4388 for as_dir in $PATH
4390 IFS=$as_save_IFS
4391 test -z "$as_dir" && as_dir=.
4392 # Account for people who put trailing slashes in PATH elements.
4393 case $as_dir/ in
4394 ./ | .// | /cC/* | \
4395 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4396 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4397 /usr/ucb/* ) ;;
4399 # OSF1 and SCO ODT 3.0 have their own names for install.
4400 # Don't use installbsd from OSF since it installs stuff as root
4401 # by default.
4402 for ac_prog in ginstall scoinst install; do
4403 for ac_exec_ext in '' $ac_executable_extensions; do
4404 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4405 if test $ac_prog = install &&
4406 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4407 # AIX install. It has an incompatible calling convention.
4409 elif test $ac_prog = install &&
4410 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4411 # program-specific install script used by HP pwplus--don't use.
4413 else
4414 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4415 break 3
4418 done
4419 done
4421 esac
4422 done
4423 IFS=$as_save_IFS
4427 if test "${ac_cv_path_install+set}" = set; then
4428 INSTALL=$ac_cv_path_install
4429 else
4430 # As a last resort, use the slow shell script. Don't cache a
4431 # value for INSTALL within a source directory, because that will
4432 # break other packages using the cache if that directory is
4433 # removed, or if the value is a relative name.
4434 INSTALL=$ac_install_sh
4437 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4438 echo "${ECHO_T}$INSTALL" >&6; }
4440 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4441 # It thinks the first close brace ends the variable substitution.
4442 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4444 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4446 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4449 # Not every filesystem supports hard links
4451 if test -z "$LN" ; then
4452 case $ac_sys_system in
4453 CYGWIN*) LN="ln -s";;
4454 atheos*) LN="ln -s";;
4455 *) LN=ln;;
4456 esac
4459 # Check for --with-pydebug
4460 { echo "$as_me:$LINENO: checking for --with-pydebug" >&5
4461 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6; }
4463 # Check whether --with-pydebug was given.
4464 if test "${with_pydebug+set}" = set; then
4465 withval=$with_pydebug;
4466 if test "$withval" != no
4467 then
4469 cat >>confdefs.h <<\_ACEOF
4470 #define Py_DEBUG 1
4471 _ACEOF
4473 { echo "$as_me:$LINENO: result: yes" >&5
4474 echo "${ECHO_T}yes" >&6; };
4475 Py_DEBUG='true'
4476 else { echo "$as_me:$LINENO: result: no" >&5
4477 echo "${ECHO_T}no" >&6; }; Py_DEBUG='false'
4479 else
4480 { echo "$as_me:$LINENO: result: no" >&5
4481 echo "${ECHO_T}no" >&6; }
4485 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
4486 # merged with this chunk of code?
4488 # Optimizer/debugger flags
4489 # ------------------------
4490 # (The following bit of code is complicated enough - please keep things
4491 # indented properly. Just pretend you're editing Python code. ;-)
4493 # There are two parallel sets of case statements below, one that checks to
4494 # see if OPT was set and one that does BASECFLAGS setting based upon
4495 # compiler and platform. BASECFLAGS tweaks need to be made even if the
4496 # user set OPT.
4498 # tweak OPT based on compiler and platform, only if the user didn't set
4499 # it on the command line
4501 if test -z "$OPT"
4502 then
4503 case $GCC in
4504 yes)
4505 if test "$CC" != 'g++' ; then
4506 STRICT_PROTO="-Wstrict-prototypes"
4508 # For gcc 4.x we need to use -fwrapv so lets check if its supported
4509 if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then
4510 WRAP="-fwrapv"
4512 case $ac_cv_prog_cc_g in
4513 yes)
4514 if test "$Py_DEBUG" = 'true' ; then
4515 # Optimization messes up debuggers, so turn it off for
4516 # debug builds.
4517 OPT="-g -Wall $STRICT_PROTO"
4518 else
4519 OPT="-g $WRAP -O3 -Wall $STRICT_PROTO"
4523 OPT="-O3 -Wall $STRICT_PROTO"
4525 esac
4526 case $ac_sys_system in
4527 SCO_SV*) OPT="$OPT -m486 -DSCO5"
4529 esac
4533 OPT="-O"
4535 esac
4540 # The -arch flags for universal builds on OSX
4541 UNIVERSAL_ARCH_FLAGS=
4544 # tweak BASECFLAGS based on compiler and platform
4545 case $GCC in
4546 yes)
4547 # Python violates C99 rules, by casting between incompatible
4548 # pointer types. GCC may generate bad code as a result of that,
4549 # so use -fno-strict-aliasing if supported.
4550 { echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
4551 echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6; }
4552 ac_save_cc="$CC"
4553 CC="$CC -fno-strict-aliasing"
4554 if test "$cross_compiling" = yes; then
4555 ac_cv_no_strict_aliasing_ok=no
4556 else
4557 cat >conftest.$ac_ext <<_ACEOF
4558 /* confdefs.h. */
4559 _ACEOF
4560 cat confdefs.h >>conftest.$ac_ext
4561 cat >>conftest.$ac_ext <<_ACEOF
4562 /* end confdefs.h. */
4563 int main() { return 0; }
4564 _ACEOF
4565 rm -f conftest$ac_exeext
4566 if { (ac_try="$ac_link"
4567 case "(($ac_try" in
4568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4569 *) ac_try_echo=$ac_try;;
4570 esac
4571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4572 (eval "$ac_link") 2>&5
4573 ac_status=$?
4574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4576 { (case "(($ac_try" in
4577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4578 *) ac_try_echo=$ac_try;;
4579 esac
4580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4581 (eval "$ac_try") 2>&5
4582 ac_status=$?
4583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4584 (exit $ac_status); }; }; then
4585 ac_cv_no_strict_aliasing_ok=yes
4586 else
4587 echo "$as_me: program exited with status $ac_status" >&5
4588 echo "$as_me: failed program was:" >&5
4589 sed 's/^/| /' conftest.$ac_ext >&5
4591 ( exit $ac_status )
4592 ac_cv_no_strict_aliasing_ok=no
4594 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4598 CC="$ac_save_cc"
4599 { echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
4600 echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6; }
4601 if test $ac_cv_no_strict_aliasing_ok = yes
4602 then
4603 BASECFLAGS="$BASECFLAGS -fno-strict-aliasing"
4606 # if using gcc on alpha, use -mieee to get (near) full IEEE 754
4607 # support. Without this, treatment of subnormals doesn't follow
4608 # the standard.
4609 case $ac_sys_machine in
4610 alpha*)
4611 BASECFLAGS="$BASECFLAGS -mieee"
4613 esac
4615 case $ac_sys_system in
4616 SCO_SV*)
4617 BASECFLAGS="$BASECFLAGS -m486 -DSCO5"
4619 # is there any other compiler on Darwin besides gcc?
4620 Darwin*)
4621 # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd
4622 # used to be here, but non-Apple gcc doesn't accept them.
4625 if test "${enable_universalsdk}"; then
4626 UNIVERSAL_ARCH_FLAGS=""
4627 if test "$UNIVERSAL_ARCHS" = "32-bit" ; then
4628 UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386"
4629 ARCH_RUN_32BIT=""
4631 elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then
4632 UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64"
4633 ARCH_RUN_32BIT="true"
4635 elif test "$UNIVERSAL_ARCHS" = "all" ; then
4636 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64"
4637 ARCH_RUN_32BIT="arch -i386 -ppc"
4639 elif test "$UNIVERSAL_ARCHS" = "intel" ; then
4640 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64"
4641 ARCH_RUN_32BIT="arch -i386"
4643 elif test "$UNIVERSAL_ARCHS" = "3-way" ; then
4644 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64"
4645 ARCH_RUN_32BIT="arch -i386 -ppc"
4647 else
4648 { { echo "$as_me:$LINENO: error: proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" >&5
4649 echo "$as_me: error: proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" >&2;}
4650 { (exit 1); exit 1; }; }
4655 BASECFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${BASECFLAGS}"
4656 tgt=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
4657 if test "${UNIVERSALSDK}" != "/" -a "${tgt}" '>' '10.4' ; then
4658 CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}"
4662 # Calculate the right deployment target for this build.
4664 cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
4665 if test ${cur_target} '>' 10.2; then
4666 cur_target=10.3
4667 if test ${enable_universalsdk}; then
4668 if test "${UNIVERSAL_ARCHS}" = "all"; then
4669 # Ensure that the default platform for a
4670 # 4-way universal build is OSX 10.5,
4671 # that's the first OS release where
4672 # 4-way builds make sense.
4673 cur_target='10.5'
4675 elif test "${UNIVERSAL_ARCHS}" = "3-way"; then
4676 cur_target='10.5'
4678 elif test "${UNIVERSAL_ARCHS}" = "intel"; then
4679 cur_target='10.5'
4681 elif test "${UNIVERSAL_ARCHS}" = "64-bit"; then
4682 cur_target='10.5'
4684 else
4685 if test `arch` = "i386"; then
4686 # On Intel macs default to a deployment
4687 # target of 10.4, that's the first OSX
4688 # release with Intel support.
4689 cur_target="10.4"
4693 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
4695 # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the
4696 # environment with a value that is the same as what we'll use
4697 # in the Makefile to ensure that we'll get the same compiler
4698 # environment during configure and build time.
4699 MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET"
4700 export MACOSX_DEPLOYMENT_TARGET
4701 EXPORT_MACOSX_DEPLOYMENT_TARGET=''
4704 OSF*)
4705 BASECFLAGS="$BASECFLAGS -mieee"
4707 esac
4711 case $ac_sys_system in
4712 OpenUNIX*|UnixWare*)
4713 BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
4715 OSF*)
4716 BASECFLAGS="$BASECFLAGS -ieee -std"
4718 SCO_SV*)
4719 BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5"
4721 esac
4723 esac
4725 if test "$Py_DEBUG" = 'true'; then
4727 else
4728 OPT="-DNDEBUG $OPT"
4731 if test "$ac_arch_flags"
4732 then
4733 BASECFLAGS="$BASECFLAGS $ac_arch_flags"
4736 # disable check for icc since it seems to pass, but generates a warning
4737 if test "$CC" = icc
4738 then
4739 ac_cv_opt_olimit_ok=no
4742 { echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
4743 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6; }
4744 if test "${ac_cv_opt_olimit_ok+set}" = set; then
4745 echo $ECHO_N "(cached) $ECHO_C" >&6
4746 else
4747 ac_save_cc="$CC"
4748 CC="$CC -OPT:Olimit=0"
4749 if test "$cross_compiling" = yes; then
4750 ac_cv_opt_olimit_ok=no
4751 else
4752 cat >conftest.$ac_ext <<_ACEOF
4753 /* confdefs.h. */
4754 _ACEOF
4755 cat confdefs.h >>conftest.$ac_ext
4756 cat >>conftest.$ac_ext <<_ACEOF
4757 /* end confdefs.h. */
4758 int main() { return 0; }
4759 _ACEOF
4760 rm -f conftest$ac_exeext
4761 if { (ac_try="$ac_link"
4762 case "(($ac_try" in
4763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4764 *) ac_try_echo=$ac_try;;
4765 esac
4766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4767 (eval "$ac_link") 2>&5
4768 ac_status=$?
4769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4770 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4771 { (case "(($ac_try" in
4772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4773 *) ac_try_echo=$ac_try;;
4774 esac
4775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4776 (eval "$ac_try") 2>&5
4777 ac_status=$?
4778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779 (exit $ac_status); }; }; then
4780 ac_cv_opt_olimit_ok=yes
4781 else
4782 echo "$as_me: program exited with status $ac_status" >&5
4783 echo "$as_me: failed program was:" >&5
4784 sed 's/^/| /' conftest.$ac_ext >&5
4786 ( exit $ac_status )
4787 ac_cv_opt_olimit_ok=no
4789 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4793 CC="$ac_save_cc"
4796 { echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
4797 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6; }
4798 if test $ac_cv_opt_olimit_ok = yes; then
4799 case $ac_sys_system in
4800 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
4801 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
4802 # environment?
4803 Darwin*)
4806 BASECFLAGS="$BASECFLAGS -OPT:Olimit=0"
4808 esac
4809 else
4810 { echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
4811 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6; }
4812 if test "${ac_cv_olimit_ok+set}" = set; then
4813 echo $ECHO_N "(cached) $ECHO_C" >&6
4814 else
4815 ac_save_cc="$CC"
4816 CC="$CC -Olimit 1500"
4817 if test "$cross_compiling" = yes; then
4818 ac_cv_olimit_ok=no
4819 else
4820 cat >conftest.$ac_ext <<_ACEOF
4821 /* confdefs.h. */
4822 _ACEOF
4823 cat confdefs.h >>conftest.$ac_ext
4824 cat >>conftest.$ac_ext <<_ACEOF
4825 /* end confdefs.h. */
4826 int main() { return 0; }
4827 _ACEOF
4828 rm -f conftest$ac_exeext
4829 if { (ac_try="$ac_link"
4830 case "(($ac_try" in
4831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4832 *) ac_try_echo=$ac_try;;
4833 esac
4834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4835 (eval "$ac_link") 2>&5
4836 ac_status=$?
4837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4838 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4839 { (case "(($ac_try" in
4840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4841 *) ac_try_echo=$ac_try;;
4842 esac
4843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4844 (eval "$ac_try") 2>&5
4845 ac_status=$?
4846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4847 (exit $ac_status); }; }; then
4848 ac_cv_olimit_ok=yes
4849 else
4850 echo "$as_me: program exited with status $ac_status" >&5
4851 echo "$as_me: failed program was:" >&5
4852 sed 's/^/| /' conftest.$ac_ext >&5
4854 ( exit $ac_status )
4855 ac_cv_olimit_ok=no
4857 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4861 CC="$ac_save_cc"
4864 { echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
4865 echo "${ECHO_T}$ac_cv_olimit_ok" >&6; }
4866 if test $ac_cv_olimit_ok = yes; then
4867 BASECFLAGS="$BASECFLAGS -Olimit 1500"
4871 # Check whether GCC supports PyArg_ParseTuple format
4872 if test "$GCC" = "yes"
4873 then
4874 { echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5
4875 echo $ECHO_N "checking whether gcc supports ParseTuple __format__... $ECHO_C" >&6; }
4876 save_CFLAGS=$CFLAGS
4877 CFLAGS="$CFLAGS -Werror"
4878 cat >conftest.$ac_ext <<_ACEOF
4879 /* confdefs.h. */
4880 _ACEOF
4881 cat confdefs.h >>conftest.$ac_ext
4882 cat >>conftest.$ac_ext <<_ACEOF
4883 /* end confdefs.h. */
4885 void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2)));
4888 main ()
4892 return 0;
4894 _ACEOF
4895 rm -f conftest.$ac_objext
4896 if { (ac_try="$ac_compile"
4897 case "(($ac_try" in
4898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4899 *) ac_try_echo=$ac_try;;
4900 esac
4901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4902 (eval "$ac_compile") 2>conftest.er1
4903 ac_status=$?
4904 grep -v '^ *+' conftest.er1 >conftest.err
4905 rm -f conftest.er1
4906 cat conftest.err >&5
4907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4908 (exit $ac_status); } && {
4909 test -z "$ac_c_werror_flag" ||
4910 test ! -s conftest.err
4911 } && test -s conftest.$ac_objext; then
4913 cat >>confdefs.h <<\_ACEOF
4914 #define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1
4915 _ACEOF
4917 { echo "$as_me:$LINENO: result: yes" >&5
4918 echo "${ECHO_T}yes" >&6; }
4919 else
4920 echo "$as_me: failed program was:" >&5
4921 sed 's/^/| /' conftest.$ac_ext >&5
4923 { echo "$as_me:$LINENO: result: no" >&5
4924 echo "${ECHO_T}no" >&6; }
4928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4929 CFLAGS=$save_CFLAGS
4932 # On some compilers, pthreads are available without further options
4933 # (e.g. MacOS X). On some of these systems, the compiler will not
4934 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
4935 # So we have to see first whether pthreads are available without
4936 # options before we can check whether -Kpthread improves anything.
4937 { echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
4938 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6; }
4939 if test "${ac_cv_pthread_is_default+set}" = set; then
4940 echo $ECHO_N "(cached) $ECHO_C" >&6
4941 else
4942 if test "$cross_compiling" = yes; then
4943 ac_cv_pthread_is_default=no
4944 else
4945 cat >conftest.$ac_ext <<_ACEOF
4946 /* confdefs.h. */
4947 _ACEOF
4948 cat confdefs.h >>conftest.$ac_ext
4949 cat >>conftest.$ac_ext <<_ACEOF
4950 /* end confdefs.h. */
4952 #include <pthread.h>
4954 void* routine(void* p){return NULL;}
4956 int main(){
4957 pthread_t p;
4958 if(pthread_create(&p,NULL,routine,NULL)!=0)
4959 return 1;
4960 (void)pthread_detach(p);
4961 return 0;
4964 _ACEOF
4965 rm -f conftest$ac_exeext
4966 if { (ac_try="$ac_link"
4967 case "(($ac_try" in
4968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4969 *) ac_try_echo=$ac_try;;
4970 esac
4971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4972 (eval "$ac_link") 2>&5
4973 ac_status=$?
4974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4976 { (case "(($ac_try" in
4977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4978 *) ac_try_echo=$ac_try;;
4979 esac
4980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4981 (eval "$ac_try") 2>&5
4982 ac_status=$?
4983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4984 (exit $ac_status); }; }; then
4986 ac_cv_pthread_is_default=yes
4987 ac_cv_kthread=no
4988 ac_cv_pthread=no
4990 else
4991 echo "$as_me: program exited with status $ac_status" >&5
4992 echo "$as_me: failed program was:" >&5
4993 sed 's/^/| /' conftest.$ac_ext >&5
4995 ( exit $ac_status )
4996 ac_cv_pthread_is_default=no
4998 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5005 { echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
5006 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6; }
5009 if test $ac_cv_pthread_is_default = yes
5010 then
5011 ac_cv_kpthread=no
5012 else
5013 # -Kpthread, if available, provides the right #defines
5014 # and linker options to make pthread_create available
5015 # Some compilers won't report that they do not support -Kpthread,
5016 # so we need to run a program to see whether it really made the
5017 # function available.
5018 { echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
5019 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6; }
5020 if test "${ac_cv_kpthread+set}" = set; then
5021 echo $ECHO_N "(cached) $ECHO_C" >&6
5022 else
5023 ac_save_cc="$CC"
5024 CC="$CC -Kpthread"
5025 if test "$cross_compiling" = yes; then
5026 ac_cv_kpthread=no
5027 else
5028 cat >conftest.$ac_ext <<_ACEOF
5029 /* confdefs.h. */
5030 _ACEOF
5031 cat confdefs.h >>conftest.$ac_ext
5032 cat >>conftest.$ac_ext <<_ACEOF
5033 /* end confdefs.h. */
5035 #include <pthread.h>
5037 void* routine(void* p){return NULL;}
5039 int main(){
5040 pthread_t p;
5041 if(pthread_create(&p,NULL,routine,NULL)!=0)
5042 return 1;
5043 (void)pthread_detach(p);
5044 return 0;
5047 _ACEOF
5048 rm -f conftest$ac_exeext
5049 if { (ac_try="$ac_link"
5050 case "(($ac_try" in
5051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5052 *) ac_try_echo=$ac_try;;
5053 esac
5054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5055 (eval "$ac_link") 2>&5
5056 ac_status=$?
5057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5058 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5059 { (case "(($ac_try" in
5060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5061 *) ac_try_echo=$ac_try;;
5062 esac
5063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5064 (eval "$ac_try") 2>&5
5065 ac_status=$?
5066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067 (exit $ac_status); }; }; then
5068 ac_cv_kpthread=yes
5069 else
5070 echo "$as_me: program exited with status $ac_status" >&5
5071 echo "$as_me: failed program was:" >&5
5072 sed 's/^/| /' conftest.$ac_ext >&5
5074 ( exit $ac_status )
5075 ac_cv_kpthread=no
5077 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5081 CC="$ac_save_cc"
5084 { echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
5085 echo "${ECHO_T}$ac_cv_kpthread" >&6; }
5088 if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
5089 then
5090 # -Kthread, if available, provides the right #defines
5091 # and linker options to make pthread_create available
5092 # Some compilers won't report that they do not support -Kthread,
5093 # so we need to run a program to see whether it really made the
5094 # function available.
5095 { echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
5096 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6; }
5097 if test "${ac_cv_kthread+set}" = set; then
5098 echo $ECHO_N "(cached) $ECHO_C" >&6
5099 else
5100 ac_save_cc="$CC"
5101 CC="$CC -Kthread"
5102 if test "$cross_compiling" = yes; then
5103 ac_cv_kthread=no
5104 else
5105 cat >conftest.$ac_ext <<_ACEOF
5106 /* confdefs.h. */
5107 _ACEOF
5108 cat confdefs.h >>conftest.$ac_ext
5109 cat >>conftest.$ac_ext <<_ACEOF
5110 /* end confdefs.h. */
5112 #include <pthread.h>
5114 void* routine(void* p){return NULL;}
5116 int main(){
5117 pthread_t p;
5118 if(pthread_create(&p,NULL,routine,NULL)!=0)
5119 return 1;
5120 (void)pthread_detach(p);
5121 return 0;
5124 _ACEOF
5125 rm -f conftest$ac_exeext
5126 if { (ac_try="$ac_link"
5127 case "(($ac_try" in
5128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5129 *) ac_try_echo=$ac_try;;
5130 esac
5131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5132 (eval "$ac_link") 2>&5
5133 ac_status=$?
5134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5136 { (case "(($ac_try" in
5137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5138 *) ac_try_echo=$ac_try;;
5139 esac
5140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5141 (eval "$ac_try") 2>&5
5142 ac_status=$?
5143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5144 (exit $ac_status); }; }; then
5145 ac_cv_kthread=yes
5146 else
5147 echo "$as_me: program exited with status $ac_status" >&5
5148 echo "$as_me: failed program was:" >&5
5149 sed 's/^/| /' conftest.$ac_ext >&5
5151 ( exit $ac_status )
5152 ac_cv_kthread=no
5154 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5158 CC="$ac_save_cc"
5161 { echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
5162 echo "${ECHO_T}$ac_cv_kthread" >&6; }
5165 if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
5166 then
5167 # -pthread, if available, provides the right #defines
5168 # and linker options to make pthread_create available
5169 # Some compilers won't report that they do not support -pthread,
5170 # so we need to run a program to see whether it really made the
5171 # function available.
5172 { echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
5173 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6; }
5174 if test "${ac_cv_thread+set}" = set; then
5175 echo $ECHO_N "(cached) $ECHO_C" >&6
5176 else
5177 ac_save_cc="$CC"
5178 CC="$CC -pthread"
5179 if test "$cross_compiling" = yes; then
5180 ac_cv_pthread=no
5181 else
5182 cat >conftest.$ac_ext <<_ACEOF
5183 /* confdefs.h. */
5184 _ACEOF
5185 cat confdefs.h >>conftest.$ac_ext
5186 cat >>conftest.$ac_ext <<_ACEOF
5187 /* end confdefs.h. */
5189 #include <pthread.h>
5191 void* routine(void* p){return NULL;}
5193 int main(){
5194 pthread_t p;
5195 if(pthread_create(&p,NULL,routine,NULL)!=0)
5196 return 1;
5197 (void)pthread_detach(p);
5198 return 0;
5201 _ACEOF
5202 rm -f conftest$ac_exeext
5203 if { (ac_try="$ac_link"
5204 case "(($ac_try" in
5205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5206 *) ac_try_echo=$ac_try;;
5207 esac
5208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5209 (eval "$ac_link") 2>&5
5210 ac_status=$?
5211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5213 { (case "(($ac_try" in
5214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5215 *) ac_try_echo=$ac_try;;
5216 esac
5217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5218 (eval "$ac_try") 2>&5
5219 ac_status=$?
5220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5221 (exit $ac_status); }; }; then
5222 ac_cv_pthread=yes
5223 else
5224 echo "$as_me: program exited with status $ac_status" >&5
5225 echo "$as_me: failed program was:" >&5
5226 sed 's/^/| /' conftest.$ac_ext >&5
5228 ( exit $ac_status )
5229 ac_cv_pthread=no
5231 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5235 CC="$ac_save_cc"
5238 { echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
5239 echo "${ECHO_T}$ac_cv_pthread" >&6; }
5242 # If we have set a CC compiler flag for thread support then
5243 # check if it works for CXX, too.
5244 ac_cv_cxx_thread=no
5245 if test ! -z "$CXX"
5246 then
5247 { echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
5248 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6; }
5249 ac_save_cxx="$CXX"
5251 if test "$ac_cv_kpthread" = "yes"
5252 then
5253 CXX="$CXX -Kpthread"
5254 ac_cv_cxx_thread=yes
5255 elif test "$ac_cv_kthread" = "yes"
5256 then
5257 CXX="$CXX -Kthread"
5258 ac_cv_cxx_thread=yes
5259 elif test "$ac_cv_pthread" = "yes"
5260 then
5261 CXX="$CXX -pthread"
5262 ac_cv_cxx_thread=yes
5265 if test $ac_cv_cxx_thread = yes
5266 then
5267 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
5268 $CXX -c conftest.$ac_ext 2>&5
5269 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
5270 && test -s conftest$ac_exeext && ./conftest$ac_exeext
5271 then
5272 ac_cv_cxx_thread=yes
5273 else
5274 ac_cv_cxx_thread=no
5276 rm -fr conftest*
5278 { echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
5279 echo "${ECHO_T}$ac_cv_cxx_thread" >&6; }
5281 CXX="$ac_save_cxx"
5284 # checks for header files
5285 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5286 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5287 if test "${ac_cv_header_stdc+set}" = set; then
5288 echo $ECHO_N "(cached) $ECHO_C" >&6
5289 else
5290 cat >conftest.$ac_ext <<_ACEOF
5291 /* confdefs.h. */
5292 _ACEOF
5293 cat confdefs.h >>conftest.$ac_ext
5294 cat >>conftest.$ac_ext <<_ACEOF
5295 /* end confdefs.h. */
5296 #include <stdlib.h>
5297 #include <stdarg.h>
5298 #include <string.h>
5299 #include <float.h>
5302 main ()
5306 return 0;
5308 _ACEOF
5309 rm -f conftest.$ac_objext
5310 if { (ac_try="$ac_compile"
5311 case "(($ac_try" in
5312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5313 *) ac_try_echo=$ac_try;;
5314 esac
5315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5316 (eval "$ac_compile") 2>conftest.er1
5317 ac_status=$?
5318 grep -v '^ *+' conftest.er1 >conftest.err
5319 rm -f conftest.er1
5320 cat conftest.err >&5
5321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322 (exit $ac_status); } && {
5323 test -z "$ac_c_werror_flag" ||
5324 test ! -s conftest.err
5325 } && test -s conftest.$ac_objext; then
5326 ac_cv_header_stdc=yes
5327 else
5328 echo "$as_me: failed program was:" >&5
5329 sed 's/^/| /' conftest.$ac_ext >&5
5331 ac_cv_header_stdc=no
5334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5336 if test $ac_cv_header_stdc = yes; then
5337 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5338 cat >conftest.$ac_ext <<_ACEOF
5339 /* confdefs.h. */
5340 _ACEOF
5341 cat confdefs.h >>conftest.$ac_ext
5342 cat >>conftest.$ac_ext <<_ACEOF
5343 /* end confdefs.h. */
5344 #include <string.h>
5346 _ACEOF
5347 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5348 $EGREP "memchr" >/dev/null 2>&1; then
5350 else
5351 ac_cv_header_stdc=no
5353 rm -f conftest*
5357 if test $ac_cv_header_stdc = yes; then
5358 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5359 cat >conftest.$ac_ext <<_ACEOF
5360 /* confdefs.h. */
5361 _ACEOF
5362 cat confdefs.h >>conftest.$ac_ext
5363 cat >>conftest.$ac_ext <<_ACEOF
5364 /* end confdefs.h. */
5365 #include <stdlib.h>
5367 _ACEOF
5368 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5369 $EGREP "free" >/dev/null 2>&1; then
5371 else
5372 ac_cv_header_stdc=no
5374 rm -f conftest*
5378 if test $ac_cv_header_stdc = yes; then
5379 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5380 if test "$cross_compiling" = yes; then
5382 else
5383 cat >conftest.$ac_ext <<_ACEOF
5384 /* confdefs.h. */
5385 _ACEOF
5386 cat confdefs.h >>conftest.$ac_ext
5387 cat >>conftest.$ac_ext <<_ACEOF
5388 /* end confdefs.h. */
5389 #include <ctype.h>
5390 #include <stdlib.h>
5391 #if ((' ' & 0x0FF) == 0x020)
5392 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5393 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5394 #else
5395 # define ISLOWER(c) \
5396 (('a' <= (c) && (c) <= 'i') \
5397 || ('j' <= (c) && (c) <= 'r') \
5398 || ('s' <= (c) && (c) <= 'z'))
5399 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5400 #endif
5402 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5404 main ()
5406 int i;
5407 for (i = 0; i < 256; i++)
5408 if (XOR (islower (i), ISLOWER (i))
5409 || toupper (i) != TOUPPER (i))
5410 return 2;
5411 return 0;
5413 _ACEOF
5414 rm -f conftest$ac_exeext
5415 if { (ac_try="$ac_link"
5416 case "(($ac_try" in
5417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5418 *) ac_try_echo=$ac_try;;
5419 esac
5420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5421 (eval "$ac_link") 2>&5
5422 ac_status=$?
5423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5424 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5425 { (case "(($ac_try" in
5426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5427 *) ac_try_echo=$ac_try;;
5428 esac
5429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5430 (eval "$ac_try") 2>&5
5431 ac_status=$?
5432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5433 (exit $ac_status); }; }; then
5435 else
5436 echo "$as_me: program exited with status $ac_status" >&5
5437 echo "$as_me: failed program was:" >&5
5438 sed 's/^/| /' conftest.$ac_ext >&5
5440 ( exit $ac_status )
5441 ac_cv_header_stdc=no
5443 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5449 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5450 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5451 if test $ac_cv_header_stdc = yes; then
5453 cat >>confdefs.h <<\_ACEOF
5454 #define STDC_HEADERS 1
5455 _ACEOF
5459 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5469 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5470 inttypes.h stdint.h unistd.h
5472 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5473 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5474 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5475 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5476 echo $ECHO_N "(cached) $ECHO_C" >&6
5477 else
5478 cat >conftest.$ac_ext <<_ACEOF
5479 /* confdefs.h. */
5480 _ACEOF
5481 cat confdefs.h >>conftest.$ac_ext
5482 cat >>conftest.$ac_ext <<_ACEOF
5483 /* end confdefs.h. */
5484 $ac_includes_default
5486 #include <$ac_header>
5487 _ACEOF
5488 rm -f conftest.$ac_objext
5489 if { (ac_try="$ac_compile"
5490 case "(($ac_try" in
5491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5492 *) ac_try_echo=$ac_try;;
5493 esac
5494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5495 (eval "$ac_compile") 2>conftest.er1
5496 ac_status=$?
5497 grep -v '^ *+' conftest.er1 >conftest.err
5498 rm -f conftest.er1
5499 cat conftest.err >&5
5500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5501 (exit $ac_status); } && {
5502 test -z "$ac_c_werror_flag" ||
5503 test ! -s conftest.err
5504 } && test -s conftest.$ac_objext; then
5505 eval "$as_ac_Header=yes"
5506 else
5507 echo "$as_me: failed program was:" >&5
5508 sed 's/^/| /' conftest.$ac_ext >&5
5510 eval "$as_ac_Header=no"
5513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5515 ac_res=`eval echo '${'$as_ac_Header'}'`
5516 { echo "$as_me:$LINENO: result: $ac_res" >&5
5517 echo "${ECHO_T}$ac_res" >&6; }
5518 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5519 cat >>confdefs.h <<_ACEOF
5520 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5521 _ACEOF
5525 done
5582 for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \
5583 fcntl.h grp.h \
5584 ieeefp.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
5585 shadow.h signal.h stdint.h stropts.h termios.h thread.h \
5586 unistd.h utime.h \
5587 sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \
5588 sys/lock.h sys/mkdev.h sys/modem.h \
5589 sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \
5590 sys/termio.h sys/time.h \
5591 sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
5592 sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
5593 bluetooth/bluetooth.h linux/tipc.h
5595 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5596 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5597 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5599 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5600 echo $ECHO_N "(cached) $ECHO_C" >&6
5602 ac_res=`eval echo '${'$as_ac_Header'}'`
5603 { echo "$as_me:$LINENO: result: $ac_res" >&5
5604 echo "${ECHO_T}$ac_res" >&6; }
5605 else
5606 # Is the header compilable?
5607 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5608 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5609 cat >conftest.$ac_ext <<_ACEOF
5610 /* confdefs.h. */
5611 _ACEOF
5612 cat confdefs.h >>conftest.$ac_ext
5613 cat >>conftest.$ac_ext <<_ACEOF
5614 /* end confdefs.h. */
5615 $ac_includes_default
5616 #include <$ac_header>
5617 _ACEOF
5618 rm -f conftest.$ac_objext
5619 if { (ac_try="$ac_compile"
5620 case "(($ac_try" in
5621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5622 *) ac_try_echo=$ac_try;;
5623 esac
5624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5625 (eval "$ac_compile") 2>conftest.er1
5626 ac_status=$?
5627 grep -v '^ *+' conftest.er1 >conftest.err
5628 rm -f conftest.er1
5629 cat conftest.err >&5
5630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5631 (exit $ac_status); } && {
5632 test -z "$ac_c_werror_flag" ||
5633 test ! -s conftest.err
5634 } && test -s conftest.$ac_objext; then
5635 ac_header_compiler=yes
5636 else
5637 echo "$as_me: failed program was:" >&5
5638 sed 's/^/| /' conftest.$ac_ext >&5
5640 ac_header_compiler=no
5643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5644 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5645 echo "${ECHO_T}$ac_header_compiler" >&6; }
5647 # Is the header present?
5648 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5649 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5650 cat >conftest.$ac_ext <<_ACEOF
5651 /* confdefs.h. */
5652 _ACEOF
5653 cat confdefs.h >>conftest.$ac_ext
5654 cat >>conftest.$ac_ext <<_ACEOF
5655 /* end confdefs.h. */
5656 #include <$ac_header>
5657 _ACEOF
5658 if { (ac_try="$ac_cpp conftest.$ac_ext"
5659 case "(($ac_try" in
5660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5661 *) ac_try_echo=$ac_try;;
5662 esac
5663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5664 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5665 ac_status=$?
5666 grep -v '^ *+' conftest.er1 >conftest.err
5667 rm -f conftest.er1
5668 cat conftest.err >&5
5669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670 (exit $ac_status); } >/dev/null && {
5671 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5672 test ! -s conftest.err
5673 }; then
5674 ac_header_preproc=yes
5675 else
5676 echo "$as_me: failed program was:" >&5
5677 sed 's/^/| /' conftest.$ac_ext >&5
5679 ac_header_preproc=no
5682 rm -f conftest.err conftest.$ac_ext
5683 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5684 echo "${ECHO_T}$ac_header_preproc" >&6; }
5686 # So? What about this header?
5687 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5688 yes:no: )
5689 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5690 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5691 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5692 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5693 ac_header_preproc=yes
5695 no:yes:* )
5696 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5697 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5698 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5699 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5700 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5701 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5702 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5703 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5704 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5705 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5706 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5707 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5708 ( cat <<\_ASBOX
5709 ## -------------------------------------- ##
5710 ## Report this to http://bugs.python.org/ ##
5711 ## -------------------------------------- ##
5712 _ASBOX
5713 ) | sed "s/^/$as_me: WARNING: /" >&2
5715 esac
5716 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5717 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5718 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5719 echo $ECHO_N "(cached) $ECHO_C" >&6
5720 else
5721 eval "$as_ac_Header=\$ac_header_preproc"
5723 ac_res=`eval echo '${'$as_ac_Header'}'`
5724 { echo "$as_me:$LINENO: result: $ac_res" >&5
5725 echo "${ECHO_T}$ac_res" >&6; }
5728 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5729 cat >>confdefs.h <<_ACEOF
5730 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5731 _ACEOF
5735 done
5742 ac_header_dirent=no
5743 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5744 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5745 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5746 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5747 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5748 echo $ECHO_N "(cached) $ECHO_C" >&6
5749 else
5750 cat >conftest.$ac_ext <<_ACEOF
5751 /* confdefs.h. */
5752 _ACEOF
5753 cat confdefs.h >>conftest.$ac_ext
5754 cat >>conftest.$ac_ext <<_ACEOF
5755 /* end confdefs.h. */
5756 #include <sys/types.h>
5757 #include <$ac_hdr>
5760 main ()
5762 if ((DIR *) 0)
5763 return 0;
5765 return 0;
5767 _ACEOF
5768 rm -f conftest.$ac_objext
5769 if { (ac_try="$ac_compile"
5770 case "(($ac_try" in
5771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5772 *) ac_try_echo=$ac_try;;
5773 esac
5774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5775 (eval "$ac_compile") 2>conftest.er1
5776 ac_status=$?
5777 grep -v '^ *+' conftest.er1 >conftest.err
5778 rm -f conftest.er1
5779 cat conftest.err >&5
5780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781 (exit $ac_status); } && {
5782 test -z "$ac_c_werror_flag" ||
5783 test ! -s conftest.err
5784 } && test -s conftest.$ac_objext; then
5785 eval "$as_ac_Header=yes"
5786 else
5787 echo "$as_me: failed program was:" >&5
5788 sed 's/^/| /' conftest.$ac_ext >&5
5790 eval "$as_ac_Header=no"
5793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5795 ac_res=`eval echo '${'$as_ac_Header'}'`
5796 { echo "$as_me:$LINENO: result: $ac_res" >&5
5797 echo "${ECHO_T}$ac_res" >&6; }
5798 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5799 cat >>confdefs.h <<_ACEOF
5800 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5801 _ACEOF
5803 ac_header_dirent=$ac_hdr; break
5806 done
5807 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5808 if test $ac_header_dirent = dirent.h; then
5809 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5810 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5811 if test "${ac_cv_search_opendir+set}" = set; then
5812 echo $ECHO_N "(cached) $ECHO_C" >&6
5813 else
5814 ac_func_search_save_LIBS=$LIBS
5815 cat >conftest.$ac_ext <<_ACEOF
5816 /* confdefs.h. */
5817 _ACEOF
5818 cat confdefs.h >>conftest.$ac_ext
5819 cat >>conftest.$ac_ext <<_ACEOF
5820 /* end confdefs.h. */
5822 /* Override any GCC internal prototype to avoid an error.
5823 Use char because int might match the return type of a GCC
5824 builtin and then its argument prototype would still apply. */
5825 #ifdef __cplusplus
5826 extern "C"
5827 #endif
5828 char opendir ();
5830 main ()
5832 return opendir ();
5834 return 0;
5836 _ACEOF
5837 for ac_lib in '' dir; do
5838 if test -z "$ac_lib"; then
5839 ac_res="none required"
5840 else
5841 ac_res=-l$ac_lib
5842 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5844 rm -f conftest.$ac_objext conftest$ac_exeext
5845 if { (ac_try="$ac_link"
5846 case "(($ac_try" in
5847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5848 *) ac_try_echo=$ac_try;;
5849 esac
5850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5851 (eval "$ac_link") 2>conftest.er1
5852 ac_status=$?
5853 grep -v '^ *+' conftest.er1 >conftest.err
5854 rm -f conftest.er1
5855 cat conftest.err >&5
5856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5857 (exit $ac_status); } && {
5858 test -z "$ac_c_werror_flag" ||
5859 test ! -s conftest.err
5860 } && test -s conftest$ac_exeext &&
5861 $as_test_x conftest$ac_exeext; then
5862 ac_cv_search_opendir=$ac_res
5863 else
5864 echo "$as_me: failed program was:" >&5
5865 sed 's/^/| /' conftest.$ac_ext >&5
5870 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5871 conftest$ac_exeext
5872 if test "${ac_cv_search_opendir+set}" = set; then
5873 break
5875 done
5876 if test "${ac_cv_search_opendir+set}" = set; then
5878 else
5879 ac_cv_search_opendir=no
5881 rm conftest.$ac_ext
5882 LIBS=$ac_func_search_save_LIBS
5884 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5885 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5886 ac_res=$ac_cv_search_opendir
5887 if test "$ac_res" != no; then
5888 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5892 else
5893 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5894 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5895 if test "${ac_cv_search_opendir+set}" = set; then
5896 echo $ECHO_N "(cached) $ECHO_C" >&6
5897 else
5898 ac_func_search_save_LIBS=$LIBS
5899 cat >conftest.$ac_ext <<_ACEOF
5900 /* confdefs.h. */
5901 _ACEOF
5902 cat confdefs.h >>conftest.$ac_ext
5903 cat >>conftest.$ac_ext <<_ACEOF
5904 /* end confdefs.h. */
5906 /* Override any GCC internal prototype to avoid an error.
5907 Use char because int might match the return type of a GCC
5908 builtin and then its argument prototype would still apply. */
5909 #ifdef __cplusplus
5910 extern "C"
5911 #endif
5912 char opendir ();
5914 main ()
5916 return opendir ();
5918 return 0;
5920 _ACEOF
5921 for ac_lib in '' x; do
5922 if test -z "$ac_lib"; then
5923 ac_res="none required"
5924 else
5925 ac_res=-l$ac_lib
5926 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5928 rm -f conftest.$ac_objext conftest$ac_exeext
5929 if { (ac_try="$ac_link"
5930 case "(($ac_try" in
5931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5932 *) ac_try_echo=$ac_try;;
5933 esac
5934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5935 (eval "$ac_link") 2>conftest.er1
5936 ac_status=$?
5937 grep -v '^ *+' conftest.er1 >conftest.err
5938 rm -f conftest.er1
5939 cat conftest.err >&5
5940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941 (exit $ac_status); } && {
5942 test -z "$ac_c_werror_flag" ||
5943 test ! -s conftest.err
5944 } && test -s conftest$ac_exeext &&
5945 $as_test_x conftest$ac_exeext; then
5946 ac_cv_search_opendir=$ac_res
5947 else
5948 echo "$as_me: failed program was:" >&5
5949 sed 's/^/| /' conftest.$ac_ext >&5
5954 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5955 conftest$ac_exeext
5956 if test "${ac_cv_search_opendir+set}" = set; then
5957 break
5959 done
5960 if test "${ac_cv_search_opendir+set}" = set; then
5962 else
5963 ac_cv_search_opendir=no
5965 rm conftest.$ac_ext
5966 LIBS=$ac_func_search_save_LIBS
5968 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5969 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5970 ac_res=$ac_cv_search_opendir
5971 if test "$ac_res" != no; then
5972 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5978 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
5979 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
5980 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
5981 echo $ECHO_N "(cached) $ECHO_C" >&6
5982 else
5983 cat >conftest.$ac_ext <<_ACEOF
5984 /* confdefs.h. */
5985 _ACEOF
5986 cat confdefs.h >>conftest.$ac_ext
5987 cat >>conftest.$ac_ext <<_ACEOF
5988 /* end confdefs.h. */
5989 #include <sys/types.h>
5991 main ()
5993 return makedev(0, 0);
5995 return 0;
5997 _ACEOF
5998 rm -f conftest.$ac_objext conftest$ac_exeext
5999 if { (ac_try="$ac_link"
6000 case "(($ac_try" in
6001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6002 *) ac_try_echo=$ac_try;;
6003 esac
6004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6005 (eval "$ac_link") 2>conftest.er1
6006 ac_status=$?
6007 grep -v '^ *+' conftest.er1 >conftest.err
6008 rm -f conftest.er1
6009 cat conftest.err >&5
6010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011 (exit $ac_status); } && {
6012 test -z "$ac_c_werror_flag" ||
6013 test ! -s conftest.err
6014 } && test -s conftest$ac_exeext &&
6015 $as_test_x conftest$ac_exeext; then
6016 ac_cv_header_sys_types_h_makedev=yes
6017 else
6018 echo "$as_me: failed program was:" >&5
6019 sed 's/^/| /' conftest.$ac_ext >&5
6021 ac_cv_header_sys_types_h_makedev=no
6024 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6025 conftest$ac_exeext conftest.$ac_ext
6028 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
6029 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
6031 if test $ac_cv_header_sys_types_h_makedev = no; then
6032 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6033 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6034 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6035 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6036 echo $ECHO_N "(cached) $ECHO_C" >&6
6038 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6039 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6040 else
6041 # Is the header compilable?
6042 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
6043 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
6044 cat >conftest.$ac_ext <<_ACEOF
6045 /* confdefs.h. */
6046 _ACEOF
6047 cat confdefs.h >>conftest.$ac_ext
6048 cat >>conftest.$ac_ext <<_ACEOF
6049 /* end confdefs.h. */
6050 $ac_includes_default
6051 #include <sys/mkdev.h>
6052 _ACEOF
6053 rm -f conftest.$ac_objext
6054 if { (ac_try="$ac_compile"
6055 case "(($ac_try" in
6056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6057 *) ac_try_echo=$ac_try;;
6058 esac
6059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6060 (eval "$ac_compile") 2>conftest.er1
6061 ac_status=$?
6062 grep -v '^ *+' conftest.er1 >conftest.err
6063 rm -f conftest.er1
6064 cat conftest.err >&5
6065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066 (exit $ac_status); } && {
6067 test -z "$ac_c_werror_flag" ||
6068 test ! -s conftest.err
6069 } && test -s conftest.$ac_objext; then
6070 ac_header_compiler=yes
6071 else
6072 echo "$as_me: failed program was:" >&5
6073 sed 's/^/| /' conftest.$ac_ext >&5
6075 ac_header_compiler=no
6078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6079 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6080 echo "${ECHO_T}$ac_header_compiler" >&6; }
6082 # Is the header present?
6083 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
6084 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
6085 cat >conftest.$ac_ext <<_ACEOF
6086 /* confdefs.h. */
6087 _ACEOF
6088 cat confdefs.h >>conftest.$ac_ext
6089 cat >>conftest.$ac_ext <<_ACEOF
6090 /* end confdefs.h. */
6091 #include <sys/mkdev.h>
6092 _ACEOF
6093 if { (ac_try="$ac_cpp conftest.$ac_ext"
6094 case "(($ac_try" in
6095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6096 *) ac_try_echo=$ac_try;;
6097 esac
6098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6099 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6100 ac_status=$?
6101 grep -v '^ *+' conftest.er1 >conftest.err
6102 rm -f conftest.er1
6103 cat conftest.err >&5
6104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6105 (exit $ac_status); } >/dev/null && {
6106 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6107 test ! -s conftest.err
6108 }; then
6109 ac_header_preproc=yes
6110 else
6111 echo "$as_me: failed program was:" >&5
6112 sed 's/^/| /' conftest.$ac_ext >&5
6114 ac_header_preproc=no
6117 rm -f conftest.err conftest.$ac_ext
6118 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6119 echo "${ECHO_T}$ac_header_preproc" >&6; }
6121 # So? What about this header?
6122 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6123 yes:no: )
6124 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
6125 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6126 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
6127 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
6128 ac_header_preproc=yes
6130 no:yes:* )
6131 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
6132 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
6133 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
6134 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
6135 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
6136 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
6137 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
6138 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
6139 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
6140 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
6141 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
6142 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
6143 ( cat <<\_ASBOX
6144 ## -------------------------------------- ##
6145 ## Report this to http://bugs.python.org/ ##
6146 ## -------------------------------------- ##
6147 _ASBOX
6148 ) | sed "s/^/$as_me: WARNING: /" >&2
6150 esac
6151 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6152 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6153 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6154 echo $ECHO_N "(cached) $ECHO_C" >&6
6155 else
6156 ac_cv_header_sys_mkdev_h=$ac_header_preproc
6158 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6159 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6162 if test $ac_cv_header_sys_mkdev_h = yes; then
6164 cat >>confdefs.h <<\_ACEOF
6165 #define MAJOR_IN_MKDEV 1
6166 _ACEOF
6172 if test $ac_cv_header_sys_mkdev_h = no; then
6173 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6174 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6175 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6176 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6177 echo $ECHO_N "(cached) $ECHO_C" >&6
6179 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6180 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6181 else
6182 # Is the header compilable?
6183 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
6184 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
6185 cat >conftest.$ac_ext <<_ACEOF
6186 /* confdefs.h. */
6187 _ACEOF
6188 cat confdefs.h >>conftest.$ac_ext
6189 cat >>conftest.$ac_ext <<_ACEOF
6190 /* end confdefs.h. */
6191 $ac_includes_default
6192 #include <sys/sysmacros.h>
6193 _ACEOF
6194 rm -f conftest.$ac_objext
6195 if { (ac_try="$ac_compile"
6196 case "(($ac_try" in
6197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6198 *) ac_try_echo=$ac_try;;
6199 esac
6200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6201 (eval "$ac_compile") 2>conftest.er1
6202 ac_status=$?
6203 grep -v '^ *+' conftest.er1 >conftest.err
6204 rm -f conftest.er1
6205 cat conftest.err >&5
6206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6207 (exit $ac_status); } && {
6208 test -z "$ac_c_werror_flag" ||
6209 test ! -s conftest.err
6210 } && test -s conftest.$ac_objext; then
6211 ac_header_compiler=yes
6212 else
6213 echo "$as_me: failed program was:" >&5
6214 sed 's/^/| /' conftest.$ac_ext >&5
6216 ac_header_compiler=no
6219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6220 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6221 echo "${ECHO_T}$ac_header_compiler" >&6; }
6223 # Is the header present?
6224 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
6225 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
6226 cat >conftest.$ac_ext <<_ACEOF
6227 /* confdefs.h. */
6228 _ACEOF
6229 cat confdefs.h >>conftest.$ac_ext
6230 cat >>conftest.$ac_ext <<_ACEOF
6231 /* end confdefs.h. */
6232 #include <sys/sysmacros.h>
6233 _ACEOF
6234 if { (ac_try="$ac_cpp conftest.$ac_ext"
6235 case "(($ac_try" in
6236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6237 *) ac_try_echo=$ac_try;;
6238 esac
6239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6240 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6241 ac_status=$?
6242 grep -v '^ *+' conftest.er1 >conftest.err
6243 rm -f conftest.er1
6244 cat conftest.err >&5
6245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6246 (exit $ac_status); } >/dev/null && {
6247 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6248 test ! -s conftest.err
6249 }; then
6250 ac_header_preproc=yes
6251 else
6252 echo "$as_me: failed program was:" >&5
6253 sed 's/^/| /' conftest.$ac_ext >&5
6255 ac_header_preproc=no
6258 rm -f conftest.err conftest.$ac_ext
6259 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6260 echo "${ECHO_T}$ac_header_preproc" >&6; }
6262 # So? What about this header?
6263 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6264 yes:no: )
6265 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
6266 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6267 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
6268 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
6269 ac_header_preproc=yes
6271 no:yes:* )
6272 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
6273 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
6274 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
6275 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
6276 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
6277 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
6278 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
6279 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
6280 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
6281 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
6282 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
6283 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
6284 ( cat <<\_ASBOX
6285 ## -------------------------------------- ##
6286 ## Report this to http://bugs.python.org/ ##
6287 ## -------------------------------------- ##
6288 _ASBOX
6289 ) | sed "s/^/$as_me: WARNING: /" >&2
6291 esac
6292 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6293 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6294 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6295 echo $ECHO_N "(cached) $ECHO_C" >&6
6296 else
6297 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
6299 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6300 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6303 if test $ac_cv_header_sys_sysmacros_h = yes; then
6305 cat >>confdefs.h <<\_ACEOF
6306 #define MAJOR_IN_SYSMACROS 1
6307 _ACEOF
6316 # On Solaris, term.h requires curses.h
6318 for ac_header in term.h
6320 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6321 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6323 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6324 echo $ECHO_N "(cached) $ECHO_C" >&6
6325 else
6326 cat >conftest.$ac_ext <<_ACEOF
6327 /* confdefs.h. */
6328 _ACEOF
6329 cat confdefs.h >>conftest.$ac_ext
6330 cat >>conftest.$ac_ext <<_ACEOF
6331 /* end confdefs.h. */
6333 #ifdef HAVE_CURSES_H
6334 #include <curses.h>
6335 #endif
6338 #include <$ac_header>
6339 _ACEOF
6340 rm -f conftest.$ac_objext
6341 if { (ac_try="$ac_compile"
6342 case "(($ac_try" in
6343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6344 *) ac_try_echo=$ac_try;;
6345 esac
6346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6347 (eval "$ac_compile") 2>conftest.er1
6348 ac_status=$?
6349 grep -v '^ *+' conftest.er1 >conftest.err
6350 rm -f conftest.er1
6351 cat conftest.err >&5
6352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353 (exit $ac_status); } && {
6354 test -z "$ac_c_werror_flag" ||
6355 test ! -s conftest.err
6356 } && test -s conftest.$ac_objext; then
6357 eval "$as_ac_Header=yes"
6358 else
6359 echo "$as_me: failed program was:" >&5
6360 sed 's/^/| /' conftest.$ac_ext >&5
6362 eval "$as_ac_Header=no"
6365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6367 ac_res=`eval echo '${'$as_ac_Header'}'`
6368 { echo "$as_me:$LINENO: result: $ac_res" >&5
6369 echo "${ECHO_T}$ac_res" >&6; }
6370 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6371 cat >>confdefs.h <<_ACEOF
6372 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6373 _ACEOF
6377 done
6380 # On Linux, netlink.h requires asm/types.h
6382 for ac_header in linux/netlink.h
6384 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6385 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6386 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6387 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6388 echo $ECHO_N "(cached) $ECHO_C" >&6
6389 else
6390 cat >conftest.$ac_ext <<_ACEOF
6391 /* confdefs.h. */
6392 _ACEOF
6393 cat confdefs.h >>conftest.$ac_ext
6394 cat >>conftest.$ac_ext <<_ACEOF
6395 /* end confdefs.h. */
6397 #ifdef HAVE_ASM_TYPES_H
6398 #include <asm/types.h>
6399 #endif
6400 #ifdef HAVE_SYS_SOCKET_H
6401 #include <sys/socket.h>
6402 #endif
6405 #include <$ac_header>
6406 _ACEOF
6407 rm -f conftest.$ac_objext
6408 if { (ac_try="$ac_compile"
6409 case "(($ac_try" in
6410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6411 *) ac_try_echo=$ac_try;;
6412 esac
6413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6414 (eval "$ac_compile") 2>conftest.er1
6415 ac_status=$?
6416 grep -v '^ *+' conftest.er1 >conftest.err
6417 rm -f conftest.er1
6418 cat conftest.err >&5
6419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420 (exit $ac_status); } && {
6421 test -z "$ac_c_werror_flag" ||
6422 test ! -s conftest.err
6423 } && test -s conftest.$ac_objext; then
6424 eval "$as_ac_Header=yes"
6425 else
6426 echo "$as_me: failed program was:" >&5
6427 sed 's/^/| /' conftest.$ac_ext >&5
6429 eval "$as_ac_Header=no"
6432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6434 ac_res=`eval echo '${'$as_ac_Header'}'`
6435 { echo "$as_me:$LINENO: result: $ac_res" >&5
6436 echo "${ECHO_T}$ac_res" >&6; }
6437 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6438 cat >>confdefs.h <<_ACEOF
6439 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6440 _ACEOF
6444 done
6447 # checks for typedefs
6448 was_it_defined=no
6449 { echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
6450 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6; }
6451 cat >conftest.$ac_ext <<_ACEOF
6452 /* confdefs.h. */
6453 _ACEOF
6454 cat confdefs.h >>conftest.$ac_ext
6455 cat >>conftest.$ac_ext <<_ACEOF
6456 /* end confdefs.h. */
6457 #include <time.h>
6459 _ACEOF
6460 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6461 $EGREP "clock_t" >/dev/null 2>&1; then
6462 was_it_defined=yes
6463 else
6466 cat >>confdefs.h <<\_ACEOF
6467 #define clock_t long
6468 _ACEOF
6472 rm -f conftest*
6474 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
6475 echo "${ECHO_T}$was_it_defined" >&6; }
6477 # Check whether using makedev requires defining _OSF_SOURCE
6478 { echo "$as_me:$LINENO: checking for makedev" >&5
6479 echo $ECHO_N "checking for makedev... $ECHO_C" >&6; }
6480 cat >conftest.$ac_ext <<_ACEOF
6481 /* confdefs.h. */
6482 _ACEOF
6483 cat confdefs.h >>conftest.$ac_ext
6484 cat >>conftest.$ac_ext <<_ACEOF
6485 /* end confdefs.h. */
6486 #include <sys/types.h>
6488 main ()
6490 makedev(0, 0)
6492 return 0;
6494 _ACEOF
6495 rm -f conftest.$ac_objext conftest$ac_exeext
6496 if { (ac_try="$ac_link"
6497 case "(($ac_try" in
6498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6499 *) ac_try_echo=$ac_try;;
6500 esac
6501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6502 (eval "$ac_link") 2>conftest.er1
6503 ac_status=$?
6504 grep -v '^ *+' conftest.er1 >conftest.err
6505 rm -f conftest.er1
6506 cat conftest.err >&5
6507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508 (exit $ac_status); } && {
6509 test -z "$ac_c_werror_flag" ||
6510 test ! -s conftest.err
6511 } && test -s conftest$ac_exeext &&
6512 $as_test_x conftest$ac_exeext; then
6513 ac_cv_has_makedev=yes
6514 else
6515 echo "$as_me: failed program was:" >&5
6516 sed 's/^/| /' conftest.$ac_ext >&5
6518 ac_cv_has_makedev=no
6521 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6522 conftest$ac_exeext conftest.$ac_ext
6523 if test "$ac_cv_has_makedev" = "no"; then
6524 # we didn't link, try if _OSF_SOURCE will allow us to link
6525 cat >conftest.$ac_ext <<_ACEOF
6526 /* confdefs.h. */
6527 _ACEOF
6528 cat confdefs.h >>conftest.$ac_ext
6529 cat >>conftest.$ac_ext <<_ACEOF
6530 /* end confdefs.h. */
6532 #define _OSF_SOURCE 1
6533 #include <sys/types.h>
6536 main ()
6538 makedev(0, 0)
6540 return 0;
6542 _ACEOF
6543 rm -f conftest.$ac_objext conftest$ac_exeext
6544 if { (ac_try="$ac_link"
6545 case "(($ac_try" in
6546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6547 *) ac_try_echo=$ac_try;;
6548 esac
6549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6550 (eval "$ac_link") 2>conftest.er1
6551 ac_status=$?
6552 grep -v '^ *+' conftest.er1 >conftest.err
6553 rm -f conftest.er1
6554 cat conftest.err >&5
6555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6556 (exit $ac_status); } && {
6557 test -z "$ac_c_werror_flag" ||
6558 test ! -s conftest.err
6559 } && test -s conftest$ac_exeext &&
6560 $as_test_x conftest$ac_exeext; then
6561 ac_cv_has_makedev=yes
6562 else
6563 echo "$as_me: failed program was:" >&5
6564 sed 's/^/| /' conftest.$ac_ext >&5
6566 ac_cv_has_makedev=no
6569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6570 conftest$ac_exeext conftest.$ac_ext
6571 if test "$ac_cv_has_makedev" = "yes"; then
6573 cat >>confdefs.h <<\_ACEOF
6574 #define _OSF_SOURCE 1
6575 _ACEOF
6579 { echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
6580 echo "${ECHO_T}$ac_cv_has_makedev" >&6; }
6581 if test "$ac_cv_has_makedev" = "yes"; then
6583 cat >>confdefs.h <<\_ACEOF
6584 #define HAVE_MAKEDEV 1
6585 _ACEOF
6589 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
6590 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
6591 # defined, but the compiler does not support pragma redefine_extname,
6592 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
6593 # structures (such as rlimit64) without declaring them. As a
6594 # work-around, disable LFS on such configurations
6596 use_lfs=yes
6597 { echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
6598 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6; }
6599 cat >conftest.$ac_ext <<_ACEOF
6600 /* confdefs.h. */
6601 _ACEOF
6602 cat confdefs.h >>conftest.$ac_ext
6603 cat >>conftest.$ac_ext <<_ACEOF
6604 /* end confdefs.h. */
6606 #define _LARGEFILE_SOURCE 1
6607 #define _FILE_OFFSET_BITS 64
6608 #include <sys/resource.h>
6611 main ()
6613 struct rlimit foo;
6615 return 0;
6617 _ACEOF
6618 rm -f conftest.$ac_objext
6619 if { (ac_try="$ac_compile"
6620 case "(($ac_try" in
6621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6622 *) ac_try_echo=$ac_try;;
6623 esac
6624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6625 (eval "$ac_compile") 2>conftest.er1
6626 ac_status=$?
6627 grep -v '^ *+' conftest.er1 >conftest.err
6628 rm -f conftest.er1
6629 cat conftest.err >&5
6630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6631 (exit $ac_status); } && {
6632 test -z "$ac_c_werror_flag" ||
6633 test ! -s conftest.err
6634 } && test -s conftest.$ac_objext; then
6635 sol_lfs_bug=no
6636 else
6637 echo "$as_me: failed program was:" >&5
6638 sed 's/^/| /' conftest.$ac_ext >&5
6640 sol_lfs_bug=yes
6643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6644 { echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
6645 echo "${ECHO_T}$sol_lfs_bug" >&6; }
6646 if test "$sol_lfs_bug" = "yes"; then
6647 use_lfs=no
6650 if test "$use_lfs" = "yes"; then
6651 # Two defines needed to enable largefile support on various platforms
6652 # These may affect some typedefs
6654 cat >>confdefs.h <<\_ACEOF
6655 #define _LARGEFILE_SOURCE 1
6656 _ACEOF
6659 cat >>confdefs.h <<\_ACEOF
6660 #define _FILE_OFFSET_BITS 64
6661 _ACEOF
6665 # Add some code to confdefs.h so that the test for off_t works on SCO
6666 cat >> confdefs.h <<\EOF
6667 #if defined(SCO_DS)
6668 #undef _OFF_T
6669 #endif
6672 # Type availability checks
6673 { echo "$as_me:$LINENO: checking for mode_t" >&5
6674 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
6675 if test "${ac_cv_type_mode_t+set}" = set; then
6676 echo $ECHO_N "(cached) $ECHO_C" >&6
6677 else
6678 cat >conftest.$ac_ext <<_ACEOF
6679 /* confdefs.h. */
6680 _ACEOF
6681 cat confdefs.h >>conftest.$ac_ext
6682 cat >>conftest.$ac_ext <<_ACEOF
6683 /* end confdefs.h. */
6684 $ac_includes_default
6685 typedef mode_t ac__type_new_;
6687 main ()
6689 if ((ac__type_new_ *) 0)
6690 return 0;
6691 if (sizeof (ac__type_new_))
6692 return 0;
6694 return 0;
6696 _ACEOF
6697 rm -f conftest.$ac_objext
6698 if { (ac_try="$ac_compile"
6699 case "(($ac_try" in
6700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6701 *) ac_try_echo=$ac_try;;
6702 esac
6703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6704 (eval "$ac_compile") 2>conftest.er1
6705 ac_status=$?
6706 grep -v '^ *+' conftest.er1 >conftest.err
6707 rm -f conftest.er1
6708 cat conftest.err >&5
6709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6710 (exit $ac_status); } && {
6711 test -z "$ac_c_werror_flag" ||
6712 test ! -s conftest.err
6713 } && test -s conftest.$ac_objext; then
6714 ac_cv_type_mode_t=yes
6715 else
6716 echo "$as_me: failed program was:" >&5
6717 sed 's/^/| /' conftest.$ac_ext >&5
6719 ac_cv_type_mode_t=no
6722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6724 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6725 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
6726 if test $ac_cv_type_mode_t = yes; then
6728 else
6730 cat >>confdefs.h <<_ACEOF
6731 #define mode_t int
6732 _ACEOF
6736 { echo "$as_me:$LINENO: checking for off_t" >&5
6737 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
6738 if test "${ac_cv_type_off_t+set}" = set; then
6739 echo $ECHO_N "(cached) $ECHO_C" >&6
6740 else
6741 cat >conftest.$ac_ext <<_ACEOF
6742 /* confdefs.h. */
6743 _ACEOF
6744 cat confdefs.h >>conftest.$ac_ext
6745 cat >>conftest.$ac_ext <<_ACEOF
6746 /* end confdefs.h. */
6747 $ac_includes_default
6748 typedef off_t ac__type_new_;
6750 main ()
6752 if ((ac__type_new_ *) 0)
6753 return 0;
6754 if (sizeof (ac__type_new_))
6755 return 0;
6757 return 0;
6759 _ACEOF
6760 rm -f conftest.$ac_objext
6761 if { (ac_try="$ac_compile"
6762 case "(($ac_try" in
6763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6764 *) ac_try_echo=$ac_try;;
6765 esac
6766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6767 (eval "$ac_compile") 2>conftest.er1
6768 ac_status=$?
6769 grep -v '^ *+' conftest.er1 >conftest.err
6770 rm -f conftest.er1
6771 cat conftest.err >&5
6772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6773 (exit $ac_status); } && {
6774 test -z "$ac_c_werror_flag" ||
6775 test ! -s conftest.err
6776 } && test -s conftest.$ac_objext; then
6777 ac_cv_type_off_t=yes
6778 else
6779 echo "$as_me: failed program was:" >&5
6780 sed 's/^/| /' conftest.$ac_ext >&5
6782 ac_cv_type_off_t=no
6785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6787 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6788 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
6789 if test $ac_cv_type_off_t = yes; then
6791 else
6793 cat >>confdefs.h <<_ACEOF
6794 #define off_t long int
6795 _ACEOF
6799 { echo "$as_me:$LINENO: checking for pid_t" >&5
6800 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
6801 if test "${ac_cv_type_pid_t+set}" = set; then
6802 echo $ECHO_N "(cached) $ECHO_C" >&6
6803 else
6804 cat >conftest.$ac_ext <<_ACEOF
6805 /* confdefs.h. */
6806 _ACEOF
6807 cat confdefs.h >>conftest.$ac_ext
6808 cat >>conftest.$ac_ext <<_ACEOF
6809 /* end confdefs.h. */
6810 $ac_includes_default
6811 typedef pid_t ac__type_new_;
6813 main ()
6815 if ((ac__type_new_ *) 0)
6816 return 0;
6817 if (sizeof (ac__type_new_))
6818 return 0;
6820 return 0;
6822 _ACEOF
6823 rm -f conftest.$ac_objext
6824 if { (ac_try="$ac_compile"
6825 case "(($ac_try" in
6826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6827 *) ac_try_echo=$ac_try;;
6828 esac
6829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6830 (eval "$ac_compile") 2>conftest.er1
6831 ac_status=$?
6832 grep -v '^ *+' conftest.er1 >conftest.err
6833 rm -f conftest.er1
6834 cat conftest.err >&5
6835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6836 (exit $ac_status); } && {
6837 test -z "$ac_c_werror_flag" ||
6838 test ! -s conftest.err
6839 } && test -s conftest.$ac_objext; then
6840 ac_cv_type_pid_t=yes
6841 else
6842 echo "$as_me: failed program was:" >&5
6843 sed 's/^/| /' conftest.$ac_ext >&5
6845 ac_cv_type_pid_t=no
6848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6850 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6851 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
6852 if test $ac_cv_type_pid_t = yes; then
6854 else
6856 cat >>confdefs.h <<_ACEOF
6857 #define pid_t int
6858 _ACEOF
6862 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6863 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
6864 if test "${ac_cv_type_signal+set}" = set; then
6865 echo $ECHO_N "(cached) $ECHO_C" >&6
6866 else
6867 cat >conftest.$ac_ext <<_ACEOF
6868 /* confdefs.h. */
6869 _ACEOF
6870 cat confdefs.h >>conftest.$ac_ext
6871 cat >>conftest.$ac_ext <<_ACEOF
6872 /* end confdefs.h. */
6873 #include <sys/types.h>
6874 #include <signal.h>
6877 main ()
6879 return *(signal (0, 0)) (0) == 1;
6881 return 0;
6883 _ACEOF
6884 rm -f conftest.$ac_objext
6885 if { (ac_try="$ac_compile"
6886 case "(($ac_try" in
6887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6888 *) ac_try_echo=$ac_try;;
6889 esac
6890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6891 (eval "$ac_compile") 2>conftest.er1
6892 ac_status=$?
6893 grep -v '^ *+' conftest.er1 >conftest.err
6894 rm -f conftest.er1
6895 cat conftest.err >&5
6896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6897 (exit $ac_status); } && {
6898 test -z "$ac_c_werror_flag" ||
6899 test ! -s conftest.err
6900 } && test -s conftest.$ac_objext; then
6901 ac_cv_type_signal=int
6902 else
6903 echo "$as_me: failed program was:" >&5
6904 sed 's/^/| /' conftest.$ac_ext >&5
6906 ac_cv_type_signal=void
6909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6911 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6912 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
6914 cat >>confdefs.h <<_ACEOF
6915 #define RETSIGTYPE $ac_cv_type_signal
6916 _ACEOF
6919 { echo "$as_me:$LINENO: checking for size_t" >&5
6920 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
6921 if test "${ac_cv_type_size_t+set}" = set; then
6922 echo $ECHO_N "(cached) $ECHO_C" >&6
6923 else
6924 cat >conftest.$ac_ext <<_ACEOF
6925 /* confdefs.h. */
6926 _ACEOF
6927 cat confdefs.h >>conftest.$ac_ext
6928 cat >>conftest.$ac_ext <<_ACEOF
6929 /* end confdefs.h. */
6930 $ac_includes_default
6931 typedef size_t ac__type_new_;
6933 main ()
6935 if ((ac__type_new_ *) 0)
6936 return 0;
6937 if (sizeof (ac__type_new_))
6938 return 0;
6940 return 0;
6942 _ACEOF
6943 rm -f conftest.$ac_objext
6944 if { (ac_try="$ac_compile"
6945 case "(($ac_try" in
6946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6947 *) ac_try_echo=$ac_try;;
6948 esac
6949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6950 (eval "$ac_compile") 2>conftest.er1
6951 ac_status=$?
6952 grep -v '^ *+' conftest.er1 >conftest.err
6953 rm -f conftest.er1
6954 cat conftest.err >&5
6955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6956 (exit $ac_status); } && {
6957 test -z "$ac_c_werror_flag" ||
6958 test ! -s conftest.err
6959 } && test -s conftest.$ac_objext; then
6960 ac_cv_type_size_t=yes
6961 else
6962 echo "$as_me: failed program was:" >&5
6963 sed 's/^/| /' conftest.$ac_ext >&5
6965 ac_cv_type_size_t=no
6968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6970 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6971 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
6972 if test $ac_cv_type_size_t = yes; then
6974 else
6976 cat >>confdefs.h <<_ACEOF
6977 #define size_t unsigned int
6978 _ACEOF
6982 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6983 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
6984 if test "${ac_cv_type_uid_t+set}" = set; then
6985 echo $ECHO_N "(cached) $ECHO_C" >&6
6986 else
6987 cat >conftest.$ac_ext <<_ACEOF
6988 /* confdefs.h. */
6989 _ACEOF
6990 cat confdefs.h >>conftest.$ac_ext
6991 cat >>conftest.$ac_ext <<_ACEOF
6992 /* end confdefs.h. */
6993 #include <sys/types.h>
6995 _ACEOF
6996 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6997 $EGREP "uid_t" >/dev/null 2>&1; then
6998 ac_cv_type_uid_t=yes
6999 else
7000 ac_cv_type_uid_t=no
7002 rm -f conftest*
7005 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7006 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
7007 if test $ac_cv_type_uid_t = no; then
7009 cat >>confdefs.h <<\_ACEOF
7010 #define uid_t int
7011 _ACEOF
7014 cat >>confdefs.h <<\_ACEOF
7015 #define gid_t int
7016 _ACEOF
7021 { echo "$as_me:$LINENO: checking for uint32_t" >&5
7022 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
7023 if test "${ac_cv_c_uint32_t+set}" = set; then
7024 echo $ECHO_N "(cached) $ECHO_C" >&6
7025 else
7026 ac_cv_c_uint32_t=no
7027 for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
7028 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7029 cat >conftest.$ac_ext <<_ACEOF
7030 /* confdefs.h. */
7031 _ACEOF
7032 cat confdefs.h >>conftest.$ac_ext
7033 cat >>conftest.$ac_ext <<_ACEOF
7034 /* end confdefs.h. */
7035 $ac_includes_default
7037 main ()
7039 static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
7040 test_array [0] = 0
7043 return 0;
7045 _ACEOF
7046 rm -f conftest.$ac_objext
7047 if { (ac_try="$ac_compile"
7048 case "(($ac_try" in
7049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7050 *) ac_try_echo=$ac_try;;
7051 esac
7052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7053 (eval "$ac_compile") 2>conftest.er1
7054 ac_status=$?
7055 grep -v '^ *+' conftest.er1 >conftest.err
7056 rm -f conftest.er1
7057 cat conftest.err >&5
7058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7059 (exit $ac_status); } && {
7060 test -z "$ac_c_werror_flag" ||
7061 test ! -s conftest.err
7062 } && test -s conftest.$ac_objext; then
7063 case $ac_type in
7064 uint32_t) ac_cv_c_uint32_t=yes ;;
7065 *) ac_cv_c_uint32_t=$ac_type ;;
7066 esac
7068 else
7069 echo "$as_me: failed program was:" >&5
7070 sed 's/^/| /' conftest.$ac_ext >&5
7075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7076 test "$ac_cv_c_uint32_t" != no && break
7077 done
7079 { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
7080 echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; }
7081 case $ac_cv_c_uint32_t in #(
7082 no|yes) ;; #(
7085 cat >>confdefs.h <<\_ACEOF
7086 #define _UINT32_T 1
7087 _ACEOF
7090 cat >>confdefs.h <<_ACEOF
7091 #define uint32_t $ac_cv_c_uint32_t
7092 _ACEOF
7094 esac
7097 { echo "$as_me:$LINENO: checking for uint64_t" >&5
7098 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
7099 if test "${ac_cv_c_uint64_t+set}" = set; then
7100 echo $ECHO_N "(cached) $ECHO_C" >&6
7101 else
7102 ac_cv_c_uint64_t=no
7103 for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \
7104 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7105 cat >conftest.$ac_ext <<_ACEOF
7106 /* confdefs.h. */
7107 _ACEOF
7108 cat confdefs.h >>conftest.$ac_ext
7109 cat >>conftest.$ac_ext <<_ACEOF
7110 /* end confdefs.h. */
7111 $ac_includes_default
7113 main ()
7115 static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
7116 test_array [0] = 0
7119 return 0;
7121 _ACEOF
7122 rm -f conftest.$ac_objext
7123 if { (ac_try="$ac_compile"
7124 case "(($ac_try" in
7125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7126 *) ac_try_echo=$ac_try;;
7127 esac
7128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7129 (eval "$ac_compile") 2>conftest.er1
7130 ac_status=$?
7131 grep -v '^ *+' conftest.er1 >conftest.err
7132 rm -f conftest.er1
7133 cat conftest.err >&5
7134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7135 (exit $ac_status); } && {
7136 test -z "$ac_c_werror_flag" ||
7137 test ! -s conftest.err
7138 } && test -s conftest.$ac_objext; then
7139 case $ac_type in
7140 uint64_t) ac_cv_c_uint64_t=yes ;;
7141 *) ac_cv_c_uint64_t=$ac_type ;;
7142 esac
7144 else
7145 echo "$as_me: failed program was:" >&5
7146 sed 's/^/| /' conftest.$ac_ext >&5
7151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7152 test "$ac_cv_c_uint64_t" != no && break
7153 done
7155 { echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
7156 echo "${ECHO_T}$ac_cv_c_uint64_t" >&6; }
7157 case $ac_cv_c_uint64_t in #(
7158 no|yes) ;; #(
7161 cat >>confdefs.h <<\_ACEOF
7162 #define _UINT64_T 1
7163 _ACEOF
7166 cat >>confdefs.h <<_ACEOF
7167 #define uint64_t $ac_cv_c_uint64_t
7168 _ACEOF
7170 esac
7173 { echo "$as_me:$LINENO: checking for int32_t" >&5
7174 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
7175 if test "${ac_cv_c_int32_t+set}" = set; then
7176 echo $ECHO_N "(cached) $ECHO_C" >&6
7177 else
7178 ac_cv_c_int32_t=no
7179 for ac_type in 'int32_t' 'int' 'long int' \
7180 'long long int' 'short int' 'signed char'; do
7181 cat >conftest.$ac_ext <<_ACEOF
7182 /* confdefs.h. */
7183 _ACEOF
7184 cat confdefs.h >>conftest.$ac_ext
7185 cat >>conftest.$ac_ext <<_ACEOF
7186 /* end confdefs.h. */
7187 $ac_includes_default
7189 main ()
7191 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
7192 test_array [0] = 0
7195 return 0;
7197 _ACEOF
7198 rm -f conftest.$ac_objext
7199 if { (ac_try="$ac_compile"
7200 case "(($ac_try" in
7201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7202 *) ac_try_echo=$ac_try;;
7203 esac
7204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7205 (eval "$ac_compile") 2>conftest.er1
7206 ac_status=$?
7207 grep -v '^ *+' conftest.er1 >conftest.err
7208 rm -f conftest.er1
7209 cat conftest.err >&5
7210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7211 (exit $ac_status); } && {
7212 test -z "$ac_c_werror_flag" ||
7213 test ! -s conftest.err
7214 } && test -s conftest.$ac_objext; then
7215 cat >conftest.$ac_ext <<_ACEOF
7216 /* confdefs.h. */
7217 _ACEOF
7218 cat confdefs.h >>conftest.$ac_ext
7219 cat >>conftest.$ac_ext <<_ACEOF
7220 /* end confdefs.h. */
7221 $ac_includes_default
7223 main ()
7225 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
7226 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
7227 test_array [0] = 0
7230 return 0;
7232 _ACEOF
7233 rm -f conftest.$ac_objext
7234 if { (ac_try="$ac_compile"
7235 case "(($ac_try" in
7236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7237 *) ac_try_echo=$ac_try;;
7238 esac
7239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7240 (eval "$ac_compile") 2>conftest.er1
7241 ac_status=$?
7242 grep -v '^ *+' conftest.er1 >conftest.err
7243 rm -f conftest.er1
7244 cat conftest.err >&5
7245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7246 (exit $ac_status); } && {
7247 test -z "$ac_c_werror_flag" ||
7248 test ! -s conftest.err
7249 } && test -s conftest.$ac_objext; then
7251 else
7252 echo "$as_me: failed program was:" >&5
7253 sed 's/^/| /' conftest.$ac_ext >&5
7255 case $ac_type in
7256 int32_t) ac_cv_c_int32_t=yes ;;
7257 *) ac_cv_c_int32_t=$ac_type ;;
7258 esac
7262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7263 else
7264 echo "$as_me: failed program was:" >&5
7265 sed 's/^/| /' conftest.$ac_ext >&5
7270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7271 test "$ac_cv_c_int32_t" != no && break
7272 done
7274 { echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
7275 echo "${ECHO_T}$ac_cv_c_int32_t" >&6; }
7276 case $ac_cv_c_int32_t in #(
7277 no|yes) ;; #(
7280 cat >>confdefs.h <<_ACEOF
7281 #define int32_t $ac_cv_c_int32_t
7282 _ACEOF
7284 esac
7287 { echo "$as_me:$LINENO: checking for int64_t" >&5
7288 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
7289 if test "${ac_cv_c_int64_t+set}" = set; then
7290 echo $ECHO_N "(cached) $ECHO_C" >&6
7291 else
7292 ac_cv_c_int64_t=no
7293 for ac_type in 'int64_t' 'int' 'long int' \
7294 'long long int' 'short int' 'signed char'; do
7295 cat >conftest.$ac_ext <<_ACEOF
7296 /* confdefs.h. */
7297 _ACEOF
7298 cat confdefs.h >>conftest.$ac_ext
7299 cat >>conftest.$ac_ext <<_ACEOF
7300 /* end confdefs.h. */
7301 $ac_includes_default
7303 main ()
7305 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
7306 test_array [0] = 0
7309 return 0;
7311 _ACEOF
7312 rm -f conftest.$ac_objext
7313 if { (ac_try="$ac_compile"
7314 case "(($ac_try" in
7315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7316 *) ac_try_echo=$ac_try;;
7317 esac
7318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7319 (eval "$ac_compile") 2>conftest.er1
7320 ac_status=$?
7321 grep -v '^ *+' conftest.er1 >conftest.err
7322 rm -f conftest.er1
7323 cat conftest.err >&5
7324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7325 (exit $ac_status); } && {
7326 test -z "$ac_c_werror_flag" ||
7327 test ! -s conftest.err
7328 } && test -s conftest.$ac_objext; then
7329 cat >conftest.$ac_ext <<_ACEOF
7330 /* confdefs.h. */
7331 _ACEOF
7332 cat confdefs.h >>conftest.$ac_ext
7333 cat >>conftest.$ac_ext <<_ACEOF
7334 /* end confdefs.h. */
7335 $ac_includes_default
7337 main ()
7339 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
7340 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
7341 test_array [0] = 0
7344 return 0;
7346 _ACEOF
7347 rm -f conftest.$ac_objext
7348 if { (ac_try="$ac_compile"
7349 case "(($ac_try" in
7350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7351 *) ac_try_echo=$ac_try;;
7352 esac
7353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7354 (eval "$ac_compile") 2>conftest.er1
7355 ac_status=$?
7356 grep -v '^ *+' conftest.er1 >conftest.err
7357 rm -f conftest.er1
7358 cat conftest.err >&5
7359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7360 (exit $ac_status); } && {
7361 test -z "$ac_c_werror_flag" ||
7362 test ! -s conftest.err
7363 } && test -s conftest.$ac_objext; then
7365 else
7366 echo "$as_me: failed program was:" >&5
7367 sed 's/^/| /' conftest.$ac_ext >&5
7369 case $ac_type in
7370 int64_t) ac_cv_c_int64_t=yes ;;
7371 *) ac_cv_c_int64_t=$ac_type ;;
7372 esac
7376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7377 else
7378 echo "$as_me: failed program was:" >&5
7379 sed 's/^/| /' conftest.$ac_ext >&5
7384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7385 test "$ac_cv_c_int64_t" != no && break
7386 done
7388 { echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
7389 echo "${ECHO_T}$ac_cv_c_int64_t" >&6; }
7390 case $ac_cv_c_int64_t in #(
7391 no|yes) ;; #(
7394 cat >>confdefs.h <<_ACEOF
7395 #define int64_t $ac_cv_c_int64_t
7396 _ACEOF
7398 esac
7400 { echo "$as_me:$LINENO: checking for ssize_t" >&5
7401 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
7402 if test "${ac_cv_type_ssize_t+set}" = set; then
7403 echo $ECHO_N "(cached) $ECHO_C" >&6
7404 else
7405 cat >conftest.$ac_ext <<_ACEOF
7406 /* confdefs.h. */
7407 _ACEOF
7408 cat confdefs.h >>conftest.$ac_ext
7409 cat >>conftest.$ac_ext <<_ACEOF
7410 /* end confdefs.h. */
7411 $ac_includes_default
7412 typedef ssize_t ac__type_new_;
7414 main ()
7416 if ((ac__type_new_ *) 0)
7417 return 0;
7418 if (sizeof (ac__type_new_))
7419 return 0;
7421 return 0;
7423 _ACEOF
7424 rm -f conftest.$ac_objext
7425 if { (ac_try="$ac_compile"
7426 case "(($ac_try" in
7427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7428 *) ac_try_echo=$ac_try;;
7429 esac
7430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7431 (eval "$ac_compile") 2>conftest.er1
7432 ac_status=$?
7433 grep -v '^ *+' conftest.er1 >conftest.err
7434 rm -f conftest.er1
7435 cat conftest.err >&5
7436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7437 (exit $ac_status); } && {
7438 test -z "$ac_c_werror_flag" ||
7439 test ! -s conftest.err
7440 } && test -s conftest.$ac_objext; then
7441 ac_cv_type_ssize_t=yes
7442 else
7443 echo "$as_me: failed program was:" >&5
7444 sed 's/^/| /' conftest.$ac_ext >&5
7446 ac_cv_type_ssize_t=no
7449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7451 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
7452 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
7453 if test $ac_cv_type_ssize_t = yes; then
7455 cat >>confdefs.h <<\_ACEOF
7456 #define HAVE_SSIZE_T 1
7457 _ACEOF
7462 # Sizes of various common basic types
7463 # ANSI C requires sizeof(char) == 1, so no need to check it
7464 { echo "$as_me:$LINENO: checking for int" >&5
7465 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
7466 if test "${ac_cv_type_int+set}" = set; then
7467 echo $ECHO_N "(cached) $ECHO_C" >&6
7468 else
7469 cat >conftest.$ac_ext <<_ACEOF
7470 /* confdefs.h. */
7471 _ACEOF
7472 cat confdefs.h >>conftest.$ac_ext
7473 cat >>conftest.$ac_ext <<_ACEOF
7474 /* end confdefs.h. */
7475 $ac_includes_default
7476 typedef int ac__type_new_;
7478 main ()
7480 if ((ac__type_new_ *) 0)
7481 return 0;
7482 if (sizeof (ac__type_new_))
7483 return 0;
7485 return 0;
7487 _ACEOF
7488 rm -f conftest.$ac_objext
7489 if { (ac_try="$ac_compile"
7490 case "(($ac_try" in
7491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7492 *) ac_try_echo=$ac_try;;
7493 esac
7494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7495 (eval "$ac_compile") 2>conftest.er1
7496 ac_status=$?
7497 grep -v '^ *+' conftest.er1 >conftest.err
7498 rm -f conftest.er1
7499 cat conftest.err >&5
7500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7501 (exit $ac_status); } && {
7502 test -z "$ac_c_werror_flag" ||
7503 test ! -s conftest.err
7504 } && test -s conftest.$ac_objext; then
7505 ac_cv_type_int=yes
7506 else
7507 echo "$as_me: failed program was:" >&5
7508 sed 's/^/| /' conftest.$ac_ext >&5
7510 ac_cv_type_int=no
7513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7515 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
7516 echo "${ECHO_T}$ac_cv_type_int" >&6; }
7518 # The cast to long int works around a bug in the HP C Compiler
7519 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7520 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7521 # This bug is HP SR number 8606223364.
7522 { echo "$as_me:$LINENO: checking size of int" >&5
7523 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
7524 if test "${ac_cv_sizeof_int+set}" = set; then
7525 echo $ECHO_N "(cached) $ECHO_C" >&6
7526 else
7527 if test "$cross_compiling" = yes; then
7528 # Depending upon the size, compute the lo and hi bounds.
7529 cat >conftest.$ac_ext <<_ACEOF
7530 /* confdefs.h. */
7531 _ACEOF
7532 cat confdefs.h >>conftest.$ac_ext
7533 cat >>conftest.$ac_ext <<_ACEOF
7534 /* end confdefs.h. */
7535 $ac_includes_default
7536 typedef int ac__type_sizeof_;
7538 main ()
7540 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7541 test_array [0] = 0
7544 return 0;
7546 _ACEOF
7547 rm -f conftest.$ac_objext
7548 if { (ac_try="$ac_compile"
7549 case "(($ac_try" in
7550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7551 *) ac_try_echo=$ac_try;;
7552 esac
7553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7554 (eval "$ac_compile") 2>conftest.er1
7555 ac_status=$?
7556 grep -v '^ *+' conftest.er1 >conftest.err
7557 rm -f conftest.er1
7558 cat conftest.err >&5
7559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7560 (exit $ac_status); } && {
7561 test -z "$ac_c_werror_flag" ||
7562 test ! -s conftest.err
7563 } && test -s conftest.$ac_objext; then
7564 ac_lo=0 ac_mid=0
7565 while :; do
7566 cat >conftest.$ac_ext <<_ACEOF
7567 /* confdefs.h. */
7568 _ACEOF
7569 cat confdefs.h >>conftest.$ac_ext
7570 cat >>conftest.$ac_ext <<_ACEOF
7571 /* end confdefs.h. */
7572 $ac_includes_default
7573 typedef int ac__type_sizeof_;
7575 main ()
7577 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7578 test_array [0] = 0
7581 return 0;
7583 _ACEOF
7584 rm -f conftest.$ac_objext
7585 if { (ac_try="$ac_compile"
7586 case "(($ac_try" in
7587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7588 *) ac_try_echo=$ac_try;;
7589 esac
7590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7591 (eval "$ac_compile") 2>conftest.er1
7592 ac_status=$?
7593 grep -v '^ *+' conftest.er1 >conftest.err
7594 rm -f conftest.er1
7595 cat conftest.err >&5
7596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7597 (exit $ac_status); } && {
7598 test -z "$ac_c_werror_flag" ||
7599 test ! -s conftest.err
7600 } && test -s conftest.$ac_objext; then
7601 ac_hi=$ac_mid; break
7602 else
7603 echo "$as_me: failed program was:" >&5
7604 sed 's/^/| /' conftest.$ac_ext >&5
7606 ac_lo=`expr $ac_mid + 1`
7607 if test $ac_lo -le $ac_mid; then
7608 ac_lo= ac_hi=
7609 break
7611 ac_mid=`expr 2 '*' $ac_mid + 1`
7614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7615 done
7616 else
7617 echo "$as_me: failed program was:" >&5
7618 sed 's/^/| /' conftest.$ac_ext >&5
7620 cat >conftest.$ac_ext <<_ACEOF
7621 /* confdefs.h. */
7622 _ACEOF
7623 cat confdefs.h >>conftest.$ac_ext
7624 cat >>conftest.$ac_ext <<_ACEOF
7625 /* end confdefs.h. */
7626 $ac_includes_default
7627 typedef int ac__type_sizeof_;
7629 main ()
7631 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7632 test_array [0] = 0
7635 return 0;
7637 _ACEOF
7638 rm -f conftest.$ac_objext
7639 if { (ac_try="$ac_compile"
7640 case "(($ac_try" in
7641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7642 *) ac_try_echo=$ac_try;;
7643 esac
7644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7645 (eval "$ac_compile") 2>conftest.er1
7646 ac_status=$?
7647 grep -v '^ *+' conftest.er1 >conftest.err
7648 rm -f conftest.er1
7649 cat conftest.err >&5
7650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7651 (exit $ac_status); } && {
7652 test -z "$ac_c_werror_flag" ||
7653 test ! -s conftest.err
7654 } && test -s conftest.$ac_objext; then
7655 ac_hi=-1 ac_mid=-1
7656 while :; do
7657 cat >conftest.$ac_ext <<_ACEOF
7658 /* confdefs.h. */
7659 _ACEOF
7660 cat confdefs.h >>conftest.$ac_ext
7661 cat >>conftest.$ac_ext <<_ACEOF
7662 /* end confdefs.h. */
7663 $ac_includes_default
7664 typedef int ac__type_sizeof_;
7666 main ()
7668 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7669 test_array [0] = 0
7672 return 0;
7674 _ACEOF
7675 rm -f conftest.$ac_objext
7676 if { (ac_try="$ac_compile"
7677 case "(($ac_try" in
7678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7679 *) ac_try_echo=$ac_try;;
7680 esac
7681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7682 (eval "$ac_compile") 2>conftest.er1
7683 ac_status=$?
7684 grep -v '^ *+' conftest.er1 >conftest.err
7685 rm -f conftest.er1
7686 cat conftest.err >&5
7687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7688 (exit $ac_status); } && {
7689 test -z "$ac_c_werror_flag" ||
7690 test ! -s conftest.err
7691 } && test -s conftest.$ac_objext; then
7692 ac_lo=$ac_mid; break
7693 else
7694 echo "$as_me: failed program was:" >&5
7695 sed 's/^/| /' conftest.$ac_ext >&5
7697 ac_hi=`expr '(' $ac_mid ')' - 1`
7698 if test $ac_mid -le $ac_hi; then
7699 ac_lo= ac_hi=
7700 break
7702 ac_mid=`expr 2 '*' $ac_mid`
7705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7706 done
7707 else
7708 echo "$as_me: failed program was:" >&5
7709 sed 's/^/| /' conftest.$ac_ext >&5
7711 ac_lo= ac_hi=
7714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7718 # Binary search between lo and hi bounds.
7719 while test "x$ac_lo" != "x$ac_hi"; do
7720 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7721 cat >conftest.$ac_ext <<_ACEOF
7722 /* confdefs.h. */
7723 _ACEOF
7724 cat confdefs.h >>conftest.$ac_ext
7725 cat >>conftest.$ac_ext <<_ACEOF
7726 /* end confdefs.h. */
7727 $ac_includes_default
7728 typedef int ac__type_sizeof_;
7730 main ()
7732 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7733 test_array [0] = 0
7736 return 0;
7738 _ACEOF
7739 rm -f conftest.$ac_objext
7740 if { (ac_try="$ac_compile"
7741 case "(($ac_try" in
7742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7743 *) ac_try_echo=$ac_try;;
7744 esac
7745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7746 (eval "$ac_compile") 2>conftest.er1
7747 ac_status=$?
7748 grep -v '^ *+' conftest.er1 >conftest.err
7749 rm -f conftest.er1
7750 cat conftest.err >&5
7751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7752 (exit $ac_status); } && {
7753 test -z "$ac_c_werror_flag" ||
7754 test ! -s conftest.err
7755 } && test -s conftest.$ac_objext; then
7756 ac_hi=$ac_mid
7757 else
7758 echo "$as_me: failed program was:" >&5
7759 sed 's/^/| /' conftest.$ac_ext >&5
7761 ac_lo=`expr '(' $ac_mid ')' + 1`
7764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7765 done
7766 case $ac_lo in
7767 ?*) ac_cv_sizeof_int=$ac_lo;;
7768 '') if test "$ac_cv_type_int" = yes; then
7769 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7770 See \`config.log' for more details." >&5
7771 echo "$as_me: error: cannot compute sizeof (int)
7772 See \`config.log' for more details." >&2;}
7773 { (exit 77); exit 77; }; }
7774 else
7775 ac_cv_sizeof_int=0
7776 fi ;;
7777 esac
7778 else
7779 cat >conftest.$ac_ext <<_ACEOF
7780 /* confdefs.h. */
7781 _ACEOF
7782 cat confdefs.h >>conftest.$ac_ext
7783 cat >>conftest.$ac_ext <<_ACEOF
7784 /* end confdefs.h. */
7785 $ac_includes_default
7786 typedef int ac__type_sizeof_;
7787 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7788 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7789 #include <stdio.h>
7790 #include <stdlib.h>
7792 main ()
7795 FILE *f = fopen ("conftest.val", "w");
7796 if (! f)
7797 return 1;
7798 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7800 long int i = longval ();
7801 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7802 return 1;
7803 fprintf (f, "%ld\n", i);
7805 else
7807 unsigned long int i = ulongval ();
7808 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7809 return 1;
7810 fprintf (f, "%lu\n", i);
7812 return ferror (f) || fclose (f) != 0;
7815 return 0;
7817 _ACEOF
7818 rm -f conftest$ac_exeext
7819 if { (ac_try="$ac_link"
7820 case "(($ac_try" in
7821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7822 *) ac_try_echo=$ac_try;;
7823 esac
7824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7825 (eval "$ac_link") 2>&5
7826 ac_status=$?
7827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7828 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7829 { (case "(($ac_try" in
7830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7831 *) ac_try_echo=$ac_try;;
7832 esac
7833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7834 (eval "$ac_try") 2>&5
7835 ac_status=$?
7836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837 (exit $ac_status); }; }; then
7838 ac_cv_sizeof_int=`cat conftest.val`
7839 else
7840 echo "$as_me: program exited with status $ac_status" >&5
7841 echo "$as_me: failed program was:" >&5
7842 sed 's/^/| /' conftest.$ac_ext >&5
7844 ( exit $ac_status )
7845 if test "$ac_cv_type_int" = yes; then
7846 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7847 See \`config.log' for more details." >&5
7848 echo "$as_me: error: cannot compute sizeof (int)
7849 See \`config.log' for more details." >&2;}
7850 { (exit 77); exit 77; }; }
7851 else
7852 ac_cv_sizeof_int=0
7855 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7857 rm -f conftest.val
7859 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
7860 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
7864 cat >>confdefs.h <<_ACEOF
7865 #define SIZEOF_INT $ac_cv_sizeof_int
7866 _ACEOF
7869 { echo "$as_me:$LINENO: checking for long" >&5
7870 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
7871 if test "${ac_cv_type_long+set}" = set; then
7872 echo $ECHO_N "(cached) $ECHO_C" >&6
7873 else
7874 cat >conftest.$ac_ext <<_ACEOF
7875 /* confdefs.h. */
7876 _ACEOF
7877 cat confdefs.h >>conftest.$ac_ext
7878 cat >>conftest.$ac_ext <<_ACEOF
7879 /* end confdefs.h. */
7880 $ac_includes_default
7881 typedef long ac__type_new_;
7883 main ()
7885 if ((ac__type_new_ *) 0)
7886 return 0;
7887 if (sizeof (ac__type_new_))
7888 return 0;
7890 return 0;
7892 _ACEOF
7893 rm -f conftest.$ac_objext
7894 if { (ac_try="$ac_compile"
7895 case "(($ac_try" in
7896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7897 *) ac_try_echo=$ac_try;;
7898 esac
7899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7900 (eval "$ac_compile") 2>conftest.er1
7901 ac_status=$?
7902 grep -v '^ *+' conftest.er1 >conftest.err
7903 rm -f conftest.er1
7904 cat conftest.err >&5
7905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7906 (exit $ac_status); } && {
7907 test -z "$ac_c_werror_flag" ||
7908 test ! -s conftest.err
7909 } && test -s conftest.$ac_objext; then
7910 ac_cv_type_long=yes
7911 else
7912 echo "$as_me: failed program was:" >&5
7913 sed 's/^/| /' conftest.$ac_ext >&5
7915 ac_cv_type_long=no
7918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7920 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
7921 echo "${ECHO_T}$ac_cv_type_long" >&6; }
7923 # The cast to long int works around a bug in the HP C Compiler
7924 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7925 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7926 # This bug is HP SR number 8606223364.
7927 { echo "$as_me:$LINENO: checking size of long" >&5
7928 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
7929 if test "${ac_cv_sizeof_long+set}" = set; then
7930 echo $ECHO_N "(cached) $ECHO_C" >&6
7931 else
7932 if test "$cross_compiling" = yes; then
7933 # Depending upon the size, compute the lo and hi bounds.
7934 cat >conftest.$ac_ext <<_ACEOF
7935 /* confdefs.h. */
7936 _ACEOF
7937 cat confdefs.h >>conftest.$ac_ext
7938 cat >>conftest.$ac_ext <<_ACEOF
7939 /* end confdefs.h. */
7940 $ac_includes_default
7941 typedef long ac__type_sizeof_;
7943 main ()
7945 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7946 test_array [0] = 0
7949 return 0;
7951 _ACEOF
7952 rm -f conftest.$ac_objext
7953 if { (ac_try="$ac_compile"
7954 case "(($ac_try" in
7955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7956 *) ac_try_echo=$ac_try;;
7957 esac
7958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7959 (eval "$ac_compile") 2>conftest.er1
7960 ac_status=$?
7961 grep -v '^ *+' conftest.er1 >conftest.err
7962 rm -f conftest.er1
7963 cat conftest.err >&5
7964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7965 (exit $ac_status); } && {
7966 test -z "$ac_c_werror_flag" ||
7967 test ! -s conftest.err
7968 } && test -s conftest.$ac_objext; then
7969 ac_lo=0 ac_mid=0
7970 while :; do
7971 cat >conftest.$ac_ext <<_ACEOF
7972 /* confdefs.h. */
7973 _ACEOF
7974 cat confdefs.h >>conftest.$ac_ext
7975 cat >>conftest.$ac_ext <<_ACEOF
7976 /* end confdefs.h. */
7977 $ac_includes_default
7978 typedef long ac__type_sizeof_;
7980 main ()
7982 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7983 test_array [0] = 0
7986 return 0;
7988 _ACEOF
7989 rm -f conftest.$ac_objext
7990 if { (ac_try="$ac_compile"
7991 case "(($ac_try" in
7992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7993 *) ac_try_echo=$ac_try;;
7994 esac
7995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7996 (eval "$ac_compile") 2>conftest.er1
7997 ac_status=$?
7998 grep -v '^ *+' conftest.er1 >conftest.err
7999 rm -f conftest.er1
8000 cat conftest.err >&5
8001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8002 (exit $ac_status); } && {
8003 test -z "$ac_c_werror_flag" ||
8004 test ! -s conftest.err
8005 } && test -s conftest.$ac_objext; then
8006 ac_hi=$ac_mid; break
8007 else
8008 echo "$as_me: failed program was:" >&5
8009 sed 's/^/| /' conftest.$ac_ext >&5
8011 ac_lo=`expr $ac_mid + 1`
8012 if test $ac_lo -le $ac_mid; then
8013 ac_lo= ac_hi=
8014 break
8016 ac_mid=`expr 2 '*' $ac_mid + 1`
8019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8020 done
8021 else
8022 echo "$as_me: failed program was:" >&5
8023 sed 's/^/| /' conftest.$ac_ext >&5
8025 cat >conftest.$ac_ext <<_ACEOF
8026 /* confdefs.h. */
8027 _ACEOF
8028 cat confdefs.h >>conftest.$ac_ext
8029 cat >>conftest.$ac_ext <<_ACEOF
8030 /* end confdefs.h. */
8031 $ac_includes_default
8032 typedef long ac__type_sizeof_;
8034 main ()
8036 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8037 test_array [0] = 0
8040 return 0;
8042 _ACEOF
8043 rm -f conftest.$ac_objext
8044 if { (ac_try="$ac_compile"
8045 case "(($ac_try" in
8046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8047 *) ac_try_echo=$ac_try;;
8048 esac
8049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8050 (eval "$ac_compile") 2>conftest.er1
8051 ac_status=$?
8052 grep -v '^ *+' conftest.er1 >conftest.err
8053 rm -f conftest.er1
8054 cat conftest.err >&5
8055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8056 (exit $ac_status); } && {
8057 test -z "$ac_c_werror_flag" ||
8058 test ! -s conftest.err
8059 } && test -s conftest.$ac_objext; then
8060 ac_hi=-1 ac_mid=-1
8061 while :; do
8062 cat >conftest.$ac_ext <<_ACEOF
8063 /* confdefs.h. */
8064 _ACEOF
8065 cat confdefs.h >>conftest.$ac_ext
8066 cat >>conftest.$ac_ext <<_ACEOF
8067 /* end confdefs.h. */
8068 $ac_includes_default
8069 typedef long ac__type_sizeof_;
8071 main ()
8073 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8074 test_array [0] = 0
8077 return 0;
8079 _ACEOF
8080 rm -f conftest.$ac_objext
8081 if { (ac_try="$ac_compile"
8082 case "(($ac_try" in
8083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8084 *) ac_try_echo=$ac_try;;
8085 esac
8086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8087 (eval "$ac_compile") 2>conftest.er1
8088 ac_status=$?
8089 grep -v '^ *+' conftest.er1 >conftest.err
8090 rm -f conftest.er1
8091 cat conftest.err >&5
8092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8093 (exit $ac_status); } && {
8094 test -z "$ac_c_werror_flag" ||
8095 test ! -s conftest.err
8096 } && test -s conftest.$ac_objext; then
8097 ac_lo=$ac_mid; break
8098 else
8099 echo "$as_me: failed program was:" >&5
8100 sed 's/^/| /' conftest.$ac_ext >&5
8102 ac_hi=`expr '(' $ac_mid ')' - 1`
8103 if test $ac_mid -le $ac_hi; then
8104 ac_lo= ac_hi=
8105 break
8107 ac_mid=`expr 2 '*' $ac_mid`
8110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8111 done
8112 else
8113 echo "$as_me: failed program was:" >&5
8114 sed 's/^/| /' conftest.$ac_ext >&5
8116 ac_lo= ac_hi=
8119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8123 # Binary search between lo and hi bounds.
8124 while test "x$ac_lo" != "x$ac_hi"; do
8125 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8126 cat >conftest.$ac_ext <<_ACEOF
8127 /* confdefs.h. */
8128 _ACEOF
8129 cat confdefs.h >>conftest.$ac_ext
8130 cat >>conftest.$ac_ext <<_ACEOF
8131 /* end confdefs.h. */
8132 $ac_includes_default
8133 typedef long ac__type_sizeof_;
8135 main ()
8137 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8138 test_array [0] = 0
8141 return 0;
8143 _ACEOF
8144 rm -f conftest.$ac_objext
8145 if { (ac_try="$ac_compile"
8146 case "(($ac_try" in
8147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8148 *) ac_try_echo=$ac_try;;
8149 esac
8150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8151 (eval "$ac_compile") 2>conftest.er1
8152 ac_status=$?
8153 grep -v '^ *+' conftest.er1 >conftest.err
8154 rm -f conftest.er1
8155 cat conftest.err >&5
8156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8157 (exit $ac_status); } && {
8158 test -z "$ac_c_werror_flag" ||
8159 test ! -s conftest.err
8160 } && test -s conftest.$ac_objext; then
8161 ac_hi=$ac_mid
8162 else
8163 echo "$as_me: failed program was:" >&5
8164 sed 's/^/| /' conftest.$ac_ext >&5
8166 ac_lo=`expr '(' $ac_mid ')' + 1`
8169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8170 done
8171 case $ac_lo in
8172 ?*) ac_cv_sizeof_long=$ac_lo;;
8173 '') if test "$ac_cv_type_long" = yes; then
8174 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
8175 See \`config.log' for more details." >&5
8176 echo "$as_me: error: cannot compute sizeof (long)
8177 See \`config.log' for more details." >&2;}
8178 { (exit 77); exit 77; }; }
8179 else
8180 ac_cv_sizeof_long=0
8181 fi ;;
8182 esac
8183 else
8184 cat >conftest.$ac_ext <<_ACEOF
8185 /* confdefs.h. */
8186 _ACEOF
8187 cat confdefs.h >>conftest.$ac_ext
8188 cat >>conftest.$ac_ext <<_ACEOF
8189 /* end confdefs.h. */
8190 $ac_includes_default
8191 typedef long ac__type_sizeof_;
8192 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8193 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8194 #include <stdio.h>
8195 #include <stdlib.h>
8197 main ()
8200 FILE *f = fopen ("conftest.val", "w");
8201 if (! f)
8202 return 1;
8203 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8205 long int i = longval ();
8206 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8207 return 1;
8208 fprintf (f, "%ld\n", i);
8210 else
8212 unsigned long int i = ulongval ();
8213 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8214 return 1;
8215 fprintf (f, "%lu\n", i);
8217 return ferror (f) || fclose (f) != 0;
8220 return 0;
8222 _ACEOF
8223 rm -f conftest$ac_exeext
8224 if { (ac_try="$ac_link"
8225 case "(($ac_try" in
8226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8227 *) ac_try_echo=$ac_try;;
8228 esac
8229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8230 (eval "$ac_link") 2>&5
8231 ac_status=$?
8232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8234 { (case "(($ac_try" in
8235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8236 *) ac_try_echo=$ac_try;;
8237 esac
8238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8239 (eval "$ac_try") 2>&5
8240 ac_status=$?
8241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242 (exit $ac_status); }; }; then
8243 ac_cv_sizeof_long=`cat conftest.val`
8244 else
8245 echo "$as_me: program exited with status $ac_status" >&5
8246 echo "$as_me: failed program was:" >&5
8247 sed 's/^/| /' conftest.$ac_ext >&5
8249 ( exit $ac_status )
8250 if test "$ac_cv_type_long" = yes; then
8251 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
8252 See \`config.log' for more details." >&5
8253 echo "$as_me: error: cannot compute sizeof (long)
8254 See \`config.log' for more details." >&2;}
8255 { (exit 77); exit 77; }; }
8256 else
8257 ac_cv_sizeof_long=0
8260 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8262 rm -f conftest.val
8264 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
8265 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
8269 cat >>confdefs.h <<_ACEOF
8270 #define SIZEOF_LONG $ac_cv_sizeof_long
8271 _ACEOF
8274 { echo "$as_me:$LINENO: checking for void *" >&5
8275 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
8276 if test "${ac_cv_type_void_p+set}" = set; then
8277 echo $ECHO_N "(cached) $ECHO_C" >&6
8278 else
8279 cat >conftest.$ac_ext <<_ACEOF
8280 /* confdefs.h. */
8281 _ACEOF
8282 cat confdefs.h >>conftest.$ac_ext
8283 cat >>conftest.$ac_ext <<_ACEOF
8284 /* end confdefs.h. */
8285 $ac_includes_default
8286 typedef void * ac__type_new_;
8288 main ()
8290 if ((ac__type_new_ *) 0)
8291 return 0;
8292 if (sizeof (ac__type_new_))
8293 return 0;
8295 return 0;
8297 _ACEOF
8298 rm -f conftest.$ac_objext
8299 if { (ac_try="$ac_compile"
8300 case "(($ac_try" in
8301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8302 *) ac_try_echo=$ac_try;;
8303 esac
8304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8305 (eval "$ac_compile") 2>conftest.er1
8306 ac_status=$?
8307 grep -v '^ *+' conftest.er1 >conftest.err
8308 rm -f conftest.er1
8309 cat conftest.err >&5
8310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311 (exit $ac_status); } && {
8312 test -z "$ac_c_werror_flag" ||
8313 test ! -s conftest.err
8314 } && test -s conftest.$ac_objext; then
8315 ac_cv_type_void_p=yes
8316 else
8317 echo "$as_me: failed program was:" >&5
8318 sed 's/^/| /' conftest.$ac_ext >&5
8320 ac_cv_type_void_p=no
8323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8325 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
8326 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
8328 # The cast to long int works around a bug in the HP C Compiler
8329 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8330 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8331 # This bug is HP SR number 8606223364.
8332 { echo "$as_me:$LINENO: checking size of void *" >&5
8333 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
8334 if test "${ac_cv_sizeof_void_p+set}" = set; then
8335 echo $ECHO_N "(cached) $ECHO_C" >&6
8336 else
8337 if test "$cross_compiling" = yes; then
8338 # Depending upon the size, compute the lo and hi bounds.
8339 cat >conftest.$ac_ext <<_ACEOF
8340 /* confdefs.h. */
8341 _ACEOF
8342 cat confdefs.h >>conftest.$ac_ext
8343 cat >>conftest.$ac_ext <<_ACEOF
8344 /* end confdefs.h. */
8345 $ac_includes_default
8346 typedef void * ac__type_sizeof_;
8348 main ()
8350 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8351 test_array [0] = 0
8354 return 0;
8356 _ACEOF
8357 rm -f conftest.$ac_objext
8358 if { (ac_try="$ac_compile"
8359 case "(($ac_try" in
8360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8361 *) ac_try_echo=$ac_try;;
8362 esac
8363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8364 (eval "$ac_compile") 2>conftest.er1
8365 ac_status=$?
8366 grep -v '^ *+' conftest.er1 >conftest.err
8367 rm -f conftest.er1
8368 cat conftest.err >&5
8369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370 (exit $ac_status); } && {
8371 test -z "$ac_c_werror_flag" ||
8372 test ! -s conftest.err
8373 } && test -s conftest.$ac_objext; then
8374 ac_lo=0 ac_mid=0
8375 while :; do
8376 cat >conftest.$ac_ext <<_ACEOF
8377 /* confdefs.h. */
8378 _ACEOF
8379 cat confdefs.h >>conftest.$ac_ext
8380 cat >>conftest.$ac_ext <<_ACEOF
8381 /* end confdefs.h. */
8382 $ac_includes_default
8383 typedef void * ac__type_sizeof_;
8385 main ()
8387 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8388 test_array [0] = 0
8391 return 0;
8393 _ACEOF
8394 rm -f conftest.$ac_objext
8395 if { (ac_try="$ac_compile"
8396 case "(($ac_try" in
8397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8398 *) ac_try_echo=$ac_try;;
8399 esac
8400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8401 (eval "$ac_compile") 2>conftest.er1
8402 ac_status=$?
8403 grep -v '^ *+' conftest.er1 >conftest.err
8404 rm -f conftest.er1
8405 cat conftest.err >&5
8406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407 (exit $ac_status); } && {
8408 test -z "$ac_c_werror_flag" ||
8409 test ! -s conftest.err
8410 } && test -s conftest.$ac_objext; then
8411 ac_hi=$ac_mid; break
8412 else
8413 echo "$as_me: failed program was:" >&5
8414 sed 's/^/| /' conftest.$ac_ext >&5
8416 ac_lo=`expr $ac_mid + 1`
8417 if test $ac_lo -le $ac_mid; then
8418 ac_lo= ac_hi=
8419 break
8421 ac_mid=`expr 2 '*' $ac_mid + 1`
8424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8425 done
8426 else
8427 echo "$as_me: failed program was:" >&5
8428 sed 's/^/| /' conftest.$ac_ext >&5
8430 cat >conftest.$ac_ext <<_ACEOF
8431 /* confdefs.h. */
8432 _ACEOF
8433 cat confdefs.h >>conftest.$ac_ext
8434 cat >>conftest.$ac_ext <<_ACEOF
8435 /* end confdefs.h. */
8436 $ac_includes_default
8437 typedef void * ac__type_sizeof_;
8439 main ()
8441 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8442 test_array [0] = 0
8445 return 0;
8447 _ACEOF
8448 rm -f conftest.$ac_objext
8449 if { (ac_try="$ac_compile"
8450 case "(($ac_try" in
8451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8452 *) ac_try_echo=$ac_try;;
8453 esac
8454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8455 (eval "$ac_compile") 2>conftest.er1
8456 ac_status=$?
8457 grep -v '^ *+' conftest.er1 >conftest.err
8458 rm -f conftest.er1
8459 cat conftest.err >&5
8460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461 (exit $ac_status); } && {
8462 test -z "$ac_c_werror_flag" ||
8463 test ! -s conftest.err
8464 } && test -s conftest.$ac_objext; then
8465 ac_hi=-1 ac_mid=-1
8466 while :; do
8467 cat >conftest.$ac_ext <<_ACEOF
8468 /* confdefs.h. */
8469 _ACEOF
8470 cat confdefs.h >>conftest.$ac_ext
8471 cat >>conftest.$ac_ext <<_ACEOF
8472 /* end confdefs.h. */
8473 $ac_includes_default
8474 typedef void * ac__type_sizeof_;
8476 main ()
8478 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8479 test_array [0] = 0
8482 return 0;
8484 _ACEOF
8485 rm -f conftest.$ac_objext
8486 if { (ac_try="$ac_compile"
8487 case "(($ac_try" in
8488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8489 *) ac_try_echo=$ac_try;;
8490 esac
8491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8492 (eval "$ac_compile") 2>conftest.er1
8493 ac_status=$?
8494 grep -v '^ *+' conftest.er1 >conftest.err
8495 rm -f conftest.er1
8496 cat conftest.err >&5
8497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8498 (exit $ac_status); } && {
8499 test -z "$ac_c_werror_flag" ||
8500 test ! -s conftest.err
8501 } && test -s conftest.$ac_objext; then
8502 ac_lo=$ac_mid; break
8503 else
8504 echo "$as_me: failed program was:" >&5
8505 sed 's/^/| /' conftest.$ac_ext >&5
8507 ac_hi=`expr '(' $ac_mid ')' - 1`
8508 if test $ac_mid -le $ac_hi; then
8509 ac_lo= ac_hi=
8510 break
8512 ac_mid=`expr 2 '*' $ac_mid`
8515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8516 done
8517 else
8518 echo "$as_me: failed program was:" >&5
8519 sed 's/^/| /' conftest.$ac_ext >&5
8521 ac_lo= ac_hi=
8524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8528 # Binary search between lo and hi bounds.
8529 while test "x$ac_lo" != "x$ac_hi"; do
8530 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8531 cat >conftest.$ac_ext <<_ACEOF
8532 /* confdefs.h. */
8533 _ACEOF
8534 cat confdefs.h >>conftest.$ac_ext
8535 cat >>conftest.$ac_ext <<_ACEOF
8536 /* end confdefs.h. */
8537 $ac_includes_default
8538 typedef void * ac__type_sizeof_;
8540 main ()
8542 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8543 test_array [0] = 0
8546 return 0;
8548 _ACEOF
8549 rm -f conftest.$ac_objext
8550 if { (ac_try="$ac_compile"
8551 case "(($ac_try" in
8552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8553 *) ac_try_echo=$ac_try;;
8554 esac
8555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8556 (eval "$ac_compile") 2>conftest.er1
8557 ac_status=$?
8558 grep -v '^ *+' conftest.er1 >conftest.err
8559 rm -f conftest.er1
8560 cat conftest.err >&5
8561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8562 (exit $ac_status); } && {
8563 test -z "$ac_c_werror_flag" ||
8564 test ! -s conftest.err
8565 } && test -s conftest.$ac_objext; then
8566 ac_hi=$ac_mid
8567 else
8568 echo "$as_me: failed program was:" >&5
8569 sed 's/^/| /' conftest.$ac_ext >&5
8571 ac_lo=`expr '(' $ac_mid ')' + 1`
8574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8575 done
8576 case $ac_lo in
8577 ?*) ac_cv_sizeof_void_p=$ac_lo;;
8578 '') if test "$ac_cv_type_void_p" = yes; then
8579 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8580 See \`config.log' for more details." >&5
8581 echo "$as_me: error: cannot compute sizeof (void *)
8582 See \`config.log' for more details." >&2;}
8583 { (exit 77); exit 77; }; }
8584 else
8585 ac_cv_sizeof_void_p=0
8586 fi ;;
8587 esac
8588 else
8589 cat >conftest.$ac_ext <<_ACEOF
8590 /* confdefs.h. */
8591 _ACEOF
8592 cat confdefs.h >>conftest.$ac_ext
8593 cat >>conftest.$ac_ext <<_ACEOF
8594 /* end confdefs.h. */
8595 $ac_includes_default
8596 typedef void * ac__type_sizeof_;
8597 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8598 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8599 #include <stdio.h>
8600 #include <stdlib.h>
8602 main ()
8605 FILE *f = fopen ("conftest.val", "w");
8606 if (! f)
8607 return 1;
8608 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8610 long int i = longval ();
8611 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8612 return 1;
8613 fprintf (f, "%ld\n", i);
8615 else
8617 unsigned long int i = ulongval ();
8618 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8619 return 1;
8620 fprintf (f, "%lu\n", i);
8622 return ferror (f) || fclose (f) != 0;
8625 return 0;
8627 _ACEOF
8628 rm -f conftest$ac_exeext
8629 if { (ac_try="$ac_link"
8630 case "(($ac_try" in
8631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8632 *) ac_try_echo=$ac_try;;
8633 esac
8634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8635 (eval "$ac_link") 2>&5
8636 ac_status=$?
8637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8638 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8639 { (case "(($ac_try" in
8640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8641 *) ac_try_echo=$ac_try;;
8642 esac
8643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8644 (eval "$ac_try") 2>&5
8645 ac_status=$?
8646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647 (exit $ac_status); }; }; then
8648 ac_cv_sizeof_void_p=`cat conftest.val`
8649 else
8650 echo "$as_me: program exited with status $ac_status" >&5
8651 echo "$as_me: failed program was:" >&5
8652 sed 's/^/| /' conftest.$ac_ext >&5
8654 ( exit $ac_status )
8655 if test "$ac_cv_type_void_p" = yes; then
8656 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8657 See \`config.log' for more details." >&5
8658 echo "$as_me: error: cannot compute sizeof (void *)
8659 See \`config.log' for more details." >&2;}
8660 { (exit 77); exit 77; }; }
8661 else
8662 ac_cv_sizeof_void_p=0
8665 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8667 rm -f conftest.val
8669 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
8670 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
8674 cat >>confdefs.h <<_ACEOF
8675 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8676 _ACEOF
8679 { echo "$as_me:$LINENO: checking for short" >&5
8680 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
8681 if test "${ac_cv_type_short+set}" = set; then
8682 echo $ECHO_N "(cached) $ECHO_C" >&6
8683 else
8684 cat >conftest.$ac_ext <<_ACEOF
8685 /* confdefs.h. */
8686 _ACEOF
8687 cat confdefs.h >>conftest.$ac_ext
8688 cat >>conftest.$ac_ext <<_ACEOF
8689 /* end confdefs.h. */
8690 $ac_includes_default
8691 typedef short ac__type_new_;
8693 main ()
8695 if ((ac__type_new_ *) 0)
8696 return 0;
8697 if (sizeof (ac__type_new_))
8698 return 0;
8700 return 0;
8702 _ACEOF
8703 rm -f conftest.$ac_objext
8704 if { (ac_try="$ac_compile"
8705 case "(($ac_try" in
8706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8707 *) ac_try_echo=$ac_try;;
8708 esac
8709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8710 (eval "$ac_compile") 2>conftest.er1
8711 ac_status=$?
8712 grep -v '^ *+' conftest.er1 >conftest.err
8713 rm -f conftest.er1
8714 cat conftest.err >&5
8715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716 (exit $ac_status); } && {
8717 test -z "$ac_c_werror_flag" ||
8718 test ! -s conftest.err
8719 } && test -s conftest.$ac_objext; then
8720 ac_cv_type_short=yes
8721 else
8722 echo "$as_me: failed program was:" >&5
8723 sed 's/^/| /' conftest.$ac_ext >&5
8725 ac_cv_type_short=no
8728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8730 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
8731 echo "${ECHO_T}$ac_cv_type_short" >&6; }
8733 # The cast to long int works around a bug in the HP C Compiler
8734 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8735 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8736 # This bug is HP SR number 8606223364.
8737 { echo "$as_me:$LINENO: checking size of short" >&5
8738 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
8739 if test "${ac_cv_sizeof_short+set}" = set; then
8740 echo $ECHO_N "(cached) $ECHO_C" >&6
8741 else
8742 if test "$cross_compiling" = yes; then
8743 # Depending upon the size, compute the lo and hi bounds.
8744 cat >conftest.$ac_ext <<_ACEOF
8745 /* confdefs.h. */
8746 _ACEOF
8747 cat confdefs.h >>conftest.$ac_ext
8748 cat >>conftest.$ac_ext <<_ACEOF
8749 /* end confdefs.h. */
8750 $ac_includes_default
8751 typedef short ac__type_sizeof_;
8753 main ()
8755 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8756 test_array [0] = 0
8759 return 0;
8761 _ACEOF
8762 rm -f conftest.$ac_objext
8763 if { (ac_try="$ac_compile"
8764 case "(($ac_try" in
8765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8766 *) ac_try_echo=$ac_try;;
8767 esac
8768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8769 (eval "$ac_compile") 2>conftest.er1
8770 ac_status=$?
8771 grep -v '^ *+' conftest.er1 >conftest.err
8772 rm -f conftest.er1
8773 cat conftest.err >&5
8774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8775 (exit $ac_status); } && {
8776 test -z "$ac_c_werror_flag" ||
8777 test ! -s conftest.err
8778 } && test -s conftest.$ac_objext; then
8779 ac_lo=0 ac_mid=0
8780 while :; do
8781 cat >conftest.$ac_ext <<_ACEOF
8782 /* confdefs.h. */
8783 _ACEOF
8784 cat confdefs.h >>conftest.$ac_ext
8785 cat >>conftest.$ac_ext <<_ACEOF
8786 /* end confdefs.h. */
8787 $ac_includes_default
8788 typedef short ac__type_sizeof_;
8790 main ()
8792 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8793 test_array [0] = 0
8796 return 0;
8798 _ACEOF
8799 rm -f conftest.$ac_objext
8800 if { (ac_try="$ac_compile"
8801 case "(($ac_try" in
8802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8803 *) ac_try_echo=$ac_try;;
8804 esac
8805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8806 (eval "$ac_compile") 2>conftest.er1
8807 ac_status=$?
8808 grep -v '^ *+' conftest.er1 >conftest.err
8809 rm -f conftest.er1
8810 cat conftest.err >&5
8811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8812 (exit $ac_status); } && {
8813 test -z "$ac_c_werror_flag" ||
8814 test ! -s conftest.err
8815 } && test -s conftest.$ac_objext; then
8816 ac_hi=$ac_mid; break
8817 else
8818 echo "$as_me: failed program was:" >&5
8819 sed 's/^/| /' conftest.$ac_ext >&5
8821 ac_lo=`expr $ac_mid + 1`
8822 if test $ac_lo -le $ac_mid; then
8823 ac_lo= ac_hi=
8824 break
8826 ac_mid=`expr 2 '*' $ac_mid + 1`
8829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8830 done
8831 else
8832 echo "$as_me: failed program was:" >&5
8833 sed 's/^/| /' conftest.$ac_ext >&5
8835 cat >conftest.$ac_ext <<_ACEOF
8836 /* confdefs.h. */
8837 _ACEOF
8838 cat confdefs.h >>conftest.$ac_ext
8839 cat >>conftest.$ac_ext <<_ACEOF
8840 /* end confdefs.h. */
8841 $ac_includes_default
8842 typedef short ac__type_sizeof_;
8844 main ()
8846 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8847 test_array [0] = 0
8850 return 0;
8852 _ACEOF
8853 rm -f conftest.$ac_objext
8854 if { (ac_try="$ac_compile"
8855 case "(($ac_try" in
8856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8857 *) ac_try_echo=$ac_try;;
8858 esac
8859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8860 (eval "$ac_compile") 2>conftest.er1
8861 ac_status=$?
8862 grep -v '^ *+' conftest.er1 >conftest.err
8863 rm -f conftest.er1
8864 cat conftest.err >&5
8865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8866 (exit $ac_status); } && {
8867 test -z "$ac_c_werror_flag" ||
8868 test ! -s conftest.err
8869 } && test -s conftest.$ac_objext; then
8870 ac_hi=-1 ac_mid=-1
8871 while :; do
8872 cat >conftest.$ac_ext <<_ACEOF
8873 /* confdefs.h. */
8874 _ACEOF
8875 cat confdefs.h >>conftest.$ac_ext
8876 cat >>conftest.$ac_ext <<_ACEOF
8877 /* end confdefs.h. */
8878 $ac_includes_default
8879 typedef short ac__type_sizeof_;
8881 main ()
8883 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8884 test_array [0] = 0
8887 return 0;
8889 _ACEOF
8890 rm -f conftest.$ac_objext
8891 if { (ac_try="$ac_compile"
8892 case "(($ac_try" in
8893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8894 *) ac_try_echo=$ac_try;;
8895 esac
8896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8897 (eval "$ac_compile") 2>conftest.er1
8898 ac_status=$?
8899 grep -v '^ *+' conftest.er1 >conftest.err
8900 rm -f conftest.er1
8901 cat conftest.err >&5
8902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8903 (exit $ac_status); } && {
8904 test -z "$ac_c_werror_flag" ||
8905 test ! -s conftest.err
8906 } && test -s conftest.$ac_objext; then
8907 ac_lo=$ac_mid; break
8908 else
8909 echo "$as_me: failed program was:" >&5
8910 sed 's/^/| /' conftest.$ac_ext >&5
8912 ac_hi=`expr '(' $ac_mid ')' - 1`
8913 if test $ac_mid -le $ac_hi; then
8914 ac_lo= ac_hi=
8915 break
8917 ac_mid=`expr 2 '*' $ac_mid`
8920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8921 done
8922 else
8923 echo "$as_me: failed program was:" >&5
8924 sed 's/^/| /' conftest.$ac_ext >&5
8926 ac_lo= ac_hi=
8929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8933 # Binary search between lo and hi bounds.
8934 while test "x$ac_lo" != "x$ac_hi"; do
8935 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8936 cat >conftest.$ac_ext <<_ACEOF
8937 /* confdefs.h. */
8938 _ACEOF
8939 cat confdefs.h >>conftest.$ac_ext
8940 cat >>conftest.$ac_ext <<_ACEOF
8941 /* end confdefs.h. */
8942 $ac_includes_default
8943 typedef short ac__type_sizeof_;
8945 main ()
8947 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8948 test_array [0] = 0
8951 return 0;
8953 _ACEOF
8954 rm -f conftest.$ac_objext
8955 if { (ac_try="$ac_compile"
8956 case "(($ac_try" in
8957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8958 *) ac_try_echo=$ac_try;;
8959 esac
8960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8961 (eval "$ac_compile") 2>conftest.er1
8962 ac_status=$?
8963 grep -v '^ *+' conftest.er1 >conftest.err
8964 rm -f conftest.er1
8965 cat conftest.err >&5
8966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967 (exit $ac_status); } && {
8968 test -z "$ac_c_werror_flag" ||
8969 test ! -s conftest.err
8970 } && test -s conftest.$ac_objext; then
8971 ac_hi=$ac_mid
8972 else
8973 echo "$as_me: failed program was:" >&5
8974 sed 's/^/| /' conftest.$ac_ext >&5
8976 ac_lo=`expr '(' $ac_mid ')' + 1`
8979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8980 done
8981 case $ac_lo in
8982 ?*) ac_cv_sizeof_short=$ac_lo;;
8983 '') if test "$ac_cv_type_short" = yes; then
8984 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
8985 See \`config.log' for more details." >&5
8986 echo "$as_me: error: cannot compute sizeof (short)
8987 See \`config.log' for more details." >&2;}
8988 { (exit 77); exit 77; }; }
8989 else
8990 ac_cv_sizeof_short=0
8991 fi ;;
8992 esac
8993 else
8994 cat >conftest.$ac_ext <<_ACEOF
8995 /* confdefs.h. */
8996 _ACEOF
8997 cat confdefs.h >>conftest.$ac_ext
8998 cat >>conftest.$ac_ext <<_ACEOF
8999 /* end confdefs.h. */
9000 $ac_includes_default
9001 typedef short ac__type_sizeof_;
9002 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9003 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9004 #include <stdio.h>
9005 #include <stdlib.h>
9007 main ()
9010 FILE *f = fopen ("conftest.val", "w");
9011 if (! f)
9012 return 1;
9013 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9015 long int i = longval ();
9016 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9017 return 1;
9018 fprintf (f, "%ld\n", i);
9020 else
9022 unsigned long int i = ulongval ();
9023 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9024 return 1;
9025 fprintf (f, "%lu\n", i);
9027 return ferror (f) || fclose (f) != 0;
9030 return 0;
9032 _ACEOF
9033 rm -f conftest$ac_exeext
9034 if { (ac_try="$ac_link"
9035 case "(($ac_try" in
9036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9037 *) ac_try_echo=$ac_try;;
9038 esac
9039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9040 (eval "$ac_link") 2>&5
9041 ac_status=$?
9042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9043 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9044 { (case "(($ac_try" in
9045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9046 *) ac_try_echo=$ac_try;;
9047 esac
9048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9049 (eval "$ac_try") 2>&5
9050 ac_status=$?
9051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9052 (exit $ac_status); }; }; then
9053 ac_cv_sizeof_short=`cat conftest.val`
9054 else
9055 echo "$as_me: program exited with status $ac_status" >&5
9056 echo "$as_me: failed program was:" >&5
9057 sed 's/^/| /' conftest.$ac_ext >&5
9059 ( exit $ac_status )
9060 if test "$ac_cv_type_short" = yes; then
9061 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
9062 See \`config.log' for more details." >&5
9063 echo "$as_me: error: cannot compute sizeof (short)
9064 See \`config.log' for more details." >&2;}
9065 { (exit 77); exit 77; }; }
9066 else
9067 ac_cv_sizeof_short=0
9070 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9072 rm -f conftest.val
9074 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
9075 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
9079 cat >>confdefs.h <<_ACEOF
9080 #define SIZEOF_SHORT $ac_cv_sizeof_short
9081 _ACEOF
9084 { echo "$as_me:$LINENO: checking for float" >&5
9085 echo $ECHO_N "checking for float... $ECHO_C" >&6; }
9086 if test "${ac_cv_type_float+set}" = set; then
9087 echo $ECHO_N "(cached) $ECHO_C" >&6
9088 else
9089 cat >conftest.$ac_ext <<_ACEOF
9090 /* confdefs.h. */
9091 _ACEOF
9092 cat confdefs.h >>conftest.$ac_ext
9093 cat >>conftest.$ac_ext <<_ACEOF
9094 /* end confdefs.h. */
9095 $ac_includes_default
9096 typedef float ac__type_new_;
9098 main ()
9100 if ((ac__type_new_ *) 0)
9101 return 0;
9102 if (sizeof (ac__type_new_))
9103 return 0;
9105 return 0;
9107 _ACEOF
9108 rm -f conftest.$ac_objext
9109 if { (ac_try="$ac_compile"
9110 case "(($ac_try" in
9111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9112 *) ac_try_echo=$ac_try;;
9113 esac
9114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9115 (eval "$ac_compile") 2>conftest.er1
9116 ac_status=$?
9117 grep -v '^ *+' conftest.er1 >conftest.err
9118 rm -f conftest.er1
9119 cat conftest.err >&5
9120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9121 (exit $ac_status); } && {
9122 test -z "$ac_c_werror_flag" ||
9123 test ! -s conftest.err
9124 } && test -s conftest.$ac_objext; then
9125 ac_cv_type_float=yes
9126 else
9127 echo "$as_me: failed program was:" >&5
9128 sed 's/^/| /' conftest.$ac_ext >&5
9130 ac_cv_type_float=no
9133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9135 { echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
9136 echo "${ECHO_T}$ac_cv_type_float" >&6; }
9138 # The cast to long int works around a bug in the HP C Compiler
9139 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9140 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9141 # This bug is HP SR number 8606223364.
9142 { echo "$as_me:$LINENO: checking size of float" >&5
9143 echo $ECHO_N "checking size of float... $ECHO_C" >&6; }
9144 if test "${ac_cv_sizeof_float+set}" = set; then
9145 echo $ECHO_N "(cached) $ECHO_C" >&6
9146 else
9147 if test "$cross_compiling" = yes; then
9148 # Depending upon the size, compute the lo and hi bounds.
9149 cat >conftest.$ac_ext <<_ACEOF
9150 /* confdefs.h. */
9151 _ACEOF
9152 cat confdefs.h >>conftest.$ac_ext
9153 cat >>conftest.$ac_ext <<_ACEOF
9154 /* end confdefs.h. */
9155 $ac_includes_default
9156 typedef float ac__type_sizeof_;
9158 main ()
9160 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9161 test_array [0] = 0
9164 return 0;
9166 _ACEOF
9167 rm -f conftest.$ac_objext
9168 if { (ac_try="$ac_compile"
9169 case "(($ac_try" in
9170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9171 *) ac_try_echo=$ac_try;;
9172 esac
9173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9174 (eval "$ac_compile") 2>conftest.er1
9175 ac_status=$?
9176 grep -v '^ *+' conftest.er1 >conftest.err
9177 rm -f conftest.er1
9178 cat conftest.err >&5
9179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9180 (exit $ac_status); } && {
9181 test -z "$ac_c_werror_flag" ||
9182 test ! -s conftest.err
9183 } && test -s conftest.$ac_objext; then
9184 ac_lo=0 ac_mid=0
9185 while :; do
9186 cat >conftest.$ac_ext <<_ACEOF
9187 /* confdefs.h. */
9188 _ACEOF
9189 cat confdefs.h >>conftest.$ac_ext
9190 cat >>conftest.$ac_ext <<_ACEOF
9191 /* end confdefs.h. */
9192 $ac_includes_default
9193 typedef float ac__type_sizeof_;
9195 main ()
9197 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9198 test_array [0] = 0
9201 return 0;
9203 _ACEOF
9204 rm -f conftest.$ac_objext
9205 if { (ac_try="$ac_compile"
9206 case "(($ac_try" in
9207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9208 *) ac_try_echo=$ac_try;;
9209 esac
9210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9211 (eval "$ac_compile") 2>conftest.er1
9212 ac_status=$?
9213 grep -v '^ *+' conftest.er1 >conftest.err
9214 rm -f conftest.er1
9215 cat conftest.err >&5
9216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9217 (exit $ac_status); } && {
9218 test -z "$ac_c_werror_flag" ||
9219 test ! -s conftest.err
9220 } && test -s conftest.$ac_objext; then
9221 ac_hi=$ac_mid; break
9222 else
9223 echo "$as_me: failed program was:" >&5
9224 sed 's/^/| /' conftest.$ac_ext >&5
9226 ac_lo=`expr $ac_mid + 1`
9227 if test $ac_lo -le $ac_mid; then
9228 ac_lo= ac_hi=
9229 break
9231 ac_mid=`expr 2 '*' $ac_mid + 1`
9234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9235 done
9236 else
9237 echo "$as_me: failed program was:" >&5
9238 sed 's/^/| /' conftest.$ac_ext >&5
9240 cat >conftest.$ac_ext <<_ACEOF
9241 /* confdefs.h. */
9242 _ACEOF
9243 cat confdefs.h >>conftest.$ac_ext
9244 cat >>conftest.$ac_ext <<_ACEOF
9245 /* end confdefs.h. */
9246 $ac_includes_default
9247 typedef float ac__type_sizeof_;
9249 main ()
9251 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9252 test_array [0] = 0
9255 return 0;
9257 _ACEOF
9258 rm -f conftest.$ac_objext
9259 if { (ac_try="$ac_compile"
9260 case "(($ac_try" in
9261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9262 *) ac_try_echo=$ac_try;;
9263 esac
9264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9265 (eval "$ac_compile") 2>conftest.er1
9266 ac_status=$?
9267 grep -v '^ *+' conftest.er1 >conftest.err
9268 rm -f conftest.er1
9269 cat conftest.err >&5
9270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271 (exit $ac_status); } && {
9272 test -z "$ac_c_werror_flag" ||
9273 test ! -s conftest.err
9274 } && test -s conftest.$ac_objext; then
9275 ac_hi=-1 ac_mid=-1
9276 while :; do
9277 cat >conftest.$ac_ext <<_ACEOF
9278 /* confdefs.h. */
9279 _ACEOF
9280 cat confdefs.h >>conftest.$ac_ext
9281 cat >>conftest.$ac_ext <<_ACEOF
9282 /* end confdefs.h. */
9283 $ac_includes_default
9284 typedef float ac__type_sizeof_;
9286 main ()
9288 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9289 test_array [0] = 0
9292 return 0;
9294 _ACEOF
9295 rm -f conftest.$ac_objext
9296 if { (ac_try="$ac_compile"
9297 case "(($ac_try" in
9298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9299 *) ac_try_echo=$ac_try;;
9300 esac
9301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9302 (eval "$ac_compile") 2>conftest.er1
9303 ac_status=$?
9304 grep -v '^ *+' conftest.er1 >conftest.err
9305 rm -f conftest.er1
9306 cat conftest.err >&5
9307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9308 (exit $ac_status); } && {
9309 test -z "$ac_c_werror_flag" ||
9310 test ! -s conftest.err
9311 } && test -s conftest.$ac_objext; then
9312 ac_lo=$ac_mid; break
9313 else
9314 echo "$as_me: failed program was:" >&5
9315 sed 's/^/| /' conftest.$ac_ext >&5
9317 ac_hi=`expr '(' $ac_mid ')' - 1`
9318 if test $ac_mid -le $ac_hi; then
9319 ac_lo= ac_hi=
9320 break
9322 ac_mid=`expr 2 '*' $ac_mid`
9325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9326 done
9327 else
9328 echo "$as_me: failed program was:" >&5
9329 sed 's/^/| /' conftest.$ac_ext >&5
9331 ac_lo= ac_hi=
9334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9338 # Binary search between lo and hi bounds.
9339 while test "x$ac_lo" != "x$ac_hi"; do
9340 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9341 cat >conftest.$ac_ext <<_ACEOF
9342 /* confdefs.h. */
9343 _ACEOF
9344 cat confdefs.h >>conftest.$ac_ext
9345 cat >>conftest.$ac_ext <<_ACEOF
9346 /* end confdefs.h. */
9347 $ac_includes_default
9348 typedef float ac__type_sizeof_;
9350 main ()
9352 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9353 test_array [0] = 0
9356 return 0;
9358 _ACEOF
9359 rm -f conftest.$ac_objext
9360 if { (ac_try="$ac_compile"
9361 case "(($ac_try" in
9362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9363 *) ac_try_echo=$ac_try;;
9364 esac
9365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9366 (eval "$ac_compile") 2>conftest.er1
9367 ac_status=$?
9368 grep -v '^ *+' conftest.er1 >conftest.err
9369 rm -f conftest.er1
9370 cat conftest.err >&5
9371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9372 (exit $ac_status); } && {
9373 test -z "$ac_c_werror_flag" ||
9374 test ! -s conftest.err
9375 } && test -s conftest.$ac_objext; then
9376 ac_hi=$ac_mid
9377 else
9378 echo "$as_me: failed program was:" >&5
9379 sed 's/^/| /' conftest.$ac_ext >&5
9381 ac_lo=`expr '(' $ac_mid ')' + 1`
9384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9385 done
9386 case $ac_lo in
9387 ?*) ac_cv_sizeof_float=$ac_lo;;
9388 '') if test "$ac_cv_type_float" = yes; then
9389 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
9390 See \`config.log' for more details." >&5
9391 echo "$as_me: error: cannot compute sizeof (float)
9392 See \`config.log' for more details." >&2;}
9393 { (exit 77); exit 77; }; }
9394 else
9395 ac_cv_sizeof_float=0
9396 fi ;;
9397 esac
9398 else
9399 cat >conftest.$ac_ext <<_ACEOF
9400 /* confdefs.h. */
9401 _ACEOF
9402 cat confdefs.h >>conftest.$ac_ext
9403 cat >>conftest.$ac_ext <<_ACEOF
9404 /* end confdefs.h. */
9405 $ac_includes_default
9406 typedef float ac__type_sizeof_;
9407 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9408 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9409 #include <stdio.h>
9410 #include <stdlib.h>
9412 main ()
9415 FILE *f = fopen ("conftest.val", "w");
9416 if (! f)
9417 return 1;
9418 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9420 long int i = longval ();
9421 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9422 return 1;
9423 fprintf (f, "%ld\n", i);
9425 else
9427 unsigned long int i = ulongval ();
9428 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9429 return 1;
9430 fprintf (f, "%lu\n", i);
9432 return ferror (f) || fclose (f) != 0;
9435 return 0;
9437 _ACEOF
9438 rm -f conftest$ac_exeext
9439 if { (ac_try="$ac_link"
9440 case "(($ac_try" in
9441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9442 *) ac_try_echo=$ac_try;;
9443 esac
9444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9445 (eval "$ac_link") 2>&5
9446 ac_status=$?
9447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9448 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9449 { (case "(($ac_try" in
9450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9451 *) ac_try_echo=$ac_try;;
9452 esac
9453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9454 (eval "$ac_try") 2>&5
9455 ac_status=$?
9456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9457 (exit $ac_status); }; }; then
9458 ac_cv_sizeof_float=`cat conftest.val`
9459 else
9460 echo "$as_me: program exited with status $ac_status" >&5
9461 echo "$as_me: failed program was:" >&5
9462 sed 's/^/| /' conftest.$ac_ext >&5
9464 ( exit $ac_status )
9465 if test "$ac_cv_type_float" = yes; then
9466 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
9467 See \`config.log' for more details." >&5
9468 echo "$as_me: error: cannot compute sizeof (float)
9469 See \`config.log' for more details." >&2;}
9470 { (exit 77); exit 77; }; }
9471 else
9472 ac_cv_sizeof_float=0
9475 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9477 rm -f conftest.val
9479 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
9480 echo "${ECHO_T}$ac_cv_sizeof_float" >&6; }
9484 cat >>confdefs.h <<_ACEOF
9485 #define SIZEOF_FLOAT $ac_cv_sizeof_float
9486 _ACEOF
9489 { echo "$as_me:$LINENO: checking for double" >&5
9490 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
9491 if test "${ac_cv_type_double+set}" = set; then
9492 echo $ECHO_N "(cached) $ECHO_C" >&6
9493 else
9494 cat >conftest.$ac_ext <<_ACEOF
9495 /* confdefs.h. */
9496 _ACEOF
9497 cat confdefs.h >>conftest.$ac_ext
9498 cat >>conftest.$ac_ext <<_ACEOF
9499 /* end confdefs.h. */
9500 $ac_includes_default
9501 typedef double ac__type_new_;
9503 main ()
9505 if ((ac__type_new_ *) 0)
9506 return 0;
9507 if (sizeof (ac__type_new_))
9508 return 0;
9510 return 0;
9512 _ACEOF
9513 rm -f conftest.$ac_objext
9514 if { (ac_try="$ac_compile"
9515 case "(($ac_try" in
9516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9517 *) ac_try_echo=$ac_try;;
9518 esac
9519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9520 (eval "$ac_compile") 2>conftest.er1
9521 ac_status=$?
9522 grep -v '^ *+' conftest.er1 >conftest.err
9523 rm -f conftest.er1
9524 cat conftest.err >&5
9525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9526 (exit $ac_status); } && {
9527 test -z "$ac_c_werror_flag" ||
9528 test ! -s conftest.err
9529 } && test -s conftest.$ac_objext; then
9530 ac_cv_type_double=yes
9531 else
9532 echo "$as_me: failed program was:" >&5
9533 sed 's/^/| /' conftest.$ac_ext >&5
9535 ac_cv_type_double=no
9538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9540 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
9541 echo "${ECHO_T}$ac_cv_type_double" >&6; }
9543 # The cast to long int works around a bug in the HP C Compiler
9544 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9545 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9546 # This bug is HP SR number 8606223364.
9547 { echo "$as_me:$LINENO: checking size of double" >&5
9548 echo $ECHO_N "checking size of double... $ECHO_C" >&6; }
9549 if test "${ac_cv_sizeof_double+set}" = set; then
9550 echo $ECHO_N "(cached) $ECHO_C" >&6
9551 else
9552 if test "$cross_compiling" = yes; then
9553 # Depending upon the size, compute the lo and hi bounds.
9554 cat >conftest.$ac_ext <<_ACEOF
9555 /* confdefs.h. */
9556 _ACEOF
9557 cat confdefs.h >>conftest.$ac_ext
9558 cat >>conftest.$ac_ext <<_ACEOF
9559 /* end confdefs.h. */
9560 $ac_includes_default
9561 typedef double ac__type_sizeof_;
9563 main ()
9565 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9566 test_array [0] = 0
9569 return 0;
9571 _ACEOF
9572 rm -f conftest.$ac_objext
9573 if { (ac_try="$ac_compile"
9574 case "(($ac_try" in
9575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9576 *) ac_try_echo=$ac_try;;
9577 esac
9578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9579 (eval "$ac_compile") 2>conftest.er1
9580 ac_status=$?
9581 grep -v '^ *+' conftest.er1 >conftest.err
9582 rm -f conftest.er1
9583 cat conftest.err >&5
9584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9585 (exit $ac_status); } && {
9586 test -z "$ac_c_werror_flag" ||
9587 test ! -s conftest.err
9588 } && test -s conftest.$ac_objext; then
9589 ac_lo=0 ac_mid=0
9590 while :; do
9591 cat >conftest.$ac_ext <<_ACEOF
9592 /* confdefs.h. */
9593 _ACEOF
9594 cat confdefs.h >>conftest.$ac_ext
9595 cat >>conftest.$ac_ext <<_ACEOF
9596 /* end confdefs.h. */
9597 $ac_includes_default
9598 typedef double ac__type_sizeof_;
9600 main ()
9602 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9603 test_array [0] = 0
9606 return 0;
9608 _ACEOF
9609 rm -f conftest.$ac_objext
9610 if { (ac_try="$ac_compile"
9611 case "(($ac_try" in
9612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9613 *) ac_try_echo=$ac_try;;
9614 esac
9615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9616 (eval "$ac_compile") 2>conftest.er1
9617 ac_status=$?
9618 grep -v '^ *+' conftest.er1 >conftest.err
9619 rm -f conftest.er1
9620 cat conftest.err >&5
9621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9622 (exit $ac_status); } && {
9623 test -z "$ac_c_werror_flag" ||
9624 test ! -s conftest.err
9625 } && test -s conftest.$ac_objext; then
9626 ac_hi=$ac_mid; break
9627 else
9628 echo "$as_me: failed program was:" >&5
9629 sed 's/^/| /' conftest.$ac_ext >&5
9631 ac_lo=`expr $ac_mid + 1`
9632 if test $ac_lo -le $ac_mid; then
9633 ac_lo= ac_hi=
9634 break
9636 ac_mid=`expr 2 '*' $ac_mid + 1`
9639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9640 done
9641 else
9642 echo "$as_me: failed program was:" >&5
9643 sed 's/^/| /' conftest.$ac_ext >&5
9645 cat >conftest.$ac_ext <<_ACEOF
9646 /* confdefs.h. */
9647 _ACEOF
9648 cat confdefs.h >>conftest.$ac_ext
9649 cat >>conftest.$ac_ext <<_ACEOF
9650 /* end confdefs.h. */
9651 $ac_includes_default
9652 typedef double ac__type_sizeof_;
9654 main ()
9656 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9657 test_array [0] = 0
9660 return 0;
9662 _ACEOF
9663 rm -f conftest.$ac_objext
9664 if { (ac_try="$ac_compile"
9665 case "(($ac_try" in
9666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9667 *) ac_try_echo=$ac_try;;
9668 esac
9669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9670 (eval "$ac_compile") 2>conftest.er1
9671 ac_status=$?
9672 grep -v '^ *+' conftest.er1 >conftest.err
9673 rm -f conftest.er1
9674 cat conftest.err >&5
9675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9676 (exit $ac_status); } && {
9677 test -z "$ac_c_werror_flag" ||
9678 test ! -s conftest.err
9679 } && test -s conftest.$ac_objext; then
9680 ac_hi=-1 ac_mid=-1
9681 while :; do
9682 cat >conftest.$ac_ext <<_ACEOF
9683 /* confdefs.h. */
9684 _ACEOF
9685 cat confdefs.h >>conftest.$ac_ext
9686 cat >>conftest.$ac_ext <<_ACEOF
9687 /* end confdefs.h. */
9688 $ac_includes_default
9689 typedef double ac__type_sizeof_;
9691 main ()
9693 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9694 test_array [0] = 0
9697 return 0;
9699 _ACEOF
9700 rm -f conftest.$ac_objext
9701 if { (ac_try="$ac_compile"
9702 case "(($ac_try" in
9703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9704 *) ac_try_echo=$ac_try;;
9705 esac
9706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9707 (eval "$ac_compile") 2>conftest.er1
9708 ac_status=$?
9709 grep -v '^ *+' conftest.er1 >conftest.err
9710 rm -f conftest.er1
9711 cat conftest.err >&5
9712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713 (exit $ac_status); } && {
9714 test -z "$ac_c_werror_flag" ||
9715 test ! -s conftest.err
9716 } && test -s conftest.$ac_objext; then
9717 ac_lo=$ac_mid; break
9718 else
9719 echo "$as_me: failed program was:" >&5
9720 sed 's/^/| /' conftest.$ac_ext >&5
9722 ac_hi=`expr '(' $ac_mid ')' - 1`
9723 if test $ac_mid -le $ac_hi; then
9724 ac_lo= ac_hi=
9725 break
9727 ac_mid=`expr 2 '*' $ac_mid`
9730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9731 done
9732 else
9733 echo "$as_me: failed program was:" >&5
9734 sed 's/^/| /' conftest.$ac_ext >&5
9736 ac_lo= ac_hi=
9739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9743 # Binary search between lo and hi bounds.
9744 while test "x$ac_lo" != "x$ac_hi"; do
9745 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9746 cat >conftest.$ac_ext <<_ACEOF
9747 /* confdefs.h. */
9748 _ACEOF
9749 cat confdefs.h >>conftest.$ac_ext
9750 cat >>conftest.$ac_ext <<_ACEOF
9751 /* end confdefs.h. */
9752 $ac_includes_default
9753 typedef double ac__type_sizeof_;
9755 main ()
9757 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9758 test_array [0] = 0
9761 return 0;
9763 _ACEOF
9764 rm -f conftest.$ac_objext
9765 if { (ac_try="$ac_compile"
9766 case "(($ac_try" in
9767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9768 *) ac_try_echo=$ac_try;;
9769 esac
9770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9771 (eval "$ac_compile") 2>conftest.er1
9772 ac_status=$?
9773 grep -v '^ *+' conftest.er1 >conftest.err
9774 rm -f conftest.er1
9775 cat conftest.err >&5
9776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9777 (exit $ac_status); } && {
9778 test -z "$ac_c_werror_flag" ||
9779 test ! -s conftest.err
9780 } && test -s conftest.$ac_objext; then
9781 ac_hi=$ac_mid
9782 else
9783 echo "$as_me: failed program was:" >&5
9784 sed 's/^/| /' conftest.$ac_ext >&5
9786 ac_lo=`expr '(' $ac_mid ')' + 1`
9789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9790 done
9791 case $ac_lo in
9792 ?*) ac_cv_sizeof_double=$ac_lo;;
9793 '') if test "$ac_cv_type_double" = yes; then
9794 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
9795 See \`config.log' for more details." >&5
9796 echo "$as_me: error: cannot compute sizeof (double)
9797 See \`config.log' for more details." >&2;}
9798 { (exit 77); exit 77; }; }
9799 else
9800 ac_cv_sizeof_double=0
9801 fi ;;
9802 esac
9803 else
9804 cat >conftest.$ac_ext <<_ACEOF
9805 /* confdefs.h. */
9806 _ACEOF
9807 cat confdefs.h >>conftest.$ac_ext
9808 cat >>conftest.$ac_ext <<_ACEOF
9809 /* end confdefs.h. */
9810 $ac_includes_default
9811 typedef double ac__type_sizeof_;
9812 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9813 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9814 #include <stdio.h>
9815 #include <stdlib.h>
9817 main ()
9820 FILE *f = fopen ("conftest.val", "w");
9821 if (! f)
9822 return 1;
9823 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9825 long int i = longval ();
9826 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9827 return 1;
9828 fprintf (f, "%ld\n", i);
9830 else
9832 unsigned long int i = ulongval ();
9833 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9834 return 1;
9835 fprintf (f, "%lu\n", i);
9837 return ferror (f) || fclose (f) != 0;
9840 return 0;
9842 _ACEOF
9843 rm -f conftest$ac_exeext
9844 if { (ac_try="$ac_link"
9845 case "(($ac_try" in
9846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9847 *) ac_try_echo=$ac_try;;
9848 esac
9849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9850 (eval "$ac_link") 2>&5
9851 ac_status=$?
9852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9853 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9854 { (case "(($ac_try" in
9855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9856 *) ac_try_echo=$ac_try;;
9857 esac
9858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9859 (eval "$ac_try") 2>&5
9860 ac_status=$?
9861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9862 (exit $ac_status); }; }; then
9863 ac_cv_sizeof_double=`cat conftest.val`
9864 else
9865 echo "$as_me: program exited with status $ac_status" >&5
9866 echo "$as_me: failed program was:" >&5
9867 sed 's/^/| /' conftest.$ac_ext >&5
9869 ( exit $ac_status )
9870 if test "$ac_cv_type_double" = yes; then
9871 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
9872 See \`config.log' for more details." >&5
9873 echo "$as_me: error: cannot compute sizeof (double)
9874 See \`config.log' for more details." >&2;}
9875 { (exit 77); exit 77; }; }
9876 else
9877 ac_cv_sizeof_double=0
9880 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9882 rm -f conftest.val
9884 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
9885 echo "${ECHO_T}$ac_cv_sizeof_double" >&6; }
9889 cat >>confdefs.h <<_ACEOF
9890 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
9891 _ACEOF
9894 { echo "$as_me:$LINENO: checking for fpos_t" >&5
9895 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6; }
9896 if test "${ac_cv_type_fpos_t+set}" = set; then
9897 echo $ECHO_N "(cached) $ECHO_C" >&6
9898 else
9899 cat >conftest.$ac_ext <<_ACEOF
9900 /* confdefs.h. */
9901 _ACEOF
9902 cat confdefs.h >>conftest.$ac_ext
9903 cat >>conftest.$ac_ext <<_ACEOF
9904 /* end confdefs.h. */
9905 $ac_includes_default
9906 typedef fpos_t ac__type_new_;
9908 main ()
9910 if ((ac__type_new_ *) 0)
9911 return 0;
9912 if (sizeof (ac__type_new_))
9913 return 0;
9915 return 0;
9917 _ACEOF
9918 rm -f conftest.$ac_objext
9919 if { (ac_try="$ac_compile"
9920 case "(($ac_try" in
9921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9922 *) ac_try_echo=$ac_try;;
9923 esac
9924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9925 (eval "$ac_compile") 2>conftest.er1
9926 ac_status=$?
9927 grep -v '^ *+' conftest.er1 >conftest.err
9928 rm -f conftest.er1
9929 cat conftest.err >&5
9930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9931 (exit $ac_status); } && {
9932 test -z "$ac_c_werror_flag" ||
9933 test ! -s conftest.err
9934 } && test -s conftest.$ac_objext; then
9935 ac_cv_type_fpos_t=yes
9936 else
9937 echo "$as_me: failed program was:" >&5
9938 sed 's/^/| /' conftest.$ac_ext >&5
9940 ac_cv_type_fpos_t=no
9943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9945 { echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
9946 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6; }
9948 # The cast to long int works around a bug in the HP C Compiler
9949 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9950 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9951 # This bug is HP SR number 8606223364.
9952 { echo "$as_me:$LINENO: checking size of fpos_t" >&5
9953 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6; }
9954 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
9955 echo $ECHO_N "(cached) $ECHO_C" >&6
9956 else
9957 if test "$cross_compiling" = yes; then
9958 # Depending upon the size, compute the lo and hi bounds.
9959 cat >conftest.$ac_ext <<_ACEOF
9960 /* confdefs.h. */
9961 _ACEOF
9962 cat confdefs.h >>conftest.$ac_ext
9963 cat >>conftest.$ac_ext <<_ACEOF
9964 /* end confdefs.h. */
9965 $ac_includes_default
9966 typedef fpos_t ac__type_sizeof_;
9968 main ()
9970 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9971 test_array [0] = 0
9974 return 0;
9976 _ACEOF
9977 rm -f conftest.$ac_objext
9978 if { (ac_try="$ac_compile"
9979 case "(($ac_try" in
9980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9981 *) ac_try_echo=$ac_try;;
9982 esac
9983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9984 (eval "$ac_compile") 2>conftest.er1
9985 ac_status=$?
9986 grep -v '^ *+' conftest.er1 >conftest.err
9987 rm -f conftest.er1
9988 cat conftest.err >&5
9989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9990 (exit $ac_status); } && {
9991 test -z "$ac_c_werror_flag" ||
9992 test ! -s conftest.err
9993 } && test -s conftest.$ac_objext; then
9994 ac_lo=0 ac_mid=0
9995 while :; do
9996 cat >conftest.$ac_ext <<_ACEOF
9997 /* confdefs.h. */
9998 _ACEOF
9999 cat confdefs.h >>conftest.$ac_ext
10000 cat >>conftest.$ac_ext <<_ACEOF
10001 /* end confdefs.h. */
10002 $ac_includes_default
10003 typedef fpos_t ac__type_sizeof_;
10005 main ()
10007 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10008 test_array [0] = 0
10011 return 0;
10013 _ACEOF
10014 rm -f conftest.$ac_objext
10015 if { (ac_try="$ac_compile"
10016 case "(($ac_try" in
10017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10018 *) ac_try_echo=$ac_try;;
10019 esac
10020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10021 (eval "$ac_compile") 2>conftest.er1
10022 ac_status=$?
10023 grep -v '^ *+' conftest.er1 >conftest.err
10024 rm -f conftest.er1
10025 cat conftest.err >&5
10026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10027 (exit $ac_status); } && {
10028 test -z "$ac_c_werror_flag" ||
10029 test ! -s conftest.err
10030 } && test -s conftest.$ac_objext; then
10031 ac_hi=$ac_mid; break
10032 else
10033 echo "$as_me: failed program was:" >&5
10034 sed 's/^/| /' conftest.$ac_ext >&5
10036 ac_lo=`expr $ac_mid + 1`
10037 if test $ac_lo -le $ac_mid; then
10038 ac_lo= ac_hi=
10039 break
10041 ac_mid=`expr 2 '*' $ac_mid + 1`
10044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10045 done
10046 else
10047 echo "$as_me: failed program was:" >&5
10048 sed 's/^/| /' conftest.$ac_ext >&5
10050 cat >conftest.$ac_ext <<_ACEOF
10051 /* confdefs.h. */
10052 _ACEOF
10053 cat confdefs.h >>conftest.$ac_ext
10054 cat >>conftest.$ac_ext <<_ACEOF
10055 /* end confdefs.h. */
10056 $ac_includes_default
10057 typedef fpos_t ac__type_sizeof_;
10059 main ()
10061 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10062 test_array [0] = 0
10065 return 0;
10067 _ACEOF
10068 rm -f conftest.$ac_objext
10069 if { (ac_try="$ac_compile"
10070 case "(($ac_try" in
10071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10072 *) ac_try_echo=$ac_try;;
10073 esac
10074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10075 (eval "$ac_compile") 2>conftest.er1
10076 ac_status=$?
10077 grep -v '^ *+' conftest.er1 >conftest.err
10078 rm -f conftest.er1
10079 cat conftest.err >&5
10080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10081 (exit $ac_status); } && {
10082 test -z "$ac_c_werror_flag" ||
10083 test ! -s conftest.err
10084 } && test -s conftest.$ac_objext; then
10085 ac_hi=-1 ac_mid=-1
10086 while :; do
10087 cat >conftest.$ac_ext <<_ACEOF
10088 /* confdefs.h. */
10089 _ACEOF
10090 cat confdefs.h >>conftest.$ac_ext
10091 cat >>conftest.$ac_ext <<_ACEOF
10092 /* end confdefs.h. */
10093 $ac_includes_default
10094 typedef fpos_t ac__type_sizeof_;
10096 main ()
10098 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10099 test_array [0] = 0
10102 return 0;
10104 _ACEOF
10105 rm -f conftest.$ac_objext
10106 if { (ac_try="$ac_compile"
10107 case "(($ac_try" in
10108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10109 *) ac_try_echo=$ac_try;;
10110 esac
10111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10112 (eval "$ac_compile") 2>conftest.er1
10113 ac_status=$?
10114 grep -v '^ *+' conftest.er1 >conftest.err
10115 rm -f conftest.er1
10116 cat conftest.err >&5
10117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10118 (exit $ac_status); } && {
10119 test -z "$ac_c_werror_flag" ||
10120 test ! -s conftest.err
10121 } && test -s conftest.$ac_objext; then
10122 ac_lo=$ac_mid; break
10123 else
10124 echo "$as_me: failed program was:" >&5
10125 sed 's/^/| /' conftest.$ac_ext >&5
10127 ac_hi=`expr '(' $ac_mid ')' - 1`
10128 if test $ac_mid -le $ac_hi; then
10129 ac_lo= ac_hi=
10130 break
10132 ac_mid=`expr 2 '*' $ac_mid`
10135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10136 done
10137 else
10138 echo "$as_me: failed program was:" >&5
10139 sed 's/^/| /' conftest.$ac_ext >&5
10141 ac_lo= ac_hi=
10144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10148 # Binary search between lo and hi bounds.
10149 while test "x$ac_lo" != "x$ac_hi"; do
10150 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10151 cat >conftest.$ac_ext <<_ACEOF
10152 /* confdefs.h. */
10153 _ACEOF
10154 cat confdefs.h >>conftest.$ac_ext
10155 cat >>conftest.$ac_ext <<_ACEOF
10156 /* end confdefs.h. */
10157 $ac_includes_default
10158 typedef fpos_t ac__type_sizeof_;
10160 main ()
10162 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10163 test_array [0] = 0
10166 return 0;
10168 _ACEOF
10169 rm -f conftest.$ac_objext
10170 if { (ac_try="$ac_compile"
10171 case "(($ac_try" in
10172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10173 *) ac_try_echo=$ac_try;;
10174 esac
10175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10176 (eval "$ac_compile") 2>conftest.er1
10177 ac_status=$?
10178 grep -v '^ *+' conftest.er1 >conftest.err
10179 rm -f conftest.er1
10180 cat conftest.err >&5
10181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10182 (exit $ac_status); } && {
10183 test -z "$ac_c_werror_flag" ||
10184 test ! -s conftest.err
10185 } && test -s conftest.$ac_objext; then
10186 ac_hi=$ac_mid
10187 else
10188 echo "$as_me: failed program was:" >&5
10189 sed 's/^/| /' conftest.$ac_ext >&5
10191 ac_lo=`expr '(' $ac_mid ')' + 1`
10194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10195 done
10196 case $ac_lo in
10197 ?*) ac_cv_sizeof_fpos_t=$ac_lo;;
10198 '') if test "$ac_cv_type_fpos_t" = yes; then
10199 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
10200 See \`config.log' for more details." >&5
10201 echo "$as_me: error: cannot compute sizeof (fpos_t)
10202 See \`config.log' for more details." >&2;}
10203 { (exit 77); exit 77; }; }
10204 else
10205 ac_cv_sizeof_fpos_t=0
10206 fi ;;
10207 esac
10208 else
10209 cat >conftest.$ac_ext <<_ACEOF
10210 /* confdefs.h. */
10211 _ACEOF
10212 cat confdefs.h >>conftest.$ac_ext
10213 cat >>conftest.$ac_ext <<_ACEOF
10214 /* end confdefs.h. */
10215 $ac_includes_default
10216 typedef fpos_t ac__type_sizeof_;
10217 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10218 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10219 #include <stdio.h>
10220 #include <stdlib.h>
10222 main ()
10225 FILE *f = fopen ("conftest.val", "w");
10226 if (! f)
10227 return 1;
10228 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10230 long int i = longval ();
10231 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10232 return 1;
10233 fprintf (f, "%ld\n", i);
10235 else
10237 unsigned long int i = ulongval ();
10238 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10239 return 1;
10240 fprintf (f, "%lu\n", i);
10242 return ferror (f) || fclose (f) != 0;
10245 return 0;
10247 _ACEOF
10248 rm -f conftest$ac_exeext
10249 if { (ac_try="$ac_link"
10250 case "(($ac_try" in
10251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10252 *) ac_try_echo=$ac_try;;
10253 esac
10254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10255 (eval "$ac_link") 2>&5
10256 ac_status=$?
10257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10258 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10259 { (case "(($ac_try" in
10260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10261 *) ac_try_echo=$ac_try;;
10262 esac
10263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10264 (eval "$ac_try") 2>&5
10265 ac_status=$?
10266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10267 (exit $ac_status); }; }; then
10268 ac_cv_sizeof_fpos_t=`cat conftest.val`
10269 else
10270 echo "$as_me: program exited with status $ac_status" >&5
10271 echo "$as_me: failed program was:" >&5
10272 sed 's/^/| /' conftest.$ac_ext >&5
10274 ( exit $ac_status )
10275 if test "$ac_cv_type_fpos_t" = yes; then
10276 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
10277 See \`config.log' for more details." >&5
10278 echo "$as_me: error: cannot compute sizeof (fpos_t)
10279 See \`config.log' for more details." >&2;}
10280 { (exit 77); exit 77; }; }
10281 else
10282 ac_cv_sizeof_fpos_t=0
10285 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10287 rm -f conftest.val
10289 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
10290 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6; }
10294 cat >>confdefs.h <<_ACEOF
10295 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
10296 _ACEOF
10299 { echo "$as_me:$LINENO: checking for size_t" >&5
10300 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
10301 if test "${ac_cv_type_size_t+set}" = set; then
10302 echo $ECHO_N "(cached) $ECHO_C" >&6
10303 else
10304 cat >conftest.$ac_ext <<_ACEOF
10305 /* confdefs.h. */
10306 _ACEOF
10307 cat confdefs.h >>conftest.$ac_ext
10308 cat >>conftest.$ac_ext <<_ACEOF
10309 /* end confdefs.h. */
10310 $ac_includes_default
10311 typedef size_t ac__type_new_;
10313 main ()
10315 if ((ac__type_new_ *) 0)
10316 return 0;
10317 if (sizeof (ac__type_new_))
10318 return 0;
10320 return 0;
10322 _ACEOF
10323 rm -f conftest.$ac_objext
10324 if { (ac_try="$ac_compile"
10325 case "(($ac_try" in
10326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10327 *) ac_try_echo=$ac_try;;
10328 esac
10329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10330 (eval "$ac_compile") 2>conftest.er1
10331 ac_status=$?
10332 grep -v '^ *+' conftest.er1 >conftest.err
10333 rm -f conftest.er1
10334 cat conftest.err >&5
10335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10336 (exit $ac_status); } && {
10337 test -z "$ac_c_werror_flag" ||
10338 test ! -s conftest.err
10339 } && test -s conftest.$ac_objext; then
10340 ac_cv_type_size_t=yes
10341 else
10342 echo "$as_me: failed program was:" >&5
10343 sed 's/^/| /' conftest.$ac_ext >&5
10345 ac_cv_type_size_t=no
10348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10350 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10351 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
10353 # The cast to long int works around a bug in the HP C Compiler
10354 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10355 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10356 # This bug is HP SR number 8606223364.
10357 { echo "$as_me:$LINENO: checking size of size_t" >&5
10358 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
10359 if test "${ac_cv_sizeof_size_t+set}" = set; then
10360 echo $ECHO_N "(cached) $ECHO_C" >&6
10361 else
10362 if test "$cross_compiling" = yes; then
10363 # Depending upon the size, compute the lo and hi bounds.
10364 cat >conftest.$ac_ext <<_ACEOF
10365 /* confdefs.h. */
10366 _ACEOF
10367 cat confdefs.h >>conftest.$ac_ext
10368 cat >>conftest.$ac_ext <<_ACEOF
10369 /* end confdefs.h. */
10370 $ac_includes_default
10371 typedef size_t ac__type_sizeof_;
10373 main ()
10375 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10376 test_array [0] = 0
10379 return 0;
10381 _ACEOF
10382 rm -f conftest.$ac_objext
10383 if { (ac_try="$ac_compile"
10384 case "(($ac_try" in
10385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10386 *) ac_try_echo=$ac_try;;
10387 esac
10388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10389 (eval "$ac_compile") 2>conftest.er1
10390 ac_status=$?
10391 grep -v '^ *+' conftest.er1 >conftest.err
10392 rm -f conftest.er1
10393 cat conftest.err >&5
10394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10395 (exit $ac_status); } && {
10396 test -z "$ac_c_werror_flag" ||
10397 test ! -s conftest.err
10398 } && test -s conftest.$ac_objext; then
10399 ac_lo=0 ac_mid=0
10400 while :; do
10401 cat >conftest.$ac_ext <<_ACEOF
10402 /* confdefs.h. */
10403 _ACEOF
10404 cat confdefs.h >>conftest.$ac_ext
10405 cat >>conftest.$ac_ext <<_ACEOF
10406 /* end confdefs.h. */
10407 $ac_includes_default
10408 typedef size_t ac__type_sizeof_;
10410 main ()
10412 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10413 test_array [0] = 0
10416 return 0;
10418 _ACEOF
10419 rm -f conftest.$ac_objext
10420 if { (ac_try="$ac_compile"
10421 case "(($ac_try" in
10422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10423 *) ac_try_echo=$ac_try;;
10424 esac
10425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10426 (eval "$ac_compile") 2>conftest.er1
10427 ac_status=$?
10428 grep -v '^ *+' conftest.er1 >conftest.err
10429 rm -f conftest.er1
10430 cat conftest.err >&5
10431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10432 (exit $ac_status); } && {
10433 test -z "$ac_c_werror_flag" ||
10434 test ! -s conftest.err
10435 } && test -s conftest.$ac_objext; then
10436 ac_hi=$ac_mid; break
10437 else
10438 echo "$as_me: failed program was:" >&5
10439 sed 's/^/| /' conftest.$ac_ext >&5
10441 ac_lo=`expr $ac_mid + 1`
10442 if test $ac_lo -le $ac_mid; then
10443 ac_lo= ac_hi=
10444 break
10446 ac_mid=`expr 2 '*' $ac_mid + 1`
10449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10450 done
10451 else
10452 echo "$as_me: failed program was:" >&5
10453 sed 's/^/| /' conftest.$ac_ext >&5
10455 cat >conftest.$ac_ext <<_ACEOF
10456 /* confdefs.h. */
10457 _ACEOF
10458 cat confdefs.h >>conftest.$ac_ext
10459 cat >>conftest.$ac_ext <<_ACEOF
10460 /* end confdefs.h. */
10461 $ac_includes_default
10462 typedef size_t ac__type_sizeof_;
10464 main ()
10466 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10467 test_array [0] = 0
10470 return 0;
10472 _ACEOF
10473 rm -f conftest.$ac_objext
10474 if { (ac_try="$ac_compile"
10475 case "(($ac_try" in
10476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10477 *) ac_try_echo=$ac_try;;
10478 esac
10479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10480 (eval "$ac_compile") 2>conftest.er1
10481 ac_status=$?
10482 grep -v '^ *+' conftest.er1 >conftest.err
10483 rm -f conftest.er1
10484 cat conftest.err >&5
10485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10486 (exit $ac_status); } && {
10487 test -z "$ac_c_werror_flag" ||
10488 test ! -s conftest.err
10489 } && test -s conftest.$ac_objext; then
10490 ac_hi=-1 ac_mid=-1
10491 while :; do
10492 cat >conftest.$ac_ext <<_ACEOF
10493 /* confdefs.h. */
10494 _ACEOF
10495 cat confdefs.h >>conftest.$ac_ext
10496 cat >>conftest.$ac_ext <<_ACEOF
10497 /* end confdefs.h. */
10498 $ac_includes_default
10499 typedef size_t ac__type_sizeof_;
10501 main ()
10503 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10504 test_array [0] = 0
10507 return 0;
10509 _ACEOF
10510 rm -f conftest.$ac_objext
10511 if { (ac_try="$ac_compile"
10512 case "(($ac_try" in
10513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10514 *) ac_try_echo=$ac_try;;
10515 esac
10516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10517 (eval "$ac_compile") 2>conftest.er1
10518 ac_status=$?
10519 grep -v '^ *+' conftest.er1 >conftest.err
10520 rm -f conftest.er1
10521 cat conftest.err >&5
10522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10523 (exit $ac_status); } && {
10524 test -z "$ac_c_werror_flag" ||
10525 test ! -s conftest.err
10526 } && test -s conftest.$ac_objext; then
10527 ac_lo=$ac_mid; break
10528 else
10529 echo "$as_me: failed program was:" >&5
10530 sed 's/^/| /' conftest.$ac_ext >&5
10532 ac_hi=`expr '(' $ac_mid ')' - 1`
10533 if test $ac_mid -le $ac_hi; then
10534 ac_lo= ac_hi=
10535 break
10537 ac_mid=`expr 2 '*' $ac_mid`
10540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10541 done
10542 else
10543 echo "$as_me: failed program was:" >&5
10544 sed 's/^/| /' conftest.$ac_ext >&5
10546 ac_lo= ac_hi=
10549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10553 # Binary search between lo and hi bounds.
10554 while test "x$ac_lo" != "x$ac_hi"; do
10555 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10556 cat >conftest.$ac_ext <<_ACEOF
10557 /* confdefs.h. */
10558 _ACEOF
10559 cat confdefs.h >>conftest.$ac_ext
10560 cat >>conftest.$ac_ext <<_ACEOF
10561 /* end confdefs.h. */
10562 $ac_includes_default
10563 typedef size_t ac__type_sizeof_;
10565 main ()
10567 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10568 test_array [0] = 0
10571 return 0;
10573 _ACEOF
10574 rm -f conftest.$ac_objext
10575 if { (ac_try="$ac_compile"
10576 case "(($ac_try" in
10577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10578 *) ac_try_echo=$ac_try;;
10579 esac
10580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10581 (eval "$ac_compile") 2>conftest.er1
10582 ac_status=$?
10583 grep -v '^ *+' conftest.er1 >conftest.err
10584 rm -f conftest.er1
10585 cat conftest.err >&5
10586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587 (exit $ac_status); } && {
10588 test -z "$ac_c_werror_flag" ||
10589 test ! -s conftest.err
10590 } && test -s conftest.$ac_objext; then
10591 ac_hi=$ac_mid
10592 else
10593 echo "$as_me: failed program was:" >&5
10594 sed 's/^/| /' conftest.$ac_ext >&5
10596 ac_lo=`expr '(' $ac_mid ')' + 1`
10599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10600 done
10601 case $ac_lo in
10602 ?*) ac_cv_sizeof_size_t=$ac_lo;;
10603 '') if test "$ac_cv_type_size_t" = yes; then
10604 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10605 See \`config.log' for more details." >&5
10606 echo "$as_me: error: cannot compute sizeof (size_t)
10607 See \`config.log' for more details." >&2;}
10608 { (exit 77); exit 77; }; }
10609 else
10610 ac_cv_sizeof_size_t=0
10611 fi ;;
10612 esac
10613 else
10614 cat >conftest.$ac_ext <<_ACEOF
10615 /* confdefs.h. */
10616 _ACEOF
10617 cat confdefs.h >>conftest.$ac_ext
10618 cat >>conftest.$ac_ext <<_ACEOF
10619 /* end confdefs.h. */
10620 $ac_includes_default
10621 typedef size_t ac__type_sizeof_;
10622 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10623 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10624 #include <stdio.h>
10625 #include <stdlib.h>
10627 main ()
10630 FILE *f = fopen ("conftest.val", "w");
10631 if (! f)
10632 return 1;
10633 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10635 long int i = longval ();
10636 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10637 return 1;
10638 fprintf (f, "%ld\n", i);
10640 else
10642 unsigned long int i = ulongval ();
10643 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10644 return 1;
10645 fprintf (f, "%lu\n", i);
10647 return ferror (f) || fclose (f) != 0;
10650 return 0;
10652 _ACEOF
10653 rm -f conftest$ac_exeext
10654 if { (ac_try="$ac_link"
10655 case "(($ac_try" in
10656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10657 *) ac_try_echo=$ac_try;;
10658 esac
10659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10660 (eval "$ac_link") 2>&5
10661 ac_status=$?
10662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10664 { (case "(($ac_try" in
10665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10666 *) ac_try_echo=$ac_try;;
10667 esac
10668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10669 (eval "$ac_try") 2>&5
10670 ac_status=$?
10671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672 (exit $ac_status); }; }; then
10673 ac_cv_sizeof_size_t=`cat conftest.val`
10674 else
10675 echo "$as_me: program exited with status $ac_status" >&5
10676 echo "$as_me: failed program was:" >&5
10677 sed 's/^/| /' conftest.$ac_ext >&5
10679 ( exit $ac_status )
10680 if test "$ac_cv_type_size_t" = yes; then
10681 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10682 See \`config.log' for more details." >&5
10683 echo "$as_me: error: cannot compute sizeof (size_t)
10684 See \`config.log' for more details." >&2;}
10685 { (exit 77); exit 77; }; }
10686 else
10687 ac_cv_sizeof_size_t=0
10690 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10692 rm -f conftest.val
10694 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
10695 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
10699 cat >>confdefs.h <<_ACEOF
10700 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
10701 _ACEOF
10704 { echo "$as_me:$LINENO: checking for pid_t" >&5
10705 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
10706 if test "${ac_cv_type_pid_t+set}" = set; then
10707 echo $ECHO_N "(cached) $ECHO_C" >&6
10708 else
10709 cat >conftest.$ac_ext <<_ACEOF
10710 /* confdefs.h. */
10711 _ACEOF
10712 cat confdefs.h >>conftest.$ac_ext
10713 cat >>conftest.$ac_ext <<_ACEOF
10714 /* end confdefs.h. */
10715 $ac_includes_default
10716 typedef pid_t ac__type_new_;
10718 main ()
10720 if ((ac__type_new_ *) 0)
10721 return 0;
10722 if (sizeof (ac__type_new_))
10723 return 0;
10725 return 0;
10727 _ACEOF
10728 rm -f conftest.$ac_objext
10729 if { (ac_try="$ac_compile"
10730 case "(($ac_try" in
10731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10732 *) ac_try_echo=$ac_try;;
10733 esac
10734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10735 (eval "$ac_compile") 2>conftest.er1
10736 ac_status=$?
10737 grep -v '^ *+' conftest.er1 >conftest.err
10738 rm -f conftest.er1
10739 cat conftest.err >&5
10740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10741 (exit $ac_status); } && {
10742 test -z "$ac_c_werror_flag" ||
10743 test ! -s conftest.err
10744 } && test -s conftest.$ac_objext; then
10745 ac_cv_type_pid_t=yes
10746 else
10747 echo "$as_me: failed program was:" >&5
10748 sed 's/^/| /' conftest.$ac_ext >&5
10750 ac_cv_type_pid_t=no
10753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10755 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10756 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
10758 # The cast to long int works around a bug in the HP C Compiler
10759 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10760 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10761 # This bug is HP SR number 8606223364.
10762 { echo "$as_me:$LINENO: checking size of pid_t" >&5
10763 echo $ECHO_N "checking size of pid_t... $ECHO_C" >&6; }
10764 if test "${ac_cv_sizeof_pid_t+set}" = set; then
10765 echo $ECHO_N "(cached) $ECHO_C" >&6
10766 else
10767 if test "$cross_compiling" = yes; then
10768 # Depending upon the size, compute the lo and hi bounds.
10769 cat >conftest.$ac_ext <<_ACEOF
10770 /* confdefs.h. */
10771 _ACEOF
10772 cat confdefs.h >>conftest.$ac_ext
10773 cat >>conftest.$ac_ext <<_ACEOF
10774 /* end confdefs.h. */
10775 $ac_includes_default
10776 typedef pid_t ac__type_sizeof_;
10778 main ()
10780 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10781 test_array [0] = 0
10784 return 0;
10786 _ACEOF
10787 rm -f conftest.$ac_objext
10788 if { (ac_try="$ac_compile"
10789 case "(($ac_try" in
10790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10791 *) ac_try_echo=$ac_try;;
10792 esac
10793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10794 (eval "$ac_compile") 2>conftest.er1
10795 ac_status=$?
10796 grep -v '^ *+' conftest.er1 >conftest.err
10797 rm -f conftest.er1
10798 cat conftest.err >&5
10799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10800 (exit $ac_status); } && {
10801 test -z "$ac_c_werror_flag" ||
10802 test ! -s conftest.err
10803 } && test -s conftest.$ac_objext; then
10804 ac_lo=0 ac_mid=0
10805 while :; do
10806 cat >conftest.$ac_ext <<_ACEOF
10807 /* confdefs.h. */
10808 _ACEOF
10809 cat confdefs.h >>conftest.$ac_ext
10810 cat >>conftest.$ac_ext <<_ACEOF
10811 /* end confdefs.h. */
10812 $ac_includes_default
10813 typedef pid_t ac__type_sizeof_;
10815 main ()
10817 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10818 test_array [0] = 0
10821 return 0;
10823 _ACEOF
10824 rm -f conftest.$ac_objext
10825 if { (ac_try="$ac_compile"
10826 case "(($ac_try" in
10827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10828 *) ac_try_echo=$ac_try;;
10829 esac
10830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10831 (eval "$ac_compile") 2>conftest.er1
10832 ac_status=$?
10833 grep -v '^ *+' conftest.er1 >conftest.err
10834 rm -f conftest.er1
10835 cat conftest.err >&5
10836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10837 (exit $ac_status); } && {
10838 test -z "$ac_c_werror_flag" ||
10839 test ! -s conftest.err
10840 } && test -s conftest.$ac_objext; then
10841 ac_hi=$ac_mid; break
10842 else
10843 echo "$as_me: failed program was:" >&5
10844 sed 's/^/| /' conftest.$ac_ext >&5
10846 ac_lo=`expr $ac_mid + 1`
10847 if test $ac_lo -le $ac_mid; then
10848 ac_lo= ac_hi=
10849 break
10851 ac_mid=`expr 2 '*' $ac_mid + 1`
10854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10855 done
10856 else
10857 echo "$as_me: failed program was:" >&5
10858 sed 's/^/| /' conftest.$ac_ext >&5
10860 cat >conftest.$ac_ext <<_ACEOF
10861 /* confdefs.h. */
10862 _ACEOF
10863 cat confdefs.h >>conftest.$ac_ext
10864 cat >>conftest.$ac_ext <<_ACEOF
10865 /* end confdefs.h. */
10866 $ac_includes_default
10867 typedef pid_t ac__type_sizeof_;
10869 main ()
10871 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10872 test_array [0] = 0
10875 return 0;
10877 _ACEOF
10878 rm -f conftest.$ac_objext
10879 if { (ac_try="$ac_compile"
10880 case "(($ac_try" in
10881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10882 *) ac_try_echo=$ac_try;;
10883 esac
10884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10885 (eval "$ac_compile") 2>conftest.er1
10886 ac_status=$?
10887 grep -v '^ *+' conftest.er1 >conftest.err
10888 rm -f conftest.er1
10889 cat conftest.err >&5
10890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891 (exit $ac_status); } && {
10892 test -z "$ac_c_werror_flag" ||
10893 test ! -s conftest.err
10894 } && test -s conftest.$ac_objext; then
10895 ac_hi=-1 ac_mid=-1
10896 while :; do
10897 cat >conftest.$ac_ext <<_ACEOF
10898 /* confdefs.h. */
10899 _ACEOF
10900 cat confdefs.h >>conftest.$ac_ext
10901 cat >>conftest.$ac_ext <<_ACEOF
10902 /* end confdefs.h. */
10903 $ac_includes_default
10904 typedef pid_t ac__type_sizeof_;
10906 main ()
10908 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10909 test_array [0] = 0
10912 return 0;
10914 _ACEOF
10915 rm -f conftest.$ac_objext
10916 if { (ac_try="$ac_compile"
10917 case "(($ac_try" in
10918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10919 *) ac_try_echo=$ac_try;;
10920 esac
10921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10922 (eval "$ac_compile") 2>conftest.er1
10923 ac_status=$?
10924 grep -v '^ *+' conftest.er1 >conftest.err
10925 rm -f conftest.er1
10926 cat conftest.err >&5
10927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10928 (exit $ac_status); } && {
10929 test -z "$ac_c_werror_flag" ||
10930 test ! -s conftest.err
10931 } && test -s conftest.$ac_objext; then
10932 ac_lo=$ac_mid; break
10933 else
10934 echo "$as_me: failed program was:" >&5
10935 sed 's/^/| /' conftest.$ac_ext >&5
10937 ac_hi=`expr '(' $ac_mid ')' - 1`
10938 if test $ac_mid -le $ac_hi; then
10939 ac_lo= ac_hi=
10940 break
10942 ac_mid=`expr 2 '*' $ac_mid`
10945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10946 done
10947 else
10948 echo "$as_me: failed program was:" >&5
10949 sed 's/^/| /' conftest.$ac_ext >&5
10951 ac_lo= ac_hi=
10954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10958 # Binary search between lo and hi bounds.
10959 while test "x$ac_lo" != "x$ac_hi"; do
10960 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10961 cat >conftest.$ac_ext <<_ACEOF
10962 /* confdefs.h. */
10963 _ACEOF
10964 cat confdefs.h >>conftest.$ac_ext
10965 cat >>conftest.$ac_ext <<_ACEOF
10966 /* end confdefs.h. */
10967 $ac_includes_default
10968 typedef pid_t ac__type_sizeof_;
10970 main ()
10972 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10973 test_array [0] = 0
10976 return 0;
10978 _ACEOF
10979 rm -f conftest.$ac_objext
10980 if { (ac_try="$ac_compile"
10981 case "(($ac_try" in
10982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10983 *) ac_try_echo=$ac_try;;
10984 esac
10985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10986 (eval "$ac_compile") 2>conftest.er1
10987 ac_status=$?
10988 grep -v '^ *+' conftest.er1 >conftest.err
10989 rm -f conftest.er1
10990 cat conftest.err >&5
10991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10992 (exit $ac_status); } && {
10993 test -z "$ac_c_werror_flag" ||
10994 test ! -s conftest.err
10995 } && test -s conftest.$ac_objext; then
10996 ac_hi=$ac_mid
10997 else
10998 echo "$as_me: failed program was:" >&5
10999 sed 's/^/| /' conftest.$ac_ext >&5
11001 ac_lo=`expr '(' $ac_mid ')' + 1`
11004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11005 done
11006 case $ac_lo in
11007 ?*) ac_cv_sizeof_pid_t=$ac_lo;;
11008 '') if test "$ac_cv_type_pid_t" = yes; then
11009 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
11010 See \`config.log' for more details." >&5
11011 echo "$as_me: error: cannot compute sizeof (pid_t)
11012 See \`config.log' for more details." >&2;}
11013 { (exit 77); exit 77; }; }
11014 else
11015 ac_cv_sizeof_pid_t=0
11016 fi ;;
11017 esac
11018 else
11019 cat >conftest.$ac_ext <<_ACEOF
11020 /* confdefs.h. */
11021 _ACEOF
11022 cat confdefs.h >>conftest.$ac_ext
11023 cat >>conftest.$ac_ext <<_ACEOF
11024 /* end confdefs.h. */
11025 $ac_includes_default
11026 typedef pid_t ac__type_sizeof_;
11027 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11028 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11029 #include <stdio.h>
11030 #include <stdlib.h>
11032 main ()
11035 FILE *f = fopen ("conftest.val", "w");
11036 if (! f)
11037 return 1;
11038 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11040 long int i = longval ();
11041 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11042 return 1;
11043 fprintf (f, "%ld\n", i);
11045 else
11047 unsigned long int i = ulongval ();
11048 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11049 return 1;
11050 fprintf (f, "%lu\n", i);
11052 return ferror (f) || fclose (f) != 0;
11055 return 0;
11057 _ACEOF
11058 rm -f conftest$ac_exeext
11059 if { (ac_try="$ac_link"
11060 case "(($ac_try" in
11061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11062 *) ac_try_echo=$ac_try;;
11063 esac
11064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11065 (eval "$ac_link") 2>&5
11066 ac_status=$?
11067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11068 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11069 { (case "(($ac_try" in
11070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11071 *) ac_try_echo=$ac_try;;
11072 esac
11073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11074 (eval "$ac_try") 2>&5
11075 ac_status=$?
11076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11077 (exit $ac_status); }; }; then
11078 ac_cv_sizeof_pid_t=`cat conftest.val`
11079 else
11080 echo "$as_me: program exited with status $ac_status" >&5
11081 echo "$as_me: failed program was:" >&5
11082 sed 's/^/| /' conftest.$ac_ext >&5
11084 ( exit $ac_status )
11085 if test "$ac_cv_type_pid_t" = yes; then
11086 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
11087 See \`config.log' for more details." >&5
11088 echo "$as_me: error: cannot compute sizeof (pid_t)
11089 See \`config.log' for more details." >&2;}
11090 { (exit 77); exit 77; }; }
11091 else
11092 ac_cv_sizeof_pid_t=0
11095 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11097 rm -f conftest.val
11099 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pid_t" >&5
11100 echo "${ECHO_T}$ac_cv_sizeof_pid_t" >&6; }
11104 cat >>confdefs.h <<_ACEOF
11105 #define SIZEOF_PID_T $ac_cv_sizeof_pid_t
11106 _ACEOF
11110 { echo "$as_me:$LINENO: checking for long long support" >&5
11111 echo $ECHO_N "checking for long long support... $ECHO_C" >&6; }
11112 have_long_long=no
11113 cat >conftest.$ac_ext <<_ACEOF
11114 /* confdefs.h. */
11115 _ACEOF
11116 cat confdefs.h >>conftest.$ac_ext
11117 cat >>conftest.$ac_ext <<_ACEOF
11118 /* end confdefs.h. */
11121 main ()
11123 long long x; x = (long long)0;
11125 return 0;
11127 _ACEOF
11128 rm -f conftest.$ac_objext
11129 if { (ac_try="$ac_compile"
11130 case "(($ac_try" in
11131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11132 *) ac_try_echo=$ac_try;;
11133 esac
11134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11135 (eval "$ac_compile") 2>conftest.er1
11136 ac_status=$?
11137 grep -v '^ *+' conftest.er1 >conftest.err
11138 rm -f conftest.er1
11139 cat conftest.err >&5
11140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11141 (exit $ac_status); } && {
11142 test -z "$ac_c_werror_flag" ||
11143 test ! -s conftest.err
11144 } && test -s conftest.$ac_objext; then
11147 cat >>confdefs.h <<\_ACEOF
11148 #define HAVE_LONG_LONG 1
11149 _ACEOF
11151 have_long_long=yes
11153 else
11154 echo "$as_me: failed program was:" >&5
11155 sed 's/^/| /' conftest.$ac_ext >&5
11160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11161 { echo "$as_me:$LINENO: result: $have_long_long" >&5
11162 echo "${ECHO_T}$have_long_long" >&6; }
11163 if test "$have_long_long" = yes ; then
11164 { echo "$as_me:$LINENO: checking for long long" >&5
11165 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
11166 if test "${ac_cv_type_long_long+set}" = set; then
11167 echo $ECHO_N "(cached) $ECHO_C" >&6
11168 else
11169 cat >conftest.$ac_ext <<_ACEOF
11170 /* confdefs.h. */
11171 _ACEOF
11172 cat confdefs.h >>conftest.$ac_ext
11173 cat >>conftest.$ac_ext <<_ACEOF
11174 /* end confdefs.h. */
11175 $ac_includes_default
11176 typedef long long ac__type_new_;
11178 main ()
11180 if ((ac__type_new_ *) 0)
11181 return 0;
11182 if (sizeof (ac__type_new_))
11183 return 0;
11185 return 0;
11187 _ACEOF
11188 rm -f conftest.$ac_objext
11189 if { (ac_try="$ac_compile"
11190 case "(($ac_try" in
11191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11192 *) ac_try_echo=$ac_try;;
11193 esac
11194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11195 (eval "$ac_compile") 2>conftest.er1
11196 ac_status=$?
11197 grep -v '^ *+' conftest.er1 >conftest.err
11198 rm -f conftest.er1
11199 cat conftest.err >&5
11200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11201 (exit $ac_status); } && {
11202 test -z "$ac_c_werror_flag" ||
11203 test ! -s conftest.err
11204 } && test -s conftest.$ac_objext; then
11205 ac_cv_type_long_long=yes
11206 else
11207 echo "$as_me: failed program was:" >&5
11208 sed 's/^/| /' conftest.$ac_ext >&5
11210 ac_cv_type_long_long=no
11213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11215 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
11216 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
11218 # The cast to long int works around a bug in the HP C Compiler
11219 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11220 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11221 # This bug is HP SR number 8606223364.
11222 { echo "$as_me:$LINENO: checking size of long long" >&5
11223 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
11224 if test "${ac_cv_sizeof_long_long+set}" = set; then
11225 echo $ECHO_N "(cached) $ECHO_C" >&6
11226 else
11227 if test "$cross_compiling" = yes; then
11228 # Depending upon the size, compute the lo and hi bounds.
11229 cat >conftest.$ac_ext <<_ACEOF
11230 /* confdefs.h. */
11231 _ACEOF
11232 cat confdefs.h >>conftest.$ac_ext
11233 cat >>conftest.$ac_ext <<_ACEOF
11234 /* end confdefs.h. */
11235 $ac_includes_default
11236 typedef long long ac__type_sizeof_;
11238 main ()
11240 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11241 test_array [0] = 0
11244 return 0;
11246 _ACEOF
11247 rm -f conftest.$ac_objext
11248 if { (ac_try="$ac_compile"
11249 case "(($ac_try" in
11250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11251 *) ac_try_echo=$ac_try;;
11252 esac
11253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11254 (eval "$ac_compile") 2>conftest.er1
11255 ac_status=$?
11256 grep -v '^ *+' conftest.er1 >conftest.err
11257 rm -f conftest.er1
11258 cat conftest.err >&5
11259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11260 (exit $ac_status); } && {
11261 test -z "$ac_c_werror_flag" ||
11262 test ! -s conftest.err
11263 } && test -s conftest.$ac_objext; then
11264 ac_lo=0 ac_mid=0
11265 while :; do
11266 cat >conftest.$ac_ext <<_ACEOF
11267 /* confdefs.h. */
11268 _ACEOF
11269 cat confdefs.h >>conftest.$ac_ext
11270 cat >>conftest.$ac_ext <<_ACEOF
11271 /* end confdefs.h. */
11272 $ac_includes_default
11273 typedef long long ac__type_sizeof_;
11275 main ()
11277 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11278 test_array [0] = 0
11281 return 0;
11283 _ACEOF
11284 rm -f conftest.$ac_objext
11285 if { (ac_try="$ac_compile"
11286 case "(($ac_try" in
11287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11288 *) ac_try_echo=$ac_try;;
11289 esac
11290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11291 (eval "$ac_compile") 2>conftest.er1
11292 ac_status=$?
11293 grep -v '^ *+' conftest.er1 >conftest.err
11294 rm -f conftest.er1
11295 cat conftest.err >&5
11296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11297 (exit $ac_status); } && {
11298 test -z "$ac_c_werror_flag" ||
11299 test ! -s conftest.err
11300 } && test -s conftest.$ac_objext; then
11301 ac_hi=$ac_mid; break
11302 else
11303 echo "$as_me: failed program was:" >&5
11304 sed 's/^/| /' conftest.$ac_ext >&5
11306 ac_lo=`expr $ac_mid + 1`
11307 if test $ac_lo -le $ac_mid; then
11308 ac_lo= ac_hi=
11309 break
11311 ac_mid=`expr 2 '*' $ac_mid + 1`
11314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11315 done
11316 else
11317 echo "$as_me: failed program was:" >&5
11318 sed 's/^/| /' conftest.$ac_ext >&5
11320 cat >conftest.$ac_ext <<_ACEOF
11321 /* confdefs.h. */
11322 _ACEOF
11323 cat confdefs.h >>conftest.$ac_ext
11324 cat >>conftest.$ac_ext <<_ACEOF
11325 /* end confdefs.h. */
11326 $ac_includes_default
11327 typedef long long ac__type_sizeof_;
11329 main ()
11331 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11332 test_array [0] = 0
11335 return 0;
11337 _ACEOF
11338 rm -f conftest.$ac_objext
11339 if { (ac_try="$ac_compile"
11340 case "(($ac_try" in
11341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11342 *) ac_try_echo=$ac_try;;
11343 esac
11344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11345 (eval "$ac_compile") 2>conftest.er1
11346 ac_status=$?
11347 grep -v '^ *+' conftest.er1 >conftest.err
11348 rm -f conftest.er1
11349 cat conftest.err >&5
11350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11351 (exit $ac_status); } && {
11352 test -z "$ac_c_werror_flag" ||
11353 test ! -s conftest.err
11354 } && test -s conftest.$ac_objext; then
11355 ac_hi=-1 ac_mid=-1
11356 while :; do
11357 cat >conftest.$ac_ext <<_ACEOF
11358 /* confdefs.h. */
11359 _ACEOF
11360 cat confdefs.h >>conftest.$ac_ext
11361 cat >>conftest.$ac_ext <<_ACEOF
11362 /* end confdefs.h. */
11363 $ac_includes_default
11364 typedef long long ac__type_sizeof_;
11366 main ()
11368 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11369 test_array [0] = 0
11372 return 0;
11374 _ACEOF
11375 rm -f conftest.$ac_objext
11376 if { (ac_try="$ac_compile"
11377 case "(($ac_try" in
11378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11379 *) ac_try_echo=$ac_try;;
11380 esac
11381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11382 (eval "$ac_compile") 2>conftest.er1
11383 ac_status=$?
11384 grep -v '^ *+' conftest.er1 >conftest.err
11385 rm -f conftest.er1
11386 cat conftest.err >&5
11387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388 (exit $ac_status); } && {
11389 test -z "$ac_c_werror_flag" ||
11390 test ! -s conftest.err
11391 } && test -s conftest.$ac_objext; then
11392 ac_lo=$ac_mid; break
11393 else
11394 echo "$as_me: failed program was:" >&5
11395 sed 's/^/| /' conftest.$ac_ext >&5
11397 ac_hi=`expr '(' $ac_mid ')' - 1`
11398 if test $ac_mid -le $ac_hi; then
11399 ac_lo= ac_hi=
11400 break
11402 ac_mid=`expr 2 '*' $ac_mid`
11405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11406 done
11407 else
11408 echo "$as_me: failed program was:" >&5
11409 sed 's/^/| /' conftest.$ac_ext >&5
11411 ac_lo= ac_hi=
11414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11418 # Binary search between lo and hi bounds.
11419 while test "x$ac_lo" != "x$ac_hi"; do
11420 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11421 cat >conftest.$ac_ext <<_ACEOF
11422 /* confdefs.h. */
11423 _ACEOF
11424 cat confdefs.h >>conftest.$ac_ext
11425 cat >>conftest.$ac_ext <<_ACEOF
11426 /* end confdefs.h. */
11427 $ac_includes_default
11428 typedef long long ac__type_sizeof_;
11430 main ()
11432 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11433 test_array [0] = 0
11436 return 0;
11438 _ACEOF
11439 rm -f conftest.$ac_objext
11440 if { (ac_try="$ac_compile"
11441 case "(($ac_try" in
11442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11443 *) ac_try_echo=$ac_try;;
11444 esac
11445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11446 (eval "$ac_compile") 2>conftest.er1
11447 ac_status=$?
11448 grep -v '^ *+' conftest.er1 >conftest.err
11449 rm -f conftest.er1
11450 cat conftest.err >&5
11451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11452 (exit $ac_status); } && {
11453 test -z "$ac_c_werror_flag" ||
11454 test ! -s conftest.err
11455 } && test -s conftest.$ac_objext; then
11456 ac_hi=$ac_mid
11457 else
11458 echo "$as_me: failed program was:" >&5
11459 sed 's/^/| /' conftest.$ac_ext >&5
11461 ac_lo=`expr '(' $ac_mid ')' + 1`
11464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11465 done
11466 case $ac_lo in
11467 ?*) ac_cv_sizeof_long_long=$ac_lo;;
11468 '') if test "$ac_cv_type_long_long" = yes; then
11469 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
11470 See \`config.log' for more details." >&5
11471 echo "$as_me: error: cannot compute sizeof (long long)
11472 See \`config.log' for more details." >&2;}
11473 { (exit 77); exit 77; }; }
11474 else
11475 ac_cv_sizeof_long_long=0
11476 fi ;;
11477 esac
11478 else
11479 cat >conftest.$ac_ext <<_ACEOF
11480 /* confdefs.h. */
11481 _ACEOF
11482 cat confdefs.h >>conftest.$ac_ext
11483 cat >>conftest.$ac_ext <<_ACEOF
11484 /* end confdefs.h. */
11485 $ac_includes_default
11486 typedef long long ac__type_sizeof_;
11487 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11488 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11489 #include <stdio.h>
11490 #include <stdlib.h>
11492 main ()
11495 FILE *f = fopen ("conftest.val", "w");
11496 if (! f)
11497 return 1;
11498 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11500 long int i = longval ();
11501 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11502 return 1;
11503 fprintf (f, "%ld\n", i);
11505 else
11507 unsigned long int i = ulongval ();
11508 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11509 return 1;
11510 fprintf (f, "%lu\n", i);
11512 return ferror (f) || fclose (f) != 0;
11515 return 0;
11517 _ACEOF
11518 rm -f conftest$ac_exeext
11519 if { (ac_try="$ac_link"
11520 case "(($ac_try" in
11521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11522 *) ac_try_echo=$ac_try;;
11523 esac
11524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11525 (eval "$ac_link") 2>&5
11526 ac_status=$?
11527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11528 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11529 { (case "(($ac_try" in
11530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11531 *) ac_try_echo=$ac_try;;
11532 esac
11533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11534 (eval "$ac_try") 2>&5
11535 ac_status=$?
11536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11537 (exit $ac_status); }; }; then
11538 ac_cv_sizeof_long_long=`cat conftest.val`
11539 else
11540 echo "$as_me: program exited with status $ac_status" >&5
11541 echo "$as_me: failed program was:" >&5
11542 sed 's/^/| /' conftest.$ac_ext >&5
11544 ( exit $ac_status )
11545 if test "$ac_cv_type_long_long" = yes; then
11546 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
11547 See \`config.log' for more details." >&5
11548 echo "$as_me: error: cannot compute sizeof (long long)
11549 See \`config.log' for more details." >&2;}
11550 { (exit 77); exit 77; }; }
11551 else
11552 ac_cv_sizeof_long_long=0
11555 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11557 rm -f conftest.val
11559 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
11560 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
11564 cat >>confdefs.h <<_ACEOF
11565 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11566 _ACEOF
11571 { echo "$as_me:$LINENO: checking for long double support" >&5
11572 echo $ECHO_N "checking for long double support... $ECHO_C" >&6; }
11573 have_long_double=no
11574 cat >conftest.$ac_ext <<_ACEOF
11575 /* confdefs.h. */
11576 _ACEOF
11577 cat confdefs.h >>conftest.$ac_ext
11578 cat >>conftest.$ac_ext <<_ACEOF
11579 /* end confdefs.h. */
11582 main ()
11584 long double x; x = (long double)0;
11586 return 0;
11588 _ACEOF
11589 rm -f conftest.$ac_objext
11590 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
11597 ac_status=$?
11598 grep -v '^ *+' conftest.er1 >conftest.err
11599 rm -f conftest.er1
11600 cat conftest.err >&5
11601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11602 (exit $ac_status); } && {
11603 test -z "$ac_c_werror_flag" ||
11604 test ! -s conftest.err
11605 } && test -s conftest.$ac_objext; then
11608 cat >>confdefs.h <<\_ACEOF
11609 #define HAVE_LONG_DOUBLE 1
11610 _ACEOF
11612 have_long_double=yes
11614 else
11615 echo "$as_me: failed program was:" >&5
11616 sed 's/^/| /' conftest.$ac_ext >&5
11621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11622 { echo "$as_me:$LINENO: result: $have_long_double" >&5
11623 echo "${ECHO_T}$have_long_double" >&6; }
11624 if test "$have_long_double" = yes ; then
11625 { echo "$as_me:$LINENO: checking for long double" >&5
11626 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
11627 if test "${ac_cv_type_long_double+set}" = set; then
11628 echo $ECHO_N "(cached) $ECHO_C" >&6
11629 else
11630 cat >conftest.$ac_ext <<_ACEOF
11631 /* confdefs.h. */
11632 _ACEOF
11633 cat confdefs.h >>conftest.$ac_ext
11634 cat >>conftest.$ac_ext <<_ACEOF
11635 /* end confdefs.h. */
11636 $ac_includes_default
11637 typedef long double ac__type_new_;
11639 main ()
11641 if ((ac__type_new_ *) 0)
11642 return 0;
11643 if (sizeof (ac__type_new_))
11644 return 0;
11646 return 0;
11648 _ACEOF
11649 rm -f conftest.$ac_objext
11650 if { (ac_try="$ac_compile"
11651 case "(($ac_try" in
11652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11653 *) ac_try_echo=$ac_try;;
11654 esac
11655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11656 (eval "$ac_compile") 2>conftest.er1
11657 ac_status=$?
11658 grep -v '^ *+' conftest.er1 >conftest.err
11659 rm -f conftest.er1
11660 cat conftest.err >&5
11661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11662 (exit $ac_status); } && {
11663 test -z "$ac_c_werror_flag" ||
11664 test ! -s conftest.err
11665 } && test -s conftest.$ac_objext; then
11666 ac_cv_type_long_double=yes
11667 else
11668 echo "$as_me: failed program was:" >&5
11669 sed 's/^/| /' conftest.$ac_ext >&5
11671 ac_cv_type_long_double=no
11674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11676 { echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
11677 echo "${ECHO_T}$ac_cv_type_long_double" >&6; }
11679 # The cast to long int works around a bug in the HP C Compiler
11680 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11681 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11682 # This bug is HP SR number 8606223364.
11683 { echo "$as_me:$LINENO: checking size of long double" >&5
11684 echo $ECHO_N "checking size of long double... $ECHO_C" >&6; }
11685 if test "${ac_cv_sizeof_long_double+set}" = set; then
11686 echo $ECHO_N "(cached) $ECHO_C" >&6
11687 else
11688 if test "$cross_compiling" = yes; then
11689 # Depending upon the size, compute the lo and hi bounds.
11690 cat >conftest.$ac_ext <<_ACEOF
11691 /* confdefs.h. */
11692 _ACEOF
11693 cat confdefs.h >>conftest.$ac_ext
11694 cat >>conftest.$ac_ext <<_ACEOF
11695 /* end confdefs.h. */
11696 $ac_includes_default
11697 typedef long double ac__type_sizeof_;
11699 main ()
11701 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11702 test_array [0] = 0
11705 return 0;
11707 _ACEOF
11708 rm -f conftest.$ac_objext
11709 if { (ac_try="$ac_compile"
11710 case "(($ac_try" in
11711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11712 *) ac_try_echo=$ac_try;;
11713 esac
11714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11715 (eval "$ac_compile") 2>conftest.er1
11716 ac_status=$?
11717 grep -v '^ *+' conftest.er1 >conftest.err
11718 rm -f conftest.er1
11719 cat conftest.err >&5
11720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11721 (exit $ac_status); } && {
11722 test -z "$ac_c_werror_flag" ||
11723 test ! -s conftest.err
11724 } && test -s conftest.$ac_objext; then
11725 ac_lo=0 ac_mid=0
11726 while :; do
11727 cat >conftest.$ac_ext <<_ACEOF
11728 /* confdefs.h. */
11729 _ACEOF
11730 cat confdefs.h >>conftest.$ac_ext
11731 cat >>conftest.$ac_ext <<_ACEOF
11732 /* end confdefs.h. */
11733 $ac_includes_default
11734 typedef long double ac__type_sizeof_;
11736 main ()
11738 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11739 test_array [0] = 0
11742 return 0;
11744 _ACEOF
11745 rm -f conftest.$ac_objext
11746 if { (ac_try="$ac_compile"
11747 case "(($ac_try" in
11748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11749 *) ac_try_echo=$ac_try;;
11750 esac
11751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11752 (eval "$ac_compile") 2>conftest.er1
11753 ac_status=$?
11754 grep -v '^ *+' conftest.er1 >conftest.err
11755 rm -f conftest.er1
11756 cat conftest.err >&5
11757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11758 (exit $ac_status); } && {
11759 test -z "$ac_c_werror_flag" ||
11760 test ! -s conftest.err
11761 } && test -s conftest.$ac_objext; then
11762 ac_hi=$ac_mid; break
11763 else
11764 echo "$as_me: failed program was:" >&5
11765 sed 's/^/| /' conftest.$ac_ext >&5
11767 ac_lo=`expr $ac_mid + 1`
11768 if test $ac_lo -le $ac_mid; then
11769 ac_lo= ac_hi=
11770 break
11772 ac_mid=`expr 2 '*' $ac_mid + 1`
11775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11776 done
11777 else
11778 echo "$as_me: failed program was:" >&5
11779 sed 's/^/| /' conftest.$ac_ext >&5
11781 cat >conftest.$ac_ext <<_ACEOF
11782 /* confdefs.h. */
11783 _ACEOF
11784 cat confdefs.h >>conftest.$ac_ext
11785 cat >>conftest.$ac_ext <<_ACEOF
11786 /* end confdefs.h. */
11787 $ac_includes_default
11788 typedef long double ac__type_sizeof_;
11790 main ()
11792 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11793 test_array [0] = 0
11796 return 0;
11798 _ACEOF
11799 rm -f conftest.$ac_objext
11800 if { (ac_try="$ac_compile"
11801 case "(($ac_try" in
11802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11803 *) ac_try_echo=$ac_try;;
11804 esac
11805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11806 (eval "$ac_compile") 2>conftest.er1
11807 ac_status=$?
11808 grep -v '^ *+' conftest.er1 >conftest.err
11809 rm -f conftest.er1
11810 cat conftest.err >&5
11811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11812 (exit $ac_status); } && {
11813 test -z "$ac_c_werror_flag" ||
11814 test ! -s conftest.err
11815 } && test -s conftest.$ac_objext; then
11816 ac_hi=-1 ac_mid=-1
11817 while :; do
11818 cat >conftest.$ac_ext <<_ACEOF
11819 /* confdefs.h. */
11820 _ACEOF
11821 cat confdefs.h >>conftest.$ac_ext
11822 cat >>conftest.$ac_ext <<_ACEOF
11823 /* end confdefs.h. */
11824 $ac_includes_default
11825 typedef long double ac__type_sizeof_;
11827 main ()
11829 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11830 test_array [0] = 0
11833 return 0;
11835 _ACEOF
11836 rm -f conftest.$ac_objext
11837 if { (ac_try="$ac_compile"
11838 case "(($ac_try" in
11839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11840 *) ac_try_echo=$ac_try;;
11841 esac
11842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11843 (eval "$ac_compile") 2>conftest.er1
11844 ac_status=$?
11845 grep -v '^ *+' conftest.er1 >conftest.err
11846 rm -f conftest.er1
11847 cat conftest.err >&5
11848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11849 (exit $ac_status); } && {
11850 test -z "$ac_c_werror_flag" ||
11851 test ! -s conftest.err
11852 } && test -s conftest.$ac_objext; then
11853 ac_lo=$ac_mid; break
11854 else
11855 echo "$as_me: failed program was:" >&5
11856 sed 's/^/| /' conftest.$ac_ext >&5
11858 ac_hi=`expr '(' $ac_mid ')' - 1`
11859 if test $ac_mid -le $ac_hi; then
11860 ac_lo= ac_hi=
11861 break
11863 ac_mid=`expr 2 '*' $ac_mid`
11866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11867 done
11868 else
11869 echo "$as_me: failed program was:" >&5
11870 sed 's/^/| /' conftest.$ac_ext >&5
11872 ac_lo= ac_hi=
11875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11879 # Binary search between lo and hi bounds.
11880 while test "x$ac_lo" != "x$ac_hi"; do
11881 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11882 cat >conftest.$ac_ext <<_ACEOF
11883 /* confdefs.h. */
11884 _ACEOF
11885 cat confdefs.h >>conftest.$ac_ext
11886 cat >>conftest.$ac_ext <<_ACEOF
11887 /* end confdefs.h. */
11888 $ac_includes_default
11889 typedef long double ac__type_sizeof_;
11891 main ()
11893 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11894 test_array [0] = 0
11897 return 0;
11899 _ACEOF
11900 rm -f conftest.$ac_objext
11901 if { (ac_try="$ac_compile"
11902 case "(($ac_try" in
11903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11904 *) ac_try_echo=$ac_try;;
11905 esac
11906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11907 (eval "$ac_compile") 2>conftest.er1
11908 ac_status=$?
11909 grep -v '^ *+' conftest.er1 >conftest.err
11910 rm -f conftest.er1
11911 cat conftest.err >&5
11912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913 (exit $ac_status); } && {
11914 test -z "$ac_c_werror_flag" ||
11915 test ! -s conftest.err
11916 } && test -s conftest.$ac_objext; then
11917 ac_hi=$ac_mid
11918 else
11919 echo "$as_me: failed program was:" >&5
11920 sed 's/^/| /' conftest.$ac_ext >&5
11922 ac_lo=`expr '(' $ac_mid ')' + 1`
11925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11926 done
11927 case $ac_lo in
11928 ?*) ac_cv_sizeof_long_double=$ac_lo;;
11929 '') if test "$ac_cv_type_long_double" = yes; then
11930 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
11931 See \`config.log' for more details." >&5
11932 echo "$as_me: error: cannot compute sizeof (long double)
11933 See \`config.log' for more details." >&2;}
11934 { (exit 77); exit 77; }; }
11935 else
11936 ac_cv_sizeof_long_double=0
11937 fi ;;
11938 esac
11939 else
11940 cat >conftest.$ac_ext <<_ACEOF
11941 /* confdefs.h. */
11942 _ACEOF
11943 cat confdefs.h >>conftest.$ac_ext
11944 cat >>conftest.$ac_ext <<_ACEOF
11945 /* end confdefs.h. */
11946 $ac_includes_default
11947 typedef long double ac__type_sizeof_;
11948 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11949 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11950 #include <stdio.h>
11951 #include <stdlib.h>
11953 main ()
11956 FILE *f = fopen ("conftest.val", "w");
11957 if (! f)
11958 return 1;
11959 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11961 long int i = longval ();
11962 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11963 return 1;
11964 fprintf (f, "%ld\n", i);
11966 else
11968 unsigned long int i = ulongval ();
11969 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11970 return 1;
11971 fprintf (f, "%lu\n", i);
11973 return ferror (f) || fclose (f) != 0;
11976 return 0;
11978 _ACEOF
11979 rm -f conftest$ac_exeext
11980 if { (ac_try="$ac_link"
11981 case "(($ac_try" in
11982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11983 *) ac_try_echo=$ac_try;;
11984 esac
11985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11986 (eval "$ac_link") 2>&5
11987 ac_status=$?
11988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11989 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11990 { (case "(($ac_try" in
11991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11992 *) ac_try_echo=$ac_try;;
11993 esac
11994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11995 (eval "$ac_try") 2>&5
11996 ac_status=$?
11997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11998 (exit $ac_status); }; }; then
11999 ac_cv_sizeof_long_double=`cat conftest.val`
12000 else
12001 echo "$as_me: program exited with status $ac_status" >&5
12002 echo "$as_me: failed program was:" >&5
12003 sed 's/^/| /' conftest.$ac_ext >&5
12005 ( exit $ac_status )
12006 if test "$ac_cv_type_long_double" = yes; then
12007 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
12008 See \`config.log' for more details." >&5
12009 echo "$as_me: error: cannot compute sizeof (long double)
12010 See \`config.log' for more details." >&2;}
12011 { (exit 77); exit 77; }; }
12012 else
12013 ac_cv_sizeof_long_double=0
12016 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12018 rm -f conftest.val
12020 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
12021 echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6; }
12025 cat >>confdefs.h <<_ACEOF
12026 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
12027 _ACEOF
12033 { echo "$as_me:$LINENO: checking for _Bool support" >&5
12034 echo $ECHO_N "checking for _Bool support... $ECHO_C" >&6; }
12035 have_c99_bool=no
12036 cat >conftest.$ac_ext <<_ACEOF
12037 /* confdefs.h. */
12038 _ACEOF
12039 cat confdefs.h >>conftest.$ac_ext
12040 cat >>conftest.$ac_ext <<_ACEOF
12041 /* end confdefs.h. */
12044 main ()
12046 _Bool x; x = (_Bool)0;
12048 return 0;
12050 _ACEOF
12051 rm -f conftest.$ac_objext
12052 if { (ac_try="$ac_compile"
12053 case "(($ac_try" in
12054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12055 *) ac_try_echo=$ac_try;;
12056 esac
12057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12058 (eval "$ac_compile") 2>conftest.er1
12059 ac_status=$?
12060 grep -v '^ *+' conftest.er1 >conftest.err
12061 rm -f conftest.er1
12062 cat conftest.err >&5
12063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12064 (exit $ac_status); } && {
12065 test -z "$ac_c_werror_flag" ||
12066 test ! -s conftest.err
12067 } && test -s conftest.$ac_objext; then
12070 cat >>confdefs.h <<\_ACEOF
12071 #define HAVE_C99_BOOL 1
12072 _ACEOF
12074 have_c99_bool=yes
12076 else
12077 echo "$as_me: failed program was:" >&5
12078 sed 's/^/| /' conftest.$ac_ext >&5
12083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12084 { echo "$as_me:$LINENO: result: $have_c99_bool" >&5
12085 echo "${ECHO_T}$have_c99_bool" >&6; }
12086 if test "$have_c99_bool" = yes ; then
12087 { echo "$as_me:$LINENO: checking for _Bool" >&5
12088 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
12089 if test "${ac_cv_type__Bool+set}" = set; then
12090 echo $ECHO_N "(cached) $ECHO_C" >&6
12091 else
12092 cat >conftest.$ac_ext <<_ACEOF
12093 /* confdefs.h. */
12094 _ACEOF
12095 cat confdefs.h >>conftest.$ac_ext
12096 cat >>conftest.$ac_ext <<_ACEOF
12097 /* end confdefs.h. */
12098 $ac_includes_default
12099 typedef _Bool ac__type_new_;
12101 main ()
12103 if ((ac__type_new_ *) 0)
12104 return 0;
12105 if (sizeof (ac__type_new_))
12106 return 0;
12108 return 0;
12110 _ACEOF
12111 rm -f conftest.$ac_objext
12112 if { (ac_try="$ac_compile"
12113 case "(($ac_try" in
12114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12115 *) ac_try_echo=$ac_try;;
12116 esac
12117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12118 (eval "$ac_compile") 2>conftest.er1
12119 ac_status=$?
12120 grep -v '^ *+' conftest.er1 >conftest.err
12121 rm -f conftest.er1
12122 cat conftest.err >&5
12123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12124 (exit $ac_status); } && {
12125 test -z "$ac_c_werror_flag" ||
12126 test ! -s conftest.err
12127 } && test -s conftest.$ac_objext; then
12128 ac_cv_type__Bool=yes
12129 else
12130 echo "$as_me: failed program was:" >&5
12131 sed 's/^/| /' conftest.$ac_ext >&5
12133 ac_cv_type__Bool=no
12136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12138 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
12139 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
12141 # The cast to long int works around a bug in the HP C Compiler
12142 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12143 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12144 # This bug is HP SR number 8606223364.
12145 { echo "$as_me:$LINENO: checking size of _Bool" >&5
12146 echo $ECHO_N "checking size of _Bool... $ECHO_C" >&6; }
12147 if test "${ac_cv_sizeof__Bool+set}" = set; then
12148 echo $ECHO_N "(cached) $ECHO_C" >&6
12149 else
12150 if test "$cross_compiling" = yes; then
12151 # Depending upon the size, compute the lo and hi bounds.
12152 cat >conftest.$ac_ext <<_ACEOF
12153 /* confdefs.h. */
12154 _ACEOF
12155 cat confdefs.h >>conftest.$ac_ext
12156 cat >>conftest.$ac_ext <<_ACEOF
12157 /* end confdefs.h. */
12158 $ac_includes_default
12159 typedef _Bool ac__type_sizeof_;
12161 main ()
12163 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12164 test_array [0] = 0
12167 return 0;
12169 _ACEOF
12170 rm -f conftest.$ac_objext
12171 if { (ac_try="$ac_compile"
12172 case "(($ac_try" in
12173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12174 *) ac_try_echo=$ac_try;;
12175 esac
12176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12177 (eval "$ac_compile") 2>conftest.er1
12178 ac_status=$?
12179 grep -v '^ *+' conftest.er1 >conftest.err
12180 rm -f conftest.er1
12181 cat conftest.err >&5
12182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12183 (exit $ac_status); } && {
12184 test -z "$ac_c_werror_flag" ||
12185 test ! -s conftest.err
12186 } && test -s conftest.$ac_objext; then
12187 ac_lo=0 ac_mid=0
12188 while :; do
12189 cat >conftest.$ac_ext <<_ACEOF
12190 /* confdefs.h. */
12191 _ACEOF
12192 cat confdefs.h >>conftest.$ac_ext
12193 cat >>conftest.$ac_ext <<_ACEOF
12194 /* end confdefs.h. */
12195 $ac_includes_default
12196 typedef _Bool ac__type_sizeof_;
12198 main ()
12200 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12201 test_array [0] = 0
12204 return 0;
12206 _ACEOF
12207 rm -f conftest.$ac_objext
12208 if { (ac_try="$ac_compile"
12209 case "(($ac_try" in
12210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12211 *) ac_try_echo=$ac_try;;
12212 esac
12213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12214 (eval "$ac_compile") 2>conftest.er1
12215 ac_status=$?
12216 grep -v '^ *+' conftest.er1 >conftest.err
12217 rm -f conftest.er1
12218 cat conftest.err >&5
12219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12220 (exit $ac_status); } && {
12221 test -z "$ac_c_werror_flag" ||
12222 test ! -s conftest.err
12223 } && test -s conftest.$ac_objext; then
12224 ac_hi=$ac_mid; break
12225 else
12226 echo "$as_me: failed program was:" >&5
12227 sed 's/^/| /' conftest.$ac_ext >&5
12229 ac_lo=`expr $ac_mid + 1`
12230 if test $ac_lo -le $ac_mid; then
12231 ac_lo= ac_hi=
12232 break
12234 ac_mid=`expr 2 '*' $ac_mid + 1`
12237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12238 done
12239 else
12240 echo "$as_me: failed program was:" >&5
12241 sed 's/^/| /' conftest.$ac_ext >&5
12243 cat >conftest.$ac_ext <<_ACEOF
12244 /* confdefs.h. */
12245 _ACEOF
12246 cat confdefs.h >>conftest.$ac_ext
12247 cat >>conftest.$ac_ext <<_ACEOF
12248 /* end confdefs.h. */
12249 $ac_includes_default
12250 typedef _Bool ac__type_sizeof_;
12252 main ()
12254 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12255 test_array [0] = 0
12258 return 0;
12260 _ACEOF
12261 rm -f conftest.$ac_objext
12262 if { (ac_try="$ac_compile"
12263 case "(($ac_try" in
12264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12265 *) ac_try_echo=$ac_try;;
12266 esac
12267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12268 (eval "$ac_compile") 2>conftest.er1
12269 ac_status=$?
12270 grep -v '^ *+' conftest.er1 >conftest.err
12271 rm -f conftest.er1
12272 cat conftest.err >&5
12273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12274 (exit $ac_status); } && {
12275 test -z "$ac_c_werror_flag" ||
12276 test ! -s conftest.err
12277 } && test -s conftest.$ac_objext; then
12278 ac_hi=-1 ac_mid=-1
12279 while :; do
12280 cat >conftest.$ac_ext <<_ACEOF
12281 /* confdefs.h. */
12282 _ACEOF
12283 cat confdefs.h >>conftest.$ac_ext
12284 cat >>conftest.$ac_ext <<_ACEOF
12285 /* end confdefs.h. */
12286 $ac_includes_default
12287 typedef _Bool ac__type_sizeof_;
12289 main ()
12291 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12292 test_array [0] = 0
12295 return 0;
12297 _ACEOF
12298 rm -f conftest.$ac_objext
12299 if { (ac_try="$ac_compile"
12300 case "(($ac_try" in
12301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12302 *) ac_try_echo=$ac_try;;
12303 esac
12304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12305 (eval "$ac_compile") 2>conftest.er1
12306 ac_status=$?
12307 grep -v '^ *+' conftest.er1 >conftest.err
12308 rm -f conftest.er1
12309 cat conftest.err >&5
12310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12311 (exit $ac_status); } && {
12312 test -z "$ac_c_werror_flag" ||
12313 test ! -s conftest.err
12314 } && test -s conftest.$ac_objext; then
12315 ac_lo=$ac_mid; break
12316 else
12317 echo "$as_me: failed program was:" >&5
12318 sed 's/^/| /' conftest.$ac_ext >&5
12320 ac_hi=`expr '(' $ac_mid ')' - 1`
12321 if test $ac_mid -le $ac_hi; then
12322 ac_lo= ac_hi=
12323 break
12325 ac_mid=`expr 2 '*' $ac_mid`
12328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12329 done
12330 else
12331 echo "$as_me: failed program was:" >&5
12332 sed 's/^/| /' conftest.$ac_ext >&5
12334 ac_lo= ac_hi=
12337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12341 # Binary search between lo and hi bounds.
12342 while test "x$ac_lo" != "x$ac_hi"; do
12343 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12344 cat >conftest.$ac_ext <<_ACEOF
12345 /* confdefs.h. */
12346 _ACEOF
12347 cat confdefs.h >>conftest.$ac_ext
12348 cat >>conftest.$ac_ext <<_ACEOF
12349 /* end confdefs.h. */
12350 $ac_includes_default
12351 typedef _Bool ac__type_sizeof_;
12353 main ()
12355 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12356 test_array [0] = 0
12359 return 0;
12361 _ACEOF
12362 rm -f conftest.$ac_objext
12363 if { (ac_try="$ac_compile"
12364 case "(($ac_try" in
12365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12366 *) ac_try_echo=$ac_try;;
12367 esac
12368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12369 (eval "$ac_compile") 2>conftest.er1
12370 ac_status=$?
12371 grep -v '^ *+' conftest.er1 >conftest.err
12372 rm -f conftest.er1
12373 cat conftest.err >&5
12374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12375 (exit $ac_status); } && {
12376 test -z "$ac_c_werror_flag" ||
12377 test ! -s conftest.err
12378 } && test -s conftest.$ac_objext; then
12379 ac_hi=$ac_mid
12380 else
12381 echo "$as_me: failed program was:" >&5
12382 sed 's/^/| /' conftest.$ac_ext >&5
12384 ac_lo=`expr '(' $ac_mid ')' + 1`
12387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12388 done
12389 case $ac_lo in
12390 ?*) ac_cv_sizeof__Bool=$ac_lo;;
12391 '') if test "$ac_cv_type__Bool" = yes; then
12392 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
12393 See \`config.log' for more details." >&5
12394 echo "$as_me: error: cannot compute sizeof (_Bool)
12395 See \`config.log' for more details." >&2;}
12396 { (exit 77); exit 77; }; }
12397 else
12398 ac_cv_sizeof__Bool=0
12399 fi ;;
12400 esac
12401 else
12402 cat >conftest.$ac_ext <<_ACEOF
12403 /* confdefs.h. */
12404 _ACEOF
12405 cat confdefs.h >>conftest.$ac_ext
12406 cat >>conftest.$ac_ext <<_ACEOF
12407 /* end confdefs.h. */
12408 $ac_includes_default
12409 typedef _Bool ac__type_sizeof_;
12410 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12411 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12412 #include <stdio.h>
12413 #include <stdlib.h>
12415 main ()
12418 FILE *f = fopen ("conftest.val", "w");
12419 if (! f)
12420 return 1;
12421 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12423 long int i = longval ();
12424 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12425 return 1;
12426 fprintf (f, "%ld\n", i);
12428 else
12430 unsigned long int i = ulongval ();
12431 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12432 return 1;
12433 fprintf (f, "%lu\n", i);
12435 return ferror (f) || fclose (f) != 0;
12438 return 0;
12440 _ACEOF
12441 rm -f conftest$ac_exeext
12442 if { (ac_try="$ac_link"
12443 case "(($ac_try" in
12444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12445 *) ac_try_echo=$ac_try;;
12446 esac
12447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12448 (eval "$ac_link") 2>&5
12449 ac_status=$?
12450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12451 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12452 { (case "(($ac_try" in
12453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12454 *) ac_try_echo=$ac_try;;
12455 esac
12456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12457 (eval "$ac_try") 2>&5
12458 ac_status=$?
12459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12460 (exit $ac_status); }; }; then
12461 ac_cv_sizeof__Bool=`cat conftest.val`
12462 else
12463 echo "$as_me: program exited with status $ac_status" >&5
12464 echo "$as_me: failed program was:" >&5
12465 sed 's/^/| /' conftest.$ac_ext >&5
12467 ( exit $ac_status )
12468 if test "$ac_cv_type__Bool" = yes; then
12469 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
12470 See \`config.log' for more details." >&5
12471 echo "$as_me: error: cannot compute sizeof (_Bool)
12472 See \`config.log' for more details." >&2;}
12473 { (exit 77); exit 77; }; }
12474 else
12475 ac_cv_sizeof__Bool=0
12478 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12480 rm -f conftest.val
12482 { echo "$as_me:$LINENO: result: $ac_cv_sizeof__Bool" >&5
12483 echo "${ECHO_T}$ac_cv_sizeof__Bool" >&6; }
12487 cat >>confdefs.h <<_ACEOF
12488 #define SIZEOF__BOOL $ac_cv_sizeof__Bool
12489 _ACEOF
12494 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
12495 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
12496 if test "${ac_cv_type_uintptr_t+set}" = set; then
12497 echo $ECHO_N "(cached) $ECHO_C" >&6
12498 else
12499 cat >conftest.$ac_ext <<_ACEOF
12500 /* confdefs.h. */
12501 _ACEOF
12502 cat confdefs.h >>conftest.$ac_ext
12503 cat >>conftest.$ac_ext <<_ACEOF
12504 /* end confdefs.h. */
12505 #ifdef HAVE_STDINT_H
12506 #include <stdint.h>
12507 #endif
12509 typedef uintptr_t ac__type_new_;
12511 main ()
12513 if ((ac__type_new_ *) 0)
12514 return 0;
12515 if (sizeof (ac__type_new_))
12516 return 0;
12518 return 0;
12520 _ACEOF
12521 rm -f conftest.$ac_objext
12522 if { (ac_try="$ac_compile"
12523 case "(($ac_try" in
12524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12525 *) ac_try_echo=$ac_try;;
12526 esac
12527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12528 (eval "$ac_compile") 2>conftest.er1
12529 ac_status=$?
12530 grep -v '^ *+' conftest.er1 >conftest.err
12531 rm -f conftest.er1
12532 cat conftest.err >&5
12533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12534 (exit $ac_status); } && {
12535 test -z "$ac_c_werror_flag" ||
12536 test ! -s conftest.err
12537 } && test -s conftest.$ac_objext; then
12538 ac_cv_type_uintptr_t=yes
12539 else
12540 echo "$as_me: failed program was:" >&5
12541 sed 's/^/| /' conftest.$ac_ext >&5
12543 ac_cv_type_uintptr_t=no
12546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12548 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12549 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12550 if test $ac_cv_type_uintptr_t = yes; then
12552 cat >>confdefs.h <<_ACEOF
12553 #define HAVE_UINTPTR_T 1
12554 _ACEOF
12556 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
12557 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
12558 if test "${ac_cv_type_uintptr_t+set}" = set; then
12559 echo $ECHO_N "(cached) $ECHO_C" >&6
12560 else
12561 cat >conftest.$ac_ext <<_ACEOF
12562 /* confdefs.h. */
12563 _ACEOF
12564 cat confdefs.h >>conftest.$ac_ext
12565 cat >>conftest.$ac_ext <<_ACEOF
12566 /* end confdefs.h. */
12567 $ac_includes_default
12568 typedef uintptr_t ac__type_new_;
12570 main ()
12572 if ((ac__type_new_ *) 0)
12573 return 0;
12574 if (sizeof (ac__type_new_))
12575 return 0;
12577 return 0;
12579 _ACEOF
12580 rm -f conftest.$ac_objext
12581 if { (ac_try="$ac_compile"
12582 case "(($ac_try" in
12583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12584 *) ac_try_echo=$ac_try;;
12585 esac
12586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12587 (eval "$ac_compile") 2>conftest.er1
12588 ac_status=$?
12589 grep -v '^ *+' conftest.er1 >conftest.err
12590 rm -f conftest.er1
12591 cat conftest.err >&5
12592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12593 (exit $ac_status); } && {
12594 test -z "$ac_c_werror_flag" ||
12595 test ! -s conftest.err
12596 } && test -s conftest.$ac_objext; then
12597 ac_cv_type_uintptr_t=yes
12598 else
12599 echo "$as_me: failed program was:" >&5
12600 sed 's/^/| /' conftest.$ac_ext >&5
12602 ac_cv_type_uintptr_t=no
12605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12607 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12608 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12610 # The cast to long int works around a bug in the HP C Compiler
12611 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12612 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12613 # This bug is HP SR number 8606223364.
12614 { echo "$as_me:$LINENO: checking size of uintptr_t" >&5
12615 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6; }
12616 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
12617 echo $ECHO_N "(cached) $ECHO_C" >&6
12618 else
12619 if test "$cross_compiling" = yes; then
12620 # Depending upon the size, compute the lo and hi bounds.
12621 cat >conftest.$ac_ext <<_ACEOF
12622 /* confdefs.h. */
12623 _ACEOF
12624 cat confdefs.h >>conftest.$ac_ext
12625 cat >>conftest.$ac_ext <<_ACEOF
12626 /* end confdefs.h. */
12627 $ac_includes_default
12628 typedef uintptr_t ac__type_sizeof_;
12630 main ()
12632 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12633 test_array [0] = 0
12636 return 0;
12638 _ACEOF
12639 rm -f conftest.$ac_objext
12640 if { (ac_try="$ac_compile"
12641 case "(($ac_try" in
12642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12643 *) ac_try_echo=$ac_try;;
12644 esac
12645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12646 (eval "$ac_compile") 2>conftest.er1
12647 ac_status=$?
12648 grep -v '^ *+' conftest.er1 >conftest.err
12649 rm -f conftest.er1
12650 cat conftest.err >&5
12651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12652 (exit $ac_status); } && {
12653 test -z "$ac_c_werror_flag" ||
12654 test ! -s conftest.err
12655 } && test -s conftest.$ac_objext; then
12656 ac_lo=0 ac_mid=0
12657 while :; do
12658 cat >conftest.$ac_ext <<_ACEOF
12659 /* confdefs.h. */
12660 _ACEOF
12661 cat confdefs.h >>conftest.$ac_ext
12662 cat >>conftest.$ac_ext <<_ACEOF
12663 /* end confdefs.h. */
12664 $ac_includes_default
12665 typedef uintptr_t ac__type_sizeof_;
12667 main ()
12669 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12670 test_array [0] = 0
12673 return 0;
12675 _ACEOF
12676 rm -f conftest.$ac_objext
12677 if { (ac_try="$ac_compile"
12678 case "(($ac_try" in
12679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12680 *) ac_try_echo=$ac_try;;
12681 esac
12682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12683 (eval "$ac_compile") 2>conftest.er1
12684 ac_status=$?
12685 grep -v '^ *+' conftest.er1 >conftest.err
12686 rm -f conftest.er1
12687 cat conftest.err >&5
12688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12689 (exit $ac_status); } && {
12690 test -z "$ac_c_werror_flag" ||
12691 test ! -s conftest.err
12692 } && test -s conftest.$ac_objext; then
12693 ac_hi=$ac_mid; break
12694 else
12695 echo "$as_me: failed program was:" >&5
12696 sed 's/^/| /' conftest.$ac_ext >&5
12698 ac_lo=`expr $ac_mid + 1`
12699 if test $ac_lo -le $ac_mid; then
12700 ac_lo= ac_hi=
12701 break
12703 ac_mid=`expr 2 '*' $ac_mid + 1`
12706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12707 done
12708 else
12709 echo "$as_me: failed program was:" >&5
12710 sed 's/^/| /' conftest.$ac_ext >&5
12712 cat >conftest.$ac_ext <<_ACEOF
12713 /* confdefs.h. */
12714 _ACEOF
12715 cat confdefs.h >>conftest.$ac_ext
12716 cat >>conftest.$ac_ext <<_ACEOF
12717 /* end confdefs.h. */
12718 $ac_includes_default
12719 typedef uintptr_t ac__type_sizeof_;
12721 main ()
12723 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12724 test_array [0] = 0
12727 return 0;
12729 _ACEOF
12730 rm -f conftest.$ac_objext
12731 if { (ac_try="$ac_compile"
12732 case "(($ac_try" in
12733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12734 *) ac_try_echo=$ac_try;;
12735 esac
12736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12737 (eval "$ac_compile") 2>conftest.er1
12738 ac_status=$?
12739 grep -v '^ *+' conftest.er1 >conftest.err
12740 rm -f conftest.er1
12741 cat conftest.err >&5
12742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12743 (exit $ac_status); } && {
12744 test -z "$ac_c_werror_flag" ||
12745 test ! -s conftest.err
12746 } && test -s conftest.$ac_objext; then
12747 ac_hi=-1 ac_mid=-1
12748 while :; do
12749 cat >conftest.$ac_ext <<_ACEOF
12750 /* confdefs.h. */
12751 _ACEOF
12752 cat confdefs.h >>conftest.$ac_ext
12753 cat >>conftest.$ac_ext <<_ACEOF
12754 /* end confdefs.h. */
12755 $ac_includes_default
12756 typedef uintptr_t ac__type_sizeof_;
12758 main ()
12760 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12761 test_array [0] = 0
12764 return 0;
12766 _ACEOF
12767 rm -f conftest.$ac_objext
12768 if { (ac_try="$ac_compile"
12769 case "(($ac_try" in
12770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12771 *) ac_try_echo=$ac_try;;
12772 esac
12773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12774 (eval "$ac_compile") 2>conftest.er1
12775 ac_status=$?
12776 grep -v '^ *+' conftest.er1 >conftest.err
12777 rm -f conftest.er1
12778 cat conftest.err >&5
12779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12780 (exit $ac_status); } && {
12781 test -z "$ac_c_werror_flag" ||
12782 test ! -s conftest.err
12783 } && test -s conftest.$ac_objext; then
12784 ac_lo=$ac_mid; break
12785 else
12786 echo "$as_me: failed program was:" >&5
12787 sed 's/^/| /' conftest.$ac_ext >&5
12789 ac_hi=`expr '(' $ac_mid ')' - 1`
12790 if test $ac_mid -le $ac_hi; then
12791 ac_lo= ac_hi=
12792 break
12794 ac_mid=`expr 2 '*' $ac_mid`
12797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12798 done
12799 else
12800 echo "$as_me: failed program was:" >&5
12801 sed 's/^/| /' conftest.$ac_ext >&5
12803 ac_lo= ac_hi=
12806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12810 # Binary search between lo and hi bounds.
12811 while test "x$ac_lo" != "x$ac_hi"; do
12812 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12813 cat >conftest.$ac_ext <<_ACEOF
12814 /* confdefs.h. */
12815 _ACEOF
12816 cat confdefs.h >>conftest.$ac_ext
12817 cat >>conftest.$ac_ext <<_ACEOF
12818 /* end confdefs.h. */
12819 $ac_includes_default
12820 typedef uintptr_t ac__type_sizeof_;
12822 main ()
12824 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12825 test_array [0] = 0
12828 return 0;
12830 _ACEOF
12831 rm -f conftest.$ac_objext
12832 if { (ac_try="$ac_compile"
12833 case "(($ac_try" in
12834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12835 *) ac_try_echo=$ac_try;;
12836 esac
12837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12838 (eval "$ac_compile") 2>conftest.er1
12839 ac_status=$?
12840 grep -v '^ *+' conftest.er1 >conftest.err
12841 rm -f conftest.er1
12842 cat conftest.err >&5
12843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12844 (exit $ac_status); } && {
12845 test -z "$ac_c_werror_flag" ||
12846 test ! -s conftest.err
12847 } && test -s conftest.$ac_objext; then
12848 ac_hi=$ac_mid
12849 else
12850 echo "$as_me: failed program was:" >&5
12851 sed 's/^/| /' conftest.$ac_ext >&5
12853 ac_lo=`expr '(' $ac_mid ')' + 1`
12856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12857 done
12858 case $ac_lo in
12859 ?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
12860 '') if test "$ac_cv_type_uintptr_t" = yes; then
12861 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
12862 See \`config.log' for more details." >&5
12863 echo "$as_me: error: cannot compute sizeof (uintptr_t)
12864 See \`config.log' for more details." >&2;}
12865 { (exit 77); exit 77; }; }
12866 else
12867 ac_cv_sizeof_uintptr_t=0
12868 fi ;;
12869 esac
12870 else
12871 cat >conftest.$ac_ext <<_ACEOF
12872 /* confdefs.h. */
12873 _ACEOF
12874 cat confdefs.h >>conftest.$ac_ext
12875 cat >>conftest.$ac_ext <<_ACEOF
12876 /* end confdefs.h. */
12877 $ac_includes_default
12878 typedef uintptr_t ac__type_sizeof_;
12879 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12880 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12881 #include <stdio.h>
12882 #include <stdlib.h>
12884 main ()
12887 FILE *f = fopen ("conftest.val", "w");
12888 if (! f)
12889 return 1;
12890 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12892 long int i = longval ();
12893 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12894 return 1;
12895 fprintf (f, "%ld\n", i);
12897 else
12899 unsigned long int i = ulongval ();
12900 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12901 return 1;
12902 fprintf (f, "%lu\n", i);
12904 return ferror (f) || fclose (f) != 0;
12907 return 0;
12909 _ACEOF
12910 rm -f conftest$ac_exeext
12911 if { (ac_try="$ac_link"
12912 case "(($ac_try" in
12913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12914 *) ac_try_echo=$ac_try;;
12915 esac
12916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12917 (eval "$ac_link") 2>&5
12918 ac_status=$?
12919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12921 { (case "(($ac_try" in
12922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12923 *) ac_try_echo=$ac_try;;
12924 esac
12925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12926 (eval "$ac_try") 2>&5
12927 ac_status=$?
12928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12929 (exit $ac_status); }; }; then
12930 ac_cv_sizeof_uintptr_t=`cat conftest.val`
12931 else
12932 echo "$as_me: program exited with status $ac_status" >&5
12933 echo "$as_me: failed program was:" >&5
12934 sed 's/^/| /' conftest.$ac_ext >&5
12936 ( exit $ac_status )
12937 if test "$ac_cv_type_uintptr_t" = yes; then
12938 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
12939 See \`config.log' for more details." >&5
12940 echo "$as_me: error: cannot compute sizeof (uintptr_t)
12941 See \`config.log' for more details." >&2;}
12942 { (exit 77); exit 77; }; }
12943 else
12944 ac_cv_sizeof_uintptr_t=0
12947 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12949 rm -f conftest.val
12951 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
12952 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6; }
12956 cat >>confdefs.h <<_ACEOF
12957 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
12958 _ACEOF
12965 # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.
12966 { echo "$as_me:$LINENO: checking size of off_t" >&5
12967 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
12968 if test "${ac_cv_sizeof_off_t+set}" = set; then
12969 echo $ECHO_N "(cached) $ECHO_C" >&6
12970 else
12971 if test "$cross_compiling" = yes; then
12972 ac_cv_sizeof_off_t=4
12973 else
12974 cat >conftest.$ac_ext <<_ACEOF
12975 /* confdefs.h. */
12976 _ACEOF
12977 cat confdefs.h >>conftest.$ac_ext
12978 cat >>conftest.$ac_ext <<_ACEOF
12979 /* end confdefs.h. */
12980 #include <stdio.h>
12981 #include <sys/types.h>
12982 main()
12984 FILE *f=fopen("conftestval", "w");
12985 if (!f) exit(1);
12986 fprintf(f, "%d\n", sizeof(off_t));
12987 exit(0);
12989 _ACEOF
12990 rm -f conftest$ac_exeext
12991 if { (ac_try="$ac_link"
12992 case "(($ac_try" in
12993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12994 *) ac_try_echo=$ac_try;;
12995 esac
12996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12997 (eval "$ac_link") 2>&5
12998 ac_status=$?
12999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13000 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13001 { (case "(($ac_try" in
13002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13003 *) ac_try_echo=$ac_try;;
13004 esac
13005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13006 (eval "$ac_try") 2>&5
13007 ac_status=$?
13008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13009 (exit $ac_status); }; }; then
13010 ac_cv_sizeof_off_t=`cat conftestval`
13011 else
13012 echo "$as_me: program exited with status $ac_status" >&5
13013 echo "$as_me: failed program was:" >&5
13014 sed 's/^/| /' conftest.$ac_ext >&5
13016 ( exit $ac_status )
13017 ac_cv_sizeof_off_t=0
13019 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13026 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
13027 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
13029 cat >>confdefs.h <<_ACEOF
13030 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
13031 _ACEOF
13034 { echo "$as_me:$LINENO: checking whether to enable large file support" >&5
13035 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6; }
13036 if test "$have_long_long" = yes
13037 then
13038 if test "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
13039 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
13041 cat >>confdefs.h <<\_ACEOF
13042 #define HAVE_LARGEFILE_SUPPORT 1
13043 _ACEOF
13045 { echo "$as_me:$LINENO: result: yes" >&5
13046 echo "${ECHO_T}yes" >&6; }
13047 else
13048 { echo "$as_me:$LINENO: result: no" >&5
13049 echo "${ECHO_T}no" >&6; }
13051 else
13052 { echo "$as_me:$LINENO: result: no" >&5
13053 echo "${ECHO_T}no" >&6; }
13056 # AC_CHECK_SIZEOF() doesn't include <time.h>.
13057 { echo "$as_me:$LINENO: checking size of time_t" >&5
13058 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6; }
13059 if test "${ac_cv_sizeof_time_t+set}" = set; then
13060 echo $ECHO_N "(cached) $ECHO_C" >&6
13061 else
13062 if test "$cross_compiling" = yes; then
13063 ac_cv_sizeof_time_t=4
13064 else
13065 cat >conftest.$ac_ext <<_ACEOF
13066 /* confdefs.h. */
13067 _ACEOF
13068 cat confdefs.h >>conftest.$ac_ext
13069 cat >>conftest.$ac_ext <<_ACEOF
13070 /* end confdefs.h. */
13071 #include <stdio.h>
13072 #include <time.h>
13073 main()
13075 FILE *f=fopen("conftestval", "w");
13076 if (!f) exit(1);
13077 fprintf(f, "%d\n", sizeof(time_t));
13078 exit(0);
13080 _ACEOF
13081 rm -f conftest$ac_exeext
13082 if { (ac_try="$ac_link"
13083 case "(($ac_try" in
13084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13085 *) ac_try_echo=$ac_try;;
13086 esac
13087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13088 (eval "$ac_link") 2>&5
13089 ac_status=$?
13090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13091 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13092 { (case "(($ac_try" in
13093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13094 *) ac_try_echo=$ac_try;;
13095 esac
13096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13097 (eval "$ac_try") 2>&5
13098 ac_status=$?
13099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13100 (exit $ac_status); }; }; then
13101 ac_cv_sizeof_time_t=`cat conftestval`
13102 else
13103 echo "$as_me: program exited with status $ac_status" >&5
13104 echo "$as_me: failed program was:" >&5
13105 sed 's/^/| /' conftest.$ac_ext >&5
13107 ( exit $ac_status )
13108 ac_cv_sizeof_time_t=0
13110 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13117 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
13118 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; }
13120 cat >>confdefs.h <<_ACEOF
13121 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
13122 _ACEOF
13126 # if have pthread_t then define SIZEOF_PTHREAD_T
13127 ac_save_cc="$CC"
13128 if test "$ac_cv_kpthread" = "yes"
13129 then CC="$CC -Kpthread"
13130 elif test "$ac_cv_kthread" = "yes"
13131 then CC="$CC -Kthread"
13132 elif test "$ac_cv_pthread" = "yes"
13133 then CC="$CC -pthread"
13135 { echo "$as_me:$LINENO: checking for pthread_t" >&5
13136 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; }
13137 have_pthread_t=no
13138 cat >conftest.$ac_ext <<_ACEOF
13139 /* confdefs.h. */
13140 _ACEOF
13141 cat confdefs.h >>conftest.$ac_ext
13142 cat >>conftest.$ac_ext <<_ACEOF
13143 /* end confdefs.h. */
13144 #include <pthread.h>
13146 main ()
13148 pthread_t x; x = *(pthread_t*)0;
13150 return 0;
13152 _ACEOF
13153 rm -f conftest.$ac_objext
13154 if { (ac_try="$ac_compile"
13155 case "(($ac_try" in
13156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13157 *) ac_try_echo=$ac_try;;
13158 esac
13159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13160 (eval "$ac_compile") 2>conftest.er1
13161 ac_status=$?
13162 grep -v '^ *+' conftest.er1 >conftest.err
13163 rm -f conftest.er1
13164 cat conftest.err >&5
13165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13166 (exit $ac_status); } && {
13167 test -z "$ac_c_werror_flag" ||
13168 test ! -s conftest.err
13169 } && test -s conftest.$ac_objext; then
13170 have_pthread_t=yes
13171 else
13172 echo "$as_me: failed program was:" >&5
13173 sed 's/^/| /' conftest.$ac_ext >&5
13178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13179 { echo "$as_me:$LINENO: result: $have_pthread_t" >&5
13180 echo "${ECHO_T}$have_pthread_t" >&6; }
13181 if test "$have_pthread_t" = yes ; then
13182 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
13183 { echo "$as_me:$LINENO: checking size of pthread_t" >&5
13184 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6; }
13185 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
13186 echo $ECHO_N "(cached) $ECHO_C" >&6
13187 else
13188 if test "$cross_compiling" = yes; then
13189 ac_cv_sizeof_pthread_t=4
13190 else
13191 cat >conftest.$ac_ext <<_ACEOF
13192 /* confdefs.h. */
13193 _ACEOF
13194 cat confdefs.h >>conftest.$ac_ext
13195 cat >>conftest.$ac_ext <<_ACEOF
13196 /* end confdefs.h. */
13197 #include <stdio.h>
13198 #include <pthread.h>
13199 main()
13201 FILE *f=fopen("conftestval", "w");
13202 if (!f) exit(1);
13203 fprintf(f, "%d\n", sizeof(pthread_t));
13204 exit(0);
13206 _ACEOF
13207 rm -f conftest$ac_exeext
13208 if { (ac_try="$ac_link"
13209 case "(($ac_try" in
13210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13211 *) ac_try_echo=$ac_try;;
13212 esac
13213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13214 (eval "$ac_link") 2>&5
13215 ac_status=$?
13216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13217 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13218 { (case "(($ac_try" in
13219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13220 *) ac_try_echo=$ac_try;;
13221 esac
13222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13223 (eval "$ac_try") 2>&5
13224 ac_status=$?
13225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13226 (exit $ac_status); }; }; then
13227 ac_cv_sizeof_pthread_t=`cat conftestval`
13228 else
13229 echo "$as_me: program exited with status $ac_status" >&5
13230 echo "$as_me: failed program was:" >&5
13231 sed 's/^/| /' conftest.$ac_ext >&5
13233 ( exit $ac_status )
13234 ac_cv_sizeof_pthread_t=0
13236 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13243 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
13244 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6; }
13246 cat >>confdefs.h <<_ACEOF
13247 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
13248 _ACEOF
13251 CC="$ac_save_cc"
13256 case $ac_sys_system/$ac_sys_release in
13257 Darwin/[01567]\..*)
13258 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
13260 Darwin/*)
13261 OTHER_LIBTOOL_OPT=""
13263 esac
13266 ARCH_RUN_32BIT=""
13268 case $ac_sys_system/$ac_sys_release in
13269 Darwin/[01567]\..*)
13270 LIBTOOL_CRUFT="-framework System -lcc_dynamic"
13271 if test "${enable_universalsdk}"; then
13273 else
13274 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch`"
13276 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13277 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
13278 Darwin/*)
13279 gcc_version=`gcc -v 2>&1 | grep version | cut -d\ -f3`
13280 if test ${gcc_version} '<' 4.0
13281 then
13282 LIBTOOL_CRUFT="-lcc_dynamic"
13283 else
13284 LIBTOOL_CRUFT=""
13286 if test "$cross_compiling" = yes; then
13287 ac_osx_32bit=yes
13288 else
13289 cat >conftest.$ac_ext <<_ACEOF
13290 /* confdefs.h. */
13291 _ACEOF
13292 cat confdefs.h >>conftest.$ac_ext
13293 cat >>conftest.$ac_ext <<_ACEOF
13294 /* end confdefs.h. */
13296 #include <unistd.h>
13297 int main(int argc, char*argv[])
13299 if (sizeof(long) == 4) {
13300 return 0;
13301 } else {
13302 return 1;
13306 _ACEOF
13307 rm -f conftest$ac_exeext
13308 if { (ac_try="$ac_link"
13309 case "(($ac_try" in
13310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13311 *) ac_try_echo=$ac_try;;
13312 esac
13313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13314 (eval "$ac_link") 2>&5
13315 ac_status=$?
13316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13317 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13318 { (case "(($ac_try" in
13319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13320 *) ac_try_echo=$ac_try;;
13321 esac
13322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13323 (eval "$ac_try") 2>&5
13324 ac_status=$?
13325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13326 (exit $ac_status); }; }; then
13327 ac_osx_32bit=yes
13328 else
13329 echo "$as_me: program exited with status $ac_status" >&5
13330 echo "$as_me: failed program was:" >&5
13331 sed 's/^/| /' conftest.$ac_ext >&5
13333 ( exit $ac_status )
13334 ac_osx_32bit=no
13336 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13341 if test "${ac_osx_32bit}" = "yes"; then
13342 case `arch` in
13343 i386)
13344 MACOSX_DEFAULT_ARCH="i386"
13346 ppc)
13347 MACOSX_DEFAULT_ARCH="ppc"
13350 { { echo "$as_me:$LINENO: error: Unexpected output of 'arch' on OSX" >&5
13351 echo "$as_me: error: Unexpected output of 'arch' on OSX" >&2;}
13352 { (exit 1); exit 1; }; }
13354 esac
13355 else
13356 case `arch` in
13357 i386)
13358 MACOSX_DEFAULT_ARCH="x86_64"
13360 ppc)
13361 MACOSX_DEFAULT_ARCH="ppc64"
13364 { { echo "$as_me:$LINENO: error: Unexpected output of 'arch' on OSX" >&5
13365 echo "$as_me: error: Unexpected output of 'arch' on OSX" >&2;}
13366 { (exit 1); exit 1; }; }
13368 esac
13370 #ARCH_RUN_32BIT="true"
13373 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}"
13374 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13375 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
13376 esac
13378 { echo "$as_me:$LINENO: checking for --enable-framework" >&5
13379 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6; }
13380 if test "$enable_framework"
13381 then
13382 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
13383 # -F. is needed to allow linking to the framework while
13384 # in the build location.
13386 cat >>confdefs.h <<\_ACEOF
13387 #define WITH_NEXT_FRAMEWORK 1
13388 _ACEOF
13390 { echo "$as_me:$LINENO: result: yes" >&5
13391 echo "${ECHO_T}yes" >&6; }
13392 if test $enable_shared = "yes"
13393 then
13394 { { echo "$as_me:$LINENO: error: Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead" >&5
13395 echo "$as_me: error: Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead" >&2;}
13396 { (exit 1); exit 1; }; }
13398 else
13399 { echo "$as_me:$LINENO: result: no" >&5
13400 echo "${ECHO_T}no" >&6; }
13403 { echo "$as_me:$LINENO: checking for dyld" >&5
13404 echo $ECHO_N "checking for dyld... $ECHO_C" >&6; }
13405 case $ac_sys_system/$ac_sys_release in
13406 Darwin/*)
13408 cat >>confdefs.h <<\_ACEOF
13409 #define WITH_DYLD 1
13410 _ACEOF
13412 { echo "$as_me:$LINENO: result: always on for Darwin" >&5
13413 echo "${ECHO_T}always on for Darwin" >&6; }
13416 { echo "$as_me:$LINENO: result: no" >&5
13417 echo "${ECHO_T}no" >&6; }
13419 esac
13421 # Set info about shared libraries.
13427 # SO is the extension of shared libraries `(including the dot!)
13428 # -- usually .so, .sl on HP-UX, .dll on Cygwin
13429 { echo "$as_me:$LINENO: checking SO" >&5
13430 echo $ECHO_N "checking SO... $ECHO_C" >&6; }
13431 if test -z "$SO"
13432 then
13433 case $ac_sys_system in
13434 hp*|HP*)
13435 case `uname -m` in
13436 ia64) SO=.so;;
13437 *) SO=.sl;;
13438 esac
13440 CYGWIN*) SO=.dll;;
13441 *) SO=.so;;
13442 esac
13443 else
13444 # this might also be a termcap variable, see #610332
13445 echo
13446 echo '====================================================================='
13447 echo '+ +'
13448 echo '+ WARNING: You have set SO in your environment. +'
13449 echo '+ Do you really mean to change the extension for shared libraries? +'
13450 echo '+ Continuing in 10 seconds to let you to ponder. +'
13451 echo '+ +'
13452 echo '====================================================================='
13453 sleep 10
13455 { echo "$as_me:$LINENO: result: $SO" >&5
13456 echo "${ECHO_T}$SO" >&6; }
13459 cat >>confdefs.h <<_ACEOF
13460 #define SHLIB_EXT "$SO"
13461 _ACEOF
13463 # LDSHARED is the ld *command* used to create shared library
13464 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
13465 # (Shared libraries in this instance are shared modules to be loaded into
13466 # Python, as opposed to building Python itself as a shared library.)
13467 { echo "$as_me:$LINENO: checking LDSHARED" >&5
13468 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6; }
13469 if test -z "$LDSHARED"
13470 then
13471 case $ac_sys_system/$ac_sys_release in
13472 AIX*)
13473 BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
13474 LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
13476 IRIX/5*) LDSHARED="ld -shared";;
13477 IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
13478 SunOS/5*)
13479 if test "$GCC" = "yes"
13480 then LDSHARED='$(CC) -shared'
13481 else LDSHARED='$(CC) -G';
13482 fi ;;
13483 hp*|HP*)
13484 if test "$GCC" = "yes"
13485 then LDSHARED='$(CC) -shared'
13486 else LDSHARED='ld -b';
13487 fi ;;
13488 OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
13489 Darwin/1.3*)
13490 LDSHARED='$(CC) $(LDFLAGS) -bundle'
13491 if test "$enable_framework" ; then
13492 # Link against the framework. All externals should be defined.
13493 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13494 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13495 else
13496 # No framework. Ignore undefined symbols, assuming they come from Python
13497 LDSHARED="$LDSHARED -undefined suppress"
13498 fi ;;
13499 Darwin/1.4*|Darwin/5.*|Darwin/6.*)
13500 LDSHARED='$(CC) $(LDFLAGS) -bundle'
13501 if test "$enable_framework" ; then
13502 # Link against the framework. All externals should be defined.
13503 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13504 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13505 else
13506 # No framework, use the Python app as bundle-loader
13507 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
13508 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
13509 fi ;;
13510 Darwin/*)
13511 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
13512 # This allows an extension to be used in any Python
13514 if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2
13515 then
13516 if test "${enable_universalsdk}"; then
13517 LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
13519 LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
13520 BLDSHARED="$LDSHARED"
13521 else
13522 LDSHARED='$(CC) $(LDFLAGS) -bundle'
13523 if test "$enable_framework" ; then
13524 # Link against the framework. All externals should be defined.
13525 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13526 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13527 else
13528 # No framework, use the Python app as bundle-loader
13529 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
13530 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
13534 Linux*|GNU*|QNX*) LDSHARED='$(CC) -shared';;
13535 BSD/OS*/4*) LDSHARED="gcc -shared";;
13536 FreeBSD*)
13537 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13538 then
13539 LDSHARED="$CC -shared ${LDFLAGS}"
13540 else
13541 LDSHARED="ld -Bshareable ${LDFLAGS}"
13542 fi;;
13543 OpenBSD*)
13544 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13545 then
13546 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
13547 else
13548 case `uname -r` in
13549 [01].* | 2.[0-7] | 2.[0-7].*)
13550 LDSHARED="ld -Bshareable ${LDFLAGS}"
13553 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
13555 esac
13556 fi;;
13557 NetBSD*|DragonFly*) LDSHARED="cc -shared ${LDFLAGS}";;
13558 OpenUNIX*|UnixWare*)
13559 if test "$GCC" = "yes"
13560 then LDSHARED='$(CC) -shared'
13561 else LDSHARED='$(CC) -G'
13562 fi;;
13563 SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';;
13564 CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";;
13565 atheos*) LDSHARED="gcc -shared";;
13566 *) LDSHARED="ld";;
13567 esac
13569 { echo "$as_me:$LINENO: result: $LDSHARED" >&5
13570 echo "${ECHO_T}$LDSHARED" >&6; }
13571 BLDSHARED=${BLDSHARED-$LDSHARED}
13572 # CCSHARED are the C *flags* used to create objects to go into a shared
13573 # library (module) -- this is only needed for a few systems
13574 { echo "$as_me:$LINENO: checking CCSHARED" >&5
13575 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6; }
13576 if test -z "$CCSHARED"
13577 then
13578 case $ac_sys_system/$ac_sys_release in
13579 SunOS*) if test "$GCC" = yes;
13580 then CCSHARED="-fPIC";
13581 elif test `uname -p` = sparc;
13582 then CCSHARED="-xcode=pic32";
13583 else CCSHARED="-Kpic";
13584 fi;;
13585 hp*|HP*) if test "$GCC" = yes;
13586 then CCSHARED="-fPIC";
13587 else CCSHARED="+z";
13588 fi;;
13589 Linux*|GNU*) CCSHARED="-fPIC";;
13590 BSD/OS*/4*) CCSHARED="-fpic";;
13591 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";;
13592 OpenUNIX*|UnixWare*)
13593 if test "$GCC" = "yes"
13594 then CCSHARED="-fPIC"
13595 else CCSHARED="-KPIC"
13596 fi;;
13597 SCO_SV*)
13598 if test "$GCC" = "yes"
13599 then CCSHARED="-fPIC"
13600 else CCSHARED="-Kpic -belf"
13601 fi;;
13602 IRIX*/6*) case $CC in
13603 *gcc*) CCSHARED="-shared";;
13604 *) CCSHARED="";;
13605 esac;;
13606 atheos*) CCSHARED="-fPIC";;
13607 esac
13609 { echo "$as_me:$LINENO: result: $CCSHARED" >&5
13610 echo "${ECHO_T}$CCSHARED" >&6; }
13611 # LINKFORSHARED are the flags passed to the $(CC) command that links
13612 # the python executable -- this is only needed for a few systems
13613 { echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
13614 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6; }
13615 if test -z "$LINKFORSHARED"
13616 then
13617 case $ac_sys_system/$ac_sys_release in
13618 AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';;
13619 hp*|HP*)
13620 LINKFORSHARED="-Wl,-E -Wl,+s";;
13621 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
13622 BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
13623 Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
13624 # -u libsys_s pulls in all symbols in libsys
13625 Darwin/*)
13626 LINKFORSHARED="$extra_undefs -framework CoreFoundation"
13627 if test "$enable_framework"
13628 then
13629 LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13631 LINKFORSHARED="$LINKFORSHARED";;
13632 OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
13633 SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
13634 ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
13635 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*)
13636 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13637 then
13638 LINKFORSHARED="-Wl,--export-dynamic"
13639 fi;;
13640 SunOS/5*) case $CC in
13641 *gcc*)
13642 if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
13643 then
13644 LINKFORSHARED="-Xlinker --export-dynamic"
13645 fi;;
13646 esac;;
13647 CYGWIN*)
13648 if test $enable_shared = "no"
13649 then
13650 LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)'
13651 fi;;
13652 QNX*)
13653 # -Wl,-E causes the symbols to be added to the dynamic
13654 # symbol table so that they can be found when a module
13655 # is loaded. -N 2048K causes the stack size to be set
13656 # to 2048 kilobytes so that the stack doesn't overflow
13657 # when running test_compile.py.
13658 LINKFORSHARED='-Wl,-E -N 2048K';;
13659 esac
13661 { echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
13662 echo "${ECHO_T}$LINKFORSHARED" >&6; }
13666 { echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
13667 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6; }
13668 if test ! "$LIBRARY" = "$LDLIBRARY"
13669 then
13670 case $ac_sys_system in
13671 CYGWIN*)
13672 # Cygwin needs CCSHARED when building extension DLLs
13673 # but not when building the interpreter DLL.
13674 CFLAGSFORSHARED='';;
13676 CFLAGSFORSHARED='$(CCSHARED)'
13677 esac
13679 { echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
13680 echo "${ECHO_T}$CFLAGSFORSHARED" >&6; }
13682 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
13683 # library (with --enable-shared).
13684 # For platforms on which shared libraries are not allowed to have unresolved
13685 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
13686 # if it is not required, since it creates a dependency of the shared library
13687 # to LIBS. This, in turn, means that applications linking the shared libpython
13688 # don't need to link LIBS explicitly. The default should be only changed
13689 # on systems where this approach causes problems.
13691 { echo "$as_me:$LINENO: checking SHLIBS" >&5
13692 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6; }
13693 case "$ac_sys_system" in
13695 SHLIBS='$(LIBS)';;
13696 esac
13697 { echo "$as_me:$LINENO: result: $SHLIBS" >&5
13698 echo "${ECHO_T}$SHLIBS" >&6; }
13701 # checks for libraries
13703 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13704 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
13705 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13706 echo $ECHO_N "(cached) $ECHO_C" >&6
13707 else
13708 ac_check_lib_save_LIBS=$LIBS
13709 LIBS="-ldl $LIBS"
13710 cat >conftest.$ac_ext <<_ACEOF
13711 /* confdefs.h. */
13712 _ACEOF
13713 cat confdefs.h >>conftest.$ac_ext
13714 cat >>conftest.$ac_ext <<_ACEOF
13715 /* end confdefs.h. */
13717 /* Override any GCC internal prototype to avoid an error.
13718 Use char because int might match the return type of a GCC
13719 builtin and then its argument prototype would still apply. */
13720 #ifdef __cplusplus
13721 extern "C"
13722 #endif
13723 char dlopen ();
13725 main ()
13727 return dlopen ();
13729 return 0;
13731 _ACEOF
13732 rm -f conftest.$ac_objext conftest$ac_exeext
13733 if { (ac_try="$ac_link"
13734 case "(($ac_try" in
13735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13736 *) ac_try_echo=$ac_try;;
13737 esac
13738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13739 (eval "$ac_link") 2>conftest.er1
13740 ac_status=$?
13741 grep -v '^ *+' conftest.er1 >conftest.err
13742 rm -f conftest.er1
13743 cat conftest.err >&5
13744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13745 (exit $ac_status); } && {
13746 test -z "$ac_c_werror_flag" ||
13747 test ! -s conftest.err
13748 } && test -s conftest$ac_exeext &&
13749 $as_test_x conftest$ac_exeext; then
13750 ac_cv_lib_dl_dlopen=yes
13751 else
13752 echo "$as_me: failed program was:" >&5
13753 sed 's/^/| /' conftest.$ac_ext >&5
13755 ac_cv_lib_dl_dlopen=no
13758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13759 conftest$ac_exeext conftest.$ac_ext
13760 LIBS=$ac_check_lib_save_LIBS
13762 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13763 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
13764 if test $ac_cv_lib_dl_dlopen = yes; then
13765 cat >>confdefs.h <<_ACEOF
13766 #define HAVE_LIBDL 1
13767 _ACEOF
13769 LIBS="-ldl $LIBS"
13772 # Dynamic linking for SunOS/Solaris and SYSV
13774 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13775 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
13776 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13777 echo $ECHO_N "(cached) $ECHO_C" >&6
13778 else
13779 ac_check_lib_save_LIBS=$LIBS
13780 LIBS="-ldld $LIBS"
13781 cat >conftest.$ac_ext <<_ACEOF
13782 /* confdefs.h. */
13783 _ACEOF
13784 cat confdefs.h >>conftest.$ac_ext
13785 cat >>conftest.$ac_ext <<_ACEOF
13786 /* end confdefs.h. */
13788 /* Override any GCC internal prototype to avoid an error.
13789 Use char because int might match the return type of a GCC
13790 builtin and then its argument prototype would still apply. */
13791 #ifdef __cplusplus
13792 extern "C"
13793 #endif
13794 char shl_load ();
13796 main ()
13798 return shl_load ();
13800 return 0;
13802 _ACEOF
13803 rm -f conftest.$ac_objext conftest$ac_exeext
13804 if { (ac_try="$ac_link"
13805 case "(($ac_try" in
13806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13807 *) ac_try_echo=$ac_try;;
13808 esac
13809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13810 (eval "$ac_link") 2>conftest.er1
13811 ac_status=$?
13812 grep -v '^ *+' conftest.er1 >conftest.err
13813 rm -f conftest.er1
13814 cat conftest.err >&5
13815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13816 (exit $ac_status); } && {
13817 test -z "$ac_c_werror_flag" ||
13818 test ! -s conftest.err
13819 } && test -s conftest$ac_exeext &&
13820 $as_test_x conftest$ac_exeext; then
13821 ac_cv_lib_dld_shl_load=yes
13822 else
13823 echo "$as_me: failed program was:" >&5
13824 sed 's/^/| /' conftest.$ac_ext >&5
13826 ac_cv_lib_dld_shl_load=no
13829 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13830 conftest$ac_exeext conftest.$ac_ext
13831 LIBS=$ac_check_lib_save_LIBS
13833 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13834 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
13835 if test $ac_cv_lib_dld_shl_load = yes; then
13836 cat >>confdefs.h <<_ACEOF
13837 #define HAVE_LIBDLD 1
13838 _ACEOF
13840 LIBS="-ldld $LIBS"
13843 # Dynamic linking for HP-UX
13845 # only check for sem_init if thread support is requested
13846 if test "$with_threads" = "yes" -o -z "$with_threads"; then
13847 { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
13848 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
13849 if test "${ac_cv_search_sem_init+set}" = set; then
13850 echo $ECHO_N "(cached) $ECHO_C" >&6
13851 else
13852 ac_func_search_save_LIBS=$LIBS
13853 cat >conftest.$ac_ext <<_ACEOF
13854 /* confdefs.h. */
13855 _ACEOF
13856 cat confdefs.h >>conftest.$ac_ext
13857 cat >>conftest.$ac_ext <<_ACEOF
13858 /* end confdefs.h. */
13860 /* Override any GCC internal prototype to avoid an error.
13861 Use char because int might match the return type of a GCC
13862 builtin and then its argument prototype would still apply. */
13863 #ifdef __cplusplus
13864 extern "C"
13865 #endif
13866 char sem_init ();
13868 main ()
13870 return sem_init ();
13872 return 0;
13874 _ACEOF
13875 for ac_lib in '' pthread rt posix4; do
13876 if test -z "$ac_lib"; then
13877 ac_res="none required"
13878 else
13879 ac_res=-l$ac_lib
13880 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13882 rm -f conftest.$ac_objext conftest$ac_exeext
13883 if { (ac_try="$ac_link"
13884 case "(($ac_try" in
13885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13886 *) ac_try_echo=$ac_try;;
13887 esac
13888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13889 (eval "$ac_link") 2>conftest.er1
13890 ac_status=$?
13891 grep -v '^ *+' conftest.er1 >conftest.err
13892 rm -f conftest.er1
13893 cat conftest.err >&5
13894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13895 (exit $ac_status); } && {
13896 test -z "$ac_c_werror_flag" ||
13897 test ! -s conftest.err
13898 } && test -s conftest$ac_exeext &&
13899 $as_test_x conftest$ac_exeext; then
13900 ac_cv_search_sem_init=$ac_res
13901 else
13902 echo "$as_me: failed program was:" >&5
13903 sed 's/^/| /' conftest.$ac_ext >&5
13908 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13909 conftest$ac_exeext
13910 if test "${ac_cv_search_sem_init+set}" = set; then
13911 break
13913 done
13914 if test "${ac_cv_search_sem_init+set}" = set; then
13916 else
13917 ac_cv_search_sem_init=no
13919 rm conftest.$ac_ext
13920 LIBS=$ac_func_search_save_LIBS
13922 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
13923 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
13924 ac_res=$ac_cv_search_sem_init
13925 if test "$ac_res" != no; then
13926 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13929 # 'Real Time' functions on Solaris
13930 # posix4 on Solaris 2.6
13931 # pthread (first!) on Linux
13934 # check if we need libintl for locale functions
13935 { echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
13936 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6; }
13937 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
13938 echo $ECHO_N "(cached) $ECHO_C" >&6
13939 else
13940 ac_check_lib_save_LIBS=$LIBS
13941 LIBS="-lintl $LIBS"
13942 cat >conftest.$ac_ext <<_ACEOF
13943 /* confdefs.h. */
13944 _ACEOF
13945 cat confdefs.h >>conftest.$ac_ext
13946 cat >>conftest.$ac_ext <<_ACEOF
13947 /* end confdefs.h. */
13949 /* Override any GCC internal prototype to avoid an error.
13950 Use char because int might match the return type of a GCC
13951 builtin and then its argument prototype would still apply. */
13952 #ifdef __cplusplus
13953 extern "C"
13954 #endif
13955 char textdomain ();
13957 main ()
13959 return textdomain ();
13961 return 0;
13963 _ACEOF
13964 rm -f conftest.$ac_objext conftest$ac_exeext
13965 if { (ac_try="$ac_link"
13966 case "(($ac_try" in
13967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13968 *) ac_try_echo=$ac_try;;
13969 esac
13970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13971 (eval "$ac_link") 2>conftest.er1
13972 ac_status=$?
13973 grep -v '^ *+' conftest.er1 >conftest.err
13974 rm -f conftest.er1
13975 cat conftest.err >&5
13976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977 (exit $ac_status); } && {
13978 test -z "$ac_c_werror_flag" ||
13979 test ! -s conftest.err
13980 } && test -s conftest$ac_exeext &&
13981 $as_test_x conftest$ac_exeext; then
13982 ac_cv_lib_intl_textdomain=yes
13983 else
13984 echo "$as_me: failed program was:" >&5
13985 sed 's/^/| /' conftest.$ac_ext >&5
13987 ac_cv_lib_intl_textdomain=no
13990 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13991 conftest$ac_exeext conftest.$ac_ext
13992 LIBS=$ac_check_lib_save_LIBS
13994 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
13995 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6; }
13996 if test $ac_cv_lib_intl_textdomain = yes; then
13998 cat >>confdefs.h <<\_ACEOF
13999 #define WITH_LIBINTL 1
14000 _ACEOF
14002 LIBS="-lintl $LIBS"
14006 # checks for system dependent C++ extensions support
14007 case "$ac_sys_system" in
14008 AIX*) { echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
14009 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6; }
14010 cat >conftest.$ac_ext <<_ACEOF
14011 /* confdefs.h. */
14012 _ACEOF
14013 cat confdefs.h >>conftest.$ac_ext
14014 cat >>conftest.$ac_ext <<_ACEOF
14015 /* end confdefs.h. */
14016 #include "/usr/lpp/xlC/include/load.h"
14018 main ()
14020 loadAndInit("", 0, "")
14022 return 0;
14024 _ACEOF
14025 rm -f conftest.$ac_objext conftest$ac_exeext
14026 if { (ac_try="$ac_link"
14027 case "(($ac_try" in
14028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14029 *) ac_try_echo=$ac_try;;
14030 esac
14031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14032 (eval "$ac_link") 2>conftest.er1
14033 ac_status=$?
14034 grep -v '^ *+' conftest.er1 >conftest.err
14035 rm -f conftest.er1
14036 cat conftest.err >&5
14037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14038 (exit $ac_status); } && {
14039 test -z "$ac_c_werror_flag" ||
14040 test ! -s conftest.err
14041 } && test -s conftest$ac_exeext &&
14042 $as_test_x conftest$ac_exeext; then
14044 cat >>confdefs.h <<\_ACEOF
14045 #define AIX_GENUINE_CPLUSPLUS 1
14046 _ACEOF
14048 { echo "$as_me:$LINENO: result: yes" >&5
14049 echo "${ECHO_T}yes" >&6; }
14050 else
14051 echo "$as_me: failed program was:" >&5
14052 sed 's/^/| /' conftest.$ac_ext >&5
14054 { echo "$as_me:$LINENO: result: no" >&5
14055 echo "${ECHO_T}no" >&6; }
14058 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14059 conftest$ac_exeext conftest.$ac_ext;;
14060 *) ;;
14061 esac
14063 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
14064 { echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
14065 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6; }
14066 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
14067 echo $ECHO_N "(cached) $ECHO_C" >&6
14068 else
14069 ac_check_lib_save_LIBS=$LIBS
14070 LIBS="-lnsl $LIBS"
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 /* Override any GCC internal prototype to avoid an error.
14079 Use char because int might match the return type of a GCC
14080 builtin and then its argument prototype would still apply. */
14081 #ifdef __cplusplus
14082 extern "C"
14083 #endif
14084 char t_open ();
14086 main ()
14088 return t_open ();
14090 return 0;
14092 _ACEOF
14093 rm -f conftest.$ac_objext conftest$ac_exeext
14094 if { (ac_try="$ac_link"
14095 case "(($ac_try" in
14096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14097 *) ac_try_echo=$ac_try;;
14098 esac
14099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14100 (eval "$ac_link") 2>conftest.er1
14101 ac_status=$?
14102 grep -v '^ *+' conftest.er1 >conftest.err
14103 rm -f conftest.er1
14104 cat conftest.err >&5
14105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14106 (exit $ac_status); } && {
14107 test -z "$ac_c_werror_flag" ||
14108 test ! -s conftest.err
14109 } && test -s conftest$ac_exeext &&
14110 $as_test_x conftest$ac_exeext; then
14111 ac_cv_lib_nsl_t_open=yes
14112 else
14113 echo "$as_me: failed program was:" >&5
14114 sed 's/^/| /' conftest.$ac_ext >&5
14116 ac_cv_lib_nsl_t_open=no
14119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14120 conftest$ac_exeext conftest.$ac_ext
14121 LIBS=$ac_check_lib_save_LIBS
14123 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
14124 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6; }
14125 if test $ac_cv_lib_nsl_t_open = yes; then
14126 LIBS="-lnsl $LIBS"
14128 # SVR4
14129 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
14130 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
14131 if test "${ac_cv_lib_socket_socket+set}" = set; then
14132 echo $ECHO_N "(cached) $ECHO_C" >&6
14133 else
14134 ac_check_lib_save_LIBS=$LIBS
14135 LIBS="-lsocket $LIBS $LIBS"
14136 cat >conftest.$ac_ext <<_ACEOF
14137 /* confdefs.h. */
14138 _ACEOF
14139 cat confdefs.h >>conftest.$ac_ext
14140 cat >>conftest.$ac_ext <<_ACEOF
14141 /* end confdefs.h. */
14143 /* Override any GCC internal prototype to avoid an error.
14144 Use char because int might match the return type of a GCC
14145 builtin and then its argument prototype would still apply. */
14146 #ifdef __cplusplus
14147 extern "C"
14148 #endif
14149 char socket ();
14151 main ()
14153 return socket ();
14155 return 0;
14157 _ACEOF
14158 rm -f conftest.$ac_objext conftest$ac_exeext
14159 if { (ac_try="$ac_link"
14160 case "(($ac_try" in
14161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14162 *) ac_try_echo=$ac_try;;
14163 esac
14164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14165 (eval "$ac_link") 2>conftest.er1
14166 ac_status=$?
14167 grep -v '^ *+' conftest.er1 >conftest.err
14168 rm -f conftest.er1
14169 cat conftest.err >&5
14170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14171 (exit $ac_status); } && {
14172 test -z "$ac_c_werror_flag" ||
14173 test ! -s conftest.err
14174 } && test -s conftest$ac_exeext &&
14175 $as_test_x conftest$ac_exeext; then
14176 ac_cv_lib_socket_socket=yes
14177 else
14178 echo "$as_me: failed program was:" >&5
14179 sed 's/^/| /' conftest.$ac_ext >&5
14181 ac_cv_lib_socket_socket=no
14184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14185 conftest$ac_exeext conftest.$ac_ext
14186 LIBS=$ac_check_lib_save_LIBS
14188 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
14189 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
14190 if test $ac_cv_lib_socket_socket = yes; then
14191 LIBS="-lsocket $LIBS"
14193 # SVR4 sockets
14195 { echo "$as_me:$LINENO: checking for --with-libs" >&5
14196 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6; }
14198 # Check whether --with-libs was given.
14199 if test "${with_libs+set}" = set; then
14200 withval=$with_libs;
14201 { echo "$as_me:$LINENO: result: $withval" >&5
14202 echo "${ECHO_T}$withval" >&6; }
14203 LIBS="$withval $LIBS"
14205 else
14206 { echo "$as_me:$LINENO: result: no" >&5
14207 echo "${ECHO_T}no" >&6; }
14211 # Check for use of the system libffi library
14212 { echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
14213 echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6; }
14215 # Check whether --with-system_ffi was given.
14216 if test "${with_system_ffi+set}" = set; then
14217 withval=$with_system_ffi;
14221 { echo "$as_me:$LINENO: result: $with_system_ffi" >&5
14222 echo "${ECHO_T}$with_system_ffi" >&6; }
14224 # Check for --with-dbmliborder
14225 { echo "$as_me:$LINENO: checking for --with-dbmliborder" >&5
14226 echo $ECHO_N "checking for --with-dbmliborder... $ECHO_C" >&6; }
14228 # Check whether --with-dbmliborder was given.
14229 if test "${with_dbmliborder+set}" = set; then
14230 withval=$with_dbmliborder;
14231 if test x$with_dbmliborder = xyes
14232 then
14233 { { echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5
14234 echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;}
14235 { (exit 1); exit 1; }; }
14236 else
14237 for db in `echo $with_dbmliborder | sed 's/:/ /g'`; do
14238 if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb
14239 then
14240 { { echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5
14241 echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;}
14242 { (exit 1); exit 1; }; }
14244 done
14248 { echo "$as_me:$LINENO: result: $with_dbmliborder" >&5
14249 echo "${ECHO_T}$with_dbmliborder" >&6; }
14251 # Determine if signalmodule should be used.
14254 { echo "$as_me:$LINENO: checking for --with-signal-module" >&5
14255 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6; }
14257 # Check whether --with-signal-module was given.
14258 if test "${with_signal_module+set}" = set; then
14259 withval=$with_signal_module;
14263 if test -z "$with_signal_module"
14264 then with_signal_module="yes"
14266 { echo "$as_me:$LINENO: result: $with_signal_module" >&5
14267 echo "${ECHO_T}$with_signal_module" >&6; }
14269 if test "${with_signal_module}" = "yes"; then
14270 USE_SIGNAL_MODULE=""
14271 SIGNAL_OBJS=""
14272 else
14273 USE_SIGNAL_MODULE="#"
14274 SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o"
14277 # This is used to generate Setup.config
14279 USE_THREAD_MODULE=""
14281 { echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
14282 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6; }
14285 # Check whether --with-dec-threads was given.
14286 if test "${with_dec_threads+set}" = set; then
14287 withval=$with_dec_threads;
14288 { echo "$as_me:$LINENO: result: $withval" >&5
14289 echo "${ECHO_T}$withval" >&6; }
14290 LDLAST=-threads
14291 if test "${with_thread+set}" != set; then
14292 with_thread="$withval";
14294 else
14295 { echo "$as_me:$LINENO: result: no" >&5
14296 echo "${ECHO_T}no" >&6; }
14300 # Templates for things AC_DEFINEd more than once.
14301 # For a single AC_DEFINE, no template is needed.
14309 { echo "$as_me:$LINENO: checking for --with-threads" >&5
14310 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6; }
14312 # Check whether --with-threads was given.
14313 if test "${with_threads+set}" = set; then
14314 withval=$with_threads;
14318 # --with-thread is deprecated, but check for it anyway
14320 # Check whether --with-thread was given.
14321 if test "${with_thread+set}" = set; then
14322 withval=$with_thread; with_threads=$with_thread
14326 if test -z "$with_threads"
14327 then with_threads="yes"
14329 { echo "$as_me:$LINENO: result: $with_threads" >&5
14330 echo "${ECHO_T}$with_threads" >&6; }
14333 if test "$with_threads" = "no"
14334 then
14335 USE_THREAD_MODULE="#"
14336 elif test "$ac_cv_pthread_is_default" = yes
14337 then
14338 cat >>confdefs.h <<\_ACEOF
14339 #define WITH_THREAD 1
14340 _ACEOF
14342 # Defining _REENTRANT on system with POSIX threads should not hurt.
14343 cat >>confdefs.h <<\_ACEOF
14344 #define _REENTRANT 1
14345 _ACEOF
14347 posix_threads=yes
14348 THREADOBJ="Python/thread.o"
14349 elif test "$ac_cv_kpthread" = "yes"
14350 then
14351 CC="$CC -Kpthread"
14352 if test "$ac_cv_cxx_thread" = "yes"; then
14353 CXX="$CXX -Kpthread"
14355 cat >>confdefs.h <<\_ACEOF
14356 #define WITH_THREAD 1
14357 _ACEOF
14359 posix_threads=yes
14360 THREADOBJ="Python/thread.o"
14361 elif test "$ac_cv_kthread" = "yes"
14362 then
14363 CC="$CC -Kthread"
14364 if test "$ac_cv_cxx_thread" = "yes"; then
14365 CXX="$CXX -Kthread"
14367 cat >>confdefs.h <<\_ACEOF
14368 #define WITH_THREAD 1
14369 _ACEOF
14371 posix_threads=yes
14372 THREADOBJ="Python/thread.o"
14373 elif test "$ac_cv_pthread" = "yes"
14374 then
14375 CC="$CC -pthread"
14376 if test "$ac_cv_cxx_thread" = "yes"; then
14377 CXX="$CXX -pthread"
14379 cat >>confdefs.h <<\_ACEOF
14380 #define WITH_THREAD 1
14381 _ACEOF
14383 posix_threads=yes
14384 THREADOBJ="Python/thread.o"
14385 else
14386 if test ! -z "$with_threads" -a -d "$with_threads"
14387 then LDFLAGS="$LDFLAGS -L$with_threads"
14389 if test ! -z "$withval" -a -d "$withval"
14390 then LDFLAGS="$LDFLAGS -L$withval"
14393 # According to the POSIX spec, a pthreads implementation must
14394 # define _POSIX_THREADS in unistd.h. Some apparently don't
14395 # (e.g. gnu pth with pthread emulation)
14396 { echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
14397 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6; }
14398 cat >conftest.$ac_ext <<_ACEOF
14399 /* confdefs.h. */
14400 _ACEOF
14401 cat confdefs.h >>conftest.$ac_ext
14402 cat >>conftest.$ac_ext <<_ACEOF
14403 /* end confdefs.h. */
14405 #include <unistd.h>
14406 #ifdef _POSIX_THREADS
14408 #endif
14410 _ACEOF
14411 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14412 $EGREP "yes" >/dev/null 2>&1; then
14413 unistd_defines_pthreads=yes
14414 else
14415 unistd_defines_pthreads=no
14417 rm -f conftest*
14419 { echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
14420 echo "${ECHO_T}$unistd_defines_pthreads" >&6; }
14422 cat >>confdefs.h <<\_ACEOF
14423 #define _REENTRANT 1
14424 _ACEOF
14426 if test "${ac_cv_header_cthreads_h+set}" = set; then
14427 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
14428 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
14429 if test "${ac_cv_header_cthreads_h+set}" = set; then
14430 echo $ECHO_N "(cached) $ECHO_C" >&6
14432 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
14433 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
14434 else
14435 # Is the header compilable?
14436 { echo "$as_me:$LINENO: checking cthreads.h usability" >&5
14437 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6; }
14438 cat >conftest.$ac_ext <<_ACEOF
14439 /* confdefs.h. */
14440 _ACEOF
14441 cat confdefs.h >>conftest.$ac_ext
14442 cat >>conftest.$ac_ext <<_ACEOF
14443 /* end confdefs.h. */
14444 $ac_includes_default
14445 #include <cthreads.h>
14446 _ACEOF
14447 rm -f conftest.$ac_objext
14448 if { (ac_try="$ac_compile"
14449 case "(($ac_try" in
14450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14451 *) ac_try_echo=$ac_try;;
14452 esac
14453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14454 (eval "$ac_compile") 2>conftest.er1
14455 ac_status=$?
14456 grep -v '^ *+' conftest.er1 >conftest.err
14457 rm -f conftest.er1
14458 cat conftest.err >&5
14459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14460 (exit $ac_status); } && {
14461 test -z "$ac_c_werror_flag" ||
14462 test ! -s conftest.err
14463 } && test -s conftest.$ac_objext; then
14464 ac_header_compiler=yes
14465 else
14466 echo "$as_me: failed program was:" >&5
14467 sed 's/^/| /' conftest.$ac_ext >&5
14469 ac_header_compiler=no
14472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14473 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14474 echo "${ECHO_T}$ac_header_compiler" >&6; }
14476 # Is the header present?
14477 { echo "$as_me:$LINENO: checking cthreads.h presence" >&5
14478 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6; }
14479 cat >conftest.$ac_ext <<_ACEOF
14480 /* confdefs.h. */
14481 _ACEOF
14482 cat confdefs.h >>conftest.$ac_ext
14483 cat >>conftest.$ac_ext <<_ACEOF
14484 /* end confdefs.h. */
14485 #include <cthreads.h>
14486 _ACEOF
14487 if { (ac_try="$ac_cpp conftest.$ac_ext"
14488 case "(($ac_try" in
14489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14490 *) ac_try_echo=$ac_try;;
14491 esac
14492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14493 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14494 ac_status=$?
14495 grep -v '^ *+' conftest.er1 >conftest.err
14496 rm -f conftest.er1
14497 cat conftest.err >&5
14498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14499 (exit $ac_status); } >/dev/null && {
14500 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14501 test ! -s conftest.err
14502 }; then
14503 ac_header_preproc=yes
14504 else
14505 echo "$as_me: failed program was:" >&5
14506 sed 's/^/| /' conftest.$ac_ext >&5
14508 ac_header_preproc=no
14511 rm -f conftest.err conftest.$ac_ext
14512 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14513 echo "${ECHO_T}$ac_header_preproc" >&6; }
14515 # So? What about this header?
14516 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14517 yes:no: )
14518 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14519 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14520 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
14521 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
14522 ac_header_preproc=yes
14524 no:yes:* )
14525 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
14526 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
14527 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
14528 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
14529 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
14530 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
14531 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
14532 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
14533 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
14534 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
14535 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
14536 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
14537 ( cat <<\_ASBOX
14538 ## -------------------------------------- ##
14539 ## Report this to http://bugs.python.org/ ##
14540 ## -------------------------------------- ##
14541 _ASBOX
14542 ) | sed "s/^/$as_me: WARNING: /" >&2
14544 esac
14545 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
14546 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
14547 if test "${ac_cv_header_cthreads_h+set}" = set; then
14548 echo $ECHO_N "(cached) $ECHO_C" >&6
14549 else
14550 ac_cv_header_cthreads_h=$ac_header_preproc
14552 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
14553 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
14556 if test $ac_cv_header_cthreads_h = yes; then
14557 cat >>confdefs.h <<\_ACEOF
14558 #define WITH_THREAD 1
14559 _ACEOF
14561 cat >>confdefs.h <<\_ACEOF
14562 #define C_THREADS 1
14563 _ACEOF
14566 cat >>confdefs.h <<\_ACEOF
14567 #define HURD_C_THREADS 1
14568 _ACEOF
14570 LIBS="$LIBS -lthreads"
14571 THREADOBJ="Python/thread.o"
14572 else
14574 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14575 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
14576 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
14577 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14578 echo $ECHO_N "(cached) $ECHO_C" >&6
14580 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
14581 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
14582 else
14583 # Is the header compilable?
14584 { echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
14585 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6; }
14586 cat >conftest.$ac_ext <<_ACEOF
14587 /* confdefs.h. */
14588 _ACEOF
14589 cat confdefs.h >>conftest.$ac_ext
14590 cat >>conftest.$ac_ext <<_ACEOF
14591 /* end confdefs.h. */
14592 $ac_includes_default
14593 #include <mach/cthreads.h>
14594 _ACEOF
14595 rm -f conftest.$ac_objext
14596 if { (ac_try="$ac_compile"
14597 case "(($ac_try" in
14598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14599 *) ac_try_echo=$ac_try;;
14600 esac
14601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14602 (eval "$ac_compile") 2>conftest.er1
14603 ac_status=$?
14604 grep -v '^ *+' conftest.er1 >conftest.err
14605 rm -f conftest.er1
14606 cat conftest.err >&5
14607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14608 (exit $ac_status); } && {
14609 test -z "$ac_c_werror_flag" ||
14610 test ! -s conftest.err
14611 } && test -s conftest.$ac_objext; then
14612 ac_header_compiler=yes
14613 else
14614 echo "$as_me: failed program was:" >&5
14615 sed 's/^/| /' conftest.$ac_ext >&5
14617 ac_header_compiler=no
14620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14621 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14622 echo "${ECHO_T}$ac_header_compiler" >&6; }
14624 # Is the header present?
14625 { echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
14626 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6; }
14627 cat >conftest.$ac_ext <<_ACEOF
14628 /* confdefs.h. */
14629 _ACEOF
14630 cat confdefs.h >>conftest.$ac_ext
14631 cat >>conftest.$ac_ext <<_ACEOF
14632 /* end confdefs.h. */
14633 #include <mach/cthreads.h>
14634 _ACEOF
14635 if { (ac_try="$ac_cpp conftest.$ac_ext"
14636 case "(($ac_try" in
14637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14638 *) ac_try_echo=$ac_try;;
14639 esac
14640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14641 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14642 ac_status=$?
14643 grep -v '^ *+' conftest.er1 >conftest.err
14644 rm -f conftest.er1
14645 cat conftest.err >&5
14646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14647 (exit $ac_status); } >/dev/null && {
14648 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14649 test ! -s conftest.err
14650 }; then
14651 ac_header_preproc=yes
14652 else
14653 echo "$as_me: failed program was:" >&5
14654 sed 's/^/| /' conftest.$ac_ext >&5
14656 ac_header_preproc=no
14659 rm -f conftest.err conftest.$ac_ext
14660 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14661 echo "${ECHO_T}$ac_header_preproc" >&6; }
14663 # So? What about this header?
14664 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14665 yes:no: )
14666 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14667 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14668 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
14669 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
14670 ac_header_preproc=yes
14672 no:yes:* )
14673 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
14674 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
14675 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
14676 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
14677 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
14678 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
14679 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
14680 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
14681 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
14682 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
14683 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
14684 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
14685 ( cat <<\_ASBOX
14686 ## -------------------------------------- ##
14687 ## Report this to http://bugs.python.org/ ##
14688 ## -------------------------------------- ##
14689 _ASBOX
14690 ) | sed "s/^/$as_me: WARNING: /" >&2
14692 esac
14693 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
14694 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
14695 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14696 echo $ECHO_N "(cached) $ECHO_C" >&6
14697 else
14698 ac_cv_header_mach_cthreads_h=$ac_header_preproc
14700 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
14701 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
14704 if test $ac_cv_header_mach_cthreads_h = yes; then
14705 cat >>confdefs.h <<\_ACEOF
14706 #define WITH_THREAD 1
14707 _ACEOF
14709 cat >>confdefs.h <<\_ACEOF
14710 #define C_THREADS 1
14711 _ACEOF
14714 cat >>confdefs.h <<\_ACEOF
14715 #define MACH_C_THREADS 1
14716 _ACEOF
14718 THREADOBJ="Python/thread.o"
14719 else
14721 { echo "$as_me:$LINENO: checking for --with-pth" >&5
14722 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6; }
14724 # Check whether --with-pth was given.
14725 if test "${with_pth+set}" = set; then
14726 withval=$with_pth; { echo "$as_me:$LINENO: result: $withval" >&5
14727 echo "${ECHO_T}$withval" >&6; }
14728 cat >>confdefs.h <<\_ACEOF
14729 #define WITH_THREAD 1
14730 _ACEOF
14733 cat >>confdefs.h <<\_ACEOF
14734 #define HAVE_PTH 1
14735 _ACEOF
14737 LIBS="-lpth $LIBS"
14738 THREADOBJ="Python/thread.o"
14739 else
14740 { echo "$as_me:$LINENO: result: no" >&5
14741 echo "${ECHO_T}no" >&6; }
14743 # Just looking for pthread_create in libpthread is not enough:
14744 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
14745 # So we really have to include pthread.h, and then link.
14746 _libs=$LIBS
14747 LIBS="$LIBS -lpthread"
14748 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
14749 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
14750 cat >conftest.$ac_ext <<_ACEOF
14751 /* confdefs.h. */
14752 _ACEOF
14753 cat confdefs.h >>conftest.$ac_ext
14754 cat >>conftest.$ac_ext <<_ACEOF
14755 /* end confdefs.h. */
14756 #include <pthread.h>
14758 void * start_routine (void *arg) { exit (0); }
14760 main ()
14763 pthread_create (NULL, NULL, start_routine, NULL)
14765 return 0;
14767 _ACEOF
14768 rm -f conftest.$ac_objext conftest$ac_exeext
14769 if { (ac_try="$ac_link"
14770 case "(($ac_try" in
14771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14772 *) ac_try_echo=$ac_try;;
14773 esac
14774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14775 (eval "$ac_link") 2>conftest.er1
14776 ac_status=$?
14777 grep -v '^ *+' conftest.er1 >conftest.err
14778 rm -f conftest.er1
14779 cat conftest.err >&5
14780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14781 (exit $ac_status); } && {
14782 test -z "$ac_c_werror_flag" ||
14783 test ! -s conftest.err
14784 } && test -s conftest$ac_exeext &&
14785 $as_test_x conftest$ac_exeext; then
14787 { echo "$as_me:$LINENO: result: yes" >&5
14788 echo "${ECHO_T}yes" >&6; }
14789 cat >>confdefs.h <<\_ACEOF
14790 #define WITH_THREAD 1
14791 _ACEOF
14793 posix_threads=yes
14794 THREADOBJ="Python/thread.o"
14795 else
14796 echo "$as_me: failed program was:" >&5
14797 sed 's/^/| /' conftest.$ac_ext >&5
14800 LIBS=$_libs
14801 { echo "$as_me:$LINENO: checking for pthread_detach" >&5
14802 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6; }
14803 if test "${ac_cv_func_pthread_detach+set}" = set; then
14804 echo $ECHO_N "(cached) $ECHO_C" >&6
14805 else
14806 cat >conftest.$ac_ext <<_ACEOF
14807 /* confdefs.h. */
14808 _ACEOF
14809 cat confdefs.h >>conftest.$ac_ext
14810 cat >>conftest.$ac_ext <<_ACEOF
14811 /* end confdefs.h. */
14812 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
14813 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14814 #define pthread_detach innocuous_pthread_detach
14816 /* System header to define __stub macros and hopefully few prototypes,
14817 which can conflict with char pthread_detach (); below.
14818 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14819 <limits.h> exists even on freestanding compilers. */
14821 #ifdef __STDC__
14822 # include <limits.h>
14823 #else
14824 # include <assert.h>
14825 #endif
14827 #undef pthread_detach
14829 /* Override any GCC internal prototype to avoid an error.
14830 Use char because int might match the return type of a GCC
14831 builtin and then its argument prototype would still apply. */
14832 #ifdef __cplusplus
14833 extern "C"
14834 #endif
14835 char pthread_detach ();
14836 /* The GNU C library defines this for functions which it implements
14837 to always fail with ENOSYS. Some functions are actually named
14838 something starting with __ and the normal name is an alias. */
14839 #if defined __stub_pthread_detach || defined __stub___pthread_detach
14840 choke me
14841 #endif
14844 main ()
14846 return pthread_detach ();
14848 return 0;
14850 _ACEOF
14851 rm -f conftest.$ac_objext conftest$ac_exeext
14852 if { (ac_try="$ac_link"
14853 case "(($ac_try" in
14854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14855 *) ac_try_echo=$ac_try;;
14856 esac
14857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14858 (eval "$ac_link") 2>conftest.er1
14859 ac_status=$?
14860 grep -v '^ *+' conftest.er1 >conftest.err
14861 rm -f conftest.er1
14862 cat conftest.err >&5
14863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14864 (exit $ac_status); } && {
14865 test -z "$ac_c_werror_flag" ||
14866 test ! -s conftest.err
14867 } && test -s conftest$ac_exeext &&
14868 $as_test_x conftest$ac_exeext; then
14869 ac_cv_func_pthread_detach=yes
14870 else
14871 echo "$as_me: failed program was:" >&5
14872 sed 's/^/| /' conftest.$ac_ext >&5
14874 ac_cv_func_pthread_detach=no
14877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14878 conftest$ac_exeext conftest.$ac_ext
14880 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
14881 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6; }
14882 if test $ac_cv_func_pthread_detach = yes; then
14883 cat >>confdefs.h <<\_ACEOF
14884 #define WITH_THREAD 1
14885 _ACEOF
14887 posix_threads=yes
14888 THREADOBJ="Python/thread.o"
14889 else
14891 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14892 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
14893 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
14894 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14895 echo $ECHO_N "(cached) $ECHO_C" >&6
14897 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
14898 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
14899 else
14900 # Is the header compilable?
14901 { echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
14902 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6; }
14903 cat >conftest.$ac_ext <<_ACEOF
14904 /* confdefs.h. */
14905 _ACEOF
14906 cat confdefs.h >>conftest.$ac_ext
14907 cat >>conftest.$ac_ext <<_ACEOF
14908 /* end confdefs.h. */
14909 $ac_includes_default
14910 #include <atheos/threads.h>
14911 _ACEOF
14912 rm -f conftest.$ac_objext
14913 if { (ac_try="$ac_compile"
14914 case "(($ac_try" in
14915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14916 *) ac_try_echo=$ac_try;;
14917 esac
14918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14919 (eval "$ac_compile") 2>conftest.er1
14920 ac_status=$?
14921 grep -v '^ *+' conftest.er1 >conftest.err
14922 rm -f conftest.er1
14923 cat conftest.err >&5
14924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14925 (exit $ac_status); } && {
14926 test -z "$ac_c_werror_flag" ||
14927 test ! -s conftest.err
14928 } && test -s conftest.$ac_objext; then
14929 ac_header_compiler=yes
14930 else
14931 echo "$as_me: failed program was:" >&5
14932 sed 's/^/| /' conftest.$ac_ext >&5
14934 ac_header_compiler=no
14937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14938 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14939 echo "${ECHO_T}$ac_header_compiler" >&6; }
14941 # Is the header present?
14942 { echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
14943 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6; }
14944 cat >conftest.$ac_ext <<_ACEOF
14945 /* confdefs.h. */
14946 _ACEOF
14947 cat confdefs.h >>conftest.$ac_ext
14948 cat >>conftest.$ac_ext <<_ACEOF
14949 /* end confdefs.h. */
14950 #include <atheos/threads.h>
14951 _ACEOF
14952 if { (ac_try="$ac_cpp conftest.$ac_ext"
14953 case "(($ac_try" in
14954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14955 *) ac_try_echo=$ac_try;;
14956 esac
14957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14958 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14959 ac_status=$?
14960 grep -v '^ *+' conftest.er1 >conftest.err
14961 rm -f conftest.er1
14962 cat conftest.err >&5
14963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14964 (exit $ac_status); } >/dev/null && {
14965 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14966 test ! -s conftest.err
14967 }; then
14968 ac_header_preproc=yes
14969 else
14970 echo "$as_me: failed program was:" >&5
14971 sed 's/^/| /' conftest.$ac_ext >&5
14973 ac_header_preproc=no
14976 rm -f conftest.err conftest.$ac_ext
14977 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14978 echo "${ECHO_T}$ac_header_preproc" >&6; }
14980 # So? What about this header?
14981 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14982 yes:no: )
14983 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14984 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14985 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
14986 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
14987 ac_header_preproc=yes
14989 no:yes:* )
14990 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
14991 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
14992 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
14993 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
14994 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
14995 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
14996 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
14997 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
14998 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
14999 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
15000 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
15001 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
15002 ( cat <<\_ASBOX
15003 ## -------------------------------------- ##
15004 ## Report this to http://bugs.python.org/ ##
15005 ## -------------------------------------- ##
15006 _ASBOX
15007 ) | sed "s/^/$as_me: WARNING: /" >&2
15009 esac
15010 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
15011 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
15012 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
15013 echo $ECHO_N "(cached) $ECHO_C" >&6
15014 else
15015 ac_cv_header_atheos_threads_h=$ac_header_preproc
15017 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
15018 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
15021 if test $ac_cv_header_atheos_threads_h = yes; then
15022 cat >>confdefs.h <<\_ACEOF
15023 #define WITH_THREAD 1
15024 _ACEOF
15027 cat >>confdefs.h <<\_ACEOF
15028 #define ATHEOS_THREADS 1
15029 _ACEOF
15031 THREADOBJ="Python/thread.o"
15032 else
15034 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
15035 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
15036 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
15037 echo $ECHO_N "(cached) $ECHO_C" >&6
15038 else
15039 ac_check_lib_save_LIBS=$LIBS
15040 LIBS="-lpthreads $LIBS"
15041 cat >conftest.$ac_ext <<_ACEOF
15042 /* confdefs.h. */
15043 _ACEOF
15044 cat confdefs.h >>conftest.$ac_ext
15045 cat >>conftest.$ac_ext <<_ACEOF
15046 /* end confdefs.h. */
15048 /* Override any GCC internal prototype to avoid an error.
15049 Use char because int might match the return type of a GCC
15050 builtin and then its argument prototype would still apply. */
15051 #ifdef __cplusplus
15052 extern "C"
15053 #endif
15054 char pthread_create ();
15056 main ()
15058 return pthread_create ();
15060 return 0;
15062 _ACEOF
15063 rm -f conftest.$ac_objext conftest$ac_exeext
15064 if { (ac_try="$ac_link"
15065 case "(($ac_try" in
15066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15067 *) ac_try_echo=$ac_try;;
15068 esac
15069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15070 (eval "$ac_link") 2>conftest.er1
15071 ac_status=$?
15072 grep -v '^ *+' conftest.er1 >conftest.err
15073 rm -f conftest.er1
15074 cat conftest.err >&5
15075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15076 (exit $ac_status); } && {
15077 test -z "$ac_c_werror_flag" ||
15078 test ! -s conftest.err
15079 } && test -s conftest$ac_exeext &&
15080 $as_test_x conftest$ac_exeext; then
15081 ac_cv_lib_pthreads_pthread_create=yes
15082 else
15083 echo "$as_me: failed program was:" >&5
15084 sed 's/^/| /' conftest.$ac_ext >&5
15086 ac_cv_lib_pthreads_pthread_create=no
15089 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15090 conftest$ac_exeext conftest.$ac_ext
15091 LIBS=$ac_check_lib_save_LIBS
15093 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
15094 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
15095 if test $ac_cv_lib_pthreads_pthread_create = yes; then
15096 cat >>confdefs.h <<\_ACEOF
15097 #define WITH_THREAD 1
15098 _ACEOF
15100 posix_threads=yes
15101 LIBS="$LIBS -lpthreads"
15102 THREADOBJ="Python/thread.o"
15103 else
15105 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
15106 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
15107 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
15108 echo $ECHO_N "(cached) $ECHO_C" >&6
15109 else
15110 ac_check_lib_save_LIBS=$LIBS
15111 LIBS="-lc_r $LIBS"
15112 cat >conftest.$ac_ext <<_ACEOF
15113 /* confdefs.h. */
15114 _ACEOF
15115 cat confdefs.h >>conftest.$ac_ext
15116 cat >>conftest.$ac_ext <<_ACEOF
15117 /* end confdefs.h. */
15119 /* Override any GCC internal prototype to avoid an error.
15120 Use char because int might match the return type of a GCC
15121 builtin and then its argument prototype would still apply. */
15122 #ifdef __cplusplus
15123 extern "C"
15124 #endif
15125 char pthread_create ();
15127 main ()
15129 return pthread_create ();
15131 return 0;
15133 _ACEOF
15134 rm -f conftest.$ac_objext conftest$ac_exeext
15135 if { (ac_try="$ac_link"
15136 case "(($ac_try" in
15137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15138 *) ac_try_echo=$ac_try;;
15139 esac
15140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15141 (eval "$ac_link") 2>conftest.er1
15142 ac_status=$?
15143 grep -v '^ *+' conftest.er1 >conftest.err
15144 rm -f conftest.er1
15145 cat conftest.err >&5
15146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15147 (exit $ac_status); } && {
15148 test -z "$ac_c_werror_flag" ||
15149 test ! -s conftest.err
15150 } && test -s conftest$ac_exeext &&
15151 $as_test_x conftest$ac_exeext; then
15152 ac_cv_lib_c_r_pthread_create=yes
15153 else
15154 echo "$as_me: failed program was:" >&5
15155 sed 's/^/| /' conftest.$ac_ext >&5
15157 ac_cv_lib_c_r_pthread_create=no
15160 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15161 conftest$ac_exeext conftest.$ac_ext
15162 LIBS=$ac_check_lib_save_LIBS
15164 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
15165 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
15166 if test $ac_cv_lib_c_r_pthread_create = yes; then
15167 cat >>confdefs.h <<\_ACEOF
15168 #define WITH_THREAD 1
15169 _ACEOF
15171 posix_threads=yes
15172 LIBS="$LIBS -lc_r"
15173 THREADOBJ="Python/thread.o"
15174 else
15176 { echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
15177 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6; }
15178 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
15179 echo $ECHO_N "(cached) $ECHO_C" >&6
15180 else
15181 ac_check_lib_save_LIBS=$LIBS
15182 LIBS="-lpthread $LIBS"
15183 cat >conftest.$ac_ext <<_ACEOF
15184 /* confdefs.h. */
15185 _ACEOF
15186 cat confdefs.h >>conftest.$ac_ext
15187 cat >>conftest.$ac_ext <<_ACEOF
15188 /* end confdefs.h. */
15190 /* Override any GCC internal prototype to avoid an error.
15191 Use char because int might match the return type of a GCC
15192 builtin and then its argument prototype would still apply. */
15193 #ifdef __cplusplus
15194 extern "C"
15195 #endif
15196 char __pthread_create_system ();
15198 main ()
15200 return __pthread_create_system ();
15202 return 0;
15204 _ACEOF
15205 rm -f conftest.$ac_objext conftest$ac_exeext
15206 if { (ac_try="$ac_link"
15207 case "(($ac_try" in
15208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15209 *) ac_try_echo=$ac_try;;
15210 esac
15211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15212 (eval "$ac_link") 2>conftest.er1
15213 ac_status=$?
15214 grep -v '^ *+' conftest.er1 >conftest.err
15215 rm -f conftest.er1
15216 cat conftest.err >&5
15217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15218 (exit $ac_status); } && {
15219 test -z "$ac_c_werror_flag" ||
15220 test ! -s conftest.err
15221 } && test -s conftest$ac_exeext &&
15222 $as_test_x conftest$ac_exeext; then
15223 ac_cv_lib_pthread___pthread_create_system=yes
15224 else
15225 echo "$as_me: failed program was:" >&5
15226 sed 's/^/| /' conftest.$ac_ext >&5
15228 ac_cv_lib_pthread___pthread_create_system=no
15231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15232 conftest$ac_exeext conftest.$ac_ext
15233 LIBS=$ac_check_lib_save_LIBS
15235 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
15236 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6; }
15237 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
15238 cat >>confdefs.h <<\_ACEOF
15239 #define WITH_THREAD 1
15240 _ACEOF
15242 posix_threads=yes
15243 LIBS="$LIBS -lpthread"
15244 THREADOBJ="Python/thread.o"
15245 else
15247 { echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
15248 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6; }
15249 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
15250 echo $ECHO_N "(cached) $ECHO_C" >&6
15251 else
15252 ac_check_lib_save_LIBS=$LIBS
15253 LIBS="-lcma $LIBS"
15254 cat >conftest.$ac_ext <<_ACEOF
15255 /* confdefs.h. */
15256 _ACEOF
15257 cat confdefs.h >>conftest.$ac_ext
15258 cat >>conftest.$ac_ext <<_ACEOF
15259 /* end confdefs.h. */
15261 /* Override any GCC internal prototype to avoid an error.
15262 Use char because int might match the return type of a GCC
15263 builtin and then its argument prototype would still apply. */
15264 #ifdef __cplusplus
15265 extern "C"
15266 #endif
15267 char pthread_create ();
15269 main ()
15271 return pthread_create ();
15273 return 0;
15275 _ACEOF
15276 rm -f conftest.$ac_objext conftest$ac_exeext
15277 if { (ac_try="$ac_link"
15278 case "(($ac_try" in
15279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15280 *) ac_try_echo=$ac_try;;
15281 esac
15282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15283 (eval "$ac_link") 2>conftest.er1
15284 ac_status=$?
15285 grep -v '^ *+' conftest.er1 >conftest.err
15286 rm -f conftest.er1
15287 cat conftest.err >&5
15288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15289 (exit $ac_status); } && {
15290 test -z "$ac_c_werror_flag" ||
15291 test ! -s conftest.err
15292 } && test -s conftest$ac_exeext &&
15293 $as_test_x conftest$ac_exeext; then
15294 ac_cv_lib_cma_pthread_create=yes
15295 else
15296 echo "$as_me: failed program was:" >&5
15297 sed 's/^/| /' conftest.$ac_ext >&5
15299 ac_cv_lib_cma_pthread_create=no
15302 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15303 conftest$ac_exeext conftest.$ac_ext
15304 LIBS=$ac_check_lib_save_LIBS
15306 { echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
15307 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6; }
15308 if test $ac_cv_lib_cma_pthread_create = yes; then
15309 cat >>confdefs.h <<\_ACEOF
15310 #define WITH_THREAD 1
15311 _ACEOF
15313 posix_threads=yes
15314 LIBS="$LIBS -lcma"
15315 THREADOBJ="Python/thread.o"
15316 else
15318 USE_THREAD_MODULE="#"
15335 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15336 conftest$ac_exeext conftest.$ac_ext
15346 { echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
15347 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6; }
15348 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
15349 echo $ECHO_N "(cached) $ECHO_C" >&6
15350 else
15351 ac_check_lib_save_LIBS=$LIBS
15352 LIBS="-lmpc $LIBS"
15353 cat >conftest.$ac_ext <<_ACEOF
15354 /* confdefs.h. */
15355 _ACEOF
15356 cat confdefs.h >>conftest.$ac_ext
15357 cat >>conftest.$ac_ext <<_ACEOF
15358 /* end confdefs.h. */
15360 /* Override any GCC internal prototype to avoid an error.
15361 Use char because int might match the return type of a GCC
15362 builtin and then its argument prototype would still apply. */
15363 #ifdef __cplusplus
15364 extern "C"
15365 #endif
15366 char usconfig ();
15368 main ()
15370 return usconfig ();
15372 return 0;
15374 _ACEOF
15375 rm -f conftest.$ac_objext conftest$ac_exeext
15376 if { (ac_try="$ac_link"
15377 case "(($ac_try" in
15378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15379 *) ac_try_echo=$ac_try;;
15380 esac
15381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15382 (eval "$ac_link") 2>conftest.er1
15383 ac_status=$?
15384 grep -v '^ *+' conftest.er1 >conftest.err
15385 rm -f conftest.er1
15386 cat conftest.err >&5
15387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15388 (exit $ac_status); } && {
15389 test -z "$ac_c_werror_flag" ||
15390 test ! -s conftest.err
15391 } && test -s conftest$ac_exeext &&
15392 $as_test_x conftest$ac_exeext; then
15393 ac_cv_lib_mpc_usconfig=yes
15394 else
15395 echo "$as_me: failed program was:" >&5
15396 sed 's/^/| /' conftest.$ac_ext >&5
15398 ac_cv_lib_mpc_usconfig=no
15401 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15402 conftest$ac_exeext conftest.$ac_ext
15403 LIBS=$ac_check_lib_save_LIBS
15405 { echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
15406 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6; }
15407 if test $ac_cv_lib_mpc_usconfig = yes; then
15408 cat >>confdefs.h <<\_ACEOF
15409 #define WITH_THREAD 1
15410 _ACEOF
15412 LIBS="$LIBS -lmpc"
15413 THREADOBJ="Python/thread.o"
15414 USE_THREAD_MODULE=""
15418 if test "$posix_threads" != "yes"; then
15419 { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
15420 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
15421 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
15422 echo $ECHO_N "(cached) $ECHO_C" >&6
15423 else
15424 ac_check_lib_save_LIBS=$LIBS
15425 LIBS="-lthread $LIBS"
15426 cat >conftest.$ac_ext <<_ACEOF
15427 /* confdefs.h. */
15428 _ACEOF
15429 cat confdefs.h >>conftest.$ac_ext
15430 cat >>conftest.$ac_ext <<_ACEOF
15431 /* end confdefs.h. */
15433 /* Override any GCC internal prototype to avoid an error.
15434 Use char because int might match the return type of a GCC
15435 builtin and then its argument prototype would still apply. */
15436 #ifdef __cplusplus
15437 extern "C"
15438 #endif
15439 char thr_create ();
15441 main ()
15443 return thr_create ();
15445 return 0;
15447 _ACEOF
15448 rm -f conftest.$ac_objext conftest$ac_exeext
15449 if { (ac_try="$ac_link"
15450 case "(($ac_try" in
15451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15452 *) ac_try_echo=$ac_try;;
15453 esac
15454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15455 (eval "$ac_link") 2>conftest.er1
15456 ac_status=$?
15457 grep -v '^ *+' conftest.er1 >conftest.err
15458 rm -f conftest.er1
15459 cat conftest.err >&5
15460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15461 (exit $ac_status); } && {
15462 test -z "$ac_c_werror_flag" ||
15463 test ! -s conftest.err
15464 } && test -s conftest$ac_exeext &&
15465 $as_test_x conftest$ac_exeext; then
15466 ac_cv_lib_thread_thr_create=yes
15467 else
15468 echo "$as_me: failed program was:" >&5
15469 sed 's/^/| /' conftest.$ac_ext >&5
15471 ac_cv_lib_thread_thr_create=no
15474 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15475 conftest$ac_exeext conftest.$ac_ext
15476 LIBS=$ac_check_lib_save_LIBS
15478 { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
15479 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
15480 if test $ac_cv_lib_thread_thr_create = yes; then
15481 cat >>confdefs.h <<\_ACEOF
15482 #define WITH_THREAD 1
15483 _ACEOF
15485 LIBS="$LIBS -lthread"
15486 THREADOBJ="Python/thread.o"
15487 USE_THREAD_MODULE=""
15492 if test "$USE_THREAD_MODULE" != "#"
15493 then
15494 # If the above checks didn't disable threads, (at least) OSF1
15495 # needs this '-threads' argument during linking.
15496 case $ac_sys_system in
15497 OSF1) LDLAST=-threads;;
15498 esac
15502 if test "$posix_threads" = "yes"; then
15503 if test "$unistd_defines_pthreads" = "no"; then
15505 cat >>confdefs.h <<\_ACEOF
15506 #define _POSIX_THREADS 1
15507 _ACEOF
15511 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
15512 case $ac_sys_system/$ac_sys_release in
15513 SunOS/5.6)
15514 cat >>confdefs.h <<\_ACEOF
15515 #define HAVE_PTHREAD_DESTRUCTOR 1
15516 _ACEOF
15519 SunOS/5.8)
15520 cat >>confdefs.h <<\_ACEOF
15521 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
15522 _ACEOF
15525 AIX/5)
15526 cat >>confdefs.h <<\_ACEOF
15527 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
15528 _ACEOF
15531 esac
15533 { echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
15534 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6; }
15535 if test "${ac_cv_pthread_system_supported+set}" = set; then
15536 echo $ECHO_N "(cached) $ECHO_C" >&6
15537 else
15538 if test "$cross_compiling" = yes; then
15539 ac_cv_pthread_system_supported=no
15540 else
15541 cat >conftest.$ac_ext <<_ACEOF
15542 /* confdefs.h. */
15543 _ACEOF
15544 cat confdefs.h >>conftest.$ac_ext
15545 cat >>conftest.$ac_ext <<_ACEOF
15546 /* end confdefs.h. */
15547 #include <pthread.h>
15548 void *foo(void *parm) {
15549 return NULL;
15551 main() {
15552 pthread_attr_t attr;
15553 pthread_t id;
15554 if (pthread_attr_init(&attr)) exit(-1);
15555 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
15556 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
15557 exit(0);
15559 _ACEOF
15560 rm -f conftest$ac_exeext
15561 if { (ac_try="$ac_link"
15562 case "(($ac_try" in
15563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15564 *) ac_try_echo=$ac_try;;
15565 esac
15566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15567 (eval "$ac_link") 2>&5
15568 ac_status=$?
15569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15570 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15571 { (case "(($ac_try" in
15572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15573 *) ac_try_echo=$ac_try;;
15574 esac
15575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15576 (eval "$ac_try") 2>&5
15577 ac_status=$?
15578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15579 (exit $ac_status); }; }; then
15580 ac_cv_pthread_system_supported=yes
15581 else
15582 echo "$as_me: program exited with status $ac_status" >&5
15583 echo "$as_me: failed program was:" >&5
15584 sed 's/^/| /' conftest.$ac_ext >&5
15586 ( exit $ac_status )
15587 ac_cv_pthread_system_supported=no
15589 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15596 { echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
15597 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6; }
15598 if test "$ac_cv_pthread_system_supported" = "yes"; then
15600 cat >>confdefs.h <<\_ACEOF
15601 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
15602 _ACEOF
15606 for ac_func in pthread_sigmask
15608 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15609 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15610 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15611 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15612 echo $ECHO_N "(cached) $ECHO_C" >&6
15613 else
15614 cat >conftest.$ac_ext <<_ACEOF
15615 /* confdefs.h. */
15616 _ACEOF
15617 cat confdefs.h >>conftest.$ac_ext
15618 cat >>conftest.$ac_ext <<_ACEOF
15619 /* end confdefs.h. */
15620 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15621 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15622 #define $ac_func innocuous_$ac_func
15624 /* System header to define __stub macros and hopefully few prototypes,
15625 which can conflict with char $ac_func (); below.
15626 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15627 <limits.h> exists even on freestanding compilers. */
15629 #ifdef __STDC__
15630 # include <limits.h>
15631 #else
15632 # include <assert.h>
15633 #endif
15635 #undef $ac_func
15637 /* Override any GCC internal prototype to avoid an error.
15638 Use char because int might match the return type of a GCC
15639 builtin and then its argument prototype would still apply. */
15640 #ifdef __cplusplus
15641 extern "C"
15642 #endif
15643 char $ac_func ();
15644 /* The GNU C library defines this for functions which it implements
15645 to always fail with ENOSYS. Some functions are actually named
15646 something starting with __ and the normal name is an alias. */
15647 #if defined __stub_$ac_func || defined __stub___$ac_func
15648 choke me
15649 #endif
15652 main ()
15654 return $ac_func ();
15656 return 0;
15658 _ACEOF
15659 rm -f conftest.$ac_objext conftest$ac_exeext
15660 if { (ac_try="$ac_link"
15661 case "(($ac_try" in
15662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15663 *) ac_try_echo=$ac_try;;
15664 esac
15665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15666 (eval "$ac_link") 2>conftest.er1
15667 ac_status=$?
15668 grep -v '^ *+' conftest.er1 >conftest.err
15669 rm -f conftest.er1
15670 cat conftest.err >&5
15671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15672 (exit $ac_status); } && {
15673 test -z "$ac_c_werror_flag" ||
15674 test ! -s conftest.err
15675 } && test -s conftest$ac_exeext &&
15676 $as_test_x conftest$ac_exeext; then
15677 eval "$as_ac_var=yes"
15678 else
15679 echo "$as_me: failed program was:" >&5
15680 sed 's/^/| /' conftest.$ac_ext >&5
15682 eval "$as_ac_var=no"
15685 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15686 conftest$ac_exeext conftest.$ac_ext
15688 ac_res=`eval echo '${'$as_ac_var'}'`
15689 { echo "$as_me:$LINENO: result: $ac_res" >&5
15690 echo "${ECHO_T}$ac_res" >&6; }
15691 if test `eval echo '${'$as_ac_var'}'` = yes; then
15692 cat >>confdefs.h <<_ACEOF
15693 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15694 _ACEOF
15695 case $ac_sys_system in
15696 CYGWIN*)
15698 cat >>confdefs.h <<\_ACEOF
15699 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
15700 _ACEOF
15703 esac
15705 done
15710 # Check for enable-ipv6
15713 { echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
15714 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6; }
15715 # Check whether --enable-ipv6 was given.
15716 if test "${enable_ipv6+set}" = set; then
15717 enableval=$enable_ipv6; case "$enableval" in
15719 { echo "$as_me:$LINENO: result: no" >&5
15720 echo "${ECHO_T}no" >&6; }
15721 ipv6=no
15723 *) { echo "$as_me:$LINENO: result: yes" >&5
15724 echo "${ECHO_T}yes" >&6; }
15725 cat >>confdefs.h <<\_ACEOF
15726 #define ENABLE_IPV6 1
15727 _ACEOF
15729 ipv6=yes
15731 esac
15732 else
15734 if test "$cross_compiling" = yes; then
15735 { echo "$as_me:$LINENO: result: no" >&5
15736 echo "${ECHO_T}no" >&6; }
15737 ipv6=no
15739 else
15740 cat >conftest.$ac_ext <<_ACEOF
15741 /* confdefs.h. */
15742 _ACEOF
15743 cat confdefs.h >>conftest.$ac_ext
15744 cat >>conftest.$ac_ext <<_ACEOF
15745 /* end confdefs.h. */
15746 /* AF_INET6 available check */
15747 #include <sys/types.h>
15748 #include <sys/socket.h>
15749 main()
15751 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
15752 exit(1);
15753 else
15754 exit(0);
15757 _ACEOF
15758 rm -f conftest$ac_exeext
15759 if { (ac_try="$ac_link"
15760 case "(($ac_try" in
15761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15762 *) ac_try_echo=$ac_try;;
15763 esac
15764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15765 (eval "$ac_link") 2>&5
15766 ac_status=$?
15767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15768 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
15775 ac_status=$?
15776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777 (exit $ac_status); }; }; then
15778 { echo "$as_me:$LINENO: result: yes" >&5
15779 echo "${ECHO_T}yes" >&6; }
15780 ipv6=yes
15781 else
15782 echo "$as_me: program exited with status $ac_status" >&5
15783 echo "$as_me: failed program was:" >&5
15784 sed 's/^/| /' conftest.$ac_ext >&5
15786 ( exit $ac_status )
15787 { echo "$as_me:$LINENO: result: no" >&5
15788 echo "${ECHO_T}no" >&6; }
15789 ipv6=no
15791 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15796 if test "$ipv6" = "yes"; then
15797 { echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
15798 echo $ECHO_N "checking if RFC2553 API is available... $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 <sys/types.h>
15806 #include <netinet/in.h>
15808 main ()
15810 struct sockaddr_in6 x;
15811 x.sin6_scope_id;
15813 return 0;
15815 _ACEOF
15816 rm -f conftest.$ac_objext
15817 if { (ac_try="$ac_compile"
15818 case "(($ac_try" in
15819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15820 *) ac_try_echo=$ac_try;;
15821 esac
15822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15823 (eval "$ac_compile") 2>conftest.er1
15824 ac_status=$?
15825 grep -v '^ *+' conftest.er1 >conftest.err
15826 rm -f conftest.er1
15827 cat conftest.err >&5
15828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15829 (exit $ac_status); } && {
15830 test -z "$ac_c_werror_flag" ||
15831 test ! -s conftest.err
15832 } && test -s conftest.$ac_objext; then
15833 { echo "$as_me:$LINENO: result: yes" >&5
15834 echo "${ECHO_T}yes" >&6; }
15835 ipv6=yes
15836 else
15837 echo "$as_me: failed program was:" >&5
15838 sed 's/^/| /' conftest.$ac_ext >&5
15840 { echo "$as_me:$LINENO: result: no" >&5
15841 echo "${ECHO_T}no" >&6; }
15842 ipv6=no
15845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15848 if test "$ipv6" = "yes"; then
15849 cat >>confdefs.h <<\_ACEOF
15850 #define ENABLE_IPV6 1
15851 _ACEOF
15858 ipv6type=unknown
15859 ipv6lib=none
15860 ipv6trylibc=no
15862 if test "$ipv6" = "yes"; then
15863 { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
15864 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
15865 for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
15867 case $i in
15868 inria)
15869 cat >conftest.$ac_ext <<_ACEOF
15870 /* confdefs.h. */
15871 _ACEOF
15872 cat confdefs.h >>conftest.$ac_ext
15873 cat >>conftest.$ac_ext <<_ACEOF
15874 /* end confdefs.h. */
15876 #include <netinet/in.h>
15877 #ifdef IPV6_INRIA_VERSION
15879 #endif
15880 _ACEOF
15881 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15882 $EGREP "yes" >/dev/null 2>&1; then
15883 ipv6type=$i
15885 rm -f conftest*
15888 kame)
15889 cat >conftest.$ac_ext <<_ACEOF
15890 /* confdefs.h. */
15891 _ACEOF
15892 cat confdefs.h >>conftest.$ac_ext
15893 cat >>conftest.$ac_ext <<_ACEOF
15894 /* end confdefs.h. */
15896 #include <netinet/in.h>
15897 #ifdef __KAME__
15899 #endif
15900 _ACEOF
15901 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15902 $EGREP "yes" >/dev/null 2>&1; then
15903 ipv6type=$i;
15904 ipv6lib=inet6
15905 ipv6libdir=/usr/local/v6/lib
15906 ipv6trylibc=yes
15908 rm -f conftest*
15911 linux-glibc)
15912 cat >conftest.$ac_ext <<_ACEOF
15913 /* confdefs.h. */
15914 _ACEOF
15915 cat confdefs.h >>conftest.$ac_ext
15916 cat >>conftest.$ac_ext <<_ACEOF
15917 /* end confdefs.h. */
15919 #include <features.h>
15920 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
15922 #endif
15923 _ACEOF
15924 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15925 $EGREP "yes" >/dev/null 2>&1; then
15926 ipv6type=$i;
15927 ipv6trylibc=yes
15929 rm -f conftest*
15932 linux-inet6)
15933 if test -d /usr/inet6; then
15934 ipv6type=$i
15935 ipv6lib=inet6
15936 ipv6libdir=/usr/inet6/lib
15937 BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
15940 solaris)
15941 if test -f /etc/netconfig; then
15942 if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then
15943 ipv6type=$i
15944 ipv6trylibc=yes
15948 toshiba)
15949 cat >conftest.$ac_ext <<_ACEOF
15950 /* confdefs.h. */
15951 _ACEOF
15952 cat confdefs.h >>conftest.$ac_ext
15953 cat >>conftest.$ac_ext <<_ACEOF
15954 /* end confdefs.h. */
15956 #include <sys/param.h>
15957 #ifdef _TOSHIBA_INET6
15959 #endif
15960 _ACEOF
15961 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15962 $EGREP "yes" >/dev/null 2>&1; then
15963 ipv6type=$i;
15964 ipv6lib=inet6;
15965 ipv6libdir=/usr/local/v6/lib
15967 rm -f conftest*
15970 v6d)
15971 cat >conftest.$ac_ext <<_ACEOF
15972 /* confdefs.h. */
15973 _ACEOF
15974 cat confdefs.h >>conftest.$ac_ext
15975 cat >>conftest.$ac_ext <<_ACEOF
15976 /* end confdefs.h. */
15978 #include </usr/local/v6/include/sys/v6config.h>
15979 #ifdef __V6D__
15981 #endif
15982 _ACEOF
15983 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15984 $EGREP "yes" >/dev/null 2>&1; then
15985 ipv6type=$i;
15986 ipv6lib=v6;
15987 ipv6libdir=/usr/local/v6/lib;
15988 BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
15990 rm -f conftest*
15993 zeta)
15994 cat >conftest.$ac_ext <<_ACEOF
15995 /* confdefs.h. */
15996 _ACEOF
15997 cat confdefs.h >>conftest.$ac_ext
15998 cat >>conftest.$ac_ext <<_ACEOF
15999 /* end confdefs.h. */
16001 #include <sys/param.h>
16002 #ifdef _ZETA_MINAMI_INET6
16004 #endif
16005 _ACEOF
16006 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16007 $EGREP "yes" >/dev/null 2>&1; then
16008 ipv6type=$i;
16009 ipv6lib=inet6;
16010 ipv6libdir=/usr/local/v6/lib
16012 rm -f conftest*
16015 esac
16016 if test "$ipv6type" != "unknown"; then
16017 break
16019 done
16020 { echo "$as_me:$LINENO: result: $ipv6type" >&5
16021 echo "${ECHO_T}$ipv6type" >&6; }
16024 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
16025 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
16026 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
16027 echo "using lib$ipv6lib"
16028 else
16029 if test $ipv6trylibc = "yes"; then
16030 echo "using libc"
16031 else
16032 echo 'Fatal: no $ipv6lib library found. cannot continue.'
16033 echo "You need to fetch lib$ipv6lib.a from appropriate"
16034 echo 'ipv6 kit and compile beforehand.'
16035 exit 1
16040 { echo "$as_me:$LINENO: checking for OSX 10.5 SDK or later" >&5
16041 echo $ECHO_N "checking for OSX 10.5 SDK or later... $ECHO_C" >&6; }
16042 cat >conftest.$ac_ext <<_ACEOF
16043 /* confdefs.h. */
16044 _ACEOF
16045 cat confdefs.h >>conftest.$ac_ext
16046 cat >>conftest.$ac_ext <<_ACEOF
16047 /* end confdefs.h. */
16048 #include <Carbon/Carbon.h>
16050 main ()
16052 FSIORefNum fRef = 0
16054 return 0;
16056 _ACEOF
16057 rm -f conftest.$ac_objext
16058 if { (ac_try="$ac_compile"
16059 case "(($ac_try" in
16060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16061 *) ac_try_echo=$ac_try;;
16062 esac
16063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16064 (eval "$ac_compile") 2>conftest.er1
16065 ac_status=$?
16066 grep -v '^ *+' conftest.er1 >conftest.err
16067 rm -f conftest.er1
16068 cat conftest.err >&5
16069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16070 (exit $ac_status); } && {
16071 test -z "$ac_c_werror_flag" ||
16072 test ! -s conftest.err
16073 } && test -s conftest.$ac_objext; then
16075 cat >>confdefs.h <<\_ACEOF
16076 #define HAVE_OSX105_SDK 1
16077 _ACEOF
16079 { echo "$as_me:$LINENO: result: yes" >&5
16080 echo "${ECHO_T}yes" >&6; }
16081 else
16082 echo "$as_me: failed program was:" >&5
16083 sed 's/^/| /' conftest.$ac_ext >&5
16085 { echo "$as_me:$LINENO: result: no" >&5
16086 echo "${ECHO_T}no" >&6; }
16090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16092 # Check for --with-doc-strings
16093 { echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
16094 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6; }
16096 # Check whether --with-doc-strings was given.
16097 if test "${with_doc_strings+set}" = set; then
16098 withval=$with_doc_strings;
16102 if test -z "$with_doc_strings"
16103 then with_doc_strings="yes"
16105 if test "$with_doc_strings" != "no"
16106 then
16108 cat >>confdefs.h <<\_ACEOF
16109 #define WITH_DOC_STRINGS 1
16110 _ACEOF
16113 { echo "$as_me:$LINENO: result: $with_doc_strings" >&5
16114 echo "${ECHO_T}$with_doc_strings" >&6; }
16116 # Check for Python-specific malloc support
16117 { echo "$as_me:$LINENO: checking for --with-tsc" >&5
16118 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6; }
16120 # Check whether --with-tsc was given.
16121 if test "${with_tsc+set}" = set; then
16122 withval=$with_tsc;
16123 if test "$withval" != no
16124 then
16126 cat >>confdefs.h <<\_ACEOF
16127 #define WITH_TSC 1
16128 _ACEOF
16130 { echo "$as_me:$LINENO: result: yes" >&5
16131 echo "${ECHO_T}yes" >&6; }
16132 else { echo "$as_me:$LINENO: result: no" >&5
16133 echo "${ECHO_T}no" >&6; }
16135 else
16136 { echo "$as_me:$LINENO: result: no" >&5
16137 echo "${ECHO_T}no" >&6; }
16141 # Check for Python-specific malloc support
16142 { echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
16143 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6; }
16145 # Check whether --with-pymalloc was given.
16146 if test "${with_pymalloc+set}" = set; then
16147 withval=$with_pymalloc;
16151 if test -z "$with_pymalloc"
16152 then with_pymalloc="yes"
16154 if test "$with_pymalloc" != "no"
16155 then
16157 cat >>confdefs.h <<\_ACEOF
16158 #define WITH_PYMALLOC 1
16159 _ACEOF
16162 { echo "$as_me:$LINENO: result: $with_pymalloc" >&5
16163 echo "${ECHO_T}$with_pymalloc" >&6; }
16165 # Check for --with-wctype-functions
16166 { echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
16167 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6; }
16169 # Check whether --with-wctype-functions was given.
16170 if test "${with_wctype_functions+set}" = set; then
16171 withval=$with_wctype_functions;
16172 if test "$withval" != no
16173 then
16175 cat >>confdefs.h <<\_ACEOF
16176 #define WANT_WCTYPE_FUNCTIONS 1
16177 _ACEOF
16179 { echo "$as_me:$LINENO: result: yes" >&5
16180 echo "${ECHO_T}yes" >&6; }
16181 else { echo "$as_me:$LINENO: result: no" >&5
16182 echo "${ECHO_T}no" >&6; }
16184 else
16185 { echo "$as_me:$LINENO: result: no" >&5
16186 echo "${ECHO_T}no" >&6; }
16190 # -I${DLINCLDIR} is added to the compile rule for importdl.o
16192 DLINCLDIR=.
16194 # the dlopen() function means we might want to use dynload_shlib.o. some
16195 # platforms, such as AIX, have dlopen(), but don't want to use it.
16197 for ac_func in dlopen
16199 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16200 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16201 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16202 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16203 echo $ECHO_N "(cached) $ECHO_C" >&6
16204 else
16205 cat >conftest.$ac_ext <<_ACEOF
16206 /* confdefs.h. */
16207 _ACEOF
16208 cat confdefs.h >>conftest.$ac_ext
16209 cat >>conftest.$ac_ext <<_ACEOF
16210 /* end confdefs.h. */
16211 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16212 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16213 #define $ac_func innocuous_$ac_func
16215 /* System header to define __stub macros and hopefully few prototypes,
16216 which can conflict with char $ac_func (); below.
16217 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16218 <limits.h> exists even on freestanding compilers. */
16220 #ifdef __STDC__
16221 # include <limits.h>
16222 #else
16223 # include <assert.h>
16224 #endif
16226 #undef $ac_func
16228 /* Override any GCC internal prototype to avoid an error.
16229 Use char because int might match the return type of a GCC
16230 builtin and then its argument prototype would still apply. */
16231 #ifdef __cplusplus
16232 extern "C"
16233 #endif
16234 char $ac_func ();
16235 /* The GNU C library defines this for functions which it implements
16236 to always fail with ENOSYS. Some functions are actually named
16237 something starting with __ and the normal name is an alias. */
16238 #if defined __stub_$ac_func || defined __stub___$ac_func
16239 choke me
16240 #endif
16243 main ()
16245 return $ac_func ();
16247 return 0;
16249 _ACEOF
16250 rm -f conftest.$ac_objext conftest$ac_exeext
16251 if { (ac_try="$ac_link"
16252 case "(($ac_try" in
16253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16254 *) ac_try_echo=$ac_try;;
16255 esac
16256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16257 (eval "$ac_link") 2>conftest.er1
16258 ac_status=$?
16259 grep -v '^ *+' conftest.er1 >conftest.err
16260 rm -f conftest.er1
16261 cat conftest.err >&5
16262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16263 (exit $ac_status); } && {
16264 test -z "$ac_c_werror_flag" ||
16265 test ! -s conftest.err
16266 } && test -s conftest$ac_exeext &&
16267 $as_test_x conftest$ac_exeext; then
16268 eval "$as_ac_var=yes"
16269 else
16270 echo "$as_me: failed program was:" >&5
16271 sed 's/^/| /' conftest.$ac_ext >&5
16273 eval "$as_ac_var=no"
16276 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16277 conftest$ac_exeext conftest.$ac_ext
16279 ac_res=`eval echo '${'$as_ac_var'}'`
16280 { echo "$as_me:$LINENO: result: $ac_res" >&5
16281 echo "${ECHO_T}$ac_res" >&6; }
16282 if test `eval echo '${'$as_ac_var'}'` = yes; then
16283 cat >>confdefs.h <<_ACEOF
16284 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16285 _ACEOF
16288 done
16291 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
16292 # loading of modules.
16294 { echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
16295 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6; }
16296 if test -z "$DYNLOADFILE"
16297 then
16298 case $ac_sys_system/$ac_sys_release in
16299 AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
16300 if test "$ac_cv_func_dlopen" = yes
16301 then DYNLOADFILE="dynload_shlib.o"
16302 else DYNLOADFILE="dynload_aix.o"
16305 hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
16306 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
16307 Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";;
16308 atheos*) DYNLOADFILE="dynload_atheos.o";;
16310 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
16311 # out any dynamic loading
16312 if test "$ac_cv_func_dlopen" = yes
16313 then DYNLOADFILE="dynload_shlib.o"
16314 else DYNLOADFILE="dynload_stub.o"
16317 esac
16319 { echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
16320 echo "${ECHO_T}$DYNLOADFILE" >&6; }
16321 if test "$DYNLOADFILE" != "dynload_stub.o"
16322 then
16324 cat >>confdefs.h <<\_ACEOF
16325 #define HAVE_DYNAMIC_LOADING 1
16326 _ACEOF
16330 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
16333 { echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
16334 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6; }
16335 if test -z "$MACHDEP_OBJS"
16336 then
16337 MACHDEP_OBJS=$extra_machdep_objs
16338 else
16339 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
16341 { echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
16342 echo "${ECHO_T}MACHDEP_OBJS" >&6; }
16344 # checks for library functions
16434 for ac_func in alarm setitimer getitimer bind_textdomain_codeset chown \
16435 clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \
16436 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
16437 getpriority getpwent getspnam getspent getsid getwd \
16438 kill killpg lchmod lchown lstat mbrtowc mkfifo mknod mktime \
16439 mremap nice pathconf pause plock poll pthread_init \
16440 putenv readlink realpath \
16441 select sem_open sem_timedwait sem_getvalue sem_unlink setegid seteuid \
16442 setgid \
16443 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
16444 sigaction siginterrupt sigrelse strftime strlcpy \
16445 sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
16446 truncate uname unsetenv utimes waitpid wait3 wait4 \
16447 wcscoll wcsftime wcsxfrm _getpty
16449 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16450 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16451 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16452 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16453 echo $ECHO_N "(cached) $ECHO_C" >&6
16454 else
16455 cat >conftest.$ac_ext <<_ACEOF
16456 /* confdefs.h. */
16457 _ACEOF
16458 cat confdefs.h >>conftest.$ac_ext
16459 cat >>conftest.$ac_ext <<_ACEOF
16460 /* end confdefs.h. */
16461 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16462 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16463 #define $ac_func innocuous_$ac_func
16465 /* System header to define __stub macros and hopefully few prototypes,
16466 which can conflict with char $ac_func (); below.
16467 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16468 <limits.h> exists even on freestanding compilers. */
16470 #ifdef __STDC__
16471 # include <limits.h>
16472 #else
16473 # include <assert.h>
16474 #endif
16476 #undef $ac_func
16478 /* Override any GCC internal prototype to avoid an error.
16479 Use char because int might match the return type of a GCC
16480 builtin and then its argument prototype would still apply. */
16481 #ifdef __cplusplus
16482 extern "C"
16483 #endif
16484 char $ac_func ();
16485 /* The GNU C library defines this for functions which it implements
16486 to always fail with ENOSYS. Some functions are actually named
16487 something starting with __ and the normal name is an alias. */
16488 #if defined __stub_$ac_func || defined __stub___$ac_func
16489 choke me
16490 #endif
16493 main ()
16495 return $ac_func ();
16497 return 0;
16499 _ACEOF
16500 rm -f conftest.$ac_objext conftest$ac_exeext
16501 if { (ac_try="$ac_link"
16502 case "(($ac_try" in
16503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16504 *) ac_try_echo=$ac_try;;
16505 esac
16506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16507 (eval "$ac_link") 2>conftest.er1
16508 ac_status=$?
16509 grep -v '^ *+' conftest.er1 >conftest.err
16510 rm -f conftest.er1
16511 cat conftest.err >&5
16512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16513 (exit $ac_status); } && {
16514 test -z "$ac_c_werror_flag" ||
16515 test ! -s conftest.err
16516 } && test -s conftest$ac_exeext &&
16517 $as_test_x conftest$ac_exeext; then
16518 eval "$as_ac_var=yes"
16519 else
16520 echo "$as_me: failed program was:" >&5
16521 sed 's/^/| /' conftest.$ac_ext >&5
16523 eval "$as_ac_var=no"
16526 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16527 conftest$ac_exeext conftest.$ac_ext
16529 ac_res=`eval echo '${'$as_ac_var'}'`
16530 { echo "$as_me:$LINENO: result: $ac_res" >&5
16531 echo "${ECHO_T}$ac_res" >&6; }
16532 if test `eval echo '${'$as_ac_var'}'` = yes; then
16533 cat >>confdefs.h <<_ACEOF
16534 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16535 _ACEOF
16538 done
16541 # For some functions, having a definition is not sufficient, since
16542 # we want to take their address.
16543 { echo "$as_me:$LINENO: checking for chroot" >&5
16544 echo $ECHO_N "checking for chroot... $ECHO_C" >&6; }
16545 cat >conftest.$ac_ext <<_ACEOF
16546 /* confdefs.h. */
16547 _ACEOF
16548 cat confdefs.h >>conftest.$ac_ext
16549 cat >>conftest.$ac_ext <<_ACEOF
16550 /* end confdefs.h. */
16551 #include <unistd.h>
16553 main ()
16555 void *x=chroot
16557 return 0;
16559 _ACEOF
16560 rm -f conftest.$ac_objext
16561 if { (ac_try="$ac_compile"
16562 case "(($ac_try" in
16563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16564 *) ac_try_echo=$ac_try;;
16565 esac
16566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16567 (eval "$ac_compile") 2>conftest.er1
16568 ac_status=$?
16569 grep -v '^ *+' conftest.er1 >conftest.err
16570 rm -f conftest.er1
16571 cat conftest.err >&5
16572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16573 (exit $ac_status); } && {
16574 test -z "$ac_c_werror_flag" ||
16575 test ! -s conftest.err
16576 } && test -s conftest.$ac_objext; then
16578 cat >>confdefs.h <<\_ACEOF
16579 #define HAVE_CHROOT 1
16580 _ACEOF
16582 { echo "$as_me:$LINENO: result: yes" >&5
16583 echo "${ECHO_T}yes" >&6; }
16584 else
16585 echo "$as_me: failed program was:" >&5
16586 sed 's/^/| /' conftest.$ac_ext >&5
16588 { echo "$as_me:$LINENO: result: no" >&5
16589 echo "${ECHO_T}no" >&6; }
16593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16594 { echo "$as_me:$LINENO: checking for link" >&5
16595 echo $ECHO_N "checking for link... $ECHO_C" >&6; }
16596 cat >conftest.$ac_ext <<_ACEOF
16597 /* confdefs.h. */
16598 _ACEOF
16599 cat confdefs.h >>conftest.$ac_ext
16600 cat >>conftest.$ac_ext <<_ACEOF
16601 /* end confdefs.h. */
16602 #include <unistd.h>
16604 main ()
16606 void *x=link
16608 return 0;
16610 _ACEOF
16611 rm -f conftest.$ac_objext
16612 if { (ac_try="$ac_compile"
16613 case "(($ac_try" in
16614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16615 *) ac_try_echo=$ac_try;;
16616 esac
16617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16618 (eval "$ac_compile") 2>conftest.er1
16619 ac_status=$?
16620 grep -v '^ *+' conftest.er1 >conftest.err
16621 rm -f conftest.er1
16622 cat conftest.err >&5
16623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16624 (exit $ac_status); } && {
16625 test -z "$ac_c_werror_flag" ||
16626 test ! -s conftest.err
16627 } && test -s conftest.$ac_objext; then
16629 cat >>confdefs.h <<\_ACEOF
16630 #define HAVE_LINK 1
16631 _ACEOF
16633 { echo "$as_me:$LINENO: result: yes" >&5
16634 echo "${ECHO_T}yes" >&6; }
16635 else
16636 echo "$as_me: failed program was:" >&5
16637 sed 's/^/| /' conftest.$ac_ext >&5
16639 { echo "$as_me:$LINENO: result: no" >&5
16640 echo "${ECHO_T}no" >&6; }
16644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16645 { echo "$as_me:$LINENO: checking for symlink" >&5
16646 echo $ECHO_N "checking for symlink... $ECHO_C" >&6; }
16647 cat >conftest.$ac_ext <<_ACEOF
16648 /* confdefs.h. */
16649 _ACEOF
16650 cat confdefs.h >>conftest.$ac_ext
16651 cat >>conftest.$ac_ext <<_ACEOF
16652 /* end confdefs.h. */
16653 #include <unistd.h>
16655 main ()
16657 void *x=symlink
16659 return 0;
16661 _ACEOF
16662 rm -f conftest.$ac_objext
16663 if { (ac_try="$ac_compile"
16664 case "(($ac_try" in
16665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16666 *) ac_try_echo=$ac_try;;
16667 esac
16668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16669 (eval "$ac_compile") 2>conftest.er1
16670 ac_status=$?
16671 grep -v '^ *+' conftest.er1 >conftest.err
16672 rm -f conftest.er1
16673 cat conftest.err >&5
16674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16675 (exit $ac_status); } && {
16676 test -z "$ac_c_werror_flag" ||
16677 test ! -s conftest.err
16678 } && test -s conftest.$ac_objext; then
16680 cat >>confdefs.h <<\_ACEOF
16681 #define HAVE_SYMLINK 1
16682 _ACEOF
16684 { echo "$as_me:$LINENO: result: yes" >&5
16685 echo "${ECHO_T}yes" >&6; }
16686 else
16687 echo "$as_me: failed program was:" >&5
16688 sed 's/^/| /' conftest.$ac_ext >&5
16690 { echo "$as_me:$LINENO: result: no" >&5
16691 echo "${ECHO_T}no" >&6; }
16695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16696 { echo "$as_me:$LINENO: checking for fchdir" >&5
16697 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6; }
16698 cat >conftest.$ac_ext <<_ACEOF
16699 /* confdefs.h. */
16700 _ACEOF
16701 cat confdefs.h >>conftest.$ac_ext
16702 cat >>conftest.$ac_ext <<_ACEOF
16703 /* end confdefs.h. */
16704 #include <unistd.h>
16706 main ()
16708 void *x=fchdir
16710 return 0;
16712 _ACEOF
16713 rm -f conftest.$ac_objext
16714 if { (ac_try="$ac_compile"
16715 case "(($ac_try" in
16716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16717 *) ac_try_echo=$ac_try;;
16718 esac
16719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16720 (eval "$ac_compile") 2>conftest.er1
16721 ac_status=$?
16722 grep -v '^ *+' conftest.er1 >conftest.err
16723 rm -f conftest.er1
16724 cat conftest.err >&5
16725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16726 (exit $ac_status); } && {
16727 test -z "$ac_c_werror_flag" ||
16728 test ! -s conftest.err
16729 } && test -s conftest.$ac_objext; then
16731 cat >>confdefs.h <<\_ACEOF
16732 #define HAVE_FCHDIR 1
16733 _ACEOF
16735 { echo "$as_me:$LINENO: result: yes" >&5
16736 echo "${ECHO_T}yes" >&6; }
16737 else
16738 echo "$as_me: failed program was:" >&5
16739 sed 's/^/| /' conftest.$ac_ext >&5
16741 { echo "$as_me:$LINENO: result: no" >&5
16742 echo "${ECHO_T}no" >&6; }
16746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16747 { echo "$as_me:$LINENO: checking for fsync" >&5
16748 echo $ECHO_N "checking for fsync... $ECHO_C" >&6; }
16749 cat >conftest.$ac_ext <<_ACEOF
16750 /* confdefs.h. */
16751 _ACEOF
16752 cat confdefs.h >>conftest.$ac_ext
16753 cat >>conftest.$ac_ext <<_ACEOF
16754 /* end confdefs.h. */
16755 #include <unistd.h>
16757 main ()
16759 void *x=fsync
16761 return 0;
16763 _ACEOF
16764 rm -f conftest.$ac_objext
16765 if { (ac_try="$ac_compile"
16766 case "(($ac_try" in
16767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16768 *) ac_try_echo=$ac_try;;
16769 esac
16770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16771 (eval "$ac_compile") 2>conftest.er1
16772 ac_status=$?
16773 grep -v '^ *+' conftest.er1 >conftest.err
16774 rm -f conftest.er1
16775 cat conftest.err >&5
16776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16777 (exit $ac_status); } && {
16778 test -z "$ac_c_werror_flag" ||
16779 test ! -s conftest.err
16780 } && test -s conftest.$ac_objext; then
16782 cat >>confdefs.h <<\_ACEOF
16783 #define HAVE_FSYNC 1
16784 _ACEOF
16786 { echo "$as_me:$LINENO: result: yes" >&5
16787 echo "${ECHO_T}yes" >&6; }
16788 else
16789 echo "$as_me: failed program was:" >&5
16790 sed 's/^/| /' conftest.$ac_ext >&5
16792 { echo "$as_me:$LINENO: result: no" >&5
16793 echo "${ECHO_T}no" >&6; }
16797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16798 { echo "$as_me:$LINENO: checking for fdatasync" >&5
16799 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; }
16800 cat >conftest.$ac_ext <<_ACEOF
16801 /* confdefs.h. */
16802 _ACEOF
16803 cat confdefs.h >>conftest.$ac_ext
16804 cat >>conftest.$ac_ext <<_ACEOF
16805 /* end confdefs.h. */
16806 #include <unistd.h>
16808 main ()
16810 void *x=fdatasync
16812 return 0;
16814 _ACEOF
16815 rm -f conftest.$ac_objext
16816 if { (ac_try="$ac_compile"
16817 case "(($ac_try" in
16818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16819 *) ac_try_echo=$ac_try;;
16820 esac
16821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16822 (eval "$ac_compile") 2>conftest.er1
16823 ac_status=$?
16824 grep -v '^ *+' conftest.er1 >conftest.err
16825 rm -f conftest.er1
16826 cat conftest.err >&5
16827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16828 (exit $ac_status); } && {
16829 test -z "$ac_c_werror_flag" ||
16830 test ! -s conftest.err
16831 } && test -s conftest.$ac_objext; then
16833 cat >>confdefs.h <<\_ACEOF
16834 #define HAVE_FDATASYNC 1
16835 _ACEOF
16837 { echo "$as_me:$LINENO: result: yes" >&5
16838 echo "${ECHO_T}yes" >&6; }
16839 else
16840 echo "$as_me: failed program was:" >&5
16841 sed 's/^/| /' conftest.$ac_ext >&5
16843 { echo "$as_me:$LINENO: result: no" >&5
16844 echo "${ECHO_T}no" >&6; }
16848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16849 { echo "$as_me:$LINENO: checking for epoll" >&5
16850 echo $ECHO_N "checking for epoll... $ECHO_C" >&6; }
16851 cat >conftest.$ac_ext <<_ACEOF
16852 /* confdefs.h. */
16853 _ACEOF
16854 cat confdefs.h >>conftest.$ac_ext
16855 cat >>conftest.$ac_ext <<_ACEOF
16856 /* end confdefs.h. */
16857 #include <sys/epoll.h>
16859 main ()
16861 void *x=epoll_create
16863 return 0;
16865 _ACEOF
16866 rm -f conftest.$ac_objext
16867 if { (ac_try="$ac_compile"
16868 case "(($ac_try" in
16869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16870 *) ac_try_echo=$ac_try;;
16871 esac
16872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16873 (eval "$ac_compile") 2>conftest.er1
16874 ac_status=$?
16875 grep -v '^ *+' conftest.er1 >conftest.err
16876 rm -f conftest.er1
16877 cat conftest.err >&5
16878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16879 (exit $ac_status); } && {
16880 test -z "$ac_c_werror_flag" ||
16881 test ! -s conftest.err
16882 } && test -s conftest.$ac_objext; then
16884 cat >>confdefs.h <<\_ACEOF
16885 #define HAVE_EPOLL 1
16886 _ACEOF
16888 { echo "$as_me:$LINENO: result: yes" >&5
16889 echo "${ECHO_T}yes" >&6; }
16890 else
16891 echo "$as_me: failed program was:" >&5
16892 sed 's/^/| /' conftest.$ac_ext >&5
16894 { echo "$as_me:$LINENO: result: no" >&5
16895 echo "${ECHO_T}no" >&6; }
16899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16900 { echo "$as_me:$LINENO: checking for kqueue" >&5
16901 echo $ECHO_N "checking for kqueue... $ECHO_C" >&6; }
16902 cat >conftest.$ac_ext <<_ACEOF
16903 /* confdefs.h. */
16904 _ACEOF
16905 cat confdefs.h >>conftest.$ac_ext
16906 cat >>conftest.$ac_ext <<_ACEOF
16907 /* end confdefs.h. */
16909 #include <sys/types.h>
16910 #include <sys/event.h>
16913 main ()
16915 int x=kqueue()
16917 return 0;
16919 _ACEOF
16920 rm -f conftest.$ac_objext
16921 if { (ac_try="$ac_compile"
16922 case "(($ac_try" in
16923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16924 *) ac_try_echo=$ac_try;;
16925 esac
16926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16927 (eval "$ac_compile") 2>conftest.er1
16928 ac_status=$?
16929 grep -v '^ *+' conftest.er1 >conftest.err
16930 rm -f conftest.er1
16931 cat conftest.err >&5
16932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16933 (exit $ac_status); } && {
16934 test -z "$ac_c_werror_flag" ||
16935 test ! -s conftest.err
16936 } && test -s conftest.$ac_objext; then
16938 cat >>confdefs.h <<\_ACEOF
16939 #define HAVE_KQUEUE 1
16940 _ACEOF
16942 { echo "$as_me:$LINENO: result: yes" >&5
16943 echo "${ECHO_T}yes" >&6; }
16944 else
16945 echo "$as_me: failed program was:" >&5
16946 sed 's/^/| /' conftest.$ac_ext >&5
16948 { echo "$as_me:$LINENO: result: no" >&5
16949 echo "${ECHO_T}no" >&6; }
16953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16954 # On some systems (eg. FreeBSD 5), we would find a definition of the
16955 # functions ctermid_r, setgroups in the library, but no prototype
16956 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
16957 # address to avoid compiler warnings and potential miscompilations
16958 # because of the missing prototypes.
16960 { echo "$as_me:$LINENO: checking for ctermid_r" >&5
16961 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6; }
16962 cat >conftest.$ac_ext <<_ACEOF
16963 /* confdefs.h. */
16964 _ACEOF
16965 cat confdefs.h >>conftest.$ac_ext
16966 cat >>conftest.$ac_ext <<_ACEOF
16967 /* end confdefs.h. */
16969 #include "confdefs.h"
16970 #include <stdio.h>
16973 main ()
16975 void* p = ctermid_r
16977 return 0;
16979 _ACEOF
16980 rm -f conftest.$ac_objext
16981 if { (ac_try="$ac_compile"
16982 case "(($ac_try" in
16983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16984 *) ac_try_echo=$ac_try;;
16985 esac
16986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16987 (eval "$ac_compile") 2>conftest.er1
16988 ac_status=$?
16989 grep -v '^ *+' conftest.er1 >conftest.err
16990 rm -f conftest.er1
16991 cat conftest.err >&5
16992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16993 (exit $ac_status); } && {
16994 test -z "$ac_c_werror_flag" ||
16995 test ! -s conftest.err
16996 } && test -s conftest.$ac_objext; then
16998 cat >>confdefs.h <<\_ACEOF
16999 #define HAVE_CTERMID_R 1
17000 _ACEOF
17002 { echo "$as_me:$LINENO: result: yes" >&5
17003 echo "${ECHO_T}yes" >&6; }
17004 else
17005 echo "$as_me: failed program was:" >&5
17006 sed 's/^/| /' conftest.$ac_ext >&5
17008 { echo "$as_me:$LINENO: result: no" >&5
17009 echo "${ECHO_T}no" >&6; }
17013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17015 { echo "$as_me:$LINENO: checking for flock" >&5
17016 echo $ECHO_N "checking for flock... $ECHO_C" >&6; }
17017 cat >conftest.$ac_ext <<_ACEOF
17018 /* confdefs.h. */
17019 _ACEOF
17020 cat confdefs.h >>conftest.$ac_ext
17021 cat >>conftest.$ac_ext <<_ACEOF
17022 /* end confdefs.h. */
17024 #include "confdefs.h"
17025 #include <sys/file.h>
17028 main ()
17030 void* p = flock
17032 return 0;
17034 _ACEOF
17035 rm -f conftest.$ac_objext
17036 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
17043 ac_status=$?
17044 grep -v '^ *+' conftest.er1 >conftest.err
17045 rm -f conftest.er1
17046 cat conftest.err >&5
17047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17048 (exit $ac_status); } && {
17049 test -z "$ac_c_werror_flag" ||
17050 test ! -s conftest.err
17051 } && test -s conftest.$ac_objext; then
17053 cat >>confdefs.h <<\_ACEOF
17054 #define HAVE_FLOCK 1
17055 _ACEOF
17057 { echo "$as_me:$LINENO: result: yes" >&5
17058 echo "${ECHO_T}yes" >&6; }
17059 else
17060 echo "$as_me: failed program was:" >&5
17061 sed 's/^/| /' conftest.$ac_ext >&5
17063 { echo "$as_me:$LINENO: result: no" >&5
17064 echo "${ECHO_T}no" >&6; }
17068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17070 { echo "$as_me:$LINENO: checking for getpagesize" >&5
17071 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; }
17072 cat >conftest.$ac_ext <<_ACEOF
17073 /* confdefs.h. */
17074 _ACEOF
17075 cat confdefs.h >>conftest.$ac_ext
17076 cat >>conftest.$ac_ext <<_ACEOF
17077 /* end confdefs.h. */
17079 #include "confdefs.h"
17080 #include <unistd.h>
17083 main ()
17085 void* p = getpagesize
17087 return 0;
17089 _ACEOF
17090 rm -f conftest.$ac_objext
17091 if { (ac_try="$ac_compile"
17092 case "(($ac_try" in
17093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17094 *) ac_try_echo=$ac_try;;
17095 esac
17096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17097 (eval "$ac_compile") 2>conftest.er1
17098 ac_status=$?
17099 grep -v '^ *+' conftest.er1 >conftest.err
17100 rm -f conftest.er1
17101 cat conftest.err >&5
17102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17103 (exit $ac_status); } && {
17104 test -z "$ac_c_werror_flag" ||
17105 test ! -s conftest.err
17106 } && test -s conftest.$ac_objext; then
17108 cat >>confdefs.h <<\_ACEOF
17109 #define HAVE_GETPAGESIZE 1
17110 _ACEOF
17112 { echo "$as_me:$LINENO: result: yes" >&5
17113 echo "${ECHO_T}yes" >&6; }
17114 else
17115 echo "$as_me: failed program was:" >&5
17116 sed 's/^/| /' conftest.$ac_ext >&5
17118 { echo "$as_me:$LINENO: result: no" >&5
17119 echo "${ECHO_T}no" >&6; }
17123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17125 for ac_prog in true
17127 # Extract the first word of "$ac_prog", so it can be a program name with args.
17128 set dummy $ac_prog; ac_word=$2
17129 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17131 if test "${ac_cv_prog_TRUE+set}" = set; then
17132 echo $ECHO_N "(cached) $ECHO_C" >&6
17133 else
17134 if test -n "$TRUE"; then
17135 ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
17136 else
17137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17138 for as_dir in $PATH
17140 IFS=$as_save_IFS
17141 test -z "$as_dir" && as_dir=.
17142 for ac_exec_ext in '' $ac_executable_extensions; do
17143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17144 ac_cv_prog_TRUE="$ac_prog"
17145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17146 break 2
17148 done
17149 done
17150 IFS=$as_save_IFS
17154 TRUE=$ac_cv_prog_TRUE
17155 if test -n "$TRUE"; then
17156 { echo "$as_me:$LINENO: result: $TRUE" >&5
17157 echo "${ECHO_T}$TRUE" >&6; }
17158 else
17159 { echo "$as_me:$LINENO: result: no" >&5
17160 echo "${ECHO_T}no" >&6; }
17164 test -n "$TRUE" && break
17165 done
17166 test -n "$TRUE" || TRUE="/bin/true"
17169 { echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
17170 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6; }
17171 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
17172 echo $ECHO_N "(cached) $ECHO_C" >&6
17173 else
17174 ac_check_lib_save_LIBS=$LIBS
17175 LIBS="-lc $LIBS"
17176 cat >conftest.$ac_ext <<_ACEOF
17177 /* confdefs.h. */
17178 _ACEOF
17179 cat confdefs.h >>conftest.$ac_ext
17180 cat >>conftest.$ac_ext <<_ACEOF
17181 /* end confdefs.h. */
17183 /* Override any GCC internal prototype to avoid an error.
17184 Use char because int might match the return type of a GCC
17185 builtin and then its argument prototype would still apply. */
17186 #ifdef __cplusplus
17187 extern "C"
17188 #endif
17189 char inet_aton ();
17191 main ()
17193 return inet_aton ();
17195 return 0;
17197 _ACEOF
17198 rm -f conftest.$ac_objext conftest$ac_exeext
17199 if { (ac_try="$ac_link"
17200 case "(($ac_try" in
17201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17202 *) ac_try_echo=$ac_try;;
17203 esac
17204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17205 (eval "$ac_link") 2>conftest.er1
17206 ac_status=$?
17207 grep -v '^ *+' conftest.er1 >conftest.err
17208 rm -f conftest.er1
17209 cat conftest.err >&5
17210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17211 (exit $ac_status); } && {
17212 test -z "$ac_c_werror_flag" ||
17213 test ! -s conftest.err
17214 } && test -s conftest$ac_exeext &&
17215 $as_test_x conftest$ac_exeext; then
17216 ac_cv_lib_c_inet_aton=yes
17217 else
17218 echo "$as_me: failed program was:" >&5
17219 sed 's/^/| /' conftest.$ac_ext >&5
17221 ac_cv_lib_c_inet_aton=no
17224 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17225 conftest$ac_exeext conftest.$ac_ext
17226 LIBS=$ac_check_lib_save_LIBS
17228 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
17229 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6; }
17230 if test $ac_cv_lib_c_inet_aton = yes; then
17231 $ac_cv_prog_TRUE
17232 else
17234 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
17235 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
17236 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
17237 echo $ECHO_N "(cached) $ECHO_C" >&6
17238 else
17239 ac_check_lib_save_LIBS=$LIBS
17240 LIBS="-lresolv $LIBS"
17241 cat >conftest.$ac_ext <<_ACEOF
17242 /* confdefs.h. */
17243 _ACEOF
17244 cat confdefs.h >>conftest.$ac_ext
17245 cat >>conftest.$ac_ext <<_ACEOF
17246 /* end confdefs.h. */
17248 /* Override any GCC internal prototype to avoid an error.
17249 Use char because int might match the return type of a GCC
17250 builtin and then its argument prototype would still apply. */
17251 #ifdef __cplusplus
17252 extern "C"
17253 #endif
17254 char inet_aton ();
17256 main ()
17258 return inet_aton ();
17260 return 0;
17262 _ACEOF
17263 rm -f conftest.$ac_objext conftest$ac_exeext
17264 if { (ac_try="$ac_link"
17265 case "(($ac_try" in
17266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17267 *) ac_try_echo=$ac_try;;
17268 esac
17269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17270 (eval "$ac_link") 2>conftest.er1
17271 ac_status=$?
17272 grep -v '^ *+' conftest.er1 >conftest.err
17273 rm -f conftest.er1
17274 cat conftest.err >&5
17275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17276 (exit $ac_status); } && {
17277 test -z "$ac_c_werror_flag" ||
17278 test ! -s conftest.err
17279 } && test -s conftest$ac_exeext &&
17280 $as_test_x conftest$ac_exeext; then
17281 ac_cv_lib_resolv_inet_aton=yes
17282 else
17283 echo "$as_me: failed program was:" >&5
17284 sed 's/^/| /' conftest.$ac_ext >&5
17286 ac_cv_lib_resolv_inet_aton=no
17289 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17290 conftest$ac_exeext conftest.$ac_ext
17291 LIBS=$ac_check_lib_save_LIBS
17293 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
17294 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
17295 if test $ac_cv_lib_resolv_inet_aton = yes; then
17296 cat >>confdefs.h <<_ACEOF
17297 #define HAVE_LIBRESOLV 1
17298 _ACEOF
17300 LIBS="-lresolv $LIBS"
17308 # On Tru64, chflags seems to be present, but calling it will
17309 # exit Python
17310 { echo "$as_me:$LINENO: checking for chflags" >&5
17311 echo $ECHO_N "checking for chflags... $ECHO_C" >&6; }
17312 if test "$cross_compiling" = yes; then
17313 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17314 See \`config.log' for more details." >&5
17315 echo "$as_me: error: cannot run test program while cross compiling
17316 See \`config.log' for more details." >&2;}
17317 { (exit 1); exit 1; }; }
17318 else
17319 cat >conftest.$ac_ext <<_ACEOF
17320 /* confdefs.h. */
17321 _ACEOF
17322 cat confdefs.h >>conftest.$ac_ext
17323 cat >>conftest.$ac_ext <<_ACEOF
17324 /* end confdefs.h. */
17326 #include <sys/stat.h>
17327 #include <unistd.h>
17328 int main(int argc, char*argv[])
17330 if(chflags(argv[0], 0) != 0)
17331 return 1;
17332 return 0;
17335 _ACEOF
17336 rm -f conftest$ac_exeext
17337 if { (ac_try="$ac_link"
17338 case "(($ac_try" in
17339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17340 *) ac_try_echo=$ac_try;;
17341 esac
17342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17343 (eval "$ac_link") 2>&5
17344 ac_status=$?
17345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17346 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17347 { (case "(($ac_try" in
17348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17349 *) ac_try_echo=$ac_try;;
17350 esac
17351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17352 (eval "$ac_try") 2>&5
17353 ac_status=$?
17354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17355 (exit $ac_status); }; }; then
17357 cat >>confdefs.h <<\_ACEOF
17358 #define HAVE_CHFLAGS 1
17359 _ACEOF
17361 { echo "$as_me:$LINENO: result: yes" >&5
17362 echo "${ECHO_T}yes" >&6; }
17363 else
17364 echo "$as_me: program exited with status $ac_status" >&5
17365 echo "$as_me: failed program was:" >&5
17366 sed 's/^/| /' conftest.$ac_ext >&5
17368 ( exit $ac_status )
17369 { echo "$as_me:$LINENO: result: no" >&5
17370 echo "${ECHO_T}no" >&6; }
17373 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17378 { echo "$as_me:$LINENO: checking for lchflags" >&5
17379 echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; }
17380 if test "$cross_compiling" = yes; then
17381 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17382 See \`config.log' for more details." >&5
17383 echo "$as_me: error: cannot run test program while cross compiling
17384 See \`config.log' for more details." >&2;}
17385 { (exit 1); exit 1; }; }
17386 else
17387 cat >conftest.$ac_ext <<_ACEOF
17388 /* confdefs.h. */
17389 _ACEOF
17390 cat confdefs.h >>conftest.$ac_ext
17391 cat >>conftest.$ac_ext <<_ACEOF
17392 /* end confdefs.h. */
17394 #include <sys/stat.h>
17395 #include <unistd.h>
17396 int main(int argc, char*argv[])
17398 if(lchflags(argv[0], 0) != 0)
17399 return 1;
17400 return 0;
17403 _ACEOF
17404 rm -f conftest$ac_exeext
17405 if { (ac_try="$ac_link"
17406 case "(($ac_try" in
17407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17408 *) ac_try_echo=$ac_try;;
17409 esac
17410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17411 (eval "$ac_link") 2>&5
17412 ac_status=$?
17413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17414 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17415 { (case "(($ac_try" in
17416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17417 *) ac_try_echo=$ac_try;;
17418 esac
17419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17420 (eval "$ac_try") 2>&5
17421 ac_status=$?
17422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17423 (exit $ac_status); }; }; then
17425 cat >>confdefs.h <<\_ACEOF
17426 #define HAVE_LCHFLAGS 1
17427 _ACEOF
17429 { echo "$as_me:$LINENO: result: yes" >&5
17430 echo "${ECHO_T}yes" >&6; }
17431 else
17432 echo "$as_me: program exited with status $ac_status" >&5
17433 echo "$as_me: failed program was:" >&5
17434 sed 's/^/| /' conftest.$ac_ext >&5
17436 ( exit $ac_status )
17437 { echo "$as_me:$LINENO: result: no" >&5
17438 echo "${ECHO_T}no" >&6; }
17441 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17446 case $ac_sys_system/$ac_sys_release in
17447 Darwin/*)
17448 _CUR_CFLAGS="${CFLAGS}"
17449 _CUR_LDFLAGS="${LDFLAGS}"
17450 CFLAGS="${CFLAGS} -Wl,-search_paths_first"
17451 LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
17453 esac
17455 { echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5
17456 echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6; }
17457 if test "${ac_cv_lib_z_inflateCopy+set}" = set; then
17458 echo $ECHO_N "(cached) $ECHO_C" >&6
17459 else
17460 ac_check_lib_save_LIBS=$LIBS
17461 LIBS="-lz $LIBS"
17462 cat >conftest.$ac_ext <<_ACEOF
17463 /* confdefs.h. */
17464 _ACEOF
17465 cat confdefs.h >>conftest.$ac_ext
17466 cat >>conftest.$ac_ext <<_ACEOF
17467 /* end confdefs.h. */
17469 /* Override any GCC internal prototype to avoid an error.
17470 Use char because int might match the return type of a GCC
17471 builtin and then its argument prototype would still apply. */
17472 #ifdef __cplusplus
17473 extern "C"
17474 #endif
17475 char inflateCopy ();
17477 main ()
17479 return inflateCopy ();
17481 return 0;
17483 _ACEOF
17484 rm -f conftest.$ac_objext conftest$ac_exeext
17485 if { (ac_try="$ac_link"
17486 case "(($ac_try" in
17487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17488 *) ac_try_echo=$ac_try;;
17489 esac
17490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17491 (eval "$ac_link") 2>conftest.er1
17492 ac_status=$?
17493 grep -v '^ *+' conftest.er1 >conftest.err
17494 rm -f conftest.er1
17495 cat conftest.err >&5
17496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17497 (exit $ac_status); } && {
17498 test -z "$ac_c_werror_flag" ||
17499 test ! -s conftest.err
17500 } && test -s conftest$ac_exeext &&
17501 $as_test_x conftest$ac_exeext; then
17502 ac_cv_lib_z_inflateCopy=yes
17503 else
17504 echo "$as_me: failed program was:" >&5
17505 sed 's/^/| /' conftest.$ac_ext >&5
17507 ac_cv_lib_z_inflateCopy=no
17510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17511 conftest$ac_exeext conftest.$ac_ext
17512 LIBS=$ac_check_lib_save_LIBS
17514 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5
17515 echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6; }
17516 if test $ac_cv_lib_z_inflateCopy = yes; then
17518 cat >>confdefs.h <<\_ACEOF
17519 #define HAVE_ZLIB_COPY 1
17520 _ACEOF
17525 case $ac_sys_system/$ac_sys_release in
17526 Darwin/*)
17527 CFLAGS="${_CUR_CFLAGS}"
17528 LDFLAGS="${_CUR_LDFLAGS}"
17530 esac
17532 { echo "$as_me:$LINENO: checking for hstrerror" >&5
17533 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6; }
17534 cat >conftest.$ac_ext <<_ACEOF
17535 /* confdefs.h. */
17536 _ACEOF
17537 cat confdefs.h >>conftest.$ac_ext
17538 cat >>conftest.$ac_ext <<_ACEOF
17539 /* end confdefs.h. */
17541 #include "confdefs.h"
17542 #include <netdb.h>
17545 main ()
17547 void* p = hstrerror; hstrerror(0)
17549 return 0;
17551 _ACEOF
17552 rm -f conftest.$ac_objext conftest$ac_exeext
17553 if { (ac_try="$ac_link"
17554 case "(($ac_try" in
17555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17556 *) ac_try_echo=$ac_try;;
17557 esac
17558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17559 (eval "$ac_link") 2>conftest.er1
17560 ac_status=$?
17561 grep -v '^ *+' conftest.er1 >conftest.err
17562 rm -f conftest.er1
17563 cat conftest.err >&5
17564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17565 (exit $ac_status); } && {
17566 test -z "$ac_c_werror_flag" ||
17567 test ! -s conftest.err
17568 } && test -s conftest$ac_exeext &&
17569 $as_test_x conftest$ac_exeext; then
17571 cat >>confdefs.h <<\_ACEOF
17572 #define HAVE_HSTRERROR 1
17573 _ACEOF
17575 { echo "$as_me:$LINENO: result: yes" >&5
17576 echo "${ECHO_T}yes" >&6; }
17577 else
17578 echo "$as_me: failed program was:" >&5
17579 sed 's/^/| /' conftest.$ac_ext >&5
17581 { echo "$as_me:$LINENO: result: no" >&5
17582 echo "${ECHO_T}no" >&6; }
17586 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17587 conftest$ac_exeext conftest.$ac_ext
17589 { echo "$as_me:$LINENO: checking for inet_aton" >&5
17590 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
17591 cat >conftest.$ac_ext <<_ACEOF
17592 /* confdefs.h. */
17593 _ACEOF
17594 cat confdefs.h >>conftest.$ac_ext
17595 cat >>conftest.$ac_ext <<_ACEOF
17596 /* end confdefs.h. */
17598 #include "confdefs.h"
17599 #include <sys/types.h>
17600 #include <sys/socket.h>
17601 #include <netinet/in.h>
17602 #include <arpa/inet.h>
17605 main ()
17607 void* p = inet_aton;inet_aton(0,0)
17609 return 0;
17611 _ACEOF
17612 rm -f conftest.$ac_objext conftest$ac_exeext
17613 if { (ac_try="$ac_link"
17614 case "(($ac_try" in
17615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17616 *) ac_try_echo=$ac_try;;
17617 esac
17618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17619 (eval "$ac_link") 2>conftest.er1
17620 ac_status=$?
17621 grep -v '^ *+' conftest.er1 >conftest.err
17622 rm -f conftest.er1
17623 cat conftest.err >&5
17624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17625 (exit $ac_status); } && {
17626 test -z "$ac_c_werror_flag" ||
17627 test ! -s conftest.err
17628 } && test -s conftest$ac_exeext &&
17629 $as_test_x conftest$ac_exeext; then
17631 cat >>confdefs.h <<\_ACEOF
17632 #define HAVE_INET_ATON 1
17633 _ACEOF
17635 { echo "$as_me:$LINENO: result: yes" >&5
17636 echo "${ECHO_T}yes" >&6; }
17637 else
17638 echo "$as_me: failed program was:" >&5
17639 sed 's/^/| /' conftest.$ac_ext >&5
17641 { echo "$as_me:$LINENO: result: no" >&5
17642 echo "${ECHO_T}no" >&6; }
17646 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17647 conftest$ac_exeext conftest.$ac_ext
17649 { echo "$as_me:$LINENO: checking for inet_pton" >&5
17650 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
17651 cat >conftest.$ac_ext <<_ACEOF
17652 /* confdefs.h. */
17653 _ACEOF
17654 cat confdefs.h >>conftest.$ac_ext
17655 cat >>conftest.$ac_ext <<_ACEOF
17656 /* end confdefs.h. */
17658 #include "confdefs.h"
17659 #include <sys/types.h>
17660 #include <sys/socket.h>
17661 #include <netinet/in.h>
17662 #include <arpa/inet.h>
17665 main ()
17667 void* p = inet_pton
17669 return 0;
17671 _ACEOF
17672 rm -f conftest.$ac_objext
17673 if { (ac_try="$ac_compile"
17674 case "(($ac_try" in
17675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17676 *) ac_try_echo=$ac_try;;
17677 esac
17678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17679 (eval "$ac_compile") 2>conftest.er1
17680 ac_status=$?
17681 grep -v '^ *+' conftest.er1 >conftest.err
17682 rm -f conftest.er1
17683 cat conftest.err >&5
17684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17685 (exit $ac_status); } && {
17686 test -z "$ac_c_werror_flag" ||
17687 test ! -s conftest.err
17688 } && test -s conftest.$ac_objext; then
17690 cat >>confdefs.h <<\_ACEOF
17691 #define HAVE_INET_PTON 1
17692 _ACEOF
17694 { echo "$as_me:$LINENO: result: yes" >&5
17695 echo "${ECHO_T}yes" >&6; }
17696 else
17697 echo "$as_me: failed program was:" >&5
17698 sed 's/^/| /' conftest.$ac_ext >&5
17700 { echo "$as_me:$LINENO: result: no" >&5
17701 echo "${ECHO_T}no" >&6; }
17705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17707 # On some systems, setgroups is in unistd.h, on others, in grp.h
17708 { echo "$as_me:$LINENO: checking for setgroups" >&5
17709 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6; }
17710 cat >conftest.$ac_ext <<_ACEOF
17711 /* confdefs.h. */
17712 _ACEOF
17713 cat confdefs.h >>conftest.$ac_ext
17714 cat >>conftest.$ac_ext <<_ACEOF
17715 /* end confdefs.h. */
17717 #include "confdefs.h"
17718 #include <unistd.h>
17719 #ifdef HAVE_GRP_H
17720 #include <grp.h>
17721 #endif
17724 main ()
17726 void* p = setgroups
17728 return 0;
17730 _ACEOF
17731 rm -f conftest.$ac_objext
17732 if { (ac_try="$ac_compile"
17733 case "(($ac_try" in
17734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17735 *) ac_try_echo=$ac_try;;
17736 esac
17737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17738 (eval "$ac_compile") 2>conftest.er1
17739 ac_status=$?
17740 grep -v '^ *+' conftest.er1 >conftest.err
17741 rm -f conftest.er1
17742 cat conftest.err >&5
17743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17744 (exit $ac_status); } && {
17745 test -z "$ac_c_werror_flag" ||
17746 test ! -s conftest.err
17747 } && test -s conftest.$ac_objext; then
17749 cat >>confdefs.h <<\_ACEOF
17750 #define HAVE_SETGROUPS 1
17751 _ACEOF
17753 { echo "$as_me:$LINENO: result: yes" >&5
17754 echo "${ECHO_T}yes" >&6; }
17755 else
17756 echo "$as_me: failed program was:" >&5
17757 sed 's/^/| /' conftest.$ac_ext >&5
17759 { echo "$as_me:$LINENO: result: no" >&5
17760 echo "${ECHO_T}no" >&6; }
17764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17766 # check for openpty and forkpty
17769 for ac_func in openpty
17771 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17772 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17773 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17774 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17775 echo $ECHO_N "(cached) $ECHO_C" >&6
17776 else
17777 cat >conftest.$ac_ext <<_ACEOF
17778 /* confdefs.h. */
17779 _ACEOF
17780 cat confdefs.h >>conftest.$ac_ext
17781 cat >>conftest.$ac_ext <<_ACEOF
17782 /* end confdefs.h. */
17783 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17784 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17785 #define $ac_func innocuous_$ac_func
17787 /* System header to define __stub macros and hopefully few prototypes,
17788 which can conflict with char $ac_func (); below.
17789 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17790 <limits.h> exists even on freestanding compilers. */
17792 #ifdef __STDC__
17793 # include <limits.h>
17794 #else
17795 # include <assert.h>
17796 #endif
17798 #undef $ac_func
17800 /* Override any GCC internal prototype to avoid an error.
17801 Use char because int might match the return type of a GCC
17802 builtin and then its argument prototype would still apply. */
17803 #ifdef __cplusplus
17804 extern "C"
17805 #endif
17806 char $ac_func ();
17807 /* The GNU C library defines this for functions which it implements
17808 to always fail with ENOSYS. Some functions are actually named
17809 something starting with __ and the normal name is an alias. */
17810 #if defined __stub_$ac_func || defined __stub___$ac_func
17811 choke me
17812 #endif
17815 main ()
17817 return $ac_func ();
17819 return 0;
17821 _ACEOF
17822 rm -f conftest.$ac_objext conftest$ac_exeext
17823 if { (ac_try="$ac_link"
17824 case "(($ac_try" in
17825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17826 *) ac_try_echo=$ac_try;;
17827 esac
17828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17829 (eval "$ac_link") 2>conftest.er1
17830 ac_status=$?
17831 grep -v '^ *+' conftest.er1 >conftest.err
17832 rm -f conftest.er1
17833 cat conftest.err >&5
17834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17835 (exit $ac_status); } && {
17836 test -z "$ac_c_werror_flag" ||
17837 test ! -s conftest.err
17838 } && test -s conftest$ac_exeext &&
17839 $as_test_x conftest$ac_exeext; then
17840 eval "$as_ac_var=yes"
17841 else
17842 echo "$as_me: failed program was:" >&5
17843 sed 's/^/| /' conftest.$ac_ext >&5
17845 eval "$as_ac_var=no"
17848 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17849 conftest$ac_exeext conftest.$ac_ext
17851 ac_res=`eval echo '${'$as_ac_var'}'`
17852 { echo "$as_me:$LINENO: result: $ac_res" >&5
17853 echo "${ECHO_T}$ac_res" >&6; }
17854 if test `eval echo '${'$as_ac_var'}'` = yes; then
17855 cat >>confdefs.h <<_ACEOF
17856 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17857 _ACEOF
17859 else
17860 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
17861 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
17862 if test "${ac_cv_lib_util_openpty+set}" = set; then
17863 echo $ECHO_N "(cached) $ECHO_C" >&6
17864 else
17865 ac_check_lib_save_LIBS=$LIBS
17866 LIBS="-lutil $LIBS"
17867 cat >conftest.$ac_ext <<_ACEOF
17868 /* confdefs.h. */
17869 _ACEOF
17870 cat confdefs.h >>conftest.$ac_ext
17871 cat >>conftest.$ac_ext <<_ACEOF
17872 /* end confdefs.h. */
17874 /* Override any GCC internal prototype to avoid an error.
17875 Use char because int might match the return type of a GCC
17876 builtin and then its argument prototype would still apply. */
17877 #ifdef __cplusplus
17878 extern "C"
17879 #endif
17880 char openpty ();
17882 main ()
17884 return openpty ();
17886 return 0;
17888 _ACEOF
17889 rm -f conftest.$ac_objext conftest$ac_exeext
17890 if { (ac_try="$ac_link"
17891 case "(($ac_try" in
17892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17893 *) ac_try_echo=$ac_try;;
17894 esac
17895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17896 (eval "$ac_link") 2>conftest.er1
17897 ac_status=$?
17898 grep -v '^ *+' conftest.er1 >conftest.err
17899 rm -f conftest.er1
17900 cat conftest.err >&5
17901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17902 (exit $ac_status); } && {
17903 test -z "$ac_c_werror_flag" ||
17904 test ! -s conftest.err
17905 } && test -s conftest$ac_exeext &&
17906 $as_test_x conftest$ac_exeext; then
17907 ac_cv_lib_util_openpty=yes
17908 else
17909 echo "$as_me: failed program was:" >&5
17910 sed 's/^/| /' conftest.$ac_ext >&5
17912 ac_cv_lib_util_openpty=no
17915 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17916 conftest$ac_exeext conftest.$ac_ext
17917 LIBS=$ac_check_lib_save_LIBS
17919 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
17920 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
17921 if test $ac_cv_lib_util_openpty = yes; then
17922 cat >>confdefs.h <<\_ACEOF
17923 #define HAVE_OPENPTY 1
17924 _ACEOF
17925 LIBS="$LIBS -lutil"
17926 else
17927 { echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
17928 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6; }
17929 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
17930 echo $ECHO_N "(cached) $ECHO_C" >&6
17931 else
17932 ac_check_lib_save_LIBS=$LIBS
17933 LIBS="-lbsd $LIBS"
17934 cat >conftest.$ac_ext <<_ACEOF
17935 /* confdefs.h. */
17936 _ACEOF
17937 cat confdefs.h >>conftest.$ac_ext
17938 cat >>conftest.$ac_ext <<_ACEOF
17939 /* end confdefs.h. */
17941 /* Override any GCC internal prototype to avoid an error.
17942 Use char because int might match the return type of a GCC
17943 builtin and then its argument prototype would still apply. */
17944 #ifdef __cplusplus
17945 extern "C"
17946 #endif
17947 char openpty ();
17949 main ()
17951 return openpty ();
17953 return 0;
17955 _ACEOF
17956 rm -f conftest.$ac_objext conftest$ac_exeext
17957 if { (ac_try="$ac_link"
17958 case "(($ac_try" in
17959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17960 *) ac_try_echo=$ac_try;;
17961 esac
17962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17963 (eval "$ac_link") 2>conftest.er1
17964 ac_status=$?
17965 grep -v '^ *+' conftest.er1 >conftest.err
17966 rm -f conftest.er1
17967 cat conftest.err >&5
17968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17969 (exit $ac_status); } && {
17970 test -z "$ac_c_werror_flag" ||
17971 test ! -s conftest.err
17972 } && test -s conftest$ac_exeext &&
17973 $as_test_x conftest$ac_exeext; then
17974 ac_cv_lib_bsd_openpty=yes
17975 else
17976 echo "$as_me: failed program was:" >&5
17977 sed 's/^/| /' conftest.$ac_ext >&5
17979 ac_cv_lib_bsd_openpty=no
17982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17983 conftest$ac_exeext conftest.$ac_ext
17984 LIBS=$ac_check_lib_save_LIBS
17986 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
17987 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6; }
17988 if test $ac_cv_lib_bsd_openpty = yes; then
17989 cat >>confdefs.h <<\_ACEOF
17990 #define HAVE_OPENPTY 1
17991 _ACEOF
17992 LIBS="$LIBS -lbsd"
18000 done
18003 for ac_func in forkpty
18005 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18006 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18007 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18008 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18009 echo $ECHO_N "(cached) $ECHO_C" >&6
18010 else
18011 cat >conftest.$ac_ext <<_ACEOF
18012 /* confdefs.h. */
18013 _ACEOF
18014 cat confdefs.h >>conftest.$ac_ext
18015 cat >>conftest.$ac_ext <<_ACEOF
18016 /* end confdefs.h. */
18017 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18018 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18019 #define $ac_func innocuous_$ac_func
18021 /* System header to define __stub macros and hopefully few prototypes,
18022 which can conflict with char $ac_func (); below.
18023 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18024 <limits.h> exists even on freestanding compilers. */
18026 #ifdef __STDC__
18027 # include <limits.h>
18028 #else
18029 # include <assert.h>
18030 #endif
18032 #undef $ac_func
18034 /* Override any GCC internal prototype to avoid an error.
18035 Use char because int might match the return type of a GCC
18036 builtin and then its argument prototype would still apply. */
18037 #ifdef __cplusplus
18038 extern "C"
18039 #endif
18040 char $ac_func ();
18041 /* The GNU C library defines this for functions which it implements
18042 to always fail with ENOSYS. Some functions are actually named
18043 something starting with __ and the normal name is an alias. */
18044 #if defined __stub_$ac_func || defined __stub___$ac_func
18045 choke me
18046 #endif
18049 main ()
18051 return $ac_func ();
18053 return 0;
18055 _ACEOF
18056 rm -f conftest.$ac_objext conftest$ac_exeext
18057 if { (ac_try="$ac_link"
18058 case "(($ac_try" in
18059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18060 *) ac_try_echo=$ac_try;;
18061 esac
18062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18063 (eval "$ac_link") 2>conftest.er1
18064 ac_status=$?
18065 grep -v '^ *+' conftest.er1 >conftest.err
18066 rm -f conftest.er1
18067 cat conftest.err >&5
18068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18069 (exit $ac_status); } && {
18070 test -z "$ac_c_werror_flag" ||
18071 test ! -s conftest.err
18072 } && test -s conftest$ac_exeext &&
18073 $as_test_x conftest$ac_exeext; then
18074 eval "$as_ac_var=yes"
18075 else
18076 echo "$as_me: failed program was:" >&5
18077 sed 's/^/| /' conftest.$ac_ext >&5
18079 eval "$as_ac_var=no"
18082 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18083 conftest$ac_exeext conftest.$ac_ext
18085 ac_res=`eval echo '${'$as_ac_var'}'`
18086 { echo "$as_me:$LINENO: result: $ac_res" >&5
18087 echo "${ECHO_T}$ac_res" >&6; }
18088 if test `eval echo '${'$as_ac_var'}'` = yes; then
18089 cat >>confdefs.h <<_ACEOF
18090 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18091 _ACEOF
18093 else
18094 { echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
18095 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6; }
18096 if test "${ac_cv_lib_util_forkpty+set}" = set; then
18097 echo $ECHO_N "(cached) $ECHO_C" >&6
18098 else
18099 ac_check_lib_save_LIBS=$LIBS
18100 LIBS="-lutil $LIBS"
18101 cat >conftest.$ac_ext <<_ACEOF
18102 /* confdefs.h. */
18103 _ACEOF
18104 cat confdefs.h >>conftest.$ac_ext
18105 cat >>conftest.$ac_ext <<_ACEOF
18106 /* end confdefs.h. */
18108 /* Override any GCC internal prototype to avoid an error.
18109 Use char because int might match the return type of a GCC
18110 builtin and then its argument prototype would still apply. */
18111 #ifdef __cplusplus
18112 extern "C"
18113 #endif
18114 char forkpty ();
18116 main ()
18118 return forkpty ();
18120 return 0;
18122 _ACEOF
18123 rm -f conftest.$ac_objext conftest$ac_exeext
18124 if { (ac_try="$ac_link"
18125 case "(($ac_try" in
18126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18127 *) ac_try_echo=$ac_try;;
18128 esac
18129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18130 (eval "$ac_link") 2>conftest.er1
18131 ac_status=$?
18132 grep -v '^ *+' conftest.er1 >conftest.err
18133 rm -f conftest.er1
18134 cat conftest.err >&5
18135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18136 (exit $ac_status); } && {
18137 test -z "$ac_c_werror_flag" ||
18138 test ! -s conftest.err
18139 } && test -s conftest$ac_exeext &&
18140 $as_test_x conftest$ac_exeext; then
18141 ac_cv_lib_util_forkpty=yes
18142 else
18143 echo "$as_me: failed program was:" >&5
18144 sed 's/^/| /' conftest.$ac_ext >&5
18146 ac_cv_lib_util_forkpty=no
18149 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18150 conftest$ac_exeext conftest.$ac_ext
18151 LIBS=$ac_check_lib_save_LIBS
18153 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
18154 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6; }
18155 if test $ac_cv_lib_util_forkpty = yes; then
18156 cat >>confdefs.h <<\_ACEOF
18157 #define HAVE_FORKPTY 1
18158 _ACEOF
18159 LIBS="$LIBS -lutil"
18160 else
18161 { echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
18162 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6; }
18163 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
18164 echo $ECHO_N "(cached) $ECHO_C" >&6
18165 else
18166 ac_check_lib_save_LIBS=$LIBS
18167 LIBS="-lbsd $LIBS"
18168 cat >conftest.$ac_ext <<_ACEOF
18169 /* confdefs.h. */
18170 _ACEOF
18171 cat confdefs.h >>conftest.$ac_ext
18172 cat >>conftest.$ac_ext <<_ACEOF
18173 /* end confdefs.h. */
18175 /* Override any GCC internal prototype to avoid an error.
18176 Use char because int might match the return type of a GCC
18177 builtin and then its argument prototype would still apply. */
18178 #ifdef __cplusplus
18179 extern "C"
18180 #endif
18181 char forkpty ();
18183 main ()
18185 return forkpty ();
18187 return 0;
18189 _ACEOF
18190 rm -f conftest.$ac_objext conftest$ac_exeext
18191 if { (ac_try="$ac_link"
18192 case "(($ac_try" in
18193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18194 *) ac_try_echo=$ac_try;;
18195 esac
18196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18197 (eval "$ac_link") 2>conftest.er1
18198 ac_status=$?
18199 grep -v '^ *+' conftest.er1 >conftest.err
18200 rm -f conftest.er1
18201 cat conftest.err >&5
18202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18203 (exit $ac_status); } && {
18204 test -z "$ac_c_werror_flag" ||
18205 test ! -s conftest.err
18206 } && test -s conftest$ac_exeext &&
18207 $as_test_x conftest$ac_exeext; then
18208 ac_cv_lib_bsd_forkpty=yes
18209 else
18210 echo "$as_me: failed program was:" >&5
18211 sed 's/^/| /' conftest.$ac_ext >&5
18213 ac_cv_lib_bsd_forkpty=no
18216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18217 conftest$ac_exeext conftest.$ac_ext
18218 LIBS=$ac_check_lib_save_LIBS
18220 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
18221 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6; }
18222 if test $ac_cv_lib_bsd_forkpty = yes; then
18223 cat >>confdefs.h <<\_ACEOF
18224 #define HAVE_FORKPTY 1
18225 _ACEOF
18226 LIBS="$LIBS -lbsd"
18234 done
18237 # Stuff for expat.
18239 for ac_func in memmove
18241 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18242 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18243 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18244 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18245 echo $ECHO_N "(cached) $ECHO_C" >&6
18246 else
18247 cat >conftest.$ac_ext <<_ACEOF
18248 /* confdefs.h. */
18249 _ACEOF
18250 cat confdefs.h >>conftest.$ac_ext
18251 cat >>conftest.$ac_ext <<_ACEOF
18252 /* end confdefs.h. */
18253 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18254 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18255 #define $ac_func innocuous_$ac_func
18257 /* System header to define __stub macros and hopefully few prototypes,
18258 which can conflict with char $ac_func (); below.
18259 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18260 <limits.h> exists even on freestanding compilers. */
18262 #ifdef __STDC__
18263 # include <limits.h>
18264 #else
18265 # include <assert.h>
18266 #endif
18268 #undef $ac_func
18270 /* Override any GCC internal prototype to avoid an error.
18271 Use char because int might match the return type of a GCC
18272 builtin and then its argument prototype would still apply. */
18273 #ifdef __cplusplus
18274 extern "C"
18275 #endif
18276 char $ac_func ();
18277 /* The GNU C library defines this for functions which it implements
18278 to always fail with ENOSYS. Some functions are actually named
18279 something starting with __ and the normal name is an alias. */
18280 #if defined __stub_$ac_func || defined __stub___$ac_func
18281 choke me
18282 #endif
18285 main ()
18287 return $ac_func ();
18289 return 0;
18291 _ACEOF
18292 rm -f conftest.$ac_objext conftest$ac_exeext
18293 if { (ac_try="$ac_link"
18294 case "(($ac_try" in
18295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18296 *) ac_try_echo=$ac_try;;
18297 esac
18298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18299 (eval "$ac_link") 2>conftest.er1
18300 ac_status=$?
18301 grep -v '^ *+' conftest.er1 >conftest.err
18302 rm -f conftest.er1
18303 cat conftest.err >&5
18304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18305 (exit $ac_status); } && {
18306 test -z "$ac_c_werror_flag" ||
18307 test ! -s conftest.err
18308 } && test -s conftest$ac_exeext &&
18309 $as_test_x conftest$ac_exeext; then
18310 eval "$as_ac_var=yes"
18311 else
18312 echo "$as_me: failed program was:" >&5
18313 sed 's/^/| /' conftest.$ac_ext >&5
18315 eval "$as_ac_var=no"
18318 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18319 conftest$ac_exeext conftest.$ac_ext
18321 ac_res=`eval echo '${'$as_ac_var'}'`
18322 { echo "$as_me:$LINENO: result: $ac_res" >&5
18323 echo "${ECHO_T}$ac_res" >&6; }
18324 if test `eval echo '${'$as_ac_var'}'` = yes; then
18325 cat >>confdefs.h <<_ACEOF
18326 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18327 _ACEOF
18330 done
18333 # check for long file support functions
18340 for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
18342 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18343 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18344 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18345 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18346 echo $ECHO_N "(cached) $ECHO_C" >&6
18347 else
18348 cat >conftest.$ac_ext <<_ACEOF
18349 /* confdefs.h. */
18350 _ACEOF
18351 cat confdefs.h >>conftest.$ac_ext
18352 cat >>conftest.$ac_ext <<_ACEOF
18353 /* end confdefs.h. */
18354 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18355 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18356 #define $ac_func innocuous_$ac_func
18358 /* System header to define __stub macros and hopefully few prototypes,
18359 which can conflict with char $ac_func (); below.
18360 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18361 <limits.h> exists even on freestanding compilers. */
18363 #ifdef __STDC__
18364 # include <limits.h>
18365 #else
18366 # include <assert.h>
18367 #endif
18369 #undef $ac_func
18371 /* Override any GCC internal prototype to avoid an error.
18372 Use char because int might match the return type of a GCC
18373 builtin and then its argument prototype would still apply. */
18374 #ifdef __cplusplus
18375 extern "C"
18376 #endif
18377 char $ac_func ();
18378 /* The GNU C library defines this for functions which it implements
18379 to always fail with ENOSYS. Some functions are actually named
18380 something starting with __ and the normal name is an alias. */
18381 #if defined __stub_$ac_func || defined __stub___$ac_func
18382 choke me
18383 #endif
18386 main ()
18388 return $ac_func ();
18390 return 0;
18392 _ACEOF
18393 rm -f conftest.$ac_objext conftest$ac_exeext
18394 if { (ac_try="$ac_link"
18395 case "(($ac_try" in
18396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18397 *) ac_try_echo=$ac_try;;
18398 esac
18399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18400 (eval "$ac_link") 2>conftest.er1
18401 ac_status=$?
18402 grep -v '^ *+' conftest.er1 >conftest.err
18403 rm -f conftest.er1
18404 cat conftest.err >&5
18405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18406 (exit $ac_status); } && {
18407 test -z "$ac_c_werror_flag" ||
18408 test ! -s conftest.err
18409 } && test -s conftest$ac_exeext &&
18410 $as_test_x conftest$ac_exeext; then
18411 eval "$as_ac_var=yes"
18412 else
18413 echo "$as_me: failed program was:" >&5
18414 sed 's/^/| /' conftest.$ac_ext >&5
18416 eval "$as_ac_var=no"
18419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18420 conftest$ac_exeext conftest.$ac_ext
18422 ac_res=`eval echo '${'$as_ac_var'}'`
18423 { echo "$as_me:$LINENO: result: $ac_res" >&5
18424 echo "${ECHO_T}$ac_res" >&6; }
18425 if test `eval echo '${'$as_ac_var'}'` = yes; then
18426 cat >>confdefs.h <<_ACEOF
18427 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18428 _ACEOF
18431 done
18437 for ac_func in dup2 getcwd strdup
18439 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18440 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18441 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18442 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18443 echo $ECHO_N "(cached) $ECHO_C" >&6
18444 else
18445 cat >conftest.$ac_ext <<_ACEOF
18446 /* confdefs.h. */
18447 _ACEOF
18448 cat confdefs.h >>conftest.$ac_ext
18449 cat >>conftest.$ac_ext <<_ACEOF
18450 /* end confdefs.h. */
18451 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18452 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18453 #define $ac_func innocuous_$ac_func
18455 /* System header to define __stub macros and hopefully few prototypes,
18456 which can conflict with char $ac_func (); below.
18457 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18458 <limits.h> exists even on freestanding compilers. */
18460 #ifdef __STDC__
18461 # include <limits.h>
18462 #else
18463 # include <assert.h>
18464 #endif
18466 #undef $ac_func
18468 /* Override any GCC internal prototype to avoid an error.
18469 Use char because int might match the return type of a GCC
18470 builtin and then its argument prototype would still apply. */
18471 #ifdef __cplusplus
18472 extern "C"
18473 #endif
18474 char $ac_func ();
18475 /* The GNU C library defines this for functions which it implements
18476 to always fail with ENOSYS. Some functions are actually named
18477 something starting with __ and the normal name is an alias. */
18478 #if defined __stub_$ac_func || defined __stub___$ac_func
18479 choke me
18480 #endif
18483 main ()
18485 return $ac_func ();
18487 return 0;
18489 _ACEOF
18490 rm -f conftest.$ac_objext conftest$ac_exeext
18491 if { (ac_try="$ac_link"
18492 case "(($ac_try" in
18493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18494 *) ac_try_echo=$ac_try;;
18495 esac
18496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18497 (eval "$ac_link") 2>conftest.er1
18498 ac_status=$?
18499 grep -v '^ *+' conftest.er1 >conftest.err
18500 rm -f conftest.er1
18501 cat conftest.err >&5
18502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18503 (exit $ac_status); } && {
18504 test -z "$ac_c_werror_flag" ||
18505 test ! -s conftest.err
18506 } && test -s conftest$ac_exeext &&
18507 $as_test_x conftest$ac_exeext; then
18508 eval "$as_ac_var=yes"
18509 else
18510 echo "$as_me: failed program was:" >&5
18511 sed 's/^/| /' conftest.$ac_ext >&5
18513 eval "$as_ac_var=no"
18516 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18517 conftest$ac_exeext conftest.$ac_ext
18519 ac_res=`eval echo '${'$as_ac_var'}'`
18520 { echo "$as_me:$LINENO: result: $ac_res" >&5
18521 echo "${ECHO_T}$ac_res" >&6; }
18522 if test `eval echo '${'$as_ac_var'}'` = yes; then
18523 cat >>confdefs.h <<_ACEOF
18524 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18525 _ACEOF
18527 else
18528 case " $LIBOBJS " in
18529 *" $ac_func.$ac_objext "* ) ;;
18530 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18532 esac
18535 done
18539 for ac_func in getpgrp
18541 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18542 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18543 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18544 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18545 echo $ECHO_N "(cached) $ECHO_C" >&6
18546 else
18547 cat >conftest.$ac_ext <<_ACEOF
18548 /* confdefs.h. */
18549 _ACEOF
18550 cat confdefs.h >>conftest.$ac_ext
18551 cat >>conftest.$ac_ext <<_ACEOF
18552 /* end confdefs.h. */
18553 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18554 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18555 #define $ac_func innocuous_$ac_func
18557 /* System header to define __stub macros and hopefully few prototypes,
18558 which can conflict with char $ac_func (); below.
18559 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18560 <limits.h> exists even on freestanding compilers. */
18562 #ifdef __STDC__
18563 # include <limits.h>
18564 #else
18565 # include <assert.h>
18566 #endif
18568 #undef $ac_func
18570 /* Override any GCC internal prototype to avoid an error.
18571 Use char because int might match the return type of a GCC
18572 builtin and then its argument prototype would still apply. */
18573 #ifdef __cplusplus
18574 extern "C"
18575 #endif
18576 char $ac_func ();
18577 /* The GNU C library defines this for functions which it implements
18578 to always fail with ENOSYS. Some functions are actually named
18579 something starting with __ and the normal name is an alias. */
18580 #if defined __stub_$ac_func || defined __stub___$ac_func
18581 choke me
18582 #endif
18585 main ()
18587 return $ac_func ();
18589 return 0;
18591 _ACEOF
18592 rm -f conftest.$ac_objext conftest$ac_exeext
18593 if { (ac_try="$ac_link"
18594 case "(($ac_try" in
18595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18596 *) ac_try_echo=$ac_try;;
18597 esac
18598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18599 (eval "$ac_link") 2>conftest.er1
18600 ac_status=$?
18601 grep -v '^ *+' conftest.er1 >conftest.err
18602 rm -f conftest.er1
18603 cat conftest.err >&5
18604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18605 (exit $ac_status); } && {
18606 test -z "$ac_c_werror_flag" ||
18607 test ! -s conftest.err
18608 } && test -s conftest$ac_exeext &&
18609 $as_test_x conftest$ac_exeext; then
18610 eval "$as_ac_var=yes"
18611 else
18612 echo "$as_me: failed program was:" >&5
18613 sed 's/^/| /' conftest.$ac_ext >&5
18615 eval "$as_ac_var=no"
18618 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18619 conftest$ac_exeext conftest.$ac_ext
18621 ac_res=`eval echo '${'$as_ac_var'}'`
18622 { echo "$as_me:$LINENO: result: $ac_res" >&5
18623 echo "${ECHO_T}$ac_res" >&6; }
18624 if test `eval echo '${'$as_ac_var'}'` = yes; then
18625 cat >>confdefs.h <<_ACEOF
18626 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18627 _ACEOF
18628 cat >conftest.$ac_ext <<_ACEOF
18629 /* confdefs.h. */
18630 _ACEOF
18631 cat confdefs.h >>conftest.$ac_ext
18632 cat >>conftest.$ac_ext <<_ACEOF
18633 /* end confdefs.h. */
18634 #include <unistd.h>
18636 main ()
18638 getpgrp(0);
18640 return 0;
18642 _ACEOF
18643 rm -f conftest.$ac_objext
18644 if { (ac_try="$ac_compile"
18645 case "(($ac_try" in
18646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18647 *) ac_try_echo=$ac_try;;
18648 esac
18649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18650 (eval "$ac_compile") 2>conftest.er1
18651 ac_status=$?
18652 grep -v '^ *+' conftest.er1 >conftest.err
18653 rm -f conftest.er1
18654 cat conftest.err >&5
18655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18656 (exit $ac_status); } && {
18657 test -z "$ac_c_werror_flag" ||
18658 test ! -s conftest.err
18659 } && test -s conftest.$ac_objext; then
18661 cat >>confdefs.h <<\_ACEOF
18662 #define GETPGRP_HAVE_ARG 1
18663 _ACEOF
18666 else
18667 echo "$as_me: failed program was:" >&5
18668 sed 's/^/| /' conftest.$ac_ext >&5
18673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18676 done
18679 for ac_func in setpgrp
18681 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18682 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18683 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18684 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18685 echo $ECHO_N "(cached) $ECHO_C" >&6
18686 else
18687 cat >conftest.$ac_ext <<_ACEOF
18688 /* confdefs.h. */
18689 _ACEOF
18690 cat confdefs.h >>conftest.$ac_ext
18691 cat >>conftest.$ac_ext <<_ACEOF
18692 /* end confdefs.h. */
18693 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18694 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18695 #define $ac_func innocuous_$ac_func
18697 /* System header to define __stub macros and hopefully few prototypes,
18698 which can conflict with char $ac_func (); below.
18699 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18700 <limits.h> exists even on freestanding compilers. */
18702 #ifdef __STDC__
18703 # include <limits.h>
18704 #else
18705 # include <assert.h>
18706 #endif
18708 #undef $ac_func
18710 /* Override any GCC internal prototype to avoid an error.
18711 Use char because int might match the return type of a GCC
18712 builtin and then its argument prototype would still apply. */
18713 #ifdef __cplusplus
18714 extern "C"
18715 #endif
18716 char $ac_func ();
18717 /* The GNU C library defines this for functions which it implements
18718 to always fail with ENOSYS. Some functions are actually named
18719 something starting with __ and the normal name is an alias. */
18720 #if defined __stub_$ac_func || defined __stub___$ac_func
18721 choke me
18722 #endif
18725 main ()
18727 return $ac_func ();
18729 return 0;
18731 _ACEOF
18732 rm -f conftest.$ac_objext conftest$ac_exeext
18733 if { (ac_try="$ac_link"
18734 case "(($ac_try" in
18735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18736 *) ac_try_echo=$ac_try;;
18737 esac
18738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18739 (eval "$ac_link") 2>conftest.er1
18740 ac_status=$?
18741 grep -v '^ *+' conftest.er1 >conftest.err
18742 rm -f conftest.er1
18743 cat conftest.err >&5
18744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18745 (exit $ac_status); } && {
18746 test -z "$ac_c_werror_flag" ||
18747 test ! -s conftest.err
18748 } && test -s conftest$ac_exeext &&
18749 $as_test_x conftest$ac_exeext; then
18750 eval "$as_ac_var=yes"
18751 else
18752 echo "$as_me: failed program was:" >&5
18753 sed 's/^/| /' conftest.$ac_ext >&5
18755 eval "$as_ac_var=no"
18758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18759 conftest$ac_exeext conftest.$ac_ext
18761 ac_res=`eval echo '${'$as_ac_var'}'`
18762 { echo "$as_me:$LINENO: result: $ac_res" >&5
18763 echo "${ECHO_T}$ac_res" >&6; }
18764 if test `eval echo '${'$as_ac_var'}'` = yes; then
18765 cat >>confdefs.h <<_ACEOF
18766 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18767 _ACEOF
18768 cat >conftest.$ac_ext <<_ACEOF
18769 /* confdefs.h. */
18770 _ACEOF
18771 cat confdefs.h >>conftest.$ac_ext
18772 cat >>conftest.$ac_ext <<_ACEOF
18773 /* end confdefs.h. */
18774 #include <unistd.h>
18776 main ()
18778 setpgrp(0,0);
18780 return 0;
18782 _ACEOF
18783 rm -f conftest.$ac_objext
18784 if { (ac_try="$ac_compile"
18785 case "(($ac_try" in
18786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18787 *) ac_try_echo=$ac_try;;
18788 esac
18789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18790 (eval "$ac_compile") 2>conftest.er1
18791 ac_status=$?
18792 grep -v '^ *+' conftest.er1 >conftest.err
18793 rm -f conftest.er1
18794 cat conftest.err >&5
18795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18796 (exit $ac_status); } && {
18797 test -z "$ac_c_werror_flag" ||
18798 test ! -s conftest.err
18799 } && test -s conftest.$ac_objext; then
18801 cat >>confdefs.h <<\_ACEOF
18802 #define SETPGRP_HAVE_ARG 1
18803 _ACEOF
18806 else
18807 echo "$as_me: failed program was:" >&5
18808 sed 's/^/| /' conftest.$ac_ext >&5
18813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18816 done
18819 for ac_func in gettimeofday
18821 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18822 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18823 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18824 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18825 echo $ECHO_N "(cached) $ECHO_C" >&6
18826 else
18827 cat >conftest.$ac_ext <<_ACEOF
18828 /* confdefs.h. */
18829 _ACEOF
18830 cat confdefs.h >>conftest.$ac_ext
18831 cat >>conftest.$ac_ext <<_ACEOF
18832 /* end confdefs.h. */
18833 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18834 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18835 #define $ac_func innocuous_$ac_func
18837 /* System header to define __stub macros and hopefully few prototypes,
18838 which can conflict with char $ac_func (); below.
18839 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18840 <limits.h> exists even on freestanding compilers. */
18842 #ifdef __STDC__
18843 # include <limits.h>
18844 #else
18845 # include <assert.h>
18846 #endif
18848 #undef $ac_func
18850 /* Override any GCC internal prototype to avoid an error.
18851 Use char because int might match the return type of a GCC
18852 builtin and then its argument prototype would still apply. */
18853 #ifdef __cplusplus
18854 extern "C"
18855 #endif
18856 char $ac_func ();
18857 /* The GNU C library defines this for functions which it implements
18858 to always fail with ENOSYS. Some functions are actually named
18859 something starting with __ and the normal name is an alias. */
18860 #if defined __stub_$ac_func || defined __stub___$ac_func
18861 choke me
18862 #endif
18865 main ()
18867 return $ac_func ();
18869 return 0;
18871 _ACEOF
18872 rm -f conftest.$ac_objext conftest$ac_exeext
18873 if { (ac_try="$ac_link"
18874 case "(($ac_try" in
18875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18876 *) ac_try_echo=$ac_try;;
18877 esac
18878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18879 (eval "$ac_link") 2>conftest.er1
18880 ac_status=$?
18881 grep -v '^ *+' conftest.er1 >conftest.err
18882 rm -f conftest.er1
18883 cat conftest.err >&5
18884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18885 (exit $ac_status); } && {
18886 test -z "$ac_c_werror_flag" ||
18887 test ! -s conftest.err
18888 } && test -s conftest$ac_exeext &&
18889 $as_test_x conftest$ac_exeext; then
18890 eval "$as_ac_var=yes"
18891 else
18892 echo "$as_me: failed program was:" >&5
18893 sed 's/^/| /' conftest.$ac_ext >&5
18895 eval "$as_ac_var=no"
18898 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18899 conftest$ac_exeext conftest.$ac_ext
18901 ac_res=`eval echo '${'$as_ac_var'}'`
18902 { echo "$as_me:$LINENO: result: $ac_res" >&5
18903 echo "${ECHO_T}$ac_res" >&6; }
18904 if test `eval echo '${'$as_ac_var'}'` = yes; then
18905 cat >>confdefs.h <<_ACEOF
18906 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18907 _ACEOF
18908 cat >conftest.$ac_ext <<_ACEOF
18909 /* confdefs.h. */
18910 _ACEOF
18911 cat confdefs.h >>conftest.$ac_ext
18912 cat >>conftest.$ac_ext <<_ACEOF
18913 /* end confdefs.h. */
18914 #include <sys/time.h>
18916 main ()
18918 gettimeofday((struct timeval*)0,(struct timezone*)0);
18920 return 0;
18922 _ACEOF
18923 rm -f conftest.$ac_objext
18924 if { (ac_try="$ac_compile"
18925 case "(($ac_try" in
18926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18927 *) ac_try_echo=$ac_try;;
18928 esac
18929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18930 (eval "$ac_compile") 2>conftest.er1
18931 ac_status=$?
18932 grep -v '^ *+' conftest.er1 >conftest.err
18933 rm -f conftest.er1
18934 cat conftest.err >&5
18935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18936 (exit $ac_status); } && {
18937 test -z "$ac_c_werror_flag" ||
18938 test ! -s conftest.err
18939 } && test -s conftest.$ac_objext; then
18941 else
18942 echo "$as_me: failed program was:" >&5
18943 sed 's/^/| /' conftest.$ac_ext >&5
18946 cat >>confdefs.h <<\_ACEOF
18947 #define GETTIMEOFDAY_NO_TZ 1
18948 _ACEOF
18953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18956 done
18959 { echo "$as_me:$LINENO: checking for major" >&5
18960 echo $ECHO_N "checking for major... $ECHO_C" >&6; }
18961 cat >conftest.$ac_ext <<_ACEOF
18962 /* confdefs.h. */
18963 _ACEOF
18964 cat confdefs.h >>conftest.$ac_ext
18965 cat >>conftest.$ac_ext <<_ACEOF
18966 /* end confdefs.h. */
18968 #if defined(MAJOR_IN_MKDEV)
18969 #include <sys/mkdev.h>
18970 #elif defined(MAJOR_IN_SYSMACROS)
18971 #include <sys/sysmacros.h>
18972 #else
18973 #include <sys/types.h>
18974 #endif
18977 main ()
18980 makedev(major(0),minor(0));
18983 return 0;
18985 _ACEOF
18986 rm -f conftest.$ac_objext conftest$ac_exeext
18987 if { (ac_try="$ac_link"
18988 case "(($ac_try" in
18989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18990 *) ac_try_echo=$ac_try;;
18991 esac
18992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18993 (eval "$ac_link") 2>conftest.er1
18994 ac_status=$?
18995 grep -v '^ *+' conftest.er1 >conftest.err
18996 rm -f conftest.er1
18997 cat conftest.err >&5
18998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18999 (exit $ac_status); } && {
19000 test -z "$ac_c_werror_flag" ||
19001 test ! -s conftest.err
19002 } && test -s conftest$ac_exeext &&
19003 $as_test_x conftest$ac_exeext; then
19006 cat >>confdefs.h <<\_ACEOF
19007 #define HAVE_DEVICE_MACROS 1
19008 _ACEOF
19010 { echo "$as_me:$LINENO: result: yes" >&5
19011 echo "${ECHO_T}yes" >&6; }
19013 else
19014 echo "$as_me: failed program was:" >&5
19015 sed 's/^/| /' conftest.$ac_ext >&5
19018 { echo "$as_me:$LINENO: result: no" >&5
19019 echo "${ECHO_T}no" >&6; }
19023 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19024 conftest$ac_exeext conftest.$ac_ext
19026 # On OSF/1 V5.1, getaddrinfo is available, but a define
19027 # for [no]getaddrinfo in netdb.h.
19028 { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
19029 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
19030 cat >conftest.$ac_ext <<_ACEOF
19031 /* confdefs.h. */
19032 _ACEOF
19033 cat confdefs.h >>conftest.$ac_ext
19034 cat >>conftest.$ac_ext <<_ACEOF
19035 /* end confdefs.h. */
19037 #include <sys/types.h>
19038 #include <sys/socket.h>
19039 #include <netdb.h>
19040 #include <stdio.h>
19043 main ()
19046 getaddrinfo(NULL, NULL, NULL, NULL);
19049 return 0;
19051 _ACEOF
19052 rm -f conftest.$ac_objext conftest$ac_exeext
19053 if { (ac_try="$ac_link"
19054 case "(($ac_try" in
19055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19056 *) ac_try_echo=$ac_try;;
19057 esac
19058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19059 (eval "$ac_link") 2>conftest.er1
19060 ac_status=$?
19061 grep -v '^ *+' conftest.er1 >conftest.err
19062 rm -f conftest.er1
19063 cat conftest.err >&5
19064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19065 (exit $ac_status); } && {
19066 test -z "$ac_c_werror_flag" ||
19067 test ! -s conftest.err
19068 } && test -s conftest$ac_exeext &&
19069 $as_test_x conftest$ac_exeext; then
19071 { echo "$as_me:$LINENO: result: yes" >&5
19072 echo "${ECHO_T}yes" >&6; }
19073 { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
19074 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
19075 if test "$cross_compiling" = yes; then
19076 { echo "$as_me:$LINENO: result: buggy" >&5
19077 echo "${ECHO_T}buggy" >&6; }
19078 buggygetaddrinfo=yes
19079 else
19080 cat >conftest.$ac_ext <<_ACEOF
19081 /* confdefs.h. */
19082 _ACEOF
19083 cat confdefs.h >>conftest.$ac_ext
19084 cat >>conftest.$ac_ext <<_ACEOF
19085 /* end confdefs.h. */
19087 #include <sys/types.h>
19088 #include <netdb.h>
19089 #include <string.h>
19090 #include <sys/socket.h>
19091 #include <netinet/in.h>
19093 main()
19095 int passive, gaierr, inet4 = 0, inet6 = 0;
19096 struct addrinfo hints, *ai, *aitop;
19097 char straddr[INET6_ADDRSTRLEN], strport[16];
19099 for (passive = 0; passive <= 1; passive++) {
19100 memset(&hints, 0, sizeof(hints));
19101 hints.ai_family = AF_UNSPEC;
19102 hints.ai_flags = passive ? AI_PASSIVE : 0;
19103 hints.ai_socktype = SOCK_STREAM;
19104 hints.ai_protocol = IPPROTO_TCP;
19105 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
19106 (void)gai_strerror(gaierr);
19107 goto bad;
19109 for (ai = aitop; ai; ai = ai->ai_next) {
19110 if (ai->ai_addr == NULL ||
19111 ai->ai_addrlen == 0 ||
19112 getnameinfo(ai->ai_addr, ai->ai_addrlen,
19113 straddr, sizeof(straddr), strport, sizeof(strport),
19114 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
19115 goto bad;
19117 switch (ai->ai_family) {
19118 case AF_INET:
19119 if (strcmp(strport, "54321") != 0) {
19120 goto bad;
19122 if (passive) {
19123 if (strcmp(straddr, "0.0.0.0") != 0) {
19124 goto bad;
19126 } else {
19127 if (strcmp(straddr, "127.0.0.1") != 0) {
19128 goto bad;
19131 inet4++;
19132 break;
19133 case AF_INET6:
19134 if (strcmp(strport, "54321") != 0) {
19135 goto bad;
19137 if (passive) {
19138 if (strcmp(straddr, "::") != 0) {
19139 goto bad;
19141 } else {
19142 if (strcmp(straddr, "::1") != 0) {
19143 goto bad;
19146 inet6++;
19147 break;
19148 case AF_UNSPEC:
19149 goto bad;
19150 break;
19151 default:
19152 /* another family support? */
19153 break;
19158 if (!(inet4 == 0 || inet4 == 2))
19159 goto bad;
19160 if (!(inet6 == 0 || inet6 == 2))
19161 goto bad;
19163 if (aitop)
19164 freeaddrinfo(aitop);
19165 exit(0);
19167 bad:
19168 if (aitop)
19169 freeaddrinfo(aitop);
19170 exit(1);
19173 _ACEOF
19174 rm -f conftest$ac_exeext
19175 if { (ac_try="$ac_link"
19176 case "(($ac_try" in
19177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19178 *) ac_try_echo=$ac_try;;
19179 esac
19180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19181 (eval "$ac_link") 2>&5
19182 ac_status=$?
19183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19184 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19185 { (case "(($ac_try" in
19186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19187 *) ac_try_echo=$ac_try;;
19188 esac
19189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19190 (eval "$ac_try") 2>&5
19191 ac_status=$?
19192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19193 (exit $ac_status); }; }; then
19194 { echo "$as_me:$LINENO: result: good" >&5
19195 echo "${ECHO_T}good" >&6; }
19196 buggygetaddrinfo=no
19197 else
19198 echo "$as_me: program exited with status $ac_status" >&5
19199 echo "$as_me: failed program was:" >&5
19200 sed 's/^/| /' conftest.$ac_ext >&5
19202 ( exit $ac_status )
19203 { echo "$as_me:$LINENO: result: buggy" >&5
19204 echo "${ECHO_T}buggy" >&6; }
19205 buggygetaddrinfo=yes
19207 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19211 else
19212 echo "$as_me: failed program was:" >&5
19213 sed 's/^/| /' conftest.$ac_ext >&5
19216 { echo "$as_me:$LINENO: result: no" >&5
19217 echo "${ECHO_T}no" >&6; }
19218 buggygetaddrinfo=yes
19222 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19223 conftest$ac_exeext conftest.$ac_ext
19225 if test "$buggygetaddrinfo" = "yes"; then
19226 if test "$ipv6" = "yes"; then
19227 echo 'Fatal: You must get working getaddrinfo() function.'
19228 echo ' or you can specify "--disable-ipv6"'.
19229 exit 1
19231 else
19233 cat >>confdefs.h <<\_ACEOF
19234 #define HAVE_GETADDRINFO 1
19235 _ACEOF
19239 for ac_func in getnameinfo
19241 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19242 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19243 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19244 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19245 echo $ECHO_N "(cached) $ECHO_C" >&6
19246 else
19247 cat >conftest.$ac_ext <<_ACEOF
19248 /* confdefs.h. */
19249 _ACEOF
19250 cat confdefs.h >>conftest.$ac_ext
19251 cat >>conftest.$ac_ext <<_ACEOF
19252 /* end confdefs.h. */
19253 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19254 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19255 #define $ac_func innocuous_$ac_func
19257 /* System header to define __stub macros and hopefully few prototypes,
19258 which can conflict with char $ac_func (); below.
19259 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19260 <limits.h> exists even on freestanding compilers. */
19262 #ifdef __STDC__
19263 # include <limits.h>
19264 #else
19265 # include <assert.h>
19266 #endif
19268 #undef $ac_func
19270 /* Override any GCC internal prototype to avoid an error.
19271 Use char because int might match the return type of a GCC
19272 builtin and then its argument prototype would still apply. */
19273 #ifdef __cplusplus
19274 extern "C"
19275 #endif
19276 char $ac_func ();
19277 /* The GNU C library defines this for functions which it implements
19278 to always fail with ENOSYS. Some functions are actually named
19279 something starting with __ and the normal name is an alias. */
19280 #if defined __stub_$ac_func || defined __stub___$ac_func
19281 choke me
19282 #endif
19285 main ()
19287 return $ac_func ();
19289 return 0;
19291 _ACEOF
19292 rm -f conftest.$ac_objext conftest$ac_exeext
19293 if { (ac_try="$ac_link"
19294 case "(($ac_try" in
19295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19296 *) ac_try_echo=$ac_try;;
19297 esac
19298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19299 (eval "$ac_link") 2>conftest.er1
19300 ac_status=$?
19301 grep -v '^ *+' conftest.er1 >conftest.err
19302 rm -f conftest.er1
19303 cat conftest.err >&5
19304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19305 (exit $ac_status); } && {
19306 test -z "$ac_c_werror_flag" ||
19307 test ! -s conftest.err
19308 } && test -s conftest$ac_exeext &&
19309 $as_test_x conftest$ac_exeext; then
19310 eval "$as_ac_var=yes"
19311 else
19312 echo "$as_me: failed program was:" >&5
19313 sed 's/^/| /' conftest.$ac_ext >&5
19315 eval "$as_ac_var=no"
19318 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19319 conftest$ac_exeext conftest.$ac_ext
19321 ac_res=`eval echo '${'$as_ac_var'}'`
19322 { echo "$as_me:$LINENO: result: $ac_res" >&5
19323 echo "${ECHO_T}$ac_res" >&6; }
19324 if test `eval echo '${'$as_ac_var'}'` = yes; then
19325 cat >>confdefs.h <<_ACEOF
19326 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19327 _ACEOF
19330 done
19333 # checks for structures
19334 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19335 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
19336 if test "${ac_cv_header_time+set}" = set; then
19337 echo $ECHO_N "(cached) $ECHO_C" >&6
19338 else
19339 cat >conftest.$ac_ext <<_ACEOF
19340 /* confdefs.h. */
19341 _ACEOF
19342 cat confdefs.h >>conftest.$ac_ext
19343 cat >>conftest.$ac_ext <<_ACEOF
19344 /* end confdefs.h. */
19345 #include <sys/types.h>
19346 #include <sys/time.h>
19347 #include <time.h>
19350 main ()
19352 if ((struct tm *) 0)
19353 return 0;
19355 return 0;
19357 _ACEOF
19358 rm -f conftest.$ac_objext
19359 if { (ac_try="$ac_compile"
19360 case "(($ac_try" in
19361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19362 *) ac_try_echo=$ac_try;;
19363 esac
19364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19365 (eval "$ac_compile") 2>conftest.er1
19366 ac_status=$?
19367 grep -v '^ *+' conftest.er1 >conftest.err
19368 rm -f conftest.er1
19369 cat conftest.err >&5
19370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19371 (exit $ac_status); } && {
19372 test -z "$ac_c_werror_flag" ||
19373 test ! -s conftest.err
19374 } && test -s conftest.$ac_objext; then
19375 ac_cv_header_time=yes
19376 else
19377 echo "$as_me: failed program was:" >&5
19378 sed 's/^/| /' conftest.$ac_ext >&5
19380 ac_cv_header_time=no
19383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19385 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19386 echo "${ECHO_T}$ac_cv_header_time" >&6; }
19387 if test $ac_cv_header_time = yes; then
19389 cat >>confdefs.h <<\_ACEOF
19390 #define TIME_WITH_SYS_TIME 1
19391 _ACEOF
19395 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
19396 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
19397 if test "${ac_cv_struct_tm+set}" = set; then
19398 echo $ECHO_N "(cached) $ECHO_C" >&6
19399 else
19400 cat >conftest.$ac_ext <<_ACEOF
19401 /* confdefs.h. */
19402 _ACEOF
19403 cat confdefs.h >>conftest.$ac_ext
19404 cat >>conftest.$ac_ext <<_ACEOF
19405 /* end confdefs.h. */
19406 #include <sys/types.h>
19407 #include <time.h>
19410 main ()
19412 struct tm tm;
19413 int *p = &tm.tm_sec;
19414 return !p;
19416 return 0;
19418 _ACEOF
19419 rm -f conftest.$ac_objext
19420 if { (ac_try="$ac_compile"
19421 case "(($ac_try" in
19422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19423 *) ac_try_echo=$ac_try;;
19424 esac
19425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19426 (eval "$ac_compile") 2>conftest.er1
19427 ac_status=$?
19428 grep -v '^ *+' conftest.er1 >conftest.err
19429 rm -f conftest.er1
19430 cat conftest.err >&5
19431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19432 (exit $ac_status); } && {
19433 test -z "$ac_c_werror_flag" ||
19434 test ! -s conftest.err
19435 } && test -s conftest.$ac_objext; then
19436 ac_cv_struct_tm=time.h
19437 else
19438 echo "$as_me: failed program was:" >&5
19439 sed 's/^/| /' conftest.$ac_ext >&5
19441 ac_cv_struct_tm=sys/time.h
19444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19446 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
19447 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
19448 if test $ac_cv_struct_tm = sys/time.h; then
19450 cat >>confdefs.h <<\_ACEOF
19451 #define TM_IN_SYS_TIME 1
19452 _ACEOF
19456 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
19457 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
19458 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
19459 echo $ECHO_N "(cached) $ECHO_C" >&6
19460 else
19461 cat >conftest.$ac_ext <<_ACEOF
19462 /* confdefs.h. */
19463 _ACEOF
19464 cat confdefs.h >>conftest.$ac_ext
19465 cat >>conftest.$ac_ext <<_ACEOF
19466 /* end confdefs.h. */
19467 #include <sys/types.h>
19468 #include <$ac_cv_struct_tm>
19472 main ()
19474 static struct tm ac_aggr;
19475 if (ac_aggr.tm_zone)
19476 return 0;
19478 return 0;
19480 _ACEOF
19481 rm -f conftest.$ac_objext
19482 if { (ac_try="$ac_compile"
19483 case "(($ac_try" in
19484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19485 *) ac_try_echo=$ac_try;;
19486 esac
19487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19488 (eval "$ac_compile") 2>conftest.er1
19489 ac_status=$?
19490 grep -v '^ *+' conftest.er1 >conftest.err
19491 rm -f conftest.er1
19492 cat conftest.err >&5
19493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19494 (exit $ac_status); } && {
19495 test -z "$ac_c_werror_flag" ||
19496 test ! -s conftest.err
19497 } && test -s conftest.$ac_objext; then
19498 ac_cv_member_struct_tm_tm_zone=yes
19499 else
19500 echo "$as_me: failed program was:" >&5
19501 sed 's/^/| /' conftest.$ac_ext >&5
19503 cat >conftest.$ac_ext <<_ACEOF
19504 /* confdefs.h. */
19505 _ACEOF
19506 cat confdefs.h >>conftest.$ac_ext
19507 cat >>conftest.$ac_ext <<_ACEOF
19508 /* end confdefs.h. */
19509 #include <sys/types.h>
19510 #include <$ac_cv_struct_tm>
19514 main ()
19516 static struct tm ac_aggr;
19517 if (sizeof ac_aggr.tm_zone)
19518 return 0;
19520 return 0;
19522 _ACEOF
19523 rm -f conftest.$ac_objext
19524 if { (ac_try="$ac_compile"
19525 case "(($ac_try" in
19526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19527 *) ac_try_echo=$ac_try;;
19528 esac
19529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19530 (eval "$ac_compile") 2>conftest.er1
19531 ac_status=$?
19532 grep -v '^ *+' conftest.er1 >conftest.err
19533 rm -f conftest.er1
19534 cat conftest.err >&5
19535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19536 (exit $ac_status); } && {
19537 test -z "$ac_c_werror_flag" ||
19538 test ! -s conftest.err
19539 } && test -s conftest.$ac_objext; then
19540 ac_cv_member_struct_tm_tm_zone=yes
19541 else
19542 echo "$as_me: failed program was:" >&5
19543 sed 's/^/| /' conftest.$ac_ext >&5
19545 ac_cv_member_struct_tm_tm_zone=no
19548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19553 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
19554 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
19555 if test $ac_cv_member_struct_tm_tm_zone = yes; then
19557 cat >>confdefs.h <<_ACEOF
19558 #define HAVE_STRUCT_TM_TM_ZONE 1
19559 _ACEOF
19564 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
19566 cat >>confdefs.h <<\_ACEOF
19567 #define HAVE_TM_ZONE 1
19568 _ACEOF
19570 else
19571 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
19572 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
19573 if test "${ac_cv_have_decl_tzname+set}" = set; then
19574 echo $ECHO_N "(cached) $ECHO_C" >&6
19575 else
19576 cat >conftest.$ac_ext <<_ACEOF
19577 /* confdefs.h. */
19578 _ACEOF
19579 cat confdefs.h >>conftest.$ac_ext
19580 cat >>conftest.$ac_ext <<_ACEOF
19581 /* end confdefs.h. */
19582 #include <time.h>
19585 main ()
19587 #ifndef tzname
19588 (void) tzname;
19589 #endif
19592 return 0;
19594 _ACEOF
19595 rm -f conftest.$ac_objext
19596 if { (ac_try="$ac_compile"
19597 case "(($ac_try" in
19598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19599 *) ac_try_echo=$ac_try;;
19600 esac
19601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19602 (eval "$ac_compile") 2>conftest.er1
19603 ac_status=$?
19604 grep -v '^ *+' conftest.er1 >conftest.err
19605 rm -f conftest.er1
19606 cat conftest.err >&5
19607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19608 (exit $ac_status); } && {
19609 test -z "$ac_c_werror_flag" ||
19610 test ! -s conftest.err
19611 } && test -s conftest.$ac_objext; then
19612 ac_cv_have_decl_tzname=yes
19613 else
19614 echo "$as_me: failed program was:" >&5
19615 sed 's/^/| /' conftest.$ac_ext >&5
19617 ac_cv_have_decl_tzname=no
19620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19622 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
19623 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
19624 if test $ac_cv_have_decl_tzname = yes; then
19626 cat >>confdefs.h <<_ACEOF
19627 #define HAVE_DECL_TZNAME 1
19628 _ACEOF
19631 else
19632 cat >>confdefs.h <<_ACEOF
19633 #define HAVE_DECL_TZNAME 0
19634 _ACEOF
19640 { echo "$as_me:$LINENO: checking for tzname" >&5
19641 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
19642 if test "${ac_cv_var_tzname+set}" = set; then
19643 echo $ECHO_N "(cached) $ECHO_C" >&6
19644 else
19645 cat >conftest.$ac_ext <<_ACEOF
19646 /* confdefs.h. */
19647 _ACEOF
19648 cat confdefs.h >>conftest.$ac_ext
19649 cat >>conftest.$ac_ext <<_ACEOF
19650 /* end confdefs.h. */
19651 #include <time.h>
19652 #if !HAVE_DECL_TZNAME
19653 extern char *tzname[];
19654 #endif
19657 main ()
19659 return tzname[0][0];
19661 return 0;
19663 _ACEOF
19664 rm -f conftest.$ac_objext conftest$ac_exeext
19665 if { (ac_try="$ac_link"
19666 case "(($ac_try" in
19667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19668 *) ac_try_echo=$ac_try;;
19669 esac
19670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19671 (eval "$ac_link") 2>conftest.er1
19672 ac_status=$?
19673 grep -v '^ *+' conftest.er1 >conftest.err
19674 rm -f conftest.er1
19675 cat conftest.err >&5
19676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19677 (exit $ac_status); } && {
19678 test -z "$ac_c_werror_flag" ||
19679 test ! -s conftest.err
19680 } && test -s conftest$ac_exeext &&
19681 $as_test_x conftest$ac_exeext; then
19682 ac_cv_var_tzname=yes
19683 else
19684 echo "$as_me: failed program was:" >&5
19685 sed 's/^/| /' conftest.$ac_ext >&5
19687 ac_cv_var_tzname=no
19690 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19691 conftest$ac_exeext conftest.$ac_ext
19693 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
19694 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
19695 if test $ac_cv_var_tzname = yes; then
19697 cat >>confdefs.h <<\_ACEOF
19698 #define HAVE_TZNAME 1
19699 _ACEOF
19704 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
19705 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
19706 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
19707 echo $ECHO_N "(cached) $ECHO_C" >&6
19708 else
19709 cat >conftest.$ac_ext <<_ACEOF
19710 /* confdefs.h. */
19711 _ACEOF
19712 cat confdefs.h >>conftest.$ac_ext
19713 cat >>conftest.$ac_ext <<_ACEOF
19714 /* end confdefs.h. */
19715 $ac_includes_default
19717 main ()
19719 static struct stat ac_aggr;
19720 if (ac_aggr.st_rdev)
19721 return 0;
19723 return 0;
19725 _ACEOF
19726 rm -f conftest.$ac_objext
19727 if { (ac_try="$ac_compile"
19728 case "(($ac_try" in
19729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19730 *) ac_try_echo=$ac_try;;
19731 esac
19732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19733 (eval "$ac_compile") 2>conftest.er1
19734 ac_status=$?
19735 grep -v '^ *+' conftest.er1 >conftest.err
19736 rm -f conftest.er1
19737 cat conftest.err >&5
19738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19739 (exit $ac_status); } && {
19740 test -z "$ac_c_werror_flag" ||
19741 test ! -s conftest.err
19742 } && test -s conftest.$ac_objext; then
19743 ac_cv_member_struct_stat_st_rdev=yes
19744 else
19745 echo "$as_me: failed program was:" >&5
19746 sed 's/^/| /' conftest.$ac_ext >&5
19748 cat >conftest.$ac_ext <<_ACEOF
19749 /* confdefs.h. */
19750 _ACEOF
19751 cat confdefs.h >>conftest.$ac_ext
19752 cat >>conftest.$ac_ext <<_ACEOF
19753 /* end confdefs.h. */
19754 $ac_includes_default
19756 main ()
19758 static struct stat ac_aggr;
19759 if (sizeof ac_aggr.st_rdev)
19760 return 0;
19762 return 0;
19764 _ACEOF
19765 rm -f conftest.$ac_objext
19766 if { (ac_try="$ac_compile"
19767 case "(($ac_try" in
19768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19769 *) ac_try_echo=$ac_try;;
19770 esac
19771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19772 (eval "$ac_compile") 2>conftest.er1
19773 ac_status=$?
19774 grep -v '^ *+' conftest.er1 >conftest.err
19775 rm -f conftest.er1
19776 cat conftest.err >&5
19777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19778 (exit $ac_status); } && {
19779 test -z "$ac_c_werror_flag" ||
19780 test ! -s conftest.err
19781 } && test -s conftest.$ac_objext; then
19782 ac_cv_member_struct_stat_st_rdev=yes
19783 else
19784 echo "$as_me: failed program was:" >&5
19785 sed 's/^/| /' conftest.$ac_ext >&5
19787 ac_cv_member_struct_stat_st_rdev=no
19790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19795 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
19796 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
19797 if test $ac_cv_member_struct_stat_st_rdev = yes; then
19799 cat >>confdefs.h <<_ACEOF
19800 #define HAVE_STRUCT_STAT_ST_RDEV 1
19801 _ACEOF
19806 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
19807 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
19808 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
19809 echo $ECHO_N "(cached) $ECHO_C" >&6
19810 else
19811 cat >conftest.$ac_ext <<_ACEOF
19812 /* confdefs.h. */
19813 _ACEOF
19814 cat confdefs.h >>conftest.$ac_ext
19815 cat >>conftest.$ac_ext <<_ACEOF
19816 /* end confdefs.h. */
19817 $ac_includes_default
19819 main ()
19821 static struct stat ac_aggr;
19822 if (ac_aggr.st_blksize)
19823 return 0;
19825 return 0;
19827 _ACEOF
19828 rm -f conftest.$ac_objext
19829 if { (ac_try="$ac_compile"
19830 case "(($ac_try" in
19831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19832 *) ac_try_echo=$ac_try;;
19833 esac
19834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19835 (eval "$ac_compile") 2>conftest.er1
19836 ac_status=$?
19837 grep -v '^ *+' conftest.er1 >conftest.err
19838 rm -f conftest.er1
19839 cat conftest.err >&5
19840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19841 (exit $ac_status); } && {
19842 test -z "$ac_c_werror_flag" ||
19843 test ! -s conftest.err
19844 } && test -s conftest.$ac_objext; then
19845 ac_cv_member_struct_stat_st_blksize=yes
19846 else
19847 echo "$as_me: failed program was:" >&5
19848 sed 's/^/| /' conftest.$ac_ext >&5
19850 cat >conftest.$ac_ext <<_ACEOF
19851 /* confdefs.h. */
19852 _ACEOF
19853 cat confdefs.h >>conftest.$ac_ext
19854 cat >>conftest.$ac_ext <<_ACEOF
19855 /* end confdefs.h. */
19856 $ac_includes_default
19858 main ()
19860 static struct stat ac_aggr;
19861 if (sizeof ac_aggr.st_blksize)
19862 return 0;
19864 return 0;
19866 _ACEOF
19867 rm -f conftest.$ac_objext
19868 if { (ac_try="$ac_compile"
19869 case "(($ac_try" in
19870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19871 *) ac_try_echo=$ac_try;;
19872 esac
19873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19874 (eval "$ac_compile") 2>conftest.er1
19875 ac_status=$?
19876 grep -v '^ *+' conftest.er1 >conftest.err
19877 rm -f conftest.er1
19878 cat conftest.err >&5
19879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19880 (exit $ac_status); } && {
19881 test -z "$ac_c_werror_flag" ||
19882 test ! -s conftest.err
19883 } && test -s conftest.$ac_objext; then
19884 ac_cv_member_struct_stat_st_blksize=yes
19885 else
19886 echo "$as_me: failed program was:" >&5
19887 sed 's/^/| /' conftest.$ac_ext >&5
19889 ac_cv_member_struct_stat_st_blksize=no
19892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19897 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
19898 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
19899 if test $ac_cv_member_struct_stat_st_blksize = yes; then
19901 cat >>confdefs.h <<_ACEOF
19902 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
19903 _ACEOF
19908 { echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
19909 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6; }
19910 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
19911 echo $ECHO_N "(cached) $ECHO_C" >&6
19912 else
19913 cat >conftest.$ac_ext <<_ACEOF
19914 /* confdefs.h. */
19915 _ACEOF
19916 cat confdefs.h >>conftest.$ac_ext
19917 cat >>conftest.$ac_ext <<_ACEOF
19918 /* end confdefs.h. */
19919 $ac_includes_default
19921 main ()
19923 static struct stat ac_aggr;
19924 if (ac_aggr.st_flags)
19925 return 0;
19927 return 0;
19929 _ACEOF
19930 rm -f conftest.$ac_objext
19931 if { (ac_try="$ac_compile"
19932 case "(($ac_try" in
19933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19934 *) ac_try_echo=$ac_try;;
19935 esac
19936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19937 (eval "$ac_compile") 2>conftest.er1
19938 ac_status=$?
19939 grep -v '^ *+' conftest.er1 >conftest.err
19940 rm -f conftest.er1
19941 cat conftest.err >&5
19942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19943 (exit $ac_status); } && {
19944 test -z "$ac_c_werror_flag" ||
19945 test ! -s conftest.err
19946 } && test -s conftest.$ac_objext; then
19947 ac_cv_member_struct_stat_st_flags=yes
19948 else
19949 echo "$as_me: failed program was:" >&5
19950 sed 's/^/| /' conftest.$ac_ext >&5
19952 cat >conftest.$ac_ext <<_ACEOF
19953 /* confdefs.h. */
19954 _ACEOF
19955 cat confdefs.h >>conftest.$ac_ext
19956 cat >>conftest.$ac_ext <<_ACEOF
19957 /* end confdefs.h. */
19958 $ac_includes_default
19960 main ()
19962 static struct stat ac_aggr;
19963 if (sizeof ac_aggr.st_flags)
19964 return 0;
19966 return 0;
19968 _ACEOF
19969 rm -f conftest.$ac_objext
19970 if { (ac_try="$ac_compile"
19971 case "(($ac_try" in
19972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19973 *) ac_try_echo=$ac_try;;
19974 esac
19975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19976 (eval "$ac_compile") 2>conftest.er1
19977 ac_status=$?
19978 grep -v '^ *+' conftest.er1 >conftest.err
19979 rm -f conftest.er1
19980 cat conftest.err >&5
19981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19982 (exit $ac_status); } && {
19983 test -z "$ac_c_werror_flag" ||
19984 test ! -s conftest.err
19985 } && test -s conftest.$ac_objext; then
19986 ac_cv_member_struct_stat_st_flags=yes
19987 else
19988 echo "$as_me: failed program was:" >&5
19989 sed 's/^/| /' conftest.$ac_ext >&5
19991 ac_cv_member_struct_stat_st_flags=no
19994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19999 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
20000 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6; }
20001 if test $ac_cv_member_struct_stat_st_flags = yes; then
20003 cat >>confdefs.h <<_ACEOF
20004 #define HAVE_STRUCT_STAT_ST_FLAGS 1
20005 _ACEOF
20010 { echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
20011 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6; }
20012 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
20013 echo $ECHO_N "(cached) $ECHO_C" >&6
20014 else
20015 cat >conftest.$ac_ext <<_ACEOF
20016 /* confdefs.h. */
20017 _ACEOF
20018 cat confdefs.h >>conftest.$ac_ext
20019 cat >>conftest.$ac_ext <<_ACEOF
20020 /* end confdefs.h. */
20021 $ac_includes_default
20023 main ()
20025 static struct stat ac_aggr;
20026 if (ac_aggr.st_gen)
20027 return 0;
20029 return 0;
20031 _ACEOF
20032 rm -f conftest.$ac_objext
20033 if { (ac_try="$ac_compile"
20034 case "(($ac_try" in
20035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20036 *) ac_try_echo=$ac_try;;
20037 esac
20038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20039 (eval "$ac_compile") 2>conftest.er1
20040 ac_status=$?
20041 grep -v '^ *+' conftest.er1 >conftest.err
20042 rm -f conftest.er1
20043 cat conftest.err >&5
20044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20045 (exit $ac_status); } && {
20046 test -z "$ac_c_werror_flag" ||
20047 test ! -s conftest.err
20048 } && test -s conftest.$ac_objext; then
20049 ac_cv_member_struct_stat_st_gen=yes
20050 else
20051 echo "$as_me: failed program was:" >&5
20052 sed 's/^/| /' conftest.$ac_ext >&5
20054 cat >conftest.$ac_ext <<_ACEOF
20055 /* confdefs.h. */
20056 _ACEOF
20057 cat confdefs.h >>conftest.$ac_ext
20058 cat >>conftest.$ac_ext <<_ACEOF
20059 /* end confdefs.h. */
20060 $ac_includes_default
20062 main ()
20064 static struct stat ac_aggr;
20065 if (sizeof ac_aggr.st_gen)
20066 return 0;
20068 return 0;
20070 _ACEOF
20071 rm -f conftest.$ac_objext
20072 if { (ac_try="$ac_compile"
20073 case "(($ac_try" in
20074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20075 *) ac_try_echo=$ac_try;;
20076 esac
20077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20078 (eval "$ac_compile") 2>conftest.er1
20079 ac_status=$?
20080 grep -v '^ *+' conftest.er1 >conftest.err
20081 rm -f conftest.er1
20082 cat conftest.err >&5
20083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20084 (exit $ac_status); } && {
20085 test -z "$ac_c_werror_flag" ||
20086 test ! -s conftest.err
20087 } && test -s conftest.$ac_objext; then
20088 ac_cv_member_struct_stat_st_gen=yes
20089 else
20090 echo "$as_me: failed program was:" >&5
20091 sed 's/^/| /' conftest.$ac_ext >&5
20093 ac_cv_member_struct_stat_st_gen=no
20096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20101 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
20102 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6; }
20103 if test $ac_cv_member_struct_stat_st_gen = yes; then
20105 cat >>confdefs.h <<_ACEOF
20106 #define HAVE_STRUCT_STAT_ST_GEN 1
20107 _ACEOF
20112 { echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
20113 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6; }
20114 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
20115 echo $ECHO_N "(cached) $ECHO_C" >&6
20116 else
20117 cat >conftest.$ac_ext <<_ACEOF
20118 /* confdefs.h. */
20119 _ACEOF
20120 cat confdefs.h >>conftest.$ac_ext
20121 cat >>conftest.$ac_ext <<_ACEOF
20122 /* end confdefs.h. */
20123 $ac_includes_default
20125 main ()
20127 static struct stat ac_aggr;
20128 if (ac_aggr.st_birthtime)
20129 return 0;
20131 return 0;
20133 _ACEOF
20134 rm -f conftest.$ac_objext
20135 if { (ac_try="$ac_compile"
20136 case "(($ac_try" in
20137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20138 *) ac_try_echo=$ac_try;;
20139 esac
20140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20141 (eval "$ac_compile") 2>conftest.er1
20142 ac_status=$?
20143 grep -v '^ *+' conftest.er1 >conftest.err
20144 rm -f conftest.er1
20145 cat conftest.err >&5
20146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20147 (exit $ac_status); } && {
20148 test -z "$ac_c_werror_flag" ||
20149 test ! -s conftest.err
20150 } && test -s conftest.$ac_objext; then
20151 ac_cv_member_struct_stat_st_birthtime=yes
20152 else
20153 echo "$as_me: failed program was:" >&5
20154 sed 's/^/| /' conftest.$ac_ext >&5
20156 cat >conftest.$ac_ext <<_ACEOF
20157 /* confdefs.h. */
20158 _ACEOF
20159 cat confdefs.h >>conftest.$ac_ext
20160 cat >>conftest.$ac_ext <<_ACEOF
20161 /* end confdefs.h. */
20162 $ac_includes_default
20164 main ()
20166 static struct stat ac_aggr;
20167 if (sizeof ac_aggr.st_birthtime)
20168 return 0;
20170 return 0;
20172 _ACEOF
20173 rm -f conftest.$ac_objext
20174 if { (ac_try="$ac_compile"
20175 case "(($ac_try" in
20176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20177 *) ac_try_echo=$ac_try;;
20178 esac
20179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20180 (eval "$ac_compile") 2>conftest.er1
20181 ac_status=$?
20182 grep -v '^ *+' conftest.er1 >conftest.err
20183 rm -f conftest.er1
20184 cat conftest.err >&5
20185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20186 (exit $ac_status); } && {
20187 test -z "$ac_c_werror_flag" ||
20188 test ! -s conftest.err
20189 } && test -s conftest.$ac_objext; then
20190 ac_cv_member_struct_stat_st_birthtime=yes
20191 else
20192 echo "$as_me: failed program was:" >&5
20193 sed 's/^/| /' conftest.$ac_ext >&5
20195 ac_cv_member_struct_stat_st_birthtime=no
20198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20203 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
20204 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6; }
20205 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
20207 cat >>confdefs.h <<_ACEOF
20208 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
20209 _ACEOF
20214 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
20215 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
20216 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
20217 echo $ECHO_N "(cached) $ECHO_C" >&6
20218 else
20219 cat >conftest.$ac_ext <<_ACEOF
20220 /* confdefs.h. */
20221 _ACEOF
20222 cat confdefs.h >>conftest.$ac_ext
20223 cat >>conftest.$ac_ext <<_ACEOF
20224 /* end confdefs.h. */
20225 $ac_includes_default
20227 main ()
20229 static struct stat ac_aggr;
20230 if (ac_aggr.st_blocks)
20231 return 0;
20233 return 0;
20235 _ACEOF
20236 rm -f conftest.$ac_objext
20237 if { (ac_try="$ac_compile"
20238 case "(($ac_try" in
20239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20240 *) ac_try_echo=$ac_try;;
20241 esac
20242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20243 (eval "$ac_compile") 2>conftest.er1
20244 ac_status=$?
20245 grep -v '^ *+' conftest.er1 >conftest.err
20246 rm -f conftest.er1
20247 cat conftest.err >&5
20248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20249 (exit $ac_status); } && {
20250 test -z "$ac_c_werror_flag" ||
20251 test ! -s conftest.err
20252 } && test -s conftest.$ac_objext; then
20253 ac_cv_member_struct_stat_st_blocks=yes
20254 else
20255 echo "$as_me: failed program was:" >&5
20256 sed 's/^/| /' conftest.$ac_ext >&5
20258 cat >conftest.$ac_ext <<_ACEOF
20259 /* confdefs.h. */
20260 _ACEOF
20261 cat confdefs.h >>conftest.$ac_ext
20262 cat >>conftest.$ac_ext <<_ACEOF
20263 /* end confdefs.h. */
20264 $ac_includes_default
20266 main ()
20268 static struct stat ac_aggr;
20269 if (sizeof ac_aggr.st_blocks)
20270 return 0;
20272 return 0;
20274 _ACEOF
20275 rm -f conftest.$ac_objext
20276 if { (ac_try="$ac_compile"
20277 case "(($ac_try" in
20278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20279 *) ac_try_echo=$ac_try;;
20280 esac
20281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20282 (eval "$ac_compile") 2>conftest.er1
20283 ac_status=$?
20284 grep -v '^ *+' conftest.er1 >conftest.err
20285 rm -f conftest.er1
20286 cat conftest.err >&5
20287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20288 (exit $ac_status); } && {
20289 test -z "$ac_c_werror_flag" ||
20290 test ! -s conftest.err
20291 } && test -s conftest.$ac_objext; then
20292 ac_cv_member_struct_stat_st_blocks=yes
20293 else
20294 echo "$as_me: failed program was:" >&5
20295 sed 's/^/| /' conftest.$ac_ext >&5
20297 ac_cv_member_struct_stat_st_blocks=no
20300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20305 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
20306 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
20307 if test $ac_cv_member_struct_stat_st_blocks = yes; then
20309 cat >>confdefs.h <<_ACEOF
20310 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
20311 _ACEOF
20314 cat >>confdefs.h <<\_ACEOF
20315 #define HAVE_ST_BLOCKS 1
20316 _ACEOF
20318 else
20319 case " $LIBOBJS " in
20320 *" fileblocks.$ac_objext "* ) ;;
20321 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
20323 esac
20329 { echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
20330 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6; }
20331 if test "${ac_cv_header_time_altzone+set}" = set; then
20332 echo $ECHO_N "(cached) $ECHO_C" >&6
20333 else
20334 cat >conftest.$ac_ext <<_ACEOF
20335 /* confdefs.h. */
20336 _ACEOF
20337 cat confdefs.h >>conftest.$ac_ext
20338 cat >>conftest.$ac_ext <<_ACEOF
20339 /* end confdefs.h. */
20340 #include <time.h>
20342 main ()
20344 return altzone;
20346 return 0;
20348 _ACEOF
20349 rm -f conftest.$ac_objext
20350 if { (ac_try="$ac_compile"
20351 case "(($ac_try" in
20352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20353 *) ac_try_echo=$ac_try;;
20354 esac
20355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20356 (eval "$ac_compile") 2>conftest.er1
20357 ac_status=$?
20358 grep -v '^ *+' conftest.er1 >conftest.err
20359 rm -f conftest.er1
20360 cat conftest.err >&5
20361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20362 (exit $ac_status); } && {
20363 test -z "$ac_c_werror_flag" ||
20364 test ! -s conftest.err
20365 } && test -s conftest.$ac_objext; then
20366 ac_cv_header_time_altzone=yes
20367 else
20368 echo "$as_me: failed program was:" >&5
20369 sed 's/^/| /' conftest.$ac_ext >&5
20371 ac_cv_header_time_altzone=no
20374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20377 { echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
20378 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6; }
20379 if test $ac_cv_header_time_altzone = yes; then
20381 cat >>confdefs.h <<\_ACEOF
20382 #define HAVE_ALTZONE 1
20383 _ACEOF
20387 was_it_defined=no
20388 { echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
20389 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6; }
20390 cat >conftest.$ac_ext <<_ACEOF
20391 /* confdefs.h. */
20392 _ACEOF
20393 cat confdefs.h >>conftest.$ac_ext
20394 cat >>conftest.$ac_ext <<_ACEOF
20395 /* end confdefs.h. */
20397 #include <sys/types.h>
20398 #include <sys/select.h>
20399 #include <sys/time.h>
20402 main ()
20406 return 0;
20408 _ACEOF
20409 rm -f conftest.$ac_objext
20410 if { (ac_try="$ac_compile"
20411 case "(($ac_try" in
20412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20413 *) ac_try_echo=$ac_try;;
20414 esac
20415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20416 (eval "$ac_compile") 2>conftest.er1
20417 ac_status=$?
20418 grep -v '^ *+' conftest.er1 >conftest.err
20419 rm -f conftest.er1
20420 cat conftest.err >&5
20421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20422 (exit $ac_status); } && {
20423 test -z "$ac_c_werror_flag" ||
20424 test ! -s conftest.err
20425 } && test -s conftest.$ac_objext; then
20428 cat >>confdefs.h <<\_ACEOF
20429 #define SYS_SELECT_WITH_SYS_TIME 1
20430 _ACEOF
20432 was_it_defined=yes
20434 else
20435 echo "$as_me: failed program was:" >&5
20436 sed 's/^/| /' conftest.$ac_ext >&5
20441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20442 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
20443 echo "${ECHO_T}$was_it_defined" >&6; }
20445 { echo "$as_me:$LINENO: checking for addrinfo" >&5
20446 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
20447 if test "${ac_cv_struct_addrinfo+set}" = set; then
20448 echo $ECHO_N "(cached) $ECHO_C" >&6
20449 else
20450 cat >conftest.$ac_ext <<_ACEOF
20451 /* confdefs.h. */
20452 _ACEOF
20453 cat confdefs.h >>conftest.$ac_ext
20454 cat >>conftest.$ac_ext <<_ACEOF
20455 /* end confdefs.h. */
20457 # include <netdb.h>
20459 main ()
20461 struct addrinfo a
20463 return 0;
20465 _ACEOF
20466 rm -f conftest.$ac_objext
20467 if { (ac_try="$ac_compile"
20468 case "(($ac_try" in
20469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20470 *) ac_try_echo=$ac_try;;
20471 esac
20472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20473 (eval "$ac_compile") 2>conftest.er1
20474 ac_status=$?
20475 grep -v '^ *+' conftest.er1 >conftest.err
20476 rm -f conftest.er1
20477 cat conftest.err >&5
20478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20479 (exit $ac_status); } && {
20480 test -z "$ac_c_werror_flag" ||
20481 test ! -s conftest.err
20482 } && test -s conftest.$ac_objext; then
20483 ac_cv_struct_addrinfo=yes
20484 else
20485 echo "$as_me: failed program was:" >&5
20486 sed 's/^/| /' conftest.$ac_ext >&5
20488 ac_cv_struct_addrinfo=no
20491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20494 { echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
20495 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6; }
20496 if test $ac_cv_struct_addrinfo = yes; then
20498 cat >>confdefs.h <<\_ACEOF
20499 #define HAVE_ADDRINFO 1
20500 _ACEOF
20504 { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
20505 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
20506 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
20507 echo $ECHO_N "(cached) $ECHO_C" >&6
20508 else
20509 cat >conftest.$ac_ext <<_ACEOF
20510 /* confdefs.h. */
20511 _ACEOF
20512 cat confdefs.h >>conftest.$ac_ext
20513 cat >>conftest.$ac_ext <<_ACEOF
20514 /* end confdefs.h. */
20516 # include <sys/types.h>
20517 # include <sys/socket.h>
20519 main ()
20521 struct sockaddr_storage s
20523 return 0;
20525 _ACEOF
20526 rm -f conftest.$ac_objext
20527 if { (ac_try="$ac_compile"
20528 case "(($ac_try" in
20529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20530 *) ac_try_echo=$ac_try;;
20531 esac
20532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20533 (eval "$ac_compile") 2>conftest.er1
20534 ac_status=$?
20535 grep -v '^ *+' conftest.er1 >conftest.err
20536 rm -f conftest.er1
20537 cat conftest.err >&5
20538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20539 (exit $ac_status); } && {
20540 test -z "$ac_c_werror_flag" ||
20541 test ! -s conftest.err
20542 } && test -s conftest.$ac_objext; then
20543 ac_cv_struct_sockaddr_storage=yes
20544 else
20545 echo "$as_me: failed program was:" >&5
20546 sed 's/^/| /' conftest.$ac_ext >&5
20548 ac_cv_struct_sockaddr_storage=no
20551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20554 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
20555 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6; }
20556 if test $ac_cv_struct_sockaddr_storage = yes; then
20558 cat >>confdefs.h <<\_ACEOF
20559 #define HAVE_SOCKADDR_STORAGE 1
20560 _ACEOF
20564 # checks for compiler characteristics
20567 { echo "$as_me:$LINENO: checking whether char is unsigned" >&5
20568 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; }
20569 if test "${ac_cv_c_char_unsigned+set}" = set; then
20570 echo $ECHO_N "(cached) $ECHO_C" >&6
20571 else
20572 cat >conftest.$ac_ext <<_ACEOF
20573 /* confdefs.h. */
20574 _ACEOF
20575 cat confdefs.h >>conftest.$ac_ext
20576 cat >>conftest.$ac_ext <<_ACEOF
20577 /* end confdefs.h. */
20578 $ac_includes_default
20580 main ()
20582 static int test_array [1 - 2 * !(((char) -1) < 0)];
20583 test_array [0] = 0
20586 return 0;
20588 _ACEOF
20589 rm -f conftest.$ac_objext
20590 if { (ac_try="$ac_compile"
20591 case "(($ac_try" in
20592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20593 *) ac_try_echo=$ac_try;;
20594 esac
20595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20596 (eval "$ac_compile") 2>conftest.er1
20597 ac_status=$?
20598 grep -v '^ *+' conftest.er1 >conftest.err
20599 rm -f conftest.er1
20600 cat conftest.err >&5
20601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20602 (exit $ac_status); } && {
20603 test -z "$ac_c_werror_flag" ||
20604 test ! -s conftest.err
20605 } && test -s conftest.$ac_objext; then
20606 ac_cv_c_char_unsigned=no
20607 else
20608 echo "$as_me: failed program was:" >&5
20609 sed 's/^/| /' conftest.$ac_ext >&5
20611 ac_cv_c_char_unsigned=yes
20614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20616 { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
20617 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; }
20618 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
20619 cat >>confdefs.h <<\_ACEOF
20620 #define __CHAR_UNSIGNED__ 1
20621 _ACEOF
20625 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20626 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
20627 if test "${ac_cv_c_const+set}" = set; then
20628 echo $ECHO_N "(cached) $ECHO_C" >&6
20629 else
20630 cat >conftest.$ac_ext <<_ACEOF
20631 /* confdefs.h. */
20632 _ACEOF
20633 cat confdefs.h >>conftest.$ac_ext
20634 cat >>conftest.$ac_ext <<_ACEOF
20635 /* end confdefs.h. */
20638 main ()
20640 /* FIXME: Include the comments suggested by Paul. */
20641 #ifndef __cplusplus
20642 /* Ultrix mips cc rejects this. */
20643 typedef int charset[2];
20644 const charset cs;
20645 /* SunOS 4.1.1 cc rejects this. */
20646 char const *const *pcpcc;
20647 char **ppc;
20648 /* NEC SVR4.0.2 mips cc rejects this. */
20649 struct point {int x, y;};
20650 static struct point const zero = {0,0};
20651 /* AIX XL C 1.02.0.0 rejects this.
20652 It does not let you subtract one const X* pointer from another in
20653 an arm of an if-expression whose if-part is not a constant
20654 expression */
20655 const char *g = "string";
20656 pcpcc = &g + (g ? g-g : 0);
20657 /* HPUX 7.0 cc rejects these. */
20658 ++pcpcc;
20659 ppc = (char**) pcpcc;
20660 pcpcc = (char const *const *) ppc;
20661 { /* SCO 3.2v4 cc rejects this. */
20662 char *t;
20663 char const *s = 0 ? (char *) 0 : (char const *) 0;
20665 *t++ = 0;
20666 if (s) return 0;
20668 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20669 int x[] = {25, 17};
20670 const int *foo = &x[0];
20671 ++foo;
20673 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20674 typedef const int *iptr;
20675 iptr p = 0;
20676 ++p;
20678 { /* AIX XL C 1.02.0.0 rejects this saying
20679 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20680 struct s { int j; const int *ap[3]; };
20681 struct s *b; b->j = 5;
20683 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20684 const int foo = 10;
20685 if (!foo) return 0;
20687 return !cs[0] && !zero.x;
20688 #endif
20691 return 0;
20693 _ACEOF
20694 rm -f conftest.$ac_objext
20695 if { (ac_try="$ac_compile"
20696 case "(($ac_try" in
20697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20698 *) ac_try_echo=$ac_try;;
20699 esac
20700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20701 (eval "$ac_compile") 2>conftest.er1
20702 ac_status=$?
20703 grep -v '^ *+' conftest.er1 >conftest.err
20704 rm -f conftest.er1
20705 cat conftest.err >&5
20706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20707 (exit $ac_status); } && {
20708 test -z "$ac_c_werror_flag" ||
20709 test ! -s conftest.err
20710 } && test -s conftest.$ac_objext; then
20711 ac_cv_c_const=yes
20712 else
20713 echo "$as_me: failed program was:" >&5
20714 sed 's/^/| /' conftest.$ac_ext >&5
20716 ac_cv_c_const=no
20719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20721 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20722 echo "${ECHO_T}$ac_cv_c_const" >&6; }
20723 if test $ac_cv_c_const = no; then
20725 cat >>confdefs.h <<\_ACEOF
20726 #define const
20727 _ACEOF
20732 works=no
20733 { echo "$as_me:$LINENO: checking for working volatile" >&5
20734 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
20735 cat >conftest.$ac_ext <<_ACEOF
20736 /* confdefs.h. */
20737 _ACEOF
20738 cat confdefs.h >>conftest.$ac_ext
20739 cat >>conftest.$ac_ext <<_ACEOF
20740 /* end confdefs.h. */
20743 main ()
20745 volatile int x; x = 0;
20747 return 0;
20749 _ACEOF
20750 rm -f conftest.$ac_objext
20751 if { (ac_try="$ac_compile"
20752 case "(($ac_try" in
20753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20754 *) ac_try_echo=$ac_try;;
20755 esac
20756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20757 (eval "$ac_compile") 2>conftest.er1
20758 ac_status=$?
20759 grep -v '^ *+' conftest.er1 >conftest.err
20760 rm -f conftest.er1
20761 cat conftest.err >&5
20762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20763 (exit $ac_status); } && {
20764 test -z "$ac_c_werror_flag" ||
20765 test ! -s conftest.err
20766 } && test -s conftest.$ac_objext; then
20767 works=yes
20768 else
20769 echo "$as_me: failed program was:" >&5
20770 sed 's/^/| /' conftest.$ac_ext >&5
20773 cat >>confdefs.h <<\_ACEOF
20774 #define volatile
20775 _ACEOF
20780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20781 { echo "$as_me:$LINENO: result: $works" >&5
20782 echo "${ECHO_T}$works" >&6; }
20784 works=no
20785 { echo "$as_me:$LINENO: checking for working signed char" >&5
20786 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6; }
20787 cat >conftest.$ac_ext <<_ACEOF
20788 /* confdefs.h. */
20789 _ACEOF
20790 cat confdefs.h >>conftest.$ac_ext
20791 cat >>conftest.$ac_ext <<_ACEOF
20792 /* end confdefs.h. */
20795 main ()
20797 signed char c;
20799 return 0;
20801 _ACEOF
20802 rm -f conftest.$ac_objext
20803 if { (ac_try="$ac_compile"
20804 case "(($ac_try" in
20805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20806 *) ac_try_echo=$ac_try;;
20807 esac
20808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20809 (eval "$ac_compile") 2>conftest.er1
20810 ac_status=$?
20811 grep -v '^ *+' conftest.er1 >conftest.err
20812 rm -f conftest.er1
20813 cat conftest.err >&5
20814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20815 (exit $ac_status); } && {
20816 test -z "$ac_c_werror_flag" ||
20817 test ! -s conftest.err
20818 } && test -s conftest.$ac_objext; then
20819 works=yes
20820 else
20821 echo "$as_me: failed program was:" >&5
20822 sed 's/^/| /' conftest.$ac_ext >&5
20825 cat >>confdefs.h <<\_ACEOF
20826 #define signed
20827 _ACEOF
20832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20833 { echo "$as_me:$LINENO: result: $works" >&5
20834 echo "${ECHO_T}$works" >&6; }
20836 have_prototypes=no
20837 { echo "$as_me:$LINENO: checking for prototypes" >&5
20838 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6; }
20839 cat >conftest.$ac_ext <<_ACEOF
20840 /* confdefs.h. */
20841 _ACEOF
20842 cat confdefs.h >>conftest.$ac_ext
20843 cat >>conftest.$ac_ext <<_ACEOF
20844 /* end confdefs.h. */
20845 int foo(int x) { return 0; }
20847 main ()
20849 return foo(10);
20851 return 0;
20853 _ACEOF
20854 rm -f conftest.$ac_objext
20855 if { (ac_try="$ac_compile"
20856 case "(($ac_try" in
20857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20858 *) ac_try_echo=$ac_try;;
20859 esac
20860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20861 (eval "$ac_compile") 2>conftest.er1
20862 ac_status=$?
20863 grep -v '^ *+' conftest.er1 >conftest.err
20864 rm -f conftest.er1
20865 cat conftest.err >&5
20866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20867 (exit $ac_status); } && {
20868 test -z "$ac_c_werror_flag" ||
20869 test ! -s conftest.err
20870 } && test -s conftest.$ac_objext; then
20873 cat >>confdefs.h <<\_ACEOF
20874 #define HAVE_PROTOTYPES 1
20875 _ACEOF
20877 have_prototypes=yes
20879 else
20880 echo "$as_me: failed program was:" >&5
20881 sed 's/^/| /' conftest.$ac_ext >&5
20886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20887 { echo "$as_me:$LINENO: result: $have_prototypes" >&5
20888 echo "${ECHO_T}$have_prototypes" >&6; }
20890 works=no
20891 { echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
20892 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6; }
20893 cat >conftest.$ac_ext <<_ACEOF
20894 /* confdefs.h. */
20895 _ACEOF
20896 cat confdefs.h >>conftest.$ac_ext
20897 cat >>conftest.$ac_ext <<_ACEOF
20898 /* end confdefs.h. */
20900 #include <stdarg.h>
20901 int foo(int x, ...) {
20902 va_list va;
20903 va_start(va, x);
20904 va_arg(va, int);
20905 va_arg(va, char *);
20906 va_arg(va, double);
20907 return 0;
20911 main ()
20913 return foo(10, "", 3.14);
20915 return 0;
20917 _ACEOF
20918 rm -f conftest.$ac_objext
20919 if { (ac_try="$ac_compile"
20920 case "(($ac_try" in
20921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20922 *) ac_try_echo=$ac_try;;
20923 esac
20924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20925 (eval "$ac_compile") 2>conftest.er1
20926 ac_status=$?
20927 grep -v '^ *+' conftest.er1 >conftest.err
20928 rm -f conftest.er1
20929 cat conftest.err >&5
20930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20931 (exit $ac_status); } && {
20932 test -z "$ac_c_werror_flag" ||
20933 test ! -s conftest.err
20934 } && test -s conftest.$ac_objext; then
20937 cat >>confdefs.h <<\_ACEOF
20938 #define HAVE_STDARG_PROTOTYPES 1
20939 _ACEOF
20941 works=yes
20943 else
20944 echo "$as_me: failed program was:" >&5
20945 sed 's/^/| /' conftest.$ac_ext >&5
20950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20951 { echo "$as_me:$LINENO: result: $works" >&5
20952 echo "${ECHO_T}$works" >&6; }
20954 # check for socketpair
20955 { echo "$as_me:$LINENO: checking for socketpair" >&5
20956 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6; }
20957 cat >conftest.$ac_ext <<_ACEOF
20958 /* confdefs.h. */
20959 _ACEOF
20960 cat confdefs.h >>conftest.$ac_ext
20961 cat >>conftest.$ac_ext <<_ACEOF
20962 /* end confdefs.h. */
20964 #include <sys/types.h>
20965 #include <sys/socket.h>
20968 main ()
20970 void *x=socketpair
20972 return 0;
20974 _ACEOF
20975 rm -f conftest.$ac_objext
20976 if { (ac_try="$ac_compile"
20977 case "(($ac_try" in
20978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20979 *) ac_try_echo=$ac_try;;
20980 esac
20981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20982 (eval "$ac_compile") 2>conftest.er1
20983 ac_status=$?
20984 grep -v '^ *+' conftest.er1 >conftest.err
20985 rm -f conftest.er1
20986 cat conftest.err >&5
20987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20988 (exit $ac_status); } && {
20989 test -z "$ac_c_werror_flag" ||
20990 test ! -s conftest.err
20991 } && test -s conftest.$ac_objext; then
20993 cat >>confdefs.h <<\_ACEOF
20994 #define HAVE_SOCKETPAIR 1
20995 _ACEOF
20997 { echo "$as_me:$LINENO: result: yes" >&5
20998 echo "${ECHO_T}yes" >&6; }
20999 else
21000 echo "$as_me: failed program was:" >&5
21001 sed 's/^/| /' conftest.$ac_ext >&5
21003 { echo "$as_me:$LINENO: result: no" >&5
21004 echo "${ECHO_T}no" >&6; }
21008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21010 # check if sockaddr has sa_len member
21011 { echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
21012 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6; }
21013 cat >conftest.$ac_ext <<_ACEOF
21014 /* confdefs.h. */
21015 _ACEOF
21016 cat confdefs.h >>conftest.$ac_ext
21017 cat >>conftest.$ac_ext <<_ACEOF
21018 /* end confdefs.h. */
21019 #include <sys/types.h>
21020 #include <sys/socket.h>
21022 main ()
21024 struct sockaddr x;
21025 x.sa_len = 0;
21027 return 0;
21029 _ACEOF
21030 rm -f conftest.$ac_objext
21031 if { (ac_try="$ac_compile"
21032 case "(($ac_try" in
21033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21034 *) ac_try_echo=$ac_try;;
21035 esac
21036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21037 (eval "$ac_compile") 2>conftest.er1
21038 ac_status=$?
21039 grep -v '^ *+' conftest.er1 >conftest.err
21040 rm -f conftest.er1
21041 cat conftest.err >&5
21042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21043 (exit $ac_status); } && {
21044 test -z "$ac_c_werror_flag" ||
21045 test ! -s conftest.err
21046 } && test -s conftest.$ac_objext; then
21047 { echo "$as_me:$LINENO: result: yes" >&5
21048 echo "${ECHO_T}yes" >&6; }
21050 cat >>confdefs.h <<\_ACEOF
21051 #define HAVE_SOCKADDR_SA_LEN 1
21052 _ACEOF
21054 else
21055 echo "$as_me: failed program was:" >&5
21056 sed 's/^/| /' conftest.$ac_ext >&5
21058 { echo "$as_me:$LINENO: result: no" >&5
21059 echo "${ECHO_T}no" >&6; }
21062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21064 va_list_is_array=no
21065 { echo "$as_me:$LINENO: checking whether va_list is an array" >&5
21066 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6; }
21067 cat >conftest.$ac_ext <<_ACEOF
21068 /* confdefs.h. */
21069 _ACEOF
21070 cat confdefs.h >>conftest.$ac_ext
21071 cat >>conftest.$ac_ext <<_ACEOF
21072 /* end confdefs.h. */
21074 #ifdef HAVE_STDARG_PROTOTYPES
21075 #include <stdarg.h>
21076 #else
21077 #include <varargs.h>
21078 #endif
21081 main ()
21083 va_list list1, list2; list1 = list2;
21085 return 0;
21087 _ACEOF
21088 rm -f conftest.$ac_objext
21089 if { (ac_try="$ac_compile"
21090 case "(($ac_try" in
21091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21092 *) ac_try_echo=$ac_try;;
21093 esac
21094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21095 (eval "$ac_compile") 2>conftest.er1
21096 ac_status=$?
21097 grep -v '^ *+' conftest.er1 >conftest.err
21098 rm -f conftest.er1
21099 cat conftest.err >&5
21100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21101 (exit $ac_status); } && {
21102 test -z "$ac_c_werror_flag" ||
21103 test ! -s conftest.err
21104 } && test -s conftest.$ac_objext; then
21106 else
21107 echo "$as_me: failed program was:" >&5
21108 sed 's/^/| /' conftest.$ac_ext >&5
21112 cat >>confdefs.h <<\_ACEOF
21113 #define VA_LIST_IS_ARRAY 1
21114 _ACEOF
21116 va_list_is_array=yes
21120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21121 { echo "$as_me:$LINENO: result: $va_list_is_array" >&5
21122 echo "${ECHO_T}$va_list_is_array" >&6; }
21124 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
21128 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
21129 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
21130 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
21131 echo $ECHO_N "(cached) $ECHO_C" >&6
21132 else
21133 cat >conftest.$ac_ext <<_ACEOF
21134 /* confdefs.h. */
21135 _ACEOF
21136 cat confdefs.h >>conftest.$ac_ext
21137 cat >>conftest.$ac_ext <<_ACEOF
21138 /* end confdefs.h. */
21139 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
21140 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21141 #define gethostbyname_r innocuous_gethostbyname_r
21143 /* System header to define __stub macros and hopefully few prototypes,
21144 which can conflict with char gethostbyname_r (); below.
21145 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21146 <limits.h> exists even on freestanding compilers. */
21148 #ifdef __STDC__
21149 # include <limits.h>
21150 #else
21151 # include <assert.h>
21152 #endif
21154 #undef gethostbyname_r
21156 /* Override any GCC internal prototype to avoid an error.
21157 Use char because int might match the return type of a GCC
21158 builtin and then its argument prototype would still apply. */
21159 #ifdef __cplusplus
21160 extern "C"
21161 #endif
21162 char gethostbyname_r ();
21163 /* The GNU C library defines this for functions which it implements
21164 to always fail with ENOSYS. Some functions are actually named
21165 something starting with __ and the normal name is an alias. */
21166 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
21167 choke me
21168 #endif
21171 main ()
21173 return gethostbyname_r ();
21175 return 0;
21177 _ACEOF
21178 rm -f conftest.$ac_objext conftest$ac_exeext
21179 if { (ac_try="$ac_link"
21180 case "(($ac_try" in
21181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21182 *) ac_try_echo=$ac_try;;
21183 esac
21184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21185 (eval "$ac_link") 2>conftest.er1
21186 ac_status=$?
21187 grep -v '^ *+' conftest.er1 >conftest.err
21188 rm -f conftest.er1
21189 cat conftest.err >&5
21190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21191 (exit $ac_status); } && {
21192 test -z "$ac_c_werror_flag" ||
21193 test ! -s conftest.err
21194 } && test -s conftest$ac_exeext &&
21195 $as_test_x conftest$ac_exeext; then
21196 ac_cv_func_gethostbyname_r=yes
21197 else
21198 echo "$as_me: failed program was:" >&5
21199 sed 's/^/| /' conftest.$ac_ext >&5
21201 ac_cv_func_gethostbyname_r=no
21204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21205 conftest$ac_exeext conftest.$ac_ext
21207 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
21208 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
21209 if test $ac_cv_func_gethostbyname_r = yes; then
21211 cat >>confdefs.h <<\_ACEOF
21212 #define HAVE_GETHOSTBYNAME_R 1
21213 _ACEOF
21215 { echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
21216 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6; }
21217 OLD_CFLAGS=$CFLAGS
21218 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
21219 cat >conftest.$ac_ext <<_ACEOF
21220 /* confdefs.h. */
21221 _ACEOF
21222 cat confdefs.h >>conftest.$ac_ext
21223 cat >>conftest.$ac_ext <<_ACEOF
21224 /* end confdefs.h. */
21226 # include <netdb.h>
21229 main ()
21232 char *name;
21233 struct hostent *he, *res;
21234 char buffer[2048];
21235 int buflen = 2048;
21236 int h_errnop;
21238 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
21241 return 0;
21243 _ACEOF
21244 rm -f conftest.$ac_objext
21245 if { (ac_try="$ac_compile"
21246 case "(($ac_try" in
21247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21248 *) ac_try_echo=$ac_try;;
21249 esac
21250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21251 (eval "$ac_compile") 2>conftest.er1
21252 ac_status=$?
21253 grep -v '^ *+' conftest.er1 >conftest.err
21254 rm -f conftest.er1
21255 cat conftest.err >&5
21256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21257 (exit $ac_status); } && {
21258 test -z "$ac_c_werror_flag" ||
21259 test ! -s conftest.err
21260 } && test -s conftest.$ac_objext; then
21262 cat >>confdefs.h <<\_ACEOF
21263 #define HAVE_GETHOSTBYNAME_R 1
21264 _ACEOF
21267 cat >>confdefs.h <<\_ACEOF
21268 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
21269 _ACEOF
21271 { echo "$as_me:$LINENO: result: yes" >&5
21272 echo "${ECHO_T}yes" >&6; }
21274 else
21275 echo "$as_me: failed program was:" >&5
21276 sed 's/^/| /' conftest.$ac_ext >&5
21279 { echo "$as_me:$LINENO: result: no" >&5
21280 echo "${ECHO_T}no" >&6; }
21281 { echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
21282 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6; }
21283 cat >conftest.$ac_ext <<_ACEOF
21284 /* confdefs.h. */
21285 _ACEOF
21286 cat confdefs.h >>conftest.$ac_ext
21287 cat >>conftest.$ac_ext <<_ACEOF
21288 /* end confdefs.h. */
21290 # include <netdb.h>
21293 main ()
21296 char *name;
21297 struct hostent *he;
21298 char buffer[2048];
21299 int buflen = 2048;
21300 int h_errnop;
21302 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
21305 return 0;
21307 _ACEOF
21308 rm -f conftest.$ac_objext
21309 if { (ac_try="$ac_compile"
21310 case "(($ac_try" in
21311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21312 *) ac_try_echo=$ac_try;;
21313 esac
21314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21315 (eval "$ac_compile") 2>conftest.er1
21316 ac_status=$?
21317 grep -v '^ *+' conftest.er1 >conftest.err
21318 rm -f conftest.er1
21319 cat conftest.err >&5
21320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21321 (exit $ac_status); } && {
21322 test -z "$ac_c_werror_flag" ||
21323 test ! -s conftest.err
21324 } && test -s conftest.$ac_objext; then
21326 cat >>confdefs.h <<\_ACEOF
21327 #define HAVE_GETHOSTBYNAME_R 1
21328 _ACEOF
21331 cat >>confdefs.h <<\_ACEOF
21332 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
21333 _ACEOF
21335 { echo "$as_me:$LINENO: result: yes" >&5
21336 echo "${ECHO_T}yes" >&6; }
21338 else
21339 echo "$as_me: failed program was:" >&5
21340 sed 's/^/| /' conftest.$ac_ext >&5
21343 { echo "$as_me:$LINENO: result: no" >&5
21344 echo "${ECHO_T}no" >&6; }
21345 { echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
21346 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6; }
21347 cat >conftest.$ac_ext <<_ACEOF
21348 /* confdefs.h. */
21349 _ACEOF
21350 cat confdefs.h >>conftest.$ac_ext
21351 cat >>conftest.$ac_ext <<_ACEOF
21352 /* end confdefs.h. */
21354 # include <netdb.h>
21357 main ()
21360 char *name;
21361 struct hostent *he;
21362 struct hostent_data data;
21364 (void) gethostbyname_r(name, he, &data);
21367 return 0;
21369 _ACEOF
21370 rm -f conftest.$ac_objext
21371 if { (ac_try="$ac_compile"
21372 case "(($ac_try" in
21373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21374 *) ac_try_echo=$ac_try;;
21375 esac
21376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21377 (eval "$ac_compile") 2>conftest.er1
21378 ac_status=$?
21379 grep -v '^ *+' conftest.er1 >conftest.err
21380 rm -f conftest.er1
21381 cat conftest.err >&5
21382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21383 (exit $ac_status); } && {
21384 test -z "$ac_c_werror_flag" ||
21385 test ! -s conftest.err
21386 } && test -s conftest.$ac_objext; then
21388 cat >>confdefs.h <<\_ACEOF
21389 #define HAVE_GETHOSTBYNAME_R 1
21390 _ACEOF
21393 cat >>confdefs.h <<\_ACEOF
21394 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
21395 _ACEOF
21397 { echo "$as_me:$LINENO: result: yes" >&5
21398 echo "${ECHO_T}yes" >&6; }
21400 else
21401 echo "$as_me: failed program was:" >&5
21402 sed 's/^/| /' conftest.$ac_ext >&5
21405 { echo "$as_me:$LINENO: result: no" >&5
21406 echo "${ECHO_T}no" >&6; }
21410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21419 CFLAGS=$OLD_CFLAGS
21421 else
21424 for ac_func in gethostbyname
21426 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21427 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21428 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21429 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21430 echo $ECHO_N "(cached) $ECHO_C" >&6
21431 else
21432 cat >conftest.$ac_ext <<_ACEOF
21433 /* confdefs.h. */
21434 _ACEOF
21435 cat confdefs.h >>conftest.$ac_ext
21436 cat >>conftest.$ac_ext <<_ACEOF
21437 /* end confdefs.h. */
21438 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21439 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21440 #define $ac_func innocuous_$ac_func
21442 /* System header to define __stub macros and hopefully few prototypes,
21443 which can conflict with char $ac_func (); below.
21444 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21445 <limits.h> exists even on freestanding compilers. */
21447 #ifdef __STDC__
21448 # include <limits.h>
21449 #else
21450 # include <assert.h>
21451 #endif
21453 #undef $ac_func
21455 /* Override any GCC internal prototype to avoid an error.
21456 Use char because int might match the return type of a GCC
21457 builtin and then its argument prototype would still apply. */
21458 #ifdef __cplusplus
21459 extern "C"
21460 #endif
21461 char $ac_func ();
21462 /* The GNU C library defines this for functions which it implements
21463 to always fail with ENOSYS. Some functions are actually named
21464 something starting with __ and the normal name is an alias. */
21465 #if defined __stub_$ac_func || defined __stub___$ac_func
21466 choke me
21467 #endif
21470 main ()
21472 return $ac_func ();
21474 return 0;
21476 _ACEOF
21477 rm -f conftest.$ac_objext conftest$ac_exeext
21478 if { (ac_try="$ac_link"
21479 case "(($ac_try" in
21480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21481 *) ac_try_echo=$ac_try;;
21482 esac
21483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21484 (eval "$ac_link") 2>conftest.er1
21485 ac_status=$?
21486 grep -v '^ *+' conftest.er1 >conftest.err
21487 rm -f conftest.er1
21488 cat conftest.err >&5
21489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21490 (exit $ac_status); } && {
21491 test -z "$ac_c_werror_flag" ||
21492 test ! -s conftest.err
21493 } && test -s conftest$ac_exeext &&
21494 $as_test_x conftest$ac_exeext; then
21495 eval "$as_ac_var=yes"
21496 else
21497 echo "$as_me: failed program was:" >&5
21498 sed 's/^/| /' conftest.$ac_ext >&5
21500 eval "$as_ac_var=no"
21503 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21504 conftest$ac_exeext conftest.$ac_ext
21506 ac_res=`eval echo '${'$as_ac_var'}'`
21507 { echo "$as_me:$LINENO: result: $ac_res" >&5
21508 echo "${ECHO_T}$ac_res" >&6; }
21509 if test `eval echo '${'$as_ac_var'}'` = yes; then
21510 cat >>confdefs.h <<_ACEOF
21511 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21512 _ACEOF
21515 done
21526 # checks for system services
21527 # (none yet)
21529 # Linux requires this for correct f.p. operations
21530 { echo "$as_me:$LINENO: checking for __fpu_control" >&5
21531 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6; }
21532 if test "${ac_cv_func___fpu_control+set}" = set; then
21533 echo $ECHO_N "(cached) $ECHO_C" >&6
21534 else
21535 cat >conftest.$ac_ext <<_ACEOF
21536 /* confdefs.h. */
21537 _ACEOF
21538 cat confdefs.h >>conftest.$ac_ext
21539 cat >>conftest.$ac_ext <<_ACEOF
21540 /* end confdefs.h. */
21541 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
21542 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21543 #define __fpu_control innocuous___fpu_control
21545 /* System header to define __stub macros and hopefully few prototypes,
21546 which can conflict with char __fpu_control (); below.
21547 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21548 <limits.h> exists even on freestanding compilers. */
21550 #ifdef __STDC__
21551 # include <limits.h>
21552 #else
21553 # include <assert.h>
21554 #endif
21556 #undef __fpu_control
21558 /* Override any GCC internal prototype to avoid an error.
21559 Use char because int might match the return type of a GCC
21560 builtin and then its argument prototype would still apply. */
21561 #ifdef __cplusplus
21562 extern "C"
21563 #endif
21564 char __fpu_control ();
21565 /* The GNU C library defines this for functions which it implements
21566 to always fail with ENOSYS. Some functions are actually named
21567 something starting with __ and the normal name is an alias. */
21568 #if defined __stub___fpu_control || defined __stub_____fpu_control
21569 choke me
21570 #endif
21573 main ()
21575 return __fpu_control ();
21577 return 0;
21579 _ACEOF
21580 rm -f conftest.$ac_objext conftest$ac_exeext
21581 if { (ac_try="$ac_link"
21582 case "(($ac_try" in
21583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21584 *) ac_try_echo=$ac_try;;
21585 esac
21586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21587 (eval "$ac_link") 2>conftest.er1
21588 ac_status=$?
21589 grep -v '^ *+' conftest.er1 >conftest.err
21590 rm -f conftest.er1
21591 cat conftest.err >&5
21592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21593 (exit $ac_status); } && {
21594 test -z "$ac_c_werror_flag" ||
21595 test ! -s conftest.err
21596 } && test -s conftest$ac_exeext &&
21597 $as_test_x conftest$ac_exeext; then
21598 ac_cv_func___fpu_control=yes
21599 else
21600 echo "$as_me: failed program was:" >&5
21601 sed 's/^/| /' conftest.$ac_ext >&5
21603 ac_cv_func___fpu_control=no
21606 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21607 conftest$ac_exeext conftest.$ac_ext
21609 { echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
21610 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6; }
21611 if test $ac_cv_func___fpu_control = yes; then
21613 else
21615 { echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
21616 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6; }
21617 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
21618 echo $ECHO_N "(cached) $ECHO_C" >&6
21619 else
21620 ac_check_lib_save_LIBS=$LIBS
21621 LIBS="-lieee $LIBS"
21622 cat >conftest.$ac_ext <<_ACEOF
21623 /* confdefs.h. */
21624 _ACEOF
21625 cat confdefs.h >>conftest.$ac_ext
21626 cat >>conftest.$ac_ext <<_ACEOF
21627 /* end confdefs.h. */
21629 /* Override any GCC internal prototype to avoid an error.
21630 Use char because int might match the return type of a GCC
21631 builtin and then its argument prototype would still apply. */
21632 #ifdef __cplusplus
21633 extern "C"
21634 #endif
21635 char __fpu_control ();
21637 main ()
21639 return __fpu_control ();
21641 return 0;
21643 _ACEOF
21644 rm -f conftest.$ac_objext conftest$ac_exeext
21645 if { (ac_try="$ac_link"
21646 case "(($ac_try" in
21647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21648 *) ac_try_echo=$ac_try;;
21649 esac
21650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21651 (eval "$ac_link") 2>conftest.er1
21652 ac_status=$?
21653 grep -v '^ *+' conftest.er1 >conftest.err
21654 rm -f conftest.er1
21655 cat conftest.err >&5
21656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21657 (exit $ac_status); } && {
21658 test -z "$ac_c_werror_flag" ||
21659 test ! -s conftest.err
21660 } && test -s conftest$ac_exeext &&
21661 $as_test_x conftest$ac_exeext; then
21662 ac_cv_lib_ieee___fpu_control=yes
21663 else
21664 echo "$as_me: failed program was:" >&5
21665 sed 's/^/| /' conftest.$ac_ext >&5
21667 ac_cv_lib_ieee___fpu_control=no
21670 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21671 conftest$ac_exeext conftest.$ac_ext
21672 LIBS=$ac_check_lib_save_LIBS
21674 { echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
21675 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6; }
21676 if test $ac_cv_lib_ieee___fpu_control = yes; then
21677 cat >>confdefs.h <<_ACEOF
21678 #define HAVE_LIBIEEE 1
21679 _ACEOF
21681 LIBS="-lieee $LIBS"
21689 # Check for --with-fpectl
21690 { echo "$as_me:$LINENO: checking for --with-fpectl" >&5
21691 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6; }
21693 # Check whether --with-fpectl was given.
21694 if test "${with_fpectl+set}" = set; then
21695 withval=$with_fpectl;
21696 if test "$withval" != no
21697 then
21699 cat >>confdefs.h <<\_ACEOF
21700 #define WANT_SIGFPE_HANDLER 1
21701 _ACEOF
21703 { echo "$as_me:$LINENO: result: yes" >&5
21704 echo "${ECHO_T}yes" >&6; }
21705 else { echo "$as_me:$LINENO: result: no" >&5
21706 echo "${ECHO_T}no" >&6; }
21708 else
21709 { echo "$as_me:$LINENO: result: no" >&5
21710 echo "${ECHO_T}no" >&6; }
21714 # check for --with-libm=...
21716 case $ac_sys_system in
21717 Darwin) ;;
21718 *) LIBM=-lm
21719 esac
21720 { echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
21721 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6; }
21723 # Check whether --with-libm was given.
21724 if test "${with_libm+set}" = set; then
21725 withval=$with_libm;
21726 if test "$withval" = no
21727 then LIBM=
21728 { echo "$as_me:$LINENO: result: force LIBM empty" >&5
21729 echo "${ECHO_T}force LIBM empty" >&6; }
21730 elif test "$withval" != yes
21731 then LIBM=$withval
21732 { echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
21733 echo "${ECHO_T}set LIBM=\"$withval\"" >&6; }
21734 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
21735 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
21736 { (exit 1); exit 1; }; }
21738 else
21739 { echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
21740 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6; }
21744 # check for --with-libc=...
21746 { echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
21747 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6; }
21749 # Check whether --with-libc was given.
21750 if test "${with_libc+set}" = set; then
21751 withval=$with_libc;
21752 if test "$withval" = no
21753 then LIBC=
21754 { echo "$as_me:$LINENO: result: force LIBC empty" >&5
21755 echo "${ECHO_T}force LIBC empty" >&6; }
21756 elif test "$withval" != yes
21757 then LIBC=$withval
21758 { echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
21759 echo "${ECHO_T}set LIBC=\"$withval\"" >&6; }
21760 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
21761 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
21762 { (exit 1); exit 1; }; }
21764 else
21765 { echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
21766 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6; }
21770 # **************************************************
21771 # * Check for various properties of floating point *
21772 # **************************************************
21774 { echo "$as_me:$LINENO: checking whether C doubles are little-endian IEEE 754 binary64" >&5
21775 echo $ECHO_N "checking whether C doubles are little-endian IEEE 754 binary64... $ECHO_C" >&6; }
21776 if test "${ac_cv_little_endian_double+set}" = set; then
21777 echo $ECHO_N "(cached) $ECHO_C" >&6
21778 else
21780 if test "$cross_compiling" = yes; then
21781 ac_cv_little_endian_double=no
21782 else
21783 cat >conftest.$ac_ext <<_ACEOF
21784 /* confdefs.h. */
21785 _ACEOF
21786 cat confdefs.h >>conftest.$ac_ext
21787 cat >>conftest.$ac_ext <<_ACEOF
21788 /* end confdefs.h. */
21790 #include <string.h>
21791 int main() {
21792 double x = 9006104071832581.0;
21793 if (memcmp(&x, "\x05\x04\x03\x02\x01\xff\x3f\x43", 8) == 0)
21794 return 0;
21795 else
21796 return 1;
21799 _ACEOF
21800 rm -f conftest$ac_exeext
21801 if { (ac_try="$ac_link"
21802 case "(($ac_try" in
21803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21804 *) ac_try_echo=$ac_try;;
21805 esac
21806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21807 (eval "$ac_link") 2>&5
21808 ac_status=$?
21809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21810 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21811 { (case "(($ac_try" in
21812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21813 *) ac_try_echo=$ac_try;;
21814 esac
21815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21816 (eval "$ac_try") 2>&5
21817 ac_status=$?
21818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21819 (exit $ac_status); }; }; then
21820 ac_cv_little_endian_double=yes
21821 else
21822 echo "$as_me: program exited with status $ac_status" >&5
21823 echo "$as_me: failed program was:" >&5
21824 sed 's/^/| /' conftest.$ac_ext >&5
21826 ( exit $ac_status )
21827 ac_cv_little_endian_double=no
21829 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21835 { echo "$as_me:$LINENO: result: $ac_cv_little_endian_double" >&5
21836 echo "${ECHO_T}$ac_cv_little_endian_double" >&6; }
21837 if test "$ac_cv_little_endian_double" = yes
21838 then
21840 cat >>confdefs.h <<\_ACEOF
21841 #define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1
21842 _ACEOF
21846 { echo "$as_me:$LINENO: checking whether C doubles are big-endian IEEE 754 binary64" >&5
21847 echo $ECHO_N "checking whether C doubles are big-endian IEEE 754 binary64... $ECHO_C" >&6; }
21848 if test "${ac_cv_big_endian_double+set}" = set; then
21849 echo $ECHO_N "(cached) $ECHO_C" >&6
21850 else
21852 if test "$cross_compiling" = yes; then
21853 ac_cv_big_endian_double=no
21854 else
21855 cat >conftest.$ac_ext <<_ACEOF
21856 /* confdefs.h. */
21857 _ACEOF
21858 cat confdefs.h >>conftest.$ac_ext
21859 cat >>conftest.$ac_ext <<_ACEOF
21860 /* end confdefs.h. */
21862 #include <string.h>
21863 int main() {
21864 double x = 9006104071832581.0;
21865 if (memcmp(&x, "\x43\x3f\xff\x01\x02\x03\x04\x05", 8) == 0)
21866 return 0;
21867 else
21868 return 1;
21871 _ACEOF
21872 rm -f conftest$ac_exeext
21873 if { (ac_try="$ac_link"
21874 case "(($ac_try" in
21875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21876 *) ac_try_echo=$ac_try;;
21877 esac
21878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21879 (eval "$ac_link") 2>&5
21880 ac_status=$?
21881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21882 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21883 { (case "(($ac_try" in
21884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21885 *) ac_try_echo=$ac_try;;
21886 esac
21887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21888 (eval "$ac_try") 2>&5
21889 ac_status=$?
21890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21891 (exit $ac_status); }; }; then
21892 ac_cv_big_endian_double=yes
21893 else
21894 echo "$as_me: program exited with status $ac_status" >&5
21895 echo "$as_me: failed program was:" >&5
21896 sed 's/^/| /' conftest.$ac_ext >&5
21898 ( exit $ac_status )
21899 ac_cv_big_endian_double=no
21901 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21907 { echo "$as_me:$LINENO: result: $ac_cv_big_endian_double" >&5
21908 echo "${ECHO_T}$ac_cv_big_endian_double" >&6; }
21909 if test "$ac_cv_big_endian_double" = yes
21910 then
21912 cat >>confdefs.h <<\_ACEOF
21913 #define DOUBLE_IS_BIG_ENDIAN_IEEE754 1
21914 _ACEOF
21918 # Some ARM platforms use a mixed-endian representation for doubles.
21919 # While Python doesn't currently have full support for these platforms
21920 # (see e.g., issue 1762561), we can at least make sure that float <-> string
21921 # conversions work.
21922 { echo "$as_me:$LINENO: checking whether C doubles are ARM mixed-endian IEEE 754 binary64" >&5
21923 echo $ECHO_N "checking whether C doubles are ARM mixed-endian IEEE 754 binary64... $ECHO_C" >&6; }
21924 if test "${ac_cv_mixed_endian_double+set}" = set; then
21925 echo $ECHO_N "(cached) $ECHO_C" >&6
21926 else
21928 if test "$cross_compiling" = yes; then
21929 ac_cv_mixed_endian_double=no
21930 else
21931 cat >conftest.$ac_ext <<_ACEOF
21932 /* confdefs.h. */
21933 _ACEOF
21934 cat confdefs.h >>conftest.$ac_ext
21935 cat >>conftest.$ac_ext <<_ACEOF
21936 /* end confdefs.h. */
21938 #include <string.h>
21939 int main() {
21940 double x = 9006104071832581.0;
21941 if (memcmp(&x, "\x01\xff\x3f\x43\x05\x04\x03\x02", 8) == 0)
21942 return 0;
21943 else
21944 return 1;
21947 _ACEOF
21948 rm -f conftest$ac_exeext
21949 if { (ac_try="$ac_link"
21950 case "(($ac_try" in
21951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21952 *) ac_try_echo=$ac_try;;
21953 esac
21954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21955 (eval "$ac_link") 2>&5
21956 ac_status=$?
21957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21958 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21959 { (case "(($ac_try" in
21960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21961 *) ac_try_echo=$ac_try;;
21962 esac
21963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21964 (eval "$ac_try") 2>&5
21965 ac_status=$?
21966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21967 (exit $ac_status); }; }; then
21968 ac_cv_mixed_endian_double=yes
21969 else
21970 echo "$as_me: program exited with status $ac_status" >&5
21971 echo "$as_me: failed program was:" >&5
21972 sed 's/^/| /' conftest.$ac_ext >&5
21974 ( exit $ac_status )
21975 ac_cv_mixed_endian_double=no
21977 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21983 { echo "$as_me:$LINENO: result: $ac_cv_mixed_endian_double" >&5
21984 echo "${ECHO_T}$ac_cv_mixed_endian_double" >&6; }
21985 if test "$ac_cv_mixed_endian_double" = yes
21986 then
21988 cat >>confdefs.h <<\_ACEOF
21989 #define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1
21990 _ACEOF
21994 # The short float repr introduced in Python 3.1 requires the
21995 # correctly-rounded string <-> double conversion functions from
21996 # Python/dtoa.c, which in turn require that the FPU uses 53-bit
21997 # rounding; this is a problem on x86, where the x87 FPU has a default
21998 # rounding precision of 64 bits. For gcc/x86, we try to fix this by
21999 # using inline assembler to get and set the x87 FPU control word.
22000 if test "$GCC" = yes && test -n "`$CC -dM -E - </dev/null | grep i386`"
22001 then
22002 # Check that it's okay to use gcc inline assembler to get and set
22003 # x87 control word. It should be, but you never know...
22004 { echo "$as_me:$LINENO: checking whether we can use gcc inline assembler to get and set x87 control word" >&5
22005 echo $ECHO_N "checking whether we can use gcc inline assembler to get and set x87 control word... $ECHO_C" >&6; }
22006 cat >conftest.$ac_ext <<_ACEOF
22007 /* confdefs.h. */
22008 _ACEOF
22009 cat confdefs.h >>conftest.$ac_ext
22010 cat >>conftest.$ac_ext <<_ACEOF
22011 /* end confdefs.h. */
22014 main ()
22017 unsigned short cw;
22018 __asm__ __volatile__ ("fnstcw %0" : "=m" (cw));
22019 __asm__ __volatile__ ("fldcw %0" : : "m" (cw));
22022 return 0;
22024 _ACEOF
22025 rm -f conftest.$ac_objext
22026 if { (ac_try="$ac_compile"
22027 case "(($ac_try" in
22028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22029 *) ac_try_echo=$ac_try;;
22030 esac
22031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22032 (eval "$ac_compile") 2>conftest.er1
22033 ac_status=$?
22034 grep -v '^ *+' conftest.er1 >conftest.err
22035 rm -f conftest.er1
22036 cat conftest.err >&5
22037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22038 (exit $ac_status); } && {
22039 test -z "$ac_c_werror_flag" ||
22040 test ! -s conftest.err
22041 } && test -s conftest.$ac_objext; then
22042 have_gcc_asm_for_x87=yes
22043 else
22044 echo "$as_me: failed program was:" >&5
22045 sed 's/^/| /' conftest.$ac_ext >&5
22047 have_gcc_asm_for_x87=no
22050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22051 { echo "$as_me:$LINENO: result: $have_gcc_asm_for_x87" >&5
22052 echo "${ECHO_T}$have_gcc_asm_for_x87" >&6; }
22053 if test "$have_gcc_asm_for_x87" = yes
22054 then
22056 cat >>confdefs.h <<\_ACEOF
22057 #define HAVE_GCC_ASM_FOR_X87 1
22058 _ACEOF
22063 # Detect whether system arithmetic is subject to x87-style double
22064 # rounding issues. The result of this test has little meaning on non
22065 # IEEE 754 platforms. On IEEE 754, test should return 1 if rounding
22066 # mode is round-to-nearest and double rounding issues are present, and
22067 # 0 otherwise. See http://bugs.python.org/issue2937 for more info.
22068 { echo "$as_me:$LINENO: checking for x87-style double rounding" >&5
22069 echo $ECHO_N "checking for x87-style double rounding... $ECHO_C" >&6; }
22070 # $BASECFLAGS may affect the result
22071 ac_save_cc="$CC"
22072 CC="$CC $BASECFLAGS"
22073 if test "$cross_compiling" = yes; then
22074 ac_cv_x87_double_rounding=no
22075 else
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. */
22083 #include <stdlib.h>
22084 #include <math.h>
22085 int main() {
22086 volatile double x, y, z;
22087 /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */
22088 x = 0.99999999999999989; /* 1-2**-53 */
22089 y = 1./x;
22090 if (y != 1.)
22091 exit(0);
22092 /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */
22093 x = 1e16;
22094 y = 2.99999;
22095 z = x + y;
22096 if (z != 1e16+4.)
22097 exit(0);
22098 /* both tests show evidence of double rounding */
22099 exit(1);
22102 _ACEOF
22103 rm -f conftest$ac_exeext
22104 if { (ac_try="$ac_link"
22105 case "(($ac_try" in
22106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22107 *) ac_try_echo=$ac_try;;
22108 esac
22109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22110 (eval "$ac_link") 2>&5
22111 ac_status=$?
22112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22113 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22114 { (case "(($ac_try" in
22115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22116 *) ac_try_echo=$ac_try;;
22117 esac
22118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22119 (eval "$ac_try") 2>&5
22120 ac_status=$?
22121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22122 (exit $ac_status); }; }; then
22123 ac_cv_x87_double_rounding=no
22124 else
22125 echo "$as_me: program exited with status $ac_status" >&5
22126 echo "$as_me: failed program was:" >&5
22127 sed 's/^/| /' conftest.$ac_ext >&5
22129 ( exit $ac_status )
22130 ac_cv_x87_double_rounding=yes
22132 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22136 CC="$ac_save_cc"
22137 { echo "$as_me:$LINENO: result: $ac_cv_x87_double_rounding" >&5
22138 echo "${ECHO_T}$ac_cv_x87_double_rounding" >&6; }
22139 if test "$ac_cv_x87_double_rounding" = yes
22140 then
22142 cat >>confdefs.h <<\_ACEOF
22143 #define X87_DOUBLE_ROUNDING 1
22144 _ACEOF
22148 # ************************************
22149 # * Check for mathematical functions *
22150 # ************************************
22152 LIBS_SAVE=$LIBS
22153 LIBS="$LIBS $LIBM"
22155 # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of
22156 # -0. on some architectures.
22157 { echo "$as_me:$LINENO: checking whether tanh preserves the sign of zero" >&5
22158 echo $ECHO_N "checking whether tanh preserves the sign of zero... $ECHO_C" >&6; }
22159 if test "${ac_cv_tanh_preserves_zero_sign+set}" = set; then
22160 echo $ECHO_N "(cached) $ECHO_C" >&6
22161 else
22163 if test "$cross_compiling" = yes; then
22164 ac_cv_tanh_preserves_zero_sign=no
22165 else
22166 cat >conftest.$ac_ext <<_ACEOF
22167 /* confdefs.h. */
22168 _ACEOF
22169 cat confdefs.h >>conftest.$ac_ext
22170 cat >>conftest.$ac_ext <<_ACEOF
22171 /* end confdefs.h. */
22173 #include <math.h>
22174 #include <stdlib.h>
22175 int main() {
22176 /* return 0 if either negative zeros don't exist
22177 on this platform or if negative zeros exist
22178 and tanh(-0.) == -0. */
22179 if (atan2(0., -1.) == atan2(-0., -1.) ||
22180 atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0);
22181 else exit(1);
22184 _ACEOF
22185 rm -f conftest$ac_exeext
22186 if { (ac_try="$ac_link"
22187 case "(($ac_try" in
22188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22189 *) ac_try_echo=$ac_try;;
22190 esac
22191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22192 (eval "$ac_link") 2>&5
22193 ac_status=$?
22194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22195 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22196 { (case "(($ac_try" in
22197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22198 *) ac_try_echo=$ac_try;;
22199 esac
22200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22201 (eval "$ac_try") 2>&5
22202 ac_status=$?
22203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22204 (exit $ac_status); }; }; then
22205 ac_cv_tanh_preserves_zero_sign=yes
22206 else
22207 echo "$as_me: program exited with status $ac_status" >&5
22208 echo "$as_me: failed program was:" >&5
22209 sed 's/^/| /' conftest.$ac_ext >&5
22211 ( exit $ac_status )
22212 ac_cv_tanh_preserves_zero_sign=no
22214 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22220 { echo "$as_me:$LINENO: result: $ac_cv_tanh_preserves_zero_sign" >&5
22221 echo "${ECHO_T}$ac_cv_tanh_preserves_zero_sign" >&6; }
22222 if test "$ac_cv_tanh_preserves_zero_sign" = yes
22223 then
22225 cat >>confdefs.h <<\_ACEOF
22226 #define TANH_PRESERVES_ZERO_SIGN 1
22227 _ACEOF
22240 for ac_func in acosh asinh atanh copysign expm1 finite hypot log1p round
22242 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22243 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22244 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22245 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22246 echo $ECHO_N "(cached) $ECHO_C" >&6
22247 else
22248 cat >conftest.$ac_ext <<_ACEOF
22249 /* confdefs.h. */
22250 _ACEOF
22251 cat confdefs.h >>conftest.$ac_ext
22252 cat >>conftest.$ac_ext <<_ACEOF
22253 /* end confdefs.h. */
22254 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22255 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22256 #define $ac_func innocuous_$ac_func
22258 /* System header to define __stub macros and hopefully few prototypes,
22259 which can conflict with char $ac_func (); below.
22260 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22261 <limits.h> exists even on freestanding compilers. */
22263 #ifdef __STDC__
22264 # include <limits.h>
22265 #else
22266 # include <assert.h>
22267 #endif
22269 #undef $ac_func
22271 /* Override any GCC internal prototype to avoid an error.
22272 Use char because int might match the return type of a GCC
22273 builtin and then its argument prototype would still apply. */
22274 #ifdef __cplusplus
22275 extern "C"
22276 #endif
22277 char $ac_func ();
22278 /* The GNU C library defines this for functions which it implements
22279 to always fail with ENOSYS. Some functions are actually named
22280 something starting with __ and the normal name is an alias. */
22281 #if defined __stub_$ac_func || defined __stub___$ac_func
22282 choke me
22283 #endif
22286 main ()
22288 return $ac_func ();
22290 return 0;
22292 _ACEOF
22293 rm -f conftest.$ac_objext conftest$ac_exeext
22294 if { (ac_try="$ac_link"
22295 case "(($ac_try" in
22296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22297 *) ac_try_echo=$ac_try;;
22298 esac
22299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22300 (eval "$ac_link") 2>conftest.er1
22301 ac_status=$?
22302 grep -v '^ *+' conftest.er1 >conftest.err
22303 rm -f conftest.er1
22304 cat conftest.err >&5
22305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22306 (exit $ac_status); } && {
22307 test -z "$ac_c_werror_flag" ||
22308 test ! -s conftest.err
22309 } && test -s conftest$ac_exeext &&
22310 $as_test_x conftest$ac_exeext; then
22311 eval "$as_ac_var=yes"
22312 else
22313 echo "$as_me: failed program was:" >&5
22314 sed 's/^/| /' conftest.$ac_ext >&5
22316 eval "$as_ac_var=no"
22319 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22320 conftest$ac_exeext conftest.$ac_ext
22322 ac_res=`eval echo '${'$as_ac_var'}'`
22323 { echo "$as_me:$LINENO: result: $ac_res" >&5
22324 echo "${ECHO_T}$ac_res" >&6; }
22325 if test `eval echo '${'$as_ac_var'}'` = yes; then
22326 cat >>confdefs.h <<_ACEOF
22327 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22328 _ACEOF
22331 done
22333 { echo "$as_me:$LINENO: checking whether isinf is declared" >&5
22334 echo $ECHO_N "checking whether isinf is declared... $ECHO_C" >&6; }
22335 if test "${ac_cv_have_decl_isinf+set}" = set; then
22336 echo $ECHO_N "(cached) $ECHO_C" >&6
22337 else
22338 cat >conftest.$ac_ext <<_ACEOF
22339 /* confdefs.h. */
22340 _ACEOF
22341 cat confdefs.h >>conftest.$ac_ext
22342 cat >>conftest.$ac_ext <<_ACEOF
22343 /* end confdefs.h. */
22344 #include <math.h>
22347 main ()
22349 #ifndef isinf
22350 (void) isinf;
22351 #endif
22354 return 0;
22356 _ACEOF
22357 rm -f conftest.$ac_objext
22358 if { (ac_try="$ac_compile"
22359 case "(($ac_try" in
22360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22361 *) ac_try_echo=$ac_try;;
22362 esac
22363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22364 (eval "$ac_compile") 2>conftest.er1
22365 ac_status=$?
22366 grep -v '^ *+' conftest.er1 >conftest.err
22367 rm -f conftest.er1
22368 cat conftest.err >&5
22369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22370 (exit $ac_status); } && {
22371 test -z "$ac_c_werror_flag" ||
22372 test ! -s conftest.err
22373 } && test -s conftest.$ac_objext; then
22374 ac_cv_have_decl_isinf=yes
22375 else
22376 echo "$as_me: failed program was:" >&5
22377 sed 's/^/| /' conftest.$ac_ext >&5
22379 ac_cv_have_decl_isinf=no
22382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22384 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isinf" >&5
22385 echo "${ECHO_T}$ac_cv_have_decl_isinf" >&6; }
22386 if test $ac_cv_have_decl_isinf = yes; then
22388 cat >>confdefs.h <<_ACEOF
22389 #define HAVE_DECL_ISINF 1
22390 _ACEOF
22393 else
22394 cat >>confdefs.h <<_ACEOF
22395 #define HAVE_DECL_ISINF 0
22396 _ACEOF
22400 { echo "$as_me:$LINENO: checking whether isnan is declared" >&5
22401 echo $ECHO_N "checking whether isnan is declared... $ECHO_C" >&6; }
22402 if test "${ac_cv_have_decl_isnan+set}" = set; then
22403 echo $ECHO_N "(cached) $ECHO_C" >&6
22404 else
22405 cat >conftest.$ac_ext <<_ACEOF
22406 /* confdefs.h. */
22407 _ACEOF
22408 cat confdefs.h >>conftest.$ac_ext
22409 cat >>conftest.$ac_ext <<_ACEOF
22410 /* end confdefs.h. */
22411 #include <math.h>
22414 main ()
22416 #ifndef isnan
22417 (void) isnan;
22418 #endif
22421 return 0;
22423 _ACEOF
22424 rm -f conftest.$ac_objext
22425 if { (ac_try="$ac_compile"
22426 case "(($ac_try" in
22427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22428 *) ac_try_echo=$ac_try;;
22429 esac
22430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22431 (eval "$ac_compile") 2>conftest.er1
22432 ac_status=$?
22433 grep -v '^ *+' conftest.er1 >conftest.err
22434 rm -f conftest.er1
22435 cat conftest.err >&5
22436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22437 (exit $ac_status); } && {
22438 test -z "$ac_c_werror_flag" ||
22439 test ! -s conftest.err
22440 } && test -s conftest.$ac_objext; then
22441 ac_cv_have_decl_isnan=yes
22442 else
22443 echo "$as_me: failed program was:" >&5
22444 sed 's/^/| /' conftest.$ac_ext >&5
22446 ac_cv_have_decl_isnan=no
22449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22451 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isnan" >&5
22452 echo "${ECHO_T}$ac_cv_have_decl_isnan" >&6; }
22453 if test $ac_cv_have_decl_isnan = yes; then
22455 cat >>confdefs.h <<_ACEOF
22456 #define HAVE_DECL_ISNAN 1
22457 _ACEOF
22460 else
22461 cat >>confdefs.h <<_ACEOF
22462 #define HAVE_DECL_ISNAN 0
22463 _ACEOF
22467 { echo "$as_me:$LINENO: checking whether isfinite is declared" >&5
22468 echo $ECHO_N "checking whether isfinite is declared... $ECHO_C" >&6; }
22469 if test "${ac_cv_have_decl_isfinite+set}" = set; then
22470 echo $ECHO_N "(cached) $ECHO_C" >&6
22471 else
22472 cat >conftest.$ac_ext <<_ACEOF
22473 /* confdefs.h. */
22474 _ACEOF
22475 cat confdefs.h >>conftest.$ac_ext
22476 cat >>conftest.$ac_ext <<_ACEOF
22477 /* end confdefs.h. */
22478 #include <math.h>
22481 main ()
22483 #ifndef isfinite
22484 (void) isfinite;
22485 #endif
22488 return 0;
22490 _ACEOF
22491 rm -f conftest.$ac_objext
22492 if { (ac_try="$ac_compile"
22493 case "(($ac_try" in
22494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22495 *) ac_try_echo=$ac_try;;
22496 esac
22497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22498 (eval "$ac_compile") 2>conftest.er1
22499 ac_status=$?
22500 grep -v '^ *+' conftest.er1 >conftest.err
22501 rm -f conftest.er1
22502 cat conftest.err >&5
22503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22504 (exit $ac_status); } && {
22505 test -z "$ac_c_werror_flag" ||
22506 test ! -s conftest.err
22507 } && test -s conftest.$ac_objext; then
22508 ac_cv_have_decl_isfinite=yes
22509 else
22510 echo "$as_me: failed program was:" >&5
22511 sed 's/^/| /' conftest.$ac_ext >&5
22513 ac_cv_have_decl_isfinite=no
22516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22518 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isfinite" >&5
22519 echo "${ECHO_T}$ac_cv_have_decl_isfinite" >&6; }
22520 if test $ac_cv_have_decl_isfinite = yes; then
22522 cat >>confdefs.h <<_ACEOF
22523 #define HAVE_DECL_ISFINITE 1
22524 _ACEOF
22527 else
22528 cat >>confdefs.h <<_ACEOF
22529 #define HAVE_DECL_ISFINITE 0
22530 _ACEOF
22537 LIBS=$LIBS_SAVE
22539 # For multiprocessing module, check that sem_open
22540 # actually works. For FreeBSD versions <= 7.2,
22541 # the kernel module that provides POSIX semaphores
22542 # isn't loaded by default, so an attempt to call
22543 # sem_open results in a 'Signal 12' error.
22544 { echo "$as_me:$LINENO: checking whether POSIX semaphores are enabled" >&5
22545 echo $ECHO_N "checking whether POSIX semaphores are enabled... $ECHO_C" >&6; }
22546 if test "${ac_cv_posix_semaphores_enabled+set}" = set; then
22547 echo $ECHO_N "(cached) $ECHO_C" >&6
22548 else
22549 if test "$cross_compiling" = yes; then
22550 ac_cv_posix_semaphores_enabled=yes
22551 else
22552 cat >conftest.$ac_ext <<_ACEOF
22553 /* confdefs.h. */
22554 _ACEOF
22555 cat confdefs.h >>conftest.$ac_ext
22556 cat >>conftest.$ac_ext <<_ACEOF
22557 /* end confdefs.h. */
22559 #include <unistd.h>
22560 #include <fcntl.h>
22561 #include <stdio.h>
22562 #include <semaphore.h>
22563 #include <sys/stat.h>
22565 int main(void) {
22566 sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0);
22567 if (a == SEM_FAILED) {
22568 perror("sem_open");
22569 return 1;
22571 sem_close(a);
22572 sem_unlink("/autoconf");
22573 return 0;
22576 _ACEOF
22577 rm -f conftest$ac_exeext
22578 if { (ac_try="$ac_link"
22579 case "(($ac_try" in
22580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22581 *) ac_try_echo=$ac_try;;
22582 esac
22583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22584 (eval "$ac_link") 2>&5
22585 ac_status=$?
22586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22587 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22588 { (case "(($ac_try" in
22589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22590 *) ac_try_echo=$ac_try;;
22591 esac
22592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22593 (eval "$ac_try") 2>&5
22594 ac_status=$?
22595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22596 (exit $ac_status); }; }; then
22597 ac_cv_posix_semaphores_enabled=yes
22598 else
22599 echo "$as_me: program exited with status $ac_status" >&5
22600 echo "$as_me: failed program was:" >&5
22601 sed 's/^/| /' conftest.$ac_ext >&5
22603 ( exit $ac_status )
22604 ac_cv_posix_semaphores_enabled=no
22606 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22613 { echo "$as_me:$LINENO: result: $ac_cv_posix_semaphores_enabled" >&5
22614 echo "${ECHO_T}$ac_cv_posix_semaphores_enabled" >&6; }
22615 if test $ac_cv_posix_semaphores_enabled = no
22616 then
22618 cat >>confdefs.h <<\_ACEOF
22619 #define POSIX_SEMAPHORES_NOT_ENABLED 1
22620 _ACEOF
22624 # Multiprocessing check for broken sem_getvalue
22625 { echo "$as_me:$LINENO: checking for broken sem_getvalue" >&5
22626 echo $ECHO_N "checking for broken sem_getvalue... $ECHO_C" >&6; }
22627 if test "$cross_compiling" = yes; then
22628 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22629 See \`config.log' for more details." >&5
22630 echo "$as_me: error: cannot run test program while cross compiling
22631 See \`config.log' for more details." >&2;}
22632 { (exit 1); exit 1; }; }
22633 else
22634 cat >conftest.$ac_ext <<_ACEOF
22635 /* confdefs.h. */
22636 _ACEOF
22637 cat confdefs.h >>conftest.$ac_ext
22638 cat >>conftest.$ac_ext <<_ACEOF
22639 /* end confdefs.h. */
22641 #include <unistd.h>
22642 #include <fcntl.h>
22643 #include <stdio.h>
22644 #include <semaphore.h>
22645 #include <sys/stat.h>
22647 int main(void){
22648 sem_t *a = sem_open("/autocftw", O_CREAT, S_IRUSR|S_IWUSR, 0);
22649 int count;
22650 int res;
22651 if(a==SEM_FAILED){
22652 perror("sem_open");
22653 return 1;
22656 res = sem_getvalue(a, &count);
22657 sem_close(a);
22658 sem_unlink("/autocftw");
22659 return res==-1 ? 1 : 0;
22663 _ACEOF
22664 rm -f conftest$ac_exeext
22665 if { (ac_try="$ac_link"
22666 case "(($ac_try" in
22667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22668 *) ac_try_echo=$ac_try;;
22669 esac
22670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22671 (eval "$ac_link") 2>&5
22672 ac_status=$?
22673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22674 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22675 { (case "(($ac_try" in
22676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22677 *) ac_try_echo=$ac_try;;
22678 esac
22679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22680 (eval "$ac_try") 2>&5
22681 ac_status=$?
22682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22683 (exit $ac_status); }; }; then
22684 { echo "$as_me:$LINENO: result: no" >&5
22685 echo "${ECHO_T}no" >&6; }
22686 else
22687 echo "$as_me: program exited with status $ac_status" >&5
22688 echo "$as_me: failed program was:" >&5
22689 sed 's/^/| /' conftest.$ac_ext >&5
22691 ( exit $ac_status )
22692 { echo "$as_me:$LINENO: result: yes" >&5
22693 echo "${ECHO_T}yes" >&6; }
22695 cat >>confdefs.h <<\_ACEOF
22696 #define HAVE_BROKEN_SEM_GETVALUE 1
22697 _ACEOF
22701 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22706 # determine what size digit to use for Python's longs
22707 { echo "$as_me:$LINENO: checking digit size for Python's longs" >&5
22708 echo $ECHO_N "checking digit size for Python's longs... $ECHO_C" >&6; }
22709 # Check whether --enable-big-digits was given.
22710 if test "${enable_big_digits+set}" = set; then
22711 enableval=$enable_big_digits; case $enable_big_digits in
22712 yes)
22713 enable_big_digits=30 ;;
22715 enable_big_digits=15 ;;
22716 15|30)
22719 { { echo "$as_me:$LINENO: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&5
22720 echo "$as_me: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&2;}
22721 { (exit 1); exit 1; }; } ;;
22722 esac
22723 { echo "$as_me:$LINENO: result: $enable_big_digits" >&5
22724 echo "${ECHO_T}$enable_big_digits" >&6; }
22726 cat >>confdefs.h <<_ACEOF
22727 #define PYLONG_BITS_IN_DIGIT $enable_big_digits
22728 _ACEOF
22731 else
22732 { echo "$as_me:$LINENO: result: no value specified" >&5
22733 echo "${ECHO_T}no value specified" >&6; }
22737 # check for wchar.h
22738 if test "${ac_cv_header_wchar_h+set}" = set; then
22739 { echo "$as_me:$LINENO: checking for wchar.h" >&5
22740 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
22741 if test "${ac_cv_header_wchar_h+set}" = set; then
22742 echo $ECHO_N "(cached) $ECHO_C" >&6
22744 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
22745 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
22746 else
22747 # Is the header compilable?
22748 { echo "$as_me:$LINENO: checking wchar.h usability" >&5
22749 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6; }
22750 cat >conftest.$ac_ext <<_ACEOF
22751 /* confdefs.h. */
22752 _ACEOF
22753 cat confdefs.h >>conftest.$ac_ext
22754 cat >>conftest.$ac_ext <<_ACEOF
22755 /* end confdefs.h. */
22756 $ac_includes_default
22757 #include <wchar.h>
22758 _ACEOF
22759 rm -f conftest.$ac_objext
22760 if { (ac_try="$ac_compile"
22761 case "(($ac_try" in
22762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22763 *) ac_try_echo=$ac_try;;
22764 esac
22765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22766 (eval "$ac_compile") 2>conftest.er1
22767 ac_status=$?
22768 grep -v '^ *+' conftest.er1 >conftest.err
22769 rm -f conftest.er1
22770 cat conftest.err >&5
22771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22772 (exit $ac_status); } && {
22773 test -z "$ac_c_werror_flag" ||
22774 test ! -s conftest.err
22775 } && test -s conftest.$ac_objext; then
22776 ac_header_compiler=yes
22777 else
22778 echo "$as_me: failed program was:" >&5
22779 sed 's/^/| /' conftest.$ac_ext >&5
22781 ac_header_compiler=no
22784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22785 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22786 echo "${ECHO_T}$ac_header_compiler" >&6; }
22788 # Is the header present?
22789 { echo "$as_me:$LINENO: checking wchar.h presence" >&5
22790 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6; }
22791 cat >conftest.$ac_ext <<_ACEOF
22792 /* confdefs.h. */
22793 _ACEOF
22794 cat confdefs.h >>conftest.$ac_ext
22795 cat >>conftest.$ac_ext <<_ACEOF
22796 /* end confdefs.h. */
22797 #include <wchar.h>
22798 _ACEOF
22799 if { (ac_try="$ac_cpp conftest.$ac_ext"
22800 case "(($ac_try" in
22801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22802 *) ac_try_echo=$ac_try;;
22803 esac
22804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22805 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22806 ac_status=$?
22807 grep -v '^ *+' conftest.er1 >conftest.err
22808 rm -f conftest.er1
22809 cat conftest.err >&5
22810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22811 (exit $ac_status); } >/dev/null && {
22812 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22813 test ! -s conftest.err
22814 }; then
22815 ac_header_preproc=yes
22816 else
22817 echo "$as_me: failed program was:" >&5
22818 sed 's/^/| /' conftest.$ac_ext >&5
22820 ac_header_preproc=no
22823 rm -f conftest.err conftest.$ac_ext
22824 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22825 echo "${ECHO_T}$ac_header_preproc" >&6; }
22827 # So? What about this header?
22828 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22829 yes:no: )
22830 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
22831 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22832 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
22833 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
22834 ac_header_preproc=yes
22836 no:yes:* )
22837 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
22838 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
22839 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
22840 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
22841 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
22842 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
22843 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
22844 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
22845 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
22846 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
22847 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
22848 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
22849 ( cat <<\_ASBOX
22850 ## -------------------------------------- ##
22851 ## Report this to http://bugs.python.org/ ##
22852 ## -------------------------------------- ##
22853 _ASBOX
22854 ) | sed "s/^/$as_me: WARNING: /" >&2
22856 esac
22857 { echo "$as_me:$LINENO: checking for wchar.h" >&5
22858 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
22859 if test "${ac_cv_header_wchar_h+set}" = set; then
22860 echo $ECHO_N "(cached) $ECHO_C" >&6
22861 else
22862 ac_cv_header_wchar_h=$ac_header_preproc
22864 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
22865 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
22868 if test $ac_cv_header_wchar_h = yes; then
22871 cat >>confdefs.h <<\_ACEOF
22872 #define HAVE_WCHAR_H 1
22873 _ACEOF
22875 wchar_h="yes"
22877 else
22878 wchar_h="no"
22884 # determine wchar_t size
22885 if test "$wchar_h" = yes
22886 then
22887 { echo "$as_me:$LINENO: checking for wchar_t" >&5
22888 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
22889 if test "${ac_cv_type_wchar_t+set}" = set; then
22890 echo $ECHO_N "(cached) $ECHO_C" >&6
22891 else
22892 cat >conftest.$ac_ext <<_ACEOF
22893 /* confdefs.h. */
22894 _ACEOF
22895 cat confdefs.h >>conftest.$ac_ext
22896 cat >>conftest.$ac_ext <<_ACEOF
22897 /* end confdefs.h. */
22898 #include <wchar.h>
22900 typedef wchar_t ac__type_new_;
22902 main ()
22904 if ((ac__type_new_ *) 0)
22905 return 0;
22906 if (sizeof (ac__type_new_))
22907 return 0;
22909 return 0;
22911 _ACEOF
22912 rm -f conftest.$ac_objext
22913 if { (ac_try="$ac_compile"
22914 case "(($ac_try" in
22915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22916 *) ac_try_echo=$ac_try;;
22917 esac
22918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22919 (eval "$ac_compile") 2>conftest.er1
22920 ac_status=$?
22921 grep -v '^ *+' conftest.er1 >conftest.err
22922 rm -f conftest.er1
22923 cat conftest.err >&5
22924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22925 (exit $ac_status); } && {
22926 test -z "$ac_c_werror_flag" ||
22927 test ! -s conftest.err
22928 } && test -s conftest.$ac_objext; then
22929 ac_cv_type_wchar_t=yes
22930 else
22931 echo "$as_me: failed program was:" >&5
22932 sed 's/^/| /' conftest.$ac_ext >&5
22934 ac_cv_type_wchar_t=no
22937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22939 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
22940 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
22942 # The cast to long int works around a bug in the HP C Compiler
22943 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22944 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22945 # This bug is HP SR number 8606223364.
22946 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
22947 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
22948 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
22949 echo $ECHO_N "(cached) $ECHO_C" >&6
22950 else
22951 if test "$cross_compiling" = yes; then
22952 # Depending upon the size, compute the lo and hi bounds.
22953 cat >conftest.$ac_ext <<_ACEOF
22954 /* confdefs.h. */
22955 _ACEOF
22956 cat confdefs.h >>conftest.$ac_ext
22957 cat >>conftest.$ac_ext <<_ACEOF
22958 /* end confdefs.h. */
22959 #include <wchar.h>
22961 typedef wchar_t ac__type_sizeof_;
22963 main ()
22965 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22966 test_array [0] = 0
22969 return 0;
22971 _ACEOF
22972 rm -f conftest.$ac_objext
22973 if { (ac_try="$ac_compile"
22974 case "(($ac_try" in
22975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22976 *) ac_try_echo=$ac_try;;
22977 esac
22978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22979 (eval "$ac_compile") 2>conftest.er1
22980 ac_status=$?
22981 grep -v '^ *+' conftest.er1 >conftest.err
22982 rm -f conftest.er1
22983 cat conftest.err >&5
22984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22985 (exit $ac_status); } && {
22986 test -z "$ac_c_werror_flag" ||
22987 test ! -s conftest.err
22988 } && test -s conftest.$ac_objext; then
22989 ac_lo=0 ac_mid=0
22990 while :; do
22991 cat >conftest.$ac_ext <<_ACEOF
22992 /* confdefs.h. */
22993 _ACEOF
22994 cat confdefs.h >>conftest.$ac_ext
22995 cat >>conftest.$ac_ext <<_ACEOF
22996 /* end confdefs.h. */
22997 #include <wchar.h>
22999 typedef wchar_t ac__type_sizeof_;
23001 main ()
23003 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23004 test_array [0] = 0
23007 return 0;
23009 _ACEOF
23010 rm -f conftest.$ac_objext
23011 if { (ac_try="$ac_compile"
23012 case "(($ac_try" in
23013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23014 *) ac_try_echo=$ac_try;;
23015 esac
23016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23017 (eval "$ac_compile") 2>conftest.er1
23018 ac_status=$?
23019 grep -v '^ *+' conftest.er1 >conftest.err
23020 rm -f conftest.er1
23021 cat conftest.err >&5
23022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23023 (exit $ac_status); } && {
23024 test -z "$ac_c_werror_flag" ||
23025 test ! -s conftest.err
23026 } && test -s conftest.$ac_objext; then
23027 ac_hi=$ac_mid; break
23028 else
23029 echo "$as_me: failed program was:" >&5
23030 sed 's/^/| /' conftest.$ac_ext >&5
23032 ac_lo=`expr $ac_mid + 1`
23033 if test $ac_lo -le $ac_mid; then
23034 ac_lo= ac_hi=
23035 break
23037 ac_mid=`expr 2 '*' $ac_mid + 1`
23040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23041 done
23042 else
23043 echo "$as_me: failed program was:" >&5
23044 sed 's/^/| /' conftest.$ac_ext >&5
23046 cat >conftest.$ac_ext <<_ACEOF
23047 /* confdefs.h. */
23048 _ACEOF
23049 cat confdefs.h >>conftest.$ac_ext
23050 cat >>conftest.$ac_ext <<_ACEOF
23051 /* end confdefs.h. */
23052 #include <wchar.h>
23054 typedef wchar_t ac__type_sizeof_;
23056 main ()
23058 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23059 test_array [0] = 0
23062 return 0;
23064 _ACEOF
23065 rm -f conftest.$ac_objext
23066 if { (ac_try="$ac_compile"
23067 case "(($ac_try" in
23068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23069 *) ac_try_echo=$ac_try;;
23070 esac
23071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23072 (eval "$ac_compile") 2>conftest.er1
23073 ac_status=$?
23074 grep -v '^ *+' conftest.er1 >conftest.err
23075 rm -f conftest.er1
23076 cat conftest.err >&5
23077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23078 (exit $ac_status); } && {
23079 test -z "$ac_c_werror_flag" ||
23080 test ! -s conftest.err
23081 } && test -s conftest.$ac_objext; then
23082 ac_hi=-1 ac_mid=-1
23083 while :; do
23084 cat >conftest.$ac_ext <<_ACEOF
23085 /* confdefs.h. */
23086 _ACEOF
23087 cat confdefs.h >>conftest.$ac_ext
23088 cat >>conftest.$ac_ext <<_ACEOF
23089 /* end confdefs.h. */
23090 #include <wchar.h>
23092 typedef wchar_t ac__type_sizeof_;
23094 main ()
23096 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23097 test_array [0] = 0
23100 return 0;
23102 _ACEOF
23103 rm -f conftest.$ac_objext
23104 if { (ac_try="$ac_compile"
23105 case "(($ac_try" in
23106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23107 *) ac_try_echo=$ac_try;;
23108 esac
23109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23110 (eval "$ac_compile") 2>conftest.er1
23111 ac_status=$?
23112 grep -v '^ *+' conftest.er1 >conftest.err
23113 rm -f conftest.er1
23114 cat conftest.err >&5
23115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23116 (exit $ac_status); } && {
23117 test -z "$ac_c_werror_flag" ||
23118 test ! -s conftest.err
23119 } && test -s conftest.$ac_objext; then
23120 ac_lo=$ac_mid; break
23121 else
23122 echo "$as_me: failed program was:" >&5
23123 sed 's/^/| /' conftest.$ac_ext >&5
23125 ac_hi=`expr '(' $ac_mid ')' - 1`
23126 if test $ac_mid -le $ac_hi; then
23127 ac_lo= ac_hi=
23128 break
23130 ac_mid=`expr 2 '*' $ac_mid`
23133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23134 done
23135 else
23136 echo "$as_me: failed program was:" >&5
23137 sed 's/^/| /' conftest.$ac_ext >&5
23139 ac_lo= ac_hi=
23142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23146 # Binary search between lo and hi bounds.
23147 while test "x$ac_lo" != "x$ac_hi"; do
23148 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23149 cat >conftest.$ac_ext <<_ACEOF
23150 /* confdefs.h. */
23151 _ACEOF
23152 cat confdefs.h >>conftest.$ac_ext
23153 cat >>conftest.$ac_ext <<_ACEOF
23154 /* end confdefs.h. */
23155 #include <wchar.h>
23157 typedef wchar_t ac__type_sizeof_;
23159 main ()
23161 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23162 test_array [0] = 0
23165 return 0;
23167 _ACEOF
23168 rm -f conftest.$ac_objext
23169 if { (ac_try="$ac_compile"
23170 case "(($ac_try" in
23171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23172 *) ac_try_echo=$ac_try;;
23173 esac
23174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23175 (eval "$ac_compile") 2>conftest.er1
23176 ac_status=$?
23177 grep -v '^ *+' conftest.er1 >conftest.err
23178 rm -f conftest.er1
23179 cat conftest.err >&5
23180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23181 (exit $ac_status); } && {
23182 test -z "$ac_c_werror_flag" ||
23183 test ! -s conftest.err
23184 } && test -s conftest.$ac_objext; then
23185 ac_hi=$ac_mid
23186 else
23187 echo "$as_me: failed program was:" >&5
23188 sed 's/^/| /' conftest.$ac_ext >&5
23190 ac_lo=`expr '(' $ac_mid ')' + 1`
23193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23194 done
23195 case $ac_lo in
23196 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
23197 '') if test "$ac_cv_type_wchar_t" = yes; then
23198 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
23199 See \`config.log' for more details." >&5
23200 echo "$as_me: error: cannot compute sizeof (wchar_t)
23201 See \`config.log' for more details." >&2;}
23202 { (exit 77); exit 77; }; }
23203 else
23204 ac_cv_sizeof_wchar_t=0
23205 fi ;;
23206 esac
23207 else
23208 cat >conftest.$ac_ext <<_ACEOF
23209 /* confdefs.h. */
23210 _ACEOF
23211 cat confdefs.h >>conftest.$ac_ext
23212 cat >>conftest.$ac_ext <<_ACEOF
23213 /* end confdefs.h. */
23214 #include <wchar.h>
23216 typedef wchar_t ac__type_sizeof_;
23217 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23218 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23219 #include <stdio.h>
23220 #include <stdlib.h>
23222 main ()
23225 FILE *f = fopen ("conftest.val", "w");
23226 if (! f)
23227 return 1;
23228 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23230 long int i = longval ();
23231 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23232 return 1;
23233 fprintf (f, "%ld\n", i);
23235 else
23237 unsigned long int i = ulongval ();
23238 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23239 return 1;
23240 fprintf (f, "%lu\n", i);
23242 return ferror (f) || fclose (f) != 0;
23245 return 0;
23247 _ACEOF
23248 rm -f conftest$ac_exeext
23249 if { (ac_try="$ac_link"
23250 case "(($ac_try" in
23251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23252 *) ac_try_echo=$ac_try;;
23253 esac
23254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23255 (eval "$ac_link") 2>&5
23256 ac_status=$?
23257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23258 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23259 { (case "(($ac_try" in
23260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23261 *) ac_try_echo=$ac_try;;
23262 esac
23263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23264 (eval "$ac_try") 2>&5
23265 ac_status=$?
23266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23267 (exit $ac_status); }; }; then
23268 ac_cv_sizeof_wchar_t=`cat conftest.val`
23269 else
23270 echo "$as_me: program exited with status $ac_status" >&5
23271 echo "$as_me: failed program was:" >&5
23272 sed 's/^/| /' conftest.$ac_ext >&5
23274 ( exit $ac_status )
23275 if test "$ac_cv_type_wchar_t" = yes; then
23276 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
23277 See \`config.log' for more details." >&5
23278 echo "$as_me: error: cannot compute sizeof (wchar_t)
23279 See \`config.log' for more details." >&2;}
23280 { (exit 77); exit 77; }; }
23281 else
23282 ac_cv_sizeof_wchar_t=0
23285 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23287 rm -f conftest.val
23289 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
23290 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
23294 cat >>confdefs.h <<_ACEOF
23295 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
23296 _ACEOF
23301 { echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
23302 echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6; }
23303 have_ucs4_tcl=no
23304 cat >conftest.$ac_ext <<_ACEOF
23305 /* confdefs.h. */
23306 _ACEOF
23307 cat confdefs.h >>conftest.$ac_ext
23308 cat >>conftest.$ac_ext <<_ACEOF
23309 /* end confdefs.h. */
23311 #include <tcl.h>
23312 #if TCL_UTF_MAX != 6
23313 # error "NOT UCS4_TCL"
23314 #endif
23316 main ()
23320 return 0;
23322 _ACEOF
23323 rm -f conftest.$ac_objext
23324 if { (ac_try="$ac_compile"
23325 case "(($ac_try" in
23326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23327 *) ac_try_echo=$ac_try;;
23328 esac
23329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23330 (eval "$ac_compile") 2>conftest.er1
23331 ac_status=$?
23332 grep -v '^ *+' conftest.er1 >conftest.err
23333 rm -f conftest.er1
23334 cat conftest.err >&5
23335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23336 (exit $ac_status); } && {
23337 test -z "$ac_c_werror_flag" ||
23338 test ! -s conftest.err
23339 } && test -s conftest.$ac_objext; then
23342 cat >>confdefs.h <<\_ACEOF
23343 #define HAVE_UCS4_TCL 1
23344 _ACEOF
23346 have_ucs4_tcl=yes
23348 else
23349 echo "$as_me: failed program was:" >&5
23350 sed 's/^/| /' conftest.$ac_ext >&5
23355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23356 { echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
23357 echo "${ECHO_T}$have_ucs4_tcl" >&6; }
23359 # check whether wchar_t is signed or not
23360 if test "$wchar_h" = yes
23361 then
23362 # check whether wchar_t is signed or not
23363 { echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
23364 echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6; }
23365 if test "${ac_cv_wchar_t_signed+set}" = set; then
23366 echo $ECHO_N "(cached) $ECHO_C" >&6
23367 else
23369 if test "$cross_compiling" = yes; then
23370 ac_cv_wchar_t_signed=yes
23371 else
23372 cat >conftest.$ac_ext <<_ACEOF
23373 /* confdefs.h. */
23374 _ACEOF
23375 cat confdefs.h >>conftest.$ac_ext
23376 cat >>conftest.$ac_ext <<_ACEOF
23377 /* end confdefs.h. */
23379 #include <wchar.h>
23380 int main()
23382 /* Success: exit code 0 */
23383 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
23386 _ACEOF
23387 rm -f conftest$ac_exeext
23388 if { (ac_try="$ac_link"
23389 case "(($ac_try" in
23390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23391 *) ac_try_echo=$ac_try;;
23392 esac
23393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23394 (eval "$ac_link") 2>&5
23395 ac_status=$?
23396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23397 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23398 { (case "(($ac_try" in
23399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23400 *) ac_try_echo=$ac_try;;
23401 esac
23402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23403 (eval "$ac_try") 2>&5
23404 ac_status=$?
23405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23406 (exit $ac_status); }; }; then
23407 ac_cv_wchar_t_signed=yes
23408 else
23409 echo "$as_me: program exited with status $ac_status" >&5
23410 echo "$as_me: failed program was:" >&5
23411 sed 's/^/| /' conftest.$ac_ext >&5
23413 ( exit $ac_status )
23414 ac_cv_wchar_t_signed=no
23416 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23422 { echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
23423 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6; }
23426 { echo "$as_me:$LINENO: checking what type to use for str" >&5
23427 echo $ECHO_N "checking what type to use for str... $ECHO_C" >&6; }
23429 # Check whether --with-wide-unicode was given.
23430 if test "${with_wide_unicode+set}" = set; then
23431 withval=$with_wide_unicode;
23432 if test "$withval" != no
23433 then unicode_size="4"
23434 else unicode_size="2"
23437 else
23439 case "$have_ucs4_tcl" in
23440 yes) unicode_size="4" ;;
23441 *) unicode_size="2" ;;
23442 esac
23449 case "$unicode_size" in
23450 4) cat >>confdefs.h <<\_ACEOF
23451 #define Py_UNICODE_SIZE 4
23452 _ACEOF
23454 *) cat >>confdefs.h <<\_ACEOF
23455 #define Py_UNICODE_SIZE 2
23456 _ACEOF
23458 esac
23463 # wchar_t is only usable if it maps to an unsigned type
23464 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
23465 -a "$ac_cv_wchar_t_signed" = "no"
23466 then
23467 PY_UNICODE_TYPE="wchar_t"
23469 cat >>confdefs.h <<\_ACEOF
23470 #define HAVE_USABLE_WCHAR_T 1
23471 _ACEOF
23473 cat >>confdefs.h <<\_ACEOF
23474 #define PY_UNICODE_TYPE wchar_t
23475 _ACEOF
23477 elif test "$ac_cv_sizeof_short" = "$unicode_size"
23478 then
23479 PY_UNICODE_TYPE="unsigned short"
23480 cat >>confdefs.h <<\_ACEOF
23481 #define PY_UNICODE_TYPE unsigned short
23482 _ACEOF
23484 elif test "$ac_cv_sizeof_long" = "$unicode_size"
23485 then
23486 PY_UNICODE_TYPE="unsigned long"
23487 cat >>confdefs.h <<\_ACEOF
23488 #define PY_UNICODE_TYPE unsigned long
23489 _ACEOF
23491 else
23492 PY_UNICODE_TYPE="no type found"
23494 { echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
23495 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6; }
23497 # check for endianness
23498 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
23499 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
23500 if test "${ac_cv_c_bigendian+set}" = set; then
23501 echo $ECHO_N "(cached) $ECHO_C" >&6
23502 else
23503 # See if sys/param.h defines the BYTE_ORDER macro.
23504 cat >conftest.$ac_ext <<_ACEOF
23505 /* confdefs.h. */
23506 _ACEOF
23507 cat confdefs.h >>conftest.$ac_ext
23508 cat >>conftest.$ac_ext <<_ACEOF
23509 /* end confdefs.h. */
23510 #include <sys/types.h>
23511 #include <sys/param.h>
23514 main ()
23516 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
23517 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
23518 bogus endian macros
23519 #endif
23522 return 0;
23524 _ACEOF
23525 rm -f conftest.$ac_objext
23526 if { (ac_try="$ac_compile"
23527 case "(($ac_try" in
23528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23529 *) ac_try_echo=$ac_try;;
23530 esac
23531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23532 (eval "$ac_compile") 2>conftest.er1
23533 ac_status=$?
23534 grep -v '^ *+' conftest.er1 >conftest.err
23535 rm -f conftest.er1
23536 cat conftest.err >&5
23537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23538 (exit $ac_status); } && {
23539 test -z "$ac_c_werror_flag" ||
23540 test ! -s conftest.err
23541 } && test -s conftest.$ac_objext; then
23542 # It does; now see whether it defined to BIG_ENDIAN or not.
23543 cat >conftest.$ac_ext <<_ACEOF
23544 /* confdefs.h. */
23545 _ACEOF
23546 cat confdefs.h >>conftest.$ac_ext
23547 cat >>conftest.$ac_ext <<_ACEOF
23548 /* end confdefs.h. */
23549 #include <sys/types.h>
23550 #include <sys/param.h>
23553 main ()
23555 #if BYTE_ORDER != BIG_ENDIAN
23556 not big endian
23557 #endif
23560 return 0;
23562 _ACEOF
23563 rm -f conftest.$ac_objext
23564 if { (ac_try="$ac_compile"
23565 case "(($ac_try" in
23566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23567 *) ac_try_echo=$ac_try;;
23568 esac
23569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23570 (eval "$ac_compile") 2>conftest.er1
23571 ac_status=$?
23572 grep -v '^ *+' conftest.er1 >conftest.err
23573 rm -f conftest.er1
23574 cat conftest.err >&5
23575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23576 (exit $ac_status); } && {
23577 test -z "$ac_c_werror_flag" ||
23578 test ! -s conftest.err
23579 } && test -s conftest.$ac_objext; then
23580 ac_cv_c_bigendian=yes
23581 else
23582 echo "$as_me: failed program was:" >&5
23583 sed 's/^/| /' conftest.$ac_ext >&5
23585 ac_cv_c_bigendian=no
23588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23589 else
23590 echo "$as_me: failed program was:" >&5
23591 sed 's/^/| /' conftest.$ac_ext >&5
23593 # It does not; compile a test program.
23594 if test "$cross_compiling" = yes; then
23595 # try to guess the endianness by grepping values into an object file
23596 ac_cv_c_bigendian=unknown
23597 cat >conftest.$ac_ext <<_ACEOF
23598 /* confdefs.h. */
23599 _ACEOF
23600 cat confdefs.h >>conftest.$ac_ext
23601 cat >>conftest.$ac_ext <<_ACEOF
23602 /* end confdefs.h. */
23603 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23604 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23605 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
23606 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23607 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23608 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
23610 main ()
23612 _ascii (); _ebcdic ();
23614 return 0;
23616 _ACEOF
23617 rm -f conftest.$ac_objext
23618 if { (ac_try="$ac_compile"
23619 case "(($ac_try" in
23620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23621 *) ac_try_echo=$ac_try;;
23622 esac
23623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23624 (eval "$ac_compile") 2>conftest.er1
23625 ac_status=$?
23626 grep -v '^ *+' conftest.er1 >conftest.err
23627 rm -f conftest.er1
23628 cat conftest.err >&5
23629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23630 (exit $ac_status); } && {
23631 test -z "$ac_c_werror_flag" ||
23632 test ! -s conftest.err
23633 } && test -s conftest.$ac_objext; then
23634 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
23635 ac_cv_c_bigendian=yes
23637 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23638 if test "$ac_cv_c_bigendian" = unknown; then
23639 ac_cv_c_bigendian=no
23640 else
23641 # finding both strings is unlikely to happen, but who knows?
23642 ac_cv_c_bigendian=unknown
23645 else
23646 echo "$as_me: failed program was:" >&5
23647 sed 's/^/| /' conftest.$ac_ext >&5
23652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23653 else
23654 cat >conftest.$ac_ext <<_ACEOF
23655 /* confdefs.h. */
23656 _ACEOF
23657 cat confdefs.h >>conftest.$ac_ext
23658 cat >>conftest.$ac_ext <<_ACEOF
23659 /* end confdefs.h. */
23660 $ac_includes_default
23662 main ()
23665 /* Are we little or big endian? From Harbison&Steele. */
23666 union
23668 long int l;
23669 char c[sizeof (long int)];
23670 } u;
23671 u.l = 1;
23672 return u.c[sizeof (long int) - 1] == 1;
23675 return 0;
23677 _ACEOF
23678 rm -f conftest$ac_exeext
23679 if { (ac_try="$ac_link"
23680 case "(($ac_try" in
23681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23682 *) ac_try_echo=$ac_try;;
23683 esac
23684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23685 (eval "$ac_link") 2>&5
23686 ac_status=$?
23687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23688 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23689 { (case "(($ac_try" in
23690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23691 *) ac_try_echo=$ac_try;;
23692 esac
23693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23694 (eval "$ac_try") 2>&5
23695 ac_status=$?
23696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23697 (exit $ac_status); }; }; then
23698 ac_cv_c_bigendian=no
23699 else
23700 echo "$as_me: program exited with status $ac_status" >&5
23701 echo "$as_me: failed program was:" >&5
23702 sed 's/^/| /' conftest.$ac_ext >&5
23704 ( exit $ac_status )
23705 ac_cv_c_bigendian=yes
23707 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23715 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
23716 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
23717 case $ac_cv_c_bigendian in
23718 yes)
23720 cat >>confdefs.h <<\_ACEOF
23721 #define WORDS_BIGENDIAN 1
23722 _ACEOF
23727 { { echo "$as_me:$LINENO: error: unknown endianness
23728 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
23729 echo "$as_me: error: unknown endianness
23730 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
23731 { (exit 1); exit 1; }; } ;;
23732 esac
23735 # Check whether right shifting a negative integer extends the sign bit
23736 # or fills with zeros (like the Cray J90, according to Tim Peters).
23737 { echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
23738 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6; }
23739 if test "${ac_cv_rshift_extends_sign+set}" = set; then
23740 echo $ECHO_N "(cached) $ECHO_C" >&6
23741 else
23743 if test "$cross_compiling" = yes; then
23744 ac_cv_rshift_extends_sign=yes
23745 else
23746 cat >conftest.$ac_ext <<_ACEOF
23747 /* confdefs.h. */
23748 _ACEOF
23749 cat confdefs.h >>conftest.$ac_ext
23750 cat >>conftest.$ac_ext <<_ACEOF
23751 /* end confdefs.h. */
23753 int main()
23755 exit(((-1)>>3 == -1) ? 0 : 1);
23758 _ACEOF
23759 rm -f conftest$ac_exeext
23760 if { (ac_try="$ac_link"
23761 case "(($ac_try" in
23762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23763 *) ac_try_echo=$ac_try;;
23764 esac
23765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23766 (eval "$ac_link") 2>&5
23767 ac_status=$?
23768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23769 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23770 { (case "(($ac_try" in
23771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23772 *) ac_try_echo=$ac_try;;
23773 esac
23774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23775 (eval "$ac_try") 2>&5
23776 ac_status=$?
23777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23778 (exit $ac_status); }; }; then
23779 ac_cv_rshift_extends_sign=yes
23780 else
23781 echo "$as_me: program exited with status $ac_status" >&5
23782 echo "$as_me: failed program was:" >&5
23783 sed 's/^/| /' conftest.$ac_ext >&5
23785 ( exit $ac_status )
23786 ac_cv_rshift_extends_sign=no
23788 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23794 { echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
23795 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6; }
23796 if test "$ac_cv_rshift_extends_sign" = no
23797 then
23799 cat >>confdefs.h <<\_ACEOF
23800 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
23801 _ACEOF
23805 # check for getc_unlocked and related locking functions
23806 { echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
23807 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6; }
23808 if test "${ac_cv_have_getc_unlocked+set}" = set; then
23809 echo $ECHO_N "(cached) $ECHO_C" >&6
23810 else
23812 cat >conftest.$ac_ext <<_ACEOF
23813 /* confdefs.h. */
23814 _ACEOF
23815 cat confdefs.h >>conftest.$ac_ext
23816 cat >>conftest.$ac_ext <<_ACEOF
23817 /* end confdefs.h. */
23818 #include <stdio.h>
23820 main ()
23823 FILE *f = fopen("/dev/null", "r");
23824 flockfile(f);
23825 getc_unlocked(f);
23826 funlockfile(f);
23829 return 0;
23831 _ACEOF
23832 rm -f conftest.$ac_objext conftest$ac_exeext
23833 if { (ac_try="$ac_link"
23834 case "(($ac_try" in
23835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23836 *) ac_try_echo=$ac_try;;
23837 esac
23838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23839 (eval "$ac_link") 2>conftest.er1
23840 ac_status=$?
23841 grep -v '^ *+' conftest.er1 >conftest.err
23842 rm -f conftest.er1
23843 cat conftest.err >&5
23844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23845 (exit $ac_status); } && {
23846 test -z "$ac_c_werror_flag" ||
23847 test ! -s conftest.err
23848 } && test -s conftest$ac_exeext &&
23849 $as_test_x conftest$ac_exeext; then
23850 ac_cv_have_getc_unlocked=yes
23851 else
23852 echo "$as_me: failed program was:" >&5
23853 sed 's/^/| /' conftest.$ac_ext >&5
23855 ac_cv_have_getc_unlocked=no
23858 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23859 conftest$ac_exeext conftest.$ac_ext
23862 { echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
23863 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6; }
23864 if test "$ac_cv_have_getc_unlocked" = yes
23865 then
23867 cat >>confdefs.h <<\_ACEOF
23868 #define HAVE_GETC_UNLOCKED 1
23869 _ACEOF
23873 # check where readline lives
23874 # save the value of LIBS so we don't actually link Python with readline
23875 LIBS_no_readline=$LIBS
23877 # On some systems we need to link readline to a termcap compatible
23878 # library. NOTE: Keep the precedence of listed libraries synchronised
23879 # with setup.py.
23880 py_cv_lib_readline=no
23881 { echo "$as_me:$LINENO: checking how to link readline libs" >&5
23882 echo $ECHO_N "checking how to link readline libs... $ECHO_C" >&6; }
23883 for py_libtermcap in "" ncursesw ncurses curses termcap; do
23884 if test -z "$py_libtermcap"; then
23885 READLINE_LIBS="-lreadline"
23886 else
23887 READLINE_LIBS="-lreadline -l$py_libtermcap"
23889 LIBS="$READLINE_LIBS $LIBS_no_readline"
23890 cat >conftest.$ac_ext <<_ACEOF
23891 /* confdefs.h. */
23892 _ACEOF
23893 cat confdefs.h >>conftest.$ac_ext
23894 cat >>conftest.$ac_ext <<_ACEOF
23895 /* end confdefs.h. */
23897 /* Override any GCC internal prototype to avoid an error.
23898 Use char because int might match the return type of a GCC
23899 builtin and then its argument prototype would still apply. */
23900 #ifdef __cplusplus
23901 extern "C"
23902 #endif
23903 char readline ();
23905 main ()
23907 return readline ();
23909 return 0;
23911 _ACEOF
23912 rm -f conftest.$ac_objext conftest$ac_exeext
23913 if { (ac_try="$ac_link"
23914 case "(($ac_try" in
23915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23916 *) ac_try_echo=$ac_try;;
23917 esac
23918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23919 (eval "$ac_link") 2>conftest.er1
23920 ac_status=$?
23921 grep -v '^ *+' conftest.er1 >conftest.err
23922 rm -f conftest.er1
23923 cat conftest.err >&5
23924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23925 (exit $ac_status); } && {
23926 test -z "$ac_c_werror_flag" ||
23927 test ! -s conftest.err
23928 } && test -s conftest$ac_exeext &&
23929 $as_test_x conftest$ac_exeext; then
23930 py_cv_lib_readline=yes
23931 else
23932 echo "$as_me: failed program was:" >&5
23933 sed 's/^/| /' conftest.$ac_ext >&5
23938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23939 conftest$ac_exeext conftest.$ac_ext
23940 if test $py_cv_lib_readline = yes; then
23941 break
23943 done
23944 # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts
23945 #AC_SUBST([READLINE_LIBS])
23946 if test $py_cv_lib_readline = no; then
23947 { echo "$as_me:$LINENO: result: none" >&5
23948 echo "${ECHO_T}none" >&6; }
23949 else
23950 { echo "$as_me:$LINENO: result: $READLINE_LIBS" >&5
23951 echo "${ECHO_T}$READLINE_LIBS" >&6; }
23953 cat >>confdefs.h <<\_ACEOF
23954 #define HAVE_LIBREADLINE 1
23955 _ACEOF
23959 # check for readline 2.1
23960 { echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
23961 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6; }
23962 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
23963 echo $ECHO_N "(cached) $ECHO_C" >&6
23964 else
23965 ac_check_lib_save_LIBS=$LIBS
23966 LIBS="-lreadline $READLINE_LIBS $LIBS"
23967 cat >conftest.$ac_ext <<_ACEOF
23968 /* confdefs.h. */
23969 _ACEOF
23970 cat confdefs.h >>conftest.$ac_ext
23971 cat >>conftest.$ac_ext <<_ACEOF
23972 /* end confdefs.h. */
23974 /* Override any GCC internal prototype to avoid an error.
23975 Use char because int might match the return type of a GCC
23976 builtin and then its argument prototype would still apply. */
23977 #ifdef __cplusplus
23978 extern "C"
23979 #endif
23980 char rl_callback_handler_install ();
23982 main ()
23984 return rl_callback_handler_install ();
23986 return 0;
23988 _ACEOF
23989 rm -f conftest.$ac_objext conftest$ac_exeext
23990 if { (ac_try="$ac_link"
23991 case "(($ac_try" in
23992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23993 *) ac_try_echo=$ac_try;;
23994 esac
23995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23996 (eval "$ac_link") 2>conftest.er1
23997 ac_status=$?
23998 grep -v '^ *+' conftest.er1 >conftest.err
23999 rm -f conftest.er1
24000 cat conftest.err >&5
24001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24002 (exit $ac_status); } && {
24003 test -z "$ac_c_werror_flag" ||
24004 test ! -s conftest.err
24005 } && test -s conftest$ac_exeext &&
24006 $as_test_x conftest$ac_exeext; then
24007 ac_cv_lib_readline_rl_callback_handler_install=yes
24008 else
24009 echo "$as_me: failed program was:" >&5
24010 sed 's/^/| /' conftest.$ac_ext >&5
24012 ac_cv_lib_readline_rl_callback_handler_install=no
24015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24016 conftest$ac_exeext conftest.$ac_ext
24017 LIBS=$ac_check_lib_save_LIBS
24019 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
24020 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
24021 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
24023 cat >>confdefs.h <<\_ACEOF
24024 #define HAVE_RL_CALLBACK 1
24025 _ACEOF
24030 # check for readline 2.2
24031 cat >conftest.$ac_ext <<_ACEOF
24032 /* confdefs.h. */
24033 _ACEOF
24034 cat confdefs.h >>conftest.$ac_ext
24035 cat >>conftest.$ac_ext <<_ACEOF
24036 /* end confdefs.h. */
24037 #include <readline/readline.h>
24038 _ACEOF
24039 if { (ac_try="$ac_cpp conftest.$ac_ext"
24040 case "(($ac_try" in
24041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24042 *) ac_try_echo=$ac_try;;
24043 esac
24044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24045 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24046 ac_status=$?
24047 grep -v '^ *+' conftest.er1 >conftest.err
24048 rm -f conftest.er1
24049 cat conftest.err >&5
24050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24051 (exit $ac_status); } >/dev/null && {
24052 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24053 test ! -s conftest.err
24054 }; then
24055 have_readline=yes
24056 else
24057 echo "$as_me: failed program was:" >&5
24058 sed 's/^/| /' conftest.$ac_ext >&5
24060 have_readline=no
24063 rm -f conftest.err conftest.$ac_ext
24064 if test $have_readline = yes
24065 then
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 #include <readline/readline.h>
24074 _ACEOF
24075 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24076 $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then
24078 cat >>confdefs.h <<\_ACEOF
24079 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
24080 _ACEOF
24083 rm -f conftest*
24085 cat >conftest.$ac_ext <<_ACEOF
24086 /* confdefs.h. */
24087 _ACEOF
24088 cat confdefs.h >>conftest.$ac_ext
24089 cat >>conftest.$ac_ext <<_ACEOF
24090 /* end confdefs.h. */
24091 #include <readline/readline.h>
24093 _ACEOF
24094 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24095 $EGREP "extern int rl_completion_suppress_append;" >/dev/null 2>&1; then
24097 cat >>confdefs.h <<\_ACEOF
24098 #define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1
24099 _ACEOF
24102 rm -f conftest*
24106 # check for readline 4.0
24107 { echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
24108 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6; }
24109 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
24110 echo $ECHO_N "(cached) $ECHO_C" >&6
24111 else
24112 ac_check_lib_save_LIBS=$LIBS
24113 LIBS="-lreadline $READLINE_LIBS $LIBS"
24114 cat >conftest.$ac_ext <<_ACEOF
24115 /* confdefs.h. */
24116 _ACEOF
24117 cat confdefs.h >>conftest.$ac_ext
24118 cat >>conftest.$ac_ext <<_ACEOF
24119 /* end confdefs.h. */
24121 /* Override any GCC internal prototype to avoid an error.
24122 Use char because int might match the return type of a GCC
24123 builtin and then its argument prototype would still apply. */
24124 #ifdef __cplusplus
24125 extern "C"
24126 #endif
24127 char rl_pre_input_hook ();
24129 main ()
24131 return rl_pre_input_hook ();
24133 return 0;
24135 _ACEOF
24136 rm -f conftest.$ac_objext conftest$ac_exeext
24137 if { (ac_try="$ac_link"
24138 case "(($ac_try" in
24139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24140 *) ac_try_echo=$ac_try;;
24141 esac
24142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24143 (eval "$ac_link") 2>conftest.er1
24144 ac_status=$?
24145 grep -v '^ *+' conftest.er1 >conftest.err
24146 rm -f conftest.er1
24147 cat conftest.err >&5
24148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24149 (exit $ac_status); } && {
24150 test -z "$ac_c_werror_flag" ||
24151 test ! -s conftest.err
24152 } && test -s conftest$ac_exeext &&
24153 $as_test_x conftest$ac_exeext; then
24154 ac_cv_lib_readline_rl_pre_input_hook=yes
24155 else
24156 echo "$as_me: failed program was:" >&5
24157 sed 's/^/| /' conftest.$ac_ext >&5
24159 ac_cv_lib_readline_rl_pre_input_hook=no
24162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24163 conftest$ac_exeext conftest.$ac_ext
24164 LIBS=$ac_check_lib_save_LIBS
24166 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
24167 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6; }
24168 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
24170 cat >>confdefs.h <<\_ACEOF
24171 #define HAVE_RL_PRE_INPUT_HOOK 1
24172 _ACEOF
24177 # also in 4.0
24178 { echo "$as_me:$LINENO: checking for rl_completion_display_matches_hook in -lreadline" >&5
24179 echo $ECHO_N "checking for rl_completion_display_matches_hook in -lreadline... $ECHO_C" >&6; }
24180 if test "${ac_cv_lib_readline_rl_completion_display_matches_hook+set}" = set; then
24181 echo $ECHO_N "(cached) $ECHO_C" >&6
24182 else
24183 ac_check_lib_save_LIBS=$LIBS
24184 LIBS="-lreadline $READLINE_LIBS $LIBS"
24185 cat >conftest.$ac_ext <<_ACEOF
24186 /* confdefs.h. */
24187 _ACEOF
24188 cat confdefs.h >>conftest.$ac_ext
24189 cat >>conftest.$ac_ext <<_ACEOF
24190 /* end confdefs.h. */
24192 /* Override any GCC internal prototype to avoid an error.
24193 Use char because int might match the return type of a GCC
24194 builtin and then its argument prototype would still apply. */
24195 #ifdef __cplusplus
24196 extern "C"
24197 #endif
24198 char rl_completion_display_matches_hook ();
24200 main ()
24202 return rl_completion_display_matches_hook ();
24204 return 0;
24206 _ACEOF
24207 rm -f conftest.$ac_objext conftest$ac_exeext
24208 if { (ac_try="$ac_link"
24209 case "(($ac_try" in
24210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24211 *) ac_try_echo=$ac_try;;
24212 esac
24213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24214 (eval "$ac_link") 2>conftest.er1
24215 ac_status=$?
24216 grep -v '^ *+' conftest.er1 >conftest.err
24217 rm -f conftest.er1
24218 cat conftest.err >&5
24219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24220 (exit $ac_status); } && {
24221 test -z "$ac_c_werror_flag" ||
24222 test ! -s conftest.err
24223 } && test -s conftest$ac_exeext &&
24224 $as_test_x conftest$ac_exeext; then
24225 ac_cv_lib_readline_rl_completion_display_matches_hook=yes
24226 else
24227 echo "$as_me: failed program was:" >&5
24228 sed 's/^/| /' conftest.$ac_ext >&5
24230 ac_cv_lib_readline_rl_completion_display_matches_hook=no
24233 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24234 conftest$ac_exeext conftest.$ac_ext
24235 LIBS=$ac_check_lib_save_LIBS
24237 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5
24238 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; }
24239 if test $ac_cv_lib_readline_rl_completion_display_matches_hook = yes; then
24241 cat >>confdefs.h <<\_ACEOF
24242 #define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1
24243 _ACEOF
24248 # check for readline 4.2
24249 { echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
24250 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6; }
24251 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
24252 echo $ECHO_N "(cached) $ECHO_C" >&6
24253 else
24254 ac_check_lib_save_LIBS=$LIBS
24255 LIBS="-lreadline $READLINE_LIBS $LIBS"
24256 cat >conftest.$ac_ext <<_ACEOF
24257 /* confdefs.h. */
24258 _ACEOF
24259 cat confdefs.h >>conftest.$ac_ext
24260 cat >>conftest.$ac_ext <<_ACEOF
24261 /* end confdefs.h. */
24263 /* Override any GCC internal prototype to avoid an error.
24264 Use char because int might match the return type of a GCC
24265 builtin and then its argument prototype would still apply. */
24266 #ifdef __cplusplus
24267 extern "C"
24268 #endif
24269 char rl_completion_matches ();
24271 main ()
24273 return rl_completion_matches ();
24275 return 0;
24277 _ACEOF
24278 rm -f conftest.$ac_objext conftest$ac_exeext
24279 if { (ac_try="$ac_link"
24280 case "(($ac_try" in
24281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24282 *) ac_try_echo=$ac_try;;
24283 esac
24284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24285 (eval "$ac_link") 2>conftest.er1
24286 ac_status=$?
24287 grep -v '^ *+' conftest.er1 >conftest.err
24288 rm -f conftest.er1
24289 cat conftest.err >&5
24290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24291 (exit $ac_status); } && {
24292 test -z "$ac_c_werror_flag" ||
24293 test ! -s conftest.err
24294 } && test -s conftest$ac_exeext &&
24295 $as_test_x conftest$ac_exeext; then
24296 ac_cv_lib_readline_rl_completion_matches=yes
24297 else
24298 echo "$as_me: failed program was:" >&5
24299 sed 's/^/| /' conftest.$ac_ext >&5
24301 ac_cv_lib_readline_rl_completion_matches=no
24304 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24305 conftest$ac_exeext conftest.$ac_ext
24306 LIBS=$ac_check_lib_save_LIBS
24308 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
24309 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6; }
24310 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
24312 cat >>confdefs.h <<\_ACEOF
24313 #define HAVE_RL_COMPLETION_MATCHES 1
24314 _ACEOF
24319 # also in readline 4.2
24320 cat >conftest.$ac_ext <<_ACEOF
24321 /* confdefs.h. */
24322 _ACEOF
24323 cat confdefs.h >>conftest.$ac_ext
24324 cat >>conftest.$ac_ext <<_ACEOF
24325 /* end confdefs.h. */
24326 #include <readline/readline.h>
24327 _ACEOF
24328 if { (ac_try="$ac_cpp conftest.$ac_ext"
24329 case "(($ac_try" in
24330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24331 *) ac_try_echo=$ac_try;;
24332 esac
24333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24334 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24335 ac_status=$?
24336 grep -v '^ *+' conftest.er1 >conftest.err
24337 rm -f conftest.er1
24338 cat conftest.err >&5
24339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24340 (exit $ac_status); } >/dev/null && {
24341 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24342 test ! -s conftest.err
24343 }; then
24344 have_readline=yes
24345 else
24346 echo "$as_me: failed program was:" >&5
24347 sed 's/^/| /' conftest.$ac_ext >&5
24349 have_readline=no
24352 rm -f conftest.err conftest.$ac_ext
24353 if test $have_readline = yes
24354 then
24355 cat >conftest.$ac_ext <<_ACEOF
24356 /* confdefs.h. */
24357 _ACEOF
24358 cat confdefs.h >>conftest.$ac_ext
24359 cat >>conftest.$ac_ext <<_ACEOF
24360 /* end confdefs.h. */
24361 #include <readline/readline.h>
24363 _ACEOF
24364 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24365 $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then
24367 cat >>confdefs.h <<\_ACEOF
24368 #define HAVE_RL_CATCH_SIGNAL 1
24369 _ACEOF
24372 rm -f conftest*
24376 # End of readline checks: restore LIBS
24377 LIBS=$LIBS_no_readline
24379 { echo "$as_me:$LINENO: checking for broken nice()" >&5
24380 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6; }
24381 if test "${ac_cv_broken_nice+set}" = set; then
24382 echo $ECHO_N "(cached) $ECHO_C" >&6
24383 else
24385 if test "$cross_compiling" = yes; then
24386 ac_cv_broken_nice=no
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. */
24395 int main()
24397 int val1 = nice(1);
24398 if (val1 != -1 && val1 == nice(2))
24399 exit(0);
24400 exit(1);
24403 _ACEOF
24404 rm -f conftest$ac_exeext
24405 if { (ac_try="$ac_link"
24406 case "(($ac_try" in
24407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24408 *) ac_try_echo=$ac_try;;
24409 esac
24410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24411 (eval "$ac_link") 2>&5
24412 ac_status=$?
24413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24414 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24415 { (case "(($ac_try" in
24416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24417 *) ac_try_echo=$ac_try;;
24418 esac
24419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24420 (eval "$ac_try") 2>&5
24421 ac_status=$?
24422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24423 (exit $ac_status); }; }; then
24424 ac_cv_broken_nice=yes
24425 else
24426 echo "$as_me: program exited with status $ac_status" >&5
24427 echo "$as_me: failed program was:" >&5
24428 sed 's/^/| /' conftest.$ac_ext >&5
24430 ( exit $ac_status )
24431 ac_cv_broken_nice=no
24433 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24439 { echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
24440 echo "${ECHO_T}$ac_cv_broken_nice" >&6; }
24441 if test "$ac_cv_broken_nice" = yes
24442 then
24444 cat >>confdefs.h <<\_ACEOF
24445 #define HAVE_BROKEN_NICE 1
24446 _ACEOF
24450 { echo "$as_me:$LINENO: checking for broken poll()" >&5
24451 echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6; }
24452 if test "$cross_compiling" = yes; then
24453 ac_cv_broken_poll=no
24454 else
24455 cat >conftest.$ac_ext <<_ACEOF
24456 /* confdefs.h. */
24457 _ACEOF
24458 cat confdefs.h >>conftest.$ac_ext
24459 cat >>conftest.$ac_ext <<_ACEOF
24460 /* end confdefs.h. */
24462 #include <poll.h>
24464 int main (void)
24466 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
24468 close (42);
24470 int poll_test = poll (&poll_struct, 1, 0);
24472 if (poll_test < 0)
24474 exit(0);
24476 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
24478 exit(0);
24480 else
24482 exit(1);
24486 _ACEOF
24487 rm -f conftest$ac_exeext
24488 if { (ac_try="$ac_link"
24489 case "(($ac_try" in
24490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24491 *) ac_try_echo=$ac_try;;
24492 esac
24493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24494 (eval "$ac_link") 2>&5
24495 ac_status=$?
24496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24497 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24498 { (case "(($ac_try" in
24499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24500 *) ac_try_echo=$ac_try;;
24501 esac
24502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24503 (eval "$ac_try") 2>&5
24504 ac_status=$?
24505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24506 (exit $ac_status); }; }; then
24507 ac_cv_broken_poll=yes
24508 else
24509 echo "$as_me: program exited with status $ac_status" >&5
24510 echo "$as_me: failed program was:" >&5
24511 sed 's/^/| /' conftest.$ac_ext >&5
24513 ( exit $ac_status )
24514 ac_cv_broken_poll=no
24516 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24520 { echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
24521 echo "${ECHO_T}$ac_cv_broken_poll" >&6; }
24522 if test "$ac_cv_broken_poll" = yes
24523 then
24525 cat >>confdefs.h <<\_ACEOF
24526 #define HAVE_BROKEN_POLL 1
24527 _ACEOF
24531 # Before we can test tzset, we need to check if struct tm has a tm_zone
24532 # (which is not required by ISO C or UNIX spec) and/or if we support
24533 # tzname[]
24534 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
24535 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
24536 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
24537 echo $ECHO_N "(cached) $ECHO_C" >&6
24538 else
24539 cat >conftest.$ac_ext <<_ACEOF
24540 /* confdefs.h. */
24541 _ACEOF
24542 cat confdefs.h >>conftest.$ac_ext
24543 cat >>conftest.$ac_ext <<_ACEOF
24544 /* end confdefs.h. */
24545 #include <sys/types.h>
24546 #include <$ac_cv_struct_tm>
24550 main ()
24552 static struct tm ac_aggr;
24553 if (ac_aggr.tm_zone)
24554 return 0;
24556 return 0;
24558 _ACEOF
24559 rm -f conftest.$ac_objext
24560 if { (ac_try="$ac_compile"
24561 case "(($ac_try" in
24562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24563 *) ac_try_echo=$ac_try;;
24564 esac
24565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24566 (eval "$ac_compile") 2>conftest.er1
24567 ac_status=$?
24568 grep -v '^ *+' conftest.er1 >conftest.err
24569 rm -f conftest.er1
24570 cat conftest.err >&5
24571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24572 (exit $ac_status); } && {
24573 test -z "$ac_c_werror_flag" ||
24574 test ! -s conftest.err
24575 } && test -s conftest.$ac_objext; then
24576 ac_cv_member_struct_tm_tm_zone=yes
24577 else
24578 echo "$as_me: failed program was:" >&5
24579 sed 's/^/| /' conftest.$ac_ext >&5
24581 cat >conftest.$ac_ext <<_ACEOF
24582 /* confdefs.h. */
24583 _ACEOF
24584 cat confdefs.h >>conftest.$ac_ext
24585 cat >>conftest.$ac_ext <<_ACEOF
24586 /* end confdefs.h. */
24587 #include <sys/types.h>
24588 #include <$ac_cv_struct_tm>
24592 main ()
24594 static struct tm ac_aggr;
24595 if (sizeof ac_aggr.tm_zone)
24596 return 0;
24598 return 0;
24600 _ACEOF
24601 rm -f conftest.$ac_objext
24602 if { (ac_try="$ac_compile"
24603 case "(($ac_try" in
24604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24605 *) ac_try_echo=$ac_try;;
24606 esac
24607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24608 (eval "$ac_compile") 2>conftest.er1
24609 ac_status=$?
24610 grep -v '^ *+' conftest.er1 >conftest.err
24611 rm -f conftest.er1
24612 cat conftest.err >&5
24613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24614 (exit $ac_status); } && {
24615 test -z "$ac_c_werror_flag" ||
24616 test ! -s conftest.err
24617 } && test -s conftest.$ac_objext; then
24618 ac_cv_member_struct_tm_tm_zone=yes
24619 else
24620 echo "$as_me: failed program was:" >&5
24621 sed 's/^/| /' conftest.$ac_ext >&5
24623 ac_cv_member_struct_tm_tm_zone=no
24626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24631 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
24632 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
24633 if test $ac_cv_member_struct_tm_tm_zone = yes; then
24635 cat >>confdefs.h <<_ACEOF
24636 #define HAVE_STRUCT_TM_TM_ZONE 1
24637 _ACEOF
24642 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
24644 cat >>confdefs.h <<\_ACEOF
24645 #define HAVE_TM_ZONE 1
24646 _ACEOF
24648 else
24649 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
24650 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
24651 if test "${ac_cv_have_decl_tzname+set}" = set; then
24652 echo $ECHO_N "(cached) $ECHO_C" >&6
24653 else
24654 cat >conftest.$ac_ext <<_ACEOF
24655 /* confdefs.h. */
24656 _ACEOF
24657 cat confdefs.h >>conftest.$ac_ext
24658 cat >>conftest.$ac_ext <<_ACEOF
24659 /* end confdefs.h. */
24660 #include <time.h>
24663 main ()
24665 #ifndef tzname
24666 (void) tzname;
24667 #endif
24670 return 0;
24672 _ACEOF
24673 rm -f conftest.$ac_objext
24674 if { (ac_try="$ac_compile"
24675 case "(($ac_try" in
24676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24677 *) ac_try_echo=$ac_try;;
24678 esac
24679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24680 (eval "$ac_compile") 2>conftest.er1
24681 ac_status=$?
24682 grep -v '^ *+' conftest.er1 >conftest.err
24683 rm -f conftest.er1
24684 cat conftest.err >&5
24685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24686 (exit $ac_status); } && {
24687 test -z "$ac_c_werror_flag" ||
24688 test ! -s conftest.err
24689 } && test -s conftest.$ac_objext; then
24690 ac_cv_have_decl_tzname=yes
24691 else
24692 echo "$as_me: failed program was:" >&5
24693 sed 's/^/| /' conftest.$ac_ext >&5
24695 ac_cv_have_decl_tzname=no
24698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24700 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
24701 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
24702 if test $ac_cv_have_decl_tzname = yes; then
24704 cat >>confdefs.h <<_ACEOF
24705 #define HAVE_DECL_TZNAME 1
24706 _ACEOF
24709 else
24710 cat >>confdefs.h <<_ACEOF
24711 #define HAVE_DECL_TZNAME 0
24712 _ACEOF
24718 { echo "$as_me:$LINENO: checking for tzname" >&5
24719 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
24720 if test "${ac_cv_var_tzname+set}" = set; then
24721 echo $ECHO_N "(cached) $ECHO_C" >&6
24722 else
24723 cat >conftest.$ac_ext <<_ACEOF
24724 /* confdefs.h. */
24725 _ACEOF
24726 cat confdefs.h >>conftest.$ac_ext
24727 cat >>conftest.$ac_ext <<_ACEOF
24728 /* end confdefs.h. */
24729 #include <time.h>
24730 #if !HAVE_DECL_TZNAME
24731 extern char *tzname[];
24732 #endif
24735 main ()
24737 return tzname[0][0];
24739 return 0;
24741 _ACEOF
24742 rm -f conftest.$ac_objext conftest$ac_exeext
24743 if { (ac_try="$ac_link"
24744 case "(($ac_try" in
24745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24746 *) ac_try_echo=$ac_try;;
24747 esac
24748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24749 (eval "$ac_link") 2>conftest.er1
24750 ac_status=$?
24751 grep -v '^ *+' conftest.er1 >conftest.err
24752 rm -f conftest.er1
24753 cat conftest.err >&5
24754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24755 (exit $ac_status); } && {
24756 test -z "$ac_c_werror_flag" ||
24757 test ! -s conftest.err
24758 } && test -s conftest$ac_exeext &&
24759 $as_test_x conftest$ac_exeext; then
24760 ac_cv_var_tzname=yes
24761 else
24762 echo "$as_me: failed program was:" >&5
24763 sed 's/^/| /' conftest.$ac_ext >&5
24765 ac_cv_var_tzname=no
24768 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24769 conftest$ac_exeext conftest.$ac_ext
24771 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
24772 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
24773 if test $ac_cv_var_tzname = yes; then
24775 cat >>confdefs.h <<\_ACEOF
24776 #define HAVE_TZNAME 1
24777 _ACEOF
24783 # check tzset(3) exists and works like we expect it to
24784 { echo "$as_me:$LINENO: checking for working tzset()" >&5
24785 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6; }
24786 if test "${ac_cv_working_tzset+set}" = set; then
24787 echo $ECHO_N "(cached) $ECHO_C" >&6
24788 else
24790 if test "$cross_compiling" = yes; then
24791 ac_cv_working_tzset=no
24792 else
24793 cat >conftest.$ac_ext <<_ACEOF
24794 /* confdefs.h. */
24795 _ACEOF
24796 cat confdefs.h >>conftest.$ac_ext
24797 cat >>conftest.$ac_ext <<_ACEOF
24798 /* end confdefs.h. */
24800 #include <stdlib.h>
24801 #include <time.h>
24802 #include <string.h>
24804 #if HAVE_TZNAME
24805 extern char *tzname[];
24806 #endif
24808 int main()
24810 /* Note that we need to ensure that not only does tzset(3)
24811 do 'something' with localtime, but it works as documented
24812 in the library reference and as expected by the test suite.
24813 This includes making sure that tzname is set properly if
24814 tm->tm_zone does not exist since it is the alternative way
24815 of getting timezone info.
24817 Red Hat 6.2 doesn't understand the southern hemisphere
24818 after New Year's Day.
24821 time_t groundhogday = 1044144000; /* GMT-based */
24822 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
24824 putenv("TZ=UTC+0");
24825 tzset();
24826 if (localtime(&groundhogday)->tm_hour != 0)
24827 exit(1);
24828 #if HAVE_TZNAME
24829 /* For UTC, tzname[1] is sometimes "", sometimes " " */
24830 if (strcmp(tzname[0], "UTC") ||
24831 (tzname[1][0] != 0 && tzname[1][0] != ' '))
24832 exit(1);
24833 #endif
24835 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
24836 tzset();
24837 if (localtime(&groundhogday)->tm_hour != 19)
24838 exit(1);
24839 #if HAVE_TZNAME
24840 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
24841 exit(1);
24842 #endif
24844 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
24845 tzset();
24846 if (localtime(&groundhogday)->tm_hour != 11)
24847 exit(1);
24848 #if HAVE_TZNAME
24849 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
24850 exit(1);
24851 #endif
24853 #if HAVE_STRUCT_TM_TM_ZONE
24854 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
24855 exit(1);
24856 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
24857 exit(1);
24858 #endif
24860 exit(0);
24863 _ACEOF
24864 rm -f conftest$ac_exeext
24865 if { (ac_try="$ac_link"
24866 case "(($ac_try" in
24867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24868 *) ac_try_echo=$ac_try;;
24869 esac
24870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24871 (eval "$ac_link") 2>&5
24872 ac_status=$?
24873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24874 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24875 { (case "(($ac_try" in
24876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24877 *) ac_try_echo=$ac_try;;
24878 esac
24879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24880 (eval "$ac_try") 2>&5
24881 ac_status=$?
24882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24883 (exit $ac_status); }; }; then
24884 ac_cv_working_tzset=yes
24885 else
24886 echo "$as_me: program exited with status $ac_status" >&5
24887 echo "$as_me: failed program was:" >&5
24888 sed 's/^/| /' conftest.$ac_ext >&5
24890 ( exit $ac_status )
24891 ac_cv_working_tzset=no
24893 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24899 { echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
24900 echo "${ECHO_T}$ac_cv_working_tzset" >&6; }
24901 if test "$ac_cv_working_tzset" = yes
24902 then
24904 cat >>confdefs.h <<\_ACEOF
24905 #define HAVE_WORKING_TZSET 1
24906 _ACEOF
24910 # Look for subsecond timestamps in struct stat
24911 { echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
24912 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6; }
24913 if test "${ac_cv_stat_tv_nsec+set}" = set; then
24914 echo $ECHO_N "(cached) $ECHO_C" >&6
24915 else
24916 cat >conftest.$ac_ext <<_ACEOF
24917 /* confdefs.h. */
24918 _ACEOF
24919 cat confdefs.h >>conftest.$ac_ext
24920 cat >>conftest.$ac_ext <<_ACEOF
24921 /* end confdefs.h. */
24922 #include <sys/stat.h>
24924 main ()
24927 struct stat st;
24928 st.st_mtim.tv_nsec = 1;
24931 return 0;
24933 _ACEOF
24934 rm -f conftest.$ac_objext
24935 if { (ac_try="$ac_compile"
24936 case "(($ac_try" in
24937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24938 *) ac_try_echo=$ac_try;;
24939 esac
24940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24941 (eval "$ac_compile") 2>conftest.er1
24942 ac_status=$?
24943 grep -v '^ *+' conftest.er1 >conftest.err
24944 rm -f conftest.er1
24945 cat conftest.err >&5
24946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24947 (exit $ac_status); } && {
24948 test -z "$ac_c_werror_flag" ||
24949 test ! -s conftest.err
24950 } && test -s conftest.$ac_objext; then
24951 ac_cv_stat_tv_nsec=yes
24952 else
24953 echo "$as_me: failed program was:" >&5
24954 sed 's/^/| /' conftest.$ac_ext >&5
24956 ac_cv_stat_tv_nsec=no
24959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24962 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
24963 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6; }
24964 if test "$ac_cv_stat_tv_nsec" = yes
24965 then
24967 cat >>confdefs.h <<\_ACEOF
24968 #define HAVE_STAT_TV_NSEC 1
24969 _ACEOF
24973 # Look for BSD style subsecond timestamps in struct stat
24974 { echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
24975 echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6; }
24976 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
24977 echo $ECHO_N "(cached) $ECHO_C" >&6
24978 else
24979 cat >conftest.$ac_ext <<_ACEOF
24980 /* confdefs.h. */
24981 _ACEOF
24982 cat confdefs.h >>conftest.$ac_ext
24983 cat >>conftest.$ac_ext <<_ACEOF
24984 /* end confdefs.h. */
24985 #include <sys/stat.h>
24987 main ()
24990 struct stat st;
24991 st.st_mtimespec.tv_nsec = 1;
24994 return 0;
24996 _ACEOF
24997 rm -f conftest.$ac_objext
24998 if { (ac_try="$ac_compile"
24999 case "(($ac_try" in
25000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25001 *) ac_try_echo=$ac_try;;
25002 esac
25003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25004 (eval "$ac_compile") 2>conftest.er1
25005 ac_status=$?
25006 grep -v '^ *+' conftest.er1 >conftest.err
25007 rm -f conftest.er1
25008 cat conftest.err >&5
25009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25010 (exit $ac_status); } && {
25011 test -z "$ac_c_werror_flag" ||
25012 test ! -s conftest.err
25013 } && test -s conftest.$ac_objext; then
25014 ac_cv_stat_tv_nsec2=yes
25015 else
25016 echo "$as_me: failed program was:" >&5
25017 sed 's/^/| /' conftest.$ac_ext >&5
25019 ac_cv_stat_tv_nsec2=no
25022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25025 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
25026 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6; }
25027 if test "$ac_cv_stat_tv_nsec2" = yes
25028 then
25030 cat >>confdefs.h <<\_ACEOF
25031 #define HAVE_STAT_TV_NSEC2 1
25032 _ACEOF
25036 # On HP/UX 11.0, mvwdelch is a block with a return statement
25037 { echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
25038 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6; }
25039 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
25040 echo $ECHO_N "(cached) $ECHO_C" >&6
25041 else
25042 cat >conftest.$ac_ext <<_ACEOF
25043 /* confdefs.h. */
25044 _ACEOF
25045 cat confdefs.h >>conftest.$ac_ext
25046 cat >>conftest.$ac_ext <<_ACEOF
25047 /* end confdefs.h. */
25048 #include <curses.h>
25050 main ()
25053 int rtn;
25054 rtn = mvwdelch(0,0,0);
25057 return 0;
25059 _ACEOF
25060 rm -f conftest.$ac_objext
25061 if { (ac_try="$ac_compile"
25062 case "(($ac_try" in
25063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25064 *) ac_try_echo=$ac_try;;
25065 esac
25066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25067 (eval "$ac_compile") 2>conftest.er1
25068 ac_status=$?
25069 grep -v '^ *+' conftest.er1 >conftest.err
25070 rm -f conftest.er1
25071 cat conftest.err >&5
25072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25073 (exit $ac_status); } && {
25074 test -z "$ac_c_werror_flag" ||
25075 test ! -s conftest.err
25076 } && test -s conftest.$ac_objext; then
25077 ac_cv_mvwdelch_is_expression=yes
25078 else
25079 echo "$as_me: failed program was:" >&5
25080 sed 's/^/| /' conftest.$ac_ext >&5
25082 ac_cv_mvwdelch_is_expression=no
25085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25088 { echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
25089 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6; }
25091 if test "$ac_cv_mvwdelch_is_expression" = yes
25092 then
25094 cat >>confdefs.h <<\_ACEOF
25095 #define MVWDELCH_IS_EXPRESSION 1
25096 _ACEOF
25100 { echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
25101 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6; }
25102 if test "${ac_cv_window_has_flags+set}" = set; then
25103 echo $ECHO_N "(cached) $ECHO_C" >&6
25104 else
25105 cat >conftest.$ac_ext <<_ACEOF
25106 /* confdefs.h. */
25107 _ACEOF
25108 cat confdefs.h >>conftest.$ac_ext
25109 cat >>conftest.$ac_ext <<_ACEOF
25110 /* end confdefs.h. */
25111 #include <curses.h>
25113 main ()
25116 WINDOW *w;
25117 w->_flags = 0;
25120 return 0;
25122 _ACEOF
25123 rm -f conftest.$ac_objext
25124 if { (ac_try="$ac_compile"
25125 case "(($ac_try" in
25126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25127 *) ac_try_echo=$ac_try;;
25128 esac
25129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25130 (eval "$ac_compile") 2>conftest.er1
25131 ac_status=$?
25132 grep -v '^ *+' conftest.er1 >conftest.err
25133 rm -f conftest.er1
25134 cat conftest.err >&5
25135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25136 (exit $ac_status); } && {
25137 test -z "$ac_c_werror_flag" ||
25138 test ! -s conftest.err
25139 } && test -s conftest.$ac_objext; then
25140 ac_cv_window_has_flags=yes
25141 else
25142 echo "$as_me: failed program was:" >&5
25143 sed 's/^/| /' conftest.$ac_ext >&5
25145 ac_cv_window_has_flags=no
25148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25151 { echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
25152 echo "${ECHO_T}$ac_cv_window_has_flags" >&6; }
25155 if test "$ac_cv_window_has_flags" = yes
25156 then
25158 cat >>confdefs.h <<\_ACEOF
25159 #define WINDOW_HAS_FLAGS 1
25160 _ACEOF
25164 { echo "$as_me:$LINENO: checking for is_term_resized" >&5
25165 echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6; }
25166 cat >conftest.$ac_ext <<_ACEOF
25167 /* confdefs.h. */
25168 _ACEOF
25169 cat confdefs.h >>conftest.$ac_ext
25170 cat >>conftest.$ac_ext <<_ACEOF
25171 /* end confdefs.h. */
25172 #include <curses.h>
25174 main ()
25176 void *x=is_term_resized
25178 return 0;
25180 _ACEOF
25181 rm -f conftest.$ac_objext
25182 if { (ac_try="$ac_compile"
25183 case "(($ac_try" in
25184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25185 *) ac_try_echo=$ac_try;;
25186 esac
25187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25188 (eval "$ac_compile") 2>conftest.er1
25189 ac_status=$?
25190 grep -v '^ *+' conftest.er1 >conftest.err
25191 rm -f conftest.er1
25192 cat conftest.err >&5
25193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25194 (exit $ac_status); } && {
25195 test -z "$ac_c_werror_flag" ||
25196 test ! -s conftest.err
25197 } && test -s conftest.$ac_objext; then
25199 cat >>confdefs.h <<\_ACEOF
25200 #define HAVE_CURSES_IS_TERM_RESIZED 1
25201 _ACEOF
25203 { echo "$as_me:$LINENO: result: yes" >&5
25204 echo "${ECHO_T}yes" >&6; }
25205 else
25206 echo "$as_me: failed program was:" >&5
25207 sed 's/^/| /' conftest.$ac_ext >&5
25209 { echo "$as_me:$LINENO: result: no" >&5
25210 echo "${ECHO_T}no" >&6; }
25214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25216 { echo "$as_me:$LINENO: checking for resize_term" >&5
25217 echo $ECHO_N "checking for resize_term... $ECHO_C" >&6; }
25218 cat >conftest.$ac_ext <<_ACEOF
25219 /* confdefs.h. */
25220 _ACEOF
25221 cat confdefs.h >>conftest.$ac_ext
25222 cat >>conftest.$ac_ext <<_ACEOF
25223 /* end confdefs.h. */
25224 #include <curses.h>
25226 main ()
25228 void *x=resize_term
25230 return 0;
25232 _ACEOF
25233 rm -f conftest.$ac_objext
25234 if { (ac_try="$ac_compile"
25235 case "(($ac_try" in
25236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25237 *) ac_try_echo=$ac_try;;
25238 esac
25239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25240 (eval "$ac_compile") 2>conftest.er1
25241 ac_status=$?
25242 grep -v '^ *+' conftest.er1 >conftest.err
25243 rm -f conftest.er1
25244 cat conftest.err >&5
25245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25246 (exit $ac_status); } && {
25247 test -z "$ac_c_werror_flag" ||
25248 test ! -s conftest.err
25249 } && test -s conftest.$ac_objext; then
25251 cat >>confdefs.h <<\_ACEOF
25252 #define HAVE_CURSES_RESIZE_TERM 1
25253 _ACEOF
25255 { echo "$as_me:$LINENO: result: yes" >&5
25256 echo "${ECHO_T}yes" >&6; }
25257 else
25258 echo "$as_me: failed program was:" >&5
25259 sed 's/^/| /' conftest.$ac_ext >&5
25261 { echo "$as_me:$LINENO: result: no" >&5
25262 echo "${ECHO_T}no" >&6; }
25266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25268 { echo "$as_me:$LINENO: checking for resizeterm" >&5
25269 echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6; }
25270 cat >conftest.$ac_ext <<_ACEOF
25271 /* confdefs.h. */
25272 _ACEOF
25273 cat confdefs.h >>conftest.$ac_ext
25274 cat >>conftest.$ac_ext <<_ACEOF
25275 /* end confdefs.h. */
25276 #include <curses.h>
25278 main ()
25280 void *x=resizeterm
25282 return 0;
25284 _ACEOF
25285 rm -f conftest.$ac_objext
25286 if { (ac_try="$ac_compile"
25287 case "(($ac_try" in
25288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25289 *) ac_try_echo=$ac_try;;
25290 esac
25291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25292 (eval "$ac_compile") 2>conftest.er1
25293 ac_status=$?
25294 grep -v '^ *+' conftest.er1 >conftest.err
25295 rm -f conftest.er1
25296 cat conftest.err >&5
25297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25298 (exit $ac_status); } && {
25299 test -z "$ac_c_werror_flag" ||
25300 test ! -s conftest.err
25301 } && test -s conftest.$ac_objext; then
25303 cat >>confdefs.h <<\_ACEOF
25304 #define HAVE_CURSES_RESIZETERM 1
25305 _ACEOF
25307 { echo "$as_me:$LINENO: result: yes" >&5
25308 echo "${ECHO_T}yes" >&6; }
25309 else
25310 echo "$as_me: failed program was:" >&5
25311 sed 's/^/| /' conftest.$ac_ext >&5
25313 { echo "$as_me:$LINENO: result: no" >&5
25314 echo "${ECHO_T}no" >&6; }
25318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25320 { echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
25321 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6; }
25323 if test -r /dev/ptmx
25324 then
25325 { echo "$as_me:$LINENO: result: yes" >&5
25326 echo "${ECHO_T}yes" >&6; }
25328 cat >>confdefs.h <<\_ACEOF
25329 #define HAVE_DEV_PTMX 1
25330 _ACEOF
25332 else
25333 { echo "$as_me:$LINENO: result: no" >&5
25334 echo "${ECHO_T}no" >&6; }
25337 { echo "$as_me:$LINENO: checking for /dev/ptc" >&5
25338 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; }
25340 if test -r /dev/ptc
25341 then
25342 { echo "$as_me:$LINENO: result: yes" >&5
25343 echo "${ECHO_T}yes" >&6; }
25345 cat >>confdefs.h <<\_ACEOF
25346 #define HAVE_DEV_PTC 1
25347 _ACEOF
25349 else
25350 { echo "$as_me:$LINENO: result: no" >&5
25351 echo "${ECHO_T}no" >&6; }
25354 { echo "$as_me:$LINENO: checking for %zd printf() format support" >&5
25355 echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6; }
25356 if test "$cross_compiling" = yes; then
25357 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25358 See \`config.log' for more details." >&5
25359 echo "$as_me: error: cannot run test program while cross compiling
25360 See \`config.log' for more details." >&2;}
25361 { (exit 1); exit 1; }; }
25362 else
25363 cat >conftest.$ac_ext <<_ACEOF
25364 /* confdefs.h. */
25365 _ACEOF
25366 cat confdefs.h >>conftest.$ac_ext
25367 cat >>conftest.$ac_ext <<_ACEOF
25368 /* end confdefs.h. */
25369 #include <stdio.h>
25370 #include <stddef.h>
25371 #include <string.h>
25373 #ifdef HAVE_SYS_TYPES_H
25374 #include <sys/types.h>
25375 #endif
25377 #ifdef HAVE_SSIZE_T
25378 typedef ssize_t Py_ssize_t;
25379 #elif SIZEOF_VOID_P == SIZEOF_LONG
25380 typedef long Py_ssize_t;
25381 #else
25382 typedef int Py_ssize_t;
25383 #endif
25385 int main()
25387 char buffer[256];
25389 if(sprintf(buffer, "%zd", (size_t)123) < 0)
25390 return 1;
25392 if (strcmp(buffer, "123"))
25393 return 1;
25395 if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
25396 return 1;
25398 if (strcmp(buffer, "-123"))
25399 return 1;
25401 return 0;
25403 _ACEOF
25404 rm -f conftest$ac_exeext
25405 if { (ac_try="$ac_link"
25406 case "(($ac_try" in
25407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25408 *) ac_try_echo=$ac_try;;
25409 esac
25410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25411 (eval "$ac_link") 2>&5
25412 ac_status=$?
25413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25414 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25415 { (case "(($ac_try" in
25416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25417 *) ac_try_echo=$ac_try;;
25418 esac
25419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25420 (eval "$ac_try") 2>&5
25421 ac_status=$?
25422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25423 (exit $ac_status); }; }; then
25424 { echo "$as_me:$LINENO: result: yes" >&5
25425 echo "${ECHO_T}yes" >&6; }
25427 cat >>confdefs.h <<\_ACEOF
25428 #define PY_FORMAT_SIZE_T "z"
25429 _ACEOF
25431 else
25432 echo "$as_me: program exited with status $ac_status" >&5
25433 echo "$as_me: failed program was:" >&5
25434 sed 's/^/| /' conftest.$ac_ext >&5
25436 ( exit $ac_status )
25437 { echo "$as_me:$LINENO: result: no" >&5
25438 echo "${ECHO_T}no" >&6; }
25440 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25445 { echo "$as_me:$LINENO: checking for socklen_t" >&5
25446 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
25447 if test "${ac_cv_type_socklen_t+set}" = set; then
25448 echo $ECHO_N "(cached) $ECHO_C" >&6
25449 else
25450 cat >conftest.$ac_ext <<_ACEOF
25451 /* confdefs.h. */
25452 _ACEOF
25453 cat confdefs.h >>conftest.$ac_ext
25454 cat >>conftest.$ac_ext <<_ACEOF
25455 /* end confdefs.h. */
25457 #ifdef HAVE_SYS_TYPES_H
25458 #include <sys/types.h>
25459 #endif
25460 #ifdef HAVE_SYS_SOCKET_H
25461 #include <sys/socket.h>
25462 #endif
25465 typedef socklen_t ac__type_new_;
25467 main ()
25469 if ((ac__type_new_ *) 0)
25470 return 0;
25471 if (sizeof (ac__type_new_))
25472 return 0;
25474 return 0;
25476 _ACEOF
25477 rm -f conftest.$ac_objext
25478 if { (ac_try="$ac_compile"
25479 case "(($ac_try" in
25480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25481 *) ac_try_echo=$ac_try;;
25482 esac
25483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25484 (eval "$ac_compile") 2>conftest.er1
25485 ac_status=$?
25486 grep -v '^ *+' conftest.er1 >conftest.err
25487 rm -f conftest.er1
25488 cat conftest.err >&5
25489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25490 (exit $ac_status); } && {
25491 test -z "$ac_c_werror_flag" ||
25492 test ! -s conftest.err
25493 } && test -s conftest.$ac_objext; then
25494 ac_cv_type_socklen_t=yes
25495 else
25496 echo "$as_me: failed program was:" >&5
25497 sed 's/^/| /' conftest.$ac_ext >&5
25499 ac_cv_type_socklen_t=no
25502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25504 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
25505 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
25506 if test $ac_cv_type_socklen_t = yes; then
25508 else
25510 cat >>confdefs.h <<\_ACEOF
25511 #define socklen_t int
25512 _ACEOF
25517 { echo "$as_me:$LINENO: checking for broken mbstowcs" >&5
25518 echo $ECHO_N "checking for broken mbstowcs... $ECHO_C" >&6; }
25519 if test "$cross_compiling" = yes; then
25520 ac_cv_broken_mbstowcs=no
25521 else
25522 cat >conftest.$ac_ext <<_ACEOF
25523 /* confdefs.h. */
25524 _ACEOF
25525 cat confdefs.h >>conftest.$ac_ext
25526 cat >>conftest.$ac_ext <<_ACEOF
25527 /* end confdefs.h. */
25529 #include<stdlib.h>
25530 int main() {
25531 size_t len = -1;
25532 const char *str = "text";
25533 len = mbstowcs(NULL, str, 0);
25534 return (len != 4);
25537 _ACEOF
25538 rm -f conftest$ac_exeext
25539 if { (ac_try="$ac_link"
25540 case "(($ac_try" in
25541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25542 *) ac_try_echo=$ac_try;;
25543 esac
25544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25545 (eval "$ac_link") 2>&5
25546 ac_status=$?
25547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25548 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25549 { (case "(($ac_try" in
25550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25551 *) ac_try_echo=$ac_try;;
25552 esac
25553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25554 (eval "$ac_try") 2>&5
25555 ac_status=$?
25556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25557 (exit $ac_status); }; }; then
25558 ac_cv_broken_mbstowcs=no
25559 else
25560 echo "$as_me: program exited with status $ac_status" >&5
25561 echo "$as_me: failed program was:" >&5
25562 sed 's/^/| /' conftest.$ac_ext >&5
25564 ( exit $ac_status )
25565 ac_cv_broken_mbstowcs=yes
25567 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25571 { echo "$as_me:$LINENO: result: $ac_cv_broken_mbstowcs" >&5
25572 echo "${ECHO_T}$ac_cv_broken_mbstowcs" >&6; }
25573 if test "$ac_cv_broken_mbstowcs" = yes
25574 then
25576 cat >>confdefs.h <<\_ACEOF
25577 #define HAVE_BROKEN_MBSTOWCS 1
25578 _ACEOF
25582 # Check for --with-computed-gotos
25583 { echo "$as_me:$LINENO: checking for --with-computed-gotos" >&5
25584 echo $ECHO_N "checking for --with-computed-gotos... $ECHO_C" >&6; }
25586 # Check whether --with-computed-gotos was given.
25587 if test "${with_computed_gotos+set}" = set; then
25588 withval=$with_computed_gotos;
25589 if test "$withval" != no
25590 then
25592 cat >>confdefs.h <<\_ACEOF
25593 #define USE_COMPUTED_GOTOS 1
25594 _ACEOF
25596 { echo "$as_me:$LINENO: result: yes" >&5
25597 echo "${ECHO_T}yes" >&6; }
25598 else { echo "$as_me:$LINENO: result: no" >&5
25599 echo "${ECHO_T}no" >&6; }
25601 else
25602 { echo "$as_me:$LINENO: result: no" >&5
25603 echo "${ECHO_T}no" >&6; }
25607 if test $ac_sys_system = Darwin
25608 then
25609 LIBS="$LIBS -framework CoreFoundation"
25616 for h in `(cd $srcdir;echo Python/thread_*.h)`
25618 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
25619 done
25622 SRCDIRS="Parser Grammar Objects Python Modules Mac"
25623 { echo "$as_me:$LINENO: checking for build directories" >&5
25624 echo $ECHO_N "checking for build directories... $ECHO_C" >&6; }
25625 for dir in $SRCDIRS; do
25626 if test ! -d $dir; then
25627 mkdir $dir
25629 done
25630 { echo "$as_me:$LINENO: result: done" >&5
25631 echo "${ECHO_T}done" >&6; }
25633 # generate output files
25634 ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config Misc/python.pc"
25636 cat >confcache <<\_ACEOF
25637 # This file is a shell script that caches the results of configure
25638 # tests run on this system so they can be shared between configure
25639 # scripts and configure runs, see configure's option --config-cache.
25640 # It is not useful on other systems. If it contains results you don't
25641 # want to keep, you may remove or edit it.
25643 # config.status only pays attention to the cache file if you give it
25644 # the --recheck option to rerun configure.
25646 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25647 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25648 # following values.
25650 _ACEOF
25652 # The following way of writing the cache mishandles newlines in values,
25653 # but we know of no workaround that is simple, portable, and efficient.
25654 # So, we kill variables containing newlines.
25655 # Ultrix sh set writes to stderr and can't be redirected directly,
25656 # and sets the high bit in the cache file unless we assign to the vars.
25658 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25659 eval ac_val=\$$ac_var
25660 case $ac_val in #(
25661 *${as_nl}*)
25662 case $ac_var in #(
25663 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25664 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25665 esac
25666 case $ac_var in #(
25667 _ | IFS | as_nl) ;; #(
25668 *) $as_unset $ac_var ;;
25669 esac ;;
25670 esac
25671 done
25673 (set) 2>&1 |
25674 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25675 *${as_nl}ac_space=\ *)
25676 # `set' does not quote correctly, so add quotes (double-quote
25677 # substitution turns \\\\ into \\, and sed turns \\ into \).
25678 sed -n \
25679 "s/'/'\\\\''/g;
25680 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25681 ;; #(
25683 # `set' quotes correctly as required by POSIX, so do not add quotes.
25684 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25686 esac |
25687 sort
25689 sed '
25690 /^ac_cv_env_/b end
25691 t clear
25692 :clear
25693 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25694 t end
25695 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25696 :end' >>confcache
25697 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25698 if test -w "$cache_file"; then
25699 test "x$cache_file" != "x/dev/null" &&
25700 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
25701 echo "$as_me: updating cache $cache_file" >&6;}
25702 cat confcache >$cache_file
25703 else
25704 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25705 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25708 rm -f confcache
25710 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25711 # Let make expand exec_prefix.
25712 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25714 DEFS=-DHAVE_CONFIG_H
25716 ac_libobjs=
25717 ac_ltlibobjs=
25718 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25719 # 1. Remove the extension, and $U if already installed.
25720 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25721 ac_i=`echo "$ac_i" | sed "$ac_script"`
25722 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25723 # will be set to the directory where LIBOBJS objects are built.
25724 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25725 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
25726 done
25727 LIBOBJS=$ac_libobjs
25729 LTLIBOBJS=$ac_ltlibobjs
25733 : ${CONFIG_STATUS=./config.status}
25734 ac_clean_files_save=$ac_clean_files
25735 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25736 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25737 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25738 cat >$CONFIG_STATUS <<_ACEOF
25739 #! $SHELL
25740 # Generated by $as_me.
25741 # Run this file to recreate the current configuration.
25742 # Compiler output produced by configure, useful for debugging
25743 # configure, is in config.log if it exists.
25745 debug=false
25746 ac_cs_recheck=false
25747 ac_cs_silent=false
25748 SHELL=\${CONFIG_SHELL-$SHELL}
25749 _ACEOF
25751 cat >>$CONFIG_STATUS <<\_ACEOF
25752 ## --------------------- ##
25753 ## M4sh Initialization. ##
25754 ## --------------------- ##
25756 # Be more Bourne compatible
25757 DUALCASE=1; export DUALCASE # for MKS sh
25758 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25759 emulate sh
25760 NULLCMD=:
25761 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25762 # is contrary to our usage. Disable this feature.
25763 alias -g '${1+"$@"}'='"$@"'
25764 setopt NO_GLOB_SUBST
25765 else
25766 case `(set -o) 2>/dev/null` in
25767 *posix*) set -o posix ;;
25768 esac
25775 # PATH needs CR
25776 # Avoid depending upon Character Ranges.
25777 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25778 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25779 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25780 as_cr_digits='0123456789'
25781 as_cr_alnum=$as_cr_Letters$as_cr_digits
25783 # The user is always right.
25784 if test "${PATH_SEPARATOR+set}" != set; then
25785 echo "#! /bin/sh" >conf$$.sh
25786 echo "exit 0" >>conf$$.sh
25787 chmod +x conf$$.sh
25788 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25789 PATH_SEPARATOR=';'
25790 else
25791 PATH_SEPARATOR=:
25793 rm -f conf$$.sh
25796 # Support unset when possible.
25797 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25798 as_unset=unset
25799 else
25800 as_unset=false
25804 # IFS
25805 # We need space, tab and new line, in precisely that order. Quoting is
25806 # there to prevent editors from complaining about space-tab.
25807 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25808 # splitting by setting IFS to empty value.)
25809 as_nl='
25811 IFS=" "" $as_nl"
25813 # Find who we are. Look in the path if we contain no directory separator.
25814 case $0 in
25815 *[\\/]* ) as_myself=$0 ;;
25816 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25817 for as_dir in $PATH
25819 IFS=$as_save_IFS
25820 test -z "$as_dir" && as_dir=.
25821 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25822 done
25823 IFS=$as_save_IFS
25826 esac
25827 # We did not find ourselves, most probably we were run as `sh COMMAND'
25828 # in which case we are not to be found in the path.
25829 if test "x$as_myself" = x; then
25830 as_myself=$0
25832 if test ! -f "$as_myself"; then
25833 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25834 { (exit 1); exit 1; }
25837 # Work around bugs in pre-3.0 UWIN ksh.
25838 for as_var in ENV MAIL MAILPATH
25839 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25840 done
25841 PS1='$ '
25842 PS2='> '
25843 PS4='+ '
25845 # NLS nuisances.
25846 for as_var in \
25847 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25848 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25849 LC_TELEPHONE LC_TIME
25851 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25852 eval $as_var=C; export $as_var
25853 else
25854 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25856 done
25858 # Required to use basename.
25859 if expr a : '\(a\)' >/dev/null 2>&1 &&
25860 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25861 as_expr=expr
25862 else
25863 as_expr=false
25866 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25867 as_basename=basename
25868 else
25869 as_basename=false
25873 # Name of the executable.
25874 as_me=`$as_basename -- "$0" ||
25875 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25876 X"$0" : 'X\(//\)$' \| \
25877 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25878 echo X/"$0" |
25879 sed '/^.*\/\([^/][^/]*\)\/*$/{
25880 s//\1/
25883 /^X\/\(\/\/\)$/{
25884 s//\1/
25887 /^X\/\(\/\).*/{
25888 s//\1/
25891 s/.*/./; q'`
25893 # CDPATH.
25894 $as_unset CDPATH
25898 as_lineno_1=$LINENO
25899 as_lineno_2=$LINENO
25900 test "x$as_lineno_1" != "x$as_lineno_2" &&
25901 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
25903 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25904 # uniformly replaced by the line number. The first 'sed' inserts a
25905 # line-number line after each line using $LINENO; the second 'sed'
25906 # does the real work. The second script uses 'N' to pair each
25907 # line-number line with the line containing $LINENO, and appends
25908 # trailing '-' during substitution so that $LINENO is not a special
25909 # case at line end.
25910 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25911 # scripts with optimization help from Paolo Bonzini. Blame Lee
25912 # E. McMahon (1931-1989) for sed's syntax. :-)
25913 sed -n '
25915 /[$]LINENO/=
25916 ' <$as_myself |
25917 sed '
25918 s/[$]LINENO.*/&-/
25919 t lineno
25921 :lineno
25923 :loop
25924 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
25925 t loop
25926 s/-\n.*//
25927 ' >$as_me.lineno &&
25928 chmod +x "$as_me.lineno" ||
25929 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
25930 { (exit 1); exit 1; }; }
25932 # Don't try to exec as it changes $[0], causing all sort of problems
25933 # (the dirname of $[0] is not the place where we might find the
25934 # original and so on. Autoconf is especially sensitive to this).
25935 . "./$as_me.lineno"
25936 # Exit status is that of the last command.
25937 exit
25941 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25942 as_dirname=dirname
25943 else
25944 as_dirname=false
25947 ECHO_C= ECHO_N= ECHO_T=
25948 case `echo -n x` in
25949 -n*)
25950 case `echo 'x\c'` in
25951 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25952 *) ECHO_C='\c';;
25953 esac;;
25955 ECHO_N='-n';;
25956 esac
25958 if expr a : '\(a\)' >/dev/null 2>&1 &&
25959 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25960 as_expr=expr
25961 else
25962 as_expr=false
25965 rm -f conf$$ conf$$.exe conf$$.file
25966 if test -d conf$$.dir; then
25967 rm -f conf$$.dir/conf$$.file
25968 else
25969 rm -f conf$$.dir
25970 mkdir conf$$.dir
25972 echo >conf$$.file
25973 if ln -s conf$$.file conf$$ 2>/dev/null; then
25974 as_ln_s='ln -s'
25975 # ... but there are two gotchas:
25976 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25977 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25978 # In both cases, we have to default to `cp -p'.
25979 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25980 as_ln_s='cp -p'
25981 elif ln conf$$.file conf$$ 2>/dev/null; then
25982 as_ln_s=ln
25983 else
25984 as_ln_s='cp -p'
25986 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25987 rmdir conf$$.dir 2>/dev/null
25989 if mkdir -p . 2>/dev/null; then
25990 as_mkdir_p=:
25991 else
25992 test -d ./-p && rmdir ./-p
25993 as_mkdir_p=false
25996 if test -x / >/dev/null 2>&1; then
25997 as_test_x='test -x'
25998 else
25999 if ls -dL / >/dev/null 2>&1; then
26000 as_ls_L_option=L
26001 else
26002 as_ls_L_option=
26004 as_test_x='
26005 eval sh -c '\''
26006 if test -d "$1"; then
26007 test -d "$1/.";
26008 else
26009 case $1 in
26010 -*)set "./$1";;
26011 esac;
26012 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26013 ???[sx]*):;;*)false;;esac;fi
26014 '\'' sh
26017 as_executable_p=$as_test_x
26019 # Sed expression to map a string onto a valid CPP name.
26020 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26022 # Sed expression to map a string onto a valid variable name.
26023 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26026 exec 6>&1
26028 # Save the log message, to keep $[0] and so on meaningful, and to
26029 # report actual input values of CONFIG_FILES etc. instead of their
26030 # values after options handling.
26031 ac_log="
26032 This file was extended by python $as_me 3.1, which was
26033 generated by GNU Autoconf 2.61. Invocation command line was
26035 CONFIG_FILES = $CONFIG_FILES
26036 CONFIG_HEADERS = $CONFIG_HEADERS
26037 CONFIG_LINKS = $CONFIG_LINKS
26038 CONFIG_COMMANDS = $CONFIG_COMMANDS
26039 $ $0 $@
26041 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26044 _ACEOF
26046 cat >>$CONFIG_STATUS <<_ACEOF
26047 # Files that config.status was made for.
26048 config_files="$ac_config_files"
26049 config_headers="$ac_config_headers"
26051 _ACEOF
26053 cat >>$CONFIG_STATUS <<\_ACEOF
26054 ac_cs_usage="\
26055 \`$as_me' instantiates files from templates according to the
26056 current configuration.
26058 Usage: $0 [OPTIONS] [FILE]...
26060 -h, --help print this help, then exit
26061 -V, --version print version number and configuration settings, then exit
26062 -q, --quiet do not print progress messages
26063 -d, --debug don't remove temporary files
26064 --recheck update $as_me by reconfiguring in the same conditions
26065 --file=FILE[:TEMPLATE]
26066 instantiate the configuration file FILE
26067 --header=FILE[:TEMPLATE]
26068 instantiate the configuration header FILE
26070 Configuration files:
26071 $config_files
26073 Configuration headers:
26074 $config_headers
26076 Report bugs to <bug-autoconf@gnu.org>."
26078 _ACEOF
26079 cat >>$CONFIG_STATUS <<_ACEOF
26080 ac_cs_version="\\
26081 python config.status 3.1
26082 configured by $0, generated by GNU Autoconf 2.61,
26083 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26085 Copyright (C) 2006 Free Software Foundation, Inc.
26086 This config.status script is free software; the Free Software Foundation
26087 gives unlimited permission to copy, distribute and modify it."
26089 ac_pwd='$ac_pwd'
26090 srcdir='$srcdir'
26091 INSTALL='$INSTALL'
26092 _ACEOF
26094 cat >>$CONFIG_STATUS <<\_ACEOF
26095 # If no file are specified by the user, then we need to provide default
26096 # value. By we need to know if files were specified by the user.
26097 ac_need_defaults=:
26098 while test $# != 0
26100 case $1 in
26101 --*=*)
26102 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26103 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26104 ac_shift=:
26107 ac_option=$1
26108 ac_optarg=$2
26109 ac_shift=shift
26111 esac
26113 case $ac_option in
26114 # Handling of the options.
26115 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26116 ac_cs_recheck=: ;;
26117 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26118 echo "$ac_cs_version"; exit ;;
26119 --debug | --debu | --deb | --de | --d | -d )
26120 debug=: ;;
26121 --file | --fil | --fi | --f )
26122 $ac_shift
26123 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26124 ac_need_defaults=false;;
26125 --header | --heade | --head | --hea )
26126 $ac_shift
26127 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26128 ac_need_defaults=false;;
26129 --he | --h)
26130 # Conflict between --help and --header
26131 { echo "$as_me: error: ambiguous option: $1
26132 Try \`$0 --help' for more information." >&2
26133 { (exit 1); exit 1; }; };;
26134 --help | --hel | -h )
26135 echo "$ac_cs_usage"; exit ;;
26136 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26137 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26138 ac_cs_silent=: ;;
26140 # This is an error.
26141 -*) { echo "$as_me: error: unrecognized option: $1
26142 Try \`$0 --help' for more information." >&2
26143 { (exit 1); exit 1; }; } ;;
26145 *) ac_config_targets="$ac_config_targets $1"
26146 ac_need_defaults=false ;;
26148 esac
26149 shift
26150 done
26152 ac_configure_extra_args=
26154 if $ac_cs_silent; then
26155 exec 6>/dev/null
26156 ac_configure_extra_args="$ac_configure_extra_args --silent"
26159 _ACEOF
26160 cat >>$CONFIG_STATUS <<_ACEOF
26161 if \$ac_cs_recheck; then
26162 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26163 CONFIG_SHELL=$SHELL
26164 export CONFIG_SHELL
26165 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26168 _ACEOF
26169 cat >>$CONFIG_STATUS <<\_ACEOF
26170 exec 5>>config.log
26172 echo
26173 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26174 ## Running $as_me. ##
26175 _ASBOX
26176 echo "$ac_log"
26177 } >&5
26179 _ACEOF
26180 cat >>$CONFIG_STATUS <<_ACEOF
26181 _ACEOF
26183 cat >>$CONFIG_STATUS <<\_ACEOF
26185 # Handling of arguments.
26186 for ac_config_target in $ac_config_targets
26188 case $ac_config_target in
26189 "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;;
26190 "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;;
26191 "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
26192 "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;;
26193 "Mac/Resources/app/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/app/Info.plist" ;;
26194 "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;;
26195 "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;;
26196 "Misc/python.pc") CONFIG_FILES="$CONFIG_FILES Misc/python.pc" ;;
26198 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26199 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26200 { (exit 1); exit 1; }; };;
26201 esac
26202 done
26205 # If the user did not use the arguments to specify the items to instantiate,
26206 # then the envvar interface is used. Set only those that are not.
26207 # We use the long form for the default assignment because of an extremely
26208 # bizarre bug on SunOS 4.1.3.
26209 if $ac_need_defaults; then
26210 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26211 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26214 # Have a temporary directory for convenience. Make it in the build tree
26215 # simply because there is no reason against having it here, and in addition,
26216 # creating and moving files from /tmp can sometimes cause problems.
26217 # Hook for its removal unless debugging.
26218 # Note that there is a small window in which the directory will not be cleaned:
26219 # after its creation but before its name has been assigned to `$tmp'.
26220 $debug ||
26222 tmp=
26223 trap 'exit_status=$?
26224 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26226 trap '{ (exit 1); exit 1; }' 1 2 13 15
26228 # Create a (secure) tmp directory for tmp files.
26231 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26232 test -n "$tmp" && test -d "$tmp"
26233 } ||
26235 tmp=./conf$$-$RANDOM
26236 (umask 077 && mkdir "$tmp")
26237 } ||
26239 echo "$me: cannot create a temporary directory in ." >&2
26240 { (exit 1); exit 1; }
26244 # Set up the sed scripts for CONFIG_FILES section.
26247 # No need to generate the scripts if there are no CONFIG_FILES.
26248 # This happens for instance when ./config.status config.h
26249 if test -n "$CONFIG_FILES"; then
26251 _ACEOF
26255 ac_delim='%!_!# '
26256 for ac_last_try in false false false false false :; do
26257 cat >conf$$subs.sed <<_ACEOF
26258 SHELL!$SHELL$ac_delim
26259 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
26260 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
26261 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
26262 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
26263 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
26264 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
26265 exec_prefix!$exec_prefix$ac_delim
26266 prefix!$prefix$ac_delim
26267 program_transform_name!$program_transform_name$ac_delim
26268 bindir!$bindir$ac_delim
26269 sbindir!$sbindir$ac_delim
26270 libexecdir!$libexecdir$ac_delim
26271 datarootdir!$datarootdir$ac_delim
26272 datadir!$datadir$ac_delim
26273 sysconfdir!$sysconfdir$ac_delim
26274 sharedstatedir!$sharedstatedir$ac_delim
26275 localstatedir!$localstatedir$ac_delim
26276 includedir!$includedir$ac_delim
26277 oldincludedir!$oldincludedir$ac_delim
26278 docdir!$docdir$ac_delim
26279 infodir!$infodir$ac_delim
26280 htmldir!$htmldir$ac_delim
26281 dvidir!$dvidir$ac_delim
26282 pdfdir!$pdfdir$ac_delim
26283 psdir!$psdir$ac_delim
26284 libdir!$libdir$ac_delim
26285 localedir!$localedir$ac_delim
26286 mandir!$mandir$ac_delim
26287 DEFS!$DEFS$ac_delim
26288 ECHO_C!$ECHO_C$ac_delim
26289 ECHO_N!$ECHO_N$ac_delim
26290 ECHO_T!$ECHO_T$ac_delim
26291 LIBS!$LIBS$ac_delim
26292 build_alias!$build_alias$ac_delim
26293 host_alias!$host_alias$ac_delim
26294 target_alias!$target_alias$ac_delim
26295 VERSION!$VERSION$ac_delim
26296 SOVERSION!$SOVERSION$ac_delim
26297 CONFIG_ARGS!$CONFIG_ARGS$ac_delim
26298 UNIVERSALSDK!$UNIVERSALSDK$ac_delim
26299 ARCH_RUN_32BIT!$ARCH_RUN_32BIT$ac_delim
26300 PYTHONFRAMEWORK!$PYTHONFRAMEWORK$ac_delim
26301 PYTHONFRAMEWORKIDENTIFIER!$PYTHONFRAMEWORKIDENTIFIER$ac_delim
26302 PYTHONFRAMEWORKDIR!$PYTHONFRAMEWORKDIR$ac_delim
26303 PYTHONFRAMEWORKPREFIX!$PYTHONFRAMEWORKPREFIX$ac_delim
26304 PYTHONFRAMEWORKINSTALLDIR!$PYTHONFRAMEWORKINSTALLDIR$ac_delim
26305 FRAMEWORKINSTALLFIRST!$FRAMEWORKINSTALLFIRST$ac_delim
26306 FRAMEWORKINSTALLLAST!$FRAMEWORKINSTALLLAST$ac_delim
26307 FRAMEWORKALTINSTALLFIRST!$FRAMEWORKALTINSTALLFIRST$ac_delim
26308 FRAMEWORKALTINSTALLLAST!$FRAMEWORKALTINSTALLLAST$ac_delim
26309 FRAMEWORKUNIXTOOLSPREFIX!$FRAMEWORKUNIXTOOLSPREFIX$ac_delim
26310 MACHDEP!$MACHDEP$ac_delim
26311 SGI_ABI!$SGI_ABI$ac_delim
26312 CONFIGURE_MACOSX_DEPLOYMENT_TARGET!$CONFIGURE_MACOSX_DEPLOYMENT_TARGET$ac_delim
26313 EXPORT_MACOSX_DEPLOYMENT_TARGET!$EXPORT_MACOSX_DEPLOYMENT_TARGET$ac_delim
26314 CC!$CC$ac_delim
26315 CFLAGS!$CFLAGS$ac_delim
26316 LDFLAGS!$LDFLAGS$ac_delim
26317 CPPFLAGS!$CPPFLAGS$ac_delim
26318 ac_ct_CC!$ac_ct_CC$ac_delim
26319 EXEEXT!$EXEEXT$ac_delim
26320 OBJEXT!$OBJEXT$ac_delim
26321 CXX!$CXX$ac_delim
26322 MAINCC!$MAINCC$ac_delim
26323 CPP!$CPP$ac_delim
26324 GREP!$GREP$ac_delim
26325 EGREP!$EGREP$ac_delim
26326 BUILDEXEEXT!$BUILDEXEEXT$ac_delim
26327 LIBRARY!$LIBRARY$ac_delim
26328 LDLIBRARY!$LDLIBRARY$ac_delim
26329 DLLLIBRARY!$DLLLIBRARY$ac_delim
26330 BLDLIBRARY!$BLDLIBRARY$ac_delim
26331 LDLIBRARYDIR!$LDLIBRARYDIR$ac_delim
26332 INSTSONAME!$INSTSONAME$ac_delim
26333 RUNSHARED!$RUNSHARED$ac_delim
26334 LINKCC!$LINKCC$ac_delim
26335 GNULD!$GNULD$ac_delim
26336 RANLIB!$RANLIB$ac_delim
26337 AR!$AR$ac_delim
26338 ARFLAGS!$ARFLAGS$ac_delim
26339 SVNVERSION!$SVNVERSION$ac_delim
26340 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
26341 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
26342 INSTALL_DATA!$INSTALL_DATA$ac_delim
26343 LN!$LN$ac_delim
26344 OPT!$OPT$ac_delim
26345 BASECFLAGS!$BASECFLAGS$ac_delim
26346 UNIVERSAL_ARCH_FLAGS!$UNIVERSAL_ARCH_FLAGS$ac_delim
26347 OTHER_LIBTOOL_OPT!$OTHER_LIBTOOL_OPT$ac_delim
26348 LIBTOOL_CRUFT!$LIBTOOL_CRUFT$ac_delim
26349 SO!$SO$ac_delim
26350 LDSHARED!$LDSHARED$ac_delim
26351 BLDSHARED!$BLDSHARED$ac_delim
26352 CCSHARED!$CCSHARED$ac_delim
26353 LINKFORSHARED!$LINKFORSHARED$ac_delim
26354 CFLAGSFORSHARED!$CFLAGSFORSHARED$ac_delim
26355 _ACEOF
26357 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
26358 break
26359 elif $ac_last_try; then
26360 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26361 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26362 { (exit 1); exit 1; }; }
26363 else
26364 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26366 done
26368 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26369 if test -n "$ac_eof"; then
26370 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26371 ac_eof=`expr $ac_eof + 1`
26374 cat >>$CONFIG_STATUS <<_ACEOF
26375 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
26376 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26377 _ACEOF
26378 sed '
26379 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26380 s/^/s,@/; s/!/@,|#_!!_#|/
26383 s/'"$ac_delim"'$/,g/; t
26384 s/$/\\/; p
26385 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26386 ' >>$CONFIG_STATUS <conf$$subs.sed
26387 rm -f conf$$subs.sed
26388 cat >>$CONFIG_STATUS <<_ACEOF
26389 CEOF$ac_eof
26390 _ACEOF
26393 ac_delim='%!_!# '
26394 for ac_last_try in false false false false false :; do
26395 cat >conf$$subs.sed <<_ACEOF
26396 SHLIBS!$SHLIBS$ac_delim
26397 USE_SIGNAL_MODULE!$USE_SIGNAL_MODULE$ac_delim
26398 SIGNAL_OBJS!$SIGNAL_OBJS$ac_delim
26399 USE_THREAD_MODULE!$USE_THREAD_MODULE$ac_delim
26400 LDLAST!$LDLAST$ac_delim
26401 THREADOBJ!$THREADOBJ$ac_delim
26402 DLINCLDIR!$DLINCLDIR$ac_delim
26403 DYNLOADFILE!$DYNLOADFILE$ac_delim
26404 MACHDEP_OBJS!$MACHDEP_OBJS$ac_delim
26405 TRUE!$TRUE$ac_delim
26406 LIBOBJS!$LIBOBJS$ac_delim
26407 HAVE_GETHOSTBYNAME_R_6_ARG!$HAVE_GETHOSTBYNAME_R_6_ARG$ac_delim
26408 HAVE_GETHOSTBYNAME_R_5_ARG!$HAVE_GETHOSTBYNAME_R_5_ARG$ac_delim
26409 HAVE_GETHOSTBYNAME_R_3_ARG!$HAVE_GETHOSTBYNAME_R_3_ARG$ac_delim
26410 HAVE_GETHOSTBYNAME_R!$HAVE_GETHOSTBYNAME_R$ac_delim
26411 HAVE_GETHOSTBYNAME!$HAVE_GETHOSTBYNAME$ac_delim
26412 LIBM!$LIBM$ac_delim
26413 LIBC!$LIBC$ac_delim
26414 THREADHEADERS!$THREADHEADERS$ac_delim
26415 SRCDIRS!$SRCDIRS$ac_delim
26416 LTLIBOBJS!$LTLIBOBJS$ac_delim
26417 _ACEOF
26419 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 21; then
26420 break
26421 elif $ac_last_try; then
26422 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26423 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26424 { (exit 1); exit 1; }; }
26425 else
26426 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26428 done
26430 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26431 if test -n "$ac_eof"; then
26432 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26433 ac_eof=`expr $ac_eof + 1`
26436 cat >>$CONFIG_STATUS <<_ACEOF
26437 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
26438 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
26439 _ACEOF
26440 sed '
26441 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26442 s/^/s,@/; s/!/@,|#_!!_#|/
26445 s/'"$ac_delim"'$/,g/; t
26446 s/$/\\/; p
26447 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26448 ' >>$CONFIG_STATUS <conf$$subs.sed
26449 rm -f conf$$subs.sed
26450 cat >>$CONFIG_STATUS <<_ACEOF
26451 :end
26452 s/|#_!!_#|//g
26453 CEOF$ac_eof
26454 _ACEOF
26457 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26458 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26459 # trailing colons and then remove the whole line if VPATH becomes empty
26460 # (actually we leave an empty line to preserve line numbers).
26461 if test "x$srcdir" = x.; then
26462 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26463 s/:*\$(srcdir):*/:/
26464 s/:*\${srcdir}:*/:/
26465 s/:*@srcdir@:*/:/
26466 s/^\([^=]*=[ ]*\):*/\1/
26467 s/:*$//
26468 s/^[^=]*=[ ]*$//
26472 cat >>$CONFIG_STATUS <<\_ACEOF
26473 fi # test -n "$CONFIG_FILES"
26476 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
26478 case $ac_tag in
26479 :[FHLC]) ac_mode=$ac_tag; continue;;
26480 esac
26481 case $ac_mode$ac_tag in
26482 :[FHL]*:*);;
26483 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26484 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26485 { (exit 1); exit 1; }; };;
26486 :[FH]-) ac_tag=-:-;;
26487 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26488 esac
26489 ac_save_IFS=$IFS
26490 IFS=:
26491 set x $ac_tag
26492 IFS=$ac_save_IFS
26493 shift
26494 ac_file=$1
26495 shift
26497 case $ac_mode in
26498 :L) ac_source=$1;;
26499 :[FH])
26500 ac_file_inputs=
26501 for ac_f
26503 case $ac_f in
26504 -) ac_f="$tmp/stdin";;
26505 *) # Look for the file first in the build tree, then in the source tree
26506 # (if the path is not absolute). The absolute path cannot be DOS-style,
26507 # because $ac_f cannot contain `:'.
26508 test -f "$ac_f" ||
26509 case $ac_f in
26510 [\\/$]*) false;;
26511 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26512 esac ||
26513 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26514 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26515 { (exit 1); exit 1; }; };;
26516 esac
26517 ac_file_inputs="$ac_file_inputs $ac_f"
26518 done
26520 # Let's still pretend it is `configure' which instantiates (i.e., don't
26521 # use $as_me), people would be surprised to read:
26522 # /* config.h. Generated by config.status. */
26523 configure_input="Generated from "`IFS=:
26524 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
26525 if test x"$ac_file" != x-; then
26526 configure_input="$ac_file. $configure_input"
26527 { echo "$as_me:$LINENO: creating $ac_file" >&5
26528 echo "$as_me: creating $ac_file" >&6;}
26531 case $ac_tag in
26532 *:-:* | *:-) cat >"$tmp/stdin";;
26533 esac
26535 esac
26537 ac_dir=`$as_dirname -- "$ac_file" ||
26538 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26539 X"$ac_file" : 'X\(//\)[^/]' \| \
26540 X"$ac_file" : 'X\(//\)$' \| \
26541 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26542 echo X"$ac_file" |
26543 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26544 s//\1/
26547 /^X\(\/\/\)[^/].*/{
26548 s//\1/
26551 /^X\(\/\/\)$/{
26552 s//\1/
26555 /^X\(\/\).*/{
26556 s//\1/
26559 s/.*/./; q'`
26560 { as_dir="$ac_dir"
26561 case $as_dir in #(
26562 -*) as_dir=./$as_dir;;
26563 esac
26564 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26565 as_dirs=
26566 while :; do
26567 case $as_dir in #(
26568 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26569 *) as_qdir=$as_dir;;
26570 esac
26571 as_dirs="'$as_qdir' $as_dirs"
26572 as_dir=`$as_dirname -- "$as_dir" ||
26573 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26574 X"$as_dir" : 'X\(//\)[^/]' \| \
26575 X"$as_dir" : 'X\(//\)$' \| \
26576 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26577 echo X"$as_dir" |
26578 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26579 s//\1/
26582 /^X\(\/\/\)[^/].*/{
26583 s//\1/
26586 /^X\(\/\/\)$/{
26587 s//\1/
26590 /^X\(\/\).*/{
26591 s//\1/
26594 s/.*/./; q'`
26595 test -d "$as_dir" && break
26596 done
26597 test -z "$as_dirs" || eval "mkdir $as_dirs"
26598 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26599 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26600 { (exit 1); exit 1; }; }; }
26601 ac_builddir=.
26603 case "$ac_dir" in
26604 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26606 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26607 # A ".." for each directory in $ac_dir_suffix.
26608 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26609 case $ac_top_builddir_sub in
26610 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26611 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26612 esac ;;
26613 esac
26614 ac_abs_top_builddir=$ac_pwd
26615 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26616 # for backward compatibility:
26617 ac_top_builddir=$ac_top_build_prefix
26619 case $srcdir in
26620 .) # We are building in place.
26621 ac_srcdir=.
26622 ac_top_srcdir=$ac_top_builddir_sub
26623 ac_abs_top_srcdir=$ac_pwd ;;
26624 [\\/]* | ?:[\\/]* ) # Absolute name.
26625 ac_srcdir=$srcdir$ac_dir_suffix;
26626 ac_top_srcdir=$srcdir
26627 ac_abs_top_srcdir=$srcdir ;;
26628 *) # Relative name.
26629 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26630 ac_top_srcdir=$ac_top_build_prefix$srcdir
26631 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26632 esac
26633 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26636 case $ac_mode in
26639 # CONFIG_FILE
26642 case $INSTALL in
26643 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26644 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26645 esac
26646 _ACEOF
26648 cat >>$CONFIG_STATUS <<\_ACEOF
26649 # If the template does not know about datarootdir, expand it.
26650 # FIXME: This hack should be removed a few years after 2.60.
26651 ac_datarootdir_hack=; ac_datarootdir_seen=
26653 case `sed -n '/datarootdir/ {
26657 /@datadir@/p
26658 /@docdir@/p
26659 /@infodir@/p
26660 /@localedir@/p
26661 /@mandir@/p
26662 ' $ac_file_inputs` in
26663 *datarootdir*) ac_datarootdir_seen=yes;;
26664 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26665 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26666 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26667 _ACEOF
26668 cat >>$CONFIG_STATUS <<_ACEOF
26669 ac_datarootdir_hack='
26670 s&@datadir@&$datadir&g
26671 s&@docdir@&$docdir&g
26672 s&@infodir@&$infodir&g
26673 s&@localedir@&$localedir&g
26674 s&@mandir@&$mandir&g
26675 s&\\\${datarootdir}&$datarootdir&g' ;;
26676 esac
26677 _ACEOF
26679 # Neutralize VPATH when `$srcdir' = `.'.
26680 # Shell code in configure.ac might set extrasub.
26681 # FIXME: do we really want to maintain this feature?
26682 cat >>$CONFIG_STATUS <<_ACEOF
26683 sed "$ac_vpsub
26684 $extrasub
26685 _ACEOF
26686 cat >>$CONFIG_STATUS <<\_ACEOF
26688 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26689 s&@configure_input@&$configure_input&;t t
26690 s&@top_builddir@&$ac_top_builddir_sub&;t t
26691 s&@srcdir@&$ac_srcdir&;t t
26692 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26693 s&@top_srcdir@&$ac_top_srcdir&;t t
26694 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26695 s&@builddir@&$ac_builddir&;t t
26696 s&@abs_builddir@&$ac_abs_builddir&;t t
26697 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26698 s&@INSTALL@&$ac_INSTALL&;t t
26699 $ac_datarootdir_hack
26700 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
26702 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26703 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26704 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26705 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26706 which seems to be undefined. Please make sure it is defined." >&5
26707 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26708 which seems to be undefined. Please make sure it is defined." >&2;}
26710 rm -f "$tmp/stdin"
26711 case $ac_file in
26712 -) cat "$tmp/out"; rm -f "$tmp/out";;
26713 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
26714 esac
26718 # CONFIG_HEADER
26720 _ACEOF
26722 # Transform confdefs.h into a sed script `conftest.defines', that
26723 # substitutes the proper values into config.h.in to produce config.h.
26724 rm -f conftest.defines conftest.tail
26725 # First, append a space to every undef/define line, to ease matching.
26726 echo 's/$/ /' >conftest.defines
26727 # Then, protect against being on the right side of a sed subst, or in
26728 # an unquoted here document, in config.status. If some macros were
26729 # called several times there might be several #defines for the same
26730 # symbol, which is useless. But do not sort them, since the last
26731 # AC_DEFINE must be honored.
26732 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26733 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
26734 # NAME is the cpp macro being defined, VALUE is the value it is being given.
26735 # PARAMS is the parameter list in the macro definition--in most cases, it's
26736 # just an empty string.
26737 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
26738 ac_dB='\\)[ (].*,\\1define\\2'
26739 ac_dC=' '
26740 ac_dD=' ,'
26742 uniq confdefs.h |
26743 sed -n '
26744 t rset
26745 :rset
26746 s/^[ ]*#[ ]*define[ ][ ]*//
26747 t ok
26750 s/[\\&,]/\\&/g
26751 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
26752 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
26753 ' >>conftest.defines
26755 # Remove the space that was appended to ease matching.
26756 # Then replace #undef with comments. This is necessary, for
26757 # example, in the case of _POSIX_SOURCE, which is predefined and required
26758 # on some systems where configure will not decide to define it.
26759 # (The regexp can be short, since the line contains either #define or #undef.)
26760 echo 's/ $//
26761 s,^[ #]*u.*,/* & */,' >>conftest.defines
26763 # Break up conftest.defines:
26764 ac_max_sed_lines=50
26766 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
26767 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
26768 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
26769 # et cetera.
26770 ac_in='$ac_file_inputs'
26771 ac_out='"$tmp/out1"'
26772 ac_nxt='"$tmp/out2"'
26774 while :
26776 # Write a here document:
26777 cat >>$CONFIG_STATUS <<_ACEOF
26778 # First, check the format of the line:
26779 cat >"\$tmp/defines.sed" <<\\CEOF
26780 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
26781 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
26783 :def
26784 _ACEOF
26785 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
26786 echo 'CEOF
26787 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
26788 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
26789 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
26790 grep . conftest.tail >/dev/null || break
26791 rm -f conftest.defines
26792 mv conftest.tail conftest.defines
26793 done
26794 rm -f conftest.defines conftest.tail
26796 echo "ac_result=$ac_in" >>$CONFIG_STATUS
26797 cat >>$CONFIG_STATUS <<\_ACEOF
26798 if test x"$ac_file" != x-; then
26799 echo "/* $configure_input */" >"$tmp/config.h"
26800 cat "$ac_result" >>"$tmp/config.h"
26801 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
26802 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26803 echo "$as_me: $ac_file is unchanged" >&6;}
26804 else
26805 rm -f $ac_file
26806 mv "$tmp/config.h" $ac_file
26808 else
26809 echo "/* $configure_input */"
26810 cat "$ac_result"
26812 rm -f "$tmp/out12"
26816 esac
26818 done # for ac_tag
26821 { (exit 0); exit 0; }
26822 _ACEOF
26823 chmod +x $CONFIG_STATUS
26824 ac_clean_files=$ac_clean_files_save
26827 # configure is writing to config.log, and then calls config.status.
26828 # config.status does its own redirection, appending to config.log.
26829 # Unfortunately, on DOS this fails, as config.log is still kept open
26830 # by configure, so config.status won't be able to write to it; its
26831 # output is simply discarded. So we exec the FD to /dev/null,
26832 # effectively closing config.log, so it can be properly (re)opened and
26833 # appended to by config.status. When coming back to configure, we
26834 # need to make the FD available again.
26835 if test "$no_create" != yes; then
26836 ac_cs_success=:
26837 ac_config_status_args=
26838 test "$silent" = yes &&
26839 ac_config_status_args="$ac_config_status_args --quiet"
26840 exec 5>/dev/null
26841 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26842 exec 5>>config.log
26843 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26844 # would make configure fail if this is the last instruction.
26845 $ac_cs_success || { (exit 1); exit 1; }
26849 echo "creating Modules/Setup"
26850 if test ! -f Modules/Setup
26851 then
26852 cp $srcdir/Modules/Setup.dist Modules/Setup
26855 echo "creating Modules/Setup.local"
26856 if test ! -f Modules/Setup.local
26857 then
26858 echo "# Edit this file for local setup changes" >Modules/Setup.local
26861 echo "creating Makefile"
26862 $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
26863 -s Modules Modules/Setup.config \
26864 Modules/Setup.local Modules/Setup
26865 mv config.c Modules