Blocked revisions 78888 via svnmerge
[python/dscho.git] / configure
blobd736fb7705af5ebec06e95f7d106bc32741b2512
1 #! /bin/sh
2 # From configure.in Revision: 78783 .
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 { echo "$as_me:$LINENO: checking for --enable-universalsdk" >&5
1885 echo $ECHO_N "checking for --enable-universalsdk... $ECHO_C" >&6; }
1886 # Check whether --enable-universalsdk was given.
1887 if test "${enable_universalsdk+set}" = set; then
1888 enableval=$enable_universalsdk;
1889 case $enableval in
1890 yes)
1891 enableval=/Developer/SDKs/MacOSX10.4u.sdk
1892 if test ! -d "${enableval}"
1893 then
1894 enableval=/
1897 esac
1898 case $enableval in
1900 UNIVERSALSDK=
1901 enable_universalsdk=
1904 UNIVERSALSDK=$enableval
1905 if test ! -d "${UNIVERSALSDK}"
1906 then
1907 { { echo "$as_me:$LINENO: error: --enable-universalsdk specifies non-existing SDK: ${UNIVERSALSDK}" >&5
1908 echo "$as_me: error: --enable-universalsdk specifies non-existing SDK: ${UNIVERSALSDK}" >&2;}
1909 { (exit 1); exit 1; }; }
1912 esac
1915 else
1917 UNIVERSALSDK=
1918 enable_universalsdk=
1922 if test -n "${UNIVERSALSDK}"
1923 then
1924 { echo "$as_me:$LINENO: result: ${UNIVERSALSDK}" >&5
1925 echo "${ECHO_T}${UNIVERSALSDK}" >&6; }
1926 else
1927 { echo "$as_me:$LINENO: result: no" >&5
1928 echo "${ECHO_T}no" >&6; }
1934 UNIVERSAL_ARCHS="32-bit"
1935 { echo "$as_me:$LINENO: checking for --with-universal-archs" >&5
1936 echo $ECHO_N "checking for --with-universal-archs... $ECHO_C" >&6; }
1938 # Check whether --with-universal-archs was given.
1939 if test "${with_universal_archs+set}" = set; then
1940 withval=$with_universal_archs;
1941 { echo "$as_me:$LINENO: result: $withval" >&5
1942 echo "${ECHO_T}$withval" >&6; }
1943 UNIVERSAL_ARCHS="$withval"
1945 else
1947 { echo "$as_me:$LINENO: result: 32-bit" >&5
1948 echo "${ECHO_T}32-bit" >&6; }
1956 # Check whether --with-framework-name was given.
1957 if test "${with_framework_name+set}" = set; then
1958 withval=$with_framework_name;
1959 PYTHONFRAMEWORK=${withval}
1960 PYTHONFRAMEWORKDIR=${withval}.framework
1961 PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'`
1963 else
1965 PYTHONFRAMEWORK=Python
1966 PYTHONFRAMEWORKDIR=Python.framework
1967 PYTHONFRAMEWORKIDENTIFIER=org.python.python
1971 # Check whether --enable-framework was given.
1972 if test "${enable_framework+set}" = set; then
1973 enableval=$enable_framework;
1974 case $enableval in
1975 yes)
1976 enableval=/Library/Frameworks
1977 esac
1978 case $enableval in
1980 PYTHONFRAMEWORK=
1981 PYTHONFRAMEWORKDIR=no-framework
1982 PYTHONFRAMEWORKPREFIX=
1983 PYTHONFRAMEWORKINSTALLDIR=
1984 FRAMEWORKINSTALLFIRST=
1985 FRAMEWORKINSTALLLAST=
1986 FRAMEWORKALTINSTALLFIRST=
1987 FRAMEWORKALTINSTALLLAST=
1988 if test "x${prefix}" = "xNONE"; then
1989 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1990 else
1991 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1993 enable_framework=
1996 PYTHONFRAMEWORKPREFIX=$enableval
1997 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
1998 FRAMEWORKINSTALLFIRST="frameworkinstallstructure"
1999 FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure "
2000 if test "$UNIVERSAL_ARCHS" = "all"
2001 then
2002 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkinstallunixtools4way"
2003 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkaltinstallunixtools4way"
2004 else
2005 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools"
2006 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
2009 if test "x${prefix}" = "xNONE" ; then
2010 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
2011 else
2012 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
2014 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
2016 # Add files for Mac specific code to the list of output
2017 # files:
2018 ac_config_files="$ac_config_files Mac/Makefile"
2020 ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile"
2022 ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist"
2024 ac_config_files="$ac_config_files Mac/Resources/app/Info.plist"
2026 esac
2028 else
2030 PYTHONFRAMEWORK=
2031 PYTHONFRAMEWORKDIR=no-framework
2032 PYTHONFRAMEWORKPREFIX=
2033 PYTHONFRAMEWORKINSTALLDIR=
2034 FRAMEWORKINSTALLFIRST=
2035 FRAMEWORKINSTALLLAST=
2036 FRAMEWORKALTINSTALLFIRST=
2037 FRAMEWORKALTINSTALLLAST=
2038 if test "x${prefix}" = "xNONE" ; then
2039 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
2040 else
2041 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
2043 enable_framework=
2045 if test "$UNIVERSAL_ARCHS" = "all"
2046 then
2047 FRAMEWORKINSTALLLAST=update4wayuniversal
2048 FRAMEWORKALTINSTALLLAST=update4wayuniversal
2064 ##AC_ARG_WITH(dyld,
2065 ## AC_HELP_STRING(--with-dyld,
2066 ## Use (OpenStep|Rhapsody) dynamic linker))
2068 # Set name for machine-dependent library files
2070 { echo "$as_me:$LINENO: checking MACHDEP" >&5
2071 echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6; }
2072 if test -z "$MACHDEP"
2073 then
2074 ac_sys_system=`uname -s`
2075 if test "$ac_sys_system" = "AIX" \
2076 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
2077 ac_sys_release=`uname -v`
2078 else
2079 ac_sys_release=`uname -r`
2081 ac_md_system=`echo $ac_sys_system |
2082 tr -d '/ ' | tr '[A-Z]' '[a-z]'`
2083 ac_md_release=`echo $ac_sys_release |
2084 tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'`
2085 MACHDEP="$ac_md_system$ac_md_release"
2087 case $MACHDEP in
2088 cygwin*) MACHDEP="cygwin";;
2089 darwin*) MACHDEP="darwin";;
2090 atheos*) MACHDEP="atheos";;
2091 irix646) MACHDEP="irix6";;
2092 '') MACHDEP="unknown";;
2093 esac
2096 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
2097 # disable features if it is defined, without any means to access these
2098 # features as extensions. For these systems, we skip the definition of
2099 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
2100 # some feature, make sure there is no alternative way to access this
2101 # feature. Also, when using wildcards, make sure you have verified the
2102 # need for not defining _XOPEN_SOURCE on all systems matching the
2103 # wildcard, and that the wildcard does not include future systems
2104 # (which may remove their limitations).
2105 case $ac_sys_system/$ac_sys_release in
2106 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
2107 # even though select is a POSIX function. Reported by J. Ribbens.
2108 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
2109 # In addition, Stefan Krah confirms that issue #1244610 exists through
2110 # OpenBSD 4.6, but is fixed in 4.7.
2111 OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0123456])
2112 define_xopen_source=no
2113 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
2114 # also defined. This can be overridden by defining _BSD_SOURCE
2115 # As this has a different meaning on Linux, only define it on OpenBSD
2117 cat >>confdefs.h <<\_ACEOF
2118 #define _BSD_SOURCE 1
2119 _ACEOF
2122 OpenBSD/4.[789])
2123 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
2124 # also defined. This can be overridden by defining _BSD_SOURCE
2125 # As this has a different meaning on Linux, only define it on OpenBSD
2127 cat >>confdefs.h <<\_ACEOF
2128 #define _BSD_SOURCE 1
2129 _ACEOF
2132 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
2133 # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
2134 # Marc Recht
2135 NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S])
2136 define_xopen_source=no;;
2137 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
2138 # of union __?sigval. Reported by Stuart Bishop.
2139 SunOS/5.6)
2140 define_xopen_source=no;;
2141 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
2142 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
2143 # Reconfirmed for 7.1.4 by Martin v. Loewis.
2144 OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
2145 define_xopen_source=no;;
2146 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
2147 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
2148 SCO_SV/3.2)
2149 define_xopen_source=no;;
2150 # On FreeBSD 4, the math functions C89 does not cover are never defined
2151 # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them.
2152 FreeBSD/4.*)
2153 define_xopen_source=no;;
2154 # On MacOS X 10.2, a bug in ncurses.h means that it craps out if
2155 # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which
2156 # identifies itself as Darwin/7.*
2157 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2158 # disables platform specific features beyond repair.
2159 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2160 # has no effect, don't bother defining them
2161 Darwin/[6789].*)
2162 define_xopen_source=no;;
2163 Darwin/1[0-9].*)
2164 define_xopen_source=no;;
2165 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
2166 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
2167 # or has another value. By not (re)defining it, the defaults come in place.
2168 AIX/4)
2169 define_xopen_source=no;;
2170 AIX/5)
2171 if test `uname -r` -eq 1; then
2172 define_xopen_source=no
2175 # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from
2176 # defining NI_NUMERICHOST.
2177 QNX/6.3.2)
2178 define_xopen_source=no
2181 esac
2183 if test $define_xopen_source = yes
2184 then
2185 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
2186 # defined precisely as g++ defines it
2187 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
2188 # compiler
2189 case $ac_sys_system/$ac_sys_release in
2190 SunOS/5.8|SunOS/5.9|SunOS/5.10)
2192 cat >>confdefs.h <<\_ACEOF
2193 #define _XOPEN_SOURCE 500
2194 _ACEOF
2199 cat >>confdefs.h <<\_ACEOF
2200 #define _XOPEN_SOURCE 600
2201 _ACEOF
2204 esac
2206 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
2207 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
2208 # several APIs are not declared. Since this is also needed in some
2209 # cases for HP-UX, we define it globally.
2210 # except for Solaris 10, where it must not be defined,
2211 # as it implies XPG4.2
2212 case $ac_sys_system/$ac_sys_release in
2213 SunOS/5.10)
2217 cat >>confdefs.h <<\_ACEOF
2218 #define _XOPEN_SOURCE_EXTENDED 1
2219 _ACEOF
2222 esac
2225 cat >>confdefs.h <<\_ACEOF
2226 #define _POSIX_C_SOURCE 200112L
2227 _ACEOF
2233 # SGI compilers allow the specification of the both the ABI and the
2234 # ISA on the command line. Depending on the values of these switches,
2235 # different and often incompatable code will be generated.
2237 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
2238 # thus supply support for various ABI/ISA combinations. The MACHDEP
2239 # variable is also adjusted.
2242 if test ! -z "$SGI_ABI"
2243 then
2244 CC="cc $SGI_ABI"
2245 LDFLAGS="$SGI_ABI $LDFLAGS"
2246 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
2248 { echo "$as_me:$LINENO: result: $MACHDEP" >&5
2249 echo "${ECHO_T}$MACHDEP" >&6; }
2251 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
2252 # it may influence the way we can build extensions, so distutils
2253 # needs to check it
2256 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
2257 EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
2259 { echo "$as_me:$LINENO: checking machine type as reported by uname -m" >&5
2260 echo $ECHO_N "checking machine type as reported by uname -m... $ECHO_C" >&6; }
2261 ac_sys_machine=`uname -m`
2262 { echo "$as_me:$LINENO: result: $ac_sys_machine" >&5
2263 echo "${ECHO_T}$ac_sys_machine" >&6; }
2265 # checks for alternative programs
2267 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
2268 # for debug/optimization stuff. BASECFLAGS is for flags that are required
2269 # just to get things to compile and link. Users are free to override OPT
2270 # when running configure or make. The build should not break if they do.
2271 # BASECFLAGS should generally not be messed with, however.
2273 # XXX shouldn't some/most/all of this code be merged with the stuff later
2274 # on that fiddles with OPT and BASECFLAGS?
2275 { echo "$as_me:$LINENO: checking for --without-gcc" >&5
2276 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6; }
2278 # Check whether --with-gcc was given.
2279 if test "${with_gcc+set}" = set; then
2280 withval=$with_gcc;
2281 case $withval in
2282 no) CC=${CC:-cc}
2283 without_gcc=yes;;
2284 yes) CC=gcc
2285 without_gcc=no;;
2286 *) CC=$withval
2287 without_gcc=$withval;;
2288 esac
2289 else
2291 case $ac_sys_system in
2292 AIX*) CC=cc_r
2293 without_gcc=;;
2294 *) without_gcc=no;;
2295 esac
2298 { echo "$as_me:$LINENO: result: $without_gcc" >&5
2299 echo "${ECHO_T}$without_gcc" >&6; }
2301 # If the user switches compilers, we can't believe the cache
2302 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
2303 then
2304 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
2305 (it is also a good idea to do 'make clean' before compiling)" >&5
2306 echo "$as_me: error: cached CC is different -- throw away $cache_file
2307 (it is also a good idea to do 'make clean' before compiling)" >&2;}
2308 { (exit 1); exit 1; }; }
2311 ac_ext=c
2312 ac_cpp='$CPP $CPPFLAGS'
2313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2316 if test -n "$ac_tool_prefix"; then
2317 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2318 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2319 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2321 if test "${ac_cv_prog_CC+set}" = set; then
2322 echo $ECHO_N "(cached) $ECHO_C" >&6
2323 else
2324 if test -n "$CC"; then
2325 ac_cv_prog_CC="$CC" # Let the user override the test.
2326 else
2327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2328 for as_dir in $PATH
2330 IFS=$as_save_IFS
2331 test -z "$as_dir" && as_dir=.
2332 for ac_exec_ext in '' $ac_executable_extensions; do
2333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2334 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2336 break 2
2338 done
2339 done
2340 IFS=$as_save_IFS
2344 CC=$ac_cv_prog_CC
2345 if test -n "$CC"; then
2346 { echo "$as_me:$LINENO: result: $CC" >&5
2347 echo "${ECHO_T}$CC" >&6; }
2348 else
2349 { echo "$as_me:$LINENO: result: no" >&5
2350 echo "${ECHO_T}no" >&6; }
2355 if test -z "$ac_cv_prog_CC"; then
2356 ac_ct_CC=$CC
2357 # Extract the first word of "gcc", so it can be a program name with args.
2358 set dummy gcc; ac_word=$2
2359 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2361 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2362 echo $ECHO_N "(cached) $ECHO_C" >&6
2363 else
2364 if test -n "$ac_ct_CC"; then
2365 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2366 else
2367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2368 for as_dir in $PATH
2370 IFS=$as_save_IFS
2371 test -z "$as_dir" && as_dir=.
2372 for ac_exec_ext in '' $ac_executable_extensions; do
2373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2374 ac_cv_prog_ac_ct_CC="gcc"
2375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2376 break 2
2378 done
2379 done
2380 IFS=$as_save_IFS
2384 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2385 if test -n "$ac_ct_CC"; then
2386 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2387 echo "${ECHO_T}$ac_ct_CC" >&6; }
2388 else
2389 { echo "$as_me:$LINENO: result: no" >&5
2390 echo "${ECHO_T}no" >&6; }
2393 if test "x$ac_ct_CC" = x; then
2394 CC=""
2395 else
2396 case $cross_compiling:$ac_tool_warned in
2397 yes:)
2398 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2399 whose name does not start with the host triplet. If you think this
2400 configuration is useful to you, please write to autoconf@gnu.org." >&5
2401 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2402 whose name does not start with the host triplet. If you think this
2403 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2404 ac_tool_warned=yes ;;
2405 esac
2406 CC=$ac_ct_CC
2408 else
2409 CC="$ac_cv_prog_CC"
2412 if test -z "$CC"; then
2413 if test -n "$ac_tool_prefix"; then
2414 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2415 set dummy ${ac_tool_prefix}cc; ac_word=$2
2416 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2418 if test "${ac_cv_prog_CC+set}" = set; then
2419 echo $ECHO_N "(cached) $ECHO_C" >&6
2420 else
2421 if test -n "$CC"; then
2422 ac_cv_prog_CC="$CC" # Let the user override the test.
2423 else
2424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2425 for as_dir in $PATH
2427 IFS=$as_save_IFS
2428 test -z "$as_dir" && as_dir=.
2429 for ac_exec_ext in '' $ac_executable_extensions; do
2430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2431 ac_cv_prog_CC="${ac_tool_prefix}cc"
2432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2433 break 2
2435 done
2436 done
2437 IFS=$as_save_IFS
2441 CC=$ac_cv_prog_CC
2442 if test -n "$CC"; then
2443 { echo "$as_me:$LINENO: result: $CC" >&5
2444 echo "${ECHO_T}$CC" >&6; }
2445 else
2446 { echo "$as_me:$LINENO: result: no" >&5
2447 echo "${ECHO_T}no" >&6; }
2453 if test -z "$CC"; then
2454 # Extract the first word of "cc", so it can be a program name with args.
2455 set dummy cc; ac_word=$2
2456 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2458 if test "${ac_cv_prog_CC+set}" = set; then
2459 echo $ECHO_N "(cached) $ECHO_C" >&6
2460 else
2461 if test -n "$CC"; then
2462 ac_cv_prog_CC="$CC" # Let the user override the test.
2463 else
2464 ac_prog_rejected=no
2465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2466 for as_dir in $PATH
2468 IFS=$as_save_IFS
2469 test -z "$as_dir" && as_dir=.
2470 for ac_exec_ext in '' $ac_executable_extensions; do
2471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2472 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2473 ac_prog_rejected=yes
2474 continue
2476 ac_cv_prog_CC="cc"
2477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2478 break 2
2480 done
2481 done
2482 IFS=$as_save_IFS
2484 if test $ac_prog_rejected = yes; then
2485 # We found a bogon in the path, so make sure we never use it.
2486 set dummy $ac_cv_prog_CC
2487 shift
2488 if test $# != 0; then
2489 # We chose a different compiler from the bogus one.
2490 # However, it has the same basename, so the bogon will be chosen
2491 # first if we set CC to just the basename; use the full file name.
2492 shift
2493 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2498 CC=$ac_cv_prog_CC
2499 if test -n "$CC"; then
2500 { echo "$as_me:$LINENO: result: $CC" >&5
2501 echo "${ECHO_T}$CC" >&6; }
2502 else
2503 { echo "$as_me:$LINENO: result: no" >&5
2504 echo "${ECHO_T}no" >&6; }
2509 if test -z "$CC"; then
2510 if test -n "$ac_tool_prefix"; then
2511 for ac_prog in cl.exe
2513 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2514 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2515 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2517 if test "${ac_cv_prog_CC+set}" = set; then
2518 echo $ECHO_N "(cached) $ECHO_C" >&6
2519 else
2520 if test -n "$CC"; then
2521 ac_cv_prog_CC="$CC" # Let the user override the test.
2522 else
2523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2524 for as_dir in $PATH
2526 IFS=$as_save_IFS
2527 test -z "$as_dir" && as_dir=.
2528 for ac_exec_ext in '' $ac_executable_extensions; do
2529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2530 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2532 break 2
2534 done
2535 done
2536 IFS=$as_save_IFS
2540 CC=$ac_cv_prog_CC
2541 if test -n "$CC"; then
2542 { echo "$as_me:$LINENO: result: $CC" >&5
2543 echo "${ECHO_T}$CC" >&6; }
2544 else
2545 { echo "$as_me:$LINENO: result: no" >&5
2546 echo "${ECHO_T}no" >&6; }
2550 test -n "$CC" && break
2551 done
2553 if test -z "$CC"; then
2554 ac_ct_CC=$CC
2555 for ac_prog in cl.exe
2557 # Extract the first word of "$ac_prog", so it can be a program name with args.
2558 set dummy $ac_prog; ac_word=$2
2559 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2561 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2562 echo $ECHO_N "(cached) $ECHO_C" >&6
2563 else
2564 if test -n "$ac_ct_CC"; then
2565 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2566 else
2567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2568 for as_dir in $PATH
2570 IFS=$as_save_IFS
2571 test -z "$as_dir" && as_dir=.
2572 for ac_exec_ext in '' $ac_executable_extensions; do
2573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2574 ac_cv_prog_ac_ct_CC="$ac_prog"
2575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2576 break 2
2578 done
2579 done
2580 IFS=$as_save_IFS
2584 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2585 if test -n "$ac_ct_CC"; then
2586 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2587 echo "${ECHO_T}$ac_ct_CC" >&6; }
2588 else
2589 { echo "$as_me:$LINENO: result: no" >&5
2590 echo "${ECHO_T}no" >&6; }
2594 test -n "$ac_ct_CC" && break
2595 done
2597 if test "x$ac_ct_CC" = x; then
2598 CC=""
2599 else
2600 case $cross_compiling:$ac_tool_warned in
2601 yes:)
2602 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2603 whose name does not start with the host triplet. If you think this
2604 configuration is useful to you, please write to autoconf@gnu.org." >&5
2605 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2606 whose name does not start with the host triplet. If you think this
2607 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2608 ac_tool_warned=yes ;;
2609 esac
2610 CC=$ac_ct_CC
2617 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2618 See \`config.log' for more details." >&5
2619 echo "$as_me: error: no acceptable C compiler found in \$PATH
2620 See \`config.log' for more details." >&2;}
2621 { (exit 1); exit 1; }; }
2623 # Provide some information about the compiler.
2624 echo "$as_me:$LINENO: checking for C compiler version" >&5
2625 ac_compiler=`set X $ac_compile; echo $2`
2626 { (ac_try="$ac_compiler --version >&5"
2627 case "(($ac_try" in
2628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2629 *) ac_try_echo=$ac_try;;
2630 esac
2631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2632 (eval "$ac_compiler --version >&5") 2>&5
2633 ac_status=$?
2634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635 (exit $ac_status); }
2636 { (ac_try="$ac_compiler -v >&5"
2637 case "(($ac_try" in
2638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2639 *) ac_try_echo=$ac_try;;
2640 esac
2641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2642 (eval "$ac_compiler -v >&5") 2>&5
2643 ac_status=$?
2644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2645 (exit $ac_status); }
2646 { (ac_try="$ac_compiler -V >&5"
2647 case "(($ac_try" in
2648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2649 *) ac_try_echo=$ac_try;;
2650 esac
2651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2652 (eval "$ac_compiler -V >&5") 2>&5
2653 ac_status=$?
2654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655 (exit $ac_status); }
2657 cat >conftest.$ac_ext <<_ACEOF
2658 /* confdefs.h. */
2659 _ACEOF
2660 cat confdefs.h >>conftest.$ac_ext
2661 cat >>conftest.$ac_ext <<_ACEOF
2662 /* end confdefs.h. */
2665 main ()
2669 return 0;
2671 _ACEOF
2672 ac_clean_files_save=$ac_clean_files
2673 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2674 # Try to create an executable without -o first, disregard a.out.
2675 # It will help us diagnose broken compilers, and finding out an intuition
2676 # of exeext.
2677 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2678 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2679 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2681 # List of possible output files, starting from the most likely.
2682 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2683 # only as a last resort. b.out is created by i960 compilers.
2684 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2686 # The IRIX 6 linker writes into existing files which may not be
2687 # executable, retaining their permissions. Remove them first so a
2688 # subsequent execution test works.
2689 ac_rmfiles=
2690 for ac_file in $ac_files
2692 case $ac_file in
2693 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2694 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2695 esac
2696 done
2697 rm -f $ac_rmfiles
2699 if { (ac_try="$ac_link_default"
2700 case "(($ac_try" in
2701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2702 *) ac_try_echo=$ac_try;;
2703 esac
2704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2705 (eval "$ac_link_default") 2>&5
2706 ac_status=$?
2707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708 (exit $ac_status); }; then
2709 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2710 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2711 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2712 # so that the user can short-circuit this test for compilers unknown to
2713 # Autoconf.
2714 for ac_file in $ac_files ''
2716 test -f "$ac_file" || continue
2717 case $ac_file in
2718 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2720 [ab].out )
2721 # We found the default executable, but exeext='' is most
2722 # certainly right.
2723 break;;
2724 *.* )
2725 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2726 then :; else
2727 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2729 # We set ac_cv_exeext here because the later test for it is not
2730 # safe: cross compilers may not add the suffix if given an `-o'
2731 # argument, so we may need to know it at that point already.
2732 # Even if this section looks crufty: it has the advantage of
2733 # actually working.
2734 break;;
2736 break;;
2737 esac
2738 done
2739 test "$ac_cv_exeext" = no && ac_cv_exeext=
2741 else
2742 ac_file=''
2745 { echo "$as_me:$LINENO: result: $ac_file" >&5
2746 echo "${ECHO_T}$ac_file" >&6; }
2747 if test -z "$ac_file"; then
2748 echo "$as_me: failed program was:" >&5
2749 sed 's/^/| /' conftest.$ac_ext >&5
2751 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2752 See \`config.log' for more details." >&5
2753 echo "$as_me: error: C compiler cannot create executables
2754 See \`config.log' for more details." >&2;}
2755 { (exit 77); exit 77; }; }
2758 ac_exeext=$ac_cv_exeext
2760 # Check that the compiler produces executables we can run. If not, either
2761 # the compiler is broken, or we cross compile.
2762 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2763 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2764 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2765 # If not cross compiling, check that we can run a simple program.
2766 if test "$cross_compiling" != yes; then
2767 if { ac_try='./$ac_file'
2768 { (case "(($ac_try" in
2769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2770 *) ac_try_echo=$ac_try;;
2771 esac
2772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2773 (eval "$ac_try") 2>&5
2774 ac_status=$?
2775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776 (exit $ac_status); }; }; then
2777 cross_compiling=no
2778 else
2779 if test "$cross_compiling" = maybe; then
2780 cross_compiling=yes
2781 else
2782 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2783 If you meant to cross compile, use \`--host'.
2784 See \`config.log' for more details." >&5
2785 echo "$as_me: error: cannot run C compiled programs.
2786 If you meant to cross compile, use \`--host'.
2787 See \`config.log' for more details." >&2;}
2788 { (exit 1); exit 1; }; }
2792 { echo "$as_me:$LINENO: result: yes" >&5
2793 echo "${ECHO_T}yes" >&6; }
2795 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2796 ac_clean_files=$ac_clean_files_save
2797 # Check that the compiler produces executables we can run. If not, either
2798 # the compiler is broken, or we cross compile.
2799 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2800 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2801 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2802 echo "${ECHO_T}$cross_compiling" >&6; }
2804 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2805 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2806 if { (ac_try="$ac_link"
2807 case "(($ac_try" in
2808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2809 *) ac_try_echo=$ac_try;;
2810 esac
2811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2812 (eval "$ac_link") 2>&5
2813 ac_status=$?
2814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2815 (exit $ac_status); }; then
2816 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2817 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2818 # work properly (i.e., refer to `conftest.exe'), while it won't with
2819 # `rm'.
2820 for ac_file in conftest.exe conftest conftest.*; do
2821 test -f "$ac_file" || continue
2822 case $ac_file in
2823 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2824 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2825 break;;
2826 * ) break;;
2827 esac
2828 done
2829 else
2830 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2831 See \`config.log' for more details." >&5
2832 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2833 See \`config.log' for more details." >&2;}
2834 { (exit 1); exit 1; }; }
2837 rm -f conftest$ac_cv_exeext
2838 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2839 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2841 rm -f conftest.$ac_ext
2842 EXEEXT=$ac_cv_exeext
2843 ac_exeext=$EXEEXT
2844 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2845 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2846 if test "${ac_cv_objext+set}" = set; then
2847 echo $ECHO_N "(cached) $ECHO_C" >&6
2848 else
2849 cat >conftest.$ac_ext <<_ACEOF
2850 /* confdefs.h. */
2851 _ACEOF
2852 cat confdefs.h >>conftest.$ac_ext
2853 cat >>conftest.$ac_ext <<_ACEOF
2854 /* end confdefs.h. */
2857 main ()
2861 return 0;
2863 _ACEOF
2864 rm -f conftest.o conftest.obj
2865 if { (ac_try="$ac_compile"
2866 case "(($ac_try" in
2867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2868 *) ac_try_echo=$ac_try;;
2869 esac
2870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2871 (eval "$ac_compile") 2>&5
2872 ac_status=$?
2873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2874 (exit $ac_status); }; then
2875 for ac_file in conftest.o conftest.obj conftest.*; do
2876 test -f "$ac_file" || continue;
2877 case $ac_file in
2878 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2879 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2880 break;;
2881 esac
2882 done
2883 else
2884 echo "$as_me: failed program was:" >&5
2885 sed 's/^/| /' conftest.$ac_ext >&5
2887 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2888 See \`config.log' for more details." >&5
2889 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2890 See \`config.log' for more details." >&2;}
2891 { (exit 1); exit 1; }; }
2894 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2896 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2897 echo "${ECHO_T}$ac_cv_objext" >&6; }
2898 OBJEXT=$ac_cv_objext
2899 ac_objext=$OBJEXT
2900 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2901 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2902 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2903 echo $ECHO_N "(cached) $ECHO_C" >&6
2904 else
2905 cat >conftest.$ac_ext <<_ACEOF
2906 /* confdefs.h. */
2907 _ACEOF
2908 cat confdefs.h >>conftest.$ac_ext
2909 cat >>conftest.$ac_ext <<_ACEOF
2910 /* end confdefs.h. */
2913 main ()
2915 #ifndef __GNUC__
2916 choke me
2917 #endif
2920 return 0;
2922 _ACEOF
2923 rm -f conftest.$ac_objext
2924 if { (ac_try="$ac_compile"
2925 case "(($ac_try" in
2926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2927 *) ac_try_echo=$ac_try;;
2928 esac
2929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2930 (eval "$ac_compile") 2>conftest.er1
2931 ac_status=$?
2932 grep -v '^ *+' conftest.er1 >conftest.err
2933 rm -f conftest.er1
2934 cat conftest.err >&5
2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936 (exit $ac_status); } && {
2937 test -z "$ac_c_werror_flag" ||
2938 test ! -s conftest.err
2939 } && test -s conftest.$ac_objext; then
2940 ac_compiler_gnu=yes
2941 else
2942 echo "$as_me: failed program was:" >&5
2943 sed 's/^/| /' conftest.$ac_ext >&5
2945 ac_compiler_gnu=no
2948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2949 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2952 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2953 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2954 GCC=`test $ac_compiler_gnu = yes && echo yes`
2955 ac_test_CFLAGS=${CFLAGS+set}
2956 ac_save_CFLAGS=$CFLAGS
2957 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2958 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2959 if test "${ac_cv_prog_cc_g+set}" = set; then
2960 echo $ECHO_N "(cached) $ECHO_C" >&6
2961 else
2962 ac_save_c_werror_flag=$ac_c_werror_flag
2963 ac_c_werror_flag=yes
2964 ac_cv_prog_cc_g=no
2965 CFLAGS="-g"
2966 cat >conftest.$ac_ext <<_ACEOF
2967 /* confdefs.h. */
2968 _ACEOF
2969 cat confdefs.h >>conftest.$ac_ext
2970 cat >>conftest.$ac_ext <<_ACEOF
2971 /* end confdefs.h. */
2974 main ()
2978 return 0;
2980 _ACEOF
2981 rm -f conftest.$ac_objext
2982 if { (ac_try="$ac_compile"
2983 case "(($ac_try" in
2984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2985 *) ac_try_echo=$ac_try;;
2986 esac
2987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2988 (eval "$ac_compile") 2>conftest.er1
2989 ac_status=$?
2990 grep -v '^ *+' conftest.er1 >conftest.err
2991 rm -f conftest.er1
2992 cat conftest.err >&5
2993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994 (exit $ac_status); } && {
2995 test -z "$ac_c_werror_flag" ||
2996 test ! -s conftest.err
2997 } && test -s conftest.$ac_objext; then
2998 ac_cv_prog_cc_g=yes
2999 else
3000 echo "$as_me: failed program was:" >&5
3001 sed 's/^/| /' conftest.$ac_ext >&5
3003 CFLAGS=""
3004 cat >conftest.$ac_ext <<_ACEOF
3005 /* confdefs.h. */
3006 _ACEOF
3007 cat confdefs.h >>conftest.$ac_ext
3008 cat >>conftest.$ac_ext <<_ACEOF
3009 /* end confdefs.h. */
3012 main ()
3016 return 0;
3018 _ACEOF
3019 rm -f conftest.$ac_objext
3020 if { (ac_try="$ac_compile"
3021 case "(($ac_try" in
3022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3023 *) ac_try_echo=$ac_try;;
3024 esac
3025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3026 (eval "$ac_compile") 2>conftest.er1
3027 ac_status=$?
3028 grep -v '^ *+' conftest.er1 >conftest.err
3029 rm -f conftest.er1
3030 cat conftest.err >&5
3031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032 (exit $ac_status); } && {
3033 test -z "$ac_c_werror_flag" ||
3034 test ! -s conftest.err
3035 } && test -s conftest.$ac_objext; then
3037 else
3038 echo "$as_me: failed program was:" >&5
3039 sed 's/^/| /' conftest.$ac_ext >&5
3041 ac_c_werror_flag=$ac_save_c_werror_flag
3042 CFLAGS="-g"
3043 cat >conftest.$ac_ext <<_ACEOF
3044 /* confdefs.h. */
3045 _ACEOF
3046 cat confdefs.h >>conftest.$ac_ext
3047 cat >>conftest.$ac_ext <<_ACEOF
3048 /* end confdefs.h. */
3051 main ()
3055 return 0;
3057 _ACEOF
3058 rm -f conftest.$ac_objext
3059 if { (ac_try="$ac_compile"
3060 case "(($ac_try" in
3061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3062 *) ac_try_echo=$ac_try;;
3063 esac
3064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3065 (eval "$ac_compile") 2>conftest.er1
3066 ac_status=$?
3067 grep -v '^ *+' conftest.er1 >conftest.err
3068 rm -f conftest.er1
3069 cat conftest.err >&5
3070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071 (exit $ac_status); } && {
3072 test -z "$ac_c_werror_flag" ||
3073 test ! -s conftest.err
3074 } && test -s conftest.$ac_objext; then
3075 ac_cv_prog_cc_g=yes
3076 else
3077 echo "$as_me: failed program was:" >&5
3078 sed 's/^/| /' conftest.$ac_ext >&5
3083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3090 ac_c_werror_flag=$ac_save_c_werror_flag
3092 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3093 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3094 if test "$ac_test_CFLAGS" = set; then
3095 CFLAGS=$ac_save_CFLAGS
3096 elif test $ac_cv_prog_cc_g = yes; then
3097 if test "$GCC" = yes; then
3098 CFLAGS="-g -O2"
3099 else
3100 CFLAGS="-g"
3102 else
3103 if test "$GCC" = yes; then
3104 CFLAGS="-O2"
3105 else
3106 CFLAGS=
3109 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3110 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3111 if test "${ac_cv_prog_cc_c89+set}" = set; then
3112 echo $ECHO_N "(cached) $ECHO_C" >&6
3113 else
3114 ac_cv_prog_cc_c89=no
3115 ac_save_CC=$CC
3116 cat >conftest.$ac_ext <<_ACEOF
3117 /* confdefs.h. */
3118 _ACEOF
3119 cat confdefs.h >>conftest.$ac_ext
3120 cat >>conftest.$ac_ext <<_ACEOF
3121 /* end confdefs.h. */
3122 #include <stdarg.h>
3123 #include <stdio.h>
3124 #include <sys/types.h>
3125 #include <sys/stat.h>
3126 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3127 struct buf { int x; };
3128 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3129 static char *e (p, i)
3130 char **p;
3131 int i;
3133 return p[i];
3135 static char *f (char * (*g) (char **, int), char **p, ...)
3137 char *s;
3138 va_list v;
3139 va_start (v,p);
3140 s = g (p, va_arg (v,int));
3141 va_end (v);
3142 return s;
3145 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3146 function prototypes and stuff, but not '\xHH' hex character constants.
3147 These don't provoke an error unfortunately, instead are silently treated
3148 as 'x'. The following induces an error, until -std is added to get
3149 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3150 array size at least. It's necessary to write '\x00'==0 to get something
3151 that's true only with -std. */
3152 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3154 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3155 inside strings and character constants. */
3156 #define FOO(x) 'x'
3157 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3159 int test (int i, double x);
3160 struct s1 {int (*f) (int a);};
3161 struct s2 {int (*f) (double a);};
3162 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3163 int argc;
3164 char **argv;
3166 main ()
3168 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3170 return 0;
3172 _ACEOF
3173 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3174 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3176 CC="$ac_save_CC $ac_arg"
3177 rm -f conftest.$ac_objext
3178 if { (ac_try="$ac_compile"
3179 case "(($ac_try" in
3180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3181 *) ac_try_echo=$ac_try;;
3182 esac
3183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3184 (eval "$ac_compile") 2>conftest.er1
3185 ac_status=$?
3186 grep -v '^ *+' conftest.er1 >conftest.err
3187 rm -f conftest.er1
3188 cat conftest.err >&5
3189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190 (exit $ac_status); } && {
3191 test -z "$ac_c_werror_flag" ||
3192 test ! -s conftest.err
3193 } && test -s conftest.$ac_objext; then
3194 ac_cv_prog_cc_c89=$ac_arg
3195 else
3196 echo "$as_me: failed program was:" >&5
3197 sed 's/^/| /' conftest.$ac_ext >&5
3202 rm -f core conftest.err conftest.$ac_objext
3203 test "x$ac_cv_prog_cc_c89" != "xno" && break
3204 done
3205 rm -f conftest.$ac_ext
3206 CC=$ac_save_CC
3209 # AC_CACHE_VAL
3210 case "x$ac_cv_prog_cc_c89" in
3212 { echo "$as_me:$LINENO: result: none needed" >&5
3213 echo "${ECHO_T}none needed" >&6; } ;;
3214 xno)
3215 { echo "$as_me:$LINENO: result: unsupported" >&5
3216 echo "${ECHO_T}unsupported" >&6; } ;;
3218 CC="$CC $ac_cv_prog_cc_c89"
3219 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3220 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3221 esac
3224 ac_ext=c
3225 ac_cpp='$CPP $CPPFLAGS'
3226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3233 { echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5
3234 echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6; }
3236 # Check whether --with-cxx_main was given.
3237 if test "${with_cxx_main+set}" = set; then
3238 withval=$with_cxx_main;
3240 case $withval in
3241 no) with_cxx_main=no
3242 MAINCC='$(CC)';;
3243 yes) with_cxx_main=yes
3244 MAINCC='$(CXX)';;
3245 *) with_cxx_main=yes
3246 MAINCC=$withval
3247 if test -z "$CXX"
3248 then
3249 CXX=$withval
3250 fi;;
3251 esac
3252 else
3254 with_cxx_main=no
3255 MAINCC='$(CC)'
3259 { echo "$as_me:$LINENO: result: $with_cxx_main" >&5
3260 echo "${ECHO_T}$with_cxx_main" >&6; }
3262 preset_cxx="$CXX"
3263 if test -z "$CXX"
3264 then
3265 case "$CC" in
3266 gcc) # Extract the first word of "g++", so it can be a program name with args.
3267 set dummy g++; ac_word=$2
3268 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3270 if test "${ac_cv_path_CXX+set}" = set; then
3271 echo $ECHO_N "(cached) $ECHO_C" >&6
3272 else
3273 case $CXX in
3274 [\\/]* | ?:[\\/]*)
3275 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3279 for as_dir in notfound
3281 IFS=$as_save_IFS
3282 test -z "$as_dir" && as_dir=.
3283 for ac_exec_ext in '' $ac_executable_extensions; do
3284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3285 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3287 break 2
3289 done
3290 done
3291 IFS=$as_save_IFS
3293 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="g++"
3295 esac
3297 CXX=$ac_cv_path_CXX
3298 if test -n "$CXX"; then
3299 { echo "$as_me:$LINENO: result: $CXX" >&5
3300 echo "${ECHO_T}$CXX" >&6; }
3301 else
3302 { echo "$as_me:$LINENO: result: no" >&5
3303 echo "${ECHO_T}no" >&6; }
3307 cc) # Extract the first word of "c++", so it can be a program name with args.
3308 set dummy c++; ac_word=$2
3309 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3311 if test "${ac_cv_path_CXX+set}" = set; then
3312 echo $ECHO_N "(cached) $ECHO_C" >&6
3313 else
3314 case $CXX in
3315 [\\/]* | ?:[\\/]*)
3316 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3320 for as_dir in notfound
3322 IFS=$as_save_IFS
3323 test -z "$as_dir" && as_dir=.
3324 for ac_exec_ext in '' $ac_executable_extensions; do
3325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3326 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3328 break 2
3330 done
3331 done
3332 IFS=$as_save_IFS
3334 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="c++"
3336 esac
3338 CXX=$ac_cv_path_CXX
3339 if test -n "$CXX"; then
3340 { echo "$as_me:$LINENO: result: $CXX" >&5
3341 echo "${ECHO_T}$CXX" >&6; }
3342 else
3343 { echo "$as_me:$LINENO: result: no" >&5
3344 echo "${ECHO_T}no" >&6; }
3348 esac
3349 if test "$CXX" = "notfound"
3350 then
3351 CXX=""
3354 if test -z "$CXX"
3355 then
3356 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
3358 # Extract the first word of "$ac_prog", so it can be a program name with args.
3359 set dummy $ac_prog; ac_word=$2
3360 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3362 if test "${ac_cv_prog_CXX+set}" = set; then
3363 echo $ECHO_N "(cached) $ECHO_C" >&6
3364 else
3365 if test -n "$CXX"; then
3366 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3367 else
3368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3369 for as_dir in $PATH
3371 IFS=$as_save_IFS
3372 test -z "$as_dir" && as_dir=.
3373 for ac_exec_ext in '' $ac_executable_extensions; do
3374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3375 ac_cv_prog_CXX="$ac_prog"
3376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3377 break 2
3379 done
3380 done
3381 IFS=$as_save_IFS
3385 CXX=$ac_cv_prog_CXX
3386 if test -n "$CXX"; then
3387 { echo "$as_me:$LINENO: result: $CXX" >&5
3388 echo "${ECHO_T}$CXX" >&6; }
3389 else
3390 { echo "$as_me:$LINENO: result: no" >&5
3391 echo "${ECHO_T}no" >&6; }
3395 test -n "$CXX" && break
3396 done
3397 test -n "$CXX" || CXX="notfound"
3399 if test "$CXX" = "notfound"
3400 then
3401 CXX=""
3404 if test "$preset_cxx" != "$CXX"
3405 then
3406 { echo "$as_me:$LINENO: WARNING:
3408 By default, distutils will build C++ extension modules with \"$CXX\".
3409 If this is not intended, then set CXX on the configure command line.
3410 " >&5
3411 echo "$as_me: WARNING:
3413 By default, distutils will build C++ extension modules with \"$CXX\".
3414 If this is not intended, then set CXX on the configure command line.
3415 " >&2;}
3419 # checks for UNIX variants that set C preprocessor variables
3421 ac_ext=c
3422 ac_cpp='$CPP $CPPFLAGS'
3423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3426 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3427 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3428 # On Suns, sometimes $CPP names a directory.
3429 if test -n "$CPP" && test -d "$CPP"; then
3430 CPP=
3432 if test -z "$CPP"; then
3433 if test "${ac_cv_prog_CPP+set}" = set; then
3434 echo $ECHO_N "(cached) $ECHO_C" >&6
3435 else
3436 # Double quotes because CPP needs to be expanded
3437 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3439 ac_preproc_ok=false
3440 for ac_c_preproc_warn_flag in '' yes
3442 # Use a header file that comes with gcc, so configuring glibc
3443 # with a fresh cross-compiler works.
3444 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3445 # <limits.h> exists even on freestanding compilers.
3446 # On the NeXT, cc -E runs the code through the compiler's parser,
3447 # not just through cpp. "Syntax error" is here to catch this case.
3448 cat >conftest.$ac_ext <<_ACEOF
3449 /* confdefs.h. */
3450 _ACEOF
3451 cat confdefs.h >>conftest.$ac_ext
3452 cat >>conftest.$ac_ext <<_ACEOF
3453 /* end confdefs.h. */
3454 #ifdef __STDC__
3455 # include <limits.h>
3456 #else
3457 # include <assert.h>
3458 #endif
3459 Syntax error
3460 _ACEOF
3461 if { (ac_try="$ac_cpp conftest.$ac_ext"
3462 case "(($ac_try" in
3463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3464 *) ac_try_echo=$ac_try;;
3465 esac
3466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3467 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3468 ac_status=$?
3469 grep -v '^ *+' conftest.er1 >conftest.err
3470 rm -f conftest.er1
3471 cat conftest.err >&5
3472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473 (exit $ac_status); } >/dev/null && {
3474 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3475 test ! -s conftest.err
3476 }; then
3478 else
3479 echo "$as_me: failed program was:" >&5
3480 sed 's/^/| /' conftest.$ac_ext >&5
3482 # Broken: fails on valid input.
3483 continue
3486 rm -f conftest.err conftest.$ac_ext
3488 # OK, works on sane cases. Now check whether nonexistent headers
3489 # can be detected and how.
3490 cat >conftest.$ac_ext <<_ACEOF
3491 /* confdefs.h. */
3492 _ACEOF
3493 cat confdefs.h >>conftest.$ac_ext
3494 cat >>conftest.$ac_ext <<_ACEOF
3495 /* end confdefs.h. */
3496 #include <ac_nonexistent.h>
3497 _ACEOF
3498 if { (ac_try="$ac_cpp conftest.$ac_ext"
3499 case "(($ac_try" in
3500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3501 *) ac_try_echo=$ac_try;;
3502 esac
3503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3504 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3505 ac_status=$?
3506 grep -v '^ *+' conftest.er1 >conftest.err
3507 rm -f conftest.er1
3508 cat conftest.err >&5
3509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510 (exit $ac_status); } >/dev/null && {
3511 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3512 test ! -s conftest.err
3513 }; then
3514 # Broken: success on invalid input.
3515 continue
3516 else
3517 echo "$as_me: failed program was:" >&5
3518 sed 's/^/| /' conftest.$ac_ext >&5
3520 # Passes both tests.
3521 ac_preproc_ok=:
3522 break
3525 rm -f conftest.err conftest.$ac_ext
3527 done
3528 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3529 rm -f conftest.err conftest.$ac_ext
3530 if $ac_preproc_ok; then
3531 break
3534 done
3535 ac_cv_prog_CPP=$CPP
3538 CPP=$ac_cv_prog_CPP
3539 else
3540 ac_cv_prog_CPP=$CPP
3542 { echo "$as_me:$LINENO: result: $CPP" >&5
3543 echo "${ECHO_T}$CPP" >&6; }
3544 ac_preproc_ok=false
3545 for ac_c_preproc_warn_flag in '' yes
3547 # Use a header file that comes with gcc, so configuring glibc
3548 # with a fresh cross-compiler works.
3549 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3550 # <limits.h> exists even on freestanding compilers.
3551 # On the NeXT, cc -E runs the code through the compiler's parser,
3552 # not just through cpp. "Syntax error" is here to catch this case.
3553 cat >conftest.$ac_ext <<_ACEOF
3554 /* confdefs.h. */
3555 _ACEOF
3556 cat confdefs.h >>conftest.$ac_ext
3557 cat >>conftest.$ac_ext <<_ACEOF
3558 /* end confdefs.h. */
3559 #ifdef __STDC__
3560 # include <limits.h>
3561 #else
3562 # include <assert.h>
3563 #endif
3564 Syntax error
3565 _ACEOF
3566 if { (ac_try="$ac_cpp conftest.$ac_ext"
3567 case "(($ac_try" in
3568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3569 *) ac_try_echo=$ac_try;;
3570 esac
3571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3572 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3573 ac_status=$?
3574 grep -v '^ *+' conftest.er1 >conftest.err
3575 rm -f conftest.er1
3576 cat conftest.err >&5
3577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578 (exit $ac_status); } >/dev/null && {
3579 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3580 test ! -s conftest.err
3581 }; then
3583 else
3584 echo "$as_me: failed program was:" >&5
3585 sed 's/^/| /' conftest.$ac_ext >&5
3587 # Broken: fails on valid input.
3588 continue
3591 rm -f conftest.err conftest.$ac_ext
3593 # OK, works on sane cases. Now check whether nonexistent headers
3594 # can be detected and how.
3595 cat >conftest.$ac_ext <<_ACEOF
3596 /* confdefs.h. */
3597 _ACEOF
3598 cat confdefs.h >>conftest.$ac_ext
3599 cat >>conftest.$ac_ext <<_ACEOF
3600 /* end confdefs.h. */
3601 #include <ac_nonexistent.h>
3602 _ACEOF
3603 if { (ac_try="$ac_cpp conftest.$ac_ext"
3604 case "(($ac_try" in
3605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3606 *) ac_try_echo=$ac_try;;
3607 esac
3608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3609 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3610 ac_status=$?
3611 grep -v '^ *+' conftest.er1 >conftest.err
3612 rm -f conftest.er1
3613 cat conftest.err >&5
3614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615 (exit $ac_status); } >/dev/null && {
3616 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3617 test ! -s conftest.err
3618 }; then
3619 # Broken: success on invalid input.
3620 continue
3621 else
3622 echo "$as_me: failed program was:" >&5
3623 sed 's/^/| /' conftest.$ac_ext >&5
3625 # Passes both tests.
3626 ac_preproc_ok=:
3627 break
3630 rm -f conftest.err conftest.$ac_ext
3632 done
3633 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3634 rm -f conftest.err conftest.$ac_ext
3635 if $ac_preproc_ok; then
3637 else
3638 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3639 See \`config.log' for more details." >&5
3640 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3641 See \`config.log' for more details." >&2;}
3642 { (exit 1); exit 1; }; }
3645 ac_ext=c
3646 ac_cpp='$CPP $CPPFLAGS'
3647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3652 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3653 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3654 if test "${ac_cv_path_GREP+set}" = set; then
3655 echo $ECHO_N "(cached) $ECHO_C" >&6
3656 else
3657 # Extract the first word of "grep ggrep" to use in msg output
3658 if test -z "$GREP"; then
3659 set dummy grep ggrep; ac_prog_name=$2
3660 if test "${ac_cv_path_GREP+set}" = set; then
3661 echo $ECHO_N "(cached) $ECHO_C" >&6
3662 else
3663 ac_path_GREP_found=false
3664 # Loop through the user's path and test for each of PROGNAME-LIST
3665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3666 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3668 IFS=$as_save_IFS
3669 test -z "$as_dir" && as_dir=.
3670 for ac_prog in grep ggrep; do
3671 for ac_exec_ext in '' $ac_executable_extensions; do
3672 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3673 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3674 # Check for GNU ac_path_GREP and select it if it is found.
3675 # Check for GNU $ac_path_GREP
3676 case `"$ac_path_GREP" --version 2>&1` in
3677 *GNU*)
3678 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3680 ac_count=0
3681 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3682 while :
3684 cat "conftest.in" "conftest.in" >"conftest.tmp"
3685 mv "conftest.tmp" "conftest.in"
3686 cp "conftest.in" "conftest.nl"
3687 echo 'GREP' >> "conftest.nl"
3688 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3689 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3690 ac_count=`expr $ac_count + 1`
3691 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3692 # Best one so far, save it but keep looking for a better one
3693 ac_cv_path_GREP="$ac_path_GREP"
3694 ac_path_GREP_max=$ac_count
3696 # 10*(2^10) chars as input seems more than enough
3697 test $ac_count -gt 10 && break
3698 done
3699 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3700 esac
3703 $ac_path_GREP_found && break 3
3704 done
3705 done
3707 done
3708 IFS=$as_save_IFS
3713 GREP="$ac_cv_path_GREP"
3714 if test -z "$GREP"; then
3715 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3716 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3717 { (exit 1); exit 1; }; }
3720 else
3721 ac_cv_path_GREP=$GREP
3726 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3727 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3728 GREP="$ac_cv_path_GREP"
3731 { echo "$as_me:$LINENO: checking for egrep" >&5
3732 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3733 if test "${ac_cv_path_EGREP+set}" = set; then
3734 echo $ECHO_N "(cached) $ECHO_C" >&6
3735 else
3736 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3737 then ac_cv_path_EGREP="$GREP -E"
3738 else
3739 # Extract the first word of "egrep" to use in msg output
3740 if test -z "$EGREP"; then
3741 set dummy egrep; ac_prog_name=$2
3742 if test "${ac_cv_path_EGREP+set}" = set; then
3743 echo $ECHO_N "(cached) $ECHO_C" >&6
3744 else
3745 ac_path_EGREP_found=false
3746 # Loop through the user's path and test for each of PROGNAME-LIST
3747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3748 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3750 IFS=$as_save_IFS
3751 test -z "$as_dir" && as_dir=.
3752 for ac_prog in egrep; do
3753 for ac_exec_ext in '' $ac_executable_extensions; do
3754 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3755 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3756 # Check for GNU ac_path_EGREP and select it if it is found.
3757 # Check for GNU $ac_path_EGREP
3758 case `"$ac_path_EGREP" --version 2>&1` in
3759 *GNU*)
3760 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3762 ac_count=0
3763 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3764 while :
3766 cat "conftest.in" "conftest.in" >"conftest.tmp"
3767 mv "conftest.tmp" "conftest.in"
3768 cp "conftest.in" "conftest.nl"
3769 echo 'EGREP' >> "conftest.nl"
3770 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3771 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3772 ac_count=`expr $ac_count + 1`
3773 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3774 # Best one so far, save it but keep looking for a better one
3775 ac_cv_path_EGREP="$ac_path_EGREP"
3776 ac_path_EGREP_max=$ac_count
3778 # 10*(2^10) chars as input seems more than enough
3779 test $ac_count -gt 10 && break
3780 done
3781 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3782 esac
3785 $ac_path_EGREP_found && break 3
3786 done
3787 done
3789 done
3790 IFS=$as_save_IFS
3795 EGREP="$ac_cv_path_EGREP"
3796 if test -z "$EGREP"; then
3797 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3798 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3799 { (exit 1); exit 1; }; }
3802 else
3803 ac_cv_path_EGREP=$EGREP
3809 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3810 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3811 EGREP="$ac_cv_path_EGREP"
3815 { echo "$as_me:$LINENO: checking for AIX" >&5
3816 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3817 cat >conftest.$ac_ext <<_ACEOF
3818 /* confdefs.h. */
3819 _ACEOF
3820 cat confdefs.h >>conftest.$ac_ext
3821 cat >>conftest.$ac_ext <<_ACEOF
3822 /* end confdefs.h. */
3823 #ifdef _AIX
3825 #endif
3827 _ACEOF
3828 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3829 $EGREP "yes" >/dev/null 2>&1; then
3830 { echo "$as_me:$LINENO: result: yes" >&5
3831 echo "${ECHO_T}yes" >&6; }
3832 cat >>confdefs.h <<\_ACEOF
3833 #define _ALL_SOURCE 1
3834 _ACEOF
3836 else
3837 { echo "$as_me:$LINENO: result: no" >&5
3838 echo "${ECHO_T}no" >&6; }
3840 rm -f -r conftest*
3844 # Check for unsupported systems
3845 case $ac_sys_system/$ac_sys_release in
3846 atheos*|Linux*/1*)
3847 echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported.
3848 echo See README for details.
3849 exit 1;;
3850 esac
3853 { echo "$as_me:$LINENO: checking for --with-suffix" >&5
3854 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6; }
3856 # Check whether --with-suffix was given.
3857 if test "${with_suffix+set}" = set; then
3858 withval=$with_suffix;
3859 case $withval in
3860 no) EXEEXT=;;
3861 yes) EXEEXT=.exe;;
3862 *) EXEEXT=$withval;;
3863 esac
3866 { echo "$as_me:$LINENO: result: $EXEEXT" >&5
3867 echo "${ECHO_T}$EXEEXT" >&6; }
3869 # Test whether we're running on a non-case-sensitive system, in which
3870 # case we give a warning if no ext is given
3872 { echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3873 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6; }
3874 if test ! -d CaseSensitiveTestDir; then
3875 mkdir CaseSensitiveTestDir
3878 if test -d casesensitivetestdir
3879 then
3880 { echo "$as_me:$LINENO: result: yes" >&5
3881 echo "${ECHO_T}yes" >&6; }
3882 BUILDEXEEXT=.exe
3883 else
3884 { echo "$as_me:$LINENO: result: no" >&5
3885 echo "${ECHO_T}no" >&6; }
3886 BUILDEXEEXT=$EXEEXT
3888 rmdir CaseSensitiveTestDir
3890 case $MACHDEP in
3891 bsdos*)
3892 case $CC in
3893 gcc) CC="$CC -D_HAVE_BSDI";;
3894 esac;;
3895 esac
3897 case $ac_sys_system in
3898 hp*|HP*)
3899 case $CC in
3900 cc|*/cc) CC="$CC -Ae";;
3901 esac;;
3902 SunOS*)
3903 # Some functions have a prototype only with that define, e.g. confstr
3905 cat >>confdefs.h <<\_ACEOF
3906 #define __EXTENSIONS__ 1
3907 _ACEOF
3910 esac
3914 { echo "$as_me:$LINENO: checking LIBRARY" >&5
3915 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6; }
3916 if test -z "$LIBRARY"
3917 then
3918 LIBRARY='libpython$(VERSION).a'
3920 { echo "$as_me:$LINENO: result: $LIBRARY" >&5
3921 echo "${ECHO_T}$LIBRARY" >&6; }
3923 # LDLIBRARY is the name of the library to link against (as opposed to the
3924 # name of the library into which to insert object files). BLDLIBRARY is also
3925 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3926 # is blank as the main program is not linked directly against LDLIBRARY.
3927 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3928 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3929 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3930 # DLLLIBRARY is the shared (i.e., DLL) library.
3932 # RUNSHARED is used to run shared python without installed libraries
3934 # INSTSONAME is the name of the shared library that will be use to install
3935 # on the system - some systems like version suffix, others don't
3942 LDLIBRARY="$LIBRARY"
3943 BLDLIBRARY='$(LDLIBRARY)'
3944 INSTSONAME='$(LDLIBRARY)'
3945 DLLLIBRARY=''
3946 LDLIBRARYDIR=''
3947 RUNSHARED=''
3949 # LINKCC is the command that links the python executable -- default is $(CC).
3950 # If CXX is set, and if it is needed to link a main function that was
3951 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3952 # python might then depend on the C++ runtime
3953 # This is altered for AIX in order to build the export list before
3954 # linking.
3956 { echo "$as_me:$LINENO: checking LINKCC" >&5
3957 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6; }
3958 if test -z "$LINKCC"
3959 then
3960 LINKCC='$(PURIFY) $(MAINCC)'
3961 case $ac_sys_system in
3962 AIX*)
3963 exp_extra="\"\""
3964 if test $ac_sys_release -ge 5 -o \
3965 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3966 exp_extra="."
3968 LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3969 QNX*)
3970 # qcc must be used because the other compilers do not
3971 # support -N.
3972 LINKCC=qcc;;
3973 esac
3975 { echo "$as_me:$LINENO: result: $LINKCC" >&5
3976 echo "${ECHO_T}$LINKCC" >&6; }
3978 # GNULD is set to "yes" if the GNU linker is used. If this goes wrong
3979 # make sure we default having it set to "no": this is used by
3980 # distutils.unixccompiler to know if it should add --enable-new-dtags
3981 # to linker command lines, and failing to detect GNU ld simply results
3982 # in the same bahaviour as before.
3984 { echo "$as_me:$LINENO: checking for GNU ld" >&5
3985 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3986 ac_prog=ld
3987 if test "$GCC" = yes; then
3988 ac_prog=`$CC -print-prog-name=ld`
3990 case `"$ac_prog" -V 2>&1 < /dev/null` in
3991 *GNU*)
3992 GNULD=yes;;
3994 GNULD=no;;
3995 esac
3996 { echo "$as_me:$LINENO: result: $GNULD" >&5
3997 echo "${ECHO_T}$GNULD" >&6; }
3999 { echo "$as_me:$LINENO: checking for --enable-shared" >&5
4000 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6; }
4001 # Check whether --enable-shared was given.
4002 if test "${enable_shared+set}" = set; then
4003 enableval=$enable_shared;
4007 if test -z "$enable_shared"
4008 then
4009 case $ac_sys_system in
4010 CYGWIN* | atheos*)
4011 enable_shared="yes";;
4013 enable_shared="no";;
4014 esac
4016 { echo "$as_me:$LINENO: result: $enable_shared" >&5
4017 echo "${ECHO_T}$enable_shared" >&6; }
4019 { echo "$as_me:$LINENO: checking for --enable-profiling" >&5
4020 echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6; }
4021 # Check whether --enable-profiling was given.
4022 if test "${enable_profiling+set}" = set; then
4023 enableval=$enable_profiling; ac_save_cc="$CC"
4024 CC="$CC -pg"
4025 if test "$cross_compiling" = yes; then
4026 ac_enable_profiling="no"
4027 else
4028 cat >conftest.$ac_ext <<_ACEOF
4029 /* confdefs.h. */
4030 _ACEOF
4031 cat confdefs.h >>conftest.$ac_ext
4032 cat >>conftest.$ac_ext <<_ACEOF
4033 /* end confdefs.h. */
4034 int main() { return 0; }
4035 _ACEOF
4036 rm -f conftest$ac_exeext
4037 if { (ac_try="$ac_link"
4038 case "(($ac_try" in
4039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4040 *) ac_try_echo=$ac_try;;
4041 esac
4042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4043 (eval "$ac_link") 2>&5
4044 ac_status=$?
4045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4047 { (case "(($ac_try" in
4048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4049 *) ac_try_echo=$ac_try;;
4050 esac
4051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4052 (eval "$ac_try") 2>&5
4053 ac_status=$?
4054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4055 (exit $ac_status); }; }; then
4056 ac_enable_profiling="yes"
4057 else
4058 echo "$as_me: program exited with status $ac_status" >&5
4059 echo "$as_me: failed program was:" >&5
4060 sed 's/^/| /' conftest.$ac_ext >&5
4062 ( exit $ac_status )
4063 ac_enable_profiling="no"
4065 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4069 CC="$ac_save_cc"
4072 { echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
4073 echo "${ECHO_T}$ac_enable_profiling" >&6; }
4075 case "$ac_enable_profiling" in
4076 "yes")
4077 BASECFLAGS="-pg $BASECFLAGS"
4078 LDFLAGS="-pg $LDFLAGS"
4080 esac
4082 { echo "$as_me:$LINENO: checking LDLIBRARY" >&5
4083 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6; }
4085 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
4086 # library that we build, but we do not want to link against it (we
4087 # will find it with a -framework option). For this reason there is an
4088 # extra variable BLDLIBRARY against which Python and the extension
4089 # modules are linked, BLDLIBRARY. This is normally the same as
4090 # LDLIBRARY, but empty for MacOSX framework builds.
4091 if test "$enable_framework"
4092 then
4093 LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
4094 RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH"
4095 BLDLIBRARY=''
4096 else
4097 BLDLIBRARY='$(LDLIBRARY)'
4100 # Other platforms follow
4101 if test $enable_shared = "yes"; then
4103 cat >>confdefs.h <<\_ACEOF
4104 #define Py_ENABLE_SHARED 1
4105 _ACEOF
4107 case $ac_sys_system in
4108 CYGWIN*)
4109 LDLIBRARY='libpython$(VERSION).dll.a'
4110 DLLLIBRARY='libpython$(VERSION).dll'
4112 SunOS*)
4113 LDLIBRARY='libpython$(VERSION).so'
4114 BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
4115 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4116 INSTSONAME="$LDLIBRARY".$SOVERSION
4118 Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*)
4119 LDLIBRARY='libpython$(VERSION).so'
4120 BLDLIBRARY='-L. -lpython$(VERSION)'
4121 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4122 case $ac_sys_system in
4123 FreeBSD*)
4124 SOVERSION=`echo $SOVERSION|cut -d "." -f 1`
4126 esac
4127 INSTSONAME="$LDLIBRARY".$SOVERSION
4129 hp*|HP*)
4130 case `uname -m` in
4131 ia64)
4132 LDLIBRARY='libpython$(VERSION).so'
4135 LDLIBRARY='libpython$(VERSION).sl'
4137 esac
4138 BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
4139 RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH}
4141 OSF*)
4142 LDLIBRARY='libpython$(VERSION).so'
4143 BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
4144 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4146 atheos*)
4147 LDLIBRARY='libpython$(VERSION).so'
4148 BLDLIBRARY='-L. -lpython$(VERSION)'
4149 RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
4151 Darwin*)
4152 LDLIBRARY='libpython$(VERSION).dylib'
4153 BLDLIBRARY='-L. -lpython$(VERSION)'
4154 RUNSHARED='DYLD_LIBRARY_PATH=`pwd`:${DYLD_LIBRARY_PATH}'
4157 esac
4158 else # shared is disabled
4159 case $ac_sys_system in
4160 CYGWIN*)
4161 BLDLIBRARY='$(LIBRARY)'
4162 LDLIBRARY='libpython$(VERSION).dll.a'
4164 esac
4167 { echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
4168 echo "${ECHO_T}$LDLIBRARY" >&6; }
4170 if test -n "$ac_tool_prefix"; then
4171 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4172 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4173 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4175 if test "${ac_cv_prog_RANLIB+set}" = set; then
4176 echo $ECHO_N "(cached) $ECHO_C" >&6
4177 else
4178 if test -n "$RANLIB"; then
4179 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4180 else
4181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4182 for as_dir in $PATH
4184 IFS=$as_save_IFS
4185 test -z "$as_dir" && as_dir=.
4186 for ac_exec_ext in '' $ac_executable_extensions; do
4187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4188 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4190 break 2
4192 done
4193 done
4194 IFS=$as_save_IFS
4198 RANLIB=$ac_cv_prog_RANLIB
4199 if test -n "$RANLIB"; then
4200 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4201 echo "${ECHO_T}$RANLIB" >&6; }
4202 else
4203 { echo "$as_me:$LINENO: result: no" >&5
4204 echo "${ECHO_T}no" >&6; }
4209 if test -z "$ac_cv_prog_RANLIB"; then
4210 ac_ct_RANLIB=$RANLIB
4211 # Extract the first word of "ranlib", so it can be a program name with args.
4212 set dummy ranlib; ac_word=$2
4213 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4215 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4216 echo $ECHO_N "(cached) $ECHO_C" >&6
4217 else
4218 if test -n "$ac_ct_RANLIB"; then
4219 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4220 else
4221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4222 for as_dir in $PATH
4224 IFS=$as_save_IFS
4225 test -z "$as_dir" && as_dir=.
4226 for ac_exec_ext in '' $ac_executable_extensions; do
4227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4228 ac_cv_prog_ac_ct_RANLIB="ranlib"
4229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4230 break 2
4232 done
4233 done
4234 IFS=$as_save_IFS
4238 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4239 if test -n "$ac_ct_RANLIB"; then
4240 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4241 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4242 else
4243 { echo "$as_me:$LINENO: result: no" >&5
4244 echo "${ECHO_T}no" >&6; }
4247 if test "x$ac_ct_RANLIB" = x; then
4248 RANLIB=":"
4249 else
4250 case $cross_compiling:$ac_tool_warned in
4251 yes:)
4252 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4253 whose name does not start with the host triplet. If you think this
4254 configuration is useful to you, please write to autoconf@gnu.org." >&5
4255 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4256 whose name does not start with the host triplet. If you think this
4257 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4258 ac_tool_warned=yes ;;
4259 esac
4260 RANLIB=$ac_ct_RANLIB
4262 else
4263 RANLIB="$ac_cv_prog_RANLIB"
4267 for ac_prog in ar aal
4269 # Extract the first word of "$ac_prog", so it can be a program name with args.
4270 set dummy $ac_prog; ac_word=$2
4271 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4273 if test "${ac_cv_prog_AR+set}" = set; then
4274 echo $ECHO_N "(cached) $ECHO_C" >&6
4275 else
4276 if test -n "$AR"; then
4277 ac_cv_prog_AR="$AR" # Let the user override the test.
4278 else
4279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4280 for as_dir in $PATH
4282 IFS=$as_save_IFS
4283 test -z "$as_dir" && as_dir=.
4284 for ac_exec_ext in '' $ac_executable_extensions; do
4285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4286 ac_cv_prog_AR="$ac_prog"
4287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4288 break 2
4290 done
4291 done
4292 IFS=$as_save_IFS
4296 AR=$ac_cv_prog_AR
4297 if test -n "$AR"; then
4298 { echo "$as_me:$LINENO: result: $AR" >&5
4299 echo "${ECHO_T}$AR" >&6; }
4300 else
4301 { echo "$as_me:$LINENO: result: no" >&5
4302 echo "${ECHO_T}no" >&6; }
4306 test -n "$AR" && break
4307 done
4308 test -n "$AR" || AR="ar"
4311 # tweak ARFLAGS only if the user didn't set it on the command line
4313 if test -z "$ARFLAGS"
4314 then
4315 ARFLAGS="rc"
4319 # Extract the first word of "svnversion", so it can be a program name with args.
4320 set dummy svnversion; ac_word=$2
4321 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4323 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
4324 echo $ECHO_N "(cached) $ECHO_C" >&6
4325 else
4326 if test -n "$SVNVERSION"; then
4327 ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test.
4328 else
4329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4330 for as_dir in $PATH
4332 IFS=$as_save_IFS
4333 test -z "$as_dir" && as_dir=.
4334 for ac_exec_ext in '' $ac_executable_extensions; do
4335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4336 ac_cv_prog_SVNVERSION="found"
4337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4338 break 2
4340 done
4341 done
4342 IFS=$as_save_IFS
4344 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION="not-found"
4347 SVNVERSION=$ac_cv_prog_SVNVERSION
4348 if test -n "$SVNVERSION"; then
4349 { echo "$as_me:$LINENO: result: $SVNVERSION" >&5
4350 echo "${ECHO_T}$SVNVERSION" >&6; }
4351 else
4352 { echo "$as_me:$LINENO: result: no" >&5
4353 echo "${ECHO_T}no" >&6; }
4357 if test $SVNVERSION = found
4358 then
4359 SVNVERSION="svnversion \$(srcdir)"
4360 else
4361 SVNVERSION="echo Unversioned directory"
4364 case $MACHDEP in
4365 bsdos*|hp*|HP*)
4366 # install -d does not work on BSDI or HP-UX
4367 if test -z "$INSTALL"
4368 then
4369 INSTALL="${srcdir}/install-sh -c"
4371 esac
4372 ac_aux_dir=
4373 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4374 if test -f "$ac_dir/install-sh"; then
4375 ac_aux_dir=$ac_dir
4376 ac_install_sh="$ac_aux_dir/install-sh -c"
4377 break
4378 elif test -f "$ac_dir/install.sh"; then
4379 ac_aux_dir=$ac_dir
4380 ac_install_sh="$ac_aux_dir/install.sh -c"
4381 break
4382 elif test -f "$ac_dir/shtool"; then
4383 ac_aux_dir=$ac_dir
4384 ac_install_sh="$ac_aux_dir/shtool install -c"
4385 break
4387 done
4388 if test -z "$ac_aux_dir"; then
4389 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4390 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4391 { (exit 1); exit 1; }; }
4394 # These three variables are undocumented and unsupported,
4395 # and are intended to be withdrawn in a future Autoconf release.
4396 # They can cause serious problems if a builder's source tree is in a directory
4397 # whose full name contains unusual characters.
4398 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4399 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4400 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4403 # Find a good install program. We prefer a C program (faster),
4404 # so one script is as good as another. But avoid the broken or
4405 # incompatible versions:
4406 # SysV /etc/install, /usr/sbin/install
4407 # SunOS /usr/etc/install
4408 # IRIX /sbin/install
4409 # AIX /bin/install
4410 # AmigaOS /C/install, which installs bootblocks on floppy discs
4411 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4412 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4413 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4414 # OS/2's system install, which has a completely different semantic
4415 # ./install, which can be erroneously created by make from ./install.sh.
4416 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4417 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4418 if test -z "$INSTALL"; then
4419 if test "${ac_cv_path_install+set}" = set; then
4420 echo $ECHO_N "(cached) $ECHO_C" >&6
4421 else
4422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4423 for as_dir in $PATH
4425 IFS=$as_save_IFS
4426 test -z "$as_dir" && as_dir=.
4427 # Account for people who put trailing slashes in PATH elements.
4428 case $as_dir/ in
4429 ./ | .// | /cC/* | \
4430 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4431 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4432 /usr/ucb/* ) ;;
4434 # OSF1 and SCO ODT 3.0 have their own names for install.
4435 # Don't use installbsd from OSF since it installs stuff as root
4436 # by default.
4437 for ac_prog in ginstall scoinst install; do
4438 for ac_exec_ext in '' $ac_executable_extensions; do
4439 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4440 if test $ac_prog = install &&
4441 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4442 # AIX install. It has an incompatible calling convention.
4444 elif test $ac_prog = install &&
4445 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4446 # program-specific install script used by HP pwplus--don't use.
4448 else
4449 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4450 break 3
4453 done
4454 done
4456 esac
4457 done
4458 IFS=$as_save_IFS
4462 if test "${ac_cv_path_install+set}" = set; then
4463 INSTALL=$ac_cv_path_install
4464 else
4465 # As a last resort, use the slow shell script. Don't cache a
4466 # value for INSTALL within a source directory, because that will
4467 # break other packages using the cache if that directory is
4468 # removed, or if the value is a relative name.
4469 INSTALL=$ac_install_sh
4472 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4473 echo "${ECHO_T}$INSTALL" >&6; }
4475 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4476 # It thinks the first close brace ends the variable substitution.
4477 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4479 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4481 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4484 # Not every filesystem supports hard links
4486 if test -z "$LN" ; then
4487 case $ac_sys_system in
4488 CYGWIN*) LN="ln -s";;
4489 atheos*) LN="ln -s";;
4490 *) LN=ln;;
4491 esac
4494 # Check for --with-pydebug
4495 { echo "$as_me:$LINENO: checking for --with-pydebug" >&5
4496 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6; }
4498 # Check whether --with-pydebug was given.
4499 if test "${with_pydebug+set}" = set; then
4500 withval=$with_pydebug;
4501 if test "$withval" != no
4502 then
4504 cat >>confdefs.h <<\_ACEOF
4505 #define Py_DEBUG 1
4506 _ACEOF
4508 { echo "$as_me:$LINENO: result: yes" >&5
4509 echo "${ECHO_T}yes" >&6; };
4510 Py_DEBUG='true'
4511 else { echo "$as_me:$LINENO: result: no" >&5
4512 echo "${ECHO_T}no" >&6; }; Py_DEBUG='false'
4514 else
4515 { echo "$as_me:$LINENO: result: no" >&5
4516 echo "${ECHO_T}no" >&6; }
4520 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
4521 # merged with this chunk of code?
4523 # Optimizer/debugger flags
4524 # ------------------------
4525 # (The following bit of code is complicated enough - please keep things
4526 # indented properly. Just pretend you're editing Python code. ;-)
4528 # There are two parallel sets of case statements below, one that checks to
4529 # see if OPT was set and one that does BASECFLAGS setting based upon
4530 # compiler and platform. BASECFLAGS tweaks need to be made even if the
4531 # user set OPT.
4533 # tweak OPT based on compiler and platform, only if the user didn't set
4534 # it on the command line
4536 if test "${OPT-unset}" == "unset"
4537 then
4538 case $GCC in
4539 yes)
4540 if test "$CC" != 'g++' ; then
4541 STRICT_PROTO="-Wstrict-prototypes"
4543 # For gcc 4.x we need to use -fwrapv so lets check if its supported
4544 if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then
4545 WRAP="-fwrapv"
4547 case $ac_cv_prog_cc_g in
4548 yes)
4549 if test "$Py_DEBUG" = 'true' ; then
4550 # Optimization messes up debuggers, so turn it off for
4551 # debug builds.
4552 OPT="-g -Wall $STRICT_PROTO"
4553 else
4554 OPT="-g $WRAP -O3 -Wall $STRICT_PROTO"
4558 OPT="-O3 -Wall $STRICT_PROTO"
4560 esac
4561 case $ac_sys_system in
4562 SCO_SV*) OPT="$OPT -m486 -DSCO5"
4564 esac
4568 OPT="-O"
4570 esac
4575 # The -arch flags for universal builds on OSX
4576 UNIVERSAL_ARCH_FLAGS=
4579 # tweak BASECFLAGS based on compiler and platform
4580 case $GCC in
4581 yes)
4582 # Python violates C99 rules, by casting between incompatible
4583 # pointer types. GCC may generate bad code as a result of that,
4584 # so use -fno-strict-aliasing if supported.
4585 { echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
4586 echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6; }
4587 ac_save_cc="$CC"
4588 CC="$CC -fno-strict-aliasing"
4589 if test "$cross_compiling" = yes; then
4590 ac_cv_no_strict_aliasing_ok=no
4591 else
4592 cat >conftest.$ac_ext <<_ACEOF
4593 /* confdefs.h. */
4594 _ACEOF
4595 cat confdefs.h >>conftest.$ac_ext
4596 cat >>conftest.$ac_ext <<_ACEOF
4597 /* end confdefs.h. */
4598 int main() { return 0; }
4599 _ACEOF
4600 rm -f conftest$ac_exeext
4601 if { (ac_try="$ac_link"
4602 case "(($ac_try" in
4603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4604 *) ac_try_echo=$ac_try;;
4605 esac
4606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4607 (eval "$ac_link") 2>&5
4608 ac_status=$?
4609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4611 { (case "(($ac_try" in
4612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4613 *) ac_try_echo=$ac_try;;
4614 esac
4615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4616 (eval "$ac_try") 2>&5
4617 ac_status=$?
4618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619 (exit $ac_status); }; }; then
4620 ac_cv_no_strict_aliasing_ok=yes
4621 else
4622 echo "$as_me: program exited with status $ac_status" >&5
4623 echo "$as_me: failed program was:" >&5
4624 sed 's/^/| /' conftest.$ac_ext >&5
4626 ( exit $ac_status )
4627 ac_cv_no_strict_aliasing_ok=no
4629 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4633 CC="$ac_save_cc"
4634 { echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
4635 echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6; }
4636 if test $ac_cv_no_strict_aliasing_ok = yes
4637 then
4638 BASECFLAGS="$BASECFLAGS -fno-strict-aliasing"
4641 # if using gcc on alpha, use -mieee to get (near) full IEEE 754
4642 # support. Without this, treatment of subnormals doesn't follow
4643 # the standard.
4644 case $ac_sys_machine in
4645 alpha*)
4646 BASECFLAGS="$BASECFLAGS -mieee"
4648 esac
4650 case $ac_sys_system in
4651 SCO_SV*)
4652 BASECFLAGS="$BASECFLAGS -m486 -DSCO5"
4654 # is there any other compiler on Darwin besides gcc?
4655 Darwin*)
4656 # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd
4657 # used to be here, but non-Apple gcc doesn't accept them.
4660 if test "${enable_universalsdk}"; then
4661 UNIVERSAL_ARCH_FLAGS=""
4662 if test "$UNIVERSAL_ARCHS" = "32-bit" ; then
4663 UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386"
4664 ARCH_RUN_32BIT=""
4666 elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then
4667 UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64"
4668 ARCH_RUN_32BIT="true"
4670 elif test "$UNIVERSAL_ARCHS" = "all" ; then
4671 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64"
4672 ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc"
4674 elif test "$UNIVERSAL_ARCHS" = "intel" ; then
4675 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64"
4676 ARCH_RUN_32BIT="/usr/bin/arch -i386"
4678 elif test "$UNIVERSAL_ARCHS" = "3-way" ; then
4679 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64"
4680 ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc"
4682 else
4683 { { echo "$as_me:$LINENO: error: proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" >&5
4684 echo "$as_me: error: proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" >&2;}
4685 { (exit 1); exit 1; }; }
4690 BASECFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${BASECFLAGS}"
4691 tgt=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
4692 if test "${UNIVERSALSDK}" != "/" -a "${tgt}" '>' '10.4' ; then
4693 CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}"
4697 # Calculate the right deployment target for this build.
4699 cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
4700 if test ${cur_target} '>' 10.2; then
4701 cur_target=10.3
4702 if test ${enable_universalsdk}; then
4703 if test "${UNIVERSAL_ARCHS}" = "all"; then
4704 # Ensure that the default platform for a
4705 # 4-way universal build is OSX 10.5,
4706 # that's the first OS release where
4707 # 4-way builds make sense.
4708 cur_target='10.5'
4710 elif test "${UNIVERSAL_ARCHS}" = "3-way"; then
4711 cur_target='10.5'
4713 elif test "${UNIVERSAL_ARCHS}" = "intel"; then
4714 cur_target='10.5'
4716 elif test "${UNIVERSAL_ARCHS}" = "64-bit"; then
4717 cur_target='10.5'
4719 else
4720 if test `/usr/bin/arch` = "i386"; then
4721 # On Intel macs default to a deployment
4722 # target of 10.4, that's the first OSX
4723 # release with Intel support.
4724 cur_target="10.4"
4728 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
4730 # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the
4731 # environment with a value that is the same as what we'll use
4732 # in the Makefile to ensure that we'll get the same compiler
4733 # environment during configure and build time.
4734 MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET"
4735 export MACOSX_DEPLOYMENT_TARGET
4736 EXPORT_MACOSX_DEPLOYMENT_TARGET=''
4739 OSF*)
4740 BASECFLAGS="$BASECFLAGS -mieee"
4742 esac
4746 case $ac_sys_system in
4747 OpenUNIX*|UnixWare*)
4748 BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
4750 OSF*)
4751 BASECFLAGS="$BASECFLAGS -ieee -std"
4753 SCO_SV*)
4754 BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5"
4756 esac
4758 esac
4760 if test "$Py_DEBUG" = 'true'; then
4762 else
4763 OPT="-DNDEBUG $OPT"
4766 if test "$ac_arch_flags"
4767 then
4768 BASECFLAGS="$BASECFLAGS $ac_arch_flags"
4771 # disable check for icc since it seems to pass, but generates a warning
4772 if test "$CC" = icc
4773 then
4774 ac_cv_opt_olimit_ok=no
4777 { echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
4778 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6; }
4779 if test "${ac_cv_opt_olimit_ok+set}" = set; then
4780 echo $ECHO_N "(cached) $ECHO_C" >&6
4781 else
4782 ac_save_cc="$CC"
4783 CC="$CC -OPT:Olimit=0"
4784 if test "$cross_compiling" = yes; then
4785 ac_cv_opt_olimit_ok=no
4786 else
4787 cat >conftest.$ac_ext <<_ACEOF
4788 /* confdefs.h. */
4789 _ACEOF
4790 cat confdefs.h >>conftest.$ac_ext
4791 cat >>conftest.$ac_ext <<_ACEOF
4792 /* end confdefs.h. */
4793 int main() { return 0; }
4794 _ACEOF
4795 rm -f conftest$ac_exeext
4796 if { (ac_try="$ac_link"
4797 case "(($ac_try" in
4798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4799 *) ac_try_echo=$ac_try;;
4800 esac
4801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4802 (eval "$ac_link") 2>&5
4803 ac_status=$?
4804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4805 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4806 { (case "(($ac_try" in
4807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4808 *) ac_try_echo=$ac_try;;
4809 esac
4810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4811 (eval "$ac_try") 2>&5
4812 ac_status=$?
4813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814 (exit $ac_status); }; }; then
4815 ac_cv_opt_olimit_ok=yes
4816 else
4817 echo "$as_me: program exited with status $ac_status" >&5
4818 echo "$as_me: failed program was:" >&5
4819 sed 's/^/| /' conftest.$ac_ext >&5
4821 ( exit $ac_status )
4822 ac_cv_opt_olimit_ok=no
4824 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4828 CC="$ac_save_cc"
4831 { echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
4832 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6; }
4833 if test $ac_cv_opt_olimit_ok = yes; then
4834 case $ac_sys_system in
4835 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
4836 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
4837 # environment?
4838 Darwin*)
4841 BASECFLAGS="$BASECFLAGS -OPT:Olimit=0"
4843 esac
4844 else
4845 { echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
4846 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6; }
4847 if test "${ac_cv_olimit_ok+set}" = set; then
4848 echo $ECHO_N "(cached) $ECHO_C" >&6
4849 else
4850 ac_save_cc="$CC"
4851 CC="$CC -Olimit 1500"
4852 if test "$cross_compiling" = yes; then
4853 ac_cv_olimit_ok=no
4854 else
4855 cat >conftest.$ac_ext <<_ACEOF
4856 /* confdefs.h. */
4857 _ACEOF
4858 cat confdefs.h >>conftest.$ac_ext
4859 cat >>conftest.$ac_ext <<_ACEOF
4860 /* end confdefs.h. */
4861 int main() { return 0; }
4862 _ACEOF
4863 rm -f conftest$ac_exeext
4864 if { (ac_try="$ac_link"
4865 case "(($ac_try" in
4866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4867 *) ac_try_echo=$ac_try;;
4868 esac
4869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4870 (eval "$ac_link") 2>&5
4871 ac_status=$?
4872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4874 { (case "(($ac_try" in
4875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4876 *) ac_try_echo=$ac_try;;
4877 esac
4878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4879 (eval "$ac_try") 2>&5
4880 ac_status=$?
4881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4882 (exit $ac_status); }; }; then
4883 ac_cv_olimit_ok=yes
4884 else
4885 echo "$as_me: program exited with status $ac_status" >&5
4886 echo "$as_me: failed program was:" >&5
4887 sed 's/^/| /' conftest.$ac_ext >&5
4889 ( exit $ac_status )
4890 ac_cv_olimit_ok=no
4892 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4896 CC="$ac_save_cc"
4899 { echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
4900 echo "${ECHO_T}$ac_cv_olimit_ok" >&6; }
4901 if test $ac_cv_olimit_ok = yes; then
4902 BASECFLAGS="$BASECFLAGS -Olimit 1500"
4906 # Check whether GCC supports PyArg_ParseTuple format
4907 if test "$GCC" = "yes"
4908 then
4909 { echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5
4910 echo $ECHO_N "checking whether gcc supports ParseTuple __format__... $ECHO_C" >&6; }
4911 save_CFLAGS=$CFLAGS
4912 CFLAGS="$CFLAGS -Werror"
4913 cat >conftest.$ac_ext <<_ACEOF
4914 /* confdefs.h. */
4915 _ACEOF
4916 cat confdefs.h >>conftest.$ac_ext
4917 cat >>conftest.$ac_ext <<_ACEOF
4918 /* end confdefs.h. */
4920 void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2)));
4923 main ()
4927 return 0;
4929 _ACEOF
4930 rm -f conftest.$ac_objext
4931 if { (ac_try="$ac_compile"
4932 case "(($ac_try" in
4933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4934 *) ac_try_echo=$ac_try;;
4935 esac
4936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4937 (eval "$ac_compile") 2>conftest.er1
4938 ac_status=$?
4939 grep -v '^ *+' conftest.er1 >conftest.err
4940 rm -f conftest.er1
4941 cat conftest.err >&5
4942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4943 (exit $ac_status); } && {
4944 test -z "$ac_c_werror_flag" ||
4945 test ! -s conftest.err
4946 } && test -s conftest.$ac_objext; then
4948 cat >>confdefs.h <<\_ACEOF
4949 #define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1
4950 _ACEOF
4952 { echo "$as_me:$LINENO: result: yes" >&5
4953 echo "${ECHO_T}yes" >&6; }
4954 else
4955 echo "$as_me: failed program was:" >&5
4956 sed 's/^/| /' conftest.$ac_ext >&5
4958 { echo "$as_me:$LINENO: result: no" >&5
4959 echo "${ECHO_T}no" >&6; }
4963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4964 CFLAGS=$save_CFLAGS
4967 # On some compilers, pthreads are available without further options
4968 # (e.g. MacOS X). On some of these systems, the compiler will not
4969 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
4970 # So we have to see first whether pthreads are available without
4971 # options before we can check whether -Kpthread improves anything.
4972 { echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
4973 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6; }
4974 if test "${ac_cv_pthread_is_default+set}" = set; then
4975 echo $ECHO_N "(cached) $ECHO_C" >&6
4976 else
4977 if test "$cross_compiling" = yes; then
4978 ac_cv_pthread_is_default=no
4979 else
4980 cat >conftest.$ac_ext <<_ACEOF
4981 /* confdefs.h. */
4982 _ACEOF
4983 cat confdefs.h >>conftest.$ac_ext
4984 cat >>conftest.$ac_ext <<_ACEOF
4985 /* end confdefs.h. */
4987 #include <pthread.h>
4989 void* routine(void* p){return NULL;}
4991 int main(){
4992 pthread_t p;
4993 if(pthread_create(&p,NULL,routine,NULL)!=0)
4994 return 1;
4995 (void)pthread_detach(p);
4996 return 0;
4999 _ACEOF
5000 rm -f conftest$ac_exeext
5001 if { (ac_try="$ac_link"
5002 case "(($ac_try" in
5003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5004 *) ac_try_echo=$ac_try;;
5005 esac
5006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5007 (eval "$ac_link") 2>&5
5008 ac_status=$?
5009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5011 { (case "(($ac_try" in
5012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5013 *) ac_try_echo=$ac_try;;
5014 esac
5015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5016 (eval "$ac_try") 2>&5
5017 ac_status=$?
5018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019 (exit $ac_status); }; }; then
5021 ac_cv_pthread_is_default=yes
5022 ac_cv_kthread=no
5023 ac_cv_pthread=no
5025 else
5026 echo "$as_me: program exited with status $ac_status" >&5
5027 echo "$as_me: failed program was:" >&5
5028 sed 's/^/| /' conftest.$ac_ext >&5
5030 ( exit $ac_status )
5031 ac_cv_pthread_is_default=no
5033 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5040 { echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
5041 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6; }
5044 if test $ac_cv_pthread_is_default = yes
5045 then
5046 ac_cv_kpthread=no
5047 else
5048 # -Kpthread, if available, provides the right #defines
5049 # and linker options to make pthread_create available
5050 # Some compilers won't report that they do not support -Kpthread,
5051 # so we need to run a program to see whether it really made the
5052 # function available.
5053 { echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
5054 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6; }
5055 if test "${ac_cv_kpthread+set}" = set; then
5056 echo $ECHO_N "(cached) $ECHO_C" >&6
5057 else
5058 ac_save_cc="$CC"
5059 CC="$CC -Kpthread"
5060 if test "$cross_compiling" = yes; then
5061 ac_cv_kpthread=no
5062 else
5063 cat >conftest.$ac_ext <<_ACEOF
5064 /* confdefs.h. */
5065 _ACEOF
5066 cat confdefs.h >>conftest.$ac_ext
5067 cat >>conftest.$ac_ext <<_ACEOF
5068 /* end confdefs.h. */
5070 #include <pthread.h>
5072 void* routine(void* p){return NULL;}
5074 int main(){
5075 pthread_t p;
5076 if(pthread_create(&p,NULL,routine,NULL)!=0)
5077 return 1;
5078 (void)pthread_detach(p);
5079 return 0;
5082 _ACEOF
5083 rm -f conftest$ac_exeext
5084 if { (ac_try="$ac_link"
5085 case "(($ac_try" in
5086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5087 *) ac_try_echo=$ac_try;;
5088 esac
5089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5090 (eval "$ac_link") 2>&5
5091 ac_status=$?
5092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5093 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5094 { (case "(($ac_try" in
5095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5096 *) ac_try_echo=$ac_try;;
5097 esac
5098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5099 (eval "$ac_try") 2>&5
5100 ac_status=$?
5101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102 (exit $ac_status); }; }; then
5103 ac_cv_kpthread=yes
5104 else
5105 echo "$as_me: program exited with status $ac_status" >&5
5106 echo "$as_me: failed program was:" >&5
5107 sed 's/^/| /' conftest.$ac_ext >&5
5109 ( exit $ac_status )
5110 ac_cv_kpthread=no
5112 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5116 CC="$ac_save_cc"
5119 { echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
5120 echo "${ECHO_T}$ac_cv_kpthread" >&6; }
5123 if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
5124 then
5125 # -Kthread, if available, provides the right #defines
5126 # and linker options to make pthread_create available
5127 # Some compilers won't report that they do not support -Kthread,
5128 # so we need to run a program to see whether it really made the
5129 # function available.
5130 { echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
5131 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6; }
5132 if test "${ac_cv_kthread+set}" = set; then
5133 echo $ECHO_N "(cached) $ECHO_C" >&6
5134 else
5135 ac_save_cc="$CC"
5136 CC="$CC -Kthread"
5137 if test "$cross_compiling" = yes; then
5138 ac_cv_kthread=no
5139 else
5140 cat >conftest.$ac_ext <<_ACEOF
5141 /* confdefs.h. */
5142 _ACEOF
5143 cat confdefs.h >>conftest.$ac_ext
5144 cat >>conftest.$ac_ext <<_ACEOF
5145 /* end confdefs.h. */
5147 #include <pthread.h>
5149 void* routine(void* p){return NULL;}
5151 int main(){
5152 pthread_t p;
5153 if(pthread_create(&p,NULL,routine,NULL)!=0)
5154 return 1;
5155 (void)pthread_detach(p);
5156 return 0;
5159 _ACEOF
5160 rm -f conftest$ac_exeext
5161 if { (ac_try="$ac_link"
5162 case "(($ac_try" in
5163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5164 *) ac_try_echo=$ac_try;;
5165 esac
5166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5167 (eval "$ac_link") 2>&5
5168 ac_status=$?
5169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5171 { (case "(($ac_try" in
5172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5173 *) ac_try_echo=$ac_try;;
5174 esac
5175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5176 (eval "$ac_try") 2>&5
5177 ac_status=$?
5178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5179 (exit $ac_status); }; }; then
5180 ac_cv_kthread=yes
5181 else
5182 echo "$as_me: program exited with status $ac_status" >&5
5183 echo "$as_me: failed program was:" >&5
5184 sed 's/^/| /' conftest.$ac_ext >&5
5186 ( exit $ac_status )
5187 ac_cv_kthread=no
5189 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5193 CC="$ac_save_cc"
5196 { echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
5197 echo "${ECHO_T}$ac_cv_kthread" >&6; }
5200 if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
5201 then
5202 # -pthread, if available, provides the right #defines
5203 # and linker options to make pthread_create available
5204 # Some compilers won't report that they do not support -pthread,
5205 # so we need to run a program to see whether it really made the
5206 # function available.
5207 { echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
5208 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6; }
5209 if test "${ac_cv_thread+set}" = set; then
5210 echo $ECHO_N "(cached) $ECHO_C" >&6
5211 else
5212 ac_save_cc="$CC"
5213 CC="$CC -pthread"
5214 if test "$cross_compiling" = yes; then
5215 ac_cv_pthread=no
5216 else
5217 cat >conftest.$ac_ext <<_ACEOF
5218 /* confdefs.h. */
5219 _ACEOF
5220 cat confdefs.h >>conftest.$ac_ext
5221 cat >>conftest.$ac_ext <<_ACEOF
5222 /* end confdefs.h. */
5224 #include <pthread.h>
5226 void* routine(void* p){return NULL;}
5228 int main(){
5229 pthread_t p;
5230 if(pthread_create(&p,NULL,routine,NULL)!=0)
5231 return 1;
5232 (void)pthread_detach(p);
5233 return 0;
5236 _ACEOF
5237 rm -f conftest$ac_exeext
5238 if { (ac_try="$ac_link"
5239 case "(($ac_try" in
5240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5241 *) ac_try_echo=$ac_try;;
5242 esac
5243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5244 (eval "$ac_link") 2>&5
5245 ac_status=$?
5246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5248 { (case "(($ac_try" in
5249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5250 *) ac_try_echo=$ac_try;;
5251 esac
5252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5253 (eval "$ac_try") 2>&5
5254 ac_status=$?
5255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256 (exit $ac_status); }; }; then
5257 ac_cv_pthread=yes
5258 else
5259 echo "$as_me: program exited with status $ac_status" >&5
5260 echo "$as_me: failed program was:" >&5
5261 sed 's/^/| /' conftest.$ac_ext >&5
5263 ( exit $ac_status )
5264 ac_cv_pthread=no
5266 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5270 CC="$ac_save_cc"
5273 { echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
5274 echo "${ECHO_T}$ac_cv_pthread" >&6; }
5277 # If we have set a CC compiler flag for thread support then
5278 # check if it works for CXX, too.
5279 ac_cv_cxx_thread=no
5280 if test ! -z "$CXX"
5281 then
5282 { echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
5283 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6; }
5284 ac_save_cxx="$CXX"
5286 if test "$ac_cv_kpthread" = "yes"
5287 then
5288 CXX="$CXX -Kpthread"
5289 ac_cv_cxx_thread=yes
5290 elif test "$ac_cv_kthread" = "yes"
5291 then
5292 CXX="$CXX -Kthread"
5293 ac_cv_cxx_thread=yes
5294 elif test "$ac_cv_pthread" = "yes"
5295 then
5296 CXX="$CXX -pthread"
5297 ac_cv_cxx_thread=yes
5300 if test $ac_cv_cxx_thread = yes
5301 then
5302 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
5303 $CXX -c conftest.$ac_ext 2>&5
5304 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
5305 && test -s conftest$ac_exeext && ./conftest$ac_exeext
5306 then
5307 ac_cv_cxx_thread=yes
5308 else
5309 ac_cv_cxx_thread=no
5311 rm -fr conftest*
5313 { echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
5314 echo "${ECHO_T}$ac_cv_cxx_thread" >&6; }
5316 CXX="$ac_save_cxx"
5319 # checks for header files
5320 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5321 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5322 if test "${ac_cv_header_stdc+set}" = set; then
5323 echo $ECHO_N "(cached) $ECHO_C" >&6
5324 else
5325 cat >conftest.$ac_ext <<_ACEOF
5326 /* confdefs.h. */
5327 _ACEOF
5328 cat confdefs.h >>conftest.$ac_ext
5329 cat >>conftest.$ac_ext <<_ACEOF
5330 /* end confdefs.h. */
5331 #include <stdlib.h>
5332 #include <stdarg.h>
5333 #include <string.h>
5334 #include <float.h>
5337 main ()
5341 return 0;
5343 _ACEOF
5344 rm -f conftest.$ac_objext
5345 if { (ac_try="$ac_compile"
5346 case "(($ac_try" in
5347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5348 *) ac_try_echo=$ac_try;;
5349 esac
5350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5351 (eval "$ac_compile") 2>conftest.er1
5352 ac_status=$?
5353 grep -v '^ *+' conftest.er1 >conftest.err
5354 rm -f conftest.er1
5355 cat conftest.err >&5
5356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5357 (exit $ac_status); } && {
5358 test -z "$ac_c_werror_flag" ||
5359 test ! -s conftest.err
5360 } && test -s conftest.$ac_objext; then
5361 ac_cv_header_stdc=yes
5362 else
5363 echo "$as_me: failed program was:" >&5
5364 sed 's/^/| /' conftest.$ac_ext >&5
5366 ac_cv_header_stdc=no
5369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5371 if test $ac_cv_header_stdc = yes; then
5372 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5373 cat >conftest.$ac_ext <<_ACEOF
5374 /* confdefs.h. */
5375 _ACEOF
5376 cat confdefs.h >>conftest.$ac_ext
5377 cat >>conftest.$ac_ext <<_ACEOF
5378 /* end confdefs.h. */
5379 #include <string.h>
5381 _ACEOF
5382 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5383 $EGREP "memchr" >/dev/null 2>&1; then
5385 else
5386 ac_cv_header_stdc=no
5388 rm -f -r conftest*
5392 if test $ac_cv_header_stdc = yes; then
5393 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5394 cat >conftest.$ac_ext <<_ACEOF
5395 /* confdefs.h. */
5396 _ACEOF
5397 cat confdefs.h >>conftest.$ac_ext
5398 cat >>conftest.$ac_ext <<_ACEOF
5399 /* end confdefs.h. */
5400 #include <stdlib.h>
5402 _ACEOF
5403 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5404 $EGREP "free" >/dev/null 2>&1; then
5406 else
5407 ac_cv_header_stdc=no
5409 rm -f -r conftest*
5413 if test $ac_cv_header_stdc = yes; then
5414 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5415 if test "$cross_compiling" = yes; then
5417 else
5418 cat >conftest.$ac_ext <<_ACEOF
5419 /* confdefs.h. */
5420 _ACEOF
5421 cat confdefs.h >>conftest.$ac_ext
5422 cat >>conftest.$ac_ext <<_ACEOF
5423 /* end confdefs.h. */
5424 #include <ctype.h>
5425 #include <stdlib.h>
5426 #if ((' ' & 0x0FF) == 0x020)
5427 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5428 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5429 #else
5430 # define ISLOWER(c) \
5431 (('a' <= (c) && (c) <= 'i') \
5432 || ('j' <= (c) && (c) <= 'r') \
5433 || ('s' <= (c) && (c) <= 'z'))
5434 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5435 #endif
5437 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5439 main ()
5441 int i;
5442 for (i = 0; i < 256; i++)
5443 if (XOR (islower (i), ISLOWER (i))
5444 || toupper (i) != TOUPPER (i))
5445 return 2;
5446 return 0;
5448 _ACEOF
5449 rm -f conftest$ac_exeext
5450 if { (ac_try="$ac_link"
5451 case "(($ac_try" in
5452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5453 *) ac_try_echo=$ac_try;;
5454 esac
5455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5456 (eval "$ac_link") 2>&5
5457 ac_status=$?
5458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5460 { (case "(($ac_try" in
5461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5462 *) ac_try_echo=$ac_try;;
5463 esac
5464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5465 (eval "$ac_try") 2>&5
5466 ac_status=$?
5467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468 (exit $ac_status); }; }; then
5470 else
5471 echo "$as_me: program exited with status $ac_status" >&5
5472 echo "$as_me: failed program was:" >&5
5473 sed 's/^/| /' conftest.$ac_ext >&5
5475 ( exit $ac_status )
5476 ac_cv_header_stdc=no
5478 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5484 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5485 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5486 if test $ac_cv_header_stdc = yes; then
5488 cat >>confdefs.h <<\_ACEOF
5489 #define STDC_HEADERS 1
5490 _ACEOF
5494 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5504 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5505 inttypes.h stdint.h unistd.h
5507 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5508 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5509 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5510 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5511 echo $ECHO_N "(cached) $ECHO_C" >&6
5512 else
5513 cat >conftest.$ac_ext <<_ACEOF
5514 /* confdefs.h. */
5515 _ACEOF
5516 cat confdefs.h >>conftest.$ac_ext
5517 cat >>conftest.$ac_ext <<_ACEOF
5518 /* end confdefs.h. */
5519 $ac_includes_default
5521 #include <$ac_header>
5522 _ACEOF
5523 rm -f conftest.$ac_objext
5524 if { (ac_try="$ac_compile"
5525 case "(($ac_try" in
5526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5527 *) ac_try_echo=$ac_try;;
5528 esac
5529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5530 (eval "$ac_compile") 2>conftest.er1
5531 ac_status=$?
5532 grep -v '^ *+' conftest.er1 >conftest.err
5533 rm -f conftest.er1
5534 cat conftest.err >&5
5535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5536 (exit $ac_status); } && {
5537 test -z "$ac_c_werror_flag" ||
5538 test ! -s conftest.err
5539 } && test -s conftest.$ac_objext; then
5540 eval "$as_ac_Header=yes"
5541 else
5542 echo "$as_me: failed program was:" >&5
5543 sed 's/^/| /' conftest.$ac_ext >&5
5545 eval "$as_ac_Header=no"
5548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5550 ac_res=`eval echo '${'$as_ac_Header'}'`
5551 { echo "$as_me:$LINENO: result: $ac_res" >&5
5552 echo "${ECHO_T}$ac_res" >&6; }
5553 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5554 cat >>confdefs.h <<_ACEOF
5555 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5556 _ACEOF
5560 done
5617 for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \
5618 fcntl.h grp.h \
5619 ieeefp.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
5620 shadow.h signal.h stdint.h stropts.h termios.h thread.h \
5621 unistd.h utime.h \
5622 sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \
5623 sys/lock.h sys/mkdev.h sys/modem.h \
5624 sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \
5625 sys/termio.h sys/time.h \
5626 sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
5627 sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
5628 bluetooth/bluetooth.h linux/tipc.h
5630 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5631 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5632 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5633 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5634 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5635 echo $ECHO_N "(cached) $ECHO_C" >&6
5637 ac_res=`eval echo '${'$as_ac_Header'}'`
5638 { echo "$as_me:$LINENO: result: $ac_res" >&5
5639 echo "${ECHO_T}$ac_res" >&6; }
5640 else
5641 # Is the header compilable?
5642 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5643 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5644 cat >conftest.$ac_ext <<_ACEOF
5645 /* confdefs.h. */
5646 _ACEOF
5647 cat confdefs.h >>conftest.$ac_ext
5648 cat >>conftest.$ac_ext <<_ACEOF
5649 /* end confdefs.h. */
5650 $ac_includes_default
5651 #include <$ac_header>
5652 _ACEOF
5653 rm -f conftest.$ac_objext
5654 if { (ac_try="$ac_compile"
5655 case "(($ac_try" in
5656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5657 *) ac_try_echo=$ac_try;;
5658 esac
5659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5660 (eval "$ac_compile") 2>conftest.er1
5661 ac_status=$?
5662 grep -v '^ *+' conftest.er1 >conftest.err
5663 rm -f conftest.er1
5664 cat conftest.err >&5
5665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666 (exit $ac_status); } && {
5667 test -z "$ac_c_werror_flag" ||
5668 test ! -s conftest.err
5669 } && test -s conftest.$ac_objext; then
5670 ac_header_compiler=yes
5671 else
5672 echo "$as_me: failed program was:" >&5
5673 sed 's/^/| /' conftest.$ac_ext >&5
5675 ac_header_compiler=no
5678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5679 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5680 echo "${ECHO_T}$ac_header_compiler" >&6; }
5682 # Is the header present?
5683 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5684 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5685 cat >conftest.$ac_ext <<_ACEOF
5686 /* confdefs.h. */
5687 _ACEOF
5688 cat confdefs.h >>conftest.$ac_ext
5689 cat >>conftest.$ac_ext <<_ACEOF
5690 /* end confdefs.h. */
5691 #include <$ac_header>
5692 _ACEOF
5693 if { (ac_try="$ac_cpp conftest.$ac_ext"
5694 case "(($ac_try" in
5695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5696 *) ac_try_echo=$ac_try;;
5697 esac
5698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5699 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5700 ac_status=$?
5701 grep -v '^ *+' conftest.er1 >conftest.err
5702 rm -f conftest.er1
5703 cat conftest.err >&5
5704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5705 (exit $ac_status); } >/dev/null && {
5706 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5707 test ! -s conftest.err
5708 }; then
5709 ac_header_preproc=yes
5710 else
5711 echo "$as_me: failed program was:" >&5
5712 sed 's/^/| /' conftest.$ac_ext >&5
5714 ac_header_preproc=no
5717 rm -f conftest.err conftest.$ac_ext
5718 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5719 echo "${ECHO_T}$ac_header_preproc" >&6; }
5721 # So? What about this header?
5722 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5723 yes:no: )
5724 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5725 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5726 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5727 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5728 ac_header_preproc=yes
5730 no:yes:* )
5731 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5732 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5733 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5734 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5735 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5736 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5737 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5738 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5739 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5740 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5741 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5742 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5743 ( cat <<\_ASBOX
5744 ## -------------------------------------- ##
5745 ## Report this to http://bugs.python.org/ ##
5746 ## -------------------------------------- ##
5747 _ASBOX
5748 ) | sed "s/^/$as_me: WARNING: /" >&2
5750 esac
5751 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5752 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5753 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5754 echo $ECHO_N "(cached) $ECHO_C" >&6
5755 else
5756 eval "$as_ac_Header=\$ac_header_preproc"
5758 ac_res=`eval echo '${'$as_ac_Header'}'`
5759 { echo "$as_me:$LINENO: result: $ac_res" >&5
5760 echo "${ECHO_T}$ac_res" >&6; }
5763 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5764 cat >>confdefs.h <<_ACEOF
5765 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5766 _ACEOF
5770 done
5777 ac_header_dirent=no
5778 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5779 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5780 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5781 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5782 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5783 echo $ECHO_N "(cached) $ECHO_C" >&6
5784 else
5785 cat >conftest.$ac_ext <<_ACEOF
5786 /* confdefs.h. */
5787 _ACEOF
5788 cat confdefs.h >>conftest.$ac_ext
5789 cat >>conftest.$ac_ext <<_ACEOF
5790 /* end confdefs.h. */
5791 #include <sys/types.h>
5792 #include <$ac_hdr>
5795 main ()
5797 if ((DIR *) 0)
5798 return 0;
5800 return 0;
5802 _ACEOF
5803 rm -f conftest.$ac_objext
5804 if { (ac_try="$ac_compile"
5805 case "(($ac_try" in
5806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5807 *) ac_try_echo=$ac_try;;
5808 esac
5809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5810 (eval "$ac_compile") 2>conftest.er1
5811 ac_status=$?
5812 grep -v '^ *+' conftest.er1 >conftest.err
5813 rm -f conftest.er1
5814 cat conftest.err >&5
5815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816 (exit $ac_status); } && {
5817 test -z "$ac_c_werror_flag" ||
5818 test ! -s conftest.err
5819 } && test -s conftest.$ac_objext; then
5820 eval "$as_ac_Header=yes"
5821 else
5822 echo "$as_me: failed program was:" >&5
5823 sed 's/^/| /' conftest.$ac_ext >&5
5825 eval "$as_ac_Header=no"
5828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5830 ac_res=`eval echo '${'$as_ac_Header'}'`
5831 { echo "$as_me:$LINENO: result: $ac_res" >&5
5832 echo "${ECHO_T}$ac_res" >&6; }
5833 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5834 cat >>confdefs.h <<_ACEOF
5835 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5836 _ACEOF
5838 ac_header_dirent=$ac_hdr; break
5841 done
5842 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5843 if test $ac_header_dirent = dirent.h; then
5844 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5845 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5846 if test "${ac_cv_search_opendir+set}" = set; then
5847 echo $ECHO_N "(cached) $ECHO_C" >&6
5848 else
5849 ac_func_search_save_LIBS=$LIBS
5850 cat >conftest.$ac_ext <<_ACEOF
5851 /* confdefs.h. */
5852 _ACEOF
5853 cat confdefs.h >>conftest.$ac_ext
5854 cat >>conftest.$ac_ext <<_ACEOF
5855 /* end confdefs.h. */
5857 /* Override any GCC internal prototype to avoid an error.
5858 Use char because int might match the return type of a GCC
5859 builtin and then its argument prototype would still apply. */
5860 #ifdef __cplusplus
5861 extern "C"
5862 #endif
5863 char opendir ();
5865 main ()
5867 return opendir ();
5869 return 0;
5871 _ACEOF
5872 for ac_lib in '' dir; do
5873 if test -z "$ac_lib"; then
5874 ac_res="none required"
5875 else
5876 ac_res=-l$ac_lib
5877 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5879 rm -f conftest.$ac_objext conftest$ac_exeext
5880 if { (ac_try="$ac_link"
5881 case "(($ac_try" in
5882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5883 *) ac_try_echo=$ac_try;;
5884 esac
5885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5886 (eval "$ac_link") 2>conftest.er1
5887 ac_status=$?
5888 grep -v '^ *+' conftest.er1 >conftest.err
5889 rm -f conftest.er1
5890 cat conftest.err >&5
5891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892 (exit $ac_status); } && {
5893 test -z "$ac_c_werror_flag" ||
5894 test ! -s conftest.err
5895 } && test -s conftest$ac_exeext &&
5896 $as_test_x conftest$ac_exeext; then
5897 ac_cv_search_opendir=$ac_res
5898 else
5899 echo "$as_me: failed program was:" >&5
5900 sed 's/^/| /' conftest.$ac_ext >&5
5905 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5906 conftest$ac_exeext
5907 if test "${ac_cv_search_opendir+set}" = set; then
5908 break
5910 done
5911 if test "${ac_cv_search_opendir+set}" = set; then
5913 else
5914 ac_cv_search_opendir=no
5916 rm conftest.$ac_ext
5917 LIBS=$ac_func_search_save_LIBS
5919 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5920 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5921 ac_res=$ac_cv_search_opendir
5922 if test "$ac_res" != no; then
5923 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5927 else
5928 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5929 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5930 if test "${ac_cv_search_opendir+set}" = set; then
5931 echo $ECHO_N "(cached) $ECHO_C" >&6
5932 else
5933 ac_func_search_save_LIBS=$LIBS
5934 cat >conftest.$ac_ext <<_ACEOF
5935 /* confdefs.h. */
5936 _ACEOF
5937 cat confdefs.h >>conftest.$ac_ext
5938 cat >>conftest.$ac_ext <<_ACEOF
5939 /* end confdefs.h. */
5941 /* Override any GCC internal prototype to avoid an error.
5942 Use char because int might match the return type of a GCC
5943 builtin and then its argument prototype would still apply. */
5944 #ifdef __cplusplus
5945 extern "C"
5946 #endif
5947 char opendir ();
5949 main ()
5951 return opendir ();
5953 return 0;
5955 _ACEOF
5956 for ac_lib in '' x; do
5957 if test -z "$ac_lib"; then
5958 ac_res="none required"
5959 else
5960 ac_res=-l$ac_lib
5961 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5963 rm -f conftest.$ac_objext conftest$ac_exeext
5964 if { (ac_try="$ac_link"
5965 case "(($ac_try" in
5966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5967 *) ac_try_echo=$ac_try;;
5968 esac
5969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5970 (eval "$ac_link") 2>conftest.er1
5971 ac_status=$?
5972 grep -v '^ *+' conftest.er1 >conftest.err
5973 rm -f conftest.er1
5974 cat conftest.err >&5
5975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5976 (exit $ac_status); } && {
5977 test -z "$ac_c_werror_flag" ||
5978 test ! -s conftest.err
5979 } && test -s conftest$ac_exeext &&
5980 $as_test_x conftest$ac_exeext; then
5981 ac_cv_search_opendir=$ac_res
5982 else
5983 echo "$as_me: failed program was:" >&5
5984 sed 's/^/| /' conftest.$ac_ext >&5
5989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5990 conftest$ac_exeext
5991 if test "${ac_cv_search_opendir+set}" = set; then
5992 break
5994 done
5995 if test "${ac_cv_search_opendir+set}" = set; then
5997 else
5998 ac_cv_search_opendir=no
6000 rm conftest.$ac_ext
6001 LIBS=$ac_func_search_save_LIBS
6003 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6004 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
6005 ac_res=$ac_cv_search_opendir
6006 if test "$ac_res" != no; then
6007 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6013 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
6014 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
6015 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
6016 echo $ECHO_N "(cached) $ECHO_C" >&6
6017 else
6018 cat >conftest.$ac_ext <<_ACEOF
6019 /* confdefs.h. */
6020 _ACEOF
6021 cat confdefs.h >>conftest.$ac_ext
6022 cat >>conftest.$ac_ext <<_ACEOF
6023 /* end confdefs.h. */
6024 #include <sys/types.h>
6026 main ()
6028 return makedev(0, 0);
6030 return 0;
6032 _ACEOF
6033 rm -f conftest.$ac_objext conftest$ac_exeext
6034 if { (ac_try="$ac_link"
6035 case "(($ac_try" in
6036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6037 *) ac_try_echo=$ac_try;;
6038 esac
6039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6040 (eval "$ac_link") 2>conftest.er1
6041 ac_status=$?
6042 grep -v '^ *+' conftest.er1 >conftest.err
6043 rm -f conftest.er1
6044 cat conftest.err >&5
6045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6046 (exit $ac_status); } && {
6047 test -z "$ac_c_werror_flag" ||
6048 test ! -s conftest.err
6049 } && test -s conftest$ac_exeext &&
6050 $as_test_x conftest$ac_exeext; then
6051 ac_cv_header_sys_types_h_makedev=yes
6052 else
6053 echo "$as_me: failed program was:" >&5
6054 sed 's/^/| /' conftest.$ac_ext >&5
6056 ac_cv_header_sys_types_h_makedev=no
6059 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6060 conftest$ac_exeext conftest.$ac_ext
6063 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
6064 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
6066 if test $ac_cv_header_sys_types_h_makedev = no; then
6067 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6068 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6069 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6070 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6071 echo $ECHO_N "(cached) $ECHO_C" >&6
6073 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6074 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6075 else
6076 # Is the header compilable?
6077 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
6078 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
6079 cat >conftest.$ac_ext <<_ACEOF
6080 /* confdefs.h. */
6081 _ACEOF
6082 cat confdefs.h >>conftest.$ac_ext
6083 cat >>conftest.$ac_ext <<_ACEOF
6084 /* end confdefs.h. */
6085 $ac_includes_default
6086 #include <sys/mkdev.h>
6087 _ACEOF
6088 rm -f conftest.$ac_objext
6089 if { (ac_try="$ac_compile"
6090 case "(($ac_try" in
6091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6092 *) ac_try_echo=$ac_try;;
6093 esac
6094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6095 (eval "$ac_compile") 2>conftest.er1
6096 ac_status=$?
6097 grep -v '^ *+' conftest.er1 >conftest.err
6098 rm -f conftest.er1
6099 cat conftest.err >&5
6100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6101 (exit $ac_status); } && {
6102 test -z "$ac_c_werror_flag" ||
6103 test ! -s conftest.err
6104 } && test -s conftest.$ac_objext; then
6105 ac_header_compiler=yes
6106 else
6107 echo "$as_me: failed program was:" >&5
6108 sed 's/^/| /' conftest.$ac_ext >&5
6110 ac_header_compiler=no
6113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6114 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6115 echo "${ECHO_T}$ac_header_compiler" >&6; }
6117 # Is the header present?
6118 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
6119 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
6120 cat >conftest.$ac_ext <<_ACEOF
6121 /* confdefs.h. */
6122 _ACEOF
6123 cat confdefs.h >>conftest.$ac_ext
6124 cat >>conftest.$ac_ext <<_ACEOF
6125 /* end confdefs.h. */
6126 #include <sys/mkdev.h>
6127 _ACEOF
6128 if { (ac_try="$ac_cpp conftest.$ac_ext"
6129 case "(($ac_try" in
6130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6131 *) ac_try_echo=$ac_try;;
6132 esac
6133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6134 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6135 ac_status=$?
6136 grep -v '^ *+' conftest.er1 >conftest.err
6137 rm -f conftest.er1
6138 cat conftest.err >&5
6139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140 (exit $ac_status); } >/dev/null && {
6141 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6142 test ! -s conftest.err
6143 }; then
6144 ac_header_preproc=yes
6145 else
6146 echo "$as_me: failed program was:" >&5
6147 sed 's/^/| /' conftest.$ac_ext >&5
6149 ac_header_preproc=no
6152 rm -f conftest.err conftest.$ac_ext
6153 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6154 echo "${ECHO_T}$ac_header_preproc" >&6; }
6156 # So? What about this header?
6157 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6158 yes:no: )
6159 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
6160 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6161 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
6162 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
6163 ac_header_preproc=yes
6165 no:yes:* )
6166 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
6167 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
6168 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
6169 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
6170 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
6171 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
6172 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
6173 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
6174 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
6175 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
6176 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
6177 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
6178 ( cat <<\_ASBOX
6179 ## -------------------------------------- ##
6180 ## Report this to http://bugs.python.org/ ##
6181 ## -------------------------------------- ##
6182 _ASBOX
6183 ) | sed "s/^/$as_me: WARNING: /" >&2
6185 esac
6186 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6187 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6188 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6189 echo $ECHO_N "(cached) $ECHO_C" >&6
6190 else
6191 ac_cv_header_sys_mkdev_h=$ac_header_preproc
6193 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6194 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6197 if test $ac_cv_header_sys_mkdev_h = yes; then
6199 cat >>confdefs.h <<\_ACEOF
6200 #define MAJOR_IN_MKDEV 1
6201 _ACEOF
6207 if test $ac_cv_header_sys_mkdev_h = no; then
6208 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6209 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6210 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6211 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6212 echo $ECHO_N "(cached) $ECHO_C" >&6
6214 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6215 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6216 else
6217 # Is the header compilable?
6218 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
6219 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
6220 cat >conftest.$ac_ext <<_ACEOF
6221 /* confdefs.h. */
6222 _ACEOF
6223 cat confdefs.h >>conftest.$ac_ext
6224 cat >>conftest.$ac_ext <<_ACEOF
6225 /* end confdefs.h. */
6226 $ac_includes_default
6227 #include <sys/sysmacros.h>
6228 _ACEOF
6229 rm -f conftest.$ac_objext
6230 if { (ac_try="$ac_compile"
6231 case "(($ac_try" in
6232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6233 *) ac_try_echo=$ac_try;;
6234 esac
6235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6236 (eval "$ac_compile") 2>conftest.er1
6237 ac_status=$?
6238 grep -v '^ *+' conftest.er1 >conftest.err
6239 rm -f conftest.er1
6240 cat conftest.err >&5
6241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6242 (exit $ac_status); } && {
6243 test -z "$ac_c_werror_flag" ||
6244 test ! -s conftest.err
6245 } && test -s conftest.$ac_objext; then
6246 ac_header_compiler=yes
6247 else
6248 echo "$as_me: failed program was:" >&5
6249 sed 's/^/| /' conftest.$ac_ext >&5
6251 ac_header_compiler=no
6254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6255 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6256 echo "${ECHO_T}$ac_header_compiler" >&6; }
6258 # Is the header present?
6259 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
6260 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
6261 cat >conftest.$ac_ext <<_ACEOF
6262 /* confdefs.h. */
6263 _ACEOF
6264 cat confdefs.h >>conftest.$ac_ext
6265 cat >>conftest.$ac_ext <<_ACEOF
6266 /* end confdefs.h. */
6267 #include <sys/sysmacros.h>
6268 _ACEOF
6269 if { (ac_try="$ac_cpp conftest.$ac_ext"
6270 case "(($ac_try" in
6271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6272 *) ac_try_echo=$ac_try;;
6273 esac
6274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6275 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6276 ac_status=$?
6277 grep -v '^ *+' conftest.er1 >conftest.err
6278 rm -f conftest.er1
6279 cat conftest.err >&5
6280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6281 (exit $ac_status); } >/dev/null && {
6282 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6283 test ! -s conftest.err
6284 }; then
6285 ac_header_preproc=yes
6286 else
6287 echo "$as_me: failed program was:" >&5
6288 sed 's/^/| /' conftest.$ac_ext >&5
6290 ac_header_preproc=no
6293 rm -f conftest.err conftest.$ac_ext
6294 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6295 echo "${ECHO_T}$ac_header_preproc" >&6; }
6297 # So? What about this header?
6298 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6299 yes:no: )
6300 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
6301 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6302 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
6303 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
6304 ac_header_preproc=yes
6306 no:yes:* )
6307 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
6308 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
6309 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
6310 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
6311 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
6312 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
6313 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
6314 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
6315 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
6316 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
6317 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
6318 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
6319 ( cat <<\_ASBOX
6320 ## -------------------------------------- ##
6321 ## Report this to http://bugs.python.org/ ##
6322 ## -------------------------------------- ##
6323 _ASBOX
6324 ) | sed "s/^/$as_me: WARNING: /" >&2
6326 esac
6327 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6328 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6329 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6330 echo $ECHO_N "(cached) $ECHO_C" >&6
6331 else
6332 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
6334 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6335 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6338 if test $ac_cv_header_sys_sysmacros_h = yes; then
6340 cat >>confdefs.h <<\_ACEOF
6341 #define MAJOR_IN_SYSMACROS 1
6342 _ACEOF
6351 # On Solaris, term.h requires curses.h
6353 for ac_header in term.h
6355 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6356 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6357 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6358 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6359 echo $ECHO_N "(cached) $ECHO_C" >&6
6360 else
6361 cat >conftest.$ac_ext <<_ACEOF
6362 /* confdefs.h. */
6363 _ACEOF
6364 cat confdefs.h >>conftest.$ac_ext
6365 cat >>conftest.$ac_ext <<_ACEOF
6366 /* end confdefs.h. */
6368 #ifdef HAVE_CURSES_H
6369 #include <curses.h>
6370 #endif
6373 #include <$ac_header>
6374 _ACEOF
6375 rm -f conftest.$ac_objext
6376 if { (ac_try="$ac_compile"
6377 case "(($ac_try" in
6378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6379 *) ac_try_echo=$ac_try;;
6380 esac
6381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6382 (eval "$ac_compile") 2>conftest.er1
6383 ac_status=$?
6384 grep -v '^ *+' conftest.er1 >conftest.err
6385 rm -f conftest.er1
6386 cat conftest.err >&5
6387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6388 (exit $ac_status); } && {
6389 test -z "$ac_c_werror_flag" ||
6390 test ! -s conftest.err
6391 } && test -s conftest.$ac_objext; then
6392 eval "$as_ac_Header=yes"
6393 else
6394 echo "$as_me: failed program was:" >&5
6395 sed 's/^/| /' conftest.$ac_ext >&5
6397 eval "$as_ac_Header=no"
6400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6402 ac_res=`eval echo '${'$as_ac_Header'}'`
6403 { echo "$as_me:$LINENO: result: $ac_res" >&5
6404 echo "${ECHO_T}$ac_res" >&6; }
6405 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6406 cat >>confdefs.h <<_ACEOF
6407 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6408 _ACEOF
6412 done
6415 # On Linux, netlink.h requires asm/types.h
6417 for ac_header in linux/netlink.h
6419 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6420 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6421 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6422 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6423 echo $ECHO_N "(cached) $ECHO_C" >&6
6424 else
6425 cat >conftest.$ac_ext <<_ACEOF
6426 /* confdefs.h. */
6427 _ACEOF
6428 cat confdefs.h >>conftest.$ac_ext
6429 cat >>conftest.$ac_ext <<_ACEOF
6430 /* end confdefs.h. */
6432 #ifdef HAVE_ASM_TYPES_H
6433 #include <asm/types.h>
6434 #endif
6435 #ifdef HAVE_SYS_SOCKET_H
6436 #include <sys/socket.h>
6437 #endif
6440 #include <$ac_header>
6441 _ACEOF
6442 rm -f conftest.$ac_objext
6443 if { (ac_try="$ac_compile"
6444 case "(($ac_try" in
6445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6446 *) ac_try_echo=$ac_try;;
6447 esac
6448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6449 (eval "$ac_compile") 2>conftest.er1
6450 ac_status=$?
6451 grep -v '^ *+' conftest.er1 >conftest.err
6452 rm -f conftest.er1
6453 cat conftest.err >&5
6454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455 (exit $ac_status); } && {
6456 test -z "$ac_c_werror_flag" ||
6457 test ! -s conftest.err
6458 } && test -s conftest.$ac_objext; then
6459 eval "$as_ac_Header=yes"
6460 else
6461 echo "$as_me: failed program was:" >&5
6462 sed 's/^/| /' conftest.$ac_ext >&5
6464 eval "$as_ac_Header=no"
6467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6469 ac_res=`eval echo '${'$as_ac_Header'}'`
6470 { echo "$as_me:$LINENO: result: $ac_res" >&5
6471 echo "${ECHO_T}$ac_res" >&6; }
6472 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6473 cat >>confdefs.h <<_ACEOF
6474 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6475 _ACEOF
6479 done
6482 # checks for typedefs
6483 was_it_defined=no
6484 { echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
6485 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6; }
6486 cat >conftest.$ac_ext <<_ACEOF
6487 /* confdefs.h. */
6488 _ACEOF
6489 cat confdefs.h >>conftest.$ac_ext
6490 cat >>conftest.$ac_ext <<_ACEOF
6491 /* end confdefs.h. */
6492 #include <time.h>
6494 _ACEOF
6495 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6496 $EGREP "clock_t" >/dev/null 2>&1; then
6497 was_it_defined=yes
6498 else
6501 cat >>confdefs.h <<\_ACEOF
6502 #define clock_t long
6503 _ACEOF
6507 rm -f -r conftest*
6509 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
6510 echo "${ECHO_T}$was_it_defined" >&6; }
6512 # Check whether using makedev requires defining _OSF_SOURCE
6513 { echo "$as_me:$LINENO: checking for makedev" >&5
6514 echo $ECHO_N "checking for makedev... $ECHO_C" >&6; }
6515 cat >conftest.$ac_ext <<_ACEOF
6516 /* confdefs.h. */
6517 _ACEOF
6518 cat confdefs.h >>conftest.$ac_ext
6519 cat >>conftest.$ac_ext <<_ACEOF
6520 /* end confdefs.h. */
6521 #include <sys/types.h>
6523 main ()
6525 makedev(0, 0)
6527 return 0;
6529 _ACEOF
6530 rm -f conftest.$ac_objext conftest$ac_exeext
6531 if { (ac_try="$ac_link"
6532 case "(($ac_try" in
6533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6534 *) ac_try_echo=$ac_try;;
6535 esac
6536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6537 (eval "$ac_link") 2>conftest.er1
6538 ac_status=$?
6539 grep -v '^ *+' conftest.er1 >conftest.err
6540 rm -f conftest.er1
6541 cat conftest.err >&5
6542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543 (exit $ac_status); } && {
6544 test -z "$ac_c_werror_flag" ||
6545 test ! -s conftest.err
6546 } && test -s conftest$ac_exeext &&
6547 $as_test_x conftest$ac_exeext; then
6548 ac_cv_has_makedev=yes
6549 else
6550 echo "$as_me: failed program was:" >&5
6551 sed 's/^/| /' conftest.$ac_ext >&5
6553 ac_cv_has_makedev=no
6556 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6557 conftest$ac_exeext conftest.$ac_ext
6558 if test "$ac_cv_has_makedev" = "no"; then
6559 # we didn't link, try if _OSF_SOURCE will allow us to link
6560 cat >conftest.$ac_ext <<_ACEOF
6561 /* confdefs.h. */
6562 _ACEOF
6563 cat confdefs.h >>conftest.$ac_ext
6564 cat >>conftest.$ac_ext <<_ACEOF
6565 /* end confdefs.h. */
6567 #define _OSF_SOURCE 1
6568 #include <sys/types.h>
6571 main ()
6573 makedev(0, 0)
6575 return 0;
6577 _ACEOF
6578 rm -f conftest.$ac_objext conftest$ac_exeext
6579 if { (ac_try="$ac_link"
6580 case "(($ac_try" in
6581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6582 *) ac_try_echo=$ac_try;;
6583 esac
6584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6585 (eval "$ac_link") 2>conftest.er1
6586 ac_status=$?
6587 grep -v '^ *+' conftest.er1 >conftest.err
6588 rm -f conftest.er1
6589 cat conftest.err >&5
6590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591 (exit $ac_status); } && {
6592 test -z "$ac_c_werror_flag" ||
6593 test ! -s conftest.err
6594 } && test -s conftest$ac_exeext &&
6595 $as_test_x conftest$ac_exeext; then
6596 ac_cv_has_makedev=yes
6597 else
6598 echo "$as_me: failed program was:" >&5
6599 sed 's/^/| /' conftest.$ac_ext >&5
6601 ac_cv_has_makedev=no
6604 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6605 conftest$ac_exeext conftest.$ac_ext
6606 if test "$ac_cv_has_makedev" = "yes"; then
6608 cat >>confdefs.h <<\_ACEOF
6609 #define _OSF_SOURCE 1
6610 _ACEOF
6614 { echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
6615 echo "${ECHO_T}$ac_cv_has_makedev" >&6; }
6616 if test "$ac_cv_has_makedev" = "yes"; then
6618 cat >>confdefs.h <<\_ACEOF
6619 #define HAVE_MAKEDEV 1
6620 _ACEOF
6624 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
6625 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
6626 # defined, but the compiler does not support pragma redefine_extname,
6627 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
6628 # structures (such as rlimit64) without declaring them. As a
6629 # work-around, disable LFS on such configurations
6631 use_lfs=yes
6632 { echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
6633 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6; }
6634 cat >conftest.$ac_ext <<_ACEOF
6635 /* confdefs.h. */
6636 _ACEOF
6637 cat confdefs.h >>conftest.$ac_ext
6638 cat >>conftest.$ac_ext <<_ACEOF
6639 /* end confdefs.h. */
6641 #define _LARGEFILE_SOURCE 1
6642 #define _FILE_OFFSET_BITS 64
6643 #include <sys/resource.h>
6646 main ()
6648 struct rlimit foo;
6650 return 0;
6652 _ACEOF
6653 rm -f conftest.$ac_objext
6654 if { (ac_try="$ac_compile"
6655 case "(($ac_try" in
6656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6657 *) ac_try_echo=$ac_try;;
6658 esac
6659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6660 (eval "$ac_compile") 2>conftest.er1
6661 ac_status=$?
6662 grep -v '^ *+' conftest.er1 >conftest.err
6663 rm -f conftest.er1
6664 cat conftest.err >&5
6665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666 (exit $ac_status); } && {
6667 test -z "$ac_c_werror_flag" ||
6668 test ! -s conftest.err
6669 } && test -s conftest.$ac_objext; then
6670 sol_lfs_bug=no
6671 else
6672 echo "$as_me: failed program was:" >&5
6673 sed 's/^/| /' conftest.$ac_ext >&5
6675 sol_lfs_bug=yes
6678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6679 { echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
6680 echo "${ECHO_T}$sol_lfs_bug" >&6; }
6681 if test "$sol_lfs_bug" = "yes"; then
6682 use_lfs=no
6685 if test "$use_lfs" = "yes"; then
6686 # Two defines needed to enable largefile support on various platforms
6687 # These may affect some typedefs
6689 cat >>confdefs.h <<\_ACEOF
6690 #define _LARGEFILE_SOURCE 1
6691 _ACEOF
6694 cat >>confdefs.h <<\_ACEOF
6695 #define _FILE_OFFSET_BITS 64
6696 _ACEOF
6700 # Add some code to confdefs.h so that the test for off_t works on SCO
6701 cat >> confdefs.h <<\EOF
6702 #if defined(SCO_DS)
6703 #undef _OFF_T
6704 #endif
6707 # Type availability checks
6708 { echo "$as_me:$LINENO: checking for mode_t" >&5
6709 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
6710 if test "${ac_cv_type_mode_t+set}" = set; then
6711 echo $ECHO_N "(cached) $ECHO_C" >&6
6712 else
6713 cat >conftest.$ac_ext <<_ACEOF
6714 /* confdefs.h. */
6715 _ACEOF
6716 cat confdefs.h >>conftest.$ac_ext
6717 cat >>conftest.$ac_ext <<_ACEOF
6718 /* end confdefs.h. */
6719 $ac_includes_default
6720 typedef mode_t ac__type_new_;
6722 main ()
6724 if ((ac__type_new_ *) 0)
6725 return 0;
6726 if (sizeof (ac__type_new_))
6727 return 0;
6729 return 0;
6731 _ACEOF
6732 rm -f conftest.$ac_objext
6733 if { (ac_try="$ac_compile"
6734 case "(($ac_try" in
6735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6736 *) ac_try_echo=$ac_try;;
6737 esac
6738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6739 (eval "$ac_compile") 2>conftest.er1
6740 ac_status=$?
6741 grep -v '^ *+' conftest.er1 >conftest.err
6742 rm -f conftest.er1
6743 cat conftest.err >&5
6744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6745 (exit $ac_status); } && {
6746 test -z "$ac_c_werror_flag" ||
6747 test ! -s conftest.err
6748 } && test -s conftest.$ac_objext; then
6749 ac_cv_type_mode_t=yes
6750 else
6751 echo "$as_me: failed program was:" >&5
6752 sed 's/^/| /' conftest.$ac_ext >&5
6754 ac_cv_type_mode_t=no
6757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6759 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6760 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
6761 if test $ac_cv_type_mode_t = yes; then
6763 else
6765 cat >>confdefs.h <<_ACEOF
6766 #define mode_t int
6767 _ACEOF
6771 { echo "$as_me:$LINENO: checking for off_t" >&5
6772 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
6773 if test "${ac_cv_type_off_t+set}" = set; then
6774 echo $ECHO_N "(cached) $ECHO_C" >&6
6775 else
6776 cat >conftest.$ac_ext <<_ACEOF
6777 /* confdefs.h. */
6778 _ACEOF
6779 cat confdefs.h >>conftest.$ac_ext
6780 cat >>conftest.$ac_ext <<_ACEOF
6781 /* end confdefs.h. */
6782 $ac_includes_default
6783 typedef off_t ac__type_new_;
6785 main ()
6787 if ((ac__type_new_ *) 0)
6788 return 0;
6789 if (sizeof (ac__type_new_))
6790 return 0;
6792 return 0;
6794 _ACEOF
6795 rm -f conftest.$ac_objext
6796 if { (ac_try="$ac_compile"
6797 case "(($ac_try" in
6798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6799 *) ac_try_echo=$ac_try;;
6800 esac
6801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6802 (eval "$ac_compile") 2>conftest.er1
6803 ac_status=$?
6804 grep -v '^ *+' conftest.er1 >conftest.err
6805 rm -f conftest.er1
6806 cat conftest.err >&5
6807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808 (exit $ac_status); } && {
6809 test -z "$ac_c_werror_flag" ||
6810 test ! -s conftest.err
6811 } && test -s conftest.$ac_objext; then
6812 ac_cv_type_off_t=yes
6813 else
6814 echo "$as_me: failed program was:" >&5
6815 sed 's/^/| /' conftest.$ac_ext >&5
6817 ac_cv_type_off_t=no
6820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6822 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6823 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
6824 if test $ac_cv_type_off_t = yes; then
6826 else
6828 cat >>confdefs.h <<_ACEOF
6829 #define off_t long int
6830 _ACEOF
6834 { echo "$as_me:$LINENO: checking for pid_t" >&5
6835 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
6836 if test "${ac_cv_type_pid_t+set}" = set; then
6837 echo $ECHO_N "(cached) $ECHO_C" >&6
6838 else
6839 cat >conftest.$ac_ext <<_ACEOF
6840 /* confdefs.h. */
6841 _ACEOF
6842 cat confdefs.h >>conftest.$ac_ext
6843 cat >>conftest.$ac_ext <<_ACEOF
6844 /* end confdefs.h. */
6845 $ac_includes_default
6846 typedef pid_t ac__type_new_;
6848 main ()
6850 if ((ac__type_new_ *) 0)
6851 return 0;
6852 if (sizeof (ac__type_new_))
6853 return 0;
6855 return 0;
6857 _ACEOF
6858 rm -f conftest.$ac_objext
6859 if { (ac_try="$ac_compile"
6860 case "(($ac_try" in
6861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6862 *) ac_try_echo=$ac_try;;
6863 esac
6864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6865 (eval "$ac_compile") 2>conftest.er1
6866 ac_status=$?
6867 grep -v '^ *+' conftest.er1 >conftest.err
6868 rm -f conftest.er1
6869 cat conftest.err >&5
6870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6871 (exit $ac_status); } && {
6872 test -z "$ac_c_werror_flag" ||
6873 test ! -s conftest.err
6874 } && test -s conftest.$ac_objext; then
6875 ac_cv_type_pid_t=yes
6876 else
6877 echo "$as_me: failed program was:" >&5
6878 sed 's/^/| /' conftest.$ac_ext >&5
6880 ac_cv_type_pid_t=no
6883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6885 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6886 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
6887 if test $ac_cv_type_pid_t = yes; then
6889 else
6891 cat >>confdefs.h <<_ACEOF
6892 #define pid_t int
6893 _ACEOF
6897 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6898 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
6899 if test "${ac_cv_type_signal+set}" = set; then
6900 echo $ECHO_N "(cached) $ECHO_C" >&6
6901 else
6902 cat >conftest.$ac_ext <<_ACEOF
6903 /* confdefs.h. */
6904 _ACEOF
6905 cat confdefs.h >>conftest.$ac_ext
6906 cat >>conftest.$ac_ext <<_ACEOF
6907 /* end confdefs.h. */
6908 #include <sys/types.h>
6909 #include <signal.h>
6912 main ()
6914 return *(signal (0, 0)) (0) == 1;
6916 return 0;
6918 _ACEOF
6919 rm -f conftest.$ac_objext
6920 if { (ac_try="$ac_compile"
6921 case "(($ac_try" in
6922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6923 *) ac_try_echo=$ac_try;;
6924 esac
6925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6926 (eval "$ac_compile") 2>conftest.er1
6927 ac_status=$?
6928 grep -v '^ *+' conftest.er1 >conftest.err
6929 rm -f conftest.er1
6930 cat conftest.err >&5
6931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6932 (exit $ac_status); } && {
6933 test -z "$ac_c_werror_flag" ||
6934 test ! -s conftest.err
6935 } && test -s conftest.$ac_objext; then
6936 ac_cv_type_signal=int
6937 else
6938 echo "$as_me: failed program was:" >&5
6939 sed 's/^/| /' conftest.$ac_ext >&5
6941 ac_cv_type_signal=void
6944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6946 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6947 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
6949 cat >>confdefs.h <<_ACEOF
6950 #define RETSIGTYPE $ac_cv_type_signal
6951 _ACEOF
6954 { echo "$as_me:$LINENO: checking for size_t" >&5
6955 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
6956 if test "${ac_cv_type_size_t+set}" = set; then
6957 echo $ECHO_N "(cached) $ECHO_C" >&6
6958 else
6959 cat >conftest.$ac_ext <<_ACEOF
6960 /* confdefs.h. */
6961 _ACEOF
6962 cat confdefs.h >>conftest.$ac_ext
6963 cat >>conftest.$ac_ext <<_ACEOF
6964 /* end confdefs.h. */
6965 $ac_includes_default
6966 typedef size_t ac__type_new_;
6968 main ()
6970 if ((ac__type_new_ *) 0)
6971 return 0;
6972 if (sizeof (ac__type_new_))
6973 return 0;
6975 return 0;
6977 _ACEOF
6978 rm -f conftest.$ac_objext
6979 if { (ac_try="$ac_compile"
6980 case "(($ac_try" in
6981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6982 *) ac_try_echo=$ac_try;;
6983 esac
6984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6985 (eval "$ac_compile") 2>conftest.er1
6986 ac_status=$?
6987 grep -v '^ *+' conftest.er1 >conftest.err
6988 rm -f conftest.er1
6989 cat conftest.err >&5
6990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6991 (exit $ac_status); } && {
6992 test -z "$ac_c_werror_flag" ||
6993 test ! -s conftest.err
6994 } && test -s conftest.$ac_objext; then
6995 ac_cv_type_size_t=yes
6996 else
6997 echo "$as_me: failed program was:" >&5
6998 sed 's/^/| /' conftest.$ac_ext >&5
7000 ac_cv_type_size_t=no
7003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7005 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7006 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
7007 if test $ac_cv_type_size_t = yes; then
7009 else
7011 cat >>confdefs.h <<_ACEOF
7012 #define size_t unsigned int
7013 _ACEOF
7017 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7018 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
7019 if test "${ac_cv_type_uid_t+set}" = set; then
7020 echo $ECHO_N "(cached) $ECHO_C" >&6
7021 else
7022 cat >conftest.$ac_ext <<_ACEOF
7023 /* confdefs.h. */
7024 _ACEOF
7025 cat confdefs.h >>conftest.$ac_ext
7026 cat >>conftest.$ac_ext <<_ACEOF
7027 /* end confdefs.h. */
7028 #include <sys/types.h>
7030 _ACEOF
7031 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7032 $EGREP "uid_t" >/dev/null 2>&1; then
7033 ac_cv_type_uid_t=yes
7034 else
7035 ac_cv_type_uid_t=no
7037 rm -f -r conftest*
7040 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7041 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
7042 if test $ac_cv_type_uid_t = no; then
7044 cat >>confdefs.h <<\_ACEOF
7045 #define uid_t int
7046 _ACEOF
7049 cat >>confdefs.h <<\_ACEOF
7050 #define gid_t int
7051 _ACEOF
7056 { echo "$as_me:$LINENO: checking for uint32_t" >&5
7057 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
7058 if test "${ac_cv_c_uint32_t+set}" = set; then
7059 echo $ECHO_N "(cached) $ECHO_C" >&6
7060 else
7061 ac_cv_c_uint32_t=no
7062 for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
7063 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7064 cat >conftest.$ac_ext <<_ACEOF
7065 /* confdefs.h. */
7066 _ACEOF
7067 cat confdefs.h >>conftest.$ac_ext
7068 cat >>conftest.$ac_ext <<_ACEOF
7069 /* end confdefs.h. */
7070 $ac_includes_default
7072 main ()
7074 static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
7075 test_array [0] = 0
7078 return 0;
7080 _ACEOF
7081 rm -f conftest.$ac_objext
7082 if { (ac_try="$ac_compile"
7083 case "(($ac_try" in
7084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7085 *) ac_try_echo=$ac_try;;
7086 esac
7087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7088 (eval "$ac_compile") 2>conftest.er1
7089 ac_status=$?
7090 grep -v '^ *+' conftest.er1 >conftest.err
7091 rm -f conftest.er1
7092 cat conftest.err >&5
7093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7094 (exit $ac_status); } && {
7095 test -z "$ac_c_werror_flag" ||
7096 test ! -s conftest.err
7097 } && test -s conftest.$ac_objext; then
7098 case $ac_type in
7099 uint32_t) ac_cv_c_uint32_t=yes ;;
7100 *) ac_cv_c_uint32_t=$ac_type ;;
7101 esac
7103 else
7104 echo "$as_me: failed program was:" >&5
7105 sed 's/^/| /' conftest.$ac_ext >&5
7110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7111 test "$ac_cv_c_uint32_t" != no && break
7112 done
7114 { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
7115 echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; }
7116 case $ac_cv_c_uint32_t in #(
7117 no|yes) ;; #(
7120 cat >>confdefs.h <<\_ACEOF
7121 #define _UINT32_T 1
7122 _ACEOF
7125 cat >>confdefs.h <<_ACEOF
7126 #define uint32_t $ac_cv_c_uint32_t
7127 _ACEOF
7129 esac
7132 { echo "$as_me:$LINENO: checking for uint64_t" >&5
7133 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
7134 if test "${ac_cv_c_uint64_t+set}" = set; then
7135 echo $ECHO_N "(cached) $ECHO_C" >&6
7136 else
7137 ac_cv_c_uint64_t=no
7138 for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \
7139 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7140 cat >conftest.$ac_ext <<_ACEOF
7141 /* confdefs.h. */
7142 _ACEOF
7143 cat confdefs.h >>conftest.$ac_ext
7144 cat >>conftest.$ac_ext <<_ACEOF
7145 /* end confdefs.h. */
7146 $ac_includes_default
7148 main ()
7150 static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
7151 test_array [0] = 0
7154 return 0;
7156 _ACEOF
7157 rm -f conftest.$ac_objext
7158 if { (ac_try="$ac_compile"
7159 case "(($ac_try" in
7160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7161 *) ac_try_echo=$ac_try;;
7162 esac
7163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7164 (eval "$ac_compile") 2>conftest.er1
7165 ac_status=$?
7166 grep -v '^ *+' conftest.er1 >conftest.err
7167 rm -f conftest.er1
7168 cat conftest.err >&5
7169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7170 (exit $ac_status); } && {
7171 test -z "$ac_c_werror_flag" ||
7172 test ! -s conftest.err
7173 } && test -s conftest.$ac_objext; then
7174 case $ac_type in
7175 uint64_t) ac_cv_c_uint64_t=yes ;;
7176 *) ac_cv_c_uint64_t=$ac_type ;;
7177 esac
7179 else
7180 echo "$as_me: failed program was:" >&5
7181 sed 's/^/| /' conftest.$ac_ext >&5
7186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7187 test "$ac_cv_c_uint64_t" != no && break
7188 done
7190 { echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
7191 echo "${ECHO_T}$ac_cv_c_uint64_t" >&6; }
7192 case $ac_cv_c_uint64_t in #(
7193 no|yes) ;; #(
7196 cat >>confdefs.h <<\_ACEOF
7197 #define _UINT64_T 1
7198 _ACEOF
7201 cat >>confdefs.h <<_ACEOF
7202 #define uint64_t $ac_cv_c_uint64_t
7203 _ACEOF
7205 esac
7208 { echo "$as_me:$LINENO: checking for int32_t" >&5
7209 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
7210 if test "${ac_cv_c_int32_t+set}" = set; then
7211 echo $ECHO_N "(cached) $ECHO_C" >&6
7212 else
7213 ac_cv_c_int32_t=no
7214 for ac_type in 'int32_t' 'int' 'long int' \
7215 'long long int' 'short int' 'signed char'; do
7216 cat >conftest.$ac_ext <<_ACEOF
7217 /* confdefs.h. */
7218 _ACEOF
7219 cat confdefs.h >>conftest.$ac_ext
7220 cat >>conftest.$ac_ext <<_ACEOF
7221 /* end confdefs.h. */
7222 $ac_includes_default
7224 main ()
7226 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
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
7250 cat >conftest.$ac_ext <<_ACEOF
7251 /* confdefs.h. */
7252 _ACEOF
7253 cat confdefs.h >>conftest.$ac_ext
7254 cat >>conftest.$ac_ext <<_ACEOF
7255 /* end confdefs.h. */
7256 $ac_includes_default
7258 main ()
7260 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
7261 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
7262 test_array [0] = 0
7265 return 0;
7267 _ACEOF
7268 rm -f conftest.$ac_objext
7269 if { (ac_try="$ac_compile"
7270 case "(($ac_try" in
7271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7272 *) ac_try_echo=$ac_try;;
7273 esac
7274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7275 (eval "$ac_compile") 2>conftest.er1
7276 ac_status=$?
7277 grep -v '^ *+' conftest.er1 >conftest.err
7278 rm -f conftest.er1
7279 cat conftest.err >&5
7280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7281 (exit $ac_status); } && {
7282 test -z "$ac_c_werror_flag" ||
7283 test ! -s conftest.err
7284 } && test -s conftest.$ac_objext; then
7286 else
7287 echo "$as_me: failed program was:" >&5
7288 sed 's/^/| /' conftest.$ac_ext >&5
7290 case $ac_type in
7291 int32_t) ac_cv_c_int32_t=yes ;;
7292 *) ac_cv_c_int32_t=$ac_type ;;
7293 esac
7297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7298 else
7299 echo "$as_me: failed program was:" >&5
7300 sed 's/^/| /' conftest.$ac_ext >&5
7305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7306 test "$ac_cv_c_int32_t" != no && break
7307 done
7309 { echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
7310 echo "${ECHO_T}$ac_cv_c_int32_t" >&6; }
7311 case $ac_cv_c_int32_t in #(
7312 no|yes) ;; #(
7315 cat >>confdefs.h <<_ACEOF
7316 #define int32_t $ac_cv_c_int32_t
7317 _ACEOF
7319 esac
7322 { echo "$as_me:$LINENO: checking for int64_t" >&5
7323 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
7324 if test "${ac_cv_c_int64_t+set}" = set; then
7325 echo $ECHO_N "(cached) $ECHO_C" >&6
7326 else
7327 ac_cv_c_int64_t=no
7328 for ac_type in 'int64_t' 'int' 'long int' \
7329 'long long int' 'short int' 'signed char'; do
7330 cat >conftest.$ac_ext <<_ACEOF
7331 /* confdefs.h. */
7332 _ACEOF
7333 cat confdefs.h >>conftest.$ac_ext
7334 cat >>conftest.$ac_ext <<_ACEOF
7335 /* end confdefs.h. */
7336 $ac_includes_default
7338 main ()
7340 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
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
7364 cat >conftest.$ac_ext <<_ACEOF
7365 /* confdefs.h. */
7366 _ACEOF
7367 cat confdefs.h >>conftest.$ac_ext
7368 cat >>conftest.$ac_ext <<_ACEOF
7369 /* end confdefs.h. */
7370 $ac_includes_default
7372 main ()
7374 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
7375 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
7376 test_array [0] = 0
7379 return 0;
7381 _ACEOF
7382 rm -f conftest.$ac_objext
7383 if { (ac_try="$ac_compile"
7384 case "(($ac_try" in
7385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7386 *) ac_try_echo=$ac_try;;
7387 esac
7388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7389 (eval "$ac_compile") 2>conftest.er1
7390 ac_status=$?
7391 grep -v '^ *+' conftest.er1 >conftest.err
7392 rm -f conftest.er1
7393 cat conftest.err >&5
7394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7395 (exit $ac_status); } && {
7396 test -z "$ac_c_werror_flag" ||
7397 test ! -s conftest.err
7398 } && test -s conftest.$ac_objext; then
7400 else
7401 echo "$as_me: failed program was:" >&5
7402 sed 's/^/| /' conftest.$ac_ext >&5
7404 case $ac_type in
7405 int64_t) ac_cv_c_int64_t=yes ;;
7406 *) ac_cv_c_int64_t=$ac_type ;;
7407 esac
7411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7412 else
7413 echo "$as_me: failed program was:" >&5
7414 sed 's/^/| /' conftest.$ac_ext >&5
7419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7420 test "$ac_cv_c_int64_t" != no && break
7421 done
7423 { echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
7424 echo "${ECHO_T}$ac_cv_c_int64_t" >&6; }
7425 case $ac_cv_c_int64_t in #(
7426 no|yes) ;; #(
7429 cat >>confdefs.h <<_ACEOF
7430 #define int64_t $ac_cv_c_int64_t
7431 _ACEOF
7433 esac
7435 { echo "$as_me:$LINENO: checking for ssize_t" >&5
7436 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
7437 if test "${ac_cv_type_ssize_t+set}" = set; then
7438 echo $ECHO_N "(cached) $ECHO_C" >&6
7439 else
7440 cat >conftest.$ac_ext <<_ACEOF
7441 /* confdefs.h. */
7442 _ACEOF
7443 cat confdefs.h >>conftest.$ac_ext
7444 cat >>conftest.$ac_ext <<_ACEOF
7445 /* end confdefs.h. */
7446 $ac_includes_default
7447 typedef ssize_t ac__type_new_;
7449 main ()
7451 if ((ac__type_new_ *) 0)
7452 return 0;
7453 if (sizeof (ac__type_new_))
7454 return 0;
7456 return 0;
7458 _ACEOF
7459 rm -f conftest.$ac_objext
7460 if { (ac_try="$ac_compile"
7461 case "(($ac_try" in
7462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7463 *) ac_try_echo=$ac_try;;
7464 esac
7465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7466 (eval "$ac_compile") 2>conftest.er1
7467 ac_status=$?
7468 grep -v '^ *+' conftest.er1 >conftest.err
7469 rm -f conftest.er1
7470 cat conftest.err >&5
7471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7472 (exit $ac_status); } && {
7473 test -z "$ac_c_werror_flag" ||
7474 test ! -s conftest.err
7475 } && test -s conftest.$ac_objext; then
7476 ac_cv_type_ssize_t=yes
7477 else
7478 echo "$as_me: failed program was:" >&5
7479 sed 's/^/| /' conftest.$ac_ext >&5
7481 ac_cv_type_ssize_t=no
7484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7486 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
7487 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
7488 if test $ac_cv_type_ssize_t = yes; then
7490 cat >>confdefs.h <<\_ACEOF
7491 #define HAVE_SSIZE_T 1
7492 _ACEOF
7497 # Sizes of various common basic types
7498 # ANSI C requires sizeof(char) == 1, so no need to check it
7499 { echo "$as_me:$LINENO: checking for int" >&5
7500 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
7501 if test "${ac_cv_type_int+set}" = set; then
7502 echo $ECHO_N "(cached) $ECHO_C" >&6
7503 else
7504 cat >conftest.$ac_ext <<_ACEOF
7505 /* confdefs.h. */
7506 _ACEOF
7507 cat confdefs.h >>conftest.$ac_ext
7508 cat >>conftest.$ac_ext <<_ACEOF
7509 /* end confdefs.h. */
7510 $ac_includes_default
7511 typedef int ac__type_new_;
7513 main ()
7515 if ((ac__type_new_ *) 0)
7516 return 0;
7517 if (sizeof (ac__type_new_))
7518 return 0;
7520 return 0;
7522 _ACEOF
7523 rm -f conftest.$ac_objext
7524 if { (ac_try="$ac_compile"
7525 case "(($ac_try" in
7526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7527 *) ac_try_echo=$ac_try;;
7528 esac
7529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7530 (eval "$ac_compile") 2>conftest.er1
7531 ac_status=$?
7532 grep -v '^ *+' conftest.er1 >conftest.err
7533 rm -f conftest.er1
7534 cat conftest.err >&5
7535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7536 (exit $ac_status); } && {
7537 test -z "$ac_c_werror_flag" ||
7538 test ! -s conftest.err
7539 } && test -s conftest.$ac_objext; then
7540 ac_cv_type_int=yes
7541 else
7542 echo "$as_me: failed program was:" >&5
7543 sed 's/^/| /' conftest.$ac_ext >&5
7545 ac_cv_type_int=no
7548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7550 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
7551 echo "${ECHO_T}$ac_cv_type_int" >&6; }
7553 # The cast to long int works around a bug in the HP C Compiler
7554 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7555 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7556 # This bug is HP SR number 8606223364.
7557 { echo "$as_me:$LINENO: checking size of int" >&5
7558 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
7559 if test "${ac_cv_sizeof_int+set}" = set; then
7560 echo $ECHO_N "(cached) $ECHO_C" >&6
7561 else
7562 if test "$cross_compiling" = yes; then
7563 # Depending upon the size, compute the lo and hi bounds.
7564 cat >conftest.$ac_ext <<_ACEOF
7565 /* confdefs.h. */
7566 _ACEOF
7567 cat confdefs.h >>conftest.$ac_ext
7568 cat >>conftest.$ac_ext <<_ACEOF
7569 /* end confdefs.h. */
7570 $ac_includes_default
7571 typedef int ac__type_sizeof_;
7573 main ()
7575 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7576 test_array [0] = 0
7579 return 0;
7581 _ACEOF
7582 rm -f conftest.$ac_objext
7583 if { (ac_try="$ac_compile"
7584 case "(($ac_try" in
7585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7586 *) ac_try_echo=$ac_try;;
7587 esac
7588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7589 (eval "$ac_compile") 2>conftest.er1
7590 ac_status=$?
7591 grep -v '^ *+' conftest.er1 >conftest.err
7592 rm -f conftest.er1
7593 cat conftest.err >&5
7594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7595 (exit $ac_status); } && {
7596 test -z "$ac_c_werror_flag" ||
7597 test ! -s conftest.err
7598 } && test -s conftest.$ac_objext; then
7599 ac_lo=0 ac_mid=0
7600 while :; do
7601 cat >conftest.$ac_ext <<_ACEOF
7602 /* confdefs.h. */
7603 _ACEOF
7604 cat confdefs.h >>conftest.$ac_ext
7605 cat >>conftest.$ac_ext <<_ACEOF
7606 /* end confdefs.h. */
7607 $ac_includes_default
7608 typedef int ac__type_sizeof_;
7610 main ()
7612 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7613 test_array [0] = 0
7616 return 0;
7618 _ACEOF
7619 rm -f conftest.$ac_objext
7620 if { (ac_try="$ac_compile"
7621 case "(($ac_try" in
7622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7623 *) ac_try_echo=$ac_try;;
7624 esac
7625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7626 (eval "$ac_compile") 2>conftest.er1
7627 ac_status=$?
7628 grep -v '^ *+' conftest.er1 >conftest.err
7629 rm -f conftest.er1
7630 cat conftest.err >&5
7631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7632 (exit $ac_status); } && {
7633 test -z "$ac_c_werror_flag" ||
7634 test ! -s conftest.err
7635 } && test -s conftest.$ac_objext; then
7636 ac_hi=$ac_mid; break
7637 else
7638 echo "$as_me: failed program was:" >&5
7639 sed 's/^/| /' conftest.$ac_ext >&5
7641 ac_lo=`expr $ac_mid + 1`
7642 if test $ac_lo -le $ac_mid; then
7643 ac_lo= ac_hi=
7644 break
7646 ac_mid=`expr 2 '*' $ac_mid + 1`
7649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7650 done
7651 else
7652 echo "$as_me: failed program was:" >&5
7653 sed 's/^/| /' conftest.$ac_ext >&5
7655 cat >conftest.$ac_ext <<_ACEOF
7656 /* confdefs.h. */
7657 _ACEOF
7658 cat confdefs.h >>conftest.$ac_ext
7659 cat >>conftest.$ac_ext <<_ACEOF
7660 /* end confdefs.h. */
7661 $ac_includes_default
7662 typedef int ac__type_sizeof_;
7664 main ()
7666 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7667 test_array [0] = 0
7670 return 0;
7672 _ACEOF
7673 rm -f conftest.$ac_objext
7674 if { (ac_try="$ac_compile"
7675 case "(($ac_try" in
7676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7677 *) ac_try_echo=$ac_try;;
7678 esac
7679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7680 (eval "$ac_compile") 2>conftest.er1
7681 ac_status=$?
7682 grep -v '^ *+' conftest.er1 >conftest.err
7683 rm -f conftest.er1
7684 cat conftest.err >&5
7685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7686 (exit $ac_status); } && {
7687 test -z "$ac_c_werror_flag" ||
7688 test ! -s conftest.err
7689 } && test -s conftest.$ac_objext; then
7690 ac_hi=-1 ac_mid=-1
7691 while :; do
7692 cat >conftest.$ac_ext <<_ACEOF
7693 /* confdefs.h. */
7694 _ACEOF
7695 cat confdefs.h >>conftest.$ac_ext
7696 cat >>conftest.$ac_ext <<_ACEOF
7697 /* end confdefs.h. */
7698 $ac_includes_default
7699 typedef int ac__type_sizeof_;
7701 main ()
7703 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7704 test_array [0] = 0
7707 return 0;
7709 _ACEOF
7710 rm -f conftest.$ac_objext
7711 if { (ac_try="$ac_compile"
7712 case "(($ac_try" in
7713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7714 *) ac_try_echo=$ac_try;;
7715 esac
7716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7717 (eval "$ac_compile") 2>conftest.er1
7718 ac_status=$?
7719 grep -v '^ *+' conftest.er1 >conftest.err
7720 rm -f conftest.er1
7721 cat conftest.err >&5
7722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7723 (exit $ac_status); } && {
7724 test -z "$ac_c_werror_flag" ||
7725 test ! -s conftest.err
7726 } && test -s conftest.$ac_objext; then
7727 ac_lo=$ac_mid; break
7728 else
7729 echo "$as_me: failed program was:" >&5
7730 sed 's/^/| /' conftest.$ac_ext >&5
7732 ac_hi=`expr '(' $ac_mid ')' - 1`
7733 if test $ac_mid -le $ac_hi; then
7734 ac_lo= ac_hi=
7735 break
7737 ac_mid=`expr 2 '*' $ac_mid`
7740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7741 done
7742 else
7743 echo "$as_me: failed program was:" >&5
7744 sed 's/^/| /' conftest.$ac_ext >&5
7746 ac_lo= ac_hi=
7749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7753 # Binary search between lo and hi bounds.
7754 while test "x$ac_lo" != "x$ac_hi"; do
7755 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7756 cat >conftest.$ac_ext <<_ACEOF
7757 /* confdefs.h. */
7758 _ACEOF
7759 cat confdefs.h >>conftest.$ac_ext
7760 cat >>conftest.$ac_ext <<_ACEOF
7761 /* end confdefs.h. */
7762 $ac_includes_default
7763 typedef int ac__type_sizeof_;
7765 main ()
7767 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7768 test_array [0] = 0
7771 return 0;
7773 _ACEOF
7774 rm -f conftest.$ac_objext
7775 if { (ac_try="$ac_compile"
7776 case "(($ac_try" in
7777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7778 *) ac_try_echo=$ac_try;;
7779 esac
7780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7781 (eval "$ac_compile") 2>conftest.er1
7782 ac_status=$?
7783 grep -v '^ *+' conftest.er1 >conftest.err
7784 rm -f conftest.er1
7785 cat conftest.err >&5
7786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7787 (exit $ac_status); } && {
7788 test -z "$ac_c_werror_flag" ||
7789 test ! -s conftest.err
7790 } && test -s conftest.$ac_objext; then
7791 ac_hi=$ac_mid
7792 else
7793 echo "$as_me: failed program was:" >&5
7794 sed 's/^/| /' conftest.$ac_ext >&5
7796 ac_lo=`expr '(' $ac_mid ')' + 1`
7799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7800 done
7801 case $ac_lo in
7802 ?*) ac_cv_sizeof_int=$ac_lo;;
7803 '') if test "$ac_cv_type_int" = yes; then
7804 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7805 See \`config.log' for more details." >&5
7806 echo "$as_me: error: cannot compute sizeof (int)
7807 See \`config.log' for more details." >&2;}
7808 { (exit 77); exit 77; }; }
7809 else
7810 ac_cv_sizeof_int=0
7811 fi ;;
7812 esac
7813 else
7814 cat >conftest.$ac_ext <<_ACEOF
7815 /* confdefs.h. */
7816 _ACEOF
7817 cat confdefs.h >>conftest.$ac_ext
7818 cat >>conftest.$ac_ext <<_ACEOF
7819 /* end confdefs.h. */
7820 $ac_includes_default
7821 typedef int ac__type_sizeof_;
7822 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7823 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7824 #include <stdio.h>
7825 #include <stdlib.h>
7827 main ()
7830 FILE *f = fopen ("conftest.val", "w");
7831 if (! f)
7832 return 1;
7833 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7835 long int i = longval ();
7836 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7837 return 1;
7838 fprintf (f, "%ld\n", i);
7840 else
7842 unsigned long int i = ulongval ();
7843 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7844 return 1;
7845 fprintf (f, "%lu\n", i);
7847 return ferror (f) || fclose (f) != 0;
7850 return 0;
7852 _ACEOF
7853 rm -f conftest$ac_exeext
7854 if { (ac_try="$ac_link"
7855 case "(($ac_try" in
7856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7857 *) ac_try_echo=$ac_try;;
7858 esac
7859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7860 (eval "$ac_link") 2>&5
7861 ac_status=$?
7862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7863 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7864 { (case "(($ac_try" in
7865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7866 *) ac_try_echo=$ac_try;;
7867 esac
7868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7869 (eval "$ac_try") 2>&5
7870 ac_status=$?
7871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7872 (exit $ac_status); }; }; then
7873 ac_cv_sizeof_int=`cat conftest.val`
7874 else
7875 echo "$as_me: program exited with status $ac_status" >&5
7876 echo "$as_me: failed program was:" >&5
7877 sed 's/^/| /' conftest.$ac_ext >&5
7879 ( exit $ac_status )
7880 if test "$ac_cv_type_int" = yes; then
7881 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7882 See \`config.log' for more details." >&5
7883 echo "$as_me: error: cannot compute sizeof (int)
7884 See \`config.log' for more details." >&2;}
7885 { (exit 77); exit 77; }; }
7886 else
7887 ac_cv_sizeof_int=0
7890 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7892 rm -f conftest.val
7894 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
7895 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
7899 cat >>confdefs.h <<_ACEOF
7900 #define SIZEOF_INT $ac_cv_sizeof_int
7901 _ACEOF
7904 { echo "$as_me:$LINENO: checking for long" >&5
7905 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
7906 if test "${ac_cv_type_long+set}" = set; then
7907 echo $ECHO_N "(cached) $ECHO_C" >&6
7908 else
7909 cat >conftest.$ac_ext <<_ACEOF
7910 /* confdefs.h. */
7911 _ACEOF
7912 cat confdefs.h >>conftest.$ac_ext
7913 cat >>conftest.$ac_ext <<_ACEOF
7914 /* end confdefs.h. */
7915 $ac_includes_default
7916 typedef long ac__type_new_;
7918 main ()
7920 if ((ac__type_new_ *) 0)
7921 return 0;
7922 if (sizeof (ac__type_new_))
7923 return 0;
7925 return 0;
7927 _ACEOF
7928 rm -f conftest.$ac_objext
7929 if { (ac_try="$ac_compile"
7930 case "(($ac_try" in
7931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7932 *) ac_try_echo=$ac_try;;
7933 esac
7934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7935 (eval "$ac_compile") 2>conftest.er1
7936 ac_status=$?
7937 grep -v '^ *+' conftest.er1 >conftest.err
7938 rm -f conftest.er1
7939 cat conftest.err >&5
7940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7941 (exit $ac_status); } && {
7942 test -z "$ac_c_werror_flag" ||
7943 test ! -s conftest.err
7944 } && test -s conftest.$ac_objext; then
7945 ac_cv_type_long=yes
7946 else
7947 echo "$as_me: failed program was:" >&5
7948 sed 's/^/| /' conftest.$ac_ext >&5
7950 ac_cv_type_long=no
7953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7955 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
7956 echo "${ECHO_T}$ac_cv_type_long" >&6; }
7958 # The cast to long int works around a bug in the HP C Compiler
7959 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7960 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7961 # This bug is HP SR number 8606223364.
7962 { echo "$as_me:$LINENO: checking size of long" >&5
7963 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
7964 if test "${ac_cv_sizeof_long+set}" = set; then
7965 echo $ECHO_N "(cached) $ECHO_C" >&6
7966 else
7967 if test "$cross_compiling" = yes; then
7968 # Depending upon the size, compute the lo and hi bounds.
7969 cat >conftest.$ac_ext <<_ACEOF
7970 /* confdefs.h. */
7971 _ACEOF
7972 cat confdefs.h >>conftest.$ac_ext
7973 cat >>conftest.$ac_ext <<_ACEOF
7974 /* end confdefs.h. */
7975 $ac_includes_default
7976 typedef long ac__type_sizeof_;
7978 main ()
7980 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7981 test_array [0] = 0
7984 return 0;
7986 _ACEOF
7987 rm -f conftest.$ac_objext
7988 if { (ac_try="$ac_compile"
7989 case "(($ac_try" in
7990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7991 *) ac_try_echo=$ac_try;;
7992 esac
7993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7994 (eval "$ac_compile") 2>conftest.er1
7995 ac_status=$?
7996 grep -v '^ *+' conftest.er1 >conftest.err
7997 rm -f conftest.er1
7998 cat conftest.err >&5
7999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8000 (exit $ac_status); } && {
8001 test -z "$ac_c_werror_flag" ||
8002 test ! -s conftest.err
8003 } && test -s conftest.$ac_objext; then
8004 ac_lo=0 ac_mid=0
8005 while :; do
8006 cat >conftest.$ac_ext <<_ACEOF
8007 /* confdefs.h. */
8008 _ACEOF
8009 cat confdefs.h >>conftest.$ac_ext
8010 cat >>conftest.$ac_ext <<_ACEOF
8011 /* end confdefs.h. */
8012 $ac_includes_default
8013 typedef long ac__type_sizeof_;
8015 main ()
8017 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8018 test_array [0] = 0
8021 return 0;
8023 _ACEOF
8024 rm -f conftest.$ac_objext
8025 if { (ac_try="$ac_compile"
8026 case "(($ac_try" in
8027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8028 *) ac_try_echo=$ac_try;;
8029 esac
8030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8031 (eval "$ac_compile") 2>conftest.er1
8032 ac_status=$?
8033 grep -v '^ *+' conftest.er1 >conftest.err
8034 rm -f conftest.er1
8035 cat conftest.err >&5
8036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8037 (exit $ac_status); } && {
8038 test -z "$ac_c_werror_flag" ||
8039 test ! -s conftest.err
8040 } && test -s conftest.$ac_objext; then
8041 ac_hi=$ac_mid; break
8042 else
8043 echo "$as_me: failed program was:" >&5
8044 sed 's/^/| /' conftest.$ac_ext >&5
8046 ac_lo=`expr $ac_mid + 1`
8047 if test $ac_lo -le $ac_mid; then
8048 ac_lo= ac_hi=
8049 break
8051 ac_mid=`expr 2 '*' $ac_mid + 1`
8054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8055 done
8056 else
8057 echo "$as_me: failed program was:" >&5
8058 sed 's/^/| /' conftest.$ac_ext >&5
8060 cat >conftest.$ac_ext <<_ACEOF
8061 /* confdefs.h. */
8062 _ACEOF
8063 cat confdefs.h >>conftest.$ac_ext
8064 cat >>conftest.$ac_ext <<_ACEOF
8065 /* end confdefs.h. */
8066 $ac_includes_default
8067 typedef long ac__type_sizeof_;
8069 main ()
8071 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8072 test_array [0] = 0
8075 return 0;
8077 _ACEOF
8078 rm -f conftest.$ac_objext
8079 if { (ac_try="$ac_compile"
8080 case "(($ac_try" in
8081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8082 *) ac_try_echo=$ac_try;;
8083 esac
8084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8085 (eval "$ac_compile") 2>conftest.er1
8086 ac_status=$?
8087 grep -v '^ *+' conftest.er1 >conftest.err
8088 rm -f conftest.er1
8089 cat conftest.err >&5
8090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8091 (exit $ac_status); } && {
8092 test -z "$ac_c_werror_flag" ||
8093 test ! -s conftest.err
8094 } && test -s conftest.$ac_objext; then
8095 ac_hi=-1 ac_mid=-1
8096 while :; do
8097 cat >conftest.$ac_ext <<_ACEOF
8098 /* confdefs.h. */
8099 _ACEOF
8100 cat confdefs.h >>conftest.$ac_ext
8101 cat >>conftest.$ac_ext <<_ACEOF
8102 /* end confdefs.h. */
8103 $ac_includes_default
8104 typedef long ac__type_sizeof_;
8106 main ()
8108 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8109 test_array [0] = 0
8112 return 0;
8114 _ACEOF
8115 rm -f conftest.$ac_objext
8116 if { (ac_try="$ac_compile"
8117 case "(($ac_try" in
8118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8119 *) ac_try_echo=$ac_try;;
8120 esac
8121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8122 (eval "$ac_compile") 2>conftest.er1
8123 ac_status=$?
8124 grep -v '^ *+' conftest.er1 >conftest.err
8125 rm -f conftest.er1
8126 cat conftest.err >&5
8127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128 (exit $ac_status); } && {
8129 test -z "$ac_c_werror_flag" ||
8130 test ! -s conftest.err
8131 } && test -s conftest.$ac_objext; then
8132 ac_lo=$ac_mid; break
8133 else
8134 echo "$as_me: failed program was:" >&5
8135 sed 's/^/| /' conftest.$ac_ext >&5
8137 ac_hi=`expr '(' $ac_mid ')' - 1`
8138 if test $ac_mid -le $ac_hi; then
8139 ac_lo= ac_hi=
8140 break
8142 ac_mid=`expr 2 '*' $ac_mid`
8145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8146 done
8147 else
8148 echo "$as_me: failed program was:" >&5
8149 sed 's/^/| /' conftest.$ac_ext >&5
8151 ac_lo= ac_hi=
8154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8158 # Binary search between lo and hi bounds.
8159 while test "x$ac_lo" != "x$ac_hi"; do
8160 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8161 cat >conftest.$ac_ext <<_ACEOF
8162 /* confdefs.h. */
8163 _ACEOF
8164 cat confdefs.h >>conftest.$ac_ext
8165 cat >>conftest.$ac_ext <<_ACEOF
8166 /* end confdefs.h. */
8167 $ac_includes_default
8168 typedef long ac__type_sizeof_;
8170 main ()
8172 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8173 test_array [0] = 0
8176 return 0;
8178 _ACEOF
8179 rm -f conftest.$ac_objext
8180 if { (ac_try="$ac_compile"
8181 case "(($ac_try" in
8182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8183 *) ac_try_echo=$ac_try;;
8184 esac
8185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8186 (eval "$ac_compile") 2>conftest.er1
8187 ac_status=$?
8188 grep -v '^ *+' conftest.er1 >conftest.err
8189 rm -f conftest.er1
8190 cat conftest.err >&5
8191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192 (exit $ac_status); } && {
8193 test -z "$ac_c_werror_flag" ||
8194 test ! -s conftest.err
8195 } && test -s conftest.$ac_objext; then
8196 ac_hi=$ac_mid
8197 else
8198 echo "$as_me: failed program was:" >&5
8199 sed 's/^/| /' conftest.$ac_ext >&5
8201 ac_lo=`expr '(' $ac_mid ')' + 1`
8204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8205 done
8206 case $ac_lo in
8207 ?*) ac_cv_sizeof_long=$ac_lo;;
8208 '') if test "$ac_cv_type_long" = yes; then
8209 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
8210 See \`config.log' for more details." >&5
8211 echo "$as_me: error: cannot compute sizeof (long)
8212 See \`config.log' for more details." >&2;}
8213 { (exit 77); exit 77; }; }
8214 else
8215 ac_cv_sizeof_long=0
8216 fi ;;
8217 esac
8218 else
8219 cat >conftest.$ac_ext <<_ACEOF
8220 /* confdefs.h. */
8221 _ACEOF
8222 cat confdefs.h >>conftest.$ac_ext
8223 cat >>conftest.$ac_ext <<_ACEOF
8224 /* end confdefs.h. */
8225 $ac_includes_default
8226 typedef long ac__type_sizeof_;
8227 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8228 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8229 #include <stdio.h>
8230 #include <stdlib.h>
8232 main ()
8235 FILE *f = fopen ("conftest.val", "w");
8236 if (! f)
8237 return 1;
8238 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8240 long int i = longval ();
8241 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8242 return 1;
8243 fprintf (f, "%ld\n", i);
8245 else
8247 unsigned long int i = ulongval ();
8248 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8249 return 1;
8250 fprintf (f, "%lu\n", i);
8252 return ferror (f) || fclose (f) != 0;
8255 return 0;
8257 _ACEOF
8258 rm -f conftest$ac_exeext
8259 if { (ac_try="$ac_link"
8260 case "(($ac_try" in
8261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8262 *) ac_try_echo=$ac_try;;
8263 esac
8264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8265 (eval "$ac_link") 2>&5
8266 ac_status=$?
8267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8268 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8269 { (case "(($ac_try" in
8270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8271 *) ac_try_echo=$ac_try;;
8272 esac
8273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8274 (eval "$ac_try") 2>&5
8275 ac_status=$?
8276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8277 (exit $ac_status); }; }; then
8278 ac_cv_sizeof_long=`cat conftest.val`
8279 else
8280 echo "$as_me: program exited with status $ac_status" >&5
8281 echo "$as_me: failed program was:" >&5
8282 sed 's/^/| /' conftest.$ac_ext >&5
8284 ( exit $ac_status )
8285 if test "$ac_cv_type_long" = yes; then
8286 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
8287 See \`config.log' for more details." >&5
8288 echo "$as_me: error: cannot compute sizeof (long)
8289 See \`config.log' for more details." >&2;}
8290 { (exit 77); exit 77; }; }
8291 else
8292 ac_cv_sizeof_long=0
8295 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8297 rm -f conftest.val
8299 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
8300 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
8304 cat >>confdefs.h <<_ACEOF
8305 #define SIZEOF_LONG $ac_cv_sizeof_long
8306 _ACEOF
8309 { echo "$as_me:$LINENO: checking for void *" >&5
8310 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
8311 if test "${ac_cv_type_void_p+set}" = set; then
8312 echo $ECHO_N "(cached) $ECHO_C" >&6
8313 else
8314 cat >conftest.$ac_ext <<_ACEOF
8315 /* confdefs.h. */
8316 _ACEOF
8317 cat confdefs.h >>conftest.$ac_ext
8318 cat >>conftest.$ac_ext <<_ACEOF
8319 /* end confdefs.h. */
8320 $ac_includes_default
8321 typedef void * ac__type_new_;
8323 main ()
8325 if ((ac__type_new_ *) 0)
8326 return 0;
8327 if (sizeof (ac__type_new_))
8328 return 0;
8330 return 0;
8332 _ACEOF
8333 rm -f conftest.$ac_objext
8334 if { (ac_try="$ac_compile"
8335 case "(($ac_try" in
8336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8337 *) ac_try_echo=$ac_try;;
8338 esac
8339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8340 (eval "$ac_compile") 2>conftest.er1
8341 ac_status=$?
8342 grep -v '^ *+' conftest.er1 >conftest.err
8343 rm -f conftest.er1
8344 cat conftest.err >&5
8345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8346 (exit $ac_status); } && {
8347 test -z "$ac_c_werror_flag" ||
8348 test ! -s conftest.err
8349 } && test -s conftest.$ac_objext; then
8350 ac_cv_type_void_p=yes
8351 else
8352 echo "$as_me: failed program was:" >&5
8353 sed 's/^/| /' conftest.$ac_ext >&5
8355 ac_cv_type_void_p=no
8358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8360 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
8361 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
8363 # The cast to long int works around a bug in the HP C Compiler
8364 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8365 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8366 # This bug is HP SR number 8606223364.
8367 { echo "$as_me:$LINENO: checking size of void *" >&5
8368 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
8369 if test "${ac_cv_sizeof_void_p+set}" = set; then
8370 echo $ECHO_N "(cached) $ECHO_C" >&6
8371 else
8372 if test "$cross_compiling" = yes; then
8373 # Depending upon the size, compute the lo and hi bounds.
8374 cat >conftest.$ac_ext <<_ACEOF
8375 /* confdefs.h. */
8376 _ACEOF
8377 cat confdefs.h >>conftest.$ac_ext
8378 cat >>conftest.$ac_ext <<_ACEOF
8379 /* end confdefs.h. */
8380 $ac_includes_default
8381 typedef void * ac__type_sizeof_;
8383 main ()
8385 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8386 test_array [0] = 0
8389 return 0;
8391 _ACEOF
8392 rm -f conftest.$ac_objext
8393 if { (ac_try="$ac_compile"
8394 case "(($ac_try" in
8395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8396 *) ac_try_echo=$ac_try;;
8397 esac
8398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8399 (eval "$ac_compile") 2>conftest.er1
8400 ac_status=$?
8401 grep -v '^ *+' conftest.er1 >conftest.err
8402 rm -f conftest.er1
8403 cat conftest.err >&5
8404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8405 (exit $ac_status); } && {
8406 test -z "$ac_c_werror_flag" ||
8407 test ! -s conftest.err
8408 } && test -s conftest.$ac_objext; then
8409 ac_lo=0 ac_mid=0
8410 while :; do
8411 cat >conftest.$ac_ext <<_ACEOF
8412 /* confdefs.h. */
8413 _ACEOF
8414 cat confdefs.h >>conftest.$ac_ext
8415 cat >>conftest.$ac_ext <<_ACEOF
8416 /* end confdefs.h. */
8417 $ac_includes_default
8418 typedef void * ac__type_sizeof_;
8420 main ()
8422 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8423 test_array [0] = 0
8426 return 0;
8428 _ACEOF
8429 rm -f conftest.$ac_objext
8430 if { (ac_try="$ac_compile"
8431 case "(($ac_try" in
8432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8433 *) ac_try_echo=$ac_try;;
8434 esac
8435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8436 (eval "$ac_compile") 2>conftest.er1
8437 ac_status=$?
8438 grep -v '^ *+' conftest.er1 >conftest.err
8439 rm -f conftest.er1
8440 cat conftest.err >&5
8441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442 (exit $ac_status); } && {
8443 test -z "$ac_c_werror_flag" ||
8444 test ! -s conftest.err
8445 } && test -s conftest.$ac_objext; then
8446 ac_hi=$ac_mid; break
8447 else
8448 echo "$as_me: failed program was:" >&5
8449 sed 's/^/| /' conftest.$ac_ext >&5
8451 ac_lo=`expr $ac_mid + 1`
8452 if test $ac_lo -le $ac_mid; then
8453 ac_lo= ac_hi=
8454 break
8456 ac_mid=`expr 2 '*' $ac_mid + 1`
8459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8460 done
8461 else
8462 echo "$as_me: failed program was:" >&5
8463 sed 's/^/| /' conftest.$ac_ext >&5
8465 cat >conftest.$ac_ext <<_ACEOF
8466 /* confdefs.h. */
8467 _ACEOF
8468 cat confdefs.h >>conftest.$ac_ext
8469 cat >>conftest.$ac_ext <<_ACEOF
8470 /* end confdefs.h. */
8471 $ac_includes_default
8472 typedef void * ac__type_sizeof_;
8474 main ()
8476 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8477 test_array [0] = 0
8480 return 0;
8482 _ACEOF
8483 rm -f conftest.$ac_objext
8484 if { (ac_try="$ac_compile"
8485 case "(($ac_try" in
8486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8487 *) ac_try_echo=$ac_try;;
8488 esac
8489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8490 (eval "$ac_compile") 2>conftest.er1
8491 ac_status=$?
8492 grep -v '^ *+' conftest.er1 >conftest.err
8493 rm -f conftest.er1
8494 cat conftest.err >&5
8495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496 (exit $ac_status); } && {
8497 test -z "$ac_c_werror_flag" ||
8498 test ! -s conftest.err
8499 } && test -s conftest.$ac_objext; then
8500 ac_hi=-1 ac_mid=-1
8501 while :; do
8502 cat >conftest.$ac_ext <<_ACEOF
8503 /* confdefs.h. */
8504 _ACEOF
8505 cat confdefs.h >>conftest.$ac_ext
8506 cat >>conftest.$ac_ext <<_ACEOF
8507 /* end confdefs.h. */
8508 $ac_includes_default
8509 typedef void * ac__type_sizeof_;
8511 main ()
8513 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8514 test_array [0] = 0
8517 return 0;
8519 _ACEOF
8520 rm -f conftest.$ac_objext
8521 if { (ac_try="$ac_compile"
8522 case "(($ac_try" in
8523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8524 *) ac_try_echo=$ac_try;;
8525 esac
8526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8527 (eval "$ac_compile") 2>conftest.er1
8528 ac_status=$?
8529 grep -v '^ *+' conftest.er1 >conftest.err
8530 rm -f conftest.er1
8531 cat conftest.err >&5
8532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533 (exit $ac_status); } && {
8534 test -z "$ac_c_werror_flag" ||
8535 test ! -s conftest.err
8536 } && test -s conftest.$ac_objext; then
8537 ac_lo=$ac_mid; break
8538 else
8539 echo "$as_me: failed program was:" >&5
8540 sed 's/^/| /' conftest.$ac_ext >&5
8542 ac_hi=`expr '(' $ac_mid ')' - 1`
8543 if test $ac_mid -le $ac_hi; then
8544 ac_lo= ac_hi=
8545 break
8547 ac_mid=`expr 2 '*' $ac_mid`
8550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8551 done
8552 else
8553 echo "$as_me: failed program was:" >&5
8554 sed 's/^/| /' conftest.$ac_ext >&5
8556 ac_lo= ac_hi=
8559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8563 # Binary search between lo and hi bounds.
8564 while test "x$ac_lo" != "x$ac_hi"; do
8565 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8566 cat >conftest.$ac_ext <<_ACEOF
8567 /* confdefs.h. */
8568 _ACEOF
8569 cat confdefs.h >>conftest.$ac_ext
8570 cat >>conftest.$ac_ext <<_ACEOF
8571 /* end confdefs.h. */
8572 $ac_includes_default
8573 typedef void * ac__type_sizeof_;
8575 main ()
8577 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8578 test_array [0] = 0
8581 return 0;
8583 _ACEOF
8584 rm -f conftest.$ac_objext
8585 if { (ac_try="$ac_compile"
8586 case "(($ac_try" in
8587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8588 *) ac_try_echo=$ac_try;;
8589 esac
8590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8591 (eval "$ac_compile") 2>conftest.er1
8592 ac_status=$?
8593 grep -v '^ *+' conftest.er1 >conftest.err
8594 rm -f conftest.er1
8595 cat conftest.err >&5
8596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8597 (exit $ac_status); } && {
8598 test -z "$ac_c_werror_flag" ||
8599 test ! -s conftest.err
8600 } && test -s conftest.$ac_objext; then
8601 ac_hi=$ac_mid
8602 else
8603 echo "$as_me: failed program was:" >&5
8604 sed 's/^/| /' conftest.$ac_ext >&5
8606 ac_lo=`expr '(' $ac_mid ')' + 1`
8609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8610 done
8611 case $ac_lo in
8612 ?*) ac_cv_sizeof_void_p=$ac_lo;;
8613 '') if test "$ac_cv_type_void_p" = yes; then
8614 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8615 See \`config.log' for more details." >&5
8616 echo "$as_me: error: cannot compute sizeof (void *)
8617 See \`config.log' for more details." >&2;}
8618 { (exit 77); exit 77; }; }
8619 else
8620 ac_cv_sizeof_void_p=0
8621 fi ;;
8622 esac
8623 else
8624 cat >conftest.$ac_ext <<_ACEOF
8625 /* confdefs.h. */
8626 _ACEOF
8627 cat confdefs.h >>conftest.$ac_ext
8628 cat >>conftest.$ac_ext <<_ACEOF
8629 /* end confdefs.h. */
8630 $ac_includes_default
8631 typedef void * ac__type_sizeof_;
8632 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8633 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8634 #include <stdio.h>
8635 #include <stdlib.h>
8637 main ()
8640 FILE *f = fopen ("conftest.val", "w");
8641 if (! f)
8642 return 1;
8643 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8645 long int i = longval ();
8646 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8647 return 1;
8648 fprintf (f, "%ld\n", i);
8650 else
8652 unsigned long int i = ulongval ();
8653 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8654 return 1;
8655 fprintf (f, "%lu\n", i);
8657 return ferror (f) || fclose (f) != 0;
8660 return 0;
8662 _ACEOF
8663 rm -f conftest$ac_exeext
8664 if { (ac_try="$ac_link"
8665 case "(($ac_try" in
8666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8667 *) ac_try_echo=$ac_try;;
8668 esac
8669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8670 (eval "$ac_link") 2>&5
8671 ac_status=$?
8672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8673 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8674 { (case "(($ac_try" in
8675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8676 *) ac_try_echo=$ac_try;;
8677 esac
8678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8679 (eval "$ac_try") 2>&5
8680 ac_status=$?
8681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8682 (exit $ac_status); }; }; then
8683 ac_cv_sizeof_void_p=`cat conftest.val`
8684 else
8685 echo "$as_me: program exited with status $ac_status" >&5
8686 echo "$as_me: failed program was:" >&5
8687 sed 's/^/| /' conftest.$ac_ext >&5
8689 ( exit $ac_status )
8690 if test "$ac_cv_type_void_p" = yes; then
8691 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8692 See \`config.log' for more details." >&5
8693 echo "$as_me: error: cannot compute sizeof (void *)
8694 See \`config.log' for more details." >&2;}
8695 { (exit 77); exit 77; }; }
8696 else
8697 ac_cv_sizeof_void_p=0
8700 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8702 rm -f conftest.val
8704 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
8705 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
8709 cat >>confdefs.h <<_ACEOF
8710 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8711 _ACEOF
8714 { echo "$as_me:$LINENO: checking for short" >&5
8715 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
8716 if test "${ac_cv_type_short+set}" = set; then
8717 echo $ECHO_N "(cached) $ECHO_C" >&6
8718 else
8719 cat >conftest.$ac_ext <<_ACEOF
8720 /* confdefs.h. */
8721 _ACEOF
8722 cat confdefs.h >>conftest.$ac_ext
8723 cat >>conftest.$ac_ext <<_ACEOF
8724 /* end confdefs.h. */
8725 $ac_includes_default
8726 typedef short ac__type_new_;
8728 main ()
8730 if ((ac__type_new_ *) 0)
8731 return 0;
8732 if (sizeof (ac__type_new_))
8733 return 0;
8735 return 0;
8737 _ACEOF
8738 rm -f conftest.$ac_objext
8739 if { (ac_try="$ac_compile"
8740 case "(($ac_try" in
8741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8742 *) ac_try_echo=$ac_try;;
8743 esac
8744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8745 (eval "$ac_compile") 2>conftest.er1
8746 ac_status=$?
8747 grep -v '^ *+' conftest.er1 >conftest.err
8748 rm -f conftest.er1
8749 cat conftest.err >&5
8750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8751 (exit $ac_status); } && {
8752 test -z "$ac_c_werror_flag" ||
8753 test ! -s conftest.err
8754 } && test -s conftest.$ac_objext; then
8755 ac_cv_type_short=yes
8756 else
8757 echo "$as_me: failed program was:" >&5
8758 sed 's/^/| /' conftest.$ac_ext >&5
8760 ac_cv_type_short=no
8763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8765 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
8766 echo "${ECHO_T}$ac_cv_type_short" >&6; }
8768 # The cast to long int works around a bug in the HP C Compiler
8769 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8770 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8771 # This bug is HP SR number 8606223364.
8772 { echo "$as_me:$LINENO: checking size of short" >&5
8773 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
8774 if test "${ac_cv_sizeof_short+set}" = set; then
8775 echo $ECHO_N "(cached) $ECHO_C" >&6
8776 else
8777 if test "$cross_compiling" = yes; then
8778 # Depending upon the size, compute the lo and hi bounds.
8779 cat >conftest.$ac_ext <<_ACEOF
8780 /* confdefs.h. */
8781 _ACEOF
8782 cat confdefs.h >>conftest.$ac_ext
8783 cat >>conftest.$ac_ext <<_ACEOF
8784 /* end confdefs.h. */
8785 $ac_includes_default
8786 typedef short ac__type_sizeof_;
8788 main ()
8790 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8791 test_array [0] = 0
8794 return 0;
8796 _ACEOF
8797 rm -f conftest.$ac_objext
8798 if { (ac_try="$ac_compile"
8799 case "(($ac_try" in
8800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8801 *) ac_try_echo=$ac_try;;
8802 esac
8803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8804 (eval "$ac_compile") 2>conftest.er1
8805 ac_status=$?
8806 grep -v '^ *+' conftest.er1 >conftest.err
8807 rm -f conftest.er1
8808 cat conftest.err >&5
8809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8810 (exit $ac_status); } && {
8811 test -z "$ac_c_werror_flag" ||
8812 test ! -s conftest.err
8813 } && test -s conftest.$ac_objext; then
8814 ac_lo=0 ac_mid=0
8815 while :; do
8816 cat >conftest.$ac_ext <<_ACEOF
8817 /* confdefs.h. */
8818 _ACEOF
8819 cat confdefs.h >>conftest.$ac_ext
8820 cat >>conftest.$ac_ext <<_ACEOF
8821 /* end confdefs.h. */
8822 $ac_includes_default
8823 typedef short ac__type_sizeof_;
8825 main ()
8827 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8828 test_array [0] = 0
8831 return 0;
8833 _ACEOF
8834 rm -f conftest.$ac_objext
8835 if { (ac_try="$ac_compile"
8836 case "(($ac_try" in
8837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8838 *) ac_try_echo=$ac_try;;
8839 esac
8840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8841 (eval "$ac_compile") 2>conftest.er1
8842 ac_status=$?
8843 grep -v '^ *+' conftest.er1 >conftest.err
8844 rm -f conftest.er1
8845 cat conftest.err >&5
8846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8847 (exit $ac_status); } && {
8848 test -z "$ac_c_werror_flag" ||
8849 test ! -s conftest.err
8850 } && test -s conftest.$ac_objext; then
8851 ac_hi=$ac_mid; break
8852 else
8853 echo "$as_me: failed program was:" >&5
8854 sed 's/^/| /' conftest.$ac_ext >&5
8856 ac_lo=`expr $ac_mid + 1`
8857 if test $ac_lo -le $ac_mid; then
8858 ac_lo= ac_hi=
8859 break
8861 ac_mid=`expr 2 '*' $ac_mid + 1`
8864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8865 done
8866 else
8867 echo "$as_me: failed program was:" >&5
8868 sed 's/^/| /' conftest.$ac_ext >&5
8870 cat >conftest.$ac_ext <<_ACEOF
8871 /* confdefs.h. */
8872 _ACEOF
8873 cat confdefs.h >>conftest.$ac_ext
8874 cat >>conftest.$ac_ext <<_ACEOF
8875 /* end confdefs.h. */
8876 $ac_includes_default
8877 typedef short ac__type_sizeof_;
8879 main ()
8881 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8882 test_array [0] = 0
8885 return 0;
8887 _ACEOF
8888 rm -f conftest.$ac_objext
8889 if { (ac_try="$ac_compile"
8890 case "(($ac_try" in
8891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8892 *) ac_try_echo=$ac_try;;
8893 esac
8894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8895 (eval "$ac_compile") 2>conftest.er1
8896 ac_status=$?
8897 grep -v '^ *+' conftest.er1 >conftest.err
8898 rm -f conftest.er1
8899 cat conftest.err >&5
8900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901 (exit $ac_status); } && {
8902 test -z "$ac_c_werror_flag" ||
8903 test ! -s conftest.err
8904 } && test -s conftest.$ac_objext; then
8905 ac_hi=-1 ac_mid=-1
8906 while :; do
8907 cat >conftest.$ac_ext <<_ACEOF
8908 /* confdefs.h. */
8909 _ACEOF
8910 cat confdefs.h >>conftest.$ac_ext
8911 cat >>conftest.$ac_ext <<_ACEOF
8912 /* end confdefs.h. */
8913 $ac_includes_default
8914 typedef short ac__type_sizeof_;
8916 main ()
8918 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8919 test_array [0] = 0
8922 return 0;
8924 _ACEOF
8925 rm -f conftest.$ac_objext
8926 if { (ac_try="$ac_compile"
8927 case "(($ac_try" in
8928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8929 *) ac_try_echo=$ac_try;;
8930 esac
8931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8932 (eval "$ac_compile") 2>conftest.er1
8933 ac_status=$?
8934 grep -v '^ *+' conftest.er1 >conftest.err
8935 rm -f conftest.er1
8936 cat conftest.err >&5
8937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8938 (exit $ac_status); } && {
8939 test -z "$ac_c_werror_flag" ||
8940 test ! -s conftest.err
8941 } && test -s conftest.$ac_objext; then
8942 ac_lo=$ac_mid; break
8943 else
8944 echo "$as_me: failed program was:" >&5
8945 sed 's/^/| /' conftest.$ac_ext >&5
8947 ac_hi=`expr '(' $ac_mid ')' - 1`
8948 if test $ac_mid -le $ac_hi; then
8949 ac_lo= ac_hi=
8950 break
8952 ac_mid=`expr 2 '*' $ac_mid`
8955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8956 done
8957 else
8958 echo "$as_me: failed program was:" >&5
8959 sed 's/^/| /' conftest.$ac_ext >&5
8961 ac_lo= ac_hi=
8964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8968 # Binary search between lo and hi bounds.
8969 while test "x$ac_lo" != "x$ac_hi"; do
8970 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8971 cat >conftest.$ac_ext <<_ACEOF
8972 /* confdefs.h. */
8973 _ACEOF
8974 cat confdefs.h >>conftest.$ac_ext
8975 cat >>conftest.$ac_ext <<_ACEOF
8976 /* end confdefs.h. */
8977 $ac_includes_default
8978 typedef short ac__type_sizeof_;
8980 main ()
8982 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8983 test_array [0] = 0
8986 return 0;
8988 _ACEOF
8989 rm -f conftest.$ac_objext
8990 if { (ac_try="$ac_compile"
8991 case "(($ac_try" in
8992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8993 *) ac_try_echo=$ac_try;;
8994 esac
8995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8996 (eval "$ac_compile") 2>conftest.er1
8997 ac_status=$?
8998 grep -v '^ *+' conftest.er1 >conftest.err
8999 rm -f conftest.er1
9000 cat conftest.err >&5
9001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9002 (exit $ac_status); } && {
9003 test -z "$ac_c_werror_flag" ||
9004 test ! -s conftest.err
9005 } && test -s conftest.$ac_objext; then
9006 ac_hi=$ac_mid
9007 else
9008 echo "$as_me: failed program was:" >&5
9009 sed 's/^/| /' conftest.$ac_ext >&5
9011 ac_lo=`expr '(' $ac_mid ')' + 1`
9014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9015 done
9016 case $ac_lo in
9017 ?*) ac_cv_sizeof_short=$ac_lo;;
9018 '') if test "$ac_cv_type_short" = yes; then
9019 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
9020 See \`config.log' for more details." >&5
9021 echo "$as_me: error: cannot compute sizeof (short)
9022 See \`config.log' for more details." >&2;}
9023 { (exit 77); exit 77; }; }
9024 else
9025 ac_cv_sizeof_short=0
9026 fi ;;
9027 esac
9028 else
9029 cat >conftest.$ac_ext <<_ACEOF
9030 /* confdefs.h. */
9031 _ACEOF
9032 cat confdefs.h >>conftest.$ac_ext
9033 cat >>conftest.$ac_ext <<_ACEOF
9034 /* end confdefs.h. */
9035 $ac_includes_default
9036 typedef short ac__type_sizeof_;
9037 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9038 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9039 #include <stdio.h>
9040 #include <stdlib.h>
9042 main ()
9045 FILE *f = fopen ("conftest.val", "w");
9046 if (! f)
9047 return 1;
9048 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9050 long int i = longval ();
9051 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9052 return 1;
9053 fprintf (f, "%ld\n", i);
9055 else
9057 unsigned long int i = ulongval ();
9058 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9059 return 1;
9060 fprintf (f, "%lu\n", i);
9062 return ferror (f) || fclose (f) != 0;
9065 return 0;
9067 _ACEOF
9068 rm -f conftest$ac_exeext
9069 if { (ac_try="$ac_link"
9070 case "(($ac_try" in
9071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9072 *) ac_try_echo=$ac_try;;
9073 esac
9074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9075 (eval "$ac_link") 2>&5
9076 ac_status=$?
9077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9078 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9079 { (case "(($ac_try" in
9080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9081 *) ac_try_echo=$ac_try;;
9082 esac
9083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9084 (eval "$ac_try") 2>&5
9085 ac_status=$?
9086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9087 (exit $ac_status); }; }; then
9088 ac_cv_sizeof_short=`cat conftest.val`
9089 else
9090 echo "$as_me: program exited with status $ac_status" >&5
9091 echo "$as_me: failed program was:" >&5
9092 sed 's/^/| /' conftest.$ac_ext >&5
9094 ( exit $ac_status )
9095 if test "$ac_cv_type_short" = yes; then
9096 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
9097 See \`config.log' for more details." >&5
9098 echo "$as_me: error: cannot compute sizeof (short)
9099 See \`config.log' for more details." >&2;}
9100 { (exit 77); exit 77; }; }
9101 else
9102 ac_cv_sizeof_short=0
9105 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9107 rm -f conftest.val
9109 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
9110 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
9114 cat >>confdefs.h <<_ACEOF
9115 #define SIZEOF_SHORT $ac_cv_sizeof_short
9116 _ACEOF
9119 { echo "$as_me:$LINENO: checking for float" >&5
9120 echo $ECHO_N "checking for float... $ECHO_C" >&6; }
9121 if test "${ac_cv_type_float+set}" = set; then
9122 echo $ECHO_N "(cached) $ECHO_C" >&6
9123 else
9124 cat >conftest.$ac_ext <<_ACEOF
9125 /* confdefs.h. */
9126 _ACEOF
9127 cat confdefs.h >>conftest.$ac_ext
9128 cat >>conftest.$ac_ext <<_ACEOF
9129 /* end confdefs.h. */
9130 $ac_includes_default
9131 typedef float ac__type_new_;
9133 main ()
9135 if ((ac__type_new_ *) 0)
9136 return 0;
9137 if (sizeof (ac__type_new_))
9138 return 0;
9140 return 0;
9142 _ACEOF
9143 rm -f conftest.$ac_objext
9144 if { (ac_try="$ac_compile"
9145 case "(($ac_try" in
9146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9147 *) ac_try_echo=$ac_try;;
9148 esac
9149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9150 (eval "$ac_compile") 2>conftest.er1
9151 ac_status=$?
9152 grep -v '^ *+' conftest.er1 >conftest.err
9153 rm -f conftest.er1
9154 cat conftest.err >&5
9155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9156 (exit $ac_status); } && {
9157 test -z "$ac_c_werror_flag" ||
9158 test ! -s conftest.err
9159 } && test -s conftest.$ac_objext; then
9160 ac_cv_type_float=yes
9161 else
9162 echo "$as_me: failed program was:" >&5
9163 sed 's/^/| /' conftest.$ac_ext >&5
9165 ac_cv_type_float=no
9168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9170 { echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
9171 echo "${ECHO_T}$ac_cv_type_float" >&6; }
9173 # The cast to long int works around a bug in the HP C Compiler
9174 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9175 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9176 # This bug is HP SR number 8606223364.
9177 { echo "$as_me:$LINENO: checking size of float" >&5
9178 echo $ECHO_N "checking size of float... $ECHO_C" >&6; }
9179 if test "${ac_cv_sizeof_float+set}" = set; then
9180 echo $ECHO_N "(cached) $ECHO_C" >&6
9181 else
9182 if test "$cross_compiling" = yes; then
9183 # Depending upon the size, compute the lo and hi bounds.
9184 cat >conftest.$ac_ext <<_ACEOF
9185 /* confdefs.h. */
9186 _ACEOF
9187 cat confdefs.h >>conftest.$ac_ext
9188 cat >>conftest.$ac_ext <<_ACEOF
9189 /* end confdefs.h. */
9190 $ac_includes_default
9191 typedef float ac__type_sizeof_;
9193 main ()
9195 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9196 test_array [0] = 0
9199 return 0;
9201 _ACEOF
9202 rm -f conftest.$ac_objext
9203 if { (ac_try="$ac_compile"
9204 case "(($ac_try" in
9205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9206 *) ac_try_echo=$ac_try;;
9207 esac
9208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9209 (eval "$ac_compile") 2>conftest.er1
9210 ac_status=$?
9211 grep -v '^ *+' conftest.er1 >conftest.err
9212 rm -f conftest.er1
9213 cat conftest.err >&5
9214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9215 (exit $ac_status); } && {
9216 test -z "$ac_c_werror_flag" ||
9217 test ! -s conftest.err
9218 } && test -s conftest.$ac_objext; then
9219 ac_lo=0 ac_mid=0
9220 while :; do
9221 cat >conftest.$ac_ext <<_ACEOF
9222 /* confdefs.h. */
9223 _ACEOF
9224 cat confdefs.h >>conftest.$ac_ext
9225 cat >>conftest.$ac_ext <<_ACEOF
9226 /* end confdefs.h. */
9227 $ac_includes_default
9228 typedef float ac__type_sizeof_;
9230 main ()
9232 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9233 test_array [0] = 0
9236 return 0;
9238 _ACEOF
9239 rm -f conftest.$ac_objext
9240 if { (ac_try="$ac_compile"
9241 case "(($ac_try" in
9242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9243 *) ac_try_echo=$ac_try;;
9244 esac
9245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9246 (eval "$ac_compile") 2>conftest.er1
9247 ac_status=$?
9248 grep -v '^ *+' conftest.er1 >conftest.err
9249 rm -f conftest.er1
9250 cat conftest.err >&5
9251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9252 (exit $ac_status); } && {
9253 test -z "$ac_c_werror_flag" ||
9254 test ! -s conftest.err
9255 } && test -s conftest.$ac_objext; then
9256 ac_hi=$ac_mid; break
9257 else
9258 echo "$as_me: failed program was:" >&5
9259 sed 's/^/| /' conftest.$ac_ext >&5
9261 ac_lo=`expr $ac_mid + 1`
9262 if test $ac_lo -le $ac_mid; then
9263 ac_lo= ac_hi=
9264 break
9266 ac_mid=`expr 2 '*' $ac_mid + 1`
9269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9270 done
9271 else
9272 echo "$as_me: failed program was:" >&5
9273 sed 's/^/| /' conftest.$ac_ext >&5
9275 cat >conftest.$ac_ext <<_ACEOF
9276 /* confdefs.h. */
9277 _ACEOF
9278 cat confdefs.h >>conftest.$ac_ext
9279 cat >>conftest.$ac_ext <<_ACEOF
9280 /* end confdefs.h. */
9281 $ac_includes_default
9282 typedef float ac__type_sizeof_;
9284 main ()
9286 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9287 test_array [0] = 0
9290 return 0;
9292 _ACEOF
9293 rm -f conftest.$ac_objext
9294 if { (ac_try="$ac_compile"
9295 case "(($ac_try" in
9296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9297 *) ac_try_echo=$ac_try;;
9298 esac
9299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9300 (eval "$ac_compile") 2>conftest.er1
9301 ac_status=$?
9302 grep -v '^ *+' conftest.er1 >conftest.err
9303 rm -f conftest.er1
9304 cat conftest.err >&5
9305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9306 (exit $ac_status); } && {
9307 test -z "$ac_c_werror_flag" ||
9308 test ! -s conftest.err
9309 } && test -s conftest.$ac_objext; then
9310 ac_hi=-1 ac_mid=-1
9311 while :; do
9312 cat >conftest.$ac_ext <<_ACEOF
9313 /* confdefs.h. */
9314 _ACEOF
9315 cat confdefs.h >>conftest.$ac_ext
9316 cat >>conftest.$ac_ext <<_ACEOF
9317 /* end confdefs.h. */
9318 $ac_includes_default
9319 typedef float ac__type_sizeof_;
9321 main ()
9323 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9324 test_array [0] = 0
9327 return 0;
9329 _ACEOF
9330 rm -f conftest.$ac_objext
9331 if { (ac_try="$ac_compile"
9332 case "(($ac_try" in
9333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9334 *) ac_try_echo=$ac_try;;
9335 esac
9336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9337 (eval "$ac_compile") 2>conftest.er1
9338 ac_status=$?
9339 grep -v '^ *+' conftest.er1 >conftest.err
9340 rm -f conftest.er1
9341 cat conftest.err >&5
9342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9343 (exit $ac_status); } && {
9344 test -z "$ac_c_werror_flag" ||
9345 test ! -s conftest.err
9346 } && test -s conftest.$ac_objext; then
9347 ac_lo=$ac_mid; break
9348 else
9349 echo "$as_me: failed program was:" >&5
9350 sed 's/^/| /' conftest.$ac_ext >&5
9352 ac_hi=`expr '(' $ac_mid ')' - 1`
9353 if test $ac_mid -le $ac_hi; then
9354 ac_lo= ac_hi=
9355 break
9357 ac_mid=`expr 2 '*' $ac_mid`
9360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9361 done
9362 else
9363 echo "$as_me: failed program was:" >&5
9364 sed 's/^/| /' conftest.$ac_ext >&5
9366 ac_lo= ac_hi=
9369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9373 # Binary search between lo and hi bounds.
9374 while test "x$ac_lo" != "x$ac_hi"; do
9375 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9376 cat >conftest.$ac_ext <<_ACEOF
9377 /* confdefs.h. */
9378 _ACEOF
9379 cat confdefs.h >>conftest.$ac_ext
9380 cat >>conftest.$ac_ext <<_ACEOF
9381 /* end confdefs.h. */
9382 $ac_includes_default
9383 typedef float ac__type_sizeof_;
9385 main ()
9387 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9388 test_array [0] = 0
9391 return 0;
9393 _ACEOF
9394 rm -f conftest.$ac_objext
9395 if { (ac_try="$ac_compile"
9396 case "(($ac_try" in
9397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9398 *) ac_try_echo=$ac_try;;
9399 esac
9400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9401 (eval "$ac_compile") 2>conftest.er1
9402 ac_status=$?
9403 grep -v '^ *+' conftest.er1 >conftest.err
9404 rm -f conftest.er1
9405 cat conftest.err >&5
9406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9407 (exit $ac_status); } && {
9408 test -z "$ac_c_werror_flag" ||
9409 test ! -s conftest.err
9410 } && test -s conftest.$ac_objext; then
9411 ac_hi=$ac_mid
9412 else
9413 echo "$as_me: failed program was:" >&5
9414 sed 's/^/| /' conftest.$ac_ext >&5
9416 ac_lo=`expr '(' $ac_mid ')' + 1`
9419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9420 done
9421 case $ac_lo in
9422 ?*) ac_cv_sizeof_float=$ac_lo;;
9423 '') if test "$ac_cv_type_float" = yes; then
9424 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
9425 See \`config.log' for more details." >&5
9426 echo "$as_me: error: cannot compute sizeof (float)
9427 See \`config.log' for more details." >&2;}
9428 { (exit 77); exit 77; }; }
9429 else
9430 ac_cv_sizeof_float=0
9431 fi ;;
9432 esac
9433 else
9434 cat >conftest.$ac_ext <<_ACEOF
9435 /* confdefs.h. */
9436 _ACEOF
9437 cat confdefs.h >>conftest.$ac_ext
9438 cat >>conftest.$ac_ext <<_ACEOF
9439 /* end confdefs.h. */
9440 $ac_includes_default
9441 typedef float ac__type_sizeof_;
9442 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9443 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9444 #include <stdio.h>
9445 #include <stdlib.h>
9447 main ()
9450 FILE *f = fopen ("conftest.val", "w");
9451 if (! f)
9452 return 1;
9453 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9455 long int i = longval ();
9456 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9457 return 1;
9458 fprintf (f, "%ld\n", i);
9460 else
9462 unsigned long int i = ulongval ();
9463 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9464 return 1;
9465 fprintf (f, "%lu\n", i);
9467 return ferror (f) || fclose (f) != 0;
9470 return 0;
9472 _ACEOF
9473 rm -f conftest$ac_exeext
9474 if { (ac_try="$ac_link"
9475 case "(($ac_try" in
9476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9477 *) ac_try_echo=$ac_try;;
9478 esac
9479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9480 (eval "$ac_link") 2>&5
9481 ac_status=$?
9482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9483 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9484 { (case "(($ac_try" in
9485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9486 *) ac_try_echo=$ac_try;;
9487 esac
9488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9489 (eval "$ac_try") 2>&5
9490 ac_status=$?
9491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9492 (exit $ac_status); }; }; then
9493 ac_cv_sizeof_float=`cat conftest.val`
9494 else
9495 echo "$as_me: program exited with status $ac_status" >&5
9496 echo "$as_me: failed program was:" >&5
9497 sed 's/^/| /' conftest.$ac_ext >&5
9499 ( exit $ac_status )
9500 if test "$ac_cv_type_float" = yes; then
9501 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
9502 See \`config.log' for more details." >&5
9503 echo "$as_me: error: cannot compute sizeof (float)
9504 See \`config.log' for more details." >&2;}
9505 { (exit 77); exit 77; }; }
9506 else
9507 ac_cv_sizeof_float=0
9510 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9512 rm -f conftest.val
9514 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
9515 echo "${ECHO_T}$ac_cv_sizeof_float" >&6; }
9519 cat >>confdefs.h <<_ACEOF
9520 #define SIZEOF_FLOAT $ac_cv_sizeof_float
9521 _ACEOF
9524 { echo "$as_me:$LINENO: checking for double" >&5
9525 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
9526 if test "${ac_cv_type_double+set}" = set; then
9527 echo $ECHO_N "(cached) $ECHO_C" >&6
9528 else
9529 cat >conftest.$ac_ext <<_ACEOF
9530 /* confdefs.h. */
9531 _ACEOF
9532 cat confdefs.h >>conftest.$ac_ext
9533 cat >>conftest.$ac_ext <<_ACEOF
9534 /* end confdefs.h. */
9535 $ac_includes_default
9536 typedef double ac__type_new_;
9538 main ()
9540 if ((ac__type_new_ *) 0)
9541 return 0;
9542 if (sizeof (ac__type_new_))
9543 return 0;
9545 return 0;
9547 _ACEOF
9548 rm -f conftest.$ac_objext
9549 if { (ac_try="$ac_compile"
9550 case "(($ac_try" in
9551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9552 *) ac_try_echo=$ac_try;;
9553 esac
9554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9555 (eval "$ac_compile") 2>conftest.er1
9556 ac_status=$?
9557 grep -v '^ *+' conftest.er1 >conftest.err
9558 rm -f conftest.er1
9559 cat conftest.err >&5
9560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9561 (exit $ac_status); } && {
9562 test -z "$ac_c_werror_flag" ||
9563 test ! -s conftest.err
9564 } && test -s conftest.$ac_objext; then
9565 ac_cv_type_double=yes
9566 else
9567 echo "$as_me: failed program was:" >&5
9568 sed 's/^/| /' conftest.$ac_ext >&5
9570 ac_cv_type_double=no
9573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9575 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
9576 echo "${ECHO_T}$ac_cv_type_double" >&6; }
9578 # The cast to long int works around a bug in the HP C Compiler
9579 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9580 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9581 # This bug is HP SR number 8606223364.
9582 { echo "$as_me:$LINENO: checking size of double" >&5
9583 echo $ECHO_N "checking size of double... $ECHO_C" >&6; }
9584 if test "${ac_cv_sizeof_double+set}" = set; then
9585 echo $ECHO_N "(cached) $ECHO_C" >&6
9586 else
9587 if test "$cross_compiling" = yes; then
9588 # Depending upon the size, compute the lo and hi bounds.
9589 cat >conftest.$ac_ext <<_ACEOF
9590 /* confdefs.h. */
9591 _ACEOF
9592 cat confdefs.h >>conftest.$ac_ext
9593 cat >>conftest.$ac_ext <<_ACEOF
9594 /* end confdefs.h. */
9595 $ac_includes_default
9596 typedef double ac__type_sizeof_;
9598 main ()
9600 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9601 test_array [0] = 0
9604 return 0;
9606 _ACEOF
9607 rm -f conftest.$ac_objext
9608 if { (ac_try="$ac_compile"
9609 case "(($ac_try" in
9610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9611 *) ac_try_echo=$ac_try;;
9612 esac
9613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9614 (eval "$ac_compile") 2>conftest.er1
9615 ac_status=$?
9616 grep -v '^ *+' conftest.er1 >conftest.err
9617 rm -f conftest.er1
9618 cat conftest.err >&5
9619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9620 (exit $ac_status); } && {
9621 test -z "$ac_c_werror_flag" ||
9622 test ! -s conftest.err
9623 } && test -s conftest.$ac_objext; then
9624 ac_lo=0 ac_mid=0
9625 while :; do
9626 cat >conftest.$ac_ext <<_ACEOF
9627 /* confdefs.h. */
9628 _ACEOF
9629 cat confdefs.h >>conftest.$ac_ext
9630 cat >>conftest.$ac_ext <<_ACEOF
9631 /* end confdefs.h. */
9632 $ac_includes_default
9633 typedef double ac__type_sizeof_;
9635 main ()
9637 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9638 test_array [0] = 0
9641 return 0;
9643 _ACEOF
9644 rm -f conftest.$ac_objext
9645 if { (ac_try="$ac_compile"
9646 case "(($ac_try" in
9647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9648 *) ac_try_echo=$ac_try;;
9649 esac
9650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9651 (eval "$ac_compile") 2>conftest.er1
9652 ac_status=$?
9653 grep -v '^ *+' conftest.er1 >conftest.err
9654 rm -f conftest.er1
9655 cat conftest.err >&5
9656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9657 (exit $ac_status); } && {
9658 test -z "$ac_c_werror_flag" ||
9659 test ! -s conftest.err
9660 } && test -s conftest.$ac_objext; then
9661 ac_hi=$ac_mid; break
9662 else
9663 echo "$as_me: failed program was:" >&5
9664 sed 's/^/| /' conftest.$ac_ext >&5
9666 ac_lo=`expr $ac_mid + 1`
9667 if test $ac_lo -le $ac_mid; then
9668 ac_lo= ac_hi=
9669 break
9671 ac_mid=`expr 2 '*' $ac_mid + 1`
9674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9675 done
9676 else
9677 echo "$as_me: failed program was:" >&5
9678 sed 's/^/| /' conftest.$ac_ext >&5
9680 cat >conftest.$ac_ext <<_ACEOF
9681 /* confdefs.h. */
9682 _ACEOF
9683 cat confdefs.h >>conftest.$ac_ext
9684 cat >>conftest.$ac_ext <<_ACEOF
9685 /* end confdefs.h. */
9686 $ac_includes_default
9687 typedef double ac__type_sizeof_;
9689 main ()
9691 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9692 test_array [0] = 0
9695 return 0;
9697 _ACEOF
9698 rm -f conftest.$ac_objext
9699 if { (ac_try="$ac_compile"
9700 case "(($ac_try" in
9701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9702 *) ac_try_echo=$ac_try;;
9703 esac
9704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9705 (eval "$ac_compile") 2>conftest.er1
9706 ac_status=$?
9707 grep -v '^ *+' conftest.er1 >conftest.err
9708 rm -f conftest.er1
9709 cat conftest.err >&5
9710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9711 (exit $ac_status); } && {
9712 test -z "$ac_c_werror_flag" ||
9713 test ! -s conftest.err
9714 } && test -s conftest.$ac_objext; then
9715 ac_hi=-1 ac_mid=-1
9716 while :; do
9717 cat >conftest.$ac_ext <<_ACEOF
9718 /* confdefs.h. */
9719 _ACEOF
9720 cat confdefs.h >>conftest.$ac_ext
9721 cat >>conftest.$ac_ext <<_ACEOF
9722 /* end confdefs.h. */
9723 $ac_includes_default
9724 typedef double ac__type_sizeof_;
9726 main ()
9728 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9729 test_array [0] = 0
9732 return 0;
9734 _ACEOF
9735 rm -f conftest.$ac_objext
9736 if { (ac_try="$ac_compile"
9737 case "(($ac_try" in
9738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9739 *) ac_try_echo=$ac_try;;
9740 esac
9741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9742 (eval "$ac_compile") 2>conftest.er1
9743 ac_status=$?
9744 grep -v '^ *+' conftest.er1 >conftest.err
9745 rm -f conftest.er1
9746 cat conftest.err >&5
9747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9748 (exit $ac_status); } && {
9749 test -z "$ac_c_werror_flag" ||
9750 test ! -s conftest.err
9751 } && test -s conftest.$ac_objext; then
9752 ac_lo=$ac_mid; break
9753 else
9754 echo "$as_me: failed program was:" >&5
9755 sed 's/^/| /' conftest.$ac_ext >&5
9757 ac_hi=`expr '(' $ac_mid ')' - 1`
9758 if test $ac_mid -le $ac_hi; then
9759 ac_lo= ac_hi=
9760 break
9762 ac_mid=`expr 2 '*' $ac_mid`
9765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9766 done
9767 else
9768 echo "$as_me: failed program was:" >&5
9769 sed 's/^/| /' conftest.$ac_ext >&5
9771 ac_lo= ac_hi=
9774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9778 # Binary search between lo and hi bounds.
9779 while test "x$ac_lo" != "x$ac_hi"; do
9780 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9781 cat >conftest.$ac_ext <<_ACEOF
9782 /* confdefs.h. */
9783 _ACEOF
9784 cat confdefs.h >>conftest.$ac_ext
9785 cat >>conftest.$ac_ext <<_ACEOF
9786 /* end confdefs.h. */
9787 $ac_includes_default
9788 typedef double ac__type_sizeof_;
9790 main ()
9792 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9793 test_array [0] = 0
9796 return 0;
9798 _ACEOF
9799 rm -f conftest.$ac_objext
9800 if { (ac_try="$ac_compile"
9801 case "(($ac_try" in
9802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9803 *) ac_try_echo=$ac_try;;
9804 esac
9805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9806 (eval "$ac_compile") 2>conftest.er1
9807 ac_status=$?
9808 grep -v '^ *+' conftest.er1 >conftest.err
9809 rm -f conftest.er1
9810 cat conftest.err >&5
9811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9812 (exit $ac_status); } && {
9813 test -z "$ac_c_werror_flag" ||
9814 test ! -s conftest.err
9815 } && test -s conftest.$ac_objext; then
9816 ac_hi=$ac_mid
9817 else
9818 echo "$as_me: failed program was:" >&5
9819 sed 's/^/| /' conftest.$ac_ext >&5
9821 ac_lo=`expr '(' $ac_mid ')' + 1`
9824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9825 done
9826 case $ac_lo in
9827 ?*) ac_cv_sizeof_double=$ac_lo;;
9828 '') if test "$ac_cv_type_double" = yes; then
9829 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
9830 See \`config.log' for more details." >&5
9831 echo "$as_me: error: cannot compute sizeof (double)
9832 See \`config.log' for more details." >&2;}
9833 { (exit 77); exit 77; }; }
9834 else
9835 ac_cv_sizeof_double=0
9836 fi ;;
9837 esac
9838 else
9839 cat >conftest.$ac_ext <<_ACEOF
9840 /* confdefs.h. */
9841 _ACEOF
9842 cat confdefs.h >>conftest.$ac_ext
9843 cat >>conftest.$ac_ext <<_ACEOF
9844 /* end confdefs.h. */
9845 $ac_includes_default
9846 typedef double ac__type_sizeof_;
9847 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9848 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9849 #include <stdio.h>
9850 #include <stdlib.h>
9852 main ()
9855 FILE *f = fopen ("conftest.val", "w");
9856 if (! f)
9857 return 1;
9858 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9860 long int i = longval ();
9861 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9862 return 1;
9863 fprintf (f, "%ld\n", i);
9865 else
9867 unsigned long int i = ulongval ();
9868 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9869 return 1;
9870 fprintf (f, "%lu\n", i);
9872 return ferror (f) || fclose (f) != 0;
9875 return 0;
9877 _ACEOF
9878 rm -f conftest$ac_exeext
9879 if { (ac_try="$ac_link"
9880 case "(($ac_try" in
9881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9882 *) ac_try_echo=$ac_try;;
9883 esac
9884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9885 (eval "$ac_link") 2>&5
9886 ac_status=$?
9887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9888 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9889 { (case "(($ac_try" in
9890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9891 *) ac_try_echo=$ac_try;;
9892 esac
9893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9894 (eval "$ac_try") 2>&5
9895 ac_status=$?
9896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897 (exit $ac_status); }; }; then
9898 ac_cv_sizeof_double=`cat conftest.val`
9899 else
9900 echo "$as_me: program exited with status $ac_status" >&5
9901 echo "$as_me: failed program was:" >&5
9902 sed 's/^/| /' conftest.$ac_ext >&5
9904 ( exit $ac_status )
9905 if test "$ac_cv_type_double" = yes; then
9906 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
9907 See \`config.log' for more details." >&5
9908 echo "$as_me: error: cannot compute sizeof (double)
9909 See \`config.log' for more details." >&2;}
9910 { (exit 77); exit 77; }; }
9911 else
9912 ac_cv_sizeof_double=0
9915 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9917 rm -f conftest.val
9919 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
9920 echo "${ECHO_T}$ac_cv_sizeof_double" >&6; }
9924 cat >>confdefs.h <<_ACEOF
9925 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
9926 _ACEOF
9929 { echo "$as_me:$LINENO: checking for fpos_t" >&5
9930 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6; }
9931 if test "${ac_cv_type_fpos_t+set}" = set; then
9932 echo $ECHO_N "(cached) $ECHO_C" >&6
9933 else
9934 cat >conftest.$ac_ext <<_ACEOF
9935 /* confdefs.h. */
9936 _ACEOF
9937 cat confdefs.h >>conftest.$ac_ext
9938 cat >>conftest.$ac_ext <<_ACEOF
9939 /* end confdefs.h. */
9940 $ac_includes_default
9941 typedef fpos_t ac__type_new_;
9943 main ()
9945 if ((ac__type_new_ *) 0)
9946 return 0;
9947 if (sizeof (ac__type_new_))
9948 return 0;
9950 return 0;
9952 _ACEOF
9953 rm -f conftest.$ac_objext
9954 if { (ac_try="$ac_compile"
9955 case "(($ac_try" in
9956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9957 *) ac_try_echo=$ac_try;;
9958 esac
9959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9960 (eval "$ac_compile") 2>conftest.er1
9961 ac_status=$?
9962 grep -v '^ *+' conftest.er1 >conftest.err
9963 rm -f conftest.er1
9964 cat conftest.err >&5
9965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9966 (exit $ac_status); } && {
9967 test -z "$ac_c_werror_flag" ||
9968 test ! -s conftest.err
9969 } && test -s conftest.$ac_objext; then
9970 ac_cv_type_fpos_t=yes
9971 else
9972 echo "$as_me: failed program was:" >&5
9973 sed 's/^/| /' conftest.$ac_ext >&5
9975 ac_cv_type_fpos_t=no
9978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9980 { echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
9981 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6; }
9983 # The cast to long int works around a bug in the HP C Compiler
9984 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9985 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9986 # This bug is HP SR number 8606223364.
9987 { echo "$as_me:$LINENO: checking size of fpos_t" >&5
9988 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6; }
9989 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
9990 echo $ECHO_N "(cached) $ECHO_C" >&6
9991 else
9992 if test "$cross_compiling" = yes; then
9993 # Depending upon the size, compute the lo and hi bounds.
9994 cat >conftest.$ac_ext <<_ACEOF
9995 /* confdefs.h. */
9996 _ACEOF
9997 cat confdefs.h >>conftest.$ac_ext
9998 cat >>conftest.$ac_ext <<_ACEOF
9999 /* end confdefs.h. */
10000 $ac_includes_default
10001 typedef fpos_t ac__type_sizeof_;
10003 main ()
10005 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10006 test_array [0] = 0
10009 return 0;
10011 _ACEOF
10012 rm -f conftest.$ac_objext
10013 if { (ac_try="$ac_compile"
10014 case "(($ac_try" in
10015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10016 *) ac_try_echo=$ac_try;;
10017 esac
10018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10019 (eval "$ac_compile") 2>conftest.er1
10020 ac_status=$?
10021 grep -v '^ *+' conftest.er1 >conftest.err
10022 rm -f conftest.er1
10023 cat conftest.err >&5
10024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025 (exit $ac_status); } && {
10026 test -z "$ac_c_werror_flag" ||
10027 test ! -s conftest.err
10028 } && test -s conftest.$ac_objext; then
10029 ac_lo=0 ac_mid=0
10030 while :; do
10031 cat >conftest.$ac_ext <<_ACEOF
10032 /* confdefs.h. */
10033 _ACEOF
10034 cat confdefs.h >>conftest.$ac_ext
10035 cat >>conftest.$ac_ext <<_ACEOF
10036 /* end confdefs.h. */
10037 $ac_includes_default
10038 typedef fpos_t ac__type_sizeof_;
10040 main ()
10042 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10043 test_array [0] = 0
10046 return 0;
10048 _ACEOF
10049 rm -f conftest.$ac_objext
10050 if { (ac_try="$ac_compile"
10051 case "(($ac_try" in
10052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10053 *) ac_try_echo=$ac_try;;
10054 esac
10055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10056 (eval "$ac_compile") 2>conftest.er1
10057 ac_status=$?
10058 grep -v '^ *+' conftest.er1 >conftest.err
10059 rm -f conftest.er1
10060 cat conftest.err >&5
10061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062 (exit $ac_status); } && {
10063 test -z "$ac_c_werror_flag" ||
10064 test ! -s conftest.err
10065 } && test -s conftest.$ac_objext; then
10066 ac_hi=$ac_mid; break
10067 else
10068 echo "$as_me: failed program was:" >&5
10069 sed 's/^/| /' conftest.$ac_ext >&5
10071 ac_lo=`expr $ac_mid + 1`
10072 if test $ac_lo -le $ac_mid; then
10073 ac_lo= ac_hi=
10074 break
10076 ac_mid=`expr 2 '*' $ac_mid + 1`
10079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10080 done
10081 else
10082 echo "$as_me: failed program was:" >&5
10083 sed 's/^/| /' conftest.$ac_ext >&5
10085 cat >conftest.$ac_ext <<_ACEOF
10086 /* confdefs.h. */
10087 _ACEOF
10088 cat confdefs.h >>conftest.$ac_ext
10089 cat >>conftest.$ac_ext <<_ACEOF
10090 /* end confdefs.h. */
10091 $ac_includes_default
10092 typedef fpos_t ac__type_sizeof_;
10094 main ()
10096 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10097 test_array [0] = 0
10100 return 0;
10102 _ACEOF
10103 rm -f conftest.$ac_objext
10104 if { (ac_try="$ac_compile"
10105 case "(($ac_try" in
10106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10107 *) ac_try_echo=$ac_try;;
10108 esac
10109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10110 (eval "$ac_compile") 2>conftest.er1
10111 ac_status=$?
10112 grep -v '^ *+' conftest.er1 >conftest.err
10113 rm -f conftest.er1
10114 cat conftest.err >&5
10115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10116 (exit $ac_status); } && {
10117 test -z "$ac_c_werror_flag" ||
10118 test ! -s conftest.err
10119 } && test -s conftest.$ac_objext; then
10120 ac_hi=-1 ac_mid=-1
10121 while :; do
10122 cat >conftest.$ac_ext <<_ACEOF
10123 /* confdefs.h. */
10124 _ACEOF
10125 cat confdefs.h >>conftest.$ac_ext
10126 cat >>conftest.$ac_ext <<_ACEOF
10127 /* end confdefs.h. */
10128 $ac_includes_default
10129 typedef fpos_t ac__type_sizeof_;
10131 main ()
10133 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10134 test_array [0] = 0
10137 return 0;
10139 _ACEOF
10140 rm -f conftest.$ac_objext
10141 if { (ac_try="$ac_compile"
10142 case "(($ac_try" in
10143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10144 *) ac_try_echo=$ac_try;;
10145 esac
10146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10147 (eval "$ac_compile") 2>conftest.er1
10148 ac_status=$?
10149 grep -v '^ *+' conftest.er1 >conftest.err
10150 rm -f conftest.er1
10151 cat conftest.err >&5
10152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10153 (exit $ac_status); } && {
10154 test -z "$ac_c_werror_flag" ||
10155 test ! -s conftest.err
10156 } && test -s conftest.$ac_objext; then
10157 ac_lo=$ac_mid; break
10158 else
10159 echo "$as_me: failed program was:" >&5
10160 sed 's/^/| /' conftest.$ac_ext >&5
10162 ac_hi=`expr '(' $ac_mid ')' - 1`
10163 if test $ac_mid -le $ac_hi; then
10164 ac_lo= ac_hi=
10165 break
10167 ac_mid=`expr 2 '*' $ac_mid`
10170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10171 done
10172 else
10173 echo "$as_me: failed program was:" >&5
10174 sed 's/^/| /' conftest.$ac_ext >&5
10176 ac_lo= ac_hi=
10179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10183 # Binary search between lo and hi bounds.
10184 while test "x$ac_lo" != "x$ac_hi"; do
10185 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10186 cat >conftest.$ac_ext <<_ACEOF
10187 /* confdefs.h. */
10188 _ACEOF
10189 cat confdefs.h >>conftest.$ac_ext
10190 cat >>conftest.$ac_ext <<_ACEOF
10191 /* end confdefs.h. */
10192 $ac_includes_default
10193 typedef fpos_t ac__type_sizeof_;
10195 main ()
10197 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10198 test_array [0] = 0
10201 return 0;
10203 _ACEOF
10204 rm -f conftest.$ac_objext
10205 if { (ac_try="$ac_compile"
10206 case "(($ac_try" in
10207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10208 *) ac_try_echo=$ac_try;;
10209 esac
10210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10211 (eval "$ac_compile") 2>conftest.er1
10212 ac_status=$?
10213 grep -v '^ *+' conftest.er1 >conftest.err
10214 rm -f conftest.er1
10215 cat conftest.err >&5
10216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217 (exit $ac_status); } && {
10218 test -z "$ac_c_werror_flag" ||
10219 test ! -s conftest.err
10220 } && test -s conftest.$ac_objext; then
10221 ac_hi=$ac_mid
10222 else
10223 echo "$as_me: failed program was:" >&5
10224 sed 's/^/| /' conftest.$ac_ext >&5
10226 ac_lo=`expr '(' $ac_mid ')' + 1`
10229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10230 done
10231 case $ac_lo in
10232 ?*) ac_cv_sizeof_fpos_t=$ac_lo;;
10233 '') if test "$ac_cv_type_fpos_t" = yes; then
10234 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
10235 See \`config.log' for more details." >&5
10236 echo "$as_me: error: cannot compute sizeof (fpos_t)
10237 See \`config.log' for more details." >&2;}
10238 { (exit 77); exit 77; }; }
10239 else
10240 ac_cv_sizeof_fpos_t=0
10241 fi ;;
10242 esac
10243 else
10244 cat >conftest.$ac_ext <<_ACEOF
10245 /* confdefs.h. */
10246 _ACEOF
10247 cat confdefs.h >>conftest.$ac_ext
10248 cat >>conftest.$ac_ext <<_ACEOF
10249 /* end confdefs.h. */
10250 $ac_includes_default
10251 typedef fpos_t ac__type_sizeof_;
10252 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10253 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10254 #include <stdio.h>
10255 #include <stdlib.h>
10257 main ()
10260 FILE *f = fopen ("conftest.val", "w");
10261 if (! f)
10262 return 1;
10263 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10265 long int i = longval ();
10266 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10267 return 1;
10268 fprintf (f, "%ld\n", i);
10270 else
10272 unsigned long int i = ulongval ();
10273 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10274 return 1;
10275 fprintf (f, "%lu\n", i);
10277 return ferror (f) || fclose (f) != 0;
10280 return 0;
10282 _ACEOF
10283 rm -f conftest$ac_exeext
10284 if { (ac_try="$ac_link"
10285 case "(($ac_try" in
10286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10287 *) ac_try_echo=$ac_try;;
10288 esac
10289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10290 (eval "$ac_link") 2>&5
10291 ac_status=$?
10292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10293 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10294 { (case "(($ac_try" in
10295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10296 *) ac_try_echo=$ac_try;;
10297 esac
10298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10299 (eval "$ac_try") 2>&5
10300 ac_status=$?
10301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302 (exit $ac_status); }; }; then
10303 ac_cv_sizeof_fpos_t=`cat conftest.val`
10304 else
10305 echo "$as_me: program exited with status $ac_status" >&5
10306 echo "$as_me: failed program was:" >&5
10307 sed 's/^/| /' conftest.$ac_ext >&5
10309 ( exit $ac_status )
10310 if test "$ac_cv_type_fpos_t" = yes; then
10311 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
10312 See \`config.log' for more details." >&5
10313 echo "$as_me: error: cannot compute sizeof (fpos_t)
10314 See \`config.log' for more details." >&2;}
10315 { (exit 77); exit 77; }; }
10316 else
10317 ac_cv_sizeof_fpos_t=0
10320 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10322 rm -f conftest.val
10324 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
10325 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6; }
10329 cat >>confdefs.h <<_ACEOF
10330 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
10331 _ACEOF
10334 { echo "$as_me:$LINENO: checking for size_t" >&5
10335 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
10336 if test "${ac_cv_type_size_t+set}" = set; then
10337 echo $ECHO_N "(cached) $ECHO_C" >&6
10338 else
10339 cat >conftest.$ac_ext <<_ACEOF
10340 /* confdefs.h. */
10341 _ACEOF
10342 cat confdefs.h >>conftest.$ac_ext
10343 cat >>conftest.$ac_ext <<_ACEOF
10344 /* end confdefs.h. */
10345 $ac_includes_default
10346 typedef size_t ac__type_new_;
10348 main ()
10350 if ((ac__type_new_ *) 0)
10351 return 0;
10352 if (sizeof (ac__type_new_))
10353 return 0;
10355 return 0;
10357 _ACEOF
10358 rm -f conftest.$ac_objext
10359 if { (ac_try="$ac_compile"
10360 case "(($ac_try" in
10361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10362 *) ac_try_echo=$ac_try;;
10363 esac
10364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10365 (eval "$ac_compile") 2>conftest.er1
10366 ac_status=$?
10367 grep -v '^ *+' conftest.er1 >conftest.err
10368 rm -f conftest.er1
10369 cat conftest.err >&5
10370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10371 (exit $ac_status); } && {
10372 test -z "$ac_c_werror_flag" ||
10373 test ! -s conftest.err
10374 } && test -s conftest.$ac_objext; then
10375 ac_cv_type_size_t=yes
10376 else
10377 echo "$as_me: failed program was:" >&5
10378 sed 's/^/| /' conftest.$ac_ext >&5
10380 ac_cv_type_size_t=no
10383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10385 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10386 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
10388 # The cast to long int works around a bug in the HP C Compiler
10389 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10390 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10391 # This bug is HP SR number 8606223364.
10392 { echo "$as_me:$LINENO: checking size of size_t" >&5
10393 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
10394 if test "${ac_cv_sizeof_size_t+set}" = set; then
10395 echo $ECHO_N "(cached) $ECHO_C" >&6
10396 else
10397 if test "$cross_compiling" = yes; then
10398 # Depending upon the size, compute the lo and hi bounds.
10399 cat >conftest.$ac_ext <<_ACEOF
10400 /* confdefs.h. */
10401 _ACEOF
10402 cat confdefs.h >>conftest.$ac_ext
10403 cat >>conftest.$ac_ext <<_ACEOF
10404 /* end confdefs.h. */
10405 $ac_includes_default
10406 typedef size_t ac__type_sizeof_;
10408 main ()
10410 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10411 test_array [0] = 0
10414 return 0;
10416 _ACEOF
10417 rm -f conftest.$ac_objext
10418 if { (ac_try="$ac_compile"
10419 case "(($ac_try" in
10420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10421 *) ac_try_echo=$ac_try;;
10422 esac
10423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10424 (eval "$ac_compile") 2>conftest.er1
10425 ac_status=$?
10426 grep -v '^ *+' conftest.er1 >conftest.err
10427 rm -f conftest.er1
10428 cat conftest.err >&5
10429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10430 (exit $ac_status); } && {
10431 test -z "$ac_c_werror_flag" ||
10432 test ! -s conftest.err
10433 } && test -s conftest.$ac_objext; then
10434 ac_lo=0 ac_mid=0
10435 while :; do
10436 cat >conftest.$ac_ext <<_ACEOF
10437 /* confdefs.h. */
10438 _ACEOF
10439 cat confdefs.h >>conftest.$ac_ext
10440 cat >>conftest.$ac_ext <<_ACEOF
10441 /* end confdefs.h. */
10442 $ac_includes_default
10443 typedef size_t ac__type_sizeof_;
10445 main ()
10447 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10448 test_array [0] = 0
10451 return 0;
10453 _ACEOF
10454 rm -f conftest.$ac_objext
10455 if { (ac_try="$ac_compile"
10456 case "(($ac_try" in
10457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10458 *) ac_try_echo=$ac_try;;
10459 esac
10460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10461 (eval "$ac_compile") 2>conftest.er1
10462 ac_status=$?
10463 grep -v '^ *+' conftest.er1 >conftest.err
10464 rm -f conftest.er1
10465 cat conftest.err >&5
10466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10467 (exit $ac_status); } && {
10468 test -z "$ac_c_werror_flag" ||
10469 test ! -s conftest.err
10470 } && test -s conftest.$ac_objext; then
10471 ac_hi=$ac_mid; break
10472 else
10473 echo "$as_me: failed program was:" >&5
10474 sed 's/^/| /' conftest.$ac_ext >&5
10476 ac_lo=`expr $ac_mid + 1`
10477 if test $ac_lo -le $ac_mid; then
10478 ac_lo= ac_hi=
10479 break
10481 ac_mid=`expr 2 '*' $ac_mid + 1`
10484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10485 done
10486 else
10487 echo "$as_me: failed program was:" >&5
10488 sed 's/^/| /' conftest.$ac_ext >&5
10490 cat >conftest.$ac_ext <<_ACEOF
10491 /* confdefs.h. */
10492 _ACEOF
10493 cat confdefs.h >>conftest.$ac_ext
10494 cat >>conftest.$ac_ext <<_ACEOF
10495 /* end confdefs.h. */
10496 $ac_includes_default
10497 typedef size_t ac__type_sizeof_;
10499 main ()
10501 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10502 test_array [0] = 0
10505 return 0;
10507 _ACEOF
10508 rm -f conftest.$ac_objext
10509 if { (ac_try="$ac_compile"
10510 case "(($ac_try" in
10511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10512 *) ac_try_echo=$ac_try;;
10513 esac
10514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10515 (eval "$ac_compile") 2>conftest.er1
10516 ac_status=$?
10517 grep -v '^ *+' conftest.er1 >conftest.err
10518 rm -f conftest.er1
10519 cat conftest.err >&5
10520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521 (exit $ac_status); } && {
10522 test -z "$ac_c_werror_flag" ||
10523 test ! -s conftest.err
10524 } && test -s conftest.$ac_objext; then
10525 ac_hi=-1 ac_mid=-1
10526 while :; do
10527 cat >conftest.$ac_ext <<_ACEOF
10528 /* confdefs.h. */
10529 _ACEOF
10530 cat confdefs.h >>conftest.$ac_ext
10531 cat >>conftest.$ac_ext <<_ACEOF
10532 /* end confdefs.h. */
10533 $ac_includes_default
10534 typedef size_t ac__type_sizeof_;
10536 main ()
10538 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10539 test_array [0] = 0
10542 return 0;
10544 _ACEOF
10545 rm -f conftest.$ac_objext
10546 if { (ac_try="$ac_compile"
10547 case "(($ac_try" in
10548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10549 *) ac_try_echo=$ac_try;;
10550 esac
10551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10552 (eval "$ac_compile") 2>conftest.er1
10553 ac_status=$?
10554 grep -v '^ *+' conftest.er1 >conftest.err
10555 rm -f conftest.er1
10556 cat conftest.err >&5
10557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558 (exit $ac_status); } && {
10559 test -z "$ac_c_werror_flag" ||
10560 test ! -s conftest.err
10561 } && test -s conftest.$ac_objext; then
10562 ac_lo=$ac_mid; break
10563 else
10564 echo "$as_me: failed program was:" >&5
10565 sed 's/^/| /' conftest.$ac_ext >&5
10567 ac_hi=`expr '(' $ac_mid ')' - 1`
10568 if test $ac_mid -le $ac_hi; then
10569 ac_lo= ac_hi=
10570 break
10572 ac_mid=`expr 2 '*' $ac_mid`
10575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10576 done
10577 else
10578 echo "$as_me: failed program was:" >&5
10579 sed 's/^/| /' conftest.$ac_ext >&5
10581 ac_lo= ac_hi=
10584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10588 # Binary search between lo and hi bounds.
10589 while test "x$ac_lo" != "x$ac_hi"; do
10590 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10591 cat >conftest.$ac_ext <<_ACEOF
10592 /* confdefs.h. */
10593 _ACEOF
10594 cat confdefs.h >>conftest.$ac_ext
10595 cat >>conftest.$ac_ext <<_ACEOF
10596 /* end confdefs.h. */
10597 $ac_includes_default
10598 typedef size_t ac__type_sizeof_;
10600 main ()
10602 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10603 test_array [0] = 0
10606 return 0;
10608 _ACEOF
10609 rm -f conftest.$ac_objext
10610 if { (ac_try="$ac_compile"
10611 case "(($ac_try" in
10612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10613 *) ac_try_echo=$ac_try;;
10614 esac
10615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10616 (eval "$ac_compile") 2>conftest.er1
10617 ac_status=$?
10618 grep -v '^ *+' conftest.er1 >conftest.err
10619 rm -f conftest.er1
10620 cat conftest.err >&5
10621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10622 (exit $ac_status); } && {
10623 test -z "$ac_c_werror_flag" ||
10624 test ! -s conftest.err
10625 } && test -s conftest.$ac_objext; then
10626 ac_hi=$ac_mid
10627 else
10628 echo "$as_me: failed program was:" >&5
10629 sed 's/^/| /' conftest.$ac_ext >&5
10631 ac_lo=`expr '(' $ac_mid ')' + 1`
10634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10635 done
10636 case $ac_lo in
10637 ?*) ac_cv_sizeof_size_t=$ac_lo;;
10638 '') if test "$ac_cv_type_size_t" = yes; then
10639 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10640 See \`config.log' for more details." >&5
10641 echo "$as_me: error: cannot compute sizeof (size_t)
10642 See \`config.log' for more details." >&2;}
10643 { (exit 77); exit 77; }; }
10644 else
10645 ac_cv_sizeof_size_t=0
10646 fi ;;
10647 esac
10648 else
10649 cat >conftest.$ac_ext <<_ACEOF
10650 /* confdefs.h. */
10651 _ACEOF
10652 cat confdefs.h >>conftest.$ac_ext
10653 cat >>conftest.$ac_ext <<_ACEOF
10654 /* end confdefs.h. */
10655 $ac_includes_default
10656 typedef size_t ac__type_sizeof_;
10657 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10658 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10659 #include <stdio.h>
10660 #include <stdlib.h>
10662 main ()
10665 FILE *f = fopen ("conftest.val", "w");
10666 if (! f)
10667 return 1;
10668 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10670 long int i = longval ();
10671 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10672 return 1;
10673 fprintf (f, "%ld\n", i);
10675 else
10677 unsigned long int i = ulongval ();
10678 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10679 return 1;
10680 fprintf (f, "%lu\n", i);
10682 return ferror (f) || fclose (f) != 0;
10685 return 0;
10687 _ACEOF
10688 rm -f conftest$ac_exeext
10689 if { (ac_try="$ac_link"
10690 case "(($ac_try" in
10691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10692 *) ac_try_echo=$ac_try;;
10693 esac
10694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10695 (eval "$ac_link") 2>&5
10696 ac_status=$?
10697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10699 { (case "(($ac_try" in
10700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10701 *) ac_try_echo=$ac_try;;
10702 esac
10703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10704 (eval "$ac_try") 2>&5
10705 ac_status=$?
10706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10707 (exit $ac_status); }; }; then
10708 ac_cv_sizeof_size_t=`cat conftest.val`
10709 else
10710 echo "$as_me: program exited with status $ac_status" >&5
10711 echo "$as_me: failed program was:" >&5
10712 sed 's/^/| /' conftest.$ac_ext >&5
10714 ( exit $ac_status )
10715 if test "$ac_cv_type_size_t" = yes; then
10716 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10717 See \`config.log' for more details." >&5
10718 echo "$as_me: error: cannot compute sizeof (size_t)
10719 See \`config.log' for more details." >&2;}
10720 { (exit 77); exit 77; }; }
10721 else
10722 ac_cv_sizeof_size_t=0
10725 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10727 rm -f conftest.val
10729 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
10730 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
10734 cat >>confdefs.h <<_ACEOF
10735 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
10736 _ACEOF
10739 { echo "$as_me:$LINENO: checking for pid_t" >&5
10740 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
10741 if test "${ac_cv_type_pid_t+set}" = set; then
10742 echo $ECHO_N "(cached) $ECHO_C" >&6
10743 else
10744 cat >conftest.$ac_ext <<_ACEOF
10745 /* confdefs.h. */
10746 _ACEOF
10747 cat confdefs.h >>conftest.$ac_ext
10748 cat >>conftest.$ac_ext <<_ACEOF
10749 /* end confdefs.h. */
10750 $ac_includes_default
10751 typedef pid_t ac__type_new_;
10753 main ()
10755 if ((ac__type_new_ *) 0)
10756 return 0;
10757 if (sizeof (ac__type_new_))
10758 return 0;
10760 return 0;
10762 _ACEOF
10763 rm -f conftest.$ac_objext
10764 if { (ac_try="$ac_compile"
10765 case "(($ac_try" in
10766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10767 *) ac_try_echo=$ac_try;;
10768 esac
10769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10770 (eval "$ac_compile") 2>conftest.er1
10771 ac_status=$?
10772 grep -v '^ *+' conftest.er1 >conftest.err
10773 rm -f conftest.er1
10774 cat conftest.err >&5
10775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10776 (exit $ac_status); } && {
10777 test -z "$ac_c_werror_flag" ||
10778 test ! -s conftest.err
10779 } && test -s conftest.$ac_objext; then
10780 ac_cv_type_pid_t=yes
10781 else
10782 echo "$as_me: failed program was:" >&5
10783 sed 's/^/| /' conftest.$ac_ext >&5
10785 ac_cv_type_pid_t=no
10788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10790 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10791 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
10793 # The cast to long int works around a bug in the HP C Compiler
10794 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10795 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10796 # This bug is HP SR number 8606223364.
10797 { echo "$as_me:$LINENO: checking size of pid_t" >&5
10798 echo $ECHO_N "checking size of pid_t... $ECHO_C" >&6; }
10799 if test "${ac_cv_sizeof_pid_t+set}" = set; then
10800 echo $ECHO_N "(cached) $ECHO_C" >&6
10801 else
10802 if test "$cross_compiling" = yes; then
10803 # Depending upon the size, compute the lo and hi bounds.
10804 cat >conftest.$ac_ext <<_ACEOF
10805 /* confdefs.h. */
10806 _ACEOF
10807 cat confdefs.h >>conftest.$ac_ext
10808 cat >>conftest.$ac_ext <<_ACEOF
10809 /* end confdefs.h. */
10810 $ac_includes_default
10811 typedef pid_t ac__type_sizeof_;
10813 main ()
10815 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10816 test_array [0] = 0
10819 return 0;
10821 _ACEOF
10822 rm -f conftest.$ac_objext
10823 if { (ac_try="$ac_compile"
10824 case "(($ac_try" in
10825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10826 *) ac_try_echo=$ac_try;;
10827 esac
10828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10829 (eval "$ac_compile") 2>conftest.er1
10830 ac_status=$?
10831 grep -v '^ *+' conftest.er1 >conftest.err
10832 rm -f conftest.er1
10833 cat conftest.err >&5
10834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10835 (exit $ac_status); } && {
10836 test -z "$ac_c_werror_flag" ||
10837 test ! -s conftest.err
10838 } && test -s conftest.$ac_objext; then
10839 ac_lo=0 ac_mid=0
10840 while :; do
10841 cat >conftest.$ac_ext <<_ACEOF
10842 /* confdefs.h. */
10843 _ACEOF
10844 cat confdefs.h >>conftest.$ac_ext
10845 cat >>conftest.$ac_ext <<_ACEOF
10846 /* end confdefs.h. */
10847 $ac_includes_default
10848 typedef pid_t ac__type_sizeof_;
10850 main ()
10852 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10853 test_array [0] = 0
10856 return 0;
10858 _ACEOF
10859 rm -f conftest.$ac_objext
10860 if { (ac_try="$ac_compile"
10861 case "(($ac_try" in
10862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10863 *) ac_try_echo=$ac_try;;
10864 esac
10865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10866 (eval "$ac_compile") 2>conftest.er1
10867 ac_status=$?
10868 grep -v '^ *+' conftest.er1 >conftest.err
10869 rm -f conftest.er1
10870 cat conftest.err >&5
10871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10872 (exit $ac_status); } && {
10873 test -z "$ac_c_werror_flag" ||
10874 test ! -s conftest.err
10875 } && test -s conftest.$ac_objext; then
10876 ac_hi=$ac_mid; break
10877 else
10878 echo "$as_me: failed program was:" >&5
10879 sed 's/^/| /' conftest.$ac_ext >&5
10881 ac_lo=`expr $ac_mid + 1`
10882 if test $ac_lo -le $ac_mid; then
10883 ac_lo= ac_hi=
10884 break
10886 ac_mid=`expr 2 '*' $ac_mid + 1`
10889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10890 done
10891 else
10892 echo "$as_me: failed program was:" >&5
10893 sed 's/^/| /' conftest.$ac_ext >&5
10895 cat >conftest.$ac_ext <<_ACEOF
10896 /* confdefs.h. */
10897 _ACEOF
10898 cat confdefs.h >>conftest.$ac_ext
10899 cat >>conftest.$ac_ext <<_ACEOF
10900 /* end confdefs.h. */
10901 $ac_includes_default
10902 typedef pid_t ac__type_sizeof_;
10904 main ()
10906 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10907 test_array [0] = 0
10910 return 0;
10912 _ACEOF
10913 rm -f conftest.$ac_objext
10914 if { (ac_try="$ac_compile"
10915 case "(($ac_try" in
10916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10917 *) ac_try_echo=$ac_try;;
10918 esac
10919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10920 (eval "$ac_compile") 2>conftest.er1
10921 ac_status=$?
10922 grep -v '^ *+' conftest.er1 >conftest.err
10923 rm -f conftest.er1
10924 cat conftest.err >&5
10925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10926 (exit $ac_status); } && {
10927 test -z "$ac_c_werror_flag" ||
10928 test ! -s conftest.err
10929 } && test -s conftest.$ac_objext; then
10930 ac_hi=-1 ac_mid=-1
10931 while :; do
10932 cat >conftest.$ac_ext <<_ACEOF
10933 /* confdefs.h. */
10934 _ACEOF
10935 cat confdefs.h >>conftest.$ac_ext
10936 cat >>conftest.$ac_ext <<_ACEOF
10937 /* end confdefs.h. */
10938 $ac_includes_default
10939 typedef pid_t ac__type_sizeof_;
10941 main ()
10943 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10944 test_array [0] = 0
10947 return 0;
10949 _ACEOF
10950 rm -f conftest.$ac_objext
10951 if { (ac_try="$ac_compile"
10952 case "(($ac_try" in
10953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10954 *) ac_try_echo=$ac_try;;
10955 esac
10956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10957 (eval "$ac_compile") 2>conftest.er1
10958 ac_status=$?
10959 grep -v '^ *+' conftest.er1 >conftest.err
10960 rm -f conftest.er1
10961 cat conftest.err >&5
10962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10963 (exit $ac_status); } && {
10964 test -z "$ac_c_werror_flag" ||
10965 test ! -s conftest.err
10966 } && test -s conftest.$ac_objext; then
10967 ac_lo=$ac_mid; break
10968 else
10969 echo "$as_me: failed program was:" >&5
10970 sed 's/^/| /' conftest.$ac_ext >&5
10972 ac_hi=`expr '(' $ac_mid ')' - 1`
10973 if test $ac_mid -le $ac_hi; then
10974 ac_lo= ac_hi=
10975 break
10977 ac_mid=`expr 2 '*' $ac_mid`
10980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10981 done
10982 else
10983 echo "$as_me: failed program was:" >&5
10984 sed 's/^/| /' conftest.$ac_ext >&5
10986 ac_lo= ac_hi=
10989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10993 # Binary search between lo and hi bounds.
10994 while test "x$ac_lo" != "x$ac_hi"; do
10995 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10996 cat >conftest.$ac_ext <<_ACEOF
10997 /* confdefs.h. */
10998 _ACEOF
10999 cat confdefs.h >>conftest.$ac_ext
11000 cat >>conftest.$ac_ext <<_ACEOF
11001 /* end confdefs.h. */
11002 $ac_includes_default
11003 typedef pid_t ac__type_sizeof_;
11005 main ()
11007 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11008 test_array [0] = 0
11011 return 0;
11013 _ACEOF
11014 rm -f conftest.$ac_objext
11015 if { (ac_try="$ac_compile"
11016 case "(($ac_try" in
11017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11018 *) ac_try_echo=$ac_try;;
11019 esac
11020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11021 (eval "$ac_compile") 2>conftest.er1
11022 ac_status=$?
11023 grep -v '^ *+' conftest.er1 >conftest.err
11024 rm -f conftest.er1
11025 cat conftest.err >&5
11026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11027 (exit $ac_status); } && {
11028 test -z "$ac_c_werror_flag" ||
11029 test ! -s conftest.err
11030 } && test -s conftest.$ac_objext; then
11031 ac_hi=$ac_mid
11032 else
11033 echo "$as_me: failed program was:" >&5
11034 sed 's/^/| /' conftest.$ac_ext >&5
11036 ac_lo=`expr '(' $ac_mid ')' + 1`
11039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11040 done
11041 case $ac_lo in
11042 ?*) ac_cv_sizeof_pid_t=$ac_lo;;
11043 '') if test "$ac_cv_type_pid_t" = yes; then
11044 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
11045 See \`config.log' for more details." >&5
11046 echo "$as_me: error: cannot compute sizeof (pid_t)
11047 See \`config.log' for more details." >&2;}
11048 { (exit 77); exit 77; }; }
11049 else
11050 ac_cv_sizeof_pid_t=0
11051 fi ;;
11052 esac
11053 else
11054 cat >conftest.$ac_ext <<_ACEOF
11055 /* confdefs.h. */
11056 _ACEOF
11057 cat confdefs.h >>conftest.$ac_ext
11058 cat >>conftest.$ac_ext <<_ACEOF
11059 /* end confdefs.h. */
11060 $ac_includes_default
11061 typedef pid_t ac__type_sizeof_;
11062 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11063 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11064 #include <stdio.h>
11065 #include <stdlib.h>
11067 main ()
11070 FILE *f = fopen ("conftest.val", "w");
11071 if (! f)
11072 return 1;
11073 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11075 long int i = longval ();
11076 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11077 return 1;
11078 fprintf (f, "%ld\n", i);
11080 else
11082 unsigned long int i = ulongval ();
11083 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11084 return 1;
11085 fprintf (f, "%lu\n", i);
11087 return ferror (f) || fclose (f) != 0;
11090 return 0;
11092 _ACEOF
11093 rm -f conftest$ac_exeext
11094 if { (ac_try="$ac_link"
11095 case "(($ac_try" in
11096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11097 *) ac_try_echo=$ac_try;;
11098 esac
11099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11100 (eval "$ac_link") 2>&5
11101 ac_status=$?
11102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11104 { (case "(($ac_try" in
11105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11106 *) ac_try_echo=$ac_try;;
11107 esac
11108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11109 (eval "$ac_try") 2>&5
11110 ac_status=$?
11111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11112 (exit $ac_status); }; }; then
11113 ac_cv_sizeof_pid_t=`cat conftest.val`
11114 else
11115 echo "$as_me: program exited with status $ac_status" >&5
11116 echo "$as_me: failed program was:" >&5
11117 sed 's/^/| /' conftest.$ac_ext >&5
11119 ( exit $ac_status )
11120 if test "$ac_cv_type_pid_t" = yes; then
11121 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
11122 See \`config.log' for more details." >&5
11123 echo "$as_me: error: cannot compute sizeof (pid_t)
11124 See \`config.log' for more details." >&2;}
11125 { (exit 77); exit 77; }; }
11126 else
11127 ac_cv_sizeof_pid_t=0
11130 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11132 rm -f conftest.val
11134 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pid_t" >&5
11135 echo "${ECHO_T}$ac_cv_sizeof_pid_t" >&6; }
11139 cat >>confdefs.h <<_ACEOF
11140 #define SIZEOF_PID_T $ac_cv_sizeof_pid_t
11141 _ACEOF
11145 { echo "$as_me:$LINENO: checking for long long support" >&5
11146 echo $ECHO_N "checking for long long support... $ECHO_C" >&6; }
11147 have_long_long=no
11148 cat >conftest.$ac_ext <<_ACEOF
11149 /* confdefs.h. */
11150 _ACEOF
11151 cat confdefs.h >>conftest.$ac_ext
11152 cat >>conftest.$ac_ext <<_ACEOF
11153 /* end confdefs.h. */
11156 main ()
11158 long long x; x = (long long)0;
11160 return 0;
11162 _ACEOF
11163 rm -f conftest.$ac_objext
11164 if { (ac_try="$ac_compile"
11165 case "(($ac_try" in
11166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11167 *) ac_try_echo=$ac_try;;
11168 esac
11169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11170 (eval "$ac_compile") 2>conftest.er1
11171 ac_status=$?
11172 grep -v '^ *+' conftest.er1 >conftest.err
11173 rm -f conftest.er1
11174 cat conftest.err >&5
11175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11176 (exit $ac_status); } && {
11177 test -z "$ac_c_werror_flag" ||
11178 test ! -s conftest.err
11179 } && test -s conftest.$ac_objext; then
11182 cat >>confdefs.h <<\_ACEOF
11183 #define HAVE_LONG_LONG 1
11184 _ACEOF
11186 have_long_long=yes
11188 else
11189 echo "$as_me: failed program was:" >&5
11190 sed 's/^/| /' conftest.$ac_ext >&5
11195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11196 { echo "$as_me:$LINENO: result: $have_long_long" >&5
11197 echo "${ECHO_T}$have_long_long" >&6; }
11198 if test "$have_long_long" = yes ; then
11199 { echo "$as_me:$LINENO: checking for long long" >&5
11200 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
11201 if test "${ac_cv_type_long_long+set}" = set; then
11202 echo $ECHO_N "(cached) $ECHO_C" >&6
11203 else
11204 cat >conftest.$ac_ext <<_ACEOF
11205 /* confdefs.h. */
11206 _ACEOF
11207 cat confdefs.h >>conftest.$ac_ext
11208 cat >>conftest.$ac_ext <<_ACEOF
11209 /* end confdefs.h. */
11210 $ac_includes_default
11211 typedef long long ac__type_new_;
11213 main ()
11215 if ((ac__type_new_ *) 0)
11216 return 0;
11217 if (sizeof (ac__type_new_))
11218 return 0;
11220 return 0;
11222 _ACEOF
11223 rm -f conftest.$ac_objext
11224 if { (ac_try="$ac_compile"
11225 case "(($ac_try" in
11226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11227 *) ac_try_echo=$ac_try;;
11228 esac
11229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11230 (eval "$ac_compile") 2>conftest.er1
11231 ac_status=$?
11232 grep -v '^ *+' conftest.er1 >conftest.err
11233 rm -f conftest.er1
11234 cat conftest.err >&5
11235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236 (exit $ac_status); } && {
11237 test -z "$ac_c_werror_flag" ||
11238 test ! -s conftest.err
11239 } && test -s conftest.$ac_objext; then
11240 ac_cv_type_long_long=yes
11241 else
11242 echo "$as_me: failed program was:" >&5
11243 sed 's/^/| /' conftest.$ac_ext >&5
11245 ac_cv_type_long_long=no
11248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11250 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
11251 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
11253 # The cast to long int works around a bug in the HP C Compiler
11254 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11255 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11256 # This bug is HP SR number 8606223364.
11257 { echo "$as_me:$LINENO: checking size of long long" >&5
11258 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
11259 if test "${ac_cv_sizeof_long_long+set}" = set; then
11260 echo $ECHO_N "(cached) $ECHO_C" >&6
11261 else
11262 if test "$cross_compiling" = yes; then
11263 # Depending upon the size, compute the lo and hi bounds.
11264 cat >conftest.$ac_ext <<_ACEOF
11265 /* confdefs.h. */
11266 _ACEOF
11267 cat confdefs.h >>conftest.$ac_ext
11268 cat >>conftest.$ac_ext <<_ACEOF
11269 /* end confdefs.h. */
11270 $ac_includes_default
11271 typedef long long ac__type_sizeof_;
11273 main ()
11275 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11276 test_array [0] = 0
11279 return 0;
11281 _ACEOF
11282 rm -f conftest.$ac_objext
11283 if { (ac_try="$ac_compile"
11284 case "(($ac_try" in
11285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11286 *) ac_try_echo=$ac_try;;
11287 esac
11288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11289 (eval "$ac_compile") 2>conftest.er1
11290 ac_status=$?
11291 grep -v '^ *+' conftest.er1 >conftest.err
11292 rm -f conftest.er1
11293 cat conftest.err >&5
11294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11295 (exit $ac_status); } && {
11296 test -z "$ac_c_werror_flag" ||
11297 test ! -s conftest.err
11298 } && test -s conftest.$ac_objext; then
11299 ac_lo=0 ac_mid=0
11300 while :; do
11301 cat >conftest.$ac_ext <<_ACEOF
11302 /* confdefs.h. */
11303 _ACEOF
11304 cat confdefs.h >>conftest.$ac_ext
11305 cat >>conftest.$ac_ext <<_ACEOF
11306 /* end confdefs.h. */
11307 $ac_includes_default
11308 typedef long long ac__type_sizeof_;
11310 main ()
11312 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11313 test_array [0] = 0
11316 return 0;
11318 _ACEOF
11319 rm -f conftest.$ac_objext
11320 if { (ac_try="$ac_compile"
11321 case "(($ac_try" in
11322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11323 *) ac_try_echo=$ac_try;;
11324 esac
11325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11326 (eval "$ac_compile") 2>conftest.er1
11327 ac_status=$?
11328 grep -v '^ *+' conftest.er1 >conftest.err
11329 rm -f conftest.er1
11330 cat conftest.err >&5
11331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11332 (exit $ac_status); } && {
11333 test -z "$ac_c_werror_flag" ||
11334 test ! -s conftest.err
11335 } && test -s conftest.$ac_objext; then
11336 ac_hi=$ac_mid; break
11337 else
11338 echo "$as_me: failed program was:" >&5
11339 sed 's/^/| /' conftest.$ac_ext >&5
11341 ac_lo=`expr $ac_mid + 1`
11342 if test $ac_lo -le $ac_mid; then
11343 ac_lo= ac_hi=
11344 break
11346 ac_mid=`expr 2 '*' $ac_mid + 1`
11349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11350 done
11351 else
11352 echo "$as_me: failed program was:" >&5
11353 sed 's/^/| /' conftest.$ac_ext >&5
11355 cat >conftest.$ac_ext <<_ACEOF
11356 /* confdefs.h. */
11357 _ACEOF
11358 cat confdefs.h >>conftest.$ac_ext
11359 cat >>conftest.$ac_ext <<_ACEOF
11360 /* end confdefs.h. */
11361 $ac_includes_default
11362 typedef long long ac__type_sizeof_;
11364 main ()
11366 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11367 test_array [0] = 0
11370 return 0;
11372 _ACEOF
11373 rm -f conftest.$ac_objext
11374 if { (ac_try="$ac_compile"
11375 case "(($ac_try" in
11376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11377 *) ac_try_echo=$ac_try;;
11378 esac
11379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11380 (eval "$ac_compile") 2>conftest.er1
11381 ac_status=$?
11382 grep -v '^ *+' conftest.er1 >conftest.err
11383 rm -f conftest.er1
11384 cat conftest.err >&5
11385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11386 (exit $ac_status); } && {
11387 test -z "$ac_c_werror_flag" ||
11388 test ! -s conftest.err
11389 } && test -s conftest.$ac_objext; then
11390 ac_hi=-1 ac_mid=-1
11391 while :; do
11392 cat >conftest.$ac_ext <<_ACEOF
11393 /* confdefs.h. */
11394 _ACEOF
11395 cat confdefs.h >>conftest.$ac_ext
11396 cat >>conftest.$ac_ext <<_ACEOF
11397 /* end confdefs.h. */
11398 $ac_includes_default
11399 typedef long long ac__type_sizeof_;
11401 main ()
11403 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11404 test_array [0] = 0
11407 return 0;
11409 _ACEOF
11410 rm -f conftest.$ac_objext
11411 if { (ac_try="$ac_compile"
11412 case "(($ac_try" in
11413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11414 *) ac_try_echo=$ac_try;;
11415 esac
11416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11417 (eval "$ac_compile") 2>conftest.er1
11418 ac_status=$?
11419 grep -v '^ *+' conftest.er1 >conftest.err
11420 rm -f conftest.er1
11421 cat conftest.err >&5
11422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11423 (exit $ac_status); } && {
11424 test -z "$ac_c_werror_flag" ||
11425 test ! -s conftest.err
11426 } && test -s conftest.$ac_objext; then
11427 ac_lo=$ac_mid; break
11428 else
11429 echo "$as_me: failed program was:" >&5
11430 sed 's/^/| /' conftest.$ac_ext >&5
11432 ac_hi=`expr '(' $ac_mid ')' - 1`
11433 if test $ac_mid -le $ac_hi; then
11434 ac_lo= ac_hi=
11435 break
11437 ac_mid=`expr 2 '*' $ac_mid`
11440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11441 done
11442 else
11443 echo "$as_me: failed program was:" >&5
11444 sed 's/^/| /' conftest.$ac_ext >&5
11446 ac_lo= ac_hi=
11449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11453 # Binary search between lo and hi bounds.
11454 while test "x$ac_lo" != "x$ac_hi"; do
11455 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11456 cat >conftest.$ac_ext <<_ACEOF
11457 /* confdefs.h. */
11458 _ACEOF
11459 cat confdefs.h >>conftest.$ac_ext
11460 cat >>conftest.$ac_ext <<_ACEOF
11461 /* end confdefs.h. */
11462 $ac_includes_default
11463 typedef long long ac__type_sizeof_;
11465 main ()
11467 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11468 test_array [0] = 0
11471 return 0;
11473 _ACEOF
11474 rm -f conftest.$ac_objext
11475 if { (ac_try="$ac_compile"
11476 case "(($ac_try" in
11477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11478 *) ac_try_echo=$ac_try;;
11479 esac
11480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11481 (eval "$ac_compile") 2>conftest.er1
11482 ac_status=$?
11483 grep -v '^ *+' conftest.er1 >conftest.err
11484 rm -f conftest.er1
11485 cat conftest.err >&5
11486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11487 (exit $ac_status); } && {
11488 test -z "$ac_c_werror_flag" ||
11489 test ! -s conftest.err
11490 } && test -s conftest.$ac_objext; then
11491 ac_hi=$ac_mid
11492 else
11493 echo "$as_me: failed program was:" >&5
11494 sed 's/^/| /' conftest.$ac_ext >&5
11496 ac_lo=`expr '(' $ac_mid ')' + 1`
11499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11500 done
11501 case $ac_lo in
11502 ?*) ac_cv_sizeof_long_long=$ac_lo;;
11503 '') if test "$ac_cv_type_long_long" = yes; then
11504 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
11505 See \`config.log' for more details." >&5
11506 echo "$as_me: error: cannot compute sizeof (long long)
11507 See \`config.log' for more details." >&2;}
11508 { (exit 77); exit 77; }; }
11509 else
11510 ac_cv_sizeof_long_long=0
11511 fi ;;
11512 esac
11513 else
11514 cat >conftest.$ac_ext <<_ACEOF
11515 /* confdefs.h. */
11516 _ACEOF
11517 cat confdefs.h >>conftest.$ac_ext
11518 cat >>conftest.$ac_ext <<_ACEOF
11519 /* end confdefs.h. */
11520 $ac_includes_default
11521 typedef long long ac__type_sizeof_;
11522 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11523 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11524 #include <stdio.h>
11525 #include <stdlib.h>
11527 main ()
11530 FILE *f = fopen ("conftest.val", "w");
11531 if (! f)
11532 return 1;
11533 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11535 long int i = longval ();
11536 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11537 return 1;
11538 fprintf (f, "%ld\n", i);
11540 else
11542 unsigned long int i = ulongval ();
11543 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11544 return 1;
11545 fprintf (f, "%lu\n", i);
11547 return ferror (f) || fclose (f) != 0;
11550 return 0;
11552 _ACEOF
11553 rm -f conftest$ac_exeext
11554 if { (ac_try="$ac_link"
11555 case "(($ac_try" in
11556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11557 *) ac_try_echo=$ac_try;;
11558 esac
11559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11560 (eval "$ac_link") 2>&5
11561 ac_status=$?
11562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11563 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11564 { (case "(($ac_try" in
11565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11566 *) ac_try_echo=$ac_try;;
11567 esac
11568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11569 (eval "$ac_try") 2>&5
11570 ac_status=$?
11571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11572 (exit $ac_status); }; }; then
11573 ac_cv_sizeof_long_long=`cat conftest.val`
11574 else
11575 echo "$as_me: program exited with status $ac_status" >&5
11576 echo "$as_me: failed program was:" >&5
11577 sed 's/^/| /' conftest.$ac_ext >&5
11579 ( exit $ac_status )
11580 if test "$ac_cv_type_long_long" = yes; then
11581 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
11582 See \`config.log' for more details." >&5
11583 echo "$as_me: error: cannot compute sizeof (long long)
11584 See \`config.log' for more details." >&2;}
11585 { (exit 77); exit 77; }; }
11586 else
11587 ac_cv_sizeof_long_long=0
11590 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11592 rm -f conftest.val
11594 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
11595 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
11599 cat >>confdefs.h <<_ACEOF
11600 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11601 _ACEOF
11606 { echo "$as_me:$LINENO: checking for long double support" >&5
11607 echo $ECHO_N "checking for long double support... $ECHO_C" >&6; }
11608 have_long_double=no
11609 cat >conftest.$ac_ext <<_ACEOF
11610 /* confdefs.h. */
11611 _ACEOF
11612 cat confdefs.h >>conftest.$ac_ext
11613 cat >>conftest.$ac_ext <<_ACEOF
11614 /* end confdefs.h. */
11617 main ()
11619 long double x; x = (long double)0;
11621 return 0;
11623 _ACEOF
11624 rm -f conftest.$ac_objext
11625 if { (ac_try="$ac_compile"
11626 case "(($ac_try" in
11627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11628 *) ac_try_echo=$ac_try;;
11629 esac
11630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11631 (eval "$ac_compile") 2>conftest.er1
11632 ac_status=$?
11633 grep -v '^ *+' conftest.er1 >conftest.err
11634 rm -f conftest.er1
11635 cat conftest.err >&5
11636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11637 (exit $ac_status); } && {
11638 test -z "$ac_c_werror_flag" ||
11639 test ! -s conftest.err
11640 } && test -s conftest.$ac_objext; then
11643 cat >>confdefs.h <<\_ACEOF
11644 #define HAVE_LONG_DOUBLE 1
11645 _ACEOF
11647 have_long_double=yes
11649 else
11650 echo "$as_me: failed program was:" >&5
11651 sed 's/^/| /' conftest.$ac_ext >&5
11656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11657 { echo "$as_me:$LINENO: result: $have_long_double" >&5
11658 echo "${ECHO_T}$have_long_double" >&6; }
11659 if test "$have_long_double" = yes ; then
11660 { echo "$as_me:$LINENO: checking for long double" >&5
11661 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
11662 if test "${ac_cv_type_long_double+set}" = set; then
11663 echo $ECHO_N "(cached) $ECHO_C" >&6
11664 else
11665 cat >conftest.$ac_ext <<_ACEOF
11666 /* confdefs.h. */
11667 _ACEOF
11668 cat confdefs.h >>conftest.$ac_ext
11669 cat >>conftest.$ac_ext <<_ACEOF
11670 /* end confdefs.h. */
11671 $ac_includes_default
11672 typedef long double ac__type_new_;
11674 main ()
11676 if ((ac__type_new_ *) 0)
11677 return 0;
11678 if (sizeof (ac__type_new_))
11679 return 0;
11681 return 0;
11683 _ACEOF
11684 rm -f conftest.$ac_objext
11685 if { (ac_try="$ac_compile"
11686 case "(($ac_try" in
11687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11688 *) ac_try_echo=$ac_try;;
11689 esac
11690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11691 (eval "$ac_compile") 2>conftest.er1
11692 ac_status=$?
11693 grep -v '^ *+' conftest.er1 >conftest.err
11694 rm -f conftest.er1
11695 cat conftest.err >&5
11696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11697 (exit $ac_status); } && {
11698 test -z "$ac_c_werror_flag" ||
11699 test ! -s conftest.err
11700 } && test -s conftest.$ac_objext; then
11701 ac_cv_type_long_double=yes
11702 else
11703 echo "$as_me: failed program was:" >&5
11704 sed 's/^/| /' conftest.$ac_ext >&5
11706 ac_cv_type_long_double=no
11709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11711 { echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
11712 echo "${ECHO_T}$ac_cv_type_long_double" >&6; }
11714 # The cast to long int works around a bug in the HP C Compiler
11715 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11716 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11717 # This bug is HP SR number 8606223364.
11718 { echo "$as_me:$LINENO: checking size of long double" >&5
11719 echo $ECHO_N "checking size of long double... $ECHO_C" >&6; }
11720 if test "${ac_cv_sizeof_long_double+set}" = set; then
11721 echo $ECHO_N "(cached) $ECHO_C" >&6
11722 else
11723 if test "$cross_compiling" = yes; then
11724 # Depending upon the size, compute the lo and hi bounds.
11725 cat >conftest.$ac_ext <<_ACEOF
11726 /* confdefs.h. */
11727 _ACEOF
11728 cat confdefs.h >>conftest.$ac_ext
11729 cat >>conftest.$ac_ext <<_ACEOF
11730 /* end confdefs.h. */
11731 $ac_includes_default
11732 typedef long double ac__type_sizeof_;
11734 main ()
11736 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11737 test_array [0] = 0
11740 return 0;
11742 _ACEOF
11743 rm -f conftest.$ac_objext
11744 if { (ac_try="$ac_compile"
11745 case "(($ac_try" in
11746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11747 *) ac_try_echo=$ac_try;;
11748 esac
11749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11750 (eval "$ac_compile") 2>conftest.er1
11751 ac_status=$?
11752 grep -v '^ *+' conftest.er1 >conftest.err
11753 rm -f conftest.er1
11754 cat conftest.err >&5
11755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11756 (exit $ac_status); } && {
11757 test -z "$ac_c_werror_flag" ||
11758 test ! -s conftest.err
11759 } && test -s conftest.$ac_objext; then
11760 ac_lo=0 ac_mid=0
11761 while :; do
11762 cat >conftest.$ac_ext <<_ACEOF
11763 /* confdefs.h. */
11764 _ACEOF
11765 cat confdefs.h >>conftest.$ac_ext
11766 cat >>conftest.$ac_ext <<_ACEOF
11767 /* end confdefs.h. */
11768 $ac_includes_default
11769 typedef long double ac__type_sizeof_;
11771 main ()
11773 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11774 test_array [0] = 0
11777 return 0;
11779 _ACEOF
11780 rm -f conftest.$ac_objext
11781 if { (ac_try="$ac_compile"
11782 case "(($ac_try" in
11783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11784 *) ac_try_echo=$ac_try;;
11785 esac
11786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11787 (eval "$ac_compile") 2>conftest.er1
11788 ac_status=$?
11789 grep -v '^ *+' conftest.er1 >conftest.err
11790 rm -f conftest.er1
11791 cat conftest.err >&5
11792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793 (exit $ac_status); } && {
11794 test -z "$ac_c_werror_flag" ||
11795 test ! -s conftest.err
11796 } && test -s conftest.$ac_objext; then
11797 ac_hi=$ac_mid; break
11798 else
11799 echo "$as_me: failed program was:" >&5
11800 sed 's/^/| /' conftest.$ac_ext >&5
11802 ac_lo=`expr $ac_mid + 1`
11803 if test $ac_lo -le $ac_mid; then
11804 ac_lo= ac_hi=
11805 break
11807 ac_mid=`expr 2 '*' $ac_mid + 1`
11810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11811 done
11812 else
11813 echo "$as_me: failed program was:" >&5
11814 sed 's/^/| /' conftest.$ac_ext >&5
11816 cat >conftest.$ac_ext <<_ACEOF
11817 /* confdefs.h. */
11818 _ACEOF
11819 cat confdefs.h >>conftest.$ac_ext
11820 cat >>conftest.$ac_ext <<_ACEOF
11821 /* end confdefs.h. */
11822 $ac_includes_default
11823 typedef long double ac__type_sizeof_;
11825 main ()
11827 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11828 test_array [0] = 0
11831 return 0;
11833 _ACEOF
11834 rm -f conftest.$ac_objext
11835 if { (ac_try="$ac_compile"
11836 case "(($ac_try" in
11837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11838 *) ac_try_echo=$ac_try;;
11839 esac
11840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11841 (eval "$ac_compile") 2>conftest.er1
11842 ac_status=$?
11843 grep -v '^ *+' conftest.er1 >conftest.err
11844 rm -f conftest.er1
11845 cat conftest.err >&5
11846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847 (exit $ac_status); } && {
11848 test -z "$ac_c_werror_flag" ||
11849 test ! -s conftest.err
11850 } && test -s conftest.$ac_objext; then
11851 ac_hi=-1 ac_mid=-1
11852 while :; do
11853 cat >conftest.$ac_ext <<_ACEOF
11854 /* confdefs.h. */
11855 _ACEOF
11856 cat confdefs.h >>conftest.$ac_ext
11857 cat >>conftest.$ac_ext <<_ACEOF
11858 /* end confdefs.h. */
11859 $ac_includes_default
11860 typedef long double ac__type_sizeof_;
11862 main ()
11864 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11865 test_array [0] = 0
11868 return 0;
11870 _ACEOF
11871 rm -f conftest.$ac_objext
11872 if { (ac_try="$ac_compile"
11873 case "(($ac_try" in
11874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11875 *) ac_try_echo=$ac_try;;
11876 esac
11877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11878 (eval "$ac_compile") 2>conftest.er1
11879 ac_status=$?
11880 grep -v '^ *+' conftest.er1 >conftest.err
11881 rm -f conftest.er1
11882 cat conftest.err >&5
11883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11884 (exit $ac_status); } && {
11885 test -z "$ac_c_werror_flag" ||
11886 test ! -s conftest.err
11887 } && test -s conftest.$ac_objext; then
11888 ac_lo=$ac_mid; break
11889 else
11890 echo "$as_me: failed program was:" >&5
11891 sed 's/^/| /' conftest.$ac_ext >&5
11893 ac_hi=`expr '(' $ac_mid ')' - 1`
11894 if test $ac_mid -le $ac_hi; then
11895 ac_lo= ac_hi=
11896 break
11898 ac_mid=`expr 2 '*' $ac_mid`
11901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11902 done
11903 else
11904 echo "$as_me: failed program was:" >&5
11905 sed 's/^/| /' conftest.$ac_ext >&5
11907 ac_lo= ac_hi=
11910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11914 # Binary search between lo and hi bounds.
11915 while test "x$ac_lo" != "x$ac_hi"; do
11916 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11917 cat >conftest.$ac_ext <<_ACEOF
11918 /* confdefs.h. */
11919 _ACEOF
11920 cat confdefs.h >>conftest.$ac_ext
11921 cat >>conftest.$ac_ext <<_ACEOF
11922 /* end confdefs.h. */
11923 $ac_includes_default
11924 typedef long double ac__type_sizeof_;
11926 main ()
11928 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11929 test_array [0] = 0
11932 return 0;
11934 _ACEOF
11935 rm -f conftest.$ac_objext
11936 if { (ac_try="$ac_compile"
11937 case "(($ac_try" in
11938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11939 *) ac_try_echo=$ac_try;;
11940 esac
11941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11942 (eval "$ac_compile") 2>conftest.er1
11943 ac_status=$?
11944 grep -v '^ *+' conftest.er1 >conftest.err
11945 rm -f conftest.er1
11946 cat conftest.err >&5
11947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11948 (exit $ac_status); } && {
11949 test -z "$ac_c_werror_flag" ||
11950 test ! -s conftest.err
11951 } && test -s conftest.$ac_objext; then
11952 ac_hi=$ac_mid
11953 else
11954 echo "$as_me: failed program was:" >&5
11955 sed 's/^/| /' conftest.$ac_ext >&5
11957 ac_lo=`expr '(' $ac_mid ')' + 1`
11960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11961 done
11962 case $ac_lo in
11963 ?*) ac_cv_sizeof_long_double=$ac_lo;;
11964 '') if test "$ac_cv_type_long_double" = yes; then
11965 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
11966 See \`config.log' for more details." >&5
11967 echo "$as_me: error: cannot compute sizeof (long double)
11968 See \`config.log' for more details." >&2;}
11969 { (exit 77); exit 77; }; }
11970 else
11971 ac_cv_sizeof_long_double=0
11972 fi ;;
11973 esac
11974 else
11975 cat >conftest.$ac_ext <<_ACEOF
11976 /* confdefs.h. */
11977 _ACEOF
11978 cat confdefs.h >>conftest.$ac_ext
11979 cat >>conftest.$ac_ext <<_ACEOF
11980 /* end confdefs.h. */
11981 $ac_includes_default
11982 typedef long double ac__type_sizeof_;
11983 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11984 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11985 #include <stdio.h>
11986 #include <stdlib.h>
11988 main ()
11991 FILE *f = fopen ("conftest.val", "w");
11992 if (! f)
11993 return 1;
11994 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11996 long int i = longval ();
11997 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11998 return 1;
11999 fprintf (f, "%ld\n", i);
12001 else
12003 unsigned long int i = ulongval ();
12004 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12005 return 1;
12006 fprintf (f, "%lu\n", i);
12008 return ferror (f) || fclose (f) != 0;
12011 return 0;
12013 _ACEOF
12014 rm -f conftest$ac_exeext
12015 if { (ac_try="$ac_link"
12016 case "(($ac_try" in
12017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12018 *) ac_try_echo=$ac_try;;
12019 esac
12020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12021 (eval "$ac_link") 2>&5
12022 ac_status=$?
12023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12024 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12025 { (case "(($ac_try" in
12026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12027 *) ac_try_echo=$ac_try;;
12028 esac
12029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12030 (eval "$ac_try") 2>&5
12031 ac_status=$?
12032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12033 (exit $ac_status); }; }; then
12034 ac_cv_sizeof_long_double=`cat conftest.val`
12035 else
12036 echo "$as_me: program exited with status $ac_status" >&5
12037 echo "$as_me: failed program was:" >&5
12038 sed 's/^/| /' conftest.$ac_ext >&5
12040 ( exit $ac_status )
12041 if test "$ac_cv_type_long_double" = yes; then
12042 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
12043 See \`config.log' for more details." >&5
12044 echo "$as_me: error: cannot compute sizeof (long double)
12045 See \`config.log' for more details." >&2;}
12046 { (exit 77); exit 77; }; }
12047 else
12048 ac_cv_sizeof_long_double=0
12051 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12053 rm -f conftest.val
12055 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
12056 echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6; }
12060 cat >>confdefs.h <<_ACEOF
12061 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
12062 _ACEOF
12068 { echo "$as_me:$LINENO: checking for _Bool support" >&5
12069 echo $ECHO_N "checking for _Bool support... $ECHO_C" >&6; }
12070 have_c99_bool=no
12071 cat >conftest.$ac_ext <<_ACEOF
12072 /* confdefs.h. */
12073 _ACEOF
12074 cat confdefs.h >>conftest.$ac_ext
12075 cat >>conftest.$ac_ext <<_ACEOF
12076 /* end confdefs.h. */
12079 main ()
12081 _Bool x; x = (_Bool)0;
12083 return 0;
12085 _ACEOF
12086 rm -f conftest.$ac_objext
12087 if { (ac_try="$ac_compile"
12088 case "(($ac_try" in
12089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12090 *) ac_try_echo=$ac_try;;
12091 esac
12092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12093 (eval "$ac_compile") 2>conftest.er1
12094 ac_status=$?
12095 grep -v '^ *+' conftest.er1 >conftest.err
12096 rm -f conftest.er1
12097 cat conftest.err >&5
12098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12099 (exit $ac_status); } && {
12100 test -z "$ac_c_werror_flag" ||
12101 test ! -s conftest.err
12102 } && test -s conftest.$ac_objext; then
12105 cat >>confdefs.h <<\_ACEOF
12106 #define HAVE_C99_BOOL 1
12107 _ACEOF
12109 have_c99_bool=yes
12111 else
12112 echo "$as_me: failed program was:" >&5
12113 sed 's/^/| /' conftest.$ac_ext >&5
12118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12119 { echo "$as_me:$LINENO: result: $have_c99_bool" >&5
12120 echo "${ECHO_T}$have_c99_bool" >&6; }
12121 if test "$have_c99_bool" = yes ; then
12122 { echo "$as_me:$LINENO: checking for _Bool" >&5
12123 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
12124 if test "${ac_cv_type__Bool+set}" = set; then
12125 echo $ECHO_N "(cached) $ECHO_C" >&6
12126 else
12127 cat >conftest.$ac_ext <<_ACEOF
12128 /* confdefs.h. */
12129 _ACEOF
12130 cat confdefs.h >>conftest.$ac_ext
12131 cat >>conftest.$ac_ext <<_ACEOF
12132 /* end confdefs.h. */
12133 $ac_includes_default
12134 typedef _Bool ac__type_new_;
12136 main ()
12138 if ((ac__type_new_ *) 0)
12139 return 0;
12140 if (sizeof (ac__type_new_))
12141 return 0;
12143 return 0;
12145 _ACEOF
12146 rm -f conftest.$ac_objext
12147 if { (ac_try="$ac_compile"
12148 case "(($ac_try" in
12149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12150 *) ac_try_echo=$ac_try;;
12151 esac
12152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12153 (eval "$ac_compile") 2>conftest.er1
12154 ac_status=$?
12155 grep -v '^ *+' conftest.er1 >conftest.err
12156 rm -f conftest.er1
12157 cat conftest.err >&5
12158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159 (exit $ac_status); } && {
12160 test -z "$ac_c_werror_flag" ||
12161 test ! -s conftest.err
12162 } && test -s conftest.$ac_objext; then
12163 ac_cv_type__Bool=yes
12164 else
12165 echo "$as_me: failed program was:" >&5
12166 sed 's/^/| /' conftest.$ac_ext >&5
12168 ac_cv_type__Bool=no
12171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12173 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
12174 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
12176 # The cast to long int works around a bug in the HP C Compiler
12177 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12178 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12179 # This bug is HP SR number 8606223364.
12180 { echo "$as_me:$LINENO: checking size of _Bool" >&5
12181 echo $ECHO_N "checking size of _Bool... $ECHO_C" >&6; }
12182 if test "${ac_cv_sizeof__Bool+set}" = set; then
12183 echo $ECHO_N "(cached) $ECHO_C" >&6
12184 else
12185 if test "$cross_compiling" = yes; then
12186 # Depending upon the size, compute the lo and hi bounds.
12187 cat >conftest.$ac_ext <<_ACEOF
12188 /* confdefs.h. */
12189 _ACEOF
12190 cat confdefs.h >>conftest.$ac_ext
12191 cat >>conftest.$ac_ext <<_ACEOF
12192 /* end confdefs.h. */
12193 $ac_includes_default
12194 typedef _Bool ac__type_sizeof_;
12196 main ()
12198 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12199 test_array [0] = 0
12202 return 0;
12204 _ACEOF
12205 rm -f conftest.$ac_objext
12206 if { (ac_try="$ac_compile"
12207 case "(($ac_try" in
12208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12209 *) ac_try_echo=$ac_try;;
12210 esac
12211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12212 (eval "$ac_compile") 2>conftest.er1
12213 ac_status=$?
12214 grep -v '^ *+' conftest.er1 >conftest.err
12215 rm -f conftest.er1
12216 cat conftest.err >&5
12217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12218 (exit $ac_status); } && {
12219 test -z "$ac_c_werror_flag" ||
12220 test ! -s conftest.err
12221 } && test -s conftest.$ac_objext; then
12222 ac_lo=0 ac_mid=0
12223 while :; do
12224 cat >conftest.$ac_ext <<_ACEOF
12225 /* confdefs.h. */
12226 _ACEOF
12227 cat confdefs.h >>conftest.$ac_ext
12228 cat >>conftest.$ac_ext <<_ACEOF
12229 /* end confdefs.h. */
12230 $ac_includes_default
12231 typedef _Bool ac__type_sizeof_;
12233 main ()
12235 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12236 test_array [0] = 0
12239 return 0;
12241 _ACEOF
12242 rm -f conftest.$ac_objext
12243 if { (ac_try="$ac_compile"
12244 case "(($ac_try" in
12245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12246 *) ac_try_echo=$ac_try;;
12247 esac
12248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12249 (eval "$ac_compile") 2>conftest.er1
12250 ac_status=$?
12251 grep -v '^ *+' conftest.er1 >conftest.err
12252 rm -f conftest.er1
12253 cat conftest.err >&5
12254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12255 (exit $ac_status); } && {
12256 test -z "$ac_c_werror_flag" ||
12257 test ! -s conftest.err
12258 } && test -s conftest.$ac_objext; then
12259 ac_hi=$ac_mid; break
12260 else
12261 echo "$as_me: failed program was:" >&5
12262 sed 's/^/| /' conftest.$ac_ext >&5
12264 ac_lo=`expr $ac_mid + 1`
12265 if test $ac_lo -le $ac_mid; then
12266 ac_lo= ac_hi=
12267 break
12269 ac_mid=`expr 2 '*' $ac_mid + 1`
12272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12273 done
12274 else
12275 echo "$as_me: failed program was:" >&5
12276 sed 's/^/| /' conftest.$ac_ext >&5
12278 cat >conftest.$ac_ext <<_ACEOF
12279 /* confdefs.h. */
12280 _ACEOF
12281 cat confdefs.h >>conftest.$ac_ext
12282 cat >>conftest.$ac_ext <<_ACEOF
12283 /* end confdefs.h. */
12284 $ac_includes_default
12285 typedef _Bool ac__type_sizeof_;
12287 main ()
12289 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12290 test_array [0] = 0
12293 return 0;
12295 _ACEOF
12296 rm -f conftest.$ac_objext
12297 if { (ac_try="$ac_compile"
12298 case "(($ac_try" in
12299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12300 *) ac_try_echo=$ac_try;;
12301 esac
12302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12303 (eval "$ac_compile") 2>conftest.er1
12304 ac_status=$?
12305 grep -v '^ *+' conftest.er1 >conftest.err
12306 rm -f conftest.er1
12307 cat conftest.err >&5
12308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12309 (exit $ac_status); } && {
12310 test -z "$ac_c_werror_flag" ||
12311 test ! -s conftest.err
12312 } && test -s conftest.$ac_objext; then
12313 ac_hi=-1 ac_mid=-1
12314 while :; do
12315 cat >conftest.$ac_ext <<_ACEOF
12316 /* confdefs.h. */
12317 _ACEOF
12318 cat confdefs.h >>conftest.$ac_ext
12319 cat >>conftest.$ac_ext <<_ACEOF
12320 /* end confdefs.h. */
12321 $ac_includes_default
12322 typedef _Bool ac__type_sizeof_;
12324 main ()
12326 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12327 test_array [0] = 0
12330 return 0;
12332 _ACEOF
12333 rm -f conftest.$ac_objext
12334 if { (ac_try="$ac_compile"
12335 case "(($ac_try" in
12336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12337 *) ac_try_echo=$ac_try;;
12338 esac
12339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12340 (eval "$ac_compile") 2>conftest.er1
12341 ac_status=$?
12342 grep -v '^ *+' conftest.er1 >conftest.err
12343 rm -f conftest.er1
12344 cat conftest.err >&5
12345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12346 (exit $ac_status); } && {
12347 test -z "$ac_c_werror_flag" ||
12348 test ! -s conftest.err
12349 } && test -s conftest.$ac_objext; then
12350 ac_lo=$ac_mid; break
12351 else
12352 echo "$as_me: failed program was:" >&5
12353 sed 's/^/| /' conftest.$ac_ext >&5
12355 ac_hi=`expr '(' $ac_mid ')' - 1`
12356 if test $ac_mid -le $ac_hi; then
12357 ac_lo= ac_hi=
12358 break
12360 ac_mid=`expr 2 '*' $ac_mid`
12363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12364 done
12365 else
12366 echo "$as_me: failed program was:" >&5
12367 sed 's/^/| /' conftest.$ac_ext >&5
12369 ac_lo= ac_hi=
12372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12376 # Binary search between lo and hi bounds.
12377 while test "x$ac_lo" != "x$ac_hi"; do
12378 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12379 cat >conftest.$ac_ext <<_ACEOF
12380 /* confdefs.h. */
12381 _ACEOF
12382 cat confdefs.h >>conftest.$ac_ext
12383 cat >>conftest.$ac_ext <<_ACEOF
12384 /* end confdefs.h. */
12385 $ac_includes_default
12386 typedef _Bool ac__type_sizeof_;
12388 main ()
12390 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12391 test_array [0] = 0
12394 return 0;
12396 _ACEOF
12397 rm -f conftest.$ac_objext
12398 if { (ac_try="$ac_compile"
12399 case "(($ac_try" in
12400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12401 *) ac_try_echo=$ac_try;;
12402 esac
12403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12404 (eval "$ac_compile") 2>conftest.er1
12405 ac_status=$?
12406 grep -v '^ *+' conftest.er1 >conftest.err
12407 rm -f conftest.er1
12408 cat conftest.err >&5
12409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410 (exit $ac_status); } && {
12411 test -z "$ac_c_werror_flag" ||
12412 test ! -s conftest.err
12413 } && test -s conftest.$ac_objext; then
12414 ac_hi=$ac_mid
12415 else
12416 echo "$as_me: failed program was:" >&5
12417 sed 's/^/| /' conftest.$ac_ext >&5
12419 ac_lo=`expr '(' $ac_mid ')' + 1`
12422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12423 done
12424 case $ac_lo in
12425 ?*) ac_cv_sizeof__Bool=$ac_lo;;
12426 '') if test "$ac_cv_type__Bool" = yes; then
12427 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
12428 See \`config.log' for more details." >&5
12429 echo "$as_me: error: cannot compute sizeof (_Bool)
12430 See \`config.log' for more details." >&2;}
12431 { (exit 77); exit 77; }; }
12432 else
12433 ac_cv_sizeof__Bool=0
12434 fi ;;
12435 esac
12436 else
12437 cat >conftest.$ac_ext <<_ACEOF
12438 /* confdefs.h. */
12439 _ACEOF
12440 cat confdefs.h >>conftest.$ac_ext
12441 cat >>conftest.$ac_ext <<_ACEOF
12442 /* end confdefs.h. */
12443 $ac_includes_default
12444 typedef _Bool ac__type_sizeof_;
12445 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12446 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12447 #include <stdio.h>
12448 #include <stdlib.h>
12450 main ()
12453 FILE *f = fopen ("conftest.val", "w");
12454 if (! f)
12455 return 1;
12456 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12458 long int i = longval ();
12459 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12460 return 1;
12461 fprintf (f, "%ld\n", i);
12463 else
12465 unsigned long int i = ulongval ();
12466 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12467 return 1;
12468 fprintf (f, "%lu\n", i);
12470 return ferror (f) || fclose (f) != 0;
12473 return 0;
12475 _ACEOF
12476 rm -f conftest$ac_exeext
12477 if { (ac_try="$ac_link"
12478 case "(($ac_try" in
12479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12480 *) ac_try_echo=$ac_try;;
12481 esac
12482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12483 (eval "$ac_link") 2>&5
12484 ac_status=$?
12485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12486 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12487 { (case "(($ac_try" in
12488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12489 *) ac_try_echo=$ac_try;;
12490 esac
12491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12492 (eval "$ac_try") 2>&5
12493 ac_status=$?
12494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12495 (exit $ac_status); }; }; then
12496 ac_cv_sizeof__Bool=`cat conftest.val`
12497 else
12498 echo "$as_me: program exited with status $ac_status" >&5
12499 echo "$as_me: failed program was:" >&5
12500 sed 's/^/| /' conftest.$ac_ext >&5
12502 ( exit $ac_status )
12503 if test "$ac_cv_type__Bool" = yes; then
12504 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
12505 See \`config.log' for more details." >&5
12506 echo "$as_me: error: cannot compute sizeof (_Bool)
12507 See \`config.log' for more details." >&2;}
12508 { (exit 77); exit 77; }; }
12509 else
12510 ac_cv_sizeof__Bool=0
12513 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12515 rm -f conftest.val
12517 { echo "$as_me:$LINENO: result: $ac_cv_sizeof__Bool" >&5
12518 echo "${ECHO_T}$ac_cv_sizeof__Bool" >&6; }
12522 cat >>confdefs.h <<_ACEOF
12523 #define SIZEOF__BOOL $ac_cv_sizeof__Bool
12524 _ACEOF
12529 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
12530 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
12531 if test "${ac_cv_type_uintptr_t+set}" = set; then
12532 echo $ECHO_N "(cached) $ECHO_C" >&6
12533 else
12534 cat >conftest.$ac_ext <<_ACEOF
12535 /* confdefs.h. */
12536 _ACEOF
12537 cat confdefs.h >>conftest.$ac_ext
12538 cat >>conftest.$ac_ext <<_ACEOF
12539 /* end confdefs.h. */
12540 #ifdef HAVE_STDINT_H
12541 #include <stdint.h>
12542 #endif
12544 typedef uintptr_t ac__type_new_;
12546 main ()
12548 if ((ac__type_new_ *) 0)
12549 return 0;
12550 if (sizeof (ac__type_new_))
12551 return 0;
12553 return 0;
12555 _ACEOF
12556 rm -f conftest.$ac_objext
12557 if { (ac_try="$ac_compile"
12558 case "(($ac_try" in
12559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12560 *) ac_try_echo=$ac_try;;
12561 esac
12562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12563 (eval "$ac_compile") 2>conftest.er1
12564 ac_status=$?
12565 grep -v '^ *+' conftest.er1 >conftest.err
12566 rm -f conftest.er1
12567 cat conftest.err >&5
12568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12569 (exit $ac_status); } && {
12570 test -z "$ac_c_werror_flag" ||
12571 test ! -s conftest.err
12572 } && test -s conftest.$ac_objext; then
12573 ac_cv_type_uintptr_t=yes
12574 else
12575 echo "$as_me: failed program was:" >&5
12576 sed 's/^/| /' conftest.$ac_ext >&5
12578 ac_cv_type_uintptr_t=no
12581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12583 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12584 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12585 if test $ac_cv_type_uintptr_t = yes; then
12587 cat >>confdefs.h <<_ACEOF
12588 #define HAVE_UINTPTR_T 1
12589 _ACEOF
12591 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
12592 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
12593 if test "${ac_cv_type_uintptr_t+set}" = set; then
12594 echo $ECHO_N "(cached) $ECHO_C" >&6
12595 else
12596 cat >conftest.$ac_ext <<_ACEOF
12597 /* confdefs.h. */
12598 _ACEOF
12599 cat confdefs.h >>conftest.$ac_ext
12600 cat >>conftest.$ac_ext <<_ACEOF
12601 /* end confdefs.h. */
12602 $ac_includes_default
12603 typedef uintptr_t ac__type_new_;
12605 main ()
12607 if ((ac__type_new_ *) 0)
12608 return 0;
12609 if (sizeof (ac__type_new_))
12610 return 0;
12612 return 0;
12614 _ACEOF
12615 rm -f conftest.$ac_objext
12616 if { (ac_try="$ac_compile"
12617 case "(($ac_try" in
12618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12619 *) ac_try_echo=$ac_try;;
12620 esac
12621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12622 (eval "$ac_compile") 2>conftest.er1
12623 ac_status=$?
12624 grep -v '^ *+' conftest.er1 >conftest.err
12625 rm -f conftest.er1
12626 cat conftest.err >&5
12627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12628 (exit $ac_status); } && {
12629 test -z "$ac_c_werror_flag" ||
12630 test ! -s conftest.err
12631 } && test -s conftest.$ac_objext; then
12632 ac_cv_type_uintptr_t=yes
12633 else
12634 echo "$as_me: failed program was:" >&5
12635 sed 's/^/| /' conftest.$ac_ext >&5
12637 ac_cv_type_uintptr_t=no
12640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12642 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12643 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12645 # The cast to long int works around a bug in the HP C Compiler
12646 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12647 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12648 # This bug is HP SR number 8606223364.
12649 { echo "$as_me:$LINENO: checking size of uintptr_t" >&5
12650 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6; }
12651 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
12652 echo $ECHO_N "(cached) $ECHO_C" >&6
12653 else
12654 if test "$cross_compiling" = yes; then
12655 # Depending upon the size, compute the lo and hi bounds.
12656 cat >conftest.$ac_ext <<_ACEOF
12657 /* confdefs.h. */
12658 _ACEOF
12659 cat confdefs.h >>conftest.$ac_ext
12660 cat >>conftest.$ac_ext <<_ACEOF
12661 /* end confdefs.h. */
12662 $ac_includes_default
12663 typedef uintptr_t ac__type_sizeof_;
12665 main ()
12667 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12668 test_array [0] = 0
12671 return 0;
12673 _ACEOF
12674 rm -f conftest.$ac_objext
12675 if { (ac_try="$ac_compile"
12676 case "(($ac_try" in
12677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12678 *) ac_try_echo=$ac_try;;
12679 esac
12680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12681 (eval "$ac_compile") 2>conftest.er1
12682 ac_status=$?
12683 grep -v '^ *+' conftest.er1 >conftest.err
12684 rm -f conftest.er1
12685 cat conftest.err >&5
12686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12687 (exit $ac_status); } && {
12688 test -z "$ac_c_werror_flag" ||
12689 test ! -s conftest.err
12690 } && test -s conftest.$ac_objext; then
12691 ac_lo=0 ac_mid=0
12692 while :; do
12693 cat >conftest.$ac_ext <<_ACEOF
12694 /* confdefs.h. */
12695 _ACEOF
12696 cat confdefs.h >>conftest.$ac_ext
12697 cat >>conftest.$ac_ext <<_ACEOF
12698 /* end confdefs.h. */
12699 $ac_includes_default
12700 typedef uintptr_t ac__type_sizeof_;
12702 main ()
12704 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12705 test_array [0] = 0
12708 return 0;
12710 _ACEOF
12711 rm -f conftest.$ac_objext
12712 if { (ac_try="$ac_compile"
12713 case "(($ac_try" in
12714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12715 *) ac_try_echo=$ac_try;;
12716 esac
12717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12718 (eval "$ac_compile") 2>conftest.er1
12719 ac_status=$?
12720 grep -v '^ *+' conftest.er1 >conftest.err
12721 rm -f conftest.er1
12722 cat conftest.err >&5
12723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12724 (exit $ac_status); } && {
12725 test -z "$ac_c_werror_flag" ||
12726 test ! -s conftest.err
12727 } && test -s conftest.$ac_objext; then
12728 ac_hi=$ac_mid; break
12729 else
12730 echo "$as_me: failed program was:" >&5
12731 sed 's/^/| /' conftest.$ac_ext >&5
12733 ac_lo=`expr $ac_mid + 1`
12734 if test $ac_lo -le $ac_mid; then
12735 ac_lo= ac_hi=
12736 break
12738 ac_mid=`expr 2 '*' $ac_mid + 1`
12741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12742 done
12743 else
12744 echo "$as_me: failed program was:" >&5
12745 sed 's/^/| /' conftest.$ac_ext >&5
12747 cat >conftest.$ac_ext <<_ACEOF
12748 /* confdefs.h. */
12749 _ACEOF
12750 cat confdefs.h >>conftest.$ac_ext
12751 cat >>conftest.$ac_ext <<_ACEOF
12752 /* end confdefs.h. */
12753 $ac_includes_default
12754 typedef uintptr_t ac__type_sizeof_;
12756 main ()
12758 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12759 test_array [0] = 0
12762 return 0;
12764 _ACEOF
12765 rm -f conftest.$ac_objext
12766 if { (ac_try="$ac_compile"
12767 case "(($ac_try" in
12768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12769 *) ac_try_echo=$ac_try;;
12770 esac
12771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12772 (eval "$ac_compile") 2>conftest.er1
12773 ac_status=$?
12774 grep -v '^ *+' conftest.er1 >conftest.err
12775 rm -f conftest.er1
12776 cat conftest.err >&5
12777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12778 (exit $ac_status); } && {
12779 test -z "$ac_c_werror_flag" ||
12780 test ! -s conftest.err
12781 } && test -s conftest.$ac_objext; then
12782 ac_hi=-1 ac_mid=-1
12783 while :; do
12784 cat >conftest.$ac_ext <<_ACEOF
12785 /* confdefs.h. */
12786 _ACEOF
12787 cat confdefs.h >>conftest.$ac_ext
12788 cat >>conftest.$ac_ext <<_ACEOF
12789 /* end confdefs.h. */
12790 $ac_includes_default
12791 typedef uintptr_t ac__type_sizeof_;
12793 main ()
12795 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12796 test_array [0] = 0
12799 return 0;
12801 _ACEOF
12802 rm -f conftest.$ac_objext
12803 if { (ac_try="$ac_compile"
12804 case "(($ac_try" in
12805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12806 *) ac_try_echo=$ac_try;;
12807 esac
12808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12809 (eval "$ac_compile") 2>conftest.er1
12810 ac_status=$?
12811 grep -v '^ *+' conftest.er1 >conftest.err
12812 rm -f conftest.er1
12813 cat conftest.err >&5
12814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12815 (exit $ac_status); } && {
12816 test -z "$ac_c_werror_flag" ||
12817 test ! -s conftest.err
12818 } && test -s conftest.$ac_objext; then
12819 ac_lo=$ac_mid; break
12820 else
12821 echo "$as_me: failed program was:" >&5
12822 sed 's/^/| /' conftest.$ac_ext >&5
12824 ac_hi=`expr '(' $ac_mid ')' - 1`
12825 if test $ac_mid -le $ac_hi; then
12826 ac_lo= ac_hi=
12827 break
12829 ac_mid=`expr 2 '*' $ac_mid`
12832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12833 done
12834 else
12835 echo "$as_me: failed program was:" >&5
12836 sed 's/^/| /' conftest.$ac_ext >&5
12838 ac_lo= ac_hi=
12841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12845 # Binary search between lo and hi bounds.
12846 while test "x$ac_lo" != "x$ac_hi"; do
12847 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12848 cat >conftest.$ac_ext <<_ACEOF
12849 /* confdefs.h. */
12850 _ACEOF
12851 cat confdefs.h >>conftest.$ac_ext
12852 cat >>conftest.$ac_ext <<_ACEOF
12853 /* end confdefs.h. */
12854 $ac_includes_default
12855 typedef uintptr_t ac__type_sizeof_;
12857 main ()
12859 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12860 test_array [0] = 0
12863 return 0;
12865 _ACEOF
12866 rm -f conftest.$ac_objext
12867 if { (ac_try="$ac_compile"
12868 case "(($ac_try" in
12869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12870 *) ac_try_echo=$ac_try;;
12871 esac
12872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12873 (eval "$ac_compile") 2>conftest.er1
12874 ac_status=$?
12875 grep -v '^ *+' conftest.er1 >conftest.err
12876 rm -f conftest.er1
12877 cat conftest.err >&5
12878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12879 (exit $ac_status); } && {
12880 test -z "$ac_c_werror_flag" ||
12881 test ! -s conftest.err
12882 } && test -s conftest.$ac_objext; then
12883 ac_hi=$ac_mid
12884 else
12885 echo "$as_me: failed program was:" >&5
12886 sed 's/^/| /' conftest.$ac_ext >&5
12888 ac_lo=`expr '(' $ac_mid ')' + 1`
12891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12892 done
12893 case $ac_lo in
12894 ?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
12895 '') if test "$ac_cv_type_uintptr_t" = yes; then
12896 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
12897 See \`config.log' for more details." >&5
12898 echo "$as_me: error: cannot compute sizeof (uintptr_t)
12899 See \`config.log' for more details." >&2;}
12900 { (exit 77); exit 77; }; }
12901 else
12902 ac_cv_sizeof_uintptr_t=0
12903 fi ;;
12904 esac
12905 else
12906 cat >conftest.$ac_ext <<_ACEOF
12907 /* confdefs.h. */
12908 _ACEOF
12909 cat confdefs.h >>conftest.$ac_ext
12910 cat >>conftest.$ac_ext <<_ACEOF
12911 /* end confdefs.h. */
12912 $ac_includes_default
12913 typedef uintptr_t ac__type_sizeof_;
12914 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12915 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12916 #include <stdio.h>
12917 #include <stdlib.h>
12919 main ()
12922 FILE *f = fopen ("conftest.val", "w");
12923 if (! f)
12924 return 1;
12925 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12927 long int i = longval ();
12928 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12929 return 1;
12930 fprintf (f, "%ld\n", i);
12932 else
12934 unsigned long int i = ulongval ();
12935 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12936 return 1;
12937 fprintf (f, "%lu\n", i);
12939 return ferror (f) || fclose (f) != 0;
12942 return 0;
12944 _ACEOF
12945 rm -f conftest$ac_exeext
12946 if { (ac_try="$ac_link"
12947 case "(($ac_try" in
12948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12949 *) ac_try_echo=$ac_try;;
12950 esac
12951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12952 (eval "$ac_link") 2>&5
12953 ac_status=$?
12954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12955 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12956 { (case "(($ac_try" in
12957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12958 *) ac_try_echo=$ac_try;;
12959 esac
12960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12961 (eval "$ac_try") 2>&5
12962 ac_status=$?
12963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12964 (exit $ac_status); }; }; then
12965 ac_cv_sizeof_uintptr_t=`cat conftest.val`
12966 else
12967 echo "$as_me: program exited with status $ac_status" >&5
12968 echo "$as_me: failed program was:" >&5
12969 sed 's/^/| /' conftest.$ac_ext >&5
12971 ( exit $ac_status )
12972 if test "$ac_cv_type_uintptr_t" = yes; then
12973 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
12974 See \`config.log' for more details." >&5
12975 echo "$as_me: error: cannot compute sizeof (uintptr_t)
12976 See \`config.log' for more details." >&2;}
12977 { (exit 77); exit 77; }; }
12978 else
12979 ac_cv_sizeof_uintptr_t=0
12982 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12984 rm -f conftest.val
12986 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
12987 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6; }
12991 cat >>confdefs.h <<_ACEOF
12992 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
12993 _ACEOF
13000 # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.
13001 { echo "$as_me:$LINENO: checking size of off_t" >&5
13002 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
13003 if test "${ac_cv_sizeof_off_t+set}" = set; then
13004 echo $ECHO_N "(cached) $ECHO_C" >&6
13005 else
13006 if test "$cross_compiling" = yes; then
13007 ac_cv_sizeof_off_t=4
13008 else
13009 cat >conftest.$ac_ext <<_ACEOF
13010 /* confdefs.h. */
13011 _ACEOF
13012 cat confdefs.h >>conftest.$ac_ext
13013 cat >>conftest.$ac_ext <<_ACEOF
13014 /* end confdefs.h. */
13015 #include <stdio.h>
13016 #include <sys/types.h>
13017 main()
13019 FILE *f=fopen("conftestval", "w");
13020 if (!f) exit(1);
13021 fprintf(f, "%d\n", sizeof(off_t));
13022 exit(0);
13024 _ACEOF
13025 rm -f conftest$ac_exeext
13026 if { (ac_try="$ac_link"
13027 case "(($ac_try" in
13028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13029 *) ac_try_echo=$ac_try;;
13030 esac
13031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13032 (eval "$ac_link") 2>&5
13033 ac_status=$?
13034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13035 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13036 { (case "(($ac_try" in
13037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13038 *) ac_try_echo=$ac_try;;
13039 esac
13040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13041 (eval "$ac_try") 2>&5
13042 ac_status=$?
13043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13044 (exit $ac_status); }; }; then
13045 ac_cv_sizeof_off_t=`cat conftestval`
13046 else
13047 echo "$as_me: program exited with status $ac_status" >&5
13048 echo "$as_me: failed program was:" >&5
13049 sed 's/^/| /' conftest.$ac_ext >&5
13051 ( exit $ac_status )
13052 ac_cv_sizeof_off_t=0
13054 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13061 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
13062 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
13064 cat >>confdefs.h <<_ACEOF
13065 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
13066 _ACEOF
13069 { echo "$as_me:$LINENO: checking whether to enable large file support" >&5
13070 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6; }
13071 if test "$have_long_long" = yes
13072 then
13073 if test "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
13074 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
13076 cat >>confdefs.h <<\_ACEOF
13077 #define HAVE_LARGEFILE_SUPPORT 1
13078 _ACEOF
13080 { echo "$as_me:$LINENO: result: yes" >&5
13081 echo "${ECHO_T}yes" >&6; }
13082 else
13083 { echo "$as_me:$LINENO: result: no" >&5
13084 echo "${ECHO_T}no" >&6; }
13086 else
13087 { echo "$as_me:$LINENO: result: no" >&5
13088 echo "${ECHO_T}no" >&6; }
13091 # AC_CHECK_SIZEOF() doesn't include <time.h>.
13092 { echo "$as_me:$LINENO: checking size of time_t" >&5
13093 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6; }
13094 if test "${ac_cv_sizeof_time_t+set}" = set; then
13095 echo $ECHO_N "(cached) $ECHO_C" >&6
13096 else
13097 if test "$cross_compiling" = yes; then
13098 ac_cv_sizeof_time_t=4
13099 else
13100 cat >conftest.$ac_ext <<_ACEOF
13101 /* confdefs.h. */
13102 _ACEOF
13103 cat confdefs.h >>conftest.$ac_ext
13104 cat >>conftest.$ac_ext <<_ACEOF
13105 /* end confdefs.h. */
13106 #include <stdio.h>
13107 #include <time.h>
13108 main()
13110 FILE *f=fopen("conftestval", "w");
13111 if (!f) exit(1);
13112 fprintf(f, "%d\n", sizeof(time_t));
13113 exit(0);
13115 _ACEOF
13116 rm -f conftest$ac_exeext
13117 if { (ac_try="$ac_link"
13118 case "(($ac_try" in
13119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13120 *) ac_try_echo=$ac_try;;
13121 esac
13122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13123 (eval "$ac_link") 2>&5
13124 ac_status=$?
13125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13126 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13127 { (case "(($ac_try" in
13128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13129 *) ac_try_echo=$ac_try;;
13130 esac
13131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13132 (eval "$ac_try") 2>&5
13133 ac_status=$?
13134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135 (exit $ac_status); }; }; then
13136 ac_cv_sizeof_time_t=`cat conftestval`
13137 else
13138 echo "$as_me: program exited with status $ac_status" >&5
13139 echo "$as_me: failed program was:" >&5
13140 sed 's/^/| /' conftest.$ac_ext >&5
13142 ( exit $ac_status )
13143 ac_cv_sizeof_time_t=0
13145 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13152 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
13153 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; }
13155 cat >>confdefs.h <<_ACEOF
13156 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
13157 _ACEOF
13161 # if have pthread_t then define SIZEOF_PTHREAD_T
13162 ac_save_cc="$CC"
13163 if test "$ac_cv_kpthread" = "yes"
13164 then CC="$CC -Kpthread"
13165 elif test "$ac_cv_kthread" = "yes"
13166 then CC="$CC -Kthread"
13167 elif test "$ac_cv_pthread" = "yes"
13168 then CC="$CC -pthread"
13170 { echo "$as_me:$LINENO: checking for pthread_t" >&5
13171 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; }
13172 have_pthread_t=no
13173 cat >conftest.$ac_ext <<_ACEOF
13174 /* confdefs.h. */
13175 _ACEOF
13176 cat confdefs.h >>conftest.$ac_ext
13177 cat >>conftest.$ac_ext <<_ACEOF
13178 /* end confdefs.h. */
13179 #include <pthread.h>
13181 main ()
13183 pthread_t x; x = *(pthread_t*)0;
13185 return 0;
13187 _ACEOF
13188 rm -f conftest.$ac_objext
13189 if { (ac_try="$ac_compile"
13190 case "(($ac_try" in
13191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13192 *) ac_try_echo=$ac_try;;
13193 esac
13194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13195 (eval "$ac_compile") 2>conftest.er1
13196 ac_status=$?
13197 grep -v '^ *+' conftest.er1 >conftest.err
13198 rm -f conftest.er1
13199 cat conftest.err >&5
13200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13201 (exit $ac_status); } && {
13202 test -z "$ac_c_werror_flag" ||
13203 test ! -s conftest.err
13204 } && test -s conftest.$ac_objext; then
13205 have_pthread_t=yes
13206 else
13207 echo "$as_me: failed program was:" >&5
13208 sed 's/^/| /' conftest.$ac_ext >&5
13213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13214 { echo "$as_me:$LINENO: result: $have_pthread_t" >&5
13215 echo "${ECHO_T}$have_pthread_t" >&6; }
13216 if test "$have_pthread_t" = yes ; then
13217 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
13218 { echo "$as_me:$LINENO: checking size of pthread_t" >&5
13219 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6; }
13220 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
13221 echo $ECHO_N "(cached) $ECHO_C" >&6
13222 else
13223 if test "$cross_compiling" = yes; then
13224 ac_cv_sizeof_pthread_t=4
13225 else
13226 cat >conftest.$ac_ext <<_ACEOF
13227 /* confdefs.h. */
13228 _ACEOF
13229 cat confdefs.h >>conftest.$ac_ext
13230 cat >>conftest.$ac_ext <<_ACEOF
13231 /* end confdefs.h. */
13232 #include <stdio.h>
13233 #include <pthread.h>
13234 main()
13236 FILE *f=fopen("conftestval", "w");
13237 if (!f) exit(1);
13238 fprintf(f, "%d\n", sizeof(pthread_t));
13239 exit(0);
13241 _ACEOF
13242 rm -f conftest$ac_exeext
13243 if { (ac_try="$ac_link"
13244 case "(($ac_try" in
13245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13246 *) ac_try_echo=$ac_try;;
13247 esac
13248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13249 (eval "$ac_link") 2>&5
13250 ac_status=$?
13251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13252 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13253 { (case "(($ac_try" in
13254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13255 *) ac_try_echo=$ac_try;;
13256 esac
13257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13258 (eval "$ac_try") 2>&5
13259 ac_status=$?
13260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13261 (exit $ac_status); }; }; then
13262 ac_cv_sizeof_pthread_t=`cat conftestval`
13263 else
13264 echo "$as_me: program exited with status $ac_status" >&5
13265 echo "$as_me: failed program was:" >&5
13266 sed 's/^/| /' conftest.$ac_ext >&5
13268 ( exit $ac_status )
13269 ac_cv_sizeof_pthread_t=0
13271 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13278 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
13279 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6; }
13281 cat >>confdefs.h <<_ACEOF
13282 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
13283 _ACEOF
13286 CC="$ac_save_cc"
13291 case $ac_sys_system/$ac_sys_release in
13292 Darwin/[01567]\..*)
13293 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
13295 Darwin/*)
13296 OTHER_LIBTOOL_OPT=""
13298 esac
13301 ARCH_RUN_32BIT=""
13303 case $ac_sys_system/$ac_sys_release in
13304 Darwin/[01567]\..*)
13305 LIBTOOL_CRUFT="-framework System -lcc_dynamic"
13306 if test "${enable_universalsdk}"; then
13308 else
13309 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `/usr/bin/arch`"
13311 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13312 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
13313 Darwin/*)
13314 gcc_version=`gcc -dumpversion`
13315 if test ${gcc_version} '<' 4.0
13316 then
13317 LIBTOOL_CRUFT="-lcc_dynamic"
13318 else
13319 LIBTOOL_CRUFT=""
13321 if test "$cross_compiling" = yes; then
13322 ac_osx_32bit=yes
13323 else
13324 cat >conftest.$ac_ext <<_ACEOF
13325 /* confdefs.h. */
13326 _ACEOF
13327 cat confdefs.h >>conftest.$ac_ext
13328 cat >>conftest.$ac_ext <<_ACEOF
13329 /* end confdefs.h. */
13331 #include <unistd.h>
13332 int main(int argc, char*argv[])
13334 if (sizeof(long) == 4) {
13335 return 0;
13336 } else {
13337 return 1;
13341 _ACEOF
13342 rm -f conftest$ac_exeext
13343 if { (ac_try="$ac_link"
13344 case "(($ac_try" in
13345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13346 *) ac_try_echo=$ac_try;;
13347 esac
13348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13349 (eval "$ac_link") 2>&5
13350 ac_status=$?
13351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13352 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13353 { (case "(($ac_try" in
13354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13355 *) ac_try_echo=$ac_try;;
13356 esac
13357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13358 (eval "$ac_try") 2>&5
13359 ac_status=$?
13360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13361 (exit $ac_status); }; }; then
13362 ac_osx_32bit=yes
13363 else
13364 echo "$as_me: program exited with status $ac_status" >&5
13365 echo "$as_me: failed program was:" >&5
13366 sed 's/^/| /' conftest.$ac_ext >&5
13368 ( exit $ac_status )
13369 ac_osx_32bit=no
13371 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13376 if test "${ac_osx_32bit}" = "yes"; then
13377 case `/usr/bin/arch` in
13378 i386)
13379 MACOSX_DEFAULT_ARCH="i386"
13381 ppc)
13382 MACOSX_DEFAULT_ARCH="ppc"
13385 { { echo "$as_me:$LINENO: error: Unexpected output of 'arch' on OSX" >&5
13386 echo "$as_me: error: Unexpected output of 'arch' on OSX" >&2;}
13387 { (exit 1); exit 1; }; }
13389 esac
13390 else
13391 case `/usr/bin/arch` in
13392 i386)
13393 MACOSX_DEFAULT_ARCH="x86_64"
13395 ppc)
13396 MACOSX_DEFAULT_ARCH="ppc64"
13399 { { echo "$as_me:$LINENO: error: Unexpected output of 'arch' on OSX" >&5
13400 echo "$as_me: error: Unexpected output of 'arch' on OSX" >&2;}
13401 { (exit 1); exit 1; }; }
13403 esac
13405 #ARCH_RUN_32BIT="true"
13408 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}"
13409 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13410 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
13411 esac
13413 { echo "$as_me:$LINENO: checking for --enable-framework" >&5
13414 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6; }
13415 if test "$enable_framework"
13416 then
13417 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
13418 # -F. is needed to allow linking to the framework while
13419 # in the build location.
13421 cat >>confdefs.h <<\_ACEOF
13422 #define WITH_NEXT_FRAMEWORK 1
13423 _ACEOF
13425 { echo "$as_me:$LINENO: result: yes" >&5
13426 echo "${ECHO_T}yes" >&6; }
13427 if test $enable_shared = "yes"
13428 then
13429 { { echo "$as_me:$LINENO: error: Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead" >&5
13430 echo "$as_me: error: Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead" >&2;}
13431 { (exit 1); exit 1; }; }
13433 else
13434 { echo "$as_me:$LINENO: result: no" >&5
13435 echo "${ECHO_T}no" >&6; }
13438 { echo "$as_me:$LINENO: checking for dyld" >&5
13439 echo $ECHO_N "checking for dyld... $ECHO_C" >&6; }
13440 case $ac_sys_system/$ac_sys_release in
13441 Darwin/*)
13443 cat >>confdefs.h <<\_ACEOF
13444 #define WITH_DYLD 1
13445 _ACEOF
13447 { echo "$as_me:$LINENO: result: always on for Darwin" >&5
13448 echo "${ECHO_T}always on for Darwin" >&6; }
13451 { echo "$as_me:$LINENO: result: no" >&5
13452 echo "${ECHO_T}no" >&6; }
13454 esac
13456 # Set info about shared libraries.
13462 # SO is the extension of shared libraries `(including the dot!)
13463 # -- usually .so, .sl on HP-UX, .dll on Cygwin
13464 { echo "$as_me:$LINENO: checking SO" >&5
13465 echo $ECHO_N "checking SO... $ECHO_C" >&6; }
13466 if test -z "$SO"
13467 then
13468 case $ac_sys_system in
13469 hp*|HP*)
13470 case `uname -m` in
13471 ia64) SO=.so;;
13472 *) SO=.sl;;
13473 esac
13475 CYGWIN*) SO=.dll;;
13476 *) SO=.so;;
13477 esac
13478 else
13479 # this might also be a termcap variable, see #610332
13480 echo
13481 echo '====================================================================='
13482 echo '+ +'
13483 echo '+ WARNING: You have set SO in your environment. +'
13484 echo '+ Do you really mean to change the extension for shared libraries? +'
13485 echo '+ Continuing in 10 seconds to let you to ponder. +'
13486 echo '+ +'
13487 echo '====================================================================='
13488 sleep 10
13490 { echo "$as_me:$LINENO: result: $SO" >&5
13491 echo "${ECHO_T}$SO" >&6; }
13494 cat >>confdefs.h <<_ACEOF
13495 #define SHLIB_EXT "$SO"
13496 _ACEOF
13498 # LDSHARED is the ld *command* used to create shared library
13499 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
13500 # (Shared libraries in this instance are shared modules to be loaded into
13501 # Python, as opposed to building Python itself as a shared library.)
13502 { echo "$as_me:$LINENO: checking LDSHARED" >&5
13503 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6; }
13504 if test -z "$LDSHARED"
13505 then
13506 case $ac_sys_system/$ac_sys_release in
13507 AIX*)
13508 BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
13509 LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
13511 IRIX/5*) LDSHARED="ld -shared";;
13512 IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
13513 SunOS/5*)
13514 if test "$GCC" = "yes"
13515 then LDSHARED='$(CC) -shared'
13516 else LDSHARED='$(CC) -G';
13517 fi ;;
13518 hp*|HP*)
13519 if test "$GCC" = "yes"
13520 then LDSHARED='$(CC) -shared'
13521 else LDSHARED='ld -b';
13522 fi ;;
13523 OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
13524 Darwin/1.3*)
13525 LDSHARED='$(CC) $(LDFLAGS) -bundle'
13526 if test "$enable_framework" ; then
13527 # Link against the framework. All externals should be defined.
13528 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13529 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13530 else
13531 # No framework. Ignore undefined symbols, assuming they come from Python
13532 LDSHARED="$LDSHARED -undefined suppress"
13533 fi ;;
13534 Darwin/1.4*|Darwin/5.*|Darwin/6.*)
13535 LDSHARED='$(CC) $(LDFLAGS) -bundle'
13536 if test "$enable_framework" ; then
13537 # Link against the framework. All externals should be defined.
13538 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13539 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13540 else
13541 # No framework, use the Python app as bundle-loader
13542 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
13543 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
13544 fi ;;
13545 Darwin/*)
13546 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
13547 # This allows an extension to be used in any Python
13549 if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2
13550 then
13551 if test "${enable_universalsdk}"; then
13552 LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
13554 LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
13555 BLDSHARED="$LDSHARED"
13556 else
13557 LDSHARED='$(CC) $(LDFLAGS) -bundle'
13558 if test "$enable_framework" ; then
13559 # Link against the framework. All externals should be defined.
13560 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13561 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13562 else
13563 # No framework, use the Python app as bundle-loader
13564 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
13565 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
13569 Linux*|GNU*|QNX*) LDSHARED='$(CC) -shared';;
13570 BSD/OS*/4*) LDSHARED="gcc -shared";;
13571 FreeBSD*)
13572 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13573 then
13574 LDSHARED="$CC -shared ${LDFLAGS}"
13575 else
13576 LDSHARED="ld -Bshareable ${LDFLAGS}"
13577 fi;;
13578 OpenBSD*)
13579 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13580 then
13581 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
13582 else
13583 case `uname -r` in
13584 [01].* | 2.[0-7] | 2.[0-7].*)
13585 LDSHARED="ld -Bshareable ${LDFLAGS}"
13588 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
13590 esac
13591 fi;;
13592 NetBSD*|DragonFly*) LDSHARED="cc -shared ${LDFLAGS}";;
13593 OpenUNIX*|UnixWare*)
13594 if test "$GCC" = "yes"
13595 then LDSHARED='$(CC) -shared'
13596 else LDSHARED='$(CC) -G'
13597 fi;;
13598 SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';;
13599 CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";;
13600 atheos*) LDSHARED="gcc -shared";;
13601 *) LDSHARED="ld";;
13602 esac
13604 { echo "$as_me:$LINENO: result: $LDSHARED" >&5
13605 echo "${ECHO_T}$LDSHARED" >&6; }
13606 BLDSHARED=${BLDSHARED-$LDSHARED}
13607 # CCSHARED are the C *flags* used to create objects to go into a shared
13608 # library (module) -- this is only needed for a few systems
13609 { echo "$as_me:$LINENO: checking CCSHARED" >&5
13610 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6; }
13611 if test -z "$CCSHARED"
13612 then
13613 case $ac_sys_system/$ac_sys_release in
13614 SunOS*) if test "$GCC" = yes;
13615 then CCSHARED="-fPIC";
13616 elif test `uname -p` = sparc;
13617 then CCSHARED="-xcode=pic32";
13618 else CCSHARED="-Kpic";
13619 fi;;
13620 hp*|HP*) if test "$GCC" = yes;
13621 then CCSHARED="-fPIC";
13622 else CCSHARED="+z";
13623 fi;;
13624 Linux*|GNU*) CCSHARED="-fPIC";;
13625 BSD/OS*/4*) CCSHARED="-fpic";;
13626 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";;
13627 OpenUNIX*|UnixWare*)
13628 if test "$GCC" = "yes"
13629 then CCSHARED="-fPIC"
13630 else CCSHARED="-KPIC"
13631 fi;;
13632 SCO_SV*)
13633 if test "$GCC" = "yes"
13634 then CCSHARED="-fPIC"
13635 else CCSHARED="-Kpic -belf"
13636 fi;;
13637 IRIX*/6*) case $CC in
13638 *gcc*) CCSHARED="-shared";;
13639 *) CCSHARED="";;
13640 esac;;
13641 atheos*) CCSHARED="-fPIC";;
13642 esac
13644 { echo "$as_me:$LINENO: result: $CCSHARED" >&5
13645 echo "${ECHO_T}$CCSHARED" >&6; }
13646 # LINKFORSHARED are the flags passed to the $(CC) command that links
13647 # the python executable -- this is only needed for a few systems
13648 { echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
13649 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6; }
13650 if test -z "$LINKFORSHARED"
13651 then
13652 case $ac_sys_system/$ac_sys_release in
13653 AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';;
13654 hp*|HP*)
13655 LINKFORSHARED="-Wl,-E -Wl,+s";;
13656 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
13657 BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
13658 Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
13659 # -u libsys_s pulls in all symbols in libsys
13660 Darwin/*)
13661 LINKFORSHARED="$extra_undefs -framework CoreFoundation"
13662 if test "$enable_framework"
13663 then
13664 LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13666 LINKFORSHARED="$LINKFORSHARED";;
13667 OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
13668 SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
13669 ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
13670 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*)
13671 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13672 then
13673 LINKFORSHARED="-Wl,--export-dynamic"
13674 fi;;
13675 SunOS/5*) case $CC in
13676 *gcc*)
13677 if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
13678 then
13679 LINKFORSHARED="-Xlinker --export-dynamic"
13680 fi;;
13681 esac;;
13682 CYGWIN*)
13683 if test $enable_shared = "no"
13684 then
13685 LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)'
13686 fi;;
13687 QNX*)
13688 # -Wl,-E causes the symbols to be added to the dynamic
13689 # symbol table so that they can be found when a module
13690 # is loaded. -N 2048K causes the stack size to be set
13691 # to 2048 kilobytes so that the stack doesn't overflow
13692 # when running test_compile.py.
13693 LINKFORSHARED='-Wl,-E -N 2048K';;
13694 esac
13696 { echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
13697 echo "${ECHO_T}$LINKFORSHARED" >&6; }
13701 { echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
13702 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6; }
13703 if test ! "$LIBRARY" = "$LDLIBRARY"
13704 then
13705 case $ac_sys_system in
13706 CYGWIN*)
13707 # Cygwin needs CCSHARED when building extension DLLs
13708 # but not when building the interpreter DLL.
13709 CFLAGSFORSHARED='';;
13711 CFLAGSFORSHARED='$(CCSHARED)'
13712 esac
13714 { echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
13715 echo "${ECHO_T}$CFLAGSFORSHARED" >&6; }
13717 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
13718 # library (with --enable-shared).
13719 # For platforms on which shared libraries are not allowed to have unresolved
13720 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
13721 # if it is not required, since it creates a dependency of the shared library
13722 # to LIBS. This, in turn, means that applications linking the shared libpython
13723 # don't need to link LIBS explicitly. The default should be only changed
13724 # on systems where this approach causes problems.
13726 { echo "$as_me:$LINENO: checking SHLIBS" >&5
13727 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6; }
13728 case "$ac_sys_system" in
13730 SHLIBS='$(LIBS)';;
13731 esac
13732 { echo "$as_me:$LINENO: result: $SHLIBS" >&5
13733 echo "${ECHO_T}$SHLIBS" >&6; }
13736 # checks for libraries
13738 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13739 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
13740 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13741 echo $ECHO_N "(cached) $ECHO_C" >&6
13742 else
13743 ac_check_lib_save_LIBS=$LIBS
13744 LIBS="-ldl $LIBS"
13745 cat >conftest.$ac_ext <<_ACEOF
13746 /* confdefs.h. */
13747 _ACEOF
13748 cat confdefs.h >>conftest.$ac_ext
13749 cat >>conftest.$ac_ext <<_ACEOF
13750 /* end confdefs.h. */
13752 /* Override any GCC internal prototype to avoid an error.
13753 Use char because int might match the return type of a GCC
13754 builtin and then its argument prototype would still apply. */
13755 #ifdef __cplusplus
13756 extern "C"
13757 #endif
13758 char dlopen ();
13760 main ()
13762 return dlopen ();
13764 return 0;
13766 _ACEOF
13767 rm -f conftest.$ac_objext conftest$ac_exeext
13768 if { (ac_try="$ac_link"
13769 case "(($ac_try" in
13770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13771 *) ac_try_echo=$ac_try;;
13772 esac
13773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13774 (eval "$ac_link") 2>conftest.er1
13775 ac_status=$?
13776 grep -v '^ *+' conftest.er1 >conftest.err
13777 rm -f conftest.er1
13778 cat conftest.err >&5
13779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13780 (exit $ac_status); } && {
13781 test -z "$ac_c_werror_flag" ||
13782 test ! -s conftest.err
13783 } && test -s conftest$ac_exeext &&
13784 $as_test_x conftest$ac_exeext; then
13785 ac_cv_lib_dl_dlopen=yes
13786 else
13787 echo "$as_me: failed program was:" >&5
13788 sed 's/^/| /' conftest.$ac_ext >&5
13790 ac_cv_lib_dl_dlopen=no
13793 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13794 conftest$ac_exeext conftest.$ac_ext
13795 LIBS=$ac_check_lib_save_LIBS
13797 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13798 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
13799 if test $ac_cv_lib_dl_dlopen = yes; then
13800 cat >>confdefs.h <<_ACEOF
13801 #define HAVE_LIBDL 1
13802 _ACEOF
13804 LIBS="-ldl $LIBS"
13807 # Dynamic linking for SunOS/Solaris and SYSV
13809 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13810 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
13811 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13812 echo $ECHO_N "(cached) $ECHO_C" >&6
13813 else
13814 ac_check_lib_save_LIBS=$LIBS
13815 LIBS="-ldld $LIBS"
13816 cat >conftest.$ac_ext <<_ACEOF
13817 /* confdefs.h. */
13818 _ACEOF
13819 cat confdefs.h >>conftest.$ac_ext
13820 cat >>conftest.$ac_ext <<_ACEOF
13821 /* end confdefs.h. */
13823 /* Override any GCC internal prototype to avoid an error.
13824 Use char because int might match the return type of a GCC
13825 builtin and then its argument prototype would still apply. */
13826 #ifdef __cplusplus
13827 extern "C"
13828 #endif
13829 char shl_load ();
13831 main ()
13833 return shl_load ();
13835 return 0;
13837 _ACEOF
13838 rm -f conftest.$ac_objext conftest$ac_exeext
13839 if { (ac_try="$ac_link"
13840 case "(($ac_try" in
13841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13842 *) ac_try_echo=$ac_try;;
13843 esac
13844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13845 (eval "$ac_link") 2>conftest.er1
13846 ac_status=$?
13847 grep -v '^ *+' conftest.er1 >conftest.err
13848 rm -f conftest.er1
13849 cat conftest.err >&5
13850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13851 (exit $ac_status); } && {
13852 test -z "$ac_c_werror_flag" ||
13853 test ! -s conftest.err
13854 } && test -s conftest$ac_exeext &&
13855 $as_test_x conftest$ac_exeext; then
13856 ac_cv_lib_dld_shl_load=yes
13857 else
13858 echo "$as_me: failed program was:" >&5
13859 sed 's/^/| /' conftest.$ac_ext >&5
13861 ac_cv_lib_dld_shl_load=no
13864 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13865 conftest$ac_exeext conftest.$ac_ext
13866 LIBS=$ac_check_lib_save_LIBS
13868 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13869 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
13870 if test $ac_cv_lib_dld_shl_load = yes; then
13871 cat >>confdefs.h <<_ACEOF
13872 #define HAVE_LIBDLD 1
13873 _ACEOF
13875 LIBS="-ldld $LIBS"
13878 # Dynamic linking for HP-UX
13880 # only check for sem_init if thread support is requested
13881 if test "$with_threads" = "yes" -o -z "$with_threads"; then
13882 { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
13883 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
13884 if test "${ac_cv_search_sem_init+set}" = set; then
13885 echo $ECHO_N "(cached) $ECHO_C" >&6
13886 else
13887 ac_func_search_save_LIBS=$LIBS
13888 cat >conftest.$ac_ext <<_ACEOF
13889 /* confdefs.h. */
13890 _ACEOF
13891 cat confdefs.h >>conftest.$ac_ext
13892 cat >>conftest.$ac_ext <<_ACEOF
13893 /* end confdefs.h. */
13895 /* Override any GCC internal prototype to avoid an error.
13896 Use char because int might match the return type of a GCC
13897 builtin and then its argument prototype would still apply. */
13898 #ifdef __cplusplus
13899 extern "C"
13900 #endif
13901 char sem_init ();
13903 main ()
13905 return sem_init ();
13907 return 0;
13909 _ACEOF
13910 for ac_lib in '' pthread rt posix4; do
13911 if test -z "$ac_lib"; then
13912 ac_res="none required"
13913 else
13914 ac_res=-l$ac_lib
13915 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13917 rm -f conftest.$ac_objext conftest$ac_exeext
13918 if { (ac_try="$ac_link"
13919 case "(($ac_try" in
13920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13921 *) ac_try_echo=$ac_try;;
13922 esac
13923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13924 (eval "$ac_link") 2>conftest.er1
13925 ac_status=$?
13926 grep -v '^ *+' conftest.er1 >conftest.err
13927 rm -f conftest.er1
13928 cat conftest.err >&5
13929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13930 (exit $ac_status); } && {
13931 test -z "$ac_c_werror_flag" ||
13932 test ! -s conftest.err
13933 } && test -s conftest$ac_exeext &&
13934 $as_test_x conftest$ac_exeext; then
13935 ac_cv_search_sem_init=$ac_res
13936 else
13937 echo "$as_me: failed program was:" >&5
13938 sed 's/^/| /' conftest.$ac_ext >&5
13943 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13944 conftest$ac_exeext
13945 if test "${ac_cv_search_sem_init+set}" = set; then
13946 break
13948 done
13949 if test "${ac_cv_search_sem_init+set}" = set; then
13951 else
13952 ac_cv_search_sem_init=no
13954 rm conftest.$ac_ext
13955 LIBS=$ac_func_search_save_LIBS
13957 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
13958 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
13959 ac_res=$ac_cv_search_sem_init
13960 if test "$ac_res" != no; then
13961 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13964 # 'Real Time' functions on Solaris
13965 # posix4 on Solaris 2.6
13966 # pthread (first!) on Linux
13969 # check if we need libintl for locale functions
13970 { echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
13971 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6; }
13972 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
13973 echo $ECHO_N "(cached) $ECHO_C" >&6
13974 else
13975 ac_check_lib_save_LIBS=$LIBS
13976 LIBS="-lintl $LIBS"
13977 cat >conftest.$ac_ext <<_ACEOF
13978 /* confdefs.h. */
13979 _ACEOF
13980 cat confdefs.h >>conftest.$ac_ext
13981 cat >>conftest.$ac_ext <<_ACEOF
13982 /* end confdefs.h. */
13984 /* Override any GCC internal prototype to avoid an error.
13985 Use char because int might match the return type of a GCC
13986 builtin and then its argument prototype would still apply. */
13987 #ifdef __cplusplus
13988 extern "C"
13989 #endif
13990 char textdomain ();
13992 main ()
13994 return textdomain ();
13996 return 0;
13998 _ACEOF
13999 rm -f conftest.$ac_objext conftest$ac_exeext
14000 if { (ac_try="$ac_link"
14001 case "(($ac_try" in
14002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14003 *) ac_try_echo=$ac_try;;
14004 esac
14005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14006 (eval "$ac_link") 2>conftest.er1
14007 ac_status=$?
14008 grep -v '^ *+' conftest.er1 >conftest.err
14009 rm -f conftest.er1
14010 cat conftest.err >&5
14011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14012 (exit $ac_status); } && {
14013 test -z "$ac_c_werror_flag" ||
14014 test ! -s conftest.err
14015 } && test -s conftest$ac_exeext &&
14016 $as_test_x conftest$ac_exeext; then
14017 ac_cv_lib_intl_textdomain=yes
14018 else
14019 echo "$as_me: failed program was:" >&5
14020 sed 's/^/| /' conftest.$ac_ext >&5
14022 ac_cv_lib_intl_textdomain=no
14025 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14026 conftest$ac_exeext conftest.$ac_ext
14027 LIBS=$ac_check_lib_save_LIBS
14029 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
14030 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6; }
14031 if test $ac_cv_lib_intl_textdomain = yes; then
14033 cat >>confdefs.h <<\_ACEOF
14034 #define WITH_LIBINTL 1
14035 _ACEOF
14037 LIBS="-lintl $LIBS"
14041 # checks for system dependent C++ extensions support
14042 case "$ac_sys_system" in
14043 AIX*) { echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
14044 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6; }
14045 cat >conftest.$ac_ext <<_ACEOF
14046 /* confdefs.h. */
14047 _ACEOF
14048 cat confdefs.h >>conftest.$ac_ext
14049 cat >>conftest.$ac_ext <<_ACEOF
14050 /* end confdefs.h. */
14051 #include "/usr/lpp/xlC/include/load.h"
14053 main ()
14055 loadAndInit("", 0, "")
14057 return 0;
14059 _ACEOF
14060 rm -f conftest.$ac_objext conftest$ac_exeext
14061 if { (ac_try="$ac_link"
14062 case "(($ac_try" in
14063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14064 *) ac_try_echo=$ac_try;;
14065 esac
14066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14067 (eval "$ac_link") 2>conftest.er1
14068 ac_status=$?
14069 grep -v '^ *+' conftest.er1 >conftest.err
14070 rm -f conftest.er1
14071 cat conftest.err >&5
14072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14073 (exit $ac_status); } && {
14074 test -z "$ac_c_werror_flag" ||
14075 test ! -s conftest.err
14076 } && test -s conftest$ac_exeext &&
14077 $as_test_x conftest$ac_exeext; then
14079 cat >>confdefs.h <<\_ACEOF
14080 #define AIX_GENUINE_CPLUSPLUS 1
14081 _ACEOF
14083 { echo "$as_me:$LINENO: result: yes" >&5
14084 echo "${ECHO_T}yes" >&6; }
14085 else
14086 echo "$as_me: failed program was:" >&5
14087 sed 's/^/| /' conftest.$ac_ext >&5
14089 { echo "$as_me:$LINENO: result: no" >&5
14090 echo "${ECHO_T}no" >&6; }
14093 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14094 conftest$ac_exeext conftest.$ac_ext;;
14095 *) ;;
14096 esac
14098 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
14099 { echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
14100 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6; }
14101 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
14102 echo $ECHO_N "(cached) $ECHO_C" >&6
14103 else
14104 ac_check_lib_save_LIBS=$LIBS
14105 LIBS="-lnsl $LIBS"
14106 cat >conftest.$ac_ext <<_ACEOF
14107 /* confdefs.h. */
14108 _ACEOF
14109 cat confdefs.h >>conftest.$ac_ext
14110 cat >>conftest.$ac_ext <<_ACEOF
14111 /* end confdefs.h. */
14113 /* Override any GCC internal prototype to avoid an error.
14114 Use char because int might match the return type of a GCC
14115 builtin and then its argument prototype would still apply. */
14116 #ifdef __cplusplus
14117 extern "C"
14118 #endif
14119 char t_open ();
14121 main ()
14123 return t_open ();
14125 return 0;
14127 _ACEOF
14128 rm -f conftest.$ac_objext conftest$ac_exeext
14129 if { (ac_try="$ac_link"
14130 case "(($ac_try" in
14131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14132 *) ac_try_echo=$ac_try;;
14133 esac
14134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14135 (eval "$ac_link") 2>conftest.er1
14136 ac_status=$?
14137 grep -v '^ *+' conftest.er1 >conftest.err
14138 rm -f conftest.er1
14139 cat conftest.err >&5
14140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14141 (exit $ac_status); } && {
14142 test -z "$ac_c_werror_flag" ||
14143 test ! -s conftest.err
14144 } && test -s conftest$ac_exeext &&
14145 $as_test_x conftest$ac_exeext; then
14146 ac_cv_lib_nsl_t_open=yes
14147 else
14148 echo "$as_me: failed program was:" >&5
14149 sed 's/^/| /' conftest.$ac_ext >&5
14151 ac_cv_lib_nsl_t_open=no
14154 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14155 conftest$ac_exeext conftest.$ac_ext
14156 LIBS=$ac_check_lib_save_LIBS
14158 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
14159 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6; }
14160 if test $ac_cv_lib_nsl_t_open = yes; then
14161 LIBS="-lnsl $LIBS"
14163 # SVR4
14164 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
14165 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
14166 if test "${ac_cv_lib_socket_socket+set}" = set; then
14167 echo $ECHO_N "(cached) $ECHO_C" >&6
14168 else
14169 ac_check_lib_save_LIBS=$LIBS
14170 LIBS="-lsocket $LIBS $LIBS"
14171 cat >conftest.$ac_ext <<_ACEOF
14172 /* confdefs.h. */
14173 _ACEOF
14174 cat confdefs.h >>conftest.$ac_ext
14175 cat >>conftest.$ac_ext <<_ACEOF
14176 /* end confdefs.h. */
14178 /* Override any GCC internal prototype to avoid an error.
14179 Use char because int might match the return type of a GCC
14180 builtin and then its argument prototype would still apply. */
14181 #ifdef __cplusplus
14182 extern "C"
14183 #endif
14184 char socket ();
14186 main ()
14188 return socket ();
14190 return 0;
14192 _ACEOF
14193 rm -f conftest.$ac_objext conftest$ac_exeext
14194 if { (ac_try="$ac_link"
14195 case "(($ac_try" in
14196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14197 *) ac_try_echo=$ac_try;;
14198 esac
14199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14200 (eval "$ac_link") 2>conftest.er1
14201 ac_status=$?
14202 grep -v '^ *+' conftest.er1 >conftest.err
14203 rm -f conftest.er1
14204 cat conftest.err >&5
14205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14206 (exit $ac_status); } && {
14207 test -z "$ac_c_werror_flag" ||
14208 test ! -s conftest.err
14209 } && test -s conftest$ac_exeext &&
14210 $as_test_x conftest$ac_exeext; then
14211 ac_cv_lib_socket_socket=yes
14212 else
14213 echo "$as_me: failed program was:" >&5
14214 sed 's/^/| /' conftest.$ac_ext >&5
14216 ac_cv_lib_socket_socket=no
14219 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14220 conftest$ac_exeext conftest.$ac_ext
14221 LIBS=$ac_check_lib_save_LIBS
14223 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
14224 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
14225 if test $ac_cv_lib_socket_socket = yes; then
14226 LIBS="-lsocket $LIBS"
14228 # SVR4 sockets
14230 { echo "$as_me:$LINENO: checking for --with-libs" >&5
14231 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6; }
14233 # Check whether --with-libs was given.
14234 if test "${with_libs+set}" = set; then
14235 withval=$with_libs;
14236 { echo "$as_me:$LINENO: result: $withval" >&5
14237 echo "${ECHO_T}$withval" >&6; }
14238 LIBS="$withval $LIBS"
14240 else
14241 { echo "$as_me:$LINENO: result: no" >&5
14242 echo "${ECHO_T}no" >&6; }
14246 # Check for use of the system libffi library
14247 { echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
14248 echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6; }
14250 # Check whether --with-system_ffi was given.
14251 if test "${with_system_ffi+set}" = set; then
14252 withval=$with_system_ffi;
14256 { echo "$as_me:$LINENO: result: $with_system_ffi" >&5
14257 echo "${ECHO_T}$with_system_ffi" >&6; }
14259 # Check for --with-dbmliborder
14260 { echo "$as_me:$LINENO: checking for --with-dbmliborder" >&5
14261 echo $ECHO_N "checking for --with-dbmliborder... $ECHO_C" >&6; }
14263 # Check whether --with-dbmliborder was given.
14264 if test "${with_dbmliborder+set}" = set; then
14265 withval=$with_dbmliborder;
14266 if test x$with_dbmliborder = xyes
14267 then
14268 { { echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5
14269 echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;}
14270 { (exit 1); exit 1; }; }
14271 else
14272 for db in `echo $with_dbmliborder | sed 's/:/ /g'`; do
14273 if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb
14274 then
14275 { { echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5
14276 echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;}
14277 { (exit 1); exit 1; }; }
14279 done
14283 { echo "$as_me:$LINENO: result: $with_dbmliborder" >&5
14284 echo "${ECHO_T}$with_dbmliborder" >&6; }
14286 # Determine if signalmodule should be used.
14289 { echo "$as_me:$LINENO: checking for --with-signal-module" >&5
14290 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6; }
14292 # Check whether --with-signal-module was given.
14293 if test "${with_signal_module+set}" = set; then
14294 withval=$with_signal_module;
14298 if test -z "$with_signal_module"
14299 then with_signal_module="yes"
14301 { echo "$as_me:$LINENO: result: $with_signal_module" >&5
14302 echo "${ECHO_T}$with_signal_module" >&6; }
14304 if test "${with_signal_module}" = "yes"; then
14305 USE_SIGNAL_MODULE=""
14306 SIGNAL_OBJS=""
14307 else
14308 USE_SIGNAL_MODULE="#"
14309 SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o"
14312 # This is used to generate Setup.config
14314 USE_THREAD_MODULE=""
14316 { echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
14317 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6; }
14320 # Check whether --with-dec-threads was given.
14321 if test "${with_dec_threads+set}" = set; then
14322 withval=$with_dec_threads;
14323 { echo "$as_me:$LINENO: result: $withval" >&5
14324 echo "${ECHO_T}$withval" >&6; }
14325 LDLAST=-threads
14326 if test "${with_thread+set}" != set; then
14327 with_thread="$withval";
14329 else
14330 { echo "$as_me:$LINENO: result: no" >&5
14331 echo "${ECHO_T}no" >&6; }
14335 # Templates for things AC_DEFINEd more than once.
14336 # For a single AC_DEFINE, no template is needed.
14344 { echo "$as_me:$LINENO: checking for --with-threads" >&5
14345 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6; }
14347 # Check whether --with-threads was given.
14348 if test "${with_threads+set}" = set; then
14349 withval=$with_threads;
14353 # --with-thread is deprecated, but check for it anyway
14355 # Check whether --with-thread was given.
14356 if test "${with_thread+set}" = set; then
14357 withval=$with_thread; with_threads=$with_thread
14361 if test -z "$with_threads"
14362 then with_threads="yes"
14364 { echo "$as_me:$LINENO: result: $with_threads" >&5
14365 echo "${ECHO_T}$with_threads" >&6; }
14368 if test "$with_threads" = "no"
14369 then
14370 USE_THREAD_MODULE="#"
14371 elif test "$ac_cv_pthread_is_default" = yes
14372 then
14373 cat >>confdefs.h <<\_ACEOF
14374 #define WITH_THREAD 1
14375 _ACEOF
14377 # Defining _REENTRANT on system with POSIX threads should not hurt.
14378 cat >>confdefs.h <<\_ACEOF
14379 #define _REENTRANT 1
14380 _ACEOF
14382 posix_threads=yes
14383 THREADOBJ="Python/thread.o"
14384 elif test "$ac_cv_kpthread" = "yes"
14385 then
14386 CC="$CC -Kpthread"
14387 if test "$ac_cv_cxx_thread" = "yes"; then
14388 CXX="$CXX -Kpthread"
14390 cat >>confdefs.h <<\_ACEOF
14391 #define WITH_THREAD 1
14392 _ACEOF
14394 posix_threads=yes
14395 THREADOBJ="Python/thread.o"
14396 elif test "$ac_cv_kthread" = "yes"
14397 then
14398 CC="$CC -Kthread"
14399 if test "$ac_cv_cxx_thread" = "yes"; then
14400 CXX="$CXX -Kthread"
14402 cat >>confdefs.h <<\_ACEOF
14403 #define WITH_THREAD 1
14404 _ACEOF
14406 posix_threads=yes
14407 THREADOBJ="Python/thread.o"
14408 elif test "$ac_cv_pthread" = "yes"
14409 then
14410 CC="$CC -pthread"
14411 if test "$ac_cv_cxx_thread" = "yes"; then
14412 CXX="$CXX -pthread"
14414 cat >>confdefs.h <<\_ACEOF
14415 #define WITH_THREAD 1
14416 _ACEOF
14418 posix_threads=yes
14419 THREADOBJ="Python/thread.o"
14420 else
14421 if test ! -z "$with_threads" -a -d "$with_threads"
14422 then LDFLAGS="$LDFLAGS -L$with_threads"
14424 if test ! -z "$withval" -a -d "$withval"
14425 then LDFLAGS="$LDFLAGS -L$withval"
14428 # According to the POSIX spec, a pthreads implementation must
14429 # define _POSIX_THREADS in unistd.h. Some apparently don't
14430 # (e.g. gnu pth with pthread emulation)
14431 { echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
14432 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6; }
14433 cat >conftest.$ac_ext <<_ACEOF
14434 /* confdefs.h. */
14435 _ACEOF
14436 cat confdefs.h >>conftest.$ac_ext
14437 cat >>conftest.$ac_ext <<_ACEOF
14438 /* end confdefs.h. */
14440 #include <unistd.h>
14441 #ifdef _POSIX_THREADS
14443 #endif
14445 _ACEOF
14446 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14447 $EGREP "yes" >/dev/null 2>&1; then
14448 unistd_defines_pthreads=yes
14449 else
14450 unistd_defines_pthreads=no
14452 rm -f -r conftest*
14454 { echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
14455 echo "${ECHO_T}$unistd_defines_pthreads" >&6; }
14457 cat >>confdefs.h <<\_ACEOF
14458 #define _REENTRANT 1
14459 _ACEOF
14461 if test "${ac_cv_header_cthreads_h+set}" = set; then
14462 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
14463 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
14464 if test "${ac_cv_header_cthreads_h+set}" = set; then
14465 echo $ECHO_N "(cached) $ECHO_C" >&6
14467 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
14468 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
14469 else
14470 # Is the header compilable?
14471 { echo "$as_me:$LINENO: checking cthreads.h usability" >&5
14472 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6; }
14473 cat >conftest.$ac_ext <<_ACEOF
14474 /* confdefs.h. */
14475 _ACEOF
14476 cat confdefs.h >>conftest.$ac_ext
14477 cat >>conftest.$ac_ext <<_ACEOF
14478 /* end confdefs.h. */
14479 $ac_includes_default
14480 #include <cthreads.h>
14481 _ACEOF
14482 rm -f conftest.$ac_objext
14483 if { (ac_try="$ac_compile"
14484 case "(($ac_try" in
14485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14486 *) ac_try_echo=$ac_try;;
14487 esac
14488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14489 (eval "$ac_compile") 2>conftest.er1
14490 ac_status=$?
14491 grep -v '^ *+' conftest.er1 >conftest.err
14492 rm -f conftest.er1
14493 cat conftest.err >&5
14494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14495 (exit $ac_status); } && {
14496 test -z "$ac_c_werror_flag" ||
14497 test ! -s conftest.err
14498 } && test -s conftest.$ac_objext; then
14499 ac_header_compiler=yes
14500 else
14501 echo "$as_me: failed program was:" >&5
14502 sed 's/^/| /' conftest.$ac_ext >&5
14504 ac_header_compiler=no
14507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14508 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14509 echo "${ECHO_T}$ac_header_compiler" >&6; }
14511 # Is the header present?
14512 { echo "$as_me:$LINENO: checking cthreads.h presence" >&5
14513 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6; }
14514 cat >conftest.$ac_ext <<_ACEOF
14515 /* confdefs.h. */
14516 _ACEOF
14517 cat confdefs.h >>conftest.$ac_ext
14518 cat >>conftest.$ac_ext <<_ACEOF
14519 /* end confdefs.h. */
14520 #include <cthreads.h>
14521 _ACEOF
14522 if { (ac_try="$ac_cpp conftest.$ac_ext"
14523 case "(($ac_try" in
14524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14525 *) ac_try_echo=$ac_try;;
14526 esac
14527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14528 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14529 ac_status=$?
14530 grep -v '^ *+' conftest.er1 >conftest.err
14531 rm -f conftest.er1
14532 cat conftest.err >&5
14533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14534 (exit $ac_status); } >/dev/null && {
14535 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14536 test ! -s conftest.err
14537 }; then
14538 ac_header_preproc=yes
14539 else
14540 echo "$as_me: failed program was:" >&5
14541 sed 's/^/| /' conftest.$ac_ext >&5
14543 ac_header_preproc=no
14546 rm -f conftest.err conftest.$ac_ext
14547 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14548 echo "${ECHO_T}$ac_header_preproc" >&6; }
14550 # So? What about this header?
14551 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14552 yes:no: )
14553 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14554 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14555 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
14556 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
14557 ac_header_preproc=yes
14559 no:yes:* )
14560 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
14561 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
14562 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
14563 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
14564 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
14565 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
14566 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
14567 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
14568 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
14569 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
14570 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
14571 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
14572 ( cat <<\_ASBOX
14573 ## -------------------------------------- ##
14574 ## Report this to http://bugs.python.org/ ##
14575 ## -------------------------------------- ##
14576 _ASBOX
14577 ) | sed "s/^/$as_me: WARNING: /" >&2
14579 esac
14580 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
14581 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
14582 if test "${ac_cv_header_cthreads_h+set}" = set; then
14583 echo $ECHO_N "(cached) $ECHO_C" >&6
14584 else
14585 ac_cv_header_cthreads_h=$ac_header_preproc
14587 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
14588 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
14591 if test $ac_cv_header_cthreads_h = yes; then
14592 cat >>confdefs.h <<\_ACEOF
14593 #define WITH_THREAD 1
14594 _ACEOF
14596 cat >>confdefs.h <<\_ACEOF
14597 #define C_THREADS 1
14598 _ACEOF
14601 cat >>confdefs.h <<\_ACEOF
14602 #define HURD_C_THREADS 1
14603 _ACEOF
14605 LIBS="$LIBS -lthreads"
14606 THREADOBJ="Python/thread.o"
14607 else
14609 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14610 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
14611 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
14612 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14613 echo $ECHO_N "(cached) $ECHO_C" >&6
14615 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
14616 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
14617 else
14618 # Is the header compilable?
14619 { echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
14620 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6; }
14621 cat >conftest.$ac_ext <<_ACEOF
14622 /* confdefs.h. */
14623 _ACEOF
14624 cat confdefs.h >>conftest.$ac_ext
14625 cat >>conftest.$ac_ext <<_ACEOF
14626 /* end confdefs.h. */
14627 $ac_includes_default
14628 #include <mach/cthreads.h>
14629 _ACEOF
14630 rm -f conftest.$ac_objext
14631 if { (ac_try="$ac_compile"
14632 case "(($ac_try" in
14633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14634 *) ac_try_echo=$ac_try;;
14635 esac
14636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14637 (eval "$ac_compile") 2>conftest.er1
14638 ac_status=$?
14639 grep -v '^ *+' conftest.er1 >conftest.err
14640 rm -f conftest.er1
14641 cat conftest.err >&5
14642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14643 (exit $ac_status); } && {
14644 test -z "$ac_c_werror_flag" ||
14645 test ! -s conftest.err
14646 } && test -s conftest.$ac_objext; then
14647 ac_header_compiler=yes
14648 else
14649 echo "$as_me: failed program was:" >&5
14650 sed 's/^/| /' conftest.$ac_ext >&5
14652 ac_header_compiler=no
14655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14656 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14657 echo "${ECHO_T}$ac_header_compiler" >&6; }
14659 # Is the header present?
14660 { echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
14661 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6; }
14662 cat >conftest.$ac_ext <<_ACEOF
14663 /* confdefs.h. */
14664 _ACEOF
14665 cat confdefs.h >>conftest.$ac_ext
14666 cat >>conftest.$ac_ext <<_ACEOF
14667 /* end confdefs.h. */
14668 #include <mach/cthreads.h>
14669 _ACEOF
14670 if { (ac_try="$ac_cpp conftest.$ac_ext"
14671 case "(($ac_try" in
14672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14673 *) ac_try_echo=$ac_try;;
14674 esac
14675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14676 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14677 ac_status=$?
14678 grep -v '^ *+' conftest.er1 >conftest.err
14679 rm -f conftest.er1
14680 cat conftest.err >&5
14681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14682 (exit $ac_status); } >/dev/null && {
14683 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14684 test ! -s conftest.err
14685 }; then
14686 ac_header_preproc=yes
14687 else
14688 echo "$as_me: failed program was:" >&5
14689 sed 's/^/| /' conftest.$ac_ext >&5
14691 ac_header_preproc=no
14694 rm -f conftest.err conftest.$ac_ext
14695 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14696 echo "${ECHO_T}$ac_header_preproc" >&6; }
14698 # So? What about this header?
14699 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14700 yes:no: )
14701 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14702 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14703 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
14704 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
14705 ac_header_preproc=yes
14707 no:yes:* )
14708 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
14709 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
14710 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
14711 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
14712 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
14713 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
14714 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
14715 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
14716 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
14717 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
14718 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
14719 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
14720 ( cat <<\_ASBOX
14721 ## -------------------------------------- ##
14722 ## Report this to http://bugs.python.org/ ##
14723 ## -------------------------------------- ##
14724 _ASBOX
14725 ) | sed "s/^/$as_me: WARNING: /" >&2
14727 esac
14728 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
14729 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
14730 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14731 echo $ECHO_N "(cached) $ECHO_C" >&6
14732 else
14733 ac_cv_header_mach_cthreads_h=$ac_header_preproc
14735 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
14736 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
14739 if test $ac_cv_header_mach_cthreads_h = yes; then
14740 cat >>confdefs.h <<\_ACEOF
14741 #define WITH_THREAD 1
14742 _ACEOF
14744 cat >>confdefs.h <<\_ACEOF
14745 #define C_THREADS 1
14746 _ACEOF
14749 cat >>confdefs.h <<\_ACEOF
14750 #define MACH_C_THREADS 1
14751 _ACEOF
14753 THREADOBJ="Python/thread.o"
14754 else
14756 { echo "$as_me:$LINENO: checking for --with-pth" >&5
14757 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6; }
14759 # Check whether --with-pth was given.
14760 if test "${with_pth+set}" = set; then
14761 withval=$with_pth; { echo "$as_me:$LINENO: result: $withval" >&5
14762 echo "${ECHO_T}$withval" >&6; }
14763 cat >>confdefs.h <<\_ACEOF
14764 #define WITH_THREAD 1
14765 _ACEOF
14768 cat >>confdefs.h <<\_ACEOF
14769 #define HAVE_PTH 1
14770 _ACEOF
14772 LIBS="-lpth $LIBS"
14773 THREADOBJ="Python/thread.o"
14774 else
14775 { echo "$as_me:$LINENO: result: no" >&5
14776 echo "${ECHO_T}no" >&6; }
14778 # Just looking for pthread_create in libpthread is not enough:
14779 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
14780 # So we really have to include pthread.h, and then link.
14781 _libs=$LIBS
14782 LIBS="$LIBS -lpthread"
14783 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
14784 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
14785 cat >conftest.$ac_ext <<_ACEOF
14786 /* confdefs.h. */
14787 _ACEOF
14788 cat confdefs.h >>conftest.$ac_ext
14789 cat >>conftest.$ac_ext <<_ACEOF
14790 /* end confdefs.h. */
14791 #include <pthread.h>
14793 void * start_routine (void *arg) { exit (0); }
14795 main ()
14798 pthread_create (NULL, NULL, start_routine, NULL)
14800 return 0;
14802 _ACEOF
14803 rm -f conftest.$ac_objext conftest$ac_exeext
14804 if { (ac_try="$ac_link"
14805 case "(($ac_try" in
14806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14807 *) ac_try_echo=$ac_try;;
14808 esac
14809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14810 (eval "$ac_link") 2>conftest.er1
14811 ac_status=$?
14812 grep -v '^ *+' conftest.er1 >conftest.err
14813 rm -f conftest.er1
14814 cat conftest.err >&5
14815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14816 (exit $ac_status); } && {
14817 test -z "$ac_c_werror_flag" ||
14818 test ! -s conftest.err
14819 } && test -s conftest$ac_exeext &&
14820 $as_test_x conftest$ac_exeext; then
14822 { echo "$as_me:$LINENO: result: yes" >&5
14823 echo "${ECHO_T}yes" >&6; }
14824 cat >>confdefs.h <<\_ACEOF
14825 #define WITH_THREAD 1
14826 _ACEOF
14828 posix_threads=yes
14829 THREADOBJ="Python/thread.o"
14830 else
14831 echo "$as_me: failed program was:" >&5
14832 sed 's/^/| /' conftest.$ac_ext >&5
14835 LIBS=$_libs
14836 { echo "$as_me:$LINENO: checking for pthread_detach" >&5
14837 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6; }
14838 if test "${ac_cv_func_pthread_detach+set}" = set; then
14839 echo $ECHO_N "(cached) $ECHO_C" >&6
14840 else
14841 cat >conftest.$ac_ext <<_ACEOF
14842 /* confdefs.h. */
14843 _ACEOF
14844 cat confdefs.h >>conftest.$ac_ext
14845 cat >>conftest.$ac_ext <<_ACEOF
14846 /* end confdefs.h. */
14847 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
14848 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14849 #define pthread_detach innocuous_pthread_detach
14851 /* System header to define __stub macros and hopefully few prototypes,
14852 which can conflict with char pthread_detach (); below.
14853 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14854 <limits.h> exists even on freestanding compilers. */
14856 #ifdef __STDC__
14857 # include <limits.h>
14858 #else
14859 # include <assert.h>
14860 #endif
14862 #undef pthread_detach
14864 /* Override any GCC internal prototype to avoid an error.
14865 Use char because int might match the return type of a GCC
14866 builtin and then its argument prototype would still apply. */
14867 #ifdef __cplusplus
14868 extern "C"
14869 #endif
14870 char pthread_detach ();
14871 /* The GNU C library defines this for functions which it implements
14872 to always fail with ENOSYS. Some functions are actually named
14873 something starting with __ and the normal name is an alias. */
14874 #if defined __stub_pthread_detach || defined __stub___pthread_detach
14875 choke me
14876 #endif
14879 main ()
14881 return pthread_detach ();
14883 return 0;
14885 _ACEOF
14886 rm -f conftest.$ac_objext conftest$ac_exeext
14887 if { (ac_try="$ac_link"
14888 case "(($ac_try" in
14889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14890 *) ac_try_echo=$ac_try;;
14891 esac
14892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14893 (eval "$ac_link") 2>conftest.er1
14894 ac_status=$?
14895 grep -v '^ *+' conftest.er1 >conftest.err
14896 rm -f conftest.er1
14897 cat conftest.err >&5
14898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14899 (exit $ac_status); } && {
14900 test -z "$ac_c_werror_flag" ||
14901 test ! -s conftest.err
14902 } && test -s conftest$ac_exeext &&
14903 $as_test_x conftest$ac_exeext; then
14904 ac_cv_func_pthread_detach=yes
14905 else
14906 echo "$as_me: failed program was:" >&5
14907 sed 's/^/| /' conftest.$ac_ext >&5
14909 ac_cv_func_pthread_detach=no
14912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14913 conftest$ac_exeext conftest.$ac_ext
14915 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
14916 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6; }
14917 if test $ac_cv_func_pthread_detach = yes; then
14918 cat >>confdefs.h <<\_ACEOF
14919 #define WITH_THREAD 1
14920 _ACEOF
14922 posix_threads=yes
14923 THREADOBJ="Python/thread.o"
14924 else
14926 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14927 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
14928 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
14929 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14930 echo $ECHO_N "(cached) $ECHO_C" >&6
14932 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
14933 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
14934 else
14935 # Is the header compilable?
14936 { echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
14937 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6; }
14938 cat >conftest.$ac_ext <<_ACEOF
14939 /* confdefs.h. */
14940 _ACEOF
14941 cat confdefs.h >>conftest.$ac_ext
14942 cat >>conftest.$ac_ext <<_ACEOF
14943 /* end confdefs.h. */
14944 $ac_includes_default
14945 #include <atheos/threads.h>
14946 _ACEOF
14947 rm -f conftest.$ac_objext
14948 if { (ac_try="$ac_compile"
14949 case "(($ac_try" in
14950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14951 *) ac_try_echo=$ac_try;;
14952 esac
14953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14954 (eval "$ac_compile") 2>conftest.er1
14955 ac_status=$?
14956 grep -v '^ *+' conftest.er1 >conftest.err
14957 rm -f conftest.er1
14958 cat conftest.err >&5
14959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14960 (exit $ac_status); } && {
14961 test -z "$ac_c_werror_flag" ||
14962 test ! -s conftest.err
14963 } && test -s conftest.$ac_objext; then
14964 ac_header_compiler=yes
14965 else
14966 echo "$as_me: failed program was:" >&5
14967 sed 's/^/| /' conftest.$ac_ext >&5
14969 ac_header_compiler=no
14972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14973 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14974 echo "${ECHO_T}$ac_header_compiler" >&6; }
14976 # Is the header present?
14977 { echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
14978 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6; }
14979 cat >conftest.$ac_ext <<_ACEOF
14980 /* confdefs.h. */
14981 _ACEOF
14982 cat confdefs.h >>conftest.$ac_ext
14983 cat >>conftest.$ac_ext <<_ACEOF
14984 /* end confdefs.h. */
14985 #include <atheos/threads.h>
14986 _ACEOF
14987 if { (ac_try="$ac_cpp conftest.$ac_ext"
14988 case "(($ac_try" in
14989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14990 *) ac_try_echo=$ac_try;;
14991 esac
14992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14993 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14994 ac_status=$?
14995 grep -v '^ *+' conftest.er1 >conftest.err
14996 rm -f conftest.er1
14997 cat conftest.err >&5
14998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14999 (exit $ac_status); } >/dev/null && {
15000 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15001 test ! -s conftest.err
15002 }; then
15003 ac_header_preproc=yes
15004 else
15005 echo "$as_me: failed program was:" >&5
15006 sed 's/^/| /' conftest.$ac_ext >&5
15008 ac_header_preproc=no
15011 rm -f conftest.err conftest.$ac_ext
15012 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15013 echo "${ECHO_T}$ac_header_preproc" >&6; }
15015 # So? What about this header?
15016 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15017 yes:no: )
15018 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
15019 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15020 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
15021 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
15022 ac_header_preproc=yes
15024 no:yes:* )
15025 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
15026 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
15027 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
15028 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
15029 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
15030 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
15031 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
15032 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
15033 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
15034 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
15035 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
15036 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
15037 ( cat <<\_ASBOX
15038 ## -------------------------------------- ##
15039 ## Report this to http://bugs.python.org/ ##
15040 ## -------------------------------------- ##
15041 _ASBOX
15042 ) | sed "s/^/$as_me: WARNING: /" >&2
15044 esac
15045 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
15046 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
15047 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
15048 echo $ECHO_N "(cached) $ECHO_C" >&6
15049 else
15050 ac_cv_header_atheos_threads_h=$ac_header_preproc
15052 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
15053 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
15056 if test $ac_cv_header_atheos_threads_h = yes; then
15057 cat >>confdefs.h <<\_ACEOF
15058 #define WITH_THREAD 1
15059 _ACEOF
15062 cat >>confdefs.h <<\_ACEOF
15063 #define ATHEOS_THREADS 1
15064 _ACEOF
15066 THREADOBJ="Python/thread.o"
15067 else
15069 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
15070 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
15071 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
15072 echo $ECHO_N "(cached) $ECHO_C" >&6
15073 else
15074 ac_check_lib_save_LIBS=$LIBS
15075 LIBS="-lpthreads $LIBS"
15076 cat >conftest.$ac_ext <<_ACEOF
15077 /* confdefs.h. */
15078 _ACEOF
15079 cat confdefs.h >>conftest.$ac_ext
15080 cat >>conftest.$ac_ext <<_ACEOF
15081 /* end confdefs.h. */
15083 /* Override any GCC internal prototype to avoid an error.
15084 Use char because int might match the return type of a GCC
15085 builtin and then its argument prototype would still apply. */
15086 #ifdef __cplusplus
15087 extern "C"
15088 #endif
15089 char pthread_create ();
15091 main ()
15093 return pthread_create ();
15095 return 0;
15097 _ACEOF
15098 rm -f conftest.$ac_objext conftest$ac_exeext
15099 if { (ac_try="$ac_link"
15100 case "(($ac_try" in
15101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15102 *) ac_try_echo=$ac_try;;
15103 esac
15104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15105 (eval "$ac_link") 2>conftest.er1
15106 ac_status=$?
15107 grep -v '^ *+' conftest.er1 >conftest.err
15108 rm -f conftest.er1
15109 cat conftest.err >&5
15110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15111 (exit $ac_status); } && {
15112 test -z "$ac_c_werror_flag" ||
15113 test ! -s conftest.err
15114 } && test -s conftest$ac_exeext &&
15115 $as_test_x conftest$ac_exeext; then
15116 ac_cv_lib_pthreads_pthread_create=yes
15117 else
15118 echo "$as_me: failed program was:" >&5
15119 sed 's/^/| /' conftest.$ac_ext >&5
15121 ac_cv_lib_pthreads_pthread_create=no
15124 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15125 conftest$ac_exeext conftest.$ac_ext
15126 LIBS=$ac_check_lib_save_LIBS
15128 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
15129 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
15130 if test $ac_cv_lib_pthreads_pthread_create = yes; then
15131 cat >>confdefs.h <<\_ACEOF
15132 #define WITH_THREAD 1
15133 _ACEOF
15135 posix_threads=yes
15136 LIBS="$LIBS -lpthreads"
15137 THREADOBJ="Python/thread.o"
15138 else
15140 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
15141 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
15142 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
15143 echo $ECHO_N "(cached) $ECHO_C" >&6
15144 else
15145 ac_check_lib_save_LIBS=$LIBS
15146 LIBS="-lc_r $LIBS"
15147 cat >conftest.$ac_ext <<_ACEOF
15148 /* confdefs.h. */
15149 _ACEOF
15150 cat confdefs.h >>conftest.$ac_ext
15151 cat >>conftest.$ac_ext <<_ACEOF
15152 /* end confdefs.h. */
15154 /* Override any GCC internal prototype to avoid an error.
15155 Use char because int might match the return type of a GCC
15156 builtin and then its argument prototype would still apply. */
15157 #ifdef __cplusplus
15158 extern "C"
15159 #endif
15160 char pthread_create ();
15162 main ()
15164 return pthread_create ();
15166 return 0;
15168 _ACEOF
15169 rm -f conftest.$ac_objext conftest$ac_exeext
15170 if { (ac_try="$ac_link"
15171 case "(($ac_try" in
15172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15173 *) ac_try_echo=$ac_try;;
15174 esac
15175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15176 (eval "$ac_link") 2>conftest.er1
15177 ac_status=$?
15178 grep -v '^ *+' conftest.er1 >conftest.err
15179 rm -f conftest.er1
15180 cat conftest.err >&5
15181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15182 (exit $ac_status); } && {
15183 test -z "$ac_c_werror_flag" ||
15184 test ! -s conftest.err
15185 } && test -s conftest$ac_exeext &&
15186 $as_test_x conftest$ac_exeext; then
15187 ac_cv_lib_c_r_pthread_create=yes
15188 else
15189 echo "$as_me: failed program was:" >&5
15190 sed 's/^/| /' conftest.$ac_ext >&5
15192 ac_cv_lib_c_r_pthread_create=no
15195 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15196 conftest$ac_exeext conftest.$ac_ext
15197 LIBS=$ac_check_lib_save_LIBS
15199 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
15200 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
15201 if test $ac_cv_lib_c_r_pthread_create = yes; then
15202 cat >>confdefs.h <<\_ACEOF
15203 #define WITH_THREAD 1
15204 _ACEOF
15206 posix_threads=yes
15207 LIBS="$LIBS -lc_r"
15208 THREADOBJ="Python/thread.o"
15209 else
15211 { echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
15212 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6; }
15213 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
15214 echo $ECHO_N "(cached) $ECHO_C" >&6
15215 else
15216 ac_check_lib_save_LIBS=$LIBS
15217 LIBS="-lpthread $LIBS"
15218 cat >conftest.$ac_ext <<_ACEOF
15219 /* confdefs.h. */
15220 _ACEOF
15221 cat confdefs.h >>conftest.$ac_ext
15222 cat >>conftest.$ac_ext <<_ACEOF
15223 /* end confdefs.h. */
15225 /* Override any GCC internal prototype to avoid an error.
15226 Use char because int might match the return type of a GCC
15227 builtin and then its argument prototype would still apply. */
15228 #ifdef __cplusplus
15229 extern "C"
15230 #endif
15231 char __pthread_create_system ();
15233 main ()
15235 return __pthread_create_system ();
15237 return 0;
15239 _ACEOF
15240 rm -f conftest.$ac_objext conftest$ac_exeext
15241 if { (ac_try="$ac_link"
15242 case "(($ac_try" in
15243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15244 *) ac_try_echo=$ac_try;;
15245 esac
15246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15247 (eval "$ac_link") 2>conftest.er1
15248 ac_status=$?
15249 grep -v '^ *+' conftest.er1 >conftest.err
15250 rm -f conftest.er1
15251 cat conftest.err >&5
15252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15253 (exit $ac_status); } && {
15254 test -z "$ac_c_werror_flag" ||
15255 test ! -s conftest.err
15256 } && test -s conftest$ac_exeext &&
15257 $as_test_x conftest$ac_exeext; then
15258 ac_cv_lib_pthread___pthread_create_system=yes
15259 else
15260 echo "$as_me: failed program was:" >&5
15261 sed 's/^/| /' conftest.$ac_ext >&5
15263 ac_cv_lib_pthread___pthread_create_system=no
15266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15267 conftest$ac_exeext conftest.$ac_ext
15268 LIBS=$ac_check_lib_save_LIBS
15270 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
15271 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6; }
15272 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
15273 cat >>confdefs.h <<\_ACEOF
15274 #define WITH_THREAD 1
15275 _ACEOF
15277 posix_threads=yes
15278 LIBS="$LIBS -lpthread"
15279 THREADOBJ="Python/thread.o"
15280 else
15282 { echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
15283 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6; }
15284 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
15285 echo $ECHO_N "(cached) $ECHO_C" >&6
15286 else
15287 ac_check_lib_save_LIBS=$LIBS
15288 LIBS="-lcma $LIBS"
15289 cat >conftest.$ac_ext <<_ACEOF
15290 /* confdefs.h. */
15291 _ACEOF
15292 cat confdefs.h >>conftest.$ac_ext
15293 cat >>conftest.$ac_ext <<_ACEOF
15294 /* end confdefs.h. */
15296 /* Override any GCC internal prototype to avoid an error.
15297 Use char because int might match the return type of a GCC
15298 builtin and then its argument prototype would still apply. */
15299 #ifdef __cplusplus
15300 extern "C"
15301 #endif
15302 char pthread_create ();
15304 main ()
15306 return pthread_create ();
15308 return 0;
15310 _ACEOF
15311 rm -f conftest.$ac_objext conftest$ac_exeext
15312 if { (ac_try="$ac_link"
15313 case "(($ac_try" in
15314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15315 *) ac_try_echo=$ac_try;;
15316 esac
15317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15318 (eval "$ac_link") 2>conftest.er1
15319 ac_status=$?
15320 grep -v '^ *+' conftest.er1 >conftest.err
15321 rm -f conftest.er1
15322 cat conftest.err >&5
15323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15324 (exit $ac_status); } && {
15325 test -z "$ac_c_werror_flag" ||
15326 test ! -s conftest.err
15327 } && test -s conftest$ac_exeext &&
15328 $as_test_x conftest$ac_exeext; then
15329 ac_cv_lib_cma_pthread_create=yes
15330 else
15331 echo "$as_me: failed program was:" >&5
15332 sed 's/^/| /' conftest.$ac_ext >&5
15334 ac_cv_lib_cma_pthread_create=no
15337 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15338 conftest$ac_exeext conftest.$ac_ext
15339 LIBS=$ac_check_lib_save_LIBS
15341 { echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
15342 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6; }
15343 if test $ac_cv_lib_cma_pthread_create = yes; then
15344 cat >>confdefs.h <<\_ACEOF
15345 #define WITH_THREAD 1
15346 _ACEOF
15348 posix_threads=yes
15349 LIBS="$LIBS -lcma"
15350 THREADOBJ="Python/thread.o"
15351 else
15353 USE_THREAD_MODULE="#"
15370 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15371 conftest$ac_exeext conftest.$ac_ext
15381 { echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
15382 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6; }
15383 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
15384 echo $ECHO_N "(cached) $ECHO_C" >&6
15385 else
15386 ac_check_lib_save_LIBS=$LIBS
15387 LIBS="-lmpc $LIBS"
15388 cat >conftest.$ac_ext <<_ACEOF
15389 /* confdefs.h. */
15390 _ACEOF
15391 cat confdefs.h >>conftest.$ac_ext
15392 cat >>conftest.$ac_ext <<_ACEOF
15393 /* end confdefs.h. */
15395 /* Override any GCC internal prototype to avoid an error.
15396 Use char because int might match the return type of a GCC
15397 builtin and then its argument prototype would still apply. */
15398 #ifdef __cplusplus
15399 extern "C"
15400 #endif
15401 char usconfig ();
15403 main ()
15405 return usconfig ();
15407 return 0;
15409 _ACEOF
15410 rm -f conftest.$ac_objext conftest$ac_exeext
15411 if { (ac_try="$ac_link"
15412 case "(($ac_try" in
15413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15414 *) ac_try_echo=$ac_try;;
15415 esac
15416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15417 (eval "$ac_link") 2>conftest.er1
15418 ac_status=$?
15419 grep -v '^ *+' conftest.er1 >conftest.err
15420 rm -f conftest.er1
15421 cat conftest.err >&5
15422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15423 (exit $ac_status); } && {
15424 test -z "$ac_c_werror_flag" ||
15425 test ! -s conftest.err
15426 } && test -s conftest$ac_exeext &&
15427 $as_test_x conftest$ac_exeext; then
15428 ac_cv_lib_mpc_usconfig=yes
15429 else
15430 echo "$as_me: failed program was:" >&5
15431 sed 's/^/| /' conftest.$ac_ext >&5
15433 ac_cv_lib_mpc_usconfig=no
15436 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15437 conftest$ac_exeext conftest.$ac_ext
15438 LIBS=$ac_check_lib_save_LIBS
15440 { echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
15441 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6; }
15442 if test $ac_cv_lib_mpc_usconfig = yes; then
15443 cat >>confdefs.h <<\_ACEOF
15444 #define WITH_THREAD 1
15445 _ACEOF
15447 LIBS="$LIBS -lmpc"
15448 THREADOBJ="Python/thread.o"
15449 USE_THREAD_MODULE=""
15453 if test "$posix_threads" != "yes"; then
15454 { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
15455 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
15456 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
15457 echo $ECHO_N "(cached) $ECHO_C" >&6
15458 else
15459 ac_check_lib_save_LIBS=$LIBS
15460 LIBS="-lthread $LIBS"
15461 cat >conftest.$ac_ext <<_ACEOF
15462 /* confdefs.h. */
15463 _ACEOF
15464 cat confdefs.h >>conftest.$ac_ext
15465 cat >>conftest.$ac_ext <<_ACEOF
15466 /* end confdefs.h. */
15468 /* Override any GCC internal prototype to avoid an error.
15469 Use char because int might match the return type of a GCC
15470 builtin and then its argument prototype would still apply. */
15471 #ifdef __cplusplus
15472 extern "C"
15473 #endif
15474 char thr_create ();
15476 main ()
15478 return thr_create ();
15480 return 0;
15482 _ACEOF
15483 rm -f conftest.$ac_objext conftest$ac_exeext
15484 if { (ac_try="$ac_link"
15485 case "(($ac_try" in
15486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15487 *) ac_try_echo=$ac_try;;
15488 esac
15489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15490 (eval "$ac_link") 2>conftest.er1
15491 ac_status=$?
15492 grep -v '^ *+' conftest.er1 >conftest.err
15493 rm -f conftest.er1
15494 cat conftest.err >&5
15495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15496 (exit $ac_status); } && {
15497 test -z "$ac_c_werror_flag" ||
15498 test ! -s conftest.err
15499 } && test -s conftest$ac_exeext &&
15500 $as_test_x conftest$ac_exeext; then
15501 ac_cv_lib_thread_thr_create=yes
15502 else
15503 echo "$as_me: failed program was:" >&5
15504 sed 's/^/| /' conftest.$ac_ext >&5
15506 ac_cv_lib_thread_thr_create=no
15509 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15510 conftest$ac_exeext conftest.$ac_ext
15511 LIBS=$ac_check_lib_save_LIBS
15513 { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
15514 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
15515 if test $ac_cv_lib_thread_thr_create = yes; then
15516 cat >>confdefs.h <<\_ACEOF
15517 #define WITH_THREAD 1
15518 _ACEOF
15520 LIBS="$LIBS -lthread"
15521 THREADOBJ="Python/thread.o"
15522 USE_THREAD_MODULE=""
15527 if test "$USE_THREAD_MODULE" != "#"
15528 then
15529 # If the above checks didn't disable threads, (at least) OSF1
15530 # needs this '-threads' argument during linking.
15531 case $ac_sys_system in
15532 OSF1) LDLAST=-threads;;
15533 esac
15537 if test "$posix_threads" = "yes"; then
15538 if test "$unistd_defines_pthreads" = "no"; then
15540 cat >>confdefs.h <<\_ACEOF
15541 #define _POSIX_THREADS 1
15542 _ACEOF
15546 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
15547 case $ac_sys_system/$ac_sys_release in
15548 SunOS/5.6)
15549 cat >>confdefs.h <<\_ACEOF
15550 #define HAVE_PTHREAD_DESTRUCTOR 1
15551 _ACEOF
15554 SunOS/5.8)
15555 cat >>confdefs.h <<\_ACEOF
15556 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
15557 _ACEOF
15560 AIX/5)
15561 cat >>confdefs.h <<\_ACEOF
15562 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
15563 _ACEOF
15566 esac
15568 { echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
15569 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6; }
15570 if test "${ac_cv_pthread_system_supported+set}" = set; then
15571 echo $ECHO_N "(cached) $ECHO_C" >&6
15572 else
15573 if test "$cross_compiling" = yes; then
15574 ac_cv_pthread_system_supported=no
15575 else
15576 cat >conftest.$ac_ext <<_ACEOF
15577 /* confdefs.h. */
15578 _ACEOF
15579 cat confdefs.h >>conftest.$ac_ext
15580 cat >>conftest.$ac_ext <<_ACEOF
15581 /* end confdefs.h. */
15582 #include <pthread.h>
15583 void *foo(void *parm) {
15584 return NULL;
15586 main() {
15587 pthread_attr_t attr;
15588 pthread_t id;
15589 if (pthread_attr_init(&attr)) exit(-1);
15590 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
15591 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
15592 exit(0);
15594 _ACEOF
15595 rm -f conftest$ac_exeext
15596 if { (ac_try="$ac_link"
15597 case "(($ac_try" in
15598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15599 *) ac_try_echo=$ac_try;;
15600 esac
15601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15602 (eval "$ac_link") 2>&5
15603 ac_status=$?
15604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15605 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15606 { (case "(($ac_try" in
15607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15608 *) ac_try_echo=$ac_try;;
15609 esac
15610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15611 (eval "$ac_try") 2>&5
15612 ac_status=$?
15613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15614 (exit $ac_status); }; }; then
15615 ac_cv_pthread_system_supported=yes
15616 else
15617 echo "$as_me: program exited with status $ac_status" >&5
15618 echo "$as_me: failed program was:" >&5
15619 sed 's/^/| /' conftest.$ac_ext >&5
15621 ( exit $ac_status )
15622 ac_cv_pthread_system_supported=no
15624 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15631 { echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
15632 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6; }
15633 if test "$ac_cv_pthread_system_supported" = "yes"; then
15635 cat >>confdefs.h <<\_ACEOF
15636 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
15637 _ACEOF
15641 for ac_func in pthread_sigmask
15643 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15644 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15645 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15646 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15647 echo $ECHO_N "(cached) $ECHO_C" >&6
15648 else
15649 cat >conftest.$ac_ext <<_ACEOF
15650 /* confdefs.h. */
15651 _ACEOF
15652 cat confdefs.h >>conftest.$ac_ext
15653 cat >>conftest.$ac_ext <<_ACEOF
15654 /* end confdefs.h. */
15655 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15656 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15657 #define $ac_func innocuous_$ac_func
15659 /* System header to define __stub macros and hopefully few prototypes,
15660 which can conflict with char $ac_func (); below.
15661 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15662 <limits.h> exists even on freestanding compilers. */
15664 #ifdef __STDC__
15665 # include <limits.h>
15666 #else
15667 # include <assert.h>
15668 #endif
15670 #undef $ac_func
15672 /* Override any GCC internal prototype to avoid an error.
15673 Use char because int might match the return type of a GCC
15674 builtin and then its argument prototype would still apply. */
15675 #ifdef __cplusplus
15676 extern "C"
15677 #endif
15678 char $ac_func ();
15679 /* The GNU C library defines this for functions which it implements
15680 to always fail with ENOSYS. Some functions are actually named
15681 something starting with __ and the normal name is an alias. */
15682 #if defined __stub_$ac_func || defined __stub___$ac_func
15683 choke me
15684 #endif
15687 main ()
15689 return $ac_func ();
15691 return 0;
15693 _ACEOF
15694 rm -f conftest.$ac_objext conftest$ac_exeext
15695 if { (ac_try="$ac_link"
15696 case "(($ac_try" in
15697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15698 *) ac_try_echo=$ac_try;;
15699 esac
15700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15701 (eval "$ac_link") 2>conftest.er1
15702 ac_status=$?
15703 grep -v '^ *+' conftest.er1 >conftest.err
15704 rm -f conftest.er1
15705 cat conftest.err >&5
15706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15707 (exit $ac_status); } && {
15708 test -z "$ac_c_werror_flag" ||
15709 test ! -s conftest.err
15710 } && test -s conftest$ac_exeext &&
15711 $as_test_x conftest$ac_exeext; then
15712 eval "$as_ac_var=yes"
15713 else
15714 echo "$as_me: failed program was:" >&5
15715 sed 's/^/| /' conftest.$ac_ext >&5
15717 eval "$as_ac_var=no"
15720 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15721 conftest$ac_exeext conftest.$ac_ext
15723 ac_res=`eval echo '${'$as_ac_var'}'`
15724 { echo "$as_me:$LINENO: result: $ac_res" >&5
15725 echo "${ECHO_T}$ac_res" >&6; }
15726 if test `eval echo '${'$as_ac_var'}'` = yes; then
15727 cat >>confdefs.h <<_ACEOF
15728 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15729 _ACEOF
15730 case $ac_sys_system in
15731 CYGWIN*)
15733 cat >>confdefs.h <<\_ACEOF
15734 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
15735 _ACEOF
15738 esac
15740 done
15745 # Check for enable-ipv6
15748 { echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
15749 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6; }
15750 # Check whether --enable-ipv6 was given.
15751 if test "${enable_ipv6+set}" = set; then
15752 enableval=$enable_ipv6; case "$enableval" in
15754 { echo "$as_me:$LINENO: result: no" >&5
15755 echo "${ECHO_T}no" >&6; }
15756 ipv6=no
15758 *) { echo "$as_me:$LINENO: result: yes" >&5
15759 echo "${ECHO_T}yes" >&6; }
15760 cat >>confdefs.h <<\_ACEOF
15761 #define ENABLE_IPV6 1
15762 _ACEOF
15764 ipv6=yes
15766 esac
15767 else
15769 if test "$cross_compiling" = yes; then
15770 { echo "$as_me:$LINENO: result: no" >&5
15771 echo "${ECHO_T}no" >&6; }
15772 ipv6=no
15774 else
15775 cat >conftest.$ac_ext <<_ACEOF
15776 /* confdefs.h. */
15777 _ACEOF
15778 cat confdefs.h >>conftest.$ac_ext
15779 cat >>conftest.$ac_ext <<_ACEOF
15780 /* end confdefs.h. */
15781 /* AF_INET6 available check */
15782 #include <sys/types.h>
15783 #include <sys/socket.h>
15784 main()
15786 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
15787 exit(1);
15788 else
15789 exit(0);
15792 _ACEOF
15793 rm -f conftest$ac_exeext
15794 if { (ac_try="$ac_link"
15795 case "(($ac_try" in
15796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15797 *) ac_try_echo=$ac_try;;
15798 esac
15799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15800 (eval "$ac_link") 2>&5
15801 ac_status=$?
15802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15803 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15804 { (case "(($ac_try" in
15805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15806 *) ac_try_echo=$ac_try;;
15807 esac
15808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15809 (eval "$ac_try") 2>&5
15810 ac_status=$?
15811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15812 (exit $ac_status); }; }; then
15813 { echo "$as_me:$LINENO: result: yes" >&5
15814 echo "${ECHO_T}yes" >&6; }
15815 ipv6=yes
15816 else
15817 echo "$as_me: program exited with status $ac_status" >&5
15818 echo "$as_me: failed program was:" >&5
15819 sed 's/^/| /' conftest.$ac_ext >&5
15821 ( exit $ac_status )
15822 { echo "$as_me:$LINENO: result: no" >&5
15823 echo "${ECHO_T}no" >&6; }
15824 ipv6=no
15826 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15831 if test "$ipv6" = "yes"; then
15832 { echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
15833 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6; }
15834 cat >conftest.$ac_ext <<_ACEOF
15835 /* confdefs.h. */
15836 _ACEOF
15837 cat confdefs.h >>conftest.$ac_ext
15838 cat >>conftest.$ac_ext <<_ACEOF
15839 /* end confdefs.h. */
15840 #include <sys/types.h>
15841 #include <netinet/in.h>
15843 main ()
15845 struct sockaddr_in6 x;
15846 x.sin6_scope_id;
15848 return 0;
15850 _ACEOF
15851 rm -f conftest.$ac_objext
15852 if { (ac_try="$ac_compile"
15853 case "(($ac_try" in
15854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15855 *) ac_try_echo=$ac_try;;
15856 esac
15857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15858 (eval "$ac_compile") 2>conftest.er1
15859 ac_status=$?
15860 grep -v '^ *+' conftest.er1 >conftest.err
15861 rm -f conftest.er1
15862 cat conftest.err >&5
15863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15864 (exit $ac_status); } && {
15865 test -z "$ac_c_werror_flag" ||
15866 test ! -s conftest.err
15867 } && test -s conftest.$ac_objext; then
15868 { echo "$as_me:$LINENO: result: yes" >&5
15869 echo "${ECHO_T}yes" >&6; }
15870 ipv6=yes
15871 else
15872 echo "$as_me: failed program was:" >&5
15873 sed 's/^/| /' conftest.$ac_ext >&5
15875 { echo "$as_me:$LINENO: result: no" >&5
15876 echo "${ECHO_T}no" >&6; }
15877 ipv6=no
15880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15883 if test "$ipv6" = "yes"; then
15884 cat >>confdefs.h <<\_ACEOF
15885 #define ENABLE_IPV6 1
15886 _ACEOF
15893 ipv6type=unknown
15894 ipv6lib=none
15895 ipv6trylibc=no
15897 if test "$ipv6" = "yes"; then
15898 { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
15899 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
15900 for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
15902 case $i in
15903 inria)
15904 cat >conftest.$ac_ext <<_ACEOF
15905 /* confdefs.h. */
15906 _ACEOF
15907 cat confdefs.h >>conftest.$ac_ext
15908 cat >>conftest.$ac_ext <<_ACEOF
15909 /* end confdefs.h. */
15911 #include <netinet/in.h>
15912 #ifdef IPV6_INRIA_VERSION
15914 #endif
15915 _ACEOF
15916 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15917 $EGREP "yes" >/dev/null 2>&1; then
15918 ipv6type=$i
15920 rm -f -r conftest*
15923 kame)
15924 cat >conftest.$ac_ext <<_ACEOF
15925 /* confdefs.h. */
15926 _ACEOF
15927 cat confdefs.h >>conftest.$ac_ext
15928 cat >>conftest.$ac_ext <<_ACEOF
15929 /* end confdefs.h. */
15931 #include <netinet/in.h>
15932 #ifdef __KAME__
15934 #endif
15935 _ACEOF
15936 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15937 $EGREP "yes" >/dev/null 2>&1; then
15938 ipv6type=$i;
15939 ipv6lib=inet6
15940 ipv6libdir=/usr/local/v6/lib
15941 ipv6trylibc=yes
15943 rm -f -r conftest*
15946 linux-glibc)
15947 cat >conftest.$ac_ext <<_ACEOF
15948 /* confdefs.h. */
15949 _ACEOF
15950 cat confdefs.h >>conftest.$ac_ext
15951 cat >>conftest.$ac_ext <<_ACEOF
15952 /* end confdefs.h. */
15954 #include <features.h>
15955 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
15957 #endif
15958 _ACEOF
15959 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15960 $EGREP "yes" >/dev/null 2>&1; then
15961 ipv6type=$i;
15962 ipv6trylibc=yes
15964 rm -f -r conftest*
15967 linux-inet6)
15968 if test -d /usr/inet6; then
15969 ipv6type=$i
15970 ipv6lib=inet6
15971 ipv6libdir=/usr/inet6/lib
15972 BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
15975 solaris)
15976 if test -f /etc/netconfig; then
15977 if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then
15978 ipv6type=$i
15979 ipv6trylibc=yes
15983 toshiba)
15984 cat >conftest.$ac_ext <<_ACEOF
15985 /* confdefs.h. */
15986 _ACEOF
15987 cat confdefs.h >>conftest.$ac_ext
15988 cat >>conftest.$ac_ext <<_ACEOF
15989 /* end confdefs.h. */
15991 #include <sys/param.h>
15992 #ifdef _TOSHIBA_INET6
15994 #endif
15995 _ACEOF
15996 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15997 $EGREP "yes" >/dev/null 2>&1; then
15998 ipv6type=$i;
15999 ipv6lib=inet6;
16000 ipv6libdir=/usr/local/v6/lib
16002 rm -f -r conftest*
16005 v6d)
16006 cat >conftest.$ac_ext <<_ACEOF
16007 /* confdefs.h. */
16008 _ACEOF
16009 cat confdefs.h >>conftest.$ac_ext
16010 cat >>conftest.$ac_ext <<_ACEOF
16011 /* end confdefs.h. */
16013 #include </usr/local/v6/include/sys/v6config.h>
16014 #ifdef __V6D__
16016 #endif
16017 _ACEOF
16018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16019 $EGREP "yes" >/dev/null 2>&1; then
16020 ipv6type=$i;
16021 ipv6lib=v6;
16022 ipv6libdir=/usr/local/v6/lib;
16023 BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
16025 rm -f -r conftest*
16028 zeta)
16029 cat >conftest.$ac_ext <<_ACEOF
16030 /* confdefs.h. */
16031 _ACEOF
16032 cat confdefs.h >>conftest.$ac_ext
16033 cat >>conftest.$ac_ext <<_ACEOF
16034 /* end confdefs.h. */
16036 #include <sys/param.h>
16037 #ifdef _ZETA_MINAMI_INET6
16039 #endif
16040 _ACEOF
16041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16042 $EGREP "yes" >/dev/null 2>&1; then
16043 ipv6type=$i;
16044 ipv6lib=inet6;
16045 ipv6libdir=/usr/local/v6/lib
16047 rm -f -r conftest*
16050 esac
16051 if test "$ipv6type" != "unknown"; then
16052 break
16054 done
16055 { echo "$as_me:$LINENO: result: $ipv6type" >&5
16056 echo "${ECHO_T}$ipv6type" >&6; }
16059 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
16060 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
16061 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
16062 echo "using lib$ipv6lib"
16063 else
16064 if test $ipv6trylibc = "yes"; then
16065 echo "using libc"
16066 else
16067 echo 'Fatal: no $ipv6lib library found. cannot continue.'
16068 echo "You need to fetch lib$ipv6lib.a from appropriate"
16069 echo 'ipv6 kit and compile beforehand.'
16070 exit 1
16075 { echo "$as_me:$LINENO: checking for OSX 10.5 SDK or later" >&5
16076 echo $ECHO_N "checking for OSX 10.5 SDK or later... $ECHO_C" >&6; }
16077 cat >conftest.$ac_ext <<_ACEOF
16078 /* confdefs.h. */
16079 _ACEOF
16080 cat confdefs.h >>conftest.$ac_ext
16081 cat >>conftest.$ac_ext <<_ACEOF
16082 /* end confdefs.h. */
16083 #include <Carbon/Carbon.h>
16085 main ()
16087 FSIORefNum fRef = 0
16089 return 0;
16091 _ACEOF
16092 rm -f conftest.$ac_objext
16093 if { (ac_try="$ac_compile"
16094 case "(($ac_try" in
16095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16096 *) ac_try_echo=$ac_try;;
16097 esac
16098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16099 (eval "$ac_compile") 2>conftest.er1
16100 ac_status=$?
16101 grep -v '^ *+' conftest.er1 >conftest.err
16102 rm -f conftest.er1
16103 cat conftest.err >&5
16104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16105 (exit $ac_status); } && {
16106 test -z "$ac_c_werror_flag" ||
16107 test ! -s conftest.err
16108 } && test -s conftest.$ac_objext; then
16110 cat >>confdefs.h <<\_ACEOF
16111 #define HAVE_OSX105_SDK 1
16112 _ACEOF
16114 { echo "$as_me:$LINENO: result: yes" >&5
16115 echo "${ECHO_T}yes" >&6; }
16116 else
16117 echo "$as_me: failed program was:" >&5
16118 sed 's/^/| /' conftest.$ac_ext >&5
16120 { echo "$as_me:$LINENO: result: no" >&5
16121 echo "${ECHO_T}no" >&6; }
16125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16127 # Check for --with-doc-strings
16128 { echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
16129 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6; }
16131 # Check whether --with-doc-strings was given.
16132 if test "${with_doc_strings+set}" = set; then
16133 withval=$with_doc_strings;
16137 if test -z "$with_doc_strings"
16138 then with_doc_strings="yes"
16140 if test "$with_doc_strings" != "no"
16141 then
16143 cat >>confdefs.h <<\_ACEOF
16144 #define WITH_DOC_STRINGS 1
16145 _ACEOF
16148 { echo "$as_me:$LINENO: result: $with_doc_strings" >&5
16149 echo "${ECHO_T}$with_doc_strings" >&6; }
16151 # Check for Python-specific malloc support
16152 { echo "$as_me:$LINENO: checking for --with-tsc" >&5
16153 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6; }
16155 # Check whether --with-tsc was given.
16156 if test "${with_tsc+set}" = set; then
16157 withval=$with_tsc;
16158 if test "$withval" != no
16159 then
16161 cat >>confdefs.h <<\_ACEOF
16162 #define WITH_TSC 1
16163 _ACEOF
16165 { echo "$as_me:$LINENO: result: yes" >&5
16166 echo "${ECHO_T}yes" >&6; }
16167 else { echo "$as_me:$LINENO: result: no" >&5
16168 echo "${ECHO_T}no" >&6; }
16170 else
16171 { echo "$as_me:$LINENO: result: no" >&5
16172 echo "${ECHO_T}no" >&6; }
16176 # Check for Python-specific malloc support
16177 { echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
16178 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6; }
16180 # Check whether --with-pymalloc was given.
16181 if test "${with_pymalloc+set}" = set; then
16182 withval=$with_pymalloc;
16186 if test -z "$with_pymalloc"
16187 then with_pymalloc="yes"
16189 if test "$with_pymalloc" != "no"
16190 then
16192 cat >>confdefs.h <<\_ACEOF
16193 #define WITH_PYMALLOC 1
16194 _ACEOF
16197 { echo "$as_me:$LINENO: result: $with_pymalloc" >&5
16198 echo "${ECHO_T}$with_pymalloc" >&6; }
16200 # Check for --with-wctype-functions
16201 { echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
16202 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6; }
16204 # Check whether --with-wctype-functions was given.
16205 if test "${with_wctype_functions+set}" = set; then
16206 withval=$with_wctype_functions;
16207 if test "$withval" != no
16208 then
16210 cat >>confdefs.h <<\_ACEOF
16211 #define WANT_WCTYPE_FUNCTIONS 1
16212 _ACEOF
16214 { echo "$as_me:$LINENO: result: yes" >&5
16215 echo "${ECHO_T}yes" >&6; }
16216 else { echo "$as_me:$LINENO: result: no" >&5
16217 echo "${ECHO_T}no" >&6; }
16219 else
16220 { echo "$as_me:$LINENO: result: no" >&5
16221 echo "${ECHO_T}no" >&6; }
16225 # -I${DLINCLDIR} is added to the compile rule for importdl.o
16227 DLINCLDIR=.
16229 # the dlopen() function means we might want to use dynload_shlib.o. some
16230 # platforms, such as AIX, have dlopen(), but don't want to use it.
16232 for ac_func in dlopen
16234 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16235 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16236 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16237 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16238 echo $ECHO_N "(cached) $ECHO_C" >&6
16239 else
16240 cat >conftest.$ac_ext <<_ACEOF
16241 /* confdefs.h. */
16242 _ACEOF
16243 cat confdefs.h >>conftest.$ac_ext
16244 cat >>conftest.$ac_ext <<_ACEOF
16245 /* end confdefs.h. */
16246 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16247 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16248 #define $ac_func innocuous_$ac_func
16250 /* System header to define __stub macros and hopefully few prototypes,
16251 which can conflict with char $ac_func (); below.
16252 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16253 <limits.h> exists even on freestanding compilers. */
16255 #ifdef __STDC__
16256 # include <limits.h>
16257 #else
16258 # include <assert.h>
16259 #endif
16261 #undef $ac_func
16263 /* Override any GCC internal prototype to avoid an error.
16264 Use char because int might match the return type of a GCC
16265 builtin and then its argument prototype would still apply. */
16266 #ifdef __cplusplus
16267 extern "C"
16268 #endif
16269 char $ac_func ();
16270 /* The GNU C library defines this for functions which it implements
16271 to always fail with ENOSYS. Some functions are actually named
16272 something starting with __ and the normal name is an alias. */
16273 #if defined __stub_$ac_func || defined __stub___$ac_func
16274 choke me
16275 #endif
16278 main ()
16280 return $ac_func ();
16282 return 0;
16284 _ACEOF
16285 rm -f conftest.$ac_objext conftest$ac_exeext
16286 if { (ac_try="$ac_link"
16287 case "(($ac_try" in
16288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16289 *) ac_try_echo=$ac_try;;
16290 esac
16291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16292 (eval "$ac_link") 2>conftest.er1
16293 ac_status=$?
16294 grep -v '^ *+' conftest.er1 >conftest.err
16295 rm -f conftest.er1
16296 cat conftest.err >&5
16297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16298 (exit $ac_status); } && {
16299 test -z "$ac_c_werror_flag" ||
16300 test ! -s conftest.err
16301 } && test -s conftest$ac_exeext &&
16302 $as_test_x conftest$ac_exeext; then
16303 eval "$as_ac_var=yes"
16304 else
16305 echo "$as_me: failed program was:" >&5
16306 sed 's/^/| /' conftest.$ac_ext >&5
16308 eval "$as_ac_var=no"
16311 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16312 conftest$ac_exeext conftest.$ac_ext
16314 ac_res=`eval echo '${'$as_ac_var'}'`
16315 { echo "$as_me:$LINENO: result: $ac_res" >&5
16316 echo "${ECHO_T}$ac_res" >&6; }
16317 if test `eval echo '${'$as_ac_var'}'` = yes; then
16318 cat >>confdefs.h <<_ACEOF
16319 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16320 _ACEOF
16323 done
16326 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
16327 # loading of modules.
16329 { echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
16330 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6; }
16331 if test -z "$DYNLOADFILE"
16332 then
16333 case $ac_sys_system/$ac_sys_release in
16334 AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
16335 if test "$ac_cv_func_dlopen" = yes
16336 then DYNLOADFILE="dynload_shlib.o"
16337 else DYNLOADFILE="dynload_aix.o"
16340 hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
16341 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
16342 Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";;
16343 atheos*) DYNLOADFILE="dynload_atheos.o";;
16345 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
16346 # out any dynamic loading
16347 if test "$ac_cv_func_dlopen" = yes
16348 then DYNLOADFILE="dynload_shlib.o"
16349 else DYNLOADFILE="dynload_stub.o"
16352 esac
16354 { echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
16355 echo "${ECHO_T}$DYNLOADFILE" >&6; }
16356 if test "$DYNLOADFILE" != "dynload_stub.o"
16357 then
16359 cat >>confdefs.h <<\_ACEOF
16360 #define HAVE_DYNAMIC_LOADING 1
16361 _ACEOF
16365 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
16368 { echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
16369 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6; }
16370 if test -z "$MACHDEP_OBJS"
16371 then
16372 MACHDEP_OBJS=$extra_machdep_objs
16373 else
16374 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
16376 { echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
16377 echo "${ECHO_T}MACHDEP_OBJS" >&6; }
16379 # checks for library functions
16469 for ac_func in alarm setitimer getitimer bind_textdomain_codeset chown \
16470 clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \
16471 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
16472 getpriority getpwent getspnam getspent getsid getwd \
16473 kill killpg lchmod lchown lstat mbrtowc mkfifo mknod mktime \
16474 mremap nice pathconf pause plock poll pthread_init \
16475 putenv readlink realpath \
16476 select sem_open sem_timedwait sem_getvalue sem_unlink setegid seteuid \
16477 setgid \
16478 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
16479 sigaction siginterrupt sigrelse strftime strlcpy \
16480 sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
16481 truncate uname unsetenv utimes waitpid wait3 wait4 \
16482 wcscoll wcsftime wcsxfrm _getpty
16484 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16485 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16486 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16487 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16488 echo $ECHO_N "(cached) $ECHO_C" >&6
16489 else
16490 cat >conftest.$ac_ext <<_ACEOF
16491 /* confdefs.h. */
16492 _ACEOF
16493 cat confdefs.h >>conftest.$ac_ext
16494 cat >>conftest.$ac_ext <<_ACEOF
16495 /* end confdefs.h. */
16496 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16497 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16498 #define $ac_func innocuous_$ac_func
16500 /* System header to define __stub macros and hopefully few prototypes,
16501 which can conflict with char $ac_func (); below.
16502 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16503 <limits.h> exists even on freestanding compilers. */
16505 #ifdef __STDC__
16506 # include <limits.h>
16507 #else
16508 # include <assert.h>
16509 #endif
16511 #undef $ac_func
16513 /* Override any GCC internal prototype to avoid an error.
16514 Use char because int might match the return type of a GCC
16515 builtin and then its argument prototype would still apply. */
16516 #ifdef __cplusplus
16517 extern "C"
16518 #endif
16519 char $ac_func ();
16520 /* The GNU C library defines this for functions which it implements
16521 to always fail with ENOSYS. Some functions are actually named
16522 something starting with __ and the normal name is an alias. */
16523 #if defined __stub_$ac_func || defined __stub___$ac_func
16524 choke me
16525 #endif
16528 main ()
16530 return $ac_func ();
16532 return 0;
16534 _ACEOF
16535 rm -f conftest.$ac_objext conftest$ac_exeext
16536 if { (ac_try="$ac_link"
16537 case "(($ac_try" in
16538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16539 *) ac_try_echo=$ac_try;;
16540 esac
16541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16542 (eval "$ac_link") 2>conftest.er1
16543 ac_status=$?
16544 grep -v '^ *+' conftest.er1 >conftest.err
16545 rm -f conftest.er1
16546 cat conftest.err >&5
16547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16548 (exit $ac_status); } && {
16549 test -z "$ac_c_werror_flag" ||
16550 test ! -s conftest.err
16551 } && test -s conftest$ac_exeext &&
16552 $as_test_x conftest$ac_exeext; then
16553 eval "$as_ac_var=yes"
16554 else
16555 echo "$as_me: failed program was:" >&5
16556 sed 's/^/| /' conftest.$ac_ext >&5
16558 eval "$as_ac_var=no"
16561 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16562 conftest$ac_exeext conftest.$ac_ext
16564 ac_res=`eval echo '${'$as_ac_var'}'`
16565 { echo "$as_me:$LINENO: result: $ac_res" >&5
16566 echo "${ECHO_T}$ac_res" >&6; }
16567 if test `eval echo '${'$as_ac_var'}'` = yes; then
16568 cat >>confdefs.h <<_ACEOF
16569 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16570 _ACEOF
16573 done
16576 # For some functions, having a definition is not sufficient, since
16577 # we want to take their address.
16578 { echo "$as_me:$LINENO: checking for chroot" >&5
16579 echo $ECHO_N "checking for chroot... $ECHO_C" >&6; }
16580 cat >conftest.$ac_ext <<_ACEOF
16581 /* confdefs.h. */
16582 _ACEOF
16583 cat confdefs.h >>conftest.$ac_ext
16584 cat >>conftest.$ac_ext <<_ACEOF
16585 /* end confdefs.h. */
16586 #include <unistd.h>
16588 main ()
16590 void *x=chroot
16592 return 0;
16594 _ACEOF
16595 rm -f conftest.$ac_objext
16596 if { (ac_try="$ac_compile"
16597 case "(($ac_try" in
16598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16599 *) ac_try_echo=$ac_try;;
16600 esac
16601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16602 (eval "$ac_compile") 2>conftest.er1
16603 ac_status=$?
16604 grep -v '^ *+' conftest.er1 >conftest.err
16605 rm -f conftest.er1
16606 cat conftest.err >&5
16607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16608 (exit $ac_status); } && {
16609 test -z "$ac_c_werror_flag" ||
16610 test ! -s conftest.err
16611 } && test -s conftest.$ac_objext; then
16613 cat >>confdefs.h <<\_ACEOF
16614 #define HAVE_CHROOT 1
16615 _ACEOF
16617 { echo "$as_me:$LINENO: result: yes" >&5
16618 echo "${ECHO_T}yes" >&6; }
16619 else
16620 echo "$as_me: failed program was:" >&5
16621 sed 's/^/| /' conftest.$ac_ext >&5
16623 { echo "$as_me:$LINENO: result: no" >&5
16624 echo "${ECHO_T}no" >&6; }
16628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16629 { echo "$as_me:$LINENO: checking for link" >&5
16630 echo $ECHO_N "checking for link... $ECHO_C" >&6; }
16631 cat >conftest.$ac_ext <<_ACEOF
16632 /* confdefs.h. */
16633 _ACEOF
16634 cat confdefs.h >>conftest.$ac_ext
16635 cat >>conftest.$ac_ext <<_ACEOF
16636 /* end confdefs.h. */
16637 #include <unistd.h>
16639 main ()
16641 void *x=link
16643 return 0;
16645 _ACEOF
16646 rm -f conftest.$ac_objext
16647 if { (ac_try="$ac_compile"
16648 case "(($ac_try" in
16649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16650 *) ac_try_echo=$ac_try;;
16651 esac
16652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16653 (eval "$ac_compile") 2>conftest.er1
16654 ac_status=$?
16655 grep -v '^ *+' conftest.er1 >conftest.err
16656 rm -f conftest.er1
16657 cat conftest.err >&5
16658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16659 (exit $ac_status); } && {
16660 test -z "$ac_c_werror_flag" ||
16661 test ! -s conftest.err
16662 } && test -s conftest.$ac_objext; then
16664 cat >>confdefs.h <<\_ACEOF
16665 #define HAVE_LINK 1
16666 _ACEOF
16668 { echo "$as_me:$LINENO: result: yes" >&5
16669 echo "${ECHO_T}yes" >&6; }
16670 else
16671 echo "$as_me: failed program was:" >&5
16672 sed 's/^/| /' conftest.$ac_ext >&5
16674 { echo "$as_me:$LINENO: result: no" >&5
16675 echo "${ECHO_T}no" >&6; }
16679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16680 { echo "$as_me:$LINENO: checking for symlink" >&5
16681 echo $ECHO_N "checking for symlink... $ECHO_C" >&6; }
16682 cat >conftest.$ac_ext <<_ACEOF
16683 /* confdefs.h. */
16684 _ACEOF
16685 cat confdefs.h >>conftest.$ac_ext
16686 cat >>conftest.$ac_ext <<_ACEOF
16687 /* end confdefs.h. */
16688 #include <unistd.h>
16690 main ()
16692 void *x=symlink
16694 return 0;
16696 _ACEOF
16697 rm -f conftest.$ac_objext
16698 if { (ac_try="$ac_compile"
16699 case "(($ac_try" in
16700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16701 *) ac_try_echo=$ac_try;;
16702 esac
16703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16704 (eval "$ac_compile") 2>conftest.er1
16705 ac_status=$?
16706 grep -v '^ *+' conftest.er1 >conftest.err
16707 rm -f conftest.er1
16708 cat conftest.err >&5
16709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16710 (exit $ac_status); } && {
16711 test -z "$ac_c_werror_flag" ||
16712 test ! -s conftest.err
16713 } && test -s conftest.$ac_objext; then
16715 cat >>confdefs.h <<\_ACEOF
16716 #define HAVE_SYMLINK 1
16717 _ACEOF
16719 { echo "$as_me:$LINENO: result: yes" >&5
16720 echo "${ECHO_T}yes" >&6; }
16721 else
16722 echo "$as_me: failed program was:" >&5
16723 sed 's/^/| /' conftest.$ac_ext >&5
16725 { echo "$as_me:$LINENO: result: no" >&5
16726 echo "${ECHO_T}no" >&6; }
16730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16731 { echo "$as_me:$LINENO: checking for fchdir" >&5
16732 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6; }
16733 cat >conftest.$ac_ext <<_ACEOF
16734 /* confdefs.h. */
16735 _ACEOF
16736 cat confdefs.h >>conftest.$ac_ext
16737 cat >>conftest.$ac_ext <<_ACEOF
16738 /* end confdefs.h. */
16739 #include <unistd.h>
16741 main ()
16743 void *x=fchdir
16745 return 0;
16747 _ACEOF
16748 rm -f conftest.$ac_objext
16749 if { (ac_try="$ac_compile"
16750 case "(($ac_try" in
16751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16752 *) ac_try_echo=$ac_try;;
16753 esac
16754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16755 (eval "$ac_compile") 2>conftest.er1
16756 ac_status=$?
16757 grep -v '^ *+' conftest.er1 >conftest.err
16758 rm -f conftest.er1
16759 cat conftest.err >&5
16760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16761 (exit $ac_status); } && {
16762 test -z "$ac_c_werror_flag" ||
16763 test ! -s conftest.err
16764 } && test -s conftest.$ac_objext; then
16766 cat >>confdefs.h <<\_ACEOF
16767 #define HAVE_FCHDIR 1
16768 _ACEOF
16770 { echo "$as_me:$LINENO: result: yes" >&5
16771 echo "${ECHO_T}yes" >&6; }
16772 else
16773 echo "$as_me: failed program was:" >&5
16774 sed 's/^/| /' conftest.$ac_ext >&5
16776 { echo "$as_me:$LINENO: result: no" >&5
16777 echo "${ECHO_T}no" >&6; }
16781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16782 { echo "$as_me:$LINENO: checking for fsync" >&5
16783 echo $ECHO_N "checking for fsync... $ECHO_C" >&6; }
16784 cat >conftest.$ac_ext <<_ACEOF
16785 /* confdefs.h. */
16786 _ACEOF
16787 cat confdefs.h >>conftest.$ac_ext
16788 cat >>conftest.$ac_ext <<_ACEOF
16789 /* end confdefs.h. */
16790 #include <unistd.h>
16792 main ()
16794 void *x=fsync
16796 return 0;
16798 _ACEOF
16799 rm -f conftest.$ac_objext
16800 if { (ac_try="$ac_compile"
16801 case "(($ac_try" in
16802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16803 *) ac_try_echo=$ac_try;;
16804 esac
16805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16806 (eval "$ac_compile") 2>conftest.er1
16807 ac_status=$?
16808 grep -v '^ *+' conftest.er1 >conftest.err
16809 rm -f conftest.er1
16810 cat conftest.err >&5
16811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16812 (exit $ac_status); } && {
16813 test -z "$ac_c_werror_flag" ||
16814 test ! -s conftest.err
16815 } && test -s conftest.$ac_objext; then
16817 cat >>confdefs.h <<\_ACEOF
16818 #define HAVE_FSYNC 1
16819 _ACEOF
16821 { echo "$as_me:$LINENO: result: yes" >&5
16822 echo "${ECHO_T}yes" >&6; }
16823 else
16824 echo "$as_me: failed program was:" >&5
16825 sed 's/^/| /' conftest.$ac_ext >&5
16827 { echo "$as_me:$LINENO: result: no" >&5
16828 echo "${ECHO_T}no" >&6; }
16832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16833 { echo "$as_me:$LINENO: checking for fdatasync" >&5
16834 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; }
16835 cat >conftest.$ac_ext <<_ACEOF
16836 /* confdefs.h. */
16837 _ACEOF
16838 cat confdefs.h >>conftest.$ac_ext
16839 cat >>conftest.$ac_ext <<_ACEOF
16840 /* end confdefs.h. */
16841 #include <unistd.h>
16843 main ()
16845 void *x=fdatasync
16847 return 0;
16849 _ACEOF
16850 rm -f conftest.$ac_objext
16851 if { (ac_try="$ac_compile"
16852 case "(($ac_try" in
16853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16854 *) ac_try_echo=$ac_try;;
16855 esac
16856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16857 (eval "$ac_compile") 2>conftest.er1
16858 ac_status=$?
16859 grep -v '^ *+' conftest.er1 >conftest.err
16860 rm -f conftest.er1
16861 cat conftest.err >&5
16862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16863 (exit $ac_status); } && {
16864 test -z "$ac_c_werror_flag" ||
16865 test ! -s conftest.err
16866 } && test -s conftest.$ac_objext; then
16868 cat >>confdefs.h <<\_ACEOF
16869 #define HAVE_FDATASYNC 1
16870 _ACEOF
16872 { echo "$as_me:$LINENO: result: yes" >&5
16873 echo "${ECHO_T}yes" >&6; }
16874 else
16875 echo "$as_me: failed program was:" >&5
16876 sed 's/^/| /' conftest.$ac_ext >&5
16878 { echo "$as_me:$LINENO: result: no" >&5
16879 echo "${ECHO_T}no" >&6; }
16883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16884 { echo "$as_me:$LINENO: checking for epoll" >&5
16885 echo $ECHO_N "checking for epoll... $ECHO_C" >&6; }
16886 cat >conftest.$ac_ext <<_ACEOF
16887 /* confdefs.h. */
16888 _ACEOF
16889 cat confdefs.h >>conftest.$ac_ext
16890 cat >>conftest.$ac_ext <<_ACEOF
16891 /* end confdefs.h. */
16892 #include <sys/epoll.h>
16894 main ()
16896 void *x=epoll_create
16898 return 0;
16900 _ACEOF
16901 rm -f conftest.$ac_objext
16902 if { (ac_try="$ac_compile"
16903 case "(($ac_try" in
16904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16905 *) ac_try_echo=$ac_try;;
16906 esac
16907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16908 (eval "$ac_compile") 2>conftest.er1
16909 ac_status=$?
16910 grep -v '^ *+' conftest.er1 >conftest.err
16911 rm -f conftest.er1
16912 cat conftest.err >&5
16913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16914 (exit $ac_status); } && {
16915 test -z "$ac_c_werror_flag" ||
16916 test ! -s conftest.err
16917 } && test -s conftest.$ac_objext; then
16919 cat >>confdefs.h <<\_ACEOF
16920 #define HAVE_EPOLL 1
16921 _ACEOF
16923 { echo "$as_me:$LINENO: result: yes" >&5
16924 echo "${ECHO_T}yes" >&6; }
16925 else
16926 echo "$as_me: failed program was:" >&5
16927 sed 's/^/| /' conftest.$ac_ext >&5
16929 { echo "$as_me:$LINENO: result: no" >&5
16930 echo "${ECHO_T}no" >&6; }
16934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16935 { echo "$as_me:$LINENO: checking for kqueue" >&5
16936 echo $ECHO_N "checking for kqueue... $ECHO_C" >&6; }
16937 cat >conftest.$ac_ext <<_ACEOF
16938 /* confdefs.h. */
16939 _ACEOF
16940 cat confdefs.h >>conftest.$ac_ext
16941 cat >>conftest.$ac_ext <<_ACEOF
16942 /* end confdefs.h. */
16944 #include <sys/types.h>
16945 #include <sys/event.h>
16948 main ()
16950 int x=kqueue()
16952 return 0;
16954 _ACEOF
16955 rm -f conftest.$ac_objext
16956 if { (ac_try="$ac_compile"
16957 case "(($ac_try" in
16958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16959 *) ac_try_echo=$ac_try;;
16960 esac
16961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16962 (eval "$ac_compile") 2>conftest.er1
16963 ac_status=$?
16964 grep -v '^ *+' conftest.er1 >conftest.err
16965 rm -f conftest.er1
16966 cat conftest.err >&5
16967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16968 (exit $ac_status); } && {
16969 test -z "$ac_c_werror_flag" ||
16970 test ! -s conftest.err
16971 } && test -s conftest.$ac_objext; then
16973 cat >>confdefs.h <<\_ACEOF
16974 #define HAVE_KQUEUE 1
16975 _ACEOF
16977 { echo "$as_me:$LINENO: result: yes" >&5
16978 echo "${ECHO_T}yes" >&6; }
16979 else
16980 echo "$as_me: failed program was:" >&5
16981 sed 's/^/| /' conftest.$ac_ext >&5
16983 { echo "$as_me:$LINENO: result: no" >&5
16984 echo "${ECHO_T}no" >&6; }
16988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16989 # On some systems (eg. FreeBSD 5), we would find a definition of the
16990 # functions ctermid_r, setgroups in the library, but no prototype
16991 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
16992 # address to avoid compiler warnings and potential miscompilations
16993 # because of the missing prototypes.
16995 { echo "$as_me:$LINENO: checking for ctermid_r" >&5
16996 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6; }
16997 cat >conftest.$ac_ext <<_ACEOF
16998 /* confdefs.h. */
16999 _ACEOF
17000 cat confdefs.h >>conftest.$ac_ext
17001 cat >>conftest.$ac_ext <<_ACEOF
17002 /* end confdefs.h. */
17004 #include "confdefs.h"
17005 #include <stdio.h>
17008 main ()
17010 void* p = ctermid_r
17012 return 0;
17014 _ACEOF
17015 rm -f conftest.$ac_objext
17016 if { (ac_try="$ac_compile"
17017 case "(($ac_try" in
17018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17019 *) ac_try_echo=$ac_try;;
17020 esac
17021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17022 (eval "$ac_compile") 2>conftest.er1
17023 ac_status=$?
17024 grep -v '^ *+' conftest.er1 >conftest.err
17025 rm -f conftest.er1
17026 cat conftest.err >&5
17027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17028 (exit $ac_status); } && {
17029 test -z "$ac_c_werror_flag" ||
17030 test ! -s conftest.err
17031 } && test -s conftest.$ac_objext; then
17033 cat >>confdefs.h <<\_ACEOF
17034 #define HAVE_CTERMID_R 1
17035 _ACEOF
17037 { echo "$as_me:$LINENO: result: yes" >&5
17038 echo "${ECHO_T}yes" >&6; }
17039 else
17040 echo "$as_me: failed program was:" >&5
17041 sed 's/^/| /' conftest.$ac_ext >&5
17043 { echo "$as_me:$LINENO: result: no" >&5
17044 echo "${ECHO_T}no" >&6; }
17048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17050 { echo "$as_me:$LINENO: checking for flock" >&5
17051 echo $ECHO_N "checking for flock... $ECHO_C" >&6; }
17052 cat >conftest.$ac_ext <<_ACEOF
17053 /* confdefs.h. */
17054 _ACEOF
17055 cat confdefs.h >>conftest.$ac_ext
17056 cat >>conftest.$ac_ext <<_ACEOF
17057 /* end confdefs.h. */
17059 #include "confdefs.h"
17060 #include <sys/file.h>
17063 main ()
17065 void* p = flock
17067 return 0;
17069 _ACEOF
17070 rm -f conftest.$ac_objext
17071 if { (ac_try="$ac_compile"
17072 case "(($ac_try" in
17073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17074 *) ac_try_echo=$ac_try;;
17075 esac
17076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17077 (eval "$ac_compile") 2>conftest.er1
17078 ac_status=$?
17079 grep -v '^ *+' conftest.er1 >conftest.err
17080 rm -f conftest.er1
17081 cat conftest.err >&5
17082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17083 (exit $ac_status); } && {
17084 test -z "$ac_c_werror_flag" ||
17085 test ! -s conftest.err
17086 } && test -s conftest.$ac_objext; then
17088 cat >>confdefs.h <<\_ACEOF
17089 #define HAVE_FLOCK 1
17090 _ACEOF
17092 { echo "$as_me:$LINENO: result: yes" >&5
17093 echo "${ECHO_T}yes" >&6; }
17094 else
17095 echo "$as_me: failed program was:" >&5
17096 sed 's/^/| /' conftest.$ac_ext >&5
17098 { echo "$as_me:$LINENO: result: no" >&5
17099 echo "${ECHO_T}no" >&6; }
17103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17105 { echo "$as_me:$LINENO: checking for getpagesize" >&5
17106 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; }
17107 cat >conftest.$ac_ext <<_ACEOF
17108 /* confdefs.h. */
17109 _ACEOF
17110 cat confdefs.h >>conftest.$ac_ext
17111 cat >>conftest.$ac_ext <<_ACEOF
17112 /* end confdefs.h. */
17114 #include "confdefs.h"
17115 #include <unistd.h>
17118 main ()
17120 void* p = getpagesize
17122 return 0;
17124 _ACEOF
17125 rm -f conftest.$ac_objext
17126 if { (ac_try="$ac_compile"
17127 case "(($ac_try" in
17128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17129 *) ac_try_echo=$ac_try;;
17130 esac
17131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17132 (eval "$ac_compile") 2>conftest.er1
17133 ac_status=$?
17134 grep -v '^ *+' conftest.er1 >conftest.err
17135 rm -f conftest.er1
17136 cat conftest.err >&5
17137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17138 (exit $ac_status); } && {
17139 test -z "$ac_c_werror_flag" ||
17140 test ! -s conftest.err
17141 } && test -s conftest.$ac_objext; then
17143 cat >>confdefs.h <<\_ACEOF
17144 #define HAVE_GETPAGESIZE 1
17145 _ACEOF
17147 { echo "$as_me:$LINENO: result: yes" >&5
17148 echo "${ECHO_T}yes" >&6; }
17149 else
17150 echo "$as_me: failed program was:" >&5
17151 sed 's/^/| /' conftest.$ac_ext >&5
17153 { echo "$as_me:$LINENO: result: no" >&5
17154 echo "${ECHO_T}no" >&6; }
17158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17160 for ac_prog in true
17162 # Extract the first word of "$ac_prog", so it can be a program name with args.
17163 set dummy $ac_prog; ac_word=$2
17164 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17166 if test "${ac_cv_prog_TRUE+set}" = set; then
17167 echo $ECHO_N "(cached) $ECHO_C" >&6
17168 else
17169 if test -n "$TRUE"; then
17170 ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
17171 else
17172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17173 for as_dir in $PATH
17175 IFS=$as_save_IFS
17176 test -z "$as_dir" && as_dir=.
17177 for ac_exec_ext in '' $ac_executable_extensions; do
17178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17179 ac_cv_prog_TRUE="$ac_prog"
17180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17181 break 2
17183 done
17184 done
17185 IFS=$as_save_IFS
17189 TRUE=$ac_cv_prog_TRUE
17190 if test -n "$TRUE"; then
17191 { echo "$as_me:$LINENO: result: $TRUE" >&5
17192 echo "${ECHO_T}$TRUE" >&6; }
17193 else
17194 { echo "$as_me:$LINENO: result: no" >&5
17195 echo "${ECHO_T}no" >&6; }
17199 test -n "$TRUE" && break
17200 done
17201 test -n "$TRUE" || TRUE="/bin/true"
17204 { echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
17205 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6; }
17206 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
17207 echo $ECHO_N "(cached) $ECHO_C" >&6
17208 else
17209 ac_check_lib_save_LIBS=$LIBS
17210 LIBS="-lc $LIBS"
17211 cat >conftest.$ac_ext <<_ACEOF
17212 /* confdefs.h. */
17213 _ACEOF
17214 cat confdefs.h >>conftest.$ac_ext
17215 cat >>conftest.$ac_ext <<_ACEOF
17216 /* end confdefs.h. */
17218 /* Override any GCC internal prototype to avoid an error.
17219 Use char because int might match the return type of a GCC
17220 builtin and then its argument prototype would still apply. */
17221 #ifdef __cplusplus
17222 extern "C"
17223 #endif
17224 char inet_aton ();
17226 main ()
17228 return inet_aton ();
17230 return 0;
17232 _ACEOF
17233 rm -f conftest.$ac_objext conftest$ac_exeext
17234 if { (ac_try="$ac_link"
17235 case "(($ac_try" in
17236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17237 *) ac_try_echo=$ac_try;;
17238 esac
17239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17240 (eval "$ac_link") 2>conftest.er1
17241 ac_status=$?
17242 grep -v '^ *+' conftest.er1 >conftest.err
17243 rm -f conftest.er1
17244 cat conftest.err >&5
17245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17246 (exit $ac_status); } && {
17247 test -z "$ac_c_werror_flag" ||
17248 test ! -s conftest.err
17249 } && test -s conftest$ac_exeext &&
17250 $as_test_x conftest$ac_exeext; then
17251 ac_cv_lib_c_inet_aton=yes
17252 else
17253 echo "$as_me: failed program was:" >&5
17254 sed 's/^/| /' conftest.$ac_ext >&5
17256 ac_cv_lib_c_inet_aton=no
17259 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17260 conftest$ac_exeext conftest.$ac_ext
17261 LIBS=$ac_check_lib_save_LIBS
17263 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
17264 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6; }
17265 if test $ac_cv_lib_c_inet_aton = yes; then
17266 $ac_cv_prog_TRUE
17267 else
17269 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
17270 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
17271 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
17272 echo $ECHO_N "(cached) $ECHO_C" >&6
17273 else
17274 ac_check_lib_save_LIBS=$LIBS
17275 LIBS="-lresolv $LIBS"
17276 cat >conftest.$ac_ext <<_ACEOF
17277 /* confdefs.h. */
17278 _ACEOF
17279 cat confdefs.h >>conftest.$ac_ext
17280 cat >>conftest.$ac_ext <<_ACEOF
17281 /* end confdefs.h. */
17283 /* Override any GCC internal prototype to avoid an error.
17284 Use char because int might match the return type of a GCC
17285 builtin and then its argument prototype would still apply. */
17286 #ifdef __cplusplus
17287 extern "C"
17288 #endif
17289 char inet_aton ();
17291 main ()
17293 return inet_aton ();
17295 return 0;
17297 _ACEOF
17298 rm -f conftest.$ac_objext conftest$ac_exeext
17299 if { (ac_try="$ac_link"
17300 case "(($ac_try" in
17301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17302 *) ac_try_echo=$ac_try;;
17303 esac
17304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17305 (eval "$ac_link") 2>conftest.er1
17306 ac_status=$?
17307 grep -v '^ *+' conftest.er1 >conftest.err
17308 rm -f conftest.er1
17309 cat conftest.err >&5
17310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17311 (exit $ac_status); } && {
17312 test -z "$ac_c_werror_flag" ||
17313 test ! -s conftest.err
17314 } && test -s conftest$ac_exeext &&
17315 $as_test_x conftest$ac_exeext; then
17316 ac_cv_lib_resolv_inet_aton=yes
17317 else
17318 echo "$as_me: failed program was:" >&5
17319 sed 's/^/| /' conftest.$ac_ext >&5
17321 ac_cv_lib_resolv_inet_aton=no
17324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17325 conftest$ac_exeext conftest.$ac_ext
17326 LIBS=$ac_check_lib_save_LIBS
17328 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
17329 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
17330 if test $ac_cv_lib_resolv_inet_aton = yes; then
17331 cat >>confdefs.h <<_ACEOF
17332 #define HAVE_LIBRESOLV 1
17333 _ACEOF
17335 LIBS="-lresolv $LIBS"
17343 # On Tru64, chflags seems to be present, but calling it will
17344 # exit Python
17345 { echo "$as_me:$LINENO: checking for chflags" >&5
17346 echo $ECHO_N "checking for chflags... $ECHO_C" >&6; }
17347 if test "${ac_cv_have_chflags+set}" = set; then
17348 echo $ECHO_N "(cached) $ECHO_C" >&6
17349 else
17350 if test "$cross_compiling" = yes; then
17351 ac_cv_have_chflags=cross
17352 else
17353 cat >conftest.$ac_ext <<_ACEOF
17354 /* confdefs.h. */
17355 _ACEOF
17356 cat confdefs.h >>conftest.$ac_ext
17357 cat >>conftest.$ac_ext <<_ACEOF
17358 /* end confdefs.h. */
17360 #include <sys/stat.h>
17361 #include <unistd.h>
17362 int main(int argc, char*argv[])
17364 if(chflags(argv[0], 0) != 0)
17365 return 1;
17366 return 0;
17369 _ACEOF
17370 rm -f conftest$ac_exeext
17371 if { (ac_try="$ac_link"
17372 case "(($ac_try" in
17373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17374 *) ac_try_echo=$ac_try;;
17375 esac
17376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17377 (eval "$ac_link") 2>&5
17378 ac_status=$?
17379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17380 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17381 { (case "(($ac_try" in
17382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17383 *) ac_try_echo=$ac_try;;
17384 esac
17385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17386 (eval "$ac_try") 2>&5
17387 ac_status=$?
17388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17389 (exit $ac_status); }; }; then
17390 ac_cv_have_chflags=yes
17391 else
17392 echo "$as_me: program exited with status $ac_status" >&5
17393 echo "$as_me: failed program was:" >&5
17394 sed 's/^/| /' conftest.$ac_ext >&5
17396 ( exit $ac_status )
17397 ac_cv_have_chflags=no
17399 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17405 { echo "$as_me:$LINENO: result: $ac_cv_have_chflags" >&5
17406 echo "${ECHO_T}$ac_cv_have_chflags" >&6; }
17407 if test "$ac_cv_have_chflags" = cross ; then
17408 { echo "$as_me:$LINENO: checking for chflags" >&5
17409 echo $ECHO_N "checking for chflags... $ECHO_C" >&6; }
17410 if test "${ac_cv_func_chflags+set}" = set; then
17411 echo $ECHO_N "(cached) $ECHO_C" >&6
17412 else
17413 cat >conftest.$ac_ext <<_ACEOF
17414 /* confdefs.h. */
17415 _ACEOF
17416 cat confdefs.h >>conftest.$ac_ext
17417 cat >>conftest.$ac_ext <<_ACEOF
17418 /* end confdefs.h. */
17419 /* Define chflags to an innocuous variant, in case <limits.h> declares chflags.
17420 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17421 #define chflags innocuous_chflags
17423 /* System header to define __stub macros and hopefully few prototypes,
17424 which can conflict with char chflags (); below.
17425 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17426 <limits.h> exists even on freestanding compilers. */
17428 #ifdef __STDC__
17429 # include <limits.h>
17430 #else
17431 # include <assert.h>
17432 #endif
17434 #undef chflags
17436 /* Override any GCC internal prototype to avoid an error.
17437 Use char because int might match the return type of a GCC
17438 builtin and then its argument prototype would still apply. */
17439 #ifdef __cplusplus
17440 extern "C"
17441 #endif
17442 char chflags ();
17443 /* The GNU C library defines this for functions which it implements
17444 to always fail with ENOSYS. Some functions are actually named
17445 something starting with __ and the normal name is an alias. */
17446 #if defined __stub_chflags || defined __stub___chflags
17447 choke me
17448 #endif
17451 main ()
17453 return chflags ();
17455 return 0;
17457 _ACEOF
17458 rm -f conftest.$ac_objext conftest$ac_exeext
17459 if { (ac_try="$ac_link"
17460 case "(($ac_try" in
17461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17462 *) ac_try_echo=$ac_try;;
17463 esac
17464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17465 (eval "$ac_link") 2>conftest.er1
17466 ac_status=$?
17467 grep -v '^ *+' conftest.er1 >conftest.err
17468 rm -f conftest.er1
17469 cat conftest.err >&5
17470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17471 (exit $ac_status); } && {
17472 test -z "$ac_c_werror_flag" ||
17473 test ! -s conftest.err
17474 } && test -s conftest$ac_exeext &&
17475 $as_test_x conftest$ac_exeext; then
17476 ac_cv_func_chflags=yes
17477 else
17478 echo "$as_me: failed program was:" >&5
17479 sed 's/^/| /' conftest.$ac_ext >&5
17481 ac_cv_func_chflags=no
17484 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17485 conftest$ac_exeext conftest.$ac_ext
17487 { echo "$as_me:$LINENO: result: $ac_cv_func_chflags" >&5
17488 echo "${ECHO_T}$ac_cv_func_chflags" >&6; }
17489 if test $ac_cv_func_chflags = yes; then
17490 ac_cv_have_chflags="yes"
17491 else
17492 ac_cv_have_chflags="no"
17496 if test "$ac_cv_have_chflags" = yes ; then
17498 cat >>confdefs.h <<\_ACEOF
17499 #define HAVE_CHFLAGS 1
17500 _ACEOF
17504 { echo "$as_me:$LINENO: checking for lchflags" >&5
17505 echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; }
17506 if test "${ac_cv_have_lchflags+set}" = set; then
17507 echo $ECHO_N "(cached) $ECHO_C" >&6
17508 else
17509 if test "$cross_compiling" = yes; then
17510 ac_cv_have_lchflags=cross
17511 else
17512 cat >conftest.$ac_ext <<_ACEOF
17513 /* confdefs.h. */
17514 _ACEOF
17515 cat confdefs.h >>conftest.$ac_ext
17516 cat >>conftest.$ac_ext <<_ACEOF
17517 /* end confdefs.h. */
17519 #include <sys/stat.h>
17520 #include <unistd.h>
17521 int main(int argc, char*argv[])
17523 if(lchflags(argv[0], 0) != 0)
17524 return 1;
17525 return 0;
17528 _ACEOF
17529 rm -f conftest$ac_exeext
17530 if { (ac_try="$ac_link"
17531 case "(($ac_try" in
17532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17533 *) ac_try_echo=$ac_try;;
17534 esac
17535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17536 (eval "$ac_link") 2>&5
17537 ac_status=$?
17538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17539 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17540 { (case "(($ac_try" in
17541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17542 *) ac_try_echo=$ac_try;;
17543 esac
17544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17545 (eval "$ac_try") 2>&5
17546 ac_status=$?
17547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17548 (exit $ac_status); }; }; then
17549 ac_cv_have_lchflags=yes
17550 else
17551 echo "$as_me: program exited with status $ac_status" >&5
17552 echo "$as_me: failed program was:" >&5
17553 sed 's/^/| /' conftest.$ac_ext >&5
17555 ( exit $ac_status )
17556 ac_cv_have_lchflags=no
17558 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17564 { echo "$as_me:$LINENO: result: $ac_cv_have_lchflags" >&5
17565 echo "${ECHO_T}$ac_cv_have_lchflags" >&6; }
17566 if test "$ac_cv_have_lchflags" = cross ; then
17567 { echo "$as_me:$LINENO: checking for lchflags" >&5
17568 echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; }
17569 if test "${ac_cv_func_lchflags+set}" = set; then
17570 echo $ECHO_N "(cached) $ECHO_C" >&6
17571 else
17572 cat >conftest.$ac_ext <<_ACEOF
17573 /* confdefs.h. */
17574 _ACEOF
17575 cat confdefs.h >>conftest.$ac_ext
17576 cat >>conftest.$ac_ext <<_ACEOF
17577 /* end confdefs.h. */
17578 /* Define lchflags to an innocuous variant, in case <limits.h> declares lchflags.
17579 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17580 #define lchflags innocuous_lchflags
17582 /* System header to define __stub macros and hopefully few prototypes,
17583 which can conflict with char lchflags (); below.
17584 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17585 <limits.h> exists even on freestanding compilers. */
17587 #ifdef __STDC__
17588 # include <limits.h>
17589 #else
17590 # include <assert.h>
17591 #endif
17593 #undef lchflags
17595 /* Override any GCC internal prototype to avoid an error.
17596 Use char because int might match the return type of a GCC
17597 builtin and then its argument prototype would still apply. */
17598 #ifdef __cplusplus
17599 extern "C"
17600 #endif
17601 char lchflags ();
17602 /* The GNU C library defines this for functions which it implements
17603 to always fail with ENOSYS. Some functions are actually named
17604 something starting with __ and the normal name is an alias. */
17605 #if defined __stub_lchflags || defined __stub___lchflags
17606 choke me
17607 #endif
17610 main ()
17612 return lchflags ();
17614 return 0;
17616 _ACEOF
17617 rm -f conftest.$ac_objext conftest$ac_exeext
17618 if { (ac_try="$ac_link"
17619 case "(($ac_try" in
17620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17621 *) ac_try_echo=$ac_try;;
17622 esac
17623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17624 (eval "$ac_link") 2>conftest.er1
17625 ac_status=$?
17626 grep -v '^ *+' conftest.er1 >conftest.err
17627 rm -f conftest.er1
17628 cat conftest.err >&5
17629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17630 (exit $ac_status); } && {
17631 test -z "$ac_c_werror_flag" ||
17632 test ! -s conftest.err
17633 } && test -s conftest$ac_exeext &&
17634 $as_test_x conftest$ac_exeext; then
17635 ac_cv_func_lchflags=yes
17636 else
17637 echo "$as_me: failed program was:" >&5
17638 sed 's/^/| /' conftest.$ac_ext >&5
17640 ac_cv_func_lchflags=no
17643 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17644 conftest$ac_exeext conftest.$ac_ext
17646 { echo "$as_me:$LINENO: result: $ac_cv_func_lchflags" >&5
17647 echo "${ECHO_T}$ac_cv_func_lchflags" >&6; }
17648 if test $ac_cv_func_lchflags = yes; then
17649 ac_cv_have_lchflags="yes"
17650 else
17651 ac_cv_have_lchflags="no"
17655 if test "$ac_cv_have_lchflags" = yes ; then
17657 cat >>confdefs.h <<\_ACEOF
17658 #define HAVE_LCHFLAGS 1
17659 _ACEOF
17663 case $ac_sys_system/$ac_sys_release in
17664 Darwin/*)
17665 _CUR_CFLAGS="${CFLAGS}"
17666 _CUR_LDFLAGS="${LDFLAGS}"
17667 CFLAGS="${CFLAGS} -Wl,-search_paths_first"
17668 LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
17670 esac
17672 { echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5
17673 echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6; }
17674 if test "${ac_cv_lib_z_inflateCopy+set}" = set; then
17675 echo $ECHO_N "(cached) $ECHO_C" >&6
17676 else
17677 ac_check_lib_save_LIBS=$LIBS
17678 LIBS="-lz $LIBS"
17679 cat >conftest.$ac_ext <<_ACEOF
17680 /* confdefs.h. */
17681 _ACEOF
17682 cat confdefs.h >>conftest.$ac_ext
17683 cat >>conftest.$ac_ext <<_ACEOF
17684 /* end confdefs.h. */
17686 /* Override any GCC internal prototype to avoid an error.
17687 Use char because int might match the return type of a GCC
17688 builtin and then its argument prototype would still apply. */
17689 #ifdef __cplusplus
17690 extern "C"
17691 #endif
17692 char inflateCopy ();
17694 main ()
17696 return inflateCopy ();
17698 return 0;
17700 _ACEOF
17701 rm -f conftest.$ac_objext conftest$ac_exeext
17702 if { (ac_try="$ac_link"
17703 case "(($ac_try" in
17704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17705 *) ac_try_echo=$ac_try;;
17706 esac
17707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17708 (eval "$ac_link") 2>conftest.er1
17709 ac_status=$?
17710 grep -v '^ *+' conftest.er1 >conftest.err
17711 rm -f conftest.er1
17712 cat conftest.err >&5
17713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714 (exit $ac_status); } && {
17715 test -z "$ac_c_werror_flag" ||
17716 test ! -s conftest.err
17717 } && test -s conftest$ac_exeext &&
17718 $as_test_x conftest$ac_exeext; then
17719 ac_cv_lib_z_inflateCopy=yes
17720 else
17721 echo "$as_me: failed program was:" >&5
17722 sed 's/^/| /' conftest.$ac_ext >&5
17724 ac_cv_lib_z_inflateCopy=no
17727 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17728 conftest$ac_exeext conftest.$ac_ext
17729 LIBS=$ac_check_lib_save_LIBS
17731 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5
17732 echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6; }
17733 if test $ac_cv_lib_z_inflateCopy = yes; then
17735 cat >>confdefs.h <<\_ACEOF
17736 #define HAVE_ZLIB_COPY 1
17737 _ACEOF
17742 case $ac_sys_system/$ac_sys_release in
17743 Darwin/*)
17744 CFLAGS="${_CUR_CFLAGS}"
17745 LDFLAGS="${_CUR_LDFLAGS}"
17747 esac
17749 { echo "$as_me:$LINENO: checking for hstrerror" >&5
17750 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6; }
17751 cat >conftest.$ac_ext <<_ACEOF
17752 /* confdefs.h. */
17753 _ACEOF
17754 cat confdefs.h >>conftest.$ac_ext
17755 cat >>conftest.$ac_ext <<_ACEOF
17756 /* end confdefs.h. */
17758 #include "confdefs.h"
17759 #include <netdb.h>
17762 main ()
17764 void* p = hstrerror; hstrerror(0)
17766 return 0;
17768 _ACEOF
17769 rm -f conftest.$ac_objext conftest$ac_exeext
17770 if { (ac_try="$ac_link"
17771 case "(($ac_try" in
17772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17773 *) ac_try_echo=$ac_try;;
17774 esac
17775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17776 (eval "$ac_link") 2>conftest.er1
17777 ac_status=$?
17778 grep -v '^ *+' conftest.er1 >conftest.err
17779 rm -f conftest.er1
17780 cat conftest.err >&5
17781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17782 (exit $ac_status); } && {
17783 test -z "$ac_c_werror_flag" ||
17784 test ! -s conftest.err
17785 } && test -s conftest$ac_exeext &&
17786 $as_test_x conftest$ac_exeext; then
17788 cat >>confdefs.h <<\_ACEOF
17789 #define HAVE_HSTRERROR 1
17790 _ACEOF
17792 { echo "$as_me:$LINENO: result: yes" >&5
17793 echo "${ECHO_T}yes" >&6; }
17794 else
17795 echo "$as_me: failed program was:" >&5
17796 sed 's/^/| /' conftest.$ac_ext >&5
17798 { echo "$as_me:$LINENO: result: no" >&5
17799 echo "${ECHO_T}no" >&6; }
17803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17804 conftest$ac_exeext conftest.$ac_ext
17806 { echo "$as_me:$LINENO: checking for inet_aton" >&5
17807 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
17808 cat >conftest.$ac_ext <<_ACEOF
17809 /* confdefs.h. */
17810 _ACEOF
17811 cat confdefs.h >>conftest.$ac_ext
17812 cat >>conftest.$ac_ext <<_ACEOF
17813 /* end confdefs.h. */
17815 #include "confdefs.h"
17816 #include <sys/types.h>
17817 #include <sys/socket.h>
17818 #include <netinet/in.h>
17819 #include <arpa/inet.h>
17822 main ()
17824 void* p = inet_aton;inet_aton(0,0)
17826 return 0;
17828 _ACEOF
17829 rm -f conftest.$ac_objext conftest$ac_exeext
17830 if { (ac_try="$ac_link"
17831 case "(($ac_try" in
17832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17833 *) ac_try_echo=$ac_try;;
17834 esac
17835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17836 (eval "$ac_link") 2>conftest.er1
17837 ac_status=$?
17838 grep -v '^ *+' conftest.er1 >conftest.err
17839 rm -f conftest.er1
17840 cat conftest.err >&5
17841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17842 (exit $ac_status); } && {
17843 test -z "$ac_c_werror_flag" ||
17844 test ! -s conftest.err
17845 } && test -s conftest$ac_exeext &&
17846 $as_test_x conftest$ac_exeext; then
17848 cat >>confdefs.h <<\_ACEOF
17849 #define HAVE_INET_ATON 1
17850 _ACEOF
17852 { echo "$as_me:$LINENO: result: yes" >&5
17853 echo "${ECHO_T}yes" >&6; }
17854 else
17855 echo "$as_me: failed program was:" >&5
17856 sed 's/^/| /' conftest.$ac_ext >&5
17858 { echo "$as_me:$LINENO: result: no" >&5
17859 echo "${ECHO_T}no" >&6; }
17863 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17864 conftest$ac_exeext conftest.$ac_ext
17866 { echo "$as_me:$LINENO: checking for inet_pton" >&5
17867 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
17868 cat >conftest.$ac_ext <<_ACEOF
17869 /* confdefs.h. */
17870 _ACEOF
17871 cat confdefs.h >>conftest.$ac_ext
17872 cat >>conftest.$ac_ext <<_ACEOF
17873 /* end confdefs.h. */
17875 #include "confdefs.h"
17876 #include <sys/types.h>
17877 #include <sys/socket.h>
17878 #include <netinet/in.h>
17879 #include <arpa/inet.h>
17882 main ()
17884 void* p = inet_pton
17886 return 0;
17888 _ACEOF
17889 rm -f conftest.$ac_objext
17890 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
17907 cat >>confdefs.h <<\_ACEOF
17908 #define HAVE_INET_PTON 1
17909 _ACEOF
17911 { echo "$as_me:$LINENO: result: yes" >&5
17912 echo "${ECHO_T}yes" >&6; }
17913 else
17914 echo "$as_me: failed program was:" >&5
17915 sed 's/^/| /' conftest.$ac_ext >&5
17917 { echo "$as_me:$LINENO: result: no" >&5
17918 echo "${ECHO_T}no" >&6; }
17922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17924 # On some systems, setgroups is in unistd.h, on others, in grp.h
17925 { echo "$as_me:$LINENO: checking for setgroups" >&5
17926 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6; }
17927 cat >conftest.$ac_ext <<_ACEOF
17928 /* confdefs.h. */
17929 _ACEOF
17930 cat confdefs.h >>conftest.$ac_ext
17931 cat >>conftest.$ac_ext <<_ACEOF
17932 /* end confdefs.h. */
17934 #include "confdefs.h"
17935 #include <unistd.h>
17936 #ifdef HAVE_GRP_H
17937 #include <grp.h>
17938 #endif
17941 main ()
17943 void* p = setgroups
17945 return 0;
17947 _ACEOF
17948 rm -f conftest.$ac_objext
17949 if { (ac_try="$ac_compile"
17950 case "(($ac_try" in
17951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17952 *) ac_try_echo=$ac_try;;
17953 esac
17954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17955 (eval "$ac_compile") 2>conftest.er1
17956 ac_status=$?
17957 grep -v '^ *+' conftest.er1 >conftest.err
17958 rm -f conftest.er1
17959 cat conftest.err >&5
17960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17961 (exit $ac_status); } && {
17962 test -z "$ac_c_werror_flag" ||
17963 test ! -s conftest.err
17964 } && test -s conftest.$ac_objext; then
17966 cat >>confdefs.h <<\_ACEOF
17967 #define HAVE_SETGROUPS 1
17968 _ACEOF
17970 { echo "$as_me:$LINENO: result: yes" >&5
17971 echo "${ECHO_T}yes" >&6; }
17972 else
17973 echo "$as_me: failed program was:" >&5
17974 sed 's/^/| /' conftest.$ac_ext >&5
17976 { echo "$as_me:$LINENO: result: no" >&5
17977 echo "${ECHO_T}no" >&6; }
17981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17983 # check for openpty and forkpty
17986 for ac_func in openpty
17988 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17989 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17990 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17991 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17992 echo $ECHO_N "(cached) $ECHO_C" >&6
17993 else
17994 cat >conftest.$ac_ext <<_ACEOF
17995 /* confdefs.h. */
17996 _ACEOF
17997 cat confdefs.h >>conftest.$ac_ext
17998 cat >>conftest.$ac_ext <<_ACEOF
17999 /* end confdefs.h. */
18000 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18001 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18002 #define $ac_func innocuous_$ac_func
18004 /* System header to define __stub macros and hopefully few prototypes,
18005 which can conflict with char $ac_func (); below.
18006 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18007 <limits.h> exists even on freestanding compilers. */
18009 #ifdef __STDC__
18010 # include <limits.h>
18011 #else
18012 # include <assert.h>
18013 #endif
18015 #undef $ac_func
18017 /* Override any GCC internal prototype to avoid an error.
18018 Use char because int might match the return type of a GCC
18019 builtin and then its argument prototype would still apply. */
18020 #ifdef __cplusplus
18021 extern "C"
18022 #endif
18023 char $ac_func ();
18024 /* The GNU C library defines this for functions which it implements
18025 to always fail with ENOSYS. Some functions are actually named
18026 something starting with __ and the normal name is an alias. */
18027 #if defined __stub_$ac_func || defined __stub___$ac_func
18028 choke me
18029 #endif
18032 main ()
18034 return $ac_func ();
18036 return 0;
18038 _ACEOF
18039 rm -f conftest.$ac_objext conftest$ac_exeext
18040 if { (ac_try="$ac_link"
18041 case "(($ac_try" in
18042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18043 *) ac_try_echo=$ac_try;;
18044 esac
18045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18046 (eval "$ac_link") 2>conftest.er1
18047 ac_status=$?
18048 grep -v '^ *+' conftest.er1 >conftest.err
18049 rm -f conftest.er1
18050 cat conftest.err >&5
18051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18052 (exit $ac_status); } && {
18053 test -z "$ac_c_werror_flag" ||
18054 test ! -s conftest.err
18055 } && test -s conftest$ac_exeext &&
18056 $as_test_x conftest$ac_exeext; then
18057 eval "$as_ac_var=yes"
18058 else
18059 echo "$as_me: failed program was:" >&5
18060 sed 's/^/| /' conftest.$ac_ext >&5
18062 eval "$as_ac_var=no"
18065 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18066 conftest$ac_exeext conftest.$ac_ext
18068 ac_res=`eval echo '${'$as_ac_var'}'`
18069 { echo "$as_me:$LINENO: result: $ac_res" >&5
18070 echo "${ECHO_T}$ac_res" >&6; }
18071 if test `eval echo '${'$as_ac_var'}'` = yes; then
18072 cat >>confdefs.h <<_ACEOF
18073 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18074 _ACEOF
18076 else
18077 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
18078 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
18079 if test "${ac_cv_lib_util_openpty+set}" = set; then
18080 echo $ECHO_N "(cached) $ECHO_C" >&6
18081 else
18082 ac_check_lib_save_LIBS=$LIBS
18083 LIBS="-lutil $LIBS"
18084 cat >conftest.$ac_ext <<_ACEOF
18085 /* confdefs.h. */
18086 _ACEOF
18087 cat confdefs.h >>conftest.$ac_ext
18088 cat >>conftest.$ac_ext <<_ACEOF
18089 /* end confdefs.h. */
18091 /* Override any GCC internal prototype to avoid an error.
18092 Use char because int might match the return type of a GCC
18093 builtin and then its argument prototype would still apply. */
18094 #ifdef __cplusplus
18095 extern "C"
18096 #endif
18097 char openpty ();
18099 main ()
18101 return openpty ();
18103 return 0;
18105 _ACEOF
18106 rm -f conftest.$ac_objext conftest$ac_exeext
18107 if { (ac_try="$ac_link"
18108 case "(($ac_try" in
18109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18110 *) ac_try_echo=$ac_try;;
18111 esac
18112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18113 (eval "$ac_link") 2>conftest.er1
18114 ac_status=$?
18115 grep -v '^ *+' conftest.er1 >conftest.err
18116 rm -f conftest.er1
18117 cat conftest.err >&5
18118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18119 (exit $ac_status); } && {
18120 test -z "$ac_c_werror_flag" ||
18121 test ! -s conftest.err
18122 } && test -s conftest$ac_exeext &&
18123 $as_test_x conftest$ac_exeext; then
18124 ac_cv_lib_util_openpty=yes
18125 else
18126 echo "$as_me: failed program was:" >&5
18127 sed 's/^/| /' conftest.$ac_ext >&5
18129 ac_cv_lib_util_openpty=no
18132 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18133 conftest$ac_exeext conftest.$ac_ext
18134 LIBS=$ac_check_lib_save_LIBS
18136 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
18137 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
18138 if test $ac_cv_lib_util_openpty = yes; then
18139 cat >>confdefs.h <<\_ACEOF
18140 #define HAVE_OPENPTY 1
18141 _ACEOF
18142 LIBS="$LIBS -lutil"
18143 else
18144 { echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
18145 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6; }
18146 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
18147 echo $ECHO_N "(cached) $ECHO_C" >&6
18148 else
18149 ac_check_lib_save_LIBS=$LIBS
18150 LIBS="-lbsd $LIBS"
18151 cat >conftest.$ac_ext <<_ACEOF
18152 /* confdefs.h. */
18153 _ACEOF
18154 cat confdefs.h >>conftest.$ac_ext
18155 cat >>conftest.$ac_ext <<_ACEOF
18156 /* end confdefs.h. */
18158 /* Override any GCC internal prototype to avoid an error.
18159 Use char because int might match the return type of a GCC
18160 builtin and then its argument prototype would still apply. */
18161 #ifdef __cplusplus
18162 extern "C"
18163 #endif
18164 char openpty ();
18166 main ()
18168 return openpty ();
18170 return 0;
18172 _ACEOF
18173 rm -f conftest.$ac_objext conftest$ac_exeext
18174 if { (ac_try="$ac_link"
18175 case "(($ac_try" in
18176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18177 *) ac_try_echo=$ac_try;;
18178 esac
18179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18180 (eval "$ac_link") 2>conftest.er1
18181 ac_status=$?
18182 grep -v '^ *+' conftest.er1 >conftest.err
18183 rm -f conftest.er1
18184 cat conftest.err >&5
18185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18186 (exit $ac_status); } && {
18187 test -z "$ac_c_werror_flag" ||
18188 test ! -s conftest.err
18189 } && test -s conftest$ac_exeext &&
18190 $as_test_x conftest$ac_exeext; then
18191 ac_cv_lib_bsd_openpty=yes
18192 else
18193 echo "$as_me: failed program was:" >&5
18194 sed 's/^/| /' conftest.$ac_ext >&5
18196 ac_cv_lib_bsd_openpty=no
18199 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18200 conftest$ac_exeext conftest.$ac_ext
18201 LIBS=$ac_check_lib_save_LIBS
18203 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
18204 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6; }
18205 if test $ac_cv_lib_bsd_openpty = yes; then
18206 cat >>confdefs.h <<\_ACEOF
18207 #define HAVE_OPENPTY 1
18208 _ACEOF
18209 LIBS="$LIBS -lbsd"
18217 done
18220 for ac_func in forkpty
18222 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18223 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18224 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18225 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18226 echo $ECHO_N "(cached) $ECHO_C" >&6
18227 else
18228 cat >conftest.$ac_ext <<_ACEOF
18229 /* confdefs.h. */
18230 _ACEOF
18231 cat confdefs.h >>conftest.$ac_ext
18232 cat >>conftest.$ac_ext <<_ACEOF
18233 /* end confdefs.h. */
18234 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18235 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18236 #define $ac_func innocuous_$ac_func
18238 /* System header to define __stub macros and hopefully few prototypes,
18239 which can conflict with char $ac_func (); below.
18240 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18241 <limits.h> exists even on freestanding compilers. */
18243 #ifdef __STDC__
18244 # include <limits.h>
18245 #else
18246 # include <assert.h>
18247 #endif
18249 #undef $ac_func
18251 /* Override any GCC internal prototype to avoid an error.
18252 Use char because int might match the return type of a GCC
18253 builtin and then its argument prototype would still apply. */
18254 #ifdef __cplusplus
18255 extern "C"
18256 #endif
18257 char $ac_func ();
18258 /* The GNU C library defines this for functions which it implements
18259 to always fail with ENOSYS. Some functions are actually named
18260 something starting with __ and the normal name is an alias. */
18261 #if defined __stub_$ac_func || defined __stub___$ac_func
18262 choke me
18263 #endif
18266 main ()
18268 return $ac_func ();
18270 return 0;
18272 _ACEOF
18273 rm -f conftest.$ac_objext conftest$ac_exeext
18274 if { (ac_try="$ac_link"
18275 case "(($ac_try" in
18276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18277 *) ac_try_echo=$ac_try;;
18278 esac
18279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18280 (eval "$ac_link") 2>conftest.er1
18281 ac_status=$?
18282 grep -v '^ *+' conftest.er1 >conftest.err
18283 rm -f conftest.er1
18284 cat conftest.err >&5
18285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18286 (exit $ac_status); } && {
18287 test -z "$ac_c_werror_flag" ||
18288 test ! -s conftest.err
18289 } && test -s conftest$ac_exeext &&
18290 $as_test_x conftest$ac_exeext; then
18291 eval "$as_ac_var=yes"
18292 else
18293 echo "$as_me: failed program was:" >&5
18294 sed 's/^/| /' conftest.$ac_ext >&5
18296 eval "$as_ac_var=no"
18299 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18300 conftest$ac_exeext conftest.$ac_ext
18302 ac_res=`eval echo '${'$as_ac_var'}'`
18303 { echo "$as_me:$LINENO: result: $ac_res" >&5
18304 echo "${ECHO_T}$ac_res" >&6; }
18305 if test `eval echo '${'$as_ac_var'}'` = yes; then
18306 cat >>confdefs.h <<_ACEOF
18307 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18308 _ACEOF
18310 else
18311 { echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
18312 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6; }
18313 if test "${ac_cv_lib_util_forkpty+set}" = set; then
18314 echo $ECHO_N "(cached) $ECHO_C" >&6
18315 else
18316 ac_check_lib_save_LIBS=$LIBS
18317 LIBS="-lutil $LIBS"
18318 cat >conftest.$ac_ext <<_ACEOF
18319 /* confdefs.h. */
18320 _ACEOF
18321 cat confdefs.h >>conftest.$ac_ext
18322 cat >>conftest.$ac_ext <<_ACEOF
18323 /* end confdefs.h. */
18325 /* Override any GCC internal prototype to avoid an error.
18326 Use char because int might match the return type of a GCC
18327 builtin and then its argument prototype would still apply. */
18328 #ifdef __cplusplus
18329 extern "C"
18330 #endif
18331 char forkpty ();
18333 main ()
18335 return forkpty ();
18337 return 0;
18339 _ACEOF
18340 rm -f conftest.$ac_objext conftest$ac_exeext
18341 if { (ac_try="$ac_link"
18342 case "(($ac_try" in
18343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18344 *) ac_try_echo=$ac_try;;
18345 esac
18346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18347 (eval "$ac_link") 2>conftest.er1
18348 ac_status=$?
18349 grep -v '^ *+' conftest.er1 >conftest.err
18350 rm -f conftest.er1
18351 cat conftest.err >&5
18352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18353 (exit $ac_status); } && {
18354 test -z "$ac_c_werror_flag" ||
18355 test ! -s conftest.err
18356 } && test -s conftest$ac_exeext &&
18357 $as_test_x conftest$ac_exeext; then
18358 ac_cv_lib_util_forkpty=yes
18359 else
18360 echo "$as_me: failed program was:" >&5
18361 sed 's/^/| /' conftest.$ac_ext >&5
18363 ac_cv_lib_util_forkpty=no
18366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18367 conftest$ac_exeext conftest.$ac_ext
18368 LIBS=$ac_check_lib_save_LIBS
18370 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
18371 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6; }
18372 if test $ac_cv_lib_util_forkpty = yes; then
18373 cat >>confdefs.h <<\_ACEOF
18374 #define HAVE_FORKPTY 1
18375 _ACEOF
18376 LIBS="$LIBS -lutil"
18377 else
18378 { echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
18379 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6; }
18380 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
18381 echo $ECHO_N "(cached) $ECHO_C" >&6
18382 else
18383 ac_check_lib_save_LIBS=$LIBS
18384 LIBS="-lbsd $LIBS"
18385 cat >conftest.$ac_ext <<_ACEOF
18386 /* confdefs.h. */
18387 _ACEOF
18388 cat confdefs.h >>conftest.$ac_ext
18389 cat >>conftest.$ac_ext <<_ACEOF
18390 /* end confdefs.h. */
18392 /* Override any GCC internal prototype to avoid an error.
18393 Use char because int might match the return type of a GCC
18394 builtin and then its argument prototype would still apply. */
18395 #ifdef __cplusplus
18396 extern "C"
18397 #endif
18398 char forkpty ();
18400 main ()
18402 return forkpty ();
18404 return 0;
18406 _ACEOF
18407 rm -f conftest.$ac_objext conftest$ac_exeext
18408 if { (ac_try="$ac_link"
18409 case "(($ac_try" in
18410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18411 *) ac_try_echo=$ac_try;;
18412 esac
18413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18414 (eval "$ac_link") 2>conftest.er1
18415 ac_status=$?
18416 grep -v '^ *+' conftest.er1 >conftest.err
18417 rm -f conftest.er1
18418 cat conftest.err >&5
18419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18420 (exit $ac_status); } && {
18421 test -z "$ac_c_werror_flag" ||
18422 test ! -s conftest.err
18423 } && test -s conftest$ac_exeext &&
18424 $as_test_x conftest$ac_exeext; then
18425 ac_cv_lib_bsd_forkpty=yes
18426 else
18427 echo "$as_me: failed program was:" >&5
18428 sed 's/^/| /' conftest.$ac_ext >&5
18430 ac_cv_lib_bsd_forkpty=no
18433 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18434 conftest$ac_exeext conftest.$ac_ext
18435 LIBS=$ac_check_lib_save_LIBS
18437 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
18438 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6; }
18439 if test $ac_cv_lib_bsd_forkpty = yes; then
18440 cat >>confdefs.h <<\_ACEOF
18441 #define HAVE_FORKPTY 1
18442 _ACEOF
18443 LIBS="$LIBS -lbsd"
18451 done
18454 # Stuff for expat.
18456 for ac_func in memmove
18458 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18459 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18460 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18461 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18462 echo $ECHO_N "(cached) $ECHO_C" >&6
18463 else
18464 cat >conftest.$ac_ext <<_ACEOF
18465 /* confdefs.h. */
18466 _ACEOF
18467 cat confdefs.h >>conftest.$ac_ext
18468 cat >>conftest.$ac_ext <<_ACEOF
18469 /* end confdefs.h. */
18470 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18471 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18472 #define $ac_func innocuous_$ac_func
18474 /* System header to define __stub macros and hopefully few prototypes,
18475 which can conflict with char $ac_func (); below.
18476 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18477 <limits.h> exists even on freestanding compilers. */
18479 #ifdef __STDC__
18480 # include <limits.h>
18481 #else
18482 # include <assert.h>
18483 #endif
18485 #undef $ac_func
18487 /* Override any GCC internal prototype to avoid an error.
18488 Use char because int might match the return type of a GCC
18489 builtin and then its argument prototype would still apply. */
18490 #ifdef __cplusplus
18491 extern "C"
18492 #endif
18493 char $ac_func ();
18494 /* The GNU C library defines this for functions which it implements
18495 to always fail with ENOSYS. Some functions are actually named
18496 something starting with __ and the normal name is an alias. */
18497 #if defined __stub_$ac_func || defined __stub___$ac_func
18498 choke me
18499 #endif
18502 main ()
18504 return $ac_func ();
18506 return 0;
18508 _ACEOF
18509 rm -f conftest.$ac_objext conftest$ac_exeext
18510 if { (ac_try="$ac_link"
18511 case "(($ac_try" in
18512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18513 *) ac_try_echo=$ac_try;;
18514 esac
18515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18516 (eval "$ac_link") 2>conftest.er1
18517 ac_status=$?
18518 grep -v '^ *+' conftest.er1 >conftest.err
18519 rm -f conftest.er1
18520 cat conftest.err >&5
18521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18522 (exit $ac_status); } && {
18523 test -z "$ac_c_werror_flag" ||
18524 test ! -s conftest.err
18525 } && test -s conftest$ac_exeext &&
18526 $as_test_x conftest$ac_exeext; then
18527 eval "$as_ac_var=yes"
18528 else
18529 echo "$as_me: failed program was:" >&5
18530 sed 's/^/| /' conftest.$ac_ext >&5
18532 eval "$as_ac_var=no"
18535 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18536 conftest$ac_exeext conftest.$ac_ext
18538 ac_res=`eval echo '${'$as_ac_var'}'`
18539 { echo "$as_me:$LINENO: result: $ac_res" >&5
18540 echo "${ECHO_T}$ac_res" >&6; }
18541 if test `eval echo '${'$as_ac_var'}'` = yes; then
18542 cat >>confdefs.h <<_ACEOF
18543 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18544 _ACEOF
18547 done
18550 # check for long file support functions
18557 for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
18559 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18560 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18561 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18562 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18563 echo $ECHO_N "(cached) $ECHO_C" >&6
18564 else
18565 cat >conftest.$ac_ext <<_ACEOF
18566 /* confdefs.h. */
18567 _ACEOF
18568 cat confdefs.h >>conftest.$ac_ext
18569 cat >>conftest.$ac_ext <<_ACEOF
18570 /* end confdefs.h. */
18571 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18572 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18573 #define $ac_func innocuous_$ac_func
18575 /* System header to define __stub macros and hopefully few prototypes,
18576 which can conflict with char $ac_func (); below.
18577 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18578 <limits.h> exists even on freestanding compilers. */
18580 #ifdef __STDC__
18581 # include <limits.h>
18582 #else
18583 # include <assert.h>
18584 #endif
18586 #undef $ac_func
18588 /* Override any GCC internal prototype to avoid an error.
18589 Use char because int might match the return type of a GCC
18590 builtin and then its argument prototype would still apply. */
18591 #ifdef __cplusplus
18592 extern "C"
18593 #endif
18594 char $ac_func ();
18595 /* The GNU C library defines this for functions which it implements
18596 to always fail with ENOSYS. Some functions are actually named
18597 something starting with __ and the normal name is an alias. */
18598 #if defined __stub_$ac_func || defined __stub___$ac_func
18599 choke me
18600 #endif
18603 main ()
18605 return $ac_func ();
18607 return 0;
18609 _ACEOF
18610 rm -f conftest.$ac_objext conftest$ac_exeext
18611 if { (ac_try="$ac_link"
18612 case "(($ac_try" in
18613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18614 *) ac_try_echo=$ac_try;;
18615 esac
18616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18617 (eval "$ac_link") 2>conftest.er1
18618 ac_status=$?
18619 grep -v '^ *+' conftest.er1 >conftest.err
18620 rm -f conftest.er1
18621 cat conftest.err >&5
18622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18623 (exit $ac_status); } && {
18624 test -z "$ac_c_werror_flag" ||
18625 test ! -s conftest.err
18626 } && test -s conftest$ac_exeext &&
18627 $as_test_x conftest$ac_exeext; then
18628 eval "$as_ac_var=yes"
18629 else
18630 echo "$as_me: failed program was:" >&5
18631 sed 's/^/| /' conftest.$ac_ext >&5
18633 eval "$as_ac_var=no"
18636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18637 conftest$ac_exeext conftest.$ac_ext
18639 ac_res=`eval echo '${'$as_ac_var'}'`
18640 { echo "$as_me:$LINENO: result: $ac_res" >&5
18641 echo "${ECHO_T}$ac_res" >&6; }
18642 if test `eval echo '${'$as_ac_var'}'` = yes; then
18643 cat >>confdefs.h <<_ACEOF
18644 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18645 _ACEOF
18648 done
18654 for ac_func in dup2 getcwd strdup
18656 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18657 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18658 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18659 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18660 echo $ECHO_N "(cached) $ECHO_C" >&6
18661 else
18662 cat >conftest.$ac_ext <<_ACEOF
18663 /* confdefs.h. */
18664 _ACEOF
18665 cat confdefs.h >>conftest.$ac_ext
18666 cat >>conftest.$ac_ext <<_ACEOF
18667 /* end confdefs.h. */
18668 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18669 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18670 #define $ac_func innocuous_$ac_func
18672 /* System header to define __stub macros and hopefully few prototypes,
18673 which can conflict with char $ac_func (); below.
18674 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18675 <limits.h> exists even on freestanding compilers. */
18677 #ifdef __STDC__
18678 # include <limits.h>
18679 #else
18680 # include <assert.h>
18681 #endif
18683 #undef $ac_func
18685 /* Override any GCC internal prototype to avoid an error.
18686 Use char because int might match the return type of a GCC
18687 builtin and then its argument prototype would still apply. */
18688 #ifdef __cplusplus
18689 extern "C"
18690 #endif
18691 char $ac_func ();
18692 /* The GNU C library defines this for functions which it implements
18693 to always fail with ENOSYS. Some functions are actually named
18694 something starting with __ and the normal name is an alias. */
18695 #if defined __stub_$ac_func || defined __stub___$ac_func
18696 choke me
18697 #endif
18700 main ()
18702 return $ac_func ();
18704 return 0;
18706 _ACEOF
18707 rm -f conftest.$ac_objext conftest$ac_exeext
18708 if { (ac_try="$ac_link"
18709 case "(($ac_try" in
18710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18711 *) ac_try_echo=$ac_try;;
18712 esac
18713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18714 (eval "$ac_link") 2>conftest.er1
18715 ac_status=$?
18716 grep -v '^ *+' conftest.er1 >conftest.err
18717 rm -f conftest.er1
18718 cat conftest.err >&5
18719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18720 (exit $ac_status); } && {
18721 test -z "$ac_c_werror_flag" ||
18722 test ! -s conftest.err
18723 } && test -s conftest$ac_exeext &&
18724 $as_test_x conftest$ac_exeext; then
18725 eval "$as_ac_var=yes"
18726 else
18727 echo "$as_me: failed program was:" >&5
18728 sed 's/^/| /' conftest.$ac_ext >&5
18730 eval "$as_ac_var=no"
18733 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18734 conftest$ac_exeext conftest.$ac_ext
18736 ac_res=`eval echo '${'$as_ac_var'}'`
18737 { echo "$as_me:$LINENO: result: $ac_res" >&5
18738 echo "${ECHO_T}$ac_res" >&6; }
18739 if test `eval echo '${'$as_ac_var'}'` = yes; then
18740 cat >>confdefs.h <<_ACEOF
18741 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18742 _ACEOF
18744 else
18745 case " $LIBOBJS " in
18746 *" $ac_func.$ac_objext "* ) ;;
18747 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18749 esac
18752 done
18756 for ac_func in getpgrp
18758 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18759 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18760 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18761 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18762 echo $ECHO_N "(cached) $ECHO_C" >&6
18763 else
18764 cat >conftest.$ac_ext <<_ACEOF
18765 /* confdefs.h. */
18766 _ACEOF
18767 cat confdefs.h >>conftest.$ac_ext
18768 cat >>conftest.$ac_ext <<_ACEOF
18769 /* end confdefs.h. */
18770 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18771 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18772 #define $ac_func innocuous_$ac_func
18774 /* System header to define __stub macros and hopefully few prototypes,
18775 which can conflict with char $ac_func (); below.
18776 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18777 <limits.h> exists even on freestanding compilers. */
18779 #ifdef __STDC__
18780 # include <limits.h>
18781 #else
18782 # include <assert.h>
18783 #endif
18785 #undef $ac_func
18787 /* Override any GCC internal prototype to avoid an error.
18788 Use char because int might match the return type of a GCC
18789 builtin and then its argument prototype would still apply. */
18790 #ifdef __cplusplus
18791 extern "C"
18792 #endif
18793 char $ac_func ();
18794 /* The GNU C library defines this for functions which it implements
18795 to always fail with ENOSYS. Some functions are actually named
18796 something starting with __ and the normal name is an alias. */
18797 #if defined __stub_$ac_func || defined __stub___$ac_func
18798 choke me
18799 #endif
18802 main ()
18804 return $ac_func ();
18806 return 0;
18808 _ACEOF
18809 rm -f conftest.$ac_objext conftest$ac_exeext
18810 if { (ac_try="$ac_link"
18811 case "(($ac_try" in
18812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18813 *) ac_try_echo=$ac_try;;
18814 esac
18815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18816 (eval "$ac_link") 2>conftest.er1
18817 ac_status=$?
18818 grep -v '^ *+' conftest.er1 >conftest.err
18819 rm -f conftest.er1
18820 cat conftest.err >&5
18821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18822 (exit $ac_status); } && {
18823 test -z "$ac_c_werror_flag" ||
18824 test ! -s conftest.err
18825 } && test -s conftest$ac_exeext &&
18826 $as_test_x conftest$ac_exeext; then
18827 eval "$as_ac_var=yes"
18828 else
18829 echo "$as_me: failed program was:" >&5
18830 sed 's/^/| /' conftest.$ac_ext >&5
18832 eval "$as_ac_var=no"
18835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18836 conftest$ac_exeext conftest.$ac_ext
18838 ac_res=`eval echo '${'$as_ac_var'}'`
18839 { echo "$as_me:$LINENO: result: $ac_res" >&5
18840 echo "${ECHO_T}$ac_res" >&6; }
18841 if test `eval echo '${'$as_ac_var'}'` = yes; then
18842 cat >>confdefs.h <<_ACEOF
18843 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18844 _ACEOF
18845 cat >conftest.$ac_ext <<_ACEOF
18846 /* confdefs.h. */
18847 _ACEOF
18848 cat confdefs.h >>conftest.$ac_ext
18849 cat >>conftest.$ac_ext <<_ACEOF
18850 /* end confdefs.h. */
18851 #include <unistd.h>
18853 main ()
18855 getpgrp(0);
18857 return 0;
18859 _ACEOF
18860 rm -f conftest.$ac_objext
18861 if { (ac_try="$ac_compile"
18862 case "(($ac_try" in
18863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18864 *) ac_try_echo=$ac_try;;
18865 esac
18866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18867 (eval "$ac_compile") 2>conftest.er1
18868 ac_status=$?
18869 grep -v '^ *+' conftest.er1 >conftest.err
18870 rm -f conftest.er1
18871 cat conftest.err >&5
18872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18873 (exit $ac_status); } && {
18874 test -z "$ac_c_werror_flag" ||
18875 test ! -s conftest.err
18876 } && test -s conftest.$ac_objext; then
18878 cat >>confdefs.h <<\_ACEOF
18879 #define GETPGRP_HAVE_ARG 1
18880 _ACEOF
18883 else
18884 echo "$as_me: failed program was:" >&5
18885 sed 's/^/| /' conftest.$ac_ext >&5
18890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18893 done
18896 for ac_func in setpgrp
18898 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18899 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18900 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18901 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18902 echo $ECHO_N "(cached) $ECHO_C" >&6
18903 else
18904 cat >conftest.$ac_ext <<_ACEOF
18905 /* confdefs.h. */
18906 _ACEOF
18907 cat confdefs.h >>conftest.$ac_ext
18908 cat >>conftest.$ac_ext <<_ACEOF
18909 /* end confdefs.h. */
18910 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18911 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18912 #define $ac_func innocuous_$ac_func
18914 /* System header to define __stub macros and hopefully few prototypes,
18915 which can conflict with char $ac_func (); below.
18916 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18917 <limits.h> exists even on freestanding compilers. */
18919 #ifdef __STDC__
18920 # include <limits.h>
18921 #else
18922 # include <assert.h>
18923 #endif
18925 #undef $ac_func
18927 /* Override any GCC internal prototype to avoid an error.
18928 Use char because int might match the return type of a GCC
18929 builtin and then its argument prototype would still apply. */
18930 #ifdef __cplusplus
18931 extern "C"
18932 #endif
18933 char $ac_func ();
18934 /* The GNU C library defines this for functions which it implements
18935 to always fail with ENOSYS. Some functions are actually named
18936 something starting with __ and the normal name is an alias. */
18937 #if defined __stub_$ac_func || defined __stub___$ac_func
18938 choke me
18939 #endif
18942 main ()
18944 return $ac_func ();
18946 return 0;
18948 _ACEOF
18949 rm -f conftest.$ac_objext conftest$ac_exeext
18950 if { (ac_try="$ac_link"
18951 case "(($ac_try" in
18952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18953 *) ac_try_echo=$ac_try;;
18954 esac
18955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18956 (eval "$ac_link") 2>conftest.er1
18957 ac_status=$?
18958 grep -v '^ *+' conftest.er1 >conftest.err
18959 rm -f conftest.er1
18960 cat conftest.err >&5
18961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18962 (exit $ac_status); } && {
18963 test -z "$ac_c_werror_flag" ||
18964 test ! -s conftest.err
18965 } && test -s conftest$ac_exeext &&
18966 $as_test_x conftest$ac_exeext; then
18967 eval "$as_ac_var=yes"
18968 else
18969 echo "$as_me: failed program was:" >&5
18970 sed 's/^/| /' conftest.$ac_ext >&5
18972 eval "$as_ac_var=no"
18975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18976 conftest$ac_exeext conftest.$ac_ext
18978 ac_res=`eval echo '${'$as_ac_var'}'`
18979 { echo "$as_me:$LINENO: result: $ac_res" >&5
18980 echo "${ECHO_T}$ac_res" >&6; }
18981 if test `eval echo '${'$as_ac_var'}'` = yes; then
18982 cat >>confdefs.h <<_ACEOF
18983 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18984 _ACEOF
18985 cat >conftest.$ac_ext <<_ACEOF
18986 /* confdefs.h. */
18987 _ACEOF
18988 cat confdefs.h >>conftest.$ac_ext
18989 cat >>conftest.$ac_ext <<_ACEOF
18990 /* end confdefs.h. */
18991 #include <unistd.h>
18993 main ()
18995 setpgrp(0,0);
18997 return 0;
18999 _ACEOF
19000 rm -f conftest.$ac_objext
19001 if { (ac_try="$ac_compile"
19002 case "(($ac_try" in
19003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19004 *) ac_try_echo=$ac_try;;
19005 esac
19006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19007 (eval "$ac_compile") 2>conftest.er1
19008 ac_status=$?
19009 grep -v '^ *+' conftest.er1 >conftest.err
19010 rm -f conftest.er1
19011 cat conftest.err >&5
19012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19013 (exit $ac_status); } && {
19014 test -z "$ac_c_werror_flag" ||
19015 test ! -s conftest.err
19016 } && test -s conftest.$ac_objext; then
19018 cat >>confdefs.h <<\_ACEOF
19019 #define SETPGRP_HAVE_ARG 1
19020 _ACEOF
19023 else
19024 echo "$as_me: failed program was:" >&5
19025 sed 's/^/| /' conftest.$ac_ext >&5
19030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19033 done
19036 for ac_func in gettimeofday
19038 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19039 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19040 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19041 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19042 echo $ECHO_N "(cached) $ECHO_C" >&6
19043 else
19044 cat >conftest.$ac_ext <<_ACEOF
19045 /* confdefs.h. */
19046 _ACEOF
19047 cat confdefs.h >>conftest.$ac_ext
19048 cat >>conftest.$ac_ext <<_ACEOF
19049 /* end confdefs.h. */
19050 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19051 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19052 #define $ac_func innocuous_$ac_func
19054 /* System header to define __stub macros and hopefully few prototypes,
19055 which can conflict with char $ac_func (); below.
19056 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19057 <limits.h> exists even on freestanding compilers. */
19059 #ifdef __STDC__
19060 # include <limits.h>
19061 #else
19062 # include <assert.h>
19063 #endif
19065 #undef $ac_func
19067 /* Override any GCC internal prototype to avoid an error.
19068 Use char because int might match the return type of a GCC
19069 builtin and then its argument prototype would still apply. */
19070 #ifdef __cplusplus
19071 extern "C"
19072 #endif
19073 char $ac_func ();
19074 /* The GNU C library defines this for functions which it implements
19075 to always fail with ENOSYS. Some functions are actually named
19076 something starting with __ and the normal name is an alias. */
19077 #if defined __stub_$ac_func || defined __stub___$ac_func
19078 choke me
19079 #endif
19082 main ()
19084 return $ac_func ();
19086 return 0;
19088 _ACEOF
19089 rm -f conftest.$ac_objext conftest$ac_exeext
19090 if { (ac_try="$ac_link"
19091 case "(($ac_try" in
19092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19093 *) ac_try_echo=$ac_try;;
19094 esac
19095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19096 (eval "$ac_link") 2>conftest.er1
19097 ac_status=$?
19098 grep -v '^ *+' conftest.er1 >conftest.err
19099 rm -f conftest.er1
19100 cat conftest.err >&5
19101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19102 (exit $ac_status); } && {
19103 test -z "$ac_c_werror_flag" ||
19104 test ! -s conftest.err
19105 } && test -s conftest$ac_exeext &&
19106 $as_test_x conftest$ac_exeext; then
19107 eval "$as_ac_var=yes"
19108 else
19109 echo "$as_me: failed program was:" >&5
19110 sed 's/^/| /' conftest.$ac_ext >&5
19112 eval "$as_ac_var=no"
19115 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19116 conftest$ac_exeext conftest.$ac_ext
19118 ac_res=`eval echo '${'$as_ac_var'}'`
19119 { echo "$as_me:$LINENO: result: $ac_res" >&5
19120 echo "${ECHO_T}$ac_res" >&6; }
19121 if test `eval echo '${'$as_ac_var'}'` = yes; then
19122 cat >>confdefs.h <<_ACEOF
19123 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19124 _ACEOF
19125 cat >conftest.$ac_ext <<_ACEOF
19126 /* confdefs.h. */
19127 _ACEOF
19128 cat confdefs.h >>conftest.$ac_ext
19129 cat >>conftest.$ac_ext <<_ACEOF
19130 /* end confdefs.h. */
19131 #include <sys/time.h>
19133 main ()
19135 gettimeofday((struct timeval*)0,(struct timezone*)0);
19137 return 0;
19139 _ACEOF
19140 rm -f conftest.$ac_objext
19141 if { (ac_try="$ac_compile"
19142 case "(($ac_try" in
19143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19144 *) ac_try_echo=$ac_try;;
19145 esac
19146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19147 (eval "$ac_compile") 2>conftest.er1
19148 ac_status=$?
19149 grep -v '^ *+' conftest.er1 >conftest.err
19150 rm -f conftest.er1
19151 cat conftest.err >&5
19152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19153 (exit $ac_status); } && {
19154 test -z "$ac_c_werror_flag" ||
19155 test ! -s conftest.err
19156 } && test -s conftest.$ac_objext; then
19158 else
19159 echo "$as_me: failed program was:" >&5
19160 sed 's/^/| /' conftest.$ac_ext >&5
19163 cat >>confdefs.h <<\_ACEOF
19164 #define GETTIMEOFDAY_NO_TZ 1
19165 _ACEOF
19170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19173 done
19176 { echo "$as_me:$LINENO: checking for major" >&5
19177 echo $ECHO_N "checking for major... $ECHO_C" >&6; }
19178 cat >conftest.$ac_ext <<_ACEOF
19179 /* confdefs.h. */
19180 _ACEOF
19181 cat confdefs.h >>conftest.$ac_ext
19182 cat >>conftest.$ac_ext <<_ACEOF
19183 /* end confdefs.h. */
19185 #if defined(MAJOR_IN_MKDEV)
19186 #include <sys/mkdev.h>
19187 #elif defined(MAJOR_IN_SYSMACROS)
19188 #include <sys/sysmacros.h>
19189 #else
19190 #include <sys/types.h>
19191 #endif
19194 main ()
19197 makedev(major(0),minor(0));
19200 return 0;
19202 _ACEOF
19203 rm -f conftest.$ac_objext conftest$ac_exeext
19204 if { (ac_try="$ac_link"
19205 case "(($ac_try" in
19206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19207 *) ac_try_echo=$ac_try;;
19208 esac
19209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19210 (eval "$ac_link") 2>conftest.er1
19211 ac_status=$?
19212 grep -v '^ *+' conftest.er1 >conftest.err
19213 rm -f conftest.er1
19214 cat conftest.err >&5
19215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19216 (exit $ac_status); } && {
19217 test -z "$ac_c_werror_flag" ||
19218 test ! -s conftest.err
19219 } && test -s conftest$ac_exeext &&
19220 $as_test_x conftest$ac_exeext; then
19223 cat >>confdefs.h <<\_ACEOF
19224 #define HAVE_DEVICE_MACROS 1
19225 _ACEOF
19227 { echo "$as_me:$LINENO: result: yes" >&5
19228 echo "${ECHO_T}yes" >&6; }
19230 else
19231 echo "$as_me: failed program was:" >&5
19232 sed 's/^/| /' conftest.$ac_ext >&5
19235 { echo "$as_me:$LINENO: result: no" >&5
19236 echo "${ECHO_T}no" >&6; }
19240 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19241 conftest$ac_exeext conftest.$ac_ext
19243 # On OSF/1 V5.1, getaddrinfo is available, but a define
19244 # for [no]getaddrinfo in netdb.h.
19245 { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
19246 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
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. */
19254 #include <sys/types.h>
19255 #include <sys/socket.h>
19256 #include <netdb.h>
19257 #include <stdio.h>
19260 main ()
19263 getaddrinfo(NULL, NULL, NULL, NULL);
19266 return 0;
19268 _ACEOF
19269 rm -f conftest.$ac_objext conftest$ac_exeext
19270 if { (ac_try="$ac_link"
19271 case "(($ac_try" in
19272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19273 *) ac_try_echo=$ac_try;;
19274 esac
19275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19276 (eval "$ac_link") 2>conftest.er1
19277 ac_status=$?
19278 grep -v '^ *+' conftest.er1 >conftest.err
19279 rm -f conftest.er1
19280 cat conftest.err >&5
19281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19282 (exit $ac_status); } && {
19283 test -z "$ac_c_werror_flag" ||
19284 test ! -s conftest.err
19285 } && test -s conftest$ac_exeext &&
19286 $as_test_x conftest$ac_exeext; then
19288 { echo "$as_me:$LINENO: result: yes" >&5
19289 echo "${ECHO_T}yes" >&6; }
19290 { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
19291 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
19292 if test "$cross_compiling" = yes; then
19293 { echo "$as_me:$LINENO: result: buggy" >&5
19294 echo "${ECHO_T}buggy" >&6; }
19295 buggygetaddrinfo=yes
19296 else
19297 cat >conftest.$ac_ext <<_ACEOF
19298 /* confdefs.h. */
19299 _ACEOF
19300 cat confdefs.h >>conftest.$ac_ext
19301 cat >>conftest.$ac_ext <<_ACEOF
19302 /* end confdefs.h. */
19304 #include <sys/types.h>
19305 #include <netdb.h>
19306 #include <string.h>
19307 #include <sys/socket.h>
19308 #include <netinet/in.h>
19310 main()
19312 int passive, gaierr, inet4 = 0, inet6 = 0;
19313 struct addrinfo hints, *ai, *aitop;
19314 char straddr[INET6_ADDRSTRLEN], strport[16];
19316 for (passive = 0; passive <= 1; passive++) {
19317 memset(&hints, 0, sizeof(hints));
19318 hints.ai_family = AF_UNSPEC;
19319 hints.ai_flags = passive ? AI_PASSIVE : 0;
19320 hints.ai_socktype = SOCK_STREAM;
19321 hints.ai_protocol = IPPROTO_TCP;
19322 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
19323 (void)gai_strerror(gaierr);
19324 goto bad;
19326 for (ai = aitop; ai; ai = ai->ai_next) {
19327 if (ai->ai_addr == NULL ||
19328 ai->ai_addrlen == 0 ||
19329 getnameinfo(ai->ai_addr, ai->ai_addrlen,
19330 straddr, sizeof(straddr), strport, sizeof(strport),
19331 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
19332 goto bad;
19334 switch (ai->ai_family) {
19335 case AF_INET:
19336 if (strcmp(strport, "54321") != 0) {
19337 goto bad;
19339 if (passive) {
19340 if (strcmp(straddr, "0.0.0.0") != 0) {
19341 goto bad;
19343 } else {
19344 if (strcmp(straddr, "127.0.0.1") != 0) {
19345 goto bad;
19348 inet4++;
19349 break;
19350 case AF_INET6:
19351 if (strcmp(strport, "54321") != 0) {
19352 goto bad;
19354 if (passive) {
19355 if (strcmp(straddr, "::") != 0) {
19356 goto bad;
19358 } else {
19359 if (strcmp(straddr, "::1") != 0) {
19360 goto bad;
19363 inet6++;
19364 break;
19365 case AF_UNSPEC:
19366 goto bad;
19367 break;
19368 default:
19369 /* another family support? */
19370 break;
19375 if (!(inet4 == 0 || inet4 == 2))
19376 goto bad;
19377 if (!(inet6 == 0 || inet6 == 2))
19378 goto bad;
19380 if (aitop)
19381 freeaddrinfo(aitop);
19382 exit(0);
19384 bad:
19385 if (aitop)
19386 freeaddrinfo(aitop);
19387 exit(1);
19390 _ACEOF
19391 rm -f conftest$ac_exeext
19392 if { (ac_try="$ac_link"
19393 case "(($ac_try" in
19394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19395 *) ac_try_echo=$ac_try;;
19396 esac
19397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19398 (eval "$ac_link") 2>&5
19399 ac_status=$?
19400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19401 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19402 { (case "(($ac_try" in
19403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19404 *) ac_try_echo=$ac_try;;
19405 esac
19406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19407 (eval "$ac_try") 2>&5
19408 ac_status=$?
19409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19410 (exit $ac_status); }; }; then
19411 { echo "$as_me:$LINENO: result: good" >&5
19412 echo "${ECHO_T}good" >&6; }
19413 buggygetaddrinfo=no
19414 else
19415 echo "$as_me: program exited with status $ac_status" >&5
19416 echo "$as_me: failed program was:" >&5
19417 sed 's/^/| /' conftest.$ac_ext >&5
19419 ( exit $ac_status )
19420 { echo "$as_me:$LINENO: result: buggy" >&5
19421 echo "${ECHO_T}buggy" >&6; }
19422 buggygetaddrinfo=yes
19424 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19428 else
19429 echo "$as_me: failed program was:" >&5
19430 sed 's/^/| /' conftest.$ac_ext >&5
19433 { echo "$as_me:$LINENO: result: no" >&5
19434 echo "${ECHO_T}no" >&6; }
19435 buggygetaddrinfo=yes
19439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19440 conftest$ac_exeext conftest.$ac_ext
19442 if test "$buggygetaddrinfo" = "yes"; then
19443 if test "$ipv6" = "yes"; then
19444 echo 'Fatal: You must get working getaddrinfo() function.'
19445 echo ' or you can specify "--disable-ipv6"'.
19446 exit 1
19448 else
19450 cat >>confdefs.h <<\_ACEOF
19451 #define HAVE_GETADDRINFO 1
19452 _ACEOF
19456 for ac_func in getnameinfo
19458 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19459 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19460 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19461 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19462 echo $ECHO_N "(cached) $ECHO_C" >&6
19463 else
19464 cat >conftest.$ac_ext <<_ACEOF
19465 /* confdefs.h. */
19466 _ACEOF
19467 cat confdefs.h >>conftest.$ac_ext
19468 cat >>conftest.$ac_ext <<_ACEOF
19469 /* end confdefs.h. */
19470 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19471 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19472 #define $ac_func innocuous_$ac_func
19474 /* System header to define __stub macros and hopefully few prototypes,
19475 which can conflict with char $ac_func (); below.
19476 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19477 <limits.h> exists even on freestanding compilers. */
19479 #ifdef __STDC__
19480 # include <limits.h>
19481 #else
19482 # include <assert.h>
19483 #endif
19485 #undef $ac_func
19487 /* Override any GCC internal prototype to avoid an error.
19488 Use char because int might match the return type of a GCC
19489 builtin and then its argument prototype would still apply. */
19490 #ifdef __cplusplus
19491 extern "C"
19492 #endif
19493 char $ac_func ();
19494 /* The GNU C library defines this for functions which it implements
19495 to always fail with ENOSYS. Some functions are actually named
19496 something starting with __ and the normal name is an alias. */
19497 #if defined __stub_$ac_func || defined __stub___$ac_func
19498 choke me
19499 #endif
19502 main ()
19504 return $ac_func ();
19506 return 0;
19508 _ACEOF
19509 rm -f conftest.$ac_objext conftest$ac_exeext
19510 if { (ac_try="$ac_link"
19511 case "(($ac_try" in
19512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19513 *) ac_try_echo=$ac_try;;
19514 esac
19515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19516 (eval "$ac_link") 2>conftest.er1
19517 ac_status=$?
19518 grep -v '^ *+' conftest.er1 >conftest.err
19519 rm -f conftest.er1
19520 cat conftest.err >&5
19521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19522 (exit $ac_status); } && {
19523 test -z "$ac_c_werror_flag" ||
19524 test ! -s conftest.err
19525 } && test -s conftest$ac_exeext &&
19526 $as_test_x conftest$ac_exeext; then
19527 eval "$as_ac_var=yes"
19528 else
19529 echo "$as_me: failed program was:" >&5
19530 sed 's/^/| /' conftest.$ac_ext >&5
19532 eval "$as_ac_var=no"
19535 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19536 conftest$ac_exeext conftest.$ac_ext
19538 ac_res=`eval echo '${'$as_ac_var'}'`
19539 { echo "$as_me:$LINENO: result: $ac_res" >&5
19540 echo "${ECHO_T}$ac_res" >&6; }
19541 if test `eval echo '${'$as_ac_var'}'` = yes; then
19542 cat >>confdefs.h <<_ACEOF
19543 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19544 _ACEOF
19547 done
19550 # checks for structures
19551 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19552 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
19553 if test "${ac_cv_header_time+set}" = set; then
19554 echo $ECHO_N "(cached) $ECHO_C" >&6
19555 else
19556 cat >conftest.$ac_ext <<_ACEOF
19557 /* confdefs.h. */
19558 _ACEOF
19559 cat confdefs.h >>conftest.$ac_ext
19560 cat >>conftest.$ac_ext <<_ACEOF
19561 /* end confdefs.h. */
19562 #include <sys/types.h>
19563 #include <sys/time.h>
19564 #include <time.h>
19567 main ()
19569 if ((struct tm *) 0)
19570 return 0;
19572 return 0;
19574 _ACEOF
19575 rm -f conftest.$ac_objext
19576 if { (ac_try="$ac_compile"
19577 case "(($ac_try" in
19578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19579 *) ac_try_echo=$ac_try;;
19580 esac
19581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19582 (eval "$ac_compile") 2>conftest.er1
19583 ac_status=$?
19584 grep -v '^ *+' conftest.er1 >conftest.err
19585 rm -f conftest.er1
19586 cat conftest.err >&5
19587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19588 (exit $ac_status); } && {
19589 test -z "$ac_c_werror_flag" ||
19590 test ! -s conftest.err
19591 } && test -s conftest.$ac_objext; then
19592 ac_cv_header_time=yes
19593 else
19594 echo "$as_me: failed program was:" >&5
19595 sed 's/^/| /' conftest.$ac_ext >&5
19597 ac_cv_header_time=no
19600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19602 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19603 echo "${ECHO_T}$ac_cv_header_time" >&6; }
19604 if test $ac_cv_header_time = yes; then
19606 cat >>confdefs.h <<\_ACEOF
19607 #define TIME_WITH_SYS_TIME 1
19608 _ACEOF
19612 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
19613 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
19614 if test "${ac_cv_struct_tm+set}" = set; then
19615 echo $ECHO_N "(cached) $ECHO_C" >&6
19616 else
19617 cat >conftest.$ac_ext <<_ACEOF
19618 /* confdefs.h. */
19619 _ACEOF
19620 cat confdefs.h >>conftest.$ac_ext
19621 cat >>conftest.$ac_ext <<_ACEOF
19622 /* end confdefs.h. */
19623 #include <sys/types.h>
19624 #include <time.h>
19627 main ()
19629 struct tm tm;
19630 int *p = &tm.tm_sec;
19631 return !p;
19633 return 0;
19635 _ACEOF
19636 rm -f conftest.$ac_objext
19637 if { (ac_try="$ac_compile"
19638 case "(($ac_try" in
19639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19640 *) ac_try_echo=$ac_try;;
19641 esac
19642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19643 (eval "$ac_compile") 2>conftest.er1
19644 ac_status=$?
19645 grep -v '^ *+' conftest.er1 >conftest.err
19646 rm -f conftest.er1
19647 cat conftest.err >&5
19648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19649 (exit $ac_status); } && {
19650 test -z "$ac_c_werror_flag" ||
19651 test ! -s conftest.err
19652 } && test -s conftest.$ac_objext; then
19653 ac_cv_struct_tm=time.h
19654 else
19655 echo "$as_me: failed program was:" >&5
19656 sed 's/^/| /' conftest.$ac_ext >&5
19658 ac_cv_struct_tm=sys/time.h
19661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19663 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
19664 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
19665 if test $ac_cv_struct_tm = sys/time.h; then
19667 cat >>confdefs.h <<\_ACEOF
19668 #define TM_IN_SYS_TIME 1
19669 _ACEOF
19673 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
19674 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
19675 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
19676 echo $ECHO_N "(cached) $ECHO_C" >&6
19677 else
19678 cat >conftest.$ac_ext <<_ACEOF
19679 /* confdefs.h. */
19680 _ACEOF
19681 cat confdefs.h >>conftest.$ac_ext
19682 cat >>conftest.$ac_ext <<_ACEOF
19683 /* end confdefs.h. */
19684 #include <sys/types.h>
19685 #include <$ac_cv_struct_tm>
19689 main ()
19691 static struct tm ac_aggr;
19692 if (ac_aggr.tm_zone)
19693 return 0;
19695 return 0;
19697 _ACEOF
19698 rm -f conftest.$ac_objext
19699 if { (ac_try="$ac_compile"
19700 case "(($ac_try" in
19701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19702 *) ac_try_echo=$ac_try;;
19703 esac
19704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19705 (eval "$ac_compile") 2>conftest.er1
19706 ac_status=$?
19707 grep -v '^ *+' conftest.er1 >conftest.err
19708 rm -f conftest.er1
19709 cat conftest.err >&5
19710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19711 (exit $ac_status); } && {
19712 test -z "$ac_c_werror_flag" ||
19713 test ! -s conftest.err
19714 } && test -s conftest.$ac_objext; then
19715 ac_cv_member_struct_tm_tm_zone=yes
19716 else
19717 echo "$as_me: failed program was:" >&5
19718 sed 's/^/| /' conftest.$ac_ext >&5
19720 cat >conftest.$ac_ext <<_ACEOF
19721 /* confdefs.h. */
19722 _ACEOF
19723 cat confdefs.h >>conftest.$ac_ext
19724 cat >>conftest.$ac_ext <<_ACEOF
19725 /* end confdefs.h. */
19726 #include <sys/types.h>
19727 #include <$ac_cv_struct_tm>
19731 main ()
19733 static struct tm ac_aggr;
19734 if (sizeof ac_aggr.tm_zone)
19735 return 0;
19737 return 0;
19739 _ACEOF
19740 rm -f conftest.$ac_objext
19741 if { (ac_try="$ac_compile"
19742 case "(($ac_try" in
19743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19744 *) ac_try_echo=$ac_try;;
19745 esac
19746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19747 (eval "$ac_compile") 2>conftest.er1
19748 ac_status=$?
19749 grep -v '^ *+' conftest.er1 >conftest.err
19750 rm -f conftest.er1
19751 cat conftest.err >&5
19752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19753 (exit $ac_status); } && {
19754 test -z "$ac_c_werror_flag" ||
19755 test ! -s conftest.err
19756 } && test -s conftest.$ac_objext; then
19757 ac_cv_member_struct_tm_tm_zone=yes
19758 else
19759 echo "$as_me: failed program was:" >&5
19760 sed 's/^/| /' conftest.$ac_ext >&5
19762 ac_cv_member_struct_tm_tm_zone=no
19765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19770 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
19771 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
19772 if test $ac_cv_member_struct_tm_tm_zone = yes; then
19774 cat >>confdefs.h <<_ACEOF
19775 #define HAVE_STRUCT_TM_TM_ZONE 1
19776 _ACEOF
19781 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
19783 cat >>confdefs.h <<\_ACEOF
19784 #define HAVE_TM_ZONE 1
19785 _ACEOF
19787 else
19788 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
19789 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
19790 if test "${ac_cv_have_decl_tzname+set}" = set; then
19791 echo $ECHO_N "(cached) $ECHO_C" >&6
19792 else
19793 cat >conftest.$ac_ext <<_ACEOF
19794 /* confdefs.h. */
19795 _ACEOF
19796 cat confdefs.h >>conftest.$ac_ext
19797 cat >>conftest.$ac_ext <<_ACEOF
19798 /* end confdefs.h. */
19799 #include <time.h>
19802 main ()
19804 #ifndef tzname
19805 (void) tzname;
19806 #endif
19809 return 0;
19811 _ACEOF
19812 rm -f conftest.$ac_objext
19813 if { (ac_try="$ac_compile"
19814 case "(($ac_try" in
19815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19816 *) ac_try_echo=$ac_try;;
19817 esac
19818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19819 (eval "$ac_compile") 2>conftest.er1
19820 ac_status=$?
19821 grep -v '^ *+' conftest.er1 >conftest.err
19822 rm -f conftest.er1
19823 cat conftest.err >&5
19824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19825 (exit $ac_status); } && {
19826 test -z "$ac_c_werror_flag" ||
19827 test ! -s conftest.err
19828 } && test -s conftest.$ac_objext; then
19829 ac_cv_have_decl_tzname=yes
19830 else
19831 echo "$as_me: failed program was:" >&5
19832 sed 's/^/| /' conftest.$ac_ext >&5
19834 ac_cv_have_decl_tzname=no
19837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19839 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
19840 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
19841 if test $ac_cv_have_decl_tzname = yes; then
19843 cat >>confdefs.h <<_ACEOF
19844 #define HAVE_DECL_TZNAME 1
19845 _ACEOF
19848 else
19849 cat >>confdefs.h <<_ACEOF
19850 #define HAVE_DECL_TZNAME 0
19851 _ACEOF
19857 { echo "$as_me:$LINENO: checking for tzname" >&5
19858 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
19859 if test "${ac_cv_var_tzname+set}" = set; then
19860 echo $ECHO_N "(cached) $ECHO_C" >&6
19861 else
19862 cat >conftest.$ac_ext <<_ACEOF
19863 /* confdefs.h. */
19864 _ACEOF
19865 cat confdefs.h >>conftest.$ac_ext
19866 cat >>conftest.$ac_ext <<_ACEOF
19867 /* end confdefs.h. */
19868 #include <time.h>
19869 #if !HAVE_DECL_TZNAME
19870 extern char *tzname[];
19871 #endif
19874 main ()
19876 return tzname[0][0];
19878 return 0;
19880 _ACEOF
19881 rm -f conftest.$ac_objext conftest$ac_exeext
19882 if { (ac_try="$ac_link"
19883 case "(($ac_try" in
19884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19885 *) ac_try_echo=$ac_try;;
19886 esac
19887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19888 (eval "$ac_link") 2>conftest.er1
19889 ac_status=$?
19890 grep -v '^ *+' conftest.er1 >conftest.err
19891 rm -f conftest.er1
19892 cat conftest.err >&5
19893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19894 (exit $ac_status); } && {
19895 test -z "$ac_c_werror_flag" ||
19896 test ! -s conftest.err
19897 } && test -s conftest$ac_exeext &&
19898 $as_test_x conftest$ac_exeext; then
19899 ac_cv_var_tzname=yes
19900 else
19901 echo "$as_me: failed program was:" >&5
19902 sed 's/^/| /' conftest.$ac_ext >&5
19904 ac_cv_var_tzname=no
19907 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19908 conftest$ac_exeext conftest.$ac_ext
19910 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
19911 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
19912 if test $ac_cv_var_tzname = yes; then
19914 cat >>confdefs.h <<\_ACEOF
19915 #define HAVE_TZNAME 1
19916 _ACEOF
19921 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
19922 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
19923 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
19924 echo $ECHO_N "(cached) $ECHO_C" >&6
19925 else
19926 cat >conftest.$ac_ext <<_ACEOF
19927 /* confdefs.h. */
19928 _ACEOF
19929 cat confdefs.h >>conftest.$ac_ext
19930 cat >>conftest.$ac_ext <<_ACEOF
19931 /* end confdefs.h. */
19932 $ac_includes_default
19934 main ()
19936 static struct stat ac_aggr;
19937 if (ac_aggr.st_rdev)
19938 return 0;
19940 return 0;
19942 _ACEOF
19943 rm -f conftest.$ac_objext
19944 if { (ac_try="$ac_compile"
19945 case "(($ac_try" in
19946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19947 *) ac_try_echo=$ac_try;;
19948 esac
19949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19950 (eval "$ac_compile") 2>conftest.er1
19951 ac_status=$?
19952 grep -v '^ *+' conftest.er1 >conftest.err
19953 rm -f conftest.er1
19954 cat conftest.err >&5
19955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19956 (exit $ac_status); } && {
19957 test -z "$ac_c_werror_flag" ||
19958 test ! -s conftest.err
19959 } && test -s conftest.$ac_objext; then
19960 ac_cv_member_struct_stat_st_rdev=yes
19961 else
19962 echo "$as_me: failed program was:" >&5
19963 sed 's/^/| /' conftest.$ac_ext >&5
19965 cat >conftest.$ac_ext <<_ACEOF
19966 /* confdefs.h. */
19967 _ACEOF
19968 cat confdefs.h >>conftest.$ac_ext
19969 cat >>conftest.$ac_ext <<_ACEOF
19970 /* end confdefs.h. */
19971 $ac_includes_default
19973 main ()
19975 static struct stat ac_aggr;
19976 if (sizeof ac_aggr.st_rdev)
19977 return 0;
19979 return 0;
19981 _ACEOF
19982 rm -f conftest.$ac_objext
19983 if { (ac_try="$ac_compile"
19984 case "(($ac_try" in
19985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19986 *) ac_try_echo=$ac_try;;
19987 esac
19988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19989 (eval "$ac_compile") 2>conftest.er1
19990 ac_status=$?
19991 grep -v '^ *+' conftest.er1 >conftest.err
19992 rm -f conftest.er1
19993 cat conftest.err >&5
19994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19995 (exit $ac_status); } && {
19996 test -z "$ac_c_werror_flag" ||
19997 test ! -s conftest.err
19998 } && test -s conftest.$ac_objext; then
19999 ac_cv_member_struct_stat_st_rdev=yes
20000 else
20001 echo "$as_me: failed program was:" >&5
20002 sed 's/^/| /' conftest.$ac_ext >&5
20004 ac_cv_member_struct_stat_st_rdev=no
20007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20012 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
20013 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
20014 if test $ac_cv_member_struct_stat_st_rdev = yes; then
20016 cat >>confdefs.h <<_ACEOF
20017 #define HAVE_STRUCT_STAT_ST_RDEV 1
20018 _ACEOF
20023 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
20024 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
20025 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
20026 echo $ECHO_N "(cached) $ECHO_C" >&6
20027 else
20028 cat >conftest.$ac_ext <<_ACEOF
20029 /* confdefs.h. */
20030 _ACEOF
20031 cat confdefs.h >>conftest.$ac_ext
20032 cat >>conftest.$ac_ext <<_ACEOF
20033 /* end confdefs.h. */
20034 $ac_includes_default
20036 main ()
20038 static struct stat ac_aggr;
20039 if (ac_aggr.st_blksize)
20040 return 0;
20042 return 0;
20044 _ACEOF
20045 rm -f conftest.$ac_objext
20046 if { (ac_try="$ac_compile"
20047 case "(($ac_try" in
20048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20049 *) ac_try_echo=$ac_try;;
20050 esac
20051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20052 (eval "$ac_compile") 2>conftest.er1
20053 ac_status=$?
20054 grep -v '^ *+' conftest.er1 >conftest.err
20055 rm -f conftest.er1
20056 cat conftest.err >&5
20057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20058 (exit $ac_status); } && {
20059 test -z "$ac_c_werror_flag" ||
20060 test ! -s conftest.err
20061 } && test -s conftest.$ac_objext; then
20062 ac_cv_member_struct_stat_st_blksize=yes
20063 else
20064 echo "$as_me: failed program was:" >&5
20065 sed 's/^/| /' conftest.$ac_ext >&5
20067 cat >conftest.$ac_ext <<_ACEOF
20068 /* confdefs.h. */
20069 _ACEOF
20070 cat confdefs.h >>conftest.$ac_ext
20071 cat >>conftest.$ac_ext <<_ACEOF
20072 /* end confdefs.h. */
20073 $ac_includes_default
20075 main ()
20077 static struct stat ac_aggr;
20078 if (sizeof ac_aggr.st_blksize)
20079 return 0;
20081 return 0;
20083 _ACEOF
20084 rm -f conftest.$ac_objext
20085 if { (ac_try="$ac_compile"
20086 case "(($ac_try" in
20087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20088 *) ac_try_echo=$ac_try;;
20089 esac
20090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20091 (eval "$ac_compile") 2>conftest.er1
20092 ac_status=$?
20093 grep -v '^ *+' conftest.er1 >conftest.err
20094 rm -f conftest.er1
20095 cat conftest.err >&5
20096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20097 (exit $ac_status); } && {
20098 test -z "$ac_c_werror_flag" ||
20099 test ! -s conftest.err
20100 } && test -s conftest.$ac_objext; then
20101 ac_cv_member_struct_stat_st_blksize=yes
20102 else
20103 echo "$as_me: failed program was:" >&5
20104 sed 's/^/| /' conftest.$ac_ext >&5
20106 ac_cv_member_struct_stat_st_blksize=no
20109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20114 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
20115 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
20116 if test $ac_cv_member_struct_stat_st_blksize = yes; then
20118 cat >>confdefs.h <<_ACEOF
20119 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
20120 _ACEOF
20125 { echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
20126 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6; }
20127 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
20128 echo $ECHO_N "(cached) $ECHO_C" >&6
20129 else
20130 cat >conftest.$ac_ext <<_ACEOF
20131 /* confdefs.h. */
20132 _ACEOF
20133 cat confdefs.h >>conftest.$ac_ext
20134 cat >>conftest.$ac_ext <<_ACEOF
20135 /* end confdefs.h. */
20136 $ac_includes_default
20138 main ()
20140 static struct stat ac_aggr;
20141 if (ac_aggr.st_flags)
20142 return 0;
20144 return 0;
20146 _ACEOF
20147 rm -f conftest.$ac_objext
20148 if { (ac_try="$ac_compile"
20149 case "(($ac_try" in
20150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20151 *) ac_try_echo=$ac_try;;
20152 esac
20153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20154 (eval "$ac_compile") 2>conftest.er1
20155 ac_status=$?
20156 grep -v '^ *+' conftest.er1 >conftest.err
20157 rm -f conftest.er1
20158 cat conftest.err >&5
20159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20160 (exit $ac_status); } && {
20161 test -z "$ac_c_werror_flag" ||
20162 test ! -s conftest.err
20163 } && test -s conftest.$ac_objext; then
20164 ac_cv_member_struct_stat_st_flags=yes
20165 else
20166 echo "$as_me: failed program was:" >&5
20167 sed 's/^/| /' conftest.$ac_ext >&5
20169 cat >conftest.$ac_ext <<_ACEOF
20170 /* confdefs.h. */
20171 _ACEOF
20172 cat confdefs.h >>conftest.$ac_ext
20173 cat >>conftest.$ac_ext <<_ACEOF
20174 /* end confdefs.h. */
20175 $ac_includes_default
20177 main ()
20179 static struct stat ac_aggr;
20180 if (sizeof ac_aggr.st_flags)
20181 return 0;
20183 return 0;
20185 _ACEOF
20186 rm -f conftest.$ac_objext
20187 if { (ac_try="$ac_compile"
20188 case "(($ac_try" in
20189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20190 *) ac_try_echo=$ac_try;;
20191 esac
20192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20193 (eval "$ac_compile") 2>conftest.er1
20194 ac_status=$?
20195 grep -v '^ *+' conftest.er1 >conftest.err
20196 rm -f conftest.er1
20197 cat conftest.err >&5
20198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20199 (exit $ac_status); } && {
20200 test -z "$ac_c_werror_flag" ||
20201 test ! -s conftest.err
20202 } && test -s conftest.$ac_objext; then
20203 ac_cv_member_struct_stat_st_flags=yes
20204 else
20205 echo "$as_me: failed program was:" >&5
20206 sed 's/^/| /' conftest.$ac_ext >&5
20208 ac_cv_member_struct_stat_st_flags=no
20211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20216 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
20217 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6; }
20218 if test $ac_cv_member_struct_stat_st_flags = yes; then
20220 cat >>confdefs.h <<_ACEOF
20221 #define HAVE_STRUCT_STAT_ST_FLAGS 1
20222 _ACEOF
20227 { echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
20228 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6; }
20229 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
20230 echo $ECHO_N "(cached) $ECHO_C" >&6
20231 else
20232 cat >conftest.$ac_ext <<_ACEOF
20233 /* confdefs.h. */
20234 _ACEOF
20235 cat confdefs.h >>conftest.$ac_ext
20236 cat >>conftest.$ac_ext <<_ACEOF
20237 /* end confdefs.h. */
20238 $ac_includes_default
20240 main ()
20242 static struct stat ac_aggr;
20243 if (ac_aggr.st_gen)
20244 return 0;
20246 return 0;
20248 _ACEOF
20249 rm -f conftest.$ac_objext
20250 if { (ac_try="$ac_compile"
20251 case "(($ac_try" in
20252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20253 *) ac_try_echo=$ac_try;;
20254 esac
20255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20256 (eval "$ac_compile") 2>conftest.er1
20257 ac_status=$?
20258 grep -v '^ *+' conftest.er1 >conftest.err
20259 rm -f conftest.er1
20260 cat conftest.err >&5
20261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20262 (exit $ac_status); } && {
20263 test -z "$ac_c_werror_flag" ||
20264 test ! -s conftest.err
20265 } && test -s conftest.$ac_objext; then
20266 ac_cv_member_struct_stat_st_gen=yes
20267 else
20268 echo "$as_me: failed program was:" >&5
20269 sed 's/^/| /' conftest.$ac_ext >&5
20271 cat >conftest.$ac_ext <<_ACEOF
20272 /* confdefs.h. */
20273 _ACEOF
20274 cat confdefs.h >>conftest.$ac_ext
20275 cat >>conftest.$ac_ext <<_ACEOF
20276 /* end confdefs.h. */
20277 $ac_includes_default
20279 main ()
20281 static struct stat ac_aggr;
20282 if (sizeof ac_aggr.st_gen)
20283 return 0;
20285 return 0;
20287 _ACEOF
20288 rm -f conftest.$ac_objext
20289 if { (ac_try="$ac_compile"
20290 case "(($ac_try" in
20291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20292 *) ac_try_echo=$ac_try;;
20293 esac
20294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20295 (eval "$ac_compile") 2>conftest.er1
20296 ac_status=$?
20297 grep -v '^ *+' conftest.er1 >conftest.err
20298 rm -f conftest.er1
20299 cat conftest.err >&5
20300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20301 (exit $ac_status); } && {
20302 test -z "$ac_c_werror_flag" ||
20303 test ! -s conftest.err
20304 } && test -s conftest.$ac_objext; then
20305 ac_cv_member_struct_stat_st_gen=yes
20306 else
20307 echo "$as_me: failed program was:" >&5
20308 sed 's/^/| /' conftest.$ac_ext >&5
20310 ac_cv_member_struct_stat_st_gen=no
20313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20318 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
20319 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6; }
20320 if test $ac_cv_member_struct_stat_st_gen = yes; then
20322 cat >>confdefs.h <<_ACEOF
20323 #define HAVE_STRUCT_STAT_ST_GEN 1
20324 _ACEOF
20329 { echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
20330 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6; }
20331 if test "${ac_cv_member_struct_stat_st_birthtime+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 $ac_includes_default
20342 main ()
20344 static struct stat ac_aggr;
20345 if (ac_aggr.st_birthtime)
20346 return 0;
20348 return 0;
20350 _ACEOF
20351 rm -f conftest.$ac_objext
20352 if { (ac_try="$ac_compile"
20353 case "(($ac_try" in
20354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20355 *) ac_try_echo=$ac_try;;
20356 esac
20357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20358 (eval "$ac_compile") 2>conftest.er1
20359 ac_status=$?
20360 grep -v '^ *+' conftest.er1 >conftest.err
20361 rm -f conftest.er1
20362 cat conftest.err >&5
20363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20364 (exit $ac_status); } && {
20365 test -z "$ac_c_werror_flag" ||
20366 test ! -s conftest.err
20367 } && test -s conftest.$ac_objext; then
20368 ac_cv_member_struct_stat_st_birthtime=yes
20369 else
20370 echo "$as_me: failed program was:" >&5
20371 sed 's/^/| /' conftest.$ac_ext >&5
20373 cat >conftest.$ac_ext <<_ACEOF
20374 /* confdefs.h. */
20375 _ACEOF
20376 cat confdefs.h >>conftest.$ac_ext
20377 cat >>conftest.$ac_ext <<_ACEOF
20378 /* end confdefs.h. */
20379 $ac_includes_default
20381 main ()
20383 static struct stat ac_aggr;
20384 if (sizeof ac_aggr.st_birthtime)
20385 return 0;
20387 return 0;
20389 _ACEOF
20390 rm -f conftest.$ac_objext
20391 if { (ac_try="$ac_compile"
20392 case "(($ac_try" in
20393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20394 *) ac_try_echo=$ac_try;;
20395 esac
20396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20397 (eval "$ac_compile") 2>conftest.er1
20398 ac_status=$?
20399 grep -v '^ *+' conftest.er1 >conftest.err
20400 rm -f conftest.er1
20401 cat conftest.err >&5
20402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20403 (exit $ac_status); } && {
20404 test -z "$ac_c_werror_flag" ||
20405 test ! -s conftest.err
20406 } && test -s conftest.$ac_objext; then
20407 ac_cv_member_struct_stat_st_birthtime=yes
20408 else
20409 echo "$as_me: failed program was:" >&5
20410 sed 's/^/| /' conftest.$ac_ext >&5
20412 ac_cv_member_struct_stat_st_birthtime=no
20415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20420 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
20421 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6; }
20422 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
20424 cat >>confdefs.h <<_ACEOF
20425 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
20426 _ACEOF
20431 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
20432 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
20433 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
20434 echo $ECHO_N "(cached) $ECHO_C" >&6
20435 else
20436 cat >conftest.$ac_ext <<_ACEOF
20437 /* confdefs.h. */
20438 _ACEOF
20439 cat confdefs.h >>conftest.$ac_ext
20440 cat >>conftest.$ac_ext <<_ACEOF
20441 /* end confdefs.h. */
20442 $ac_includes_default
20444 main ()
20446 static struct stat ac_aggr;
20447 if (ac_aggr.st_blocks)
20448 return 0;
20450 return 0;
20452 _ACEOF
20453 rm -f conftest.$ac_objext
20454 if { (ac_try="$ac_compile"
20455 case "(($ac_try" in
20456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20457 *) ac_try_echo=$ac_try;;
20458 esac
20459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20460 (eval "$ac_compile") 2>conftest.er1
20461 ac_status=$?
20462 grep -v '^ *+' conftest.er1 >conftest.err
20463 rm -f conftest.er1
20464 cat conftest.err >&5
20465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20466 (exit $ac_status); } && {
20467 test -z "$ac_c_werror_flag" ||
20468 test ! -s conftest.err
20469 } && test -s conftest.$ac_objext; then
20470 ac_cv_member_struct_stat_st_blocks=yes
20471 else
20472 echo "$as_me: failed program was:" >&5
20473 sed 's/^/| /' conftest.$ac_ext >&5
20475 cat >conftest.$ac_ext <<_ACEOF
20476 /* confdefs.h. */
20477 _ACEOF
20478 cat confdefs.h >>conftest.$ac_ext
20479 cat >>conftest.$ac_ext <<_ACEOF
20480 /* end confdefs.h. */
20481 $ac_includes_default
20483 main ()
20485 static struct stat ac_aggr;
20486 if (sizeof ac_aggr.st_blocks)
20487 return 0;
20489 return 0;
20491 _ACEOF
20492 rm -f conftest.$ac_objext
20493 if { (ac_try="$ac_compile"
20494 case "(($ac_try" in
20495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20496 *) ac_try_echo=$ac_try;;
20497 esac
20498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20499 (eval "$ac_compile") 2>conftest.er1
20500 ac_status=$?
20501 grep -v '^ *+' conftest.er1 >conftest.err
20502 rm -f conftest.er1
20503 cat conftest.err >&5
20504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20505 (exit $ac_status); } && {
20506 test -z "$ac_c_werror_flag" ||
20507 test ! -s conftest.err
20508 } && test -s conftest.$ac_objext; then
20509 ac_cv_member_struct_stat_st_blocks=yes
20510 else
20511 echo "$as_me: failed program was:" >&5
20512 sed 's/^/| /' conftest.$ac_ext >&5
20514 ac_cv_member_struct_stat_st_blocks=no
20517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20522 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
20523 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
20524 if test $ac_cv_member_struct_stat_st_blocks = yes; then
20526 cat >>confdefs.h <<_ACEOF
20527 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
20528 _ACEOF
20531 cat >>confdefs.h <<\_ACEOF
20532 #define HAVE_ST_BLOCKS 1
20533 _ACEOF
20535 else
20536 case " $LIBOBJS " in
20537 *" fileblocks.$ac_objext "* ) ;;
20538 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
20540 esac
20546 { echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
20547 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6; }
20548 if test "${ac_cv_header_time_altzone+set}" = set; then
20549 echo $ECHO_N "(cached) $ECHO_C" >&6
20550 else
20551 cat >conftest.$ac_ext <<_ACEOF
20552 /* confdefs.h. */
20553 _ACEOF
20554 cat confdefs.h >>conftest.$ac_ext
20555 cat >>conftest.$ac_ext <<_ACEOF
20556 /* end confdefs.h. */
20557 #include <time.h>
20559 main ()
20561 return altzone;
20563 return 0;
20565 _ACEOF
20566 rm -f conftest.$ac_objext
20567 if { (ac_try="$ac_compile"
20568 case "(($ac_try" in
20569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20570 *) ac_try_echo=$ac_try;;
20571 esac
20572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20573 (eval "$ac_compile") 2>conftest.er1
20574 ac_status=$?
20575 grep -v '^ *+' conftest.er1 >conftest.err
20576 rm -f conftest.er1
20577 cat conftest.err >&5
20578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20579 (exit $ac_status); } && {
20580 test -z "$ac_c_werror_flag" ||
20581 test ! -s conftest.err
20582 } && test -s conftest.$ac_objext; then
20583 ac_cv_header_time_altzone=yes
20584 else
20585 echo "$as_me: failed program was:" >&5
20586 sed 's/^/| /' conftest.$ac_ext >&5
20588 ac_cv_header_time_altzone=no
20591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20594 { echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
20595 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6; }
20596 if test $ac_cv_header_time_altzone = yes; then
20598 cat >>confdefs.h <<\_ACEOF
20599 #define HAVE_ALTZONE 1
20600 _ACEOF
20604 was_it_defined=no
20605 { echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
20606 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6; }
20607 cat >conftest.$ac_ext <<_ACEOF
20608 /* confdefs.h. */
20609 _ACEOF
20610 cat confdefs.h >>conftest.$ac_ext
20611 cat >>conftest.$ac_ext <<_ACEOF
20612 /* end confdefs.h. */
20614 #include <sys/types.h>
20615 #include <sys/select.h>
20616 #include <sys/time.h>
20619 main ()
20623 return 0;
20625 _ACEOF
20626 rm -f conftest.$ac_objext
20627 if { (ac_try="$ac_compile"
20628 case "(($ac_try" in
20629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20630 *) ac_try_echo=$ac_try;;
20631 esac
20632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20633 (eval "$ac_compile") 2>conftest.er1
20634 ac_status=$?
20635 grep -v '^ *+' conftest.er1 >conftest.err
20636 rm -f conftest.er1
20637 cat conftest.err >&5
20638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20639 (exit $ac_status); } && {
20640 test -z "$ac_c_werror_flag" ||
20641 test ! -s conftest.err
20642 } && test -s conftest.$ac_objext; then
20645 cat >>confdefs.h <<\_ACEOF
20646 #define SYS_SELECT_WITH_SYS_TIME 1
20647 _ACEOF
20649 was_it_defined=yes
20651 else
20652 echo "$as_me: failed program was:" >&5
20653 sed 's/^/| /' conftest.$ac_ext >&5
20658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20659 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
20660 echo "${ECHO_T}$was_it_defined" >&6; }
20662 { echo "$as_me:$LINENO: checking for addrinfo" >&5
20663 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
20664 if test "${ac_cv_struct_addrinfo+set}" = set; then
20665 echo $ECHO_N "(cached) $ECHO_C" >&6
20666 else
20667 cat >conftest.$ac_ext <<_ACEOF
20668 /* confdefs.h. */
20669 _ACEOF
20670 cat confdefs.h >>conftest.$ac_ext
20671 cat >>conftest.$ac_ext <<_ACEOF
20672 /* end confdefs.h. */
20674 # include <netdb.h>
20676 main ()
20678 struct addrinfo a
20680 return 0;
20682 _ACEOF
20683 rm -f conftest.$ac_objext
20684 if { (ac_try="$ac_compile"
20685 case "(($ac_try" in
20686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20687 *) ac_try_echo=$ac_try;;
20688 esac
20689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20690 (eval "$ac_compile") 2>conftest.er1
20691 ac_status=$?
20692 grep -v '^ *+' conftest.er1 >conftest.err
20693 rm -f conftest.er1
20694 cat conftest.err >&5
20695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20696 (exit $ac_status); } && {
20697 test -z "$ac_c_werror_flag" ||
20698 test ! -s conftest.err
20699 } && test -s conftest.$ac_objext; then
20700 ac_cv_struct_addrinfo=yes
20701 else
20702 echo "$as_me: failed program was:" >&5
20703 sed 's/^/| /' conftest.$ac_ext >&5
20705 ac_cv_struct_addrinfo=no
20708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20711 { echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
20712 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6; }
20713 if test $ac_cv_struct_addrinfo = yes; then
20715 cat >>confdefs.h <<\_ACEOF
20716 #define HAVE_ADDRINFO 1
20717 _ACEOF
20721 { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
20722 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
20723 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
20724 echo $ECHO_N "(cached) $ECHO_C" >&6
20725 else
20726 cat >conftest.$ac_ext <<_ACEOF
20727 /* confdefs.h. */
20728 _ACEOF
20729 cat confdefs.h >>conftest.$ac_ext
20730 cat >>conftest.$ac_ext <<_ACEOF
20731 /* end confdefs.h. */
20733 # include <sys/types.h>
20734 # include <sys/socket.h>
20736 main ()
20738 struct sockaddr_storage s
20740 return 0;
20742 _ACEOF
20743 rm -f conftest.$ac_objext
20744 if { (ac_try="$ac_compile"
20745 case "(($ac_try" in
20746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20747 *) ac_try_echo=$ac_try;;
20748 esac
20749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20750 (eval "$ac_compile") 2>conftest.er1
20751 ac_status=$?
20752 grep -v '^ *+' conftest.er1 >conftest.err
20753 rm -f conftest.er1
20754 cat conftest.err >&5
20755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20756 (exit $ac_status); } && {
20757 test -z "$ac_c_werror_flag" ||
20758 test ! -s conftest.err
20759 } && test -s conftest.$ac_objext; then
20760 ac_cv_struct_sockaddr_storage=yes
20761 else
20762 echo "$as_me: failed program was:" >&5
20763 sed 's/^/| /' conftest.$ac_ext >&5
20765 ac_cv_struct_sockaddr_storage=no
20768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20771 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
20772 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6; }
20773 if test $ac_cv_struct_sockaddr_storage = yes; then
20775 cat >>confdefs.h <<\_ACEOF
20776 #define HAVE_SOCKADDR_STORAGE 1
20777 _ACEOF
20781 # checks for compiler characteristics
20784 { echo "$as_me:$LINENO: checking whether char is unsigned" >&5
20785 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; }
20786 if test "${ac_cv_c_char_unsigned+set}" = set; then
20787 echo $ECHO_N "(cached) $ECHO_C" >&6
20788 else
20789 cat >conftest.$ac_ext <<_ACEOF
20790 /* confdefs.h. */
20791 _ACEOF
20792 cat confdefs.h >>conftest.$ac_ext
20793 cat >>conftest.$ac_ext <<_ACEOF
20794 /* end confdefs.h. */
20795 $ac_includes_default
20797 main ()
20799 static int test_array [1 - 2 * !(((char) -1) < 0)];
20800 test_array [0] = 0
20803 return 0;
20805 _ACEOF
20806 rm -f conftest.$ac_objext
20807 if { (ac_try="$ac_compile"
20808 case "(($ac_try" in
20809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20810 *) ac_try_echo=$ac_try;;
20811 esac
20812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20813 (eval "$ac_compile") 2>conftest.er1
20814 ac_status=$?
20815 grep -v '^ *+' conftest.er1 >conftest.err
20816 rm -f conftest.er1
20817 cat conftest.err >&5
20818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20819 (exit $ac_status); } && {
20820 test -z "$ac_c_werror_flag" ||
20821 test ! -s conftest.err
20822 } && test -s conftest.$ac_objext; then
20823 ac_cv_c_char_unsigned=no
20824 else
20825 echo "$as_me: failed program was:" >&5
20826 sed 's/^/| /' conftest.$ac_ext >&5
20828 ac_cv_c_char_unsigned=yes
20831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20833 { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
20834 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; }
20835 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
20836 cat >>confdefs.h <<\_ACEOF
20837 #define __CHAR_UNSIGNED__ 1
20838 _ACEOF
20842 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20843 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
20844 if test "${ac_cv_c_const+set}" = set; then
20845 echo $ECHO_N "(cached) $ECHO_C" >&6
20846 else
20847 cat >conftest.$ac_ext <<_ACEOF
20848 /* confdefs.h. */
20849 _ACEOF
20850 cat confdefs.h >>conftest.$ac_ext
20851 cat >>conftest.$ac_ext <<_ACEOF
20852 /* end confdefs.h. */
20855 main ()
20857 /* FIXME: Include the comments suggested by Paul. */
20858 #ifndef __cplusplus
20859 /* Ultrix mips cc rejects this. */
20860 typedef int charset[2];
20861 const charset cs;
20862 /* SunOS 4.1.1 cc rejects this. */
20863 char const *const *pcpcc;
20864 char **ppc;
20865 /* NEC SVR4.0.2 mips cc rejects this. */
20866 struct point {int x, y;};
20867 static struct point const zero = {0,0};
20868 /* AIX XL C 1.02.0.0 rejects this.
20869 It does not let you subtract one const X* pointer from another in
20870 an arm of an if-expression whose if-part is not a constant
20871 expression */
20872 const char *g = "string";
20873 pcpcc = &g + (g ? g-g : 0);
20874 /* HPUX 7.0 cc rejects these. */
20875 ++pcpcc;
20876 ppc = (char**) pcpcc;
20877 pcpcc = (char const *const *) ppc;
20878 { /* SCO 3.2v4 cc rejects this. */
20879 char *t;
20880 char const *s = 0 ? (char *) 0 : (char const *) 0;
20882 *t++ = 0;
20883 if (s) return 0;
20885 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20886 int x[] = {25, 17};
20887 const int *foo = &x[0];
20888 ++foo;
20890 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20891 typedef const int *iptr;
20892 iptr p = 0;
20893 ++p;
20895 { /* AIX XL C 1.02.0.0 rejects this saying
20896 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20897 struct s { int j; const int *ap[3]; };
20898 struct s *b; b->j = 5;
20900 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20901 const int foo = 10;
20902 if (!foo) return 0;
20904 return !cs[0] && !zero.x;
20905 #endif
20908 return 0;
20910 _ACEOF
20911 rm -f conftest.$ac_objext
20912 if { (ac_try="$ac_compile"
20913 case "(($ac_try" in
20914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20915 *) ac_try_echo=$ac_try;;
20916 esac
20917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20918 (eval "$ac_compile") 2>conftest.er1
20919 ac_status=$?
20920 grep -v '^ *+' conftest.er1 >conftest.err
20921 rm -f conftest.er1
20922 cat conftest.err >&5
20923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20924 (exit $ac_status); } && {
20925 test -z "$ac_c_werror_flag" ||
20926 test ! -s conftest.err
20927 } && test -s conftest.$ac_objext; then
20928 ac_cv_c_const=yes
20929 else
20930 echo "$as_me: failed program was:" >&5
20931 sed 's/^/| /' conftest.$ac_ext >&5
20933 ac_cv_c_const=no
20936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20938 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20939 echo "${ECHO_T}$ac_cv_c_const" >&6; }
20940 if test $ac_cv_c_const = no; then
20942 cat >>confdefs.h <<\_ACEOF
20943 #define const
20944 _ACEOF
20949 works=no
20950 { echo "$as_me:$LINENO: checking for working volatile" >&5
20951 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
20952 cat >conftest.$ac_ext <<_ACEOF
20953 /* confdefs.h. */
20954 _ACEOF
20955 cat confdefs.h >>conftest.$ac_ext
20956 cat >>conftest.$ac_ext <<_ACEOF
20957 /* end confdefs.h. */
20960 main ()
20962 volatile int x; x = 0;
20964 return 0;
20966 _ACEOF
20967 rm -f conftest.$ac_objext
20968 if { (ac_try="$ac_compile"
20969 case "(($ac_try" in
20970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20971 *) ac_try_echo=$ac_try;;
20972 esac
20973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20974 (eval "$ac_compile") 2>conftest.er1
20975 ac_status=$?
20976 grep -v '^ *+' conftest.er1 >conftest.err
20977 rm -f conftest.er1
20978 cat conftest.err >&5
20979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20980 (exit $ac_status); } && {
20981 test -z "$ac_c_werror_flag" ||
20982 test ! -s conftest.err
20983 } && test -s conftest.$ac_objext; then
20984 works=yes
20985 else
20986 echo "$as_me: failed program was:" >&5
20987 sed 's/^/| /' conftest.$ac_ext >&5
20990 cat >>confdefs.h <<\_ACEOF
20991 #define volatile
20992 _ACEOF
20997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20998 { echo "$as_me:$LINENO: result: $works" >&5
20999 echo "${ECHO_T}$works" >&6; }
21001 works=no
21002 { echo "$as_me:$LINENO: checking for working signed char" >&5
21003 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6; }
21004 cat >conftest.$ac_ext <<_ACEOF
21005 /* confdefs.h. */
21006 _ACEOF
21007 cat confdefs.h >>conftest.$ac_ext
21008 cat >>conftest.$ac_ext <<_ACEOF
21009 /* end confdefs.h. */
21012 main ()
21014 signed char c;
21016 return 0;
21018 _ACEOF
21019 rm -f conftest.$ac_objext
21020 if { (ac_try="$ac_compile"
21021 case "(($ac_try" in
21022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21023 *) ac_try_echo=$ac_try;;
21024 esac
21025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21026 (eval "$ac_compile") 2>conftest.er1
21027 ac_status=$?
21028 grep -v '^ *+' conftest.er1 >conftest.err
21029 rm -f conftest.er1
21030 cat conftest.err >&5
21031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21032 (exit $ac_status); } && {
21033 test -z "$ac_c_werror_flag" ||
21034 test ! -s conftest.err
21035 } && test -s conftest.$ac_objext; then
21036 works=yes
21037 else
21038 echo "$as_me: failed program was:" >&5
21039 sed 's/^/| /' conftest.$ac_ext >&5
21042 cat >>confdefs.h <<\_ACEOF
21043 #define signed
21044 _ACEOF
21049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21050 { echo "$as_me:$LINENO: result: $works" >&5
21051 echo "${ECHO_T}$works" >&6; }
21053 have_prototypes=no
21054 { echo "$as_me:$LINENO: checking for prototypes" >&5
21055 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6; }
21056 cat >conftest.$ac_ext <<_ACEOF
21057 /* confdefs.h. */
21058 _ACEOF
21059 cat confdefs.h >>conftest.$ac_ext
21060 cat >>conftest.$ac_ext <<_ACEOF
21061 /* end confdefs.h. */
21062 int foo(int x) { return 0; }
21064 main ()
21066 return foo(10);
21068 return 0;
21070 _ACEOF
21071 rm -f conftest.$ac_objext
21072 if { (ac_try="$ac_compile"
21073 case "(($ac_try" in
21074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21075 *) ac_try_echo=$ac_try;;
21076 esac
21077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21078 (eval "$ac_compile") 2>conftest.er1
21079 ac_status=$?
21080 grep -v '^ *+' conftest.er1 >conftest.err
21081 rm -f conftest.er1
21082 cat conftest.err >&5
21083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21084 (exit $ac_status); } && {
21085 test -z "$ac_c_werror_flag" ||
21086 test ! -s conftest.err
21087 } && test -s conftest.$ac_objext; then
21090 cat >>confdefs.h <<\_ACEOF
21091 #define HAVE_PROTOTYPES 1
21092 _ACEOF
21094 have_prototypes=yes
21096 else
21097 echo "$as_me: failed program was:" >&5
21098 sed 's/^/| /' conftest.$ac_ext >&5
21103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21104 { echo "$as_me:$LINENO: result: $have_prototypes" >&5
21105 echo "${ECHO_T}$have_prototypes" >&6; }
21107 works=no
21108 { echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
21109 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6; }
21110 cat >conftest.$ac_ext <<_ACEOF
21111 /* confdefs.h. */
21112 _ACEOF
21113 cat confdefs.h >>conftest.$ac_ext
21114 cat >>conftest.$ac_ext <<_ACEOF
21115 /* end confdefs.h. */
21117 #include <stdarg.h>
21118 int foo(int x, ...) {
21119 va_list va;
21120 va_start(va, x);
21121 va_arg(va, int);
21122 va_arg(va, char *);
21123 va_arg(va, double);
21124 return 0;
21128 main ()
21130 return foo(10, "", 3.14);
21132 return 0;
21134 _ACEOF
21135 rm -f conftest.$ac_objext
21136 if { (ac_try="$ac_compile"
21137 case "(($ac_try" in
21138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21139 *) ac_try_echo=$ac_try;;
21140 esac
21141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21142 (eval "$ac_compile") 2>conftest.er1
21143 ac_status=$?
21144 grep -v '^ *+' conftest.er1 >conftest.err
21145 rm -f conftest.er1
21146 cat conftest.err >&5
21147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21148 (exit $ac_status); } && {
21149 test -z "$ac_c_werror_flag" ||
21150 test ! -s conftest.err
21151 } && test -s conftest.$ac_objext; then
21154 cat >>confdefs.h <<\_ACEOF
21155 #define HAVE_STDARG_PROTOTYPES 1
21156 _ACEOF
21158 works=yes
21160 else
21161 echo "$as_me: failed program was:" >&5
21162 sed 's/^/| /' conftest.$ac_ext >&5
21167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21168 { echo "$as_me:$LINENO: result: $works" >&5
21169 echo "${ECHO_T}$works" >&6; }
21171 # check for socketpair
21172 { echo "$as_me:$LINENO: checking for socketpair" >&5
21173 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6; }
21174 cat >conftest.$ac_ext <<_ACEOF
21175 /* confdefs.h. */
21176 _ACEOF
21177 cat confdefs.h >>conftest.$ac_ext
21178 cat >>conftest.$ac_ext <<_ACEOF
21179 /* end confdefs.h. */
21181 #include <sys/types.h>
21182 #include <sys/socket.h>
21185 main ()
21187 void *x=socketpair
21189 return 0;
21191 _ACEOF
21192 rm -f conftest.$ac_objext
21193 if { (ac_try="$ac_compile"
21194 case "(($ac_try" in
21195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21196 *) ac_try_echo=$ac_try;;
21197 esac
21198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21199 (eval "$ac_compile") 2>conftest.er1
21200 ac_status=$?
21201 grep -v '^ *+' conftest.er1 >conftest.err
21202 rm -f conftest.er1
21203 cat conftest.err >&5
21204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21205 (exit $ac_status); } && {
21206 test -z "$ac_c_werror_flag" ||
21207 test ! -s conftest.err
21208 } && test -s conftest.$ac_objext; then
21210 cat >>confdefs.h <<\_ACEOF
21211 #define HAVE_SOCKETPAIR 1
21212 _ACEOF
21214 { echo "$as_me:$LINENO: result: yes" >&5
21215 echo "${ECHO_T}yes" >&6; }
21216 else
21217 echo "$as_me: failed program was:" >&5
21218 sed 's/^/| /' conftest.$ac_ext >&5
21220 { echo "$as_me:$LINENO: result: no" >&5
21221 echo "${ECHO_T}no" >&6; }
21225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21227 # check if sockaddr has sa_len member
21228 { echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
21229 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6; }
21230 cat >conftest.$ac_ext <<_ACEOF
21231 /* confdefs.h. */
21232 _ACEOF
21233 cat confdefs.h >>conftest.$ac_ext
21234 cat >>conftest.$ac_ext <<_ACEOF
21235 /* end confdefs.h. */
21236 #include <sys/types.h>
21237 #include <sys/socket.h>
21239 main ()
21241 struct sockaddr x;
21242 x.sa_len = 0;
21244 return 0;
21246 _ACEOF
21247 rm -f conftest.$ac_objext
21248 if { (ac_try="$ac_compile"
21249 case "(($ac_try" in
21250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21251 *) ac_try_echo=$ac_try;;
21252 esac
21253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21254 (eval "$ac_compile") 2>conftest.er1
21255 ac_status=$?
21256 grep -v '^ *+' conftest.er1 >conftest.err
21257 rm -f conftest.er1
21258 cat conftest.err >&5
21259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21260 (exit $ac_status); } && {
21261 test -z "$ac_c_werror_flag" ||
21262 test ! -s conftest.err
21263 } && test -s conftest.$ac_objext; then
21264 { echo "$as_me:$LINENO: result: yes" >&5
21265 echo "${ECHO_T}yes" >&6; }
21267 cat >>confdefs.h <<\_ACEOF
21268 #define HAVE_SOCKADDR_SA_LEN 1
21269 _ACEOF
21271 else
21272 echo "$as_me: failed program was:" >&5
21273 sed 's/^/| /' conftest.$ac_ext >&5
21275 { echo "$as_me:$LINENO: result: no" >&5
21276 echo "${ECHO_T}no" >&6; }
21279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21281 va_list_is_array=no
21282 { echo "$as_me:$LINENO: checking whether va_list is an array" >&5
21283 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6; }
21284 cat >conftest.$ac_ext <<_ACEOF
21285 /* confdefs.h. */
21286 _ACEOF
21287 cat confdefs.h >>conftest.$ac_ext
21288 cat >>conftest.$ac_ext <<_ACEOF
21289 /* end confdefs.h. */
21291 #ifdef HAVE_STDARG_PROTOTYPES
21292 #include <stdarg.h>
21293 #else
21294 #include <varargs.h>
21295 #endif
21298 main ()
21300 va_list list1, list2; list1 = list2;
21302 return 0;
21304 _ACEOF
21305 rm -f conftest.$ac_objext
21306 if { (ac_try="$ac_compile"
21307 case "(($ac_try" in
21308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21309 *) ac_try_echo=$ac_try;;
21310 esac
21311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21312 (eval "$ac_compile") 2>conftest.er1
21313 ac_status=$?
21314 grep -v '^ *+' conftest.er1 >conftest.err
21315 rm -f conftest.er1
21316 cat conftest.err >&5
21317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21318 (exit $ac_status); } && {
21319 test -z "$ac_c_werror_flag" ||
21320 test ! -s conftest.err
21321 } && test -s conftest.$ac_objext; then
21323 else
21324 echo "$as_me: failed program was:" >&5
21325 sed 's/^/| /' conftest.$ac_ext >&5
21329 cat >>confdefs.h <<\_ACEOF
21330 #define VA_LIST_IS_ARRAY 1
21331 _ACEOF
21333 va_list_is_array=yes
21337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21338 { echo "$as_me:$LINENO: result: $va_list_is_array" >&5
21339 echo "${ECHO_T}$va_list_is_array" >&6; }
21341 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
21345 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
21346 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
21347 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
21348 echo $ECHO_N "(cached) $ECHO_C" >&6
21349 else
21350 cat >conftest.$ac_ext <<_ACEOF
21351 /* confdefs.h. */
21352 _ACEOF
21353 cat confdefs.h >>conftest.$ac_ext
21354 cat >>conftest.$ac_ext <<_ACEOF
21355 /* end confdefs.h. */
21356 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
21357 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21358 #define gethostbyname_r innocuous_gethostbyname_r
21360 /* System header to define __stub macros and hopefully few prototypes,
21361 which can conflict with char gethostbyname_r (); below.
21362 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21363 <limits.h> exists even on freestanding compilers. */
21365 #ifdef __STDC__
21366 # include <limits.h>
21367 #else
21368 # include <assert.h>
21369 #endif
21371 #undef gethostbyname_r
21373 /* Override any GCC internal prototype to avoid an error.
21374 Use char because int might match the return type of a GCC
21375 builtin and then its argument prototype would still apply. */
21376 #ifdef __cplusplus
21377 extern "C"
21378 #endif
21379 char gethostbyname_r ();
21380 /* The GNU C library defines this for functions which it implements
21381 to always fail with ENOSYS. Some functions are actually named
21382 something starting with __ and the normal name is an alias. */
21383 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
21384 choke me
21385 #endif
21388 main ()
21390 return gethostbyname_r ();
21392 return 0;
21394 _ACEOF
21395 rm -f conftest.$ac_objext conftest$ac_exeext
21396 if { (ac_try="$ac_link"
21397 case "(($ac_try" in
21398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21399 *) ac_try_echo=$ac_try;;
21400 esac
21401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21402 (eval "$ac_link") 2>conftest.er1
21403 ac_status=$?
21404 grep -v '^ *+' conftest.er1 >conftest.err
21405 rm -f conftest.er1
21406 cat conftest.err >&5
21407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21408 (exit $ac_status); } && {
21409 test -z "$ac_c_werror_flag" ||
21410 test ! -s conftest.err
21411 } && test -s conftest$ac_exeext &&
21412 $as_test_x conftest$ac_exeext; then
21413 ac_cv_func_gethostbyname_r=yes
21414 else
21415 echo "$as_me: failed program was:" >&5
21416 sed 's/^/| /' conftest.$ac_ext >&5
21418 ac_cv_func_gethostbyname_r=no
21421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21422 conftest$ac_exeext conftest.$ac_ext
21424 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
21425 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
21426 if test $ac_cv_func_gethostbyname_r = yes; then
21428 cat >>confdefs.h <<\_ACEOF
21429 #define HAVE_GETHOSTBYNAME_R 1
21430 _ACEOF
21432 { echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
21433 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6; }
21434 OLD_CFLAGS=$CFLAGS
21435 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
21436 cat >conftest.$ac_ext <<_ACEOF
21437 /* confdefs.h. */
21438 _ACEOF
21439 cat confdefs.h >>conftest.$ac_ext
21440 cat >>conftest.$ac_ext <<_ACEOF
21441 /* end confdefs.h. */
21443 # include <netdb.h>
21446 main ()
21449 char *name;
21450 struct hostent *he, *res;
21451 char buffer[2048];
21452 int buflen = 2048;
21453 int h_errnop;
21455 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
21458 return 0;
21460 _ACEOF
21461 rm -f conftest.$ac_objext
21462 if { (ac_try="$ac_compile"
21463 case "(($ac_try" in
21464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21465 *) ac_try_echo=$ac_try;;
21466 esac
21467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21468 (eval "$ac_compile") 2>conftest.er1
21469 ac_status=$?
21470 grep -v '^ *+' conftest.er1 >conftest.err
21471 rm -f conftest.er1
21472 cat conftest.err >&5
21473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21474 (exit $ac_status); } && {
21475 test -z "$ac_c_werror_flag" ||
21476 test ! -s conftest.err
21477 } && test -s conftest.$ac_objext; then
21479 cat >>confdefs.h <<\_ACEOF
21480 #define HAVE_GETHOSTBYNAME_R 1
21481 _ACEOF
21484 cat >>confdefs.h <<\_ACEOF
21485 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
21486 _ACEOF
21488 { echo "$as_me:$LINENO: result: yes" >&5
21489 echo "${ECHO_T}yes" >&6; }
21491 else
21492 echo "$as_me: failed program was:" >&5
21493 sed 's/^/| /' conftest.$ac_ext >&5
21496 { echo "$as_me:$LINENO: result: no" >&5
21497 echo "${ECHO_T}no" >&6; }
21498 { echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
21499 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6; }
21500 cat >conftest.$ac_ext <<_ACEOF
21501 /* confdefs.h. */
21502 _ACEOF
21503 cat confdefs.h >>conftest.$ac_ext
21504 cat >>conftest.$ac_ext <<_ACEOF
21505 /* end confdefs.h. */
21507 # include <netdb.h>
21510 main ()
21513 char *name;
21514 struct hostent *he;
21515 char buffer[2048];
21516 int buflen = 2048;
21517 int h_errnop;
21519 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
21522 return 0;
21524 _ACEOF
21525 rm -f conftest.$ac_objext
21526 if { (ac_try="$ac_compile"
21527 case "(($ac_try" in
21528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21529 *) ac_try_echo=$ac_try;;
21530 esac
21531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21532 (eval "$ac_compile") 2>conftest.er1
21533 ac_status=$?
21534 grep -v '^ *+' conftest.er1 >conftest.err
21535 rm -f conftest.er1
21536 cat conftest.err >&5
21537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21538 (exit $ac_status); } && {
21539 test -z "$ac_c_werror_flag" ||
21540 test ! -s conftest.err
21541 } && test -s conftest.$ac_objext; then
21543 cat >>confdefs.h <<\_ACEOF
21544 #define HAVE_GETHOSTBYNAME_R 1
21545 _ACEOF
21548 cat >>confdefs.h <<\_ACEOF
21549 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
21550 _ACEOF
21552 { echo "$as_me:$LINENO: result: yes" >&5
21553 echo "${ECHO_T}yes" >&6; }
21555 else
21556 echo "$as_me: failed program was:" >&5
21557 sed 's/^/| /' conftest.$ac_ext >&5
21560 { echo "$as_me:$LINENO: result: no" >&5
21561 echo "${ECHO_T}no" >&6; }
21562 { echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
21563 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6; }
21564 cat >conftest.$ac_ext <<_ACEOF
21565 /* confdefs.h. */
21566 _ACEOF
21567 cat confdefs.h >>conftest.$ac_ext
21568 cat >>conftest.$ac_ext <<_ACEOF
21569 /* end confdefs.h. */
21571 # include <netdb.h>
21574 main ()
21577 char *name;
21578 struct hostent *he;
21579 struct hostent_data data;
21581 (void) gethostbyname_r(name, he, &data);
21584 return 0;
21586 _ACEOF
21587 rm -f conftest.$ac_objext
21588 if { (ac_try="$ac_compile"
21589 case "(($ac_try" in
21590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21591 *) ac_try_echo=$ac_try;;
21592 esac
21593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21594 (eval "$ac_compile") 2>conftest.er1
21595 ac_status=$?
21596 grep -v '^ *+' conftest.er1 >conftest.err
21597 rm -f conftest.er1
21598 cat conftest.err >&5
21599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21600 (exit $ac_status); } && {
21601 test -z "$ac_c_werror_flag" ||
21602 test ! -s conftest.err
21603 } && test -s conftest.$ac_objext; then
21605 cat >>confdefs.h <<\_ACEOF
21606 #define HAVE_GETHOSTBYNAME_R 1
21607 _ACEOF
21610 cat >>confdefs.h <<\_ACEOF
21611 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
21612 _ACEOF
21614 { echo "$as_me:$LINENO: result: yes" >&5
21615 echo "${ECHO_T}yes" >&6; }
21617 else
21618 echo "$as_me: failed program was:" >&5
21619 sed 's/^/| /' conftest.$ac_ext >&5
21622 { echo "$as_me:$LINENO: result: no" >&5
21623 echo "${ECHO_T}no" >&6; }
21627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21636 CFLAGS=$OLD_CFLAGS
21638 else
21641 for ac_func in gethostbyname
21643 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21644 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21645 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21646 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21647 echo $ECHO_N "(cached) $ECHO_C" >&6
21648 else
21649 cat >conftest.$ac_ext <<_ACEOF
21650 /* confdefs.h. */
21651 _ACEOF
21652 cat confdefs.h >>conftest.$ac_ext
21653 cat >>conftest.$ac_ext <<_ACEOF
21654 /* end confdefs.h. */
21655 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21656 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21657 #define $ac_func innocuous_$ac_func
21659 /* System header to define __stub macros and hopefully few prototypes,
21660 which can conflict with char $ac_func (); below.
21661 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21662 <limits.h> exists even on freestanding compilers. */
21664 #ifdef __STDC__
21665 # include <limits.h>
21666 #else
21667 # include <assert.h>
21668 #endif
21670 #undef $ac_func
21672 /* Override any GCC internal prototype to avoid an error.
21673 Use char because int might match the return type of a GCC
21674 builtin and then its argument prototype would still apply. */
21675 #ifdef __cplusplus
21676 extern "C"
21677 #endif
21678 char $ac_func ();
21679 /* The GNU C library defines this for functions which it implements
21680 to always fail with ENOSYS. Some functions are actually named
21681 something starting with __ and the normal name is an alias. */
21682 #if defined __stub_$ac_func || defined __stub___$ac_func
21683 choke me
21684 #endif
21687 main ()
21689 return $ac_func ();
21691 return 0;
21693 _ACEOF
21694 rm -f conftest.$ac_objext conftest$ac_exeext
21695 if { (ac_try="$ac_link"
21696 case "(($ac_try" in
21697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21698 *) ac_try_echo=$ac_try;;
21699 esac
21700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21701 (eval "$ac_link") 2>conftest.er1
21702 ac_status=$?
21703 grep -v '^ *+' conftest.er1 >conftest.err
21704 rm -f conftest.er1
21705 cat conftest.err >&5
21706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21707 (exit $ac_status); } && {
21708 test -z "$ac_c_werror_flag" ||
21709 test ! -s conftest.err
21710 } && test -s conftest$ac_exeext &&
21711 $as_test_x conftest$ac_exeext; then
21712 eval "$as_ac_var=yes"
21713 else
21714 echo "$as_me: failed program was:" >&5
21715 sed 's/^/| /' conftest.$ac_ext >&5
21717 eval "$as_ac_var=no"
21720 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21721 conftest$ac_exeext conftest.$ac_ext
21723 ac_res=`eval echo '${'$as_ac_var'}'`
21724 { echo "$as_me:$LINENO: result: $ac_res" >&5
21725 echo "${ECHO_T}$ac_res" >&6; }
21726 if test `eval echo '${'$as_ac_var'}'` = yes; then
21727 cat >>confdefs.h <<_ACEOF
21728 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21729 _ACEOF
21732 done
21743 # checks for system services
21744 # (none yet)
21746 # Linux requires this for correct f.p. operations
21747 { echo "$as_me:$LINENO: checking for __fpu_control" >&5
21748 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6; }
21749 if test "${ac_cv_func___fpu_control+set}" = set; then
21750 echo $ECHO_N "(cached) $ECHO_C" >&6
21751 else
21752 cat >conftest.$ac_ext <<_ACEOF
21753 /* confdefs.h. */
21754 _ACEOF
21755 cat confdefs.h >>conftest.$ac_ext
21756 cat >>conftest.$ac_ext <<_ACEOF
21757 /* end confdefs.h. */
21758 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
21759 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21760 #define __fpu_control innocuous___fpu_control
21762 /* System header to define __stub macros and hopefully few prototypes,
21763 which can conflict with char __fpu_control (); below.
21764 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21765 <limits.h> exists even on freestanding compilers. */
21767 #ifdef __STDC__
21768 # include <limits.h>
21769 #else
21770 # include <assert.h>
21771 #endif
21773 #undef __fpu_control
21775 /* Override any GCC internal prototype to avoid an error.
21776 Use char because int might match the return type of a GCC
21777 builtin and then its argument prototype would still apply. */
21778 #ifdef __cplusplus
21779 extern "C"
21780 #endif
21781 char __fpu_control ();
21782 /* The GNU C library defines this for functions which it implements
21783 to always fail with ENOSYS. Some functions are actually named
21784 something starting with __ and the normal name is an alias. */
21785 #if defined __stub___fpu_control || defined __stub_____fpu_control
21786 choke me
21787 #endif
21790 main ()
21792 return __fpu_control ();
21794 return 0;
21796 _ACEOF
21797 rm -f conftest.$ac_objext conftest$ac_exeext
21798 if { (ac_try="$ac_link"
21799 case "(($ac_try" in
21800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21801 *) ac_try_echo=$ac_try;;
21802 esac
21803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21804 (eval "$ac_link") 2>conftest.er1
21805 ac_status=$?
21806 grep -v '^ *+' conftest.er1 >conftest.err
21807 rm -f conftest.er1
21808 cat conftest.err >&5
21809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21810 (exit $ac_status); } && {
21811 test -z "$ac_c_werror_flag" ||
21812 test ! -s conftest.err
21813 } && test -s conftest$ac_exeext &&
21814 $as_test_x conftest$ac_exeext; then
21815 ac_cv_func___fpu_control=yes
21816 else
21817 echo "$as_me: failed program was:" >&5
21818 sed 's/^/| /' conftest.$ac_ext >&5
21820 ac_cv_func___fpu_control=no
21823 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21824 conftest$ac_exeext conftest.$ac_ext
21826 { echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
21827 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6; }
21828 if test $ac_cv_func___fpu_control = yes; then
21830 else
21832 { echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
21833 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6; }
21834 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
21835 echo $ECHO_N "(cached) $ECHO_C" >&6
21836 else
21837 ac_check_lib_save_LIBS=$LIBS
21838 LIBS="-lieee $LIBS"
21839 cat >conftest.$ac_ext <<_ACEOF
21840 /* confdefs.h. */
21841 _ACEOF
21842 cat confdefs.h >>conftest.$ac_ext
21843 cat >>conftest.$ac_ext <<_ACEOF
21844 /* end confdefs.h. */
21846 /* Override any GCC internal prototype to avoid an error.
21847 Use char because int might match the return type of a GCC
21848 builtin and then its argument prototype would still apply. */
21849 #ifdef __cplusplus
21850 extern "C"
21851 #endif
21852 char __fpu_control ();
21854 main ()
21856 return __fpu_control ();
21858 return 0;
21860 _ACEOF
21861 rm -f conftest.$ac_objext conftest$ac_exeext
21862 if { (ac_try="$ac_link"
21863 case "(($ac_try" in
21864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21865 *) ac_try_echo=$ac_try;;
21866 esac
21867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21868 (eval "$ac_link") 2>conftest.er1
21869 ac_status=$?
21870 grep -v '^ *+' conftest.er1 >conftest.err
21871 rm -f conftest.er1
21872 cat conftest.err >&5
21873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21874 (exit $ac_status); } && {
21875 test -z "$ac_c_werror_flag" ||
21876 test ! -s conftest.err
21877 } && test -s conftest$ac_exeext &&
21878 $as_test_x conftest$ac_exeext; then
21879 ac_cv_lib_ieee___fpu_control=yes
21880 else
21881 echo "$as_me: failed program was:" >&5
21882 sed 's/^/| /' conftest.$ac_ext >&5
21884 ac_cv_lib_ieee___fpu_control=no
21887 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21888 conftest$ac_exeext conftest.$ac_ext
21889 LIBS=$ac_check_lib_save_LIBS
21891 { echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
21892 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6; }
21893 if test $ac_cv_lib_ieee___fpu_control = yes; then
21894 cat >>confdefs.h <<_ACEOF
21895 #define HAVE_LIBIEEE 1
21896 _ACEOF
21898 LIBS="-lieee $LIBS"
21906 # Check for --with-fpectl
21907 { echo "$as_me:$LINENO: checking for --with-fpectl" >&5
21908 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6; }
21910 # Check whether --with-fpectl was given.
21911 if test "${with_fpectl+set}" = set; then
21912 withval=$with_fpectl;
21913 if test "$withval" != no
21914 then
21916 cat >>confdefs.h <<\_ACEOF
21917 #define WANT_SIGFPE_HANDLER 1
21918 _ACEOF
21920 { echo "$as_me:$LINENO: result: yes" >&5
21921 echo "${ECHO_T}yes" >&6; }
21922 else { echo "$as_me:$LINENO: result: no" >&5
21923 echo "${ECHO_T}no" >&6; }
21925 else
21926 { echo "$as_me:$LINENO: result: no" >&5
21927 echo "${ECHO_T}no" >&6; }
21931 # check for --with-libm=...
21933 case $ac_sys_system in
21934 Darwin) ;;
21935 *) LIBM=-lm
21936 esac
21937 { echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
21938 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6; }
21940 # Check whether --with-libm was given.
21941 if test "${with_libm+set}" = set; then
21942 withval=$with_libm;
21943 if test "$withval" = no
21944 then LIBM=
21945 { echo "$as_me:$LINENO: result: force LIBM empty" >&5
21946 echo "${ECHO_T}force LIBM empty" >&6; }
21947 elif test "$withval" != yes
21948 then LIBM=$withval
21949 { echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
21950 echo "${ECHO_T}set LIBM=\"$withval\"" >&6; }
21951 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
21952 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
21953 { (exit 1); exit 1; }; }
21955 else
21956 { echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
21957 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6; }
21961 # check for --with-libc=...
21963 { echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
21964 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6; }
21966 # Check whether --with-libc was given.
21967 if test "${with_libc+set}" = set; then
21968 withval=$with_libc;
21969 if test "$withval" = no
21970 then LIBC=
21971 { echo "$as_me:$LINENO: result: force LIBC empty" >&5
21972 echo "${ECHO_T}force LIBC empty" >&6; }
21973 elif test "$withval" != yes
21974 then LIBC=$withval
21975 { echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
21976 echo "${ECHO_T}set LIBC=\"$withval\"" >&6; }
21977 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
21978 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
21979 { (exit 1); exit 1; }; }
21981 else
21982 { echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
21983 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6; }
21987 # **************************************************
21988 # * Check for various properties of floating point *
21989 # **************************************************
21991 { echo "$as_me:$LINENO: checking whether C doubles are little-endian IEEE 754 binary64" >&5
21992 echo $ECHO_N "checking whether C doubles are little-endian IEEE 754 binary64... $ECHO_C" >&6; }
21993 if test "${ac_cv_little_endian_double+set}" = set; then
21994 echo $ECHO_N "(cached) $ECHO_C" >&6
21995 else
21997 if test "$cross_compiling" = yes; then
21998 ac_cv_little_endian_double=no
21999 else
22000 cat >conftest.$ac_ext <<_ACEOF
22001 /* confdefs.h. */
22002 _ACEOF
22003 cat confdefs.h >>conftest.$ac_ext
22004 cat >>conftest.$ac_ext <<_ACEOF
22005 /* end confdefs.h. */
22007 #include <string.h>
22008 int main() {
22009 double x = 9006104071832581.0;
22010 if (memcmp(&x, "\x05\x04\x03\x02\x01\xff\x3f\x43", 8) == 0)
22011 return 0;
22012 else
22013 return 1;
22016 _ACEOF
22017 rm -f conftest$ac_exeext
22018 if { (ac_try="$ac_link"
22019 case "(($ac_try" in
22020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22021 *) ac_try_echo=$ac_try;;
22022 esac
22023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22024 (eval "$ac_link") 2>&5
22025 ac_status=$?
22026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22027 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22028 { (case "(($ac_try" in
22029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22030 *) ac_try_echo=$ac_try;;
22031 esac
22032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22033 (eval "$ac_try") 2>&5
22034 ac_status=$?
22035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22036 (exit $ac_status); }; }; then
22037 ac_cv_little_endian_double=yes
22038 else
22039 echo "$as_me: program exited with status $ac_status" >&5
22040 echo "$as_me: failed program was:" >&5
22041 sed 's/^/| /' conftest.$ac_ext >&5
22043 ( exit $ac_status )
22044 ac_cv_little_endian_double=no
22046 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22052 { echo "$as_me:$LINENO: result: $ac_cv_little_endian_double" >&5
22053 echo "${ECHO_T}$ac_cv_little_endian_double" >&6; }
22054 if test "$ac_cv_little_endian_double" = yes
22055 then
22057 cat >>confdefs.h <<\_ACEOF
22058 #define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1
22059 _ACEOF
22063 { echo "$as_me:$LINENO: checking whether C doubles are big-endian IEEE 754 binary64" >&5
22064 echo $ECHO_N "checking whether C doubles are big-endian IEEE 754 binary64... $ECHO_C" >&6; }
22065 if test "${ac_cv_big_endian_double+set}" = set; then
22066 echo $ECHO_N "(cached) $ECHO_C" >&6
22067 else
22069 if test "$cross_compiling" = yes; then
22070 ac_cv_big_endian_double=no
22071 else
22072 cat >conftest.$ac_ext <<_ACEOF
22073 /* confdefs.h. */
22074 _ACEOF
22075 cat confdefs.h >>conftest.$ac_ext
22076 cat >>conftest.$ac_ext <<_ACEOF
22077 /* end confdefs.h. */
22079 #include <string.h>
22080 int main() {
22081 double x = 9006104071832581.0;
22082 if (memcmp(&x, "\x43\x3f\xff\x01\x02\x03\x04\x05", 8) == 0)
22083 return 0;
22084 else
22085 return 1;
22088 _ACEOF
22089 rm -f conftest$ac_exeext
22090 if { (ac_try="$ac_link"
22091 case "(($ac_try" in
22092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22093 *) ac_try_echo=$ac_try;;
22094 esac
22095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22096 (eval "$ac_link") 2>&5
22097 ac_status=$?
22098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22099 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22100 { (case "(($ac_try" in
22101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22102 *) ac_try_echo=$ac_try;;
22103 esac
22104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22105 (eval "$ac_try") 2>&5
22106 ac_status=$?
22107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22108 (exit $ac_status); }; }; then
22109 ac_cv_big_endian_double=yes
22110 else
22111 echo "$as_me: program exited with status $ac_status" >&5
22112 echo "$as_me: failed program was:" >&5
22113 sed 's/^/| /' conftest.$ac_ext >&5
22115 ( exit $ac_status )
22116 ac_cv_big_endian_double=no
22118 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22124 { echo "$as_me:$LINENO: result: $ac_cv_big_endian_double" >&5
22125 echo "${ECHO_T}$ac_cv_big_endian_double" >&6; }
22126 if test "$ac_cv_big_endian_double" = yes
22127 then
22129 cat >>confdefs.h <<\_ACEOF
22130 #define DOUBLE_IS_BIG_ENDIAN_IEEE754 1
22131 _ACEOF
22135 # Some ARM platforms use a mixed-endian representation for doubles.
22136 # While Python doesn't currently have full support for these platforms
22137 # (see e.g., issue 1762561), we can at least make sure that float <-> string
22138 # conversions work.
22139 { echo "$as_me:$LINENO: checking whether C doubles are ARM mixed-endian IEEE 754 binary64" >&5
22140 echo $ECHO_N "checking whether C doubles are ARM mixed-endian IEEE 754 binary64... $ECHO_C" >&6; }
22141 if test "${ac_cv_mixed_endian_double+set}" = set; then
22142 echo $ECHO_N "(cached) $ECHO_C" >&6
22143 else
22145 if test "$cross_compiling" = yes; then
22146 ac_cv_mixed_endian_double=no
22147 else
22148 cat >conftest.$ac_ext <<_ACEOF
22149 /* confdefs.h. */
22150 _ACEOF
22151 cat confdefs.h >>conftest.$ac_ext
22152 cat >>conftest.$ac_ext <<_ACEOF
22153 /* end confdefs.h. */
22155 #include <string.h>
22156 int main() {
22157 double x = 9006104071832581.0;
22158 if (memcmp(&x, "\x01\xff\x3f\x43\x05\x04\x03\x02", 8) == 0)
22159 return 0;
22160 else
22161 return 1;
22164 _ACEOF
22165 rm -f conftest$ac_exeext
22166 if { (ac_try="$ac_link"
22167 case "(($ac_try" in
22168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22169 *) ac_try_echo=$ac_try;;
22170 esac
22171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22172 (eval "$ac_link") 2>&5
22173 ac_status=$?
22174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22175 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22176 { (case "(($ac_try" in
22177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22178 *) ac_try_echo=$ac_try;;
22179 esac
22180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22181 (eval "$ac_try") 2>&5
22182 ac_status=$?
22183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22184 (exit $ac_status); }; }; then
22185 ac_cv_mixed_endian_double=yes
22186 else
22187 echo "$as_me: program exited with status $ac_status" >&5
22188 echo "$as_me: failed program was:" >&5
22189 sed 's/^/| /' conftest.$ac_ext >&5
22191 ( exit $ac_status )
22192 ac_cv_mixed_endian_double=no
22194 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22200 { echo "$as_me:$LINENO: result: $ac_cv_mixed_endian_double" >&5
22201 echo "${ECHO_T}$ac_cv_mixed_endian_double" >&6; }
22202 if test "$ac_cv_mixed_endian_double" = yes
22203 then
22205 cat >>confdefs.h <<\_ACEOF
22206 #define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1
22207 _ACEOF
22211 # The short float repr introduced in Python 3.1 requires the
22212 # correctly-rounded string <-> double conversion functions from
22213 # Python/dtoa.c, which in turn require that the FPU uses 53-bit
22214 # rounding; this is a problem on x86, where the x87 FPU has a default
22215 # rounding precision of 64 bits. For gcc/x86, we try to fix this by
22216 # using inline assembler to get and set the x87 FPU control word.
22217 if test "$GCC" = yes && test -n "`$CC -dM -E - </dev/null | grep i386`"
22218 then
22219 # Check that it's okay to use gcc inline assembler to get and set
22220 # x87 control word. It should be, but you never know...
22221 { echo "$as_me:$LINENO: checking whether we can use gcc inline assembler to get and set x87 control word" >&5
22222 echo $ECHO_N "checking whether we can use gcc inline assembler to get and set x87 control word... $ECHO_C" >&6; }
22223 cat >conftest.$ac_ext <<_ACEOF
22224 /* confdefs.h. */
22225 _ACEOF
22226 cat confdefs.h >>conftest.$ac_ext
22227 cat >>conftest.$ac_ext <<_ACEOF
22228 /* end confdefs.h. */
22231 main ()
22234 unsigned short cw;
22235 __asm__ __volatile__ ("fnstcw %0" : "=m" (cw));
22236 __asm__ __volatile__ ("fldcw %0" : : "m" (cw));
22239 return 0;
22241 _ACEOF
22242 rm -f conftest.$ac_objext
22243 if { (ac_try="$ac_compile"
22244 case "(($ac_try" in
22245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22246 *) ac_try_echo=$ac_try;;
22247 esac
22248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22249 (eval "$ac_compile") 2>conftest.er1
22250 ac_status=$?
22251 grep -v '^ *+' conftest.er1 >conftest.err
22252 rm -f conftest.er1
22253 cat conftest.err >&5
22254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22255 (exit $ac_status); } && {
22256 test -z "$ac_c_werror_flag" ||
22257 test ! -s conftest.err
22258 } && test -s conftest.$ac_objext; then
22259 have_gcc_asm_for_x87=yes
22260 else
22261 echo "$as_me: failed program was:" >&5
22262 sed 's/^/| /' conftest.$ac_ext >&5
22264 have_gcc_asm_for_x87=no
22267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22268 { echo "$as_me:$LINENO: result: $have_gcc_asm_for_x87" >&5
22269 echo "${ECHO_T}$have_gcc_asm_for_x87" >&6; }
22270 if test "$have_gcc_asm_for_x87" = yes
22271 then
22273 cat >>confdefs.h <<\_ACEOF
22274 #define HAVE_GCC_ASM_FOR_X87 1
22275 _ACEOF
22280 # Detect whether system arithmetic is subject to x87-style double
22281 # rounding issues. The result of this test has little meaning on non
22282 # IEEE 754 platforms. On IEEE 754, test should return 1 if rounding
22283 # mode is round-to-nearest and double rounding issues are present, and
22284 # 0 otherwise. See http://bugs.python.org/issue2937 for more info.
22285 { echo "$as_me:$LINENO: checking for x87-style double rounding" >&5
22286 echo $ECHO_N "checking for x87-style double rounding... $ECHO_C" >&6; }
22287 # $BASECFLAGS may affect the result
22288 ac_save_cc="$CC"
22289 CC="$CC $BASECFLAGS"
22290 if test "$cross_compiling" = yes; then
22291 ac_cv_x87_double_rounding=no
22292 else
22293 cat >conftest.$ac_ext <<_ACEOF
22294 /* confdefs.h. */
22295 _ACEOF
22296 cat confdefs.h >>conftest.$ac_ext
22297 cat >>conftest.$ac_ext <<_ACEOF
22298 /* end confdefs.h. */
22300 #include <stdlib.h>
22301 #include <math.h>
22302 int main() {
22303 volatile double x, y, z;
22304 /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */
22305 x = 0.99999999999999989; /* 1-2**-53 */
22306 y = 1./x;
22307 if (y != 1.)
22308 exit(0);
22309 /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */
22310 x = 1e16;
22311 y = 2.99999;
22312 z = x + y;
22313 if (z != 1e16+4.)
22314 exit(0);
22315 /* both tests show evidence of double rounding */
22316 exit(1);
22319 _ACEOF
22320 rm -f conftest$ac_exeext
22321 if { (ac_try="$ac_link"
22322 case "(($ac_try" in
22323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22324 *) ac_try_echo=$ac_try;;
22325 esac
22326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22327 (eval "$ac_link") 2>&5
22328 ac_status=$?
22329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22330 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22331 { (case "(($ac_try" in
22332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22333 *) ac_try_echo=$ac_try;;
22334 esac
22335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22336 (eval "$ac_try") 2>&5
22337 ac_status=$?
22338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22339 (exit $ac_status); }; }; then
22340 ac_cv_x87_double_rounding=no
22341 else
22342 echo "$as_me: program exited with status $ac_status" >&5
22343 echo "$as_me: failed program was:" >&5
22344 sed 's/^/| /' conftest.$ac_ext >&5
22346 ( exit $ac_status )
22347 ac_cv_x87_double_rounding=yes
22349 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22353 CC="$ac_save_cc"
22354 { echo "$as_me:$LINENO: result: $ac_cv_x87_double_rounding" >&5
22355 echo "${ECHO_T}$ac_cv_x87_double_rounding" >&6; }
22356 if test "$ac_cv_x87_double_rounding" = yes
22357 then
22359 cat >>confdefs.h <<\_ACEOF
22360 #define X87_DOUBLE_ROUNDING 1
22361 _ACEOF
22365 # ************************************
22366 # * Check for mathematical functions *
22367 # ************************************
22369 LIBS_SAVE=$LIBS
22370 LIBS="$LIBS $LIBM"
22372 # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of
22373 # -0. on some architectures.
22374 { echo "$as_me:$LINENO: checking whether tanh preserves the sign of zero" >&5
22375 echo $ECHO_N "checking whether tanh preserves the sign of zero... $ECHO_C" >&6; }
22376 if test "${ac_cv_tanh_preserves_zero_sign+set}" = set; then
22377 echo $ECHO_N "(cached) $ECHO_C" >&6
22378 else
22380 if test "$cross_compiling" = yes; then
22381 ac_cv_tanh_preserves_zero_sign=no
22382 else
22383 cat >conftest.$ac_ext <<_ACEOF
22384 /* confdefs.h. */
22385 _ACEOF
22386 cat confdefs.h >>conftest.$ac_ext
22387 cat >>conftest.$ac_ext <<_ACEOF
22388 /* end confdefs.h. */
22390 #include <math.h>
22391 #include <stdlib.h>
22392 int main() {
22393 /* return 0 if either negative zeros don't exist
22394 on this platform or if negative zeros exist
22395 and tanh(-0.) == -0. */
22396 if (atan2(0., -1.) == atan2(-0., -1.) ||
22397 atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0);
22398 else exit(1);
22401 _ACEOF
22402 rm -f conftest$ac_exeext
22403 if { (ac_try="$ac_link"
22404 case "(($ac_try" in
22405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22406 *) ac_try_echo=$ac_try;;
22407 esac
22408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22409 (eval "$ac_link") 2>&5
22410 ac_status=$?
22411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22412 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22413 { (case "(($ac_try" in
22414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22415 *) ac_try_echo=$ac_try;;
22416 esac
22417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22418 (eval "$ac_try") 2>&5
22419 ac_status=$?
22420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22421 (exit $ac_status); }; }; then
22422 ac_cv_tanh_preserves_zero_sign=yes
22423 else
22424 echo "$as_me: program exited with status $ac_status" >&5
22425 echo "$as_me: failed program was:" >&5
22426 sed 's/^/| /' conftest.$ac_ext >&5
22428 ( exit $ac_status )
22429 ac_cv_tanh_preserves_zero_sign=no
22431 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22437 { echo "$as_me:$LINENO: result: $ac_cv_tanh_preserves_zero_sign" >&5
22438 echo "${ECHO_T}$ac_cv_tanh_preserves_zero_sign" >&6; }
22439 if test "$ac_cv_tanh_preserves_zero_sign" = yes
22440 then
22442 cat >>confdefs.h <<\_ACEOF
22443 #define TANH_PRESERVES_ZERO_SIGN 1
22444 _ACEOF
22457 for ac_func in acosh asinh atanh copysign expm1 finite hypot log1p round
22459 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22460 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22461 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22462 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22463 echo $ECHO_N "(cached) $ECHO_C" >&6
22464 else
22465 cat >conftest.$ac_ext <<_ACEOF
22466 /* confdefs.h. */
22467 _ACEOF
22468 cat confdefs.h >>conftest.$ac_ext
22469 cat >>conftest.$ac_ext <<_ACEOF
22470 /* end confdefs.h. */
22471 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22472 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22473 #define $ac_func innocuous_$ac_func
22475 /* System header to define __stub macros and hopefully few prototypes,
22476 which can conflict with char $ac_func (); below.
22477 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22478 <limits.h> exists even on freestanding compilers. */
22480 #ifdef __STDC__
22481 # include <limits.h>
22482 #else
22483 # include <assert.h>
22484 #endif
22486 #undef $ac_func
22488 /* Override any GCC internal prototype to avoid an error.
22489 Use char because int might match the return type of a GCC
22490 builtin and then its argument prototype would still apply. */
22491 #ifdef __cplusplus
22492 extern "C"
22493 #endif
22494 char $ac_func ();
22495 /* The GNU C library defines this for functions which it implements
22496 to always fail with ENOSYS. Some functions are actually named
22497 something starting with __ and the normal name is an alias. */
22498 #if defined __stub_$ac_func || defined __stub___$ac_func
22499 choke me
22500 #endif
22503 main ()
22505 return $ac_func ();
22507 return 0;
22509 _ACEOF
22510 rm -f conftest.$ac_objext conftest$ac_exeext
22511 if { (ac_try="$ac_link"
22512 case "(($ac_try" in
22513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22514 *) ac_try_echo=$ac_try;;
22515 esac
22516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22517 (eval "$ac_link") 2>conftest.er1
22518 ac_status=$?
22519 grep -v '^ *+' conftest.er1 >conftest.err
22520 rm -f conftest.er1
22521 cat conftest.err >&5
22522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22523 (exit $ac_status); } && {
22524 test -z "$ac_c_werror_flag" ||
22525 test ! -s conftest.err
22526 } && test -s conftest$ac_exeext &&
22527 $as_test_x conftest$ac_exeext; then
22528 eval "$as_ac_var=yes"
22529 else
22530 echo "$as_me: failed program was:" >&5
22531 sed 's/^/| /' conftest.$ac_ext >&5
22533 eval "$as_ac_var=no"
22536 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22537 conftest$ac_exeext conftest.$ac_ext
22539 ac_res=`eval echo '${'$as_ac_var'}'`
22540 { echo "$as_me:$LINENO: result: $ac_res" >&5
22541 echo "${ECHO_T}$ac_res" >&6; }
22542 if test `eval echo '${'$as_ac_var'}'` = yes; then
22543 cat >>confdefs.h <<_ACEOF
22544 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22545 _ACEOF
22548 done
22550 { echo "$as_me:$LINENO: checking whether isinf is declared" >&5
22551 echo $ECHO_N "checking whether isinf is declared... $ECHO_C" >&6; }
22552 if test "${ac_cv_have_decl_isinf+set}" = set; then
22553 echo $ECHO_N "(cached) $ECHO_C" >&6
22554 else
22555 cat >conftest.$ac_ext <<_ACEOF
22556 /* confdefs.h. */
22557 _ACEOF
22558 cat confdefs.h >>conftest.$ac_ext
22559 cat >>conftest.$ac_ext <<_ACEOF
22560 /* end confdefs.h. */
22561 #include <math.h>
22564 main ()
22566 #ifndef isinf
22567 (void) isinf;
22568 #endif
22571 return 0;
22573 _ACEOF
22574 rm -f conftest.$ac_objext
22575 if { (ac_try="$ac_compile"
22576 case "(($ac_try" in
22577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22578 *) ac_try_echo=$ac_try;;
22579 esac
22580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22581 (eval "$ac_compile") 2>conftest.er1
22582 ac_status=$?
22583 grep -v '^ *+' conftest.er1 >conftest.err
22584 rm -f conftest.er1
22585 cat conftest.err >&5
22586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22587 (exit $ac_status); } && {
22588 test -z "$ac_c_werror_flag" ||
22589 test ! -s conftest.err
22590 } && test -s conftest.$ac_objext; then
22591 ac_cv_have_decl_isinf=yes
22592 else
22593 echo "$as_me: failed program was:" >&5
22594 sed 's/^/| /' conftest.$ac_ext >&5
22596 ac_cv_have_decl_isinf=no
22599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22601 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isinf" >&5
22602 echo "${ECHO_T}$ac_cv_have_decl_isinf" >&6; }
22603 if test $ac_cv_have_decl_isinf = yes; then
22605 cat >>confdefs.h <<_ACEOF
22606 #define HAVE_DECL_ISINF 1
22607 _ACEOF
22610 else
22611 cat >>confdefs.h <<_ACEOF
22612 #define HAVE_DECL_ISINF 0
22613 _ACEOF
22617 { echo "$as_me:$LINENO: checking whether isnan is declared" >&5
22618 echo $ECHO_N "checking whether isnan is declared... $ECHO_C" >&6; }
22619 if test "${ac_cv_have_decl_isnan+set}" = set; then
22620 echo $ECHO_N "(cached) $ECHO_C" >&6
22621 else
22622 cat >conftest.$ac_ext <<_ACEOF
22623 /* confdefs.h. */
22624 _ACEOF
22625 cat confdefs.h >>conftest.$ac_ext
22626 cat >>conftest.$ac_ext <<_ACEOF
22627 /* end confdefs.h. */
22628 #include <math.h>
22631 main ()
22633 #ifndef isnan
22634 (void) isnan;
22635 #endif
22638 return 0;
22640 _ACEOF
22641 rm -f conftest.$ac_objext
22642 if { (ac_try="$ac_compile"
22643 case "(($ac_try" in
22644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22645 *) ac_try_echo=$ac_try;;
22646 esac
22647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22648 (eval "$ac_compile") 2>conftest.er1
22649 ac_status=$?
22650 grep -v '^ *+' conftest.er1 >conftest.err
22651 rm -f conftest.er1
22652 cat conftest.err >&5
22653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22654 (exit $ac_status); } && {
22655 test -z "$ac_c_werror_flag" ||
22656 test ! -s conftest.err
22657 } && test -s conftest.$ac_objext; then
22658 ac_cv_have_decl_isnan=yes
22659 else
22660 echo "$as_me: failed program was:" >&5
22661 sed 's/^/| /' conftest.$ac_ext >&5
22663 ac_cv_have_decl_isnan=no
22666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22668 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isnan" >&5
22669 echo "${ECHO_T}$ac_cv_have_decl_isnan" >&6; }
22670 if test $ac_cv_have_decl_isnan = yes; then
22672 cat >>confdefs.h <<_ACEOF
22673 #define HAVE_DECL_ISNAN 1
22674 _ACEOF
22677 else
22678 cat >>confdefs.h <<_ACEOF
22679 #define HAVE_DECL_ISNAN 0
22680 _ACEOF
22684 { echo "$as_me:$LINENO: checking whether isfinite is declared" >&5
22685 echo $ECHO_N "checking whether isfinite is declared... $ECHO_C" >&6; }
22686 if test "${ac_cv_have_decl_isfinite+set}" = set; then
22687 echo $ECHO_N "(cached) $ECHO_C" >&6
22688 else
22689 cat >conftest.$ac_ext <<_ACEOF
22690 /* confdefs.h. */
22691 _ACEOF
22692 cat confdefs.h >>conftest.$ac_ext
22693 cat >>conftest.$ac_ext <<_ACEOF
22694 /* end confdefs.h. */
22695 #include <math.h>
22698 main ()
22700 #ifndef isfinite
22701 (void) isfinite;
22702 #endif
22705 return 0;
22707 _ACEOF
22708 rm -f conftest.$ac_objext
22709 if { (ac_try="$ac_compile"
22710 case "(($ac_try" in
22711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22712 *) ac_try_echo=$ac_try;;
22713 esac
22714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22715 (eval "$ac_compile") 2>conftest.er1
22716 ac_status=$?
22717 grep -v '^ *+' conftest.er1 >conftest.err
22718 rm -f conftest.er1
22719 cat conftest.err >&5
22720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22721 (exit $ac_status); } && {
22722 test -z "$ac_c_werror_flag" ||
22723 test ! -s conftest.err
22724 } && test -s conftest.$ac_objext; then
22725 ac_cv_have_decl_isfinite=yes
22726 else
22727 echo "$as_me: failed program was:" >&5
22728 sed 's/^/| /' conftest.$ac_ext >&5
22730 ac_cv_have_decl_isfinite=no
22733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22735 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isfinite" >&5
22736 echo "${ECHO_T}$ac_cv_have_decl_isfinite" >&6; }
22737 if test $ac_cv_have_decl_isfinite = yes; then
22739 cat >>confdefs.h <<_ACEOF
22740 #define HAVE_DECL_ISFINITE 1
22741 _ACEOF
22744 else
22745 cat >>confdefs.h <<_ACEOF
22746 #define HAVE_DECL_ISFINITE 0
22747 _ACEOF
22754 LIBS=$LIBS_SAVE
22756 # For multiprocessing module, check that sem_open
22757 # actually works. For FreeBSD versions <= 7.2,
22758 # the kernel module that provides POSIX semaphores
22759 # isn't loaded by default, so an attempt to call
22760 # sem_open results in a 'Signal 12' error.
22761 { echo "$as_me:$LINENO: checking whether POSIX semaphores are enabled" >&5
22762 echo $ECHO_N "checking whether POSIX semaphores are enabled... $ECHO_C" >&6; }
22763 if test "${ac_cv_posix_semaphores_enabled+set}" = set; then
22764 echo $ECHO_N "(cached) $ECHO_C" >&6
22765 else
22766 if test "$cross_compiling" = yes; then
22767 ac_cv_posix_semaphores_enabled=yes
22768 else
22769 cat >conftest.$ac_ext <<_ACEOF
22770 /* confdefs.h. */
22771 _ACEOF
22772 cat confdefs.h >>conftest.$ac_ext
22773 cat >>conftest.$ac_ext <<_ACEOF
22774 /* end confdefs.h. */
22776 #include <unistd.h>
22777 #include <fcntl.h>
22778 #include <stdio.h>
22779 #include <semaphore.h>
22780 #include <sys/stat.h>
22782 int main(void) {
22783 sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0);
22784 if (a == SEM_FAILED) {
22785 perror("sem_open");
22786 return 1;
22788 sem_close(a);
22789 sem_unlink("/autoconf");
22790 return 0;
22793 _ACEOF
22794 rm -f conftest$ac_exeext
22795 if { (ac_try="$ac_link"
22796 case "(($ac_try" in
22797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22798 *) ac_try_echo=$ac_try;;
22799 esac
22800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22801 (eval "$ac_link") 2>&5
22802 ac_status=$?
22803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22804 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22805 { (case "(($ac_try" in
22806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22807 *) ac_try_echo=$ac_try;;
22808 esac
22809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22810 (eval "$ac_try") 2>&5
22811 ac_status=$?
22812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22813 (exit $ac_status); }; }; then
22814 ac_cv_posix_semaphores_enabled=yes
22815 else
22816 echo "$as_me: program exited with status $ac_status" >&5
22817 echo "$as_me: failed program was:" >&5
22818 sed 's/^/| /' conftest.$ac_ext >&5
22820 ( exit $ac_status )
22821 ac_cv_posix_semaphores_enabled=no
22823 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22830 { echo "$as_me:$LINENO: result: $ac_cv_posix_semaphores_enabled" >&5
22831 echo "${ECHO_T}$ac_cv_posix_semaphores_enabled" >&6; }
22832 if test $ac_cv_posix_semaphores_enabled = no
22833 then
22835 cat >>confdefs.h <<\_ACEOF
22836 #define POSIX_SEMAPHORES_NOT_ENABLED 1
22837 _ACEOF
22841 # Multiprocessing check for broken sem_getvalue
22842 { echo "$as_me:$LINENO: checking for broken sem_getvalue" >&5
22843 echo $ECHO_N "checking for broken sem_getvalue... $ECHO_C" >&6; }
22844 if test "$cross_compiling" = yes; then
22845 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22846 See \`config.log' for more details." >&5
22847 echo "$as_me: error: cannot run test program while cross compiling
22848 See \`config.log' for more details." >&2;}
22849 { (exit 1); exit 1; }; }
22850 else
22851 cat >conftest.$ac_ext <<_ACEOF
22852 /* confdefs.h. */
22853 _ACEOF
22854 cat confdefs.h >>conftest.$ac_ext
22855 cat >>conftest.$ac_ext <<_ACEOF
22856 /* end confdefs.h. */
22858 #include <unistd.h>
22859 #include <fcntl.h>
22860 #include <stdio.h>
22861 #include <semaphore.h>
22862 #include <sys/stat.h>
22864 int main(void){
22865 sem_t *a = sem_open("/autocftw", O_CREAT, S_IRUSR|S_IWUSR, 0);
22866 int count;
22867 int res;
22868 if(a==SEM_FAILED){
22869 perror("sem_open");
22870 return 1;
22873 res = sem_getvalue(a, &count);
22874 sem_close(a);
22875 sem_unlink("/autocftw");
22876 return res==-1 ? 1 : 0;
22880 _ACEOF
22881 rm -f conftest$ac_exeext
22882 if { (ac_try="$ac_link"
22883 case "(($ac_try" in
22884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22885 *) ac_try_echo=$ac_try;;
22886 esac
22887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22888 (eval "$ac_link") 2>&5
22889 ac_status=$?
22890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22891 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22892 { (case "(($ac_try" in
22893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22894 *) ac_try_echo=$ac_try;;
22895 esac
22896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22897 (eval "$ac_try") 2>&5
22898 ac_status=$?
22899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22900 (exit $ac_status); }; }; then
22901 { echo "$as_me:$LINENO: result: no" >&5
22902 echo "${ECHO_T}no" >&6; }
22903 else
22904 echo "$as_me: program exited with status $ac_status" >&5
22905 echo "$as_me: failed program was:" >&5
22906 sed 's/^/| /' conftest.$ac_ext >&5
22908 ( exit $ac_status )
22909 { echo "$as_me:$LINENO: result: yes" >&5
22910 echo "${ECHO_T}yes" >&6; }
22912 cat >>confdefs.h <<\_ACEOF
22913 #define HAVE_BROKEN_SEM_GETVALUE 1
22914 _ACEOF
22918 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22923 # determine what size digit to use for Python's longs
22924 { echo "$as_me:$LINENO: checking digit size for Python's longs" >&5
22925 echo $ECHO_N "checking digit size for Python's longs... $ECHO_C" >&6; }
22926 # Check whether --enable-big-digits was given.
22927 if test "${enable_big_digits+set}" = set; then
22928 enableval=$enable_big_digits; case $enable_big_digits in
22929 yes)
22930 enable_big_digits=30 ;;
22932 enable_big_digits=15 ;;
22933 15|30)
22936 { { echo "$as_me:$LINENO: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&5
22937 echo "$as_me: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&2;}
22938 { (exit 1); exit 1; }; } ;;
22939 esac
22940 { echo "$as_me:$LINENO: result: $enable_big_digits" >&5
22941 echo "${ECHO_T}$enable_big_digits" >&6; }
22943 cat >>confdefs.h <<_ACEOF
22944 #define PYLONG_BITS_IN_DIGIT $enable_big_digits
22945 _ACEOF
22948 else
22949 { echo "$as_me:$LINENO: result: no value specified" >&5
22950 echo "${ECHO_T}no value specified" >&6; }
22954 # check for wchar.h
22955 if test "${ac_cv_header_wchar_h+set}" = set; then
22956 { echo "$as_me:$LINENO: checking for wchar.h" >&5
22957 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
22958 if test "${ac_cv_header_wchar_h+set}" = set; then
22959 echo $ECHO_N "(cached) $ECHO_C" >&6
22961 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
22962 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
22963 else
22964 # Is the header compilable?
22965 { echo "$as_me:$LINENO: checking wchar.h usability" >&5
22966 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6; }
22967 cat >conftest.$ac_ext <<_ACEOF
22968 /* confdefs.h. */
22969 _ACEOF
22970 cat confdefs.h >>conftest.$ac_ext
22971 cat >>conftest.$ac_ext <<_ACEOF
22972 /* end confdefs.h. */
22973 $ac_includes_default
22974 #include <wchar.h>
22975 _ACEOF
22976 rm -f conftest.$ac_objext
22977 if { (ac_try="$ac_compile"
22978 case "(($ac_try" in
22979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22980 *) ac_try_echo=$ac_try;;
22981 esac
22982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22983 (eval "$ac_compile") 2>conftest.er1
22984 ac_status=$?
22985 grep -v '^ *+' conftest.er1 >conftest.err
22986 rm -f conftest.er1
22987 cat conftest.err >&5
22988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22989 (exit $ac_status); } && {
22990 test -z "$ac_c_werror_flag" ||
22991 test ! -s conftest.err
22992 } && test -s conftest.$ac_objext; then
22993 ac_header_compiler=yes
22994 else
22995 echo "$as_me: failed program was:" >&5
22996 sed 's/^/| /' conftest.$ac_ext >&5
22998 ac_header_compiler=no
23001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23002 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23003 echo "${ECHO_T}$ac_header_compiler" >&6; }
23005 # Is the header present?
23006 { echo "$as_me:$LINENO: checking wchar.h presence" >&5
23007 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6; }
23008 cat >conftest.$ac_ext <<_ACEOF
23009 /* confdefs.h. */
23010 _ACEOF
23011 cat confdefs.h >>conftest.$ac_ext
23012 cat >>conftest.$ac_ext <<_ACEOF
23013 /* end confdefs.h. */
23014 #include <wchar.h>
23015 _ACEOF
23016 if { (ac_try="$ac_cpp conftest.$ac_ext"
23017 case "(($ac_try" in
23018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23019 *) ac_try_echo=$ac_try;;
23020 esac
23021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23022 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23023 ac_status=$?
23024 grep -v '^ *+' conftest.er1 >conftest.err
23025 rm -f conftest.er1
23026 cat conftest.err >&5
23027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23028 (exit $ac_status); } >/dev/null && {
23029 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23030 test ! -s conftest.err
23031 }; then
23032 ac_header_preproc=yes
23033 else
23034 echo "$as_me: failed program was:" >&5
23035 sed 's/^/| /' conftest.$ac_ext >&5
23037 ac_header_preproc=no
23040 rm -f conftest.err conftest.$ac_ext
23041 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23042 echo "${ECHO_T}$ac_header_preproc" >&6; }
23044 # So? What about this header?
23045 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23046 yes:no: )
23047 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
23048 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23049 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
23050 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
23051 ac_header_preproc=yes
23053 no:yes:* )
23054 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
23055 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
23056 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
23057 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
23058 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
23059 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
23060 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
23061 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
23062 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
23063 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
23064 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
23065 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
23066 ( cat <<\_ASBOX
23067 ## -------------------------------------- ##
23068 ## Report this to http://bugs.python.org/ ##
23069 ## -------------------------------------- ##
23070 _ASBOX
23071 ) | sed "s/^/$as_me: WARNING: /" >&2
23073 esac
23074 { echo "$as_me:$LINENO: checking for wchar.h" >&5
23075 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
23076 if test "${ac_cv_header_wchar_h+set}" = set; then
23077 echo $ECHO_N "(cached) $ECHO_C" >&6
23078 else
23079 ac_cv_header_wchar_h=$ac_header_preproc
23081 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
23082 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
23085 if test $ac_cv_header_wchar_h = yes; then
23088 cat >>confdefs.h <<\_ACEOF
23089 #define HAVE_WCHAR_H 1
23090 _ACEOF
23092 wchar_h="yes"
23094 else
23095 wchar_h="no"
23101 # determine wchar_t size
23102 if test "$wchar_h" = yes
23103 then
23104 { echo "$as_me:$LINENO: checking for wchar_t" >&5
23105 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
23106 if test "${ac_cv_type_wchar_t+set}" = set; then
23107 echo $ECHO_N "(cached) $ECHO_C" >&6
23108 else
23109 cat >conftest.$ac_ext <<_ACEOF
23110 /* confdefs.h. */
23111 _ACEOF
23112 cat confdefs.h >>conftest.$ac_ext
23113 cat >>conftest.$ac_ext <<_ACEOF
23114 /* end confdefs.h. */
23115 #include <wchar.h>
23117 typedef wchar_t ac__type_new_;
23119 main ()
23121 if ((ac__type_new_ *) 0)
23122 return 0;
23123 if (sizeof (ac__type_new_))
23124 return 0;
23126 return 0;
23128 _ACEOF
23129 rm -f conftest.$ac_objext
23130 if { (ac_try="$ac_compile"
23131 case "(($ac_try" in
23132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23133 *) ac_try_echo=$ac_try;;
23134 esac
23135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23136 (eval "$ac_compile") 2>conftest.er1
23137 ac_status=$?
23138 grep -v '^ *+' conftest.er1 >conftest.err
23139 rm -f conftest.er1
23140 cat conftest.err >&5
23141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23142 (exit $ac_status); } && {
23143 test -z "$ac_c_werror_flag" ||
23144 test ! -s conftest.err
23145 } && test -s conftest.$ac_objext; then
23146 ac_cv_type_wchar_t=yes
23147 else
23148 echo "$as_me: failed program was:" >&5
23149 sed 's/^/| /' conftest.$ac_ext >&5
23151 ac_cv_type_wchar_t=no
23154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23156 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
23157 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
23159 # The cast to long int works around a bug in the HP C Compiler
23160 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23161 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23162 # This bug is HP SR number 8606223364.
23163 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
23164 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
23165 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
23166 echo $ECHO_N "(cached) $ECHO_C" >&6
23167 else
23168 if test "$cross_compiling" = yes; then
23169 # Depending upon the size, compute the lo and hi bounds.
23170 cat >conftest.$ac_ext <<_ACEOF
23171 /* confdefs.h. */
23172 _ACEOF
23173 cat confdefs.h >>conftest.$ac_ext
23174 cat >>conftest.$ac_ext <<_ACEOF
23175 /* end confdefs.h. */
23176 #include <wchar.h>
23178 typedef wchar_t ac__type_sizeof_;
23180 main ()
23182 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23183 test_array [0] = 0
23186 return 0;
23188 _ACEOF
23189 rm -f conftest.$ac_objext
23190 if { (ac_try="$ac_compile"
23191 case "(($ac_try" in
23192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23193 *) ac_try_echo=$ac_try;;
23194 esac
23195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23196 (eval "$ac_compile") 2>conftest.er1
23197 ac_status=$?
23198 grep -v '^ *+' conftest.er1 >conftest.err
23199 rm -f conftest.er1
23200 cat conftest.err >&5
23201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23202 (exit $ac_status); } && {
23203 test -z "$ac_c_werror_flag" ||
23204 test ! -s conftest.err
23205 } && test -s conftest.$ac_objext; then
23206 ac_lo=0 ac_mid=0
23207 while :; do
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_;
23218 main ()
23220 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23221 test_array [0] = 0
23224 return 0;
23226 _ACEOF
23227 rm -f conftest.$ac_objext
23228 if { (ac_try="$ac_compile"
23229 case "(($ac_try" in
23230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23231 *) ac_try_echo=$ac_try;;
23232 esac
23233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23234 (eval "$ac_compile") 2>conftest.er1
23235 ac_status=$?
23236 grep -v '^ *+' conftest.er1 >conftest.err
23237 rm -f conftest.er1
23238 cat conftest.err >&5
23239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23240 (exit $ac_status); } && {
23241 test -z "$ac_c_werror_flag" ||
23242 test ! -s conftest.err
23243 } && test -s conftest.$ac_objext; then
23244 ac_hi=$ac_mid; break
23245 else
23246 echo "$as_me: failed program was:" >&5
23247 sed 's/^/| /' conftest.$ac_ext >&5
23249 ac_lo=`expr $ac_mid + 1`
23250 if test $ac_lo -le $ac_mid; then
23251 ac_lo= ac_hi=
23252 break
23254 ac_mid=`expr 2 '*' $ac_mid + 1`
23257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23258 done
23259 else
23260 echo "$as_me: failed program was:" >&5
23261 sed 's/^/| /' conftest.$ac_ext >&5
23263 cat >conftest.$ac_ext <<_ACEOF
23264 /* confdefs.h. */
23265 _ACEOF
23266 cat confdefs.h >>conftest.$ac_ext
23267 cat >>conftest.$ac_ext <<_ACEOF
23268 /* end confdefs.h. */
23269 #include <wchar.h>
23271 typedef wchar_t ac__type_sizeof_;
23273 main ()
23275 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23276 test_array [0] = 0
23279 return 0;
23281 _ACEOF
23282 rm -f conftest.$ac_objext
23283 if { (ac_try="$ac_compile"
23284 case "(($ac_try" in
23285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23286 *) ac_try_echo=$ac_try;;
23287 esac
23288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23289 (eval "$ac_compile") 2>conftest.er1
23290 ac_status=$?
23291 grep -v '^ *+' conftest.er1 >conftest.err
23292 rm -f conftest.er1
23293 cat conftest.err >&5
23294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23295 (exit $ac_status); } && {
23296 test -z "$ac_c_werror_flag" ||
23297 test ! -s conftest.err
23298 } && test -s conftest.$ac_objext; then
23299 ac_hi=-1 ac_mid=-1
23300 while :; do
23301 cat >conftest.$ac_ext <<_ACEOF
23302 /* confdefs.h. */
23303 _ACEOF
23304 cat confdefs.h >>conftest.$ac_ext
23305 cat >>conftest.$ac_ext <<_ACEOF
23306 /* end confdefs.h. */
23307 #include <wchar.h>
23309 typedef wchar_t ac__type_sizeof_;
23311 main ()
23313 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23314 test_array [0] = 0
23317 return 0;
23319 _ACEOF
23320 rm -f conftest.$ac_objext
23321 if { (ac_try="$ac_compile"
23322 case "(($ac_try" in
23323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23324 *) ac_try_echo=$ac_try;;
23325 esac
23326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23327 (eval "$ac_compile") 2>conftest.er1
23328 ac_status=$?
23329 grep -v '^ *+' conftest.er1 >conftest.err
23330 rm -f conftest.er1
23331 cat conftest.err >&5
23332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23333 (exit $ac_status); } && {
23334 test -z "$ac_c_werror_flag" ||
23335 test ! -s conftest.err
23336 } && test -s conftest.$ac_objext; then
23337 ac_lo=$ac_mid; break
23338 else
23339 echo "$as_me: failed program was:" >&5
23340 sed 's/^/| /' conftest.$ac_ext >&5
23342 ac_hi=`expr '(' $ac_mid ')' - 1`
23343 if test $ac_mid -le $ac_hi; then
23344 ac_lo= ac_hi=
23345 break
23347 ac_mid=`expr 2 '*' $ac_mid`
23350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23351 done
23352 else
23353 echo "$as_me: failed program was:" >&5
23354 sed 's/^/| /' conftest.$ac_ext >&5
23356 ac_lo= ac_hi=
23359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23363 # Binary search between lo and hi bounds.
23364 while test "x$ac_lo" != "x$ac_hi"; do
23365 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23366 cat >conftest.$ac_ext <<_ACEOF
23367 /* confdefs.h. */
23368 _ACEOF
23369 cat confdefs.h >>conftest.$ac_ext
23370 cat >>conftest.$ac_ext <<_ACEOF
23371 /* end confdefs.h. */
23372 #include <wchar.h>
23374 typedef wchar_t ac__type_sizeof_;
23376 main ()
23378 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23379 test_array [0] = 0
23382 return 0;
23384 _ACEOF
23385 rm -f conftest.$ac_objext
23386 if { (ac_try="$ac_compile"
23387 case "(($ac_try" in
23388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23389 *) ac_try_echo=$ac_try;;
23390 esac
23391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23392 (eval "$ac_compile") 2>conftest.er1
23393 ac_status=$?
23394 grep -v '^ *+' conftest.er1 >conftest.err
23395 rm -f conftest.er1
23396 cat conftest.err >&5
23397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23398 (exit $ac_status); } && {
23399 test -z "$ac_c_werror_flag" ||
23400 test ! -s conftest.err
23401 } && test -s conftest.$ac_objext; then
23402 ac_hi=$ac_mid
23403 else
23404 echo "$as_me: failed program was:" >&5
23405 sed 's/^/| /' conftest.$ac_ext >&5
23407 ac_lo=`expr '(' $ac_mid ')' + 1`
23410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23411 done
23412 case $ac_lo in
23413 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
23414 '') if test "$ac_cv_type_wchar_t" = yes; then
23415 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
23416 See \`config.log' for more details." >&5
23417 echo "$as_me: error: cannot compute sizeof (wchar_t)
23418 See \`config.log' for more details." >&2;}
23419 { (exit 77); exit 77; }; }
23420 else
23421 ac_cv_sizeof_wchar_t=0
23422 fi ;;
23423 esac
23424 else
23425 cat >conftest.$ac_ext <<_ACEOF
23426 /* confdefs.h. */
23427 _ACEOF
23428 cat confdefs.h >>conftest.$ac_ext
23429 cat >>conftest.$ac_ext <<_ACEOF
23430 /* end confdefs.h. */
23431 #include <wchar.h>
23433 typedef wchar_t ac__type_sizeof_;
23434 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23435 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23436 #include <stdio.h>
23437 #include <stdlib.h>
23439 main ()
23442 FILE *f = fopen ("conftest.val", "w");
23443 if (! f)
23444 return 1;
23445 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23447 long int i = longval ();
23448 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23449 return 1;
23450 fprintf (f, "%ld\n", i);
23452 else
23454 unsigned long int i = ulongval ();
23455 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23456 return 1;
23457 fprintf (f, "%lu\n", i);
23459 return ferror (f) || fclose (f) != 0;
23462 return 0;
23464 _ACEOF
23465 rm -f conftest$ac_exeext
23466 if { (ac_try="$ac_link"
23467 case "(($ac_try" in
23468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23469 *) ac_try_echo=$ac_try;;
23470 esac
23471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23472 (eval "$ac_link") 2>&5
23473 ac_status=$?
23474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23475 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23476 { (case "(($ac_try" in
23477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23478 *) ac_try_echo=$ac_try;;
23479 esac
23480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23481 (eval "$ac_try") 2>&5
23482 ac_status=$?
23483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23484 (exit $ac_status); }; }; then
23485 ac_cv_sizeof_wchar_t=`cat conftest.val`
23486 else
23487 echo "$as_me: program exited with status $ac_status" >&5
23488 echo "$as_me: failed program was:" >&5
23489 sed 's/^/| /' conftest.$ac_ext >&5
23491 ( exit $ac_status )
23492 if test "$ac_cv_type_wchar_t" = yes; then
23493 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
23494 See \`config.log' for more details." >&5
23495 echo "$as_me: error: cannot compute sizeof (wchar_t)
23496 See \`config.log' for more details." >&2;}
23497 { (exit 77); exit 77; }; }
23498 else
23499 ac_cv_sizeof_wchar_t=0
23502 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23504 rm -f conftest.val
23506 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
23507 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
23511 cat >>confdefs.h <<_ACEOF
23512 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
23513 _ACEOF
23518 { echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
23519 echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6; }
23520 have_ucs4_tcl=no
23521 cat >conftest.$ac_ext <<_ACEOF
23522 /* confdefs.h. */
23523 _ACEOF
23524 cat confdefs.h >>conftest.$ac_ext
23525 cat >>conftest.$ac_ext <<_ACEOF
23526 /* end confdefs.h. */
23528 #include <tcl.h>
23529 #if TCL_UTF_MAX != 6
23530 # error "NOT UCS4_TCL"
23531 #endif
23533 main ()
23537 return 0;
23539 _ACEOF
23540 rm -f conftest.$ac_objext
23541 if { (ac_try="$ac_compile"
23542 case "(($ac_try" in
23543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23544 *) ac_try_echo=$ac_try;;
23545 esac
23546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23547 (eval "$ac_compile") 2>conftest.er1
23548 ac_status=$?
23549 grep -v '^ *+' conftest.er1 >conftest.err
23550 rm -f conftest.er1
23551 cat conftest.err >&5
23552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23553 (exit $ac_status); } && {
23554 test -z "$ac_c_werror_flag" ||
23555 test ! -s conftest.err
23556 } && test -s conftest.$ac_objext; then
23559 cat >>confdefs.h <<\_ACEOF
23560 #define HAVE_UCS4_TCL 1
23561 _ACEOF
23563 have_ucs4_tcl=yes
23565 else
23566 echo "$as_me: failed program was:" >&5
23567 sed 's/^/| /' conftest.$ac_ext >&5
23572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23573 { echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
23574 echo "${ECHO_T}$have_ucs4_tcl" >&6; }
23576 # check whether wchar_t is signed or not
23577 if test "$wchar_h" = yes
23578 then
23579 # check whether wchar_t is signed or not
23580 { echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
23581 echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6; }
23582 if test "${ac_cv_wchar_t_signed+set}" = set; then
23583 echo $ECHO_N "(cached) $ECHO_C" >&6
23584 else
23586 if test "$cross_compiling" = yes; then
23587 ac_cv_wchar_t_signed=yes
23588 else
23589 cat >conftest.$ac_ext <<_ACEOF
23590 /* confdefs.h. */
23591 _ACEOF
23592 cat confdefs.h >>conftest.$ac_ext
23593 cat >>conftest.$ac_ext <<_ACEOF
23594 /* end confdefs.h. */
23596 #include <wchar.h>
23597 int main()
23599 /* Success: exit code 0 */
23600 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
23603 _ACEOF
23604 rm -f conftest$ac_exeext
23605 if { (ac_try="$ac_link"
23606 case "(($ac_try" in
23607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23608 *) ac_try_echo=$ac_try;;
23609 esac
23610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23611 (eval "$ac_link") 2>&5
23612 ac_status=$?
23613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23614 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23615 { (case "(($ac_try" in
23616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23617 *) ac_try_echo=$ac_try;;
23618 esac
23619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23620 (eval "$ac_try") 2>&5
23621 ac_status=$?
23622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23623 (exit $ac_status); }; }; then
23624 ac_cv_wchar_t_signed=yes
23625 else
23626 echo "$as_me: program exited with status $ac_status" >&5
23627 echo "$as_me: failed program was:" >&5
23628 sed 's/^/| /' conftest.$ac_ext >&5
23630 ( exit $ac_status )
23631 ac_cv_wchar_t_signed=no
23633 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23639 { echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
23640 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6; }
23643 { echo "$as_me:$LINENO: checking what type to use for str" >&5
23644 echo $ECHO_N "checking what type to use for str... $ECHO_C" >&6; }
23646 # Check whether --with-wide-unicode was given.
23647 if test "${with_wide_unicode+set}" = set; then
23648 withval=$with_wide_unicode;
23649 if test "$withval" != no
23650 then unicode_size="4"
23651 else unicode_size="2"
23654 else
23656 case "$have_ucs4_tcl" in
23657 yes) unicode_size="4" ;;
23658 *) unicode_size="2" ;;
23659 esac
23666 case "$unicode_size" in
23667 4) cat >>confdefs.h <<\_ACEOF
23668 #define Py_UNICODE_SIZE 4
23669 _ACEOF
23671 *) cat >>confdefs.h <<\_ACEOF
23672 #define Py_UNICODE_SIZE 2
23673 _ACEOF
23675 esac
23680 # wchar_t is only usable if it maps to an unsigned type
23681 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
23682 -a "$ac_cv_wchar_t_signed" = "no"
23683 then
23684 PY_UNICODE_TYPE="wchar_t"
23686 cat >>confdefs.h <<\_ACEOF
23687 #define HAVE_USABLE_WCHAR_T 1
23688 _ACEOF
23690 cat >>confdefs.h <<\_ACEOF
23691 #define PY_UNICODE_TYPE wchar_t
23692 _ACEOF
23694 elif test "$ac_cv_sizeof_short" = "$unicode_size"
23695 then
23696 PY_UNICODE_TYPE="unsigned short"
23697 cat >>confdefs.h <<\_ACEOF
23698 #define PY_UNICODE_TYPE unsigned short
23699 _ACEOF
23701 elif test "$ac_cv_sizeof_long" = "$unicode_size"
23702 then
23703 PY_UNICODE_TYPE="unsigned long"
23704 cat >>confdefs.h <<\_ACEOF
23705 #define PY_UNICODE_TYPE unsigned long
23706 _ACEOF
23708 else
23709 PY_UNICODE_TYPE="no type found"
23711 { echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
23712 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6; }
23714 # check for endianness
23715 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
23716 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
23717 if test "${ac_cv_c_bigendian+set}" = set; then
23718 echo $ECHO_N "(cached) $ECHO_C" >&6
23719 else
23720 # See if sys/param.h defines the BYTE_ORDER macro.
23721 cat >conftest.$ac_ext <<_ACEOF
23722 /* confdefs.h. */
23723 _ACEOF
23724 cat confdefs.h >>conftest.$ac_ext
23725 cat >>conftest.$ac_ext <<_ACEOF
23726 /* end confdefs.h. */
23727 #include <sys/types.h>
23728 #include <sys/param.h>
23731 main ()
23733 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
23734 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
23735 bogus endian macros
23736 #endif
23739 return 0;
23741 _ACEOF
23742 rm -f conftest.$ac_objext
23743 if { (ac_try="$ac_compile"
23744 case "(($ac_try" in
23745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23746 *) ac_try_echo=$ac_try;;
23747 esac
23748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23749 (eval "$ac_compile") 2>conftest.er1
23750 ac_status=$?
23751 grep -v '^ *+' conftest.er1 >conftest.err
23752 rm -f conftest.er1
23753 cat conftest.err >&5
23754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23755 (exit $ac_status); } && {
23756 test -z "$ac_c_werror_flag" ||
23757 test ! -s conftest.err
23758 } && test -s conftest.$ac_objext; then
23759 # It does; now see whether it defined to BIG_ENDIAN or not.
23760 cat >conftest.$ac_ext <<_ACEOF
23761 /* confdefs.h. */
23762 _ACEOF
23763 cat confdefs.h >>conftest.$ac_ext
23764 cat >>conftest.$ac_ext <<_ACEOF
23765 /* end confdefs.h. */
23766 #include <sys/types.h>
23767 #include <sys/param.h>
23770 main ()
23772 #if BYTE_ORDER != BIG_ENDIAN
23773 not big endian
23774 #endif
23777 return 0;
23779 _ACEOF
23780 rm -f conftest.$ac_objext
23781 if { (ac_try="$ac_compile"
23782 case "(($ac_try" in
23783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23784 *) ac_try_echo=$ac_try;;
23785 esac
23786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23787 (eval "$ac_compile") 2>conftest.er1
23788 ac_status=$?
23789 grep -v '^ *+' conftest.er1 >conftest.err
23790 rm -f conftest.er1
23791 cat conftest.err >&5
23792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23793 (exit $ac_status); } && {
23794 test -z "$ac_c_werror_flag" ||
23795 test ! -s conftest.err
23796 } && test -s conftest.$ac_objext; then
23797 ac_cv_c_bigendian=yes
23798 else
23799 echo "$as_me: failed program was:" >&5
23800 sed 's/^/| /' conftest.$ac_ext >&5
23802 ac_cv_c_bigendian=no
23805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23806 else
23807 echo "$as_me: failed program was:" >&5
23808 sed 's/^/| /' conftest.$ac_ext >&5
23810 # It does not; compile a test program.
23811 if test "$cross_compiling" = yes; then
23812 # try to guess the endianness by grepping values into an object file
23813 ac_cv_c_bigendian=unknown
23814 cat >conftest.$ac_ext <<_ACEOF
23815 /* confdefs.h. */
23816 _ACEOF
23817 cat confdefs.h >>conftest.$ac_ext
23818 cat >>conftest.$ac_ext <<_ACEOF
23819 /* end confdefs.h. */
23820 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23821 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23822 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
23823 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23824 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23825 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
23827 main ()
23829 _ascii (); _ebcdic ();
23831 return 0;
23833 _ACEOF
23834 rm -f conftest.$ac_objext
23835 if { (ac_try="$ac_compile"
23836 case "(($ac_try" in
23837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23838 *) ac_try_echo=$ac_try;;
23839 esac
23840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23841 (eval "$ac_compile") 2>conftest.er1
23842 ac_status=$?
23843 grep -v '^ *+' conftest.er1 >conftest.err
23844 rm -f conftest.er1
23845 cat conftest.err >&5
23846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23847 (exit $ac_status); } && {
23848 test -z "$ac_c_werror_flag" ||
23849 test ! -s conftest.err
23850 } && test -s conftest.$ac_objext; then
23851 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
23852 ac_cv_c_bigendian=yes
23854 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23855 if test "$ac_cv_c_bigendian" = unknown; then
23856 ac_cv_c_bigendian=no
23857 else
23858 # finding both strings is unlikely to happen, but who knows?
23859 ac_cv_c_bigendian=unknown
23862 else
23863 echo "$as_me: failed program was:" >&5
23864 sed 's/^/| /' conftest.$ac_ext >&5
23869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23870 else
23871 cat >conftest.$ac_ext <<_ACEOF
23872 /* confdefs.h. */
23873 _ACEOF
23874 cat confdefs.h >>conftest.$ac_ext
23875 cat >>conftest.$ac_ext <<_ACEOF
23876 /* end confdefs.h. */
23877 $ac_includes_default
23879 main ()
23882 /* Are we little or big endian? From Harbison&Steele. */
23883 union
23885 long int l;
23886 char c[sizeof (long int)];
23887 } u;
23888 u.l = 1;
23889 return u.c[sizeof (long int) - 1] == 1;
23892 return 0;
23894 _ACEOF
23895 rm -f conftest$ac_exeext
23896 if { (ac_try="$ac_link"
23897 case "(($ac_try" in
23898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23899 *) ac_try_echo=$ac_try;;
23900 esac
23901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23902 (eval "$ac_link") 2>&5
23903 ac_status=$?
23904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23905 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23906 { (case "(($ac_try" in
23907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23908 *) ac_try_echo=$ac_try;;
23909 esac
23910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23911 (eval "$ac_try") 2>&5
23912 ac_status=$?
23913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23914 (exit $ac_status); }; }; then
23915 ac_cv_c_bigendian=no
23916 else
23917 echo "$as_me: program exited with status $ac_status" >&5
23918 echo "$as_me: failed program was:" >&5
23919 sed 's/^/| /' conftest.$ac_ext >&5
23921 ( exit $ac_status )
23922 ac_cv_c_bigendian=yes
23924 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23932 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
23933 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
23934 case $ac_cv_c_bigendian in
23935 yes)
23937 cat >>confdefs.h <<\_ACEOF
23938 #define WORDS_BIGENDIAN 1
23939 _ACEOF
23944 { { echo "$as_me:$LINENO: error: unknown endianness
23945 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
23946 echo "$as_me: error: unknown endianness
23947 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
23948 { (exit 1); exit 1; }; } ;;
23949 esac
23952 # Check whether right shifting a negative integer extends the sign bit
23953 # or fills with zeros (like the Cray J90, according to Tim Peters).
23954 { echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
23955 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6; }
23956 if test "${ac_cv_rshift_extends_sign+set}" = set; then
23957 echo $ECHO_N "(cached) $ECHO_C" >&6
23958 else
23960 if test "$cross_compiling" = yes; then
23961 ac_cv_rshift_extends_sign=yes
23962 else
23963 cat >conftest.$ac_ext <<_ACEOF
23964 /* confdefs.h. */
23965 _ACEOF
23966 cat confdefs.h >>conftest.$ac_ext
23967 cat >>conftest.$ac_ext <<_ACEOF
23968 /* end confdefs.h. */
23970 int main()
23972 exit(((-1)>>3 == -1) ? 0 : 1);
23975 _ACEOF
23976 rm -f conftest$ac_exeext
23977 if { (ac_try="$ac_link"
23978 case "(($ac_try" in
23979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23980 *) ac_try_echo=$ac_try;;
23981 esac
23982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23983 (eval "$ac_link") 2>&5
23984 ac_status=$?
23985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23986 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23987 { (case "(($ac_try" in
23988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23989 *) ac_try_echo=$ac_try;;
23990 esac
23991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23992 (eval "$ac_try") 2>&5
23993 ac_status=$?
23994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23995 (exit $ac_status); }; }; then
23996 ac_cv_rshift_extends_sign=yes
23997 else
23998 echo "$as_me: program exited with status $ac_status" >&5
23999 echo "$as_me: failed program was:" >&5
24000 sed 's/^/| /' conftest.$ac_ext >&5
24002 ( exit $ac_status )
24003 ac_cv_rshift_extends_sign=no
24005 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24011 { echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
24012 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6; }
24013 if test "$ac_cv_rshift_extends_sign" = no
24014 then
24016 cat >>confdefs.h <<\_ACEOF
24017 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
24018 _ACEOF
24022 # check for getc_unlocked and related locking functions
24023 { echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
24024 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6; }
24025 if test "${ac_cv_have_getc_unlocked+set}" = set; then
24026 echo $ECHO_N "(cached) $ECHO_C" >&6
24027 else
24029 cat >conftest.$ac_ext <<_ACEOF
24030 /* confdefs.h. */
24031 _ACEOF
24032 cat confdefs.h >>conftest.$ac_ext
24033 cat >>conftest.$ac_ext <<_ACEOF
24034 /* end confdefs.h. */
24035 #include <stdio.h>
24037 main ()
24040 FILE *f = fopen("/dev/null", "r");
24041 flockfile(f);
24042 getc_unlocked(f);
24043 funlockfile(f);
24046 return 0;
24048 _ACEOF
24049 rm -f conftest.$ac_objext conftest$ac_exeext
24050 if { (ac_try="$ac_link"
24051 case "(($ac_try" in
24052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24053 *) ac_try_echo=$ac_try;;
24054 esac
24055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24056 (eval "$ac_link") 2>conftest.er1
24057 ac_status=$?
24058 grep -v '^ *+' conftest.er1 >conftest.err
24059 rm -f conftest.er1
24060 cat conftest.err >&5
24061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24062 (exit $ac_status); } && {
24063 test -z "$ac_c_werror_flag" ||
24064 test ! -s conftest.err
24065 } && test -s conftest$ac_exeext &&
24066 $as_test_x conftest$ac_exeext; then
24067 ac_cv_have_getc_unlocked=yes
24068 else
24069 echo "$as_me: failed program was:" >&5
24070 sed 's/^/| /' conftest.$ac_ext >&5
24072 ac_cv_have_getc_unlocked=no
24075 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24076 conftest$ac_exeext conftest.$ac_ext
24079 { echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
24080 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6; }
24081 if test "$ac_cv_have_getc_unlocked" = yes
24082 then
24084 cat >>confdefs.h <<\_ACEOF
24085 #define HAVE_GETC_UNLOCKED 1
24086 _ACEOF
24090 # check where readline lives
24091 # save the value of LIBS so we don't actually link Python with readline
24092 LIBS_no_readline=$LIBS
24094 # On some systems we need to link readline to a termcap compatible
24095 # library. NOTE: Keep the precedence of listed libraries synchronised
24096 # with setup.py.
24097 py_cv_lib_readline=no
24098 { echo "$as_me:$LINENO: checking how to link readline libs" >&5
24099 echo $ECHO_N "checking how to link readline libs... $ECHO_C" >&6; }
24100 for py_libtermcap in "" ncursesw ncurses curses termcap; do
24101 if test -z "$py_libtermcap"; then
24102 READLINE_LIBS="-lreadline"
24103 else
24104 READLINE_LIBS="-lreadline -l$py_libtermcap"
24106 LIBS="$READLINE_LIBS $LIBS_no_readline"
24107 cat >conftest.$ac_ext <<_ACEOF
24108 /* confdefs.h. */
24109 _ACEOF
24110 cat confdefs.h >>conftest.$ac_ext
24111 cat >>conftest.$ac_ext <<_ACEOF
24112 /* end confdefs.h. */
24114 /* Override any GCC internal prototype to avoid an error.
24115 Use char because int might match the return type of a GCC
24116 builtin and then its argument prototype would still apply. */
24117 #ifdef __cplusplus
24118 extern "C"
24119 #endif
24120 char readline ();
24122 main ()
24124 return readline ();
24126 return 0;
24128 _ACEOF
24129 rm -f conftest.$ac_objext conftest$ac_exeext
24130 if { (ac_try="$ac_link"
24131 case "(($ac_try" in
24132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24133 *) ac_try_echo=$ac_try;;
24134 esac
24135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24136 (eval "$ac_link") 2>conftest.er1
24137 ac_status=$?
24138 grep -v '^ *+' conftest.er1 >conftest.err
24139 rm -f conftest.er1
24140 cat conftest.err >&5
24141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24142 (exit $ac_status); } && {
24143 test -z "$ac_c_werror_flag" ||
24144 test ! -s conftest.err
24145 } && test -s conftest$ac_exeext &&
24146 $as_test_x conftest$ac_exeext; then
24147 py_cv_lib_readline=yes
24148 else
24149 echo "$as_me: failed program was:" >&5
24150 sed 's/^/| /' conftest.$ac_ext >&5
24155 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24156 conftest$ac_exeext conftest.$ac_ext
24157 if test $py_cv_lib_readline = yes; then
24158 break
24160 done
24161 # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts
24162 #AC_SUBST([READLINE_LIBS])
24163 if test $py_cv_lib_readline = no; then
24164 { echo "$as_me:$LINENO: result: none" >&5
24165 echo "${ECHO_T}none" >&6; }
24166 else
24167 { echo "$as_me:$LINENO: result: $READLINE_LIBS" >&5
24168 echo "${ECHO_T}$READLINE_LIBS" >&6; }
24170 cat >>confdefs.h <<\_ACEOF
24171 #define HAVE_LIBREADLINE 1
24172 _ACEOF
24176 # check for readline 2.1
24177 { echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
24178 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6; }
24179 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
24180 echo $ECHO_N "(cached) $ECHO_C" >&6
24181 else
24182 ac_check_lib_save_LIBS=$LIBS
24183 LIBS="-lreadline $READLINE_LIBS $LIBS"
24184 cat >conftest.$ac_ext <<_ACEOF
24185 /* confdefs.h. */
24186 _ACEOF
24187 cat confdefs.h >>conftest.$ac_ext
24188 cat >>conftest.$ac_ext <<_ACEOF
24189 /* end confdefs.h. */
24191 /* Override any GCC internal prototype to avoid an error.
24192 Use char because int might match the return type of a GCC
24193 builtin and then its argument prototype would still apply. */
24194 #ifdef __cplusplus
24195 extern "C"
24196 #endif
24197 char rl_callback_handler_install ();
24199 main ()
24201 return rl_callback_handler_install ();
24203 return 0;
24205 _ACEOF
24206 rm -f conftest.$ac_objext conftest$ac_exeext
24207 if { (ac_try="$ac_link"
24208 case "(($ac_try" in
24209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24210 *) ac_try_echo=$ac_try;;
24211 esac
24212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24213 (eval "$ac_link") 2>conftest.er1
24214 ac_status=$?
24215 grep -v '^ *+' conftest.er1 >conftest.err
24216 rm -f conftest.er1
24217 cat conftest.err >&5
24218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24219 (exit $ac_status); } && {
24220 test -z "$ac_c_werror_flag" ||
24221 test ! -s conftest.err
24222 } && test -s conftest$ac_exeext &&
24223 $as_test_x conftest$ac_exeext; then
24224 ac_cv_lib_readline_rl_callback_handler_install=yes
24225 else
24226 echo "$as_me: failed program was:" >&5
24227 sed 's/^/| /' conftest.$ac_ext >&5
24229 ac_cv_lib_readline_rl_callback_handler_install=no
24232 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24233 conftest$ac_exeext conftest.$ac_ext
24234 LIBS=$ac_check_lib_save_LIBS
24236 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
24237 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
24238 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
24240 cat >>confdefs.h <<\_ACEOF
24241 #define HAVE_RL_CALLBACK 1
24242 _ACEOF
24247 # check for readline 2.2
24248 cat >conftest.$ac_ext <<_ACEOF
24249 /* confdefs.h. */
24250 _ACEOF
24251 cat confdefs.h >>conftest.$ac_ext
24252 cat >>conftest.$ac_ext <<_ACEOF
24253 /* end confdefs.h. */
24254 #include <readline/readline.h>
24255 _ACEOF
24256 if { (ac_try="$ac_cpp conftest.$ac_ext"
24257 case "(($ac_try" in
24258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24259 *) ac_try_echo=$ac_try;;
24260 esac
24261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24262 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24263 ac_status=$?
24264 grep -v '^ *+' conftest.er1 >conftest.err
24265 rm -f conftest.er1
24266 cat conftest.err >&5
24267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24268 (exit $ac_status); } >/dev/null && {
24269 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24270 test ! -s conftest.err
24271 }; then
24272 have_readline=yes
24273 else
24274 echo "$as_me: failed program was:" >&5
24275 sed 's/^/| /' conftest.$ac_ext >&5
24277 have_readline=no
24280 rm -f conftest.err conftest.$ac_ext
24281 if test $have_readline = yes
24282 then
24283 cat >conftest.$ac_ext <<_ACEOF
24284 /* confdefs.h. */
24285 _ACEOF
24286 cat confdefs.h >>conftest.$ac_ext
24287 cat >>conftest.$ac_ext <<_ACEOF
24288 /* end confdefs.h. */
24289 #include <readline/readline.h>
24291 _ACEOF
24292 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24293 $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then
24295 cat >>confdefs.h <<\_ACEOF
24296 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
24297 _ACEOF
24300 rm -f -r conftest*
24302 cat >conftest.$ac_ext <<_ACEOF
24303 /* confdefs.h. */
24304 _ACEOF
24305 cat confdefs.h >>conftest.$ac_ext
24306 cat >>conftest.$ac_ext <<_ACEOF
24307 /* end confdefs.h. */
24308 #include <readline/readline.h>
24310 _ACEOF
24311 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24312 $EGREP "extern int rl_completion_suppress_append;" >/dev/null 2>&1; then
24314 cat >>confdefs.h <<\_ACEOF
24315 #define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1
24316 _ACEOF
24319 rm -f -r conftest*
24323 # check for readline 4.0
24324 { echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
24325 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6; }
24326 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
24327 echo $ECHO_N "(cached) $ECHO_C" >&6
24328 else
24329 ac_check_lib_save_LIBS=$LIBS
24330 LIBS="-lreadline $READLINE_LIBS $LIBS"
24331 cat >conftest.$ac_ext <<_ACEOF
24332 /* confdefs.h. */
24333 _ACEOF
24334 cat confdefs.h >>conftest.$ac_ext
24335 cat >>conftest.$ac_ext <<_ACEOF
24336 /* end confdefs.h. */
24338 /* Override any GCC internal prototype to avoid an error.
24339 Use char because int might match the return type of a GCC
24340 builtin and then its argument prototype would still apply. */
24341 #ifdef __cplusplus
24342 extern "C"
24343 #endif
24344 char rl_pre_input_hook ();
24346 main ()
24348 return rl_pre_input_hook ();
24350 return 0;
24352 _ACEOF
24353 rm -f conftest.$ac_objext conftest$ac_exeext
24354 if { (ac_try="$ac_link"
24355 case "(($ac_try" in
24356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24357 *) ac_try_echo=$ac_try;;
24358 esac
24359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24360 (eval "$ac_link") 2>conftest.er1
24361 ac_status=$?
24362 grep -v '^ *+' conftest.er1 >conftest.err
24363 rm -f conftest.er1
24364 cat conftest.err >&5
24365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24366 (exit $ac_status); } && {
24367 test -z "$ac_c_werror_flag" ||
24368 test ! -s conftest.err
24369 } && test -s conftest$ac_exeext &&
24370 $as_test_x conftest$ac_exeext; then
24371 ac_cv_lib_readline_rl_pre_input_hook=yes
24372 else
24373 echo "$as_me: failed program was:" >&5
24374 sed 's/^/| /' conftest.$ac_ext >&5
24376 ac_cv_lib_readline_rl_pre_input_hook=no
24379 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24380 conftest$ac_exeext conftest.$ac_ext
24381 LIBS=$ac_check_lib_save_LIBS
24383 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
24384 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6; }
24385 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
24387 cat >>confdefs.h <<\_ACEOF
24388 #define HAVE_RL_PRE_INPUT_HOOK 1
24389 _ACEOF
24394 # also in 4.0
24395 { echo "$as_me:$LINENO: checking for rl_completion_display_matches_hook in -lreadline" >&5
24396 echo $ECHO_N "checking for rl_completion_display_matches_hook in -lreadline... $ECHO_C" >&6; }
24397 if test "${ac_cv_lib_readline_rl_completion_display_matches_hook+set}" = set; then
24398 echo $ECHO_N "(cached) $ECHO_C" >&6
24399 else
24400 ac_check_lib_save_LIBS=$LIBS
24401 LIBS="-lreadline $READLINE_LIBS $LIBS"
24402 cat >conftest.$ac_ext <<_ACEOF
24403 /* confdefs.h. */
24404 _ACEOF
24405 cat confdefs.h >>conftest.$ac_ext
24406 cat >>conftest.$ac_ext <<_ACEOF
24407 /* end confdefs.h. */
24409 /* Override any GCC internal prototype to avoid an error.
24410 Use char because int might match the return type of a GCC
24411 builtin and then its argument prototype would still apply. */
24412 #ifdef __cplusplus
24413 extern "C"
24414 #endif
24415 char rl_completion_display_matches_hook ();
24417 main ()
24419 return rl_completion_display_matches_hook ();
24421 return 0;
24423 _ACEOF
24424 rm -f conftest.$ac_objext conftest$ac_exeext
24425 if { (ac_try="$ac_link"
24426 case "(($ac_try" in
24427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24428 *) ac_try_echo=$ac_try;;
24429 esac
24430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24431 (eval "$ac_link") 2>conftest.er1
24432 ac_status=$?
24433 grep -v '^ *+' conftest.er1 >conftest.err
24434 rm -f conftest.er1
24435 cat conftest.err >&5
24436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24437 (exit $ac_status); } && {
24438 test -z "$ac_c_werror_flag" ||
24439 test ! -s conftest.err
24440 } && test -s conftest$ac_exeext &&
24441 $as_test_x conftest$ac_exeext; then
24442 ac_cv_lib_readline_rl_completion_display_matches_hook=yes
24443 else
24444 echo "$as_me: failed program was:" >&5
24445 sed 's/^/| /' conftest.$ac_ext >&5
24447 ac_cv_lib_readline_rl_completion_display_matches_hook=no
24450 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24451 conftest$ac_exeext conftest.$ac_ext
24452 LIBS=$ac_check_lib_save_LIBS
24454 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5
24455 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; }
24456 if test $ac_cv_lib_readline_rl_completion_display_matches_hook = yes; then
24458 cat >>confdefs.h <<\_ACEOF
24459 #define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1
24460 _ACEOF
24465 # check for readline 4.2
24466 { echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
24467 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6; }
24468 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
24469 echo $ECHO_N "(cached) $ECHO_C" >&6
24470 else
24471 ac_check_lib_save_LIBS=$LIBS
24472 LIBS="-lreadline $READLINE_LIBS $LIBS"
24473 cat >conftest.$ac_ext <<_ACEOF
24474 /* confdefs.h. */
24475 _ACEOF
24476 cat confdefs.h >>conftest.$ac_ext
24477 cat >>conftest.$ac_ext <<_ACEOF
24478 /* end confdefs.h. */
24480 /* Override any GCC internal prototype to avoid an error.
24481 Use char because int might match the return type of a GCC
24482 builtin and then its argument prototype would still apply. */
24483 #ifdef __cplusplus
24484 extern "C"
24485 #endif
24486 char rl_completion_matches ();
24488 main ()
24490 return rl_completion_matches ();
24492 return 0;
24494 _ACEOF
24495 rm -f conftest.$ac_objext conftest$ac_exeext
24496 if { (ac_try="$ac_link"
24497 case "(($ac_try" in
24498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24499 *) ac_try_echo=$ac_try;;
24500 esac
24501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24502 (eval "$ac_link") 2>conftest.er1
24503 ac_status=$?
24504 grep -v '^ *+' conftest.er1 >conftest.err
24505 rm -f conftest.er1
24506 cat conftest.err >&5
24507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24508 (exit $ac_status); } && {
24509 test -z "$ac_c_werror_flag" ||
24510 test ! -s conftest.err
24511 } && test -s conftest$ac_exeext &&
24512 $as_test_x conftest$ac_exeext; then
24513 ac_cv_lib_readline_rl_completion_matches=yes
24514 else
24515 echo "$as_me: failed program was:" >&5
24516 sed 's/^/| /' conftest.$ac_ext >&5
24518 ac_cv_lib_readline_rl_completion_matches=no
24521 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24522 conftest$ac_exeext conftest.$ac_ext
24523 LIBS=$ac_check_lib_save_LIBS
24525 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
24526 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6; }
24527 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
24529 cat >>confdefs.h <<\_ACEOF
24530 #define HAVE_RL_COMPLETION_MATCHES 1
24531 _ACEOF
24536 # also in readline 4.2
24537 cat >conftest.$ac_ext <<_ACEOF
24538 /* confdefs.h. */
24539 _ACEOF
24540 cat confdefs.h >>conftest.$ac_ext
24541 cat >>conftest.$ac_ext <<_ACEOF
24542 /* end confdefs.h. */
24543 #include <readline/readline.h>
24544 _ACEOF
24545 if { (ac_try="$ac_cpp conftest.$ac_ext"
24546 case "(($ac_try" in
24547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24548 *) ac_try_echo=$ac_try;;
24549 esac
24550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24551 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24552 ac_status=$?
24553 grep -v '^ *+' conftest.er1 >conftest.err
24554 rm -f conftest.er1
24555 cat conftest.err >&5
24556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24557 (exit $ac_status); } >/dev/null && {
24558 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24559 test ! -s conftest.err
24560 }; then
24561 have_readline=yes
24562 else
24563 echo "$as_me: failed program was:" >&5
24564 sed 's/^/| /' conftest.$ac_ext >&5
24566 have_readline=no
24569 rm -f conftest.err conftest.$ac_ext
24570 if test $have_readline = yes
24571 then
24572 cat >conftest.$ac_ext <<_ACEOF
24573 /* confdefs.h. */
24574 _ACEOF
24575 cat confdefs.h >>conftest.$ac_ext
24576 cat >>conftest.$ac_ext <<_ACEOF
24577 /* end confdefs.h. */
24578 #include <readline/readline.h>
24580 _ACEOF
24581 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24582 $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then
24584 cat >>confdefs.h <<\_ACEOF
24585 #define HAVE_RL_CATCH_SIGNAL 1
24586 _ACEOF
24589 rm -f -r conftest*
24593 # End of readline checks: restore LIBS
24594 LIBS=$LIBS_no_readline
24596 { echo "$as_me:$LINENO: checking for broken nice()" >&5
24597 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6; }
24598 if test "${ac_cv_broken_nice+set}" = set; then
24599 echo $ECHO_N "(cached) $ECHO_C" >&6
24600 else
24602 if test "$cross_compiling" = yes; then
24603 ac_cv_broken_nice=no
24604 else
24605 cat >conftest.$ac_ext <<_ACEOF
24606 /* confdefs.h. */
24607 _ACEOF
24608 cat confdefs.h >>conftest.$ac_ext
24609 cat >>conftest.$ac_ext <<_ACEOF
24610 /* end confdefs.h. */
24612 int main()
24614 int val1 = nice(1);
24615 if (val1 != -1 && val1 == nice(2))
24616 exit(0);
24617 exit(1);
24620 _ACEOF
24621 rm -f conftest$ac_exeext
24622 if { (ac_try="$ac_link"
24623 case "(($ac_try" in
24624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24625 *) ac_try_echo=$ac_try;;
24626 esac
24627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24628 (eval "$ac_link") 2>&5
24629 ac_status=$?
24630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24631 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24632 { (case "(($ac_try" in
24633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24634 *) ac_try_echo=$ac_try;;
24635 esac
24636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24637 (eval "$ac_try") 2>&5
24638 ac_status=$?
24639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24640 (exit $ac_status); }; }; then
24641 ac_cv_broken_nice=yes
24642 else
24643 echo "$as_me: program exited with status $ac_status" >&5
24644 echo "$as_me: failed program was:" >&5
24645 sed 's/^/| /' conftest.$ac_ext >&5
24647 ( exit $ac_status )
24648 ac_cv_broken_nice=no
24650 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24656 { echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
24657 echo "${ECHO_T}$ac_cv_broken_nice" >&6; }
24658 if test "$ac_cv_broken_nice" = yes
24659 then
24661 cat >>confdefs.h <<\_ACEOF
24662 #define HAVE_BROKEN_NICE 1
24663 _ACEOF
24667 { echo "$as_me:$LINENO: checking for broken poll()" >&5
24668 echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6; }
24669 if test "$cross_compiling" = yes; then
24670 ac_cv_broken_poll=no
24671 else
24672 cat >conftest.$ac_ext <<_ACEOF
24673 /* confdefs.h. */
24674 _ACEOF
24675 cat confdefs.h >>conftest.$ac_ext
24676 cat >>conftest.$ac_ext <<_ACEOF
24677 /* end confdefs.h. */
24679 #include <poll.h>
24681 int main (void)
24683 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
24685 close (42);
24687 int poll_test = poll (&poll_struct, 1, 0);
24689 if (poll_test < 0)
24691 exit(0);
24693 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
24695 exit(0);
24697 else
24699 exit(1);
24703 _ACEOF
24704 rm -f conftest$ac_exeext
24705 if { (ac_try="$ac_link"
24706 case "(($ac_try" in
24707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24708 *) ac_try_echo=$ac_try;;
24709 esac
24710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24711 (eval "$ac_link") 2>&5
24712 ac_status=$?
24713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24714 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24715 { (case "(($ac_try" in
24716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24717 *) ac_try_echo=$ac_try;;
24718 esac
24719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24720 (eval "$ac_try") 2>&5
24721 ac_status=$?
24722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24723 (exit $ac_status); }; }; then
24724 ac_cv_broken_poll=yes
24725 else
24726 echo "$as_me: program exited with status $ac_status" >&5
24727 echo "$as_me: failed program was:" >&5
24728 sed 's/^/| /' conftest.$ac_ext >&5
24730 ( exit $ac_status )
24731 ac_cv_broken_poll=no
24733 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24737 { echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
24738 echo "${ECHO_T}$ac_cv_broken_poll" >&6; }
24739 if test "$ac_cv_broken_poll" = yes
24740 then
24742 cat >>confdefs.h <<\_ACEOF
24743 #define HAVE_BROKEN_POLL 1
24744 _ACEOF
24748 # Before we can test tzset, we need to check if struct tm has a tm_zone
24749 # (which is not required by ISO C or UNIX spec) and/or if we support
24750 # tzname[]
24751 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
24752 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
24753 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
24754 echo $ECHO_N "(cached) $ECHO_C" >&6
24755 else
24756 cat >conftest.$ac_ext <<_ACEOF
24757 /* confdefs.h. */
24758 _ACEOF
24759 cat confdefs.h >>conftest.$ac_ext
24760 cat >>conftest.$ac_ext <<_ACEOF
24761 /* end confdefs.h. */
24762 #include <sys/types.h>
24763 #include <$ac_cv_struct_tm>
24767 main ()
24769 static struct tm ac_aggr;
24770 if (ac_aggr.tm_zone)
24771 return 0;
24773 return 0;
24775 _ACEOF
24776 rm -f conftest.$ac_objext
24777 if { (ac_try="$ac_compile"
24778 case "(($ac_try" in
24779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24780 *) ac_try_echo=$ac_try;;
24781 esac
24782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24783 (eval "$ac_compile") 2>conftest.er1
24784 ac_status=$?
24785 grep -v '^ *+' conftest.er1 >conftest.err
24786 rm -f conftest.er1
24787 cat conftest.err >&5
24788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24789 (exit $ac_status); } && {
24790 test -z "$ac_c_werror_flag" ||
24791 test ! -s conftest.err
24792 } && test -s conftest.$ac_objext; then
24793 ac_cv_member_struct_tm_tm_zone=yes
24794 else
24795 echo "$as_me: failed program was:" >&5
24796 sed 's/^/| /' conftest.$ac_ext >&5
24798 cat >conftest.$ac_ext <<_ACEOF
24799 /* confdefs.h. */
24800 _ACEOF
24801 cat confdefs.h >>conftest.$ac_ext
24802 cat >>conftest.$ac_ext <<_ACEOF
24803 /* end confdefs.h. */
24804 #include <sys/types.h>
24805 #include <$ac_cv_struct_tm>
24809 main ()
24811 static struct tm ac_aggr;
24812 if (sizeof ac_aggr.tm_zone)
24813 return 0;
24815 return 0;
24817 _ACEOF
24818 rm -f conftest.$ac_objext
24819 if { (ac_try="$ac_compile"
24820 case "(($ac_try" in
24821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24822 *) ac_try_echo=$ac_try;;
24823 esac
24824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24825 (eval "$ac_compile") 2>conftest.er1
24826 ac_status=$?
24827 grep -v '^ *+' conftest.er1 >conftest.err
24828 rm -f conftest.er1
24829 cat conftest.err >&5
24830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24831 (exit $ac_status); } && {
24832 test -z "$ac_c_werror_flag" ||
24833 test ! -s conftest.err
24834 } && test -s conftest.$ac_objext; then
24835 ac_cv_member_struct_tm_tm_zone=yes
24836 else
24837 echo "$as_me: failed program was:" >&5
24838 sed 's/^/| /' conftest.$ac_ext >&5
24840 ac_cv_member_struct_tm_tm_zone=no
24843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24848 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
24849 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
24850 if test $ac_cv_member_struct_tm_tm_zone = yes; then
24852 cat >>confdefs.h <<_ACEOF
24853 #define HAVE_STRUCT_TM_TM_ZONE 1
24854 _ACEOF
24859 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
24861 cat >>confdefs.h <<\_ACEOF
24862 #define HAVE_TM_ZONE 1
24863 _ACEOF
24865 else
24866 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
24867 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
24868 if test "${ac_cv_have_decl_tzname+set}" = set; then
24869 echo $ECHO_N "(cached) $ECHO_C" >&6
24870 else
24871 cat >conftest.$ac_ext <<_ACEOF
24872 /* confdefs.h. */
24873 _ACEOF
24874 cat confdefs.h >>conftest.$ac_ext
24875 cat >>conftest.$ac_ext <<_ACEOF
24876 /* end confdefs.h. */
24877 #include <time.h>
24880 main ()
24882 #ifndef tzname
24883 (void) tzname;
24884 #endif
24887 return 0;
24889 _ACEOF
24890 rm -f conftest.$ac_objext
24891 if { (ac_try="$ac_compile"
24892 case "(($ac_try" in
24893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24894 *) ac_try_echo=$ac_try;;
24895 esac
24896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24897 (eval "$ac_compile") 2>conftest.er1
24898 ac_status=$?
24899 grep -v '^ *+' conftest.er1 >conftest.err
24900 rm -f conftest.er1
24901 cat conftest.err >&5
24902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24903 (exit $ac_status); } && {
24904 test -z "$ac_c_werror_flag" ||
24905 test ! -s conftest.err
24906 } && test -s conftest.$ac_objext; then
24907 ac_cv_have_decl_tzname=yes
24908 else
24909 echo "$as_me: failed program was:" >&5
24910 sed 's/^/| /' conftest.$ac_ext >&5
24912 ac_cv_have_decl_tzname=no
24915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24917 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
24918 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
24919 if test $ac_cv_have_decl_tzname = yes; then
24921 cat >>confdefs.h <<_ACEOF
24922 #define HAVE_DECL_TZNAME 1
24923 _ACEOF
24926 else
24927 cat >>confdefs.h <<_ACEOF
24928 #define HAVE_DECL_TZNAME 0
24929 _ACEOF
24935 { echo "$as_me:$LINENO: checking for tzname" >&5
24936 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
24937 if test "${ac_cv_var_tzname+set}" = set; then
24938 echo $ECHO_N "(cached) $ECHO_C" >&6
24939 else
24940 cat >conftest.$ac_ext <<_ACEOF
24941 /* confdefs.h. */
24942 _ACEOF
24943 cat confdefs.h >>conftest.$ac_ext
24944 cat >>conftest.$ac_ext <<_ACEOF
24945 /* end confdefs.h. */
24946 #include <time.h>
24947 #if !HAVE_DECL_TZNAME
24948 extern char *tzname[];
24949 #endif
24952 main ()
24954 return tzname[0][0];
24956 return 0;
24958 _ACEOF
24959 rm -f conftest.$ac_objext conftest$ac_exeext
24960 if { (ac_try="$ac_link"
24961 case "(($ac_try" in
24962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24963 *) ac_try_echo=$ac_try;;
24964 esac
24965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24966 (eval "$ac_link") 2>conftest.er1
24967 ac_status=$?
24968 grep -v '^ *+' conftest.er1 >conftest.err
24969 rm -f conftest.er1
24970 cat conftest.err >&5
24971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24972 (exit $ac_status); } && {
24973 test -z "$ac_c_werror_flag" ||
24974 test ! -s conftest.err
24975 } && test -s conftest$ac_exeext &&
24976 $as_test_x conftest$ac_exeext; then
24977 ac_cv_var_tzname=yes
24978 else
24979 echo "$as_me: failed program was:" >&5
24980 sed 's/^/| /' conftest.$ac_ext >&5
24982 ac_cv_var_tzname=no
24985 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24986 conftest$ac_exeext conftest.$ac_ext
24988 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
24989 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
24990 if test $ac_cv_var_tzname = yes; then
24992 cat >>confdefs.h <<\_ACEOF
24993 #define HAVE_TZNAME 1
24994 _ACEOF
25000 # check tzset(3) exists and works like we expect it to
25001 { echo "$as_me:$LINENO: checking for working tzset()" >&5
25002 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6; }
25003 if test "${ac_cv_working_tzset+set}" = set; then
25004 echo $ECHO_N "(cached) $ECHO_C" >&6
25005 else
25007 if test "$cross_compiling" = yes; then
25008 ac_cv_working_tzset=no
25009 else
25010 cat >conftest.$ac_ext <<_ACEOF
25011 /* confdefs.h. */
25012 _ACEOF
25013 cat confdefs.h >>conftest.$ac_ext
25014 cat >>conftest.$ac_ext <<_ACEOF
25015 /* end confdefs.h. */
25017 #include <stdlib.h>
25018 #include <time.h>
25019 #include <string.h>
25021 #if HAVE_TZNAME
25022 extern char *tzname[];
25023 #endif
25025 int main()
25027 /* Note that we need to ensure that not only does tzset(3)
25028 do 'something' with localtime, but it works as documented
25029 in the library reference and as expected by the test suite.
25030 This includes making sure that tzname is set properly if
25031 tm->tm_zone does not exist since it is the alternative way
25032 of getting timezone info.
25034 Red Hat 6.2 doesn't understand the southern hemisphere
25035 after New Year's Day.
25038 time_t groundhogday = 1044144000; /* GMT-based */
25039 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
25041 putenv("TZ=UTC+0");
25042 tzset();
25043 if (localtime(&groundhogday)->tm_hour != 0)
25044 exit(1);
25045 #if HAVE_TZNAME
25046 /* For UTC, tzname[1] is sometimes "", sometimes " " */
25047 if (strcmp(tzname[0], "UTC") ||
25048 (tzname[1][0] != 0 && tzname[1][0] != ' '))
25049 exit(1);
25050 #endif
25052 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
25053 tzset();
25054 if (localtime(&groundhogday)->tm_hour != 19)
25055 exit(1);
25056 #if HAVE_TZNAME
25057 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
25058 exit(1);
25059 #endif
25061 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
25062 tzset();
25063 if (localtime(&groundhogday)->tm_hour != 11)
25064 exit(1);
25065 #if HAVE_TZNAME
25066 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
25067 exit(1);
25068 #endif
25070 #if HAVE_STRUCT_TM_TM_ZONE
25071 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
25072 exit(1);
25073 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
25074 exit(1);
25075 #endif
25077 exit(0);
25080 _ACEOF
25081 rm -f conftest$ac_exeext
25082 if { (ac_try="$ac_link"
25083 case "(($ac_try" in
25084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25085 *) ac_try_echo=$ac_try;;
25086 esac
25087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25088 (eval "$ac_link") 2>&5
25089 ac_status=$?
25090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25091 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25092 { (case "(($ac_try" in
25093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25094 *) ac_try_echo=$ac_try;;
25095 esac
25096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25097 (eval "$ac_try") 2>&5
25098 ac_status=$?
25099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25100 (exit $ac_status); }; }; then
25101 ac_cv_working_tzset=yes
25102 else
25103 echo "$as_me: program exited with status $ac_status" >&5
25104 echo "$as_me: failed program was:" >&5
25105 sed 's/^/| /' conftest.$ac_ext >&5
25107 ( exit $ac_status )
25108 ac_cv_working_tzset=no
25110 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25116 { echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
25117 echo "${ECHO_T}$ac_cv_working_tzset" >&6; }
25118 if test "$ac_cv_working_tzset" = yes
25119 then
25121 cat >>confdefs.h <<\_ACEOF
25122 #define HAVE_WORKING_TZSET 1
25123 _ACEOF
25127 # Look for subsecond timestamps in struct stat
25128 { echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
25129 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6; }
25130 if test "${ac_cv_stat_tv_nsec+set}" = set; then
25131 echo $ECHO_N "(cached) $ECHO_C" >&6
25132 else
25133 cat >conftest.$ac_ext <<_ACEOF
25134 /* confdefs.h. */
25135 _ACEOF
25136 cat confdefs.h >>conftest.$ac_ext
25137 cat >>conftest.$ac_ext <<_ACEOF
25138 /* end confdefs.h. */
25139 #include <sys/stat.h>
25141 main ()
25144 struct stat st;
25145 st.st_mtim.tv_nsec = 1;
25148 return 0;
25150 _ACEOF
25151 rm -f conftest.$ac_objext
25152 if { (ac_try="$ac_compile"
25153 case "(($ac_try" in
25154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25155 *) ac_try_echo=$ac_try;;
25156 esac
25157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25158 (eval "$ac_compile") 2>conftest.er1
25159 ac_status=$?
25160 grep -v '^ *+' conftest.er1 >conftest.err
25161 rm -f conftest.er1
25162 cat conftest.err >&5
25163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25164 (exit $ac_status); } && {
25165 test -z "$ac_c_werror_flag" ||
25166 test ! -s conftest.err
25167 } && test -s conftest.$ac_objext; then
25168 ac_cv_stat_tv_nsec=yes
25169 else
25170 echo "$as_me: failed program was:" >&5
25171 sed 's/^/| /' conftest.$ac_ext >&5
25173 ac_cv_stat_tv_nsec=no
25176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25179 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
25180 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6; }
25181 if test "$ac_cv_stat_tv_nsec" = yes
25182 then
25184 cat >>confdefs.h <<\_ACEOF
25185 #define HAVE_STAT_TV_NSEC 1
25186 _ACEOF
25190 # Look for BSD style subsecond timestamps in struct stat
25191 { echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
25192 echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6; }
25193 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
25194 echo $ECHO_N "(cached) $ECHO_C" >&6
25195 else
25196 cat >conftest.$ac_ext <<_ACEOF
25197 /* confdefs.h. */
25198 _ACEOF
25199 cat confdefs.h >>conftest.$ac_ext
25200 cat >>conftest.$ac_ext <<_ACEOF
25201 /* end confdefs.h. */
25202 #include <sys/stat.h>
25204 main ()
25207 struct stat st;
25208 st.st_mtimespec.tv_nsec = 1;
25211 return 0;
25213 _ACEOF
25214 rm -f conftest.$ac_objext
25215 if { (ac_try="$ac_compile"
25216 case "(($ac_try" in
25217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25218 *) ac_try_echo=$ac_try;;
25219 esac
25220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25221 (eval "$ac_compile") 2>conftest.er1
25222 ac_status=$?
25223 grep -v '^ *+' conftest.er1 >conftest.err
25224 rm -f conftest.er1
25225 cat conftest.err >&5
25226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25227 (exit $ac_status); } && {
25228 test -z "$ac_c_werror_flag" ||
25229 test ! -s conftest.err
25230 } && test -s conftest.$ac_objext; then
25231 ac_cv_stat_tv_nsec2=yes
25232 else
25233 echo "$as_me: failed program was:" >&5
25234 sed 's/^/| /' conftest.$ac_ext >&5
25236 ac_cv_stat_tv_nsec2=no
25239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25242 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
25243 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6; }
25244 if test "$ac_cv_stat_tv_nsec2" = yes
25245 then
25247 cat >>confdefs.h <<\_ACEOF
25248 #define HAVE_STAT_TV_NSEC2 1
25249 _ACEOF
25253 # On HP/UX 11.0, mvwdelch is a block with a return statement
25254 { echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
25255 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6; }
25256 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
25257 echo $ECHO_N "(cached) $ECHO_C" >&6
25258 else
25259 cat >conftest.$ac_ext <<_ACEOF
25260 /* confdefs.h. */
25261 _ACEOF
25262 cat confdefs.h >>conftest.$ac_ext
25263 cat >>conftest.$ac_ext <<_ACEOF
25264 /* end confdefs.h. */
25265 #include <curses.h>
25267 main ()
25270 int rtn;
25271 rtn = mvwdelch(0,0,0);
25274 return 0;
25276 _ACEOF
25277 rm -f conftest.$ac_objext
25278 if { (ac_try="$ac_compile"
25279 case "(($ac_try" in
25280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25281 *) ac_try_echo=$ac_try;;
25282 esac
25283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25284 (eval "$ac_compile") 2>conftest.er1
25285 ac_status=$?
25286 grep -v '^ *+' conftest.er1 >conftest.err
25287 rm -f conftest.er1
25288 cat conftest.err >&5
25289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25290 (exit $ac_status); } && {
25291 test -z "$ac_c_werror_flag" ||
25292 test ! -s conftest.err
25293 } && test -s conftest.$ac_objext; then
25294 ac_cv_mvwdelch_is_expression=yes
25295 else
25296 echo "$as_me: failed program was:" >&5
25297 sed 's/^/| /' conftest.$ac_ext >&5
25299 ac_cv_mvwdelch_is_expression=no
25302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25305 { echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
25306 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6; }
25308 if test "$ac_cv_mvwdelch_is_expression" = yes
25309 then
25311 cat >>confdefs.h <<\_ACEOF
25312 #define MVWDELCH_IS_EXPRESSION 1
25313 _ACEOF
25317 { echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
25318 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6; }
25319 if test "${ac_cv_window_has_flags+set}" = set; then
25320 echo $ECHO_N "(cached) $ECHO_C" >&6
25321 else
25322 cat >conftest.$ac_ext <<_ACEOF
25323 /* confdefs.h. */
25324 _ACEOF
25325 cat confdefs.h >>conftest.$ac_ext
25326 cat >>conftest.$ac_ext <<_ACEOF
25327 /* end confdefs.h. */
25328 #include <curses.h>
25330 main ()
25333 WINDOW *w;
25334 w->_flags = 0;
25337 return 0;
25339 _ACEOF
25340 rm -f conftest.$ac_objext
25341 if { (ac_try="$ac_compile"
25342 case "(($ac_try" in
25343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25344 *) ac_try_echo=$ac_try;;
25345 esac
25346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25347 (eval "$ac_compile") 2>conftest.er1
25348 ac_status=$?
25349 grep -v '^ *+' conftest.er1 >conftest.err
25350 rm -f conftest.er1
25351 cat conftest.err >&5
25352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25353 (exit $ac_status); } && {
25354 test -z "$ac_c_werror_flag" ||
25355 test ! -s conftest.err
25356 } && test -s conftest.$ac_objext; then
25357 ac_cv_window_has_flags=yes
25358 else
25359 echo "$as_me: failed program was:" >&5
25360 sed 's/^/| /' conftest.$ac_ext >&5
25362 ac_cv_window_has_flags=no
25365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25368 { echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
25369 echo "${ECHO_T}$ac_cv_window_has_flags" >&6; }
25372 if test "$ac_cv_window_has_flags" = yes
25373 then
25375 cat >>confdefs.h <<\_ACEOF
25376 #define WINDOW_HAS_FLAGS 1
25377 _ACEOF
25381 { echo "$as_me:$LINENO: checking for is_term_resized" >&5
25382 echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6; }
25383 cat >conftest.$ac_ext <<_ACEOF
25384 /* confdefs.h. */
25385 _ACEOF
25386 cat confdefs.h >>conftest.$ac_ext
25387 cat >>conftest.$ac_ext <<_ACEOF
25388 /* end confdefs.h. */
25389 #include <curses.h>
25391 main ()
25393 void *x=is_term_resized
25395 return 0;
25397 _ACEOF
25398 rm -f conftest.$ac_objext
25399 if { (ac_try="$ac_compile"
25400 case "(($ac_try" in
25401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25402 *) ac_try_echo=$ac_try;;
25403 esac
25404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25405 (eval "$ac_compile") 2>conftest.er1
25406 ac_status=$?
25407 grep -v '^ *+' conftest.er1 >conftest.err
25408 rm -f conftest.er1
25409 cat conftest.err >&5
25410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25411 (exit $ac_status); } && {
25412 test -z "$ac_c_werror_flag" ||
25413 test ! -s conftest.err
25414 } && test -s conftest.$ac_objext; then
25416 cat >>confdefs.h <<\_ACEOF
25417 #define HAVE_CURSES_IS_TERM_RESIZED 1
25418 _ACEOF
25420 { echo "$as_me:$LINENO: result: yes" >&5
25421 echo "${ECHO_T}yes" >&6; }
25422 else
25423 echo "$as_me: failed program was:" >&5
25424 sed 's/^/| /' conftest.$ac_ext >&5
25426 { echo "$as_me:$LINENO: result: no" >&5
25427 echo "${ECHO_T}no" >&6; }
25431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25433 { echo "$as_me:$LINENO: checking for resize_term" >&5
25434 echo $ECHO_N "checking for resize_term... $ECHO_C" >&6; }
25435 cat >conftest.$ac_ext <<_ACEOF
25436 /* confdefs.h. */
25437 _ACEOF
25438 cat confdefs.h >>conftest.$ac_ext
25439 cat >>conftest.$ac_ext <<_ACEOF
25440 /* end confdefs.h. */
25441 #include <curses.h>
25443 main ()
25445 void *x=resize_term
25447 return 0;
25449 _ACEOF
25450 rm -f conftest.$ac_objext
25451 if { (ac_try="$ac_compile"
25452 case "(($ac_try" in
25453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25454 *) ac_try_echo=$ac_try;;
25455 esac
25456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25457 (eval "$ac_compile") 2>conftest.er1
25458 ac_status=$?
25459 grep -v '^ *+' conftest.er1 >conftest.err
25460 rm -f conftest.er1
25461 cat conftest.err >&5
25462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25463 (exit $ac_status); } && {
25464 test -z "$ac_c_werror_flag" ||
25465 test ! -s conftest.err
25466 } && test -s conftest.$ac_objext; then
25468 cat >>confdefs.h <<\_ACEOF
25469 #define HAVE_CURSES_RESIZE_TERM 1
25470 _ACEOF
25472 { echo "$as_me:$LINENO: result: yes" >&5
25473 echo "${ECHO_T}yes" >&6; }
25474 else
25475 echo "$as_me: failed program was:" >&5
25476 sed 's/^/| /' conftest.$ac_ext >&5
25478 { echo "$as_me:$LINENO: result: no" >&5
25479 echo "${ECHO_T}no" >&6; }
25483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25485 { echo "$as_me:$LINENO: checking for resizeterm" >&5
25486 echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6; }
25487 cat >conftest.$ac_ext <<_ACEOF
25488 /* confdefs.h. */
25489 _ACEOF
25490 cat confdefs.h >>conftest.$ac_ext
25491 cat >>conftest.$ac_ext <<_ACEOF
25492 /* end confdefs.h. */
25493 #include <curses.h>
25495 main ()
25497 void *x=resizeterm
25499 return 0;
25501 _ACEOF
25502 rm -f conftest.$ac_objext
25503 if { (ac_try="$ac_compile"
25504 case "(($ac_try" in
25505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25506 *) ac_try_echo=$ac_try;;
25507 esac
25508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25509 (eval "$ac_compile") 2>conftest.er1
25510 ac_status=$?
25511 grep -v '^ *+' conftest.er1 >conftest.err
25512 rm -f conftest.er1
25513 cat conftest.err >&5
25514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25515 (exit $ac_status); } && {
25516 test -z "$ac_c_werror_flag" ||
25517 test ! -s conftest.err
25518 } && test -s conftest.$ac_objext; then
25520 cat >>confdefs.h <<\_ACEOF
25521 #define HAVE_CURSES_RESIZETERM 1
25522 _ACEOF
25524 { echo "$as_me:$LINENO: result: yes" >&5
25525 echo "${ECHO_T}yes" >&6; }
25526 else
25527 echo "$as_me: failed program was:" >&5
25528 sed 's/^/| /' conftest.$ac_ext >&5
25530 { echo "$as_me:$LINENO: result: no" >&5
25531 echo "${ECHO_T}no" >&6; }
25535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25537 { echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
25538 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6; }
25540 if test -r /dev/ptmx
25541 then
25542 { echo "$as_me:$LINENO: result: yes" >&5
25543 echo "${ECHO_T}yes" >&6; }
25545 cat >>confdefs.h <<\_ACEOF
25546 #define HAVE_DEV_PTMX 1
25547 _ACEOF
25549 else
25550 { echo "$as_me:$LINENO: result: no" >&5
25551 echo "${ECHO_T}no" >&6; }
25554 { echo "$as_me:$LINENO: checking for /dev/ptc" >&5
25555 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; }
25557 if test -r /dev/ptc
25558 then
25559 { echo "$as_me:$LINENO: result: yes" >&5
25560 echo "${ECHO_T}yes" >&6; }
25562 cat >>confdefs.h <<\_ACEOF
25563 #define HAVE_DEV_PTC 1
25564 _ACEOF
25566 else
25567 { echo "$as_me:$LINENO: result: no" >&5
25568 echo "${ECHO_T}no" >&6; }
25571 { echo "$as_me:$LINENO: checking for %zd printf() format support" >&5
25572 echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6; }
25573 if test "$cross_compiling" = yes; then
25574 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25575 See \`config.log' for more details." >&5
25576 echo "$as_me: error: cannot run test program while cross compiling
25577 See \`config.log' for more details." >&2;}
25578 { (exit 1); exit 1; }; }
25579 else
25580 cat >conftest.$ac_ext <<_ACEOF
25581 /* confdefs.h. */
25582 _ACEOF
25583 cat confdefs.h >>conftest.$ac_ext
25584 cat >>conftest.$ac_ext <<_ACEOF
25585 /* end confdefs.h. */
25586 #include <stdio.h>
25587 #include <stddef.h>
25588 #include <string.h>
25590 #ifdef HAVE_SYS_TYPES_H
25591 #include <sys/types.h>
25592 #endif
25594 #ifdef HAVE_SSIZE_T
25595 typedef ssize_t Py_ssize_t;
25596 #elif SIZEOF_VOID_P == SIZEOF_LONG
25597 typedef long Py_ssize_t;
25598 #else
25599 typedef int Py_ssize_t;
25600 #endif
25602 int main()
25604 char buffer[256];
25606 if(sprintf(buffer, "%zd", (size_t)123) < 0)
25607 return 1;
25609 if (strcmp(buffer, "123"))
25610 return 1;
25612 if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
25613 return 1;
25615 if (strcmp(buffer, "-123"))
25616 return 1;
25618 return 0;
25620 _ACEOF
25621 rm -f conftest$ac_exeext
25622 if { (ac_try="$ac_link"
25623 case "(($ac_try" in
25624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25625 *) ac_try_echo=$ac_try;;
25626 esac
25627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25628 (eval "$ac_link") 2>&5
25629 ac_status=$?
25630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25631 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25632 { (case "(($ac_try" in
25633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25634 *) ac_try_echo=$ac_try;;
25635 esac
25636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25637 (eval "$ac_try") 2>&5
25638 ac_status=$?
25639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25640 (exit $ac_status); }; }; then
25641 { echo "$as_me:$LINENO: result: yes" >&5
25642 echo "${ECHO_T}yes" >&6; }
25644 cat >>confdefs.h <<\_ACEOF
25645 #define PY_FORMAT_SIZE_T "z"
25646 _ACEOF
25648 else
25649 echo "$as_me: program exited with status $ac_status" >&5
25650 echo "$as_me: failed program was:" >&5
25651 sed 's/^/| /' conftest.$ac_ext >&5
25653 ( exit $ac_status )
25654 { echo "$as_me:$LINENO: result: no" >&5
25655 echo "${ECHO_T}no" >&6; }
25657 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25662 { echo "$as_me:$LINENO: checking for socklen_t" >&5
25663 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
25664 if test "${ac_cv_type_socklen_t+set}" = set; then
25665 echo $ECHO_N "(cached) $ECHO_C" >&6
25666 else
25667 cat >conftest.$ac_ext <<_ACEOF
25668 /* confdefs.h. */
25669 _ACEOF
25670 cat confdefs.h >>conftest.$ac_ext
25671 cat >>conftest.$ac_ext <<_ACEOF
25672 /* end confdefs.h. */
25674 #ifdef HAVE_SYS_TYPES_H
25675 #include <sys/types.h>
25676 #endif
25677 #ifdef HAVE_SYS_SOCKET_H
25678 #include <sys/socket.h>
25679 #endif
25682 typedef socklen_t ac__type_new_;
25684 main ()
25686 if ((ac__type_new_ *) 0)
25687 return 0;
25688 if (sizeof (ac__type_new_))
25689 return 0;
25691 return 0;
25693 _ACEOF
25694 rm -f conftest.$ac_objext
25695 if { (ac_try="$ac_compile"
25696 case "(($ac_try" in
25697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25698 *) ac_try_echo=$ac_try;;
25699 esac
25700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25701 (eval "$ac_compile") 2>conftest.er1
25702 ac_status=$?
25703 grep -v '^ *+' conftest.er1 >conftest.err
25704 rm -f conftest.er1
25705 cat conftest.err >&5
25706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25707 (exit $ac_status); } && {
25708 test -z "$ac_c_werror_flag" ||
25709 test ! -s conftest.err
25710 } && test -s conftest.$ac_objext; then
25711 ac_cv_type_socklen_t=yes
25712 else
25713 echo "$as_me: failed program was:" >&5
25714 sed 's/^/| /' conftest.$ac_ext >&5
25716 ac_cv_type_socklen_t=no
25719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25721 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
25722 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
25723 if test $ac_cv_type_socklen_t = yes; then
25725 else
25727 cat >>confdefs.h <<\_ACEOF
25728 #define socklen_t int
25729 _ACEOF
25734 { echo "$as_me:$LINENO: checking for broken mbstowcs" >&5
25735 echo $ECHO_N "checking for broken mbstowcs... $ECHO_C" >&6; }
25736 if test "$cross_compiling" = yes; then
25737 ac_cv_broken_mbstowcs=no
25738 else
25739 cat >conftest.$ac_ext <<_ACEOF
25740 /* confdefs.h. */
25741 _ACEOF
25742 cat confdefs.h >>conftest.$ac_ext
25743 cat >>conftest.$ac_ext <<_ACEOF
25744 /* end confdefs.h. */
25746 #include<stdlib.h>
25747 int main() {
25748 size_t len = -1;
25749 const char *str = "text";
25750 len = mbstowcs(NULL, str, 0);
25751 return (len != 4);
25754 _ACEOF
25755 rm -f conftest$ac_exeext
25756 if { (ac_try="$ac_link"
25757 case "(($ac_try" in
25758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25759 *) ac_try_echo=$ac_try;;
25760 esac
25761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25762 (eval "$ac_link") 2>&5
25763 ac_status=$?
25764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25765 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25766 { (case "(($ac_try" in
25767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25768 *) ac_try_echo=$ac_try;;
25769 esac
25770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25771 (eval "$ac_try") 2>&5
25772 ac_status=$?
25773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25774 (exit $ac_status); }; }; then
25775 ac_cv_broken_mbstowcs=no
25776 else
25777 echo "$as_me: program exited with status $ac_status" >&5
25778 echo "$as_me: failed program was:" >&5
25779 sed 's/^/| /' conftest.$ac_ext >&5
25781 ( exit $ac_status )
25782 ac_cv_broken_mbstowcs=yes
25784 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25788 { echo "$as_me:$LINENO: result: $ac_cv_broken_mbstowcs" >&5
25789 echo "${ECHO_T}$ac_cv_broken_mbstowcs" >&6; }
25790 if test "$ac_cv_broken_mbstowcs" = yes
25791 then
25793 cat >>confdefs.h <<\_ACEOF
25794 #define HAVE_BROKEN_MBSTOWCS 1
25795 _ACEOF
25799 # Check for --with-computed-gotos
25800 { echo "$as_me:$LINENO: checking for --with-computed-gotos" >&5
25801 echo $ECHO_N "checking for --with-computed-gotos... $ECHO_C" >&6; }
25803 # Check whether --with-computed-gotos was given.
25804 if test "${with_computed_gotos+set}" = set; then
25805 withval=$with_computed_gotos;
25806 if test "$withval" != no
25807 then
25809 cat >>confdefs.h <<\_ACEOF
25810 #define USE_COMPUTED_GOTOS 1
25811 _ACEOF
25813 { echo "$as_me:$LINENO: result: yes" >&5
25814 echo "${ECHO_T}yes" >&6; }
25815 else { echo "$as_me:$LINENO: result: no" >&5
25816 echo "${ECHO_T}no" >&6; }
25818 else
25819 { echo "$as_me:$LINENO: result: no" >&5
25820 echo "${ECHO_T}no" >&6; }
25824 if test $ac_sys_system = Darwin
25825 then
25826 LIBS="$LIBS -framework CoreFoundation"
25833 for h in `(cd $srcdir;echo Python/thread_*.h)`
25835 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
25836 done
25839 SRCDIRS="Parser Grammar Objects Python Modules Mac"
25840 { echo "$as_me:$LINENO: checking for build directories" >&5
25841 echo $ECHO_N "checking for build directories... $ECHO_C" >&6; }
25842 for dir in $SRCDIRS; do
25843 if test ! -d $dir; then
25844 mkdir $dir
25846 done
25847 { echo "$as_me:$LINENO: result: done" >&5
25848 echo "${ECHO_T}done" >&6; }
25850 # generate output files
25851 ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config Misc/python.pc"
25853 cat >confcache <<\_ACEOF
25854 # This file is a shell script that caches the results of configure
25855 # tests run on this system so they can be shared between configure
25856 # scripts and configure runs, see configure's option --config-cache.
25857 # It is not useful on other systems. If it contains results you don't
25858 # want to keep, you may remove or edit it.
25860 # config.status only pays attention to the cache file if you give it
25861 # the --recheck option to rerun configure.
25863 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25864 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25865 # following values.
25867 _ACEOF
25869 # The following way of writing the cache mishandles newlines in values,
25870 # but we know of no workaround that is simple, portable, and efficient.
25871 # So, we kill variables containing newlines.
25872 # Ultrix sh set writes to stderr and can't be redirected directly,
25873 # and sets the high bit in the cache file unless we assign to the vars.
25875 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25876 eval ac_val=\$$ac_var
25877 case $ac_val in #(
25878 *${as_nl}*)
25879 case $ac_var in #(
25880 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25881 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25882 esac
25883 case $ac_var in #(
25884 _ | IFS | as_nl) ;; #(
25885 *) $as_unset $ac_var ;;
25886 esac ;;
25887 esac
25888 done
25890 (set) 2>&1 |
25891 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25892 *${as_nl}ac_space=\ *)
25893 # `set' does not quote correctly, so add quotes (double-quote
25894 # substitution turns \\\\ into \\, and sed turns \\ into \).
25895 sed -n \
25896 "s/'/'\\\\''/g;
25897 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25898 ;; #(
25900 # `set' quotes correctly as required by POSIX, so do not add quotes.
25901 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25903 esac |
25904 sort
25906 sed '
25907 /^ac_cv_env_/b end
25908 t clear
25909 :clear
25910 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25911 t end
25912 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25913 :end' >>confcache
25914 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25915 if test -w "$cache_file"; then
25916 test "x$cache_file" != "x/dev/null" &&
25917 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
25918 echo "$as_me: updating cache $cache_file" >&6;}
25919 cat confcache >$cache_file
25920 else
25921 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25922 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25925 rm -f confcache
25927 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25928 # Let make expand exec_prefix.
25929 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25931 DEFS=-DHAVE_CONFIG_H
25933 ac_libobjs=
25934 ac_ltlibobjs=
25935 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25936 # 1. Remove the extension, and $U if already installed.
25937 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25938 ac_i=`echo "$ac_i" | sed "$ac_script"`
25939 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25940 # will be set to the directory where LIBOBJS objects are built.
25941 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25942 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
25943 done
25944 LIBOBJS=$ac_libobjs
25946 LTLIBOBJS=$ac_ltlibobjs
25950 : ${CONFIG_STATUS=./config.status}
25951 ac_clean_files_save=$ac_clean_files
25952 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25953 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25954 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25955 cat >$CONFIG_STATUS <<_ACEOF
25956 #! $SHELL
25957 # Generated by $as_me.
25958 # Run this file to recreate the current configuration.
25959 # Compiler output produced by configure, useful for debugging
25960 # configure, is in config.log if it exists.
25962 debug=false
25963 ac_cs_recheck=false
25964 ac_cs_silent=false
25965 SHELL=\${CONFIG_SHELL-$SHELL}
25966 _ACEOF
25968 cat >>$CONFIG_STATUS <<\_ACEOF
25969 ## --------------------- ##
25970 ## M4sh Initialization. ##
25971 ## --------------------- ##
25973 # Be more Bourne compatible
25974 DUALCASE=1; export DUALCASE # for MKS sh
25975 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25976 emulate sh
25977 NULLCMD=:
25978 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25979 # is contrary to our usage. Disable this feature.
25980 alias -g '${1+"$@"}'='"$@"'
25981 setopt NO_GLOB_SUBST
25982 else
25983 case `(set -o) 2>/dev/null` in
25984 *posix*) set -o posix ;;
25985 esac
25992 # PATH needs CR
25993 # Avoid depending upon Character Ranges.
25994 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25995 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25996 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25997 as_cr_digits='0123456789'
25998 as_cr_alnum=$as_cr_Letters$as_cr_digits
26000 # The user is always right.
26001 if test "${PATH_SEPARATOR+set}" != set; then
26002 echo "#! /bin/sh" >conf$$.sh
26003 echo "exit 0" >>conf$$.sh
26004 chmod +x conf$$.sh
26005 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26006 PATH_SEPARATOR=';'
26007 else
26008 PATH_SEPARATOR=:
26010 rm -f conf$$.sh
26013 # Support unset when possible.
26014 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26015 as_unset=unset
26016 else
26017 as_unset=false
26021 # IFS
26022 # We need space, tab and new line, in precisely that order. Quoting is
26023 # there to prevent editors from complaining about space-tab.
26024 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26025 # splitting by setting IFS to empty value.)
26026 as_nl='
26028 IFS=" "" $as_nl"
26030 # Find who we are. Look in the path if we contain no directory separator.
26031 case $0 in
26032 *[\\/]* ) as_myself=$0 ;;
26033 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26034 for as_dir in $PATH
26036 IFS=$as_save_IFS
26037 test -z "$as_dir" && as_dir=.
26038 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26039 done
26040 IFS=$as_save_IFS
26043 esac
26044 # We did not find ourselves, most probably we were run as `sh COMMAND'
26045 # in which case we are not to be found in the path.
26046 if test "x$as_myself" = x; then
26047 as_myself=$0
26049 if test ! -f "$as_myself"; then
26050 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26051 { (exit 1); exit 1; }
26054 # Work around bugs in pre-3.0 UWIN ksh.
26055 for as_var in ENV MAIL MAILPATH
26056 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26057 done
26058 PS1='$ '
26059 PS2='> '
26060 PS4='+ '
26062 # NLS nuisances.
26063 for as_var in \
26064 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26065 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26066 LC_TELEPHONE LC_TIME
26068 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26069 eval $as_var=C; export $as_var
26070 else
26071 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26073 done
26075 # Required to use basename.
26076 if expr a : '\(a\)' >/dev/null 2>&1 &&
26077 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26078 as_expr=expr
26079 else
26080 as_expr=false
26083 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26084 as_basename=basename
26085 else
26086 as_basename=false
26090 # Name of the executable.
26091 as_me=`$as_basename -- "$0" ||
26092 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26093 X"$0" : 'X\(//\)$' \| \
26094 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26095 echo X/"$0" |
26096 sed '/^.*\/\([^/][^/]*\)\/*$/{
26097 s//\1/
26100 /^X\/\(\/\/\)$/{
26101 s//\1/
26104 /^X\/\(\/\).*/{
26105 s//\1/
26108 s/.*/./; q'`
26110 # CDPATH.
26111 $as_unset CDPATH
26115 as_lineno_1=$LINENO
26116 as_lineno_2=$LINENO
26117 test "x$as_lineno_1" != "x$as_lineno_2" &&
26118 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26120 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26121 # uniformly replaced by the line number. The first 'sed' inserts a
26122 # line-number line after each line using $LINENO; the second 'sed'
26123 # does the real work. The second script uses 'N' to pair each
26124 # line-number line with the line containing $LINENO, and appends
26125 # trailing '-' during substitution so that $LINENO is not a special
26126 # case at line end.
26127 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26128 # scripts with optimization help from Paolo Bonzini. Blame Lee
26129 # E. McMahon (1931-1989) for sed's syntax. :-)
26130 sed -n '
26132 /[$]LINENO/=
26133 ' <$as_myself |
26134 sed '
26135 s/[$]LINENO.*/&-/
26136 t lineno
26138 :lineno
26140 :loop
26141 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26142 t loop
26143 s/-\n.*//
26144 ' >$as_me.lineno &&
26145 chmod +x "$as_me.lineno" ||
26146 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26147 { (exit 1); exit 1; }; }
26149 # Don't try to exec as it changes $[0], causing all sort of problems
26150 # (the dirname of $[0] is not the place where we might find the
26151 # original and so on. Autoconf is especially sensitive to this).
26152 . "./$as_me.lineno"
26153 # Exit status is that of the last command.
26154 exit
26158 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26159 as_dirname=dirname
26160 else
26161 as_dirname=false
26164 ECHO_C= ECHO_N= ECHO_T=
26165 case `echo -n x` in
26166 -n*)
26167 case `echo 'x\c'` in
26168 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26169 *) ECHO_C='\c';;
26170 esac;;
26172 ECHO_N='-n';;
26173 esac
26175 if expr a : '\(a\)' >/dev/null 2>&1 &&
26176 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26177 as_expr=expr
26178 else
26179 as_expr=false
26182 rm -f conf$$ conf$$.exe conf$$.file
26183 if test -d conf$$.dir; then
26184 rm -f conf$$.dir/conf$$.file
26185 else
26186 rm -f conf$$.dir
26187 mkdir conf$$.dir
26189 echo >conf$$.file
26190 if ln -s conf$$.file conf$$ 2>/dev/null; then
26191 as_ln_s='ln -s'
26192 # ... but there are two gotchas:
26193 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26194 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26195 # In both cases, we have to default to `cp -p'.
26196 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26197 as_ln_s='cp -p'
26198 elif ln conf$$.file conf$$ 2>/dev/null; then
26199 as_ln_s=ln
26200 else
26201 as_ln_s='cp -p'
26203 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26204 rmdir conf$$.dir 2>/dev/null
26206 if mkdir -p . 2>/dev/null; then
26207 as_mkdir_p=:
26208 else
26209 test -d ./-p && rmdir ./-p
26210 as_mkdir_p=false
26213 if test -x / >/dev/null 2>&1; then
26214 as_test_x='test -x'
26215 else
26216 if ls -dL / >/dev/null 2>&1; then
26217 as_ls_L_option=L
26218 else
26219 as_ls_L_option=
26221 as_test_x='
26222 eval sh -c '\''
26223 if test -d "$1"; then
26224 test -d "$1/.";
26225 else
26226 case $1 in
26227 -*)set "./$1";;
26228 esac;
26229 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26230 ???[sx]*):;;*)false;;esac;fi
26231 '\'' sh
26234 as_executable_p=$as_test_x
26236 # Sed expression to map a string onto a valid CPP name.
26237 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26239 # Sed expression to map a string onto a valid variable name.
26240 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26243 exec 6>&1
26245 # Save the log message, to keep $[0] and so on meaningful, and to
26246 # report actual input values of CONFIG_FILES etc. instead of their
26247 # values after options handling.
26248 ac_log="
26249 This file was extended by python $as_me 3.1, which was
26250 generated by GNU Autoconf 2.61. Invocation command line was
26252 CONFIG_FILES = $CONFIG_FILES
26253 CONFIG_HEADERS = $CONFIG_HEADERS
26254 CONFIG_LINKS = $CONFIG_LINKS
26255 CONFIG_COMMANDS = $CONFIG_COMMANDS
26256 $ $0 $@
26258 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26261 _ACEOF
26263 cat >>$CONFIG_STATUS <<_ACEOF
26264 # Files that config.status was made for.
26265 config_files="$ac_config_files"
26266 config_headers="$ac_config_headers"
26268 _ACEOF
26270 cat >>$CONFIG_STATUS <<\_ACEOF
26271 ac_cs_usage="\
26272 \`$as_me' instantiates files from templates according to the
26273 current configuration.
26275 Usage: $0 [OPTIONS] [FILE]...
26277 -h, --help print this help, then exit
26278 -V, --version print version number and configuration settings, then exit
26279 -q, --quiet do not print progress messages
26280 -d, --debug don't remove temporary files
26281 --recheck update $as_me by reconfiguring in the same conditions
26282 --file=FILE[:TEMPLATE]
26283 instantiate the configuration file FILE
26284 --header=FILE[:TEMPLATE]
26285 instantiate the configuration header FILE
26287 Configuration files:
26288 $config_files
26290 Configuration headers:
26291 $config_headers
26293 Report bugs to <bug-autoconf@gnu.org>."
26295 _ACEOF
26296 cat >>$CONFIG_STATUS <<_ACEOF
26297 ac_cs_version="\\
26298 python config.status 3.1
26299 configured by $0, generated by GNU Autoconf 2.61,
26300 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26302 Copyright (C) 2006 Free Software Foundation, Inc.
26303 This config.status script is free software; the Free Software Foundation
26304 gives unlimited permission to copy, distribute and modify it."
26306 ac_pwd='$ac_pwd'
26307 srcdir='$srcdir'
26308 INSTALL='$INSTALL'
26309 _ACEOF
26311 cat >>$CONFIG_STATUS <<\_ACEOF
26312 # If no file are specified by the user, then we need to provide default
26313 # value. By we need to know if files were specified by the user.
26314 ac_need_defaults=:
26315 while test $# != 0
26317 case $1 in
26318 --*=*)
26319 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26320 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26321 ac_shift=:
26324 ac_option=$1
26325 ac_optarg=$2
26326 ac_shift=shift
26328 esac
26330 case $ac_option in
26331 # Handling of the options.
26332 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26333 ac_cs_recheck=: ;;
26334 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26335 echo "$ac_cs_version"; exit ;;
26336 --debug | --debu | --deb | --de | --d | -d )
26337 debug=: ;;
26338 --file | --fil | --fi | --f )
26339 $ac_shift
26340 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26341 ac_need_defaults=false;;
26342 --header | --heade | --head | --hea )
26343 $ac_shift
26344 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26345 ac_need_defaults=false;;
26346 --he | --h)
26347 # Conflict between --help and --header
26348 { echo "$as_me: error: ambiguous option: $1
26349 Try \`$0 --help' for more information." >&2
26350 { (exit 1); exit 1; }; };;
26351 --help | --hel | -h )
26352 echo "$ac_cs_usage"; exit ;;
26353 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26354 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26355 ac_cs_silent=: ;;
26357 # This is an error.
26358 -*) { echo "$as_me: error: unrecognized option: $1
26359 Try \`$0 --help' for more information." >&2
26360 { (exit 1); exit 1; }; } ;;
26362 *) ac_config_targets="$ac_config_targets $1"
26363 ac_need_defaults=false ;;
26365 esac
26366 shift
26367 done
26369 ac_configure_extra_args=
26371 if $ac_cs_silent; then
26372 exec 6>/dev/null
26373 ac_configure_extra_args="$ac_configure_extra_args --silent"
26376 _ACEOF
26377 cat >>$CONFIG_STATUS <<_ACEOF
26378 if \$ac_cs_recheck; then
26379 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26380 CONFIG_SHELL=$SHELL
26381 export CONFIG_SHELL
26382 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26385 _ACEOF
26386 cat >>$CONFIG_STATUS <<\_ACEOF
26387 exec 5>>config.log
26389 echo
26390 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26391 ## Running $as_me. ##
26392 _ASBOX
26393 echo "$ac_log"
26394 } >&5
26396 _ACEOF
26397 cat >>$CONFIG_STATUS <<_ACEOF
26398 _ACEOF
26400 cat >>$CONFIG_STATUS <<\_ACEOF
26402 # Handling of arguments.
26403 for ac_config_target in $ac_config_targets
26405 case $ac_config_target in
26406 "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;;
26407 "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;;
26408 "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
26409 "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;;
26410 "Mac/Resources/app/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/app/Info.plist" ;;
26411 "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;;
26412 "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;;
26413 "Misc/python.pc") CONFIG_FILES="$CONFIG_FILES Misc/python.pc" ;;
26415 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26416 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26417 { (exit 1); exit 1; }; };;
26418 esac
26419 done
26422 # If the user did not use the arguments to specify the items to instantiate,
26423 # then the envvar interface is used. Set only those that are not.
26424 # We use the long form for the default assignment because of an extremely
26425 # bizarre bug on SunOS 4.1.3.
26426 if $ac_need_defaults; then
26427 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26428 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26431 # Have a temporary directory for convenience. Make it in the build tree
26432 # simply because there is no reason against having it here, and in addition,
26433 # creating and moving files from /tmp can sometimes cause problems.
26434 # Hook for its removal unless debugging.
26435 # Note that there is a small window in which the directory will not be cleaned:
26436 # after its creation but before its name has been assigned to `$tmp'.
26437 $debug ||
26439 tmp=
26440 trap 'exit_status=$?
26441 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26443 trap '{ (exit 1); exit 1; }' 1 2 13 15
26445 # Create a (secure) tmp directory for tmp files.
26448 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26449 test -n "$tmp" && test -d "$tmp"
26450 } ||
26452 tmp=./conf$$-$RANDOM
26453 (umask 077 && mkdir "$tmp")
26454 } ||
26456 echo "$me: cannot create a temporary directory in ." >&2
26457 { (exit 1); exit 1; }
26461 # Set up the sed scripts for CONFIG_FILES section.
26464 # No need to generate the scripts if there are no CONFIG_FILES.
26465 # This happens for instance when ./config.status config.h
26466 if test -n "$CONFIG_FILES"; then
26468 _ACEOF
26472 ac_delim='%!_!# '
26473 for ac_last_try in false false false false false :; do
26474 cat >conf$$subs.sed <<_ACEOF
26475 SHELL!$SHELL$ac_delim
26476 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
26477 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
26478 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
26479 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
26480 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
26481 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
26482 exec_prefix!$exec_prefix$ac_delim
26483 prefix!$prefix$ac_delim
26484 program_transform_name!$program_transform_name$ac_delim
26485 bindir!$bindir$ac_delim
26486 sbindir!$sbindir$ac_delim
26487 libexecdir!$libexecdir$ac_delim
26488 datarootdir!$datarootdir$ac_delim
26489 datadir!$datadir$ac_delim
26490 sysconfdir!$sysconfdir$ac_delim
26491 sharedstatedir!$sharedstatedir$ac_delim
26492 localstatedir!$localstatedir$ac_delim
26493 includedir!$includedir$ac_delim
26494 oldincludedir!$oldincludedir$ac_delim
26495 docdir!$docdir$ac_delim
26496 infodir!$infodir$ac_delim
26497 htmldir!$htmldir$ac_delim
26498 dvidir!$dvidir$ac_delim
26499 pdfdir!$pdfdir$ac_delim
26500 psdir!$psdir$ac_delim
26501 libdir!$libdir$ac_delim
26502 localedir!$localedir$ac_delim
26503 mandir!$mandir$ac_delim
26504 DEFS!$DEFS$ac_delim
26505 ECHO_C!$ECHO_C$ac_delim
26506 ECHO_N!$ECHO_N$ac_delim
26507 ECHO_T!$ECHO_T$ac_delim
26508 LIBS!$LIBS$ac_delim
26509 build_alias!$build_alias$ac_delim
26510 host_alias!$host_alias$ac_delim
26511 target_alias!$target_alias$ac_delim
26512 VERSION!$VERSION$ac_delim
26513 SOVERSION!$SOVERSION$ac_delim
26514 CONFIG_ARGS!$CONFIG_ARGS$ac_delim
26515 UNIVERSALSDK!$UNIVERSALSDK$ac_delim
26516 ARCH_RUN_32BIT!$ARCH_RUN_32BIT$ac_delim
26517 PYTHONFRAMEWORK!$PYTHONFRAMEWORK$ac_delim
26518 PYTHONFRAMEWORKIDENTIFIER!$PYTHONFRAMEWORKIDENTIFIER$ac_delim
26519 PYTHONFRAMEWORKDIR!$PYTHONFRAMEWORKDIR$ac_delim
26520 PYTHONFRAMEWORKPREFIX!$PYTHONFRAMEWORKPREFIX$ac_delim
26521 PYTHONFRAMEWORKINSTALLDIR!$PYTHONFRAMEWORKINSTALLDIR$ac_delim
26522 FRAMEWORKINSTALLFIRST!$FRAMEWORKINSTALLFIRST$ac_delim
26523 FRAMEWORKINSTALLLAST!$FRAMEWORKINSTALLLAST$ac_delim
26524 FRAMEWORKALTINSTALLFIRST!$FRAMEWORKALTINSTALLFIRST$ac_delim
26525 FRAMEWORKALTINSTALLLAST!$FRAMEWORKALTINSTALLLAST$ac_delim
26526 FRAMEWORKUNIXTOOLSPREFIX!$FRAMEWORKUNIXTOOLSPREFIX$ac_delim
26527 MACHDEP!$MACHDEP$ac_delim
26528 SGI_ABI!$SGI_ABI$ac_delim
26529 CONFIGURE_MACOSX_DEPLOYMENT_TARGET!$CONFIGURE_MACOSX_DEPLOYMENT_TARGET$ac_delim
26530 EXPORT_MACOSX_DEPLOYMENT_TARGET!$EXPORT_MACOSX_DEPLOYMENT_TARGET$ac_delim
26531 CC!$CC$ac_delim
26532 CFLAGS!$CFLAGS$ac_delim
26533 LDFLAGS!$LDFLAGS$ac_delim
26534 CPPFLAGS!$CPPFLAGS$ac_delim
26535 ac_ct_CC!$ac_ct_CC$ac_delim
26536 EXEEXT!$EXEEXT$ac_delim
26537 OBJEXT!$OBJEXT$ac_delim
26538 CXX!$CXX$ac_delim
26539 MAINCC!$MAINCC$ac_delim
26540 CPP!$CPP$ac_delim
26541 GREP!$GREP$ac_delim
26542 EGREP!$EGREP$ac_delim
26543 BUILDEXEEXT!$BUILDEXEEXT$ac_delim
26544 LIBRARY!$LIBRARY$ac_delim
26545 LDLIBRARY!$LDLIBRARY$ac_delim
26546 DLLLIBRARY!$DLLLIBRARY$ac_delim
26547 BLDLIBRARY!$BLDLIBRARY$ac_delim
26548 LDLIBRARYDIR!$LDLIBRARYDIR$ac_delim
26549 INSTSONAME!$INSTSONAME$ac_delim
26550 RUNSHARED!$RUNSHARED$ac_delim
26551 LINKCC!$LINKCC$ac_delim
26552 GNULD!$GNULD$ac_delim
26553 RANLIB!$RANLIB$ac_delim
26554 AR!$AR$ac_delim
26555 ARFLAGS!$ARFLAGS$ac_delim
26556 SVNVERSION!$SVNVERSION$ac_delim
26557 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
26558 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
26559 INSTALL_DATA!$INSTALL_DATA$ac_delim
26560 LN!$LN$ac_delim
26561 OPT!$OPT$ac_delim
26562 BASECFLAGS!$BASECFLAGS$ac_delim
26563 UNIVERSAL_ARCH_FLAGS!$UNIVERSAL_ARCH_FLAGS$ac_delim
26564 OTHER_LIBTOOL_OPT!$OTHER_LIBTOOL_OPT$ac_delim
26565 LIBTOOL_CRUFT!$LIBTOOL_CRUFT$ac_delim
26566 SO!$SO$ac_delim
26567 LDSHARED!$LDSHARED$ac_delim
26568 BLDSHARED!$BLDSHARED$ac_delim
26569 CCSHARED!$CCSHARED$ac_delim
26570 LINKFORSHARED!$LINKFORSHARED$ac_delim
26571 CFLAGSFORSHARED!$CFLAGSFORSHARED$ac_delim
26572 _ACEOF
26574 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
26575 break
26576 elif $ac_last_try; then
26577 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26578 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26579 { (exit 1); exit 1; }; }
26580 else
26581 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26583 done
26585 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26586 if test -n "$ac_eof"; then
26587 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26588 ac_eof=`expr $ac_eof + 1`
26591 cat >>$CONFIG_STATUS <<_ACEOF
26592 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
26593 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26594 _ACEOF
26595 sed '
26596 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26597 s/^/s,@/; s/!/@,|#_!!_#|/
26600 s/'"$ac_delim"'$/,g/; t
26601 s/$/\\/; p
26602 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26603 ' >>$CONFIG_STATUS <conf$$subs.sed
26604 rm -f conf$$subs.sed
26605 cat >>$CONFIG_STATUS <<_ACEOF
26606 CEOF$ac_eof
26607 _ACEOF
26610 ac_delim='%!_!# '
26611 for ac_last_try in false false false false false :; do
26612 cat >conf$$subs.sed <<_ACEOF
26613 SHLIBS!$SHLIBS$ac_delim
26614 USE_SIGNAL_MODULE!$USE_SIGNAL_MODULE$ac_delim
26615 SIGNAL_OBJS!$SIGNAL_OBJS$ac_delim
26616 USE_THREAD_MODULE!$USE_THREAD_MODULE$ac_delim
26617 LDLAST!$LDLAST$ac_delim
26618 THREADOBJ!$THREADOBJ$ac_delim
26619 DLINCLDIR!$DLINCLDIR$ac_delim
26620 DYNLOADFILE!$DYNLOADFILE$ac_delim
26621 MACHDEP_OBJS!$MACHDEP_OBJS$ac_delim
26622 TRUE!$TRUE$ac_delim
26623 LIBOBJS!$LIBOBJS$ac_delim
26624 HAVE_GETHOSTBYNAME_R_6_ARG!$HAVE_GETHOSTBYNAME_R_6_ARG$ac_delim
26625 HAVE_GETHOSTBYNAME_R_5_ARG!$HAVE_GETHOSTBYNAME_R_5_ARG$ac_delim
26626 HAVE_GETHOSTBYNAME_R_3_ARG!$HAVE_GETHOSTBYNAME_R_3_ARG$ac_delim
26627 HAVE_GETHOSTBYNAME_R!$HAVE_GETHOSTBYNAME_R$ac_delim
26628 HAVE_GETHOSTBYNAME!$HAVE_GETHOSTBYNAME$ac_delim
26629 LIBM!$LIBM$ac_delim
26630 LIBC!$LIBC$ac_delim
26631 THREADHEADERS!$THREADHEADERS$ac_delim
26632 SRCDIRS!$SRCDIRS$ac_delim
26633 LTLIBOBJS!$LTLIBOBJS$ac_delim
26634 _ACEOF
26636 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 21; then
26637 break
26638 elif $ac_last_try; then
26639 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26640 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26641 { (exit 1); exit 1; }; }
26642 else
26643 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26645 done
26647 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26648 if test -n "$ac_eof"; then
26649 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26650 ac_eof=`expr $ac_eof + 1`
26653 cat >>$CONFIG_STATUS <<_ACEOF
26654 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
26655 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
26656 _ACEOF
26657 sed '
26658 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26659 s/^/s,@/; s/!/@,|#_!!_#|/
26662 s/'"$ac_delim"'$/,g/; t
26663 s/$/\\/; p
26664 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26665 ' >>$CONFIG_STATUS <conf$$subs.sed
26666 rm -f conf$$subs.sed
26667 cat >>$CONFIG_STATUS <<_ACEOF
26668 :end
26669 s/|#_!!_#|//g
26670 CEOF$ac_eof
26671 _ACEOF
26674 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26675 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26676 # trailing colons and then remove the whole line if VPATH becomes empty
26677 # (actually we leave an empty line to preserve line numbers).
26678 if test "x$srcdir" = x.; then
26679 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26680 s/:*\$(srcdir):*/:/
26681 s/:*\${srcdir}:*/:/
26682 s/:*@srcdir@:*/:/
26683 s/^\([^=]*=[ ]*\):*/\1/
26684 s/:*$//
26685 s/^[^=]*=[ ]*$//
26689 cat >>$CONFIG_STATUS <<\_ACEOF
26690 fi # test -n "$CONFIG_FILES"
26693 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
26695 case $ac_tag in
26696 :[FHLC]) ac_mode=$ac_tag; continue;;
26697 esac
26698 case $ac_mode$ac_tag in
26699 :[FHL]*:*);;
26700 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26701 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26702 { (exit 1); exit 1; }; };;
26703 :[FH]-) ac_tag=-:-;;
26704 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26705 esac
26706 ac_save_IFS=$IFS
26707 IFS=:
26708 set x $ac_tag
26709 IFS=$ac_save_IFS
26710 shift
26711 ac_file=$1
26712 shift
26714 case $ac_mode in
26715 :L) ac_source=$1;;
26716 :[FH])
26717 ac_file_inputs=
26718 for ac_f
26720 case $ac_f in
26721 -) ac_f="$tmp/stdin";;
26722 *) # Look for the file first in the build tree, then in the source tree
26723 # (if the path is not absolute). The absolute path cannot be DOS-style,
26724 # because $ac_f cannot contain `:'.
26725 test -f "$ac_f" ||
26726 case $ac_f in
26727 [\\/$]*) false;;
26728 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26729 esac ||
26730 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26731 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26732 { (exit 1); exit 1; }; };;
26733 esac
26734 ac_file_inputs="$ac_file_inputs $ac_f"
26735 done
26737 # Let's still pretend it is `configure' which instantiates (i.e., don't
26738 # use $as_me), people would be surprised to read:
26739 # /* config.h. Generated by config.status. */
26740 configure_input="Generated from "`IFS=:
26741 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
26742 if test x"$ac_file" != x-; then
26743 configure_input="$ac_file. $configure_input"
26744 { echo "$as_me:$LINENO: creating $ac_file" >&5
26745 echo "$as_me: creating $ac_file" >&6;}
26748 case $ac_tag in
26749 *:-:* | *:-) cat >"$tmp/stdin";;
26750 esac
26752 esac
26754 ac_dir=`$as_dirname -- "$ac_file" ||
26755 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26756 X"$ac_file" : 'X\(//\)[^/]' \| \
26757 X"$ac_file" : 'X\(//\)$' \| \
26758 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26759 echo X"$ac_file" |
26760 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26761 s//\1/
26764 /^X\(\/\/\)[^/].*/{
26765 s//\1/
26768 /^X\(\/\/\)$/{
26769 s//\1/
26772 /^X\(\/\).*/{
26773 s//\1/
26776 s/.*/./; q'`
26777 { as_dir="$ac_dir"
26778 case $as_dir in #(
26779 -*) as_dir=./$as_dir;;
26780 esac
26781 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26782 as_dirs=
26783 while :; do
26784 case $as_dir in #(
26785 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26786 *) as_qdir=$as_dir;;
26787 esac
26788 as_dirs="'$as_qdir' $as_dirs"
26789 as_dir=`$as_dirname -- "$as_dir" ||
26790 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26791 X"$as_dir" : 'X\(//\)[^/]' \| \
26792 X"$as_dir" : 'X\(//\)$' \| \
26793 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26794 echo X"$as_dir" |
26795 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26796 s//\1/
26799 /^X\(\/\/\)[^/].*/{
26800 s//\1/
26803 /^X\(\/\/\)$/{
26804 s//\1/
26807 /^X\(\/\).*/{
26808 s//\1/
26811 s/.*/./; q'`
26812 test -d "$as_dir" && break
26813 done
26814 test -z "$as_dirs" || eval "mkdir $as_dirs"
26815 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26816 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26817 { (exit 1); exit 1; }; }; }
26818 ac_builddir=.
26820 case "$ac_dir" in
26821 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26823 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26824 # A ".." for each directory in $ac_dir_suffix.
26825 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26826 case $ac_top_builddir_sub in
26827 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26828 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26829 esac ;;
26830 esac
26831 ac_abs_top_builddir=$ac_pwd
26832 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26833 # for backward compatibility:
26834 ac_top_builddir=$ac_top_build_prefix
26836 case $srcdir in
26837 .) # We are building in place.
26838 ac_srcdir=.
26839 ac_top_srcdir=$ac_top_builddir_sub
26840 ac_abs_top_srcdir=$ac_pwd ;;
26841 [\\/]* | ?:[\\/]* ) # Absolute name.
26842 ac_srcdir=$srcdir$ac_dir_suffix;
26843 ac_top_srcdir=$srcdir
26844 ac_abs_top_srcdir=$srcdir ;;
26845 *) # Relative name.
26846 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26847 ac_top_srcdir=$ac_top_build_prefix$srcdir
26848 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26849 esac
26850 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26853 case $ac_mode in
26856 # CONFIG_FILE
26859 case $INSTALL in
26860 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26861 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26862 esac
26863 _ACEOF
26865 cat >>$CONFIG_STATUS <<\_ACEOF
26866 # If the template does not know about datarootdir, expand it.
26867 # FIXME: This hack should be removed a few years after 2.60.
26868 ac_datarootdir_hack=; ac_datarootdir_seen=
26870 case `sed -n '/datarootdir/ {
26874 /@datadir@/p
26875 /@docdir@/p
26876 /@infodir@/p
26877 /@localedir@/p
26878 /@mandir@/p
26879 ' $ac_file_inputs` in
26880 *datarootdir*) ac_datarootdir_seen=yes;;
26881 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26882 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26883 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26884 _ACEOF
26885 cat >>$CONFIG_STATUS <<_ACEOF
26886 ac_datarootdir_hack='
26887 s&@datadir@&$datadir&g
26888 s&@docdir@&$docdir&g
26889 s&@infodir@&$infodir&g
26890 s&@localedir@&$localedir&g
26891 s&@mandir@&$mandir&g
26892 s&\\\${datarootdir}&$datarootdir&g' ;;
26893 esac
26894 _ACEOF
26896 # Neutralize VPATH when `$srcdir' = `.'.
26897 # Shell code in configure.ac might set extrasub.
26898 # FIXME: do we really want to maintain this feature?
26899 cat >>$CONFIG_STATUS <<_ACEOF
26900 sed "$ac_vpsub
26901 $extrasub
26902 _ACEOF
26903 cat >>$CONFIG_STATUS <<\_ACEOF
26905 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26906 s&@configure_input@&$configure_input&;t t
26907 s&@top_builddir@&$ac_top_builddir_sub&;t t
26908 s&@srcdir@&$ac_srcdir&;t t
26909 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26910 s&@top_srcdir@&$ac_top_srcdir&;t t
26911 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26912 s&@builddir@&$ac_builddir&;t t
26913 s&@abs_builddir@&$ac_abs_builddir&;t t
26914 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26915 s&@INSTALL@&$ac_INSTALL&;t t
26916 $ac_datarootdir_hack
26917 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
26919 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26920 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26921 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26922 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26923 which seems to be undefined. Please make sure it is defined." >&5
26924 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26925 which seems to be undefined. Please make sure it is defined." >&2;}
26927 rm -f "$tmp/stdin"
26928 case $ac_file in
26929 -) cat "$tmp/out"; rm -f "$tmp/out";;
26930 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
26931 esac
26935 # CONFIG_HEADER
26937 _ACEOF
26939 # Transform confdefs.h into a sed script `conftest.defines', that
26940 # substitutes the proper values into config.h.in to produce config.h.
26941 rm -f conftest.defines conftest.tail
26942 # First, append a space to every undef/define line, to ease matching.
26943 echo 's/$/ /' >conftest.defines
26944 # Then, protect against being on the right side of a sed subst, or in
26945 # an unquoted here document, in config.status. If some macros were
26946 # called several times there might be several #defines for the same
26947 # symbol, which is useless. But do not sort them, since the last
26948 # AC_DEFINE must be honored.
26949 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26950 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
26951 # NAME is the cpp macro being defined, VALUE is the value it is being given.
26952 # PARAMS is the parameter list in the macro definition--in most cases, it's
26953 # just an empty string.
26954 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
26955 ac_dB='\\)[ (].*,\\1define\\2'
26956 ac_dC=' '
26957 ac_dD=' ,'
26959 uniq confdefs.h |
26960 sed -n '
26961 t rset
26962 :rset
26963 s/^[ ]*#[ ]*define[ ][ ]*//
26964 t ok
26967 s/[\\&,]/\\&/g
26968 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
26969 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
26970 ' >>conftest.defines
26972 # Remove the space that was appended to ease matching.
26973 # Then replace #undef with comments. This is necessary, for
26974 # example, in the case of _POSIX_SOURCE, which is predefined and required
26975 # on some systems where configure will not decide to define it.
26976 # (The regexp can be short, since the line contains either #define or #undef.)
26977 echo 's/ $//
26978 s,^[ #]*u.*,/* & */,' >>conftest.defines
26980 # Break up conftest.defines:
26981 ac_max_sed_lines=50
26983 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
26984 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
26985 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
26986 # et cetera.
26987 ac_in='$ac_file_inputs'
26988 ac_out='"$tmp/out1"'
26989 ac_nxt='"$tmp/out2"'
26991 while :
26993 # Write a here document:
26994 cat >>$CONFIG_STATUS <<_ACEOF
26995 # First, check the format of the line:
26996 cat >"\$tmp/defines.sed" <<\\CEOF
26997 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
26998 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
27000 :def
27001 _ACEOF
27002 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
27003 echo 'CEOF
27004 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
27005 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
27006 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
27007 grep . conftest.tail >/dev/null || break
27008 rm -f conftest.defines
27009 mv conftest.tail conftest.defines
27010 done
27011 rm -f conftest.defines conftest.tail
27013 echo "ac_result=$ac_in" >>$CONFIG_STATUS
27014 cat >>$CONFIG_STATUS <<\_ACEOF
27015 if test x"$ac_file" != x-; then
27016 echo "/* $configure_input */" >"$tmp/config.h"
27017 cat "$ac_result" >>"$tmp/config.h"
27018 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
27019 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27020 echo "$as_me: $ac_file is unchanged" >&6;}
27021 else
27022 rm -f $ac_file
27023 mv "$tmp/config.h" $ac_file
27025 else
27026 echo "/* $configure_input */"
27027 cat "$ac_result"
27029 rm -f "$tmp/out12"
27033 esac
27035 done # for ac_tag
27038 { (exit 0); exit 0; }
27039 _ACEOF
27040 chmod +x $CONFIG_STATUS
27041 ac_clean_files=$ac_clean_files_save
27044 # configure is writing to config.log, and then calls config.status.
27045 # config.status does its own redirection, appending to config.log.
27046 # Unfortunately, on DOS this fails, as config.log is still kept open
27047 # by configure, so config.status won't be able to write to it; its
27048 # output is simply discarded. So we exec the FD to /dev/null,
27049 # effectively closing config.log, so it can be properly (re)opened and
27050 # appended to by config.status. When coming back to configure, we
27051 # need to make the FD available again.
27052 if test "$no_create" != yes; then
27053 ac_cs_success=:
27054 ac_config_status_args=
27055 test "$silent" = yes &&
27056 ac_config_status_args="$ac_config_status_args --quiet"
27057 exec 5>/dev/null
27058 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27059 exec 5>>config.log
27060 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27061 # would make configure fail if this is the last instruction.
27062 $ac_cs_success || { (exit 1); exit 1; }
27066 echo "creating Modules/Setup"
27067 if test ! -f Modules/Setup
27068 then
27069 cp $srcdir/Modules/Setup.dist Modules/Setup
27072 echo "creating Modules/Setup.local"
27073 if test ! -f Modules/Setup.local
27074 then
27075 echo "# Edit this file for local setup changes" >Modules/Setup.local
27078 echo "creating Makefile"
27079 $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
27080 -s Modules Modules/Setup.config \
27081 Modules/Setup.local Modules/Setup
27082 mv config.c Modules