Merged revisions 80404 via svnmerge from
[python/dscho.git] / configure
blobc122fa619698ec44bcdbbb64abcda5367b5145d8
1 #! /bin/sh
2 # From configure.in Revision: 79354 .
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 LIPO_32BIT_FLAGS
662 LIPO_64BIT_FLAGS
663 PYTHONFRAMEWORK
664 PYTHONFRAMEWORKIDENTIFIER
665 PYTHONFRAMEWORKDIR
666 PYTHONFRAMEWORKPREFIX
667 PYTHONFRAMEWORKINSTALLDIR
668 FRAMEWORKINSTALLFIRST
669 FRAMEWORKINSTALLLAST
670 FRAMEWORKALTINSTALLFIRST
671 FRAMEWORKALTINSTALLLAST
672 FRAMEWORKUNIXTOOLSPREFIX
673 MACHDEP
674 SGI_ABI
675 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
676 EXPORT_MACOSX_DEPLOYMENT_TARGET
678 CFLAGS
679 LDFLAGS
680 CPPFLAGS
681 ac_ct_CC
682 EXEEXT
683 OBJEXT
685 MAINCC
687 GREP
688 EGREP
689 BUILDEXEEXT
690 LIBRARY
691 LDLIBRARY
692 DLLLIBRARY
693 BLDLIBRARY
694 LDLIBRARYDIR
695 INSTSONAME
696 RUNSHARED
697 LINKCC
698 GNULD
699 RANLIB
701 ARFLAGS
702 SVNVERSION
703 INSTALL_PROGRAM
704 INSTALL_SCRIPT
705 INSTALL_DATA
708 BASECFLAGS
709 UNIVERSAL_ARCH_FLAGS
710 OTHER_LIBTOOL_OPT
711 LIBTOOL_CRUFT
713 LDSHARED
714 BLDSHARED
715 CCSHARED
716 LINKFORSHARED
717 CFLAGSFORSHARED
718 SHLIBS
719 USE_SIGNAL_MODULE
720 SIGNAL_OBJS
721 USE_THREAD_MODULE
722 LDLAST
723 THREADOBJ
724 DLINCLDIR
725 DYNLOADFILE
726 MACHDEP_OBJS
727 TRUE
728 LIBOBJS
729 HAVE_GETHOSTBYNAME_R_6_ARG
730 HAVE_GETHOSTBYNAME_R_5_ARG
731 HAVE_GETHOSTBYNAME_R_3_ARG
732 HAVE_GETHOSTBYNAME_R
733 HAVE_GETHOSTBYNAME
734 LIBM
735 LIBC
736 THREADHEADERS
737 SRCDIRS
738 LTLIBOBJS'
739 ac_subst_files=''
740 ac_precious_vars='build_alias
741 host_alias
742 target_alias
744 CFLAGS
745 LDFLAGS
746 LIBS
747 CPPFLAGS
748 CPP'
751 # Initialize some variables set by options.
752 ac_init_help=
753 ac_init_version=false
754 # The variables have the same names as the options, with
755 # dashes changed to underlines.
756 cache_file=/dev/null
757 exec_prefix=NONE
758 no_create=
759 no_recursion=
760 prefix=NONE
761 program_prefix=NONE
762 program_suffix=NONE
763 program_transform_name=s,x,x,
764 silent=
765 site=
766 srcdir=
767 verbose=
768 x_includes=NONE
769 x_libraries=NONE
771 # Installation directory options.
772 # These are left unexpanded so users can "make install exec_prefix=/foo"
773 # and all the variables that are supposed to be based on exec_prefix
774 # by default will actually change.
775 # Use braces instead of parens because sh, perl, etc. also accept them.
776 # (The list follows the same order as the GNU Coding Standards.)
777 bindir='${exec_prefix}/bin'
778 sbindir='${exec_prefix}/sbin'
779 libexecdir='${exec_prefix}/libexec'
780 datarootdir='${prefix}/share'
781 datadir='${datarootdir}'
782 sysconfdir='${prefix}/etc'
783 sharedstatedir='${prefix}/com'
784 localstatedir='${prefix}/var'
785 includedir='${prefix}/include'
786 oldincludedir='/usr/include'
787 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
788 infodir='${datarootdir}/info'
789 htmldir='${docdir}'
790 dvidir='${docdir}'
791 pdfdir='${docdir}'
792 psdir='${docdir}'
793 libdir='${exec_prefix}/lib'
794 localedir='${datarootdir}/locale'
795 mandir='${datarootdir}/man'
797 ac_prev=
798 ac_dashdash=
799 for ac_option
801 # If the previous option needs an argument, assign it.
802 if test -n "$ac_prev"; then
803 eval $ac_prev=\$ac_option
804 ac_prev=
805 continue
808 case $ac_option in
809 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
810 *) ac_optarg=yes ;;
811 esac
813 # Accept the important Cygnus configure options, so we can diagnose typos.
815 case $ac_dashdash$ac_option in
817 ac_dashdash=yes ;;
819 -bindir | --bindir | --bindi | --bind | --bin | --bi)
820 ac_prev=bindir ;;
821 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
822 bindir=$ac_optarg ;;
824 -build | --build | --buil | --bui | --bu)
825 ac_prev=build_alias ;;
826 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
827 build_alias=$ac_optarg ;;
829 -cache-file | --cache-file | --cache-fil | --cache-fi \
830 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
831 ac_prev=cache_file ;;
832 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
833 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
834 cache_file=$ac_optarg ;;
836 --config-cache | -C)
837 cache_file=config.cache ;;
839 -datadir | --datadir | --datadi | --datad)
840 ac_prev=datadir ;;
841 -datadir=* | --datadir=* | --datadi=* | --datad=*)
842 datadir=$ac_optarg ;;
844 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
845 | --dataroo | --dataro | --datar)
846 ac_prev=datarootdir ;;
847 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
848 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
849 datarootdir=$ac_optarg ;;
851 -disable-* | --disable-*)
852 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
853 # Reject names that are not valid shell variable names.
854 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
855 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
856 { (exit 1); exit 1; }; }
857 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
858 eval enable_$ac_feature=no ;;
860 -docdir | --docdir | --docdi | --doc | --do)
861 ac_prev=docdir ;;
862 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
863 docdir=$ac_optarg ;;
865 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
866 ac_prev=dvidir ;;
867 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
868 dvidir=$ac_optarg ;;
870 -enable-* | --enable-*)
871 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
872 # Reject names that are not valid shell variable names.
873 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
874 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
875 { (exit 1); exit 1; }; }
876 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
877 eval enable_$ac_feature=\$ac_optarg ;;
879 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
880 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
881 | --exec | --exe | --ex)
882 ac_prev=exec_prefix ;;
883 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
884 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
885 | --exec=* | --exe=* | --ex=*)
886 exec_prefix=$ac_optarg ;;
888 -gas | --gas | --ga | --g)
889 # Obsolete; use --with-gas.
890 with_gas=yes ;;
892 -help | --help | --hel | --he | -h)
893 ac_init_help=long ;;
894 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
895 ac_init_help=recursive ;;
896 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
897 ac_init_help=short ;;
899 -host | --host | --hos | --ho)
900 ac_prev=host_alias ;;
901 -host=* | --host=* | --hos=* | --ho=*)
902 host_alias=$ac_optarg ;;
904 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
905 ac_prev=htmldir ;;
906 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
907 | --ht=*)
908 htmldir=$ac_optarg ;;
910 -includedir | --includedir | --includedi | --included | --include \
911 | --includ | --inclu | --incl | --inc)
912 ac_prev=includedir ;;
913 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
914 | --includ=* | --inclu=* | --incl=* | --inc=*)
915 includedir=$ac_optarg ;;
917 -infodir | --infodir | --infodi | --infod | --info | --inf)
918 ac_prev=infodir ;;
919 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
920 infodir=$ac_optarg ;;
922 -libdir | --libdir | --libdi | --libd)
923 ac_prev=libdir ;;
924 -libdir=* | --libdir=* | --libdi=* | --libd=*)
925 libdir=$ac_optarg ;;
927 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
928 | --libexe | --libex | --libe)
929 ac_prev=libexecdir ;;
930 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
931 | --libexe=* | --libex=* | --libe=*)
932 libexecdir=$ac_optarg ;;
934 -localedir | --localedir | --localedi | --localed | --locale)
935 ac_prev=localedir ;;
936 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
937 localedir=$ac_optarg ;;
939 -localstatedir | --localstatedir | --localstatedi | --localstated \
940 | --localstate | --localstat | --localsta | --localst | --locals)
941 ac_prev=localstatedir ;;
942 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
943 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
944 localstatedir=$ac_optarg ;;
946 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
947 ac_prev=mandir ;;
948 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
949 mandir=$ac_optarg ;;
951 -nfp | --nfp | --nf)
952 # Obsolete; use --without-fp.
953 with_fp=no ;;
955 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
956 | --no-cr | --no-c | -n)
957 no_create=yes ;;
959 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
960 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
961 no_recursion=yes ;;
963 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
964 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
965 | --oldin | --oldi | --old | --ol | --o)
966 ac_prev=oldincludedir ;;
967 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
968 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
969 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
970 oldincludedir=$ac_optarg ;;
972 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
973 ac_prev=prefix ;;
974 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
975 prefix=$ac_optarg ;;
977 -program-prefix | --program-prefix | --program-prefi | --program-pref \
978 | --program-pre | --program-pr | --program-p)
979 ac_prev=program_prefix ;;
980 -program-prefix=* | --program-prefix=* | --program-prefi=* \
981 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
982 program_prefix=$ac_optarg ;;
984 -program-suffix | --program-suffix | --program-suffi | --program-suff \
985 | --program-suf | --program-su | --program-s)
986 ac_prev=program_suffix ;;
987 -program-suffix=* | --program-suffix=* | --program-suffi=* \
988 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
989 program_suffix=$ac_optarg ;;
991 -program-transform-name | --program-transform-name \
992 | --program-transform-nam | --program-transform-na \
993 | --program-transform-n | --program-transform- \
994 | --program-transform | --program-transfor \
995 | --program-transfo | --program-transf \
996 | --program-trans | --program-tran \
997 | --progr-tra | --program-tr | --program-t)
998 ac_prev=program_transform_name ;;
999 -program-transform-name=* | --program-transform-name=* \
1000 | --program-transform-nam=* | --program-transform-na=* \
1001 | --program-transform-n=* | --program-transform-=* \
1002 | --program-transform=* | --program-transfor=* \
1003 | --program-transfo=* | --program-transf=* \
1004 | --program-trans=* | --program-tran=* \
1005 | --progr-tra=* | --program-tr=* | --program-t=*)
1006 program_transform_name=$ac_optarg ;;
1008 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1009 ac_prev=pdfdir ;;
1010 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1011 pdfdir=$ac_optarg ;;
1013 -psdir | --psdir | --psdi | --psd | --ps)
1014 ac_prev=psdir ;;
1015 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1016 psdir=$ac_optarg ;;
1018 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1019 | -silent | --silent | --silen | --sile | --sil)
1020 silent=yes ;;
1022 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1023 ac_prev=sbindir ;;
1024 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1025 | --sbi=* | --sb=*)
1026 sbindir=$ac_optarg ;;
1028 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1029 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1030 | --sharedst | --shareds | --shared | --share | --shar \
1031 | --sha | --sh)
1032 ac_prev=sharedstatedir ;;
1033 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1034 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1035 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1036 | --sha=* | --sh=*)
1037 sharedstatedir=$ac_optarg ;;
1039 -site | --site | --sit)
1040 ac_prev=site ;;
1041 -site=* | --site=* | --sit=*)
1042 site=$ac_optarg ;;
1044 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1045 ac_prev=srcdir ;;
1046 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1047 srcdir=$ac_optarg ;;
1049 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1050 | --syscon | --sysco | --sysc | --sys | --sy)
1051 ac_prev=sysconfdir ;;
1052 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1053 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1054 sysconfdir=$ac_optarg ;;
1056 -target | --target | --targe | --targ | --tar | --ta | --t)
1057 ac_prev=target_alias ;;
1058 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1059 target_alias=$ac_optarg ;;
1061 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1062 verbose=yes ;;
1064 -version | --version | --versio | --versi | --vers | -V)
1065 ac_init_version=: ;;
1067 -with-* | --with-*)
1068 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1069 # Reject names that are not valid shell variable names.
1070 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1071 { echo "$as_me: error: invalid package name: $ac_package" >&2
1072 { (exit 1); exit 1; }; }
1073 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1074 eval with_$ac_package=\$ac_optarg ;;
1076 -without-* | --without-*)
1077 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1078 # Reject names that are not valid shell variable names.
1079 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1080 { echo "$as_me: error: invalid package name: $ac_package" >&2
1081 { (exit 1); exit 1; }; }
1082 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1083 eval with_$ac_package=no ;;
1085 --x)
1086 # Obsolete; use --with-x.
1087 with_x=yes ;;
1089 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1090 | --x-incl | --x-inc | --x-in | --x-i)
1091 ac_prev=x_includes ;;
1092 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1093 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1094 x_includes=$ac_optarg ;;
1096 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1097 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1098 ac_prev=x_libraries ;;
1099 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1100 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1101 x_libraries=$ac_optarg ;;
1103 -*) { echo "$as_me: error: unrecognized option: $ac_option
1104 Try \`$0 --help' for more information." >&2
1105 { (exit 1); exit 1; }; }
1108 *=*)
1109 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1110 # Reject names that are not valid shell variable names.
1111 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1112 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1113 { (exit 1); exit 1; }; }
1114 eval $ac_envvar=\$ac_optarg
1115 export $ac_envvar ;;
1118 # FIXME: should be removed in autoconf 3.0.
1119 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1120 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1121 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1122 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1125 esac
1126 done
1128 if test -n "$ac_prev"; then
1129 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1130 { echo "$as_me: error: missing argument to $ac_option" >&2
1131 { (exit 1); exit 1; }; }
1134 # Be sure to have absolute directory names.
1135 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1136 datadir sysconfdir sharedstatedir localstatedir includedir \
1137 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1138 libdir localedir mandir
1140 eval ac_val=\$$ac_var
1141 case $ac_val in
1142 [\\/$]* | ?:[\\/]* ) continue;;
1143 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1144 esac
1145 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1146 { (exit 1); exit 1; }; }
1147 done
1149 # There might be people who depend on the old broken behavior: `$host'
1150 # used to hold the argument of --host etc.
1151 # FIXME: To remove some day.
1152 build=$build_alias
1153 host=$host_alias
1154 target=$target_alias
1156 # FIXME: To remove some day.
1157 if test "x$host_alias" != x; then
1158 if test "x$build_alias" = x; then
1159 cross_compiling=maybe
1160 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1161 If a cross compiler is detected then cross compile mode will be used." >&2
1162 elif test "x$build_alias" != "x$host_alias"; then
1163 cross_compiling=yes
1167 ac_tool_prefix=
1168 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1170 test "$silent" = yes && exec 6>/dev/null
1173 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1174 ac_ls_di=`ls -di .` &&
1175 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1176 { echo "$as_me: error: Working directory cannot be determined" >&2
1177 { (exit 1); exit 1; }; }
1178 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1179 { echo "$as_me: error: pwd does not report name of working directory" >&2
1180 { (exit 1); exit 1; }; }
1183 # Find the source files, if location was not specified.
1184 if test -z "$srcdir"; then
1185 ac_srcdir_defaulted=yes
1186 # Try the directory containing this script, then the parent directory.
1187 ac_confdir=`$as_dirname -- "$0" ||
1188 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1189 X"$0" : 'X\(//\)[^/]' \| \
1190 X"$0" : 'X\(//\)$' \| \
1191 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1192 echo X"$0" |
1193 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1194 s//\1/
1197 /^X\(\/\/\)[^/].*/{
1198 s//\1/
1201 /^X\(\/\/\)$/{
1202 s//\1/
1205 /^X\(\/\).*/{
1206 s//\1/
1209 s/.*/./; q'`
1210 srcdir=$ac_confdir
1211 if test ! -r "$srcdir/$ac_unique_file"; then
1212 srcdir=..
1214 else
1215 ac_srcdir_defaulted=no
1217 if test ! -r "$srcdir/$ac_unique_file"; then
1218 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1219 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1220 { (exit 1); exit 1; }; }
1222 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1223 ac_abs_confdir=`(
1224 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1225 { (exit 1); exit 1; }; }
1226 pwd)`
1227 # When building in place, set srcdir=.
1228 if test "$ac_abs_confdir" = "$ac_pwd"; then
1229 srcdir=.
1231 # Remove unnecessary trailing slashes from srcdir.
1232 # Double slashes in file names in object file debugging info
1233 # mess up M-x gdb in Emacs.
1234 case $srcdir in
1235 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1236 esac
1237 for ac_var in $ac_precious_vars; do
1238 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1239 eval ac_env_${ac_var}_value=\$${ac_var}
1240 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1241 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1242 done
1245 # Report the --help message.
1247 if test "$ac_init_help" = "long"; then
1248 # Omit some internal or obsolete options to make the list less imposing.
1249 # This message is too long to be a string in the A/UX 3.1 sh.
1250 cat <<_ACEOF
1251 \`configure' configures python 3.1 to adapt to many kinds of systems.
1253 Usage: $0 [OPTION]... [VAR=VALUE]...
1255 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1256 VAR=VALUE. See below for descriptions of some of the useful variables.
1258 Defaults for the options are specified in brackets.
1260 Configuration:
1261 -h, --help display this help and exit
1262 --help=short display options specific to this package
1263 --help=recursive display the short help of all the included packages
1264 -V, --version display version information and exit
1265 -q, --quiet, --silent do not print \`checking...' messages
1266 --cache-file=FILE cache test results in FILE [disabled]
1267 -C, --config-cache alias for \`--cache-file=config.cache'
1268 -n, --no-create do not create output files
1269 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1271 Installation directories:
1272 --prefix=PREFIX install architecture-independent files in PREFIX
1273 [$ac_default_prefix]
1274 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1275 [PREFIX]
1277 By default, \`make install' will install all the files in
1278 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1279 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1280 for instance \`--prefix=\$HOME'.
1282 For better control, use the options below.
1284 Fine tuning of the installation directories:
1285 --bindir=DIR user executables [EPREFIX/bin]
1286 --sbindir=DIR system admin executables [EPREFIX/sbin]
1287 --libexecdir=DIR program executables [EPREFIX/libexec]
1288 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1289 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1290 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1291 --libdir=DIR object code libraries [EPREFIX/lib]
1292 --includedir=DIR C header files [PREFIX/include]
1293 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1294 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1295 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1296 --infodir=DIR info documentation [DATAROOTDIR/info]
1297 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1298 --mandir=DIR man documentation [DATAROOTDIR/man]
1299 --docdir=DIR documentation root [DATAROOTDIR/doc/python]
1300 --htmldir=DIR html documentation [DOCDIR]
1301 --dvidir=DIR dvi documentation [DOCDIR]
1302 --pdfdir=DIR pdf documentation [DOCDIR]
1303 --psdir=DIR ps documentation [DOCDIR]
1304 _ACEOF
1306 cat <<\_ACEOF
1307 _ACEOF
1310 if test -n "$ac_init_help"; then
1311 case $ac_init_help in
1312 short | recursive ) echo "Configuration of python 3.1:";;
1313 esac
1314 cat <<\_ACEOF
1316 Optional Features:
1317 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1318 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1319 --enable-universalsdk[=SDKDIR]
1320 Build against Mac OS X 10.4u SDK (ppc/i386)
1321 --enable-framework[=INSTALLDIR]
1322 Build (MacOSX|Darwin) framework
1323 --enable-shared disable/enable building shared python library
1324 --enable-profiling enable C-level code profiling
1325 --enable-ipv6 Enable ipv6 (with ipv4) support
1326 --disable-ipv6 Disable ipv6 support
1327 --enable-big-digits[=BITS]
1328 use big digits for Python longs [BITS=30]
1330 Optional Packages:
1331 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1332 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1333 --with-universal-archs=ARCH
1334 select architectures for universal build ("32-bit",
1335 "64-bit", "3-way", "intel" or "all")
1336 --with-framework-name=FRAMEWORK
1337 specify an alternate name of the framework built
1338 with --enable-framework
1339 --without-gcc never use gcc
1340 --with-cxx-main=<compiler>
1341 compile main() and link python executable with C++
1342 compiler
1343 --with-suffix=.exe set executable suffix
1344 --with-pydebug build with Py_DEBUG defined
1345 --with-libs='lib1 ...' link against additional libs
1346 --with-system-ffi build _ctypes module using an installed ffi library
1347 --with-dbmliborder=db1:db2:...
1348 order to check db backends for dbm. Valid value is a
1349 colon separated string with the backend names
1350 `ndbm', `gdbm' and `bdb'.
1351 --with-signal-module disable/enable signal module
1352 --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries
1353 --with(out)-threads[=DIRECTORY]
1354 disable/enable thread support
1355 --with(out)-thread[=DIRECTORY]
1356 deprecated; use --with(out)-threads
1357 --with-pth use GNU pth threading libraries
1358 --with(out)-doc-strings disable/enable documentation strings
1359 --with(out)-tsc enable/disable timestamp counter profile
1360 --with(out)-pymalloc disable/enable specialized mallocs
1361 --with-wctype-functions use wctype.h functions
1362 --with-fpectl enable SIGFPE catching
1363 --with-libm=STRING math library
1364 --with-libc=STRING C library
1365 --with-wide-unicode Use 4-byte Unicode characters (default is 2 bytes)
1366 --with-computed-gotos Use computed gotos / threaded dispatch in evaluation
1367 loop (not available on all compilers)
1369 Some influential environment variables:
1370 CC C compiler command
1371 CFLAGS C compiler flags
1372 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1373 nonstandard directory <lib dir>
1374 LIBS libraries to pass to the linker, e.g. -l<library>
1375 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1376 you have headers in a nonstandard directory <include dir>
1377 CPP C preprocessor
1379 Use these variables to override the choices made by `configure' or to help
1380 it to find libraries and programs with nonstandard names/locations.
1382 Report bugs to <http://bugs.python.org/>.
1383 _ACEOF
1384 ac_status=$?
1387 if test "$ac_init_help" = "recursive"; then
1388 # If there are subdirs, report their specific --help.
1389 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1390 test -d "$ac_dir" || continue
1391 ac_builddir=.
1393 case "$ac_dir" in
1394 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1396 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1397 # A ".." for each directory in $ac_dir_suffix.
1398 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1399 case $ac_top_builddir_sub in
1400 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1401 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1402 esac ;;
1403 esac
1404 ac_abs_top_builddir=$ac_pwd
1405 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1406 # for backward compatibility:
1407 ac_top_builddir=$ac_top_build_prefix
1409 case $srcdir in
1410 .) # We are building in place.
1411 ac_srcdir=.
1412 ac_top_srcdir=$ac_top_builddir_sub
1413 ac_abs_top_srcdir=$ac_pwd ;;
1414 [\\/]* | ?:[\\/]* ) # Absolute name.
1415 ac_srcdir=$srcdir$ac_dir_suffix;
1416 ac_top_srcdir=$srcdir
1417 ac_abs_top_srcdir=$srcdir ;;
1418 *) # Relative name.
1419 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1420 ac_top_srcdir=$ac_top_build_prefix$srcdir
1421 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1422 esac
1423 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1425 cd "$ac_dir" || { ac_status=$?; continue; }
1426 # Check for guested configure.
1427 if test -f "$ac_srcdir/configure.gnu"; then
1428 echo &&
1429 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1430 elif test -f "$ac_srcdir/configure"; then
1431 echo &&
1432 $SHELL "$ac_srcdir/configure" --help=recursive
1433 else
1434 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1435 fi || ac_status=$?
1436 cd "$ac_pwd" || { ac_status=$?; break; }
1437 done
1440 test -n "$ac_init_help" && exit $ac_status
1441 if $ac_init_version; then
1442 cat <<\_ACEOF
1443 python configure 3.1
1444 generated by GNU Autoconf 2.61
1446 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1447 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1448 This configure script is free software; the Free Software Foundation
1449 gives unlimited permission to copy, distribute and modify it.
1450 _ACEOF
1451 exit
1453 cat >config.log <<_ACEOF
1454 This file contains any messages produced by compilers while
1455 running configure, to aid debugging if configure makes a mistake.
1457 It was created by python $as_me 3.1, which was
1458 generated by GNU Autoconf 2.61. Invocation command line was
1460 $ $0 $@
1462 _ACEOF
1463 exec 5>>config.log
1465 cat <<_ASUNAME
1466 ## --------- ##
1467 ## Platform. ##
1468 ## --------- ##
1470 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1471 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1472 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1473 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1474 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1476 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1477 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1479 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1480 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1481 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1482 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1483 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1484 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1485 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1487 _ASUNAME
1489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1490 for as_dir in $PATH
1492 IFS=$as_save_IFS
1493 test -z "$as_dir" && as_dir=.
1494 echo "PATH: $as_dir"
1495 done
1496 IFS=$as_save_IFS
1498 } >&5
1500 cat >&5 <<_ACEOF
1503 ## ----------- ##
1504 ## Core tests. ##
1505 ## ----------- ##
1507 _ACEOF
1510 # Keep a trace of the command line.
1511 # Strip out --no-create and --no-recursion so they do not pile up.
1512 # Strip out --silent because we don't want to record it for future runs.
1513 # Also quote any args containing shell meta-characters.
1514 # Make two passes to allow for proper duplicate-argument suppression.
1515 ac_configure_args=
1516 ac_configure_args0=
1517 ac_configure_args1=
1518 ac_must_keep_next=false
1519 for ac_pass in 1 2
1521 for ac_arg
1523 case $ac_arg in
1524 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1525 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1526 | -silent | --silent | --silen | --sile | --sil)
1527 continue ;;
1528 *\'*)
1529 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1530 esac
1531 case $ac_pass in
1532 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1534 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1535 if test $ac_must_keep_next = true; then
1536 ac_must_keep_next=false # Got value, back to normal.
1537 else
1538 case $ac_arg in
1539 *=* | --config-cache | -C | -disable-* | --disable-* \
1540 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1541 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1542 | -with-* | --with-* | -without-* | --without-* | --x)
1543 case "$ac_configure_args0 " in
1544 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1545 esac
1547 -* ) ac_must_keep_next=true ;;
1548 esac
1550 ac_configure_args="$ac_configure_args '$ac_arg'"
1552 esac
1553 done
1554 done
1555 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1556 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1558 # When interrupted or exit'd, cleanup temporary files, and complete
1559 # config.log. We remove comments because anyway the quotes in there
1560 # would cause problems or look ugly.
1561 # WARNING: Use '\'' to represent an apostrophe within the trap.
1562 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1563 trap 'exit_status=$?
1564 # Save into config.log some information that might help in debugging.
1566 echo
1568 cat <<\_ASBOX
1569 ## ---------------- ##
1570 ## Cache variables. ##
1571 ## ---------------- ##
1572 _ASBOX
1573 echo
1574 # The following way of writing the cache mishandles newlines in values,
1576 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1577 eval ac_val=\$$ac_var
1578 case $ac_val in #(
1579 *${as_nl}*)
1580 case $ac_var in #(
1581 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1582 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1583 esac
1584 case $ac_var in #(
1585 _ | IFS | as_nl) ;; #(
1586 *) $as_unset $ac_var ;;
1587 esac ;;
1588 esac
1589 done
1590 (set) 2>&1 |
1591 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1592 *${as_nl}ac_space=\ *)
1593 sed -n \
1594 "s/'\''/'\''\\\\'\'''\''/g;
1595 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1596 ;; #(
1598 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1600 esac |
1601 sort
1603 echo
1605 cat <<\_ASBOX
1606 ## ----------------- ##
1607 ## Output variables. ##
1608 ## ----------------- ##
1609 _ASBOX
1610 echo
1611 for ac_var in $ac_subst_vars
1613 eval ac_val=\$$ac_var
1614 case $ac_val in
1615 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1616 esac
1617 echo "$ac_var='\''$ac_val'\''"
1618 done | sort
1619 echo
1621 if test -n "$ac_subst_files"; then
1622 cat <<\_ASBOX
1623 ## ------------------- ##
1624 ## File substitutions. ##
1625 ## ------------------- ##
1626 _ASBOX
1627 echo
1628 for ac_var in $ac_subst_files
1630 eval ac_val=\$$ac_var
1631 case $ac_val in
1632 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1633 esac
1634 echo "$ac_var='\''$ac_val'\''"
1635 done | sort
1636 echo
1639 if test -s confdefs.h; then
1640 cat <<\_ASBOX
1641 ## ----------- ##
1642 ## confdefs.h. ##
1643 ## ----------- ##
1644 _ASBOX
1645 echo
1646 cat confdefs.h
1647 echo
1649 test "$ac_signal" != 0 &&
1650 echo "$as_me: caught signal $ac_signal"
1651 echo "$as_me: exit $exit_status"
1652 } >&5
1653 rm -f core *.core core.conftest.* &&
1654 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1655 exit $exit_status
1657 for ac_signal in 1 2 13 15; do
1658 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1659 done
1660 ac_signal=0
1662 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1663 rm -f -r conftest* confdefs.h
1665 # Predefined preprocessor variables.
1667 cat >>confdefs.h <<_ACEOF
1668 #define PACKAGE_NAME "$PACKAGE_NAME"
1669 _ACEOF
1672 cat >>confdefs.h <<_ACEOF
1673 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1674 _ACEOF
1677 cat >>confdefs.h <<_ACEOF
1678 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1679 _ACEOF
1682 cat >>confdefs.h <<_ACEOF
1683 #define PACKAGE_STRING "$PACKAGE_STRING"
1684 _ACEOF
1687 cat >>confdefs.h <<_ACEOF
1688 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1689 _ACEOF
1692 # Let the site file select an alternate cache file if it wants to.
1693 # Prefer explicitly selected file to automatically selected ones.
1694 if test -n "$CONFIG_SITE"; then
1695 set x "$CONFIG_SITE"
1696 elif test "x$prefix" != xNONE; then
1697 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1698 else
1699 set x "$ac_default_prefix/share/config.site" \
1700 "$ac_default_prefix/etc/config.site"
1702 shift
1703 for ac_site_file
1705 if test -r "$ac_site_file"; then
1706 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1707 echo "$as_me: loading site script $ac_site_file" >&6;}
1708 sed 's/^/| /' "$ac_site_file" >&5
1709 . "$ac_site_file"
1711 done
1713 if test -r "$cache_file"; then
1714 # Some versions of bash will fail to source /dev/null (special
1715 # files actually), so we avoid doing that.
1716 if test -f "$cache_file"; then
1717 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1718 echo "$as_me: loading cache $cache_file" >&6;}
1719 case $cache_file in
1720 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1721 *) . "./$cache_file";;
1722 esac
1724 else
1725 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1726 echo "$as_me: creating cache $cache_file" >&6;}
1727 >$cache_file
1730 # Check that the precious variables saved in the cache have kept the same
1731 # value.
1732 ac_cache_corrupted=false
1733 for ac_var in $ac_precious_vars; do
1734 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1735 eval ac_new_set=\$ac_env_${ac_var}_set
1736 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1737 eval ac_new_val=\$ac_env_${ac_var}_value
1738 case $ac_old_set,$ac_new_set in
1739 set,)
1740 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1741 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1742 ac_cache_corrupted=: ;;
1743 ,set)
1744 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1745 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1746 ac_cache_corrupted=: ;;
1747 ,);;
1749 if test "x$ac_old_val" != "x$ac_new_val"; then
1750 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1751 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1752 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1753 echo "$as_me: former value: $ac_old_val" >&2;}
1754 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1755 echo "$as_me: current value: $ac_new_val" >&2;}
1756 ac_cache_corrupted=:
1757 fi;;
1758 esac
1759 # Pass precious variables to config.status.
1760 if test "$ac_new_set" = set; then
1761 case $ac_new_val in
1762 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1763 *) ac_arg=$ac_var=$ac_new_val ;;
1764 esac
1765 case " $ac_configure_args " in
1766 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1767 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1768 esac
1770 done
1771 if $ac_cache_corrupted; then
1772 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1773 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1774 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1775 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1776 { (exit 1); exit 1; }; }
1803 ac_ext=c
1804 ac_cpp='$CPP $CPPFLAGS'
1805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1811 ac_config_headers="$ac_config_headers pyconfig.h"
1815 if test "$prefix" != "/"; then
1816 prefix=`echo "$prefix" | sed -e 's/\/$//g'`
1824 # We don't use PACKAGE_ variables, and they cause conflicts
1825 # with other autoconf-based packages that include Python.h
1826 grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
1827 rm confdefs.h
1828 mv confdefs.h.new confdefs.h
1831 VERSION=3.1
1834 SOVERSION=1.0
1836 # The later defininition of _XOPEN_SOURCE disables certain features
1837 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
1839 cat >>confdefs.h <<\_ACEOF
1840 #define _GNU_SOURCE 1
1841 _ACEOF
1844 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1845 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
1846 # them.
1848 cat >>confdefs.h <<\_ACEOF
1849 #define _NETBSD_SOURCE 1
1850 _ACEOF
1853 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1854 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
1855 # them.
1857 cat >>confdefs.h <<\_ACEOF
1858 #define __BSD_VISIBLE 1
1859 _ACEOF
1862 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1863 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
1865 cat >>confdefs.h <<\_ACEOF
1866 #define _BSD_TYPES 1
1867 _ACEOF
1870 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1871 # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable
1872 # them.
1874 cat >>confdefs.h <<\_ACEOF
1875 #define _DARWIN_C_SOURCE 1
1876 _ACEOF
1880 define_xopen_source=yes
1882 # Arguments passed to configure.
1884 CONFIG_ARGS="$ac_configure_args"
1886 { echo "$as_me:$LINENO: checking for --enable-universalsdk" >&5
1887 echo $ECHO_N "checking for --enable-universalsdk... $ECHO_C" >&6; }
1888 # Check whether --enable-universalsdk was given.
1889 if test "${enable_universalsdk+set}" = set; then
1890 enableval=$enable_universalsdk;
1891 case $enableval in
1892 yes)
1893 enableval=/Developer/SDKs/MacOSX10.4u.sdk
1894 if test ! -d "${enableval}"
1895 then
1896 enableval=/
1899 esac
1900 case $enableval in
1902 UNIVERSALSDK=
1903 enable_universalsdk=
1906 UNIVERSALSDK=$enableval
1907 if test ! -d "${UNIVERSALSDK}"
1908 then
1909 { { echo "$as_me:$LINENO: error: --enable-universalsdk specifies non-existing SDK: ${UNIVERSALSDK}" >&5
1910 echo "$as_me: error: --enable-universalsdk specifies non-existing SDK: ${UNIVERSALSDK}" >&2;}
1911 { (exit 1); exit 1; }; }
1914 esac
1917 else
1919 UNIVERSALSDK=
1920 enable_universalsdk=
1924 if test -n "${UNIVERSALSDK}"
1925 then
1926 { echo "$as_me:$LINENO: result: ${UNIVERSALSDK}" >&5
1927 echo "${ECHO_T}${UNIVERSALSDK}" >&6; }
1928 else
1929 { echo "$as_me:$LINENO: result: no" >&5
1930 echo "${ECHO_T}no" >&6; }
1936 UNIVERSAL_ARCHS="32-bit"
1939 { echo "$as_me:$LINENO: checking for --with-universal-archs" >&5
1940 echo $ECHO_N "checking for --with-universal-archs... $ECHO_C" >&6; }
1942 # Check whether --with-universal-archs was given.
1943 if test "${with_universal_archs+set}" = set; then
1944 withval=$with_universal_archs;
1945 { echo "$as_me:$LINENO: result: $withval" >&5
1946 echo "${ECHO_T}$withval" >&6; }
1947 UNIVERSAL_ARCHS="$withval"
1949 else
1951 { echo "$as_me:$LINENO: result: 32-bit" >&5
1952 echo "${ECHO_T}32-bit" >&6; }
1960 # Check whether --with-framework-name was given.
1961 if test "${with_framework_name+set}" = set; then
1962 withval=$with_framework_name;
1963 PYTHONFRAMEWORK=${withval}
1964 PYTHONFRAMEWORKDIR=${withval}.framework
1965 PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'`
1967 else
1969 PYTHONFRAMEWORK=Python
1970 PYTHONFRAMEWORKDIR=Python.framework
1971 PYTHONFRAMEWORKIDENTIFIER=org.python.python
1975 # Check whether --enable-framework was given.
1976 if test "${enable_framework+set}" = set; then
1977 enableval=$enable_framework;
1978 case $enableval in
1979 yes)
1980 enableval=/Library/Frameworks
1981 esac
1982 case $enableval in
1984 PYTHONFRAMEWORK=
1985 PYTHONFRAMEWORKDIR=no-framework
1986 PYTHONFRAMEWORKPREFIX=
1987 PYTHONFRAMEWORKINSTALLDIR=
1988 FRAMEWORKINSTALLFIRST=
1989 FRAMEWORKINSTALLLAST=
1990 FRAMEWORKALTINSTALLFIRST=
1991 FRAMEWORKALTINSTALLLAST=
1992 if test "x${prefix}" = "xNONE"; then
1993 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1994 else
1995 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1997 enable_framework=
2000 PYTHONFRAMEWORKPREFIX=$enableval
2001 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
2002 FRAMEWORKINSTALLFIRST="frameworkinstallstructure"
2003 FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure "
2004 case "${UNIVERSAL_ARCHS}" in
2005 all|3-way|intel)
2006 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkinstallunixtools4way"
2007 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkaltinstallunixtools4way"
2010 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools"
2011 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
2013 esac
2015 if test "x${prefix}" = "xNONE" ; then
2016 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
2017 else
2018 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
2020 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
2022 # Add files for Mac specific code to the list of output
2023 # files:
2024 ac_config_files="$ac_config_files Mac/Makefile"
2026 ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile"
2028 ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist"
2030 ac_config_files="$ac_config_files Mac/Resources/app/Info.plist"
2032 esac
2034 else
2036 PYTHONFRAMEWORK=
2037 PYTHONFRAMEWORKDIR=no-framework
2038 PYTHONFRAMEWORKPREFIX=
2039 PYTHONFRAMEWORKINSTALLDIR=
2040 FRAMEWORKINSTALLFIRST=
2041 FRAMEWORKINSTALLLAST=
2042 FRAMEWORKALTINSTALLFIRST=
2043 FRAMEWORKALTINSTALLLAST=
2044 if test "x${prefix}" = "xNONE" ; then
2045 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
2046 else
2047 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
2049 enable_framework=
2051 if test "$UNIVERSAL_ARCHS" = "all"
2052 then
2053 FRAMEWORKINSTALLLAST=update4wayuniversal
2054 FRAMEWORKALTINSTALLLAST=update4wayuniversal
2070 ##AC_ARG_WITH(dyld,
2071 ## AC_HELP_STRING(--with-dyld,
2072 ## Use (OpenStep|Rhapsody) dynamic linker))
2074 # Set name for machine-dependent library files
2076 { echo "$as_me:$LINENO: checking MACHDEP" >&5
2077 echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6; }
2078 if test -z "$MACHDEP"
2079 then
2080 ac_sys_system=`uname -s`
2081 if test "$ac_sys_system" = "AIX" \
2082 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
2083 ac_sys_release=`uname -v`
2084 else
2085 ac_sys_release=`uname -r`
2087 ac_md_system=`echo $ac_sys_system |
2088 tr -d '/ ' | tr '[A-Z]' '[a-z]'`
2089 ac_md_release=`echo $ac_sys_release |
2090 tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'`
2091 MACHDEP="$ac_md_system$ac_md_release"
2093 case $MACHDEP in
2094 cygwin*) MACHDEP="cygwin";;
2095 darwin*) MACHDEP="darwin";;
2096 atheos*) MACHDEP="atheos";;
2097 irix646) MACHDEP="irix6";;
2098 '') MACHDEP="unknown";;
2099 esac
2102 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
2103 # disable features if it is defined, without any means to access these
2104 # features as extensions. For these systems, we skip the definition of
2105 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
2106 # some feature, make sure there is no alternative way to access this
2107 # feature. Also, when using wildcards, make sure you have verified the
2108 # need for not defining _XOPEN_SOURCE on all systems matching the
2109 # wildcard, and that the wildcard does not include future systems
2110 # (which may remove their limitations).
2111 case $ac_sys_system/$ac_sys_release in
2112 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
2113 # even though select is a POSIX function. Reported by J. Ribbens.
2114 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
2115 # In addition, Stefan Krah confirms that issue #1244610 exists through
2116 # OpenBSD 4.6, but is fixed in 4.7.
2117 OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0123456])
2118 define_xopen_source=no
2119 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
2120 # also defined. This can be overridden by defining _BSD_SOURCE
2121 # As this has a different meaning on Linux, only define it on OpenBSD
2123 cat >>confdefs.h <<\_ACEOF
2124 #define _BSD_SOURCE 1
2125 _ACEOF
2128 OpenBSD/4.[789])
2129 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
2130 # also defined. This can be overridden by defining _BSD_SOURCE
2131 # As this has a different meaning on Linux, only define it on OpenBSD
2133 cat >>confdefs.h <<\_ACEOF
2134 #define _BSD_SOURCE 1
2135 _ACEOF
2138 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
2139 # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
2140 # Marc Recht
2141 NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S])
2142 define_xopen_source=no;;
2143 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
2144 # of union __?sigval. Reported by Stuart Bishop.
2145 SunOS/5.6)
2146 define_xopen_source=no;;
2147 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
2148 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
2149 # Reconfirmed for 7.1.4 by Martin v. Loewis.
2150 OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
2151 define_xopen_source=no;;
2152 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
2153 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
2154 SCO_SV/3.2)
2155 define_xopen_source=no;;
2156 # On FreeBSD 4, the math functions C89 does not cover are never defined
2157 # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them.
2158 FreeBSD/4.*)
2159 define_xopen_source=no;;
2160 # On MacOS X 10.2, a bug in ncurses.h means that it craps out if
2161 # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which
2162 # identifies itself as Darwin/7.*
2163 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2164 # disables platform specific features beyond repair.
2165 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2166 # has no effect, don't bother defining them
2167 Darwin/[6789].*)
2168 define_xopen_source=no;;
2169 Darwin/1[0-9].*)
2170 define_xopen_source=no;;
2171 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
2172 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
2173 # or has another value. By not (re)defining it, the defaults come in place.
2174 AIX/4)
2175 define_xopen_source=no;;
2176 AIX/5)
2177 if test `uname -r` -eq 1; then
2178 define_xopen_source=no
2181 # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from
2182 # defining NI_NUMERICHOST.
2183 QNX/6.3.2)
2184 define_xopen_source=no
2187 esac
2189 if test $define_xopen_source = yes
2190 then
2191 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
2192 # defined precisely as g++ defines it
2193 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
2194 # compiler
2195 case $ac_sys_system/$ac_sys_release in
2196 SunOS/5.8|SunOS/5.9|SunOS/5.10)
2198 cat >>confdefs.h <<\_ACEOF
2199 #define _XOPEN_SOURCE 500
2200 _ACEOF
2205 cat >>confdefs.h <<\_ACEOF
2206 #define _XOPEN_SOURCE 600
2207 _ACEOF
2210 esac
2212 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
2213 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
2214 # several APIs are not declared. Since this is also needed in some
2215 # cases for HP-UX, we define it globally.
2216 # except for Solaris 10, where it must not be defined,
2217 # as it implies XPG4.2
2218 case $ac_sys_system/$ac_sys_release in
2219 SunOS/5.10)
2223 cat >>confdefs.h <<\_ACEOF
2224 #define _XOPEN_SOURCE_EXTENDED 1
2225 _ACEOF
2228 esac
2231 cat >>confdefs.h <<\_ACEOF
2232 #define _POSIX_C_SOURCE 200112L
2233 _ACEOF
2239 # SGI compilers allow the specification of the both the ABI and the
2240 # ISA on the command line. Depending on the values of these switches,
2241 # different and often incompatable code will be generated.
2243 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
2244 # thus supply support for various ABI/ISA combinations. The MACHDEP
2245 # variable is also adjusted.
2248 if test ! -z "$SGI_ABI"
2249 then
2250 CC="cc $SGI_ABI"
2251 LDFLAGS="$SGI_ABI $LDFLAGS"
2252 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
2254 { echo "$as_me:$LINENO: result: $MACHDEP" >&5
2255 echo "${ECHO_T}$MACHDEP" >&6; }
2257 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
2258 # it may influence the way we can build extensions, so distutils
2259 # needs to check it
2262 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
2263 EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
2265 { echo "$as_me:$LINENO: checking machine type as reported by uname -m" >&5
2266 echo $ECHO_N "checking machine type as reported by uname -m... $ECHO_C" >&6; }
2267 ac_sys_machine=`uname -m`
2268 { echo "$as_me:$LINENO: result: $ac_sys_machine" >&5
2269 echo "${ECHO_T}$ac_sys_machine" >&6; }
2271 # checks for alternative programs
2273 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
2274 # for debug/optimization stuff. BASECFLAGS is for flags that are required
2275 # just to get things to compile and link. Users are free to override OPT
2276 # when running configure or make. The build should not break if they do.
2277 # BASECFLAGS should generally not be messed with, however.
2279 # XXX shouldn't some/most/all of this code be merged with the stuff later
2280 # on that fiddles with OPT and BASECFLAGS?
2281 { echo "$as_me:$LINENO: checking for --without-gcc" >&5
2282 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6; }
2284 # Check whether --with-gcc was given.
2285 if test "${with_gcc+set}" = set; then
2286 withval=$with_gcc;
2287 case $withval in
2288 no) CC=${CC:-cc}
2289 without_gcc=yes;;
2290 yes) CC=gcc
2291 without_gcc=no;;
2292 *) CC=$withval
2293 without_gcc=$withval;;
2294 esac
2295 else
2297 case $ac_sys_system in
2298 AIX*) CC=cc_r
2299 without_gcc=;;
2300 *) without_gcc=no;;
2301 esac
2304 { echo "$as_me:$LINENO: result: $without_gcc" >&5
2305 echo "${ECHO_T}$without_gcc" >&6; }
2307 # If the user switches compilers, we can't believe the cache
2308 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
2309 then
2310 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
2311 (it is also a good idea to do 'make clean' before compiling)" >&5
2312 echo "$as_me: error: cached CC is different -- throw away $cache_file
2313 (it is also a good idea to do 'make clean' before compiling)" >&2;}
2314 { (exit 1); exit 1; }; }
2317 ac_ext=c
2318 ac_cpp='$CPP $CPPFLAGS'
2319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2322 if test -n "$ac_tool_prefix"; then
2323 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2324 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2325 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2327 if test "${ac_cv_prog_CC+set}" = set; then
2328 echo $ECHO_N "(cached) $ECHO_C" >&6
2329 else
2330 if test -n "$CC"; then
2331 ac_cv_prog_CC="$CC" # Let the user override the test.
2332 else
2333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2334 for as_dir in $PATH
2336 IFS=$as_save_IFS
2337 test -z "$as_dir" && as_dir=.
2338 for ac_exec_ext in '' $ac_executable_extensions; do
2339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2340 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2342 break 2
2344 done
2345 done
2346 IFS=$as_save_IFS
2350 CC=$ac_cv_prog_CC
2351 if test -n "$CC"; then
2352 { echo "$as_me:$LINENO: result: $CC" >&5
2353 echo "${ECHO_T}$CC" >&6; }
2354 else
2355 { echo "$as_me:$LINENO: result: no" >&5
2356 echo "${ECHO_T}no" >&6; }
2361 if test -z "$ac_cv_prog_CC"; then
2362 ac_ct_CC=$CC
2363 # Extract the first word of "gcc", so it can be a program name with args.
2364 set dummy gcc; ac_word=$2
2365 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2367 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2368 echo $ECHO_N "(cached) $ECHO_C" >&6
2369 else
2370 if test -n "$ac_ct_CC"; then
2371 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2372 else
2373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2374 for as_dir in $PATH
2376 IFS=$as_save_IFS
2377 test -z "$as_dir" && as_dir=.
2378 for ac_exec_ext in '' $ac_executable_extensions; do
2379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2380 ac_cv_prog_ac_ct_CC="gcc"
2381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2382 break 2
2384 done
2385 done
2386 IFS=$as_save_IFS
2390 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2391 if test -n "$ac_ct_CC"; then
2392 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2393 echo "${ECHO_T}$ac_ct_CC" >&6; }
2394 else
2395 { echo "$as_me:$LINENO: result: no" >&5
2396 echo "${ECHO_T}no" >&6; }
2399 if test "x$ac_ct_CC" = x; then
2400 CC=""
2401 else
2402 case $cross_compiling:$ac_tool_warned in
2403 yes:)
2404 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2405 whose name does not start with the host triplet. If you think this
2406 configuration is useful to you, please write to autoconf@gnu.org." >&5
2407 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2408 whose name does not start with the host triplet. If you think this
2409 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2410 ac_tool_warned=yes ;;
2411 esac
2412 CC=$ac_ct_CC
2414 else
2415 CC="$ac_cv_prog_CC"
2418 if test -z "$CC"; then
2419 if test -n "$ac_tool_prefix"; then
2420 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2421 set dummy ${ac_tool_prefix}cc; ac_word=$2
2422 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2424 if test "${ac_cv_prog_CC+set}" = set; then
2425 echo $ECHO_N "(cached) $ECHO_C" >&6
2426 else
2427 if test -n "$CC"; then
2428 ac_cv_prog_CC="$CC" # Let the user override the test.
2429 else
2430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2431 for as_dir in $PATH
2433 IFS=$as_save_IFS
2434 test -z "$as_dir" && as_dir=.
2435 for ac_exec_ext in '' $ac_executable_extensions; do
2436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2437 ac_cv_prog_CC="${ac_tool_prefix}cc"
2438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2439 break 2
2441 done
2442 done
2443 IFS=$as_save_IFS
2447 CC=$ac_cv_prog_CC
2448 if test -n "$CC"; then
2449 { echo "$as_me:$LINENO: result: $CC" >&5
2450 echo "${ECHO_T}$CC" >&6; }
2451 else
2452 { echo "$as_me:$LINENO: result: no" >&5
2453 echo "${ECHO_T}no" >&6; }
2459 if test -z "$CC"; then
2460 # Extract the first word of "cc", so it can be a program name with args.
2461 set dummy cc; ac_word=$2
2462 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2464 if test "${ac_cv_prog_CC+set}" = set; then
2465 echo $ECHO_N "(cached) $ECHO_C" >&6
2466 else
2467 if test -n "$CC"; then
2468 ac_cv_prog_CC="$CC" # Let the user override the test.
2469 else
2470 ac_prog_rejected=no
2471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2472 for as_dir in $PATH
2474 IFS=$as_save_IFS
2475 test -z "$as_dir" && as_dir=.
2476 for ac_exec_ext in '' $ac_executable_extensions; do
2477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2478 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2479 ac_prog_rejected=yes
2480 continue
2482 ac_cv_prog_CC="cc"
2483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2484 break 2
2486 done
2487 done
2488 IFS=$as_save_IFS
2490 if test $ac_prog_rejected = yes; then
2491 # We found a bogon in the path, so make sure we never use it.
2492 set dummy $ac_cv_prog_CC
2493 shift
2494 if test $# != 0; then
2495 # We chose a different compiler from the bogus one.
2496 # However, it has the same basename, so the bogon will be chosen
2497 # first if we set CC to just the basename; use the full file name.
2498 shift
2499 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2504 CC=$ac_cv_prog_CC
2505 if test -n "$CC"; then
2506 { echo "$as_me:$LINENO: result: $CC" >&5
2507 echo "${ECHO_T}$CC" >&6; }
2508 else
2509 { echo "$as_me:$LINENO: result: no" >&5
2510 echo "${ECHO_T}no" >&6; }
2515 if test -z "$CC"; then
2516 if test -n "$ac_tool_prefix"; then
2517 for ac_prog in cl.exe
2519 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2520 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2521 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2523 if test "${ac_cv_prog_CC+set}" = set; then
2524 echo $ECHO_N "(cached) $ECHO_C" >&6
2525 else
2526 if test -n "$CC"; then
2527 ac_cv_prog_CC="$CC" # Let the user override the test.
2528 else
2529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2530 for as_dir in $PATH
2532 IFS=$as_save_IFS
2533 test -z "$as_dir" && as_dir=.
2534 for ac_exec_ext in '' $ac_executable_extensions; do
2535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2536 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2538 break 2
2540 done
2541 done
2542 IFS=$as_save_IFS
2546 CC=$ac_cv_prog_CC
2547 if test -n "$CC"; then
2548 { echo "$as_me:$LINENO: result: $CC" >&5
2549 echo "${ECHO_T}$CC" >&6; }
2550 else
2551 { echo "$as_me:$LINENO: result: no" >&5
2552 echo "${ECHO_T}no" >&6; }
2556 test -n "$CC" && break
2557 done
2559 if test -z "$CC"; then
2560 ac_ct_CC=$CC
2561 for ac_prog in cl.exe
2563 # Extract the first word of "$ac_prog", so it can be a program name with args.
2564 set dummy $ac_prog; ac_word=$2
2565 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2567 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2568 echo $ECHO_N "(cached) $ECHO_C" >&6
2569 else
2570 if test -n "$ac_ct_CC"; then
2571 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2572 else
2573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2574 for as_dir in $PATH
2576 IFS=$as_save_IFS
2577 test -z "$as_dir" && as_dir=.
2578 for ac_exec_ext in '' $ac_executable_extensions; do
2579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2580 ac_cv_prog_ac_ct_CC="$ac_prog"
2581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2582 break 2
2584 done
2585 done
2586 IFS=$as_save_IFS
2590 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2591 if test -n "$ac_ct_CC"; then
2592 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2593 echo "${ECHO_T}$ac_ct_CC" >&6; }
2594 else
2595 { echo "$as_me:$LINENO: result: no" >&5
2596 echo "${ECHO_T}no" >&6; }
2600 test -n "$ac_ct_CC" && break
2601 done
2603 if test "x$ac_ct_CC" = x; then
2604 CC=""
2605 else
2606 case $cross_compiling:$ac_tool_warned in
2607 yes:)
2608 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2609 whose name does not start with the host triplet. If you think this
2610 configuration is useful to you, please write to autoconf@gnu.org." >&5
2611 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2612 whose name does not start with the host triplet. If you think this
2613 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2614 ac_tool_warned=yes ;;
2615 esac
2616 CC=$ac_ct_CC
2623 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2624 See \`config.log' for more details." >&5
2625 echo "$as_me: error: no acceptable C compiler found in \$PATH
2626 See \`config.log' for more details." >&2;}
2627 { (exit 1); exit 1; }; }
2629 # Provide some information about the compiler.
2630 echo "$as_me:$LINENO: checking for C compiler version" >&5
2631 ac_compiler=`set X $ac_compile; echo $2`
2632 { (ac_try="$ac_compiler --version >&5"
2633 case "(($ac_try" in
2634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2635 *) ac_try_echo=$ac_try;;
2636 esac
2637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2638 (eval "$ac_compiler --version >&5") 2>&5
2639 ac_status=$?
2640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641 (exit $ac_status); }
2642 { (ac_try="$ac_compiler -v >&5"
2643 case "(($ac_try" in
2644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2645 *) ac_try_echo=$ac_try;;
2646 esac
2647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2648 (eval "$ac_compiler -v >&5") 2>&5
2649 ac_status=$?
2650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651 (exit $ac_status); }
2652 { (ac_try="$ac_compiler -V >&5"
2653 case "(($ac_try" in
2654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2655 *) ac_try_echo=$ac_try;;
2656 esac
2657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2658 (eval "$ac_compiler -V >&5") 2>&5
2659 ac_status=$?
2660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661 (exit $ac_status); }
2663 cat >conftest.$ac_ext <<_ACEOF
2664 /* confdefs.h. */
2665 _ACEOF
2666 cat confdefs.h >>conftest.$ac_ext
2667 cat >>conftest.$ac_ext <<_ACEOF
2668 /* end confdefs.h. */
2671 main ()
2675 return 0;
2677 _ACEOF
2678 ac_clean_files_save=$ac_clean_files
2679 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2680 # Try to create an executable without -o first, disregard a.out.
2681 # It will help us diagnose broken compilers, and finding out an intuition
2682 # of exeext.
2683 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2684 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2685 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2687 # List of possible output files, starting from the most likely.
2688 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2689 # only as a last resort. b.out is created by i960 compilers.
2690 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2692 # The IRIX 6 linker writes into existing files which may not be
2693 # executable, retaining their permissions. Remove them first so a
2694 # subsequent execution test works.
2695 ac_rmfiles=
2696 for ac_file in $ac_files
2698 case $ac_file in
2699 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2700 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2701 esac
2702 done
2703 rm -f $ac_rmfiles
2705 if { (ac_try="$ac_link_default"
2706 case "(($ac_try" in
2707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2708 *) ac_try_echo=$ac_try;;
2709 esac
2710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2711 (eval "$ac_link_default") 2>&5
2712 ac_status=$?
2713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714 (exit $ac_status); }; then
2715 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2716 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2717 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2718 # so that the user can short-circuit this test for compilers unknown to
2719 # Autoconf.
2720 for ac_file in $ac_files ''
2722 test -f "$ac_file" || continue
2723 case $ac_file in
2724 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2726 [ab].out )
2727 # We found the default executable, but exeext='' is most
2728 # certainly right.
2729 break;;
2730 *.* )
2731 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2732 then :; else
2733 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2735 # We set ac_cv_exeext here because the later test for it is not
2736 # safe: cross compilers may not add the suffix if given an `-o'
2737 # argument, so we may need to know it at that point already.
2738 # Even if this section looks crufty: it has the advantage of
2739 # actually working.
2740 break;;
2742 break;;
2743 esac
2744 done
2745 test "$ac_cv_exeext" = no && ac_cv_exeext=
2747 else
2748 ac_file=''
2751 { echo "$as_me:$LINENO: result: $ac_file" >&5
2752 echo "${ECHO_T}$ac_file" >&6; }
2753 if test -z "$ac_file"; then
2754 echo "$as_me: failed program was:" >&5
2755 sed 's/^/| /' conftest.$ac_ext >&5
2757 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2758 See \`config.log' for more details." >&5
2759 echo "$as_me: error: C compiler cannot create executables
2760 See \`config.log' for more details." >&2;}
2761 { (exit 77); exit 77; }; }
2764 ac_exeext=$ac_cv_exeext
2766 # Check that the compiler produces executables we can run. If not, either
2767 # the compiler is broken, or we cross compile.
2768 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2769 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2770 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2771 # If not cross compiling, check that we can run a simple program.
2772 if test "$cross_compiling" != yes; then
2773 if { ac_try='./$ac_file'
2774 { (case "(($ac_try" in
2775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2776 *) ac_try_echo=$ac_try;;
2777 esac
2778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2779 (eval "$ac_try") 2>&5
2780 ac_status=$?
2781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782 (exit $ac_status); }; }; then
2783 cross_compiling=no
2784 else
2785 if test "$cross_compiling" = maybe; then
2786 cross_compiling=yes
2787 else
2788 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2789 If you meant to cross compile, use \`--host'.
2790 See \`config.log' for more details." >&5
2791 echo "$as_me: error: cannot run C compiled programs.
2792 If you meant to cross compile, use \`--host'.
2793 See \`config.log' for more details." >&2;}
2794 { (exit 1); exit 1; }; }
2798 { echo "$as_me:$LINENO: result: yes" >&5
2799 echo "${ECHO_T}yes" >&6; }
2801 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2802 ac_clean_files=$ac_clean_files_save
2803 # Check that the compiler produces executables we can run. If not, either
2804 # the compiler is broken, or we cross compile.
2805 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2806 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2807 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2808 echo "${ECHO_T}$cross_compiling" >&6; }
2810 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2811 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2812 if { (ac_try="$ac_link"
2813 case "(($ac_try" in
2814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2815 *) ac_try_echo=$ac_try;;
2816 esac
2817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2818 (eval "$ac_link") 2>&5
2819 ac_status=$?
2820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2821 (exit $ac_status); }; then
2822 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2823 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2824 # work properly (i.e., refer to `conftest.exe'), while it won't with
2825 # `rm'.
2826 for ac_file in conftest.exe conftest conftest.*; do
2827 test -f "$ac_file" || continue
2828 case $ac_file in
2829 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2830 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2831 break;;
2832 * ) break;;
2833 esac
2834 done
2835 else
2836 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2837 See \`config.log' for more details." >&5
2838 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2839 See \`config.log' for more details." >&2;}
2840 { (exit 1); exit 1; }; }
2843 rm -f conftest$ac_cv_exeext
2844 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2845 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2847 rm -f conftest.$ac_ext
2848 EXEEXT=$ac_cv_exeext
2849 ac_exeext=$EXEEXT
2850 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2851 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2852 if test "${ac_cv_objext+set}" = set; then
2853 echo $ECHO_N "(cached) $ECHO_C" >&6
2854 else
2855 cat >conftest.$ac_ext <<_ACEOF
2856 /* confdefs.h. */
2857 _ACEOF
2858 cat confdefs.h >>conftest.$ac_ext
2859 cat >>conftest.$ac_ext <<_ACEOF
2860 /* end confdefs.h. */
2863 main ()
2867 return 0;
2869 _ACEOF
2870 rm -f conftest.o conftest.obj
2871 if { (ac_try="$ac_compile"
2872 case "(($ac_try" in
2873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2874 *) ac_try_echo=$ac_try;;
2875 esac
2876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2877 (eval "$ac_compile") 2>&5
2878 ac_status=$?
2879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880 (exit $ac_status); }; then
2881 for ac_file in conftest.o conftest.obj conftest.*; do
2882 test -f "$ac_file" || continue;
2883 case $ac_file in
2884 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2885 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2886 break;;
2887 esac
2888 done
2889 else
2890 echo "$as_me: failed program was:" >&5
2891 sed 's/^/| /' conftest.$ac_ext >&5
2893 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2894 See \`config.log' for more details." >&5
2895 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2896 See \`config.log' for more details." >&2;}
2897 { (exit 1); exit 1; }; }
2900 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2902 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2903 echo "${ECHO_T}$ac_cv_objext" >&6; }
2904 OBJEXT=$ac_cv_objext
2905 ac_objext=$OBJEXT
2906 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2907 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2908 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2909 echo $ECHO_N "(cached) $ECHO_C" >&6
2910 else
2911 cat >conftest.$ac_ext <<_ACEOF
2912 /* confdefs.h. */
2913 _ACEOF
2914 cat confdefs.h >>conftest.$ac_ext
2915 cat >>conftest.$ac_ext <<_ACEOF
2916 /* end confdefs.h. */
2919 main ()
2921 #ifndef __GNUC__
2922 choke me
2923 #endif
2926 return 0;
2928 _ACEOF
2929 rm -f conftest.$ac_objext
2930 if { (ac_try="$ac_compile"
2931 case "(($ac_try" in
2932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2933 *) ac_try_echo=$ac_try;;
2934 esac
2935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2936 (eval "$ac_compile") 2>conftest.er1
2937 ac_status=$?
2938 grep -v '^ *+' conftest.er1 >conftest.err
2939 rm -f conftest.er1
2940 cat conftest.err >&5
2941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942 (exit $ac_status); } && {
2943 test -z "$ac_c_werror_flag" ||
2944 test ! -s conftest.err
2945 } && test -s conftest.$ac_objext; then
2946 ac_compiler_gnu=yes
2947 else
2948 echo "$as_me: failed program was:" >&5
2949 sed 's/^/| /' conftest.$ac_ext >&5
2951 ac_compiler_gnu=no
2954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2955 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2958 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2959 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2960 GCC=`test $ac_compiler_gnu = yes && echo yes`
2961 ac_test_CFLAGS=${CFLAGS+set}
2962 ac_save_CFLAGS=$CFLAGS
2963 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2964 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2965 if test "${ac_cv_prog_cc_g+set}" = set; then
2966 echo $ECHO_N "(cached) $ECHO_C" >&6
2967 else
2968 ac_save_c_werror_flag=$ac_c_werror_flag
2969 ac_c_werror_flag=yes
2970 ac_cv_prog_cc_g=no
2971 CFLAGS="-g"
2972 cat >conftest.$ac_ext <<_ACEOF
2973 /* confdefs.h. */
2974 _ACEOF
2975 cat confdefs.h >>conftest.$ac_ext
2976 cat >>conftest.$ac_ext <<_ACEOF
2977 /* end confdefs.h. */
2980 main ()
2984 return 0;
2986 _ACEOF
2987 rm -f conftest.$ac_objext
2988 if { (ac_try="$ac_compile"
2989 case "(($ac_try" in
2990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2991 *) ac_try_echo=$ac_try;;
2992 esac
2993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2994 (eval "$ac_compile") 2>conftest.er1
2995 ac_status=$?
2996 grep -v '^ *+' conftest.er1 >conftest.err
2997 rm -f conftest.er1
2998 cat conftest.err >&5
2999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000 (exit $ac_status); } && {
3001 test -z "$ac_c_werror_flag" ||
3002 test ! -s conftest.err
3003 } && test -s conftest.$ac_objext; then
3004 ac_cv_prog_cc_g=yes
3005 else
3006 echo "$as_me: failed program was:" >&5
3007 sed 's/^/| /' conftest.$ac_ext >&5
3009 CFLAGS=""
3010 cat >conftest.$ac_ext <<_ACEOF
3011 /* confdefs.h. */
3012 _ACEOF
3013 cat confdefs.h >>conftest.$ac_ext
3014 cat >>conftest.$ac_ext <<_ACEOF
3015 /* end confdefs.h. */
3018 main ()
3022 return 0;
3024 _ACEOF
3025 rm -f conftest.$ac_objext
3026 if { (ac_try="$ac_compile"
3027 case "(($ac_try" in
3028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3029 *) ac_try_echo=$ac_try;;
3030 esac
3031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3032 (eval "$ac_compile") 2>conftest.er1
3033 ac_status=$?
3034 grep -v '^ *+' conftest.er1 >conftest.err
3035 rm -f conftest.er1
3036 cat conftest.err >&5
3037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038 (exit $ac_status); } && {
3039 test -z "$ac_c_werror_flag" ||
3040 test ! -s conftest.err
3041 } && test -s conftest.$ac_objext; then
3043 else
3044 echo "$as_me: failed program was:" >&5
3045 sed 's/^/| /' conftest.$ac_ext >&5
3047 ac_c_werror_flag=$ac_save_c_werror_flag
3048 CFLAGS="-g"
3049 cat >conftest.$ac_ext <<_ACEOF
3050 /* confdefs.h. */
3051 _ACEOF
3052 cat confdefs.h >>conftest.$ac_ext
3053 cat >>conftest.$ac_ext <<_ACEOF
3054 /* end confdefs.h. */
3057 main ()
3061 return 0;
3063 _ACEOF
3064 rm -f conftest.$ac_objext
3065 if { (ac_try="$ac_compile"
3066 case "(($ac_try" in
3067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3068 *) ac_try_echo=$ac_try;;
3069 esac
3070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3071 (eval "$ac_compile") 2>conftest.er1
3072 ac_status=$?
3073 grep -v '^ *+' conftest.er1 >conftest.err
3074 rm -f conftest.er1
3075 cat conftest.err >&5
3076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077 (exit $ac_status); } && {
3078 test -z "$ac_c_werror_flag" ||
3079 test ! -s conftest.err
3080 } && test -s conftest.$ac_objext; then
3081 ac_cv_prog_cc_g=yes
3082 else
3083 echo "$as_me: failed program was:" >&5
3084 sed 's/^/| /' conftest.$ac_ext >&5
3089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3096 ac_c_werror_flag=$ac_save_c_werror_flag
3098 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3099 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3100 if test "$ac_test_CFLAGS" = set; then
3101 CFLAGS=$ac_save_CFLAGS
3102 elif test $ac_cv_prog_cc_g = yes; then
3103 if test "$GCC" = yes; then
3104 CFLAGS="-g -O2"
3105 else
3106 CFLAGS="-g"
3108 else
3109 if test "$GCC" = yes; then
3110 CFLAGS="-O2"
3111 else
3112 CFLAGS=
3115 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3116 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3117 if test "${ac_cv_prog_cc_c89+set}" = set; then
3118 echo $ECHO_N "(cached) $ECHO_C" >&6
3119 else
3120 ac_cv_prog_cc_c89=no
3121 ac_save_CC=$CC
3122 cat >conftest.$ac_ext <<_ACEOF
3123 /* confdefs.h. */
3124 _ACEOF
3125 cat confdefs.h >>conftest.$ac_ext
3126 cat >>conftest.$ac_ext <<_ACEOF
3127 /* end confdefs.h. */
3128 #include <stdarg.h>
3129 #include <stdio.h>
3130 #include <sys/types.h>
3131 #include <sys/stat.h>
3132 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3133 struct buf { int x; };
3134 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3135 static char *e (p, i)
3136 char **p;
3137 int i;
3139 return p[i];
3141 static char *f (char * (*g) (char **, int), char **p, ...)
3143 char *s;
3144 va_list v;
3145 va_start (v,p);
3146 s = g (p, va_arg (v,int));
3147 va_end (v);
3148 return s;
3151 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3152 function prototypes and stuff, but not '\xHH' hex character constants.
3153 These don't provoke an error unfortunately, instead are silently treated
3154 as 'x'. The following induces an error, until -std is added to get
3155 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3156 array size at least. It's necessary to write '\x00'==0 to get something
3157 that's true only with -std. */
3158 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3160 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3161 inside strings and character constants. */
3162 #define FOO(x) 'x'
3163 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3165 int test (int i, double x);
3166 struct s1 {int (*f) (int a);};
3167 struct s2 {int (*f) (double a);};
3168 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3169 int argc;
3170 char **argv;
3172 main ()
3174 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3176 return 0;
3178 _ACEOF
3179 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3180 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3182 CC="$ac_save_CC $ac_arg"
3183 rm -f conftest.$ac_objext
3184 if { (ac_try="$ac_compile"
3185 case "(($ac_try" in
3186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3187 *) ac_try_echo=$ac_try;;
3188 esac
3189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3190 (eval "$ac_compile") 2>conftest.er1
3191 ac_status=$?
3192 grep -v '^ *+' conftest.er1 >conftest.err
3193 rm -f conftest.er1
3194 cat conftest.err >&5
3195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196 (exit $ac_status); } && {
3197 test -z "$ac_c_werror_flag" ||
3198 test ! -s conftest.err
3199 } && test -s conftest.$ac_objext; then
3200 ac_cv_prog_cc_c89=$ac_arg
3201 else
3202 echo "$as_me: failed program was:" >&5
3203 sed 's/^/| /' conftest.$ac_ext >&5
3208 rm -f core conftest.err conftest.$ac_objext
3209 test "x$ac_cv_prog_cc_c89" != "xno" && break
3210 done
3211 rm -f conftest.$ac_ext
3212 CC=$ac_save_CC
3215 # AC_CACHE_VAL
3216 case "x$ac_cv_prog_cc_c89" in
3218 { echo "$as_me:$LINENO: result: none needed" >&5
3219 echo "${ECHO_T}none needed" >&6; } ;;
3220 xno)
3221 { echo "$as_me:$LINENO: result: unsupported" >&5
3222 echo "${ECHO_T}unsupported" >&6; } ;;
3224 CC="$CC $ac_cv_prog_cc_c89"
3225 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3226 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3227 esac
3230 ac_ext=c
3231 ac_cpp='$CPP $CPPFLAGS'
3232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3239 { echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5
3240 echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6; }
3242 # Check whether --with-cxx_main was given.
3243 if test "${with_cxx_main+set}" = set; then
3244 withval=$with_cxx_main;
3246 case $withval in
3247 no) with_cxx_main=no
3248 MAINCC='$(CC)';;
3249 yes) with_cxx_main=yes
3250 MAINCC='$(CXX)';;
3251 *) with_cxx_main=yes
3252 MAINCC=$withval
3253 if test -z "$CXX"
3254 then
3255 CXX=$withval
3256 fi;;
3257 esac
3258 else
3260 with_cxx_main=no
3261 MAINCC='$(CC)'
3265 { echo "$as_me:$LINENO: result: $with_cxx_main" >&5
3266 echo "${ECHO_T}$with_cxx_main" >&6; }
3268 preset_cxx="$CXX"
3269 if test -z "$CXX"
3270 then
3271 case "$CC" in
3272 gcc) # Extract the first word of "g++", so it can be a program name with args.
3273 set dummy g++; ac_word=$2
3274 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3276 if test "${ac_cv_path_CXX+set}" = set; then
3277 echo $ECHO_N "(cached) $ECHO_C" >&6
3278 else
3279 case $CXX in
3280 [\\/]* | ?:[\\/]*)
3281 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3285 for as_dir in notfound
3287 IFS=$as_save_IFS
3288 test -z "$as_dir" && as_dir=.
3289 for ac_exec_ext in '' $ac_executable_extensions; do
3290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3291 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3293 break 2
3295 done
3296 done
3297 IFS=$as_save_IFS
3299 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="g++"
3301 esac
3303 CXX=$ac_cv_path_CXX
3304 if test -n "$CXX"; then
3305 { echo "$as_me:$LINENO: result: $CXX" >&5
3306 echo "${ECHO_T}$CXX" >&6; }
3307 else
3308 { echo "$as_me:$LINENO: result: no" >&5
3309 echo "${ECHO_T}no" >&6; }
3313 cc) # Extract the first word of "c++", so it can be a program name with args.
3314 set dummy c++; ac_word=$2
3315 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3317 if test "${ac_cv_path_CXX+set}" = set; then
3318 echo $ECHO_N "(cached) $ECHO_C" >&6
3319 else
3320 case $CXX in
3321 [\\/]* | ?:[\\/]*)
3322 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3326 for as_dir in notfound
3328 IFS=$as_save_IFS
3329 test -z "$as_dir" && as_dir=.
3330 for ac_exec_ext in '' $ac_executable_extensions; do
3331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3332 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3334 break 2
3336 done
3337 done
3338 IFS=$as_save_IFS
3340 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="c++"
3342 esac
3344 CXX=$ac_cv_path_CXX
3345 if test -n "$CXX"; then
3346 { echo "$as_me:$LINENO: result: $CXX" >&5
3347 echo "${ECHO_T}$CXX" >&6; }
3348 else
3349 { echo "$as_me:$LINENO: result: no" >&5
3350 echo "${ECHO_T}no" >&6; }
3354 esac
3355 if test "$CXX" = "notfound"
3356 then
3357 CXX=""
3360 if test -z "$CXX"
3361 then
3362 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
3364 # Extract the first word of "$ac_prog", so it can be a program name with args.
3365 set dummy $ac_prog; ac_word=$2
3366 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3368 if test "${ac_cv_prog_CXX+set}" = set; then
3369 echo $ECHO_N "(cached) $ECHO_C" >&6
3370 else
3371 if test -n "$CXX"; then
3372 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3373 else
3374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3375 for as_dir in $PATH
3377 IFS=$as_save_IFS
3378 test -z "$as_dir" && as_dir=.
3379 for ac_exec_ext in '' $ac_executable_extensions; do
3380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3381 ac_cv_prog_CXX="$ac_prog"
3382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3383 break 2
3385 done
3386 done
3387 IFS=$as_save_IFS
3391 CXX=$ac_cv_prog_CXX
3392 if test -n "$CXX"; then
3393 { echo "$as_me:$LINENO: result: $CXX" >&5
3394 echo "${ECHO_T}$CXX" >&6; }
3395 else
3396 { echo "$as_me:$LINENO: result: no" >&5
3397 echo "${ECHO_T}no" >&6; }
3401 test -n "$CXX" && break
3402 done
3403 test -n "$CXX" || CXX="notfound"
3405 if test "$CXX" = "notfound"
3406 then
3407 CXX=""
3410 if test "$preset_cxx" != "$CXX"
3411 then
3412 { echo "$as_me:$LINENO: WARNING:
3414 By default, distutils will build C++ extension modules with \"$CXX\".
3415 If this is not intended, then set CXX on the configure command line.
3416 " >&5
3417 echo "$as_me: WARNING:
3419 By default, distutils will build C++ extension modules with \"$CXX\".
3420 If this is not intended, then set CXX on the configure command line.
3421 " >&2;}
3425 # checks for UNIX variants that set C preprocessor variables
3427 ac_ext=c
3428 ac_cpp='$CPP $CPPFLAGS'
3429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3432 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3433 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3434 # On Suns, sometimes $CPP names a directory.
3435 if test -n "$CPP" && test -d "$CPP"; then
3436 CPP=
3438 if test -z "$CPP"; then
3439 if test "${ac_cv_prog_CPP+set}" = set; then
3440 echo $ECHO_N "(cached) $ECHO_C" >&6
3441 else
3442 # Double quotes because CPP needs to be expanded
3443 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3445 ac_preproc_ok=false
3446 for ac_c_preproc_warn_flag in '' yes
3448 # Use a header file that comes with gcc, so configuring glibc
3449 # with a fresh cross-compiler works.
3450 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3451 # <limits.h> exists even on freestanding compilers.
3452 # On the NeXT, cc -E runs the code through the compiler's parser,
3453 # not just through cpp. "Syntax error" is here to catch this case.
3454 cat >conftest.$ac_ext <<_ACEOF
3455 /* confdefs.h. */
3456 _ACEOF
3457 cat confdefs.h >>conftest.$ac_ext
3458 cat >>conftest.$ac_ext <<_ACEOF
3459 /* end confdefs.h. */
3460 #ifdef __STDC__
3461 # include <limits.h>
3462 #else
3463 # include <assert.h>
3464 #endif
3465 Syntax error
3466 _ACEOF
3467 if { (ac_try="$ac_cpp conftest.$ac_ext"
3468 case "(($ac_try" in
3469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3470 *) ac_try_echo=$ac_try;;
3471 esac
3472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3473 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3474 ac_status=$?
3475 grep -v '^ *+' conftest.er1 >conftest.err
3476 rm -f conftest.er1
3477 cat conftest.err >&5
3478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479 (exit $ac_status); } >/dev/null && {
3480 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3481 test ! -s conftest.err
3482 }; then
3484 else
3485 echo "$as_me: failed program was:" >&5
3486 sed 's/^/| /' conftest.$ac_ext >&5
3488 # Broken: fails on valid input.
3489 continue
3492 rm -f conftest.err conftest.$ac_ext
3494 # OK, works on sane cases. Now check whether nonexistent headers
3495 # can be detected and how.
3496 cat >conftest.$ac_ext <<_ACEOF
3497 /* confdefs.h. */
3498 _ACEOF
3499 cat confdefs.h >>conftest.$ac_ext
3500 cat >>conftest.$ac_ext <<_ACEOF
3501 /* end confdefs.h. */
3502 #include <ac_nonexistent.h>
3503 _ACEOF
3504 if { (ac_try="$ac_cpp conftest.$ac_ext"
3505 case "(($ac_try" in
3506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3507 *) ac_try_echo=$ac_try;;
3508 esac
3509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3510 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3511 ac_status=$?
3512 grep -v '^ *+' conftest.er1 >conftest.err
3513 rm -f conftest.er1
3514 cat conftest.err >&5
3515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516 (exit $ac_status); } >/dev/null && {
3517 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3518 test ! -s conftest.err
3519 }; then
3520 # Broken: success on invalid input.
3521 continue
3522 else
3523 echo "$as_me: failed program was:" >&5
3524 sed 's/^/| /' conftest.$ac_ext >&5
3526 # Passes both tests.
3527 ac_preproc_ok=:
3528 break
3531 rm -f conftest.err conftest.$ac_ext
3533 done
3534 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3535 rm -f conftest.err conftest.$ac_ext
3536 if $ac_preproc_ok; then
3537 break
3540 done
3541 ac_cv_prog_CPP=$CPP
3544 CPP=$ac_cv_prog_CPP
3545 else
3546 ac_cv_prog_CPP=$CPP
3548 { echo "$as_me:$LINENO: result: $CPP" >&5
3549 echo "${ECHO_T}$CPP" >&6; }
3550 ac_preproc_ok=false
3551 for ac_c_preproc_warn_flag in '' yes
3553 # Use a header file that comes with gcc, so configuring glibc
3554 # with a fresh cross-compiler works.
3555 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3556 # <limits.h> exists even on freestanding compilers.
3557 # On the NeXT, cc -E runs the code through the compiler's parser,
3558 # not just through cpp. "Syntax error" is here to catch this case.
3559 cat >conftest.$ac_ext <<_ACEOF
3560 /* confdefs.h. */
3561 _ACEOF
3562 cat confdefs.h >>conftest.$ac_ext
3563 cat >>conftest.$ac_ext <<_ACEOF
3564 /* end confdefs.h. */
3565 #ifdef __STDC__
3566 # include <limits.h>
3567 #else
3568 # include <assert.h>
3569 #endif
3570 Syntax error
3571 _ACEOF
3572 if { (ac_try="$ac_cpp conftest.$ac_ext"
3573 case "(($ac_try" in
3574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3575 *) ac_try_echo=$ac_try;;
3576 esac
3577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3578 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3579 ac_status=$?
3580 grep -v '^ *+' conftest.er1 >conftest.err
3581 rm -f conftest.er1
3582 cat conftest.err >&5
3583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3584 (exit $ac_status); } >/dev/null && {
3585 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3586 test ! -s conftest.err
3587 }; then
3589 else
3590 echo "$as_me: failed program was:" >&5
3591 sed 's/^/| /' conftest.$ac_ext >&5
3593 # Broken: fails on valid input.
3594 continue
3597 rm -f conftest.err conftest.$ac_ext
3599 # OK, works on sane cases. Now check whether nonexistent headers
3600 # can be detected and how.
3601 cat >conftest.$ac_ext <<_ACEOF
3602 /* confdefs.h. */
3603 _ACEOF
3604 cat confdefs.h >>conftest.$ac_ext
3605 cat >>conftest.$ac_ext <<_ACEOF
3606 /* end confdefs.h. */
3607 #include <ac_nonexistent.h>
3608 _ACEOF
3609 if { (ac_try="$ac_cpp conftest.$ac_ext"
3610 case "(($ac_try" in
3611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3612 *) ac_try_echo=$ac_try;;
3613 esac
3614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3615 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3616 ac_status=$?
3617 grep -v '^ *+' conftest.er1 >conftest.err
3618 rm -f conftest.er1
3619 cat conftest.err >&5
3620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621 (exit $ac_status); } >/dev/null && {
3622 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3623 test ! -s conftest.err
3624 }; then
3625 # Broken: success on invalid input.
3626 continue
3627 else
3628 echo "$as_me: failed program was:" >&5
3629 sed 's/^/| /' conftest.$ac_ext >&5
3631 # Passes both tests.
3632 ac_preproc_ok=:
3633 break
3636 rm -f conftest.err conftest.$ac_ext
3638 done
3639 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3640 rm -f conftest.err conftest.$ac_ext
3641 if $ac_preproc_ok; then
3643 else
3644 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3645 See \`config.log' for more details." >&5
3646 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3647 See \`config.log' for more details." >&2;}
3648 { (exit 1); exit 1; }; }
3651 ac_ext=c
3652 ac_cpp='$CPP $CPPFLAGS'
3653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3658 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3659 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3660 if test "${ac_cv_path_GREP+set}" = set; then
3661 echo $ECHO_N "(cached) $ECHO_C" >&6
3662 else
3663 # Extract the first word of "grep ggrep" to use in msg output
3664 if test -z "$GREP"; then
3665 set dummy grep ggrep; ac_prog_name=$2
3666 if test "${ac_cv_path_GREP+set}" = set; then
3667 echo $ECHO_N "(cached) $ECHO_C" >&6
3668 else
3669 ac_path_GREP_found=false
3670 # Loop through the user's path and test for each of PROGNAME-LIST
3671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3672 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3674 IFS=$as_save_IFS
3675 test -z "$as_dir" && as_dir=.
3676 for ac_prog in grep ggrep; do
3677 for ac_exec_ext in '' $ac_executable_extensions; do
3678 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3679 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3680 # Check for GNU ac_path_GREP and select it if it is found.
3681 # Check for GNU $ac_path_GREP
3682 case `"$ac_path_GREP" --version 2>&1` in
3683 *GNU*)
3684 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3686 ac_count=0
3687 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3688 while :
3690 cat "conftest.in" "conftest.in" >"conftest.tmp"
3691 mv "conftest.tmp" "conftest.in"
3692 cp "conftest.in" "conftest.nl"
3693 echo 'GREP' >> "conftest.nl"
3694 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3695 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3696 ac_count=`expr $ac_count + 1`
3697 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3698 # Best one so far, save it but keep looking for a better one
3699 ac_cv_path_GREP="$ac_path_GREP"
3700 ac_path_GREP_max=$ac_count
3702 # 10*(2^10) chars as input seems more than enough
3703 test $ac_count -gt 10 && break
3704 done
3705 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3706 esac
3709 $ac_path_GREP_found && break 3
3710 done
3711 done
3713 done
3714 IFS=$as_save_IFS
3719 GREP="$ac_cv_path_GREP"
3720 if test -z "$GREP"; then
3721 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3722 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3723 { (exit 1); exit 1; }; }
3726 else
3727 ac_cv_path_GREP=$GREP
3732 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3733 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3734 GREP="$ac_cv_path_GREP"
3737 { echo "$as_me:$LINENO: checking for egrep" >&5
3738 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3739 if test "${ac_cv_path_EGREP+set}" = set; then
3740 echo $ECHO_N "(cached) $ECHO_C" >&6
3741 else
3742 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3743 then ac_cv_path_EGREP="$GREP -E"
3744 else
3745 # Extract the first word of "egrep" to use in msg output
3746 if test -z "$EGREP"; then
3747 set dummy egrep; ac_prog_name=$2
3748 if test "${ac_cv_path_EGREP+set}" = set; then
3749 echo $ECHO_N "(cached) $ECHO_C" >&6
3750 else
3751 ac_path_EGREP_found=false
3752 # Loop through the user's path and test for each of PROGNAME-LIST
3753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3754 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3756 IFS=$as_save_IFS
3757 test -z "$as_dir" && as_dir=.
3758 for ac_prog in egrep; do
3759 for ac_exec_ext in '' $ac_executable_extensions; do
3760 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3761 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3762 # Check for GNU ac_path_EGREP and select it if it is found.
3763 # Check for GNU $ac_path_EGREP
3764 case `"$ac_path_EGREP" --version 2>&1` in
3765 *GNU*)
3766 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3768 ac_count=0
3769 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3770 while :
3772 cat "conftest.in" "conftest.in" >"conftest.tmp"
3773 mv "conftest.tmp" "conftest.in"
3774 cp "conftest.in" "conftest.nl"
3775 echo 'EGREP' >> "conftest.nl"
3776 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3777 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3778 ac_count=`expr $ac_count + 1`
3779 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3780 # Best one so far, save it but keep looking for a better one
3781 ac_cv_path_EGREP="$ac_path_EGREP"
3782 ac_path_EGREP_max=$ac_count
3784 # 10*(2^10) chars as input seems more than enough
3785 test $ac_count -gt 10 && break
3786 done
3787 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3788 esac
3791 $ac_path_EGREP_found && break 3
3792 done
3793 done
3795 done
3796 IFS=$as_save_IFS
3801 EGREP="$ac_cv_path_EGREP"
3802 if test -z "$EGREP"; then
3803 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3804 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3805 { (exit 1); exit 1; }; }
3808 else
3809 ac_cv_path_EGREP=$EGREP
3815 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3816 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3817 EGREP="$ac_cv_path_EGREP"
3821 { echo "$as_me:$LINENO: checking for AIX" >&5
3822 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3823 cat >conftest.$ac_ext <<_ACEOF
3824 /* confdefs.h. */
3825 _ACEOF
3826 cat confdefs.h >>conftest.$ac_ext
3827 cat >>conftest.$ac_ext <<_ACEOF
3828 /* end confdefs.h. */
3829 #ifdef _AIX
3831 #endif
3833 _ACEOF
3834 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3835 $EGREP "yes" >/dev/null 2>&1; then
3836 { echo "$as_me:$LINENO: result: yes" >&5
3837 echo "${ECHO_T}yes" >&6; }
3838 cat >>confdefs.h <<\_ACEOF
3839 #define _ALL_SOURCE 1
3840 _ACEOF
3842 else
3843 { echo "$as_me:$LINENO: result: no" >&5
3844 echo "${ECHO_T}no" >&6; }
3846 rm -f -r conftest*
3850 # Check for unsupported systems
3851 case $ac_sys_system/$ac_sys_release in
3852 atheos*|Linux*/1*)
3853 echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported.
3854 echo See README for details.
3855 exit 1;;
3856 esac
3859 { echo "$as_me:$LINENO: checking for --with-suffix" >&5
3860 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6; }
3862 # Check whether --with-suffix was given.
3863 if test "${with_suffix+set}" = set; then
3864 withval=$with_suffix;
3865 case $withval in
3866 no) EXEEXT=;;
3867 yes) EXEEXT=.exe;;
3868 *) EXEEXT=$withval;;
3869 esac
3872 { echo "$as_me:$LINENO: result: $EXEEXT" >&5
3873 echo "${ECHO_T}$EXEEXT" >&6; }
3875 # Test whether we're running on a non-case-sensitive system, in which
3876 # case we give a warning if no ext is given
3878 { echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3879 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6; }
3880 if test ! -d CaseSensitiveTestDir; then
3881 mkdir CaseSensitiveTestDir
3884 if test -d casesensitivetestdir
3885 then
3886 { echo "$as_me:$LINENO: result: yes" >&5
3887 echo "${ECHO_T}yes" >&6; }
3888 BUILDEXEEXT=.exe
3889 else
3890 { echo "$as_me:$LINENO: result: no" >&5
3891 echo "${ECHO_T}no" >&6; }
3892 BUILDEXEEXT=$EXEEXT
3894 rmdir CaseSensitiveTestDir
3896 case $MACHDEP in
3897 bsdos*)
3898 case $CC in
3899 gcc) CC="$CC -D_HAVE_BSDI";;
3900 esac;;
3901 esac
3903 case $ac_sys_system in
3904 hp*|HP*)
3905 case $CC in
3906 cc|*/cc) CC="$CC -Ae";;
3907 esac;;
3908 SunOS*)
3909 # Some functions have a prototype only with that define, e.g. confstr
3911 cat >>confdefs.h <<\_ACEOF
3912 #define __EXTENSIONS__ 1
3913 _ACEOF
3916 esac
3920 { echo "$as_me:$LINENO: checking LIBRARY" >&5
3921 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6; }
3922 if test -z "$LIBRARY"
3923 then
3924 LIBRARY='libpython$(VERSION).a'
3926 { echo "$as_me:$LINENO: result: $LIBRARY" >&5
3927 echo "${ECHO_T}$LIBRARY" >&6; }
3929 # LDLIBRARY is the name of the library to link against (as opposed to the
3930 # name of the library into which to insert object files). BLDLIBRARY is also
3931 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3932 # is blank as the main program is not linked directly against LDLIBRARY.
3933 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3934 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3935 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3936 # DLLLIBRARY is the shared (i.e., DLL) library.
3938 # RUNSHARED is used to run shared python without installed libraries
3940 # INSTSONAME is the name of the shared library that will be use to install
3941 # on the system - some systems like version suffix, others don't
3948 LDLIBRARY="$LIBRARY"
3949 BLDLIBRARY='$(LDLIBRARY)'
3950 INSTSONAME='$(LDLIBRARY)'
3951 DLLLIBRARY=''
3952 LDLIBRARYDIR=''
3953 RUNSHARED=''
3955 # LINKCC is the command that links the python executable -- default is $(CC).
3956 # If CXX is set, and if it is needed to link a main function that was
3957 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3958 # python might then depend on the C++ runtime
3959 # This is altered for AIX in order to build the export list before
3960 # linking.
3962 { echo "$as_me:$LINENO: checking LINKCC" >&5
3963 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6; }
3964 if test -z "$LINKCC"
3965 then
3966 LINKCC='$(PURIFY) $(MAINCC)'
3967 case $ac_sys_system in
3968 AIX*)
3969 exp_extra="\"\""
3970 if test $ac_sys_release -ge 5 -o \
3971 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3972 exp_extra="."
3974 LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3975 QNX*)
3976 # qcc must be used because the other compilers do not
3977 # support -N.
3978 LINKCC=qcc;;
3979 esac
3981 { echo "$as_me:$LINENO: result: $LINKCC" >&5
3982 echo "${ECHO_T}$LINKCC" >&6; }
3984 # GNULD is set to "yes" if the GNU linker is used. If this goes wrong
3985 # make sure we default having it set to "no": this is used by
3986 # distutils.unixccompiler to know if it should add --enable-new-dtags
3987 # to linker command lines, and failing to detect GNU ld simply results
3988 # in the same bahaviour as before.
3990 { echo "$as_me:$LINENO: checking for GNU ld" >&5
3991 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3992 ac_prog=ld
3993 if test "$GCC" = yes; then
3994 ac_prog=`$CC -print-prog-name=ld`
3996 case `"$ac_prog" -V 2>&1 < /dev/null` in
3997 *GNU*)
3998 GNULD=yes;;
4000 GNULD=no;;
4001 esac
4002 { echo "$as_me:$LINENO: result: $GNULD" >&5
4003 echo "${ECHO_T}$GNULD" >&6; }
4005 { echo "$as_me:$LINENO: checking for --enable-shared" >&5
4006 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6; }
4007 # Check whether --enable-shared was given.
4008 if test "${enable_shared+set}" = set; then
4009 enableval=$enable_shared;
4013 if test -z "$enable_shared"
4014 then
4015 case $ac_sys_system in
4016 CYGWIN* | atheos*)
4017 enable_shared="yes";;
4019 enable_shared="no";;
4020 esac
4022 { echo "$as_me:$LINENO: result: $enable_shared" >&5
4023 echo "${ECHO_T}$enable_shared" >&6; }
4025 { echo "$as_me:$LINENO: checking for --enable-profiling" >&5
4026 echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6; }
4027 # Check whether --enable-profiling was given.
4028 if test "${enable_profiling+set}" = set; then
4029 enableval=$enable_profiling; ac_save_cc="$CC"
4030 CC="$CC -pg"
4031 if test "$cross_compiling" = yes; then
4032 ac_enable_profiling="no"
4033 else
4034 cat >conftest.$ac_ext <<_ACEOF
4035 /* confdefs.h. */
4036 _ACEOF
4037 cat confdefs.h >>conftest.$ac_ext
4038 cat >>conftest.$ac_ext <<_ACEOF
4039 /* end confdefs.h. */
4040 int main() { return 0; }
4041 _ACEOF
4042 rm -f conftest$ac_exeext
4043 if { (ac_try="$ac_link"
4044 case "(($ac_try" in
4045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4046 *) ac_try_echo=$ac_try;;
4047 esac
4048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4049 (eval "$ac_link") 2>&5
4050 ac_status=$?
4051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4053 { (case "(($ac_try" in
4054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4055 *) ac_try_echo=$ac_try;;
4056 esac
4057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4058 (eval "$ac_try") 2>&5
4059 ac_status=$?
4060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061 (exit $ac_status); }; }; then
4062 ac_enable_profiling="yes"
4063 else
4064 echo "$as_me: program exited with status $ac_status" >&5
4065 echo "$as_me: failed program was:" >&5
4066 sed 's/^/| /' conftest.$ac_ext >&5
4068 ( exit $ac_status )
4069 ac_enable_profiling="no"
4071 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4075 CC="$ac_save_cc"
4078 { echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
4079 echo "${ECHO_T}$ac_enable_profiling" >&6; }
4081 case "$ac_enable_profiling" in
4082 "yes")
4083 BASECFLAGS="-pg $BASECFLAGS"
4084 LDFLAGS="-pg $LDFLAGS"
4086 esac
4088 { echo "$as_me:$LINENO: checking LDLIBRARY" >&5
4089 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6; }
4091 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
4092 # library that we build, but we do not want to link against it (we
4093 # will find it with a -framework option). For this reason there is an
4094 # extra variable BLDLIBRARY against which Python and the extension
4095 # modules are linked, BLDLIBRARY. This is normally the same as
4096 # LDLIBRARY, but empty for MacOSX framework builds.
4097 if test "$enable_framework"
4098 then
4099 LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
4100 RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH"
4101 BLDLIBRARY=''
4102 else
4103 BLDLIBRARY='$(LDLIBRARY)'
4106 # Other platforms follow
4107 if test $enable_shared = "yes"; then
4109 cat >>confdefs.h <<\_ACEOF
4110 #define Py_ENABLE_SHARED 1
4111 _ACEOF
4113 case $ac_sys_system in
4114 CYGWIN*)
4115 LDLIBRARY='libpython$(VERSION).dll.a'
4116 DLLLIBRARY='libpython$(VERSION).dll'
4118 SunOS*)
4119 LDLIBRARY='libpython$(VERSION).so'
4120 BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
4121 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4122 INSTSONAME="$LDLIBRARY".$SOVERSION
4124 Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*)
4125 LDLIBRARY='libpython$(VERSION).so'
4126 BLDLIBRARY='-L. -lpython$(VERSION)'
4127 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4128 case $ac_sys_system in
4129 FreeBSD*)
4130 SOVERSION=`echo $SOVERSION|cut -d "." -f 1`
4132 esac
4133 INSTSONAME="$LDLIBRARY".$SOVERSION
4135 hp*|HP*)
4136 case `uname -m` in
4137 ia64)
4138 LDLIBRARY='libpython$(VERSION).so'
4141 LDLIBRARY='libpython$(VERSION).sl'
4143 esac
4144 BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
4145 RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH}
4147 OSF*)
4148 LDLIBRARY='libpython$(VERSION).so'
4149 BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
4150 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4152 atheos*)
4153 LDLIBRARY='libpython$(VERSION).so'
4154 BLDLIBRARY='-L. -lpython$(VERSION)'
4155 RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
4157 Darwin*)
4158 LDLIBRARY='libpython$(VERSION).dylib'
4159 BLDLIBRARY='-L. -lpython$(VERSION)'
4160 RUNSHARED='DYLD_LIBRARY_PATH=`pwd`:${DYLD_LIBRARY_PATH}'
4163 esac
4164 else # shared is disabled
4165 case $ac_sys_system in
4166 CYGWIN*)
4167 BLDLIBRARY='$(LIBRARY)'
4168 LDLIBRARY='libpython$(VERSION).dll.a'
4170 esac
4173 { echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
4174 echo "${ECHO_T}$LDLIBRARY" >&6; }
4176 if test -n "$ac_tool_prefix"; then
4177 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4178 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4179 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4181 if test "${ac_cv_prog_RANLIB+set}" = set; then
4182 echo $ECHO_N "(cached) $ECHO_C" >&6
4183 else
4184 if test -n "$RANLIB"; then
4185 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4186 else
4187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4188 for as_dir in $PATH
4190 IFS=$as_save_IFS
4191 test -z "$as_dir" && as_dir=.
4192 for ac_exec_ext in '' $ac_executable_extensions; do
4193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4194 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4196 break 2
4198 done
4199 done
4200 IFS=$as_save_IFS
4204 RANLIB=$ac_cv_prog_RANLIB
4205 if test -n "$RANLIB"; then
4206 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4207 echo "${ECHO_T}$RANLIB" >&6; }
4208 else
4209 { echo "$as_me:$LINENO: result: no" >&5
4210 echo "${ECHO_T}no" >&6; }
4215 if test -z "$ac_cv_prog_RANLIB"; then
4216 ac_ct_RANLIB=$RANLIB
4217 # Extract the first word of "ranlib", so it can be a program name with args.
4218 set dummy ranlib; ac_word=$2
4219 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4221 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4222 echo $ECHO_N "(cached) $ECHO_C" >&6
4223 else
4224 if test -n "$ac_ct_RANLIB"; then
4225 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4226 else
4227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4228 for as_dir in $PATH
4230 IFS=$as_save_IFS
4231 test -z "$as_dir" && as_dir=.
4232 for ac_exec_ext in '' $ac_executable_extensions; do
4233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4234 ac_cv_prog_ac_ct_RANLIB="ranlib"
4235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4236 break 2
4238 done
4239 done
4240 IFS=$as_save_IFS
4244 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4245 if test -n "$ac_ct_RANLIB"; then
4246 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4247 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4248 else
4249 { echo "$as_me:$LINENO: result: no" >&5
4250 echo "${ECHO_T}no" >&6; }
4253 if test "x$ac_ct_RANLIB" = x; then
4254 RANLIB=":"
4255 else
4256 case $cross_compiling:$ac_tool_warned in
4257 yes:)
4258 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4259 whose name does not start with the host triplet. If you think this
4260 configuration is useful to you, please write to autoconf@gnu.org." >&5
4261 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4262 whose name does not start with the host triplet. If you think this
4263 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4264 ac_tool_warned=yes ;;
4265 esac
4266 RANLIB=$ac_ct_RANLIB
4268 else
4269 RANLIB="$ac_cv_prog_RANLIB"
4273 for ac_prog in ar aal
4275 # Extract the first word of "$ac_prog", so it can be a program name with args.
4276 set dummy $ac_prog; ac_word=$2
4277 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4279 if test "${ac_cv_prog_AR+set}" = set; then
4280 echo $ECHO_N "(cached) $ECHO_C" >&6
4281 else
4282 if test -n "$AR"; then
4283 ac_cv_prog_AR="$AR" # Let the user override the test.
4284 else
4285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4286 for as_dir in $PATH
4288 IFS=$as_save_IFS
4289 test -z "$as_dir" && as_dir=.
4290 for ac_exec_ext in '' $ac_executable_extensions; do
4291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4292 ac_cv_prog_AR="$ac_prog"
4293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4294 break 2
4296 done
4297 done
4298 IFS=$as_save_IFS
4302 AR=$ac_cv_prog_AR
4303 if test -n "$AR"; then
4304 { echo "$as_me:$LINENO: result: $AR" >&5
4305 echo "${ECHO_T}$AR" >&6; }
4306 else
4307 { echo "$as_me:$LINENO: result: no" >&5
4308 echo "${ECHO_T}no" >&6; }
4312 test -n "$AR" && break
4313 done
4314 test -n "$AR" || AR="ar"
4317 # tweak ARFLAGS only if the user didn't set it on the command line
4319 if test -z "$ARFLAGS"
4320 then
4321 ARFLAGS="rc"
4325 # Extract the first word of "svnversion", so it can be a program name with args.
4326 set dummy svnversion; ac_word=$2
4327 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4329 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
4330 echo $ECHO_N "(cached) $ECHO_C" >&6
4331 else
4332 if test -n "$SVNVERSION"; then
4333 ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test.
4334 else
4335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4336 for as_dir in $PATH
4338 IFS=$as_save_IFS
4339 test -z "$as_dir" && as_dir=.
4340 for ac_exec_ext in '' $ac_executable_extensions; do
4341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4342 ac_cv_prog_SVNVERSION="found"
4343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4344 break 2
4346 done
4347 done
4348 IFS=$as_save_IFS
4350 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION="not-found"
4353 SVNVERSION=$ac_cv_prog_SVNVERSION
4354 if test -n "$SVNVERSION"; then
4355 { echo "$as_me:$LINENO: result: $SVNVERSION" >&5
4356 echo "${ECHO_T}$SVNVERSION" >&6; }
4357 else
4358 { echo "$as_me:$LINENO: result: no" >&5
4359 echo "${ECHO_T}no" >&6; }
4363 if test $SVNVERSION = found
4364 then
4365 SVNVERSION="svnversion \$(srcdir)"
4366 else
4367 SVNVERSION="echo Unversioned directory"
4370 case $MACHDEP in
4371 bsdos*|hp*|HP*)
4372 # install -d does not work on BSDI or HP-UX
4373 if test -z "$INSTALL"
4374 then
4375 INSTALL="${srcdir}/install-sh -c"
4377 esac
4378 ac_aux_dir=
4379 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4380 if test -f "$ac_dir/install-sh"; then
4381 ac_aux_dir=$ac_dir
4382 ac_install_sh="$ac_aux_dir/install-sh -c"
4383 break
4384 elif test -f "$ac_dir/install.sh"; then
4385 ac_aux_dir=$ac_dir
4386 ac_install_sh="$ac_aux_dir/install.sh -c"
4387 break
4388 elif test -f "$ac_dir/shtool"; then
4389 ac_aux_dir=$ac_dir
4390 ac_install_sh="$ac_aux_dir/shtool install -c"
4391 break
4393 done
4394 if test -z "$ac_aux_dir"; then
4395 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4396 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4397 { (exit 1); exit 1; }; }
4400 # These three variables are undocumented and unsupported,
4401 # and are intended to be withdrawn in a future Autoconf release.
4402 # They can cause serious problems if a builder's source tree is in a directory
4403 # whose full name contains unusual characters.
4404 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4405 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4406 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4409 # Find a good install program. We prefer a C program (faster),
4410 # so one script is as good as another. But avoid the broken or
4411 # incompatible versions:
4412 # SysV /etc/install, /usr/sbin/install
4413 # SunOS /usr/etc/install
4414 # IRIX /sbin/install
4415 # AIX /bin/install
4416 # AmigaOS /C/install, which installs bootblocks on floppy discs
4417 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4418 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4419 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4420 # OS/2's system install, which has a completely different semantic
4421 # ./install, which can be erroneously created by make from ./install.sh.
4422 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4423 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4424 if test -z "$INSTALL"; then
4425 if test "${ac_cv_path_install+set}" = set; then
4426 echo $ECHO_N "(cached) $ECHO_C" >&6
4427 else
4428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4429 for as_dir in $PATH
4431 IFS=$as_save_IFS
4432 test -z "$as_dir" && as_dir=.
4433 # Account for people who put trailing slashes in PATH elements.
4434 case $as_dir/ in
4435 ./ | .// | /cC/* | \
4436 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4437 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4438 /usr/ucb/* ) ;;
4440 # OSF1 and SCO ODT 3.0 have their own names for install.
4441 # Don't use installbsd from OSF since it installs stuff as root
4442 # by default.
4443 for ac_prog in ginstall scoinst install; do
4444 for ac_exec_ext in '' $ac_executable_extensions; do
4445 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4446 if test $ac_prog = install &&
4447 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4448 # AIX install. It has an incompatible calling convention.
4450 elif test $ac_prog = install &&
4451 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4452 # program-specific install script used by HP pwplus--don't use.
4454 else
4455 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4456 break 3
4459 done
4460 done
4462 esac
4463 done
4464 IFS=$as_save_IFS
4468 if test "${ac_cv_path_install+set}" = set; then
4469 INSTALL=$ac_cv_path_install
4470 else
4471 # As a last resort, use the slow shell script. Don't cache a
4472 # value for INSTALL within a source directory, because that will
4473 # break other packages using the cache if that directory is
4474 # removed, or if the value is a relative name.
4475 INSTALL=$ac_install_sh
4478 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4479 echo "${ECHO_T}$INSTALL" >&6; }
4481 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4482 # It thinks the first close brace ends the variable substitution.
4483 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4485 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4487 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4490 # Not every filesystem supports hard links
4492 if test -z "$LN" ; then
4493 case $ac_sys_system in
4494 CYGWIN*) LN="ln -s";;
4495 atheos*) LN="ln -s";;
4496 *) LN=ln;;
4497 esac
4500 # Check for --with-pydebug
4501 { echo "$as_me:$LINENO: checking for --with-pydebug" >&5
4502 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6; }
4504 # Check whether --with-pydebug was given.
4505 if test "${with_pydebug+set}" = set; then
4506 withval=$with_pydebug;
4507 if test "$withval" != no
4508 then
4510 cat >>confdefs.h <<\_ACEOF
4511 #define Py_DEBUG 1
4512 _ACEOF
4514 { echo "$as_me:$LINENO: result: yes" >&5
4515 echo "${ECHO_T}yes" >&6; };
4516 Py_DEBUG='true'
4517 else { echo "$as_me:$LINENO: result: no" >&5
4518 echo "${ECHO_T}no" >&6; }; Py_DEBUG='false'
4520 else
4521 { echo "$as_me:$LINENO: result: no" >&5
4522 echo "${ECHO_T}no" >&6; }
4526 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
4527 # merged with this chunk of code?
4529 # Optimizer/debugger flags
4530 # ------------------------
4531 # (The following bit of code is complicated enough - please keep things
4532 # indented properly. Just pretend you're editing Python code. ;-)
4534 # There are two parallel sets of case statements below, one that checks to
4535 # see if OPT was set and one that does BASECFLAGS setting based upon
4536 # compiler and platform. BASECFLAGS tweaks need to be made even if the
4537 # user set OPT.
4539 # tweak OPT based on compiler and platform, only if the user didn't set
4540 # it on the command line
4542 if test "${OPT-unset}" = "unset"
4543 then
4544 case $GCC in
4545 yes)
4546 if test "$CC" != 'g++' ; then
4547 STRICT_PROTO="-Wstrict-prototypes"
4549 # For gcc 4.x we need to use -fwrapv so lets check if its supported
4550 if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then
4551 WRAP="-fwrapv"
4553 case $ac_cv_prog_cc_g in
4554 yes)
4555 if test "$Py_DEBUG" = 'true' ; then
4556 # Optimization messes up debuggers, so turn it off for
4557 # debug builds.
4558 OPT="-g -Wall $STRICT_PROTO"
4559 else
4560 OPT="-g $WRAP -O3 -Wall $STRICT_PROTO"
4564 OPT="-O3 -Wall $STRICT_PROTO"
4566 esac
4567 case $ac_sys_system in
4568 SCO_SV*) OPT="$OPT -m486 -DSCO5"
4570 esac
4574 OPT="-O"
4576 esac
4581 # The -arch flags for universal builds on OSX
4582 UNIVERSAL_ARCH_FLAGS=
4585 # tweak BASECFLAGS based on compiler and platform
4586 case $GCC in
4587 yes)
4588 # Python violates C99 rules, by casting between incompatible
4589 # pointer types. GCC may generate bad code as a result of that,
4590 # so use -fno-strict-aliasing if supported.
4591 { echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
4592 echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6; }
4593 ac_save_cc="$CC"
4594 CC="$CC -fno-strict-aliasing"
4595 if test "$cross_compiling" = yes; then
4596 ac_cv_no_strict_aliasing_ok=no
4597 else
4598 cat >conftest.$ac_ext <<_ACEOF
4599 /* confdefs.h. */
4600 _ACEOF
4601 cat confdefs.h >>conftest.$ac_ext
4602 cat >>conftest.$ac_ext <<_ACEOF
4603 /* end confdefs.h. */
4604 int main() { return 0; }
4605 _ACEOF
4606 rm -f conftest$ac_exeext
4607 if { (ac_try="$ac_link"
4608 case "(($ac_try" in
4609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4610 *) ac_try_echo=$ac_try;;
4611 esac
4612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4613 (eval "$ac_link") 2>&5
4614 ac_status=$?
4615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4617 { (case "(($ac_try" in
4618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4619 *) ac_try_echo=$ac_try;;
4620 esac
4621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4622 (eval "$ac_try") 2>&5
4623 ac_status=$?
4624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625 (exit $ac_status); }; }; then
4626 ac_cv_no_strict_aliasing_ok=yes
4627 else
4628 echo "$as_me: program exited with status $ac_status" >&5
4629 echo "$as_me: failed program was:" >&5
4630 sed 's/^/| /' conftest.$ac_ext >&5
4632 ( exit $ac_status )
4633 ac_cv_no_strict_aliasing_ok=no
4635 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4639 CC="$ac_save_cc"
4640 { echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
4641 echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6; }
4642 if test $ac_cv_no_strict_aliasing_ok = yes
4643 then
4644 BASECFLAGS="$BASECFLAGS -fno-strict-aliasing"
4647 # if using gcc on alpha, use -mieee to get (near) full IEEE 754
4648 # support. Without this, treatment of subnormals doesn't follow
4649 # the standard.
4650 case $ac_sys_machine in
4651 alpha*)
4652 BASECFLAGS="$BASECFLAGS -mieee"
4654 esac
4656 case $ac_sys_system in
4657 SCO_SV*)
4658 BASECFLAGS="$BASECFLAGS -m486 -DSCO5"
4660 # is there any other compiler on Darwin besides gcc?
4661 Darwin*)
4662 # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd
4663 # used to be here, but non-Apple gcc doesn't accept them.
4664 if test "${CC}" = gcc
4665 then
4666 { echo "$as_me:$LINENO: checking which compiler should be used" >&5
4667 echo $ECHO_N "checking which compiler should be used... $ECHO_C" >&6; }
4668 case "${UNIVERSALSDK}" in
4669 */MacOSX10.4u.sdk)
4670 # Build using 10.4 SDK, force usage of gcc when the
4671 # compiler is gcc, otherwise the user will get very
4672 # confusing error messages when building on OSX 10.6
4673 CC=gcc-4.0
4674 CPP=cpp-4.0
4676 esac
4677 { echo "$as_me:$LINENO: result: $CC" >&5
4678 echo "${ECHO_T}$CC" >&6; }
4682 if test "${enable_universalsdk}"; then
4683 UNIVERSAL_ARCH_FLAGS=""
4684 if test "$UNIVERSAL_ARCHS" = "32-bit" ; then
4685 ARCH_RUN_32BIT=""
4686 UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386"
4688 elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then
4689 ARCH_RUN_32BIT="true"
4690 UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64"
4692 elif test "$UNIVERSAL_ARCHS" = "all" ; then
4693 ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc"
4694 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64"
4695 LIPO_32BIT_FLAGS="-extract i386 -extract ppc7400"
4696 LIPO_64BIT_FLAGS="-extract x86_64 -extract ppc64"
4698 elif test "$UNIVERSAL_ARCHS" = "intel" ; then
4699 ARCH_RUN_32BIT="/usr/bin/arch -i386"
4700 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64"
4701 LIPO_32BIT_FLAGS="-extract i386"
4702 LIPO_64BIT_FLAGS="-extract x86_64"
4704 elif test "$UNIVERSAL_ARCHS" = "3-way" ; then
4705 ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc"
4706 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64"
4707 LIPO_32BIT_FLAGS="-extract i386 -extract ppc7400"
4708 LIPO_64BIT_FLAGS="-extract x86_64"
4710 else
4711 { { echo "$as_me:$LINENO: error: proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" >&5
4712 echo "$as_me: error: proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" >&2;}
4713 { (exit 1); exit 1; }; }
4718 CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}"
4719 if test "${UNIVERSALSDK}" != "/"
4720 then
4721 CFLAGS="-isysroot ${UNIVERSALSDK} ${CFLAGS}"
4722 LDFLAGS="-isysroot ${UNIVERSALSDK} ${LDFLAGS}"
4723 CPPFLAGSFLAGS="-isysroot ${UNIVERSALSDK} ${CPPFLAGS}"
4727 # Calculate the right deployment target for this build.
4729 cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
4730 if test ${cur_target} '>' 10.2; then
4731 cur_target=10.3
4732 if test ${enable_universalsdk}; then
4733 if test "${UNIVERSAL_ARCHS}" = "all"; then
4734 # Ensure that the default platform for a
4735 # 4-way universal build is OSX 10.5,
4736 # that's the first OS release where
4737 # 4-way builds make sense.
4738 cur_target='10.5'
4740 elif test "${UNIVERSAL_ARCHS}" = "3-way"; then
4741 cur_target='10.5'
4743 elif test "${UNIVERSAL_ARCHS}" = "intel"; then
4744 cur_target='10.5'
4746 elif test "${UNIVERSAL_ARCHS}" = "64-bit"; then
4747 cur_target='10.5'
4749 else
4750 if test `/usr/bin/arch` = "i386"; then
4751 # On Intel macs default to a deployment
4752 # target of 10.4, that's the first OSX
4753 # release with Intel support.
4754 cur_target="10.4"
4758 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
4760 # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the
4761 # environment with a value that is the same as what we'll use
4762 # in the Makefile to ensure that we'll get the same compiler
4763 # environment during configure and build time.
4764 MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET"
4765 export MACOSX_DEPLOYMENT_TARGET
4766 EXPORT_MACOSX_DEPLOYMENT_TARGET=''
4769 OSF*)
4770 BASECFLAGS="$BASECFLAGS -mieee"
4772 esac
4776 case $ac_sys_system in
4777 OpenUNIX*|UnixWare*)
4778 BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
4780 OSF*)
4781 BASECFLAGS="$BASECFLAGS -ieee -std"
4783 SCO_SV*)
4784 BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5"
4786 esac
4788 esac
4790 if test "$Py_DEBUG" = 'true'; then
4792 else
4793 OPT="-DNDEBUG $OPT"
4796 if test "$ac_arch_flags"
4797 then
4798 BASECFLAGS="$BASECFLAGS $ac_arch_flags"
4801 # disable check for icc since it seems to pass, but generates a warning
4802 if test "$CC" = icc
4803 then
4804 ac_cv_opt_olimit_ok=no
4807 { echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
4808 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6; }
4809 if test "${ac_cv_opt_olimit_ok+set}" = set; then
4810 echo $ECHO_N "(cached) $ECHO_C" >&6
4811 else
4812 ac_save_cc="$CC"
4813 CC="$CC -OPT:Olimit=0"
4814 if test "$cross_compiling" = yes; then
4815 ac_cv_opt_olimit_ok=no
4816 else
4817 cat >conftest.$ac_ext <<_ACEOF
4818 /* confdefs.h. */
4819 _ACEOF
4820 cat confdefs.h >>conftest.$ac_ext
4821 cat >>conftest.$ac_ext <<_ACEOF
4822 /* end confdefs.h. */
4823 int main() { return 0; }
4824 _ACEOF
4825 rm -f conftest$ac_exeext
4826 if { (ac_try="$ac_link"
4827 case "(($ac_try" in
4828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4829 *) ac_try_echo=$ac_try;;
4830 esac
4831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4832 (eval "$ac_link") 2>&5
4833 ac_status=$?
4834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4836 { (case "(($ac_try" in
4837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4838 *) ac_try_echo=$ac_try;;
4839 esac
4840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4841 (eval "$ac_try") 2>&5
4842 ac_status=$?
4843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4844 (exit $ac_status); }; }; then
4845 ac_cv_opt_olimit_ok=yes
4846 else
4847 echo "$as_me: program exited with status $ac_status" >&5
4848 echo "$as_me: failed program was:" >&5
4849 sed 's/^/| /' conftest.$ac_ext >&5
4851 ( exit $ac_status )
4852 ac_cv_opt_olimit_ok=no
4854 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4858 CC="$ac_save_cc"
4861 { echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
4862 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6; }
4863 if test $ac_cv_opt_olimit_ok = yes; then
4864 case $ac_sys_system in
4865 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
4866 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
4867 # environment?
4868 Darwin*)
4871 BASECFLAGS="$BASECFLAGS -OPT:Olimit=0"
4873 esac
4874 else
4875 { echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
4876 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6; }
4877 if test "${ac_cv_olimit_ok+set}" = set; then
4878 echo $ECHO_N "(cached) $ECHO_C" >&6
4879 else
4880 ac_save_cc="$CC"
4881 CC="$CC -Olimit 1500"
4882 if test "$cross_compiling" = yes; then
4883 ac_cv_olimit_ok=no
4884 else
4885 cat >conftest.$ac_ext <<_ACEOF
4886 /* confdefs.h. */
4887 _ACEOF
4888 cat confdefs.h >>conftest.$ac_ext
4889 cat >>conftest.$ac_ext <<_ACEOF
4890 /* end confdefs.h. */
4891 int main() { return 0; }
4892 _ACEOF
4893 rm -f conftest$ac_exeext
4894 if { (ac_try="$ac_link"
4895 case "(($ac_try" in
4896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4897 *) ac_try_echo=$ac_try;;
4898 esac
4899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4900 (eval "$ac_link") 2>&5
4901 ac_status=$?
4902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4904 { (case "(($ac_try" in
4905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4906 *) ac_try_echo=$ac_try;;
4907 esac
4908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4909 (eval "$ac_try") 2>&5
4910 ac_status=$?
4911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4912 (exit $ac_status); }; }; then
4913 ac_cv_olimit_ok=yes
4914 else
4915 echo "$as_me: program exited with status $ac_status" >&5
4916 echo "$as_me: failed program was:" >&5
4917 sed 's/^/| /' conftest.$ac_ext >&5
4919 ( exit $ac_status )
4920 ac_cv_olimit_ok=no
4922 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4926 CC="$ac_save_cc"
4929 { echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
4930 echo "${ECHO_T}$ac_cv_olimit_ok" >&6; }
4931 if test $ac_cv_olimit_ok = yes; then
4932 BASECFLAGS="$BASECFLAGS -Olimit 1500"
4936 # Check whether GCC supports PyArg_ParseTuple format
4937 if test "$GCC" = "yes"
4938 then
4939 { echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5
4940 echo $ECHO_N "checking whether gcc supports ParseTuple __format__... $ECHO_C" >&6; }
4941 save_CFLAGS=$CFLAGS
4942 CFLAGS="$CFLAGS -Werror"
4943 cat >conftest.$ac_ext <<_ACEOF
4944 /* confdefs.h. */
4945 _ACEOF
4946 cat confdefs.h >>conftest.$ac_ext
4947 cat >>conftest.$ac_ext <<_ACEOF
4948 /* end confdefs.h. */
4950 void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2)));
4953 main ()
4957 return 0;
4959 _ACEOF
4960 rm -f conftest.$ac_objext
4961 if { (ac_try="$ac_compile"
4962 case "(($ac_try" in
4963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4964 *) ac_try_echo=$ac_try;;
4965 esac
4966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4967 (eval "$ac_compile") 2>conftest.er1
4968 ac_status=$?
4969 grep -v '^ *+' conftest.er1 >conftest.err
4970 rm -f conftest.er1
4971 cat conftest.err >&5
4972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973 (exit $ac_status); } && {
4974 test -z "$ac_c_werror_flag" ||
4975 test ! -s conftest.err
4976 } && test -s conftest.$ac_objext; then
4978 cat >>confdefs.h <<\_ACEOF
4979 #define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1
4980 _ACEOF
4982 { echo "$as_me:$LINENO: result: yes" >&5
4983 echo "${ECHO_T}yes" >&6; }
4984 else
4985 echo "$as_me: failed program was:" >&5
4986 sed 's/^/| /' conftest.$ac_ext >&5
4988 { echo "$as_me:$LINENO: result: no" >&5
4989 echo "${ECHO_T}no" >&6; }
4993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4994 CFLAGS=$save_CFLAGS
4997 # On some compilers, pthreads are available without further options
4998 # (e.g. MacOS X). On some of these systems, the compiler will not
4999 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
5000 # So we have to see first whether pthreads are available without
5001 # options before we can check whether -Kpthread improves anything.
5002 { echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
5003 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6; }
5004 if test "${ac_cv_pthread_is_default+set}" = set; then
5005 echo $ECHO_N "(cached) $ECHO_C" >&6
5006 else
5007 if test "$cross_compiling" = yes; then
5008 ac_cv_pthread_is_default=no
5009 else
5010 cat >conftest.$ac_ext <<_ACEOF
5011 /* confdefs.h. */
5012 _ACEOF
5013 cat confdefs.h >>conftest.$ac_ext
5014 cat >>conftest.$ac_ext <<_ACEOF
5015 /* end confdefs.h. */
5017 #include <pthread.h>
5019 void* routine(void* p){return NULL;}
5021 int main(){
5022 pthread_t p;
5023 if(pthread_create(&p,NULL,routine,NULL)!=0)
5024 return 1;
5025 (void)pthread_detach(p);
5026 return 0;
5029 _ACEOF
5030 rm -f conftest$ac_exeext
5031 if { (ac_try="$ac_link"
5032 case "(($ac_try" in
5033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5034 *) ac_try_echo=$ac_try;;
5035 esac
5036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5037 (eval "$ac_link") 2>&5
5038 ac_status=$?
5039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5041 { (case "(($ac_try" in
5042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5043 *) ac_try_echo=$ac_try;;
5044 esac
5045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5046 (eval "$ac_try") 2>&5
5047 ac_status=$?
5048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5049 (exit $ac_status); }; }; then
5051 ac_cv_pthread_is_default=yes
5052 ac_cv_kthread=no
5053 ac_cv_pthread=no
5055 else
5056 echo "$as_me: program exited with status $ac_status" >&5
5057 echo "$as_me: failed program was:" >&5
5058 sed 's/^/| /' conftest.$ac_ext >&5
5060 ( exit $ac_status )
5061 ac_cv_pthread_is_default=no
5063 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5070 { echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
5071 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6; }
5074 if test $ac_cv_pthread_is_default = yes
5075 then
5076 ac_cv_kpthread=no
5077 else
5078 # -Kpthread, if available, provides the right #defines
5079 # and linker options to make pthread_create available
5080 # Some compilers won't report that they do not support -Kpthread,
5081 # so we need to run a program to see whether it really made the
5082 # function available.
5083 { echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
5084 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6; }
5085 if test "${ac_cv_kpthread+set}" = set; then
5086 echo $ECHO_N "(cached) $ECHO_C" >&6
5087 else
5088 ac_save_cc="$CC"
5089 CC="$CC -Kpthread"
5090 if test "$cross_compiling" = yes; then
5091 ac_cv_kpthread=no
5092 else
5093 cat >conftest.$ac_ext <<_ACEOF
5094 /* confdefs.h. */
5095 _ACEOF
5096 cat confdefs.h >>conftest.$ac_ext
5097 cat >>conftest.$ac_ext <<_ACEOF
5098 /* end confdefs.h. */
5100 #include <pthread.h>
5102 void* routine(void* p){return NULL;}
5104 int main(){
5105 pthread_t p;
5106 if(pthread_create(&p,NULL,routine,NULL)!=0)
5107 return 1;
5108 (void)pthread_detach(p);
5109 return 0;
5112 _ACEOF
5113 rm -f conftest$ac_exeext
5114 if { (ac_try="$ac_link"
5115 case "(($ac_try" in
5116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5117 *) ac_try_echo=$ac_try;;
5118 esac
5119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5120 (eval "$ac_link") 2>&5
5121 ac_status=$?
5122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5124 { (case "(($ac_try" in
5125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5126 *) ac_try_echo=$ac_try;;
5127 esac
5128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5129 (eval "$ac_try") 2>&5
5130 ac_status=$?
5131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132 (exit $ac_status); }; }; then
5133 ac_cv_kpthread=yes
5134 else
5135 echo "$as_me: program exited with status $ac_status" >&5
5136 echo "$as_me: failed program was:" >&5
5137 sed 's/^/| /' conftest.$ac_ext >&5
5139 ( exit $ac_status )
5140 ac_cv_kpthread=no
5142 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5146 CC="$ac_save_cc"
5149 { echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
5150 echo "${ECHO_T}$ac_cv_kpthread" >&6; }
5153 if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
5154 then
5155 # -Kthread, if available, provides the right #defines
5156 # and linker options to make pthread_create available
5157 # Some compilers won't report that they do not support -Kthread,
5158 # so we need to run a program to see whether it really made the
5159 # function available.
5160 { echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
5161 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6; }
5162 if test "${ac_cv_kthread+set}" = set; then
5163 echo $ECHO_N "(cached) $ECHO_C" >&6
5164 else
5165 ac_save_cc="$CC"
5166 CC="$CC -Kthread"
5167 if test "$cross_compiling" = yes; then
5168 ac_cv_kthread=no
5169 else
5170 cat >conftest.$ac_ext <<_ACEOF
5171 /* confdefs.h. */
5172 _ACEOF
5173 cat confdefs.h >>conftest.$ac_ext
5174 cat >>conftest.$ac_ext <<_ACEOF
5175 /* end confdefs.h. */
5177 #include <pthread.h>
5179 void* routine(void* p){return NULL;}
5181 int main(){
5182 pthread_t p;
5183 if(pthread_create(&p,NULL,routine,NULL)!=0)
5184 return 1;
5185 (void)pthread_detach(p);
5186 return 0;
5189 _ACEOF
5190 rm -f conftest$ac_exeext
5191 if { (ac_try="$ac_link"
5192 case "(($ac_try" in
5193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5194 *) ac_try_echo=$ac_try;;
5195 esac
5196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5197 (eval "$ac_link") 2>&5
5198 ac_status=$?
5199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5201 { (case "(($ac_try" in
5202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5203 *) ac_try_echo=$ac_try;;
5204 esac
5205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5206 (eval "$ac_try") 2>&5
5207 ac_status=$?
5208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209 (exit $ac_status); }; }; then
5210 ac_cv_kthread=yes
5211 else
5212 echo "$as_me: program exited with status $ac_status" >&5
5213 echo "$as_me: failed program was:" >&5
5214 sed 's/^/| /' conftest.$ac_ext >&5
5216 ( exit $ac_status )
5217 ac_cv_kthread=no
5219 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5223 CC="$ac_save_cc"
5226 { echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
5227 echo "${ECHO_T}$ac_cv_kthread" >&6; }
5230 if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
5231 then
5232 # -pthread, if available, provides the right #defines
5233 # and linker options to make pthread_create available
5234 # Some compilers won't report that they do not support -pthread,
5235 # so we need to run a program to see whether it really made the
5236 # function available.
5237 { echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
5238 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6; }
5239 if test "${ac_cv_thread+set}" = set; then
5240 echo $ECHO_N "(cached) $ECHO_C" >&6
5241 else
5242 ac_save_cc="$CC"
5243 CC="$CC -pthread"
5244 if test "$cross_compiling" = yes; then
5245 ac_cv_pthread=no
5246 else
5247 cat >conftest.$ac_ext <<_ACEOF
5248 /* confdefs.h. */
5249 _ACEOF
5250 cat confdefs.h >>conftest.$ac_ext
5251 cat >>conftest.$ac_ext <<_ACEOF
5252 /* end confdefs.h. */
5254 #include <pthread.h>
5256 void* routine(void* p){return NULL;}
5258 int main(){
5259 pthread_t p;
5260 if(pthread_create(&p,NULL,routine,NULL)!=0)
5261 return 1;
5262 (void)pthread_detach(p);
5263 return 0;
5266 _ACEOF
5267 rm -f conftest$ac_exeext
5268 if { (ac_try="$ac_link"
5269 case "(($ac_try" in
5270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5271 *) ac_try_echo=$ac_try;;
5272 esac
5273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5274 (eval "$ac_link") 2>&5
5275 ac_status=$?
5276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5277 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5278 { (case "(($ac_try" in
5279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5280 *) ac_try_echo=$ac_try;;
5281 esac
5282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5283 (eval "$ac_try") 2>&5
5284 ac_status=$?
5285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5286 (exit $ac_status); }; }; then
5287 ac_cv_pthread=yes
5288 else
5289 echo "$as_me: program exited with status $ac_status" >&5
5290 echo "$as_me: failed program was:" >&5
5291 sed 's/^/| /' conftest.$ac_ext >&5
5293 ( exit $ac_status )
5294 ac_cv_pthread=no
5296 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5300 CC="$ac_save_cc"
5303 { echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
5304 echo "${ECHO_T}$ac_cv_pthread" >&6; }
5307 # If we have set a CC compiler flag for thread support then
5308 # check if it works for CXX, too.
5309 ac_cv_cxx_thread=no
5310 if test ! -z "$CXX"
5311 then
5312 { echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
5313 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6; }
5314 ac_save_cxx="$CXX"
5316 if test "$ac_cv_kpthread" = "yes"
5317 then
5318 CXX="$CXX -Kpthread"
5319 ac_cv_cxx_thread=yes
5320 elif test "$ac_cv_kthread" = "yes"
5321 then
5322 CXX="$CXX -Kthread"
5323 ac_cv_cxx_thread=yes
5324 elif test "$ac_cv_pthread" = "yes"
5325 then
5326 CXX="$CXX -pthread"
5327 ac_cv_cxx_thread=yes
5330 if test $ac_cv_cxx_thread = yes
5331 then
5332 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
5333 $CXX -c conftest.$ac_ext 2>&5
5334 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
5335 && test -s conftest$ac_exeext && ./conftest$ac_exeext
5336 then
5337 ac_cv_cxx_thread=yes
5338 else
5339 ac_cv_cxx_thread=no
5341 rm -fr conftest*
5343 { echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
5344 echo "${ECHO_T}$ac_cv_cxx_thread" >&6; }
5346 CXX="$ac_save_cxx"
5349 # checks for header files
5350 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5351 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5352 if test "${ac_cv_header_stdc+set}" = set; then
5353 echo $ECHO_N "(cached) $ECHO_C" >&6
5354 else
5355 cat >conftest.$ac_ext <<_ACEOF
5356 /* confdefs.h. */
5357 _ACEOF
5358 cat confdefs.h >>conftest.$ac_ext
5359 cat >>conftest.$ac_ext <<_ACEOF
5360 /* end confdefs.h. */
5361 #include <stdlib.h>
5362 #include <stdarg.h>
5363 #include <string.h>
5364 #include <float.h>
5367 main ()
5371 return 0;
5373 _ACEOF
5374 rm -f conftest.$ac_objext
5375 if { (ac_try="$ac_compile"
5376 case "(($ac_try" in
5377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5378 *) ac_try_echo=$ac_try;;
5379 esac
5380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5381 (eval "$ac_compile") 2>conftest.er1
5382 ac_status=$?
5383 grep -v '^ *+' conftest.er1 >conftest.err
5384 rm -f conftest.er1
5385 cat conftest.err >&5
5386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5387 (exit $ac_status); } && {
5388 test -z "$ac_c_werror_flag" ||
5389 test ! -s conftest.err
5390 } && test -s conftest.$ac_objext; then
5391 ac_cv_header_stdc=yes
5392 else
5393 echo "$as_me: failed program was:" >&5
5394 sed 's/^/| /' conftest.$ac_ext >&5
5396 ac_cv_header_stdc=no
5399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5401 if test $ac_cv_header_stdc = yes; then
5402 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5403 cat >conftest.$ac_ext <<_ACEOF
5404 /* confdefs.h. */
5405 _ACEOF
5406 cat confdefs.h >>conftest.$ac_ext
5407 cat >>conftest.$ac_ext <<_ACEOF
5408 /* end confdefs.h. */
5409 #include <string.h>
5411 _ACEOF
5412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5413 $EGREP "memchr" >/dev/null 2>&1; then
5415 else
5416 ac_cv_header_stdc=no
5418 rm -f -r conftest*
5422 if test $ac_cv_header_stdc = yes; then
5423 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5424 cat >conftest.$ac_ext <<_ACEOF
5425 /* confdefs.h. */
5426 _ACEOF
5427 cat confdefs.h >>conftest.$ac_ext
5428 cat >>conftest.$ac_ext <<_ACEOF
5429 /* end confdefs.h. */
5430 #include <stdlib.h>
5432 _ACEOF
5433 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5434 $EGREP "free" >/dev/null 2>&1; then
5436 else
5437 ac_cv_header_stdc=no
5439 rm -f -r conftest*
5443 if test $ac_cv_header_stdc = yes; then
5444 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5445 if test "$cross_compiling" = yes; then
5447 else
5448 cat >conftest.$ac_ext <<_ACEOF
5449 /* confdefs.h. */
5450 _ACEOF
5451 cat confdefs.h >>conftest.$ac_ext
5452 cat >>conftest.$ac_ext <<_ACEOF
5453 /* end confdefs.h. */
5454 #include <ctype.h>
5455 #include <stdlib.h>
5456 #if ((' ' & 0x0FF) == 0x020)
5457 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5458 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5459 #else
5460 # define ISLOWER(c) \
5461 (('a' <= (c) && (c) <= 'i') \
5462 || ('j' <= (c) && (c) <= 'r') \
5463 || ('s' <= (c) && (c) <= 'z'))
5464 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5465 #endif
5467 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5469 main ()
5471 int i;
5472 for (i = 0; i < 256; i++)
5473 if (XOR (islower (i), ISLOWER (i))
5474 || toupper (i) != TOUPPER (i))
5475 return 2;
5476 return 0;
5478 _ACEOF
5479 rm -f conftest$ac_exeext
5480 if { (ac_try="$ac_link"
5481 case "(($ac_try" in
5482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5483 *) ac_try_echo=$ac_try;;
5484 esac
5485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5486 (eval "$ac_link") 2>&5
5487 ac_status=$?
5488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5490 { (case "(($ac_try" in
5491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5492 *) ac_try_echo=$ac_try;;
5493 esac
5494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5495 (eval "$ac_try") 2>&5
5496 ac_status=$?
5497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5498 (exit $ac_status); }; }; then
5500 else
5501 echo "$as_me: program exited with status $ac_status" >&5
5502 echo "$as_me: failed program was:" >&5
5503 sed 's/^/| /' conftest.$ac_ext >&5
5505 ( exit $ac_status )
5506 ac_cv_header_stdc=no
5508 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5514 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5515 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5516 if test $ac_cv_header_stdc = yes; then
5518 cat >>confdefs.h <<\_ACEOF
5519 #define STDC_HEADERS 1
5520 _ACEOF
5524 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5534 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5535 inttypes.h stdint.h unistd.h
5537 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5538 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5539 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5540 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5541 echo $ECHO_N "(cached) $ECHO_C" >&6
5542 else
5543 cat >conftest.$ac_ext <<_ACEOF
5544 /* confdefs.h. */
5545 _ACEOF
5546 cat confdefs.h >>conftest.$ac_ext
5547 cat >>conftest.$ac_ext <<_ACEOF
5548 /* end confdefs.h. */
5549 $ac_includes_default
5551 #include <$ac_header>
5552 _ACEOF
5553 rm -f conftest.$ac_objext
5554 if { (ac_try="$ac_compile"
5555 case "(($ac_try" in
5556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5557 *) ac_try_echo=$ac_try;;
5558 esac
5559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5560 (eval "$ac_compile") 2>conftest.er1
5561 ac_status=$?
5562 grep -v '^ *+' conftest.er1 >conftest.err
5563 rm -f conftest.er1
5564 cat conftest.err >&5
5565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5566 (exit $ac_status); } && {
5567 test -z "$ac_c_werror_flag" ||
5568 test ! -s conftest.err
5569 } && test -s conftest.$ac_objext; then
5570 eval "$as_ac_Header=yes"
5571 else
5572 echo "$as_me: failed program was:" >&5
5573 sed 's/^/| /' conftest.$ac_ext >&5
5575 eval "$as_ac_Header=no"
5578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5580 ac_res=`eval echo '${'$as_ac_Header'}'`
5581 { echo "$as_me:$LINENO: result: $ac_res" >&5
5582 echo "${ECHO_T}$ac_res" >&6; }
5583 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5584 cat >>confdefs.h <<_ACEOF
5585 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5586 _ACEOF
5590 done
5647 for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \
5648 fcntl.h grp.h \
5649 ieeefp.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
5650 shadow.h signal.h stdint.h stropts.h termios.h thread.h \
5651 unistd.h utime.h \
5652 sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \
5653 sys/lock.h sys/mkdev.h sys/modem.h \
5654 sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \
5655 sys/termio.h sys/time.h \
5656 sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
5657 sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
5658 bluetooth/bluetooth.h linux/tipc.h
5660 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5661 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5662 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5663 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5664 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5665 echo $ECHO_N "(cached) $ECHO_C" >&6
5667 ac_res=`eval echo '${'$as_ac_Header'}'`
5668 { echo "$as_me:$LINENO: result: $ac_res" >&5
5669 echo "${ECHO_T}$ac_res" >&6; }
5670 else
5671 # Is the header compilable?
5672 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5673 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5674 cat >conftest.$ac_ext <<_ACEOF
5675 /* confdefs.h. */
5676 _ACEOF
5677 cat confdefs.h >>conftest.$ac_ext
5678 cat >>conftest.$ac_ext <<_ACEOF
5679 /* end confdefs.h. */
5680 $ac_includes_default
5681 #include <$ac_header>
5682 _ACEOF
5683 rm -f conftest.$ac_objext
5684 if { (ac_try="$ac_compile"
5685 case "(($ac_try" in
5686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5687 *) ac_try_echo=$ac_try;;
5688 esac
5689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5690 (eval "$ac_compile") 2>conftest.er1
5691 ac_status=$?
5692 grep -v '^ *+' conftest.er1 >conftest.err
5693 rm -f conftest.er1
5694 cat conftest.err >&5
5695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696 (exit $ac_status); } && {
5697 test -z "$ac_c_werror_flag" ||
5698 test ! -s conftest.err
5699 } && test -s conftest.$ac_objext; then
5700 ac_header_compiler=yes
5701 else
5702 echo "$as_me: failed program was:" >&5
5703 sed 's/^/| /' conftest.$ac_ext >&5
5705 ac_header_compiler=no
5708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5709 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5710 echo "${ECHO_T}$ac_header_compiler" >&6; }
5712 # Is the header present?
5713 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5714 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5715 cat >conftest.$ac_ext <<_ACEOF
5716 /* confdefs.h. */
5717 _ACEOF
5718 cat confdefs.h >>conftest.$ac_ext
5719 cat >>conftest.$ac_ext <<_ACEOF
5720 /* end confdefs.h. */
5721 #include <$ac_header>
5722 _ACEOF
5723 if { (ac_try="$ac_cpp conftest.$ac_ext"
5724 case "(($ac_try" in
5725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5726 *) ac_try_echo=$ac_try;;
5727 esac
5728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5729 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5730 ac_status=$?
5731 grep -v '^ *+' conftest.er1 >conftest.err
5732 rm -f conftest.er1
5733 cat conftest.err >&5
5734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735 (exit $ac_status); } >/dev/null && {
5736 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5737 test ! -s conftest.err
5738 }; then
5739 ac_header_preproc=yes
5740 else
5741 echo "$as_me: failed program was:" >&5
5742 sed 's/^/| /' conftest.$ac_ext >&5
5744 ac_header_preproc=no
5747 rm -f conftest.err conftest.$ac_ext
5748 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5749 echo "${ECHO_T}$ac_header_preproc" >&6; }
5751 # So? What about this header?
5752 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5753 yes:no: )
5754 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5755 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5756 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5757 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5758 ac_header_preproc=yes
5760 no:yes:* )
5761 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5762 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5763 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5764 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5765 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5766 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5767 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5768 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5769 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5770 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5771 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5772 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5773 ( cat <<\_ASBOX
5774 ## -------------------------------------- ##
5775 ## Report this to http://bugs.python.org/ ##
5776 ## -------------------------------------- ##
5777 _ASBOX
5778 ) | sed "s/^/$as_me: WARNING: /" >&2
5780 esac
5781 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5782 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5783 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5784 echo $ECHO_N "(cached) $ECHO_C" >&6
5785 else
5786 eval "$as_ac_Header=\$ac_header_preproc"
5788 ac_res=`eval echo '${'$as_ac_Header'}'`
5789 { echo "$as_me:$LINENO: result: $ac_res" >&5
5790 echo "${ECHO_T}$ac_res" >&6; }
5793 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5794 cat >>confdefs.h <<_ACEOF
5795 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5796 _ACEOF
5800 done
5807 ac_header_dirent=no
5808 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5809 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5810 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5811 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5812 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5813 echo $ECHO_N "(cached) $ECHO_C" >&6
5814 else
5815 cat >conftest.$ac_ext <<_ACEOF
5816 /* confdefs.h. */
5817 _ACEOF
5818 cat confdefs.h >>conftest.$ac_ext
5819 cat >>conftest.$ac_ext <<_ACEOF
5820 /* end confdefs.h. */
5821 #include <sys/types.h>
5822 #include <$ac_hdr>
5825 main ()
5827 if ((DIR *) 0)
5828 return 0;
5830 return 0;
5832 _ACEOF
5833 rm -f conftest.$ac_objext
5834 if { (ac_try="$ac_compile"
5835 case "(($ac_try" in
5836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5837 *) ac_try_echo=$ac_try;;
5838 esac
5839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5840 (eval "$ac_compile") 2>conftest.er1
5841 ac_status=$?
5842 grep -v '^ *+' conftest.er1 >conftest.err
5843 rm -f conftest.er1
5844 cat conftest.err >&5
5845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846 (exit $ac_status); } && {
5847 test -z "$ac_c_werror_flag" ||
5848 test ! -s conftest.err
5849 } && test -s conftest.$ac_objext; then
5850 eval "$as_ac_Header=yes"
5851 else
5852 echo "$as_me: failed program was:" >&5
5853 sed 's/^/| /' conftest.$ac_ext >&5
5855 eval "$as_ac_Header=no"
5858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5860 ac_res=`eval echo '${'$as_ac_Header'}'`
5861 { echo "$as_me:$LINENO: result: $ac_res" >&5
5862 echo "${ECHO_T}$ac_res" >&6; }
5863 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5864 cat >>confdefs.h <<_ACEOF
5865 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5866 _ACEOF
5868 ac_header_dirent=$ac_hdr; break
5871 done
5872 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5873 if test $ac_header_dirent = dirent.h; then
5874 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5875 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5876 if test "${ac_cv_search_opendir+set}" = set; then
5877 echo $ECHO_N "(cached) $ECHO_C" >&6
5878 else
5879 ac_func_search_save_LIBS=$LIBS
5880 cat >conftest.$ac_ext <<_ACEOF
5881 /* confdefs.h. */
5882 _ACEOF
5883 cat confdefs.h >>conftest.$ac_ext
5884 cat >>conftest.$ac_ext <<_ACEOF
5885 /* end confdefs.h. */
5887 /* Override any GCC internal prototype to avoid an error.
5888 Use char because int might match the return type of a GCC
5889 builtin and then its argument prototype would still apply. */
5890 #ifdef __cplusplus
5891 extern "C"
5892 #endif
5893 char opendir ();
5895 main ()
5897 return opendir ();
5899 return 0;
5901 _ACEOF
5902 for ac_lib in '' dir; do
5903 if test -z "$ac_lib"; then
5904 ac_res="none required"
5905 else
5906 ac_res=-l$ac_lib
5907 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5909 rm -f conftest.$ac_objext conftest$ac_exeext
5910 if { (ac_try="$ac_link"
5911 case "(($ac_try" in
5912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5913 *) ac_try_echo=$ac_try;;
5914 esac
5915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5916 (eval "$ac_link") 2>conftest.er1
5917 ac_status=$?
5918 grep -v '^ *+' conftest.er1 >conftest.err
5919 rm -f conftest.er1
5920 cat conftest.err >&5
5921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922 (exit $ac_status); } && {
5923 test -z "$ac_c_werror_flag" ||
5924 test ! -s conftest.err
5925 } && test -s conftest$ac_exeext &&
5926 $as_test_x conftest$ac_exeext; then
5927 ac_cv_search_opendir=$ac_res
5928 else
5929 echo "$as_me: failed program was:" >&5
5930 sed 's/^/| /' conftest.$ac_ext >&5
5935 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5936 conftest$ac_exeext
5937 if test "${ac_cv_search_opendir+set}" = set; then
5938 break
5940 done
5941 if test "${ac_cv_search_opendir+set}" = set; then
5943 else
5944 ac_cv_search_opendir=no
5946 rm conftest.$ac_ext
5947 LIBS=$ac_func_search_save_LIBS
5949 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5950 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5951 ac_res=$ac_cv_search_opendir
5952 if test "$ac_res" != no; then
5953 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5957 else
5958 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5959 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5960 if test "${ac_cv_search_opendir+set}" = set; then
5961 echo $ECHO_N "(cached) $ECHO_C" >&6
5962 else
5963 ac_func_search_save_LIBS=$LIBS
5964 cat >conftest.$ac_ext <<_ACEOF
5965 /* confdefs.h. */
5966 _ACEOF
5967 cat confdefs.h >>conftest.$ac_ext
5968 cat >>conftest.$ac_ext <<_ACEOF
5969 /* end confdefs.h. */
5971 /* Override any GCC internal prototype to avoid an error.
5972 Use char because int might match the return type of a GCC
5973 builtin and then its argument prototype would still apply. */
5974 #ifdef __cplusplus
5975 extern "C"
5976 #endif
5977 char opendir ();
5979 main ()
5981 return opendir ();
5983 return 0;
5985 _ACEOF
5986 for ac_lib in '' x; do
5987 if test -z "$ac_lib"; then
5988 ac_res="none required"
5989 else
5990 ac_res=-l$ac_lib
5991 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5993 rm -f conftest.$ac_objext conftest$ac_exeext
5994 if { (ac_try="$ac_link"
5995 case "(($ac_try" in
5996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5997 *) ac_try_echo=$ac_try;;
5998 esac
5999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6000 (eval "$ac_link") 2>conftest.er1
6001 ac_status=$?
6002 grep -v '^ *+' conftest.er1 >conftest.err
6003 rm -f conftest.er1
6004 cat conftest.err >&5
6005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006 (exit $ac_status); } && {
6007 test -z "$ac_c_werror_flag" ||
6008 test ! -s conftest.err
6009 } && test -s conftest$ac_exeext &&
6010 $as_test_x conftest$ac_exeext; then
6011 ac_cv_search_opendir=$ac_res
6012 else
6013 echo "$as_me: failed program was:" >&5
6014 sed 's/^/| /' conftest.$ac_ext >&5
6019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6020 conftest$ac_exeext
6021 if test "${ac_cv_search_opendir+set}" = set; then
6022 break
6024 done
6025 if test "${ac_cv_search_opendir+set}" = set; then
6027 else
6028 ac_cv_search_opendir=no
6030 rm conftest.$ac_ext
6031 LIBS=$ac_func_search_save_LIBS
6033 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6034 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
6035 ac_res=$ac_cv_search_opendir
6036 if test "$ac_res" != no; then
6037 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6043 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
6044 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
6045 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
6046 echo $ECHO_N "(cached) $ECHO_C" >&6
6047 else
6048 cat >conftest.$ac_ext <<_ACEOF
6049 /* confdefs.h. */
6050 _ACEOF
6051 cat confdefs.h >>conftest.$ac_ext
6052 cat >>conftest.$ac_ext <<_ACEOF
6053 /* end confdefs.h. */
6054 #include <sys/types.h>
6056 main ()
6058 return makedev(0, 0);
6060 return 0;
6062 _ACEOF
6063 rm -f conftest.$ac_objext conftest$ac_exeext
6064 if { (ac_try="$ac_link"
6065 case "(($ac_try" in
6066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6067 *) ac_try_echo=$ac_try;;
6068 esac
6069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6070 (eval "$ac_link") 2>conftest.er1
6071 ac_status=$?
6072 grep -v '^ *+' conftest.er1 >conftest.err
6073 rm -f conftest.er1
6074 cat conftest.err >&5
6075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6076 (exit $ac_status); } && {
6077 test -z "$ac_c_werror_flag" ||
6078 test ! -s conftest.err
6079 } && test -s conftest$ac_exeext &&
6080 $as_test_x conftest$ac_exeext; then
6081 ac_cv_header_sys_types_h_makedev=yes
6082 else
6083 echo "$as_me: failed program was:" >&5
6084 sed 's/^/| /' conftest.$ac_ext >&5
6086 ac_cv_header_sys_types_h_makedev=no
6089 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6090 conftest$ac_exeext conftest.$ac_ext
6093 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
6094 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
6096 if test $ac_cv_header_sys_types_h_makedev = no; then
6097 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6098 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6099 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6100 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6101 echo $ECHO_N "(cached) $ECHO_C" >&6
6103 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6104 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6105 else
6106 # Is the header compilable?
6107 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
6108 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
6109 cat >conftest.$ac_ext <<_ACEOF
6110 /* confdefs.h. */
6111 _ACEOF
6112 cat confdefs.h >>conftest.$ac_ext
6113 cat >>conftest.$ac_ext <<_ACEOF
6114 /* end confdefs.h. */
6115 $ac_includes_default
6116 #include <sys/mkdev.h>
6117 _ACEOF
6118 rm -f conftest.$ac_objext
6119 if { (ac_try="$ac_compile"
6120 case "(($ac_try" in
6121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6122 *) ac_try_echo=$ac_try;;
6123 esac
6124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6125 (eval "$ac_compile") 2>conftest.er1
6126 ac_status=$?
6127 grep -v '^ *+' conftest.er1 >conftest.err
6128 rm -f conftest.er1
6129 cat conftest.err >&5
6130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6131 (exit $ac_status); } && {
6132 test -z "$ac_c_werror_flag" ||
6133 test ! -s conftest.err
6134 } && test -s conftest.$ac_objext; then
6135 ac_header_compiler=yes
6136 else
6137 echo "$as_me: failed program was:" >&5
6138 sed 's/^/| /' conftest.$ac_ext >&5
6140 ac_header_compiler=no
6143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6144 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6145 echo "${ECHO_T}$ac_header_compiler" >&6; }
6147 # Is the header present?
6148 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
6149 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
6150 cat >conftest.$ac_ext <<_ACEOF
6151 /* confdefs.h. */
6152 _ACEOF
6153 cat confdefs.h >>conftest.$ac_ext
6154 cat >>conftest.$ac_ext <<_ACEOF
6155 /* end confdefs.h. */
6156 #include <sys/mkdev.h>
6157 _ACEOF
6158 if { (ac_try="$ac_cpp conftest.$ac_ext"
6159 case "(($ac_try" in
6160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6161 *) ac_try_echo=$ac_try;;
6162 esac
6163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6164 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6165 ac_status=$?
6166 grep -v '^ *+' conftest.er1 >conftest.err
6167 rm -f conftest.er1
6168 cat conftest.err >&5
6169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6170 (exit $ac_status); } >/dev/null && {
6171 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6172 test ! -s conftest.err
6173 }; then
6174 ac_header_preproc=yes
6175 else
6176 echo "$as_me: failed program was:" >&5
6177 sed 's/^/| /' conftest.$ac_ext >&5
6179 ac_header_preproc=no
6182 rm -f conftest.err conftest.$ac_ext
6183 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6184 echo "${ECHO_T}$ac_header_preproc" >&6; }
6186 # So? What about this header?
6187 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6188 yes:no: )
6189 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
6190 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6191 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
6192 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
6193 ac_header_preproc=yes
6195 no:yes:* )
6196 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
6197 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
6198 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
6199 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
6200 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
6201 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
6202 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
6203 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
6204 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
6205 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
6206 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
6207 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
6208 ( cat <<\_ASBOX
6209 ## -------------------------------------- ##
6210 ## Report this to http://bugs.python.org/ ##
6211 ## -------------------------------------- ##
6212 _ASBOX
6213 ) | sed "s/^/$as_me: WARNING: /" >&2
6215 esac
6216 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6217 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6218 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6219 echo $ECHO_N "(cached) $ECHO_C" >&6
6220 else
6221 ac_cv_header_sys_mkdev_h=$ac_header_preproc
6223 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6224 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6227 if test $ac_cv_header_sys_mkdev_h = yes; then
6229 cat >>confdefs.h <<\_ACEOF
6230 #define MAJOR_IN_MKDEV 1
6231 _ACEOF
6237 if test $ac_cv_header_sys_mkdev_h = no; then
6238 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6239 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6240 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6241 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6242 echo $ECHO_N "(cached) $ECHO_C" >&6
6244 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6245 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6246 else
6247 # Is the header compilable?
6248 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
6249 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
6250 cat >conftest.$ac_ext <<_ACEOF
6251 /* confdefs.h. */
6252 _ACEOF
6253 cat confdefs.h >>conftest.$ac_ext
6254 cat >>conftest.$ac_ext <<_ACEOF
6255 /* end confdefs.h. */
6256 $ac_includes_default
6257 #include <sys/sysmacros.h>
6258 _ACEOF
6259 rm -f conftest.$ac_objext
6260 if { (ac_try="$ac_compile"
6261 case "(($ac_try" in
6262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6263 *) ac_try_echo=$ac_try;;
6264 esac
6265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6266 (eval "$ac_compile") 2>conftest.er1
6267 ac_status=$?
6268 grep -v '^ *+' conftest.er1 >conftest.err
6269 rm -f conftest.er1
6270 cat conftest.err >&5
6271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6272 (exit $ac_status); } && {
6273 test -z "$ac_c_werror_flag" ||
6274 test ! -s conftest.err
6275 } && test -s conftest.$ac_objext; then
6276 ac_header_compiler=yes
6277 else
6278 echo "$as_me: failed program was:" >&5
6279 sed 's/^/| /' conftest.$ac_ext >&5
6281 ac_header_compiler=no
6284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6285 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6286 echo "${ECHO_T}$ac_header_compiler" >&6; }
6288 # Is the header present?
6289 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
6290 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
6291 cat >conftest.$ac_ext <<_ACEOF
6292 /* confdefs.h. */
6293 _ACEOF
6294 cat confdefs.h >>conftest.$ac_ext
6295 cat >>conftest.$ac_ext <<_ACEOF
6296 /* end confdefs.h. */
6297 #include <sys/sysmacros.h>
6298 _ACEOF
6299 if { (ac_try="$ac_cpp conftest.$ac_ext"
6300 case "(($ac_try" in
6301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6302 *) ac_try_echo=$ac_try;;
6303 esac
6304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6305 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6306 ac_status=$?
6307 grep -v '^ *+' conftest.er1 >conftest.err
6308 rm -f conftest.er1
6309 cat conftest.err >&5
6310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311 (exit $ac_status); } >/dev/null && {
6312 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6313 test ! -s conftest.err
6314 }; then
6315 ac_header_preproc=yes
6316 else
6317 echo "$as_me: failed program was:" >&5
6318 sed 's/^/| /' conftest.$ac_ext >&5
6320 ac_header_preproc=no
6323 rm -f conftest.err conftest.$ac_ext
6324 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6325 echo "${ECHO_T}$ac_header_preproc" >&6; }
6327 # So? What about this header?
6328 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6329 yes:no: )
6330 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
6331 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6332 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
6333 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
6334 ac_header_preproc=yes
6336 no:yes:* )
6337 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
6338 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
6339 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
6340 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
6341 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
6342 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
6343 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
6344 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
6345 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
6346 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
6347 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
6348 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
6349 ( cat <<\_ASBOX
6350 ## -------------------------------------- ##
6351 ## Report this to http://bugs.python.org/ ##
6352 ## -------------------------------------- ##
6353 _ASBOX
6354 ) | sed "s/^/$as_me: WARNING: /" >&2
6356 esac
6357 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6358 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6359 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6360 echo $ECHO_N "(cached) $ECHO_C" >&6
6361 else
6362 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
6364 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6365 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6368 if test $ac_cv_header_sys_sysmacros_h = yes; then
6370 cat >>confdefs.h <<\_ACEOF
6371 #define MAJOR_IN_SYSMACROS 1
6372 _ACEOF
6381 # On Solaris, term.h requires curses.h
6383 for ac_header in term.h
6385 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6386 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6387 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6388 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6389 echo $ECHO_N "(cached) $ECHO_C" >&6
6390 else
6391 cat >conftest.$ac_ext <<_ACEOF
6392 /* confdefs.h. */
6393 _ACEOF
6394 cat confdefs.h >>conftest.$ac_ext
6395 cat >>conftest.$ac_ext <<_ACEOF
6396 /* end confdefs.h. */
6398 #ifdef HAVE_CURSES_H
6399 #include <curses.h>
6400 #endif
6403 #include <$ac_header>
6404 _ACEOF
6405 rm -f conftest.$ac_objext
6406 if { (ac_try="$ac_compile"
6407 case "(($ac_try" in
6408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6409 *) ac_try_echo=$ac_try;;
6410 esac
6411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6412 (eval "$ac_compile") 2>conftest.er1
6413 ac_status=$?
6414 grep -v '^ *+' conftest.er1 >conftest.err
6415 rm -f conftest.er1
6416 cat conftest.err >&5
6417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6418 (exit $ac_status); } && {
6419 test -z "$ac_c_werror_flag" ||
6420 test ! -s conftest.err
6421 } && test -s conftest.$ac_objext; then
6422 eval "$as_ac_Header=yes"
6423 else
6424 echo "$as_me: failed program was:" >&5
6425 sed 's/^/| /' conftest.$ac_ext >&5
6427 eval "$as_ac_Header=no"
6430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6432 ac_res=`eval echo '${'$as_ac_Header'}'`
6433 { echo "$as_me:$LINENO: result: $ac_res" >&5
6434 echo "${ECHO_T}$ac_res" >&6; }
6435 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6436 cat >>confdefs.h <<_ACEOF
6437 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6438 _ACEOF
6442 done
6445 # On Linux, netlink.h requires asm/types.h
6447 for ac_header in linux/netlink.h
6449 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6450 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6451 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6452 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6453 echo $ECHO_N "(cached) $ECHO_C" >&6
6454 else
6455 cat >conftest.$ac_ext <<_ACEOF
6456 /* confdefs.h. */
6457 _ACEOF
6458 cat confdefs.h >>conftest.$ac_ext
6459 cat >>conftest.$ac_ext <<_ACEOF
6460 /* end confdefs.h. */
6462 #ifdef HAVE_ASM_TYPES_H
6463 #include <asm/types.h>
6464 #endif
6465 #ifdef HAVE_SYS_SOCKET_H
6466 #include <sys/socket.h>
6467 #endif
6470 #include <$ac_header>
6471 _ACEOF
6472 rm -f conftest.$ac_objext
6473 if { (ac_try="$ac_compile"
6474 case "(($ac_try" in
6475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6476 *) ac_try_echo=$ac_try;;
6477 esac
6478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6479 (eval "$ac_compile") 2>conftest.er1
6480 ac_status=$?
6481 grep -v '^ *+' conftest.er1 >conftest.err
6482 rm -f conftest.er1
6483 cat conftest.err >&5
6484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485 (exit $ac_status); } && {
6486 test -z "$ac_c_werror_flag" ||
6487 test ! -s conftest.err
6488 } && test -s conftest.$ac_objext; then
6489 eval "$as_ac_Header=yes"
6490 else
6491 echo "$as_me: failed program was:" >&5
6492 sed 's/^/| /' conftest.$ac_ext >&5
6494 eval "$as_ac_Header=no"
6497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6499 ac_res=`eval echo '${'$as_ac_Header'}'`
6500 { echo "$as_me:$LINENO: result: $ac_res" >&5
6501 echo "${ECHO_T}$ac_res" >&6; }
6502 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6503 cat >>confdefs.h <<_ACEOF
6504 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6505 _ACEOF
6509 done
6512 # checks for typedefs
6513 was_it_defined=no
6514 { echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
6515 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6; }
6516 cat >conftest.$ac_ext <<_ACEOF
6517 /* confdefs.h. */
6518 _ACEOF
6519 cat confdefs.h >>conftest.$ac_ext
6520 cat >>conftest.$ac_ext <<_ACEOF
6521 /* end confdefs.h. */
6522 #include <time.h>
6524 _ACEOF
6525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6526 $EGREP "clock_t" >/dev/null 2>&1; then
6527 was_it_defined=yes
6528 else
6531 cat >>confdefs.h <<\_ACEOF
6532 #define clock_t long
6533 _ACEOF
6537 rm -f -r conftest*
6539 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
6540 echo "${ECHO_T}$was_it_defined" >&6; }
6542 # Check whether using makedev requires defining _OSF_SOURCE
6543 { echo "$as_me:$LINENO: checking for makedev" >&5
6544 echo $ECHO_N "checking for makedev... $ECHO_C" >&6; }
6545 cat >conftest.$ac_ext <<_ACEOF
6546 /* confdefs.h. */
6547 _ACEOF
6548 cat confdefs.h >>conftest.$ac_ext
6549 cat >>conftest.$ac_ext <<_ACEOF
6550 /* end confdefs.h. */
6551 #include <sys/types.h>
6553 main ()
6555 makedev(0, 0)
6557 return 0;
6559 _ACEOF
6560 rm -f conftest.$ac_objext conftest$ac_exeext
6561 if { (ac_try="$ac_link"
6562 case "(($ac_try" in
6563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6564 *) ac_try_echo=$ac_try;;
6565 esac
6566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6567 (eval "$ac_link") 2>conftest.er1
6568 ac_status=$?
6569 grep -v '^ *+' conftest.er1 >conftest.err
6570 rm -f conftest.er1
6571 cat conftest.err >&5
6572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6573 (exit $ac_status); } && {
6574 test -z "$ac_c_werror_flag" ||
6575 test ! -s conftest.err
6576 } && test -s conftest$ac_exeext &&
6577 $as_test_x conftest$ac_exeext; then
6578 ac_cv_has_makedev=yes
6579 else
6580 echo "$as_me: failed program was:" >&5
6581 sed 's/^/| /' conftest.$ac_ext >&5
6583 ac_cv_has_makedev=no
6586 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6587 conftest$ac_exeext conftest.$ac_ext
6588 if test "$ac_cv_has_makedev" = "no"; then
6589 # we didn't link, try if _OSF_SOURCE will allow us to link
6590 cat >conftest.$ac_ext <<_ACEOF
6591 /* confdefs.h. */
6592 _ACEOF
6593 cat confdefs.h >>conftest.$ac_ext
6594 cat >>conftest.$ac_ext <<_ACEOF
6595 /* end confdefs.h. */
6597 #define _OSF_SOURCE 1
6598 #include <sys/types.h>
6601 main ()
6603 makedev(0, 0)
6605 return 0;
6607 _ACEOF
6608 rm -f conftest.$ac_objext conftest$ac_exeext
6609 if { (ac_try="$ac_link"
6610 case "(($ac_try" in
6611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6612 *) ac_try_echo=$ac_try;;
6613 esac
6614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6615 (eval "$ac_link") 2>conftest.er1
6616 ac_status=$?
6617 grep -v '^ *+' conftest.er1 >conftest.err
6618 rm -f conftest.er1
6619 cat conftest.err >&5
6620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6621 (exit $ac_status); } && {
6622 test -z "$ac_c_werror_flag" ||
6623 test ! -s conftest.err
6624 } && test -s conftest$ac_exeext &&
6625 $as_test_x conftest$ac_exeext; then
6626 ac_cv_has_makedev=yes
6627 else
6628 echo "$as_me: failed program was:" >&5
6629 sed 's/^/| /' conftest.$ac_ext >&5
6631 ac_cv_has_makedev=no
6634 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6635 conftest$ac_exeext conftest.$ac_ext
6636 if test "$ac_cv_has_makedev" = "yes"; then
6638 cat >>confdefs.h <<\_ACEOF
6639 #define _OSF_SOURCE 1
6640 _ACEOF
6644 { echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
6645 echo "${ECHO_T}$ac_cv_has_makedev" >&6; }
6646 if test "$ac_cv_has_makedev" = "yes"; then
6648 cat >>confdefs.h <<\_ACEOF
6649 #define HAVE_MAKEDEV 1
6650 _ACEOF
6654 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
6655 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
6656 # defined, but the compiler does not support pragma redefine_extname,
6657 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
6658 # structures (such as rlimit64) without declaring them. As a
6659 # work-around, disable LFS on such configurations
6661 use_lfs=yes
6662 { echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
6663 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6; }
6664 cat >conftest.$ac_ext <<_ACEOF
6665 /* confdefs.h. */
6666 _ACEOF
6667 cat confdefs.h >>conftest.$ac_ext
6668 cat >>conftest.$ac_ext <<_ACEOF
6669 /* end confdefs.h. */
6671 #define _LARGEFILE_SOURCE 1
6672 #define _FILE_OFFSET_BITS 64
6673 #include <sys/resource.h>
6676 main ()
6678 struct rlimit foo;
6680 return 0;
6682 _ACEOF
6683 rm -f conftest.$ac_objext
6684 if { (ac_try="$ac_compile"
6685 case "(($ac_try" in
6686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6687 *) ac_try_echo=$ac_try;;
6688 esac
6689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6690 (eval "$ac_compile") 2>conftest.er1
6691 ac_status=$?
6692 grep -v '^ *+' conftest.er1 >conftest.err
6693 rm -f conftest.er1
6694 cat conftest.err >&5
6695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6696 (exit $ac_status); } && {
6697 test -z "$ac_c_werror_flag" ||
6698 test ! -s conftest.err
6699 } && test -s conftest.$ac_objext; then
6700 sol_lfs_bug=no
6701 else
6702 echo "$as_me: failed program was:" >&5
6703 sed 's/^/| /' conftest.$ac_ext >&5
6705 sol_lfs_bug=yes
6708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6709 { echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
6710 echo "${ECHO_T}$sol_lfs_bug" >&6; }
6711 if test "$sol_lfs_bug" = "yes"; then
6712 use_lfs=no
6715 if test "$use_lfs" = "yes"; then
6716 # Two defines needed to enable largefile support on various platforms
6717 # These may affect some typedefs
6719 cat >>confdefs.h <<\_ACEOF
6720 #define _LARGEFILE_SOURCE 1
6721 _ACEOF
6724 cat >>confdefs.h <<\_ACEOF
6725 #define _FILE_OFFSET_BITS 64
6726 _ACEOF
6730 # Add some code to confdefs.h so that the test for off_t works on SCO
6731 cat >> confdefs.h <<\EOF
6732 #if defined(SCO_DS)
6733 #undef _OFF_T
6734 #endif
6737 # Type availability checks
6738 { echo "$as_me:$LINENO: checking for mode_t" >&5
6739 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
6740 if test "${ac_cv_type_mode_t+set}" = set; then
6741 echo $ECHO_N "(cached) $ECHO_C" >&6
6742 else
6743 cat >conftest.$ac_ext <<_ACEOF
6744 /* confdefs.h. */
6745 _ACEOF
6746 cat confdefs.h >>conftest.$ac_ext
6747 cat >>conftest.$ac_ext <<_ACEOF
6748 /* end confdefs.h. */
6749 $ac_includes_default
6750 typedef mode_t ac__type_new_;
6752 main ()
6754 if ((ac__type_new_ *) 0)
6755 return 0;
6756 if (sizeof (ac__type_new_))
6757 return 0;
6759 return 0;
6761 _ACEOF
6762 rm -f conftest.$ac_objext
6763 if { (ac_try="$ac_compile"
6764 case "(($ac_try" in
6765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6766 *) ac_try_echo=$ac_try;;
6767 esac
6768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6769 (eval "$ac_compile") 2>conftest.er1
6770 ac_status=$?
6771 grep -v '^ *+' conftest.er1 >conftest.err
6772 rm -f conftest.er1
6773 cat conftest.err >&5
6774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6775 (exit $ac_status); } && {
6776 test -z "$ac_c_werror_flag" ||
6777 test ! -s conftest.err
6778 } && test -s conftest.$ac_objext; then
6779 ac_cv_type_mode_t=yes
6780 else
6781 echo "$as_me: failed program was:" >&5
6782 sed 's/^/| /' conftest.$ac_ext >&5
6784 ac_cv_type_mode_t=no
6787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6789 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6790 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
6791 if test $ac_cv_type_mode_t = yes; then
6793 else
6795 cat >>confdefs.h <<_ACEOF
6796 #define mode_t int
6797 _ACEOF
6801 { echo "$as_me:$LINENO: checking for off_t" >&5
6802 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
6803 if test "${ac_cv_type_off_t+set}" = set; then
6804 echo $ECHO_N "(cached) $ECHO_C" >&6
6805 else
6806 cat >conftest.$ac_ext <<_ACEOF
6807 /* confdefs.h. */
6808 _ACEOF
6809 cat confdefs.h >>conftest.$ac_ext
6810 cat >>conftest.$ac_ext <<_ACEOF
6811 /* end confdefs.h. */
6812 $ac_includes_default
6813 typedef off_t ac__type_new_;
6815 main ()
6817 if ((ac__type_new_ *) 0)
6818 return 0;
6819 if (sizeof (ac__type_new_))
6820 return 0;
6822 return 0;
6824 _ACEOF
6825 rm -f conftest.$ac_objext
6826 if { (ac_try="$ac_compile"
6827 case "(($ac_try" in
6828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6829 *) ac_try_echo=$ac_try;;
6830 esac
6831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6832 (eval "$ac_compile") 2>conftest.er1
6833 ac_status=$?
6834 grep -v '^ *+' conftest.er1 >conftest.err
6835 rm -f conftest.er1
6836 cat conftest.err >&5
6837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6838 (exit $ac_status); } && {
6839 test -z "$ac_c_werror_flag" ||
6840 test ! -s conftest.err
6841 } && test -s conftest.$ac_objext; then
6842 ac_cv_type_off_t=yes
6843 else
6844 echo "$as_me: failed program was:" >&5
6845 sed 's/^/| /' conftest.$ac_ext >&5
6847 ac_cv_type_off_t=no
6850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6852 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6853 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
6854 if test $ac_cv_type_off_t = yes; then
6856 else
6858 cat >>confdefs.h <<_ACEOF
6859 #define off_t long int
6860 _ACEOF
6864 { echo "$as_me:$LINENO: checking for pid_t" >&5
6865 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
6866 if test "${ac_cv_type_pid_t+set}" = set; then
6867 echo $ECHO_N "(cached) $ECHO_C" >&6
6868 else
6869 cat >conftest.$ac_ext <<_ACEOF
6870 /* confdefs.h. */
6871 _ACEOF
6872 cat confdefs.h >>conftest.$ac_ext
6873 cat >>conftest.$ac_ext <<_ACEOF
6874 /* end confdefs.h. */
6875 $ac_includes_default
6876 typedef pid_t ac__type_new_;
6878 main ()
6880 if ((ac__type_new_ *) 0)
6881 return 0;
6882 if (sizeof (ac__type_new_))
6883 return 0;
6885 return 0;
6887 _ACEOF
6888 rm -f conftest.$ac_objext
6889 if { (ac_try="$ac_compile"
6890 case "(($ac_try" in
6891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6892 *) ac_try_echo=$ac_try;;
6893 esac
6894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6895 (eval "$ac_compile") 2>conftest.er1
6896 ac_status=$?
6897 grep -v '^ *+' conftest.er1 >conftest.err
6898 rm -f conftest.er1
6899 cat conftest.err >&5
6900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6901 (exit $ac_status); } && {
6902 test -z "$ac_c_werror_flag" ||
6903 test ! -s conftest.err
6904 } && test -s conftest.$ac_objext; then
6905 ac_cv_type_pid_t=yes
6906 else
6907 echo "$as_me: failed program was:" >&5
6908 sed 's/^/| /' conftest.$ac_ext >&5
6910 ac_cv_type_pid_t=no
6913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6915 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6916 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
6917 if test $ac_cv_type_pid_t = yes; then
6919 else
6921 cat >>confdefs.h <<_ACEOF
6922 #define pid_t int
6923 _ACEOF
6927 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6928 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
6929 if test "${ac_cv_type_signal+set}" = set; then
6930 echo $ECHO_N "(cached) $ECHO_C" >&6
6931 else
6932 cat >conftest.$ac_ext <<_ACEOF
6933 /* confdefs.h. */
6934 _ACEOF
6935 cat confdefs.h >>conftest.$ac_ext
6936 cat >>conftest.$ac_ext <<_ACEOF
6937 /* end confdefs.h. */
6938 #include <sys/types.h>
6939 #include <signal.h>
6942 main ()
6944 return *(signal (0, 0)) (0) == 1;
6946 return 0;
6948 _ACEOF
6949 rm -f conftest.$ac_objext
6950 if { (ac_try="$ac_compile"
6951 case "(($ac_try" in
6952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6953 *) ac_try_echo=$ac_try;;
6954 esac
6955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6956 (eval "$ac_compile") 2>conftest.er1
6957 ac_status=$?
6958 grep -v '^ *+' conftest.er1 >conftest.err
6959 rm -f conftest.er1
6960 cat conftest.err >&5
6961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6962 (exit $ac_status); } && {
6963 test -z "$ac_c_werror_flag" ||
6964 test ! -s conftest.err
6965 } && test -s conftest.$ac_objext; then
6966 ac_cv_type_signal=int
6967 else
6968 echo "$as_me: failed program was:" >&5
6969 sed 's/^/| /' conftest.$ac_ext >&5
6971 ac_cv_type_signal=void
6974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6976 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6977 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
6979 cat >>confdefs.h <<_ACEOF
6980 #define RETSIGTYPE $ac_cv_type_signal
6981 _ACEOF
6984 { echo "$as_me:$LINENO: checking for size_t" >&5
6985 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
6986 if test "${ac_cv_type_size_t+set}" = set; then
6987 echo $ECHO_N "(cached) $ECHO_C" >&6
6988 else
6989 cat >conftest.$ac_ext <<_ACEOF
6990 /* confdefs.h. */
6991 _ACEOF
6992 cat confdefs.h >>conftest.$ac_ext
6993 cat >>conftest.$ac_ext <<_ACEOF
6994 /* end confdefs.h. */
6995 $ac_includes_default
6996 typedef size_t ac__type_new_;
6998 main ()
7000 if ((ac__type_new_ *) 0)
7001 return 0;
7002 if (sizeof (ac__type_new_))
7003 return 0;
7005 return 0;
7007 _ACEOF
7008 rm -f conftest.$ac_objext
7009 if { (ac_try="$ac_compile"
7010 case "(($ac_try" in
7011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7012 *) ac_try_echo=$ac_try;;
7013 esac
7014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7015 (eval "$ac_compile") 2>conftest.er1
7016 ac_status=$?
7017 grep -v '^ *+' conftest.er1 >conftest.err
7018 rm -f conftest.er1
7019 cat conftest.err >&5
7020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021 (exit $ac_status); } && {
7022 test -z "$ac_c_werror_flag" ||
7023 test ! -s conftest.err
7024 } && test -s conftest.$ac_objext; then
7025 ac_cv_type_size_t=yes
7026 else
7027 echo "$as_me: failed program was:" >&5
7028 sed 's/^/| /' conftest.$ac_ext >&5
7030 ac_cv_type_size_t=no
7033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7035 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7036 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
7037 if test $ac_cv_type_size_t = yes; then
7039 else
7041 cat >>confdefs.h <<_ACEOF
7042 #define size_t unsigned int
7043 _ACEOF
7047 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7048 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
7049 if test "${ac_cv_type_uid_t+set}" = set; then
7050 echo $ECHO_N "(cached) $ECHO_C" >&6
7051 else
7052 cat >conftest.$ac_ext <<_ACEOF
7053 /* confdefs.h. */
7054 _ACEOF
7055 cat confdefs.h >>conftest.$ac_ext
7056 cat >>conftest.$ac_ext <<_ACEOF
7057 /* end confdefs.h. */
7058 #include <sys/types.h>
7060 _ACEOF
7061 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7062 $EGREP "uid_t" >/dev/null 2>&1; then
7063 ac_cv_type_uid_t=yes
7064 else
7065 ac_cv_type_uid_t=no
7067 rm -f -r conftest*
7070 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7071 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
7072 if test $ac_cv_type_uid_t = no; then
7074 cat >>confdefs.h <<\_ACEOF
7075 #define uid_t int
7076 _ACEOF
7079 cat >>confdefs.h <<\_ACEOF
7080 #define gid_t int
7081 _ACEOF
7086 { echo "$as_me:$LINENO: checking for uint32_t" >&5
7087 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
7088 if test "${ac_cv_c_uint32_t+set}" = set; then
7089 echo $ECHO_N "(cached) $ECHO_C" >&6
7090 else
7091 ac_cv_c_uint32_t=no
7092 for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
7093 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7094 cat >conftest.$ac_ext <<_ACEOF
7095 /* confdefs.h. */
7096 _ACEOF
7097 cat confdefs.h >>conftest.$ac_ext
7098 cat >>conftest.$ac_ext <<_ACEOF
7099 /* end confdefs.h. */
7100 $ac_includes_default
7102 main ()
7104 static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
7105 test_array [0] = 0
7108 return 0;
7110 _ACEOF
7111 rm -f conftest.$ac_objext
7112 if { (ac_try="$ac_compile"
7113 case "(($ac_try" in
7114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7115 *) ac_try_echo=$ac_try;;
7116 esac
7117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7118 (eval "$ac_compile") 2>conftest.er1
7119 ac_status=$?
7120 grep -v '^ *+' conftest.er1 >conftest.err
7121 rm -f conftest.er1
7122 cat conftest.err >&5
7123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124 (exit $ac_status); } && {
7125 test -z "$ac_c_werror_flag" ||
7126 test ! -s conftest.err
7127 } && test -s conftest.$ac_objext; then
7128 case $ac_type in
7129 uint32_t) ac_cv_c_uint32_t=yes ;;
7130 *) ac_cv_c_uint32_t=$ac_type ;;
7131 esac
7133 else
7134 echo "$as_me: failed program was:" >&5
7135 sed 's/^/| /' conftest.$ac_ext >&5
7140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7141 test "$ac_cv_c_uint32_t" != no && break
7142 done
7144 { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
7145 echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; }
7146 case $ac_cv_c_uint32_t in #(
7147 no|yes) ;; #(
7150 cat >>confdefs.h <<\_ACEOF
7151 #define _UINT32_T 1
7152 _ACEOF
7155 cat >>confdefs.h <<_ACEOF
7156 #define uint32_t $ac_cv_c_uint32_t
7157 _ACEOF
7159 esac
7162 { echo "$as_me:$LINENO: checking for uint64_t" >&5
7163 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
7164 if test "${ac_cv_c_uint64_t+set}" = set; then
7165 echo $ECHO_N "(cached) $ECHO_C" >&6
7166 else
7167 ac_cv_c_uint64_t=no
7168 for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \
7169 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7170 cat >conftest.$ac_ext <<_ACEOF
7171 /* confdefs.h. */
7172 _ACEOF
7173 cat confdefs.h >>conftest.$ac_ext
7174 cat >>conftest.$ac_ext <<_ACEOF
7175 /* end confdefs.h. */
7176 $ac_includes_default
7178 main ()
7180 static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
7181 test_array [0] = 0
7184 return 0;
7186 _ACEOF
7187 rm -f conftest.$ac_objext
7188 if { (ac_try="$ac_compile"
7189 case "(($ac_try" in
7190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7191 *) ac_try_echo=$ac_try;;
7192 esac
7193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7194 (eval "$ac_compile") 2>conftest.er1
7195 ac_status=$?
7196 grep -v '^ *+' conftest.er1 >conftest.err
7197 rm -f conftest.er1
7198 cat conftest.err >&5
7199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7200 (exit $ac_status); } && {
7201 test -z "$ac_c_werror_flag" ||
7202 test ! -s conftest.err
7203 } && test -s conftest.$ac_objext; then
7204 case $ac_type in
7205 uint64_t) ac_cv_c_uint64_t=yes ;;
7206 *) ac_cv_c_uint64_t=$ac_type ;;
7207 esac
7209 else
7210 echo "$as_me: failed program was:" >&5
7211 sed 's/^/| /' conftest.$ac_ext >&5
7216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7217 test "$ac_cv_c_uint64_t" != no && break
7218 done
7220 { echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
7221 echo "${ECHO_T}$ac_cv_c_uint64_t" >&6; }
7222 case $ac_cv_c_uint64_t in #(
7223 no|yes) ;; #(
7226 cat >>confdefs.h <<\_ACEOF
7227 #define _UINT64_T 1
7228 _ACEOF
7231 cat >>confdefs.h <<_ACEOF
7232 #define uint64_t $ac_cv_c_uint64_t
7233 _ACEOF
7235 esac
7238 { echo "$as_me:$LINENO: checking for int32_t" >&5
7239 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
7240 if test "${ac_cv_c_int32_t+set}" = set; then
7241 echo $ECHO_N "(cached) $ECHO_C" >&6
7242 else
7243 ac_cv_c_int32_t=no
7244 for ac_type in 'int32_t' 'int' 'long int' \
7245 'long long int' 'short int' 'signed char'; do
7246 cat >conftest.$ac_ext <<_ACEOF
7247 /* confdefs.h. */
7248 _ACEOF
7249 cat confdefs.h >>conftest.$ac_ext
7250 cat >>conftest.$ac_ext <<_ACEOF
7251 /* end confdefs.h. */
7252 $ac_includes_default
7254 main ()
7256 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
7257 test_array [0] = 0
7260 return 0;
7262 _ACEOF
7263 rm -f conftest.$ac_objext
7264 if { (ac_try="$ac_compile"
7265 case "(($ac_try" in
7266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7267 *) ac_try_echo=$ac_try;;
7268 esac
7269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7270 (eval "$ac_compile") 2>conftest.er1
7271 ac_status=$?
7272 grep -v '^ *+' conftest.er1 >conftest.err
7273 rm -f conftest.er1
7274 cat conftest.err >&5
7275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7276 (exit $ac_status); } && {
7277 test -z "$ac_c_werror_flag" ||
7278 test ! -s conftest.err
7279 } && test -s conftest.$ac_objext; then
7280 cat >conftest.$ac_ext <<_ACEOF
7281 /* confdefs.h. */
7282 _ACEOF
7283 cat confdefs.h >>conftest.$ac_ext
7284 cat >>conftest.$ac_ext <<_ACEOF
7285 /* end confdefs.h. */
7286 $ac_includes_default
7288 main ()
7290 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
7291 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
7292 test_array [0] = 0
7295 return 0;
7297 _ACEOF
7298 rm -f conftest.$ac_objext
7299 if { (ac_try="$ac_compile"
7300 case "(($ac_try" in
7301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7302 *) ac_try_echo=$ac_try;;
7303 esac
7304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7305 (eval "$ac_compile") 2>conftest.er1
7306 ac_status=$?
7307 grep -v '^ *+' conftest.er1 >conftest.err
7308 rm -f conftest.er1
7309 cat conftest.err >&5
7310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7311 (exit $ac_status); } && {
7312 test -z "$ac_c_werror_flag" ||
7313 test ! -s conftest.err
7314 } && test -s conftest.$ac_objext; then
7316 else
7317 echo "$as_me: failed program was:" >&5
7318 sed 's/^/| /' conftest.$ac_ext >&5
7320 case $ac_type in
7321 int32_t) ac_cv_c_int32_t=yes ;;
7322 *) ac_cv_c_int32_t=$ac_type ;;
7323 esac
7327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7328 else
7329 echo "$as_me: failed program was:" >&5
7330 sed 's/^/| /' conftest.$ac_ext >&5
7335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7336 test "$ac_cv_c_int32_t" != no && break
7337 done
7339 { echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
7340 echo "${ECHO_T}$ac_cv_c_int32_t" >&6; }
7341 case $ac_cv_c_int32_t in #(
7342 no|yes) ;; #(
7345 cat >>confdefs.h <<_ACEOF
7346 #define int32_t $ac_cv_c_int32_t
7347 _ACEOF
7349 esac
7352 { echo "$as_me:$LINENO: checking for int64_t" >&5
7353 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
7354 if test "${ac_cv_c_int64_t+set}" = set; then
7355 echo $ECHO_N "(cached) $ECHO_C" >&6
7356 else
7357 ac_cv_c_int64_t=no
7358 for ac_type in 'int64_t' 'int' 'long int' \
7359 'long long int' 'short int' 'signed char'; do
7360 cat >conftest.$ac_ext <<_ACEOF
7361 /* confdefs.h. */
7362 _ACEOF
7363 cat confdefs.h >>conftest.$ac_ext
7364 cat >>conftest.$ac_ext <<_ACEOF
7365 /* end confdefs.h. */
7366 $ac_includes_default
7368 main ()
7370 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
7371 test_array [0] = 0
7374 return 0;
7376 _ACEOF
7377 rm -f conftest.$ac_objext
7378 if { (ac_try="$ac_compile"
7379 case "(($ac_try" in
7380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7381 *) ac_try_echo=$ac_try;;
7382 esac
7383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7384 (eval "$ac_compile") 2>conftest.er1
7385 ac_status=$?
7386 grep -v '^ *+' conftest.er1 >conftest.err
7387 rm -f conftest.er1
7388 cat conftest.err >&5
7389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7390 (exit $ac_status); } && {
7391 test -z "$ac_c_werror_flag" ||
7392 test ! -s conftest.err
7393 } && test -s conftest.$ac_objext; then
7394 cat >conftest.$ac_ext <<_ACEOF
7395 /* confdefs.h. */
7396 _ACEOF
7397 cat confdefs.h >>conftest.$ac_ext
7398 cat >>conftest.$ac_ext <<_ACEOF
7399 /* end confdefs.h. */
7400 $ac_includes_default
7402 main ()
7404 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
7405 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
7406 test_array [0] = 0
7409 return 0;
7411 _ACEOF
7412 rm -f conftest.$ac_objext
7413 if { (ac_try="$ac_compile"
7414 case "(($ac_try" in
7415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7416 *) ac_try_echo=$ac_try;;
7417 esac
7418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7419 (eval "$ac_compile") 2>conftest.er1
7420 ac_status=$?
7421 grep -v '^ *+' conftest.er1 >conftest.err
7422 rm -f conftest.er1
7423 cat conftest.err >&5
7424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7425 (exit $ac_status); } && {
7426 test -z "$ac_c_werror_flag" ||
7427 test ! -s conftest.err
7428 } && test -s conftest.$ac_objext; then
7430 else
7431 echo "$as_me: failed program was:" >&5
7432 sed 's/^/| /' conftest.$ac_ext >&5
7434 case $ac_type in
7435 int64_t) ac_cv_c_int64_t=yes ;;
7436 *) ac_cv_c_int64_t=$ac_type ;;
7437 esac
7441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7442 else
7443 echo "$as_me: failed program was:" >&5
7444 sed 's/^/| /' conftest.$ac_ext >&5
7449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7450 test "$ac_cv_c_int64_t" != no && break
7451 done
7453 { echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
7454 echo "${ECHO_T}$ac_cv_c_int64_t" >&6; }
7455 case $ac_cv_c_int64_t in #(
7456 no|yes) ;; #(
7459 cat >>confdefs.h <<_ACEOF
7460 #define int64_t $ac_cv_c_int64_t
7461 _ACEOF
7463 esac
7465 { echo "$as_me:$LINENO: checking for ssize_t" >&5
7466 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
7467 if test "${ac_cv_type_ssize_t+set}" = set; then
7468 echo $ECHO_N "(cached) $ECHO_C" >&6
7469 else
7470 cat >conftest.$ac_ext <<_ACEOF
7471 /* confdefs.h. */
7472 _ACEOF
7473 cat confdefs.h >>conftest.$ac_ext
7474 cat >>conftest.$ac_ext <<_ACEOF
7475 /* end confdefs.h. */
7476 $ac_includes_default
7477 typedef ssize_t ac__type_new_;
7479 main ()
7481 if ((ac__type_new_ *) 0)
7482 return 0;
7483 if (sizeof (ac__type_new_))
7484 return 0;
7486 return 0;
7488 _ACEOF
7489 rm -f conftest.$ac_objext
7490 if { (ac_try="$ac_compile"
7491 case "(($ac_try" in
7492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7493 *) ac_try_echo=$ac_try;;
7494 esac
7495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7496 (eval "$ac_compile") 2>conftest.er1
7497 ac_status=$?
7498 grep -v '^ *+' conftest.er1 >conftest.err
7499 rm -f conftest.er1
7500 cat conftest.err >&5
7501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7502 (exit $ac_status); } && {
7503 test -z "$ac_c_werror_flag" ||
7504 test ! -s conftest.err
7505 } && test -s conftest.$ac_objext; then
7506 ac_cv_type_ssize_t=yes
7507 else
7508 echo "$as_me: failed program was:" >&5
7509 sed 's/^/| /' conftest.$ac_ext >&5
7511 ac_cv_type_ssize_t=no
7514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7516 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
7517 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
7518 if test $ac_cv_type_ssize_t = yes; then
7520 cat >>confdefs.h <<\_ACEOF
7521 #define HAVE_SSIZE_T 1
7522 _ACEOF
7527 # Sizes of various common basic types
7528 # ANSI C requires sizeof(char) == 1, so no need to check it
7529 { echo "$as_me:$LINENO: checking for int" >&5
7530 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
7531 if test "${ac_cv_type_int+set}" = set; then
7532 echo $ECHO_N "(cached) $ECHO_C" >&6
7533 else
7534 cat >conftest.$ac_ext <<_ACEOF
7535 /* confdefs.h. */
7536 _ACEOF
7537 cat confdefs.h >>conftest.$ac_ext
7538 cat >>conftest.$ac_ext <<_ACEOF
7539 /* end confdefs.h. */
7540 $ac_includes_default
7541 typedef int ac__type_new_;
7543 main ()
7545 if ((ac__type_new_ *) 0)
7546 return 0;
7547 if (sizeof (ac__type_new_))
7548 return 0;
7550 return 0;
7552 _ACEOF
7553 rm -f conftest.$ac_objext
7554 if { (ac_try="$ac_compile"
7555 case "(($ac_try" in
7556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7557 *) ac_try_echo=$ac_try;;
7558 esac
7559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7560 (eval "$ac_compile") 2>conftest.er1
7561 ac_status=$?
7562 grep -v '^ *+' conftest.er1 >conftest.err
7563 rm -f conftest.er1
7564 cat conftest.err >&5
7565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7566 (exit $ac_status); } && {
7567 test -z "$ac_c_werror_flag" ||
7568 test ! -s conftest.err
7569 } && test -s conftest.$ac_objext; then
7570 ac_cv_type_int=yes
7571 else
7572 echo "$as_me: failed program was:" >&5
7573 sed 's/^/| /' conftest.$ac_ext >&5
7575 ac_cv_type_int=no
7578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7580 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
7581 echo "${ECHO_T}$ac_cv_type_int" >&6; }
7583 # The cast to long int works around a bug in the HP C Compiler
7584 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7585 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7586 # This bug is HP SR number 8606223364.
7587 { echo "$as_me:$LINENO: checking size of int" >&5
7588 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
7589 if test "${ac_cv_sizeof_int+set}" = set; then
7590 echo $ECHO_N "(cached) $ECHO_C" >&6
7591 else
7592 if test "$cross_compiling" = yes; then
7593 # Depending upon the size, compute the lo and hi bounds.
7594 cat >conftest.$ac_ext <<_ACEOF
7595 /* confdefs.h. */
7596 _ACEOF
7597 cat confdefs.h >>conftest.$ac_ext
7598 cat >>conftest.$ac_ext <<_ACEOF
7599 /* end confdefs.h. */
7600 $ac_includes_default
7601 typedef int ac__type_sizeof_;
7603 main ()
7605 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7606 test_array [0] = 0
7609 return 0;
7611 _ACEOF
7612 rm -f conftest.$ac_objext
7613 if { (ac_try="$ac_compile"
7614 case "(($ac_try" in
7615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7616 *) ac_try_echo=$ac_try;;
7617 esac
7618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7619 (eval "$ac_compile") 2>conftest.er1
7620 ac_status=$?
7621 grep -v '^ *+' conftest.er1 >conftest.err
7622 rm -f conftest.er1
7623 cat conftest.err >&5
7624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7625 (exit $ac_status); } && {
7626 test -z "$ac_c_werror_flag" ||
7627 test ! -s conftest.err
7628 } && test -s conftest.$ac_objext; then
7629 ac_lo=0 ac_mid=0
7630 while :; do
7631 cat >conftest.$ac_ext <<_ACEOF
7632 /* confdefs.h. */
7633 _ACEOF
7634 cat confdefs.h >>conftest.$ac_ext
7635 cat >>conftest.$ac_ext <<_ACEOF
7636 /* end confdefs.h. */
7637 $ac_includes_default
7638 typedef int ac__type_sizeof_;
7640 main ()
7642 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7643 test_array [0] = 0
7646 return 0;
7648 _ACEOF
7649 rm -f conftest.$ac_objext
7650 if { (ac_try="$ac_compile"
7651 case "(($ac_try" in
7652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7653 *) ac_try_echo=$ac_try;;
7654 esac
7655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7656 (eval "$ac_compile") 2>conftest.er1
7657 ac_status=$?
7658 grep -v '^ *+' conftest.er1 >conftest.err
7659 rm -f conftest.er1
7660 cat conftest.err >&5
7661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7662 (exit $ac_status); } && {
7663 test -z "$ac_c_werror_flag" ||
7664 test ! -s conftest.err
7665 } && test -s conftest.$ac_objext; then
7666 ac_hi=$ac_mid; break
7667 else
7668 echo "$as_me: failed program was:" >&5
7669 sed 's/^/| /' conftest.$ac_ext >&5
7671 ac_lo=`expr $ac_mid + 1`
7672 if test $ac_lo -le $ac_mid; then
7673 ac_lo= ac_hi=
7674 break
7676 ac_mid=`expr 2 '*' $ac_mid + 1`
7679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7680 done
7681 else
7682 echo "$as_me: failed program was:" >&5
7683 sed 's/^/| /' conftest.$ac_ext >&5
7685 cat >conftest.$ac_ext <<_ACEOF
7686 /* confdefs.h. */
7687 _ACEOF
7688 cat confdefs.h >>conftest.$ac_ext
7689 cat >>conftest.$ac_ext <<_ACEOF
7690 /* end confdefs.h. */
7691 $ac_includes_default
7692 typedef int ac__type_sizeof_;
7694 main ()
7696 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7697 test_array [0] = 0
7700 return 0;
7702 _ACEOF
7703 rm -f conftest.$ac_objext
7704 if { (ac_try="$ac_compile"
7705 case "(($ac_try" in
7706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7707 *) ac_try_echo=$ac_try;;
7708 esac
7709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7710 (eval "$ac_compile") 2>conftest.er1
7711 ac_status=$?
7712 grep -v '^ *+' conftest.er1 >conftest.err
7713 rm -f conftest.er1
7714 cat conftest.err >&5
7715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7716 (exit $ac_status); } && {
7717 test -z "$ac_c_werror_flag" ||
7718 test ! -s conftest.err
7719 } && test -s conftest.$ac_objext; then
7720 ac_hi=-1 ac_mid=-1
7721 while :; do
7722 cat >conftest.$ac_ext <<_ACEOF
7723 /* confdefs.h. */
7724 _ACEOF
7725 cat confdefs.h >>conftest.$ac_ext
7726 cat >>conftest.$ac_ext <<_ACEOF
7727 /* end confdefs.h. */
7728 $ac_includes_default
7729 typedef int ac__type_sizeof_;
7731 main ()
7733 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7734 test_array [0] = 0
7737 return 0;
7739 _ACEOF
7740 rm -f conftest.$ac_objext
7741 if { (ac_try="$ac_compile"
7742 case "(($ac_try" in
7743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7744 *) ac_try_echo=$ac_try;;
7745 esac
7746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7747 (eval "$ac_compile") 2>conftest.er1
7748 ac_status=$?
7749 grep -v '^ *+' conftest.er1 >conftest.err
7750 rm -f conftest.er1
7751 cat conftest.err >&5
7752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7753 (exit $ac_status); } && {
7754 test -z "$ac_c_werror_flag" ||
7755 test ! -s conftest.err
7756 } && test -s conftest.$ac_objext; then
7757 ac_lo=$ac_mid; break
7758 else
7759 echo "$as_me: failed program was:" >&5
7760 sed 's/^/| /' conftest.$ac_ext >&5
7762 ac_hi=`expr '(' $ac_mid ')' - 1`
7763 if test $ac_mid -le $ac_hi; then
7764 ac_lo= ac_hi=
7765 break
7767 ac_mid=`expr 2 '*' $ac_mid`
7770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7771 done
7772 else
7773 echo "$as_me: failed program was:" >&5
7774 sed 's/^/| /' conftest.$ac_ext >&5
7776 ac_lo= ac_hi=
7779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7783 # Binary search between lo and hi bounds.
7784 while test "x$ac_lo" != "x$ac_hi"; do
7785 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7786 cat >conftest.$ac_ext <<_ACEOF
7787 /* confdefs.h. */
7788 _ACEOF
7789 cat confdefs.h >>conftest.$ac_ext
7790 cat >>conftest.$ac_ext <<_ACEOF
7791 /* end confdefs.h. */
7792 $ac_includes_default
7793 typedef int ac__type_sizeof_;
7795 main ()
7797 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7798 test_array [0] = 0
7801 return 0;
7803 _ACEOF
7804 rm -f conftest.$ac_objext
7805 if { (ac_try="$ac_compile"
7806 case "(($ac_try" in
7807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7808 *) ac_try_echo=$ac_try;;
7809 esac
7810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7811 (eval "$ac_compile") 2>conftest.er1
7812 ac_status=$?
7813 grep -v '^ *+' conftest.er1 >conftest.err
7814 rm -f conftest.er1
7815 cat conftest.err >&5
7816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7817 (exit $ac_status); } && {
7818 test -z "$ac_c_werror_flag" ||
7819 test ! -s conftest.err
7820 } && test -s conftest.$ac_objext; then
7821 ac_hi=$ac_mid
7822 else
7823 echo "$as_me: failed program was:" >&5
7824 sed 's/^/| /' conftest.$ac_ext >&5
7826 ac_lo=`expr '(' $ac_mid ')' + 1`
7829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7830 done
7831 case $ac_lo in
7832 ?*) ac_cv_sizeof_int=$ac_lo;;
7833 '') if test "$ac_cv_type_int" = yes; then
7834 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7835 See \`config.log' for more details." >&5
7836 echo "$as_me: error: cannot compute sizeof (int)
7837 See \`config.log' for more details." >&2;}
7838 { (exit 77); exit 77; }; }
7839 else
7840 ac_cv_sizeof_int=0
7841 fi ;;
7842 esac
7843 else
7844 cat >conftest.$ac_ext <<_ACEOF
7845 /* confdefs.h. */
7846 _ACEOF
7847 cat confdefs.h >>conftest.$ac_ext
7848 cat >>conftest.$ac_ext <<_ACEOF
7849 /* end confdefs.h. */
7850 $ac_includes_default
7851 typedef int ac__type_sizeof_;
7852 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7853 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7854 #include <stdio.h>
7855 #include <stdlib.h>
7857 main ()
7860 FILE *f = fopen ("conftest.val", "w");
7861 if (! f)
7862 return 1;
7863 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7865 long int i = longval ();
7866 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7867 return 1;
7868 fprintf (f, "%ld\n", i);
7870 else
7872 unsigned long int i = ulongval ();
7873 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7874 return 1;
7875 fprintf (f, "%lu\n", i);
7877 return ferror (f) || fclose (f) != 0;
7880 return 0;
7882 _ACEOF
7883 rm -f conftest$ac_exeext
7884 if { (ac_try="$ac_link"
7885 case "(($ac_try" in
7886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7887 *) ac_try_echo=$ac_try;;
7888 esac
7889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7890 (eval "$ac_link") 2>&5
7891 ac_status=$?
7892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7893 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7894 { (case "(($ac_try" in
7895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7896 *) ac_try_echo=$ac_try;;
7897 esac
7898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7899 (eval "$ac_try") 2>&5
7900 ac_status=$?
7901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7902 (exit $ac_status); }; }; then
7903 ac_cv_sizeof_int=`cat conftest.val`
7904 else
7905 echo "$as_me: program exited with status $ac_status" >&5
7906 echo "$as_me: failed program was:" >&5
7907 sed 's/^/| /' conftest.$ac_ext >&5
7909 ( exit $ac_status )
7910 if test "$ac_cv_type_int" = yes; then
7911 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7912 See \`config.log' for more details." >&5
7913 echo "$as_me: error: cannot compute sizeof (int)
7914 See \`config.log' for more details." >&2;}
7915 { (exit 77); exit 77; }; }
7916 else
7917 ac_cv_sizeof_int=0
7920 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7922 rm -f conftest.val
7924 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
7925 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
7929 cat >>confdefs.h <<_ACEOF
7930 #define SIZEOF_INT $ac_cv_sizeof_int
7931 _ACEOF
7934 { echo "$as_me:$LINENO: checking for long" >&5
7935 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
7936 if test "${ac_cv_type_long+set}" = set; then
7937 echo $ECHO_N "(cached) $ECHO_C" >&6
7938 else
7939 cat >conftest.$ac_ext <<_ACEOF
7940 /* confdefs.h. */
7941 _ACEOF
7942 cat confdefs.h >>conftest.$ac_ext
7943 cat >>conftest.$ac_ext <<_ACEOF
7944 /* end confdefs.h. */
7945 $ac_includes_default
7946 typedef long ac__type_new_;
7948 main ()
7950 if ((ac__type_new_ *) 0)
7951 return 0;
7952 if (sizeof (ac__type_new_))
7953 return 0;
7955 return 0;
7957 _ACEOF
7958 rm -f conftest.$ac_objext
7959 if { (ac_try="$ac_compile"
7960 case "(($ac_try" in
7961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7962 *) ac_try_echo=$ac_try;;
7963 esac
7964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7965 (eval "$ac_compile") 2>conftest.er1
7966 ac_status=$?
7967 grep -v '^ *+' conftest.er1 >conftest.err
7968 rm -f conftest.er1
7969 cat conftest.err >&5
7970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7971 (exit $ac_status); } && {
7972 test -z "$ac_c_werror_flag" ||
7973 test ! -s conftest.err
7974 } && test -s conftest.$ac_objext; then
7975 ac_cv_type_long=yes
7976 else
7977 echo "$as_me: failed program was:" >&5
7978 sed 's/^/| /' conftest.$ac_ext >&5
7980 ac_cv_type_long=no
7983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7985 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
7986 echo "${ECHO_T}$ac_cv_type_long" >&6; }
7988 # The cast to long int works around a bug in the HP C Compiler
7989 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7990 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7991 # This bug is HP SR number 8606223364.
7992 { echo "$as_me:$LINENO: checking size of long" >&5
7993 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
7994 if test "${ac_cv_sizeof_long+set}" = set; then
7995 echo $ECHO_N "(cached) $ECHO_C" >&6
7996 else
7997 if test "$cross_compiling" = yes; then
7998 # Depending upon the size, compute the lo and hi bounds.
7999 cat >conftest.$ac_ext <<_ACEOF
8000 /* confdefs.h. */
8001 _ACEOF
8002 cat confdefs.h >>conftest.$ac_ext
8003 cat >>conftest.$ac_ext <<_ACEOF
8004 /* end confdefs.h. */
8005 $ac_includes_default
8006 typedef long ac__type_sizeof_;
8008 main ()
8010 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8011 test_array [0] = 0
8014 return 0;
8016 _ACEOF
8017 rm -f conftest.$ac_objext
8018 if { (ac_try="$ac_compile"
8019 case "(($ac_try" in
8020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8021 *) ac_try_echo=$ac_try;;
8022 esac
8023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8024 (eval "$ac_compile") 2>conftest.er1
8025 ac_status=$?
8026 grep -v '^ *+' conftest.er1 >conftest.err
8027 rm -f conftest.er1
8028 cat conftest.err >&5
8029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8030 (exit $ac_status); } && {
8031 test -z "$ac_c_werror_flag" ||
8032 test ! -s conftest.err
8033 } && test -s conftest.$ac_objext; then
8034 ac_lo=0 ac_mid=0
8035 while :; do
8036 cat >conftest.$ac_ext <<_ACEOF
8037 /* confdefs.h. */
8038 _ACEOF
8039 cat confdefs.h >>conftest.$ac_ext
8040 cat >>conftest.$ac_ext <<_ACEOF
8041 /* end confdefs.h. */
8042 $ac_includes_default
8043 typedef long ac__type_sizeof_;
8045 main ()
8047 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8048 test_array [0] = 0
8051 return 0;
8053 _ACEOF
8054 rm -f conftest.$ac_objext
8055 if { (ac_try="$ac_compile"
8056 case "(($ac_try" in
8057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8058 *) ac_try_echo=$ac_try;;
8059 esac
8060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8061 (eval "$ac_compile") 2>conftest.er1
8062 ac_status=$?
8063 grep -v '^ *+' conftest.er1 >conftest.err
8064 rm -f conftest.er1
8065 cat conftest.err >&5
8066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067 (exit $ac_status); } && {
8068 test -z "$ac_c_werror_flag" ||
8069 test ! -s conftest.err
8070 } && test -s conftest.$ac_objext; then
8071 ac_hi=$ac_mid; break
8072 else
8073 echo "$as_me: failed program was:" >&5
8074 sed 's/^/| /' conftest.$ac_ext >&5
8076 ac_lo=`expr $ac_mid + 1`
8077 if test $ac_lo -le $ac_mid; then
8078 ac_lo= ac_hi=
8079 break
8081 ac_mid=`expr 2 '*' $ac_mid + 1`
8084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8085 done
8086 else
8087 echo "$as_me: failed program was:" >&5
8088 sed 's/^/| /' conftest.$ac_ext >&5
8090 cat >conftest.$ac_ext <<_ACEOF
8091 /* confdefs.h. */
8092 _ACEOF
8093 cat confdefs.h >>conftest.$ac_ext
8094 cat >>conftest.$ac_ext <<_ACEOF
8095 /* end confdefs.h. */
8096 $ac_includes_default
8097 typedef long ac__type_sizeof_;
8099 main ()
8101 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8102 test_array [0] = 0
8105 return 0;
8107 _ACEOF
8108 rm -f conftest.$ac_objext
8109 if { (ac_try="$ac_compile"
8110 case "(($ac_try" in
8111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8112 *) ac_try_echo=$ac_try;;
8113 esac
8114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8115 (eval "$ac_compile") 2>conftest.er1
8116 ac_status=$?
8117 grep -v '^ *+' conftest.er1 >conftest.err
8118 rm -f conftest.er1
8119 cat conftest.err >&5
8120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121 (exit $ac_status); } && {
8122 test -z "$ac_c_werror_flag" ||
8123 test ! -s conftest.err
8124 } && test -s conftest.$ac_objext; then
8125 ac_hi=-1 ac_mid=-1
8126 while :; do
8127 cat >conftest.$ac_ext <<_ACEOF
8128 /* confdefs.h. */
8129 _ACEOF
8130 cat confdefs.h >>conftest.$ac_ext
8131 cat >>conftest.$ac_ext <<_ACEOF
8132 /* end confdefs.h. */
8133 $ac_includes_default
8134 typedef long ac__type_sizeof_;
8136 main ()
8138 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8139 test_array [0] = 0
8142 return 0;
8144 _ACEOF
8145 rm -f conftest.$ac_objext
8146 if { (ac_try="$ac_compile"
8147 case "(($ac_try" in
8148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8149 *) ac_try_echo=$ac_try;;
8150 esac
8151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8152 (eval "$ac_compile") 2>conftest.er1
8153 ac_status=$?
8154 grep -v '^ *+' conftest.er1 >conftest.err
8155 rm -f conftest.er1
8156 cat conftest.err >&5
8157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8158 (exit $ac_status); } && {
8159 test -z "$ac_c_werror_flag" ||
8160 test ! -s conftest.err
8161 } && test -s conftest.$ac_objext; then
8162 ac_lo=$ac_mid; break
8163 else
8164 echo "$as_me: failed program was:" >&5
8165 sed 's/^/| /' conftest.$ac_ext >&5
8167 ac_hi=`expr '(' $ac_mid ')' - 1`
8168 if test $ac_mid -le $ac_hi; then
8169 ac_lo= ac_hi=
8170 break
8172 ac_mid=`expr 2 '*' $ac_mid`
8175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8176 done
8177 else
8178 echo "$as_me: failed program was:" >&5
8179 sed 's/^/| /' conftest.$ac_ext >&5
8181 ac_lo= ac_hi=
8184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8188 # Binary search between lo and hi bounds.
8189 while test "x$ac_lo" != "x$ac_hi"; do
8190 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8191 cat >conftest.$ac_ext <<_ACEOF
8192 /* confdefs.h. */
8193 _ACEOF
8194 cat confdefs.h >>conftest.$ac_ext
8195 cat >>conftest.$ac_ext <<_ACEOF
8196 /* end confdefs.h. */
8197 $ac_includes_default
8198 typedef long ac__type_sizeof_;
8200 main ()
8202 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8203 test_array [0] = 0
8206 return 0;
8208 _ACEOF
8209 rm -f conftest.$ac_objext
8210 if { (ac_try="$ac_compile"
8211 case "(($ac_try" in
8212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8213 *) ac_try_echo=$ac_try;;
8214 esac
8215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8216 (eval "$ac_compile") 2>conftest.er1
8217 ac_status=$?
8218 grep -v '^ *+' conftest.er1 >conftest.err
8219 rm -f conftest.er1
8220 cat conftest.err >&5
8221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222 (exit $ac_status); } && {
8223 test -z "$ac_c_werror_flag" ||
8224 test ! -s conftest.err
8225 } && test -s conftest.$ac_objext; then
8226 ac_hi=$ac_mid
8227 else
8228 echo "$as_me: failed program was:" >&5
8229 sed 's/^/| /' conftest.$ac_ext >&5
8231 ac_lo=`expr '(' $ac_mid ')' + 1`
8234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8235 done
8236 case $ac_lo in
8237 ?*) ac_cv_sizeof_long=$ac_lo;;
8238 '') if test "$ac_cv_type_long" = yes; then
8239 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
8240 See \`config.log' for more details." >&5
8241 echo "$as_me: error: cannot compute sizeof (long)
8242 See \`config.log' for more details." >&2;}
8243 { (exit 77); exit 77; }; }
8244 else
8245 ac_cv_sizeof_long=0
8246 fi ;;
8247 esac
8248 else
8249 cat >conftest.$ac_ext <<_ACEOF
8250 /* confdefs.h. */
8251 _ACEOF
8252 cat confdefs.h >>conftest.$ac_ext
8253 cat >>conftest.$ac_ext <<_ACEOF
8254 /* end confdefs.h. */
8255 $ac_includes_default
8256 typedef long ac__type_sizeof_;
8257 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8258 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8259 #include <stdio.h>
8260 #include <stdlib.h>
8262 main ()
8265 FILE *f = fopen ("conftest.val", "w");
8266 if (! f)
8267 return 1;
8268 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8270 long int i = longval ();
8271 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8272 return 1;
8273 fprintf (f, "%ld\n", i);
8275 else
8277 unsigned long int i = ulongval ();
8278 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8279 return 1;
8280 fprintf (f, "%lu\n", i);
8282 return ferror (f) || fclose (f) != 0;
8285 return 0;
8287 _ACEOF
8288 rm -f conftest$ac_exeext
8289 if { (ac_try="$ac_link"
8290 case "(($ac_try" in
8291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8292 *) ac_try_echo=$ac_try;;
8293 esac
8294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8295 (eval "$ac_link") 2>&5
8296 ac_status=$?
8297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8299 { (case "(($ac_try" in
8300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8301 *) ac_try_echo=$ac_try;;
8302 esac
8303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8304 (eval "$ac_try") 2>&5
8305 ac_status=$?
8306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307 (exit $ac_status); }; }; then
8308 ac_cv_sizeof_long=`cat conftest.val`
8309 else
8310 echo "$as_me: program exited with status $ac_status" >&5
8311 echo "$as_me: failed program was:" >&5
8312 sed 's/^/| /' conftest.$ac_ext >&5
8314 ( exit $ac_status )
8315 if test "$ac_cv_type_long" = yes; then
8316 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
8317 See \`config.log' for more details." >&5
8318 echo "$as_me: error: cannot compute sizeof (long)
8319 See \`config.log' for more details." >&2;}
8320 { (exit 77); exit 77; }; }
8321 else
8322 ac_cv_sizeof_long=0
8325 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8327 rm -f conftest.val
8329 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
8330 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
8334 cat >>confdefs.h <<_ACEOF
8335 #define SIZEOF_LONG $ac_cv_sizeof_long
8336 _ACEOF
8339 { echo "$as_me:$LINENO: checking for void *" >&5
8340 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
8341 if test "${ac_cv_type_void_p+set}" = set; then
8342 echo $ECHO_N "(cached) $ECHO_C" >&6
8343 else
8344 cat >conftest.$ac_ext <<_ACEOF
8345 /* confdefs.h. */
8346 _ACEOF
8347 cat confdefs.h >>conftest.$ac_ext
8348 cat >>conftest.$ac_ext <<_ACEOF
8349 /* end confdefs.h. */
8350 $ac_includes_default
8351 typedef void * ac__type_new_;
8353 main ()
8355 if ((ac__type_new_ *) 0)
8356 return 0;
8357 if (sizeof (ac__type_new_))
8358 return 0;
8360 return 0;
8362 _ACEOF
8363 rm -f conftest.$ac_objext
8364 if { (ac_try="$ac_compile"
8365 case "(($ac_try" in
8366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8367 *) ac_try_echo=$ac_try;;
8368 esac
8369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8370 (eval "$ac_compile") 2>conftest.er1
8371 ac_status=$?
8372 grep -v '^ *+' conftest.er1 >conftest.err
8373 rm -f conftest.er1
8374 cat conftest.err >&5
8375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376 (exit $ac_status); } && {
8377 test -z "$ac_c_werror_flag" ||
8378 test ! -s conftest.err
8379 } && test -s conftest.$ac_objext; then
8380 ac_cv_type_void_p=yes
8381 else
8382 echo "$as_me: failed program was:" >&5
8383 sed 's/^/| /' conftest.$ac_ext >&5
8385 ac_cv_type_void_p=no
8388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8390 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
8391 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
8393 # The cast to long int works around a bug in the HP C Compiler
8394 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8395 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8396 # This bug is HP SR number 8606223364.
8397 { echo "$as_me:$LINENO: checking size of void *" >&5
8398 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
8399 if test "${ac_cv_sizeof_void_p+set}" = set; then
8400 echo $ECHO_N "(cached) $ECHO_C" >&6
8401 else
8402 if test "$cross_compiling" = yes; then
8403 # Depending upon the size, compute the lo and hi bounds.
8404 cat >conftest.$ac_ext <<_ACEOF
8405 /* confdefs.h. */
8406 _ACEOF
8407 cat confdefs.h >>conftest.$ac_ext
8408 cat >>conftest.$ac_ext <<_ACEOF
8409 /* end confdefs.h. */
8410 $ac_includes_default
8411 typedef void * ac__type_sizeof_;
8413 main ()
8415 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8416 test_array [0] = 0
8419 return 0;
8421 _ACEOF
8422 rm -f conftest.$ac_objext
8423 if { (ac_try="$ac_compile"
8424 case "(($ac_try" in
8425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8426 *) ac_try_echo=$ac_try;;
8427 esac
8428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8429 (eval "$ac_compile") 2>conftest.er1
8430 ac_status=$?
8431 grep -v '^ *+' conftest.er1 >conftest.err
8432 rm -f conftest.er1
8433 cat conftest.err >&5
8434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435 (exit $ac_status); } && {
8436 test -z "$ac_c_werror_flag" ||
8437 test ! -s conftest.err
8438 } && test -s conftest.$ac_objext; then
8439 ac_lo=0 ac_mid=0
8440 while :; do
8441 cat >conftest.$ac_ext <<_ACEOF
8442 /* confdefs.h. */
8443 _ACEOF
8444 cat confdefs.h >>conftest.$ac_ext
8445 cat >>conftest.$ac_ext <<_ACEOF
8446 /* end confdefs.h. */
8447 $ac_includes_default
8448 typedef void * ac__type_sizeof_;
8450 main ()
8452 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8453 test_array [0] = 0
8456 return 0;
8458 _ACEOF
8459 rm -f conftest.$ac_objext
8460 if { (ac_try="$ac_compile"
8461 case "(($ac_try" in
8462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8463 *) ac_try_echo=$ac_try;;
8464 esac
8465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8466 (eval "$ac_compile") 2>conftest.er1
8467 ac_status=$?
8468 grep -v '^ *+' conftest.er1 >conftest.err
8469 rm -f conftest.er1
8470 cat conftest.err >&5
8471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472 (exit $ac_status); } && {
8473 test -z "$ac_c_werror_flag" ||
8474 test ! -s conftest.err
8475 } && test -s conftest.$ac_objext; then
8476 ac_hi=$ac_mid; break
8477 else
8478 echo "$as_me: failed program was:" >&5
8479 sed 's/^/| /' conftest.$ac_ext >&5
8481 ac_lo=`expr $ac_mid + 1`
8482 if test $ac_lo -le $ac_mid; then
8483 ac_lo= ac_hi=
8484 break
8486 ac_mid=`expr 2 '*' $ac_mid + 1`
8489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8490 done
8491 else
8492 echo "$as_me: failed program was:" >&5
8493 sed 's/^/| /' conftest.$ac_ext >&5
8495 cat >conftest.$ac_ext <<_ACEOF
8496 /* confdefs.h. */
8497 _ACEOF
8498 cat confdefs.h >>conftest.$ac_ext
8499 cat >>conftest.$ac_ext <<_ACEOF
8500 /* end confdefs.h. */
8501 $ac_includes_default
8502 typedef void * ac__type_sizeof_;
8504 main ()
8506 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8507 test_array [0] = 0
8510 return 0;
8512 _ACEOF
8513 rm -f conftest.$ac_objext
8514 if { (ac_try="$ac_compile"
8515 case "(($ac_try" in
8516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8517 *) ac_try_echo=$ac_try;;
8518 esac
8519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8520 (eval "$ac_compile") 2>conftest.er1
8521 ac_status=$?
8522 grep -v '^ *+' conftest.er1 >conftest.err
8523 rm -f conftest.er1
8524 cat conftest.err >&5
8525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8526 (exit $ac_status); } && {
8527 test -z "$ac_c_werror_flag" ||
8528 test ! -s conftest.err
8529 } && test -s conftest.$ac_objext; then
8530 ac_hi=-1 ac_mid=-1
8531 while :; do
8532 cat >conftest.$ac_ext <<_ACEOF
8533 /* confdefs.h. */
8534 _ACEOF
8535 cat confdefs.h >>conftest.$ac_ext
8536 cat >>conftest.$ac_ext <<_ACEOF
8537 /* end confdefs.h. */
8538 $ac_includes_default
8539 typedef void * ac__type_sizeof_;
8541 main ()
8543 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8544 test_array [0] = 0
8547 return 0;
8549 _ACEOF
8550 rm -f conftest.$ac_objext
8551 if { (ac_try="$ac_compile"
8552 case "(($ac_try" in
8553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8554 *) ac_try_echo=$ac_try;;
8555 esac
8556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8557 (eval "$ac_compile") 2>conftest.er1
8558 ac_status=$?
8559 grep -v '^ *+' conftest.er1 >conftest.err
8560 rm -f conftest.er1
8561 cat conftest.err >&5
8562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8563 (exit $ac_status); } && {
8564 test -z "$ac_c_werror_flag" ||
8565 test ! -s conftest.err
8566 } && test -s conftest.$ac_objext; then
8567 ac_lo=$ac_mid; break
8568 else
8569 echo "$as_me: failed program was:" >&5
8570 sed 's/^/| /' conftest.$ac_ext >&5
8572 ac_hi=`expr '(' $ac_mid ')' - 1`
8573 if test $ac_mid -le $ac_hi; then
8574 ac_lo= ac_hi=
8575 break
8577 ac_mid=`expr 2 '*' $ac_mid`
8580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8581 done
8582 else
8583 echo "$as_me: failed program was:" >&5
8584 sed 's/^/| /' conftest.$ac_ext >&5
8586 ac_lo= ac_hi=
8589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8593 # Binary search between lo and hi bounds.
8594 while test "x$ac_lo" != "x$ac_hi"; do
8595 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8596 cat >conftest.$ac_ext <<_ACEOF
8597 /* confdefs.h. */
8598 _ACEOF
8599 cat confdefs.h >>conftest.$ac_ext
8600 cat >>conftest.$ac_ext <<_ACEOF
8601 /* end confdefs.h. */
8602 $ac_includes_default
8603 typedef void * ac__type_sizeof_;
8605 main ()
8607 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8608 test_array [0] = 0
8611 return 0;
8613 _ACEOF
8614 rm -f conftest.$ac_objext
8615 if { (ac_try="$ac_compile"
8616 case "(($ac_try" in
8617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8618 *) ac_try_echo=$ac_try;;
8619 esac
8620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8621 (eval "$ac_compile") 2>conftest.er1
8622 ac_status=$?
8623 grep -v '^ *+' conftest.er1 >conftest.err
8624 rm -f conftest.er1
8625 cat conftest.err >&5
8626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627 (exit $ac_status); } && {
8628 test -z "$ac_c_werror_flag" ||
8629 test ! -s conftest.err
8630 } && test -s conftest.$ac_objext; then
8631 ac_hi=$ac_mid
8632 else
8633 echo "$as_me: failed program was:" >&5
8634 sed 's/^/| /' conftest.$ac_ext >&5
8636 ac_lo=`expr '(' $ac_mid ')' + 1`
8639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8640 done
8641 case $ac_lo in
8642 ?*) ac_cv_sizeof_void_p=$ac_lo;;
8643 '') if test "$ac_cv_type_void_p" = yes; then
8644 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8645 See \`config.log' for more details." >&5
8646 echo "$as_me: error: cannot compute sizeof (void *)
8647 See \`config.log' for more details." >&2;}
8648 { (exit 77); exit 77; }; }
8649 else
8650 ac_cv_sizeof_void_p=0
8651 fi ;;
8652 esac
8653 else
8654 cat >conftest.$ac_ext <<_ACEOF
8655 /* confdefs.h. */
8656 _ACEOF
8657 cat confdefs.h >>conftest.$ac_ext
8658 cat >>conftest.$ac_ext <<_ACEOF
8659 /* end confdefs.h. */
8660 $ac_includes_default
8661 typedef void * ac__type_sizeof_;
8662 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8663 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8664 #include <stdio.h>
8665 #include <stdlib.h>
8667 main ()
8670 FILE *f = fopen ("conftest.val", "w");
8671 if (! f)
8672 return 1;
8673 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8675 long int i = longval ();
8676 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8677 return 1;
8678 fprintf (f, "%ld\n", i);
8680 else
8682 unsigned long int i = ulongval ();
8683 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8684 return 1;
8685 fprintf (f, "%lu\n", i);
8687 return ferror (f) || fclose (f) != 0;
8690 return 0;
8692 _ACEOF
8693 rm -f conftest$ac_exeext
8694 if { (ac_try="$ac_link"
8695 case "(($ac_try" in
8696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8697 *) ac_try_echo=$ac_try;;
8698 esac
8699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8700 (eval "$ac_link") 2>&5
8701 ac_status=$?
8702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8704 { (case "(($ac_try" in
8705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8706 *) ac_try_echo=$ac_try;;
8707 esac
8708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8709 (eval "$ac_try") 2>&5
8710 ac_status=$?
8711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8712 (exit $ac_status); }; }; then
8713 ac_cv_sizeof_void_p=`cat conftest.val`
8714 else
8715 echo "$as_me: program exited with status $ac_status" >&5
8716 echo "$as_me: failed program was:" >&5
8717 sed 's/^/| /' conftest.$ac_ext >&5
8719 ( exit $ac_status )
8720 if test "$ac_cv_type_void_p" = yes; then
8721 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8722 See \`config.log' for more details." >&5
8723 echo "$as_me: error: cannot compute sizeof (void *)
8724 See \`config.log' for more details." >&2;}
8725 { (exit 77); exit 77; }; }
8726 else
8727 ac_cv_sizeof_void_p=0
8730 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8732 rm -f conftest.val
8734 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
8735 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
8739 cat >>confdefs.h <<_ACEOF
8740 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8741 _ACEOF
8744 { echo "$as_me:$LINENO: checking for short" >&5
8745 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
8746 if test "${ac_cv_type_short+set}" = set; then
8747 echo $ECHO_N "(cached) $ECHO_C" >&6
8748 else
8749 cat >conftest.$ac_ext <<_ACEOF
8750 /* confdefs.h. */
8751 _ACEOF
8752 cat confdefs.h >>conftest.$ac_ext
8753 cat >>conftest.$ac_ext <<_ACEOF
8754 /* end confdefs.h. */
8755 $ac_includes_default
8756 typedef short ac__type_new_;
8758 main ()
8760 if ((ac__type_new_ *) 0)
8761 return 0;
8762 if (sizeof (ac__type_new_))
8763 return 0;
8765 return 0;
8767 _ACEOF
8768 rm -f conftest.$ac_objext
8769 if { (ac_try="$ac_compile"
8770 case "(($ac_try" in
8771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8772 *) ac_try_echo=$ac_try;;
8773 esac
8774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8775 (eval "$ac_compile") 2>conftest.er1
8776 ac_status=$?
8777 grep -v '^ *+' conftest.er1 >conftest.err
8778 rm -f conftest.er1
8779 cat conftest.err >&5
8780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8781 (exit $ac_status); } && {
8782 test -z "$ac_c_werror_flag" ||
8783 test ! -s conftest.err
8784 } && test -s conftest.$ac_objext; then
8785 ac_cv_type_short=yes
8786 else
8787 echo "$as_me: failed program was:" >&5
8788 sed 's/^/| /' conftest.$ac_ext >&5
8790 ac_cv_type_short=no
8793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8795 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
8796 echo "${ECHO_T}$ac_cv_type_short" >&6; }
8798 # The cast to long int works around a bug in the HP C Compiler
8799 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8800 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8801 # This bug is HP SR number 8606223364.
8802 { echo "$as_me:$LINENO: checking size of short" >&5
8803 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
8804 if test "${ac_cv_sizeof_short+set}" = set; then
8805 echo $ECHO_N "(cached) $ECHO_C" >&6
8806 else
8807 if test "$cross_compiling" = yes; then
8808 # Depending upon the size, compute the lo and hi bounds.
8809 cat >conftest.$ac_ext <<_ACEOF
8810 /* confdefs.h. */
8811 _ACEOF
8812 cat confdefs.h >>conftest.$ac_ext
8813 cat >>conftest.$ac_ext <<_ACEOF
8814 /* end confdefs.h. */
8815 $ac_includes_default
8816 typedef short ac__type_sizeof_;
8818 main ()
8820 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8821 test_array [0] = 0
8824 return 0;
8826 _ACEOF
8827 rm -f conftest.$ac_objext
8828 if { (ac_try="$ac_compile"
8829 case "(($ac_try" in
8830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8831 *) ac_try_echo=$ac_try;;
8832 esac
8833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8834 (eval "$ac_compile") 2>conftest.er1
8835 ac_status=$?
8836 grep -v '^ *+' conftest.er1 >conftest.err
8837 rm -f conftest.er1
8838 cat conftest.err >&5
8839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840 (exit $ac_status); } && {
8841 test -z "$ac_c_werror_flag" ||
8842 test ! -s conftest.err
8843 } && test -s conftest.$ac_objext; then
8844 ac_lo=0 ac_mid=0
8845 while :; do
8846 cat >conftest.$ac_ext <<_ACEOF
8847 /* confdefs.h. */
8848 _ACEOF
8849 cat confdefs.h >>conftest.$ac_ext
8850 cat >>conftest.$ac_ext <<_ACEOF
8851 /* end confdefs.h. */
8852 $ac_includes_default
8853 typedef short ac__type_sizeof_;
8855 main ()
8857 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8858 test_array [0] = 0
8861 return 0;
8863 _ACEOF
8864 rm -f conftest.$ac_objext
8865 if { (ac_try="$ac_compile"
8866 case "(($ac_try" in
8867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8868 *) ac_try_echo=$ac_try;;
8869 esac
8870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8871 (eval "$ac_compile") 2>conftest.er1
8872 ac_status=$?
8873 grep -v '^ *+' conftest.er1 >conftest.err
8874 rm -f conftest.er1
8875 cat conftest.err >&5
8876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8877 (exit $ac_status); } && {
8878 test -z "$ac_c_werror_flag" ||
8879 test ! -s conftest.err
8880 } && test -s conftest.$ac_objext; then
8881 ac_hi=$ac_mid; break
8882 else
8883 echo "$as_me: failed program was:" >&5
8884 sed 's/^/| /' conftest.$ac_ext >&5
8886 ac_lo=`expr $ac_mid + 1`
8887 if test $ac_lo -le $ac_mid; then
8888 ac_lo= ac_hi=
8889 break
8891 ac_mid=`expr 2 '*' $ac_mid + 1`
8894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8895 done
8896 else
8897 echo "$as_me: failed program was:" >&5
8898 sed 's/^/| /' conftest.$ac_ext >&5
8900 cat >conftest.$ac_ext <<_ACEOF
8901 /* confdefs.h. */
8902 _ACEOF
8903 cat confdefs.h >>conftest.$ac_ext
8904 cat >>conftest.$ac_ext <<_ACEOF
8905 /* end confdefs.h. */
8906 $ac_includes_default
8907 typedef short ac__type_sizeof_;
8909 main ()
8911 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8912 test_array [0] = 0
8915 return 0;
8917 _ACEOF
8918 rm -f conftest.$ac_objext
8919 if { (ac_try="$ac_compile"
8920 case "(($ac_try" in
8921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8922 *) ac_try_echo=$ac_try;;
8923 esac
8924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8925 (eval "$ac_compile") 2>conftest.er1
8926 ac_status=$?
8927 grep -v '^ *+' conftest.er1 >conftest.err
8928 rm -f conftest.er1
8929 cat conftest.err >&5
8930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8931 (exit $ac_status); } && {
8932 test -z "$ac_c_werror_flag" ||
8933 test ! -s conftest.err
8934 } && test -s conftest.$ac_objext; then
8935 ac_hi=-1 ac_mid=-1
8936 while :; do
8937 cat >conftest.$ac_ext <<_ACEOF
8938 /* confdefs.h. */
8939 _ACEOF
8940 cat confdefs.h >>conftest.$ac_ext
8941 cat >>conftest.$ac_ext <<_ACEOF
8942 /* end confdefs.h. */
8943 $ac_includes_default
8944 typedef short ac__type_sizeof_;
8946 main ()
8948 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8949 test_array [0] = 0
8952 return 0;
8954 _ACEOF
8955 rm -f conftest.$ac_objext
8956 if { (ac_try="$ac_compile"
8957 case "(($ac_try" in
8958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8959 *) ac_try_echo=$ac_try;;
8960 esac
8961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8962 (eval "$ac_compile") 2>conftest.er1
8963 ac_status=$?
8964 grep -v '^ *+' conftest.er1 >conftest.err
8965 rm -f conftest.er1
8966 cat conftest.err >&5
8967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8968 (exit $ac_status); } && {
8969 test -z "$ac_c_werror_flag" ||
8970 test ! -s conftest.err
8971 } && test -s conftest.$ac_objext; then
8972 ac_lo=$ac_mid; break
8973 else
8974 echo "$as_me: failed program was:" >&5
8975 sed 's/^/| /' conftest.$ac_ext >&5
8977 ac_hi=`expr '(' $ac_mid ')' - 1`
8978 if test $ac_mid -le $ac_hi; then
8979 ac_lo= ac_hi=
8980 break
8982 ac_mid=`expr 2 '*' $ac_mid`
8985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8986 done
8987 else
8988 echo "$as_me: failed program was:" >&5
8989 sed 's/^/| /' conftest.$ac_ext >&5
8991 ac_lo= ac_hi=
8994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8998 # Binary search between lo and hi bounds.
8999 while test "x$ac_lo" != "x$ac_hi"; do
9000 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9001 cat >conftest.$ac_ext <<_ACEOF
9002 /* confdefs.h. */
9003 _ACEOF
9004 cat confdefs.h >>conftest.$ac_ext
9005 cat >>conftest.$ac_ext <<_ACEOF
9006 /* end confdefs.h. */
9007 $ac_includes_default
9008 typedef short ac__type_sizeof_;
9010 main ()
9012 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9013 test_array [0] = 0
9016 return 0;
9018 _ACEOF
9019 rm -f conftest.$ac_objext
9020 if { (ac_try="$ac_compile"
9021 case "(($ac_try" in
9022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9023 *) ac_try_echo=$ac_try;;
9024 esac
9025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9026 (eval "$ac_compile") 2>conftest.er1
9027 ac_status=$?
9028 grep -v '^ *+' conftest.er1 >conftest.err
9029 rm -f conftest.er1
9030 cat conftest.err >&5
9031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9032 (exit $ac_status); } && {
9033 test -z "$ac_c_werror_flag" ||
9034 test ! -s conftest.err
9035 } && test -s conftest.$ac_objext; then
9036 ac_hi=$ac_mid
9037 else
9038 echo "$as_me: failed program was:" >&5
9039 sed 's/^/| /' conftest.$ac_ext >&5
9041 ac_lo=`expr '(' $ac_mid ')' + 1`
9044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9045 done
9046 case $ac_lo in
9047 ?*) ac_cv_sizeof_short=$ac_lo;;
9048 '') if test "$ac_cv_type_short" = yes; then
9049 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
9050 See \`config.log' for more details." >&5
9051 echo "$as_me: error: cannot compute sizeof (short)
9052 See \`config.log' for more details." >&2;}
9053 { (exit 77); exit 77; }; }
9054 else
9055 ac_cv_sizeof_short=0
9056 fi ;;
9057 esac
9058 else
9059 cat >conftest.$ac_ext <<_ACEOF
9060 /* confdefs.h. */
9061 _ACEOF
9062 cat confdefs.h >>conftest.$ac_ext
9063 cat >>conftest.$ac_ext <<_ACEOF
9064 /* end confdefs.h. */
9065 $ac_includes_default
9066 typedef short ac__type_sizeof_;
9067 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9068 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9069 #include <stdio.h>
9070 #include <stdlib.h>
9072 main ()
9075 FILE *f = fopen ("conftest.val", "w");
9076 if (! f)
9077 return 1;
9078 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9080 long int i = longval ();
9081 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9082 return 1;
9083 fprintf (f, "%ld\n", i);
9085 else
9087 unsigned long int i = ulongval ();
9088 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9089 return 1;
9090 fprintf (f, "%lu\n", i);
9092 return ferror (f) || fclose (f) != 0;
9095 return 0;
9097 _ACEOF
9098 rm -f conftest$ac_exeext
9099 if { (ac_try="$ac_link"
9100 case "(($ac_try" in
9101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9102 *) ac_try_echo=$ac_try;;
9103 esac
9104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9105 (eval "$ac_link") 2>&5
9106 ac_status=$?
9107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9108 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9109 { (case "(($ac_try" in
9110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9111 *) ac_try_echo=$ac_try;;
9112 esac
9113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9114 (eval "$ac_try") 2>&5
9115 ac_status=$?
9116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9117 (exit $ac_status); }; }; then
9118 ac_cv_sizeof_short=`cat conftest.val`
9119 else
9120 echo "$as_me: program exited with status $ac_status" >&5
9121 echo "$as_me: failed program was:" >&5
9122 sed 's/^/| /' conftest.$ac_ext >&5
9124 ( exit $ac_status )
9125 if test "$ac_cv_type_short" = yes; then
9126 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
9127 See \`config.log' for more details." >&5
9128 echo "$as_me: error: cannot compute sizeof (short)
9129 See \`config.log' for more details." >&2;}
9130 { (exit 77); exit 77; }; }
9131 else
9132 ac_cv_sizeof_short=0
9135 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9137 rm -f conftest.val
9139 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
9140 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
9144 cat >>confdefs.h <<_ACEOF
9145 #define SIZEOF_SHORT $ac_cv_sizeof_short
9146 _ACEOF
9149 { echo "$as_me:$LINENO: checking for float" >&5
9150 echo $ECHO_N "checking for float... $ECHO_C" >&6; }
9151 if test "${ac_cv_type_float+set}" = set; then
9152 echo $ECHO_N "(cached) $ECHO_C" >&6
9153 else
9154 cat >conftest.$ac_ext <<_ACEOF
9155 /* confdefs.h. */
9156 _ACEOF
9157 cat confdefs.h >>conftest.$ac_ext
9158 cat >>conftest.$ac_ext <<_ACEOF
9159 /* end confdefs.h. */
9160 $ac_includes_default
9161 typedef float ac__type_new_;
9163 main ()
9165 if ((ac__type_new_ *) 0)
9166 return 0;
9167 if (sizeof (ac__type_new_))
9168 return 0;
9170 return 0;
9172 _ACEOF
9173 rm -f conftest.$ac_objext
9174 if { (ac_try="$ac_compile"
9175 case "(($ac_try" in
9176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9177 *) ac_try_echo=$ac_try;;
9178 esac
9179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9180 (eval "$ac_compile") 2>conftest.er1
9181 ac_status=$?
9182 grep -v '^ *+' conftest.er1 >conftest.err
9183 rm -f conftest.er1
9184 cat conftest.err >&5
9185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9186 (exit $ac_status); } && {
9187 test -z "$ac_c_werror_flag" ||
9188 test ! -s conftest.err
9189 } && test -s conftest.$ac_objext; then
9190 ac_cv_type_float=yes
9191 else
9192 echo "$as_me: failed program was:" >&5
9193 sed 's/^/| /' conftest.$ac_ext >&5
9195 ac_cv_type_float=no
9198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9200 { echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
9201 echo "${ECHO_T}$ac_cv_type_float" >&6; }
9203 # The cast to long int works around a bug in the HP C Compiler
9204 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9205 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9206 # This bug is HP SR number 8606223364.
9207 { echo "$as_me:$LINENO: checking size of float" >&5
9208 echo $ECHO_N "checking size of float... $ECHO_C" >&6; }
9209 if test "${ac_cv_sizeof_float+set}" = set; then
9210 echo $ECHO_N "(cached) $ECHO_C" >&6
9211 else
9212 if test "$cross_compiling" = yes; then
9213 # Depending upon the size, compute the lo and hi bounds.
9214 cat >conftest.$ac_ext <<_ACEOF
9215 /* confdefs.h. */
9216 _ACEOF
9217 cat confdefs.h >>conftest.$ac_ext
9218 cat >>conftest.$ac_ext <<_ACEOF
9219 /* end confdefs.h. */
9220 $ac_includes_default
9221 typedef float ac__type_sizeof_;
9223 main ()
9225 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9226 test_array [0] = 0
9229 return 0;
9231 _ACEOF
9232 rm -f conftest.$ac_objext
9233 if { (ac_try="$ac_compile"
9234 case "(($ac_try" in
9235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9236 *) ac_try_echo=$ac_try;;
9237 esac
9238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9239 (eval "$ac_compile") 2>conftest.er1
9240 ac_status=$?
9241 grep -v '^ *+' conftest.er1 >conftest.err
9242 rm -f conftest.er1
9243 cat conftest.err >&5
9244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9245 (exit $ac_status); } && {
9246 test -z "$ac_c_werror_flag" ||
9247 test ! -s conftest.err
9248 } && test -s conftest.$ac_objext; then
9249 ac_lo=0 ac_mid=0
9250 while :; do
9251 cat >conftest.$ac_ext <<_ACEOF
9252 /* confdefs.h. */
9253 _ACEOF
9254 cat confdefs.h >>conftest.$ac_ext
9255 cat >>conftest.$ac_ext <<_ACEOF
9256 /* end confdefs.h. */
9257 $ac_includes_default
9258 typedef float ac__type_sizeof_;
9260 main ()
9262 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9263 test_array [0] = 0
9266 return 0;
9268 _ACEOF
9269 rm -f conftest.$ac_objext
9270 if { (ac_try="$ac_compile"
9271 case "(($ac_try" in
9272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9273 *) ac_try_echo=$ac_try;;
9274 esac
9275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9276 (eval "$ac_compile") 2>conftest.er1
9277 ac_status=$?
9278 grep -v '^ *+' conftest.er1 >conftest.err
9279 rm -f conftest.er1
9280 cat conftest.err >&5
9281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9282 (exit $ac_status); } && {
9283 test -z "$ac_c_werror_flag" ||
9284 test ! -s conftest.err
9285 } && test -s conftest.$ac_objext; then
9286 ac_hi=$ac_mid; break
9287 else
9288 echo "$as_me: failed program was:" >&5
9289 sed 's/^/| /' conftest.$ac_ext >&5
9291 ac_lo=`expr $ac_mid + 1`
9292 if test $ac_lo -le $ac_mid; then
9293 ac_lo= ac_hi=
9294 break
9296 ac_mid=`expr 2 '*' $ac_mid + 1`
9299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9300 done
9301 else
9302 echo "$as_me: failed program was:" >&5
9303 sed 's/^/| /' conftest.$ac_ext >&5
9305 cat >conftest.$ac_ext <<_ACEOF
9306 /* confdefs.h. */
9307 _ACEOF
9308 cat confdefs.h >>conftest.$ac_ext
9309 cat >>conftest.$ac_ext <<_ACEOF
9310 /* end confdefs.h. */
9311 $ac_includes_default
9312 typedef float ac__type_sizeof_;
9314 main ()
9316 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9317 test_array [0] = 0
9320 return 0;
9322 _ACEOF
9323 rm -f conftest.$ac_objext
9324 if { (ac_try="$ac_compile"
9325 case "(($ac_try" in
9326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9327 *) ac_try_echo=$ac_try;;
9328 esac
9329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9330 (eval "$ac_compile") 2>conftest.er1
9331 ac_status=$?
9332 grep -v '^ *+' conftest.er1 >conftest.err
9333 rm -f conftest.er1
9334 cat conftest.err >&5
9335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9336 (exit $ac_status); } && {
9337 test -z "$ac_c_werror_flag" ||
9338 test ! -s conftest.err
9339 } && test -s conftest.$ac_objext; then
9340 ac_hi=-1 ac_mid=-1
9341 while :; do
9342 cat >conftest.$ac_ext <<_ACEOF
9343 /* confdefs.h. */
9344 _ACEOF
9345 cat confdefs.h >>conftest.$ac_ext
9346 cat >>conftest.$ac_ext <<_ACEOF
9347 /* end confdefs.h. */
9348 $ac_includes_default
9349 typedef float ac__type_sizeof_;
9351 main ()
9353 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9354 test_array [0] = 0
9357 return 0;
9359 _ACEOF
9360 rm -f conftest.$ac_objext
9361 if { (ac_try="$ac_compile"
9362 case "(($ac_try" in
9363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9364 *) ac_try_echo=$ac_try;;
9365 esac
9366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9367 (eval "$ac_compile") 2>conftest.er1
9368 ac_status=$?
9369 grep -v '^ *+' conftest.er1 >conftest.err
9370 rm -f conftest.er1
9371 cat conftest.err >&5
9372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9373 (exit $ac_status); } && {
9374 test -z "$ac_c_werror_flag" ||
9375 test ! -s conftest.err
9376 } && test -s conftest.$ac_objext; then
9377 ac_lo=$ac_mid; break
9378 else
9379 echo "$as_me: failed program was:" >&5
9380 sed 's/^/| /' conftest.$ac_ext >&5
9382 ac_hi=`expr '(' $ac_mid ')' - 1`
9383 if test $ac_mid -le $ac_hi; then
9384 ac_lo= ac_hi=
9385 break
9387 ac_mid=`expr 2 '*' $ac_mid`
9390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9391 done
9392 else
9393 echo "$as_me: failed program was:" >&5
9394 sed 's/^/| /' conftest.$ac_ext >&5
9396 ac_lo= ac_hi=
9399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9403 # Binary search between lo and hi bounds.
9404 while test "x$ac_lo" != "x$ac_hi"; do
9405 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9406 cat >conftest.$ac_ext <<_ACEOF
9407 /* confdefs.h. */
9408 _ACEOF
9409 cat confdefs.h >>conftest.$ac_ext
9410 cat >>conftest.$ac_ext <<_ACEOF
9411 /* end confdefs.h. */
9412 $ac_includes_default
9413 typedef float ac__type_sizeof_;
9415 main ()
9417 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9418 test_array [0] = 0
9421 return 0;
9423 _ACEOF
9424 rm -f conftest.$ac_objext
9425 if { (ac_try="$ac_compile"
9426 case "(($ac_try" in
9427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9428 *) ac_try_echo=$ac_try;;
9429 esac
9430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9431 (eval "$ac_compile") 2>conftest.er1
9432 ac_status=$?
9433 grep -v '^ *+' conftest.er1 >conftest.err
9434 rm -f conftest.er1
9435 cat conftest.err >&5
9436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9437 (exit $ac_status); } && {
9438 test -z "$ac_c_werror_flag" ||
9439 test ! -s conftest.err
9440 } && test -s conftest.$ac_objext; then
9441 ac_hi=$ac_mid
9442 else
9443 echo "$as_me: failed program was:" >&5
9444 sed 's/^/| /' conftest.$ac_ext >&5
9446 ac_lo=`expr '(' $ac_mid ')' + 1`
9449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9450 done
9451 case $ac_lo in
9452 ?*) ac_cv_sizeof_float=$ac_lo;;
9453 '') if test "$ac_cv_type_float" = yes; then
9454 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
9455 See \`config.log' for more details." >&5
9456 echo "$as_me: error: cannot compute sizeof (float)
9457 See \`config.log' for more details." >&2;}
9458 { (exit 77); exit 77; }; }
9459 else
9460 ac_cv_sizeof_float=0
9461 fi ;;
9462 esac
9463 else
9464 cat >conftest.$ac_ext <<_ACEOF
9465 /* confdefs.h. */
9466 _ACEOF
9467 cat confdefs.h >>conftest.$ac_ext
9468 cat >>conftest.$ac_ext <<_ACEOF
9469 /* end confdefs.h. */
9470 $ac_includes_default
9471 typedef float ac__type_sizeof_;
9472 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9473 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9474 #include <stdio.h>
9475 #include <stdlib.h>
9477 main ()
9480 FILE *f = fopen ("conftest.val", "w");
9481 if (! f)
9482 return 1;
9483 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9485 long int i = longval ();
9486 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9487 return 1;
9488 fprintf (f, "%ld\n", i);
9490 else
9492 unsigned long int i = ulongval ();
9493 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9494 return 1;
9495 fprintf (f, "%lu\n", i);
9497 return ferror (f) || fclose (f) != 0;
9500 return 0;
9502 _ACEOF
9503 rm -f conftest$ac_exeext
9504 if { (ac_try="$ac_link"
9505 case "(($ac_try" in
9506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9507 *) ac_try_echo=$ac_try;;
9508 esac
9509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9510 (eval "$ac_link") 2>&5
9511 ac_status=$?
9512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9513 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9514 { (case "(($ac_try" in
9515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9516 *) ac_try_echo=$ac_try;;
9517 esac
9518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9519 (eval "$ac_try") 2>&5
9520 ac_status=$?
9521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9522 (exit $ac_status); }; }; then
9523 ac_cv_sizeof_float=`cat conftest.val`
9524 else
9525 echo "$as_me: program exited with status $ac_status" >&5
9526 echo "$as_me: failed program was:" >&5
9527 sed 's/^/| /' conftest.$ac_ext >&5
9529 ( exit $ac_status )
9530 if test "$ac_cv_type_float" = yes; then
9531 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
9532 See \`config.log' for more details." >&5
9533 echo "$as_me: error: cannot compute sizeof (float)
9534 See \`config.log' for more details." >&2;}
9535 { (exit 77); exit 77; }; }
9536 else
9537 ac_cv_sizeof_float=0
9540 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9542 rm -f conftest.val
9544 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
9545 echo "${ECHO_T}$ac_cv_sizeof_float" >&6; }
9549 cat >>confdefs.h <<_ACEOF
9550 #define SIZEOF_FLOAT $ac_cv_sizeof_float
9551 _ACEOF
9554 { echo "$as_me:$LINENO: checking for double" >&5
9555 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
9556 if test "${ac_cv_type_double+set}" = set; then
9557 echo $ECHO_N "(cached) $ECHO_C" >&6
9558 else
9559 cat >conftest.$ac_ext <<_ACEOF
9560 /* confdefs.h. */
9561 _ACEOF
9562 cat confdefs.h >>conftest.$ac_ext
9563 cat >>conftest.$ac_ext <<_ACEOF
9564 /* end confdefs.h. */
9565 $ac_includes_default
9566 typedef double ac__type_new_;
9568 main ()
9570 if ((ac__type_new_ *) 0)
9571 return 0;
9572 if (sizeof (ac__type_new_))
9573 return 0;
9575 return 0;
9577 _ACEOF
9578 rm -f conftest.$ac_objext
9579 if { (ac_try="$ac_compile"
9580 case "(($ac_try" in
9581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9582 *) ac_try_echo=$ac_try;;
9583 esac
9584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9585 (eval "$ac_compile") 2>conftest.er1
9586 ac_status=$?
9587 grep -v '^ *+' conftest.er1 >conftest.err
9588 rm -f conftest.er1
9589 cat conftest.err >&5
9590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9591 (exit $ac_status); } && {
9592 test -z "$ac_c_werror_flag" ||
9593 test ! -s conftest.err
9594 } && test -s conftest.$ac_objext; then
9595 ac_cv_type_double=yes
9596 else
9597 echo "$as_me: failed program was:" >&5
9598 sed 's/^/| /' conftest.$ac_ext >&5
9600 ac_cv_type_double=no
9603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9605 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
9606 echo "${ECHO_T}$ac_cv_type_double" >&6; }
9608 # The cast to long int works around a bug in the HP C Compiler
9609 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9610 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9611 # This bug is HP SR number 8606223364.
9612 { echo "$as_me:$LINENO: checking size of double" >&5
9613 echo $ECHO_N "checking size of double... $ECHO_C" >&6; }
9614 if test "${ac_cv_sizeof_double+set}" = set; then
9615 echo $ECHO_N "(cached) $ECHO_C" >&6
9616 else
9617 if test "$cross_compiling" = yes; then
9618 # Depending upon the size, compute the lo and hi bounds.
9619 cat >conftest.$ac_ext <<_ACEOF
9620 /* confdefs.h. */
9621 _ACEOF
9622 cat confdefs.h >>conftest.$ac_ext
9623 cat >>conftest.$ac_ext <<_ACEOF
9624 /* end confdefs.h. */
9625 $ac_includes_default
9626 typedef double ac__type_sizeof_;
9628 main ()
9630 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9631 test_array [0] = 0
9634 return 0;
9636 _ACEOF
9637 rm -f conftest.$ac_objext
9638 if { (ac_try="$ac_compile"
9639 case "(($ac_try" in
9640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9641 *) ac_try_echo=$ac_try;;
9642 esac
9643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9644 (eval "$ac_compile") 2>conftest.er1
9645 ac_status=$?
9646 grep -v '^ *+' conftest.er1 >conftest.err
9647 rm -f conftest.er1
9648 cat conftest.err >&5
9649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9650 (exit $ac_status); } && {
9651 test -z "$ac_c_werror_flag" ||
9652 test ! -s conftest.err
9653 } && test -s conftest.$ac_objext; then
9654 ac_lo=0 ac_mid=0
9655 while :; do
9656 cat >conftest.$ac_ext <<_ACEOF
9657 /* confdefs.h. */
9658 _ACEOF
9659 cat confdefs.h >>conftest.$ac_ext
9660 cat >>conftest.$ac_ext <<_ACEOF
9661 /* end confdefs.h. */
9662 $ac_includes_default
9663 typedef double ac__type_sizeof_;
9665 main ()
9667 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9668 test_array [0] = 0
9671 return 0;
9673 _ACEOF
9674 rm -f conftest.$ac_objext
9675 if { (ac_try="$ac_compile"
9676 case "(($ac_try" in
9677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9678 *) ac_try_echo=$ac_try;;
9679 esac
9680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9681 (eval "$ac_compile") 2>conftest.er1
9682 ac_status=$?
9683 grep -v '^ *+' conftest.er1 >conftest.err
9684 rm -f conftest.er1
9685 cat conftest.err >&5
9686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9687 (exit $ac_status); } && {
9688 test -z "$ac_c_werror_flag" ||
9689 test ! -s conftest.err
9690 } && test -s conftest.$ac_objext; then
9691 ac_hi=$ac_mid; break
9692 else
9693 echo "$as_me: failed program was:" >&5
9694 sed 's/^/| /' conftest.$ac_ext >&5
9696 ac_lo=`expr $ac_mid + 1`
9697 if test $ac_lo -le $ac_mid; then
9698 ac_lo= ac_hi=
9699 break
9701 ac_mid=`expr 2 '*' $ac_mid + 1`
9704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9705 done
9706 else
9707 echo "$as_me: failed program was:" >&5
9708 sed 's/^/| /' conftest.$ac_ext >&5
9710 cat >conftest.$ac_ext <<_ACEOF
9711 /* confdefs.h. */
9712 _ACEOF
9713 cat confdefs.h >>conftest.$ac_ext
9714 cat >>conftest.$ac_ext <<_ACEOF
9715 /* end confdefs.h. */
9716 $ac_includes_default
9717 typedef double ac__type_sizeof_;
9719 main ()
9721 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9722 test_array [0] = 0
9725 return 0;
9727 _ACEOF
9728 rm -f conftest.$ac_objext
9729 if { (ac_try="$ac_compile"
9730 case "(($ac_try" in
9731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9732 *) ac_try_echo=$ac_try;;
9733 esac
9734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9735 (eval "$ac_compile") 2>conftest.er1
9736 ac_status=$?
9737 grep -v '^ *+' conftest.er1 >conftest.err
9738 rm -f conftest.er1
9739 cat conftest.err >&5
9740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9741 (exit $ac_status); } && {
9742 test -z "$ac_c_werror_flag" ||
9743 test ! -s conftest.err
9744 } && test -s conftest.$ac_objext; then
9745 ac_hi=-1 ac_mid=-1
9746 while :; do
9747 cat >conftest.$ac_ext <<_ACEOF
9748 /* confdefs.h. */
9749 _ACEOF
9750 cat confdefs.h >>conftest.$ac_ext
9751 cat >>conftest.$ac_ext <<_ACEOF
9752 /* end confdefs.h. */
9753 $ac_includes_default
9754 typedef double ac__type_sizeof_;
9756 main ()
9758 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9759 test_array [0] = 0
9762 return 0;
9764 _ACEOF
9765 rm -f conftest.$ac_objext
9766 if { (ac_try="$ac_compile"
9767 case "(($ac_try" in
9768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9769 *) ac_try_echo=$ac_try;;
9770 esac
9771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9772 (eval "$ac_compile") 2>conftest.er1
9773 ac_status=$?
9774 grep -v '^ *+' conftest.er1 >conftest.err
9775 rm -f conftest.er1
9776 cat conftest.err >&5
9777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9778 (exit $ac_status); } && {
9779 test -z "$ac_c_werror_flag" ||
9780 test ! -s conftest.err
9781 } && test -s conftest.$ac_objext; then
9782 ac_lo=$ac_mid; break
9783 else
9784 echo "$as_me: failed program was:" >&5
9785 sed 's/^/| /' conftest.$ac_ext >&5
9787 ac_hi=`expr '(' $ac_mid ')' - 1`
9788 if test $ac_mid -le $ac_hi; then
9789 ac_lo= ac_hi=
9790 break
9792 ac_mid=`expr 2 '*' $ac_mid`
9795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9796 done
9797 else
9798 echo "$as_me: failed program was:" >&5
9799 sed 's/^/| /' conftest.$ac_ext >&5
9801 ac_lo= ac_hi=
9804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9808 # Binary search between lo and hi bounds.
9809 while test "x$ac_lo" != "x$ac_hi"; do
9810 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9811 cat >conftest.$ac_ext <<_ACEOF
9812 /* confdefs.h. */
9813 _ACEOF
9814 cat confdefs.h >>conftest.$ac_ext
9815 cat >>conftest.$ac_ext <<_ACEOF
9816 /* end confdefs.h. */
9817 $ac_includes_default
9818 typedef double ac__type_sizeof_;
9820 main ()
9822 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9823 test_array [0] = 0
9826 return 0;
9828 _ACEOF
9829 rm -f conftest.$ac_objext
9830 if { (ac_try="$ac_compile"
9831 case "(($ac_try" in
9832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9833 *) ac_try_echo=$ac_try;;
9834 esac
9835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9836 (eval "$ac_compile") 2>conftest.er1
9837 ac_status=$?
9838 grep -v '^ *+' conftest.er1 >conftest.err
9839 rm -f conftest.er1
9840 cat conftest.err >&5
9841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9842 (exit $ac_status); } && {
9843 test -z "$ac_c_werror_flag" ||
9844 test ! -s conftest.err
9845 } && test -s conftest.$ac_objext; then
9846 ac_hi=$ac_mid
9847 else
9848 echo "$as_me: failed program was:" >&5
9849 sed 's/^/| /' conftest.$ac_ext >&5
9851 ac_lo=`expr '(' $ac_mid ')' + 1`
9854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9855 done
9856 case $ac_lo in
9857 ?*) ac_cv_sizeof_double=$ac_lo;;
9858 '') if test "$ac_cv_type_double" = yes; then
9859 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
9860 See \`config.log' for more details." >&5
9861 echo "$as_me: error: cannot compute sizeof (double)
9862 See \`config.log' for more details." >&2;}
9863 { (exit 77); exit 77; }; }
9864 else
9865 ac_cv_sizeof_double=0
9866 fi ;;
9867 esac
9868 else
9869 cat >conftest.$ac_ext <<_ACEOF
9870 /* confdefs.h. */
9871 _ACEOF
9872 cat confdefs.h >>conftest.$ac_ext
9873 cat >>conftest.$ac_ext <<_ACEOF
9874 /* end confdefs.h. */
9875 $ac_includes_default
9876 typedef double ac__type_sizeof_;
9877 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9878 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9879 #include <stdio.h>
9880 #include <stdlib.h>
9882 main ()
9885 FILE *f = fopen ("conftest.val", "w");
9886 if (! f)
9887 return 1;
9888 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9890 long int i = longval ();
9891 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9892 return 1;
9893 fprintf (f, "%ld\n", i);
9895 else
9897 unsigned long int i = ulongval ();
9898 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9899 return 1;
9900 fprintf (f, "%lu\n", i);
9902 return ferror (f) || fclose (f) != 0;
9905 return 0;
9907 _ACEOF
9908 rm -f conftest$ac_exeext
9909 if { (ac_try="$ac_link"
9910 case "(($ac_try" in
9911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9912 *) ac_try_echo=$ac_try;;
9913 esac
9914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9915 (eval "$ac_link") 2>&5
9916 ac_status=$?
9917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9918 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9919 { (case "(($ac_try" in
9920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9921 *) ac_try_echo=$ac_try;;
9922 esac
9923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9924 (eval "$ac_try") 2>&5
9925 ac_status=$?
9926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9927 (exit $ac_status); }; }; then
9928 ac_cv_sizeof_double=`cat conftest.val`
9929 else
9930 echo "$as_me: program exited with status $ac_status" >&5
9931 echo "$as_me: failed program was:" >&5
9932 sed 's/^/| /' conftest.$ac_ext >&5
9934 ( exit $ac_status )
9935 if test "$ac_cv_type_double" = yes; then
9936 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
9937 See \`config.log' for more details." >&5
9938 echo "$as_me: error: cannot compute sizeof (double)
9939 See \`config.log' for more details." >&2;}
9940 { (exit 77); exit 77; }; }
9941 else
9942 ac_cv_sizeof_double=0
9945 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9947 rm -f conftest.val
9949 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
9950 echo "${ECHO_T}$ac_cv_sizeof_double" >&6; }
9954 cat >>confdefs.h <<_ACEOF
9955 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
9956 _ACEOF
9959 { echo "$as_me:$LINENO: checking for fpos_t" >&5
9960 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6; }
9961 if test "${ac_cv_type_fpos_t+set}" = set; then
9962 echo $ECHO_N "(cached) $ECHO_C" >&6
9963 else
9964 cat >conftest.$ac_ext <<_ACEOF
9965 /* confdefs.h. */
9966 _ACEOF
9967 cat confdefs.h >>conftest.$ac_ext
9968 cat >>conftest.$ac_ext <<_ACEOF
9969 /* end confdefs.h. */
9970 $ac_includes_default
9971 typedef fpos_t ac__type_new_;
9973 main ()
9975 if ((ac__type_new_ *) 0)
9976 return 0;
9977 if (sizeof (ac__type_new_))
9978 return 0;
9980 return 0;
9982 _ACEOF
9983 rm -f conftest.$ac_objext
9984 if { (ac_try="$ac_compile"
9985 case "(($ac_try" in
9986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9987 *) ac_try_echo=$ac_try;;
9988 esac
9989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9990 (eval "$ac_compile") 2>conftest.er1
9991 ac_status=$?
9992 grep -v '^ *+' conftest.er1 >conftest.err
9993 rm -f conftest.er1
9994 cat conftest.err >&5
9995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9996 (exit $ac_status); } && {
9997 test -z "$ac_c_werror_flag" ||
9998 test ! -s conftest.err
9999 } && test -s conftest.$ac_objext; then
10000 ac_cv_type_fpos_t=yes
10001 else
10002 echo "$as_me: failed program was:" >&5
10003 sed 's/^/| /' conftest.$ac_ext >&5
10005 ac_cv_type_fpos_t=no
10008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10010 { echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
10011 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6; }
10013 # The cast to long int works around a bug in the HP C Compiler
10014 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10015 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10016 # This bug is HP SR number 8606223364.
10017 { echo "$as_me:$LINENO: checking size of fpos_t" >&5
10018 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6; }
10019 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
10020 echo $ECHO_N "(cached) $ECHO_C" >&6
10021 else
10022 if test "$cross_compiling" = yes; then
10023 # Depending upon the size, compute the lo and hi bounds.
10024 cat >conftest.$ac_ext <<_ACEOF
10025 /* confdefs.h. */
10026 _ACEOF
10027 cat confdefs.h >>conftest.$ac_ext
10028 cat >>conftest.$ac_ext <<_ACEOF
10029 /* end confdefs.h. */
10030 $ac_includes_default
10031 typedef fpos_t ac__type_sizeof_;
10033 main ()
10035 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10036 test_array [0] = 0
10039 return 0;
10041 _ACEOF
10042 rm -f conftest.$ac_objext
10043 if { (ac_try="$ac_compile"
10044 case "(($ac_try" in
10045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10046 *) ac_try_echo=$ac_try;;
10047 esac
10048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10049 (eval "$ac_compile") 2>conftest.er1
10050 ac_status=$?
10051 grep -v '^ *+' conftest.er1 >conftest.err
10052 rm -f conftest.er1
10053 cat conftest.err >&5
10054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055 (exit $ac_status); } && {
10056 test -z "$ac_c_werror_flag" ||
10057 test ! -s conftest.err
10058 } && test -s conftest.$ac_objext; then
10059 ac_lo=0 ac_mid=0
10060 while :; do
10061 cat >conftest.$ac_ext <<_ACEOF
10062 /* confdefs.h. */
10063 _ACEOF
10064 cat confdefs.h >>conftest.$ac_ext
10065 cat >>conftest.$ac_ext <<_ACEOF
10066 /* end confdefs.h. */
10067 $ac_includes_default
10068 typedef fpos_t ac__type_sizeof_;
10070 main ()
10072 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10073 test_array [0] = 0
10076 return 0;
10078 _ACEOF
10079 rm -f conftest.$ac_objext
10080 if { (ac_try="$ac_compile"
10081 case "(($ac_try" in
10082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10083 *) ac_try_echo=$ac_try;;
10084 esac
10085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10086 (eval "$ac_compile") 2>conftest.er1
10087 ac_status=$?
10088 grep -v '^ *+' conftest.er1 >conftest.err
10089 rm -f conftest.er1
10090 cat conftest.err >&5
10091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10092 (exit $ac_status); } && {
10093 test -z "$ac_c_werror_flag" ||
10094 test ! -s conftest.err
10095 } && test -s conftest.$ac_objext; then
10096 ac_hi=$ac_mid; break
10097 else
10098 echo "$as_me: failed program was:" >&5
10099 sed 's/^/| /' conftest.$ac_ext >&5
10101 ac_lo=`expr $ac_mid + 1`
10102 if test $ac_lo -le $ac_mid; then
10103 ac_lo= ac_hi=
10104 break
10106 ac_mid=`expr 2 '*' $ac_mid + 1`
10109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10110 done
10111 else
10112 echo "$as_me: failed program was:" >&5
10113 sed 's/^/| /' conftest.$ac_ext >&5
10115 cat >conftest.$ac_ext <<_ACEOF
10116 /* confdefs.h. */
10117 _ACEOF
10118 cat confdefs.h >>conftest.$ac_ext
10119 cat >>conftest.$ac_ext <<_ACEOF
10120 /* end confdefs.h. */
10121 $ac_includes_default
10122 typedef fpos_t ac__type_sizeof_;
10124 main ()
10126 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10127 test_array [0] = 0
10130 return 0;
10132 _ACEOF
10133 rm -f conftest.$ac_objext
10134 if { (ac_try="$ac_compile"
10135 case "(($ac_try" in
10136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10137 *) ac_try_echo=$ac_try;;
10138 esac
10139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10140 (eval "$ac_compile") 2>conftest.er1
10141 ac_status=$?
10142 grep -v '^ *+' conftest.er1 >conftest.err
10143 rm -f conftest.er1
10144 cat conftest.err >&5
10145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146 (exit $ac_status); } && {
10147 test -z "$ac_c_werror_flag" ||
10148 test ! -s conftest.err
10149 } && test -s conftest.$ac_objext; then
10150 ac_hi=-1 ac_mid=-1
10151 while :; do
10152 cat >conftest.$ac_ext <<_ACEOF
10153 /* confdefs.h. */
10154 _ACEOF
10155 cat confdefs.h >>conftest.$ac_ext
10156 cat >>conftest.$ac_ext <<_ACEOF
10157 /* end confdefs.h. */
10158 $ac_includes_default
10159 typedef fpos_t ac__type_sizeof_;
10161 main ()
10163 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10164 test_array [0] = 0
10167 return 0;
10169 _ACEOF
10170 rm -f conftest.$ac_objext
10171 if { (ac_try="$ac_compile"
10172 case "(($ac_try" in
10173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10174 *) ac_try_echo=$ac_try;;
10175 esac
10176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10177 (eval "$ac_compile") 2>conftest.er1
10178 ac_status=$?
10179 grep -v '^ *+' conftest.er1 >conftest.err
10180 rm -f conftest.er1
10181 cat conftest.err >&5
10182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183 (exit $ac_status); } && {
10184 test -z "$ac_c_werror_flag" ||
10185 test ! -s conftest.err
10186 } && test -s conftest.$ac_objext; then
10187 ac_lo=$ac_mid; break
10188 else
10189 echo "$as_me: failed program was:" >&5
10190 sed 's/^/| /' conftest.$ac_ext >&5
10192 ac_hi=`expr '(' $ac_mid ')' - 1`
10193 if test $ac_mid -le $ac_hi; then
10194 ac_lo= ac_hi=
10195 break
10197 ac_mid=`expr 2 '*' $ac_mid`
10200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10201 done
10202 else
10203 echo "$as_me: failed program was:" >&5
10204 sed 's/^/| /' conftest.$ac_ext >&5
10206 ac_lo= ac_hi=
10209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10213 # Binary search between lo and hi bounds.
10214 while test "x$ac_lo" != "x$ac_hi"; do
10215 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10216 cat >conftest.$ac_ext <<_ACEOF
10217 /* confdefs.h. */
10218 _ACEOF
10219 cat confdefs.h >>conftest.$ac_ext
10220 cat >>conftest.$ac_ext <<_ACEOF
10221 /* end confdefs.h. */
10222 $ac_includes_default
10223 typedef fpos_t ac__type_sizeof_;
10225 main ()
10227 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10228 test_array [0] = 0
10231 return 0;
10233 _ACEOF
10234 rm -f conftest.$ac_objext
10235 if { (ac_try="$ac_compile"
10236 case "(($ac_try" in
10237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10238 *) ac_try_echo=$ac_try;;
10239 esac
10240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10241 (eval "$ac_compile") 2>conftest.er1
10242 ac_status=$?
10243 grep -v '^ *+' conftest.er1 >conftest.err
10244 rm -f conftest.er1
10245 cat conftest.err >&5
10246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10247 (exit $ac_status); } && {
10248 test -z "$ac_c_werror_flag" ||
10249 test ! -s conftest.err
10250 } && test -s conftest.$ac_objext; then
10251 ac_hi=$ac_mid
10252 else
10253 echo "$as_me: failed program was:" >&5
10254 sed 's/^/| /' conftest.$ac_ext >&5
10256 ac_lo=`expr '(' $ac_mid ')' + 1`
10259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10260 done
10261 case $ac_lo in
10262 ?*) ac_cv_sizeof_fpos_t=$ac_lo;;
10263 '') if test "$ac_cv_type_fpos_t" = yes; then
10264 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
10265 See \`config.log' for more details." >&5
10266 echo "$as_me: error: cannot compute sizeof (fpos_t)
10267 See \`config.log' for more details." >&2;}
10268 { (exit 77); exit 77; }; }
10269 else
10270 ac_cv_sizeof_fpos_t=0
10271 fi ;;
10272 esac
10273 else
10274 cat >conftest.$ac_ext <<_ACEOF
10275 /* confdefs.h. */
10276 _ACEOF
10277 cat confdefs.h >>conftest.$ac_ext
10278 cat >>conftest.$ac_ext <<_ACEOF
10279 /* end confdefs.h. */
10280 $ac_includes_default
10281 typedef fpos_t ac__type_sizeof_;
10282 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10283 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10284 #include <stdio.h>
10285 #include <stdlib.h>
10287 main ()
10290 FILE *f = fopen ("conftest.val", "w");
10291 if (! f)
10292 return 1;
10293 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10295 long int i = longval ();
10296 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10297 return 1;
10298 fprintf (f, "%ld\n", i);
10300 else
10302 unsigned long int i = ulongval ();
10303 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10304 return 1;
10305 fprintf (f, "%lu\n", i);
10307 return ferror (f) || fclose (f) != 0;
10310 return 0;
10312 _ACEOF
10313 rm -f conftest$ac_exeext
10314 if { (ac_try="$ac_link"
10315 case "(($ac_try" in
10316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10317 *) ac_try_echo=$ac_try;;
10318 esac
10319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10320 (eval "$ac_link") 2>&5
10321 ac_status=$?
10322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10323 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10324 { (case "(($ac_try" in
10325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10326 *) ac_try_echo=$ac_try;;
10327 esac
10328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10329 (eval "$ac_try") 2>&5
10330 ac_status=$?
10331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10332 (exit $ac_status); }; }; then
10333 ac_cv_sizeof_fpos_t=`cat conftest.val`
10334 else
10335 echo "$as_me: program exited with status $ac_status" >&5
10336 echo "$as_me: failed program was:" >&5
10337 sed 's/^/| /' conftest.$ac_ext >&5
10339 ( exit $ac_status )
10340 if test "$ac_cv_type_fpos_t" = yes; then
10341 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
10342 See \`config.log' for more details." >&5
10343 echo "$as_me: error: cannot compute sizeof (fpos_t)
10344 See \`config.log' for more details." >&2;}
10345 { (exit 77); exit 77; }; }
10346 else
10347 ac_cv_sizeof_fpos_t=0
10350 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10352 rm -f conftest.val
10354 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
10355 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6; }
10359 cat >>confdefs.h <<_ACEOF
10360 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
10361 _ACEOF
10364 { echo "$as_me:$LINENO: checking for size_t" >&5
10365 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
10366 if test "${ac_cv_type_size_t+set}" = set; then
10367 echo $ECHO_N "(cached) $ECHO_C" >&6
10368 else
10369 cat >conftest.$ac_ext <<_ACEOF
10370 /* confdefs.h. */
10371 _ACEOF
10372 cat confdefs.h >>conftest.$ac_ext
10373 cat >>conftest.$ac_ext <<_ACEOF
10374 /* end confdefs.h. */
10375 $ac_includes_default
10376 typedef size_t ac__type_new_;
10378 main ()
10380 if ((ac__type_new_ *) 0)
10381 return 0;
10382 if (sizeof (ac__type_new_))
10383 return 0;
10385 return 0;
10387 _ACEOF
10388 rm -f conftest.$ac_objext
10389 if { (ac_try="$ac_compile"
10390 case "(($ac_try" in
10391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10392 *) ac_try_echo=$ac_try;;
10393 esac
10394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10395 (eval "$ac_compile") 2>conftest.er1
10396 ac_status=$?
10397 grep -v '^ *+' conftest.er1 >conftest.err
10398 rm -f conftest.er1
10399 cat conftest.err >&5
10400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10401 (exit $ac_status); } && {
10402 test -z "$ac_c_werror_flag" ||
10403 test ! -s conftest.err
10404 } && test -s conftest.$ac_objext; then
10405 ac_cv_type_size_t=yes
10406 else
10407 echo "$as_me: failed program was:" >&5
10408 sed 's/^/| /' conftest.$ac_ext >&5
10410 ac_cv_type_size_t=no
10413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10415 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10416 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
10418 # The cast to long int works around a bug in the HP C Compiler
10419 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10420 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10421 # This bug is HP SR number 8606223364.
10422 { echo "$as_me:$LINENO: checking size of size_t" >&5
10423 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
10424 if test "${ac_cv_sizeof_size_t+set}" = set; then
10425 echo $ECHO_N "(cached) $ECHO_C" >&6
10426 else
10427 if test "$cross_compiling" = yes; then
10428 # Depending upon the size, compute the lo and hi bounds.
10429 cat >conftest.$ac_ext <<_ACEOF
10430 /* confdefs.h. */
10431 _ACEOF
10432 cat confdefs.h >>conftest.$ac_ext
10433 cat >>conftest.$ac_ext <<_ACEOF
10434 /* end confdefs.h. */
10435 $ac_includes_default
10436 typedef size_t ac__type_sizeof_;
10438 main ()
10440 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10441 test_array [0] = 0
10444 return 0;
10446 _ACEOF
10447 rm -f conftest.$ac_objext
10448 if { (ac_try="$ac_compile"
10449 case "(($ac_try" in
10450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10451 *) ac_try_echo=$ac_try;;
10452 esac
10453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10454 (eval "$ac_compile") 2>conftest.er1
10455 ac_status=$?
10456 grep -v '^ *+' conftest.er1 >conftest.err
10457 rm -f conftest.er1
10458 cat conftest.err >&5
10459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10460 (exit $ac_status); } && {
10461 test -z "$ac_c_werror_flag" ||
10462 test ! -s conftest.err
10463 } && test -s conftest.$ac_objext; then
10464 ac_lo=0 ac_mid=0
10465 while :; do
10466 cat >conftest.$ac_ext <<_ACEOF
10467 /* confdefs.h. */
10468 _ACEOF
10469 cat confdefs.h >>conftest.$ac_ext
10470 cat >>conftest.$ac_ext <<_ACEOF
10471 /* end confdefs.h. */
10472 $ac_includes_default
10473 typedef size_t ac__type_sizeof_;
10475 main ()
10477 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10478 test_array [0] = 0
10481 return 0;
10483 _ACEOF
10484 rm -f conftest.$ac_objext
10485 if { (ac_try="$ac_compile"
10486 case "(($ac_try" in
10487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10488 *) ac_try_echo=$ac_try;;
10489 esac
10490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10491 (eval "$ac_compile") 2>conftest.er1
10492 ac_status=$?
10493 grep -v '^ *+' conftest.er1 >conftest.err
10494 rm -f conftest.er1
10495 cat conftest.err >&5
10496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10497 (exit $ac_status); } && {
10498 test -z "$ac_c_werror_flag" ||
10499 test ! -s conftest.err
10500 } && test -s conftest.$ac_objext; then
10501 ac_hi=$ac_mid; break
10502 else
10503 echo "$as_me: failed program was:" >&5
10504 sed 's/^/| /' conftest.$ac_ext >&5
10506 ac_lo=`expr $ac_mid + 1`
10507 if test $ac_lo -le $ac_mid; then
10508 ac_lo= ac_hi=
10509 break
10511 ac_mid=`expr 2 '*' $ac_mid + 1`
10514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10515 done
10516 else
10517 echo "$as_me: failed program was:" >&5
10518 sed 's/^/| /' conftest.$ac_ext >&5
10520 cat >conftest.$ac_ext <<_ACEOF
10521 /* confdefs.h. */
10522 _ACEOF
10523 cat confdefs.h >>conftest.$ac_ext
10524 cat >>conftest.$ac_ext <<_ACEOF
10525 /* end confdefs.h. */
10526 $ac_includes_default
10527 typedef size_t ac__type_sizeof_;
10529 main ()
10531 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10532 test_array [0] = 0
10535 return 0;
10537 _ACEOF
10538 rm -f conftest.$ac_objext
10539 if { (ac_try="$ac_compile"
10540 case "(($ac_try" in
10541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10542 *) ac_try_echo=$ac_try;;
10543 esac
10544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10545 (eval "$ac_compile") 2>conftest.er1
10546 ac_status=$?
10547 grep -v '^ *+' conftest.er1 >conftest.err
10548 rm -f conftest.er1
10549 cat conftest.err >&5
10550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10551 (exit $ac_status); } && {
10552 test -z "$ac_c_werror_flag" ||
10553 test ! -s conftest.err
10554 } && test -s conftest.$ac_objext; then
10555 ac_hi=-1 ac_mid=-1
10556 while :; do
10557 cat >conftest.$ac_ext <<_ACEOF
10558 /* confdefs.h. */
10559 _ACEOF
10560 cat confdefs.h >>conftest.$ac_ext
10561 cat >>conftest.$ac_ext <<_ACEOF
10562 /* end confdefs.h. */
10563 $ac_includes_default
10564 typedef size_t ac__type_sizeof_;
10566 main ()
10568 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10569 test_array [0] = 0
10572 return 0;
10574 _ACEOF
10575 rm -f conftest.$ac_objext
10576 if { (ac_try="$ac_compile"
10577 case "(($ac_try" in
10578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10579 *) ac_try_echo=$ac_try;;
10580 esac
10581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10582 (eval "$ac_compile") 2>conftest.er1
10583 ac_status=$?
10584 grep -v '^ *+' conftest.er1 >conftest.err
10585 rm -f conftest.er1
10586 cat conftest.err >&5
10587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10588 (exit $ac_status); } && {
10589 test -z "$ac_c_werror_flag" ||
10590 test ! -s conftest.err
10591 } && test -s conftest.$ac_objext; then
10592 ac_lo=$ac_mid; break
10593 else
10594 echo "$as_me: failed program was:" >&5
10595 sed 's/^/| /' conftest.$ac_ext >&5
10597 ac_hi=`expr '(' $ac_mid ')' - 1`
10598 if test $ac_mid -le $ac_hi; then
10599 ac_lo= ac_hi=
10600 break
10602 ac_mid=`expr 2 '*' $ac_mid`
10605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10606 done
10607 else
10608 echo "$as_me: failed program was:" >&5
10609 sed 's/^/| /' conftest.$ac_ext >&5
10611 ac_lo= ac_hi=
10614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10618 # Binary search between lo and hi bounds.
10619 while test "x$ac_lo" != "x$ac_hi"; do
10620 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10621 cat >conftest.$ac_ext <<_ACEOF
10622 /* confdefs.h. */
10623 _ACEOF
10624 cat confdefs.h >>conftest.$ac_ext
10625 cat >>conftest.$ac_ext <<_ACEOF
10626 /* end confdefs.h. */
10627 $ac_includes_default
10628 typedef size_t ac__type_sizeof_;
10630 main ()
10632 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10633 test_array [0] = 0
10636 return 0;
10638 _ACEOF
10639 rm -f conftest.$ac_objext
10640 if { (ac_try="$ac_compile"
10641 case "(($ac_try" in
10642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10643 *) ac_try_echo=$ac_try;;
10644 esac
10645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10646 (eval "$ac_compile") 2>conftest.er1
10647 ac_status=$?
10648 grep -v '^ *+' conftest.er1 >conftest.err
10649 rm -f conftest.er1
10650 cat conftest.err >&5
10651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10652 (exit $ac_status); } && {
10653 test -z "$ac_c_werror_flag" ||
10654 test ! -s conftest.err
10655 } && test -s conftest.$ac_objext; then
10656 ac_hi=$ac_mid
10657 else
10658 echo "$as_me: failed program was:" >&5
10659 sed 's/^/| /' conftest.$ac_ext >&5
10661 ac_lo=`expr '(' $ac_mid ')' + 1`
10664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10665 done
10666 case $ac_lo in
10667 ?*) ac_cv_sizeof_size_t=$ac_lo;;
10668 '') if test "$ac_cv_type_size_t" = yes; then
10669 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10670 See \`config.log' for more details." >&5
10671 echo "$as_me: error: cannot compute sizeof (size_t)
10672 See \`config.log' for more details." >&2;}
10673 { (exit 77); exit 77; }; }
10674 else
10675 ac_cv_sizeof_size_t=0
10676 fi ;;
10677 esac
10678 else
10679 cat >conftest.$ac_ext <<_ACEOF
10680 /* confdefs.h. */
10681 _ACEOF
10682 cat confdefs.h >>conftest.$ac_ext
10683 cat >>conftest.$ac_ext <<_ACEOF
10684 /* end confdefs.h. */
10685 $ac_includes_default
10686 typedef size_t ac__type_sizeof_;
10687 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10688 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10689 #include <stdio.h>
10690 #include <stdlib.h>
10692 main ()
10695 FILE *f = fopen ("conftest.val", "w");
10696 if (! f)
10697 return 1;
10698 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10700 long int i = longval ();
10701 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10702 return 1;
10703 fprintf (f, "%ld\n", i);
10705 else
10707 unsigned long int i = ulongval ();
10708 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10709 return 1;
10710 fprintf (f, "%lu\n", i);
10712 return ferror (f) || fclose (f) != 0;
10715 return 0;
10717 _ACEOF
10718 rm -f conftest$ac_exeext
10719 if { (ac_try="$ac_link"
10720 case "(($ac_try" in
10721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10722 *) ac_try_echo=$ac_try;;
10723 esac
10724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10725 (eval "$ac_link") 2>&5
10726 ac_status=$?
10727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10728 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10729 { (case "(($ac_try" in
10730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10731 *) ac_try_echo=$ac_try;;
10732 esac
10733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10734 (eval "$ac_try") 2>&5
10735 ac_status=$?
10736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10737 (exit $ac_status); }; }; then
10738 ac_cv_sizeof_size_t=`cat conftest.val`
10739 else
10740 echo "$as_me: program exited with status $ac_status" >&5
10741 echo "$as_me: failed program was:" >&5
10742 sed 's/^/| /' conftest.$ac_ext >&5
10744 ( exit $ac_status )
10745 if test "$ac_cv_type_size_t" = yes; then
10746 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10747 See \`config.log' for more details." >&5
10748 echo "$as_me: error: cannot compute sizeof (size_t)
10749 See \`config.log' for more details." >&2;}
10750 { (exit 77); exit 77; }; }
10751 else
10752 ac_cv_sizeof_size_t=0
10755 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10757 rm -f conftest.val
10759 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
10760 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
10764 cat >>confdefs.h <<_ACEOF
10765 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
10766 _ACEOF
10769 { echo "$as_me:$LINENO: checking for pid_t" >&5
10770 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
10771 if test "${ac_cv_type_pid_t+set}" = set; then
10772 echo $ECHO_N "(cached) $ECHO_C" >&6
10773 else
10774 cat >conftest.$ac_ext <<_ACEOF
10775 /* confdefs.h. */
10776 _ACEOF
10777 cat confdefs.h >>conftest.$ac_ext
10778 cat >>conftest.$ac_ext <<_ACEOF
10779 /* end confdefs.h. */
10780 $ac_includes_default
10781 typedef pid_t ac__type_new_;
10783 main ()
10785 if ((ac__type_new_ *) 0)
10786 return 0;
10787 if (sizeof (ac__type_new_))
10788 return 0;
10790 return 0;
10792 _ACEOF
10793 rm -f conftest.$ac_objext
10794 if { (ac_try="$ac_compile"
10795 case "(($ac_try" in
10796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10797 *) ac_try_echo=$ac_try;;
10798 esac
10799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10800 (eval "$ac_compile") 2>conftest.er1
10801 ac_status=$?
10802 grep -v '^ *+' conftest.er1 >conftest.err
10803 rm -f conftest.er1
10804 cat conftest.err >&5
10805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10806 (exit $ac_status); } && {
10807 test -z "$ac_c_werror_flag" ||
10808 test ! -s conftest.err
10809 } && test -s conftest.$ac_objext; then
10810 ac_cv_type_pid_t=yes
10811 else
10812 echo "$as_me: failed program was:" >&5
10813 sed 's/^/| /' conftest.$ac_ext >&5
10815 ac_cv_type_pid_t=no
10818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10820 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10821 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
10823 # The cast to long int works around a bug in the HP C Compiler
10824 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10825 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10826 # This bug is HP SR number 8606223364.
10827 { echo "$as_me:$LINENO: checking size of pid_t" >&5
10828 echo $ECHO_N "checking size of pid_t... $ECHO_C" >&6; }
10829 if test "${ac_cv_sizeof_pid_t+set}" = set; then
10830 echo $ECHO_N "(cached) $ECHO_C" >&6
10831 else
10832 if test "$cross_compiling" = yes; then
10833 # Depending upon the size, compute the lo and hi bounds.
10834 cat >conftest.$ac_ext <<_ACEOF
10835 /* confdefs.h. */
10836 _ACEOF
10837 cat confdefs.h >>conftest.$ac_ext
10838 cat >>conftest.$ac_ext <<_ACEOF
10839 /* end confdefs.h. */
10840 $ac_includes_default
10841 typedef pid_t ac__type_sizeof_;
10843 main ()
10845 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10846 test_array [0] = 0
10849 return 0;
10851 _ACEOF
10852 rm -f conftest.$ac_objext
10853 if { (ac_try="$ac_compile"
10854 case "(($ac_try" in
10855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10856 *) ac_try_echo=$ac_try;;
10857 esac
10858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10859 (eval "$ac_compile") 2>conftest.er1
10860 ac_status=$?
10861 grep -v '^ *+' conftest.er1 >conftest.err
10862 rm -f conftest.er1
10863 cat conftest.err >&5
10864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10865 (exit $ac_status); } && {
10866 test -z "$ac_c_werror_flag" ||
10867 test ! -s conftest.err
10868 } && test -s conftest.$ac_objext; then
10869 ac_lo=0 ac_mid=0
10870 while :; do
10871 cat >conftest.$ac_ext <<_ACEOF
10872 /* confdefs.h. */
10873 _ACEOF
10874 cat confdefs.h >>conftest.$ac_ext
10875 cat >>conftest.$ac_ext <<_ACEOF
10876 /* end confdefs.h. */
10877 $ac_includes_default
10878 typedef pid_t ac__type_sizeof_;
10880 main ()
10882 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10883 test_array [0] = 0
10886 return 0;
10888 _ACEOF
10889 rm -f conftest.$ac_objext
10890 if { (ac_try="$ac_compile"
10891 case "(($ac_try" in
10892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10893 *) ac_try_echo=$ac_try;;
10894 esac
10895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10896 (eval "$ac_compile") 2>conftest.er1
10897 ac_status=$?
10898 grep -v '^ *+' conftest.er1 >conftest.err
10899 rm -f conftest.er1
10900 cat conftest.err >&5
10901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10902 (exit $ac_status); } && {
10903 test -z "$ac_c_werror_flag" ||
10904 test ! -s conftest.err
10905 } && test -s conftest.$ac_objext; then
10906 ac_hi=$ac_mid; break
10907 else
10908 echo "$as_me: failed program was:" >&5
10909 sed 's/^/| /' conftest.$ac_ext >&5
10911 ac_lo=`expr $ac_mid + 1`
10912 if test $ac_lo -le $ac_mid; then
10913 ac_lo= ac_hi=
10914 break
10916 ac_mid=`expr 2 '*' $ac_mid + 1`
10919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10920 done
10921 else
10922 echo "$as_me: failed program was:" >&5
10923 sed 's/^/| /' conftest.$ac_ext >&5
10925 cat >conftest.$ac_ext <<_ACEOF
10926 /* confdefs.h. */
10927 _ACEOF
10928 cat confdefs.h >>conftest.$ac_ext
10929 cat >>conftest.$ac_ext <<_ACEOF
10930 /* end confdefs.h. */
10931 $ac_includes_default
10932 typedef pid_t ac__type_sizeof_;
10934 main ()
10936 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10937 test_array [0] = 0
10940 return 0;
10942 _ACEOF
10943 rm -f conftest.$ac_objext
10944 if { (ac_try="$ac_compile"
10945 case "(($ac_try" in
10946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10947 *) ac_try_echo=$ac_try;;
10948 esac
10949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10950 (eval "$ac_compile") 2>conftest.er1
10951 ac_status=$?
10952 grep -v '^ *+' conftest.er1 >conftest.err
10953 rm -f conftest.er1
10954 cat conftest.err >&5
10955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10956 (exit $ac_status); } && {
10957 test -z "$ac_c_werror_flag" ||
10958 test ! -s conftest.err
10959 } && test -s conftest.$ac_objext; then
10960 ac_hi=-1 ac_mid=-1
10961 while :; do
10962 cat >conftest.$ac_ext <<_ACEOF
10963 /* confdefs.h. */
10964 _ACEOF
10965 cat confdefs.h >>conftest.$ac_ext
10966 cat >>conftest.$ac_ext <<_ACEOF
10967 /* end confdefs.h. */
10968 $ac_includes_default
10969 typedef pid_t ac__type_sizeof_;
10971 main ()
10973 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10974 test_array [0] = 0
10977 return 0;
10979 _ACEOF
10980 rm -f conftest.$ac_objext
10981 if { (ac_try="$ac_compile"
10982 case "(($ac_try" in
10983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10984 *) ac_try_echo=$ac_try;;
10985 esac
10986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10987 (eval "$ac_compile") 2>conftest.er1
10988 ac_status=$?
10989 grep -v '^ *+' conftest.er1 >conftest.err
10990 rm -f conftest.er1
10991 cat conftest.err >&5
10992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10993 (exit $ac_status); } && {
10994 test -z "$ac_c_werror_flag" ||
10995 test ! -s conftest.err
10996 } && test -s conftest.$ac_objext; then
10997 ac_lo=$ac_mid; break
10998 else
10999 echo "$as_me: failed program was:" >&5
11000 sed 's/^/| /' conftest.$ac_ext >&5
11002 ac_hi=`expr '(' $ac_mid ')' - 1`
11003 if test $ac_mid -le $ac_hi; then
11004 ac_lo= ac_hi=
11005 break
11007 ac_mid=`expr 2 '*' $ac_mid`
11010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11011 done
11012 else
11013 echo "$as_me: failed program was:" >&5
11014 sed 's/^/| /' conftest.$ac_ext >&5
11016 ac_lo= ac_hi=
11019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11023 # Binary search between lo and hi bounds.
11024 while test "x$ac_lo" != "x$ac_hi"; do
11025 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11026 cat >conftest.$ac_ext <<_ACEOF
11027 /* confdefs.h. */
11028 _ACEOF
11029 cat confdefs.h >>conftest.$ac_ext
11030 cat >>conftest.$ac_ext <<_ACEOF
11031 /* end confdefs.h. */
11032 $ac_includes_default
11033 typedef pid_t ac__type_sizeof_;
11035 main ()
11037 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11038 test_array [0] = 0
11041 return 0;
11043 _ACEOF
11044 rm -f conftest.$ac_objext
11045 if { (ac_try="$ac_compile"
11046 case "(($ac_try" in
11047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11048 *) ac_try_echo=$ac_try;;
11049 esac
11050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11051 (eval "$ac_compile") 2>conftest.er1
11052 ac_status=$?
11053 grep -v '^ *+' conftest.er1 >conftest.err
11054 rm -f conftest.er1
11055 cat conftest.err >&5
11056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11057 (exit $ac_status); } && {
11058 test -z "$ac_c_werror_flag" ||
11059 test ! -s conftest.err
11060 } && test -s conftest.$ac_objext; then
11061 ac_hi=$ac_mid
11062 else
11063 echo "$as_me: failed program was:" >&5
11064 sed 's/^/| /' conftest.$ac_ext >&5
11066 ac_lo=`expr '(' $ac_mid ')' + 1`
11069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11070 done
11071 case $ac_lo in
11072 ?*) ac_cv_sizeof_pid_t=$ac_lo;;
11073 '') if test "$ac_cv_type_pid_t" = yes; then
11074 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
11075 See \`config.log' for more details." >&5
11076 echo "$as_me: error: cannot compute sizeof (pid_t)
11077 See \`config.log' for more details." >&2;}
11078 { (exit 77); exit 77; }; }
11079 else
11080 ac_cv_sizeof_pid_t=0
11081 fi ;;
11082 esac
11083 else
11084 cat >conftest.$ac_ext <<_ACEOF
11085 /* confdefs.h. */
11086 _ACEOF
11087 cat confdefs.h >>conftest.$ac_ext
11088 cat >>conftest.$ac_ext <<_ACEOF
11089 /* end confdefs.h. */
11090 $ac_includes_default
11091 typedef pid_t ac__type_sizeof_;
11092 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11093 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11094 #include <stdio.h>
11095 #include <stdlib.h>
11097 main ()
11100 FILE *f = fopen ("conftest.val", "w");
11101 if (! f)
11102 return 1;
11103 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11105 long int i = longval ();
11106 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11107 return 1;
11108 fprintf (f, "%ld\n", i);
11110 else
11112 unsigned long int i = ulongval ();
11113 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11114 return 1;
11115 fprintf (f, "%lu\n", i);
11117 return ferror (f) || fclose (f) != 0;
11120 return 0;
11122 _ACEOF
11123 rm -f conftest$ac_exeext
11124 if { (ac_try="$ac_link"
11125 case "(($ac_try" in
11126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11127 *) ac_try_echo=$ac_try;;
11128 esac
11129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11130 (eval "$ac_link") 2>&5
11131 ac_status=$?
11132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11133 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11134 { (case "(($ac_try" in
11135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11136 *) ac_try_echo=$ac_try;;
11137 esac
11138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11139 (eval "$ac_try") 2>&5
11140 ac_status=$?
11141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11142 (exit $ac_status); }; }; then
11143 ac_cv_sizeof_pid_t=`cat conftest.val`
11144 else
11145 echo "$as_me: program exited with status $ac_status" >&5
11146 echo "$as_me: failed program was:" >&5
11147 sed 's/^/| /' conftest.$ac_ext >&5
11149 ( exit $ac_status )
11150 if test "$ac_cv_type_pid_t" = yes; then
11151 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
11152 See \`config.log' for more details." >&5
11153 echo "$as_me: error: cannot compute sizeof (pid_t)
11154 See \`config.log' for more details." >&2;}
11155 { (exit 77); exit 77; }; }
11156 else
11157 ac_cv_sizeof_pid_t=0
11160 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11162 rm -f conftest.val
11164 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pid_t" >&5
11165 echo "${ECHO_T}$ac_cv_sizeof_pid_t" >&6; }
11169 cat >>confdefs.h <<_ACEOF
11170 #define SIZEOF_PID_T $ac_cv_sizeof_pid_t
11171 _ACEOF
11175 { echo "$as_me:$LINENO: checking for long long support" >&5
11176 echo $ECHO_N "checking for long long support... $ECHO_C" >&6; }
11177 have_long_long=no
11178 cat >conftest.$ac_ext <<_ACEOF
11179 /* confdefs.h. */
11180 _ACEOF
11181 cat confdefs.h >>conftest.$ac_ext
11182 cat >>conftest.$ac_ext <<_ACEOF
11183 /* end confdefs.h. */
11186 main ()
11188 long long x; x = (long long)0;
11190 return 0;
11192 _ACEOF
11193 rm -f conftest.$ac_objext
11194 if { (ac_try="$ac_compile"
11195 case "(($ac_try" in
11196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11197 *) ac_try_echo=$ac_try;;
11198 esac
11199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11200 (eval "$ac_compile") 2>conftest.er1
11201 ac_status=$?
11202 grep -v '^ *+' conftest.er1 >conftest.err
11203 rm -f conftest.er1
11204 cat conftest.err >&5
11205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11206 (exit $ac_status); } && {
11207 test -z "$ac_c_werror_flag" ||
11208 test ! -s conftest.err
11209 } && test -s conftest.$ac_objext; then
11212 cat >>confdefs.h <<\_ACEOF
11213 #define HAVE_LONG_LONG 1
11214 _ACEOF
11216 have_long_long=yes
11218 else
11219 echo "$as_me: failed program was:" >&5
11220 sed 's/^/| /' conftest.$ac_ext >&5
11225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11226 { echo "$as_me:$LINENO: result: $have_long_long" >&5
11227 echo "${ECHO_T}$have_long_long" >&6; }
11228 if test "$have_long_long" = yes ; then
11229 { echo "$as_me:$LINENO: checking for long long" >&5
11230 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
11231 if test "${ac_cv_type_long_long+set}" = set; then
11232 echo $ECHO_N "(cached) $ECHO_C" >&6
11233 else
11234 cat >conftest.$ac_ext <<_ACEOF
11235 /* confdefs.h. */
11236 _ACEOF
11237 cat confdefs.h >>conftest.$ac_ext
11238 cat >>conftest.$ac_ext <<_ACEOF
11239 /* end confdefs.h. */
11240 $ac_includes_default
11241 typedef long long ac__type_new_;
11243 main ()
11245 if ((ac__type_new_ *) 0)
11246 return 0;
11247 if (sizeof (ac__type_new_))
11248 return 0;
11250 return 0;
11252 _ACEOF
11253 rm -f conftest.$ac_objext
11254 if { (ac_try="$ac_compile"
11255 case "(($ac_try" in
11256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11257 *) ac_try_echo=$ac_try;;
11258 esac
11259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11260 (eval "$ac_compile") 2>conftest.er1
11261 ac_status=$?
11262 grep -v '^ *+' conftest.er1 >conftest.err
11263 rm -f conftest.er1
11264 cat conftest.err >&5
11265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11266 (exit $ac_status); } && {
11267 test -z "$ac_c_werror_flag" ||
11268 test ! -s conftest.err
11269 } && test -s conftest.$ac_objext; then
11270 ac_cv_type_long_long=yes
11271 else
11272 echo "$as_me: failed program was:" >&5
11273 sed 's/^/| /' conftest.$ac_ext >&5
11275 ac_cv_type_long_long=no
11278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11280 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
11281 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
11283 # The cast to long int works around a bug in the HP C Compiler
11284 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11285 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11286 # This bug is HP SR number 8606223364.
11287 { echo "$as_me:$LINENO: checking size of long long" >&5
11288 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
11289 if test "${ac_cv_sizeof_long_long+set}" = set; then
11290 echo $ECHO_N "(cached) $ECHO_C" >&6
11291 else
11292 if test "$cross_compiling" = yes; then
11293 # Depending upon the size, compute the lo and hi bounds.
11294 cat >conftest.$ac_ext <<_ACEOF
11295 /* confdefs.h. */
11296 _ACEOF
11297 cat confdefs.h >>conftest.$ac_ext
11298 cat >>conftest.$ac_ext <<_ACEOF
11299 /* end confdefs.h. */
11300 $ac_includes_default
11301 typedef long long ac__type_sizeof_;
11303 main ()
11305 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11306 test_array [0] = 0
11309 return 0;
11311 _ACEOF
11312 rm -f conftest.$ac_objext
11313 if { (ac_try="$ac_compile"
11314 case "(($ac_try" in
11315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11316 *) ac_try_echo=$ac_try;;
11317 esac
11318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11319 (eval "$ac_compile") 2>conftest.er1
11320 ac_status=$?
11321 grep -v '^ *+' conftest.er1 >conftest.err
11322 rm -f conftest.er1
11323 cat conftest.err >&5
11324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11325 (exit $ac_status); } && {
11326 test -z "$ac_c_werror_flag" ||
11327 test ! -s conftest.err
11328 } && test -s conftest.$ac_objext; then
11329 ac_lo=0 ac_mid=0
11330 while :; do
11331 cat >conftest.$ac_ext <<_ACEOF
11332 /* confdefs.h. */
11333 _ACEOF
11334 cat confdefs.h >>conftest.$ac_ext
11335 cat >>conftest.$ac_ext <<_ACEOF
11336 /* end confdefs.h. */
11337 $ac_includes_default
11338 typedef long long ac__type_sizeof_;
11340 main ()
11342 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11343 test_array [0] = 0
11346 return 0;
11348 _ACEOF
11349 rm -f conftest.$ac_objext
11350 if { (ac_try="$ac_compile"
11351 case "(($ac_try" in
11352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11353 *) ac_try_echo=$ac_try;;
11354 esac
11355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11356 (eval "$ac_compile") 2>conftest.er1
11357 ac_status=$?
11358 grep -v '^ *+' conftest.er1 >conftest.err
11359 rm -f conftest.er1
11360 cat conftest.err >&5
11361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11362 (exit $ac_status); } && {
11363 test -z "$ac_c_werror_flag" ||
11364 test ! -s conftest.err
11365 } && test -s conftest.$ac_objext; then
11366 ac_hi=$ac_mid; break
11367 else
11368 echo "$as_me: failed program was:" >&5
11369 sed 's/^/| /' conftest.$ac_ext >&5
11371 ac_lo=`expr $ac_mid + 1`
11372 if test $ac_lo -le $ac_mid; then
11373 ac_lo= ac_hi=
11374 break
11376 ac_mid=`expr 2 '*' $ac_mid + 1`
11379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11380 done
11381 else
11382 echo "$as_me: failed program was:" >&5
11383 sed 's/^/| /' conftest.$ac_ext >&5
11385 cat >conftest.$ac_ext <<_ACEOF
11386 /* confdefs.h. */
11387 _ACEOF
11388 cat confdefs.h >>conftest.$ac_ext
11389 cat >>conftest.$ac_ext <<_ACEOF
11390 /* end confdefs.h. */
11391 $ac_includes_default
11392 typedef long long ac__type_sizeof_;
11394 main ()
11396 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11397 test_array [0] = 0
11400 return 0;
11402 _ACEOF
11403 rm -f conftest.$ac_objext
11404 if { (ac_try="$ac_compile"
11405 case "(($ac_try" in
11406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11407 *) ac_try_echo=$ac_try;;
11408 esac
11409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11410 (eval "$ac_compile") 2>conftest.er1
11411 ac_status=$?
11412 grep -v '^ *+' conftest.er1 >conftest.err
11413 rm -f conftest.er1
11414 cat conftest.err >&5
11415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11416 (exit $ac_status); } && {
11417 test -z "$ac_c_werror_flag" ||
11418 test ! -s conftest.err
11419 } && test -s conftest.$ac_objext; then
11420 ac_hi=-1 ac_mid=-1
11421 while :; do
11422 cat >conftest.$ac_ext <<_ACEOF
11423 /* confdefs.h. */
11424 _ACEOF
11425 cat confdefs.h >>conftest.$ac_ext
11426 cat >>conftest.$ac_ext <<_ACEOF
11427 /* end confdefs.h. */
11428 $ac_includes_default
11429 typedef long long ac__type_sizeof_;
11431 main ()
11433 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11434 test_array [0] = 0
11437 return 0;
11439 _ACEOF
11440 rm -f conftest.$ac_objext
11441 if { (ac_try="$ac_compile"
11442 case "(($ac_try" in
11443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11444 *) ac_try_echo=$ac_try;;
11445 esac
11446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11447 (eval "$ac_compile") 2>conftest.er1
11448 ac_status=$?
11449 grep -v '^ *+' conftest.er1 >conftest.err
11450 rm -f conftest.er1
11451 cat conftest.err >&5
11452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11453 (exit $ac_status); } && {
11454 test -z "$ac_c_werror_flag" ||
11455 test ! -s conftest.err
11456 } && test -s conftest.$ac_objext; then
11457 ac_lo=$ac_mid; break
11458 else
11459 echo "$as_me: failed program was:" >&5
11460 sed 's/^/| /' conftest.$ac_ext >&5
11462 ac_hi=`expr '(' $ac_mid ')' - 1`
11463 if test $ac_mid -le $ac_hi; then
11464 ac_lo= ac_hi=
11465 break
11467 ac_mid=`expr 2 '*' $ac_mid`
11470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11471 done
11472 else
11473 echo "$as_me: failed program was:" >&5
11474 sed 's/^/| /' conftest.$ac_ext >&5
11476 ac_lo= ac_hi=
11479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11483 # Binary search between lo and hi bounds.
11484 while test "x$ac_lo" != "x$ac_hi"; do
11485 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11486 cat >conftest.$ac_ext <<_ACEOF
11487 /* confdefs.h. */
11488 _ACEOF
11489 cat confdefs.h >>conftest.$ac_ext
11490 cat >>conftest.$ac_ext <<_ACEOF
11491 /* end confdefs.h. */
11492 $ac_includes_default
11493 typedef long long ac__type_sizeof_;
11495 main ()
11497 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11498 test_array [0] = 0
11501 return 0;
11503 _ACEOF
11504 rm -f conftest.$ac_objext
11505 if { (ac_try="$ac_compile"
11506 case "(($ac_try" in
11507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11508 *) ac_try_echo=$ac_try;;
11509 esac
11510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11511 (eval "$ac_compile") 2>conftest.er1
11512 ac_status=$?
11513 grep -v '^ *+' conftest.er1 >conftest.err
11514 rm -f conftest.er1
11515 cat conftest.err >&5
11516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11517 (exit $ac_status); } && {
11518 test -z "$ac_c_werror_flag" ||
11519 test ! -s conftest.err
11520 } && test -s conftest.$ac_objext; then
11521 ac_hi=$ac_mid
11522 else
11523 echo "$as_me: failed program was:" >&5
11524 sed 's/^/| /' conftest.$ac_ext >&5
11526 ac_lo=`expr '(' $ac_mid ')' + 1`
11529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11530 done
11531 case $ac_lo in
11532 ?*) ac_cv_sizeof_long_long=$ac_lo;;
11533 '') if test "$ac_cv_type_long_long" = yes; then
11534 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
11535 See \`config.log' for more details." >&5
11536 echo "$as_me: error: cannot compute sizeof (long long)
11537 See \`config.log' for more details." >&2;}
11538 { (exit 77); exit 77; }; }
11539 else
11540 ac_cv_sizeof_long_long=0
11541 fi ;;
11542 esac
11543 else
11544 cat >conftest.$ac_ext <<_ACEOF
11545 /* confdefs.h. */
11546 _ACEOF
11547 cat confdefs.h >>conftest.$ac_ext
11548 cat >>conftest.$ac_ext <<_ACEOF
11549 /* end confdefs.h. */
11550 $ac_includes_default
11551 typedef long long ac__type_sizeof_;
11552 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11553 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11554 #include <stdio.h>
11555 #include <stdlib.h>
11557 main ()
11560 FILE *f = fopen ("conftest.val", "w");
11561 if (! f)
11562 return 1;
11563 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11565 long int i = longval ();
11566 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11567 return 1;
11568 fprintf (f, "%ld\n", i);
11570 else
11572 unsigned long int i = ulongval ();
11573 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11574 return 1;
11575 fprintf (f, "%lu\n", i);
11577 return ferror (f) || fclose (f) != 0;
11580 return 0;
11582 _ACEOF
11583 rm -f conftest$ac_exeext
11584 if { (ac_try="$ac_link"
11585 case "(($ac_try" in
11586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11587 *) ac_try_echo=$ac_try;;
11588 esac
11589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11590 (eval "$ac_link") 2>&5
11591 ac_status=$?
11592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11593 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11594 { (case "(($ac_try" in
11595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11596 *) ac_try_echo=$ac_try;;
11597 esac
11598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11599 (eval "$ac_try") 2>&5
11600 ac_status=$?
11601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11602 (exit $ac_status); }; }; then
11603 ac_cv_sizeof_long_long=`cat conftest.val`
11604 else
11605 echo "$as_me: program exited with status $ac_status" >&5
11606 echo "$as_me: failed program was:" >&5
11607 sed 's/^/| /' conftest.$ac_ext >&5
11609 ( exit $ac_status )
11610 if test "$ac_cv_type_long_long" = yes; then
11611 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
11612 See \`config.log' for more details." >&5
11613 echo "$as_me: error: cannot compute sizeof (long long)
11614 See \`config.log' for more details." >&2;}
11615 { (exit 77); exit 77; }; }
11616 else
11617 ac_cv_sizeof_long_long=0
11620 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11622 rm -f conftest.val
11624 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
11625 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
11629 cat >>confdefs.h <<_ACEOF
11630 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11631 _ACEOF
11636 { echo "$as_me:$LINENO: checking for long double support" >&5
11637 echo $ECHO_N "checking for long double support... $ECHO_C" >&6; }
11638 have_long_double=no
11639 cat >conftest.$ac_ext <<_ACEOF
11640 /* confdefs.h. */
11641 _ACEOF
11642 cat confdefs.h >>conftest.$ac_ext
11643 cat >>conftest.$ac_ext <<_ACEOF
11644 /* end confdefs.h. */
11647 main ()
11649 long double x; x = (long double)0;
11651 return 0;
11653 _ACEOF
11654 rm -f conftest.$ac_objext
11655 if { (ac_try="$ac_compile"
11656 case "(($ac_try" in
11657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11658 *) ac_try_echo=$ac_try;;
11659 esac
11660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11661 (eval "$ac_compile") 2>conftest.er1
11662 ac_status=$?
11663 grep -v '^ *+' conftest.er1 >conftest.err
11664 rm -f conftest.er1
11665 cat conftest.err >&5
11666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11667 (exit $ac_status); } && {
11668 test -z "$ac_c_werror_flag" ||
11669 test ! -s conftest.err
11670 } && test -s conftest.$ac_objext; then
11673 cat >>confdefs.h <<\_ACEOF
11674 #define HAVE_LONG_DOUBLE 1
11675 _ACEOF
11677 have_long_double=yes
11679 else
11680 echo "$as_me: failed program was:" >&5
11681 sed 's/^/| /' conftest.$ac_ext >&5
11686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11687 { echo "$as_me:$LINENO: result: $have_long_double" >&5
11688 echo "${ECHO_T}$have_long_double" >&6; }
11689 if test "$have_long_double" = yes ; then
11690 { echo "$as_me:$LINENO: checking for long double" >&5
11691 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
11692 if test "${ac_cv_type_long_double+set}" = set; then
11693 echo $ECHO_N "(cached) $ECHO_C" >&6
11694 else
11695 cat >conftest.$ac_ext <<_ACEOF
11696 /* confdefs.h. */
11697 _ACEOF
11698 cat confdefs.h >>conftest.$ac_ext
11699 cat >>conftest.$ac_ext <<_ACEOF
11700 /* end confdefs.h. */
11701 $ac_includes_default
11702 typedef long double ac__type_new_;
11704 main ()
11706 if ((ac__type_new_ *) 0)
11707 return 0;
11708 if (sizeof (ac__type_new_))
11709 return 0;
11711 return 0;
11713 _ACEOF
11714 rm -f conftest.$ac_objext
11715 if { (ac_try="$ac_compile"
11716 case "(($ac_try" in
11717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11718 *) ac_try_echo=$ac_try;;
11719 esac
11720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11721 (eval "$ac_compile") 2>conftest.er1
11722 ac_status=$?
11723 grep -v '^ *+' conftest.er1 >conftest.err
11724 rm -f conftest.er1
11725 cat conftest.err >&5
11726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11727 (exit $ac_status); } && {
11728 test -z "$ac_c_werror_flag" ||
11729 test ! -s conftest.err
11730 } && test -s conftest.$ac_objext; then
11731 ac_cv_type_long_double=yes
11732 else
11733 echo "$as_me: failed program was:" >&5
11734 sed 's/^/| /' conftest.$ac_ext >&5
11736 ac_cv_type_long_double=no
11739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11741 { echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
11742 echo "${ECHO_T}$ac_cv_type_long_double" >&6; }
11744 # The cast to long int works around a bug in the HP C Compiler
11745 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11746 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11747 # This bug is HP SR number 8606223364.
11748 { echo "$as_me:$LINENO: checking size of long double" >&5
11749 echo $ECHO_N "checking size of long double... $ECHO_C" >&6; }
11750 if test "${ac_cv_sizeof_long_double+set}" = set; then
11751 echo $ECHO_N "(cached) $ECHO_C" >&6
11752 else
11753 if test "$cross_compiling" = yes; then
11754 # Depending upon the size, compute the lo and hi bounds.
11755 cat >conftest.$ac_ext <<_ACEOF
11756 /* confdefs.h. */
11757 _ACEOF
11758 cat confdefs.h >>conftest.$ac_ext
11759 cat >>conftest.$ac_ext <<_ACEOF
11760 /* end confdefs.h. */
11761 $ac_includes_default
11762 typedef long double ac__type_sizeof_;
11764 main ()
11766 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11767 test_array [0] = 0
11770 return 0;
11772 _ACEOF
11773 rm -f conftest.$ac_objext
11774 if { (ac_try="$ac_compile"
11775 case "(($ac_try" in
11776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11777 *) ac_try_echo=$ac_try;;
11778 esac
11779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11780 (eval "$ac_compile") 2>conftest.er1
11781 ac_status=$?
11782 grep -v '^ *+' conftest.er1 >conftest.err
11783 rm -f conftest.er1
11784 cat conftest.err >&5
11785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786 (exit $ac_status); } && {
11787 test -z "$ac_c_werror_flag" ||
11788 test ! -s conftest.err
11789 } && test -s conftest.$ac_objext; then
11790 ac_lo=0 ac_mid=0
11791 while :; do
11792 cat >conftest.$ac_ext <<_ACEOF
11793 /* confdefs.h. */
11794 _ACEOF
11795 cat confdefs.h >>conftest.$ac_ext
11796 cat >>conftest.$ac_ext <<_ACEOF
11797 /* end confdefs.h. */
11798 $ac_includes_default
11799 typedef long double ac__type_sizeof_;
11801 main ()
11803 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11804 test_array [0] = 0
11807 return 0;
11809 _ACEOF
11810 rm -f conftest.$ac_objext
11811 if { (ac_try="$ac_compile"
11812 case "(($ac_try" in
11813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11814 *) ac_try_echo=$ac_try;;
11815 esac
11816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11817 (eval "$ac_compile") 2>conftest.er1
11818 ac_status=$?
11819 grep -v '^ *+' conftest.er1 >conftest.err
11820 rm -f conftest.er1
11821 cat conftest.err >&5
11822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11823 (exit $ac_status); } && {
11824 test -z "$ac_c_werror_flag" ||
11825 test ! -s conftest.err
11826 } && test -s conftest.$ac_objext; then
11827 ac_hi=$ac_mid; break
11828 else
11829 echo "$as_me: failed program was:" >&5
11830 sed 's/^/| /' conftest.$ac_ext >&5
11832 ac_lo=`expr $ac_mid + 1`
11833 if test $ac_lo -le $ac_mid; then
11834 ac_lo= ac_hi=
11835 break
11837 ac_mid=`expr 2 '*' $ac_mid + 1`
11840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11841 done
11842 else
11843 echo "$as_me: failed program was:" >&5
11844 sed 's/^/| /' conftest.$ac_ext >&5
11846 cat >conftest.$ac_ext <<_ACEOF
11847 /* confdefs.h. */
11848 _ACEOF
11849 cat confdefs.h >>conftest.$ac_ext
11850 cat >>conftest.$ac_ext <<_ACEOF
11851 /* end confdefs.h. */
11852 $ac_includes_default
11853 typedef long double ac__type_sizeof_;
11855 main ()
11857 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11858 test_array [0] = 0
11861 return 0;
11863 _ACEOF
11864 rm -f conftest.$ac_objext
11865 if { (ac_try="$ac_compile"
11866 case "(($ac_try" in
11867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11868 *) ac_try_echo=$ac_try;;
11869 esac
11870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11871 (eval "$ac_compile") 2>conftest.er1
11872 ac_status=$?
11873 grep -v '^ *+' conftest.er1 >conftest.err
11874 rm -f conftest.er1
11875 cat conftest.err >&5
11876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11877 (exit $ac_status); } && {
11878 test -z "$ac_c_werror_flag" ||
11879 test ! -s conftest.err
11880 } && test -s conftest.$ac_objext; then
11881 ac_hi=-1 ac_mid=-1
11882 while :; do
11883 cat >conftest.$ac_ext <<_ACEOF
11884 /* confdefs.h. */
11885 _ACEOF
11886 cat confdefs.h >>conftest.$ac_ext
11887 cat >>conftest.$ac_ext <<_ACEOF
11888 /* end confdefs.h. */
11889 $ac_includes_default
11890 typedef long double ac__type_sizeof_;
11892 main ()
11894 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11895 test_array [0] = 0
11898 return 0;
11900 _ACEOF
11901 rm -f conftest.$ac_objext
11902 if { (ac_try="$ac_compile"
11903 case "(($ac_try" in
11904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11905 *) ac_try_echo=$ac_try;;
11906 esac
11907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11908 (eval "$ac_compile") 2>conftest.er1
11909 ac_status=$?
11910 grep -v '^ *+' conftest.er1 >conftest.err
11911 rm -f conftest.er1
11912 cat conftest.err >&5
11913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11914 (exit $ac_status); } && {
11915 test -z "$ac_c_werror_flag" ||
11916 test ! -s conftest.err
11917 } && test -s conftest.$ac_objext; then
11918 ac_lo=$ac_mid; break
11919 else
11920 echo "$as_me: failed program was:" >&5
11921 sed 's/^/| /' conftest.$ac_ext >&5
11923 ac_hi=`expr '(' $ac_mid ')' - 1`
11924 if test $ac_mid -le $ac_hi; then
11925 ac_lo= ac_hi=
11926 break
11928 ac_mid=`expr 2 '*' $ac_mid`
11931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11932 done
11933 else
11934 echo "$as_me: failed program was:" >&5
11935 sed 's/^/| /' conftest.$ac_ext >&5
11937 ac_lo= ac_hi=
11940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11944 # Binary search between lo and hi bounds.
11945 while test "x$ac_lo" != "x$ac_hi"; do
11946 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11947 cat >conftest.$ac_ext <<_ACEOF
11948 /* confdefs.h. */
11949 _ACEOF
11950 cat confdefs.h >>conftest.$ac_ext
11951 cat >>conftest.$ac_ext <<_ACEOF
11952 /* end confdefs.h. */
11953 $ac_includes_default
11954 typedef long double ac__type_sizeof_;
11956 main ()
11958 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11959 test_array [0] = 0
11962 return 0;
11964 _ACEOF
11965 rm -f conftest.$ac_objext
11966 if { (ac_try="$ac_compile"
11967 case "(($ac_try" in
11968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11969 *) ac_try_echo=$ac_try;;
11970 esac
11971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11972 (eval "$ac_compile") 2>conftest.er1
11973 ac_status=$?
11974 grep -v '^ *+' conftest.er1 >conftest.err
11975 rm -f conftest.er1
11976 cat conftest.err >&5
11977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978 (exit $ac_status); } && {
11979 test -z "$ac_c_werror_flag" ||
11980 test ! -s conftest.err
11981 } && test -s conftest.$ac_objext; then
11982 ac_hi=$ac_mid
11983 else
11984 echo "$as_me: failed program was:" >&5
11985 sed 's/^/| /' conftest.$ac_ext >&5
11987 ac_lo=`expr '(' $ac_mid ')' + 1`
11990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11991 done
11992 case $ac_lo in
11993 ?*) ac_cv_sizeof_long_double=$ac_lo;;
11994 '') if test "$ac_cv_type_long_double" = yes; then
11995 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
11996 See \`config.log' for more details." >&5
11997 echo "$as_me: error: cannot compute sizeof (long double)
11998 See \`config.log' for more details." >&2;}
11999 { (exit 77); exit 77; }; }
12000 else
12001 ac_cv_sizeof_long_double=0
12002 fi ;;
12003 esac
12004 else
12005 cat >conftest.$ac_ext <<_ACEOF
12006 /* confdefs.h. */
12007 _ACEOF
12008 cat confdefs.h >>conftest.$ac_ext
12009 cat >>conftest.$ac_ext <<_ACEOF
12010 /* end confdefs.h. */
12011 $ac_includes_default
12012 typedef long double ac__type_sizeof_;
12013 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12014 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12015 #include <stdio.h>
12016 #include <stdlib.h>
12018 main ()
12021 FILE *f = fopen ("conftest.val", "w");
12022 if (! f)
12023 return 1;
12024 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12026 long int i = longval ();
12027 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12028 return 1;
12029 fprintf (f, "%ld\n", i);
12031 else
12033 unsigned long int i = ulongval ();
12034 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12035 return 1;
12036 fprintf (f, "%lu\n", i);
12038 return ferror (f) || fclose (f) != 0;
12041 return 0;
12043 _ACEOF
12044 rm -f conftest$ac_exeext
12045 if { (ac_try="$ac_link"
12046 case "(($ac_try" in
12047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12048 *) ac_try_echo=$ac_try;;
12049 esac
12050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12051 (eval "$ac_link") 2>&5
12052 ac_status=$?
12053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12054 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12055 { (case "(($ac_try" in
12056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12057 *) ac_try_echo=$ac_try;;
12058 esac
12059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12060 (eval "$ac_try") 2>&5
12061 ac_status=$?
12062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12063 (exit $ac_status); }; }; then
12064 ac_cv_sizeof_long_double=`cat conftest.val`
12065 else
12066 echo "$as_me: program exited with status $ac_status" >&5
12067 echo "$as_me: failed program was:" >&5
12068 sed 's/^/| /' conftest.$ac_ext >&5
12070 ( exit $ac_status )
12071 if test "$ac_cv_type_long_double" = yes; then
12072 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
12073 See \`config.log' for more details." >&5
12074 echo "$as_me: error: cannot compute sizeof (long double)
12075 See \`config.log' for more details." >&2;}
12076 { (exit 77); exit 77; }; }
12077 else
12078 ac_cv_sizeof_long_double=0
12081 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12083 rm -f conftest.val
12085 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
12086 echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6; }
12090 cat >>confdefs.h <<_ACEOF
12091 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
12092 _ACEOF
12098 { echo "$as_me:$LINENO: checking for _Bool support" >&5
12099 echo $ECHO_N "checking for _Bool support... $ECHO_C" >&6; }
12100 have_c99_bool=no
12101 cat >conftest.$ac_ext <<_ACEOF
12102 /* confdefs.h. */
12103 _ACEOF
12104 cat confdefs.h >>conftest.$ac_ext
12105 cat >>conftest.$ac_ext <<_ACEOF
12106 /* end confdefs.h. */
12109 main ()
12111 _Bool x; x = (_Bool)0;
12113 return 0;
12115 _ACEOF
12116 rm -f conftest.$ac_objext
12117 if { (ac_try="$ac_compile"
12118 case "(($ac_try" in
12119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12120 *) ac_try_echo=$ac_try;;
12121 esac
12122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12123 (eval "$ac_compile") 2>conftest.er1
12124 ac_status=$?
12125 grep -v '^ *+' conftest.er1 >conftest.err
12126 rm -f conftest.er1
12127 cat conftest.err >&5
12128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12129 (exit $ac_status); } && {
12130 test -z "$ac_c_werror_flag" ||
12131 test ! -s conftest.err
12132 } && test -s conftest.$ac_objext; then
12135 cat >>confdefs.h <<\_ACEOF
12136 #define HAVE_C99_BOOL 1
12137 _ACEOF
12139 have_c99_bool=yes
12141 else
12142 echo "$as_me: failed program was:" >&5
12143 sed 's/^/| /' conftest.$ac_ext >&5
12148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12149 { echo "$as_me:$LINENO: result: $have_c99_bool" >&5
12150 echo "${ECHO_T}$have_c99_bool" >&6; }
12151 if test "$have_c99_bool" = yes ; then
12152 { echo "$as_me:$LINENO: checking for _Bool" >&5
12153 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
12154 if test "${ac_cv_type__Bool+set}" = set; then
12155 echo $ECHO_N "(cached) $ECHO_C" >&6
12156 else
12157 cat >conftest.$ac_ext <<_ACEOF
12158 /* confdefs.h. */
12159 _ACEOF
12160 cat confdefs.h >>conftest.$ac_ext
12161 cat >>conftest.$ac_ext <<_ACEOF
12162 /* end confdefs.h. */
12163 $ac_includes_default
12164 typedef _Bool ac__type_new_;
12166 main ()
12168 if ((ac__type_new_ *) 0)
12169 return 0;
12170 if (sizeof (ac__type_new_))
12171 return 0;
12173 return 0;
12175 _ACEOF
12176 rm -f conftest.$ac_objext
12177 if { (ac_try="$ac_compile"
12178 case "(($ac_try" in
12179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12180 *) ac_try_echo=$ac_try;;
12181 esac
12182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12183 (eval "$ac_compile") 2>conftest.er1
12184 ac_status=$?
12185 grep -v '^ *+' conftest.er1 >conftest.err
12186 rm -f conftest.er1
12187 cat conftest.err >&5
12188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12189 (exit $ac_status); } && {
12190 test -z "$ac_c_werror_flag" ||
12191 test ! -s conftest.err
12192 } && test -s conftest.$ac_objext; then
12193 ac_cv_type__Bool=yes
12194 else
12195 echo "$as_me: failed program was:" >&5
12196 sed 's/^/| /' conftest.$ac_ext >&5
12198 ac_cv_type__Bool=no
12201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12203 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
12204 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
12206 # The cast to long int works around a bug in the HP C Compiler
12207 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12208 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12209 # This bug is HP SR number 8606223364.
12210 { echo "$as_me:$LINENO: checking size of _Bool" >&5
12211 echo $ECHO_N "checking size of _Bool... $ECHO_C" >&6; }
12212 if test "${ac_cv_sizeof__Bool+set}" = set; then
12213 echo $ECHO_N "(cached) $ECHO_C" >&6
12214 else
12215 if test "$cross_compiling" = yes; then
12216 # Depending upon the size, compute the lo and hi bounds.
12217 cat >conftest.$ac_ext <<_ACEOF
12218 /* confdefs.h. */
12219 _ACEOF
12220 cat confdefs.h >>conftest.$ac_ext
12221 cat >>conftest.$ac_ext <<_ACEOF
12222 /* end confdefs.h. */
12223 $ac_includes_default
12224 typedef _Bool ac__type_sizeof_;
12226 main ()
12228 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12229 test_array [0] = 0
12232 return 0;
12234 _ACEOF
12235 rm -f conftest.$ac_objext
12236 if { (ac_try="$ac_compile"
12237 case "(($ac_try" in
12238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12239 *) ac_try_echo=$ac_try;;
12240 esac
12241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12242 (eval "$ac_compile") 2>conftest.er1
12243 ac_status=$?
12244 grep -v '^ *+' conftest.er1 >conftest.err
12245 rm -f conftest.er1
12246 cat conftest.err >&5
12247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12248 (exit $ac_status); } && {
12249 test -z "$ac_c_werror_flag" ||
12250 test ! -s conftest.err
12251 } && test -s conftest.$ac_objext; then
12252 ac_lo=0 ac_mid=0
12253 while :; do
12254 cat >conftest.$ac_ext <<_ACEOF
12255 /* confdefs.h. */
12256 _ACEOF
12257 cat confdefs.h >>conftest.$ac_ext
12258 cat >>conftest.$ac_ext <<_ACEOF
12259 /* end confdefs.h. */
12260 $ac_includes_default
12261 typedef _Bool ac__type_sizeof_;
12263 main ()
12265 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12266 test_array [0] = 0
12269 return 0;
12271 _ACEOF
12272 rm -f conftest.$ac_objext
12273 if { (ac_try="$ac_compile"
12274 case "(($ac_try" in
12275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12276 *) ac_try_echo=$ac_try;;
12277 esac
12278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12279 (eval "$ac_compile") 2>conftest.er1
12280 ac_status=$?
12281 grep -v '^ *+' conftest.er1 >conftest.err
12282 rm -f conftest.er1
12283 cat conftest.err >&5
12284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12285 (exit $ac_status); } && {
12286 test -z "$ac_c_werror_flag" ||
12287 test ! -s conftest.err
12288 } && test -s conftest.$ac_objext; then
12289 ac_hi=$ac_mid; break
12290 else
12291 echo "$as_me: failed program was:" >&5
12292 sed 's/^/| /' conftest.$ac_ext >&5
12294 ac_lo=`expr $ac_mid + 1`
12295 if test $ac_lo -le $ac_mid; then
12296 ac_lo= ac_hi=
12297 break
12299 ac_mid=`expr 2 '*' $ac_mid + 1`
12302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12303 done
12304 else
12305 echo "$as_me: failed program was:" >&5
12306 sed 's/^/| /' conftest.$ac_ext >&5
12308 cat >conftest.$ac_ext <<_ACEOF
12309 /* confdefs.h. */
12310 _ACEOF
12311 cat confdefs.h >>conftest.$ac_ext
12312 cat >>conftest.$ac_ext <<_ACEOF
12313 /* end confdefs.h. */
12314 $ac_includes_default
12315 typedef _Bool ac__type_sizeof_;
12317 main ()
12319 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12320 test_array [0] = 0
12323 return 0;
12325 _ACEOF
12326 rm -f conftest.$ac_objext
12327 if { (ac_try="$ac_compile"
12328 case "(($ac_try" in
12329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12330 *) ac_try_echo=$ac_try;;
12331 esac
12332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12333 (eval "$ac_compile") 2>conftest.er1
12334 ac_status=$?
12335 grep -v '^ *+' conftest.er1 >conftest.err
12336 rm -f conftest.er1
12337 cat conftest.err >&5
12338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12339 (exit $ac_status); } && {
12340 test -z "$ac_c_werror_flag" ||
12341 test ! -s conftest.err
12342 } && test -s conftest.$ac_objext; then
12343 ac_hi=-1 ac_mid=-1
12344 while :; do
12345 cat >conftest.$ac_ext <<_ACEOF
12346 /* confdefs.h. */
12347 _ACEOF
12348 cat confdefs.h >>conftest.$ac_ext
12349 cat >>conftest.$ac_ext <<_ACEOF
12350 /* end confdefs.h. */
12351 $ac_includes_default
12352 typedef _Bool ac__type_sizeof_;
12354 main ()
12356 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12357 test_array [0] = 0
12360 return 0;
12362 _ACEOF
12363 rm -f conftest.$ac_objext
12364 if { (ac_try="$ac_compile"
12365 case "(($ac_try" in
12366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12367 *) ac_try_echo=$ac_try;;
12368 esac
12369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12370 (eval "$ac_compile") 2>conftest.er1
12371 ac_status=$?
12372 grep -v '^ *+' conftest.er1 >conftest.err
12373 rm -f conftest.er1
12374 cat conftest.err >&5
12375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12376 (exit $ac_status); } && {
12377 test -z "$ac_c_werror_flag" ||
12378 test ! -s conftest.err
12379 } && test -s conftest.$ac_objext; then
12380 ac_lo=$ac_mid; break
12381 else
12382 echo "$as_me: failed program was:" >&5
12383 sed 's/^/| /' conftest.$ac_ext >&5
12385 ac_hi=`expr '(' $ac_mid ')' - 1`
12386 if test $ac_mid -le $ac_hi; then
12387 ac_lo= ac_hi=
12388 break
12390 ac_mid=`expr 2 '*' $ac_mid`
12393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12394 done
12395 else
12396 echo "$as_me: failed program was:" >&5
12397 sed 's/^/| /' conftest.$ac_ext >&5
12399 ac_lo= ac_hi=
12402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12406 # Binary search between lo and hi bounds.
12407 while test "x$ac_lo" != "x$ac_hi"; do
12408 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12409 cat >conftest.$ac_ext <<_ACEOF
12410 /* confdefs.h. */
12411 _ACEOF
12412 cat confdefs.h >>conftest.$ac_ext
12413 cat >>conftest.$ac_ext <<_ACEOF
12414 /* end confdefs.h. */
12415 $ac_includes_default
12416 typedef _Bool ac__type_sizeof_;
12418 main ()
12420 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12421 test_array [0] = 0
12424 return 0;
12426 _ACEOF
12427 rm -f conftest.$ac_objext
12428 if { (ac_try="$ac_compile"
12429 case "(($ac_try" in
12430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12431 *) ac_try_echo=$ac_try;;
12432 esac
12433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12434 (eval "$ac_compile") 2>conftest.er1
12435 ac_status=$?
12436 grep -v '^ *+' conftest.er1 >conftest.err
12437 rm -f conftest.er1
12438 cat conftest.err >&5
12439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12440 (exit $ac_status); } && {
12441 test -z "$ac_c_werror_flag" ||
12442 test ! -s conftest.err
12443 } && test -s conftest.$ac_objext; then
12444 ac_hi=$ac_mid
12445 else
12446 echo "$as_me: failed program was:" >&5
12447 sed 's/^/| /' conftest.$ac_ext >&5
12449 ac_lo=`expr '(' $ac_mid ')' + 1`
12452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12453 done
12454 case $ac_lo in
12455 ?*) ac_cv_sizeof__Bool=$ac_lo;;
12456 '') if test "$ac_cv_type__Bool" = yes; then
12457 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
12458 See \`config.log' for more details." >&5
12459 echo "$as_me: error: cannot compute sizeof (_Bool)
12460 See \`config.log' for more details." >&2;}
12461 { (exit 77); exit 77; }; }
12462 else
12463 ac_cv_sizeof__Bool=0
12464 fi ;;
12465 esac
12466 else
12467 cat >conftest.$ac_ext <<_ACEOF
12468 /* confdefs.h. */
12469 _ACEOF
12470 cat confdefs.h >>conftest.$ac_ext
12471 cat >>conftest.$ac_ext <<_ACEOF
12472 /* end confdefs.h. */
12473 $ac_includes_default
12474 typedef _Bool ac__type_sizeof_;
12475 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12476 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12477 #include <stdio.h>
12478 #include <stdlib.h>
12480 main ()
12483 FILE *f = fopen ("conftest.val", "w");
12484 if (! f)
12485 return 1;
12486 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12488 long int i = longval ();
12489 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12490 return 1;
12491 fprintf (f, "%ld\n", i);
12493 else
12495 unsigned long int i = ulongval ();
12496 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12497 return 1;
12498 fprintf (f, "%lu\n", i);
12500 return ferror (f) || fclose (f) != 0;
12503 return 0;
12505 _ACEOF
12506 rm -f conftest$ac_exeext
12507 if { (ac_try="$ac_link"
12508 case "(($ac_try" in
12509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12510 *) ac_try_echo=$ac_try;;
12511 esac
12512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12513 (eval "$ac_link") 2>&5
12514 ac_status=$?
12515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12516 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12517 { (case "(($ac_try" in
12518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12519 *) ac_try_echo=$ac_try;;
12520 esac
12521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12522 (eval "$ac_try") 2>&5
12523 ac_status=$?
12524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12525 (exit $ac_status); }; }; then
12526 ac_cv_sizeof__Bool=`cat conftest.val`
12527 else
12528 echo "$as_me: program exited with status $ac_status" >&5
12529 echo "$as_me: failed program was:" >&5
12530 sed 's/^/| /' conftest.$ac_ext >&5
12532 ( exit $ac_status )
12533 if test "$ac_cv_type__Bool" = yes; then
12534 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
12535 See \`config.log' for more details." >&5
12536 echo "$as_me: error: cannot compute sizeof (_Bool)
12537 See \`config.log' for more details." >&2;}
12538 { (exit 77); exit 77; }; }
12539 else
12540 ac_cv_sizeof__Bool=0
12543 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12545 rm -f conftest.val
12547 { echo "$as_me:$LINENO: result: $ac_cv_sizeof__Bool" >&5
12548 echo "${ECHO_T}$ac_cv_sizeof__Bool" >&6; }
12552 cat >>confdefs.h <<_ACEOF
12553 #define SIZEOF__BOOL $ac_cv_sizeof__Bool
12554 _ACEOF
12559 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
12560 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
12561 if test "${ac_cv_type_uintptr_t+set}" = set; then
12562 echo $ECHO_N "(cached) $ECHO_C" >&6
12563 else
12564 cat >conftest.$ac_ext <<_ACEOF
12565 /* confdefs.h. */
12566 _ACEOF
12567 cat confdefs.h >>conftest.$ac_ext
12568 cat >>conftest.$ac_ext <<_ACEOF
12569 /* end confdefs.h. */
12570 #ifdef HAVE_STDINT_H
12571 #include <stdint.h>
12572 #endif
12574 typedef uintptr_t ac__type_new_;
12576 main ()
12578 if ((ac__type_new_ *) 0)
12579 return 0;
12580 if (sizeof (ac__type_new_))
12581 return 0;
12583 return 0;
12585 _ACEOF
12586 rm -f conftest.$ac_objext
12587 if { (ac_try="$ac_compile"
12588 case "(($ac_try" in
12589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12590 *) ac_try_echo=$ac_try;;
12591 esac
12592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12593 (eval "$ac_compile") 2>conftest.er1
12594 ac_status=$?
12595 grep -v '^ *+' conftest.er1 >conftest.err
12596 rm -f conftest.er1
12597 cat conftest.err >&5
12598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12599 (exit $ac_status); } && {
12600 test -z "$ac_c_werror_flag" ||
12601 test ! -s conftest.err
12602 } && test -s conftest.$ac_objext; then
12603 ac_cv_type_uintptr_t=yes
12604 else
12605 echo "$as_me: failed program was:" >&5
12606 sed 's/^/| /' conftest.$ac_ext >&5
12608 ac_cv_type_uintptr_t=no
12611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12613 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12614 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12615 if test $ac_cv_type_uintptr_t = yes; then
12617 cat >>confdefs.h <<_ACEOF
12618 #define HAVE_UINTPTR_T 1
12619 _ACEOF
12621 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
12622 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
12623 if test "${ac_cv_type_uintptr_t+set}" = set; then
12624 echo $ECHO_N "(cached) $ECHO_C" >&6
12625 else
12626 cat >conftest.$ac_ext <<_ACEOF
12627 /* confdefs.h. */
12628 _ACEOF
12629 cat confdefs.h >>conftest.$ac_ext
12630 cat >>conftest.$ac_ext <<_ACEOF
12631 /* end confdefs.h. */
12632 $ac_includes_default
12633 typedef uintptr_t ac__type_new_;
12635 main ()
12637 if ((ac__type_new_ *) 0)
12638 return 0;
12639 if (sizeof (ac__type_new_))
12640 return 0;
12642 return 0;
12644 _ACEOF
12645 rm -f conftest.$ac_objext
12646 if { (ac_try="$ac_compile"
12647 case "(($ac_try" in
12648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12649 *) ac_try_echo=$ac_try;;
12650 esac
12651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12652 (eval "$ac_compile") 2>conftest.er1
12653 ac_status=$?
12654 grep -v '^ *+' conftest.er1 >conftest.err
12655 rm -f conftest.er1
12656 cat conftest.err >&5
12657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658 (exit $ac_status); } && {
12659 test -z "$ac_c_werror_flag" ||
12660 test ! -s conftest.err
12661 } && test -s conftest.$ac_objext; then
12662 ac_cv_type_uintptr_t=yes
12663 else
12664 echo "$as_me: failed program was:" >&5
12665 sed 's/^/| /' conftest.$ac_ext >&5
12667 ac_cv_type_uintptr_t=no
12670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12672 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12673 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12675 # The cast to long int works around a bug in the HP C Compiler
12676 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12677 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12678 # This bug is HP SR number 8606223364.
12679 { echo "$as_me:$LINENO: checking size of uintptr_t" >&5
12680 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6; }
12681 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
12682 echo $ECHO_N "(cached) $ECHO_C" >&6
12683 else
12684 if test "$cross_compiling" = yes; then
12685 # Depending upon the size, compute the lo and hi bounds.
12686 cat >conftest.$ac_ext <<_ACEOF
12687 /* confdefs.h. */
12688 _ACEOF
12689 cat confdefs.h >>conftest.$ac_ext
12690 cat >>conftest.$ac_ext <<_ACEOF
12691 /* end confdefs.h. */
12692 $ac_includes_default
12693 typedef uintptr_t ac__type_sizeof_;
12695 main ()
12697 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12698 test_array [0] = 0
12701 return 0;
12703 _ACEOF
12704 rm -f conftest.$ac_objext
12705 if { (ac_try="$ac_compile"
12706 case "(($ac_try" in
12707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12708 *) ac_try_echo=$ac_try;;
12709 esac
12710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12711 (eval "$ac_compile") 2>conftest.er1
12712 ac_status=$?
12713 grep -v '^ *+' conftest.er1 >conftest.err
12714 rm -f conftest.er1
12715 cat conftest.err >&5
12716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12717 (exit $ac_status); } && {
12718 test -z "$ac_c_werror_flag" ||
12719 test ! -s conftest.err
12720 } && test -s conftest.$ac_objext; then
12721 ac_lo=0 ac_mid=0
12722 while :; do
12723 cat >conftest.$ac_ext <<_ACEOF
12724 /* confdefs.h. */
12725 _ACEOF
12726 cat confdefs.h >>conftest.$ac_ext
12727 cat >>conftest.$ac_ext <<_ACEOF
12728 /* end confdefs.h. */
12729 $ac_includes_default
12730 typedef uintptr_t ac__type_sizeof_;
12732 main ()
12734 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12735 test_array [0] = 0
12738 return 0;
12740 _ACEOF
12741 rm -f conftest.$ac_objext
12742 if { (ac_try="$ac_compile"
12743 case "(($ac_try" in
12744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12745 *) ac_try_echo=$ac_try;;
12746 esac
12747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12748 (eval "$ac_compile") 2>conftest.er1
12749 ac_status=$?
12750 grep -v '^ *+' conftest.er1 >conftest.err
12751 rm -f conftest.er1
12752 cat conftest.err >&5
12753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12754 (exit $ac_status); } && {
12755 test -z "$ac_c_werror_flag" ||
12756 test ! -s conftest.err
12757 } && test -s conftest.$ac_objext; then
12758 ac_hi=$ac_mid; break
12759 else
12760 echo "$as_me: failed program was:" >&5
12761 sed 's/^/| /' conftest.$ac_ext >&5
12763 ac_lo=`expr $ac_mid + 1`
12764 if test $ac_lo -le $ac_mid; then
12765 ac_lo= ac_hi=
12766 break
12768 ac_mid=`expr 2 '*' $ac_mid + 1`
12771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12772 done
12773 else
12774 echo "$as_me: failed program was:" >&5
12775 sed 's/^/| /' conftest.$ac_ext >&5
12777 cat >conftest.$ac_ext <<_ACEOF
12778 /* confdefs.h. */
12779 _ACEOF
12780 cat confdefs.h >>conftest.$ac_ext
12781 cat >>conftest.$ac_ext <<_ACEOF
12782 /* end confdefs.h. */
12783 $ac_includes_default
12784 typedef uintptr_t ac__type_sizeof_;
12786 main ()
12788 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12789 test_array [0] = 0
12792 return 0;
12794 _ACEOF
12795 rm -f conftest.$ac_objext
12796 if { (ac_try="$ac_compile"
12797 case "(($ac_try" in
12798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12799 *) ac_try_echo=$ac_try;;
12800 esac
12801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12802 (eval "$ac_compile") 2>conftest.er1
12803 ac_status=$?
12804 grep -v '^ *+' conftest.er1 >conftest.err
12805 rm -f conftest.er1
12806 cat conftest.err >&5
12807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12808 (exit $ac_status); } && {
12809 test -z "$ac_c_werror_flag" ||
12810 test ! -s conftest.err
12811 } && test -s conftest.$ac_objext; then
12812 ac_hi=-1 ac_mid=-1
12813 while :; do
12814 cat >conftest.$ac_ext <<_ACEOF
12815 /* confdefs.h. */
12816 _ACEOF
12817 cat confdefs.h >>conftest.$ac_ext
12818 cat >>conftest.$ac_ext <<_ACEOF
12819 /* end confdefs.h. */
12820 $ac_includes_default
12821 typedef uintptr_t ac__type_sizeof_;
12823 main ()
12825 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12826 test_array [0] = 0
12829 return 0;
12831 _ACEOF
12832 rm -f conftest.$ac_objext
12833 if { (ac_try="$ac_compile"
12834 case "(($ac_try" in
12835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12836 *) ac_try_echo=$ac_try;;
12837 esac
12838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12839 (eval "$ac_compile") 2>conftest.er1
12840 ac_status=$?
12841 grep -v '^ *+' conftest.er1 >conftest.err
12842 rm -f conftest.er1
12843 cat conftest.err >&5
12844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12845 (exit $ac_status); } && {
12846 test -z "$ac_c_werror_flag" ||
12847 test ! -s conftest.err
12848 } && test -s conftest.$ac_objext; then
12849 ac_lo=$ac_mid; break
12850 else
12851 echo "$as_me: failed program was:" >&5
12852 sed 's/^/| /' conftest.$ac_ext >&5
12854 ac_hi=`expr '(' $ac_mid ')' - 1`
12855 if test $ac_mid -le $ac_hi; then
12856 ac_lo= ac_hi=
12857 break
12859 ac_mid=`expr 2 '*' $ac_mid`
12862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12863 done
12864 else
12865 echo "$as_me: failed program was:" >&5
12866 sed 's/^/| /' conftest.$ac_ext >&5
12868 ac_lo= ac_hi=
12871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12875 # Binary search between lo and hi bounds.
12876 while test "x$ac_lo" != "x$ac_hi"; do
12877 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12878 cat >conftest.$ac_ext <<_ACEOF
12879 /* confdefs.h. */
12880 _ACEOF
12881 cat confdefs.h >>conftest.$ac_ext
12882 cat >>conftest.$ac_ext <<_ACEOF
12883 /* end confdefs.h. */
12884 $ac_includes_default
12885 typedef uintptr_t ac__type_sizeof_;
12887 main ()
12889 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12890 test_array [0] = 0
12893 return 0;
12895 _ACEOF
12896 rm -f conftest.$ac_objext
12897 if { (ac_try="$ac_compile"
12898 case "(($ac_try" in
12899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12900 *) ac_try_echo=$ac_try;;
12901 esac
12902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12903 (eval "$ac_compile") 2>conftest.er1
12904 ac_status=$?
12905 grep -v '^ *+' conftest.er1 >conftest.err
12906 rm -f conftest.er1
12907 cat conftest.err >&5
12908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12909 (exit $ac_status); } && {
12910 test -z "$ac_c_werror_flag" ||
12911 test ! -s conftest.err
12912 } && test -s conftest.$ac_objext; then
12913 ac_hi=$ac_mid
12914 else
12915 echo "$as_me: failed program was:" >&5
12916 sed 's/^/| /' conftest.$ac_ext >&5
12918 ac_lo=`expr '(' $ac_mid ')' + 1`
12921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12922 done
12923 case $ac_lo in
12924 ?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
12925 '') if test "$ac_cv_type_uintptr_t" = yes; then
12926 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
12927 See \`config.log' for more details." >&5
12928 echo "$as_me: error: cannot compute sizeof (uintptr_t)
12929 See \`config.log' for more details." >&2;}
12930 { (exit 77); exit 77; }; }
12931 else
12932 ac_cv_sizeof_uintptr_t=0
12933 fi ;;
12934 esac
12935 else
12936 cat >conftest.$ac_ext <<_ACEOF
12937 /* confdefs.h. */
12938 _ACEOF
12939 cat confdefs.h >>conftest.$ac_ext
12940 cat >>conftest.$ac_ext <<_ACEOF
12941 /* end confdefs.h. */
12942 $ac_includes_default
12943 typedef uintptr_t ac__type_sizeof_;
12944 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12945 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12946 #include <stdio.h>
12947 #include <stdlib.h>
12949 main ()
12952 FILE *f = fopen ("conftest.val", "w");
12953 if (! f)
12954 return 1;
12955 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12957 long int i = longval ();
12958 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12959 return 1;
12960 fprintf (f, "%ld\n", i);
12962 else
12964 unsigned long int i = ulongval ();
12965 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12966 return 1;
12967 fprintf (f, "%lu\n", i);
12969 return ferror (f) || fclose (f) != 0;
12972 return 0;
12974 _ACEOF
12975 rm -f conftest$ac_exeext
12976 if { (ac_try="$ac_link"
12977 case "(($ac_try" in
12978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12979 *) ac_try_echo=$ac_try;;
12980 esac
12981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12982 (eval "$ac_link") 2>&5
12983 ac_status=$?
12984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12985 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12986 { (case "(($ac_try" in
12987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12988 *) ac_try_echo=$ac_try;;
12989 esac
12990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12991 (eval "$ac_try") 2>&5
12992 ac_status=$?
12993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12994 (exit $ac_status); }; }; then
12995 ac_cv_sizeof_uintptr_t=`cat conftest.val`
12996 else
12997 echo "$as_me: program exited with status $ac_status" >&5
12998 echo "$as_me: failed program was:" >&5
12999 sed 's/^/| /' conftest.$ac_ext >&5
13001 ( exit $ac_status )
13002 if test "$ac_cv_type_uintptr_t" = yes; then
13003 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
13004 See \`config.log' for more details." >&5
13005 echo "$as_me: error: cannot compute sizeof (uintptr_t)
13006 See \`config.log' for more details." >&2;}
13007 { (exit 77); exit 77; }; }
13008 else
13009 ac_cv_sizeof_uintptr_t=0
13012 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13014 rm -f conftest.val
13016 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
13017 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6; }
13021 cat >>confdefs.h <<_ACEOF
13022 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
13023 _ACEOF
13030 # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.
13031 { echo "$as_me:$LINENO: checking size of off_t" >&5
13032 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
13033 if test "${ac_cv_sizeof_off_t+set}" = set; then
13034 echo $ECHO_N "(cached) $ECHO_C" >&6
13035 else
13036 if test "$cross_compiling" = yes; then
13037 ac_cv_sizeof_off_t=4
13038 else
13039 cat >conftest.$ac_ext <<_ACEOF
13040 /* confdefs.h. */
13041 _ACEOF
13042 cat confdefs.h >>conftest.$ac_ext
13043 cat >>conftest.$ac_ext <<_ACEOF
13044 /* end confdefs.h. */
13045 #include <stdio.h>
13046 #include <sys/types.h>
13047 main()
13049 FILE *f=fopen("conftestval", "w");
13050 if (!f) exit(1);
13051 fprintf(f, "%d\n", sizeof(off_t));
13052 exit(0);
13054 _ACEOF
13055 rm -f conftest$ac_exeext
13056 if { (ac_try="$ac_link"
13057 case "(($ac_try" in
13058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13059 *) ac_try_echo=$ac_try;;
13060 esac
13061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13062 (eval "$ac_link") 2>&5
13063 ac_status=$?
13064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13065 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13066 { (case "(($ac_try" in
13067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13068 *) ac_try_echo=$ac_try;;
13069 esac
13070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13071 (eval "$ac_try") 2>&5
13072 ac_status=$?
13073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13074 (exit $ac_status); }; }; then
13075 ac_cv_sizeof_off_t=`cat conftestval`
13076 else
13077 echo "$as_me: program exited with status $ac_status" >&5
13078 echo "$as_me: failed program was:" >&5
13079 sed 's/^/| /' conftest.$ac_ext >&5
13081 ( exit $ac_status )
13082 ac_cv_sizeof_off_t=0
13084 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13091 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
13092 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
13094 cat >>confdefs.h <<_ACEOF
13095 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
13096 _ACEOF
13099 { echo "$as_me:$LINENO: checking whether to enable large file support" >&5
13100 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6; }
13101 if test "$have_long_long" = yes
13102 then
13103 if test "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
13104 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
13106 cat >>confdefs.h <<\_ACEOF
13107 #define HAVE_LARGEFILE_SUPPORT 1
13108 _ACEOF
13110 { echo "$as_me:$LINENO: result: yes" >&5
13111 echo "${ECHO_T}yes" >&6; }
13112 else
13113 { echo "$as_me:$LINENO: result: no" >&5
13114 echo "${ECHO_T}no" >&6; }
13116 else
13117 { echo "$as_me:$LINENO: result: no" >&5
13118 echo "${ECHO_T}no" >&6; }
13121 # AC_CHECK_SIZEOF() doesn't include <time.h>.
13122 { echo "$as_me:$LINENO: checking size of time_t" >&5
13123 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6; }
13124 if test "${ac_cv_sizeof_time_t+set}" = set; then
13125 echo $ECHO_N "(cached) $ECHO_C" >&6
13126 else
13127 if test "$cross_compiling" = yes; then
13128 ac_cv_sizeof_time_t=4
13129 else
13130 cat >conftest.$ac_ext <<_ACEOF
13131 /* confdefs.h. */
13132 _ACEOF
13133 cat confdefs.h >>conftest.$ac_ext
13134 cat >>conftest.$ac_ext <<_ACEOF
13135 /* end confdefs.h. */
13136 #include <stdio.h>
13137 #include <time.h>
13138 main()
13140 FILE *f=fopen("conftestval", "w");
13141 if (!f) exit(1);
13142 fprintf(f, "%d\n", sizeof(time_t));
13143 exit(0);
13145 _ACEOF
13146 rm -f conftest$ac_exeext
13147 if { (ac_try="$ac_link"
13148 case "(($ac_try" in
13149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13150 *) ac_try_echo=$ac_try;;
13151 esac
13152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13153 (eval "$ac_link") 2>&5
13154 ac_status=$?
13155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13157 { (case "(($ac_try" in
13158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13159 *) ac_try_echo=$ac_try;;
13160 esac
13161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13162 (eval "$ac_try") 2>&5
13163 ac_status=$?
13164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13165 (exit $ac_status); }; }; then
13166 ac_cv_sizeof_time_t=`cat conftestval`
13167 else
13168 echo "$as_me: program exited with status $ac_status" >&5
13169 echo "$as_me: failed program was:" >&5
13170 sed 's/^/| /' conftest.$ac_ext >&5
13172 ( exit $ac_status )
13173 ac_cv_sizeof_time_t=0
13175 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13182 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
13183 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; }
13185 cat >>confdefs.h <<_ACEOF
13186 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
13187 _ACEOF
13191 # if have pthread_t then define SIZEOF_PTHREAD_T
13192 ac_save_cc="$CC"
13193 if test "$ac_cv_kpthread" = "yes"
13194 then CC="$CC -Kpthread"
13195 elif test "$ac_cv_kthread" = "yes"
13196 then CC="$CC -Kthread"
13197 elif test "$ac_cv_pthread" = "yes"
13198 then CC="$CC -pthread"
13200 { echo "$as_me:$LINENO: checking for pthread_t" >&5
13201 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; }
13202 have_pthread_t=no
13203 cat >conftest.$ac_ext <<_ACEOF
13204 /* confdefs.h. */
13205 _ACEOF
13206 cat confdefs.h >>conftest.$ac_ext
13207 cat >>conftest.$ac_ext <<_ACEOF
13208 /* end confdefs.h. */
13209 #include <pthread.h>
13211 main ()
13213 pthread_t x; x = *(pthread_t*)0;
13215 return 0;
13217 _ACEOF
13218 rm -f conftest.$ac_objext
13219 if { (ac_try="$ac_compile"
13220 case "(($ac_try" in
13221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13222 *) ac_try_echo=$ac_try;;
13223 esac
13224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13225 (eval "$ac_compile") 2>conftest.er1
13226 ac_status=$?
13227 grep -v '^ *+' conftest.er1 >conftest.err
13228 rm -f conftest.er1
13229 cat conftest.err >&5
13230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13231 (exit $ac_status); } && {
13232 test -z "$ac_c_werror_flag" ||
13233 test ! -s conftest.err
13234 } && test -s conftest.$ac_objext; then
13235 have_pthread_t=yes
13236 else
13237 echo "$as_me: failed program was:" >&5
13238 sed 's/^/| /' conftest.$ac_ext >&5
13243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13244 { echo "$as_me:$LINENO: result: $have_pthread_t" >&5
13245 echo "${ECHO_T}$have_pthread_t" >&6; }
13246 if test "$have_pthread_t" = yes ; then
13247 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
13248 { echo "$as_me:$LINENO: checking size of pthread_t" >&5
13249 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6; }
13250 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
13251 echo $ECHO_N "(cached) $ECHO_C" >&6
13252 else
13253 if test "$cross_compiling" = yes; then
13254 ac_cv_sizeof_pthread_t=4
13255 else
13256 cat >conftest.$ac_ext <<_ACEOF
13257 /* confdefs.h. */
13258 _ACEOF
13259 cat confdefs.h >>conftest.$ac_ext
13260 cat >>conftest.$ac_ext <<_ACEOF
13261 /* end confdefs.h. */
13262 #include <stdio.h>
13263 #include <pthread.h>
13264 main()
13266 FILE *f=fopen("conftestval", "w");
13267 if (!f) exit(1);
13268 fprintf(f, "%d\n", sizeof(pthread_t));
13269 exit(0);
13271 _ACEOF
13272 rm -f conftest$ac_exeext
13273 if { (ac_try="$ac_link"
13274 case "(($ac_try" in
13275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13276 *) ac_try_echo=$ac_try;;
13277 esac
13278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13279 (eval "$ac_link") 2>&5
13280 ac_status=$?
13281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13282 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13283 { (case "(($ac_try" in
13284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13285 *) ac_try_echo=$ac_try;;
13286 esac
13287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13288 (eval "$ac_try") 2>&5
13289 ac_status=$?
13290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13291 (exit $ac_status); }; }; then
13292 ac_cv_sizeof_pthread_t=`cat conftestval`
13293 else
13294 echo "$as_me: program exited with status $ac_status" >&5
13295 echo "$as_me: failed program was:" >&5
13296 sed 's/^/| /' conftest.$ac_ext >&5
13298 ( exit $ac_status )
13299 ac_cv_sizeof_pthread_t=0
13301 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13308 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
13309 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6; }
13311 cat >>confdefs.h <<_ACEOF
13312 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
13313 _ACEOF
13316 CC="$ac_save_cc"
13321 case $ac_sys_system/$ac_sys_release in
13322 Darwin/[01567]\..*)
13323 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
13325 Darwin/*)
13326 OTHER_LIBTOOL_OPT=""
13328 esac
13331 ARCH_RUN_32BIT=""
13333 case $ac_sys_system/$ac_sys_release in
13334 Darwin/[01567]\..*)
13335 LIBTOOL_CRUFT="-framework System -lcc_dynamic"
13336 if test "${enable_universalsdk}"; then
13338 else
13339 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `/usr/bin/arch`"
13341 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13342 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
13343 Darwin/*)
13344 gcc_version=`gcc -dumpversion`
13345 if test ${gcc_version} '<' 4.0
13346 then
13347 LIBTOOL_CRUFT="-lcc_dynamic"
13348 else
13349 LIBTOOL_CRUFT=""
13351 if test "$cross_compiling" = yes; then
13352 ac_osx_32bit=yes
13353 else
13354 cat >conftest.$ac_ext <<_ACEOF
13355 /* confdefs.h. */
13356 _ACEOF
13357 cat confdefs.h >>conftest.$ac_ext
13358 cat >>conftest.$ac_ext <<_ACEOF
13359 /* end confdefs.h. */
13361 #include <unistd.h>
13362 int main(int argc, char*argv[])
13364 if (sizeof(long) == 4) {
13365 return 0;
13366 } else {
13367 return 1;
13371 _ACEOF
13372 rm -f conftest$ac_exeext
13373 if { (ac_try="$ac_link"
13374 case "(($ac_try" in
13375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13376 *) ac_try_echo=$ac_try;;
13377 esac
13378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13379 (eval "$ac_link") 2>&5
13380 ac_status=$?
13381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13382 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13383 { (case "(($ac_try" in
13384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13385 *) ac_try_echo=$ac_try;;
13386 esac
13387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13388 (eval "$ac_try") 2>&5
13389 ac_status=$?
13390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13391 (exit $ac_status); }; }; then
13392 ac_osx_32bit=yes
13393 else
13394 echo "$as_me: program exited with status $ac_status" >&5
13395 echo "$as_me: failed program was:" >&5
13396 sed 's/^/| /' conftest.$ac_ext >&5
13398 ( exit $ac_status )
13399 ac_osx_32bit=no
13401 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13406 if test "${ac_osx_32bit}" = "yes"; then
13407 case `/usr/bin/arch` in
13408 i386)
13409 MACOSX_DEFAULT_ARCH="i386"
13411 ppc)
13412 MACOSX_DEFAULT_ARCH="ppc"
13415 { { echo "$as_me:$LINENO: error: Unexpected output of 'arch' on OSX" >&5
13416 echo "$as_me: error: Unexpected output of 'arch' on OSX" >&2;}
13417 { (exit 1); exit 1; }; }
13419 esac
13420 else
13421 case `/usr/bin/arch` in
13422 i386)
13423 MACOSX_DEFAULT_ARCH="x86_64"
13425 ppc)
13426 MACOSX_DEFAULT_ARCH="ppc64"
13429 { { echo "$as_me:$LINENO: error: Unexpected output of 'arch' on OSX" >&5
13430 echo "$as_me: error: Unexpected output of 'arch' on OSX" >&2;}
13431 { (exit 1); exit 1; }; }
13433 esac
13435 #ARCH_RUN_32BIT="true"
13438 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}"
13439 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13440 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
13441 esac
13443 { echo "$as_me:$LINENO: checking for --enable-framework" >&5
13444 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6; }
13445 if test "$enable_framework"
13446 then
13447 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
13448 # -F. is needed to allow linking to the framework while
13449 # in the build location.
13451 cat >>confdefs.h <<\_ACEOF
13452 #define WITH_NEXT_FRAMEWORK 1
13453 _ACEOF
13455 { echo "$as_me:$LINENO: result: yes" >&5
13456 echo "${ECHO_T}yes" >&6; }
13457 if test $enable_shared = "yes"
13458 then
13459 { { echo "$as_me:$LINENO: error: Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead" >&5
13460 echo "$as_me: error: Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead" >&2;}
13461 { (exit 1); exit 1; }; }
13463 else
13464 { echo "$as_me:$LINENO: result: no" >&5
13465 echo "${ECHO_T}no" >&6; }
13468 { echo "$as_me:$LINENO: checking for dyld" >&5
13469 echo $ECHO_N "checking for dyld... $ECHO_C" >&6; }
13470 case $ac_sys_system/$ac_sys_release in
13471 Darwin/*)
13473 cat >>confdefs.h <<\_ACEOF
13474 #define WITH_DYLD 1
13475 _ACEOF
13477 { echo "$as_me:$LINENO: result: always on for Darwin" >&5
13478 echo "${ECHO_T}always on for Darwin" >&6; }
13481 { echo "$as_me:$LINENO: result: no" >&5
13482 echo "${ECHO_T}no" >&6; }
13484 esac
13486 # Set info about shared libraries.
13492 # SO is the extension of shared libraries `(including the dot!)
13493 # -- usually .so, .sl on HP-UX, .dll on Cygwin
13494 { echo "$as_me:$LINENO: checking SO" >&5
13495 echo $ECHO_N "checking SO... $ECHO_C" >&6; }
13496 if test -z "$SO"
13497 then
13498 case $ac_sys_system in
13499 hp*|HP*)
13500 case `uname -m` in
13501 ia64) SO=.so;;
13502 *) SO=.sl;;
13503 esac
13505 CYGWIN*) SO=.dll;;
13506 *) SO=.so;;
13507 esac
13508 else
13509 # this might also be a termcap variable, see #610332
13510 echo
13511 echo '====================================================================='
13512 echo '+ +'
13513 echo '+ WARNING: You have set SO in your environment. +'
13514 echo '+ Do you really mean to change the extension for shared libraries? +'
13515 echo '+ Continuing in 10 seconds to let you to ponder. +'
13516 echo '+ +'
13517 echo '====================================================================='
13518 sleep 10
13520 { echo "$as_me:$LINENO: result: $SO" >&5
13521 echo "${ECHO_T}$SO" >&6; }
13524 cat >>confdefs.h <<_ACEOF
13525 #define SHLIB_EXT "$SO"
13526 _ACEOF
13528 # LDSHARED is the ld *command* used to create shared library
13529 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
13530 # (Shared libraries in this instance are shared modules to be loaded into
13531 # Python, as opposed to building Python itself as a shared library.)
13532 { echo "$as_me:$LINENO: checking LDSHARED" >&5
13533 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6; }
13534 if test -z "$LDSHARED"
13535 then
13536 case $ac_sys_system/$ac_sys_release in
13537 AIX*)
13538 BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
13539 LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
13541 IRIX/5*) LDSHARED="ld -shared";;
13542 IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
13543 SunOS/5*)
13544 if test "$GCC" = "yes"
13545 then LDSHARED='$(CC) -shared'
13546 else LDSHARED='$(CC) -G';
13547 fi ;;
13548 hp*|HP*)
13549 if test "$GCC" = "yes"
13550 then LDSHARED='$(CC) -shared'
13551 else LDSHARED='ld -b';
13552 fi ;;
13553 OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
13554 Darwin/1.3*)
13555 LDSHARED='$(CC) $(LDFLAGS) -bundle'
13556 if test "$enable_framework" ; then
13557 # Link against the framework. All externals should be defined.
13558 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13559 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13560 else
13561 # No framework. Ignore undefined symbols, assuming they come from Python
13562 LDSHARED="$LDSHARED -undefined suppress"
13563 fi ;;
13564 Darwin/1.4*|Darwin/5.*|Darwin/6.*)
13565 LDSHARED='$(CC) $(LDFLAGS) -bundle'
13566 if test "$enable_framework" ; then
13567 # Link against the framework. All externals should be defined.
13568 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13569 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13570 else
13571 # No framework, use the Python app as bundle-loader
13572 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
13573 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
13574 fi ;;
13575 Darwin/*)
13576 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
13577 # This allows an extension to be used in any Python
13579 if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2
13580 then
13581 if test "${enable_universalsdk}"; then
13582 LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
13584 LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
13585 BLDSHARED="$LDSHARED"
13586 else
13587 LDSHARED='$(CC) $(LDFLAGS) -bundle'
13588 if test "$enable_framework" ; then
13589 # Link against the framework. All externals should be defined.
13590 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13591 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13592 else
13593 # No framework, use the Python app as bundle-loader
13594 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
13595 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
13599 Linux*|GNU*|QNX*) LDSHARED='$(CC) -shared';;
13600 BSD/OS*/4*) LDSHARED="gcc -shared";;
13601 FreeBSD*)
13602 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13603 then
13604 LDSHARED="$CC -shared ${LDFLAGS}"
13605 else
13606 LDSHARED="ld -Bshareable ${LDFLAGS}"
13607 fi;;
13608 OpenBSD*)
13609 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13610 then
13611 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
13612 else
13613 case `uname -r` in
13614 [01].* | 2.[0-7] | 2.[0-7].*)
13615 LDSHARED="ld -Bshareable ${LDFLAGS}"
13618 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
13620 esac
13621 fi;;
13622 NetBSD*|DragonFly*) LDSHARED="cc -shared ${LDFLAGS}";;
13623 OpenUNIX*|UnixWare*)
13624 if test "$GCC" = "yes"
13625 then LDSHARED='$(CC) -shared'
13626 else LDSHARED='$(CC) -G'
13627 fi;;
13628 SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';;
13629 CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";;
13630 atheos*) LDSHARED="gcc -shared";;
13631 *) LDSHARED="ld";;
13632 esac
13634 { echo "$as_me:$LINENO: result: $LDSHARED" >&5
13635 echo "${ECHO_T}$LDSHARED" >&6; }
13636 BLDSHARED=${BLDSHARED-$LDSHARED}
13637 # CCSHARED are the C *flags* used to create objects to go into a shared
13638 # library (module) -- this is only needed for a few systems
13639 { echo "$as_me:$LINENO: checking CCSHARED" >&5
13640 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6; }
13641 if test -z "$CCSHARED"
13642 then
13643 case $ac_sys_system/$ac_sys_release in
13644 SunOS*) if test "$GCC" = yes;
13645 then CCSHARED="-fPIC";
13646 elif test `uname -p` = sparc;
13647 then CCSHARED="-xcode=pic32";
13648 else CCSHARED="-Kpic";
13649 fi;;
13650 hp*|HP*) if test "$GCC" = yes;
13651 then CCSHARED="-fPIC";
13652 else CCSHARED="+z";
13653 fi;;
13654 Linux*|GNU*) CCSHARED="-fPIC";;
13655 BSD/OS*/4*) CCSHARED="-fpic";;
13656 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";;
13657 OpenUNIX*|UnixWare*)
13658 if test "$GCC" = "yes"
13659 then CCSHARED="-fPIC"
13660 else CCSHARED="-KPIC"
13661 fi;;
13662 SCO_SV*)
13663 if test "$GCC" = "yes"
13664 then CCSHARED="-fPIC"
13665 else CCSHARED="-Kpic -belf"
13666 fi;;
13667 IRIX*/6*) case $CC in
13668 *gcc*) CCSHARED="-shared";;
13669 *) CCSHARED="";;
13670 esac;;
13671 atheos*) CCSHARED="-fPIC";;
13672 esac
13674 { echo "$as_me:$LINENO: result: $CCSHARED" >&5
13675 echo "${ECHO_T}$CCSHARED" >&6; }
13676 # LINKFORSHARED are the flags passed to the $(CC) command that links
13677 # the python executable -- this is only needed for a few systems
13678 { echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
13679 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6; }
13680 if test -z "$LINKFORSHARED"
13681 then
13682 case $ac_sys_system/$ac_sys_release in
13683 AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';;
13684 hp*|HP*)
13685 LINKFORSHARED="-Wl,-E -Wl,+s";;
13686 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
13687 BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
13688 Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
13689 # -u libsys_s pulls in all symbols in libsys
13690 Darwin/*)
13691 LINKFORSHARED="$extra_undefs -framework CoreFoundation"
13692 if test "$enable_framework"
13693 then
13694 LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13696 LINKFORSHARED="$LINKFORSHARED";;
13697 OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
13698 SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
13699 ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
13700 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*)
13701 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13702 then
13703 LINKFORSHARED="-Wl,--export-dynamic"
13704 fi;;
13705 SunOS/5*) case $CC in
13706 *gcc*)
13707 if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
13708 then
13709 LINKFORSHARED="-Xlinker --export-dynamic"
13710 fi;;
13711 esac;;
13712 CYGWIN*)
13713 if test $enable_shared = "no"
13714 then
13715 LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)'
13716 fi;;
13717 QNX*)
13718 # -Wl,-E causes the symbols to be added to the dynamic
13719 # symbol table so that they can be found when a module
13720 # is loaded. -N 2048K causes the stack size to be set
13721 # to 2048 kilobytes so that the stack doesn't overflow
13722 # when running test_compile.py.
13723 LINKFORSHARED='-Wl,-E -N 2048K';;
13724 esac
13726 { echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
13727 echo "${ECHO_T}$LINKFORSHARED" >&6; }
13731 { echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
13732 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6; }
13733 if test ! "$LIBRARY" = "$LDLIBRARY"
13734 then
13735 case $ac_sys_system in
13736 CYGWIN*)
13737 # Cygwin needs CCSHARED when building extension DLLs
13738 # but not when building the interpreter DLL.
13739 CFLAGSFORSHARED='';;
13741 CFLAGSFORSHARED='$(CCSHARED)'
13742 esac
13744 { echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
13745 echo "${ECHO_T}$CFLAGSFORSHARED" >&6; }
13747 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
13748 # library (with --enable-shared).
13749 # For platforms on which shared libraries are not allowed to have unresolved
13750 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
13751 # if it is not required, since it creates a dependency of the shared library
13752 # to LIBS. This, in turn, means that applications linking the shared libpython
13753 # don't need to link LIBS explicitly. The default should be only changed
13754 # on systems where this approach causes problems.
13756 { echo "$as_me:$LINENO: checking SHLIBS" >&5
13757 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6; }
13758 case "$ac_sys_system" in
13760 SHLIBS='$(LIBS)';;
13761 esac
13762 { echo "$as_me:$LINENO: result: $SHLIBS" >&5
13763 echo "${ECHO_T}$SHLIBS" >&6; }
13766 # checks for libraries
13768 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13769 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
13770 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13771 echo $ECHO_N "(cached) $ECHO_C" >&6
13772 else
13773 ac_check_lib_save_LIBS=$LIBS
13774 LIBS="-ldl $LIBS"
13775 cat >conftest.$ac_ext <<_ACEOF
13776 /* confdefs.h. */
13777 _ACEOF
13778 cat confdefs.h >>conftest.$ac_ext
13779 cat >>conftest.$ac_ext <<_ACEOF
13780 /* end confdefs.h. */
13782 /* Override any GCC internal prototype to avoid an error.
13783 Use char because int might match the return type of a GCC
13784 builtin and then its argument prototype would still apply. */
13785 #ifdef __cplusplus
13786 extern "C"
13787 #endif
13788 char dlopen ();
13790 main ()
13792 return dlopen ();
13794 return 0;
13796 _ACEOF
13797 rm -f conftest.$ac_objext conftest$ac_exeext
13798 if { (ac_try="$ac_link"
13799 case "(($ac_try" in
13800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13801 *) ac_try_echo=$ac_try;;
13802 esac
13803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13804 (eval "$ac_link") 2>conftest.er1
13805 ac_status=$?
13806 grep -v '^ *+' conftest.er1 >conftest.err
13807 rm -f conftest.er1
13808 cat conftest.err >&5
13809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13810 (exit $ac_status); } && {
13811 test -z "$ac_c_werror_flag" ||
13812 test ! -s conftest.err
13813 } && test -s conftest$ac_exeext &&
13814 $as_test_x conftest$ac_exeext; then
13815 ac_cv_lib_dl_dlopen=yes
13816 else
13817 echo "$as_me: failed program was:" >&5
13818 sed 's/^/| /' conftest.$ac_ext >&5
13820 ac_cv_lib_dl_dlopen=no
13823 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13824 conftest$ac_exeext conftest.$ac_ext
13825 LIBS=$ac_check_lib_save_LIBS
13827 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13828 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
13829 if test $ac_cv_lib_dl_dlopen = yes; then
13830 cat >>confdefs.h <<_ACEOF
13831 #define HAVE_LIBDL 1
13832 _ACEOF
13834 LIBS="-ldl $LIBS"
13837 # Dynamic linking for SunOS/Solaris and SYSV
13839 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13840 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
13841 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13842 echo $ECHO_N "(cached) $ECHO_C" >&6
13843 else
13844 ac_check_lib_save_LIBS=$LIBS
13845 LIBS="-ldld $LIBS"
13846 cat >conftest.$ac_ext <<_ACEOF
13847 /* confdefs.h. */
13848 _ACEOF
13849 cat confdefs.h >>conftest.$ac_ext
13850 cat >>conftest.$ac_ext <<_ACEOF
13851 /* end confdefs.h. */
13853 /* Override any GCC internal prototype to avoid an error.
13854 Use char because int might match the return type of a GCC
13855 builtin and then its argument prototype would still apply. */
13856 #ifdef __cplusplus
13857 extern "C"
13858 #endif
13859 char shl_load ();
13861 main ()
13863 return shl_load ();
13865 return 0;
13867 _ACEOF
13868 rm -f conftest.$ac_objext conftest$ac_exeext
13869 if { (ac_try="$ac_link"
13870 case "(($ac_try" in
13871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13872 *) ac_try_echo=$ac_try;;
13873 esac
13874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13875 (eval "$ac_link") 2>conftest.er1
13876 ac_status=$?
13877 grep -v '^ *+' conftest.er1 >conftest.err
13878 rm -f conftest.er1
13879 cat conftest.err >&5
13880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13881 (exit $ac_status); } && {
13882 test -z "$ac_c_werror_flag" ||
13883 test ! -s conftest.err
13884 } && test -s conftest$ac_exeext &&
13885 $as_test_x conftest$ac_exeext; then
13886 ac_cv_lib_dld_shl_load=yes
13887 else
13888 echo "$as_me: failed program was:" >&5
13889 sed 's/^/| /' conftest.$ac_ext >&5
13891 ac_cv_lib_dld_shl_load=no
13894 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13895 conftest$ac_exeext conftest.$ac_ext
13896 LIBS=$ac_check_lib_save_LIBS
13898 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13899 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
13900 if test $ac_cv_lib_dld_shl_load = yes; then
13901 cat >>confdefs.h <<_ACEOF
13902 #define HAVE_LIBDLD 1
13903 _ACEOF
13905 LIBS="-ldld $LIBS"
13908 # Dynamic linking for HP-UX
13910 # only check for sem_init if thread support is requested
13911 if test "$with_threads" = "yes" -o -z "$with_threads"; then
13912 { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
13913 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
13914 if test "${ac_cv_search_sem_init+set}" = set; then
13915 echo $ECHO_N "(cached) $ECHO_C" >&6
13916 else
13917 ac_func_search_save_LIBS=$LIBS
13918 cat >conftest.$ac_ext <<_ACEOF
13919 /* confdefs.h. */
13920 _ACEOF
13921 cat confdefs.h >>conftest.$ac_ext
13922 cat >>conftest.$ac_ext <<_ACEOF
13923 /* end confdefs.h. */
13925 /* Override any GCC internal prototype to avoid an error.
13926 Use char because int might match the return type of a GCC
13927 builtin and then its argument prototype would still apply. */
13928 #ifdef __cplusplus
13929 extern "C"
13930 #endif
13931 char sem_init ();
13933 main ()
13935 return sem_init ();
13937 return 0;
13939 _ACEOF
13940 for ac_lib in '' pthread rt posix4; do
13941 if test -z "$ac_lib"; then
13942 ac_res="none required"
13943 else
13944 ac_res=-l$ac_lib
13945 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13947 rm -f conftest.$ac_objext conftest$ac_exeext
13948 if { (ac_try="$ac_link"
13949 case "(($ac_try" in
13950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13951 *) ac_try_echo=$ac_try;;
13952 esac
13953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13954 (eval "$ac_link") 2>conftest.er1
13955 ac_status=$?
13956 grep -v '^ *+' conftest.er1 >conftest.err
13957 rm -f conftest.er1
13958 cat conftest.err >&5
13959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13960 (exit $ac_status); } && {
13961 test -z "$ac_c_werror_flag" ||
13962 test ! -s conftest.err
13963 } && test -s conftest$ac_exeext &&
13964 $as_test_x conftest$ac_exeext; then
13965 ac_cv_search_sem_init=$ac_res
13966 else
13967 echo "$as_me: failed program was:" >&5
13968 sed 's/^/| /' conftest.$ac_ext >&5
13973 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13974 conftest$ac_exeext
13975 if test "${ac_cv_search_sem_init+set}" = set; then
13976 break
13978 done
13979 if test "${ac_cv_search_sem_init+set}" = set; then
13981 else
13982 ac_cv_search_sem_init=no
13984 rm conftest.$ac_ext
13985 LIBS=$ac_func_search_save_LIBS
13987 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
13988 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
13989 ac_res=$ac_cv_search_sem_init
13990 if test "$ac_res" != no; then
13991 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13994 # 'Real Time' functions on Solaris
13995 # posix4 on Solaris 2.6
13996 # pthread (first!) on Linux
13999 # check if we need libintl for locale functions
14000 { echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
14001 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6; }
14002 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
14003 echo $ECHO_N "(cached) $ECHO_C" >&6
14004 else
14005 ac_check_lib_save_LIBS=$LIBS
14006 LIBS="-lintl $LIBS"
14007 cat >conftest.$ac_ext <<_ACEOF
14008 /* confdefs.h. */
14009 _ACEOF
14010 cat confdefs.h >>conftest.$ac_ext
14011 cat >>conftest.$ac_ext <<_ACEOF
14012 /* end confdefs.h. */
14014 /* Override any GCC internal prototype to avoid an error.
14015 Use char because int might match the return type of a GCC
14016 builtin and then its argument prototype would still apply. */
14017 #ifdef __cplusplus
14018 extern "C"
14019 #endif
14020 char textdomain ();
14022 main ()
14024 return textdomain ();
14026 return 0;
14028 _ACEOF
14029 rm -f conftest.$ac_objext conftest$ac_exeext
14030 if { (ac_try="$ac_link"
14031 case "(($ac_try" in
14032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14033 *) ac_try_echo=$ac_try;;
14034 esac
14035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14036 (eval "$ac_link") 2>conftest.er1
14037 ac_status=$?
14038 grep -v '^ *+' conftest.er1 >conftest.err
14039 rm -f conftest.er1
14040 cat conftest.err >&5
14041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14042 (exit $ac_status); } && {
14043 test -z "$ac_c_werror_flag" ||
14044 test ! -s conftest.err
14045 } && test -s conftest$ac_exeext &&
14046 $as_test_x conftest$ac_exeext; then
14047 ac_cv_lib_intl_textdomain=yes
14048 else
14049 echo "$as_me: failed program was:" >&5
14050 sed 's/^/| /' conftest.$ac_ext >&5
14052 ac_cv_lib_intl_textdomain=no
14055 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14056 conftest$ac_exeext conftest.$ac_ext
14057 LIBS=$ac_check_lib_save_LIBS
14059 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
14060 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6; }
14061 if test $ac_cv_lib_intl_textdomain = yes; then
14063 cat >>confdefs.h <<\_ACEOF
14064 #define WITH_LIBINTL 1
14065 _ACEOF
14067 LIBS="-lintl $LIBS"
14071 # checks for system dependent C++ extensions support
14072 case "$ac_sys_system" in
14073 AIX*) { echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
14074 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6; }
14075 cat >conftest.$ac_ext <<_ACEOF
14076 /* confdefs.h. */
14077 _ACEOF
14078 cat confdefs.h >>conftest.$ac_ext
14079 cat >>conftest.$ac_ext <<_ACEOF
14080 /* end confdefs.h. */
14081 #include "/usr/lpp/xlC/include/load.h"
14083 main ()
14085 loadAndInit("", 0, "")
14087 return 0;
14089 _ACEOF
14090 rm -f conftest.$ac_objext conftest$ac_exeext
14091 if { (ac_try="$ac_link"
14092 case "(($ac_try" in
14093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14094 *) ac_try_echo=$ac_try;;
14095 esac
14096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14097 (eval "$ac_link") 2>conftest.er1
14098 ac_status=$?
14099 grep -v '^ *+' conftest.er1 >conftest.err
14100 rm -f conftest.er1
14101 cat conftest.err >&5
14102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14103 (exit $ac_status); } && {
14104 test -z "$ac_c_werror_flag" ||
14105 test ! -s conftest.err
14106 } && test -s conftest$ac_exeext &&
14107 $as_test_x conftest$ac_exeext; then
14109 cat >>confdefs.h <<\_ACEOF
14110 #define AIX_GENUINE_CPLUSPLUS 1
14111 _ACEOF
14113 { echo "$as_me:$LINENO: result: yes" >&5
14114 echo "${ECHO_T}yes" >&6; }
14115 else
14116 echo "$as_me: failed program was:" >&5
14117 sed 's/^/| /' conftest.$ac_ext >&5
14119 { echo "$as_me:$LINENO: result: no" >&5
14120 echo "${ECHO_T}no" >&6; }
14123 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14124 conftest$ac_exeext conftest.$ac_ext;;
14125 *) ;;
14126 esac
14128 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
14129 { echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
14130 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6; }
14131 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
14132 echo $ECHO_N "(cached) $ECHO_C" >&6
14133 else
14134 ac_check_lib_save_LIBS=$LIBS
14135 LIBS="-lnsl $LIBS"
14136 cat >conftest.$ac_ext <<_ACEOF
14137 /* confdefs.h. */
14138 _ACEOF
14139 cat confdefs.h >>conftest.$ac_ext
14140 cat >>conftest.$ac_ext <<_ACEOF
14141 /* end confdefs.h. */
14143 /* Override any GCC internal prototype to avoid an error.
14144 Use char because int might match the return type of a GCC
14145 builtin and then its argument prototype would still apply. */
14146 #ifdef __cplusplus
14147 extern "C"
14148 #endif
14149 char t_open ();
14151 main ()
14153 return t_open ();
14155 return 0;
14157 _ACEOF
14158 rm -f conftest.$ac_objext conftest$ac_exeext
14159 if { (ac_try="$ac_link"
14160 case "(($ac_try" in
14161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14162 *) ac_try_echo=$ac_try;;
14163 esac
14164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14165 (eval "$ac_link") 2>conftest.er1
14166 ac_status=$?
14167 grep -v '^ *+' conftest.er1 >conftest.err
14168 rm -f conftest.er1
14169 cat conftest.err >&5
14170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14171 (exit $ac_status); } && {
14172 test -z "$ac_c_werror_flag" ||
14173 test ! -s conftest.err
14174 } && test -s conftest$ac_exeext &&
14175 $as_test_x conftest$ac_exeext; then
14176 ac_cv_lib_nsl_t_open=yes
14177 else
14178 echo "$as_me: failed program was:" >&5
14179 sed 's/^/| /' conftest.$ac_ext >&5
14181 ac_cv_lib_nsl_t_open=no
14184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14185 conftest$ac_exeext conftest.$ac_ext
14186 LIBS=$ac_check_lib_save_LIBS
14188 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
14189 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6; }
14190 if test $ac_cv_lib_nsl_t_open = yes; then
14191 LIBS="-lnsl $LIBS"
14193 # SVR4
14194 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
14195 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
14196 if test "${ac_cv_lib_socket_socket+set}" = set; then
14197 echo $ECHO_N "(cached) $ECHO_C" >&6
14198 else
14199 ac_check_lib_save_LIBS=$LIBS
14200 LIBS="-lsocket $LIBS $LIBS"
14201 cat >conftest.$ac_ext <<_ACEOF
14202 /* confdefs.h. */
14203 _ACEOF
14204 cat confdefs.h >>conftest.$ac_ext
14205 cat >>conftest.$ac_ext <<_ACEOF
14206 /* end confdefs.h. */
14208 /* Override any GCC internal prototype to avoid an error.
14209 Use char because int might match the return type of a GCC
14210 builtin and then its argument prototype would still apply. */
14211 #ifdef __cplusplus
14212 extern "C"
14213 #endif
14214 char socket ();
14216 main ()
14218 return socket ();
14220 return 0;
14222 _ACEOF
14223 rm -f conftest.$ac_objext conftest$ac_exeext
14224 if { (ac_try="$ac_link"
14225 case "(($ac_try" in
14226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14227 *) ac_try_echo=$ac_try;;
14228 esac
14229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14230 (eval "$ac_link") 2>conftest.er1
14231 ac_status=$?
14232 grep -v '^ *+' conftest.er1 >conftest.err
14233 rm -f conftest.er1
14234 cat conftest.err >&5
14235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236 (exit $ac_status); } && {
14237 test -z "$ac_c_werror_flag" ||
14238 test ! -s conftest.err
14239 } && test -s conftest$ac_exeext &&
14240 $as_test_x conftest$ac_exeext; then
14241 ac_cv_lib_socket_socket=yes
14242 else
14243 echo "$as_me: failed program was:" >&5
14244 sed 's/^/| /' conftest.$ac_ext >&5
14246 ac_cv_lib_socket_socket=no
14249 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14250 conftest$ac_exeext conftest.$ac_ext
14251 LIBS=$ac_check_lib_save_LIBS
14253 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
14254 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
14255 if test $ac_cv_lib_socket_socket = yes; then
14256 LIBS="-lsocket $LIBS"
14258 # SVR4 sockets
14260 { echo "$as_me:$LINENO: checking for --with-libs" >&5
14261 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6; }
14263 # Check whether --with-libs was given.
14264 if test "${with_libs+set}" = set; then
14265 withval=$with_libs;
14266 { echo "$as_me:$LINENO: result: $withval" >&5
14267 echo "${ECHO_T}$withval" >&6; }
14268 LIBS="$withval $LIBS"
14270 else
14271 { echo "$as_me:$LINENO: result: no" >&5
14272 echo "${ECHO_T}no" >&6; }
14276 # Check for use of the system libffi library
14277 { echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
14278 echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6; }
14280 # Check whether --with-system_ffi was given.
14281 if test "${with_system_ffi+set}" = set; then
14282 withval=$with_system_ffi;
14286 { echo "$as_me:$LINENO: result: $with_system_ffi" >&5
14287 echo "${ECHO_T}$with_system_ffi" >&6; }
14289 # Check for --with-dbmliborder
14290 { echo "$as_me:$LINENO: checking for --with-dbmliborder" >&5
14291 echo $ECHO_N "checking for --with-dbmliborder... $ECHO_C" >&6; }
14293 # Check whether --with-dbmliborder was given.
14294 if test "${with_dbmliborder+set}" = set; then
14295 withval=$with_dbmliborder;
14296 if test x$with_dbmliborder = xyes
14297 then
14298 { { echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5
14299 echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;}
14300 { (exit 1); exit 1; }; }
14301 else
14302 for db in `echo $with_dbmliborder | sed 's/:/ /g'`; do
14303 if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb
14304 then
14305 { { echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5
14306 echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;}
14307 { (exit 1); exit 1; }; }
14309 done
14313 { echo "$as_me:$LINENO: result: $with_dbmliborder" >&5
14314 echo "${ECHO_T}$with_dbmliborder" >&6; }
14316 # Determine if signalmodule should be used.
14319 { echo "$as_me:$LINENO: checking for --with-signal-module" >&5
14320 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6; }
14322 # Check whether --with-signal-module was given.
14323 if test "${with_signal_module+set}" = set; then
14324 withval=$with_signal_module;
14328 if test -z "$with_signal_module"
14329 then with_signal_module="yes"
14331 { echo "$as_me:$LINENO: result: $with_signal_module" >&5
14332 echo "${ECHO_T}$with_signal_module" >&6; }
14334 if test "${with_signal_module}" = "yes"; then
14335 USE_SIGNAL_MODULE=""
14336 SIGNAL_OBJS=""
14337 else
14338 USE_SIGNAL_MODULE="#"
14339 SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o"
14342 # This is used to generate Setup.config
14344 USE_THREAD_MODULE=""
14346 { echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
14347 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6; }
14350 # Check whether --with-dec-threads was given.
14351 if test "${with_dec_threads+set}" = set; then
14352 withval=$with_dec_threads;
14353 { echo "$as_me:$LINENO: result: $withval" >&5
14354 echo "${ECHO_T}$withval" >&6; }
14355 LDLAST=-threads
14356 if test "${with_thread+set}" != set; then
14357 with_thread="$withval";
14359 else
14360 { echo "$as_me:$LINENO: result: no" >&5
14361 echo "${ECHO_T}no" >&6; }
14365 # Templates for things AC_DEFINEd more than once.
14366 # For a single AC_DEFINE, no template is needed.
14374 { echo "$as_me:$LINENO: checking for --with-threads" >&5
14375 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6; }
14377 # Check whether --with-threads was given.
14378 if test "${with_threads+set}" = set; then
14379 withval=$with_threads;
14383 # --with-thread is deprecated, but check for it anyway
14385 # Check whether --with-thread was given.
14386 if test "${with_thread+set}" = set; then
14387 withval=$with_thread; with_threads=$with_thread
14391 if test -z "$with_threads"
14392 then with_threads="yes"
14394 { echo "$as_me:$LINENO: result: $with_threads" >&5
14395 echo "${ECHO_T}$with_threads" >&6; }
14398 if test "$with_threads" = "no"
14399 then
14400 USE_THREAD_MODULE="#"
14401 elif test "$ac_cv_pthread_is_default" = yes
14402 then
14403 cat >>confdefs.h <<\_ACEOF
14404 #define WITH_THREAD 1
14405 _ACEOF
14407 # Defining _REENTRANT on system with POSIX threads should not hurt.
14408 cat >>confdefs.h <<\_ACEOF
14409 #define _REENTRANT 1
14410 _ACEOF
14412 posix_threads=yes
14413 THREADOBJ="Python/thread.o"
14414 elif test "$ac_cv_kpthread" = "yes"
14415 then
14416 CC="$CC -Kpthread"
14417 if test "$ac_cv_cxx_thread" = "yes"; then
14418 CXX="$CXX -Kpthread"
14420 cat >>confdefs.h <<\_ACEOF
14421 #define WITH_THREAD 1
14422 _ACEOF
14424 posix_threads=yes
14425 THREADOBJ="Python/thread.o"
14426 elif test "$ac_cv_kthread" = "yes"
14427 then
14428 CC="$CC -Kthread"
14429 if test "$ac_cv_cxx_thread" = "yes"; then
14430 CXX="$CXX -Kthread"
14432 cat >>confdefs.h <<\_ACEOF
14433 #define WITH_THREAD 1
14434 _ACEOF
14436 posix_threads=yes
14437 THREADOBJ="Python/thread.o"
14438 elif test "$ac_cv_pthread" = "yes"
14439 then
14440 CC="$CC -pthread"
14441 if test "$ac_cv_cxx_thread" = "yes"; then
14442 CXX="$CXX -pthread"
14444 cat >>confdefs.h <<\_ACEOF
14445 #define WITH_THREAD 1
14446 _ACEOF
14448 posix_threads=yes
14449 THREADOBJ="Python/thread.o"
14450 else
14451 if test ! -z "$with_threads" -a -d "$with_threads"
14452 then LDFLAGS="$LDFLAGS -L$with_threads"
14454 if test ! -z "$withval" -a -d "$withval"
14455 then LDFLAGS="$LDFLAGS -L$withval"
14458 # According to the POSIX spec, a pthreads implementation must
14459 # define _POSIX_THREADS in unistd.h. Some apparently don't
14460 # (e.g. gnu pth with pthread emulation)
14461 { echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
14462 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6; }
14463 cat >conftest.$ac_ext <<_ACEOF
14464 /* confdefs.h. */
14465 _ACEOF
14466 cat confdefs.h >>conftest.$ac_ext
14467 cat >>conftest.$ac_ext <<_ACEOF
14468 /* end confdefs.h. */
14470 #include <unistd.h>
14471 #ifdef _POSIX_THREADS
14473 #endif
14475 _ACEOF
14476 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14477 $EGREP "yes" >/dev/null 2>&1; then
14478 unistd_defines_pthreads=yes
14479 else
14480 unistd_defines_pthreads=no
14482 rm -f -r conftest*
14484 { echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
14485 echo "${ECHO_T}$unistd_defines_pthreads" >&6; }
14487 cat >>confdefs.h <<\_ACEOF
14488 #define _REENTRANT 1
14489 _ACEOF
14491 if test "${ac_cv_header_cthreads_h+set}" = set; then
14492 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
14493 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
14494 if test "${ac_cv_header_cthreads_h+set}" = set; then
14495 echo $ECHO_N "(cached) $ECHO_C" >&6
14497 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
14498 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
14499 else
14500 # Is the header compilable?
14501 { echo "$as_me:$LINENO: checking cthreads.h usability" >&5
14502 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6; }
14503 cat >conftest.$ac_ext <<_ACEOF
14504 /* confdefs.h. */
14505 _ACEOF
14506 cat confdefs.h >>conftest.$ac_ext
14507 cat >>conftest.$ac_ext <<_ACEOF
14508 /* end confdefs.h. */
14509 $ac_includes_default
14510 #include <cthreads.h>
14511 _ACEOF
14512 rm -f conftest.$ac_objext
14513 if { (ac_try="$ac_compile"
14514 case "(($ac_try" in
14515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14516 *) ac_try_echo=$ac_try;;
14517 esac
14518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14519 (eval "$ac_compile") 2>conftest.er1
14520 ac_status=$?
14521 grep -v '^ *+' conftest.er1 >conftest.err
14522 rm -f conftest.er1
14523 cat conftest.err >&5
14524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14525 (exit $ac_status); } && {
14526 test -z "$ac_c_werror_flag" ||
14527 test ! -s conftest.err
14528 } && test -s conftest.$ac_objext; then
14529 ac_header_compiler=yes
14530 else
14531 echo "$as_me: failed program was:" >&5
14532 sed 's/^/| /' conftest.$ac_ext >&5
14534 ac_header_compiler=no
14537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14538 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14539 echo "${ECHO_T}$ac_header_compiler" >&6; }
14541 # Is the header present?
14542 { echo "$as_me:$LINENO: checking cthreads.h presence" >&5
14543 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6; }
14544 cat >conftest.$ac_ext <<_ACEOF
14545 /* confdefs.h. */
14546 _ACEOF
14547 cat confdefs.h >>conftest.$ac_ext
14548 cat >>conftest.$ac_ext <<_ACEOF
14549 /* end confdefs.h. */
14550 #include <cthreads.h>
14551 _ACEOF
14552 if { (ac_try="$ac_cpp conftest.$ac_ext"
14553 case "(($ac_try" in
14554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14555 *) ac_try_echo=$ac_try;;
14556 esac
14557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14558 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14559 ac_status=$?
14560 grep -v '^ *+' conftest.er1 >conftest.err
14561 rm -f conftest.er1
14562 cat conftest.err >&5
14563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14564 (exit $ac_status); } >/dev/null && {
14565 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14566 test ! -s conftest.err
14567 }; then
14568 ac_header_preproc=yes
14569 else
14570 echo "$as_me: failed program was:" >&5
14571 sed 's/^/| /' conftest.$ac_ext >&5
14573 ac_header_preproc=no
14576 rm -f conftest.err conftest.$ac_ext
14577 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14578 echo "${ECHO_T}$ac_header_preproc" >&6; }
14580 # So? What about this header?
14581 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14582 yes:no: )
14583 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14584 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14585 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
14586 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
14587 ac_header_preproc=yes
14589 no:yes:* )
14590 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
14591 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
14592 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
14593 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
14594 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
14595 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
14596 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
14597 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
14598 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
14599 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
14600 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
14601 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
14602 ( cat <<\_ASBOX
14603 ## -------------------------------------- ##
14604 ## Report this to http://bugs.python.org/ ##
14605 ## -------------------------------------- ##
14606 _ASBOX
14607 ) | sed "s/^/$as_me: WARNING: /" >&2
14609 esac
14610 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
14611 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
14612 if test "${ac_cv_header_cthreads_h+set}" = set; then
14613 echo $ECHO_N "(cached) $ECHO_C" >&6
14614 else
14615 ac_cv_header_cthreads_h=$ac_header_preproc
14617 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
14618 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
14621 if test $ac_cv_header_cthreads_h = yes; then
14622 cat >>confdefs.h <<\_ACEOF
14623 #define WITH_THREAD 1
14624 _ACEOF
14626 cat >>confdefs.h <<\_ACEOF
14627 #define C_THREADS 1
14628 _ACEOF
14631 cat >>confdefs.h <<\_ACEOF
14632 #define HURD_C_THREADS 1
14633 _ACEOF
14635 LIBS="$LIBS -lthreads"
14636 THREADOBJ="Python/thread.o"
14637 else
14639 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14640 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
14641 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
14642 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14643 echo $ECHO_N "(cached) $ECHO_C" >&6
14645 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
14646 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
14647 else
14648 # Is the header compilable?
14649 { echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
14650 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6; }
14651 cat >conftest.$ac_ext <<_ACEOF
14652 /* confdefs.h. */
14653 _ACEOF
14654 cat confdefs.h >>conftest.$ac_ext
14655 cat >>conftest.$ac_ext <<_ACEOF
14656 /* end confdefs.h. */
14657 $ac_includes_default
14658 #include <mach/cthreads.h>
14659 _ACEOF
14660 rm -f conftest.$ac_objext
14661 if { (ac_try="$ac_compile"
14662 case "(($ac_try" in
14663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14664 *) ac_try_echo=$ac_try;;
14665 esac
14666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14667 (eval "$ac_compile") 2>conftest.er1
14668 ac_status=$?
14669 grep -v '^ *+' conftest.er1 >conftest.err
14670 rm -f conftest.er1
14671 cat conftest.err >&5
14672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14673 (exit $ac_status); } && {
14674 test -z "$ac_c_werror_flag" ||
14675 test ! -s conftest.err
14676 } && test -s conftest.$ac_objext; then
14677 ac_header_compiler=yes
14678 else
14679 echo "$as_me: failed program was:" >&5
14680 sed 's/^/| /' conftest.$ac_ext >&5
14682 ac_header_compiler=no
14685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14686 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14687 echo "${ECHO_T}$ac_header_compiler" >&6; }
14689 # Is the header present?
14690 { echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
14691 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6; }
14692 cat >conftest.$ac_ext <<_ACEOF
14693 /* confdefs.h. */
14694 _ACEOF
14695 cat confdefs.h >>conftest.$ac_ext
14696 cat >>conftest.$ac_ext <<_ACEOF
14697 /* end confdefs.h. */
14698 #include <mach/cthreads.h>
14699 _ACEOF
14700 if { (ac_try="$ac_cpp conftest.$ac_ext"
14701 case "(($ac_try" in
14702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14703 *) ac_try_echo=$ac_try;;
14704 esac
14705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14706 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14707 ac_status=$?
14708 grep -v '^ *+' conftest.er1 >conftest.err
14709 rm -f conftest.er1
14710 cat conftest.err >&5
14711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14712 (exit $ac_status); } >/dev/null && {
14713 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14714 test ! -s conftest.err
14715 }; then
14716 ac_header_preproc=yes
14717 else
14718 echo "$as_me: failed program was:" >&5
14719 sed 's/^/| /' conftest.$ac_ext >&5
14721 ac_header_preproc=no
14724 rm -f conftest.err conftest.$ac_ext
14725 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14726 echo "${ECHO_T}$ac_header_preproc" >&6; }
14728 # So? What about this header?
14729 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14730 yes:no: )
14731 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14732 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14733 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
14734 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
14735 ac_header_preproc=yes
14737 no:yes:* )
14738 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
14739 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
14740 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
14741 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
14742 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
14743 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
14744 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
14745 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
14746 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
14747 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
14748 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
14749 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
14750 ( cat <<\_ASBOX
14751 ## -------------------------------------- ##
14752 ## Report this to http://bugs.python.org/ ##
14753 ## -------------------------------------- ##
14754 _ASBOX
14755 ) | sed "s/^/$as_me: WARNING: /" >&2
14757 esac
14758 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
14759 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
14760 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14761 echo $ECHO_N "(cached) $ECHO_C" >&6
14762 else
14763 ac_cv_header_mach_cthreads_h=$ac_header_preproc
14765 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
14766 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
14769 if test $ac_cv_header_mach_cthreads_h = yes; then
14770 cat >>confdefs.h <<\_ACEOF
14771 #define WITH_THREAD 1
14772 _ACEOF
14774 cat >>confdefs.h <<\_ACEOF
14775 #define C_THREADS 1
14776 _ACEOF
14779 cat >>confdefs.h <<\_ACEOF
14780 #define MACH_C_THREADS 1
14781 _ACEOF
14783 THREADOBJ="Python/thread.o"
14784 else
14786 { echo "$as_me:$LINENO: checking for --with-pth" >&5
14787 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6; }
14789 # Check whether --with-pth was given.
14790 if test "${with_pth+set}" = set; then
14791 withval=$with_pth; { echo "$as_me:$LINENO: result: $withval" >&5
14792 echo "${ECHO_T}$withval" >&6; }
14793 cat >>confdefs.h <<\_ACEOF
14794 #define WITH_THREAD 1
14795 _ACEOF
14798 cat >>confdefs.h <<\_ACEOF
14799 #define HAVE_PTH 1
14800 _ACEOF
14802 LIBS="-lpth $LIBS"
14803 THREADOBJ="Python/thread.o"
14804 else
14805 { echo "$as_me:$LINENO: result: no" >&5
14806 echo "${ECHO_T}no" >&6; }
14808 # Just looking for pthread_create in libpthread is not enough:
14809 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
14810 # So we really have to include pthread.h, and then link.
14811 _libs=$LIBS
14812 LIBS="$LIBS -lpthread"
14813 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
14814 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
14815 cat >conftest.$ac_ext <<_ACEOF
14816 /* confdefs.h. */
14817 _ACEOF
14818 cat confdefs.h >>conftest.$ac_ext
14819 cat >>conftest.$ac_ext <<_ACEOF
14820 /* end confdefs.h. */
14821 #include <pthread.h>
14823 void * start_routine (void *arg) { exit (0); }
14825 main ()
14828 pthread_create (NULL, NULL, start_routine, NULL)
14830 return 0;
14832 _ACEOF
14833 rm -f conftest.$ac_objext conftest$ac_exeext
14834 if { (ac_try="$ac_link"
14835 case "(($ac_try" in
14836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14837 *) ac_try_echo=$ac_try;;
14838 esac
14839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14840 (eval "$ac_link") 2>conftest.er1
14841 ac_status=$?
14842 grep -v '^ *+' conftest.er1 >conftest.err
14843 rm -f conftest.er1
14844 cat conftest.err >&5
14845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14846 (exit $ac_status); } && {
14847 test -z "$ac_c_werror_flag" ||
14848 test ! -s conftest.err
14849 } && test -s conftest$ac_exeext &&
14850 $as_test_x conftest$ac_exeext; then
14852 { echo "$as_me:$LINENO: result: yes" >&5
14853 echo "${ECHO_T}yes" >&6; }
14854 cat >>confdefs.h <<\_ACEOF
14855 #define WITH_THREAD 1
14856 _ACEOF
14858 posix_threads=yes
14859 THREADOBJ="Python/thread.o"
14860 else
14861 echo "$as_me: failed program was:" >&5
14862 sed 's/^/| /' conftest.$ac_ext >&5
14865 LIBS=$_libs
14866 { echo "$as_me:$LINENO: checking for pthread_detach" >&5
14867 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6; }
14868 if test "${ac_cv_func_pthread_detach+set}" = set; then
14869 echo $ECHO_N "(cached) $ECHO_C" >&6
14870 else
14871 cat >conftest.$ac_ext <<_ACEOF
14872 /* confdefs.h. */
14873 _ACEOF
14874 cat confdefs.h >>conftest.$ac_ext
14875 cat >>conftest.$ac_ext <<_ACEOF
14876 /* end confdefs.h. */
14877 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
14878 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14879 #define pthread_detach innocuous_pthread_detach
14881 /* System header to define __stub macros and hopefully few prototypes,
14882 which can conflict with char pthread_detach (); below.
14883 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14884 <limits.h> exists even on freestanding compilers. */
14886 #ifdef __STDC__
14887 # include <limits.h>
14888 #else
14889 # include <assert.h>
14890 #endif
14892 #undef pthread_detach
14894 /* Override any GCC internal prototype to avoid an error.
14895 Use char because int might match the return type of a GCC
14896 builtin and then its argument prototype would still apply. */
14897 #ifdef __cplusplus
14898 extern "C"
14899 #endif
14900 char pthread_detach ();
14901 /* The GNU C library defines this for functions which it implements
14902 to always fail with ENOSYS. Some functions are actually named
14903 something starting with __ and the normal name is an alias. */
14904 #if defined __stub_pthread_detach || defined __stub___pthread_detach
14905 choke me
14906 #endif
14909 main ()
14911 return pthread_detach ();
14913 return 0;
14915 _ACEOF
14916 rm -f conftest.$ac_objext conftest$ac_exeext
14917 if { (ac_try="$ac_link"
14918 case "(($ac_try" in
14919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14920 *) ac_try_echo=$ac_try;;
14921 esac
14922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14923 (eval "$ac_link") 2>conftest.er1
14924 ac_status=$?
14925 grep -v '^ *+' conftest.er1 >conftest.err
14926 rm -f conftest.er1
14927 cat conftest.err >&5
14928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14929 (exit $ac_status); } && {
14930 test -z "$ac_c_werror_flag" ||
14931 test ! -s conftest.err
14932 } && test -s conftest$ac_exeext &&
14933 $as_test_x conftest$ac_exeext; then
14934 ac_cv_func_pthread_detach=yes
14935 else
14936 echo "$as_me: failed program was:" >&5
14937 sed 's/^/| /' conftest.$ac_ext >&5
14939 ac_cv_func_pthread_detach=no
14942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14943 conftest$ac_exeext conftest.$ac_ext
14945 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
14946 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6; }
14947 if test $ac_cv_func_pthread_detach = yes; then
14948 cat >>confdefs.h <<\_ACEOF
14949 #define WITH_THREAD 1
14950 _ACEOF
14952 posix_threads=yes
14953 THREADOBJ="Python/thread.o"
14954 else
14956 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14957 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
14958 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
14959 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14960 echo $ECHO_N "(cached) $ECHO_C" >&6
14962 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
14963 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
14964 else
14965 # Is the header compilable?
14966 { echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
14967 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6; }
14968 cat >conftest.$ac_ext <<_ACEOF
14969 /* confdefs.h. */
14970 _ACEOF
14971 cat confdefs.h >>conftest.$ac_ext
14972 cat >>conftest.$ac_ext <<_ACEOF
14973 /* end confdefs.h. */
14974 $ac_includes_default
14975 #include <atheos/threads.h>
14976 _ACEOF
14977 rm -f conftest.$ac_objext
14978 if { (ac_try="$ac_compile"
14979 case "(($ac_try" in
14980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14981 *) ac_try_echo=$ac_try;;
14982 esac
14983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14984 (eval "$ac_compile") 2>conftest.er1
14985 ac_status=$?
14986 grep -v '^ *+' conftest.er1 >conftest.err
14987 rm -f conftest.er1
14988 cat conftest.err >&5
14989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14990 (exit $ac_status); } && {
14991 test -z "$ac_c_werror_flag" ||
14992 test ! -s conftest.err
14993 } && test -s conftest.$ac_objext; then
14994 ac_header_compiler=yes
14995 else
14996 echo "$as_me: failed program was:" >&5
14997 sed 's/^/| /' conftest.$ac_ext >&5
14999 ac_header_compiler=no
15002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15003 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15004 echo "${ECHO_T}$ac_header_compiler" >&6; }
15006 # Is the header present?
15007 { echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
15008 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6; }
15009 cat >conftest.$ac_ext <<_ACEOF
15010 /* confdefs.h. */
15011 _ACEOF
15012 cat confdefs.h >>conftest.$ac_ext
15013 cat >>conftest.$ac_ext <<_ACEOF
15014 /* end confdefs.h. */
15015 #include <atheos/threads.h>
15016 _ACEOF
15017 if { (ac_try="$ac_cpp conftest.$ac_ext"
15018 case "(($ac_try" in
15019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15020 *) ac_try_echo=$ac_try;;
15021 esac
15022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15023 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15024 ac_status=$?
15025 grep -v '^ *+' conftest.er1 >conftest.err
15026 rm -f conftest.er1
15027 cat conftest.err >&5
15028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15029 (exit $ac_status); } >/dev/null && {
15030 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15031 test ! -s conftest.err
15032 }; then
15033 ac_header_preproc=yes
15034 else
15035 echo "$as_me: failed program was:" >&5
15036 sed 's/^/| /' conftest.$ac_ext >&5
15038 ac_header_preproc=no
15041 rm -f conftest.err conftest.$ac_ext
15042 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15043 echo "${ECHO_T}$ac_header_preproc" >&6; }
15045 # So? What about this header?
15046 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15047 yes:no: )
15048 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
15049 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15050 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
15051 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
15052 ac_header_preproc=yes
15054 no:yes:* )
15055 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
15056 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
15057 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
15058 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
15059 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
15060 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
15061 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
15062 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
15063 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
15064 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
15065 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
15066 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
15067 ( cat <<\_ASBOX
15068 ## -------------------------------------- ##
15069 ## Report this to http://bugs.python.org/ ##
15070 ## -------------------------------------- ##
15071 _ASBOX
15072 ) | sed "s/^/$as_me: WARNING: /" >&2
15074 esac
15075 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
15076 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
15077 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
15078 echo $ECHO_N "(cached) $ECHO_C" >&6
15079 else
15080 ac_cv_header_atheos_threads_h=$ac_header_preproc
15082 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
15083 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
15086 if test $ac_cv_header_atheos_threads_h = yes; then
15087 cat >>confdefs.h <<\_ACEOF
15088 #define WITH_THREAD 1
15089 _ACEOF
15092 cat >>confdefs.h <<\_ACEOF
15093 #define ATHEOS_THREADS 1
15094 _ACEOF
15096 THREADOBJ="Python/thread.o"
15097 else
15099 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
15100 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
15101 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
15102 echo $ECHO_N "(cached) $ECHO_C" >&6
15103 else
15104 ac_check_lib_save_LIBS=$LIBS
15105 LIBS="-lpthreads $LIBS"
15106 cat >conftest.$ac_ext <<_ACEOF
15107 /* confdefs.h. */
15108 _ACEOF
15109 cat confdefs.h >>conftest.$ac_ext
15110 cat >>conftest.$ac_ext <<_ACEOF
15111 /* end confdefs.h. */
15113 /* Override any GCC internal prototype to avoid an error.
15114 Use char because int might match the return type of a GCC
15115 builtin and then its argument prototype would still apply. */
15116 #ifdef __cplusplus
15117 extern "C"
15118 #endif
15119 char pthread_create ();
15121 main ()
15123 return pthread_create ();
15125 return 0;
15127 _ACEOF
15128 rm -f conftest.$ac_objext conftest$ac_exeext
15129 if { (ac_try="$ac_link"
15130 case "(($ac_try" in
15131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15132 *) ac_try_echo=$ac_try;;
15133 esac
15134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15135 (eval "$ac_link") 2>conftest.er1
15136 ac_status=$?
15137 grep -v '^ *+' conftest.er1 >conftest.err
15138 rm -f conftest.er1
15139 cat conftest.err >&5
15140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15141 (exit $ac_status); } && {
15142 test -z "$ac_c_werror_flag" ||
15143 test ! -s conftest.err
15144 } && test -s conftest$ac_exeext &&
15145 $as_test_x conftest$ac_exeext; then
15146 ac_cv_lib_pthreads_pthread_create=yes
15147 else
15148 echo "$as_me: failed program was:" >&5
15149 sed 's/^/| /' conftest.$ac_ext >&5
15151 ac_cv_lib_pthreads_pthread_create=no
15154 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15155 conftest$ac_exeext conftest.$ac_ext
15156 LIBS=$ac_check_lib_save_LIBS
15158 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
15159 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
15160 if test $ac_cv_lib_pthreads_pthread_create = yes; then
15161 cat >>confdefs.h <<\_ACEOF
15162 #define WITH_THREAD 1
15163 _ACEOF
15165 posix_threads=yes
15166 LIBS="$LIBS -lpthreads"
15167 THREADOBJ="Python/thread.o"
15168 else
15170 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
15171 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
15172 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
15173 echo $ECHO_N "(cached) $ECHO_C" >&6
15174 else
15175 ac_check_lib_save_LIBS=$LIBS
15176 LIBS="-lc_r $LIBS"
15177 cat >conftest.$ac_ext <<_ACEOF
15178 /* confdefs.h. */
15179 _ACEOF
15180 cat confdefs.h >>conftest.$ac_ext
15181 cat >>conftest.$ac_ext <<_ACEOF
15182 /* end confdefs.h. */
15184 /* Override any GCC internal prototype to avoid an error.
15185 Use char because int might match the return type of a GCC
15186 builtin and then its argument prototype would still apply. */
15187 #ifdef __cplusplus
15188 extern "C"
15189 #endif
15190 char pthread_create ();
15192 main ()
15194 return pthread_create ();
15196 return 0;
15198 _ACEOF
15199 rm -f conftest.$ac_objext conftest$ac_exeext
15200 if { (ac_try="$ac_link"
15201 case "(($ac_try" in
15202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15203 *) ac_try_echo=$ac_try;;
15204 esac
15205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15206 (eval "$ac_link") 2>conftest.er1
15207 ac_status=$?
15208 grep -v '^ *+' conftest.er1 >conftest.err
15209 rm -f conftest.er1
15210 cat conftest.err >&5
15211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15212 (exit $ac_status); } && {
15213 test -z "$ac_c_werror_flag" ||
15214 test ! -s conftest.err
15215 } && test -s conftest$ac_exeext &&
15216 $as_test_x conftest$ac_exeext; then
15217 ac_cv_lib_c_r_pthread_create=yes
15218 else
15219 echo "$as_me: failed program was:" >&5
15220 sed 's/^/| /' conftest.$ac_ext >&5
15222 ac_cv_lib_c_r_pthread_create=no
15225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15226 conftest$ac_exeext conftest.$ac_ext
15227 LIBS=$ac_check_lib_save_LIBS
15229 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
15230 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
15231 if test $ac_cv_lib_c_r_pthread_create = yes; then
15232 cat >>confdefs.h <<\_ACEOF
15233 #define WITH_THREAD 1
15234 _ACEOF
15236 posix_threads=yes
15237 LIBS="$LIBS -lc_r"
15238 THREADOBJ="Python/thread.o"
15239 else
15241 { echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
15242 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6; }
15243 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
15244 echo $ECHO_N "(cached) $ECHO_C" >&6
15245 else
15246 ac_check_lib_save_LIBS=$LIBS
15247 LIBS="-lpthread $LIBS"
15248 cat >conftest.$ac_ext <<_ACEOF
15249 /* confdefs.h. */
15250 _ACEOF
15251 cat confdefs.h >>conftest.$ac_ext
15252 cat >>conftest.$ac_ext <<_ACEOF
15253 /* end confdefs.h. */
15255 /* Override any GCC internal prototype to avoid an error.
15256 Use char because int might match the return type of a GCC
15257 builtin and then its argument prototype would still apply. */
15258 #ifdef __cplusplus
15259 extern "C"
15260 #endif
15261 char __pthread_create_system ();
15263 main ()
15265 return __pthread_create_system ();
15267 return 0;
15269 _ACEOF
15270 rm -f conftest.$ac_objext conftest$ac_exeext
15271 if { (ac_try="$ac_link"
15272 case "(($ac_try" in
15273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15274 *) ac_try_echo=$ac_try;;
15275 esac
15276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15277 (eval "$ac_link") 2>conftest.er1
15278 ac_status=$?
15279 grep -v '^ *+' conftest.er1 >conftest.err
15280 rm -f conftest.er1
15281 cat conftest.err >&5
15282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15283 (exit $ac_status); } && {
15284 test -z "$ac_c_werror_flag" ||
15285 test ! -s conftest.err
15286 } && test -s conftest$ac_exeext &&
15287 $as_test_x conftest$ac_exeext; then
15288 ac_cv_lib_pthread___pthread_create_system=yes
15289 else
15290 echo "$as_me: failed program was:" >&5
15291 sed 's/^/| /' conftest.$ac_ext >&5
15293 ac_cv_lib_pthread___pthread_create_system=no
15296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15297 conftest$ac_exeext conftest.$ac_ext
15298 LIBS=$ac_check_lib_save_LIBS
15300 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
15301 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6; }
15302 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
15303 cat >>confdefs.h <<\_ACEOF
15304 #define WITH_THREAD 1
15305 _ACEOF
15307 posix_threads=yes
15308 LIBS="$LIBS -lpthread"
15309 THREADOBJ="Python/thread.o"
15310 else
15312 { echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
15313 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6; }
15314 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
15315 echo $ECHO_N "(cached) $ECHO_C" >&6
15316 else
15317 ac_check_lib_save_LIBS=$LIBS
15318 LIBS="-lcma $LIBS"
15319 cat >conftest.$ac_ext <<_ACEOF
15320 /* confdefs.h. */
15321 _ACEOF
15322 cat confdefs.h >>conftest.$ac_ext
15323 cat >>conftest.$ac_ext <<_ACEOF
15324 /* end confdefs.h. */
15326 /* Override any GCC internal prototype to avoid an error.
15327 Use char because int might match the return type of a GCC
15328 builtin and then its argument prototype would still apply. */
15329 #ifdef __cplusplus
15330 extern "C"
15331 #endif
15332 char pthread_create ();
15334 main ()
15336 return pthread_create ();
15338 return 0;
15340 _ACEOF
15341 rm -f conftest.$ac_objext conftest$ac_exeext
15342 if { (ac_try="$ac_link"
15343 case "(($ac_try" in
15344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15345 *) ac_try_echo=$ac_try;;
15346 esac
15347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15348 (eval "$ac_link") 2>conftest.er1
15349 ac_status=$?
15350 grep -v '^ *+' conftest.er1 >conftest.err
15351 rm -f conftest.er1
15352 cat conftest.err >&5
15353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15354 (exit $ac_status); } && {
15355 test -z "$ac_c_werror_flag" ||
15356 test ! -s conftest.err
15357 } && test -s conftest$ac_exeext &&
15358 $as_test_x conftest$ac_exeext; then
15359 ac_cv_lib_cma_pthread_create=yes
15360 else
15361 echo "$as_me: failed program was:" >&5
15362 sed 's/^/| /' conftest.$ac_ext >&5
15364 ac_cv_lib_cma_pthread_create=no
15367 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15368 conftest$ac_exeext conftest.$ac_ext
15369 LIBS=$ac_check_lib_save_LIBS
15371 { echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
15372 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6; }
15373 if test $ac_cv_lib_cma_pthread_create = yes; then
15374 cat >>confdefs.h <<\_ACEOF
15375 #define WITH_THREAD 1
15376 _ACEOF
15378 posix_threads=yes
15379 LIBS="$LIBS -lcma"
15380 THREADOBJ="Python/thread.o"
15381 else
15383 USE_THREAD_MODULE="#"
15400 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15401 conftest$ac_exeext conftest.$ac_ext
15411 { echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
15412 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6; }
15413 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
15414 echo $ECHO_N "(cached) $ECHO_C" >&6
15415 else
15416 ac_check_lib_save_LIBS=$LIBS
15417 LIBS="-lmpc $LIBS"
15418 cat >conftest.$ac_ext <<_ACEOF
15419 /* confdefs.h. */
15420 _ACEOF
15421 cat confdefs.h >>conftest.$ac_ext
15422 cat >>conftest.$ac_ext <<_ACEOF
15423 /* end confdefs.h. */
15425 /* Override any GCC internal prototype to avoid an error.
15426 Use char because int might match the return type of a GCC
15427 builtin and then its argument prototype would still apply. */
15428 #ifdef __cplusplus
15429 extern "C"
15430 #endif
15431 char usconfig ();
15433 main ()
15435 return usconfig ();
15437 return 0;
15439 _ACEOF
15440 rm -f conftest.$ac_objext conftest$ac_exeext
15441 if { (ac_try="$ac_link"
15442 case "(($ac_try" in
15443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15444 *) ac_try_echo=$ac_try;;
15445 esac
15446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15447 (eval "$ac_link") 2>conftest.er1
15448 ac_status=$?
15449 grep -v '^ *+' conftest.er1 >conftest.err
15450 rm -f conftest.er1
15451 cat conftest.err >&5
15452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15453 (exit $ac_status); } && {
15454 test -z "$ac_c_werror_flag" ||
15455 test ! -s conftest.err
15456 } && test -s conftest$ac_exeext &&
15457 $as_test_x conftest$ac_exeext; then
15458 ac_cv_lib_mpc_usconfig=yes
15459 else
15460 echo "$as_me: failed program was:" >&5
15461 sed 's/^/| /' conftest.$ac_ext >&5
15463 ac_cv_lib_mpc_usconfig=no
15466 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15467 conftest$ac_exeext conftest.$ac_ext
15468 LIBS=$ac_check_lib_save_LIBS
15470 { echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
15471 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6; }
15472 if test $ac_cv_lib_mpc_usconfig = yes; then
15473 cat >>confdefs.h <<\_ACEOF
15474 #define WITH_THREAD 1
15475 _ACEOF
15477 LIBS="$LIBS -lmpc"
15478 THREADOBJ="Python/thread.o"
15479 USE_THREAD_MODULE=""
15483 if test "$posix_threads" != "yes"; then
15484 { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
15485 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
15486 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
15487 echo $ECHO_N "(cached) $ECHO_C" >&6
15488 else
15489 ac_check_lib_save_LIBS=$LIBS
15490 LIBS="-lthread $LIBS"
15491 cat >conftest.$ac_ext <<_ACEOF
15492 /* confdefs.h. */
15493 _ACEOF
15494 cat confdefs.h >>conftest.$ac_ext
15495 cat >>conftest.$ac_ext <<_ACEOF
15496 /* end confdefs.h. */
15498 /* Override any GCC internal prototype to avoid an error.
15499 Use char because int might match the return type of a GCC
15500 builtin and then its argument prototype would still apply. */
15501 #ifdef __cplusplus
15502 extern "C"
15503 #endif
15504 char thr_create ();
15506 main ()
15508 return thr_create ();
15510 return 0;
15512 _ACEOF
15513 rm -f conftest.$ac_objext conftest$ac_exeext
15514 if { (ac_try="$ac_link"
15515 case "(($ac_try" in
15516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15517 *) ac_try_echo=$ac_try;;
15518 esac
15519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15520 (eval "$ac_link") 2>conftest.er1
15521 ac_status=$?
15522 grep -v '^ *+' conftest.er1 >conftest.err
15523 rm -f conftest.er1
15524 cat conftest.err >&5
15525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15526 (exit $ac_status); } && {
15527 test -z "$ac_c_werror_flag" ||
15528 test ! -s conftest.err
15529 } && test -s conftest$ac_exeext &&
15530 $as_test_x conftest$ac_exeext; then
15531 ac_cv_lib_thread_thr_create=yes
15532 else
15533 echo "$as_me: failed program was:" >&5
15534 sed 's/^/| /' conftest.$ac_ext >&5
15536 ac_cv_lib_thread_thr_create=no
15539 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15540 conftest$ac_exeext conftest.$ac_ext
15541 LIBS=$ac_check_lib_save_LIBS
15543 { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
15544 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
15545 if test $ac_cv_lib_thread_thr_create = yes; then
15546 cat >>confdefs.h <<\_ACEOF
15547 #define WITH_THREAD 1
15548 _ACEOF
15550 LIBS="$LIBS -lthread"
15551 THREADOBJ="Python/thread.o"
15552 USE_THREAD_MODULE=""
15557 if test "$USE_THREAD_MODULE" != "#"
15558 then
15559 # If the above checks didn't disable threads, (at least) OSF1
15560 # needs this '-threads' argument during linking.
15561 case $ac_sys_system in
15562 OSF1) LDLAST=-threads;;
15563 esac
15567 if test "$posix_threads" = "yes"; then
15568 if test "$unistd_defines_pthreads" = "no"; then
15570 cat >>confdefs.h <<\_ACEOF
15571 #define _POSIX_THREADS 1
15572 _ACEOF
15576 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
15577 case $ac_sys_system/$ac_sys_release in
15578 SunOS/5.6)
15579 cat >>confdefs.h <<\_ACEOF
15580 #define HAVE_PTHREAD_DESTRUCTOR 1
15581 _ACEOF
15584 SunOS/5.8)
15585 cat >>confdefs.h <<\_ACEOF
15586 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
15587 _ACEOF
15590 AIX/5)
15591 cat >>confdefs.h <<\_ACEOF
15592 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
15593 _ACEOF
15596 esac
15598 { echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
15599 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6; }
15600 if test "${ac_cv_pthread_system_supported+set}" = set; then
15601 echo $ECHO_N "(cached) $ECHO_C" >&6
15602 else
15603 if test "$cross_compiling" = yes; then
15604 ac_cv_pthread_system_supported=no
15605 else
15606 cat >conftest.$ac_ext <<_ACEOF
15607 /* confdefs.h. */
15608 _ACEOF
15609 cat confdefs.h >>conftest.$ac_ext
15610 cat >>conftest.$ac_ext <<_ACEOF
15611 /* end confdefs.h. */
15612 #include <pthread.h>
15613 void *foo(void *parm) {
15614 return NULL;
15616 main() {
15617 pthread_attr_t attr;
15618 pthread_t id;
15619 if (pthread_attr_init(&attr)) exit(-1);
15620 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
15621 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
15622 exit(0);
15624 _ACEOF
15625 rm -f conftest$ac_exeext
15626 if { (ac_try="$ac_link"
15627 case "(($ac_try" in
15628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15629 *) ac_try_echo=$ac_try;;
15630 esac
15631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15632 (eval "$ac_link") 2>&5
15633 ac_status=$?
15634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15635 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15636 { (case "(($ac_try" in
15637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15638 *) ac_try_echo=$ac_try;;
15639 esac
15640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15641 (eval "$ac_try") 2>&5
15642 ac_status=$?
15643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15644 (exit $ac_status); }; }; then
15645 ac_cv_pthread_system_supported=yes
15646 else
15647 echo "$as_me: program exited with status $ac_status" >&5
15648 echo "$as_me: failed program was:" >&5
15649 sed 's/^/| /' conftest.$ac_ext >&5
15651 ( exit $ac_status )
15652 ac_cv_pthread_system_supported=no
15654 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15661 { echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
15662 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6; }
15663 if test "$ac_cv_pthread_system_supported" = "yes"; then
15665 cat >>confdefs.h <<\_ACEOF
15666 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
15667 _ACEOF
15671 for ac_func in pthread_sigmask
15673 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15674 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15675 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15676 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15677 echo $ECHO_N "(cached) $ECHO_C" >&6
15678 else
15679 cat >conftest.$ac_ext <<_ACEOF
15680 /* confdefs.h. */
15681 _ACEOF
15682 cat confdefs.h >>conftest.$ac_ext
15683 cat >>conftest.$ac_ext <<_ACEOF
15684 /* end confdefs.h. */
15685 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15686 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15687 #define $ac_func innocuous_$ac_func
15689 /* System header to define __stub macros and hopefully few prototypes,
15690 which can conflict with char $ac_func (); below.
15691 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15692 <limits.h> exists even on freestanding compilers. */
15694 #ifdef __STDC__
15695 # include <limits.h>
15696 #else
15697 # include <assert.h>
15698 #endif
15700 #undef $ac_func
15702 /* Override any GCC internal prototype to avoid an error.
15703 Use char because int might match the return type of a GCC
15704 builtin and then its argument prototype would still apply. */
15705 #ifdef __cplusplus
15706 extern "C"
15707 #endif
15708 char $ac_func ();
15709 /* The GNU C library defines this for functions which it implements
15710 to always fail with ENOSYS. Some functions are actually named
15711 something starting with __ and the normal name is an alias. */
15712 #if defined __stub_$ac_func || defined __stub___$ac_func
15713 choke me
15714 #endif
15717 main ()
15719 return $ac_func ();
15721 return 0;
15723 _ACEOF
15724 rm -f conftest.$ac_objext conftest$ac_exeext
15725 if { (ac_try="$ac_link"
15726 case "(($ac_try" in
15727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15728 *) ac_try_echo=$ac_try;;
15729 esac
15730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15731 (eval "$ac_link") 2>conftest.er1
15732 ac_status=$?
15733 grep -v '^ *+' conftest.er1 >conftest.err
15734 rm -f conftest.er1
15735 cat conftest.err >&5
15736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15737 (exit $ac_status); } && {
15738 test -z "$ac_c_werror_flag" ||
15739 test ! -s conftest.err
15740 } && test -s conftest$ac_exeext &&
15741 $as_test_x conftest$ac_exeext; then
15742 eval "$as_ac_var=yes"
15743 else
15744 echo "$as_me: failed program was:" >&5
15745 sed 's/^/| /' conftest.$ac_ext >&5
15747 eval "$as_ac_var=no"
15750 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15751 conftest$ac_exeext conftest.$ac_ext
15753 ac_res=`eval echo '${'$as_ac_var'}'`
15754 { echo "$as_me:$LINENO: result: $ac_res" >&5
15755 echo "${ECHO_T}$ac_res" >&6; }
15756 if test `eval echo '${'$as_ac_var'}'` = yes; then
15757 cat >>confdefs.h <<_ACEOF
15758 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15759 _ACEOF
15760 case $ac_sys_system in
15761 CYGWIN*)
15763 cat >>confdefs.h <<\_ACEOF
15764 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
15765 _ACEOF
15768 esac
15770 done
15775 # Check for enable-ipv6
15778 { echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
15779 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6; }
15780 # Check whether --enable-ipv6 was given.
15781 if test "${enable_ipv6+set}" = set; then
15782 enableval=$enable_ipv6; case "$enableval" in
15784 { echo "$as_me:$LINENO: result: no" >&5
15785 echo "${ECHO_T}no" >&6; }
15786 ipv6=no
15788 *) { echo "$as_me:$LINENO: result: yes" >&5
15789 echo "${ECHO_T}yes" >&6; }
15790 cat >>confdefs.h <<\_ACEOF
15791 #define ENABLE_IPV6 1
15792 _ACEOF
15794 ipv6=yes
15796 esac
15797 else
15799 if test "$cross_compiling" = yes; then
15800 { echo "$as_me:$LINENO: result: no" >&5
15801 echo "${ECHO_T}no" >&6; }
15802 ipv6=no
15804 else
15805 cat >conftest.$ac_ext <<_ACEOF
15806 /* confdefs.h. */
15807 _ACEOF
15808 cat confdefs.h >>conftest.$ac_ext
15809 cat >>conftest.$ac_ext <<_ACEOF
15810 /* end confdefs.h. */
15811 /* AF_INET6 available check */
15812 #include <sys/types.h>
15813 #include <sys/socket.h>
15814 main()
15816 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
15817 exit(1);
15818 else
15819 exit(0);
15822 _ACEOF
15823 rm -f conftest$ac_exeext
15824 if { (ac_try="$ac_link"
15825 case "(($ac_try" in
15826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15827 *) ac_try_echo=$ac_try;;
15828 esac
15829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15830 (eval "$ac_link") 2>&5
15831 ac_status=$?
15832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15833 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15834 { (case "(($ac_try" in
15835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15836 *) ac_try_echo=$ac_try;;
15837 esac
15838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15839 (eval "$ac_try") 2>&5
15840 ac_status=$?
15841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15842 (exit $ac_status); }; }; then
15843 { echo "$as_me:$LINENO: result: yes" >&5
15844 echo "${ECHO_T}yes" >&6; }
15845 ipv6=yes
15846 else
15847 echo "$as_me: program exited with status $ac_status" >&5
15848 echo "$as_me: failed program was:" >&5
15849 sed 's/^/| /' conftest.$ac_ext >&5
15851 ( exit $ac_status )
15852 { echo "$as_me:$LINENO: result: no" >&5
15853 echo "${ECHO_T}no" >&6; }
15854 ipv6=no
15856 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15861 if test "$ipv6" = "yes"; then
15862 { echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
15863 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6; }
15864 cat >conftest.$ac_ext <<_ACEOF
15865 /* confdefs.h. */
15866 _ACEOF
15867 cat confdefs.h >>conftest.$ac_ext
15868 cat >>conftest.$ac_ext <<_ACEOF
15869 /* end confdefs.h. */
15870 #include <sys/types.h>
15871 #include <netinet/in.h>
15873 main ()
15875 struct sockaddr_in6 x;
15876 x.sin6_scope_id;
15878 return 0;
15880 _ACEOF
15881 rm -f conftest.$ac_objext
15882 if { (ac_try="$ac_compile"
15883 case "(($ac_try" in
15884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15885 *) ac_try_echo=$ac_try;;
15886 esac
15887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15888 (eval "$ac_compile") 2>conftest.er1
15889 ac_status=$?
15890 grep -v '^ *+' conftest.er1 >conftest.err
15891 rm -f conftest.er1
15892 cat conftest.err >&5
15893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15894 (exit $ac_status); } && {
15895 test -z "$ac_c_werror_flag" ||
15896 test ! -s conftest.err
15897 } && test -s conftest.$ac_objext; then
15898 { echo "$as_me:$LINENO: result: yes" >&5
15899 echo "${ECHO_T}yes" >&6; }
15900 ipv6=yes
15901 else
15902 echo "$as_me: failed program was:" >&5
15903 sed 's/^/| /' conftest.$ac_ext >&5
15905 { echo "$as_me:$LINENO: result: no" >&5
15906 echo "${ECHO_T}no" >&6; }
15907 ipv6=no
15910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15913 if test "$ipv6" = "yes"; then
15914 cat >>confdefs.h <<\_ACEOF
15915 #define ENABLE_IPV6 1
15916 _ACEOF
15923 ipv6type=unknown
15924 ipv6lib=none
15925 ipv6trylibc=no
15927 if test "$ipv6" = "yes"; then
15928 { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
15929 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
15930 for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
15932 case $i in
15933 inria)
15934 cat >conftest.$ac_ext <<_ACEOF
15935 /* confdefs.h. */
15936 _ACEOF
15937 cat confdefs.h >>conftest.$ac_ext
15938 cat >>conftest.$ac_ext <<_ACEOF
15939 /* end confdefs.h. */
15941 #include <netinet/in.h>
15942 #ifdef IPV6_INRIA_VERSION
15944 #endif
15945 _ACEOF
15946 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15947 $EGREP "yes" >/dev/null 2>&1; then
15948 ipv6type=$i
15950 rm -f -r conftest*
15953 kame)
15954 cat >conftest.$ac_ext <<_ACEOF
15955 /* confdefs.h. */
15956 _ACEOF
15957 cat confdefs.h >>conftest.$ac_ext
15958 cat >>conftest.$ac_ext <<_ACEOF
15959 /* end confdefs.h. */
15961 #include <netinet/in.h>
15962 #ifdef __KAME__
15964 #endif
15965 _ACEOF
15966 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15967 $EGREP "yes" >/dev/null 2>&1; then
15968 ipv6type=$i;
15969 ipv6lib=inet6
15970 ipv6libdir=/usr/local/v6/lib
15971 ipv6trylibc=yes
15973 rm -f -r conftest*
15976 linux-glibc)
15977 cat >conftest.$ac_ext <<_ACEOF
15978 /* confdefs.h. */
15979 _ACEOF
15980 cat confdefs.h >>conftest.$ac_ext
15981 cat >>conftest.$ac_ext <<_ACEOF
15982 /* end confdefs.h. */
15984 #include <features.h>
15985 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
15987 #endif
15988 _ACEOF
15989 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15990 $EGREP "yes" >/dev/null 2>&1; then
15991 ipv6type=$i;
15992 ipv6trylibc=yes
15994 rm -f -r conftest*
15997 linux-inet6)
15998 if test -d /usr/inet6; then
15999 ipv6type=$i
16000 ipv6lib=inet6
16001 ipv6libdir=/usr/inet6/lib
16002 BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
16005 solaris)
16006 if test -f /etc/netconfig; then
16007 if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then
16008 ipv6type=$i
16009 ipv6trylibc=yes
16013 toshiba)
16014 cat >conftest.$ac_ext <<_ACEOF
16015 /* confdefs.h. */
16016 _ACEOF
16017 cat confdefs.h >>conftest.$ac_ext
16018 cat >>conftest.$ac_ext <<_ACEOF
16019 /* end confdefs.h. */
16021 #include <sys/param.h>
16022 #ifdef _TOSHIBA_INET6
16024 #endif
16025 _ACEOF
16026 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16027 $EGREP "yes" >/dev/null 2>&1; then
16028 ipv6type=$i;
16029 ipv6lib=inet6;
16030 ipv6libdir=/usr/local/v6/lib
16032 rm -f -r conftest*
16035 v6d)
16036 cat >conftest.$ac_ext <<_ACEOF
16037 /* confdefs.h. */
16038 _ACEOF
16039 cat confdefs.h >>conftest.$ac_ext
16040 cat >>conftest.$ac_ext <<_ACEOF
16041 /* end confdefs.h. */
16043 #include </usr/local/v6/include/sys/v6config.h>
16044 #ifdef __V6D__
16046 #endif
16047 _ACEOF
16048 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16049 $EGREP "yes" >/dev/null 2>&1; then
16050 ipv6type=$i;
16051 ipv6lib=v6;
16052 ipv6libdir=/usr/local/v6/lib;
16053 BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
16055 rm -f -r conftest*
16058 zeta)
16059 cat >conftest.$ac_ext <<_ACEOF
16060 /* confdefs.h. */
16061 _ACEOF
16062 cat confdefs.h >>conftest.$ac_ext
16063 cat >>conftest.$ac_ext <<_ACEOF
16064 /* end confdefs.h. */
16066 #include <sys/param.h>
16067 #ifdef _ZETA_MINAMI_INET6
16069 #endif
16070 _ACEOF
16071 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16072 $EGREP "yes" >/dev/null 2>&1; then
16073 ipv6type=$i;
16074 ipv6lib=inet6;
16075 ipv6libdir=/usr/local/v6/lib
16077 rm -f -r conftest*
16080 esac
16081 if test "$ipv6type" != "unknown"; then
16082 break
16084 done
16085 { echo "$as_me:$LINENO: result: $ipv6type" >&5
16086 echo "${ECHO_T}$ipv6type" >&6; }
16089 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
16090 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
16091 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
16092 echo "using lib$ipv6lib"
16093 else
16094 if test $ipv6trylibc = "yes"; then
16095 echo "using libc"
16096 else
16097 echo 'Fatal: no $ipv6lib library found. cannot continue.'
16098 echo "You need to fetch lib$ipv6lib.a from appropriate"
16099 echo 'ipv6 kit and compile beforehand.'
16100 exit 1
16105 { echo "$as_me:$LINENO: checking for OSX 10.5 SDK or later" >&5
16106 echo $ECHO_N "checking for OSX 10.5 SDK or later... $ECHO_C" >&6; }
16107 cat >conftest.$ac_ext <<_ACEOF
16108 /* confdefs.h. */
16109 _ACEOF
16110 cat confdefs.h >>conftest.$ac_ext
16111 cat >>conftest.$ac_ext <<_ACEOF
16112 /* end confdefs.h. */
16113 #include <Carbon/Carbon.h>
16115 main ()
16117 FSIORefNum fRef = 0
16119 return 0;
16121 _ACEOF
16122 rm -f conftest.$ac_objext
16123 if { (ac_try="$ac_compile"
16124 case "(($ac_try" in
16125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16126 *) ac_try_echo=$ac_try;;
16127 esac
16128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16129 (eval "$ac_compile") 2>conftest.er1
16130 ac_status=$?
16131 grep -v '^ *+' conftest.er1 >conftest.err
16132 rm -f conftest.er1
16133 cat conftest.err >&5
16134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16135 (exit $ac_status); } && {
16136 test -z "$ac_c_werror_flag" ||
16137 test ! -s conftest.err
16138 } && test -s conftest.$ac_objext; then
16140 cat >>confdefs.h <<\_ACEOF
16141 #define HAVE_OSX105_SDK 1
16142 _ACEOF
16144 { echo "$as_me:$LINENO: result: yes" >&5
16145 echo "${ECHO_T}yes" >&6; }
16146 else
16147 echo "$as_me: failed program was:" >&5
16148 sed 's/^/| /' conftest.$ac_ext >&5
16150 { echo "$as_me:$LINENO: result: no" >&5
16151 echo "${ECHO_T}no" >&6; }
16155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16157 # Check for --with-doc-strings
16158 { echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
16159 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6; }
16161 # Check whether --with-doc-strings was given.
16162 if test "${with_doc_strings+set}" = set; then
16163 withval=$with_doc_strings;
16167 if test -z "$with_doc_strings"
16168 then with_doc_strings="yes"
16170 if test "$with_doc_strings" != "no"
16171 then
16173 cat >>confdefs.h <<\_ACEOF
16174 #define WITH_DOC_STRINGS 1
16175 _ACEOF
16178 { echo "$as_me:$LINENO: result: $with_doc_strings" >&5
16179 echo "${ECHO_T}$with_doc_strings" >&6; }
16181 # Check for Python-specific malloc support
16182 { echo "$as_me:$LINENO: checking for --with-tsc" >&5
16183 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6; }
16185 # Check whether --with-tsc was given.
16186 if test "${with_tsc+set}" = set; then
16187 withval=$with_tsc;
16188 if test "$withval" != no
16189 then
16191 cat >>confdefs.h <<\_ACEOF
16192 #define WITH_TSC 1
16193 _ACEOF
16195 { echo "$as_me:$LINENO: result: yes" >&5
16196 echo "${ECHO_T}yes" >&6; }
16197 else { echo "$as_me:$LINENO: result: no" >&5
16198 echo "${ECHO_T}no" >&6; }
16200 else
16201 { echo "$as_me:$LINENO: result: no" >&5
16202 echo "${ECHO_T}no" >&6; }
16206 # Check for Python-specific malloc support
16207 { echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
16208 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6; }
16210 # Check whether --with-pymalloc was given.
16211 if test "${with_pymalloc+set}" = set; then
16212 withval=$with_pymalloc;
16216 if test -z "$with_pymalloc"
16217 then with_pymalloc="yes"
16219 if test "$with_pymalloc" != "no"
16220 then
16222 cat >>confdefs.h <<\_ACEOF
16223 #define WITH_PYMALLOC 1
16224 _ACEOF
16227 { echo "$as_me:$LINENO: result: $with_pymalloc" >&5
16228 echo "${ECHO_T}$with_pymalloc" >&6; }
16230 # Check for --with-wctype-functions
16231 { echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
16232 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6; }
16234 # Check whether --with-wctype-functions was given.
16235 if test "${with_wctype_functions+set}" = set; then
16236 withval=$with_wctype_functions;
16237 if test "$withval" != no
16238 then
16240 cat >>confdefs.h <<\_ACEOF
16241 #define WANT_WCTYPE_FUNCTIONS 1
16242 _ACEOF
16244 { echo "$as_me:$LINENO: result: yes" >&5
16245 echo "${ECHO_T}yes" >&6; }
16246 else { echo "$as_me:$LINENO: result: no" >&5
16247 echo "${ECHO_T}no" >&6; }
16249 else
16250 { echo "$as_me:$LINENO: result: no" >&5
16251 echo "${ECHO_T}no" >&6; }
16255 # -I${DLINCLDIR} is added to the compile rule for importdl.o
16257 DLINCLDIR=.
16259 # the dlopen() function means we might want to use dynload_shlib.o. some
16260 # platforms, such as AIX, have dlopen(), but don't want to use it.
16262 for ac_func in dlopen
16264 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16265 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16266 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16267 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16268 echo $ECHO_N "(cached) $ECHO_C" >&6
16269 else
16270 cat >conftest.$ac_ext <<_ACEOF
16271 /* confdefs.h. */
16272 _ACEOF
16273 cat confdefs.h >>conftest.$ac_ext
16274 cat >>conftest.$ac_ext <<_ACEOF
16275 /* end confdefs.h. */
16276 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16277 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16278 #define $ac_func innocuous_$ac_func
16280 /* System header to define __stub macros and hopefully few prototypes,
16281 which can conflict with char $ac_func (); below.
16282 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16283 <limits.h> exists even on freestanding compilers. */
16285 #ifdef __STDC__
16286 # include <limits.h>
16287 #else
16288 # include <assert.h>
16289 #endif
16291 #undef $ac_func
16293 /* Override any GCC internal prototype to avoid an error.
16294 Use char because int might match the return type of a GCC
16295 builtin and then its argument prototype would still apply. */
16296 #ifdef __cplusplus
16297 extern "C"
16298 #endif
16299 char $ac_func ();
16300 /* The GNU C library defines this for functions which it implements
16301 to always fail with ENOSYS. Some functions are actually named
16302 something starting with __ and the normal name is an alias. */
16303 #if defined __stub_$ac_func || defined __stub___$ac_func
16304 choke me
16305 #endif
16308 main ()
16310 return $ac_func ();
16312 return 0;
16314 _ACEOF
16315 rm -f conftest.$ac_objext conftest$ac_exeext
16316 if { (ac_try="$ac_link"
16317 case "(($ac_try" in
16318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16319 *) ac_try_echo=$ac_try;;
16320 esac
16321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16322 (eval "$ac_link") 2>conftest.er1
16323 ac_status=$?
16324 grep -v '^ *+' conftest.er1 >conftest.err
16325 rm -f conftest.er1
16326 cat conftest.err >&5
16327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16328 (exit $ac_status); } && {
16329 test -z "$ac_c_werror_flag" ||
16330 test ! -s conftest.err
16331 } && test -s conftest$ac_exeext &&
16332 $as_test_x conftest$ac_exeext; then
16333 eval "$as_ac_var=yes"
16334 else
16335 echo "$as_me: failed program was:" >&5
16336 sed 's/^/| /' conftest.$ac_ext >&5
16338 eval "$as_ac_var=no"
16341 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16342 conftest$ac_exeext conftest.$ac_ext
16344 ac_res=`eval echo '${'$as_ac_var'}'`
16345 { echo "$as_me:$LINENO: result: $ac_res" >&5
16346 echo "${ECHO_T}$ac_res" >&6; }
16347 if test `eval echo '${'$as_ac_var'}'` = yes; then
16348 cat >>confdefs.h <<_ACEOF
16349 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16350 _ACEOF
16353 done
16356 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
16357 # loading of modules.
16359 { echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
16360 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6; }
16361 if test -z "$DYNLOADFILE"
16362 then
16363 case $ac_sys_system/$ac_sys_release in
16364 AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
16365 if test "$ac_cv_func_dlopen" = yes
16366 then DYNLOADFILE="dynload_shlib.o"
16367 else DYNLOADFILE="dynload_aix.o"
16370 hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
16371 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
16372 Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";;
16373 atheos*) DYNLOADFILE="dynload_atheos.o";;
16375 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
16376 # out any dynamic loading
16377 if test "$ac_cv_func_dlopen" = yes
16378 then DYNLOADFILE="dynload_shlib.o"
16379 else DYNLOADFILE="dynload_stub.o"
16382 esac
16384 { echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
16385 echo "${ECHO_T}$DYNLOADFILE" >&6; }
16386 if test "$DYNLOADFILE" != "dynload_stub.o"
16387 then
16389 cat >>confdefs.h <<\_ACEOF
16390 #define HAVE_DYNAMIC_LOADING 1
16391 _ACEOF
16395 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
16398 { echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
16399 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6; }
16400 if test -z "$MACHDEP_OBJS"
16401 then
16402 MACHDEP_OBJS=$extra_machdep_objs
16403 else
16404 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
16406 { echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
16407 echo "${ECHO_T}MACHDEP_OBJS" >&6; }
16409 # checks for library functions
16499 for ac_func in alarm setitimer getitimer bind_textdomain_codeset chown \
16500 clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \
16501 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
16502 getpriority getpwent getspnam getspent getsid getwd \
16503 kill killpg lchmod lchown lstat mbrtowc mkfifo mknod mktime \
16504 mremap nice pathconf pause plock poll pthread_init \
16505 putenv readlink realpath \
16506 select sem_open sem_timedwait sem_getvalue sem_unlink setegid seteuid \
16507 setgid \
16508 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
16509 sigaction siginterrupt sigrelse strftime strlcpy \
16510 sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
16511 truncate uname unsetenv utimes waitpid wait3 wait4 \
16512 wcscoll wcsftime wcsxfrm _getpty
16514 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16515 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16516 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16517 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16518 echo $ECHO_N "(cached) $ECHO_C" >&6
16519 else
16520 cat >conftest.$ac_ext <<_ACEOF
16521 /* confdefs.h. */
16522 _ACEOF
16523 cat confdefs.h >>conftest.$ac_ext
16524 cat >>conftest.$ac_ext <<_ACEOF
16525 /* end confdefs.h. */
16526 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16527 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16528 #define $ac_func innocuous_$ac_func
16530 /* System header to define __stub macros and hopefully few prototypes,
16531 which can conflict with char $ac_func (); below.
16532 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16533 <limits.h> exists even on freestanding compilers. */
16535 #ifdef __STDC__
16536 # include <limits.h>
16537 #else
16538 # include <assert.h>
16539 #endif
16541 #undef $ac_func
16543 /* Override any GCC internal prototype to avoid an error.
16544 Use char because int might match the return type of a GCC
16545 builtin and then its argument prototype would still apply. */
16546 #ifdef __cplusplus
16547 extern "C"
16548 #endif
16549 char $ac_func ();
16550 /* The GNU C library defines this for functions which it implements
16551 to always fail with ENOSYS. Some functions are actually named
16552 something starting with __ and the normal name is an alias. */
16553 #if defined __stub_$ac_func || defined __stub___$ac_func
16554 choke me
16555 #endif
16558 main ()
16560 return $ac_func ();
16562 return 0;
16564 _ACEOF
16565 rm -f conftest.$ac_objext conftest$ac_exeext
16566 if { (ac_try="$ac_link"
16567 case "(($ac_try" in
16568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16569 *) ac_try_echo=$ac_try;;
16570 esac
16571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16572 (eval "$ac_link") 2>conftest.er1
16573 ac_status=$?
16574 grep -v '^ *+' conftest.er1 >conftest.err
16575 rm -f conftest.er1
16576 cat conftest.err >&5
16577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16578 (exit $ac_status); } && {
16579 test -z "$ac_c_werror_flag" ||
16580 test ! -s conftest.err
16581 } && test -s conftest$ac_exeext &&
16582 $as_test_x conftest$ac_exeext; then
16583 eval "$as_ac_var=yes"
16584 else
16585 echo "$as_me: failed program was:" >&5
16586 sed 's/^/| /' conftest.$ac_ext >&5
16588 eval "$as_ac_var=no"
16591 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16592 conftest$ac_exeext conftest.$ac_ext
16594 ac_res=`eval echo '${'$as_ac_var'}'`
16595 { echo "$as_me:$LINENO: result: $ac_res" >&5
16596 echo "${ECHO_T}$ac_res" >&6; }
16597 if test `eval echo '${'$as_ac_var'}'` = yes; then
16598 cat >>confdefs.h <<_ACEOF
16599 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16600 _ACEOF
16603 done
16606 # For some functions, having a definition is not sufficient, since
16607 # we want to take their address.
16608 { echo "$as_me:$LINENO: checking for chroot" >&5
16609 echo $ECHO_N "checking for chroot... $ECHO_C" >&6; }
16610 cat >conftest.$ac_ext <<_ACEOF
16611 /* confdefs.h. */
16612 _ACEOF
16613 cat confdefs.h >>conftest.$ac_ext
16614 cat >>conftest.$ac_ext <<_ACEOF
16615 /* end confdefs.h. */
16616 #include <unistd.h>
16618 main ()
16620 void *x=chroot
16622 return 0;
16624 _ACEOF
16625 rm -f conftest.$ac_objext
16626 if { (ac_try="$ac_compile"
16627 case "(($ac_try" in
16628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16629 *) ac_try_echo=$ac_try;;
16630 esac
16631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16632 (eval "$ac_compile") 2>conftest.er1
16633 ac_status=$?
16634 grep -v '^ *+' conftest.er1 >conftest.err
16635 rm -f conftest.er1
16636 cat conftest.err >&5
16637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16638 (exit $ac_status); } && {
16639 test -z "$ac_c_werror_flag" ||
16640 test ! -s conftest.err
16641 } && test -s conftest.$ac_objext; then
16643 cat >>confdefs.h <<\_ACEOF
16644 #define HAVE_CHROOT 1
16645 _ACEOF
16647 { echo "$as_me:$LINENO: result: yes" >&5
16648 echo "${ECHO_T}yes" >&6; }
16649 else
16650 echo "$as_me: failed program was:" >&5
16651 sed 's/^/| /' conftest.$ac_ext >&5
16653 { echo "$as_me:$LINENO: result: no" >&5
16654 echo "${ECHO_T}no" >&6; }
16658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16659 { echo "$as_me:$LINENO: checking for link" >&5
16660 echo $ECHO_N "checking for link... $ECHO_C" >&6; }
16661 cat >conftest.$ac_ext <<_ACEOF
16662 /* confdefs.h. */
16663 _ACEOF
16664 cat confdefs.h >>conftest.$ac_ext
16665 cat >>conftest.$ac_ext <<_ACEOF
16666 /* end confdefs.h. */
16667 #include <unistd.h>
16669 main ()
16671 void *x=link
16673 return 0;
16675 _ACEOF
16676 rm -f conftest.$ac_objext
16677 if { (ac_try="$ac_compile"
16678 case "(($ac_try" in
16679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16680 *) ac_try_echo=$ac_try;;
16681 esac
16682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16683 (eval "$ac_compile") 2>conftest.er1
16684 ac_status=$?
16685 grep -v '^ *+' conftest.er1 >conftest.err
16686 rm -f conftest.er1
16687 cat conftest.err >&5
16688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16689 (exit $ac_status); } && {
16690 test -z "$ac_c_werror_flag" ||
16691 test ! -s conftest.err
16692 } && test -s conftest.$ac_objext; then
16694 cat >>confdefs.h <<\_ACEOF
16695 #define HAVE_LINK 1
16696 _ACEOF
16698 { echo "$as_me:$LINENO: result: yes" >&5
16699 echo "${ECHO_T}yes" >&6; }
16700 else
16701 echo "$as_me: failed program was:" >&5
16702 sed 's/^/| /' conftest.$ac_ext >&5
16704 { echo "$as_me:$LINENO: result: no" >&5
16705 echo "${ECHO_T}no" >&6; }
16709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16710 { echo "$as_me:$LINENO: checking for symlink" >&5
16711 echo $ECHO_N "checking for symlink... $ECHO_C" >&6; }
16712 cat >conftest.$ac_ext <<_ACEOF
16713 /* confdefs.h. */
16714 _ACEOF
16715 cat confdefs.h >>conftest.$ac_ext
16716 cat >>conftest.$ac_ext <<_ACEOF
16717 /* end confdefs.h. */
16718 #include <unistd.h>
16720 main ()
16722 void *x=symlink
16724 return 0;
16726 _ACEOF
16727 rm -f conftest.$ac_objext
16728 if { (ac_try="$ac_compile"
16729 case "(($ac_try" in
16730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16731 *) ac_try_echo=$ac_try;;
16732 esac
16733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16734 (eval "$ac_compile") 2>conftest.er1
16735 ac_status=$?
16736 grep -v '^ *+' conftest.er1 >conftest.err
16737 rm -f conftest.er1
16738 cat conftest.err >&5
16739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16740 (exit $ac_status); } && {
16741 test -z "$ac_c_werror_flag" ||
16742 test ! -s conftest.err
16743 } && test -s conftest.$ac_objext; then
16745 cat >>confdefs.h <<\_ACEOF
16746 #define HAVE_SYMLINK 1
16747 _ACEOF
16749 { echo "$as_me:$LINENO: result: yes" >&5
16750 echo "${ECHO_T}yes" >&6; }
16751 else
16752 echo "$as_me: failed program was:" >&5
16753 sed 's/^/| /' conftest.$ac_ext >&5
16755 { echo "$as_me:$LINENO: result: no" >&5
16756 echo "${ECHO_T}no" >&6; }
16760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16761 { echo "$as_me:$LINENO: checking for fchdir" >&5
16762 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6; }
16763 cat >conftest.$ac_ext <<_ACEOF
16764 /* confdefs.h. */
16765 _ACEOF
16766 cat confdefs.h >>conftest.$ac_ext
16767 cat >>conftest.$ac_ext <<_ACEOF
16768 /* end confdefs.h. */
16769 #include <unistd.h>
16771 main ()
16773 void *x=fchdir
16775 return 0;
16777 _ACEOF
16778 rm -f conftest.$ac_objext
16779 if { (ac_try="$ac_compile"
16780 case "(($ac_try" in
16781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16782 *) ac_try_echo=$ac_try;;
16783 esac
16784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16785 (eval "$ac_compile") 2>conftest.er1
16786 ac_status=$?
16787 grep -v '^ *+' conftest.er1 >conftest.err
16788 rm -f conftest.er1
16789 cat conftest.err >&5
16790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16791 (exit $ac_status); } && {
16792 test -z "$ac_c_werror_flag" ||
16793 test ! -s conftest.err
16794 } && test -s conftest.$ac_objext; then
16796 cat >>confdefs.h <<\_ACEOF
16797 #define HAVE_FCHDIR 1
16798 _ACEOF
16800 { echo "$as_me:$LINENO: result: yes" >&5
16801 echo "${ECHO_T}yes" >&6; }
16802 else
16803 echo "$as_me: failed program was:" >&5
16804 sed 's/^/| /' conftest.$ac_ext >&5
16806 { echo "$as_me:$LINENO: result: no" >&5
16807 echo "${ECHO_T}no" >&6; }
16811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16812 { echo "$as_me:$LINENO: checking for fsync" >&5
16813 echo $ECHO_N "checking for fsync... $ECHO_C" >&6; }
16814 cat >conftest.$ac_ext <<_ACEOF
16815 /* confdefs.h. */
16816 _ACEOF
16817 cat confdefs.h >>conftest.$ac_ext
16818 cat >>conftest.$ac_ext <<_ACEOF
16819 /* end confdefs.h. */
16820 #include <unistd.h>
16822 main ()
16824 void *x=fsync
16826 return 0;
16828 _ACEOF
16829 rm -f conftest.$ac_objext
16830 if { (ac_try="$ac_compile"
16831 case "(($ac_try" in
16832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16833 *) ac_try_echo=$ac_try;;
16834 esac
16835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16836 (eval "$ac_compile") 2>conftest.er1
16837 ac_status=$?
16838 grep -v '^ *+' conftest.er1 >conftest.err
16839 rm -f conftest.er1
16840 cat conftest.err >&5
16841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16842 (exit $ac_status); } && {
16843 test -z "$ac_c_werror_flag" ||
16844 test ! -s conftest.err
16845 } && test -s conftest.$ac_objext; then
16847 cat >>confdefs.h <<\_ACEOF
16848 #define HAVE_FSYNC 1
16849 _ACEOF
16851 { echo "$as_me:$LINENO: result: yes" >&5
16852 echo "${ECHO_T}yes" >&6; }
16853 else
16854 echo "$as_me: failed program was:" >&5
16855 sed 's/^/| /' conftest.$ac_ext >&5
16857 { echo "$as_me:$LINENO: result: no" >&5
16858 echo "${ECHO_T}no" >&6; }
16862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16863 { echo "$as_me:$LINENO: checking for fdatasync" >&5
16864 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; }
16865 cat >conftest.$ac_ext <<_ACEOF
16866 /* confdefs.h. */
16867 _ACEOF
16868 cat confdefs.h >>conftest.$ac_ext
16869 cat >>conftest.$ac_ext <<_ACEOF
16870 /* end confdefs.h. */
16871 #include <unistd.h>
16873 main ()
16875 void *x=fdatasync
16877 return 0;
16879 _ACEOF
16880 rm -f conftest.$ac_objext
16881 if { (ac_try="$ac_compile"
16882 case "(($ac_try" in
16883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16884 *) ac_try_echo=$ac_try;;
16885 esac
16886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16887 (eval "$ac_compile") 2>conftest.er1
16888 ac_status=$?
16889 grep -v '^ *+' conftest.er1 >conftest.err
16890 rm -f conftest.er1
16891 cat conftest.err >&5
16892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16893 (exit $ac_status); } && {
16894 test -z "$ac_c_werror_flag" ||
16895 test ! -s conftest.err
16896 } && test -s conftest.$ac_objext; then
16898 cat >>confdefs.h <<\_ACEOF
16899 #define HAVE_FDATASYNC 1
16900 _ACEOF
16902 { echo "$as_me:$LINENO: result: yes" >&5
16903 echo "${ECHO_T}yes" >&6; }
16904 else
16905 echo "$as_me: failed program was:" >&5
16906 sed 's/^/| /' conftest.$ac_ext >&5
16908 { echo "$as_me:$LINENO: result: no" >&5
16909 echo "${ECHO_T}no" >&6; }
16913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16914 { echo "$as_me:$LINENO: checking for epoll" >&5
16915 echo $ECHO_N "checking for epoll... $ECHO_C" >&6; }
16916 cat >conftest.$ac_ext <<_ACEOF
16917 /* confdefs.h. */
16918 _ACEOF
16919 cat confdefs.h >>conftest.$ac_ext
16920 cat >>conftest.$ac_ext <<_ACEOF
16921 /* end confdefs.h. */
16922 #include <sys/epoll.h>
16924 main ()
16926 void *x=epoll_create
16928 return 0;
16930 _ACEOF
16931 rm -f conftest.$ac_objext
16932 if { (ac_try="$ac_compile"
16933 case "(($ac_try" in
16934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16935 *) ac_try_echo=$ac_try;;
16936 esac
16937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16938 (eval "$ac_compile") 2>conftest.er1
16939 ac_status=$?
16940 grep -v '^ *+' conftest.er1 >conftest.err
16941 rm -f conftest.er1
16942 cat conftest.err >&5
16943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16944 (exit $ac_status); } && {
16945 test -z "$ac_c_werror_flag" ||
16946 test ! -s conftest.err
16947 } && test -s conftest.$ac_objext; then
16949 cat >>confdefs.h <<\_ACEOF
16950 #define HAVE_EPOLL 1
16951 _ACEOF
16953 { echo "$as_me:$LINENO: result: yes" >&5
16954 echo "${ECHO_T}yes" >&6; }
16955 else
16956 echo "$as_me: failed program was:" >&5
16957 sed 's/^/| /' conftest.$ac_ext >&5
16959 { echo "$as_me:$LINENO: result: no" >&5
16960 echo "${ECHO_T}no" >&6; }
16964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16965 { echo "$as_me:$LINENO: checking for kqueue" >&5
16966 echo $ECHO_N "checking for kqueue... $ECHO_C" >&6; }
16967 cat >conftest.$ac_ext <<_ACEOF
16968 /* confdefs.h. */
16969 _ACEOF
16970 cat confdefs.h >>conftest.$ac_ext
16971 cat >>conftest.$ac_ext <<_ACEOF
16972 /* end confdefs.h. */
16974 #include <sys/types.h>
16975 #include <sys/event.h>
16978 main ()
16980 int x=kqueue()
16982 return 0;
16984 _ACEOF
16985 rm -f conftest.$ac_objext
16986 if { (ac_try="$ac_compile"
16987 case "(($ac_try" in
16988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16989 *) ac_try_echo=$ac_try;;
16990 esac
16991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16992 (eval "$ac_compile") 2>conftest.er1
16993 ac_status=$?
16994 grep -v '^ *+' conftest.er1 >conftest.err
16995 rm -f conftest.er1
16996 cat conftest.err >&5
16997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16998 (exit $ac_status); } && {
16999 test -z "$ac_c_werror_flag" ||
17000 test ! -s conftest.err
17001 } && test -s conftest.$ac_objext; then
17003 cat >>confdefs.h <<\_ACEOF
17004 #define HAVE_KQUEUE 1
17005 _ACEOF
17007 { echo "$as_me:$LINENO: result: yes" >&5
17008 echo "${ECHO_T}yes" >&6; }
17009 else
17010 echo "$as_me: failed program was:" >&5
17011 sed 's/^/| /' conftest.$ac_ext >&5
17013 { echo "$as_me:$LINENO: result: no" >&5
17014 echo "${ECHO_T}no" >&6; }
17018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17019 # On some systems (eg. FreeBSD 5), we would find a definition of the
17020 # functions ctermid_r, setgroups in the library, but no prototype
17021 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
17022 # address to avoid compiler warnings and potential miscompilations
17023 # because of the missing prototypes.
17025 { echo "$as_me:$LINENO: checking for ctermid_r" >&5
17026 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6; }
17027 cat >conftest.$ac_ext <<_ACEOF
17028 /* confdefs.h. */
17029 _ACEOF
17030 cat confdefs.h >>conftest.$ac_ext
17031 cat >>conftest.$ac_ext <<_ACEOF
17032 /* end confdefs.h. */
17034 #include "confdefs.h"
17035 #include <stdio.h>
17038 main ()
17040 void* p = ctermid_r
17042 return 0;
17044 _ACEOF
17045 rm -f conftest.$ac_objext
17046 if { (ac_try="$ac_compile"
17047 case "(($ac_try" in
17048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17049 *) ac_try_echo=$ac_try;;
17050 esac
17051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17052 (eval "$ac_compile") 2>conftest.er1
17053 ac_status=$?
17054 grep -v '^ *+' conftest.er1 >conftest.err
17055 rm -f conftest.er1
17056 cat conftest.err >&5
17057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17058 (exit $ac_status); } && {
17059 test -z "$ac_c_werror_flag" ||
17060 test ! -s conftest.err
17061 } && test -s conftest.$ac_objext; then
17063 cat >>confdefs.h <<\_ACEOF
17064 #define HAVE_CTERMID_R 1
17065 _ACEOF
17067 { echo "$as_me:$LINENO: result: yes" >&5
17068 echo "${ECHO_T}yes" >&6; }
17069 else
17070 echo "$as_me: failed program was:" >&5
17071 sed 's/^/| /' conftest.$ac_ext >&5
17073 { echo "$as_me:$LINENO: result: no" >&5
17074 echo "${ECHO_T}no" >&6; }
17078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17080 { echo "$as_me:$LINENO: checking for flock" >&5
17081 echo $ECHO_N "checking for flock... $ECHO_C" >&6; }
17082 cat >conftest.$ac_ext <<_ACEOF
17083 /* confdefs.h. */
17084 _ACEOF
17085 cat confdefs.h >>conftest.$ac_ext
17086 cat >>conftest.$ac_ext <<_ACEOF
17087 /* end confdefs.h. */
17089 #include "confdefs.h"
17090 #include <sys/file.h>
17093 main ()
17095 void* p = flock
17097 return 0;
17099 _ACEOF
17100 rm -f conftest.$ac_objext
17101 if { (ac_try="$ac_compile"
17102 case "(($ac_try" in
17103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17104 *) ac_try_echo=$ac_try;;
17105 esac
17106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17107 (eval "$ac_compile") 2>conftest.er1
17108 ac_status=$?
17109 grep -v '^ *+' conftest.er1 >conftest.err
17110 rm -f conftest.er1
17111 cat conftest.err >&5
17112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17113 (exit $ac_status); } && {
17114 test -z "$ac_c_werror_flag" ||
17115 test ! -s conftest.err
17116 } && test -s conftest.$ac_objext; then
17118 cat >>confdefs.h <<\_ACEOF
17119 #define HAVE_FLOCK 1
17120 _ACEOF
17122 { echo "$as_me:$LINENO: result: yes" >&5
17123 echo "${ECHO_T}yes" >&6; }
17124 else
17125 echo "$as_me: failed program was:" >&5
17126 sed 's/^/| /' conftest.$ac_ext >&5
17128 { echo "$as_me:$LINENO: result: no" >&5
17129 echo "${ECHO_T}no" >&6; }
17133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17135 { echo "$as_me:$LINENO: checking for getpagesize" >&5
17136 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; }
17137 cat >conftest.$ac_ext <<_ACEOF
17138 /* confdefs.h. */
17139 _ACEOF
17140 cat confdefs.h >>conftest.$ac_ext
17141 cat >>conftest.$ac_ext <<_ACEOF
17142 /* end confdefs.h. */
17144 #include "confdefs.h"
17145 #include <unistd.h>
17148 main ()
17150 void* p = getpagesize
17152 return 0;
17154 _ACEOF
17155 rm -f conftest.$ac_objext
17156 if { (ac_try="$ac_compile"
17157 case "(($ac_try" in
17158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17159 *) ac_try_echo=$ac_try;;
17160 esac
17161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17162 (eval "$ac_compile") 2>conftest.er1
17163 ac_status=$?
17164 grep -v '^ *+' conftest.er1 >conftest.err
17165 rm -f conftest.er1
17166 cat conftest.err >&5
17167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17168 (exit $ac_status); } && {
17169 test -z "$ac_c_werror_flag" ||
17170 test ! -s conftest.err
17171 } && test -s conftest.$ac_objext; then
17173 cat >>confdefs.h <<\_ACEOF
17174 #define HAVE_GETPAGESIZE 1
17175 _ACEOF
17177 { echo "$as_me:$LINENO: result: yes" >&5
17178 echo "${ECHO_T}yes" >&6; }
17179 else
17180 echo "$as_me: failed program was:" >&5
17181 sed 's/^/| /' conftest.$ac_ext >&5
17183 { echo "$as_me:$LINENO: result: no" >&5
17184 echo "${ECHO_T}no" >&6; }
17188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17190 for ac_prog in true
17192 # Extract the first word of "$ac_prog", so it can be a program name with args.
17193 set dummy $ac_prog; ac_word=$2
17194 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17196 if test "${ac_cv_prog_TRUE+set}" = set; then
17197 echo $ECHO_N "(cached) $ECHO_C" >&6
17198 else
17199 if test -n "$TRUE"; then
17200 ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
17201 else
17202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17203 for as_dir in $PATH
17205 IFS=$as_save_IFS
17206 test -z "$as_dir" && as_dir=.
17207 for ac_exec_ext in '' $ac_executable_extensions; do
17208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17209 ac_cv_prog_TRUE="$ac_prog"
17210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17211 break 2
17213 done
17214 done
17215 IFS=$as_save_IFS
17219 TRUE=$ac_cv_prog_TRUE
17220 if test -n "$TRUE"; then
17221 { echo "$as_me:$LINENO: result: $TRUE" >&5
17222 echo "${ECHO_T}$TRUE" >&6; }
17223 else
17224 { echo "$as_me:$LINENO: result: no" >&5
17225 echo "${ECHO_T}no" >&6; }
17229 test -n "$TRUE" && break
17230 done
17231 test -n "$TRUE" || TRUE="/bin/true"
17234 { echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
17235 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6; }
17236 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
17237 echo $ECHO_N "(cached) $ECHO_C" >&6
17238 else
17239 ac_check_lib_save_LIBS=$LIBS
17240 LIBS="-lc $LIBS"
17241 cat >conftest.$ac_ext <<_ACEOF
17242 /* confdefs.h. */
17243 _ACEOF
17244 cat confdefs.h >>conftest.$ac_ext
17245 cat >>conftest.$ac_ext <<_ACEOF
17246 /* end confdefs.h. */
17248 /* Override any GCC internal prototype to avoid an error.
17249 Use char because int might match the return type of a GCC
17250 builtin and then its argument prototype would still apply. */
17251 #ifdef __cplusplus
17252 extern "C"
17253 #endif
17254 char inet_aton ();
17256 main ()
17258 return inet_aton ();
17260 return 0;
17262 _ACEOF
17263 rm -f conftest.$ac_objext conftest$ac_exeext
17264 if { (ac_try="$ac_link"
17265 case "(($ac_try" in
17266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17267 *) ac_try_echo=$ac_try;;
17268 esac
17269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17270 (eval "$ac_link") 2>conftest.er1
17271 ac_status=$?
17272 grep -v '^ *+' conftest.er1 >conftest.err
17273 rm -f conftest.er1
17274 cat conftest.err >&5
17275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17276 (exit $ac_status); } && {
17277 test -z "$ac_c_werror_flag" ||
17278 test ! -s conftest.err
17279 } && test -s conftest$ac_exeext &&
17280 $as_test_x conftest$ac_exeext; then
17281 ac_cv_lib_c_inet_aton=yes
17282 else
17283 echo "$as_me: failed program was:" >&5
17284 sed 's/^/| /' conftest.$ac_ext >&5
17286 ac_cv_lib_c_inet_aton=no
17289 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17290 conftest$ac_exeext conftest.$ac_ext
17291 LIBS=$ac_check_lib_save_LIBS
17293 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
17294 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6; }
17295 if test $ac_cv_lib_c_inet_aton = yes; then
17296 $ac_cv_prog_TRUE
17297 else
17299 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
17300 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
17301 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
17302 echo $ECHO_N "(cached) $ECHO_C" >&6
17303 else
17304 ac_check_lib_save_LIBS=$LIBS
17305 LIBS="-lresolv $LIBS"
17306 cat >conftest.$ac_ext <<_ACEOF
17307 /* confdefs.h. */
17308 _ACEOF
17309 cat confdefs.h >>conftest.$ac_ext
17310 cat >>conftest.$ac_ext <<_ACEOF
17311 /* end confdefs.h. */
17313 /* Override any GCC internal prototype to avoid an error.
17314 Use char because int might match the return type of a GCC
17315 builtin and then its argument prototype would still apply. */
17316 #ifdef __cplusplus
17317 extern "C"
17318 #endif
17319 char inet_aton ();
17321 main ()
17323 return inet_aton ();
17325 return 0;
17327 _ACEOF
17328 rm -f conftest.$ac_objext conftest$ac_exeext
17329 if { (ac_try="$ac_link"
17330 case "(($ac_try" in
17331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17332 *) ac_try_echo=$ac_try;;
17333 esac
17334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17335 (eval "$ac_link") 2>conftest.er1
17336 ac_status=$?
17337 grep -v '^ *+' conftest.er1 >conftest.err
17338 rm -f conftest.er1
17339 cat conftest.err >&5
17340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17341 (exit $ac_status); } && {
17342 test -z "$ac_c_werror_flag" ||
17343 test ! -s conftest.err
17344 } && test -s conftest$ac_exeext &&
17345 $as_test_x conftest$ac_exeext; then
17346 ac_cv_lib_resolv_inet_aton=yes
17347 else
17348 echo "$as_me: failed program was:" >&5
17349 sed 's/^/| /' conftest.$ac_ext >&5
17351 ac_cv_lib_resolv_inet_aton=no
17354 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17355 conftest$ac_exeext conftest.$ac_ext
17356 LIBS=$ac_check_lib_save_LIBS
17358 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
17359 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
17360 if test $ac_cv_lib_resolv_inet_aton = yes; then
17361 cat >>confdefs.h <<_ACEOF
17362 #define HAVE_LIBRESOLV 1
17363 _ACEOF
17365 LIBS="-lresolv $LIBS"
17373 # On Tru64, chflags seems to be present, but calling it will
17374 # exit Python
17375 { echo "$as_me:$LINENO: checking for chflags" >&5
17376 echo $ECHO_N "checking for chflags... $ECHO_C" >&6; }
17377 if test "${ac_cv_have_chflags+set}" = set; then
17378 echo $ECHO_N "(cached) $ECHO_C" >&6
17379 else
17380 if test "$cross_compiling" = yes; then
17381 ac_cv_have_chflags=cross
17382 else
17383 cat >conftest.$ac_ext <<_ACEOF
17384 /* confdefs.h. */
17385 _ACEOF
17386 cat confdefs.h >>conftest.$ac_ext
17387 cat >>conftest.$ac_ext <<_ACEOF
17388 /* end confdefs.h. */
17390 #include <sys/stat.h>
17391 #include <unistd.h>
17392 int main(int argc, char*argv[])
17394 if(chflags(argv[0], 0) != 0)
17395 return 1;
17396 return 0;
17399 _ACEOF
17400 rm -f conftest$ac_exeext
17401 if { (ac_try="$ac_link"
17402 case "(($ac_try" in
17403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17404 *) ac_try_echo=$ac_try;;
17405 esac
17406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17407 (eval "$ac_link") 2>&5
17408 ac_status=$?
17409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17410 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17411 { (case "(($ac_try" in
17412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17413 *) ac_try_echo=$ac_try;;
17414 esac
17415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17416 (eval "$ac_try") 2>&5
17417 ac_status=$?
17418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17419 (exit $ac_status); }; }; then
17420 ac_cv_have_chflags=yes
17421 else
17422 echo "$as_me: program exited with status $ac_status" >&5
17423 echo "$as_me: failed program was:" >&5
17424 sed 's/^/| /' conftest.$ac_ext >&5
17426 ( exit $ac_status )
17427 ac_cv_have_chflags=no
17429 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17435 { echo "$as_me:$LINENO: result: $ac_cv_have_chflags" >&5
17436 echo "${ECHO_T}$ac_cv_have_chflags" >&6; }
17437 if test "$ac_cv_have_chflags" = cross ; then
17438 { echo "$as_me:$LINENO: checking for chflags" >&5
17439 echo $ECHO_N "checking for chflags... $ECHO_C" >&6; }
17440 if test "${ac_cv_func_chflags+set}" = set; then
17441 echo $ECHO_N "(cached) $ECHO_C" >&6
17442 else
17443 cat >conftest.$ac_ext <<_ACEOF
17444 /* confdefs.h. */
17445 _ACEOF
17446 cat confdefs.h >>conftest.$ac_ext
17447 cat >>conftest.$ac_ext <<_ACEOF
17448 /* end confdefs.h. */
17449 /* Define chflags to an innocuous variant, in case <limits.h> declares chflags.
17450 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17451 #define chflags innocuous_chflags
17453 /* System header to define __stub macros and hopefully few prototypes,
17454 which can conflict with char chflags (); below.
17455 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17456 <limits.h> exists even on freestanding compilers. */
17458 #ifdef __STDC__
17459 # include <limits.h>
17460 #else
17461 # include <assert.h>
17462 #endif
17464 #undef chflags
17466 /* Override any GCC internal prototype to avoid an error.
17467 Use char because int might match the return type of a GCC
17468 builtin and then its argument prototype would still apply. */
17469 #ifdef __cplusplus
17470 extern "C"
17471 #endif
17472 char chflags ();
17473 /* The GNU C library defines this for functions which it implements
17474 to always fail with ENOSYS. Some functions are actually named
17475 something starting with __ and the normal name is an alias. */
17476 #if defined __stub_chflags || defined __stub___chflags
17477 choke me
17478 #endif
17481 main ()
17483 return chflags ();
17485 return 0;
17487 _ACEOF
17488 rm -f conftest.$ac_objext conftest$ac_exeext
17489 if { (ac_try="$ac_link"
17490 case "(($ac_try" in
17491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17492 *) ac_try_echo=$ac_try;;
17493 esac
17494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17495 (eval "$ac_link") 2>conftest.er1
17496 ac_status=$?
17497 grep -v '^ *+' conftest.er1 >conftest.err
17498 rm -f conftest.er1
17499 cat conftest.err >&5
17500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17501 (exit $ac_status); } && {
17502 test -z "$ac_c_werror_flag" ||
17503 test ! -s conftest.err
17504 } && test -s conftest$ac_exeext &&
17505 $as_test_x conftest$ac_exeext; then
17506 ac_cv_func_chflags=yes
17507 else
17508 echo "$as_me: failed program was:" >&5
17509 sed 's/^/| /' conftest.$ac_ext >&5
17511 ac_cv_func_chflags=no
17514 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17515 conftest$ac_exeext conftest.$ac_ext
17517 { echo "$as_me:$LINENO: result: $ac_cv_func_chflags" >&5
17518 echo "${ECHO_T}$ac_cv_func_chflags" >&6; }
17519 if test $ac_cv_func_chflags = yes; then
17520 ac_cv_have_chflags="yes"
17521 else
17522 ac_cv_have_chflags="no"
17526 if test "$ac_cv_have_chflags" = yes ; then
17528 cat >>confdefs.h <<\_ACEOF
17529 #define HAVE_CHFLAGS 1
17530 _ACEOF
17534 { echo "$as_me:$LINENO: checking for lchflags" >&5
17535 echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; }
17536 if test "${ac_cv_have_lchflags+set}" = set; then
17537 echo $ECHO_N "(cached) $ECHO_C" >&6
17538 else
17539 if test "$cross_compiling" = yes; then
17540 ac_cv_have_lchflags=cross
17541 else
17542 cat >conftest.$ac_ext <<_ACEOF
17543 /* confdefs.h. */
17544 _ACEOF
17545 cat confdefs.h >>conftest.$ac_ext
17546 cat >>conftest.$ac_ext <<_ACEOF
17547 /* end confdefs.h. */
17549 #include <sys/stat.h>
17550 #include <unistd.h>
17551 int main(int argc, char*argv[])
17553 if(lchflags(argv[0], 0) != 0)
17554 return 1;
17555 return 0;
17558 _ACEOF
17559 rm -f conftest$ac_exeext
17560 if { (ac_try="$ac_link"
17561 case "(($ac_try" in
17562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17563 *) ac_try_echo=$ac_try;;
17564 esac
17565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17566 (eval "$ac_link") 2>&5
17567 ac_status=$?
17568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17569 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17570 { (case "(($ac_try" in
17571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17572 *) ac_try_echo=$ac_try;;
17573 esac
17574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17575 (eval "$ac_try") 2>&5
17576 ac_status=$?
17577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17578 (exit $ac_status); }; }; then
17579 ac_cv_have_lchflags=yes
17580 else
17581 echo "$as_me: program exited with status $ac_status" >&5
17582 echo "$as_me: failed program was:" >&5
17583 sed 's/^/| /' conftest.$ac_ext >&5
17585 ( exit $ac_status )
17586 ac_cv_have_lchflags=no
17588 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17594 { echo "$as_me:$LINENO: result: $ac_cv_have_lchflags" >&5
17595 echo "${ECHO_T}$ac_cv_have_lchflags" >&6; }
17596 if test "$ac_cv_have_lchflags" = cross ; then
17597 { echo "$as_me:$LINENO: checking for lchflags" >&5
17598 echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; }
17599 if test "${ac_cv_func_lchflags+set}" = set; then
17600 echo $ECHO_N "(cached) $ECHO_C" >&6
17601 else
17602 cat >conftest.$ac_ext <<_ACEOF
17603 /* confdefs.h. */
17604 _ACEOF
17605 cat confdefs.h >>conftest.$ac_ext
17606 cat >>conftest.$ac_ext <<_ACEOF
17607 /* end confdefs.h. */
17608 /* Define lchflags to an innocuous variant, in case <limits.h> declares lchflags.
17609 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17610 #define lchflags innocuous_lchflags
17612 /* System header to define __stub macros and hopefully few prototypes,
17613 which can conflict with char lchflags (); below.
17614 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17615 <limits.h> exists even on freestanding compilers. */
17617 #ifdef __STDC__
17618 # include <limits.h>
17619 #else
17620 # include <assert.h>
17621 #endif
17623 #undef lchflags
17625 /* Override any GCC internal prototype to avoid an error.
17626 Use char because int might match the return type of a GCC
17627 builtin and then its argument prototype would still apply. */
17628 #ifdef __cplusplus
17629 extern "C"
17630 #endif
17631 char lchflags ();
17632 /* The GNU C library defines this for functions which it implements
17633 to always fail with ENOSYS. Some functions are actually named
17634 something starting with __ and the normal name is an alias. */
17635 #if defined __stub_lchflags || defined __stub___lchflags
17636 choke me
17637 #endif
17640 main ()
17642 return lchflags ();
17644 return 0;
17646 _ACEOF
17647 rm -f conftest.$ac_objext conftest$ac_exeext
17648 if { (ac_try="$ac_link"
17649 case "(($ac_try" in
17650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17651 *) ac_try_echo=$ac_try;;
17652 esac
17653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17654 (eval "$ac_link") 2>conftest.er1
17655 ac_status=$?
17656 grep -v '^ *+' conftest.er1 >conftest.err
17657 rm -f conftest.er1
17658 cat conftest.err >&5
17659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17660 (exit $ac_status); } && {
17661 test -z "$ac_c_werror_flag" ||
17662 test ! -s conftest.err
17663 } && test -s conftest$ac_exeext &&
17664 $as_test_x conftest$ac_exeext; then
17665 ac_cv_func_lchflags=yes
17666 else
17667 echo "$as_me: failed program was:" >&5
17668 sed 's/^/| /' conftest.$ac_ext >&5
17670 ac_cv_func_lchflags=no
17673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17674 conftest$ac_exeext conftest.$ac_ext
17676 { echo "$as_me:$LINENO: result: $ac_cv_func_lchflags" >&5
17677 echo "${ECHO_T}$ac_cv_func_lchflags" >&6; }
17678 if test $ac_cv_func_lchflags = yes; then
17679 ac_cv_have_lchflags="yes"
17680 else
17681 ac_cv_have_lchflags="no"
17685 if test "$ac_cv_have_lchflags" = yes ; then
17687 cat >>confdefs.h <<\_ACEOF
17688 #define HAVE_LCHFLAGS 1
17689 _ACEOF
17693 case $ac_sys_system/$ac_sys_release in
17694 Darwin/*)
17695 _CUR_CFLAGS="${CFLAGS}"
17696 _CUR_LDFLAGS="${LDFLAGS}"
17697 CFLAGS="${CFLAGS} -Wl,-search_paths_first"
17698 LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
17700 esac
17702 { echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5
17703 echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6; }
17704 if test "${ac_cv_lib_z_inflateCopy+set}" = set; then
17705 echo $ECHO_N "(cached) $ECHO_C" >&6
17706 else
17707 ac_check_lib_save_LIBS=$LIBS
17708 LIBS="-lz $LIBS"
17709 cat >conftest.$ac_ext <<_ACEOF
17710 /* confdefs.h. */
17711 _ACEOF
17712 cat confdefs.h >>conftest.$ac_ext
17713 cat >>conftest.$ac_ext <<_ACEOF
17714 /* end confdefs.h. */
17716 /* Override any GCC internal prototype to avoid an error.
17717 Use char because int might match the return type of a GCC
17718 builtin and then its argument prototype would still apply. */
17719 #ifdef __cplusplus
17720 extern "C"
17721 #endif
17722 char inflateCopy ();
17724 main ()
17726 return inflateCopy ();
17728 return 0;
17730 _ACEOF
17731 rm -f conftest.$ac_objext conftest$ac_exeext
17732 if { (ac_try="$ac_link"
17733 case "(($ac_try" in
17734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17735 *) ac_try_echo=$ac_try;;
17736 esac
17737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17738 (eval "$ac_link") 2>conftest.er1
17739 ac_status=$?
17740 grep -v '^ *+' conftest.er1 >conftest.err
17741 rm -f conftest.er1
17742 cat conftest.err >&5
17743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17744 (exit $ac_status); } && {
17745 test -z "$ac_c_werror_flag" ||
17746 test ! -s conftest.err
17747 } && test -s conftest$ac_exeext &&
17748 $as_test_x conftest$ac_exeext; then
17749 ac_cv_lib_z_inflateCopy=yes
17750 else
17751 echo "$as_me: failed program was:" >&5
17752 sed 's/^/| /' conftest.$ac_ext >&5
17754 ac_cv_lib_z_inflateCopy=no
17757 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17758 conftest$ac_exeext conftest.$ac_ext
17759 LIBS=$ac_check_lib_save_LIBS
17761 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5
17762 echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6; }
17763 if test $ac_cv_lib_z_inflateCopy = yes; then
17765 cat >>confdefs.h <<\_ACEOF
17766 #define HAVE_ZLIB_COPY 1
17767 _ACEOF
17772 case $ac_sys_system/$ac_sys_release in
17773 Darwin/*)
17774 CFLAGS="${_CUR_CFLAGS}"
17775 LDFLAGS="${_CUR_LDFLAGS}"
17777 esac
17779 { echo "$as_me:$LINENO: checking for hstrerror" >&5
17780 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6; }
17781 cat >conftest.$ac_ext <<_ACEOF
17782 /* confdefs.h. */
17783 _ACEOF
17784 cat confdefs.h >>conftest.$ac_ext
17785 cat >>conftest.$ac_ext <<_ACEOF
17786 /* end confdefs.h. */
17788 #include "confdefs.h"
17789 #include <netdb.h>
17792 main ()
17794 void* p = hstrerror; hstrerror(0)
17796 return 0;
17798 _ACEOF
17799 rm -f conftest.$ac_objext conftest$ac_exeext
17800 if { (ac_try="$ac_link"
17801 case "(($ac_try" in
17802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17803 *) ac_try_echo=$ac_try;;
17804 esac
17805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17806 (eval "$ac_link") 2>conftest.er1
17807 ac_status=$?
17808 grep -v '^ *+' conftest.er1 >conftest.err
17809 rm -f conftest.er1
17810 cat conftest.err >&5
17811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17812 (exit $ac_status); } && {
17813 test -z "$ac_c_werror_flag" ||
17814 test ! -s conftest.err
17815 } && test -s conftest$ac_exeext &&
17816 $as_test_x conftest$ac_exeext; then
17818 cat >>confdefs.h <<\_ACEOF
17819 #define HAVE_HSTRERROR 1
17820 _ACEOF
17822 { echo "$as_me:$LINENO: result: yes" >&5
17823 echo "${ECHO_T}yes" >&6; }
17824 else
17825 echo "$as_me: failed program was:" >&5
17826 sed 's/^/| /' conftest.$ac_ext >&5
17828 { echo "$as_me:$LINENO: result: no" >&5
17829 echo "${ECHO_T}no" >&6; }
17833 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17834 conftest$ac_exeext conftest.$ac_ext
17836 { echo "$as_me:$LINENO: checking for inet_aton" >&5
17837 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
17838 cat >conftest.$ac_ext <<_ACEOF
17839 /* confdefs.h. */
17840 _ACEOF
17841 cat confdefs.h >>conftest.$ac_ext
17842 cat >>conftest.$ac_ext <<_ACEOF
17843 /* end confdefs.h. */
17845 #include "confdefs.h"
17846 #include <sys/types.h>
17847 #include <sys/socket.h>
17848 #include <netinet/in.h>
17849 #include <arpa/inet.h>
17852 main ()
17854 void* p = inet_aton;inet_aton(0,0)
17856 return 0;
17858 _ACEOF
17859 rm -f conftest.$ac_objext conftest$ac_exeext
17860 if { (ac_try="$ac_link"
17861 case "(($ac_try" in
17862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17863 *) ac_try_echo=$ac_try;;
17864 esac
17865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17866 (eval "$ac_link") 2>conftest.er1
17867 ac_status=$?
17868 grep -v '^ *+' conftest.er1 >conftest.err
17869 rm -f conftest.er1
17870 cat conftest.err >&5
17871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17872 (exit $ac_status); } && {
17873 test -z "$ac_c_werror_flag" ||
17874 test ! -s conftest.err
17875 } && test -s conftest$ac_exeext &&
17876 $as_test_x conftest$ac_exeext; then
17878 cat >>confdefs.h <<\_ACEOF
17879 #define HAVE_INET_ATON 1
17880 _ACEOF
17882 { echo "$as_me:$LINENO: result: yes" >&5
17883 echo "${ECHO_T}yes" >&6; }
17884 else
17885 echo "$as_me: failed program was:" >&5
17886 sed 's/^/| /' conftest.$ac_ext >&5
17888 { echo "$as_me:$LINENO: result: no" >&5
17889 echo "${ECHO_T}no" >&6; }
17893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17894 conftest$ac_exeext conftest.$ac_ext
17896 { echo "$as_me:$LINENO: checking for inet_pton" >&5
17897 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
17898 cat >conftest.$ac_ext <<_ACEOF
17899 /* confdefs.h. */
17900 _ACEOF
17901 cat confdefs.h >>conftest.$ac_ext
17902 cat >>conftest.$ac_ext <<_ACEOF
17903 /* end confdefs.h. */
17905 #include "confdefs.h"
17906 #include <sys/types.h>
17907 #include <sys/socket.h>
17908 #include <netinet/in.h>
17909 #include <arpa/inet.h>
17912 main ()
17914 void* p = inet_pton
17916 return 0;
17918 _ACEOF
17919 rm -f conftest.$ac_objext
17920 if { (ac_try="$ac_compile"
17921 case "(($ac_try" in
17922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17923 *) ac_try_echo=$ac_try;;
17924 esac
17925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17926 (eval "$ac_compile") 2>conftest.er1
17927 ac_status=$?
17928 grep -v '^ *+' conftest.er1 >conftest.err
17929 rm -f conftest.er1
17930 cat conftest.err >&5
17931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17932 (exit $ac_status); } && {
17933 test -z "$ac_c_werror_flag" ||
17934 test ! -s conftest.err
17935 } && test -s conftest.$ac_objext; then
17937 cat >>confdefs.h <<\_ACEOF
17938 #define HAVE_INET_PTON 1
17939 _ACEOF
17941 { echo "$as_me:$LINENO: result: yes" >&5
17942 echo "${ECHO_T}yes" >&6; }
17943 else
17944 echo "$as_me: failed program was:" >&5
17945 sed 's/^/| /' conftest.$ac_ext >&5
17947 { echo "$as_me:$LINENO: result: no" >&5
17948 echo "${ECHO_T}no" >&6; }
17952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17954 # On some systems, setgroups is in unistd.h, on others, in grp.h
17955 { echo "$as_me:$LINENO: checking for setgroups" >&5
17956 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6; }
17957 cat >conftest.$ac_ext <<_ACEOF
17958 /* confdefs.h. */
17959 _ACEOF
17960 cat confdefs.h >>conftest.$ac_ext
17961 cat >>conftest.$ac_ext <<_ACEOF
17962 /* end confdefs.h. */
17964 #include "confdefs.h"
17965 #include <unistd.h>
17966 #ifdef HAVE_GRP_H
17967 #include <grp.h>
17968 #endif
17971 main ()
17973 void* p = setgroups
17975 return 0;
17977 _ACEOF
17978 rm -f conftest.$ac_objext
17979 if { (ac_try="$ac_compile"
17980 case "(($ac_try" in
17981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17982 *) ac_try_echo=$ac_try;;
17983 esac
17984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17985 (eval "$ac_compile") 2>conftest.er1
17986 ac_status=$?
17987 grep -v '^ *+' conftest.er1 >conftest.err
17988 rm -f conftest.er1
17989 cat conftest.err >&5
17990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17991 (exit $ac_status); } && {
17992 test -z "$ac_c_werror_flag" ||
17993 test ! -s conftest.err
17994 } && test -s conftest.$ac_objext; then
17996 cat >>confdefs.h <<\_ACEOF
17997 #define HAVE_SETGROUPS 1
17998 _ACEOF
18000 { echo "$as_me:$LINENO: result: yes" >&5
18001 echo "${ECHO_T}yes" >&6; }
18002 else
18003 echo "$as_me: failed program was:" >&5
18004 sed 's/^/| /' conftest.$ac_ext >&5
18006 { echo "$as_me:$LINENO: result: no" >&5
18007 echo "${ECHO_T}no" >&6; }
18011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18013 # check for openpty and forkpty
18016 for ac_func in openpty
18018 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18019 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18020 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18021 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18022 echo $ECHO_N "(cached) $ECHO_C" >&6
18023 else
18024 cat >conftest.$ac_ext <<_ACEOF
18025 /* confdefs.h. */
18026 _ACEOF
18027 cat confdefs.h >>conftest.$ac_ext
18028 cat >>conftest.$ac_ext <<_ACEOF
18029 /* end confdefs.h. */
18030 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18031 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18032 #define $ac_func innocuous_$ac_func
18034 /* System header to define __stub macros and hopefully few prototypes,
18035 which can conflict with char $ac_func (); below.
18036 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18037 <limits.h> exists even on freestanding compilers. */
18039 #ifdef __STDC__
18040 # include <limits.h>
18041 #else
18042 # include <assert.h>
18043 #endif
18045 #undef $ac_func
18047 /* Override any GCC internal prototype to avoid an error.
18048 Use char because int might match the return type of a GCC
18049 builtin and then its argument prototype would still apply. */
18050 #ifdef __cplusplus
18051 extern "C"
18052 #endif
18053 char $ac_func ();
18054 /* The GNU C library defines this for functions which it implements
18055 to always fail with ENOSYS. Some functions are actually named
18056 something starting with __ and the normal name is an alias. */
18057 #if defined __stub_$ac_func || defined __stub___$ac_func
18058 choke me
18059 #endif
18062 main ()
18064 return $ac_func ();
18066 return 0;
18068 _ACEOF
18069 rm -f conftest.$ac_objext conftest$ac_exeext
18070 if { (ac_try="$ac_link"
18071 case "(($ac_try" in
18072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18073 *) ac_try_echo=$ac_try;;
18074 esac
18075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18076 (eval "$ac_link") 2>conftest.er1
18077 ac_status=$?
18078 grep -v '^ *+' conftest.er1 >conftest.err
18079 rm -f conftest.er1
18080 cat conftest.err >&5
18081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18082 (exit $ac_status); } && {
18083 test -z "$ac_c_werror_flag" ||
18084 test ! -s conftest.err
18085 } && test -s conftest$ac_exeext &&
18086 $as_test_x conftest$ac_exeext; then
18087 eval "$as_ac_var=yes"
18088 else
18089 echo "$as_me: failed program was:" >&5
18090 sed 's/^/| /' conftest.$ac_ext >&5
18092 eval "$as_ac_var=no"
18095 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18096 conftest$ac_exeext conftest.$ac_ext
18098 ac_res=`eval echo '${'$as_ac_var'}'`
18099 { echo "$as_me:$LINENO: result: $ac_res" >&5
18100 echo "${ECHO_T}$ac_res" >&6; }
18101 if test `eval echo '${'$as_ac_var'}'` = yes; then
18102 cat >>confdefs.h <<_ACEOF
18103 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18104 _ACEOF
18106 else
18107 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
18108 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
18109 if test "${ac_cv_lib_util_openpty+set}" = set; then
18110 echo $ECHO_N "(cached) $ECHO_C" >&6
18111 else
18112 ac_check_lib_save_LIBS=$LIBS
18113 LIBS="-lutil $LIBS"
18114 cat >conftest.$ac_ext <<_ACEOF
18115 /* confdefs.h. */
18116 _ACEOF
18117 cat confdefs.h >>conftest.$ac_ext
18118 cat >>conftest.$ac_ext <<_ACEOF
18119 /* end confdefs.h. */
18121 /* Override any GCC internal prototype to avoid an error.
18122 Use char because int might match the return type of a GCC
18123 builtin and then its argument prototype would still apply. */
18124 #ifdef __cplusplus
18125 extern "C"
18126 #endif
18127 char openpty ();
18129 main ()
18131 return openpty ();
18133 return 0;
18135 _ACEOF
18136 rm -f conftest.$ac_objext conftest$ac_exeext
18137 if { (ac_try="$ac_link"
18138 case "(($ac_try" in
18139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18140 *) ac_try_echo=$ac_try;;
18141 esac
18142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18143 (eval "$ac_link") 2>conftest.er1
18144 ac_status=$?
18145 grep -v '^ *+' conftest.er1 >conftest.err
18146 rm -f conftest.er1
18147 cat conftest.err >&5
18148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18149 (exit $ac_status); } && {
18150 test -z "$ac_c_werror_flag" ||
18151 test ! -s conftest.err
18152 } && test -s conftest$ac_exeext &&
18153 $as_test_x conftest$ac_exeext; then
18154 ac_cv_lib_util_openpty=yes
18155 else
18156 echo "$as_me: failed program was:" >&5
18157 sed 's/^/| /' conftest.$ac_ext >&5
18159 ac_cv_lib_util_openpty=no
18162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18163 conftest$ac_exeext conftest.$ac_ext
18164 LIBS=$ac_check_lib_save_LIBS
18166 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
18167 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
18168 if test $ac_cv_lib_util_openpty = yes; then
18169 cat >>confdefs.h <<\_ACEOF
18170 #define HAVE_OPENPTY 1
18171 _ACEOF
18172 LIBS="$LIBS -lutil"
18173 else
18174 { echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
18175 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6; }
18176 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
18177 echo $ECHO_N "(cached) $ECHO_C" >&6
18178 else
18179 ac_check_lib_save_LIBS=$LIBS
18180 LIBS="-lbsd $LIBS"
18181 cat >conftest.$ac_ext <<_ACEOF
18182 /* confdefs.h. */
18183 _ACEOF
18184 cat confdefs.h >>conftest.$ac_ext
18185 cat >>conftest.$ac_ext <<_ACEOF
18186 /* end confdefs.h. */
18188 /* Override any GCC internal prototype to avoid an error.
18189 Use char because int might match the return type of a GCC
18190 builtin and then its argument prototype would still apply. */
18191 #ifdef __cplusplus
18192 extern "C"
18193 #endif
18194 char openpty ();
18196 main ()
18198 return openpty ();
18200 return 0;
18202 _ACEOF
18203 rm -f conftest.$ac_objext conftest$ac_exeext
18204 if { (ac_try="$ac_link"
18205 case "(($ac_try" in
18206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18207 *) ac_try_echo=$ac_try;;
18208 esac
18209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18210 (eval "$ac_link") 2>conftest.er1
18211 ac_status=$?
18212 grep -v '^ *+' conftest.er1 >conftest.err
18213 rm -f conftest.er1
18214 cat conftest.err >&5
18215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18216 (exit $ac_status); } && {
18217 test -z "$ac_c_werror_flag" ||
18218 test ! -s conftest.err
18219 } && test -s conftest$ac_exeext &&
18220 $as_test_x conftest$ac_exeext; then
18221 ac_cv_lib_bsd_openpty=yes
18222 else
18223 echo "$as_me: failed program was:" >&5
18224 sed 's/^/| /' conftest.$ac_ext >&5
18226 ac_cv_lib_bsd_openpty=no
18229 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18230 conftest$ac_exeext conftest.$ac_ext
18231 LIBS=$ac_check_lib_save_LIBS
18233 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
18234 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6; }
18235 if test $ac_cv_lib_bsd_openpty = yes; then
18236 cat >>confdefs.h <<\_ACEOF
18237 #define HAVE_OPENPTY 1
18238 _ACEOF
18239 LIBS="$LIBS -lbsd"
18247 done
18250 for ac_func in forkpty
18252 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18253 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18254 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18255 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18256 echo $ECHO_N "(cached) $ECHO_C" >&6
18257 else
18258 cat >conftest.$ac_ext <<_ACEOF
18259 /* confdefs.h. */
18260 _ACEOF
18261 cat confdefs.h >>conftest.$ac_ext
18262 cat >>conftest.$ac_ext <<_ACEOF
18263 /* end confdefs.h. */
18264 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18265 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18266 #define $ac_func innocuous_$ac_func
18268 /* System header to define __stub macros and hopefully few prototypes,
18269 which can conflict with char $ac_func (); below.
18270 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18271 <limits.h> exists even on freestanding compilers. */
18273 #ifdef __STDC__
18274 # include <limits.h>
18275 #else
18276 # include <assert.h>
18277 #endif
18279 #undef $ac_func
18281 /* Override any GCC internal prototype to avoid an error.
18282 Use char because int might match the return type of a GCC
18283 builtin and then its argument prototype would still apply. */
18284 #ifdef __cplusplus
18285 extern "C"
18286 #endif
18287 char $ac_func ();
18288 /* The GNU C library defines this for functions which it implements
18289 to always fail with ENOSYS. Some functions are actually named
18290 something starting with __ and the normal name is an alias. */
18291 #if defined __stub_$ac_func || defined __stub___$ac_func
18292 choke me
18293 #endif
18296 main ()
18298 return $ac_func ();
18300 return 0;
18302 _ACEOF
18303 rm -f conftest.$ac_objext conftest$ac_exeext
18304 if { (ac_try="$ac_link"
18305 case "(($ac_try" in
18306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18307 *) ac_try_echo=$ac_try;;
18308 esac
18309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18310 (eval "$ac_link") 2>conftest.er1
18311 ac_status=$?
18312 grep -v '^ *+' conftest.er1 >conftest.err
18313 rm -f conftest.er1
18314 cat conftest.err >&5
18315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18316 (exit $ac_status); } && {
18317 test -z "$ac_c_werror_flag" ||
18318 test ! -s conftest.err
18319 } && test -s conftest$ac_exeext &&
18320 $as_test_x conftest$ac_exeext; then
18321 eval "$as_ac_var=yes"
18322 else
18323 echo "$as_me: failed program was:" >&5
18324 sed 's/^/| /' conftest.$ac_ext >&5
18326 eval "$as_ac_var=no"
18329 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18330 conftest$ac_exeext conftest.$ac_ext
18332 ac_res=`eval echo '${'$as_ac_var'}'`
18333 { echo "$as_me:$LINENO: result: $ac_res" >&5
18334 echo "${ECHO_T}$ac_res" >&6; }
18335 if test `eval echo '${'$as_ac_var'}'` = yes; then
18336 cat >>confdefs.h <<_ACEOF
18337 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18338 _ACEOF
18340 else
18341 { echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
18342 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6; }
18343 if test "${ac_cv_lib_util_forkpty+set}" = set; then
18344 echo $ECHO_N "(cached) $ECHO_C" >&6
18345 else
18346 ac_check_lib_save_LIBS=$LIBS
18347 LIBS="-lutil $LIBS"
18348 cat >conftest.$ac_ext <<_ACEOF
18349 /* confdefs.h. */
18350 _ACEOF
18351 cat confdefs.h >>conftest.$ac_ext
18352 cat >>conftest.$ac_ext <<_ACEOF
18353 /* end confdefs.h. */
18355 /* Override any GCC internal prototype to avoid an error.
18356 Use char because int might match the return type of a GCC
18357 builtin and then its argument prototype would still apply. */
18358 #ifdef __cplusplus
18359 extern "C"
18360 #endif
18361 char forkpty ();
18363 main ()
18365 return forkpty ();
18367 return 0;
18369 _ACEOF
18370 rm -f conftest.$ac_objext conftest$ac_exeext
18371 if { (ac_try="$ac_link"
18372 case "(($ac_try" in
18373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18374 *) ac_try_echo=$ac_try;;
18375 esac
18376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18377 (eval "$ac_link") 2>conftest.er1
18378 ac_status=$?
18379 grep -v '^ *+' conftest.er1 >conftest.err
18380 rm -f conftest.er1
18381 cat conftest.err >&5
18382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18383 (exit $ac_status); } && {
18384 test -z "$ac_c_werror_flag" ||
18385 test ! -s conftest.err
18386 } && test -s conftest$ac_exeext &&
18387 $as_test_x conftest$ac_exeext; then
18388 ac_cv_lib_util_forkpty=yes
18389 else
18390 echo "$as_me: failed program was:" >&5
18391 sed 's/^/| /' conftest.$ac_ext >&5
18393 ac_cv_lib_util_forkpty=no
18396 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18397 conftest$ac_exeext conftest.$ac_ext
18398 LIBS=$ac_check_lib_save_LIBS
18400 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
18401 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6; }
18402 if test $ac_cv_lib_util_forkpty = yes; then
18403 cat >>confdefs.h <<\_ACEOF
18404 #define HAVE_FORKPTY 1
18405 _ACEOF
18406 LIBS="$LIBS -lutil"
18407 else
18408 { echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
18409 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6; }
18410 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
18411 echo $ECHO_N "(cached) $ECHO_C" >&6
18412 else
18413 ac_check_lib_save_LIBS=$LIBS
18414 LIBS="-lbsd $LIBS"
18415 cat >conftest.$ac_ext <<_ACEOF
18416 /* confdefs.h. */
18417 _ACEOF
18418 cat confdefs.h >>conftest.$ac_ext
18419 cat >>conftest.$ac_ext <<_ACEOF
18420 /* end confdefs.h. */
18422 /* Override any GCC internal prototype to avoid an error.
18423 Use char because int might match the return type of a GCC
18424 builtin and then its argument prototype would still apply. */
18425 #ifdef __cplusplus
18426 extern "C"
18427 #endif
18428 char forkpty ();
18430 main ()
18432 return forkpty ();
18434 return 0;
18436 _ACEOF
18437 rm -f conftest.$ac_objext conftest$ac_exeext
18438 if { (ac_try="$ac_link"
18439 case "(($ac_try" in
18440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18441 *) ac_try_echo=$ac_try;;
18442 esac
18443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18444 (eval "$ac_link") 2>conftest.er1
18445 ac_status=$?
18446 grep -v '^ *+' conftest.er1 >conftest.err
18447 rm -f conftest.er1
18448 cat conftest.err >&5
18449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18450 (exit $ac_status); } && {
18451 test -z "$ac_c_werror_flag" ||
18452 test ! -s conftest.err
18453 } && test -s conftest$ac_exeext &&
18454 $as_test_x conftest$ac_exeext; then
18455 ac_cv_lib_bsd_forkpty=yes
18456 else
18457 echo "$as_me: failed program was:" >&5
18458 sed 's/^/| /' conftest.$ac_ext >&5
18460 ac_cv_lib_bsd_forkpty=no
18463 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18464 conftest$ac_exeext conftest.$ac_ext
18465 LIBS=$ac_check_lib_save_LIBS
18467 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
18468 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6; }
18469 if test $ac_cv_lib_bsd_forkpty = yes; then
18470 cat >>confdefs.h <<\_ACEOF
18471 #define HAVE_FORKPTY 1
18472 _ACEOF
18473 LIBS="$LIBS -lbsd"
18481 done
18484 # Stuff for expat.
18486 for ac_func in memmove
18488 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18489 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18490 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18491 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18492 echo $ECHO_N "(cached) $ECHO_C" >&6
18493 else
18494 cat >conftest.$ac_ext <<_ACEOF
18495 /* confdefs.h. */
18496 _ACEOF
18497 cat confdefs.h >>conftest.$ac_ext
18498 cat >>conftest.$ac_ext <<_ACEOF
18499 /* end confdefs.h. */
18500 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18501 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18502 #define $ac_func innocuous_$ac_func
18504 /* System header to define __stub macros and hopefully few prototypes,
18505 which can conflict with char $ac_func (); below.
18506 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18507 <limits.h> exists even on freestanding compilers. */
18509 #ifdef __STDC__
18510 # include <limits.h>
18511 #else
18512 # include <assert.h>
18513 #endif
18515 #undef $ac_func
18517 /* Override any GCC internal prototype to avoid an error.
18518 Use char because int might match the return type of a GCC
18519 builtin and then its argument prototype would still apply. */
18520 #ifdef __cplusplus
18521 extern "C"
18522 #endif
18523 char $ac_func ();
18524 /* The GNU C library defines this for functions which it implements
18525 to always fail with ENOSYS. Some functions are actually named
18526 something starting with __ and the normal name is an alias. */
18527 #if defined __stub_$ac_func || defined __stub___$ac_func
18528 choke me
18529 #endif
18532 main ()
18534 return $ac_func ();
18536 return 0;
18538 _ACEOF
18539 rm -f conftest.$ac_objext conftest$ac_exeext
18540 if { (ac_try="$ac_link"
18541 case "(($ac_try" in
18542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18543 *) ac_try_echo=$ac_try;;
18544 esac
18545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18546 (eval "$ac_link") 2>conftest.er1
18547 ac_status=$?
18548 grep -v '^ *+' conftest.er1 >conftest.err
18549 rm -f conftest.er1
18550 cat conftest.err >&5
18551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18552 (exit $ac_status); } && {
18553 test -z "$ac_c_werror_flag" ||
18554 test ! -s conftest.err
18555 } && test -s conftest$ac_exeext &&
18556 $as_test_x conftest$ac_exeext; then
18557 eval "$as_ac_var=yes"
18558 else
18559 echo "$as_me: failed program was:" >&5
18560 sed 's/^/| /' conftest.$ac_ext >&5
18562 eval "$as_ac_var=no"
18565 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18566 conftest$ac_exeext conftest.$ac_ext
18568 ac_res=`eval echo '${'$as_ac_var'}'`
18569 { echo "$as_me:$LINENO: result: $ac_res" >&5
18570 echo "${ECHO_T}$ac_res" >&6; }
18571 if test `eval echo '${'$as_ac_var'}'` = yes; then
18572 cat >>confdefs.h <<_ACEOF
18573 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18574 _ACEOF
18577 done
18580 # check for long file support functions
18587 for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
18589 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18590 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18591 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18592 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18593 echo $ECHO_N "(cached) $ECHO_C" >&6
18594 else
18595 cat >conftest.$ac_ext <<_ACEOF
18596 /* confdefs.h. */
18597 _ACEOF
18598 cat confdefs.h >>conftest.$ac_ext
18599 cat >>conftest.$ac_ext <<_ACEOF
18600 /* end confdefs.h. */
18601 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18602 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18603 #define $ac_func innocuous_$ac_func
18605 /* System header to define __stub macros and hopefully few prototypes,
18606 which can conflict with char $ac_func (); below.
18607 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18608 <limits.h> exists even on freestanding compilers. */
18610 #ifdef __STDC__
18611 # include <limits.h>
18612 #else
18613 # include <assert.h>
18614 #endif
18616 #undef $ac_func
18618 /* Override any GCC internal prototype to avoid an error.
18619 Use char because int might match the return type of a GCC
18620 builtin and then its argument prototype would still apply. */
18621 #ifdef __cplusplus
18622 extern "C"
18623 #endif
18624 char $ac_func ();
18625 /* The GNU C library defines this for functions which it implements
18626 to always fail with ENOSYS. Some functions are actually named
18627 something starting with __ and the normal name is an alias. */
18628 #if defined __stub_$ac_func || defined __stub___$ac_func
18629 choke me
18630 #endif
18633 main ()
18635 return $ac_func ();
18637 return 0;
18639 _ACEOF
18640 rm -f conftest.$ac_objext conftest$ac_exeext
18641 if { (ac_try="$ac_link"
18642 case "(($ac_try" in
18643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18644 *) ac_try_echo=$ac_try;;
18645 esac
18646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18647 (eval "$ac_link") 2>conftest.er1
18648 ac_status=$?
18649 grep -v '^ *+' conftest.er1 >conftest.err
18650 rm -f conftest.er1
18651 cat conftest.err >&5
18652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18653 (exit $ac_status); } && {
18654 test -z "$ac_c_werror_flag" ||
18655 test ! -s conftest.err
18656 } && test -s conftest$ac_exeext &&
18657 $as_test_x conftest$ac_exeext; then
18658 eval "$as_ac_var=yes"
18659 else
18660 echo "$as_me: failed program was:" >&5
18661 sed 's/^/| /' conftest.$ac_ext >&5
18663 eval "$as_ac_var=no"
18666 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18667 conftest$ac_exeext conftest.$ac_ext
18669 ac_res=`eval echo '${'$as_ac_var'}'`
18670 { echo "$as_me:$LINENO: result: $ac_res" >&5
18671 echo "${ECHO_T}$ac_res" >&6; }
18672 if test `eval echo '${'$as_ac_var'}'` = yes; then
18673 cat >>confdefs.h <<_ACEOF
18674 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18675 _ACEOF
18678 done
18684 for ac_func in dup2 getcwd strdup
18686 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18687 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18688 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18689 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18690 echo $ECHO_N "(cached) $ECHO_C" >&6
18691 else
18692 cat >conftest.$ac_ext <<_ACEOF
18693 /* confdefs.h. */
18694 _ACEOF
18695 cat confdefs.h >>conftest.$ac_ext
18696 cat >>conftest.$ac_ext <<_ACEOF
18697 /* end confdefs.h. */
18698 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18699 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18700 #define $ac_func innocuous_$ac_func
18702 /* System header to define __stub macros and hopefully few prototypes,
18703 which can conflict with char $ac_func (); below.
18704 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18705 <limits.h> exists even on freestanding compilers. */
18707 #ifdef __STDC__
18708 # include <limits.h>
18709 #else
18710 # include <assert.h>
18711 #endif
18713 #undef $ac_func
18715 /* Override any GCC internal prototype to avoid an error.
18716 Use char because int might match the return type of a GCC
18717 builtin and then its argument prototype would still apply. */
18718 #ifdef __cplusplus
18719 extern "C"
18720 #endif
18721 char $ac_func ();
18722 /* The GNU C library defines this for functions which it implements
18723 to always fail with ENOSYS. Some functions are actually named
18724 something starting with __ and the normal name is an alias. */
18725 #if defined __stub_$ac_func || defined __stub___$ac_func
18726 choke me
18727 #endif
18730 main ()
18732 return $ac_func ();
18734 return 0;
18736 _ACEOF
18737 rm -f conftest.$ac_objext conftest$ac_exeext
18738 if { (ac_try="$ac_link"
18739 case "(($ac_try" in
18740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18741 *) ac_try_echo=$ac_try;;
18742 esac
18743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18744 (eval "$ac_link") 2>conftest.er1
18745 ac_status=$?
18746 grep -v '^ *+' conftest.er1 >conftest.err
18747 rm -f conftest.er1
18748 cat conftest.err >&5
18749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18750 (exit $ac_status); } && {
18751 test -z "$ac_c_werror_flag" ||
18752 test ! -s conftest.err
18753 } && test -s conftest$ac_exeext &&
18754 $as_test_x conftest$ac_exeext; then
18755 eval "$as_ac_var=yes"
18756 else
18757 echo "$as_me: failed program was:" >&5
18758 sed 's/^/| /' conftest.$ac_ext >&5
18760 eval "$as_ac_var=no"
18763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18764 conftest$ac_exeext conftest.$ac_ext
18766 ac_res=`eval echo '${'$as_ac_var'}'`
18767 { echo "$as_me:$LINENO: result: $ac_res" >&5
18768 echo "${ECHO_T}$ac_res" >&6; }
18769 if test `eval echo '${'$as_ac_var'}'` = yes; then
18770 cat >>confdefs.h <<_ACEOF
18771 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18772 _ACEOF
18774 else
18775 case " $LIBOBJS " in
18776 *" $ac_func.$ac_objext "* ) ;;
18777 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18779 esac
18782 done
18786 for ac_func in getpgrp
18788 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18789 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18790 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18791 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18792 echo $ECHO_N "(cached) $ECHO_C" >&6
18793 else
18794 cat >conftest.$ac_ext <<_ACEOF
18795 /* confdefs.h. */
18796 _ACEOF
18797 cat confdefs.h >>conftest.$ac_ext
18798 cat >>conftest.$ac_ext <<_ACEOF
18799 /* end confdefs.h. */
18800 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18801 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18802 #define $ac_func innocuous_$ac_func
18804 /* System header to define __stub macros and hopefully few prototypes,
18805 which can conflict with char $ac_func (); below.
18806 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18807 <limits.h> exists even on freestanding compilers. */
18809 #ifdef __STDC__
18810 # include <limits.h>
18811 #else
18812 # include <assert.h>
18813 #endif
18815 #undef $ac_func
18817 /* Override any GCC internal prototype to avoid an error.
18818 Use char because int might match the return type of a GCC
18819 builtin and then its argument prototype would still apply. */
18820 #ifdef __cplusplus
18821 extern "C"
18822 #endif
18823 char $ac_func ();
18824 /* The GNU C library defines this for functions which it implements
18825 to always fail with ENOSYS. Some functions are actually named
18826 something starting with __ and the normal name is an alias. */
18827 #if defined __stub_$ac_func || defined __stub___$ac_func
18828 choke me
18829 #endif
18832 main ()
18834 return $ac_func ();
18836 return 0;
18838 _ACEOF
18839 rm -f conftest.$ac_objext conftest$ac_exeext
18840 if { (ac_try="$ac_link"
18841 case "(($ac_try" in
18842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18843 *) ac_try_echo=$ac_try;;
18844 esac
18845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18846 (eval "$ac_link") 2>conftest.er1
18847 ac_status=$?
18848 grep -v '^ *+' conftest.er1 >conftest.err
18849 rm -f conftest.er1
18850 cat conftest.err >&5
18851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18852 (exit $ac_status); } && {
18853 test -z "$ac_c_werror_flag" ||
18854 test ! -s conftest.err
18855 } && test -s conftest$ac_exeext &&
18856 $as_test_x conftest$ac_exeext; then
18857 eval "$as_ac_var=yes"
18858 else
18859 echo "$as_me: failed program was:" >&5
18860 sed 's/^/| /' conftest.$ac_ext >&5
18862 eval "$as_ac_var=no"
18865 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18866 conftest$ac_exeext conftest.$ac_ext
18868 ac_res=`eval echo '${'$as_ac_var'}'`
18869 { echo "$as_me:$LINENO: result: $ac_res" >&5
18870 echo "${ECHO_T}$ac_res" >&6; }
18871 if test `eval echo '${'$as_ac_var'}'` = yes; then
18872 cat >>confdefs.h <<_ACEOF
18873 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18874 _ACEOF
18875 cat >conftest.$ac_ext <<_ACEOF
18876 /* confdefs.h. */
18877 _ACEOF
18878 cat confdefs.h >>conftest.$ac_ext
18879 cat >>conftest.$ac_ext <<_ACEOF
18880 /* end confdefs.h. */
18881 #include <unistd.h>
18883 main ()
18885 getpgrp(0);
18887 return 0;
18889 _ACEOF
18890 rm -f conftest.$ac_objext
18891 if { (ac_try="$ac_compile"
18892 case "(($ac_try" in
18893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18894 *) ac_try_echo=$ac_try;;
18895 esac
18896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18897 (eval "$ac_compile") 2>conftest.er1
18898 ac_status=$?
18899 grep -v '^ *+' conftest.er1 >conftest.err
18900 rm -f conftest.er1
18901 cat conftest.err >&5
18902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18903 (exit $ac_status); } && {
18904 test -z "$ac_c_werror_flag" ||
18905 test ! -s conftest.err
18906 } && test -s conftest.$ac_objext; then
18908 cat >>confdefs.h <<\_ACEOF
18909 #define GETPGRP_HAVE_ARG 1
18910 _ACEOF
18913 else
18914 echo "$as_me: failed program was:" >&5
18915 sed 's/^/| /' conftest.$ac_ext >&5
18920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18923 done
18926 for ac_func in setpgrp
18928 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18929 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18930 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18931 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18932 echo $ECHO_N "(cached) $ECHO_C" >&6
18933 else
18934 cat >conftest.$ac_ext <<_ACEOF
18935 /* confdefs.h. */
18936 _ACEOF
18937 cat confdefs.h >>conftest.$ac_ext
18938 cat >>conftest.$ac_ext <<_ACEOF
18939 /* end confdefs.h. */
18940 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18941 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18942 #define $ac_func innocuous_$ac_func
18944 /* System header to define __stub macros and hopefully few prototypes,
18945 which can conflict with char $ac_func (); below.
18946 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18947 <limits.h> exists even on freestanding compilers. */
18949 #ifdef __STDC__
18950 # include <limits.h>
18951 #else
18952 # include <assert.h>
18953 #endif
18955 #undef $ac_func
18957 /* Override any GCC internal prototype to avoid an error.
18958 Use char because int might match the return type of a GCC
18959 builtin and then its argument prototype would still apply. */
18960 #ifdef __cplusplus
18961 extern "C"
18962 #endif
18963 char $ac_func ();
18964 /* The GNU C library defines this for functions which it implements
18965 to always fail with ENOSYS. Some functions are actually named
18966 something starting with __ and the normal name is an alias. */
18967 #if defined __stub_$ac_func || defined __stub___$ac_func
18968 choke me
18969 #endif
18972 main ()
18974 return $ac_func ();
18976 return 0;
18978 _ACEOF
18979 rm -f conftest.$ac_objext conftest$ac_exeext
18980 if { (ac_try="$ac_link"
18981 case "(($ac_try" in
18982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18983 *) ac_try_echo=$ac_try;;
18984 esac
18985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18986 (eval "$ac_link") 2>conftest.er1
18987 ac_status=$?
18988 grep -v '^ *+' conftest.er1 >conftest.err
18989 rm -f conftest.er1
18990 cat conftest.err >&5
18991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18992 (exit $ac_status); } && {
18993 test -z "$ac_c_werror_flag" ||
18994 test ! -s conftest.err
18995 } && test -s conftest$ac_exeext &&
18996 $as_test_x conftest$ac_exeext; then
18997 eval "$as_ac_var=yes"
18998 else
18999 echo "$as_me: failed program was:" >&5
19000 sed 's/^/| /' conftest.$ac_ext >&5
19002 eval "$as_ac_var=no"
19005 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19006 conftest$ac_exeext conftest.$ac_ext
19008 ac_res=`eval echo '${'$as_ac_var'}'`
19009 { echo "$as_me:$LINENO: result: $ac_res" >&5
19010 echo "${ECHO_T}$ac_res" >&6; }
19011 if test `eval echo '${'$as_ac_var'}'` = yes; then
19012 cat >>confdefs.h <<_ACEOF
19013 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19014 _ACEOF
19015 cat >conftest.$ac_ext <<_ACEOF
19016 /* confdefs.h. */
19017 _ACEOF
19018 cat confdefs.h >>conftest.$ac_ext
19019 cat >>conftest.$ac_ext <<_ACEOF
19020 /* end confdefs.h. */
19021 #include <unistd.h>
19023 main ()
19025 setpgrp(0,0);
19027 return 0;
19029 _ACEOF
19030 rm -f conftest.$ac_objext
19031 if { (ac_try="$ac_compile"
19032 case "(($ac_try" in
19033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19034 *) ac_try_echo=$ac_try;;
19035 esac
19036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19037 (eval "$ac_compile") 2>conftest.er1
19038 ac_status=$?
19039 grep -v '^ *+' conftest.er1 >conftest.err
19040 rm -f conftest.er1
19041 cat conftest.err >&5
19042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19043 (exit $ac_status); } && {
19044 test -z "$ac_c_werror_flag" ||
19045 test ! -s conftest.err
19046 } && test -s conftest.$ac_objext; then
19048 cat >>confdefs.h <<\_ACEOF
19049 #define SETPGRP_HAVE_ARG 1
19050 _ACEOF
19053 else
19054 echo "$as_me: failed program was:" >&5
19055 sed 's/^/| /' conftest.$ac_ext >&5
19060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19063 done
19066 for ac_func in gettimeofday
19068 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19069 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19070 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19071 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19072 echo $ECHO_N "(cached) $ECHO_C" >&6
19073 else
19074 cat >conftest.$ac_ext <<_ACEOF
19075 /* confdefs.h. */
19076 _ACEOF
19077 cat confdefs.h >>conftest.$ac_ext
19078 cat >>conftest.$ac_ext <<_ACEOF
19079 /* end confdefs.h. */
19080 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19081 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19082 #define $ac_func innocuous_$ac_func
19084 /* System header to define __stub macros and hopefully few prototypes,
19085 which can conflict with char $ac_func (); below.
19086 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19087 <limits.h> exists even on freestanding compilers. */
19089 #ifdef __STDC__
19090 # include <limits.h>
19091 #else
19092 # include <assert.h>
19093 #endif
19095 #undef $ac_func
19097 /* Override any GCC internal prototype to avoid an error.
19098 Use char because int might match the return type of a GCC
19099 builtin and then its argument prototype would still apply. */
19100 #ifdef __cplusplus
19101 extern "C"
19102 #endif
19103 char $ac_func ();
19104 /* The GNU C library defines this for functions which it implements
19105 to always fail with ENOSYS. Some functions are actually named
19106 something starting with __ and the normal name is an alias. */
19107 #if defined __stub_$ac_func || defined __stub___$ac_func
19108 choke me
19109 #endif
19112 main ()
19114 return $ac_func ();
19116 return 0;
19118 _ACEOF
19119 rm -f conftest.$ac_objext conftest$ac_exeext
19120 if { (ac_try="$ac_link"
19121 case "(($ac_try" in
19122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19123 *) ac_try_echo=$ac_try;;
19124 esac
19125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19126 (eval "$ac_link") 2>conftest.er1
19127 ac_status=$?
19128 grep -v '^ *+' conftest.er1 >conftest.err
19129 rm -f conftest.er1
19130 cat conftest.err >&5
19131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19132 (exit $ac_status); } && {
19133 test -z "$ac_c_werror_flag" ||
19134 test ! -s conftest.err
19135 } && test -s conftest$ac_exeext &&
19136 $as_test_x conftest$ac_exeext; then
19137 eval "$as_ac_var=yes"
19138 else
19139 echo "$as_me: failed program was:" >&5
19140 sed 's/^/| /' conftest.$ac_ext >&5
19142 eval "$as_ac_var=no"
19145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19146 conftest$ac_exeext conftest.$ac_ext
19148 ac_res=`eval echo '${'$as_ac_var'}'`
19149 { echo "$as_me:$LINENO: result: $ac_res" >&5
19150 echo "${ECHO_T}$ac_res" >&6; }
19151 if test `eval echo '${'$as_ac_var'}'` = yes; then
19152 cat >>confdefs.h <<_ACEOF
19153 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19154 _ACEOF
19155 cat >conftest.$ac_ext <<_ACEOF
19156 /* confdefs.h. */
19157 _ACEOF
19158 cat confdefs.h >>conftest.$ac_ext
19159 cat >>conftest.$ac_ext <<_ACEOF
19160 /* end confdefs.h. */
19161 #include <sys/time.h>
19163 main ()
19165 gettimeofday((struct timeval*)0,(struct timezone*)0);
19167 return 0;
19169 _ACEOF
19170 rm -f conftest.$ac_objext
19171 if { (ac_try="$ac_compile"
19172 case "(($ac_try" in
19173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19174 *) ac_try_echo=$ac_try;;
19175 esac
19176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19177 (eval "$ac_compile") 2>conftest.er1
19178 ac_status=$?
19179 grep -v '^ *+' conftest.er1 >conftest.err
19180 rm -f conftest.er1
19181 cat conftest.err >&5
19182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19183 (exit $ac_status); } && {
19184 test -z "$ac_c_werror_flag" ||
19185 test ! -s conftest.err
19186 } && test -s conftest.$ac_objext; then
19188 else
19189 echo "$as_me: failed program was:" >&5
19190 sed 's/^/| /' conftest.$ac_ext >&5
19193 cat >>confdefs.h <<\_ACEOF
19194 #define GETTIMEOFDAY_NO_TZ 1
19195 _ACEOF
19200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19203 done
19206 { echo "$as_me:$LINENO: checking for major" >&5
19207 echo $ECHO_N "checking for major... $ECHO_C" >&6; }
19208 cat >conftest.$ac_ext <<_ACEOF
19209 /* confdefs.h. */
19210 _ACEOF
19211 cat confdefs.h >>conftest.$ac_ext
19212 cat >>conftest.$ac_ext <<_ACEOF
19213 /* end confdefs.h. */
19215 #if defined(MAJOR_IN_MKDEV)
19216 #include <sys/mkdev.h>
19217 #elif defined(MAJOR_IN_SYSMACROS)
19218 #include <sys/sysmacros.h>
19219 #else
19220 #include <sys/types.h>
19221 #endif
19224 main ()
19227 makedev(major(0),minor(0));
19230 return 0;
19232 _ACEOF
19233 rm -f conftest.$ac_objext conftest$ac_exeext
19234 if { (ac_try="$ac_link"
19235 case "(($ac_try" in
19236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19237 *) ac_try_echo=$ac_try;;
19238 esac
19239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19240 (eval "$ac_link") 2>conftest.er1
19241 ac_status=$?
19242 grep -v '^ *+' conftest.er1 >conftest.err
19243 rm -f conftest.er1
19244 cat conftest.err >&5
19245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19246 (exit $ac_status); } && {
19247 test -z "$ac_c_werror_flag" ||
19248 test ! -s conftest.err
19249 } && test -s conftest$ac_exeext &&
19250 $as_test_x conftest$ac_exeext; then
19253 cat >>confdefs.h <<\_ACEOF
19254 #define HAVE_DEVICE_MACROS 1
19255 _ACEOF
19257 { echo "$as_me:$LINENO: result: yes" >&5
19258 echo "${ECHO_T}yes" >&6; }
19260 else
19261 echo "$as_me: failed program was:" >&5
19262 sed 's/^/| /' conftest.$ac_ext >&5
19265 { echo "$as_me:$LINENO: result: no" >&5
19266 echo "${ECHO_T}no" >&6; }
19270 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19271 conftest$ac_exeext conftest.$ac_ext
19273 # On OSF/1 V5.1, getaddrinfo is available, but a define
19274 # for [no]getaddrinfo in netdb.h.
19275 { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
19276 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
19277 cat >conftest.$ac_ext <<_ACEOF
19278 /* confdefs.h. */
19279 _ACEOF
19280 cat confdefs.h >>conftest.$ac_ext
19281 cat >>conftest.$ac_ext <<_ACEOF
19282 /* end confdefs.h. */
19284 #include <sys/types.h>
19285 #include <sys/socket.h>
19286 #include <netdb.h>
19287 #include <stdio.h>
19290 main ()
19293 getaddrinfo(NULL, NULL, NULL, NULL);
19296 return 0;
19298 _ACEOF
19299 rm -f conftest.$ac_objext conftest$ac_exeext
19300 if { (ac_try="$ac_link"
19301 case "(($ac_try" in
19302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19303 *) ac_try_echo=$ac_try;;
19304 esac
19305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19306 (eval "$ac_link") 2>conftest.er1
19307 ac_status=$?
19308 grep -v '^ *+' conftest.er1 >conftest.err
19309 rm -f conftest.er1
19310 cat conftest.err >&5
19311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19312 (exit $ac_status); } && {
19313 test -z "$ac_c_werror_flag" ||
19314 test ! -s conftest.err
19315 } && test -s conftest$ac_exeext &&
19316 $as_test_x conftest$ac_exeext; then
19318 { echo "$as_me:$LINENO: result: yes" >&5
19319 echo "${ECHO_T}yes" >&6; }
19320 { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
19321 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
19322 if test "$cross_compiling" = yes; then
19323 { echo "$as_me:$LINENO: result: buggy" >&5
19324 echo "${ECHO_T}buggy" >&6; }
19325 buggygetaddrinfo=yes
19326 else
19327 cat >conftest.$ac_ext <<_ACEOF
19328 /* confdefs.h. */
19329 _ACEOF
19330 cat confdefs.h >>conftest.$ac_ext
19331 cat >>conftest.$ac_ext <<_ACEOF
19332 /* end confdefs.h. */
19334 #include <sys/types.h>
19335 #include <netdb.h>
19336 #include <string.h>
19337 #include <sys/socket.h>
19338 #include <netinet/in.h>
19340 main()
19342 int passive, gaierr, inet4 = 0, inet6 = 0;
19343 struct addrinfo hints, *ai, *aitop;
19344 char straddr[INET6_ADDRSTRLEN], strport[16];
19346 for (passive = 0; passive <= 1; passive++) {
19347 memset(&hints, 0, sizeof(hints));
19348 hints.ai_family = AF_UNSPEC;
19349 hints.ai_flags = passive ? AI_PASSIVE : 0;
19350 hints.ai_socktype = SOCK_STREAM;
19351 hints.ai_protocol = IPPROTO_TCP;
19352 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
19353 (void)gai_strerror(gaierr);
19354 goto bad;
19356 for (ai = aitop; ai; ai = ai->ai_next) {
19357 if (ai->ai_addr == NULL ||
19358 ai->ai_addrlen == 0 ||
19359 getnameinfo(ai->ai_addr, ai->ai_addrlen,
19360 straddr, sizeof(straddr), strport, sizeof(strport),
19361 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
19362 goto bad;
19364 switch (ai->ai_family) {
19365 case AF_INET:
19366 if (strcmp(strport, "54321") != 0) {
19367 goto bad;
19369 if (passive) {
19370 if (strcmp(straddr, "0.0.0.0") != 0) {
19371 goto bad;
19373 } else {
19374 if (strcmp(straddr, "127.0.0.1") != 0) {
19375 goto bad;
19378 inet4++;
19379 break;
19380 case AF_INET6:
19381 if (strcmp(strport, "54321") != 0) {
19382 goto bad;
19384 if (passive) {
19385 if (strcmp(straddr, "::") != 0) {
19386 goto bad;
19388 } else {
19389 if (strcmp(straddr, "::1") != 0) {
19390 goto bad;
19393 inet6++;
19394 break;
19395 case AF_UNSPEC:
19396 goto bad;
19397 break;
19398 default:
19399 /* another family support? */
19400 break;
19405 if (!(inet4 == 0 || inet4 == 2))
19406 goto bad;
19407 if (!(inet6 == 0 || inet6 == 2))
19408 goto bad;
19410 if (aitop)
19411 freeaddrinfo(aitop);
19412 exit(0);
19414 bad:
19415 if (aitop)
19416 freeaddrinfo(aitop);
19417 exit(1);
19420 _ACEOF
19421 rm -f conftest$ac_exeext
19422 if { (ac_try="$ac_link"
19423 case "(($ac_try" in
19424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19425 *) ac_try_echo=$ac_try;;
19426 esac
19427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19428 (eval "$ac_link") 2>&5
19429 ac_status=$?
19430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19431 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19432 { (case "(($ac_try" in
19433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19434 *) ac_try_echo=$ac_try;;
19435 esac
19436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19437 (eval "$ac_try") 2>&5
19438 ac_status=$?
19439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19440 (exit $ac_status); }; }; then
19441 { echo "$as_me:$LINENO: result: good" >&5
19442 echo "${ECHO_T}good" >&6; }
19443 buggygetaddrinfo=no
19444 else
19445 echo "$as_me: program exited with status $ac_status" >&5
19446 echo "$as_me: failed program was:" >&5
19447 sed 's/^/| /' conftest.$ac_ext >&5
19449 ( exit $ac_status )
19450 { echo "$as_me:$LINENO: result: buggy" >&5
19451 echo "${ECHO_T}buggy" >&6; }
19452 buggygetaddrinfo=yes
19454 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19458 else
19459 echo "$as_me: failed program was:" >&5
19460 sed 's/^/| /' conftest.$ac_ext >&5
19463 { echo "$as_me:$LINENO: result: no" >&5
19464 echo "${ECHO_T}no" >&6; }
19465 buggygetaddrinfo=yes
19469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19470 conftest$ac_exeext conftest.$ac_ext
19472 if test "$buggygetaddrinfo" = "yes"; then
19473 if test "$ipv6" = "yes"; then
19474 echo 'Fatal: You must get working getaddrinfo() function.'
19475 echo ' or you can specify "--disable-ipv6"'.
19476 exit 1
19478 else
19480 cat >>confdefs.h <<\_ACEOF
19481 #define HAVE_GETADDRINFO 1
19482 _ACEOF
19486 for ac_func in getnameinfo
19488 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19489 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19490 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19491 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19492 echo $ECHO_N "(cached) $ECHO_C" >&6
19493 else
19494 cat >conftest.$ac_ext <<_ACEOF
19495 /* confdefs.h. */
19496 _ACEOF
19497 cat confdefs.h >>conftest.$ac_ext
19498 cat >>conftest.$ac_ext <<_ACEOF
19499 /* end confdefs.h. */
19500 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19501 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19502 #define $ac_func innocuous_$ac_func
19504 /* System header to define __stub macros and hopefully few prototypes,
19505 which can conflict with char $ac_func (); below.
19506 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19507 <limits.h> exists even on freestanding compilers. */
19509 #ifdef __STDC__
19510 # include <limits.h>
19511 #else
19512 # include <assert.h>
19513 #endif
19515 #undef $ac_func
19517 /* Override any GCC internal prototype to avoid an error.
19518 Use char because int might match the return type of a GCC
19519 builtin and then its argument prototype would still apply. */
19520 #ifdef __cplusplus
19521 extern "C"
19522 #endif
19523 char $ac_func ();
19524 /* The GNU C library defines this for functions which it implements
19525 to always fail with ENOSYS. Some functions are actually named
19526 something starting with __ and the normal name is an alias. */
19527 #if defined __stub_$ac_func || defined __stub___$ac_func
19528 choke me
19529 #endif
19532 main ()
19534 return $ac_func ();
19536 return 0;
19538 _ACEOF
19539 rm -f conftest.$ac_objext conftest$ac_exeext
19540 if { (ac_try="$ac_link"
19541 case "(($ac_try" in
19542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19543 *) ac_try_echo=$ac_try;;
19544 esac
19545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19546 (eval "$ac_link") 2>conftest.er1
19547 ac_status=$?
19548 grep -v '^ *+' conftest.er1 >conftest.err
19549 rm -f conftest.er1
19550 cat conftest.err >&5
19551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19552 (exit $ac_status); } && {
19553 test -z "$ac_c_werror_flag" ||
19554 test ! -s conftest.err
19555 } && test -s conftest$ac_exeext &&
19556 $as_test_x conftest$ac_exeext; then
19557 eval "$as_ac_var=yes"
19558 else
19559 echo "$as_me: failed program was:" >&5
19560 sed 's/^/| /' conftest.$ac_ext >&5
19562 eval "$as_ac_var=no"
19565 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19566 conftest$ac_exeext conftest.$ac_ext
19568 ac_res=`eval echo '${'$as_ac_var'}'`
19569 { echo "$as_me:$LINENO: result: $ac_res" >&5
19570 echo "${ECHO_T}$ac_res" >&6; }
19571 if test `eval echo '${'$as_ac_var'}'` = yes; then
19572 cat >>confdefs.h <<_ACEOF
19573 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19574 _ACEOF
19577 done
19580 # checks for structures
19581 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19582 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
19583 if test "${ac_cv_header_time+set}" = set; then
19584 echo $ECHO_N "(cached) $ECHO_C" >&6
19585 else
19586 cat >conftest.$ac_ext <<_ACEOF
19587 /* confdefs.h. */
19588 _ACEOF
19589 cat confdefs.h >>conftest.$ac_ext
19590 cat >>conftest.$ac_ext <<_ACEOF
19591 /* end confdefs.h. */
19592 #include <sys/types.h>
19593 #include <sys/time.h>
19594 #include <time.h>
19597 main ()
19599 if ((struct tm *) 0)
19600 return 0;
19602 return 0;
19604 _ACEOF
19605 rm -f conftest.$ac_objext
19606 if { (ac_try="$ac_compile"
19607 case "(($ac_try" in
19608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19609 *) ac_try_echo=$ac_try;;
19610 esac
19611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19612 (eval "$ac_compile") 2>conftest.er1
19613 ac_status=$?
19614 grep -v '^ *+' conftest.er1 >conftest.err
19615 rm -f conftest.er1
19616 cat conftest.err >&5
19617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19618 (exit $ac_status); } && {
19619 test -z "$ac_c_werror_flag" ||
19620 test ! -s conftest.err
19621 } && test -s conftest.$ac_objext; then
19622 ac_cv_header_time=yes
19623 else
19624 echo "$as_me: failed program was:" >&5
19625 sed 's/^/| /' conftest.$ac_ext >&5
19627 ac_cv_header_time=no
19630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19632 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19633 echo "${ECHO_T}$ac_cv_header_time" >&6; }
19634 if test $ac_cv_header_time = yes; then
19636 cat >>confdefs.h <<\_ACEOF
19637 #define TIME_WITH_SYS_TIME 1
19638 _ACEOF
19642 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
19643 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
19644 if test "${ac_cv_struct_tm+set}" = set; then
19645 echo $ECHO_N "(cached) $ECHO_C" >&6
19646 else
19647 cat >conftest.$ac_ext <<_ACEOF
19648 /* confdefs.h. */
19649 _ACEOF
19650 cat confdefs.h >>conftest.$ac_ext
19651 cat >>conftest.$ac_ext <<_ACEOF
19652 /* end confdefs.h. */
19653 #include <sys/types.h>
19654 #include <time.h>
19657 main ()
19659 struct tm tm;
19660 int *p = &tm.tm_sec;
19661 return !p;
19663 return 0;
19665 _ACEOF
19666 rm -f conftest.$ac_objext
19667 if { (ac_try="$ac_compile"
19668 case "(($ac_try" in
19669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19670 *) ac_try_echo=$ac_try;;
19671 esac
19672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19673 (eval "$ac_compile") 2>conftest.er1
19674 ac_status=$?
19675 grep -v '^ *+' conftest.er1 >conftest.err
19676 rm -f conftest.er1
19677 cat conftest.err >&5
19678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19679 (exit $ac_status); } && {
19680 test -z "$ac_c_werror_flag" ||
19681 test ! -s conftest.err
19682 } && test -s conftest.$ac_objext; then
19683 ac_cv_struct_tm=time.h
19684 else
19685 echo "$as_me: failed program was:" >&5
19686 sed 's/^/| /' conftest.$ac_ext >&5
19688 ac_cv_struct_tm=sys/time.h
19691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19693 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
19694 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
19695 if test $ac_cv_struct_tm = sys/time.h; then
19697 cat >>confdefs.h <<\_ACEOF
19698 #define TM_IN_SYS_TIME 1
19699 _ACEOF
19703 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
19704 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
19705 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
19706 echo $ECHO_N "(cached) $ECHO_C" >&6
19707 else
19708 cat >conftest.$ac_ext <<_ACEOF
19709 /* confdefs.h. */
19710 _ACEOF
19711 cat confdefs.h >>conftest.$ac_ext
19712 cat >>conftest.$ac_ext <<_ACEOF
19713 /* end confdefs.h. */
19714 #include <sys/types.h>
19715 #include <$ac_cv_struct_tm>
19719 main ()
19721 static struct tm ac_aggr;
19722 if (ac_aggr.tm_zone)
19723 return 0;
19725 return 0;
19727 _ACEOF
19728 rm -f conftest.$ac_objext
19729 if { (ac_try="$ac_compile"
19730 case "(($ac_try" in
19731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19732 *) ac_try_echo=$ac_try;;
19733 esac
19734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19735 (eval "$ac_compile") 2>conftest.er1
19736 ac_status=$?
19737 grep -v '^ *+' conftest.er1 >conftest.err
19738 rm -f conftest.er1
19739 cat conftest.err >&5
19740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19741 (exit $ac_status); } && {
19742 test -z "$ac_c_werror_flag" ||
19743 test ! -s conftest.err
19744 } && test -s conftest.$ac_objext; then
19745 ac_cv_member_struct_tm_tm_zone=yes
19746 else
19747 echo "$as_me: failed program was:" >&5
19748 sed 's/^/| /' conftest.$ac_ext >&5
19750 cat >conftest.$ac_ext <<_ACEOF
19751 /* confdefs.h. */
19752 _ACEOF
19753 cat confdefs.h >>conftest.$ac_ext
19754 cat >>conftest.$ac_ext <<_ACEOF
19755 /* end confdefs.h. */
19756 #include <sys/types.h>
19757 #include <$ac_cv_struct_tm>
19761 main ()
19763 static struct tm ac_aggr;
19764 if (sizeof ac_aggr.tm_zone)
19765 return 0;
19767 return 0;
19769 _ACEOF
19770 rm -f conftest.$ac_objext
19771 if { (ac_try="$ac_compile"
19772 case "(($ac_try" in
19773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19774 *) ac_try_echo=$ac_try;;
19775 esac
19776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19777 (eval "$ac_compile") 2>conftest.er1
19778 ac_status=$?
19779 grep -v '^ *+' conftest.er1 >conftest.err
19780 rm -f conftest.er1
19781 cat conftest.err >&5
19782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19783 (exit $ac_status); } && {
19784 test -z "$ac_c_werror_flag" ||
19785 test ! -s conftest.err
19786 } && test -s conftest.$ac_objext; then
19787 ac_cv_member_struct_tm_tm_zone=yes
19788 else
19789 echo "$as_me: failed program was:" >&5
19790 sed 's/^/| /' conftest.$ac_ext >&5
19792 ac_cv_member_struct_tm_tm_zone=no
19795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19800 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
19801 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
19802 if test $ac_cv_member_struct_tm_tm_zone = yes; then
19804 cat >>confdefs.h <<_ACEOF
19805 #define HAVE_STRUCT_TM_TM_ZONE 1
19806 _ACEOF
19811 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
19813 cat >>confdefs.h <<\_ACEOF
19814 #define HAVE_TM_ZONE 1
19815 _ACEOF
19817 else
19818 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
19819 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
19820 if test "${ac_cv_have_decl_tzname+set}" = set; then
19821 echo $ECHO_N "(cached) $ECHO_C" >&6
19822 else
19823 cat >conftest.$ac_ext <<_ACEOF
19824 /* confdefs.h. */
19825 _ACEOF
19826 cat confdefs.h >>conftest.$ac_ext
19827 cat >>conftest.$ac_ext <<_ACEOF
19828 /* end confdefs.h. */
19829 #include <time.h>
19832 main ()
19834 #ifndef tzname
19835 (void) tzname;
19836 #endif
19839 return 0;
19841 _ACEOF
19842 rm -f conftest.$ac_objext
19843 if { (ac_try="$ac_compile"
19844 case "(($ac_try" in
19845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19846 *) ac_try_echo=$ac_try;;
19847 esac
19848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19849 (eval "$ac_compile") 2>conftest.er1
19850 ac_status=$?
19851 grep -v '^ *+' conftest.er1 >conftest.err
19852 rm -f conftest.er1
19853 cat conftest.err >&5
19854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19855 (exit $ac_status); } && {
19856 test -z "$ac_c_werror_flag" ||
19857 test ! -s conftest.err
19858 } && test -s conftest.$ac_objext; then
19859 ac_cv_have_decl_tzname=yes
19860 else
19861 echo "$as_me: failed program was:" >&5
19862 sed 's/^/| /' conftest.$ac_ext >&5
19864 ac_cv_have_decl_tzname=no
19867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19869 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
19870 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
19871 if test $ac_cv_have_decl_tzname = yes; then
19873 cat >>confdefs.h <<_ACEOF
19874 #define HAVE_DECL_TZNAME 1
19875 _ACEOF
19878 else
19879 cat >>confdefs.h <<_ACEOF
19880 #define HAVE_DECL_TZNAME 0
19881 _ACEOF
19887 { echo "$as_me:$LINENO: checking for tzname" >&5
19888 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
19889 if test "${ac_cv_var_tzname+set}" = set; then
19890 echo $ECHO_N "(cached) $ECHO_C" >&6
19891 else
19892 cat >conftest.$ac_ext <<_ACEOF
19893 /* confdefs.h. */
19894 _ACEOF
19895 cat confdefs.h >>conftest.$ac_ext
19896 cat >>conftest.$ac_ext <<_ACEOF
19897 /* end confdefs.h. */
19898 #include <time.h>
19899 #if !HAVE_DECL_TZNAME
19900 extern char *tzname[];
19901 #endif
19904 main ()
19906 return tzname[0][0];
19908 return 0;
19910 _ACEOF
19911 rm -f conftest.$ac_objext conftest$ac_exeext
19912 if { (ac_try="$ac_link"
19913 case "(($ac_try" in
19914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19915 *) ac_try_echo=$ac_try;;
19916 esac
19917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19918 (eval "$ac_link") 2>conftest.er1
19919 ac_status=$?
19920 grep -v '^ *+' conftest.er1 >conftest.err
19921 rm -f conftest.er1
19922 cat conftest.err >&5
19923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19924 (exit $ac_status); } && {
19925 test -z "$ac_c_werror_flag" ||
19926 test ! -s conftest.err
19927 } && test -s conftest$ac_exeext &&
19928 $as_test_x conftest$ac_exeext; then
19929 ac_cv_var_tzname=yes
19930 else
19931 echo "$as_me: failed program was:" >&5
19932 sed 's/^/| /' conftest.$ac_ext >&5
19934 ac_cv_var_tzname=no
19937 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19938 conftest$ac_exeext conftest.$ac_ext
19940 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
19941 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
19942 if test $ac_cv_var_tzname = yes; then
19944 cat >>confdefs.h <<\_ACEOF
19945 #define HAVE_TZNAME 1
19946 _ACEOF
19951 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
19952 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
19953 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
19954 echo $ECHO_N "(cached) $ECHO_C" >&6
19955 else
19956 cat >conftest.$ac_ext <<_ACEOF
19957 /* confdefs.h. */
19958 _ACEOF
19959 cat confdefs.h >>conftest.$ac_ext
19960 cat >>conftest.$ac_ext <<_ACEOF
19961 /* end confdefs.h. */
19962 $ac_includes_default
19964 main ()
19966 static struct stat ac_aggr;
19967 if (ac_aggr.st_rdev)
19968 return 0;
19970 return 0;
19972 _ACEOF
19973 rm -f conftest.$ac_objext
19974 if { (ac_try="$ac_compile"
19975 case "(($ac_try" in
19976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19977 *) ac_try_echo=$ac_try;;
19978 esac
19979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19980 (eval "$ac_compile") 2>conftest.er1
19981 ac_status=$?
19982 grep -v '^ *+' conftest.er1 >conftest.err
19983 rm -f conftest.er1
19984 cat conftest.err >&5
19985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19986 (exit $ac_status); } && {
19987 test -z "$ac_c_werror_flag" ||
19988 test ! -s conftest.err
19989 } && test -s conftest.$ac_objext; then
19990 ac_cv_member_struct_stat_st_rdev=yes
19991 else
19992 echo "$as_me: failed program was:" >&5
19993 sed 's/^/| /' conftest.$ac_ext >&5
19995 cat >conftest.$ac_ext <<_ACEOF
19996 /* confdefs.h. */
19997 _ACEOF
19998 cat confdefs.h >>conftest.$ac_ext
19999 cat >>conftest.$ac_ext <<_ACEOF
20000 /* end confdefs.h. */
20001 $ac_includes_default
20003 main ()
20005 static struct stat ac_aggr;
20006 if (sizeof ac_aggr.st_rdev)
20007 return 0;
20009 return 0;
20011 _ACEOF
20012 rm -f conftest.$ac_objext
20013 if { (ac_try="$ac_compile"
20014 case "(($ac_try" in
20015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20016 *) ac_try_echo=$ac_try;;
20017 esac
20018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20019 (eval "$ac_compile") 2>conftest.er1
20020 ac_status=$?
20021 grep -v '^ *+' conftest.er1 >conftest.err
20022 rm -f conftest.er1
20023 cat conftest.err >&5
20024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20025 (exit $ac_status); } && {
20026 test -z "$ac_c_werror_flag" ||
20027 test ! -s conftest.err
20028 } && test -s conftest.$ac_objext; then
20029 ac_cv_member_struct_stat_st_rdev=yes
20030 else
20031 echo "$as_me: failed program was:" >&5
20032 sed 's/^/| /' conftest.$ac_ext >&5
20034 ac_cv_member_struct_stat_st_rdev=no
20037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20042 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
20043 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
20044 if test $ac_cv_member_struct_stat_st_rdev = yes; then
20046 cat >>confdefs.h <<_ACEOF
20047 #define HAVE_STRUCT_STAT_ST_RDEV 1
20048 _ACEOF
20053 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
20054 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
20055 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
20056 echo $ECHO_N "(cached) $ECHO_C" >&6
20057 else
20058 cat >conftest.$ac_ext <<_ACEOF
20059 /* confdefs.h. */
20060 _ACEOF
20061 cat confdefs.h >>conftest.$ac_ext
20062 cat >>conftest.$ac_ext <<_ACEOF
20063 /* end confdefs.h. */
20064 $ac_includes_default
20066 main ()
20068 static struct stat ac_aggr;
20069 if (ac_aggr.st_blksize)
20070 return 0;
20072 return 0;
20074 _ACEOF
20075 rm -f conftest.$ac_objext
20076 if { (ac_try="$ac_compile"
20077 case "(($ac_try" in
20078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20079 *) ac_try_echo=$ac_try;;
20080 esac
20081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20082 (eval "$ac_compile") 2>conftest.er1
20083 ac_status=$?
20084 grep -v '^ *+' conftest.er1 >conftest.err
20085 rm -f conftest.er1
20086 cat conftest.err >&5
20087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20088 (exit $ac_status); } && {
20089 test -z "$ac_c_werror_flag" ||
20090 test ! -s conftest.err
20091 } && test -s conftest.$ac_objext; then
20092 ac_cv_member_struct_stat_st_blksize=yes
20093 else
20094 echo "$as_me: failed program was:" >&5
20095 sed 's/^/| /' conftest.$ac_ext >&5
20097 cat >conftest.$ac_ext <<_ACEOF
20098 /* confdefs.h. */
20099 _ACEOF
20100 cat confdefs.h >>conftest.$ac_ext
20101 cat >>conftest.$ac_ext <<_ACEOF
20102 /* end confdefs.h. */
20103 $ac_includes_default
20105 main ()
20107 static struct stat ac_aggr;
20108 if (sizeof ac_aggr.st_blksize)
20109 return 0;
20111 return 0;
20113 _ACEOF
20114 rm -f conftest.$ac_objext
20115 if { (ac_try="$ac_compile"
20116 case "(($ac_try" in
20117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20118 *) ac_try_echo=$ac_try;;
20119 esac
20120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20121 (eval "$ac_compile") 2>conftest.er1
20122 ac_status=$?
20123 grep -v '^ *+' conftest.er1 >conftest.err
20124 rm -f conftest.er1
20125 cat conftest.err >&5
20126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20127 (exit $ac_status); } && {
20128 test -z "$ac_c_werror_flag" ||
20129 test ! -s conftest.err
20130 } && test -s conftest.$ac_objext; then
20131 ac_cv_member_struct_stat_st_blksize=yes
20132 else
20133 echo "$as_me: failed program was:" >&5
20134 sed 's/^/| /' conftest.$ac_ext >&5
20136 ac_cv_member_struct_stat_st_blksize=no
20139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20144 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
20145 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
20146 if test $ac_cv_member_struct_stat_st_blksize = yes; then
20148 cat >>confdefs.h <<_ACEOF
20149 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
20150 _ACEOF
20155 { echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
20156 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6; }
20157 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
20158 echo $ECHO_N "(cached) $ECHO_C" >&6
20159 else
20160 cat >conftest.$ac_ext <<_ACEOF
20161 /* confdefs.h. */
20162 _ACEOF
20163 cat confdefs.h >>conftest.$ac_ext
20164 cat >>conftest.$ac_ext <<_ACEOF
20165 /* end confdefs.h. */
20166 $ac_includes_default
20168 main ()
20170 static struct stat ac_aggr;
20171 if (ac_aggr.st_flags)
20172 return 0;
20174 return 0;
20176 _ACEOF
20177 rm -f conftest.$ac_objext
20178 if { (ac_try="$ac_compile"
20179 case "(($ac_try" in
20180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20181 *) ac_try_echo=$ac_try;;
20182 esac
20183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20184 (eval "$ac_compile") 2>conftest.er1
20185 ac_status=$?
20186 grep -v '^ *+' conftest.er1 >conftest.err
20187 rm -f conftest.er1
20188 cat conftest.err >&5
20189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20190 (exit $ac_status); } && {
20191 test -z "$ac_c_werror_flag" ||
20192 test ! -s conftest.err
20193 } && test -s conftest.$ac_objext; then
20194 ac_cv_member_struct_stat_st_flags=yes
20195 else
20196 echo "$as_me: failed program was:" >&5
20197 sed 's/^/| /' conftest.$ac_ext >&5
20199 cat >conftest.$ac_ext <<_ACEOF
20200 /* confdefs.h. */
20201 _ACEOF
20202 cat confdefs.h >>conftest.$ac_ext
20203 cat >>conftest.$ac_ext <<_ACEOF
20204 /* end confdefs.h. */
20205 $ac_includes_default
20207 main ()
20209 static struct stat ac_aggr;
20210 if (sizeof ac_aggr.st_flags)
20211 return 0;
20213 return 0;
20215 _ACEOF
20216 rm -f conftest.$ac_objext
20217 if { (ac_try="$ac_compile"
20218 case "(($ac_try" in
20219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20220 *) ac_try_echo=$ac_try;;
20221 esac
20222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20223 (eval "$ac_compile") 2>conftest.er1
20224 ac_status=$?
20225 grep -v '^ *+' conftest.er1 >conftest.err
20226 rm -f conftest.er1
20227 cat conftest.err >&5
20228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20229 (exit $ac_status); } && {
20230 test -z "$ac_c_werror_flag" ||
20231 test ! -s conftest.err
20232 } && test -s conftest.$ac_objext; then
20233 ac_cv_member_struct_stat_st_flags=yes
20234 else
20235 echo "$as_me: failed program was:" >&5
20236 sed 's/^/| /' conftest.$ac_ext >&5
20238 ac_cv_member_struct_stat_st_flags=no
20241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20246 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
20247 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6; }
20248 if test $ac_cv_member_struct_stat_st_flags = yes; then
20250 cat >>confdefs.h <<_ACEOF
20251 #define HAVE_STRUCT_STAT_ST_FLAGS 1
20252 _ACEOF
20257 { echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
20258 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6; }
20259 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
20260 echo $ECHO_N "(cached) $ECHO_C" >&6
20261 else
20262 cat >conftest.$ac_ext <<_ACEOF
20263 /* confdefs.h. */
20264 _ACEOF
20265 cat confdefs.h >>conftest.$ac_ext
20266 cat >>conftest.$ac_ext <<_ACEOF
20267 /* end confdefs.h. */
20268 $ac_includes_default
20270 main ()
20272 static struct stat ac_aggr;
20273 if (ac_aggr.st_gen)
20274 return 0;
20276 return 0;
20278 _ACEOF
20279 rm -f conftest.$ac_objext
20280 if { (ac_try="$ac_compile"
20281 case "(($ac_try" in
20282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20283 *) ac_try_echo=$ac_try;;
20284 esac
20285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20286 (eval "$ac_compile") 2>conftest.er1
20287 ac_status=$?
20288 grep -v '^ *+' conftest.er1 >conftest.err
20289 rm -f conftest.er1
20290 cat conftest.err >&5
20291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20292 (exit $ac_status); } && {
20293 test -z "$ac_c_werror_flag" ||
20294 test ! -s conftest.err
20295 } && test -s conftest.$ac_objext; then
20296 ac_cv_member_struct_stat_st_gen=yes
20297 else
20298 echo "$as_me: failed program was:" >&5
20299 sed 's/^/| /' conftest.$ac_ext >&5
20301 cat >conftest.$ac_ext <<_ACEOF
20302 /* confdefs.h. */
20303 _ACEOF
20304 cat confdefs.h >>conftest.$ac_ext
20305 cat >>conftest.$ac_ext <<_ACEOF
20306 /* end confdefs.h. */
20307 $ac_includes_default
20309 main ()
20311 static struct stat ac_aggr;
20312 if (sizeof ac_aggr.st_gen)
20313 return 0;
20315 return 0;
20317 _ACEOF
20318 rm -f conftest.$ac_objext
20319 if { (ac_try="$ac_compile"
20320 case "(($ac_try" in
20321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20322 *) ac_try_echo=$ac_try;;
20323 esac
20324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20325 (eval "$ac_compile") 2>conftest.er1
20326 ac_status=$?
20327 grep -v '^ *+' conftest.er1 >conftest.err
20328 rm -f conftest.er1
20329 cat conftest.err >&5
20330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20331 (exit $ac_status); } && {
20332 test -z "$ac_c_werror_flag" ||
20333 test ! -s conftest.err
20334 } && test -s conftest.$ac_objext; then
20335 ac_cv_member_struct_stat_st_gen=yes
20336 else
20337 echo "$as_me: failed program was:" >&5
20338 sed 's/^/| /' conftest.$ac_ext >&5
20340 ac_cv_member_struct_stat_st_gen=no
20343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20348 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
20349 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6; }
20350 if test $ac_cv_member_struct_stat_st_gen = yes; then
20352 cat >>confdefs.h <<_ACEOF
20353 #define HAVE_STRUCT_STAT_ST_GEN 1
20354 _ACEOF
20359 { echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
20360 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6; }
20361 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
20362 echo $ECHO_N "(cached) $ECHO_C" >&6
20363 else
20364 cat >conftest.$ac_ext <<_ACEOF
20365 /* confdefs.h. */
20366 _ACEOF
20367 cat confdefs.h >>conftest.$ac_ext
20368 cat >>conftest.$ac_ext <<_ACEOF
20369 /* end confdefs.h. */
20370 $ac_includes_default
20372 main ()
20374 static struct stat ac_aggr;
20375 if (ac_aggr.st_birthtime)
20376 return 0;
20378 return 0;
20380 _ACEOF
20381 rm -f conftest.$ac_objext
20382 if { (ac_try="$ac_compile"
20383 case "(($ac_try" in
20384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20385 *) ac_try_echo=$ac_try;;
20386 esac
20387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20388 (eval "$ac_compile") 2>conftest.er1
20389 ac_status=$?
20390 grep -v '^ *+' conftest.er1 >conftest.err
20391 rm -f conftest.er1
20392 cat conftest.err >&5
20393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20394 (exit $ac_status); } && {
20395 test -z "$ac_c_werror_flag" ||
20396 test ! -s conftest.err
20397 } && test -s conftest.$ac_objext; then
20398 ac_cv_member_struct_stat_st_birthtime=yes
20399 else
20400 echo "$as_me: failed program was:" >&5
20401 sed 's/^/| /' conftest.$ac_ext >&5
20403 cat >conftest.$ac_ext <<_ACEOF
20404 /* confdefs.h. */
20405 _ACEOF
20406 cat confdefs.h >>conftest.$ac_ext
20407 cat >>conftest.$ac_ext <<_ACEOF
20408 /* end confdefs.h. */
20409 $ac_includes_default
20411 main ()
20413 static struct stat ac_aggr;
20414 if (sizeof ac_aggr.st_birthtime)
20415 return 0;
20417 return 0;
20419 _ACEOF
20420 rm -f conftest.$ac_objext
20421 if { (ac_try="$ac_compile"
20422 case "(($ac_try" in
20423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20424 *) ac_try_echo=$ac_try;;
20425 esac
20426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20427 (eval "$ac_compile") 2>conftest.er1
20428 ac_status=$?
20429 grep -v '^ *+' conftest.er1 >conftest.err
20430 rm -f conftest.er1
20431 cat conftest.err >&5
20432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20433 (exit $ac_status); } && {
20434 test -z "$ac_c_werror_flag" ||
20435 test ! -s conftest.err
20436 } && test -s conftest.$ac_objext; then
20437 ac_cv_member_struct_stat_st_birthtime=yes
20438 else
20439 echo "$as_me: failed program was:" >&5
20440 sed 's/^/| /' conftest.$ac_ext >&5
20442 ac_cv_member_struct_stat_st_birthtime=no
20445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20450 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
20451 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6; }
20452 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
20454 cat >>confdefs.h <<_ACEOF
20455 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
20456 _ACEOF
20461 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
20462 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
20463 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
20464 echo $ECHO_N "(cached) $ECHO_C" >&6
20465 else
20466 cat >conftest.$ac_ext <<_ACEOF
20467 /* confdefs.h. */
20468 _ACEOF
20469 cat confdefs.h >>conftest.$ac_ext
20470 cat >>conftest.$ac_ext <<_ACEOF
20471 /* end confdefs.h. */
20472 $ac_includes_default
20474 main ()
20476 static struct stat ac_aggr;
20477 if (ac_aggr.st_blocks)
20478 return 0;
20480 return 0;
20482 _ACEOF
20483 rm -f conftest.$ac_objext
20484 if { (ac_try="$ac_compile"
20485 case "(($ac_try" in
20486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20487 *) ac_try_echo=$ac_try;;
20488 esac
20489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20490 (eval "$ac_compile") 2>conftest.er1
20491 ac_status=$?
20492 grep -v '^ *+' conftest.er1 >conftest.err
20493 rm -f conftest.er1
20494 cat conftest.err >&5
20495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20496 (exit $ac_status); } && {
20497 test -z "$ac_c_werror_flag" ||
20498 test ! -s conftest.err
20499 } && test -s conftest.$ac_objext; then
20500 ac_cv_member_struct_stat_st_blocks=yes
20501 else
20502 echo "$as_me: failed program was:" >&5
20503 sed 's/^/| /' conftest.$ac_ext >&5
20505 cat >conftest.$ac_ext <<_ACEOF
20506 /* confdefs.h. */
20507 _ACEOF
20508 cat confdefs.h >>conftest.$ac_ext
20509 cat >>conftest.$ac_ext <<_ACEOF
20510 /* end confdefs.h. */
20511 $ac_includes_default
20513 main ()
20515 static struct stat ac_aggr;
20516 if (sizeof ac_aggr.st_blocks)
20517 return 0;
20519 return 0;
20521 _ACEOF
20522 rm -f conftest.$ac_objext
20523 if { (ac_try="$ac_compile"
20524 case "(($ac_try" in
20525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20526 *) ac_try_echo=$ac_try;;
20527 esac
20528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20529 (eval "$ac_compile") 2>conftest.er1
20530 ac_status=$?
20531 grep -v '^ *+' conftest.er1 >conftest.err
20532 rm -f conftest.er1
20533 cat conftest.err >&5
20534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20535 (exit $ac_status); } && {
20536 test -z "$ac_c_werror_flag" ||
20537 test ! -s conftest.err
20538 } && test -s conftest.$ac_objext; then
20539 ac_cv_member_struct_stat_st_blocks=yes
20540 else
20541 echo "$as_me: failed program was:" >&5
20542 sed 's/^/| /' conftest.$ac_ext >&5
20544 ac_cv_member_struct_stat_st_blocks=no
20547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20552 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
20553 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
20554 if test $ac_cv_member_struct_stat_st_blocks = yes; then
20556 cat >>confdefs.h <<_ACEOF
20557 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
20558 _ACEOF
20561 cat >>confdefs.h <<\_ACEOF
20562 #define HAVE_ST_BLOCKS 1
20563 _ACEOF
20565 else
20566 case " $LIBOBJS " in
20567 *" fileblocks.$ac_objext "* ) ;;
20568 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
20570 esac
20576 { echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
20577 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6; }
20578 if test "${ac_cv_header_time_altzone+set}" = set; then
20579 echo $ECHO_N "(cached) $ECHO_C" >&6
20580 else
20581 cat >conftest.$ac_ext <<_ACEOF
20582 /* confdefs.h. */
20583 _ACEOF
20584 cat confdefs.h >>conftest.$ac_ext
20585 cat >>conftest.$ac_ext <<_ACEOF
20586 /* end confdefs.h. */
20587 #include <time.h>
20589 main ()
20591 return altzone;
20593 return 0;
20595 _ACEOF
20596 rm -f conftest.$ac_objext
20597 if { (ac_try="$ac_compile"
20598 case "(($ac_try" in
20599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20600 *) ac_try_echo=$ac_try;;
20601 esac
20602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20603 (eval "$ac_compile") 2>conftest.er1
20604 ac_status=$?
20605 grep -v '^ *+' conftest.er1 >conftest.err
20606 rm -f conftest.er1
20607 cat conftest.err >&5
20608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20609 (exit $ac_status); } && {
20610 test -z "$ac_c_werror_flag" ||
20611 test ! -s conftest.err
20612 } && test -s conftest.$ac_objext; then
20613 ac_cv_header_time_altzone=yes
20614 else
20615 echo "$as_me: failed program was:" >&5
20616 sed 's/^/| /' conftest.$ac_ext >&5
20618 ac_cv_header_time_altzone=no
20621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20624 { echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
20625 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6; }
20626 if test $ac_cv_header_time_altzone = yes; then
20628 cat >>confdefs.h <<\_ACEOF
20629 #define HAVE_ALTZONE 1
20630 _ACEOF
20634 was_it_defined=no
20635 { echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
20636 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6; }
20637 cat >conftest.$ac_ext <<_ACEOF
20638 /* confdefs.h. */
20639 _ACEOF
20640 cat confdefs.h >>conftest.$ac_ext
20641 cat >>conftest.$ac_ext <<_ACEOF
20642 /* end confdefs.h. */
20644 #include <sys/types.h>
20645 #include <sys/select.h>
20646 #include <sys/time.h>
20649 main ()
20653 return 0;
20655 _ACEOF
20656 rm -f conftest.$ac_objext
20657 if { (ac_try="$ac_compile"
20658 case "(($ac_try" in
20659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20660 *) ac_try_echo=$ac_try;;
20661 esac
20662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20663 (eval "$ac_compile") 2>conftest.er1
20664 ac_status=$?
20665 grep -v '^ *+' conftest.er1 >conftest.err
20666 rm -f conftest.er1
20667 cat conftest.err >&5
20668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20669 (exit $ac_status); } && {
20670 test -z "$ac_c_werror_flag" ||
20671 test ! -s conftest.err
20672 } && test -s conftest.$ac_objext; then
20675 cat >>confdefs.h <<\_ACEOF
20676 #define SYS_SELECT_WITH_SYS_TIME 1
20677 _ACEOF
20679 was_it_defined=yes
20681 else
20682 echo "$as_me: failed program was:" >&5
20683 sed 's/^/| /' conftest.$ac_ext >&5
20688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20689 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
20690 echo "${ECHO_T}$was_it_defined" >&6; }
20692 { echo "$as_me:$LINENO: checking for addrinfo" >&5
20693 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
20694 if test "${ac_cv_struct_addrinfo+set}" = set; then
20695 echo $ECHO_N "(cached) $ECHO_C" >&6
20696 else
20697 cat >conftest.$ac_ext <<_ACEOF
20698 /* confdefs.h. */
20699 _ACEOF
20700 cat confdefs.h >>conftest.$ac_ext
20701 cat >>conftest.$ac_ext <<_ACEOF
20702 /* end confdefs.h. */
20704 # include <netdb.h>
20706 main ()
20708 struct addrinfo a
20710 return 0;
20712 _ACEOF
20713 rm -f conftest.$ac_objext
20714 if { (ac_try="$ac_compile"
20715 case "(($ac_try" in
20716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20717 *) ac_try_echo=$ac_try;;
20718 esac
20719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20720 (eval "$ac_compile") 2>conftest.er1
20721 ac_status=$?
20722 grep -v '^ *+' conftest.er1 >conftest.err
20723 rm -f conftest.er1
20724 cat conftest.err >&5
20725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20726 (exit $ac_status); } && {
20727 test -z "$ac_c_werror_flag" ||
20728 test ! -s conftest.err
20729 } && test -s conftest.$ac_objext; then
20730 ac_cv_struct_addrinfo=yes
20731 else
20732 echo "$as_me: failed program was:" >&5
20733 sed 's/^/| /' conftest.$ac_ext >&5
20735 ac_cv_struct_addrinfo=no
20738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20741 { echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
20742 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6; }
20743 if test $ac_cv_struct_addrinfo = yes; then
20745 cat >>confdefs.h <<\_ACEOF
20746 #define HAVE_ADDRINFO 1
20747 _ACEOF
20751 { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
20752 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
20753 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
20754 echo $ECHO_N "(cached) $ECHO_C" >&6
20755 else
20756 cat >conftest.$ac_ext <<_ACEOF
20757 /* confdefs.h. */
20758 _ACEOF
20759 cat confdefs.h >>conftest.$ac_ext
20760 cat >>conftest.$ac_ext <<_ACEOF
20761 /* end confdefs.h. */
20763 # include <sys/types.h>
20764 # include <sys/socket.h>
20766 main ()
20768 struct sockaddr_storage s
20770 return 0;
20772 _ACEOF
20773 rm -f conftest.$ac_objext
20774 if { (ac_try="$ac_compile"
20775 case "(($ac_try" in
20776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20777 *) ac_try_echo=$ac_try;;
20778 esac
20779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20780 (eval "$ac_compile") 2>conftest.er1
20781 ac_status=$?
20782 grep -v '^ *+' conftest.er1 >conftest.err
20783 rm -f conftest.er1
20784 cat conftest.err >&5
20785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20786 (exit $ac_status); } && {
20787 test -z "$ac_c_werror_flag" ||
20788 test ! -s conftest.err
20789 } && test -s conftest.$ac_objext; then
20790 ac_cv_struct_sockaddr_storage=yes
20791 else
20792 echo "$as_me: failed program was:" >&5
20793 sed 's/^/| /' conftest.$ac_ext >&5
20795 ac_cv_struct_sockaddr_storage=no
20798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20801 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
20802 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6; }
20803 if test $ac_cv_struct_sockaddr_storage = yes; then
20805 cat >>confdefs.h <<\_ACEOF
20806 #define HAVE_SOCKADDR_STORAGE 1
20807 _ACEOF
20811 # checks for compiler characteristics
20814 { echo "$as_me:$LINENO: checking whether char is unsigned" >&5
20815 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; }
20816 if test "${ac_cv_c_char_unsigned+set}" = set; then
20817 echo $ECHO_N "(cached) $ECHO_C" >&6
20818 else
20819 cat >conftest.$ac_ext <<_ACEOF
20820 /* confdefs.h. */
20821 _ACEOF
20822 cat confdefs.h >>conftest.$ac_ext
20823 cat >>conftest.$ac_ext <<_ACEOF
20824 /* end confdefs.h. */
20825 $ac_includes_default
20827 main ()
20829 static int test_array [1 - 2 * !(((char) -1) < 0)];
20830 test_array [0] = 0
20833 return 0;
20835 _ACEOF
20836 rm -f conftest.$ac_objext
20837 if { (ac_try="$ac_compile"
20838 case "(($ac_try" in
20839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20840 *) ac_try_echo=$ac_try;;
20841 esac
20842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20843 (eval "$ac_compile") 2>conftest.er1
20844 ac_status=$?
20845 grep -v '^ *+' conftest.er1 >conftest.err
20846 rm -f conftest.er1
20847 cat conftest.err >&5
20848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20849 (exit $ac_status); } && {
20850 test -z "$ac_c_werror_flag" ||
20851 test ! -s conftest.err
20852 } && test -s conftest.$ac_objext; then
20853 ac_cv_c_char_unsigned=no
20854 else
20855 echo "$as_me: failed program was:" >&5
20856 sed 's/^/| /' conftest.$ac_ext >&5
20858 ac_cv_c_char_unsigned=yes
20861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20863 { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
20864 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; }
20865 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
20866 cat >>confdefs.h <<\_ACEOF
20867 #define __CHAR_UNSIGNED__ 1
20868 _ACEOF
20872 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20873 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
20874 if test "${ac_cv_c_const+set}" = set; then
20875 echo $ECHO_N "(cached) $ECHO_C" >&6
20876 else
20877 cat >conftest.$ac_ext <<_ACEOF
20878 /* confdefs.h. */
20879 _ACEOF
20880 cat confdefs.h >>conftest.$ac_ext
20881 cat >>conftest.$ac_ext <<_ACEOF
20882 /* end confdefs.h. */
20885 main ()
20887 /* FIXME: Include the comments suggested by Paul. */
20888 #ifndef __cplusplus
20889 /* Ultrix mips cc rejects this. */
20890 typedef int charset[2];
20891 const charset cs;
20892 /* SunOS 4.1.1 cc rejects this. */
20893 char const *const *pcpcc;
20894 char **ppc;
20895 /* NEC SVR4.0.2 mips cc rejects this. */
20896 struct point {int x, y;};
20897 static struct point const zero = {0,0};
20898 /* AIX XL C 1.02.0.0 rejects this.
20899 It does not let you subtract one const X* pointer from another in
20900 an arm of an if-expression whose if-part is not a constant
20901 expression */
20902 const char *g = "string";
20903 pcpcc = &g + (g ? g-g : 0);
20904 /* HPUX 7.0 cc rejects these. */
20905 ++pcpcc;
20906 ppc = (char**) pcpcc;
20907 pcpcc = (char const *const *) ppc;
20908 { /* SCO 3.2v4 cc rejects this. */
20909 char *t;
20910 char const *s = 0 ? (char *) 0 : (char const *) 0;
20912 *t++ = 0;
20913 if (s) return 0;
20915 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20916 int x[] = {25, 17};
20917 const int *foo = &x[0];
20918 ++foo;
20920 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20921 typedef const int *iptr;
20922 iptr p = 0;
20923 ++p;
20925 { /* AIX XL C 1.02.0.0 rejects this saying
20926 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20927 struct s { int j; const int *ap[3]; };
20928 struct s *b; b->j = 5;
20930 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20931 const int foo = 10;
20932 if (!foo) return 0;
20934 return !cs[0] && !zero.x;
20935 #endif
20938 return 0;
20940 _ACEOF
20941 rm -f conftest.$ac_objext
20942 if { (ac_try="$ac_compile"
20943 case "(($ac_try" in
20944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20945 *) ac_try_echo=$ac_try;;
20946 esac
20947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20948 (eval "$ac_compile") 2>conftest.er1
20949 ac_status=$?
20950 grep -v '^ *+' conftest.er1 >conftest.err
20951 rm -f conftest.er1
20952 cat conftest.err >&5
20953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20954 (exit $ac_status); } && {
20955 test -z "$ac_c_werror_flag" ||
20956 test ! -s conftest.err
20957 } && test -s conftest.$ac_objext; then
20958 ac_cv_c_const=yes
20959 else
20960 echo "$as_me: failed program was:" >&5
20961 sed 's/^/| /' conftest.$ac_ext >&5
20963 ac_cv_c_const=no
20966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20968 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20969 echo "${ECHO_T}$ac_cv_c_const" >&6; }
20970 if test $ac_cv_c_const = no; then
20972 cat >>confdefs.h <<\_ACEOF
20973 #define const
20974 _ACEOF
20979 works=no
20980 { echo "$as_me:$LINENO: checking for working volatile" >&5
20981 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
20982 cat >conftest.$ac_ext <<_ACEOF
20983 /* confdefs.h. */
20984 _ACEOF
20985 cat confdefs.h >>conftest.$ac_ext
20986 cat >>conftest.$ac_ext <<_ACEOF
20987 /* end confdefs.h. */
20990 main ()
20992 volatile int x; x = 0;
20994 return 0;
20996 _ACEOF
20997 rm -f conftest.$ac_objext
20998 if { (ac_try="$ac_compile"
20999 case "(($ac_try" in
21000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21001 *) ac_try_echo=$ac_try;;
21002 esac
21003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21004 (eval "$ac_compile") 2>conftest.er1
21005 ac_status=$?
21006 grep -v '^ *+' conftest.er1 >conftest.err
21007 rm -f conftest.er1
21008 cat conftest.err >&5
21009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21010 (exit $ac_status); } && {
21011 test -z "$ac_c_werror_flag" ||
21012 test ! -s conftest.err
21013 } && test -s conftest.$ac_objext; then
21014 works=yes
21015 else
21016 echo "$as_me: failed program was:" >&5
21017 sed 's/^/| /' conftest.$ac_ext >&5
21020 cat >>confdefs.h <<\_ACEOF
21021 #define volatile
21022 _ACEOF
21027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21028 { echo "$as_me:$LINENO: result: $works" >&5
21029 echo "${ECHO_T}$works" >&6; }
21031 works=no
21032 { echo "$as_me:$LINENO: checking for working signed char" >&5
21033 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6; }
21034 cat >conftest.$ac_ext <<_ACEOF
21035 /* confdefs.h. */
21036 _ACEOF
21037 cat confdefs.h >>conftest.$ac_ext
21038 cat >>conftest.$ac_ext <<_ACEOF
21039 /* end confdefs.h. */
21042 main ()
21044 signed char c;
21046 return 0;
21048 _ACEOF
21049 rm -f conftest.$ac_objext
21050 if { (ac_try="$ac_compile"
21051 case "(($ac_try" in
21052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21053 *) ac_try_echo=$ac_try;;
21054 esac
21055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21056 (eval "$ac_compile") 2>conftest.er1
21057 ac_status=$?
21058 grep -v '^ *+' conftest.er1 >conftest.err
21059 rm -f conftest.er1
21060 cat conftest.err >&5
21061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21062 (exit $ac_status); } && {
21063 test -z "$ac_c_werror_flag" ||
21064 test ! -s conftest.err
21065 } && test -s conftest.$ac_objext; then
21066 works=yes
21067 else
21068 echo "$as_me: failed program was:" >&5
21069 sed 's/^/| /' conftest.$ac_ext >&5
21072 cat >>confdefs.h <<\_ACEOF
21073 #define signed
21074 _ACEOF
21079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21080 { echo "$as_me:$LINENO: result: $works" >&5
21081 echo "${ECHO_T}$works" >&6; }
21083 have_prototypes=no
21084 { echo "$as_me:$LINENO: checking for prototypes" >&5
21085 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6; }
21086 cat >conftest.$ac_ext <<_ACEOF
21087 /* confdefs.h. */
21088 _ACEOF
21089 cat confdefs.h >>conftest.$ac_ext
21090 cat >>conftest.$ac_ext <<_ACEOF
21091 /* end confdefs.h. */
21092 int foo(int x) { return 0; }
21094 main ()
21096 return foo(10);
21098 return 0;
21100 _ACEOF
21101 rm -f conftest.$ac_objext
21102 if { (ac_try="$ac_compile"
21103 case "(($ac_try" in
21104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21105 *) ac_try_echo=$ac_try;;
21106 esac
21107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21108 (eval "$ac_compile") 2>conftest.er1
21109 ac_status=$?
21110 grep -v '^ *+' conftest.er1 >conftest.err
21111 rm -f conftest.er1
21112 cat conftest.err >&5
21113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21114 (exit $ac_status); } && {
21115 test -z "$ac_c_werror_flag" ||
21116 test ! -s conftest.err
21117 } && test -s conftest.$ac_objext; then
21120 cat >>confdefs.h <<\_ACEOF
21121 #define HAVE_PROTOTYPES 1
21122 _ACEOF
21124 have_prototypes=yes
21126 else
21127 echo "$as_me: failed program was:" >&5
21128 sed 's/^/| /' conftest.$ac_ext >&5
21133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21134 { echo "$as_me:$LINENO: result: $have_prototypes" >&5
21135 echo "${ECHO_T}$have_prototypes" >&6; }
21137 works=no
21138 { echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
21139 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6; }
21140 cat >conftest.$ac_ext <<_ACEOF
21141 /* confdefs.h. */
21142 _ACEOF
21143 cat confdefs.h >>conftest.$ac_ext
21144 cat >>conftest.$ac_ext <<_ACEOF
21145 /* end confdefs.h. */
21147 #include <stdarg.h>
21148 int foo(int x, ...) {
21149 va_list va;
21150 va_start(va, x);
21151 va_arg(va, int);
21152 va_arg(va, char *);
21153 va_arg(va, double);
21154 return 0;
21158 main ()
21160 return foo(10, "", 3.14);
21162 return 0;
21164 _ACEOF
21165 rm -f conftest.$ac_objext
21166 if { (ac_try="$ac_compile"
21167 case "(($ac_try" in
21168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21169 *) ac_try_echo=$ac_try;;
21170 esac
21171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21172 (eval "$ac_compile") 2>conftest.er1
21173 ac_status=$?
21174 grep -v '^ *+' conftest.er1 >conftest.err
21175 rm -f conftest.er1
21176 cat conftest.err >&5
21177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21178 (exit $ac_status); } && {
21179 test -z "$ac_c_werror_flag" ||
21180 test ! -s conftest.err
21181 } && test -s conftest.$ac_objext; then
21184 cat >>confdefs.h <<\_ACEOF
21185 #define HAVE_STDARG_PROTOTYPES 1
21186 _ACEOF
21188 works=yes
21190 else
21191 echo "$as_me: failed program was:" >&5
21192 sed 's/^/| /' conftest.$ac_ext >&5
21197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21198 { echo "$as_me:$LINENO: result: $works" >&5
21199 echo "${ECHO_T}$works" >&6; }
21201 # check for socketpair
21202 { echo "$as_me:$LINENO: checking for socketpair" >&5
21203 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6; }
21204 cat >conftest.$ac_ext <<_ACEOF
21205 /* confdefs.h. */
21206 _ACEOF
21207 cat confdefs.h >>conftest.$ac_ext
21208 cat >>conftest.$ac_ext <<_ACEOF
21209 /* end confdefs.h. */
21211 #include <sys/types.h>
21212 #include <sys/socket.h>
21215 main ()
21217 void *x=socketpair
21219 return 0;
21221 _ACEOF
21222 rm -f conftest.$ac_objext
21223 if { (ac_try="$ac_compile"
21224 case "(($ac_try" in
21225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21226 *) ac_try_echo=$ac_try;;
21227 esac
21228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21229 (eval "$ac_compile") 2>conftest.er1
21230 ac_status=$?
21231 grep -v '^ *+' conftest.er1 >conftest.err
21232 rm -f conftest.er1
21233 cat conftest.err >&5
21234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21235 (exit $ac_status); } && {
21236 test -z "$ac_c_werror_flag" ||
21237 test ! -s conftest.err
21238 } && test -s conftest.$ac_objext; then
21240 cat >>confdefs.h <<\_ACEOF
21241 #define HAVE_SOCKETPAIR 1
21242 _ACEOF
21244 { echo "$as_me:$LINENO: result: yes" >&5
21245 echo "${ECHO_T}yes" >&6; }
21246 else
21247 echo "$as_me: failed program was:" >&5
21248 sed 's/^/| /' conftest.$ac_ext >&5
21250 { echo "$as_me:$LINENO: result: no" >&5
21251 echo "${ECHO_T}no" >&6; }
21255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21257 # check if sockaddr has sa_len member
21258 { echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
21259 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6; }
21260 cat >conftest.$ac_ext <<_ACEOF
21261 /* confdefs.h. */
21262 _ACEOF
21263 cat confdefs.h >>conftest.$ac_ext
21264 cat >>conftest.$ac_ext <<_ACEOF
21265 /* end confdefs.h. */
21266 #include <sys/types.h>
21267 #include <sys/socket.h>
21269 main ()
21271 struct sockaddr x;
21272 x.sa_len = 0;
21274 return 0;
21276 _ACEOF
21277 rm -f conftest.$ac_objext
21278 if { (ac_try="$ac_compile"
21279 case "(($ac_try" in
21280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21281 *) ac_try_echo=$ac_try;;
21282 esac
21283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21284 (eval "$ac_compile") 2>conftest.er1
21285 ac_status=$?
21286 grep -v '^ *+' conftest.er1 >conftest.err
21287 rm -f conftest.er1
21288 cat conftest.err >&5
21289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21290 (exit $ac_status); } && {
21291 test -z "$ac_c_werror_flag" ||
21292 test ! -s conftest.err
21293 } && test -s conftest.$ac_objext; then
21294 { echo "$as_me:$LINENO: result: yes" >&5
21295 echo "${ECHO_T}yes" >&6; }
21297 cat >>confdefs.h <<\_ACEOF
21298 #define HAVE_SOCKADDR_SA_LEN 1
21299 _ACEOF
21301 else
21302 echo "$as_me: failed program was:" >&5
21303 sed 's/^/| /' conftest.$ac_ext >&5
21305 { echo "$as_me:$LINENO: result: no" >&5
21306 echo "${ECHO_T}no" >&6; }
21309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21311 va_list_is_array=no
21312 { echo "$as_me:$LINENO: checking whether va_list is an array" >&5
21313 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6; }
21314 cat >conftest.$ac_ext <<_ACEOF
21315 /* confdefs.h. */
21316 _ACEOF
21317 cat confdefs.h >>conftest.$ac_ext
21318 cat >>conftest.$ac_ext <<_ACEOF
21319 /* end confdefs.h. */
21321 #ifdef HAVE_STDARG_PROTOTYPES
21322 #include <stdarg.h>
21323 #else
21324 #include <varargs.h>
21325 #endif
21328 main ()
21330 va_list list1, list2; list1 = list2;
21332 return 0;
21334 _ACEOF
21335 rm -f conftest.$ac_objext
21336 if { (ac_try="$ac_compile"
21337 case "(($ac_try" in
21338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21339 *) ac_try_echo=$ac_try;;
21340 esac
21341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21342 (eval "$ac_compile") 2>conftest.er1
21343 ac_status=$?
21344 grep -v '^ *+' conftest.er1 >conftest.err
21345 rm -f conftest.er1
21346 cat conftest.err >&5
21347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21348 (exit $ac_status); } && {
21349 test -z "$ac_c_werror_flag" ||
21350 test ! -s conftest.err
21351 } && test -s conftest.$ac_objext; then
21353 else
21354 echo "$as_me: failed program was:" >&5
21355 sed 's/^/| /' conftest.$ac_ext >&5
21359 cat >>confdefs.h <<\_ACEOF
21360 #define VA_LIST_IS_ARRAY 1
21361 _ACEOF
21363 va_list_is_array=yes
21367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21368 { echo "$as_me:$LINENO: result: $va_list_is_array" >&5
21369 echo "${ECHO_T}$va_list_is_array" >&6; }
21371 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
21375 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
21376 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
21377 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
21378 echo $ECHO_N "(cached) $ECHO_C" >&6
21379 else
21380 cat >conftest.$ac_ext <<_ACEOF
21381 /* confdefs.h. */
21382 _ACEOF
21383 cat confdefs.h >>conftest.$ac_ext
21384 cat >>conftest.$ac_ext <<_ACEOF
21385 /* end confdefs.h. */
21386 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
21387 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21388 #define gethostbyname_r innocuous_gethostbyname_r
21390 /* System header to define __stub macros and hopefully few prototypes,
21391 which can conflict with char gethostbyname_r (); below.
21392 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21393 <limits.h> exists even on freestanding compilers. */
21395 #ifdef __STDC__
21396 # include <limits.h>
21397 #else
21398 # include <assert.h>
21399 #endif
21401 #undef gethostbyname_r
21403 /* Override any GCC internal prototype to avoid an error.
21404 Use char because int might match the return type of a GCC
21405 builtin and then its argument prototype would still apply. */
21406 #ifdef __cplusplus
21407 extern "C"
21408 #endif
21409 char gethostbyname_r ();
21410 /* The GNU C library defines this for functions which it implements
21411 to always fail with ENOSYS. Some functions are actually named
21412 something starting with __ and the normal name is an alias. */
21413 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
21414 choke me
21415 #endif
21418 main ()
21420 return gethostbyname_r ();
21422 return 0;
21424 _ACEOF
21425 rm -f conftest.$ac_objext conftest$ac_exeext
21426 if { (ac_try="$ac_link"
21427 case "(($ac_try" in
21428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21429 *) ac_try_echo=$ac_try;;
21430 esac
21431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21432 (eval "$ac_link") 2>conftest.er1
21433 ac_status=$?
21434 grep -v '^ *+' conftest.er1 >conftest.err
21435 rm -f conftest.er1
21436 cat conftest.err >&5
21437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21438 (exit $ac_status); } && {
21439 test -z "$ac_c_werror_flag" ||
21440 test ! -s conftest.err
21441 } && test -s conftest$ac_exeext &&
21442 $as_test_x conftest$ac_exeext; then
21443 ac_cv_func_gethostbyname_r=yes
21444 else
21445 echo "$as_me: failed program was:" >&5
21446 sed 's/^/| /' conftest.$ac_ext >&5
21448 ac_cv_func_gethostbyname_r=no
21451 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21452 conftest$ac_exeext conftest.$ac_ext
21454 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
21455 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
21456 if test $ac_cv_func_gethostbyname_r = yes; then
21458 cat >>confdefs.h <<\_ACEOF
21459 #define HAVE_GETHOSTBYNAME_R 1
21460 _ACEOF
21462 { echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
21463 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6; }
21464 OLD_CFLAGS=$CFLAGS
21465 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
21466 cat >conftest.$ac_ext <<_ACEOF
21467 /* confdefs.h. */
21468 _ACEOF
21469 cat confdefs.h >>conftest.$ac_ext
21470 cat >>conftest.$ac_ext <<_ACEOF
21471 /* end confdefs.h. */
21473 # include <netdb.h>
21476 main ()
21479 char *name;
21480 struct hostent *he, *res;
21481 char buffer[2048];
21482 int buflen = 2048;
21483 int h_errnop;
21485 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
21488 return 0;
21490 _ACEOF
21491 rm -f conftest.$ac_objext
21492 if { (ac_try="$ac_compile"
21493 case "(($ac_try" in
21494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21495 *) ac_try_echo=$ac_try;;
21496 esac
21497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21498 (eval "$ac_compile") 2>conftest.er1
21499 ac_status=$?
21500 grep -v '^ *+' conftest.er1 >conftest.err
21501 rm -f conftest.er1
21502 cat conftest.err >&5
21503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21504 (exit $ac_status); } && {
21505 test -z "$ac_c_werror_flag" ||
21506 test ! -s conftest.err
21507 } && test -s conftest.$ac_objext; then
21509 cat >>confdefs.h <<\_ACEOF
21510 #define HAVE_GETHOSTBYNAME_R 1
21511 _ACEOF
21514 cat >>confdefs.h <<\_ACEOF
21515 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
21516 _ACEOF
21518 { echo "$as_me:$LINENO: result: yes" >&5
21519 echo "${ECHO_T}yes" >&6; }
21521 else
21522 echo "$as_me: failed program was:" >&5
21523 sed 's/^/| /' conftest.$ac_ext >&5
21526 { echo "$as_me:$LINENO: result: no" >&5
21527 echo "${ECHO_T}no" >&6; }
21528 { echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
21529 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6; }
21530 cat >conftest.$ac_ext <<_ACEOF
21531 /* confdefs.h. */
21532 _ACEOF
21533 cat confdefs.h >>conftest.$ac_ext
21534 cat >>conftest.$ac_ext <<_ACEOF
21535 /* end confdefs.h. */
21537 # include <netdb.h>
21540 main ()
21543 char *name;
21544 struct hostent *he;
21545 char buffer[2048];
21546 int buflen = 2048;
21547 int h_errnop;
21549 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
21552 return 0;
21554 _ACEOF
21555 rm -f conftest.$ac_objext
21556 if { (ac_try="$ac_compile"
21557 case "(($ac_try" in
21558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21559 *) ac_try_echo=$ac_try;;
21560 esac
21561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21562 (eval "$ac_compile") 2>conftest.er1
21563 ac_status=$?
21564 grep -v '^ *+' conftest.er1 >conftest.err
21565 rm -f conftest.er1
21566 cat conftest.err >&5
21567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21568 (exit $ac_status); } && {
21569 test -z "$ac_c_werror_flag" ||
21570 test ! -s conftest.err
21571 } && test -s conftest.$ac_objext; then
21573 cat >>confdefs.h <<\_ACEOF
21574 #define HAVE_GETHOSTBYNAME_R 1
21575 _ACEOF
21578 cat >>confdefs.h <<\_ACEOF
21579 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
21580 _ACEOF
21582 { echo "$as_me:$LINENO: result: yes" >&5
21583 echo "${ECHO_T}yes" >&6; }
21585 else
21586 echo "$as_me: failed program was:" >&5
21587 sed 's/^/| /' conftest.$ac_ext >&5
21590 { echo "$as_me:$LINENO: result: no" >&5
21591 echo "${ECHO_T}no" >&6; }
21592 { echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
21593 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6; }
21594 cat >conftest.$ac_ext <<_ACEOF
21595 /* confdefs.h. */
21596 _ACEOF
21597 cat confdefs.h >>conftest.$ac_ext
21598 cat >>conftest.$ac_ext <<_ACEOF
21599 /* end confdefs.h. */
21601 # include <netdb.h>
21604 main ()
21607 char *name;
21608 struct hostent *he;
21609 struct hostent_data data;
21611 (void) gethostbyname_r(name, he, &data);
21614 return 0;
21616 _ACEOF
21617 rm -f conftest.$ac_objext
21618 if { (ac_try="$ac_compile"
21619 case "(($ac_try" in
21620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21621 *) ac_try_echo=$ac_try;;
21622 esac
21623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21624 (eval "$ac_compile") 2>conftest.er1
21625 ac_status=$?
21626 grep -v '^ *+' conftest.er1 >conftest.err
21627 rm -f conftest.er1
21628 cat conftest.err >&5
21629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21630 (exit $ac_status); } && {
21631 test -z "$ac_c_werror_flag" ||
21632 test ! -s conftest.err
21633 } && test -s conftest.$ac_objext; then
21635 cat >>confdefs.h <<\_ACEOF
21636 #define HAVE_GETHOSTBYNAME_R 1
21637 _ACEOF
21640 cat >>confdefs.h <<\_ACEOF
21641 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
21642 _ACEOF
21644 { echo "$as_me:$LINENO: result: yes" >&5
21645 echo "${ECHO_T}yes" >&6; }
21647 else
21648 echo "$as_me: failed program was:" >&5
21649 sed 's/^/| /' conftest.$ac_ext >&5
21652 { echo "$as_me:$LINENO: result: no" >&5
21653 echo "${ECHO_T}no" >&6; }
21657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21666 CFLAGS=$OLD_CFLAGS
21668 else
21671 for ac_func in gethostbyname
21673 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21674 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21675 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21676 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21677 echo $ECHO_N "(cached) $ECHO_C" >&6
21678 else
21679 cat >conftest.$ac_ext <<_ACEOF
21680 /* confdefs.h. */
21681 _ACEOF
21682 cat confdefs.h >>conftest.$ac_ext
21683 cat >>conftest.$ac_ext <<_ACEOF
21684 /* end confdefs.h. */
21685 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21686 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21687 #define $ac_func innocuous_$ac_func
21689 /* System header to define __stub macros and hopefully few prototypes,
21690 which can conflict with char $ac_func (); below.
21691 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21692 <limits.h> exists even on freestanding compilers. */
21694 #ifdef __STDC__
21695 # include <limits.h>
21696 #else
21697 # include <assert.h>
21698 #endif
21700 #undef $ac_func
21702 /* Override any GCC internal prototype to avoid an error.
21703 Use char because int might match the return type of a GCC
21704 builtin and then its argument prototype would still apply. */
21705 #ifdef __cplusplus
21706 extern "C"
21707 #endif
21708 char $ac_func ();
21709 /* The GNU C library defines this for functions which it implements
21710 to always fail with ENOSYS. Some functions are actually named
21711 something starting with __ and the normal name is an alias. */
21712 #if defined __stub_$ac_func || defined __stub___$ac_func
21713 choke me
21714 #endif
21717 main ()
21719 return $ac_func ();
21721 return 0;
21723 _ACEOF
21724 rm -f conftest.$ac_objext conftest$ac_exeext
21725 if { (ac_try="$ac_link"
21726 case "(($ac_try" in
21727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21728 *) ac_try_echo=$ac_try;;
21729 esac
21730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21731 (eval "$ac_link") 2>conftest.er1
21732 ac_status=$?
21733 grep -v '^ *+' conftest.er1 >conftest.err
21734 rm -f conftest.er1
21735 cat conftest.err >&5
21736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21737 (exit $ac_status); } && {
21738 test -z "$ac_c_werror_flag" ||
21739 test ! -s conftest.err
21740 } && test -s conftest$ac_exeext &&
21741 $as_test_x conftest$ac_exeext; then
21742 eval "$as_ac_var=yes"
21743 else
21744 echo "$as_me: failed program was:" >&5
21745 sed 's/^/| /' conftest.$ac_ext >&5
21747 eval "$as_ac_var=no"
21750 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21751 conftest$ac_exeext conftest.$ac_ext
21753 ac_res=`eval echo '${'$as_ac_var'}'`
21754 { echo "$as_me:$LINENO: result: $ac_res" >&5
21755 echo "${ECHO_T}$ac_res" >&6; }
21756 if test `eval echo '${'$as_ac_var'}'` = yes; then
21757 cat >>confdefs.h <<_ACEOF
21758 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21759 _ACEOF
21762 done
21773 # checks for system services
21774 # (none yet)
21776 # Linux requires this for correct f.p. operations
21777 { echo "$as_me:$LINENO: checking for __fpu_control" >&5
21778 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6; }
21779 if test "${ac_cv_func___fpu_control+set}" = set; then
21780 echo $ECHO_N "(cached) $ECHO_C" >&6
21781 else
21782 cat >conftest.$ac_ext <<_ACEOF
21783 /* confdefs.h. */
21784 _ACEOF
21785 cat confdefs.h >>conftest.$ac_ext
21786 cat >>conftest.$ac_ext <<_ACEOF
21787 /* end confdefs.h. */
21788 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
21789 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21790 #define __fpu_control innocuous___fpu_control
21792 /* System header to define __stub macros and hopefully few prototypes,
21793 which can conflict with char __fpu_control (); below.
21794 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21795 <limits.h> exists even on freestanding compilers. */
21797 #ifdef __STDC__
21798 # include <limits.h>
21799 #else
21800 # include <assert.h>
21801 #endif
21803 #undef __fpu_control
21805 /* Override any GCC internal prototype to avoid an error.
21806 Use char because int might match the return type of a GCC
21807 builtin and then its argument prototype would still apply. */
21808 #ifdef __cplusplus
21809 extern "C"
21810 #endif
21811 char __fpu_control ();
21812 /* The GNU C library defines this for functions which it implements
21813 to always fail with ENOSYS. Some functions are actually named
21814 something starting with __ and the normal name is an alias. */
21815 #if defined __stub___fpu_control || defined __stub_____fpu_control
21816 choke me
21817 #endif
21820 main ()
21822 return __fpu_control ();
21824 return 0;
21826 _ACEOF
21827 rm -f conftest.$ac_objext conftest$ac_exeext
21828 if { (ac_try="$ac_link"
21829 case "(($ac_try" in
21830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21831 *) ac_try_echo=$ac_try;;
21832 esac
21833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21834 (eval "$ac_link") 2>conftest.er1
21835 ac_status=$?
21836 grep -v '^ *+' conftest.er1 >conftest.err
21837 rm -f conftest.er1
21838 cat conftest.err >&5
21839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21840 (exit $ac_status); } && {
21841 test -z "$ac_c_werror_flag" ||
21842 test ! -s conftest.err
21843 } && test -s conftest$ac_exeext &&
21844 $as_test_x conftest$ac_exeext; then
21845 ac_cv_func___fpu_control=yes
21846 else
21847 echo "$as_me: failed program was:" >&5
21848 sed 's/^/| /' conftest.$ac_ext >&5
21850 ac_cv_func___fpu_control=no
21853 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21854 conftest$ac_exeext conftest.$ac_ext
21856 { echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
21857 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6; }
21858 if test $ac_cv_func___fpu_control = yes; then
21860 else
21862 { echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
21863 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6; }
21864 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
21865 echo $ECHO_N "(cached) $ECHO_C" >&6
21866 else
21867 ac_check_lib_save_LIBS=$LIBS
21868 LIBS="-lieee $LIBS"
21869 cat >conftest.$ac_ext <<_ACEOF
21870 /* confdefs.h. */
21871 _ACEOF
21872 cat confdefs.h >>conftest.$ac_ext
21873 cat >>conftest.$ac_ext <<_ACEOF
21874 /* end confdefs.h. */
21876 /* Override any GCC internal prototype to avoid an error.
21877 Use char because int might match the return type of a GCC
21878 builtin and then its argument prototype would still apply. */
21879 #ifdef __cplusplus
21880 extern "C"
21881 #endif
21882 char __fpu_control ();
21884 main ()
21886 return __fpu_control ();
21888 return 0;
21890 _ACEOF
21891 rm -f conftest.$ac_objext conftest$ac_exeext
21892 if { (ac_try="$ac_link"
21893 case "(($ac_try" in
21894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21895 *) ac_try_echo=$ac_try;;
21896 esac
21897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21898 (eval "$ac_link") 2>conftest.er1
21899 ac_status=$?
21900 grep -v '^ *+' conftest.er1 >conftest.err
21901 rm -f conftest.er1
21902 cat conftest.err >&5
21903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21904 (exit $ac_status); } && {
21905 test -z "$ac_c_werror_flag" ||
21906 test ! -s conftest.err
21907 } && test -s conftest$ac_exeext &&
21908 $as_test_x conftest$ac_exeext; then
21909 ac_cv_lib_ieee___fpu_control=yes
21910 else
21911 echo "$as_me: failed program was:" >&5
21912 sed 's/^/| /' conftest.$ac_ext >&5
21914 ac_cv_lib_ieee___fpu_control=no
21917 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21918 conftest$ac_exeext conftest.$ac_ext
21919 LIBS=$ac_check_lib_save_LIBS
21921 { echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
21922 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6; }
21923 if test $ac_cv_lib_ieee___fpu_control = yes; then
21924 cat >>confdefs.h <<_ACEOF
21925 #define HAVE_LIBIEEE 1
21926 _ACEOF
21928 LIBS="-lieee $LIBS"
21936 # Check for --with-fpectl
21937 { echo "$as_me:$LINENO: checking for --with-fpectl" >&5
21938 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6; }
21940 # Check whether --with-fpectl was given.
21941 if test "${with_fpectl+set}" = set; then
21942 withval=$with_fpectl;
21943 if test "$withval" != no
21944 then
21946 cat >>confdefs.h <<\_ACEOF
21947 #define WANT_SIGFPE_HANDLER 1
21948 _ACEOF
21950 { echo "$as_me:$LINENO: result: yes" >&5
21951 echo "${ECHO_T}yes" >&6; }
21952 else { echo "$as_me:$LINENO: result: no" >&5
21953 echo "${ECHO_T}no" >&6; }
21955 else
21956 { echo "$as_me:$LINENO: result: no" >&5
21957 echo "${ECHO_T}no" >&6; }
21961 # check for --with-libm=...
21963 case $ac_sys_system in
21964 Darwin) ;;
21965 *) LIBM=-lm
21966 esac
21967 { echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
21968 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6; }
21970 # Check whether --with-libm was given.
21971 if test "${with_libm+set}" = set; then
21972 withval=$with_libm;
21973 if test "$withval" = no
21974 then LIBM=
21975 { echo "$as_me:$LINENO: result: force LIBM empty" >&5
21976 echo "${ECHO_T}force LIBM empty" >&6; }
21977 elif test "$withval" != yes
21978 then LIBM=$withval
21979 { echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
21980 echo "${ECHO_T}set LIBM=\"$withval\"" >&6; }
21981 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
21982 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
21983 { (exit 1); exit 1; }; }
21985 else
21986 { echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
21987 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6; }
21991 # check for --with-libc=...
21993 { echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
21994 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6; }
21996 # Check whether --with-libc was given.
21997 if test "${with_libc+set}" = set; then
21998 withval=$with_libc;
21999 if test "$withval" = no
22000 then LIBC=
22001 { echo "$as_me:$LINENO: result: force LIBC empty" >&5
22002 echo "${ECHO_T}force LIBC empty" >&6; }
22003 elif test "$withval" != yes
22004 then LIBC=$withval
22005 { echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
22006 echo "${ECHO_T}set LIBC=\"$withval\"" >&6; }
22007 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
22008 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
22009 { (exit 1); exit 1; }; }
22011 else
22012 { echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
22013 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6; }
22017 # **************************************************
22018 # * Check for various properties of floating point *
22019 # **************************************************
22021 { echo "$as_me:$LINENO: checking whether C doubles are little-endian IEEE 754 binary64" >&5
22022 echo $ECHO_N "checking whether C doubles are little-endian IEEE 754 binary64... $ECHO_C" >&6; }
22023 if test "${ac_cv_little_endian_double+set}" = set; then
22024 echo $ECHO_N "(cached) $ECHO_C" >&6
22025 else
22027 if test "$cross_compiling" = yes; then
22028 ac_cv_little_endian_double=no
22029 else
22030 cat >conftest.$ac_ext <<_ACEOF
22031 /* confdefs.h. */
22032 _ACEOF
22033 cat confdefs.h >>conftest.$ac_ext
22034 cat >>conftest.$ac_ext <<_ACEOF
22035 /* end confdefs.h. */
22037 #include <string.h>
22038 int main() {
22039 double x = 9006104071832581.0;
22040 if (memcmp(&x, "\x05\x04\x03\x02\x01\xff\x3f\x43", 8) == 0)
22041 return 0;
22042 else
22043 return 1;
22046 _ACEOF
22047 rm -f conftest$ac_exeext
22048 if { (ac_try="$ac_link"
22049 case "(($ac_try" in
22050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22051 *) ac_try_echo=$ac_try;;
22052 esac
22053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22054 (eval "$ac_link") 2>&5
22055 ac_status=$?
22056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22057 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22058 { (case "(($ac_try" in
22059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22060 *) ac_try_echo=$ac_try;;
22061 esac
22062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22063 (eval "$ac_try") 2>&5
22064 ac_status=$?
22065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22066 (exit $ac_status); }; }; then
22067 ac_cv_little_endian_double=yes
22068 else
22069 echo "$as_me: program exited with status $ac_status" >&5
22070 echo "$as_me: failed program was:" >&5
22071 sed 's/^/| /' conftest.$ac_ext >&5
22073 ( exit $ac_status )
22074 ac_cv_little_endian_double=no
22076 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22082 { echo "$as_me:$LINENO: result: $ac_cv_little_endian_double" >&5
22083 echo "${ECHO_T}$ac_cv_little_endian_double" >&6; }
22084 if test "$ac_cv_little_endian_double" = yes
22085 then
22087 cat >>confdefs.h <<\_ACEOF
22088 #define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1
22089 _ACEOF
22093 { echo "$as_me:$LINENO: checking whether C doubles are big-endian IEEE 754 binary64" >&5
22094 echo $ECHO_N "checking whether C doubles are big-endian IEEE 754 binary64... $ECHO_C" >&6; }
22095 if test "${ac_cv_big_endian_double+set}" = set; then
22096 echo $ECHO_N "(cached) $ECHO_C" >&6
22097 else
22099 if test "$cross_compiling" = yes; then
22100 ac_cv_big_endian_double=no
22101 else
22102 cat >conftest.$ac_ext <<_ACEOF
22103 /* confdefs.h. */
22104 _ACEOF
22105 cat confdefs.h >>conftest.$ac_ext
22106 cat >>conftest.$ac_ext <<_ACEOF
22107 /* end confdefs.h. */
22109 #include <string.h>
22110 int main() {
22111 double x = 9006104071832581.0;
22112 if (memcmp(&x, "\x43\x3f\xff\x01\x02\x03\x04\x05", 8) == 0)
22113 return 0;
22114 else
22115 return 1;
22118 _ACEOF
22119 rm -f conftest$ac_exeext
22120 if { (ac_try="$ac_link"
22121 case "(($ac_try" in
22122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22123 *) ac_try_echo=$ac_try;;
22124 esac
22125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22126 (eval "$ac_link") 2>&5
22127 ac_status=$?
22128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22129 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22130 { (case "(($ac_try" in
22131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22132 *) ac_try_echo=$ac_try;;
22133 esac
22134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22135 (eval "$ac_try") 2>&5
22136 ac_status=$?
22137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22138 (exit $ac_status); }; }; then
22139 ac_cv_big_endian_double=yes
22140 else
22141 echo "$as_me: program exited with status $ac_status" >&5
22142 echo "$as_me: failed program was:" >&5
22143 sed 's/^/| /' conftest.$ac_ext >&5
22145 ( exit $ac_status )
22146 ac_cv_big_endian_double=no
22148 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22154 { echo "$as_me:$LINENO: result: $ac_cv_big_endian_double" >&5
22155 echo "${ECHO_T}$ac_cv_big_endian_double" >&6; }
22156 if test "$ac_cv_big_endian_double" = yes
22157 then
22159 cat >>confdefs.h <<\_ACEOF
22160 #define DOUBLE_IS_BIG_ENDIAN_IEEE754 1
22161 _ACEOF
22165 # Some ARM platforms use a mixed-endian representation for doubles.
22166 # While Python doesn't currently have full support for these platforms
22167 # (see e.g., issue 1762561), we can at least make sure that float <-> string
22168 # conversions work.
22169 { echo "$as_me:$LINENO: checking whether C doubles are ARM mixed-endian IEEE 754 binary64" >&5
22170 echo $ECHO_N "checking whether C doubles are ARM mixed-endian IEEE 754 binary64... $ECHO_C" >&6; }
22171 if test "${ac_cv_mixed_endian_double+set}" = set; then
22172 echo $ECHO_N "(cached) $ECHO_C" >&6
22173 else
22175 if test "$cross_compiling" = yes; then
22176 ac_cv_mixed_endian_double=no
22177 else
22178 cat >conftest.$ac_ext <<_ACEOF
22179 /* confdefs.h. */
22180 _ACEOF
22181 cat confdefs.h >>conftest.$ac_ext
22182 cat >>conftest.$ac_ext <<_ACEOF
22183 /* end confdefs.h. */
22185 #include <string.h>
22186 int main() {
22187 double x = 9006104071832581.0;
22188 if (memcmp(&x, "\x01\xff\x3f\x43\x05\x04\x03\x02", 8) == 0)
22189 return 0;
22190 else
22191 return 1;
22194 _ACEOF
22195 rm -f conftest$ac_exeext
22196 if { (ac_try="$ac_link"
22197 case "(($ac_try" in
22198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22199 *) ac_try_echo=$ac_try;;
22200 esac
22201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22202 (eval "$ac_link") 2>&5
22203 ac_status=$?
22204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22205 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22206 { (case "(($ac_try" in
22207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22208 *) ac_try_echo=$ac_try;;
22209 esac
22210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22211 (eval "$ac_try") 2>&5
22212 ac_status=$?
22213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22214 (exit $ac_status); }; }; then
22215 ac_cv_mixed_endian_double=yes
22216 else
22217 echo "$as_me: program exited with status $ac_status" >&5
22218 echo "$as_me: failed program was:" >&5
22219 sed 's/^/| /' conftest.$ac_ext >&5
22221 ( exit $ac_status )
22222 ac_cv_mixed_endian_double=no
22224 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22230 { echo "$as_me:$LINENO: result: $ac_cv_mixed_endian_double" >&5
22231 echo "${ECHO_T}$ac_cv_mixed_endian_double" >&6; }
22232 if test "$ac_cv_mixed_endian_double" = yes
22233 then
22235 cat >>confdefs.h <<\_ACEOF
22236 #define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1
22237 _ACEOF
22241 # The short float repr introduced in Python 3.1 requires the
22242 # correctly-rounded string <-> double conversion functions from
22243 # Python/dtoa.c, which in turn require that the FPU uses 53-bit
22244 # rounding; this is a problem on x86, where the x87 FPU has a default
22245 # rounding precision of 64 bits. For gcc/x86, we try to fix this by
22246 # using inline assembler to get and set the x87 FPU control word.
22247 if test "$GCC" = yes && test -n "`$CC -dM -E - </dev/null | grep i386`"
22248 then
22249 # Check that it's okay to use gcc inline assembler to get and set
22250 # x87 control word. It should be, but you never know...
22251 { echo "$as_me:$LINENO: checking whether we can use gcc inline assembler to get and set x87 control word" >&5
22252 echo $ECHO_N "checking whether we can use gcc inline assembler to get and set x87 control word... $ECHO_C" >&6; }
22253 cat >conftest.$ac_ext <<_ACEOF
22254 /* confdefs.h. */
22255 _ACEOF
22256 cat confdefs.h >>conftest.$ac_ext
22257 cat >>conftest.$ac_ext <<_ACEOF
22258 /* end confdefs.h. */
22261 main ()
22264 unsigned short cw;
22265 __asm__ __volatile__ ("fnstcw %0" : "=m" (cw));
22266 __asm__ __volatile__ ("fldcw %0" : : "m" (cw));
22269 return 0;
22271 _ACEOF
22272 rm -f conftest.$ac_objext
22273 if { (ac_try="$ac_compile"
22274 case "(($ac_try" in
22275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22276 *) ac_try_echo=$ac_try;;
22277 esac
22278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22279 (eval "$ac_compile") 2>conftest.er1
22280 ac_status=$?
22281 grep -v '^ *+' conftest.er1 >conftest.err
22282 rm -f conftest.er1
22283 cat conftest.err >&5
22284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22285 (exit $ac_status); } && {
22286 test -z "$ac_c_werror_flag" ||
22287 test ! -s conftest.err
22288 } && test -s conftest.$ac_objext; then
22289 have_gcc_asm_for_x87=yes
22290 else
22291 echo "$as_me: failed program was:" >&5
22292 sed 's/^/| /' conftest.$ac_ext >&5
22294 have_gcc_asm_for_x87=no
22297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22298 { echo "$as_me:$LINENO: result: $have_gcc_asm_for_x87" >&5
22299 echo "${ECHO_T}$have_gcc_asm_for_x87" >&6; }
22300 if test "$have_gcc_asm_for_x87" = yes
22301 then
22303 cat >>confdefs.h <<\_ACEOF
22304 #define HAVE_GCC_ASM_FOR_X87 1
22305 _ACEOF
22310 # Detect whether system arithmetic is subject to x87-style double
22311 # rounding issues. The result of this test has little meaning on non
22312 # IEEE 754 platforms. On IEEE 754, test should return 1 if rounding
22313 # mode is round-to-nearest and double rounding issues are present, and
22314 # 0 otherwise. See http://bugs.python.org/issue2937 for more info.
22315 { echo "$as_me:$LINENO: checking for x87-style double rounding" >&5
22316 echo $ECHO_N "checking for x87-style double rounding... $ECHO_C" >&6; }
22317 # $BASECFLAGS may affect the result
22318 ac_save_cc="$CC"
22319 CC="$CC $BASECFLAGS"
22320 if test "$cross_compiling" = yes; then
22321 ac_cv_x87_double_rounding=no
22322 else
22323 cat >conftest.$ac_ext <<_ACEOF
22324 /* confdefs.h. */
22325 _ACEOF
22326 cat confdefs.h >>conftest.$ac_ext
22327 cat >>conftest.$ac_ext <<_ACEOF
22328 /* end confdefs.h. */
22330 #include <stdlib.h>
22331 #include <math.h>
22332 int main() {
22333 volatile double x, y, z;
22334 /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */
22335 x = 0.99999999999999989; /* 1-2**-53 */
22336 y = 1./x;
22337 if (y != 1.)
22338 exit(0);
22339 /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */
22340 x = 1e16;
22341 y = 2.99999;
22342 z = x + y;
22343 if (z != 1e16+4.)
22344 exit(0);
22345 /* both tests show evidence of double rounding */
22346 exit(1);
22349 _ACEOF
22350 rm -f conftest$ac_exeext
22351 if { (ac_try="$ac_link"
22352 case "(($ac_try" in
22353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22354 *) ac_try_echo=$ac_try;;
22355 esac
22356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22357 (eval "$ac_link") 2>&5
22358 ac_status=$?
22359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22360 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22361 { (case "(($ac_try" in
22362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22363 *) ac_try_echo=$ac_try;;
22364 esac
22365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22366 (eval "$ac_try") 2>&5
22367 ac_status=$?
22368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22369 (exit $ac_status); }; }; then
22370 ac_cv_x87_double_rounding=no
22371 else
22372 echo "$as_me: program exited with status $ac_status" >&5
22373 echo "$as_me: failed program was:" >&5
22374 sed 's/^/| /' conftest.$ac_ext >&5
22376 ( exit $ac_status )
22377 ac_cv_x87_double_rounding=yes
22379 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22383 CC="$ac_save_cc"
22384 { echo "$as_me:$LINENO: result: $ac_cv_x87_double_rounding" >&5
22385 echo "${ECHO_T}$ac_cv_x87_double_rounding" >&6; }
22386 if test "$ac_cv_x87_double_rounding" = yes
22387 then
22389 cat >>confdefs.h <<\_ACEOF
22390 #define X87_DOUBLE_ROUNDING 1
22391 _ACEOF
22395 # ************************************
22396 # * Check for mathematical functions *
22397 # ************************************
22399 LIBS_SAVE=$LIBS
22400 LIBS="$LIBS $LIBM"
22402 # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of
22403 # -0. on some architectures.
22404 { echo "$as_me:$LINENO: checking whether tanh preserves the sign of zero" >&5
22405 echo $ECHO_N "checking whether tanh preserves the sign of zero... $ECHO_C" >&6; }
22406 if test "${ac_cv_tanh_preserves_zero_sign+set}" = set; then
22407 echo $ECHO_N "(cached) $ECHO_C" >&6
22408 else
22410 if test "$cross_compiling" = yes; then
22411 ac_cv_tanh_preserves_zero_sign=no
22412 else
22413 cat >conftest.$ac_ext <<_ACEOF
22414 /* confdefs.h. */
22415 _ACEOF
22416 cat confdefs.h >>conftest.$ac_ext
22417 cat >>conftest.$ac_ext <<_ACEOF
22418 /* end confdefs.h. */
22420 #include <math.h>
22421 #include <stdlib.h>
22422 int main() {
22423 /* return 0 if either negative zeros don't exist
22424 on this platform or if negative zeros exist
22425 and tanh(-0.) == -0. */
22426 if (atan2(0., -1.) == atan2(-0., -1.) ||
22427 atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0);
22428 else exit(1);
22431 _ACEOF
22432 rm -f conftest$ac_exeext
22433 if { (ac_try="$ac_link"
22434 case "(($ac_try" in
22435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22436 *) ac_try_echo=$ac_try;;
22437 esac
22438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22439 (eval "$ac_link") 2>&5
22440 ac_status=$?
22441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22442 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22443 { (case "(($ac_try" in
22444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22445 *) ac_try_echo=$ac_try;;
22446 esac
22447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22448 (eval "$ac_try") 2>&5
22449 ac_status=$?
22450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22451 (exit $ac_status); }; }; then
22452 ac_cv_tanh_preserves_zero_sign=yes
22453 else
22454 echo "$as_me: program exited with status $ac_status" >&5
22455 echo "$as_me: failed program was:" >&5
22456 sed 's/^/| /' conftest.$ac_ext >&5
22458 ( exit $ac_status )
22459 ac_cv_tanh_preserves_zero_sign=no
22461 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22467 { echo "$as_me:$LINENO: result: $ac_cv_tanh_preserves_zero_sign" >&5
22468 echo "${ECHO_T}$ac_cv_tanh_preserves_zero_sign" >&6; }
22469 if test "$ac_cv_tanh_preserves_zero_sign" = yes
22470 then
22472 cat >>confdefs.h <<\_ACEOF
22473 #define TANH_PRESERVES_ZERO_SIGN 1
22474 _ACEOF
22487 for ac_func in acosh asinh atanh copysign expm1 finite hypot log1p round
22489 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22490 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22491 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22492 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22493 echo $ECHO_N "(cached) $ECHO_C" >&6
22494 else
22495 cat >conftest.$ac_ext <<_ACEOF
22496 /* confdefs.h. */
22497 _ACEOF
22498 cat confdefs.h >>conftest.$ac_ext
22499 cat >>conftest.$ac_ext <<_ACEOF
22500 /* end confdefs.h. */
22501 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22502 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22503 #define $ac_func innocuous_$ac_func
22505 /* System header to define __stub macros and hopefully few prototypes,
22506 which can conflict with char $ac_func (); below.
22507 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22508 <limits.h> exists even on freestanding compilers. */
22510 #ifdef __STDC__
22511 # include <limits.h>
22512 #else
22513 # include <assert.h>
22514 #endif
22516 #undef $ac_func
22518 /* Override any GCC internal prototype to avoid an error.
22519 Use char because int might match the return type of a GCC
22520 builtin and then its argument prototype would still apply. */
22521 #ifdef __cplusplus
22522 extern "C"
22523 #endif
22524 char $ac_func ();
22525 /* The GNU C library defines this for functions which it implements
22526 to always fail with ENOSYS. Some functions are actually named
22527 something starting with __ and the normal name is an alias. */
22528 #if defined __stub_$ac_func || defined __stub___$ac_func
22529 choke me
22530 #endif
22533 main ()
22535 return $ac_func ();
22537 return 0;
22539 _ACEOF
22540 rm -f conftest.$ac_objext conftest$ac_exeext
22541 if { (ac_try="$ac_link"
22542 case "(($ac_try" in
22543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22544 *) ac_try_echo=$ac_try;;
22545 esac
22546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22547 (eval "$ac_link") 2>conftest.er1
22548 ac_status=$?
22549 grep -v '^ *+' conftest.er1 >conftest.err
22550 rm -f conftest.er1
22551 cat conftest.err >&5
22552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22553 (exit $ac_status); } && {
22554 test -z "$ac_c_werror_flag" ||
22555 test ! -s conftest.err
22556 } && test -s conftest$ac_exeext &&
22557 $as_test_x conftest$ac_exeext; then
22558 eval "$as_ac_var=yes"
22559 else
22560 echo "$as_me: failed program was:" >&5
22561 sed 's/^/| /' conftest.$ac_ext >&5
22563 eval "$as_ac_var=no"
22566 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22567 conftest$ac_exeext conftest.$ac_ext
22569 ac_res=`eval echo '${'$as_ac_var'}'`
22570 { echo "$as_me:$LINENO: result: $ac_res" >&5
22571 echo "${ECHO_T}$ac_res" >&6; }
22572 if test `eval echo '${'$as_ac_var'}'` = yes; then
22573 cat >>confdefs.h <<_ACEOF
22574 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22575 _ACEOF
22578 done
22580 { echo "$as_me:$LINENO: checking whether isinf is declared" >&5
22581 echo $ECHO_N "checking whether isinf is declared... $ECHO_C" >&6; }
22582 if test "${ac_cv_have_decl_isinf+set}" = set; then
22583 echo $ECHO_N "(cached) $ECHO_C" >&6
22584 else
22585 cat >conftest.$ac_ext <<_ACEOF
22586 /* confdefs.h. */
22587 _ACEOF
22588 cat confdefs.h >>conftest.$ac_ext
22589 cat >>conftest.$ac_ext <<_ACEOF
22590 /* end confdefs.h. */
22591 #include <math.h>
22594 main ()
22596 #ifndef isinf
22597 (void) isinf;
22598 #endif
22601 return 0;
22603 _ACEOF
22604 rm -f conftest.$ac_objext
22605 if { (ac_try="$ac_compile"
22606 case "(($ac_try" in
22607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22608 *) ac_try_echo=$ac_try;;
22609 esac
22610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22611 (eval "$ac_compile") 2>conftest.er1
22612 ac_status=$?
22613 grep -v '^ *+' conftest.er1 >conftest.err
22614 rm -f conftest.er1
22615 cat conftest.err >&5
22616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22617 (exit $ac_status); } && {
22618 test -z "$ac_c_werror_flag" ||
22619 test ! -s conftest.err
22620 } && test -s conftest.$ac_objext; then
22621 ac_cv_have_decl_isinf=yes
22622 else
22623 echo "$as_me: failed program was:" >&5
22624 sed 's/^/| /' conftest.$ac_ext >&5
22626 ac_cv_have_decl_isinf=no
22629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22631 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isinf" >&5
22632 echo "${ECHO_T}$ac_cv_have_decl_isinf" >&6; }
22633 if test $ac_cv_have_decl_isinf = yes; then
22635 cat >>confdefs.h <<_ACEOF
22636 #define HAVE_DECL_ISINF 1
22637 _ACEOF
22640 else
22641 cat >>confdefs.h <<_ACEOF
22642 #define HAVE_DECL_ISINF 0
22643 _ACEOF
22647 { echo "$as_me:$LINENO: checking whether isnan is declared" >&5
22648 echo $ECHO_N "checking whether isnan is declared... $ECHO_C" >&6; }
22649 if test "${ac_cv_have_decl_isnan+set}" = set; then
22650 echo $ECHO_N "(cached) $ECHO_C" >&6
22651 else
22652 cat >conftest.$ac_ext <<_ACEOF
22653 /* confdefs.h. */
22654 _ACEOF
22655 cat confdefs.h >>conftest.$ac_ext
22656 cat >>conftest.$ac_ext <<_ACEOF
22657 /* end confdefs.h. */
22658 #include <math.h>
22661 main ()
22663 #ifndef isnan
22664 (void) isnan;
22665 #endif
22668 return 0;
22670 _ACEOF
22671 rm -f conftest.$ac_objext
22672 if { (ac_try="$ac_compile"
22673 case "(($ac_try" in
22674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22675 *) ac_try_echo=$ac_try;;
22676 esac
22677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22678 (eval "$ac_compile") 2>conftest.er1
22679 ac_status=$?
22680 grep -v '^ *+' conftest.er1 >conftest.err
22681 rm -f conftest.er1
22682 cat conftest.err >&5
22683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22684 (exit $ac_status); } && {
22685 test -z "$ac_c_werror_flag" ||
22686 test ! -s conftest.err
22687 } && test -s conftest.$ac_objext; then
22688 ac_cv_have_decl_isnan=yes
22689 else
22690 echo "$as_me: failed program was:" >&5
22691 sed 's/^/| /' conftest.$ac_ext >&5
22693 ac_cv_have_decl_isnan=no
22696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22698 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isnan" >&5
22699 echo "${ECHO_T}$ac_cv_have_decl_isnan" >&6; }
22700 if test $ac_cv_have_decl_isnan = yes; then
22702 cat >>confdefs.h <<_ACEOF
22703 #define HAVE_DECL_ISNAN 1
22704 _ACEOF
22707 else
22708 cat >>confdefs.h <<_ACEOF
22709 #define HAVE_DECL_ISNAN 0
22710 _ACEOF
22714 { echo "$as_me:$LINENO: checking whether isfinite is declared" >&5
22715 echo $ECHO_N "checking whether isfinite is declared... $ECHO_C" >&6; }
22716 if test "${ac_cv_have_decl_isfinite+set}" = set; then
22717 echo $ECHO_N "(cached) $ECHO_C" >&6
22718 else
22719 cat >conftest.$ac_ext <<_ACEOF
22720 /* confdefs.h. */
22721 _ACEOF
22722 cat confdefs.h >>conftest.$ac_ext
22723 cat >>conftest.$ac_ext <<_ACEOF
22724 /* end confdefs.h. */
22725 #include <math.h>
22728 main ()
22730 #ifndef isfinite
22731 (void) isfinite;
22732 #endif
22735 return 0;
22737 _ACEOF
22738 rm -f conftest.$ac_objext
22739 if { (ac_try="$ac_compile"
22740 case "(($ac_try" in
22741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22742 *) ac_try_echo=$ac_try;;
22743 esac
22744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22745 (eval "$ac_compile") 2>conftest.er1
22746 ac_status=$?
22747 grep -v '^ *+' conftest.er1 >conftest.err
22748 rm -f conftest.er1
22749 cat conftest.err >&5
22750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22751 (exit $ac_status); } && {
22752 test -z "$ac_c_werror_flag" ||
22753 test ! -s conftest.err
22754 } && test -s conftest.$ac_objext; then
22755 ac_cv_have_decl_isfinite=yes
22756 else
22757 echo "$as_me: failed program was:" >&5
22758 sed 's/^/| /' conftest.$ac_ext >&5
22760 ac_cv_have_decl_isfinite=no
22763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22765 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isfinite" >&5
22766 echo "${ECHO_T}$ac_cv_have_decl_isfinite" >&6; }
22767 if test $ac_cv_have_decl_isfinite = yes; then
22769 cat >>confdefs.h <<_ACEOF
22770 #define HAVE_DECL_ISFINITE 1
22771 _ACEOF
22774 else
22775 cat >>confdefs.h <<_ACEOF
22776 #define HAVE_DECL_ISFINITE 0
22777 _ACEOF
22784 LIBS=$LIBS_SAVE
22786 # For multiprocessing module, check that sem_open
22787 # actually works. For FreeBSD versions <= 7.2,
22788 # the kernel module that provides POSIX semaphores
22789 # isn't loaded by default, so an attempt to call
22790 # sem_open results in a 'Signal 12' error.
22791 { echo "$as_me:$LINENO: checking whether POSIX semaphores are enabled" >&5
22792 echo $ECHO_N "checking whether POSIX semaphores are enabled... $ECHO_C" >&6; }
22793 if test "${ac_cv_posix_semaphores_enabled+set}" = set; then
22794 echo $ECHO_N "(cached) $ECHO_C" >&6
22795 else
22796 if test "$cross_compiling" = yes; then
22797 ac_cv_posix_semaphores_enabled=yes
22798 else
22799 cat >conftest.$ac_ext <<_ACEOF
22800 /* confdefs.h. */
22801 _ACEOF
22802 cat confdefs.h >>conftest.$ac_ext
22803 cat >>conftest.$ac_ext <<_ACEOF
22804 /* end confdefs.h. */
22806 #include <unistd.h>
22807 #include <fcntl.h>
22808 #include <stdio.h>
22809 #include <semaphore.h>
22810 #include <sys/stat.h>
22812 int main(void) {
22813 sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0);
22814 if (a == SEM_FAILED) {
22815 perror("sem_open");
22816 return 1;
22818 sem_close(a);
22819 sem_unlink("/autoconf");
22820 return 0;
22823 _ACEOF
22824 rm -f conftest$ac_exeext
22825 if { (ac_try="$ac_link"
22826 case "(($ac_try" in
22827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22828 *) ac_try_echo=$ac_try;;
22829 esac
22830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22831 (eval "$ac_link") 2>&5
22832 ac_status=$?
22833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22834 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22835 { (case "(($ac_try" in
22836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22837 *) ac_try_echo=$ac_try;;
22838 esac
22839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22840 (eval "$ac_try") 2>&5
22841 ac_status=$?
22842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22843 (exit $ac_status); }; }; then
22844 ac_cv_posix_semaphores_enabled=yes
22845 else
22846 echo "$as_me: program exited with status $ac_status" >&5
22847 echo "$as_me: failed program was:" >&5
22848 sed 's/^/| /' conftest.$ac_ext >&5
22850 ( exit $ac_status )
22851 ac_cv_posix_semaphores_enabled=no
22853 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22860 { echo "$as_me:$LINENO: result: $ac_cv_posix_semaphores_enabled" >&5
22861 echo "${ECHO_T}$ac_cv_posix_semaphores_enabled" >&6; }
22862 if test $ac_cv_posix_semaphores_enabled = no
22863 then
22865 cat >>confdefs.h <<\_ACEOF
22866 #define POSIX_SEMAPHORES_NOT_ENABLED 1
22867 _ACEOF
22871 # Multiprocessing check for broken sem_getvalue
22872 { echo "$as_me:$LINENO: checking for broken sem_getvalue" >&5
22873 echo $ECHO_N "checking for broken sem_getvalue... $ECHO_C" >&6; }
22874 if test "$cross_compiling" = yes; then
22875 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22876 See \`config.log' for more details." >&5
22877 echo "$as_me: error: cannot run test program while cross compiling
22878 See \`config.log' for more details." >&2;}
22879 { (exit 1); exit 1; }; }
22880 else
22881 cat >conftest.$ac_ext <<_ACEOF
22882 /* confdefs.h. */
22883 _ACEOF
22884 cat confdefs.h >>conftest.$ac_ext
22885 cat >>conftest.$ac_ext <<_ACEOF
22886 /* end confdefs.h. */
22888 #include <unistd.h>
22889 #include <fcntl.h>
22890 #include <stdio.h>
22891 #include <semaphore.h>
22892 #include <sys/stat.h>
22894 int main(void){
22895 sem_t *a = sem_open("/autocftw", O_CREAT, S_IRUSR|S_IWUSR, 0);
22896 int count;
22897 int res;
22898 if(a==SEM_FAILED){
22899 perror("sem_open");
22900 return 1;
22903 res = sem_getvalue(a, &count);
22904 sem_close(a);
22905 sem_unlink("/autocftw");
22906 return res==-1 ? 1 : 0;
22910 _ACEOF
22911 rm -f conftest$ac_exeext
22912 if { (ac_try="$ac_link"
22913 case "(($ac_try" in
22914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22915 *) ac_try_echo=$ac_try;;
22916 esac
22917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22918 (eval "$ac_link") 2>&5
22919 ac_status=$?
22920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22921 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22922 { (case "(($ac_try" in
22923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22924 *) ac_try_echo=$ac_try;;
22925 esac
22926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22927 (eval "$ac_try") 2>&5
22928 ac_status=$?
22929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22930 (exit $ac_status); }; }; then
22931 { echo "$as_me:$LINENO: result: no" >&5
22932 echo "${ECHO_T}no" >&6; }
22933 else
22934 echo "$as_me: program exited with status $ac_status" >&5
22935 echo "$as_me: failed program was:" >&5
22936 sed 's/^/| /' conftest.$ac_ext >&5
22938 ( exit $ac_status )
22939 { echo "$as_me:$LINENO: result: yes" >&5
22940 echo "${ECHO_T}yes" >&6; }
22942 cat >>confdefs.h <<\_ACEOF
22943 #define HAVE_BROKEN_SEM_GETVALUE 1
22944 _ACEOF
22948 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22953 # determine what size digit to use for Python's longs
22954 { echo "$as_me:$LINENO: checking digit size for Python's longs" >&5
22955 echo $ECHO_N "checking digit size for Python's longs... $ECHO_C" >&6; }
22956 # Check whether --enable-big-digits was given.
22957 if test "${enable_big_digits+set}" = set; then
22958 enableval=$enable_big_digits; case $enable_big_digits in
22959 yes)
22960 enable_big_digits=30 ;;
22962 enable_big_digits=15 ;;
22963 15|30)
22966 { { echo "$as_me:$LINENO: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&5
22967 echo "$as_me: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&2;}
22968 { (exit 1); exit 1; }; } ;;
22969 esac
22970 { echo "$as_me:$LINENO: result: $enable_big_digits" >&5
22971 echo "${ECHO_T}$enable_big_digits" >&6; }
22973 cat >>confdefs.h <<_ACEOF
22974 #define PYLONG_BITS_IN_DIGIT $enable_big_digits
22975 _ACEOF
22978 else
22979 { echo "$as_me:$LINENO: result: no value specified" >&5
22980 echo "${ECHO_T}no value specified" >&6; }
22984 # check for wchar.h
22985 if test "${ac_cv_header_wchar_h+set}" = set; then
22986 { echo "$as_me:$LINENO: checking for wchar.h" >&5
22987 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
22988 if test "${ac_cv_header_wchar_h+set}" = set; then
22989 echo $ECHO_N "(cached) $ECHO_C" >&6
22991 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
22992 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
22993 else
22994 # Is the header compilable?
22995 { echo "$as_me:$LINENO: checking wchar.h usability" >&5
22996 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6; }
22997 cat >conftest.$ac_ext <<_ACEOF
22998 /* confdefs.h. */
22999 _ACEOF
23000 cat confdefs.h >>conftest.$ac_ext
23001 cat >>conftest.$ac_ext <<_ACEOF
23002 /* end confdefs.h. */
23003 $ac_includes_default
23004 #include <wchar.h>
23005 _ACEOF
23006 rm -f conftest.$ac_objext
23007 if { (ac_try="$ac_compile"
23008 case "(($ac_try" in
23009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23010 *) ac_try_echo=$ac_try;;
23011 esac
23012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23013 (eval "$ac_compile") 2>conftest.er1
23014 ac_status=$?
23015 grep -v '^ *+' conftest.er1 >conftest.err
23016 rm -f conftest.er1
23017 cat conftest.err >&5
23018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23019 (exit $ac_status); } && {
23020 test -z "$ac_c_werror_flag" ||
23021 test ! -s conftest.err
23022 } && test -s conftest.$ac_objext; then
23023 ac_header_compiler=yes
23024 else
23025 echo "$as_me: failed program was:" >&5
23026 sed 's/^/| /' conftest.$ac_ext >&5
23028 ac_header_compiler=no
23031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23032 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23033 echo "${ECHO_T}$ac_header_compiler" >&6; }
23035 # Is the header present?
23036 { echo "$as_me:$LINENO: checking wchar.h presence" >&5
23037 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6; }
23038 cat >conftest.$ac_ext <<_ACEOF
23039 /* confdefs.h. */
23040 _ACEOF
23041 cat confdefs.h >>conftest.$ac_ext
23042 cat >>conftest.$ac_ext <<_ACEOF
23043 /* end confdefs.h. */
23044 #include <wchar.h>
23045 _ACEOF
23046 if { (ac_try="$ac_cpp conftest.$ac_ext"
23047 case "(($ac_try" in
23048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23049 *) ac_try_echo=$ac_try;;
23050 esac
23051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23052 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23053 ac_status=$?
23054 grep -v '^ *+' conftest.er1 >conftest.err
23055 rm -f conftest.er1
23056 cat conftest.err >&5
23057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23058 (exit $ac_status); } >/dev/null && {
23059 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23060 test ! -s conftest.err
23061 }; then
23062 ac_header_preproc=yes
23063 else
23064 echo "$as_me: failed program was:" >&5
23065 sed 's/^/| /' conftest.$ac_ext >&5
23067 ac_header_preproc=no
23070 rm -f conftest.err conftest.$ac_ext
23071 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23072 echo "${ECHO_T}$ac_header_preproc" >&6; }
23074 # So? What about this header?
23075 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23076 yes:no: )
23077 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
23078 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23079 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
23080 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
23081 ac_header_preproc=yes
23083 no:yes:* )
23084 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
23085 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
23086 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
23087 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
23088 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
23089 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
23090 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
23091 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
23092 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
23093 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
23094 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
23095 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
23096 ( cat <<\_ASBOX
23097 ## -------------------------------------- ##
23098 ## Report this to http://bugs.python.org/ ##
23099 ## -------------------------------------- ##
23100 _ASBOX
23101 ) | sed "s/^/$as_me: WARNING: /" >&2
23103 esac
23104 { echo "$as_me:$LINENO: checking for wchar.h" >&5
23105 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
23106 if test "${ac_cv_header_wchar_h+set}" = set; then
23107 echo $ECHO_N "(cached) $ECHO_C" >&6
23108 else
23109 ac_cv_header_wchar_h=$ac_header_preproc
23111 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
23112 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
23115 if test $ac_cv_header_wchar_h = yes; then
23118 cat >>confdefs.h <<\_ACEOF
23119 #define HAVE_WCHAR_H 1
23120 _ACEOF
23122 wchar_h="yes"
23124 else
23125 wchar_h="no"
23131 # determine wchar_t size
23132 if test "$wchar_h" = yes
23133 then
23134 { echo "$as_me:$LINENO: checking for wchar_t" >&5
23135 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
23136 if test "${ac_cv_type_wchar_t+set}" = set; then
23137 echo $ECHO_N "(cached) $ECHO_C" >&6
23138 else
23139 cat >conftest.$ac_ext <<_ACEOF
23140 /* confdefs.h. */
23141 _ACEOF
23142 cat confdefs.h >>conftest.$ac_ext
23143 cat >>conftest.$ac_ext <<_ACEOF
23144 /* end confdefs.h. */
23145 #include <wchar.h>
23147 typedef wchar_t ac__type_new_;
23149 main ()
23151 if ((ac__type_new_ *) 0)
23152 return 0;
23153 if (sizeof (ac__type_new_))
23154 return 0;
23156 return 0;
23158 _ACEOF
23159 rm -f conftest.$ac_objext
23160 if { (ac_try="$ac_compile"
23161 case "(($ac_try" in
23162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23163 *) ac_try_echo=$ac_try;;
23164 esac
23165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23166 (eval "$ac_compile") 2>conftest.er1
23167 ac_status=$?
23168 grep -v '^ *+' conftest.er1 >conftest.err
23169 rm -f conftest.er1
23170 cat conftest.err >&5
23171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23172 (exit $ac_status); } && {
23173 test -z "$ac_c_werror_flag" ||
23174 test ! -s conftest.err
23175 } && test -s conftest.$ac_objext; then
23176 ac_cv_type_wchar_t=yes
23177 else
23178 echo "$as_me: failed program was:" >&5
23179 sed 's/^/| /' conftest.$ac_ext >&5
23181 ac_cv_type_wchar_t=no
23184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23186 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
23187 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
23189 # The cast to long int works around a bug in the HP C Compiler
23190 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23191 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23192 # This bug is HP SR number 8606223364.
23193 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
23194 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
23195 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
23196 echo $ECHO_N "(cached) $ECHO_C" >&6
23197 else
23198 if test "$cross_compiling" = yes; then
23199 # Depending upon the size, compute the lo and hi bounds.
23200 cat >conftest.$ac_ext <<_ACEOF
23201 /* confdefs.h. */
23202 _ACEOF
23203 cat confdefs.h >>conftest.$ac_ext
23204 cat >>conftest.$ac_ext <<_ACEOF
23205 /* end confdefs.h. */
23206 #include <wchar.h>
23208 typedef wchar_t ac__type_sizeof_;
23210 main ()
23212 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23213 test_array [0] = 0
23216 return 0;
23218 _ACEOF
23219 rm -f conftest.$ac_objext
23220 if { (ac_try="$ac_compile"
23221 case "(($ac_try" in
23222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23223 *) ac_try_echo=$ac_try;;
23224 esac
23225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23226 (eval "$ac_compile") 2>conftest.er1
23227 ac_status=$?
23228 grep -v '^ *+' conftest.er1 >conftest.err
23229 rm -f conftest.er1
23230 cat conftest.err >&5
23231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23232 (exit $ac_status); } && {
23233 test -z "$ac_c_werror_flag" ||
23234 test ! -s conftest.err
23235 } && test -s conftest.$ac_objext; then
23236 ac_lo=0 ac_mid=0
23237 while :; do
23238 cat >conftest.$ac_ext <<_ACEOF
23239 /* confdefs.h. */
23240 _ACEOF
23241 cat confdefs.h >>conftest.$ac_ext
23242 cat >>conftest.$ac_ext <<_ACEOF
23243 /* end confdefs.h. */
23244 #include <wchar.h>
23246 typedef wchar_t ac__type_sizeof_;
23248 main ()
23250 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23251 test_array [0] = 0
23254 return 0;
23256 _ACEOF
23257 rm -f conftest.$ac_objext
23258 if { (ac_try="$ac_compile"
23259 case "(($ac_try" in
23260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23261 *) ac_try_echo=$ac_try;;
23262 esac
23263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23264 (eval "$ac_compile") 2>conftest.er1
23265 ac_status=$?
23266 grep -v '^ *+' conftest.er1 >conftest.err
23267 rm -f conftest.er1
23268 cat conftest.err >&5
23269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23270 (exit $ac_status); } && {
23271 test -z "$ac_c_werror_flag" ||
23272 test ! -s conftest.err
23273 } && test -s conftest.$ac_objext; then
23274 ac_hi=$ac_mid; break
23275 else
23276 echo "$as_me: failed program was:" >&5
23277 sed 's/^/| /' conftest.$ac_ext >&5
23279 ac_lo=`expr $ac_mid + 1`
23280 if test $ac_lo -le $ac_mid; then
23281 ac_lo= ac_hi=
23282 break
23284 ac_mid=`expr 2 '*' $ac_mid + 1`
23287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23288 done
23289 else
23290 echo "$as_me: failed program was:" >&5
23291 sed 's/^/| /' conftest.$ac_ext >&5
23293 cat >conftest.$ac_ext <<_ACEOF
23294 /* confdefs.h. */
23295 _ACEOF
23296 cat confdefs.h >>conftest.$ac_ext
23297 cat >>conftest.$ac_ext <<_ACEOF
23298 /* end confdefs.h. */
23299 #include <wchar.h>
23301 typedef wchar_t ac__type_sizeof_;
23303 main ()
23305 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23306 test_array [0] = 0
23309 return 0;
23311 _ACEOF
23312 rm -f conftest.$ac_objext
23313 if { (ac_try="$ac_compile"
23314 case "(($ac_try" in
23315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23316 *) ac_try_echo=$ac_try;;
23317 esac
23318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23319 (eval "$ac_compile") 2>conftest.er1
23320 ac_status=$?
23321 grep -v '^ *+' conftest.er1 >conftest.err
23322 rm -f conftest.er1
23323 cat conftest.err >&5
23324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23325 (exit $ac_status); } && {
23326 test -z "$ac_c_werror_flag" ||
23327 test ! -s conftest.err
23328 } && test -s conftest.$ac_objext; then
23329 ac_hi=-1 ac_mid=-1
23330 while :; do
23331 cat >conftest.$ac_ext <<_ACEOF
23332 /* confdefs.h. */
23333 _ACEOF
23334 cat confdefs.h >>conftest.$ac_ext
23335 cat >>conftest.$ac_ext <<_ACEOF
23336 /* end confdefs.h. */
23337 #include <wchar.h>
23339 typedef wchar_t ac__type_sizeof_;
23341 main ()
23343 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23344 test_array [0] = 0
23347 return 0;
23349 _ACEOF
23350 rm -f conftest.$ac_objext
23351 if { (ac_try="$ac_compile"
23352 case "(($ac_try" in
23353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23354 *) ac_try_echo=$ac_try;;
23355 esac
23356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23357 (eval "$ac_compile") 2>conftest.er1
23358 ac_status=$?
23359 grep -v '^ *+' conftest.er1 >conftest.err
23360 rm -f conftest.er1
23361 cat conftest.err >&5
23362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23363 (exit $ac_status); } && {
23364 test -z "$ac_c_werror_flag" ||
23365 test ! -s conftest.err
23366 } && test -s conftest.$ac_objext; then
23367 ac_lo=$ac_mid; break
23368 else
23369 echo "$as_me: failed program was:" >&5
23370 sed 's/^/| /' conftest.$ac_ext >&5
23372 ac_hi=`expr '(' $ac_mid ')' - 1`
23373 if test $ac_mid -le $ac_hi; then
23374 ac_lo= ac_hi=
23375 break
23377 ac_mid=`expr 2 '*' $ac_mid`
23380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23381 done
23382 else
23383 echo "$as_me: failed program was:" >&5
23384 sed 's/^/| /' conftest.$ac_ext >&5
23386 ac_lo= ac_hi=
23389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23393 # Binary search between lo and hi bounds.
23394 while test "x$ac_lo" != "x$ac_hi"; do
23395 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23396 cat >conftest.$ac_ext <<_ACEOF
23397 /* confdefs.h. */
23398 _ACEOF
23399 cat confdefs.h >>conftest.$ac_ext
23400 cat >>conftest.$ac_ext <<_ACEOF
23401 /* end confdefs.h. */
23402 #include <wchar.h>
23404 typedef wchar_t ac__type_sizeof_;
23406 main ()
23408 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23409 test_array [0] = 0
23412 return 0;
23414 _ACEOF
23415 rm -f conftest.$ac_objext
23416 if { (ac_try="$ac_compile"
23417 case "(($ac_try" in
23418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23419 *) ac_try_echo=$ac_try;;
23420 esac
23421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23422 (eval "$ac_compile") 2>conftest.er1
23423 ac_status=$?
23424 grep -v '^ *+' conftest.er1 >conftest.err
23425 rm -f conftest.er1
23426 cat conftest.err >&5
23427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23428 (exit $ac_status); } && {
23429 test -z "$ac_c_werror_flag" ||
23430 test ! -s conftest.err
23431 } && test -s conftest.$ac_objext; then
23432 ac_hi=$ac_mid
23433 else
23434 echo "$as_me: failed program was:" >&5
23435 sed 's/^/| /' conftest.$ac_ext >&5
23437 ac_lo=`expr '(' $ac_mid ')' + 1`
23440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23441 done
23442 case $ac_lo in
23443 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
23444 '') if test "$ac_cv_type_wchar_t" = yes; then
23445 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
23446 See \`config.log' for more details." >&5
23447 echo "$as_me: error: cannot compute sizeof (wchar_t)
23448 See \`config.log' for more details." >&2;}
23449 { (exit 77); exit 77; }; }
23450 else
23451 ac_cv_sizeof_wchar_t=0
23452 fi ;;
23453 esac
23454 else
23455 cat >conftest.$ac_ext <<_ACEOF
23456 /* confdefs.h. */
23457 _ACEOF
23458 cat confdefs.h >>conftest.$ac_ext
23459 cat >>conftest.$ac_ext <<_ACEOF
23460 /* end confdefs.h. */
23461 #include <wchar.h>
23463 typedef wchar_t ac__type_sizeof_;
23464 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23465 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23466 #include <stdio.h>
23467 #include <stdlib.h>
23469 main ()
23472 FILE *f = fopen ("conftest.val", "w");
23473 if (! f)
23474 return 1;
23475 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23477 long int i = longval ();
23478 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23479 return 1;
23480 fprintf (f, "%ld\n", i);
23482 else
23484 unsigned long int i = ulongval ();
23485 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23486 return 1;
23487 fprintf (f, "%lu\n", i);
23489 return ferror (f) || fclose (f) != 0;
23492 return 0;
23494 _ACEOF
23495 rm -f conftest$ac_exeext
23496 if { (ac_try="$ac_link"
23497 case "(($ac_try" in
23498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23499 *) ac_try_echo=$ac_try;;
23500 esac
23501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23502 (eval "$ac_link") 2>&5
23503 ac_status=$?
23504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23505 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23506 { (case "(($ac_try" in
23507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23508 *) ac_try_echo=$ac_try;;
23509 esac
23510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23511 (eval "$ac_try") 2>&5
23512 ac_status=$?
23513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23514 (exit $ac_status); }; }; then
23515 ac_cv_sizeof_wchar_t=`cat conftest.val`
23516 else
23517 echo "$as_me: program exited with status $ac_status" >&5
23518 echo "$as_me: failed program was:" >&5
23519 sed 's/^/| /' conftest.$ac_ext >&5
23521 ( exit $ac_status )
23522 if test "$ac_cv_type_wchar_t" = yes; then
23523 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
23524 See \`config.log' for more details." >&5
23525 echo "$as_me: error: cannot compute sizeof (wchar_t)
23526 See \`config.log' for more details." >&2;}
23527 { (exit 77); exit 77; }; }
23528 else
23529 ac_cv_sizeof_wchar_t=0
23532 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23534 rm -f conftest.val
23536 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
23537 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
23541 cat >>confdefs.h <<_ACEOF
23542 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
23543 _ACEOF
23548 { echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
23549 echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6; }
23550 have_ucs4_tcl=no
23551 cat >conftest.$ac_ext <<_ACEOF
23552 /* confdefs.h. */
23553 _ACEOF
23554 cat confdefs.h >>conftest.$ac_ext
23555 cat >>conftest.$ac_ext <<_ACEOF
23556 /* end confdefs.h. */
23558 #include <tcl.h>
23559 #if TCL_UTF_MAX != 6
23560 # error "NOT UCS4_TCL"
23561 #endif
23563 main ()
23567 return 0;
23569 _ACEOF
23570 rm -f conftest.$ac_objext
23571 if { (ac_try="$ac_compile"
23572 case "(($ac_try" in
23573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23574 *) ac_try_echo=$ac_try;;
23575 esac
23576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23577 (eval "$ac_compile") 2>conftest.er1
23578 ac_status=$?
23579 grep -v '^ *+' conftest.er1 >conftest.err
23580 rm -f conftest.er1
23581 cat conftest.err >&5
23582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23583 (exit $ac_status); } && {
23584 test -z "$ac_c_werror_flag" ||
23585 test ! -s conftest.err
23586 } && test -s conftest.$ac_objext; then
23589 cat >>confdefs.h <<\_ACEOF
23590 #define HAVE_UCS4_TCL 1
23591 _ACEOF
23593 have_ucs4_tcl=yes
23595 else
23596 echo "$as_me: failed program was:" >&5
23597 sed 's/^/| /' conftest.$ac_ext >&5
23602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23603 { echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
23604 echo "${ECHO_T}$have_ucs4_tcl" >&6; }
23606 # check whether wchar_t is signed or not
23607 if test "$wchar_h" = yes
23608 then
23609 # check whether wchar_t is signed or not
23610 { echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
23611 echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6; }
23612 if test "${ac_cv_wchar_t_signed+set}" = set; then
23613 echo $ECHO_N "(cached) $ECHO_C" >&6
23614 else
23616 if test "$cross_compiling" = yes; then
23617 ac_cv_wchar_t_signed=yes
23618 else
23619 cat >conftest.$ac_ext <<_ACEOF
23620 /* confdefs.h. */
23621 _ACEOF
23622 cat confdefs.h >>conftest.$ac_ext
23623 cat >>conftest.$ac_ext <<_ACEOF
23624 /* end confdefs.h. */
23626 #include <wchar.h>
23627 int main()
23629 /* Success: exit code 0 */
23630 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
23633 _ACEOF
23634 rm -f conftest$ac_exeext
23635 if { (ac_try="$ac_link"
23636 case "(($ac_try" in
23637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23638 *) ac_try_echo=$ac_try;;
23639 esac
23640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23641 (eval "$ac_link") 2>&5
23642 ac_status=$?
23643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23644 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23645 { (case "(($ac_try" in
23646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23647 *) ac_try_echo=$ac_try;;
23648 esac
23649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23650 (eval "$ac_try") 2>&5
23651 ac_status=$?
23652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23653 (exit $ac_status); }; }; then
23654 ac_cv_wchar_t_signed=yes
23655 else
23656 echo "$as_me: program exited with status $ac_status" >&5
23657 echo "$as_me: failed program was:" >&5
23658 sed 's/^/| /' conftest.$ac_ext >&5
23660 ( exit $ac_status )
23661 ac_cv_wchar_t_signed=no
23663 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23669 { echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
23670 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6; }
23673 { echo "$as_me:$LINENO: checking what type to use for str" >&5
23674 echo $ECHO_N "checking what type to use for str... $ECHO_C" >&6; }
23676 # Check whether --with-wide-unicode was given.
23677 if test "${with_wide_unicode+set}" = set; then
23678 withval=$with_wide_unicode;
23679 if test "$withval" != no
23680 then unicode_size="4"
23681 else unicode_size="2"
23684 else
23686 case "$have_ucs4_tcl" in
23687 yes) unicode_size="4" ;;
23688 *) unicode_size="2" ;;
23689 esac
23696 case "$unicode_size" in
23697 4) cat >>confdefs.h <<\_ACEOF
23698 #define Py_UNICODE_SIZE 4
23699 _ACEOF
23701 *) cat >>confdefs.h <<\_ACEOF
23702 #define Py_UNICODE_SIZE 2
23703 _ACEOF
23705 esac
23710 # wchar_t is only usable if it maps to an unsigned type
23711 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
23712 -a "$ac_cv_wchar_t_signed" = "no"
23713 then
23714 PY_UNICODE_TYPE="wchar_t"
23716 cat >>confdefs.h <<\_ACEOF
23717 #define HAVE_USABLE_WCHAR_T 1
23718 _ACEOF
23720 cat >>confdefs.h <<\_ACEOF
23721 #define PY_UNICODE_TYPE wchar_t
23722 _ACEOF
23724 elif test "$ac_cv_sizeof_short" = "$unicode_size"
23725 then
23726 PY_UNICODE_TYPE="unsigned short"
23727 cat >>confdefs.h <<\_ACEOF
23728 #define PY_UNICODE_TYPE unsigned short
23729 _ACEOF
23731 elif test "$ac_cv_sizeof_long" = "$unicode_size"
23732 then
23733 PY_UNICODE_TYPE="unsigned long"
23734 cat >>confdefs.h <<\_ACEOF
23735 #define PY_UNICODE_TYPE unsigned long
23736 _ACEOF
23738 else
23739 PY_UNICODE_TYPE="no type found"
23741 { echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
23742 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6; }
23744 # check for endianness
23745 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
23746 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
23747 if test "${ac_cv_c_bigendian+set}" = set; then
23748 echo $ECHO_N "(cached) $ECHO_C" >&6
23749 else
23750 # See if sys/param.h defines the BYTE_ORDER macro.
23751 cat >conftest.$ac_ext <<_ACEOF
23752 /* confdefs.h. */
23753 _ACEOF
23754 cat confdefs.h >>conftest.$ac_ext
23755 cat >>conftest.$ac_ext <<_ACEOF
23756 /* end confdefs.h. */
23757 #include <sys/types.h>
23758 #include <sys/param.h>
23761 main ()
23763 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
23764 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
23765 bogus endian macros
23766 #endif
23769 return 0;
23771 _ACEOF
23772 rm -f conftest.$ac_objext
23773 if { (ac_try="$ac_compile"
23774 case "(($ac_try" in
23775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23776 *) ac_try_echo=$ac_try;;
23777 esac
23778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23779 (eval "$ac_compile") 2>conftest.er1
23780 ac_status=$?
23781 grep -v '^ *+' conftest.er1 >conftest.err
23782 rm -f conftest.er1
23783 cat conftest.err >&5
23784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23785 (exit $ac_status); } && {
23786 test -z "$ac_c_werror_flag" ||
23787 test ! -s conftest.err
23788 } && test -s conftest.$ac_objext; then
23789 # It does; now see whether it defined to BIG_ENDIAN or not.
23790 cat >conftest.$ac_ext <<_ACEOF
23791 /* confdefs.h. */
23792 _ACEOF
23793 cat confdefs.h >>conftest.$ac_ext
23794 cat >>conftest.$ac_ext <<_ACEOF
23795 /* end confdefs.h. */
23796 #include <sys/types.h>
23797 #include <sys/param.h>
23800 main ()
23802 #if BYTE_ORDER != BIG_ENDIAN
23803 not big endian
23804 #endif
23807 return 0;
23809 _ACEOF
23810 rm -f conftest.$ac_objext
23811 if { (ac_try="$ac_compile"
23812 case "(($ac_try" in
23813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23814 *) ac_try_echo=$ac_try;;
23815 esac
23816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23817 (eval "$ac_compile") 2>conftest.er1
23818 ac_status=$?
23819 grep -v '^ *+' conftest.er1 >conftest.err
23820 rm -f conftest.er1
23821 cat conftest.err >&5
23822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23823 (exit $ac_status); } && {
23824 test -z "$ac_c_werror_flag" ||
23825 test ! -s conftest.err
23826 } && test -s conftest.$ac_objext; then
23827 ac_cv_c_bigendian=yes
23828 else
23829 echo "$as_me: failed program was:" >&5
23830 sed 's/^/| /' conftest.$ac_ext >&5
23832 ac_cv_c_bigendian=no
23835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23836 else
23837 echo "$as_me: failed program was:" >&5
23838 sed 's/^/| /' conftest.$ac_ext >&5
23840 # It does not; compile a test program.
23841 if test "$cross_compiling" = yes; then
23842 # try to guess the endianness by grepping values into an object file
23843 ac_cv_c_bigendian=unknown
23844 cat >conftest.$ac_ext <<_ACEOF
23845 /* confdefs.h. */
23846 _ACEOF
23847 cat confdefs.h >>conftest.$ac_ext
23848 cat >>conftest.$ac_ext <<_ACEOF
23849 /* end confdefs.h. */
23850 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23851 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23852 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
23853 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23854 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23855 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
23857 main ()
23859 _ascii (); _ebcdic ();
23861 return 0;
23863 _ACEOF
23864 rm -f conftest.$ac_objext
23865 if { (ac_try="$ac_compile"
23866 case "(($ac_try" in
23867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23868 *) ac_try_echo=$ac_try;;
23869 esac
23870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23871 (eval "$ac_compile") 2>conftest.er1
23872 ac_status=$?
23873 grep -v '^ *+' conftest.er1 >conftest.err
23874 rm -f conftest.er1
23875 cat conftest.err >&5
23876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23877 (exit $ac_status); } && {
23878 test -z "$ac_c_werror_flag" ||
23879 test ! -s conftest.err
23880 } && test -s conftest.$ac_objext; then
23881 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
23882 ac_cv_c_bigendian=yes
23884 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23885 if test "$ac_cv_c_bigendian" = unknown; then
23886 ac_cv_c_bigendian=no
23887 else
23888 # finding both strings is unlikely to happen, but who knows?
23889 ac_cv_c_bigendian=unknown
23892 else
23893 echo "$as_me: failed program was:" >&5
23894 sed 's/^/| /' conftest.$ac_ext >&5
23899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23900 else
23901 cat >conftest.$ac_ext <<_ACEOF
23902 /* confdefs.h. */
23903 _ACEOF
23904 cat confdefs.h >>conftest.$ac_ext
23905 cat >>conftest.$ac_ext <<_ACEOF
23906 /* end confdefs.h. */
23907 $ac_includes_default
23909 main ()
23912 /* Are we little or big endian? From Harbison&Steele. */
23913 union
23915 long int l;
23916 char c[sizeof (long int)];
23917 } u;
23918 u.l = 1;
23919 return u.c[sizeof (long int) - 1] == 1;
23922 return 0;
23924 _ACEOF
23925 rm -f conftest$ac_exeext
23926 if { (ac_try="$ac_link"
23927 case "(($ac_try" in
23928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23929 *) ac_try_echo=$ac_try;;
23930 esac
23931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23932 (eval "$ac_link") 2>&5
23933 ac_status=$?
23934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23935 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23936 { (case "(($ac_try" in
23937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23938 *) ac_try_echo=$ac_try;;
23939 esac
23940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23941 (eval "$ac_try") 2>&5
23942 ac_status=$?
23943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23944 (exit $ac_status); }; }; then
23945 ac_cv_c_bigendian=no
23946 else
23947 echo "$as_me: program exited with status $ac_status" >&5
23948 echo "$as_me: failed program was:" >&5
23949 sed 's/^/| /' conftest.$ac_ext >&5
23951 ( exit $ac_status )
23952 ac_cv_c_bigendian=yes
23954 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23962 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
23963 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
23964 case $ac_cv_c_bigendian in
23965 yes)
23967 cat >>confdefs.h <<\_ACEOF
23968 #define WORDS_BIGENDIAN 1
23969 _ACEOF
23974 { { echo "$as_me:$LINENO: error: unknown endianness
23975 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
23976 echo "$as_me: error: unknown endianness
23977 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
23978 { (exit 1); exit 1; }; } ;;
23979 esac
23982 # Check whether right shifting a negative integer extends the sign bit
23983 # or fills with zeros (like the Cray J90, according to Tim Peters).
23984 { echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
23985 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6; }
23986 if test "${ac_cv_rshift_extends_sign+set}" = set; then
23987 echo $ECHO_N "(cached) $ECHO_C" >&6
23988 else
23990 if test "$cross_compiling" = yes; then
23991 ac_cv_rshift_extends_sign=yes
23992 else
23993 cat >conftest.$ac_ext <<_ACEOF
23994 /* confdefs.h. */
23995 _ACEOF
23996 cat confdefs.h >>conftest.$ac_ext
23997 cat >>conftest.$ac_ext <<_ACEOF
23998 /* end confdefs.h. */
24000 int main()
24002 exit(((-1)>>3 == -1) ? 0 : 1);
24005 _ACEOF
24006 rm -f conftest$ac_exeext
24007 if { (ac_try="$ac_link"
24008 case "(($ac_try" in
24009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24010 *) ac_try_echo=$ac_try;;
24011 esac
24012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24013 (eval "$ac_link") 2>&5
24014 ac_status=$?
24015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24016 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24017 { (case "(($ac_try" in
24018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24019 *) ac_try_echo=$ac_try;;
24020 esac
24021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24022 (eval "$ac_try") 2>&5
24023 ac_status=$?
24024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24025 (exit $ac_status); }; }; then
24026 ac_cv_rshift_extends_sign=yes
24027 else
24028 echo "$as_me: program exited with status $ac_status" >&5
24029 echo "$as_me: failed program was:" >&5
24030 sed 's/^/| /' conftest.$ac_ext >&5
24032 ( exit $ac_status )
24033 ac_cv_rshift_extends_sign=no
24035 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24041 { echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
24042 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6; }
24043 if test "$ac_cv_rshift_extends_sign" = no
24044 then
24046 cat >>confdefs.h <<\_ACEOF
24047 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
24048 _ACEOF
24052 # check for getc_unlocked and related locking functions
24053 { echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
24054 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6; }
24055 if test "${ac_cv_have_getc_unlocked+set}" = set; then
24056 echo $ECHO_N "(cached) $ECHO_C" >&6
24057 else
24059 cat >conftest.$ac_ext <<_ACEOF
24060 /* confdefs.h. */
24061 _ACEOF
24062 cat confdefs.h >>conftest.$ac_ext
24063 cat >>conftest.$ac_ext <<_ACEOF
24064 /* end confdefs.h. */
24065 #include <stdio.h>
24067 main ()
24070 FILE *f = fopen("/dev/null", "r");
24071 flockfile(f);
24072 getc_unlocked(f);
24073 funlockfile(f);
24076 return 0;
24078 _ACEOF
24079 rm -f conftest.$ac_objext conftest$ac_exeext
24080 if { (ac_try="$ac_link"
24081 case "(($ac_try" in
24082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24083 *) ac_try_echo=$ac_try;;
24084 esac
24085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24086 (eval "$ac_link") 2>conftest.er1
24087 ac_status=$?
24088 grep -v '^ *+' conftest.er1 >conftest.err
24089 rm -f conftest.er1
24090 cat conftest.err >&5
24091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24092 (exit $ac_status); } && {
24093 test -z "$ac_c_werror_flag" ||
24094 test ! -s conftest.err
24095 } && test -s conftest$ac_exeext &&
24096 $as_test_x conftest$ac_exeext; then
24097 ac_cv_have_getc_unlocked=yes
24098 else
24099 echo "$as_me: failed program was:" >&5
24100 sed 's/^/| /' conftest.$ac_ext >&5
24102 ac_cv_have_getc_unlocked=no
24105 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24106 conftest$ac_exeext conftest.$ac_ext
24109 { echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
24110 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6; }
24111 if test "$ac_cv_have_getc_unlocked" = yes
24112 then
24114 cat >>confdefs.h <<\_ACEOF
24115 #define HAVE_GETC_UNLOCKED 1
24116 _ACEOF
24120 # check where readline lives
24121 # save the value of LIBS so we don't actually link Python with readline
24122 LIBS_no_readline=$LIBS
24124 # On some systems we need to link readline to a termcap compatible
24125 # library. NOTE: Keep the precedence of listed libraries synchronised
24126 # with setup.py.
24127 py_cv_lib_readline=no
24128 { echo "$as_me:$LINENO: checking how to link readline libs" >&5
24129 echo $ECHO_N "checking how to link readline libs... $ECHO_C" >&6; }
24130 for py_libtermcap in "" ncursesw ncurses curses termcap; do
24131 if test -z "$py_libtermcap"; then
24132 READLINE_LIBS="-lreadline"
24133 else
24134 READLINE_LIBS="-lreadline -l$py_libtermcap"
24136 LIBS="$READLINE_LIBS $LIBS_no_readline"
24137 cat >conftest.$ac_ext <<_ACEOF
24138 /* confdefs.h. */
24139 _ACEOF
24140 cat confdefs.h >>conftest.$ac_ext
24141 cat >>conftest.$ac_ext <<_ACEOF
24142 /* end confdefs.h. */
24144 /* Override any GCC internal prototype to avoid an error.
24145 Use char because int might match the return type of a GCC
24146 builtin and then its argument prototype would still apply. */
24147 #ifdef __cplusplus
24148 extern "C"
24149 #endif
24150 char readline ();
24152 main ()
24154 return readline ();
24156 return 0;
24158 _ACEOF
24159 rm -f conftest.$ac_objext conftest$ac_exeext
24160 if { (ac_try="$ac_link"
24161 case "(($ac_try" in
24162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24163 *) ac_try_echo=$ac_try;;
24164 esac
24165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24166 (eval "$ac_link") 2>conftest.er1
24167 ac_status=$?
24168 grep -v '^ *+' conftest.er1 >conftest.err
24169 rm -f conftest.er1
24170 cat conftest.err >&5
24171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24172 (exit $ac_status); } && {
24173 test -z "$ac_c_werror_flag" ||
24174 test ! -s conftest.err
24175 } && test -s conftest$ac_exeext &&
24176 $as_test_x conftest$ac_exeext; then
24177 py_cv_lib_readline=yes
24178 else
24179 echo "$as_me: failed program was:" >&5
24180 sed 's/^/| /' conftest.$ac_ext >&5
24185 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24186 conftest$ac_exeext conftest.$ac_ext
24187 if test $py_cv_lib_readline = yes; then
24188 break
24190 done
24191 # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts
24192 #AC_SUBST([READLINE_LIBS])
24193 if test $py_cv_lib_readline = no; then
24194 { echo "$as_me:$LINENO: result: none" >&5
24195 echo "${ECHO_T}none" >&6; }
24196 else
24197 { echo "$as_me:$LINENO: result: $READLINE_LIBS" >&5
24198 echo "${ECHO_T}$READLINE_LIBS" >&6; }
24200 cat >>confdefs.h <<\_ACEOF
24201 #define HAVE_LIBREADLINE 1
24202 _ACEOF
24206 # check for readline 2.1
24207 { echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
24208 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6; }
24209 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
24210 echo $ECHO_N "(cached) $ECHO_C" >&6
24211 else
24212 ac_check_lib_save_LIBS=$LIBS
24213 LIBS="-lreadline $READLINE_LIBS $LIBS"
24214 cat >conftest.$ac_ext <<_ACEOF
24215 /* confdefs.h. */
24216 _ACEOF
24217 cat confdefs.h >>conftest.$ac_ext
24218 cat >>conftest.$ac_ext <<_ACEOF
24219 /* end confdefs.h. */
24221 /* Override any GCC internal prototype to avoid an error.
24222 Use char because int might match the return type of a GCC
24223 builtin and then its argument prototype would still apply. */
24224 #ifdef __cplusplus
24225 extern "C"
24226 #endif
24227 char rl_callback_handler_install ();
24229 main ()
24231 return rl_callback_handler_install ();
24233 return 0;
24235 _ACEOF
24236 rm -f conftest.$ac_objext conftest$ac_exeext
24237 if { (ac_try="$ac_link"
24238 case "(($ac_try" in
24239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24240 *) ac_try_echo=$ac_try;;
24241 esac
24242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24243 (eval "$ac_link") 2>conftest.er1
24244 ac_status=$?
24245 grep -v '^ *+' conftest.er1 >conftest.err
24246 rm -f conftest.er1
24247 cat conftest.err >&5
24248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24249 (exit $ac_status); } && {
24250 test -z "$ac_c_werror_flag" ||
24251 test ! -s conftest.err
24252 } && test -s conftest$ac_exeext &&
24253 $as_test_x conftest$ac_exeext; then
24254 ac_cv_lib_readline_rl_callback_handler_install=yes
24255 else
24256 echo "$as_me: failed program was:" >&5
24257 sed 's/^/| /' conftest.$ac_ext >&5
24259 ac_cv_lib_readline_rl_callback_handler_install=no
24262 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24263 conftest$ac_exeext conftest.$ac_ext
24264 LIBS=$ac_check_lib_save_LIBS
24266 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
24267 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
24268 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
24270 cat >>confdefs.h <<\_ACEOF
24271 #define HAVE_RL_CALLBACK 1
24272 _ACEOF
24277 # check for readline 2.2
24278 cat >conftest.$ac_ext <<_ACEOF
24279 /* confdefs.h. */
24280 _ACEOF
24281 cat confdefs.h >>conftest.$ac_ext
24282 cat >>conftest.$ac_ext <<_ACEOF
24283 /* end confdefs.h. */
24284 #include <readline/readline.h>
24285 _ACEOF
24286 if { (ac_try="$ac_cpp conftest.$ac_ext"
24287 case "(($ac_try" in
24288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24289 *) ac_try_echo=$ac_try;;
24290 esac
24291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24292 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24293 ac_status=$?
24294 grep -v '^ *+' conftest.er1 >conftest.err
24295 rm -f conftest.er1
24296 cat conftest.err >&5
24297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24298 (exit $ac_status); } >/dev/null && {
24299 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24300 test ! -s conftest.err
24301 }; then
24302 have_readline=yes
24303 else
24304 echo "$as_me: failed program was:" >&5
24305 sed 's/^/| /' conftest.$ac_ext >&5
24307 have_readline=no
24310 rm -f conftest.err conftest.$ac_ext
24311 if test $have_readline = yes
24312 then
24313 cat >conftest.$ac_ext <<_ACEOF
24314 /* confdefs.h. */
24315 _ACEOF
24316 cat confdefs.h >>conftest.$ac_ext
24317 cat >>conftest.$ac_ext <<_ACEOF
24318 /* end confdefs.h. */
24319 #include <readline/readline.h>
24321 _ACEOF
24322 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24323 $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then
24325 cat >>confdefs.h <<\_ACEOF
24326 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
24327 _ACEOF
24330 rm -f -r conftest*
24332 cat >conftest.$ac_ext <<_ACEOF
24333 /* confdefs.h. */
24334 _ACEOF
24335 cat confdefs.h >>conftest.$ac_ext
24336 cat >>conftest.$ac_ext <<_ACEOF
24337 /* end confdefs.h. */
24338 #include <readline/readline.h>
24340 _ACEOF
24341 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24342 $EGREP "extern int rl_completion_suppress_append;" >/dev/null 2>&1; then
24344 cat >>confdefs.h <<\_ACEOF
24345 #define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1
24346 _ACEOF
24349 rm -f -r conftest*
24353 # check for readline 4.0
24354 { echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
24355 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6; }
24356 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
24357 echo $ECHO_N "(cached) $ECHO_C" >&6
24358 else
24359 ac_check_lib_save_LIBS=$LIBS
24360 LIBS="-lreadline $READLINE_LIBS $LIBS"
24361 cat >conftest.$ac_ext <<_ACEOF
24362 /* confdefs.h. */
24363 _ACEOF
24364 cat confdefs.h >>conftest.$ac_ext
24365 cat >>conftest.$ac_ext <<_ACEOF
24366 /* end confdefs.h. */
24368 /* Override any GCC internal prototype to avoid an error.
24369 Use char because int might match the return type of a GCC
24370 builtin and then its argument prototype would still apply. */
24371 #ifdef __cplusplus
24372 extern "C"
24373 #endif
24374 char rl_pre_input_hook ();
24376 main ()
24378 return rl_pre_input_hook ();
24380 return 0;
24382 _ACEOF
24383 rm -f conftest.$ac_objext conftest$ac_exeext
24384 if { (ac_try="$ac_link"
24385 case "(($ac_try" in
24386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24387 *) ac_try_echo=$ac_try;;
24388 esac
24389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24390 (eval "$ac_link") 2>conftest.er1
24391 ac_status=$?
24392 grep -v '^ *+' conftest.er1 >conftest.err
24393 rm -f conftest.er1
24394 cat conftest.err >&5
24395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24396 (exit $ac_status); } && {
24397 test -z "$ac_c_werror_flag" ||
24398 test ! -s conftest.err
24399 } && test -s conftest$ac_exeext &&
24400 $as_test_x conftest$ac_exeext; then
24401 ac_cv_lib_readline_rl_pre_input_hook=yes
24402 else
24403 echo "$as_me: failed program was:" >&5
24404 sed 's/^/| /' conftest.$ac_ext >&5
24406 ac_cv_lib_readline_rl_pre_input_hook=no
24409 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24410 conftest$ac_exeext conftest.$ac_ext
24411 LIBS=$ac_check_lib_save_LIBS
24413 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
24414 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6; }
24415 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
24417 cat >>confdefs.h <<\_ACEOF
24418 #define HAVE_RL_PRE_INPUT_HOOK 1
24419 _ACEOF
24424 # also in 4.0
24425 { echo "$as_me:$LINENO: checking for rl_completion_display_matches_hook in -lreadline" >&5
24426 echo $ECHO_N "checking for rl_completion_display_matches_hook in -lreadline... $ECHO_C" >&6; }
24427 if test "${ac_cv_lib_readline_rl_completion_display_matches_hook+set}" = set; then
24428 echo $ECHO_N "(cached) $ECHO_C" >&6
24429 else
24430 ac_check_lib_save_LIBS=$LIBS
24431 LIBS="-lreadline $READLINE_LIBS $LIBS"
24432 cat >conftest.$ac_ext <<_ACEOF
24433 /* confdefs.h. */
24434 _ACEOF
24435 cat confdefs.h >>conftest.$ac_ext
24436 cat >>conftest.$ac_ext <<_ACEOF
24437 /* end confdefs.h. */
24439 /* Override any GCC internal prototype to avoid an error.
24440 Use char because int might match the return type of a GCC
24441 builtin and then its argument prototype would still apply. */
24442 #ifdef __cplusplus
24443 extern "C"
24444 #endif
24445 char rl_completion_display_matches_hook ();
24447 main ()
24449 return rl_completion_display_matches_hook ();
24451 return 0;
24453 _ACEOF
24454 rm -f conftest.$ac_objext conftest$ac_exeext
24455 if { (ac_try="$ac_link"
24456 case "(($ac_try" in
24457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24458 *) ac_try_echo=$ac_try;;
24459 esac
24460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24461 (eval "$ac_link") 2>conftest.er1
24462 ac_status=$?
24463 grep -v '^ *+' conftest.er1 >conftest.err
24464 rm -f conftest.er1
24465 cat conftest.err >&5
24466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24467 (exit $ac_status); } && {
24468 test -z "$ac_c_werror_flag" ||
24469 test ! -s conftest.err
24470 } && test -s conftest$ac_exeext &&
24471 $as_test_x conftest$ac_exeext; then
24472 ac_cv_lib_readline_rl_completion_display_matches_hook=yes
24473 else
24474 echo "$as_me: failed program was:" >&5
24475 sed 's/^/| /' conftest.$ac_ext >&5
24477 ac_cv_lib_readline_rl_completion_display_matches_hook=no
24480 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24481 conftest$ac_exeext conftest.$ac_ext
24482 LIBS=$ac_check_lib_save_LIBS
24484 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5
24485 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; }
24486 if test $ac_cv_lib_readline_rl_completion_display_matches_hook = yes; then
24488 cat >>confdefs.h <<\_ACEOF
24489 #define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1
24490 _ACEOF
24495 # check for readline 4.2
24496 { echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
24497 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6; }
24498 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
24499 echo $ECHO_N "(cached) $ECHO_C" >&6
24500 else
24501 ac_check_lib_save_LIBS=$LIBS
24502 LIBS="-lreadline $READLINE_LIBS $LIBS"
24503 cat >conftest.$ac_ext <<_ACEOF
24504 /* confdefs.h. */
24505 _ACEOF
24506 cat confdefs.h >>conftest.$ac_ext
24507 cat >>conftest.$ac_ext <<_ACEOF
24508 /* end confdefs.h. */
24510 /* Override any GCC internal prototype to avoid an error.
24511 Use char because int might match the return type of a GCC
24512 builtin and then its argument prototype would still apply. */
24513 #ifdef __cplusplus
24514 extern "C"
24515 #endif
24516 char rl_completion_matches ();
24518 main ()
24520 return rl_completion_matches ();
24522 return 0;
24524 _ACEOF
24525 rm -f conftest.$ac_objext conftest$ac_exeext
24526 if { (ac_try="$ac_link"
24527 case "(($ac_try" in
24528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24529 *) ac_try_echo=$ac_try;;
24530 esac
24531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24532 (eval "$ac_link") 2>conftest.er1
24533 ac_status=$?
24534 grep -v '^ *+' conftest.er1 >conftest.err
24535 rm -f conftest.er1
24536 cat conftest.err >&5
24537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24538 (exit $ac_status); } && {
24539 test -z "$ac_c_werror_flag" ||
24540 test ! -s conftest.err
24541 } && test -s conftest$ac_exeext &&
24542 $as_test_x conftest$ac_exeext; then
24543 ac_cv_lib_readline_rl_completion_matches=yes
24544 else
24545 echo "$as_me: failed program was:" >&5
24546 sed 's/^/| /' conftest.$ac_ext >&5
24548 ac_cv_lib_readline_rl_completion_matches=no
24551 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24552 conftest$ac_exeext conftest.$ac_ext
24553 LIBS=$ac_check_lib_save_LIBS
24555 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
24556 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6; }
24557 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
24559 cat >>confdefs.h <<\_ACEOF
24560 #define HAVE_RL_COMPLETION_MATCHES 1
24561 _ACEOF
24566 # also in readline 4.2
24567 cat >conftest.$ac_ext <<_ACEOF
24568 /* confdefs.h. */
24569 _ACEOF
24570 cat confdefs.h >>conftest.$ac_ext
24571 cat >>conftest.$ac_ext <<_ACEOF
24572 /* end confdefs.h. */
24573 #include <readline/readline.h>
24574 _ACEOF
24575 if { (ac_try="$ac_cpp conftest.$ac_ext"
24576 case "(($ac_try" in
24577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24578 *) ac_try_echo=$ac_try;;
24579 esac
24580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24581 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24582 ac_status=$?
24583 grep -v '^ *+' conftest.er1 >conftest.err
24584 rm -f conftest.er1
24585 cat conftest.err >&5
24586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24587 (exit $ac_status); } >/dev/null && {
24588 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24589 test ! -s conftest.err
24590 }; then
24591 have_readline=yes
24592 else
24593 echo "$as_me: failed program was:" >&5
24594 sed 's/^/| /' conftest.$ac_ext >&5
24596 have_readline=no
24599 rm -f conftest.err conftest.$ac_ext
24600 if test $have_readline = yes
24601 then
24602 cat >conftest.$ac_ext <<_ACEOF
24603 /* confdefs.h. */
24604 _ACEOF
24605 cat confdefs.h >>conftest.$ac_ext
24606 cat >>conftest.$ac_ext <<_ACEOF
24607 /* end confdefs.h. */
24608 #include <readline/readline.h>
24610 _ACEOF
24611 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24612 $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then
24614 cat >>confdefs.h <<\_ACEOF
24615 #define HAVE_RL_CATCH_SIGNAL 1
24616 _ACEOF
24619 rm -f -r conftest*
24623 # End of readline checks: restore LIBS
24624 LIBS=$LIBS_no_readline
24626 { echo "$as_me:$LINENO: checking for broken nice()" >&5
24627 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6; }
24628 if test "${ac_cv_broken_nice+set}" = set; then
24629 echo $ECHO_N "(cached) $ECHO_C" >&6
24630 else
24632 if test "$cross_compiling" = yes; then
24633 ac_cv_broken_nice=no
24634 else
24635 cat >conftest.$ac_ext <<_ACEOF
24636 /* confdefs.h. */
24637 _ACEOF
24638 cat confdefs.h >>conftest.$ac_ext
24639 cat >>conftest.$ac_ext <<_ACEOF
24640 /* end confdefs.h. */
24642 int main()
24644 int val1 = nice(1);
24645 if (val1 != -1 && val1 == nice(2))
24646 exit(0);
24647 exit(1);
24650 _ACEOF
24651 rm -f conftest$ac_exeext
24652 if { (ac_try="$ac_link"
24653 case "(($ac_try" in
24654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24655 *) ac_try_echo=$ac_try;;
24656 esac
24657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24658 (eval "$ac_link") 2>&5
24659 ac_status=$?
24660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24661 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24662 { (case "(($ac_try" in
24663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24664 *) ac_try_echo=$ac_try;;
24665 esac
24666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24667 (eval "$ac_try") 2>&5
24668 ac_status=$?
24669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24670 (exit $ac_status); }; }; then
24671 ac_cv_broken_nice=yes
24672 else
24673 echo "$as_me: program exited with status $ac_status" >&5
24674 echo "$as_me: failed program was:" >&5
24675 sed 's/^/| /' conftest.$ac_ext >&5
24677 ( exit $ac_status )
24678 ac_cv_broken_nice=no
24680 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24686 { echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
24687 echo "${ECHO_T}$ac_cv_broken_nice" >&6; }
24688 if test "$ac_cv_broken_nice" = yes
24689 then
24691 cat >>confdefs.h <<\_ACEOF
24692 #define HAVE_BROKEN_NICE 1
24693 _ACEOF
24697 { echo "$as_me:$LINENO: checking for broken poll()" >&5
24698 echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6; }
24699 if test "$cross_compiling" = yes; then
24700 ac_cv_broken_poll=no
24701 else
24702 cat >conftest.$ac_ext <<_ACEOF
24703 /* confdefs.h. */
24704 _ACEOF
24705 cat confdefs.h >>conftest.$ac_ext
24706 cat >>conftest.$ac_ext <<_ACEOF
24707 /* end confdefs.h. */
24709 #include <poll.h>
24711 int main (void)
24713 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
24715 close (42);
24717 int poll_test = poll (&poll_struct, 1, 0);
24719 if (poll_test < 0)
24721 exit(0);
24723 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
24725 exit(0);
24727 else
24729 exit(1);
24733 _ACEOF
24734 rm -f conftest$ac_exeext
24735 if { (ac_try="$ac_link"
24736 case "(($ac_try" in
24737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24738 *) ac_try_echo=$ac_try;;
24739 esac
24740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24741 (eval "$ac_link") 2>&5
24742 ac_status=$?
24743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24744 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24745 { (case "(($ac_try" in
24746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24747 *) ac_try_echo=$ac_try;;
24748 esac
24749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24750 (eval "$ac_try") 2>&5
24751 ac_status=$?
24752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24753 (exit $ac_status); }; }; then
24754 ac_cv_broken_poll=yes
24755 else
24756 echo "$as_me: program exited with status $ac_status" >&5
24757 echo "$as_me: failed program was:" >&5
24758 sed 's/^/| /' conftest.$ac_ext >&5
24760 ( exit $ac_status )
24761 ac_cv_broken_poll=no
24763 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24767 { echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
24768 echo "${ECHO_T}$ac_cv_broken_poll" >&6; }
24769 if test "$ac_cv_broken_poll" = yes
24770 then
24772 cat >>confdefs.h <<\_ACEOF
24773 #define HAVE_BROKEN_POLL 1
24774 _ACEOF
24778 # Before we can test tzset, we need to check if struct tm has a tm_zone
24779 # (which is not required by ISO C or UNIX spec) and/or if we support
24780 # tzname[]
24781 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
24782 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
24783 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
24784 echo $ECHO_N "(cached) $ECHO_C" >&6
24785 else
24786 cat >conftest.$ac_ext <<_ACEOF
24787 /* confdefs.h. */
24788 _ACEOF
24789 cat confdefs.h >>conftest.$ac_ext
24790 cat >>conftest.$ac_ext <<_ACEOF
24791 /* end confdefs.h. */
24792 #include <sys/types.h>
24793 #include <$ac_cv_struct_tm>
24797 main ()
24799 static struct tm ac_aggr;
24800 if (ac_aggr.tm_zone)
24801 return 0;
24803 return 0;
24805 _ACEOF
24806 rm -f conftest.$ac_objext
24807 if { (ac_try="$ac_compile"
24808 case "(($ac_try" in
24809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24810 *) ac_try_echo=$ac_try;;
24811 esac
24812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24813 (eval "$ac_compile") 2>conftest.er1
24814 ac_status=$?
24815 grep -v '^ *+' conftest.er1 >conftest.err
24816 rm -f conftest.er1
24817 cat conftest.err >&5
24818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24819 (exit $ac_status); } && {
24820 test -z "$ac_c_werror_flag" ||
24821 test ! -s conftest.err
24822 } && test -s conftest.$ac_objext; then
24823 ac_cv_member_struct_tm_tm_zone=yes
24824 else
24825 echo "$as_me: failed program was:" >&5
24826 sed 's/^/| /' conftest.$ac_ext >&5
24828 cat >conftest.$ac_ext <<_ACEOF
24829 /* confdefs.h. */
24830 _ACEOF
24831 cat confdefs.h >>conftest.$ac_ext
24832 cat >>conftest.$ac_ext <<_ACEOF
24833 /* end confdefs.h. */
24834 #include <sys/types.h>
24835 #include <$ac_cv_struct_tm>
24839 main ()
24841 static struct tm ac_aggr;
24842 if (sizeof ac_aggr.tm_zone)
24843 return 0;
24845 return 0;
24847 _ACEOF
24848 rm -f conftest.$ac_objext
24849 if { (ac_try="$ac_compile"
24850 case "(($ac_try" in
24851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24852 *) ac_try_echo=$ac_try;;
24853 esac
24854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24855 (eval "$ac_compile") 2>conftest.er1
24856 ac_status=$?
24857 grep -v '^ *+' conftest.er1 >conftest.err
24858 rm -f conftest.er1
24859 cat conftest.err >&5
24860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24861 (exit $ac_status); } && {
24862 test -z "$ac_c_werror_flag" ||
24863 test ! -s conftest.err
24864 } && test -s conftest.$ac_objext; then
24865 ac_cv_member_struct_tm_tm_zone=yes
24866 else
24867 echo "$as_me: failed program was:" >&5
24868 sed 's/^/| /' conftest.$ac_ext >&5
24870 ac_cv_member_struct_tm_tm_zone=no
24873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24878 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
24879 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
24880 if test $ac_cv_member_struct_tm_tm_zone = yes; then
24882 cat >>confdefs.h <<_ACEOF
24883 #define HAVE_STRUCT_TM_TM_ZONE 1
24884 _ACEOF
24889 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
24891 cat >>confdefs.h <<\_ACEOF
24892 #define HAVE_TM_ZONE 1
24893 _ACEOF
24895 else
24896 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
24897 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
24898 if test "${ac_cv_have_decl_tzname+set}" = set; then
24899 echo $ECHO_N "(cached) $ECHO_C" >&6
24900 else
24901 cat >conftest.$ac_ext <<_ACEOF
24902 /* confdefs.h. */
24903 _ACEOF
24904 cat confdefs.h >>conftest.$ac_ext
24905 cat >>conftest.$ac_ext <<_ACEOF
24906 /* end confdefs.h. */
24907 #include <time.h>
24910 main ()
24912 #ifndef tzname
24913 (void) tzname;
24914 #endif
24917 return 0;
24919 _ACEOF
24920 rm -f conftest.$ac_objext
24921 if { (ac_try="$ac_compile"
24922 case "(($ac_try" in
24923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24924 *) ac_try_echo=$ac_try;;
24925 esac
24926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24927 (eval "$ac_compile") 2>conftest.er1
24928 ac_status=$?
24929 grep -v '^ *+' conftest.er1 >conftest.err
24930 rm -f conftest.er1
24931 cat conftest.err >&5
24932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24933 (exit $ac_status); } && {
24934 test -z "$ac_c_werror_flag" ||
24935 test ! -s conftest.err
24936 } && test -s conftest.$ac_objext; then
24937 ac_cv_have_decl_tzname=yes
24938 else
24939 echo "$as_me: failed program was:" >&5
24940 sed 's/^/| /' conftest.$ac_ext >&5
24942 ac_cv_have_decl_tzname=no
24945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24947 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
24948 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
24949 if test $ac_cv_have_decl_tzname = yes; then
24951 cat >>confdefs.h <<_ACEOF
24952 #define HAVE_DECL_TZNAME 1
24953 _ACEOF
24956 else
24957 cat >>confdefs.h <<_ACEOF
24958 #define HAVE_DECL_TZNAME 0
24959 _ACEOF
24965 { echo "$as_me:$LINENO: checking for tzname" >&5
24966 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
24967 if test "${ac_cv_var_tzname+set}" = set; then
24968 echo $ECHO_N "(cached) $ECHO_C" >&6
24969 else
24970 cat >conftest.$ac_ext <<_ACEOF
24971 /* confdefs.h. */
24972 _ACEOF
24973 cat confdefs.h >>conftest.$ac_ext
24974 cat >>conftest.$ac_ext <<_ACEOF
24975 /* end confdefs.h. */
24976 #include <time.h>
24977 #if !HAVE_DECL_TZNAME
24978 extern char *tzname[];
24979 #endif
24982 main ()
24984 return tzname[0][0];
24986 return 0;
24988 _ACEOF
24989 rm -f conftest.$ac_objext conftest$ac_exeext
24990 if { (ac_try="$ac_link"
24991 case "(($ac_try" in
24992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24993 *) ac_try_echo=$ac_try;;
24994 esac
24995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24996 (eval "$ac_link") 2>conftest.er1
24997 ac_status=$?
24998 grep -v '^ *+' conftest.er1 >conftest.err
24999 rm -f conftest.er1
25000 cat conftest.err >&5
25001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25002 (exit $ac_status); } && {
25003 test -z "$ac_c_werror_flag" ||
25004 test ! -s conftest.err
25005 } && test -s conftest$ac_exeext &&
25006 $as_test_x conftest$ac_exeext; then
25007 ac_cv_var_tzname=yes
25008 else
25009 echo "$as_me: failed program was:" >&5
25010 sed 's/^/| /' conftest.$ac_ext >&5
25012 ac_cv_var_tzname=no
25015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25016 conftest$ac_exeext conftest.$ac_ext
25018 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
25019 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
25020 if test $ac_cv_var_tzname = yes; then
25022 cat >>confdefs.h <<\_ACEOF
25023 #define HAVE_TZNAME 1
25024 _ACEOF
25030 # check tzset(3) exists and works like we expect it to
25031 { echo "$as_me:$LINENO: checking for working tzset()" >&5
25032 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6; }
25033 if test "${ac_cv_working_tzset+set}" = set; then
25034 echo $ECHO_N "(cached) $ECHO_C" >&6
25035 else
25037 if test "$cross_compiling" = yes; then
25038 ac_cv_working_tzset=no
25039 else
25040 cat >conftest.$ac_ext <<_ACEOF
25041 /* confdefs.h. */
25042 _ACEOF
25043 cat confdefs.h >>conftest.$ac_ext
25044 cat >>conftest.$ac_ext <<_ACEOF
25045 /* end confdefs.h. */
25047 #include <stdlib.h>
25048 #include <time.h>
25049 #include <string.h>
25051 #if HAVE_TZNAME
25052 extern char *tzname[];
25053 #endif
25055 int main()
25057 /* Note that we need to ensure that not only does tzset(3)
25058 do 'something' with localtime, but it works as documented
25059 in the library reference and as expected by the test suite.
25060 This includes making sure that tzname is set properly if
25061 tm->tm_zone does not exist since it is the alternative way
25062 of getting timezone info.
25064 Red Hat 6.2 doesn't understand the southern hemisphere
25065 after New Year's Day.
25068 time_t groundhogday = 1044144000; /* GMT-based */
25069 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
25071 putenv("TZ=UTC+0");
25072 tzset();
25073 if (localtime(&groundhogday)->tm_hour != 0)
25074 exit(1);
25075 #if HAVE_TZNAME
25076 /* For UTC, tzname[1] is sometimes "", sometimes " " */
25077 if (strcmp(tzname[0], "UTC") ||
25078 (tzname[1][0] != 0 && tzname[1][0] != ' '))
25079 exit(1);
25080 #endif
25082 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
25083 tzset();
25084 if (localtime(&groundhogday)->tm_hour != 19)
25085 exit(1);
25086 #if HAVE_TZNAME
25087 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
25088 exit(1);
25089 #endif
25091 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
25092 tzset();
25093 if (localtime(&groundhogday)->tm_hour != 11)
25094 exit(1);
25095 #if HAVE_TZNAME
25096 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
25097 exit(1);
25098 #endif
25100 #if HAVE_STRUCT_TM_TM_ZONE
25101 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
25102 exit(1);
25103 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
25104 exit(1);
25105 #endif
25107 exit(0);
25110 _ACEOF
25111 rm -f conftest$ac_exeext
25112 if { (ac_try="$ac_link"
25113 case "(($ac_try" in
25114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25115 *) ac_try_echo=$ac_try;;
25116 esac
25117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25118 (eval "$ac_link") 2>&5
25119 ac_status=$?
25120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25121 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25122 { (case "(($ac_try" in
25123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25124 *) ac_try_echo=$ac_try;;
25125 esac
25126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25127 (eval "$ac_try") 2>&5
25128 ac_status=$?
25129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25130 (exit $ac_status); }; }; then
25131 ac_cv_working_tzset=yes
25132 else
25133 echo "$as_me: program exited with status $ac_status" >&5
25134 echo "$as_me: failed program was:" >&5
25135 sed 's/^/| /' conftest.$ac_ext >&5
25137 ( exit $ac_status )
25138 ac_cv_working_tzset=no
25140 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25146 { echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
25147 echo "${ECHO_T}$ac_cv_working_tzset" >&6; }
25148 if test "$ac_cv_working_tzset" = yes
25149 then
25151 cat >>confdefs.h <<\_ACEOF
25152 #define HAVE_WORKING_TZSET 1
25153 _ACEOF
25157 # Look for subsecond timestamps in struct stat
25158 { echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
25159 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6; }
25160 if test "${ac_cv_stat_tv_nsec+set}" = set; then
25161 echo $ECHO_N "(cached) $ECHO_C" >&6
25162 else
25163 cat >conftest.$ac_ext <<_ACEOF
25164 /* confdefs.h. */
25165 _ACEOF
25166 cat confdefs.h >>conftest.$ac_ext
25167 cat >>conftest.$ac_ext <<_ACEOF
25168 /* end confdefs.h. */
25169 #include <sys/stat.h>
25171 main ()
25174 struct stat st;
25175 st.st_mtim.tv_nsec = 1;
25178 return 0;
25180 _ACEOF
25181 rm -f conftest.$ac_objext
25182 if { (ac_try="$ac_compile"
25183 case "(($ac_try" in
25184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25185 *) ac_try_echo=$ac_try;;
25186 esac
25187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25188 (eval "$ac_compile") 2>conftest.er1
25189 ac_status=$?
25190 grep -v '^ *+' conftest.er1 >conftest.err
25191 rm -f conftest.er1
25192 cat conftest.err >&5
25193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25194 (exit $ac_status); } && {
25195 test -z "$ac_c_werror_flag" ||
25196 test ! -s conftest.err
25197 } && test -s conftest.$ac_objext; then
25198 ac_cv_stat_tv_nsec=yes
25199 else
25200 echo "$as_me: failed program was:" >&5
25201 sed 's/^/| /' conftest.$ac_ext >&5
25203 ac_cv_stat_tv_nsec=no
25206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25209 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
25210 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6; }
25211 if test "$ac_cv_stat_tv_nsec" = yes
25212 then
25214 cat >>confdefs.h <<\_ACEOF
25215 #define HAVE_STAT_TV_NSEC 1
25216 _ACEOF
25220 # Look for BSD style subsecond timestamps in struct stat
25221 { echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
25222 echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6; }
25223 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
25224 echo $ECHO_N "(cached) $ECHO_C" >&6
25225 else
25226 cat >conftest.$ac_ext <<_ACEOF
25227 /* confdefs.h. */
25228 _ACEOF
25229 cat confdefs.h >>conftest.$ac_ext
25230 cat >>conftest.$ac_ext <<_ACEOF
25231 /* end confdefs.h. */
25232 #include <sys/stat.h>
25234 main ()
25237 struct stat st;
25238 st.st_mtimespec.tv_nsec = 1;
25241 return 0;
25243 _ACEOF
25244 rm -f conftest.$ac_objext
25245 if { (ac_try="$ac_compile"
25246 case "(($ac_try" in
25247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25248 *) ac_try_echo=$ac_try;;
25249 esac
25250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25251 (eval "$ac_compile") 2>conftest.er1
25252 ac_status=$?
25253 grep -v '^ *+' conftest.er1 >conftest.err
25254 rm -f conftest.er1
25255 cat conftest.err >&5
25256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25257 (exit $ac_status); } && {
25258 test -z "$ac_c_werror_flag" ||
25259 test ! -s conftest.err
25260 } && test -s conftest.$ac_objext; then
25261 ac_cv_stat_tv_nsec2=yes
25262 else
25263 echo "$as_me: failed program was:" >&5
25264 sed 's/^/| /' conftest.$ac_ext >&5
25266 ac_cv_stat_tv_nsec2=no
25269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25272 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
25273 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6; }
25274 if test "$ac_cv_stat_tv_nsec2" = yes
25275 then
25277 cat >>confdefs.h <<\_ACEOF
25278 #define HAVE_STAT_TV_NSEC2 1
25279 _ACEOF
25283 # On HP/UX 11.0, mvwdelch is a block with a return statement
25284 { echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
25285 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6; }
25286 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
25287 echo $ECHO_N "(cached) $ECHO_C" >&6
25288 else
25289 cat >conftest.$ac_ext <<_ACEOF
25290 /* confdefs.h. */
25291 _ACEOF
25292 cat confdefs.h >>conftest.$ac_ext
25293 cat >>conftest.$ac_ext <<_ACEOF
25294 /* end confdefs.h. */
25295 #include <curses.h>
25297 main ()
25300 int rtn;
25301 rtn = mvwdelch(0,0,0);
25304 return 0;
25306 _ACEOF
25307 rm -f conftest.$ac_objext
25308 if { (ac_try="$ac_compile"
25309 case "(($ac_try" in
25310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25311 *) ac_try_echo=$ac_try;;
25312 esac
25313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25314 (eval "$ac_compile") 2>conftest.er1
25315 ac_status=$?
25316 grep -v '^ *+' conftest.er1 >conftest.err
25317 rm -f conftest.er1
25318 cat conftest.err >&5
25319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25320 (exit $ac_status); } && {
25321 test -z "$ac_c_werror_flag" ||
25322 test ! -s conftest.err
25323 } && test -s conftest.$ac_objext; then
25324 ac_cv_mvwdelch_is_expression=yes
25325 else
25326 echo "$as_me: failed program was:" >&5
25327 sed 's/^/| /' conftest.$ac_ext >&5
25329 ac_cv_mvwdelch_is_expression=no
25332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25335 { echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
25336 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6; }
25338 if test "$ac_cv_mvwdelch_is_expression" = yes
25339 then
25341 cat >>confdefs.h <<\_ACEOF
25342 #define MVWDELCH_IS_EXPRESSION 1
25343 _ACEOF
25347 { echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
25348 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6; }
25349 if test "${ac_cv_window_has_flags+set}" = set; then
25350 echo $ECHO_N "(cached) $ECHO_C" >&6
25351 else
25352 cat >conftest.$ac_ext <<_ACEOF
25353 /* confdefs.h. */
25354 _ACEOF
25355 cat confdefs.h >>conftest.$ac_ext
25356 cat >>conftest.$ac_ext <<_ACEOF
25357 /* end confdefs.h. */
25358 #include <curses.h>
25360 main ()
25363 WINDOW *w;
25364 w->_flags = 0;
25367 return 0;
25369 _ACEOF
25370 rm -f conftest.$ac_objext
25371 if { (ac_try="$ac_compile"
25372 case "(($ac_try" in
25373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25374 *) ac_try_echo=$ac_try;;
25375 esac
25376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25377 (eval "$ac_compile") 2>conftest.er1
25378 ac_status=$?
25379 grep -v '^ *+' conftest.er1 >conftest.err
25380 rm -f conftest.er1
25381 cat conftest.err >&5
25382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25383 (exit $ac_status); } && {
25384 test -z "$ac_c_werror_flag" ||
25385 test ! -s conftest.err
25386 } && test -s conftest.$ac_objext; then
25387 ac_cv_window_has_flags=yes
25388 else
25389 echo "$as_me: failed program was:" >&5
25390 sed 's/^/| /' conftest.$ac_ext >&5
25392 ac_cv_window_has_flags=no
25395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25398 { echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
25399 echo "${ECHO_T}$ac_cv_window_has_flags" >&6; }
25402 if test "$ac_cv_window_has_flags" = yes
25403 then
25405 cat >>confdefs.h <<\_ACEOF
25406 #define WINDOW_HAS_FLAGS 1
25407 _ACEOF
25411 { echo "$as_me:$LINENO: checking for is_term_resized" >&5
25412 echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6; }
25413 cat >conftest.$ac_ext <<_ACEOF
25414 /* confdefs.h. */
25415 _ACEOF
25416 cat confdefs.h >>conftest.$ac_ext
25417 cat >>conftest.$ac_ext <<_ACEOF
25418 /* end confdefs.h. */
25419 #include <curses.h>
25421 main ()
25423 void *x=is_term_resized
25425 return 0;
25427 _ACEOF
25428 rm -f conftest.$ac_objext
25429 if { (ac_try="$ac_compile"
25430 case "(($ac_try" in
25431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25432 *) ac_try_echo=$ac_try;;
25433 esac
25434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25435 (eval "$ac_compile") 2>conftest.er1
25436 ac_status=$?
25437 grep -v '^ *+' conftest.er1 >conftest.err
25438 rm -f conftest.er1
25439 cat conftest.err >&5
25440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25441 (exit $ac_status); } && {
25442 test -z "$ac_c_werror_flag" ||
25443 test ! -s conftest.err
25444 } && test -s conftest.$ac_objext; then
25446 cat >>confdefs.h <<\_ACEOF
25447 #define HAVE_CURSES_IS_TERM_RESIZED 1
25448 _ACEOF
25450 { echo "$as_me:$LINENO: result: yes" >&5
25451 echo "${ECHO_T}yes" >&6; }
25452 else
25453 echo "$as_me: failed program was:" >&5
25454 sed 's/^/| /' conftest.$ac_ext >&5
25456 { echo "$as_me:$LINENO: result: no" >&5
25457 echo "${ECHO_T}no" >&6; }
25461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25463 { echo "$as_me:$LINENO: checking for resize_term" >&5
25464 echo $ECHO_N "checking for resize_term... $ECHO_C" >&6; }
25465 cat >conftest.$ac_ext <<_ACEOF
25466 /* confdefs.h. */
25467 _ACEOF
25468 cat confdefs.h >>conftest.$ac_ext
25469 cat >>conftest.$ac_ext <<_ACEOF
25470 /* end confdefs.h. */
25471 #include <curses.h>
25473 main ()
25475 void *x=resize_term
25477 return 0;
25479 _ACEOF
25480 rm -f conftest.$ac_objext
25481 if { (ac_try="$ac_compile"
25482 case "(($ac_try" in
25483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25484 *) ac_try_echo=$ac_try;;
25485 esac
25486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25487 (eval "$ac_compile") 2>conftest.er1
25488 ac_status=$?
25489 grep -v '^ *+' conftest.er1 >conftest.err
25490 rm -f conftest.er1
25491 cat conftest.err >&5
25492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25493 (exit $ac_status); } && {
25494 test -z "$ac_c_werror_flag" ||
25495 test ! -s conftest.err
25496 } && test -s conftest.$ac_objext; then
25498 cat >>confdefs.h <<\_ACEOF
25499 #define HAVE_CURSES_RESIZE_TERM 1
25500 _ACEOF
25502 { echo "$as_me:$LINENO: result: yes" >&5
25503 echo "${ECHO_T}yes" >&6; }
25504 else
25505 echo "$as_me: failed program was:" >&5
25506 sed 's/^/| /' conftest.$ac_ext >&5
25508 { echo "$as_me:$LINENO: result: no" >&5
25509 echo "${ECHO_T}no" >&6; }
25513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25515 { echo "$as_me:$LINENO: checking for resizeterm" >&5
25516 echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6; }
25517 cat >conftest.$ac_ext <<_ACEOF
25518 /* confdefs.h. */
25519 _ACEOF
25520 cat confdefs.h >>conftest.$ac_ext
25521 cat >>conftest.$ac_ext <<_ACEOF
25522 /* end confdefs.h. */
25523 #include <curses.h>
25525 main ()
25527 void *x=resizeterm
25529 return 0;
25531 _ACEOF
25532 rm -f conftest.$ac_objext
25533 if { (ac_try="$ac_compile"
25534 case "(($ac_try" in
25535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25536 *) ac_try_echo=$ac_try;;
25537 esac
25538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25539 (eval "$ac_compile") 2>conftest.er1
25540 ac_status=$?
25541 grep -v '^ *+' conftest.er1 >conftest.err
25542 rm -f conftest.er1
25543 cat conftest.err >&5
25544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25545 (exit $ac_status); } && {
25546 test -z "$ac_c_werror_flag" ||
25547 test ! -s conftest.err
25548 } && test -s conftest.$ac_objext; then
25550 cat >>confdefs.h <<\_ACEOF
25551 #define HAVE_CURSES_RESIZETERM 1
25552 _ACEOF
25554 { echo "$as_me:$LINENO: result: yes" >&5
25555 echo "${ECHO_T}yes" >&6; }
25556 else
25557 echo "$as_me: failed program was:" >&5
25558 sed 's/^/| /' conftest.$ac_ext >&5
25560 { echo "$as_me:$LINENO: result: no" >&5
25561 echo "${ECHO_T}no" >&6; }
25565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25567 { echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
25568 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6; }
25570 if test -r /dev/ptmx
25571 then
25572 { echo "$as_me:$LINENO: result: yes" >&5
25573 echo "${ECHO_T}yes" >&6; }
25575 cat >>confdefs.h <<\_ACEOF
25576 #define HAVE_DEV_PTMX 1
25577 _ACEOF
25579 else
25580 { echo "$as_me:$LINENO: result: no" >&5
25581 echo "${ECHO_T}no" >&6; }
25584 { echo "$as_me:$LINENO: checking for /dev/ptc" >&5
25585 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; }
25587 if test -r /dev/ptc
25588 then
25589 { echo "$as_me:$LINENO: result: yes" >&5
25590 echo "${ECHO_T}yes" >&6; }
25592 cat >>confdefs.h <<\_ACEOF
25593 #define HAVE_DEV_PTC 1
25594 _ACEOF
25596 else
25597 { echo "$as_me:$LINENO: result: no" >&5
25598 echo "${ECHO_T}no" >&6; }
25601 { echo "$as_me:$LINENO: checking for %zd printf() format support" >&5
25602 echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6; }
25603 if test "$cross_compiling" = yes; then
25604 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25605 See \`config.log' for more details." >&5
25606 echo "$as_me: error: cannot run test program while cross compiling
25607 See \`config.log' for more details." >&2;}
25608 { (exit 1); exit 1; }; }
25609 else
25610 cat >conftest.$ac_ext <<_ACEOF
25611 /* confdefs.h. */
25612 _ACEOF
25613 cat confdefs.h >>conftest.$ac_ext
25614 cat >>conftest.$ac_ext <<_ACEOF
25615 /* end confdefs.h. */
25616 #include <stdio.h>
25617 #include <stddef.h>
25618 #include <string.h>
25620 #ifdef HAVE_SYS_TYPES_H
25621 #include <sys/types.h>
25622 #endif
25624 #ifdef HAVE_SSIZE_T
25625 typedef ssize_t Py_ssize_t;
25626 #elif SIZEOF_VOID_P == SIZEOF_LONG
25627 typedef long Py_ssize_t;
25628 #else
25629 typedef int Py_ssize_t;
25630 #endif
25632 int main()
25634 char buffer[256];
25636 if(sprintf(buffer, "%zd", (size_t)123) < 0)
25637 return 1;
25639 if (strcmp(buffer, "123"))
25640 return 1;
25642 if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
25643 return 1;
25645 if (strcmp(buffer, "-123"))
25646 return 1;
25648 return 0;
25650 _ACEOF
25651 rm -f conftest$ac_exeext
25652 if { (ac_try="$ac_link"
25653 case "(($ac_try" in
25654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25655 *) ac_try_echo=$ac_try;;
25656 esac
25657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25658 (eval "$ac_link") 2>&5
25659 ac_status=$?
25660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25661 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25662 { (case "(($ac_try" in
25663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25664 *) ac_try_echo=$ac_try;;
25665 esac
25666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25667 (eval "$ac_try") 2>&5
25668 ac_status=$?
25669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25670 (exit $ac_status); }; }; then
25671 { echo "$as_me:$LINENO: result: yes" >&5
25672 echo "${ECHO_T}yes" >&6; }
25674 cat >>confdefs.h <<\_ACEOF
25675 #define PY_FORMAT_SIZE_T "z"
25676 _ACEOF
25678 else
25679 echo "$as_me: program exited with status $ac_status" >&5
25680 echo "$as_me: failed program was:" >&5
25681 sed 's/^/| /' conftest.$ac_ext >&5
25683 ( exit $ac_status )
25684 { echo "$as_me:$LINENO: result: no" >&5
25685 echo "${ECHO_T}no" >&6; }
25687 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25692 { echo "$as_me:$LINENO: checking for socklen_t" >&5
25693 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
25694 if test "${ac_cv_type_socklen_t+set}" = set; then
25695 echo $ECHO_N "(cached) $ECHO_C" >&6
25696 else
25697 cat >conftest.$ac_ext <<_ACEOF
25698 /* confdefs.h. */
25699 _ACEOF
25700 cat confdefs.h >>conftest.$ac_ext
25701 cat >>conftest.$ac_ext <<_ACEOF
25702 /* end confdefs.h. */
25704 #ifdef HAVE_SYS_TYPES_H
25705 #include <sys/types.h>
25706 #endif
25707 #ifdef HAVE_SYS_SOCKET_H
25708 #include <sys/socket.h>
25709 #endif
25712 typedef socklen_t ac__type_new_;
25714 main ()
25716 if ((ac__type_new_ *) 0)
25717 return 0;
25718 if (sizeof (ac__type_new_))
25719 return 0;
25721 return 0;
25723 _ACEOF
25724 rm -f conftest.$ac_objext
25725 if { (ac_try="$ac_compile"
25726 case "(($ac_try" in
25727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25728 *) ac_try_echo=$ac_try;;
25729 esac
25730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25731 (eval "$ac_compile") 2>conftest.er1
25732 ac_status=$?
25733 grep -v '^ *+' conftest.er1 >conftest.err
25734 rm -f conftest.er1
25735 cat conftest.err >&5
25736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25737 (exit $ac_status); } && {
25738 test -z "$ac_c_werror_flag" ||
25739 test ! -s conftest.err
25740 } && test -s conftest.$ac_objext; then
25741 ac_cv_type_socklen_t=yes
25742 else
25743 echo "$as_me: failed program was:" >&5
25744 sed 's/^/| /' conftest.$ac_ext >&5
25746 ac_cv_type_socklen_t=no
25749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25751 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
25752 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
25753 if test $ac_cv_type_socklen_t = yes; then
25755 else
25757 cat >>confdefs.h <<\_ACEOF
25758 #define socklen_t int
25759 _ACEOF
25764 { echo "$as_me:$LINENO: checking for broken mbstowcs" >&5
25765 echo $ECHO_N "checking for broken mbstowcs... $ECHO_C" >&6; }
25766 if test "$cross_compiling" = yes; then
25767 ac_cv_broken_mbstowcs=no
25768 else
25769 cat >conftest.$ac_ext <<_ACEOF
25770 /* confdefs.h. */
25771 _ACEOF
25772 cat confdefs.h >>conftest.$ac_ext
25773 cat >>conftest.$ac_ext <<_ACEOF
25774 /* end confdefs.h. */
25776 #include<stdlib.h>
25777 int main() {
25778 size_t len = -1;
25779 const char *str = "text";
25780 len = mbstowcs(NULL, str, 0);
25781 return (len != 4);
25784 _ACEOF
25785 rm -f conftest$ac_exeext
25786 if { (ac_try="$ac_link"
25787 case "(($ac_try" in
25788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25789 *) ac_try_echo=$ac_try;;
25790 esac
25791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25792 (eval "$ac_link") 2>&5
25793 ac_status=$?
25794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25795 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25796 { (case "(($ac_try" in
25797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25798 *) ac_try_echo=$ac_try;;
25799 esac
25800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25801 (eval "$ac_try") 2>&5
25802 ac_status=$?
25803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25804 (exit $ac_status); }; }; then
25805 ac_cv_broken_mbstowcs=no
25806 else
25807 echo "$as_me: program exited with status $ac_status" >&5
25808 echo "$as_me: failed program was:" >&5
25809 sed 's/^/| /' conftest.$ac_ext >&5
25811 ( exit $ac_status )
25812 ac_cv_broken_mbstowcs=yes
25814 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25818 { echo "$as_me:$LINENO: result: $ac_cv_broken_mbstowcs" >&5
25819 echo "${ECHO_T}$ac_cv_broken_mbstowcs" >&6; }
25820 if test "$ac_cv_broken_mbstowcs" = yes
25821 then
25823 cat >>confdefs.h <<\_ACEOF
25824 #define HAVE_BROKEN_MBSTOWCS 1
25825 _ACEOF
25829 # Check for --with-computed-gotos
25830 { echo "$as_me:$LINENO: checking for --with-computed-gotos" >&5
25831 echo $ECHO_N "checking for --with-computed-gotos... $ECHO_C" >&6; }
25833 # Check whether --with-computed-gotos was given.
25834 if test "${with_computed_gotos+set}" = set; then
25835 withval=$with_computed_gotos;
25836 if test "$withval" != no
25837 then
25839 cat >>confdefs.h <<\_ACEOF
25840 #define USE_COMPUTED_GOTOS 1
25841 _ACEOF
25843 { echo "$as_me:$LINENO: result: yes" >&5
25844 echo "${ECHO_T}yes" >&6; }
25845 else { echo "$as_me:$LINENO: result: no" >&5
25846 echo "${ECHO_T}no" >&6; }
25848 else
25849 { echo "$as_me:$LINENO: result: no" >&5
25850 echo "${ECHO_T}no" >&6; }
25854 if test $ac_sys_system = Darwin
25855 then
25856 LIBS="$LIBS -framework CoreFoundation"
25863 for h in `(cd $srcdir;echo Python/thread_*.h)`
25865 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
25866 done
25869 SRCDIRS="Parser Grammar Objects Python Modules Mac"
25870 { echo "$as_me:$LINENO: checking for build directories" >&5
25871 echo $ECHO_N "checking for build directories... $ECHO_C" >&6; }
25872 for dir in $SRCDIRS; do
25873 if test ! -d $dir; then
25874 mkdir $dir
25876 done
25877 { echo "$as_me:$LINENO: result: done" >&5
25878 echo "${ECHO_T}done" >&6; }
25880 # generate output files
25881 ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config Misc/python.pc"
25883 cat >confcache <<\_ACEOF
25884 # This file is a shell script that caches the results of configure
25885 # tests run on this system so they can be shared between configure
25886 # scripts and configure runs, see configure's option --config-cache.
25887 # It is not useful on other systems. If it contains results you don't
25888 # want to keep, you may remove or edit it.
25890 # config.status only pays attention to the cache file if you give it
25891 # the --recheck option to rerun configure.
25893 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25894 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25895 # following values.
25897 _ACEOF
25899 # The following way of writing the cache mishandles newlines in values,
25900 # but we know of no workaround that is simple, portable, and efficient.
25901 # So, we kill variables containing newlines.
25902 # Ultrix sh set writes to stderr and can't be redirected directly,
25903 # and sets the high bit in the cache file unless we assign to the vars.
25905 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25906 eval ac_val=\$$ac_var
25907 case $ac_val in #(
25908 *${as_nl}*)
25909 case $ac_var in #(
25910 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25911 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25912 esac
25913 case $ac_var in #(
25914 _ | IFS | as_nl) ;; #(
25915 *) $as_unset $ac_var ;;
25916 esac ;;
25917 esac
25918 done
25920 (set) 2>&1 |
25921 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25922 *${as_nl}ac_space=\ *)
25923 # `set' does not quote correctly, so add quotes (double-quote
25924 # substitution turns \\\\ into \\, and sed turns \\ into \).
25925 sed -n \
25926 "s/'/'\\\\''/g;
25927 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25928 ;; #(
25930 # `set' quotes correctly as required by POSIX, so do not add quotes.
25931 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25933 esac |
25934 sort
25936 sed '
25937 /^ac_cv_env_/b end
25938 t clear
25939 :clear
25940 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25941 t end
25942 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25943 :end' >>confcache
25944 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25945 if test -w "$cache_file"; then
25946 test "x$cache_file" != "x/dev/null" &&
25947 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
25948 echo "$as_me: updating cache $cache_file" >&6;}
25949 cat confcache >$cache_file
25950 else
25951 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25952 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25955 rm -f confcache
25957 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25958 # Let make expand exec_prefix.
25959 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25961 DEFS=-DHAVE_CONFIG_H
25963 ac_libobjs=
25964 ac_ltlibobjs=
25965 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25966 # 1. Remove the extension, and $U if already installed.
25967 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25968 ac_i=`echo "$ac_i" | sed "$ac_script"`
25969 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25970 # will be set to the directory where LIBOBJS objects are built.
25971 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25972 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
25973 done
25974 LIBOBJS=$ac_libobjs
25976 LTLIBOBJS=$ac_ltlibobjs
25980 : ${CONFIG_STATUS=./config.status}
25981 ac_clean_files_save=$ac_clean_files
25982 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25983 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25984 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25985 cat >$CONFIG_STATUS <<_ACEOF
25986 #! $SHELL
25987 # Generated by $as_me.
25988 # Run this file to recreate the current configuration.
25989 # Compiler output produced by configure, useful for debugging
25990 # configure, is in config.log if it exists.
25992 debug=false
25993 ac_cs_recheck=false
25994 ac_cs_silent=false
25995 SHELL=\${CONFIG_SHELL-$SHELL}
25996 _ACEOF
25998 cat >>$CONFIG_STATUS <<\_ACEOF
25999 ## --------------------- ##
26000 ## M4sh Initialization. ##
26001 ## --------------------- ##
26003 # Be more Bourne compatible
26004 DUALCASE=1; export DUALCASE # for MKS sh
26005 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26006 emulate sh
26007 NULLCMD=:
26008 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26009 # is contrary to our usage. Disable this feature.
26010 alias -g '${1+"$@"}'='"$@"'
26011 setopt NO_GLOB_SUBST
26012 else
26013 case `(set -o) 2>/dev/null` in
26014 *posix*) set -o posix ;;
26015 esac
26022 # PATH needs CR
26023 # Avoid depending upon Character Ranges.
26024 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26025 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26026 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26027 as_cr_digits='0123456789'
26028 as_cr_alnum=$as_cr_Letters$as_cr_digits
26030 # The user is always right.
26031 if test "${PATH_SEPARATOR+set}" != set; then
26032 echo "#! /bin/sh" >conf$$.sh
26033 echo "exit 0" >>conf$$.sh
26034 chmod +x conf$$.sh
26035 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26036 PATH_SEPARATOR=';'
26037 else
26038 PATH_SEPARATOR=:
26040 rm -f conf$$.sh
26043 # Support unset when possible.
26044 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26045 as_unset=unset
26046 else
26047 as_unset=false
26051 # IFS
26052 # We need space, tab and new line, in precisely that order. Quoting is
26053 # there to prevent editors from complaining about space-tab.
26054 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26055 # splitting by setting IFS to empty value.)
26056 as_nl='
26058 IFS=" "" $as_nl"
26060 # Find who we are. Look in the path if we contain no directory separator.
26061 case $0 in
26062 *[\\/]* ) as_myself=$0 ;;
26063 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26064 for as_dir in $PATH
26066 IFS=$as_save_IFS
26067 test -z "$as_dir" && as_dir=.
26068 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26069 done
26070 IFS=$as_save_IFS
26073 esac
26074 # We did not find ourselves, most probably we were run as `sh COMMAND'
26075 # in which case we are not to be found in the path.
26076 if test "x$as_myself" = x; then
26077 as_myself=$0
26079 if test ! -f "$as_myself"; then
26080 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26081 { (exit 1); exit 1; }
26084 # Work around bugs in pre-3.0 UWIN ksh.
26085 for as_var in ENV MAIL MAILPATH
26086 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26087 done
26088 PS1='$ '
26089 PS2='> '
26090 PS4='+ '
26092 # NLS nuisances.
26093 for as_var in \
26094 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26095 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26096 LC_TELEPHONE LC_TIME
26098 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26099 eval $as_var=C; export $as_var
26100 else
26101 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26103 done
26105 # Required to use basename.
26106 if expr a : '\(a\)' >/dev/null 2>&1 &&
26107 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26108 as_expr=expr
26109 else
26110 as_expr=false
26113 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26114 as_basename=basename
26115 else
26116 as_basename=false
26120 # Name of the executable.
26121 as_me=`$as_basename -- "$0" ||
26122 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26123 X"$0" : 'X\(//\)$' \| \
26124 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26125 echo X/"$0" |
26126 sed '/^.*\/\([^/][^/]*\)\/*$/{
26127 s//\1/
26130 /^X\/\(\/\/\)$/{
26131 s//\1/
26134 /^X\/\(\/\).*/{
26135 s//\1/
26138 s/.*/./; q'`
26140 # CDPATH.
26141 $as_unset CDPATH
26145 as_lineno_1=$LINENO
26146 as_lineno_2=$LINENO
26147 test "x$as_lineno_1" != "x$as_lineno_2" &&
26148 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26150 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26151 # uniformly replaced by the line number. The first 'sed' inserts a
26152 # line-number line after each line using $LINENO; the second 'sed'
26153 # does the real work. The second script uses 'N' to pair each
26154 # line-number line with the line containing $LINENO, and appends
26155 # trailing '-' during substitution so that $LINENO is not a special
26156 # case at line end.
26157 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26158 # scripts with optimization help from Paolo Bonzini. Blame Lee
26159 # E. McMahon (1931-1989) for sed's syntax. :-)
26160 sed -n '
26162 /[$]LINENO/=
26163 ' <$as_myself |
26164 sed '
26165 s/[$]LINENO.*/&-/
26166 t lineno
26168 :lineno
26170 :loop
26171 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26172 t loop
26173 s/-\n.*//
26174 ' >$as_me.lineno &&
26175 chmod +x "$as_me.lineno" ||
26176 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26177 { (exit 1); exit 1; }; }
26179 # Don't try to exec as it changes $[0], causing all sort of problems
26180 # (the dirname of $[0] is not the place where we might find the
26181 # original and so on. Autoconf is especially sensitive to this).
26182 . "./$as_me.lineno"
26183 # Exit status is that of the last command.
26184 exit
26188 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26189 as_dirname=dirname
26190 else
26191 as_dirname=false
26194 ECHO_C= ECHO_N= ECHO_T=
26195 case `echo -n x` in
26196 -n*)
26197 case `echo 'x\c'` in
26198 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26199 *) ECHO_C='\c';;
26200 esac;;
26202 ECHO_N='-n';;
26203 esac
26205 if expr a : '\(a\)' >/dev/null 2>&1 &&
26206 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26207 as_expr=expr
26208 else
26209 as_expr=false
26212 rm -f conf$$ conf$$.exe conf$$.file
26213 if test -d conf$$.dir; then
26214 rm -f conf$$.dir/conf$$.file
26215 else
26216 rm -f conf$$.dir
26217 mkdir conf$$.dir
26219 echo >conf$$.file
26220 if ln -s conf$$.file conf$$ 2>/dev/null; then
26221 as_ln_s='ln -s'
26222 # ... but there are two gotchas:
26223 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26224 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26225 # In both cases, we have to default to `cp -p'.
26226 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26227 as_ln_s='cp -p'
26228 elif ln conf$$.file conf$$ 2>/dev/null; then
26229 as_ln_s=ln
26230 else
26231 as_ln_s='cp -p'
26233 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26234 rmdir conf$$.dir 2>/dev/null
26236 if mkdir -p . 2>/dev/null; then
26237 as_mkdir_p=:
26238 else
26239 test -d ./-p && rmdir ./-p
26240 as_mkdir_p=false
26243 if test -x / >/dev/null 2>&1; then
26244 as_test_x='test -x'
26245 else
26246 if ls -dL / >/dev/null 2>&1; then
26247 as_ls_L_option=L
26248 else
26249 as_ls_L_option=
26251 as_test_x='
26252 eval sh -c '\''
26253 if test -d "$1"; then
26254 test -d "$1/.";
26255 else
26256 case $1 in
26257 -*)set "./$1";;
26258 esac;
26259 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26260 ???[sx]*):;;*)false;;esac;fi
26261 '\'' sh
26264 as_executable_p=$as_test_x
26266 # Sed expression to map a string onto a valid CPP name.
26267 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26269 # Sed expression to map a string onto a valid variable name.
26270 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26273 exec 6>&1
26275 # Save the log message, to keep $[0] and so on meaningful, and to
26276 # report actual input values of CONFIG_FILES etc. instead of their
26277 # values after options handling.
26278 ac_log="
26279 This file was extended by python $as_me 3.1, which was
26280 generated by GNU Autoconf 2.61. Invocation command line was
26282 CONFIG_FILES = $CONFIG_FILES
26283 CONFIG_HEADERS = $CONFIG_HEADERS
26284 CONFIG_LINKS = $CONFIG_LINKS
26285 CONFIG_COMMANDS = $CONFIG_COMMANDS
26286 $ $0 $@
26288 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26291 _ACEOF
26293 cat >>$CONFIG_STATUS <<_ACEOF
26294 # Files that config.status was made for.
26295 config_files="$ac_config_files"
26296 config_headers="$ac_config_headers"
26298 _ACEOF
26300 cat >>$CONFIG_STATUS <<\_ACEOF
26301 ac_cs_usage="\
26302 \`$as_me' instantiates files from templates according to the
26303 current configuration.
26305 Usage: $0 [OPTIONS] [FILE]...
26307 -h, --help print this help, then exit
26308 -V, --version print version number and configuration settings, then exit
26309 -q, --quiet do not print progress messages
26310 -d, --debug don't remove temporary files
26311 --recheck update $as_me by reconfiguring in the same conditions
26312 --file=FILE[:TEMPLATE]
26313 instantiate the configuration file FILE
26314 --header=FILE[:TEMPLATE]
26315 instantiate the configuration header FILE
26317 Configuration files:
26318 $config_files
26320 Configuration headers:
26321 $config_headers
26323 Report bugs to <bug-autoconf@gnu.org>."
26325 _ACEOF
26326 cat >>$CONFIG_STATUS <<_ACEOF
26327 ac_cs_version="\\
26328 python config.status 3.1
26329 configured by $0, generated by GNU Autoconf 2.61,
26330 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26332 Copyright (C) 2006 Free Software Foundation, Inc.
26333 This config.status script is free software; the Free Software Foundation
26334 gives unlimited permission to copy, distribute and modify it."
26336 ac_pwd='$ac_pwd'
26337 srcdir='$srcdir'
26338 INSTALL='$INSTALL'
26339 _ACEOF
26341 cat >>$CONFIG_STATUS <<\_ACEOF
26342 # If no file are specified by the user, then we need to provide default
26343 # value. By we need to know if files were specified by the user.
26344 ac_need_defaults=:
26345 while test $# != 0
26347 case $1 in
26348 --*=*)
26349 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26350 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26351 ac_shift=:
26354 ac_option=$1
26355 ac_optarg=$2
26356 ac_shift=shift
26358 esac
26360 case $ac_option in
26361 # Handling of the options.
26362 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26363 ac_cs_recheck=: ;;
26364 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26365 echo "$ac_cs_version"; exit ;;
26366 --debug | --debu | --deb | --de | --d | -d )
26367 debug=: ;;
26368 --file | --fil | --fi | --f )
26369 $ac_shift
26370 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26371 ac_need_defaults=false;;
26372 --header | --heade | --head | --hea )
26373 $ac_shift
26374 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26375 ac_need_defaults=false;;
26376 --he | --h)
26377 # Conflict between --help and --header
26378 { echo "$as_me: error: ambiguous option: $1
26379 Try \`$0 --help' for more information." >&2
26380 { (exit 1); exit 1; }; };;
26381 --help | --hel | -h )
26382 echo "$ac_cs_usage"; exit ;;
26383 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26384 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26385 ac_cs_silent=: ;;
26387 # This is an error.
26388 -*) { echo "$as_me: error: unrecognized option: $1
26389 Try \`$0 --help' for more information." >&2
26390 { (exit 1); exit 1; }; } ;;
26392 *) ac_config_targets="$ac_config_targets $1"
26393 ac_need_defaults=false ;;
26395 esac
26396 shift
26397 done
26399 ac_configure_extra_args=
26401 if $ac_cs_silent; then
26402 exec 6>/dev/null
26403 ac_configure_extra_args="$ac_configure_extra_args --silent"
26406 _ACEOF
26407 cat >>$CONFIG_STATUS <<_ACEOF
26408 if \$ac_cs_recheck; then
26409 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26410 CONFIG_SHELL=$SHELL
26411 export CONFIG_SHELL
26412 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26415 _ACEOF
26416 cat >>$CONFIG_STATUS <<\_ACEOF
26417 exec 5>>config.log
26419 echo
26420 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26421 ## Running $as_me. ##
26422 _ASBOX
26423 echo "$ac_log"
26424 } >&5
26426 _ACEOF
26427 cat >>$CONFIG_STATUS <<_ACEOF
26428 _ACEOF
26430 cat >>$CONFIG_STATUS <<\_ACEOF
26432 # Handling of arguments.
26433 for ac_config_target in $ac_config_targets
26435 case $ac_config_target in
26436 "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;;
26437 "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;;
26438 "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
26439 "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;;
26440 "Mac/Resources/app/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/app/Info.plist" ;;
26441 "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;;
26442 "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;;
26443 "Misc/python.pc") CONFIG_FILES="$CONFIG_FILES Misc/python.pc" ;;
26445 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26446 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26447 { (exit 1); exit 1; }; };;
26448 esac
26449 done
26452 # If the user did not use the arguments to specify the items to instantiate,
26453 # then the envvar interface is used. Set only those that are not.
26454 # We use the long form for the default assignment because of an extremely
26455 # bizarre bug on SunOS 4.1.3.
26456 if $ac_need_defaults; then
26457 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26458 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26461 # Have a temporary directory for convenience. Make it in the build tree
26462 # simply because there is no reason against having it here, and in addition,
26463 # creating and moving files from /tmp can sometimes cause problems.
26464 # Hook for its removal unless debugging.
26465 # Note that there is a small window in which the directory will not be cleaned:
26466 # after its creation but before its name has been assigned to `$tmp'.
26467 $debug ||
26469 tmp=
26470 trap 'exit_status=$?
26471 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26473 trap '{ (exit 1); exit 1; }' 1 2 13 15
26475 # Create a (secure) tmp directory for tmp files.
26478 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26479 test -n "$tmp" && test -d "$tmp"
26480 } ||
26482 tmp=./conf$$-$RANDOM
26483 (umask 077 && mkdir "$tmp")
26484 } ||
26486 echo "$me: cannot create a temporary directory in ." >&2
26487 { (exit 1); exit 1; }
26491 # Set up the sed scripts for CONFIG_FILES section.
26494 # No need to generate the scripts if there are no CONFIG_FILES.
26495 # This happens for instance when ./config.status config.h
26496 if test -n "$CONFIG_FILES"; then
26498 _ACEOF
26502 ac_delim='%!_!# '
26503 for ac_last_try in false false false false false :; do
26504 cat >conf$$subs.sed <<_ACEOF
26505 SHELL!$SHELL$ac_delim
26506 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
26507 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
26508 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
26509 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
26510 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
26511 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
26512 exec_prefix!$exec_prefix$ac_delim
26513 prefix!$prefix$ac_delim
26514 program_transform_name!$program_transform_name$ac_delim
26515 bindir!$bindir$ac_delim
26516 sbindir!$sbindir$ac_delim
26517 libexecdir!$libexecdir$ac_delim
26518 datarootdir!$datarootdir$ac_delim
26519 datadir!$datadir$ac_delim
26520 sysconfdir!$sysconfdir$ac_delim
26521 sharedstatedir!$sharedstatedir$ac_delim
26522 localstatedir!$localstatedir$ac_delim
26523 includedir!$includedir$ac_delim
26524 oldincludedir!$oldincludedir$ac_delim
26525 docdir!$docdir$ac_delim
26526 infodir!$infodir$ac_delim
26527 htmldir!$htmldir$ac_delim
26528 dvidir!$dvidir$ac_delim
26529 pdfdir!$pdfdir$ac_delim
26530 psdir!$psdir$ac_delim
26531 libdir!$libdir$ac_delim
26532 localedir!$localedir$ac_delim
26533 mandir!$mandir$ac_delim
26534 DEFS!$DEFS$ac_delim
26535 ECHO_C!$ECHO_C$ac_delim
26536 ECHO_N!$ECHO_N$ac_delim
26537 ECHO_T!$ECHO_T$ac_delim
26538 LIBS!$LIBS$ac_delim
26539 build_alias!$build_alias$ac_delim
26540 host_alias!$host_alias$ac_delim
26541 target_alias!$target_alias$ac_delim
26542 VERSION!$VERSION$ac_delim
26543 SOVERSION!$SOVERSION$ac_delim
26544 CONFIG_ARGS!$CONFIG_ARGS$ac_delim
26545 UNIVERSALSDK!$UNIVERSALSDK$ac_delim
26546 ARCH_RUN_32BIT!$ARCH_RUN_32BIT$ac_delim
26547 LIPO_32BIT_FLAGS!$LIPO_32BIT_FLAGS$ac_delim
26548 LIPO_64BIT_FLAGS!$LIPO_64BIT_FLAGS$ac_delim
26549 PYTHONFRAMEWORK!$PYTHONFRAMEWORK$ac_delim
26550 PYTHONFRAMEWORKIDENTIFIER!$PYTHONFRAMEWORKIDENTIFIER$ac_delim
26551 PYTHONFRAMEWORKDIR!$PYTHONFRAMEWORKDIR$ac_delim
26552 PYTHONFRAMEWORKPREFIX!$PYTHONFRAMEWORKPREFIX$ac_delim
26553 PYTHONFRAMEWORKINSTALLDIR!$PYTHONFRAMEWORKINSTALLDIR$ac_delim
26554 FRAMEWORKINSTALLFIRST!$FRAMEWORKINSTALLFIRST$ac_delim
26555 FRAMEWORKINSTALLLAST!$FRAMEWORKINSTALLLAST$ac_delim
26556 FRAMEWORKALTINSTALLFIRST!$FRAMEWORKALTINSTALLFIRST$ac_delim
26557 FRAMEWORKALTINSTALLLAST!$FRAMEWORKALTINSTALLLAST$ac_delim
26558 FRAMEWORKUNIXTOOLSPREFIX!$FRAMEWORKUNIXTOOLSPREFIX$ac_delim
26559 MACHDEP!$MACHDEP$ac_delim
26560 SGI_ABI!$SGI_ABI$ac_delim
26561 CONFIGURE_MACOSX_DEPLOYMENT_TARGET!$CONFIGURE_MACOSX_DEPLOYMENT_TARGET$ac_delim
26562 EXPORT_MACOSX_DEPLOYMENT_TARGET!$EXPORT_MACOSX_DEPLOYMENT_TARGET$ac_delim
26563 CC!$CC$ac_delim
26564 CFLAGS!$CFLAGS$ac_delim
26565 LDFLAGS!$LDFLAGS$ac_delim
26566 CPPFLAGS!$CPPFLAGS$ac_delim
26567 ac_ct_CC!$ac_ct_CC$ac_delim
26568 EXEEXT!$EXEEXT$ac_delim
26569 OBJEXT!$OBJEXT$ac_delim
26570 CXX!$CXX$ac_delim
26571 MAINCC!$MAINCC$ac_delim
26572 CPP!$CPP$ac_delim
26573 GREP!$GREP$ac_delim
26574 EGREP!$EGREP$ac_delim
26575 BUILDEXEEXT!$BUILDEXEEXT$ac_delim
26576 LIBRARY!$LIBRARY$ac_delim
26577 LDLIBRARY!$LDLIBRARY$ac_delim
26578 DLLLIBRARY!$DLLLIBRARY$ac_delim
26579 BLDLIBRARY!$BLDLIBRARY$ac_delim
26580 LDLIBRARYDIR!$LDLIBRARYDIR$ac_delim
26581 INSTSONAME!$INSTSONAME$ac_delim
26582 RUNSHARED!$RUNSHARED$ac_delim
26583 LINKCC!$LINKCC$ac_delim
26584 GNULD!$GNULD$ac_delim
26585 RANLIB!$RANLIB$ac_delim
26586 AR!$AR$ac_delim
26587 ARFLAGS!$ARFLAGS$ac_delim
26588 SVNVERSION!$SVNVERSION$ac_delim
26589 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
26590 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
26591 INSTALL_DATA!$INSTALL_DATA$ac_delim
26592 LN!$LN$ac_delim
26593 OPT!$OPT$ac_delim
26594 BASECFLAGS!$BASECFLAGS$ac_delim
26595 UNIVERSAL_ARCH_FLAGS!$UNIVERSAL_ARCH_FLAGS$ac_delim
26596 OTHER_LIBTOOL_OPT!$OTHER_LIBTOOL_OPT$ac_delim
26597 LIBTOOL_CRUFT!$LIBTOOL_CRUFT$ac_delim
26598 SO!$SO$ac_delim
26599 LDSHARED!$LDSHARED$ac_delim
26600 BLDSHARED!$BLDSHARED$ac_delim
26601 CCSHARED!$CCSHARED$ac_delim
26602 _ACEOF
26604 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
26605 break
26606 elif $ac_last_try; then
26607 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26608 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26609 { (exit 1); exit 1; }; }
26610 else
26611 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26613 done
26615 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26616 if test -n "$ac_eof"; then
26617 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26618 ac_eof=`expr $ac_eof + 1`
26621 cat >>$CONFIG_STATUS <<_ACEOF
26622 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
26623 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26624 _ACEOF
26625 sed '
26626 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26627 s/^/s,@/; s/!/@,|#_!!_#|/
26630 s/'"$ac_delim"'$/,g/; t
26631 s/$/\\/; p
26632 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26633 ' >>$CONFIG_STATUS <conf$$subs.sed
26634 rm -f conf$$subs.sed
26635 cat >>$CONFIG_STATUS <<_ACEOF
26636 CEOF$ac_eof
26637 _ACEOF
26640 ac_delim='%!_!# '
26641 for ac_last_try in false false false false false :; do
26642 cat >conf$$subs.sed <<_ACEOF
26643 LINKFORSHARED!$LINKFORSHARED$ac_delim
26644 CFLAGSFORSHARED!$CFLAGSFORSHARED$ac_delim
26645 SHLIBS!$SHLIBS$ac_delim
26646 USE_SIGNAL_MODULE!$USE_SIGNAL_MODULE$ac_delim
26647 SIGNAL_OBJS!$SIGNAL_OBJS$ac_delim
26648 USE_THREAD_MODULE!$USE_THREAD_MODULE$ac_delim
26649 LDLAST!$LDLAST$ac_delim
26650 THREADOBJ!$THREADOBJ$ac_delim
26651 DLINCLDIR!$DLINCLDIR$ac_delim
26652 DYNLOADFILE!$DYNLOADFILE$ac_delim
26653 MACHDEP_OBJS!$MACHDEP_OBJS$ac_delim
26654 TRUE!$TRUE$ac_delim
26655 LIBOBJS!$LIBOBJS$ac_delim
26656 HAVE_GETHOSTBYNAME_R_6_ARG!$HAVE_GETHOSTBYNAME_R_6_ARG$ac_delim
26657 HAVE_GETHOSTBYNAME_R_5_ARG!$HAVE_GETHOSTBYNAME_R_5_ARG$ac_delim
26658 HAVE_GETHOSTBYNAME_R_3_ARG!$HAVE_GETHOSTBYNAME_R_3_ARG$ac_delim
26659 HAVE_GETHOSTBYNAME_R!$HAVE_GETHOSTBYNAME_R$ac_delim
26660 HAVE_GETHOSTBYNAME!$HAVE_GETHOSTBYNAME$ac_delim
26661 LIBM!$LIBM$ac_delim
26662 LIBC!$LIBC$ac_delim
26663 THREADHEADERS!$THREADHEADERS$ac_delim
26664 SRCDIRS!$SRCDIRS$ac_delim
26665 LTLIBOBJS!$LTLIBOBJS$ac_delim
26666 _ACEOF
26668 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 23; then
26669 break
26670 elif $ac_last_try; then
26671 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26672 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26673 { (exit 1); exit 1; }; }
26674 else
26675 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26677 done
26679 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26680 if test -n "$ac_eof"; then
26681 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26682 ac_eof=`expr $ac_eof + 1`
26685 cat >>$CONFIG_STATUS <<_ACEOF
26686 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
26687 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
26688 _ACEOF
26689 sed '
26690 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26691 s/^/s,@/; s/!/@,|#_!!_#|/
26694 s/'"$ac_delim"'$/,g/; t
26695 s/$/\\/; p
26696 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26697 ' >>$CONFIG_STATUS <conf$$subs.sed
26698 rm -f conf$$subs.sed
26699 cat >>$CONFIG_STATUS <<_ACEOF
26700 :end
26701 s/|#_!!_#|//g
26702 CEOF$ac_eof
26703 _ACEOF
26706 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26707 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26708 # trailing colons and then remove the whole line if VPATH becomes empty
26709 # (actually we leave an empty line to preserve line numbers).
26710 if test "x$srcdir" = x.; then
26711 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26712 s/:*\$(srcdir):*/:/
26713 s/:*\${srcdir}:*/:/
26714 s/:*@srcdir@:*/:/
26715 s/^\([^=]*=[ ]*\):*/\1/
26716 s/:*$//
26717 s/^[^=]*=[ ]*$//
26721 cat >>$CONFIG_STATUS <<\_ACEOF
26722 fi # test -n "$CONFIG_FILES"
26725 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
26727 case $ac_tag in
26728 :[FHLC]) ac_mode=$ac_tag; continue;;
26729 esac
26730 case $ac_mode$ac_tag in
26731 :[FHL]*:*);;
26732 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26733 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26734 { (exit 1); exit 1; }; };;
26735 :[FH]-) ac_tag=-:-;;
26736 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26737 esac
26738 ac_save_IFS=$IFS
26739 IFS=:
26740 set x $ac_tag
26741 IFS=$ac_save_IFS
26742 shift
26743 ac_file=$1
26744 shift
26746 case $ac_mode in
26747 :L) ac_source=$1;;
26748 :[FH])
26749 ac_file_inputs=
26750 for ac_f
26752 case $ac_f in
26753 -) ac_f="$tmp/stdin";;
26754 *) # Look for the file first in the build tree, then in the source tree
26755 # (if the path is not absolute). The absolute path cannot be DOS-style,
26756 # because $ac_f cannot contain `:'.
26757 test -f "$ac_f" ||
26758 case $ac_f in
26759 [\\/$]*) false;;
26760 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26761 esac ||
26762 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26763 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26764 { (exit 1); exit 1; }; };;
26765 esac
26766 ac_file_inputs="$ac_file_inputs $ac_f"
26767 done
26769 # Let's still pretend it is `configure' which instantiates (i.e., don't
26770 # use $as_me), people would be surprised to read:
26771 # /* config.h. Generated by config.status. */
26772 configure_input="Generated from "`IFS=:
26773 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
26774 if test x"$ac_file" != x-; then
26775 configure_input="$ac_file. $configure_input"
26776 { echo "$as_me:$LINENO: creating $ac_file" >&5
26777 echo "$as_me: creating $ac_file" >&6;}
26780 case $ac_tag in
26781 *:-:* | *:-) cat >"$tmp/stdin";;
26782 esac
26784 esac
26786 ac_dir=`$as_dirname -- "$ac_file" ||
26787 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26788 X"$ac_file" : 'X\(//\)[^/]' \| \
26789 X"$ac_file" : 'X\(//\)$' \| \
26790 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26791 echo X"$ac_file" |
26792 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26793 s//\1/
26796 /^X\(\/\/\)[^/].*/{
26797 s//\1/
26800 /^X\(\/\/\)$/{
26801 s//\1/
26804 /^X\(\/\).*/{
26805 s//\1/
26808 s/.*/./; q'`
26809 { as_dir="$ac_dir"
26810 case $as_dir in #(
26811 -*) as_dir=./$as_dir;;
26812 esac
26813 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26814 as_dirs=
26815 while :; do
26816 case $as_dir in #(
26817 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26818 *) as_qdir=$as_dir;;
26819 esac
26820 as_dirs="'$as_qdir' $as_dirs"
26821 as_dir=`$as_dirname -- "$as_dir" ||
26822 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26823 X"$as_dir" : 'X\(//\)[^/]' \| \
26824 X"$as_dir" : 'X\(//\)$' \| \
26825 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26826 echo X"$as_dir" |
26827 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26828 s//\1/
26831 /^X\(\/\/\)[^/].*/{
26832 s//\1/
26835 /^X\(\/\/\)$/{
26836 s//\1/
26839 /^X\(\/\).*/{
26840 s//\1/
26843 s/.*/./; q'`
26844 test -d "$as_dir" && break
26845 done
26846 test -z "$as_dirs" || eval "mkdir $as_dirs"
26847 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26848 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26849 { (exit 1); exit 1; }; }; }
26850 ac_builddir=.
26852 case "$ac_dir" in
26853 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26855 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26856 # A ".." for each directory in $ac_dir_suffix.
26857 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26858 case $ac_top_builddir_sub in
26859 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26860 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26861 esac ;;
26862 esac
26863 ac_abs_top_builddir=$ac_pwd
26864 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26865 # for backward compatibility:
26866 ac_top_builddir=$ac_top_build_prefix
26868 case $srcdir in
26869 .) # We are building in place.
26870 ac_srcdir=.
26871 ac_top_srcdir=$ac_top_builddir_sub
26872 ac_abs_top_srcdir=$ac_pwd ;;
26873 [\\/]* | ?:[\\/]* ) # Absolute name.
26874 ac_srcdir=$srcdir$ac_dir_suffix;
26875 ac_top_srcdir=$srcdir
26876 ac_abs_top_srcdir=$srcdir ;;
26877 *) # Relative name.
26878 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26879 ac_top_srcdir=$ac_top_build_prefix$srcdir
26880 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26881 esac
26882 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26885 case $ac_mode in
26888 # CONFIG_FILE
26891 case $INSTALL in
26892 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26893 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26894 esac
26895 _ACEOF
26897 cat >>$CONFIG_STATUS <<\_ACEOF
26898 # If the template does not know about datarootdir, expand it.
26899 # FIXME: This hack should be removed a few years after 2.60.
26900 ac_datarootdir_hack=; ac_datarootdir_seen=
26902 case `sed -n '/datarootdir/ {
26906 /@datadir@/p
26907 /@docdir@/p
26908 /@infodir@/p
26909 /@localedir@/p
26910 /@mandir@/p
26911 ' $ac_file_inputs` in
26912 *datarootdir*) ac_datarootdir_seen=yes;;
26913 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26914 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26915 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26916 _ACEOF
26917 cat >>$CONFIG_STATUS <<_ACEOF
26918 ac_datarootdir_hack='
26919 s&@datadir@&$datadir&g
26920 s&@docdir@&$docdir&g
26921 s&@infodir@&$infodir&g
26922 s&@localedir@&$localedir&g
26923 s&@mandir@&$mandir&g
26924 s&\\\${datarootdir}&$datarootdir&g' ;;
26925 esac
26926 _ACEOF
26928 # Neutralize VPATH when `$srcdir' = `.'.
26929 # Shell code in configure.ac might set extrasub.
26930 # FIXME: do we really want to maintain this feature?
26931 cat >>$CONFIG_STATUS <<_ACEOF
26932 sed "$ac_vpsub
26933 $extrasub
26934 _ACEOF
26935 cat >>$CONFIG_STATUS <<\_ACEOF
26937 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26938 s&@configure_input@&$configure_input&;t t
26939 s&@top_builddir@&$ac_top_builddir_sub&;t t
26940 s&@srcdir@&$ac_srcdir&;t t
26941 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26942 s&@top_srcdir@&$ac_top_srcdir&;t t
26943 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26944 s&@builddir@&$ac_builddir&;t t
26945 s&@abs_builddir@&$ac_abs_builddir&;t t
26946 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26947 s&@INSTALL@&$ac_INSTALL&;t t
26948 $ac_datarootdir_hack
26949 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
26951 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26952 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26953 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26954 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26955 which seems to be undefined. Please make sure it is defined." >&5
26956 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26957 which seems to be undefined. Please make sure it is defined." >&2;}
26959 rm -f "$tmp/stdin"
26960 case $ac_file in
26961 -) cat "$tmp/out"; rm -f "$tmp/out";;
26962 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
26963 esac
26967 # CONFIG_HEADER
26969 _ACEOF
26971 # Transform confdefs.h into a sed script `conftest.defines', that
26972 # substitutes the proper values into config.h.in to produce config.h.
26973 rm -f conftest.defines conftest.tail
26974 # First, append a space to every undef/define line, to ease matching.
26975 echo 's/$/ /' >conftest.defines
26976 # Then, protect against being on the right side of a sed subst, or in
26977 # an unquoted here document, in config.status. If some macros were
26978 # called several times there might be several #defines for the same
26979 # symbol, which is useless. But do not sort them, since the last
26980 # AC_DEFINE must be honored.
26981 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26982 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
26983 # NAME is the cpp macro being defined, VALUE is the value it is being given.
26984 # PARAMS is the parameter list in the macro definition--in most cases, it's
26985 # just an empty string.
26986 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
26987 ac_dB='\\)[ (].*,\\1define\\2'
26988 ac_dC=' '
26989 ac_dD=' ,'
26991 uniq confdefs.h |
26992 sed -n '
26993 t rset
26994 :rset
26995 s/^[ ]*#[ ]*define[ ][ ]*//
26996 t ok
26999 s/[\\&,]/\\&/g
27000 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
27001 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
27002 ' >>conftest.defines
27004 # Remove the space that was appended to ease matching.
27005 # Then replace #undef with comments. This is necessary, for
27006 # example, in the case of _POSIX_SOURCE, which is predefined and required
27007 # on some systems where configure will not decide to define it.
27008 # (The regexp can be short, since the line contains either #define or #undef.)
27009 echo 's/ $//
27010 s,^[ #]*u.*,/* & */,' >>conftest.defines
27012 # Break up conftest.defines:
27013 ac_max_sed_lines=50
27015 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
27016 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
27017 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
27018 # et cetera.
27019 ac_in='$ac_file_inputs'
27020 ac_out='"$tmp/out1"'
27021 ac_nxt='"$tmp/out2"'
27023 while :
27025 # Write a here document:
27026 cat >>$CONFIG_STATUS <<_ACEOF
27027 # First, check the format of the line:
27028 cat >"\$tmp/defines.sed" <<\\CEOF
27029 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
27030 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
27032 :def
27033 _ACEOF
27034 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
27035 echo 'CEOF
27036 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
27037 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
27038 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
27039 grep . conftest.tail >/dev/null || break
27040 rm -f conftest.defines
27041 mv conftest.tail conftest.defines
27042 done
27043 rm -f conftest.defines conftest.tail
27045 echo "ac_result=$ac_in" >>$CONFIG_STATUS
27046 cat >>$CONFIG_STATUS <<\_ACEOF
27047 if test x"$ac_file" != x-; then
27048 echo "/* $configure_input */" >"$tmp/config.h"
27049 cat "$ac_result" >>"$tmp/config.h"
27050 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
27051 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27052 echo "$as_me: $ac_file is unchanged" >&6;}
27053 else
27054 rm -f $ac_file
27055 mv "$tmp/config.h" $ac_file
27057 else
27058 echo "/* $configure_input */"
27059 cat "$ac_result"
27061 rm -f "$tmp/out12"
27065 esac
27067 done # for ac_tag
27070 { (exit 0); exit 0; }
27071 _ACEOF
27072 chmod +x $CONFIG_STATUS
27073 ac_clean_files=$ac_clean_files_save
27076 # configure is writing to config.log, and then calls config.status.
27077 # config.status does its own redirection, appending to config.log.
27078 # Unfortunately, on DOS this fails, as config.log is still kept open
27079 # by configure, so config.status won't be able to write to it; its
27080 # output is simply discarded. So we exec the FD to /dev/null,
27081 # effectively closing config.log, so it can be properly (re)opened and
27082 # appended to by config.status. When coming back to configure, we
27083 # need to make the FD available again.
27084 if test "$no_create" != yes; then
27085 ac_cs_success=:
27086 ac_config_status_args=
27087 test "$silent" = yes &&
27088 ac_config_status_args="$ac_config_status_args --quiet"
27089 exec 5>/dev/null
27090 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27091 exec 5>>config.log
27092 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27093 # would make configure fail if this is the last instruction.
27094 $ac_cs_success || { (exit 1); exit 1; }
27098 echo "creating Modules/Setup"
27099 if test ! -f Modules/Setup
27100 then
27101 cp $srcdir/Modules/Setup.dist Modules/Setup
27104 echo "creating Modules/Setup.local"
27105 if test ! -f Modules/Setup.local
27106 then
27107 echo "# Edit this file for local setup changes" >Modules/Setup.local
27110 echo "creating Makefile"
27111 $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
27112 -s Modules Modules/Setup.config \
27113 Modules/Setup.local Modules/Setup
27114 mv config.c Modules