Issue #3585: Add pkg-config support.
[python.git] / configure
blob26da08030e323faf89b93bd744b18ddc65bdad6f
1 #! /bin/sh
2 # From configure.in Revision: 72871 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.63 for python 2.7.
6 # Report bugs to <http://bugs.python.org/>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 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 # Pre-4.2 versions of Zsh do 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 as_nl='
45 export as_nl
46 # Printing a long string crashes Solaris 7 /usr/bin/printf.
47 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
49 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
50 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 as_echo='printf %s\n'
52 as_echo_n='printf %s'
53 else
54 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56 as_echo_n='/usr/ucb/echo -n'
57 else
58 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
59 as_echo_n_body='eval
60 arg=$1;
61 case $arg in
62 *"$as_nl"*)
63 expr "X$arg" : "X\\(.*\\)$as_nl";
64 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 esac;
66 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 export as_echo_n_body
69 as_echo_n='sh -c $as_echo_n_body as_echo'
71 export as_echo_body
72 as_echo='sh -c $as_echo_body as_echo'
75 # The user is always right.
76 if test "${PATH_SEPARATOR+set}" != set; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
84 # Support unset when possible.
85 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
86 as_unset=unset
87 else
88 as_unset=false
92 # IFS
93 # We need space, tab and new line, in precisely that order. Quoting is
94 # there to prevent editors from complaining about space-tab.
95 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
96 # splitting by setting IFS to empty value.)
97 IFS=" "" $as_nl"
99 # Find who we are. Look in the path if we contain no directory separator.
100 case $0 in
101 *[\\/]* ) as_myself=$0 ;;
102 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103 for as_dir in $PATH
105 IFS=$as_save_IFS
106 test -z "$as_dir" && as_dir=.
107 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 done
109 IFS=$as_save_IFS
112 esac
113 # We did not find ourselves, most probably we were run as `sh COMMAND'
114 # in which case we are not to be found in the path.
115 if test "x$as_myself" = x; then
116 as_myself=$0
118 if test ! -f "$as_myself"; then
119 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
120 { (exit 1); exit 1; }
123 # Work around bugs in pre-3.0 UWIN ksh.
124 for as_var in ENV MAIL MAILPATH
125 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
126 done
127 PS1='$ '
128 PS2='> '
129 PS4='+ '
131 # NLS nuisances.
132 LC_ALL=C
133 export LC_ALL
134 LANGUAGE=C
135 export LANGUAGE
137 # Required to use basename.
138 if expr a : '\(a\)' >/dev/null 2>&1 &&
139 test "X`expr 00001 : '.*\(...\)'`" = X001; then
140 as_expr=expr
141 else
142 as_expr=false
145 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
146 as_basename=basename
147 else
148 as_basename=false
152 # Name of the executable.
153 as_me=`$as_basename -- "$0" ||
154 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
155 X"$0" : 'X\(//\)$' \| \
156 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
157 $as_echo X/"$0" |
158 sed '/^.*\/\([^/][^/]*\)\/*$/{
159 s//\1/
162 /^X\/\(\/\/\)$/{
163 s//\1/
166 /^X\/\(\/\).*/{
167 s//\1/
170 s/.*/./; q'`
172 # CDPATH.
173 $as_unset CDPATH
176 if test "x$CONFIG_SHELL" = x; then
177 if (eval ":") 2>/dev/null; then
178 as_have_required=yes
179 else
180 as_have_required=no
183 if test $as_have_required = yes && (eval ":
184 (as_func_return () {
185 (exit \$1)
187 as_func_success () {
188 as_func_return 0
190 as_func_failure () {
191 as_func_return 1
193 as_func_ret_success () {
194 return 0
196 as_func_ret_failure () {
197 return 1
200 exitcode=0
201 if as_func_success; then
203 else
204 exitcode=1
205 echo as_func_success failed.
208 if as_func_failure; then
209 exitcode=1
210 echo as_func_failure succeeded.
213 if as_func_ret_success; then
215 else
216 exitcode=1
217 echo as_func_ret_success failed.
220 if as_func_ret_failure; then
221 exitcode=1
222 echo as_func_ret_failure succeeded.
225 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
227 else
228 exitcode=1
229 echo positional parameters were not saved.
232 test \$exitcode = 0) || { (exit 1); exit 1; }
235 as_lineno_1=\$LINENO
236 as_lineno_2=\$LINENO
237 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
238 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
239 ") 2> /dev/null; then
241 else
242 as_candidate_shells=
243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
244 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
246 IFS=$as_save_IFS
247 test -z "$as_dir" && as_dir=.
248 case $as_dir in
250 for as_base in sh bash ksh sh5; do
251 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
252 done;;
253 esac
254 done
255 IFS=$as_save_IFS
258 for as_shell in $as_candidate_shells $SHELL; do
259 # Try only shells that exist, to save several forks.
260 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
261 { ("$as_shell") 2> /dev/null <<\_ASEOF
262 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
263 emulate sh
264 NULLCMD=:
265 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
266 # is contrary to our usage. Disable this feature.
267 alias -g '${1+"$@"}'='"$@"'
268 setopt NO_GLOB_SUBST
269 else
270 case `(set -o) 2>/dev/null` in
271 *posix*) set -o posix ;;
272 esac
278 _ASEOF
279 }; then
280 CONFIG_SHELL=$as_shell
281 as_have_required=yes
282 if { "$as_shell" 2> /dev/null <<\_ASEOF
283 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
284 emulate sh
285 NULLCMD=:
286 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
287 # is contrary to our usage. Disable this feature.
288 alias -g '${1+"$@"}'='"$@"'
289 setopt NO_GLOB_SUBST
290 else
291 case `(set -o) 2>/dev/null` in
292 *posix*) set -o posix ;;
293 esac
299 (as_func_return () {
300 (exit $1)
302 as_func_success () {
303 as_func_return 0
305 as_func_failure () {
306 as_func_return 1
308 as_func_ret_success () {
309 return 0
311 as_func_ret_failure () {
312 return 1
315 exitcode=0
316 if as_func_success; then
318 else
319 exitcode=1
320 echo as_func_success failed.
323 if as_func_failure; then
324 exitcode=1
325 echo as_func_failure succeeded.
328 if as_func_ret_success; then
330 else
331 exitcode=1
332 echo as_func_ret_success failed.
335 if as_func_ret_failure; then
336 exitcode=1
337 echo as_func_ret_failure succeeded.
340 if ( set x; as_func_ret_success y && test x = "$1" ); then
342 else
343 exitcode=1
344 echo positional parameters were not saved.
347 test $exitcode = 0) || { (exit 1); exit 1; }
350 as_lineno_1=$LINENO
351 as_lineno_2=$LINENO
352 test "x$as_lineno_1" != "x$as_lineno_2" &&
353 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
355 _ASEOF
356 }; then
357 break
362 done
364 if test "x$CONFIG_SHELL" != x; then
365 for as_var in BASH_ENV ENV
366 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
367 done
368 export CONFIG_SHELL
369 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
373 if test $as_have_required = no; then
374 echo This script requires a shell more modern than all the
375 echo shells that I found on your system. Please install a
376 echo modern shell, or manually run the script under such a
377 echo shell if you do have one.
378 { (exit 1); exit 1; }
388 (eval "as_func_return () {
389 (exit \$1)
391 as_func_success () {
392 as_func_return 0
394 as_func_failure () {
395 as_func_return 1
397 as_func_ret_success () {
398 return 0
400 as_func_ret_failure () {
401 return 1
404 exitcode=0
405 if as_func_success; then
407 else
408 exitcode=1
409 echo as_func_success failed.
412 if as_func_failure; then
413 exitcode=1
414 echo as_func_failure succeeded.
417 if as_func_ret_success; then
419 else
420 exitcode=1
421 echo as_func_ret_success failed.
424 if as_func_ret_failure; then
425 exitcode=1
426 echo as_func_ret_failure succeeded.
429 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
431 else
432 exitcode=1
433 echo positional parameters were not saved.
436 test \$exitcode = 0") || {
437 echo No shell found that supports shell functions.
438 echo Please tell bug-autoconf@gnu.org about your system,
439 echo including any error possibly output before this message.
440 echo This can help us improve future autoconf versions.
441 echo Configuration will now proceed without shell functions.
446 as_lineno_1=$LINENO
447 as_lineno_2=$LINENO
448 test "x$as_lineno_1" != "x$as_lineno_2" &&
449 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
451 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
452 # uniformly replaced by the line number. The first 'sed' inserts a
453 # line-number line after each line using $LINENO; the second 'sed'
454 # does the real work. The second script uses 'N' to pair each
455 # line-number line with the line containing $LINENO, and appends
456 # trailing '-' during substitution so that $LINENO is not a special
457 # case at line end.
458 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
459 # scripts with optimization help from Paolo Bonzini. Blame Lee
460 # E. McMahon (1931-1989) for sed's syntax. :-)
461 sed -n '
463 /[$]LINENO/=
464 ' <$as_myself |
465 sed '
466 s/[$]LINENO.*/&-/
467 t lineno
469 :lineno
471 :loop
472 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
473 t loop
474 s/-\n.*//
475 ' >$as_me.lineno &&
476 chmod +x "$as_me.lineno" ||
477 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
478 { (exit 1); exit 1; }; }
480 # Don't try to exec as it changes $[0], causing all sort of problems
481 # (the dirname of $[0] is not the place where we might find the
482 # original and so on. Autoconf is especially sensitive to this).
483 . "./$as_me.lineno"
484 # Exit status is that of the last command.
485 exit
489 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
490 as_dirname=dirname
491 else
492 as_dirname=false
495 ECHO_C= ECHO_N= ECHO_T=
496 case `echo -n x` in
497 -n*)
498 case `echo 'x\c'` in
499 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
500 *) ECHO_C='\c';;
501 esac;;
503 ECHO_N='-n';;
504 esac
505 if expr a : '\(a\)' >/dev/null 2>&1 &&
506 test "X`expr 00001 : '.*\(...\)'`" = X001; then
507 as_expr=expr
508 else
509 as_expr=false
512 rm -f conf$$ conf$$.exe conf$$.file
513 if test -d conf$$.dir; then
514 rm -f conf$$.dir/conf$$.file
515 else
516 rm -f conf$$.dir
517 mkdir conf$$.dir 2>/dev/null
519 if (echo >conf$$.file) 2>/dev/null; then
520 if ln -s conf$$.file conf$$ 2>/dev/null; then
521 as_ln_s='ln -s'
522 # ... but there are two gotchas:
523 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
524 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
525 # In both cases, we have to default to `cp -p'.
526 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
527 as_ln_s='cp -p'
528 elif ln conf$$.file conf$$ 2>/dev/null; then
529 as_ln_s=ln
530 else
531 as_ln_s='cp -p'
533 else
534 as_ln_s='cp -p'
536 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
537 rmdir conf$$.dir 2>/dev/null
539 if mkdir -p . 2>/dev/null; then
540 as_mkdir_p=:
541 else
542 test -d ./-p && rmdir ./-p
543 as_mkdir_p=false
546 if test -x / >/dev/null 2>&1; then
547 as_test_x='test -x'
548 else
549 if ls -dL / >/dev/null 2>&1; then
550 as_ls_L_option=L
551 else
552 as_ls_L_option=
554 as_test_x='
555 eval sh -c '\''
556 if test -d "$1"; then
557 test -d "$1/.";
558 else
559 case $1 in
560 -*)set "./$1";;
561 esac;
562 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
563 ???[sx]*):;;*)false;;esac;fi
564 '\'' sh
567 as_executable_p=$as_test_x
569 # Sed expression to map a string onto a valid CPP name.
570 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
572 # Sed expression to map a string onto a valid variable name.
573 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
577 exec 7<&0 </dev/null 6>&1
579 # Name of the host.
580 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
581 # so uname gets run too.
582 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
585 # Initializations.
587 ac_default_prefix=/usr/local
588 ac_clean_files=
589 ac_config_libobj_dir=.
590 LIBOBJS=
591 cross_compiling=no
592 subdirs=
593 MFLAGS=
594 MAKEFLAGS=
595 SHELL=${CONFIG_SHELL-/bin/sh}
597 # Identity of this package.
598 PACKAGE_NAME='python'
599 PACKAGE_TARNAME='python'
600 PACKAGE_VERSION='2.7'
601 PACKAGE_STRING='python 2.7'
602 PACKAGE_BUGREPORT='http://bugs.python.org/'
604 ac_unique_file="Include/object.h"
605 # Factoring default headers for most tests.
606 ac_includes_default="\
607 #include <stdio.h>
608 #ifdef HAVE_SYS_TYPES_H
609 # include <sys/types.h>
610 #endif
611 #ifdef HAVE_SYS_STAT_H
612 # include <sys/stat.h>
613 #endif
614 #ifdef STDC_HEADERS
615 # include <stdlib.h>
616 # include <stddef.h>
617 #else
618 # ifdef HAVE_STDLIB_H
619 # include <stdlib.h>
620 # endif
621 #endif
622 #ifdef HAVE_STRING_H
623 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
624 # include <memory.h>
625 # endif
626 # include <string.h>
627 #endif
628 #ifdef HAVE_STRINGS_H
629 # include <strings.h>
630 #endif
631 #ifdef HAVE_INTTYPES_H
632 # include <inttypes.h>
633 #endif
634 #ifdef HAVE_STDINT_H
635 # include <stdint.h>
636 #endif
637 #ifdef HAVE_UNISTD_H
638 # include <unistd.h>
639 #endif"
641 ac_subst_vars='LTLIBOBJS
642 SRCDIRS
643 THREADHEADERS
644 UNICODE_OBJS
645 LIBC
646 LIBM
647 HAVE_GETHOSTBYNAME
648 HAVE_GETHOSTBYNAME_R
649 HAVE_GETHOSTBYNAME_R_3_ARG
650 HAVE_GETHOSTBYNAME_R_5_ARG
651 HAVE_GETHOSTBYNAME_R_6_ARG
652 LIBOBJS
653 TRUE
654 MACHDEP_OBJS
655 DYNLOADFILE
656 DLINCLDIR
657 THREADOBJ
658 LDLAST
659 USE_THREAD_MODULE
660 SIGNAL_OBJS
661 USE_SIGNAL_MODULE
662 SHLIBS
663 CFLAGSFORSHARED
664 LINKFORSHARED
665 CCSHARED
666 BLDSHARED
667 LDSHARED
669 LIBTOOL_CRUFT
670 OTHER_LIBTOOL_OPT
671 UNIVERSAL_ARCH_FLAGS
672 BASECFLAGS
675 INSTALL_DATA
676 INSTALL_SCRIPT
677 INSTALL_PROGRAM
678 SVNVERSION
679 ARFLAGS
681 RANLIB
682 GNULD
683 LINKCC
684 RUNSHARED
685 INSTSONAME
686 LDLIBRARYDIR
687 BLDLIBRARY
688 DLLLIBRARY
689 LDLIBRARY
690 LIBRARY
691 BUILDEXEEXT
692 EGREP
693 GREP
695 MAINCC
697 OBJEXT
698 EXEEXT
699 ac_ct_CC
700 CPPFLAGS
701 LDFLAGS
702 CFLAGS
704 EXPORT_MACOSX_DEPLOYMENT_TARGET
705 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
706 EXTRAMACHDEPPATH
707 EXTRAPLATDIR
708 SGI_ABI
709 MACHDEP
710 FRAMEWORKUNIXTOOLSPREFIX
711 FRAMEWORKALTINSTALLLAST
712 FRAMEWORKALTINSTALLFIRST
713 FRAMEWORKINSTALLLAST
714 FRAMEWORKINSTALLFIRST
715 PYTHONFRAMEWORKINSTALLDIR
716 PYTHONFRAMEWORKPREFIX
717 PYTHONFRAMEWORKDIR
718 PYTHONFRAMEWORKIDENTIFIER
719 PYTHONFRAMEWORK
720 ARCH_RUN_32BIT
721 UNIVERSALSDK
722 CONFIG_ARGS
723 SOVERSION
724 VERSION
725 target_alias
726 host_alias
727 build_alias
728 LIBS
729 ECHO_T
730 ECHO_N
731 ECHO_C
732 DEFS
733 mandir
734 localedir
735 libdir
736 psdir
737 pdfdir
738 dvidir
739 htmldir
740 infodir
741 docdir
742 oldincludedir
743 includedir
744 localstatedir
745 sharedstatedir
746 sysconfdir
747 datadir
748 datarootdir
749 libexecdir
750 sbindir
751 bindir
752 program_transform_name
753 prefix
754 exec_prefix
755 PACKAGE_BUGREPORT
756 PACKAGE_STRING
757 PACKAGE_VERSION
758 PACKAGE_TARNAME
759 PACKAGE_NAME
760 PATH_SEPARATOR
761 SHELL'
762 ac_subst_files=''
763 ac_user_opts='
764 enable_option_checking
765 enable_universalsdk
766 with_universal_archs
767 with_framework_name
768 enable_framework
769 with_gcc
770 with_cxx_main
771 with_suffix
772 enable_shared
773 enable_profiling
774 with_pydebug
775 enable_toolbox_glue
776 with_libs
777 with_system_ffi
778 with_dbmliborder
779 with_signal_module
780 with_dec_threads
781 with_threads
782 with_thread
783 with_pth
784 enable_ipv6
785 with_doc_strings
786 with_tsc
787 with_pymalloc
788 with_wctype_functions
789 with_fpectl
790 with_libm
791 with_libc
792 enable_big_digits
793 enable_unicode
795 ac_precious_vars='build_alias
796 host_alias
797 target_alias
799 CFLAGS
800 LDFLAGS
801 LIBS
802 CPPFLAGS
803 CPP'
806 # Initialize some variables set by options.
807 ac_init_help=
808 ac_init_version=false
809 ac_unrecognized_opts=
810 ac_unrecognized_sep=
811 # The variables have the same names as the options, with
812 # dashes changed to underlines.
813 cache_file=/dev/null
814 exec_prefix=NONE
815 no_create=
816 no_recursion=
817 prefix=NONE
818 program_prefix=NONE
819 program_suffix=NONE
820 program_transform_name=s,x,x,
821 silent=
822 site=
823 srcdir=
824 verbose=
825 x_includes=NONE
826 x_libraries=NONE
828 # Installation directory options.
829 # These are left unexpanded so users can "make install exec_prefix=/foo"
830 # and all the variables that are supposed to be based on exec_prefix
831 # by default will actually change.
832 # Use braces instead of parens because sh, perl, etc. also accept them.
833 # (The list follows the same order as the GNU Coding Standards.)
834 bindir='${exec_prefix}/bin'
835 sbindir='${exec_prefix}/sbin'
836 libexecdir='${exec_prefix}/libexec'
837 datarootdir='${prefix}/share'
838 datadir='${datarootdir}'
839 sysconfdir='${prefix}/etc'
840 sharedstatedir='${prefix}/com'
841 localstatedir='${prefix}/var'
842 includedir='${prefix}/include'
843 oldincludedir='/usr/include'
844 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
845 infodir='${datarootdir}/info'
846 htmldir='${docdir}'
847 dvidir='${docdir}'
848 pdfdir='${docdir}'
849 psdir='${docdir}'
850 libdir='${exec_prefix}/lib'
851 localedir='${datarootdir}/locale'
852 mandir='${datarootdir}/man'
854 ac_prev=
855 ac_dashdash=
856 for ac_option
858 # If the previous option needs an argument, assign it.
859 if test -n "$ac_prev"; then
860 eval $ac_prev=\$ac_option
861 ac_prev=
862 continue
865 case $ac_option in
866 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
867 *) ac_optarg=yes ;;
868 esac
870 # Accept the important Cygnus configure options, so we can diagnose typos.
872 case $ac_dashdash$ac_option in
874 ac_dashdash=yes ;;
876 -bindir | --bindir | --bindi | --bind | --bin | --bi)
877 ac_prev=bindir ;;
878 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
879 bindir=$ac_optarg ;;
881 -build | --build | --buil | --bui | --bu)
882 ac_prev=build_alias ;;
883 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
884 build_alias=$ac_optarg ;;
886 -cache-file | --cache-file | --cache-fil | --cache-fi \
887 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
888 ac_prev=cache_file ;;
889 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
890 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
891 cache_file=$ac_optarg ;;
893 --config-cache | -C)
894 cache_file=config.cache ;;
896 -datadir | --datadir | --datadi | --datad)
897 ac_prev=datadir ;;
898 -datadir=* | --datadir=* | --datadi=* | --datad=*)
899 datadir=$ac_optarg ;;
901 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
902 | --dataroo | --dataro | --datar)
903 ac_prev=datarootdir ;;
904 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
905 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
906 datarootdir=$ac_optarg ;;
908 -disable-* | --disable-*)
909 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
910 # Reject names that are not valid shell variable names.
911 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
912 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
913 { (exit 1); exit 1; }; }
914 ac_useropt_orig=$ac_useropt
915 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
916 case $ac_user_opts in
918 "enable_$ac_useropt"
919 "*) ;;
920 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
921 ac_unrecognized_sep=', ';;
922 esac
923 eval enable_$ac_useropt=no ;;
925 -docdir | --docdir | --docdi | --doc | --do)
926 ac_prev=docdir ;;
927 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
928 docdir=$ac_optarg ;;
930 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
931 ac_prev=dvidir ;;
932 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
933 dvidir=$ac_optarg ;;
935 -enable-* | --enable-*)
936 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
937 # Reject names that are not valid shell variable names.
938 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
939 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
940 { (exit 1); exit 1; }; }
941 ac_useropt_orig=$ac_useropt
942 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
943 case $ac_user_opts in
945 "enable_$ac_useropt"
946 "*) ;;
947 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
948 ac_unrecognized_sep=', ';;
949 esac
950 eval enable_$ac_useropt=\$ac_optarg ;;
952 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
953 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
954 | --exec | --exe | --ex)
955 ac_prev=exec_prefix ;;
956 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
957 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
958 | --exec=* | --exe=* | --ex=*)
959 exec_prefix=$ac_optarg ;;
961 -gas | --gas | --ga | --g)
962 # Obsolete; use --with-gas.
963 with_gas=yes ;;
965 -help | --help | --hel | --he | -h)
966 ac_init_help=long ;;
967 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
968 ac_init_help=recursive ;;
969 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
970 ac_init_help=short ;;
972 -host | --host | --hos | --ho)
973 ac_prev=host_alias ;;
974 -host=* | --host=* | --hos=* | --ho=*)
975 host_alias=$ac_optarg ;;
977 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
978 ac_prev=htmldir ;;
979 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
980 | --ht=*)
981 htmldir=$ac_optarg ;;
983 -includedir | --includedir | --includedi | --included | --include \
984 | --includ | --inclu | --incl | --inc)
985 ac_prev=includedir ;;
986 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
987 | --includ=* | --inclu=* | --incl=* | --inc=*)
988 includedir=$ac_optarg ;;
990 -infodir | --infodir | --infodi | --infod | --info | --inf)
991 ac_prev=infodir ;;
992 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
993 infodir=$ac_optarg ;;
995 -libdir | --libdir | --libdi | --libd)
996 ac_prev=libdir ;;
997 -libdir=* | --libdir=* | --libdi=* | --libd=*)
998 libdir=$ac_optarg ;;
1000 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1001 | --libexe | --libex | --libe)
1002 ac_prev=libexecdir ;;
1003 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1004 | --libexe=* | --libex=* | --libe=*)
1005 libexecdir=$ac_optarg ;;
1007 -localedir | --localedir | --localedi | --localed | --locale)
1008 ac_prev=localedir ;;
1009 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1010 localedir=$ac_optarg ;;
1012 -localstatedir | --localstatedir | --localstatedi | --localstated \
1013 | --localstate | --localstat | --localsta | --localst | --locals)
1014 ac_prev=localstatedir ;;
1015 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1016 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1017 localstatedir=$ac_optarg ;;
1019 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1020 ac_prev=mandir ;;
1021 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1022 mandir=$ac_optarg ;;
1024 -nfp | --nfp | --nf)
1025 # Obsolete; use --without-fp.
1026 with_fp=no ;;
1028 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1029 | --no-cr | --no-c | -n)
1030 no_create=yes ;;
1032 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1033 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1034 no_recursion=yes ;;
1036 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1037 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1038 | --oldin | --oldi | --old | --ol | --o)
1039 ac_prev=oldincludedir ;;
1040 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1041 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1042 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1043 oldincludedir=$ac_optarg ;;
1045 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1046 ac_prev=prefix ;;
1047 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1048 prefix=$ac_optarg ;;
1050 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1051 | --program-pre | --program-pr | --program-p)
1052 ac_prev=program_prefix ;;
1053 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1054 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1055 program_prefix=$ac_optarg ;;
1057 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1058 | --program-suf | --program-su | --program-s)
1059 ac_prev=program_suffix ;;
1060 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1061 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1062 program_suffix=$ac_optarg ;;
1064 -program-transform-name | --program-transform-name \
1065 | --program-transform-nam | --program-transform-na \
1066 | --program-transform-n | --program-transform- \
1067 | --program-transform | --program-transfor \
1068 | --program-transfo | --program-transf \
1069 | --program-trans | --program-tran \
1070 | --progr-tra | --program-tr | --program-t)
1071 ac_prev=program_transform_name ;;
1072 -program-transform-name=* | --program-transform-name=* \
1073 | --program-transform-nam=* | --program-transform-na=* \
1074 | --program-transform-n=* | --program-transform-=* \
1075 | --program-transform=* | --program-transfor=* \
1076 | --program-transfo=* | --program-transf=* \
1077 | --program-trans=* | --program-tran=* \
1078 | --progr-tra=* | --program-tr=* | --program-t=*)
1079 program_transform_name=$ac_optarg ;;
1081 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1082 ac_prev=pdfdir ;;
1083 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1084 pdfdir=$ac_optarg ;;
1086 -psdir | --psdir | --psdi | --psd | --ps)
1087 ac_prev=psdir ;;
1088 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1089 psdir=$ac_optarg ;;
1091 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1092 | -silent | --silent | --silen | --sile | --sil)
1093 silent=yes ;;
1095 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1096 ac_prev=sbindir ;;
1097 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1098 | --sbi=* | --sb=*)
1099 sbindir=$ac_optarg ;;
1101 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1102 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1103 | --sharedst | --shareds | --shared | --share | --shar \
1104 | --sha | --sh)
1105 ac_prev=sharedstatedir ;;
1106 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1107 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1108 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1109 | --sha=* | --sh=*)
1110 sharedstatedir=$ac_optarg ;;
1112 -site | --site | --sit)
1113 ac_prev=site ;;
1114 -site=* | --site=* | --sit=*)
1115 site=$ac_optarg ;;
1117 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1118 ac_prev=srcdir ;;
1119 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1120 srcdir=$ac_optarg ;;
1122 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1123 | --syscon | --sysco | --sysc | --sys | --sy)
1124 ac_prev=sysconfdir ;;
1125 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1126 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1127 sysconfdir=$ac_optarg ;;
1129 -target | --target | --targe | --targ | --tar | --ta | --t)
1130 ac_prev=target_alias ;;
1131 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1132 target_alias=$ac_optarg ;;
1134 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1135 verbose=yes ;;
1137 -version | --version | --versio | --versi | --vers | -V)
1138 ac_init_version=: ;;
1140 -with-* | --with-*)
1141 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1142 # Reject names that are not valid shell variable names.
1143 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1144 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1145 { (exit 1); exit 1; }; }
1146 ac_useropt_orig=$ac_useropt
1147 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1148 case $ac_user_opts in
1150 "with_$ac_useropt"
1151 "*) ;;
1152 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1153 ac_unrecognized_sep=', ';;
1154 esac
1155 eval with_$ac_useropt=\$ac_optarg ;;
1157 -without-* | --without-*)
1158 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1159 # Reject names that are not valid shell variable names.
1160 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1161 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1162 { (exit 1); exit 1; }; }
1163 ac_useropt_orig=$ac_useropt
1164 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1165 case $ac_user_opts in
1167 "with_$ac_useropt"
1168 "*) ;;
1169 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1170 ac_unrecognized_sep=', ';;
1171 esac
1172 eval with_$ac_useropt=no ;;
1174 --x)
1175 # Obsolete; use --with-x.
1176 with_x=yes ;;
1178 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1179 | --x-incl | --x-inc | --x-in | --x-i)
1180 ac_prev=x_includes ;;
1181 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1182 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1183 x_includes=$ac_optarg ;;
1185 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1186 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1187 ac_prev=x_libraries ;;
1188 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1189 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1190 x_libraries=$ac_optarg ;;
1192 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1193 Try \`$0 --help' for more information." >&2
1194 { (exit 1); exit 1; }; }
1197 *=*)
1198 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1199 # Reject names that are not valid shell variable names.
1200 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1201 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1202 { (exit 1); exit 1; }; }
1203 eval $ac_envvar=\$ac_optarg
1204 export $ac_envvar ;;
1207 # FIXME: should be removed in autoconf 3.0.
1208 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1209 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1210 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1211 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1214 esac
1215 done
1217 if test -n "$ac_prev"; then
1218 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1219 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1220 { (exit 1); exit 1; }; }
1223 if test -n "$ac_unrecognized_opts"; then
1224 case $enable_option_checking in
1225 no) ;;
1226 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1227 { (exit 1); exit 1; }; } ;;
1228 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1229 esac
1232 # Check all directory arguments for consistency.
1233 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1234 datadir sysconfdir sharedstatedir localstatedir includedir \
1235 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1236 libdir localedir mandir
1238 eval ac_val=\$$ac_var
1239 # Remove trailing slashes.
1240 case $ac_val in
1241 */ )
1242 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1243 eval $ac_var=\$ac_val;;
1244 esac
1245 # Be sure to have absolute directory names.
1246 case $ac_val in
1247 [\\/$]* | ?:[\\/]* ) continue;;
1248 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1249 esac
1250 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1251 { (exit 1); exit 1; }; }
1252 done
1254 # There might be people who depend on the old broken behavior: `$host'
1255 # used to hold the argument of --host etc.
1256 # FIXME: To remove some day.
1257 build=$build_alias
1258 host=$host_alias
1259 target=$target_alias
1261 # FIXME: To remove some day.
1262 if test "x$host_alias" != x; then
1263 if test "x$build_alias" = x; then
1264 cross_compiling=maybe
1265 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1266 If a cross compiler is detected then cross compile mode will be used." >&2
1267 elif test "x$build_alias" != "x$host_alias"; then
1268 cross_compiling=yes
1272 ac_tool_prefix=
1273 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1275 test "$silent" = yes && exec 6>/dev/null
1278 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1279 ac_ls_di=`ls -di .` &&
1280 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1281 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1282 { (exit 1); exit 1; }; }
1283 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1284 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1285 { (exit 1); exit 1; }; }
1288 # Find the source files, if location was not specified.
1289 if test -z "$srcdir"; then
1290 ac_srcdir_defaulted=yes
1291 # Try the directory containing this script, then the parent directory.
1292 ac_confdir=`$as_dirname -- "$as_myself" ||
1293 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1294 X"$as_myself" : 'X\(//\)[^/]' \| \
1295 X"$as_myself" : 'X\(//\)$' \| \
1296 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1297 $as_echo X"$as_myself" |
1298 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1299 s//\1/
1302 /^X\(\/\/\)[^/].*/{
1303 s//\1/
1306 /^X\(\/\/\)$/{
1307 s//\1/
1310 /^X\(\/\).*/{
1311 s//\1/
1314 s/.*/./; q'`
1315 srcdir=$ac_confdir
1316 if test ! -r "$srcdir/$ac_unique_file"; then
1317 srcdir=..
1319 else
1320 ac_srcdir_defaulted=no
1322 if test ! -r "$srcdir/$ac_unique_file"; then
1323 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1324 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1325 { (exit 1); exit 1; }; }
1327 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1328 ac_abs_confdir=`(
1329 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1330 { (exit 1); exit 1; }; }
1331 pwd)`
1332 # When building in place, set srcdir=.
1333 if test "$ac_abs_confdir" = "$ac_pwd"; then
1334 srcdir=.
1336 # Remove unnecessary trailing slashes from srcdir.
1337 # Double slashes in file names in object file debugging info
1338 # mess up M-x gdb in Emacs.
1339 case $srcdir in
1340 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1341 esac
1342 for ac_var in $ac_precious_vars; do
1343 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1344 eval ac_env_${ac_var}_value=\$${ac_var}
1345 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1346 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1347 done
1350 # Report the --help message.
1352 if test "$ac_init_help" = "long"; then
1353 # Omit some internal or obsolete options to make the list less imposing.
1354 # This message is too long to be a string in the A/UX 3.1 sh.
1355 cat <<_ACEOF
1356 \`configure' configures python 2.7 to adapt to many kinds of systems.
1358 Usage: $0 [OPTION]... [VAR=VALUE]...
1360 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1361 VAR=VALUE. See below for descriptions of some of the useful variables.
1363 Defaults for the options are specified in brackets.
1365 Configuration:
1366 -h, --help display this help and exit
1367 --help=short display options specific to this package
1368 --help=recursive display the short help of all the included packages
1369 -V, --version display version information and exit
1370 -q, --quiet, --silent do not print \`checking...' messages
1371 --cache-file=FILE cache test results in FILE [disabled]
1372 -C, --config-cache alias for \`--cache-file=config.cache'
1373 -n, --no-create do not create output files
1374 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1376 Installation directories:
1377 --prefix=PREFIX install architecture-independent files in PREFIX
1378 [$ac_default_prefix]
1379 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1380 [PREFIX]
1382 By default, \`make install' will install all the files in
1383 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1384 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1385 for instance \`--prefix=\$HOME'.
1387 For better control, use the options below.
1389 Fine tuning of the installation directories:
1390 --bindir=DIR user executables [EPREFIX/bin]
1391 --sbindir=DIR system admin executables [EPREFIX/sbin]
1392 --libexecdir=DIR program executables [EPREFIX/libexec]
1393 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1394 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1395 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1396 --libdir=DIR object code libraries [EPREFIX/lib]
1397 --includedir=DIR C header files [PREFIX/include]
1398 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1399 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1400 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1401 --infodir=DIR info documentation [DATAROOTDIR/info]
1402 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1403 --mandir=DIR man documentation [DATAROOTDIR/man]
1404 --docdir=DIR documentation root [DATAROOTDIR/doc/python]
1405 --htmldir=DIR html documentation [DOCDIR]
1406 --dvidir=DIR dvi documentation [DOCDIR]
1407 --pdfdir=DIR pdf documentation [DOCDIR]
1408 --psdir=DIR ps documentation [DOCDIR]
1409 _ACEOF
1411 cat <<\_ACEOF
1412 _ACEOF
1415 if test -n "$ac_init_help"; then
1416 case $ac_init_help in
1417 short | recursive ) echo "Configuration of python 2.7:";;
1418 esac
1419 cat <<\_ACEOF
1421 Optional Features:
1422 --disable-option-checking ignore unrecognized --enable/--with options
1423 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1424 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1425 --enable-universalsdk[=SDKDIR]
1426 Build against Mac OS X 10.4u SDK (ppc/i386)
1427 --enable-framework[=INSTALLDIR]
1428 Build (MacOSX|Darwin) framework
1429 --enable-shared disable/enable building shared python library
1430 --enable-profiling enable C-level code profiling
1431 --enable-toolbox-glue disable/enable MacOSX glue code for extensions
1432 --enable-ipv6 Enable ipv6 (with ipv4) support
1433 --disable-ipv6 Disable ipv6 support
1434 --enable-big-digits[=BITS]
1435 use big digits for Python longs [BITS=30]
1436 --enable-unicode[=ucs[24]]
1437 Enable Unicode strings (default is yes)
1439 Optional Packages:
1440 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1441 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1442 --with-universal-archs=ARCH
1443 select architectures for universal build ("32-bit",
1444 "64-bit" or "all")
1445 --with-framework-name=FRAMEWORK
1446 specify an alternate name of the framework built
1447 with --enable-framework
1448 --without-gcc never use gcc
1449 --with-cxx-main=<compiler>
1450 compile main() and link python executable with C++
1451 compiler
1452 --with-suffix=.exe set executable suffix
1453 --with-pydebug build with Py_DEBUG defined
1454 --with-libs='lib1 ...' link against additional libs
1455 --with-system-ffi build _ctypes module using an installed ffi library
1456 --with-dbmliborder=db1:db2:...
1457 order to check db backends for dbm. Valid value is a
1458 colon separated string with the backend names
1459 `ndbm', `gdbm' and `bdb'.
1460 --with-signal-module disable/enable signal module
1461 --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries
1462 --with(out)-threads[=DIRECTORY]
1463 disable/enable thread support
1464 --with(out)-thread[=DIRECTORY]
1465 deprecated; use --with(out)-threads
1466 --with-pth use GNU pth threading libraries
1467 --with(out)-doc-strings disable/enable documentation strings
1468 --with(out)-tsc enable/disable timestamp counter profile
1469 --with(out)-pymalloc disable/enable specialized mallocs
1470 --with-wctype-functions use wctype.h functions
1471 --with-fpectl enable SIGFPE catching
1472 --with-libm=STRING math library
1473 --with-libc=STRING C library
1475 Some influential environment variables:
1476 CC C compiler command
1477 CFLAGS C compiler flags
1478 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1479 nonstandard directory <lib dir>
1480 LIBS libraries to pass to the linker, e.g. -l<library>
1481 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1482 you have headers in a nonstandard directory <include dir>
1483 CPP C preprocessor
1485 Use these variables to override the choices made by `configure' or to help
1486 it to find libraries and programs with nonstandard names/locations.
1488 Report bugs to <http://bugs.python.org/>.
1489 _ACEOF
1490 ac_status=$?
1493 if test "$ac_init_help" = "recursive"; then
1494 # If there are subdirs, report their specific --help.
1495 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1496 test -d "$ac_dir" ||
1497 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1498 continue
1499 ac_builddir=.
1501 case "$ac_dir" in
1502 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1504 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1505 # A ".." for each directory in $ac_dir_suffix.
1506 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1507 case $ac_top_builddir_sub in
1508 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1509 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1510 esac ;;
1511 esac
1512 ac_abs_top_builddir=$ac_pwd
1513 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1514 # for backward compatibility:
1515 ac_top_builddir=$ac_top_build_prefix
1517 case $srcdir in
1518 .) # We are building in place.
1519 ac_srcdir=.
1520 ac_top_srcdir=$ac_top_builddir_sub
1521 ac_abs_top_srcdir=$ac_pwd ;;
1522 [\\/]* | ?:[\\/]* ) # Absolute name.
1523 ac_srcdir=$srcdir$ac_dir_suffix;
1524 ac_top_srcdir=$srcdir
1525 ac_abs_top_srcdir=$srcdir ;;
1526 *) # Relative name.
1527 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1528 ac_top_srcdir=$ac_top_build_prefix$srcdir
1529 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1530 esac
1531 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1533 cd "$ac_dir" || { ac_status=$?; continue; }
1534 # Check for guested configure.
1535 if test -f "$ac_srcdir/configure.gnu"; then
1536 echo &&
1537 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1538 elif test -f "$ac_srcdir/configure"; then
1539 echo &&
1540 $SHELL "$ac_srcdir/configure" --help=recursive
1541 else
1542 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1543 fi || ac_status=$?
1544 cd "$ac_pwd" || { ac_status=$?; break; }
1545 done
1548 test -n "$ac_init_help" && exit $ac_status
1549 if $ac_init_version; then
1550 cat <<\_ACEOF
1551 python configure 2.7
1552 generated by GNU Autoconf 2.63
1554 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1555 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1556 This configure script is free software; the Free Software Foundation
1557 gives unlimited permission to copy, distribute and modify it.
1558 _ACEOF
1559 exit
1561 cat >config.log <<_ACEOF
1562 This file contains any messages produced by compilers while
1563 running configure, to aid debugging if configure makes a mistake.
1565 It was created by python $as_me 2.7, which was
1566 generated by GNU Autoconf 2.63. Invocation command line was
1568 $ $0 $@
1570 _ACEOF
1571 exec 5>>config.log
1573 cat <<_ASUNAME
1574 ## --------- ##
1575 ## Platform. ##
1576 ## --------- ##
1578 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1579 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1580 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1581 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1582 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1584 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1585 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1587 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1588 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1589 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1590 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1591 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1592 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1593 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1595 _ASUNAME
1597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1598 for as_dir in $PATH
1600 IFS=$as_save_IFS
1601 test -z "$as_dir" && as_dir=.
1602 $as_echo "PATH: $as_dir"
1603 done
1604 IFS=$as_save_IFS
1606 } >&5
1608 cat >&5 <<_ACEOF
1611 ## ----------- ##
1612 ## Core tests. ##
1613 ## ----------- ##
1615 _ACEOF
1618 # Keep a trace of the command line.
1619 # Strip out --no-create and --no-recursion so they do not pile up.
1620 # Strip out --silent because we don't want to record it for future runs.
1621 # Also quote any args containing shell meta-characters.
1622 # Make two passes to allow for proper duplicate-argument suppression.
1623 ac_configure_args=
1624 ac_configure_args0=
1625 ac_configure_args1=
1626 ac_must_keep_next=false
1627 for ac_pass in 1 2
1629 for ac_arg
1631 case $ac_arg in
1632 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1633 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1634 | -silent | --silent | --silen | --sile | --sil)
1635 continue ;;
1636 *\'*)
1637 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1638 esac
1639 case $ac_pass in
1640 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1642 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1643 if test $ac_must_keep_next = true; then
1644 ac_must_keep_next=false # Got value, back to normal.
1645 else
1646 case $ac_arg in
1647 *=* | --config-cache | -C | -disable-* | --disable-* \
1648 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1649 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1650 | -with-* | --with-* | -without-* | --without-* | --x)
1651 case "$ac_configure_args0 " in
1652 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1653 esac
1655 -* ) ac_must_keep_next=true ;;
1656 esac
1658 ac_configure_args="$ac_configure_args '$ac_arg'"
1660 esac
1661 done
1662 done
1663 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1664 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1666 # When interrupted or exit'd, cleanup temporary files, and complete
1667 # config.log. We remove comments because anyway the quotes in there
1668 # would cause problems or look ugly.
1669 # WARNING: Use '\'' to represent an apostrophe within the trap.
1670 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1671 trap 'exit_status=$?
1672 # Save into config.log some information that might help in debugging.
1674 echo
1676 cat <<\_ASBOX
1677 ## ---------------- ##
1678 ## Cache variables. ##
1679 ## ---------------- ##
1680 _ASBOX
1681 echo
1682 # The following way of writing the cache mishandles newlines in values,
1684 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1685 eval ac_val=\$$ac_var
1686 case $ac_val in #(
1687 *${as_nl}*)
1688 case $ac_var in #(
1689 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1690 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1691 esac
1692 case $ac_var in #(
1693 _ | IFS | as_nl) ;; #(
1694 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1695 *) $as_unset $ac_var ;;
1696 esac ;;
1697 esac
1698 done
1699 (set) 2>&1 |
1700 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1701 *${as_nl}ac_space=\ *)
1702 sed -n \
1703 "s/'\''/'\''\\\\'\'''\''/g;
1704 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1705 ;; #(
1707 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1709 esac |
1710 sort
1712 echo
1714 cat <<\_ASBOX
1715 ## ----------------- ##
1716 ## Output variables. ##
1717 ## ----------------- ##
1718 _ASBOX
1719 echo
1720 for ac_var in $ac_subst_vars
1722 eval ac_val=\$$ac_var
1723 case $ac_val in
1724 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1725 esac
1726 $as_echo "$ac_var='\''$ac_val'\''"
1727 done | sort
1728 echo
1730 if test -n "$ac_subst_files"; then
1731 cat <<\_ASBOX
1732 ## ------------------- ##
1733 ## File substitutions. ##
1734 ## ------------------- ##
1735 _ASBOX
1736 echo
1737 for ac_var in $ac_subst_files
1739 eval ac_val=\$$ac_var
1740 case $ac_val in
1741 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1742 esac
1743 $as_echo "$ac_var='\''$ac_val'\''"
1744 done | sort
1745 echo
1748 if test -s confdefs.h; then
1749 cat <<\_ASBOX
1750 ## ----------- ##
1751 ## confdefs.h. ##
1752 ## ----------- ##
1753 _ASBOX
1754 echo
1755 cat confdefs.h
1756 echo
1758 test "$ac_signal" != 0 &&
1759 $as_echo "$as_me: caught signal $ac_signal"
1760 $as_echo "$as_me: exit $exit_status"
1761 } >&5
1762 rm -f core *.core core.conftest.* &&
1763 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1764 exit $exit_status
1766 for ac_signal in 1 2 13 15; do
1767 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1768 done
1769 ac_signal=0
1771 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1772 rm -f -r conftest* confdefs.h
1774 # Predefined preprocessor variables.
1776 cat >>confdefs.h <<_ACEOF
1777 #define PACKAGE_NAME "$PACKAGE_NAME"
1778 _ACEOF
1781 cat >>confdefs.h <<_ACEOF
1782 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1783 _ACEOF
1786 cat >>confdefs.h <<_ACEOF
1787 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1788 _ACEOF
1791 cat >>confdefs.h <<_ACEOF
1792 #define PACKAGE_STRING "$PACKAGE_STRING"
1793 _ACEOF
1796 cat >>confdefs.h <<_ACEOF
1797 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1798 _ACEOF
1801 # Let the site file select an alternate cache file if it wants to.
1802 # Prefer an explicitly selected file to automatically selected ones.
1803 ac_site_file1=NONE
1804 ac_site_file2=NONE
1805 if test -n "$CONFIG_SITE"; then
1806 ac_site_file1=$CONFIG_SITE
1807 elif test "x$prefix" != xNONE; then
1808 ac_site_file1=$prefix/share/config.site
1809 ac_site_file2=$prefix/etc/config.site
1810 else
1811 ac_site_file1=$ac_default_prefix/share/config.site
1812 ac_site_file2=$ac_default_prefix/etc/config.site
1814 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1816 test "x$ac_site_file" = xNONE && continue
1817 if test -r "$ac_site_file"; then
1818 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1819 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1820 sed 's/^/| /' "$ac_site_file" >&5
1821 . "$ac_site_file"
1823 done
1825 if test -r "$cache_file"; then
1826 # Some versions of bash will fail to source /dev/null (special
1827 # files actually), so we avoid doing that.
1828 if test -f "$cache_file"; then
1829 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1830 $as_echo "$as_me: loading cache $cache_file" >&6;}
1831 case $cache_file in
1832 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1833 *) . "./$cache_file";;
1834 esac
1836 else
1837 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1838 $as_echo "$as_me: creating cache $cache_file" >&6;}
1839 >$cache_file
1842 # Check that the precious variables saved in the cache have kept the same
1843 # value.
1844 ac_cache_corrupted=false
1845 for ac_var in $ac_precious_vars; do
1846 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1847 eval ac_new_set=\$ac_env_${ac_var}_set
1848 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1849 eval ac_new_val=\$ac_env_${ac_var}_value
1850 case $ac_old_set,$ac_new_set in
1851 set,)
1852 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1853 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1854 ac_cache_corrupted=: ;;
1855 ,set)
1856 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1857 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1858 ac_cache_corrupted=: ;;
1859 ,);;
1861 if test "x$ac_old_val" != "x$ac_new_val"; then
1862 # differences in whitespace do not lead to failure.
1863 ac_old_val_w=`echo x $ac_old_val`
1864 ac_new_val_w=`echo x $ac_new_val`
1865 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1866 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1867 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1868 ac_cache_corrupted=:
1869 else
1870 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1871 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1872 eval $ac_var=\$ac_old_val
1874 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1875 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1876 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1877 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1878 fi;;
1879 esac
1880 # Pass precious variables to config.status.
1881 if test "$ac_new_set" = set; then
1882 case $ac_new_val in
1883 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1884 *) ac_arg=$ac_var=$ac_new_val ;;
1885 esac
1886 case " $ac_configure_args " in
1887 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1888 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1889 esac
1891 done
1892 if $ac_cache_corrupted; then
1893 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1894 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1895 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1896 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1897 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1898 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1899 { (exit 1); exit 1; }; }
1926 ac_ext=c
1927 ac_cpp='$CPP $CPPFLAGS'
1928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1934 ac_config_headers="$ac_config_headers pyconfig.h"
1938 if test "$prefix" != "/"; then
1939 prefix=`echo "$prefix" | sed -e 's/\/$//g'`
1947 # We don't use PACKAGE_ variables, and they cause conflicts
1948 # with other autoconf-based packages that include Python.h
1949 grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
1950 rm confdefs.h
1951 mv confdefs.h.new confdefs.h
1954 VERSION=2.7
1957 SOVERSION=1.0
1959 # The later defininition of _XOPEN_SOURCE disables certain features
1960 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
1962 cat >>confdefs.h <<\_ACEOF
1963 #define _GNU_SOURCE 1
1964 _ACEOF
1967 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1968 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
1969 # them.
1971 cat >>confdefs.h <<\_ACEOF
1972 #define _NETBSD_SOURCE 1
1973 _ACEOF
1976 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1977 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
1978 # them.
1980 cat >>confdefs.h <<\_ACEOF
1981 #define __BSD_VISIBLE 1
1982 _ACEOF
1985 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1986 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
1988 cat >>confdefs.h <<\_ACEOF
1989 #define _BSD_TYPES 1
1990 _ACEOF
1993 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1994 # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable
1995 # them.
1997 cat >>confdefs.h <<\_ACEOF
1998 #define _DARWIN_C_SOURCE 1
1999 _ACEOF
2003 define_xopen_source=yes
2005 # Arguments passed to configure.
2007 CONFIG_ARGS="$ac_configure_args"
2009 # Check whether --enable-universalsdk was given.
2010 if test "${enable_universalsdk+set}" = set; then
2011 enableval=$enable_universalsdk;
2012 case $enableval in
2013 yes)
2014 enableval=/Developer/SDKs/MacOSX10.4u.sdk
2016 esac
2017 case $enableval in
2019 UNIVERSALSDK=
2020 enable_universalsdk=
2023 UNIVERSALSDK=$enableval
2025 esac
2027 else
2029 UNIVERSALSDK=
2030 enable_universalsdk=
2036 ARCH_RUN_32BIT=
2039 UNIVERSAL_ARCHS="32-bit"
2040 { $as_echo "$as_me:$LINENO: checking for --with-universal-archs" >&5
2041 $as_echo_n "checking for --with-universal-archs... " >&6; }
2043 # Check whether --with-universal-archs was given.
2044 if test "${with_universal_archs+set}" = set; then
2045 withval=$with_universal_archs;
2046 { $as_echo "$as_me:$LINENO: result: $withval" >&5
2047 $as_echo "$withval" >&6; }
2048 UNIVERSAL_ARCHS="$withval"
2050 else
2052 { $as_echo "$as_me:$LINENO: result: 32-bit" >&5
2053 $as_echo "32-bit" >&6; }
2061 # Check whether --with-framework-name was given.
2062 if test "${with_framework_name+set}" = set; then
2063 withval=$with_framework_name;
2064 PYTHONFRAMEWORK=${withval}
2065 PYTHONFRAMEWORKDIR=${withval}.framework
2066 PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'`
2068 else
2070 PYTHONFRAMEWORK=Python
2071 PYTHONFRAMEWORKDIR=Python.framework
2072 PYTHONFRAMEWORKIDENTIFIER=org.python.python
2076 # Check whether --enable-framework was given.
2077 if test "${enable_framework+set}" = set; then
2078 enableval=$enable_framework;
2079 case $enableval in
2080 yes)
2081 enableval=/Library/Frameworks
2082 esac
2083 case $enableval in
2085 PYTHONFRAMEWORK=
2086 PYTHONFRAMEWORKDIR=no-framework
2087 PYTHONFRAMEWORKPREFIX=
2088 PYTHONFRAMEWORKINSTALLDIR=
2089 FRAMEWORKINSTALLFIRST=
2090 FRAMEWORKINSTALLLAST=
2091 FRAMEWORKALTINSTALLFIRST=
2092 FRAMEWORKALTINSTALLLAST=
2093 if test "x${prefix}" = "xNONE"; then
2094 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
2095 else
2096 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
2098 enable_framework=
2101 PYTHONFRAMEWORKPREFIX=$enableval
2102 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
2103 FRAMEWORKINSTALLFIRST="frameworkinstallstructure"
2104 FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure bininstall maninstall"
2105 if test "$UNIVERSAL_ARCHS" = "all"
2106 then
2107 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkinstallunixtools4way"
2108 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkaltinstallunixtools4way"
2109 else
2110 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools"
2111 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
2114 if test "x${prefix}" = "xNONE" ; then
2115 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
2116 else
2117 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
2119 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
2121 # Add files for Mac specific code to the list of output
2122 # files:
2123 ac_config_files="$ac_config_files Mac/Makefile"
2125 ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile"
2127 ac_config_files="$ac_config_files Mac/IDLE/Makefile"
2129 ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist"
2131 ac_config_files="$ac_config_files Mac/Resources/app/Info.plist"
2133 esac
2135 else
2137 PYTHONFRAMEWORK=
2138 PYTHONFRAMEWORKDIR=no-framework
2139 PYTHONFRAMEWORKPREFIX=
2140 PYTHONFRAMEWORKINSTALLDIR=
2141 FRAMEWORKINSTALLFIRST=
2142 FRAMEWORKINSTALLLAST=
2143 FRAMEWORKALTINSTALLFIRST=
2144 FRAMEWORKALTINSTALLLAST=
2145 if test "x${prefix}" = "xNONE" ; then
2146 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
2147 else
2148 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
2150 enable_framework=
2152 if test "$UNIVERSAL_ARCHS" = "all"
2153 then
2154 FRAMEWORKINSTALLLAST=update4wayuniversal
2155 FRAMEWORKALTINSTALLLAST=update4wayuniversal
2171 ##AC_ARG_WITH(dyld,
2172 ## AC_HELP_STRING(--with-dyld,
2173 ## Use (OpenStep|Rhapsody) dynamic linker))
2175 # Set name for machine-dependent library files
2177 { $as_echo "$as_me:$LINENO: checking MACHDEP" >&5
2178 $as_echo_n "checking MACHDEP... " >&6; }
2179 if test -z "$MACHDEP"
2180 then
2181 ac_sys_system=`uname -s`
2182 if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \
2183 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
2184 ac_sys_release=`uname -v`
2185 else
2186 ac_sys_release=`uname -r`
2188 ac_md_system=`echo $ac_sys_system |
2189 tr -d '/ ' | tr '[A-Z]' '[a-z]'`
2190 ac_md_release=`echo $ac_sys_release |
2191 tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'`
2192 MACHDEP="$ac_md_system$ac_md_release"
2194 case $MACHDEP in
2195 cygwin*) MACHDEP="cygwin";;
2196 darwin*) MACHDEP="darwin";;
2197 atheos*) MACHDEP="atheos";;
2198 irix646) MACHDEP="irix6";;
2199 '') MACHDEP="unknown";;
2200 esac
2203 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
2204 # disable features if it is defined, without any means to access these
2205 # features as extensions. For these systems, we skip the definition of
2206 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
2207 # some feature, make sure there is no alternative way to access this
2208 # feature. Also, when using wildcards, make sure you have verified the
2209 # need for not defining _XOPEN_SOURCE on all systems matching the
2210 # wildcard, and that the wildcard does not include future systems
2211 # (which may remove their limitations).
2212 case $ac_sys_system/$ac_sys_release in
2213 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
2214 # even though select is a POSIX function. Reported by J. Ribbens.
2215 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
2216 OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0123])
2217 define_xopen_source=no
2218 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
2219 # also defined. This can be overridden by defining _BSD_SOURCE
2220 # As this has a different meaning on Linux, only define it on OpenBSD
2222 cat >>confdefs.h <<\_ACEOF
2223 #define _BSD_SOURCE 1
2224 _ACEOF
2227 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
2228 # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
2229 # Marc Recht
2230 NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S])
2231 define_xopen_source=no;;
2232 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
2233 # of union __?sigval. Reported by Stuart Bishop.
2234 SunOS/5.6)
2235 define_xopen_source=no;;
2236 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
2237 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
2238 # Reconfirmed for 7.1.4 by Martin v. Loewis.
2239 OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
2240 define_xopen_source=no;;
2241 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
2242 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
2243 SCO_SV/3.2)
2244 define_xopen_source=no;;
2245 # On FreeBSD 4, the math functions C89 does not cover are never defined
2246 # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them.
2247 FreeBSD/4.*)
2248 define_xopen_source=no;;
2249 # On MacOS X 10.2, a bug in ncurses.h means that it craps out if
2250 # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which
2251 # identifies itself as Darwin/7.*
2252 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2253 # disables platform specific features beyond repair.
2254 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2255 # has no effect, don't bother defining them
2256 Darwin/[6789].*)
2257 define_xopen_source=no;;
2258 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
2259 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
2260 # or has another value. By not (re)defining it, the defaults come in place.
2261 AIX/4)
2262 define_xopen_source=no;;
2263 AIX/5)
2264 if test `uname -r` -eq 1; then
2265 define_xopen_source=no
2268 # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from
2269 # defining NI_NUMERICHOST.
2270 QNX/6.3.2)
2271 define_xopen_source=no
2274 esac
2276 if test $define_xopen_source = yes
2277 then
2278 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
2279 # defined precisely as g++ defines it
2280 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
2281 # compiler
2282 case $ac_sys_system/$ac_sys_release in
2283 SunOS/5.8|SunOS/5.9|SunOS/5.10)
2285 cat >>confdefs.h <<\_ACEOF
2286 #define _XOPEN_SOURCE 500
2287 _ACEOF
2292 cat >>confdefs.h <<\_ACEOF
2293 #define _XOPEN_SOURCE 600
2294 _ACEOF
2297 esac
2299 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
2300 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
2301 # several APIs are not declared. Since this is also needed in some
2302 # cases for HP-UX, we define it globally.
2303 # except for Solaris 10, where it must not be defined,
2304 # as it implies XPG4.2
2305 case $ac_sys_system/$ac_sys_release in
2306 SunOS/5.10)
2310 cat >>confdefs.h <<\_ACEOF
2311 #define _XOPEN_SOURCE_EXTENDED 1
2312 _ACEOF
2315 esac
2318 cat >>confdefs.h <<\_ACEOF
2319 #define _POSIX_C_SOURCE 200112L
2320 _ACEOF
2326 # SGI compilers allow the specification of the both the ABI and the
2327 # ISA on the command line. Depending on the values of these switches,
2328 # different and often incompatable code will be generated.
2330 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
2331 # thus supply support for various ABI/ISA combinations. The MACHDEP
2332 # variable is also adjusted.
2335 if test ! -z "$SGI_ABI"
2336 then
2337 CC="cc $SGI_ABI"
2338 LDFLAGS="$SGI_ABI $LDFLAGS"
2339 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
2341 { $as_echo "$as_me:$LINENO: result: $MACHDEP" >&5
2342 $as_echo "$MACHDEP" >&6; }
2344 # And add extra plat-mac for darwin
2347 { $as_echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5
2348 $as_echo_n "checking EXTRAPLATDIR... " >&6; }
2349 if test -z "$EXTRAPLATDIR"
2350 then
2351 case $MACHDEP in
2352 darwin)
2353 EXTRAPLATDIR="\$(PLATMACDIRS)"
2354 EXTRAMACHDEPPATH="\$(PLATMACPATH)"
2357 EXTRAPLATDIR=""
2358 EXTRAMACHDEPPATH=""
2360 esac
2362 { $as_echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5
2363 $as_echo "$EXTRAPLATDIR" >&6; }
2365 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
2366 # it may influence the way we can build extensions, so distutils
2367 # needs to check it
2370 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
2371 EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
2373 { $as_echo "$as_me:$LINENO: checking machine type as reported by uname -m" >&5
2374 $as_echo_n "checking machine type as reported by uname -m... " >&6; }
2375 ac_sys_machine=`uname -m`
2376 { $as_echo "$as_me:$LINENO: result: $ac_sys_machine" >&5
2377 $as_echo "$ac_sys_machine" >&6; }
2379 # checks for alternative programs
2381 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
2382 # for debug/optimization stuff. BASECFLAGS is for flags that are required
2383 # just to get things to compile and link. Users are free to override OPT
2384 # when running configure or make. The build should not break if they do.
2385 # BASECFLAGS should generally not be messed with, however.
2387 # XXX shouldn't some/most/all of this code be merged with the stuff later
2388 # on that fiddles with OPT and BASECFLAGS?
2389 { $as_echo "$as_me:$LINENO: checking for --without-gcc" >&5
2390 $as_echo_n "checking for --without-gcc... " >&6; }
2392 # Check whether --with-gcc was given.
2393 if test "${with_gcc+set}" = set; then
2394 withval=$with_gcc;
2395 case $withval in
2396 no) CC=${CC:-cc}
2397 without_gcc=yes;;
2398 yes) CC=gcc
2399 without_gcc=no;;
2400 *) CC=$withval
2401 without_gcc=$withval;;
2402 esac
2403 else
2405 case $ac_sys_system in
2406 AIX*) CC=cc_r
2407 without_gcc=;;
2408 BeOS*)
2409 case $BE_HOST_CPU in
2410 ppc)
2411 CC=mwcc
2412 without_gcc=yes
2413 BASECFLAGS="$BASECFLAGS -export pragma"
2414 OPT="$OPT -O"
2415 LDFLAGS="$LDFLAGS -nodup"
2417 x86)
2418 CC=gcc
2419 without_gcc=no
2420 OPT="$OPT -O"
2423 { { $as_echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5
2424 $as_echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;}
2425 { (exit 1); exit 1; }; }
2427 esac
2428 AR="\$(srcdir)/Modules/ar_beos"
2429 RANLIB=:
2431 Monterey*)
2432 RANLIB=:
2433 without_gcc=;;
2434 *) without_gcc=no;;
2435 esac
2438 { $as_echo "$as_me:$LINENO: result: $without_gcc" >&5
2439 $as_echo "$without_gcc" >&6; }
2441 # If the user switches compilers, we can't believe the cache
2442 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
2443 then
2444 { { $as_echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
2445 (it is also a good idea to do 'make clean' before compiling)" >&5
2446 $as_echo "$as_me: error: cached CC is different -- throw away $cache_file
2447 (it is also a good idea to do 'make clean' before compiling)" >&2;}
2448 { (exit 1); exit 1; }; }
2451 ac_ext=c
2452 ac_cpp='$CPP $CPPFLAGS'
2453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2456 if test -n "$ac_tool_prefix"; then
2457 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2458 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2459 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2460 $as_echo_n "checking for $ac_word... " >&6; }
2461 if test "${ac_cv_prog_CC+set}" = set; then
2462 $as_echo_n "(cached) " >&6
2463 else
2464 if test -n "$CC"; then
2465 ac_cv_prog_CC="$CC" # Let the user override the test.
2466 else
2467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2468 for as_dir in $PATH
2470 IFS=$as_save_IFS
2471 test -z "$as_dir" && as_dir=.
2472 for ac_exec_ext in '' $ac_executable_extensions; do
2473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2474 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2475 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2476 break 2
2478 done
2479 done
2480 IFS=$as_save_IFS
2484 CC=$ac_cv_prog_CC
2485 if test -n "$CC"; then
2486 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2487 $as_echo "$CC" >&6; }
2488 else
2489 { $as_echo "$as_me:$LINENO: result: no" >&5
2490 $as_echo "no" >&6; }
2495 if test -z "$ac_cv_prog_CC"; then
2496 ac_ct_CC=$CC
2497 # Extract the first word of "gcc", so it can be a program name with args.
2498 set dummy gcc; ac_word=$2
2499 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2500 $as_echo_n "checking for $ac_word... " >&6; }
2501 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2502 $as_echo_n "(cached) " >&6
2503 else
2504 if test -n "$ac_ct_CC"; then
2505 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2506 else
2507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2508 for as_dir in $PATH
2510 IFS=$as_save_IFS
2511 test -z "$as_dir" && as_dir=.
2512 for ac_exec_ext in '' $ac_executable_extensions; do
2513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2514 ac_cv_prog_ac_ct_CC="gcc"
2515 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2516 break 2
2518 done
2519 done
2520 IFS=$as_save_IFS
2524 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2525 if test -n "$ac_ct_CC"; then
2526 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2527 $as_echo "$ac_ct_CC" >&6; }
2528 else
2529 { $as_echo "$as_me:$LINENO: result: no" >&5
2530 $as_echo "no" >&6; }
2533 if test "x$ac_ct_CC" = x; then
2534 CC=""
2535 else
2536 case $cross_compiling:$ac_tool_warned in
2537 yes:)
2538 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2539 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2540 ac_tool_warned=yes ;;
2541 esac
2542 CC=$ac_ct_CC
2544 else
2545 CC="$ac_cv_prog_CC"
2548 if test -z "$CC"; then
2549 if test -n "$ac_tool_prefix"; then
2550 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2551 set dummy ${ac_tool_prefix}cc; ac_word=$2
2552 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2553 $as_echo_n "checking for $ac_word... " >&6; }
2554 if test "${ac_cv_prog_CC+set}" = set; then
2555 $as_echo_n "(cached) " >&6
2556 else
2557 if test -n "$CC"; then
2558 ac_cv_prog_CC="$CC" # Let the user override the test.
2559 else
2560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2561 for as_dir in $PATH
2563 IFS=$as_save_IFS
2564 test -z "$as_dir" && as_dir=.
2565 for ac_exec_ext in '' $ac_executable_extensions; do
2566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2567 ac_cv_prog_CC="${ac_tool_prefix}cc"
2568 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2569 break 2
2571 done
2572 done
2573 IFS=$as_save_IFS
2577 CC=$ac_cv_prog_CC
2578 if test -n "$CC"; then
2579 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2580 $as_echo "$CC" >&6; }
2581 else
2582 { $as_echo "$as_me:$LINENO: result: no" >&5
2583 $as_echo "no" >&6; }
2589 if test -z "$CC"; then
2590 # Extract the first word of "cc", so it can be a program name with args.
2591 set dummy cc; ac_word=$2
2592 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2593 $as_echo_n "checking for $ac_word... " >&6; }
2594 if test "${ac_cv_prog_CC+set}" = set; then
2595 $as_echo_n "(cached) " >&6
2596 else
2597 if test -n "$CC"; then
2598 ac_cv_prog_CC="$CC" # Let the user override the test.
2599 else
2600 ac_prog_rejected=no
2601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2602 for as_dir in $PATH
2604 IFS=$as_save_IFS
2605 test -z "$as_dir" && as_dir=.
2606 for ac_exec_ext in '' $ac_executable_extensions; do
2607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2608 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2609 ac_prog_rejected=yes
2610 continue
2612 ac_cv_prog_CC="cc"
2613 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2614 break 2
2616 done
2617 done
2618 IFS=$as_save_IFS
2620 if test $ac_prog_rejected = yes; then
2621 # We found a bogon in the path, so make sure we never use it.
2622 set dummy $ac_cv_prog_CC
2623 shift
2624 if test $# != 0; then
2625 # We chose a different compiler from the bogus one.
2626 # However, it has the same basename, so the bogon will be chosen
2627 # first if we set CC to just the basename; use the full file name.
2628 shift
2629 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2634 CC=$ac_cv_prog_CC
2635 if test -n "$CC"; then
2636 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2637 $as_echo "$CC" >&6; }
2638 else
2639 { $as_echo "$as_me:$LINENO: result: no" >&5
2640 $as_echo "no" >&6; }
2645 if test -z "$CC"; then
2646 if test -n "$ac_tool_prefix"; then
2647 for ac_prog in cl.exe
2649 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2650 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2651 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2652 $as_echo_n "checking for $ac_word... " >&6; }
2653 if test "${ac_cv_prog_CC+set}" = set; then
2654 $as_echo_n "(cached) " >&6
2655 else
2656 if test -n "$CC"; then
2657 ac_cv_prog_CC="$CC" # Let the user override the test.
2658 else
2659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2660 for as_dir in $PATH
2662 IFS=$as_save_IFS
2663 test -z "$as_dir" && as_dir=.
2664 for ac_exec_ext in '' $ac_executable_extensions; do
2665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2666 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2667 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2668 break 2
2670 done
2671 done
2672 IFS=$as_save_IFS
2676 CC=$ac_cv_prog_CC
2677 if test -n "$CC"; then
2678 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2679 $as_echo "$CC" >&6; }
2680 else
2681 { $as_echo "$as_me:$LINENO: result: no" >&5
2682 $as_echo "no" >&6; }
2686 test -n "$CC" && break
2687 done
2689 if test -z "$CC"; then
2690 ac_ct_CC=$CC
2691 for ac_prog in cl.exe
2693 # Extract the first word of "$ac_prog", so it can be a program name with args.
2694 set dummy $ac_prog; ac_word=$2
2695 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2696 $as_echo_n "checking for $ac_word... " >&6; }
2697 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2698 $as_echo_n "(cached) " >&6
2699 else
2700 if test -n "$ac_ct_CC"; then
2701 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2702 else
2703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2704 for as_dir in $PATH
2706 IFS=$as_save_IFS
2707 test -z "$as_dir" && as_dir=.
2708 for ac_exec_ext in '' $ac_executable_extensions; do
2709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2710 ac_cv_prog_ac_ct_CC="$ac_prog"
2711 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2712 break 2
2714 done
2715 done
2716 IFS=$as_save_IFS
2720 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2721 if test -n "$ac_ct_CC"; then
2722 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2723 $as_echo "$ac_ct_CC" >&6; }
2724 else
2725 { $as_echo "$as_me:$LINENO: result: no" >&5
2726 $as_echo "no" >&6; }
2730 test -n "$ac_ct_CC" && break
2731 done
2733 if test "x$ac_ct_CC" = x; then
2734 CC=""
2735 else
2736 case $cross_compiling:$ac_tool_warned in
2737 yes:)
2738 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2739 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2740 ac_tool_warned=yes ;;
2741 esac
2742 CC=$ac_ct_CC
2749 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2750 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2751 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2752 See \`config.log' for more details." >&5
2753 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2754 See \`config.log' for more details." >&2;}
2755 { (exit 1); exit 1; }; }; }
2757 # Provide some information about the compiler.
2758 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2759 set X $ac_compile
2760 ac_compiler=$2
2761 { (ac_try="$ac_compiler --version >&5"
2762 case "(($ac_try" in
2763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2764 *) ac_try_echo=$ac_try;;
2765 esac
2766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2767 $as_echo "$ac_try_echo") >&5
2768 (eval "$ac_compiler --version >&5") 2>&5
2769 ac_status=$?
2770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771 (exit $ac_status); }
2772 { (ac_try="$ac_compiler -v >&5"
2773 case "(($ac_try" in
2774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2775 *) ac_try_echo=$ac_try;;
2776 esac
2777 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2778 $as_echo "$ac_try_echo") >&5
2779 (eval "$ac_compiler -v >&5") 2>&5
2780 ac_status=$?
2781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782 (exit $ac_status); }
2783 { (ac_try="$ac_compiler -V >&5"
2784 case "(($ac_try" in
2785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2786 *) ac_try_echo=$ac_try;;
2787 esac
2788 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2789 $as_echo "$ac_try_echo") >&5
2790 (eval "$ac_compiler -V >&5") 2>&5
2791 ac_status=$?
2792 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793 (exit $ac_status); }
2795 cat >conftest.$ac_ext <<_ACEOF
2796 /* confdefs.h. */
2797 _ACEOF
2798 cat confdefs.h >>conftest.$ac_ext
2799 cat >>conftest.$ac_ext <<_ACEOF
2800 /* end confdefs.h. */
2803 main ()
2807 return 0;
2809 _ACEOF
2810 ac_clean_files_save=$ac_clean_files
2811 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2812 # Try to create an executable without -o first, disregard a.out.
2813 # It will help us diagnose broken compilers, and finding out an intuition
2814 # of exeext.
2815 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2816 $as_echo_n "checking for C compiler default output file name... " >&6; }
2817 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2819 # The possible output files:
2820 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2822 ac_rmfiles=
2823 for ac_file in $ac_files
2825 case $ac_file in
2826 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2827 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2828 esac
2829 done
2830 rm -f $ac_rmfiles
2832 if { (ac_try="$ac_link_default"
2833 case "(($ac_try" in
2834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2835 *) ac_try_echo=$ac_try;;
2836 esac
2837 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2838 $as_echo "$ac_try_echo") >&5
2839 (eval "$ac_link_default") 2>&5
2840 ac_status=$?
2841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842 (exit $ac_status); }; then
2843 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2844 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2845 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2846 # so that the user can short-circuit this test for compilers unknown to
2847 # Autoconf.
2848 for ac_file in $ac_files ''
2850 test -f "$ac_file" || continue
2851 case $ac_file in
2852 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2854 [ab].out )
2855 # We found the default executable, but exeext='' is most
2856 # certainly right.
2857 break;;
2858 *.* )
2859 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2860 then :; else
2861 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2863 # We set ac_cv_exeext here because the later test for it is not
2864 # safe: cross compilers may not add the suffix if given an `-o'
2865 # argument, so we may need to know it at that point already.
2866 # Even if this section looks crufty: it has the advantage of
2867 # actually working.
2868 break;;
2870 break;;
2871 esac
2872 done
2873 test "$ac_cv_exeext" = no && ac_cv_exeext=
2875 else
2876 ac_file=''
2879 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2880 $as_echo "$ac_file" >&6; }
2881 if test -z "$ac_file"; then
2882 $as_echo "$as_me: failed program was:" >&5
2883 sed 's/^/| /' conftest.$ac_ext >&5
2885 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2886 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2887 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2888 See \`config.log' for more details." >&5
2889 $as_echo "$as_me: error: C compiler cannot create executables
2890 See \`config.log' for more details." >&2;}
2891 { (exit 77); exit 77; }; }; }
2894 ac_exeext=$ac_cv_exeext
2896 # Check that the compiler produces executables we can run. If not, either
2897 # the compiler is broken, or we cross compile.
2898 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2899 $as_echo_n "checking whether the C compiler works... " >&6; }
2900 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2901 # If not cross compiling, check that we can run a simple program.
2902 if test "$cross_compiling" != yes; then
2903 if { ac_try='./$ac_file'
2904 { (case "(($ac_try" in
2905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2906 *) ac_try_echo=$ac_try;;
2907 esac
2908 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2909 $as_echo "$ac_try_echo") >&5
2910 (eval "$ac_try") 2>&5
2911 ac_status=$?
2912 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913 (exit $ac_status); }; }; then
2914 cross_compiling=no
2915 else
2916 if test "$cross_compiling" = maybe; then
2917 cross_compiling=yes
2918 else
2919 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2920 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2921 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2922 If you meant to cross compile, use \`--host'.
2923 See \`config.log' for more details." >&5
2924 $as_echo "$as_me: error: cannot run C compiled programs.
2925 If you meant to cross compile, use \`--host'.
2926 See \`config.log' for more details." >&2;}
2927 { (exit 1); exit 1; }; }; }
2931 { $as_echo "$as_me:$LINENO: result: yes" >&5
2932 $as_echo "yes" >&6; }
2934 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2935 ac_clean_files=$ac_clean_files_save
2936 # Check that the compiler produces executables we can run. If not, either
2937 # the compiler is broken, or we cross compile.
2938 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2939 $as_echo_n "checking whether we are cross compiling... " >&6; }
2940 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2941 $as_echo "$cross_compiling" >&6; }
2943 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2944 $as_echo_n "checking for suffix of executables... " >&6; }
2945 if { (ac_try="$ac_link"
2946 case "(($ac_try" in
2947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2948 *) ac_try_echo=$ac_try;;
2949 esac
2950 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2951 $as_echo "$ac_try_echo") >&5
2952 (eval "$ac_link") 2>&5
2953 ac_status=$?
2954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955 (exit $ac_status); }; then
2956 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2957 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2958 # work properly (i.e., refer to `conftest.exe'), while it won't with
2959 # `rm'.
2960 for ac_file in conftest.exe conftest conftest.*; do
2961 test -f "$ac_file" || continue
2962 case $ac_file in
2963 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2964 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2965 break;;
2966 * ) break;;
2967 esac
2968 done
2969 else
2970 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2971 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2972 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2973 See \`config.log' for more details." >&5
2974 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2975 See \`config.log' for more details." >&2;}
2976 { (exit 1); exit 1; }; }; }
2979 rm -f conftest$ac_cv_exeext
2980 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2981 $as_echo "$ac_cv_exeext" >&6; }
2983 rm -f conftest.$ac_ext
2984 EXEEXT=$ac_cv_exeext
2985 ac_exeext=$EXEEXT
2986 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2987 $as_echo_n "checking for suffix of object files... " >&6; }
2988 if test "${ac_cv_objext+set}" = set; then
2989 $as_echo_n "(cached) " >&6
2990 else
2991 cat >conftest.$ac_ext <<_ACEOF
2992 /* confdefs.h. */
2993 _ACEOF
2994 cat confdefs.h >>conftest.$ac_ext
2995 cat >>conftest.$ac_ext <<_ACEOF
2996 /* end confdefs.h. */
2999 main ()
3003 return 0;
3005 _ACEOF
3006 rm -f conftest.o conftest.obj
3007 if { (ac_try="$ac_compile"
3008 case "(($ac_try" in
3009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3010 *) ac_try_echo=$ac_try;;
3011 esac
3012 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3013 $as_echo "$ac_try_echo") >&5
3014 (eval "$ac_compile") 2>&5
3015 ac_status=$?
3016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017 (exit $ac_status); }; then
3018 for ac_file in conftest.o conftest.obj conftest.*; do
3019 test -f "$ac_file" || continue;
3020 case $ac_file in
3021 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3022 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3023 break;;
3024 esac
3025 done
3026 else
3027 $as_echo "$as_me: failed program was:" >&5
3028 sed 's/^/| /' conftest.$ac_ext >&5
3030 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3031 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3032 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3033 See \`config.log' for more details." >&5
3034 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3035 See \`config.log' for more details." >&2;}
3036 { (exit 1); exit 1; }; }; }
3039 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3041 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3042 $as_echo "$ac_cv_objext" >&6; }
3043 OBJEXT=$ac_cv_objext
3044 ac_objext=$OBJEXT
3045 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3046 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3047 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3048 $as_echo_n "(cached) " >&6
3049 else
3050 cat >conftest.$ac_ext <<_ACEOF
3051 /* confdefs.h. */
3052 _ACEOF
3053 cat confdefs.h >>conftest.$ac_ext
3054 cat >>conftest.$ac_ext <<_ACEOF
3055 /* end confdefs.h. */
3058 main ()
3060 #ifndef __GNUC__
3061 choke me
3062 #endif
3065 return 0;
3067 _ACEOF
3068 rm -f conftest.$ac_objext
3069 if { (ac_try="$ac_compile"
3070 case "(($ac_try" in
3071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3072 *) ac_try_echo=$ac_try;;
3073 esac
3074 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3075 $as_echo "$ac_try_echo") >&5
3076 (eval "$ac_compile") 2>conftest.er1
3077 ac_status=$?
3078 grep -v '^ *+' conftest.er1 >conftest.err
3079 rm -f conftest.er1
3080 cat conftest.err >&5
3081 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082 (exit $ac_status); } && {
3083 test -z "$ac_c_werror_flag" ||
3084 test ! -s conftest.err
3085 } && test -s conftest.$ac_objext; then
3086 ac_compiler_gnu=yes
3087 else
3088 $as_echo "$as_me: failed program was:" >&5
3089 sed 's/^/| /' conftest.$ac_ext >&5
3091 ac_compiler_gnu=no
3094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3095 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3098 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3099 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3100 if test $ac_compiler_gnu = yes; then
3101 GCC=yes
3102 else
3103 GCC=
3105 ac_test_CFLAGS=${CFLAGS+set}
3106 ac_save_CFLAGS=$CFLAGS
3107 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3108 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3109 if test "${ac_cv_prog_cc_g+set}" = set; then
3110 $as_echo_n "(cached) " >&6
3111 else
3112 ac_save_c_werror_flag=$ac_c_werror_flag
3113 ac_c_werror_flag=yes
3114 ac_cv_prog_cc_g=no
3115 CFLAGS="-g"
3116 cat >conftest.$ac_ext <<_ACEOF
3117 /* confdefs.h. */
3118 _ACEOF
3119 cat confdefs.h >>conftest.$ac_ext
3120 cat >>conftest.$ac_ext <<_ACEOF
3121 /* end confdefs.h. */
3124 main ()
3128 return 0;
3130 _ACEOF
3131 rm -f conftest.$ac_objext
3132 if { (ac_try="$ac_compile"
3133 case "(($ac_try" in
3134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3135 *) ac_try_echo=$ac_try;;
3136 esac
3137 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3138 $as_echo "$ac_try_echo") >&5
3139 (eval "$ac_compile") 2>conftest.er1
3140 ac_status=$?
3141 grep -v '^ *+' conftest.er1 >conftest.err
3142 rm -f conftest.er1
3143 cat conftest.err >&5
3144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145 (exit $ac_status); } && {
3146 test -z "$ac_c_werror_flag" ||
3147 test ! -s conftest.err
3148 } && test -s conftest.$ac_objext; then
3149 ac_cv_prog_cc_g=yes
3150 else
3151 $as_echo "$as_me: failed program was:" >&5
3152 sed 's/^/| /' conftest.$ac_ext >&5
3154 CFLAGS=""
3155 cat >conftest.$ac_ext <<_ACEOF
3156 /* confdefs.h. */
3157 _ACEOF
3158 cat confdefs.h >>conftest.$ac_ext
3159 cat >>conftest.$ac_ext <<_ACEOF
3160 /* end confdefs.h. */
3163 main ()
3167 return 0;
3169 _ACEOF
3170 rm -f conftest.$ac_objext
3171 if { (ac_try="$ac_compile"
3172 case "(($ac_try" in
3173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3174 *) ac_try_echo=$ac_try;;
3175 esac
3176 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3177 $as_echo "$ac_try_echo") >&5
3178 (eval "$ac_compile") 2>conftest.er1
3179 ac_status=$?
3180 grep -v '^ *+' conftest.er1 >conftest.err
3181 rm -f conftest.er1
3182 cat conftest.err >&5
3183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184 (exit $ac_status); } && {
3185 test -z "$ac_c_werror_flag" ||
3186 test ! -s conftest.err
3187 } && test -s conftest.$ac_objext; then
3189 else
3190 $as_echo "$as_me: failed program was:" >&5
3191 sed 's/^/| /' conftest.$ac_ext >&5
3193 ac_c_werror_flag=$ac_save_c_werror_flag
3194 CFLAGS="-g"
3195 cat >conftest.$ac_ext <<_ACEOF
3196 /* confdefs.h. */
3197 _ACEOF
3198 cat confdefs.h >>conftest.$ac_ext
3199 cat >>conftest.$ac_ext <<_ACEOF
3200 /* end confdefs.h. */
3203 main ()
3207 return 0;
3209 _ACEOF
3210 rm -f conftest.$ac_objext
3211 if { (ac_try="$ac_compile"
3212 case "(($ac_try" in
3213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3214 *) ac_try_echo=$ac_try;;
3215 esac
3216 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3217 $as_echo "$ac_try_echo") >&5
3218 (eval "$ac_compile") 2>conftest.er1
3219 ac_status=$?
3220 grep -v '^ *+' conftest.er1 >conftest.err
3221 rm -f conftest.er1
3222 cat conftest.err >&5
3223 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3224 (exit $ac_status); } && {
3225 test -z "$ac_c_werror_flag" ||
3226 test ! -s conftest.err
3227 } && test -s conftest.$ac_objext; then
3228 ac_cv_prog_cc_g=yes
3229 else
3230 $as_echo "$as_me: failed program was:" >&5
3231 sed 's/^/| /' conftest.$ac_ext >&5
3236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3243 ac_c_werror_flag=$ac_save_c_werror_flag
3245 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3246 $as_echo "$ac_cv_prog_cc_g" >&6; }
3247 if test "$ac_test_CFLAGS" = set; then
3248 CFLAGS=$ac_save_CFLAGS
3249 elif test $ac_cv_prog_cc_g = yes; then
3250 if test "$GCC" = yes; then
3251 CFLAGS="-g -O2"
3252 else
3253 CFLAGS="-g"
3255 else
3256 if test "$GCC" = yes; then
3257 CFLAGS="-O2"
3258 else
3259 CFLAGS=
3262 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3263 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3264 if test "${ac_cv_prog_cc_c89+set}" = set; then
3265 $as_echo_n "(cached) " >&6
3266 else
3267 ac_cv_prog_cc_c89=no
3268 ac_save_CC=$CC
3269 cat >conftest.$ac_ext <<_ACEOF
3270 /* confdefs.h. */
3271 _ACEOF
3272 cat confdefs.h >>conftest.$ac_ext
3273 cat >>conftest.$ac_ext <<_ACEOF
3274 /* end confdefs.h. */
3275 #include <stdarg.h>
3276 #include <stdio.h>
3277 #include <sys/types.h>
3278 #include <sys/stat.h>
3279 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3280 struct buf { int x; };
3281 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3282 static char *e (p, i)
3283 char **p;
3284 int i;
3286 return p[i];
3288 static char *f (char * (*g) (char **, int), char **p, ...)
3290 char *s;
3291 va_list v;
3292 va_start (v,p);
3293 s = g (p, va_arg (v,int));
3294 va_end (v);
3295 return s;
3298 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3299 function prototypes and stuff, but not '\xHH' hex character constants.
3300 These don't provoke an error unfortunately, instead are silently treated
3301 as 'x'. The following induces an error, until -std is added to get
3302 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3303 array size at least. It's necessary to write '\x00'==0 to get something
3304 that's true only with -std. */
3305 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3307 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3308 inside strings and character constants. */
3309 #define FOO(x) 'x'
3310 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3312 int test (int i, double x);
3313 struct s1 {int (*f) (int a);};
3314 struct s2 {int (*f) (double a);};
3315 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3316 int argc;
3317 char **argv;
3319 main ()
3321 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3323 return 0;
3325 _ACEOF
3326 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3327 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3329 CC="$ac_save_CC $ac_arg"
3330 rm -f conftest.$ac_objext
3331 if { (ac_try="$ac_compile"
3332 case "(($ac_try" in
3333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3334 *) ac_try_echo=$ac_try;;
3335 esac
3336 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3337 $as_echo "$ac_try_echo") >&5
3338 (eval "$ac_compile") 2>conftest.er1
3339 ac_status=$?
3340 grep -v '^ *+' conftest.er1 >conftest.err
3341 rm -f conftest.er1
3342 cat conftest.err >&5
3343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344 (exit $ac_status); } && {
3345 test -z "$ac_c_werror_flag" ||
3346 test ! -s conftest.err
3347 } && test -s conftest.$ac_objext; then
3348 ac_cv_prog_cc_c89=$ac_arg
3349 else
3350 $as_echo "$as_me: failed program was:" >&5
3351 sed 's/^/| /' conftest.$ac_ext >&5
3356 rm -f core conftest.err conftest.$ac_objext
3357 test "x$ac_cv_prog_cc_c89" != "xno" && break
3358 done
3359 rm -f conftest.$ac_ext
3360 CC=$ac_save_CC
3363 # AC_CACHE_VAL
3364 case "x$ac_cv_prog_cc_c89" in
3366 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3367 $as_echo "none needed" >&6; } ;;
3368 xno)
3369 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3370 $as_echo "unsupported" >&6; } ;;
3372 CC="$CC $ac_cv_prog_cc_c89"
3373 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3374 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3375 esac
3378 ac_ext=c
3379 ac_cpp='$CPP $CPPFLAGS'
3380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3387 { $as_echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5
3388 $as_echo_n "checking for --with-cxx-main=<compiler>... " >&6; }
3390 # Check whether --with-cxx_main was given.
3391 if test "${with_cxx_main+set}" = set; then
3392 withval=$with_cxx_main;
3394 case $withval in
3395 no) with_cxx_main=no
3396 MAINCC='$(CC)';;
3397 yes) with_cxx_main=yes
3398 MAINCC='$(CXX)';;
3399 *) with_cxx_main=yes
3400 MAINCC=$withval
3401 if test -z "$CXX"
3402 then
3403 CXX=$withval
3404 fi;;
3405 esac
3406 else
3408 with_cxx_main=no
3409 MAINCC='$(CC)'
3413 { $as_echo "$as_me:$LINENO: result: $with_cxx_main" >&5
3414 $as_echo "$with_cxx_main" >&6; }
3416 preset_cxx="$CXX"
3417 if test -z "$CXX"
3418 then
3419 case "$CC" in
3420 gcc) # Extract the first word of "g++", so it can be a program name with args.
3421 set dummy g++; ac_word=$2
3422 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3423 $as_echo_n "checking for $ac_word... " >&6; }
3424 if test "${ac_cv_path_CXX+set}" = set; then
3425 $as_echo_n "(cached) " >&6
3426 else
3427 case $CXX in
3428 [\\/]* | ?:[\\/]*)
3429 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3433 for as_dir in notfound
3435 IFS=$as_save_IFS
3436 test -z "$as_dir" && as_dir=.
3437 for ac_exec_ext in '' $ac_executable_extensions; do
3438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3439 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3440 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3441 break 2
3443 done
3444 done
3445 IFS=$as_save_IFS
3447 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="g++"
3449 esac
3451 CXX=$ac_cv_path_CXX
3452 if test -n "$CXX"; then
3453 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
3454 $as_echo "$CXX" >&6; }
3455 else
3456 { $as_echo "$as_me:$LINENO: result: no" >&5
3457 $as_echo "no" >&6; }
3461 cc) # Extract the first word of "c++", so it can be a program name with args.
3462 set dummy c++; ac_word=$2
3463 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3464 $as_echo_n "checking for $ac_word... " >&6; }
3465 if test "${ac_cv_path_CXX+set}" = set; then
3466 $as_echo_n "(cached) " >&6
3467 else
3468 case $CXX in
3469 [\\/]* | ?:[\\/]*)
3470 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3474 for as_dir in notfound
3476 IFS=$as_save_IFS
3477 test -z "$as_dir" && as_dir=.
3478 for ac_exec_ext in '' $ac_executable_extensions; do
3479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3480 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3481 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3482 break 2
3484 done
3485 done
3486 IFS=$as_save_IFS
3488 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="c++"
3490 esac
3492 CXX=$ac_cv_path_CXX
3493 if test -n "$CXX"; then
3494 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
3495 $as_echo "$CXX" >&6; }
3496 else
3497 { $as_echo "$as_me:$LINENO: result: no" >&5
3498 $as_echo "no" >&6; }
3502 esac
3503 if test "$CXX" = "notfound"
3504 then
3505 CXX=""
3508 if test -z "$CXX"
3509 then
3510 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
3512 # Extract the first word of "$ac_prog", so it can be a program name with args.
3513 set dummy $ac_prog; ac_word=$2
3514 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3515 $as_echo_n "checking for $ac_word... " >&6; }
3516 if test "${ac_cv_prog_CXX+set}" = set; then
3517 $as_echo_n "(cached) " >&6
3518 else
3519 if test -n "$CXX"; then
3520 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3521 else
3522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3523 for as_dir in $PATH
3525 IFS=$as_save_IFS
3526 test -z "$as_dir" && as_dir=.
3527 for ac_exec_ext in '' $ac_executable_extensions; do
3528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3529 ac_cv_prog_CXX="$ac_prog"
3530 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3531 break 2
3533 done
3534 done
3535 IFS=$as_save_IFS
3539 CXX=$ac_cv_prog_CXX
3540 if test -n "$CXX"; then
3541 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
3542 $as_echo "$CXX" >&6; }
3543 else
3544 { $as_echo "$as_me:$LINENO: result: no" >&5
3545 $as_echo "no" >&6; }
3549 test -n "$CXX" && break
3550 done
3551 test -n "$CXX" || CXX="notfound"
3553 if test "$CXX" = "notfound"
3554 then
3555 CXX=""
3558 if test "$preset_cxx" != "$CXX"
3559 then
3560 { $as_echo "$as_me:$LINENO: WARNING:
3562 By default, distutils will build C++ extension modules with \"$CXX\".
3563 If this is not intended, then set CXX on the configure command line.
3564 " >&5
3565 $as_echo "$as_me: WARNING:
3567 By default, distutils will build C++ extension modules with \"$CXX\".
3568 If this is not intended, then set CXX on the configure command line.
3569 " >&2;}
3573 # checks for UNIX variants that set C preprocessor variables
3575 ac_ext=c
3576 ac_cpp='$CPP $CPPFLAGS'
3577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3580 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3581 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3582 # On Suns, sometimes $CPP names a directory.
3583 if test -n "$CPP" && test -d "$CPP"; then
3584 CPP=
3586 if test -z "$CPP"; then
3587 if test "${ac_cv_prog_CPP+set}" = set; then
3588 $as_echo_n "(cached) " >&6
3589 else
3590 # Double quotes because CPP needs to be expanded
3591 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3593 ac_preproc_ok=false
3594 for ac_c_preproc_warn_flag in '' yes
3596 # Use a header file that comes with gcc, so configuring glibc
3597 # with a fresh cross-compiler works.
3598 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3599 # <limits.h> exists even on freestanding compilers.
3600 # On the NeXT, cc -E runs the code through the compiler's parser,
3601 # not just through cpp. "Syntax error" is here to catch this case.
3602 cat >conftest.$ac_ext <<_ACEOF
3603 /* confdefs.h. */
3604 _ACEOF
3605 cat confdefs.h >>conftest.$ac_ext
3606 cat >>conftest.$ac_ext <<_ACEOF
3607 /* end confdefs.h. */
3608 #ifdef __STDC__
3609 # include <limits.h>
3610 #else
3611 # include <assert.h>
3612 #endif
3613 Syntax error
3614 _ACEOF
3615 if { (ac_try="$ac_cpp conftest.$ac_ext"
3616 case "(($ac_try" in
3617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3618 *) ac_try_echo=$ac_try;;
3619 esac
3620 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3621 $as_echo "$ac_try_echo") >&5
3622 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3623 ac_status=$?
3624 grep -v '^ *+' conftest.er1 >conftest.err
3625 rm -f conftest.er1
3626 cat conftest.err >&5
3627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3628 (exit $ac_status); } >/dev/null && {
3629 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3630 test ! -s conftest.err
3631 }; then
3633 else
3634 $as_echo "$as_me: failed program was:" >&5
3635 sed 's/^/| /' conftest.$ac_ext >&5
3637 # Broken: fails on valid input.
3638 continue
3641 rm -f conftest.err conftest.$ac_ext
3643 # OK, works on sane cases. Now check whether nonexistent headers
3644 # can be detected and how.
3645 cat >conftest.$ac_ext <<_ACEOF
3646 /* confdefs.h. */
3647 _ACEOF
3648 cat confdefs.h >>conftest.$ac_ext
3649 cat >>conftest.$ac_ext <<_ACEOF
3650 /* end confdefs.h. */
3651 #include <ac_nonexistent.h>
3652 _ACEOF
3653 if { (ac_try="$ac_cpp conftest.$ac_ext"
3654 case "(($ac_try" in
3655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3656 *) ac_try_echo=$ac_try;;
3657 esac
3658 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3659 $as_echo "$ac_try_echo") >&5
3660 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3661 ac_status=$?
3662 grep -v '^ *+' conftest.er1 >conftest.err
3663 rm -f conftest.er1
3664 cat conftest.err >&5
3665 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666 (exit $ac_status); } >/dev/null && {
3667 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3668 test ! -s conftest.err
3669 }; then
3670 # Broken: success on invalid input.
3671 continue
3672 else
3673 $as_echo "$as_me: failed program was:" >&5
3674 sed 's/^/| /' conftest.$ac_ext >&5
3676 # Passes both tests.
3677 ac_preproc_ok=:
3678 break
3681 rm -f conftest.err conftest.$ac_ext
3683 done
3684 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3685 rm -f conftest.err conftest.$ac_ext
3686 if $ac_preproc_ok; then
3687 break
3690 done
3691 ac_cv_prog_CPP=$CPP
3694 CPP=$ac_cv_prog_CPP
3695 else
3696 ac_cv_prog_CPP=$CPP
3698 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3699 $as_echo "$CPP" >&6; }
3700 ac_preproc_ok=false
3701 for ac_c_preproc_warn_flag in '' yes
3703 # Use a header file that comes with gcc, so configuring glibc
3704 # with a fresh cross-compiler works.
3705 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3706 # <limits.h> exists even on freestanding compilers.
3707 # On the NeXT, cc -E runs the code through the compiler's parser,
3708 # not just through cpp. "Syntax error" is here to catch this case.
3709 cat >conftest.$ac_ext <<_ACEOF
3710 /* confdefs.h. */
3711 _ACEOF
3712 cat confdefs.h >>conftest.$ac_ext
3713 cat >>conftest.$ac_ext <<_ACEOF
3714 /* end confdefs.h. */
3715 #ifdef __STDC__
3716 # include <limits.h>
3717 #else
3718 # include <assert.h>
3719 #endif
3720 Syntax error
3721 _ACEOF
3722 if { (ac_try="$ac_cpp conftest.$ac_ext"
3723 case "(($ac_try" in
3724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3725 *) ac_try_echo=$ac_try;;
3726 esac
3727 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3728 $as_echo "$ac_try_echo") >&5
3729 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3730 ac_status=$?
3731 grep -v '^ *+' conftest.er1 >conftest.err
3732 rm -f conftest.er1
3733 cat conftest.err >&5
3734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3735 (exit $ac_status); } >/dev/null && {
3736 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3737 test ! -s conftest.err
3738 }; then
3740 else
3741 $as_echo "$as_me: failed program was:" >&5
3742 sed 's/^/| /' conftest.$ac_ext >&5
3744 # Broken: fails on valid input.
3745 continue
3748 rm -f conftest.err conftest.$ac_ext
3750 # OK, works on sane cases. Now check whether nonexistent headers
3751 # can be detected and how.
3752 cat >conftest.$ac_ext <<_ACEOF
3753 /* confdefs.h. */
3754 _ACEOF
3755 cat confdefs.h >>conftest.$ac_ext
3756 cat >>conftest.$ac_ext <<_ACEOF
3757 /* end confdefs.h. */
3758 #include <ac_nonexistent.h>
3759 _ACEOF
3760 if { (ac_try="$ac_cpp conftest.$ac_ext"
3761 case "(($ac_try" in
3762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3763 *) ac_try_echo=$ac_try;;
3764 esac
3765 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3766 $as_echo "$ac_try_echo") >&5
3767 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3768 ac_status=$?
3769 grep -v '^ *+' conftest.er1 >conftest.err
3770 rm -f conftest.er1
3771 cat conftest.err >&5
3772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3773 (exit $ac_status); } >/dev/null && {
3774 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3775 test ! -s conftest.err
3776 }; then
3777 # Broken: success on invalid input.
3778 continue
3779 else
3780 $as_echo "$as_me: failed program was:" >&5
3781 sed 's/^/| /' conftest.$ac_ext >&5
3783 # Passes both tests.
3784 ac_preproc_ok=:
3785 break
3788 rm -f conftest.err conftest.$ac_ext
3790 done
3791 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3792 rm -f conftest.err conftest.$ac_ext
3793 if $ac_preproc_ok; then
3795 else
3796 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3797 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3798 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3799 See \`config.log' for more details." >&5
3800 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3801 See \`config.log' for more details." >&2;}
3802 { (exit 1); exit 1; }; }; }
3805 ac_ext=c
3806 ac_cpp='$CPP $CPPFLAGS'
3807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3812 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3813 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3814 if test "${ac_cv_path_GREP+set}" = set; then
3815 $as_echo_n "(cached) " >&6
3816 else
3817 if test -z "$GREP"; then
3818 ac_path_GREP_found=false
3819 # Loop through the user's path and test for each of PROGNAME-LIST
3820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3821 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3823 IFS=$as_save_IFS
3824 test -z "$as_dir" && as_dir=.
3825 for ac_prog in grep ggrep; do
3826 for ac_exec_ext in '' $ac_executable_extensions; do
3827 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3828 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3829 # Check for GNU ac_path_GREP and select it if it is found.
3830 # Check for GNU $ac_path_GREP
3831 case `"$ac_path_GREP" --version 2>&1` in
3832 *GNU*)
3833 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3835 ac_count=0
3836 $as_echo_n 0123456789 >"conftest.in"
3837 while :
3839 cat "conftest.in" "conftest.in" >"conftest.tmp"
3840 mv "conftest.tmp" "conftest.in"
3841 cp "conftest.in" "conftest.nl"
3842 $as_echo 'GREP' >> "conftest.nl"
3843 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3844 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3845 ac_count=`expr $ac_count + 1`
3846 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3847 # Best one so far, save it but keep looking for a better one
3848 ac_cv_path_GREP="$ac_path_GREP"
3849 ac_path_GREP_max=$ac_count
3851 # 10*(2^10) chars as input seems more than enough
3852 test $ac_count -gt 10 && break
3853 done
3854 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3855 esac
3857 $ac_path_GREP_found && break 3
3858 done
3859 done
3860 done
3861 IFS=$as_save_IFS
3862 if test -z "$ac_cv_path_GREP"; then
3863 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3864 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3865 { (exit 1); exit 1; }; }
3867 else
3868 ac_cv_path_GREP=$GREP
3872 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3873 $as_echo "$ac_cv_path_GREP" >&6; }
3874 GREP="$ac_cv_path_GREP"
3877 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3878 $as_echo_n "checking for egrep... " >&6; }
3879 if test "${ac_cv_path_EGREP+set}" = set; then
3880 $as_echo_n "(cached) " >&6
3881 else
3882 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3883 then ac_cv_path_EGREP="$GREP -E"
3884 else
3885 if test -z "$EGREP"; then
3886 ac_path_EGREP_found=false
3887 # Loop through the user's path and test for each of PROGNAME-LIST
3888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3889 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3891 IFS=$as_save_IFS
3892 test -z "$as_dir" && as_dir=.
3893 for ac_prog in egrep; do
3894 for ac_exec_ext in '' $ac_executable_extensions; do
3895 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3896 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3897 # Check for GNU ac_path_EGREP and select it if it is found.
3898 # Check for GNU $ac_path_EGREP
3899 case `"$ac_path_EGREP" --version 2>&1` in
3900 *GNU*)
3901 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3903 ac_count=0
3904 $as_echo_n 0123456789 >"conftest.in"
3905 while :
3907 cat "conftest.in" "conftest.in" >"conftest.tmp"
3908 mv "conftest.tmp" "conftest.in"
3909 cp "conftest.in" "conftest.nl"
3910 $as_echo 'EGREP' >> "conftest.nl"
3911 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3912 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3913 ac_count=`expr $ac_count + 1`
3914 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3915 # Best one so far, save it but keep looking for a better one
3916 ac_cv_path_EGREP="$ac_path_EGREP"
3917 ac_path_EGREP_max=$ac_count
3919 # 10*(2^10) chars as input seems more than enough
3920 test $ac_count -gt 10 && break
3921 done
3922 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3923 esac
3925 $ac_path_EGREP_found && break 3
3926 done
3927 done
3928 done
3929 IFS=$as_save_IFS
3930 if test -z "$ac_cv_path_EGREP"; then
3931 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3932 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3933 { (exit 1); exit 1; }; }
3935 else
3936 ac_cv_path_EGREP=$EGREP
3941 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3942 $as_echo "$ac_cv_path_EGREP" >&6; }
3943 EGREP="$ac_cv_path_EGREP"
3946 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3947 $as_echo_n "checking for ANSI C header files... " >&6; }
3948 if test "${ac_cv_header_stdc+set}" = set; then
3949 $as_echo_n "(cached) " >&6
3950 else
3951 cat >conftest.$ac_ext <<_ACEOF
3952 /* confdefs.h. */
3953 _ACEOF
3954 cat confdefs.h >>conftest.$ac_ext
3955 cat >>conftest.$ac_ext <<_ACEOF
3956 /* end confdefs.h. */
3957 #include <stdlib.h>
3958 #include <stdarg.h>
3959 #include <string.h>
3960 #include <float.h>
3963 main ()
3967 return 0;
3969 _ACEOF
3970 rm -f conftest.$ac_objext
3971 if { (ac_try="$ac_compile"
3972 case "(($ac_try" in
3973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3974 *) ac_try_echo=$ac_try;;
3975 esac
3976 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3977 $as_echo "$ac_try_echo") >&5
3978 (eval "$ac_compile") 2>conftest.er1
3979 ac_status=$?
3980 grep -v '^ *+' conftest.er1 >conftest.err
3981 rm -f conftest.er1
3982 cat conftest.err >&5
3983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984 (exit $ac_status); } && {
3985 test -z "$ac_c_werror_flag" ||
3986 test ! -s conftest.err
3987 } && test -s conftest.$ac_objext; then
3988 ac_cv_header_stdc=yes
3989 else
3990 $as_echo "$as_me: failed program was:" >&5
3991 sed 's/^/| /' conftest.$ac_ext >&5
3993 ac_cv_header_stdc=no
3996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3998 if test $ac_cv_header_stdc = yes; then
3999 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4000 cat >conftest.$ac_ext <<_ACEOF
4001 /* confdefs.h. */
4002 _ACEOF
4003 cat confdefs.h >>conftest.$ac_ext
4004 cat >>conftest.$ac_ext <<_ACEOF
4005 /* end confdefs.h. */
4006 #include <string.h>
4008 _ACEOF
4009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4010 $EGREP "memchr" >/dev/null 2>&1; then
4012 else
4013 ac_cv_header_stdc=no
4015 rm -f conftest*
4019 if test $ac_cv_header_stdc = yes; then
4020 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4021 cat >conftest.$ac_ext <<_ACEOF
4022 /* confdefs.h. */
4023 _ACEOF
4024 cat confdefs.h >>conftest.$ac_ext
4025 cat >>conftest.$ac_ext <<_ACEOF
4026 /* end confdefs.h. */
4027 #include <stdlib.h>
4029 _ACEOF
4030 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4031 $EGREP "free" >/dev/null 2>&1; then
4033 else
4034 ac_cv_header_stdc=no
4036 rm -f conftest*
4040 if test $ac_cv_header_stdc = yes; then
4041 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4042 if test "$cross_compiling" = yes; then
4044 else
4045 cat >conftest.$ac_ext <<_ACEOF
4046 /* confdefs.h. */
4047 _ACEOF
4048 cat confdefs.h >>conftest.$ac_ext
4049 cat >>conftest.$ac_ext <<_ACEOF
4050 /* end confdefs.h. */
4051 #include <ctype.h>
4052 #include <stdlib.h>
4053 #if ((' ' & 0x0FF) == 0x020)
4054 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4055 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4056 #else
4057 # define ISLOWER(c) \
4058 (('a' <= (c) && (c) <= 'i') \
4059 || ('j' <= (c) && (c) <= 'r') \
4060 || ('s' <= (c) && (c) <= 'z'))
4061 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4062 #endif
4064 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4066 main ()
4068 int i;
4069 for (i = 0; i < 256; i++)
4070 if (XOR (islower (i), ISLOWER (i))
4071 || toupper (i) != TOUPPER (i))
4072 return 2;
4073 return 0;
4075 _ACEOF
4076 rm -f conftest$ac_exeext
4077 if { (ac_try="$ac_link"
4078 case "(($ac_try" in
4079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4080 *) ac_try_echo=$ac_try;;
4081 esac
4082 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4083 $as_echo "$ac_try_echo") >&5
4084 (eval "$ac_link") 2>&5
4085 ac_status=$?
4086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4088 { (case "(($ac_try" in
4089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4090 *) ac_try_echo=$ac_try;;
4091 esac
4092 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4093 $as_echo "$ac_try_echo") >&5
4094 (eval "$ac_try") 2>&5
4095 ac_status=$?
4096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097 (exit $ac_status); }; }; then
4099 else
4100 $as_echo "$as_me: program exited with status $ac_status" >&5
4101 $as_echo "$as_me: failed program was:" >&5
4102 sed 's/^/| /' conftest.$ac_ext >&5
4104 ( exit $ac_status )
4105 ac_cv_header_stdc=no
4107 rm -rf conftest.dSYM
4108 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4114 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4115 $as_echo "$ac_cv_header_stdc" >&6; }
4116 if test $ac_cv_header_stdc = yes; then
4118 cat >>confdefs.h <<\_ACEOF
4119 #define STDC_HEADERS 1
4120 _ACEOF
4124 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4134 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4135 inttypes.h stdint.h unistd.h
4137 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4138 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4139 $as_echo_n "checking for $ac_header... " >&6; }
4140 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4141 $as_echo_n "(cached) " >&6
4142 else
4143 cat >conftest.$ac_ext <<_ACEOF
4144 /* confdefs.h. */
4145 _ACEOF
4146 cat confdefs.h >>conftest.$ac_ext
4147 cat >>conftest.$ac_ext <<_ACEOF
4148 /* end confdefs.h. */
4149 $ac_includes_default
4151 #include <$ac_header>
4152 _ACEOF
4153 rm -f conftest.$ac_objext
4154 if { (ac_try="$ac_compile"
4155 case "(($ac_try" in
4156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4157 *) ac_try_echo=$ac_try;;
4158 esac
4159 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4160 $as_echo "$ac_try_echo") >&5
4161 (eval "$ac_compile") 2>conftest.er1
4162 ac_status=$?
4163 grep -v '^ *+' conftest.er1 >conftest.err
4164 rm -f conftest.er1
4165 cat conftest.err >&5
4166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167 (exit $ac_status); } && {
4168 test -z "$ac_c_werror_flag" ||
4169 test ! -s conftest.err
4170 } && test -s conftest.$ac_objext; then
4171 eval "$as_ac_Header=yes"
4172 else
4173 $as_echo "$as_me: failed program was:" >&5
4174 sed 's/^/| /' conftest.$ac_ext >&5
4176 eval "$as_ac_Header=no"
4179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4181 ac_res=`eval 'as_val=${'$as_ac_Header'}
4182 $as_echo "$as_val"'`
4183 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4184 $as_echo "$ac_res" >&6; }
4185 as_val=`eval 'as_val=${'$as_ac_Header'}
4186 $as_echo "$as_val"'`
4187 if test "x$as_val" = x""yes; then
4188 cat >>confdefs.h <<_ACEOF
4189 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4190 _ACEOF
4194 done
4198 if test "${ac_cv_header_minix_config_h+set}" = set; then
4199 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4200 $as_echo_n "checking for minix/config.h... " >&6; }
4201 if test "${ac_cv_header_minix_config_h+set}" = set; then
4202 $as_echo_n "(cached) " >&6
4204 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4205 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4206 else
4207 # Is the header compilable?
4208 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4209 $as_echo_n "checking minix/config.h usability... " >&6; }
4210 cat >conftest.$ac_ext <<_ACEOF
4211 /* confdefs.h. */
4212 _ACEOF
4213 cat confdefs.h >>conftest.$ac_ext
4214 cat >>conftest.$ac_ext <<_ACEOF
4215 /* end confdefs.h. */
4216 $ac_includes_default
4217 #include <minix/config.h>
4218 _ACEOF
4219 rm -f conftest.$ac_objext
4220 if { (ac_try="$ac_compile"
4221 case "(($ac_try" in
4222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4223 *) ac_try_echo=$ac_try;;
4224 esac
4225 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4226 $as_echo "$ac_try_echo") >&5
4227 (eval "$ac_compile") 2>conftest.er1
4228 ac_status=$?
4229 grep -v '^ *+' conftest.er1 >conftest.err
4230 rm -f conftest.er1
4231 cat conftest.err >&5
4232 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); } && {
4234 test -z "$ac_c_werror_flag" ||
4235 test ! -s conftest.err
4236 } && test -s conftest.$ac_objext; then
4237 ac_header_compiler=yes
4238 else
4239 $as_echo "$as_me: failed program was:" >&5
4240 sed 's/^/| /' conftest.$ac_ext >&5
4242 ac_header_compiler=no
4245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4246 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4247 $as_echo "$ac_header_compiler" >&6; }
4249 # Is the header present?
4250 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4251 $as_echo_n "checking minix/config.h presence... " >&6; }
4252 cat >conftest.$ac_ext <<_ACEOF
4253 /* confdefs.h. */
4254 _ACEOF
4255 cat confdefs.h >>conftest.$ac_ext
4256 cat >>conftest.$ac_ext <<_ACEOF
4257 /* end confdefs.h. */
4258 #include <minix/config.h>
4259 _ACEOF
4260 if { (ac_try="$ac_cpp conftest.$ac_ext"
4261 case "(($ac_try" in
4262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4263 *) ac_try_echo=$ac_try;;
4264 esac
4265 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4266 $as_echo "$ac_try_echo") >&5
4267 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4268 ac_status=$?
4269 grep -v '^ *+' conftest.er1 >conftest.err
4270 rm -f conftest.er1
4271 cat conftest.err >&5
4272 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273 (exit $ac_status); } >/dev/null && {
4274 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4275 test ! -s conftest.err
4276 }; then
4277 ac_header_preproc=yes
4278 else
4279 $as_echo "$as_me: failed program was:" >&5
4280 sed 's/^/| /' conftest.$ac_ext >&5
4282 ac_header_preproc=no
4285 rm -f conftest.err conftest.$ac_ext
4286 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4287 $as_echo "$ac_header_preproc" >&6; }
4289 # So? What about this header?
4290 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4291 yes:no: )
4292 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4293 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4294 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4295 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4296 ac_header_preproc=yes
4298 no:yes:* )
4299 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4300 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4301 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4302 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4303 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4304 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4305 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4306 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4307 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4308 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4309 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4310 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4311 ( cat <<\_ASBOX
4312 ## -------------------------------------- ##
4313 ## Report this to http://bugs.python.org/ ##
4314 ## -------------------------------------- ##
4315 _ASBOX
4316 ) | sed "s/^/$as_me: WARNING: /" >&2
4318 esac
4319 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4320 $as_echo_n "checking for minix/config.h... " >&6; }
4321 if test "${ac_cv_header_minix_config_h+set}" = set; then
4322 $as_echo_n "(cached) " >&6
4323 else
4324 ac_cv_header_minix_config_h=$ac_header_preproc
4326 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4327 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4330 if test "x$ac_cv_header_minix_config_h" = x""yes; then
4331 MINIX=yes
4332 else
4333 MINIX=
4337 if test "$MINIX" = yes; then
4339 cat >>confdefs.h <<\_ACEOF
4340 #define _POSIX_SOURCE 1
4341 _ACEOF
4344 cat >>confdefs.h <<\_ACEOF
4345 #define _POSIX_1_SOURCE 2
4346 _ACEOF
4349 cat >>confdefs.h <<\_ACEOF
4350 #define _MINIX 1
4351 _ACEOF
4357 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4358 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4359 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4360 $as_echo_n "(cached) " >&6
4361 else
4362 cat >conftest.$ac_ext <<_ACEOF
4363 /* confdefs.h. */
4364 _ACEOF
4365 cat confdefs.h >>conftest.$ac_ext
4366 cat >>conftest.$ac_ext <<_ACEOF
4367 /* end confdefs.h. */
4369 # define __EXTENSIONS__ 1
4370 $ac_includes_default
4372 main ()
4376 return 0;
4378 _ACEOF
4379 rm -f conftest.$ac_objext
4380 if { (ac_try="$ac_compile"
4381 case "(($ac_try" in
4382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4383 *) ac_try_echo=$ac_try;;
4384 esac
4385 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4386 $as_echo "$ac_try_echo") >&5
4387 (eval "$ac_compile") 2>conftest.er1
4388 ac_status=$?
4389 grep -v '^ *+' conftest.er1 >conftest.err
4390 rm -f conftest.er1
4391 cat conftest.err >&5
4392 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393 (exit $ac_status); } && {
4394 test -z "$ac_c_werror_flag" ||
4395 test ! -s conftest.err
4396 } && test -s conftest.$ac_objext; then
4397 ac_cv_safe_to_define___extensions__=yes
4398 else
4399 $as_echo "$as_me: failed program was:" >&5
4400 sed 's/^/| /' conftest.$ac_ext >&5
4402 ac_cv_safe_to_define___extensions__=no
4405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4407 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4408 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4409 test $ac_cv_safe_to_define___extensions__ = yes &&
4410 cat >>confdefs.h <<\_ACEOF
4411 #define __EXTENSIONS__ 1
4412 _ACEOF
4414 cat >>confdefs.h <<\_ACEOF
4415 #define _ALL_SOURCE 1
4416 _ACEOF
4418 cat >>confdefs.h <<\_ACEOF
4419 #define _GNU_SOURCE 1
4420 _ACEOF
4422 cat >>confdefs.h <<\_ACEOF
4423 #define _POSIX_PTHREAD_SEMANTICS 1
4424 _ACEOF
4426 cat >>confdefs.h <<\_ACEOF
4427 #define _TANDEM_SOURCE 1
4428 _ACEOF
4432 # Check for unsupported systems
4433 case $ac_sys_system/$ac_sys_release in
4434 atheos*|Linux*/1*)
4435 echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported.
4436 echo See README for details.
4437 exit 1;;
4438 esac
4441 { $as_echo "$as_me:$LINENO: checking for --with-suffix" >&5
4442 $as_echo_n "checking for --with-suffix... " >&6; }
4444 # Check whether --with-suffix was given.
4445 if test "${with_suffix+set}" = set; then
4446 withval=$with_suffix;
4447 case $withval in
4448 no) EXEEXT=;;
4449 yes) EXEEXT=.exe;;
4450 *) EXEEXT=$withval;;
4451 esac
4454 { $as_echo "$as_me:$LINENO: result: $EXEEXT" >&5
4455 $as_echo "$EXEEXT" >&6; }
4457 # Test whether we're running on a non-case-sensitive system, in which
4458 # case we give a warning if no ext is given
4460 { $as_echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
4461 $as_echo_n "checking for case-insensitive build directory... " >&6; }
4462 if test ! -d CaseSensitiveTestDir; then
4463 mkdir CaseSensitiveTestDir
4466 if test -d casesensitivetestdir
4467 then
4468 { $as_echo "$as_me:$LINENO: result: yes" >&5
4469 $as_echo "yes" >&6; }
4470 BUILDEXEEXT=.exe
4471 else
4472 { $as_echo "$as_me:$LINENO: result: no" >&5
4473 $as_echo "no" >&6; }
4474 BUILDEXEEXT=$EXEEXT
4476 rmdir CaseSensitiveTestDir
4478 case $MACHDEP in
4479 bsdos*)
4480 case $CC in
4481 gcc) CC="$CC -D_HAVE_BSDI";;
4482 esac;;
4483 esac
4485 case $ac_sys_system in
4486 hp*|HP*)
4487 case $CC in
4488 cc|*/cc) CC="$CC -Ae";;
4489 esac;;
4490 Monterey*)
4491 case $CC in
4492 cc) CC="$CC -Wl,-Bexport";;
4493 esac;;
4494 SunOS*)
4495 # Some functions have a prototype only with that define, e.g. confstr
4497 cat >>confdefs.h <<\_ACEOF
4498 #define __EXTENSIONS__ 1
4499 _ACEOF
4502 esac
4506 { $as_echo "$as_me:$LINENO: checking LIBRARY" >&5
4507 $as_echo_n "checking LIBRARY... " >&6; }
4508 if test -z "$LIBRARY"
4509 then
4510 LIBRARY='libpython$(VERSION).a'
4512 { $as_echo "$as_me:$LINENO: result: $LIBRARY" >&5
4513 $as_echo "$LIBRARY" >&6; }
4515 # LDLIBRARY is the name of the library to link against (as opposed to the
4516 # name of the library into which to insert object files). BLDLIBRARY is also
4517 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
4518 # is blank as the main program is not linked directly against LDLIBRARY.
4519 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
4520 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
4521 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
4522 # DLLLIBRARY is the shared (i.e., DLL) library.
4524 # RUNSHARED is used to run shared python without installed libraries
4526 # INSTSONAME is the name of the shared library that will be use to install
4527 # on the system - some systems like version suffix, others don't
4534 LDLIBRARY="$LIBRARY"
4535 BLDLIBRARY='$(LDLIBRARY)'
4536 INSTSONAME='$(LDLIBRARY)'
4537 DLLLIBRARY=''
4538 LDLIBRARYDIR=''
4539 RUNSHARED=''
4541 # LINKCC is the command that links the python executable -- default is $(CC).
4542 # If CXX is set, and if it is needed to link a main function that was
4543 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
4544 # python might then depend on the C++ runtime
4545 # This is altered for AIX in order to build the export list before
4546 # linking.
4548 { $as_echo "$as_me:$LINENO: checking LINKCC" >&5
4549 $as_echo_n "checking LINKCC... " >&6; }
4550 if test -z "$LINKCC"
4551 then
4552 LINKCC='$(PURIFY) $(MAINCC)'
4553 case $ac_sys_system in
4554 AIX*)
4555 exp_extra="\"\""
4556 if test $ac_sys_release -ge 5 -o \
4557 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
4558 exp_extra="."
4560 LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
4561 Monterey64*)
4562 LINKCC="$LINKCC -L/usr/lib/ia64l64";;
4563 QNX*)
4564 # qcc must be used because the other compilers do not
4565 # support -N.
4566 LINKCC=qcc;;
4567 esac
4569 { $as_echo "$as_me:$LINENO: result: $LINKCC" >&5
4570 $as_echo "$LINKCC" >&6; }
4572 # GNULD is set to "yes" if the GNU linker is used. If this goes wrong
4573 # make sure we default having it set to "no": this is used by
4574 # distutils.unixccompiler to know if it should add --enable-new-dtags
4575 # to linker command lines, and failing to detect GNU ld simply results
4576 # in the same bahaviour as before.
4578 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4579 $as_echo_n "checking for GNU ld... " >&6; }
4580 ac_prog=ld
4581 if test "$GCC" = yes; then
4582 ac_prog=`$CC -print-prog-name=ld`
4584 case `"$ac_prog" -V 2>&1 < /dev/null` in
4585 *GNU*)
4586 GNULD=yes;;
4588 GNULD=no;;
4589 esac
4590 { $as_echo "$as_me:$LINENO: result: $GNULD" >&5
4591 $as_echo "$GNULD" >&6; }
4593 { $as_echo "$as_me:$LINENO: checking for --enable-shared" >&5
4594 $as_echo_n "checking for --enable-shared... " >&6; }
4595 # Check whether --enable-shared was given.
4596 if test "${enable_shared+set}" = set; then
4597 enableval=$enable_shared;
4601 if test -z "$enable_shared"
4602 then
4603 case $ac_sys_system in
4604 CYGWIN* | atheos*)
4605 enable_shared="yes";;
4607 enable_shared="no";;
4608 esac
4610 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
4611 $as_echo "$enable_shared" >&6; }
4613 { $as_echo "$as_me:$LINENO: checking for --enable-profiling" >&5
4614 $as_echo_n "checking for --enable-profiling... " >&6; }
4615 # Check whether --enable-profiling was given.
4616 if test "${enable_profiling+set}" = set; then
4617 enableval=$enable_profiling; ac_save_cc="$CC"
4618 CC="$CC -pg"
4619 if test "$cross_compiling" = yes; then
4620 ac_enable_profiling="no"
4621 else
4622 cat >conftest.$ac_ext <<_ACEOF
4623 /* confdefs.h. */
4624 _ACEOF
4625 cat confdefs.h >>conftest.$ac_ext
4626 cat >>conftest.$ac_ext <<_ACEOF
4627 /* end confdefs.h. */
4628 int main() { return 0; }
4629 _ACEOF
4630 rm -f conftest$ac_exeext
4631 if { (ac_try="$ac_link"
4632 case "(($ac_try" in
4633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4634 *) ac_try_echo=$ac_try;;
4635 esac
4636 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4637 $as_echo "$ac_try_echo") >&5
4638 (eval "$ac_link") 2>&5
4639 ac_status=$?
4640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4641 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4642 { (case "(($ac_try" in
4643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4644 *) ac_try_echo=$ac_try;;
4645 esac
4646 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4647 $as_echo "$ac_try_echo") >&5
4648 (eval "$ac_try") 2>&5
4649 ac_status=$?
4650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4651 (exit $ac_status); }; }; then
4652 ac_enable_profiling="yes"
4653 else
4654 $as_echo "$as_me: program exited with status $ac_status" >&5
4655 $as_echo "$as_me: failed program was:" >&5
4656 sed 's/^/| /' conftest.$ac_ext >&5
4658 ( exit $ac_status )
4659 ac_enable_profiling="no"
4661 rm -rf conftest.dSYM
4662 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4666 CC="$ac_save_cc"
4669 { $as_echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
4670 $as_echo "$ac_enable_profiling" >&6; }
4672 case "$ac_enable_profiling" in
4673 "yes")
4674 BASECFLAGS="-pg $BASECFLAGS"
4675 LDFLAGS="-pg $LDFLAGS"
4677 esac
4679 { $as_echo "$as_me:$LINENO: checking LDLIBRARY" >&5
4680 $as_echo_n "checking LDLIBRARY... " >&6; }
4682 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
4683 # library that we build, but we do not want to link against it (we
4684 # will find it with a -framework option). For this reason there is an
4685 # extra variable BLDLIBRARY against which Python and the extension
4686 # modules are linked, BLDLIBRARY. This is normally the same as
4687 # LDLIBRARY, but empty for MacOSX framework builds.
4688 if test "$enable_framework"
4689 then
4690 LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
4691 RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH"
4692 BLDLIBRARY=''
4693 else
4694 BLDLIBRARY='$(LDLIBRARY)'
4697 # Other platforms follow
4698 if test $enable_shared = "yes"; then
4700 cat >>confdefs.h <<\_ACEOF
4701 #define Py_ENABLE_SHARED 1
4702 _ACEOF
4704 case $ac_sys_system in
4705 BeOS*)
4706 LDLIBRARY='libpython$(VERSION).so'
4708 CYGWIN*)
4709 LDLIBRARY='libpython$(VERSION).dll.a'
4710 DLLLIBRARY='libpython$(VERSION).dll'
4712 SunOS*)
4713 LDLIBRARY='libpython$(VERSION).so'
4714 BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
4715 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4716 INSTSONAME="$LDLIBRARY".$SOVERSION
4718 Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*)
4719 LDLIBRARY='libpython$(VERSION).so'
4720 BLDLIBRARY='-L. -lpython$(VERSION)'
4721 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4722 case $ac_sys_system in
4723 FreeBSD*)
4724 SOVERSION=`echo $SOVERSION|cut -d "." -f 1`
4726 esac
4727 INSTSONAME="$LDLIBRARY".$SOVERSION
4729 hp*|HP*)
4730 case `uname -m` in
4731 ia64)
4732 LDLIBRARY='libpython$(VERSION).so'
4735 LDLIBRARY='libpython$(VERSION).sl'
4737 esac
4738 BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
4739 RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH}
4741 OSF*)
4742 LDLIBRARY='libpython$(VERSION).so'
4743 BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
4744 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4746 atheos*)
4747 LDLIBRARY='libpython$(VERSION).so'
4748 BLDLIBRARY='-L. -lpython$(VERSION)'
4749 RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
4751 Darwin*)
4752 LDLIBRARY='libpython$(VERSION).dylib'
4753 BLDLIBRARY='-L. -lpython$(VERSION)'
4754 RUNSHARED='DYLD_LIBRARY_PATH=`pwd`:${DYLD_LIBRARY_PATH}'
4757 esac
4758 else # shared is disabled
4759 case $ac_sys_system in
4760 CYGWIN*)
4761 BLDLIBRARY='$(LIBRARY)'
4762 LDLIBRARY='libpython$(VERSION).dll.a'
4764 esac
4767 { $as_echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
4768 $as_echo "$LDLIBRARY" >&6; }
4770 if test -n "$ac_tool_prefix"; then
4771 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4772 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4773 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4774 $as_echo_n "checking for $ac_word... " >&6; }
4775 if test "${ac_cv_prog_RANLIB+set}" = set; then
4776 $as_echo_n "(cached) " >&6
4777 else
4778 if test -n "$RANLIB"; then
4779 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4780 else
4781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4782 for as_dir in $PATH
4784 IFS=$as_save_IFS
4785 test -z "$as_dir" && as_dir=.
4786 for ac_exec_ext in '' $ac_executable_extensions; do
4787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4788 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4789 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4790 break 2
4792 done
4793 done
4794 IFS=$as_save_IFS
4798 RANLIB=$ac_cv_prog_RANLIB
4799 if test -n "$RANLIB"; then
4800 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
4801 $as_echo "$RANLIB" >&6; }
4802 else
4803 { $as_echo "$as_me:$LINENO: result: no" >&5
4804 $as_echo "no" >&6; }
4809 if test -z "$ac_cv_prog_RANLIB"; then
4810 ac_ct_RANLIB=$RANLIB
4811 # Extract the first word of "ranlib", so it can be a program name with args.
4812 set dummy ranlib; ac_word=$2
4813 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4814 $as_echo_n "checking for $ac_word... " >&6; }
4815 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4816 $as_echo_n "(cached) " >&6
4817 else
4818 if test -n "$ac_ct_RANLIB"; then
4819 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4820 else
4821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4822 for as_dir in $PATH
4824 IFS=$as_save_IFS
4825 test -z "$as_dir" && as_dir=.
4826 for ac_exec_ext in '' $ac_executable_extensions; do
4827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4828 ac_cv_prog_ac_ct_RANLIB="ranlib"
4829 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4830 break 2
4832 done
4833 done
4834 IFS=$as_save_IFS
4838 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4839 if test -n "$ac_ct_RANLIB"; then
4840 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4841 $as_echo "$ac_ct_RANLIB" >&6; }
4842 else
4843 { $as_echo "$as_me:$LINENO: result: no" >&5
4844 $as_echo "no" >&6; }
4847 if test "x$ac_ct_RANLIB" = x; then
4848 RANLIB=":"
4849 else
4850 case $cross_compiling:$ac_tool_warned in
4851 yes:)
4852 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4853 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4854 ac_tool_warned=yes ;;
4855 esac
4856 RANLIB=$ac_ct_RANLIB
4858 else
4859 RANLIB="$ac_cv_prog_RANLIB"
4863 for ac_prog in ar aal
4865 # Extract the first word of "$ac_prog", so it can be a program name with args.
4866 set dummy $ac_prog; ac_word=$2
4867 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4868 $as_echo_n "checking for $ac_word... " >&6; }
4869 if test "${ac_cv_prog_AR+set}" = set; then
4870 $as_echo_n "(cached) " >&6
4871 else
4872 if test -n "$AR"; then
4873 ac_cv_prog_AR="$AR" # Let the user override the test.
4874 else
4875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4876 for as_dir in $PATH
4878 IFS=$as_save_IFS
4879 test -z "$as_dir" && as_dir=.
4880 for ac_exec_ext in '' $ac_executable_extensions; do
4881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4882 ac_cv_prog_AR="$ac_prog"
4883 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4884 break 2
4886 done
4887 done
4888 IFS=$as_save_IFS
4892 AR=$ac_cv_prog_AR
4893 if test -n "$AR"; then
4894 { $as_echo "$as_me:$LINENO: result: $AR" >&5
4895 $as_echo "$AR" >&6; }
4896 else
4897 { $as_echo "$as_me:$LINENO: result: no" >&5
4898 $as_echo "no" >&6; }
4902 test -n "$AR" && break
4903 done
4904 test -n "$AR" || AR="ar"
4907 # tweak ARFLAGS only if the user didn't set it on the command line
4909 if test -z "$ARFLAGS"
4910 then
4911 ARFLAGS="rc"
4915 # Extract the first word of "svnversion", so it can be a program name with args.
4916 set dummy svnversion; ac_word=$2
4917 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4918 $as_echo_n "checking for $ac_word... " >&6; }
4919 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
4920 $as_echo_n "(cached) " >&6
4921 else
4922 if test -n "$SVNVERSION"; then
4923 ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test.
4924 else
4925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4926 for as_dir in $PATH
4928 IFS=$as_save_IFS
4929 test -z "$as_dir" && as_dir=.
4930 for ac_exec_ext in '' $ac_executable_extensions; do
4931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4932 ac_cv_prog_SVNVERSION="found"
4933 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4934 break 2
4936 done
4937 done
4938 IFS=$as_save_IFS
4940 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION="not-found"
4943 SVNVERSION=$ac_cv_prog_SVNVERSION
4944 if test -n "$SVNVERSION"; then
4945 { $as_echo "$as_me:$LINENO: result: $SVNVERSION" >&5
4946 $as_echo "$SVNVERSION" >&6; }
4947 else
4948 { $as_echo "$as_me:$LINENO: result: no" >&5
4949 $as_echo "no" >&6; }
4953 if test $SVNVERSION = found
4954 then
4955 SVNVERSION="svnversion \$(srcdir)"
4956 else
4957 SVNVERSION="echo Unversioned directory"
4960 case $MACHDEP in
4961 bsdos*|hp*|HP*)
4962 # install -d does not work on BSDI or HP-UX
4963 if test -z "$INSTALL"
4964 then
4965 INSTALL="${srcdir}/install-sh -c"
4967 esac
4968 ac_aux_dir=
4969 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4970 if test -f "$ac_dir/install-sh"; then
4971 ac_aux_dir=$ac_dir
4972 ac_install_sh="$ac_aux_dir/install-sh -c"
4973 break
4974 elif test -f "$ac_dir/install.sh"; then
4975 ac_aux_dir=$ac_dir
4976 ac_install_sh="$ac_aux_dir/install.sh -c"
4977 break
4978 elif test -f "$ac_dir/shtool"; then
4979 ac_aux_dir=$ac_dir
4980 ac_install_sh="$ac_aux_dir/shtool install -c"
4981 break
4983 done
4984 if test -z "$ac_aux_dir"; then
4985 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4986 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4987 { (exit 1); exit 1; }; }
4990 # These three variables are undocumented and unsupported,
4991 # and are intended to be withdrawn in a future Autoconf release.
4992 # They can cause serious problems if a builder's source tree is in a directory
4993 # whose full name contains unusual characters.
4994 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4995 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4996 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4999 # Find a good install program. We prefer a C program (faster),
5000 # so one script is as good as another. But avoid the broken or
5001 # incompatible versions:
5002 # SysV /etc/install, /usr/sbin/install
5003 # SunOS /usr/etc/install
5004 # IRIX /sbin/install
5005 # AIX /bin/install
5006 # AmigaOS /C/install, which installs bootblocks on floppy discs
5007 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5008 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5009 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5010 # OS/2's system install, which has a completely different semantic
5011 # ./install, which can be erroneously created by make from ./install.sh.
5012 # Reject install programs that cannot install multiple files.
5013 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5014 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5015 if test -z "$INSTALL"; then
5016 if test "${ac_cv_path_install+set}" = set; then
5017 $as_echo_n "(cached) " >&6
5018 else
5019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5020 for as_dir in $PATH
5022 IFS=$as_save_IFS
5023 test -z "$as_dir" && as_dir=.
5024 # Account for people who put trailing slashes in PATH elements.
5025 case $as_dir/ in
5026 ./ | .// | /cC/* | \
5027 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5028 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5029 /usr/ucb/* ) ;;
5031 # OSF1 and SCO ODT 3.0 have their own names for install.
5032 # Don't use installbsd from OSF since it installs stuff as root
5033 # by default.
5034 for ac_prog in ginstall scoinst install; do
5035 for ac_exec_ext in '' $ac_executable_extensions; do
5036 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5037 if test $ac_prog = install &&
5038 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5039 # AIX install. It has an incompatible calling convention.
5041 elif test $ac_prog = install &&
5042 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5043 # program-specific install script used by HP pwplus--don't use.
5045 else
5046 rm -rf conftest.one conftest.two conftest.dir
5047 echo one > conftest.one
5048 echo two > conftest.two
5049 mkdir conftest.dir
5050 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5051 test -s conftest.one && test -s conftest.two &&
5052 test -s conftest.dir/conftest.one &&
5053 test -s conftest.dir/conftest.two
5054 then
5055 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5056 break 3
5060 done
5061 done
5063 esac
5065 done
5066 IFS=$as_save_IFS
5068 rm -rf conftest.one conftest.two conftest.dir
5071 if test "${ac_cv_path_install+set}" = set; then
5072 INSTALL=$ac_cv_path_install
5073 else
5074 # As a last resort, use the slow shell script. Don't cache a
5075 # value for INSTALL within a source directory, because that will
5076 # break other packages using the cache if that directory is
5077 # removed, or if the value is a relative name.
5078 INSTALL=$ac_install_sh
5081 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5082 $as_echo "$INSTALL" >&6; }
5084 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5085 # It thinks the first close brace ends the variable substitution.
5086 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5088 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5090 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5093 # Not every filesystem supports hard links
5095 if test -z "$LN" ; then
5096 case $ac_sys_system in
5097 BeOS*) LN="ln -s";;
5098 CYGWIN*) LN="ln -s";;
5099 atheos*) LN="ln -s";;
5100 *) LN=ln;;
5101 esac
5104 # Check for --with-pydebug
5105 { $as_echo "$as_me:$LINENO: checking for --with-pydebug" >&5
5106 $as_echo_n "checking for --with-pydebug... " >&6; }
5108 # Check whether --with-pydebug was given.
5109 if test "${with_pydebug+set}" = set; then
5110 withval=$with_pydebug;
5111 if test "$withval" != no
5112 then
5114 cat >>confdefs.h <<\_ACEOF
5115 #define Py_DEBUG 1
5116 _ACEOF
5118 { $as_echo "$as_me:$LINENO: result: yes" >&5
5119 $as_echo "yes" >&6; };
5120 Py_DEBUG='true'
5121 else { $as_echo "$as_me:$LINENO: result: no" >&5
5122 $as_echo "no" >&6; }; Py_DEBUG='false'
5124 else
5125 { $as_echo "$as_me:$LINENO: result: no" >&5
5126 $as_echo "no" >&6; }
5130 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
5131 # merged with this chunk of code?
5133 # Optimizer/debugger flags
5134 # ------------------------
5135 # (The following bit of code is complicated enough - please keep things
5136 # indented properly. Just pretend you're editing Python code. ;-)
5138 # There are two parallel sets of case statements below, one that checks to
5139 # see if OPT was set and one that does BASECFLAGS setting based upon
5140 # compiler and platform. BASECFLAGS tweaks need to be made even if the
5141 # user set OPT.
5143 # tweak OPT based on compiler and platform, only if the user didn't set
5144 # it on the command line
5146 if test -z "$OPT"
5147 then
5148 case $GCC in
5149 yes)
5150 if test "$CC" != 'g++' ; then
5151 STRICT_PROTO="-Wstrict-prototypes"
5153 # For gcc 4.x we need to use -fwrapv so lets check if its supported
5154 if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then
5155 WRAP="-fwrapv"
5157 case $ac_cv_prog_cc_g in
5158 yes)
5159 if test "$Py_DEBUG" = 'true' ; then
5160 # Optimization messes up debuggers, so turn it off for
5161 # debug builds.
5162 OPT="-g -Wall $STRICT_PROTO"
5163 else
5164 OPT="-g $WRAP -O3 -Wall $STRICT_PROTO"
5168 OPT="-O3 -Wall $STRICT_PROTO"
5170 esac
5171 case $ac_sys_system in
5172 SCO_SV*) OPT="$OPT -m486 -DSCO5"
5174 esac
5178 OPT="-O"
5180 esac
5182 # The current (beta) Monterey compiler dies with optimizations
5183 # XXX what is Monterey? Does it still die w/ -O? Can we get rid of this?
5184 case $ac_sys_system in
5185 Monterey*)
5186 OPT=""
5188 esac
5194 # The -arch flags for universal builds on OSX
5195 UNIVERSAL_ARCH_FLAGS=
5198 # tweak BASECFLAGS based on compiler and platform
5199 case $GCC in
5200 yes)
5201 # Python violates C99 rules, by casting between incompatible
5202 # pointer types. GCC may generate bad code as a result of that,
5203 # so use -fno-strict-aliasing if supported.
5204 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
5205 $as_echo_n "checking whether $CC accepts -fno-strict-aliasing... " >&6; }
5206 ac_save_cc="$CC"
5207 CC="$CC -fno-strict-aliasing"
5208 if test "$cross_compiling" = yes; then
5209 ac_cv_no_strict_aliasing_ok=no
5210 else
5211 cat >conftest.$ac_ext <<_ACEOF
5212 /* confdefs.h. */
5213 _ACEOF
5214 cat confdefs.h >>conftest.$ac_ext
5215 cat >>conftest.$ac_ext <<_ACEOF
5216 /* end confdefs.h. */
5217 int main() { return 0; }
5218 _ACEOF
5219 rm -f conftest$ac_exeext
5220 if { (ac_try="$ac_link"
5221 case "(($ac_try" in
5222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5223 *) ac_try_echo=$ac_try;;
5224 esac
5225 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5226 $as_echo "$ac_try_echo") >&5
5227 (eval "$ac_link") 2>&5
5228 ac_status=$?
5229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5230 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5231 { (case "(($ac_try" in
5232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5233 *) ac_try_echo=$ac_try;;
5234 esac
5235 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5236 $as_echo "$ac_try_echo") >&5
5237 (eval "$ac_try") 2>&5
5238 ac_status=$?
5239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240 (exit $ac_status); }; }; then
5241 ac_cv_no_strict_aliasing_ok=yes
5242 else
5243 $as_echo "$as_me: program exited with status $ac_status" >&5
5244 $as_echo "$as_me: failed program was:" >&5
5245 sed 's/^/| /' conftest.$ac_ext >&5
5247 ( exit $ac_status )
5248 ac_cv_no_strict_aliasing_ok=no
5250 rm -rf conftest.dSYM
5251 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5255 CC="$ac_save_cc"
5256 { $as_echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
5257 $as_echo "$ac_cv_no_strict_aliasing_ok" >&6; }
5258 if test $ac_cv_no_strict_aliasing_ok = yes
5259 then
5260 BASECFLAGS="$BASECFLAGS -fno-strict-aliasing"
5263 # if using gcc on alpha, use -mieee to get (near) full IEEE 754
5264 # support. Without this, treatment of subnormals doesn't follow
5265 # the standard.
5266 case $ac_sys_machine in
5267 alpha*)
5268 BASECFLAGS="$BASECFLAGS -mieee"
5270 esac
5272 case $ac_sys_system in
5273 SCO_SV*)
5274 BASECFLAGS="$BASECFLAGS -m486 -DSCO5"
5276 # is there any other compiler on Darwin besides gcc?
5277 Darwin*)
5278 # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd
5279 # used to be here, but non-Apple gcc doesn't accept them.
5282 if test "${enable_universalsdk}"; then
5283 UNIVERSAL_ARCH_FLAGS=""
5284 if test "$UNIVERSAL_ARCHS" = "32-bit" ; then
5285 UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386"
5286 ARCH_RUN_32BIT=""
5288 elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then
5289 UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64"
5291 elif test "$UNIVERSAL_ARCHS" = "all" ; then
5292 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64"
5293 ARCH_RUN_32BIT="arch -i386 -ppc"
5295 else
5296 { { $as_echo "$as_me:$LINENO: error: proper usage is --with-universalarch=32-bit|64-bit|all" >&5
5297 $as_echo "$as_me: error: proper usage is --with-universalarch=32-bit|64-bit|all" >&2;}
5298 { (exit 1); exit 1; }; }
5303 BASECFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${BASECFLAGS}"
5304 tgt=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
5305 if test "${UNIVERSALSDK}" != "/" -a "${tgt}" '>' '10.4' ; then
5306 CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}"
5310 # Calculate the right deployment target for this build.
5312 cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
5313 if test ${cur_target} '>' 10.2; then
5314 cur_target=10.3
5316 if test "${UNIVERSAL_ARCHS}" = "all"; then
5317 # Ensure that the default platform for a 4-way
5318 # universal build is OSX 10.5, that's the first
5319 # OS release where 4-way builds make sense.
5320 cur_target='10.5'
5322 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
5324 # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the
5325 # environment with a value that is the same as what we'll use
5326 # in the Makefile to ensure that we'll get the same compiler
5327 # environment during configure and build time.
5328 MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET"
5329 export MACOSX_DEPLOYMENT_TARGET
5330 EXPORT_MACOSX_DEPLOYMENT_TARGET=''
5333 OSF*)
5334 BASECFLAGS="$BASECFLAGS -mieee"
5336 esac
5340 case $ac_sys_system in
5341 OpenUNIX*|UnixWare*)
5342 BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
5344 OSF*)
5345 BASECFLAGS="$BASECFLAGS -ieee -std"
5347 SCO_SV*)
5348 BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5"
5350 esac
5352 esac
5354 if test "$Py_DEBUG" = 'true'; then
5356 else
5357 OPT="-DNDEBUG $OPT"
5360 if test "$ac_arch_flags"
5361 then
5362 BASECFLAGS="$BASECFLAGS $ac_arch_flags"
5365 # disable check for icc since it seems to pass, but generates a warning
5366 if test "$CC" = icc
5367 then
5368 ac_cv_opt_olimit_ok=no
5371 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
5372 $as_echo_n "checking whether $CC accepts -OPT:Olimit=0... " >&6; }
5373 if test "${ac_cv_opt_olimit_ok+set}" = set; then
5374 $as_echo_n "(cached) " >&6
5375 else
5376 ac_save_cc="$CC"
5377 CC="$CC -OPT:Olimit=0"
5378 if test "$cross_compiling" = yes; then
5379 ac_cv_opt_olimit_ok=no
5380 else
5381 cat >conftest.$ac_ext <<_ACEOF
5382 /* confdefs.h. */
5383 _ACEOF
5384 cat confdefs.h >>conftest.$ac_ext
5385 cat >>conftest.$ac_ext <<_ACEOF
5386 /* end confdefs.h. */
5387 int main() { return 0; }
5388 _ACEOF
5389 rm -f conftest$ac_exeext
5390 if { (ac_try="$ac_link"
5391 case "(($ac_try" in
5392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5393 *) ac_try_echo=$ac_try;;
5394 esac
5395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5396 $as_echo "$ac_try_echo") >&5
5397 (eval "$ac_link") 2>&5
5398 ac_status=$?
5399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5400 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5401 { (case "(($ac_try" in
5402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5403 *) ac_try_echo=$ac_try;;
5404 esac
5405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5406 $as_echo "$ac_try_echo") >&5
5407 (eval "$ac_try") 2>&5
5408 ac_status=$?
5409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410 (exit $ac_status); }; }; then
5411 ac_cv_opt_olimit_ok=yes
5412 else
5413 $as_echo "$as_me: program exited with status $ac_status" >&5
5414 $as_echo "$as_me: failed program was:" >&5
5415 sed 's/^/| /' conftest.$ac_ext >&5
5417 ( exit $ac_status )
5418 ac_cv_opt_olimit_ok=no
5420 rm -rf conftest.dSYM
5421 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5425 CC="$ac_save_cc"
5428 { $as_echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
5429 $as_echo "$ac_cv_opt_olimit_ok" >&6; }
5430 if test $ac_cv_opt_olimit_ok = yes; then
5431 case $ac_sys_system in
5432 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
5433 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
5434 # environment?
5435 Darwin*)
5438 BASECFLAGS="$BASECFLAGS -OPT:Olimit=0"
5440 esac
5441 else
5442 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
5443 $as_echo_n "checking whether $CC accepts -Olimit 1500... " >&6; }
5444 if test "${ac_cv_olimit_ok+set}" = set; then
5445 $as_echo_n "(cached) " >&6
5446 else
5447 ac_save_cc="$CC"
5448 CC="$CC -Olimit 1500"
5449 if test "$cross_compiling" = yes; then
5450 ac_cv_olimit_ok=no
5451 else
5452 cat >conftest.$ac_ext <<_ACEOF
5453 /* confdefs.h. */
5454 _ACEOF
5455 cat confdefs.h >>conftest.$ac_ext
5456 cat >>conftest.$ac_ext <<_ACEOF
5457 /* end confdefs.h. */
5458 int main() { return 0; }
5459 _ACEOF
5460 rm -f conftest$ac_exeext
5461 if { (ac_try="$ac_link"
5462 case "(($ac_try" in
5463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5464 *) ac_try_echo=$ac_try;;
5465 esac
5466 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5467 $as_echo "$ac_try_echo") >&5
5468 (eval "$ac_link") 2>&5
5469 ac_status=$?
5470 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5471 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5472 { (case "(($ac_try" in
5473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5474 *) ac_try_echo=$ac_try;;
5475 esac
5476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5477 $as_echo "$ac_try_echo") >&5
5478 (eval "$ac_try") 2>&5
5479 ac_status=$?
5480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5481 (exit $ac_status); }; }; then
5482 ac_cv_olimit_ok=yes
5483 else
5484 $as_echo "$as_me: program exited with status $ac_status" >&5
5485 $as_echo "$as_me: failed program was:" >&5
5486 sed 's/^/| /' conftest.$ac_ext >&5
5488 ( exit $ac_status )
5489 ac_cv_olimit_ok=no
5491 rm -rf conftest.dSYM
5492 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5496 CC="$ac_save_cc"
5499 { $as_echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
5500 $as_echo "$ac_cv_olimit_ok" >&6; }
5501 if test $ac_cv_olimit_ok = yes; then
5502 BASECFLAGS="$BASECFLAGS -Olimit 1500"
5506 # Check whether GCC supports PyArg_ParseTuple format
5507 if test "$GCC" = "yes"
5508 then
5509 { $as_echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5
5510 $as_echo_n "checking whether gcc supports ParseTuple __format__... " >&6; }
5511 save_CFLAGS=$CFLAGS
5512 CFLAGS="$CFLAGS -Werror"
5513 cat >conftest.$ac_ext <<_ACEOF
5514 /* confdefs.h. */
5515 _ACEOF
5516 cat confdefs.h >>conftest.$ac_ext
5517 cat >>conftest.$ac_ext <<_ACEOF
5518 /* end confdefs.h. */
5520 void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2)));
5523 main ()
5527 return 0;
5529 _ACEOF
5530 rm -f conftest.$ac_objext
5531 if { (ac_try="$ac_compile"
5532 case "(($ac_try" in
5533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5534 *) ac_try_echo=$ac_try;;
5535 esac
5536 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5537 $as_echo "$ac_try_echo") >&5
5538 (eval "$ac_compile") 2>conftest.er1
5539 ac_status=$?
5540 grep -v '^ *+' conftest.er1 >conftest.err
5541 rm -f conftest.er1
5542 cat conftest.err >&5
5543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544 (exit $ac_status); } && {
5545 test -z "$ac_c_werror_flag" ||
5546 test ! -s conftest.err
5547 } && test -s conftest.$ac_objext; then
5549 cat >>confdefs.h <<\_ACEOF
5550 #define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1
5551 _ACEOF
5553 { $as_echo "$as_me:$LINENO: result: yes" >&5
5554 $as_echo "yes" >&6; }
5555 else
5556 $as_echo "$as_me: failed program was:" >&5
5557 sed 's/^/| /' conftest.$ac_ext >&5
5559 { $as_echo "$as_me:$LINENO: result: no" >&5
5560 $as_echo "no" >&6; }
5564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5565 CFLAGS=$save_CFLAGS
5568 # On some compilers, pthreads are available without further options
5569 # (e.g. MacOS X). On some of these systems, the compiler will not
5570 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
5571 # So we have to see first whether pthreads are available without
5572 # options before we can check whether -Kpthread improves anything.
5573 { $as_echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
5574 $as_echo_n "checking whether pthreads are available without options... " >&6; }
5575 if test "${ac_cv_pthread_is_default+set}" = set; then
5576 $as_echo_n "(cached) " >&6
5577 else
5578 if test "$cross_compiling" = yes; then
5579 ac_cv_pthread_is_default=no
5580 else
5581 cat >conftest.$ac_ext <<_ACEOF
5582 /* confdefs.h. */
5583 _ACEOF
5584 cat confdefs.h >>conftest.$ac_ext
5585 cat >>conftest.$ac_ext <<_ACEOF
5586 /* end confdefs.h. */
5588 #include <pthread.h>
5590 void* routine(void* p){return NULL;}
5592 int main(){
5593 pthread_t p;
5594 if(pthread_create(&p,NULL,routine,NULL)!=0)
5595 return 1;
5596 (void)pthread_detach(p);
5597 return 0;
5600 _ACEOF
5601 rm -f conftest$ac_exeext
5602 if { (ac_try="$ac_link"
5603 case "(($ac_try" in
5604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5605 *) ac_try_echo=$ac_try;;
5606 esac
5607 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5608 $as_echo "$ac_try_echo") >&5
5609 (eval "$ac_link") 2>&5
5610 ac_status=$?
5611 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5613 { (case "(($ac_try" in
5614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5615 *) ac_try_echo=$ac_try;;
5616 esac
5617 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5618 $as_echo "$ac_try_echo") >&5
5619 (eval "$ac_try") 2>&5
5620 ac_status=$?
5621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622 (exit $ac_status); }; }; then
5624 ac_cv_pthread_is_default=yes
5625 ac_cv_kthread=no
5626 ac_cv_pthread=no
5628 else
5629 $as_echo "$as_me: program exited with status $ac_status" >&5
5630 $as_echo "$as_me: failed program was:" >&5
5631 sed 's/^/| /' conftest.$ac_ext >&5
5633 ( exit $ac_status )
5634 ac_cv_pthread_is_default=no
5636 rm -rf conftest.dSYM
5637 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5644 { $as_echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
5645 $as_echo "$ac_cv_pthread_is_default" >&6; }
5648 if test $ac_cv_pthread_is_default = yes
5649 then
5650 ac_cv_kpthread=no
5651 else
5652 # -Kpthread, if available, provides the right #defines
5653 # and linker options to make pthread_create available
5654 # Some compilers won't report that they do not support -Kpthread,
5655 # so we need to run a program to see whether it really made the
5656 # function available.
5657 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
5658 $as_echo_n "checking whether $CC accepts -Kpthread... " >&6; }
5659 if test "${ac_cv_kpthread+set}" = set; then
5660 $as_echo_n "(cached) " >&6
5661 else
5662 ac_save_cc="$CC"
5663 CC="$CC -Kpthread"
5664 if test "$cross_compiling" = yes; then
5665 ac_cv_kpthread=no
5666 else
5667 cat >conftest.$ac_ext <<_ACEOF
5668 /* confdefs.h. */
5669 _ACEOF
5670 cat confdefs.h >>conftest.$ac_ext
5671 cat >>conftest.$ac_ext <<_ACEOF
5672 /* end confdefs.h. */
5674 #include <pthread.h>
5676 void* routine(void* p){return NULL;}
5678 int main(){
5679 pthread_t p;
5680 if(pthread_create(&p,NULL,routine,NULL)!=0)
5681 return 1;
5682 (void)pthread_detach(p);
5683 return 0;
5686 _ACEOF
5687 rm -f conftest$ac_exeext
5688 if { (ac_try="$ac_link"
5689 case "(($ac_try" in
5690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5691 *) ac_try_echo=$ac_try;;
5692 esac
5693 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5694 $as_echo "$ac_try_echo") >&5
5695 (eval "$ac_link") 2>&5
5696 ac_status=$?
5697 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5699 { (case "(($ac_try" in
5700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5701 *) ac_try_echo=$ac_try;;
5702 esac
5703 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5704 $as_echo "$ac_try_echo") >&5
5705 (eval "$ac_try") 2>&5
5706 ac_status=$?
5707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5708 (exit $ac_status); }; }; then
5709 ac_cv_kpthread=yes
5710 else
5711 $as_echo "$as_me: program exited with status $ac_status" >&5
5712 $as_echo "$as_me: failed program was:" >&5
5713 sed 's/^/| /' conftest.$ac_ext >&5
5715 ( exit $ac_status )
5716 ac_cv_kpthread=no
5718 rm -rf conftest.dSYM
5719 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5723 CC="$ac_save_cc"
5726 { $as_echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
5727 $as_echo "$ac_cv_kpthread" >&6; }
5730 if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
5731 then
5732 # -Kthread, if available, provides the right #defines
5733 # and linker options to make pthread_create available
5734 # Some compilers won't report that they do not support -Kthread,
5735 # so we need to run a program to see whether it really made the
5736 # function available.
5737 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
5738 $as_echo_n "checking whether $CC accepts -Kthread... " >&6; }
5739 if test "${ac_cv_kthread+set}" = set; then
5740 $as_echo_n "(cached) " >&6
5741 else
5742 ac_save_cc="$CC"
5743 CC="$CC -Kthread"
5744 if test "$cross_compiling" = yes; then
5745 ac_cv_kthread=no
5746 else
5747 cat >conftest.$ac_ext <<_ACEOF
5748 /* confdefs.h. */
5749 _ACEOF
5750 cat confdefs.h >>conftest.$ac_ext
5751 cat >>conftest.$ac_ext <<_ACEOF
5752 /* end confdefs.h. */
5754 #include <pthread.h>
5756 void* routine(void* p){return NULL;}
5758 int main(){
5759 pthread_t p;
5760 if(pthread_create(&p,NULL,routine,NULL)!=0)
5761 return 1;
5762 (void)pthread_detach(p);
5763 return 0;
5766 _ACEOF
5767 rm -f conftest$ac_exeext
5768 if { (ac_try="$ac_link"
5769 case "(($ac_try" in
5770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5771 *) ac_try_echo=$ac_try;;
5772 esac
5773 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5774 $as_echo "$ac_try_echo") >&5
5775 (eval "$ac_link") 2>&5
5776 ac_status=$?
5777 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5779 { (case "(($ac_try" in
5780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5781 *) ac_try_echo=$ac_try;;
5782 esac
5783 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5784 $as_echo "$ac_try_echo") >&5
5785 (eval "$ac_try") 2>&5
5786 ac_status=$?
5787 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788 (exit $ac_status); }; }; then
5789 ac_cv_kthread=yes
5790 else
5791 $as_echo "$as_me: program exited with status $ac_status" >&5
5792 $as_echo "$as_me: failed program was:" >&5
5793 sed 's/^/| /' conftest.$ac_ext >&5
5795 ( exit $ac_status )
5796 ac_cv_kthread=no
5798 rm -rf conftest.dSYM
5799 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5803 CC="$ac_save_cc"
5806 { $as_echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
5807 $as_echo "$ac_cv_kthread" >&6; }
5810 if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
5811 then
5812 # -pthread, if available, provides the right #defines
5813 # and linker options to make pthread_create available
5814 # Some compilers won't report that they do not support -pthread,
5815 # so we need to run a program to see whether it really made the
5816 # function available.
5817 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
5818 $as_echo_n "checking whether $CC accepts -pthread... " >&6; }
5819 if test "${ac_cv_thread+set}" = set; then
5820 $as_echo_n "(cached) " >&6
5821 else
5822 ac_save_cc="$CC"
5823 CC="$CC -pthread"
5824 if test "$cross_compiling" = yes; then
5825 ac_cv_pthread=no
5826 else
5827 cat >conftest.$ac_ext <<_ACEOF
5828 /* confdefs.h. */
5829 _ACEOF
5830 cat confdefs.h >>conftest.$ac_ext
5831 cat >>conftest.$ac_ext <<_ACEOF
5832 /* end confdefs.h. */
5834 #include <pthread.h>
5836 void* routine(void* p){return NULL;}
5838 int main(){
5839 pthread_t p;
5840 if(pthread_create(&p,NULL,routine,NULL)!=0)
5841 return 1;
5842 (void)pthread_detach(p);
5843 return 0;
5846 _ACEOF
5847 rm -f conftest$ac_exeext
5848 if { (ac_try="$ac_link"
5849 case "(($ac_try" in
5850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5851 *) ac_try_echo=$ac_try;;
5852 esac
5853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5854 $as_echo "$ac_try_echo") >&5
5855 (eval "$ac_link") 2>&5
5856 ac_status=$?
5857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5859 { (case "(($ac_try" in
5860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5861 *) ac_try_echo=$ac_try;;
5862 esac
5863 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5864 $as_echo "$ac_try_echo") >&5
5865 (eval "$ac_try") 2>&5
5866 ac_status=$?
5867 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868 (exit $ac_status); }; }; then
5869 ac_cv_pthread=yes
5870 else
5871 $as_echo "$as_me: program exited with status $ac_status" >&5
5872 $as_echo "$as_me: failed program was:" >&5
5873 sed 's/^/| /' conftest.$ac_ext >&5
5875 ( exit $ac_status )
5876 ac_cv_pthread=no
5878 rm -rf conftest.dSYM
5879 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5883 CC="$ac_save_cc"
5886 { $as_echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
5887 $as_echo "$ac_cv_pthread" >&6; }
5890 # If we have set a CC compiler flag for thread support then
5891 # check if it works for CXX, too.
5892 ac_cv_cxx_thread=no
5893 if test ! -z "$CXX"
5894 then
5895 { $as_echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
5896 $as_echo_n "checking whether $CXX also accepts flags for thread support... " >&6; }
5897 ac_save_cxx="$CXX"
5899 if test "$ac_cv_kpthread" = "yes"
5900 then
5901 CXX="$CXX -Kpthread"
5902 ac_cv_cxx_thread=yes
5903 elif test "$ac_cv_kthread" = "yes"
5904 then
5905 CXX="$CXX -Kthread"
5906 ac_cv_cxx_thread=yes
5907 elif test "$ac_cv_pthread" = "yes"
5908 then
5909 CXX="$CXX -pthread"
5910 ac_cv_cxx_thread=yes
5913 if test $ac_cv_cxx_thread = yes
5914 then
5915 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
5916 $CXX -c conftest.$ac_ext 2>&5
5917 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
5918 && test -s conftest$ac_exeext && ./conftest$ac_exeext
5919 then
5920 ac_cv_cxx_thread=yes
5921 else
5922 ac_cv_cxx_thread=no
5924 rm -fr conftest*
5926 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
5927 $as_echo "$ac_cv_cxx_thread" >&6; }
5929 CXX="$ac_save_cxx"
5932 # checks for header files
5933 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5934 $as_echo_n "checking for ANSI C header files... " >&6; }
5935 if test "${ac_cv_header_stdc+set}" = set; then
5936 $as_echo_n "(cached) " >&6
5937 else
5938 cat >conftest.$ac_ext <<_ACEOF
5939 /* confdefs.h. */
5940 _ACEOF
5941 cat confdefs.h >>conftest.$ac_ext
5942 cat >>conftest.$ac_ext <<_ACEOF
5943 /* end confdefs.h. */
5944 #include <stdlib.h>
5945 #include <stdarg.h>
5946 #include <string.h>
5947 #include <float.h>
5950 main ()
5954 return 0;
5956 _ACEOF
5957 rm -f conftest.$ac_objext
5958 if { (ac_try="$ac_compile"
5959 case "(($ac_try" in
5960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5961 *) ac_try_echo=$ac_try;;
5962 esac
5963 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5964 $as_echo "$ac_try_echo") >&5
5965 (eval "$ac_compile") 2>conftest.er1
5966 ac_status=$?
5967 grep -v '^ *+' conftest.er1 >conftest.err
5968 rm -f conftest.er1
5969 cat conftest.err >&5
5970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971 (exit $ac_status); } && {
5972 test -z "$ac_c_werror_flag" ||
5973 test ! -s conftest.err
5974 } && test -s conftest.$ac_objext; then
5975 ac_cv_header_stdc=yes
5976 else
5977 $as_echo "$as_me: failed program was:" >&5
5978 sed 's/^/| /' conftest.$ac_ext >&5
5980 ac_cv_header_stdc=no
5983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5985 if test $ac_cv_header_stdc = yes; then
5986 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5987 cat >conftest.$ac_ext <<_ACEOF
5988 /* confdefs.h. */
5989 _ACEOF
5990 cat confdefs.h >>conftest.$ac_ext
5991 cat >>conftest.$ac_ext <<_ACEOF
5992 /* end confdefs.h. */
5993 #include <string.h>
5995 _ACEOF
5996 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5997 $EGREP "memchr" >/dev/null 2>&1; then
5999 else
6000 ac_cv_header_stdc=no
6002 rm -f conftest*
6006 if test $ac_cv_header_stdc = yes; then
6007 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6008 cat >conftest.$ac_ext <<_ACEOF
6009 /* confdefs.h. */
6010 _ACEOF
6011 cat confdefs.h >>conftest.$ac_ext
6012 cat >>conftest.$ac_ext <<_ACEOF
6013 /* end confdefs.h. */
6014 #include <stdlib.h>
6016 _ACEOF
6017 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6018 $EGREP "free" >/dev/null 2>&1; then
6020 else
6021 ac_cv_header_stdc=no
6023 rm -f conftest*
6027 if test $ac_cv_header_stdc = yes; then
6028 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6029 if test "$cross_compiling" = yes; then
6031 else
6032 cat >conftest.$ac_ext <<_ACEOF
6033 /* confdefs.h. */
6034 _ACEOF
6035 cat confdefs.h >>conftest.$ac_ext
6036 cat >>conftest.$ac_ext <<_ACEOF
6037 /* end confdefs.h. */
6038 #include <ctype.h>
6039 #include <stdlib.h>
6040 #if ((' ' & 0x0FF) == 0x020)
6041 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6042 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6043 #else
6044 # define ISLOWER(c) \
6045 (('a' <= (c) && (c) <= 'i') \
6046 || ('j' <= (c) && (c) <= 'r') \
6047 || ('s' <= (c) && (c) <= 'z'))
6048 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6049 #endif
6051 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6053 main ()
6055 int i;
6056 for (i = 0; i < 256; i++)
6057 if (XOR (islower (i), ISLOWER (i))
6058 || toupper (i) != TOUPPER (i))
6059 return 2;
6060 return 0;
6062 _ACEOF
6063 rm -f 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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6070 $as_echo "$ac_try_echo") >&5
6071 (eval "$ac_link") 2>&5
6072 ac_status=$?
6073 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6075 { (case "(($ac_try" in
6076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6077 *) ac_try_echo=$ac_try;;
6078 esac
6079 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6080 $as_echo "$ac_try_echo") >&5
6081 (eval "$ac_try") 2>&5
6082 ac_status=$?
6083 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084 (exit $ac_status); }; }; then
6086 else
6087 $as_echo "$as_me: program exited with status $ac_status" >&5
6088 $as_echo "$as_me: failed program was:" >&5
6089 sed 's/^/| /' conftest.$ac_ext >&5
6091 ( exit $ac_status )
6092 ac_cv_header_stdc=no
6094 rm -rf conftest.dSYM
6095 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6101 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6102 $as_echo "$ac_cv_header_stdc" >&6; }
6103 if test $ac_cv_header_stdc = yes; then
6105 cat >>confdefs.h <<\_ACEOF
6106 #define STDC_HEADERS 1
6107 _ACEOF
6165 for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \
6166 fcntl.h grp.h \
6167 ieeefp.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
6168 shadow.h signal.h stdint.h stropts.h termios.h thread.h \
6169 unistd.h utime.h \
6170 sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \
6171 sys/lock.h sys/mkdev.h sys/modem.h \
6172 sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \
6173 sys/termio.h sys/time.h \
6174 sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
6175 sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
6176 bluetooth/bluetooth.h linux/tipc.h
6178 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6179 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6180 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6181 $as_echo_n "checking for $ac_header... " >&6; }
6182 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6183 $as_echo_n "(cached) " >&6
6185 ac_res=`eval 'as_val=${'$as_ac_Header'}
6186 $as_echo "$as_val"'`
6187 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6188 $as_echo "$ac_res" >&6; }
6189 else
6190 # Is the header compilable?
6191 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6192 $as_echo_n "checking $ac_header usability... " >&6; }
6193 cat >conftest.$ac_ext <<_ACEOF
6194 /* confdefs.h. */
6195 _ACEOF
6196 cat confdefs.h >>conftest.$ac_ext
6197 cat >>conftest.$ac_ext <<_ACEOF
6198 /* end confdefs.h. */
6199 $ac_includes_default
6200 #include <$ac_header>
6201 _ACEOF
6202 rm -f conftest.$ac_objext
6203 if { (ac_try="$ac_compile"
6204 case "(($ac_try" in
6205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6206 *) ac_try_echo=$ac_try;;
6207 esac
6208 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6209 $as_echo "$ac_try_echo") >&5
6210 (eval "$ac_compile") 2>conftest.er1
6211 ac_status=$?
6212 grep -v '^ *+' conftest.er1 >conftest.err
6213 rm -f conftest.er1
6214 cat conftest.err >&5
6215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216 (exit $ac_status); } && {
6217 test -z "$ac_c_werror_flag" ||
6218 test ! -s conftest.err
6219 } && test -s conftest.$ac_objext; then
6220 ac_header_compiler=yes
6221 else
6222 $as_echo "$as_me: failed program was:" >&5
6223 sed 's/^/| /' conftest.$ac_ext >&5
6225 ac_header_compiler=no
6228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6229 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6230 $as_echo "$ac_header_compiler" >&6; }
6232 # Is the header present?
6233 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6234 $as_echo_n "checking $ac_header presence... " >&6; }
6235 cat >conftest.$ac_ext <<_ACEOF
6236 /* confdefs.h. */
6237 _ACEOF
6238 cat confdefs.h >>conftest.$ac_ext
6239 cat >>conftest.$ac_ext <<_ACEOF
6240 /* end confdefs.h. */
6241 #include <$ac_header>
6242 _ACEOF
6243 if { (ac_try="$ac_cpp conftest.$ac_ext"
6244 case "(($ac_try" in
6245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6246 *) ac_try_echo=$ac_try;;
6247 esac
6248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6249 $as_echo "$ac_try_echo") >&5
6250 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6251 ac_status=$?
6252 grep -v '^ *+' conftest.er1 >conftest.err
6253 rm -f conftest.er1
6254 cat conftest.err >&5
6255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256 (exit $ac_status); } >/dev/null && {
6257 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6258 test ! -s conftest.err
6259 }; then
6260 ac_header_preproc=yes
6261 else
6262 $as_echo "$as_me: failed program was:" >&5
6263 sed 's/^/| /' conftest.$ac_ext >&5
6265 ac_header_preproc=no
6268 rm -f conftest.err conftest.$ac_ext
6269 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6270 $as_echo "$ac_header_preproc" >&6; }
6272 # So? What about this header?
6273 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6274 yes:no: )
6275 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6276 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6277 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6278 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6279 ac_header_preproc=yes
6281 no:yes:* )
6282 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6283 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6284 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6285 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6286 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6287 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6288 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6289 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6290 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6291 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6292 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6293 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6294 ( cat <<\_ASBOX
6295 ## -------------------------------------- ##
6296 ## Report this to http://bugs.python.org/ ##
6297 ## -------------------------------------- ##
6298 _ASBOX
6299 ) | sed "s/^/$as_me: WARNING: /" >&2
6301 esac
6302 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6303 $as_echo_n "checking for $ac_header... " >&6; }
6304 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6305 $as_echo_n "(cached) " >&6
6306 else
6307 eval "$as_ac_Header=\$ac_header_preproc"
6309 ac_res=`eval 'as_val=${'$as_ac_Header'}
6310 $as_echo "$as_val"'`
6311 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6312 $as_echo "$ac_res" >&6; }
6315 as_val=`eval 'as_val=${'$as_ac_Header'}
6316 $as_echo "$as_val"'`
6317 if test "x$as_val" = x""yes; then
6318 cat >>confdefs.h <<_ACEOF
6319 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6320 _ACEOF
6324 done
6331 ac_header_dirent=no
6332 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6333 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6334 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6335 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6336 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6337 $as_echo_n "(cached) " >&6
6338 else
6339 cat >conftest.$ac_ext <<_ACEOF
6340 /* confdefs.h. */
6341 _ACEOF
6342 cat confdefs.h >>conftest.$ac_ext
6343 cat >>conftest.$ac_ext <<_ACEOF
6344 /* end confdefs.h. */
6345 #include <sys/types.h>
6346 #include <$ac_hdr>
6349 main ()
6351 if ((DIR *) 0)
6352 return 0;
6354 return 0;
6356 _ACEOF
6357 rm -f conftest.$ac_objext
6358 if { (ac_try="$ac_compile"
6359 case "(($ac_try" in
6360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6361 *) ac_try_echo=$ac_try;;
6362 esac
6363 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6364 $as_echo "$ac_try_echo") >&5
6365 (eval "$ac_compile") 2>conftest.er1
6366 ac_status=$?
6367 grep -v '^ *+' conftest.er1 >conftest.err
6368 rm -f conftest.er1
6369 cat conftest.err >&5
6370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6371 (exit $ac_status); } && {
6372 test -z "$ac_c_werror_flag" ||
6373 test ! -s conftest.err
6374 } && test -s conftest.$ac_objext; then
6375 eval "$as_ac_Header=yes"
6376 else
6377 $as_echo "$as_me: failed program was:" >&5
6378 sed 's/^/| /' conftest.$ac_ext >&5
6380 eval "$as_ac_Header=no"
6383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6385 ac_res=`eval 'as_val=${'$as_ac_Header'}
6386 $as_echo "$as_val"'`
6387 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6388 $as_echo "$ac_res" >&6; }
6389 as_val=`eval 'as_val=${'$as_ac_Header'}
6390 $as_echo "$as_val"'`
6391 if test "x$as_val" = x""yes; then
6392 cat >>confdefs.h <<_ACEOF
6393 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6394 _ACEOF
6396 ac_header_dirent=$ac_hdr; break
6399 done
6400 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6401 if test $ac_header_dirent = dirent.h; then
6402 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
6403 $as_echo_n "checking for library containing opendir... " >&6; }
6404 if test "${ac_cv_search_opendir+set}" = set; then
6405 $as_echo_n "(cached) " >&6
6406 else
6407 ac_func_search_save_LIBS=$LIBS
6408 cat >conftest.$ac_ext <<_ACEOF
6409 /* confdefs.h. */
6410 _ACEOF
6411 cat confdefs.h >>conftest.$ac_ext
6412 cat >>conftest.$ac_ext <<_ACEOF
6413 /* end confdefs.h. */
6415 /* Override any GCC internal prototype to avoid an error.
6416 Use char because int might match the return type of a GCC
6417 builtin and then its argument prototype would still apply. */
6418 #ifdef __cplusplus
6419 extern "C"
6420 #endif
6421 char opendir ();
6423 main ()
6425 return opendir ();
6427 return 0;
6429 _ACEOF
6430 for ac_lib in '' dir; do
6431 if test -z "$ac_lib"; then
6432 ac_res="none required"
6433 else
6434 ac_res=-l$ac_lib
6435 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6437 rm -f conftest.$ac_objext conftest$ac_exeext
6438 if { (ac_try="$ac_link"
6439 case "(($ac_try" in
6440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6441 *) ac_try_echo=$ac_try;;
6442 esac
6443 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6444 $as_echo "$ac_try_echo") >&5
6445 (eval "$ac_link") 2>conftest.er1
6446 ac_status=$?
6447 grep -v '^ *+' conftest.er1 >conftest.err
6448 rm -f conftest.er1
6449 cat conftest.err >&5
6450 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6451 (exit $ac_status); } && {
6452 test -z "$ac_c_werror_flag" ||
6453 test ! -s conftest.err
6454 } && test -s conftest$ac_exeext && {
6455 test "$cross_compiling" = yes ||
6456 $as_test_x conftest$ac_exeext
6457 }; then
6458 ac_cv_search_opendir=$ac_res
6459 else
6460 $as_echo "$as_me: failed program was:" >&5
6461 sed 's/^/| /' conftest.$ac_ext >&5
6466 rm -rf conftest.dSYM
6467 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6468 conftest$ac_exeext
6469 if test "${ac_cv_search_opendir+set}" = set; then
6470 break
6472 done
6473 if test "${ac_cv_search_opendir+set}" = set; then
6475 else
6476 ac_cv_search_opendir=no
6478 rm conftest.$ac_ext
6479 LIBS=$ac_func_search_save_LIBS
6481 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6482 $as_echo "$ac_cv_search_opendir" >&6; }
6483 ac_res=$ac_cv_search_opendir
6484 if test "$ac_res" != no; then
6485 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6489 else
6490 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
6491 $as_echo_n "checking for library containing opendir... " >&6; }
6492 if test "${ac_cv_search_opendir+set}" = set; then
6493 $as_echo_n "(cached) " >&6
6494 else
6495 ac_func_search_save_LIBS=$LIBS
6496 cat >conftest.$ac_ext <<_ACEOF
6497 /* confdefs.h. */
6498 _ACEOF
6499 cat confdefs.h >>conftest.$ac_ext
6500 cat >>conftest.$ac_ext <<_ACEOF
6501 /* end confdefs.h. */
6503 /* Override any GCC internal prototype to avoid an error.
6504 Use char because int might match the return type of a GCC
6505 builtin and then its argument prototype would still apply. */
6506 #ifdef __cplusplus
6507 extern "C"
6508 #endif
6509 char opendir ();
6511 main ()
6513 return opendir ();
6515 return 0;
6517 _ACEOF
6518 for ac_lib in '' x; do
6519 if test -z "$ac_lib"; then
6520 ac_res="none required"
6521 else
6522 ac_res=-l$ac_lib
6523 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6525 rm -f conftest.$ac_objext conftest$ac_exeext
6526 if { (ac_try="$ac_link"
6527 case "(($ac_try" in
6528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6529 *) ac_try_echo=$ac_try;;
6530 esac
6531 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6532 $as_echo "$ac_try_echo") >&5
6533 (eval "$ac_link") 2>conftest.er1
6534 ac_status=$?
6535 grep -v '^ *+' conftest.er1 >conftest.err
6536 rm -f conftest.er1
6537 cat conftest.err >&5
6538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539 (exit $ac_status); } && {
6540 test -z "$ac_c_werror_flag" ||
6541 test ! -s conftest.err
6542 } && test -s conftest$ac_exeext && {
6543 test "$cross_compiling" = yes ||
6544 $as_test_x conftest$ac_exeext
6545 }; then
6546 ac_cv_search_opendir=$ac_res
6547 else
6548 $as_echo "$as_me: failed program was:" >&5
6549 sed 's/^/| /' conftest.$ac_ext >&5
6554 rm -rf conftest.dSYM
6555 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6556 conftest$ac_exeext
6557 if test "${ac_cv_search_opendir+set}" = set; then
6558 break
6560 done
6561 if test "${ac_cv_search_opendir+set}" = set; then
6563 else
6564 ac_cv_search_opendir=no
6566 rm conftest.$ac_ext
6567 LIBS=$ac_func_search_save_LIBS
6569 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6570 $as_echo "$ac_cv_search_opendir" >&6; }
6571 ac_res=$ac_cv_search_opendir
6572 if test "$ac_res" != no; then
6573 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6579 { $as_echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
6580 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
6581 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
6582 $as_echo_n "(cached) " >&6
6583 else
6584 cat >conftest.$ac_ext <<_ACEOF
6585 /* confdefs.h. */
6586 _ACEOF
6587 cat confdefs.h >>conftest.$ac_ext
6588 cat >>conftest.$ac_ext <<_ACEOF
6589 /* end confdefs.h. */
6590 #include <sys/types.h>
6592 main ()
6594 return makedev(0, 0);
6596 return 0;
6598 _ACEOF
6599 rm -f conftest.$ac_objext conftest$ac_exeext
6600 if { (ac_try="$ac_link"
6601 case "(($ac_try" in
6602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6603 *) ac_try_echo=$ac_try;;
6604 esac
6605 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6606 $as_echo "$ac_try_echo") >&5
6607 (eval "$ac_link") 2>conftest.er1
6608 ac_status=$?
6609 grep -v '^ *+' conftest.er1 >conftest.err
6610 rm -f conftest.er1
6611 cat conftest.err >&5
6612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6613 (exit $ac_status); } && {
6614 test -z "$ac_c_werror_flag" ||
6615 test ! -s conftest.err
6616 } && test -s conftest$ac_exeext && {
6617 test "$cross_compiling" = yes ||
6618 $as_test_x conftest$ac_exeext
6619 }; then
6620 ac_cv_header_sys_types_h_makedev=yes
6621 else
6622 $as_echo "$as_me: failed program was:" >&5
6623 sed 's/^/| /' conftest.$ac_ext >&5
6625 ac_cv_header_sys_types_h_makedev=no
6628 rm -rf conftest.dSYM
6629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6630 conftest$ac_exeext conftest.$ac_ext
6633 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
6634 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
6636 if test $ac_cv_header_sys_types_h_makedev = no; then
6637 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6638 { $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6639 $as_echo_n "checking for sys/mkdev.h... " >&6; }
6640 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6641 $as_echo_n "(cached) " >&6
6643 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6644 $as_echo "$ac_cv_header_sys_mkdev_h" >&6; }
6645 else
6646 # Is the header compilable?
6647 { $as_echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
6648 $as_echo_n "checking sys/mkdev.h usability... " >&6; }
6649 cat >conftest.$ac_ext <<_ACEOF
6650 /* confdefs.h. */
6651 _ACEOF
6652 cat confdefs.h >>conftest.$ac_ext
6653 cat >>conftest.$ac_ext <<_ACEOF
6654 /* end confdefs.h. */
6655 $ac_includes_default
6656 #include <sys/mkdev.h>
6657 _ACEOF
6658 rm -f conftest.$ac_objext
6659 if { (ac_try="$ac_compile"
6660 case "(($ac_try" in
6661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6662 *) ac_try_echo=$ac_try;;
6663 esac
6664 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6665 $as_echo "$ac_try_echo") >&5
6666 (eval "$ac_compile") 2>conftest.er1
6667 ac_status=$?
6668 grep -v '^ *+' conftest.er1 >conftest.err
6669 rm -f conftest.er1
6670 cat conftest.err >&5
6671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6672 (exit $ac_status); } && {
6673 test -z "$ac_c_werror_flag" ||
6674 test ! -s conftest.err
6675 } && test -s conftest.$ac_objext; then
6676 ac_header_compiler=yes
6677 else
6678 $as_echo "$as_me: failed program was:" >&5
6679 sed 's/^/| /' conftest.$ac_ext >&5
6681 ac_header_compiler=no
6684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6685 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6686 $as_echo "$ac_header_compiler" >&6; }
6688 # Is the header present?
6689 { $as_echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
6690 $as_echo_n "checking sys/mkdev.h presence... " >&6; }
6691 cat >conftest.$ac_ext <<_ACEOF
6692 /* confdefs.h. */
6693 _ACEOF
6694 cat confdefs.h >>conftest.$ac_ext
6695 cat >>conftest.$ac_ext <<_ACEOF
6696 /* end confdefs.h. */
6697 #include <sys/mkdev.h>
6698 _ACEOF
6699 if { (ac_try="$ac_cpp conftest.$ac_ext"
6700 case "(($ac_try" in
6701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6702 *) ac_try_echo=$ac_try;;
6703 esac
6704 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6705 $as_echo "$ac_try_echo") >&5
6706 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6707 ac_status=$?
6708 grep -v '^ *+' conftest.er1 >conftest.err
6709 rm -f conftest.er1
6710 cat conftest.err >&5
6711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712 (exit $ac_status); } >/dev/null && {
6713 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6714 test ! -s conftest.err
6715 }; then
6716 ac_header_preproc=yes
6717 else
6718 $as_echo "$as_me: failed program was:" >&5
6719 sed 's/^/| /' conftest.$ac_ext >&5
6721 ac_header_preproc=no
6724 rm -f conftest.err conftest.$ac_ext
6725 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6726 $as_echo "$ac_header_preproc" >&6; }
6728 # So? What about this header?
6729 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6730 yes:no: )
6731 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
6732 $as_echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6733 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
6734 $as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
6735 ac_header_preproc=yes
6737 no:yes:* )
6738 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
6739 $as_echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
6740 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
6741 $as_echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
6742 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
6743 $as_echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
6744 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
6745 $as_echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
6746 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
6747 $as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
6748 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
6749 $as_echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
6750 ( cat <<\_ASBOX
6751 ## -------------------------------------- ##
6752 ## Report this to http://bugs.python.org/ ##
6753 ## -------------------------------------- ##
6754 _ASBOX
6755 ) | sed "s/^/$as_me: WARNING: /" >&2
6757 esac
6758 { $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6759 $as_echo_n "checking for sys/mkdev.h... " >&6; }
6760 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6761 $as_echo_n "(cached) " >&6
6762 else
6763 ac_cv_header_sys_mkdev_h=$ac_header_preproc
6765 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6766 $as_echo "$ac_cv_header_sys_mkdev_h" >&6; }
6769 if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then
6771 cat >>confdefs.h <<\_ACEOF
6772 #define MAJOR_IN_MKDEV 1
6773 _ACEOF
6779 if test $ac_cv_header_sys_mkdev_h = no; then
6780 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6781 { $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6782 $as_echo_n "checking for sys/sysmacros.h... " >&6; }
6783 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6784 $as_echo_n "(cached) " >&6
6786 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6787 $as_echo "$ac_cv_header_sys_sysmacros_h" >&6; }
6788 else
6789 # Is the header compilable?
6790 { $as_echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
6791 $as_echo_n "checking sys/sysmacros.h usability... " >&6; }
6792 cat >conftest.$ac_ext <<_ACEOF
6793 /* confdefs.h. */
6794 _ACEOF
6795 cat confdefs.h >>conftest.$ac_ext
6796 cat >>conftest.$ac_ext <<_ACEOF
6797 /* end confdefs.h. */
6798 $ac_includes_default
6799 #include <sys/sysmacros.h>
6800 _ACEOF
6801 rm -f conftest.$ac_objext
6802 if { (ac_try="$ac_compile"
6803 case "(($ac_try" in
6804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6805 *) ac_try_echo=$ac_try;;
6806 esac
6807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6808 $as_echo "$ac_try_echo") >&5
6809 (eval "$ac_compile") 2>conftest.er1
6810 ac_status=$?
6811 grep -v '^ *+' conftest.er1 >conftest.err
6812 rm -f conftest.er1
6813 cat conftest.err >&5
6814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6815 (exit $ac_status); } && {
6816 test -z "$ac_c_werror_flag" ||
6817 test ! -s conftest.err
6818 } && test -s conftest.$ac_objext; then
6819 ac_header_compiler=yes
6820 else
6821 $as_echo "$as_me: failed program was:" >&5
6822 sed 's/^/| /' conftest.$ac_ext >&5
6824 ac_header_compiler=no
6827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6828 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6829 $as_echo "$ac_header_compiler" >&6; }
6831 # Is the header present?
6832 { $as_echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
6833 $as_echo_n "checking sys/sysmacros.h presence... " >&6; }
6834 cat >conftest.$ac_ext <<_ACEOF
6835 /* confdefs.h. */
6836 _ACEOF
6837 cat confdefs.h >>conftest.$ac_ext
6838 cat >>conftest.$ac_ext <<_ACEOF
6839 /* end confdefs.h. */
6840 #include <sys/sysmacros.h>
6841 _ACEOF
6842 if { (ac_try="$ac_cpp conftest.$ac_ext"
6843 case "(($ac_try" in
6844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6845 *) ac_try_echo=$ac_try;;
6846 esac
6847 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6848 $as_echo "$ac_try_echo") >&5
6849 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6850 ac_status=$?
6851 grep -v '^ *+' conftest.er1 >conftest.err
6852 rm -f conftest.er1
6853 cat conftest.err >&5
6854 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6855 (exit $ac_status); } >/dev/null && {
6856 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6857 test ! -s conftest.err
6858 }; then
6859 ac_header_preproc=yes
6860 else
6861 $as_echo "$as_me: failed program was:" >&5
6862 sed 's/^/| /' conftest.$ac_ext >&5
6864 ac_header_preproc=no
6867 rm -f conftest.err conftest.$ac_ext
6868 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6869 $as_echo "$ac_header_preproc" >&6; }
6871 # So? What about this header?
6872 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6873 yes:no: )
6874 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
6875 $as_echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6876 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
6877 $as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
6878 ac_header_preproc=yes
6880 no:yes:* )
6881 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
6882 $as_echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
6883 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
6884 $as_echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
6885 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
6886 $as_echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
6887 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
6888 $as_echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
6889 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
6890 $as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
6891 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
6892 $as_echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
6893 ( cat <<\_ASBOX
6894 ## -------------------------------------- ##
6895 ## Report this to http://bugs.python.org/ ##
6896 ## -------------------------------------- ##
6897 _ASBOX
6898 ) | sed "s/^/$as_me: WARNING: /" >&2
6900 esac
6901 { $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6902 $as_echo_n "checking for sys/sysmacros.h... " >&6; }
6903 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6904 $as_echo_n "(cached) " >&6
6905 else
6906 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
6908 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6909 $as_echo "$ac_cv_header_sys_sysmacros_h" >&6; }
6912 if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then
6914 cat >>confdefs.h <<\_ACEOF
6915 #define MAJOR_IN_SYSMACROS 1
6916 _ACEOF
6925 # On Solaris, term.h requires curses.h
6927 for ac_header in term.h
6929 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6930 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6931 $as_echo_n "checking for $ac_header... " >&6; }
6932 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6933 $as_echo_n "(cached) " >&6
6934 else
6935 cat >conftest.$ac_ext <<_ACEOF
6936 /* confdefs.h. */
6937 _ACEOF
6938 cat confdefs.h >>conftest.$ac_ext
6939 cat >>conftest.$ac_ext <<_ACEOF
6940 /* end confdefs.h. */
6942 #ifdef HAVE_CURSES_H
6943 #include <curses.h>
6944 #endif
6947 #include <$ac_header>
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6956 $as_echo "$ac_try_echo") >&5
6957 (eval "$ac_compile") 2>conftest.er1
6958 ac_status=$?
6959 grep -v '^ *+' conftest.er1 >conftest.err
6960 rm -f conftest.er1
6961 cat conftest.err >&5
6962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6963 (exit $ac_status); } && {
6964 test -z "$ac_c_werror_flag" ||
6965 test ! -s conftest.err
6966 } && test -s conftest.$ac_objext; then
6967 eval "$as_ac_Header=yes"
6968 else
6969 $as_echo "$as_me: failed program was:" >&5
6970 sed 's/^/| /' conftest.$ac_ext >&5
6972 eval "$as_ac_Header=no"
6975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6977 ac_res=`eval 'as_val=${'$as_ac_Header'}
6978 $as_echo "$as_val"'`
6979 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6980 $as_echo "$ac_res" >&6; }
6981 as_val=`eval 'as_val=${'$as_ac_Header'}
6982 $as_echo "$as_val"'`
6983 if test "x$as_val" = x""yes; then
6984 cat >>confdefs.h <<_ACEOF
6985 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6986 _ACEOF
6990 done
6993 # On Linux, netlink.h requires asm/types.h
6995 for ac_header in linux/netlink.h
6997 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6998 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6999 $as_echo_n "checking for $ac_header... " >&6; }
7000 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7001 $as_echo_n "(cached) " >&6
7002 else
7003 cat >conftest.$ac_ext <<_ACEOF
7004 /* confdefs.h. */
7005 _ACEOF
7006 cat confdefs.h >>conftest.$ac_ext
7007 cat >>conftest.$ac_ext <<_ACEOF
7008 /* end confdefs.h. */
7010 #ifdef HAVE_ASM_TYPES_H
7011 #include <asm/types.h>
7012 #endif
7013 #ifdef HAVE_SYS_SOCKET_H
7014 #include <sys/socket.h>
7015 #endif
7018 #include <$ac_header>
7019 _ACEOF
7020 rm -f conftest.$ac_objext
7021 if { (ac_try="$ac_compile"
7022 case "(($ac_try" in
7023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7024 *) ac_try_echo=$ac_try;;
7025 esac
7026 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7027 $as_echo "$ac_try_echo") >&5
7028 (eval "$ac_compile") 2>conftest.er1
7029 ac_status=$?
7030 grep -v '^ *+' conftest.er1 >conftest.err
7031 rm -f conftest.er1
7032 cat conftest.err >&5
7033 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7034 (exit $ac_status); } && {
7035 test -z "$ac_c_werror_flag" ||
7036 test ! -s conftest.err
7037 } && test -s conftest.$ac_objext; then
7038 eval "$as_ac_Header=yes"
7039 else
7040 $as_echo "$as_me: failed program was:" >&5
7041 sed 's/^/| /' conftest.$ac_ext >&5
7043 eval "$as_ac_Header=no"
7046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7048 ac_res=`eval 'as_val=${'$as_ac_Header'}
7049 $as_echo "$as_val"'`
7050 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7051 $as_echo "$ac_res" >&6; }
7052 as_val=`eval 'as_val=${'$as_ac_Header'}
7053 $as_echo "$as_val"'`
7054 if test "x$as_val" = x""yes; then
7055 cat >>confdefs.h <<_ACEOF
7056 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7057 _ACEOF
7061 done
7064 # checks for typedefs
7065 was_it_defined=no
7066 { $as_echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
7067 $as_echo_n "checking for clock_t in time.h... " >&6; }
7068 cat >conftest.$ac_ext <<_ACEOF
7069 /* confdefs.h. */
7070 _ACEOF
7071 cat confdefs.h >>conftest.$ac_ext
7072 cat >>conftest.$ac_ext <<_ACEOF
7073 /* end confdefs.h. */
7074 #include <time.h>
7076 _ACEOF
7077 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7078 $EGREP "clock_t" >/dev/null 2>&1; then
7079 was_it_defined=yes
7080 else
7083 cat >>confdefs.h <<\_ACEOF
7084 #define clock_t long
7085 _ACEOF
7089 rm -f conftest*
7091 { $as_echo "$as_me:$LINENO: result: $was_it_defined" >&5
7092 $as_echo "$was_it_defined" >&6; }
7094 # Check whether using makedev requires defining _OSF_SOURCE
7095 { $as_echo "$as_me:$LINENO: checking for makedev" >&5
7096 $as_echo_n "checking for makedev... " >&6; }
7097 cat >conftest.$ac_ext <<_ACEOF
7098 /* confdefs.h. */
7099 _ACEOF
7100 cat confdefs.h >>conftest.$ac_ext
7101 cat >>conftest.$ac_ext <<_ACEOF
7102 /* end confdefs.h. */
7103 #include <sys/types.h>
7105 main ()
7107 makedev(0, 0)
7109 return 0;
7111 _ACEOF
7112 rm -f conftest.$ac_objext conftest$ac_exeext
7113 if { (ac_try="$ac_link"
7114 case "(($ac_try" in
7115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7116 *) ac_try_echo=$ac_try;;
7117 esac
7118 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7119 $as_echo "$ac_try_echo") >&5
7120 (eval "$ac_link") 2>conftest.er1
7121 ac_status=$?
7122 grep -v '^ *+' conftest.er1 >conftest.err
7123 rm -f conftest.er1
7124 cat conftest.err >&5
7125 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126 (exit $ac_status); } && {
7127 test -z "$ac_c_werror_flag" ||
7128 test ! -s conftest.err
7129 } && test -s conftest$ac_exeext && {
7130 test "$cross_compiling" = yes ||
7131 $as_test_x conftest$ac_exeext
7132 }; then
7133 ac_cv_has_makedev=yes
7134 else
7135 $as_echo "$as_me: failed program was:" >&5
7136 sed 's/^/| /' conftest.$ac_ext >&5
7138 ac_cv_has_makedev=no
7141 rm -rf conftest.dSYM
7142 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7143 conftest$ac_exeext conftest.$ac_ext
7144 if test "$ac_cv_has_makedev" = "no"; then
7145 # we didn't link, try if _OSF_SOURCE will allow us to link
7146 cat >conftest.$ac_ext <<_ACEOF
7147 /* confdefs.h. */
7148 _ACEOF
7149 cat confdefs.h >>conftest.$ac_ext
7150 cat >>conftest.$ac_ext <<_ACEOF
7151 /* end confdefs.h. */
7153 #define _OSF_SOURCE 1
7154 #include <sys/types.h>
7157 main ()
7159 makedev(0, 0)
7161 return 0;
7163 _ACEOF
7164 rm -f conftest.$ac_objext conftest$ac_exeext
7165 if { (ac_try="$ac_link"
7166 case "(($ac_try" in
7167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7168 *) ac_try_echo=$ac_try;;
7169 esac
7170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7171 $as_echo "$ac_try_echo") >&5
7172 (eval "$ac_link") 2>conftest.er1
7173 ac_status=$?
7174 grep -v '^ *+' conftest.er1 >conftest.err
7175 rm -f conftest.er1
7176 cat conftest.err >&5
7177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7178 (exit $ac_status); } && {
7179 test -z "$ac_c_werror_flag" ||
7180 test ! -s conftest.err
7181 } && test -s conftest$ac_exeext && {
7182 test "$cross_compiling" = yes ||
7183 $as_test_x conftest$ac_exeext
7184 }; then
7185 ac_cv_has_makedev=yes
7186 else
7187 $as_echo "$as_me: failed program was:" >&5
7188 sed 's/^/| /' conftest.$ac_ext >&5
7190 ac_cv_has_makedev=no
7193 rm -rf conftest.dSYM
7194 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7195 conftest$ac_exeext conftest.$ac_ext
7196 if test "$ac_cv_has_makedev" = "yes"; then
7198 cat >>confdefs.h <<\_ACEOF
7199 #define _OSF_SOURCE 1
7200 _ACEOF
7204 { $as_echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
7205 $as_echo "$ac_cv_has_makedev" >&6; }
7206 if test "$ac_cv_has_makedev" = "yes"; then
7208 cat >>confdefs.h <<\_ACEOF
7209 #define HAVE_MAKEDEV 1
7210 _ACEOF
7214 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
7215 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
7216 # defined, but the compiler does not support pragma redefine_extname,
7217 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
7218 # structures (such as rlimit64) without declaring them. As a
7219 # work-around, disable LFS on such configurations
7221 use_lfs=yes
7222 { $as_echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
7223 $as_echo_n "checking Solaris LFS bug... " >&6; }
7224 cat >conftest.$ac_ext <<_ACEOF
7225 /* confdefs.h. */
7226 _ACEOF
7227 cat confdefs.h >>conftest.$ac_ext
7228 cat >>conftest.$ac_ext <<_ACEOF
7229 /* end confdefs.h. */
7231 #define _LARGEFILE_SOURCE 1
7232 #define _FILE_OFFSET_BITS 64
7233 #include <sys/resource.h>
7236 main ()
7238 struct rlimit foo;
7240 return 0;
7242 _ACEOF
7243 rm -f conftest.$ac_objext
7244 if { (ac_try="$ac_compile"
7245 case "(($ac_try" in
7246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7247 *) ac_try_echo=$ac_try;;
7248 esac
7249 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7250 $as_echo "$ac_try_echo") >&5
7251 (eval "$ac_compile") 2>conftest.er1
7252 ac_status=$?
7253 grep -v '^ *+' conftest.er1 >conftest.err
7254 rm -f conftest.er1
7255 cat conftest.err >&5
7256 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7257 (exit $ac_status); } && {
7258 test -z "$ac_c_werror_flag" ||
7259 test ! -s conftest.err
7260 } && test -s conftest.$ac_objext; then
7261 sol_lfs_bug=no
7262 else
7263 $as_echo "$as_me: failed program was:" >&5
7264 sed 's/^/| /' conftest.$ac_ext >&5
7266 sol_lfs_bug=yes
7269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7270 { $as_echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
7271 $as_echo "$sol_lfs_bug" >&6; }
7272 if test "$sol_lfs_bug" = "yes"; then
7273 use_lfs=no
7276 if test "$use_lfs" = "yes"; then
7277 # Two defines needed to enable largefile support on various platforms
7278 # These may affect some typedefs
7280 cat >>confdefs.h <<\_ACEOF
7281 #define _LARGEFILE_SOURCE 1
7282 _ACEOF
7285 cat >>confdefs.h <<\_ACEOF
7286 #define _FILE_OFFSET_BITS 64
7287 _ACEOF
7291 # Add some code to confdefs.h so that the test for off_t works on SCO
7292 cat >> confdefs.h <<\EOF
7293 #if defined(SCO_DS)
7294 #undef _OFF_T
7295 #endif
7298 # Type availability checks
7299 { $as_echo "$as_me:$LINENO: checking for mode_t" >&5
7300 $as_echo_n "checking for mode_t... " >&6; }
7301 if test "${ac_cv_type_mode_t+set}" = set; then
7302 $as_echo_n "(cached) " >&6
7303 else
7304 ac_cv_type_mode_t=no
7305 cat >conftest.$ac_ext <<_ACEOF
7306 /* confdefs.h. */
7307 _ACEOF
7308 cat confdefs.h >>conftest.$ac_ext
7309 cat >>conftest.$ac_ext <<_ACEOF
7310 /* end confdefs.h. */
7311 $ac_includes_default
7313 main ()
7315 if (sizeof (mode_t))
7316 return 0;
7318 return 0;
7320 _ACEOF
7321 rm -f conftest.$ac_objext
7322 if { (ac_try="$ac_compile"
7323 case "(($ac_try" in
7324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7325 *) ac_try_echo=$ac_try;;
7326 esac
7327 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7328 $as_echo "$ac_try_echo") >&5
7329 (eval "$ac_compile") 2>conftest.er1
7330 ac_status=$?
7331 grep -v '^ *+' conftest.er1 >conftest.err
7332 rm -f conftest.er1
7333 cat conftest.err >&5
7334 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7335 (exit $ac_status); } && {
7336 test -z "$ac_c_werror_flag" ||
7337 test ! -s conftest.err
7338 } && test -s conftest.$ac_objext; then
7339 cat >conftest.$ac_ext <<_ACEOF
7340 /* confdefs.h. */
7341 _ACEOF
7342 cat confdefs.h >>conftest.$ac_ext
7343 cat >>conftest.$ac_ext <<_ACEOF
7344 /* end confdefs.h. */
7345 $ac_includes_default
7347 main ()
7349 if (sizeof ((mode_t)))
7350 return 0;
7352 return 0;
7354 _ACEOF
7355 rm -f conftest.$ac_objext
7356 if { (ac_try="$ac_compile"
7357 case "(($ac_try" in
7358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7359 *) ac_try_echo=$ac_try;;
7360 esac
7361 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7362 $as_echo "$ac_try_echo") >&5
7363 (eval "$ac_compile") 2>conftest.er1
7364 ac_status=$?
7365 grep -v '^ *+' conftest.er1 >conftest.err
7366 rm -f conftest.er1
7367 cat conftest.err >&5
7368 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7369 (exit $ac_status); } && {
7370 test -z "$ac_c_werror_flag" ||
7371 test ! -s conftest.err
7372 } && test -s conftest.$ac_objext; then
7374 else
7375 $as_echo "$as_me: failed program was:" >&5
7376 sed 's/^/| /' conftest.$ac_ext >&5
7378 ac_cv_type_mode_t=yes
7381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7382 else
7383 $as_echo "$as_me: failed program was:" >&5
7384 sed 's/^/| /' conftest.$ac_ext >&5
7389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7391 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
7392 $as_echo "$ac_cv_type_mode_t" >&6; }
7393 if test "x$ac_cv_type_mode_t" = x""yes; then
7395 else
7397 cat >>confdefs.h <<_ACEOF
7398 #define mode_t int
7399 _ACEOF
7403 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
7404 $as_echo_n "checking for off_t... " >&6; }
7405 if test "${ac_cv_type_off_t+set}" = set; then
7406 $as_echo_n "(cached) " >&6
7407 else
7408 ac_cv_type_off_t=no
7409 cat >conftest.$ac_ext <<_ACEOF
7410 /* confdefs.h. */
7411 _ACEOF
7412 cat confdefs.h >>conftest.$ac_ext
7413 cat >>conftest.$ac_ext <<_ACEOF
7414 /* end confdefs.h. */
7415 $ac_includes_default
7417 main ()
7419 if (sizeof (off_t))
7420 return 0;
7422 return 0;
7424 _ACEOF
7425 rm -f conftest.$ac_objext
7426 if { (ac_try="$ac_compile"
7427 case "(($ac_try" in
7428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7429 *) ac_try_echo=$ac_try;;
7430 esac
7431 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7432 $as_echo "$ac_try_echo") >&5
7433 (eval "$ac_compile") 2>conftest.er1
7434 ac_status=$?
7435 grep -v '^ *+' conftest.er1 >conftest.err
7436 rm -f conftest.er1
7437 cat conftest.err >&5
7438 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7439 (exit $ac_status); } && {
7440 test -z "$ac_c_werror_flag" ||
7441 test ! -s conftest.err
7442 } && test -s conftest.$ac_objext; then
7443 cat >conftest.$ac_ext <<_ACEOF
7444 /* confdefs.h. */
7445 _ACEOF
7446 cat confdefs.h >>conftest.$ac_ext
7447 cat >>conftest.$ac_ext <<_ACEOF
7448 /* end confdefs.h. */
7449 $ac_includes_default
7451 main ()
7453 if (sizeof ((off_t)))
7454 return 0;
7456 return 0;
7458 _ACEOF
7459 rm -f conftest.$ac_objext
7460 if { (ac_try="$ac_compile"
7461 case "(($ac_try" in
7462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7463 *) ac_try_echo=$ac_try;;
7464 esac
7465 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7466 $as_echo "$ac_try_echo") >&5
7467 (eval "$ac_compile") 2>conftest.er1
7468 ac_status=$?
7469 grep -v '^ *+' conftest.er1 >conftest.err
7470 rm -f conftest.er1
7471 cat conftest.err >&5
7472 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7473 (exit $ac_status); } && {
7474 test -z "$ac_c_werror_flag" ||
7475 test ! -s conftest.err
7476 } && test -s conftest.$ac_objext; then
7478 else
7479 $as_echo "$as_me: failed program was:" >&5
7480 sed 's/^/| /' conftest.$ac_ext >&5
7482 ac_cv_type_off_t=yes
7485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7486 else
7487 $as_echo "$as_me: failed program was:" >&5
7488 sed 's/^/| /' conftest.$ac_ext >&5
7493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7495 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7496 $as_echo "$ac_cv_type_off_t" >&6; }
7497 if test "x$ac_cv_type_off_t" = x""yes; then
7499 else
7501 cat >>confdefs.h <<_ACEOF
7502 #define off_t long int
7503 _ACEOF
7507 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
7508 $as_echo_n "checking for pid_t... " >&6; }
7509 if test "${ac_cv_type_pid_t+set}" = set; then
7510 $as_echo_n "(cached) " >&6
7511 else
7512 ac_cv_type_pid_t=no
7513 cat >conftest.$ac_ext <<_ACEOF
7514 /* confdefs.h. */
7515 _ACEOF
7516 cat confdefs.h >>conftest.$ac_ext
7517 cat >>conftest.$ac_ext <<_ACEOF
7518 /* end confdefs.h. */
7519 $ac_includes_default
7521 main ()
7523 if (sizeof (pid_t))
7524 return 0;
7526 return 0;
7528 _ACEOF
7529 rm -f conftest.$ac_objext
7530 if { (ac_try="$ac_compile"
7531 case "(($ac_try" in
7532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7533 *) ac_try_echo=$ac_try;;
7534 esac
7535 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7536 $as_echo "$ac_try_echo") >&5
7537 (eval "$ac_compile") 2>conftest.er1
7538 ac_status=$?
7539 grep -v '^ *+' conftest.er1 >conftest.err
7540 rm -f conftest.er1
7541 cat conftest.err >&5
7542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7543 (exit $ac_status); } && {
7544 test -z "$ac_c_werror_flag" ||
7545 test ! -s conftest.err
7546 } && test -s conftest.$ac_objext; then
7547 cat >conftest.$ac_ext <<_ACEOF
7548 /* confdefs.h. */
7549 _ACEOF
7550 cat confdefs.h >>conftest.$ac_ext
7551 cat >>conftest.$ac_ext <<_ACEOF
7552 /* end confdefs.h. */
7553 $ac_includes_default
7555 main ()
7557 if (sizeof ((pid_t)))
7558 return 0;
7560 return 0;
7562 _ACEOF
7563 rm -f conftest.$ac_objext
7564 if { (ac_try="$ac_compile"
7565 case "(($ac_try" in
7566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7567 *) ac_try_echo=$ac_try;;
7568 esac
7569 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7570 $as_echo "$ac_try_echo") >&5
7571 (eval "$ac_compile") 2>conftest.er1
7572 ac_status=$?
7573 grep -v '^ *+' conftest.er1 >conftest.err
7574 rm -f conftest.er1
7575 cat conftest.err >&5
7576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7577 (exit $ac_status); } && {
7578 test -z "$ac_c_werror_flag" ||
7579 test ! -s conftest.err
7580 } && test -s conftest.$ac_objext; then
7582 else
7583 $as_echo "$as_me: failed program was:" >&5
7584 sed 's/^/| /' conftest.$ac_ext >&5
7586 ac_cv_type_pid_t=yes
7589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7590 else
7591 $as_echo "$as_me: failed program was:" >&5
7592 sed 's/^/| /' conftest.$ac_ext >&5
7597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7599 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7600 $as_echo "$ac_cv_type_pid_t" >&6; }
7601 if test "x$ac_cv_type_pid_t" = x""yes; then
7603 else
7605 cat >>confdefs.h <<_ACEOF
7606 #define pid_t int
7607 _ACEOF
7611 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7612 $as_echo_n "checking return type of signal handlers... " >&6; }
7613 if test "${ac_cv_type_signal+set}" = set; then
7614 $as_echo_n "(cached) " >&6
7615 else
7616 cat >conftest.$ac_ext <<_ACEOF
7617 /* confdefs.h. */
7618 _ACEOF
7619 cat confdefs.h >>conftest.$ac_ext
7620 cat >>conftest.$ac_ext <<_ACEOF
7621 /* end confdefs.h. */
7622 #include <sys/types.h>
7623 #include <signal.h>
7626 main ()
7628 return *(signal (0, 0)) (0) == 1;
7630 return 0;
7632 _ACEOF
7633 rm -f conftest.$ac_objext
7634 if { (ac_try="$ac_compile"
7635 case "(($ac_try" in
7636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7637 *) ac_try_echo=$ac_try;;
7638 esac
7639 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7640 $as_echo "$ac_try_echo") >&5
7641 (eval "$ac_compile") 2>conftest.er1
7642 ac_status=$?
7643 grep -v '^ *+' conftest.er1 >conftest.err
7644 rm -f conftest.er1
7645 cat conftest.err >&5
7646 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7647 (exit $ac_status); } && {
7648 test -z "$ac_c_werror_flag" ||
7649 test ! -s conftest.err
7650 } && test -s conftest.$ac_objext; then
7651 ac_cv_type_signal=int
7652 else
7653 $as_echo "$as_me: failed program was:" >&5
7654 sed 's/^/| /' conftest.$ac_ext >&5
7656 ac_cv_type_signal=void
7659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7661 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7662 $as_echo "$ac_cv_type_signal" >&6; }
7664 cat >>confdefs.h <<_ACEOF
7665 #define RETSIGTYPE $ac_cv_type_signal
7666 _ACEOF
7669 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
7670 $as_echo_n "checking for size_t... " >&6; }
7671 if test "${ac_cv_type_size_t+set}" = set; then
7672 $as_echo_n "(cached) " >&6
7673 else
7674 ac_cv_type_size_t=no
7675 cat >conftest.$ac_ext <<_ACEOF
7676 /* confdefs.h. */
7677 _ACEOF
7678 cat confdefs.h >>conftest.$ac_ext
7679 cat >>conftest.$ac_ext <<_ACEOF
7680 /* end confdefs.h. */
7681 $ac_includes_default
7683 main ()
7685 if (sizeof (size_t))
7686 return 0;
7688 return 0;
7690 _ACEOF
7691 rm -f conftest.$ac_objext
7692 if { (ac_try="$ac_compile"
7693 case "(($ac_try" in
7694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7695 *) ac_try_echo=$ac_try;;
7696 esac
7697 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7698 $as_echo "$ac_try_echo") >&5
7699 (eval "$ac_compile") 2>conftest.er1
7700 ac_status=$?
7701 grep -v '^ *+' conftest.er1 >conftest.err
7702 rm -f conftest.er1
7703 cat conftest.err >&5
7704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7705 (exit $ac_status); } && {
7706 test -z "$ac_c_werror_flag" ||
7707 test ! -s conftest.err
7708 } && test -s conftest.$ac_objext; then
7709 cat >conftest.$ac_ext <<_ACEOF
7710 /* confdefs.h. */
7711 _ACEOF
7712 cat confdefs.h >>conftest.$ac_ext
7713 cat >>conftest.$ac_ext <<_ACEOF
7714 /* end confdefs.h. */
7715 $ac_includes_default
7717 main ()
7719 if (sizeof ((size_t)))
7720 return 0;
7722 return 0;
7724 _ACEOF
7725 rm -f conftest.$ac_objext
7726 if { (ac_try="$ac_compile"
7727 case "(($ac_try" in
7728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7729 *) ac_try_echo=$ac_try;;
7730 esac
7731 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7732 $as_echo "$ac_try_echo") >&5
7733 (eval "$ac_compile") 2>conftest.er1
7734 ac_status=$?
7735 grep -v '^ *+' conftest.er1 >conftest.err
7736 rm -f conftest.er1
7737 cat conftest.err >&5
7738 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7739 (exit $ac_status); } && {
7740 test -z "$ac_c_werror_flag" ||
7741 test ! -s conftest.err
7742 } && test -s conftest.$ac_objext; then
7744 else
7745 $as_echo "$as_me: failed program was:" >&5
7746 sed 's/^/| /' conftest.$ac_ext >&5
7748 ac_cv_type_size_t=yes
7751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7752 else
7753 $as_echo "$as_me: failed program was:" >&5
7754 sed 's/^/| /' conftest.$ac_ext >&5
7759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7761 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7762 $as_echo "$ac_cv_type_size_t" >&6; }
7763 if test "x$ac_cv_type_size_t" = x""yes; then
7765 else
7767 cat >>confdefs.h <<_ACEOF
7768 #define size_t unsigned int
7769 _ACEOF
7773 { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7774 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7775 if test "${ac_cv_type_uid_t+set}" = set; then
7776 $as_echo_n "(cached) " >&6
7777 else
7778 cat >conftest.$ac_ext <<_ACEOF
7779 /* confdefs.h. */
7780 _ACEOF
7781 cat confdefs.h >>conftest.$ac_ext
7782 cat >>conftest.$ac_ext <<_ACEOF
7783 /* end confdefs.h. */
7784 #include <sys/types.h>
7786 _ACEOF
7787 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7788 $EGREP "uid_t" >/dev/null 2>&1; then
7789 ac_cv_type_uid_t=yes
7790 else
7791 ac_cv_type_uid_t=no
7793 rm -f conftest*
7796 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7797 $as_echo "$ac_cv_type_uid_t" >&6; }
7798 if test $ac_cv_type_uid_t = no; then
7800 cat >>confdefs.h <<\_ACEOF
7801 #define uid_t int
7802 _ACEOF
7805 cat >>confdefs.h <<\_ACEOF
7806 #define gid_t int
7807 _ACEOF
7812 { $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
7813 $as_echo_n "checking for uint32_t... " >&6; }
7814 if test "${ac_cv_c_uint32_t+set}" = set; then
7815 $as_echo_n "(cached) " >&6
7816 else
7817 ac_cv_c_uint32_t=no
7818 for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
7819 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7820 cat >conftest.$ac_ext <<_ACEOF
7821 /* confdefs.h. */
7822 _ACEOF
7823 cat confdefs.h >>conftest.$ac_ext
7824 cat >>conftest.$ac_ext <<_ACEOF
7825 /* end confdefs.h. */
7826 $ac_includes_default
7828 main ()
7830 static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
7831 test_array [0] = 0
7834 return 0;
7836 _ACEOF
7837 rm -f conftest.$ac_objext
7838 if { (ac_try="$ac_compile"
7839 case "(($ac_try" in
7840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7841 *) ac_try_echo=$ac_try;;
7842 esac
7843 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7844 $as_echo "$ac_try_echo") >&5
7845 (eval "$ac_compile") 2>conftest.er1
7846 ac_status=$?
7847 grep -v '^ *+' conftest.er1 >conftest.err
7848 rm -f conftest.er1
7849 cat conftest.err >&5
7850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7851 (exit $ac_status); } && {
7852 test -z "$ac_c_werror_flag" ||
7853 test ! -s conftest.err
7854 } && test -s conftest.$ac_objext; then
7855 case $ac_type in
7856 uint32_t) ac_cv_c_uint32_t=yes ;;
7857 *) ac_cv_c_uint32_t=$ac_type ;;
7858 esac
7860 else
7861 $as_echo "$as_me: failed program was:" >&5
7862 sed 's/^/| /' conftest.$ac_ext >&5
7867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7868 test "$ac_cv_c_uint32_t" != no && break
7869 done
7871 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
7872 $as_echo "$ac_cv_c_uint32_t" >&6; }
7873 case $ac_cv_c_uint32_t in #(
7874 no|yes) ;; #(
7877 cat >>confdefs.h <<\_ACEOF
7878 #define _UINT32_T 1
7879 _ACEOF
7882 cat >>confdefs.h <<_ACEOF
7883 #define uint32_t $ac_cv_c_uint32_t
7884 _ACEOF
7886 esac
7889 { $as_echo "$as_me:$LINENO: checking for uint64_t" >&5
7890 $as_echo_n "checking for uint64_t... " >&6; }
7891 if test "${ac_cv_c_uint64_t+set}" = set; then
7892 $as_echo_n "(cached) " >&6
7893 else
7894 ac_cv_c_uint64_t=no
7895 for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \
7896 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7897 cat >conftest.$ac_ext <<_ACEOF
7898 /* confdefs.h. */
7899 _ACEOF
7900 cat confdefs.h >>conftest.$ac_ext
7901 cat >>conftest.$ac_ext <<_ACEOF
7902 /* end confdefs.h. */
7903 $ac_includes_default
7905 main ()
7907 static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
7908 test_array [0] = 0
7911 return 0;
7913 _ACEOF
7914 rm -f conftest.$ac_objext
7915 if { (ac_try="$ac_compile"
7916 case "(($ac_try" in
7917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7918 *) ac_try_echo=$ac_try;;
7919 esac
7920 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7921 $as_echo "$ac_try_echo") >&5
7922 (eval "$ac_compile") 2>conftest.er1
7923 ac_status=$?
7924 grep -v '^ *+' conftest.er1 >conftest.err
7925 rm -f conftest.er1
7926 cat conftest.err >&5
7927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7928 (exit $ac_status); } && {
7929 test -z "$ac_c_werror_flag" ||
7930 test ! -s conftest.err
7931 } && test -s conftest.$ac_objext; then
7932 case $ac_type in
7933 uint64_t) ac_cv_c_uint64_t=yes ;;
7934 *) ac_cv_c_uint64_t=$ac_type ;;
7935 esac
7937 else
7938 $as_echo "$as_me: failed program was:" >&5
7939 sed 's/^/| /' conftest.$ac_ext >&5
7944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7945 test "$ac_cv_c_uint64_t" != no && break
7946 done
7948 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
7949 $as_echo "$ac_cv_c_uint64_t" >&6; }
7950 case $ac_cv_c_uint64_t in #(
7951 no|yes) ;; #(
7954 cat >>confdefs.h <<\_ACEOF
7955 #define _UINT64_T 1
7956 _ACEOF
7959 cat >>confdefs.h <<_ACEOF
7960 #define uint64_t $ac_cv_c_uint64_t
7961 _ACEOF
7963 esac
7966 { $as_echo "$as_me:$LINENO: checking for int32_t" >&5
7967 $as_echo_n "checking for int32_t... " >&6; }
7968 if test "${ac_cv_c_int32_t+set}" = set; then
7969 $as_echo_n "(cached) " >&6
7970 else
7971 ac_cv_c_int32_t=no
7972 for ac_type in 'int32_t' 'int' 'long int' \
7973 'long long int' 'short int' 'signed char'; do
7974 cat >conftest.$ac_ext <<_ACEOF
7975 /* confdefs.h. */
7976 _ACEOF
7977 cat confdefs.h >>conftest.$ac_ext
7978 cat >>conftest.$ac_ext <<_ACEOF
7979 /* end confdefs.h. */
7980 $ac_includes_default
7982 main ()
7984 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
7985 test_array [0] = 0
7988 return 0;
7990 _ACEOF
7991 rm -f conftest.$ac_objext
7992 if { (ac_try="$ac_compile"
7993 case "(($ac_try" in
7994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7995 *) ac_try_echo=$ac_try;;
7996 esac
7997 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7998 $as_echo "$ac_try_echo") >&5
7999 (eval "$ac_compile") 2>conftest.er1
8000 ac_status=$?
8001 grep -v '^ *+' conftest.er1 >conftest.err
8002 rm -f conftest.er1
8003 cat conftest.err >&5
8004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8005 (exit $ac_status); } && {
8006 test -z "$ac_c_werror_flag" ||
8007 test ! -s conftest.err
8008 } && test -s conftest.$ac_objext; then
8009 cat >conftest.$ac_ext <<_ACEOF
8010 /* confdefs.h. */
8011 _ACEOF
8012 cat confdefs.h >>conftest.$ac_ext
8013 cat >>conftest.$ac_ext <<_ACEOF
8014 /* end confdefs.h. */
8015 $ac_includes_default
8017 main ()
8019 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
8020 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
8021 test_array [0] = 0
8024 return 0;
8026 _ACEOF
8027 rm -f conftest.$ac_objext
8028 if { (ac_try="$ac_compile"
8029 case "(($ac_try" in
8030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8031 *) ac_try_echo=$ac_try;;
8032 esac
8033 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8034 $as_echo "$ac_try_echo") >&5
8035 (eval "$ac_compile") 2>conftest.er1
8036 ac_status=$?
8037 grep -v '^ *+' conftest.er1 >conftest.err
8038 rm -f conftest.er1
8039 cat conftest.err >&5
8040 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8041 (exit $ac_status); } && {
8042 test -z "$ac_c_werror_flag" ||
8043 test ! -s conftest.err
8044 } && test -s conftest.$ac_objext; then
8046 else
8047 $as_echo "$as_me: failed program was:" >&5
8048 sed 's/^/| /' conftest.$ac_ext >&5
8050 case $ac_type in
8051 int32_t) ac_cv_c_int32_t=yes ;;
8052 *) ac_cv_c_int32_t=$ac_type ;;
8053 esac
8057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8058 else
8059 $as_echo "$as_me: failed program was:" >&5
8060 sed 's/^/| /' conftest.$ac_ext >&5
8065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8066 test "$ac_cv_c_int32_t" != no && break
8067 done
8069 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
8070 $as_echo "$ac_cv_c_int32_t" >&6; }
8071 case $ac_cv_c_int32_t in #(
8072 no|yes) ;; #(
8075 cat >>confdefs.h <<_ACEOF
8076 #define int32_t $ac_cv_c_int32_t
8077 _ACEOF
8079 esac
8082 { $as_echo "$as_me:$LINENO: checking for int64_t" >&5
8083 $as_echo_n "checking for int64_t... " >&6; }
8084 if test "${ac_cv_c_int64_t+set}" = set; then
8085 $as_echo_n "(cached) " >&6
8086 else
8087 ac_cv_c_int64_t=no
8088 for ac_type in 'int64_t' 'int' 'long int' \
8089 'long long int' 'short int' 'signed char'; do
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
8098 main ()
8100 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
8101 test_array [0] = 0
8104 return 0;
8106 _ACEOF
8107 rm -f conftest.$ac_objext
8108 if { (ac_try="$ac_compile"
8109 case "(($ac_try" in
8110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8111 *) ac_try_echo=$ac_try;;
8112 esac
8113 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8114 $as_echo "$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 $as_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 cat >conftest.$ac_ext <<_ACEOF
8126 /* confdefs.h. */
8127 _ACEOF
8128 cat confdefs.h >>conftest.$ac_ext
8129 cat >>conftest.$ac_ext <<_ACEOF
8130 /* end confdefs.h. */
8131 $ac_includes_default
8133 main ()
8135 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
8136 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
8137 test_array [0] = 0
8140 return 0;
8142 _ACEOF
8143 rm -f conftest.$ac_objext
8144 if { (ac_try="$ac_compile"
8145 case "(($ac_try" in
8146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8147 *) ac_try_echo=$ac_try;;
8148 esac
8149 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8150 $as_echo "$ac_try_echo") >&5
8151 (eval "$ac_compile") 2>conftest.er1
8152 ac_status=$?
8153 grep -v '^ *+' conftest.er1 >conftest.err
8154 rm -f conftest.er1
8155 cat conftest.err >&5
8156 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8157 (exit $ac_status); } && {
8158 test -z "$ac_c_werror_flag" ||
8159 test ! -s conftest.err
8160 } && test -s conftest.$ac_objext; then
8162 else
8163 $as_echo "$as_me: failed program was:" >&5
8164 sed 's/^/| /' conftest.$ac_ext >&5
8166 case $ac_type in
8167 int64_t) ac_cv_c_int64_t=yes ;;
8168 *) ac_cv_c_int64_t=$ac_type ;;
8169 esac
8173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8174 else
8175 $as_echo "$as_me: failed program was:" >&5
8176 sed 's/^/| /' conftest.$ac_ext >&5
8181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8182 test "$ac_cv_c_int64_t" != no && break
8183 done
8185 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
8186 $as_echo "$ac_cv_c_int64_t" >&6; }
8187 case $ac_cv_c_int64_t in #(
8188 no|yes) ;; #(
8191 cat >>confdefs.h <<_ACEOF
8192 #define int64_t $ac_cv_c_int64_t
8193 _ACEOF
8195 esac
8197 { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
8198 $as_echo_n "checking for ssize_t... " >&6; }
8199 if test "${ac_cv_type_ssize_t+set}" = set; then
8200 $as_echo_n "(cached) " >&6
8201 else
8202 ac_cv_type_ssize_t=no
8203 cat >conftest.$ac_ext <<_ACEOF
8204 /* confdefs.h. */
8205 _ACEOF
8206 cat confdefs.h >>conftest.$ac_ext
8207 cat >>conftest.$ac_ext <<_ACEOF
8208 /* end confdefs.h. */
8209 $ac_includes_default
8211 main ()
8213 if (sizeof (ssize_t))
8214 return 0;
8216 return 0;
8218 _ACEOF
8219 rm -f conftest.$ac_objext
8220 if { (ac_try="$ac_compile"
8221 case "(($ac_try" in
8222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8223 *) ac_try_echo=$ac_try;;
8224 esac
8225 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8226 $as_echo "$ac_try_echo") >&5
8227 (eval "$ac_compile") 2>conftest.er1
8228 ac_status=$?
8229 grep -v '^ *+' conftest.er1 >conftest.err
8230 rm -f conftest.er1
8231 cat conftest.err >&5
8232 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233 (exit $ac_status); } && {
8234 test -z "$ac_c_werror_flag" ||
8235 test ! -s conftest.err
8236 } && test -s conftest.$ac_objext; then
8237 cat >conftest.$ac_ext <<_ACEOF
8238 /* confdefs.h. */
8239 _ACEOF
8240 cat confdefs.h >>conftest.$ac_ext
8241 cat >>conftest.$ac_ext <<_ACEOF
8242 /* end confdefs.h. */
8243 $ac_includes_default
8245 main ()
8247 if (sizeof ((ssize_t)))
8248 return 0;
8250 return 0;
8252 _ACEOF
8253 rm -f conftest.$ac_objext
8254 if { (ac_try="$ac_compile"
8255 case "(($ac_try" in
8256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8257 *) ac_try_echo=$ac_try;;
8258 esac
8259 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8260 $as_echo "$ac_try_echo") >&5
8261 (eval "$ac_compile") 2>conftest.er1
8262 ac_status=$?
8263 grep -v '^ *+' conftest.er1 >conftest.err
8264 rm -f conftest.er1
8265 cat conftest.err >&5
8266 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8267 (exit $ac_status); } && {
8268 test -z "$ac_c_werror_flag" ||
8269 test ! -s conftest.err
8270 } && test -s conftest.$ac_objext; then
8272 else
8273 $as_echo "$as_me: failed program was:" >&5
8274 sed 's/^/| /' conftest.$ac_ext >&5
8276 ac_cv_type_ssize_t=yes
8279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8280 else
8281 $as_echo "$as_me: failed program was:" >&5
8282 sed 's/^/| /' conftest.$ac_ext >&5
8287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8289 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
8290 $as_echo "$ac_cv_type_ssize_t" >&6; }
8291 if test "x$ac_cv_type_ssize_t" = x""yes; then
8293 cat >>confdefs.h <<\_ACEOF
8294 #define HAVE_SSIZE_T 1
8295 _ACEOF
8300 # Sizes of various common basic types
8301 # ANSI C requires sizeof(char) == 1, so no need to check it
8302 # The cast to long int works around a bug in the HP C Compiler
8303 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8304 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8305 # This bug is HP SR number 8606223364.
8306 { $as_echo "$as_me:$LINENO: checking size of int" >&5
8307 $as_echo_n "checking size of int... " >&6; }
8308 if test "${ac_cv_sizeof_int+set}" = set; then
8309 $as_echo_n "(cached) " >&6
8310 else
8311 if test "$cross_compiling" = yes; then
8312 # Depending upon the size, compute the lo and hi bounds.
8313 cat >conftest.$ac_ext <<_ACEOF
8314 /* confdefs.h. */
8315 _ACEOF
8316 cat confdefs.h >>conftest.$ac_ext
8317 cat >>conftest.$ac_ext <<_ACEOF
8318 /* end confdefs.h. */
8319 $ac_includes_default
8321 main ()
8323 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
8324 test_array [0] = 0
8327 return 0;
8329 _ACEOF
8330 rm -f conftest.$ac_objext
8331 if { (ac_try="$ac_compile"
8332 case "(($ac_try" in
8333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8334 *) ac_try_echo=$ac_try;;
8335 esac
8336 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8337 $as_echo "$ac_try_echo") >&5
8338 (eval "$ac_compile") 2>conftest.er1
8339 ac_status=$?
8340 grep -v '^ *+' conftest.er1 >conftest.err
8341 rm -f conftest.er1
8342 cat conftest.err >&5
8343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8344 (exit $ac_status); } && {
8345 test -z "$ac_c_werror_flag" ||
8346 test ! -s conftest.err
8347 } && test -s conftest.$ac_objext; then
8348 ac_lo=0 ac_mid=0
8349 while :; do
8350 cat >conftest.$ac_ext <<_ACEOF
8351 /* confdefs.h. */
8352 _ACEOF
8353 cat confdefs.h >>conftest.$ac_ext
8354 cat >>conftest.$ac_ext <<_ACEOF
8355 /* end confdefs.h. */
8356 $ac_includes_default
8358 main ()
8360 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
8361 test_array [0] = 0
8364 return 0;
8366 _ACEOF
8367 rm -f conftest.$ac_objext
8368 if { (ac_try="$ac_compile"
8369 case "(($ac_try" in
8370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8371 *) ac_try_echo=$ac_try;;
8372 esac
8373 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8374 $as_echo "$ac_try_echo") >&5
8375 (eval "$ac_compile") 2>conftest.er1
8376 ac_status=$?
8377 grep -v '^ *+' conftest.er1 >conftest.err
8378 rm -f conftest.er1
8379 cat conftest.err >&5
8380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381 (exit $ac_status); } && {
8382 test -z "$ac_c_werror_flag" ||
8383 test ! -s conftest.err
8384 } && test -s conftest.$ac_objext; then
8385 ac_hi=$ac_mid; break
8386 else
8387 $as_echo "$as_me: failed program was:" >&5
8388 sed 's/^/| /' conftest.$ac_ext >&5
8390 ac_lo=`expr $ac_mid + 1`
8391 if test $ac_lo -le $ac_mid; then
8392 ac_lo= ac_hi=
8393 break
8395 ac_mid=`expr 2 '*' $ac_mid + 1`
8398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8399 done
8400 else
8401 $as_echo "$as_me: failed program was:" >&5
8402 sed 's/^/| /' conftest.$ac_ext >&5
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
8412 main ()
8414 static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
8415 test_array [0] = 0
8418 return 0;
8420 _ACEOF
8421 rm -f conftest.$ac_objext
8422 if { (ac_try="$ac_compile"
8423 case "(($ac_try" in
8424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8425 *) ac_try_echo=$ac_try;;
8426 esac
8427 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8428 $as_echo "$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 $as_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_hi=-1 ac_mid=-1
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
8449 main ()
8451 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
8452 test_array [0] = 0
8455 return 0;
8457 _ACEOF
8458 rm -f conftest.$ac_objext
8459 if { (ac_try="$ac_compile"
8460 case "(($ac_try" in
8461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8462 *) ac_try_echo=$ac_try;;
8463 esac
8464 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8465 $as_echo "$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 $as_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_lo=$ac_mid; break
8477 else
8478 $as_echo "$as_me: failed program was:" >&5
8479 sed 's/^/| /' conftest.$ac_ext >&5
8481 ac_hi=`expr '(' $ac_mid ')' - 1`
8482 if test $ac_mid -le $ac_hi; then
8483 ac_lo= ac_hi=
8484 break
8486 ac_mid=`expr 2 '*' $ac_mid`
8489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8490 done
8491 else
8492 $as_echo "$as_me: failed program was:" >&5
8493 sed 's/^/| /' conftest.$ac_ext >&5
8495 ac_lo= ac_hi=
8498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8502 # Binary search between lo and hi bounds.
8503 while test "x$ac_lo" != "x$ac_hi"; do
8504 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8505 cat >conftest.$ac_ext <<_ACEOF
8506 /* confdefs.h. */
8507 _ACEOF
8508 cat confdefs.h >>conftest.$ac_ext
8509 cat >>conftest.$ac_ext <<_ACEOF
8510 /* end confdefs.h. */
8511 $ac_includes_default
8513 main ()
8515 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
8516 test_array [0] = 0
8519 return 0;
8521 _ACEOF
8522 rm -f conftest.$ac_objext
8523 if { (ac_try="$ac_compile"
8524 case "(($ac_try" in
8525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8526 *) ac_try_echo=$ac_try;;
8527 esac
8528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8529 $as_echo "$ac_try_echo") >&5
8530 (eval "$ac_compile") 2>conftest.er1
8531 ac_status=$?
8532 grep -v '^ *+' conftest.er1 >conftest.err
8533 rm -f conftest.er1
8534 cat conftest.err >&5
8535 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536 (exit $ac_status); } && {
8537 test -z "$ac_c_werror_flag" ||
8538 test ! -s conftest.err
8539 } && test -s conftest.$ac_objext; then
8540 ac_hi=$ac_mid
8541 else
8542 $as_echo "$as_me: failed program was:" >&5
8543 sed 's/^/| /' conftest.$ac_ext >&5
8545 ac_lo=`expr '(' $ac_mid ')' + 1`
8548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8549 done
8550 case $ac_lo in
8551 ?*) ac_cv_sizeof_int=$ac_lo;;
8552 '') if test "$ac_cv_type_int" = yes; then
8553 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8554 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8555 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
8556 See \`config.log' for more details." >&5
8557 $as_echo "$as_me: error: cannot compute sizeof (int)
8558 See \`config.log' for more details." >&2;}
8559 { (exit 77); exit 77; }; }; }
8560 else
8561 ac_cv_sizeof_int=0
8562 fi ;;
8563 esac
8564 else
8565 cat >conftest.$ac_ext <<_ACEOF
8566 /* confdefs.h. */
8567 _ACEOF
8568 cat confdefs.h >>conftest.$ac_ext
8569 cat >>conftest.$ac_ext <<_ACEOF
8570 /* end confdefs.h. */
8571 $ac_includes_default
8572 static long int longval () { return (long int) (sizeof (int)); }
8573 static unsigned long int ulongval () { return (long int) (sizeof (int)); }
8574 #include <stdio.h>
8575 #include <stdlib.h>
8577 main ()
8580 FILE *f = fopen ("conftest.val", "w");
8581 if (! f)
8582 return 1;
8583 if (((long int) (sizeof (int))) < 0)
8585 long int i = longval ();
8586 if (i != ((long int) (sizeof (int))))
8587 return 1;
8588 fprintf (f, "%ld", i);
8590 else
8592 unsigned long int i = ulongval ();
8593 if (i != ((long int) (sizeof (int))))
8594 return 1;
8595 fprintf (f, "%lu", i);
8597 /* Do not output a trailing newline, as this causes \r\n confusion
8598 on some platforms. */
8599 return ferror (f) || fclose (f) != 0;
8602 return 0;
8604 _ACEOF
8605 rm -f conftest$ac_exeext
8606 if { (ac_try="$ac_link"
8607 case "(($ac_try" in
8608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8609 *) ac_try_echo=$ac_try;;
8610 esac
8611 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8612 $as_echo "$ac_try_echo") >&5
8613 (eval "$ac_link") 2>&5
8614 ac_status=$?
8615 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8616 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8617 { (case "(($ac_try" in
8618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8619 *) ac_try_echo=$ac_try;;
8620 esac
8621 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8622 $as_echo "$ac_try_echo") >&5
8623 (eval "$ac_try") 2>&5
8624 ac_status=$?
8625 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626 (exit $ac_status); }; }; then
8627 ac_cv_sizeof_int=`cat conftest.val`
8628 else
8629 $as_echo "$as_me: program exited with status $ac_status" >&5
8630 $as_echo "$as_me: failed program was:" >&5
8631 sed 's/^/| /' conftest.$ac_ext >&5
8633 ( exit $ac_status )
8634 if test "$ac_cv_type_int" = yes; then
8635 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8636 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8637 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
8638 See \`config.log' for more details." >&5
8639 $as_echo "$as_me: error: cannot compute sizeof (int)
8640 See \`config.log' for more details." >&2;}
8641 { (exit 77); exit 77; }; }; }
8642 else
8643 ac_cv_sizeof_int=0
8646 rm -rf conftest.dSYM
8647 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8649 rm -f conftest.val
8651 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
8652 $as_echo "$ac_cv_sizeof_int" >&6; }
8656 cat >>confdefs.h <<_ACEOF
8657 #define SIZEOF_INT $ac_cv_sizeof_int
8658 _ACEOF
8661 # The cast to long int works around a bug in the HP C Compiler
8662 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8663 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8664 # This bug is HP SR number 8606223364.
8665 { $as_echo "$as_me:$LINENO: checking size of long" >&5
8666 $as_echo_n "checking size of long... " >&6; }
8667 if test "${ac_cv_sizeof_long+set}" = set; then
8668 $as_echo_n "(cached) " >&6
8669 else
8670 if test "$cross_compiling" = yes; then
8671 # Depending upon the size, compute the lo and hi bounds.
8672 cat >conftest.$ac_ext <<_ACEOF
8673 /* confdefs.h. */
8674 _ACEOF
8675 cat confdefs.h >>conftest.$ac_ext
8676 cat >>conftest.$ac_ext <<_ACEOF
8677 /* end confdefs.h. */
8678 $ac_includes_default
8680 main ()
8682 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
8683 test_array [0] = 0
8686 return 0;
8688 _ACEOF
8689 rm -f conftest.$ac_objext
8690 if { (ac_try="$ac_compile"
8691 case "(($ac_try" in
8692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8693 *) ac_try_echo=$ac_try;;
8694 esac
8695 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8696 $as_echo "$ac_try_echo") >&5
8697 (eval "$ac_compile") 2>conftest.er1
8698 ac_status=$?
8699 grep -v '^ *+' conftest.er1 >conftest.err
8700 rm -f conftest.er1
8701 cat conftest.err >&5
8702 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703 (exit $ac_status); } && {
8704 test -z "$ac_c_werror_flag" ||
8705 test ! -s conftest.err
8706 } && test -s conftest.$ac_objext; then
8707 ac_lo=0 ac_mid=0
8708 while :; do
8709 cat >conftest.$ac_ext <<_ACEOF
8710 /* confdefs.h. */
8711 _ACEOF
8712 cat confdefs.h >>conftest.$ac_ext
8713 cat >>conftest.$ac_ext <<_ACEOF
8714 /* end confdefs.h. */
8715 $ac_includes_default
8717 main ()
8719 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
8720 test_array [0] = 0
8723 return 0;
8725 _ACEOF
8726 rm -f conftest.$ac_objext
8727 if { (ac_try="$ac_compile"
8728 case "(($ac_try" in
8729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8730 *) ac_try_echo=$ac_try;;
8731 esac
8732 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8733 $as_echo "$ac_try_echo") >&5
8734 (eval "$ac_compile") 2>conftest.er1
8735 ac_status=$?
8736 grep -v '^ *+' conftest.er1 >conftest.err
8737 rm -f conftest.er1
8738 cat conftest.err >&5
8739 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8740 (exit $ac_status); } && {
8741 test -z "$ac_c_werror_flag" ||
8742 test ! -s conftest.err
8743 } && test -s conftest.$ac_objext; then
8744 ac_hi=$ac_mid; break
8745 else
8746 $as_echo "$as_me: failed program was:" >&5
8747 sed 's/^/| /' conftest.$ac_ext >&5
8749 ac_lo=`expr $ac_mid + 1`
8750 if test $ac_lo -le $ac_mid; then
8751 ac_lo= ac_hi=
8752 break
8754 ac_mid=`expr 2 '*' $ac_mid + 1`
8757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8758 done
8759 else
8760 $as_echo "$as_me: failed program was:" >&5
8761 sed 's/^/| /' conftest.$ac_ext >&5
8763 cat >conftest.$ac_ext <<_ACEOF
8764 /* confdefs.h. */
8765 _ACEOF
8766 cat confdefs.h >>conftest.$ac_ext
8767 cat >>conftest.$ac_ext <<_ACEOF
8768 /* end confdefs.h. */
8769 $ac_includes_default
8771 main ()
8773 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
8774 test_array [0] = 0
8777 return 0;
8779 _ACEOF
8780 rm -f conftest.$ac_objext
8781 if { (ac_try="$ac_compile"
8782 case "(($ac_try" in
8783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8784 *) ac_try_echo=$ac_try;;
8785 esac
8786 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8787 $as_echo "$ac_try_echo") >&5
8788 (eval "$ac_compile") 2>conftest.er1
8789 ac_status=$?
8790 grep -v '^ *+' conftest.er1 >conftest.err
8791 rm -f conftest.er1
8792 cat conftest.err >&5
8793 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8794 (exit $ac_status); } && {
8795 test -z "$ac_c_werror_flag" ||
8796 test ! -s conftest.err
8797 } && test -s conftest.$ac_objext; then
8798 ac_hi=-1 ac_mid=-1
8799 while :; do
8800 cat >conftest.$ac_ext <<_ACEOF
8801 /* confdefs.h. */
8802 _ACEOF
8803 cat confdefs.h >>conftest.$ac_ext
8804 cat >>conftest.$ac_ext <<_ACEOF
8805 /* end confdefs.h. */
8806 $ac_includes_default
8808 main ()
8810 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
8811 test_array [0] = 0
8814 return 0;
8816 _ACEOF
8817 rm -f conftest.$ac_objext
8818 if { (ac_try="$ac_compile"
8819 case "(($ac_try" in
8820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8821 *) ac_try_echo=$ac_try;;
8822 esac
8823 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8824 $as_echo "$ac_try_echo") >&5
8825 (eval "$ac_compile") 2>conftest.er1
8826 ac_status=$?
8827 grep -v '^ *+' conftest.er1 >conftest.err
8828 rm -f conftest.er1
8829 cat conftest.err >&5
8830 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8831 (exit $ac_status); } && {
8832 test -z "$ac_c_werror_flag" ||
8833 test ! -s conftest.err
8834 } && test -s conftest.$ac_objext; then
8835 ac_lo=$ac_mid; break
8836 else
8837 $as_echo "$as_me: failed program was:" >&5
8838 sed 's/^/| /' conftest.$ac_ext >&5
8840 ac_hi=`expr '(' $ac_mid ')' - 1`
8841 if test $ac_mid -le $ac_hi; then
8842 ac_lo= ac_hi=
8843 break
8845 ac_mid=`expr 2 '*' $ac_mid`
8848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8849 done
8850 else
8851 $as_echo "$as_me: failed program was:" >&5
8852 sed 's/^/| /' conftest.$ac_ext >&5
8854 ac_lo= ac_hi=
8857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8861 # Binary search between lo and hi bounds.
8862 while test "x$ac_lo" != "x$ac_hi"; do
8863 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8864 cat >conftest.$ac_ext <<_ACEOF
8865 /* confdefs.h. */
8866 _ACEOF
8867 cat confdefs.h >>conftest.$ac_ext
8868 cat >>conftest.$ac_ext <<_ACEOF
8869 /* end confdefs.h. */
8870 $ac_includes_default
8872 main ()
8874 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
8875 test_array [0] = 0
8878 return 0;
8880 _ACEOF
8881 rm -f conftest.$ac_objext
8882 if { (ac_try="$ac_compile"
8883 case "(($ac_try" in
8884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8885 *) ac_try_echo=$ac_try;;
8886 esac
8887 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8888 $as_echo "$ac_try_echo") >&5
8889 (eval "$ac_compile") 2>conftest.er1
8890 ac_status=$?
8891 grep -v '^ *+' conftest.er1 >conftest.err
8892 rm -f conftest.er1
8893 cat conftest.err >&5
8894 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8895 (exit $ac_status); } && {
8896 test -z "$ac_c_werror_flag" ||
8897 test ! -s conftest.err
8898 } && test -s conftest.$ac_objext; then
8899 ac_hi=$ac_mid
8900 else
8901 $as_echo "$as_me: failed program was:" >&5
8902 sed 's/^/| /' conftest.$ac_ext >&5
8904 ac_lo=`expr '(' $ac_mid ')' + 1`
8907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8908 done
8909 case $ac_lo in
8910 ?*) ac_cv_sizeof_long=$ac_lo;;
8911 '') if test "$ac_cv_type_long" = yes; then
8912 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8913 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8914 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
8915 See \`config.log' for more details." >&5
8916 $as_echo "$as_me: error: cannot compute sizeof (long)
8917 See \`config.log' for more details." >&2;}
8918 { (exit 77); exit 77; }; }; }
8919 else
8920 ac_cv_sizeof_long=0
8921 fi ;;
8922 esac
8923 else
8924 cat >conftest.$ac_ext <<_ACEOF
8925 /* confdefs.h. */
8926 _ACEOF
8927 cat confdefs.h >>conftest.$ac_ext
8928 cat >>conftest.$ac_ext <<_ACEOF
8929 /* end confdefs.h. */
8930 $ac_includes_default
8931 static long int longval () { return (long int) (sizeof (long)); }
8932 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
8933 #include <stdio.h>
8934 #include <stdlib.h>
8936 main ()
8939 FILE *f = fopen ("conftest.val", "w");
8940 if (! f)
8941 return 1;
8942 if (((long int) (sizeof (long))) < 0)
8944 long int i = longval ();
8945 if (i != ((long int) (sizeof (long))))
8946 return 1;
8947 fprintf (f, "%ld", i);
8949 else
8951 unsigned long int i = ulongval ();
8952 if (i != ((long int) (sizeof (long))))
8953 return 1;
8954 fprintf (f, "%lu", i);
8956 /* Do not output a trailing newline, as this causes \r\n confusion
8957 on some platforms. */
8958 return ferror (f) || fclose (f) != 0;
8961 return 0;
8963 _ACEOF
8964 rm -f conftest$ac_exeext
8965 if { (ac_try="$ac_link"
8966 case "(($ac_try" in
8967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8968 *) ac_try_echo=$ac_try;;
8969 esac
8970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8971 $as_echo "$ac_try_echo") >&5
8972 (eval "$ac_link") 2>&5
8973 ac_status=$?
8974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8975 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8976 { (case "(($ac_try" in
8977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8978 *) ac_try_echo=$ac_try;;
8979 esac
8980 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8981 $as_echo "$ac_try_echo") >&5
8982 (eval "$ac_try") 2>&5
8983 ac_status=$?
8984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985 (exit $ac_status); }; }; then
8986 ac_cv_sizeof_long=`cat conftest.val`
8987 else
8988 $as_echo "$as_me: program exited with status $ac_status" >&5
8989 $as_echo "$as_me: failed program was:" >&5
8990 sed 's/^/| /' conftest.$ac_ext >&5
8992 ( exit $ac_status )
8993 if test "$ac_cv_type_long" = yes; then
8994 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8995 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8996 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
8997 See \`config.log' for more details." >&5
8998 $as_echo "$as_me: error: cannot compute sizeof (long)
8999 See \`config.log' for more details." >&2;}
9000 { (exit 77); exit 77; }; }; }
9001 else
9002 ac_cv_sizeof_long=0
9005 rm -rf conftest.dSYM
9006 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9008 rm -f conftest.val
9010 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
9011 $as_echo "$ac_cv_sizeof_long" >&6; }
9015 cat >>confdefs.h <<_ACEOF
9016 #define SIZEOF_LONG $ac_cv_sizeof_long
9017 _ACEOF
9020 # The cast to long int works around a bug in the HP C Compiler
9021 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9022 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9023 # This bug is HP SR number 8606223364.
9024 { $as_echo "$as_me:$LINENO: checking size of void *" >&5
9025 $as_echo_n "checking size of void *... " >&6; }
9026 if test "${ac_cv_sizeof_void_p+set}" = set; then
9027 $as_echo_n "(cached) " >&6
9028 else
9029 if test "$cross_compiling" = yes; then
9030 # Depending upon the size, compute the lo and hi bounds.
9031 cat >conftest.$ac_ext <<_ACEOF
9032 /* confdefs.h. */
9033 _ACEOF
9034 cat confdefs.h >>conftest.$ac_ext
9035 cat >>conftest.$ac_ext <<_ACEOF
9036 /* end confdefs.h. */
9037 $ac_includes_default
9039 main ()
9041 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
9042 test_array [0] = 0
9045 return 0;
9047 _ACEOF
9048 rm -f conftest.$ac_objext
9049 if { (ac_try="$ac_compile"
9050 case "(($ac_try" in
9051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9052 *) ac_try_echo=$ac_try;;
9053 esac
9054 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9055 $as_echo "$ac_try_echo") >&5
9056 (eval "$ac_compile") 2>conftest.er1
9057 ac_status=$?
9058 grep -v '^ *+' conftest.er1 >conftest.err
9059 rm -f conftest.er1
9060 cat conftest.err >&5
9061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9062 (exit $ac_status); } && {
9063 test -z "$ac_c_werror_flag" ||
9064 test ! -s conftest.err
9065 } && test -s conftest.$ac_objext; then
9066 ac_lo=0 ac_mid=0
9067 while :; do
9068 cat >conftest.$ac_ext <<_ACEOF
9069 /* confdefs.h. */
9070 _ACEOF
9071 cat confdefs.h >>conftest.$ac_ext
9072 cat >>conftest.$ac_ext <<_ACEOF
9073 /* end confdefs.h. */
9074 $ac_includes_default
9076 main ()
9078 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
9079 test_array [0] = 0
9082 return 0;
9084 _ACEOF
9085 rm -f conftest.$ac_objext
9086 if { (ac_try="$ac_compile"
9087 case "(($ac_try" in
9088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9089 *) ac_try_echo=$ac_try;;
9090 esac
9091 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9092 $as_echo "$ac_try_echo") >&5
9093 (eval "$ac_compile") 2>conftest.er1
9094 ac_status=$?
9095 grep -v '^ *+' conftest.er1 >conftest.err
9096 rm -f conftest.er1
9097 cat conftest.err >&5
9098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9099 (exit $ac_status); } && {
9100 test -z "$ac_c_werror_flag" ||
9101 test ! -s conftest.err
9102 } && test -s conftest.$ac_objext; then
9103 ac_hi=$ac_mid; break
9104 else
9105 $as_echo "$as_me: failed program was:" >&5
9106 sed 's/^/| /' conftest.$ac_ext >&5
9108 ac_lo=`expr $ac_mid + 1`
9109 if test $ac_lo -le $ac_mid; then
9110 ac_lo= ac_hi=
9111 break
9113 ac_mid=`expr 2 '*' $ac_mid + 1`
9116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9117 done
9118 else
9119 $as_echo "$as_me: failed program was:" >&5
9120 sed 's/^/| /' conftest.$ac_ext >&5
9122 cat >conftest.$ac_ext <<_ACEOF
9123 /* confdefs.h. */
9124 _ACEOF
9125 cat confdefs.h >>conftest.$ac_ext
9126 cat >>conftest.$ac_ext <<_ACEOF
9127 /* end confdefs.h. */
9128 $ac_includes_default
9130 main ()
9132 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
9133 test_array [0] = 0
9136 return 0;
9138 _ACEOF
9139 rm -f conftest.$ac_objext
9140 if { (ac_try="$ac_compile"
9141 case "(($ac_try" in
9142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9143 *) ac_try_echo=$ac_try;;
9144 esac
9145 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9146 $as_echo "$ac_try_echo") >&5
9147 (eval "$ac_compile") 2>conftest.er1
9148 ac_status=$?
9149 grep -v '^ *+' conftest.er1 >conftest.err
9150 rm -f conftest.er1
9151 cat conftest.err >&5
9152 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9153 (exit $ac_status); } && {
9154 test -z "$ac_c_werror_flag" ||
9155 test ! -s conftest.err
9156 } && test -s conftest.$ac_objext; then
9157 ac_hi=-1 ac_mid=-1
9158 while :; do
9159 cat >conftest.$ac_ext <<_ACEOF
9160 /* confdefs.h. */
9161 _ACEOF
9162 cat confdefs.h >>conftest.$ac_ext
9163 cat >>conftest.$ac_ext <<_ACEOF
9164 /* end confdefs.h. */
9165 $ac_includes_default
9167 main ()
9169 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
9170 test_array [0] = 0
9173 return 0;
9175 _ACEOF
9176 rm -f conftest.$ac_objext
9177 if { (ac_try="$ac_compile"
9178 case "(($ac_try" in
9179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9180 *) ac_try_echo=$ac_try;;
9181 esac
9182 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9183 $as_echo "$ac_try_echo") >&5
9184 (eval "$ac_compile") 2>conftest.er1
9185 ac_status=$?
9186 grep -v '^ *+' conftest.er1 >conftest.err
9187 rm -f conftest.er1
9188 cat conftest.err >&5
9189 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9190 (exit $ac_status); } && {
9191 test -z "$ac_c_werror_flag" ||
9192 test ! -s conftest.err
9193 } && test -s conftest.$ac_objext; then
9194 ac_lo=$ac_mid; break
9195 else
9196 $as_echo "$as_me: failed program was:" >&5
9197 sed 's/^/| /' conftest.$ac_ext >&5
9199 ac_hi=`expr '(' $ac_mid ')' - 1`
9200 if test $ac_mid -le $ac_hi; then
9201 ac_lo= ac_hi=
9202 break
9204 ac_mid=`expr 2 '*' $ac_mid`
9207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9208 done
9209 else
9210 $as_echo "$as_me: failed program was:" >&5
9211 sed 's/^/| /' conftest.$ac_ext >&5
9213 ac_lo= ac_hi=
9216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9220 # Binary search between lo and hi bounds.
9221 while test "x$ac_lo" != "x$ac_hi"; do
9222 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9223 cat >conftest.$ac_ext <<_ACEOF
9224 /* confdefs.h. */
9225 _ACEOF
9226 cat confdefs.h >>conftest.$ac_ext
9227 cat >>conftest.$ac_ext <<_ACEOF
9228 /* end confdefs.h. */
9229 $ac_includes_default
9231 main ()
9233 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
9234 test_array [0] = 0
9237 return 0;
9239 _ACEOF
9240 rm -f conftest.$ac_objext
9241 if { (ac_try="$ac_compile"
9242 case "(($ac_try" in
9243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9244 *) ac_try_echo=$ac_try;;
9245 esac
9246 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9247 $as_echo "$ac_try_echo") >&5
9248 (eval "$ac_compile") 2>conftest.er1
9249 ac_status=$?
9250 grep -v '^ *+' conftest.er1 >conftest.err
9251 rm -f conftest.er1
9252 cat conftest.err >&5
9253 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254 (exit $ac_status); } && {
9255 test -z "$ac_c_werror_flag" ||
9256 test ! -s conftest.err
9257 } && test -s conftest.$ac_objext; then
9258 ac_hi=$ac_mid
9259 else
9260 $as_echo "$as_me: failed program was:" >&5
9261 sed 's/^/| /' conftest.$ac_ext >&5
9263 ac_lo=`expr '(' $ac_mid ')' + 1`
9266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9267 done
9268 case $ac_lo in
9269 ?*) ac_cv_sizeof_void_p=$ac_lo;;
9270 '') if test "$ac_cv_type_void_p" = yes; then
9271 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9272 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9273 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
9274 See \`config.log' for more details." >&5
9275 $as_echo "$as_me: error: cannot compute sizeof (void *)
9276 See \`config.log' for more details." >&2;}
9277 { (exit 77); exit 77; }; }; }
9278 else
9279 ac_cv_sizeof_void_p=0
9280 fi ;;
9281 esac
9282 else
9283 cat >conftest.$ac_ext <<_ACEOF
9284 /* confdefs.h. */
9285 _ACEOF
9286 cat confdefs.h >>conftest.$ac_ext
9287 cat >>conftest.$ac_ext <<_ACEOF
9288 /* end confdefs.h. */
9289 $ac_includes_default
9290 static long int longval () { return (long int) (sizeof (void *)); }
9291 static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
9292 #include <stdio.h>
9293 #include <stdlib.h>
9295 main ()
9298 FILE *f = fopen ("conftest.val", "w");
9299 if (! f)
9300 return 1;
9301 if (((long int) (sizeof (void *))) < 0)
9303 long int i = longval ();
9304 if (i != ((long int) (sizeof (void *))))
9305 return 1;
9306 fprintf (f, "%ld", i);
9308 else
9310 unsigned long int i = ulongval ();
9311 if (i != ((long int) (sizeof (void *))))
9312 return 1;
9313 fprintf (f, "%lu", i);
9315 /* Do not output a trailing newline, as this causes \r\n confusion
9316 on some platforms. */
9317 return ferror (f) || fclose (f) != 0;
9320 return 0;
9322 _ACEOF
9323 rm -f conftest$ac_exeext
9324 if { (ac_try="$ac_link"
9325 case "(($ac_try" in
9326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9327 *) ac_try_echo=$ac_try;;
9328 esac
9329 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9330 $as_echo "$ac_try_echo") >&5
9331 (eval "$ac_link") 2>&5
9332 ac_status=$?
9333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9334 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9335 { (case "(($ac_try" in
9336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9337 *) ac_try_echo=$ac_try;;
9338 esac
9339 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9340 $as_echo "$ac_try_echo") >&5
9341 (eval "$ac_try") 2>&5
9342 ac_status=$?
9343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9344 (exit $ac_status); }; }; then
9345 ac_cv_sizeof_void_p=`cat conftest.val`
9346 else
9347 $as_echo "$as_me: program exited with status $ac_status" >&5
9348 $as_echo "$as_me: failed program was:" >&5
9349 sed 's/^/| /' conftest.$ac_ext >&5
9351 ( exit $ac_status )
9352 if test "$ac_cv_type_void_p" = yes; then
9353 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9354 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9355 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
9356 See \`config.log' for more details." >&5
9357 $as_echo "$as_me: error: cannot compute sizeof (void *)
9358 See \`config.log' for more details." >&2;}
9359 { (exit 77); exit 77; }; }; }
9360 else
9361 ac_cv_sizeof_void_p=0
9364 rm -rf conftest.dSYM
9365 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9367 rm -f conftest.val
9369 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
9370 $as_echo "$ac_cv_sizeof_void_p" >&6; }
9374 cat >>confdefs.h <<_ACEOF
9375 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
9376 _ACEOF
9379 # The cast to long int works around a bug in the HP C Compiler
9380 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9381 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9382 # This bug is HP SR number 8606223364.
9383 { $as_echo "$as_me:$LINENO: checking size of short" >&5
9384 $as_echo_n "checking size of short... " >&6; }
9385 if test "${ac_cv_sizeof_short+set}" = set; then
9386 $as_echo_n "(cached) " >&6
9387 else
9388 if test "$cross_compiling" = yes; then
9389 # Depending upon the size, compute the lo and hi bounds.
9390 cat >conftest.$ac_ext <<_ACEOF
9391 /* confdefs.h. */
9392 _ACEOF
9393 cat confdefs.h >>conftest.$ac_ext
9394 cat >>conftest.$ac_ext <<_ACEOF
9395 /* end confdefs.h. */
9396 $ac_includes_default
9398 main ()
9400 static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)];
9401 test_array [0] = 0
9404 return 0;
9406 _ACEOF
9407 rm -f conftest.$ac_objext
9408 if { (ac_try="$ac_compile"
9409 case "(($ac_try" in
9410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9411 *) ac_try_echo=$ac_try;;
9412 esac
9413 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9414 $as_echo "$ac_try_echo") >&5
9415 (eval "$ac_compile") 2>conftest.er1
9416 ac_status=$?
9417 grep -v '^ *+' conftest.er1 >conftest.err
9418 rm -f conftest.er1
9419 cat conftest.err >&5
9420 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9421 (exit $ac_status); } && {
9422 test -z "$ac_c_werror_flag" ||
9423 test ! -s conftest.err
9424 } && test -s conftest.$ac_objext; then
9425 ac_lo=0 ac_mid=0
9426 while :; do
9427 cat >conftest.$ac_ext <<_ACEOF
9428 /* confdefs.h. */
9429 _ACEOF
9430 cat confdefs.h >>conftest.$ac_ext
9431 cat >>conftest.$ac_ext <<_ACEOF
9432 /* end confdefs.h. */
9433 $ac_includes_default
9435 main ()
9437 static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
9438 test_array [0] = 0
9441 return 0;
9443 _ACEOF
9444 rm -f conftest.$ac_objext
9445 if { (ac_try="$ac_compile"
9446 case "(($ac_try" in
9447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9448 *) ac_try_echo=$ac_try;;
9449 esac
9450 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9451 $as_echo "$ac_try_echo") >&5
9452 (eval "$ac_compile") 2>conftest.er1
9453 ac_status=$?
9454 grep -v '^ *+' conftest.er1 >conftest.err
9455 rm -f conftest.er1
9456 cat conftest.err >&5
9457 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9458 (exit $ac_status); } && {
9459 test -z "$ac_c_werror_flag" ||
9460 test ! -s conftest.err
9461 } && test -s conftest.$ac_objext; then
9462 ac_hi=$ac_mid; break
9463 else
9464 $as_echo "$as_me: failed program was:" >&5
9465 sed 's/^/| /' conftest.$ac_ext >&5
9467 ac_lo=`expr $ac_mid + 1`
9468 if test $ac_lo -le $ac_mid; then
9469 ac_lo= ac_hi=
9470 break
9472 ac_mid=`expr 2 '*' $ac_mid + 1`
9475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9476 done
9477 else
9478 $as_echo "$as_me: failed program was:" >&5
9479 sed 's/^/| /' conftest.$ac_ext >&5
9481 cat >conftest.$ac_ext <<_ACEOF
9482 /* confdefs.h. */
9483 _ACEOF
9484 cat confdefs.h >>conftest.$ac_ext
9485 cat >>conftest.$ac_ext <<_ACEOF
9486 /* end confdefs.h. */
9487 $ac_includes_default
9489 main ()
9491 static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)];
9492 test_array [0] = 0
9495 return 0;
9497 _ACEOF
9498 rm -f conftest.$ac_objext
9499 if { (ac_try="$ac_compile"
9500 case "(($ac_try" in
9501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9502 *) ac_try_echo=$ac_try;;
9503 esac
9504 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9505 $as_echo "$ac_try_echo") >&5
9506 (eval "$ac_compile") 2>conftest.er1
9507 ac_status=$?
9508 grep -v '^ *+' conftest.er1 >conftest.err
9509 rm -f conftest.er1
9510 cat conftest.err >&5
9511 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9512 (exit $ac_status); } && {
9513 test -z "$ac_c_werror_flag" ||
9514 test ! -s conftest.err
9515 } && test -s conftest.$ac_objext; then
9516 ac_hi=-1 ac_mid=-1
9517 while :; do
9518 cat >conftest.$ac_ext <<_ACEOF
9519 /* confdefs.h. */
9520 _ACEOF
9521 cat confdefs.h >>conftest.$ac_ext
9522 cat >>conftest.$ac_ext <<_ACEOF
9523 /* end confdefs.h. */
9524 $ac_includes_default
9526 main ()
9528 static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)];
9529 test_array [0] = 0
9532 return 0;
9534 _ACEOF
9535 rm -f conftest.$ac_objext
9536 if { (ac_try="$ac_compile"
9537 case "(($ac_try" in
9538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9539 *) ac_try_echo=$ac_try;;
9540 esac
9541 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9542 $as_echo "$ac_try_echo") >&5
9543 (eval "$ac_compile") 2>conftest.er1
9544 ac_status=$?
9545 grep -v '^ *+' conftest.er1 >conftest.err
9546 rm -f conftest.er1
9547 cat conftest.err >&5
9548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9549 (exit $ac_status); } && {
9550 test -z "$ac_c_werror_flag" ||
9551 test ! -s conftest.err
9552 } && test -s conftest.$ac_objext; then
9553 ac_lo=$ac_mid; break
9554 else
9555 $as_echo "$as_me: failed program was:" >&5
9556 sed 's/^/| /' conftest.$ac_ext >&5
9558 ac_hi=`expr '(' $ac_mid ')' - 1`
9559 if test $ac_mid -le $ac_hi; then
9560 ac_lo= ac_hi=
9561 break
9563 ac_mid=`expr 2 '*' $ac_mid`
9566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9567 done
9568 else
9569 $as_echo "$as_me: failed program was:" >&5
9570 sed 's/^/| /' conftest.$ac_ext >&5
9572 ac_lo= ac_hi=
9575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9579 # Binary search between lo and hi bounds.
9580 while test "x$ac_lo" != "x$ac_hi"; do
9581 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9582 cat >conftest.$ac_ext <<_ACEOF
9583 /* confdefs.h. */
9584 _ACEOF
9585 cat confdefs.h >>conftest.$ac_ext
9586 cat >>conftest.$ac_ext <<_ACEOF
9587 /* end confdefs.h. */
9588 $ac_includes_default
9590 main ()
9592 static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
9593 test_array [0] = 0
9596 return 0;
9598 _ACEOF
9599 rm -f conftest.$ac_objext
9600 if { (ac_try="$ac_compile"
9601 case "(($ac_try" in
9602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9603 *) ac_try_echo=$ac_try;;
9604 esac
9605 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9606 $as_echo "$ac_try_echo") >&5
9607 (eval "$ac_compile") 2>conftest.er1
9608 ac_status=$?
9609 grep -v '^ *+' conftest.er1 >conftest.err
9610 rm -f conftest.er1
9611 cat conftest.err >&5
9612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9613 (exit $ac_status); } && {
9614 test -z "$ac_c_werror_flag" ||
9615 test ! -s conftest.err
9616 } && test -s conftest.$ac_objext; then
9617 ac_hi=$ac_mid
9618 else
9619 $as_echo "$as_me: failed program was:" >&5
9620 sed 's/^/| /' conftest.$ac_ext >&5
9622 ac_lo=`expr '(' $ac_mid ')' + 1`
9625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9626 done
9627 case $ac_lo in
9628 ?*) ac_cv_sizeof_short=$ac_lo;;
9629 '') if test "$ac_cv_type_short" = yes; then
9630 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9631 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9632 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
9633 See \`config.log' for more details." >&5
9634 $as_echo "$as_me: error: cannot compute sizeof (short)
9635 See \`config.log' for more details." >&2;}
9636 { (exit 77); exit 77; }; }; }
9637 else
9638 ac_cv_sizeof_short=0
9639 fi ;;
9640 esac
9641 else
9642 cat >conftest.$ac_ext <<_ACEOF
9643 /* confdefs.h. */
9644 _ACEOF
9645 cat confdefs.h >>conftest.$ac_ext
9646 cat >>conftest.$ac_ext <<_ACEOF
9647 /* end confdefs.h. */
9648 $ac_includes_default
9649 static long int longval () { return (long int) (sizeof (short)); }
9650 static unsigned long int ulongval () { return (long int) (sizeof (short)); }
9651 #include <stdio.h>
9652 #include <stdlib.h>
9654 main ()
9657 FILE *f = fopen ("conftest.val", "w");
9658 if (! f)
9659 return 1;
9660 if (((long int) (sizeof (short))) < 0)
9662 long int i = longval ();
9663 if (i != ((long int) (sizeof (short))))
9664 return 1;
9665 fprintf (f, "%ld", i);
9667 else
9669 unsigned long int i = ulongval ();
9670 if (i != ((long int) (sizeof (short))))
9671 return 1;
9672 fprintf (f, "%lu", i);
9674 /* Do not output a trailing newline, as this causes \r\n confusion
9675 on some platforms. */
9676 return ferror (f) || fclose (f) != 0;
9679 return 0;
9681 _ACEOF
9682 rm -f conftest$ac_exeext
9683 if { (ac_try="$ac_link"
9684 case "(($ac_try" in
9685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9686 *) ac_try_echo=$ac_try;;
9687 esac
9688 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9689 $as_echo "$ac_try_echo") >&5
9690 (eval "$ac_link") 2>&5
9691 ac_status=$?
9692 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9693 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9694 { (case "(($ac_try" in
9695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9696 *) ac_try_echo=$ac_try;;
9697 esac
9698 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9699 $as_echo "$ac_try_echo") >&5
9700 (eval "$ac_try") 2>&5
9701 ac_status=$?
9702 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9703 (exit $ac_status); }; }; then
9704 ac_cv_sizeof_short=`cat conftest.val`
9705 else
9706 $as_echo "$as_me: program exited with status $ac_status" >&5
9707 $as_echo "$as_me: failed program was:" >&5
9708 sed 's/^/| /' conftest.$ac_ext >&5
9710 ( exit $ac_status )
9711 if test "$ac_cv_type_short" = yes; then
9712 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9713 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9714 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
9715 See \`config.log' for more details." >&5
9716 $as_echo "$as_me: error: cannot compute sizeof (short)
9717 See \`config.log' for more details." >&2;}
9718 { (exit 77); exit 77; }; }; }
9719 else
9720 ac_cv_sizeof_short=0
9723 rm -rf conftest.dSYM
9724 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9726 rm -f conftest.val
9728 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
9729 $as_echo "$ac_cv_sizeof_short" >&6; }
9733 cat >>confdefs.h <<_ACEOF
9734 #define SIZEOF_SHORT $ac_cv_sizeof_short
9735 _ACEOF
9738 # The cast to long int works around a bug in the HP C Compiler
9739 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9740 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9741 # This bug is HP SR number 8606223364.
9742 { $as_echo "$as_me:$LINENO: checking size of float" >&5
9743 $as_echo_n "checking size of float... " >&6; }
9744 if test "${ac_cv_sizeof_float+set}" = set; then
9745 $as_echo_n "(cached) " >&6
9746 else
9747 if test "$cross_compiling" = yes; then
9748 # Depending upon the size, compute the lo and hi bounds.
9749 cat >conftest.$ac_ext <<_ACEOF
9750 /* confdefs.h. */
9751 _ACEOF
9752 cat confdefs.h >>conftest.$ac_ext
9753 cat >>conftest.$ac_ext <<_ACEOF
9754 /* end confdefs.h. */
9755 $ac_includes_default
9757 main ()
9759 static int test_array [1 - 2 * !(((long int) (sizeof (float))) >= 0)];
9760 test_array [0] = 0
9763 return 0;
9765 _ACEOF
9766 rm -f conftest.$ac_objext
9767 if { (ac_try="$ac_compile"
9768 case "(($ac_try" in
9769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9770 *) ac_try_echo=$ac_try;;
9771 esac
9772 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9773 $as_echo "$ac_try_echo") >&5
9774 (eval "$ac_compile") 2>conftest.er1
9775 ac_status=$?
9776 grep -v '^ *+' conftest.er1 >conftest.err
9777 rm -f conftest.er1
9778 cat conftest.err >&5
9779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9780 (exit $ac_status); } && {
9781 test -z "$ac_c_werror_flag" ||
9782 test ! -s conftest.err
9783 } && test -s conftest.$ac_objext; then
9784 ac_lo=0 ac_mid=0
9785 while :; do
9786 cat >conftest.$ac_ext <<_ACEOF
9787 /* confdefs.h. */
9788 _ACEOF
9789 cat confdefs.h >>conftest.$ac_ext
9790 cat >>conftest.$ac_ext <<_ACEOF
9791 /* end confdefs.h. */
9792 $ac_includes_default
9794 main ()
9796 static int test_array [1 - 2 * !(((long int) (sizeof (float))) <= $ac_mid)];
9797 test_array [0] = 0
9800 return 0;
9802 _ACEOF
9803 rm -f conftest.$ac_objext
9804 if { (ac_try="$ac_compile"
9805 case "(($ac_try" in
9806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9807 *) ac_try_echo=$ac_try;;
9808 esac
9809 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9810 $as_echo "$ac_try_echo") >&5
9811 (eval "$ac_compile") 2>conftest.er1
9812 ac_status=$?
9813 grep -v '^ *+' conftest.er1 >conftest.err
9814 rm -f conftest.er1
9815 cat conftest.err >&5
9816 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9817 (exit $ac_status); } && {
9818 test -z "$ac_c_werror_flag" ||
9819 test ! -s conftest.err
9820 } && test -s conftest.$ac_objext; then
9821 ac_hi=$ac_mid; break
9822 else
9823 $as_echo "$as_me: failed program was:" >&5
9824 sed 's/^/| /' conftest.$ac_ext >&5
9826 ac_lo=`expr $ac_mid + 1`
9827 if test $ac_lo -le $ac_mid; then
9828 ac_lo= ac_hi=
9829 break
9831 ac_mid=`expr 2 '*' $ac_mid + 1`
9834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9835 done
9836 else
9837 $as_echo "$as_me: failed program was:" >&5
9838 sed 's/^/| /' conftest.$ac_ext >&5
9840 cat >conftest.$ac_ext <<_ACEOF
9841 /* confdefs.h. */
9842 _ACEOF
9843 cat confdefs.h >>conftest.$ac_ext
9844 cat >>conftest.$ac_ext <<_ACEOF
9845 /* end confdefs.h. */
9846 $ac_includes_default
9848 main ()
9850 static int test_array [1 - 2 * !(((long int) (sizeof (float))) < 0)];
9851 test_array [0] = 0
9854 return 0;
9856 _ACEOF
9857 rm -f conftest.$ac_objext
9858 if { (ac_try="$ac_compile"
9859 case "(($ac_try" in
9860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9861 *) ac_try_echo=$ac_try;;
9862 esac
9863 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9864 $as_echo "$ac_try_echo") >&5
9865 (eval "$ac_compile") 2>conftest.er1
9866 ac_status=$?
9867 grep -v '^ *+' conftest.er1 >conftest.err
9868 rm -f conftest.er1
9869 cat conftest.err >&5
9870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9871 (exit $ac_status); } && {
9872 test -z "$ac_c_werror_flag" ||
9873 test ! -s conftest.err
9874 } && test -s conftest.$ac_objext; then
9875 ac_hi=-1 ac_mid=-1
9876 while :; do
9877 cat >conftest.$ac_ext <<_ACEOF
9878 /* confdefs.h. */
9879 _ACEOF
9880 cat confdefs.h >>conftest.$ac_ext
9881 cat >>conftest.$ac_ext <<_ACEOF
9882 /* end confdefs.h. */
9883 $ac_includes_default
9885 main ()
9887 static int test_array [1 - 2 * !(((long int) (sizeof (float))) >= $ac_mid)];
9888 test_array [0] = 0
9891 return 0;
9893 _ACEOF
9894 rm -f conftest.$ac_objext
9895 if { (ac_try="$ac_compile"
9896 case "(($ac_try" in
9897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9898 *) ac_try_echo=$ac_try;;
9899 esac
9900 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9901 $as_echo "$ac_try_echo") >&5
9902 (eval "$ac_compile") 2>conftest.er1
9903 ac_status=$?
9904 grep -v '^ *+' conftest.er1 >conftest.err
9905 rm -f conftest.er1
9906 cat conftest.err >&5
9907 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9908 (exit $ac_status); } && {
9909 test -z "$ac_c_werror_flag" ||
9910 test ! -s conftest.err
9911 } && test -s conftest.$ac_objext; then
9912 ac_lo=$ac_mid; break
9913 else
9914 $as_echo "$as_me: failed program was:" >&5
9915 sed 's/^/| /' conftest.$ac_ext >&5
9917 ac_hi=`expr '(' $ac_mid ')' - 1`
9918 if test $ac_mid -le $ac_hi; then
9919 ac_lo= ac_hi=
9920 break
9922 ac_mid=`expr 2 '*' $ac_mid`
9925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9926 done
9927 else
9928 $as_echo "$as_me: failed program was:" >&5
9929 sed 's/^/| /' conftest.$ac_ext >&5
9931 ac_lo= ac_hi=
9934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9938 # Binary search between lo and hi bounds.
9939 while test "x$ac_lo" != "x$ac_hi"; do
9940 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9941 cat >conftest.$ac_ext <<_ACEOF
9942 /* confdefs.h. */
9943 _ACEOF
9944 cat confdefs.h >>conftest.$ac_ext
9945 cat >>conftest.$ac_ext <<_ACEOF
9946 /* end confdefs.h. */
9947 $ac_includes_default
9949 main ()
9951 static int test_array [1 - 2 * !(((long int) (sizeof (float))) <= $ac_mid)];
9952 test_array [0] = 0
9955 return 0;
9957 _ACEOF
9958 rm -f conftest.$ac_objext
9959 if { (ac_try="$ac_compile"
9960 case "(($ac_try" in
9961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9962 *) ac_try_echo=$ac_try;;
9963 esac
9964 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9965 $as_echo "$ac_try_echo") >&5
9966 (eval "$ac_compile") 2>conftest.er1
9967 ac_status=$?
9968 grep -v '^ *+' conftest.er1 >conftest.err
9969 rm -f conftest.er1
9970 cat conftest.err >&5
9971 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972 (exit $ac_status); } && {
9973 test -z "$ac_c_werror_flag" ||
9974 test ! -s conftest.err
9975 } && test -s conftest.$ac_objext; then
9976 ac_hi=$ac_mid
9977 else
9978 $as_echo "$as_me: failed program was:" >&5
9979 sed 's/^/| /' conftest.$ac_ext >&5
9981 ac_lo=`expr '(' $ac_mid ')' + 1`
9984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9985 done
9986 case $ac_lo in
9987 ?*) ac_cv_sizeof_float=$ac_lo;;
9988 '') if test "$ac_cv_type_float" = yes; then
9989 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9990 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9991 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (float)
9992 See \`config.log' for more details." >&5
9993 $as_echo "$as_me: error: cannot compute sizeof (float)
9994 See \`config.log' for more details." >&2;}
9995 { (exit 77); exit 77; }; }; }
9996 else
9997 ac_cv_sizeof_float=0
9998 fi ;;
9999 esac
10000 else
10001 cat >conftest.$ac_ext <<_ACEOF
10002 /* confdefs.h. */
10003 _ACEOF
10004 cat confdefs.h >>conftest.$ac_ext
10005 cat >>conftest.$ac_ext <<_ACEOF
10006 /* end confdefs.h. */
10007 $ac_includes_default
10008 static long int longval () { return (long int) (sizeof (float)); }
10009 static unsigned long int ulongval () { return (long int) (sizeof (float)); }
10010 #include <stdio.h>
10011 #include <stdlib.h>
10013 main ()
10016 FILE *f = fopen ("conftest.val", "w");
10017 if (! f)
10018 return 1;
10019 if (((long int) (sizeof (float))) < 0)
10021 long int i = longval ();
10022 if (i != ((long int) (sizeof (float))))
10023 return 1;
10024 fprintf (f, "%ld", i);
10026 else
10028 unsigned long int i = ulongval ();
10029 if (i != ((long int) (sizeof (float))))
10030 return 1;
10031 fprintf (f, "%lu", i);
10033 /* Do not output a trailing newline, as this causes \r\n confusion
10034 on some platforms. */
10035 return ferror (f) || fclose (f) != 0;
10038 return 0;
10040 _ACEOF
10041 rm -f conftest$ac_exeext
10042 if { (ac_try="$ac_link"
10043 case "(($ac_try" in
10044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10045 *) ac_try_echo=$ac_try;;
10046 esac
10047 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10048 $as_echo "$ac_try_echo") >&5
10049 (eval "$ac_link") 2>&5
10050 ac_status=$?
10051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10052 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10053 { (case "(($ac_try" in
10054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10055 *) ac_try_echo=$ac_try;;
10056 esac
10057 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10058 $as_echo "$ac_try_echo") >&5
10059 (eval "$ac_try") 2>&5
10060 ac_status=$?
10061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062 (exit $ac_status); }; }; then
10063 ac_cv_sizeof_float=`cat conftest.val`
10064 else
10065 $as_echo "$as_me: program exited with status $ac_status" >&5
10066 $as_echo "$as_me: failed program was:" >&5
10067 sed 's/^/| /' conftest.$ac_ext >&5
10069 ( exit $ac_status )
10070 if test "$ac_cv_type_float" = yes; then
10071 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10072 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10073 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (float)
10074 See \`config.log' for more details." >&5
10075 $as_echo "$as_me: error: cannot compute sizeof (float)
10076 See \`config.log' for more details." >&2;}
10077 { (exit 77); exit 77; }; }; }
10078 else
10079 ac_cv_sizeof_float=0
10082 rm -rf conftest.dSYM
10083 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10085 rm -f conftest.val
10087 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
10088 $as_echo "$ac_cv_sizeof_float" >&6; }
10092 cat >>confdefs.h <<_ACEOF
10093 #define SIZEOF_FLOAT $ac_cv_sizeof_float
10094 _ACEOF
10097 # The cast to long int works around a bug in the HP C Compiler
10098 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10099 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10100 # This bug is HP SR number 8606223364.
10101 { $as_echo "$as_me:$LINENO: checking size of double" >&5
10102 $as_echo_n "checking size of double... " >&6; }
10103 if test "${ac_cv_sizeof_double+set}" = set; then
10104 $as_echo_n "(cached) " >&6
10105 else
10106 if test "$cross_compiling" = yes; then
10107 # Depending upon the size, compute the lo and hi bounds.
10108 cat >conftest.$ac_ext <<_ACEOF
10109 /* confdefs.h. */
10110 _ACEOF
10111 cat confdefs.h >>conftest.$ac_ext
10112 cat >>conftest.$ac_ext <<_ACEOF
10113 /* end confdefs.h. */
10114 $ac_includes_default
10116 main ()
10118 static int test_array [1 - 2 * !(((long int) (sizeof (double))) >= 0)];
10119 test_array [0] = 0
10122 return 0;
10124 _ACEOF
10125 rm -f conftest.$ac_objext
10126 if { (ac_try="$ac_compile"
10127 case "(($ac_try" in
10128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10129 *) ac_try_echo=$ac_try;;
10130 esac
10131 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10132 $as_echo "$ac_try_echo") >&5
10133 (eval "$ac_compile") 2>conftest.er1
10134 ac_status=$?
10135 grep -v '^ *+' conftest.er1 >conftest.err
10136 rm -f conftest.er1
10137 cat conftest.err >&5
10138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10139 (exit $ac_status); } && {
10140 test -z "$ac_c_werror_flag" ||
10141 test ! -s conftest.err
10142 } && test -s conftest.$ac_objext; then
10143 ac_lo=0 ac_mid=0
10144 while :; do
10145 cat >conftest.$ac_ext <<_ACEOF
10146 /* confdefs.h. */
10147 _ACEOF
10148 cat confdefs.h >>conftest.$ac_ext
10149 cat >>conftest.$ac_ext <<_ACEOF
10150 /* end confdefs.h. */
10151 $ac_includes_default
10153 main ()
10155 static int test_array [1 - 2 * !(((long int) (sizeof (double))) <= $ac_mid)];
10156 test_array [0] = 0
10159 return 0;
10161 _ACEOF
10162 rm -f conftest.$ac_objext
10163 if { (ac_try="$ac_compile"
10164 case "(($ac_try" in
10165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10166 *) ac_try_echo=$ac_try;;
10167 esac
10168 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10169 $as_echo "$ac_try_echo") >&5
10170 (eval "$ac_compile") 2>conftest.er1
10171 ac_status=$?
10172 grep -v '^ *+' conftest.er1 >conftest.err
10173 rm -f conftest.er1
10174 cat conftest.err >&5
10175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176 (exit $ac_status); } && {
10177 test -z "$ac_c_werror_flag" ||
10178 test ! -s conftest.err
10179 } && test -s conftest.$ac_objext; then
10180 ac_hi=$ac_mid; break
10181 else
10182 $as_echo "$as_me: failed program was:" >&5
10183 sed 's/^/| /' conftest.$ac_ext >&5
10185 ac_lo=`expr $ac_mid + 1`
10186 if test $ac_lo -le $ac_mid; then
10187 ac_lo= ac_hi=
10188 break
10190 ac_mid=`expr 2 '*' $ac_mid + 1`
10193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10194 done
10195 else
10196 $as_echo "$as_me: failed program was:" >&5
10197 sed 's/^/| /' conftest.$ac_ext >&5
10199 cat >conftest.$ac_ext <<_ACEOF
10200 /* confdefs.h. */
10201 _ACEOF
10202 cat confdefs.h >>conftest.$ac_ext
10203 cat >>conftest.$ac_ext <<_ACEOF
10204 /* end confdefs.h. */
10205 $ac_includes_default
10207 main ()
10209 static int test_array [1 - 2 * !(((long int) (sizeof (double))) < 0)];
10210 test_array [0] = 0
10213 return 0;
10215 _ACEOF
10216 rm -f conftest.$ac_objext
10217 if { (ac_try="$ac_compile"
10218 case "(($ac_try" in
10219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10220 *) ac_try_echo=$ac_try;;
10221 esac
10222 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10223 $as_echo "$ac_try_echo") >&5
10224 (eval "$ac_compile") 2>conftest.er1
10225 ac_status=$?
10226 grep -v '^ *+' conftest.er1 >conftest.err
10227 rm -f conftest.er1
10228 cat conftest.err >&5
10229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10230 (exit $ac_status); } && {
10231 test -z "$ac_c_werror_flag" ||
10232 test ! -s conftest.err
10233 } && test -s conftest.$ac_objext; then
10234 ac_hi=-1 ac_mid=-1
10235 while :; do
10236 cat >conftest.$ac_ext <<_ACEOF
10237 /* confdefs.h. */
10238 _ACEOF
10239 cat confdefs.h >>conftest.$ac_ext
10240 cat >>conftest.$ac_ext <<_ACEOF
10241 /* end confdefs.h. */
10242 $ac_includes_default
10244 main ()
10246 static int test_array [1 - 2 * !(((long int) (sizeof (double))) >= $ac_mid)];
10247 test_array [0] = 0
10250 return 0;
10252 _ACEOF
10253 rm -f conftest.$ac_objext
10254 if { (ac_try="$ac_compile"
10255 case "(($ac_try" in
10256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10257 *) ac_try_echo=$ac_try;;
10258 esac
10259 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10260 $as_echo "$ac_try_echo") >&5
10261 (eval "$ac_compile") 2>conftest.er1
10262 ac_status=$?
10263 grep -v '^ *+' conftest.er1 >conftest.err
10264 rm -f conftest.er1
10265 cat conftest.err >&5
10266 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10267 (exit $ac_status); } && {
10268 test -z "$ac_c_werror_flag" ||
10269 test ! -s conftest.err
10270 } && test -s conftest.$ac_objext; then
10271 ac_lo=$ac_mid; break
10272 else
10273 $as_echo "$as_me: failed program was:" >&5
10274 sed 's/^/| /' conftest.$ac_ext >&5
10276 ac_hi=`expr '(' $ac_mid ')' - 1`
10277 if test $ac_mid -le $ac_hi; then
10278 ac_lo= ac_hi=
10279 break
10281 ac_mid=`expr 2 '*' $ac_mid`
10284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10285 done
10286 else
10287 $as_echo "$as_me: failed program was:" >&5
10288 sed 's/^/| /' conftest.$ac_ext >&5
10290 ac_lo= ac_hi=
10293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10297 # Binary search between lo and hi bounds.
10298 while test "x$ac_lo" != "x$ac_hi"; do
10299 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10300 cat >conftest.$ac_ext <<_ACEOF
10301 /* confdefs.h. */
10302 _ACEOF
10303 cat confdefs.h >>conftest.$ac_ext
10304 cat >>conftest.$ac_ext <<_ACEOF
10305 /* end confdefs.h. */
10306 $ac_includes_default
10308 main ()
10310 static int test_array [1 - 2 * !(((long int) (sizeof (double))) <= $ac_mid)];
10311 test_array [0] = 0
10314 return 0;
10316 _ACEOF
10317 rm -f conftest.$ac_objext
10318 if { (ac_try="$ac_compile"
10319 case "(($ac_try" in
10320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10321 *) ac_try_echo=$ac_try;;
10322 esac
10323 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10324 $as_echo "$ac_try_echo") >&5
10325 (eval "$ac_compile") 2>conftest.er1
10326 ac_status=$?
10327 grep -v '^ *+' conftest.er1 >conftest.err
10328 rm -f conftest.er1
10329 cat conftest.err >&5
10330 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10331 (exit $ac_status); } && {
10332 test -z "$ac_c_werror_flag" ||
10333 test ! -s conftest.err
10334 } && test -s conftest.$ac_objext; then
10335 ac_hi=$ac_mid
10336 else
10337 $as_echo "$as_me: failed program was:" >&5
10338 sed 's/^/| /' conftest.$ac_ext >&5
10340 ac_lo=`expr '(' $ac_mid ')' + 1`
10343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10344 done
10345 case $ac_lo in
10346 ?*) ac_cv_sizeof_double=$ac_lo;;
10347 '') if test "$ac_cv_type_double" = yes; then
10348 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10349 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10350 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (double)
10351 See \`config.log' for more details." >&5
10352 $as_echo "$as_me: error: cannot compute sizeof (double)
10353 See \`config.log' for more details." >&2;}
10354 { (exit 77); exit 77; }; }; }
10355 else
10356 ac_cv_sizeof_double=0
10357 fi ;;
10358 esac
10359 else
10360 cat >conftest.$ac_ext <<_ACEOF
10361 /* confdefs.h. */
10362 _ACEOF
10363 cat confdefs.h >>conftest.$ac_ext
10364 cat >>conftest.$ac_ext <<_ACEOF
10365 /* end confdefs.h. */
10366 $ac_includes_default
10367 static long int longval () { return (long int) (sizeof (double)); }
10368 static unsigned long int ulongval () { return (long int) (sizeof (double)); }
10369 #include <stdio.h>
10370 #include <stdlib.h>
10372 main ()
10375 FILE *f = fopen ("conftest.val", "w");
10376 if (! f)
10377 return 1;
10378 if (((long int) (sizeof (double))) < 0)
10380 long int i = longval ();
10381 if (i != ((long int) (sizeof (double))))
10382 return 1;
10383 fprintf (f, "%ld", i);
10385 else
10387 unsigned long int i = ulongval ();
10388 if (i != ((long int) (sizeof (double))))
10389 return 1;
10390 fprintf (f, "%lu", i);
10392 /* Do not output a trailing newline, as this causes \r\n confusion
10393 on some platforms. */
10394 return ferror (f) || fclose (f) != 0;
10397 return 0;
10399 _ACEOF
10400 rm -f conftest$ac_exeext
10401 if { (ac_try="$ac_link"
10402 case "(($ac_try" in
10403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10404 *) ac_try_echo=$ac_try;;
10405 esac
10406 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10407 $as_echo "$ac_try_echo") >&5
10408 (eval "$ac_link") 2>&5
10409 ac_status=$?
10410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10411 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10412 { (case "(($ac_try" in
10413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10414 *) ac_try_echo=$ac_try;;
10415 esac
10416 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10417 $as_echo "$ac_try_echo") >&5
10418 (eval "$ac_try") 2>&5
10419 ac_status=$?
10420 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10421 (exit $ac_status); }; }; then
10422 ac_cv_sizeof_double=`cat conftest.val`
10423 else
10424 $as_echo "$as_me: program exited with status $ac_status" >&5
10425 $as_echo "$as_me: failed program was:" >&5
10426 sed 's/^/| /' conftest.$ac_ext >&5
10428 ( exit $ac_status )
10429 if test "$ac_cv_type_double" = yes; then
10430 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10431 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10432 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (double)
10433 See \`config.log' for more details." >&5
10434 $as_echo "$as_me: error: cannot compute sizeof (double)
10435 See \`config.log' for more details." >&2;}
10436 { (exit 77); exit 77; }; }; }
10437 else
10438 ac_cv_sizeof_double=0
10441 rm -rf conftest.dSYM
10442 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10444 rm -f conftest.val
10446 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
10447 $as_echo "$ac_cv_sizeof_double" >&6; }
10451 cat >>confdefs.h <<_ACEOF
10452 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
10453 _ACEOF
10456 # The cast to long int works around a bug in the HP C Compiler
10457 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10458 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10459 # This bug is HP SR number 8606223364.
10460 { $as_echo "$as_me:$LINENO: checking size of fpos_t" >&5
10461 $as_echo_n "checking size of fpos_t... " >&6; }
10462 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
10463 $as_echo_n "(cached) " >&6
10464 else
10465 if test "$cross_compiling" = yes; then
10466 # Depending upon the size, compute the lo and hi bounds.
10467 cat >conftest.$ac_ext <<_ACEOF
10468 /* confdefs.h. */
10469 _ACEOF
10470 cat confdefs.h >>conftest.$ac_ext
10471 cat >>conftest.$ac_ext <<_ACEOF
10472 /* end confdefs.h. */
10473 $ac_includes_default
10475 main ()
10477 static int test_array [1 - 2 * !(((long int) (sizeof (fpos_t))) >= 0)];
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10491 $as_echo "$ac_try_echo") >&5
10492 (eval "$ac_compile") 2>conftest.er1
10493 ac_status=$?
10494 grep -v '^ *+' conftest.er1 >conftest.err
10495 rm -f conftest.er1
10496 cat conftest.err >&5
10497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10498 (exit $ac_status); } && {
10499 test -z "$ac_c_werror_flag" ||
10500 test ! -s conftest.err
10501 } && test -s conftest.$ac_objext; then
10502 ac_lo=0 ac_mid=0
10503 while :; do
10504 cat >conftest.$ac_ext <<_ACEOF
10505 /* confdefs.h. */
10506 _ACEOF
10507 cat confdefs.h >>conftest.$ac_ext
10508 cat >>conftest.$ac_ext <<_ACEOF
10509 /* end confdefs.h. */
10510 $ac_includes_default
10512 main ()
10514 static int test_array [1 - 2 * !(((long int) (sizeof (fpos_t))) <= $ac_mid)];
10515 test_array [0] = 0
10518 return 0;
10520 _ACEOF
10521 rm -f conftest.$ac_objext
10522 if { (ac_try="$ac_compile"
10523 case "(($ac_try" in
10524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10525 *) ac_try_echo=$ac_try;;
10526 esac
10527 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10528 $as_echo "$ac_try_echo") >&5
10529 (eval "$ac_compile") 2>conftest.er1
10530 ac_status=$?
10531 grep -v '^ *+' conftest.er1 >conftest.err
10532 rm -f conftest.er1
10533 cat conftest.err >&5
10534 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10535 (exit $ac_status); } && {
10536 test -z "$ac_c_werror_flag" ||
10537 test ! -s conftest.err
10538 } && test -s conftest.$ac_objext; then
10539 ac_hi=$ac_mid; break
10540 else
10541 $as_echo "$as_me: failed program was:" >&5
10542 sed 's/^/| /' conftest.$ac_ext >&5
10544 ac_lo=`expr $ac_mid + 1`
10545 if test $ac_lo -le $ac_mid; then
10546 ac_lo= ac_hi=
10547 break
10549 ac_mid=`expr 2 '*' $ac_mid + 1`
10552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10553 done
10554 else
10555 $as_echo "$as_me: failed program was:" >&5
10556 sed 's/^/| /' conftest.$ac_ext >&5
10558 cat >conftest.$ac_ext <<_ACEOF
10559 /* confdefs.h. */
10560 _ACEOF
10561 cat confdefs.h >>conftest.$ac_ext
10562 cat >>conftest.$ac_ext <<_ACEOF
10563 /* end confdefs.h. */
10564 $ac_includes_default
10566 main ()
10568 static int test_array [1 - 2 * !(((long int) (sizeof (fpos_t))) < 0)];
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10582 $as_echo "$ac_try_echo") >&5
10583 (eval "$ac_compile") 2>conftest.er1
10584 ac_status=$?
10585 grep -v '^ *+' conftest.er1 >conftest.err
10586 rm -f conftest.er1
10587 cat conftest.err >&5
10588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10589 (exit $ac_status); } && {
10590 test -z "$ac_c_werror_flag" ||
10591 test ! -s conftest.err
10592 } && test -s conftest.$ac_objext; then
10593 ac_hi=-1 ac_mid=-1
10594 while :; do
10595 cat >conftest.$ac_ext <<_ACEOF
10596 /* confdefs.h. */
10597 _ACEOF
10598 cat confdefs.h >>conftest.$ac_ext
10599 cat >>conftest.$ac_ext <<_ACEOF
10600 /* end confdefs.h. */
10601 $ac_includes_default
10603 main ()
10605 static int test_array [1 - 2 * !(((long int) (sizeof (fpos_t))) >= $ac_mid)];
10606 test_array [0] = 0
10609 return 0;
10611 _ACEOF
10612 rm -f conftest.$ac_objext
10613 if { (ac_try="$ac_compile"
10614 case "(($ac_try" in
10615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10616 *) ac_try_echo=$ac_try;;
10617 esac
10618 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10619 $as_echo "$ac_try_echo") >&5
10620 (eval "$ac_compile") 2>conftest.er1
10621 ac_status=$?
10622 grep -v '^ *+' conftest.er1 >conftest.err
10623 rm -f conftest.er1
10624 cat conftest.err >&5
10625 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10626 (exit $ac_status); } && {
10627 test -z "$ac_c_werror_flag" ||
10628 test ! -s conftest.err
10629 } && test -s conftest.$ac_objext; then
10630 ac_lo=$ac_mid; break
10631 else
10632 $as_echo "$as_me: failed program was:" >&5
10633 sed 's/^/| /' conftest.$ac_ext >&5
10635 ac_hi=`expr '(' $ac_mid ')' - 1`
10636 if test $ac_mid -le $ac_hi; then
10637 ac_lo= ac_hi=
10638 break
10640 ac_mid=`expr 2 '*' $ac_mid`
10643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10644 done
10645 else
10646 $as_echo "$as_me: failed program was:" >&5
10647 sed 's/^/| /' conftest.$ac_ext >&5
10649 ac_lo= ac_hi=
10652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10656 # Binary search between lo and hi bounds.
10657 while test "x$ac_lo" != "x$ac_hi"; do
10658 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10659 cat >conftest.$ac_ext <<_ACEOF
10660 /* confdefs.h. */
10661 _ACEOF
10662 cat confdefs.h >>conftest.$ac_ext
10663 cat >>conftest.$ac_ext <<_ACEOF
10664 /* end confdefs.h. */
10665 $ac_includes_default
10667 main ()
10669 static int test_array [1 - 2 * !(((long int) (sizeof (fpos_t))) <= $ac_mid)];
10670 test_array [0] = 0
10673 return 0;
10675 _ACEOF
10676 rm -f conftest.$ac_objext
10677 if { (ac_try="$ac_compile"
10678 case "(($ac_try" in
10679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10680 *) ac_try_echo=$ac_try;;
10681 esac
10682 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10683 $as_echo "$ac_try_echo") >&5
10684 (eval "$ac_compile") 2>conftest.er1
10685 ac_status=$?
10686 grep -v '^ *+' conftest.er1 >conftest.err
10687 rm -f conftest.er1
10688 cat conftest.err >&5
10689 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690 (exit $ac_status); } && {
10691 test -z "$ac_c_werror_flag" ||
10692 test ! -s conftest.err
10693 } && test -s conftest.$ac_objext; then
10694 ac_hi=$ac_mid
10695 else
10696 $as_echo "$as_me: failed program was:" >&5
10697 sed 's/^/| /' conftest.$ac_ext >&5
10699 ac_lo=`expr '(' $ac_mid ')' + 1`
10702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10703 done
10704 case $ac_lo in
10705 ?*) ac_cv_sizeof_fpos_t=$ac_lo;;
10706 '') if test "$ac_cv_type_fpos_t" = yes; then
10707 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10708 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10709 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
10710 See \`config.log' for more details." >&5
10711 $as_echo "$as_me: error: cannot compute sizeof (fpos_t)
10712 See \`config.log' for more details." >&2;}
10713 { (exit 77); exit 77; }; }; }
10714 else
10715 ac_cv_sizeof_fpos_t=0
10716 fi ;;
10717 esac
10718 else
10719 cat >conftest.$ac_ext <<_ACEOF
10720 /* confdefs.h. */
10721 _ACEOF
10722 cat confdefs.h >>conftest.$ac_ext
10723 cat >>conftest.$ac_ext <<_ACEOF
10724 /* end confdefs.h. */
10725 $ac_includes_default
10726 static long int longval () { return (long int) (sizeof (fpos_t)); }
10727 static unsigned long int ulongval () { return (long int) (sizeof (fpos_t)); }
10728 #include <stdio.h>
10729 #include <stdlib.h>
10731 main ()
10734 FILE *f = fopen ("conftest.val", "w");
10735 if (! f)
10736 return 1;
10737 if (((long int) (sizeof (fpos_t))) < 0)
10739 long int i = longval ();
10740 if (i != ((long int) (sizeof (fpos_t))))
10741 return 1;
10742 fprintf (f, "%ld", i);
10744 else
10746 unsigned long int i = ulongval ();
10747 if (i != ((long int) (sizeof (fpos_t))))
10748 return 1;
10749 fprintf (f, "%lu", i);
10751 /* Do not output a trailing newline, as this causes \r\n confusion
10752 on some platforms. */
10753 return ferror (f) || fclose (f) != 0;
10756 return 0;
10758 _ACEOF
10759 rm -f conftest$ac_exeext
10760 if { (ac_try="$ac_link"
10761 case "(($ac_try" in
10762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10763 *) ac_try_echo=$ac_try;;
10764 esac
10765 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10766 $as_echo "$ac_try_echo") >&5
10767 (eval "$ac_link") 2>&5
10768 ac_status=$?
10769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10770 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10771 { (case "(($ac_try" in
10772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10773 *) ac_try_echo=$ac_try;;
10774 esac
10775 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10776 $as_echo "$ac_try_echo") >&5
10777 (eval "$ac_try") 2>&5
10778 ac_status=$?
10779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10780 (exit $ac_status); }; }; then
10781 ac_cv_sizeof_fpos_t=`cat conftest.val`
10782 else
10783 $as_echo "$as_me: program exited with status $ac_status" >&5
10784 $as_echo "$as_me: failed program was:" >&5
10785 sed 's/^/| /' conftest.$ac_ext >&5
10787 ( exit $ac_status )
10788 if test "$ac_cv_type_fpos_t" = yes; then
10789 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10790 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10791 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
10792 See \`config.log' for more details." >&5
10793 $as_echo "$as_me: error: cannot compute sizeof (fpos_t)
10794 See \`config.log' for more details." >&2;}
10795 { (exit 77); exit 77; }; }; }
10796 else
10797 ac_cv_sizeof_fpos_t=0
10800 rm -rf conftest.dSYM
10801 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10803 rm -f conftest.val
10805 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
10806 $as_echo "$ac_cv_sizeof_fpos_t" >&6; }
10810 cat >>confdefs.h <<_ACEOF
10811 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
10812 _ACEOF
10815 # The cast to long int works around a bug in the HP C Compiler
10816 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10817 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10818 # This bug is HP SR number 8606223364.
10819 { $as_echo "$as_me:$LINENO: checking size of size_t" >&5
10820 $as_echo_n "checking size of size_t... " >&6; }
10821 if test "${ac_cv_sizeof_size_t+set}" = set; then
10822 $as_echo_n "(cached) " >&6
10823 else
10824 if test "$cross_compiling" = yes; then
10825 # Depending upon the size, compute the lo and hi bounds.
10826 cat >conftest.$ac_ext <<_ACEOF
10827 /* confdefs.h. */
10828 _ACEOF
10829 cat confdefs.h >>conftest.$ac_ext
10830 cat >>conftest.$ac_ext <<_ACEOF
10831 /* end confdefs.h. */
10832 $ac_includes_default
10834 main ()
10836 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
10837 test_array [0] = 0
10840 return 0;
10842 _ACEOF
10843 rm -f conftest.$ac_objext
10844 if { (ac_try="$ac_compile"
10845 case "(($ac_try" in
10846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10847 *) ac_try_echo=$ac_try;;
10848 esac
10849 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10850 $as_echo "$ac_try_echo") >&5
10851 (eval "$ac_compile") 2>conftest.er1
10852 ac_status=$?
10853 grep -v '^ *+' conftest.er1 >conftest.err
10854 rm -f conftest.er1
10855 cat conftest.err >&5
10856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10857 (exit $ac_status); } && {
10858 test -z "$ac_c_werror_flag" ||
10859 test ! -s conftest.err
10860 } && test -s conftest.$ac_objext; then
10861 ac_lo=0 ac_mid=0
10862 while :; do
10863 cat >conftest.$ac_ext <<_ACEOF
10864 /* confdefs.h. */
10865 _ACEOF
10866 cat confdefs.h >>conftest.$ac_ext
10867 cat >>conftest.$ac_ext <<_ACEOF
10868 /* end confdefs.h. */
10869 $ac_includes_default
10871 main ()
10873 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
10874 test_array [0] = 0
10877 return 0;
10879 _ACEOF
10880 rm -f conftest.$ac_objext
10881 if { (ac_try="$ac_compile"
10882 case "(($ac_try" in
10883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10884 *) ac_try_echo=$ac_try;;
10885 esac
10886 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10887 $as_echo "$ac_try_echo") >&5
10888 (eval "$ac_compile") 2>conftest.er1
10889 ac_status=$?
10890 grep -v '^ *+' conftest.er1 >conftest.err
10891 rm -f conftest.er1
10892 cat conftest.err >&5
10893 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10894 (exit $ac_status); } && {
10895 test -z "$ac_c_werror_flag" ||
10896 test ! -s conftest.err
10897 } && test -s conftest.$ac_objext; then
10898 ac_hi=$ac_mid; break
10899 else
10900 $as_echo "$as_me: failed program was:" >&5
10901 sed 's/^/| /' conftest.$ac_ext >&5
10903 ac_lo=`expr $ac_mid + 1`
10904 if test $ac_lo -le $ac_mid; then
10905 ac_lo= ac_hi=
10906 break
10908 ac_mid=`expr 2 '*' $ac_mid + 1`
10911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10912 done
10913 else
10914 $as_echo "$as_me: failed program was:" >&5
10915 sed 's/^/| /' conftest.$ac_ext >&5
10917 cat >conftest.$ac_ext <<_ACEOF
10918 /* confdefs.h. */
10919 _ACEOF
10920 cat confdefs.h >>conftest.$ac_ext
10921 cat >>conftest.$ac_ext <<_ACEOF
10922 /* end confdefs.h. */
10923 $ac_includes_default
10925 main ()
10927 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
10928 test_array [0] = 0
10931 return 0;
10933 _ACEOF
10934 rm -f conftest.$ac_objext
10935 if { (ac_try="$ac_compile"
10936 case "(($ac_try" in
10937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10938 *) ac_try_echo=$ac_try;;
10939 esac
10940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10941 $as_echo "$ac_try_echo") >&5
10942 (eval "$ac_compile") 2>conftest.er1
10943 ac_status=$?
10944 grep -v '^ *+' conftest.er1 >conftest.err
10945 rm -f conftest.er1
10946 cat conftest.err >&5
10947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10948 (exit $ac_status); } && {
10949 test -z "$ac_c_werror_flag" ||
10950 test ! -s conftest.err
10951 } && test -s conftest.$ac_objext; then
10952 ac_hi=-1 ac_mid=-1
10953 while :; do
10954 cat >conftest.$ac_ext <<_ACEOF
10955 /* confdefs.h. */
10956 _ACEOF
10957 cat confdefs.h >>conftest.$ac_ext
10958 cat >>conftest.$ac_ext <<_ACEOF
10959 /* end confdefs.h. */
10960 $ac_includes_default
10962 main ()
10964 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
10965 test_array [0] = 0
10968 return 0;
10970 _ACEOF
10971 rm -f conftest.$ac_objext
10972 if { (ac_try="$ac_compile"
10973 case "(($ac_try" in
10974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10975 *) ac_try_echo=$ac_try;;
10976 esac
10977 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10978 $as_echo "$ac_try_echo") >&5
10979 (eval "$ac_compile") 2>conftest.er1
10980 ac_status=$?
10981 grep -v '^ *+' conftest.er1 >conftest.err
10982 rm -f conftest.er1
10983 cat conftest.err >&5
10984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10985 (exit $ac_status); } && {
10986 test -z "$ac_c_werror_flag" ||
10987 test ! -s conftest.err
10988 } && test -s conftest.$ac_objext; then
10989 ac_lo=$ac_mid; break
10990 else
10991 $as_echo "$as_me: failed program was:" >&5
10992 sed 's/^/| /' conftest.$ac_ext >&5
10994 ac_hi=`expr '(' $ac_mid ')' - 1`
10995 if test $ac_mid -le $ac_hi; then
10996 ac_lo= ac_hi=
10997 break
10999 ac_mid=`expr 2 '*' $ac_mid`
11002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11003 done
11004 else
11005 $as_echo "$as_me: failed program was:" >&5
11006 sed 's/^/| /' conftest.$ac_ext >&5
11008 ac_lo= ac_hi=
11011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11015 # Binary search between lo and hi bounds.
11016 while test "x$ac_lo" != "x$ac_hi"; do
11017 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11018 cat >conftest.$ac_ext <<_ACEOF
11019 /* confdefs.h. */
11020 _ACEOF
11021 cat confdefs.h >>conftest.$ac_ext
11022 cat >>conftest.$ac_ext <<_ACEOF
11023 /* end confdefs.h. */
11024 $ac_includes_default
11026 main ()
11028 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
11029 test_array [0] = 0
11032 return 0;
11034 _ACEOF
11035 rm -f conftest.$ac_objext
11036 if { (ac_try="$ac_compile"
11037 case "(($ac_try" in
11038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11039 *) ac_try_echo=$ac_try;;
11040 esac
11041 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11042 $as_echo "$ac_try_echo") >&5
11043 (eval "$ac_compile") 2>conftest.er1
11044 ac_status=$?
11045 grep -v '^ *+' conftest.er1 >conftest.err
11046 rm -f conftest.er1
11047 cat conftest.err >&5
11048 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049 (exit $ac_status); } && {
11050 test -z "$ac_c_werror_flag" ||
11051 test ! -s conftest.err
11052 } && test -s conftest.$ac_objext; then
11053 ac_hi=$ac_mid
11054 else
11055 $as_echo "$as_me: failed program was:" >&5
11056 sed 's/^/| /' conftest.$ac_ext >&5
11058 ac_lo=`expr '(' $ac_mid ')' + 1`
11061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11062 done
11063 case $ac_lo in
11064 ?*) ac_cv_sizeof_size_t=$ac_lo;;
11065 '') if test "$ac_cv_type_size_t" = yes; then
11066 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11067 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11068 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
11069 See \`config.log' for more details." >&5
11070 $as_echo "$as_me: error: cannot compute sizeof (size_t)
11071 See \`config.log' for more details." >&2;}
11072 { (exit 77); exit 77; }; }; }
11073 else
11074 ac_cv_sizeof_size_t=0
11075 fi ;;
11076 esac
11077 else
11078 cat >conftest.$ac_ext <<_ACEOF
11079 /* confdefs.h. */
11080 _ACEOF
11081 cat confdefs.h >>conftest.$ac_ext
11082 cat >>conftest.$ac_ext <<_ACEOF
11083 /* end confdefs.h. */
11084 $ac_includes_default
11085 static long int longval () { return (long int) (sizeof (size_t)); }
11086 static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
11087 #include <stdio.h>
11088 #include <stdlib.h>
11090 main ()
11093 FILE *f = fopen ("conftest.val", "w");
11094 if (! f)
11095 return 1;
11096 if (((long int) (sizeof (size_t))) < 0)
11098 long int i = longval ();
11099 if (i != ((long int) (sizeof (size_t))))
11100 return 1;
11101 fprintf (f, "%ld", i);
11103 else
11105 unsigned long int i = ulongval ();
11106 if (i != ((long int) (sizeof (size_t))))
11107 return 1;
11108 fprintf (f, "%lu", i);
11110 /* Do not output a trailing newline, as this causes \r\n confusion
11111 on some platforms. */
11112 return ferror (f) || fclose (f) != 0;
11115 return 0;
11117 _ACEOF
11118 rm -f conftest$ac_exeext
11119 if { (ac_try="$ac_link"
11120 case "(($ac_try" in
11121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11122 *) ac_try_echo=$ac_try;;
11123 esac
11124 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11125 $as_echo "$ac_try_echo") >&5
11126 (eval "$ac_link") 2>&5
11127 ac_status=$?
11128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11130 { (case "(($ac_try" in
11131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11132 *) ac_try_echo=$ac_try;;
11133 esac
11134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11135 $as_echo "$ac_try_echo") >&5
11136 (eval "$ac_try") 2>&5
11137 ac_status=$?
11138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11139 (exit $ac_status); }; }; then
11140 ac_cv_sizeof_size_t=`cat conftest.val`
11141 else
11142 $as_echo "$as_me: program exited with status $ac_status" >&5
11143 $as_echo "$as_me: failed program was:" >&5
11144 sed 's/^/| /' conftest.$ac_ext >&5
11146 ( exit $ac_status )
11147 if test "$ac_cv_type_size_t" = yes; then
11148 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11149 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11150 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
11151 See \`config.log' for more details." >&5
11152 $as_echo "$as_me: error: cannot compute sizeof (size_t)
11153 See \`config.log' for more details." >&2;}
11154 { (exit 77); exit 77; }; }; }
11155 else
11156 ac_cv_sizeof_size_t=0
11159 rm -rf conftest.dSYM
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 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
11165 $as_echo "$ac_cv_sizeof_size_t" >&6; }
11169 cat >>confdefs.h <<_ACEOF
11170 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
11171 _ACEOF
11174 # The cast to long int works around a bug in the HP C Compiler
11175 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11176 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11177 # This bug is HP SR number 8606223364.
11178 { $as_echo "$as_me:$LINENO: checking size of pid_t" >&5
11179 $as_echo_n "checking size of pid_t... " >&6; }
11180 if test "${ac_cv_sizeof_pid_t+set}" = set; then
11181 $as_echo_n "(cached) " >&6
11182 else
11183 if test "$cross_compiling" = yes; then
11184 # Depending upon the size, compute the lo and hi bounds.
11185 cat >conftest.$ac_ext <<_ACEOF
11186 /* confdefs.h. */
11187 _ACEOF
11188 cat confdefs.h >>conftest.$ac_ext
11189 cat >>conftest.$ac_ext <<_ACEOF
11190 /* end confdefs.h. */
11191 $ac_includes_default
11193 main ()
11195 static int test_array [1 - 2 * !(((long int) (sizeof (pid_t))) >= 0)];
11196 test_array [0] = 0
11199 return 0;
11201 _ACEOF
11202 rm -f conftest.$ac_objext
11203 if { (ac_try="$ac_compile"
11204 case "(($ac_try" in
11205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11206 *) ac_try_echo=$ac_try;;
11207 esac
11208 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11209 $as_echo "$ac_try_echo") >&5
11210 (eval "$ac_compile") 2>conftest.er1
11211 ac_status=$?
11212 grep -v '^ *+' conftest.er1 >conftest.err
11213 rm -f conftest.er1
11214 cat conftest.err >&5
11215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11216 (exit $ac_status); } && {
11217 test -z "$ac_c_werror_flag" ||
11218 test ! -s conftest.err
11219 } && test -s conftest.$ac_objext; then
11220 ac_lo=0 ac_mid=0
11221 while :; do
11222 cat >conftest.$ac_ext <<_ACEOF
11223 /* confdefs.h. */
11224 _ACEOF
11225 cat confdefs.h >>conftest.$ac_ext
11226 cat >>conftest.$ac_ext <<_ACEOF
11227 /* end confdefs.h. */
11228 $ac_includes_default
11230 main ()
11232 static int test_array [1 - 2 * !(((long int) (sizeof (pid_t))) <= $ac_mid)];
11233 test_array [0] = 0
11236 return 0;
11238 _ACEOF
11239 rm -f conftest.$ac_objext
11240 if { (ac_try="$ac_compile"
11241 case "(($ac_try" in
11242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11243 *) ac_try_echo=$ac_try;;
11244 esac
11245 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11246 $as_echo "$ac_try_echo") >&5
11247 (eval "$ac_compile") 2>conftest.er1
11248 ac_status=$?
11249 grep -v '^ *+' conftest.er1 >conftest.err
11250 rm -f conftest.er1
11251 cat conftest.err >&5
11252 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11253 (exit $ac_status); } && {
11254 test -z "$ac_c_werror_flag" ||
11255 test ! -s conftest.err
11256 } && test -s conftest.$ac_objext; then
11257 ac_hi=$ac_mid; break
11258 else
11259 $as_echo "$as_me: failed program was:" >&5
11260 sed 's/^/| /' conftest.$ac_ext >&5
11262 ac_lo=`expr $ac_mid + 1`
11263 if test $ac_lo -le $ac_mid; then
11264 ac_lo= ac_hi=
11265 break
11267 ac_mid=`expr 2 '*' $ac_mid + 1`
11270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11271 done
11272 else
11273 $as_echo "$as_me: failed program was:" >&5
11274 sed 's/^/| /' conftest.$ac_ext >&5
11276 cat >conftest.$ac_ext <<_ACEOF
11277 /* confdefs.h. */
11278 _ACEOF
11279 cat confdefs.h >>conftest.$ac_ext
11280 cat >>conftest.$ac_ext <<_ACEOF
11281 /* end confdefs.h. */
11282 $ac_includes_default
11284 main ()
11286 static int test_array [1 - 2 * !(((long int) (sizeof (pid_t))) < 0)];
11287 test_array [0] = 0
11290 return 0;
11292 _ACEOF
11293 rm -f conftest.$ac_objext
11294 if { (ac_try="$ac_compile"
11295 case "(($ac_try" in
11296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11297 *) ac_try_echo=$ac_try;;
11298 esac
11299 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11300 $as_echo "$ac_try_echo") >&5
11301 (eval "$ac_compile") 2>conftest.er1
11302 ac_status=$?
11303 grep -v '^ *+' conftest.er1 >conftest.err
11304 rm -f conftest.er1
11305 cat conftest.err >&5
11306 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11307 (exit $ac_status); } && {
11308 test -z "$ac_c_werror_flag" ||
11309 test ! -s conftest.err
11310 } && test -s conftest.$ac_objext; then
11311 ac_hi=-1 ac_mid=-1
11312 while :; do
11313 cat >conftest.$ac_ext <<_ACEOF
11314 /* confdefs.h. */
11315 _ACEOF
11316 cat confdefs.h >>conftest.$ac_ext
11317 cat >>conftest.$ac_ext <<_ACEOF
11318 /* end confdefs.h. */
11319 $ac_includes_default
11321 main ()
11323 static int test_array [1 - 2 * !(((long int) (sizeof (pid_t))) >= $ac_mid)];
11324 test_array [0] = 0
11327 return 0;
11329 _ACEOF
11330 rm -f conftest.$ac_objext
11331 if { (ac_try="$ac_compile"
11332 case "(($ac_try" in
11333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11334 *) ac_try_echo=$ac_try;;
11335 esac
11336 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11337 $as_echo "$ac_try_echo") >&5
11338 (eval "$ac_compile") 2>conftest.er1
11339 ac_status=$?
11340 grep -v '^ *+' conftest.er1 >conftest.err
11341 rm -f conftest.er1
11342 cat conftest.err >&5
11343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11344 (exit $ac_status); } && {
11345 test -z "$ac_c_werror_flag" ||
11346 test ! -s conftest.err
11347 } && test -s conftest.$ac_objext; then
11348 ac_lo=$ac_mid; break
11349 else
11350 $as_echo "$as_me: failed program was:" >&5
11351 sed 's/^/| /' conftest.$ac_ext >&5
11353 ac_hi=`expr '(' $ac_mid ')' - 1`
11354 if test $ac_mid -le $ac_hi; then
11355 ac_lo= ac_hi=
11356 break
11358 ac_mid=`expr 2 '*' $ac_mid`
11361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11362 done
11363 else
11364 $as_echo "$as_me: failed program was:" >&5
11365 sed 's/^/| /' conftest.$ac_ext >&5
11367 ac_lo= ac_hi=
11370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11374 # Binary search between lo and hi bounds.
11375 while test "x$ac_lo" != "x$ac_hi"; do
11376 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11377 cat >conftest.$ac_ext <<_ACEOF
11378 /* confdefs.h. */
11379 _ACEOF
11380 cat confdefs.h >>conftest.$ac_ext
11381 cat >>conftest.$ac_ext <<_ACEOF
11382 /* end confdefs.h. */
11383 $ac_includes_default
11385 main ()
11387 static int test_array [1 - 2 * !(((long int) (sizeof (pid_t))) <= $ac_mid)];
11388 test_array [0] = 0
11391 return 0;
11393 _ACEOF
11394 rm -f conftest.$ac_objext
11395 if { (ac_try="$ac_compile"
11396 case "(($ac_try" in
11397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11398 *) ac_try_echo=$ac_try;;
11399 esac
11400 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11401 $as_echo "$ac_try_echo") >&5
11402 (eval "$ac_compile") 2>conftest.er1
11403 ac_status=$?
11404 grep -v '^ *+' conftest.er1 >conftest.err
11405 rm -f conftest.er1
11406 cat conftest.err >&5
11407 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11408 (exit $ac_status); } && {
11409 test -z "$ac_c_werror_flag" ||
11410 test ! -s conftest.err
11411 } && test -s conftest.$ac_objext; then
11412 ac_hi=$ac_mid
11413 else
11414 $as_echo "$as_me: failed program was:" >&5
11415 sed 's/^/| /' conftest.$ac_ext >&5
11417 ac_lo=`expr '(' $ac_mid ')' + 1`
11420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11421 done
11422 case $ac_lo in
11423 ?*) ac_cv_sizeof_pid_t=$ac_lo;;
11424 '') if test "$ac_cv_type_pid_t" = yes; then
11425 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11426 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11427 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
11428 See \`config.log' for more details." >&5
11429 $as_echo "$as_me: error: cannot compute sizeof (pid_t)
11430 See \`config.log' for more details." >&2;}
11431 { (exit 77); exit 77; }; }; }
11432 else
11433 ac_cv_sizeof_pid_t=0
11434 fi ;;
11435 esac
11436 else
11437 cat >conftest.$ac_ext <<_ACEOF
11438 /* confdefs.h. */
11439 _ACEOF
11440 cat confdefs.h >>conftest.$ac_ext
11441 cat >>conftest.$ac_ext <<_ACEOF
11442 /* end confdefs.h. */
11443 $ac_includes_default
11444 static long int longval () { return (long int) (sizeof (pid_t)); }
11445 static unsigned long int ulongval () { return (long int) (sizeof (pid_t)); }
11446 #include <stdio.h>
11447 #include <stdlib.h>
11449 main ()
11452 FILE *f = fopen ("conftest.val", "w");
11453 if (! f)
11454 return 1;
11455 if (((long int) (sizeof (pid_t))) < 0)
11457 long int i = longval ();
11458 if (i != ((long int) (sizeof (pid_t))))
11459 return 1;
11460 fprintf (f, "%ld", i);
11462 else
11464 unsigned long int i = ulongval ();
11465 if (i != ((long int) (sizeof (pid_t))))
11466 return 1;
11467 fprintf (f, "%lu", i);
11469 /* Do not output a trailing newline, as this causes \r\n confusion
11470 on some platforms. */
11471 return ferror (f) || fclose (f) != 0;
11474 return 0;
11476 _ACEOF
11477 rm -f conftest$ac_exeext
11478 if { (ac_try="$ac_link"
11479 case "(($ac_try" in
11480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11481 *) ac_try_echo=$ac_try;;
11482 esac
11483 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11484 $as_echo "$ac_try_echo") >&5
11485 (eval "$ac_link") 2>&5
11486 ac_status=$?
11487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11488 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11489 { (case "(($ac_try" in
11490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11491 *) ac_try_echo=$ac_try;;
11492 esac
11493 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11494 $as_echo "$ac_try_echo") >&5
11495 (eval "$ac_try") 2>&5
11496 ac_status=$?
11497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11498 (exit $ac_status); }; }; then
11499 ac_cv_sizeof_pid_t=`cat conftest.val`
11500 else
11501 $as_echo "$as_me: program exited with status $ac_status" >&5
11502 $as_echo "$as_me: failed program was:" >&5
11503 sed 's/^/| /' conftest.$ac_ext >&5
11505 ( exit $ac_status )
11506 if test "$ac_cv_type_pid_t" = yes; then
11507 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11508 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11509 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
11510 See \`config.log' for more details." >&5
11511 $as_echo "$as_me: error: cannot compute sizeof (pid_t)
11512 See \`config.log' for more details." >&2;}
11513 { (exit 77); exit 77; }; }; }
11514 else
11515 ac_cv_sizeof_pid_t=0
11518 rm -rf conftest.dSYM
11519 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11521 rm -f conftest.val
11523 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_pid_t" >&5
11524 $as_echo "$ac_cv_sizeof_pid_t" >&6; }
11528 cat >>confdefs.h <<_ACEOF
11529 #define SIZEOF_PID_T $ac_cv_sizeof_pid_t
11530 _ACEOF
11534 { $as_echo "$as_me:$LINENO: checking for long long support" >&5
11535 $as_echo_n "checking for long long support... " >&6; }
11536 have_long_long=no
11537 cat >conftest.$ac_ext <<_ACEOF
11538 /* confdefs.h. */
11539 _ACEOF
11540 cat confdefs.h >>conftest.$ac_ext
11541 cat >>conftest.$ac_ext <<_ACEOF
11542 /* end confdefs.h. */
11545 main ()
11547 long long x; x = (long long)0;
11549 return 0;
11551 _ACEOF
11552 rm -f conftest.$ac_objext
11553 if { (ac_try="$ac_compile"
11554 case "(($ac_try" in
11555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11556 *) ac_try_echo=$ac_try;;
11557 esac
11558 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11559 $as_echo "$ac_try_echo") >&5
11560 (eval "$ac_compile") 2>conftest.er1
11561 ac_status=$?
11562 grep -v '^ *+' conftest.er1 >conftest.err
11563 rm -f conftest.er1
11564 cat conftest.err >&5
11565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566 (exit $ac_status); } && {
11567 test -z "$ac_c_werror_flag" ||
11568 test ! -s conftest.err
11569 } && test -s conftest.$ac_objext; then
11572 cat >>confdefs.h <<\_ACEOF
11573 #define HAVE_LONG_LONG 1
11574 _ACEOF
11576 have_long_long=yes
11578 else
11579 $as_echo "$as_me: failed program was:" >&5
11580 sed 's/^/| /' conftest.$ac_ext >&5
11585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11586 { $as_echo "$as_me:$LINENO: result: $have_long_long" >&5
11587 $as_echo "$have_long_long" >&6; }
11588 if test "$have_long_long" = yes ; then
11589 # The cast to long int works around a bug in the HP C Compiler
11590 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11591 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11592 # This bug is HP SR number 8606223364.
11593 { $as_echo "$as_me:$LINENO: checking size of long long" >&5
11594 $as_echo_n "checking size of long long... " >&6; }
11595 if test "${ac_cv_sizeof_long_long+set}" = set; then
11596 $as_echo_n "(cached) " >&6
11597 else
11598 if test "$cross_compiling" = yes; then
11599 # Depending upon the size, compute the lo and hi bounds.
11600 cat >conftest.$ac_ext <<_ACEOF
11601 /* confdefs.h. */
11602 _ACEOF
11603 cat confdefs.h >>conftest.$ac_ext
11604 cat >>conftest.$ac_ext <<_ACEOF
11605 /* end confdefs.h. */
11606 $ac_includes_default
11608 main ()
11610 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= 0)];
11611 test_array [0] = 0
11614 return 0;
11616 _ACEOF
11617 rm -f conftest.$ac_objext
11618 if { (ac_try="$ac_compile"
11619 case "(($ac_try" in
11620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11621 *) ac_try_echo=$ac_try;;
11622 esac
11623 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11624 $as_echo "$ac_try_echo") >&5
11625 (eval "$ac_compile") 2>conftest.er1
11626 ac_status=$?
11627 grep -v '^ *+' conftest.er1 >conftest.err
11628 rm -f conftest.er1
11629 cat conftest.err >&5
11630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11631 (exit $ac_status); } && {
11632 test -z "$ac_c_werror_flag" ||
11633 test ! -s conftest.err
11634 } && test -s conftest.$ac_objext; then
11635 ac_lo=0 ac_mid=0
11636 while :; do
11637 cat >conftest.$ac_ext <<_ACEOF
11638 /* confdefs.h. */
11639 _ACEOF
11640 cat confdefs.h >>conftest.$ac_ext
11641 cat >>conftest.$ac_ext <<_ACEOF
11642 /* end confdefs.h. */
11643 $ac_includes_default
11645 main ()
11647 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
11648 test_array [0] = 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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11661 $as_echo "$ac_try_echo") >&5
11662 (eval "$ac_compile") 2>conftest.er1
11663 ac_status=$?
11664 grep -v '^ *+' conftest.er1 >conftest.err
11665 rm -f conftest.er1
11666 cat conftest.err >&5
11667 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11668 (exit $ac_status); } && {
11669 test -z "$ac_c_werror_flag" ||
11670 test ! -s conftest.err
11671 } && test -s conftest.$ac_objext; then
11672 ac_hi=$ac_mid; break
11673 else
11674 $as_echo "$as_me: failed program was:" >&5
11675 sed 's/^/| /' conftest.$ac_ext >&5
11677 ac_lo=`expr $ac_mid + 1`
11678 if test $ac_lo -le $ac_mid; then
11679 ac_lo= ac_hi=
11680 break
11682 ac_mid=`expr 2 '*' $ac_mid + 1`
11685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11686 done
11687 else
11688 $as_echo "$as_me: failed program was:" >&5
11689 sed 's/^/| /' conftest.$ac_ext >&5
11691 cat >conftest.$ac_ext <<_ACEOF
11692 /* confdefs.h. */
11693 _ACEOF
11694 cat confdefs.h >>conftest.$ac_ext
11695 cat >>conftest.$ac_ext <<_ACEOF
11696 /* end confdefs.h. */
11697 $ac_includes_default
11699 main ()
11701 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) < 0)];
11702 test_array [0] = 0
11705 return 0;
11707 _ACEOF
11708 rm -f conftest.$ac_objext
11709 if { (ac_try="$ac_compile"
11710 case "(($ac_try" in
11711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11712 *) ac_try_echo=$ac_try;;
11713 esac
11714 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11715 $as_echo "$ac_try_echo") >&5
11716 (eval "$ac_compile") 2>conftest.er1
11717 ac_status=$?
11718 grep -v '^ *+' conftest.er1 >conftest.err
11719 rm -f conftest.er1
11720 cat conftest.err >&5
11721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11722 (exit $ac_status); } && {
11723 test -z "$ac_c_werror_flag" ||
11724 test ! -s conftest.err
11725 } && test -s conftest.$ac_objext; then
11726 ac_hi=-1 ac_mid=-1
11727 while :; do
11728 cat >conftest.$ac_ext <<_ACEOF
11729 /* confdefs.h. */
11730 _ACEOF
11731 cat confdefs.h >>conftest.$ac_ext
11732 cat >>conftest.$ac_ext <<_ACEOF
11733 /* end confdefs.h. */
11734 $ac_includes_default
11736 main ()
11738 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= $ac_mid)];
11739 test_array [0] = 0
11742 return 0;
11744 _ACEOF
11745 rm -f conftest.$ac_objext
11746 if { (ac_try="$ac_compile"
11747 case "(($ac_try" in
11748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11749 *) ac_try_echo=$ac_try;;
11750 esac
11751 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11752 $as_echo "$ac_try_echo") >&5
11753 (eval "$ac_compile") 2>conftest.er1
11754 ac_status=$?
11755 grep -v '^ *+' conftest.er1 >conftest.err
11756 rm -f conftest.er1
11757 cat conftest.err >&5
11758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11759 (exit $ac_status); } && {
11760 test -z "$ac_c_werror_flag" ||
11761 test ! -s conftest.err
11762 } && test -s conftest.$ac_objext; then
11763 ac_lo=$ac_mid; break
11764 else
11765 $as_echo "$as_me: failed program was:" >&5
11766 sed 's/^/| /' conftest.$ac_ext >&5
11768 ac_hi=`expr '(' $ac_mid ')' - 1`
11769 if test $ac_mid -le $ac_hi; then
11770 ac_lo= ac_hi=
11771 break
11773 ac_mid=`expr 2 '*' $ac_mid`
11776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11777 done
11778 else
11779 $as_echo "$as_me: failed program was:" >&5
11780 sed 's/^/| /' conftest.$ac_ext >&5
11782 ac_lo= ac_hi=
11785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11789 # Binary search between lo and hi bounds.
11790 while test "x$ac_lo" != "x$ac_hi"; do
11791 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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
11800 main ()
11802 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
11803 test_array [0] = 0
11806 return 0;
11808 _ACEOF
11809 rm -f conftest.$ac_objext
11810 if { (ac_try="$ac_compile"
11811 case "(($ac_try" in
11812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11813 *) ac_try_echo=$ac_try;;
11814 esac
11815 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11816 $as_echo "$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 $as_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
11828 else
11829 $as_echo "$as_me: failed program was:" >&5
11830 sed 's/^/| /' conftest.$ac_ext >&5
11832 ac_lo=`expr '(' $ac_mid ')' + 1`
11835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11836 done
11837 case $ac_lo in
11838 ?*) ac_cv_sizeof_long_long=$ac_lo;;
11839 '') if test "$ac_cv_type_long_long" = yes; then
11840 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11841 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11842 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
11843 See \`config.log' for more details." >&5
11844 $as_echo "$as_me: error: cannot compute sizeof (long long)
11845 See \`config.log' for more details." >&2;}
11846 { (exit 77); exit 77; }; }; }
11847 else
11848 ac_cv_sizeof_long_long=0
11849 fi ;;
11850 esac
11851 else
11852 cat >conftest.$ac_ext <<_ACEOF
11853 /* confdefs.h. */
11854 _ACEOF
11855 cat confdefs.h >>conftest.$ac_ext
11856 cat >>conftest.$ac_ext <<_ACEOF
11857 /* end confdefs.h. */
11858 $ac_includes_default
11859 static long int longval () { return (long int) (sizeof (long long)); }
11860 static unsigned long int ulongval () { return (long int) (sizeof (long long)); }
11861 #include <stdio.h>
11862 #include <stdlib.h>
11864 main ()
11867 FILE *f = fopen ("conftest.val", "w");
11868 if (! f)
11869 return 1;
11870 if (((long int) (sizeof (long long))) < 0)
11872 long int i = longval ();
11873 if (i != ((long int) (sizeof (long long))))
11874 return 1;
11875 fprintf (f, "%ld", i);
11877 else
11879 unsigned long int i = ulongval ();
11880 if (i != ((long int) (sizeof (long long))))
11881 return 1;
11882 fprintf (f, "%lu", i);
11884 /* Do not output a trailing newline, as this causes \r\n confusion
11885 on some platforms. */
11886 return ferror (f) || fclose (f) != 0;
11889 return 0;
11891 _ACEOF
11892 rm -f conftest$ac_exeext
11893 if { (ac_try="$ac_link"
11894 case "(($ac_try" in
11895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11896 *) ac_try_echo=$ac_try;;
11897 esac
11898 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11899 $as_echo "$ac_try_echo") >&5
11900 (eval "$ac_link") 2>&5
11901 ac_status=$?
11902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11903 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11904 { (case "(($ac_try" in
11905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11906 *) ac_try_echo=$ac_try;;
11907 esac
11908 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11909 $as_echo "$ac_try_echo") >&5
11910 (eval "$ac_try") 2>&5
11911 ac_status=$?
11912 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913 (exit $ac_status); }; }; then
11914 ac_cv_sizeof_long_long=`cat conftest.val`
11915 else
11916 $as_echo "$as_me: program exited with status $ac_status" >&5
11917 $as_echo "$as_me: failed program was:" >&5
11918 sed 's/^/| /' conftest.$ac_ext >&5
11920 ( exit $ac_status )
11921 if test "$ac_cv_type_long_long" = yes; then
11922 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11923 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11924 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
11925 See \`config.log' for more details." >&5
11926 $as_echo "$as_me: error: cannot compute sizeof (long long)
11927 See \`config.log' for more details." >&2;}
11928 { (exit 77); exit 77; }; }; }
11929 else
11930 ac_cv_sizeof_long_long=0
11933 rm -rf conftest.dSYM
11934 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11936 rm -f conftest.val
11938 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
11939 $as_echo "$ac_cv_sizeof_long_long" >&6; }
11943 cat >>confdefs.h <<_ACEOF
11944 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11945 _ACEOF
11950 { $as_echo "$as_me:$LINENO: checking for long double support" >&5
11951 $as_echo_n "checking for long double support... " >&6; }
11952 have_long_double=no
11953 cat >conftest.$ac_ext <<_ACEOF
11954 /* confdefs.h. */
11955 _ACEOF
11956 cat confdefs.h >>conftest.$ac_ext
11957 cat >>conftest.$ac_ext <<_ACEOF
11958 /* end confdefs.h. */
11961 main ()
11963 long double x; x = (long double)0.;
11965 return 0;
11967 _ACEOF
11968 rm -f conftest.$ac_objext
11969 if { (ac_try="$ac_compile"
11970 case "(($ac_try" in
11971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11972 *) ac_try_echo=$ac_try;;
11973 esac
11974 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11975 $as_echo "$ac_try_echo") >&5
11976 (eval "$ac_compile") 2>conftest.er1
11977 ac_status=$?
11978 grep -v '^ *+' conftest.er1 >conftest.err
11979 rm -f conftest.er1
11980 cat conftest.err >&5
11981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11982 (exit $ac_status); } && {
11983 test -z "$ac_c_werror_flag" ||
11984 test ! -s conftest.err
11985 } && test -s conftest.$ac_objext; then
11988 cat >>confdefs.h <<\_ACEOF
11989 #define HAVE_LONG_DOUBLE 1
11990 _ACEOF
11992 have_long_double=yes
11994 else
11995 $as_echo "$as_me: failed program was:" >&5
11996 sed 's/^/| /' conftest.$ac_ext >&5
12001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12002 { $as_echo "$as_me:$LINENO: result: $have_long_double" >&5
12003 $as_echo "$have_long_double" >&6; }
12004 if test "$have_long_double" = yes ; then
12005 # The cast to long int works around a bug in the HP C Compiler
12006 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12007 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12008 # This bug is HP SR number 8606223364.
12009 { $as_echo "$as_me:$LINENO: checking size of long double" >&5
12010 $as_echo_n "checking size of long double... " >&6; }
12011 if test "${ac_cv_sizeof_long_double+set}" = set; then
12012 $as_echo_n "(cached) " >&6
12013 else
12014 if test "$cross_compiling" = yes; then
12015 # Depending upon the size, compute the lo and hi bounds.
12016 cat >conftest.$ac_ext <<_ACEOF
12017 /* confdefs.h. */
12018 _ACEOF
12019 cat confdefs.h >>conftest.$ac_ext
12020 cat >>conftest.$ac_ext <<_ACEOF
12021 /* end confdefs.h. */
12022 $ac_includes_default
12024 main ()
12026 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) >= 0)];
12027 test_array [0] = 0
12030 return 0;
12032 _ACEOF
12033 rm -f conftest.$ac_objext
12034 if { (ac_try="$ac_compile"
12035 case "(($ac_try" in
12036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12037 *) ac_try_echo=$ac_try;;
12038 esac
12039 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12040 $as_echo "$ac_try_echo") >&5
12041 (eval "$ac_compile") 2>conftest.er1
12042 ac_status=$?
12043 grep -v '^ *+' conftest.er1 >conftest.err
12044 rm -f conftest.er1
12045 cat conftest.err >&5
12046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047 (exit $ac_status); } && {
12048 test -z "$ac_c_werror_flag" ||
12049 test ! -s conftest.err
12050 } && test -s conftest.$ac_objext; then
12051 ac_lo=0 ac_mid=0
12052 while :; do
12053 cat >conftest.$ac_ext <<_ACEOF
12054 /* confdefs.h. */
12055 _ACEOF
12056 cat confdefs.h >>conftest.$ac_ext
12057 cat >>conftest.$ac_ext <<_ACEOF
12058 /* end confdefs.h. */
12059 $ac_includes_default
12061 main ()
12063 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) <= $ac_mid)];
12064 test_array [0] = 0
12067 return 0;
12069 _ACEOF
12070 rm -f conftest.$ac_objext
12071 if { (ac_try="$ac_compile"
12072 case "(($ac_try" in
12073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12074 *) ac_try_echo=$ac_try;;
12075 esac
12076 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12077 $as_echo "$ac_try_echo") >&5
12078 (eval "$ac_compile") 2>conftest.er1
12079 ac_status=$?
12080 grep -v '^ *+' conftest.er1 >conftest.err
12081 rm -f conftest.er1
12082 cat conftest.err >&5
12083 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12084 (exit $ac_status); } && {
12085 test -z "$ac_c_werror_flag" ||
12086 test ! -s conftest.err
12087 } && test -s conftest.$ac_objext; then
12088 ac_hi=$ac_mid; break
12089 else
12090 $as_echo "$as_me: failed program was:" >&5
12091 sed 's/^/| /' conftest.$ac_ext >&5
12093 ac_lo=`expr $ac_mid + 1`
12094 if test $ac_lo -le $ac_mid; then
12095 ac_lo= ac_hi=
12096 break
12098 ac_mid=`expr 2 '*' $ac_mid + 1`
12101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12102 done
12103 else
12104 $as_echo "$as_me: failed program was:" >&5
12105 sed 's/^/| /' conftest.$ac_ext >&5
12107 cat >conftest.$ac_ext <<_ACEOF
12108 /* confdefs.h. */
12109 _ACEOF
12110 cat confdefs.h >>conftest.$ac_ext
12111 cat >>conftest.$ac_ext <<_ACEOF
12112 /* end confdefs.h. */
12113 $ac_includes_default
12115 main ()
12117 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) < 0)];
12118 test_array [0] = 0
12121 return 0;
12123 _ACEOF
12124 rm -f conftest.$ac_objext
12125 if { (ac_try="$ac_compile"
12126 case "(($ac_try" in
12127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12128 *) ac_try_echo=$ac_try;;
12129 esac
12130 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12131 $as_echo "$ac_try_echo") >&5
12132 (eval "$ac_compile") 2>conftest.er1
12133 ac_status=$?
12134 grep -v '^ *+' conftest.er1 >conftest.err
12135 rm -f conftest.er1
12136 cat conftest.err >&5
12137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12138 (exit $ac_status); } && {
12139 test -z "$ac_c_werror_flag" ||
12140 test ! -s conftest.err
12141 } && test -s conftest.$ac_objext; then
12142 ac_hi=-1 ac_mid=-1
12143 while :; do
12144 cat >conftest.$ac_ext <<_ACEOF
12145 /* confdefs.h. */
12146 _ACEOF
12147 cat confdefs.h >>conftest.$ac_ext
12148 cat >>conftest.$ac_ext <<_ACEOF
12149 /* end confdefs.h. */
12150 $ac_includes_default
12152 main ()
12154 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) >= $ac_mid)];
12155 test_array [0] = 0
12158 return 0;
12160 _ACEOF
12161 rm -f conftest.$ac_objext
12162 if { (ac_try="$ac_compile"
12163 case "(($ac_try" in
12164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12165 *) ac_try_echo=$ac_try;;
12166 esac
12167 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12168 $as_echo "$ac_try_echo") >&5
12169 (eval "$ac_compile") 2>conftest.er1
12170 ac_status=$?
12171 grep -v '^ *+' conftest.er1 >conftest.err
12172 rm -f conftest.er1
12173 cat conftest.err >&5
12174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12175 (exit $ac_status); } && {
12176 test -z "$ac_c_werror_flag" ||
12177 test ! -s conftest.err
12178 } && test -s conftest.$ac_objext; then
12179 ac_lo=$ac_mid; break
12180 else
12181 $as_echo "$as_me: failed program was:" >&5
12182 sed 's/^/| /' conftest.$ac_ext >&5
12184 ac_hi=`expr '(' $ac_mid ')' - 1`
12185 if test $ac_mid -le $ac_hi; then
12186 ac_lo= ac_hi=
12187 break
12189 ac_mid=`expr 2 '*' $ac_mid`
12192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12193 done
12194 else
12195 $as_echo "$as_me: failed program was:" >&5
12196 sed 's/^/| /' conftest.$ac_ext >&5
12198 ac_lo= ac_hi=
12201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12205 # Binary search between lo and hi bounds.
12206 while test "x$ac_lo" != "x$ac_hi"; do
12207 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12208 cat >conftest.$ac_ext <<_ACEOF
12209 /* confdefs.h. */
12210 _ACEOF
12211 cat confdefs.h >>conftest.$ac_ext
12212 cat >>conftest.$ac_ext <<_ACEOF
12213 /* end confdefs.h. */
12214 $ac_includes_default
12216 main ()
12218 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) <= $ac_mid)];
12219 test_array [0] = 0
12222 return 0;
12224 _ACEOF
12225 rm -f conftest.$ac_objext
12226 if { (ac_try="$ac_compile"
12227 case "(($ac_try" in
12228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12229 *) ac_try_echo=$ac_try;;
12230 esac
12231 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12232 $as_echo "$ac_try_echo") >&5
12233 (eval "$ac_compile") 2>conftest.er1
12234 ac_status=$?
12235 grep -v '^ *+' conftest.er1 >conftest.err
12236 rm -f conftest.er1
12237 cat conftest.err >&5
12238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12239 (exit $ac_status); } && {
12240 test -z "$ac_c_werror_flag" ||
12241 test ! -s conftest.err
12242 } && test -s conftest.$ac_objext; then
12243 ac_hi=$ac_mid
12244 else
12245 $as_echo "$as_me: failed program was:" >&5
12246 sed 's/^/| /' conftest.$ac_ext >&5
12248 ac_lo=`expr '(' $ac_mid ')' + 1`
12251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12252 done
12253 case $ac_lo in
12254 ?*) ac_cv_sizeof_long_double=$ac_lo;;
12255 '') if test "$ac_cv_type_long_double" = yes; then
12256 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12257 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12258 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
12259 See \`config.log' for more details." >&5
12260 $as_echo "$as_me: error: cannot compute sizeof (long double)
12261 See \`config.log' for more details." >&2;}
12262 { (exit 77); exit 77; }; }; }
12263 else
12264 ac_cv_sizeof_long_double=0
12265 fi ;;
12266 esac
12267 else
12268 cat >conftest.$ac_ext <<_ACEOF
12269 /* confdefs.h. */
12270 _ACEOF
12271 cat confdefs.h >>conftest.$ac_ext
12272 cat >>conftest.$ac_ext <<_ACEOF
12273 /* end confdefs.h. */
12274 $ac_includes_default
12275 static long int longval () { return (long int) (sizeof (long double)); }
12276 static unsigned long int ulongval () { return (long int) (sizeof (long double)); }
12277 #include <stdio.h>
12278 #include <stdlib.h>
12280 main ()
12283 FILE *f = fopen ("conftest.val", "w");
12284 if (! f)
12285 return 1;
12286 if (((long int) (sizeof (long double))) < 0)
12288 long int i = longval ();
12289 if (i != ((long int) (sizeof (long double))))
12290 return 1;
12291 fprintf (f, "%ld", i);
12293 else
12295 unsigned long int i = ulongval ();
12296 if (i != ((long int) (sizeof (long double))))
12297 return 1;
12298 fprintf (f, "%lu", i);
12300 /* Do not output a trailing newline, as this causes \r\n confusion
12301 on some platforms. */
12302 return ferror (f) || fclose (f) != 0;
12305 return 0;
12307 _ACEOF
12308 rm -f conftest$ac_exeext
12309 if { (ac_try="$ac_link"
12310 case "(($ac_try" in
12311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12312 *) ac_try_echo=$ac_try;;
12313 esac
12314 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12315 $as_echo "$ac_try_echo") >&5
12316 (eval "$ac_link") 2>&5
12317 ac_status=$?
12318 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12319 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12320 { (case "(($ac_try" in
12321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12322 *) ac_try_echo=$ac_try;;
12323 esac
12324 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12325 $as_echo "$ac_try_echo") >&5
12326 (eval "$ac_try") 2>&5
12327 ac_status=$?
12328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12329 (exit $ac_status); }; }; then
12330 ac_cv_sizeof_long_double=`cat conftest.val`
12331 else
12332 $as_echo "$as_me: program exited with status $ac_status" >&5
12333 $as_echo "$as_me: failed program was:" >&5
12334 sed 's/^/| /' conftest.$ac_ext >&5
12336 ( exit $ac_status )
12337 if test "$ac_cv_type_long_double" = yes; then
12338 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12339 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12340 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
12341 See \`config.log' for more details." >&5
12342 $as_echo "$as_me: error: cannot compute sizeof (long double)
12343 See \`config.log' for more details." >&2;}
12344 { (exit 77); exit 77; }; }; }
12345 else
12346 ac_cv_sizeof_long_double=0
12349 rm -rf conftest.dSYM
12350 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12352 rm -f conftest.val
12354 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
12355 $as_echo "$ac_cv_sizeof_long_double" >&6; }
12359 cat >>confdefs.h <<_ACEOF
12360 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
12361 _ACEOF
12366 { $as_echo "$as_me:$LINENO: checking for _Bool support" >&5
12367 $as_echo_n "checking for _Bool support... " >&6; }
12368 have_c99_bool=no
12369 cat >conftest.$ac_ext <<_ACEOF
12370 /* confdefs.h. */
12371 _ACEOF
12372 cat confdefs.h >>conftest.$ac_ext
12373 cat >>conftest.$ac_ext <<_ACEOF
12374 /* end confdefs.h. */
12377 main ()
12379 _Bool x; x = (_Bool)0;
12381 return 0;
12383 _ACEOF
12384 rm -f conftest.$ac_objext
12385 if { (ac_try="$ac_compile"
12386 case "(($ac_try" in
12387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12388 *) ac_try_echo=$ac_try;;
12389 esac
12390 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12391 $as_echo "$ac_try_echo") >&5
12392 (eval "$ac_compile") 2>conftest.er1
12393 ac_status=$?
12394 grep -v '^ *+' conftest.er1 >conftest.err
12395 rm -f conftest.er1
12396 cat conftest.err >&5
12397 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12398 (exit $ac_status); } && {
12399 test -z "$ac_c_werror_flag" ||
12400 test ! -s conftest.err
12401 } && test -s conftest.$ac_objext; then
12404 cat >>confdefs.h <<\_ACEOF
12405 #define HAVE_C99_BOOL 1
12406 _ACEOF
12408 have_c99_bool=yes
12410 else
12411 $as_echo "$as_me: failed program was:" >&5
12412 sed 's/^/| /' conftest.$ac_ext >&5
12417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12418 { $as_echo "$as_me:$LINENO: result: $have_c99_bool" >&5
12419 $as_echo "$have_c99_bool" >&6; }
12420 if test "$have_c99_bool" = yes ; then
12421 # The cast to long int works around a bug in the HP C Compiler
12422 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12423 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12424 # This bug is HP SR number 8606223364.
12425 { $as_echo "$as_me:$LINENO: checking size of _Bool" >&5
12426 $as_echo_n "checking size of _Bool... " >&6; }
12427 if test "${ac_cv_sizeof__Bool+set}" = set; then
12428 $as_echo_n "(cached) " >&6
12429 else
12430 if test "$cross_compiling" = yes; then
12431 # Depending upon the size, compute the lo and hi bounds.
12432 cat >conftest.$ac_ext <<_ACEOF
12433 /* confdefs.h. */
12434 _ACEOF
12435 cat confdefs.h >>conftest.$ac_ext
12436 cat >>conftest.$ac_ext <<_ACEOF
12437 /* end confdefs.h. */
12438 $ac_includes_default
12440 main ()
12442 static int test_array [1 - 2 * !(((long int) (sizeof (_Bool))) >= 0)];
12443 test_array [0] = 0
12446 return 0;
12448 _ACEOF
12449 rm -f conftest.$ac_objext
12450 if { (ac_try="$ac_compile"
12451 case "(($ac_try" in
12452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12453 *) ac_try_echo=$ac_try;;
12454 esac
12455 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12456 $as_echo "$ac_try_echo") >&5
12457 (eval "$ac_compile") 2>conftest.er1
12458 ac_status=$?
12459 grep -v '^ *+' conftest.er1 >conftest.err
12460 rm -f conftest.er1
12461 cat conftest.err >&5
12462 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12463 (exit $ac_status); } && {
12464 test -z "$ac_c_werror_flag" ||
12465 test ! -s conftest.err
12466 } && test -s conftest.$ac_objext; then
12467 ac_lo=0 ac_mid=0
12468 while :; do
12469 cat >conftest.$ac_ext <<_ACEOF
12470 /* confdefs.h. */
12471 _ACEOF
12472 cat confdefs.h >>conftest.$ac_ext
12473 cat >>conftest.$ac_ext <<_ACEOF
12474 /* end confdefs.h. */
12475 $ac_includes_default
12477 main ()
12479 static int test_array [1 - 2 * !(((long int) (sizeof (_Bool))) <= $ac_mid)];
12480 test_array [0] = 0
12483 return 0;
12485 _ACEOF
12486 rm -f conftest.$ac_objext
12487 if { (ac_try="$ac_compile"
12488 case "(($ac_try" in
12489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12490 *) ac_try_echo=$ac_try;;
12491 esac
12492 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12493 $as_echo "$ac_try_echo") >&5
12494 (eval "$ac_compile") 2>conftest.er1
12495 ac_status=$?
12496 grep -v '^ *+' conftest.er1 >conftest.err
12497 rm -f conftest.er1
12498 cat conftest.err >&5
12499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12500 (exit $ac_status); } && {
12501 test -z "$ac_c_werror_flag" ||
12502 test ! -s conftest.err
12503 } && test -s conftest.$ac_objext; then
12504 ac_hi=$ac_mid; break
12505 else
12506 $as_echo "$as_me: failed program was:" >&5
12507 sed 's/^/| /' conftest.$ac_ext >&5
12509 ac_lo=`expr $ac_mid + 1`
12510 if test $ac_lo -le $ac_mid; then
12511 ac_lo= ac_hi=
12512 break
12514 ac_mid=`expr 2 '*' $ac_mid + 1`
12517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12518 done
12519 else
12520 $as_echo "$as_me: failed program was:" >&5
12521 sed 's/^/| /' conftest.$ac_ext >&5
12523 cat >conftest.$ac_ext <<_ACEOF
12524 /* confdefs.h. */
12525 _ACEOF
12526 cat confdefs.h >>conftest.$ac_ext
12527 cat >>conftest.$ac_ext <<_ACEOF
12528 /* end confdefs.h. */
12529 $ac_includes_default
12531 main ()
12533 static int test_array [1 - 2 * !(((long int) (sizeof (_Bool))) < 0)];
12534 test_array [0] = 0
12537 return 0;
12539 _ACEOF
12540 rm -f conftest.$ac_objext
12541 if { (ac_try="$ac_compile"
12542 case "(($ac_try" in
12543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12544 *) ac_try_echo=$ac_try;;
12545 esac
12546 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12547 $as_echo "$ac_try_echo") >&5
12548 (eval "$ac_compile") 2>conftest.er1
12549 ac_status=$?
12550 grep -v '^ *+' conftest.er1 >conftest.err
12551 rm -f conftest.er1
12552 cat conftest.err >&5
12553 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12554 (exit $ac_status); } && {
12555 test -z "$ac_c_werror_flag" ||
12556 test ! -s conftest.err
12557 } && test -s conftest.$ac_objext; then
12558 ac_hi=-1 ac_mid=-1
12559 while :; do
12560 cat >conftest.$ac_ext <<_ACEOF
12561 /* confdefs.h. */
12562 _ACEOF
12563 cat confdefs.h >>conftest.$ac_ext
12564 cat >>conftest.$ac_ext <<_ACEOF
12565 /* end confdefs.h. */
12566 $ac_includes_default
12568 main ()
12570 static int test_array [1 - 2 * !(((long int) (sizeof (_Bool))) >= $ac_mid)];
12571 test_array [0] = 0
12574 return 0;
12576 _ACEOF
12577 rm -f conftest.$ac_objext
12578 if { (ac_try="$ac_compile"
12579 case "(($ac_try" in
12580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12581 *) ac_try_echo=$ac_try;;
12582 esac
12583 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12584 $as_echo "$ac_try_echo") >&5
12585 (eval "$ac_compile") 2>conftest.er1
12586 ac_status=$?
12587 grep -v '^ *+' conftest.er1 >conftest.err
12588 rm -f conftest.er1
12589 cat conftest.err >&5
12590 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12591 (exit $ac_status); } && {
12592 test -z "$ac_c_werror_flag" ||
12593 test ! -s conftest.err
12594 } && test -s conftest.$ac_objext; then
12595 ac_lo=$ac_mid; break
12596 else
12597 $as_echo "$as_me: failed program was:" >&5
12598 sed 's/^/| /' conftest.$ac_ext >&5
12600 ac_hi=`expr '(' $ac_mid ')' - 1`
12601 if test $ac_mid -le $ac_hi; then
12602 ac_lo= ac_hi=
12603 break
12605 ac_mid=`expr 2 '*' $ac_mid`
12608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12609 done
12610 else
12611 $as_echo "$as_me: failed program was:" >&5
12612 sed 's/^/| /' conftest.$ac_ext >&5
12614 ac_lo= ac_hi=
12617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12621 # Binary search between lo and hi bounds.
12622 while test "x$ac_lo" != "x$ac_hi"; do
12623 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12624 cat >conftest.$ac_ext <<_ACEOF
12625 /* confdefs.h. */
12626 _ACEOF
12627 cat confdefs.h >>conftest.$ac_ext
12628 cat >>conftest.$ac_ext <<_ACEOF
12629 /* end confdefs.h. */
12630 $ac_includes_default
12632 main ()
12634 static int test_array [1 - 2 * !(((long int) (sizeof (_Bool))) <= $ac_mid)];
12635 test_array [0] = 0
12638 return 0;
12640 _ACEOF
12641 rm -f conftest.$ac_objext
12642 if { (ac_try="$ac_compile"
12643 case "(($ac_try" in
12644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12645 *) ac_try_echo=$ac_try;;
12646 esac
12647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12648 $as_echo "$ac_try_echo") >&5
12649 (eval "$ac_compile") 2>conftest.er1
12650 ac_status=$?
12651 grep -v '^ *+' conftest.er1 >conftest.err
12652 rm -f conftest.er1
12653 cat conftest.err >&5
12654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12655 (exit $ac_status); } && {
12656 test -z "$ac_c_werror_flag" ||
12657 test ! -s conftest.err
12658 } && test -s conftest.$ac_objext; then
12659 ac_hi=$ac_mid
12660 else
12661 $as_echo "$as_me: failed program was:" >&5
12662 sed 's/^/| /' conftest.$ac_ext >&5
12664 ac_lo=`expr '(' $ac_mid ')' + 1`
12667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12668 done
12669 case $ac_lo in
12670 ?*) ac_cv_sizeof__Bool=$ac_lo;;
12671 '') if test "$ac_cv_type__Bool" = yes; then
12672 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12673 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12674 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
12675 See \`config.log' for more details." >&5
12676 $as_echo "$as_me: error: cannot compute sizeof (_Bool)
12677 See \`config.log' for more details." >&2;}
12678 { (exit 77); exit 77; }; }; }
12679 else
12680 ac_cv_sizeof__Bool=0
12681 fi ;;
12682 esac
12683 else
12684 cat >conftest.$ac_ext <<_ACEOF
12685 /* confdefs.h. */
12686 _ACEOF
12687 cat confdefs.h >>conftest.$ac_ext
12688 cat >>conftest.$ac_ext <<_ACEOF
12689 /* end confdefs.h. */
12690 $ac_includes_default
12691 static long int longval () { return (long int) (sizeof (_Bool)); }
12692 static unsigned long int ulongval () { return (long int) (sizeof (_Bool)); }
12693 #include <stdio.h>
12694 #include <stdlib.h>
12696 main ()
12699 FILE *f = fopen ("conftest.val", "w");
12700 if (! f)
12701 return 1;
12702 if (((long int) (sizeof (_Bool))) < 0)
12704 long int i = longval ();
12705 if (i != ((long int) (sizeof (_Bool))))
12706 return 1;
12707 fprintf (f, "%ld", i);
12709 else
12711 unsigned long int i = ulongval ();
12712 if (i != ((long int) (sizeof (_Bool))))
12713 return 1;
12714 fprintf (f, "%lu", i);
12716 /* Do not output a trailing newline, as this causes \r\n confusion
12717 on some platforms. */
12718 return ferror (f) || fclose (f) != 0;
12721 return 0;
12723 _ACEOF
12724 rm -f conftest$ac_exeext
12725 if { (ac_try="$ac_link"
12726 case "(($ac_try" in
12727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12728 *) ac_try_echo=$ac_try;;
12729 esac
12730 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12731 $as_echo "$ac_try_echo") >&5
12732 (eval "$ac_link") 2>&5
12733 ac_status=$?
12734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12735 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12736 { (case "(($ac_try" in
12737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12738 *) ac_try_echo=$ac_try;;
12739 esac
12740 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12741 $as_echo "$ac_try_echo") >&5
12742 (eval "$ac_try") 2>&5
12743 ac_status=$?
12744 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12745 (exit $ac_status); }; }; then
12746 ac_cv_sizeof__Bool=`cat conftest.val`
12747 else
12748 $as_echo "$as_me: program exited with status $ac_status" >&5
12749 $as_echo "$as_me: failed program was:" >&5
12750 sed 's/^/| /' conftest.$ac_ext >&5
12752 ( exit $ac_status )
12753 if test "$ac_cv_type__Bool" = yes; then
12754 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12755 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12756 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
12757 See \`config.log' for more details." >&5
12758 $as_echo "$as_me: error: cannot compute sizeof (_Bool)
12759 See \`config.log' for more details." >&2;}
12760 { (exit 77); exit 77; }; }; }
12761 else
12762 ac_cv_sizeof__Bool=0
12765 rm -rf conftest.dSYM
12766 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12768 rm -f conftest.val
12770 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof__Bool" >&5
12771 $as_echo "$ac_cv_sizeof__Bool" >&6; }
12775 cat >>confdefs.h <<_ACEOF
12776 #define SIZEOF__BOOL $ac_cv_sizeof__Bool
12777 _ACEOF
12782 { $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5
12783 $as_echo_n "checking for uintptr_t... " >&6; }
12784 if test "${ac_cv_type_uintptr_t+set}" = set; then
12785 $as_echo_n "(cached) " >&6
12786 else
12787 ac_cv_type_uintptr_t=no
12788 cat >conftest.$ac_ext <<_ACEOF
12789 /* confdefs.h. */
12790 _ACEOF
12791 cat confdefs.h >>conftest.$ac_ext
12792 cat >>conftest.$ac_ext <<_ACEOF
12793 /* end confdefs.h. */
12794 #ifdef HAVE_STDINT_H
12795 #include <stdint.h>
12796 #endif
12799 main ()
12801 if (sizeof (uintptr_t))
12802 return 0;
12804 return 0;
12806 _ACEOF
12807 rm -f conftest.$ac_objext
12808 if { (ac_try="$ac_compile"
12809 case "(($ac_try" in
12810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12811 *) ac_try_echo=$ac_try;;
12812 esac
12813 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12814 $as_echo "$ac_try_echo") >&5
12815 (eval "$ac_compile") 2>conftest.er1
12816 ac_status=$?
12817 grep -v '^ *+' conftest.er1 >conftest.err
12818 rm -f conftest.er1
12819 cat conftest.err >&5
12820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12821 (exit $ac_status); } && {
12822 test -z "$ac_c_werror_flag" ||
12823 test ! -s conftest.err
12824 } && test -s conftest.$ac_objext; then
12825 cat >conftest.$ac_ext <<_ACEOF
12826 /* confdefs.h. */
12827 _ACEOF
12828 cat confdefs.h >>conftest.$ac_ext
12829 cat >>conftest.$ac_ext <<_ACEOF
12830 /* end confdefs.h. */
12831 #ifdef HAVE_STDINT_H
12832 #include <stdint.h>
12833 #endif
12836 main ()
12838 if (sizeof ((uintptr_t)))
12839 return 0;
12841 return 0;
12843 _ACEOF
12844 rm -f conftest.$ac_objext
12845 if { (ac_try="$ac_compile"
12846 case "(($ac_try" in
12847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12848 *) ac_try_echo=$ac_try;;
12849 esac
12850 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12851 $as_echo "$ac_try_echo") >&5
12852 (eval "$ac_compile") 2>conftest.er1
12853 ac_status=$?
12854 grep -v '^ *+' conftest.er1 >conftest.err
12855 rm -f conftest.er1
12856 cat conftest.err >&5
12857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12858 (exit $ac_status); } && {
12859 test -z "$ac_c_werror_flag" ||
12860 test ! -s conftest.err
12861 } && test -s conftest.$ac_objext; then
12863 else
12864 $as_echo "$as_me: failed program was:" >&5
12865 sed 's/^/| /' conftest.$ac_ext >&5
12867 ac_cv_type_uintptr_t=yes
12870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12871 else
12872 $as_echo "$as_me: failed program was:" >&5
12873 sed 's/^/| /' conftest.$ac_ext >&5
12878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12880 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12881 $as_echo "$ac_cv_type_uintptr_t" >&6; }
12882 if test "x$ac_cv_type_uintptr_t" = x""yes; then
12884 cat >>confdefs.h <<_ACEOF
12885 #define HAVE_UINTPTR_T 1
12886 _ACEOF
12888 # The cast to long int works around a bug in the HP C Compiler
12889 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12890 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12891 # This bug is HP SR number 8606223364.
12892 { $as_echo "$as_me:$LINENO: checking size of uintptr_t" >&5
12893 $as_echo_n "checking size of uintptr_t... " >&6; }
12894 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
12895 $as_echo_n "(cached) " >&6
12896 else
12897 if test "$cross_compiling" = yes; then
12898 # Depending upon the size, compute the lo and hi bounds.
12899 cat >conftest.$ac_ext <<_ACEOF
12900 /* confdefs.h. */
12901 _ACEOF
12902 cat confdefs.h >>conftest.$ac_ext
12903 cat >>conftest.$ac_ext <<_ACEOF
12904 /* end confdefs.h. */
12905 $ac_includes_default
12907 main ()
12909 static int test_array [1 - 2 * !(((long int) (sizeof (uintptr_t))) >= 0)];
12910 test_array [0] = 0
12913 return 0;
12915 _ACEOF
12916 rm -f conftest.$ac_objext
12917 if { (ac_try="$ac_compile"
12918 case "(($ac_try" in
12919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12920 *) ac_try_echo=$ac_try;;
12921 esac
12922 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12923 $as_echo "$ac_try_echo") >&5
12924 (eval "$ac_compile") 2>conftest.er1
12925 ac_status=$?
12926 grep -v '^ *+' conftest.er1 >conftest.err
12927 rm -f conftest.er1
12928 cat conftest.err >&5
12929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12930 (exit $ac_status); } && {
12931 test -z "$ac_c_werror_flag" ||
12932 test ! -s conftest.err
12933 } && test -s conftest.$ac_objext; then
12934 ac_lo=0 ac_mid=0
12935 while :; do
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
12944 main ()
12946 static int test_array [1 - 2 * !(((long int) (sizeof (uintptr_t))) <= $ac_mid)];
12947 test_array [0] = 0
12950 return 0;
12952 _ACEOF
12953 rm -f conftest.$ac_objext
12954 if { (ac_try="$ac_compile"
12955 case "(($ac_try" in
12956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12957 *) ac_try_echo=$ac_try;;
12958 esac
12959 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12960 $as_echo "$ac_try_echo") >&5
12961 (eval "$ac_compile") 2>conftest.er1
12962 ac_status=$?
12963 grep -v '^ *+' conftest.er1 >conftest.err
12964 rm -f conftest.er1
12965 cat conftest.err >&5
12966 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12967 (exit $ac_status); } && {
12968 test -z "$ac_c_werror_flag" ||
12969 test ! -s conftest.err
12970 } && test -s conftest.$ac_objext; then
12971 ac_hi=$ac_mid; break
12972 else
12973 $as_echo "$as_me: failed program was:" >&5
12974 sed 's/^/| /' conftest.$ac_ext >&5
12976 ac_lo=`expr $ac_mid + 1`
12977 if test $ac_lo -le $ac_mid; then
12978 ac_lo= ac_hi=
12979 break
12981 ac_mid=`expr 2 '*' $ac_mid + 1`
12984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12985 done
12986 else
12987 $as_echo "$as_me: failed program was:" >&5
12988 sed 's/^/| /' conftest.$ac_ext >&5
12990 cat >conftest.$ac_ext <<_ACEOF
12991 /* confdefs.h. */
12992 _ACEOF
12993 cat confdefs.h >>conftest.$ac_ext
12994 cat >>conftest.$ac_ext <<_ACEOF
12995 /* end confdefs.h. */
12996 $ac_includes_default
12998 main ()
13000 static int test_array [1 - 2 * !(((long int) (sizeof (uintptr_t))) < 0)];
13001 test_array [0] = 0
13004 return 0;
13006 _ACEOF
13007 rm -f conftest.$ac_objext
13008 if { (ac_try="$ac_compile"
13009 case "(($ac_try" in
13010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13011 *) ac_try_echo=$ac_try;;
13012 esac
13013 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13014 $as_echo "$ac_try_echo") >&5
13015 (eval "$ac_compile") 2>conftest.er1
13016 ac_status=$?
13017 grep -v '^ *+' conftest.er1 >conftest.err
13018 rm -f conftest.er1
13019 cat conftest.err >&5
13020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13021 (exit $ac_status); } && {
13022 test -z "$ac_c_werror_flag" ||
13023 test ! -s conftest.err
13024 } && test -s conftest.$ac_objext; then
13025 ac_hi=-1 ac_mid=-1
13026 while :; do
13027 cat >conftest.$ac_ext <<_ACEOF
13028 /* confdefs.h. */
13029 _ACEOF
13030 cat confdefs.h >>conftest.$ac_ext
13031 cat >>conftest.$ac_ext <<_ACEOF
13032 /* end confdefs.h. */
13033 $ac_includes_default
13035 main ()
13037 static int test_array [1 - 2 * !(((long int) (sizeof (uintptr_t))) >= $ac_mid)];
13038 test_array [0] = 0
13041 return 0;
13043 _ACEOF
13044 rm -f conftest.$ac_objext
13045 if { (ac_try="$ac_compile"
13046 case "(($ac_try" in
13047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13048 *) ac_try_echo=$ac_try;;
13049 esac
13050 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13051 $as_echo "$ac_try_echo") >&5
13052 (eval "$ac_compile") 2>conftest.er1
13053 ac_status=$?
13054 grep -v '^ *+' conftest.er1 >conftest.err
13055 rm -f conftest.er1
13056 cat conftest.err >&5
13057 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13058 (exit $ac_status); } && {
13059 test -z "$ac_c_werror_flag" ||
13060 test ! -s conftest.err
13061 } && test -s conftest.$ac_objext; then
13062 ac_lo=$ac_mid; break
13063 else
13064 $as_echo "$as_me: failed program was:" >&5
13065 sed 's/^/| /' conftest.$ac_ext >&5
13067 ac_hi=`expr '(' $ac_mid ')' - 1`
13068 if test $ac_mid -le $ac_hi; then
13069 ac_lo= ac_hi=
13070 break
13072 ac_mid=`expr 2 '*' $ac_mid`
13075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13076 done
13077 else
13078 $as_echo "$as_me: failed program was:" >&5
13079 sed 's/^/| /' conftest.$ac_ext >&5
13081 ac_lo= ac_hi=
13084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13088 # Binary search between lo and hi bounds.
13089 while test "x$ac_lo" != "x$ac_hi"; do
13090 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13091 cat >conftest.$ac_ext <<_ACEOF
13092 /* confdefs.h. */
13093 _ACEOF
13094 cat confdefs.h >>conftest.$ac_ext
13095 cat >>conftest.$ac_ext <<_ACEOF
13096 /* end confdefs.h. */
13097 $ac_includes_default
13099 main ()
13101 static int test_array [1 - 2 * !(((long int) (sizeof (uintptr_t))) <= $ac_mid)];
13102 test_array [0] = 0
13105 return 0;
13107 _ACEOF
13108 rm -f conftest.$ac_objext
13109 if { (ac_try="$ac_compile"
13110 case "(($ac_try" in
13111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13112 *) ac_try_echo=$ac_try;;
13113 esac
13114 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13115 $as_echo "$ac_try_echo") >&5
13116 (eval "$ac_compile") 2>conftest.er1
13117 ac_status=$?
13118 grep -v '^ *+' conftest.er1 >conftest.err
13119 rm -f conftest.er1
13120 cat conftest.err >&5
13121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13122 (exit $ac_status); } && {
13123 test -z "$ac_c_werror_flag" ||
13124 test ! -s conftest.err
13125 } && test -s conftest.$ac_objext; then
13126 ac_hi=$ac_mid
13127 else
13128 $as_echo "$as_me: failed program was:" >&5
13129 sed 's/^/| /' conftest.$ac_ext >&5
13131 ac_lo=`expr '(' $ac_mid ')' + 1`
13134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13135 done
13136 case $ac_lo in
13137 ?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
13138 '') if test "$ac_cv_type_uintptr_t" = yes; then
13139 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13140 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13141 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
13142 See \`config.log' for more details." >&5
13143 $as_echo "$as_me: error: cannot compute sizeof (uintptr_t)
13144 See \`config.log' for more details." >&2;}
13145 { (exit 77); exit 77; }; }; }
13146 else
13147 ac_cv_sizeof_uintptr_t=0
13148 fi ;;
13149 esac
13150 else
13151 cat >conftest.$ac_ext <<_ACEOF
13152 /* confdefs.h. */
13153 _ACEOF
13154 cat confdefs.h >>conftest.$ac_ext
13155 cat >>conftest.$ac_ext <<_ACEOF
13156 /* end confdefs.h. */
13157 $ac_includes_default
13158 static long int longval () { return (long int) (sizeof (uintptr_t)); }
13159 static unsigned long int ulongval () { return (long int) (sizeof (uintptr_t)); }
13160 #include <stdio.h>
13161 #include <stdlib.h>
13163 main ()
13166 FILE *f = fopen ("conftest.val", "w");
13167 if (! f)
13168 return 1;
13169 if (((long int) (sizeof (uintptr_t))) < 0)
13171 long int i = longval ();
13172 if (i != ((long int) (sizeof (uintptr_t))))
13173 return 1;
13174 fprintf (f, "%ld", i);
13176 else
13178 unsigned long int i = ulongval ();
13179 if (i != ((long int) (sizeof (uintptr_t))))
13180 return 1;
13181 fprintf (f, "%lu", i);
13183 /* Do not output a trailing newline, as this causes \r\n confusion
13184 on some platforms. */
13185 return ferror (f) || fclose (f) != 0;
13188 return 0;
13190 _ACEOF
13191 rm -f conftest$ac_exeext
13192 if { (ac_try="$ac_link"
13193 case "(($ac_try" in
13194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13195 *) ac_try_echo=$ac_try;;
13196 esac
13197 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13198 $as_echo "$ac_try_echo") >&5
13199 (eval "$ac_link") 2>&5
13200 ac_status=$?
13201 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13202 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13203 { (case "(($ac_try" in
13204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13205 *) ac_try_echo=$ac_try;;
13206 esac
13207 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13208 $as_echo "$ac_try_echo") >&5
13209 (eval "$ac_try") 2>&5
13210 ac_status=$?
13211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13212 (exit $ac_status); }; }; then
13213 ac_cv_sizeof_uintptr_t=`cat conftest.val`
13214 else
13215 $as_echo "$as_me: program exited with status $ac_status" >&5
13216 $as_echo "$as_me: failed program was:" >&5
13217 sed 's/^/| /' conftest.$ac_ext >&5
13219 ( exit $ac_status )
13220 if test "$ac_cv_type_uintptr_t" = yes; then
13221 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13222 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13223 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
13224 See \`config.log' for more details." >&5
13225 $as_echo "$as_me: error: cannot compute sizeof (uintptr_t)
13226 See \`config.log' for more details." >&2;}
13227 { (exit 77); exit 77; }; }; }
13228 else
13229 ac_cv_sizeof_uintptr_t=0
13232 rm -rf conftest.dSYM
13233 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13235 rm -f conftest.val
13237 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
13238 $as_echo "$ac_cv_sizeof_uintptr_t" >&6; }
13242 cat >>confdefs.h <<_ACEOF
13243 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
13244 _ACEOF
13251 # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.
13252 { $as_echo "$as_me:$LINENO: checking size of off_t" >&5
13253 $as_echo_n "checking size of off_t... " >&6; }
13254 if test "${ac_cv_sizeof_off_t+set}" = set; then
13255 $as_echo_n "(cached) " >&6
13256 else
13257 if test "$cross_compiling" = yes; then
13258 ac_cv_sizeof_off_t=4
13259 else
13260 cat >conftest.$ac_ext <<_ACEOF
13261 /* confdefs.h. */
13262 _ACEOF
13263 cat confdefs.h >>conftest.$ac_ext
13264 cat >>conftest.$ac_ext <<_ACEOF
13265 /* end confdefs.h. */
13266 #include <stdio.h>
13267 #include <sys/types.h>
13268 main()
13270 FILE *f=fopen("conftestval", "w");
13271 if (!f) exit(1);
13272 fprintf(f, "%d\n", sizeof(off_t));
13273 exit(0);
13275 _ACEOF
13276 rm -f conftest$ac_exeext
13277 if { (ac_try="$ac_link"
13278 case "(($ac_try" in
13279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13280 *) ac_try_echo=$ac_try;;
13281 esac
13282 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13283 $as_echo "$ac_try_echo") >&5
13284 (eval "$ac_link") 2>&5
13285 ac_status=$?
13286 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13287 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13288 { (case "(($ac_try" in
13289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13290 *) ac_try_echo=$ac_try;;
13291 esac
13292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13293 $as_echo "$ac_try_echo") >&5
13294 (eval "$ac_try") 2>&5
13295 ac_status=$?
13296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13297 (exit $ac_status); }; }; then
13298 ac_cv_sizeof_off_t=`cat conftestval`
13299 else
13300 $as_echo "$as_me: program exited with status $ac_status" >&5
13301 $as_echo "$as_me: failed program was:" >&5
13302 sed 's/^/| /' conftest.$ac_ext >&5
13304 ( exit $ac_status )
13305 ac_cv_sizeof_off_t=0
13307 rm -rf conftest.dSYM
13308 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13315 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
13316 $as_echo "$ac_cv_sizeof_off_t" >&6; }
13318 cat >>confdefs.h <<_ACEOF
13319 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
13320 _ACEOF
13323 { $as_echo "$as_me:$LINENO: checking whether to enable large file support" >&5
13324 $as_echo_n "checking whether to enable large file support... " >&6; }
13325 if test "$have_long_long" = yes -a \
13326 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
13327 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
13329 cat >>confdefs.h <<\_ACEOF
13330 #define HAVE_LARGEFILE_SUPPORT 1
13331 _ACEOF
13333 { $as_echo "$as_me:$LINENO: result: yes" >&5
13334 $as_echo "yes" >&6; }
13335 else
13336 { $as_echo "$as_me:$LINENO: result: no" >&5
13337 $as_echo "no" >&6; }
13340 # AC_CHECK_SIZEOF() doesn't include <time.h>.
13341 { $as_echo "$as_me:$LINENO: checking size of time_t" >&5
13342 $as_echo_n "checking size of time_t... " >&6; }
13343 if test "${ac_cv_sizeof_time_t+set}" = set; then
13344 $as_echo_n "(cached) " >&6
13345 else
13346 if test "$cross_compiling" = yes; then
13347 ac_cv_sizeof_time_t=4
13348 else
13349 cat >conftest.$ac_ext <<_ACEOF
13350 /* confdefs.h. */
13351 _ACEOF
13352 cat confdefs.h >>conftest.$ac_ext
13353 cat >>conftest.$ac_ext <<_ACEOF
13354 /* end confdefs.h. */
13355 #include <stdio.h>
13356 #include <time.h>
13357 main()
13359 FILE *f=fopen("conftestval", "w");
13360 if (!f) exit(1);
13361 fprintf(f, "%d\n", sizeof(time_t));
13362 exit(0);
13364 _ACEOF
13365 rm -f conftest$ac_exeext
13366 if { (ac_try="$ac_link"
13367 case "(($ac_try" in
13368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13369 *) ac_try_echo=$ac_try;;
13370 esac
13371 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13372 $as_echo "$ac_try_echo") >&5
13373 (eval "$ac_link") 2>&5
13374 ac_status=$?
13375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13376 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13377 { (case "(($ac_try" in
13378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13379 *) ac_try_echo=$ac_try;;
13380 esac
13381 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13382 $as_echo "$ac_try_echo") >&5
13383 (eval "$ac_try") 2>&5
13384 ac_status=$?
13385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13386 (exit $ac_status); }; }; then
13387 ac_cv_sizeof_time_t=`cat conftestval`
13388 else
13389 $as_echo "$as_me: program exited with status $ac_status" >&5
13390 $as_echo "$as_me: failed program was:" >&5
13391 sed 's/^/| /' conftest.$ac_ext >&5
13393 ( exit $ac_status )
13394 ac_cv_sizeof_time_t=0
13396 rm -rf conftest.dSYM
13397 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13404 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
13405 $as_echo "$ac_cv_sizeof_time_t" >&6; }
13407 cat >>confdefs.h <<_ACEOF
13408 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
13409 _ACEOF
13413 # if have pthread_t then define SIZEOF_PTHREAD_T
13414 ac_save_cc="$CC"
13415 if test "$ac_cv_kpthread" = "yes"
13416 then CC="$CC -Kpthread"
13417 elif test "$ac_cv_kthread" = "yes"
13418 then CC="$CC -Kthread"
13419 elif test "$ac_cv_pthread" = "yes"
13420 then CC="$CC -pthread"
13422 { $as_echo "$as_me:$LINENO: checking for pthread_t" >&5
13423 $as_echo_n "checking for pthread_t... " >&6; }
13424 have_pthread_t=no
13425 cat >conftest.$ac_ext <<_ACEOF
13426 /* confdefs.h. */
13427 _ACEOF
13428 cat confdefs.h >>conftest.$ac_ext
13429 cat >>conftest.$ac_ext <<_ACEOF
13430 /* end confdefs.h. */
13431 #include <pthread.h>
13433 main ()
13435 pthread_t x; x = *(pthread_t*)0;
13437 return 0;
13439 _ACEOF
13440 rm -f conftest.$ac_objext
13441 if { (ac_try="$ac_compile"
13442 case "(($ac_try" in
13443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13444 *) ac_try_echo=$ac_try;;
13445 esac
13446 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13447 $as_echo "$ac_try_echo") >&5
13448 (eval "$ac_compile") 2>conftest.er1
13449 ac_status=$?
13450 grep -v '^ *+' conftest.er1 >conftest.err
13451 rm -f conftest.er1
13452 cat conftest.err >&5
13453 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13454 (exit $ac_status); } && {
13455 test -z "$ac_c_werror_flag" ||
13456 test ! -s conftest.err
13457 } && test -s conftest.$ac_objext; then
13458 have_pthread_t=yes
13459 else
13460 $as_echo "$as_me: failed program was:" >&5
13461 sed 's/^/| /' conftest.$ac_ext >&5
13466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13467 { $as_echo "$as_me:$LINENO: result: $have_pthread_t" >&5
13468 $as_echo "$have_pthread_t" >&6; }
13469 if test "$have_pthread_t" = yes ; then
13470 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
13471 { $as_echo "$as_me:$LINENO: checking size of pthread_t" >&5
13472 $as_echo_n "checking size of pthread_t... " >&6; }
13473 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
13474 $as_echo_n "(cached) " >&6
13475 else
13476 if test "$cross_compiling" = yes; then
13477 ac_cv_sizeof_pthread_t=4
13478 else
13479 cat >conftest.$ac_ext <<_ACEOF
13480 /* confdefs.h. */
13481 _ACEOF
13482 cat confdefs.h >>conftest.$ac_ext
13483 cat >>conftest.$ac_ext <<_ACEOF
13484 /* end confdefs.h. */
13485 #include <stdio.h>
13486 #include <pthread.h>
13487 main()
13489 FILE *f=fopen("conftestval", "w");
13490 if (!f) exit(1);
13491 fprintf(f, "%d\n", sizeof(pthread_t));
13492 exit(0);
13494 _ACEOF
13495 rm -f conftest$ac_exeext
13496 if { (ac_try="$ac_link"
13497 case "(($ac_try" in
13498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13499 *) ac_try_echo=$ac_try;;
13500 esac
13501 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13502 $as_echo "$ac_try_echo") >&5
13503 (eval "$ac_link") 2>&5
13504 ac_status=$?
13505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13506 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13507 { (case "(($ac_try" in
13508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13509 *) ac_try_echo=$ac_try;;
13510 esac
13511 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13512 $as_echo "$ac_try_echo") >&5
13513 (eval "$ac_try") 2>&5
13514 ac_status=$?
13515 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13516 (exit $ac_status); }; }; then
13517 ac_cv_sizeof_pthread_t=`cat conftestval`
13518 else
13519 $as_echo "$as_me: program exited with status $ac_status" >&5
13520 $as_echo "$as_me: failed program was:" >&5
13521 sed 's/^/| /' conftest.$ac_ext >&5
13523 ( exit $ac_status )
13524 ac_cv_sizeof_pthread_t=0
13526 rm -rf conftest.dSYM
13527 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13534 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
13535 $as_echo "$ac_cv_sizeof_pthread_t" >&6; }
13537 cat >>confdefs.h <<_ACEOF
13538 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
13539 _ACEOF
13542 CC="$ac_save_cc"
13544 { $as_echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
13545 $as_echo_n "checking for --enable-toolbox-glue... " >&6; }
13546 # Check whether --enable-toolbox-glue was given.
13547 if test "${enable_toolbox_glue+set}" = set; then
13548 enableval=$enable_toolbox_glue;
13552 if test -z "$enable_toolbox_glue"
13553 then
13554 case $ac_sys_system/$ac_sys_release in
13555 Darwin/*)
13556 enable_toolbox_glue="yes";;
13558 enable_toolbox_glue="no";;
13559 esac
13561 case "$enable_toolbox_glue" in
13562 yes)
13563 extra_machdep_objs="Python/mactoolboxglue.o"
13564 extra_undefs="-u _PyMac_Error"
13566 cat >>confdefs.h <<\_ACEOF
13567 #define USE_TOOLBOX_OBJECT_GLUE 1
13568 _ACEOF
13572 extra_machdep_objs=""
13573 extra_undefs=""
13575 esac
13576 { $as_echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
13577 $as_echo "$enable_toolbox_glue" >&6; }
13581 case $ac_sys_system/$ac_sys_release in
13582 Darwin/[01567]\..*)
13583 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
13585 Darwin/*)
13586 OTHER_LIBTOOL_OPT=""
13588 esac
13591 case $ac_sys_system/$ac_sys_release in
13592 Darwin/[01567]\..*)
13593 LIBTOOL_CRUFT="-framework System -lcc_dynamic"
13594 if test "${enable_universalsdk}"; then
13596 else
13597 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch`"
13599 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13600 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
13601 Darwin/*)
13602 gcc_version=`gcc -v 2>&1 | grep version | cut -d\ -f3`
13603 if test ${gcc_version} '<' 4.0
13604 then
13605 LIBTOOL_CRUFT="-lcc_dynamic"
13606 else
13607 LIBTOOL_CRUFT=""
13609 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch`"
13610 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13611 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
13612 esac
13614 { $as_echo "$as_me:$LINENO: checking for --enable-framework" >&5
13615 $as_echo_n "checking for --enable-framework... " >&6; }
13616 if test "$enable_framework"
13617 then
13618 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
13619 # -F. is needed to allow linking to the framework while
13620 # in the build location.
13622 cat >>confdefs.h <<\_ACEOF
13623 #define WITH_NEXT_FRAMEWORK 1
13624 _ACEOF
13626 { $as_echo "$as_me:$LINENO: result: yes" >&5
13627 $as_echo "yes" >&6; }
13628 else
13629 { $as_echo "$as_me:$LINENO: result: no" >&5
13630 $as_echo "no" >&6; }
13633 { $as_echo "$as_me:$LINENO: checking for dyld" >&5
13634 $as_echo_n "checking for dyld... " >&6; }
13635 case $ac_sys_system/$ac_sys_release in
13636 Darwin/*)
13638 cat >>confdefs.h <<\_ACEOF
13639 #define WITH_DYLD 1
13640 _ACEOF
13642 { $as_echo "$as_me:$LINENO: result: always on for Darwin" >&5
13643 $as_echo "always on for Darwin" >&6; }
13646 { $as_echo "$as_me:$LINENO: result: no" >&5
13647 $as_echo "no" >&6; }
13649 esac
13651 # Set info about shared libraries.
13657 # SO is the extension of shared libraries `(including the dot!)
13658 # -- usually .so, .sl on HP-UX, .dll on Cygwin
13659 { $as_echo "$as_me:$LINENO: checking SO" >&5
13660 $as_echo_n "checking SO... " >&6; }
13661 if test -z "$SO"
13662 then
13663 case $ac_sys_system in
13664 hp*|HP*)
13665 case `uname -m` in
13666 ia64) SO=.so;;
13667 *) SO=.sl;;
13668 esac
13670 CYGWIN*) SO=.dll;;
13671 *) SO=.so;;
13672 esac
13673 else
13674 # this might also be a termcap variable, see #610332
13675 echo
13676 echo '====================================================================='
13677 echo '+ +'
13678 echo '+ WARNING: You have set SO in your environment. +'
13679 echo '+ Do you really mean to change the extension for shared libraries? +'
13680 echo '+ Continuing in 10 seconds to let you to ponder. +'
13681 echo '+ +'
13682 echo '====================================================================='
13683 sleep 10
13685 { $as_echo "$as_me:$LINENO: result: $SO" >&5
13686 $as_echo "$SO" >&6; }
13689 cat >>confdefs.h <<_ACEOF
13690 #define SHLIB_EXT "$SO"
13691 _ACEOF
13693 # LDSHARED is the ld *command* used to create shared library
13694 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
13695 # (Shared libraries in this instance are shared modules to be loaded into
13696 # Python, as opposed to building Python itself as a shared library.)
13697 { $as_echo "$as_me:$LINENO: checking LDSHARED" >&5
13698 $as_echo_n "checking LDSHARED... " >&6; }
13699 if test -z "$LDSHARED"
13700 then
13701 case $ac_sys_system/$ac_sys_release in
13702 AIX*)
13703 BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
13704 LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
13706 BeOS*)
13707 BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
13708 LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
13710 IRIX/5*) LDSHARED="ld -shared";;
13711 IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
13712 SunOS/5*)
13713 if test "$GCC" = "yes"
13714 then LDSHARED='$(CC) -shared'
13715 else LDSHARED='$(CC) -G';
13716 fi ;;
13717 hp*|HP*)
13718 if test "$GCC" = "yes"
13719 then LDSHARED='$(CC) -shared'
13720 else LDSHARED='ld -b';
13721 fi ;;
13722 OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
13723 Darwin/1.3*)
13724 LDSHARED='$(CC) $(LDFLAGS) -bundle'
13725 if test "$enable_framework" ; then
13726 # Link against the framework. All externals should be defined.
13727 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13728 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13729 else
13730 # No framework. Ignore undefined symbols, assuming they come from Python
13731 LDSHARED="$LDSHARED -undefined suppress"
13732 fi ;;
13733 Darwin/1.4*|Darwin/5.*|Darwin/6.*)
13734 LDSHARED='$(CC) $(LDFLAGS) -bundle'
13735 if test "$enable_framework" ; then
13736 # Link against the framework. All externals should be defined.
13737 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13738 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13739 else
13740 # No framework, use the Python app as bundle-loader
13741 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
13742 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
13743 fi ;;
13744 Darwin/*)
13745 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
13746 # This allows an extension to be used in any Python
13748 if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2
13749 then
13750 if test "${enable_universalsdk}"; then
13751 LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
13753 LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
13754 BLDSHARED="$LDSHARED"
13755 else
13756 LDSHARED='$(CC) $(LDFLAGS) -bundle'
13757 if test "$enable_framework" ; then
13758 # Link against the framework. All externals should be defined.
13759 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13760 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13761 else
13762 # No framework, use the Python app as bundle-loader
13763 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
13764 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
13768 Linux*|GNU*|QNX*) LDSHARED='$(CC) -shared';;
13769 BSD/OS*/4*) LDSHARED="gcc -shared";;
13770 FreeBSD*)
13771 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13772 then
13773 LDSHARED="$CC -shared ${LDFLAGS}"
13774 else
13775 LDSHARED="ld -Bshareable ${LDFLAGS}"
13776 fi;;
13777 OpenBSD*)
13778 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13779 then
13780 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
13781 else
13782 case `uname -r` in
13783 [01].* | 2.[0-7] | 2.[0-7].*)
13784 LDSHARED="ld -Bshareable ${LDFLAGS}"
13787 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
13789 esac
13790 fi;;
13791 NetBSD*|DragonFly*) LDSHARED="cc -shared ${LDFLAGS}";;
13792 OpenUNIX*|UnixWare*)
13793 if test "$GCC" = "yes"
13794 then LDSHARED='$(CC) -shared'
13795 else LDSHARED='$(CC) -G'
13796 fi;;
13797 SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';;
13798 Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
13799 CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";;
13800 atheos*) LDSHARED="gcc -shared";;
13801 *) LDSHARED="ld";;
13802 esac
13804 { $as_echo "$as_me:$LINENO: result: $LDSHARED" >&5
13805 $as_echo "$LDSHARED" >&6; }
13806 BLDSHARED=${BLDSHARED-$LDSHARED}
13807 # CCSHARED are the C *flags* used to create objects to go into a shared
13808 # library (module) -- this is only needed for a few systems
13809 { $as_echo "$as_me:$LINENO: checking CCSHARED" >&5
13810 $as_echo_n "checking CCSHARED... " >&6; }
13811 if test -z "$CCSHARED"
13812 then
13813 case $ac_sys_system/$ac_sys_release in
13814 SunOS*) if test "$GCC" = yes;
13815 then CCSHARED="-fPIC";
13816 elif test `uname -p` = sparc;
13817 then CCSHARED="-xcode=pic32";
13818 else CCSHARED="-Kpic";
13819 fi;;
13820 hp*|HP*) if test "$GCC" = yes;
13821 then CCSHARED="-fPIC";
13822 else CCSHARED="+z";
13823 fi;;
13824 Linux*|GNU*) CCSHARED="-fPIC";;
13825 BSD/OS*/4*) CCSHARED="-fpic";;
13826 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";;
13827 OpenUNIX*|UnixWare*)
13828 if test "$GCC" = "yes"
13829 then CCSHARED="-fPIC"
13830 else CCSHARED="-KPIC"
13831 fi;;
13832 SCO_SV*)
13833 if test "$GCC" = "yes"
13834 then CCSHARED="-fPIC"
13835 else CCSHARED="-Kpic -belf"
13836 fi;;
13837 Monterey*) CCSHARED="-G";;
13838 IRIX*/6*) case $CC in
13839 *gcc*) CCSHARED="-shared";;
13840 *) CCSHARED="";;
13841 esac;;
13842 atheos*) CCSHARED="-fPIC";;
13843 esac
13845 { $as_echo "$as_me:$LINENO: result: $CCSHARED" >&5
13846 $as_echo "$CCSHARED" >&6; }
13847 # LINKFORSHARED are the flags passed to the $(CC) command that links
13848 # the python executable -- this is only needed for a few systems
13849 { $as_echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
13850 $as_echo_n "checking LINKFORSHARED... " >&6; }
13851 if test -z "$LINKFORSHARED"
13852 then
13853 case $ac_sys_system/$ac_sys_release in
13854 AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';;
13855 hp*|HP*)
13856 LINKFORSHARED="-Wl,-E -Wl,+s";;
13857 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
13858 BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
13859 Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
13860 # -u libsys_s pulls in all symbols in libsys
13861 Darwin/*)
13862 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
13863 # which is
13864 # not used by the core itself but which needs to be in the core so
13865 # that dynamically loaded extension modules have access to it.
13866 # -prebind is no longer used, because it actually seems to give a
13867 # slowdown in stead of a speedup, maybe due to the large number of
13868 # dynamic loads Python does.
13870 LINKFORSHARED="$extra_undefs"
13871 if test "$enable_framework"
13872 then
13873 LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13875 LINKFORSHARED="$LINKFORSHARED";;
13876 OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
13877 SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
13878 ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
13879 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*)
13880 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13881 then
13882 LINKFORSHARED="-Wl,--export-dynamic"
13883 fi;;
13884 SunOS/5*) case $CC in
13885 *gcc*)
13886 if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
13887 then
13888 LINKFORSHARED="-Xlinker --export-dynamic"
13889 fi;;
13890 esac;;
13891 CYGWIN*)
13892 if test $enable_shared = "no"
13893 then
13894 LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)'
13895 fi;;
13896 QNX*)
13897 # -Wl,-E causes the symbols to be added to the dynamic
13898 # symbol table so that they can be found when a module
13899 # is loaded. -N 2048K causes the stack size to be set
13900 # to 2048 kilobytes so that the stack doesn't overflow
13901 # when running test_compile.py.
13902 LINKFORSHARED='-Wl,-E -N 2048K';;
13903 esac
13905 { $as_echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
13906 $as_echo "$LINKFORSHARED" >&6; }
13910 { $as_echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
13911 $as_echo_n "checking CFLAGSFORSHARED... " >&6; }
13912 if test ! "$LIBRARY" = "$LDLIBRARY"
13913 then
13914 case $ac_sys_system in
13915 CYGWIN*)
13916 # Cygwin needs CCSHARED when building extension DLLs
13917 # but not when building the interpreter DLL.
13918 CFLAGSFORSHARED='';;
13920 CFLAGSFORSHARED='$(CCSHARED)'
13921 esac
13923 { $as_echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
13924 $as_echo "$CFLAGSFORSHARED" >&6; }
13926 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
13927 # library (with --enable-shared).
13928 # For platforms on which shared libraries are not allowed to have unresolved
13929 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
13930 # if it is not required, since it creates a dependency of the shared library
13931 # to LIBS. This, in turn, means that applications linking the shared libpython
13932 # don't need to link LIBS explicitly. The default should be only changed
13933 # on systems where this approach causes problems.
13935 { $as_echo "$as_me:$LINENO: checking SHLIBS" >&5
13936 $as_echo_n "checking SHLIBS... " >&6; }
13937 case "$ac_sys_system" in
13939 SHLIBS='$(LIBS)';;
13940 esac
13941 { $as_echo "$as_me:$LINENO: result: $SHLIBS" >&5
13942 $as_echo "$SHLIBS" >&6; }
13945 # checks for libraries
13947 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13948 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13949 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13950 $as_echo_n "(cached) " >&6
13951 else
13952 ac_check_lib_save_LIBS=$LIBS
13953 LIBS="-ldl $LIBS"
13954 cat >conftest.$ac_ext <<_ACEOF
13955 /* confdefs.h. */
13956 _ACEOF
13957 cat confdefs.h >>conftest.$ac_ext
13958 cat >>conftest.$ac_ext <<_ACEOF
13959 /* end confdefs.h. */
13961 /* Override any GCC internal prototype to avoid an error.
13962 Use char because int might match the return type of a GCC
13963 builtin and then its argument prototype would still apply. */
13964 #ifdef __cplusplus
13965 extern "C"
13966 #endif
13967 char dlopen ();
13969 main ()
13971 return dlopen ();
13973 return 0;
13975 _ACEOF
13976 rm -f conftest.$ac_objext conftest$ac_exeext
13977 if { (ac_try="$ac_link"
13978 case "(($ac_try" in
13979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13980 *) ac_try_echo=$ac_try;;
13981 esac
13982 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13983 $as_echo "$ac_try_echo") >&5
13984 (eval "$ac_link") 2>conftest.er1
13985 ac_status=$?
13986 grep -v '^ *+' conftest.er1 >conftest.err
13987 rm -f conftest.er1
13988 cat conftest.err >&5
13989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13990 (exit $ac_status); } && {
13991 test -z "$ac_c_werror_flag" ||
13992 test ! -s conftest.err
13993 } && test -s conftest$ac_exeext && {
13994 test "$cross_compiling" = yes ||
13995 $as_test_x conftest$ac_exeext
13996 }; then
13997 ac_cv_lib_dl_dlopen=yes
13998 else
13999 $as_echo "$as_me: failed program was:" >&5
14000 sed 's/^/| /' conftest.$ac_ext >&5
14002 ac_cv_lib_dl_dlopen=no
14005 rm -rf conftest.dSYM
14006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14007 conftest$ac_exeext conftest.$ac_ext
14008 LIBS=$ac_check_lib_save_LIBS
14010 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14011 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14012 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
14013 cat >>confdefs.h <<_ACEOF
14014 #define HAVE_LIBDL 1
14015 _ACEOF
14017 LIBS="-ldl $LIBS"
14020 # Dynamic linking for SunOS/Solaris and SYSV
14022 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
14023 $as_echo_n "checking for shl_load in -ldld... " >&6; }
14024 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14025 $as_echo_n "(cached) " >&6
14026 else
14027 ac_check_lib_save_LIBS=$LIBS
14028 LIBS="-ldld $LIBS"
14029 cat >conftest.$ac_ext <<_ACEOF
14030 /* confdefs.h. */
14031 _ACEOF
14032 cat confdefs.h >>conftest.$ac_ext
14033 cat >>conftest.$ac_ext <<_ACEOF
14034 /* end confdefs.h. */
14036 /* Override any GCC internal prototype to avoid an error.
14037 Use char because int might match the return type of a GCC
14038 builtin and then its argument prototype would still apply. */
14039 #ifdef __cplusplus
14040 extern "C"
14041 #endif
14042 char shl_load ();
14044 main ()
14046 return shl_load ();
14048 return 0;
14050 _ACEOF
14051 rm -f conftest.$ac_objext conftest$ac_exeext
14052 if { (ac_try="$ac_link"
14053 case "(($ac_try" in
14054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14055 *) ac_try_echo=$ac_try;;
14056 esac
14057 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14058 $as_echo "$ac_try_echo") >&5
14059 (eval "$ac_link") 2>conftest.er1
14060 ac_status=$?
14061 grep -v '^ *+' conftest.er1 >conftest.err
14062 rm -f conftest.er1
14063 cat conftest.err >&5
14064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14065 (exit $ac_status); } && {
14066 test -z "$ac_c_werror_flag" ||
14067 test ! -s conftest.err
14068 } && test -s conftest$ac_exeext && {
14069 test "$cross_compiling" = yes ||
14070 $as_test_x conftest$ac_exeext
14071 }; then
14072 ac_cv_lib_dld_shl_load=yes
14073 else
14074 $as_echo "$as_me: failed program was:" >&5
14075 sed 's/^/| /' conftest.$ac_ext >&5
14077 ac_cv_lib_dld_shl_load=no
14080 rm -rf conftest.dSYM
14081 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14082 conftest$ac_exeext conftest.$ac_ext
14083 LIBS=$ac_check_lib_save_LIBS
14085 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14086 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14087 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
14088 cat >>confdefs.h <<_ACEOF
14089 #define HAVE_LIBDLD 1
14090 _ACEOF
14092 LIBS="-ldld $LIBS"
14095 # Dynamic linking for HP-UX
14097 # only check for sem_init if thread support is requested
14098 if test "$with_threads" = "yes" -o -z "$with_threads"; then
14099 { $as_echo "$as_me:$LINENO: checking for library containing sem_init" >&5
14100 $as_echo_n "checking for library containing sem_init... " >&6; }
14101 if test "${ac_cv_search_sem_init+set}" = set; then
14102 $as_echo_n "(cached) " >&6
14103 else
14104 ac_func_search_save_LIBS=$LIBS
14105 cat >conftest.$ac_ext <<_ACEOF
14106 /* confdefs.h. */
14107 _ACEOF
14108 cat confdefs.h >>conftest.$ac_ext
14109 cat >>conftest.$ac_ext <<_ACEOF
14110 /* end confdefs.h. */
14112 /* Override any GCC internal prototype to avoid an error.
14113 Use char because int might match the return type of a GCC
14114 builtin and then its argument prototype would still apply. */
14115 #ifdef __cplusplus
14116 extern "C"
14117 #endif
14118 char sem_init ();
14120 main ()
14122 return sem_init ();
14124 return 0;
14126 _ACEOF
14127 for ac_lib in '' pthread rt posix4; do
14128 if test -z "$ac_lib"; then
14129 ac_res="none required"
14130 else
14131 ac_res=-l$ac_lib
14132 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14134 rm -f conftest.$ac_objext conftest$ac_exeext
14135 if { (ac_try="$ac_link"
14136 case "(($ac_try" in
14137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14138 *) ac_try_echo=$ac_try;;
14139 esac
14140 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14141 $as_echo "$ac_try_echo") >&5
14142 (eval "$ac_link") 2>conftest.er1
14143 ac_status=$?
14144 grep -v '^ *+' conftest.er1 >conftest.err
14145 rm -f conftest.er1
14146 cat conftest.err >&5
14147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14148 (exit $ac_status); } && {
14149 test -z "$ac_c_werror_flag" ||
14150 test ! -s conftest.err
14151 } && test -s conftest$ac_exeext && {
14152 test "$cross_compiling" = yes ||
14153 $as_test_x conftest$ac_exeext
14154 }; then
14155 ac_cv_search_sem_init=$ac_res
14156 else
14157 $as_echo "$as_me: failed program was:" >&5
14158 sed 's/^/| /' conftest.$ac_ext >&5
14163 rm -rf conftest.dSYM
14164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14165 conftest$ac_exeext
14166 if test "${ac_cv_search_sem_init+set}" = set; then
14167 break
14169 done
14170 if test "${ac_cv_search_sem_init+set}" = set; then
14172 else
14173 ac_cv_search_sem_init=no
14175 rm conftest.$ac_ext
14176 LIBS=$ac_func_search_save_LIBS
14178 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
14179 $as_echo "$ac_cv_search_sem_init" >&6; }
14180 ac_res=$ac_cv_search_sem_init
14181 if test "$ac_res" != no; then
14182 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14185 # 'Real Time' functions on Solaris
14186 # posix4 on Solaris 2.6
14187 # pthread (first!) on Linux
14190 # check if we need libintl for locale functions
14191 { $as_echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
14192 $as_echo_n "checking for textdomain in -lintl... " >&6; }
14193 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
14194 $as_echo_n "(cached) " >&6
14195 else
14196 ac_check_lib_save_LIBS=$LIBS
14197 LIBS="-lintl $LIBS"
14198 cat >conftest.$ac_ext <<_ACEOF
14199 /* confdefs.h. */
14200 _ACEOF
14201 cat confdefs.h >>conftest.$ac_ext
14202 cat >>conftest.$ac_ext <<_ACEOF
14203 /* end confdefs.h. */
14205 /* Override any GCC internal prototype to avoid an error.
14206 Use char because int might match the return type of a GCC
14207 builtin and then its argument prototype would still apply. */
14208 #ifdef __cplusplus
14209 extern "C"
14210 #endif
14211 char textdomain ();
14213 main ()
14215 return textdomain ();
14217 return 0;
14219 _ACEOF
14220 rm -f conftest.$ac_objext conftest$ac_exeext
14221 if { (ac_try="$ac_link"
14222 case "(($ac_try" in
14223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14224 *) ac_try_echo=$ac_try;;
14225 esac
14226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14227 $as_echo "$ac_try_echo") >&5
14228 (eval "$ac_link") 2>conftest.er1
14229 ac_status=$?
14230 grep -v '^ *+' conftest.er1 >conftest.err
14231 rm -f conftest.er1
14232 cat conftest.err >&5
14233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14234 (exit $ac_status); } && {
14235 test -z "$ac_c_werror_flag" ||
14236 test ! -s conftest.err
14237 } && test -s conftest$ac_exeext && {
14238 test "$cross_compiling" = yes ||
14239 $as_test_x conftest$ac_exeext
14240 }; then
14241 ac_cv_lib_intl_textdomain=yes
14242 else
14243 $as_echo "$as_me: failed program was:" >&5
14244 sed 's/^/| /' conftest.$ac_ext >&5
14246 ac_cv_lib_intl_textdomain=no
14249 rm -rf conftest.dSYM
14250 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14251 conftest$ac_exeext conftest.$ac_ext
14252 LIBS=$ac_check_lib_save_LIBS
14254 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
14255 $as_echo "$ac_cv_lib_intl_textdomain" >&6; }
14256 if test "x$ac_cv_lib_intl_textdomain" = x""yes; then
14258 cat >>confdefs.h <<\_ACEOF
14259 #define WITH_LIBINTL 1
14260 _ACEOF
14265 # checks for system dependent C++ extensions support
14266 case "$ac_sys_system" in
14267 AIX*) { $as_echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
14268 $as_echo_n "checking for genuine AIX C++ extensions support... " >&6; }
14269 cat >conftest.$ac_ext <<_ACEOF
14270 /* confdefs.h. */
14271 _ACEOF
14272 cat confdefs.h >>conftest.$ac_ext
14273 cat >>conftest.$ac_ext <<_ACEOF
14274 /* end confdefs.h. */
14275 #include "/usr/lpp/xlC/include/load.h"
14277 main ()
14279 loadAndInit("", 0, "")
14281 return 0;
14283 _ACEOF
14284 rm -f conftest.$ac_objext conftest$ac_exeext
14285 if { (ac_try="$ac_link"
14286 case "(($ac_try" in
14287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14288 *) ac_try_echo=$ac_try;;
14289 esac
14290 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14291 $as_echo "$ac_try_echo") >&5
14292 (eval "$ac_link") 2>conftest.er1
14293 ac_status=$?
14294 grep -v '^ *+' conftest.er1 >conftest.err
14295 rm -f conftest.er1
14296 cat conftest.err >&5
14297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14298 (exit $ac_status); } && {
14299 test -z "$ac_c_werror_flag" ||
14300 test ! -s conftest.err
14301 } && test -s conftest$ac_exeext && {
14302 test "$cross_compiling" = yes ||
14303 $as_test_x conftest$ac_exeext
14304 }; then
14306 cat >>confdefs.h <<\_ACEOF
14307 #define AIX_GENUINE_CPLUSPLUS 1
14308 _ACEOF
14310 { $as_echo "$as_me:$LINENO: result: yes" >&5
14311 $as_echo "yes" >&6; }
14312 else
14313 $as_echo "$as_me: failed program was:" >&5
14314 sed 's/^/| /' conftest.$ac_ext >&5
14316 { $as_echo "$as_me:$LINENO: result: no" >&5
14317 $as_echo "no" >&6; }
14320 rm -rf conftest.dSYM
14321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14322 conftest$ac_exeext conftest.$ac_ext;;
14323 *) ;;
14324 esac
14326 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
14327 # BeOS' sockets are stashed in libnet.
14328 { $as_echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
14329 $as_echo_n "checking for t_open in -lnsl... " >&6; }
14330 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
14331 $as_echo_n "(cached) " >&6
14332 else
14333 ac_check_lib_save_LIBS=$LIBS
14334 LIBS="-lnsl $LIBS"
14335 cat >conftest.$ac_ext <<_ACEOF
14336 /* confdefs.h. */
14337 _ACEOF
14338 cat confdefs.h >>conftest.$ac_ext
14339 cat >>conftest.$ac_ext <<_ACEOF
14340 /* end confdefs.h. */
14342 /* Override any GCC internal prototype to avoid an error.
14343 Use char because int might match the return type of a GCC
14344 builtin and then its argument prototype would still apply. */
14345 #ifdef __cplusplus
14346 extern "C"
14347 #endif
14348 char t_open ();
14350 main ()
14352 return t_open ();
14354 return 0;
14356 _ACEOF
14357 rm -f conftest.$ac_objext conftest$ac_exeext
14358 if { (ac_try="$ac_link"
14359 case "(($ac_try" in
14360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14361 *) ac_try_echo=$ac_try;;
14362 esac
14363 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14364 $as_echo "$ac_try_echo") >&5
14365 (eval "$ac_link") 2>conftest.er1
14366 ac_status=$?
14367 grep -v '^ *+' conftest.er1 >conftest.err
14368 rm -f conftest.er1
14369 cat conftest.err >&5
14370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14371 (exit $ac_status); } && {
14372 test -z "$ac_c_werror_flag" ||
14373 test ! -s conftest.err
14374 } && test -s conftest$ac_exeext && {
14375 test "$cross_compiling" = yes ||
14376 $as_test_x conftest$ac_exeext
14377 }; then
14378 ac_cv_lib_nsl_t_open=yes
14379 else
14380 $as_echo "$as_me: failed program was:" >&5
14381 sed 's/^/| /' conftest.$ac_ext >&5
14383 ac_cv_lib_nsl_t_open=no
14386 rm -rf conftest.dSYM
14387 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14388 conftest$ac_exeext conftest.$ac_ext
14389 LIBS=$ac_check_lib_save_LIBS
14391 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
14392 $as_echo "$ac_cv_lib_nsl_t_open" >&6; }
14393 if test "x$ac_cv_lib_nsl_t_open" = x""yes; then
14394 LIBS="-lnsl $LIBS"
14396 # SVR4
14397 { $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
14398 $as_echo_n "checking for socket in -lsocket... " >&6; }
14399 if test "${ac_cv_lib_socket_socket+set}" = set; then
14400 $as_echo_n "(cached) " >&6
14401 else
14402 ac_check_lib_save_LIBS=$LIBS
14403 LIBS="-lsocket $LIBS $LIBS"
14404 cat >conftest.$ac_ext <<_ACEOF
14405 /* confdefs.h. */
14406 _ACEOF
14407 cat confdefs.h >>conftest.$ac_ext
14408 cat >>conftest.$ac_ext <<_ACEOF
14409 /* end confdefs.h. */
14411 /* Override any GCC internal prototype to avoid an error.
14412 Use char because int might match the return type of a GCC
14413 builtin and then its argument prototype would still apply. */
14414 #ifdef __cplusplus
14415 extern "C"
14416 #endif
14417 char socket ();
14419 main ()
14421 return socket ();
14423 return 0;
14425 _ACEOF
14426 rm -f conftest.$ac_objext conftest$ac_exeext
14427 if { (ac_try="$ac_link"
14428 case "(($ac_try" in
14429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14430 *) ac_try_echo=$ac_try;;
14431 esac
14432 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14433 $as_echo "$ac_try_echo") >&5
14434 (eval "$ac_link") 2>conftest.er1
14435 ac_status=$?
14436 grep -v '^ *+' conftest.er1 >conftest.err
14437 rm -f conftest.er1
14438 cat conftest.err >&5
14439 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14440 (exit $ac_status); } && {
14441 test -z "$ac_c_werror_flag" ||
14442 test ! -s conftest.err
14443 } && test -s conftest$ac_exeext && {
14444 test "$cross_compiling" = yes ||
14445 $as_test_x conftest$ac_exeext
14446 }; then
14447 ac_cv_lib_socket_socket=yes
14448 else
14449 $as_echo "$as_me: failed program was:" >&5
14450 sed 's/^/| /' conftest.$ac_ext >&5
14452 ac_cv_lib_socket_socket=no
14455 rm -rf conftest.dSYM
14456 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14457 conftest$ac_exeext conftest.$ac_ext
14458 LIBS=$ac_check_lib_save_LIBS
14460 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
14461 $as_echo "$ac_cv_lib_socket_socket" >&6; }
14462 if test "x$ac_cv_lib_socket_socket" = x""yes; then
14463 LIBS="-lsocket $LIBS"
14465 # SVR4 sockets
14467 case "$ac_sys_system" in
14468 BeOS*)
14469 { $as_echo "$as_me:$LINENO: checking for socket in -lnet" >&5
14470 $as_echo_n "checking for socket in -lnet... " >&6; }
14471 if test "${ac_cv_lib_net_socket+set}" = set; then
14472 $as_echo_n "(cached) " >&6
14473 else
14474 ac_check_lib_save_LIBS=$LIBS
14475 LIBS="-lnet $LIBS $LIBS"
14476 cat >conftest.$ac_ext <<_ACEOF
14477 /* confdefs.h. */
14478 _ACEOF
14479 cat confdefs.h >>conftest.$ac_ext
14480 cat >>conftest.$ac_ext <<_ACEOF
14481 /* end confdefs.h. */
14483 /* Override any GCC internal prototype to avoid an error.
14484 Use char because int might match the return type of a GCC
14485 builtin and then its argument prototype would still apply. */
14486 #ifdef __cplusplus
14487 extern "C"
14488 #endif
14489 char socket ();
14491 main ()
14493 return socket ();
14495 return 0;
14497 _ACEOF
14498 rm -f conftest.$ac_objext conftest$ac_exeext
14499 if { (ac_try="$ac_link"
14500 case "(($ac_try" in
14501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14502 *) ac_try_echo=$ac_try;;
14503 esac
14504 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14505 $as_echo "$ac_try_echo") >&5
14506 (eval "$ac_link") 2>conftest.er1
14507 ac_status=$?
14508 grep -v '^ *+' conftest.er1 >conftest.err
14509 rm -f conftest.er1
14510 cat conftest.err >&5
14511 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14512 (exit $ac_status); } && {
14513 test -z "$ac_c_werror_flag" ||
14514 test ! -s conftest.err
14515 } && test -s conftest$ac_exeext && {
14516 test "$cross_compiling" = yes ||
14517 $as_test_x conftest$ac_exeext
14518 }; then
14519 ac_cv_lib_net_socket=yes
14520 else
14521 $as_echo "$as_me: failed program was:" >&5
14522 sed 's/^/| /' conftest.$ac_ext >&5
14524 ac_cv_lib_net_socket=no
14527 rm -rf conftest.dSYM
14528 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14529 conftest$ac_exeext conftest.$ac_ext
14530 LIBS=$ac_check_lib_save_LIBS
14532 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
14533 $as_echo "$ac_cv_lib_net_socket" >&6; }
14534 if test "x$ac_cv_lib_net_socket" = x""yes; then
14535 LIBS="-lnet $LIBS"
14537 # BeOS
14539 esac
14541 { $as_echo "$as_me:$LINENO: checking for --with-libs" >&5
14542 $as_echo_n "checking for --with-libs... " >&6; }
14544 # Check whether --with-libs was given.
14545 if test "${with_libs+set}" = set; then
14546 withval=$with_libs;
14547 { $as_echo "$as_me:$LINENO: result: $withval" >&5
14548 $as_echo "$withval" >&6; }
14549 LIBS="$withval $LIBS"
14551 else
14552 { $as_echo "$as_me:$LINENO: result: no" >&5
14553 $as_echo "no" >&6; }
14557 # Check for use of the system libffi library
14558 { $as_echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
14559 $as_echo_n "checking for --with-system-ffi... " >&6; }
14561 # Check whether --with-system_ffi was given.
14562 if test "${with_system_ffi+set}" = set; then
14563 withval=$with_system_ffi;
14567 { $as_echo "$as_me:$LINENO: result: $with_system_ffi" >&5
14568 $as_echo "$with_system_ffi" >&6; }
14570 # Check for --with-dbmliborder
14571 { $as_echo "$as_me:$LINENO: checking for --with-dbmliborder" >&5
14572 $as_echo_n "checking for --with-dbmliborder... " >&6; }
14574 # Check whether --with-dbmliborder was given.
14575 if test "${with_dbmliborder+set}" = set; then
14576 withval=$with_dbmliborder;
14577 if test x$with_dbmliborder = xyes
14578 then
14579 { { $as_echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5
14580 $as_echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;}
14581 { (exit 1); exit 1; }; }
14582 else
14583 for db in `echo $with_dbmliborder | sed 's/:/ /g'`; do
14584 if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb
14585 then
14586 { { $as_echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5
14587 $as_echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;}
14588 { (exit 1); exit 1; }; }
14590 done
14594 { $as_echo "$as_me:$LINENO: result: $with_dbmliborder" >&5
14595 $as_echo "$with_dbmliborder" >&6; }
14597 # Determine if signalmodule should be used.
14600 { $as_echo "$as_me:$LINENO: checking for --with-signal-module" >&5
14601 $as_echo_n "checking for --with-signal-module... " >&6; }
14603 # Check whether --with-signal-module was given.
14604 if test "${with_signal_module+set}" = set; then
14605 withval=$with_signal_module;
14609 if test -z "$with_signal_module"
14610 then with_signal_module="yes"
14612 { $as_echo "$as_me:$LINENO: result: $with_signal_module" >&5
14613 $as_echo "$with_signal_module" >&6; }
14615 if test "${with_signal_module}" = "yes"; then
14616 USE_SIGNAL_MODULE=""
14617 SIGNAL_OBJS=""
14618 else
14619 USE_SIGNAL_MODULE="#"
14620 SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o"
14623 # This is used to generate Setup.config
14625 USE_THREAD_MODULE=""
14627 { $as_echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
14628 $as_echo_n "checking for --with-dec-threads... " >&6; }
14631 # Check whether --with-dec-threads was given.
14632 if test "${with_dec_threads+set}" = set; then
14633 withval=$with_dec_threads;
14634 { $as_echo "$as_me:$LINENO: result: $withval" >&5
14635 $as_echo "$withval" >&6; }
14636 LDLAST=-threads
14637 if test "${with_thread+set}" != set; then
14638 with_thread="$withval";
14640 else
14641 { $as_echo "$as_me:$LINENO: result: no" >&5
14642 $as_echo "no" >&6; }
14646 # Templates for things AC_DEFINEd more than once.
14647 # For a single AC_DEFINE, no template is needed.
14655 { $as_echo "$as_me:$LINENO: checking for --with-threads" >&5
14656 $as_echo_n "checking for --with-threads... " >&6; }
14658 # Check whether --with-threads was given.
14659 if test "${with_threads+set}" = set; then
14660 withval=$with_threads;
14664 # --with-thread is deprecated, but check for it anyway
14666 # Check whether --with-thread was given.
14667 if test "${with_thread+set}" = set; then
14668 withval=$with_thread; with_threads=$with_thread
14672 if test -z "$with_threads"
14673 then with_threads="yes"
14675 { $as_echo "$as_me:$LINENO: result: $with_threads" >&5
14676 $as_echo "$with_threads" >&6; }
14679 if test "$with_threads" = "no"
14680 then
14681 USE_THREAD_MODULE="#"
14682 elif test "$ac_cv_pthread_is_default" = yes
14683 then
14684 cat >>confdefs.h <<\_ACEOF
14685 #define WITH_THREAD 1
14686 _ACEOF
14688 # Defining _REENTRANT on system with POSIX threads should not hurt.
14689 cat >>confdefs.h <<\_ACEOF
14690 #define _REENTRANT 1
14691 _ACEOF
14693 posix_threads=yes
14694 THREADOBJ="Python/thread.o"
14695 elif test "$ac_cv_kpthread" = "yes"
14696 then
14697 CC="$CC -Kpthread"
14698 if test "$ac_cv_cxx_thread" = "yes"; then
14699 CXX="$CXX -Kpthread"
14701 cat >>confdefs.h <<\_ACEOF
14702 #define WITH_THREAD 1
14703 _ACEOF
14705 posix_threads=yes
14706 THREADOBJ="Python/thread.o"
14707 elif test "$ac_cv_kthread" = "yes"
14708 then
14709 CC="$CC -Kthread"
14710 if test "$ac_cv_cxx_thread" = "yes"; then
14711 CXX="$CXX -Kthread"
14713 cat >>confdefs.h <<\_ACEOF
14714 #define WITH_THREAD 1
14715 _ACEOF
14717 posix_threads=yes
14718 THREADOBJ="Python/thread.o"
14719 elif test "$ac_cv_pthread" = "yes"
14720 then
14721 CC="$CC -pthread"
14722 if test "$ac_cv_cxx_thread" = "yes"; then
14723 CXX="$CXX -pthread"
14725 cat >>confdefs.h <<\_ACEOF
14726 #define WITH_THREAD 1
14727 _ACEOF
14729 posix_threads=yes
14730 THREADOBJ="Python/thread.o"
14731 else
14732 if test ! -z "$with_threads" -a -d "$with_threads"
14733 then LDFLAGS="$LDFLAGS -L$with_threads"
14735 if test ! -z "$withval" -a -d "$withval"
14736 then LDFLAGS="$LDFLAGS -L$withval"
14739 # According to the POSIX spec, a pthreads implementation must
14740 # define _POSIX_THREADS in unistd.h. Some apparently don't
14741 # (e.g. gnu pth with pthread emulation)
14742 { $as_echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
14743 $as_echo_n "checking for _POSIX_THREADS in unistd.h... " >&6; }
14744 cat >conftest.$ac_ext <<_ACEOF
14745 /* confdefs.h. */
14746 _ACEOF
14747 cat confdefs.h >>conftest.$ac_ext
14748 cat >>conftest.$ac_ext <<_ACEOF
14749 /* end confdefs.h. */
14751 #include <unistd.h>
14752 #ifdef _POSIX_THREADS
14754 #endif
14756 _ACEOF
14757 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14758 $EGREP "yes" >/dev/null 2>&1; then
14759 unistd_defines_pthreads=yes
14760 else
14761 unistd_defines_pthreads=no
14763 rm -f conftest*
14765 { $as_echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
14766 $as_echo "$unistd_defines_pthreads" >&6; }
14768 cat >>confdefs.h <<\_ACEOF
14769 #define _REENTRANT 1
14770 _ACEOF
14772 if test "${ac_cv_header_cthreads_h+set}" = set; then
14773 { $as_echo "$as_me:$LINENO: checking for cthreads.h" >&5
14774 $as_echo_n "checking for cthreads.h... " >&6; }
14775 if test "${ac_cv_header_cthreads_h+set}" = set; then
14776 $as_echo_n "(cached) " >&6
14778 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
14779 $as_echo "$ac_cv_header_cthreads_h" >&6; }
14780 else
14781 # Is the header compilable?
14782 { $as_echo "$as_me:$LINENO: checking cthreads.h usability" >&5
14783 $as_echo_n "checking cthreads.h usability... " >&6; }
14784 cat >conftest.$ac_ext <<_ACEOF
14785 /* confdefs.h. */
14786 _ACEOF
14787 cat confdefs.h >>conftest.$ac_ext
14788 cat >>conftest.$ac_ext <<_ACEOF
14789 /* end confdefs.h. */
14790 $ac_includes_default
14791 #include <cthreads.h>
14792 _ACEOF
14793 rm -f conftest.$ac_objext
14794 if { (ac_try="$ac_compile"
14795 case "(($ac_try" in
14796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14797 *) ac_try_echo=$ac_try;;
14798 esac
14799 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14800 $as_echo "$ac_try_echo") >&5
14801 (eval "$ac_compile") 2>conftest.er1
14802 ac_status=$?
14803 grep -v '^ *+' conftest.er1 >conftest.err
14804 rm -f conftest.er1
14805 cat conftest.err >&5
14806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14807 (exit $ac_status); } && {
14808 test -z "$ac_c_werror_flag" ||
14809 test ! -s conftest.err
14810 } && test -s conftest.$ac_objext; then
14811 ac_header_compiler=yes
14812 else
14813 $as_echo "$as_me: failed program was:" >&5
14814 sed 's/^/| /' conftest.$ac_ext >&5
14816 ac_header_compiler=no
14819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14820 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14821 $as_echo "$ac_header_compiler" >&6; }
14823 # Is the header present?
14824 { $as_echo "$as_me:$LINENO: checking cthreads.h presence" >&5
14825 $as_echo_n "checking cthreads.h presence... " >&6; }
14826 cat >conftest.$ac_ext <<_ACEOF
14827 /* confdefs.h. */
14828 _ACEOF
14829 cat confdefs.h >>conftest.$ac_ext
14830 cat >>conftest.$ac_ext <<_ACEOF
14831 /* end confdefs.h. */
14832 #include <cthreads.h>
14833 _ACEOF
14834 if { (ac_try="$ac_cpp conftest.$ac_ext"
14835 case "(($ac_try" in
14836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14837 *) ac_try_echo=$ac_try;;
14838 esac
14839 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14840 $as_echo "$ac_try_echo") >&5
14841 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14842 ac_status=$?
14843 grep -v '^ *+' conftest.er1 >conftest.err
14844 rm -f conftest.er1
14845 cat conftest.err >&5
14846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14847 (exit $ac_status); } >/dev/null && {
14848 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14849 test ! -s conftest.err
14850 }; then
14851 ac_header_preproc=yes
14852 else
14853 $as_echo "$as_me: failed program was:" >&5
14854 sed 's/^/| /' conftest.$ac_ext >&5
14856 ac_header_preproc=no
14859 rm -f conftest.err conftest.$ac_ext
14860 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14861 $as_echo "$ac_header_preproc" >&6; }
14863 # So? What about this header?
14864 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14865 yes:no: )
14866 { $as_echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14867 $as_echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14868 { $as_echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
14869 $as_echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
14870 ac_header_preproc=yes
14872 no:yes:* )
14873 { $as_echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
14874 $as_echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
14875 { $as_echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
14876 $as_echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
14877 { $as_echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
14878 $as_echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
14879 { $as_echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
14880 $as_echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
14881 { $as_echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
14882 $as_echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
14883 { $as_echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
14884 $as_echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
14885 ( cat <<\_ASBOX
14886 ## -------------------------------------- ##
14887 ## Report this to http://bugs.python.org/ ##
14888 ## -------------------------------------- ##
14889 _ASBOX
14890 ) | sed "s/^/$as_me: WARNING: /" >&2
14892 esac
14893 { $as_echo "$as_me:$LINENO: checking for cthreads.h" >&5
14894 $as_echo_n "checking for cthreads.h... " >&6; }
14895 if test "${ac_cv_header_cthreads_h+set}" = set; then
14896 $as_echo_n "(cached) " >&6
14897 else
14898 ac_cv_header_cthreads_h=$ac_header_preproc
14900 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
14901 $as_echo "$ac_cv_header_cthreads_h" >&6; }
14904 if test "x$ac_cv_header_cthreads_h" = x""yes; then
14905 cat >>confdefs.h <<\_ACEOF
14906 #define WITH_THREAD 1
14907 _ACEOF
14909 cat >>confdefs.h <<\_ACEOF
14910 #define C_THREADS 1
14911 _ACEOF
14914 cat >>confdefs.h <<\_ACEOF
14915 #define HURD_C_THREADS 1
14916 _ACEOF
14918 LIBS="$LIBS -lthreads"
14919 THREADOBJ="Python/thread.o"
14920 else
14922 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14923 { $as_echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
14924 $as_echo_n "checking for mach/cthreads.h... " >&6; }
14925 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14926 $as_echo_n "(cached) " >&6
14928 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
14929 $as_echo "$ac_cv_header_mach_cthreads_h" >&6; }
14930 else
14931 # Is the header compilable?
14932 { $as_echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
14933 $as_echo_n "checking mach/cthreads.h usability... " >&6; }
14934 cat >conftest.$ac_ext <<_ACEOF
14935 /* confdefs.h. */
14936 _ACEOF
14937 cat confdefs.h >>conftest.$ac_ext
14938 cat >>conftest.$ac_ext <<_ACEOF
14939 /* end confdefs.h. */
14940 $ac_includes_default
14941 #include <mach/cthreads.h>
14942 _ACEOF
14943 rm -f conftest.$ac_objext
14944 if { (ac_try="$ac_compile"
14945 case "(($ac_try" in
14946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14947 *) ac_try_echo=$ac_try;;
14948 esac
14949 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14950 $as_echo "$ac_try_echo") >&5
14951 (eval "$ac_compile") 2>conftest.er1
14952 ac_status=$?
14953 grep -v '^ *+' conftest.er1 >conftest.err
14954 rm -f conftest.er1
14955 cat conftest.err >&5
14956 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14957 (exit $ac_status); } && {
14958 test -z "$ac_c_werror_flag" ||
14959 test ! -s conftest.err
14960 } && test -s conftest.$ac_objext; then
14961 ac_header_compiler=yes
14962 else
14963 $as_echo "$as_me: failed program was:" >&5
14964 sed 's/^/| /' conftest.$ac_ext >&5
14966 ac_header_compiler=no
14969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14970 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14971 $as_echo "$ac_header_compiler" >&6; }
14973 # Is the header present?
14974 { $as_echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
14975 $as_echo_n "checking mach/cthreads.h presence... " >&6; }
14976 cat >conftest.$ac_ext <<_ACEOF
14977 /* confdefs.h. */
14978 _ACEOF
14979 cat confdefs.h >>conftest.$ac_ext
14980 cat >>conftest.$ac_ext <<_ACEOF
14981 /* end confdefs.h. */
14982 #include <mach/cthreads.h>
14983 _ACEOF
14984 if { (ac_try="$ac_cpp conftest.$ac_ext"
14985 case "(($ac_try" in
14986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14987 *) ac_try_echo=$ac_try;;
14988 esac
14989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14990 $as_echo "$ac_try_echo") >&5
14991 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14992 ac_status=$?
14993 grep -v '^ *+' conftest.er1 >conftest.err
14994 rm -f conftest.er1
14995 cat conftest.err >&5
14996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14997 (exit $ac_status); } >/dev/null && {
14998 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14999 test ! -s conftest.err
15000 }; then
15001 ac_header_preproc=yes
15002 else
15003 $as_echo "$as_me: failed program was:" >&5
15004 sed 's/^/| /' conftest.$ac_ext >&5
15006 ac_header_preproc=no
15009 rm -f conftest.err conftest.$ac_ext
15010 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15011 $as_echo "$ac_header_preproc" >&6; }
15013 # So? What about this header?
15014 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15015 yes:no: )
15016 { $as_echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
15017 $as_echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15018 { $as_echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
15019 $as_echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
15020 ac_header_preproc=yes
15022 no:yes:* )
15023 { $as_echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
15024 $as_echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
15025 { $as_echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
15026 $as_echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
15027 { $as_echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
15028 $as_echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
15029 { $as_echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
15030 $as_echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
15031 { $as_echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
15032 $as_echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
15033 { $as_echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
15034 $as_echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
15035 ( cat <<\_ASBOX
15036 ## -------------------------------------- ##
15037 ## Report this to http://bugs.python.org/ ##
15038 ## -------------------------------------- ##
15039 _ASBOX
15040 ) | sed "s/^/$as_me: WARNING: /" >&2
15042 esac
15043 { $as_echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
15044 $as_echo_n "checking for mach/cthreads.h... " >&6; }
15045 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
15046 $as_echo_n "(cached) " >&6
15047 else
15048 ac_cv_header_mach_cthreads_h=$ac_header_preproc
15050 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
15051 $as_echo "$ac_cv_header_mach_cthreads_h" >&6; }
15054 if test "x$ac_cv_header_mach_cthreads_h" = x""yes; then
15055 cat >>confdefs.h <<\_ACEOF
15056 #define WITH_THREAD 1
15057 _ACEOF
15059 cat >>confdefs.h <<\_ACEOF
15060 #define C_THREADS 1
15061 _ACEOF
15064 cat >>confdefs.h <<\_ACEOF
15065 #define MACH_C_THREADS 1
15066 _ACEOF
15068 THREADOBJ="Python/thread.o"
15069 else
15071 { $as_echo "$as_me:$LINENO: checking for --with-pth" >&5
15072 $as_echo_n "checking for --with-pth... " >&6; }
15074 # Check whether --with-pth was given.
15075 if test "${with_pth+set}" = set; then
15076 withval=$with_pth; { $as_echo "$as_me:$LINENO: result: $withval" >&5
15077 $as_echo "$withval" >&6; }
15078 cat >>confdefs.h <<\_ACEOF
15079 #define WITH_THREAD 1
15080 _ACEOF
15083 cat >>confdefs.h <<\_ACEOF
15084 #define HAVE_PTH 1
15085 _ACEOF
15087 LIBS="-lpth $LIBS"
15088 THREADOBJ="Python/thread.o"
15089 else
15090 { $as_echo "$as_me:$LINENO: result: no" >&5
15091 $as_echo "no" >&6; }
15093 # Just looking for pthread_create in libpthread is not enough:
15094 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
15095 # So we really have to include pthread.h, and then link.
15096 _libs=$LIBS
15097 LIBS="$LIBS -lpthread"
15098 { $as_echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
15099 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
15100 cat >conftest.$ac_ext <<_ACEOF
15101 /* confdefs.h. */
15102 _ACEOF
15103 cat confdefs.h >>conftest.$ac_ext
15104 cat >>conftest.$ac_ext <<_ACEOF
15105 /* end confdefs.h. */
15106 #include <pthread.h>
15108 void * start_routine (void *arg) { exit (0); }
15110 main ()
15113 pthread_create (NULL, NULL, start_routine, NULL)
15115 return 0;
15117 _ACEOF
15118 rm -f conftest.$ac_objext conftest$ac_exeext
15119 if { (ac_try="$ac_link"
15120 case "(($ac_try" in
15121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15122 *) ac_try_echo=$ac_try;;
15123 esac
15124 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15125 $as_echo "$ac_try_echo") >&5
15126 (eval "$ac_link") 2>conftest.er1
15127 ac_status=$?
15128 grep -v '^ *+' conftest.er1 >conftest.err
15129 rm -f conftest.er1
15130 cat conftest.err >&5
15131 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15132 (exit $ac_status); } && {
15133 test -z "$ac_c_werror_flag" ||
15134 test ! -s conftest.err
15135 } && test -s conftest$ac_exeext && {
15136 test "$cross_compiling" = yes ||
15137 $as_test_x conftest$ac_exeext
15138 }; then
15140 { $as_echo "$as_me:$LINENO: result: yes" >&5
15141 $as_echo "yes" >&6; }
15142 cat >>confdefs.h <<\_ACEOF
15143 #define WITH_THREAD 1
15144 _ACEOF
15146 posix_threads=yes
15147 THREADOBJ="Python/thread.o"
15148 else
15149 $as_echo "$as_me: failed program was:" >&5
15150 sed 's/^/| /' conftest.$ac_ext >&5
15153 LIBS=$_libs
15154 { $as_echo "$as_me:$LINENO: checking for pthread_detach" >&5
15155 $as_echo_n "checking for pthread_detach... " >&6; }
15156 if test "${ac_cv_func_pthread_detach+set}" = set; then
15157 $as_echo_n "(cached) " >&6
15158 else
15159 cat >conftest.$ac_ext <<_ACEOF
15160 /* confdefs.h. */
15161 _ACEOF
15162 cat confdefs.h >>conftest.$ac_ext
15163 cat >>conftest.$ac_ext <<_ACEOF
15164 /* end confdefs.h. */
15165 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
15166 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15167 #define pthread_detach innocuous_pthread_detach
15169 /* System header to define __stub macros and hopefully few prototypes,
15170 which can conflict with char pthread_detach (); below.
15171 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15172 <limits.h> exists even on freestanding compilers. */
15174 #ifdef __STDC__
15175 # include <limits.h>
15176 #else
15177 # include <assert.h>
15178 #endif
15180 #undef pthread_detach
15182 /* Override any GCC internal prototype to avoid an error.
15183 Use char because int might match the return type of a GCC
15184 builtin and then its argument prototype would still apply. */
15185 #ifdef __cplusplus
15186 extern "C"
15187 #endif
15188 char pthread_detach ();
15189 /* The GNU C library defines this for functions which it implements
15190 to always fail with ENOSYS. Some functions are actually named
15191 something starting with __ and the normal name is an alias. */
15192 #if defined __stub_pthread_detach || defined __stub___pthread_detach
15193 choke me
15194 #endif
15197 main ()
15199 return pthread_detach ();
15201 return 0;
15203 _ACEOF
15204 rm -f conftest.$ac_objext conftest$ac_exeext
15205 if { (ac_try="$ac_link"
15206 case "(($ac_try" in
15207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15208 *) ac_try_echo=$ac_try;;
15209 esac
15210 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15211 $as_echo "$ac_try_echo") >&5
15212 (eval "$ac_link") 2>conftest.er1
15213 ac_status=$?
15214 grep -v '^ *+' conftest.er1 >conftest.err
15215 rm -f conftest.er1
15216 cat conftest.err >&5
15217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15218 (exit $ac_status); } && {
15219 test -z "$ac_c_werror_flag" ||
15220 test ! -s conftest.err
15221 } && test -s conftest$ac_exeext && {
15222 test "$cross_compiling" = yes ||
15223 $as_test_x conftest$ac_exeext
15224 }; then
15225 ac_cv_func_pthread_detach=yes
15226 else
15227 $as_echo "$as_me: failed program was:" >&5
15228 sed 's/^/| /' conftest.$ac_ext >&5
15230 ac_cv_func_pthread_detach=no
15233 rm -rf conftest.dSYM
15234 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15235 conftest$ac_exeext conftest.$ac_ext
15237 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
15238 $as_echo "$ac_cv_func_pthread_detach" >&6; }
15239 if test "x$ac_cv_func_pthread_detach" = x""yes; then
15240 cat >>confdefs.h <<\_ACEOF
15241 #define WITH_THREAD 1
15242 _ACEOF
15244 posix_threads=yes
15245 THREADOBJ="Python/thread.o"
15246 else
15248 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
15249 { $as_echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
15250 $as_echo_n "checking for atheos/threads.h... " >&6; }
15251 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
15252 $as_echo_n "(cached) " >&6
15254 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
15255 $as_echo "$ac_cv_header_atheos_threads_h" >&6; }
15256 else
15257 # Is the header compilable?
15258 { $as_echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
15259 $as_echo_n "checking atheos/threads.h usability... " >&6; }
15260 cat >conftest.$ac_ext <<_ACEOF
15261 /* confdefs.h. */
15262 _ACEOF
15263 cat confdefs.h >>conftest.$ac_ext
15264 cat >>conftest.$ac_ext <<_ACEOF
15265 /* end confdefs.h. */
15266 $ac_includes_default
15267 #include <atheos/threads.h>
15268 _ACEOF
15269 rm -f conftest.$ac_objext
15270 if { (ac_try="$ac_compile"
15271 case "(($ac_try" in
15272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15273 *) ac_try_echo=$ac_try;;
15274 esac
15275 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15276 $as_echo "$ac_try_echo") >&5
15277 (eval "$ac_compile") 2>conftest.er1
15278 ac_status=$?
15279 grep -v '^ *+' conftest.er1 >conftest.err
15280 rm -f conftest.er1
15281 cat conftest.err >&5
15282 $as_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_objext; then
15287 ac_header_compiler=yes
15288 else
15289 $as_echo "$as_me: failed program was:" >&5
15290 sed 's/^/| /' conftest.$ac_ext >&5
15292 ac_header_compiler=no
15295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15296 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15297 $as_echo "$ac_header_compiler" >&6; }
15299 # Is the header present?
15300 { $as_echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
15301 $as_echo_n "checking atheos/threads.h presence... " >&6; }
15302 cat >conftest.$ac_ext <<_ACEOF
15303 /* confdefs.h. */
15304 _ACEOF
15305 cat confdefs.h >>conftest.$ac_ext
15306 cat >>conftest.$ac_ext <<_ACEOF
15307 /* end confdefs.h. */
15308 #include <atheos/threads.h>
15309 _ACEOF
15310 if { (ac_try="$ac_cpp conftest.$ac_ext"
15311 case "(($ac_try" in
15312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15313 *) ac_try_echo=$ac_try;;
15314 esac
15315 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15316 $as_echo "$ac_try_echo") >&5
15317 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15318 ac_status=$?
15319 grep -v '^ *+' conftest.er1 >conftest.err
15320 rm -f conftest.er1
15321 cat conftest.err >&5
15322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15323 (exit $ac_status); } >/dev/null && {
15324 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15325 test ! -s conftest.err
15326 }; then
15327 ac_header_preproc=yes
15328 else
15329 $as_echo "$as_me: failed program was:" >&5
15330 sed 's/^/| /' conftest.$ac_ext >&5
15332 ac_header_preproc=no
15335 rm -f conftest.err conftest.$ac_ext
15336 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15337 $as_echo "$ac_header_preproc" >&6; }
15339 # So? What about this header?
15340 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15341 yes:no: )
15342 { $as_echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
15343 $as_echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15344 { $as_echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
15345 $as_echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
15346 ac_header_preproc=yes
15348 no:yes:* )
15349 { $as_echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
15350 $as_echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
15351 { $as_echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
15352 $as_echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
15353 { $as_echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
15354 $as_echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
15355 { $as_echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
15356 $as_echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
15357 { $as_echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
15358 $as_echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
15359 { $as_echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
15360 $as_echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
15361 ( cat <<\_ASBOX
15362 ## -------------------------------------- ##
15363 ## Report this to http://bugs.python.org/ ##
15364 ## -------------------------------------- ##
15365 _ASBOX
15366 ) | sed "s/^/$as_me: WARNING: /" >&2
15368 esac
15369 { $as_echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
15370 $as_echo_n "checking for atheos/threads.h... " >&6; }
15371 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
15372 $as_echo_n "(cached) " >&6
15373 else
15374 ac_cv_header_atheos_threads_h=$ac_header_preproc
15376 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
15377 $as_echo "$ac_cv_header_atheos_threads_h" >&6; }
15380 if test "x$ac_cv_header_atheos_threads_h" = x""yes; then
15381 cat >>confdefs.h <<\_ACEOF
15382 #define WITH_THREAD 1
15383 _ACEOF
15386 cat >>confdefs.h <<\_ACEOF
15387 #define ATHEOS_THREADS 1
15388 _ACEOF
15390 THREADOBJ="Python/thread.o"
15391 else
15393 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
15394 { $as_echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
15395 $as_echo_n "checking for kernel/OS.h... " >&6; }
15396 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
15397 $as_echo_n "(cached) " >&6
15399 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
15400 $as_echo "$ac_cv_header_kernel_OS_h" >&6; }
15401 else
15402 # Is the header compilable?
15403 { $as_echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
15404 $as_echo_n "checking kernel/OS.h usability... " >&6; }
15405 cat >conftest.$ac_ext <<_ACEOF
15406 /* confdefs.h. */
15407 _ACEOF
15408 cat confdefs.h >>conftest.$ac_ext
15409 cat >>conftest.$ac_ext <<_ACEOF
15410 /* end confdefs.h. */
15411 $ac_includes_default
15412 #include <kernel/OS.h>
15413 _ACEOF
15414 rm -f conftest.$ac_objext
15415 if { (ac_try="$ac_compile"
15416 case "(($ac_try" in
15417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15418 *) ac_try_echo=$ac_try;;
15419 esac
15420 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15421 $as_echo "$ac_try_echo") >&5
15422 (eval "$ac_compile") 2>conftest.er1
15423 ac_status=$?
15424 grep -v '^ *+' conftest.er1 >conftest.err
15425 rm -f conftest.er1
15426 cat conftest.err >&5
15427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15428 (exit $ac_status); } && {
15429 test -z "$ac_c_werror_flag" ||
15430 test ! -s conftest.err
15431 } && test -s conftest.$ac_objext; then
15432 ac_header_compiler=yes
15433 else
15434 $as_echo "$as_me: failed program was:" >&5
15435 sed 's/^/| /' conftest.$ac_ext >&5
15437 ac_header_compiler=no
15440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15441 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15442 $as_echo "$ac_header_compiler" >&6; }
15444 # Is the header present?
15445 { $as_echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
15446 $as_echo_n "checking kernel/OS.h presence... " >&6; }
15447 cat >conftest.$ac_ext <<_ACEOF
15448 /* confdefs.h. */
15449 _ACEOF
15450 cat confdefs.h >>conftest.$ac_ext
15451 cat >>conftest.$ac_ext <<_ACEOF
15452 /* end confdefs.h. */
15453 #include <kernel/OS.h>
15454 _ACEOF
15455 if { (ac_try="$ac_cpp conftest.$ac_ext"
15456 case "(($ac_try" in
15457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15458 *) ac_try_echo=$ac_try;;
15459 esac
15460 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15461 $as_echo "$ac_try_echo") >&5
15462 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15463 ac_status=$?
15464 grep -v '^ *+' conftest.er1 >conftest.err
15465 rm -f conftest.er1
15466 cat conftest.err >&5
15467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15468 (exit $ac_status); } >/dev/null && {
15469 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15470 test ! -s conftest.err
15471 }; then
15472 ac_header_preproc=yes
15473 else
15474 $as_echo "$as_me: failed program was:" >&5
15475 sed 's/^/| /' conftest.$ac_ext >&5
15477 ac_header_preproc=no
15480 rm -f conftest.err conftest.$ac_ext
15481 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15482 $as_echo "$ac_header_preproc" >&6; }
15484 # So? What about this header?
15485 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15486 yes:no: )
15487 { $as_echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
15488 $as_echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15489 { $as_echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5
15490 $as_echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;}
15491 ac_header_preproc=yes
15493 no:yes:* )
15494 { $as_echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
15495 $as_echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
15496 { $as_echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
15497 $as_echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
15498 { $as_echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5
15499 $as_echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;}
15500 { $as_echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5
15501 $as_echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;}
15502 { $as_echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
15503 $as_echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;}
15504 { $as_echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5
15505 $as_echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;}
15506 ( cat <<\_ASBOX
15507 ## -------------------------------------- ##
15508 ## Report this to http://bugs.python.org/ ##
15509 ## -------------------------------------- ##
15510 _ASBOX
15511 ) | sed "s/^/$as_me: WARNING: /" >&2
15513 esac
15514 { $as_echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
15515 $as_echo_n "checking for kernel/OS.h... " >&6; }
15516 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
15517 $as_echo_n "(cached) " >&6
15518 else
15519 ac_cv_header_kernel_OS_h=$ac_header_preproc
15521 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
15522 $as_echo "$ac_cv_header_kernel_OS_h" >&6; }
15525 if test "x$ac_cv_header_kernel_OS_h" = x""yes; then
15526 cat >>confdefs.h <<\_ACEOF
15527 #define WITH_THREAD 1
15528 _ACEOF
15531 cat >>confdefs.h <<\_ACEOF
15532 #define BEOS_THREADS 1
15533 _ACEOF
15535 THREADOBJ="Python/thread.o"
15536 else
15538 { $as_echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
15539 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
15540 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
15541 $as_echo_n "(cached) " >&6
15542 else
15543 ac_check_lib_save_LIBS=$LIBS
15544 LIBS="-lpthreads $LIBS"
15545 cat >conftest.$ac_ext <<_ACEOF
15546 /* confdefs.h. */
15547 _ACEOF
15548 cat confdefs.h >>conftest.$ac_ext
15549 cat >>conftest.$ac_ext <<_ACEOF
15550 /* end confdefs.h. */
15552 /* Override any GCC internal prototype to avoid an error.
15553 Use char because int might match the return type of a GCC
15554 builtin and then its argument prototype would still apply. */
15555 #ifdef __cplusplus
15556 extern "C"
15557 #endif
15558 char pthread_create ();
15560 main ()
15562 return pthread_create ();
15564 return 0;
15566 _ACEOF
15567 rm -f conftest.$ac_objext conftest$ac_exeext
15568 if { (ac_try="$ac_link"
15569 case "(($ac_try" in
15570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15571 *) ac_try_echo=$ac_try;;
15572 esac
15573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15574 $as_echo "$ac_try_echo") >&5
15575 (eval "$ac_link") 2>conftest.er1
15576 ac_status=$?
15577 grep -v '^ *+' conftest.er1 >conftest.err
15578 rm -f conftest.er1
15579 cat conftest.err >&5
15580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15581 (exit $ac_status); } && {
15582 test -z "$ac_c_werror_flag" ||
15583 test ! -s conftest.err
15584 } && test -s conftest$ac_exeext && {
15585 test "$cross_compiling" = yes ||
15586 $as_test_x conftest$ac_exeext
15587 }; then
15588 ac_cv_lib_pthreads_pthread_create=yes
15589 else
15590 $as_echo "$as_me: failed program was:" >&5
15591 sed 's/^/| /' conftest.$ac_ext >&5
15593 ac_cv_lib_pthreads_pthread_create=no
15596 rm -rf conftest.dSYM
15597 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15598 conftest$ac_exeext conftest.$ac_ext
15599 LIBS=$ac_check_lib_save_LIBS
15601 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
15602 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
15603 if test "x$ac_cv_lib_pthreads_pthread_create" = x""yes; then
15604 cat >>confdefs.h <<\_ACEOF
15605 #define WITH_THREAD 1
15606 _ACEOF
15608 posix_threads=yes
15609 LIBS="$LIBS -lpthreads"
15610 THREADOBJ="Python/thread.o"
15611 else
15613 { $as_echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
15614 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
15615 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
15616 $as_echo_n "(cached) " >&6
15617 else
15618 ac_check_lib_save_LIBS=$LIBS
15619 LIBS="-lc_r $LIBS"
15620 cat >conftest.$ac_ext <<_ACEOF
15621 /* confdefs.h. */
15622 _ACEOF
15623 cat confdefs.h >>conftest.$ac_ext
15624 cat >>conftest.$ac_ext <<_ACEOF
15625 /* end confdefs.h. */
15627 /* Override any GCC internal prototype to avoid an error.
15628 Use char because int might match the return type of a GCC
15629 builtin and then its argument prototype would still apply. */
15630 #ifdef __cplusplus
15631 extern "C"
15632 #endif
15633 char pthread_create ();
15635 main ()
15637 return pthread_create ();
15639 return 0;
15641 _ACEOF
15642 rm -f conftest.$ac_objext conftest$ac_exeext
15643 if { (ac_try="$ac_link"
15644 case "(($ac_try" in
15645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15646 *) ac_try_echo=$ac_try;;
15647 esac
15648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15649 $as_echo "$ac_try_echo") >&5
15650 (eval "$ac_link") 2>conftest.er1
15651 ac_status=$?
15652 grep -v '^ *+' conftest.er1 >conftest.err
15653 rm -f conftest.er1
15654 cat conftest.err >&5
15655 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15656 (exit $ac_status); } && {
15657 test -z "$ac_c_werror_flag" ||
15658 test ! -s conftest.err
15659 } && test -s conftest$ac_exeext && {
15660 test "$cross_compiling" = yes ||
15661 $as_test_x conftest$ac_exeext
15662 }; then
15663 ac_cv_lib_c_r_pthread_create=yes
15664 else
15665 $as_echo "$as_me: failed program was:" >&5
15666 sed 's/^/| /' conftest.$ac_ext >&5
15668 ac_cv_lib_c_r_pthread_create=no
15671 rm -rf conftest.dSYM
15672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15673 conftest$ac_exeext conftest.$ac_ext
15674 LIBS=$ac_check_lib_save_LIBS
15676 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
15677 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
15678 if test "x$ac_cv_lib_c_r_pthread_create" = x""yes; then
15679 cat >>confdefs.h <<\_ACEOF
15680 #define WITH_THREAD 1
15681 _ACEOF
15683 posix_threads=yes
15684 LIBS="$LIBS -lc_r"
15685 THREADOBJ="Python/thread.o"
15686 else
15688 { $as_echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
15689 $as_echo_n "checking for __pthread_create_system in -lpthread... " >&6; }
15690 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
15691 $as_echo_n "(cached) " >&6
15692 else
15693 ac_check_lib_save_LIBS=$LIBS
15694 LIBS="-lpthread $LIBS"
15695 cat >conftest.$ac_ext <<_ACEOF
15696 /* confdefs.h. */
15697 _ACEOF
15698 cat confdefs.h >>conftest.$ac_ext
15699 cat >>conftest.$ac_ext <<_ACEOF
15700 /* end confdefs.h. */
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 __pthread_create_system ();
15710 main ()
15712 return __pthread_create_system ();
15714 return 0;
15716 _ACEOF
15717 rm -f conftest.$ac_objext conftest$ac_exeext
15718 if { (ac_try="$ac_link"
15719 case "(($ac_try" in
15720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15721 *) ac_try_echo=$ac_try;;
15722 esac
15723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15724 $as_echo "$ac_try_echo") >&5
15725 (eval "$ac_link") 2>conftest.er1
15726 ac_status=$?
15727 grep -v '^ *+' conftest.er1 >conftest.err
15728 rm -f conftest.er1
15729 cat conftest.err >&5
15730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15731 (exit $ac_status); } && {
15732 test -z "$ac_c_werror_flag" ||
15733 test ! -s conftest.err
15734 } && test -s conftest$ac_exeext && {
15735 test "$cross_compiling" = yes ||
15736 $as_test_x conftest$ac_exeext
15737 }; then
15738 ac_cv_lib_pthread___pthread_create_system=yes
15739 else
15740 $as_echo "$as_me: failed program was:" >&5
15741 sed 's/^/| /' conftest.$ac_ext >&5
15743 ac_cv_lib_pthread___pthread_create_system=no
15746 rm -rf conftest.dSYM
15747 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15748 conftest$ac_exeext conftest.$ac_ext
15749 LIBS=$ac_check_lib_save_LIBS
15751 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
15752 $as_echo "$ac_cv_lib_pthread___pthread_create_system" >&6; }
15753 if test "x$ac_cv_lib_pthread___pthread_create_system" = x""yes; then
15754 cat >>confdefs.h <<\_ACEOF
15755 #define WITH_THREAD 1
15756 _ACEOF
15758 posix_threads=yes
15759 LIBS="$LIBS -lpthread"
15760 THREADOBJ="Python/thread.o"
15761 else
15763 { $as_echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
15764 $as_echo_n "checking for pthread_create in -lcma... " >&6; }
15765 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
15766 $as_echo_n "(cached) " >&6
15767 else
15768 ac_check_lib_save_LIBS=$LIBS
15769 LIBS="-lcma $LIBS"
15770 cat >conftest.$ac_ext <<_ACEOF
15771 /* confdefs.h. */
15772 _ACEOF
15773 cat confdefs.h >>conftest.$ac_ext
15774 cat >>conftest.$ac_ext <<_ACEOF
15775 /* end confdefs.h. */
15777 /* Override any GCC internal prototype to avoid an error.
15778 Use char because int might match the return type of a GCC
15779 builtin and then its argument prototype would still apply. */
15780 #ifdef __cplusplus
15781 extern "C"
15782 #endif
15783 char pthread_create ();
15785 main ()
15787 return pthread_create ();
15789 return 0;
15791 _ACEOF
15792 rm -f conftest.$ac_objext conftest$ac_exeext
15793 if { (ac_try="$ac_link"
15794 case "(($ac_try" in
15795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15796 *) ac_try_echo=$ac_try;;
15797 esac
15798 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15799 $as_echo "$ac_try_echo") >&5
15800 (eval "$ac_link") 2>conftest.er1
15801 ac_status=$?
15802 grep -v '^ *+' conftest.er1 >conftest.err
15803 rm -f conftest.er1
15804 cat conftest.err >&5
15805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15806 (exit $ac_status); } && {
15807 test -z "$ac_c_werror_flag" ||
15808 test ! -s conftest.err
15809 } && test -s conftest$ac_exeext && {
15810 test "$cross_compiling" = yes ||
15811 $as_test_x conftest$ac_exeext
15812 }; then
15813 ac_cv_lib_cma_pthread_create=yes
15814 else
15815 $as_echo "$as_me: failed program was:" >&5
15816 sed 's/^/| /' conftest.$ac_ext >&5
15818 ac_cv_lib_cma_pthread_create=no
15821 rm -rf conftest.dSYM
15822 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15823 conftest$ac_exeext conftest.$ac_ext
15824 LIBS=$ac_check_lib_save_LIBS
15826 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
15827 $as_echo "$ac_cv_lib_cma_pthread_create" >&6; }
15828 if test "x$ac_cv_lib_cma_pthread_create" = x""yes; then
15829 cat >>confdefs.h <<\_ACEOF
15830 #define WITH_THREAD 1
15831 _ACEOF
15833 posix_threads=yes
15834 LIBS="$LIBS -lcma"
15835 THREADOBJ="Python/thread.o"
15836 else
15838 USE_THREAD_MODULE="#"
15858 rm -rf conftest.dSYM
15859 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15860 conftest$ac_exeext conftest.$ac_ext
15870 { $as_echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
15871 $as_echo_n "checking for usconfig in -lmpc... " >&6; }
15872 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
15873 $as_echo_n "(cached) " >&6
15874 else
15875 ac_check_lib_save_LIBS=$LIBS
15876 LIBS="-lmpc $LIBS"
15877 cat >conftest.$ac_ext <<_ACEOF
15878 /* confdefs.h. */
15879 _ACEOF
15880 cat confdefs.h >>conftest.$ac_ext
15881 cat >>conftest.$ac_ext <<_ACEOF
15882 /* end confdefs.h. */
15884 /* Override any GCC internal prototype to avoid an error.
15885 Use char because int might match the return type of a GCC
15886 builtin and then its argument prototype would still apply. */
15887 #ifdef __cplusplus
15888 extern "C"
15889 #endif
15890 char usconfig ();
15892 main ()
15894 return usconfig ();
15896 return 0;
15898 _ACEOF
15899 rm -f conftest.$ac_objext conftest$ac_exeext
15900 if { (ac_try="$ac_link"
15901 case "(($ac_try" in
15902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15903 *) ac_try_echo=$ac_try;;
15904 esac
15905 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15906 $as_echo "$ac_try_echo") >&5
15907 (eval "$ac_link") 2>conftest.er1
15908 ac_status=$?
15909 grep -v '^ *+' conftest.er1 >conftest.err
15910 rm -f conftest.er1
15911 cat conftest.err >&5
15912 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15913 (exit $ac_status); } && {
15914 test -z "$ac_c_werror_flag" ||
15915 test ! -s conftest.err
15916 } && test -s conftest$ac_exeext && {
15917 test "$cross_compiling" = yes ||
15918 $as_test_x conftest$ac_exeext
15919 }; then
15920 ac_cv_lib_mpc_usconfig=yes
15921 else
15922 $as_echo "$as_me: failed program was:" >&5
15923 sed 's/^/| /' conftest.$ac_ext >&5
15925 ac_cv_lib_mpc_usconfig=no
15928 rm -rf conftest.dSYM
15929 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15930 conftest$ac_exeext conftest.$ac_ext
15931 LIBS=$ac_check_lib_save_LIBS
15933 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
15934 $as_echo "$ac_cv_lib_mpc_usconfig" >&6; }
15935 if test "x$ac_cv_lib_mpc_usconfig" = x""yes; then
15936 cat >>confdefs.h <<\_ACEOF
15937 #define WITH_THREAD 1
15938 _ACEOF
15940 LIBS="$LIBS -lmpc"
15941 THREADOBJ="Python/thread.o"
15942 USE_THREAD_MODULE=""
15946 if test "$posix_threads" != "yes"; then
15947 { $as_echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
15948 $as_echo_n "checking for thr_create in -lthread... " >&6; }
15949 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
15950 $as_echo_n "(cached) " >&6
15951 else
15952 ac_check_lib_save_LIBS=$LIBS
15953 LIBS="-lthread $LIBS"
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 /* Override any GCC internal prototype to avoid an error.
15962 Use char because int might match the return type of a GCC
15963 builtin and then its argument prototype would still apply. */
15964 #ifdef __cplusplus
15965 extern "C"
15966 #endif
15967 char thr_create ();
15969 main ()
15971 return thr_create ();
15973 return 0;
15975 _ACEOF
15976 rm -f conftest.$ac_objext conftest$ac_exeext
15977 if { (ac_try="$ac_link"
15978 case "(($ac_try" in
15979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15980 *) ac_try_echo=$ac_try;;
15981 esac
15982 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15983 $as_echo "$ac_try_echo") >&5
15984 (eval "$ac_link") 2>conftest.er1
15985 ac_status=$?
15986 grep -v '^ *+' conftest.er1 >conftest.err
15987 rm -f conftest.er1
15988 cat conftest.err >&5
15989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15990 (exit $ac_status); } && {
15991 test -z "$ac_c_werror_flag" ||
15992 test ! -s conftest.err
15993 } && test -s conftest$ac_exeext && {
15994 test "$cross_compiling" = yes ||
15995 $as_test_x conftest$ac_exeext
15996 }; then
15997 ac_cv_lib_thread_thr_create=yes
15998 else
15999 $as_echo "$as_me: failed program was:" >&5
16000 sed 's/^/| /' conftest.$ac_ext >&5
16002 ac_cv_lib_thread_thr_create=no
16005 rm -rf conftest.dSYM
16006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16007 conftest$ac_exeext conftest.$ac_ext
16008 LIBS=$ac_check_lib_save_LIBS
16010 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
16011 $as_echo "$ac_cv_lib_thread_thr_create" >&6; }
16012 if test "x$ac_cv_lib_thread_thr_create" = x""yes; then
16013 cat >>confdefs.h <<\_ACEOF
16014 #define WITH_THREAD 1
16015 _ACEOF
16017 LIBS="$LIBS -lthread"
16018 THREADOBJ="Python/thread.o"
16019 USE_THREAD_MODULE=""
16024 if test "$USE_THREAD_MODULE" != "#"
16025 then
16026 # If the above checks didn't disable threads, (at least) OSF1
16027 # needs this '-threads' argument during linking.
16028 case $ac_sys_system in
16029 OSF1) LDLAST=-threads;;
16030 esac
16034 if test "$posix_threads" = "yes"; then
16035 if test "$unistd_defines_pthreads" = "no"; then
16037 cat >>confdefs.h <<\_ACEOF
16038 #define _POSIX_THREADS 1
16039 _ACEOF
16043 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
16044 case $ac_sys_system/$ac_sys_release in
16045 SunOS/5.6)
16046 cat >>confdefs.h <<\_ACEOF
16047 #define HAVE_PTHREAD_DESTRUCTOR 1
16048 _ACEOF
16051 SunOS/5.8)
16052 cat >>confdefs.h <<\_ACEOF
16053 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
16054 _ACEOF
16057 AIX/5)
16058 cat >>confdefs.h <<\_ACEOF
16059 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
16060 _ACEOF
16063 esac
16065 { $as_echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
16066 $as_echo_n "checking if PTHREAD_SCOPE_SYSTEM is supported... " >&6; }
16067 if test "${ac_cv_pthread_system_supported+set}" = set; then
16068 $as_echo_n "(cached) " >&6
16069 else
16070 if test "$cross_compiling" = yes; then
16071 ac_cv_pthread_system_supported=no
16072 else
16073 cat >conftest.$ac_ext <<_ACEOF
16074 /* confdefs.h. */
16075 _ACEOF
16076 cat confdefs.h >>conftest.$ac_ext
16077 cat >>conftest.$ac_ext <<_ACEOF
16078 /* end confdefs.h. */
16079 #include <pthread.h>
16080 void *foo(void *parm) {
16081 return NULL;
16083 main() {
16084 pthread_attr_t attr;
16085 pthread_t id;
16086 if (pthread_attr_init(&attr)) exit(-1);
16087 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
16088 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
16089 exit(0);
16091 _ACEOF
16092 rm -f conftest$ac_exeext
16093 if { (ac_try="$ac_link"
16094 case "(($ac_try" in
16095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16096 *) ac_try_echo=$ac_try;;
16097 esac
16098 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16099 $as_echo "$ac_try_echo") >&5
16100 (eval "$ac_link") 2>&5
16101 ac_status=$?
16102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16103 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16104 { (case "(($ac_try" in
16105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16106 *) ac_try_echo=$ac_try;;
16107 esac
16108 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16109 $as_echo "$ac_try_echo") >&5
16110 (eval "$ac_try") 2>&5
16111 ac_status=$?
16112 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16113 (exit $ac_status); }; }; then
16114 ac_cv_pthread_system_supported=yes
16115 else
16116 $as_echo "$as_me: program exited with status $ac_status" >&5
16117 $as_echo "$as_me: failed program was:" >&5
16118 sed 's/^/| /' conftest.$ac_ext >&5
16120 ( exit $ac_status )
16121 ac_cv_pthread_system_supported=no
16123 rm -rf conftest.dSYM
16124 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16131 { $as_echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
16132 $as_echo "$ac_cv_pthread_system_supported" >&6; }
16133 if test "$ac_cv_pthread_system_supported" = "yes"; then
16135 cat >>confdefs.h <<\_ACEOF
16136 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
16137 _ACEOF
16141 for ac_func in pthread_sigmask
16143 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16144 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16145 $as_echo_n "checking for $ac_func... " >&6; }
16146 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16147 $as_echo_n "(cached) " >&6
16148 else
16149 cat >conftest.$ac_ext <<_ACEOF
16150 /* confdefs.h. */
16151 _ACEOF
16152 cat confdefs.h >>conftest.$ac_ext
16153 cat >>conftest.$ac_ext <<_ACEOF
16154 /* end confdefs.h. */
16155 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16156 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16157 #define $ac_func innocuous_$ac_func
16159 /* System header to define __stub macros and hopefully few prototypes,
16160 which can conflict with char $ac_func (); below.
16161 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16162 <limits.h> exists even on freestanding compilers. */
16164 #ifdef __STDC__
16165 # include <limits.h>
16166 #else
16167 # include <assert.h>
16168 #endif
16170 #undef $ac_func
16172 /* Override any GCC internal prototype to avoid an error.
16173 Use char because int might match the return type of a GCC
16174 builtin and then its argument prototype would still apply. */
16175 #ifdef __cplusplus
16176 extern "C"
16177 #endif
16178 char $ac_func ();
16179 /* The GNU C library defines this for functions which it implements
16180 to always fail with ENOSYS. Some functions are actually named
16181 something starting with __ and the normal name is an alias. */
16182 #if defined __stub_$ac_func || defined __stub___$ac_func
16183 choke me
16184 #endif
16187 main ()
16189 return $ac_func ();
16191 return 0;
16193 _ACEOF
16194 rm -f conftest.$ac_objext conftest$ac_exeext
16195 if { (ac_try="$ac_link"
16196 case "(($ac_try" in
16197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16198 *) ac_try_echo=$ac_try;;
16199 esac
16200 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16201 $as_echo "$ac_try_echo") >&5
16202 (eval "$ac_link") 2>conftest.er1
16203 ac_status=$?
16204 grep -v '^ *+' conftest.er1 >conftest.err
16205 rm -f conftest.er1
16206 cat conftest.err >&5
16207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16208 (exit $ac_status); } && {
16209 test -z "$ac_c_werror_flag" ||
16210 test ! -s conftest.err
16211 } && test -s conftest$ac_exeext && {
16212 test "$cross_compiling" = yes ||
16213 $as_test_x conftest$ac_exeext
16214 }; then
16215 eval "$as_ac_var=yes"
16216 else
16217 $as_echo "$as_me: failed program was:" >&5
16218 sed 's/^/| /' conftest.$ac_ext >&5
16220 eval "$as_ac_var=no"
16223 rm -rf conftest.dSYM
16224 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16225 conftest$ac_exeext conftest.$ac_ext
16227 ac_res=`eval 'as_val=${'$as_ac_var'}
16228 $as_echo "$as_val"'`
16229 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16230 $as_echo "$ac_res" >&6; }
16231 as_val=`eval 'as_val=${'$as_ac_var'}
16232 $as_echo "$as_val"'`
16233 if test "x$as_val" = x""yes; then
16234 cat >>confdefs.h <<_ACEOF
16235 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16236 _ACEOF
16237 case $ac_sys_system in
16238 CYGWIN*)
16240 cat >>confdefs.h <<\_ACEOF
16241 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
16242 _ACEOF
16245 esac
16247 done
16252 # Check for enable-ipv6
16255 { $as_echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
16256 $as_echo_n "checking if --enable-ipv6 is specified... " >&6; }
16257 # Check whether --enable-ipv6 was given.
16258 if test "${enable_ipv6+set}" = set; then
16259 enableval=$enable_ipv6; case "$enableval" in
16261 { $as_echo "$as_me:$LINENO: result: no" >&5
16262 $as_echo "no" >&6; }
16263 ipv6=no
16265 *) { $as_echo "$as_me:$LINENO: result: yes" >&5
16266 $as_echo "yes" >&6; }
16267 cat >>confdefs.h <<\_ACEOF
16268 #define ENABLE_IPV6 1
16269 _ACEOF
16271 ipv6=yes
16273 esac
16274 else
16276 if test "$cross_compiling" = yes; then
16277 { $as_echo "$as_me:$LINENO: result: no" >&5
16278 $as_echo "no" >&6; }
16279 ipv6=no
16281 else
16282 cat >conftest.$ac_ext <<_ACEOF
16283 /* confdefs.h. */
16284 _ACEOF
16285 cat confdefs.h >>conftest.$ac_ext
16286 cat >>conftest.$ac_ext <<_ACEOF
16287 /* end confdefs.h. */
16288 /* AF_INET6 available check */
16289 #include <sys/types.h>
16290 #include <sys/socket.h>
16291 main()
16293 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
16294 exit(1);
16295 else
16296 exit(0);
16299 _ACEOF
16300 rm -f conftest$ac_exeext
16301 if { (ac_try="$ac_link"
16302 case "(($ac_try" in
16303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16304 *) ac_try_echo=$ac_try;;
16305 esac
16306 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16307 $as_echo "$ac_try_echo") >&5
16308 (eval "$ac_link") 2>&5
16309 ac_status=$?
16310 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16311 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16312 { (case "(($ac_try" in
16313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16314 *) ac_try_echo=$ac_try;;
16315 esac
16316 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16317 $as_echo "$ac_try_echo") >&5
16318 (eval "$ac_try") 2>&5
16319 ac_status=$?
16320 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16321 (exit $ac_status); }; }; then
16322 { $as_echo "$as_me:$LINENO: result: yes" >&5
16323 $as_echo "yes" >&6; }
16324 ipv6=yes
16325 else
16326 $as_echo "$as_me: program exited with status $ac_status" >&5
16327 $as_echo "$as_me: failed program was:" >&5
16328 sed 's/^/| /' conftest.$ac_ext >&5
16330 ( exit $ac_status )
16331 { $as_echo "$as_me:$LINENO: result: no" >&5
16332 $as_echo "no" >&6; }
16333 ipv6=no
16335 rm -rf conftest.dSYM
16336 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16341 if test "$ipv6" = "yes"; then
16342 { $as_echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
16343 $as_echo_n "checking if RFC2553 API is available... " >&6; }
16344 cat >conftest.$ac_ext <<_ACEOF
16345 /* confdefs.h. */
16346 _ACEOF
16347 cat confdefs.h >>conftest.$ac_ext
16348 cat >>conftest.$ac_ext <<_ACEOF
16349 /* end confdefs.h. */
16350 #include <sys/types.h>
16351 #include <netinet/in.h>
16353 main ()
16355 struct sockaddr_in6 x;
16356 x.sin6_scope_id;
16358 return 0;
16360 _ACEOF
16361 rm -f conftest.$ac_objext
16362 if { (ac_try="$ac_compile"
16363 case "(($ac_try" in
16364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16365 *) ac_try_echo=$ac_try;;
16366 esac
16367 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16368 $as_echo "$ac_try_echo") >&5
16369 (eval "$ac_compile") 2>conftest.er1
16370 ac_status=$?
16371 grep -v '^ *+' conftest.er1 >conftest.err
16372 rm -f conftest.er1
16373 cat conftest.err >&5
16374 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16375 (exit $ac_status); } && {
16376 test -z "$ac_c_werror_flag" ||
16377 test ! -s conftest.err
16378 } && test -s conftest.$ac_objext; then
16379 { $as_echo "$as_me:$LINENO: result: yes" >&5
16380 $as_echo "yes" >&6; }
16381 ipv6=yes
16382 else
16383 $as_echo "$as_me: failed program was:" >&5
16384 sed 's/^/| /' conftest.$ac_ext >&5
16386 { $as_echo "$as_me:$LINENO: result: no" >&5
16387 $as_echo "no" >&6; }
16388 ipv6=no
16391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16394 if test "$ipv6" = "yes"; then
16395 cat >>confdefs.h <<\_ACEOF
16396 #define ENABLE_IPV6 1
16397 _ACEOF
16404 ipv6type=unknown
16405 ipv6lib=none
16406 ipv6trylibc=no
16408 if test "$ipv6" = "yes"; then
16409 { $as_echo "$as_me:$LINENO: checking ipv6 stack type" >&5
16410 $as_echo_n "checking ipv6 stack type... " >&6; }
16411 for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
16413 case $i in
16414 inria)
16415 cat >conftest.$ac_ext <<_ACEOF
16416 /* confdefs.h. */
16417 _ACEOF
16418 cat confdefs.h >>conftest.$ac_ext
16419 cat >>conftest.$ac_ext <<_ACEOF
16420 /* end confdefs.h. */
16422 #include <netinet/in.h>
16423 #ifdef IPV6_INRIA_VERSION
16425 #endif
16426 _ACEOF
16427 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16428 $EGREP "yes" >/dev/null 2>&1; then
16429 ipv6type=$i
16431 rm -f conftest*
16434 kame)
16435 cat >conftest.$ac_ext <<_ACEOF
16436 /* confdefs.h. */
16437 _ACEOF
16438 cat confdefs.h >>conftest.$ac_ext
16439 cat >>conftest.$ac_ext <<_ACEOF
16440 /* end confdefs.h. */
16442 #include <netinet/in.h>
16443 #ifdef __KAME__
16445 #endif
16446 _ACEOF
16447 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16448 $EGREP "yes" >/dev/null 2>&1; then
16449 ipv6type=$i;
16450 ipv6lib=inet6
16451 ipv6libdir=/usr/local/v6/lib
16452 ipv6trylibc=yes
16454 rm -f conftest*
16457 linux-glibc)
16458 cat >conftest.$ac_ext <<_ACEOF
16459 /* confdefs.h. */
16460 _ACEOF
16461 cat confdefs.h >>conftest.$ac_ext
16462 cat >>conftest.$ac_ext <<_ACEOF
16463 /* end confdefs.h. */
16465 #include <features.h>
16466 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
16468 #endif
16469 _ACEOF
16470 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16471 $EGREP "yes" >/dev/null 2>&1; then
16472 ipv6type=$i;
16473 ipv6trylibc=yes
16475 rm -f conftest*
16478 linux-inet6)
16479 if test -d /usr/inet6; then
16480 ipv6type=$i
16481 ipv6lib=inet6
16482 ipv6libdir=/usr/inet6/lib
16483 BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
16486 solaris)
16487 if test -f /etc/netconfig; then
16488 if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then
16489 ipv6type=$i
16490 ipv6trylibc=yes
16494 toshiba)
16495 cat >conftest.$ac_ext <<_ACEOF
16496 /* confdefs.h. */
16497 _ACEOF
16498 cat confdefs.h >>conftest.$ac_ext
16499 cat >>conftest.$ac_ext <<_ACEOF
16500 /* end confdefs.h. */
16502 #include <sys/param.h>
16503 #ifdef _TOSHIBA_INET6
16505 #endif
16506 _ACEOF
16507 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16508 $EGREP "yes" >/dev/null 2>&1; then
16509 ipv6type=$i;
16510 ipv6lib=inet6;
16511 ipv6libdir=/usr/local/v6/lib
16513 rm -f conftest*
16516 v6d)
16517 cat >conftest.$ac_ext <<_ACEOF
16518 /* confdefs.h. */
16519 _ACEOF
16520 cat confdefs.h >>conftest.$ac_ext
16521 cat >>conftest.$ac_ext <<_ACEOF
16522 /* end confdefs.h. */
16524 #include </usr/local/v6/include/sys/v6config.h>
16525 #ifdef __V6D__
16527 #endif
16528 _ACEOF
16529 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16530 $EGREP "yes" >/dev/null 2>&1; then
16531 ipv6type=$i;
16532 ipv6lib=v6;
16533 ipv6libdir=/usr/local/v6/lib;
16534 BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
16536 rm -f conftest*
16539 zeta)
16540 cat >conftest.$ac_ext <<_ACEOF
16541 /* confdefs.h. */
16542 _ACEOF
16543 cat confdefs.h >>conftest.$ac_ext
16544 cat >>conftest.$ac_ext <<_ACEOF
16545 /* end confdefs.h. */
16547 #include <sys/param.h>
16548 #ifdef _ZETA_MINAMI_INET6
16550 #endif
16551 _ACEOF
16552 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16553 $EGREP "yes" >/dev/null 2>&1; then
16554 ipv6type=$i;
16555 ipv6lib=inet6;
16556 ipv6libdir=/usr/local/v6/lib
16558 rm -f conftest*
16561 esac
16562 if test "$ipv6type" != "unknown"; then
16563 break
16565 done
16566 { $as_echo "$as_me:$LINENO: result: $ipv6type" >&5
16567 $as_echo "$ipv6type" >&6; }
16570 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
16571 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
16572 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
16573 echo "using lib$ipv6lib"
16574 else
16575 if test $ipv6trylibc = "yes"; then
16576 echo "using libc"
16577 else
16578 echo 'Fatal: no $ipv6lib library found. cannot continue.'
16579 echo "You need to fetch lib$ipv6lib.a from appropriate"
16580 echo 'ipv6 kit and compile beforehand.'
16581 exit 1
16586 { $as_echo "$as_me:$LINENO: checking for OSX 10.5 SDK or later" >&5
16587 $as_echo_n "checking for OSX 10.5 SDK or later... " >&6; }
16588 cat >conftest.$ac_ext <<_ACEOF
16589 /* confdefs.h. */
16590 _ACEOF
16591 cat confdefs.h >>conftest.$ac_ext
16592 cat >>conftest.$ac_ext <<_ACEOF
16593 /* end confdefs.h. */
16594 #include <Carbon/Carbon.h>
16596 main ()
16598 FSIORefNum fRef = 0
16600 return 0;
16602 _ACEOF
16603 rm -f conftest.$ac_objext
16604 if { (ac_try="$ac_compile"
16605 case "(($ac_try" in
16606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16607 *) ac_try_echo=$ac_try;;
16608 esac
16609 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16610 $as_echo "$ac_try_echo") >&5
16611 (eval "$ac_compile") 2>conftest.er1
16612 ac_status=$?
16613 grep -v '^ *+' conftest.er1 >conftest.err
16614 rm -f conftest.er1
16615 cat conftest.err >&5
16616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16617 (exit $ac_status); } && {
16618 test -z "$ac_c_werror_flag" ||
16619 test ! -s conftest.err
16620 } && test -s conftest.$ac_objext; then
16622 cat >>confdefs.h <<\_ACEOF
16623 #define HAVE_OSX105_SDK 1
16624 _ACEOF
16626 { $as_echo "$as_me:$LINENO: result: yes" >&5
16627 $as_echo "yes" >&6; }
16628 else
16629 $as_echo "$as_me: failed program was:" >&5
16630 sed 's/^/| /' conftest.$ac_ext >&5
16632 { $as_echo "$as_me:$LINENO: result: no" >&5
16633 $as_echo "no" >&6; }
16637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16639 # Check for --with-doc-strings
16640 { $as_echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
16641 $as_echo_n "checking for --with-doc-strings... " >&6; }
16643 # Check whether --with-doc-strings was given.
16644 if test "${with_doc_strings+set}" = set; then
16645 withval=$with_doc_strings;
16649 if test -z "$with_doc_strings"
16650 then with_doc_strings="yes"
16652 if test "$with_doc_strings" != "no"
16653 then
16655 cat >>confdefs.h <<\_ACEOF
16656 #define WITH_DOC_STRINGS 1
16657 _ACEOF
16660 { $as_echo "$as_me:$LINENO: result: $with_doc_strings" >&5
16661 $as_echo "$with_doc_strings" >&6; }
16663 # Check for Python-specific malloc support
16664 { $as_echo "$as_me:$LINENO: checking for --with-tsc" >&5
16665 $as_echo_n "checking for --with-tsc... " >&6; }
16667 # Check whether --with-tsc was given.
16668 if test "${with_tsc+set}" = set; then
16669 withval=$with_tsc;
16670 if test "$withval" != no
16671 then
16673 cat >>confdefs.h <<\_ACEOF
16674 #define WITH_TSC 1
16675 _ACEOF
16677 { $as_echo "$as_me:$LINENO: result: yes" >&5
16678 $as_echo "yes" >&6; }
16679 else { $as_echo "$as_me:$LINENO: result: no" >&5
16680 $as_echo "no" >&6; }
16682 else
16683 { $as_echo "$as_me:$LINENO: result: no" >&5
16684 $as_echo "no" >&6; }
16688 # Check for Python-specific malloc support
16689 { $as_echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
16690 $as_echo_n "checking for --with-pymalloc... " >&6; }
16692 # Check whether --with-pymalloc was given.
16693 if test "${with_pymalloc+set}" = set; then
16694 withval=$with_pymalloc;
16698 if test -z "$with_pymalloc"
16699 then with_pymalloc="yes"
16701 if test "$with_pymalloc" != "no"
16702 then
16704 cat >>confdefs.h <<\_ACEOF
16705 #define WITH_PYMALLOC 1
16706 _ACEOF
16709 { $as_echo "$as_me:$LINENO: result: $with_pymalloc" >&5
16710 $as_echo "$with_pymalloc" >&6; }
16712 # Check for --with-wctype-functions
16713 { $as_echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
16714 $as_echo_n "checking for --with-wctype-functions... " >&6; }
16716 # Check whether --with-wctype-functions was given.
16717 if test "${with_wctype_functions+set}" = set; then
16718 withval=$with_wctype_functions;
16719 if test "$withval" != no
16720 then
16722 cat >>confdefs.h <<\_ACEOF
16723 #define WANT_WCTYPE_FUNCTIONS 1
16724 _ACEOF
16726 { $as_echo "$as_me:$LINENO: result: yes" >&5
16727 $as_echo "yes" >&6; }
16728 else { $as_echo "$as_me:$LINENO: result: no" >&5
16729 $as_echo "no" >&6; }
16731 else
16732 { $as_echo "$as_me:$LINENO: result: no" >&5
16733 $as_echo "no" >&6; }
16737 # -I${DLINCLDIR} is added to the compile rule for importdl.o
16739 DLINCLDIR=.
16741 # the dlopen() function means we might want to use dynload_shlib.o. some
16742 # platforms, such as AIX, have dlopen(), but don't want to use it.
16744 for ac_func in dlopen
16746 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16747 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16748 $as_echo_n "checking for $ac_func... " >&6; }
16749 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16750 $as_echo_n "(cached) " >&6
16751 else
16752 cat >conftest.$ac_ext <<_ACEOF
16753 /* confdefs.h. */
16754 _ACEOF
16755 cat confdefs.h >>conftest.$ac_ext
16756 cat >>conftest.$ac_ext <<_ACEOF
16757 /* end confdefs.h. */
16758 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16759 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16760 #define $ac_func innocuous_$ac_func
16762 /* System header to define __stub macros and hopefully few prototypes,
16763 which can conflict with char $ac_func (); below.
16764 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16765 <limits.h> exists even on freestanding compilers. */
16767 #ifdef __STDC__
16768 # include <limits.h>
16769 #else
16770 # include <assert.h>
16771 #endif
16773 #undef $ac_func
16775 /* Override any GCC internal prototype to avoid an error.
16776 Use char because int might match the return type of a GCC
16777 builtin and then its argument prototype would still apply. */
16778 #ifdef __cplusplus
16779 extern "C"
16780 #endif
16781 char $ac_func ();
16782 /* The GNU C library defines this for functions which it implements
16783 to always fail with ENOSYS. Some functions are actually named
16784 something starting with __ and the normal name is an alias. */
16785 #if defined __stub_$ac_func || defined __stub___$ac_func
16786 choke me
16787 #endif
16790 main ()
16792 return $ac_func ();
16794 return 0;
16796 _ACEOF
16797 rm -f conftest.$ac_objext conftest$ac_exeext
16798 if { (ac_try="$ac_link"
16799 case "(($ac_try" in
16800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16801 *) ac_try_echo=$ac_try;;
16802 esac
16803 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16804 $as_echo "$ac_try_echo") >&5
16805 (eval "$ac_link") 2>conftest.er1
16806 ac_status=$?
16807 grep -v '^ *+' conftest.er1 >conftest.err
16808 rm -f conftest.er1
16809 cat conftest.err >&5
16810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16811 (exit $ac_status); } && {
16812 test -z "$ac_c_werror_flag" ||
16813 test ! -s conftest.err
16814 } && test -s conftest$ac_exeext && {
16815 test "$cross_compiling" = yes ||
16816 $as_test_x conftest$ac_exeext
16817 }; then
16818 eval "$as_ac_var=yes"
16819 else
16820 $as_echo "$as_me: failed program was:" >&5
16821 sed 's/^/| /' conftest.$ac_ext >&5
16823 eval "$as_ac_var=no"
16826 rm -rf conftest.dSYM
16827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16828 conftest$ac_exeext conftest.$ac_ext
16830 ac_res=`eval 'as_val=${'$as_ac_var'}
16831 $as_echo "$as_val"'`
16832 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16833 $as_echo "$ac_res" >&6; }
16834 as_val=`eval 'as_val=${'$as_ac_var'}
16835 $as_echo "$as_val"'`
16836 if test "x$as_val" = x""yes; then
16837 cat >>confdefs.h <<_ACEOF
16838 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16839 _ACEOF
16842 done
16845 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
16846 # loading of modules.
16848 { $as_echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
16849 $as_echo_n "checking DYNLOADFILE... " >&6; }
16850 if test -z "$DYNLOADFILE"
16851 then
16852 case $ac_sys_system/$ac_sys_release in
16853 AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
16854 if test "$ac_cv_func_dlopen" = yes
16855 then DYNLOADFILE="dynload_shlib.o"
16856 else DYNLOADFILE="dynload_aix.o"
16859 BeOS*) DYNLOADFILE="dynload_beos.o";;
16860 hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
16861 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
16862 Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";;
16863 atheos*) DYNLOADFILE="dynload_atheos.o";;
16865 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
16866 # out any dynamic loading
16867 if test "$ac_cv_func_dlopen" = yes
16868 then DYNLOADFILE="dynload_shlib.o"
16869 else DYNLOADFILE="dynload_stub.o"
16872 esac
16874 { $as_echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
16875 $as_echo "$DYNLOADFILE" >&6; }
16876 if test "$DYNLOADFILE" != "dynload_stub.o"
16877 then
16879 cat >>confdefs.h <<\_ACEOF
16880 #define HAVE_DYNAMIC_LOADING 1
16881 _ACEOF
16885 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
16888 { $as_echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
16889 $as_echo_n "checking MACHDEP_OBJS... " >&6; }
16890 if test -z "$MACHDEP_OBJS"
16891 then
16892 MACHDEP_OBJS=$extra_machdep_objs
16893 else
16894 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
16896 { $as_echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
16897 $as_echo "MACHDEP_OBJS" >&6; }
16899 # checks for library functions
16985 for ac_func in alarm setitimer getitimer bind_textdomain_codeset chown \
16986 clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \
16987 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
16988 getpriority getpwent getspnam getspent getsid getwd \
16989 kill killpg lchmod lchown lstat mkfifo mknod mktime \
16990 mremap nice pathconf pause plock poll pthread_init \
16991 putenv readlink realpath \
16992 select sem_open sem_timedwait sem_getvalue sem_unlink setegid seteuid \
16993 setgid \
16994 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
16995 sigaction siginterrupt sigrelse strftime \
16996 sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
16997 truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty
16999 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17000 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17001 $as_echo_n "checking for $ac_func... " >&6; }
17002 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17003 $as_echo_n "(cached) " >&6
17004 else
17005 cat >conftest.$ac_ext <<_ACEOF
17006 /* confdefs.h. */
17007 _ACEOF
17008 cat confdefs.h >>conftest.$ac_ext
17009 cat >>conftest.$ac_ext <<_ACEOF
17010 /* end confdefs.h. */
17011 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17012 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17013 #define $ac_func innocuous_$ac_func
17015 /* System header to define __stub macros and hopefully few prototypes,
17016 which can conflict with char $ac_func (); below.
17017 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17018 <limits.h> exists even on freestanding compilers. */
17020 #ifdef __STDC__
17021 # include <limits.h>
17022 #else
17023 # include <assert.h>
17024 #endif
17026 #undef $ac_func
17028 /* Override any GCC internal prototype to avoid an error.
17029 Use char because int might match the return type of a GCC
17030 builtin and then its argument prototype would still apply. */
17031 #ifdef __cplusplus
17032 extern "C"
17033 #endif
17034 char $ac_func ();
17035 /* The GNU C library defines this for functions which it implements
17036 to always fail with ENOSYS. Some functions are actually named
17037 something starting with __ and the normal name is an alias. */
17038 #if defined __stub_$ac_func || defined __stub___$ac_func
17039 choke me
17040 #endif
17043 main ()
17045 return $ac_func ();
17047 return 0;
17049 _ACEOF
17050 rm -f conftest.$ac_objext conftest$ac_exeext
17051 if { (ac_try="$ac_link"
17052 case "(($ac_try" in
17053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17054 *) ac_try_echo=$ac_try;;
17055 esac
17056 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17057 $as_echo "$ac_try_echo") >&5
17058 (eval "$ac_link") 2>conftest.er1
17059 ac_status=$?
17060 grep -v '^ *+' conftest.er1 >conftest.err
17061 rm -f conftest.er1
17062 cat conftest.err >&5
17063 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17064 (exit $ac_status); } && {
17065 test -z "$ac_c_werror_flag" ||
17066 test ! -s conftest.err
17067 } && test -s conftest$ac_exeext && {
17068 test "$cross_compiling" = yes ||
17069 $as_test_x conftest$ac_exeext
17070 }; then
17071 eval "$as_ac_var=yes"
17072 else
17073 $as_echo "$as_me: failed program was:" >&5
17074 sed 's/^/| /' conftest.$ac_ext >&5
17076 eval "$as_ac_var=no"
17079 rm -rf conftest.dSYM
17080 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17081 conftest$ac_exeext conftest.$ac_ext
17083 ac_res=`eval 'as_val=${'$as_ac_var'}
17084 $as_echo "$as_val"'`
17085 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17086 $as_echo "$ac_res" >&6; }
17087 as_val=`eval 'as_val=${'$as_ac_var'}
17088 $as_echo "$as_val"'`
17089 if test "x$as_val" = x""yes; then
17090 cat >>confdefs.h <<_ACEOF
17091 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17092 _ACEOF
17095 done
17098 # For some functions, having a definition is not sufficient, since
17099 # we want to take their address.
17100 { $as_echo "$as_me:$LINENO: checking for chroot" >&5
17101 $as_echo_n "checking for chroot... " >&6; }
17102 cat >conftest.$ac_ext <<_ACEOF
17103 /* confdefs.h. */
17104 _ACEOF
17105 cat confdefs.h >>conftest.$ac_ext
17106 cat >>conftest.$ac_ext <<_ACEOF
17107 /* end confdefs.h. */
17108 #include <unistd.h>
17110 main ()
17112 void *x=chroot
17114 return 0;
17116 _ACEOF
17117 rm -f conftest.$ac_objext
17118 if { (ac_try="$ac_compile"
17119 case "(($ac_try" in
17120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17121 *) ac_try_echo=$ac_try;;
17122 esac
17123 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17124 $as_echo "$ac_try_echo") >&5
17125 (eval "$ac_compile") 2>conftest.er1
17126 ac_status=$?
17127 grep -v '^ *+' conftest.er1 >conftest.err
17128 rm -f conftest.er1
17129 cat conftest.err >&5
17130 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17131 (exit $ac_status); } && {
17132 test -z "$ac_c_werror_flag" ||
17133 test ! -s conftest.err
17134 } && test -s conftest.$ac_objext; then
17136 cat >>confdefs.h <<\_ACEOF
17137 #define HAVE_CHROOT 1
17138 _ACEOF
17140 { $as_echo "$as_me:$LINENO: result: yes" >&5
17141 $as_echo "yes" >&6; }
17142 else
17143 $as_echo "$as_me: failed program was:" >&5
17144 sed 's/^/| /' conftest.$ac_ext >&5
17146 { $as_echo "$as_me:$LINENO: result: no" >&5
17147 $as_echo "no" >&6; }
17151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17152 { $as_echo "$as_me:$LINENO: checking for link" >&5
17153 $as_echo_n "checking for link... " >&6; }
17154 cat >conftest.$ac_ext <<_ACEOF
17155 /* confdefs.h. */
17156 _ACEOF
17157 cat confdefs.h >>conftest.$ac_ext
17158 cat >>conftest.$ac_ext <<_ACEOF
17159 /* end confdefs.h. */
17160 #include <unistd.h>
17162 main ()
17164 void *x=link
17166 return 0;
17168 _ACEOF
17169 rm -f conftest.$ac_objext
17170 if { (ac_try="$ac_compile"
17171 case "(($ac_try" in
17172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17173 *) ac_try_echo=$ac_try;;
17174 esac
17175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17176 $as_echo "$ac_try_echo") >&5
17177 (eval "$ac_compile") 2>conftest.er1
17178 ac_status=$?
17179 grep -v '^ *+' conftest.er1 >conftest.err
17180 rm -f conftest.er1
17181 cat conftest.err >&5
17182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17183 (exit $ac_status); } && {
17184 test -z "$ac_c_werror_flag" ||
17185 test ! -s conftest.err
17186 } && test -s conftest.$ac_objext; then
17188 cat >>confdefs.h <<\_ACEOF
17189 #define HAVE_LINK 1
17190 _ACEOF
17192 { $as_echo "$as_me:$LINENO: result: yes" >&5
17193 $as_echo "yes" >&6; }
17194 else
17195 $as_echo "$as_me: failed program was:" >&5
17196 sed 's/^/| /' conftest.$ac_ext >&5
17198 { $as_echo "$as_me:$LINENO: result: no" >&5
17199 $as_echo "no" >&6; }
17203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17204 { $as_echo "$as_me:$LINENO: checking for symlink" >&5
17205 $as_echo_n "checking for symlink... " >&6; }
17206 cat >conftest.$ac_ext <<_ACEOF
17207 /* confdefs.h. */
17208 _ACEOF
17209 cat confdefs.h >>conftest.$ac_ext
17210 cat >>conftest.$ac_ext <<_ACEOF
17211 /* end confdefs.h. */
17212 #include <unistd.h>
17214 main ()
17216 void *x=symlink
17218 return 0;
17220 _ACEOF
17221 rm -f conftest.$ac_objext
17222 if { (ac_try="$ac_compile"
17223 case "(($ac_try" in
17224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17225 *) ac_try_echo=$ac_try;;
17226 esac
17227 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17228 $as_echo "$ac_try_echo") >&5
17229 (eval "$ac_compile") 2>conftest.er1
17230 ac_status=$?
17231 grep -v '^ *+' conftest.er1 >conftest.err
17232 rm -f conftest.er1
17233 cat conftest.err >&5
17234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17235 (exit $ac_status); } && {
17236 test -z "$ac_c_werror_flag" ||
17237 test ! -s conftest.err
17238 } && test -s conftest.$ac_objext; then
17240 cat >>confdefs.h <<\_ACEOF
17241 #define HAVE_SYMLINK 1
17242 _ACEOF
17244 { $as_echo "$as_me:$LINENO: result: yes" >&5
17245 $as_echo "yes" >&6; }
17246 else
17247 $as_echo "$as_me: failed program was:" >&5
17248 sed 's/^/| /' conftest.$ac_ext >&5
17250 { $as_echo "$as_me:$LINENO: result: no" >&5
17251 $as_echo "no" >&6; }
17255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17256 { $as_echo "$as_me:$LINENO: checking for fchdir" >&5
17257 $as_echo_n "checking for fchdir... " >&6; }
17258 cat >conftest.$ac_ext <<_ACEOF
17259 /* confdefs.h. */
17260 _ACEOF
17261 cat confdefs.h >>conftest.$ac_ext
17262 cat >>conftest.$ac_ext <<_ACEOF
17263 /* end confdefs.h. */
17264 #include <unistd.h>
17266 main ()
17268 void *x=fchdir
17270 return 0;
17272 _ACEOF
17273 rm -f conftest.$ac_objext
17274 if { (ac_try="$ac_compile"
17275 case "(($ac_try" in
17276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17277 *) ac_try_echo=$ac_try;;
17278 esac
17279 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17280 $as_echo "$ac_try_echo") >&5
17281 (eval "$ac_compile") 2>conftest.er1
17282 ac_status=$?
17283 grep -v '^ *+' conftest.er1 >conftest.err
17284 rm -f conftest.er1
17285 cat conftest.err >&5
17286 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17287 (exit $ac_status); } && {
17288 test -z "$ac_c_werror_flag" ||
17289 test ! -s conftest.err
17290 } && test -s conftest.$ac_objext; then
17292 cat >>confdefs.h <<\_ACEOF
17293 #define HAVE_FCHDIR 1
17294 _ACEOF
17296 { $as_echo "$as_me:$LINENO: result: yes" >&5
17297 $as_echo "yes" >&6; }
17298 else
17299 $as_echo "$as_me: failed program was:" >&5
17300 sed 's/^/| /' conftest.$ac_ext >&5
17302 { $as_echo "$as_me:$LINENO: result: no" >&5
17303 $as_echo "no" >&6; }
17307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17308 { $as_echo "$as_me:$LINENO: checking for fsync" >&5
17309 $as_echo_n "checking for fsync... " >&6; }
17310 cat >conftest.$ac_ext <<_ACEOF
17311 /* confdefs.h. */
17312 _ACEOF
17313 cat confdefs.h >>conftest.$ac_ext
17314 cat >>conftest.$ac_ext <<_ACEOF
17315 /* end confdefs.h. */
17316 #include <unistd.h>
17318 main ()
17320 void *x=fsync
17322 return 0;
17324 _ACEOF
17325 rm -f conftest.$ac_objext
17326 if { (ac_try="$ac_compile"
17327 case "(($ac_try" in
17328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17329 *) ac_try_echo=$ac_try;;
17330 esac
17331 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17332 $as_echo "$ac_try_echo") >&5
17333 (eval "$ac_compile") 2>conftest.er1
17334 ac_status=$?
17335 grep -v '^ *+' conftest.er1 >conftest.err
17336 rm -f conftest.er1
17337 cat conftest.err >&5
17338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17339 (exit $ac_status); } && {
17340 test -z "$ac_c_werror_flag" ||
17341 test ! -s conftest.err
17342 } && test -s conftest.$ac_objext; then
17344 cat >>confdefs.h <<\_ACEOF
17345 #define HAVE_FSYNC 1
17346 _ACEOF
17348 { $as_echo "$as_me:$LINENO: result: yes" >&5
17349 $as_echo "yes" >&6; }
17350 else
17351 $as_echo "$as_me: failed program was:" >&5
17352 sed 's/^/| /' conftest.$ac_ext >&5
17354 { $as_echo "$as_me:$LINENO: result: no" >&5
17355 $as_echo "no" >&6; }
17359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17360 { $as_echo "$as_me:$LINENO: checking for fdatasync" >&5
17361 $as_echo_n "checking for fdatasync... " >&6; }
17362 cat >conftest.$ac_ext <<_ACEOF
17363 /* confdefs.h. */
17364 _ACEOF
17365 cat confdefs.h >>conftest.$ac_ext
17366 cat >>conftest.$ac_ext <<_ACEOF
17367 /* end confdefs.h. */
17368 #include <unistd.h>
17370 main ()
17372 void *x=fdatasync
17374 return 0;
17376 _ACEOF
17377 rm -f conftest.$ac_objext
17378 if { (ac_try="$ac_compile"
17379 case "(($ac_try" in
17380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17381 *) ac_try_echo=$ac_try;;
17382 esac
17383 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17384 $as_echo "$ac_try_echo") >&5
17385 (eval "$ac_compile") 2>conftest.er1
17386 ac_status=$?
17387 grep -v '^ *+' conftest.er1 >conftest.err
17388 rm -f conftest.er1
17389 cat conftest.err >&5
17390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17391 (exit $ac_status); } && {
17392 test -z "$ac_c_werror_flag" ||
17393 test ! -s conftest.err
17394 } && test -s conftest.$ac_objext; then
17396 cat >>confdefs.h <<\_ACEOF
17397 #define HAVE_FDATASYNC 1
17398 _ACEOF
17400 { $as_echo "$as_me:$LINENO: result: yes" >&5
17401 $as_echo "yes" >&6; }
17402 else
17403 $as_echo "$as_me: failed program was:" >&5
17404 sed 's/^/| /' conftest.$ac_ext >&5
17406 { $as_echo "$as_me:$LINENO: result: no" >&5
17407 $as_echo "no" >&6; }
17411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17412 { $as_echo "$as_me:$LINENO: checking for epoll" >&5
17413 $as_echo_n "checking for epoll... " >&6; }
17414 cat >conftest.$ac_ext <<_ACEOF
17415 /* confdefs.h. */
17416 _ACEOF
17417 cat confdefs.h >>conftest.$ac_ext
17418 cat >>conftest.$ac_ext <<_ACEOF
17419 /* end confdefs.h. */
17420 #include <sys/epoll.h>
17422 main ()
17424 void *x=epoll_create
17426 return 0;
17428 _ACEOF
17429 rm -f conftest.$ac_objext
17430 if { (ac_try="$ac_compile"
17431 case "(($ac_try" in
17432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17433 *) ac_try_echo=$ac_try;;
17434 esac
17435 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17436 $as_echo "$ac_try_echo") >&5
17437 (eval "$ac_compile") 2>conftest.er1
17438 ac_status=$?
17439 grep -v '^ *+' conftest.er1 >conftest.err
17440 rm -f conftest.er1
17441 cat conftest.err >&5
17442 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17443 (exit $ac_status); } && {
17444 test -z "$ac_c_werror_flag" ||
17445 test ! -s conftest.err
17446 } && test -s conftest.$ac_objext; then
17448 cat >>confdefs.h <<\_ACEOF
17449 #define HAVE_EPOLL 1
17450 _ACEOF
17452 { $as_echo "$as_me:$LINENO: result: yes" >&5
17453 $as_echo "yes" >&6; }
17454 else
17455 $as_echo "$as_me: failed program was:" >&5
17456 sed 's/^/| /' conftest.$ac_ext >&5
17458 { $as_echo "$as_me:$LINENO: result: no" >&5
17459 $as_echo "no" >&6; }
17463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17464 { $as_echo "$as_me:$LINENO: checking for kqueue" >&5
17465 $as_echo_n "checking for kqueue... " >&6; }
17466 cat >conftest.$ac_ext <<_ACEOF
17467 /* confdefs.h. */
17468 _ACEOF
17469 cat confdefs.h >>conftest.$ac_ext
17470 cat >>conftest.$ac_ext <<_ACEOF
17471 /* end confdefs.h. */
17473 #include <sys/types.h>
17474 #include <sys/event.h>
17477 main ()
17479 int x=kqueue()
17481 return 0;
17483 _ACEOF
17484 rm -f conftest.$ac_objext
17485 if { (ac_try="$ac_compile"
17486 case "(($ac_try" in
17487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17488 *) ac_try_echo=$ac_try;;
17489 esac
17490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17491 $as_echo "$ac_try_echo") >&5
17492 (eval "$ac_compile") 2>conftest.er1
17493 ac_status=$?
17494 grep -v '^ *+' conftest.er1 >conftest.err
17495 rm -f conftest.er1
17496 cat conftest.err >&5
17497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17498 (exit $ac_status); } && {
17499 test -z "$ac_c_werror_flag" ||
17500 test ! -s conftest.err
17501 } && test -s conftest.$ac_objext; then
17503 cat >>confdefs.h <<\_ACEOF
17504 #define HAVE_KQUEUE 1
17505 _ACEOF
17507 { $as_echo "$as_me:$LINENO: result: yes" >&5
17508 $as_echo "yes" >&6; }
17509 else
17510 $as_echo "$as_me: failed program was:" >&5
17511 sed 's/^/| /' conftest.$ac_ext >&5
17513 { $as_echo "$as_me:$LINENO: result: no" >&5
17514 $as_echo "no" >&6; }
17518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17519 # On some systems (eg. FreeBSD 5), we would find a definition of the
17520 # functions ctermid_r, setgroups in the library, but no prototype
17521 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
17522 # address to avoid compiler warnings and potential miscompilations
17523 # because of the missing prototypes.
17525 { $as_echo "$as_me:$LINENO: checking for ctermid_r" >&5
17526 $as_echo_n "checking for ctermid_r... " >&6; }
17527 cat >conftest.$ac_ext <<_ACEOF
17528 /* confdefs.h. */
17529 _ACEOF
17530 cat confdefs.h >>conftest.$ac_ext
17531 cat >>conftest.$ac_ext <<_ACEOF
17532 /* end confdefs.h. */
17534 #include "confdefs.h"
17535 #include <stdio.h>
17538 main ()
17540 void* p = ctermid_r
17542 return 0;
17544 _ACEOF
17545 rm -f conftest.$ac_objext
17546 if { (ac_try="$ac_compile"
17547 case "(($ac_try" in
17548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17549 *) ac_try_echo=$ac_try;;
17550 esac
17551 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17552 $as_echo "$ac_try_echo") >&5
17553 (eval "$ac_compile") 2>conftest.er1
17554 ac_status=$?
17555 grep -v '^ *+' conftest.er1 >conftest.err
17556 rm -f conftest.er1
17557 cat conftest.err >&5
17558 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17559 (exit $ac_status); } && {
17560 test -z "$ac_c_werror_flag" ||
17561 test ! -s conftest.err
17562 } && test -s conftest.$ac_objext; then
17564 cat >>confdefs.h <<\_ACEOF
17565 #define HAVE_CTERMID_R 1
17566 _ACEOF
17568 { $as_echo "$as_me:$LINENO: result: yes" >&5
17569 $as_echo "yes" >&6; }
17570 else
17571 $as_echo "$as_me: failed program was:" >&5
17572 sed 's/^/| /' conftest.$ac_ext >&5
17574 { $as_echo "$as_me:$LINENO: result: no" >&5
17575 $as_echo "no" >&6; }
17579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17581 { $as_echo "$as_me:$LINENO: checking for flock" >&5
17582 $as_echo_n "checking for flock... " >&6; }
17583 cat >conftest.$ac_ext <<_ACEOF
17584 /* confdefs.h. */
17585 _ACEOF
17586 cat confdefs.h >>conftest.$ac_ext
17587 cat >>conftest.$ac_ext <<_ACEOF
17588 /* end confdefs.h. */
17590 #include "confdefs.h"
17591 #include <sys/file.h>
17594 main ()
17596 void* p = flock
17598 return 0;
17600 _ACEOF
17601 rm -f conftest.$ac_objext
17602 if { (ac_try="$ac_compile"
17603 case "(($ac_try" in
17604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17605 *) ac_try_echo=$ac_try;;
17606 esac
17607 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17608 $as_echo "$ac_try_echo") >&5
17609 (eval "$ac_compile") 2>conftest.er1
17610 ac_status=$?
17611 grep -v '^ *+' conftest.er1 >conftest.err
17612 rm -f conftest.er1
17613 cat conftest.err >&5
17614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17615 (exit $ac_status); } && {
17616 test -z "$ac_c_werror_flag" ||
17617 test ! -s conftest.err
17618 } && test -s conftest.$ac_objext; then
17620 cat >>confdefs.h <<\_ACEOF
17621 #define HAVE_FLOCK 1
17622 _ACEOF
17624 { $as_echo "$as_me:$LINENO: result: yes" >&5
17625 $as_echo "yes" >&6; }
17626 else
17627 $as_echo "$as_me: failed program was:" >&5
17628 sed 's/^/| /' conftest.$ac_ext >&5
17630 { $as_echo "$as_me:$LINENO: result: no" >&5
17631 $as_echo "no" >&6; }
17635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17637 { $as_echo "$as_me:$LINENO: checking for getpagesize" >&5
17638 $as_echo_n "checking for getpagesize... " >&6; }
17639 cat >conftest.$ac_ext <<_ACEOF
17640 /* confdefs.h. */
17641 _ACEOF
17642 cat confdefs.h >>conftest.$ac_ext
17643 cat >>conftest.$ac_ext <<_ACEOF
17644 /* end confdefs.h. */
17646 #include "confdefs.h"
17647 #include <unistd.h>
17650 main ()
17652 void* p = getpagesize
17654 return 0;
17656 _ACEOF
17657 rm -f conftest.$ac_objext
17658 if { (ac_try="$ac_compile"
17659 case "(($ac_try" in
17660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17661 *) ac_try_echo=$ac_try;;
17662 esac
17663 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17664 $as_echo "$ac_try_echo") >&5
17665 (eval "$ac_compile") 2>conftest.er1
17666 ac_status=$?
17667 grep -v '^ *+' conftest.er1 >conftest.err
17668 rm -f conftest.er1
17669 cat conftest.err >&5
17670 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17671 (exit $ac_status); } && {
17672 test -z "$ac_c_werror_flag" ||
17673 test ! -s conftest.err
17674 } && test -s conftest.$ac_objext; then
17676 cat >>confdefs.h <<\_ACEOF
17677 #define HAVE_GETPAGESIZE 1
17678 _ACEOF
17680 { $as_echo "$as_me:$LINENO: result: yes" >&5
17681 $as_echo "yes" >&6; }
17682 else
17683 $as_echo "$as_me: failed program was:" >&5
17684 sed 's/^/| /' conftest.$ac_ext >&5
17686 { $as_echo "$as_me:$LINENO: result: no" >&5
17687 $as_echo "no" >&6; }
17691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17693 for ac_prog in true
17695 # Extract the first word of "$ac_prog", so it can be a program name with args.
17696 set dummy $ac_prog; ac_word=$2
17697 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17698 $as_echo_n "checking for $ac_word... " >&6; }
17699 if test "${ac_cv_prog_TRUE+set}" = set; then
17700 $as_echo_n "(cached) " >&6
17701 else
17702 if test -n "$TRUE"; then
17703 ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
17704 else
17705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17706 for as_dir in $PATH
17708 IFS=$as_save_IFS
17709 test -z "$as_dir" && as_dir=.
17710 for ac_exec_ext in '' $ac_executable_extensions; do
17711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17712 ac_cv_prog_TRUE="$ac_prog"
17713 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17714 break 2
17716 done
17717 done
17718 IFS=$as_save_IFS
17722 TRUE=$ac_cv_prog_TRUE
17723 if test -n "$TRUE"; then
17724 { $as_echo "$as_me:$LINENO: result: $TRUE" >&5
17725 $as_echo "$TRUE" >&6; }
17726 else
17727 { $as_echo "$as_me:$LINENO: result: no" >&5
17728 $as_echo "no" >&6; }
17732 test -n "$TRUE" && break
17733 done
17734 test -n "$TRUE" || TRUE="/bin/true"
17737 { $as_echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
17738 $as_echo_n "checking for inet_aton in -lc... " >&6; }
17739 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
17740 $as_echo_n "(cached) " >&6
17741 else
17742 ac_check_lib_save_LIBS=$LIBS
17743 LIBS="-lc $LIBS"
17744 cat >conftest.$ac_ext <<_ACEOF
17745 /* confdefs.h. */
17746 _ACEOF
17747 cat confdefs.h >>conftest.$ac_ext
17748 cat >>conftest.$ac_ext <<_ACEOF
17749 /* end confdefs.h. */
17751 /* Override any GCC internal prototype to avoid an error.
17752 Use char because int might match the return type of a GCC
17753 builtin and then its argument prototype would still apply. */
17754 #ifdef __cplusplus
17755 extern "C"
17756 #endif
17757 char inet_aton ();
17759 main ()
17761 return inet_aton ();
17763 return 0;
17765 _ACEOF
17766 rm -f conftest.$ac_objext conftest$ac_exeext
17767 if { (ac_try="$ac_link"
17768 case "(($ac_try" in
17769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17770 *) ac_try_echo=$ac_try;;
17771 esac
17772 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17773 $as_echo "$ac_try_echo") >&5
17774 (eval "$ac_link") 2>conftest.er1
17775 ac_status=$?
17776 grep -v '^ *+' conftest.er1 >conftest.err
17777 rm -f conftest.er1
17778 cat conftest.err >&5
17779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17780 (exit $ac_status); } && {
17781 test -z "$ac_c_werror_flag" ||
17782 test ! -s conftest.err
17783 } && test -s conftest$ac_exeext && {
17784 test "$cross_compiling" = yes ||
17785 $as_test_x conftest$ac_exeext
17786 }; then
17787 ac_cv_lib_c_inet_aton=yes
17788 else
17789 $as_echo "$as_me: failed program was:" >&5
17790 sed 's/^/| /' conftest.$ac_ext >&5
17792 ac_cv_lib_c_inet_aton=no
17795 rm -rf conftest.dSYM
17796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17797 conftest$ac_exeext conftest.$ac_ext
17798 LIBS=$ac_check_lib_save_LIBS
17800 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
17801 $as_echo "$ac_cv_lib_c_inet_aton" >&6; }
17802 if test "x$ac_cv_lib_c_inet_aton" = x""yes; then
17803 $ac_cv_prog_TRUE
17804 else
17806 { $as_echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
17807 $as_echo_n "checking for inet_aton in -lresolv... " >&6; }
17808 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
17809 $as_echo_n "(cached) " >&6
17810 else
17811 ac_check_lib_save_LIBS=$LIBS
17812 LIBS="-lresolv $LIBS"
17813 cat >conftest.$ac_ext <<_ACEOF
17814 /* confdefs.h. */
17815 _ACEOF
17816 cat confdefs.h >>conftest.$ac_ext
17817 cat >>conftest.$ac_ext <<_ACEOF
17818 /* end confdefs.h. */
17820 /* Override any GCC internal prototype to avoid an error.
17821 Use char because int might match the return type of a GCC
17822 builtin and then its argument prototype would still apply. */
17823 #ifdef __cplusplus
17824 extern "C"
17825 #endif
17826 char inet_aton ();
17828 main ()
17830 return inet_aton ();
17832 return 0;
17834 _ACEOF
17835 rm -f conftest.$ac_objext conftest$ac_exeext
17836 if { (ac_try="$ac_link"
17837 case "(($ac_try" in
17838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17839 *) ac_try_echo=$ac_try;;
17840 esac
17841 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17842 $as_echo "$ac_try_echo") >&5
17843 (eval "$ac_link") 2>conftest.er1
17844 ac_status=$?
17845 grep -v '^ *+' conftest.er1 >conftest.err
17846 rm -f conftest.er1
17847 cat conftest.err >&5
17848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17849 (exit $ac_status); } && {
17850 test -z "$ac_c_werror_flag" ||
17851 test ! -s conftest.err
17852 } && test -s conftest$ac_exeext && {
17853 test "$cross_compiling" = yes ||
17854 $as_test_x conftest$ac_exeext
17855 }; then
17856 ac_cv_lib_resolv_inet_aton=yes
17857 else
17858 $as_echo "$as_me: failed program was:" >&5
17859 sed 's/^/| /' conftest.$ac_ext >&5
17861 ac_cv_lib_resolv_inet_aton=no
17864 rm -rf conftest.dSYM
17865 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17866 conftest$ac_exeext conftest.$ac_ext
17867 LIBS=$ac_check_lib_save_LIBS
17869 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
17870 $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
17871 if test "x$ac_cv_lib_resolv_inet_aton" = x""yes; then
17872 cat >>confdefs.h <<_ACEOF
17873 #define HAVE_LIBRESOLV 1
17874 _ACEOF
17876 LIBS="-lresolv $LIBS"
17884 # On Tru64, chflags seems to be present, but calling it will
17885 # exit Python
17886 { $as_echo "$as_me:$LINENO: checking for chflags" >&5
17887 $as_echo_n "checking for chflags... " >&6; }
17888 if test "$cross_compiling" = yes; then
17889 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17890 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17891 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17892 See \`config.log' for more details." >&5
17893 $as_echo "$as_me: error: cannot run test program while cross compiling
17894 See \`config.log' for more details." >&2;}
17895 { (exit 1); exit 1; }; }; }
17896 else
17897 cat >conftest.$ac_ext <<_ACEOF
17898 /* confdefs.h. */
17899 _ACEOF
17900 cat confdefs.h >>conftest.$ac_ext
17901 cat >>conftest.$ac_ext <<_ACEOF
17902 /* end confdefs.h. */
17904 #include <sys/stat.h>
17905 #include <unistd.h>
17906 int main(int argc, char*argv[])
17908 if(chflags(argv[0], 0) != 0)
17909 return 1;
17910 return 0;
17913 _ACEOF
17914 rm -f conftest$ac_exeext
17915 if { (ac_try="$ac_link"
17916 case "(($ac_try" in
17917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17918 *) ac_try_echo=$ac_try;;
17919 esac
17920 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17921 $as_echo "$ac_try_echo") >&5
17922 (eval "$ac_link") 2>&5
17923 ac_status=$?
17924 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17925 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17926 { (case "(($ac_try" in
17927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17928 *) ac_try_echo=$ac_try;;
17929 esac
17930 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17931 $as_echo "$ac_try_echo") >&5
17932 (eval "$ac_try") 2>&5
17933 ac_status=$?
17934 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17935 (exit $ac_status); }; }; then
17937 cat >>confdefs.h <<\_ACEOF
17938 #define HAVE_CHFLAGS 1
17939 _ACEOF
17941 { $as_echo "$as_me:$LINENO: result: yes" >&5
17942 $as_echo "yes" >&6; }
17943 else
17944 $as_echo "$as_me: program exited with status $ac_status" >&5
17945 $as_echo "$as_me: failed program was:" >&5
17946 sed 's/^/| /' conftest.$ac_ext >&5
17948 ( exit $ac_status )
17949 { $as_echo "$as_me:$LINENO: result: no" >&5
17950 $as_echo "no" >&6; }
17953 rm -rf conftest.dSYM
17954 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17959 { $as_echo "$as_me:$LINENO: checking for lchflags" >&5
17960 $as_echo_n "checking for lchflags... " >&6; }
17961 if test "$cross_compiling" = yes; then
17962 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17963 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17964 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17965 See \`config.log' for more details." >&5
17966 $as_echo "$as_me: error: cannot run test program while cross compiling
17967 See \`config.log' for more details." >&2;}
17968 { (exit 1); exit 1; }; }; }
17969 else
17970 cat >conftest.$ac_ext <<_ACEOF
17971 /* confdefs.h. */
17972 _ACEOF
17973 cat confdefs.h >>conftest.$ac_ext
17974 cat >>conftest.$ac_ext <<_ACEOF
17975 /* end confdefs.h. */
17977 #include <sys/stat.h>
17978 #include <unistd.h>
17979 int main(int argc, char*argv[])
17981 if(lchflags(argv[0], 0) != 0)
17982 return 1;
17983 return 0;
17986 _ACEOF
17987 rm -f conftest$ac_exeext
17988 if { (ac_try="$ac_link"
17989 case "(($ac_try" in
17990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17991 *) ac_try_echo=$ac_try;;
17992 esac
17993 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17994 $as_echo "$ac_try_echo") >&5
17995 (eval "$ac_link") 2>&5
17996 ac_status=$?
17997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17998 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17999 { (case "(($ac_try" in
18000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18001 *) ac_try_echo=$ac_try;;
18002 esac
18003 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18004 $as_echo "$ac_try_echo") >&5
18005 (eval "$ac_try") 2>&5
18006 ac_status=$?
18007 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18008 (exit $ac_status); }; }; then
18010 cat >>confdefs.h <<\_ACEOF
18011 #define HAVE_LCHFLAGS 1
18012 _ACEOF
18014 { $as_echo "$as_me:$LINENO: result: yes" >&5
18015 $as_echo "yes" >&6; }
18016 else
18017 $as_echo "$as_me: program exited with status $ac_status" >&5
18018 $as_echo "$as_me: failed program was:" >&5
18019 sed 's/^/| /' conftest.$ac_ext >&5
18021 ( exit $ac_status )
18022 { $as_echo "$as_me:$LINENO: result: no" >&5
18023 $as_echo "no" >&6; }
18026 rm -rf conftest.dSYM
18027 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18032 case $ac_sys_system/$ac_sys_release in
18033 Darwin/*)
18034 _CUR_CFLAGS="${CFLAGS}"
18035 _CUR_LDFLAGS="${LDFLAGS}"
18036 CFLAGS="${CFLAGS} -Wl,-search_paths_first"
18037 LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
18039 esac
18041 { $as_echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5
18042 $as_echo_n "checking for inflateCopy in -lz... " >&6; }
18043 if test "${ac_cv_lib_z_inflateCopy+set}" = set; then
18044 $as_echo_n "(cached) " >&6
18045 else
18046 ac_check_lib_save_LIBS=$LIBS
18047 LIBS="-lz $LIBS"
18048 cat >conftest.$ac_ext <<_ACEOF
18049 /* confdefs.h. */
18050 _ACEOF
18051 cat confdefs.h >>conftest.$ac_ext
18052 cat >>conftest.$ac_ext <<_ACEOF
18053 /* end confdefs.h. */
18055 /* Override any GCC internal prototype to avoid an error.
18056 Use char because int might match the return type of a GCC
18057 builtin and then its argument prototype would still apply. */
18058 #ifdef __cplusplus
18059 extern "C"
18060 #endif
18061 char inflateCopy ();
18063 main ()
18065 return inflateCopy ();
18067 return 0;
18069 _ACEOF
18070 rm -f conftest.$ac_objext conftest$ac_exeext
18071 if { (ac_try="$ac_link"
18072 case "(($ac_try" in
18073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18074 *) ac_try_echo=$ac_try;;
18075 esac
18076 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18077 $as_echo "$ac_try_echo") >&5
18078 (eval "$ac_link") 2>conftest.er1
18079 ac_status=$?
18080 grep -v '^ *+' conftest.er1 >conftest.err
18081 rm -f conftest.er1
18082 cat conftest.err >&5
18083 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18084 (exit $ac_status); } && {
18085 test -z "$ac_c_werror_flag" ||
18086 test ! -s conftest.err
18087 } && test -s conftest$ac_exeext && {
18088 test "$cross_compiling" = yes ||
18089 $as_test_x conftest$ac_exeext
18090 }; then
18091 ac_cv_lib_z_inflateCopy=yes
18092 else
18093 $as_echo "$as_me: failed program was:" >&5
18094 sed 's/^/| /' conftest.$ac_ext >&5
18096 ac_cv_lib_z_inflateCopy=no
18099 rm -rf conftest.dSYM
18100 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18101 conftest$ac_exeext conftest.$ac_ext
18102 LIBS=$ac_check_lib_save_LIBS
18104 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5
18105 $as_echo "$ac_cv_lib_z_inflateCopy" >&6; }
18106 if test "x$ac_cv_lib_z_inflateCopy" = x""yes; then
18108 cat >>confdefs.h <<\_ACEOF
18109 #define HAVE_ZLIB_COPY 1
18110 _ACEOF
18115 case $ac_sys_system/$ac_sys_release in
18116 Darwin/*)
18117 CFLAGS="${_CUR_CFLAGS}"
18118 LDFLAGS="${_CUR_LDFLAGS}"
18120 esac
18122 { $as_echo "$as_me:$LINENO: checking for hstrerror" >&5
18123 $as_echo_n "checking for hstrerror... " >&6; }
18124 cat >conftest.$ac_ext <<_ACEOF
18125 /* confdefs.h. */
18126 _ACEOF
18127 cat confdefs.h >>conftest.$ac_ext
18128 cat >>conftest.$ac_ext <<_ACEOF
18129 /* end confdefs.h. */
18131 #include "confdefs.h"
18132 #include <netdb.h>
18135 main ()
18137 void* p = hstrerror; hstrerror(0)
18139 return 0;
18141 _ACEOF
18142 rm -f conftest.$ac_objext conftest$ac_exeext
18143 if { (ac_try="$ac_link"
18144 case "(($ac_try" in
18145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18146 *) ac_try_echo=$ac_try;;
18147 esac
18148 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18149 $as_echo "$ac_try_echo") >&5
18150 (eval "$ac_link") 2>conftest.er1
18151 ac_status=$?
18152 grep -v '^ *+' conftest.er1 >conftest.err
18153 rm -f conftest.er1
18154 cat conftest.err >&5
18155 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18156 (exit $ac_status); } && {
18157 test -z "$ac_c_werror_flag" ||
18158 test ! -s conftest.err
18159 } && test -s conftest$ac_exeext && {
18160 test "$cross_compiling" = yes ||
18161 $as_test_x conftest$ac_exeext
18162 }; then
18164 cat >>confdefs.h <<\_ACEOF
18165 #define HAVE_HSTRERROR 1
18166 _ACEOF
18168 { $as_echo "$as_me:$LINENO: result: yes" >&5
18169 $as_echo "yes" >&6; }
18170 else
18171 $as_echo "$as_me: failed program was:" >&5
18172 sed 's/^/| /' conftest.$ac_ext >&5
18174 { $as_echo "$as_me:$LINENO: result: no" >&5
18175 $as_echo "no" >&6; }
18179 rm -rf conftest.dSYM
18180 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18181 conftest$ac_exeext conftest.$ac_ext
18183 { $as_echo "$as_me:$LINENO: checking for inet_aton" >&5
18184 $as_echo_n "checking for inet_aton... " >&6; }
18185 cat >conftest.$ac_ext <<_ACEOF
18186 /* confdefs.h. */
18187 _ACEOF
18188 cat confdefs.h >>conftest.$ac_ext
18189 cat >>conftest.$ac_ext <<_ACEOF
18190 /* end confdefs.h. */
18192 #include "confdefs.h"
18193 #include <sys/types.h>
18194 #include <sys/socket.h>
18195 #include <netinet/in.h>
18196 #include <arpa/inet.h>
18199 main ()
18201 void* p = inet_aton;inet_aton(0,0)
18203 return 0;
18205 _ACEOF
18206 rm -f conftest.$ac_objext conftest$ac_exeext
18207 if { (ac_try="$ac_link"
18208 case "(($ac_try" in
18209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18210 *) ac_try_echo=$ac_try;;
18211 esac
18212 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18213 $as_echo "$ac_try_echo") >&5
18214 (eval "$ac_link") 2>conftest.er1
18215 ac_status=$?
18216 grep -v '^ *+' conftest.er1 >conftest.err
18217 rm -f conftest.er1
18218 cat conftest.err >&5
18219 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18220 (exit $ac_status); } && {
18221 test -z "$ac_c_werror_flag" ||
18222 test ! -s conftest.err
18223 } && test -s conftest$ac_exeext && {
18224 test "$cross_compiling" = yes ||
18225 $as_test_x conftest$ac_exeext
18226 }; then
18228 cat >>confdefs.h <<\_ACEOF
18229 #define HAVE_INET_ATON 1
18230 _ACEOF
18232 { $as_echo "$as_me:$LINENO: result: yes" >&5
18233 $as_echo "yes" >&6; }
18234 else
18235 $as_echo "$as_me: failed program was:" >&5
18236 sed 's/^/| /' conftest.$ac_ext >&5
18238 { $as_echo "$as_me:$LINENO: result: no" >&5
18239 $as_echo "no" >&6; }
18243 rm -rf conftest.dSYM
18244 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18245 conftest$ac_exeext conftest.$ac_ext
18247 { $as_echo "$as_me:$LINENO: checking for inet_pton" >&5
18248 $as_echo_n "checking for inet_pton... " >&6; }
18249 cat >conftest.$ac_ext <<_ACEOF
18250 /* confdefs.h. */
18251 _ACEOF
18252 cat confdefs.h >>conftest.$ac_ext
18253 cat >>conftest.$ac_ext <<_ACEOF
18254 /* end confdefs.h. */
18256 #include "confdefs.h"
18257 #include <sys/types.h>
18258 #include <sys/socket.h>
18259 #include <netinet/in.h>
18260 #include <arpa/inet.h>
18263 main ()
18265 void* p = inet_pton
18267 return 0;
18269 _ACEOF
18270 rm -f conftest.$ac_objext
18271 if { (ac_try="$ac_compile"
18272 case "(($ac_try" in
18273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18274 *) ac_try_echo=$ac_try;;
18275 esac
18276 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18277 $as_echo "$ac_try_echo") >&5
18278 (eval "$ac_compile") 2>conftest.er1
18279 ac_status=$?
18280 grep -v '^ *+' conftest.er1 >conftest.err
18281 rm -f conftest.er1
18282 cat conftest.err >&5
18283 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18284 (exit $ac_status); } && {
18285 test -z "$ac_c_werror_flag" ||
18286 test ! -s conftest.err
18287 } && test -s conftest.$ac_objext; then
18289 cat >>confdefs.h <<\_ACEOF
18290 #define HAVE_INET_PTON 1
18291 _ACEOF
18293 { $as_echo "$as_me:$LINENO: result: yes" >&5
18294 $as_echo "yes" >&6; }
18295 else
18296 $as_echo "$as_me: failed program was:" >&5
18297 sed 's/^/| /' conftest.$ac_ext >&5
18299 { $as_echo "$as_me:$LINENO: result: no" >&5
18300 $as_echo "no" >&6; }
18304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18306 # On some systems, setgroups is in unistd.h, on others, in grp.h
18307 { $as_echo "$as_me:$LINENO: checking for setgroups" >&5
18308 $as_echo_n "checking for setgroups... " >&6; }
18309 cat >conftest.$ac_ext <<_ACEOF
18310 /* confdefs.h. */
18311 _ACEOF
18312 cat confdefs.h >>conftest.$ac_ext
18313 cat >>conftest.$ac_ext <<_ACEOF
18314 /* end confdefs.h. */
18316 #include "confdefs.h"
18317 #include <unistd.h>
18318 #ifdef HAVE_GRP_H
18319 #include <grp.h>
18320 #endif
18323 main ()
18325 void* p = setgroups
18327 return 0;
18329 _ACEOF
18330 rm -f conftest.$ac_objext
18331 if { (ac_try="$ac_compile"
18332 case "(($ac_try" in
18333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18334 *) ac_try_echo=$ac_try;;
18335 esac
18336 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18337 $as_echo "$ac_try_echo") >&5
18338 (eval "$ac_compile") 2>conftest.er1
18339 ac_status=$?
18340 grep -v '^ *+' conftest.er1 >conftest.err
18341 rm -f conftest.er1
18342 cat conftest.err >&5
18343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18344 (exit $ac_status); } && {
18345 test -z "$ac_c_werror_flag" ||
18346 test ! -s conftest.err
18347 } && test -s conftest.$ac_objext; then
18349 cat >>confdefs.h <<\_ACEOF
18350 #define HAVE_SETGROUPS 1
18351 _ACEOF
18353 { $as_echo "$as_me:$LINENO: result: yes" >&5
18354 $as_echo "yes" >&6; }
18355 else
18356 $as_echo "$as_me: failed program was:" >&5
18357 sed 's/^/| /' conftest.$ac_ext >&5
18359 { $as_echo "$as_me:$LINENO: result: no" >&5
18360 $as_echo "no" >&6; }
18364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18366 # check for openpty and forkpty
18369 for ac_func in openpty
18371 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18372 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18373 $as_echo_n "checking for $ac_func... " >&6; }
18374 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18375 $as_echo_n "(cached) " >&6
18376 else
18377 cat >conftest.$ac_ext <<_ACEOF
18378 /* confdefs.h. */
18379 _ACEOF
18380 cat confdefs.h >>conftest.$ac_ext
18381 cat >>conftest.$ac_ext <<_ACEOF
18382 /* end confdefs.h. */
18383 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18384 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18385 #define $ac_func innocuous_$ac_func
18387 /* System header to define __stub macros and hopefully few prototypes,
18388 which can conflict with char $ac_func (); below.
18389 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18390 <limits.h> exists even on freestanding compilers. */
18392 #ifdef __STDC__
18393 # include <limits.h>
18394 #else
18395 # include <assert.h>
18396 #endif
18398 #undef $ac_func
18400 /* Override any GCC internal prototype to avoid an error.
18401 Use char because int might match the return type of a GCC
18402 builtin and then its argument prototype would still apply. */
18403 #ifdef __cplusplus
18404 extern "C"
18405 #endif
18406 char $ac_func ();
18407 /* The GNU C library defines this for functions which it implements
18408 to always fail with ENOSYS. Some functions are actually named
18409 something starting with __ and the normal name is an alias. */
18410 #if defined __stub_$ac_func || defined __stub___$ac_func
18411 choke me
18412 #endif
18415 main ()
18417 return $ac_func ();
18419 return 0;
18421 _ACEOF
18422 rm -f conftest.$ac_objext conftest$ac_exeext
18423 if { (ac_try="$ac_link"
18424 case "(($ac_try" in
18425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18426 *) ac_try_echo=$ac_try;;
18427 esac
18428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18429 $as_echo "$ac_try_echo") >&5
18430 (eval "$ac_link") 2>conftest.er1
18431 ac_status=$?
18432 grep -v '^ *+' conftest.er1 >conftest.err
18433 rm -f conftest.er1
18434 cat conftest.err >&5
18435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18436 (exit $ac_status); } && {
18437 test -z "$ac_c_werror_flag" ||
18438 test ! -s conftest.err
18439 } && test -s conftest$ac_exeext && {
18440 test "$cross_compiling" = yes ||
18441 $as_test_x conftest$ac_exeext
18442 }; then
18443 eval "$as_ac_var=yes"
18444 else
18445 $as_echo "$as_me: failed program was:" >&5
18446 sed 's/^/| /' conftest.$ac_ext >&5
18448 eval "$as_ac_var=no"
18451 rm -rf conftest.dSYM
18452 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18453 conftest$ac_exeext conftest.$ac_ext
18455 ac_res=`eval 'as_val=${'$as_ac_var'}
18456 $as_echo "$as_val"'`
18457 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18458 $as_echo "$ac_res" >&6; }
18459 as_val=`eval 'as_val=${'$as_ac_var'}
18460 $as_echo "$as_val"'`
18461 if test "x$as_val" = x""yes; then
18462 cat >>confdefs.h <<_ACEOF
18463 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18464 _ACEOF
18466 else
18467 { $as_echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
18468 $as_echo_n "checking for openpty in -lutil... " >&6; }
18469 if test "${ac_cv_lib_util_openpty+set}" = set; then
18470 $as_echo_n "(cached) " >&6
18471 else
18472 ac_check_lib_save_LIBS=$LIBS
18473 LIBS="-lutil $LIBS"
18474 cat >conftest.$ac_ext <<_ACEOF
18475 /* confdefs.h. */
18476 _ACEOF
18477 cat confdefs.h >>conftest.$ac_ext
18478 cat >>conftest.$ac_ext <<_ACEOF
18479 /* end confdefs.h. */
18481 /* Override any GCC internal prototype to avoid an error.
18482 Use char because int might match the return type of a GCC
18483 builtin and then its argument prototype would still apply. */
18484 #ifdef __cplusplus
18485 extern "C"
18486 #endif
18487 char openpty ();
18489 main ()
18491 return openpty ();
18493 return 0;
18495 _ACEOF
18496 rm -f conftest.$ac_objext conftest$ac_exeext
18497 if { (ac_try="$ac_link"
18498 case "(($ac_try" in
18499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18500 *) ac_try_echo=$ac_try;;
18501 esac
18502 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18503 $as_echo "$ac_try_echo") >&5
18504 (eval "$ac_link") 2>conftest.er1
18505 ac_status=$?
18506 grep -v '^ *+' conftest.er1 >conftest.err
18507 rm -f conftest.er1
18508 cat conftest.err >&5
18509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18510 (exit $ac_status); } && {
18511 test -z "$ac_c_werror_flag" ||
18512 test ! -s conftest.err
18513 } && test -s conftest$ac_exeext && {
18514 test "$cross_compiling" = yes ||
18515 $as_test_x conftest$ac_exeext
18516 }; then
18517 ac_cv_lib_util_openpty=yes
18518 else
18519 $as_echo "$as_me: failed program was:" >&5
18520 sed 's/^/| /' conftest.$ac_ext >&5
18522 ac_cv_lib_util_openpty=no
18525 rm -rf conftest.dSYM
18526 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18527 conftest$ac_exeext conftest.$ac_ext
18528 LIBS=$ac_check_lib_save_LIBS
18530 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
18531 $as_echo "$ac_cv_lib_util_openpty" >&6; }
18532 if test "x$ac_cv_lib_util_openpty" = x""yes; then
18533 cat >>confdefs.h <<\_ACEOF
18534 #define HAVE_OPENPTY 1
18535 _ACEOF
18536 LIBS="$LIBS -lutil"
18537 else
18538 { $as_echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
18539 $as_echo_n "checking for openpty in -lbsd... " >&6; }
18540 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
18541 $as_echo_n "(cached) " >&6
18542 else
18543 ac_check_lib_save_LIBS=$LIBS
18544 LIBS="-lbsd $LIBS"
18545 cat >conftest.$ac_ext <<_ACEOF
18546 /* confdefs.h. */
18547 _ACEOF
18548 cat confdefs.h >>conftest.$ac_ext
18549 cat >>conftest.$ac_ext <<_ACEOF
18550 /* end confdefs.h. */
18552 /* Override any GCC internal prototype to avoid an error.
18553 Use char because int might match the return type of a GCC
18554 builtin and then its argument prototype would still apply. */
18555 #ifdef __cplusplus
18556 extern "C"
18557 #endif
18558 char openpty ();
18560 main ()
18562 return openpty ();
18564 return 0;
18566 _ACEOF
18567 rm -f conftest.$ac_objext conftest$ac_exeext
18568 if { (ac_try="$ac_link"
18569 case "(($ac_try" in
18570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18571 *) ac_try_echo=$ac_try;;
18572 esac
18573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18574 $as_echo "$ac_try_echo") >&5
18575 (eval "$ac_link") 2>conftest.er1
18576 ac_status=$?
18577 grep -v '^ *+' conftest.er1 >conftest.err
18578 rm -f conftest.er1
18579 cat conftest.err >&5
18580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18581 (exit $ac_status); } && {
18582 test -z "$ac_c_werror_flag" ||
18583 test ! -s conftest.err
18584 } && test -s conftest$ac_exeext && {
18585 test "$cross_compiling" = yes ||
18586 $as_test_x conftest$ac_exeext
18587 }; then
18588 ac_cv_lib_bsd_openpty=yes
18589 else
18590 $as_echo "$as_me: failed program was:" >&5
18591 sed 's/^/| /' conftest.$ac_ext >&5
18593 ac_cv_lib_bsd_openpty=no
18596 rm -rf conftest.dSYM
18597 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18598 conftest$ac_exeext conftest.$ac_ext
18599 LIBS=$ac_check_lib_save_LIBS
18601 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
18602 $as_echo "$ac_cv_lib_bsd_openpty" >&6; }
18603 if test "x$ac_cv_lib_bsd_openpty" = x""yes; then
18604 cat >>confdefs.h <<\_ACEOF
18605 #define HAVE_OPENPTY 1
18606 _ACEOF
18607 LIBS="$LIBS -lbsd"
18615 done
18618 for ac_func in forkpty
18620 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18621 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18622 $as_echo_n "checking for $ac_func... " >&6; }
18623 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18624 $as_echo_n "(cached) " >&6
18625 else
18626 cat >conftest.$ac_ext <<_ACEOF
18627 /* confdefs.h. */
18628 _ACEOF
18629 cat confdefs.h >>conftest.$ac_ext
18630 cat >>conftest.$ac_ext <<_ACEOF
18631 /* end confdefs.h. */
18632 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18633 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18634 #define $ac_func innocuous_$ac_func
18636 /* System header to define __stub macros and hopefully few prototypes,
18637 which can conflict with char $ac_func (); below.
18638 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18639 <limits.h> exists even on freestanding compilers. */
18641 #ifdef __STDC__
18642 # include <limits.h>
18643 #else
18644 # include <assert.h>
18645 #endif
18647 #undef $ac_func
18649 /* Override any GCC internal prototype to avoid an error.
18650 Use char because int might match the return type of a GCC
18651 builtin and then its argument prototype would still apply. */
18652 #ifdef __cplusplus
18653 extern "C"
18654 #endif
18655 char $ac_func ();
18656 /* The GNU C library defines this for functions which it implements
18657 to always fail with ENOSYS. Some functions are actually named
18658 something starting with __ and the normal name is an alias. */
18659 #if defined __stub_$ac_func || defined __stub___$ac_func
18660 choke me
18661 #endif
18664 main ()
18666 return $ac_func ();
18668 return 0;
18670 _ACEOF
18671 rm -f conftest.$ac_objext conftest$ac_exeext
18672 if { (ac_try="$ac_link"
18673 case "(($ac_try" in
18674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18675 *) ac_try_echo=$ac_try;;
18676 esac
18677 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18678 $as_echo "$ac_try_echo") >&5
18679 (eval "$ac_link") 2>conftest.er1
18680 ac_status=$?
18681 grep -v '^ *+' conftest.er1 >conftest.err
18682 rm -f conftest.er1
18683 cat conftest.err >&5
18684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18685 (exit $ac_status); } && {
18686 test -z "$ac_c_werror_flag" ||
18687 test ! -s conftest.err
18688 } && test -s conftest$ac_exeext && {
18689 test "$cross_compiling" = yes ||
18690 $as_test_x conftest$ac_exeext
18691 }; then
18692 eval "$as_ac_var=yes"
18693 else
18694 $as_echo "$as_me: failed program was:" >&5
18695 sed 's/^/| /' conftest.$ac_ext >&5
18697 eval "$as_ac_var=no"
18700 rm -rf conftest.dSYM
18701 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18702 conftest$ac_exeext conftest.$ac_ext
18704 ac_res=`eval 'as_val=${'$as_ac_var'}
18705 $as_echo "$as_val"'`
18706 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18707 $as_echo "$ac_res" >&6; }
18708 as_val=`eval 'as_val=${'$as_ac_var'}
18709 $as_echo "$as_val"'`
18710 if test "x$as_val" = x""yes; then
18711 cat >>confdefs.h <<_ACEOF
18712 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18713 _ACEOF
18715 else
18716 { $as_echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
18717 $as_echo_n "checking for forkpty in -lutil... " >&6; }
18718 if test "${ac_cv_lib_util_forkpty+set}" = set; then
18719 $as_echo_n "(cached) " >&6
18720 else
18721 ac_check_lib_save_LIBS=$LIBS
18722 LIBS="-lutil $LIBS"
18723 cat >conftest.$ac_ext <<_ACEOF
18724 /* confdefs.h. */
18725 _ACEOF
18726 cat confdefs.h >>conftest.$ac_ext
18727 cat >>conftest.$ac_ext <<_ACEOF
18728 /* end confdefs.h. */
18730 /* Override any GCC internal prototype to avoid an error.
18731 Use char because int might match the return type of a GCC
18732 builtin and then its argument prototype would still apply. */
18733 #ifdef __cplusplus
18734 extern "C"
18735 #endif
18736 char forkpty ();
18738 main ()
18740 return forkpty ();
18742 return 0;
18744 _ACEOF
18745 rm -f conftest.$ac_objext conftest$ac_exeext
18746 if { (ac_try="$ac_link"
18747 case "(($ac_try" in
18748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18749 *) ac_try_echo=$ac_try;;
18750 esac
18751 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18752 $as_echo "$ac_try_echo") >&5
18753 (eval "$ac_link") 2>conftest.er1
18754 ac_status=$?
18755 grep -v '^ *+' conftest.er1 >conftest.err
18756 rm -f conftest.er1
18757 cat conftest.err >&5
18758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18759 (exit $ac_status); } && {
18760 test -z "$ac_c_werror_flag" ||
18761 test ! -s conftest.err
18762 } && test -s conftest$ac_exeext && {
18763 test "$cross_compiling" = yes ||
18764 $as_test_x conftest$ac_exeext
18765 }; then
18766 ac_cv_lib_util_forkpty=yes
18767 else
18768 $as_echo "$as_me: failed program was:" >&5
18769 sed 's/^/| /' conftest.$ac_ext >&5
18771 ac_cv_lib_util_forkpty=no
18774 rm -rf conftest.dSYM
18775 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18776 conftest$ac_exeext conftest.$ac_ext
18777 LIBS=$ac_check_lib_save_LIBS
18779 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
18780 $as_echo "$ac_cv_lib_util_forkpty" >&6; }
18781 if test "x$ac_cv_lib_util_forkpty" = x""yes; then
18782 cat >>confdefs.h <<\_ACEOF
18783 #define HAVE_FORKPTY 1
18784 _ACEOF
18785 LIBS="$LIBS -lutil"
18786 else
18787 { $as_echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
18788 $as_echo_n "checking for forkpty in -lbsd... " >&6; }
18789 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
18790 $as_echo_n "(cached) " >&6
18791 else
18792 ac_check_lib_save_LIBS=$LIBS
18793 LIBS="-lbsd $LIBS"
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. */
18801 /* Override any GCC internal prototype to avoid an error.
18802 Use char because int might match the return type of a GCC
18803 builtin and then its argument prototype would still apply. */
18804 #ifdef __cplusplus
18805 extern "C"
18806 #endif
18807 char forkpty ();
18809 main ()
18811 return forkpty ();
18813 return 0;
18815 _ACEOF
18816 rm -f conftest.$ac_objext conftest$ac_exeext
18817 if { (ac_try="$ac_link"
18818 case "(($ac_try" in
18819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18820 *) ac_try_echo=$ac_try;;
18821 esac
18822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18823 $as_echo "$ac_try_echo") >&5
18824 (eval "$ac_link") 2>conftest.er1
18825 ac_status=$?
18826 grep -v '^ *+' conftest.er1 >conftest.err
18827 rm -f conftest.er1
18828 cat conftest.err >&5
18829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18830 (exit $ac_status); } && {
18831 test -z "$ac_c_werror_flag" ||
18832 test ! -s conftest.err
18833 } && test -s conftest$ac_exeext && {
18834 test "$cross_compiling" = yes ||
18835 $as_test_x conftest$ac_exeext
18836 }; then
18837 ac_cv_lib_bsd_forkpty=yes
18838 else
18839 $as_echo "$as_me: failed program was:" >&5
18840 sed 's/^/| /' conftest.$ac_ext >&5
18842 ac_cv_lib_bsd_forkpty=no
18845 rm -rf conftest.dSYM
18846 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18847 conftest$ac_exeext conftest.$ac_ext
18848 LIBS=$ac_check_lib_save_LIBS
18850 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
18851 $as_echo "$ac_cv_lib_bsd_forkpty" >&6; }
18852 if test "x$ac_cv_lib_bsd_forkpty" = x""yes; then
18853 cat >>confdefs.h <<\_ACEOF
18854 #define HAVE_FORKPTY 1
18855 _ACEOF
18856 LIBS="$LIBS -lbsd"
18864 done
18867 # Stuff for expat.
18869 for ac_func in memmove
18871 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18872 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18873 $as_echo_n "checking for $ac_func... " >&6; }
18874 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18875 $as_echo_n "(cached) " >&6
18876 else
18877 cat >conftest.$ac_ext <<_ACEOF
18878 /* confdefs.h. */
18879 _ACEOF
18880 cat confdefs.h >>conftest.$ac_ext
18881 cat >>conftest.$ac_ext <<_ACEOF
18882 /* end confdefs.h. */
18883 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18884 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18885 #define $ac_func innocuous_$ac_func
18887 /* System header to define __stub macros and hopefully few prototypes,
18888 which can conflict with char $ac_func (); below.
18889 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18890 <limits.h> exists even on freestanding compilers. */
18892 #ifdef __STDC__
18893 # include <limits.h>
18894 #else
18895 # include <assert.h>
18896 #endif
18898 #undef $ac_func
18900 /* Override any GCC internal prototype to avoid an error.
18901 Use char because int might match the return type of a GCC
18902 builtin and then its argument prototype would still apply. */
18903 #ifdef __cplusplus
18904 extern "C"
18905 #endif
18906 char $ac_func ();
18907 /* The GNU C library defines this for functions which it implements
18908 to always fail with ENOSYS. Some functions are actually named
18909 something starting with __ and the normal name is an alias. */
18910 #if defined __stub_$ac_func || defined __stub___$ac_func
18911 choke me
18912 #endif
18915 main ()
18917 return $ac_func ();
18919 return 0;
18921 _ACEOF
18922 rm -f conftest.$ac_objext conftest$ac_exeext
18923 if { (ac_try="$ac_link"
18924 case "(($ac_try" in
18925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18926 *) ac_try_echo=$ac_try;;
18927 esac
18928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18929 $as_echo "$ac_try_echo") >&5
18930 (eval "$ac_link") 2>conftest.er1
18931 ac_status=$?
18932 grep -v '^ *+' conftest.er1 >conftest.err
18933 rm -f conftest.er1
18934 cat conftest.err >&5
18935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18936 (exit $ac_status); } && {
18937 test -z "$ac_c_werror_flag" ||
18938 test ! -s conftest.err
18939 } && test -s conftest$ac_exeext && {
18940 test "$cross_compiling" = yes ||
18941 $as_test_x conftest$ac_exeext
18942 }; then
18943 eval "$as_ac_var=yes"
18944 else
18945 $as_echo "$as_me: failed program was:" >&5
18946 sed 's/^/| /' conftest.$ac_ext >&5
18948 eval "$as_ac_var=no"
18951 rm -rf conftest.dSYM
18952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18953 conftest$ac_exeext conftest.$ac_ext
18955 ac_res=`eval 'as_val=${'$as_ac_var'}
18956 $as_echo "$as_val"'`
18957 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18958 $as_echo "$ac_res" >&6; }
18959 as_val=`eval 'as_val=${'$as_ac_var'}
18960 $as_echo "$as_val"'`
18961 if test "x$as_val" = x""yes; then
18962 cat >>confdefs.h <<_ACEOF
18963 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18964 _ACEOF
18967 done
18970 # check for long file support functions
18977 for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
18979 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18980 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18981 $as_echo_n "checking for $ac_func... " >&6; }
18982 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18983 $as_echo_n "(cached) " >&6
18984 else
18985 cat >conftest.$ac_ext <<_ACEOF
18986 /* confdefs.h. */
18987 _ACEOF
18988 cat confdefs.h >>conftest.$ac_ext
18989 cat >>conftest.$ac_ext <<_ACEOF
18990 /* end confdefs.h. */
18991 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18992 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18993 #define $ac_func innocuous_$ac_func
18995 /* System header to define __stub macros and hopefully few prototypes,
18996 which can conflict with char $ac_func (); below.
18997 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18998 <limits.h> exists even on freestanding compilers. */
19000 #ifdef __STDC__
19001 # include <limits.h>
19002 #else
19003 # include <assert.h>
19004 #endif
19006 #undef $ac_func
19008 /* Override any GCC internal prototype to avoid an error.
19009 Use char because int might match the return type of a GCC
19010 builtin and then its argument prototype would still apply. */
19011 #ifdef __cplusplus
19012 extern "C"
19013 #endif
19014 char $ac_func ();
19015 /* The GNU C library defines this for functions which it implements
19016 to always fail with ENOSYS. Some functions are actually named
19017 something starting with __ and the normal name is an alias. */
19018 #if defined __stub_$ac_func || defined __stub___$ac_func
19019 choke me
19020 #endif
19023 main ()
19025 return $ac_func ();
19027 return 0;
19029 _ACEOF
19030 rm -f conftest.$ac_objext conftest$ac_exeext
19031 if { (ac_try="$ac_link"
19032 case "(($ac_try" in
19033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19034 *) ac_try_echo=$ac_try;;
19035 esac
19036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19037 $as_echo "$ac_try_echo") >&5
19038 (eval "$ac_link") 2>conftest.er1
19039 ac_status=$?
19040 grep -v '^ *+' conftest.er1 >conftest.err
19041 rm -f conftest.er1
19042 cat conftest.err >&5
19043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19044 (exit $ac_status); } && {
19045 test -z "$ac_c_werror_flag" ||
19046 test ! -s conftest.err
19047 } && test -s conftest$ac_exeext && {
19048 test "$cross_compiling" = yes ||
19049 $as_test_x conftest$ac_exeext
19050 }; then
19051 eval "$as_ac_var=yes"
19052 else
19053 $as_echo "$as_me: failed program was:" >&5
19054 sed 's/^/| /' conftest.$ac_ext >&5
19056 eval "$as_ac_var=no"
19059 rm -rf conftest.dSYM
19060 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19061 conftest$ac_exeext conftest.$ac_ext
19063 ac_res=`eval 'as_val=${'$as_ac_var'}
19064 $as_echo "$as_val"'`
19065 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19066 $as_echo "$ac_res" >&6; }
19067 as_val=`eval 'as_val=${'$as_ac_var'}
19068 $as_echo "$as_val"'`
19069 if test "x$as_val" = x""yes; then
19070 cat >>confdefs.h <<_ACEOF
19071 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19072 _ACEOF
19075 done
19081 for ac_func in dup2 getcwd strdup
19083 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19084 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19085 $as_echo_n "checking for $ac_func... " >&6; }
19086 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19087 $as_echo_n "(cached) " >&6
19088 else
19089 cat >conftest.$ac_ext <<_ACEOF
19090 /* confdefs.h. */
19091 _ACEOF
19092 cat confdefs.h >>conftest.$ac_ext
19093 cat >>conftest.$ac_ext <<_ACEOF
19094 /* end confdefs.h. */
19095 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19096 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19097 #define $ac_func innocuous_$ac_func
19099 /* System header to define __stub macros and hopefully few prototypes,
19100 which can conflict with char $ac_func (); below.
19101 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19102 <limits.h> exists even on freestanding compilers. */
19104 #ifdef __STDC__
19105 # include <limits.h>
19106 #else
19107 # include <assert.h>
19108 #endif
19110 #undef $ac_func
19112 /* Override any GCC internal prototype to avoid an error.
19113 Use char because int might match the return type of a GCC
19114 builtin and then its argument prototype would still apply. */
19115 #ifdef __cplusplus
19116 extern "C"
19117 #endif
19118 char $ac_func ();
19119 /* The GNU C library defines this for functions which it implements
19120 to always fail with ENOSYS. Some functions are actually named
19121 something starting with __ and the normal name is an alias. */
19122 #if defined __stub_$ac_func || defined __stub___$ac_func
19123 choke me
19124 #endif
19127 main ()
19129 return $ac_func ();
19131 return 0;
19133 _ACEOF
19134 rm -f conftest.$ac_objext conftest$ac_exeext
19135 if { (ac_try="$ac_link"
19136 case "(($ac_try" in
19137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19138 *) ac_try_echo=$ac_try;;
19139 esac
19140 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19141 $as_echo "$ac_try_echo") >&5
19142 (eval "$ac_link") 2>conftest.er1
19143 ac_status=$?
19144 grep -v '^ *+' conftest.er1 >conftest.err
19145 rm -f conftest.er1
19146 cat conftest.err >&5
19147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19148 (exit $ac_status); } && {
19149 test -z "$ac_c_werror_flag" ||
19150 test ! -s conftest.err
19151 } && test -s conftest$ac_exeext && {
19152 test "$cross_compiling" = yes ||
19153 $as_test_x conftest$ac_exeext
19154 }; then
19155 eval "$as_ac_var=yes"
19156 else
19157 $as_echo "$as_me: failed program was:" >&5
19158 sed 's/^/| /' conftest.$ac_ext >&5
19160 eval "$as_ac_var=no"
19163 rm -rf conftest.dSYM
19164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19165 conftest$ac_exeext conftest.$ac_ext
19167 ac_res=`eval 'as_val=${'$as_ac_var'}
19168 $as_echo "$as_val"'`
19169 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19170 $as_echo "$ac_res" >&6; }
19171 as_val=`eval 'as_val=${'$as_ac_var'}
19172 $as_echo "$as_val"'`
19173 if test "x$as_val" = x""yes; then
19174 cat >>confdefs.h <<_ACEOF
19175 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19176 _ACEOF
19178 else
19179 case " $LIBOBJS " in
19180 *" $ac_func.$ac_objext "* ) ;;
19181 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
19183 esac
19186 done
19190 for ac_func in getpgrp
19192 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19193 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19194 $as_echo_n "checking for $ac_func... " >&6; }
19195 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19196 $as_echo_n "(cached) " >&6
19197 else
19198 cat >conftest.$ac_ext <<_ACEOF
19199 /* confdefs.h. */
19200 _ACEOF
19201 cat confdefs.h >>conftest.$ac_ext
19202 cat >>conftest.$ac_ext <<_ACEOF
19203 /* end confdefs.h. */
19204 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19205 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19206 #define $ac_func innocuous_$ac_func
19208 /* System header to define __stub macros and hopefully few prototypes,
19209 which can conflict with char $ac_func (); below.
19210 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19211 <limits.h> exists even on freestanding compilers. */
19213 #ifdef __STDC__
19214 # include <limits.h>
19215 #else
19216 # include <assert.h>
19217 #endif
19219 #undef $ac_func
19221 /* Override any GCC internal prototype to avoid an error.
19222 Use char because int might match the return type of a GCC
19223 builtin and then its argument prototype would still apply. */
19224 #ifdef __cplusplus
19225 extern "C"
19226 #endif
19227 char $ac_func ();
19228 /* The GNU C library defines this for functions which it implements
19229 to always fail with ENOSYS. Some functions are actually named
19230 something starting with __ and the normal name is an alias. */
19231 #if defined __stub_$ac_func || defined __stub___$ac_func
19232 choke me
19233 #endif
19236 main ()
19238 return $ac_func ();
19240 return 0;
19242 _ACEOF
19243 rm -f conftest.$ac_objext conftest$ac_exeext
19244 if { (ac_try="$ac_link"
19245 case "(($ac_try" in
19246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19247 *) ac_try_echo=$ac_try;;
19248 esac
19249 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19250 $as_echo "$ac_try_echo") >&5
19251 (eval "$ac_link") 2>conftest.er1
19252 ac_status=$?
19253 grep -v '^ *+' conftest.er1 >conftest.err
19254 rm -f conftest.er1
19255 cat conftest.err >&5
19256 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19257 (exit $ac_status); } && {
19258 test -z "$ac_c_werror_flag" ||
19259 test ! -s conftest.err
19260 } && test -s conftest$ac_exeext && {
19261 test "$cross_compiling" = yes ||
19262 $as_test_x conftest$ac_exeext
19263 }; then
19264 eval "$as_ac_var=yes"
19265 else
19266 $as_echo "$as_me: failed program was:" >&5
19267 sed 's/^/| /' conftest.$ac_ext >&5
19269 eval "$as_ac_var=no"
19272 rm -rf conftest.dSYM
19273 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19274 conftest$ac_exeext conftest.$ac_ext
19276 ac_res=`eval 'as_val=${'$as_ac_var'}
19277 $as_echo "$as_val"'`
19278 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19279 $as_echo "$ac_res" >&6; }
19280 as_val=`eval 'as_val=${'$as_ac_var'}
19281 $as_echo "$as_val"'`
19282 if test "x$as_val" = x""yes; then
19283 cat >>confdefs.h <<_ACEOF
19284 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19285 _ACEOF
19286 cat >conftest.$ac_ext <<_ACEOF
19287 /* confdefs.h. */
19288 _ACEOF
19289 cat confdefs.h >>conftest.$ac_ext
19290 cat >>conftest.$ac_ext <<_ACEOF
19291 /* end confdefs.h. */
19292 #include <unistd.h>
19294 main ()
19296 getpgrp(0);
19298 return 0;
19300 _ACEOF
19301 rm -f conftest.$ac_objext
19302 if { (ac_try="$ac_compile"
19303 case "(($ac_try" in
19304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19305 *) ac_try_echo=$ac_try;;
19306 esac
19307 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19308 $as_echo "$ac_try_echo") >&5
19309 (eval "$ac_compile") 2>conftest.er1
19310 ac_status=$?
19311 grep -v '^ *+' conftest.er1 >conftest.err
19312 rm -f conftest.er1
19313 cat conftest.err >&5
19314 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19315 (exit $ac_status); } && {
19316 test -z "$ac_c_werror_flag" ||
19317 test ! -s conftest.err
19318 } && test -s conftest.$ac_objext; then
19320 cat >>confdefs.h <<\_ACEOF
19321 #define GETPGRP_HAVE_ARG 1
19322 _ACEOF
19325 else
19326 $as_echo "$as_me: failed program was:" >&5
19327 sed 's/^/| /' conftest.$ac_ext >&5
19332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19335 done
19338 for ac_func in setpgrp
19340 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19341 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19342 $as_echo_n "checking for $ac_func... " >&6; }
19343 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19344 $as_echo_n "(cached) " >&6
19345 else
19346 cat >conftest.$ac_ext <<_ACEOF
19347 /* confdefs.h. */
19348 _ACEOF
19349 cat confdefs.h >>conftest.$ac_ext
19350 cat >>conftest.$ac_ext <<_ACEOF
19351 /* end confdefs.h. */
19352 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19353 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19354 #define $ac_func innocuous_$ac_func
19356 /* System header to define __stub macros and hopefully few prototypes,
19357 which can conflict with char $ac_func (); below.
19358 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19359 <limits.h> exists even on freestanding compilers. */
19361 #ifdef __STDC__
19362 # include <limits.h>
19363 #else
19364 # include <assert.h>
19365 #endif
19367 #undef $ac_func
19369 /* Override any GCC internal prototype to avoid an error.
19370 Use char because int might match the return type of a GCC
19371 builtin and then its argument prototype would still apply. */
19372 #ifdef __cplusplus
19373 extern "C"
19374 #endif
19375 char $ac_func ();
19376 /* The GNU C library defines this for functions which it implements
19377 to always fail with ENOSYS. Some functions are actually named
19378 something starting with __ and the normal name is an alias. */
19379 #if defined __stub_$ac_func || defined __stub___$ac_func
19380 choke me
19381 #endif
19384 main ()
19386 return $ac_func ();
19388 return 0;
19390 _ACEOF
19391 rm -f conftest.$ac_objext conftest$ac_exeext
19392 if { (ac_try="$ac_link"
19393 case "(($ac_try" in
19394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19395 *) ac_try_echo=$ac_try;;
19396 esac
19397 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19398 $as_echo "$ac_try_echo") >&5
19399 (eval "$ac_link") 2>conftest.er1
19400 ac_status=$?
19401 grep -v '^ *+' conftest.er1 >conftest.err
19402 rm -f conftest.er1
19403 cat conftest.err >&5
19404 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19405 (exit $ac_status); } && {
19406 test -z "$ac_c_werror_flag" ||
19407 test ! -s conftest.err
19408 } && test -s conftest$ac_exeext && {
19409 test "$cross_compiling" = yes ||
19410 $as_test_x conftest$ac_exeext
19411 }; then
19412 eval "$as_ac_var=yes"
19413 else
19414 $as_echo "$as_me: failed program was:" >&5
19415 sed 's/^/| /' conftest.$ac_ext >&5
19417 eval "$as_ac_var=no"
19420 rm -rf conftest.dSYM
19421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19422 conftest$ac_exeext conftest.$ac_ext
19424 ac_res=`eval 'as_val=${'$as_ac_var'}
19425 $as_echo "$as_val"'`
19426 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19427 $as_echo "$ac_res" >&6; }
19428 as_val=`eval 'as_val=${'$as_ac_var'}
19429 $as_echo "$as_val"'`
19430 if test "x$as_val" = x""yes; then
19431 cat >>confdefs.h <<_ACEOF
19432 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19433 _ACEOF
19434 cat >conftest.$ac_ext <<_ACEOF
19435 /* confdefs.h. */
19436 _ACEOF
19437 cat confdefs.h >>conftest.$ac_ext
19438 cat >>conftest.$ac_ext <<_ACEOF
19439 /* end confdefs.h. */
19440 #include <unistd.h>
19442 main ()
19444 setpgrp(0,0);
19446 return 0;
19448 _ACEOF
19449 rm -f conftest.$ac_objext
19450 if { (ac_try="$ac_compile"
19451 case "(($ac_try" in
19452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19453 *) ac_try_echo=$ac_try;;
19454 esac
19455 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19456 $as_echo "$ac_try_echo") >&5
19457 (eval "$ac_compile") 2>conftest.er1
19458 ac_status=$?
19459 grep -v '^ *+' conftest.er1 >conftest.err
19460 rm -f conftest.er1
19461 cat conftest.err >&5
19462 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19463 (exit $ac_status); } && {
19464 test -z "$ac_c_werror_flag" ||
19465 test ! -s conftest.err
19466 } && test -s conftest.$ac_objext; then
19468 cat >>confdefs.h <<\_ACEOF
19469 #define SETPGRP_HAVE_ARG 1
19470 _ACEOF
19473 else
19474 $as_echo "$as_me: failed program was:" >&5
19475 sed 's/^/| /' conftest.$ac_ext >&5
19480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19483 done
19486 for ac_func in gettimeofday
19488 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19489 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19490 $as_echo_n "checking for $ac_func... " >&6; }
19491 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19492 $as_echo_n "(cached) " >&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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19546 $as_echo "$ac_try_echo") >&5
19547 (eval "$ac_link") 2>conftest.er1
19548 ac_status=$?
19549 grep -v '^ *+' conftest.er1 >conftest.err
19550 rm -f conftest.er1
19551 cat conftest.err >&5
19552 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19553 (exit $ac_status); } && {
19554 test -z "$ac_c_werror_flag" ||
19555 test ! -s conftest.err
19556 } && test -s conftest$ac_exeext && {
19557 test "$cross_compiling" = yes ||
19558 $as_test_x conftest$ac_exeext
19559 }; then
19560 eval "$as_ac_var=yes"
19561 else
19562 $as_echo "$as_me: failed program was:" >&5
19563 sed 's/^/| /' conftest.$ac_ext >&5
19565 eval "$as_ac_var=no"
19568 rm -rf conftest.dSYM
19569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19570 conftest$ac_exeext conftest.$ac_ext
19572 ac_res=`eval 'as_val=${'$as_ac_var'}
19573 $as_echo "$as_val"'`
19574 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19575 $as_echo "$ac_res" >&6; }
19576 as_val=`eval 'as_val=${'$as_ac_var'}
19577 $as_echo "$as_val"'`
19578 if test "x$as_val" = x""yes; then
19579 cat >>confdefs.h <<_ACEOF
19580 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19581 _ACEOF
19582 cat >conftest.$ac_ext <<_ACEOF
19583 /* confdefs.h. */
19584 _ACEOF
19585 cat confdefs.h >>conftest.$ac_ext
19586 cat >>conftest.$ac_ext <<_ACEOF
19587 /* end confdefs.h. */
19588 #include <sys/time.h>
19590 main ()
19592 gettimeofday((struct timeval*)0,(struct timezone*)0);
19594 return 0;
19596 _ACEOF
19597 rm -f conftest.$ac_objext
19598 if { (ac_try="$ac_compile"
19599 case "(($ac_try" in
19600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19601 *) ac_try_echo=$ac_try;;
19602 esac
19603 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19604 $as_echo "$ac_try_echo") >&5
19605 (eval "$ac_compile") 2>conftest.er1
19606 ac_status=$?
19607 grep -v '^ *+' conftest.er1 >conftest.err
19608 rm -f conftest.er1
19609 cat conftest.err >&5
19610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19611 (exit $ac_status); } && {
19612 test -z "$ac_c_werror_flag" ||
19613 test ! -s conftest.err
19614 } && test -s conftest.$ac_objext; then
19616 else
19617 $as_echo "$as_me: failed program was:" >&5
19618 sed 's/^/| /' conftest.$ac_ext >&5
19621 cat >>confdefs.h <<\_ACEOF
19622 #define GETTIMEOFDAY_NO_TZ 1
19623 _ACEOF
19628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19631 done
19634 { $as_echo "$as_me:$LINENO: checking for major" >&5
19635 $as_echo_n "checking for major... " >&6; }
19636 cat >conftest.$ac_ext <<_ACEOF
19637 /* confdefs.h. */
19638 _ACEOF
19639 cat confdefs.h >>conftest.$ac_ext
19640 cat >>conftest.$ac_ext <<_ACEOF
19641 /* end confdefs.h. */
19643 #if defined(MAJOR_IN_MKDEV)
19644 #include <sys/mkdev.h>
19645 #elif defined(MAJOR_IN_SYSMACROS)
19646 #include <sys/sysmacros.h>
19647 #else
19648 #include <sys/types.h>
19649 #endif
19652 main ()
19655 makedev(major(0),minor(0));
19658 return 0;
19660 _ACEOF
19661 rm -f conftest.$ac_objext conftest$ac_exeext
19662 if { (ac_try="$ac_link"
19663 case "(($ac_try" in
19664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19665 *) ac_try_echo=$ac_try;;
19666 esac
19667 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19668 $as_echo "$ac_try_echo") >&5
19669 (eval "$ac_link") 2>conftest.er1
19670 ac_status=$?
19671 grep -v '^ *+' conftest.er1 >conftest.err
19672 rm -f conftest.er1
19673 cat conftest.err >&5
19674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19675 (exit $ac_status); } && {
19676 test -z "$ac_c_werror_flag" ||
19677 test ! -s conftest.err
19678 } && test -s conftest$ac_exeext && {
19679 test "$cross_compiling" = yes ||
19680 $as_test_x conftest$ac_exeext
19681 }; then
19684 cat >>confdefs.h <<\_ACEOF
19685 #define HAVE_DEVICE_MACROS 1
19686 _ACEOF
19688 { $as_echo "$as_me:$LINENO: result: yes" >&5
19689 $as_echo "yes" >&6; }
19691 else
19692 $as_echo "$as_me: failed program was:" >&5
19693 sed 's/^/| /' conftest.$ac_ext >&5
19696 { $as_echo "$as_me:$LINENO: result: no" >&5
19697 $as_echo "no" >&6; }
19701 rm -rf conftest.dSYM
19702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19703 conftest$ac_exeext conftest.$ac_ext
19705 # On OSF/1 V5.1, getaddrinfo is available, but a define
19706 # for [no]getaddrinfo in netdb.h.
19707 { $as_echo "$as_me:$LINENO: checking for getaddrinfo" >&5
19708 $as_echo_n "checking for getaddrinfo... " >&6; }
19709 cat >conftest.$ac_ext <<_ACEOF
19710 /* confdefs.h. */
19711 _ACEOF
19712 cat confdefs.h >>conftest.$ac_ext
19713 cat >>conftest.$ac_ext <<_ACEOF
19714 /* end confdefs.h. */
19716 #include <sys/types.h>
19717 #include <sys/socket.h>
19718 #include <netdb.h>
19719 #include <stdio.h>
19722 main ()
19725 getaddrinfo(NULL, NULL, NULL, NULL);
19728 return 0;
19730 _ACEOF
19731 rm -f conftest.$ac_objext conftest$ac_exeext
19732 if { (ac_try="$ac_link"
19733 case "(($ac_try" in
19734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19735 *) ac_try_echo=$ac_try;;
19736 esac
19737 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19738 $as_echo "$ac_try_echo") >&5
19739 (eval "$ac_link") 2>conftest.er1
19740 ac_status=$?
19741 grep -v '^ *+' conftest.er1 >conftest.err
19742 rm -f conftest.er1
19743 cat conftest.err >&5
19744 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19745 (exit $ac_status); } && {
19746 test -z "$ac_c_werror_flag" ||
19747 test ! -s conftest.err
19748 } && test -s conftest$ac_exeext && {
19749 test "$cross_compiling" = yes ||
19750 $as_test_x conftest$ac_exeext
19751 }; then
19753 { $as_echo "$as_me:$LINENO: result: yes" >&5
19754 $as_echo "yes" >&6; }
19755 { $as_echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
19756 $as_echo_n "checking getaddrinfo bug... " >&6; }
19757 if test "$cross_compiling" = yes; then
19758 { $as_echo "$as_me:$LINENO: result: buggy" >&5
19759 $as_echo "buggy" >&6; }
19760 buggygetaddrinfo=yes
19761 else
19762 cat >conftest.$ac_ext <<_ACEOF
19763 /* confdefs.h. */
19764 _ACEOF
19765 cat confdefs.h >>conftest.$ac_ext
19766 cat >>conftest.$ac_ext <<_ACEOF
19767 /* end confdefs.h. */
19769 #include <sys/types.h>
19770 #include <netdb.h>
19771 #include <string.h>
19772 #include <sys/socket.h>
19773 #include <netinet/in.h>
19775 main()
19777 int passive, gaierr, inet4 = 0, inet6 = 0;
19778 struct addrinfo hints, *ai, *aitop;
19779 char straddr[INET6_ADDRSTRLEN], strport[16];
19781 for (passive = 0; passive <= 1; passive++) {
19782 memset(&hints, 0, sizeof(hints));
19783 hints.ai_family = AF_UNSPEC;
19784 hints.ai_flags = passive ? AI_PASSIVE : 0;
19785 hints.ai_socktype = SOCK_STREAM;
19786 hints.ai_protocol = IPPROTO_TCP;
19787 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
19788 (void)gai_strerror(gaierr);
19789 goto bad;
19791 for (ai = aitop; ai; ai = ai->ai_next) {
19792 if (ai->ai_addr == NULL ||
19793 ai->ai_addrlen == 0 ||
19794 getnameinfo(ai->ai_addr, ai->ai_addrlen,
19795 straddr, sizeof(straddr), strport, sizeof(strport),
19796 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
19797 goto bad;
19799 switch (ai->ai_family) {
19800 case AF_INET:
19801 if (strcmp(strport, "54321") != 0) {
19802 goto bad;
19804 if (passive) {
19805 if (strcmp(straddr, "0.0.0.0") != 0) {
19806 goto bad;
19808 } else {
19809 if (strcmp(straddr, "127.0.0.1") != 0) {
19810 goto bad;
19813 inet4++;
19814 break;
19815 case AF_INET6:
19816 if (strcmp(strport, "54321") != 0) {
19817 goto bad;
19819 if (passive) {
19820 if (strcmp(straddr, "::") != 0) {
19821 goto bad;
19823 } else {
19824 if (strcmp(straddr, "::1") != 0) {
19825 goto bad;
19828 inet6++;
19829 break;
19830 case AF_UNSPEC:
19831 goto bad;
19832 break;
19833 default:
19834 /* another family support? */
19835 break;
19840 if (!(inet4 == 0 || inet4 == 2))
19841 goto bad;
19842 if (!(inet6 == 0 || inet6 == 2))
19843 goto bad;
19845 if (aitop)
19846 freeaddrinfo(aitop);
19847 exit(0);
19849 bad:
19850 if (aitop)
19851 freeaddrinfo(aitop);
19852 exit(1);
19855 _ACEOF
19856 rm -f conftest$ac_exeext
19857 if { (ac_try="$ac_link"
19858 case "(($ac_try" in
19859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19860 *) ac_try_echo=$ac_try;;
19861 esac
19862 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19863 $as_echo "$ac_try_echo") >&5
19864 (eval "$ac_link") 2>&5
19865 ac_status=$?
19866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19867 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19868 { (case "(($ac_try" in
19869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19870 *) ac_try_echo=$ac_try;;
19871 esac
19872 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19873 $as_echo "$ac_try_echo") >&5
19874 (eval "$ac_try") 2>&5
19875 ac_status=$?
19876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19877 (exit $ac_status); }; }; then
19878 { $as_echo "$as_me:$LINENO: result: good" >&5
19879 $as_echo "good" >&6; }
19880 buggygetaddrinfo=no
19881 else
19882 $as_echo "$as_me: program exited with status $ac_status" >&5
19883 $as_echo "$as_me: failed program was:" >&5
19884 sed 's/^/| /' conftest.$ac_ext >&5
19886 ( exit $ac_status )
19887 { $as_echo "$as_me:$LINENO: result: buggy" >&5
19888 $as_echo "buggy" >&6; }
19889 buggygetaddrinfo=yes
19891 rm -rf conftest.dSYM
19892 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19896 else
19897 $as_echo "$as_me: failed program was:" >&5
19898 sed 's/^/| /' conftest.$ac_ext >&5
19901 { $as_echo "$as_me:$LINENO: result: no" >&5
19902 $as_echo "no" >&6; }
19903 buggygetaddrinfo=yes
19907 rm -rf conftest.dSYM
19908 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19909 conftest$ac_exeext conftest.$ac_ext
19911 if test "$buggygetaddrinfo" = "yes"; then
19912 if test "$ipv6" = "yes"; then
19913 echo 'Fatal: You must get working getaddrinfo() function.'
19914 echo ' or you can specify "--disable-ipv6"'.
19915 exit 1
19917 else
19919 cat >>confdefs.h <<\_ACEOF
19920 #define HAVE_GETADDRINFO 1
19921 _ACEOF
19925 for ac_func in getnameinfo
19927 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19928 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19929 $as_echo_n "checking for $ac_func... " >&6; }
19930 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19931 $as_echo_n "(cached) " >&6
19932 else
19933 cat >conftest.$ac_ext <<_ACEOF
19934 /* confdefs.h. */
19935 _ACEOF
19936 cat confdefs.h >>conftest.$ac_ext
19937 cat >>conftest.$ac_ext <<_ACEOF
19938 /* end confdefs.h. */
19939 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19940 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19941 #define $ac_func innocuous_$ac_func
19943 /* System header to define __stub macros and hopefully few prototypes,
19944 which can conflict with char $ac_func (); below.
19945 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19946 <limits.h> exists even on freestanding compilers. */
19948 #ifdef __STDC__
19949 # include <limits.h>
19950 #else
19951 # include <assert.h>
19952 #endif
19954 #undef $ac_func
19956 /* Override any GCC internal prototype to avoid an error.
19957 Use char because int might match the return type of a GCC
19958 builtin and then its argument prototype would still apply. */
19959 #ifdef __cplusplus
19960 extern "C"
19961 #endif
19962 char $ac_func ();
19963 /* The GNU C library defines this for functions which it implements
19964 to always fail with ENOSYS. Some functions are actually named
19965 something starting with __ and the normal name is an alias. */
19966 #if defined __stub_$ac_func || defined __stub___$ac_func
19967 choke me
19968 #endif
19971 main ()
19973 return $ac_func ();
19975 return 0;
19977 _ACEOF
19978 rm -f conftest.$ac_objext conftest$ac_exeext
19979 if { (ac_try="$ac_link"
19980 case "(($ac_try" in
19981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19982 *) ac_try_echo=$ac_try;;
19983 esac
19984 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19985 $as_echo "$ac_try_echo") >&5
19986 (eval "$ac_link") 2>conftest.er1
19987 ac_status=$?
19988 grep -v '^ *+' conftest.er1 >conftest.err
19989 rm -f conftest.er1
19990 cat conftest.err >&5
19991 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19992 (exit $ac_status); } && {
19993 test -z "$ac_c_werror_flag" ||
19994 test ! -s conftest.err
19995 } && test -s conftest$ac_exeext && {
19996 test "$cross_compiling" = yes ||
19997 $as_test_x conftest$ac_exeext
19998 }; then
19999 eval "$as_ac_var=yes"
20000 else
20001 $as_echo "$as_me: failed program was:" >&5
20002 sed 's/^/| /' conftest.$ac_ext >&5
20004 eval "$as_ac_var=no"
20007 rm -rf conftest.dSYM
20008 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20009 conftest$ac_exeext conftest.$ac_ext
20011 ac_res=`eval 'as_val=${'$as_ac_var'}
20012 $as_echo "$as_val"'`
20013 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20014 $as_echo "$ac_res" >&6; }
20015 as_val=`eval 'as_val=${'$as_ac_var'}
20016 $as_echo "$as_val"'`
20017 if test "x$as_val" = x""yes; then
20018 cat >>confdefs.h <<_ACEOF
20019 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20020 _ACEOF
20023 done
20026 # checks for structures
20027 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20028 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
20029 if test "${ac_cv_header_time+set}" = set; then
20030 $as_echo_n "(cached) " >&6
20031 else
20032 cat >conftest.$ac_ext <<_ACEOF
20033 /* confdefs.h. */
20034 _ACEOF
20035 cat confdefs.h >>conftest.$ac_ext
20036 cat >>conftest.$ac_ext <<_ACEOF
20037 /* end confdefs.h. */
20038 #include <sys/types.h>
20039 #include <sys/time.h>
20040 #include <time.h>
20043 main ()
20045 if ((struct tm *) 0)
20046 return 0;
20048 return 0;
20050 _ACEOF
20051 rm -f conftest.$ac_objext
20052 if { (ac_try="$ac_compile"
20053 case "(($ac_try" in
20054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20055 *) ac_try_echo=$ac_try;;
20056 esac
20057 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20058 $as_echo "$ac_try_echo") >&5
20059 (eval "$ac_compile") 2>conftest.er1
20060 ac_status=$?
20061 grep -v '^ *+' conftest.er1 >conftest.err
20062 rm -f conftest.er1
20063 cat conftest.err >&5
20064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20065 (exit $ac_status); } && {
20066 test -z "$ac_c_werror_flag" ||
20067 test ! -s conftest.err
20068 } && test -s conftest.$ac_objext; then
20069 ac_cv_header_time=yes
20070 else
20071 $as_echo "$as_me: failed program was:" >&5
20072 sed 's/^/| /' conftest.$ac_ext >&5
20074 ac_cv_header_time=no
20077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20079 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20080 $as_echo "$ac_cv_header_time" >&6; }
20081 if test $ac_cv_header_time = yes; then
20083 cat >>confdefs.h <<\_ACEOF
20084 #define TIME_WITH_SYS_TIME 1
20085 _ACEOF
20089 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20090 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
20091 if test "${ac_cv_struct_tm+set}" = set; then
20092 $as_echo_n "(cached) " >&6
20093 else
20094 cat >conftest.$ac_ext <<_ACEOF
20095 /* confdefs.h. */
20096 _ACEOF
20097 cat confdefs.h >>conftest.$ac_ext
20098 cat >>conftest.$ac_ext <<_ACEOF
20099 /* end confdefs.h. */
20100 #include <sys/types.h>
20101 #include <time.h>
20104 main ()
20106 struct tm tm;
20107 int *p = &tm.tm_sec;
20108 return !p;
20110 return 0;
20112 _ACEOF
20113 rm -f conftest.$ac_objext
20114 if { (ac_try="$ac_compile"
20115 case "(($ac_try" in
20116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20117 *) ac_try_echo=$ac_try;;
20118 esac
20119 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20120 $as_echo "$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 $as_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_struct_tm=time.h
20132 else
20133 $as_echo "$as_me: failed program was:" >&5
20134 sed 's/^/| /' conftest.$ac_ext >&5
20136 ac_cv_struct_tm=sys/time.h
20139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20141 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20142 $as_echo "$ac_cv_struct_tm" >&6; }
20143 if test $ac_cv_struct_tm = sys/time.h; then
20145 cat >>confdefs.h <<\_ACEOF
20146 #define TM_IN_SYS_TIME 1
20147 _ACEOF
20151 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
20152 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
20153 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20154 $as_echo_n "(cached) " >&6
20155 else
20156 cat >conftest.$ac_ext <<_ACEOF
20157 /* confdefs.h. */
20158 _ACEOF
20159 cat confdefs.h >>conftest.$ac_ext
20160 cat >>conftest.$ac_ext <<_ACEOF
20161 /* end confdefs.h. */
20162 #include <sys/types.h>
20163 #include <$ac_cv_struct_tm>
20167 main ()
20169 static struct tm ac_aggr;
20170 if (ac_aggr.tm_zone)
20171 return 0;
20173 return 0;
20175 _ACEOF
20176 rm -f conftest.$ac_objext
20177 if { (ac_try="$ac_compile"
20178 case "(($ac_try" in
20179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20180 *) ac_try_echo=$ac_try;;
20181 esac
20182 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20183 $as_echo "$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 $as_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_tm_tm_zone=yes
20195 else
20196 $as_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 #include <sys/types.h>
20206 #include <$ac_cv_struct_tm>
20210 main ()
20212 static struct tm ac_aggr;
20213 if (sizeof ac_aggr.tm_zone)
20214 return 0;
20216 return 0;
20218 _ACEOF
20219 rm -f conftest.$ac_objext
20220 if { (ac_try="$ac_compile"
20221 case "(($ac_try" in
20222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20223 *) ac_try_echo=$ac_try;;
20224 esac
20225 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20226 $as_echo "$ac_try_echo") >&5
20227 (eval "$ac_compile") 2>conftest.er1
20228 ac_status=$?
20229 grep -v '^ *+' conftest.er1 >conftest.err
20230 rm -f conftest.er1
20231 cat conftest.err >&5
20232 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20233 (exit $ac_status); } && {
20234 test -z "$ac_c_werror_flag" ||
20235 test ! -s conftest.err
20236 } && test -s conftest.$ac_objext; then
20237 ac_cv_member_struct_tm_tm_zone=yes
20238 else
20239 $as_echo "$as_me: failed program was:" >&5
20240 sed 's/^/| /' conftest.$ac_ext >&5
20242 ac_cv_member_struct_tm_tm_zone=no
20245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20250 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
20251 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
20252 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then
20254 cat >>confdefs.h <<_ACEOF
20255 #define HAVE_STRUCT_TM_TM_ZONE 1
20256 _ACEOF
20261 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
20263 cat >>confdefs.h <<\_ACEOF
20264 #define HAVE_TM_ZONE 1
20265 _ACEOF
20267 else
20268 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
20269 $as_echo_n "checking whether tzname is declared... " >&6; }
20270 if test "${ac_cv_have_decl_tzname+set}" = set; then
20271 $as_echo_n "(cached) " >&6
20272 else
20273 cat >conftest.$ac_ext <<_ACEOF
20274 /* confdefs.h. */
20275 _ACEOF
20276 cat confdefs.h >>conftest.$ac_ext
20277 cat >>conftest.$ac_ext <<_ACEOF
20278 /* end confdefs.h. */
20279 #include <time.h>
20282 main ()
20284 #ifndef tzname
20285 (void) tzname;
20286 #endif
20289 return 0;
20291 _ACEOF
20292 rm -f conftest.$ac_objext
20293 if { (ac_try="$ac_compile"
20294 case "(($ac_try" in
20295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20296 *) ac_try_echo=$ac_try;;
20297 esac
20298 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20299 $as_echo "$ac_try_echo") >&5
20300 (eval "$ac_compile") 2>conftest.er1
20301 ac_status=$?
20302 grep -v '^ *+' conftest.er1 >conftest.err
20303 rm -f conftest.er1
20304 cat conftest.err >&5
20305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20306 (exit $ac_status); } && {
20307 test -z "$ac_c_werror_flag" ||
20308 test ! -s conftest.err
20309 } && test -s conftest.$ac_objext; then
20310 ac_cv_have_decl_tzname=yes
20311 else
20312 $as_echo "$as_me: failed program was:" >&5
20313 sed 's/^/| /' conftest.$ac_ext >&5
20315 ac_cv_have_decl_tzname=no
20318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20320 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
20321 $as_echo "$ac_cv_have_decl_tzname" >&6; }
20322 if test "x$ac_cv_have_decl_tzname" = x""yes; then
20324 cat >>confdefs.h <<_ACEOF
20325 #define HAVE_DECL_TZNAME 1
20326 _ACEOF
20329 else
20330 cat >>confdefs.h <<_ACEOF
20331 #define HAVE_DECL_TZNAME 0
20332 _ACEOF
20338 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
20339 $as_echo_n "checking for tzname... " >&6; }
20340 if test "${ac_cv_var_tzname+set}" = set; then
20341 $as_echo_n "(cached) " >&6
20342 else
20343 cat >conftest.$ac_ext <<_ACEOF
20344 /* confdefs.h. */
20345 _ACEOF
20346 cat confdefs.h >>conftest.$ac_ext
20347 cat >>conftest.$ac_ext <<_ACEOF
20348 /* end confdefs.h. */
20349 #include <time.h>
20350 #if !HAVE_DECL_TZNAME
20351 extern char *tzname[];
20352 #endif
20355 main ()
20357 return tzname[0][0];
20359 return 0;
20361 _ACEOF
20362 rm -f conftest.$ac_objext conftest$ac_exeext
20363 if { (ac_try="$ac_link"
20364 case "(($ac_try" in
20365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20366 *) ac_try_echo=$ac_try;;
20367 esac
20368 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20369 $as_echo "$ac_try_echo") >&5
20370 (eval "$ac_link") 2>conftest.er1
20371 ac_status=$?
20372 grep -v '^ *+' conftest.er1 >conftest.err
20373 rm -f conftest.er1
20374 cat conftest.err >&5
20375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20376 (exit $ac_status); } && {
20377 test -z "$ac_c_werror_flag" ||
20378 test ! -s conftest.err
20379 } && test -s conftest$ac_exeext && {
20380 test "$cross_compiling" = yes ||
20381 $as_test_x conftest$ac_exeext
20382 }; then
20383 ac_cv_var_tzname=yes
20384 else
20385 $as_echo "$as_me: failed program was:" >&5
20386 sed 's/^/| /' conftest.$ac_ext >&5
20388 ac_cv_var_tzname=no
20391 rm -rf conftest.dSYM
20392 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20393 conftest$ac_exeext conftest.$ac_ext
20395 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
20396 $as_echo "$ac_cv_var_tzname" >&6; }
20397 if test $ac_cv_var_tzname = yes; then
20399 cat >>confdefs.h <<\_ACEOF
20400 #define HAVE_TZNAME 1
20401 _ACEOF
20406 { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
20407 $as_echo_n "checking for struct stat.st_rdev... " >&6; }
20408 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
20409 $as_echo_n "(cached) " >&6
20410 else
20411 cat >conftest.$ac_ext <<_ACEOF
20412 /* confdefs.h. */
20413 _ACEOF
20414 cat confdefs.h >>conftest.$ac_ext
20415 cat >>conftest.$ac_ext <<_ACEOF
20416 /* end confdefs.h. */
20417 $ac_includes_default
20419 main ()
20421 static struct stat ac_aggr;
20422 if (ac_aggr.st_rdev)
20423 return 0;
20425 return 0;
20427 _ACEOF
20428 rm -f conftest.$ac_objext
20429 if { (ac_try="$ac_compile"
20430 case "(($ac_try" in
20431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20432 *) ac_try_echo=$ac_try;;
20433 esac
20434 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20435 $as_echo "$ac_try_echo") >&5
20436 (eval "$ac_compile") 2>conftest.er1
20437 ac_status=$?
20438 grep -v '^ *+' conftest.er1 >conftest.err
20439 rm -f conftest.er1
20440 cat conftest.err >&5
20441 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20442 (exit $ac_status); } && {
20443 test -z "$ac_c_werror_flag" ||
20444 test ! -s conftest.err
20445 } && test -s conftest.$ac_objext; then
20446 ac_cv_member_struct_stat_st_rdev=yes
20447 else
20448 $as_echo "$as_me: failed program was:" >&5
20449 sed 's/^/| /' conftest.$ac_ext >&5
20451 cat >conftest.$ac_ext <<_ACEOF
20452 /* confdefs.h. */
20453 _ACEOF
20454 cat confdefs.h >>conftest.$ac_ext
20455 cat >>conftest.$ac_ext <<_ACEOF
20456 /* end confdefs.h. */
20457 $ac_includes_default
20459 main ()
20461 static struct stat ac_aggr;
20462 if (sizeof ac_aggr.st_rdev)
20463 return 0;
20465 return 0;
20467 _ACEOF
20468 rm -f conftest.$ac_objext
20469 if { (ac_try="$ac_compile"
20470 case "(($ac_try" in
20471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20472 *) ac_try_echo=$ac_try;;
20473 esac
20474 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20475 $as_echo "$ac_try_echo") >&5
20476 (eval "$ac_compile") 2>conftest.er1
20477 ac_status=$?
20478 grep -v '^ *+' conftest.er1 >conftest.err
20479 rm -f conftest.er1
20480 cat conftest.err >&5
20481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20482 (exit $ac_status); } && {
20483 test -z "$ac_c_werror_flag" ||
20484 test ! -s conftest.err
20485 } && test -s conftest.$ac_objext; then
20486 ac_cv_member_struct_stat_st_rdev=yes
20487 else
20488 $as_echo "$as_me: failed program was:" >&5
20489 sed 's/^/| /' conftest.$ac_ext >&5
20491 ac_cv_member_struct_stat_st_rdev=no
20494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20499 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
20500 $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
20501 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
20503 cat >>confdefs.h <<_ACEOF
20504 #define HAVE_STRUCT_STAT_ST_RDEV 1
20505 _ACEOF
20510 { $as_echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
20511 $as_echo_n "checking for struct stat.st_blksize... " >&6; }
20512 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
20513 $as_echo_n "(cached) " >&6
20514 else
20515 cat >conftest.$ac_ext <<_ACEOF
20516 /* confdefs.h. */
20517 _ACEOF
20518 cat confdefs.h >>conftest.$ac_ext
20519 cat >>conftest.$ac_ext <<_ACEOF
20520 /* end confdefs.h. */
20521 $ac_includes_default
20523 main ()
20525 static struct stat ac_aggr;
20526 if (ac_aggr.st_blksize)
20527 return 0;
20529 return 0;
20531 _ACEOF
20532 rm -f conftest.$ac_objext
20533 if { (ac_try="$ac_compile"
20534 case "(($ac_try" in
20535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20536 *) ac_try_echo=$ac_try;;
20537 esac
20538 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20539 $as_echo "$ac_try_echo") >&5
20540 (eval "$ac_compile") 2>conftest.er1
20541 ac_status=$?
20542 grep -v '^ *+' conftest.er1 >conftest.err
20543 rm -f conftest.er1
20544 cat conftest.err >&5
20545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20546 (exit $ac_status); } && {
20547 test -z "$ac_c_werror_flag" ||
20548 test ! -s conftest.err
20549 } && test -s conftest.$ac_objext; then
20550 ac_cv_member_struct_stat_st_blksize=yes
20551 else
20552 $as_echo "$as_me: failed program was:" >&5
20553 sed 's/^/| /' conftest.$ac_ext >&5
20555 cat >conftest.$ac_ext <<_ACEOF
20556 /* confdefs.h. */
20557 _ACEOF
20558 cat confdefs.h >>conftest.$ac_ext
20559 cat >>conftest.$ac_ext <<_ACEOF
20560 /* end confdefs.h. */
20561 $ac_includes_default
20563 main ()
20565 static struct stat ac_aggr;
20566 if (sizeof ac_aggr.st_blksize)
20567 return 0;
20569 return 0;
20571 _ACEOF
20572 rm -f conftest.$ac_objext
20573 if { (ac_try="$ac_compile"
20574 case "(($ac_try" in
20575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20576 *) ac_try_echo=$ac_try;;
20577 esac
20578 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20579 $as_echo "$ac_try_echo") >&5
20580 (eval "$ac_compile") 2>conftest.er1
20581 ac_status=$?
20582 grep -v '^ *+' conftest.er1 >conftest.err
20583 rm -f conftest.er1
20584 cat conftest.err >&5
20585 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20586 (exit $ac_status); } && {
20587 test -z "$ac_c_werror_flag" ||
20588 test ! -s conftest.err
20589 } && test -s conftest.$ac_objext; then
20590 ac_cv_member_struct_stat_st_blksize=yes
20591 else
20592 $as_echo "$as_me: failed program was:" >&5
20593 sed 's/^/| /' conftest.$ac_ext >&5
20595 ac_cv_member_struct_stat_st_blksize=no
20598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20603 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
20604 $as_echo "$ac_cv_member_struct_stat_st_blksize" >&6; }
20605 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then
20607 cat >>confdefs.h <<_ACEOF
20608 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
20609 _ACEOF
20614 { $as_echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
20615 $as_echo_n "checking for struct stat.st_flags... " >&6; }
20616 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
20617 $as_echo_n "(cached) " >&6
20618 else
20619 cat >conftest.$ac_ext <<_ACEOF
20620 /* confdefs.h. */
20621 _ACEOF
20622 cat confdefs.h >>conftest.$ac_ext
20623 cat >>conftest.$ac_ext <<_ACEOF
20624 /* end confdefs.h. */
20625 $ac_includes_default
20627 main ()
20629 static struct stat ac_aggr;
20630 if (ac_aggr.st_flags)
20631 return 0;
20633 return 0;
20635 _ACEOF
20636 rm -f conftest.$ac_objext
20637 if { (ac_try="$ac_compile"
20638 case "(($ac_try" in
20639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20640 *) ac_try_echo=$ac_try;;
20641 esac
20642 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20643 $as_echo "$ac_try_echo") >&5
20644 (eval "$ac_compile") 2>conftest.er1
20645 ac_status=$?
20646 grep -v '^ *+' conftest.er1 >conftest.err
20647 rm -f conftest.er1
20648 cat conftest.err >&5
20649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20650 (exit $ac_status); } && {
20651 test -z "$ac_c_werror_flag" ||
20652 test ! -s conftest.err
20653 } && test -s conftest.$ac_objext; then
20654 ac_cv_member_struct_stat_st_flags=yes
20655 else
20656 $as_echo "$as_me: failed program was:" >&5
20657 sed 's/^/| /' conftest.$ac_ext >&5
20659 cat >conftest.$ac_ext <<_ACEOF
20660 /* confdefs.h. */
20661 _ACEOF
20662 cat confdefs.h >>conftest.$ac_ext
20663 cat >>conftest.$ac_ext <<_ACEOF
20664 /* end confdefs.h. */
20665 $ac_includes_default
20667 main ()
20669 static struct stat ac_aggr;
20670 if (sizeof ac_aggr.st_flags)
20671 return 0;
20673 return 0;
20675 _ACEOF
20676 rm -f conftest.$ac_objext
20677 if { (ac_try="$ac_compile"
20678 case "(($ac_try" in
20679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20680 *) ac_try_echo=$ac_try;;
20681 esac
20682 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20683 $as_echo "$ac_try_echo") >&5
20684 (eval "$ac_compile") 2>conftest.er1
20685 ac_status=$?
20686 grep -v '^ *+' conftest.er1 >conftest.err
20687 rm -f conftest.er1
20688 cat conftest.err >&5
20689 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20690 (exit $ac_status); } && {
20691 test -z "$ac_c_werror_flag" ||
20692 test ! -s conftest.err
20693 } && test -s conftest.$ac_objext; then
20694 ac_cv_member_struct_stat_st_flags=yes
20695 else
20696 $as_echo "$as_me: failed program was:" >&5
20697 sed 's/^/| /' conftest.$ac_ext >&5
20699 ac_cv_member_struct_stat_st_flags=no
20702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20707 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
20708 $as_echo "$ac_cv_member_struct_stat_st_flags" >&6; }
20709 if test "x$ac_cv_member_struct_stat_st_flags" = x""yes; then
20711 cat >>confdefs.h <<_ACEOF
20712 #define HAVE_STRUCT_STAT_ST_FLAGS 1
20713 _ACEOF
20718 { $as_echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
20719 $as_echo_n "checking for struct stat.st_gen... " >&6; }
20720 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
20721 $as_echo_n "(cached) " >&6
20722 else
20723 cat >conftest.$ac_ext <<_ACEOF
20724 /* confdefs.h. */
20725 _ACEOF
20726 cat confdefs.h >>conftest.$ac_ext
20727 cat >>conftest.$ac_ext <<_ACEOF
20728 /* end confdefs.h. */
20729 $ac_includes_default
20731 main ()
20733 static struct stat ac_aggr;
20734 if (ac_aggr.st_gen)
20735 return 0;
20737 return 0;
20739 _ACEOF
20740 rm -f conftest.$ac_objext
20741 if { (ac_try="$ac_compile"
20742 case "(($ac_try" in
20743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20744 *) ac_try_echo=$ac_try;;
20745 esac
20746 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20747 $as_echo "$ac_try_echo") >&5
20748 (eval "$ac_compile") 2>conftest.er1
20749 ac_status=$?
20750 grep -v '^ *+' conftest.er1 >conftest.err
20751 rm -f conftest.er1
20752 cat conftest.err >&5
20753 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20754 (exit $ac_status); } && {
20755 test -z "$ac_c_werror_flag" ||
20756 test ! -s conftest.err
20757 } && test -s conftest.$ac_objext; then
20758 ac_cv_member_struct_stat_st_gen=yes
20759 else
20760 $as_echo "$as_me: failed program was:" >&5
20761 sed 's/^/| /' conftest.$ac_ext >&5
20763 cat >conftest.$ac_ext <<_ACEOF
20764 /* confdefs.h. */
20765 _ACEOF
20766 cat confdefs.h >>conftest.$ac_ext
20767 cat >>conftest.$ac_ext <<_ACEOF
20768 /* end confdefs.h. */
20769 $ac_includes_default
20771 main ()
20773 static struct stat ac_aggr;
20774 if (sizeof ac_aggr.st_gen)
20775 return 0;
20777 return 0;
20779 _ACEOF
20780 rm -f conftest.$ac_objext
20781 if { (ac_try="$ac_compile"
20782 case "(($ac_try" in
20783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20784 *) ac_try_echo=$ac_try;;
20785 esac
20786 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20787 $as_echo "$ac_try_echo") >&5
20788 (eval "$ac_compile") 2>conftest.er1
20789 ac_status=$?
20790 grep -v '^ *+' conftest.er1 >conftest.err
20791 rm -f conftest.er1
20792 cat conftest.err >&5
20793 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20794 (exit $ac_status); } && {
20795 test -z "$ac_c_werror_flag" ||
20796 test ! -s conftest.err
20797 } && test -s conftest.$ac_objext; then
20798 ac_cv_member_struct_stat_st_gen=yes
20799 else
20800 $as_echo "$as_me: failed program was:" >&5
20801 sed 's/^/| /' conftest.$ac_ext >&5
20803 ac_cv_member_struct_stat_st_gen=no
20806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20811 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
20812 $as_echo "$ac_cv_member_struct_stat_st_gen" >&6; }
20813 if test "x$ac_cv_member_struct_stat_st_gen" = x""yes; then
20815 cat >>confdefs.h <<_ACEOF
20816 #define HAVE_STRUCT_STAT_ST_GEN 1
20817 _ACEOF
20822 { $as_echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
20823 $as_echo_n "checking for struct stat.st_birthtime... " >&6; }
20824 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
20825 $as_echo_n "(cached) " >&6
20826 else
20827 cat >conftest.$ac_ext <<_ACEOF
20828 /* confdefs.h. */
20829 _ACEOF
20830 cat confdefs.h >>conftest.$ac_ext
20831 cat >>conftest.$ac_ext <<_ACEOF
20832 /* end confdefs.h. */
20833 $ac_includes_default
20835 main ()
20837 static struct stat ac_aggr;
20838 if (ac_aggr.st_birthtime)
20839 return 0;
20841 return 0;
20843 _ACEOF
20844 rm -f conftest.$ac_objext
20845 if { (ac_try="$ac_compile"
20846 case "(($ac_try" in
20847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20848 *) ac_try_echo=$ac_try;;
20849 esac
20850 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20851 $as_echo "$ac_try_echo") >&5
20852 (eval "$ac_compile") 2>conftest.er1
20853 ac_status=$?
20854 grep -v '^ *+' conftest.er1 >conftest.err
20855 rm -f conftest.er1
20856 cat conftest.err >&5
20857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20858 (exit $ac_status); } && {
20859 test -z "$ac_c_werror_flag" ||
20860 test ! -s conftest.err
20861 } && test -s conftest.$ac_objext; then
20862 ac_cv_member_struct_stat_st_birthtime=yes
20863 else
20864 $as_echo "$as_me: failed program was:" >&5
20865 sed 's/^/| /' conftest.$ac_ext >&5
20867 cat >conftest.$ac_ext <<_ACEOF
20868 /* confdefs.h. */
20869 _ACEOF
20870 cat confdefs.h >>conftest.$ac_ext
20871 cat >>conftest.$ac_ext <<_ACEOF
20872 /* end confdefs.h. */
20873 $ac_includes_default
20875 main ()
20877 static struct stat ac_aggr;
20878 if (sizeof ac_aggr.st_birthtime)
20879 return 0;
20881 return 0;
20883 _ACEOF
20884 rm -f conftest.$ac_objext
20885 if { (ac_try="$ac_compile"
20886 case "(($ac_try" in
20887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20888 *) ac_try_echo=$ac_try;;
20889 esac
20890 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20891 $as_echo "$ac_try_echo") >&5
20892 (eval "$ac_compile") 2>conftest.er1
20893 ac_status=$?
20894 grep -v '^ *+' conftest.er1 >conftest.err
20895 rm -f conftest.er1
20896 cat conftest.err >&5
20897 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20898 (exit $ac_status); } && {
20899 test -z "$ac_c_werror_flag" ||
20900 test ! -s conftest.err
20901 } && test -s conftest.$ac_objext; then
20902 ac_cv_member_struct_stat_st_birthtime=yes
20903 else
20904 $as_echo "$as_me: failed program was:" >&5
20905 sed 's/^/| /' conftest.$ac_ext >&5
20907 ac_cv_member_struct_stat_st_birthtime=no
20910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20915 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
20916 $as_echo "$ac_cv_member_struct_stat_st_birthtime" >&6; }
20917 if test "x$ac_cv_member_struct_stat_st_birthtime" = x""yes; then
20919 cat >>confdefs.h <<_ACEOF
20920 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
20921 _ACEOF
20926 { $as_echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
20927 $as_echo_n "checking for struct stat.st_blocks... " >&6; }
20928 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
20929 $as_echo_n "(cached) " >&6
20930 else
20931 cat >conftest.$ac_ext <<_ACEOF
20932 /* confdefs.h. */
20933 _ACEOF
20934 cat confdefs.h >>conftest.$ac_ext
20935 cat >>conftest.$ac_ext <<_ACEOF
20936 /* end confdefs.h. */
20937 $ac_includes_default
20939 main ()
20941 static struct stat ac_aggr;
20942 if (ac_aggr.st_blocks)
20943 return 0;
20945 return 0;
20947 _ACEOF
20948 rm -f conftest.$ac_objext
20949 if { (ac_try="$ac_compile"
20950 case "(($ac_try" in
20951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20952 *) ac_try_echo=$ac_try;;
20953 esac
20954 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20955 $as_echo "$ac_try_echo") >&5
20956 (eval "$ac_compile") 2>conftest.er1
20957 ac_status=$?
20958 grep -v '^ *+' conftest.er1 >conftest.err
20959 rm -f conftest.er1
20960 cat conftest.err >&5
20961 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20962 (exit $ac_status); } && {
20963 test -z "$ac_c_werror_flag" ||
20964 test ! -s conftest.err
20965 } && test -s conftest.$ac_objext; then
20966 ac_cv_member_struct_stat_st_blocks=yes
20967 else
20968 $as_echo "$as_me: failed program was:" >&5
20969 sed 's/^/| /' conftest.$ac_ext >&5
20971 cat >conftest.$ac_ext <<_ACEOF
20972 /* confdefs.h. */
20973 _ACEOF
20974 cat confdefs.h >>conftest.$ac_ext
20975 cat >>conftest.$ac_ext <<_ACEOF
20976 /* end confdefs.h. */
20977 $ac_includes_default
20979 main ()
20981 static struct stat ac_aggr;
20982 if (sizeof ac_aggr.st_blocks)
20983 return 0;
20985 return 0;
20987 _ACEOF
20988 rm -f conftest.$ac_objext
20989 if { (ac_try="$ac_compile"
20990 case "(($ac_try" in
20991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20992 *) ac_try_echo=$ac_try;;
20993 esac
20994 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20995 $as_echo "$ac_try_echo") >&5
20996 (eval "$ac_compile") 2>conftest.er1
20997 ac_status=$?
20998 grep -v '^ *+' conftest.er1 >conftest.err
20999 rm -f conftest.er1
21000 cat conftest.err >&5
21001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21002 (exit $ac_status); } && {
21003 test -z "$ac_c_werror_flag" ||
21004 test ! -s conftest.err
21005 } && test -s conftest.$ac_objext; then
21006 ac_cv_member_struct_stat_st_blocks=yes
21007 else
21008 $as_echo "$as_me: failed program was:" >&5
21009 sed 's/^/| /' conftest.$ac_ext >&5
21011 ac_cv_member_struct_stat_st_blocks=no
21014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21019 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
21020 $as_echo "$ac_cv_member_struct_stat_st_blocks" >&6; }
21021 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then
21023 cat >>confdefs.h <<_ACEOF
21024 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
21025 _ACEOF
21028 cat >>confdefs.h <<\_ACEOF
21029 #define HAVE_ST_BLOCKS 1
21030 _ACEOF
21032 else
21033 case " $LIBOBJS " in
21034 *" fileblocks.$ac_objext "* ) ;;
21035 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
21037 esac
21043 { $as_echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
21044 $as_echo_n "checking for time.h that defines altzone... " >&6; }
21045 if test "${ac_cv_header_time_altzone+set}" = set; then
21046 $as_echo_n "(cached) " >&6
21047 else
21048 cat >conftest.$ac_ext <<_ACEOF
21049 /* confdefs.h. */
21050 _ACEOF
21051 cat confdefs.h >>conftest.$ac_ext
21052 cat >>conftest.$ac_ext <<_ACEOF
21053 /* end confdefs.h. */
21054 #include <time.h>
21056 main ()
21058 return altzone;
21060 return 0;
21062 _ACEOF
21063 rm -f conftest.$ac_objext
21064 if { (ac_try="$ac_compile"
21065 case "(($ac_try" in
21066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21067 *) ac_try_echo=$ac_try;;
21068 esac
21069 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21070 $as_echo "$ac_try_echo") >&5
21071 (eval "$ac_compile") 2>conftest.er1
21072 ac_status=$?
21073 grep -v '^ *+' conftest.er1 >conftest.err
21074 rm -f conftest.er1
21075 cat conftest.err >&5
21076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21077 (exit $ac_status); } && {
21078 test -z "$ac_c_werror_flag" ||
21079 test ! -s conftest.err
21080 } && test -s conftest.$ac_objext; then
21081 ac_cv_header_time_altzone=yes
21082 else
21083 $as_echo "$as_me: failed program was:" >&5
21084 sed 's/^/| /' conftest.$ac_ext >&5
21086 ac_cv_header_time_altzone=no
21089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21092 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
21093 $as_echo "$ac_cv_header_time_altzone" >&6; }
21094 if test $ac_cv_header_time_altzone = yes; then
21096 cat >>confdefs.h <<\_ACEOF
21097 #define HAVE_ALTZONE 1
21098 _ACEOF
21102 was_it_defined=no
21103 { $as_echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
21104 $as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; }
21105 cat >conftest.$ac_ext <<_ACEOF
21106 /* confdefs.h. */
21107 _ACEOF
21108 cat confdefs.h >>conftest.$ac_ext
21109 cat >>conftest.$ac_ext <<_ACEOF
21110 /* end confdefs.h. */
21112 #include <sys/types.h>
21113 #include <sys/select.h>
21114 #include <sys/time.h>
21117 main ()
21121 return 0;
21123 _ACEOF
21124 rm -f conftest.$ac_objext
21125 if { (ac_try="$ac_compile"
21126 case "(($ac_try" in
21127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21128 *) ac_try_echo=$ac_try;;
21129 esac
21130 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21131 $as_echo "$ac_try_echo") >&5
21132 (eval "$ac_compile") 2>conftest.er1
21133 ac_status=$?
21134 grep -v '^ *+' conftest.er1 >conftest.err
21135 rm -f conftest.er1
21136 cat conftest.err >&5
21137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21138 (exit $ac_status); } && {
21139 test -z "$ac_c_werror_flag" ||
21140 test ! -s conftest.err
21141 } && test -s conftest.$ac_objext; then
21144 cat >>confdefs.h <<\_ACEOF
21145 #define SYS_SELECT_WITH_SYS_TIME 1
21146 _ACEOF
21148 was_it_defined=yes
21150 else
21151 $as_echo "$as_me: failed program was:" >&5
21152 sed 's/^/| /' conftest.$ac_ext >&5
21157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21158 { $as_echo "$as_me:$LINENO: result: $was_it_defined" >&5
21159 $as_echo "$was_it_defined" >&6; }
21161 { $as_echo "$as_me:$LINENO: checking for addrinfo" >&5
21162 $as_echo_n "checking for addrinfo... " >&6; }
21163 if test "${ac_cv_struct_addrinfo+set}" = set; then
21164 $as_echo_n "(cached) " >&6
21165 else
21166 cat >conftest.$ac_ext <<_ACEOF
21167 /* confdefs.h. */
21168 _ACEOF
21169 cat confdefs.h >>conftest.$ac_ext
21170 cat >>conftest.$ac_ext <<_ACEOF
21171 /* end confdefs.h. */
21173 # include <netdb.h>
21175 main ()
21177 struct addrinfo a
21179 return 0;
21181 _ACEOF
21182 rm -f conftest.$ac_objext
21183 if { (ac_try="$ac_compile"
21184 case "(($ac_try" in
21185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21186 *) ac_try_echo=$ac_try;;
21187 esac
21188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21189 $as_echo "$ac_try_echo") >&5
21190 (eval "$ac_compile") 2>conftest.er1
21191 ac_status=$?
21192 grep -v '^ *+' conftest.er1 >conftest.err
21193 rm -f conftest.er1
21194 cat conftest.err >&5
21195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21196 (exit $ac_status); } && {
21197 test -z "$ac_c_werror_flag" ||
21198 test ! -s conftest.err
21199 } && test -s conftest.$ac_objext; then
21200 ac_cv_struct_addrinfo=yes
21201 else
21202 $as_echo "$as_me: failed program was:" >&5
21203 sed 's/^/| /' conftest.$ac_ext >&5
21205 ac_cv_struct_addrinfo=no
21208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21211 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
21212 $as_echo "$ac_cv_struct_addrinfo" >&6; }
21213 if test $ac_cv_struct_addrinfo = yes; then
21215 cat >>confdefs.h <<\_ACEOF
21216 #define HAVE_ADDRINFO 1
21217 _ACEOF
21221 { $as_echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
21222 $as_echo_n "checking for sockaddr_storage... " >&6; }
21223 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
21224 $as_echo_n "(cached) " >&6
21225 else
21226 cat >conftest.$ac_ext <<_ACEOF
21227 /* confdefs.h. */
21228 _ACEOF
21229 cat confdefs.h >>conftest.$ac_ext
21230 cat >>conftest.$ac_ext <<_ACEOF
21231 /* end confdefs.h. */
21233 # include <sys/types.h>
21234 # include <sys/socket.h>
21236 main ()
21238 struct sockaddr_storage s
21240 return 0;
21242 _ACEOF
21243 rm -f conftest.$ac_objext
21244 if { (ac_try="$ac_compile"
21245 case "(($ac_try" in
21246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21247 *) ac_try_echo=$ac_try;;
21248 esac
21249 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21250 $as_echo "$ac_try_echo") >&5
21251 (eval "$ac_compile") 2>conftest.er1
21252 ac_status=$?
21253 grep -v '^ *+' conftest.er1 >conftest.err
21254 rm -f conftest.er1
21255 cat conftest.err >&5
21256 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21257 (exit $ac_status); } && {
21258 test -z "$ac_c_werror_flag" ||
21259 test ! -s conftest.err
21260 } && test -s conftest.$ac_objext; then
21261 ac_cv_struct_sockaddr_storage=yes
21262 else
21263 $as_echo "$as_me: failed program was:" >&5
21264 sed 's/^/| /' conftest.$ac_ext >&5
21266 ac_cv_struct_sockaddr_storage=no
21269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21272 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
21273 $as_echo "$ac_cv_struct_sockaddr_storage" >&6; }
21274 if test $ac_cv_struct_sockaddr_storage = yes; then
21276 cat >>confdefs.h <<\_ACEOF
21277 #define HAVE_SOCKADDR_STORAGE 1
21278 _ACEOF
21282 # checks for compiler characteristics
21285 { $as_echo "$as_me:$LINENO: checking whether char is unsigned" >&5
21286 $as_echo_n "checking whether char is unsigned... " >&6; }
21287 if test "${ac_cv_c_char_unsigned+set}" = set; then
21288 $as_echo_n "(cached) " >&6
21289 else
21290 cat >conftest.$ac_ext <<_ACEOF
21291 /* confdefs.h. */
21292 _ACEOF
21293 cat confdefs.h >>conftest.$ac_ext
21294 cat >>conftest.$ac_ext <<_ACEOF
21295 /* end confdefs.h. */
21296 $ac_includes_default
21298 main ()
21300 static int test_array [1 - 2 * !(((char) -1) < 0)];
21301 test_array [0] = 0
21304 return 0;
21306 _ACEOF
21307 rm -f conftest.$ac_objext
21308 if { (ac_try="$ac_compile"
21309 case "(($ac_try" in
21310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21311 *) ac_try_echo=$ac_try;;
21312 esac
21313 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21314 $as_echo "$ac_try_echo") >&5
21315 (eval "$ac_compile") 2>conftest.er1
21316 ac_status=$?
21317 grep -v '^ *+' conftest.er1 >conftest.err
21318 rm -f conftest.er1
21319 cat conftest.err >&5
21320 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21321 (exit $ac_status); } && {
21322 test -z "$ac_c_werror_flag" ||
21323 test ! -s conftest.err
21324 } && test -s conftest.$ac_objext; then
21325 ac_cv_c_char_unsigned=no
21326 else
21327 $as_echo "$as_me: failed program was:" >&5
21328 sed 's/^/| /' conftest.$ac_ext >&5
21330 ac_cv_c_char_unsigned=yes
21333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21335 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
21336 $as_echo "$ac_cv_c_char_unsigned" >&6; }
21337 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
21338 cat >>confdefs.h <<\_ACEOF
21339 #define __CHAR_UNSIGNED__ 1
21340 _ACEOF
21344 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21345 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
21346 if test "${ac_cv_c_const+set}" = set; then
21347 $as_echo_n "(cached) " >&6
21348 else
21349 cat >conftest.$ac_ext <<_ACEOF
21350 /* confdefs.h. */
21351 _ACEOF
21352 cat confdefs.h >>conftest.$ac_ext
21353 cat >>conftest.$ac_ext <<_ACEOF
21354 /* end confdefs.h. */
21357 main ()
21359 /* FIXME: Include the comments suggested by Paul. */
21360 #ifndef __cplusplus
21361 /* Ultrix mips cc rejects this. */
21362 typedef int charset[2];
21363 const charset cs;
21364 /* SunOS 4.1.1 cc rejects this. */
21365 char const *const *pcpcc;
21366 char **ppc;
21367 /* NEC SVR4.0.2 mips cc rejects this. */
21368 struct point {int x, y;};
21369 static struct point const zero = {0,0};
21370 /* AIX XL C 1.02.0.0 rejects this.
21371 It does not let you subtract one const X* pointer from another in
21372 an arm of an if-expression whose if-part is not a constant
21373 expression */
21374 const char *g = "string";
21375 pcpcc = &g + (g ? g-g : 0);
21376 /* HPUX 7.0 cc rejects these. */
21377 ++pcpcc;
21378 ppc = (char**) pcpcc;
21379 pcpcc = (char const *const *) ppc;
21380 { /* SCO 3.2v4 cc rejects this. */
21381 char *t;
21382 char const *s = 0 ? (char *) 0 : (char const *) 0;
21384 *t++ = 0;
21385 if (s) return 0;
21387 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21388 int x[] = {25, 17};
21389 const int *foo = &x[0];
21390 ++foo;
21392 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21393 typedef const int *iptr;
21394 iptr p = 0;
21395 ++p;
21397 { /* AIX XL C 1.02.0.0 rejects this saying
21398 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21399 struct s { int j; const int *ap[3]; };
21400 struct s *b; b->j = 5;
21402 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21403 const int foo = 10;
21404 if (!foo) return 0;
21406 return !cs[0] && !zero.x;
21407 #endif
21410 return 0;
21412 _ACEOF
21413 rm -f conftest.$ac_objext
21414 if { (ac_try="$ac_compile"
21415 case "(($ac_try" in
21416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21417 *) ac_try_echo=$ac_try;;
21418 esac
21419 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21420 $as_echo "$ac_try_echo") >&5
21421 (eval "$ac_compile") 2>conftest.er1
21422 ac_status=$?
21423 grep -v '^ *+' conftest.er1 >conftest.err
21424 rm -f conftest.er1
21425 cat conftest.err >&5
21426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21427 (exit $ac_status); } && {
21428 test -z "$ac_c_werror_flag" ||
21429 test ! -s conftest.err
21430 } && test -s conftest.$ac_objext; then
21431 ac_cv_c_const=yes
21432 else
21433 $as_echo "$as_me: failed program was:" >&5
21434 sed 's/^/| /' conftest.$ac_ext >&5
21436 ac_cv_c_const=no
21439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21441 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21442 $as_echo "$ac_cv_c_const" >&6; }
21443 if test $ac_cv_c_const = no; then
21445 cat >>confdefs.h <<\_ACEOF
21446 #define const /**/
21447 _ACEOF
21452 works=no
21453 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
21454 $as_echo_n "checking for working volatile... " >&6; }
21455 cat >conftest.$ac_ext <<_ACEOF
21456 /* confdefs.h. */
21457 _ACEOF
21458 cat confdefs.h >>conftest.$ac_ext
21459 cat >>conftest.$ac_ext <<_ACEOF
21460 /* end confdefs.h. */
21463 main ()
21465 volatile int x; x = 0;
21467 return 0;
21469 _ACEOF
21470 rm -f conftest.$ac_objext
21471 if { (ac_try="$ac_compile"
21472 case "(($ac_try" in
21473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21474 *) ac_try_echo=$ac_try;;
21475 esac
21476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21477 $as_echo "$ac_try_echo") >&5
21478 (eval "$ac_compile") 2>conftest.er1
21479 ac_status=$?
21480 grep -v '^ *+' conftest.er1 >conftest.err
21481 rm -f conftest.er1
21482 cat conftest.err >&5
21483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21484 (exit $ac_status); } && {
21485 test -z "$ac_c_werror_flag" ||
21486 test ! -s conftest.err
21487 } && test -s conftest.$ac_objext; then
21488 works=yes
21489 else
21490 $as_echo "$as_me: failed program was:" >&5
21491 sed 's/^/| /' conftest.$ac_ext >&5
21494 cat >>confdefs.h <<\_ACEOF
21495 #define volatile /**/
21496 _ACEOF
21501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21502 { $as_echo "$as_me:$LINENO: result: $works" >&5
21503 $as_echo "$works" >&6; }
21505 works=no
21506 { $as_echo "$as_me:$LINENO: checking for working signed char" >&5
21507 $as_echo_n "checking for working signed char... " >&6; }
21508 cat >conftest.$ac_ext <<_ACEOF
21509 /* confdefs.h. */
21510 _ACEOF
21511 cat confdefs.h >>conftest.$ac_ext
21512 cat >>conftest.$ac_ext <<_ACEOF
21513 /* end confdefs.h. */
21516 main ()
21518 signed char c;
21520 return 0;
21522 _ACEOF
21523 rm -f conftest.$ac_objext
21524 if { (ac_try="$ac_compile"
21525 case "(($ac_try" in
21526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21527 *) ac_try_echo=$ac_try;;
21528 esac
21529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21530 $as_echo "$ac_try_echo") >&5
21531 (eval "$ac_compile") 2>conftest.er1
21532 ac_status=$?
21533 grep -v '^ *+' conftest.er1 >conftest.err
21534 rm -f conftest.er1
21535 cat conftest.err >&5
21536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21537 (exit $ac_status); } && {
21538 test -z "$ac_c_werror_flag" ||
21539 test ! -s conftest.err
21540 } && test -s conftest.$ac_objext; then
21541 works=yes
21542 else
21543 $as_echo "$as_me: failed program was:" >&5
21544 sed 's/^/| /' conftest.$ac_ext >&5
21547 cat >>confdefs.h <<\_ACEOF
21548 #define signed /**/
21549 _ACEOF
21554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21555 { $as_echo "$as_me:$LINENO: result: $works" >&5
21556 $as_echo "$works" >&6; }
21558 have_prototypes=no
21559 { $as_echo "$as_me:$LINENO: checking for prototypes" >&5
21560 $as_echo_n "checking for prototypes... " >&6; }
21561 cat >conftest.$ac_ext <<_ACEOF
21562 /* confdefs.h. */
21563 _ACEOF
21564 cat confdefs.h >>conftest.$ac_ext
21565 cat >>conftest.$ac_ext <<_ACEOF
21566 /* end confdefs.h. */
21567 int foo(int x) { return 0; }
21569 main ()
21571 return foo(10);
21573 return 0;
21575 _ACEOF
21576 rm -f conftest.$ac_objext
21577 if { (ac_try="$ac_compile"
21578 case "(($ac_try" in
21579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21580 *) ac_try_echo=$ac_try;;
21581 esac
21582 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21583 $as_echo "$ac_try_echo") >&5
21584 (eval "$ac_compile") 2>conftest.er1
21585 ac_status=$?
21586 grep -v '^ *+' conftest.er1 >conftest.err
21587 rm -f conftest.er1
21588 cat conftest.err >&5
21589 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21590 (exit $ac_status); } && {
21591 test -z "$ac_c_werror_flag" ||
21592 test ! -s conftest.err
21593 } && test -s conftest.$ac_objext; then
21596 cat >>confdefs.h <<\_ACEOF
21597 #define HAVE_PROTOTYPES 1
21598 _ACEOF
21600 have_prototypes=yes
21602 else
21603 $as_echo "$as_me: failed program was:" >&5
21604 sed 's/^/| /' conftest.$ac_ext >&5
21609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21610 { $as_echo "$as_me:$LINENO: result: $have_prototypes" >&5
21611 $as_echo "$have_prototypes" >&6; }
21613 works=no
21614 { $as_echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
21615 $as_echo_n "checking for variable length prototypes and stdarg.h... " >&6; }
21616 cat >conftest.$ac_ext <<_ACEOF
21617 /* confdefs.h. */
21618 _ACEOF
21619 cat confdefs.h >>conftest.$ac_ext
21620 cat >>conftest.$ac_ext <<_ACEOF
21621 /* end confdefs.h. */
21623 #include <stdarg.h>
21624 int foo(int x, ...) {
21625 va_list va;
21626 va_start(va, x);
21627 va_arg(va, int);
21628 va_arg(va, char *);
21629 va_arg(va, double);
21630 return 0;
21634 main ()
21636 return foo(10, "", 3.14);
21638 return 0;
21640 _ACEOF
21641 rm -f conftest.$ac_objext
21642 if { (ac_try="$ac_compile"
21643 case "(($ac_try" in
21644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21645 *) ac_try_echo=$ac_try;;
21646 esac
21647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21648 $as_echo "$ac_try_echo") >&5
21649 (eval "$ac_compile") 2>conftest.er1
21650 ac_status=$?
21651 grep -v '^ *+' conftest.er1 >conftest.err
21652 rm -f conftest.er1
21653 cat conftest.err >&5
21654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21655 (exit $ac_status); } && {
21656 test -z "$ac_c_werror_flag" ||
21657 test ! -s conftest.err
21658 } && test -s conftest.$ac_objext; then
21661 cat >>confdefs.h <<\_ACEOF
21662 #define HAVE_STDARG_PROTOTYPES 1
21663 _ACEOF
21665 works=yes
21667 else
21668 $as_echo "$as_me: failed program was:" >&5
21669 sed 's/^/| /' conftest.$ac_ext >&5
21674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21675 { $as_echo "$as_me:$LINENO: result: $works" >&5
21676 $as_echo "$works" >&6; }
21678 # check for socketpair
21679 { $as_echo "$as_me:$LINENO: checking for socketpair" >&5
21680 $as_echo_n "checking for socketpair... " >&6; }
21681 cat >conftest.$ac_ext <<_ACEOF
21682 /* confdefs.h. */
21683 _ACEOF
21684 cat confdefs.h >>conftest.$ac_ext
21685 cat >>conftest.$ac_ext <<_ACEOF
21686 /* end confdefs.h. */
21688 #include <sys/types.h>
21689 #include <sys/socket.h>
21692 main ()
21694 void *x=socketpair
21696 return 0;
21698 _ACEOF
21699 rm -f conftest.$ac_objext
21700 if { (ac_try="$ac_compile"
21701 case "(($ac_try" in
21702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21703 *) ac_try_echo=$ac_try;;
21704 esac
21705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21706 $as_echo "$ac_try_echo") >&5
21707 (eval "$ac_compile") 2>conftest.er1
21708 ac_status=$?
21709 grep -v '^ *+' conftest.er1 >conftest.err
21710 rm -f conftest.er1
21711 cat conftest.err >&5
21712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21713 (exit $ac_status); } && {
21714 test -z "$ac_c_werror_flag" ||
21715 test ! -s conftest.err
21716 } && test -s conftest.$ac_objext; then
21718 cat >>confdefs.h <<\_ACEOF
21719 #define HAVE_SOCKETPAIR 1
21720 _ACEOF
21722 { $as_echo "$as_me:$LINENO: result: yes" >&5
21723 $as_echo "yes" >&6; }
21724 else
21725 $as_echo "$as_me: failed program was:" >&5
21726 sed 's/^/| /' conftest.$ac_ext >&5
21728 { $as_echo "$as_me:$LINENO: result: no" >&5
21729 $as_echo "no" >&6; }
21733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21735 # check if sockaddr has sa_len member
21736 { $as_echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
21737 $as_echo_n "checking if sockaddr has sa_len member... " >&6; }
21738 cat >conftest.$ac_ext <<_ACEOF
21739 /* confdefs.h. */
21740 _ACEOF
21741 cat confdefs.h >>conftest.$ac_ext
21742 cat >>conftest.$ac_ext <<_ACEOF
21743 /* end confdefs.h. */
21744 #include <sys/types.h>
21745 #include <sys/socket.h>
21747 main ()
21749 struct sockaddr x;
21750 x.sa_len = 0;
21752 return 0;
21754 _ACEOF
21755 rm -f conftest.$ac_objext
21756 if { (ac_try="$ac_compile"
21757 case "(($ac_try" in
21758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21759 *) ac_try_echo=$ac_try;;
21760 esac
21761 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21762 $as_echo "$ac_try_echo") >&5
21763 (eval "$ac_compile") 2>conftest.er1
21764 ac_status=$?
21765 grep -v '^ *+' conftest.er1 >conftest.err
21766 rm -f conftest.er1
21767 cat conftest.err >&5
21768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21769 (exit $ac_status); } && {
21770 test -z "$ac_c_werror_flag" ||
21771 test ! -s conftest.err
21772 } && test -s conftest.$ac_objext; then
21773 { $as_echo "$as_me:$LINENO: result: yes" >&5
21774 $as_echo "yes" >&6; }
21776 cat >>confdefs.h <<\_ACEOF
21777 #define HAVE_SOCKADDR_SA_LEN 1
21778 _ACEOF
21780 else
21781 $as_echo "$as_me: failed program was:" >&5
21782 sed 's/^/| /' conftest.$ac_ext >&5
21784 { $as_echo "$as_me:$LINENO: result: no" >&5
21785 $as_echo "no" >&6; }
21788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21790 va_list_is_array=no
21791 { $as_echo "$as_me:$LINENO: checking whether va_list is an array" >&5
21792 $as_echo_n "checking whether va_list is an array... " >&6; }
21793 cat >conftest.$ac_ext <<_ACEOF
21794 /* confdefs.h. */
21795 _ACEOF
21796 cat confdefs.h >>conftest.$ac_ext
21797 cat >>conftest.$ac_ext <<_ACEOF
21798 /* end confdefs.h. */
21800 #ifdef HAVE_STDARG_PROTOTYPES
21801 #include <stdarg.h>
21802 #else
21803 #include <varargs.h>
21804 #endif
21807 main ()
21809 va_list list1, list2; list1 = list2;
21811 return 0;
21813 _ACEOF
21814 rm -f conftest.$ac_objext
21815 if { (ac_try="$ac_compile"
21816 case "(($ac_try" in
21817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21818 *) ac_try_echo=$ac_try;;
21819 esac
21820 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21821 $as_echo "$ac_try_echo") >&5
21822 (eval "$ac_compile") 2>conftest.er1
21823 ac_status=$?
21824 grep -v '^ *+' conftest.er1 >conftest.err
21825 rm -f conftest.er1
21826 cat conftest.err >&5
21827 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21828 (exit $ac_status); } && {
21829 test -z "$ac_c_werror_flag" ||
21830 test ! -s conftest.err
21831 } && test -s conftest.$ac_objext; then
21833 else
21834 $as_echo "$as_me: failed program was:" >&5
21835 sed 's/^/| /' conftest.$ac_ext >&5
21839 cat >>confdefs.h <<\_ACEOF
21840 #define VA_LIST_IS_ARRAY 1
21841 _ACEOF
21843 va_list_is_array=yes
21847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21848 { $as_echo "$as_me:$LINENO: result: $va_list_is_array" >&5
21849 $as_echo "$va_list_is_array" >&6; }
21851 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
21855 { $as_echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
21856 $as_echo_n "checking for gethostbyname_r... " >&6; }
21857 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
21858 $as_echo_n "(cached) " >&6
21859 else
21860 cat >conftest.$ac_ext <<_ACEOF
21861 /* confdefs.h. */
21862 _ACEOF
21863 cat confdefs.h >>conftest.$ac_ext
21864 cat >>conftest.$ac_ext <<_ACEOF
21865 /* end confdefs.h. */
21866 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
21867 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21868 #define gethostbyname_r innocuous_gethostbyname_r
21870 /* System header to define __stub macros and hopefully few prototypes,
21871 which can conflict with char gethostbyname_r (); below.
21872 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21873 <limits.h> exists even on freestanding compilers. */
21875 #ifdef __STDC__
21876 # include <limits.h>
21877 #else
21878 # include <assert.h>
21879 #endif
21881 #undef gethostbyname_r
21883 /* Override any GCC internal prototype to avoid an error.
21884 Use char because int might match the return type of a GCC
21885 builtin and then its argument prototype would still apply. */
21886 #ifdef __cplusplus
21887 extern "C"
21888 #endif
21889 char gethostbyname_r ();
21890 /* The GNU C library defines this for functions which it implements
21891 to always fail with ENOSYS. Some functions are actually named
21892 something starting with __ and the normal name is an alias. */
21893 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
21894 choke me
21895 #endif
21898 main ()
21900 return gethostbyname_r ();
21902 return 0;
21904 _ACEOF
21905 rm -f conftest.$ac_objext conftest$ac_exeext
21906 if { (ac_try="$ac_link"
21907 case "(($ac_try" in
21908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21909 *) ac_try_echo=$ac_try;;
21910 esac
21911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21912 $as_echo "$ac_try_echo") >&5
21913 (eval "$ac_link") 2>conftest.er1
21914 ac_status=$?
21915 grep -v '^ *+' conftest.er1 >conftest.err
21916 rm -f conftest.er1
21917 cat conftest.err >&5
21918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21919 (exit $ac_status); } && {
21920 test -z "$ac_c_werror_flag" ||
21921 test ! -s conftest.err
21922 } && test -s conftest$ac_exeext && {
21923 test "$cross_compiling" = yes ||
21924 $as_test_x conftest$ac_exeext
21925 }; then
21926 ac_cv_func_gethostbyname_r=yes
21927 else
21928 $as_echo "$as_me: failed program was:" >&5
21929 sed 's/^/| /' conftest.$ac_ext >&5
21931 ac_cv_func_gethostbyname_r=no
21934 rm -rf conftest.dSYM
21935 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21936 conftest$ac_exeext conftest.$ac_ext
21938 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
21939 $as_echo "$ac_cv_func_gethostbyname_r" >&6; }
21940 if test "x$ac_cv_func_gethostbyname_r" = x""yes; then
21942 cat >>confdefs.h <<\_ACEOF
21943 #define HAVE_GETHOSTBYNAME_R 1
21944 _ACEOF
21946 { $as_echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
21947 $as_echo_n "checking gethostbyname_r with 6 args... " >&6; }
21948 OLD_CFLAGS=$CFLAGS
21949 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
21950 cat >conftest.$ac_ext <<_ACEOF
21951 /* confdefs.h. */
21952 _ACEOF
21953 cat confdefs.h >>conftest.$ac_ext
21954 cat >>conftest.$ac_ext <<_ACEOF
21955 /* end confdefs.h. */
21957 # include <netdb.h>
21960 main ()
21963 char *name;
21964 struct hostent *he, *res;
21965 char buffer[2048];
21966 int buflen = 2048;
21967 int h_errnop;
21969 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
21972 return 0;
21974 _ACEOF
21975 rm -f conftest.$ac_objext
21976 if { (ac_try="$ac_compile"
21977 case "(($ac_try" in
21978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21979 *) ac_try_echo=$ac_try;;
21980 esac
21981 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21982 $as_echo "$ac_try_echo") >&5
21983 (eval "$ac_compile") 2>conftest.er1
21984 ac_status=$?
21985 grep -v '^ *+' conftest.er1 >conftest.err
21986 rm -f conftest.er1
21987 cat conftest.err >&5
21988 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21989 (exit $ac_status); } && {
21990 test -z "$ac_c_werror_flag" ||
21991 test ! -s conftest.err
21992 } && test -s conftest.$ac_objext; then
21994 cat >>confdefs.h <<\_ACEOF
21995 #define HAVE_GETHOSTBYNAME_R 1
21996 _ACEOF
21999 cat >>confdefs.h <<\_ACEOF
22000 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
22001 _ACEOF
22003 { $as_echo "$as_me:$LINENO: result: yes" >&5
22004 $as_echo "yes" >&6; }
22006 else
22007 $as_echo "$as_me: failed program was:" >&5
22008 sed 's/^/| /' conftest.$ac_ext >&5
22011 { $as_echo "$as_me:$LINENO: result: no" >&5
22012 $as_echo "no" >&6; }
22013 { $as_echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
22014 $as_echo_n "checking gethostbyname_r with 5 args... " >&6; }
22015 cat >conftest.$ac_ext <<_ACEOF
22016 /* confdefs.h. */
22017 _ACEOF
22018 cat confdefs.h >>conftest.$ac_ext
22019 cat >>conftest.$ac_ext <<_ACEOF
22020 /* end confdefs.h. */
22022 # include <netdb.h>
22025 main ()
22028 char *name;
22029 struct hostent *he;
22030 char buffer[2048];
22031 int buflen = 2048;
22032 int h_errnop;
22034 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
22037 return 0;
22039 _ACEOF
22040 rm -f conftest.$ac_objext
22041 if { (ac_try="$ac_compile"
22042 case "(($ac_try" in
22043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22044 *) ac_try_echo=$ac_try;;
22045 esac
22046 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22047 $as_echo "$ac_try_echo") >&5
22048 (eval "$ac_compile") 2>conftest.er1
22049 ac_status=$?
22050 grep -v '^ *+' conftest.er1 >conftest.err
22051 rm -f conftest.er1
22052 cat conftest.err >&5
22053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22054 (exit $ac_status); } && {
22055 test -z "$ac_c_werror_flag" ||
22056 test ! -s conftest.err
22057 } && test -s conftest.$ac_objext; then
22059 cat >>confdefs.h <<\_ACEOF
22060 #define HAVE_GETHOSTBYNAME_R 1
22061 _ACEOF
22064 cat >>confdefs.h <<\_ACEOF
22065 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
22066 _ACEOF
22068 { $as_echo "$as_me:$LINENO: result: yes" >&5
22069 $as_echo "yes" >&6; }
22071 else
22072 $as_echo "$as_me: failed program was:" >&5
22073 sed 's/^/| /' conftest.$ac_ext >&5
22076 { $as_echo "$as_me:$LINENO: result: no" >&5
22077 $as_echo "no" >&6; }
22078 { $as_echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
22079 $as_echo_n "checking gethostbyname_r with 3 args... " >&6; }
22080 cat >conftest.$ac_ext <<_ACEOF
22081 /* confdefs.h. */
22082 _ACEOF
22083 cat confdefs.h >>conftest.$ac_ext
22084 cat >>conftest.$ac_ext <<_ACEOF
22085 /* end confdefs.h. */
22087 # include <netdb.h>
22090 main ()
22093 char *name;
22094 struct hostent *he;
22095 struct hostent_data data;
22097 (void) gethostbyname_r(name, he, &data);
22100 return 0;
22102 _ACEOF
22103 rm -f conftest.$ac_objext
22104 if { (ac_try="$ac_compile"
22105 case "(($ac_try" in
22106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22107 *) ac_try_echo=$ac_try;;
22108 esac
22109 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22110 $as_echo "$ac_try_echo") >&5
22111 (eval "$ac_compile") 2>conftest.er1
22112 ac_status=$?
22113 grep -v '^ *+' conftest.er1 >conftest.err
22114 rm -f conftest.er1
22115 cat conftest.err >&5
22116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22117 (exit $ac_status); } && {
22118 test -z "$ac_c_werror_flag" ||
22119 test ! -s conftest.err
22120 } && test -s conftest.$ac_objext; then
22122 cat >>confdefs.h <<\_ACEOF
22123 #define HAVE_GETHOSTBYNAME_R 1
22124 _ACEOF
22127 cat >>confdefs.h <<\_ACEOF
22128 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
22129 _ACEOF
22131 { $as_echo "$as_me:$LINENO: result: yes" >&5
22132 $as_echo "yes" >&6; }
22134 else
22135 $as_echo "$as_me: failed program was:" >&5
22136 sed 's/^/| /' conftest.$ac_ext >&5
22139 { $as_echo "$as_me:$LINENO: result: no" >&5
22140 $as_echo "no" >&6; }
22144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22153 CFLAGS=$OLD_CFLAGS
22155 else
22158 for ac_func in gethostbyname
22160 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22161 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22162 $as_echo_n "checking for $ac_func... " >&6; }
22163 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22164 $as_echo_n "(cached) " >&6
22165 else
22166 cat >conftest.$ac_ext <<_ACEOF
22167 /* confdefs.h. */
22168 _ACEOF
22169 cat confdefs.h >>conftest.$ac_ext
22170 cat >>conftest.$ac_ext <<_ACEOF
22171 /* end confdefs.h. */
22172 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22173 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22174 #define $ac_func innocuous_$ac_func
22176 /* System header to define __stub macros and hopefully few prototypes,
22177 which can conflict with char $ac_func (); below.
22178 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22179 <limits.h> exists even on freestanding compilers. */
22181 #ifdef __STDC__
22182 # include <limits.h>
22183 #else
22184 # include <assert.h>
22185 #endif
22187 #undef $ac_func
22189 /* Override any GCC internal prototype to avoid an error.
22190 Use char because int might match the return type of a GCC
22191 builtin and then its argument prototype would still apply. */
22192 #ifdef __cplusplus
22193 extern "C"
22194 #endif
22195 char $ac_func ();
22196 /* The GNU C library defines this for functions which it implements
22197 to always fail with ENOSYS. Some functions are actually named
22198 something starting with __ and the normal name is an alias. */
22199 #if defined __stub_$ac_func || defined __stub___$ac_func
22200 choke me
22201 #endif
22204 main ()
22206 return $ac_func ();
22208 return 0;
22210 _ACEOF
22211 rm -f conftest.$ac_objext conftest$ac_exeext
22212 if { (ac_try="$ac_link"
22213 case "(($ac_try" in
22214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22215 *) ac_try_echo=$ac_try;;
22216 esac
22217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22218 $as_echo "$ac_try_echo") >&5
22219 (eval "$ac_link") 2>conftest.er1
22220 ac_status=$?
22221 grep -v '^ *+' conftest.er1 >conftest.err
22222 rm -f conftest.er1
22223 cat conftest.err >&5
22224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22225 (exit $ac_status); } && {
22226 test -z "$ac_c_werror_flag" ||
22227 test ! -s conftest.err
22228 } && test -s conftest$ac_exeext && {
22229 test "$cross_compiling" = yes ||
22230 $as_test_x conftest$ac_exeext
22231 }; then
22232 eval "$as_ac_var=yes"
22233 else
22234 $as_echo "$as_me: failed program was:" >&5
22235 sed 's/^/| /' conftest.$ac_ext >&5
22237 eval "$as_ac_var=no"
22240 rm -rf conftest.dSYM
22241 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22242 conftest$ac_exeext conftest.$ac_ext
22244 ac_res=`eval 'as_val=${'$as_ac_var'}
22245 $as_echo "$as_val"'`
22246 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22247 $as_echo "$ac_res" >&6; }
22248 as_val=`eval 'as_val=${'$as_ac_var'}
22249 $as_echo "$as_val"'`
22250 if test "x$as_val" = x""yes; then
22251 cat >>confdefs.h <<_ACEOF
22252 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22253 _ACEOF
22256 done
22267 # checks for system services
22268 # (none yet)
22270 # Linux requires this for correct f.p. operations
22271 { $as_echo "$as_me:$LINENO: checking for __fpu_control" >&5
22272 $as_echo_n "checking for __fpu_control... " >&6; }
22273 if test "${ac_cv_func___fpu_control+set}" = set; then
22274 $as_echo_n "(cached) " >&6
22275 else
22276 cat >conftest.$ac_ext <<_ACEOF
22277 /* confdefs.h. */
22278 _ACEOF
22279 cat confdefs.h >>conftest.$ac_ext
22280 cat >>conftest.$ac_ext <<_ACEOF
22281 /* end confdefs.h. */
22282 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
22283 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22284 #define __fpu_control innocuous___fpu_control
22286 /* System header to define __stub macros and hopefully few prototypes,
22287 which can conflict with char __fpu_control (); below.
22288 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22289 <limits.h> exists even on freestanding compilers. */
22291 #ifdef __STDC__
22292 # include <limits.h>
22293 #else
22294 # include <assert.h>
22295 #endif
22297 #undef __fpu_control
22299 /* Override any GCC internal prototype to avoid an error.
22300 Use char because int might match the return type of a GCC
22301 builtin and then its argument prototype would still apply. */
22302 #ifdef __cplusplus
22303 extern "C"
22304 #endif
22305 char __fpu_control ();
22306 /* The GNU C library defines this for functions which it implements
22307 to always fail with ENOSYS. Some functions are actually named
22308 something starting with __ and the normal name is an alias. */
22309 #if defined __stub___fpu_control || defined __stub_____fpu_control
22310 choke me
22311 #endif
22314 main ()
22316 return __fpu_control ();
22318 return 0;
22320 _ACEOF
22321 rm -f conftest.$ac_objext conftest$ac_exeext
22322 if { (ac_try="$ac_link"
22323 case "(($ac_try" in
22324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22325 *) ac_try_echo=$ac_try;;
22326 esac
22327 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22328 $as_echo "$ac_try_echo") >&5
22329 (eval "$ac_link") 2>conftest.er1
22330 ac_status=$?
22331 grep -v '^ *+' conftest.er1 >conftest.err
22332 rm -f conftest.er1
22333 cat conftest.err >&5
22334 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22335 (exit $ac_status); } && {
22336 test -z "$ac_c_werror_flag" ||
22337 test ! -s conftest.err
22338 } && test -s conftest$ac_exeext && {
22339 test "$cross_compiling" = yes ||
22340 $as_test_x conftest$ac_exeext
22341 }; then
22342 ac_cv_func___fpu_control=yes
22343 else
22344 $as_echo "$as_me: failed program was:" >&5
22345 sed 's/^/| /' conftest.$ac_ext >&5
22347 ac_cv_func___fpu_control=no
22350 rm -rf conftest.dSYM
22351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22352 conftest$ac_exeext conftest.$ac_ext
22354 { $as_echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
22355 $as_echo "$ac_cv_func___fpu_control" >&6; }
22356 if test "x$ac_cv_func___fpu_control" = x""yes; then
22358 else
22360 { $as_echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
22361 $as_echo_n "checking for __fpu_control in -lieee... " >&6; }
22362 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
22363 $as_echo_n "(cached) " >&6
22364 else
22365 ac_check_lib_save_LIBS=$LIBS
22366 LIBS="-lieee $LIBS"
22367 cat >conftest.$ac_ext <<_ACEOF
22368 /* confdefs.h. */
22369 _ACEOF
22370 cat confdefs.h >>conftest.$ac_ext
22371 cat >>conftest.$ac_ext <<_ACEOF
22372 /* end confdefs.h. */
22374 /* Override any GCC internal prototype to avoid an error.
22375 Use char because int might match the return type of a GCC
22376 builtin and then its argument prototype would still apply. */
22377 #ifdef __cplusplus
22378 extern "C"
22379 #endif
22380 char __fpu_control ();
22382 main ()
22384 return __fpu_control ();
22386 return 0;
22388 _ACEOF
22389 rm -f conftest.$ac_objext conftest$ac_exeext
22390 if { (ac_try="$ac_link"
22391 case "(($ac_try" in
22392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22393 *) ac_try_echo=$ac_try;;
22394 esac
22395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22396 $as_echo "$ac_try_echo") >&5
22397 (eval "$ac_link") 2>conftest.er1
22398 ac_status=$?
22399 grep -v '^ *+' conftest.er1 >conftest.err
22400 rm -f conftest.er1
22401 cat conftest.err >&5
22402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22403 (exit $ac_status); } && {
22404 test -z "$ac_c_werror_flag" ||
22405 test ! -s conftest.err
22406 } && test -s conftest$ac_exeext && {
22407 test "$cross_compiling" = yes ||
22408 $as_test_x conftest$ac_exeext
22409 }; then
22410 ac_cv_lib_ieee___fpu_control=yes
22411 else
22412 $as_echo "$as_me: failed program was:" >&5
22413 sed 's/^/| /' conftest.$ac_ext >&5
22415 ac_cv_lib_ieee___fpu_control=no
22418 rm -rf conftest.dSYM
22419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22420 conftest$ac_exeext conftest.$ac_ext
22421 LIBS=$ac_check_lib_save_LIBS
22423 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
22424 $as_echo "$ac_cv_lib_ieee___fpu_control" >&6; }
22425 if test "x$ac_cv_lib_ieee___fpu_control" = x""yes; then
22426 cat >>confdefs.h <<_ACEOF
22427 #define HAVE_LIBIEEE 1
22428 _ACEOF
22430 LIBS="-lieee $LIBS"
22438 # Check for --with-fpectl
22439 { $as_echo "$as_me:$LINENO: checking for --with-fpectl" >&5
22440 $as_echo_n "checking for --with-fpectl... " >&6; }
22442 # Check whether --with-fpectl was given.
22443 if test "${with_fpectl+set}" = set; then
22444 withval=$with_fpectl;
22445 if test "$withval" != no
22446 then
22448 cat >>confdefs.h <<\_ACEOF
22449 #define WANT_SIGFPE_HANDLER 1
22450 _ACEOF
22452 { $as_echo "$as_me:$LINENO: result: yes" >&5
22453 $as_echo "yes" >&6; }
22454 else { $as_echo "$as_me:$LINENO: result: no" >&5
22455 $as_echo "no" >&6; }
22457 else
22458 { $as_echo "$as_me:$LINENO: result: no" >&5
22459 $as_echo "no" >&6; }
22463 # check for --with-libm=...
22465 case $ac_sys_system in
22466 Darwin) ;;
22467 BeOS) ;;
22468 *) LIBM=-lm
22469 esac
22470 { $as_echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
22471 $as_echo_n "checking for --with-libm=STRING... " >&6; }
22473 # Check whether --with-libm was given.
22474 if test "${with_libm+set}" = set; then
22475 withval=$with_libm;
22476 if test "$withval" = no
22477 then LIBM=
22478 { $as_echo "$as_me:$LINENO: result: force LIBM empty" >&5
22479 $as_echo "force LIBM empty" >&6; }
22480 elif test "$withval" != yes
22481 then LIBM=$withval
22482 { $as_echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
22483 $as_echo "set LIBM=\"$withval\"" >&6; }
22484 else { { $as_echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
22485 $as_echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
22486 { (exit 1); exit 1; }; }
22488 else
22489 { $as_echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
22490 $as_echo "default LIBM=\"$LIBM\"" >&6; }
22494 # check for --with-libc=...
22496 { $as_echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
22497 $as_echo_n "checking for --with-libc=STRING... " >&6; }
22499 # Check whether --with-libc was given.
22500 if test "${with_libc+set}" = set; then
22501 withval=$with_libc;
22502 if test "$withval" = no
22503 then LIBC=
22504 { $as_echo "$as_me:$LINENO: result: force LIBC empty" >&5
22505 $as_echo "force LIBC empty" >&6; }
22506 elif test "$withval" != yes
22507 then LIBC=$withval
22508 { $as_echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
22509 $as_echo "set LIBC=\"$withval\"" >&6; }
22510 else { { $as_echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
22511 $as_echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
22512 { (exit 1); exit 1; }; }
22514 else
22515 { $as_echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
22516 $as_echo "default LIBC=\"$LIBC\"" >&6; }
22520 # ************************************
22521 # * Check for mathematical functions *
22522 # ************************************
22524 LIBS_SAVE=$LIBS
22525 LIBS="$LIBS $LIBM"
22527 # Detect whether system arithmetic is subject to x87-style double
22528 # rounding issues. The result of this test has little meaning on non
22529 # IEEE 754 platforms. On IEEE 754, test should return 1 if rounding
22530 # mode is round-to-nearest and double rounding issues are present, and
22531 # 0 otherwise. See http://bugs.python.org/issue2937 for more info.
22532 { $as_echo "$as_me:$LINENO: checking for x87-style double rounding" >&5
22533 $as_echo_n "checking for x87-style double rounding... " >&6; }
22534 if test "${ac_cv_x87_double_rounding+set}" = set; then
22535 $as_echo_n "(cached) " >&6
22536 else
22538 if test "$cross_compiling" = yes; then
22539 ac_cv_x87_double_rounding=no
22540 else
22541 cat >conftest.$ac_ext <<_ACEOF
22542 /* confdefs.h. */
22543 _ACEOF
22544 cat confdefs.h >>conftest.$ac_ext
22545 cat >>conftest.$ac_ext <<_ACEOF
22546 /* end confdefs.h. */
22548 #include <stdlib.h>
22549 #include <math.h>
22550 int main() {
22551 volatile double x, y, z;
22552 /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */
22553 x = 0.99999999999999989; /* 1-2**-53 */
22554 y = 1./x;
22555 if (y != 1.)
22556 exit(0);
22557 /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */
22558 x = 1e16;
22559 y = 2.99999;
22560 z = x + y;
22561 if (z != 1e16+4.)
22562 exit(0);
22563 /* both tests show evidence of double rounding */
22564 exit(1);
22567 _ACEOF
22568 rm -f conftest$ac_exeext
22569 if { (ac_try="$ac_link"
22570 case "(($ac_try" in
22571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22572 *) ac_try_echo=$ac_try;;
22573 esac
22574 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22575 $as_echo "$ac_try_echo") >&5
22576 (eval "$ac_link") 2>&5
22577 ac_status=$?
22578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22579 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22580 { (case "(($ac_try" in
22581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22582 *) ac_try_echo=$ac_try;;
22583 esac
22584 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22585 $as_echo "$ac_try_echo") >&5
22586 (eval "$ac_try") 2>&5
22587 ac_status=$?
22588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22589 (exit $ac_status); }; }; then
22590 ac_cv_x87_double_rounding=no
22591 else
22592 $as_echo "$as_me: program exited with status $ac_status" >&5
22593 $as_echo "$as_me: failed program was:" >&5
22594 sed 's/^/| /' conftest.$ac_ext >&5
22596 ( exit $ac_status )
22597 ac_cv_x87_double_rounding=yes
22599 rm -rf conftest.dSYM
22600 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22606 { $as_echo "$as_me:$LINENO: result: $ac_cv_x87_double_rounding" >&5
22607 $as_echo "$ac_cv_x87_double_rounding" >&6; }
22608 if test "$ac_cv_x87_double_rounding" = yes
22609 then
22611 cat >>confdefs.h <<\_ACEOF
22612 #define X87_DOUBLE_ROUNDING 1
22613 _ACEOF
22617 # Multiprocessing check for broken sem_getvalue
22618 { $as_echo "$as_me:$LINENO: checking for broken sem_getvalue" >&5
22619 $as_echo_n "checking for broken sem_getvalue... " >&6; }
22620 if test "$cross_compiling" = yes; then
22621 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22622 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22623 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22624 See \`config.log' for more details." >&5
22625 $as_echo "$as_me: error: cannot run test program while cross compiling
22626 See \`config.log' for more details." >&2;}
22627 { (exit 1); exit 1; }; }; }
22628 else
22629 cat >conftest.$ac_ext <<_ACEOF
22630 /* confdefs.h. */
22631 _ACEOF
22632 cat confdefs.h >>conftest.$ac_ext
22633 cat >>conftest.$ac_ext <<_ACEOF
22634 /* end confdefs.h. */
22636 #include <unistd.h>
22637 #include <fcntl.h>
22638 #include <stdio.h>
22639 #include <semaphore.h>
22640 #include <sys/stat.h>
22642 int main(void){
22643 sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0);
22644 int count;
22645 int res;
22646 if(a==SEM_FAILED){
22647 perror("sem_open");
22648 return 1;
22651 res = sem_getvalue(a, &count);
22652 sem_close(a);
22653 return res==-1 ? 1 : 0;
22657 _ACEOF
22658 rm -f conftest$ac_exeext
22659 if { (ac_try="$ac_link"
22660 case "(($ac_try" in
22661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22662 *) ac_try_echo=$ac_try;;
22663 esac
22664 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22665 $as_echo "$ac_try_echo") >&5
22666 (eval "$ac_link") 2>&5
22667 ac_status=$?
22668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22669 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22670 { (case "(($ac_try" in
22671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22672 *) ac_try_echo=$ac_try;;
22673 esac
22674 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22675 $as_echo "$ac_try_echo") >&5
22676 (eval "$ac_try") 2>&5
22677 ac_status=$?
22678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22679 (exit $ac_status); }; }; then
22680 { $as_echo "$as_me:$LINENO: result: no" >&5
22681 $as_echo "no" >&6; }
22682 else
22683 $as_echo "$as_me: program exited with status $ac_status" >&5
22684 $as_echo "$as_me: failed program was:" >&5
22685 sed 's/^/| /' conftest.$ac_ext >&5
22687 ( exit $ac_status )
22688 { $as_echo "$as_me:$LINENO: result: yes" >&5
22689 $as_echo "yes" >&6; }
22691 cat >>confdefs.h <<\_ACEOF
22692 #define HAVE_BROKEN_SEM_GETVALUE 1
22693 _ACEOF
22697 rm -rf conftest.dSYM
22698 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22703 # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of
22704 # -0. on some architectures.
22705 { $as_echo "$as_me:$LINENO: checking whether tanh preserves the sign of zero" >&5
22706 $as_echo_n "checking whether tanh preserves the sign of zero... " >&6; }
22707 if test "${ac_cv_tanh_preserves_zero_sign+set}" = set; then
22708 $as_echo_n "(cached) " >&6
22709 else
22711 if test "$cross_compiling" = yes; then
22712 ac_cv_tanh_preserves_zero_sign=no
22713 else
22714 cat >conftest.$ac_ext <<_ACEOF
22715 /* confdefs.h. */
22716 _ACEOF
22717 cat confdefs.h >>conftest.$ac_ext
22718 cat >>conftest.$ac_ext <<_ACEOF
22719 /* end confdefs.h. */
22721 #include <math.h>
22722 #include <stdlib.h>
22723 int main() {
22724 /* return 0 if either negative zeros don't exist
22725 on this platform or if negative zeros exist
22726 and tanh(-0.) == -0. */
22727 if (atan2(0., -1.) == atan2(-0., -1.) ||
22728 atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0);
22729 else exit(1);
22732 _ACEOF
22733 rm -f conftest$ac_exeext
22734 if { (ac_try="$ac_link"
22735 case "(($ac_try" in
22736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22737 *) ac_try_echo=$ac_try;;
22738 esac
22739 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22740 $as_echo "$ac_try_echo") >&5
22741 (eval "$ac_link") 2>&5
22742 ac_status=$?
22743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22744 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22745 { (case "(($ac_try" in
22746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22747 *) ac_try_echo=$ac_try;;
22748 esac
22749 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22750 $as_echo "$ac_try_echo") >&5
22751 (eval "$ac_try") 2>&5
22752 ac_status=$?
22753 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22754 (exit $ac_status); }; }; then
22755 ac_cv_tanh_preserves_zero_sign=yes
22756 else
22757 $as_echo "$as_me: program exited with status $ac_status" >&5
22758 $as_echo "$as_me: failed program was:" >&5
22759 sed 's/^/| /' conftest.$ac_ext >&5
22761 ( exit $ac_status )
22762 ac_cv_tanh_preserves_zero_sign=no
22764 rm -rf conftest.dSYM
22765 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22771 { $as_echo "$as_me:$LINENO: result: $ac_cv_tanh_preserves_zero_sign" >&5
22772 $as_echo "$ac_cv_tanh_preserves_zero_sign" >&6; }
22773 if test "$ac_cv_tanh_preserves_zero_sign" = yes
22774 then
22776 cat >>confdefs.h <<\_ACEOF
22777 #define TANH_PRESERVES_ZERO_SIGN 1
22778 _ACEOF
22791 for ac_func in acosh asinh atanh copysign expm1 finite hypot log1p round
22793 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22794 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22795 $as_echo_n "checking for $ac_func... " >&6; }
22796 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22797 $as_echo_n "(cached) " >&6
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. */
22805 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22806 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22807 #define $ac_func innocuous_$ac_func
22809 /* System header to define __stub macros and hopefully few prototypes,
22810 which can conflict with char $ac_func (); below.
22811 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22812 <limits.h> exists even on freestanding compilers. */
22814 #ifdef __STDC__
22815 # include <limits.h>
22816 #else
22817 # include <assert.h>
22818 #endif
22820 #undef $ac_func
22822 /* Override any GCC internal prototype to avoid an error.
22823 Use char because int might match the return type of a GCC
22824 builtin and then its argument prototype would still apply. */
22825 #ifdef __cplusplus
22826 extern "C"
22827 #endif
22828 char $ac_func ();
22829 /* The GNU C library defines this for functions which it implements
22830 to always fail with ENOSYS. Some functions are actually named
22831 something starting with __ and the normal name is an alias. */
22832 #if defined __stub_$ac_func || defined __stub___$ac_func
22833 choke me
22834 #endif
22837 main ()
22839 return $ac_func ();
22841 return 0;
22843 _ACEOF
22844 rm -f conftest.$ac_objext conftest$ac_exeext
22845 if { (ac_try="$ac_link"
22846 case "(($ac_try" in
22847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22848 *) ac_try_echo=$ac_try;;
22849 esac
22850 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22851 $as_echo "$ac_try_echo") >&5
22852 (eval "$ac_link") 2>conftest.er1
22853 ac_status=$?
22854 grep -v '^ *+' conftest.er1 >conftest.err
22855 rm -f conftest.er1
22856 cat conftest.err >&5
22857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22858 (exit $ac_status); } && {
22859 test -z "$ac_c_werror_flag" ||
22860 test ! -s conftest.err
22861 } && test -s conftest$ac_exeext && {
22862 test "$cross_compiling" = yes ||
22863 $as_test_x conftest$ac_exeext
22864 }; then
22865 eval "$as_ac_var=yes"
22866 else
22867 $as_echo "$as_me: failed program was:" >&5
22868 sed 's/^/| /' conftest.$ac_ext >&5
22870 eval "$as_ac_var=no"
22873 rm -rf conftest.dSYM
22874 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22875 conftest$ac_exeext conftest.$ac_ext
22877 ac_res=`eval 'as_val=${'$as_ac_var'}
22878 $as_echo "$as_val"'`
22879 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22880 $as_echo "$ac_res" >&6; }
22881 as_val=`eval 'as_val=${'$as_ac_var'}
22882 $as_echo "$as_val"'`
22883 if test "x$as_val" = x""yes; then
22884 cat >>confdefs.h <<_ACEOF
22885 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22886 _ACEOF
22889 done
22891 { $as_echo "$as_me:$LINENO: checking whether isinf is declared" >&5
22892 $as_echo_n "checking whether isinf is declared... " >&6; }
22893 if test "${ac_cv_have_decl_isinf+set}" = set; then
22894 $as_echo_n "(cached) " >&6
22895 else
22896 cat >conftest.$ac_ext <<_ACEOF
22897 /* confdefs.h. */
22898 _ACEOF
22899 cat confdefs.h >>conftest.$ac_ext
22900 cat >>conftest.$ac_ext <<_ACEOF
22901 /* end confdefs.h. */
22902 #include <math.h>
22905 main ()
22907 #ifndef isinf
22908 (void) isinf;
22909 #endif
22912 return 0;
22914 _ACEOF
22915 rm -f conftest.$ac_objext
22916 if { (ac_try="$ac_compile"
22917 case "(($ac_try" in
22918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22919 *) ac_try_echo=$ac_try;;
22920 esac
22921 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22922 $as_echo "$ac_try_echo") >&5
22923 (eval "$ac_compile") 2>conftest.er1
22924 ac_status=$?
22925 grep -v '^ *+' conftest.er1 >conftest.err
22926 rm -f conftest.er1
22927 cat conftest.err >&5
22928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22929 (exit $ac_status); } && {
22930 test -z "$ac_c_werror_flag" ||
22931 test ! -s conftest.err
22932 } && test -s conftest.$ac_objext; then
22933 ac_cv_have_decl_isinf=yes
22934 else
22935 $as_echo "$as_me: failed program was:" >&5
22936 sed 's/^/| /' conftest.$ac_ext >&5
22938 ac_cv_have_decl_isinf=no
22941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22943 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_isinf" >&5
22944 $as_echo "$ac_cv_have_decl_isinf" >&6; }
22945 if test "x$ac_cv_have_decl_isinf" = x""yes; then
22947 cat >>confdefs.h <<_ACEOF
22948 #define HAVE_DECL_ISINF 1
22949 _ACEOF
22952 else
22953 cat >>confdefs.h <<_ACEOF
22954 #define HAVE_DECL_ISINF 0
22955 _ACEOF
22959 { $as_echo "$as_me:$LINENO: checking whether isnan is declared" >&5
22960 $as_echo_n "checking whether isnan is declared... " >&6; }
22961 if test "${ac_cv_have_decl_isnan+set}" = set; then
22962 $as_echo_n "(cached) " >&6
22963 else
22964 cat >conftest.$ac_ext <<_ACEOF
22965 /* confdefs.h. */
22966 _ACEOF
22967 cat confdefs.h >>conftest.$ac_ext
22968 cat >>conftest.$ac_ext <<_ACEOF
22969 /* end confdefs.h. */
22970 #include <math.h>
22973 main ()
22975 #ifndef isnan
22976 (void) isnan;
22977 #endif
22980 return 0;
22982 _ACEOF
22983 rm -f conftest.$ac_objext
22984 if { (ac_try="$ac_compile"
22985 case "(($ac_try" in
22986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22987 *) ac_try_echo=$ac_try;;
22988 esac
22989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22990 $as_echo "$ac_try_echo") >&5
22991 (eval "$ac_compile") 2>conftest.er1
22992 ac_status=$?
22993 grep -v '^ *+' conftest.er1 >conftest.err
22994 rm -f conftest.er1
22995 cat conftest.err >&5
22996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22997 (exit $ac_status); } && {
22998 test -z "$ac_c_werror_flag" ||
22999 test ! -s conftest.err
23000 } && test -s conftest.$ac_objext; then
23001 ac_cv_have_decl_isnan=yes
23002 else
23003 $as_echo "$as_me: failed program was:" >&5
23004 sed 's/^/| /' conftest.$ac_ext >&5
23006 ac_cv_have_decl_isnan=no
23009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23011 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_isnan" >&5
23012 $as_echo "$ac_cv_have_decl_isnan" >&6; }
23013 if test "x$ac_cv_have_decl_isnan" = x""yes; then
23015 cat >>confdefs.h <<_ACEOF
23016 #define HAVE_DECL_ISNAN 1
23017 _ACEOF
23020 else
23021 cat >>confdefs.h <<_ACEOF
23022 #define HAVE_DECL_ISNAN 0
23023 _ACEOF
23027 { $as_echo "$as_me:$LINENO: checking whether isfinite is declared" >&5
23028 $as_echo_n "checking whether isfinite is declared... " >&6; }
23029 if test "${ac_cv_have_decl_isfinite+set}" = set; then
23030 $as_echo_n "(cached) " >&6
23031 else
23032 cat >conftest.$ac_ext <<_ACEOF
23033 /* confdefs.h. */
23034 _ACEOF
23035 cat confdefs.h >>conftest.$ac_ext
23036 cat >>conftest.$ac_ext <<_ACEOF
23037 /* end confdefs.h. */
23038 #include <math.h>
23041 main ()
23043 #ifndef isfinite
23044 (void) isfinite;
23045 #endif
23048 return 0;
23050 _ACEOF
23051 rm -f conftest.$ac_objext
23052 if { (ac_try="$ac_compile"
23053 case "(($ac_try" in
23054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23055 *) ac_try_echo=$ac_try;;
23056 esac
23057 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23058 $as_echo "$ac_try_echo") >&5
23059 (eval "$ac_compile") 2>conftest.er1
23060 ac_status=$?
23061 grep -v '^ *+' conftest.er1 >conftest.err
23062 rm -f conftest.er1
23063 cat conftest.err >&5
23064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23065 (exit $ac_status); } && {
23066 test -z "$ac_c_werror_flag" ||
23067 test ! -s conftest.err
23068 } && test -s conftest.$ac_objext; then
23069 ac_cv_have_decl_isfinite=yes
23070 else
23071 $as_echo "$as_me: failed program was:" >&5
23072 sed 's/^/| /' conftest.$ac_ext >&5
23074 ac_cv_have_decl_isfinite=no
23077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23079 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_isfinite" >&5
23080 $as_echo "$ac_cv_have_decl_isfinite" >&6; }
23081 if test "x$ac_cv_have_decl_isfinite" = x""yes; then
23083 cat >>confdefs.h <<_ACEOF
23084 #define HAVE_DECL_ISFINITE 1
23085 _ACEOF
23088 else
23089 cat >>confdefs.h <<_ACEOF
23090 #define HAVE_DECL_ISFINITE 0
23091 _ACEOF
23098 LIBS=$LIBS_SAVE
23100 # determine what size digit to use for Python's longs
23101 { $as_echo "$as_me:$LINENO: checking digit size for Python's longs" >&5
23102 $as_echo_n "checking digit size for Python's longs... " >&6; }
23103 # Check whether --enable-big-digits was given.
23104 if test "${enable_big_digits+set}" = set; then
23105 enableval=$enable_big_digits; case $enable_big_digits in
23106 yes)
23107 enable_big_digits=30 ;;
23109 enable_big_digits=15 ;;
23110 15|30)
23113 { { $as_echo "$as_me:$LINENO: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&5
23114 $as_echo "$as_me: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&2;}
23115 { (exit 1); exit 1; }; } ;;
23116 esac
23117 { $as_echo "$as_me:$LINENO: result: $enable_big_digits" >&5
23118 $as_echo "$enable_big_digits" >&6; }
23120 cat >>confdefs.h <<_ACEOF
23121 #define PYLONG_BITS_IN_DIGIT $enable_big_digits
23122 _ACEOF
23125 else
23126 { $as_echo "$as_me:$LINENO: result: no value specified" >&5
23127 $as_echo "no value specified" >&6; }
23131 # check for wchar.h
23132 if test "${ac_cv_header_wchar_h+set}" = set; then
23133 { $as_echo "$as_me:$LINENO: checking for wchar.h" >&5
23134 $as_echo_n "checking for wchar.h... " >&6; }
23135 if test "${ac_cv_header_wchar_h+set}" = set; then
23136 $as_echo_n "(cached) " >&6
23138 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
23139 $as_echo "$ac_cv_header_wchar_h" >&6; }
23140 else
23141 # Is the header compilable?
23142 { $as_echo "$as_me:$LINENO: checking wchar.h usability" >&5
23143 $as_echo_n "checking wchar.h usability... " >&6; }
23144 cat >conftest.$ac_ext <<_ACEOF
23145 /* confdefs.h. */
23146 _ACEOF
23147 cat confdefs.h >>conftest.$ac_ext
23148 cat >>conftest.$ac_ext <<_ACEOF
23149 /* end confdefs.h. */
23150 $ac_includes_default
23151 #include <wchar.h>
23152 _ACEOF
23153 rm -f conftest.$ac_objext
23154 if { (ac_try="$ac_compile"
23155 case "(($ac_try" in
23156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23157 *) ac_try_echo=$ac_try;;
23158 esac
23159 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23160 $as_echo "$ac_try_echo") >&5
23161 (eval "$ac_compile") 2>conftest.er1
23162 ac_status=$?
23163 grep -v '^ *+' conftest.er1 >conftest.err
23164 rm -f conftest.er1
23165 cat conftest.err >&5
23166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23167 (exit $ac_status); } && {
23168 test -z "$ac_c_werror_flag" ||
23169 test ! -s conftest.err
23170 } && test -s conftest.$ac_objext; then
23171 ac_header_compiler=yes
23172 else
23173 $as_echo "$as_me: failed program was:" >&5
23174 sed 's/^/| /' conftest.$ac_ext >&5
23176 ac_header_compiler=no
23179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23180 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23181 $as_echo "$ac_header_compiler" >&6; }
23183 # Is the header present?
23184 { $as_echo "$as_me:$LINENO: checking wchar.h presence" >&5
23185 $as_echo_n "checking wchar.h presence... " >&6; }
23186 cat >conftest.$ac_ext <<_ACEOF
23187 /* confdefs.h. */
23188 _ACEOF
23189 cat confdefs.h >>conftest.$ac_ext
23190 cat >>conftest.$ac_ext <<_ACEOF
23191 /* end confdefs.h. */
23192 #include <wchar.h>
23193 _ACEOF
23194 if { (ac_try="$ac_cpp conftest.$ac_ext"
23195 case "(($ac_try" in
23196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23197 *) ac_try_echo=$ac_try;;
23198 esac
23199 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23200 $as_echo "$ac_try_echo") >&5
23201 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23202 ac_status=$?
23203 grep -v '^ *+' conftest.er1 >conftest.err
23204 rm -f conftest.er1
23205 cat conftest.err >&5
23206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23207 (exit $ac_status); } >/dev/null && {
23208 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23209 test ! -s conftest.err
23210 }; then
23211 ac_header_preproc=yes
23212 else
23213 $as_echo "$as_me: failed program was:" >&5
23214 sed 's/^/| /' conftest.$ac_ext >&5
23216 ac_header_preproc=no
23219 rm -f conftest.err conftest.$ac_ext
23220 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23221 $as_echo "$ac_header_preproc" >&6; }
23223 # So? What about this header?
23224 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23225 yes:no: )
23226 { $as_echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
23227 $as_echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23228 { $as_echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
23229 $as_echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
23230 ac_header_preproc=yes
23232 no:yes:* )
23233 { $as_echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
23234 $as_echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
23235 { $as_echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
23236 $as_echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
23237 { $as_echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
23238 $as_echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
23239 { $as_echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
23240 $as_echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
23241 { $as_echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
23242 $as_echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
23243 { $as_echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
23244 $as_echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
23245 ( cat <<\_ASBOX
23246 ## -------------------------------------- ##
23247 ## Report this to http://bugs.python.org/ ##
23248 ## -------------------------------------- ##
23249 _ASBOX
23250 ) | sed "s/^/$as_me: WARNING: /" >&2
23252 esac
23253 { $as_echo "$as_me:$LINENO: checking for wchar.h" >&5
23254 $as_echo_n "checking for wchar.h... " >&6; }
23255 if test "${ac_cv_header_wchar_h+set}" = set; then
23256 $as_echo_n "(cached) " >&6
23257 else
23258 ac_cv_header_wchar_h=$ac_header_preproc
23260 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
23261 $as_echo "$ac_cv_header_wchar_h" >&6; }
23264 if test "x$ac_cv_header_wchar_h" = x""yes; then
23267 cat >>confdefs.h <<\_ACEOF
23268 #define HAVE_WCHAR_H 1
23269 _ACEOF
23271 wchar_h="yes"
23273 else
23274 wchar_h="no"
23280 # determine wchar_t size
23281 if test "$wchar_h" = yes
23282 then
23283 # The cast to long int works around a bug in the HP C Compiler
23284 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23285 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23286 # This bug is HP SR number 8606223364.
23287 { $as_echo "$as_me:$LINENO: checking size of wchar_t" >&5
23288 $as_echo_n "checking size of wchar_t... " >&6; }
23289 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
23290 $as_echo_n "(cached) " >&6
23291 else
23292 if test "$cross_compiling" = yes; then
23293 # Depending upon the size, compute the lo and hi bounds.
23294 cat >conftest.$ac_ext <<_ACEOF
23295 /* confdefs.h. */
23296 _ACEOF
23297 cat confdefs.h >>conftest.$ac_ext
23298 cat >>conftest.$ac_ext <<_ACEOF
23299 /* end confdefs.h. */
23300 #include <wchar.h>
23303 main ()
23305 static int test_array [1 - 2 * !(((long int) (sizeof (wchar_t))) >= 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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23319 $as_echo "$ac_try_echo") >&5
23320 (eval "$ac_compile") 2>conftest.er1
23321 ac_status=$?
23322 grep -v '^ *+' conftest.er1 >conftest.err
23323 rm -f conftest.er1
23324 cat conftest.err >&5
23325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23326 (exit $ac_status); } && {
23327 test -z "$ac_c_werror_flag" ||
23328 test ! -s conftest.err
23329 } && test -s conftest.$ac_objext; then
23330 ac_lo=0 ac_mid=0
23331 while :; do
23332 cat >conftest.$ac_ext <<_ACEOF
23333 /* confdefs.h. */
23334 _ACEOF
23335 cat confdefs.h >>conftest.$ac_ext
23336 cat >>conftest.$ac_ext <<_ACEOF
23337 /* end confdefs.h. */
23338 #include <wchar.h>
23341 main ()
23343 static int test_array [1 - 2 * !(((long int) (sizeof (wchar_t))) <= $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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23357 $as_echo "$ac_try_echo") >&5
23358 (eval "$ac_compile") 2>conftest.er1
23359 ac_status=$?
23360 grep -v '^ *+' conftest.er1 >conftest.err
23361 rm -f conftest.er1
23362 cat conftest.err >&5
23363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23364 (exit $ac_status); } && {
23365 test -z "$ac_c_werror_flag" ||
23366 test ! -s conftest.err
23367 } && test -s conftest.$ac_objext; then
23368 ac_hi=$ac_mid; break
23369 else
23370 $as_echo "$as_me: failed program was:" >&5
23371 sed 's/^/| /' conftest.$ac_ext >&5
23373 ac_lo=`expr $ac_mid + 1`
23374 if test $ac_lo -le $ac_mid; then
23375 ac_lo= ac_hi=
23376 break
23378 ac_mid=`expr 2 '*' $ac_mid + 1`
23381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23382 done
23383 else
23384 $as_echo "$as_me: failed program was:" >&5
23385 sed 's/^/| /' conftest.$ac_ext >&5
23387 cat >conftest.$ac_ext <<_ACEOF
23388 /* confdefs.h. */
23389 _ACEOF
23390 cat confdefs.h >>conftest.$ac_ext
23391 cat >>conftest.$ac_ext <<_ACEOF
23392 /* end confdefs.h. */
23393 #include <wchar.h>
23396 main ()
23398 static int test_array [1 - 2 * !(((long int) (sizeof (wchar_t))) < 0)];
23399 test_array [0] = 0
23402 return 0;
23404 _ACEOF
23405 rm -f conftest.$ac_objext
23406 if { (ac_try="$ac_compile"
23407 case "(($ac_try" in
23408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23409 *) ac_try_echo=$ac_try;;
23410 esac
23411 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23412 $as_echo "$ac_try_echo") >&5
23413 (eval "$ac_compile") 2>conftest.er1
23414 ac_status=$?
23415 grep -v '^ *+' conftest.er1 >conftest.err
23416 rm -f conftest.er1
23417 cat conftest.err >&5
23418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23419 (exit $ac_status); } && {
23420 test -z "$ac_c_werror_flag" ||
23421 test ! -s conftest.err
23422 } && test -s conftest.$ac_objext; then
23423 ac_hi=-1 ac_mid=-1
23424 while :; do
23425 cat >conftest.$ac_ext <<_ACEOF
23426 /* confdefs.h. */
23427 _ACEOF
23428 cat confdefs.h >>conftest.$ac_ext
23429 cat >>conftest.$ac_ext <<_ACEOF
23430 /* end confdefs.h. */
23431 #include <wchar.h>
23434 main ()
23436 static int test_array [1 - 2 * !(((long int) (sizeof (wchar_t))) >= $ac_mid)];
23437 test_array [0] = 0
23440 return 0;
23442 _ACEOF
23443 rm -f conftest.$ac_objext
23444 if { (ac_try="$ac_compile"
23445 case "(($ac_try" in
23446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23447 *) ac_try_echo=$ac_try;;
23448 esac
23449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23450 $as_echo "$ac_try_echo") >&5
23451 (eval "$ac_compile") 2>conftest.er1
23452 ac_status=$?
23453 grep -v '^ *+' conftest.er1 >conftest.err
23454 rm -f conftest.er1
23455 cat conftest.err >&5
23456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23457 (exit $ac_status); } && {
23458 test -z "$ac_c_werror_flag" ||
23459 test ! -s conftest.err
23460 } && test -s conftest.$ac_objext; then
23461 ac_lo=$ac_mid; break
23462 else
23463 $as_echo "$as_me: failed program was:" >&5
23464 sed 's/^/| /' conftest.$ac_ext >&5
23466 ac_hi=`expr '(' $ac_mid ')' - 1`
23467 if test $ac_mid -le $ac_hi; then
23468 ac_lo= ac_hi=
23469 break
23471 ac_mid=`expr 2 '*' $ac_mid`
23474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23475 done
23476 else
23477 $as_echo "$as_me: failed program was:" >&5
23478 sed 's/^/| /' conftest.$ac_ext >&5
23480 ac_lo= ac_hi=
23483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23487 # Binary search between lo and hi bounds.
23488 while test "x$ac_lo" != "x$ac_hi"; do
23489 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23490 cat >conftest.$ac_ext <<_ACEOF
23491 /* confdefs.h. */
23492 _ACEOF
23493 cat confdefs.h >>conftest.$ac_ext
23494 cat >>conftest.$ac_ext <<_ACEOF
23495 /* end confdefs.h. */
23496 #include <wchar.h>
23499 main ()
23501 static int test_array [1 - 2 * !(((long int) (sizeof (wchar_t))) <= $ac_mid)];
23502 test_array [0] = 0
23505 return 0;
23507 _ACEOF
23508 rm -f conftest.$ac_objext
23509 if { (ac_try="$ac_compile"
23510 case "(($ac_try" in
23511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23512 *) ac_try_echo=$ac_try;;
23513 esac
23514 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23515 $as_echo "$ac_try_echo") >&5
23516 (eval "$ac_compile") 2>conftest.er1
23517 ac_status=$?
23518 grep -v '^ *+' conftest.er1 >conftest.err
23519 rm -f conftest.er1
23520 cat conftest.err >&5
23521 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23522 (exit $ac_status); } && {
23523 test -z "$ac_c_werror_flag" ||
23524 test ! -s conftest.err
23525 } && test -s conftest.$ac_objext; then
23526 ac_hi=$ac_mid
23527 else
23528 $as_echo "$as_me: failed program was:" >&5
23529 sed 's/^/| /' conftest.$ac_ext >&5
23531 ac_lo=`expr '(' $ac_mid ')' + 1`
23534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23535 done
23536 case $ac_lo in
23537 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
23538 '') if test "$ac_cv_type_wchar_t" = yes; then
23539 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23540 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23541 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
23542 See \`config.log' for more details." >&5
23543 $as_echo "$as_me: error: cannot compute sizeof (wchar_t)
23544 See \`config.log' for more details." >&2;}
23545 { (exit 77); exit 77; }; }; }
23546 else
23547 ac_cv_sizeof_wchar_t=0
23548 fi ;;
23549 esac
23550 else
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. */
23557 #include <wchar.h>
23559 static long int longval () { return (long int) (sizeof (wchar_t)); }
23560 static unsigned long int ulongval () { return (long int) (sizeof (wchar_t)); }
23561 #include <stdio.h>
23562 #include <stdlib.h>
23564 main ()
23567 FILE *f = fopen ("conftest.val", "w");
23568 if (! f)
23569 return 1;
23570 if (((long int) (sizeof (wchar_t))) < 0)
23572 long int i = longval ();
23573 if (i != ((long int) (sizeof (wchar_t))))
23574 return 1;
23575 fprintf (f, "%ld", i);
23577 else
23579 unsigned long int i = ulongval ();
23580 if (i != ((long int) (sizeof (wchar_t))))
23581 return 1;
23582 fprintf (f, "%lu", i);
23584 /* Do not output a trailing newline, as this causes \r\n confusion
23585 on some platforms. */
23586 return ferror (f) || fclose (f) != 0;
23589 return 0;
23591 _ACEOF
23592 rm -f conftest$ac_exeext
23593 if { (ac_try="$ac_link"
23594 case "(($ac_try" in
23595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23596 *) ac_try_echo=$ac_try;;
23597 esac
23598 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23599 $as_echo "$ac_try_echo") >&5
23600 (eval "$ac_link") 2>&5
23601 ac_status=$?
23602 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23603 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23604 { (case "(($ac_try" in
23605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23606 *) ac_try_echo=$ac_try;;
23607 esac
23608 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23609 $as_echo "$ac_try_echo") >&5
23610 (eval "$ac_try") 2>&5
23611 ac_status=$?
23612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23613 (exit $ac_status); }; }; then
23614 ac_cv_sizeof_wchar_t=`cat conftest.val`
23615 else
23616 $as_echo "$as_me: program exited with status $ac_status" >&5
23617 $as_echo "$as_me: failed program was:" >&5
23618 sed 's/^/| /' conftest.$ac_ext >&5
23620 ( exit $ac_status )
23621 if test "$ac_cv_type_wchar_t" = yes; then
23622 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23623 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23624 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
23625 See \`config.log' for more details." >&5
23626 $as_echo "$as_me: error: cannot compute sizeof (wchar_t)
23627 See \`config.log' for more details." >&2;}
23628 { (exit 77); exit 77; }; }; }
23629 else
23630 ac_cv_sizeof_wchar_t=0
23633 rm -rf conftest.dSYM
23634 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23636 rm -f conftest.val
23638 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
23639 $as_echo "$ac_cv_sizeof_wchar_t" >&6; }
23643 cat >>confdefs.h <<_ACEOF
23644 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
23645 _ACEOF
23650 { $as_echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
23651 $as_echo_n "checking for UCS-4 tcl... " >&6; }
23652 have_ucs4_tcl=no
23653 cat >conftest.$ac_ext <<_ACEOF
23654 /* confdefs.h. */
23655 _ACEOF
23656 cat confdefs.h >>conftest.$ac_ext
23657 cat >>conftest.$ac_ext <<_ACEOF
23658 /* end confdefs.h. */
23660 #include <tcl.h>
23661 #if TCL_UTF_MAX != 6
23662 # error "NOT UCS4_TCL"
23663 #endif
23665 main ()
23669 return 0;
23671 _ACEOF
23672 rm -f conftest.$ac_objext
23673 if { (ac_try="$ac_compile"
23674 case "(($ac_try" in
23675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23676 *) ac_try_echo=$ac_try;;
23677 esac
23678 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23679 $as_echo "$ac_try_echo") >&5
23680 (eval "$ac_compile") 2>conftest.er1
23681 ac_status=$?
23682 grep -v '^ *+' conftest.er1 >conftest.err
23683 rm -f conftest.er1
23684 cat conftest.err >&5
23685 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23686 (exit $ac_status); } && {
23687 test -z "$ac_c_werror_flag" ||
23688 test ! -s conftest.err
23689 } && test -s conftest.$ac_objext; then
23692 cat >>confdefs.h <<\_ACEOF
23693 #define HAVE_UCS4_TCL 1
23694 _ACEOF
23696 have_ucs4_tcl=yes
23698 else
23699 $as_echo "$as_me: failed program was:" >&5
23700 sed 's/^/| /' conftest.$ac_ext >&5
23705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23706 { $as_echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
23707 $as_echo "$have_ucs4_tcl" >&6; }
23709 # check whether wchar_t is signed or not
23710 if test "$wchar_h" = yes
23711 then
23712 # check whether wchar_t is signed or not
23713 { $as_echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
23714 $as_echo_n "checking whether wchar_t is signed... " >&6; }
23715 if test "${ac_cv_wchar_t_signed+set}" = set; then
23716 $as_echo_n "(cached) " >&6
23717 else
23719 if test "$cross_compiling" = yes; then
23720 ac_cv_wchar_t_signed=yes
23721 else
23722 cat >conftest.$ac_ext <<_ACEOF
23723 /* confdefs.h. */
23724 _ACEOF
23725 cat confdefs.h >>conftest.$ac_ext
23726 cat >>conftest.$ac_ext <<_ACEOF
23727 /* end confdefs.h. */
23729 #include <wchar.h>
23730 int main()
23732 /* Success: exit code 0 */
23733 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
23736 _ACEOF
23737 rm -f conftest$ac_exeext
23738 if { (ac_try="$ac_link"
23739 case "(($ac_try" in
23740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23741 *) ac_try_echo=$ac_try;;
23742 esac
23743 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23744 $as_echo "$ac_try_echo") >&5
23745 (eval "$ac_link") 2>&5
23746 ac_status=$?
23747 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23748 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23749 { (case "(($ac_try" in
23750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23751 *) ac_try_echo=$ac_try;;
23752 esac
23753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23754 $as_echo "$ac_try_echo") >&5
23755 (eval "$ac_try") 2>&5
23756 ac_status=$?
23757 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23758 (exit $ac_status); }; }; then
23759 ac_cv_wchar_t_signed=yes
23760 else
23761 $as_echo "$as_me: program exited with status $ac_status" >&5
23762 $as_echo "$as_me: failed program was:" >&5
23763 sed 's/^/| /' conftest.$ac_ext >&5
23765 ( exit $ac_status )
23766 ac_cv_wchar_t_signed=no
23768 rm -rf conftest.dSYM
23769 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23775 { $as_echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
23776 $as_echo "$ac_cv_wchar_t_signed" >&6; }
23779 { $as_echo "$as_me:$LINENO: checking what type to use for unicode" >&5
23780 $as_echo_n "checking what type to use for unicode... " >&6; }
23781 # Check whether --enable-unicode was given.
23782 if test "${enable_unicode+set}" = set; then
23783 enableval=$enable_unicode;
23784 else
23785 enable_unicode=yes
23789 if test $enable_unicode = yes
23790 then
23791 # Without any arguments, Py_UNICODE defaults to two-byte mode
23792 case "$have_ucs4_tcl" in
23793 yes) enable_unicode="ucs4"
23795 *) enable_unicode="ucs2"
23797 esac
23802 case "$enable_unicode" in
23803 ucs2) unicode_size="2"
23804 cat >>confdefs.h <<\_ACEOF
23805 #define Py_UNICODE_SIZE 2
23806 _ACEOF
23809 ucs4) unicode_size="4"
23810 cat >>confdefs.h <<\_ACEOF
23811 #define Py_UNICODE_SIZE 4
23812 _ACEOF
23815 esac
23821 if test "$enable_unicode" = "no"
23822 then
23823 UNICODE_OBJS=""
23824 { $as_echo "$as_me:$LINENO: result: not used" >&5
23825 $as_echo "not used" >&6; }
23826 else
23827 UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o"
23829 cat >>confdefs.h <<\_ACEOF
23830 #define Py_USING_UNICODE 1
23831 _ACEOF
23834 # wchar_t is only usable if it maps to an unsigned type
23835 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
23836 -a "$ac_cv_wchar_t_signed" = "no"
23837 then
23838 PY_UNICODE_TYPE="wchar_t"
23840 cat >>confdefs.h <<\_ACEOF
23841 #define HAVE_USABLE_WCHAR_T 1
23842 _ACEOF
23844 cat >>confdefs.h <<\_ACEOF
23845 #define PY_UNICODE_TYPE wchar_t
23846 _ACEOF
23848 elif test "$ac_cv_sizeof_short" = "$unicode_size"
23849 then
23850 PY_UNICODE_TYPE="unsigned short"
23851 cat >>confdefs.h <<\_ACEOF
23852 #define PY_UNICODE_TYPE unsigned short
23853 _ACEOF
23855 elif test "$ac_cv_sizeof_long" = "$unicode_size"
23856 then
23857 PY_UNICODE_TYPE="unsigned long"
23858 cat >>confdefs.h <<\_ACEOF
23859 #define PY_UNICODE_TYPE unsigned long
23860 _ACEOF
23862 else
23863 PY_UNICODE_TYPE="no type found"
23865 { $as_echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
23866 $as_echo "$PY_UNICODE_TYPE" >&6; }
23869 # check for endianness
23871 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
23872 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
23873 if test "${ac_cv_c_bigendian+set}" = set; then
23874 $as_echo_n "(cached) " >&6
23875 else
23876 ac_cv_c_bigendian=unknown
23877 # See if we're dealing with a universal compiler.
23878 cat >conftest.$ac_ext <<_ACEOF
23879 /* confdefs.h. */
23880 _ACEOF
23881 cat confdefs.h >>conftest.$ac_ext
23882 cat >>conftest.$ac_ext <<_ACEOF
23883 /* end confdefs.h. */
23884 #ifndef __APPLE_CC__
23885 not a universal capable compiler
23886 #endif
23887 typedef int dummy;
23889 _ACEOF
23890 rm -f conftest.$ac_objext
23891 if { (ac_try="$ac_compile"
23892 case "(($ac_try" in
23893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23894 *) ac_try_echo=$ac_try;;
23895 esac
23896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23897 $as_echo "$ac_try_echo") >&5
23898 (eval "$ac_compile") 2>conftest.er1
23899 ac_status=$?
23900 grep -v '^ *+' conftest.er1 >conftest.err
23901 rm -f conftest.er1
23902 cat conftest.err >&5
23903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23904 (exit $ac_status); } && {
23905 test -z "$ac_c_werror_flag" ||
23906 test ! -s conftest.err
23907 } && test -s conftest.$ac_objext; then
23909 # Check for potential -arch flags. It is not universal unless
23910 # there are some -arch flags. Note that *ppc* also matches
23911 # ppc64. This check is also rather less than ideal.
23912 case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
23913 *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
23914 esac
23915 else
23916 $as_echo "$as_me: failed program was:" >&5
23917 sed 's/^/| /' conftest.$ac_ext >&5
23922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23923 if test $ac_cv_c_bigendian = unknown; then
23924 # See if sys/param.h defines the BYTE_ORDER macro.
23925 cat >conftest.$ac_ext <<_ACEOF
23926 /* confdefs.h. */
23927 _ACEOF
23928 cat confdefs.h >>conftest.$ac_ext
23929 cat >>conftest.$ac_ext <<_ACEOF
23930 /* end confdefs.h. */
23931 #include <sys/types.h>
23932 #include <sys/param.h>
23935 main ()
23937 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
23938 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
23939 && LITTLE_ENDIAN)
23940 bogus endian macros
23941 #endif
23944 return 0;
23946 _ACEOF
23947 rm -f conftest.$ac_objext
23948 if { (ac_try="$ac_compile"
23949 case "(($ac_try" in
23950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23951 *) ac_try_echo=$ac_try;;
23952 esac
23953 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23954 $as_echo "$ac_try_echo") >&5
23955 (eval "$ac_compile") 2>conftest.er1
23956 ac_status=$?
23957 grep -v '^ *+' conftest.er1 >conftest.err
23958 rm -f conftest.er1
23959 cat conftest.err >&5
23960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23961 (exit $ac_status); } && {
23962 test -z "$ac_c_werror_flag" ||
23963 test ! -s conftest.err
23964 } && test -s conftest.$ac_objext; then
23965 # It does; now see whether it defined to BIG_ENDIAN or not.
23966 cat >conftest.$ac_ext <<_ACEOF
23967 /* confdefs.h. */
23968 _ACEOF
23969 cat confdefs.h >>conftest.$ac_ext
23970 cat >>conftest.$ac_ext <<_ACEOF
23971 /* end confdefs.h. */
23972 #include <sys/types.h>
23973 #include <sys/param.h>
23976 main ()
23978 #if BYTE_ORDER != BIG_ENDIAN
23979 not big endian
23980 #endif
23983 return 0;
23985 _ACEOF
23986 rm -f conftest.$ac_objext
23987 if { (ac_try="$ac_compile"
23988 case "(($ac_try" in
23989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23990 *) ac_try_echo=$ac_try;;
23991 esac
23992 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23993 $as_echo "$ac_try_echo") >&5
23994 (eval "$ac_compile") 2>conftest.er1
23995 ac_status=$?
23996 grep -v '^ *+' conftest.er1 >conftest.err
23997 rm -f conftest.er1
23998 cat conftest.err >&5
23999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24000 (exit $ac_status); } && {
24001 test -z "$ac_c_werror_flag" ||
24002 test ! -s conftest.err
24003 } && test -s conftest.$ac_objext; then
24004 ac_cv_c_bigendian=yes
24005 else
24006 $as_echo "$as_me: failed program was:" >&5
24007 sed 's/^/| /' conftest.$ac_ext >&5
24009 ac_cv_c_bigendian=no
24012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24013 else
24014 $as_echo "$as_me: failed program was:" >&5
24015 sed 's/^/| /' conftest.$ac_ext >&5
24020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24022 if test $ac_cv_c_bigendian = unknown; then
24023 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
24024 cat >conftest.$ac_ext <<_ACEOF
24025 /* confdefs.h. */
24026 _ACEOF
24027 cat confdefs.h >>conftest.$ac_ext
24028 cat >>conftest.$ac_ext <<_ACEOF
24029 /* end confdefs.h. */
24030 #include <limits.h>
24033 main ()
24035 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
24036 bogus endian macros
24037 #endif
24040 return 0;
24042 _ACEOF
24043 rm -f conftest.$ac_objext
24044 if { (ac_try="$ac_compile"
24045 case "(($ac_try" in
24046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24047 *) ac_try_echo=$ac_try;;
24048 esac
24049 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24050 $as_echo "$ac_try_echo") >&5
24051 (eval "$ac_compile") 2>conftest.er1
24052 ac_status=$?
24053 grep -v '^ *+' conftest.er1 >conftest.err
24054 rm -f conftest.er1
24055 cat conftest.err >&5
24056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24057 (exit $ac_status); } && {
24058 test -z "$ac_c_werror_flag" ||
24059 test ! -s conftest.err
24060 } && test -s conftest.$ac_objext; then
24061 # It does; now see whether it defined to _BIG_ENDIAN or not.
24062 cat >conftest.$ac_ext <<_ACEOF
24063 /* confdefs.h. */
24064 _ACEOF
24065 cat confdefs.h >>conftest.$ac_ext
24066 cat >>conftest.$ac_ext <<_ACEOF
24067 /* end confdefs.h. */
24068 #include <limits.h>
24071 main ()
24073 #ifndef _BIG_ENDIAN
24074 not big endian
24075 #endif
24078 return 0;
24080 _ACEOF
24081 rm -f conftest.$ac_objext
24082 if { (ac_try="$ac_compile"
24083 case "(($ac_try" in
24084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24085 *) ac_try_echo=$ac_try;;
24086 esac
24087 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24088 $as_echo "$ac_try_echo") >&5
24089 (eval "$ac_compile") 2>conftest.er1
24090 ac_status=$?
24091 grep -v '^ *+' conftest.er1 >conftest.err
24092 rm -f conftest.er1
24093 cat conftest.err >&5
24094 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24095 (exit $ac_status); } && {
24096 test -z "$ac_c_werror_flag" ||
24097 test ! -s conftest.err
24098 } && test -s conftest.$ac_objext; then
24099 ac_cv_c_bigendian=yes
24100 else
24101 $as_echo "$as_me: failed program was:" >&5
24102 sed 's/^/| /' conftest.$ac_ext >&5
24104 ac_cv_c_bigendian=no
24107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24108 else
24109 $as_echo "$as_me: failed program was:" >&5
24110 sed 's/^/| /' conftest.$ac_ext >&5
24115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24117 if test $ac_cv_c_bigendian = unknown; then
24118 # Compile a test program.
24119 if test "$cross_compiling" = yes; then
24120 # Try to guess by grepping values from an object file.
24121 cat >conftest.$ac_ext <<_ACEOF
24122 /* confdefs.h. */
24123 _ACEOF
24124 cat confdefs.h >>conftest.$ac_ext
24125 cat >>conftest.$ac_ext <<_ACEOF
24126 /* end confdefs.h. */
24127 short int ascii_mm[] =
24128 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
24129 short int ascii_ii[] =
24130 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
24131 int use_ascii (int i) {
24132 return ascii_mm[i] + ascii_ii[i];
24134 short int ebcdic_ii[] =
24135 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
24136 short int ebcdic_mm[] =
24137 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
24138 int use_ebcdic (int i) {
24139 return ebcdic_mm[i] + ebcdic_ii[i];
24141 extern int foo;
24144 main ()
24146 return use_ascii (foo) == use_ebcdic (foo);
24148 return 0;
24150 _ACEOF
24151 rm -f conftest.$ac_objext
24152 if { (ac_try="$ac_compile"
24153 case "(($ac_try" in
24154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24155 *) ac_try_echo=$ac_try;;
24156 esac
24157 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24158 $as_echo "$ac_try_echo") >&5
24159 (eval "$ac_compile") 2>conftest.er1
24160 ac_status=$?
24161 grep -v '^ *+' conftest.er1 >conftest.err
24162 rm -f conftest.er1
24163 cat conftest.err >&5
24164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24165 (exit $ac_status); } && {
24166 test -z "$ac_c_werror_flag" ||
24167 test ! -s conftest.err
24168 } && test -s conftest.$ac_objext; then
24169 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
24170 ac_cv_c_bigendian=yes
24172 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
24173 if test "$ac_cv_c_bigendian" = unknown; then
24174 ac_cv_c_bigendian=no
24175 else
24176 # finding both strings is unlikely to happen, but who knows?
24177 ac_cv_c_bigendian=unknown
24180 else
24181 $as_echo "$as_me: failed program was:" >&5
24182 sed 's/^/| /' conftest.$ac_ext >&5
24187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24188 else
24189 cat >conftest.$ac_ext <<_ACEOF
24190 /* confdefs.h. */
24191 _ACEOF
24192 cat confdefs.h >>conftest.$ac_ext
24193 cat >>conftest.$ac_ext <<_ACEOF
24194 /* end confdefs.h. */
24195 $ac_includes_default
24197 main ()
24200 /* Are we little or big endian? From Harbison&Steele. */
24201 union
24203 long int l;
24204 char c[sizeof (long int)];
24205 } u;
24206 u.l = 1;
24207 return u.c[sizeof (long int) - 1] == 1;
24210 return 0;
24212 _ACEOF
24213 rm -f conftest$ac_exeext
24214 if { (ac_try="$ac_link"
24215 case "(($ac_try" in
24216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24217 *) ac_try_echo=$ac_try;;
24218 esac
24219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24220 $as_echo "$ac_try_echo") >&5
24221 (eval "$ac_link") 2>&5
24222 ac_status=$?
24223 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24224 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24225 { (case "(($ac_try" in
24226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24227 *) ac_try_echo=$ac_try;;
24228 esac
24229 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24230 $as_echo "$ac_try_echo") >&5
24231 (eval "$ac_try") 2>&5
24232 ac_status=$?
24233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24234 (exit $ac_status); }; }; then
24235 ac_cv_c_bigendian=no
24236 else
24237 $as_echo "$as_me: program exited with status $ac_status" >&5
24238 $as_echo "$as_me: failed program was:" >&5
24239 sed 's/^/| /' conftest.$ac_ext >&5
24241 ( exit $ac_status )
24242 ac_cv_c_bigendian=yes
24244 rm -rf conftest.dSYM
24245 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24251 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
24252 $as_echo "$ac_cv_c_bigendian" >&6; }
24253 case $ac_cv_c_bigendian in #(
24254 yes)
24255 cat >>confdefs.h <<\_ACEOF
24256 #define WORDS_BIGENDIAN 1
24257 _ACEOF
24258 ;; #(
24260 ;; #(
24261 universal)
24263 cat >>confdefs.h <<\_ACEOF
24264 #define AC_APPLE_UNIVERSAL_BUILD 1
24265 _ACEOF
24267 ;; #(
24269 { { $as_echo "$as_me:$LINENO: error: unknown endianness
24270 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
24271 $as_echo "$as_me: error: unknown endianness
24272 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
24273 { (exit 1); exit 1; }; } ;;
24274 esac
24277 # Check whether right shifting a negative integer extends the sign bit
24278 # or fills with zeros (like the Cray J90, according to Tim Peters).
24279 { $as_echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
24280 $as_echo_n "checking whether right shift extends the sign bit... " >&6; }
24281 if test "${ac_cv_rshift_extends_sign+set}" = set; then
24282 $as_echo_n "(cached) " >&6
24283 else
24285 if test "$cross_compiling" = yes; then
24286 ac_cv_rshift_extends_sign=yes
24287 else
24288 cat >conftest.$ac_ext <<_ACEOF
24289 /* confdefs.h. */
24290 _ACEOF
24291 cat confdefs.h >>conftest.$ac_ext
24292 cat >>conftest.$ac_ext <<_ACEOF
24293 /* end confdefs.h. */
24295 int main()
24297 exit(((-1)>>3 == -1) ? 0 : 1);
24300 _ACEOF
24301 rm -f conftest$ac_exeext
24302 if { (ac_try="$ac_link"
24303 case "(($ac_try" in
24304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24305 *) ac_try_echo=$ac_try;;
24306 esac
24307 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24308 $as_echo "$ac_try_echo") >&5
24309 (eval "$ac_link") 2>&5
24310 ac_status=$?
24311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24312 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24313 { (case "(($ac_try" in
24314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24315 *) ac_try_echo=$ac_try;;
24316 esac
24317 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24318 $as_echo "$ac_try_echo") >&5
24319 (eval "$ac_try") 2>&5
24320 ac_status=$?
24321 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24322 (exit $ac_status); }; }; then
24323 ac_cv_rshift_extends_sign=yes
24324 else
24325 $as_echo "$as_me: program exited with status $ac_status" >&5
24326 $as_echo "$as_me: failed program was:" >&5
24327 sed 's/^/| /' conftest.$ac_ext >&5
24329 ( exit $ac_status )
24330 ac_cv_rshift_extends_sign=no
24332 rm -rf conftest.dSYM
24333 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24339 { $as_echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
24340 $as_echo "$ac_cv_rshift_extends_sign" >&6; }
24341 if test "$ac_cv_rshift_extends_sign" = no
24342 then
24344 cat >>confdefs.h <<\_ACEOF
24345 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
24346 _ACEOF
24350 # check for getc_unlocked and related locking functions
24351 { $as_echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
24352 $as_echo_n "checking for getc_unlocked() and friends... " >&6; }
24353 if test "${ac_cv_have_getc_unlocked+set}" = set; then
24354 $as_echo_n "(cached) " >&6
24355 else
24357 cat >conftest.$ac_ext <<_ACEOF
24358 /* confdefs.h. */
24359 _ACEOF
24360 cat confdefs.h >>conftest.$ac_ext
24361 cat >>conftest.$ac_ext <<_ACEOF
24362 /* end confdefs.h. */
24363 #include <stdio.h>
24365 main ()
24368 FILE *f = fopen("/dev/null", "r");
24369 flockfile(f);
24370 getc_unlocked(f);
24371 funlockfile(f);
24374 return 0;
24376 _ACEOF
24377 rm -f conftest.$ac_objext conftest$ac_exeext
24378 if { (ac_try="$ac_link"
24379 case "(($ac_try" in
24380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24381 *) ac_try_echo=$ac_try;;
24382 esac
24383 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24384 $as_echo "$ac_try_echo") >&5
24385 (eval "$ac_link") 2>conftest.er1
24386 ac_status=$?
24387 grep -v '^ *+' conftest.er1 >conftest.err
24388 rm -f conftest.er1
24389 cat conftest.err >&5
24390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24391 (exit $ac_status); } && {
24392 test -z "$ac_c_werror_flag" ||
24393 test ! -s conftest.err
24394 } && test -s conftest$ac_exeext && {
24395 test "$cross_compiling" = yes ||
24396 $as_test_x conftest$ac_exeext
24397 }; then
24398 ac_cv_have_getc_unlocked=yes
24399 else
24400 $as_echo "$as_me: failed program was:" >&5
24401 sed 's/^/| /' conftest.$ac_ext >&5
24403 ac_cv_have_getc_unlocked=no
24406 rm -rf conftest.dSYM
24407 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24408 conftest$ac_exeext conftest.$ac_ext
24411 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
24412 $as_echo "$ac_cv_have_getc_unlocked" >&6; }
24413 if test "$ac_cv_have_getc_unlocked" = yes
24414 then
24416 cat >>confdefs.h <<\_ACEOF
24417 #define HAVE_GETC_UNLOCKED 1
24418 _ACEOF
24422 # check where readline lives
24423 # save the value of LIBS so we don't actually link Python with readline
24424 LIBS_no_readline=$LIBS
24426 # On some systems we need to link readline to a termcap compatible
24427 # library. NOTE: Keep the precedence of listed libraries synchronised
24428 # with setup.py.
24429 py_cv_lib_readline=no
24430 { $as_echo "$as_me:$LINENO: checking how to link readline libs" >&5
24431 $as_echo_n "checking how to link readline libs... " >&6; }
24432 for py_libtermcap in "" ncursesw ncurses curses termcap; do
24433 if test -z "$py_libtermcap"; then
24434 READLINE_LIBS="-lreadline"
24435 else
24436 READLINE_LIBS="-lreadline -l$py_libtermcap"
24438 LIBS="$READLINE_LIBS $LIBS_no_readline"
24439 cat >conftest.$ac_ext <<_ACEOF
24440 /* confdefs.h. */
24441 _ACEOF
24442 cat confdefs.h >>conftest.$ac_ext
24443 cat >>conftest.$ac_ext <<_ACEOF
24444 /* end confdefs.h. */
24446 /* Override any GCC internal prototype to avoid an error.
24447 Use char because int might match the return type of a GCC
24448 builtin and then its argument prototype would still apply. */
24449 #ifdef __cplusplus
24450 extern "C"
24451 #endif
24452 char readline ();
24454 main ()
24456 return readline ();
24458 return 0;
24460 _ACEOF
24461 rm -f conftest.$ac_objext conftest$ac_exeext
24462 if { (ac_try="$ac_link"
24463 case "(($ac_try" in
24464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24465 *) ac_try_echo=$ac_try;;
24466 esac
24467 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24468 $as_echo "$ac_try_echo") >&5
24469 (eval "$ac_link") 2>conftest.er1
24470 ac_status=$?
24471 grep -v '^ *+' conftest.er1 >conftest.err
24472 rm -f conftest.er1
24473 cat conftest.err >&5
24474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24475 (exit $ac_status); } && {
24476 test -z "$ac_c_werror_flag" ||
24477 test ! -s conftest.err
24478 } && test -s conftest$ac_exeext && {
24479 test "$cross_compiling" = yes ||
24480 $as_test_x conftest$ac_exeext
24481 }; then
24482 py_cv_lib_readline=yes
24483 else
24484 $as_echo "$as_me: failed program was:" >&5
24485 sed 's/^/| /' conftest.$ac_ext >&5
24490 rm -rf conftest.dSYM
24491 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24492 conftest$ac_exeext conftest.$ac_ext
24493 if test $py_cv_lib_readline = yes; then
24494 break
24496 done
24497 # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts
24498 #AC_SUBST([READLINE_LIBS])
24499 if test $py_cv_lib_readline = no; then
24500 { $as_echo "$as_me:$LINENO: result: none" >&5
24501 $as_echo "none" >&6; }
24502 else
24503 { $as_echo "$as_me:$LINENO: result: $READLINE_LIBS" >&5
24504 $as_echo "$READLINE_LIBS" >&6; }
24506 cat >>confdefs.h <<\_ACEOF
24507 #define HAVE_LIBREADLINE 1
24508 _ACEOF
24512 # check for readline 2.1
24513 { $as_echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
24514 $as_echo_n "checking for rl_callback_handler_install in -lreadline... " >&6; }
24515 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
24516 $as_echo_n "(cached) " >&6
24517 else
24518 ac_check_lib_save_LIBS=$LIBS
24519 LIBS="-lreadline $READLINE_LIBS $LIBS"
24520 cat >conftest.$ac_ext <<_ACEOF
24521 /* confdefs.h. */
24522 _ACEOF
24523 cat confdefs.h >>conftest.$ac_ext
24524 cat >>conftest.$ac_ext <<_ACEOF
24525 /* end confdefs.h. */
24527 /* Override any GCC internal prototype to avoid an error.
24528 Use char because int might match the return type of a GCC
24529 builtin and then its argument prototype would still apply. */
24530 #ifdef __cplusplus
24531 extern "C"
24532 #endif
24533 char rl_callback_handler_install ();
24535 main ()
24537 return rl_callback_handler_install ();
24539 return 0;
24541 _ACEOF
24542 rm -f conftest.$ac_objext conftest$ac_exeext
24543 if { (ac_try="$ac_link"
24544 case "(($ac_try" in
24545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24546 *) ac_try_echo=$ac_try;;
24547 esac
24548 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24549 $as_echo "$ac_try_echo") >&5
24550 (eval "$ac_link") 2>conftest.er1
24551 ac_status=$?
24552 grep -v '^ *+' conftest.er1 >conftest.err
24553 rm -f conftest.er1
24554 cat conftest.err >&5
24555 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24556 (exit $ac_status); } && {
24557 test -z "$ac_c_werror_flag" ||
24558 test ! -s conftest.err
24559 } && test -s conftest$ac_exeext && {
24560 test "$cross_compiling" = yes ||
24561 $as_test_x conftest$ac_exeext
24562 }; then
24563 ac_cv_lib_readline_rl_callback_handler_install=yes
24564 else
24565 $as_echo "$as_me: failed program was:" >&5
24566 sed 's/^/| /' conftest.$ac_ext >&5
24568 ac_cv_lib_readline_rl_callback_handler_install=no
24571 rm -rf conftest.dSYM
24572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24573 conftest$ac_exeext conftest.$ac_ext
24574 LIBS=$ac_check_lib_save_LIBS
24576 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
24577 $as_echo "$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
24578 if test "x$ac_cv_lib_readline_rl_callback_handler_install" = x""yes; then
24580 cat >>confdefs.h <<\_ACEOF
24581 #define HAVE_RL_CALLBACK 1
24582 _ACEOF
24587 # check for readline 2.2
24588 cat >conftest.$ac_ext <<_ACEOF
24589 /* confdefs.h. */
24590 _ACEOF
24591 cat confdefs.h >>conftest.$ac_ext
24592 cat >>conftest.$ac_ext <<_ACEOF
24593 /* end confdefs.h. */
24594 #include <readline/readline.h>
24595 _ACEOF
24596 if { (ac_try="$ac_cpp conftest.$ac_ext"
24597 case "(($ac_try" in
24598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24599 *) ac_try_echo=$ac_try;;
24600 esac
24601 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24602 $as_echo "$ac_try_echo") >&5
24603 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24604 ac_status=$?
24605 grep -v '^ *+' conftest.er1 >conftest.err
24606 rm -f conftest.er1
24607 cat conftest.err >&5
24608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24609 (exit $ac_status); } >/dev/null && {
24610 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24611 test ! -s conftest.err
24612 }; then
24613 have_readline=yes
24614 else
24615 $as_echo "$as_me: failed program was:" >&5
24616 sed 's/^/| /' conftest.$ac_ext >&5
24618 have_readline=no
24621 rm -f conftest.err conftest.$ac_ext
24622 if test $have_readline = yes
24623 then
24624 cat >conftest.$ac_ext <<_ACEOF
24625 /* confdefs.h. */
24626 _ACEOF
24627 cat confdefs.h >>conftest.$ac_ext
24628 cat >>conftest.$ac_ext <<_ACEOF
24629 /* end confdefs.h. */
24630 #include <readline/readline.h>
24632 _ACEOF
24633 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24634 $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then
24636 cat >>confdefs.h <<\_ACEOF
24637 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
24638 _ACEOF
24641 rm -f conftest*
24645 # check for readline 4.0
24646 { $as_echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
24647 $as_echo_n "checking for rl_pre_input_hook in -lreadline... " >&6; }
24648 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
24649 $as_echo_n "(cached) " >&6
24650 else
24651 ac_check_lib_save_LIBS=$LIBS
24652 LIBS="-lreadline $READLINE_LIBS $LIBS"
24653 cat >conftest.$ac_ext <<_ACEOF
24654 /* confdefs.h. */
24655 _ACEOF
24656 cat confdefs.h >>conftest.$ac_ext
24657 cat >>conftest.$ac_ext <<_ACEOF
24658 /* end confdefs.h. */
24660 /* Override any GCC internal prototype to avoid an error.
24661 Use char because int might match the return type of a GCC
24662 builtin and then its argument prototype would still apply. */
24663 #ifdef __cplusplus
24664 extern "C"
24665 #endif
24666 char rl_pre_input_hook ();
24668 main ()
24670 return rl_pre_input_hook ();
24672 return 0;
24674 _ACEOF
24675 rm -f conftest.$ac_objext conftest$ac_exeext
24676 if { (ac_try="$ac_link"
24677 case "(($ac_try" in
24678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24679 *) ac_try_echo=$ac_try;;
24680 esac
24681 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24682 $as_echo "$ac_try_echo") >&5
24683 (eval "$ac_link") 2>conftest.er1
24684 ac_status=$?
24685 grep -v '^ *+' conftest.er1 >conftest.err
24686 rm -f conftest.er1
24687 cat conftest.err >&5
24688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24689 (exit $ac_status); } && {
24690 test -z "$ac_c_werror_flag" ||
24691 test ! -s conftest.err
24692 } && test -s conftest$ac_exeext && {
24693 test "$cross_compiling" = yes ||
24694 $as_test_x conftest$ac_exeext
24695 }; then
24696 ac_cv_lib_readline_rl_pre_input_hook=yes
24697 else
24698 $as_echo "$as_me: failed program was:" >&5
24699 sed 's/^/| /' conftest.$ac_ext >&5
24701 ac_cv_lib_readline_rl_pre_input_hook=no
24704 rm -rf conftest.dSYM
24705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24706 conftest$ac_exeext conftest.$ac_ext
24707 LIBS=$ac_check_lib_save_LIBS
24709 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
24710 $as_echo "$ac_cv_lib_readline_rl_pre_input_hook" >&6; }
24711 if test "x$ac_cv_lib_readline_rl_pre_input_hook" = x""yes; then
24713 cat >>confdefs.h <<\_ACEOF
24714 #define HAVE_RL_PRE_INPUT_HOOK 1
24715 _ACEOF
24720 # also in 4.0
24721 { $as_echo "$as_me:$LINENO: checking for rl_completion_display_matches_hook in -lreadline" >&5
24722 $as_echo_n "checking for rl_completion_display_matches_hook in -lreadline... " >&6; }
24723 if test "${ac_cv_lib_readline_rl_completion_display_matches_hook+set}" = set; then
24724 $as_echo_n "(cached) " >&6
24725 else
24726 ac_check_lib_save_LIBS=$LIBS
24727 LIBS="-lreadline $READLINE_LIBS $LIBS"
24728 cat >conftest.$ac_ext <<_ACEOF
24729 /* confdefs.h. */
24730 _ACEOF
24731 cat confdefs.h >>conftest.$ac_ext
24732 cat >>conftest.$ac_ext <<_ACEOF
24733 /* end confdefs.h. */
24735 /* Override any GCC internal prototype to avoid an error.
24736 Use char because int might match the return type of a GCC
24737 builtin and then its argument prototype would still apply. */
24738 #ifdef __cplusplus
24739 extern "C"
24740 #endif
24741 char rl_completion_display_matches_hook ();
24743 main ()
24745 return rl_completion_display_matches_hook ();
24747 return 0;
24749 _ACEOF
24750 rm -f conftest.$ac_objext conftest$ac_exeext
24751 if { (ac_try="$ac_link"
24752 case "(($ac_try" in
24753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24754 *) ac_try_echo=$ac_try;;
24755 esac
24756 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24757 $as_echo "$ac_try_echo") >&5
24758 (eval "$ac_link") 2>conftest.er1
24759 ac_status=$?
24760 grep -v '^ *+' conftest.er1 >conftest.err
24761 rm -f conftest.er1
24762 cat conftest.err >&5
24763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24764 (exit $ac_status); } && {
24765 test -z "$ac_c_werror_flag" ||
24766 test ! -s conftest.err
24767 } && test -s conftest$ac_exeext && {
24768 test "$cross_compiling" = yes ||
24769 $as_test_x conftest$ac_exeext
24770 }; then
24771 ac_cv_lib_readline_rl_completion_display_matches_hook=yes
24772 else
24773 $as_echo "$as_me: failed program was:" >&5
24774 sed 's/^/| /' conftest.$ac_ext >&5
24776 ac_cv_lib_readline_rl_completion_display_matches_hook=no
24779 rm -rf conftest.dSYM
24780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24781 conftest$ac_exeext conftest.$ac_ext
24782 LIBS=$ac_check_lib_save_LIBS
24784 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5
24785 $as_echo "$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; }
24786 if test "x$ac_cv_lib_readline_rl_completion_display_matches_hook" = x""yes; then
24788 cat >>confdefs.h <<\_ACEOF
24789 #define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1
24790 _ACEOF
24795 # check for readline 4.2
24796 { $as_echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
24797 $as_echo_n "checking for rl_completion_matches in -lreadline... " >&6; }
24798 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
24799 $as_echo_n "(cached) " >&6
24800 else
24801 ac_check_lib_save_LIBS=$LIBS
24802 LIBS="-lreadline $READLINE_LIBS $LIBS"
24803 cat >conftest.$ac_ext <<_ACEOF
24804 /* confdefs.h. */
24805 _ACEOF
24806 cat confdefs.h >>conftest.$ac_ext
24807 cat >>conftest.$ac_ext <<_ACEOF
24808 /* end confdefs.h. */
24810 /* Override any GCC internal prototype to avoid an error.
24811 Use char because int might match the return type of a GCC
24812 builtin and then its argument prototype would still apply. */
24813 #ifdef __cplusplus
24814 extern "C"
24815 #endif
24816 char rl_completion_matches ();
24818 main ()
24820 return rl_completion_matches ();
24822 return 0;
24824 _ACEOF
24825 rm -f conftest.$ac_objext conftest$ac_exeext
24826 if { (ac_try="$ac_link"
24827 case "(($ac_try" in
24828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24829 *) ac_try_echo=$ac_try;;
24830 esac
24831 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24832 $as_echo "$ac_try_echo") >&5
24833 (eval "$ac_link") 2>conftest.er1
24834 ac_status=$?
24835 grep -v '^ *+' conftest.er1 >conftest.err
24836 rm -f conftest.er1
24837 cat conftest.err >&5
24838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24839 (exit $ac_status); } && {
24840 test -z "$ac_c_werror_flag" ||
24841 test ! -s conftest.err
24842 } && test -s conftest$ac_exeext && {
24843 test "$cross_compiling" = yes ||
24844 $as_test_x conftest$ac_exeext
24845 }; then
24846 ac_cv_lib_readline_rl_completion_matches=yes
24847 else
24848 $as_echo "$as_me: failed program was:" >&5
24849 sed 's/^/| /' conftest.$ac_ext >&5
24851 ac_cv_lib_readline_rl_completion_matches=no
24854 rm -rf conftest.dSYM
24855 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24856 conftest$ac_exeext conftest.$ac_ext
24857 LIBS=$ac_check_lib_save_LIBS
24859 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
24860 $as_echo "$ac_cv_lib_readline_rl_completion_matches" >&6; }
24861 if test "x$ac_cv_lib_readline_rl_completion_matches" = x""yes; then
24863 cat >>confdefs.h <<\_ACEOF
24864 #define HAVE_RL_COMPLETION_MATCHES 1
24865 _ACEOF
24870 # also in readline 4.2
24871 cat >conftest.$ac_ext <<_ACEOF
24872 /* confdefs.h. */
24873 _ACEOF
24874 cat confdefs.h >>conftest.$ac_ext
24875 cat >>conftest.$ac_ext <<_ACEOF
24876 /* end confdefs.h. */
24877 #include <readline/readline.h>
24878 _ACEOF
24879 if { (ac_try="$ac_cpp conftest.$ac_ext"
24880 case "(($ac_try" in
24881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24882 *) ac_try_echo=$ac_try;;
24883 esac
24884 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24885 $as_echo "$ac_try_echo") >&5
24886 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24887 ac_status=$?
24888 grep -v '^ *+' conftest.er1 >conftest.err
24889 rm -f conftest.er1
24890 cat conftest.err >&5
24891 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24892 (exit $ac_status); } >/dev/null && {
24893 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24894 test ! -s conftest.err
24895 }; then
24896 have_readline=yes
24897 else
24898 $as_echo "$as_me: failed program was:" >&5
24899 sed 's/^/| /' conftest.$ac_ext >&5
24901 have_readline=no
24904 rm -f conftest.err conftest.$ac_ext
24905 if test $have_readline = yes
24906 then
24907 cat >conftest.$ac_ext <<_ACEOF
24908 /* confdefs.h. */
24909 _ACEOF
24910 cat confdefs.h >>conftest.$ac_ext
24911 cat >>conftest.$ac_ext <<_ACEOF
24912 /* end confdefs.h. */
24913 #include <readline/readline.h>
24915 _ACEOF
24916 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24917 $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then
24919 cat >>confdefs.h <<\_ACEOF
24920 #define HAVE_RL_CATCH_SIGNAL 1
24921 _ACEOF
24924 rm -f conftest*
24928 # End of readline checks: restore LIBS
24929 LIBS=$LIBS_no_readline
24931 { $as_echo "$as_me:$LINENO: checking for broken nice()" >&5
24932 $as_echo_n "checking for broken nice()... " >&6; }
24933 if test "${ac_cv_broken_nice+set}" = set; then
24934 $as_echo_n "(cached) " >&6
24935 else
24937 if test "$cross_compiling" = yes; then
24938 ac_cv_broken_nice=no
24939 else
24940 cat >conftest.$ac_ext <<_ACEOF
24941 /* confdefs.h. */
24942 _ACEOF
24943 cat confdefs.h >>conftest.$ac_ext
24944 cat >>conftest.$ac_ext <<_ACEOF
24945 /* end confdefs.h. */
24947 int main()
24949 int val1 = nice(1);
24950 if (val1 != -1 && val1 == nice(2))
24951 exit(0);
24952 exit(1);
24955 _ACEOF
24956 rm -f conftest$ac_exeext
24957 if { (ac_try="$ac_link"
24958 case "(($ac_try" in
24959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24960 *) ac_try_echo=$ac_try;;
24961 esac
24962 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24963 $as_echo "$ac_try_echo") >&5
24964 (eval "$ac_link") 2>&5
24965 ac_status=$?
24966 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24967 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24968 { (case "(($ac_try" in
24969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24970 *) ac_try_echo=$ac_try;;
24971 esac
24972 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24973 $as_echo "$ac_try_echo") >&5
24974 (eval "$ac_try") 2>&5
24975 ac_status=$?
24976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24977 (exit $ac_status); }; }; then
24978 ac_cv_broken_nice=yes
24979 else
24980 $as_echo "$as_me: program exited with status $ac_status" >&5
24981 $as_echo "$as_me: failed program was:" >&5
24982 sed 's/^/| /' conftest.$ac_ext >&5
24984 ( exit $ac_status )
24985 ac_cv_broken_nice=no
24987 rm -rf conftest.dSYM
24988 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24994 { $as_echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
24995 $as_echo "$ac_cv_broken_nice" >&6; }
24996 if test "$ac_cv_broken_nice" = yes
24997 then
24999 cat >>confdefs.h <<\_ACEOF
25000 #define HAVE_BROKEN_NICE 1
25001 _ACEOF
25005 { $as_echo "$as_me:$LINENO: checking for broken poll()" >&5
25006 $as_echo_n "checking for broken poll()... " >&6; }
25007 if test "$cross_compiling" = yes; then
25008 ac_cv_broken_poll=no
25009 else
25010 cat >conftest.$ac_ext <<_ACEOF
25011 /* confdefs.h. */
25012 _ACEOF
25013 cat confdefs.h >>conftest.$ac_ext
25014 cat >>conftest.$ac_ext <<_ACEOF
25015 /* end confdefs.h. */
25017 #include <poll.h>
25019 int main (void)
25021 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
25023 close (42);
25025 int poll_test = poll (&poll_struct, 1, 0);
25027 if (poll_test < 0)
25029 exit(0);
25031 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
25033 exit(0);
25035 else
25037 exit(1);
25041 _ACEOF
25042 rm -f conftest$ac_exeext
25043 if { (ac_try="$ac_link"
25044 case "(($ac_try" in
25045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25046 *) ac_try_echo=$ac_try;;
25047 esac
25048 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25049 $as_echo "$ac_try_echo") >&5
25050 (eval "$ac_link") 2>&5
25051 ac_status=$?
25052 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25053 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25054 { (case "(($ac_try" in
25055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25056 *) ac_try_echo=$ac_try;;
25057 esac
25058 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25059 $as_echo "$ac_try_echo") >&5
25060 (eval "$ac_try") 2>&5
25061 ac_status=$?
25062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25063 (exit $ac_status); }; }; then
25064 ac_cv_broken_poll=yes
25065 else
25066 $as_echo "$as_me: program exited with status $ac_status" >&5
25067 $as_echo "$as_me: failed program was:" >&5
25068 sed 's/^/| /' conftest.$ac_ext >&5
25070 ( exit $ac_status )
25071 ac_cv_broken_poll=no
25073 rm -rf conftest.dSYM
25074 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25078 { $as_echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
25079 $as_echo "$ac_cv_broken_poll" >&6; }
25080 if test "$ac_cv_broken_poll" = yes
25081 then
25083 cat >>confdefs.h <<\_ACEOF
25084 #define HAVE_BROKEN_POLL 1
25085 _ACEOF
25089 # Before we can test tzset, we need to check if struct tm has a tm_zone
25090 # (which is not required by ISO C or UNIX spec) and/or if we support
25091 # tzname[]
25092 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
25093 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
25094 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
25095 $as_echo_n "(cached) " >&6
25096 else
25097 cat >conftest.$ac_ext <<_ACEOF
25098 /* confdefs.h. */
25099 _ACEOF
25100 cat confdefs.h >>conftest.$ac_ext
25101 cat >>conftest.$ac_ext <<_ACEOF
25102 /* end confdefs.h. */
25103 #include <sys/types.h>
25104 #include <$ac_cv_struct_tm>
25108 main ()
25110 static struct tm ac_aggr;
25111 if (ac_aggr.tm_zone)
25112 return 0;
25114 return 0;
25116 _ACEOF
25117 rm -f conftest.$ac_objext
25118 if { (ac_try="$ac_compile"
25119 case "(($ac_try" in
25120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25121 *) ac_try_echo=$ac_try;;
25122 esac
25123 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25124 $as_echo "$ac_try_echo") >&5
25125 (eval "$ac_compile") 2>conftest.er1
25126 ac_status=$?
25127 grep -v '^ *+' conftest.er1 >conftest.err
25128 rm -f conftest.er1
25129 cat conftest.err >&5
25130 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25131 (exit $ac_status); } && {
25132 test -z "$ac_c_werror_flag" ||
25133 test ! -s conftest.err
25134 } && test -s conftest.$ac_objext; then
25135 ac_cv_member_struct_tm_tm_zone=yes
25136 else
25137 $as_echo "$as_me: failed program was:" >&5
25138 sed 's/^/| /' conftest.$ac_ext >&5
25140 cat >conftest.$ac_ext <<_ACEOF
25141 /* confdefs.h. */
25142 _ACEOF
25143 cat confdefs.h >>conftest.$ac_ext
25144 cat >>conftest.$ac_ext <<_ACEOF
25145 /* end confdefs.h. */
25146 #include <sys/types.h>
25147 #include <$ac_cv_struct_tm>
25151 main ()
25153 static struct tm ac_aggr;
25154 if (sizeof ac_aggr.tm_zone)
25155 return 0;
25157 return 0;
25159 _ACEOF
25160 rm -f conftest.$ac_objext
25161 if { (ac_try="$ac_compile"
25162 case "(($ac_try" in
25163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25164 *) ac_try_echo=$ac_try;;
25165 esac
25166 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25167 $as_echo "$ac_try_echo") >&5
25168 (eval "$ac_compile") 2>conftest.er1
25169 ac_status=$?
25170 grep -v '^ *+' conftest.er1 >conftest.err
25171 rm -f conftest.er1
25172 cat conftest.err >&5
25173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25174 (exit $ac_status); } && {
25175 test -z "$ac_c_werror_flag" ||
25176 test ! -s conftest.err
25177 } && test -s conftest.$ac_objext; then
25178 ac_cv_member_struct_tm_tm_zone=yes
25179 else
25180 $as_echo "$as_me: failed program was:" >&5
25181 sed 's/^/| /' conftest.$ac_ext >&5
25183 ac_cv_member_struct_tm_tm_zone=no
25186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25191 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
25192 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
25193 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then
25195 cat >>confdefs.h <<_ACEOF
25196 #define HAVE_STRUCT_TM_TM_ZONE 1
25197 _ACEOF
25202 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
25204 cat >>confdefs.h <<\_ACEOF
25205 #define HAVE_TM_ZONE 1
25206 _ACEOF
25208 else
25209 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
25210 $as_echo_n "checking whether tzname is declared... " >&6; }
25211 if test "${ac_cv_have_decl_tzname+set}" = set; then
25212 $as_echo_n "(cached) " >&6
25213 else
25214 cat >conftest.$ac_ext <<_ACEOF
25215 /* confdefs.h. */
25216 _ACEOF
25217 cat confdefs.h >>conftest.$ac_ext
25218 cat >>conftest.$ac_ext <<_ACEOF
25219 /* end confdefs.h. */
25220 #include <time.h>
25223 main ()
25225 #ifndef tzname
25226 (void) tzname;
25227 #endif
25230 return 0;
25232 _ACEOF
25233 rm -f conftest.$ac_objext
25234 if { (ac_try="$ac_compile"
25235 case "(($ac_try" in
25236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25237 *) ac_try_echo=$ac_try;;
25238 esac
25239 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25240 $as_echo "$ac_try_echo") >&5
25241 (eval "$ac_compile") 2>conftest.er1
25242 ac_status=$?
25243 grep -v '^ *+' conftest.er1 >conftest.err
25244 rm -f conftest.er1
25245 cat conftest.err >&5
25246 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25247 (exit $ac_status); } && {
25248 test -z "$ac_c_werror_flag" ||
25249 test ! -s conftest.err
25250 } && test -s conftest.$ac_objext; then
25251 ac_cv_have_decl_tzname=yes
25252 else
25253 $as_echo "$as_me: failed program was:" >&5
25254 sed 's/^/| /' conftest.$ac_ext >&5
25256 ac_cv_have_decl_tzname=no
25259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25261 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
25262 $as_echo "$ac_cv_have_decl_tzname" >&6; }
25263 if test "x$ac_cv_have_decl_tzname" = x""yes; then
25265 cat >>confdefs.h <<_ACEOF
25266 #define HAVE_DECL_TZNAME 1
25267 _ACEOF
25270 else
25271 cat >>confdefs.h <<_ACEOF
25272 #define HAVE_DECL_TZNAME 0
25273 _ACEOF
25279 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
25280 $as_echo_n "checking for tzname... " >&6; }
25281 if test "${ac_cv_var_tzname+set}" = set; then
25282 $as_echo_n "(cached) " >&6
25283 else
25284 cat >conftest.$ac_ext <<_ACEOF
25285 /* confdefs.h. */
25286 _ACEOF
25287 cat confdefs.h >>conftest.$ac_ext
25288 cat >>conftest.$ac_ext <<_ACEOF
25289 /* end confdefs.h. */
25290 #include <time.h>
25291 #if !HAVE_DECL_TZNAME
25292 extern char *tzname[];
25293 #endif
25296 main ()
25298 return tzname[0][0];
25300 return 0;
25302 _ACEOF
25303 rm -f conftest.$ac_objext conftest$ac_exeext
25304 if { (ac_try="$ac_link"
25305 case "(($ac_try" in
25306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25307 *) ac_try_echo=$ac_try;;
25308 esac
25309 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25310 $as_echo "$ac_try_echo") >&5
25311 (eval "$ac_link") 2>conftest.er1
25312 ac_status=$?
25313 grep -v '^ *+' conftest.er1 >conftest.err
25314 rm -f conftest.er1
25315 cat conftest.err >&5
25316 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25317 (exit $ac_status); } && {
25318 test -z "$ac_c_werror_flag" ||
25319 test ! -s conftest.err
25320 } && test -s conftest$ac_exeext && {
25321 test "$cross_compiling" = yes ||
25322 $as_test_x conftest$ac_exeext
25323 }; then
25324 ac_cv_var_tzname=yes
25325 else
25326 $as_echo "$as_me: failed program was:" >&5
25327 sed 's/^/| /' conftest.$ac_ext >&5
25329 ac_cv_var_tzname=no
25332 rm -rf conftest.dSYM
25333 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25334 conftest$ac_exeext conftest.$ac_ext
25336 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
25337 $as_echo "$ac_cv_var_tzname" >&6; }
25338 if test $ac_cv_var_tzname = yes; then
25340 cat >>confdefs.h <<\_ACEOF
25341 #define HAVE_TZNAME 1
25342 _ACEOF
25348 # check tzset(3) exists and works like we expect it to
25349 { $as_echo "$as_me:$LINENO: checking for working tzset()" >&5
25350 $as_echo_n "checking for working tzset()... " >&6; }
25351 if test "${ac_cv_working_tzset+set}" = set; then
25352 $as_echo_n "(cached) " >&6
25353 else
25355 if test "$cross_compiling" = yes; then
25356 ac_cv_working_tzset=no
25357 else
25358 cat >conftest.$ac_ext <<_ACEOF
25359 /* confdefs.h. */
25360 _ACEOF
25361 cat confdefs.h >>conftest.$ac_ext
25362 cat >>conftest.$ac_ext <<_ACEOF
25363 /* end confdefs.h. */
25365 #include <stdlib.h>
25366 #include <time.h>
25367 #include <string.h>
25369 #if HAVE_TZNAME
25370 extern char *tzname[];
25371 #endif
25373 int main()
25375 /* Note that we need to ensure that not only does tzset(3)
25376 do 'something' with localtime, but it works as documented
25377 in the library reference and as expected by the test suite.
25378 This includes making sure that tzname is set properly if
25379 tm->tm_zone does not exist since it is the alternative way
25380 of getting timezone info.
25382 Red Hat 6.2 doesn't understand the southern hemisphere
25383 after New Year's Day.
25386 time_t groundhogday = 1044144000; /* GMT-based */
25387 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
25389 putenv("TZ=UTC+0");
25390 tzset();
25391 if (localtime(&groundhogday)->tm_hour != 0)
25392 exit(1);
25393 #if HAVE_TZNAME
25394 /* For UTC, tzname[1] is sometimes "", sometimes " " */
25395 if (strcmp(tzname[0], "UTC") ||
25396 (tzname[1][0] != 0 && tzname[1][0] != ' '))
25397 exit(1);
25398 #endif
25400 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
25401 tzset();
25402 if (localtime(&groundhogday)->tm_hour != 19)
25403 exit(1);
25404 #if HAVE_TZNAME
25405 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
25406 exit(1);
25407 #endif
25409 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
25410 tzset();
25411 if (localtime(&groundhogday)->tm_hour != 11)
25412 exit(1);
25413 #if HAVE_TZNAME
25414 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
25415 exit(1);
25416 #endif
25418 #if HAVE_STRUCT_TM_TM_ZONE
25419 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
25420 exit(1);
25421 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
25422 exit(1);
25423 #endif
25425 exit(0);
25428 _ACEOF
25429 rm -f conftest$ac_exeext
25430 if { (ac_try="$ac_link"
25431 case "(($ac_try" in
25432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25433 *) ac_try_echo=$ac_try;;
25434 esac
25435 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25436 $as_echo "$ac_try_echo") >&5
25437 (eval "$ac_link") 2>&5
25438 ac_status=$?
25439 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25440 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25441 { (case "(($ac_try" in
25442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25443 *) ac_try_echo=$ac_try;;
25444 esac
25445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25446 $as_echo "$ac_try_echo") >&5
25447 (eval "$ac_try") 2>&5
25448 ac_status=$?
25449 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25450 (exit $ac_status); }; }; then
25451 ac_cv_working_tzset=yes
25452 else
25453 $as_echo "$as_me: program exited with status $ac_status" >&5
25454 $as_echo "$as_me: failed program was:" >&5
25455 sed 's/^/| /' conftest.$ac_ext >&5
25457 ( exit $ac_status )
25458 ac_cv_working_tzset=no
25460 rm -rf conftest.dSYM
25461 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25467 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
25468 $as_echo "$ac_cv_working_tzset" >&6; }
25469 if test "$ac_cv_working_tzset" = yes
25470 then
25472 cat >>confdefs.h <<\_ACEOF
25473 #define HAVE_WORKING_TZSET 1
25474 _ACEOF
25478 # Look for subsecond timestamps in struct stat
25479 { $as_echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
25480 $as_echo_n "checking for tv_nsec in struct stat... " >&6; }
25481 if test "${ac_cv_stat_tv_nsec+set}" = set; then
25482 $as_echo_n "(cached) " >&6
25483 else
25484 cat >conftest.$ac_ext <<_ACEOF
25485 /* confdefs.h. */
25486 _ACEOF
25487 cat confdefs.h >>conftest.$ac_ext
25488 cat >>conftest.$ac_ext <<_ACEOF
25489 /* end confdefs.h. */
25490 #include <sys/stat.h>
25492 main ()
25495 struct stat st;
25496 st.st_mtim.tv_nsec = 1;
25499 return 0;
25501 _ACEOF
25502 rm -f conftest.$ac_objext
25503 if { (ac_try="$ac_compile"
25504 case "(($ac_try" in
25505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25506 *) ac_try_echo=$ac_try;;
25507 esac
25508 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25509 $as_echo "$ac_try_echo") >&5
25510 (eval "$ac_compile") 2>conftest.er1
25511 ac_status=$?
25512 grep -v '^ *+' conftest.er1 >conftest.err
25513 rm -f conftest.er1
25514 cat conftest.err >&5
25515 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25516 (exit $ac_status); } && {
25517 test -z "$ac_c_werror_flag" ||
25518 test ! -s conftest.err
25519 } && test -s conftest.$ac_objext; then
25520 ac_cv_stat_tv_nsec=yes
25521 else
25522 $as_echo "$as_me: failed program was:" >&5
25523 sed 's/^/| /' conftest.$ac_ext >&5
25525 ac_cv_stat_tv_nsec=no
25528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25531 { $as_echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
25532 $as_echo "$ac_cv_stat_tv_nsec" >&6; }
25533 if test "$ac_cv_stat_tv_nsec" = yes
25534 then
25536 cat >>confdefs.h <<\_ACEOF
25537 #define HAVE_STAT_TV_NSEC 1
25538 _ACEOF
25542 # Look for BSD style subsecond timestamps in struct stat
25543 { $as_echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
25544 $as_echo_n "checking for tv_nsec2 in struct stat... " >&6; }
25545 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
25546 $as_echo_n "(cached) " >&6
25547 else
25548 cat >conftest.$ac_ext <<_ACEOF
25549 /* confdefs.h. */
25550 _ACEOF
25551 cat confdefs.h >>conftest.$ac_ext
25552 cat >>conftest.$ac_ext <<_ACEOF
25553 /* end confdefs.h. */
25554 #include <sys/stat.h>
25556 main ()
25559 struct stat st;
25560 st.st_mtimespec.tv_nsec = 1;
25563 return 0;
25565 _ACEOF
25566 rm -f conftest.$ac_objext
25567 if { (ac_try="$ac_compile"
25568 case "(($ac_try" in
25569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25570 *) ac_try_echo=$ac_try;;
25571 esac
25572 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25573 $as_echo "$ac_try_echo") >&5
25574 (eval "$ac_compile") 2>conftest.er1
25575 ac_status=$?
25576 grep -v '^ *+' conftest.er1 >conftest.err
25577 rm -f conftest.er1
25578 cat conftest.err >&5
25579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25580 (exit $ac_status); } && {
25581 test -z "$ac_c_werror_flag" ||
25582 test ! -s conftest.err
25583 } && test -s conftest.$ac_objext; then
25584 ac_cv_stat_tv_nsec2=yes
25585 else
25586 $as_echo "$as_me: failed program was:" >&5
25587 sed 's/^/| /' conftest.$ac_ext >&5
25589 ac_cv_stat_tv_nsec2=no
25592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25595 { $as_echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
25596 $as_echo "$ac_cv_stat_tv_nsec2" >&6; }
25597 if test "$ac_cv_stat_tv_nsec2" = yes
25598 then
25600 cat >>confdefs.h <<\_ACEOF
25601 #define HAVE_STAT_TV_NSEC2 1
25602 _ACEOF
25606 # On HP/UX 11.0, mvwdelch is a block with a return statement
25607 { $as_echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
25608 $as_echo_n "checking whether mvwdelch is an expression... " >&6; }
25609 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
25610 $as_echo_n "(cached) " >&6
25611 else
25612 cat >conftest.$ac_ext <<_ACEOF
25613 /* confdefs.h. */
25614 _ACEOF
25615 cat confdefs.h >>conftest.$ac_ext
25616 cat >>conftest.$ac_ext <<_ACEOF
25617 /* end confdefs.h. */
25618 #include <curses.h>
25620 main ()
25623 int rtn;
25624 rtn = mvwdelch(0,0,0);
25627 return 0;
25629 _ACEOF
25630 rm -f conftest.$ac_objext
25631 if { (ac_try="$ac_compile"
25632 case "(($ac_try" in
25633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25634 *) ac_try_echo=$ac_try;;
25635 esac
25636 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25637 $as_echo "$ac_try_echo") >&5
25638 (eval "$ac_compile") 2>conftest.er1
25639 ac_status=$?
25640 grep -v '^ *+' conftest.er1 >conftest.err
25641 rm -f conftest.er1
25642 cat conftest.err >&5
25643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25644 (exit $ac_status); } && {
25645 test -z "$ac_c_werror_flag" ||
25646 test ! -s conftest.err
25647 } && test -s conftest.$ac_objext; then
25648 ac_cv_mvwdelch_is_expression=yes
25649 else
25650 $as_echo "$as_me: failed program was:" >&5
25651 sed 's/^/| /' conftest.$ac_ext >&5
25653 ac_cv_mvwdelch_is_expression=no
25656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25659 { $as_echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
25660 $as_echo "$ac_cv_mvwdelch_is_expression" >&6; }
25662 if test "$ac_cv_mvwdelch_is_expression" = yes
25663 then
25665 cat >>confdefs.h <<\_ACEOF
25666 #define MVWDELCH_IS_EXPRESSION 1
25667 _ACEOF
25671 { $as_echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
25672 $as_echo_n "checking whether WINDOW has _flags... " >&6; }
25673 if test "${ac_cv_window_has_flags+set}" = set; then
25674 $as_echo_n "(cached) " >&6
25675 else
25676 cat >conftest.$ac_ext <<_ACEOF
25677 /* confdefs.h. */
25678 _ACEOF
25679 cat confdefs.h >>conftest.$ac_ext
25680 cat >>conftest.$ac_ext <<_ACEOF
25681 /* end confdefs.h. */
25682 #include <curses.h>
25684 main ()
25687 WINDOW *w;
25688 w->_flags = 0;
25691 return 0;
25693 _ACEOF
25694 rm -f conftest.$ac_objext
25695 if { (ac_try="$ac_compile"
25696 case "(($ac_try" in
25697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25698 *) ac_try_echo=$ac_try;;
25699 esac
25700 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25701 $as_echo "$ac_try_echo") >&5
25702 (eval "$ac_compile") 2>conftest.er1
25703 ac_status=$?
25704 grep -v '^ *+' conftest.er1 >conftest.err
25705 rm -f conftest.er1
25706 cat conftest.err >&5
25707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25708 (exit $ac_status); } && {
25709 test -z "$ac_c_werror_flag" ||
25710 test ! -s conftest.err
25711 } && test -s conftest.$ac_objext; then
25712 ac_cv_window_has_flags=yes
25713 else
25714 $as_echo "$as_me: failed program was:" >&5
25715 sed 's/^/| /' conftest.$ac_ext >&5
25717 ac_cv_window_has_flags=no
25720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25723 { $as_echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
25724 $as_echo "$ac_cv_window_has_flags" >&6; }
25727 if test "$ac_cv_window_has_flags" = yes
25728 then
25730 cat >>confdefs.h <<\_ACEOF
25731 #define WINDOW_HAS_FLAGS 1
25732 _ACEOF
25736 { $as_echo "$as_me:$LINENO: checking for is_term_resized" >&5
25737 $as_echo_n "checking for is_term_resized... " >&6; }
25738 cat >conftest.$ac_ext <<_ACEOF
25739 /* confdefs.h. */
25740 _ACEOF
25741 cat confdefs.h >>conftest.$ac_ext
25742 cat >>conftest.$ac_ext <<_ACEOF
25743 /* end confdefs.h. */
25744 #include <curses.h>
25746 main ()
25748 void *x=is_term_resized
25750 return 0;
25752 _ACEOF
25753 rm -f conftest.$ac_objext
25754 if { (ac_try="$ac_compile"
25755 case "(($ac_try" in
25756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25757 *) ac_try_echo=$ac_try;;
25758 esac
25759 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25760 $as_echo "$ac_try_echo") >&5
25761 (eval "$ac_compile") 2>conftest.er1
25762 ac_status=$?
25763 grep -v '^ *+' conftest.er1 >conftest.err
25764 rm -f conftest.er1
25765 cat conftest.err >&5
25766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25767 (exit $ac_status); } && {
25768 test -z "$ac_c_werror_flag" ||
25769 test ! -s conftest.err
25770 } && test -s conftest.$ac_objext; then
25772 cat >>confdefs.h <<\_ACEOF
25773 #define HAVE_CURSES_IS_TERM_RESIZED 1
25774 _ACEOF
25776 { $as_echo "$as_me:$LINENO: result: yes" >&5
25777 $as_echo "yes" >&6; }
25778 else
25779 $as_echo "$as_me: failed program was:" >&5
25780 sed 's/^/| /' conftest.$ac_ext >&5
25782 { $as_echo "$as_me:$LINENO: result: no" >&5
25783 $as_echo "no" >&6; }
25787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25789 { $as_echo "$as_me:$LINENO: checking for resize_term" >&5
25790 $as_echo_n "checking for resize_term... " >&6; }
25791 cat >conftest.$ac_ext <<_ACEOF
25792 /* confdefs.h. */
25793 _ACEOF
25794 cat confdefs.h >>conftest.$ac_ext
25795 cat >>conftest.$ac_ext <<_ACEOF
25796 /* end confdefs.h. */
25797 #include <curses.h>
25799 main ()
25801 void *x=resize_term
25803 return 0;
25805 _ACEOF
25806 rm -f conftest.$ac_objext
25807 if { (ac_try="$ac_compile"
25808 case "(($ac_try" in
25809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25810 *) ac_try_echo=$ac_try;;
25811 esac
25812 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25813 $as_echo "$ac_try_echo") >&5
25814 (eval "$ac_compile") 2>conftest.er1
25815 ac_status=$?
25816 grep -v '^ *+' conftest.er1 >conftest.err
25817 rm -f conftest.er1
25818 cat conftest.err >&5
25819 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25820 (exit $ac_status); } && {
25821 test -z "$ac_c_werror_flag" ||
25822 test ! -s conftest.err
25823 } && test -s conftest.$ac_objext; then
25825 cat >>confdefs.h <<\_ACEOF
25826 #define HAVE_CURSES_RESIZE_TERM 1
25827 _ACEOF
25829 { $as_echo "$as_me:$LINENO: result: yes" >&5
25830 $as_echo "yes" >&6; }
25831 else
25832 $as_echo "$as_me: failed program was:" >&5
25833 sed 's/^/| /' conftest.$ac_ext >&5
25835 { $as_echo "$as_me:$LINENO: result: no" >&5
25836 $as_echo "no" >&6; }
25840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25842 { $as_echo "$as_me:$LINENO: checking for resizeterm" >&5
25843 $as_echo_n "checking for resizeterm... " >&6; }
25844 cat >conftest.$ac_ext <<_ACEOF
25845 /* confdefs.h. */
25846 _ACEOF
25847 cat confdefs.h >>conftest.$ac_ext
25848 cat >>conftest.$ac_ext <<_ACEOF
25849 /* end confdefs.h. */
25850 #include <curses.h>
25852 main ()
25854 void *x=resizeterm
25856 return 0;
25858 _ACEOF
25859 rm -f conftest.$ac_objext
25860 if { (ac_try="$ac_compile"
25861 case "(($ac_try" in
25862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25863 *) ac_try_echo=$ac_try;;
25864 esac
25865 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25866 $as_echo "$ac_try_echo") >&5
25867 (eval "$ac_compile") 2>conftest.er1
25868 ac_status=$?
25869 grep -v '^ *+' conftest.er1 >conftest.err
25870 rm -f conftest.er1
25871 cat conftest.err >&5
25872 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25873 (exit $ac_status); } && {
25874 test -z "$ac_c_werror_flag" ||
25875 test ! -s conftest.err
25876 } && test -s conftest.$ac_objext; then
25878 cat >>confdefs.h <<\_ACEOF
25879 #define HAVE_CURSES_RESIZETERM 1
25880 _ACEOF
25882 { $as_echo "$as_me:$LINENO: result: yes" >&5
25883 $as_echo "yes" >&6; }
25884 else
25885 $as_echo "$as_me: failed program was:" >&5
25886 sed 's/^/| /' conftest.$ac_ext >&5
25888 { $as_echo "$as_me:$LINENO: result: no" >&5
25889 $as_echo "no" >&6; }
25893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25895 { $as_echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
25896 $as_echo_n "checking for /dev/ptmx... " >&6; }
25898 if test -r /dev/ptmx
25899 then
25900 { $as_echo "$as_me:$LINENO: result: yes" >&5
25901 $as_echo "yes" >&6; }
25903 cat >>confdefs.h <<\_ACEOF
25904 #define HAVE_DEV_PTMX 1
25905 _ACEOF
25907 else
25908 { $as_echo "$as_me:$LINENO: result: no" >&5
25909 $as_echo "no" >&6; }
25912 { $as_echo "$as_me:$LINENO: checking for /dev/ptc" >&5
25913 $as_echo_n "checking for /dev/ptc... " >&6; }
25915 if test -r /dev/ptc
25916 then
25917 { $as_echo "$as_me:$LINENO: result: yes" >&5
25918 $as_echo "yes" >&6; }
25920 cat >>confdefs.h <<\_ACEOF
25921 #define HAVE_DEV_PTC 1
25922 _ACEOF
25924 else
25925 { $as_echo "$as_me:$LINENO: result: no" >&5
25926 $as_echo "no" >&6; }
25929 { $as_echo "$as_me:$LINENO: checking for %zd printf() format support" >&5
25930 $as_echo_n "checking for %zd printf() format support... " >&6; }
25931 if test "$cross_compiling" = yes; then
25932 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25933 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25934 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25935 See \`config.log' for more details." >&5
25936 $as_echo "$as_me: error: cannot run test program while cross compiling
25937 See \`config.log' for more details." >&2;}
25938 { (exit 1); exit 1; }; }; }
25939 else
25940 cat >conftest.$ac_ext <<_ACEOF
25941 /* confdefs.h. */
25942 _ACEOF
25943 cat confdefs.h >>conftest.$ac_ext
25944 cat >>conftest.$ac_ext <<_ACEOF
25945 /* end confdefs.h. */
25946 #include <stdio.h>
25947 #include <stddef.h>
25948 #include <string.h>
25950 #ifdef HAVE_SYS_TYPES_H
25951 #include <sys/types.h>
25952 #endif
25954 #ifdef HAVE_SSIZE_T
25955 typedef ssize_t Py_ssize_t;
25956 #elif SIZEOF_VOID_P == SIZEOF_LONG
25957 typedef long Py_ssize_t;
25958 #else
25959 typedef int Py_ssize_t;
25960 #endif
25962 int main()
25964 char buffer[256];
25966 if(sprintf(buffer, "%zd", (size_t)123) < 0)
25967 return 1;
25969 if (strcmp(buffer, "123"))
25970 return 1;
25972 if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
25973 return 1;
25975 if (strcmp(buffer, "-123"))
25976 return 1;
25978 return 0;
25980 _ACEOF
25981 rm -f conftest$ac_exeext
25982 if { (ac_try="$ac_link"
25983 case "(($ac_try" in
25984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25985 *) ac_try_echo=$ac_try;;
25986 esac
25987 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25988 $as_echo "$ac_try_echo") >&5
25989 (eval "$ac_link") 2>&5
25990 ac_status=$?
25991 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25992 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25993 { (case "(($ac_try" in
25994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25995 *) ac_try_echo=$ac_try;;
25996 esac
25997 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25998 $as_echo "$ac_try_echo") >&5
25999 (eval "$ac_try") 2>&5
26000 ac_status=$?
26001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26002 (exit $ac_status); }; }; then
26003 { $as_echo "$as_me:$LINENO: result: yes" >&5
26004 $as_echo "yes" >&6; }
26006 cat >>confdefs.h <<\_ACEOF
26007 #define PY_FORMAT_SIZE_T "z"
26008 _ACEOF
26010 else
26011 $as_echo "$as_me: program exited with status $ac_status" >&5
26012 $as_echo "$as_me: failed program was:" >&5
26013 sed 's/^/| /' conftest.$ac_ext >&5
26015 ( exit $ac_status )
26016 { $as_echo "$as_me:$LINENO: result: no" >&5
26017 $as_echo "no" >&6; }
26019 rm -rf conftest.dSYM
26020 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26025 { $as_echo "$as_me:$LINENO: checking for socklen_t" >&5
26026 $as_echo_n "checking for socklen_t... " >&6; }
26027 if test "${ac_cv_type_socklen_t+set}" = set; then
26028 $as_echo_n "(cached) " >&6
26029 else
26030 ac_cv_type_socklen_t=no
26031 cat >conftest.$ac_ext <<_ACEOF
26032 /* confdefs.h. */
26033 _ACEOF
26034 cat confdefs.h >>conftest.$ac_ext
26035 cat >>conftest.$ac_ext <<_ACEOF
26036 /* end confdefs.h. */
26038 #ifdef HAVE_SYS_TYPES_H
26039 #include <sys/types.h>
26040 #endif
26041 #ifdef HAVE_SYS_SOCKET_H
26042 #include <sys/socket.h>
26043 #endif
26047 main ()
26049 if (sizeof (socklen_t))
26050 return 0;
26052 return 0;
26054 _ACEOF
26055 rm -f conftest.$ac_objext
26056 if { (ac_try="$ac_compile"
26057 case "(($ac_try" in
26058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26059 *) ac_try_echo=$ac_try;;
26060 esac
26061 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26062 $as_echo "$ac_try_echo") >&5
26063 (eval "$ac_compile") 2>conftest.er1
26064 ac_status=$?
26065 grep -v '^ *+' conftest.er1 >conftest.err
26066 rm -f conftest.er1
26067 cat conftest.err >&5
26068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26069 (exit $ac_status); } && {
26070 test -z "$ac_c_werror_flag" ||
26071 test ! -s conftest.err
26072 } && test -s conftest.$ac_objext; then
26073 cat >conftest.$ac_ext <<_ACEOF
26074 /* confdefs.h. */
26075 _ACEOF
26076 cat confdefs.h >>conftest.$ac_ext
26077 cat >>conftest.$ac_ext <<_ACEOF
26078 /* end confdefs.h. */
26080 #ifdef HAVE_SYS_TYPES_H
26081 #include <sys/types.h>
26082 #endif
26083 #ifdef HAVE_SYS_SOCKET_H
26084 #include <sys/socket.h>
26085 #endif
26089 main ()
26091 if (sizeof ((socklen_t)))
26092 return 0;
26094 return 0;
26096 _ACEOF
26097 rm -f conftest.$ac_objext
26098 if { (ac_try="$ac_compile"
26099 case "(($ac_try" in
26100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26101 *) ac_try_echo=$ac_try;;
26102 esac
26103 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26104 $as_echo "$ac_try_echo") >&5
26105 (eval "$ac_compile") 2>conftest.er1
26106 ac_status=$?
26107 grep -v '^ *+' conftest.er1 >conftest.err
26108 rm -f conftest.er1
26109 cat conftest.err >&5
26110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26111 (exit $ac_status); } && {
26112 test -z "$ac_c_werror_flag" ||
26113 test ! -s conftest.err
26114 } && test -s conftest.$ac_objext; then
26116 else
26117 $as_echo "$as_me: failed program was:" >&5
26118 sed 's/^/| /' conftest.$ac_ext >&5
26120 ac_cv_type_socklen_t=yes
26123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26124 else
26125 $as_echo "$as_me: failed program was:" >&5
26126 sed 's/^/| /' conftest.$ac_ext >&5
26131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26133 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
26134 $as_echo "$ac_cv_type_socklen_t" >&6; }
26135 if test "x$ac_cv_type_socklen_t" = x""yes; then
26137 else
26139 cat >>confdefs.h <<\_ACEOF
26140 #define socklen_t int
26141 _ACEOF
26148 for h in `(cd $srcdir;echo Python/thread_*.h)`
26150 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
26151 done
26154 SRCDIRS="Parser Grammar Objects Python Modules Mac"
26155 { $as_echo "$as_me:$LINENO: checking for build directories" >&5
26156 $as_echo_n "checking for build directories... " >&6; }
26157 for dir in $SRCDIRS; do
26158 if test ! -d $dir; then
26159 mkdir $dir
26161 done
26162 { $as_echo "$as_me:$LINENO: result: done" >&5
26163 $as_echo "done" >&6; }
26165 # generate output files
26166 ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config Misc/python.pc"
26168 cat >confcache <<\_ACEOF
26169 # This file is a shell script that caches the results of configure
26170 # tests run on this system so they can be shared between configure
26171 # scripts and configure runs, see configure's option --config-cache.
26172 # It is not useful on other systems. If it contains results you don't
26173 # want to keep, you may remove or edit it.
26175 # config.status only pays attention to the cache file if you give it
26176 # the --recheck option to rerun configure.
26178 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26179 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26180 # following values.
26182 _ACEOF
26184 # The following way of writing the cache mishandles newlines in values,
26185 # but we know of no workaround that is simple, portable, and efficient.
26186 # So, we kill variables containing newlines.
26187 # Ultrix sh set writes to stderr and can't be redirected directly,
26188 # and sets the high bit in the cache file unless we assign to the vars.
26190 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26191 eval ac_val=\$$ac_var
26192 case $ac_val in #(
26193 *${as_nl}*)
26194 case $ac_var in #(
26195 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
26196 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26197 esac
26198 case $ac_var in #(
26199 _ | IFS | as_nl) ;; #(
26200 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26201 *) $as_unset $ac_var ;;
26202 esac ;;
26203 esac
26204 done
26206 (set) 2>&1 |
26207 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26208 *${as_nl}ac_space=\ *)
26209 # `set' does not quote correctly, so add quotes (double-quote
26210 # substitution turns \\\\ into \\, and sed turns \\ into \).
26211 sed -n \
26212 "s/'/'\\\\''/g;
26213 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26214 ;; #(
26216 # `set' quotes correctly as required by POSIX, so do not add quotes.
26217 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26219 esac |
26220 sort
26222 sed '
26223 /^ac_cv_env_/b end
26224 t clear
26225 :clear
26226 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26227 t end
26228 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26229 :end' >>confcache
26230 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26231 if test -w "$cache_file"; then
26232 test "x$cache_file" != "x/dev/null" &&
26233 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
26234 $as_echo "$as_me: updating cache $cache_file" >&6;}
26235 cat confcache >$cache_file
26236 else
26237 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26238 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26241 rm -f confcache
26243 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26244 # Let make expand exec_prefix.
26245 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26247 DEFS=-DHAVE_CONFIG_H
26249 ac_libobjs=
26250 ac_ltlibobjs=
26251 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26252 # 1. Remove the extension, and $U if already installed.
26253 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26254 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26255 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26256 # will be set to the directory where LIBOBJS objects are built.
26257 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26258 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26259 done
26260 LIBOBJS=$ac_libobjs
26262 LTLIBOBJS=$ac_ltlibobjs
26267 : ${CONFIG_STATUS=./config.status}
26268 ac_write_fail=0
26269 ac_clean_files_save=$ac_clean_files
26270 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26271 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26272 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26273 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26274 #! $SHELL
26275 # Generated by $as_me.
26276 # Run this file to recreate the current configuration.
26277 # Compiler output produced by configure, useful for debugging
26278 # configure, is in config.log if it exists.
26280 debug=false
26281 ac_cs_recheck=false
26282 ac_cs_silent=false
26283 SHELL=\${CONFIG_SHELL-$SHELL}
26284 _ACEOF
26286 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26287 ## --------------------- ##
26288 ## M4sh Initialization. ##
26289 ## --------------------- ##
26291 # Be more Bourne compatible
26292 DUALCASE=1; export DUALCASE # for MKS sh
26293 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26294 emulate sh
26295 NULLCMD=:
26296 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26297 # is contrary to our usage. Disable this feature.
26298 alias -g '${1+"$@"}'='"$@"'
26299 setopt NO_GLOB_SUBST
26300 else
26301 case `(set -o) 2>/dev/null` in
26302 *posix*) set -o posix ;;
26303 esac
26310 # PATH needs CR
26311 # Avoid depending upon Character Ranges.
26312 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26313 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26314 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26315 as_cr_digits='0123456789'
26316 as_cr_alnum=$as_cr_Letters$as_cr_digits
26318 as_nl='
26320 export as_nl
26321 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26322 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26323 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26324 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26325 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26326 as_echo='printf %s\n'
26327 as_echo_n='printf %s'
26328 else
26329 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26330 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26331 as_echo_n='/usr/ucb/echo -n'
26332 else
26333 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26334 as_echo_n_body='eval
26335 arg=$1;
26336 case $arg in
26337 *"$as_nl"*)
26338 expr "X$arg" : "X\\(.*\\)$as_nl";
26339 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26340 esac;
26341 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26343 export as_echo_n_body
26344 as_echo_n='sh -c $as_echo_n_body as_echo'
26346 export as_echo_body
26347 as_echo='sh -c $as_echo_body as_echo'
26350 # The user is always right.
26351 if test "${PATH_SEPARATOR+set}" != set; then
26352 PATH_SEPARATOR=:
26353 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26354 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26355 PATH_SEPARATOR=';'
26359 # Support unset when possible.
26360 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26361 as_unset=unset
26362 else
26363 as_unset=false
26367 # IFS
26368 # We need space, tab and new line, in precisely that order. Quoting is
26369 # there to prevent editors from complaining about space-tab.
26370 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26371 # splitting by setting IFS to empty value.)
26372 IFS=" "" $as_nl"
26374 # Find who we are. Look in the path if we contain no directory separator.
26375 case $0 in
26376 *[\\/]* ) as_myself=$0 ;;
26377 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26378 for as_dir in $PATH
26380 IFS=$as_save_IFS
26381 test -z "$as_dir" && as_dir=.
26382 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26383 done
26384 IFS=$as_save_IFS
26387 esac
26388 # We did not find ourselves, most probably we were run as `sh COMMAND'
26389 # in which case we are not to be found in the path.
26390 if test "x$as_myself" = x; then
26391 as_myself=$0
26393 if test ! -f "$as_myself"; then
26394 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26395 { (exit 1); exit 1; }
26398 # Work around bugs in pre-3.0 UWIN ksh.
26399 for as_var in ENV MAIL MAILPATH
26400 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26401 done
26402 PS1='$ '
26403 PS2='> '
26404 PS4='+ '
26406 # NLS nuisances.
26407 LC_ALL=C
26408 export LC_ALL
26409 LANGUAGE=C
26410 export LANGUAGE
26412 # Required to use basename.
26413 if expr a : '\(a\)' >/dev/null 2>&1 &&
26414 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26415 as_expr=expr
26416 else
26417 as_expr=false
26420 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26421 as_basename=basename
26422 else
26423 as_basename=false
26427 # Name of the executable.
26428 as_me=`$as_basename -- "$0" ||
26429 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26430 X"$0" : 'X\(//\)$' \| \
26431 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26432 $as_echo X/"$0" |
26433 sed '/^.*\/\([^/][^/]*\)\/*$/{
26434 s//\1/
26437 /^X\/\(\/\/\)$/{
26438 s//\1/
26441 /^X\/\(\/\).*/{
26442 s//\1/
26445 s/.*/./; q'`
26447 # CDPATH.
26448 $as_unset CDPATH
26452 as_lineno_1=$LINENO
26453 as_lineno_2=$LINENO
26454 test "x$as_lineno_1" != "x$as_lineno_2" &&
26455 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26457 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26458 # uniformly replaced by the line number. The first 'sed' inserts a
26459 # line-number line after each line using $LINENO; the second 'sed'
26460 # does the real work. The second script uses 'N' to pair each
26461 # line-number line with the line containing $LINENO, and appends
26462 # trailing '-' during substitution so that $LINENO is not a special
26463 # case at line end.
26464 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26465 # scripts with optimization help from Paolo Bonzini. Blame Lee
26466 # E. McMahon (1931-1989) for sed's syntax. :-)
26467 sed -n '
26469 /[$]LINENO/=
26470 ' <$as_myself |
26471 sed '
26472 s/[$]LINENO.*/&-/
26473 t lineno
26475 :lineno
26477 :loop
26478 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26479 t loop
26480 s/-\n.*//
26481 ' >$as_me.lineno &&
26482 chmod +x "$as_me.lineno" ||
26483 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26484 { (exit 1); exit 1; }; }
26486 # Don't try to exec as it changes $[0], causing all sort of problems
26487 # (the dirname of $[0] is not the place where we might find the
26488 # original and so on. Autoconf is especially sensitive to this).
26489 . "./$as_me.lineno"
26490 # Exit status is that of the last command.
26491 exit
26495 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26496 as_dirname=dirname
26497 else
26498 as_dirname=false
26501 ECHO_C= ECHO_N= ECHO_T=
26502 case `echo -n x` in
26503 -n*)
26504 case `echo 'x\c'` in
26505 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26506 *) ECHO_C='\c';;
26507 esac;;
26509 ECHO_N='-n';;
26510 esac
26511 if expr a : '\(a\)' >/dev/null 2>&1 &&
26512 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26513 as_expr=expr
26514 else
26515 as_expr=false
26518 rm -f conf$$ conf$$.exe conf$$.file
26519 if test -d conf$$.dir; then
26520 rm -f conf$$.dir/conf$$.file
26521 else
26522 rm -f conf$$.dir
26523 mkdir conf$$.dir 2>/dev/null
26525 if (echo >conf$$.file) 2>/dev/null; then
26526 if ln -s conf$$.file conf$$ 2>/dev/null; then
26527 as_ln_s='ln -s'
26528 # ... but there are two gotchas:
26529 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26530 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26531 # In both cases, we have to default to `cp -p'.
26532 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26533 as_ln_s='cp -p'
26534 elif ln conf$$.file conf$$ 2>/dev/null; then
26535 as_ln_s=ln
26536 else
26537 as_ln_s='cp -p'
26539 else
26540 as_ln_s='cp -p'
26542 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26543 rmdir conf$$.dir 2>/dev/null
26545 if mkdir -p . 2>/dev/null; then
26546 as_mkdir_p=:
26547 else
26548 test -d ./-p && rmdir ./-p
26549 as_mkdir_p=false
26552 if test -x / >/dev/null 2>&1; then
26553 as_test_x='test -x'
26554 else
26555 if ls -dL / >/dev/null 2>&1; then
26556 as_ls_L_option=L
26557 else
26558 as_ls_L_option=
26560 as_test_x='
26561 eval sh -c '\''
26562 if test -d "$1"; then
26563 test -d "$1/.";
26564 else
26565 case $1 in
26566 -*)set "./$1";;
26567 esac;
26568 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26569 ???[sx]*):;;*)false;;esac;fi
26570 '\'' sh
26573 as_executable_p=$as_test_x
26575 # Sed expression to map a string onto a valid CPP name.
26576 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26578 # Sed expression to map a string onto a valid variable name.
26579 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26582 exec 6>&1
26584 # Save the log message, to keep $[0] and so on meaningful, and to
26585 # report actual input values of CONFIG_FILES etc. instead of their
26586 # values after options handling.
26587 ac_log="
26588 This file was extended by python $as_me 2.7, which was
26589 generated by GNU Autoconf 2.63. Invocation command line was
26591 CONFIG_FILES = $CONFIG_FILES
26592 CONFIG_HEADERS = $CONFIG_HEADERS
26593 CONFIG_LINKS = $CONFIG_LINKS
26594 CONFIG_COMMANDS = $CONFIG_COMMANDS
26595 $ $0 $@
26597 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26600 _ACEOF
26602 case $ac_config_files in *"
26603 "*) set x $ac_config_files; shift; ac_config_files=$*;;
26604 esac
26606 case $ac_config_headers in *"
26607 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
26608 esac
26611 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26612 # Files that config.status was made for.
26613 config_files="`echo $ac_config_files`"
26614 config_headers="`echo $ac_config_headers`"
26616 _ACEOF
26618 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26619 ac_cs_usage="\
26620 \`$as_me' instantiates files from templates according to the
26621 current configuration.
26623 Usage: $0 [OPTION]... [FILE]...
26625 -h, --help print this help, then exit
26626 -V, --version print version number and configuration settings, then exit
26627 -q, --quiet, --silent
26628 do not print progress messages
26629 -d, --debug don't remove temporary files
26630 --recheck update $as_me by reconfiguring in the same conditions
26631 --file=FILE[:TEMPLATE]
26632 instantiate the configuration file FILE
26633 --header=FILE[:TEMPLATE]
26634 instantiate the configuration header FILE
26636 Configuration files:
26637 $config_files
26639 Configuration headers:
26640 $config_headers
26642 Report bugs to <bug-autoconf@gnu.org>."
26644 _ACEOF
26645 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26646 ac_cs_version="\\
26647 python config.status 2.7
26648 configured by $0, generated by GNU Autoconf 2.63,
26649 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26651 Copyright (C) 2008 Free Software Foundation, Inc.
26652 This config.status script is free software; the Free Software Foundation
26653 gives unlimited permission to copy, distribute and modify it."
26655 ac_pwd='$ac_pwd'
26656 srcdir='$srcdir'
26657 INSTALL='$INSTALL'
26658 test -n "\$AWK" || AWK=awk
26659 _ACEOF
26661 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26662 # The default lists apply if the user does not specify any file.
26663 ac_need_defaults=:
26664 while test $# != 0
26666 case $1 in
26667 --*=*)
26668 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26669 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26670 ac_shift=:
26673 ac_option=$1
26674 ac_optarg=$2
26675 ac_shift=shift
26677 esac
26679 case $ac_option in
26680 # Handling of the options.
26681 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26682 ac_cs_recheck=: ;;
26683 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26684 $as_echo "$ac_cs_version"; exit ;;
26685 --debug | --debu | --deb | --de | --d | -d )
26686 debug=: ;;
26687 --file | --fil | --fi | --f )
26688 $ac_shift
26689 case $ac_optarg in
26690 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26691 esac
26692 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
26693 ac_need_defaults=false;;
26694 --header | --heade | --head | --hea )
26695 $ac_shift
26696 case $ac_optarg in
26697 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26698 esac
26699 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
26700 ac_need_defaults=false;;
26701 --he | --h)
26702 # Conflict between --help and --header
26703 { $as_echo "$as_me: error: ambiguous option: $1
26704 Try \`$0 --help' for more information." >&2
26705 { (exit 1); exit 1; }; };;
26706 --help | --hel | -h )
26707 $as_echo "$ac_cs_usage"; exit ;;
26708 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26709 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26710 ac_cs_silent=: ;;
26712 # This is an error.
26713 -*) { $as_echo "$as_me: error: unrecognized option: $1
26714 Try \`$0 --help' for more information." >&2
26715 { (exit 1); exit 1; }; } ;;
26717 *) ac_config_targets="$ac_config_targets $1"
26718 ac_need_defaults=false ;;
26720 esac
26721 shift
26722 done
26724 ac_configure_extra_args=
26726 if $ac_cs_silent; then
26727 exec 6>/dev/null
26728 ac_configure_extra_args="$ac_configure_extra_args --silent"
26731 _ACEOF
26732 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26733 if \$ac_cs_recheck; then
26734 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26735 shift
26736 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26737 CONFIG_SHELL='$SHELL'
26738 export CONFIG_SHELL
26739 exec "\$@"
26742 _ACEOF
26743 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26744 exec 5>>config.log
26746 echo
26747 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26748 ## Running $as_me. ##
26749 _ASBOX
26750 $as_echo "$ac_log"
26751 } >&5
26753 _ACEOF
26754 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26755 _ACEOF
26757 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26759 # Handling of arguments.
26760 for ac_config_target in $ac_config_targets
26762 case $ac_config_target in
26763 "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;;
26764 "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;;
26765 "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
26766 "Mac/IDLE/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/IDLE/Makefile" ;;
26767 "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;;
26768 "Mac/Resources/app/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/app/Info.plist" ;;
26769 "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;;
26770 "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;;
26771 "Misc/python.pc") CONFIG_FILES="$CONFIG_FILES Misc/python.pc" ;;
26773 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26774 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26775 { (exit 1); exit 1; }; };;
26776 esac
26777 done
26780 # If the user did not use the arguments to specify the items to instantiate,
26781 # then the envvar interface is used. Set only those that are not.
26782 # We use the long form for the default assignment because of an extremely
26783 # bizarre bug on SunOS 4.1.3.
26784 if $ac_need_defaults; then
26785 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26786 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26789 # Have a temporary directory for convenience. Make it in the build tree
26790 # simply because there is no reason against having it here, and in addition,
26791 # creating and moving files from /tmp can sometimes cause problems.
26792 # Hook for its removal unless debugging.
26793 # Note that there is a small window in which the directory will not be cleaned:
26794 # after its creation but before its name has been assigned to `$tmp'.
26795 $debug ||
26797 tmp=
26798 trap 'exit_status=$?
26799 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26801 trap '{ (exit 1); exit 1; }' 1 2 13 15
26803 # Create a (secure) tmp directory for tmp files.
26806 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26807 test -n "$tmp" && test -d "$tmp"
26808 } ||
26810 tmp=./conf$$-$RANDOM
26811 (umask 077 && mkdir "$tmp")
26812 } ||
26814 $as_echo "$as_me: cannot create a temporary directory in ." >&2
26815 { (exit 1); exit 1; }
26818 # Set up the scripts for CONFIG_FILES section.
26819 # No need to generate them if there are no CONFIG_FILES.
26820 # This happens for instance with `./config.status config.h'.
26821 if test -n "$CONFIG_FILES"; then
26824 ac_cr='
26826 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26827 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26828 ac_cs_awk_cr='\\r'
26829 else
26830 ac_cs_awk_cr=$ac_cr
26833 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26834 _ACEOF
26838 echo "cat >conf$$subs.awk <<_ACEOF" &&
26839 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26840 echo "_ACEOF"
26841 } >conf$$subs.sh ||
26842 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26843 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26844 { (exit 1); exit 1; }; }
26845 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26846 ac_delim='%!_!# '
26847 for ac_last_try in false false false false false :; do
26848 . ./conf$$subs.sh ||
26849 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26850 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26851 { (exit 1); exit 1; }; }
26853 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26854 if test $ac_delim_n = $ac_delim_num; then
26855 break
26856 elif $ac_last_try; then
26857 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26858 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26859 { (exit 1); exit 1; }; }
26860 else
26861 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26863 done
26864 rm -f conf$$subs.sh
26866 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26867 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
26868 _ACEOF
26869 sed -n '
26871 s/^/S["/; s/!.*/"]=/
26874 s/^[^!]*!//
26875 :repl
26876 t repl
26877 s/'"$ac_delim"'$//
26878 t delim
26881 s/\(.\{148\}\).*/\1/
26882 t more1
26883 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26886 b repl
26887 :more1
26888 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26891 s/.\{148\}//
26892 t nl
26893 :delim
26895 s/\(.\{148\}\).*/\1/
26896 t more2
26897 s/["\\]/\\&/g; s/^/"/; s/$/"/
26900 :more2
26901 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26904 s/.\{148\}//
26905 t delim
26906 ' <conf$$subs.awk | sed '
26907 /^[^""]/{
26909 s/\n//
26911 ' >>$CONFIG_STATUS || ac_write_fail=1
26912 rm -f conf$$subs.awk
26913 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26914 _ACAWK
26915 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
26916 for (key in S) S_is_set[key] = 1
26917 FS = "\a"
26921 line = $ 0
26922 nfields = split(line, field, "@")
26923 substed = 0
26924 len = length(field[1])
26925 for (i = 2; i < nfields; i++) {
26926 key = field[i]
26927 keylen = length(key)
26928 if (S_is_set[key]) {
26929 value = S[key]
26930 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26931 len += length(value) + length(field[++i])
26932 substed = 1
26933 } else
26934 len += 1 + keylen
26937 print line
26940 _ACAWK
26941 _ACEOF
26942 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26943 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26944 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26945 else
26947 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
26948 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
26949 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
26950 { (exit 1); exit 1; }; }
26951 _ACEOF
26953 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26954 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26955 # trailing colons and then remove the whole line if VPATH becomes empty
26956 # (actually we leave an empty line to preserve line numbers).
26957 if test "x$srcdir" = x.; then
26958 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26959 s/:*\$(srcdir):*/:/
26960 s/:*\${srcdir}:*/:/
26961 s/:*@srcdir@:*/:/
26962 s/^\([^=]*=[ ]*\):*/\1/
26963 s/:*$//
26964 s/^[^=]*=[ ]*$//
26968 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26969 fi # test -n "$CONFIG_FILES"
26971 # Set up the scripts for CONFIG_HEADERS section.
26972 # No need to generate them if there are no CONFIG_HEADERS.
26973 # This happens for instance with `./config.status Makefile'.
26974 if test -n "$CONFIG_HEADERS"; then
26975 cat >"$tmp/defines.awk" <<\_ACAWK ||
26976 BEGIN {
26977 _ACEOF
26979 # Transform confdefs.h into an awk script `defines.awk', embedded as
26980 # here-document in config.status, that substitutes the proper values into
26981 # config.h.in to produce config.h.
26983 # Create a delimiter string that does not exist in confdefs.h, to ease
26984 # handling of long lines.
26985 ac_delim='%!_!# '
26986 for ac_last_try in false false :; do
26987 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
26988 if test -z "$ac_t"; then
26989 break
26990 elif $ac_last_try; then
26991 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
26992 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
26993 { (exit 1); exit 1; }; }
26994 else
26995 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26997 done
26999 # For the awk script, D is an array of macro values keyed by name,
27000 # likewise P contains macro parameters if any. Preserve backslash
27001 # newline sequences.
27003 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27004 sed -n '
27005 s/.\{148\}/&'"$ac_delim"'/g
27006 t rset
27007 :rset
27008 s/^[ ]*#[ ]*define[ ][ ]*/ /
27009 t def
27011 :def
27012 s/\\$//
27013 t bsnl
27014 s/["\\]/\\&/g
27015 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27016 D["\1"]=" \3"/p
27017 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
27019 :bsnl
27020 s/["\\]/\\&/g
27021 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27022 D["\1"]=" \3\\\\\\n"\\/p
27023 t cont
27024 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27025 t cont
27027 :cont
27029 s/.\{148\}/&'"$ac_delim"'/g
27030 t clear
27031 :clear
27032 s/\\$//
27033 t bsnlc
27034 s/["\\]/\\&/g; s/^/"/; s/$/"/p
27036 :bsnlc
27037 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27038 b cont
27039 ' <confdefs.h | sed '
27040 s/'"$ac_delim"'/"\\\
27041 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27043 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27044 for (key in D) D_is_set[key] = 1
27045 FS = "\a"
27047 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27048 line = \$ 0
27049 split(line, arg, " ")
27050 if (arg[1] == "#") {
27051 defundef = arg[2]
27052 mac1 = arg[3]
27053 } else {
27054 defundef = substr(arg[1], 2)
27055 mac1 = arg[2]
27057 split(mac1, mac2, "(") #)
27058 macro = mac2[1]
27059 prefix = substr(line, 1, index(line, defundef) - 1)
27060 if (D_is_set[macro]) {
27061 # Preserve the white space surrounding the "#".
27062 print prefix "define", macro P[macro] D[macro]
27063 next
27064 } else {
27065 # Replace #undef with comments. This is necessary, for example,
27066 # in the case of _POSIX_SOURCE, which is predefined and required
27067 # on some systems where configure will not decide to define it.
27068 if (defundef == "undef") {
27069 print "/*", prefix defundef, macro, "*/"
27070 next
27074 { print }
27075 _ACAWK
27076 _ACEOF
27077 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27078 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
27079 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
27080 { (exit 1); exit 1; }; }
27081 fi # test -n "$CONFIG_HEADERS"
27084 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
27085 shift
27086 for ac_tag
27088 case $ac_tag in
27089 :[FHLC]) ac_mode=$ac_tag; continue;;
27090 esac
27091 case $ac_mode$ac_tag in
27092 :[FHL]*:*);;
27093 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
27094 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
27095 { (exit 1); exit 1; }; };;
27096 :[FH]-) ac_tag=-:-;;
27097 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27098 esac
27099 ac_save_IFS=$IFS
27100 IFS=:
27101 set x $ac_tag
27102 IFS=$ac_save_IFS
27103 shift
27104 ac_file=$1
27105 shift
27107 case $ac_mode in
27108 :L) ac_source=$1;;
27109 :[FH])
27110 ac_file_inputs=
27111 for ac_f
27113 case $ac_f in
27114 -) ac_f="$tmp/stdin";;
27115 *) # Look for the file first in the build tree, then in the source tree
27116 # (if the path is not absolute). The absolute path cannot be DOS-style,
27117 # because $ac_f cannot contain `:'.
27118 test -f "$ac_f" ||
27119 case $ac_f in
27120 [\\/$]*) false;;
27121 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27122 esac ||
27123 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27124 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27125 { (exit 1); exit 1; }; };;
27126 esac
27127 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27128 ac_file_inputs="$ac_file_inputs '$ac_f'"
27129 done
27131 # Let's still pretend it is `configure' which instantiates (i.e., don't
27132 # use $as_me), people would be surprised to read:
27133 # /* config.h. Generated by config.status. */
27134 configure_input='Generated from '`
27135 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27136 `' by configure.'
27137 if test x"$ac_file" != x-; then
27138 configure_input="$ac_file. $configure_input"
27139 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
27140 $as_echo "$as_me: creating $ac_file" >&6;}
27142 # Neutralize special characters interpreted by sed in replacement strings.
27143 case $configure_input in #(
27144 *\&* | *\|* | *\\* )
27145 ac_sed_conf_input=`$as_echo "$configure_input" |
27146 sed 's/[\\\\&|]/\\\\&/g'`;; #(
27147 *) ac_sed_conf_input=$configure_input;;
27148 esac
27150 case $ac_tag in
27151 *:-:* | *:-) cat >"$tmp/stdin" \
27152 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27153 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27154 { (exit 1); exit 1; }; } ;;
27155 esac
27157 esac
27159 ac_dir=`$as_dirname -- "$ac_file" ||
27160 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27161 X"$ac_file" : 'X\(//\)[^/]' \| \
27162 X"$ac_file" : 'X\(//\)$' \| \
27163 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27164 $as_echo X"$ac_file" |
27165 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27166 s//\1/
27169 /^X\(\/\/\)[^/].*/{
27170 s//\1/
27173 /^X\(\/\/\)$/{
27174 s//\1/
27177 /^X\(\/\).*/{
27178 s//\1/
27181 s/.*/./; q'`
27182 { as_dir="$ac_dir"
27183 case $as_dir in #(
27184 -*) as_dir=./$as_dir;;
27185 esac
27186 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27187 as_dirs=
27188 while :; do
27189 case $as_dir in #(
27190 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27191 *) as_qdir=$as_dir;;
27192 esac
27193 as_dirs="'$as_qdir' $as_dirs"
27194 as_dir=`$as_dirname -- "$as_dir" ||
27195 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27196 X"$as_dir" : 'X\(//\)[^/]' \| \
27197 X"$as_dir" : 'X\(//\)$' \| \
27198 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27199 $as_echo X"$as_dir" |
27200 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27201 s//\1/
27204 /^X\(\/\/\)[^/].*/{
27205 s//\1/
27208 /^X\(\/\/\)$/{
27209 s//\1/
27212 /^X\(\/\).*/{
27213 s//\1/
27216 s/.*/./; q'`
27217 test -d "$as_dir" && break
27218 done
27219 test -z "$as_dirs" || eval "mkdir $as_dirs"
27220 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27221 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
27222 { (exit 1); exit 1; }; }; }
27223 ac_builddir=.
27225 case "$ac_dir" in
27226 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27228 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27229 # A ".." for each directory in $ac_dir_suffix.
27230 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27231 case $ac_top_builddir_sub in
27232 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27233 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27234 esac ;;
27235 esac
27236 ac_abs_top_builddir=$ac_pwd
27237 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27238 # for backward compatibility:
27239 ac_top_builddir=$ac_top_build_prefix
27241 case $srcdir in
27242 .) # We are building in place.
27243 ac_srcdir=.
27244 ac_top_srcdir=$ac_top_builddir_sub
27245 ac_abs_top_srcdir=$ac_pwd ;;
27246 [\\/]* | ?:[\\/]* ) # Absolute name.
27247 ac_srcdir=$srcdir$ac_dir_suffix;
27248 ac_top_srcdir=$srcdir
27249 ac_abs_top_srcdir=$srcdir ;;
27250 *) # Relative name.
27251 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27252 ac_top_srcdir=$ac_top_build_prefix$srcdir
27253 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27254 esac
27255 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27258 case $ac_mode in
27261 # CONFIG_FILE
27264 case $INSTALL in
27265 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27266 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27267 esac
27268 _ACEOF
27270 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27271 # If the template does not know about datarootdir, expand it.
27272 # FIXME: This hack should be removed a few years after 2.60.
27273 ac_datarootdir_hack=; ac_datarootdir_seen=
27275 ac_sed_dataroot='
27276 /datarootdir/ {
27280 /@datadir@/p
27281 /@docdir@/p
27282 /@infodir@/p
27283 /@localedir@/p
27284 /@mandir@/p
27286 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27287 *datarootdir*) ac_datarootdir_seen=yes;;
27288 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27289 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27290 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27291 _ACEOF
27292 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27293 ac_datarootdir_hack='
27294 s&@datadir@&$datadir&g
27295 s&@docdir@&$docdir&g
27296 s&@infodir@&$infodir&g
27297 s&@localedir@&$localedir&g
27298 s&@mandir@&$mandir&g
27299 s&\\\${datarootdir}&$datarootdir&g' ;;
27300 esac
27301 _ACEOF
27303 # Neutralize VPATH when `$srcdir' = `.'.
27304 # Shell code in configure.ac might set extrasub.
27305 # FIXME: do we really want to maintain this feature?
27306 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27307 ac_sed_extra="$ac_vpsub
27308 $extrasub
27309 _ACEOF
27310 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27312 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27313 s|@configure_input@|$ac_sed_conf_input|;t t
27314 s&@top_builddir@&$ac_top_builddir_sub&;t t
27315 s&@top_build_prefix@&$ac_top_build_prefix&;t t
27316 s&@srcdir@&$ac_srcdir&;t t
27317 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27318 s&@top_srcdir@&$ac_top_srcdir&;t t
27319 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27320 s&@builddir@&$ac_builddir&;t t
27321 s&@abs_builddir@&$ac_abs_builddir&;t t
27322 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27323 s&@INSTALL@&$ac_INSTALL&;t t
27324 $ac_datarootdir_hack
27326 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
27327 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27328 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27329 { (exit 1); exit 1; }; }
27331 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27332 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27333 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27334 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27335 which seems to be undefined. Please make sure it is defined." >&5
27336 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27337 which seems to be undefined. Please make sure it is defined." >&2;}
27339 rm -f "$tmp/stdin"
27340 case $ac_file in
27341 -) cat "$tmp/out" && rm -f "$tmp/out";;
27342 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
27343 esac \
27344 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27345 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27346 { (exit 1); exit 1; }; }
27350 # CONFIG_HEADER
27352 if test x"$ac_file" != x-; then
27354 $as_echo "/* $configure_input */" \
27355 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
27356 } >"$tmp/config.h" \
27357 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27358 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27359 { (exit 1); exit 1; }; }
27360 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
27361 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27362 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27363 else
27364 rm -f "$ac_file"
27365 mv "$tmp/config.h" "$ac_file" \
27366 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27367 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27368 { (exit 1); exit 1; }; }
27370 else
27371 $as_echo "/* $configure_input */" \
27372 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
27373 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
27374 $as_echo "$as_me: error: could not create -" >&2;}
27375 { (exit 1); exit 1; }; }
27380 esac
27382 done # for ac_tag
27385 { (exit 0); exit 0; }
27386 _ACEOF
27387 chmod +x $CONFIG_STATUS
27388 ac_clean_files=$ac_clean_files_save
27390 test $ac_write_fail = 0 ||
27391 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
27392 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
27393 { (exit 1); exit 1; }; }
27396 # configure is writing to config.log, and then calls config.status.
27397 # config.status does its own redirection, appending to config.log.
27398 # Unfortunately, on DOS this fails, as config.log is still kept open
27399 # by configure, so config.status won't be able to write to it; its
27400 # output is simply discarded. So we exec the FD to /dev/null,
27401 # effectively closing config.log, so it can be properly (re)opened and
27402 # appended to by config.status. When coming back to configure, we
27403 # need to make the FD available again.
27404 if test "$no_create" != yes; then
27405 ac_cs_success=:
27406 ac_config_status_args=
27407 test "$silent" = yes &&
27408 ac_config_status_args="$ac_config_status_args --quiet"
27409 exec 5>/dev/null
27410 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27411 exec 5>>config.log
27412 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27413 # would make configure fail if this is the last instruction.
27414 $ac_cs_success || { (exit 1); exit 1; }
27416 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27417 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27418 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
27422 echo "creating Modules/Setup"
27423 if test ! -f Modules/Setup
27424 then
27425 cp $srcdir/Modules/Setup.dist Modules/Setup
27428 echo "creating Modules/Setup.local"
27429 if test ! -f Modules/Setup.local
27430 then
27431 echo "# Edit this file for local setup changes" >Modules/Setup.local
27434 echo "creating Makefile"
27435 $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
27436 -s Modules Modules/Setup.config \
27437 Modules/Setup.local Modules/Setup
27439 case $ac_sys_system in
27440 BeOS)
27441 { $as_echo "$as_me:$LINENO: WARNING:
27443 Support for BeOS is deprecated as of Python 2.6.
27444 See PEP 11 for the gory details.
27445 " >&5
27446 $as_echo "$as_me: WARNING:
27448 Support for BeOS is deprecated as of Python 2.6.
27449 See PEP 11 for the gory details.
27450 " >&2;}
27452 *) ;;
27453 esac
27455 mv config.c Modules