issue1172: Documentation of "done" attribute in cgi module.
[python.git] / configure
blob6d9862e7252d1b74de3292f93f889fe7ad9828a4
1 #! /bin/sh
2 # From configure.in Revision: 57904 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for python 2.6.
6 # Report bugs to <http://www.python.org/python-bugs>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 emulate sh
20 NULLCMD=:
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
24 setopt NO_GLOB_SUBST
25 else
26 case `(set -o) 2>/dev/null` in
27 *posix*) set -o posix ;;
28 esac
35 # PATH needs CR
36 # Avoid depending upon Character Ranges.
37 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40 as_cr_digits='0123456789'
41 as_cr_alnum=$as_cr_Letters$as_cr_digits
43 # The user is always right.
44 if test "${PATH_SEPARATOR+set}" != set; then
45 echo "#! /bin/sh" >conf$$.sh
46 echo "exit 0" >>conf$$.sh
47 chmod +x conf$$.sh
48 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49 PATH_SEPARATOR=';'
50 else
51 PATH_SEPARATOR=:
53 rm -f conf$$.sh
56 # Support unset when possible.
57 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58 as_unset=unset
59 else
60 as_unset=false
64 # IFS
65 # We need space, tab and new line, in precisely that order. Quoting is
66 # there to prevent editors from complaining about space-tab.
67 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
68 # splitting by setting IFS to empty value.)
69 as_nl='
71 IFS=" "" $as_nl"
73 # Find who we are. Look in the path if we contain no directory separator.
74 case $0 in
75 *[\\/]* ) as_myself=$0 ;;
76 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 for as_dir in $PATH
79 IFS=$as_save_IFS
80 test -z "$as_dir" && as_dir=.
81 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
82 done
83 IFS=$as_save_IFS
86 esac
87 # We did not find ourselves, most probably we were run as `sh COMMAND'
88 # in which case we are not to be found in the path.
89 if test "x$as_myself" = x; then
90 as_myself=$0
92 if test ! -f "$as_myself"; then
93 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 { (exit 1); exit 1; }
97 # Work around bugs in pre-3.0 UWIN ksh.
98 for as_var in ENV MAIL MAILPATH
99 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100 done
101 PS1='$ '
102 PS2='> '
103 PS4='+ '
105 # NLS nuisances.
106 for as_var in \
107 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
109 LC_TELEPHONE LC_TIME
111 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112 eval $as_var=C; export $as_var
113 else
114 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
116 done
118 # Required to use basename.
119 if expr a : '\(a\)' >/dev/null 2>&1 &&
120 test "X`expr 00001 : '.*\(...\)'`" = X001; then
121 as_expr=expr
122 else
123 as_expr=false
126 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
127 as_basename=basename
128 else
129 as_basename=false
133 # Name of the executable.
134 as_me=`$as_basename -- "$0" ||
135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136 X"$0" : 'X\(//\)$' \| \
137 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 echo X/"$0" |
139 sed '/^.*\/\([^/][^/]*\)\/*$/{
140 s//\1/
143 /^X\/\(\/\/\)$/{
144 s//\1/
147 /^X\/\(\/\).*/{
148 s//\1/
151 s/.*/./; q'`
153 # CDPATH.
154 $as_unset CDPATH
157 if test "x$CONFIG_SHELL" = x; then
158 if (eval ":") 2>/dev/null; then
159 as_have_required=yes
160 else
161 as_have_required=no
164 if test $as_have_required = yes && (eval ":
165 (as_func_return () {
166 (exit \$1)
168 as_func_success () {
169 as_func_return 0
171 as_func_failure () {
172 as_func_return 1
174 as_func_ret_success () {
175 return 0
177 as_func_ret_failure () {
178 return 1
181 exitcode=0
182 if as_func_success; then
184 else
185 exitcode=1
186 echo as_func_success failed.
189 if as_func_failure; then
190 exitcode=1
191 echo as_func_failure succeeded.
194 if as_func_ret_success; then
196 else
197 exitcode=1
198 echo as_func_ret_success failed.
201 if as_func_ret_failure; then
202 exitcode=1
203 echo as_func_ret_failure succeeded.
206 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
208 else
209 exitcode=1
210 echo positional parameters were not saved.
213 test \$exitcode = 0) || { (exit 1); exit 1; }
216 as_lineno_1=\$LINENO
217 as_lineno_2=\$LINENO
218 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220 ") 2> /dev/null; then
222 else
223 as_candidate_shells=
224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
225 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227 IFS=$as_save_IFS
228 test -z "$as_dir" && as_dir=.
229 case $as_dir in
231 for as_base in sh bash ksh sh5; do
232 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
233 done;;
234 esac
235 done
236 IFS=$as_save_IFS
239 for as_shell in $as_candidate_shells $SHELL; do
240 # Try only shells that exist, to save several forks.
241 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
242 { ("$as_shell") 2> /dev/null <<\_ASEOF
243 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 emulate sh
245 NULLCMD=:
246 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247 # is contrary to our usage. Disable this feature.
248 alias -g '${1+"$@"}'='"$@"'
249 setopt NO_GLOB_SUBST
250 else
251 case `(set -o) 2>/dev/null` in
252 *posix*) set -o posix ;;
253 esac
259 _ASEOF
260 }; then
261 CONFIG_SHELL=$as_shell
262 as_have_required=yes
263 if { "$as_shell" 2> /dev/null <<\_ASEOF
264 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
265 emulate sh
266 NULLCMD=:
267 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268 # is contrary to our usage. Disable this feature.
269 alias -g '${1+"$@"}'='"$@"'
270 setopt NO_GLOB_SUBST
271 else
272 case `(set -o) 2>/dev/null` in
273 *posix*) set -o posix ;;
274 esac
280 (as_func_return () {
281 (exit $1)
283 as_func_success () {
284 as_func_return 0
286 as_func_failure () {
287 as_func_return 1
289 as_func_ret_success () {
290 return 0
292 as_func_ret_failure () {
293 return 1
296 exitcode=0
297 if as_func_success; then
299 else
300 exitcode=1
301 echo as_func_success failed.
304 if as_func_failure; then
305 exitcode=1
306 echo as_func_failure succeeded.
309 if as_func_ret_success; then
311 else
312 exitcode=1
313 echo as_func_ret_success failed.
316 if as_func_ret_failure; then
317 exitcode=1
318 echo as_func_ret_failure succeeded.
321 if ( set x; as_func_ret_success y && test x = "$1" ); then
323 else
324 exitcode=1
325 echo positional parameters were not saved.
328 test $exitcode = 0) || { (exit 1); exit 1; }
331 as_lineno_1=$LINENO
332 as_lineno_2=$LINENO
333 test "x$as_lineno_1" != "x$as_lineno_2" &&
334 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
336 _ASEOF
337 }; then
338 break
343 done
345 if test "x$CONFIG_SHELL" != x; then
346 for as_var in BASH_ENV ENV
347 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
348 done
349 export CONFIG_SHELL
350 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
354 if test $as_have_required = no; then
355 echo This script requires a shell more modern than all the
356 echo shells that I found on your system. Please install a
357 echo modern shell, or manually run the script under such a
358 echo shell if you do have one.
359 { (exit 1); exit 1; }
369 (eval "as_func_return () {
370 (exit \$1)
372 as_func_success () {
373 as_func_return 0
375 as_func_failure () {
376 as_func_return 1
378 as_func_ret_success () {
379 return 0
381 as_func_ret_failure () {
382 return 1
385 exitcode=0
386 if as_func_success; then
388 else
389 exitcode=1
390 echo as_func_success failed.
393 if as_func_failure; then
394 exitcode=1
395 echo as_func_failure succeeded.
398 if as_func_ret_success; then
400 else
401 exitcode=1
402 echo as_func_ret_success failed.
405 if as_func_ret_failure; then
406 exitcode=1
407 echo as_func_ret_failure succeeded.
410 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
412 else
413 exitcode=1
414 echo positional parameters were not saved.
417 test \$exitcode = 0") || {
418 echo No shell found that supports shell functions.
419 echo Please tell autoconf@gnu.org about your system,
420 echo including any error possibly output before this
421 echo message
426 as_lineno_1=$LINENO
427 as_lineno_2=$LINENO
428 test "x$as_lineno_1" != "x$as_lineno_2" &&
429 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
431 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432 # uniformly replaced by the line number. The first 'sed' inserts a
433 # line-number line after each line using $LINENO; the second 'sed'
434 # does the real work. The second script uses 'N' to pair each
435 # line-number line with the line containing $LINENO, and appends
436 # trailing '-' during substitution so that $LINENO is not a special
437 # case at line end.
438 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439 # scripts with optimization help from Paolo Bonzini. Blame Lee
440 # E. McMahon (1931-1989) for sed's syntax. :-)
441 sed -n '
443 /[$]LINENO/=
444 ' <$as_myself |
445 sed '
446 s/[$]LINENO.*/&-/
447 t lineno
449 :lineno
451 :loop
452 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 t loop
454 s/-\n.*//
455 ' >$as_me.lineno &&
456 chmod +x "$as_me.lineno" ||
457 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458 { (exit 1); exit 1; }; }
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
463 . "./$as_me.lineno"
464 # Exit status is that of the last command.
465 exit
469 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 as_dirname=dirname
471 else
472 as_dirname=false
475 ECHO_C= ECHO_N= ECHO_T=
476 case `echo -n x` in
477 -n*)
478 case `echo 'x\c'` in
479 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
480 *) ECHO_C='\c';;
481 esac;;
483 ECHO_N='-n';;
484 esac
486 if expr a : '\(a\)' >/dev/null 2>&1 &&
487 test "X`expr 00001 : '.*\(...\)'`" = X001; then
488 as_expr=expr
489 else
490 as_expr=false
493 rm -f conf$$ conf$$.exe conf$$.file
494 if test -d conf$$.dir; then
495 rm -f conf$$.dir/conf$$.file
496 else
497 rm -f conf$$.dir
498 mkdir conf$$.dir
500 echo >conf$$.file
501 if ln -s conf$$.file conf$$ 2>/dev/null; then
502 as_ln_s='ln -s'
503 # ... but there are two gotchas:
504 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506 # In both cases, we have to default to `cp -p'.
507 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508 as_ln_s='cp -p'
509 elif ln conf$$.file conf$$ 2>/dev/null; then
510 as_ln_s=ln
511 else
512 as_ln_s='cp -p'
514 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
515 rmdir conf$$.dir 2>/dev/null
517 if mkdir -p . 2>/dev/null; then
518 as_mkdir_p=:
519 else
520 test -d ./-p && rmdir ./-p
521 as_mkdir_p=false
524 if test -x / >/dev/null 2>&1; then
525 as_test_x='test -x'
526 else
527 if ls -dL / >/dev/null 2>&1; then
528 as_ls_L_option=L
529 else
530 as_ls_L_option=
532 as_test_x='
533 eval sh -c '\''
534 if test -d "$1"; then
535 test -d "$1/.";
536 else
537 case $1 in
538 -*)set "./$1";;
539 esac;
540 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541 ???[sx]*):;;*)false;;esac;fi
542 '\'' sh
545 as_executable_p=$as_test_x
547 # Sed expression to map a string onto a valid CPP name.
548 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
550 # Sed expression to map a string onto a valid variable name.
551 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555 exec 7<&0 </dev/null 6>&1
557 # Name of the host.
558 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
559 # so uname gets run too.
560 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
563 # Initializations.
565 ac_default_prefix=/usr/local
566 ac_clean_files=
567 ac_config_libobj_dir=.
568 LIBOBJS=
569 cross_compiling=no
570 subdirs=
571 MFLAGS=
572 MAKEFLAGS=
573 SHELL=${CONFIG_SHELL-/bin/sh}
575 # Identity of this package.
576 PACKAGE_NAME='python'
577 PACKAGE_TARNAME='python'
578 PACKAGE_VERSION='2.6'
579 PACKAGE_STRING='python 2.6'
580 PACKAGE_BUGREPORT='http://www.python.org/python-bugs'
582 ac_unique_file="Include/object.h"
583 # Factoring default headers for most tests.
584 ac_includes_default="\
585 #include <stdio.h>
586 #ifdef HAVE_SYS_TYPES_H
587 # include <sys/types.h>
588 #endif
589 #ifdef HAVE_SYS_STAT_H
590 # include <sys/stat.h>
591 #endif
592 #ifdef STDC_HEADERS
593 # include <stdlib.h>
594 # include <stddef.h>
595 #else
596 # ifdef HAVE_STDLIB_H
597 # include <stdlib.h>
598 # endif
599 #endif
600 #ifdef HAVE_STRING_H
601 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
602 # include <memory.h>
603 # endif
604 # include <string.h>
605 #endif
606 #ifdef HAVE_STRINGS_H
607 # include <strings.h>
608 #endif
609 #ifdef HAVE_INTTYPES_H
610 # include <inttypes.h>
611 #endif
612 #ifdef HAVE_STDINT_H
613 # include <stdint.h>
614 #endif
615 #ifdef HAVE_UNISTD_H
616 # include <unistd.h>
617 #endif"
619 ac_subst_vars='SHELL
620 PATH_SEPARATOR
621 PACKAGE_NAME
622 PACKAGE_TARNAME
623 PACKAGE_VERSION
624 PACKAGE_STRING
625 PACKAGE_BUGREPORT
626 exec_prefix
627 prefix
628 program_transform_name
629 bindir
630 sbindir
631 libexecdir
632 datarootdir
633 datadir
634 sysconfdir
635 sharedstatedir
636 localstatedir
637 includedir
638 oldincludedir
639 docdir
640 infodir
641 htmldir
642 dvidir
643 pdfdir
644 psdir
645 libdir
646 localedir
647 mandir
648 DEFS
649 ECHO_C
650 ECHO_N
651 ECHO_T
652 LIBS
653 build_alias
654 host_alias
655 target_alias
656 VERSION
657 SOVERSION
658 CONFIG_ARGS
659 UNIVERSALSDK
660 PYTHONFRAMEWORK
661 PYTHONFRAMEWORKDIR
662 PYTHONFRAMEWORKPREFIX
663 PYTHONFRAMEWORKINSTALLDIR
664 FRAMEWORKINSTALLFIRST
665 FRAMEWORKINSTALLLAST
666 FRAMEWORKALTINSTALLFIRST
667 FRAMEWORKALTINSTALLLAST
668 FRAMEWORKUNIXTOOLSPREFIX
669 MACHDEP
670 SGI_ABI
671 EXTRAPLATDIR
672 EXTRAMACHDEPPATH
673 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
674 EXPORT_MACOSX_DEPLOYMENT_TARGET
676 CFLAGS
677 LDFLAGS
678 CPPFLAGS
679 ac_ct_CC
680 EXEEXT
681 OBJEXT
683 MAINCC
685 GREP
686 EGREP
687 BUILDEXEEXT
688 LIBRARY
689 LDLIBRARY
690 DLLLIBRARY
691 BLDLIBRARY
692 LDLIBRARYDIR
693 INSTSONAME
694 RUNSHARED
695 LINKCC
696 RANLIB
698 SVNVERSION
699 INSTALL_PROGRAM
700 INSTALL_SCRIPT
701 INSTALL_DATA
704 BASECFLAGS
705 OTHER_LIBTOOL_OPT
706 LIBTOOL_CRUFT
708 LDSHARED
709 BLDSHARED
710 CCSHARED
711 LINKFORSHARED
712 CFLAGSFORSHARED
713 SHLIBS
714 USE_SIGNAL_MODULE
715 SIGNAL_OBJS
716 USE_THREAD_MODULE
717 LDLAST
718 THREADOBJ
719 DLINCLDIR
720 DYNLOADFILE
721 MACHDEP_OBJS
722 TRUE
723 LIBOBJS
724 HAVE_GETHOSTBYNAME_R_6_ARG
725 HAVE_GETHOSTBYNAME_R_5_ARG
726 HAVE_GETHOSTBYNAME_R_3_ARG
727 HAVE_GETHOSTBYNAME_R
728 HAVE_GETHOSTBYNAME
729 LIBM
730 LIBC
731 UNICODE_OBJS
732 THREADHEADERS
733 SRCDIRS
734 LTLIBOBJS'
735 ac_subst_files=''
736 ac_precious_vars='build_alias
737 host_alias
738 target_alias
740 CFLAGS
741 LDFLAGS
742 LIBS
743 CPPFLAGS
744 CPP'
747 # Initialize some variables set by options.
748 ac_init_help=
749 ac_init_version=false
750 # The variables have the same names as the options, with
751 # dashes changed to underlines.
752 cache_file=/dev/null
753 exec_prefix=NONE
754 no_create=
755 no_recursion=
756 prefix=NONE
757 program_prefix=NONE
758 program_suffix=NONE
759 program_transform_name=s,x,x,
760 silent=
761 site=
762 srcdir=
763 verbose=
764 x_includes=NONE
765 x_libraries=NONE
767 # Installation directory options.
768 # These are left unexpanded so users can "make install exec_prefix=/foo"
769 # and all the variables that are supposed to be based on exec_prefix
770 # by default will actually change.
771 # Use braces instead of parens because sh, perl, etc. also accept them.
772 # (The list follows the same order as the GNU Coding Standards.)
773 bindir='${exec_prefix}/bin'
774 sbindir='${exec_prefix}/sbin'
775 libexecdir='${exec_prefix}/libexec'
776 datarootdir='${prefix}/share'
777 datadir='${datarootdir}'
778 sysconfdir='${prefix}/etc'
779 sharedstatedir='${prefix}/com'
780 localstatedir='${prefix}/var'
781 includedir='${prefix}/include'
782 oldincludedir='/usr/include'
783 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
784 infodir='${datarootdir}/info'
785 htmldir='${docdir}'
786 dvidir='${docdir}'
787 pdfdir='${docdir}'
788 psdir='${docdir}'
789 libdir='${exec_prefix}/lib'
790 localedir='${datarootdir}/locale'
791 mandir='${datarootdir}/man'
793 ac_prev=
794 ac_dashdash=
795 for ac_option
797 # If the previous option needs an argument, assign it.
798 if test -n "$ac_prev"; then
799 eval $ac_prev=\$ac_option
800 ac_prev=
801 continue
804 case $ac_option in
805 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
806 *) ac_optarg=yes ;;
807 esac
809 # Accept the important Cygnus configure options, so we can diagnose typos.
811 case $ac_dashdash$ac_option in
813 ac_dashdash=yes ;;
815 -bindir | --bindir | --bindi | --bind | --bin | --bi)
816 ac_prev=bindir ;;
817 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
818 bindir=$ac_optarg ;;
820 -build | --build | --buil | --bui | --bu)
821 ac_prev=build_alias ;;
822 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
823 build_alias=$ac_optarg ;;
825 -cache-file | --cache-file | --cache-fil | --cache-fi \
826 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
827 ac_prev=cache_file ;;
828 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
829 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
830 cache_file=$ac_optarg ;;
832 --config-cache | -C)
833 cache_file=config.cache ;;
835 -datadir | --datadir | --datadi | --datad)
836 ac_prev=datadir ;;
837 -datadir=* | --datadir=* | --datadi=* | --datad=*)
838 datadir=$ac_optarg ;;
840 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
841 | --dataroo | --dataro | --datar)
842 ac_prev=datarootdir ;;
843 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
844 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
845 datarootdir=$ac_optarg ;;
847 -disable-* | --disable-*)
848 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
849 # Reject names that are not valid shell variable names.
850 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
851 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
852 { (exit 1); exit 1; }; }
853 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
854 eval enable_$ac_feature=no ;;
856 -docdir | --docdir | --docdi | --doc | --do)
857 ac_prev=docdir ;;
858 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
859 docdir=$ac_optarg ;;
861 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
862 ac_prev=dvidir ;;
863 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
864 dvidir=$ac_optarg ;;
866 -enable-* | --enable-*)
867 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
868 # Reject names that are not valid shell variable names.
869 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
870 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
871 { (exit 1); exit 1; }; }
872 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
873 eval enable_$ac_feature=\$ac_optarg ;;
875 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
876 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
877 | --exec | --exe | --ex)
878 ac_prev=exec_prefix ;;
879 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
880 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
881 | --exec=* | --exe=* | --ex=*)
882 exec_prefix=$ac_optarg ;;
884 -gas | --gas | --ga | --g)
885 # Obsolete; use --with-gas.
886 with_gas=yes ;;
888 -help | --help | --hel | --he | -h)
889 ac_init_help=long ;;
890 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
891 ac_init_help=recursive ;;
892 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
893 ac_init_help=short ;;
895 -host | --host | --hos | --ho)
896 ac_prev=host_alias ;;
897 -host=* | --host=* | --hos=* | --ho=*)
898 host_alias=$ac_optarg ;;
900 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
901 ac_prev=htmldir ;;
902 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
903 | --ht=*)
904 htmldir=$ac_optarg ;;
906 -includedir | --includedir | --includedi | --included | --include \
907 | --includ | --inclu | --incl | --inc)
908 ac_prev=includedir ;;
909 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
910 | --includ=* | --inclu=* | --incl=* | --inc=*)
911 includedir=$ac_optarg ;;
913 -infodir | --infodir | --infodi | --infod | --info | --inf)
914 ac_prev=infodir ;;
915 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
916 infodir=$ac_optarg ;;
918 -libdir | --libdir | --libdi | --libd)
919 ac_prev=libdir ;;
920 -libdir=* | --libdir=* | --libdi=* | --libd=*)
921 libdir=$ac_optarg ;;
923 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
924 | --libexe | --libex | --libe)
925 ac_prev=libexecdir ;;
926 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
927 | --libexe=* | --libex=* | --libe=*)
928 libexecdir=$ac_optarg ;;
930 -localedir | --localedir | --localedi | --localed | --locale)
931 ac_prev=localedir ;;
932 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
933 localedir=$ac_optarg ;;
935 -localstatedir | --localstatedir | --localstatedi | --localstated \
936 | --localstate | --localstat | --localsta | --localst | --locals)
937 ac_prev=localstatedir ;;
938 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
939 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
940 localstatedir=$ac_optarg ;;
942 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
943 ac_prev=mandir ;;
944 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
945 mandir=$ac_optarg ;;
947 -nfp | --nfp | --nf)
948 # Obsolete; use --without-fp.
949 with_fp=no ;;
951 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
952 | --no-cr | --no-c | -n)
953 no_create=yes ;;
955 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
956 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
957 no_recursion=yes ;;
959 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
960 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
961 | --oldin | --oldi | --old | --ol | --o)
962 ac_prev=oldincludedir ;;
963 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
964 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
965 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
966 oldincludedir=$ac_optarg ;;
968 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
969 ac_prev=prefix ;;
970 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
971 prefix=$ac_optarg ;;
973 -program-prefix | --program-prefix | --program-prefi | --program-pref \
974 | --program-pre | --program-pr | --program-p)
975 ac_prev=program_prefix ;;
976 -program-prefix=* | --program-prefix=* | --program-prefi=* \
977 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
978 program_prefix=$ac_optarg ;;
980 -program-suffix | --program-suffix | --program-suffi | --program-suff \
981 | --program-suf | --program-su | --program-s)
982 ac_prev=program_suffix ;;
983 -program-suffix=* | --program-suffix=* | --program-suffi=* \
984 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
985 program_suffix=$ac_optarg ;;
987 -program-transform-name | --program-transform-name \
988 | --program-transform-nam | --program-transform-na \
989 | --program-transform-n | --program-transform- \
990 | --program-transform | --program-transfor \
991 | --program-transfo | --program-transf \
992 | --program-trans | --program-tran \
993 | --progr-tra | --program-tr | --program-t)
994 ac_prev=program_transform_name ;;
995 -program-transform-name=* | --program-transform-name=* \
996 | --program-transform-nam=* | --program-transform-na=* \
997 | --program-transform-n=* | --program-transform-=* \
998 | --program-transform=* | --program-transfor=* \
999 | --program-transfo=* | --program-transf=* \
1000 | --program-trans=* | --program-tran=* \
1001 | --progr-tra=* | --program-tr=* | --program-t=*)
1002 program_transform_name=$ac_optarg ;;
1004 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1005 ac_prev=pdfdir ;;
1006 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1007 pdfdir=$ac_optarg ;;
1009 -psdir | --psdir | --psdi | --psd | --ps)
1010 ac_prev=psdir ;;
1011 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1012 psdir=$ac_optarg ;;
1014 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1015 | -silent | --silent | --silen | --sile | --sil)
1016 silent=yes ;;
1018 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1019 ac_prev=sbindir ;;
1020 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1021 | --sbi=* | --sb=*)
1022 sbindir=$ac_optarg ;;
1024 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1025 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1026 | --sharedst | --shareds | --shared | --share | --shar \
1027 | --sha | --sh)
1028 ac_prev=sharedstatedir ;;
1029 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1030 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1031 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1032 | --sha=* | --sh=*)
1033 sharedstatedir=$ac_optarg ;;
1035 -site | --site | --sit)
1036 ac_prev=site ;;
1037 -site=* | --site=* | --sit=*)
1038 site=$ac_optarg ;;
1040 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1041 ac_prev=srcdir ;;
1042 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1043 srcdir=$ac_optarg ;;
1045 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1046 | --syscon | --sysco | --sysc | --sys | --sy)
1047 ac_prev=sysconfdir ;;
1048 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1049 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1050 sysconfdir=$ac_optarg ;;
1052 -target | --target | --targe | --targ | --tar | --ta | --t)
1053 ac_prev=target_alias ;;
1054 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1055 target_alias=$ac_optarg ;;
1057 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1058 verbose=yes ;;
1060 -version | --version | --versio | --versi | --vers | -V)
1061 ac_init_version=: ;;
1063 -with-* | --with-*)
1064 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1065 # Reject names that are not valid shell variable names.
1066 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1067 { echo "$as_me: error: invalid package name: $ac_package" >&2
1068 { (exit 1); exit 1; }; }
1069 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1070 eval with_$ac_package=\$ac_optarg ;;
1072 -without-* | --without-*)
1073 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1074 # Reject names that are not valid shell variable names.
1075 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1076 { echo "$as_me: error: invalid package name: $ac_package" >&2
1077 { (exit 1); exit 1; }; }
1078 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1079 eval with_$ac_package=no ;;
1081 --x)
1082 # Obsolete; use --with-x.
1083 with_x=yes ;;
1085 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1086 | --x-incl | --x-inc | --x-in | --x-i)
1087 ac_prev=x_includes ;;
1088 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1089 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1090 x_includes=$ac_optarg ;;
1092 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1093 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1094 ac_prev=x_libraries ;;
1095 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1096 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1097 x_libraries=$ac_optarg ;;
1099 -*) { echo "$as_me: error: unrecognized option: $ac_option
1100 Try \`$0 --help' for more information." >&2
1101 { (exit 1); exit 1; }; }
1104 *=*)
1105 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1106 # Reject names that are not valid shell variable names.
1107 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1108 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1109 { (exit 1); exit 1; }; }
1110 eval $ac_envvar=\$ac_optarg
1111 export $ac_envvar ;;
1114 # FIXME: should be removed in autoconf 3.0.
1115 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1116 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1117 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1118 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1121 esac
1122 done
1124 if test -n "$ac_prev"; then
1125 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1126 { echo "$as_me: error: missing argument to $ac_option" >&2
1127 { (exit 1); exit 1; }; }
1130 # Be sure to have absolute directory names.
1131 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1132 datadir sysconfdir sharedstatedir localstatedir includedir \
1133 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1134 libdir localedir mandir
1136 eval ac_val=\$$ac_var
1137 case $ac_val in
1138 [\\/$]* | ?:[\\/]* ) continue;;
1139 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1140 esac
1141 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1142 { (exit 1); exit 1; }; }
1143 done
1145 # There might be people who depend on the old broken behavior: `$host'
1146 # used to hold the argument of --host etc.
1147 # FIXME: To remove some day.
1148 build=$build_alias
1149 host=$host_alias
1150 target=$target_alias
1152 # FIXME: To remove some day.
1153 if test "x$host_alias" != x; then
1154 if test "x$build_alias" = x; then
1155 cross_compiling=maybe
1156 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1157 If a cross compiler is detected then cross compile mode will be used." >&2
1158 elif test "x$build_alias" != "x$host_alias"; then
1159 cross_compiling=yes
1163 ac_tool_prefix=
1164 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1166 test "$silent" = yes && exec 6>/dev/null
1169 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1170 ac_ls_di=`ls -di .` &&
1171 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1172 { echo "$as_me: error: Working directory cannot be determined" >&2
1173 { (exit 1); exit 1; }; }
1174 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1175 { echo "$as_me: error: pwd does not report name of working directory" >&2
1176 { (exit 1); exit 1; }; }
1179 # Find the source files, if location was not specified.
1180 if test -z "$srcdir"; then
1181 ac_srcdir_defaulted=yes
1182 # Try the directory containing this script, then the parent directory.
1183 ac_confdir=`$as_dirname -- "$0" ||
1184 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1185 X"$0" : 'X\(//\)[^/]' \| \
1186 X"$0" : 'X\(//\)$' \| \
1187 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1188 echo X"$0" |
1189 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1190 s//\1/
1193 /^X\(\/\/\)[^/].*/{
1194 s//\1/
1197 /^X\(\/\/\)$/{
1198 s//\1/
1201 /^X\(\/\).*/{
1202 s//\1/
1205 s/.*/./; q'`
1206 srcdir=$ac_confdir
1207 if test ! -r "$srcdir/$ac_unique_file"; then
1208 srcdir=..
1210 else
1211 ac_srcdir_defaulted=no
1213 if test ! -r "$srcdir/$ac_unique_file"; then
1214 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1215 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1216 { (exit 1); exit 1; }; }
1218 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1219 ac_abs_confdir=`(
1220 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1221 { (exit 1); exit 1; }; }
1222 pwd)`
1223 # When building in place, set srcdir=.
1224 if test "$ac_abs_confdir" = "$ac_pwd"; then
1225 srcdir=.
1227 # Remove unnecessary trailing slashes from srcdir.
1228 # Double slashes in file names in object file debugging info
1229 # mess up M-x gdb in Emacs.
1230 case $srcdir in
1231 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1232 esac
1233 for ac_var in $ac_precious_vars; do
1234 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1235 eval ac_env_${ac_var}_value=\$${ac_var}
1236 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1237 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1238 done
1241 # Report the --help message.
1243 if test "$ac_init_help" = "long"; then
1244 # Omit some internal or obsolete options to make the list less imposing.
1245 # This message is too long to be a string in the A/UX 3.1 sh.
1246 cat <<_ACEOF
1247 \`configure' configures python 2.6 to adapt to many kinds of systems.
1249 Usage: $0 [OPTION]... [VAR=VALUE]...
1251 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1252 VAR=VALUE. See below for descriptions of some of the useful variables.
1254 Defaults for the options are specified in brackets.
1256 Configuration:
1257 -h, --help display this help and exit
1258 --help=short display options specific to this package
1259 --help=recursive display the short help of all the included packages
1260 -V, --version display version information and exit
1261 -q, --quiet, --silent do not print \`checking...' messages
1262 --cache-file=FILE cache test results in FILE [disabled]
1263 -C, --config-cache alias for \`--cache-file=config.cache'
1264 -n, --no-create do not create output files
1265 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1267 Installation directories:
1268 --prefix=PREFIX install architecture-independent files in PREFIX
1269 [$ac_default_prefix]
1270 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1271 [PREFIX]
1273 By default, \`make install' will install all the files in
1274 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1275 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1276 for instance \`--prefix=\$HOME'.
1278 For better control, use the options below.
1280 Fine tuning of the installation directories:
1281 --bindir=DIR user executables [EPREFIX/bin]
1282 --sbindir=DIR system admin executables [EPREFIX/sbin]
1283 --libexecdir=DIR program executables [EPREFIX/libexec]
1284 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1285 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1286 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1287 --libdir=DIR object code libraries [EPREFIX/lib]
1288 --includedir=DIR C header files [PREFIX/include]
1289 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1290 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1291 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1292 --infodir=DIR info documentation [DATAROOTDIR/info]
1293 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1294 --mandir=DIR man documentation [DATAROOTDIR/man]
1295 --docdir=DIR documentation root [DATAROOTDIR/doc/python]
1296 --htmldir=DIR html documentation [DOCDIR]
1297 --dvidir=DIR dvi documentation [DOCDIR]
1298 --pdfdir=DIR pdf documentation [DOCDIR]
1299 --psdir=DIR ps documentation [DOCDIR]
1300 _ACEOF
1302 cat <<\_ACEOF
1303 _ACEOF
1306 if test -n "$ac_init_help"; then
1307 case $ac_init_help in
1308 short | recursive ) echo "Configuration of python 2.6:";;
1309 esac
1310 cat <<\_ACEOF
1312 Optional Features:
1313 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1314 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1315 --enable-universalsdk[SDKDIR]
1316 Build agains Mac OS X 10.4u SDK (ppc/i386)
1317 --enable-framework[=INSTALLDIR]
1318 Build (MacOSX|Darwin) framework
1319 --enable-shared disable/enable building shared python library
1320 --enable-profiling enable C-level code profiling
1321 --enable-toolbox-glue disable/enable MacOSX glue code for extensions
1322 --enable-ipv6 Enable ipv6 (with ipv4) support
1323 --disable-ipv6 Disable ipv6 support
1324 --enable-unicode[=ucs[24]]
1325 Enable Unicode strings (default is yes)
1327 Optional Packages:
1328 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1329 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1330 --without-gcc never use gcc
1331 --with-cxx-main=<compiler>
1332 compile main() and link python executable with C++
1333 compiler
1334 --with-suffix=.exe set executable suffix
1335 --with-pydebug build with Py_DEBUG defined
1336 --with-libs='lib1 ...' link against additional libs
1337 --with-system-ffi build _ctypes module using an installed ffi library
1338 --with-signal-module disable/enable signal module
1339 --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries
1340 --with(out)-threads[=DIRECTORY]
1341 disable/enable thread support
1342 --with(out)-thread[=DIRECTORY]
1343 deprecated; use --with(out)-threads
1344 --with-pth use GNU pth threading libraries
1345 --with(out)-doc-strings disable/enable documentation strings
1346 --with(out)-tsc enable/disable timestamp counter profile
1347 --with(out)-pymalloc disable/enable specialized mallocs
1348 --with-wctype-functions use wctype.h functions
1349 --with-fpectl enable SIGFPE catching
1350 --with-libm=STRING math library
1351 --with-libc=STRING C library
1353 Some influential environment variables:
1354 CC C compiler command
1355 CFLAGS C compiler flags
1356 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1357 nonstandard directory <lib dir>
1358 LIBS libraries to pass to the linker, e.g. -l<library>
1359 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1360 you have headers in a nonstandard directory <include dir>
1361 CPP C preprocessor
1363 Use these variables to override the choices made by `configure' or to help
1364 it to find libraries and programs with nonstandard names/locations.
1366 Report bugs to <http://www.python.org/python-bugs>.
1367 _ACEOF
1368 ac_status=$?
1371 if test "$ac_init_help" = "recursive"; then
1372 # If there are subdirs, report their specific --help.
1373 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1374 test -d "$ac_dir" || continue
1375 ac_builddir=.
1377 case "$ac_dir" in
1378 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1380 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1381 # A ".." for each directory in $ac_dir_suffix.
1382 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1383 case $ac_top_builddir_sub in
1384 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1385 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1386 esac ;;
1387 esac
1388 ac_abs_top_builddir=$ac_pwd
1389 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1390 # for backward compatibility:
1391 ac_top_builddir=$ac_top_build_prefix
1393 case $srcdir in
1394 .) # We are building in place.
1395 ac_srcdir=.
1396 ac_top_srcdir=$ac_top_builddir_sub
1397 ac_abs_top_srcdir=$ac_pwd ;;
1398 [\\/]* | ?:[\\/]* ) # Absolute name.
1399 ac_srcdir=$srcdir$ac_dir_suffix;
1400 ac_top_srcdir=$srcdir
1401 ac_abs_top_srcdir=$srcdir ;;
1402 *) # Relative name.
1403 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1404 ac_top_srcdir=$ac_top_build_prefix$srcdir
1405 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1406 esac
1407 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1409 cd "$ac_dir" || { ac_status=$?; continue; }
1410 # Check for guested configure.
1411 if test -f "$ac_srcdir/configure.gnu"; then
1412 echo &&
1413 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1414 elif test -f "$ac_srcdir/configure"; then
1415 echo &&
1416 $SHELL "$ac_srcdir/configure" --help=recursive
1417 else
1418 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1419 fi || ac_status=$?
1420 cd "$ac_pwd" || { ac_status=$?; break; }
1421 done
1424 test -n "$ac_init_help" && exit $ac_status
1425 if $ac_init_version; then
1426 cat <<\_ACEOF
1427 python configure 2.6
1428 generated by GNU Autoconf 2.61
1430 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1431 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1432 This configure script is free software; the Free Software Foundation
1433 gives unlimited permission to copy, distribute and modify it.
1434 _ACEOF
1435 exit
1437 cat >config.log <<_ACEOF
1438 This file contains any messages produced by compilers while
1439 running configure, to aid debugging if configure makes a mistake.
1441 It was created by python $as_me 2.6, which was
1442 generated by GNU Autoconf 2.61. Invocation command line was
1444 $ $0 $@
1446 _ACEOF
1447 exec 5>>config.log
1449 cat <<_ASUNAME
1450 ## --------- ##
1451 ## Platform. ##
1452 ## --------- ##
1454 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1455 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1456 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1457 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1458 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1460 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1461 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1463 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1464 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1465 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1466 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1467 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1468 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1469 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1471 _ASUNAME
1473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1474 for as_dir in $PATH
1476 IFS=$as_save_IFS
1477 test -z "$as_dir" && as_dir=.
1478 echo "PATH: $as_dir"
1479 done
1480 IFS=$as_save_IFS
1482 } >&5
1484 cat >&5 <<_ACEOF
1487 ## ----------- ##
1488 ## Core tests. ##
1489 ## ----------- ##
1491 _ACEOF
1494 # Keep a trace of the command line.
1495 # Strip out --no-create and --no-recursion so they do not pile up.
1496 # Strip out --silent because we don't want to record it for future runs.
1497 # Also quote any args containing shell meta-characters.
1498 # Make two passes to allow for proper duplicate-argument suppression.
1499 ac_configure_args=
1500 ac_configure_args0=
1501 ac_configure_args1=
1502 ac_must_keep_next=false
1503 for ac_pass in 1 2
1505 for ac_arg
1507 case $ac_arg in
1508 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1509 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1510 | -silent | --silent | --silen | --sile | --sil)
1511 continue ;;
1512 *\'*)
1513 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1514 esac
1515 case $ac_pass in
1516 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1518 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1519 if test $ac_must_keep_next = true; then
1520 ac_must_keep_next=false # Got value, back to normal.
1521 else
1522 case $ac_arg in
1523 *=* | --config-cache | -C | -disable-* | --disable-* \
1524 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1525 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1526 | -with-* | --with-* | -without-* | --without-* | --x)
1527 case "$ac_configure_args0 " in
1528 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1529 esac
1531 -* ) ac_must_keep_next=true ;;
1532 esac
1534 ac_configure_args="$ac_configure_args '$ac_arg'"
1536 esac
1537 done
1538 done
1539 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1540 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1542 # When interrupted or exit'd, cleanup temporary files, and complete
1543 # config.log. We remove comments because anyway the quotes in there
1544 # would cause problems or look ugly.
1545 # WARNING: Use '\'' to represent an apostrophe within the trap.
1546 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1547 trap 'exit_status=$?
1548 # Save into config.log some information that might help in debugging.
1550 echo
1552 cat <<\_ASBOX
1553 ## ---------------- ##
1554 ## Cache variables. ##
1555 ## ---------------- ##
1556 _ASBOX
1557 echo
1558 # The following way of writing the cache mishandles newlines in values,
1560 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1561 eval ac_val=\$$ac_var
1562 case $ac_val in #(
1563 *${as_nl}*)
1564 case $ac_var in #(
1565 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1566 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1567 esac
1568 case $ac_var in #(
1569 _ | IFS | as_nl) ;; #(
1570 *) $as_unset $ac_var ;;
1571 esac ;;
1572 esac
1573 done
1574 (set) 2>&1 |
1575 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1576 *${as_nl}ac_space=\ *)
1577 sed -n \
1578 "s/'\''/'\''\\\\'\'''\''/g;
1579 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1580 ;; #(
1582 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1584 esac |
1585 sort
1587 echo
1589 cat <<\_ASBOX
1590 ## ----------------- ##
1591 ## Output variables. ##
1592 ## ----------------- ##
1593 _ASBOX
1594 echo
1595 for ac_var in $ac_subst_vars
1597 eval ac_val=\$$ac_var
1598 case $ac_val in
1599 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1600 esac
1601 echo "$ac_var='\''$ac_val'\''"
1602 done | sort
1603 echo
1605 if test -n "$ac_subst_files"; then
1606 cat <<\_ASBOX
1607 ## ------------------- ##
1608 ## File substitutions. ##
1609 ## ------------------- ##
1610 _ASBOX
1611 echo
1612 for ac_var in $ac_subst_files
1614 eval ac_val=\$$ac_var
1615 case $ac_val in
1616 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1617 esac
1618 echo "$ac_var='\''$ac_val'\''"
1619 done | sort
1620 echo
1623 if test -s confdefs.h; then
1624 cat <<\_ASBOX
1625 ## ----------- ##
1626 ## confdefs.h. ##
1627 ## ----------- ##
1628 _ASBOX
1629 echo
1630 cat confdefs.h
1631 echo
1633 test "$ac_signal" != 0 &&
1634 echo "$as_me: caught signal $ac_signal"
1635 echo "$as_me: exit $exit_status"
1636 } >&5
1637 rm -f core *.core core.conftest.* &&
1638 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1639 exit $exit_status
1641 for ac_signal in 1 2 13 15; do
1642 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1643 done
1644 ac_signal=0
1646 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1647 rm -f -r conftest* confdefs.h
1649 # Predefined preprocessor variables.
1651 cat >>confdefs.h <<_ACEOF
1652 #define PACKAGE_NAME "$PACKAGE_NAME"
1653 _ACEOF
1656 cat >>confdefs.h <<_ACEOF
1657 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1658 _ACEOF
1661 cat >>confdefs.h <<_ACEOF
1662 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1663 _ACEOF
1666 cat >>confdefs.h <<_ACEOF
1667 #define PACKAGE_STRING "$PACKAGE_STRING"
1668 _ACEOF
1671 cat >>confdefs.h <<_ACEOF
1672 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1673 _ACEOF
1676 # Let the site file select an alternate cache file if it wants to.
1677 # Prefer explicitly selected file to automatically selected ones.
1678 if test -n "$CONFIG_SITE"; then
1679 set x "$CONFIG_SITE"
1680 elif test "x$prefix" != xNONE; then
1681 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1682 else
1683 set x "$ac_default_prefix/share/config.site" \
1684 "$ac_default_prefix/etc/config.site"
1686 shift
1687 for ac_site_file
1689 if test -r "$ac_site_file"; then
1690 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1691 echo "$as_me: loading site script $ac_site_file" >&6;}
1692 sed 's/^/| /' "$ac_site_file" >&5
1693 . "$ac_site_file"
1695 done
1697 if test -r "$cache_file"; then
1698 # Some versions of bash will fail to source /dev/null (special
1699 # files actually), so we avoid doing that.
1700 if test -f "$cache_file"; then
1701 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1702 echo "$as_me: loading cache $cache_file" >&6;}
1703 case $cache_file in
1704 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1705 *) . "./$cache_file";;
1706 esac
1708 else
1709 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1710 echo "$as_me: creating cache $cache_file" >&6;}
1711 >$cache_file
1714 # Check that the precious variables saved in the cache have kept the same
1715 # value.
1716 ac_cache_corrupted=false
1717 for ac_var in $ac_precious_vars; do
1718 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1719 eval ac_new_set=\$ac_env_${ac_var}_set
1720 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1721 eval ac_new_val=\$ac_env_${ac_var}_value
1722 case $ac_old_set,$ac_new_set in
1723 set,)
1724 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1725 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1726 ac_cache_corrupted=: ;;
1727 ,set)
1728 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1729 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1730 ac_cache_corrupted=: ;;
1731 ,);;
1733 if test "x$ac_old_val" != "x$ac_new_val"; then
1734 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1735 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1736 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1737 echo "$as_me: former value: $ac_old_val" >&2;}
1738 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1739 echo "$as_me: current value: $ac_new_val" >&2;}
1740 ac_cache_corrupted=:
1741 fi;;
1742 esac
1743 # Pass precious variables to config.status.
1744 if test "$ac_new_set" = set; then
1745 case $ac_new_val in
1746 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1747 *) ac_arg=$ac_var=$ac_new_val ;;
1748 esac
1749 case " $ac_configure_args " in
1750 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1751 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1752 esac
1754 done
1755 if $ac_cache_corrupted; then
1756 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1757 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1758 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1759 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1760 { (exit 1); exit 1; }; }
1787 ac_ext=c
1788 ac_cpp='$CPP $CPPFLAGS'
1789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1795 ac_config_headers="$ac_config_headers pyconfig.h"
1803 # We don't use PACKAGE_ variables, and they cause conflicts
1804 # with other autoconf-based packages that include Python.h
1805 grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
1806 rm confdefs.h
1807 mv confdefs.h.new confdefs.h
1810 VERSION=2.6
1813 SOVERSION=1.0
1815 # The later defininition of _XOPEN_SOURCE disables certain features
1816 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
1818 cat >>confdefs.h <<\_ACEOF
1819 #define _GNU_SOURCE 1
1820 _ACEOF
1823 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1824 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
1825 # them.
1827 cat >>confdefs.h <<\_ACEOF
1828 #define _NETBSD_SOURCE 1
1829 _ACEOF
1832 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1833 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
1834 # them.
1836 cat >>confdefs.h <<\_ACEOF
1837 #define __BSD_VISIBLE 1
1838 _ACEOF
1841 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
1842 # also defined. This can be overridden by defining _BSD_SOURCE
1844 cat >>confdefs.h <<\_ACEOF
1845 #define _BSD_SOURCE 1
1846 _ACEOF
1849 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1850 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
1852 cat >>confdefs.h <<\_ACEOF
1853 #define _BSD_TYPES 1
1854 _ACEOF
1857 define_xopen_source=yes
1859 # Arguments passed to configure.
1861 CONFIG_ARGS="$ac_configure_args"
1863 # Check whether --enable-universalsdk was given.
1864 if test "${enable_universalsdk+set}" = set; then
1865 enableval=$enable_universalsdk;
1866 case $enableval in
1867 yes)
1868 enableval=/Developer/SDKs/MacOSX10.4u.sdk
1870 esac
1871 case $enableval in
1873 UNIVERSALSDK=
1874 enable_universalsdk=
1877 UNIVERSALSDK=$enableval
1879 esac
1881 else
1883 UNIVERSALSDK=
1884 enable_universalsdk=
1890 # Check whether --enable-framework was given.
1891 if test "${enable_framework+set}" = set; then
1892 enableval=$enable_framework;
1893 case $enableval in
1894 yes)
1895 enableval=/Library/Frameworks
1896 esac
1897 case $enableval in
1899 PYTHONFRAMEWORK=
1900 PYTHONFRAMEWORKDIR=no-framework
1901 PYTHONFRAMEWORKPREFIX=
1902 PYTHONFRAMEWORKINSTALLDIR=
1903 FRAMEWORKINSTALLFIRST=
1904 FRAMEWORKINSTALLLAST=
1905 FRAMEWORKALTINSTALLFIRST=
1906 FRAMEWORKALTINSTALLLAST=
1907 if test "x${prefix}" = "xNONE"; then
1908 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1909 else
1910 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1912 enable_framework=
1915 PYTHONFRAMEWORK=Python
1916 PYTHONFRAMEWORKDIR=Python.framework
1917 PYTHONFRAMEWORKPREFIX=$enableval
1918 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
1919 FRAMEWORKINSTALLFIRST="frameworkinstallstructure"
1920 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools"
1921 FRAMEWORKALTINSTALLFIRST="${FRAMEWORKINSTALLFIRST} bininstall maninstall"
1922 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
1923 if test "x${prefix}" = "xNONE" ; then
1924 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1925 else
1926 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1928 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
1930 # Add makefiles for Mac specific code to the list of output
1931 # files:
1932 ac_config_files="$ac_config_files Mac/Makefile"
1934 ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile"
1936 ac_config_files="$ac_config_files Mac/IDLE/Makefile"
1938 esac
1940 else
1942 PYTHONFRAMEWORK=
1943 PYTHONFRAMEWORKDIR=no-framework
1944 PYTHONFRAMEWORKPREFIX=
1945 PYTHONFRAMEWORKINSTALLDIR=
1946 FRAMEWORKINSTALLFIRST=
1947 FRAMEWORKINSTALLLAST=
1948 FRAMEWORKALTINSTALLFIRST=
1949 FRAMEWORKALTINSTALLLAST=
1950 if test "x${prefix}" = "xNONE" ; then
1951 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1952 else
1953 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1955 enable_framework=
1969 ##AC_ARG_WITH(dyld,
1970 ## AC_HELP_STRING(--with-dyld,
1971 ## Use (OpenStep|Rhapsody) dynamic linker))
1973 # Set name for machine-dependent library files
1975 { echo "$as_me:$LINENO: checking MACHDEP" >&5
1976 echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6; }
1977 if test -z "$MACHDEP"
1978 then
1979 ac_sys_system=`uname -s`
1980 if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \
1981 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
1982 ac_sys_release=`uname -v`
1983 else
1984 ac_sys_release=`uname -r`
1986 ac_md_system=`echo $ac_sys_system |
1987 tr -d '/ ' | tr '[A-Z]' '[a-z]'`
1988 ac_md_release=`echo $ac_sys_release |
1989 tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'`
1990 MACHDEP="$ac_md_system$ac_md_release"
1992 case $MACHDEP in
1993 cygwin*) MACHDEP="cygwin";;
1994 darwin*) MACHDEP="darwin";;
1995 atheos*) MACHDEP="atheos";;
1996 irix646) MACHDEP="irix6";;
1997 '') MACHDEP="unknown";;
1998 esac
2001 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
2002 # disable features if it is defined, without any means to access these
2003 # features as extensions. For these systems, we skip the definition of
2004 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
2005 # some feature, make sure there is no alternative way to access this
2006 # feature. Also, when using wildcards, make sure you have verified the
2007 # need for not defining _XOPEN_SOURCE on all systems matching the
2008 # wildcard, and that the wildcard does not include future systems
2009 # (which may remove their limitations).
2010 case $ac_sys_system/$ac_sys_release in
2011 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
2012 # even though select is a POSIX function. Reported by J. Ribbens.
2013 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
2014 OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0])
2015 define_xopen_source=no;;
2016 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
2017 # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
2018 # Marc Recht
2019 NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6A-S)
2020 define_xopen_source=no;;
2021 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
2022 # of union __?sigval. Reported by Stuart Bishop.
2023 SunOS/5.6)
2024 define_xopen_source=no;;
2025 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
2026 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
2027 # Reconfirmed for 7.1.4 by Martin v. Loewis.
2028 OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
2029 define_xopen_source=no;;
2030 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
2031 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
2032 SCO_SV/3.2)
2033 define_xopen_source=no;;
2034 # On FreeBSD 4.8 and MacOS X 10.2, a bug in ncurses.h means that
2035 # it craps out if _XOPEN_EXTENDED_SOURCE is defined. Apparently,
2036 # this is fixed in 10.3, which identifies itself as Darwin/7.*
2037 # This should hopefully be fixed in FreeBSD 4.9
2038 FreeBSD/4.8* | Darwin/6* )
2039 define_xopen_source=no;;
2040 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
2041 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
2042 # or has another value. By not (re)defining it, the defaults come in place.
2043 AIX/4)
2044 define_xopen_source=no;;
2045 AIX/5)
2046 if test `uname -r` -eq 1; then
2047 define_xopen_source=no
2050 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2051 # disables platform specific features beyond repair.
2052 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2053 # has no effect, don't bother defining them
2054 Darwin/[789].*)
2055 define_xopen_source=no
2058 esac
2060 if test $define_xopen_source = yes
2061 then
2062 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
2063 # defined precisely as g++ defines it
2064 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
2065 # compiler
2066 case $ac_sys_system/$ac_sys_release in
2067 SunOS/5.8|SunOS/5.9|SunOS/5.10)
2069 cat >>confdefs.h <<\_ACEOF
2070 #define _XOPEN_SOURCE 500
2071 _ACEOF
2076 cat >>confdefs.h <<\_ACEOF
2077 #define _XOPEN_SOURCE 600
2078 _ACEOF
2081 esac
2083 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
2084 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
2085 # several APIs are not declared. Since this is also needed in some
2086 # cases for HP-UX, we define it globally.
2087 # except for Solaris 10, where it must not be defined,
2088 # as it implies XPG4.2
2089 case $ac_sys_system/$ac_sys_release in
2090 SunOS/5.10)
2094 cat >>confdefs.h <<\_ACEOF
2095 #define _XOPEN_SOURCE_EXTENDED 1
2096 _ACEOF
2099 esac
2102 cat >>confdefs.h <<\_ACEOF
2103 #define _POSIX_C_SOURCE 200112L
2104 _ACEOF
2110 # SGI compilers allow the specification of the both the ABI and the
2111 # ISA on the command line. Depending on the values of these switches,
2112 # different and often incompatable code will be generated.
2114 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
2115 # thus supply support for various ABI/ISA combinations. The MACHDEP
2116 # variable is also adjusted.
2119 if test ! -z "$SGI_ABI"
2120 then
2121 CC="cc $SGI_ABI"
2122 LDFLAGS="$SGI_ABI $LDFLAGS"
2123 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
2125 { echo "$as_me:$LINENO: result: $MACHDEP" >&5
2126 echo "${ECHO_T}$MACHDEP" >&6; }
2128 # And add extra plat-mac for darwin
2131 { echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5
2132 echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6; }
2133 if test -z "$EXTRAPLATDIR"
2134 then
2135 case $MACHDEP in
2136 darwin)
2137 EXTRAPLATDIR="\$(PLATMACDIRS)"
2138 EXTRAMACHDEPPATH="\$(PLATMACPATH)"
2141 EXTRAPLATDIR=""
2142 EXTRAMACHDEPPATH=""
2144 esac
2146 { echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5
2147 echo "${ECHO_T}$EXTRAPLATDIR" >&6; }
2149 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
2150 # it may influence the way we can build extensions, so distutils
2151 # needs to check it
2154 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
2155 EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
2157 # checks for alternative programs
2159 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
2160 # for debug/optimization stuff. BASECFLAGS is for flags that are required
2161 # just to get things to compile and link. Users are free to override OPT
2162 # when running configure or make. The build should not break if they do.
2163 # BASECFLAGS should generally not be messed with, however.
2165 # XXX shouldn't some/most/all of this code be merged with the stuff later
2166 # on that fiddles with OPT and BASECFLAGS?
2167 { echo "$as_me:$LINENO: checking for --without-gcc" >&5
2168 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6; }
2170 # Check whether --with-gcc was given.
2171 if test "${with_gcc+set}" = set; then
2172 withval=$with_gcc;
2173 case $withval in
2174 no) CC=cc
2175 without_gcc=yes;;
2176 yes) CC=gcc
2177 without_gcc=no;;
2178 *) CC=$withval
2179 without_gcc=$withval;;
2180 esac
2181 else
2183 case $ac_sys_system in
2184 AIX*) CC=cc_r
2185 without_gcc=;;
2186 BeOS*)
2187 case $BE_HOST_CPU in
2188 ppc)
2189 CC=mwcc
2190 without_gcc=yes
2191 BASECFLAGS="$BASECFLAGS -export pragma"
2192 OPT="$OPT -O"
2193 LDFLAGS="$LDFLAGS -nodup"
2195 x86)
2196 CC=gcc
2197 without_gcc=no
2198 OPT="$OPT -O"
2201 { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5
2202 echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;}
2203 { (exit 1); exit 1; }; }
2205 esac
2206 AR="\$(srcdir)/Modules/ar_beos"
2207 RANLIB=:
2209 Monterey*)
2210 RANLIB=:
2211 without_gcc=;;
2212 *) without_gcc=no;;
2213 esac
2216 { echo "$as_me:$LINENO: result: $without_gcc" >&5
2217 echo "${ECHO_T}$without_gcc" >&6; }
2219 # If the user switches compilers, we can't believe the cache
2220 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
2221 then
2222 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
2223 (it is also a good idea to do 'make clean' before compiling)" >&5
2224 echo "$as_me: error: cached CC is different -- throw away $cache_file
2225 (it is also a good idea to do 'make clean' before compiling)" >&2;}
2226 { (exit 1); exit 1; }; }
2229 ac_ext=c
2230 ac_cpp='$CPP $CPPFLAGS'
2231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2234 if test -n "$ac_tool_prefix"; then
2235 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2236 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2237 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2239 if test "${ac_cv_prog_CC+set}" = set; then
2240 echo $ECHO_N "(cached) $ECHO_C" >&6
2241 else
2242 if test -n "$CC"; then
2243 ac_cv_prog_CC="$CC" # Let the user override the test.
2244 else
2245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2246 for as_dir in $PATH
2248 IFS=$as_save_IFS
2249 test -z "$as_dir" && as_dir=.
2250 for ac_exec_ext in '' $ac_executable_extensions; do
2251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2252 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2254 break 2
2256 done
2257 done
2258 IFS=$as_save_IFS
2262 CC=$ac_cv_prog_CC
2263 if test -n "$CC"; then
2264 { echo "$as_me:$LINENO: result: $CC" >&5
2265 echo "${ECHO_T}$CC" >&6; }
2266 else
2267 { echo "$as_me:$LINENO: result: no" >&5
2268 echo "${ECHO_T}no" >&6; }
2273 if test -z "$ac_cv_prog_CC"; then
2274 ac_ct_CC=$CC
2275 # Extract the first word of "gcc", so it can be a program name with args.
2276 set dummy gcc; ac_word=$2
2277 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2279 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2280 echo $ECHO_N "(cached) $ECHO_C" >&6
2281 else
2282 if test -n "$ac_ct_CC"; then
2283 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2284 else
2285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2286 for as_dir in $PATH
2288 IFS=$as_save_IFS
2289 test -z "$as_dir" && as_dir=.
2290 for ac_exec_ext in '' $ac_executable_extensions; do
2291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2292 ac_cv_prog_ac_ct_CC="gcc"
2293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2294 break 2
2296 done
2297 done
2298 IFS=$as_save_IFS
2302 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2303 if test -n "$ac_ct_CC"; then
2304 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2305 echo "${ECHO_T}$ac_ct_CC" >&6; }
2306 else
2307 { echo "$as_me:$LINENO: result: no" >&5
2308 echo "${ECHO_T}no" >&6; }
2311 if test "x$ac_ct_CC" = x; then
2312 CC=""
2313 else
2314 case $cross_compiling:$ac_tool_warned in
2315 yes:)
2316 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2317 whose name does not start with the host triplet. If you think this
2318 configuration is useful to you, please write to autoconf@gnu.org." >&5
2319 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2320 whose name does not start with the host triplet. If you think this
2321 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2322 ac_tool_warned=yes ;;
2323 esac
2324 CC=$ac_ct_CC
2326 else
2327 CC="$ac_cv_prog_CC"
2330 if test -z "$CC"; then
2331 if test -n "$ac_tool_prefix"; then
2332 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2333 set dummy ${ac_tool_prefix}cc; ac_word=$2
2334 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2336 if test "${ac_cv_prog_CC+set}" = set; then
2337 echo $ECHO_N "(cached) $ECHO_C" >&6
2338 else
2339 if test -n "$CC"; then
2340 ac_cv_prog_CC="$CC" # Let the user override the test.
2341 else
2342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2343 for as_dir in $PATH
2345 IFS=$as_save_IFS
2346 test -z "$as_dir" && as_dir=.
2347 for ac_exec_ext in '' $ac_executable_extensions; do
2348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2349 ac_cv_prog_CC="${ac_tool_prefix}cc"
2350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2351 break 2
2353 done
2354 done
2355 IFS=$as_save_IFS
2359 CC=$ac_cv_prog_CC
2360 if test -n "$CC"; then
2361 { echo "$as_me:$LINENO: result: $CC" >&5
2362 echo "${ECHO_T}$CC" >&6; }
2363 else
2364 { echo "$as_me:$LINENO: result: no" >&5
2365 echo "${ECHO_T}no" >&6; }
2371 if test -z "$CC"; then
2372 # Extract the first word of "cc", so it can be a program name with args.
2373 set dummy cc; ac_word=$2
2374 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2376 if test "${ac_cv_prog_CC+set}" = set; then
2377 echo $ECHO_N "(cached) $ECHO_C" >&6
2378 else
2379 if test -n "$CC"; then
2380 ac_cv_prog_CC="$CC" # Let the user override the test.
2381 else
2382 ac_prog_rejected=no
2383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2384 for as_dir in $PATH
2386 IFS=$as_save_IFS
2387 test -z "$as_dir" && as_dir=.
2388 for ac_exec_ext in '' $ac_executable_extensions; do
2389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2390 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2391 ac_prog_rejected=yes
2392 continue
2394 ac_cv_prog_CC="cc"
2395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2396 break 2
2398 done
2399 done
2400 IFS=$as_save_IFS
2402 if test $ac_prog_rejected = yes; then
2403 # We found a bogon in the path, so make sure we never use it.
2404 set dummy $ac_cv_prog_CC
2405 shift
2406 if test $# != 0; then
2407 # We chose a different compiler from the bogus one.
2408 # However, it has the same basename, so the bogon will be chosen
2409 # first if we set CC to just the basename; use the full file name.
2410 shift
2411 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2416 CC=$ac_cv_prog_CC
2417 if test -n "$CC"; then
2418 { echo "$as_me:$LINENO: result: $CC" >&5
2419 echo "${ECHO_T}$CC" >&6; }
2420 else
2421 { echo "$as_me:$LINENO: result: no" >&5
2422 echo "${ECHO_T}no" >&6; }
2427 if test -z "$CC"; then
2428 if test -n "$ac_tool_prefix"; then
2429 for ac_prog in cl.exe
2431 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2432 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2433 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2435 if test "${ac_cv_prog_CC+set}" = set; then
2436 echo $ECHO_N "(cached) $ECHO_C" >&6
2437 else
2438 if test -n "$CC"; then
2439 ac_cv_prog_CC="$CC" # Let the user override the test.
2440 else
2441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2442 for as_dir in $PATH
2444 IFS=$as_save_IFS
2445 test -z "$as_dir" && as_dir=.
2446 for ac_exec_ext in '' $ac_executable_extensions; do
2447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2448 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2450 break 2
2452 done
2453 done
2454 IFS=$as_save_IFS
2458 CC=$ac_cv_prog_CC
2459 if test -n "$CC"; then
2460 { echo "$as_me:$LINENO: result: $CC" >&5
2461 echo "${ECHO_T}$CC" >&6; }
2462 else
2463 { echo "$as_me:$LINENO: result: no" >&5
2464 echo "${ECHO_T}no" >&6; }
2468 test -n "$CC" && break
2469 done
2471 if test -z "$CC"; then
2472 ac_ct_CC=$CC
2473 for ac_prog in cl.exe
2475 # Extract the first word of "$ac_prog", so it can be a program name with args.
2476 set dummy $ac_prog; ac_word=$2
2477 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2479 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2480 echo $ECHO_N "(cached) $ECHO_C" >&6
2481 else
2482 if test -n "$ac_ct_CC"; then
2483 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2484 else
2485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2486 for as_dir in $PATH
2488 IFS=$as_save_IFS
2489 test -z "$as_dir" && as_dir=.
2490 for ac_exec_ext in '' $ac_executable_extensions; do
2491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2492 ac_cv_prog_ac_ct_CC="$ac_prog"
2493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2494 break 2
2496 done
2497 done
2498 IFS=$as_save_IFS
2502 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2503 if test -n "$ac_ct_CC"; then
2504 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2505 echo "${ECHO_T}$ac_ct_CC" >&6; }
2506 else
2507 { echo "$as_me:$LINENO: result: no" >&5
2508 echo "${ECHO_T}no" >&6; }
2512 test -n "$ac_ct_CC" && break
2513 done
2515 if test "x$ac_ct_CC" = x; then
2516 CC=""
2517 else
2518 case $cross_compiling:$ac_tool_warned in
2519 yes:)
2520 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2521 whose name does not start with the host triplet. If you think this
2522 configuration is useful to you, please write to autoconf@gnu.org." >&5
2523 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2524 whose name does not start with the host triplet. If you think this
2525 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2526 ac_tool_warned=yes ;;
2527 esac
2528 CC=$ac_ct_CC
2535 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2536 See \`config.log' for more details." >&5
2537 echo "$as_me: error: no acceptable C compiler found in \$PATH
2538 See \`config.log' for more details." >&2;}
2539 { (exit 1); exit 1; }; }
2541 # Provide some information about the compiler.
2542 echo "$as_me:$LINENO: checking for C compiler version" >&5
2543 ac_compiler=`set X $ac_compile; echo $2`
2544 { (ac_try="$ac_compiler --version >&5"
2545 case "(($ac_try" in
2546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2547 *) ac_try_echo=$ac_try;;
2548 esac
2549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2550 (eval "$ac_compiler --version >&5") 2>&5
2551 ac_status=$?
2552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553 (exit $ac_status); }
2554 { (ac_try="$ac_compiler -v >&5"
2555 case "(($ac_try" in
2556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2557 *) ac_try_echo=$ac_try;;
2558 esac
2559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2560 (eval "$ac_compiler -v >&5") 2>&5
2561 ac_status=$?
2562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563 (exit $ac_status); }
2564 { (ac_try="$ac_compiler -V >&5"
2565 case "(($ac_try" in
2566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2567 *) ac_try_echo=$ac_try;;
2568 esac
2569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2570 (eval "$ac_compiler -V >&5") 2>&5
2571 ac_status=$?
2572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573 (exit $ac_status); }
2575 cat >conftest.$ac_ext <<_ACEOF
2576 /* confdefs.h. */
2577 _ACEOF
2578 cat confdefs.h >>conftest.$ac_ext
2579 cat >>conftest.$ac_ext <<_ACEOF
2580 /* end confdefs.h. */
2583 main ()
2587 return 0;
2589 _ACEOF
2590 ac_clean_files_save=$ac_clean_files
2591 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2592 # Try to create an executable without -o first, disregard a.out.
2593 # It will help us diagnose broken compilers, and finding out an intuition
2594 # of exeext.
2595 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2596 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2597 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2599 # List of possible output files, starting from the most likely.
2600 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2601 # only as a last resort. b.out is created by i960 compilers.
2602 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2604 # The IRIX 6 linker writes into existing files which may not be
2605 # executable, retaining their permissions. Remove them first so a
2606 # subsequent execution test works.
2607 ac_rmfiles=
2608 for ac_file in $ac_files
2610 case $ac_file in
2611 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2612 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2613 esac
2614 done
2615 rm -f $ac_rmfiles
2617 if { (ac_try="$ac_link_default"
2618 case "(($ac_try" in
2619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2620 *) ac_try_echo=$ac_try;;
2621 esac
2622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2623 (eval "$ac_link_default") 2>&5
2624 ac_status=$?
2625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626 (exit $ac_status); }; then
2627 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2628 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2629 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2630 # so that the user can short-circuit this test for compilers unknown to
2631 # Autoconf.
2632 for ac_file in $ac_files ''
2634 test -f "$ac_file" || continue
2635 case $ac_file in
2636 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2638 [ab].out )
2639 # We found the default executable, but exeext='' is most
2640 # certainly right.
2641 break;;
2642 *.* )
2643 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2644 then :; else
2645 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2647 # We set ac_cv_exeext here because the later test for it is not
2648 # safe: cross compilers may not add the suffix if given an `-o'
2649 # argument, so we may need to know it at that point already.
2650 # Even if this section looks crufty: it has the advantage of
2651 # actually working.
2652 break;;
2654 break;;
2655 esac
2656 done
2657 test "$ac_cv_exeext" = no && ac_cv_exeext=
2659 else
2660 ac_file=''
2663 { echo "$as_me:$LINENO: result: $ac_file" >&5
2664 echo "${ECHO_T}$ac_file" >&6; }
2665 if test -z "$ac_file"; then
2666 echo "$as_me: failed program was:" >&5
2667 sed 's/^/| /' conftest.$ac_ext >&5
2669 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2670 See \`config.log' for more details." >&5
2671 echo "$as_me: error: C compiler cannot create executables
2672 See \`config.log' for more details." >&2;}
2673 { (exit 77); exit 77; }; }
2676 ac_exeext=$ac_cv_exeext
2678 # Check that the compiler produces executables we can run. If not, either
2679 # the compiler is broken, or we cross compile.
2680 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2681 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2682 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2683 # If not cross compiling, check that we can run a simple program.
2684 if test "$cross_compiling" != yes; then
2685 if { ac_try='./$ac_file'
2686 { (case "(($ac_try" in
2687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2688 *) ac_try_echo=$ac_try;;
2689 esac
2690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2691 (eval "$ac_try") 2>&5
2692 ac_status=$?
2693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2694 (exit $ac_status); }; }; then
2695 cross_compiling=no
2696 else
2697 if test "$cross_compiling" = maybe; then
2698 cross_compiling=yes
2699 else
2700 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2701 If you meant to cross compile, use \`--host'.
2702 See \`config.log' for more details." >&5
2703 echo "$as_me: error: cannot run C compiled programs.
2704 If you meant to cross compile, use \`--host'.
2705 See \`config.log' for more details." >&2;}
2706 { (exit 1); exit 1; }; }
2710 { echo "$as_me:$LINENO: result: yes" >&5
2711 echo "${ECHO_T}yes" >&6; }
2713 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2714 ac_clean_files=$ac_clean_files_save
2715 # Check that the compiler produces executables we can run. If not, either
2716 # the compiler is broken, or we cross compile.
2717 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2718 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2719 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2720 echo "${ECHO_T}$cross_compiling" >&6; }
2722 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2723 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2724 if { (ac_try="$ac_link"
2725 case "(($ac_try" in
2726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2727 *) ac_try_echo=$ac_try;;
2728 esac
2729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2730 (eval "$ac_link") 2>&5
2731 ac_status=$?
2732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733 (exit $ac_status); }; then
2734 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2735 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2736 # work properly (i.e., refer to `conftest.exe'), while it won't with
2737 # `rm'.
2738 for ac_file in conftest.exe conftest conftest.*; do
2739 test -f "$ac_file" || continue
2740 case $ac_file in
2741 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2742 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2743 break;;
2744 * ) break;;
2745 esac
2746 done
2747 else
2748 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2749 See \`config.log' for more details." >&5
2750 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2751 See \`config.log' for more details." >&2;}
2752 { (exit 1); exit 1; }; }
2755 rm -f conftest$ac_cv_exeext
2756 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2757 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2759 rm -f conftest.$ac_ext
2760 EXEEXT=$ac_cv_exeext
2761 ac_exeext=$EXEEXT
2762 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2763 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2764 if test "${ac_cv_objext+set}" = set; then
2765 echo $ECHO_N "(cached) $ECHO_C" >&6
2766 else
2767 cat >conftest.$ac_ext <<_ACEOF
2768 /* confdefs.h. */
2769 _ACEOF
2770 cat confdefs.h >>conftest.$ac_ext
2771 cat >>conftest.$ac_ext <<_ACEOF
2772 /* end confdefs.h. */
2775 main ()
2779 return 0;
2781 _ACEOF
2782 rm -f conftest.o conftest.obj
2783 if { (ac_try="$ac_compile"
2784 case "(($ac_try" in
2785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2786 *) ac_try_echo=$ac_try;;
2787 esac
2788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2789 (eval "$ac_compile") 2>&5
2790 ac_status=$?
2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792 (exit $ac_status); }; then
2793 for ac_file in conftest.o conftest.obj conftest.*; do
2794 test -f "$ac_file" || continue;
2795 case $ac_file in
2796 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2797 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2798 break;;
2799 esac
2800 done
2801 else
2802 echo "$as_me: failed program was:" >&5
2803 sed 's/^/| /' conftest.$ac_ext >&5
2805 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2806 See \`config.log' for more details." >&5
2807 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2808 See \`config.log' for more details." >&2;}
2809 { (exit 1); exit 1; }; }
2812 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2814 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2815 echo "${ECHO_T}$ac_cv_objext" >&6; }
2816 OBJEXT=$ac_cv_objext
2817 ac_objext=$OBJEXT
2818 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2819 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2820 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2821 echo $ECHO_N "(cached) $ECHO_C" >&6
2822 else
2823 cat >conftest.$ac_ext <<_ACEOF
2824 /* confdefs.h. */
2825 _ACEOF
2826 cat confdefs.h >>conftest.$ac_ext
2827 cat >>conftest.$ac_ext <<_ACEOF
2828 /* end confdefs.h. */
2831 main ()
2833 #ifndef __GNUC__
2834 choke me
2835 #endif
2838 return 0;
2840 _ACEOF
2841 rm -f conftest.$ac_objext
2842 if { (ac_try="$ac_compile"
2843 case "(($ac_try" in
2844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2845 *) ac_try_echo=$ac_try;;
2846 esac
2847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2848 (eval "$ac_compile") 2>conftest.er1
2849 ac_status=$?
2850 grep -v '^ *+' conftest.er1 >conftest.err
2851 rm -f conftest.er1
2852 cat conftest.err >&5
2853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854 (exit $ac_status); } && {
2855 test -z "$ac_c_werror_flag" ||
2856 test ! -s conftest.err
2857 } && test -s conftest.$ac_objext; then
2858 ac_compiler_gnu=yes
2859 else
2860 echo "$as_me: failed program was:" >&5
2861 sed 's/^/| /' conftest.$ac_ext >&5
2863 ac_compiler_gnu=no
2866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2867 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2870 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2871 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2872 GCC=`test $ac_compiler_gnu = yes && echo yes`
2873 ac_test_CFLAGS=${CFLAGS+set}
2874 ac_save_CFLAGS=$CFLAGS
2875 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2876 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2877 if test "${ac_cv_prog_cc_g+set}" = set; then
2878 echo $ECHO_N "(cached) $ECHO_C" >&6
2879 else
2880 ac_save_c_werror_flag=$ac_c_werror_flag
2881 ac_c_werror_flag=yes
2882 ac_cv_prog_cc_g=no
2883 CFLAGS="-g"
2884 cat >conftest.$ac_ext <<_ACEOF
2885 /* confdefs.h. */
2886 _ACEOF
2887 cat confdefs.h >>conftest.$ac_ext
2888 cat >>conftest.$ac_ext <<_ACEOF
2889 /* end confdefs.h. */
2892 main ()
2896 return 0;
2898 _ACEOF
2899 rm -f conftest.$ac_objext
2900 if { (ac_try="$ac_compile"
2901 case "(($ac_try" in
2902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2903 *) ac_try_echo=$ac_try;;
2904 esac
2905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2906 (eval "$ac_compile") 2>conftest.er1
2907 ac_status=$?
2908 grep -v '^ *+' conftest.er1 >conftest.err
2909 rm -f conftest.er1
2910 cat conftest.err >&5
2911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912 (exit $ac_status); } && {
2913 test -z "$ac_c_werror_flag" ||
2914 test ! -s conftest.err
2915 } && test -s conftest.$ac_objext; then
2916 ac_cv_prog_cc_g=yes
2917 else
2918 echo "$as_me: failed program was:" >&5
2919 sed 's/^/| /' conftest.$ac_ext >&5
2921 CFLAGS=""
2922 cat >conftest.$ac_ext <<_ACEOF
2923 /* confdefs.h. */
2924 _ACEOF
2925 cat confdefs.h >>conftest.$ac_ext
2926 cat >>conftest.$ac_ext <<_ACEOF
2927 /* end confdefs.h. */
2930 main ()
2934 return 0;
2936 _ACEOF
2937 rm -f conftest.$ac_objext
2938 if { (ac_try="$ac_compile"
2939 case "(($ac_try" in
2940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2941 *) ac_try_echo=$ac_try;;
2942 esac
2943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2944 (eval "$ac_compile") 2>conftest.er1
2945 ac_status=$?
2946 grep -v '^ *+' conftest.er1 >conftest.err
2947 rm -f conftest.er1
2948 cat conftest.err >&5
2949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950 (exit $ac_status); } && {
2951 test -z "$ac_c_werror_flag" ||
2952 test ! -s conftest.err
2953 } && test -s conftest.$ac_objext; then
2955 else
2956 echo "$as_me: failed program was:" >&5
2957 sed 's/^/| /' conftest.$ac_ext >&5
2959 ac_c_werror_flag=$ac_save_c_werror_flag
2960 CFLAGS="-g"
2961 cat >conftest.$ac_ext <<_ACEOF
2962 /* confdefs.h. */
2963 _ACEOF
2964 cat confdefs.h >>conftest.$ac_ext
2965 cat >>conftest.$ac_ext <<_ACEOF
2966 /* end confdefs.h. */
2969 main ()
2973 return 0;
2975 _ACEOF
2976 rm -f conftest.$ac_objext
2977 if { (ac_try="$ac_compile"
2978 case "(($ac_try" in
2979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2980 *) ac_try_echo=$ac_try;;
2981 esac
2982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2983 (eval "$ac_compile") 2>conftest.er1
2984 ac_status=$?
2985 grep -v '^ *+' conftest.er1 >conftest.err
2986 rm -f conftest.er1
2987 cat conftest.err >&5
2988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989 (exit $ac_status); } && {
2990 test -z "$ac_c_werror_flag" ||
2991 test ! -s conftest.err
2992 } && test -s conftest.$ac_objext; then
2993 ac_cv_prog_cc_g=yes
2994 else
2995 echo "$as_me: failed program was:" >&5
2996 sed 's/^/| /' conftest.$ac_ext >&5
3001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3008 ac_c_werror_flag=$ac_save_c_werror_flag
3010 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3011 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3012 if test "$ac_test_CFLAGS" = set; then
3013 CFLAGS=$ac_save_CFLAGS
3014 elif test $ac_cv_prog_cc_g = yes; then
3015 if test "$GCC" = yes; then
3016 CFLAGS="-g -O2"
3017 else
3018 CFLAGS="-g"
3020 else
3021 if test "$GCC" = yes; then
3022 CFLAGS="-O2"
3023 else
3024 CFLAGS=
3027 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3028 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3029 if test "${ac_cv_prog_cc_c89+set}" = set; then
3030 echo $ECHO_N "(cached) $ECHO_C" >&6
3031 else
3032 ac_cv_prog_cc_c89=no
3033 ac_save_CC=$CC
3034 cat >conftest.$ac_ext <<_ACEOF
3035 /* confdefs.h. */
3036 _ACEOF
3037 cat confdefs.h >>conftest.$ac_ext
3038 cat >>conftest.$ac_ext <<_ACEOF
3039 /* end confdefs.h. */
3040 #include <stdarg.h>
3041 #include <stdio.h>
3042 #include <sys/types.h>
3043 #include <sys/stat.h>
3044 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3045 struct buf { int x; };
3046 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3047 static char *e (p, i)
3048 char **p;
3049 int i;
3051 return p[i];
3053 static char *f (char * (*g) (char **, int), char **p, ...)
3055 char *s;
3056 va_list v;
3057 va_start (v,p);
3058 s = g (p, va_arg (v,int));
3059 va_end (v);
3060 return s;
3063 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3064 function prototypes and stuff, but not '\xHH' hex character constants.
3065 These don't provoke an error unfortunately, instead are silently treated
3066 as 'x'. The following induces an error, until -std is added to get
3067 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3068 array size at least. It's necessary to write '\x00'==0 to get something
3069 that's true only with -std. */
3070 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3072 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3073 inside strings and character constants. */
3074 #define FOO(x) 'x'
3075 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3077 int test (int i, double x);
3078 struct s1 {int (*f) (int a);};
3079 struct s2 {int (*f) (double a);};
3080 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3081 int argc;
3082 char **argv;
3084 main ()
3086 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3088 return 0;
3090 _ACEOF
3091 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3092 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3094 CC="$ac_save_CC $ac_arg"
3095 rm -f conftest.$ac_objext
3096 if { (ac_try="$ac_compile"
3097 case "(($ac_try" in
3098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3099 *) ac_try_echo=$ac_try;;
3100 esac
3101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3102 (eval "$ac_compile") 2>conftest.er1
3103 ac_status=$?
3104 grep -v '^ *+' conftest.er1 >conftest.err
3105 rm -f conftest.er1
3106 cat conftest.err >&5
3107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108 (exit $ac_status); } && {
3109 test -z "$ac_c_werror_flag" ||
3110 test ! -s conftest.err
3111 } && test -s conftest.$ac_objext; then
3112 ac_cv_prog_cc_c89=$ac_arg
3113 else
3114 echo "$as_me: failed program was:" >&5
3115 sed 's/^/| /' conftest.$ac_ext >&5
3120 rm -f core conftest.err conftest.$ac_objext
3121 test "x$ac_cv_prog_cc_c89" != "xno" && break
3122 done
3123 rm -f conftest.$ac_ext
3124 CC=$ac_save_CC
3127 # AC_CACHE_VAL
3128 case "x$ac_cv_prog_cc_c89" in
3130 { echo "$as_me:$LINENO: result: none needed" >&5
3131 echo "${ECHO_T}none needed" >&6; } ;;
3132 xno)
3133 { echo "$as_me:$LINENO: result: unsupported" >&5
3134 echo "${ECHO_T}unsupported" >&6; } ;;
3136 CC="$CC $ac_cv_prog_cc_c89"
3137 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3138 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3139 esac
3142 ac_ext=c
3143 ac_cpp='$CPP $CPPFLAGS'
3144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3151 { echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5
3152 echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6; }
3154 # Check whether --with-cxx_main was given.
3155 if test "${with_cxx_main+set}" = set; then
3156 withval=$with_cxx_main;
3158 case $withval in
3159 no) with_cxx_main=no
3160 MAINCC='$(CC)';;
3161 yes) with_cxx_main=yes
3162 MAINCC='$(CXX)';;
3163 *) with_cxx_main=yes
3164 MAINCC=$withval
3165 if test -z "$CXX"
3166 then
3167 CXX=$withval
3168 fi;;
3169 esac
3170 else
3172 with_cxx_main=no
3173 MAINCC='$(CC)'
3177 { echo "$as_me:$LINENO: result: $with_cxx_main" >&5
3178 echo "${ECHO_T}$with_cxx_main" >&6; }
3180 preset_cxx="$CXX"
3181 if test -z "$CXX"
3182 then
3183 case "$CC" in
3184 gcc) # Extract the first word of "g++", so it can be a program name with args.
3185 set dummy g++; ac_word=$2
3186 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3188 if test "${ac_cv_path_CXX+set}" = set; then
3189 echo $ECHO_N "(cached) $ECHO_C" >&6
3190 else
3191 case $CXX in
3192 [\\/]* | ?:[\\/]*)
3193 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3197 for as_dir in notfound
3199 IFS=$as_save_IFS
3200 test -z "$as_dir" && as_dir=.
3201 for ac_exec_ext in '' $ac_executable_extensions; do
3202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3203 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3205 break 2
3207 done
3208 done
3209 IFS=$as_save_IFS
3211 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="g++"
3213 esac
3215 CXX=$ac_cv_path_CXX
3216 if test -n "$CXX"; then
3217 { echo "$as_me:$LINENO: result: $CXX" >&5
3218 echo "${ECHO_T}$CXX" >&6; }
3219 else
3220 { echo "$as_me:$LINENO: result: no" >&5
3221 echo "${ECHO_T}no" >&6; }
3225 cc) # Extract the first word of "c++", so it can be a program name with args.
3226 set dummy c++; ac_word=$2
3227 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3229 if test "${ac_cv_path_CXX+set}" = set; then
3230 echo $ECHO_N "(cached) $ECHO_C" >&6
3231 else
3232 case $CXX in
3233 [\\/]* | ?:[\\/]*)
3234 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3238 for as_dir in notfound
3240 IFS=$as_save_IFS
3241 test -z "$as_dir" && as_dir=.
3242 for ac_exec_ext in '' $ac_executable_extensions; do
3243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3244 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3246 break 2
3248 done
3249 done
3250 IFS=$as_save_IFS
3252 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="c++"
3254 esac
3256 CXX=$ac_cv_path_CXX
3257 if test -n "$CXX"; then
3258 { echo "$as_me:$LINENO: result: $CXX" >&5
3259 echo "${ECHO_T}$CXX" >&6; }
3260 else
3261 { echo "$as_me:$LINENO: result: no" >&5
3262 echo "${ECHO_T}no" >&6; }
3266 esac
3267 if test "$CXX" = "notfound"
3268 then
3269 CXX=""
3272 if test -z "$CXX"
3273 then
3274 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
3276 # Extract the first word of "$ac_prog", so it can be a program name with args.
3277 set dummy $ac_prog; ac_word=$2
3278 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3280 if test "${ac_cv_prog_CXX+set}" = set; then
3281 echo $ECHO_N "(cached) $ECHO_C" >&6
3282 else
3283 if test -n "$CXX"; then
3284 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3285 else
3286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3287 for as_dir in $PATH
3289 IFS=$as_save_IFS
3290 test -z "$as_dir" && as_dir=.
3291 for ac_exec_ext in '' $ac_executable_extensions; do
3292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3293 ac_cv_prog_CXX="$ac_prog"
3294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3295 break 2
3297 done
3298 done
3299 IFS=$as_save_IFS
3303 CXX=$ac_cv_prog_CXX
3304 if test -n "$CXX"; then
3305 { echo "$as_me:$LINENO: result: $CXX" >&5
3306 echo "${ECHO_T}$CXX" >&6; }
3307 else
3308 { echo "$as_me:$LINENO: result: no" >&5
3309 echo "${ECHO_T}no" >&6; }
3313 test -n "$CXX" && break
3314 done
3315 test -n "$CXX" || CXX="notfound"
3317 if test "$CXX" = "notfound"
3318 then
3319 CXX=""
3322 if test "$preset_cxx" != "$CXX"
3323 then
3324 { echo "$as_me:$LINENO: WARNING:
3326 By default, distutils will build C++ extension modules with \"$CXX\".
3327 If this is not intended, then set CXX on the configure command line.
3328 " >&5
3329 echo "$as_me: WARNING:
3331 By default, distutils will build C++ extension modules with \"$CXX\".
3332 If this is not intended, then set CXX on the configure command line.
3333 " >&2;}
3337 # checks for UNIX variants that set C preprocessor variables
3339 ac_ext=c
3340 ac_cpp='$CPP $CPPFLAGS'
3341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3344 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3345 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3346 # On Suns, sometimes $CPP names a directory.
3347 if test -n "$CPP" && test -d "$CPP"; then
3348 CPP=
3350 if test -z "$CPP"; then
3351 if test "${ac_cv_prog_CPP+set}" = set; then
3352 echo $ECHO_N "(cached) $ECHO_C" >&6
3353 else
3354 # Double quotes because CPP needs to be expanded
3355 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3357 ac_preproc_ok=false
3358 for ac_c_preproc_warn_flag in '' yes
3360 # Use a header file that comes with gcc, so configuring glibc
3361 # with a fresh cross-compiler works.
3362 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3363 # <limits.h> exists even on freestanding compilers.
3364 # On the NeXT, cc -E runs the code through the compiler's parser,
3365 # not just through cpp. "Syntax error" is here to catch this case.
3366 cat >conftest.$ac_ext <<_ACEOF
3367 /* confdefs.h. */
3368 _ACEOF
3369 cat confdefs.h >>conftest.$ac_ext
3370 cat >>conftest.$ac_ext <<_ACEOF
3371 /* end confdefs.h. */
3372 #ifdef __STDC__
3373 # include <limits.h>
3374 #else
3375 # include <assert.h>
3376 #endif
3377 Syntax error
3378 _ACEOF
3379 if { (ac_try="$ac_cpp conftest.$ac_ext"
3380 case "(($ac_try" in
3381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3382 *) ac_try_echo=$ac_try;;
3383 esac
3384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3385 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3386 ac_status=$?
3387 grep -v '^ *+' conftest.er1 >conftest.err
3388 rm -f conftest.er1
3389 cat conftest.err >&5
3390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391 (exit $ac_status); } >/dev/null && {
3392 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3393 test ! -s conftest.err
3394 }; then
3396 else
3397 echo "$as_me: failed program was:" >&5
3398 sed 's/^/| /' conftest.$ac_ext >&5
3400 # Broken: fails on valid input.
3401 continue
3404 rm -f conftest.err conftest.$ac_ext
3406 # OK, works on sane cases. Now check whether nonexistent headers
3407 # can be detected and how.
3408 cat >conftest.$ac_ext <<_ACEOF
3409 /* confdefs.h. */
3410 _ACEOF
3411 cat confdefs.h >>conftest.$ac_ext
3412 cat >>conftest.$ac_ext <<_ACEOF
3413 /* end confdefs.h. */
3414 #include <ac_nonexistent.h>
3415 _ACEOF
3416 if { (ac_try="$ac_cpp conftest.$ac_ext"
3417 case "(($ac_try" in
3418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3419 *) ac_try_echo=$ac_try;;
3420 esac
3421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3422 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3423 ac_status=$?
3424 grep -v '^ *+' conftest.er1 >conftest.err
3425 rm -f conftest.er1
3426 cat conftest.err >&5
3427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3428 (exit $ac_status); } >/dev/null && {
3429 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3430 test ! -s conftest.err
3431 }; then
3432 # Broken: success on invalid input.
3433 continue
3434 else
3435 echo "$as_me: failed program was:" >&5
3436 sed 's/^/| /' conftest.$ac_ext >&5
3438 # Passes both tests.
3439 ac_preproc_ok=:
3440 break
3443 rm -f conftest.err conftest.$ac_ext
3445 done
3446 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3447 rm -f conftest.err conftest.$ac_ext
3448 if $ac_preproc_ok; then
3449 break
3452 done
3453 ac_cv_prog_CPP=$CPP
3456 CPP=$ac_cv_prog_CPP
3457 else
3458 ac_cv_prog_CPP=$CPP
3460 { echo "$as_me:$LINENO: result: $CPP" >&5
3461 echo "${ECHO_T}$CPP" >&6; }
3462 ac_preproc_ok=false
3463 for ac_c_preproc_warn_flag in '' yes
3465 # Use a header file that comes with gcc, so configuring glibc
3466 # with a fresh cross-compiler works.
3467 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3468 # <limits.h> exists even on freestanding compilers.
3469 # On the NeXT, cc -E runs the code through the compiler's parser,
3470 # not just through cpp. "Syntax error" is here to catch this case.
3471 cat >conftest.$ac_ext <<_ACEOF
3472 /* confdefs.h. */
3473 _ACEOF
3474 cat confdefs.h >>conftest.$ac_ext
3475 cat >>conftest.$ac_ext <<_ACEOF
3476 /* end confdefs.h. */
3477 #ifdef __STDC__
3478 # include <limits.h>
3479 #else
3480 # include <assert.h>
3481 #endif
3482 Syntax error
3483 _ACEOF
3484 if { (ac_try="$ac_cpp conftest.$ac_ext"
3485 case "(($ac_try" in
3486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3487 *) ac_try_echo=$ac_try;;
3488 esac
3489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3490 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3491 ac_status=$?
3492 grep -v '^ *+' conftest.er1 >conftest.err
3493 rm -f conftest.er1
3494 cat conftest.err >&5
3495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3496 (exit $ac_status); } >/dev/null && {
3497 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3498 test ! -s conftest.err
3499 }; then
3501 else
3502 echo "$as_me: failed program was:" >&5
3503 sed 's/^/| /' conftest.$ac_ext >&5
3505 # Broken: fails on valid input.
3506 continue
3509 rm -f conftest.err conftest.$ac_ext
3511 # OK, works on sane cases. Now check whether nonexistent headers
3512 # can be detected and how.
3513 cat >conftest.$ac_ext <<_ACEOF
3514 /* confdefs.h. */
3515 _ACEOF
3516 cat confdefs.h >>conftest.$ac_ext
3517 cat >>conftest.$ac_ext <<_ACEOF
3518 /* end confdefs.h. */
3519 #include <ac_nonexistent.h>
3520 _ACEOF
3521 if { (ac_try="$ac_cpp conftest.$ac_ext"
3522 case "(($ac_try" in
3523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3524 *) ac_try_echo=$ac_try;;
3525 esac
3526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3527 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3528 ac_status=$?
3529 grep -v '^ *+' conftest.er1 >conftest.err
3530 rm -f conftest.er1
3531 cat conftest.err >&5
3532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533 (exit $ac_status); } >/dev/null && {
3534 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3535 test ! -s conftest.err
3536 }; then
3537 # Broken: success on invalid input.
3538 continue
3539 else
3540 echo "$as_me: failed program was:" >&5
3541 sed 's/^/| /' conftest.$ac_ext >&5
3543 # Passes both tests.
3544 ac_preproc_ok=:
3545 break
3548 rm -f conftest.err conftest.$ac_ext
3550 done
3551 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3552 rm -f conftest.err conftest.$ac_ext
3553 if $ac_preproc_ok; then
3555 else
3556 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3557 See \`config.log' for more details." >&5
3558 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3559 See \`config.log' for more details." >&2;}
3560 { (exit 1); exit 1; }; }
3563 ac_ext=c
3564 ac_cpp='$CPP $CPPFLAGS'
3565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3570 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3571 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3572 if test "${ac_cv_path_GREP+set}" = set; then
3573 echo $ECHO_N "(cached) $ECHO_C" >&6
3574 else
3575 # Extract the first word of "grep ggrep" to use in msg output
3576 if test -z "$GREP"; then
3577 set dummy grep ggrep; ac_prog_name=$2
3578 if test "${ac_cv_path_GREP+set}" = set; then
3579 echo $ECHO_N "(cached) $ECHO_C" >&6
3580 else
3581 ac_path_GREP_found=false
3582 # Loop through the user's path and test for each of PROGNAME-LIST
3583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3584 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3586 IFS=$as_save_IFS
3587 test -z "$as_dir" && as_dir=.
3588 for ac_prog in grep ggrep; do
3589 for ac_exec_ext in '' $ac_executable_extensions; do
3590 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3591 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3592 # Check for GNU ac_path_GREP and select it if it is found.
3593 # Check for GNU $ac_path_GREP
3594 case `"$ac_path_GREP" --version 2>&1` in
3595 *GNU*)
3596 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3598 ac_count=0
3599 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3600 while :
3602 cat "conftest.in" "conftest.in" >"conftest.tmp"
3603 mv "conftest.tmp" "conftest.in"
3604 cp "conftest.in" "conftest.nl"
3605 echo 'GREP' >> "conftest.nl"
3606 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3607 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3608 ac_count=`expr $ac_count + 1`
3609 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3610 # Best one so far, save it but keep looking for a better one
3611 ac_cv_path_GREP="$ac_path_GREP"
3612 ac_path_GREP_max=$ac_count
3614 # 10*(2^10) chars as input seems more than enough
3615 test $ac_count -gt 10 && break
3616 done
3617 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3618 esac
3621 $ac_path_GREP_found && break 3
3622 done
3623 done
3625 done
3626 IFS=$as_save_IFS
3631 GREP="$ac_cv_path_GREP"
3632 if test -z "$GREP"; then
3633 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3634 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3635 { (exit 1); exit 1; }; }
3638 else
3639 ac_cv_path_GREP=$GREP
3644 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3645 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3646 GREP="$ac_cv_path_GREP"
3649 { echo "$as_me:$LINENO: checking for egrep" >&5
3650 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3651 if test "${ac_cv_path_EGREP+set}" = set; then
3652 echo $ECHO_N "(cached) $ECHO_C" >&6
3653 else
3654 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3655 then ac_cv_path_EGREP="$GREP -E"
3656 else
3657 # Extract the first word of "egrep" to use in msg output
3658 if test -z "$EGREP"; then
3659 set dummy egrep; ac_prog_name=$2
3660 if test "${ac_cv_path_EGREP+set}" = set; then
3661 echo $ECHO_N "(cached) $ECHO_C" >&6
3662 else
3663 ac_path_EGREP_found=false
3664 # Loop through the user's path and test for each of PROGNAME-LIST
3665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3666 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3668 IFS=$as_save_IFS
3669 test -z "$as_dir" && as_dir=.
3670 for ac_prog in egrep; do
3671 for ac_exec_ext in '' $ac_executable_extensions; do
3672 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3673 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3674 # Check for GNU ac_path_EGREP and select it if it is found.
3675 # Check for GNU $ac_path_EGREP
3676 case `"$ac_path_EGREP" --version 2>&1` in
3677 *GNU*)
3678 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3680 ac_count=0
3681 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3682 while :
3684 cat "conftest.in" "conftest.in" >"conftest.tmp"
3685 mv "conftest.tmp" "conftest.in"
3686 cp "conftest.in" "conftest.nl"
3687 echo 'EGREP' >> "conftest.nl"
3688 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3689 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3690 ac_count=`expr $ac_count + 1`
3691 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3692 # Best one so far, save it but keep looking for a better one
3693 ac_cv_path_EGREP="$ac_path_EGREP"
3694 ac_path_EGREP_max=$ac_count
3696 # 10*(2^10) chars as input seems more than enough
3697 test $ac_count -gt 10 && break
3698 done
3699 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3700 esac
3703 $ac_path_EGREP_found && break 3
3704 done
3705 done
3707 done
3708 IFS=$as_save_IFS
3713 EGREP="$ac_cv_path_EGREP"
3714 if test -z "$EGREP"; then
3715 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3716 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3717 { (exit 1); exit 1; }; }
3720 else
3721 ac_cv_path_EGREP=$EGREP
3727 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3728 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3729 EGREP="$ac_cv_path_EGREP"
3733 { echo "$as_me:$LINENO: checking for AIX" >&5
3734 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3735 cat >conftest.$ac_ext <<_ACEOF
3736 /* confdefs.h. */
3737 _ACEOF
3738 cat confdefs.h >>conftest.$ac_ext
3739 cat >>conftest.$ac_ext <<_ACEOF
3740 /* end confdefs.h. */
3741 #ifdef _AIX
3743 #endif
3745 _ACEOF
3746 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3747 $EGREP "yes" >/dev/null 2>&1; then
3748 { echo "$as_me:$LINENO: result: yes" >&5
3749 echo "${ECHO_T}yes" >&6; }
3750 cat >>confdefs.h <<\_ACEOF
3751 #define _ALL_SOURCE 1
3752 _ACEOF
3754 else
3755 { echo "$as_me:$LINENO: result: no" >&5
3756 echo "${ECHO_T}no" >&6; }
3758 rm -f conftest*
3762 # Check for unsupported systems
3763 case $ac_sys_system/$ac_sys_release in
3764 atheos*|Linux*/1*)
3765 echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported.
3766 echo See README for details.
3767 exit 1;;
3768 esac
3771 { echo "$as_me:$LINENO: checking for --with-suffix" >&5
3772 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6; }
3774 # Check whether --with-suffix was given.
3775 if test "${with_suffix+set}" = set; then
3776 withval=$with_suffix;
3777 case $withval in
3778 no) EXEEXT=;;
3779 yes) EXEEXT=.exe;;
3780 *) EXEEXT=$withval;;
3781 esac
3784 { echo "$as_me:$LINENO: result: $EXEEXT" >&5
3785 echo "${ECHO_T}$EXEEXT" >&6; }
3787 # Test whether we're running on a non-case-sensitive system, in which
3788 # case we give a warning if no ext is given
3790 { echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3791 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6; }
3792 if test ! -d CaseSensitiveTestDir; then
3793 mkdir CaseSensitiveTestDir
3796 if test -d casesensitivetestdir
3797 then
3798 { echo "$as_me:$LINENO: result: yes" >&5
3799 echo "${ECHO_T}yes" >&6; }
3800 BUILDEXEEXT=.exe
3801 else
3802 { echo "$as_me:$LINENO: result: no" >&5
3803 echo "${ECHO_T}no" >&6; }
3804 BUILDEXEEXT=$EXEEXT
3806 rmdir CaseSensitiveTestDir
3808 case $MACHDEP in
3809 bsdos*)
3810 case $CC in
3811 gcc) CC="$CC -D_HAVE_BSDI";;
3812 esac;;
3813 esac
3815 case $ac_sys_system in
3816 hp*|HP*)
3817 case $CC in
3818 cc|*/cc) CC="$CC -Ae";;
3819 esac;;
3820 Monterey*)
3821 case $CC in
3822 cc) CC="$CC -Wl,-Bexport";;
3823 esac;;
3824 SunOS*)
3825 # Some functions have a prototype only with that define, e.g. confstr
3827 cat >>confdefs.h <<\_ACEOF
3828 #define __EXTENSIONS__ 1
3829 _ACEOF
3832 esac
3836 { echo "$as_me:$LINENO: checking LIBRARY" >&5
3837 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6; }
3838 if test -z "$LIBRARY"
3839 then
3840 LIBRARY='libpython$(VERSION).a'
3842 { echo "$as_me:$LINENO: result: $LIBRARY" >&5
3843 echo "${ECHO_T}$LIBRARY" >&6; }
3845 # LDLIBRARY is the name of the library to link against (as opposed to the
3846 # name of the library into which to insert object files). BLDLIBRARY is also
3847 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3848 # is blank as the main program is not linked directly against LDLIBRARY.
3849 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3850 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3851 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3852 # DLLLIBRARY is the shared (i.e., DLL) library.
3854 # RUNSHARED is used to run shared python without installed libraries
3856 # INSTSONAME is the name of the shared library that will be use to install
3857 # on the system - some systems like version suffix, others don't
3864 LDLIBRARY="$LIBRARY"
3865 BLDLIBRARY='$(LDLIBRARY)'
3866 INSTSONAME='$(LDLIBRARY)'
3867 DLLLIBRARY=''
3868 LDLIBRARYDIR=''
3869 RUNSHARED=''
3871 # LINKCC is the command that links the python executable -- default is $(CC).
3872 # If CXX is set, and if it is needed to link a main function that was
3873 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3874 # python might then depend on the C++ runtime
3875 # This is altered for AIX in order to build the export list before
3876 # linking.
3878 { echo "$as_me:$LINENO: checking LINKCC" >&5
3879 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6; }
3880 if test -z "$LINKCC"
3881 then
3882 LINKCC='$(PURIFY) $(MAINCC)'
3883 case $ac_sys_system in
3884 AIX*)
3885 exp_extra="\"\""
3886 if test $ac_sys_release -ge 5 -o \
3887 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3888 exp_extra="."
3890 LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3891 Monterey64*)
3892 LINKCC="$LINKCC -L/usr/lib/ia64l64";;
3893 esac
3895 { echo "$as_me:$LINENO: result: $LINKCC" >&5
3896 echo "${ECHO_T}$LINKCC" >&6; }
3898 { echo "$as_me:$LINENO: checking for --enable-shared" >&5
3899 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6; }
3900 # Check whether --enable-shared was given.
3901 if test "${enable_shared+set}" = set; then
3902 enableval=$enable_shared;
3906 if test -z "$enable_shared"
3907 then
3908 case $ac_sys_system in
3909 CYGWIN* | atheos*)
3910 enable_shared="yes";;
3912 enable_shared="no";;
3913 esac
3915 { echo "$as_me:$LINENO: result: $enable_shared" >&5
3916 echo "${ECHO_T}$enable_shared" >&6; }
3918 { echo "$as_me:$LINENO: checking for --enable-profiling" >&5
3919 echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6; }
3920 # Check whether --enable-profiling was given.
3921 if test "${enable_profiling+set}" = set; then
3922 enableval=$enable_profiling; ac_save_cc="$CC"
3923 CC="$CC -pg"
3924 if test "$cross_compiling" = yes; then
3925 ac_enable_profiling="no"
3926 else
3927 cat >conftest.$ac_ext <<_ACEOF
3928 /* confdefs.h. */
3929 _ACEOF
3930 cat confdefs.h >>conftest.$ac_ext
3931 cat >>conftest.$ac_ext <<_ACEOF
3932 /* end confdefs.h. */
3933 int main() { return 0; }
3934 _ACEOF
3935 rm -f conftest$ac_exeext
3936 if { (ac_try="$ac_link"
3937 case "(($ac_try" in
3938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3939 *) ac_try_echo=$ac_try;;
3940 esac
3941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3942 (eval "$ac_link") 2>&5
3943 ac_status=$?
3944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3945 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3946 { (case "(($ac_try" in
3947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3948 *) ac_try_echo=$ac_try;;
3949 esac
3950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3951 (eval "$ac_try") 2>&5
3952 ac_status=$?
3953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3954 (exit $ac_status); }; }; then
3955 ac_enable_profiling="yes"
3956 else
3957 echo "$as_me: program exited with status $ac_status" >&5
3958 echo "$as_me: failed program was:" >&5
3959 sed 's/^/| /' conftest.$ac_ext >&5
3961 ( exit $ac_status )
3962 ac_enable_profiling="no"
3964 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3968 CC="$ac_save_cc"
3971 { echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
3972 echo "${ECHO_T}$ac_enable_profiling" >&6; }
3974 case "$ac_enable_profiling" in
3975 "yes")
3976 BASECFLAGS="-pg $BASECFLAGS"
3977 LDFLAGS="-pg $LDFLAGS"
3979 esac
3981 { echo "$as_me:$LINENO: checking LDLIBRARY" >&5
3982 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6; }
3984 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
3985 # library that we build, but we do not want to link against it (we
3986 # will find it with a -framework option). For this reason there is an
3987 # extra variable BLDLIBRARY against which Python and the extension
3988 # modules are linked, BLDLIBRARY. This is normally the same as
3989 # LDLIBRARY, but empty for MacOSX framework builds.
3990 if test "$enable_framework"
3991 then
3992 LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
3993 RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH"
3994 BLDLIBRARY=''
3995 else
3996 BLDLIBRARY='$(LDLIBRARY)'
3999 # Other platforms follow
4000 if test $enable_shared = "yes"; then
4002 cat >>confdefs.h <<\_ACEOF
4003 #define Py_ENABLE_SHARED 1
4004 _ACEOF
4006 case $ac_sys_system in
4007 BeOS*)
4008 LDLIBRARY='libpython$(VERSION).so'
4010 CYGWIN*)
4011 LDLIBRARY='libpython$(VERSION).dll.a'
4012 DLLLIBRARY='libpython$(VERSION).dll'
4014 SunOS*)
4015 LDLIBRARY='libpython$(VERSION).so'
4016 BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
4017 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4018 INSTSONAME="$LDLIBRARY".$SOVERSION
4020 Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*)
4021 LDLIBRARY='libpython$(VERSION).so'
4022 BLDLIBRARY='-L. -lpython$(VERSION)'
4023 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4024 case $ac_sys_system in
4025 FreeBSD*)
4026 SOVERSION=`echo $SOVERSION|cut -d "." -f 1`
4028 esac
4029 INSTSONAME="$LDLIBRARY".$SOVERSION
4031 hp*|HP*)
4032 case `uname -m` in
4033 ia64)
4034 LDLIBRARY='libpython$(VERSION).so'
4037 LDLIBRARY='libpython$(VERSION).sl'
4039 esac
4040 BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
4041 RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH}
4043 OSF*)
4044 LDLIBRARY='libpython$(VERSION).so'
4045 BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
4046 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4048 atheos*)
4049 LDLIBRARY='libpython$(VERSION).so'
4050 BLDLIBRARY='-L. -lpython$(VERSION)'
4051 RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
4053 esac
4054 else # shared is disabled
4055 case $ac_sys_system in
4056 CYGWIN*)
4057 BLDLIBRARY='$(LIBRARY)'
4058 LDLIBRARY='libpython$(VERSION).dll.a'
4060 esac
4063 { echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
4064 echo "${ECHO_T}$LDLIBRARY" >&6; }
4066 if test -n "$ac_tool_prefix"; then
4067 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4068 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4069 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4071 if test "${ac_cv_prog_RANLIB+set}" = set; then
4072 echo $ECHO_N "(cached) $ECHO_C" >&6
4073 else
4074 if test -n "$RANLIB"; then
4075 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4076 else
4077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4078 for as_dir in $PATH
4080 IFS=$as_save_IFS
4081 test -z "$as_dir" && as_dir=.
4082 for ac_exec_ext in '' $ac_executable_extensions; do
4083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4084 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4086 break 2
4088 done
4089 done
4090 IFS=$as_save_IFS
4094 RANLIB=$ac_cv_prog_RANLIB
4095 if test -n "$RANLIB"; then
4096 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4097 echo "${ECHO_T}$RANLIB" >&6; }
4098 else
4099 { echo "$as_me:$LINENO: result: no" >&5
4100 echo "${ECHO_T}no" >&6; }
4105 if test -z "$ac_cv_prog_RANLIB"; then
4106 ac_ct_RANLIB=$RANLIB
4107 # Extract the first word of "ranlib", so it can be a program name with args.
4108 set dummy ranlib; ac_word=$2
4109 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4111 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4112 echo $ECHO_N "(cached) $ECHO_C" >&6
4113 else
4114 if test -n "$ac_ct_RANLIB"; then
4115 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4116 else
4117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4118 for as_dir in $PATH
4120 IFS=$as_save_IFS
4121 test -z "$as_dir" && as_dir=.
4122 for ac_exec_ext in '' $ac_executable_extensions; do
4123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4124 ac_cv_prog_ac_ct_RANLIB="ranlib"
4125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4126 break 2
4128 done
4129 done
4130 IFS=$as_save_IFS
4134 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4135 if test -n "$ac_ct_RANLIB"; then
4136 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4137 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4138 else
4139 { echo "$as_me:$LINENO: result: no" >&5
4140 echo "${ECHO_T}no" >&6; }
4143 if test "x$ac_ct_RANLIB" = x; then
4144 RANLIB=":"
4145 else
4146 case $cross_compiling:$ac_tool_warned in
4147 yes:)
4148 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4149 whose name does not start with the host triplet. If you think this
4150 configuration is useful to you, please write to autoconf@gnu.org." >&5
4151 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4152 whose name does not start with the host triplet. If you think this
4153 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4154 ac_tool_warned=yes ;;
4155 esac
4156 RANLIB=$ac_ct_RANLIB
4158 else
4159 RANLIB="$ac_cv_prog_RANLIB"
4163 for ac_prog in ar aal
4165 # Extract the first word of "$ac_prog", so it can be a program name with args.
4166 set dummy $ac_prog; ac_word=$2
4167 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4169 if test "${ac_cv_prog_AR+set}" = set; then
4170 echo $ECHO_N "(cached) $ECHO_C" >&6
4171 else
4172 if test -n "$AR"; then
4173 ac_cv_prog_AR="$AR" # Let the user override the test.
4174 else
4175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4176 for as_dir in $PATH
4178 IFS=$as_save_IFS
4179 test -z "$as_dir" && as_dir=.
4180 for ac_exec_ext in '' $ac_executable_extensions; do
4181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4182 ac_cv_prog_AR="$ac_prog"
4183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4184 break 2
4186 done
4187 done
4188 IFS=$as_save_IFS
4192 AR=$ac_cv_prog_AR
4193 if test -n "$AR"; then
4194 { echo "$as_me:$LINENO: result: $AR" >&5
4195 echo "${ECHO_T}$AR" >&6; }
4196 else
4197 { echo "$as_me:$LINENO: result: no" >&5
4198 echo "${ECHO_T}no" >&6; }
4202 test -n "$AR" && break
4203 done
4204 test -n "$AR" || AR="ar"
4208 # Extract the first word of "svnversion", so it can be a program name with args.
4209 set dummy svnversion; ac_word=$2
4210 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4212 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
4213 echo $ECHO_N "(cached) $ECHO_C" >&6
4214 else
4215 if test -n "$SVNVERSION"; then
4216 ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test.
4217 else
4218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4219 for as_dir in $PATH
4221 IFS=$as_save_IFS
4222 test -z "$as_dir" && as_dir=.
4223 for ac_exec_ext in '' $ac_executable_extensions; do
4224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4225 ac_cv_prog_SVNVERSION="found"
4226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4227 break 2
4229 done
4230 done
4231 IFS=$as_save_IFS
4233 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION="not-found"
4236 SVNVERSION=$ac_cv_prog_SVNVERSION
4237 if test -n "$SVNVERSION"; then
4238 { echo "$as_me:$LINENO: result: $SVNVERSION" >&5
4239 echo "${ECHO_T}$SVNVERSION" >&6; }
4240 else
4241 { echo "$as_me:$LINENO: result: no" >&5
4242 echo "${ECHO_T}no" >&6; }
4246 if test $SVNVERSION = found
4247 then
4248 SVNVERSION="svnversion \$(srcdir)"
4249 else
4250 SVNVERSION="echo exported"
4253 case $MACHDEP in
4254 bsdos*|hp*|HP*)
4255 # install -d does not work on BSDI or HP-UX
4256 if test -z "$INSTALL"
4257 then
4258 INSTALL="${srcdir}/install-sh -c"
4260 esac
4261 ac_aux_dir=
4262 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4263 if test -f "$ac_dir/install-sh"; then
4264 ac_aux_dir=$ac_dir
4265 ac_install_sh="$ac_aux_dir/install-sh -c"
4266 break
4267 elif test -f "$ac_dir/install.sh"; then
4268 ac_aux_dir=$ac_dir
4269 ac_install_sh="$ac_aux_dir/install.sh -c"
4270 break
4271 elif test -f "$ac_dir/shtool"; then
4272 ac_aux_dir=$ac_dir
4273 ac_install_sh="$ac_aux_dir/shtool install -c"
4274 break
4276 done
4277 if test -z "$ac_aux_dir"; then
4278 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4279 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4280 { (exit 1); exit 1; }; }
4283 # These three variables are undocumented and unsupported,
4284 # and are intended to be withdrawn in a future Autoconf release.
4285 # They can cause serious problems if a builder's source tree is in a directory
4286 # whose full name contains unusual characters.
4287 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4288 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4289 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4292 # Find a good install program. We prefer a C program (faster),
4293 # so one script is as good as another. But avoid the broken or
4294 # incompatible versions:
4295 # SysV /etc/install, /usr/sbin/install
4296 # SunOS /usr/etc/install
4297 # IRIX /sbin/install
4298 # AIX /bin/install
4299 # AmigaOS /C/install, which installs bootblocks on floppy discs
4300 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4301 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4302 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4303 # OS/2's system install, which has a completely different semantic
4304 # ./install, which can be erroneously created by make from ./install.sh.
4305 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4306 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4307 if test -z "$INSTALL"; then
4308 if test "${ac_cv_path_install+set}" = set; then
4309 echo $ECHO_N "(cached) $ECHO_C" >&6
4310 else
4311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4312 for as_dir in $PATH
4314 IFS=$as_save_IFS
4315 test -z "$as_dir" && as_dir=.
4316 # Account for people who put trailing slashes in PATH elements.
4317 case $as_dir/ in
4318 ./ | .// | /cC/* | \
4319 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4320 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4321 /usr/ucb/* ) ;;
4323 # OSF1 and SCO ODT 3.0 have their own names for install.
4324 # Don't use installbsd from OSF since it installs stuff as root
4325 # by default.
4326 for ac_prog in ginstall scoinst install; do
4327 for ac_exec_ext in '' $ac_executable_extensions; do
4328 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4329 if test $ac_prog = install &&
4330 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4331 # AIX install. It has an incompatible calling convention.
4333 elif test $ac_prog = install &&
4334 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4335 # program-specific install script used by HP pwplus--don't use.
4337 else
4338 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4339 break 3
4342 done
4343 done
4345 esac
4346 done
4347 IFS=$as_save_IFS
4351 if test "${ac_cv_path_install+set}" = set; then
4352 INSTALL=$ac_cv_path_install
4353 else
4354 # As a last resort, use the slow shell script. Don't cache a
4355 # value for INSTALL within a source directory, because that will
4356 # break other packages using the cache if that directory is
4357 # removed, or if the value is a relative name.
4358 INSTALL=$ac_install_sh
4361 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4362 echo "${ECHO_T}$INSTALL" >&6; }
4364 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4365 # It thinks the first close brace ends the variable substitution.
4366 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4368 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4370 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4373 # Not every filesystem supports hard links
4375 if test -z "$LN" ; then
4376 case $ac_sys_system in
4377 BeOS*) LN="ln -s";;
4378 CYGWIN*) LN="ln -s";;
4379 atheos*) LN="ln -s";;
4380 *) LN=ln;;
4381 esac
4384 # Check for --with-pydebug
4385 { echo "$as_me:$LINENO: checking for --with-pydebug" >&5
4386 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6; }
4388 # Check whether --with-pydebug was given.
4389 if test "${with_pydebug+set}" = set; then
4390 withval=$with_pydebug;
4391 if test "$withval" != no
4392 then
4394 cat >>confdefs.h <<\_ACEOF
4395 #define Py_DEBUG 1
4396 _ACEOF
4398 { echo "$as_me:$LINENO: result: yes" >&5
4399 echo "${ECHO_T}yes" >&6; };
4400 Py_DEBUG='true'
4401 else { echo "$as_me:$LINENO: result: no" >&5
4402 echo "${ECHO_T}no" >&6; }; Py_DEBUG='false'
4404 else
4405 { echo "$as_me:$LINENO: result: no" >&5
4406 echo "${ECHO_T}no" >&6; }
4410 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
4411 # merged with this chunk of code?
4413 # Optimizer/debugger flags
4414 # ------------------------
4415 # (The following bit of code is complicated enough - please keep things
4416 # indented properly. Just pretend you're editing Python code. ;-)
4418 # There are two parallel sets of case statements below, one that checks to
4419 # see if OPT was set and one that does BASECFLAGS setting based upon
4420 # compiler and platform. BASECFLAGS tweaks need to be made even if the
4421 # user set OPT.
4423 # tweak OPT based on compiler and platform, only if the user didn't set
4424 # it on the command line
4426 if test -z "$OPT"
4427 then
4428 case $GCC in
4429 yes)
4430 if test "$CC" != 'g++' ; then
4431 STRICT_PROTO="-Wstrict-prototypes"
4433 case $ac_cv_prog_cc_g in
4434 yes)
4435 if test "$Py_DEBUG" = 'true' ; then
4436 # Optimization messes up debuggers, so turn it off for
4437 # debug builds.
4438 OPT="-g -Wall $STRICT_PROTO"
4439 else
4440 OPT="-g -O3 -Wall $STRICT_PROTO"
4444 OPT="-O3 -Wall $STRICT_PROTO"
4446 esac
4447 case $ac_sys_system in
4448 SCO_SV*) OPT="$OPT -m486 -DSCO5"
4450 esac
4454 OPT="-O"
4456 esac
4458 # The current (beta) Monterey compiler dies with optimizations
4459 # XXX what is Monterey? Does it still die w/ -O? Can we get rid of this?
4460 case $ac_sys_system in
4461 Monterey*)
4462 OPT=""
4464 esac
4469 # tweak BASECFLAGS based on compiler and platform
4470 case $GCC in
4471 yes)
4472 # Python violates C99 rules, by casting between incompatible
4473 # pointer types. GCC may generate bad code as a result of that,
4474 # so use -fno-strict-aliasing if supported.
4475 { echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
4476 echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6; }
4477 ac_save_cc="$CC"
4478 CC="$CC -fno-strict-aliasing"
4479 if test "$cross_compiling" = yes; then
4480 ac_cv_no_strict_aliasing_ok=no
4481 else
4482 cat >conftest.$ac_ext <<_ACEOF
4483 /* confdefs.h. */
4484 _ACEOF
4485 cat confdefs.h >>conftest.$ac_ext
4486 cat >>conftest.$ac_ext <<_ACEOF
4487 /* end confdefs.h. */
4488 int main() { return 0; }
4489 _ACEOF
4490 rm -f conftest$ac_exeext
4491 if { (ac_try="$ac_link"
4492 case "(($ac_try" in
4493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4494 *) ac_try_echo=$ac_try;;
4495 esac
4496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4497 (eval "$ac_link") 2>&5
4498 ac_status=$?
4499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4500 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4501 { (case "(($ac_try" in
4502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4503 *) ac_try_echo=$ac_try;;
4504 esac
4505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4506 (eval "$ac_try") 2>&5
4507 ac_status=$?
4508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509 (exit $ac_status); }; }; then
4510 ac_cv_no_strict_aliasing_ok=yes
4511 else
4512 echo "$as_me: program exited with status $ac_status" >&5
4513 echo "$as_me: failed program was:" >&5
4514 sed 's/^/| /' conftest.$ac_ext >&5
4516 ( exit $ac_status )
4517 ac_cv_no_strict_aliasing_ok=no
4519 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4523 CC="$ac_save_cc"
4524 { echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
4525 echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6; }
4526 if test $ac_cv_no_strict_aliasing_ok = yes
4527 then
4528 BASECFLAGS="$BASECFLAGS -fno-strict-aliasing"
4530 case $ac_sys_system in
4531 SCO_SV*)
4532 BASECFLAGS="$BASECFLAGS -m486 -DSCO5"
4534 # is there any other compiler on Darwin besides gcc?
4535 Darwin*)
4536 BASECFLAGS="$BASECFLAGS -Wno-long-double -no-cpp-precomp -mno-fused-madd"
4537 if test "${enable_universalsdk}"; then
4538 BASECFLAGS="-arch ppc -arch i386 -isysroot ${UNIVERSALSDK} ${BASECFLAGS}"
4542 OSF*)
4543 BASECFLAGS="$BASECFLAGS -mieee"
4545 esac
4549 case $ac_sys_system in
4550 OpenUNIX*|UnixWare*)
4551 BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
4553 OSF*)
4554 BASECFLAGS="$BASECFLAGS -ieee -std"
4556 SCO_SV*)
4557 BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5"
4559 esac
4561 esac
4563 if test "$Py_DEBUG" = 'true'; then
4565 else
4566 OPT="-DNDEBUG $OPT"
4569 if test "$ac_arch_flags"
4570 then
4571 BASECFLAGS="$BASECFLAGS $ac_arch_flags"
4574 # disable check for icc since it seems to pass, but generates a warning
4575 if test "$CC" = icc
4576 then
4577 ac_cv_opt_olimit_ok=no
4580 { echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
4581 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6; }
4582 if test "${ac_cv_opt_olimit_ok+set}" = set; then
4583 echo $ECHO_N "(cached) $ECHO_C" >&6
4584 else
4585 ac_save_cc="$CC"
4586 CC="$CC -OPT:Olimit=0"
4587 if test "$cross_compiling" = yes; then
4588 ac_cv_opt_olimit_ok=no
4589 else
4590 cat >conftest.$ac_ext <<_ACEOF
4591 /* confdefs.h. */
4592 _ACEOF
4593 cat confdefs.h >>conftest.$ac_ext
4594 cat >>conftest.$ac_ext <<_ACEOF
4595 /* end confdefs.h. */
4596 int main() { return 0; }
4597 _ACEOF
4598 rm -f conftest$ac_exeext
4599 if { (ac_try="$ac_link"
4600 case "(($ac_try" in
4601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4602 *) ac_try_echo=$ac_try;;
4603 esac
4604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4605 (eval "$ac_link") 2>&5
4606 ac_status=$?
4607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4609 { (case "(($ac_try" in
4610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4611 *) ac_try_echo=$ac_try;;
4612 esac
4613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4614 (eval "$ac_try") 2>&5
4615 ac_status=$?
4616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617 (exit $ac_status); }; }; then
4618 ac_cv_opt_olimit_ok=yes
4619 else
4620 echo "$as_me: program exited with status $ac_status" >&5
4621 echo "$as_me: failed program was:" >&5
4622 sed 's/^/| /' conftest.$ac_ext >&5
4624 ( exit $ac_status )
4625 ac_cv_opt_olimit_ok=no
4627 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4631 CC="$ac_save_cc"
4634 { echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
4635 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6; }
4636 if test $ac_cv_opt_olimit_ok = yes; then
4637 case $ac_sys_system in
4638 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
4639 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
4640 # environment?
4641 Darwin*)
4644 BASECFLAGS="$BASECFLAGS -OPT:Olimit=0"
4646 esac
4647 else
4648 { echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
4649 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6; }
4650 if test "${ac_cv_olimit_ok+set}" = set; then
4651 echo $ECHO_N "(cached) $ECHO_C" >&6
4652 else
4653 ac_save_cc="$CC"
4654 CC="$CC -Olimit 1500"
4655 if test "$cross_compiling" = yes; then
4656 ac_cv_olimit_ok=no
4657 else
4658 cat >conftest.$ac_ext <<_ACEOF
4659 /* confdefs.h. */
4660 _ACEOF
4661 cat confdefs.h >>conftest.$ac_ext
4662 cat >>conftest.$ac_ext <<_ACEOF
4663 /* end confdefs.h. */
4664 int main() { return 0; }
4665 _ACEOF
4666 rm -f conftest$ac_exeext
4667 if { (ac_try="$ac_link"
4668 case "(($ac_try" in
4669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4670 *) ac_try_echo=$ac_try;;
4671 esac
4672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4673 (eval "$ac_link") 2>&5
4674 ac_status=$?
4675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4676 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4677 { (case "(($ac_try" in
4678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4679 *) ac_try_echo=$ac_try;;
4680 esac
4681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4682 (eval "$ac_try") 2>&5
4683 ac_status=$?
4684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685 (exit $ac_status); }; }; then
4686 ac_cv_olimit_ok=yes
4687 else
4688 echo "$as_me: program exited with status $ac_status" >&5
4689 echo "$as_me: failed program was:" >&5
4690 sed 's/^/| /' conftest.$ac_ext >&5
4692 ( exit $ac_status )
4693 ac_cv_olimit_ok=no
4695 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4699 CC="$ac_save_cc"
4702 { echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
4703 echo "${ECHO_T}$ac_cv_olimit_ok" >&6; }
4704 if test $ac_cv_olimit_ok = yes; then
4705 BASECFLAGS="$BASECFLAGS -Olimit 1500"
4709 # Check whether GCC supports PyArg_ParseTuple format
4710 if test "$GCC" = "yes"
4711 then
4712 { echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5
4713 echo $ECHO_N "checking whether gcc supports ParseTuple __format__... $ECHO_C" >&6; }
4714 save_CFLAGS=$CFLAGS
4715 CFLAGS="$CFLAGS -Werror"
4716 cat >conftest.$ac_ext <<_ACEOF
4717 /* confdefs.h. */
4718 _ACEOF
4719 cat confdefs.h >>conftest.$ac_ext
4720 cat >>conftest.$ac_ext <<_ACEOF
4721 /* end confdefs.h. */
4723 void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2)));
4726 main ()
4730 return 0;
4732 _ACEOF
4733 rm -f conftest.$ac_objext
4734 if { (ac_try="$ac_compile"
4735 case "(($ac_try" in
4736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4737 *) ac_try_echo=$ac_try;;
4738 esac
4739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4740 (eval "$ac_compile") 2>conftest.er1
4741 ac_status=$?
4742 grep -v '^ *+' conftest.er1 >conftest.err
4743 rm -f conftest.er1
4744 cat conftest.err >&5
4745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4746 (exit $ac_status); } && {
4747 test -z "$ac_c_werror_flag" ||
4748 test ! -s conftest.err
4749 } && test -s conftest.$ac_objext; then
4751 cat >>confdefs.h <<\_ACEOF
4752 #define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1
4753 _ACEOF
4755 { echo "$as_me:$LINENO: result: yes" >&5
4756 echo "${ECHO_T}yes" >&6; }
4757 else
4758 echo "$as_me: failed program was:" >&5
4759 sed 's/^/| /' conftest.$ac_ext >&5
4761 { echo "$as_me:$LINENO: result: no" >&5
4762 echo "${ECHO_T}no" >&6; }
4766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4767 CFLAGS=$save_CFLAGS
4770 # On some compilers, pthreads are available without further options
4771 # (e.g. MacOS X). On some of these systems, the compiler will not
4772 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
4773 # So we have to see first whether pthreads are available without
4774 # options before we can check whether -Kpthread improves anything.
4775 { echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
4776 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6; }
4777 if test "${ac_cv_pthread_is_default+set}" = set; then
4778 echo $ECHO_N "(cached) $ECHO_C" >&6
4779 else
4780 if test "$cross_compiling" = yes; then
4781 ac_cv_pthread_is_default=no
4782 else
4783 cat >conftest.$ac_ext <<_ACEOF
4784 /* confdefs.h. */
4785 _ACEOF
4786 cat confdefs.h >>conftest.$ac_ext
4787 cat >>conftest.$ac_ext <<_ACEOF
4788 /* end confdefs.h. */
4790 #include <pthread.h>
4792 void* routine(void* p){return NULL;}
4794 int main(){
4795 pthread_t p;
4796 if(pthread_create(&p,NULL,routine,NULL)!=0)
4797 return 1;
4798 (void)pthread_detach(p);
4799 return 0;
4802 _ACEOF
4803 rm -f conftest$ac_exeext
4804 if { (ac_try="$ac_link"
4805 case "(($ac_try" in
4806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4807 *) ac_try_echo=$ac_try;;
4808 esac
4809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4810 (eval "$ac_link") 2>&5
4811 ac_status=$?
4812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4813 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4814 { (case "(($ac_try" in
4815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4816 *) ac_try_echo=$ac_try;;
4817 esac
4818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4819 (eval "$ac_try") 2>&5
4820 ac_status=$?
4821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822 (exit $ac_status); }; }; then
4824 ac_cv_pthread_is_default=yes
4825 ac_cv_kthread=no
4826 ac_cv_pthread=no
4828 else
4829 echo "$as_me: program exited with status $ac_status" >&5
4830 echo "$as_me: failed program was:" >&5
4831 sed 's/^/| /' conftest.$ac_ext >&5
4833 ( exit $ac_status )
4834 ac_cv_pthread_is_default=no
4836 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4843 { echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
4844 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6; }
4847 if test $ac_cv_pthread_is_default = yes
4848 then
4849 ac_cv_kpthread=no
4850 else
4851 # -Kpthread, if available, provides the right #defines
4852 # and linker options to make pthread_create available
4853 # Some compilers won't report that they do not support -Kpthread,
4854 # so we need to run a program to see whether it really made the
4855 # function available.
4856 { echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
4857 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6; }
4858 if test "${ac_cv_kpthread+set}" = set; then
4859 echo $ECHO_N "(cached) $ECHO_C" >&6
4860 else
4861 ac_save_cc="$CC"
4862 CC="$CC -Kpthread"
4863 if test "$cross_compiling" = yes; then
4864 ac_cv_kpthread=no
4865 else
4866 cat >conftest.$ac_ext <<_ACEOF
4867 /* confdefs.h. */
4868 _ACEOF
4869 cat confdefs.h >>conftest.$ac_ext
4870 cat >>conftest.$ac_ext <<_ACEOF
4871 /* end confdefs.h. */
4873 #include <pthread.h>
4875 void* routine(void* p){return NULL;}
4877 int main(){
4878 pthread_t p;
4879 if(pthread_create(&p,NULL,routine,NULL)!=0)
4880 return 1;
4881 (void)pthread_detach(p);
4882 return 0;
4885 _ACEOF
4886 rm -f conftest$ac_exeext
4887 if { (ac_try="$ac_link"
4888 case "(($ac_try" in
4889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4890 *) ac_try_echo=$ac_try;;
4891 esac
4892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4893 (eval "$ac_link") 2>&5
4894 ac_status=$?
4895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4897 { (case "(($ac_try" in
4898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4899 *) ac_try_echo=$ac_try;;
4900 esac
4901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4902 (eval "$ac_try") 2>&5
4903 ac_status=$?
4904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905 (exit $ac_status); }; }; then
4906 ac_cv_kpthread=yes
4907 else
4908 echo "$as_me: program exited with status $ac_status" >&5
4909 echo "$as_me: failed program was:" >&5
4910 sed 's/^/| /' conftest.$ac_ext >&5
4912 ( exit $ac_status )
4913 ac_cv_kpthread=no
4915 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4919 CC="$ac_save_cc"
4922 { echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
4923 echo "${ECHO_T}$ac_cv_kpthread" >&6; }
4926 if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
4927 then
4928 # -Kthread, if available, provides the right #defines
4929 # and linker options to make pthread_create available
4930 # Some compilers won't report that they do not support -Kthread,
4931 # so we need to run a program to see whether it really made the
4932 # function available.
4933 { echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
4934 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6; }
4935 if test "${ac_cv_kthread+set}" = set; then
4936 echo $ECHO_N "(cached) $ECHO_C" >&6
4937 else
4938 ac_save_cc="$CC"
4939 CC="$CC -Kthread"
4940 if test "$cross_compiling" = yes; then
4941 ac_cv_kthread=no
4942 else
4943 cat >conftest.$ac_ext <<_ACEOF
4944 /* confdefs.h. */
4945 _ACEOF
4946 cat confdefs.h >>conftest.$ac_ext
4947 cat >>conftest.$ac_ext <<_ACEOF
4948 /* end confdefs.h. */
4950 #include <pthread.h>
4952 void* routine(void* p){return NULL;}
4954 int main(){
4955 pthread_t p;
4956 if(pthread_create(&p,NULL,routine,NULL)!=0)
4957 return 1;
4958 (void)pthread_detach(p);
4959 return 0;
4962 _ACEOF
4963 rm -f conftest$ac_exeext
4964 if { (ac_try="$ac_link"
4965 case "(($ac_try" in
4966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4967 *) ac_try_echo=$ac_try;;
4968 esac
4969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4970 (eval "$ac_link") 2>&5
4971 ac_status=$?
4972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4974 { (case "(($ac_try" in
4975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4976 *) ac_try_echo=$ac_try;;
4977 esac
4978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4979 (eval "$ac_try") 2>&5
4980 ac_status=$?
4981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4982 (exit $ac_status); }; }; then
4983 ac_cv_kthread=yes
4984 else
4985 echo "$as_me: program exited with status $ac_status" >&5
4986 echo "$as_me: failed program was:" >&5
4987 sed 's/^/| /' conftest.$ac_ext >&5
4989 ( exit $ac_status )
4990 ac_cv_kthread=no
4992 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4996 CC="$ac_save_cc"
4999 { echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
5000 echo "${ECHO_T}$ac_cv_kthread" >&6; }
5003 if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
5004 then
5005 # -pthread, if available, provides the right #defines
5006 # and linker options to make pthread_create available
5007 # Some compilers won't report that they do not support -pthread,
5008 # so we need to run a program to see whether it really made the
5009 # function available.
5010 { echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
5011 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6; }
5012 if test "${ac_cv_thread+set}" = set; then
5013 echo $ECHO_N "(cached) $ECHO_C" >&6
5014 else
5015 ac_save_cc="$CC"
5016 CC="$CC -pthread"
5017 if test "$cross_compiling" = yes; then
5018 ac_cv_pthread=no
5019 else
5020 cat >conftest.$ac_ext <<_ACEOF
5021 /* confdefs.h. */
5022 _ACEOF
5023 cat confdefs.h >>conftest.$ac_ext
5024 cat >>conftest.$ac_ext <<_ACEOF
5025 /* end confdefs.h. */
5027 #include <pthread.h>
5029 void* routine(void* p){return NULL;}
5031 int main(){
5032 pthread_t p;
5033 if(pthread_create(&p,NULL,routine,NULL)!=0)
5034 return 1;
5035 (void)pthread_detach(p);
5036 return 0;
5039 _ACEOF
5040 rm -f conftest$ac_exeext
5041 if { (ac_try="$ac_link"
5042 case "(($ac_try" in
5043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5044 *) ac_try_echo=$ac_try;;
5045 esac
5046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5047 (eval "$ac_link") 2>&5
5048 ac_status=$?
5049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5050 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5051 { (case "(($ac_try" in
5052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5053 *) ac_try_echo=$ac_try;;
5054 esac
5055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5056 (eval "$ac_try") 2>&5
5057 ac_status=$?
5058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059 (exit $ac_status); }; }; then
5060 ac_cv_pthread=yes
5061 else
5062 echo "$as_me: program exited with status $ac_status" >&5
5063 echo "$as_me: failed program was:" >&5
5064 sed 's/^/| /' conftest.$ac_ext >&5
5066 ( exit $ac_status )
5067 ac_cv_pthread=no
5069 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5073 CC="$ac_save_cc"
5076 { echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
5077 echo "${ECHO_T}$ac_cv_pthread" >&6; }
5080 # If we have set a CC compiler flag for thread support then
5081 # check if it works for CXX, too.
5082 ac_cv_cxx_thread=no
5083 if test ! -z "$CXX"
5084 then
5085 { echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
5086 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6; }
5087 ac_save_cxx="$CXX"
5089 if test "$ac_cv_kpthread" = "yes"
5090 then
5091 CXX="$CXX -Kpthread"
5092 ac_cv_cxx_thread=yes
5093 elif test "$ac_cv_kthread" = "yes"
5094 then
5095 CXX="$CXX -Kthread"
5096 ac_cv_cxx_thread=yes
5097 elif test "$ac_cv_pthread" = "yes"
5098 then
5099 CXX="$CXX -pthread"
5100 ac_cv_cxx_thread=yes
5103 if test $ac_cv_cxx_thread = yes
5104 then
5105 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
5106 $CXX -c conftest.$ac_ext 2>&5
5107 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
5108 && test -s conftest$ac_exeext && ./conftest$ac_exeext
5109 then
5110 ac_cv_cxx_thread=yes
5111 else
5112 ac_cv_cxx_thread=no
5114 rm -fr conftest*
5116 { echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
5117 echo "${ECHO_T}$ac_cv_cxx_thread" >&6; }
5119 CXX="$ac_save_cxx"
5122 # checks for header files
5123 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5124 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5125 if test "${ac_cv_header_stdc+set}" = set; then
5126 echo $ECHO_N "(cached) $ECHO_C" >&6
5127 else
5128 cat >conftest.$ac_ext <<_ACEOF
5129 /* confdefs.h. */
5130 _ACEOF
5131 cat confdefs.h >>conftest.$ac_ext
5132 cat >>conftest.$ac_ext <<_ACEOF
5133 /* end confdefs.h. */
5134 #include <stdlib.h>
5135 #include <stdarg.h>
5136 #include <string.h>
5137 #include <float.h>
5140 main ()
5144 return 0;
5146 _ACEOF
5147 rm -f conftest.$ac_objext
5148 if { (ac_try="$ac_compile"
5149 case "(($ac_try" in
5150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5151 *) ac_try_echo=$ac_try;;
5152 esac
5153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5154 (eval "$ac_compile") 2>conftest.er1
5155 ac_status=$?
5156 grep -v '^ *+' conftest.er1 >conftest.err
5157 rm -f conftest.er1
5158 cat conftest.err >&5
5159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5160 (exit $ac_status); } && {
5161 test -z "$ac_c_werror_flag" ||
5162 test ! -s conftest.err
5163 } && test -s conftest.$ac_objext; then
5164 ac_cv_header_stdc=yes
5165 else
5166 echo "$as_me: failed program was:" >&5
5167 sed 's/^/| /' conftest.$ac_ext >&5
5169 ac_cv_header_stdc=no
5172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5174 if test $ac_cv_header_stdc = yes; then
5175 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5176 cat >conftest.$ac_ext <<_ACEOF
5177 /* confdefs.h. */
5178 _ACEOF
5179 cat confdefs.h >>conftest.$ac_ext
5180 cat >>conftest.$ac_ext <<_ACEOF
5181 /* end confdefs.h. */
5182 #include <string.h>
5184 _ACEOF
5185 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5186 $EGREP "memchr" >/dev/null 2>&1; then
5188 else
5189 ac_cv_header_stdc=no
5191 rm -f conftest*
5195 if test $ac_cv_header_stdc = yes; then
5196 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5197 cat >conftest.$ac_ext <<_ACEOF
5198 /* confdefs.h. */
5199 _ACEOF
5200 cat confdefs.h >>conftest.$ac_ext
5201 cat >>conftest.$ac_ext <<_ACEOF
5202 /* end confdefs.h. */
5203 #include <stdlib.h>
5205 _ACEOF
5206 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5207 $EGREP "free" >/dev/null 2>&1; then
5209 else
5210 ac_cv_header_stdc=no
5212 rm -f conftest*
5216 if test $ac_cv_header_stdc = yes; then
5217 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5218 if test "$cross_compiling" = yes; then
5220 else
5221 cat >conftest.$ac_ext <<_ACEOF
5222 /* confdefs.h. */
5223 _ACEOF
5224 cat confdefs.h >>conftest.$ac_ext
5225 cat >>conftest.$ac_ext <<_ACEOF
5226 /* end confdefs.h. */
5227 #include <ctype.h>
5228 #include <stdlib.h>
5229 #if ((' ' & 0x0FF) == 0x020)
5230 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5231 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5232 #else
5233 # define ISLOWER(c) \
5234 (('a' <= (c) && (c) <= 'i') \
5235 || ('j' <= (c) && (c) <= 'r') \
5236 || ('s' <= (c) && (c) <= 'z'))
5237 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5238 #endif
5240 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5242 main ()
5244 int i;
5245 for (i = 0; i < 256; i++)
5246 if (XOR (islower (i), ISLOWER (i))
5247 || toupper (i) != TOUPPER (i))
5248 return 2;
5249 return 0;
5251 _ACEOF
5252 rm -f conftest$ac_exeext
5253 if { (ac_try="$ac_link"
5254 case "(($ac_try" in
5255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5256 *) ac_try_echo=$ac_try;;
5257 esac
5258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5259 (eval "$ac_link") 2>&5
5260 ac_status=$?
5261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5262 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5263 { (case "(($ac_try" in
5264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5265 *) ac_try_echo=$ac_try;;
5266 esac
5267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5268 (eval "$ac_try") 2>&5
5269 ac_status=$?
5270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271 (exit $ac_status); }; }; then
5273 else
5274 echo "$as_me: program exited with status $ac_status" >&5
5275 echo "$as_me: failed program was:" >&5
5276 sed 's/^/| /' conftest.$ac_ext >&5
5278 ( exit $ac_status )
5279 ac_cv_header_stdc=no
5281 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5287 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5288 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5289 if test $ac_cv_header_stdc = yes; then
5291 cat >>confdefs.h <<\_ACEOF
5292 #define STDC_HEADERS 1
5293 _ACEOF
5297 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5307 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5308 inttypes.h stdint.h unistd.h
5310 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5311 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5313 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5314 echo $ECHO_N "(cached) $ECHO_C" >&6
5315 else
5316 cat >conftest.$ac_ext <<_ACEOF
5317 /* confdefs.h. */
5318 _ACEOF
5319 cat confdefs.h >>conftest.$ac_ext
5320 cat >>conftest.$ac_ext <<_ACEOF
5321 /* end confdefs.h. */
5322 $ac_includes_default
5324 #include <$ac_header>
5325 _ACEOF
5326 rm -f conftest.$ac_objext
5327 if { (ac_try="$ac_compile"
5328 case "(($ac_try" in
5329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5330 *) ac_try_echo=$ac_try;;
5331 esac
5332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5333 (eval "$ac_compile") 2>conftest.er1
5334 ac_status=$?
5335 grep -v '^ *+' conftest.er1 >conftest.err
5336 rm -f conftest.er1
5337 cat conftest.err >&5
5338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339 (exit $ac_status); } && {
5340 test -z "$ac_c_werror_flag" ||
5341 test ! -s conftest.err
5342 } && test -s conftest.$ac_objext; then
5343 eval "$as_ac_Header=yes"
5344 else
5345 echo "$as_me: failed program was:" >&5
5346 sed 's/^/| /' conftest.$ac_ext >&5
5348 eval "$as_ac_Header=no"
5351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5353 ac_res=`eval echo '${'$as_ac_Header'}'`
5354 { echo "$as_me:$LINENO: result: $ac_res" >&5
5355 echo "${ECHO_T}$ac_res" >&6; }
5356 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5357 cat >>confdefs.h <<_ACEOF
5358 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5359 _ACEOF
5363 done
5415 for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \
5416 fcntl.h grp.h \
5417 io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
5418 shadow.h signal.h stdint.h stropts.h termios.h thread.h \
5419 unistd.h utime.h \
5420 sys/audioio.h sys/bsdtty.h sys/file.h sys/loadavg.h sys/lock.h sys/mkdev.h \
5421 sys/modem.h \
5422 sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \
5423 sys/time.h \
5424 sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
5425 sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
5426 bluetooth/bluetooth.h
5428 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5429 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5430 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5431 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5432 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5433 echo $ECHO_N "(cached) $ECHO_C" >&6
5435 ac_res=`eval echo '${'$as_ac_Header'}'`
5436 { echo "$as_me:$LINENO: result: $ac_res" >&5
5437 echo "${ECHO_T}$ac_res" >&6; }
5438 else
5439 # Is the header compilable?
5440 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5441 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5442 cat >conftest.$ac_ext <<_ACEOF
5443 /* confdefs.h. */
5444 _ACEOF
5445 cat confdefs.h >>conftest.$ac_ext
5446 cat >>conftest.$ac_ext <<_ACEOF
5447 /* end confdefs.h. */
5448 $ac_includes_default
5449 #include <$ac_header>
5450 _ACEOF
5451 rm -f conftest.$ac_objext
5452 if { (ac_try="$ac_compile"
5453 case "(($ac_try" in
5454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5455 *) ac_try_echo=$ac_try;;
5456 esac
5457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5458 (eval "$ac_compile") 2>conftest.er1
5459 ac_status=$?
5460 grep -v '^ *+' conftest.er1 >conftest.err
5461 rm -f conftest.er1
5462 cat conftest.err >&5
5463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5464 (exit $ac_status); } && {
5465 test -z "$ac_c_werror_flag" ||
5466 test ! -s conftest.err
5467 } && test -s conftest.$ac_objext; then
5468 ac_header_compiler=yes
5469 else
5470 echo "$as_me: failed program was:" >&5
5471 sed 's/^/| /' conftest.$ac_ext >&5
5473 ac_header_compiler=no
5476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5477 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5478 echo "${ECHO_T}$ac_header_compiler" >&6; }
5480 # Is the header present?
5481 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5482 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5483 cat >conftest.$ac_ext <<_ACEOF
5484 /* confdefs.h. */
5485 _ACEOF
5486 cat confdefs.h >>conftest.$ac_ext
5487 cat >>conftest.$ac_ext <<_ACEOF
5488 /* end confdefs.h. */
5489 #include <$ac_header>
5490 _ACEOF
5491 if { (ac_try="$ac_cpp conftest.$ac_ext"
5492 case "(($ac_try" in
5493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5494 *) ac_try_echo=$ac_try;;
5495 esac
5496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5497 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5498 ac_status=$?
5499 grep -v '^ *+' conftest.er1 >conftest.err
5500 rm -f conftest.er1
5501 cat conftest.err >&5
5502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5503 (exit $ac_status); } >/dev/null && {
5504 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5505 test ! -s conftest.err
5506 }; then
5507 ac_header_preproc=yes
5508 else
5509 echo "$as_me: failed program was:" >&5
5510 sed 's/^/| /' conftest.$ac_ext >&5
5512 ac_header_preproc=no
5515 rm -f conftest.err conftest.$ac_ext
5516 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5517 echo "${ECHO_T}$ac_header_preproc" >&6; }
5519 # So? What about this header?
5520 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5521 yes:no: )
5522 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5523 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5524 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5525 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5526 ac_header_preproc=yes
5528 no:yes:* )
5529 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5530 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5531 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5532 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5533 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5534 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5535 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5536 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5537 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5538 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5539 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5540 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5541 ( cat <<\_ASBOX
5542 ## ------------------------------------------------ ##
5543 ## Report this to http://www.python.org/python-bugs ##
5544 ## ------------------------------------------------ ##
5545 _ASBOX
5546 ) | sed "s/^/$as_me: WARNING: /" >&2
5548 esac
5549 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5550 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5551 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5552 echo $ECHO_N "(cached) $ECHO_C" >&6
5553 else
5554 eval "$as_ac_Header=\$ac_header_preproc"
5556 ac_res=`eval echo '${'$as_ac_Header'}'`
5557 { echo "$as_me:$LINENO: result: $ac_res" >&5
5558 echo "${ECHO_T}$ac_res" >&6; }
5561 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5562 cat >>confdefs.h <<_ACEOF
5563 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5564 _ACEOF
5568 done
5575 ac_header_dirent=no
5576 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5577 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5578 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5579 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5580 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5581 echo $ECHO_N "(cached) $ECHO_C" >&6
5582 else
5583 cat >conftest.$ac_ext <<_ACEOF
5584 /* confdefs.h. */
5585 _ACEOF
5586 cat confdefs.h >>conftest.$ac_ext
5587 cat >>conftest.$ac_ext <<_ACEOF
5588 /* end confdefs.h. */
5589 #include <sys/types.h>
5590 #include <$ac_hdr>
5593 main ()
5595 if ((DIR *) 0)
5596 return 0;
5598 return 0;
5600 _ACEOF
5601 rm -f conftest.$ac_objext
5602 if { (ac_try="$ac_compile"
5603 case "(($ac_try" in
5604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5605 *) ac_try_echo=$ac_try;;
5606 esac
5607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5608 (eval "$ac_compile") 2>conftest.er1
5609 ac_status=$?
5610 grep -v '^ *+' conftest.er1 >conftest.err
5611 rm -f conftest.er1
5612 cat conftest.err >&5
5613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614 (exit $ac_status); } && {
5615 test -z "$ac_c_werror_flag" ||
5616 test ! -s conftest.err
5617 } && test -s conftest.$ac_objext; then
5618 eval "$as_ac_Header=yes"
5619 else
5620 echo "$as_me: failed program was:" >&5
5621 sed 's/^/| /' conftest.$ac_ext >&5
5623 eval "$as_ac_Header=no"
5626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5628 ac_res=`eval echo '${'$as_ac_Header'}'`
5629 { echo "$as_me:$LINENO: result: $ac_res" >&5
5630 echo "${ECHO_T}$ac_res" >&6; }
5631 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5632 cat >>confdefs.h <<_ACEOF
5633 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5634 _ACEOF
5636 ac_header_dirent=$ac_hdr; break
5639 done
5640 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5641 if test $ac_header_dirent = dirent.h; then
5642 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5643 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5644 if test "${ac_cv_search_opendir+set}" = set; then
5645 echo $ECHO_N "(cached) $ECHO_C" >&6
5646 else
5647 ac_func_search_save_LIBS=$LIBS
5648 cat >conftest.$ac_ext <<_ACEOF
5649 /* confdefs.h. */
5650 _ACEOF
5651 cat confdefs.h >>conftest.$ac_ext
5652 cat >>conftest.$ac_ext <<_ACEOF
5653 /* end confdefs.h. */
5655 /* Override any GCC internal prototype to avoid an error.
5656 Use char because int might match the return type of a GCC
5657 builtin and then its argument prototype would still apply. */
5658 #ifdef __cplusplus
5659 extern "C"
5660 #endif
5661 char opendir ();
5663 main ()
5665 return opendir ();
5667 return 0;
5669 _ACEOF
5670 for ac_lib in '' dir; do
5671 if test -z "$ac_lib"; then
5672 ac_res="none required"
5673 else
5674 ac_res=-l$ac_lib
5675 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5677 rm -f conftest.$ac_objext conftest$ac_exeext
5678 if { (ac_try="$ac_link"
5679 case "(($ac_try" in
5680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5681 *) ac_try_echo=$ac_try;;
5682 esac
5683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5684 (eval "$ac_link") 2>conftest.er1
5685 ac_status=$?
5686 grep -v '^ *+' conftest.er1 >conftest.err
5687 rm -f conftest.er1
5688 cat conftest.err >&5
5689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5690 (exit $ac_status); } && {
5691 test -z "$ac_c_werror_flag" ||
5692 test ! -s conftest.err
5693 } && test -s conftest$ac_exeext &&
5694 $as_test_x conftest$ac_exeext; then
5695 ac_cv_search_opendir=$ac_res
5696 else
5697 echo "$as_me: failed program was:" >&5
5698 sed 's/^/| /' conftest.$ac_ext >&5
5703 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5704 conftest$ac_exeext
5705 if test "${ac_cv_search_opendir+set}" = set; then
5706 break
5708 done
5709 if test "${ac_cv_search_opendir+set}" = set; then
5711 else
5712 ac_cv_search_opendir=no
5714 rm conftest.$ac_ext
5715 LIBS=$ac_func_search_save_LIBS
5717 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5718 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5719 ac_res=$ac_cv_search_opendir
5720 if test "$ac_res" != no; then
5721 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5725 else
5726 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5727 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5728 if test "${ac_cv_search_opendir+set}" = set; then
5729 echo $ECHO_N "(cached) $ECHO_C" >&6
5730 else
5731 ac_func_search_save_LIBS=$LIBS
5732 cat >conftest.$ac_ext <<_ACEOF
5733 /* confdefs.h. */
5734 _ACEOF
5735 cat confdefs.h >>conftest.$ac_ext
5736 cat >>conftest.$ac_ext <<_ACEOF
5737 /* end confdefs.h. */
5739 /* Override any GCC internal prototype to avoid an error.
5740 Use char because int might match the return type of a GCC
5741 builtin and then its argument prototype would still apply. */
5742 #ifdef __cplusplus
5743 extern "C"
5744 #endif
5745 char opendir ();
5747 main ()
5749 return opendir ();
5751 return 0;
5753 _ACEOF
5754 for ac_lib in '' x; do
5755 if test -z "$ac_lib"; then
5756 ac_res="none required"
5757 else
5758 ac_res=-l$ac_lib
5759 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5761 rm -f conftest.$ac_objext conftest$ac_exeext
5762 if { (ac_try="$ac_link"
5763 case "(($ac_try" in
5764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5765 *) ac_try_echo=$ac_try;;
5766 esac
5767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5768 (eval "$ac_link") 2>conftest.er1
5769 ac_status=$?
5770 grep -v '^ *+' conftest.er1 >conftest.err
5771 rm -f conftest.er1
5772 cat conftest.err >&5
5773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774 (exit $ac_status); } && {
5775 test -z "$ac_c_werror_flag" ||
5776 test ! -s conftest.err
5777 } && test -s conftest$ac_exeext &&
5778 $as_test_x conftest$ac_exeext; then
5779 ac_cv_search_opendir=$ac_res
5780 else
5781 echo "$as_me: failed program was:" >&5
5782 sed 's/^/| /' conftest.$ac_ext >&5
5787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5788 conftest$ac_exeext
5789 if test "${ac_cv_search_opendir+set}" = set; then
5790 break
5792 done
5793 if test "${ac_cv_search_opendir+set}" = set; then
5795 else
5796 ac_cv_search_opendir=no
5798 rm conftest.$ac_ext
5799 LIBS=$ac_func_search_save_LIBS
5801 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5802 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5803 ac_res=$ac_cv_search_opendir
5804 if test "$ac_res" != no; then
5805 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5811 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
5812 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
5813 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
5814 echo $ECHO_N "(cached) $ECHO_C" >&6
5815 else
5816 cat >conftest.$ac_ext <<_ACEOF
5817 /* confdefs.h. */
5818 _ACEOF
5819 cat confdefs.h >>conftest.$ac_ext
5820 cat >>conftest.$ac_ext <<_ACEOF
5821 /* end confdefs.h. */
5822 #include <sys/types.h>
5824 main ()
5826 return makedev(0, 0);
5828 return 0;
5830 _ACEOF
5831 rm -f conftest.$ac_objext conftest$ac_exeext
5832 if { (ac_try="$ac_link"
5833 case "(($ac_try" in
5834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5835 *) ac_try_echo=$ac_try;;
5836 esac
5837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5838 (eval "$ac_link") 2>conftest.er1
5839 ac_status=$?
5840 grep -v '^ *+' conftest.er1 >conftest.err
5841 rm -f conftest.er1
5842 cat conftest.err >&5
5843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844 (exit $ac_status); } && {
5845 test -z "$ac_c_werror_flag" ||
5846 test ! -s conftest.err
5847 } && test -s conftest$ac_exeext &&
5848 $as_test_x conftest$ac_exeext; then
5849 ac_cv_header_sys_types_h_makedev=yes
5850 else
5851 echo "$as_me: failed program was:" >&5
5852 sed 's/^/| /' conftest.$ac_ext >&5
5854 ac_cv_header_sys_types_h_makedev=no
5857 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5858 conftest$ac_exeext conftest.$ac_ext
5861 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
5862 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
5864 if test $ac_cv_header_sys_types_h_makedev = no; then
5865 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5866 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5867 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
5868 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5869 echo $ECHO_N "(cached) $ECHO_C" >&6
5871 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5872 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
5873 else
5874 # Is the header compilable?
5875 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
5876 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
5877 cat >conftest.$ac_ext <<_ACEOF
5878 /* confdefs.h. */
5879 _ACEOF
5880 cat confdefs.h >>conftest.$ac_ext
5881 cat >>conftest.$ac_ext <<_ACEOF
5882 /* end confdefs.h. */
5883 $ac_includes_default
5884 #include <sys/mkdev.h>
5885 _ACEOF
5886 rm -f conftest.$ac_objext
5887 if { (ac_try="$ac_compile"
5888 case "(($ac_try" in
5889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5890 *) ac_try_echo=$ac_try;;
5891 esac
5892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5893 (eval "$ac_compile") 2>conftest.er1
5894 ac_status=$?
5895 grep -v '^ *+' conftest.er1 >conftest.err
5896 rm -f conftest.er1
5897 cat conftest.err >&5
5898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5899 (exit $ac_status); } && {
5900 test -z "$ac_c_werror_flag" ||
5901 test ! -s conftest.err
5902 } && test -s conftest.$ac_objext; then
5903 ac_header_compiler=yes
5904 else
5905 echo "$as_me: failed program was:" >&5
5906 sed 's/^/| /' conftest.$ac_ext >&5
5908 ac_header_compiler=no
5911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5912 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5913 echo "${ECHO_T}$ac_header_compiler" >&6; }
5915 # Is the header present?
5916 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
5917 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
5918 cat >conftest.$ac_ext <<_ACEOF
5919 /* confdefs.h. */
5920 _ACEOF
5921 cat confdefs.h >>conftest.$ac_ext
5922 cat >>conftest.$ac_ext <<_ACEOF
5923 /* end confdefs.h. */
5924 #include <sys/mkdev.h>
5925 _ACEOF
5926 if { (ac_try="$ac_cpp conftest.$ac_ext"
5927 case "(($ac_try" in
5928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5929 *) ac_try_echo=$ac_try;;
5930 esac
5931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5932 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5933 ac_status=$?
5934 grep -v '^ *+' conftest.er1 >conftest.err
5935 rm -f conftest.er1
5936 cat conftest.err >&5
5937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938 (exit $ac_status); } >/dev/null && {
5939 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5940 test ! -s conftest.err
5941 }; then
5942 ac_header_preproc=yes
5943 else
5944 echo "$as_me: failed program was:" >&5
5945 sed 's/^/| /' conftest.$ac_ext >&5
5947 ac_header_preproc=no
5950 rm -f conftest.err conftest.$ac_ext
5951 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5952 echo "${ECHO_T}$ac_header_preproc" >&6; }
5954 # So? What about this header?
5955 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5956 yes:no: )
5957 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
5958 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5959 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
5960 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
5961 ac_header_preproc=yes
5963 no:yes:* )
5964 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
5965 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
5966 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
5967 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
5968 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
5969 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
5970 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
5971 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
5972 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
5973 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
5974 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
5975 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
5976 ( cat <<\_ASBOX
5977 ## ------------------------------------------------ ##
5978 ## Report this to http://www.python.org/python-bugs ##
5979 ## ------------------------------------------------ ##
5980 _ASBOX
5981 ) | sed "s/^/$as_me: WARNING: /" >&2
5983 esac
5984 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5985 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
5986 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5987 echo $ECHO_N "(cached) $ECHO_C" >&6
5988 else
5989 ac_cv_header_sys_mkdev_h=$ac_header_preproc
5991 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5992 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
5995 if test $ac_cv_header_sys_mkdev_h = yes; then
5997 cat >>confdefs.h <<\_ACEOF
5998 #define MAJOR_IN_MKDEV 1
5999 _ACEOF
6005 if test $ac_cv_header_sys_mkdev_h = no; then
6006 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6007 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6008 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6009 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6010 echo $ECHO_N "(cached) $ECHO_C" >&6
6012 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6013 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6014 else
6015 # Is the header compilable?
6016 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
6017 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
6018 cat >conftest.$ac_ext <<_ACEOF
6019 /* confdefs.h. */
6020 _ACEOF
6021 cat confdefs.h >>conftest.$ac_ext
6022 cat >>conftest.$ac_ext <<_ACEOF
6023 /* end confdefs.h. */
6024 $ac_includes_default
6025 #include <sys/sysmacros.h>
6026 _ACEOF
6027 rm -f conftest.$ac_objext
6028 if { (ac_try="$ac_compile"
6029 case "(($ac_try" in
6030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6031 *) ac_try_echo=$ac_try;;
6032 esac
6033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6034 (eval "$ac_compile") 2>conftest.er1
6035 ac_status=$?
6036 grep -v '^ *+' conftest.er1 >conftest.err
6037 rm -f conftest.er1
6038 cat conftest.err >&5
6039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6040 (exit $ac_status); } && {
6041 test -z "$ac_c_werror_flag" ||
6042 test ! -s conftest.err
6043 } && test -s conftest.$ac_objext; then
6044 ac_header_compiler=yes
6045 else
6046 echo "$as_me: failed program was:" >&5
6047 sed 's/^/| /' conftest.$ac_ext >&5
6049 ac_header_compiler=no
6052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6053 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6054 echo "${ECHO_T}$ac_header_compiler" >&6; }
6056 # Is the header present?
6057 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
6058 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
6059 cat >conftest.$ac_ext <<_ACEOF
6060 /* confdefs.h. */
6061 _ACEOF
6062 cat confdefs.h >>conftest.$ac_ext
6063 cat >>conftest.$ac_ext <<_ACEOF
6064 /* end confdefs.h. */
6065 #include <sys/sysmacros.h>
6066 _ACEOF
6067 if { (ac_try="$ac_cpp conftest.$ac_ext"
6068 case "(($ac_try" in
6069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6070 *) ac_try_echo=$ac_try;;
6071 esac
6072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6073 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6074 ac_status=$?
6075 grep -v '^ *+' conftest.er1 >conftest.err
6076 rm -f conftest.er1
6077 cat conftest.err >&5
6078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6079 (exit $ac_status); } >/dev/null && {
6080 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6081 test ! -s conftest.err
6082 }; then
6083 ac_header_preproc=yes
6084 else
6085 echo "$as_me: failed program was:" >&5
6086 sed 's/^/| /' conftest.$ac_ext >&5
6088 ac_header_preproc=no
6091 rm -f conftest.err conftest.$ac_ext
6092 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6093 echo "${ECHO_T}$ac_header_preproc" >&6; }
6095 # So? What about this header?
6096 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6097 yes:no: )
6098 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
6099 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6100 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
6101 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
6102 ac_header_preproc=yes
6104 no:yes:* )
6105 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
6106 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
6107 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
6108 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
6109 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
6110 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
6111 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
6112 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
6113 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
6114 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
6115 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
6116 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
6117 ( cat <<\_ASBOX
6118 ## ------------------------------------------------ ##
6119 ## Report this to http://www.python.org/python-bugs ##
6120 ## ------------------------------------------------ ##
6121 _ASBOX
6122 ) | sed "s/^/$as_me: WARNING: /" >&2
6124 esac
6125 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6126 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6127 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6128 echo $ECHO_N "(cached) $ECHO_C" >&6
6129 else
6130 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
6132 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6133 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6136 if test $ac_cv_header_sys_sysmacros_h = yes; then
6138 cat >>confdefs.h <<\_ACEOF
6139 #define MAJOR_IN_SYSMACROS 1
6140 _ACEOF
6149 # On Solaris, term.h requires curses.h
6151 for ac_header in term.h
6153 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6154 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6155 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6156 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6157 echo $ECHO_N "(cached) $ECHO_C" >&6
6158 else
6159 cat >conftest.$ac_ext <<_ACEOF
6160 /* confdefs.h. */
6161 _ACEOF
6162 cat confdefs.h >>conftest.$ac_ext
6163 cat >>conftest.$ac_ext <<_ACEOF
6164 /* end confdefs.h. */
6166 #ifdef HAVE_CURSES_H
6167 #include <curses.h>
6168 #endif
6171 #include <$ac_header>
6172 _ACEOF
6173 rm -f conftest.$ac_objext
6174 if { (ac_try="$ac_compile"
6175 case "(($ac_try" in
6176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6177 *) ac_try_echo=$ac_try;;
6178 esac
6179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6180 (eval "$ac_compile") 2>conftest.er1
6181 ac_status=$?
6182 grep -v '^ *+' conftest.er1 >conftest.err
6183 rm -f conftest.er1
6184 cat conftest.err >&5
6185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186 (exit $ac_status); } && {
6187 test -z "$ac_c_werror_flag" ||
6188 test ! -s conftest.err
6189 } && test -s conftest.$ac_objext; then
6190 eval "$as_ac_Header=yes"
6191 else
6192 echo "$as_me: failed program was:" >&5
6193 sed 's/^/| /' conftest.$ac_ext >&5
6195 eval "$as_ac_Header=no"
6198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6200 ac_res=`eval echo '${'$as_ac_Header'}'`
6201 { echo "$as_me:$LINENO: result: $ac_res" >&5
6202 echo "${ECHO_T}$ac_res" >&6; }
6203 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6204 cat >>confdefs.h <<_ACEOF
6205 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6206 _ACEOF
6210 done
6213 # On Linux, netlink.h requires asm/types.h
6215 for ac_header in linux/netlink.h
6217 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6218 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6219 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6220 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6221 echo $ECHO_N "(cached) $ECHO_C" >&6
6222 else
6223 cat >conftest.$ac_ext <<_ACEOF
6224 /* confdefs.h. */
6225 _ACEOF
6226 cat confdefs.h >>conftest.$ac_ext
6227 cat >>conftest.$ac_ext <<_ACEOF
6228 /* end confdefs.h. */
6230 #ifdef HAVE_ASM_TYPES_H
6231 #include <asm/types.h>
6232 #endif
6233 #ifdef HAVE_SYS_SOCKET_H
6234 #include <sys/socket.h>
6235 #endif
6238 #include <$ac_header>
6239 _ACEOF
6240 rm -f conftest.$ac_objext
6241 if { (ac_try="$ac_compile"
6242 case "(($ac_try" in
6243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6244 *) ac_try_echo=$ac_try;;
6245 esac
6246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6247 (eval "$ac_compile") 2>conftest.er1
6248 ac_status=$?
6249 grep -v '^ *+' conftest.er1 >conftest.err
6250 rm -f conftest.er1
6251 cat conftest.err >&5
6252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253 (exit $ac_status); } && {
6254 test -z "$ac_c_werror_flag" ||
6255 test ! -s conftest.err
6256 } && test -s conftest.$ac_objext; then
6257 eval "$as_ac_Header=yes"
6258 else
6259 echo "$as_me: failed program was:" >&5
6260 sed 's/^/| /' conftest.$ac_ext >&5
6262 eval "$as_ac_Header=no"
6265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6267 ac_res=`eval echo '${'$as_ac_Header'}'`
6268 { echo "$as_me:$LINENO: result: $ac_res" >&5
6269 echo "${ECHO_T}$ac_res" >&6; }
6270 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6271 cat >>confdefs.h <<_ACEOF
6272 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6273 _ACEOF
6277 done
6280 # checks for typedefs
6281 was_it_defined=no
6282 { echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
6283 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6; }
6284 cat >conftest.$ac_ext <<_ACEOF
6285 /* confdefs.h. */
6286 _ACEOF
6287 cat confdefs.h >>conftest.$ac_ext
6288 cat >>conftest.$ac_ext <<_ACEOF
6289 /* end confdefs.h. */
6290 #include <time.h>
6292 _ACEOF
6293 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6294 $EGREP "clock_t" >/dev/null 2>&1; then
6295 was_it_defined=yes
6296 else
6299 cat >>confdefs.h <<\_ACEOF
6300 #define clock_t long
6301 _ACEOF
6305 rm -f conftest*
6307 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
6308 echo "${ECHO_T}$was_it_defined" >&6; }
6310 # Check whether using makedev requires defining _OSF_SOURCE
6311 { echo "$as_me:$LINENO: checking for makedev" >&5
6312 echo $ECHO_N "checking for makedev... $ECHO_C" >&6; }
6313 cat >conftest.$ac_ext <<_ACEOF
6314 /* confdefs.h. */
6315 _ACEOF
6316 cat confdefs.h >>conftest.$ac_ext
6317 cat >>conftest.$ac_ext <<_ACEOF
6318 /* end confdefs.h. */
6319 #include <sys/types.h>
6321 main ()
6323 makedev(0, 0)
6325 return 0;
6327 _ACEOF
6328 rm -f conftest.$ac_objext conftest$ac_exeext
6329 if { (ac_try="$ac_link"
6330 case "(($ac_try" in
6331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6332 *) ac_try_echo=$ac_try;;
6333 esac
6334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6335 (eval "$ac_link") 2>conftest.er1
6336 ac_status=$?
6337 grep -v '^ *+' conftest.er1 >conftest.err
6338 rm -f conftest.er1
6339 cat conftest.err >&5
6340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341 (exit $ac_status); } && {
6342 test -z "$ac_c_werror_flag" ||
6343 test ! -s conftest.err
6344 } && test -s conftest$ac_exeext &&
6345 $as_test_x conftest$ac_exeext; then
6346 ac_cv_has_makedev=yes
6347 else
6348 echo "$as_me: failed program was:" >&5
6349 sed 's/^/| /' conftest.$ac_ext >&5
6351 ac_cv_has_makedev=no
6354 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6355 conftest$ac_exeext conftest.$ac_ext
6356 if test "$ac_cv_has_makedev" = "no"; then
6357 # we didn't link, try if _OSF_SOURCE will allow us to link
6358 cat >conftest.$ac_ext <<_ACEOF
6359 /* confdefs.h. */
6360 _ACEOF
6361 cat confdefs.h >>conftest.$ac_ext
6362 cat >>conftest.$ac_ext <<_ACEOF
6363 /* end confdefs.h. */
6365 #define _OSF_SOURCE 1
6366 #include <sys/types.h>
6369 main ()
6371 makedev(0, 0)
6373 return 0;
6375 _ACEOF
6376 rm -f conftest.$ac_objext conftest$ac_exeext
6377 if { (ac_try="$ac_link"
6378 case "(($ac_try" in
6379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6380 *) ac_try_echo=$ac_try;;
6381 esac
6382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6383 (eval "$ac_link") 2>conftest.er1
6384 ac_status=$?
6385 grep -v '^ *+' conftest.er1 >conftest.err
6386 rm -f conftest.er1
6387 cat conftest.err >&5
6388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6389 (exit $ac_status); } && {
6390 test -z "$ac_c_werror_flag" ||
6391 test ! -s conftest.err
6392 } && test -s conftest$ac_exeext &&
6393 $as_test_x conftest$ac_exeext; then
6394 ac_cv_has_makedev=yes
6395 else
6396 echo "$as_me: failed program was:" >&5
6397 sed 's/^/| /' conftest.$ac_ext >&5
6399 ac_cv_has_makedev=no
6402 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6403 conftest$ac_exeext conftest.$ac_ext
6404 if test "$ac_cv_has_makedev" = "yes"; then
6406 cat >>confdefs.h <<\_ACEOF
6407 #define _OSF_SOURCE 1
6408 _ACEOF
6412 { echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
6413 echo "${ECHO_T}$ac_cv_has_makedev" >&6; }
6414 if test "$ac_cv_has_makedev" = "yes"; then
6416 cat >>confdefs.h <<\_ACEOF
6417 #define HAVE_MAKEDEV 1
6418 _ACEOF
6422 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
6423 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
6424 # defined, but the compiler does not support pragma redefine_extname,
6425 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
6426 # structures (such as rlimit64) without declaring them. As a
6427 # work-around, disable LFS on such configurations
6429 use_lfs=yes
6430 { echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
6431 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6; }
6432 cat >conftest.$ac_ext <<_ACEOF
6433 /* confdefs.h. */
6434 _ACEOF
6435 cat confdefs.h >>conftest.$ac_ext
6436 cat >>conftest.$ac_ext <<_ACEOF
6437 /* end confdefs.h. */
6439 #define _LARGEFILE_SOURCE 1
6440 #define _FILE_OFFSET_BITS 64
6441 #include <sys/resource.h>
6444 main ()
6446 struct rlimit foo;
6448 return 0;
6450 _ACEOF
6451 rm -f conftest.$ac_objext
6452 if { (ac_try="$ac_compile"
6453 case "(($ac_try" in
6454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6455 *) ac_try_echo=$ac_try;;
6456 esac
6457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6458 (eval "$ac_compile") 2>conftest.er1
6459 ac_status=$?
6460 grep -v '^ *+' conftest.er1 >conftest.err
6461 rm -f conftest.er1
6462 cat conftest.err >&5
6463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464 (exit $ac_status); } && {
6465 test -z "$ac_c_werror_flag" ||
6466 test ! -s conftest.err
6467 } && test -s conftest.$ac_objext; then
6468 sol_lfs_bug=no
6469 else
6470 echo "$as_me: failed program was:" >&5
6471 sed 's/^/| /' conftest.$ac_ext >&5
6473 sol_lfs_bug=yes
6476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6477 { echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
6478 echo "${ECHO_T}$sol_lfs_bug" >&6; }
6479 if test "$sol_lfs_bug" = "yes"; then
6480 use_lfs=no
6483 if test "$use_lfs" = "yes"; then
6484 # Two defines needed to enable largefile support on various platforms
6485 # These may affect some typedefs
6487 cat >>confdefs.h <<\_ACEOF
6488 #define _LARGEFILE_SOURCE 1
6489 _ACEOF
6492 cat >>confdefs.h <<\_ACEOF
6493 #define _FILE_OFFSET_BITS 64
6494 _ACEOF
6498 # Add some code to confdefs.h so that the test for off_t works on SCO
6499 cat >> confdefs.h <<\EOF
6500 #if defined(SCO_DS)
6501 #undef _OFF_T
6502 #endif
6505 # Type availability checks
6506 { echo "$as_me:$LINENO: checking for mode_t" >&5
6507 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
6508 if test "${ac_cv_type_mode_t+set}" = set; then
6509 echo $ECHO_N "(cached) $ECHO_C" >&6
6510 else
6511 cat >conftest.$ac_ext <<_ACEOF
6512 /* confdefs.h. */
6513 _ACEOF
6514 cat confdefs.h >>conftest.$ac_ext
6515 cat >>conftest.$ac_ext <<_ACEOF
6516 /* end confdefs.h. */
6517 $ac_includes_default
6518 typedef mode_t ac__type_new_;
6520 main ()
6522 if ((ac__type_new_ *) 0)
6523 return 0;
6524 if (sizeof (ac__type_new_))
6525 return 0;
6527 return 0;
6529 _ACEOF
6530 rm -f conftest.$ac_objext
6531 if { (ac_try="$ac_compile"
6532 case "(($ac_try" in
6533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6534 *) ac_try_echo=$ac_try;;
6535 esac
6536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6537 (eval "$ac_compile") 2>conftest.er1
6538 ac_status=$?
6539 grep -v '^ *+' conftest.er1 >conftest.err
6540 rm -f conftest.er1
6541 cat conftest.err >&5
6542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543 (exit $ac_status); } && {
6544 test -z "$ac_c_werror_flag" ||
6545 test ! -s conftest.err
6546 } && test -s conftest.$ac_objext; then
6547 ac_cv_type_mode_t=yes
6548 else
6549 echo "$as_me: failed program was:" >&5
6550 sed 's/^/| /' conftest.$ac_ext >&5
6552 ac_cv_type_mode_t=no
6555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6557 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6558 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
6559 if test $ac_cv_type_mode_t = yes; then
6561 else
6563 cat >>confdefs.h <<_ACEOF
6564 #define mode_t int
6565 _ACEOF
6569 { echo "$as_me:$LINENO: checking for off_t" >&5
6570 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
6571 if test "${ac_cv_type_off_t+set}" = set; then
6572 echo $ECHO_N "(cached) $ECHO_C" >&6
6573 else
6574 cat >conftest.$ac_ext <<_ACEOF
6575 /* confdefs.h. */
6576 _ACEOF
6577 cat confdefs.h >>conftest.$ac_ext
6578 cat >>conftest.$ac_ext <<_ACEOF
6579 /* end confdefs.h. */
6580 $ac_includes_default
6581 typedef off_t ac__type_new_;
6583 main ()
6585 if ((ac__type_new_ *) 0)
6586 return 0;
6587 if (sizeof (ac__type_new_))
6588 return 0;
6590 return 0;
6592 _ACEOF
6593 rm -f conftest.$ac_objext
6594 if { (ac_try="$ac_compile"
6595 case "(($ac_try" in
6596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6597 *) ac_try_echo=$ac_try;;
6598 esac
6599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6600 (eval "$ac_compile") 2>conftest.er1
6601 ac_status=$?
6602 grep -v '^ *+' conftest.er1 >conftest.err
6603 rm -f conftest.er1
6604 cat conftest.err >&5
6605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606 (exit $ac_status); } && {
6607 test -z "$ac_c_werror_flag" ||
6608 test ! -s conftest.err
6609 } && test -s conftest.$ac_objext; then
6610 ac_cv_type_off_t=yes
6611 else
6612 echo "$as_me: failed program was:" >&5
6613 sed 's/^/| /' conftest.$ac_ext >&5
6615 ac_cv_type_off_t=no
6618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6620 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6621 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
6622 if test $ac_cv_type_off_t = yes; then
6624 else
6626 cat >>confdefs.h <<_ACEOF
6627 #define off_t long int
6628 _ACEOF
6632 { echo "$as_me:$LINENO: checking for pid_t" >&5
6633 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
6634 if test "${ac_cv_type_pid_t+set}" = set; then
6635 echo $ECHO_N "(cached) $ECHO_C" >&6
6636 else
6637 cat >conftest.$ac_ext <<_ACEOF
6638 /* confdefs.h. */
6639 _ACEOF
6640 cat confdefs.h >>conftest.$ac_ext
6641 cat >>conftest.$ac_ext <<_ACEOF
6642 /* end confdefs.h. */
6643 $ac_includes_default
6644 typedef pid_t ac__type_new_;
6646 main ()
6648 if ((ac__type_new_ *) 0)
6649 return 0;
6650 if (sizeof (ac__type_new_))
6651 return 0;
6653 return 0;
6655 _ACEOF
6656 rm -f conftest.$ac_objext
6657 if { (ac_try="$ac_compile"
6658 case "(($ac_try" in
6659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6660 *) ac_try_echo=$ac_try;;
6661 esac
6662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6663 (eval "$ac_compile") 2>conftest.er1
6664 ac_status=$?
6665 grep -v '^ *+' conftest.er1 >conftest.err
6666 rm -f conftest.er1
6667 cat conftest.err >&5
6668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6669 (exit $ac_status); } && {
6670 test -z "$ac_c_werror_flag" ||
6671 test ! -s conftest.err
6672 } && test -s conftest.$ac_objext; then
6673 ac_cv_type_pid_t=yes
6674 else
6675 echo "$as_me: failed program was:" >&5
6676 sed 's/^/| /' conftest.$ac_ext >&5
6678 ac_cv_type_pid_t=no
6681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6683 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6684 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
6685 if test $ac_cv_type_pid_t = yes; then
6687 else
6689 cat >>confdefs.h <<_ACEOF
6690 #define pid_t int
6691 _ACEOF
6695 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6696 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
6697 if test "${ac_cv_type_signal+set}" = set; then
6698 echo $ECHO_N "(cached) $ECHO_C" >&6
6699 else
6700 cat >conftest.$ac_ext <<_ACEOF
6701 /* confdefs.h. */
6702 _ACEOF
6703 cat confdefs.h >>conftest.$ac_ext
6704 cat >>conftest.$ac_ext <<_ACEOF
6705 /* end confdefs.h. */
6706 #include <sys/types.h>
6707 #include <signal.h>
6710 main ()
6712 return *(signal (0, 0)) (0) == 1;
6714 return 0;
6716 _ACEOF
6717 rm -f conftest.$ac_objext
6718 if { (ac_try="$ac_compile"
6719 case "(($ac_try" in
6720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6721 *) ac_try_echo=$ac_try;;
6722 esac
6723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6724 (eval "$ac_compile") 2>conftest.er1
6725 ac_status=$?
6726 grep -v '^ *+' conftest.er1 >conftest.err
6727 rm -f conftest.er1
6728 cat conftest.err >&5
6729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6730 (exit $ac_status); } && {
6731 test -z "$ac_c_werror_flag" ||
6732 test ! -s conftest.err
6733 } && test -s conftest.$ac_objext; then
6734 ac_cv_type_signal=int
6735 else
6736 echo "$as_me: failed program was:" >&5
6737 sed 's/^/| /' conftest.$ac_ext >&5
6739 ac_cv_type_signal=void
6742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6744 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6745 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
6747 cat >>confdefs.h <<_ACEOF
6748 #define RETSIGTYPE $ac_cv_type_signal
6749 _ACEOF
6752 { echo "$as_me:$LINENO: checking for size_t" >&5
6753 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
6754 if test "${ac_cv_type_size_t+set}" = set; then
6755 echo $ECHO_N "(cached) $ECHO_C" >&6
6756 else
6757 cat >conftest.$ac_ext <<_ACEOF
6758 /* confdefs.h. */
6759 _ACEOF
6760 cat confdefs.h >>conftest.$ac_ext
6761 cat >>conftest.$ac_ext <<_ACEOF
6762 /* end confdefs.h. */
6763 $ac_includes_default
6764 typedef size_t ac__type_new_;
6766 main ()
6768 if ((ac__type_new_ *) 0)
6769 return 0;
6770 if (sizeof (ac__type_new_))
6771 return 0;
6773 return 0;
6775 _ACEOF
6776 rm -f conftest.$ac_objext
6777 if { (ac_try="$ac_compile"
6778 case "(($ac_try" in
6779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6780 *) ac_try_echo=$ac_try;;
6781 esac
6782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6783 (eval "$ac_compile") 2>conftest.er1
6784 ac_status=$?
6785 grep -v '^ *+' conftest.er1 >conftest.err
6786 rm -f conftest.er1
6787 cat conftest.err >&5
6788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6789 (exit $ac_status); } && {
6790 test -z "$ac_c_werror_flag" ||
6791 test ! -s conftest.err
6792 } && test -s conftest.$ac_objext; then
6793 ac_cv_type_size_t=yes
6794 else
6795 echo "$as_me: failed program was:" >&5
6796 sed 's/^/| /' conftest.$ac_ext >&5
6798 ac_cv_type_size_t=no
6801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6803 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6804 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
6805 if test $ac_cv_type_size_t = yes; then
6807 else
6809 cat >>confdefs.h <<_ACEOF
6810 #define size_t unsigned int
6811 _ACEOF
6815 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6816 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
6817 if test "${ac_cv_type_uid_t+set}" = set; then
6818 echo $ECHO_N "(cached) $ECHO_C" >&6
6819 else
6820 cat >conftest.$ac_ext <<_ACEOF
6821 /* confdefs.h. */
6822 _ACEOF
6823 cat confdefs.h >>conftest.$ac_ext
6824 cat >>conftest.$ac_ext <<_ACEOF
6825 /* end confdefs.h. */
6826 #include <sys/types.h>
6828 _ACEOF
6829 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6830 $EGREP "uid_t" >/dev/null 2>&1; then
6831 ac_cv_type_uid_t=yes
6832 else
6833 ac_cv_type_uid_t=no
6835 rm -f conftest*
6838 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6839 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
6840 if test $ac_cv_type_uid_t = no; then
6842 cat >>confdefs.h <<\_ACEOF
6843 #define uid_t int
6844 _ACEOF
6847 cat >>confdefs.h <<\_ACEOF
6848 #define gid_t int
6849 _ACEOF
6853 { echo "$as_me:$LINENO: checking for ssize_t" >&5
6854 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
6855 if test "${ac_cv_type_ssize_t+set}" = set; then
6856 echo $ECHO_N "(cached) $ECHO_C" >&6
6857 else
6858 cat >conftest.$ac_ext <<_ACEOF
6859 /* confdefs.h. */
6860 _ACEOF
6861 cat confdefs.h >>conftest.$ac_ext
6862 cat >>conftest.$ac_ext <<_ACEOF
6863 /* end confdefs.h. */
6864 $ac_includes_default
6865 typedef ssize_t ac__type_new_;
6867 main ()
6869 if ((ac__type_new_ *) 0)
6870 return 0;
6871 if (sizeof (ac__type_new_))
6872 return 0;
6874 return 0;
6876 _ACEOF
6877 rm -f conftest.$ac_objext
6878 if { (ac_try="$ac_compile"
6879 case "(($ac_try" in
6880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6881 *) ac_try_echo=$ac_try;;
6882 esac
6883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6884 (eval "$ac_compile") 2>conftest.er1
6885 ac_status=$?
6886 grep -v '^ *+' conftest.er1 >conftest.err
6887 rm -f conftest.er1
6888 cat conftest.err >&5
6889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6890 (exit $ac_status); } && {
6891 test -z "$ac_c_werror_flag" ||
6892 test ! -s conftest.err
6893 } && test -s conftest.$ac_objext; then
6894 ac_cv_type_ssize_t=yes
6895 else
6896 echo "$as_me: failed program was:" >&5
6897 sed 's/^/| /' conftest.$ac_ext >&5
6899 ac_cv_type_ssize_t=no
6902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6904 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
6905 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
6906 if test $ac_cv_type_ssize_t = yes; then
6908 cat >>confdefs.h <<\_ACEOF
6909 #define HAVE_SSIZE_T 1
6910 _ACEOF
6915 # Sizes of various common basic types
6916 # ANSI C requires sizeof(char) == 1, so no need to check it
6917 { echo "$as_me:$LINENO: checking for int" >&5
6918 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
6919 if test "${ac_cv_type_int+set}" = set; then
6920 echo $ECHO_N "(cached) $ECHO_C" >&6
6921 else
6922 cat >conftest.$ac_ext <<_ACEOF
6923 /* confdefs.h. */
6924 _ACEOF
6925 cat confdefs.h >>conftest.$ac_ext
6926 cat >>conftest.$ac_ext <<_ACEOF
6927 /* end confdefs.h. */
6928 $ac_includes_default
6929 typedef int ac__type_new_;
6931 main ()
6933 if ((ac__type_new_ *) 0)
6934 return 0;
6935 if (sizeof (ac__type_new_))
6936 return 0;
6938 return 0;
6940 _ACEOF
6941 rm -f conftest.$ac_objext
6942 if { (ac_try="$ac_compile"
6943 case "(($ac_try" in
6944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6945 *) ac_try_echo=$ac_try;;
6946 esac
6947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6948 (eval "$ac_compile") 2>conftest.er1
6949 ac_status=$?
6950 grep -v '^ *+' conftest.er1 >conftest.err
6951 rm -f conftest.er1
6952 cat conftest.err >&5
6953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6954 (exit $ac_status); } && {
6955 test -z "$ac_c_werror_flag" ||
6956 test ! -s conftest.err
6957 } && test -s conftest.$ac_objext; then
6958 ac_cv_type_int=yes
6959 else
6960 echo "$as_me: failed program was:" >&5
6961 sed 's/^/| /' conftest.$ac_ext >&5
6963 ac_cv_type_int=no
6966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6968 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6969 echo "${ECHO_T}$ac_cv_type_int" >&6; }
6971 # The cast to long int works around a bug in the HP C Compiler
6972 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6973 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6974 # This bug is HP SR number 8606223364.
6975 { echo "$as_me:$LINENO: checking size of int" >&5
6976 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
6977 if test "${ac_cv_sizeof_int+set}" = set; then
6978 echo $ECHO_N "(cached) $ECHO_C" >&6
6979 else
6980 if test "$cross_compiling" = yes; then
6981 # Depending upon the size, compute the lo and hi bounds.
6982 cat >conftest.$ac_ext <<_ACEOF
6983 /* confdefs.h. */
6984 _ACEOF
6985 cat confdefs.h >>conftest.$ac_ext
6986 cat >>conftest.$ac_ext <<_ACEOF
6987 /* end confdefs.h. */
6988 $ac_includes_default
6989 typedef int ac__type_sizeof_;
6991 main ()
6993 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6994 test_array [0] = 0
6997 return 0;
6999 _ACEOF
7000 rm -f conftest.$ac_objext
7001 if { (ac_try="$ac_compile"
7002 case "(($ac_try" in
7003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7004 *) ac_try_echo=$ac_try;;
7005 esac
7006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7007 (eval "$ac_compile") 2>conftest.er1
7008 ac_status=$?
7009 grep -v '^ *+' conftest.er1 >conftest.err
7010 rm -f conftest.er1
7011 cat conftest.err >&5
7012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7013 (exit $ac_status); } && {
7014 test -z "$ac_c_werror_flag" ||
7015 test ! -s conftest.err
7016 } && test -s conftest.$ac_objext; then
7017 ac_lo=0 ac_mid=0
7018 while :; do
7019 cat >conftest.$ac_ext <<_ACEOF
7020 /* confdefs.h. */
7021 _ACEOF
7022 cat confdefs.h >>conftest.$ac_ext
7023 cat >>conftest.$ac_ext <<_ACEOF
7024 /* end confdefs.h. */
7025 $ac_includes_default
7026 typedef int ac__type_sizeof_;
7028 main ()
7030 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7031 test_array [0] = 0
7034 return 0;
7036 _ACEOF
7037 rm -f conftest.$ac_objext
7038 if { (ac_try="$ac_compile"
7039 case "(($ac_try" in
7040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7041 *) ac_try_echo=$ac_try;;
7042 esac
7043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7044 (eval "$ac_compile") 2>conftest.er1
7045 ac_status=$?
7046 grep -v '^ *+' conftest.er1 >conftest.err
7047 rm -f conftest.er1
7048 cat conftest.err >&5
7049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7050 (exit $ac_status); } && {
7051 test -z "$ac_c_werror_flag" ||
7052 test ! -s conftest.err
7053 } && test -s conftest.$ac_objext; then
7054 ac_hi=$ac_mid; break
7055 else
7056 echo "$as_me: failed program was:" >&5
7057 sed 's/^/| /' conftest.$ac_ext >&5
7059 ac_lo=`expr $ac_mid + 1`
7060 if test $ac_lo -le $ac_mid; then
7061 ac_lo= ac_hi=
7062 break
7064 ac_mid=`expr 2 '*' $ac_mid + 1`
7067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7068 done
7069 else
7070 echo "$as_me: failed program was:" >&5
7071 sed 's/^/| /' conftest.$ac_ext >&5
7073 cat >conftest.$ac_ext <<_ACEOF
7074 /* confdefs.h. */
7075 _ACEOF
7076 cat confdefs.h >>conftest.$ac_ext
7077 cat >>conftest.$ac_ext <<_ACEOF
7078 /* end confdefs.h. */
7079 $ac_includes_default
7080 typedef int ac__type_sizeof_;
7082 main ()
7084 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7085 test_array [0] = 0
7088 return 0;
7090 _ACEOF
7091 rm -f conftest.$ac_objext
7092 if { (ac_try="$ac_compile"
7093 case "(($ac_try" in
7094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7095 *) ac_try_echo=$ac_try;;
7096 esac
7097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7098 (eval "$ac_compile") 2>conftest.er1
7099 ac_status=$?
7100 grep -v '^ *+' conftest.er1 >conftest.err
7101 rm -f conftest.er1
7102 cat conftest.err >&5
7103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7104 (exit $ac_status); } && {
7105 test -z "$ac_c_werror_flag" ||
7106 test ! -s conftest.err
7107 } && test -s conftest.$ac_objext; then
7108 ac_hi=-1 ac_mid=-1
7109 while :; do
7110 cat >conftest.$ac_ext <<_ACEOF
7111 /* confdefs.h. */
7112 _ACEOF
7113 cat confdefs.h >>conftest.$ac_ext
7114 cat >>conftest.$ac_ext <<_ACEOF
7115 /* end confdefs.h. */
7116 $ac_includes_default
7117 typedef int ac__type_sizeof_;
7119 main ()
7121 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7122 test_array [0] = 0
7125 return 0;
7127 _ACEOF
7128 rm -f conftest.$ac_objext
7129 if { (ac_try="$ac_compile"
7130 case "(($ac_try" in
7131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7132 *) ac_try_echo=$ac_try;;
7133 esac
7134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7135 (eval "$ac_compile") 2>conftest.er1
7136 ac_status=$?
7137 grep -v '^ *+' conftest.er1 >conftest.err
7138 rm -f conftest.er1
7139 cat conftest.err >&5
7140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7141 (exit $ac_status); } && {
7142 test -z "$ac_c_werror_flag" ||
7143 test ! -s conftest.err
7144 } && test -s conftest.$ac_objext; then
7145 ac_lo=$ac_mid; break
7146 else
7147 echo "$as_me: failed program was:" >&5
7148 sed 's/^/| /' conftest.$ac_ext >&5
7150 ac_hi=`expr '(' $ac_mid ')' - 1`
7151 if test $ac_mid -le $ac_hi; then
7152 ac_lo= ac_hi=
7153 break
7155 ac_mid=`expr 2 '*' $ac_mid`
7158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7159 done
7160 else
7161 echo "$as_me: failed program was:" >&5
7162 sed 's/^/| /' conftest.$ac_ext >&5
7164 ac_lo= ac_hi=
7167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7171 # Binary search between lo and hi bounds.
7172 while test "x$ac_lo" != "x$ac_hi"; do
7173 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7174 cat >conftest.$ac_ext <<_ACEOF
7175 /* confdefs.h. */
7176 _ACEOF
7177 cat confdefs.h >>conftest.$ac_ext
7178 cat >>conftest.$ac_ext <<_ACEOF
7179 /* end confdefs.h. */
7180 $ac_includes_default
7181 typedef int ac__type_sizeof_;
7183 main ()
7185 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7186 test_array [0] = 0
7189 return 0;
7191 _ACEOF
7192 rm -f conftest.$ac_objext
7193 if { (ac_try="$ac_compile"
7194 case "(($ac_try" in
7195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7196 *) ac_try_echo=$ac_try;;
7197 esac
7198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7199 (eval "$ac_compile") 2>conftest.er1
7200 ac_status=$?
7201 grep -v '^ *+' conftest.er1 >conftest.err
7202 rm -f conftest.er1
7203 cat conftest.err >&5
7204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7205 (exit $ac_status); } && {
7206 test -z "$ac_c_werror_flag" ||
7207 test ! -s conftest.err
7208 } && test -s conftest.$ac_objext; then
7209 ac_hi=$ac_mid
7210 else
7211 echo "$as_me: failed program was:" >&5
7212 sed 's/^/| /' conftest.$ac_ext >&5
7214 ac_lo=`expr '(' $ac_mid ')' + 1`
7217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7218 done
7219 case $ac_lo in
7220 ?*) ac_cv_sizeof_int=$ac_lo;;
7221 '') if test "$ac_cv_type_int" = yes; then
7222 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7223 See \`config.log' for more details." >&5
7224 echo "$as_me: error: cannot compute sizeof (int)
7225 See \`config.log' for more details." >&2;}
7226 { (exit 77); exit 77; }; }
7227 else
7228 ac_cv_sizeof_int=0
7229 fi ;;
7230 esac
7231 else
7232 cat >conftest.$ac_ext <<_ACEOF
7233 /* confdefs.h. */
7234 _ACEOF
7235 cat confdefs.h >>conftest.$ac_ext
7236 cat >>conftest.$ac_ext <<_ACEOF
7237 /* end confdefs.h. */
7238 $ac_includes_default
7239 typedef int ac__type_sizeof_;
7240 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7241 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7242 #include <stdio.h>
7243 #include <stdlib.h>
7245 main ()
7248 FILE *f = fopen ("conftest.val", "w");
7249 if (! f)
7250 return 1;
7251 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7253 long int i = longval ();
7254 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7255 return 1;
7256 fprintf (f, "%ld\n", i);
7258 else
7260 unsigned long int i = ulongval ();
7261 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7262 return 1;
7263 fprintf (f, "%lu\n", i);
7265 return ferror (f) || fclose (f) != 0;
7268 return 0;
7270 _ACEOF
7271 rm -f conftest$ac_exeext
7272 if { (ac_try="$ac_link"
7273 case "(($ac_try" in
7274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7275 *) ac_try_echo=$ac_try;;
7276 esac
7277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7278 (eval "$ac_link") 2>&5
7279 ac_status=$?
7280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7281 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7282 { (case "(($ac_try" in
7283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7284 *) ac_try_echo=$ac_try;;
7285 esac
7286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7287 (eval "$ac_try") 2>&5
7288 ac_status=$?
7289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7290 (exit $ac_status); }; }; then
7291 ac_cv_sizeof_int=`cat conftest.val`
7292 else
7293 echo "$as_me: program exited with status $ac_status" >&5
7294 echo "$as_me: failed program was:" >&5
7295 sed 's/^/| /' conftest.$ac_ext >&5
7297 ( exit $ac_status )
7298 if test "$ac_cv_type_int" = yes; then
7299 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7300 See \`config.log' for more details." >&5
7301 echo "$as_me: error: cannot compute sizeof (int)
7302 See \`config.log' for more details." >&2;}
7303 { (exit 77); exit 77; }; }
7304 else
7305 ac_cv_sizeof_int=0
7308 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7310 rm -f conftest.val
7312 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
7313 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
7317 cat >>confdefs.h <<_ACEOF
7318 #define SIZEOF_INT $ac_cv_sizeof_int
7319 _ACEOF
7322 { echo "$as_me:$LINENO: checking for long" >&5
7323 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
7324 if test "${ac_cv_type_long+set}" = set; then
7325 echo $ECHO_N "(cached) $ECHO_C" >&6
7326 else
7327 cat >conftest.$ac_ext <<_ACEOF
7328 /* confdefs.h. */
7329 _ACEOF
7330 cat confdefs.h >>conftest.$ac_ext
7331 cat >>conftest.$ac_ext <<_ACEOF
7332 /* end confdefs.h. */
7333 $ac_includes_default
7334 typedef long ac__type_new_;
7336 main ()
7338 if ((ac__type_new_ *) 0)
7339 return 0;
7340 if (sizeof (ac__type_new_))
7341 return 0;
7343 return 0;
7345 _ACEOF
7346 rm -f conftest.$ac_objext
7347 if { (ac_try="$ac_compile"
7348 case "(($ac_try" in
7349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7350 *) ac_try_echo=$ac_try;;
7351 esac
7352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7353 (eval "$ac_compile") 2>conftest.er1
7354 ac_status=$?
7355 grep -v '^ *+' conftest.er1 >conftest.err
7356 rm -f conftest.er1
7357 cat conftest.err >&5
7358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7359 (exit $ac_status); } && {
7360 test -z "$ac_c_werror_flag" ||
7361 test ! -s conftest.err
7362 } && test -s conftest.$ac_objext; then
7363 ac_cv_type_long=yes
7364 else
7365 echo "$as_me: failed program was:" >&5
7366 sed 's/^/| /' conftest.$ac_ext >&5
7368 ac_cv_type_long=no
7371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7373 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
7374 echo "${ECHO_T}$ac_cv_type_long" >&6; }
7376 # The cast to long int works around a bug in the HP C Compiler
7377 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7378 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7379 # This bug is HP SR number 8606223364.
7380 { echo "$as_me:$LINENO: checking size of long" >&5
7381 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
7382 if test "${ac_cv_sizeof_long+set}" = set; then
7383 echo $ECHO_N "(cached) $ECHO_C" >&6
7384 else
7385 if test "$cross_compiling" = yes; then
7386 # Depending upon the size, compute the lo and hi bounds.
7387 cat >conftest.$ac_ext <<_ACEOF
7388 /* confdefs.h. */
7389 _ACEOF
7390 cat confdefs.h >>conftest.$ac_ext
7391 cat >>conftest.$ac_ext <<_ACEOF
7392 /* end confdefs.h. */
7393 $ac_includes_default
7394 typedef long ac__type_sizeof_;
7396 main ()
7398 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7399 test_array [0] = 0
7402 return 0;
7404 _ACEOF
7405 rm -f conftest.$ac_objext
7406 if { (ac_try="$ac_compile"
7407 case "(($ac_try" in
7408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7409 *) ac_try_echo=$ac_try;;
7410 esac
7411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7412 (eval "$ac_compile") 2>conftest.er1
7413 ac_status=$?
7414 grep -v '^ *+' conftest.er1 >conftest.err
7415 rm -f conftest.er1
7416 cat conftest.err >&5
7417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7418 (exit $ac_status); } && {
7419 test -z "$ac_c_werror_flag" ||
7420 test ! -s conftest.err
7421 } && test -s conftest.$ac_objext; then
7422 ac_lo=0 ac_mid=0
7423 while :; do
7424 cat >conftest.$ac_ext <<_ACEOF
7425 /* confdefs.h. */
7426 _ACEOF
7427 cat confdefs.h >>conftest.$ac_ext
7428 cat >>conftest.$ac_ext <<_ACEOF
7429 /* end confdefs.h. */
7430 $ac_includes_default
7431 typedef long ac__type_sizeof_;
7433 main ()
7435 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7436 test_array [0] = 0
7439 return 0;
7441 _ACEOF
7442 rm -f conftest.$ac_objext
7443 if { (ac_try="$ac_compile"
7444 case "(($ac_try" in
7445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7446 *) ac_try_echo=$ac_try;;
7447 esac
7448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7449 (eval "$ac_compile") 2>conftest.er1
7450 ac_status=$?
7451 grep -v '^ *+' conftest.er1 >conftest.err
7452 rm -f conftest.er1
7453 cat conftest.err >&5
7454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7455 (exit $ac_status); } && {
7456 test -z "$ac_c_werror_flag" ||
7457 test ! -s conftest.err
7458 } && test -s conftest.$ac_objext; then
7459 ac_hi=$ac_mid; break
7460 else
7461 echo "$as_me: failed program was:" >&5
7462 sed 's/^/| /' conftest.$ac_ext >&5
7464 ac_lo=`expr $ac_mid + 1`
7465 if test $ac_lo -le $ac_mid; then
7466 ac_lo= ac_hi=
7467 break
7469 ac_mid=`expr 2 '*' $ac_mid + 1`
7472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7473 done
7474 else
7475 echo "$as_me: failed program was:" >&5
7476 sed 's/^/| /' conftest.$ac_ext >&5
7478 cat >conftest.$ac_ext <<_ACEOF
7479 /* confdefs.h. */
7480 _ACEOF
7481 cat confdefs.h >>conftest.$ac_ext
7482 cat >>conftest.$ac_ext <<_ACEOF
7483 /* end confdefs.h. */
7484 $ac_includes_default
7485 typedef long ac__type_sizeof_;
7487 main ()
7489 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7490 test_array [0] = 0
7493 return 0;
7495 _ACEOF
7496 rm -f conftest.$ac_objext
7497 if { (ac_try="$ac_compile"
7498 case "(($ac_try" in
7499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7500 *) ac_try_echo=$ac_try;;
7501 esac
7502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7503 (eval "$ac_compile") 2>conftest.er1
7504 ac_status=$?
7505 grep -v '^ *+' conftest.er1 >conftest.err
7506 rm -f conftest.er1
7507 cat conftest.err >&5
7508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7509 (exit $ac_status); } && {
7510 test -z "$ac_c_werror_flag" ||
7511 test ! -s conftest.err
7512 } && test -s conftest.$ac_objext; then
7513 ac_hi=-1 ac_mid=-1
7514 while :; do
7515 cat >conftest.$ac_ext <<_ACEOF
7516 /* confdefs.h. */
7517 _ACEOF
7518 cat confdefs.h >>conftest.$ac_ext
7519 cat >>conftest.$ac_ext <<_ACEOF
7520 /* end confdefs.h. */
7521 $ac_includes_default
7522 typedef long ac__type_sizeof_;
7524 main ()
7526 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7527 test_array [0] = 0
7530 return 0;
7532 _ACEOF
7533 rm -f conftest.$ac_objext
7534 if { (ac_try="$ac_compile"
7535 case "(($ac_try" in
7536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7537 *) ac_try_echo=$ac_try;;
7538 esac
7539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7540 (eval "$ac_compile") 2>conftest.er1
7541 ac_status=$?
7542 grep -v '^ *+' conftest.er1 >conftest.err
7543 rm -f conftest.er1
7544 cat conftest.err >&5
7545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7546 (exit $ac_status); } && {
7547 test -z "$ac_c_werror_flag" ||
7548 test ! -s conftest.err
7549 } && test -s conftest.$ac_objext; then
7550 ac_lo=$ac_mid; break
7551 else
7552 echo "$as_me: failed program was:" >&5
7553 sed 's/^/| /' conftest.$ac_ext >&5
7555 ac_hi=`expr '(' $ac_mid ')' - 1`
7556 if test $ac_mid -le $ac_hi; then
7557 ac_lo= ac_hi=
7558 break
7560 ac_mid=`expr 2 '*' $ac_mid`
7563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7564 done
7565 else
7566 echo "$as_me: failed program was:" >&5
7567 sed 's/^/| /' conftest.$ac_ext >&5
7569 ac_lo= ac_hi=
7572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7576 # Binary search between lo and hi bounds.
7577 while test "x$ac_lo" != "x$ac_hi"; do
7578 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7579 cat >conftest.$ac_ext <<_ACEOF
7580 /* confdefs.h. */
7581 _ACEOF
7582 cat confdefs.h >>conftest.$ac_ext
7583 cat >>conftest.$ac_ext <<_ACEOF
7584 /* end confdefs.h. */
7585 $ac_includes_default
7586 typedef long ac__type_sizeof_;
7588 main ()
7590 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7591 test_array [0] = 0
7594 return 0;
7596 _ACEOF
7597 rm -f conftest.$ac_objext
7598 if { (ac_try="$ac_compile"
7599 case "(($ac_try" in
7600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7601 *) ac_try_echo=$ac_try;;
7602 esac
7603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7604 (eval "$ac_compile") 2>conftest.er1
7605 ac_status=$?
7606 grep -v '^ *+' conftest.er1 >conftest.err
7607 rm -f conftest.er1
7608 cat conftest.err >&5
7609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7610 (exit $ac_status); } && {
7611 test -z "$ac_c_werror_flag" ||
7612 test ! -s conftest.err
7613 } && test -s conftest.$ac_objext; then
7614 ac_hi=$ac_mid
7615 else
7616 echo "$as_me: failed program was:" >&5
7617 sed 's/^/| /' conftest.$ac_ext >&5
7619 ac_lo=`expr '(' $ac_mid ')' + 1`
7622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7623 done
7624 case $ac_lo in
7625 ?*) ac_cv_sizeof_long=$ac_lo;;
7626 '') if test "$ac_cv_type_long" = yes; then
7627 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
7628 See \`config.log' for more details." >&5
7629 echo "$as_me: error: cannot compute sizeof (long)
7630 See \`config.log' for more details." >&2;}
7631 { (exit 77); exit 77; }; }
7632 else
7633 ac_cv_sizeof_long=0
7634 fi ;;
7635 esac
7636 else
7637 cat >conftest.$ac_ext <<_ACEOF
7638 /* confdefs.h. */
7639 _ACEOF
7640 cat confdefs.h >>conftest.$ac_ext
7641 cat >>conftest.$ac_ext <<_ACEOF
7642 /* end confdefs.h. */
7643 $ac_includes_default
7644 typedef long ac__type_sizeof_;
7645 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7646 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7647 #include <stdio.h>
7648 #include <stdlib.h>
7650 main ()
7653 FILE *f = fopen ("conftest.val", "w");
7654 if (! f)
7655 return 1;
7656 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7658 long int i = longval ();
7659 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7660 return 1;
7661 fprintf (f, "%ld\n", i);
7663 else
7665 unsigned long int i = ulongval ();
7666 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7667 return 1;
7668 fprintf (f, "%lu\n", i);
7670 return ferror (f) || fclose (f) != 0;
7673 return 0;
7675 _ACEOF
7676 rm -f conftest$ac_exeext
7677 if { (ac_try="$ac_link"
7678 case "(($ac_try" in
7679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7680 *) ac_try_echo=$ac_try;;
7681 esac
7682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7683 (eval "$ac_link") 2>&5
7684 ac_status=$?
7685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7686 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7687 { (case "(($ac_try" in
7688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7689 *) ac_try_echo=$ac_try;;
7690 esac
7691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7692 (eval "$ac_try") 2>&5
7693 ac_status=$?
7694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695 (exit $ac_status); }; }; then
7696 ac_cv_sizeof_long=`cat conftest.val`
7697 else
7698 echo "$as_me: program exited with status $ac_status" >&5
7699 echo "$as_me: failed program was:" >&5
7700 sed 's/^/| /' conftest.$ac_ext >&5
7702 ( exit $ac_status )
7703 if test "$ac_cv_type_long" = yes; then
7704 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
7705 See \`config.log' for more details." >&5
7706 echo "$as_me: error: cannot compute sizeof (long)
7707 See \`config.log' for more details." >&2;}
7708 { (exit 77); exit 77; }; }
7709 else
7710 ac_cv_sizeof_long=0
7713 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7715 rm -f conftest.val
7717 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7718 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
7722 cat >>confdefs.h <<_ACEOF
7723 #define SIZEOF_LONG $ac_cv_sizeof_long
7724 _ACEOF
7727 { echo "$as_me:$LINENO: checking for void *" >&5
7728 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
7729 if test "${ac_cv_type_void_p+set}" = set; then
7730 echo $ECHO_N "(cached) $ECHO_C" >&6
7731 else
7732 cat >conftest.$ac_ext <<_ACEOF
7733 /* confdefs.h. */
7734 _ACEOF
7735 cat confdefs.h >>conftest.$ac_ext
7736 cat >>conftest.$ac_ext <<_ACEOF
7737 /* end confdefs.h. */
7738 $ac_includes_default
7739 typedef void * ac__type_new_;
7741 main ()
7743 if ((ac__type_new_ *) 0)
7744 return 0;
7745 if (sizeof (ac__type_new_))
7746 return 0;
7748 return 0;
7750 _ACEOF
7751 rm -f conftest.$ac_objext
7752 if { (ac_try="$ac_compile"
7753 case "(($ac_try" in
7754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7755 *) ac_try_echo=$ac_try;;
7756 esac
7757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7758 (eval "$ac_compile") 2>conftest.er1
7759 ac_status=$?
7760 grep -v '^ *+' conftest.er1 >conftest.err
7761 rm -f conftest.er1
7762 cat conftest.err >&5
7763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7764 (exit $ac_status); } && {
7765 test -z "$ac_c_werror_flag" ||
7766 test ! -s conftest.err
7767 } && test -s conftest.$ac_objext; then
7768 ac_cv_type_void_p=yes
7769 else
7770 echo "$as_me: failed program was:" >&5
7771 sed 's/^/| /' conftest.$ac_ext >&5
7773 ac_cv_type_void_p=no
7776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7778 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
7779 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
7781 # The cast to long int works around a bug in the HP C Compiler
7782 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7783 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7784 # This bug is HP SR number 8606223364.
7785 { echo "$as_me:$LINENO: checking size of void *" >&5
7786 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
7787 if test "${ac_cv_sizeof_void_p+set}" = set; then
7788 echo $ECHO_N "(cached) $ECHO_C" >&6
7789 else
7790 if test "$cross_compiling" = yes; then
7791 # Depending upon the size, compute the lo and hi bounds.
7792 cat >conftest.$ac_ext <<_ACEOF
7793 /* confdefs.h. */
7794 _ACEOF
7795 cat confdefs.h >>conftest.$ac_ext
7796 cat >>conftest.$ac_ext <<_ACEOF
7797 /* end confdefs.h. */
7798 $ac_includes_default
7799 typedef void * ac__type_sizeof_;
7801 main ()
7803 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7804 test_array [0] = 0
7807 return 0;
7809 _ACEOF
7810 rm -f conftest.$ac_objext
7811 if { (ac_try="$ac_compile"
7812 case "(($ac_try" in
7813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7814 *) ac_try_echo=$ac_try;;
7815 esac
7816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7817 (eval "$ac_compile") 2>conftest.er1
7818 ac_status=$?
7819 grep -v '^ *+' conftest.er1 >conftest.err
7820 rm -f conftest.er1
7821 cat conftest.err >&5
7822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7823 (exit $ac_status); } && {
7824 test -z "$ac_c_werror_flag" ||
7825 test ! -s conftest.err
7826 } && test -s conftest.$ac_objext; then
7827 ac_lo=0 ac_mid=0
7828 while :; do
7829 cat >conftest.$ac_ext <<_ACEOF
7830 /* confdefs.h. */
7831 _ACEOF
7832 cat confdefs.h >>conftest.$ac_ext
7833 cat >>conftest.$ac_ext <<_ACEOF
7834 /* end confdefs.h. */
7835 $ac_includes_default
7836 typedef void * ac__type_sizeof_;
7838 main ()
7840 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7841 test_array [0] = 0
7844 return 0;
7846 _ACEOF
7847 rm -f conftest.$ac_objext
7848 if { (ac_try="$ac_compile"
7849 case "(($ac_try" in
7850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7851 *) ac_try_echo=$ac_try;;
7852 esac
7853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7854 (eval "$ac_compile") 2>conftest.er1
7855 ac_status=$?
7856 grep -v '^ *+' conftest.er1 >conftest.err
7857 rm -f conftest.er1
7858 cat conftest.err >&5
7859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7860 (exit $ac_status); } && {
7861 test -z "$ac_c_werror_flag" ||
7862 test ! -s conftest.err
7863 } && test -s conftest.$ac_objext; then
7864 ac_hi=$ac_mid; break
7865 else
7866 echo "$as_me: failed program was:" >&5
7867 sed 's/^/| /' conftest.$ac_ext >&5
7869 ac_lo=`expr $ac_mid + 1`
7870 if test $ac_lo -le $ac_mid; then
7871 ac_lo= ac_hi=
7872 break
7874 ac_mid=`expr 2 '*' $ac_mid + 1`
7877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7878 done
7879 else
7880 echo "$as_me: failed program was:" >&5
7881 sed 's/^/| /' conftest.$ac_ext >&5
7883 cat >conftest.$ac_ext <<_ACEOF
7884 /* confdefs.h. */
7885 _ACEOF
7886 cat confdefs.h >>conftest.$ac_ext
7887 cat >>conftest.$ac_ext <<_ACEOF
7888 /* end confdefs.h. */
7889 $ac_includes_default
7890 typedef void * ac__type_sizeof_;
7892 main ()
7894 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7895 test_array [0] = 0
7898 return 0;
7900 _ACEOF
7901 rm -f conftest.$ac_objext
7902 if { (ac_try="$ac_compile"
7903 case "(($ac_try" in
7904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7905 *) ac_try_echo=$ac_try;;
7906 esac
7907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7908 (eval "$ac_compile") 2>conftest.er1
7909 ac_status=$?
7910 grep -v '^ *+' conftest.er1 >conftest.err
7911 rm -f conftest.er1
7912 cat conftest.err >&5
7913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7914 (exit $ac_status); } && {
7915 test -z "$ac_c_werror_flag" ||
7916 test ! -s conftest.err
7917 } && test -s conftest.$ac_objext; then
7918 ac_hi=-1 ac_mid=-1
7919 while :; do
7920 cat >conftest.$ac_ext <<_ACEOF
7921 /* confdefs.h. */
7922 _ACEOF
7923 cat confdefs.h >>conftest.$ac_ext
7924 cat >>conftest.$ac_ext <<_ACEOF
7925 /* end confdefs.h. */
7926 $ac_includes_default
7927 typedef void * ac__type_sizeof_;
7929 main ()
7931 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7932 test_array [0] = 0
7935 return 0;
7937 _ACEOF
7938 rm -f conftest.$ac_objext
7939 if { (ac_try="$ac_compile"
7940 case "(($ac_try" in
7941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7942 *) ac_try_echo=$ac_try;;
7943 esac
7944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7945 (eval "$ac_compile") 2>conftest.er1
7946 ac_status=$?
7947 grep -v '^ *+' conftest.er1 >conftest.err
7948 rm -f conftest.er1
7949 cat conftest.err >&5
7950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7951 (exit $ac_status); } && {
7952 test -z "$ac_c_werror_flag" ||
7953 test ! -s conftest.err
7954 } && test -s conftest.$ac_objext; then
7955 ac_lo=$ac_mid; break
7956 else
7957 echo "$as_me: failed program was:" >&5
7958 sed 's/^/| /' conftest.$ac_ext >&5
7960 ac_hi=`expr '(' $ac_mid ')' - 1`
7961 if test $ac_mid -le $ac_hi; then
7962 ac_lo= ac_hi=
7963 break
7965 ac_mid=`expr 2 '*' $ac_mid`
7968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7969 done
7970 else
7971 echo "$as_me: failed program was:" >&5
7972 sed 's/^/| /' conftest.$ac_ext >&5
7974 ac_lo= ac_hi=
7977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7981 # Binary search between lo and hi bounds.
7982 while test "x$ac_lo" != "x$ac_hi"; do
7983 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7984 cat >conftest.$ac_ext <<_ACEOF
7985 /* confdefs.h. */
7986 _ACEOF
7987 cat confdefs.h >>conftest.$ac_ext
7988 cat >>conftest.$ac_ext <<_ACEOF
7989 /* end confdefs.h. */
7990 $ac_includes_default
7991 typedef void * ac__type_sizeof_;
7993 main ()
7995 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7996 test_array [0] = 0
7999 return 0;
8001 _ACEOF
8002 rm -f conftest.$ac_objext
8003 if { (ac_try="$ac_compile"
8004 case "(($ac_try" in
8005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8006 *) ac_try_echo=$ac_try;;
8007 esac
8008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8009 (eval "$ac_compile") 2>conftest.er1
8010 ac_status=$?
8011 grep -v '^ *+' conftest.er1 >conftest.err
8012 rm -f conftest.er1
8013 cat conftest.err >&5
8014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8015 (exit $ac_status); } && {
8016 test -z "$ac_c_werror_flag" ||
8017 test ! -s conftest.err
8018 } && test -s conftest.$ac_objext; then
8019 ac_hi=$ac_mid
8020 else
8021 echo "$as_me: failed program was:" >&5
8022 sed 's/^/| /' conftest.$ac_ext >&5
8024 ac_lo=`expr '(' $ac_mid ')' + 1`
8027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8028 done
8029 case $ac_lo in
8030 ?*) ac_cv_sizeof_void_p=$ac_lo;;
8031 '') if test "$ac_cv_type_void_p" = yes; then
8032 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8033 See \`config.log' for more details." >&5
8034 echo "$as_me: error: cannot compute sizeof (void *)
8035 See \`config.log' for more details." >&2;}
8036 { (exit 77); exit 77; }; }
8037 else
8038 ac_cv_sizeof_void_p=0
8039 fi ;;
8040 esac
8041 else
8042 cat >conftest.$ac_ext <<_ACEOF
8043 /* confdefs.h. */
8044 _ACEOF
8045 cat confdefs.h >>conftest.$ac_ext
8046 cat >>conftest.$ac_ext <<_ACEOF
8047 /* end confdefs.h. */
8048 $ac_includes_default
8049 typedef void * ac__type_sizeof_;
8050 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8051 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8052 #include <stdio.h>
8053 #include <stdlib.h>
8055 main ()
8058 FILE *f = fopen ("conftest.val", "w");
8059 if (! f)
8060 return 1;
8061 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8063 long int i = longval ();
8064 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8065 return 1;
8066 fprintf (f, "%ld\n", i);
8068 else
8070 unsigned long int i = ulongval ();
8071 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8072 return 1;
8073 fprintf (f, "%lu\n", i);
8075 return ferror (f) || fclose (f) != 0;
8078 return 0;
8080 _ACEOF
8081 rm -f conftest$ac_exeext
8082 if { (ac_try="$ac_link"
8083 case "(($ac_try" in
8084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8085 *) ac_try_echo=$ac_try;;
8086 esac
8087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8088 (eval "$ac_link") 2>&5
8089 ac_status=$?
8090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8091 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8092 { (case "(($ac_try" in
8093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8094 *) ac_try_echo=$ac_try;;
8095 esac
8096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8097 (eval "$ac_try") 2>&5
8098 ac_status=$?
8099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8100 (exit $ac_status); }; }; then
8101 ac_cv_sizeof_void_p=`cat conftest.val`
8102 else
8103 echo "$as_me: program exited with status $ac_status" >&5
8104 echo "$as_me: failed program was:" >&5
8105 sed 's/^/| /' conftest.$ac_ext >&5
8107 ( exit $ac_status )
8108 if test "$ac_cv_type_void_p" = yes; then
8109 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8110 See \`config.log' for more details." >&5
8111 echo "$as_me: error: cannot compute sizeof (void *)
8112 See \`config.log' for more details." >&2;}
8113 { (exit 77); exit 77; }; }
8114 else
8115 ac_cv_sizeof_void_p=0
8118 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8120 rm -f conftest.val
8122 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
8123 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
8127 cat >>confdefs.h <<_ACEOF
8128 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8129 _ACEOF
8132 { echo "$as_me:$LINENO: checking for short" >&5
8133 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
8134 if test "${ac_cv_type_short+set}" = set; then
8135 echo $ECHO_N "(cached) $ECHO_C" >&6
8136 else
8137 cat >conftest.$ac_ext <<_ACEOF
8138 /* confdefs.h. */
8139 _ACEOF
8140 cat confdefs.h >>conftest.$ac_ext
8141 cat >>conftest.$ac_ext <<_ACEOF
8142 /* end confdefs.h. */
8143 $ac_includes_default
8144 typedef short ac__type_new_;
8146 main ()
8148 if ((ac__type_new_ *) 0)
8149 return 0;
8150 if (sizeof (ac__type_new_))
8151 return 0;
8153 return 0;
8155 _ACEOF
8156 rm -f conftest.$ac_objext
8157 if { (ac_try="$ac_compile"
8158 case "(($ac_try" in
8159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8160 *) ac_try_echo=$ac_try;;
8161 esac
8162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8163 (eval "$ac_compile") 2>conftest.er1
8164 ac_status=$?
8165 grep -v '^ *+' conftest.er1 >conftest.err
8166 rm -f conftest.er1
8167 cat conftest.err >&5
8168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8169 (exit $ac_status); } && {
8170 test -z "$ac_c_werror_flag" ||
8171 test ! -s conftest.err
8172 } && test -s conftest.$ac_objext; then
8173 ac_cv_type_short=yes
8174 else
8175 echo "$as_me: failed program was:" >&5
8176 sed 's/^/| /' conftest.$ac_ext >&5
8178 ac_cv_type_short=no
8181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8183 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
8184 echo "${ECHO_T}$ac_cv_type_short" >&6; }
8186 # The cast to long int works around a bug in the HP C Compiler
8187 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8188 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8189 # This bug is HP SR number 8606223364.
8190 { echo "$as_me:$LINENO: checking size of short" >&5
8191 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
8192 if test "${ac_cv_sizeof_short+set}" = set; then
8193 echo $ECHO_N "(cached) $ECHO_C" >&6
8194 else
8195 if test "$cross_compiling" = yes; then
8196 # Depending upon the size, compute the lo and hi bounds.
8197 cat >conftest.$ac_ext <<_ACEOF
8198 /* confdefs.h. */
8199 _ACEOF
8200 cat confdefs.h >>conftest.$ac_ext
8201 cat >>conftest.$ac_ext <<_ACEOF
8202 /* end confdefs.h. */
8203 $ac_includes_default
8204 typedef short ac__type_sizeof_;
8206 main ()
8208 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8209 test_array [0] = 0
8212 return 0;
8214 _ACEOF
8215 rm -f conftest.$ac_objext
8216 if { (ac_try="$ac_compile"
8217 case "(($ac_try" in
8218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8219 *) ac_try_echo=$ac_try;;
8220 esac
8221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8222 (eval "$ac_compile") 2>conftest.er1
8223 ac_status=$?
8224 grep -v '^ *+' conftest.er1 >conftest.err
8225 rm -f conftest.er1
8226 cat conftest.err >&5
8227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8228 (exit $ac_status); } && {
8229 test -z "$ac_c_werror_flag" ||
8230 test ! -s conftest.err
8231 } && test -s conftest.$ac_objext; then
8232 ac_lo=0 ac_mid=0
8233 while :; do
8234 cat >conftest.$ac_ext <<_ACEOF
8235 /* confdefs.h. */
8236 _ACEOF
8237 cat confdefs.h >>conftest.$ac_ext
8238 cat >>conftest.$ac_ext <<_ACEOF
8239 /* end confdefs.h. */
8240 $ac_includes_default
8241 typedef short ac__type_sizeof_;
8243 main ()
8245 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8246 test_array [0] = 0
8249 return 0;
8251 _ACEOF
8252 rm -f conftest.$ac_objext
8253 if { (ac_try="$ac_compile"
8254 case "(($ac_try" in
8255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8256 *) ac_try_echo=$ac_try;;
8257 esac
8258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8259 (eval "$ac_compile") 2>conftest.er1
8260 ac_status=$?
8261 grep -v '^ *+' conftest.er1 >conftest.err
8262 rm -f conftest.er1
8263 cat conftest.err >&5
8264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8265 (exit $ac_status); } && {
8266 test -z "$ac_c_werror_flag" ||
8267 test ! -s conftest.err
8268 } && test -s conftest.$ac_objext; then
8269 ac_hi=$ac_mid; break
8270 else
8271 echo "$as_me: failed program was:" >&5
8272 sed 's/^/| /' conftest.$ac_ext >&5
8274 ac_lo=`expr $ac_mid + 1`
8275 if test $ac_lo -le $ac_mid; then
8276 ac_lo= ac_hi=
8277 break
8279 ac_mid=`expr 2 '*' $ac_mid + 1`
8282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8283 done
8284 else
8285 echo "$as_me: failed program was:" >&5
8286 sed 's/^/| /' conftest.$ac_ext >&5
8288 cat >conftest.$ac_ext <<_ACEOF
8289 /* confdefs.h. */
8290 _ACEOF
8291 cat confdefs.h >>conftest.$ac_ext
8292 cat >>conftest.$ac_ext <<_ACEOF
8293 /* end confdefs.h. */
8294 $ac_includes_default
8295 typedef short ac__type_sizeof_;
8297 main ()
8299 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8300 test_array [0] = 0
8303 return 0;
8305 _ACEOF
8306 rm -f conftest.$ac_objext
8307 if { (ac_try="$ac_compile"
8308 case "(($ac_try" in
8309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8310 *) ac_try_echo=$ac_try;;
8311 esac
8312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8313 (eval "$ac_compile") 2>conftest.er1
8314 ac_status=$?
8315 grep -v '^ *+' conftest.er1 >conftest.err
8316 rm -f conftest.er1
8317 cat conftest.err >&5
8318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8319 (exit $ac_status); } && {
8320 test -z "$ac_c_werror_flag" ||
8321 test ! -s conftest.err
8322 } && test -s conftest.$ac_objext; then
8323 ac_hi=-1 ac_mid=-1
8324 while :; do
8325 cat >conftest.$ac_ext <<_ACEOF
8326 /* confdefs.h. */
8327 _ACEOF
8328 cat confdefs.h >>conftest.$ac_ext
8329 cat >>conftest.$ac_ext <<_ACEOF
8330 /* end confdefs.h. */
8331 $ac_includes_default
8332 typedef short ac__type_sizeof_;
8334 main ()
8336 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8337 test_array [0] = 0
8340 return 0;
8342 _ACEOF
8343 rm -f conftest.$ac_objext
8344 if { (ac_try="$ac_compile"
8345 case "(($ac_try" in
8346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8347 *) ac_try_echo=$ac_try;;
8348 esac
8349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8350 (eval "$ac_compile") 2>conftest.er1
8351 ac_status=$?
8352 grep -v '^ *+' conftest.er1 >conftest.err
8353 rm -f conftest.er1
8354 cat conftest.err >&5
8355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8356 (exit $ac_status); } && {
8357 test -z "$ac_c_werror_flag" ||
8358 test ! -s conftest.err
8359 } && test -s conftest.$ac_objext; then
8360 ac_lo=$ac_mid; break
8361 else
8362 echo "$as_me: failed program was:" >&5
8363 sed 's/^/| /' conftest.$ac_ext >&5
8365 ac_hi=`expr '(' $ac_mid ')' - 1`
8366 if test $ac_mid -le $ac_hi; then
8367 ac_lo= ac_hi=
8368 break
8370 ac_mid=`expr 2 '*' $ac_mid`
8373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8374 done
8375 else
8376 echo "$as_me: failed program was:" >&5
8377 sed 's/^/| /' conftest.$ac_ext >&5
8379 ac_lo= ac_hi=
8382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8386 # Binary search between lo and hi bounds.
8387 while test "x$ac_lo" != "x$ac_hi"; do
8388 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8389 cat >conftest.$ac_ext <<_ACEOF
8390 /* confdefs.h. */
8391 _ACEOF
8392 cat confdefs.h >>conftest.$ac_ext
8393 cat >>conftest.$ac_ext <<_ACEOF
8394 /* end confdefs.h. */
8395 $ac_includes_default
8396 typedef short ac__type_sizeof_;
8398 main ()
8400 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8401 test_array [0] = 0
8404 return 0;
8406 _ACEOF
8407 rm -f conftest.$ac_objext
8408 if { (ac_try="$ac_compile"
8409 case "(($ac_try" in
8410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8411 *) ac_try_echo=$ac_try;;
8412 esac
8413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8414 (eval "$ac_compile") 2>conftest.er1
8415 ac_status=$?
8416 grep -v '^ *+' conftest.er1 >conftest.err
8417 rm -f conftest.er1
8418 cat conftest.err >&5
8419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420 (exit $ac_status); } && {
8421 test -z "$ac_c_werror_flag" ||
8422 test ! -s conftest.err
8423 } && test -s conftest.$ac_objext; then
8424 ac_hi=$ac_mid
8425 else
8426 echo "$as_me: failed program was:" >&5
8427 sed 's/^/| /' conftest.$ac_ext >&5
8429 ac_lo=`expr '(' $ac_mid ')' + 1`
8432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8433 done
8434 case $ac_lo in
8435 ?*) ac_cv_sizeof_short=$ac_lo;;
8436 '') if test "$ac_cv_type_short" = yes; then
8437 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
8438 See \`config.log' for more details." >&5
8439 echo "$as_me: error: cannot compute sizeof (short)
8440 See \`config.log' for more details." >&2;}
8441 { (exit 77); exit 77; }; }
8442 else
8443 ac_cv_sizeof_short=0
8444 fi ;;
8445 esac
8446 else
8447 cat >conftest.$ac_ext <<_ACEOF
8448 /* confdefs.h. */
8449 _ACEOF
8450 cat confdefs.h >>conftest.$ac_ext
8451 cat >>conftest.$ac_ext <<_ACEOF
8452 /* end confdefs.h. */
8453 $ac_includes_default
8454 typedef short ac__type_sizeof_;
8455 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8456 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8457 #include <stdio.h>
8458 #include <stdlib.h>
8460 main ()
8463 FILE *f = fopen ("conftest.val", "w");
8464 if (! f)
8465 return 1;
8466 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8468 long int i = longval ();
8469 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8470 return 1;
8471 fprintf (f, "%ld\n", i);
8473 else
8475 unsigned long int i = ulongval ();
8476 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8477 return 1;
8478 fprintf (f, "%lu\n", i);
8480 return ferror (f) || fclose (f) != 0;
8483 return 0;
8485 _ACEOF
8486 rm -f conftest$ac_exeext
8487 if { (ac_try="$ac_link"
8488 case "(($ac_try" in
8489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8490 *) ac_try_echo=$ac_try;;
8491 esac
8492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8493 (eval "$ac_link") 2>&5
8494 ac_status=$?
8495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8497 { (case "(($ac_try" in
8498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8499 *) ac_try_echo=$ac_try;;
8500 esac
8501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8502 (eval "$ac_try") 2>&5
8503 ac_status=$?
8504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505 (exit $ac_status); }; }; then
8506 ac_cv_sizeof_short=`cat conftest.val`
8507 else
8508 echo "$as_me: program exited with status $ac_status" >&5
8509 echo "$as_me: failed program was:" >&5
8510 sed 's/^/| /' conftest.$ac_ext >&5
8512 ( exit $ac_status )
8513 if test "$ac_cv_type_short" = yes; then
8514 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
8515 See \`config.log' for more details." >&5
8516 echo "$as_me: error: cannot compute sizeof (short)
8517 See \`config.log' for more details." >&2;}
8518 { (exit 77); exit 77; }; }
8519 else
8520 ac_cv_sizeof_short=0
8523 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8525 rm -f conftest.val
8527 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
8528 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
8532 cat >>confdefs.h <<_ACEOF
8533 #define SIZEOF_SHORT $ac_cv_sizeof_short
8534 _ACEOF
8537 { echo "$as_me:$LINENO: checking for float" >&5
8538 echo $ECHO_N "checking for float... $ECHO_C" >&6; }
8539 if test "${ac_cv_type_float+set}" = set; then
8540 echo $ECHO_N "(cached) $ECHO_C" >&6
8541 else
8542 cat >conftest.$ac_ext <<_ACEOF
8543 /* confdefs.h. */
8544 _ACEOF
8545 cat confdefs.h >>conftest.$ac_ext
8546 cat >>conftest.$ac_ext <<_ACEOF
8547 /* end confdefs.h. */
8548 $ac_includes_default
8549 typedef float ac__type_new_;
8551 main ()
8553 if ((ac__type_new_ *) 0)
8554 return 0;
8555 if (sizeof (ac__type_new_))
8556 return 0;
8558 return 0;
8560 _ACEOF
8561 rm -f conftest.$ac_objext
8562 if { (ac_try="$ac_compile"
8563 case "(($ac_try" in
8564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8565 *) ac_try_echo=$ac_try;;
8566 esac
8567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8568 (eval "$ac_compile") 2>conftest.er1
8569 ac_status=$?
8570 grep -v '^ *+' conftest.er1 >conftest.err
8571 rm -f conftest.er1
8572 cat conftest.err >&5
8573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574 (exit $ac_status); } && {
8575 test -z "$ac_c_werror_flag" ||
8576 test ! -s conftest.err
8577 } && test -s conftest.$ac_objext; then
8578 ac_cv_type_float=yes
8579 else
8580 echo "$as_me: failed program was:" >&5
8581 sed 's/^/| /' conftest.$ac_ext >&5
8583 ac_cv_type_float=no
8586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8588 { echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
8589 echo "${ECHO_T}$ac_cv_type_float" >&6; }
8591 # The cast to long int works around a bug in the HP C Compiler
8592 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8593 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8594 # This bug is HP SR number 8606223364.
8595 { echo "$as_me:$LINENO: checking size of float" >&5
8596 echo $ECHO_N "checking size of float... $ECHO_C" >&6; }
8597 if test "${ac_cv_sizeof_float+set}" = set; then
8598 echo $ECHO_N "(cached) $ECHO_C" >&6
8599 else
8600 if test "$cross_compiling" = yes; then
8601 # Depending upon the size, compute the lo and hi bounds.
8602 cat >conftest.$ac_ext <<_ACEOF
8603 /* confdefs.h. */
8604 _ACEOF
8605 cat confdefs.h >>conftest.$ac_ext
8606 cat >>conftest.$ac_ext <<_ACEOF
8607 /* end confdefs.h. */
8608 $ac_includes_default
8609 typedef float ac__type_sizeof_;
8611 main ()
8613 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8614 test_array [0] = 0
8617 return 0;
8619 _ACEOF
8620 rm -f conftest.$ac_objext
8621 if { (ac_try="$ac_compile"
8622 case "(($ac_try" in
8623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8624 *) ac_try_echo=$ac_try;;
8625 esac
8626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8627 (eval "$ac_compile") 2>conftest.er1
8628 ac_status=$?
8629 grep -v '^ *+' conftest.er1 >conftest.err
8630 rm -f conftest.er1
8631 cat conftest.err >&5
8632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8633 (exit $ac_status); } && {
8634 test -z "$ac_c_werror_flag" ||
8635 test ! -s conftest.err
8636 } && test -s conftest.$ac_objext; then
8637 ac_lo=0 ac_mid=0
8638 while :; do
8639 cat >conftest.$ac_ext <<_ACEOF
8640 /* confdefs.h. */
8641 _ACEOF
8642 cat confdefs.h >>conftest.$ac_ext
8643 cat >>conftest.$ac_ext <<_ACEOF
8644 /* end confdefs.h. */
8645 $ac_includes_default
8646 typedef float ac__type_sizeof_;
8648 main ()
8650 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8651 test_array [0] = 0
8654 return 0;
8656 _ACEOF
8657 rm -f conftest.$ac_objext
8658 if { (ac_try="$ac_compile"
8659 case "(($ac_try" in
8660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8661 *) ac_try_echo=$ac_try;;
8662 esac
8663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8664 (eval "$ac_compile") 2>conftest.er1
8665 ac_status=$?
8666 grep -v '^ *+' conftest.er1 >conftest.err
8667 rm -f conftest.er1
8668 cat conftest.err >&5
8669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670 (exit $ac_status); } && {
8671 test -z "$ac_c_werror_flag" ||
8672 test ! -s conftest.err
8673 } && test -s conftest.$ac_objext; then
8674 ac_hi=$ac_mid; break
8675 else
8676 echo "$as_me: failed program was:" >&5
8677 sed 's/^/| /' conftest.$ac_ext >&5
8679 ac_lo=`expr $ac_mid + 1`
8680 if test $ac_lo -le $ac_mid; then
8681 ac_lo= ac_hi=
8682 break
8684 ac_mid=`expr 2 '*' $ac_mid + 1`
8687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8688 done
8689 else
8690 echo "$as_me: failed program was:" >&5
8691 sed 's/^/| /' conftest.$ac_ext >&5
8693 cat >conftest.$ac_ext <<_ACEOF
8694 /* confdefs.h. */
8695 _ACEOF
8696 cat confdefs.h >>conftest.$ac_ext
8697 cat >>conftest.$ac_ext <<_ACEOF
8698 /* end confdefs.h. */
8699 $ac_includes_default
8700 typedef float ac__type_sizeof_;
8702 main ()
8704 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8705 test_array [0] = 0
8708 return 0;
8710 _ACEOF
8711 rm -f conftest.$ac_objext
8712 if { (ac_try="$ac_compile"
8713 case "(($ac_try" in
8714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8715 *) ac_try_echo=$ac_try;;
8716 esac
8717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8718 (eval "$ac_compile") 2>conftest.er1
8719 ac_status=$?
8720 grep -v '^ *+' conftest.er1 >conftest.err
8721 rm -f conftest.er1
8722 cat conftest.err >&5
8723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8724 (exit $ac_status); } && {
8725 test -z "$ac_c_werror_flag" ||
8726 test ! -s conftest.err
8727 } && test -s conftest.$ac_objext; then
8728 ac_hi=-1 ac_mid=-1
8729 while :; do
8730 cat >conftest.$ac_ext <<_ACEOF
8731 /* confdefs.h. */
8732 _ACEOF
8733 cat confdefs.h >>conftest.$ac_ext
8734 cat >>conftest.$ac_ext <<_ACEOF
8735 /* end confdefs.h. */
8736 $ac_includes_default
8737 typedef float ac__type_sizeof_;
8739 main ()
8741 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8742 test_array [0] = 0
8745 return 0;
8747 _ACEOF
8748 rm -f conftest.$ac_objext
8749 if { (ac_try="$ac_compile"
8750 case "(($ac_try" in
8751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8752 *) ac_try_echo=$ac_try;;
8753 esac
8754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8755 (eval "$ac_compile") 2>conftest.er1
8756 ac_status=$?
8757 grep -v '^ *+' conftest.er1 >conftest.err
8758 rm -f conftest.er1
8759 cat conftest.err >&5
8760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8761 (exit $ac_status); } && {
8762 test -z "$ac_c_werror_flag" ||
8763 test ! -s conftest.err
8764 } && test -s conftest.$ac_objext; then
8765 ac_lo=$ac_mid; break
8766 else
8767 echo "$as_me: failed program was:" >&5
8768 sed 's/^/| /' conftest.$ac_ext >&5
8770 ac_hi=`expr '(' $ac_mid ')' - 1`
8771 if test $ac_mid -le $ac_hi; then
8772 ac_lo= ac_hi=
8773 break
8775 ac_mid=`expr 2 '*' $ac_mid`
8778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8779 done
8780 else
8781 echo "$as_me: failed program was:" >&5
8782 sed 's/^/| /' conftest.$ac_ext >&5
8784 ac_lo= ac_hi=
8787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8791 # Binary search between lo and hi bounds.
8792 while test "x$ac_lo" != "x$ac_hi"; do
8793 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8794 cat >conftest.$ac_ext <<_ACEOF
8795 /* confdefs.h. */
8796 _ACEOF
8797 cat confdefs.h >>conftest.$ac_ext
8798 cat >>conftest.$ac_ext <<_ACEOF
8799 /* end confdefs.h. */
8800 $ac_includes_default
8801 typedef float ac__type_sizeof_;
8803 main ()
8805 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8806 test_array [0] = 0
8809 return 0;
8811 _ACEOF
8812 rm -f conftest.$ac_objext
8813 if { (ac_try="$ac_compile"
8814 case "(($ac_try" in
8815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8816 *) ac_try_echo=$ac_try;;
8817 esac
8818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8819 (eval "$ac_compile") 2>conftest.er1
8820 ac_status=$?
8821 grep -v '^ *+' conftest.er1 >conftest.err
8822 rm -f conftest.er1
8823 cat conftest.err >&5
8824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8825 (exit $ac_status); } && {
8826 test -z "$ac_c_werror_flag" ||
8827 test ! -s conftest.err
8828 } && test -s conftest.$ac_objext; then
8829 ac_hi=$ac_mid
8830 else
8831 echo "$as_me: failed program was:" >&5
8832 sed 's/^/| /' conftest.$ac_ext >&5
8834 ac_lo=`expr '(' $ac_mid ')' + 1`
8837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8838 done
8839 case $ac_lo in
8840 ?*) ac_cv_sizeof_float=$ac_lo;;
8841 '') if test "$ac_cv_type_float" = yes; then
8842 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
8843 See \`config.log' for more details." >&5
8844 echo "$as_me: error: cannot compute sizeof (float)
8845 See \`config.log' for more details." >&2;}
8846 { (exit 77); exit 77; }; }
8847 else
8848 ac_cv_sizeof_float=0
8849 fi ;;
8850 esac
8851 else
8852 cat >conftest.$ac_ext <<_ACEOF
8853 /* confdefs.h. */
8854 _ACEOF
8855 cat confdefs.h >>conftest.$ac_ext
8856 cat >>conftest.$ac_ext <<_ACEOF
8857 /* end confdefs.h. */
8858 $ac_includes_default
8859 typedef float ac__type_sizeof_;
8860 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8861 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8862 #include <stdio.h>
8863 #include <stdlib.h>
8865 main ()
8868 FILE *f = fopen ("conftest.val", "w");
8869 if (! f)
8870 return 1;
8871 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8873 long int i = longval ();
8874 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8875 return 1;
8876 fprintf (f, "%ld\n", i);
8878 else
8880 unsigned long int i = ulongval ();
8881 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8882 return 1;
8883 fprintf (f, "%lu\n", i);
8885 return ferror (f) || fclose (f) != 0;
8888 return 0;
8890 _ACEOF
8891 rm -f conftest$ac_exeext
8892 if { (ac_try="$ac_link"
8893 case "(($ac_try" in
8894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8895 *) ac_try_echo=$ac_try;;
8896 esac
8897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8898 (eval "$ac_link") 2>&5
8899 ac_status=$?
8900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8902 { (case "(($ac_try" in
8903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8904 *) ac_try_echo=$ac_try;;
8905 esac
8906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8907 (eval "$ac_try") 2>&5
8908 ac_status=$?
8909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8910 (exit $ac_status); }; }; then
8911 ac_cv_sizeof_float=`cat conftest.val`
8912 else
8913 echo "$as_me: program exited with status $ac_status" >&5
8914 echo "$as_me: failed program was:" >&5
8915 sed 's/^/| /' conftest.$ac_ext >&5
8917 ( exit $ac_status )
8918 if test "$ac_cv_type_float" = yes; then
8919 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
8920 See \`config.log' for more details." >&5
8921 echo "$as_me: error: cannot compute sizeof (float)
8922 See \`config.log' for more details." >&2;}
8923 { (exit 77); exit 77; }; }
8924 else
8925 ac_cv_sizeof_float=0
8928 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8930 rm -f conftest.val
8932 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
8933 echo "${ECHO_T}$ac_cv_sizeof_float" >&6; }
8937 cat >>confdefs.h <<_ACEOF
8938 #define SIZEOF_FLOAT $ac_cv_sizeof_float
8939 _ACEOF
8942 { echo "$as_me:$LINENO: checking for double" >&5
8943 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
8944 if test "${ac_cv_type_double+set}" = set; then
8945 echo $ECHO_N "(cached) $ECHO_C" >&6
8946 else
8947 cat >conftest.$ac_ext <<_ACEOF
8948 /* confdefs.h. */
8949 _ACEOF
8950 cat confdefs.h >>conftest.$ac_ext
8951 cat >>conftest.$ac_ext <<_ACEOF
8952 /* end confdefs.h. */
8953 $ac_includes_default
8954 typedef double ac__type_new_;
8956 main ()
8958 if ((ac__type_new_ *) 0)
8959 return 0;
8960 if (sizeof (ac__type_new_))
8961 return 0;
8963 return 0;
8965 _ACEOF
8966 rm -f conftest.$ac_objext
8967 if { (ac_try="$ac_compile"
8968 case "(($ac_try" in
8969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8970 *) ac_try_echo=$ac_try;;
8971 esac
8972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8973 (eval "$ac_compile") 2>conftest.er1
8974 ac_status=$?
8975 grep -v '^ *+' conftest.er1 >conftest.err
8976 rm -f conftest.er1
8977 cat conftest.err >&5
8978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8979 (exit $ac_status); } && {
8980 test -z "$ac_c_werror_flag" ||
8981 test ! -s conftest.err
8982 } && test -s conftest.$ac_objext; then
8983 ac_cv_type_double=yes
8984 else
8985 echo "$as_me: failed program was:" >&5
8986 sed 's/^/| /' conftest.$ac_ext >&5
8988 ac_cv_type_double=no
8991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8993 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
8994 echo "${ECHO_T}$ac_cv_type_double" >&6; }
8996 # The cast to long int works around a bug in the HP C Compiler
8997 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8998 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8999 # This bug is HP SR number 8606223364.
9000 { echo "$as_me:$LINENO: checking size of double" >&5
9001 echo $ECHO_N "checking size of double... $ECHO_C" >&6; }
9002 if test "${ac_cv_sizeof_double+set}" = set; then
9003 echo $ECHO_N "(cached) $ECHO_C" >&6
9004 else
9005 if test "$cross_compiling" = yes; then
9006 # Depending upon the size, compute the lo and hi bounds.
9007 cat >conftest.$ac_ext <<_ACEOF
9008 /* confdefs.h. */
9009 _ACEOF
9010 cat confdefs.h >>conftest.$ac_ext
9011 cat >>conftest.$ac_ext <<_ACEOF
9012 /* end confdefs.h. */
9013 $ac_includes_default
9014 typedef double ac__type_sizeof_;
9016 main ()
9018 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9019 test_array [0] = 0
9022 return 0;
9024 _ACEOF
9025 rm -f conftest.$ac_objext
9026 if { (ac_try="$ac_compile"
9027 case "(($ac_try" in
9028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9029 *) ac_try_echo=$ac_try;;
9030 esac
9031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9032 (eval "$ac_compile") 2>conftest.er1
9033 ac_status=$?
9034 grep -v '^ *+' conftest.er1 >conftest.err
9035 rm -f conftest.er1
9036 cat conftest.err >&5
9037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9038 (exit $ac_status); } && {
9039 test -z "$ac_c_werror_flag" ||
9040 test ! -s conftest.err
9041 } && test -s conftest.$ac_objext; then
9042 ac_lo=0 ac_mid=0
9043 while :; do
9044 cat >conftest.$ac_ext <<_ACEOF
9045 /* confdefs.h. */
9046 _ACEOF
9047 cat confdefs.h >>conftest.$ac_ext
9048 cat >>conftest.$ac_ext <<_ACEOF
9049 /* end confdefs.h. */
9050 $ac_includes_default
9051 typedef double ac__type_sizeof_;
9053 main ()
9055 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9056 test_array [0] = 0
9059 return 0;
9061 _ACEOF
9062 rm -f conftest.$ac_objext
9063 if { (ac_try="$ac_compile"
9064 case "(($ac_try" in
9065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9066 *) ac_try_echo=$ac_try;;
9067 esac
9068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9069 (eval "$ac_compile") 2>conftest.er1
9070 ac_status=$?
9071 grep -v '^ *+' conftest.er1 >conftest.err
9072 rm -f conftest.er1
9073 cat conftest.err >&5
9074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9075 (exit $ac_status); } && {
9076 test -z "$ac_c_werror_flag" ||
9077 test ! -s conftest.err
9078 } && test -s conftest.$ac_objext; then
9079 ac_hi=$ac_mid; break
9080 else
9081 echo "$as_me: failed program was:" >&5
9082 sed 's/^/| /' conftest.$ac_ext >&5
9084 ac_lo=`expr $ac_mid + 1`
9085 if test $ac_lo -le $ac_mid; then
9086 ac_lo= ac_hi=
9087 break
9089 ac_mid=`expr 2 '*' $ac_mid + 1`
9092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9093 done
9094 else
9095 echo "$as_me: failed program was:" >&5
9096 sed 's/^/| /' conftest.$ac_ext >&5
9098 cat >conftest.$ac_ext <<_ACEOF
9099 /* confdefs.h. */
9100 _ACEOF
9101 cat confdefs.h >>conftest.$ac_ext
9102 cat >>conftest.$ac_ext <<_ACEOF
9103 /* end confdefs.h. */
9104 $ac_includes_default
9105 typedef double ac__type_sizeof_;
9107 main ()
9109 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9110 test_array [0] = 0
9113 return 0;
9115 _ACEOF
9116 rm -f conftest.$ac_objext
9117 if { (ac_try="$ac_compile"
9118 case "(($ac_try" in
9119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9120 *) ac_try_echo=$ac_try;;
9121 esac
9122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9123 (eval "$ac_compile") 2>conftest.er1
9124 ac_status=$?
9125 grep -v '^ *+' conftest.er1 >conftest.err
9126 rm -f conftest.er1
9127 cat conftest.err >&5
9128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9129 (exit $ac_status); } && {
9130 test -z "$ac_c_werror_flag" ||
9131 test ! -s conftest.err
9132 } && test -s conftest.$ac_objext; then
9133 ac_hi=-1 ac_mid=-1
9134 while :; do
9135 cat >conftest.$ac_ext <<_ACEOF
9136 /* confdefs.h. */
9137 _ACEOF
9138 cat confdefs.h >>conftest.$ac_ext
9139 cat >>conftest.$ac_ext <<_ACEOF
9140 /* end confdefs.h. */
9141 $ac_includes_default
9142 typedef double ac__type_sizeof_;
9144 main ()
9146 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9147 test_array [0] = 0
9150 return 0;
9152 _ACEOF
9153 rm -f conftest.$ac_objext
9154 if { (ac_try="$ac_compile"
9155 case "(($ac_try" in
9156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9157 *) ac_try_echo=$ac_try;;
9158 esac
9159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9160 (eval "$ac_compile") 2>conftest.er1
9161 ac_status=$?
9162 grep -v '^ *+' conftest.er1 >conftest.err
9163 rm -f conftest.er1
9164 cat conftest.err >&5
9165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9166 (exit $ac_status); } && {
9167 test -z "$ac_c_werror_flag" ||
9168 test ! -s conftest.err
9169 } && test -s conftest.$ac_objext; then
9170 ac_lo=$ac_mid; break
9171 else
9172 echo "$as_me: failed program was:" >&5
9173 sed 's/^/| /' conftest.$ac_ext >&5
9175 ac_hi=`expr '(' $ac_mid ')' - 1`
9176 if test $ac_mid -le $ac_hi; then
9177 ac_lo= ac_hi=
9178 break
9180 ac_mid=`expr 2 '*' $ac_mid`
9183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9184 done
9185 else
9186 echo "$as_me: failed program was:" >&5
9187 sed 's/^/| /' conftest.$ac_ext >&5
9189 ac_lo= ac_hi=
9192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9196 # Binary search between lo and hi bounds.
9197 while test "x$ac_lo" != "x$ac_hi"; do
9198 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9199 cat >conftest.$ac_ext <<_ACEOF
9200 /* confdefs.h. */
9201 _ACEOF
9202 cat confdefs.h >>conftest.$ac_ext
9203 cat >>conftest.$ac_ext <<_ACEOF
9204 /* end confdefs.h. */
9205 $ac_includes_default
9206 typedef double ac__type_sizeof_;
9208 main ()
9210 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9211 test_array [0] = 0
9214 return 0;
9216 _ACEOF
9217 rm -f conftest.$ac_objext
9218 if { (ac_try="$ac_compile"
9219 case "(($ac_try" in
9220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9221 *) ac_try_echo=$ac_try;;
9222 esac
9223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9224 (eval "$ac_compile") 2>conftest.er1
9225 ac_status=$?
9226 grep -v '^ *+' conftest.er1 >conftest.err
9227 rm -f conftest.er1
9228 cat conftest.err >&5
9229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9230 (exit $ac_status); } && {
9231 test -z "$ac_c_werror_flag" ||
9232 test ! -s conftest.err
9233 } && test -s conftest.$ac_objext; then
9234 ac_hi=$ac_mid
9235 else
9236 echo "$as_me: failed program was:" >&5
9237 sed 's/^/| /' conftest.$ac_ext >&5
9239 ac_lo=`expr '(' $ac_mid ')' + 1`
9242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9243 done
9244 case $ac_lo in
9245 ?*) ac_cv_sizeof_double=$ac_lo;;
9246 '') if test "$ac_cv_type_double" = yes; then
9247 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
9248 See \`config.log' for more details." >&5
9249 echo "$as_me: error: cannot compute sizeof (double)
9250 See \`config.log' for more details." >&2;}
9251 { (exit 77); exit 77; }; }
9252 else
9253 ac_cv_sizeof_double=0
9254 fi ;;
9255 esac
9256 else
9257 cat >conftest.$ac_ext <<_ACEOF
9258 /* confdefs.h. */
9259 _ACEOF
9260 cat confdefs.h >>conftest.$ac_ext
9261 cat >>conftest.$ac_ext <<_ACEOF
9262 /* end confdefs.h. */
9263 $ac_includes_default
9264 typedef double ac__type_sizeof_;
9265 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9266 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9267 #include <stdio.h>
9268 #include <stdlib.h>
9270 main ()
9273 FILE *f = fopen ("conftest.val", "w");
9274 if (! f)
9275 return 1;
9276 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9278 long int i = longval ();
9279 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9280 return 1;
9281 fprintf (f, "%ld\n", i);
9283 else
9285 unsigned long int i = ulongval ();
9286 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9287 return 1;
9288 fprintf (f, "%lu\n", i);
9290 return ferror (f) || fclose (f) != 0;
9293 return 0;
9295 _ACEOF
9296 rm -f conftest$ac_exeext
9297 if { (ac_try="$ac_link"
9298 case "(($ac_try" in
9299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9300 *) ac_try_echo=$ac_try;;
9301 esac
9302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9303 (eval "$ac_link") 2>&5
9304 ac_status=$?
9305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9306 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9307 { (case "(($ac_try" in
9308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9309 *) ac_try_echo=$ac_try;;
9310 esac
9311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9312 (eval "$ac_try") 2>&5
9313 ac_status=$?
9314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9315 (exit $ac_status); }; }; then
9316 ac_cv_sizeof_double=`cat conftest.val`
9317 else
9318 echo "$as_me: program exited with status $ac_status" >&5
9319 echo "$as_me: failed program was:" >&5
9320 sed 's/^/| /' conftest.$ac_ext >&5
9322 ( exit $ac_status )
9323 if test "$ac_cv_type_double" = yes; then
9324 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
9325 See \`config.log' for more details." >&5
9326 echo "$as_me: error: cannot compute sizeof (double)
9327 See \`config.log' for more details." >&2;}
9328 { (exit 77); exit 77; }; }
9329 else
9330 ac_cv_sizeof_double=0
9333 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9335 rm -f conftest.val
9337 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
9338 echo "${ECHO_T}$ac_cv_sizeof_double" >&6; }
9342 cat >>confdefs.h <<_ACEOF
9343 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
9344 _ACEOF
9347 { echo "$as_me:$LINENO: checking for fpos_t" >&5
9348 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6; }
9349 if test "${ac_cv_type_fpos_t+set}" = set; then
9350 echo $ECHO_N "(cached) $ECHO_C" >&6
9351 else
9352 cat >conftest.$ac_ext <<_ACEOF
9353 /* confdefs.h. */
9354 _ACEOF
9355 cat confdefs.h >>conftest.$ac_ext
9356 cat >>conftest.$ac_ext <<_ACEOF
9357 /* end confdefs.h. */
9358 $ac_includes_default
9359 typedef fpos_t ac__type_new_;
9361 main ()
9363 if ((ac__type_new_ *) 0)
9364 return 0;
9365 if (sizeof (ac__type_new_))
9366 return 0;
9368 return 0;
9370 _ACEOF
9371 rm -f conftest.$ac_objext
9372 if { (ac_try="$ac_compile"
9373 case "(($ac_try" in
9374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9375 *) ac_try_echo=$ac_try;;
9376 esac
9377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9378 (eval "$ac_compile") 2>conftest.er1
9379 ac_status=$?
9380 grep -v '^ *+' conftest.er1 >conftest.err
9381 rm -f conftest.er1
9382 cat conftest.err >&5
9383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384 (exit $ac_status); } && {
9385 test -z "$ac_c_werror_flag" ||
9386 test ! -s conftest.err
9387 } && test -s conftest.$ac_objext; then
9388 ac_cv_type_fpos_t=yes
9389 else
9390 echo "$as_me: failed program was:" >&5
9391 sed 's/^/| /' conftest.$ac_ext >&5
9393 ac_cv_type_fpos_t=no
9396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9398 { echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
9399 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6; }
9401 # The cast to long int works around a bug in the HP C Compiler
9402 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9403 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9404 # This bug is HP SR number 8606223364.
9405 { echo "$as_me:$LINENO: checking size of fpos_t" >&5
9406 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6; }
9407 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
9408 echo $ECHO_N "(cached) $ECHO_C" >&6
9409 else
9410 if test "$cross_compiling" = yes; then
9411 # Depending upon the size, compute the lo and hi bounds.
9412 cat >conftest.$ac_ext <<_ACEOF
9413 /* confdefs.h. */
9414 _ACEOF
9415 cat confdefs.h >>conftest.$ac_ext
9416 cat >>conftest.$ac_ext <<_ACEOF
9417 /* end confdefs.h. */
9418 $ac_includes_default
9419 typedef fpos_t ac__type_sizeof_;
9421 main ()
9423 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9424 test_array [0] = 0
9427 return 0;
9429 _ACEOF
9430 rm -f conftest.$ac_objext
9431 if { (ac_try="$ac_compile"
9432 case "(($ac_try" in
9433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9434 *) ac_try_echo=$ac_try;;
9435 esac
9436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9437 (eval "$ac_compile") 2>conftest.er1
9438 ac_status=$?
9439 grep -v '^ *+' conftest.er1 >conftest.err
9440 rm -f conftest.er1
9441 cat conftest.err >&5
9442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9443 (exit $ac_status); } && {
9444 test -z "$ac_c_werror_flag" ||
9445 test ! -s conftest.err
9446 } && test -s conftest.$ac_objext; then
9447 ac_lo=0 ac_mid=0
9448 while :; do
9449 cat >conftest.$ac_ext <<_ACEOF
9450 /* confdefs.h. */
9451 _ACEOF
9452 cat confdefs.h >>conftest.$ac_ext
9453 cat >>conftest.$ac_ext <<_ACEOF
9454 /* end confdefs.h. */
9455 $ac_includes_default
9456 typedef fpos_t ac__type_sizeof_;
9458 main ()
9460 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9461 test_array [0] = 0
9464 return 0;
9466 _ACEOF
9467 rm -f conftest.$ac_objext
9468 if { (ac_try="$ac_compile"
9469 case "(($ac_try" in
9470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9471 *) ac_try_echo=$ac_try;;
9472 esac
9473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9474 (eval "$ac_compile") 2>conftest.er1
9475 ac_status=$?
9476 grep -v '^ *+' conftest.er1 >conftest.err
9477 rm -f conftest.er1
9478 cat conftest.err >&5
9479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9480 (exit $ac_status); } && {
9481 test -z "$ac_c_werror_flag" ||
9482 test ! -s conftest.err
9483 } && test -s conftest.$ac_objext; then
9484 ac_hi=$ac_mid; break
9485 else
9486 echo "$as_me: failed program was:" >&5
9487 sed 's/^/| /' conftest.$ac_ext >&5
9489 ac_lo=`expr $ac_mid + 1`
9490 if test $ac_lo -le $ac_mid; then
9491 ac_lo= ac_hi=
9492 break
9494 ac_mid=`expr 2 '*' $ac_mid + 1`
9497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9498 done
9499 else
9500 echo "$as_me: failed program was:" >&5
9501 sed 's/^/| /' conftest.$ac_ext >&5
9503 cat >conftest.$ac_ext <<_ACEOF
9504 /* confdefs.h. */
9505 _ACEOF
9506 cat confdefs.h >>conftest.$ac_ext
9507 cat >>conftest.$ac_ext <<_ACEOF
9508 /* end confdefs.h. */
9509 $ac_includes_default
9510 typedef fpos_t ac__type_sizeof_;
9512 main ()
9514 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9515 test_array [0] = 0
9518 return 0;
9520 _ACEOF
9521 rm -f conftest.$ac_objext
9522 if { (ac_try="$ac_compile"
9523 case "(($ac_try" in
9524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9525 *) ac_try_echo=$ac_try;;
9526 esac
9527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9528 (eval "$ac_compile") 2>conftest.er1
9529 ac_status=$?
9530 grep -v '^ *+' conftest.er1 >conftest.err
9531 rm -f conftest.er1
9532 cat conftest.err >&5
9533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9534 (exit $ac_status); } && {
9535 test -z "$ac_c_werror_flag" ||
9536 test ! -s conftest.err
9537 } && test -s conftest.$ac_objext; then
9538 ac_hi=-1 ac_mid=-1
9539 while :; do
9540 cat >conftest.$ac_ext <<_ACEOF
9541 /* confdefs.h. */
9542 _ACEOF
9543 cat confdefs.h >>conftest.$ac_ext
9544 cat >>conftest.$ac_ext <<_ACEOF
9545 /* end confdefs.h. */
9546 $ac_includes_default
9547 typedef fpos_t ac__type_sizeof_;
9549 main ()
9551 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9552 test_array [0] = 0
9555 return 0;
9557 _ACEOF
9558 rm -f conftest.$ac_objext
9559 if { (ac_try="$ac_compile"
9560 case "(($ac_try" in
9561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9562 *) ac_try_echo=$ac_try;;
9563 esac
9564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9565 (eval "$ac_compile") 2>conftest.er1
9566 ac_status=$?
9567 grep -v '^ *+' conftest.er1 >conftest.err
9568 rm -f conftest.er1
9569 cat conftest.err >&5
9570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9571 (exit $ac_status); } && {
9572 test -z "$ac_c_werror_flag" ||
9573 test ! -s conftest.err
9574 } && test -s conftest.$ac_objext; then
9575 ac_lo=$ac_mid; break
9576 else
9577 echo "$as_me: failed program was:" >&5
9578 sed 's/^/| /' conftest.$ac_ext >&5
9580 ac_hi=`expr '(' $ac_mid ')' - 1`
9581 if test $ac_mid -le $ac_hi; then
9582 ac_lo= ac_hi=
9583 break
9585 ac_mid=`expr 2 '*' $ac_mid`
9588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9589 done
9590 else
9591 echo "$as_me: failed program was:" >&5
9592 sed 's/^/| /' conftest.$ac_ext >&5
9594 ac_lo= ac_hi=
9597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9601 # Binary search between lo and hi bounds.
9602 while test "x$ac_lo" != "x$ac_hi"; do
9603 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9604 cat >conftest.$ac_ext <<_ACEOF
9605 /* confdefs.h. */
9606 _ACEOF
9607 cat confdefs.h >>conftest.$ac_ext
9608 cat >>conftest.$ac_ext <<_ACEOF
9609 /* end confdefs.h. */
9610 $ac_includes_default
9611 typedef fpos_t ac__type_sizeof_;
9613 main ()
9615 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9616 test_array [0] = 0
9619 return 0;
9621 _ACEOF
9622 rm -f conftest.$ac_objext
9623 if { (ac_try="$ac_compile"
9624 case "(($ac_try" in
9625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9626 *) ac_try_echo=$ac_try;;
9627 esac
9628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9629 (eval "$ac_compile") 2>conftest.er1
9630 ac_status=$?
9631 grep -v '^ *+' conftest.er1 >conftest.err
9632 rm -f conftest.er1
9633 cat conftest.err >&5
9634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9635 (exit $ac_status); } && {
9636 test -z "$ac_c_werror_flag" ||
9637 test ! -s conftest.err
9638 } && test -s conftest.$ac_objext; then
9639 ac_hi=$ac_mid
9640 else
9641 echo "$as_me: failed program was:" >&5
9642 sed 's/^/| /' conftest.$ac_ext >&5
9644 ac_lo=`expr '(' $ac_mid ')' + 1`
9647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9648 done
9649 case $ac_lo in
9650 ?*) ac_cv_sizeof_fpos_t=$ac_lo;;
9651 '') if test "$ac_cv_type_fpos_t" = yes; then
9652 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
9653 See \`config.log' for more details." >&5
9654 echo "$as_me: error: cannot compute sizeof (fpos_t)
9655 See \`config.log' for more details." >&2;}
9656 { (exit 77); exit 77; }; }
9657 else
9658 ac_cv_sizeof_fpos_t=0
9659 fi ;;
9660 esac
9661 else
9662 cat >conftest.$ac_ext <<_ACEOF
9663 /* confdefs.h. */
9664 _ACEOF
9665 cat confdefs.h >>conftest.$ac_ext
9666 cat >>conftest.$ac_ext <<_ACEOF
9667 /* end confdefs.h. */
9668 $ac_includes_default
9669 typedef fpos_t ac__type_sizeof_;
9670 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9671 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9672 #include <stdio.h>
9673 #include <stdlib.h>
9675 main ()
9678 FILE *f = fopen ("conftest.val", "w");
9679 if (! f)
9680 return 1;
9681 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9683 long int i = longval ();
9684 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9685 return 1;
9686 fprintf (f, "%ld\n", i);
9688 else
9690 unsigned long int i = ulongval ();
9691 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9692 return 1;
9693 fprintf (f, "%lu\n", i);
9695 return ferror (f) || fclose (f) != 0;
9698 return 0;
9700 _ACEOF
9701 rm -f conftest$ac_exeext
9702 if { (ac_try="$ac_link"
9703 case "(($ac_try" in
9704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9705 *) ac_try_echo=$ac_try;;
9706 esac
9707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9708 (eval "$ac_link") 2>&5
9709 ac_status=$?
9710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9711 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9712 { (case "(($ac_try" in
9713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9714 *) ac_try_echo=$ac_try;;
9715 esac
9716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9717 (eval "$ac_try") 2>&5
9718 ac_status=$?
9719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9720 (exit $ac_status); }; }; then
9721 ac_cv_sizeof_fpos_t=`cat conftest.val`
9722 else
9723 echo "$as_me: program exited with status $ac_status" >&5
9724 echo "$as_me: failed program was:" >&5
9725 sed 's/^/| /' conftest.$ac_ext >&5
9727 ( exit $ac_status )
9728 if test "$ac_cv_type_fpos_t" = yes; then
9729 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
9730 See \`config.log' for more details." >&5
9731 echo "$as_me: error: cannot compute sizeof (fpos_t)
9732 See \`config.log' for more details." >&2;}
9733 { (exit 77); exit 77; }; }
9734 else
9735 ac_cv_sizeof_fpos_t=0
9738 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9740 rm -f conftest.val
9742 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
9743 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6; }
9747 cat >>confdefs.h <<_ACEOF
9748 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
9749 _ACEOF
9752 { echo "$as_me:$LINENO: checking for size_t" >&5
9753 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
9754 if test "${ac_cv_type_size_t+set}" = set; then
9755 echo $ECHO_N "(cached) $ECHO_C" >&6
9756 else
9757 cat >conftest.$ac_ext <<_ACEOF
9758 /* confdefs.h. */
9759 _ACEOF
9760 cat confdefs.h >>conftest.$ac_ext
9761 cat >>conftest.$ac_ext <<_ACEOF
9762 /* end confdefs.h. */
9763 $ac_includes_default
9764 typedef size_t ac__type_new_;
9766 main ()
9768 if ((ac__type_new_ *) 0)
9769 return 0;
9770 if (sizeof (ac__type_new_))
9771 return 0;
9773 return 0;
9775 _ACEOF
9776 rm -f conftest.$ac_objext
9777 if { (ac_try="$ac_compile"
9778 case "(($ac_try" in
9779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9780 *) ac_try_echo=$ac_try;;
9781 esac
9782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9783 (eval "$ac_compile") 2>conftest.er1
9784 ac_status=$?
9785 grep -v '^ *+' conftest.er1 >conftest.err
9786 rm -f conftest.er1
9787 cat conftest.err >&5
9788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9789 (exit $ac_status); } && {
9790 test -z "$ac_c_werror_flag" ||
9791 test ! -s conftest.err
9792 } && test -s conftest.$ac_objext; then
9793 ac_cv_type_size_t=yes
9794 else
9795 echo "$as_me: failed program was:" >&5
9796 sed 's/^/| /' conftest.$ac_ext >&5
9798 ac_cv_type_size_t=no
9801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9803 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9804 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
9806 # The cast to long int works around a bug in the HP C Compiler
9807 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9808 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9809 # This bug is HP SR number 8606223364.
9810 { echo "$as_me:$LINENO: checking size of size_t" >&5
9811 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
9812 if test "${ac_cv_sizeof_size_t+set}" = set; then
9813 echo $ECHO_N "(cached) $ECHO_C" >&6
9814 else
9815 if test "$cross_compiling" = yes; then
9816 # Depending upon the size, compute the lo and hi bounds.
9817 cat >conftest.$ac_ext <<_ACEOF
9818 /* confdefs.h. */
9819 _ACEOF
9820 cat confdefs.h >>conftest.$ac_ext
9821 cat >>conftest.$ac_ext <<_ACEOF
9822 /* end confdefs.h. */
9823 $ac_includes_default
9824 typedef size_t ac__type_sizeof_;
9826 main ()
9828 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9829 test_array [0] = 0
9832 return 0;
9834 _ACEOF
9835 rm -f conftest.$ac_objext
9836 if { (ac_try="$ac_compile"
9837 case "(($ac_try" in
9838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9839 *) ac_try_echo=$ac_try;;
9840 esac
9841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9842 (eval "$ac_compile") 2>conftest.er1
9843 ac_status=$?
9844 grep -v '^ *+' conftest.er1 >conftest.err
9845 rm -f conftest.er1
9846 cat conftest.err >&5
9847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9848 (exit $ac_status); } && {
9849 test -z "$ac_c_werror_flag" ||
9850 test ! -s conftest.err
9851 } && test -s conftest.$ac_objext; then
9852 ac_lo=0 ac_mid=0
9853 while :; do
9854 cat >conftest.$ac_ext <<_ACEOF
9855 /* confdefs.h. */
9856 _ACEOF
9857 cat confdefs.h >>conftest.$ac_ext
9858 cat >>conftest.$ac_ext <<_ACEOF
9859 /* end confdefs.h. */
9860 $ac_includes_default
9861 typedef size_t ac__type_sizeof_;
9863 main ()
9865 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9866 test_array [0] = 0
9869 return 0;
9871 _ACEOF
9872 rm -f conftest.$ac_objext
9873 if { (ac_try="$ac_compile"
9874 case "(($ac_try" in
9875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9876 *) ac_try_echo=$ac_try;;
9877 esac
9878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9879 (eval "$ac_compile") 2>conftest.er1
9880 ac_status=$?
9881 grep -v '^ *+' conftest.er1 >conftest.err
9882 rm -f conftest.er1
9883 cat conftest.err >&5
9884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9885 (exit $ac_status); } && {
9886 test -z "$ac_c_werror_flag" ||
9887 test ! -s conftest.err
9888 } && test -s conftest.$ac_objext; then
9889 ac_hi=$ac_mid; break
9890 else
9891 echo "$as_me: failed program was:" >&5
9892 sed 's/^/| /' conftest.$ac_ext >&5
9894 ac_lo=`expr $ac_mid + 1`
9895 if test $ac_lo -le $ac_mid; then
9896 ac_lo= ac_hi=
9897 break
9899 ac_mid=`expr 2 '*' $ac_mid + 1`
9902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9903 done
9904 else
9905 echo "$as_me: failed program was:" >&5
9906 sed 's/^/| /' conftest.$ac_ext >&5
9908 cat >conftest.$ac_ext <<_ACEOF
9909 /* confdefs.h. */
9910 _ACEOF
9911 cat confdefs.h >>conftest.$ac_ext
9912 cat >>conftest.$ac_ext <<_ACEOF
9913 /* end confdefs.h. */
9914 $ac_includes_default
9915 typedef size_t ac__type_sizeof_;
9917 main ()
9919 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9920 test_array [0] = 0
9923 return 0;
9925 _ACEOF
9926 rm -f conftest.$ac_objext
9927 if { (ac_try="$ac_compile"
9928 case "(($ac_try" in
9929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9930 *) ac_try_echo=$ac_try;;
9931 esac
9932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9933 (eval "$ac_compile") 2>conftest.er1
9934 ac_status=$?
9935 grep -v '^ *+' conftest.er1 >conftest.err
9936 rm -f conftest.er1
9937 cat conftest.err >&5
9938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9939 (exit $ac_status); } && {
9940 test -z "$ac_c_werror_flag" ||
9941 test ! -s conftest.err
9942 } && test -s conftest.$ac_objext; then
9943 ac_hi=-1 ac_mid=-1
9944 while :; do
9945 cat >conftest.$ac_ext <<_ACEOF
9946 /* confdefs.h. */
9947 _ACEOF
9948 cat confdefs.h >>conftest.$ac_ext
9949 cat >>conftest.$ac_ext <<_ACEOF
9950 /* end confdefs.h. */
9951 $ac_includes_default
9952 typedef size_t ac__type_sizeof_;
9954 main ()
9956 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9957 test_array [0] = 0
9960 return 0;
9962 _ACEOF
9963 rm -f conftest.$ac_objext
9964 if { (ac_try="$ac_compile"
9965 case "(($ac_try" in
9966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9967 *) ac_try_echo=$ac_try;;
9968 esac
9969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9970 (eval "$ac_compile") 2>conftest.er1
9971 ac_status=$?
9972 grep -v '^ *+' conftest.er1 >conftest.err
9973 rm -f conftest.er1
9974 cat conftest.err >&5
9975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9976 (exit $ac_status); } && {
9977 test -z "$ac_c_werror_flag" ||
9978 test ! -s conftest.err
9979 } && test -s conftest.$ac_objext; then
9980 ac_lo=$ac_mid; break
9981 else
9982 echo "$as_me: failed program was:" >&5
9983 sed 's/^/| /' conftest.$ac_ext >&5
9985 ac_hi=`expr '(' $ac_mid ')' - 1`
9986 if test $ac_mid -le $ac_hi; then
9987 ac_lo= ac_hi=
9988 break
9990 ac_mid=`expr 2 '*' $ac_mid`
9993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9994 done
9995 else
9996 echo "$as_me: failed program was:" >&5
9997 sed 's/^/| /' conftest.$ac_ext >&5
9999 ac_lo= ac_hi=
10002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10006 # Binary search between lo and hi bounds.
10007 while test "x$ac_lo" != "x$ac_hi"; do
10008 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10009 cat >conftest.$ac_ext <<_ACEOF
10010 /* confdefs.h. */
10011 _ACEOF
10012 cat confdefs.h >>conftest.$ac_ext
10013 cat >>conftest.$ac_ext <<_ACEOF
10014 /* end confdefs.h. */
10015 $ac_includes_default
10016 typedef size_t ac__type_sizeof_;
10018 main ()
10020 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10021 test_array [0] = 0
10024 return 0;
10026 _ACEOF
10027 rm -f conftest.$ac_objext
10028 if { (ac_try="$ac_compile"
10029 case "(($ac_try" in
10030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10031 *) ac_try_echo=$ac_try;;
10032 esac
10033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10034 (eval "$ac_compile") 2>conftest.er1
10035 ac_status=$?
10036 grep -v '^ *+' conftest.er1 >conftest.err
10037 rm -f conftest.er1
10038 cat conftest.err >&5
10039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10040 (exit $ac_status); } && {
10041 test -z "$ac_c_werror_flag" ||
10042 test ! -s conftest.err
10043 } && test -s conftest.$ac_objext; then
10044 ac_hi=$ac_mid
10045 else
10046 echo "$as_me: failed program was:" >&5
10047 sed 's/^/| /' conftest.$ac_ext >&5
10049 ac_lo=`expr '(' $ac_mid ')' + 1`
10052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10053 done
10054 case $ac_lo in
10055 ?*) ac_cv_sizeof_size_t=$ac_lo;;
10056 '') if test "$ac_cv_type_size_t" = yes; then
10057 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10058 See \`config.log' for more details." >&5
10059 echo "$as_me: error: cannot compute sizeof (size_t)
10060 See \`config.log' for more details." >&2;}
10061 { (exit 77); exit 77; }; }
10062 else
10063 ac_cv_sizeof_size_t=0
10064 fi ;;
10065 esac
10066 else
10067 cat >conftest.$ac_ext <<_ACEOF
10068 /* confdefs.h. */
10069 _ACEOF
10070 cat confdefs.h >>conftest.$ac_ext
10071 cat >>conftest.$ac_ext <<_ACEOF
10072 /* end confdefs.h. */
10073 $ac_includes_default
10074 typedef size_t ac__type_sizeof_;
10075 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10076 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10077 #include <stdio.h>
10078 #include <stdlib.h>
10080 main ()
10083 FILE *f = fopen ("conftest.val", "w");
10084 if (! f)
10085 return 1;
10086 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10088 long int i = longval ();
10089 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10090 return 1;
10091 fprintf (f, "%ld\n", i);
10093 else
10095 unsigned long int i = ulongval ();
10096 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10097 return 1;
10098 fprintf (f, "%lu\n", i);
10100 return ferror (f) || fclose (f) != 0;
10103 return 0;
10105 _ACEOF
10106 rm -f conftest$ac_exeext
10107 if { (ac_try="$ac_link"
10108 case "(($ac_try" in
10109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10110 *) ac_try_echo=$ac_try;;
10111 esac
10112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10113 (eval "$ac_link") 2>&5
10114 ac_status=$?
10115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10116 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10117 { (case "(($ac_try" in
10118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10119 *) ac_try_echo=$ac_try;;
10120 esac
10121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10122 (eval "$ac_try") 2>&5
10123 ac_status=$?
10124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10125 (exit $ac_status); }; }; then
10126 ac_cv_sizeof_size_t=`cat conftest.val`
10127 else
10128 echo "$as_me: program exited with status $ac_status" >&5
10129 echo "$as_me: failed program was:" >&5
10130 sed 's/^/| /' conftest.$ac_ext >&5
10132 ( exit $ac_status )
10133 if test "$ac_cv_type_size_t" = yes; then
10134 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10135 See \`config.log' for more details." >&5
10136 echo "$as_me: error: cannot compute sizeof (size_t)
10137 See \`config.log' for more details." >&2;}
10138 { (exit 77); exit 77; }; }
10139 else
10140 ac_cv_sizeof_size_t=0
10143 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10145 rm -f conftest.val
10147 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
10148 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
10152 cat >>confdefs.h <<_ACEOF
10153 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
10154 _ACEOF
10158 { echo "$as_me:$LINENO: checking for long long support" >&5
10159 echo $ECHO_N "checking for long long support... $ECHO_C" >&6; }
10160 have_long_long=no
10161 cat >conftest.$ac_ext <<_ACEOF
10162 /* confdefs.h. */
10163 _ACEOF
10164 cat confdefs.h >>conftest.$ac_ext
10165 cat >>conftest.$ac_ext <<_ACEOF
10166 /* end confdefs.h. */
10169 main ()
10171 long long x; x = (long long)0;
10173 return 0;
10175 _ACEOF
10176 rm -f conftest.$ac_objext
10177 if { (ac_try="$ac_compile"
10178 case "(($ac_try" in
10179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10180 *) ac_try_echo=$ac_try;;
10181 esac
10182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10183 (eval "$ac_compile") 2>conftest.er1
10184 ac_status=$?
10185 grep -v '^ *+' conftest.er1 >conftest.err
10186 rm -f conftest.er1
10187 cat conftest.err >&5
10188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10189 (exit $ac_status); } && {
10190 test -z "$ac_c_werror_flag" ||
10191 test ! -s conftest.err
10192 } && test -s conftest.$ac_objext; then
10195 cat >>confdefs.h <<\_ACEOF
10196 #define HAVE_LONG_LONG 1
10197 _ACEOF
10199 have_long_long=yes
10201 else
10202 echo "$as_me: failed program was:" >&5
10203 sed 's/^/| /' conftest.$ac_ext >&5
10208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10209 { echo "$as_me:$LINENO: result: $have_long_long" >&5
10210 echo "${ECHO_T}$have_long_long" >&6; }
10211 if test "$have_long_long" = yes ; then
10212 { echo "$as_me:$LINENO: checking for long long" >&5
10213 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
10214 if test "${ac_cv_type_long_long+set}" = set; then
10215 echo $ECHO_N "(cached) $ECHO_C" >&6
10216 else
10217 cat >conftest.$ac_ext <<_ACEOF
10218 /* confdefs.h. */
10219 _ACEOF
10220 cat confdefs.h >>conftest.$ac_ext
10221 cat >>conftest.$ac_ext <<_ACEOF
10222 /* end confdefs.h. */
10223 $ac_includes_default
10224 typedef long long ac__type_new_;
10226 main ()
10228 if ((ac__type_new_ *) 0)
10229 return 0;
10230 if (sizeof (ac__type_new_))
10231 return 0;
10233 return 0;
10235 _ACEOF
10236 rm -f conftest.$ac_objext
10237 if { (ac_try="$ac_compile"
10238 case "(($ac_try" in
10239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10240 *) ac_try_echo=$ac_try;;
10241 esac
10242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10243 (eval "$ac_compile") 2>conftest.er1
10244 ac_status=$?
10245 grep -v '^ *+' conftest.er1 >conftest.err
10246 rm -f conftest.er1
10247 cat conftest.err >&5
10248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10249 (exit $ac_status); } && {
10250 test -z "$ac_c_werror_flag" ||
10251 test ! -s conftest.err
10252 } && test -s conftest.$ac_objext; then
10253 ac_cv_type_long_long=yes
10254 else
10255 echo "$as_me: failed program was:" >&5
10256 sed 's/^/| /' conftest.$ac_ext >&5
10258 ac_cv_type_long_long=no
10261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10263 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
10264 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
10266 # The cast to long int works around a bug in the HP C Compiler
10267 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10268 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10269 # This bug is HP SR number 8606223364.
10270 { echo "$as_me:$LINENO: checking size of long long" >&5
10271 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
10272 if test "${ac_cv_sizeof_long_long+set}" = set; then
10273 echo $ECHO_N "(cached) $ECHO_C" >&6
10274 else
10275 if test "$cross_compiling" = yes; then
10276 # Depending upon the size, compute the lo and hi bounds.
10277 cat >conftest.$ac_ext <<_ACEOF
10278 /* confdefs.h. */
10279 _ACEOF
10280 cat confdefs.h >>conftest.$ac_ext
10281 cat >>conftest.$ac_ext <<_ACEOF
10282 /* end confdefs.h. */
10283 $ac_includes_default
10284 typedef long long ac__type_sizeof_;
10286 main ()
10288 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10289 test_array [0] = 0
10292 return 0;
10294 _ACEOF
10295 rm -f conftest.$ac_objext
10296 if { (ac_try="$ac_compile"
10297 case "(($ac_try" in
10298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10299 *) ac_try_echo=$ac_try;;
10300 esac
10301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10302 (eval "$ac_compile") 2>conftest.er1
10303 ac_status=$?
10304 grep -v '^ *+' conftest.er1 >conftest.err
10305 rm -f conftest.er1
10306 cat conftest.err >&5
10307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10308 (exit $ac_status); } && {
10309 test -z "$ac_c_werror_flag" ||
10310 test ! -s conftest.err
10311 } && test -s conftest.$ac_objext; then
10312 ac_lo=0 ac_mid=0
10313 while :; do
10314 cat >conftest.$ac_ext <<_ACEOF
10315 /* confdefs.h. */
10316 _ACEOF
10317 cat confdefs.h >>conftest.$ac_ext
10318 cat >>conftest.$ac_ext <<_ACEOF
10319 /* end confdefs.h. */
10320 $ac_includes_default
10321 typedef long long ac__type_sizeof_;
10323 main ()
10325 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10326 test_array [0] = 0
10329 return 0;
10331 _ACEOF
10332 rm -f conftest.$ac_objext
10333 if { (ac_try="$ac_compile"
10334 case "(($ac_try" in
10335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10336 *) ac_try_echo=$ac_try;;
10337 esac
10338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10339 (eval "$ac_compile") 2>conftest.er1
10340 ac_status=$?
10341 grep -v '^ *+' conftest.er1 >conftest.err
10342 rm -f conftest.er1
10343 cat conftest.err >&5
10344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10345 (exit $ac_status); } && {
10346 test -z "$ac_c_werror_flag" ||
10347 test ! -s conftest.err
10348 } && test -s conftest.$ac_objext; then
10349 ac_hi=$ac_mid; break
10350 else
10351 echo "$as_me: failed program was:" >&5
10352 sed 's/^/| /' conftest.$ac_ext >&5
10354 ac_lo=`expr $ac_mid + 1`
10355 if test $ac_lo -le $ac_mid; then
10356 ac_lo= ac_hi=
10357 break
10359 ac_mid=`expr 2 '*' $ac_mid + 1`
10362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10363 done
10364 else
10365 echo "$as_me: failed program was:" >&5
10366 sed 's/^/| /' conftest.$ac_ext >&5
10368 cat >conftest.$ac_ext <<_ACEOF
10369 /* confdefs.h. */
10370 _ACEOF
10371 cat confdefs.h >>conftest.$ac_ext
10372 cat >>conftest.$ac_ext <<_ACEOF
10373 /* end confdefs.h. */
10374 $ac_includes_default
10375 typedef long long ac__type_sizeof_;
10377 main ()
10379 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10380 test_array [0] = 0
10383 return 0;
10385 _ACEOF
10386 rm -f conftest.$ac_objext
10387 if { (ac_try="$ac_compile"
10388 case "(($ac_try" in
10389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10390 *) ac_try_echo=$ac_try;;
10391 esac
10392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10393 (eval "$ac_compile") 2>conftest.er1
10394 ac_status=$?
10395 grep -v '^ *+' conftest.er1 >conftest.err
10396 rm -f conftest.er1
10397 cat conftest.err >&5
10398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10399 (exit $ac_status); } && {
10400 test -z "$ac_c_werror_flag" ||
10401 test ! -s conftest.err
10402 } && test -s conftest.$ac_objext; then
10403 ac_hi=-1 ac_mid=-1
10404 while :; do
10405 cat >conftest.$ac_ext <<_ACEOF
10406 /* confdefs.h. */
10407 _ACEOF
10408 cat confdefs.h >>conftest.$ac_ext
10409 cat >>conftest.$ac_ext <<_ACEOF
10410 /* end confdefs.h. */
10411 $ac_includes_default
10412 typedef long long ac__type_sizeof_;
10414 main ()
10416 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10417 test_array [0] = 0
10420 return 0;
10422 _ACEOF
10423 rm -f conftest.$ac_objext
10424 if { (ac_try="$ac_compile"
10425 case "(($ac_try" in
10426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10427 *) ac_try_echo=$ac_try;;
10428 esac
10429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10430 (eval "$ac_compile") 2>conftest.er1
10431 ac_status=$?
10432 grep -v '^ *+' conftest.er1 >conftest.err
10433 rm -f conftest.er1
10434 cat conftest.err >&5
10435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10436 (exit $ac_status); } && {
10437 test -z "$ac_c_werror_flag" ||
10438 test ! -s conftest.err
10439 } && test -s conftest.$ac_objext; then
10440 ac_lo=$ac_mid; break
10441 else
10442 echo "$as_me: failed program was:" >&5
10443 sed 's/^/| /' conftest.$ac_ext >&5
10445 ac_hi=`expr '(' $ac_mid ')' - 1`
10446 if test $ac_mid -le $ac_hi; then
10447 ac_lo= ac_hi=
10448 break
10450 ac_mid=`expr 2 '*' $ac_mid`
10453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10454 done
10455 else
10456 echo "$as_me: failed program was:" >&5
10457 sed 's/^/| /' conftest.$ac_ext >&5
10459 ac_lo= ac_hi=
10462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10466 # Binary search between lo and hi bounds.
10467 while test "x$ac_lo" != "x$ac_hi"; do
10468 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10469 cat >conftest.$ac_ext <<_ACEOF
10470 /* confdefs.h. */
10471 _ACEOF
10472 cat confdefs.h >>conftest.$ac_ext
10473 cat >>conftest.$ac_ext <<_ACEOF
10474 /* end confdefs.h. */
10475 $ac_includes_default
10476 typedef long long ac__type_sizeof_;
10478 main ()
10480 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10481 test_array [0] = 0
10484 return 0;
10486 _ACEOF
10487 rm -f conftest.$ac_objext
10488 if { (ac_try="$ac_compile"
10489 case "(($ac_try" in
10490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10491 *) ac_try_echo=$ac_try;;
10492 esac
10493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10494 (eval "$ac_compile") 2>conftest.er1
10495 ac_status=$?
10496 grep -v '^ *+' conftest.er1 >conftest.err
10497 rm -f conftest.er1
10498 cat conftest.err >&5
10499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10500 (exit $ac_status); } && {
10501 test -z "$ac_c_werror_flag" ||
10502 test ! -s conftest.err
10503 } && test -s conftest.$ac_objext; then
10504 ac_hi=$ac_mid
10505 else
10506 echo "$as_me: failed program was:" >&5
10507 sed 's/^/| /' conftest.$ac_ext >&5
10509 ac_lo=`expr '(' $ac_mid ')' + 1`
10512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10513 done
10514 case $ac_lo in
10515 ?*) ac_cv_sizeof_long_long=$ac_lo;;
10516 '') if test "$ac_cv_type_long_long" = yes; then
10517 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
10518 See \`config.log' for more details." >&5
10519 echo "$as_me: error: cannot compute sizeof (long long)
10520 See \`config.log' for more details." >&2;}
10521 { (exit 77); exit 77; }; }
10522 else
10523 ac_cv_sizeof_long_long=0
10524 fi ;;
10525 esac
10526 else
10527 cat >conftest.$ac_ext <<_ACEOF
10528 /* confdefs.h. */
10529 _ACEOF
10530 cat confdefs.h >>conftest.$ac_ext
10531 cat >>conftest.$ac_ext <<_ACEOF
10532 /* end confdefs.h. */
10533 $ac_includes_default
10534 typedef long long ac__type_sizeof_;
10535 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10536 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10537 #include <stdio.h>
10538 #include <stdlib.h>
10540 main ()
10543 FILE *f = fopen ("conftest.val", "w");
10544 if (! f)
10545 return 1;
10546 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10548 long int i = longval ();
10549 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10550 return 1;
10551 fprintf (f, "%ld\n", i);
10553 else
10555 unsigned long int i = ulongval ();
10556 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10557 return 1;
10558 fprintf (f, "%lu\n", i);
10560 return ferror (f) || fclose (f) != 0;
10563 return 0;
10565 _ACEOF
10566 rm -f conftest$ac_exeext
10567 if { (ac_try="$ac_link"
10568 case "(($ac_try" in
10569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10570 *) ac_try_echo=$ac_try;;
10571 esac
10572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10573 (eval "$ac_link") 2>&5
10574 ac_status=$?
10575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10576 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10577 { (case "(($ac_try" in
10578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10579 *) ac_try_echo=$ac_try;;
10580 esac
10581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10582 (eval "$ac_try") 2>&5
10583 ac_status=$?
10584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10585 (exit $ac_status); }; }; then
10586 ac_cv_sizeof_long_long=`cat conftest.val`
10587 else
10588 echo "$as_me: program exited with status $ac_status" >&5
10589 echo "$as_me: failed program was:" >&5
10590 sed 's/^/| /' conftest.$ac_ext >&5
10592 ( exit $ac_status )
10593 if test "$ac_cv_type_long_long" = yes; then
10594 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
10595 See \`config.log' for more details." >&5
10596 echo "$as_me: error: cannot compute sizeof (long long)
10597 See \`config.log' for more details." >&2;}
10598 { (exit 77); exit 77; }; }
10599 else
10600 ac_cv_sizeof_long_long=0
10603 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10605 rm -f conftest.val
10607 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
10608 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
10612 cat >>confdefs.h <<_ACEOF
10613 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10614 _ACEOF
10619 { echo "$as_me:$LINENO: checking for _Bool support" >&5
10620 echo $ECHO_N "checking for _Bool support... $ECHO_C" >&6; }
10621 have_c99_bool=no
10622 cat >conftest.$ac_ext <<_ACEOF
10623 /* confdefs.h. */
10624 _ACEOF
10625 cat confdefs.h >>conftest.$ac_ext
10626 cat >>conftest.$ac_ext <<_ACEOF
10627 /* end confdefs.h. */
10630 main ()
10632 _Bool x; x = (_Bool)0;
10634 return 0;
10636 _ACEOF
10637 rm -f conftest.$ac_objext
10638 if { (ac_try="$ac_compile"
10639 case "(($ac_try" in
10640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10641 *) ac_try_echo=$ac_try;;
10642 esac
10643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10644 (eval "$ac_compile") 2>conftest.er1
10645 ac_status=$?
10646 grep -v '^ *+' conftest.er1 >conftest.err
10647 rm -f conftest.er1
10648 cat conftest.err >&5
10649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10650 (exit $ac_status); } && {
10651 test -z "$ac_c_werror_flag" ||
10652 test ! -s conftest.err
10653 } && test -s conftest.$ac_objext; then
10656 cat >>confdefs.h <<\_ACEOF
10657 #define HAVE_C99_BOOL 1
10658 _ACEOF
10660 have_c99_bool=yes
10662 else
10663 echo "$as_me: failed program was:" >&5
10664 sed 's/^/| /' conftest.$ac_ext >&5
10669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10670 { echo "$as_me:$LINENO: result: $have_c99_bool" >&5
10671 echo "${ECHO_T}$have_c99_bool" >&6; }
10672 if test "$have_c99_bool" = yes ; then
10673 { echo "$as_me:$LINENO: checking for _Bool" >&5
10674 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
10675 if test "${ac_cv_type__Bool+set}" = set; then
10676 echo $ECHO_N "(cached) $ECHO_C" >&6
10677 else
10678 cat >conftest.$ac_ext <<_ACEOF
10679 /* confdefs.h. */
10680 _ACEOF
10681 cat confdefs.h >>conftest.$ac_ext
10682 cat >>conftest.$ac_ext <<_ACEOF
10683 /* end confdefs.h. */
10684 $ac_includes_default
10685 typedef _Bool ac__type_new_;
10687 main ()
10689 if ((ac__type_new_ *) 0)
10690 return 0;
10691 if (sizeof (ac__type_new_))
10692 return 0;
10694 return 0;
10696 _ACEOF
10697 rm -f conftest.$ac_objext
10698 if { (ac_try="$ac_compile"
10699 case "(($ac_try" in
10700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10701 *) ac_try_echo=$ac_try;;
10702 esac
10703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10704 (eval "$ac_compile") 2>conftest.er1
10705 ac_status=$?
10706 grep -v '^ *+' conftest.er1 >conftest.err
10707 rm -f conftest.er1
10708 cat conftest.err >&5
10709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10710 (exit $ac_status); } && {
10711 test -z "$ac_c_werror_flag" ||
10712 test ! -s conftest.err
10713 } && test -s conftest.$ac_objext; then
10714 ac_cv_type__Bool=yes
10715 else
10716 echo "$as_me: failed program was:" >&5
10717 sed 's/^/| /' conftest.$ac_ext >&5
10719 ac_cv_type__Bool=no
10722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10724 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
10725 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
10727 # The cast to long int works around a bug in the HP C Compiler
10728 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10729 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10730 # This bug is HP SR number 8606223364.
10731 { echo "$as_me:$LINENO: checking size of _Bool" >&5
10732 echo $ECHO_N "checking size of _Bool... $ECHO_C" >&6; }
10733 if test "${ac_cv_sizeof__Bool+set}" = set; then
10734 echo $ECHO_N "(cached) $ECHO_C" >&6
10735 else
10736 if test "$cross_compiling" = yes; then
10737 # Depending upon the size, compute the lo and hi bounds.
10738 cat >conftest.$ac_ext <<_ACEOF
10739 /* confdefs.h. */
10740 _ACEOF
10741 cat confdefs.h >>conftest.$ac_ext
10742 cat >>conftest.$ac_ext <<_ACEOF
10743 /* end confdefs.h. */
10744 $ac_includes_default
10745 typedef _Bool ac__type_sizeof_;
10747 main ()
10749 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10750 test_array [0] = 0
10753 return 0;
10755 _ACEOF
10756 rm -f conftest.$ac_objext
10757 if { (ac_try="$ac_compile"
10758 case "(($ac_try" in
10759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10760 *) ac_try_echo=$ac_try;;
10761 esac
10762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10763 (eval "$ac_compile") 2>conftest.er1
10764 ac_status=$?
10765 grep -v '^ *+' conftest.er1 >conftest.err
10766 rm -f conftest.er1
10767 cat conftest.err >&5
10768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769 (exit $ac_status); } && {
10770 test -z "$ac_c_werror_flag" ||
10771 test ! -s conftest.err
10772 } && test -s conftest.$ac_objext; then
10773 ac_lo=0 ac_mid=0
10774 while :; do
10775 cat >conftest.$ac_ext <<_ACEOF
10776 /* confdefs.h. */
10777 _ACEOF
10778 cat confdefs.h >>conftest.$ac_ext
10779 cat >>conftest.$ac_ext <<_ACEOF
10780 /* end confdefs.h. */
10781 $ac_includes_default
10782 typedef _Bool ac__type_sizeof_;
10784 main ()
10786 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10787 test_array [0] = 0
10790 return 0;
10792 _ACEOF
10793 rm -f conftest.$ac_objext
10794 if { (ac_try="$ac_compile"
10795 case "(($ac_try" in
10796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10797 *) ac_try_echo=$ac_try;;
10798 esac
10799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10800 (eval "$ac_compile") 2>conftest.er1
10801 ac_status=$?
10802 grep -v '^ *+' conftest.er1 >conftest.err
10803 rm -f conftest.er1
10804 cat conftest.err >&5
10805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10806 (exit $ac_status); } && {
10807 test -z "$ac_c_werror_flag" ||
10808 test ! -s conftest.err
10809 } && test -s conftest.$ac_objext; then
10810 ac_hi=$ac_mid; break
10811 else
10812 echo "$as_me: failed program was:" >&5
10813 sed 's/^/| /' conftest.$ac_ext >&5
10815 ac_lo=`expr $ac_mid + 1`
10816 if test $ac_lo -le $ac_mid; then
10817 ac_lo= ac_hi=
10818 break
10820 ac_mid=`expr 2 '*' $ac_mid + 1`
10823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10824 done
10825 else
10826 echo "$as_me: failed program was:" >&5
10827 sed 's/^/| /' conftest.$ac_ext >&5
10829 cat >conftest.$ac_ext <<_ACEOF
10830 /* confdefs.h. */
10831 _ACEOF
10832 cat confdefs.h >>conftest.$ac_ext
10833 cat >>conftest.$ac_ext <<_ACEOF
10834 /* end confdefs.h. */
10835 $ac_includes_default
10836 typedef _Bool ac__type_sizeof_;
10838 main ()
10840 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10841 test_array [0] = 0
10844 return 0;
10846 _ACEOF
10847 rm -f conftest.$ac_objext
10848 if { (ac_try="$ac_compile"
10849 case "(($ac_try" in
10850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10851 *) ac_try_echo=$ac_try;;
10852 esac
10853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10854 (eval "$ac_compile") 2>conftest.er1
10855 ac_status=$?
10856 grep -v '^ *+' conftest.er1 >conftest.err
10857 rm -f conftest.er1
10858 cat conftest.err >&5
10859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10860 (exit $ac_status); } && {
10861 test -z "$ac_c_werror_flag" ||
10862 test ! -s conftest.err
10863 } && test -s conftest.$ac_objext; then
10864 ac_hi=-1 ac_mid=-1
10865 while :; do
10866 cat >conftest.$ac_ext <<_ACEOF
10867 /* confdefs.h. */
10868 _ACEOF
10869 cat confdefs.h >>conftest.$ac_ext
10870 cat >>conftest.$ac_ext <<_ACEOF
10871 /* end confdefs.h. */
10872 $ac_includes_default
10873 typedef _Bool ac__type_sizeof_;
10875 main ()
10877 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10878 test_array [0] = 0
10881 return 0;
10883 _ACEOF
10884 rm -f conftest.$ac_objext
10885 if { (ac_try="$ac_compile"
10886 case "(($ac_try" in
10887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10888 *) ac_try_echo=$ac_try;;
10889 esac
10890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10891 (eval "$ac_compile") 2>conftest.er1
10892 ac_status=$?
10893 grep -v '^ *+' conftest.er1 >conftest.err
10894 rm -f conftest.er1
10895 cat conftest.err >&5
10896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10897 (exit $ac_status); } && {
10898 test -z "$ac_c_werror_flag" ||
10899 test ! -s conftest.err
10900 } && test -s conftest.$ac_objext; then
10901 ac_lo=$ac_mid; break
10902 else
10903 echo "$as_me: failed program was:" >&5
10904 sed 's/^/| /' conftest.$ac_ext >&5
10906 ac_hi=`expr '(' $ac_mid ')' - 1`
10907 if test $ac_mid -le $ac_hi; then
10908 ac_lo= ac_hi=
10909 break
10911 ac_mid=`expr 2 '*' $ac_mid`
10914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10915 done
10916 else
10917 echo "$as_me: failed program was:" >&5
10918 sed 's/^/| /' conftest.$ac_ext >&5
10920 ac_lo= ac_hi=
10923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10927 # Binary search between lo and hi bounds.
10928 while test "x$ac_lo" != "x$ac_hi"; do
10929 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10930 cat >conftest.$ac_ext <<_ACEOF
10931 /* confdefs.h. */
10932 _ACEOF
10933 cat confdefs.h >>conftest.$ac_ext
10934 cat >>conftest.$ac_ext <<_ACEOF
10935 /* end confdefs.h. */
10936 $ac_includes_default
10937 typedef _Bool ac__type_sizeof_;
10939 main ()
10941 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10942 test_array [0] = 0
10945 return 0;
10947 _ACEOF
10948 rm -f conftest.$ac_objext
10949 if { (ac_try="$ac_compile"
10950 case "(($ac_try" in
10951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10952 *) ac_try_echo=$ac_try;;
10953 esac
10954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10955 (eval "$ac_compile") 2>conftest.er1
10956 ac_status=$?
10957 grep -v '^ *+' conftest.er1 >conftest.err
10958 rm -f conftest.er1
10959 cat conftest.err >&5
10960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10961 (exit $ac_status); } && {
10962 test -z "$ac_c_werror_flag" ||
10963 test ! -s conftest.err
10964 } && test -s conftest.$ac_objext; then
10965 ac_hi=$ac_mid
10966 else
10967 echo "$as_me: failed program was:" >&5
10968 sed 's/^/| /' conftest.$ac_ext >&5
10970 ac_lo=`expr '(' $ac_mid ')' + 1`
10973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10974 done
10975 case $ac_lo in
10976 ?*) ac_cv_sizeof__Bool=$ac_lo;;
10977 '') if test "$ac_cv_type__Bool" = yes; then
10978 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
10979 See \`config.log' for more details." >&5
10980 echo "$as_me: error: cannot compute sizeof (_Bool)
10981 See \`config.log' for more details." >&2;}
10982 { (exit 77); exit 77; }; }
10983 else
10984 ac_cv_sizeof__Bool=0
10985 fi ;;
10986 esac
10987 else
10988 cat >conftest.$ac_ext <<_ACEOF
10989 /* confdefs.h. */
10990 _ACEOF
10991 cat confdefs.h >>conftest.$ac_ext
10992 cat >>conftest.$ac_ext <<_ACEOF
10993 /* end confdefs.h. */
10994 $ac_includes_default
10995 typedef _Bool ac__type_sizeof_;
10996 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10997 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10998 #include <stdio.h>
10999 #include <stdlib.h>
11001 main ()
11004 FILE *f = fopen ("conftest.val", "w");
11005 if (! f)
11006 return 1;
11007 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11009 long int i = longval ();
11010 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11011 return 1;
11012 fprintf (f, "%ld\n", i);
11014 else
11016 unsigned long int i = ulongval ();
11017 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11018 return 1;
11019 fprintf (f, "%lu\n", i);
11021 return ferror (f) || fclose (f) != 0;
11024 return 0;
11026 _ACEOF
11027 rm -f conftest$ac_exeext
11028 if { (ac_try="$ac_link"
11029 case "(($ac_try" in
11030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11031 *) ac_try_echo=$ac_try;;
11032 esac
11033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11034 (eval "$ac_link") 2>&5
11035 ac_status=$?
11036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11037 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11038 { (case "(($ac_try" in
11039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11040 *) ac_try_echo=$ac_try;;
11041 esac
11042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11043 (eval "$ac_try") 2>&5
11044 ac_status=$?
11045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11046 (exit $ac_status); }; }; then
11047 ac_cv_sizeof__Bool=`cat conftest.val`
11048 else
11049 echo "$as_me: program exited with status $ac_status" >&5
11050 echo "$as_me: failed program was:" >&5
11051 sed 's/^/| /' conftest.$ac_ext >&5
11053 ( exit $ac_status )
11054 if test "$ac_cv_type__Bool" = yes; then
11055 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
11056 See \`config.log' for more details." >&5
11057 echo "$as_me: error: cannot compute sizeof (_Bool)
11058 See \`config.log' for more details." >&2;}
11059 { (exit 77); exit 77; }; }
11060 else
11061 ac_cv_sizeof__Bool=0
11064 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11066 rm -f conftest.val
11068 { echo "$as_me:$LINENO: result: $ac_cv_sizeof__Bool" >&5
11069 echo "${ECHO_T}$ac_cv_sizeof__Bool" >&6; }
11073 cat >>confdefs.h <<_ACEOF
11074 #define SIZEOF__BOOL $ac_cv_sizeof__Bool
11075 _ACEOF
11080 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
11081 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
11082 if test "${ac_cv_type_uintptr_t+set}" = set; then
11083 echo $ECHO_N "(cached) $ECHO_C" >&6
11084 else
11085 cat >conftest.$ac_ext <<_ACEOF
11086 /* confdefs.h. */
11087 _ACEOF
11088 cat confdefs.h >>conftest.$ac_ext
11089 cat >>conftest.$ac_ext <<_ACEOF
11090 /* end confdefs.h. */
11091 #ifdef HAVE_STDINT_H
11092 #include <stdint.h>
11093 #endif
11095 typedef uintptr_t ac__type_new_;
11097 main ()
11099 if ((ac__type_new_ *) 0)
11100 return 0;
11101 if (sizeof (ac__type_new_))
11102 return 0;
11104 return 0;
11106 _ACEOF
11107 rm -f conftest.$ac_objext
11108 if { (ac_try="$ac_compile"
11109 case "(($ac_try" in
11110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11111 *) ac_try_echo=$ac_try;;
11112 esac
11113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11114 (eval "$ac_compile") 2>conftest.er1
11115 ac_status=$?
11116 grep -v '^ *+' conftest.er1 >conftest.err
11117 rm -f conftest.er1
11118 cat conftest.err >&5
11119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11120 (exit $ac_status); } && {
11121 test -z "$ac_c_werror_flag" ||
11122 test ! -s conftest.err
11123 } && test -s conftest.$ac_objext; then
11124 ac_cv_type_uintptr_t=yes
11125 else
11126 echo "$as_me: failed program was:" >&5
11127 sed 's/^/| /' conftest.$ac_ext >&5
11129 ac_cv_type_uintptr_t=no
11132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11134 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
11135 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
11136 if test $ac_cv_type_uintptr_t = yes; then
11138 cat >>confdefs.h <<_ACEOF
11139 #define HAVE_UINTPTR_T 1
11140 _ACEOF
11142 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
11143 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
11144 if test "${ac_cv_type_uintptr_t+set}" = set; then
11145 echo $ECHO_N "(cached) $ECHO_C" >&6
11146 else
11147 cat >conftest.$ac_ext <<_ACEOF
11148 /* confdefs.h. */
11149 _ACEOF
11150 cat confdefs.h >>conftest.$ac_ext
11151 cat >>conftest.$ac_ext <<_ACEOF
11152 /* end confdefs.h. */
11153 $ac_includes_default
11154 typedef uintptr_t ac__type_new_;
11156 main ()
11158 if ((ac__type_new_ *) 0)
11159 return 0;
11160 if (sizeof (ac__type_new_))
11161 return 0;
11163 return 0;
11165 _ACEOF
11166 rm -f conftest.$ac_objext
11167 if { (ac_try="$ac_compile"
11168 case "(($ac_try" in
11169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11170 *) ac_try_echo=$ac_try;;
11171 esac
11172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11173 (eval "$ac_compile") 2>conftest.er1
11174 ac_status=$?
11175 grep -v '^ *+' conftest.er1 >conftest.err
11176 rm -f conftest.er1
11177 cat conftest.err >&5
11178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11179 (exit $ac_status); } && {
11180 test -z "$ac_c_werror_flag" ||
11181 test ! -s conftest.err
11182 } && test -s conftest.$ac_objext; then
11183 ac_cv_type_uintptr_t=yes
11184 else
11185 echo "$as_me: failed program was:" >&5
11186 sed 's/^/| /' conftest.$ac_ext >&5
11188 ac_cv_type_uintptr_t=no
11191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11193 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
11194 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
11196 # The cast to long int works around a bug in the HP C Compiler
11197 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11198 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11199 # This bug is HP SR number 8606223364.
11200 { echo "$as_me:$LINENO: checking size of uintptr_t" >&5
11201 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6; }
11202 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
11203 echo $ECHO_N "(cached) $ECHO_C" >&6
11204 else
11205 if test "$cross_compiling" = yes; then
11206 # Depending upon the size, compute the lo and hi bounds.
11207 cat >conftest.$ac_ext <<_ACEOF
11208 /* confdefs.h. */
11209 _ACEOF
11210 cat confdefs.h >>conftest.$ac_ext
11211 cat >>conftest.$ac_ext <<_ACEOF
11212 /* end confdefs.h. */
11213 $ac_includes_default
11214 typedef uintptr_t ac__type_sizeof_;
11216 main ()
11218 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11219 test_array [0] = 0
11222 return 0;
11224 _ACEOF
11225 rm -f conftest.$ac_objext
11226 if { (ac_try="$ac_compile"
11227 case "(($ac_try" in
11228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11229 *) ac_try_echo=$ac_try;;
11230 esac
11231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11232 (eval "$ac_compile") 2>conftest.er1
11233 ac_status=$?
11234 grep -v '^ *+' conftest.er1 >conftest.err
11235 rm -f conftest.er1
11236 cat conftest.err >&5
11237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11238 (exit $ac_status); } && {
11239 test -z "$ac_c_werror_flag" ||
11240 test ! -s conftest.err
11241 } && test -s conftest.$ac_objext; then
11242 ac_lo=0 ac_mid=0
11243 while :; do
11244 cat >conftest.$ac_ext <<_ACEOF
11245 /* confdefs.h. */
11246 _ACEOF
11247 cat confdefs.h >>conftest.$ac_ext
11248 cat >>conftest.$ac_ext <<_ACEOF
11249 /* end confdefs.h. */
11250 $ac_includes_default
11251 typedef uintptr_t ac__type_sizeof_;
11253 main ()
11255 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11256 test_array [0] = 0
11259 return 0;
11261 _ACEOF
11262 rm -f conftest.$ac_objext
11263 if { (ac_try="$ac_compile"
11264 case "(($ac_try" in
11265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11266 *) ac_try_echo=$ac_try;;
11267 esac
11268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11269 (eval "$ac_compile") 2>conftest.er1
11270 ac_status=$?
11271 grep -v '^ *+' conftest.er1 >conftest.err
11272 rm -f conftest.er1
11273 cat conftest.err >&5
11274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275 (exit $ac_status); } && {
11276 test -z "$ac_c_werror_flag" ||
11277 test ! -s conftest.err
11278 } && test -s conftest.$ac_objext; then
11279 ac_hi=$ac_mid; break
11280 else
11281 echo "$as_me: failed program was:" >&5
11282 sed 's/^/| /' conftest.$ac_ext >&5
11284 ac_lo=`expr $ac_mid + 1`
11285 if test $ac_lo -le $ac_mid; then
11286 ac_lo= ac_hi=
11287 break
11289 ac_mid=`expr 2 '*' $ac_mid + 1`
11292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11293 done
11294 else
11295 echo "$as_me: failed program was:" >&5
11296 sed 's/^/| /' conftest.$ac_ext >&5
11298 cat >conftest.$ac_ext <<_ACEOF
11299 /* confdefs.h. */
11300 _ACEOF
11301 cat confdefs.h >>conftest.$ac_ext
11302 cat >>conftest.$ac_ext <<_ACEOF
11303 /* end confdefs.h. */
11304 $ac_includes_default
11305 typedef uintptr_t ac__type_sizeof_;
11307 main ()
11309 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11310 test_array [0] = 0
11313 return 0;
11315 _ACEOF
11316 rm -f conftest.$ac_objext
11317 if { (ac_try="$ac_compile"
11318 case "(($ac_try" in
11319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11320 *) ac_try_echo=$ac_try;;
11321 esac
11322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11323 (eval "$ac_compile") 2>conftest.er1
11324 ac_status=$?
11325 grep -v '^ *+' conftest.er1 >conftest.err
11326 rm -f conftest.er1
11327 cat conftest.err >&5
11328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11329 (exit $ac_status); } && {
11330 test -z "$ac_c_werror_flag" ||
11331 test ! -s conftest.err
11332 } && test -s conftest.$ac_objext; then
11333 ac_hi=-1 ac_mid=-1
11334 while :; do
11335 cat >conftest.$ac_ext <<_ACEOF
11336 /* confdefs.h. */
11337 _ACEOF
11338 cat confdefs.h >>conftest.$ac_ext
11339 cat >>conftest.$ac_ext <<_ACEOF
11340 /* end confdefs.h. */
11341 $ac_includes_default
11342 typedef uintptr_t ac__type_sizeof_;
11344 main ()
11346 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11347 test_array [0] = 0
11350 return 0;
11352 _ACEOF
11353 rm -f conftest.$ac_objext
11354 if { (ac_try="$ac_compile"
11355 case "(($ac_try" in
11356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11357 *) ac_try_echo=$ac_try;;
11358 esac
11359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11360 (eval "$ac_compile") 2>conftest.er1
11361 ac_status=$?
11362 grep -v '^ *+' conftest.er1 >conftest.err
11363 rm -f conftest.er1
11364 cat conftest.err >&5
11365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11366 (exit $ac_status); } && {
11367 test -z "$ac_c_werror_flag" ||
11368 test ! -s conftest.err
11369 } && test -s conftest.$ac_objext; then
11370 ac_lo=$ac_mid; break
11371 else
11372 echo "$as_me: failed program was:" >&5
11373 sed 's/^/| /' conftest.$ac_ext >&5
11375 ac_hi=`expr '(' $ac_mid ')' - 1`
11376 if test $ac_mid -le $ac_hi; then
11377 ac_lo= ac_hi=
11378 break
11380 ac_mid=`expr 2 '*' $ac_mid`
11383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11384 done
11385 else
11386 echo "$as_me: failed program was:" >&5
11387 sed 's/^/| /' conftest.$ac_ext >&5
11389 ac_lo= ac_hi=
11392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11396 # Binary search between lo and hi bounds.
11397 while test "x$ac_lo" != "x$ac_hi"; do
11398 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11399 cat >conftest.$ac_ext <<_ACEOF
11400 /* confdefs.h. */
11401 _ACEOF
11402 cat confdefs.h >>conftest.$ac_ext
11403 cat >>conftest.$ac_ext <<_ACEOF
11404 /* end confdefs.h. */
11405 $ac_includes_default
11406 typedef uintptr_t ac__type_sizeof_;
11408 main ()
11410 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11411 test_array [0] = 0
11414 return 0;
11416 _ACEOF
11417 rm -f conftest.$ac_objext
11418 if { (ac_try="$ac_compile"
11419 case "(($ac_try" in
11420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11421 *) ac_try_echo=$ac_try;;
11422 esac
11423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11424 (eval "$ac_compile") 2>conftest.er1
11425 ac_status=$?
11426 grep -v '^ *+' conftest.er1 >conftest.err
11427 rm -f conftest.er1
11428 cat conftest.err >&5
11429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11430 (exit $ac_status); } && {
11431 test -z "$ac_c_werror_flag" ||
11432 test ! -s conftest.err
11433 } && test -s conftest.$ac_objext; then
11434 ac_hi=$ac_mid
11435 else
11436 echo "$as_me: failed program was:" >&5
11437 sed 's/^/| /' conftest.$ac_ext >&5
11439 ac_lo=`expr '(' $ac_mid ')' + 1`
11442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11443 done
11444 case $ac_lo in
11445 ?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
11446 '') if test "$ac_cv_type_uintptr_t" = yes; then
11447 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
11448 See \`config.log' for more details." >&5
11449 echo "$as_me: error: cannot compute sizeof (uintptr_t)
11450 See \`config.log' for more details." >&2;}
11451 { (exit 77); exit 77; }; }
11452 else
11453 ac_cv_sizeof_uintptr_t=0
11454 fi ;;
11455 esac
11456 else
11457 cat >conftest.$ac_ext <<_ACEOF
11458 /* confdefs.h. */
11459 _ACEOF
11460 cat confdefs.h >>conftest.$ac_ext
11461 cat >>conftest.$ac_ext <<_ACEOF
11462 /* end confdefs.h. */
11463 $ac_includes_default
11464 typedef uintptr_t ac__type_sizeof_;
11465 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11466 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11467 #include <stdio.h>
11468 #include <stdlib.h>
11470 main ()
11473 FILE *f = fopen ("conftest.val", "w");
11474 if (! f)
11475 return 1;
11476 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11478 long int i = longval ();
11479 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11480 return 1;
11481 fprintf (f, "%ld\n", i);
11483 else
11485 unsigned long int i = ulongval ();
11486 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11487 return 1;
11488 fprintf (f, "%lu\n", i);
11490 return ferror (f) || fclose (f) != 0;
11493 return 0;
11495 _ACEOF
11496 rm -f conftest$ac_exeext
11497 if { (ac_try="$ac_link"
11498 case "(($ac_try" in
11499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11500 *) ac_try_echo=$ac_try;;
11501 esac
11502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11503 (eval "$ac_link") 2>&5
11504 ac_status=$?
11505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11506 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11507 { (case "(($ac_try" in
11508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11509 *) ac_try_echo=$ac_try;;
11510 esac
11511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11512 (eval "$ac_try") 2>&5
11513 ac_status=$?
11514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11515 (exit $ac_status); }; }; then
11516 ac_cv_sizeof_uintptr_t=`cat conftest.val`
11517 else
11518 echo "$as_me: program exited with status $ac_status" >&5
11519 echo "$as_me: failed program was:" >&5
11520 sed 's/^/| /' conftest.$ac_ext >&5
11522 ( exit $ac_status )
11523 if test "$ac_cv_type_uintptr_t" = yes; then
11524 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
11525 See \`config.log' for more details." >&5
11526 echo "$as_me: error: cannot compute sizeof (uintptr_t)
11527 See \`config.log' for more details." >&2;}
11528 { (exit 77); exit 77; }; }
11529 else
11530 ac_cv_sizeof_uintptr_t=0
11533 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11535 rm -f conftest.val
11537 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
11538 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6; }
11542 cat >>confdefs.h <<_ACEOF
11543 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
11544 _ACEOF
11551 # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.
11552 { echo "$as_me:$LINENO: checking size of off_t" >&5
11553 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
11554 if test "${ac_cv_sizeof_off_t+set}" = set; then
11555 echo $ECHO_N "(cached) $ECHO_C" >&6
11556 else
11557 if test "$cross_compiling" = yes; then
11558 ac_cv_sizeof_off_t=4
11559 else
11560 cat >conftest.$ac_ext <<_ACEOF
11561 /* confdefs.h. */
11562 _ACEOF
11563 cat confdefs.h >>conftest.$ac_ext
11564 cat >>conftest.$ac_ext <<_ACEOF
11565 /* end confdefs.h. */
11566 #include <stdio.h>
11567 #include <sys/types.h>
11568 main()
11570 FILE *f=fopen("conftestval", "w");
11571 if (!f) exit(1);
11572 fprintf(f, "%d\n", sizeof(off_t));
11573 exit(0);
11575 _ACEOF
11576 rm -f conftest$ac_exeext
11577 if { (ac_try="$ac_link"
11578 case "(($ac_try" in
11579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11580 *) ac_try_echo=$ac_try;;
11581 esac
11582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11583 (eval "$ac_link") 2>&5
11584 ac_status=$?
11585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11586 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11587 { (case "(($ac_try" in
11588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11589 *) ac_try_echo=$ac_try;;
11590 esac
11591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11592 (eval "$ac_try") 2>&5
11593 ac_status=$?
11594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11595 (exit $ac_status); }; }; then
11596 ac_cv_sizeof_off_t=`cat conftestval`
11597 else
11598 echo "$as_me: program exited with status $ac_status" >&5
11599 echo "$as_me: failed program was:" >&5
11600 sed 's/^/| /' conftest.$ac_ext >&5
11602 ( exit $ac_status )
11603 ac_cv_sizeof_off_t=0
11605 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11612 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
11613 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
11615 cat >>confdefs.h <<_ACEOF
11616 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
11617 _ACEOF
11620 { echo "$as_me:$LINENO: checking whether to enable large file support" >&5
11621 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6; }
11622 if test "$have_long_long" = yes -a \
11623 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
11624 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
11626 cat >>confdefs.h <<\_ACEOF
11627 #define HAVE_LARGEFILE_SUPPORT 1
11628 _ACEOF
11630 { echo "$as_me:$LINENO: result: yes" >&5
11631 echo "${ECHO_T}yes" >&6; }
11632 else
11633 { echo "$as_me:$LINENO: result: no" >&5
11634 echo "${ECHO_T}no" >&6; }
11637 # AC_CHECK_SIZEOF() doesn't include <time.h>.
11638 { echo "$as_me:$LINENO: checking size of time_t" >&5
11639 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6; }
11640 if test "${ac_cv_sizeof_time_t+set}" = set; then
11641 echo $ECHO_N "(cached) $ECHO_C" >&6
11642 else
11643 if test "$cross_compiling" = yes; then
11644 ac_cv_sizeof_time_t=4
11645 else
11646 cat >conftest.$ac_ext <<_ACEOF
11647 /* confdefs.h. */
11648 _ACEOF
11649 cat confdefs.h >>conftest.$ac_ext
11650 cat >>conftest.$ac_ext <<_ACEOF
11651 /* end confdefs.h. */
11652 #include <stdio.h>
11653 #include <time.h>
11654 main()
11656 FILE *f=fopen("conftestval", "w");
11657 if (!f) exit(1);
11658 fprintf(f, "%d\n", sizeof(time_t));
11659 exit(0);
11661 _ACEOF
11662 rm -f conftest$ac_exeext
11663 if { (ac_try="$ac_link"
11664 case "(($ac_try" in
11665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11666 *) ac_try_echo=$ac_try;;
11667 esac
11668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11669 (eval "$ac_link") 2>&5
11670 ac_status=$?
11671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11673 { (case "(($ac_try" in
11674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11675 *) ac_try_echo=$ac_try;;
11676 esac
11677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11678 (eval "$ac_try") 2>&5
11679 ac_status=$?
11680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11681 (exit $ac_status); }; }; then
11682 ac_cv_sizeof_time_t=`cat conftestval`
11683 else
11684 echo "$as_me: program exited with status $ac_status" >&5
11685 echo "$as_me: failed program was:" >&5
11686 sed 's/^/| /' conftest.$ac_ext >&5
11688 ( exit $ac_status )
11689 ac_cv_sizeof_time_t=0
11691 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11698 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
11699 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; }
11701 cat >>confdefs.h <<_ACEOF
11702 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
11703 _ACEOF
11707 # if have pthread_t then define SIZEOF_PTHREAD_T
11708 ac_save_cc="$CC"
11709 if test "$ac_cv_kpthread" = "yes"
11710 then CC="$CC -Kpthread"
11711 elif test "$ac_cv_kthread" = "yes"
11712 then CC="$CC -Kthread"
11713 elif test "$ac_cv_pthread" = "yes"
11714 then CC="$CC -pthread"
11716 { echo "$as_me:$LINENO: checking for pthread_t" >&5
11717 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; }
11718 have_pthread_t=no
11719 cat >conftest.$ac_ext <<_ACEOF
11720 /* confdefs.h. */
11721 _ACEOF
11722 cat confdefs.h >>conftest.$ac_ext
11723 cat >>conftest.$ac_ext <<_ACEOF
11724 /* end confdefs.h. */
11725 #include <pthread.h>
11727 main ()
11729 pthread_t x; x = *(pthread_t*)0;
11731 return 0;
11733 _ACEOF
11734 rm -f conftest.$ac_objext
11735 if { (ac_try="$ac_compile"
11736 case "(($ac_try" in
11737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11738 *) ac_try_echo=$ac_try;;
11739 esac
11740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11741 (eval "$ac_compile") 2>conftest.er1
11742 ac_status=$?
11743 grep -v '^ *+' conftest.er1 >conftest.err
11744 rm -f conftest.er1
11745 cat conftest.err >&5
11746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11747 (exit $ac_status); } && {
11748 test -z "$ac_c_werror_flag" ||
11749 test ! -s conftest.err
11750 } && test -s conftest.$ac_objext; then
11751 have_pthread_t=yes
11752 else
11753 echo "$as_me: failed program was:" >&5
11754 sed 's/^/| /' conftest.$ac_ext >&5
11759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11760 { echo "$as_me:$LINENO: result: $have_pthread_t" >&5
11761 echo "${ECHO_T}$have_pthread_t" >&6; }
11762 if test "$have_pthread_t" = yes ; then
11763 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
11764 { echo "$as_me:$LINENO: checking size of pthread_t" >&5
11765 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6; }
11766 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
11767 echo $ECHO_N "(cached) $ECHO_C" >&6
11768 else
11769 if test "$cross_compiling" = yes; then
11770 ac_cv_sizeof_pthread_t=4
11771 else
11772 cat >conftest.$ac_ext <<_ACEOF
11773 /* confdefs.h. */
11774 _ACEOF
11775 cat confdefs.h >>conftest.$ac_ext
11776 cat >>conftest.$ac_ext <<_ACEOF
11777 /* end confdefs.h. */
11778 #include <stdio.h>
11779 #include <pthread.h>
11780 main()
11782 FILE *f=fopen("conftestval", "w");
11783 if (!f) exit(1);
11784 fprintf(f, "%d\n", sizeof(pthread_t));
11785 exit(0);
11787 _ACEOF
11788 rm -f conftest$ac_exeext
11789 if { (ac_try="$ac_link"
11790 case "(($ac_try" in
11791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11792 *) ac_try_echo=$ac_try;;
11793 esac
11794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11795 (eval "$ac_link") 2>&5
11796 ac_status=$?
11797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11798 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11799 { (case "(($ac_try" in
11800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11801 *) ac_try_echo=$ac_try;;
11802 esac
11803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11804 (eval "$ac_try") 2>&5
11805 ac_status=$?
11806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11807 (exit $ac_status); }; }; then
11808 ac_cv_sizeof_pthread_t=`cat conftestval`
11809 else
11810 echo "$as_me: program exited with status $ac_status" >&5
11811 echo "$as_me: failed program was:" >&5
11812 sed 's/^/| /' conftest.$ac_ext >&5
11814 ( exit $ac_status )
11815 ac_cv_sizeof_pthread_t=0
11817 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11824 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
11825 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6; }
11827 cat >>confdefs.h <<_ACEOF
11828 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
11829 _ACEOF
11832 CC="$ac_save_cc"
11834 { echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
11835 echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6; }
11836 # Check whether --enable-toolbox-glue was given.
11837 if test "${enable_toolbox_glue+set}" = set; then
11838 enableval=$enable_toolbox_glue;
11842 if test -z "$enable_toolbox_glue"
11843 then
11844 case $ac_sys_system/$ac_sys_release in
11845 Darwin/*)
11846 enable_toolbox_glue="yes";;
11848 enable_toolbox_glue="no";;
11849 esac
11851 case "$enable_toolbox_glue" in
11852 yes)
11853 extra_machdep_objs="Python/mactoolboxglue.o"
11854 extra_undefs="-u _PyMac_Error"
11856 cat >>confdefs.h <<\_ACEOF
11857 #define USE_TOOLBOX_OBJECT_GLUE 1
11858 _ACEOF
11862 extra_machdep_objs=""
11863 extra_undefs=""
11865 esac
11866 { echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
11867 echo "${ECHO_T}$enable_toolbox_glue" >&6; }
11870 case $ac_sys_system/$ac_sys_release in
11871 Darwin/[01567]\..*)
11872 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
11874 Darwin/*)
11875 OTHER_LIBTOOL_OPT=""
11877 esac
11880 case $ac_sys_system/$ac_sys_release in
11881 Darwin/[01567]\..*)
11882 LIBTOOL_CRUFT="-framework System -lcc_dynamic"
11883 if test "${enable_universalsdk}"; then
11885 else
11886 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch`"
11888 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11889 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
11890 Darwin/*)
11891 gcc_version=`gcc -v 2>&1 | grep version | cut -d\ -f3`
11892 if test ${gcc_version} '<' 4.0
11893 then
11894 LIBTOOL_CRUFT="-lcc_dynamic"
11895 else
11896 LIBTOOL_CRUFT=""
11898 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch`"
11899 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11900 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
11901 esac
11903 { echo "$as_me:$LINENO: checking for --enable-framework" >&5
11904 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6; }
11905 if test "$enable_framework"
11906 then
11907 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
11908 # -F. is needed to allow linking to the framework while
11909 # in the build location.
11911 cat >>confdefs.h <<\_ACEOF
11912 #define WITH_NEXT_FRAMEWORK 1
11913 _ACEOF
11915 { echo "$as_me:$LINENO: result: yes" >&5
11916 echo "${ECHO_T}yes" >&6; }
11917 else
11918 { echo "$as_me:$LINENO: result: no" >&5
11919 echo "${ECHO_T}no" >&6; }
11922 { echo "$as_me:$LINENO: checking for dyld" >&5
11923 echo $ECHO_N "checking for dyld... $ECHO_C" >&6; }
11924 case $ac_sys_system/$ac_sys_release in
11925 Darwin/*)
11927 cat >>confdefs.h <<\_ACEOF
11928 #define WITH_DYLD 1
11929 _ACEOF
11931 { echo "$as_me:$LINENO: result: always on for Darwin" >&5
11932 echo "${ECHO_T}always on for Darwin" >&6; }
11935 { echo "$as_me:$LINENO: result: no" >&5
11936 echo "${ECHO_T}no" >&6; }
11938 esac
11940 # Set info about shared libraries.
11946 # SO is the extension of shared libraries `(including the dot!)
11947 # -- usually .so, .sl on HP-UX, .dll on Cygwin
11948 { echo "$as_me:$LINENO: checking SO" >&5
11949 echo $ECHO_N "checking SO... $ECHO_C" >&6; }
11950 if test -z "$SO"
11951 then
11952 case $ac_sys_system in
11953 hp*|HP*)
11954 case `uname -m` in
11955 ia64) SO=.so;;
11956 *) SO=.sl;;
11957 esac
11959 CYGWIN*) SO=.dll;;
11960 *) SO=.so;;
11961 esac
11962 else
11963 # this might also be a termcap variable, see #610332
11964 echo
11965 echo '====================================================================='
11966 echo '+ +'
11967 echo '+ WARNING: You have set SO in your environment. +'
11968 echo '+ Do you really mean to change the extension for shared libraries? +'
11969 echo '+ Continuing in 10 seconds to let you to ponder. +'
11970 echo '+ +'
11971 echo '====================================================================='
11972 sleep 10
11974 { echo "$as_me:$LINENO: result: $SO" >&5
11975 echo "${ECHO_T}$SO" >&6; }
11977 cat >>confdefs.h <<_ACEOF
11978 #define SHLIB_EXT "$SO"
11979 _ACEOF
11981 # LDSHARED is the ld *command* used to create shared library
11982 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
11983 # (Shared libraries in this instance are shared modules to be loaded into
11984 # Python, as opposed to building Python itself as a shared library.)
11985 { echo "$as_me:$LINENO: checking LDSHARED" >&5
11986 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6; }
11987 if test -z "$LDSHARED"
11988 then
11989 case $ac_sys_system/$ac_sys_release in
11990 AIX*)
11991 BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
11992 LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
11994 BeOS*)
11995 BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
11996 LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
11998 IRIX/5*) LDSHARED="ld -shared";;
11999 IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
12000 SunOS/5*)
12001 if test "$GCC" = "yes"
12002 then LDSHARED='$(CC) -shared'
12003 else LDSHARED='$(CC) -G';
12004 fi ;;
12005 hp*|HP*) LDSHARED="ld -b";;
12006 OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
12007 Darwin/1.3*)
12008 LDSHARED='$(CC) $(LDFLAGS) -bundle'
12009 if test "$enable_framework" ; then
12010 # Link against the framework. All externals should be defined.
12011 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12012 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12013 else
12014 # No framework. Ignore undefined symbols, assuming they come from Python
12015 LDSHARED="$LDSHARED -undefined suppress"
12016 fi ;;
12017 Darwin/1.4*|Darwin/5.*|Darwin/6.*)
12018 LDSHARED='$(CC) $(LDFLAGS) -bundle'
12019 if test "$enable_framework" ; then
12020 # Link against the framework. All externals should be defined.
12021 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12022 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12023 else
12024 # No framework, use the Python app as bundle-loader
12025 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
12026 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
12027 fi ;;
12028 Darwin/*)
12029 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
12030 # This allows an extension to be used in any Python
12031 cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
12032 if test ${cur_target} '>' 10.2; then
12033 cur_target=10.3
12035 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
12037 # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the
12038 # environment with a value that is the same as what we'll use
12039 # in the Makefile to ensure that we'll get the same compiler
12040 # environment during configure and build time.
12041 MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET"
12042 export MACOSX_DEPLOYMENT_TARGET
12044 EXPORT_MACOSX_DEPLOYMENT_TARGET=''
12045 if test ${MACOSX_DEPLOYMENT_TARGET-${cur_target}} '>' 10.2
12046 then
12047 if test "${enable_universalsdk}"; then
12048 LDFLAGS="-arch i386 -arch ppc -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
12050 LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
12051 BLDSHARED="$LDSHARED"
12052 else
12053 LDSHARED='$(CC) $(LDFLAGS) -bundle'
12054 if test "$enable_framework" ; then
12055 # Link against the framework. All externals should be defined.
12056 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12057 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12058 else
12059 # No framework, use the Python app as bundle-loader
12060 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
12061 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
12065 Linux*|GNU*) LDSHARED='$(CC) -shared';;
12066 BSD/OS*/4*) LDSHARED="gcc -shared";;
12067 FreeBSD*)
12068 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
12069 then
12070 LDSHARED="$CC -shared ${LDFLAGS}"
12071 else
12072 LDSHARED="ld -Bshareable ${LDFLAGS}"
12073 fi;;
12074 OpenBSD*)
12075 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
12076 then
12077 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
12078 else
12079 case `uname -r` in
12080 [01].* | 2.[0-7] | 2.[0-7].*)
12081 LDSHARED="ld -Bshareable ${LDFLAGS}"
12084 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
12086 esac
12087 fi;;
12088 NetBSD*|DragonFly*) LDSHARED="cc -shared ${LDFLAGS}";;
12089 OpenUNIX*|UnixWare*)
12090 if test "$GCC" = "yes"
12091 then LDSHARED='$(CC) -shared'
12092 else LDSHARED='$(CC) -G'
12093 fi;;
12094 SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';;
12095 Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
12096 CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";;
12097 atheos*) LDSHARED="gcc -shared";;
12098 *) LDSHARED="ld";;
12099 esac
12101 { echo "$as_me:$LINENO: result: $LDSHARED" >&5
12102 echo "${ECHO_T}$LDSHARED" >&6; }
12103 BLDSHARED=${BLDSHARED-$LDSHARED}
12104 # CCSHARED are the C *flags* used to create objects to go into a shared
12105 # library (module) -- this is only needed for a few systems
12106 { echo "$as_me:$LINENO: checking CCSHARED" >&5
12107 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6; }
12108 if test -z "$CCSHARED"
12109 then
12110 case $ac_sys_system/$ac_sys_release in
12111 SunOS*) if test "$GCC" = yes;
12112 then CCSHARED="-fPIC";
12113 elif test `uname -p` = sparc;
12114 then CCSHARED="-xcode=pic32";
12115 else CCSHARED="-Kpic";
12116 fi;;
12117 hp*|HP*) if test "$GCC" = yes;
12118 then CCSHARED="-fPIC";
12119 else CCSHARED="+z";
12120 fi;;
12121 Linux*|GNU*) CCSHARED="-fPIC";;
12122 BSD/OS*/4*) CCSHARED="-fpic";;
12123 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";;
12124 OpenUNIX*|UnixWare*)
12125 if test "$GCC" = "yes"
12126 then CCSHARED="-fPIC"
12127 else CCSHARED="-KPIC"
12128 fi;;
12129 SCO_SV*)
12130 if test "$GCC" = "yes"
12131 then CCSHARED="-fPIC"
12132 else CCSHARED="-Kpic -belf"
12133 fi;;
12134 Monterey*) CCSHARED="-G";;
12135 IRIX*/6*) case $CC in
12136 *gcc*) CCSHARED="-shared";;
12137 *) CCSHARED="";;
12138 esac;;
12139 atheos*) CCSHARED="-fPIC";;
12140 esac
12142 { echo "$as_me:$LINENO: result: $CCSHARED" >&5
12143 echo "${ECHO_T}$CCSHARED" >&6; }
12144 # LINKFORSHARED are the flags passed to the $(CC) command that links
12145 # the python executable -- this is only needed for a few systems
12146 { echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
12147 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6; }
12148 if test -z "$LINKFORSHARED"
12149 then
12150 case $ac_sys_system/$ac_sys_release in
12151 AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';;
12152 hp*|HP*)
12153 LINKFORSHARED="-Wl,-E -Wl,+s";;
12154 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
12155 BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
12156 Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
12157 # -u libsys_s pulls in all symbols in libsys
12158 Darwin/*)
12159 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
12160 # which is
12161 # not used by the core itself but which needs to be in the core so
12162 # that dynamically loaded extension modules have access to it.
12163 # -prebind is no longer used, because it actually seems to give a
12164 # slowdown in stead of a speedup, maybe due to the large number of
12165 # dynamic loads Python does.
12167 LINKFORSHARED="$extra_undefs"
12168 if test "$enable_framework"
12169 then
12170 LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12172 LINKFORSHARED="$LINKFORSHARED";;
12173 OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
12174 SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
12175 ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
12176 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*)
12177 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
12178 then
12179 LINKFORSHARED="-Wl,--export-dynamic"
12180 fi;;
12181 SunOS/5*) case $CC in
12182 *gcc*)
12183 if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
12184 then
12185 LINKFORSHARED="-Xlinker --export-dynamic"
12186 fi;;
12187 esac;;
12188 CYGWIN*)
12189 if test $enable_shared = "no"
12190 then
12191 LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)'
12192 fi;;
12193 esac
12195 { echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
12196 echo "${ECHO_T}$LINKFORSHARED" >&6; }
12199 { echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
12200 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6; }
12201 if test ! "$LIBRARY" = "$LDLIBRARY"
12202 then
12203 case $ac_sys_system in
12204 CYGWIN*)
12205 # Cygwin needs CCSHARED when building extension DLLs
12206 # but not when building the interpreter DLL.
12207 CFLAGSFORSHARED='';;
12209 CFLAGSFORSHARED='$(CCSHARED)'
12210 esac
12212 { echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
12213 echo "${ECHO_T}$CFLAGSFORSHARED" >&6; }
12215 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
12216 # library (with --enable-shared).
12217 # For platforms on which shared libraries are not allowed to have unresolved
12218 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
12219 # if it is not required, since it creates a dependency of the shared library
12220 # to LIBS. This, in turn, means that applications linking the shared libpython
12221 # don't need to link LIBS explicitly. The default should be only changed
12222 # on systems where this approach causes problems.
12224 { echo "$as_me:$LINENO: checking SHLIBS" >&5
12225 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6; }
12226 case "$ac_sys_system" in
12228 SHLIBS='$(LIBS)';;
12229 esac
12230 { echo "$as_me:$LINENO: result: $SHLIBS" >&5
12231 echo "${ECHO_T}$SHLIBS" >&6; }
12234 # checks for libraries
12236 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12237 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12238 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12239 echo $ECHO_N "(cached) $ECHO_C" >&6
12240 else
12241 ac_check_lib_save_LIBS=$LIBS
12242 LIBS="-ldl $LIBS"
12243 cat >conftest.$ac_ext <<_ACEOF
12244 /* confdefs.h. */
12245 _ACEOF
12246 cat confdefs.h >>conftest.$ac_ext
12247 cat >>conftest.$ac_ext <<_ACEOF
12248 /* end confdefs.h. */
12250 /* Override any GCC internal prototype to avoid an error.
12251 Use char because int might match the return type of a GCC
12252 builtin and then its argument prototype would still apply. */
12253 #ifdef __cplusplus
12254 extern "C"
12255 #endif
12256 char dlopen ();
12258 main ()
12260 return dlopen ();
12262 return 0;
12264 _ACEOF
12265 rm -f conftest.$ac_objext conftest$ac_exeext
12266 if { (ac_try="$ac_link"
12267 case "(($ac_try" in
12268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12269 *) ac_try_echo=$ac_try;;
12270 esac
12271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12272 (eval "$ac_link") 2>conftest.er1
12273 ac_status=$?
12274 grep -v '^ *+' conftest.er1 >conftest.err
12275 rm -f conftest.er1
12276 cat conftest.err >&5
12277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278 (exit $ac_status); } && {
12279 test -z "$ac_c_werror_flag" ||
12280 test ! -s conftest.err
12281 } && test -s conftest$ac_exeext &&
12282 $as_test_x conftest$ac_exeext; then
12283 ac_cv_lib_dl_dlopen=yes
12284 else
12285 echo "$as_me: failed program was:" >&5
12286 sed 's/^/| /' conftest.$ac_ext >&5
12288 ac_cv_lib_dl_dlopen=no
12291 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12292 conftest$ac_exeext conftest.$ac_ext
12293 LIBS=$ac_check_lib_save_LIBS
12295 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12296 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12297 if test $ac_cv_lib_dl_dlopen = yes; then
12298 cat >>confdefs.h <<_ACEOF
12299 #define HAVE_LIBDL 1
12300 _ACEOF
12302 LIBS="-ldl $LIBS"
12305 # Dynamic linking for SunOS/Solaris and SYSV
12307 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12308 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12309 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12310 echo $ECHO_N "(cached) $ECHO_C" >&6
12311 else
12312 ac_check_lib_save_LIBS=$LIBS
12313 LIBS="-ldld $LIBS"
12314 cat >conftest.$ac_ext <<_ACEOF
12315 /* confdefs.h. */
12316 _ACEOF
12317 cat confdefs.h >>conftest.$ac_ext
12318 cat >>conftest.$ac_ext <<_ACEOF
12319 /* end confdefs.h. */
12321 /* Override any GCC internal prototype to avoid an error.
12322 Use char because int might match the return type of a GCC
12323 builtin and then its argument prototype would still apply. */
12324 #ifdef __cplusplus
12325 extern "C"
12326 #endif
12327 char shl_load ();
12329 main ()
12331 return shl_load ();
12333 return 0;
12335 _ACEOF
12336 rm -f conftest.$ac_objext conftest$ac_exeext
12337 if { (ac_try="$ac_link"
12338 case "(($ac_try" in
12339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12340 *) ac_try_echo=$ac_try;;
12341 esac
12342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12343 (eval "$ac_link") 2>conftest.er1
12344 ac_status=$?
12345 grep -v '^ *+' conftest.er1 >conftest.err
12346 rm -f conftest.er1
12347 cat conftest.err >&5
12348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349 (exit $ac_status); } && {
12350 test -z "$ac_c_werror_flag" ||
12351 test ! -s conftest.err
12352 } && test -s conftest$ac_exeext &&
12353 $as_test_x conftest$ac_exeext; then
12354 ac_cv_lib_dld_shl_load=yes
12355 else
12356 echo "$as_me: failed program was:" >&5
12357 sed 's/^/| /' conftest.$ac_ext >&5
12359 ac_cv_lib_dld_shl_load=no
12362 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12363 conftest$ac_exeext conftest.$ac_ext
12364 LIBS=$ac_check_lib_save_LIBS
12366 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12367 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12368 if test $ac_cv_lib_dld_shl_load = yes; then
12369 cat >>confdefs.h <<_ACEOF
12370 #define HAVE_LIBDLD 1
12371 _ACEOF
12373 LIBS="-ldld $LIBS"
12376 # Dynamic linking for HP-UX
12378 # only check for sem_ini if thread support is requested
12379 if test "$with_threads" = "yes" -o -z "$with_threads"; then
12380 { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
12381 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
12382 if test "${ac_cv_search_sem_init+set}" = set; then
12383 echo $ECHO_N "(cached) $ECHO_C" >&6
12384 else
12385 ac_func_search_save_LIBS=$LIBS
12386 cat >conftest.$ac_ext <<_ACEOF
12387 /* confdefs.h. */
12388 _ACEOF
12389 cat confdefs.h >>conftest.$ac_ext
12390 cat >>conftest.$ac_ext <<_ACEOF
12391 /* end confdefs.h. */
12393 /* Override any GCC internal prototype to avoid an error.
12394 Use char because int might match the return type of a GCC
12395 builtin and then its argument prototype would still apply. */
12396 #ifdef __cplusplus
12397 extern "C"
12398 #endif
12399 char sem_init ();
12401 main ()
12403 return sem_init ();
12405 return 0;
12407 _ACEOF
12408 for ac_lib in '' pthread rt posix4; do
12409 if test -z "$ac_lib"; then
12410 ac_res="none required"
12411 else
12412 ac_res=-l$ac_lib
12413 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12415 rm -f conftest.$ac_objext conftest$ac_exeext
12416 if { (ac_try="$ac_link"
12417 case "(($ac_try" in
12418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12419 *) ac_try_echo=$ac_try;;
12420 esac
12421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12422 (eval "$ac_link") 2>conftest.er1
12423 ac_status=$?
12424 grep -v '^ *+' conftest.er1 >conftest.err
12425 rm -f conftest.er1
12426 cat conftest.err >&5
12427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12428 (exit $ac_status); } && {
12429 test -z "$ac_c_werror_flag" ||
12430 test ! -s conftest.err
12431 } && test -s conftest$ac_exeext &&
12432 $as_test_x conftest$ac_exeext; then
12433 ac_cv_search_sem_init=$ac_res
12434 else
12435 echo "$as_me: failed program was:" >&5
12436 sed 's/^/| /' conftest.$ac_ext >&5
12441 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12442 conftest$ac_exeext
12443 if test "${ac_cv_search_sem_init+set}" = set; then
12444 break
12446 done
12447 if test "${ac_cv_search_sem_init+set}" = set; then
12449 else
12450 ac_cv_search_sem_init=no
12452 rm conftest.$ac_ext
12453 LIBS=$ac_func_search_save_LIBS
12455 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
12456 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
12457 ac_res=$ac_cv_search_sem_init
12458 if test "$ac_res" != no; then
12459 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12462 # 'Real Time' functions on Solaris
12463 # posix4 on Solaris 2.6
12464 # pthread (first!) on Linux
12467 # check if we need libintl for locale functions
12468 { echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
12469 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6; }
12470 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
12471 echo $ECHO_N "(cached) $ECHO_C" >&6
12472 else
12473 ac_check_lib_save_LIBS=$LIBS
12474 LIBS="-lintl $LIBS"
12475 cat >conftest.$ac_ext <<_ACEOF
12476 /* confdefs.h. */
12477 _ACEOF
12478 cat confdefs.h >>conftest.$ac_ext
12479 cat >>conftest.$ac_ext <<_ACEOF
12480 /* end confdefs.h. */
12482 /* Override any GCC internal prototype to avoid an error.
12483 Use char because int might match the return type of a GCC
12484 builtin and then its argument prototype would still apply. */
12485 #ifdef __cplusplus
12486 extern "C"
12487 #endif
12488 char textdomain ();
12490 main ()
12492 return textdomain ();
12494 return 0;
12496 _ACEOF
12497 rm -f conftest.$ac_objext conftest$ac_exeext
12498 if { (ac_try="$ac_link"
12499 case "(($ac_try" in
12500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12501 *) ac_try_echo=$ac_try;;
12502 esac
12503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12504 (eval "$ac_link") 2>conftest.er1
12505 ac_status=$?
12506 grep -v '^ *+' conftest.er1 >conftest.err
12507 rm -f conftest.er1
12508 cat conftest.err >&5
12509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12510 (exit $ac_status); } && {
12511 test -z "$ac_c_werror_flag" ||
12512 test ! -s conftest.err
12513 } && test -s conftest$ac_exeext &&
12514 $as_test_x conftest$ac_exeext; then
12515 ac_cv_lib_intl_textdomain=yes
12516 else
12517 echo "$as_me: failed program was:" >&5
12518 sed 's/^/| /' conftest.$ac_ext >&5
12520 ac_cv_lib_intl_textdomain=no
12523 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12524 conftest$ac_exeext conftest.$ac_ext
12525 LIBS=$ac_check_lib_save_LIBS
12527 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
12528 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6; }
12529 if test $ac_cv_lib_intl_textdomain = yes; then
12531 cat >>confdefs.h <<\_ACEOF
12532 #define WITH_LIBINTL 1
12533 _ACEOF
12538 # checks for system dependent C++ extensions support
12539 case "$ac_sys_system" in
12540 AIX*) { echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
12541 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6; }
12542 cat >conftest.$ac_ext <<_ACEOF
12543 /* confdefs.h. */
12544 _ACEOF
12545 cat confdefs.h >>conftest.$ac_ext
12546 cat >>conftest.$ac_ext <<_ACEOF
12547 /* end confdefs.h. */
12548 #include "/usr/lpp/xlC/include/load.h"
12550 main ()
12552 loadAndInit("", 0, "")
12554 return 0;
12556 _ACEOF
12557 rm -f conftest.$ac_objext conftest$ac_exeext
12558 if { (ac_try="$ac_link"
12559 case "(($ac_try" in
12560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12561 *) ac_try_echo=$ac_try;;
12562 esac
12563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12564 (eval "$ac_link") 2>conftest.er1
12565 ac_status=$?
12566 grep -v '^ *+' conftest.er1 >conftest.err
12567 rm -f conftest.er1
12568 cat conftest.err >&5
12569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12570 (exit $ac_status); } && {
12571 test -z "$ac_c_werror_flag" ||
12572 test ! -s conftest.err
12573 } && test -s conftest$ac_exeext &&
12574 $as_test_x conftest$ac_exeext; then
12576 cat >>confdefs.h <<\_ACEOF
12577 #define AIX_GENUINE_CPLUSPLUS 1
12578 _ACEOF
12580 { echo "$as_me:$LINENO: result: yes" >&5
12581 echo "${ECHO_T}yes" >&6; }
12582 else
12583 echo "$as_me: failed program was:" >&5
12584 sed 's/^/| /' conftest.$ac_ext >&5
12586 { echo "$as_me:$LINENO: result: no" >&5
12587 echo "${ECHO_T}no" >&6; }
12590 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12591 conftest$ac_exeext conftest.$ac_ext;;
12592 *) ;;
12593 esac
12595 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
12596 # BeOS' sockets are stashed in libnet.
12597 { echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
12598 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6; }
12599 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
12600 echo $ECHO_N "(cached) $ECHO_C" >&6
12601 else
12602 ac_check_lib_save_LIBS=$LIBS
12603 LIBS="-lnsl $LIBS"
12604 cat >conftest.$ac_ext <<_ACEOF
12605 /* confdefs.h. */
12606 _ACEOF
12607 cat confdefs.h >>conftest.$ac_ext
12608 cat >>conftest.$ac_ext <<_ACEOF
12609 /* end confdefs.h. */
12611 /* Override any GCC internal prototype to avoid an error.
12612 Use char because int might match the return type of a GCC
12613 builtin and then its argument prototype would still apply. */
12614 #ifdef __cplusplus
12615 extern "C"
12616 #endif
12617 char t_open ();
12619 main ()
12621 return t_open ();
12623 return 0;
12625 _ACEOF
12626 rm -f conftest.$ac_objext conftest$ac_exeext
12627 if { (ac_try="$ac_link"
12628 case "(($ac_try" in
12629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12630 *) ac_try_echo=$ac_try;;
12631 esac
12632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12633 (eval "$ac_link") 2>conftest.er1
12634 ac_status=$?
12635 grep -v '^ *+' conftest.er1 >conftest.err
12636 rm -f conftest.er1
12637 cat conftest.err >&5
12638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639 (exit $ac_status); } && {
12640 test -z "$ac_c_werror_flag" ||
12641 test ! -s conftest.err
12642 } && test -s conftest$ac_exeext &&
12643 $as_test_x conftest$ac_exeext; then
12644 ac_cv_lib_nsl_t_open=yes
12645 else
12646 echo "$as_me: failed program was:" >&5
12647 sed 's/^/| /' conftest.$ac_ext >&5
12649 ac_cv_lib_nsl_t_open=no
12652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12653 conftest$ac_exeext conftest.$ac_ext
12654 LIBS=$ac_check_lib_save_LIBS
12656 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
12657 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6; }
12658 if test $ac_cv_lib_nsl_t_open = yes; then
12659 LIBS="-lnsl $LIBS"
12661 # SVR4
12662 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
12663 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
12664 if test "${ac_cv_lib_socket_socket+set}" = set; then
12665 echo $ECHO_N "(cached) $ECHO_C" >&6
12666 else
12667 ac_check_lib_save_LIBS=$LIBS
12668 LIBS="-lsocket $LIBS $LIBS"
12669 cat >conftest.$ac_ext <<_ACEOF
12670 /* confdefs.h. */
12671 _ACEOF
12672 cat confdefs.h >>conftest.$ac_ext
12673 cat >>conftest.$ac_ext <<_ACEOF
12674 /* end confdefs.h. */
12676 /* Override any GCC internal prototype to avoid an error.
12677 Use char because int might match the return type of a GCC
12678 builtin and then its argument prototype would still apply. */
12679 #ifdef __cplusplus
12680 extern "C"
12681 #endif
12682 char socket ();
12684 main ()
12686 return socket ();
12688 return 0;
12690 _ACEOF
12691 rm -f conftest.$ac_objext conftest$ac_exeext
12692 if { (ac_try="$ac_link"
12693 case "(($ac_try" in
12694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12695 *) ac_try_echo=$ac_try;;
12696 esac
12697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12698 (eval "$ac_link") 2>conftest.er1
12699 ac_status=$?
12700 grep -v '^ *+' conftest.er1 >conftest.err
12701 rm -f conftest.er1
12702 cat conftest.err >&5
12703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12704 (exit $ac_status); } && {
12705 test -z "$ac_c_werror_flag" ||
12706 test ! -s conftest.err
12707 } && test -s conftest$ac_exeext &&
12708 $as_test_x conftest$ac_exeext; then
12709 ac_cv_lib_socket_socket=yes
12710 else
12711 echo "$as_me: failed program was:" >&5
12712 sed 's/^/| /' conftest.$ac_ext >&5
12714 ac_cv_lib_socket_socket=no
12717 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12718 conftest$ac_exeext conftest.$ac_ext
12719 LIBS=$ac_check_lib_save_LIBS
12721 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
12722 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
12723 if test $ac_cv_lib_socket_socket = yes; then
12724 LIBS="-lsocket $LIBS"
12726 # SVR4 sockets
12728 case "$ac_sys_system" in
12729 BeOS*)
12730 { echo "$as_me:$LINENO: checking for socket in -lnet" >&5
12731 echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6; }
12732 if test "${ac_cv_lib_net_socket+set}" = set; then
12733 echo $ECHO_N "(cached) $ECHO_C" >&6
12734 else
12735 ac_check_lib_save_LIBS=$LIBS
12736 LIBS="-lnet $LIBS $LIBS"
12737 cat >conftest.$ac_ext <<_ACEOF
12738 /* confdefs.h. */
12739 _ACEOF
12740 cat confdefs.h >>conftest.$ac_ext
12741 cat >>conftest.$ac_ext <<_ACEOF
12742 /* end confdefs.h. */
12744 /* Override any GCC internal prototype to avoid an error.
12745 Use char because int might match the return type of a GCC
12746 builtin and then its argument prototype would still apply. */
12747 #ifdef __cplusplus
12748 extern "C"
12749 #endif
12750 char socket ();
12752 main ()
12754 return socket ();
12756 return 0;
12758 _ACEOF
12759 rm -f conftest.$ac_objext conftest$ac_exeext
12760 if { (ac_try="$ac_link"
12761 case "(($ac_try" in
12762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12763 *) ac_try_echo=$ac_try;;
12764 esac
12765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12766 (eval "$ac_link") 2>conftest.er1
12767 ac_status=$?
12768 grep -v '^ *+' conftest.er1 >conftest.err
12769 rm -f conftest.er1
12770 cat conftest.err >&5
12771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12772 (exit $ac_status); } && {
12773 test -z "$ac_c_werror_flag" ||
12774 test ! -s conftest.err
12775 } && test -s conftest$ac_exeext &&
12776 $as_test_x conftest$ac_exeext; then
12777 ac_cv_lib_net_socket=yes
12778 else
12779 echo "$as_me: failed program was:" >&5
12780 sed 's/^/| /' conftest.$ac_ext >&5
12782 ac_cv_lib_net_socket=no
12785 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12786 conftest$ac_exeext conftest.$ac_ext
12787 LIBS=$ac_check_lib_save_LIBS
12789 { echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
12790 echo "${ECHO_T}$ac_cv_lib_net_socket" >&6; }
12791 if test $ac_cv_lib_net_socket = yes; then
12792 LIBS="-lnet $LIBS"
12794 # BeOS
12796 esac
12798 { echo "$as_me:$LINENO: checking for --with-libs" >&5
12799 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6; }
12801 # Check whether --with-libs was given.
12802 if test "${with_libs+set}" = set; then
12803 withval=$with_libs;
12804 { echo "$as_me:$LINENO: result: $withval" >&5
12805 echo "${ECHO_T}$withval" >&6; }
12806 LIBS="$withval $LIBS"
12808 else
12809 { echo "$as_me:$LINENO: result: no" >&5
12810 echo "${ECHO_T}no" >&6; }
12814 # Check for use of the system libffi library
12815 { echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
12816 echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6; }
12818 # Check whether --with-system_ffi was given.
12819 if test "${with_system_ffi+set}" = set; then
12820 withval=$with_system_ffi;
12824 if test -z "$with_system_ffi"
12825 then with_system_ffi="no"
12827 { echo "$as_me:$LINENO: result: $with_system_ffi" >&5
12828 echo "${ECHO_T}$with_system_ffi" >&6; }
12830 # Determine if signalmodule should be used.
12833 { echo "$as_me:$LINENO: checking for --with-signal-module" >&5
12834 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6; }
12836 # Check whether --with-signal-module was given.
12837 if test "${with_signal_module+set}" = set; then
12838 withval=$with_signal_module;
12842 if test -z "$with_signal_module"
12843 then with_signal_module="yes"
12845 { echo "$as_me:$LINENO: result: $with_signal_module" >&5
12846 echo "${ECHO_T}$with_signal_module" >&6; }
12848 if test "${with_signal_module}" = "yes"; then
12849 USE_SIGNAL_MODULE=""
12850 SIGNAL_OBJS=""
12851 else
12852 USE_SIGNAL_MODULE="#"
12853 SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o"
12856 # This is used to generate Setup.config
12858 USE_THREAD_MODULE=""
12860 { echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
12861 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6; }
12864 # Check whether --with-dec-threads was given.
12865 if test "${with_dec_threads+set}" = set; then
12866 withval=$with_dec_threads;
12867 { echo "$as_me:$LINENO: result: $withval" >&5
12868 echo "${ECHO_T}$withval" >&6; }
12869 LDLAST=-threads
12870 if test "${with_thread+set}" != set; then
12871 with_thread="$withval";
12873 else
12874 { echo "$as_me:$LINENO: result: no" >&5
12875 echo "${ECHO_T}no" >&6; }
12879 # Templates for things AC_DEFINEd more than once.
12880 # For a single AC_DEFINE, no template is needed.
12888 { echo "$as_me:$LINENO: checking for --with-threads" >&5
12889 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6; }
12891 # Check whether --with-threads was given.
12892 if test "${with_threads+set}" = set; then
12893 withval=$with_threads;
12897 # --with-thread is deprecated, but check for it anyway
12899 # Check whether --with-thread was given.
12900 if test "${with_thread+set}" = set; then
12901 withval=$with_thread; with_threads=$with_thread
12905 if test -z "$with_threads"
12906 then with_threads="yes"
12908 { echo "$as_me:$LINENO: result: $with_threads" >&5
12909 echo "${ECHO_T}$with_threads" >&6; }
12912 if test "$with_threads" = "no"
12913 then
12914 USE_THREAD_MODULE="#"
12915 elif test "$ac_cv_pthread_is_default" = yes
12916 then
12917 cat >>confdefs.h <<\_ACEOF
12918 #define WITH_THREAD 1
12919 _ACEOF
12921 # Defining _REENTRANT on system with POSIX threads should not hurt.
12922 cat >>confdefs.h <<\_ACEOF
12923 #define _REENTRANT 1
12924 _ACEOF
12926 posix_threads=yes
12927 THREADOBJ="Python/thread.o"
12928 elif test "$ac_cv_kpthread" = "yes"
12929 then
12930 CC="$CC -Kpthread"
12931 if test "$ac_cv_cxx_thread" = "yes"; then
12932 CXX="$CXX -Kpthread"
12934 cat >>confdefs.h <<\_ACEOF
12935 #define WITH_THREAD 1
12936 _ACEOF
12938 posix_threads=yes
12939 THREADOBJ="Python/thread.o"
12940 elif test "$ac_cv_kthread" = "yes"
12941 then
12942 CC="$CC -Kthread"
12943 if test "$ac_cv_cxx_thread" = "yes"; then
12944 CXX="$CXX -Kthread"
12946 cat >>confdefs.h <<\_ACEOF
12947 #define WITH_THREAD 1
12948 _ACEOF
12950 posix_threads=yes
12951 THREADOBJ="Python/thread.o"
12952 elif test "$ac_cv_pthread" = "yes"
12953 then
12954 CC="$CC -pthread"
12955 if test "$ac_cv_cxx_thread" = "yes"; then
12956 CXX="$CXX -pthread"
12958 cat >>confdefs.h <<\_ACEOF
12959 #define WITH_THREAD 1
12960 _ACEOF
12962 posix_threads=yes
12963 THREADOBJ="Python/thread.o"
12964 else
12965 if test ! -z "$with_threads" -a -d "$with_threads"
12966 then LDFLAGS="$LDFLAGS -L$with_threads"
12968 if test ! -z "$withval" -a -d "$withval"
12969 then LDFLAGS="$LDFLAGS -L$withval"
12972 # According to the POSIX spec, a pthreads implementation must
12973 # define _POSIX_THREADS in unistd.h. Some apparently don't
12974 # (e.g. gnu pth with pthread emulation)
12975 { echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
12976 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6; }
12977 cat >conftest.$ac_ext <<_ACEOF
12978 /* confdefs.h. */
12979 _ACEOF
12980 cat confdefs.h >>conftest.$ac_ext
12981 cat >>conftest.$ac_ext <<_ACEOF
12982 /* end confdefs.h. */
12984 #include <unistd.h>
12985 #ifdef _POSIX_THREADS
12987 #endif
12989 _ACEOF
12990 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12991 $EGREP "yes" >/dev/null 2>&1; then
12992 unistd_defines_pthreads=yes
12993 else
12994 unistd_defines_pthreads=no
12996 rm -f conftest*
12998 { echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
12999 echo "${ECHO_T}$unistd_defines_pthreads" >&6; }
13001 cat >>confdefs.h <<\_ACEOF
13002 #define _REENTRANT 1
13003 _ACEOF
13005 if test "${ac_cv_header_cthreads_h+set}" = set; then
13006 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
13007 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
13008 if test "${ac_cv_header_cthreads_h+set}" = set; then
13009 echo $ECHO_N "(cached) $ECHO_C" >&6
13011 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
13012 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
13013 else
13014 # Is the header compilable?
13015 { echo "$as_me:$LINENO: checking cthreads.h usability" >&5
13016 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6; }
13017 cat >conftest.$ac_ext <<_ACEOF
13018 /* confdefs.h. */
13019 _ACEOF
13020 cat confdefs.h >>conftest.$ac_ext
13021 cat >>conftest.$ac_ext <<_ACEOF
13022 /* end confdefs.h. */
13023 $ac_includes_default
13024 #include <cthreads.h>
13025 _ACEOF
13026 rm -f conftest.$ac_objext
13027 if { (ac_try="$ac_compile"
13028 case "(($ac_try" in
13029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13030 *) ac_try_echo=$ac_try;;
13031 esac
13032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13033 (eval "$ac_compile") 2>conftest.er1
13034 ac_status=$?
13035 grep -v '^ *+' conftest.er1 >conftest.err
13036 rm -f conftest.er1
13037 cat conftest.err >&5
13038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13039 (exit $ac_status); } && {
13040 test -z "$ac_c_werror_flag" ||
13041 test ! -s conftest.err
13042 } && test -s conftest.$ac_objext; then
13043 ac_header_compiler=yes
13044 else
13045 echo "$as_me: failed program was:" >&5
13046 sed 's/^/| /' conftest.$ac_ext >&5
13048 ac_header_compiler=no
13051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13052 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13053 echo "${ECHO_T}$ac_header_compiler" >&6; }
13055 # Is the header present?
13056 { echo "$as_me:$LINENO: checking cthreads.h presence" >&5
13057 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6; }
13058 cat >conftest.$ac_ext <<_ACEOF
13059 /* confdefs.h. */
13060 _ACEOF
13061 cat confdefs.h >>conftest.$ac_ext
13062 cat >>conftest.$ac_ext <<_ACEOF
13063 /* end confdefs.h. */
13064 #include <cthreads.h>
13065 _ACEOF
13066 if { (ac_try="$ac_cpp conftest.$ac_ext"
13067 case "(($ac_try" in
13068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13069 *) ac_try_echo=$ac_try;;
13070 esac
13071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13072 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13073 ac_status=$?
13074 grep -v '^ *+' conftest.er1 >conftest.err
13075 rm -f conftest.er1
13076 cat conftest.err >&5
13077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13078 (exit $ac_status); } >/dev/null && {
13079 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13080 test ! -s conftest.err
13081 }; then
13082 ac_header_preproc=yes
13083 else
13084 echo "$as_me: failed program was:" >&5
13085 sed 's/^/| /' conftest.$ac_ext >&5
13087 ac_header_preproc=no
13090 rm -f conftest.err conftest.$ac_ext
13091 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13092 echo "${ECHO_T}$ac_header_preproc" >&6; }
13094 # So? What about this header?
13095 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13096 yes:no: )
13097 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
13098 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13099 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
13100 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
13101 ac_header_preproc=yes
13103 no:yes:* )
13104 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
13105 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
13106 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
13107 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
13108 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
13109 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
13110 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
13111 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
13112 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
13113 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
13114 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
13115 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
13116 ( cat <<\_ASBOX
13117 ## ------------------------------------------------ ##
13118 ## Report this to http://www.python.org/python-bugs ##
13119 ## ------------------------------------------------ ##
13120 _ASBOX
13121 ) | sed "s/^/$as_me: WARNING: /" >&2
13123 esac
13124 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
13125 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
13126 if test "${ac_cv_header_cthreads_h+set}" = set; then
13127 echo $ECHO_N "(cached) $ECHO_C" >&6
13128 else
13129 ac_cv_header_cthreads_h=$ac_header_preproc
13131 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
13132 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
13135 if test $ac_cv_header_cthreads_h = yes; then
13136 cat >>confdefs.h <<\_ACEOF
13137 #define WITH_THREAD 1
13138 _ACEOF
13140 cat >>confdefs.h <<\_ACEOF
13141 #define C_THREADS 1
13142 _ACEOF
13145 cat >>confdefs.h <<\_ACEOF
13146 #define HURD_C_THREADS 1
13147 _ACEOF
13149 LIBS="$LIBS -lthreads"
13150 THREADOBJ="Python/thread.o"
13151 else
13153 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
13154 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
13155 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
13156 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
13157 echo $ECHO_N "(cached) $ECHO_C" >&6
13159 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
13160 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
13161 else
13162 # Is the header compilable?
13163 { echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
13164 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6; }
13165 cat >conftest.$ac_ext <<_ACEOF
13166 /* confdefs.h. */
13167 _ACEOF
13168 cat confdefs.h >>conftest.$ac_ext
13169 cat >>conftest.$ac_ext <<_ACEOF
13170 /* end confdefs.h. */
13171 $ac_includes_default
13172 #include <mach/cthreads.h>
13173 _ACEOF
13174 rm -f conftest.$ac_objext
13175 if { (ac_try="$ac_compile"
13176 case "(($ac_try" in
13177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13178 *) ac_try_echo=$ac_try;;
13179 esac
13180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13181 (eval "$ac_compile") 2>conftest.er1
13182 ac_status=$?
13183 grep -v '^ *+' conftest.er1 >conftest.err
13184 rm -f conftest.er1
13185 cat conftest.err >&5
13186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13187 (exit $ac_status); } && {
13188 test -z "$ac_c_werror_flag" ||
13189 test ! -s conftest.err
13190 } && test -s conftest.$ac_objext; then
13191 ac_header_compiler=yes
13192 else
13193 echo "$as_me: failed program was:" >&5
13194 sed 's/^/| /' conftest.$ac_ext >&5
13196 ac_header_compiler=no
13199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13200 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13201 echo "${ECHO_T}$ac_header_compiler" >&6; }
13203 # Is the header present?
13204 { echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
13205 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6; }
13206 cat >conftest.$ac_ext <<_ACEOF
13207 /* confdefs.h. */
13208 _ACEOF
13209 cat confdefs.h >>conftest.$ac_ext
13210 cat >>conftest.$ac_ext <<_ACEOF
13211 /* end confdefs.h. */
13212 #include <mach/cthreads.h>
13213 _ACEOF
13214 if { (ac_try="$ac_cpp conftest.$ac_ext"
13215 case "(($ac_try" in
13216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13217 *) ac_try_echo=$ac_try;;
13218 esac
13219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13220 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13221 ac_status=$?
13222 grep -v '^ *+' conftest.er1 >conftest.err
13223 rm -f conftest.er1
13224 cat conftest.err >&5
13225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13226 (exit $ac_status); } >/dev/null && {
13227 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13228 test ! -s conftest.err
13229 }; then
13230 ac_header_preproc=yes
13231 else
13232 echo "$as_me: failed program was:" >&5
13233 sed 's/^/| /' conftest.$ac_ext >&5
13235 ac_header_preproc=no
13238 rm -f conftest.err conftest.$ac_ext
13239 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13240 echo "${ECHO_T}$ac_header_preproc" >&6; }
13242 # So? What about this header?
13243 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13244 yes:no: )
13245 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
13246 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13247 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
13248 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
13249 ac_header_preproc=yes
13251 no:yes:* )
13252 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
13253 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
13254 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
13255 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
13256 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
13257 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
13258 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
13259 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
13260 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
13261 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
13262 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
13263 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
13264 ( cat <<\_ASBOX
13265 ## ------------------------------------------------ ##
13266 ## Report this to http://www.python.org/python-bugs ##
13267 ## ------------------------------------------------ ##
13268 _ASBOX
13269 ) | sed "s/^/$as_me: WARNING: /" >&2
13271 esac
13272 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
13273 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
13274 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
13275 echo $ECHO_N "(cached) $ECHO_C" >&6
13276 else
13277 ac_cv_header_mach_cthreads_h=$ac_header_preproc
13279 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
13280 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
13283 if test $ac_cv_header_mach_cthreads_h = yes; then
13284 cat >>confdefs.h <<\_ACEOF
13285 #define WITH_THREAD 1
13286 _ACEOF
13288 cat >>confdefs.h <<\_ACEOF
13289 #define C_THREADS 1
13290 _ACEOF
13293 cat >>confdefs.h <<\_ACEOF
13294 #define MACH_C_THREADS 1
13295 _ACEOF
13297 THREADOBJ="Python/thread.o"
13298 else
13300 { echo "$as_me:$LINENO: checking for --with-pth" >&5
13301 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6; }
13303 # Check whether --with-pth was given.
13304 if test "${with_pth+set}" = set; then
13305 withval=$with_pth; { echo "$as_me:$LINENO: result: $withval" >&5
13306 echo "${ECHO_T}$withval" >&6; }
13307 cat >>confdefs.h <<\_ACEOF
13308 #define WITH_THREAD 1
13309 _ACEOF
13312 cat >>confdefs.h <<\_ACEOF
13313 #define HAVE_PTH 1
13314 _ACEOF
13316 LIBS="-lpth $LIBS"
13317 THREADOBJ="Python/thread.o"
13318 else
13319 { echo "$as_me:$LINENO: result: no" >&5
13320 echo "${ECHO_T}no" >&6; }
13322 # Just looking for pthread_create in libpthread is not enough:
13323 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
13324 # So we really have to include pthread.h, and then link.
13325 _libs=$LIBS
13326 LIBS="$LIBS -lpthread"
13327 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
13328 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
13329 cat >conftest.$ac_ext <<_ACEOF
13330 /* confdefs.h. */
13331 _ACEOF
13332 cat confdefs.h >>conftest.$ac_ext
13333 cat >>conftest.$ac_ext <<_ACEOF
13334 /* end confdefs.h. */
13335 #include <pthread.h>
13337 void * start_routine (void *arg) { exit (0); }
13339 main ()
13342 pthread_create (NULL, NULL, start_routine, NULL)
13344 return 0;
13346 _ACEOF
13347 rm -f conftest.$ac_objext conftest$ac_exeext
13348 if { (ac_try="$ac_link"
13349 case "(($ac_try" in
13350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13351 *) ac_try_echo=$ac_try;;
13352 esac
13353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13354 (eval "$ac_link") 2>conftest.er1
13355 ac_status=$?
13356 grep -v '^ *+' conftest.er1 >conftest.err
13357 rm -f conftest.er1
13358 cat conftest.err >&5
13359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13360 (exit $ac_status); } && {
13361 test -z "$ac_c_werror_flag" ||
13362 test ! -s conftest.err
13363 } && test -s conftest$ac_exeext &&
13364 $as_test_x conftest$ac_exeext; then
13366 { echo "$as_me:$LINENO: result: yes" >&5
13367 echo "${ECHO_T}yes" >&6; }
13368 cat >>confdefs.h <<\_ACEOF
13369 #define WITH_THREAD 1
13370 _ACEOF
13372 posix_threads=yes
13373 THREADOBJ="Python/thread.o"
13374 else
13375 echo "$as_me: failed program was:" >&5
13376 sed 's/^/| /' conftest.$ac_ext >&5
13379 LIBS=$_libs
13380 { echo "$as_me:$LINENO: checking for pthread_detach" >&5
13381 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6; }
13382 if test "${ac_cv_func_pthread_detach+set}" = set; then
13383 echo $ECHO_N "(cached) $ECHO_C" >&6
13384 else
13385 cat >conftest.$ac_ext <<_ACEOF
13386 /* confdefs.h. */
13387 _ACEOF
13388 cat confdefs.h >>conftest.$ac_ext
13389 cat >>conftest.$ac_ext <<_ACEOF
13390 /* end confdefs.h. */
13391 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
13392 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13393 #define pthread_detach innocuous_pthread_detach
13395 /* System header to define __stub macros and hopefully few prototypes,
13396 which can conflict with char pthread_detach (); below.
13397 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13398 <limits.h> exists even on freestanding compilers. */
13400 #ifdef __STDC__
13401 # include <limits.h>
13402 #else
13403 # include <assert.h>
13404 #endif
13406 #undef pthread_detach
13408 /* Override any GCC internal prototype to avoid an error.
13409 Use char because int might match the return type of a GCC
13410 builtin and then its argument prototype would still apply. */
13411 #ifdef __cplusplus
13412 extern "C"
13413 #endif
13414 char pthread_detach ();
13415 /* The GNU C library defines this for functions which it implements
13416 to always fail with ENOSYS. Some functions are actually named
13417 something starting with __ and the normal name is an alias. */
13418 #if defined __stub_pthread_detach || defined __stub___pthread_detach
13419 choke me
13420 #endif
13423 main ()
13425 return pthread_detach ();
13427 return 0;
13429 _ACEOF
13430 rm -f conftest.$ac_objext conftest$ac_exeext
13431 if { (ac_try="$ac_link"
13432 case "(($ac_try" in
13433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13434 *) ac_try_echo=$ac_try;;
13435 esac
13436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13437 (eval "$ac_link") 2>conftest.er1
13438 ac_status=$?
13439 grep -v '^ *+' conftest.er1 >conftest.err
13440 rm -f conftest.er1
13441 cat conftest.err >&5
13442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13443 (exit $ac_status); } && {
13444 test -z "$ac_c_werror_flag" ||
13445 test ! -s conftest.err
13446 } && test -s conftest$ac_exeext &&
13447 $as_test_x conftest$ac_exeext; then
13448 ac_cv_func_pthread_detach=yes
13449 else
13450 echo "$as_me: failed program was:" >&5
13451 sed 's/^/| /' conftest.$ac_ext >&5
13453 ac_cv_func_pthread_detach=no
13456 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13457 conftest$ac_exeext conftest.$ac_ext
13459 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
13460 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6; }
13461 if test $ac_cv_func_pthread_detach = yes; then
13462 cat >>confdefs.h <<\_ACEOF
13463 #define WITH_THREAD 1
13464 _ACEOF
13466 posix_threads=yes
13467 THREADOBJ="Python/thread.o"
13468 else
13470 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
13471 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
13472 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
13473 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
13474 echo $ECHO_N "(cached) $ECHO_C" >&6
13476 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
13477 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
13478 else
13479 # Is the header compilable?
13480 { echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
13481 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6; }
13482 cat >conftest.$ac_ext <<_ACEOF
13483 /* confdefs.h. */
13484 _ACEOF
13485 cat confdefs.h >>conftest.$ac_ext
13486 cat >>conftest.$ac_ext <<_ACEOF
13487 /* end confdefs.h. */
13488 $ac_includes_default
13489 #include <atheos/threads.h>
13490 _ACEOF
13491 rm -f conftest.$ac_objext
13492 if { (ac_try="$ac_compile"
13493 case "(($ac_try" in
13494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13495 *) ac_try_echo=$ac_try;;
13496 esac
13497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13498 (eval "$ac_compile") 2>conftest.er1
13499 ac_status=$?
13500 grep -v '^ *+' conftest.er1 >conftest.err
13501 rm -f conftest.er1
13502 cat conftest.err >&5
13503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13504 (exit $ac_status); } && {
13505 test -z "$ac_c_werror_flag" ||
13506 test ! -s conftest.err
13507 } && test -s conftest.$ac_objext; then
13508 ac_header_compiler=yes
13509 else
13510 echo "$as_me: failed program was:" >&5
13511 sed 's/^/| /' conftest.$ac_ext >&5
13513 ac_header_compiler=no
13516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13517 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13518 echo "${ECHO_T}$ac_header_compiler" >&6; }
13520 # Is the header present?
13521 { echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
13522 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6; }
13523 cat >conftest.$ac_ext <<_ACEOF
13524 /* confdefs.h. */
13525 _ACEOF
13526 cat confdefs.h >>conftest.$ac_ext
13527 cat >>conftest.$ac_ext <<_ACEOF
13528 /* end confdefs.h. */
13529 #include <atheos/threads.h>
13530 _ACEOF
13531 if { (ac_try="$ac_cpp conftest.$ac_ext"
13532 case "(($ac_try" in
13533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13534 *) ac_try_echo=$ac_try;;
13535 esac
13536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13537 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13538 ac_status=$?
13539 grep -v '^ *+' conftest.er1 >conftest.err
13540 rm -f conftest.er1
13541 cat conftest.err >&5
13542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13543 (exit $ac_status); } >/dev/null && {
13544 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13545 test ! -s conftest.err
13546 }; then
13547 ac_header_preproc=yes
13548 else
13549 echo "$as_me: failed program was:" >&5
13550 sed 's/^/| /' conftest.$ac_ext >&5
13552 ac_header_preproc=no
13555 rm -f conftest.err conftest.$ac_ext
13556 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13557 echo "${ECHO_T}$ac_header_preproc" >&6; }
13559 # So? What about this header?
13560 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13561 yes:no: )
13562 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
13563 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13564 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
13565 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
13566 ac_header_preproc=yes
13568 no:yes:* )
13569 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
13570 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
13571 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
13572 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
13573 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
13574 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
13575 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
13576 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
13577 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
13578 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
13579 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
13580 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
13581 ( cat <<\_ASBOX
13582 ## ------------------------------------------------ ##
13583 ## Report this to http://www.python.org/python-bugs ##
13584 ## ------------------------------------------------ ##
13585 _ASBOX
13586 ) | sed "s/^/$as_me: WARNING: /" >&2
13588 esac
13589 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
13590 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
13591 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
13592 echo $ECHO_N "(cached) $ECHO_C" >&6
13593 else
13594 ac_cv_header_atheos_threads_h=$ac_header_preproc
13596 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
13597 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
13600 if test $ac_cv_header_atheos_threads_h = yes; then
13601 cat >>confdefs.h <<\_ACEOF
13602 #define WITH_THREAD 1
13603 _ACEOF
13606 cat >>confdefs.h <<\_ACEOF
13607 #define ATHEOS_THREADS 1
13608 _ACEOF
13610 THREADOBJ="Python/thread.o"
13611 else
13613 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
13614 { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
13615 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
13616 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
13617 echo $ECHO_N "(cached) $ECHO_C" >&6
13619 { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
13620 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
13621 else
13622 # Is the header compilable?
13623 { echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
13624 echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6; }
13625 cat >conftest.$ac_ext <<_ACEOF
13626 /* confdefs.h. */
13627 _ACEOF
13628 cat confdefs.h >>conftest.$ac_ext
13629 cat >>conftest.$ac_ext <<_ACEOF
13630 /* end confdefs.h. */
13631 $ac_includes_default
13632 #include <kernel/OS.h>
13633 _ACEOF
13634 rm -f conftest.$ac_objext
13635 if { (ac_try="$ac_compile"
13636 case "(($ac_try" in
13637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13638 *) ac_try_echo=$ac_try;;
13639 esac
13640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13641 (eval "$ac_compile") 2>conftest.er1
13642 ac_status=$?
13643 grep -v '^ *+' conftest.er1 >conftest.err
13644 rm -f conftest.er1
13645 cat conftest.err >&5
13646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13647 (exit $ac_status); } && {
13648 test -z "$ac_c_werror_flag" ||
13649 test ! -s conftest.err
13650 } && test -s conftest.$ac_objext; then
13651 ac_header_compiler=yes
13652 else
13653 echo "$as_me: failed program was:" >&5
13654 sed 's/^/| /' conftest.$ac_ext >&5
13656 ac_header_compiler=no
13659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13660 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13661 echo "${ECHO_T}$ac_header_compiler" >&6; }
13663 # Is the header present?
13664 { echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
13665 echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6; }
13666 cat >conftest.$ac_ext <<_ACEOF
13667 /* confdefs.h. */
13668 _ACEOF
13669 cat confdefs.h >>conftest.$ac_ext
13670 cat >>conftest.$ac_ext <<_ACEOF
13671 /* end confdefs.h. */
13672 #include <kernel/OS.h>
13673 _ACEOF
13674 if { (ac_try="$ac_cpp conftest.$ac_ext"
13675 case "(($ac_try" in
13676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13677 *) ac_try_echo=$ac_try;;
13678 esac
13679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13680 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13681 ac_status=$?
13682 grep -v '^ *+' conftest.er1 >conftest.err
13683 rm -f conftest.er1
13684 cat conftest.err >&5
13685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13686 (exit $ac_status); } >/dev/null && {
13687 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13688 test ! -s conftest.err
13689 }; then
13690 ac_header_preproc=yes
13691 else
13692 echo "$as_me: failed program was:" >&5
13693 sed 's/^/| /' conftest.$ac_ext >&5
13695 ac_header_preproc=no
13698 rm -f conftest.err conftest.$ac_ext
13699 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13700 echo "${ECHO_T}$ac_header_preproc" >&6; }
13702 # So? What about this header?
13703 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13704 yes:no: )
13705 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
13706 echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13707 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5
13708 echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;}
13709 ac_header_preproc=yes
13711 no:yes:* )
13712 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
13713 echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
13714 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
13715 echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
13716 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5
13717 echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;}
13718 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5
13719 echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;}
13720 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
13721 echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;}
13722 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5
13723 echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;}
13724 ( cat <<\_ASBOX
13725 ## ------------------------------------------------ ##
13726 ## Report this to http://www.python.org/python-bugs ##
13727 ## ------------------------------------------------ ##
13728 _ASBOX
13729 ) | sed "s/^/$as_me: WARNING: /" >&2
13731 esac
13732 { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
13733 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
13734 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
13735 echo $ECHO_N "(cached) $ECHO_C" >&6
13736 else
13737 ac_cv_header_kernel_OS_h=$ac_header_preproc
13739 { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
13740 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
13743 if test $ac_cv_header_kernel_OS_h = yes; then
13744 cat >>confdefs.h <<\_ACEOF
13745 #define WITH_THREAD 1
13746 _ACEOF
13749 cat >>confdefs.h <<\_ACEOF
13750 #define BEOS_THREADS 1
13751 _ACEOF
13753 THREADOBJ="Python/thread.o"
13754 else
13756 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
13757 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
13758 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
13759 echo $ECHO_N "(cached) $ECHO_C" >&6
13760 else
13761 ac_check_lib_save_LIBS=$LIBS
13762 LIBS="-lpthreads $LIBS"
13763 cat >conftest.$ac_ext <<_ACEOF
13764 /* confdefs.h. */
13765 _ACEOF
13766 cat confdefs.h >>conftest.$ac_ext
13767 cat >>conftest.$ac_ext <<_ACEOF
13768 /* end confdefs.h. */
13770 /* Override any GCC internal prototype to avoid an error.
13771 Use char because int might match the return type of a GCC
13772 builtin and then its argument prototype would still apply. */
13773 #ifdef __cplusplus
13774 extern "C"
13775 #endif
13776 char pthread_create ();
13778 main ()
13780 return pthread_create ();
13782 return 0;
13784 _ACEOF
13785 rm -f conftest.$ac_objext conftest$ac_exeext
13786 if { (ac_try="$ac_link"
13787 case "(($ac_try" in
13788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13789 *) ac_try_echo=$ac_try;;
13790 esac
13791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13792 (eval "$ac_link") 2>conftest.er1
13793 ac_status=$?
13794 grep -v '^ *+' conftest.er1 >conftest.err
13795 rm -f conftest.er1
13796 cat conftest.err >&5
13797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13798 (exit $ac_status); } && {
13799 test -z "$ac_c_werror_flag" ||
13800 test ! -s conftest.err
13801 } && test -s conftest$ac_exeext &&
13802 $as_test_x conftest$ac_exeext; then
13803 ac_cv_lib_pthreads_pthread_create=yes
13804 else
13805 echo "$as_me: failed program was:" >&5
13806 sed 's/^/| /' conftest.$ac_ext >&5
13808 ac_cv_lib_pthreads_pthread_create=no
13811 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13812 conftest$ac_exeext conftest.$ac_ext
13813 LIBS=$ac_check_lib_save_LIBS
13815 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
13816 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
13817 if test $ac_cv_lib_pthreads_pthread_create = yes; then
13818 cat >>confdefs.h <<\_ACEOF
13819 #define WITH_THREAD 1
13820 _ACEOF
13822 posix_threads=yes
13823 LIBS="$LIBS -lpthreads"
13824 THREADOBJ="Python/thread.o"
13825 else
13827 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
13828 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
13829 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
13830 echo $ECHO_N "(cached) $ECHO_C" >&6
13831 else
13832 ac_check_lib_save_LIBS=$LIBS
13833 LIBS="-lc_r $LIBS"
13834 cat >conftest.$ac_ext <<_ACEOF
13835 /* confdefs.h. */
13836 _ACEOF
13837 cat confdefs.h >>conftest.$ac_ext
13838 cat >>conftest.$ac_ext <<_ACEOF
13839 /* end confdefs.h. */
13841 /* Override any GCC internal prototype to avoid an error.
13842 Use char because int might match the return type of a GCC
13843 builtin and then its argument prototype would still apply. */
13844 #ifdef __cplusplus
13845 extern "C"
13846 #endif
13847 char pthread_create ();
13849 main ()
13851 return pthread_create ();
13853 return 0;
13855 _ACEOF
13856 rm -f conftest.$ac_objext conftest$ac_exeext
13857 if { (ac_try="$ac_link"
13858 case "(($ac_try" in
13859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13860 *) ac_try_echo=$ac_try;;
13861 esac
13862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13863 (eval "$ac_link") 2>conftest.er1
13864 ac_status=$?
13865 grep -v '^ *+' conftest.er1 >conftest.err
13866 rm -f conftest.er1
13867 cat conftest.err >&5
13868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13869 (exit $ac_status); } && {
13870 test -z "$ac_c_werror_flag" ||
13871 test ! -s conftest.err
13872 } && test -s conftest$ac_exeext &&
13873 $as_test_x conftest$ac_exeext; then
13874 ac_cv_lib_c_r_pthread_create=yes
13875 else
13876 echo "$as_me: failed program was:" >&5
13877 sed 's/^/| /' conftest.$ac_ext >&5
13879 ac_cv_lib_c_r_pthread_create=no
13882 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13883 conftest$ac_exeext conftest.$ac_ext
13884 LIBS=$ac_check_lib_save_LIBS
13886 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
13887 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
13888 if test $ac_cv_lib_c_r_pthread_create = yes; then
13889 cat >>confdefs.h <<\_ACEOF
13890 #define WITH_THREAD 1
13891 _ACEOF
13893 posix_threads=yes
13894 LIBS="$LIBS -lc_r"
13895 THREADOBJ="Python/thread.o"
13896 else
13898 { echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
13899 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6; }
13900 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
13901 echo $ECHO_N "(cached) $ECHO_C" >&6
13902 else
13903 ac_check_lib_save_LIBS=$LIBS
13904 LIBS="-lpthread $LIBS"
13905 cat >conftest.$ac_ext <<_ACEOF
13906 /* confdefs.h. */
13907 _ACEOF
13908 cat confdefs.h >>conftest.$ac_ext
13909 cat >>conftest.$ac_ext <<_ACEOF
13910 /* end confdefs.h. */
13912 /* Override any GCC internal prototype to avoid an error.
13913 Use char because int might match the return type of a GCC
13914 builtin and then its argument prototype would still apply. */
13915 #ifdef __cplusplus
13916 extern "C"
13917 #endif
13918 char __pthread_create_system ();
13920 main ()
13922 return __pthread_create_system ();
13924 return 0;
13926 _ACEOF
13927 rm -f conftest.$ac_objext conftest$ac_exeext
13928 if { (ac_try="$ac_link"
13929 case "(($ac_try" in
13930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13931 *) ac_try_echo=$ac_try;;
13932 esac
13933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13934 (eval "$ac_link") 2>conftest.er1
13935 ac_status=$?
13936 grep -v '^ *+' conftest.er1 >conftest.err
13937 rm -f conftest.er1
13938 cat conftest.err >&5
13939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13940 (exit $ac_status); } && {
13941 test -z "$ac_c_werror_flag" ||
13942 test ! -s conftest.err
13943 } && test -s conftest$ac_exeext &&
13944 $as_test_x conftest$ac_exeext; then
13945 ac_cv_lib_pthread___pthread_create_system=yes
13946 else
13947 echo "$as_me: failed program was:" >&5
13948 sed 's/^/| /' conftest.$ac_ext >&5
13950 ac_cv_lib_pthread___pthread_create_system=no
13953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13954 conftest$ac_exeext conftest.$ac_ext
13955 LIBS=$ac_check_lib_save_LIBS
13957 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
13958 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6; }
13959 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
13960 cat >>confdefs.h <<\_ACEOF
13961 #define WITH_THREAD 1
13962 _ACEOF
13964 posix_threads=yes
13965 LIBS="$LIBS -lpthread"
13966 THREADOBJ="Python/thread.o"
13967 else
13969 { echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
13970 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6; }
13971 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
13972 echo $ECHO_N "(cached) $ECHO_C" >&6
13973 else
13974 ac_check_lib_save_LIBS=$LIBS
13975 LIBS="-lcma $LIBS"
13976 cat >conftest.$ac_ext <<_ACEOF
13977 /* confdefs.h. */
13978 _ACEOF
13979 cat confdefs.h >>conftest.$ac_ext
13980 cat >>conftest.$ac_ext <<_ACEOF
13981 /* end confdefs.h. */
13983 /* Override any GCC internal prototype to avoid an error.
13984 Use char because int might match the return type of a GCC
13985 builtin and then its argument prototype would still apply. */
13986 #ifdef __cplusplus
13987 extern "C"
13988 #endif
13989 char pthread_create ();
13991 main ()
13993 return pthread_create ();
13995 return 0;
13997 _ACEOF
13998 rm -f conftest.$ac_objext conftest$ac_exeext
13999 if { (ac_try="$ac_link"
14000 case "(($ac_try" in
14001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14002 *) ac_try_echo=$ac_try;;
14003 esac
14004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14005 (eval "$ac_link") 2>conftest.er1
14006 ac_status=$?
14007 grep -v '^ *+' conftest.er1 >conftest.err
14008 rm -f conftest.er1
14009 cat conftest.err >&5
14010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14011 (exit $ac_status); } && {
14012 test -z "$ac_c_werror_flag" ||
14013 test ! -s conftest.err
14014 } && test -s conftest$ac_exeext &&
14015 $as_test_x conftest$ac_exeext; then
14016 ac_cv_lib_cma_pthread_create=yes
14017 else
14018 echo "$as_me: failed program was:" >&5
14019 sed 's/^/| /' conftest.$ac_ext >&5
14021 ac_cv_lib_cma_pthread_create=no
14024 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14025 conftest$ac_exeext conftest.$ac_ext
14026 LIBS=$ac_check_lib_save_LIBS
14028 { echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
14029 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6; }
14030 if test $ac_cv_lib_cma_pthread_create = yes; then
14031 cat >>confdefs.h <<\_ACEOF
14032 #define WITH_THREAD 1
14033 _ACEOF
14035 posix_threads=yes
14036 LIBS="$LIBS -lcma"
14037 THREADOBJ="Python/thread.o"
14038 else
14040 USE_THREAD_MODULE="#"
14060 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14061 conftest$ac_exeext conftest.$ac_ext
14071 { echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
14072 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6; }
14073 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
14074 echo $ECHO_N "(cached) $ECHO_C" >&6
14075 else
14076 ac_check_lib_save_LIBS=$LIBS
14077 LIBS="-lmpc $LIBS"
14078 cat >conftest.$ac_ext <<_ACEOF
14079 /* confdefs.h. */
14080 _ACEOF
14081 cat confdefs.h >>conftest.$ac_ext
14082 cat >>conftest.$ac_ext <<_ACEOF
14083 /* end confdefs.h. */
14085 /* Override any GCC internal prototype to avoid an error.
14086 Use char because int might match the return type of a GCC
14087 builtin and then its argument prototype would still apply. */
14088 #ifdef __cplusplus
14089 extern "C"
14090 #endif
14091 char usconfig ();
14093 main ()
14095 return usconfig ();
14097 return 0;
14099 _ACEOF
14100 rm -f conftest.$ac_objext conftest$ac_exeext
14101 if { (ac_try="$ac_link"
14102 case "(($ac_try" in
14103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14104 *) ac_try_echo=$ac_try;;
14105 esac
14106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14107 (eval "$ac_link") 2>conftest.er1
14108 ac_status=$?
14109 grep -v '^ *+' conftest.er1 >conftest.err
14110 rm -f conftest.er1
14111 cat conftest.err >&5
14112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14113 (exit $ac_status); } && {
14114 test -z "$ac_c_werror_flag" ||
14115 test ! -s conftest.err
14116 } && test -s conftest$ac_exeext &&
14117 $as_test_x conftest$ac_exeext; then
14118 ac_cv_lib_mpc_usconfig=yes
14119 else
14120 echo "$as_me: failed program was:" >&5
14121 sed 's/^/| /' conftest.$ac_ext >&5
14123 ac_cv_lib_mpc_usconfig=no
14126 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14127 conftest$ac_exeext conftest.$ac_ext
14128 LIBS=$ac_check_lib_save_LIBS
14130 { echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
14131 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6; }
14132 if test $ac_cv_lib_mpc_usconfig = yes; then
14133 cat >>confdefs.h <<\_ACEOF
14134 #define WITH_THREAD 1
14135 _ACEOF
14137 LIBS="$LIBS -lmpc"
14138 THREADOBJ="Python/thread.o"
14139 USE_THREAD_MODULE=""
14143 if test "$posix_threads" != "yes"; then
14144 { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
14145 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
14146 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
14147 echo $ECHO_N "(cached) $ECHO_C" >&6
14148 else
14149 ac_check_lib_save_LIBS=$LIBS
14150 LIBS="-lthread $LIBS"
14151 cat >conftest.$ac_ext <<_ACEOF
14152 /* confdefs.h. */
14153 _ACEOF
14154 cat confdefs.h >>conftest.$ac_ext
14155 cat >>conftest.$ac_ext <<_ACEOF
14156 /* end confdefs.h. */
14158 /* Override any GCC internal prototype to avoid an error.
14159 Use char because int might match the return type of a GCC
14160 builtin and then its argument prototype would still apply. */
14161 #ifdef __cplusplus
14162 extern "C"
14163 #endif
14164 char thr_create ();
14166 main ()
14168 return thr_create ();
14170 return 0;
14172 _ACEOF
14173 rm -f conftest.$ac_objext conftest$ac_exeext
14174 if { (ac_try="$ac_link"
14175 case "(($ac_try" in
14176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14177 *) ac_try_echo=$ac_try;;
14178 esac
14179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14180 (eval "$ac_link") 2>conftest.er1
14181 ac_status=$?
14182 grep -v '^ *+' conftest.er1 >conftest.err
14183 rm -f conftest.er1
14184 cat conftest.err >&5
14185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186 (exit $ac_status); } && {
14187 test -z "$ac_c_werror_flag" ||
14188 test ! -s conftest.err
14189 } && test -s conftest$ac_exeext &&
14190 $as_test_x conftest$ac_exeext; then
14191 ac_cv_lib_thread_thr_create=yes
14192 else
14193 echo "$as_me: failed program was:" >&5
14194 sed 's/^/| /' conftest.$ac_ext >&5
14196 ac_cv_lib_thread_thr_create=no
14199 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14200 conftest$ac_exeext conftest.$ac_ext
14201 LIBS=$ac_check_lib_save_LIBS
14203 { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
14204 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
14205 if test $ac_cv_lib_thread_thr_create = yes; then
14206 cat >>confdefs.h <<\_ACEOF
14207 #define WITH_THREAD 1
14208 _ACEOF
14210 LIBS="$LIBS -lthread"
14211 THREADOBJ="Python/thread.o"
14212 USE_THREAD_MODULE=""
14217 if test "$USE_THREAD_MODULE" != "#"
14218 then
14219 # If the above checks didn't disable threads, (at least) OSF1
14220 # needs this '-threads' argument during linking.
14221 case $ac_sys_system in
14222 OSF1) LDLAST=-threads;;
14223 esac
14227 if test "$posix_threads" = "yes"; then
14228 if test "$unistd_defines_pthreads" = "no"; then
14230 cat >>confdefs.h <<\_ACEOF
14231 #define _POSIX_THREADS 1
14232 _ACEOF
14236 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
14237 case $ac_sys_system/$ac_sys_release in
14238 SunOS/5.6)
14239 cat >>confdefs.h <<\_ACEOF
14240 #define HAVE_PTHREAD_DESTRUCTOR 1
14241 _ACEOF
14244 SunOS/5.8)
14245 cat >>confdefs.h <<\_ACEOF
14246 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
14247 _ACEOF
14250 esac
14252 { echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
14253 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6; }
14254 if test "${ac_cv_pthread_system_supported+set}" = set; then
14255 echo $ECHO_N "(cached) $ECHO_C" >&6
14256 else
14257 if test "$cross_compiling" = yes; then
14258 ac_cv_pthread_system_supported=no
14259 else
14260 cat >conftest.$ac_ext <<_ACEOF
14261 /* confdefs.h. */
14262 _ACEOF
14263 cat confdefs.h >>conftest.$ac_ext
14264 cat >>conftest.$ac_ext <<_ACEOF
14265 /* end confdefs.h. */
14266 #include <pthread.h>
14267 void *foo(void *parm) {
14268 return NULL;
14270 main() {
14271 pthread_attr_t attr;
14272 pthread_t id;
14273 if (pthread_attr_init(&attr)) exit(-1);
14274 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
14275 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
14276 exit(0);
14278 _ACEOF
14279 rm -f conftest$ac_exeext
14280 if { (ac_try="$ac_link"
14281 case "(($ac_try" in
14282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14283 *) ac_try_echo=$ac_try;;
14284 esac
14285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14286 (eval "$ac_link") 2>&5
14287 ac_status=$?
14288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14289 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14290 { (case "(($ac_try" in
14291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14292 *) ac_try_echo=$ac_try;;
14293 esac
14294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14295 (eval "$ac_try") 2>&5
14296 ac_status=$?
14297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14298 (exit $ac_status); }; }; then
14299 ac_cv_pthread_system_supported=yes
14300 else
14301 echo "$as_me: program exited with status $ac_status" >&5
14302 echo "$as_me: failed program was:" >&5
14303 sed 's/^/| /' conftest.$ac_ext >&5
14305 ( exit $ac_status )
14306 ac_cv_pthread_system_supported=no
14308 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14315 { echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
14316 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6; }
14317 if test "$ac_cv_pthread_system_supported" = "yes"; then
14319 cat >>confdefs.h <<\_ACEOF
14320 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
14321 _ACEOF
14325 for ac_func in pthread_sigmask
14327 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14328 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14329 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14330 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14331 echo $ECHO_N "(cached) $ECHO_C" >&6
14332 else
14333 cat >conftest.$ac_ext <<_ACEOF
14334 /* confdefs.h. */
14335 _ACEOF
14336 cat confdefs.h >>conftest.$ac_ext
14337 cat >>conftest.$ac_ext <<_ACEOF
14338 /* end confdefs.h. */
14339 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14340 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14341 #define $ac_func innocuous_$ac_func
14343 /* System header to define __stub macros and hopefully few prototypes,
14344 which can conflict with char $ac_func (); below.
14345 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14346 <limits.h> exists even on freestanding compilers. */
14348 #ifdef __STDC__
14349 # include <limits.h>
14350 #else
14351 # include <assert.h>
14352 #endif
14354 #undef $ac_func
14356 /* Override any GCC internal prototype to avoid an error.
14357 Use char because int might match the return type of a GCC
14358 builtin and then its argument prototype would still apply. */
14359 #ifdef __cplusplus
14360 extern "C"
14361 #endif
14362 char $ac_func ();
14363 /* The GNU C library defines this for functions which it implements
14364 to always fail with ENOSYS. Some functions are actually named
14365 something starting with __ and the normal name is an alias. */
14366 #if defined __stub_$ac_func || defined __stub___$ac_func
14367 choke me
14368 #endif
14371 main ()
14373 return $ac_func ();
14375 return 0;
14377 _ACEOF
14378 rm -f conftest.$ac_objext conftest$ac_exeext
14379 if { (ac_try="$ac_link"
14380 case "(($ac_try" in
14381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14382 *) ac_try_echo=$ac_try;;
14383 esac
14384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14385 (eval "$ac_link") 2>conftest.er1
14386 ac_status=$?
14387 grep -v '^ *+' conftest.er1 >conftest.err
14388 rm -f conftest.er1
14389 cat conftest.err >&5
14390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14391 (exit $ac_status); } && {
14392 test -z "$ac_c_werror_flag" ||
14393 test ! -s conftest.err
14394 } && test -s conftest$ac_exeext &&
14395 $as_test_x conftest$ac_exeext; then
14396 eval "$as_ac_var=yes"
14397 else
14398 echo "$as_me: failed program was:" >&5
14399 sed 's/^/| /' conftest.$ac_ext >&5
14401 eval "$as_ac_var=no"
14404 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14405 conftest$ac_exeext conftest.$ac_ext
14407 ac_res=`eval echo '${'$as_ac_var'}'`
14408 { echo "$as_me:$LINENO: result: $ac_res" >&5
14409 echo "${ECHO_T}$ac_res" >&6; }
14410 if test `eval echo '${'$as_ac_var'}'` = yes; then
14411 cat >>confdefs.h <<_ACEOF
14412 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14413 _ACEOF
14414 case $ac_sys_system in
14415 CYGWIN*)
14417 cat >>confdefs.h <<\_ACEOF
14418 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
14419 _ACEOF
14422 esac
14424 done
14429 # Check for enable-ipv6
14432 { echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
14433 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6; }
14434 # Check whether --enable-ipv6 was given.
14435 if test "${enable_ipv6+set}" = set; then
14436 enableval=$enable_ipv6; case "$enableval" in
14438 { echo "$as_me:$LINENO: result: no" >&5
14439 echo "${ECHO_T}no" >&6; }
14440 ipv6=no
14442 *) { echo "$as_me:$LINENO: result: yes" >&5
14443 echo "${ECHO_T}yes" >&6; }
14444 cat >>confdefs.h <<\_ACEOF
14445 #define ENABLE_IPV6 1
14446 _ACEOF
14448 ipv6=yes
14450 esac
14451 else
14453 if test "$cross_compiling" = yes; then
14454 { echo "$as_me:$LINENO: result: no" >&5
14455 echo "${ECHO_T}no" >&6; }
14456 ipv6=no
14458 else
14459 cat >conftest.$ac_ext <<_ACEOF
14460 /* confdefs.h. */
14461 _ACEOF
14462 cat confdefs.h >>conftest.$ac_ext
14463 cat >>conftest.$ac_ext <<_ACEOF
14464 /* end confdefs.h. */
14465 /* AF_INET6 available check */
14466 #include <sys/types.h>
14467 #include <sys/socket.h>
14468 main()
14470 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
14471 exit(1);
14472 else
14473 exit(0);
14476 _ACEOF
14477 rm -f conftest$ac_exeext
14478 if { (ac_try="$ac_link"
14479 case "(($ac_try" in
14480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14481 *) ac_try_echo=$ac_try;;
14482 esac
14483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14484 (eval "$ac_link") 2>&5
14485 ac_status=$?
14486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14487 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14488 { (case "(($ac_try" in
14489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14490 *) ac_try_echo=$ac_try;;
14491 esac
14492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14493 (eval "$ac_try") 2>&5
14494 ac_status=$?
14495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14496 (exit $ac_status); }; }; then
14497 { echo "$as_me:$LINENO: result: yes" >&5
14498 echo "${ECHO_T}yes" >&6; }
14499 ipv6=yes
14500 else
14501 echo "$as_me: program exited with status $ac_status" >&5
14502 echo "$as_me: failed program was:" >&5
14503 sed 's/^/| /' conftest.$ac_ext >&5
14505 ( exit $ac_status )
14506 { echo "$as_me:$LINENO: result: no" >&5
14507 echo "${ECHO_T}no" >&6; }
14508 ipv6=no
14510 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14515 if test "$ipv6" = "yes"; then
14516 { echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
14517 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6; }
14518 cat >conftest.$ac_ext <<_ACEOF
14519 /* confdefs.h. */
14520 _ACEOF
14521 cat confdefs.h >>conftest.$ac_ext
14522 cat >>conftest.$ac_ext <<_ACEOF
14523 /* end confdefs.h. */
14524 #include <sys/types.h>
14525 #include <netinet/in.h>
14527 main ()
14529 struct sockaddr_in6 x;
14530 x.sin6_scope_id;
14532 return 0;
14534 _ACEOF
14535 rm -f conftest.$ac_objext
14536 if { (ac_try="$ac_compile"
14537 case "(($ac_try" in
14538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14539 *) ac_try_echo=$ac_try;;
14540 esac
14541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14542 (eval "$ac_compile") 2>conftest.er1
14543 ac_status=$?
14544 grep -v '^ *+' conftest.er1 >conftest.err
14545 rm -f conftest.er1
14546 cat conftest.err >&5
14547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14548 (exit $ac_status); } && {
14549 test -z "$ac_c_werror_flag" ||
14550 test ! -s conftest.err
14551 } && test -s conftest.$ac_objext; then
14552 { echo "$as_me:$LINENO: result: yes" >&5
14553 echo "${ECHO_T}yes" >&6; }
14554 ipv6=yes
14555 else
14556 echo "$as_me: failed program was:" >&5
14557 sed 's/^/| /' conftest.$ac_ext >&5
14559 { echo "$as_me:$LINENO: result: no" >&5
14560 echo "${ECHO_T}no" >&6; }
14561 ipv6=no
14564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14567 if test "$ipv6" = "yes"; then
14568 cat >>confdefs.h <<\_ACEOF
14569 #define ENABLE_IPV6 1
14570 _ACEOF
14577 ipv6type=unknown
14578 ipv6lib=none
14579 ipv6trylibc=no
14581 if test "$ipv6" = "yes"; then
14582 { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
14583 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
14584 for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
14586 case $i in
14587 inria)
14588 cat >conftest.$ac_ext <<_ACEOF
14589 /* confdefs.h. */
14590 _ACEOF
14591 cat confdefs.h >>conftest.$ac_ext
14592 cat >>conftest.$ac_ext <<_ACEOF
14593 /* end confdefs.h. */
14595 #include <netinet/in.h>
14596 #ifdef IPV6_INRIA_VERSION
14598 #endif
14599 _ACEOF
14600 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14601 $EGREP "yes" >/dev/null 2>&1; then
14602 ipv6type=$i
14604 rm -f conftest*
14607 kame)
14608 cat >conftest.$ac_ext <<_ACEOF
14609 /* confdefs.h. */
14610 _ACEOF
14611 cat confdefs.h >>conftest.$ac_ext
14612 cat >>conftest.$ac_ext <<_ACEOF
14613 /* end confdefs.h. */
14615 #include <netinet/in.h>
14616 #ifdef __KAME__
14618 #endif
14619 _ACEOF
14620 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14621 $EGREP "yes" >/dev/null 2>&1; then
14622 ipv6type=$i;
14623 ipv6lib=inet6
14624 ipv6libdir=/usr/local/v6/lib
14625 ipv6trylibc=yes
14627 rm -f conftest*
14630 linux-glibc)
14631 cat >conftest.$ac_ext <<_ACEOF
14632 /* confdefs.h. */
14633 _ACEOF
14634 cat confdefs.h >>conftest.$ac_ext
14635 cat >>conftest.$ac_ext <<_ACEOF
14636 /* end confdefs.h. */
14638 #include <features.h>
14639 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
14641 #endif
14642 _ACEOF
14643 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14644 $EGREP "yes" >/dev/null 2>&1; then
14645 ipv6type=$i;
14646 ipv6trylibc=yes
14648 rm -f conftest*
14651 linux-inet6)
14652 if test -d /usr/inet6; then
14653 ipv6type=$i
14654 ipv6lib=inet6
14655 ipv6libdir=/usr/inet6/lib
14656 BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
14659 solaris)
14660 if test -f /etc/netconfig; then
14661 if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then
14662 ipv6type=$i
14663 ipv6trylibc=yes
14667 toshiba)
14668 cat >conftest.$ac_ext <<_ACEOF
14669 /* confdefs.h. */
14670 _ACEOF
14671 cat confdefs.h >>conftest.$ac_ext
14672 cat >>conftest.$ac_ext <<_ACEOF
14673 /* end confdefs.h. */
14675 #include <sys/param.h>
14676 #ifdef _TOSHIBA_INET6
14678 #endif
14679 _ACEOF
14680 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14681 $EGREP "yes" >/dev/null 2>&1; then
14682 ipv6type=$i;
14683 ipv6lib=inet6;
14684 ipv6libdir=/usr/local/v6/lib
14686 rm -f conftest*
14689 v6d)
14690 cat >conftest.$ac_ext <<_ACEOF
14691 /* confdefs.h. */
14692 _ACEOF
14693 cat confdefs.h >>conftest.$ac_ext
14694 cat >>conftest.$ac_ext <<_ACEOF
14695 /* end confdefs.h. */
14697 #include </usr/local/v6/include/sys/v6config.h>
14698 #ifdef __V6D__
14700 #endif
14701 _ACEOF
14702 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14703 $EGREP "yes" >/dev/null 2>&1; then
14704 ipv6type=$i;
14705 ipv6lib=v6;
14706 ipv6libdir=/usr/local/v6/lib;
14707 BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
14709 rm -f conftest*
14712 zeta)
14713 cat >conftest.$ac_ext <<_ACEOF
14714 /* confdefs.h. */
14715 _ACEOF
14716 cat confdefs.h >>conftest.$ac_ext
14717 cat >>conftest.$ac_ext <<_ACEOF
14718 /* end confdefs.h. */
14720 #include <sys/param.h>
14721 #ifdef _ZETA_MINAMI_INET6
14723 #endif
14724 _ACEOF
14725 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14726 $EGREP "yes" >/dev/null 2>&1; then
14727 ipv6type=$i;
14728 ipv6lib=inet6;
14729 ipv6libdir=/usr/local/v6/lib
14731 rm -f conftest*
14734 esac
14735 if test "$ipv6type" != "unknown"; then
14736 break
14738 done
14739 { echo "$as_me:$LINENO: result: $ipv6type" >&5
14740 echo "${ECHO_T}$ipv6type" >&6; }
14743 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
14744 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
14745 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
14746 echo "using lib$ipv6lib"
14747 else
14748 if test $ipv6trylibc = "yes"; then
14749 echo "using libc"
14750 else
14751 echo 'Fatal: no $ipv6lib library found. cannot continue.'
14752 echo "You need to fetch lib$ipv6lib.a from appropriate"
14753 echo 'ipv6 kit and compile beforehand.'
14754 exit 1
14759 # Check for --with-doc-strings
14760 { echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
14761 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6; }
14763 # Check whether --with-doc-strings was given.
14764 if test "${with_doc_strings+set}" = set; then
14765 withval=$with_doc_strings;
14769 if test -z "$with_doc_strings"
14770 then with_doc_strings="yes"
14772 if test "$with_doc_strings" != "no"
14773 then
14775 cat >>confdefs.h <<\_ACEOF
14776 #define WITH_DOC_STRINGS 1
14777 _ACEOF
14780 { echo "$as_me:$LINENO: result: $with_doc_strings" >&5
14781 echo "${ECHO_T}$with_doc_strings" >&6; }
14783 # Check for Python-specific malloc support
14784 { echo "$as_me:$LINENO: checking for --with-tsc" >&5
14785 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6; }
14787 # Check whether --with-tsc was given.
14788 if test "${with_tsc+set}" = set; then
14789 withval=$with_tsc;
14790 if test "$withval" != no
14791 then
14793 cat >>confdefs.h <<\_ACEOF
14794 #define WITH_TSC 1
14795 _ACEOF
14797 { echo "$as_me:$LINENO: result: yes" >&5
14798 echo "${ECHO_T}yes" >&6; }
14799 else { echo "$as_me:$LINENO: result: no" >&5
14800 echo "${ECHO_T}no" >&6; }
14802 else
14803 { echo "$as_me:$LINENO: result: no" >&5
14804 echo "${ECHO_T}no" >&6; }
14808 # Check for Python-specific malloc support
14809 { echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
14810 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6; }
14812 # Check whether --with-pymalloc was given.
14813 if test "${with_pymalloc+set}" = set; then
14814 withval=$with_pymalloc;
14818 if test -z "$with_pymalloc"
14819 then with_pymalloc="yes"
14821 if test "$with_pymalloc" != "no"
14822 then
14824 cat >>confdefs.h <<\_ACEOF
14825 #define WITH_PYMALLOC 1
14826 _ACEOF
14829 { echo "$as_me:$LINENO: result: $with_pymalloc" >&5
14830 echo "${ECHO_T}$with_pymalloc" >&6; }
14832 # Check for --with-wctype-functions
14833 { echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
14834 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6; }
14836 # Check whether --with-wctype-functions was given.
14837 if test "${with_wctype_functions+set}" = set; then
14838 withval=$with_wctype_functions;
14839 if test "$withval" != no
14840 then
14842 cat >>confdefs.h <<\_ACEOF
14843 #define WANT_WCTYPE_FUNCTIONS 1
14844 _ACEOF
14846 { echo "$as_me:$LINENO: result: yes" >&5
14847 echo "${ECHO_T}yes" >&6; }
14848 else { echo "$as_me:$LINENO: result: no" >&5
14849 echo "${ECHO_T}no" >&6; }
14851 else
14852 { echo "$as_me:$LINENO: result: no" >&5
14853 echo "${ECHO_T}no" >&6; }
14857 # -I${DLINCLDIR} is added to the compile rule for importdl.o
14859 DLINCLDIR=.
14861 # the dlopen() function means we might want to use dynload_shlib.o. some
14862 # platforms, such as AIX, have dlopen(), but don't want to use it.
14864 for ac_func in dlopen
14866 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14867 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14868 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14869 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14870 echo $ECHO_N "(cached) $ECHO_C" >&6
14871 else
14872 cat >conftest.$ac_ext <<_ACEOF
14873 /* confdefs.h. */
14874 _ACEOF
14875 cat confdefs.h >>conftest.$ac_ext
14876 cat >>conftest.$ac_ext <<_ACEOF
14877 /* end confdefs.h. */
14878 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14879 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14880 #define $ac_func innocuous_$ac_func
14882 /* System header to define __stub macros and hopefully few prototypes,
14883 which can conflict with char $ac_func (); below.
14884 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14885 <limits.h> exists even on freestanding compilers. */
14887 #ifdef __STDC__
14888 # include <limits.h>
14889 #else
14890 # include <assert.h>
14891 #endif
14893 #undef $ac_func
14895 /* Override any GCC internal prototype to avoid an error.
14896 Use char because int might match the return type of a GCC
14897 builtin and then its argument prototype would still apply. */
14898 #ifdef __cplusplus
14899 extern "C"
14900 #endif
14901 char $ac_func ();
14902 /* The GNU C library defines this for functions which it implements
14903 to always fail with ENOSYS. Some functions are actually named
14904 something starting with __ and the normal name is an alias. */
14905 #if defined __stub_$ac_func || defined __stub___$ac_func
14906 choke me
14907 #endif
14910 main ()
14912 return $ac_func ();
14914 return 0;
14916 _ACEOF
14917 rm -f conftest.$ac_objext conftest$ac_exeext
14918 if { (ac_try="$ac_link"
14919 case "(($ac_try" in
14920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14921 *) ac_try_echo=$ac_try;;
14922 esac
14923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14924 (eval "$ac_link") 2>conftest.er1
14925 ac_status=$?
14926 grep -v '^ *+' conftest.er1 >conftest.err
14927 rm -f conftest.er1
14928 cat conftest.err >&5
14929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14930 (exit $ac_status); } && {
14931 test -z "$ac_c_werror_flag" ||
14932 test ! -s conftest.err
14933 } && test -s conftest$ac_exeext &&
14934 $as_test_x conftest$ac_exeext; then
14935 eval "$as_ac_var=yes"
14936 else
14937 echo "$as_me: failed program was:" >&5
14938 sed 's/^/| /' conftest.$ac_ext >&5
14940 eval "$as_ac_var=no"
14943 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14944 conftest$ac_exeext conftest.$ac_ext
14946 ac_res=`eval echo '${'$as_ac_var'}'`
14947 { echo "$as_me:$LINENO: result: $ac_res" >&5
14948 echo "${ECHO_T}$ac_res" >&6; }
14949 if test `eval echo '${'$as_ac_var'}'` = yes; then
14950 cat >>confdefs.h <<_ACEOF
14951 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14952 _ACEOF
14955 done
14958 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
14959 # loading of modules.
14961 { echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
14962 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6; }
14963 if test -z "$DYNLOADFILE"
14964 then
14965 case $ac_sys_system/$ac_sys_release in
14966 AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
14967 if test "$ac_cv_func_dlopen" = yes
14968 then DYNLOADFILE="dynload_shlib.o"
14969 else DYNLOADFILE="dynload_aix.o"
14972 BeOS*) DYNLOADFILE="dynload_beos.o";;
14973 hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
14974 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
14975 Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";;
14976 atheos*) DYNLOADFILE="dynload_atheos.o";;
14978 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
14979 # out any dynamic loading
14980 if test "$ac_cv_func_dlopen" = yes
14981 then DYNLOADFILE="dynload_shlib.o"
14982 else DYNLOADFILE="dynload_stub.o"
14985 esac
14987 { echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
14988 echo "${ECHO_T}$DYNLOADFILE" >&6; }
14989 if test "$DYNLOADFILE" != "dynload_stub.o"
14990 then
14992 cat >>confdefs.h <<\_ACEOF
14993 #define HAVE_DYNAMIC_LOADING 1
14994 _ACEOF
14998 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
15001 { echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
15002 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6; }
15003 if test -z "$MACHDEP_OBJS"
15004 then
15005 MACHDEP_OBJS=$extra_machdep_objs
15006 else
15007 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
15009 { echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
15010 echo "${ECHO_T}MACHDEP_OBJS" >&6; }
15012 # checks for library functions
15091 for ac_func in alarm bind_textdomain_codeset chflags chown clock confstr \
15092 ctermid execv fork fpathconf ftime ftruncate \
15093 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
15094 getpriority getpwent getspnam getspent getsid getwd \
15095 kill killpg lchflags lchown lstat mkfifo mknod mktime \
15096 mremap nice pathconf pause plock poll pthread_init \
15097 putenv readlink realpath \
15098 select setegid seteuid setgid \
15099 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
15100 sigaction siginterrupt sigrelse strftime \
15101 sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
15102 truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty
15104 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15105 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15106 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15107 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15108 echo $ECHO_N "(cached) $ECHO_C" >&6
15109 else
15110 cat >conftest.$ac_ext <<_ACEOF
15111 /* confdefs.h. */
15112 _ACEOF
15113 cat confdefs.h >>conftest.$ac_ext
15114 cat >>conftest.$ac_ext <<_ACEOF
15115 /* end confdefs.h. */
15116 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15117 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15118 #define $ac_func innocuous_$ac_func
15120 /* System header to define __stub macros and hopefully few prototypes,
15121 which can conflict with char $ac_func (); below.
15122 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15123 <limits.h> exists even on freestanding compilers. */
15125 #ifdef __STDC__
15126 # include <limits.h>
15127 #else
15128 # include <assert.h>
15129 #endif
15131 #undef $ac_func
15133 /* Override any GCC internal prototype to avoid an error.
15134 Use char because int might match the return type of a GCC
15135 builtin and then its argument prototype would still apply. */
15136 #ifdef __cplusplus
15137 extern "C"
15138 #endif
15139 char $ac_func ();
15140 /* The GNU C library defines this for functions which it implements
15141 to always fail with ENOSYS. Some functions are actually named
15142 something starting with __ and the normal name is an alias. */
15143 #if defined __stub_$ac_func || defined __stub___$ac_func
15144 choke me
15145 #endif
15148 main ()
15150 return $ac_func ();
15152 return 0;
15154 _ACEOF
15155 rm -f conftest.$ac_objext conftest$ac_exeext
15156 if { (ac_try="$ac_link"
15157 case "(($ac_try" in
15158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15159 *) ac_try_echo=$ac_try;;
15160 esac
15161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15162 (eval "$ac_link") 2>conftest.er1
15163 ac_status=$?
15164 grep -v '^ *+' conftest.er1 >conftest.err
15165 rm -f conftest.er1
15166 cat conftest.err >&5
15167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15168 (exit $ac_status); } && {
15169 test -z "$ac_c_werror_flag" ||
15170 test ! -s conftest.err
15171 } && test -s conftest$ac_exeext &&
15172 $as_test_x conftest$ac_exeext; then
15173 eval "$as_ac_var=yes"
15174 else
15175 echo "$as_me: failed program was:" >&5
15176 sed 's/^/| /' conftest.$ac_ext >&5
15178 eval "$as_ac_var=no"
15181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15182 conftest$ac_exeext conftest.$ac_ext
15184 ac_res=`eval echo '${'$as_ac_var'}'`
15185 { echo "$as_me:$LINENO: result: $ac_res" >&5
15186 echo "${ECHO_T}$ac_res" >&6; }
15187 if test `eval echo '${'$as_ac_var'}'` = yes; then
15188 cat >>confdefs.h <<_ACEOF
15189 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15190 _ACEOF
15193 done
15196 # For some functions, having a definition is not sufficient, since
15197 # we want to take their address.
15198 { echo "$as_me:$LINENO: checking for chroot" >&5
15199 echo $ECHO_N "checking for chroot... $ECHO_C" >&6; }
15200 cat >conftest.$ac_ext <<_ACEOF
15201 /* confdefs.h. */
15202 _ACEOF
15203 cat confdefs.h >>conftest.$ac_ext
15204 cat >>conftest.$ac_ext <<_ACEOF
15205 /* end confdefs.h. */
15206 #include <unistd.h>
15208 main ()
15210 void *x=chroot
15212 return 0;
15214 _ACEOF
15215 rm -f conftest.$ac_objext
15216 if { (ac_try="$ac_compile"
15217 case "(($ac_try" in
15218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15219 *) ac_try_echo=$ac_try;;
15220 esac
15221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15222 (eval "$ac_compile") 2>conftest.er1
15223 ac_status=$?
15224 grep -v '^ *+' conftest.er1 >conftest.err
15225 rm -f conftest.er1
15226 cat conftest.err >&5
15227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15228 (exit $ac_status); } && {
15229 test -z "$ac_c_werror_flag" ||
15230 test ! -s conftest.err
15231 } && test -s conftest.$ac_objext; then
15233 cat >>confdefs.h <<\_ACEOF
15234 #define HAVE_CHROOT 1
15235 _ACEOF
15237 { echo "$as_me:$LINENO: result: yes" >&5
15238 echo "${ECHO_T}yes" >&6; }
15239 else
15240 echo "$as_me: failed program was:" >&5
15241 sed 's/^/| /' conftest.$ac_ext >&5
15243 { echo "$as_me:$LINENO: result: no" >&5
15244 echo "${ECHO_T}no" >&6; }
15248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15249 { echo "$as_me:$LINENO: checking for link" >&5
15250 echo $ECHO_N "checking for link... $ECHO_C" >&6; }
15251 cat >conftest.$ac_ext <<_ACEOF
15252 /* confdefs.h. */
15253 _ACEOF
15254 cat confdefs.h >>conftest.$ac_ext
15255 cat >>conftest.$ac_ext <<_ACEOF
15256 /* end confdefs.h. */
15257 #include <unistd.h>
15259 main ()
15261 void *x=link
15263 return 0;
15265 _ACEOF
15266 rm -f conftest.$ac_objext
15267 if { (ac_try="$ac_compile"
15268 case "(($ac_try" in
15269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15270 *) ac_try_echo=$ac_try;;
15271 esac
15272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15273 (eval "$ac_compile") 2>conftest.er1
15274 ac_status=$?
15275 grep -v '^ *+' conftest.er1 >conftest.err
15276 rm -f conftest.er1
15277 cat conftest.err >&5
15278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15279 (exit $ac_status); } && {
15280 test -z "$ac_c_werror_flag" ||
15281 test ! -s conftest.err
15282 } && test -s conftest.$ac_objext; then
15284 cat >>confdefs.h <<\_ACEOF
15285 #define HAVE_LINK 1
15286 _ACEOF
15288 { echo "$as_me:$LINENO: result: yes" >&5
15289 echo "${ECHO_T}yes" >&6; }
15290 else
15291 echo "$as_me: failed program was:" >&5
15292 sed 's/^/| /' conftest.$ac_ext >&5
15294 { echo "$as_me:$LINENO: result: no" >&5
15295 echo "${ECHO_T}no" >&6; }
15299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15300 { echo "$as_me:$LINENO: checking for symlink" >&5
15301 echo $ECHO_N "checking for symlink... $ECHO_C" >&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 <unistd.h>
15310 main ()
15312 void *x=symlink
15314 return 0;
15316 _ACEOF
15317 rm -f conftest.$ac_objext
15318 if { (ac_try="$ac_compile"
15319 case "(($ac_try" in
15320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15321 *) ac_try_echo=$ac_try;;
15322 esac
15323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15324 (eval "$ac_compile") 2>conftest.er1
15325 ac_status=$?
15326 grep -v '^ *+' conftest.er1 >conftest.err
15327 rm -f conftest.er1
15328 cat conftest.err >&5
15329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15330 (exit $ac_status); } && {
15331 test -z "$ac_c_werror_flag" ||
15332 test ! -s conftest.err
15333 } && test -s conftest.$ac_objext; then
15335 cat >>confdefs.h <<\_ACEOF
15336 #define HAVE_SYMLINK 1
15337 _ACEOF
15339 { echo "$as_me:$LINENO: result: yes" >&5
15340 echo "${ECHO_T}yes" >&6; }
15341 else
15342 echo "$as_me: failed program was:" >&5
15343 sed 's/^/| /' conftest.$ac_ext >&5
15345 { echo "$as_me:$LINENO: result: no" >&5
15346 echo "${ECHO_T}no" >&6; }
15350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15351 { echo "$as_me:$LINENO: checking for fchdir" >&5
15352 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6; }
15353 cat >conftest.$ac_ext <<_ACEOF
15354 /* confdefs.h. */
15355 _ACEOF
15356 cat confdefs.h >>conftest.$ac_ext
15357 cat >>conftest.$ac_ext <<_ACEOF
15358 /* end confdefs.h. */
15359 #include <unistd.h>
15361 main ()
15363 void *x=fchdir
15365 return 0;
15367 _ACEOF
15368 rm -f conftest.$ac_objext
15369 if { (ac_try="$ac_compile"
15370 case "(($ac_try" in
15371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15372 *) ac_try_echo=$ac_try;;
15373 esac
15374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15375 (eval "$ac_compile") 2>conftest.er1
15376 ac_status=$?
15377 grep -v '^ *+' conftest.er1 >conftest.err
15378 rm -f conftest.er1
15379 cat conftest.err >&5
15380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15381 (exit $ac_status); } && {
15382 test -z "$ac_c_werror_flag" ||
15383 test ! -s conftest.err
15384 } && test -s conftest.$ac_objext; then
15386 cat >>confdefs.h <<\_ACEOF
15387 #define HAVE_FCHDIR 1
15388 _ACEOF
15390 { echo "$as_me:$LINENO: result: yes" >&5
15391 echo "${ECHO_T}yes" >&6; }
15392 else
15393 echo "$as_me: failed program was:" >&5
15394 sed 's/^/| /' conftest.$ac_ext >&5
15396 { echo "$as_me:$LINENO: result: no" >&5
15397 echo "${ECHO_T}no" >&6; }
15401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15402 { echo "$as_me:$LINENO: checking for fsync" >&5
15403 echo $ECHO_N "checking for fsync... $ECHO_C" >&6; }
15404 cat >conftest.$ac_ext <<_ACEOF
15405 /* confdefs.h. */
15406 _ACEOF
15407 cat confdefs.h >>conftest.$ac_ext
15408 cat >>conftest.$ac_ext <<_ACEOF
15409 /* end confdefs.h. */
15410 #include <unistd.h>
15412 main ()
15414 void *x=fsync
15416 return 0;
15418 _ACEOF
15419 rm -f conftest.$ac_objext
15420 if { (ac_try="$ac_compile"
15421 case "(($ac_try" in
15422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15423 *) ac_try_echo=$ac_try;;
15424 esac
15425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15426 (eval "$ac_compile") 2>conftest.er1
15427 ac_status=$?
15428 grep -v '^ *+' conftest.er1 >conftest.err
15429 rm -f conftest.er1
15430 cat conftest.err >&5
15431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15432 (exit $ac_status); } && {
15433 test -z "$ac_c_werror_flag" ||
15434 test ! -s conftest.err
15435 } && test -s conftest.$ac_objext; then
15437 cat >>confdefs.h <<\_ACEOF
15438 #define HAVE_FSYNC 1
15439 _ACEOF
15441 { echo "$as_me:$LINENO: result: yes" >&5
15442 echo "${ECHO_T}yes" >&6; }
15443 else
15444 echo "$as_me: failed program was:" >&5
15445 sed 's/^/| /' conftest.$ac_ext >&5
15447 { echo "$as_me:$LINENO: result: no" >&5
15448 echo "${ECHO_T}no" >&6; }
15452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15453 { echo "$as_me:$LINENO: checking for fdatasync" >&5
15454 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; }
15455 cat >conftest.$ac_ext <<_ACEOF
15456 /* confdefs.h. */
15457 _ACEOF
15458 cat confdefs.h >>conftest.$ac_ext
15459 cat >>conftest.$ac_ext <<_ACEOF
15460 /* end confdefs.h. */
15461 #include <unistd.h>
15463 main ()
15465 void *x=fdatasync
15467 return 0;
15469 _ACEOF
15470 rm -f conftest.$ac_objext
15471 if { (ac_try="$ac_compile"
15472 case "(($ac_try" in
15473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15474 *) ac_try_echo=$ac_try;;
15475 esac
15476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15477 (eval "$ac_compile") 2>conftest.er1
15478 ac_status=$?
15479 grep -v '^ *+' conftest.er1 >conftest.err
15480 rm -f conftest.er1
15481 cat conftest.err >&5
15482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15483 (exit $ac_status); } && {
15484 test -z "$ac_c_werror_flag" ||
15485 test ! -s conftest.err
15486 } && test -s conftest.$ac_objext; then
15488 cat >>confdefs.h <<\_ACEOF
15489 #define HAVE_FDATASYNC 1
15490 _ACEOF
15492 { echo "$as_me:$LINENO: result: yes" >&5
15493 echo "${ECHO_T}yes" >&6; }
15494 else
15495 echo "$as_me: failed program was:" >&5
15496 sed 's/^/| /' conftest.$ac_ext >&5
15498 { echo "$as_me:$LINENO: result: no" >&5
15499 echo "${ECHO_T}no" >&6; }
15503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15505 # On some systems (eg. FreeBSD 5), we would find a definition of the
15506 # functions ctermid_r, setgroups in the library, but no prototype
15507 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
15508 # address to avoid compiler warnings and potential miscompilations
15509 # because of the missing prototypes.
15511 { echo "$as_me:$LINENO: checking for ctermid_r" >&5
15512 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6; }
15513 cat >conftest.$ac_ext <<_ACEOF
15514 /* confdefs.h. */
15515 _ACEOF
15516 cat confdefs.h >>conftest.$ac_ext
15517 cat >>conftest.$ac_ext <<_ACEOF
15518 /* end confdefs.h. */
15520 #include "confdefs.h"
15521 #include <stdio.h>
15524 main ()
15526 void* p = ctermid_r
15528 return 0;
15530 _ACEOF
15531 rm -f conftest.$ac_objext
15532 if { (ac_try="$ac_compile"
15533 case "(($ac_try" in
15534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15535 *) ac_try_echo=$ac_try;;
15536 esac
15537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15538 (eval "$ac_compile") 2>conftest.er1
15539 ac_status=$?
15540 grep -v '^ *+' conftest.er1 >conftest.err
15541 rm -f conftest.er1
15542 cat conftest.err >&5
15543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15544 (exit $ac_status); } && {
15545 test -z "$ac_c_werror_flag" ||
15546 test ! -s conftest.err
15547 } && test -s conftest.$ac_objext; then
15549 cat >>confdefs.h <<\_ACEOF
15550 #define HAVE_CTERMID_R 1
15551 _ACEOF
15553 { echo "$as_me:$LINENO: result: yes" >&5
15554 echo "${ECHO_T}yes" >&6; }
15555 else
15556 echo "$as_me: failed program was:" >&5
15557 sed 's/^/| /' conftest.$ac_ext >&5
15559 { echo "$as_me:$LINENO: result: no" >&5
15560 echo "${ECHO_T}no" >&6; }
15564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15566 { echo "$as_me:$LINENO: checking for flock" >&5
15567 echo $ECHO_N "checking for flock... $ECHO_C" >&6; }
15568 cat >conftest.$ac_ext <<_ACEOF
15569 /* confdefs.h. */
15570 _ACEOF
15571 cat confdefs.h >>conftest.$ac_ext
15572 cat >>conftest.$ac_ext <<_ACEOF
15573 /* end confdefs.h. */
15575 #include "confdefs.h"
15576 #include <sys/file.h>
15579 main ()
15581 void* p = flock
15583 return 0;
15585 _ACEOF
15586 rm -f conftest.$ac_objext
15587 if { (ac_try="$ac_compile"
15588 case "(($ac_try" in
15589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15590 *) ac_try_echo=$ac_try;;
15591 esac
15592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15593 (eval "$ac_compile") 2>conftest.er1
15594 ac_status=$?
15595 grep -v '^ *+' conftest.er1 >conftest.err
15596 rm -f conftest.er1
15597 cat conftest.err >&5
15598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15599 (exit $ac_status); } && {
15600 test -z "$ac_c_werror_flag" ||
15601 test ! -s conftest.err
15602 } && test -s conftest.$ac_objext; then
15604 cat >>confdefs.h <<\_ACEOF
15605 #define HAVE_FLOCK 1
15606 _ACEOF
15608 { echo "$as_me:$LINENO: result: yes" >&5
15609 echo "${ECHO_T}yes" >&6; }
15610 else
15611 echo "$as_me: failed program was:" >&5
15612 sed 's/^/| /' conftest.$ac_ext >&5
15614 { echo "$as_me:$LINENO: result: no" >&5
15615 echo "${ECHO_T}no" >&6; }
15619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15621 { echo "$as_me:$LINENO: checking for getpagesize" >&5
15622 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; }
15623 cat >conftest.$ac_ext <<_ACEOF
15624 /* confdefs.h. */
15625 _ACEOF
15626 cat confdefs.h >>conftest.$ac_ext
15627 cat >>conftest.$ac_ext <<_ACEOF
15628 /* end confdefs.h. */
15630 #include "confdefs.h"
15631 #include <unistd.h>
15634 main ()
15636 void* p = getpagesize
15638 return 0;
15640 _ACEOF
15641 rm -f conftest.$ac_objext
15642 if { (ac_try="$ac_compile"
15643 case "(($ac_try" in
15644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15645 *) ac_try_echo=$ac_try;;
15646 esac
15647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15648 (eval "$ac_compile") 2>conftest.er1
15649 ac_status=$?
15650 grep -v '^ *+' conftest.er1 >conftest.err
15651 rm -f conftest.er1
15652 cat conftest.err >&5
15653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15654 (exit $ac_status); } && {
15655 test -z "$ac_c_werror_flag" ||
15656 test ! -s conftest.err
15657 } && test -s conftest.$ac_objext; then
15659 cat >>confdefs.h <<\_ACEOF
15660 #define HAVE_GETPAGESIZE 1
15661 _ACEOF
15663 { echo "$as_me:$LINENO: result: yes" >&5
15664 echo "${ECHO_T}yes" >&6; }
15665 else
15666 echo "$as_me: failed program was:" >&5
15667 sed 's/^/| /' conftest.$ac_ext >&5
15669 { echo "$as_me:$LINENO: result: no" >&5
15670 echo "${ECHO_T}no" >&6; }
15674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15676 for ac_prog in true
15678 # Extract the first word of "$ac_prog", so it can be a program name with args.
15679 set dummy $ac_prog; ac_word=$2
15680 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15682 if test "${ac_cv_prog_TRUE+set}" = set; then
15683 echo $ECHO_N "(cached) $ECHO_C" >&6
15684 else
15685 if test -n "$TRUE"; then
15686 ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
15687 else
15688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15689 for as_dir in $PATH
15691 IFS=$as_save_IFS
15692 test -z "$as_dir" && as_dir=.
15693 for ac_exec_ext in '' $ac_executable_extensions; do
15694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15695 ac_cv_prog_TRUE="$ac_prog"
15696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15697 break 2
15699 done
15700 done
15701 IFS=$as_save_IFS
15705 TRUE=$ac_cv_prog_TRUE
15706 if test -n "$TRUE"; then
15707 { echo "$as_me:$LINENO: result: $TRUE" >&5
15708 echo "${ECHO_T}$TRUE" >&6; }
15709 else
15710 { echo "$as_me:$LINENO: result: no" >&5
15711 echo "${ECHO_T}no" >&6; }
15715 test -n "$TRUE" && break
15716 done
15717 test -n "$TRUE" || TRUE="/bin/true"
15720 { echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
15721 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6; }
15722 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
15723 echo $ECHO_N "(cached) $ECHO_C" >&6
15724 else
15725 ac_check_lib_save_LIBS=$LIBS
15726 LIBS="-lc $LIBS"
15727 cat >conftest.$ac_ext <<_ACEOF
15728 /* confdefs.h. */
15729 _ACEOF
15730 cat confdefs.h >>conftest.$ac_ext
15731 cat >>conftest.$ac_ext <<_ACEOF
15732 /* end confdefs.h. */
15734 /* Override any GCC internal prototype to avoid an error.
15735 Use char because int might match the return type of a GCC
15736 builtin and then its argument prototype would still apply. */
15737 #ifdef __cplusplus
15738 extern "C"
15739 #endif
15740 char inet_aton ();
15742 main ()
15744 return inet_aton ();
15746 return 0;
15748 _ACEOF
15749 rm -f conftest.$ac_objext conftest$ac_exeext
15750 if { (ac_try="$ac_link"
15751 case "(($ac_try" in
15752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15753 *) ac_try_echo=$ac_try;;
15754 esac
15755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15756 (eval "$ac_link") 2>conftest.er1
15757 ac_status=$?
15758 grep -v '^ *+' conftest.er1 >conftest.err
15759 rm -f conftest.er1
15760 cat conftest.err >&5
15761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15762 (exit $ac_status); } && {
15763 test -z "$ac_c_werror_flag" ||
15764 test ! -s conftest.err
15765 } && test -s conftest$ac_exeext &&
15766 $as_test_x conftest$ac_exeext; then
15767 ac_cv_lib_c_inet_aton=yes
15768 else
15769 echo "$as_me: failed program was:" >&5
15770 sed 's/^/| /' conftest.$ac_ext >&5
15772 ac_cv_lib_c_inet_aton=no
15775 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15776 conftest$ac_exeext conftest.$ac_ext
15777 LIBS=$ac_check_lib_save_LIBS
15779 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
15780 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6; }
15781 if test $ac_cv_lib_c_inet_aton = yes; then
15782 $ac_cv_prog_TRUE
15783 else
15785 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
15786 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
15787 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
15788 echo $ECHO_N "(cached) $ECHO_C" >&6
15789 else
15790 ac_check_lib_save_LIBS=$LIBS
15791 LIBS="-lresolv $LIBS"
15792 cat >conftest.$ac_ext <<_ACEOF
15793 /* confdefs.h. */
15794 _ACEOF
15795 cat confdefs.h >>conftest.$ac_ext
15796 cat >>conftest.$ac_ext <<_ACEOF
15797 /* end confdefs.h. */
15799 /* Override any GCC internal prototype to avoid an error.
15800 Use char because int might match the return type of a GCC
15801 builtin and then its argument prototype would still apply. */
15802 #ifdef __cplusplus
15803 extern "C"
15804 #endif
15805 char inet_aton ();
15807 main ()
15809 return inet_aton ();
15811 return 0;
15813 _ACEOF
15814 rm -f conftest.$ac_objext conftest$ac_exeext
15815 if { (ac_try="$ac_link"
15816 case "(($ac_try" in
15817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15818 *) ac_try_echo=$ac_try;;
15819 esac
15820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15821 (eval "$ac_link") 2>conftest.er1
15822 ac_status=$?
15823 grep -v '^ *+' conftest.er1 >conftest.err
15824 rm -f conftest.er1
15825 cat conftest.err >&5
15826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15827 (exit $ac_status); } && {
15828 test -z "$ac_c_werror_flag" ||
15829 test ! -s conftest.err
15830 } && test -s conftest$ac_exeext &&
15831 $as_test_x conftest$ac_exeext; then
15832 ac_cv_lib_resolv_inet_aton=yes
15833 else
15834 echo "$as_me: failed program was:" >&5
15835 sed 's/^/| /' conftest.$ac_ext >&5
15837 ac_cv_lib_resolv_inet_aton=no
15840 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15841 conftest$ac_exeext conftest.$ac_ext
15842 LIBS=$ac_check_lib_save_LIBS
15844 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
15845 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
15846 if test $ac_cv_lib_resolv_inet_aton = yes; then
15847 cat >>confdefs.h <<_ACEOF
15848 #define HAVE_LIBRESOLV 1
15849 _ACEOF
15851 LIBS="-lresolv $LIBS"
15859 case $ac_sys_system/$ac_sys_release in
15860 Darwin/*)
15861 _CUR_CFLAGS="${CFLAGS}"
15862 _CUR_LDFLAGS="${LDFLAGS}"
15863 CFLAGS="${CFLAGS} -Wl,-search_paths_first"
15864 LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
15866 esac
15868 { echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5
15869 echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6; }
15870 if test "${ac_cv_lib_z_inflateCopy+set}" = set; then
15871 echo $ECHO_N "(cached) $ECHO_C" >&6
15872 else
15873 ac_check_lib_save_LIBS=$LIBS
15874 LIBS="-lz $LIBS"
15875 cat >conftest.$ac_ext <<_ACEOF
15876 /* confdefs.h. */
15877 _ACEOF
15878 cat confdefs.h >>conftest.$ac_ext
15879 cat >>conftest.$ac_ext <<_ACEOF
15880 /* end confdefs.h. */
15882 /* Override any GCC internal prototype to avoid an error.
15883 Use char because int might match the return type of a GCC
15884 builtin and then its argument prototype would still apply. */
15885 #ifdef __cplusplus
15886 extern "C"
15887 #endif
15888 char inflateCopy ();
15890 main ()
15892 return inflateCopy ();
15894 return 0;
15896 _ACEOF
15897 rm -f conftest.$ac_objext conftest$ac_exeext
15898 if { (ac_try="$ac_link"
15899 case "(($ac_try" in
15900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15901 *) ac_try_echo=$ac_try;;
15902 esac
15903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15904 (eval "$ac_link") 2>conftest.er1
15905 ac_status=$?
15906 grep -v '^ *+' conftest.er1 >conftest.err
15907 rm -f conftest.er1
15908 cat conftest.err >&5
15909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15910 (exit $ac_status); } && {
15911 test -z "$ac_c_werror_flag" ||
15912 test ! -s conftest.err
15913 } && test -s conftest$ac_exeext &&
15914 $as_test_x conftest$ac_exeext; then
15915 ac_cv_lib_z_inflateCopy=yes
15916 else
15917 echo "$as_me: failed program was:" >&5
15918 sed 's/^/| /' conftest.$ac_ext >&5
15920 ac_cv_lib_z_inflateCopy=no
15923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15924 conftest$ac_exeext conftest.$ac_ext
15925 LIBS=$ac_check_lib_save_LIBS
15927 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5
15928 echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6; }
15929 if test $ac_cv_lib_z_inflateCopy = yes; then
15931 cat >>confdefs.h <<\_ACEOF
15932 #define HAVE_ZLIB_COPY 1
15933 _ACEOF
15938 case $ac_sys_system/$ac_sys_release in
15939 Darwin/*)
15940 CFLAGS="${_CUR_CFLAGS}"
15941 LDFLAGS="${_CUR_LDFLAGS}"
15943 esac
15945 { echo "$as_me:$LINENO: checking for hstrerror" >&5
15946 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6; }
15947 cat >conftest.$ac_ext <<_ACEOF
15948 /* confdefs.h. */
15949 _ACEOF
15950 cat confdefs.h >>conftest.$ac_ext
15951 cat >>conftest.$ac_ext <<_ACEOF
15952 /* end confdefs.h. */
15954 #include "confdefs.h"
15955 #include <netdb.h>
15958 main ()
15960 void* p = hstrerror; hstrerror(0)
15962 return 0;
15964 _ACEOF
15965 rm -f conftest.$ac_objext conftest$ac_exeext
15966 if { (ac_try="$ac_link"
15967 case "(($ac_try" in
15968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15969 *) ac_try_echo=$ac_try;;
15970 esac
15971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15972 (eval "$ac_link") 2>conftest.er1
15973 ac_status=$?
15974 grep -v '^ *+' conftest.er1 >conftest.err
15975 rm -f conftest.er1
15976 cat conftest.err >&5
15977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15978 (exit $ac_status); } && {
15979 test -z "$ac_c_werror_flag" ||
15980 test ! -s conftest.err
15981 } && test -s conftest$ac_exeext &&
15982 $as_test_x conftest$ac_exeext; then
15984 cat >>confdefs.h <<\_ACEOF
15985 #define HAVE_HSTRERROR 1
15986 _ACEOF
15988 { echo "$as_me:$LINENO: result: yes" >&5
15989 echo "${ECHO_T}yes" >&6; }
15990 else
15991 echo "$as_me: failed program was:" >&5
15992 sed 's/^/| /' conftest.$ac_ext >&5
15994 { echo "$as_me:$LINENO: result: no" >&5
15995 echo "${ECHO_T}no" >&6; }
15999 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16000 conftest$ac_exeext conftest.$ac_ext
16002 { echo "$as_me:$LINENO: checking for inet_aton" >&5
16003 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
16004 cat >conftest.$ac_ext <<_ACEOF
16005 /* confdefs.h. */
16006 _ACEOF
16007 cat confdefs.h >>conftest.$ac_ext
16008 cat >>conftest.$ac_ext <<_ACEOF
16009 /* end confdefs.h. */
16011 #include "confdefs.h"
16012 #include <sys/types.h>
16013 #include <sys/socket.h>
16014 #include <netinet/in.h>
16015 #include <arpa/inet.h>
16018 main ()
16020 void* p = inet_aton;inet_aton(0,0)
16022 return 0;
16024 _ACEOF
16025 rm -f conftest.$ac_objext conftest$ac_exeext
16026 if { (ac_try="$ac_link"
16027 case "(($ac_try" in
16028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16029 *) ac_try_echo=$ac_try;;
16030 esac
16031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16032 (eval "$ac_link") 2>conftest.er1
16033 ac_status=$?
16034 grep -v '^ *+' conftest.er1 >conftest.err
16035 rm -f conftest.er1
16036 cat conftest.err >&5
16037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16038 (exit $ac_status); } && {
16039 test -z "$ac_c_werror_flag" ||
16040 test ! -s conftest.err
16041 } && test -s conftest$ac_exeext &&
16042 $as_test_x conftest$ac_exeext; then
16044 cat >>confdefs.h <<\_ACEOF
16045 #define HAVE_INET_ATON 1
16046 _ACEOF
16048 { echo "$as_me:$LINENO: result: yes" >&5
16049 echo "${ECHO_T}yes" >&6; }
16050 else
16051 echo "$as_me: failed program was:" >&5
16052 sed 's/^/| /' conftest.$ac_ext >&5
16054 { echo "$as_me:$LINENO: result: no" >&5
16055 echo "${ECHO_T}no" >&6; }
16059 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16060 conftest$ac_exeext conftest.$ac_ext
16062 { echo "$as_me:$LINENO: checking for inet_pton" >&5
16063 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
16064 cat >conftest.$ac_ext <<_ACEOF
16065 /* confdefs.h. */
16066 _ACEOF
16067 cat confdefs.h >>conftest.$ac_ext
16068 cat >>conftest.$ac_ext <<_ACEOF
16069 /* end confdefs.h. */
16071 #include "confdefs.h"
16072 #include <sys/types.h>
16073 #include <sys/socket.h>
16074 #include <netinet/in.h>
16075 #include <arpa/inet.h>
16078 main ()
16080 void* p = inet_pton
16082 return 0;
16084 _ACEOF
16085 rm -f conftest.$ac_objext
16086 if { (ac_try="$ac_compile"
16087 case "(($ac_try" in
16088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16089 *) ac_try_echo=$ac_try;;
16090 esac
16091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16092 (eval "$ac_compile") 2>conftest.er1
16093 ac_status=$?
16094 grep -v '^ *+' conftest.er1 >conftest.err
16095 rm -f conftest.er1
16096 cat conftest.err >&5
16097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16098 (exit $ac_status); } && {
16099 test -z "$ac_c_werror_flag" ||
16100 test ! -s conftest.err
16101 } && test -s conftest.$ac_objext; then
16103 cat >>confdefs.h <<\_ACEOF
16104 #define HAVE_INET_PTON 1
16105 _ACEOF
16107 { echo "$as_me:$LINENO: result: yes" >&5
16108 echo "${ECHO_T}yes" >&6; }
16109 else
16110 echo "$as_me: failed program was:" >&5
16111 sed 's/^/| /' conftest.$ac_ext >&5
16113 { echo "$as_me:$LINENO: result: no" >&5
16114 echo "${ECHO_T}no" >&6; }
16118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16120 # On some systems, setgroups is in unistd.h, on others, in grp.h
16121 { echo "$as_me:$LINENO: checking for setgroups" >&5
16122 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6; }
16123 cat >conftest.$ac_ext <<_ACEOF
16124 /* confdefs.h. */
16125 _ACEOF
16126 cat confdefs.h >>conftest.$ac_ext
16127 cat >>conftest.$ac_ext <<_ACEOF
16128 /* end confdefs.h. */
16130 #include "confdefs.h"
16131 #include <unistd.h>
16132 #ifdef HAVE_GRP_H
16133 #include <grp.h>
16134 #endif
16137 main ()
16139 void* p = setgroups
16141 return 0;
16143 _ACEOF
16144 rm -f conftest.$ac_objext
16145 if { (ac_try="$ac_compile"
16146 case "(($ac_try" in
16147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16148 *) ac_try_echo=$ac_try;;
16149 esac
16150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16151 (eval "$ac_compile") 2>conftest.er1
16152 ac_status=$?
16153 grep -v '^ *+' conftest.er1 >conftest.err
16154 rm -f conftest.er1
16155 cat conftest.err >&5
16156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16157 (exit $ac_status); } && {
16158 test -z "$ac_c_werror_flag" ||
16159 test ! -s conftest.err
16160 } && test -s conftest.$ac_objext; then
16162 cat >>confdefs.h <<\_ACEOF
16163 #define HAVE_SETGROUPS 1
16164 _ACEOF
16166 { echo "$as_me:$LINENO: result: yes" >&5
16167 echo "${ECHO_T}yes" >&6; }
16168 else
16169 echo "$as_me: failed program was:" >&5
16170 sed 's/^/| /' conftest.$ac_ext >&5
16172 { echo "$as_me:$LINENO: result: no" >&5
16173 echo "${ECHO_T}no" >&6; }
16177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16179 # check for openpty and forkpty
16182 for ac_func in openpty
16184 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16185 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16186 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16187 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16188 echo $ECHO_N "(cached) $ECHO_C" >&6
16189 else
16190 cat >conftest.$ac_ext <<_ACEOF
16191 /* confdefs.h. */
16192 _ACEOF
16193 cat confdefs.h >>conftest.$ac_ext
16194 cat >>conftest.$ac_ext <<_ACEOF
16195 /* end confdefs.h. */
16196 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16197 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16198 #define $ac_func innocuous_$ac_func
16200 /* System header to define __stub macros and hopefully few prototypes,
16201 which can conflict with char $ac_func (); below.
16202 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16203 <limits.h> exists even on freestanding compilers. */
16205 #ifdef __STDC__
16206 # include <limits.h>
16207 #else
16208 # include <assert.h>
16209 #endif
16211 #undef $ac_func
16213 /* Override any GCC internal prototype to avoid an error.
16214 Use char because int might match the return type of a GCC
16215 builtin and then its argument prototype would still apply. */
16216 #ifdef __cplusplus
16217 extern "C"
16218 #endif
16219 char $ac_func ();
16220 /* The GNU C library defines this for functions which it implements
16221 to always fail with ENOSYS. Some functions are actually named
16222 something starting with __ and the normal name is an alias. */
16223 #if defined __stub_$ac_func || defined __stub___$ac_func
16224 choke me
16225 #endif
16228 main ()
16230 return $ac_func ();
16232 return 0;
16234 _ACEOF
16235 rm -f conftest.$ac_objext conftest$ac_exeext
16236 if { (ac_try="$ac_link"
16237 case "(($ac_try" in
16238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16239 *) ac_try_echo=$ac_try;;
16240 esac
16241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16242 (eval "$ac_link") 2>conftest.er1
16243 ac_status=$?
16244 grep -v '^ *+' conftest.er1 >conftest.err
16245 rm -f conftest.er1
16246 cat conftest.err >&5
16247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16248 (exit $ac_status); } && {
16249 test -z "$ac_c_werror_flag" ||
16250 test ! -s conftest.err
16251 } && test -s conftest$ac_exeext &&
16252 $as_test_x conftest$ac_exeext; then
16253 eval "$as_ac_var=yes"
16254 else
16255 echo "$as_me: failed program was:" >&5
16256 sed 's/^/| /' conftest.$ac_ext >&5
16258 eval "$as_ac_var=no"
16261 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16262 conftest$ac_exeext conftest.$ac_ext
16264 ac_res=`eval echo '${'$as_ac_var'}'`
16265 { echo "$as_me:$LINENO: result: $ac_res" >&5
16266 echo "${ECHO_T}$ac_res" >&6; }
16267 if test `eval echo '${'$as_ac_var'}'` = yes; then
16268 cat >>confdefs.h <<_ACEOF
16269 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16270 _ACEOF
16272 else
16273 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
16274 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
16275 if test "${ac_cv_lib_util_openpty+set}" = set; then
16276 echo $ECHO_N "(cached) $ECHO_C" >&6
16277 else
16278 ac_check_lib_save_LIBS=$LIBS
16279 LIBS="-lutil $LIBS"
16280 cat >conftest.$ac_ext <<_ACEOF
16281 /* confdefs.h. */
16282 _ACEOF
16283 cat confdefs.h >>conftest.$ac_ext
16284 cat >>conftest.$ac_ext <<_ACEOF
16285 /* end confdefs.h. */
16287 /* Override any GCC internal prototype to avoid an error.
16288 Use char because int might match the return type of a GCC
16289 builtin and then its argument prototype would still apply. */
16290 #ifdef __cplusplus
16291 extern "C"
16292 #endif
16293 char openpty ();
16295 main ()
16297 return openpty ();
16299 return 0;
16301 _ACEOF
16302 rm -f conftest.$ac_objext conftest$ac_exeext
16303 if { (ac_try="$ac_link"
16304 case "(($ac_try" in
16305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16306 *) ac_try_echo=$ac_try;;
16307 esac
16308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16309 (eval "$ac_link") 2>conftest.er1
16310 ac_status=$?
16311 grep -v '^ *+' conftest.er1 >conftest.err
16312 rm -f conftest.er1
16313 cat conftest.err >&5
16314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16315 (exit $ac_status); } && {
16316 test -z "$ac_c_werror_flag" ||
16317 test ! -s conftest.err
16318 } && test -s conftest$ac_exeext &&
16319 $as_test_x conftest$ac_exeext; then
16320 ac_cv_lib_util_openpty=yes
16321 else
16322 echo "$as_me: failed program was:" >&5
16323 sed 's/^/| /' conftest.$ac_ext >&5
16325 ac_cv_lib_util_openpty=no
16328 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16329 conftest$ac_exeext conftest.$ac_ext
16330 LIBS=$ac_check_lib_save_LIBS
16332 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
16333 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
16334 if test $ac_cv_lib_util_openpty = yes; then
16335 cat >>confdefs.h <<\_ACEOF
16336 #define HAVE_OPENPTY 1
16337 _ACEOF
16338 LIBS="$LIBS -lutil"
16339 else
16340 { echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
16341 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6; }
16342 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
16343 echo $ECHO_N "(cached) $ECHO_C" >&6
16344 else
16345 ac_check_lib_save_LIBS=$LIBS
16346 LIBS="-lbsd $LIBS"
16347 cat >conftest.$ac_ext <<_ACEOF
16348 /* confdefs.h. */
16349 _ACEOF
16350 cat confdefs.h >>conftest.$ac_ext
16351 cat >>conftest.$ac_ext <<_ACEOF
16352 /* end confdefs.h. */
16354 /* Override any GCC internal prototype to avoid an error.
16355 Use char because int might match the return type of a GCC
16356 builtin and then its argument prototype would still apply. */
16357 #ifdef __cplusplus
16358 extern "C"
16359 #endif
16360 char openpty ();
16362 main ()
16364 return openpty ();
16366 return 0;
16368 _ACEOF
16369 rm -f conftest.$ac_objext conftest$ac_exeext
16370 if { (ac_try="$ac_link"
16371 case "(($ac_try" in
16372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16373 *) ac_try_echo=$ac_try;;
16374 esac
16375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16376 (eval "$ac_link") 2>conftest.er1
16377 ac_status=$?
16378 grep -v '^ *+' conftest.er1 >conftest.err
16379 rm -f conftest.er1
16380 cat conftest.err >&5
16381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16382 (exit $ac_status); } && {
16383 test -z "$ac_c_werror_flag" ||
16384 test ! -s conftest.err
16385 } && test -s conftest$ac_exeext &&
16386 $as_test_x conftest$ac_exeext; then
16387 ac_cv_lib_bsd_openpty=yes
16388 else
16389 echo "$as_me: failed program was:" >&5
16390 sed 's/^/| /' conftest.$ac_ext >&5
16392 ac_cv_lib_bsd_openpty=no
16395 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16396 conftest$ac_exeext conftest.$ac_ext
16397 LIBS=$ac_check_lib_save_LIBS
16399 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
16400 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6; }
16401 if test $ac_cv_lib_bsd_openpty = yes; then
16402 cat >>confdefs.h <<\_ACEOF
16403 #define HAVE_OPENPTY 1
16404 _ACEOF
16405 LIBS="$LIBS -lbsd"
16413 done
16416 for ac_func in forkpty
16418 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16419 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16420 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16421 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16422 echo $ECHO_N "(cached) $ECHO_C" >&6
16423 else
16424 cat >conftest.$ac_ext <<_ACEOF
16425 /* confdefs.h. */
16426 _ACEOF
16427 cat confdefs.h >>conftest.$ac_ext
16428 cat >>conftest.$ac_ext <<_ACEOF
16429 /* end confdefs.h. */
16430 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16431 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16432 #define $ac_func innocuous_$ac_func
16434 /* System header to define __stub macros and hopefully few prototypes,
16435 which can conflict with char $ac_func (); below.
16436 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16437 <limits.h> exists even on freestanding compilers. */
16439 #ifdef __STDC__
16440 # include <limits.h>
16441 #else
16442 # include <assert.h>
16443 #endif
16445 #undef $ac_func
16447 /* Override any GCC internal prototype to avoid an error.
16448 Use char because int might match the return type of a GCC
16449 builtin and then its argument prototype would still apply. */
16450 #ifdef __cplusplus
16451 extern "C"
16452 #endif
16453 char $ac_func ();
16454 /* The GNU C library defines this for functions which it implements
16455 to always fail with ENOSYS. Some functions are actually named
16456 something starting with __ and the normal name is an alias. */
16457 #if defined __stub_$ac_func || defined __stub___$ac_func
16458 choke me
16459 #endif
16462 main ()
16464 return $ac_func ();
16466 return 0;
16468 _ACEOF
16469 rm -f conftest.$ac_objext conftest$ac_exeext
16470 if { (ac_try="$ac_link"
16471 case "(($ac_try" in
16472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16473 *) ac_try_echo=$ac_try;;
16474 esac
16475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16476 (eval "$ac_link") 2>conftest.er1
16477 ac_status=$?
16478 grep -v '^ *+' conftest.er1 >conftest.err
16479 rm -f conftest.er1
16480 cat conftest.err >&5
16481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16482 (exit $ac_status); } && {
16483 test -z "$ac_c_werror_flag" ||
16484 test ! -s conftest.err
16485 } && test -s conftest$ac_exeext &&
16486 $as_test_x conftest$ac_exeext; then
16487 eval "$as_ac_var=yes"
16488 else
16489 echo "$as_me: failed program was:" >&5
16490 sed 's/^/| /' conftest.$ac_ext >&5
16492 eval "$as_ac_var=no"
16495 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16496 conftest$ac_exeext conftest.$ac_ext
16498 ac_res=`eval echo '${'$as_ac_var'}'`
16499 { echo "$as_me:$LINENO: result: $ac_res" >&5
16500 echo "${ECHO_T}$ac_res" >&6; }
16501 if test `eval echo '${'$as_ac_var'}'` = yes; then
16502 cat >>confdefs.h <<_ACEOF
16503 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16504 _ACEOF
16506 else
16507 { echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
16508 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6; }
16509 if test "${ac_cv_lib_util_forkpty+set}" = set; then
16510 echo $ECHO_N "(cached) $ECHO_C" >&6
16511 else
16512 ac_check_lib_save_LIBS=$LIBS
16513 LIBS="-lutil $LIBS"
16514 cat >conftest.$ac_ext <<_ACEOF
16515 /* confdefs.h. */
16516 _ACEOF
16517 cat confdefs.h >>conftest.$ac_ext
16518 cat >>conftest.$ac_ext <<_ACEOF
16519 /* end confdefs.h. */
16521 /* Override any GCC internal prototype to avoid an error.
16522 Use char because int might match the return type of a GCC
16523 builtin and then its argument prototype would still apply. */
16524 #ifdef __cplusplus
16525 extern "C"
16526 #endif
16527 char forkpty ();
16529 main ()
16531 return forkpty ();
16533 return 0;
16535 _ACEOF
16536 rm -f conftest.$ac_objext conftest$ac_exeext
16537 if { (ac_try="$ac_link"
16538 case "(($ac_try" in
16539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16540 *) ac_try_echo=$ac_try;;
16541 esac
16542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16543 (eval "$ac_link") 2>conftest.er1
16544 ac_status=$?
16545 grep -v '^ *+' conftest.er1 >conftest.err
16546 rm -f conftest.er1
16547 cat conftest.err >&5
16548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16549 (exit $ac_status); } && {
16550 test -z "$ac_c_werror_flag" ||
16551 test ! -s conftest.err
16552 } && test -s conftest$ac_exeext &&
16553 $as_test_x conftest$ac_exeext; then
16554 ac_cv_lib_util_forkpty=yes
16555 else
16556 echo "$as_me: failed program was:" >&5
16557 sed 's/^/| /' conftest.$ac_ext >&5
16559 ac_cv_lib_util_forkpty=no
16562 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16563 conftest$ac_exeext conftest.$ac_ext
16564 LIBS=$ac_check_lib_save_LIBS
16566 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
16567 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6; }
16568 if test $ac_cv_lib_util_forkpty = yes; then
16569 cat >>confdefs.h <<\_ACEOF
16570 #define HAVE_FORKPTY 1
16571 _ACEOF
16572 LIBS="$LIBS -lutil"
16573 else
16574 { echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
16575 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6; }
16576 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
16577 echo $ECHO_N "(cached) $ECHO_C" >&6
16578 else
16579 ac_check_lib_save_LIBS=$LIBS
16580 LIBS="-lbsd $LIBS"
16581 cat >conftest.$ac_ext <<_ACEOF
16582 /* confdefs.h. */
16583 _ACEOF
16584 cat confdefs.h >>conftest.$ac_ext
16585 cat >>conftest.$ac_ext <<_ACEOF
16586 /* end confdefs.h. */
16588 /* Override any GCC internal prototype to avoid an error.
16589 Use char because int might match the return type of a GCC
16590 builtin and then its argument prototype would still apply. */
16591 #ifdef __cplusplus
16592 extern "C"
16593 #endif
16594 char forkpty ();
16596 main ()
16598 return forkpty ();
16600 return 0;
16602 _ACEOF
16603 rm -f conftest.$ac_objext conftest$ac_exeext
16604 if { (ac_try="$ac_link"
16605 case "(($ac_try" in
16606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16607 *) ac_try_echo=$ac_try;;
16608 esac
16609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16610 (eval "$ac_link") 2>conftest.er1
16611 ac_status=$?
16612 grep -v '^ *+' conftest.er1 >conftest.err
16613 rm -f conftest.er1
16614 cat conftest.err >&5
16615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16616 (exit $ac_status); } && {
16617 test -z "$ac_c_werror_flag" ||
16618 test ! -s conftest.err
16619 } && test -s conftest$ac_exeext &&
16620 $as_test_x conftest$ac_exeext; then
16621 ac_cv_lib_bsd_forkpty=yes
16622 else
16623 echo "$as_me: failed program was:" >&5
16624 sed 's/^/| /' conftest.$ac_ext >&5
16626 ac_cv_lib_bsd_forkpty=no
16629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16630 conftest$ac_exeext conftest.$ac_ext
16631 LIBS=$ac_check_lib_save_LIBS
16633 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
16634 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6; }
16635 if test $ac_cv_lib_bsd_forkpty = yes; then
16636 cat >>confdefs.h <<\_ACEOF
16637 #define HAVE_FORKPTY 1
16638 _ACEOF
16639 LIBS="$LIBS -lbsd"
16647 done
16650 # check for long file support functions
16657 for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
16659 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16660 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16661 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16662 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16663 echo $ECHO_N "(cached) $ECHO_C" >&6
16664 else
16665 cat >conftest.$ac_ext <<_ACEOF
16666 /* confdefs.h. */
16667 _ACEOF
16668 cat confdefs.h >>conftest.$ac_ext
16669 cat >>conftest.$ac_ext <<_ACEOF
16670 /* end confdefs.h. */
16671 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16672 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16673 #define $ac_func innocuous_$ac_func
16675 /* System header to define __stub macros and hopefully few prototypes,
16676 which can conflict with char $ac_func (); below.
16677 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16678 <limits.h> exists even on freestanding compilers. */
16680 #ifdef __STDC__
16681 # include <limits.h>
16682 #else
16683 # include <assert.h>
16684 #endif
16686 #undef $ac_func
16688 /* Override any GCC internal prototype to avoid an error.
16689 Use char because int might match the return type of a GCC
16690 builtin and then its argument prototype would still apply. */
16691 #ifdef __cplusplus
16692 extern "C"
16693 #endif
16694 char $ac_func ();
16695 /* The GNU C library defines this for functions which it implements
16696 to always fail with ENOSYS. Some functions are actually named
16697 something starting with __ and the normal name is an alias. */
16698 #if defined __stub_$ac_func || defined __stub___$ac_func
16699 choke me
16700 #endif
16703 main ()
16705 return $ac_func ();
16707 return 0;
16709 _ACEOF
16710 rm -f conftest.$ac_objext conftest$ac_exeext
16711 if { (ac_try="$ac_link"
16712 case "(($ac_try" in
16713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16714 *) ac_try_echo=$ac_try;;
16715 esac
16716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16717 (eval "$ac_link") 2>conftest.er1
16718 ac_status=$?
16719 grep -v '^ *+' conftest.er1 >conftest.err
16720 rm -f conftest.er1
16721 cat conftest.err >&5
16722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16723 (exit $ac_status); } && {
16724 test -z "$ac_c_werror_flag" ||
16725 test ! -s conftest.err
16726 } && test -s conftest$ac_exeext &&
16727 $as_test_x conftest$ac_exeext; then
16728 eval "$as_ac_var=yes"
16729 else
16730 echo "$as_me: failed program was:" >&5
16731 sed 's/^/| /' conftest.$ac_ext >&5
16733 eval "$as_ac_var=no"
16736 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16737 conftest$ac_exeext conftest.$ac_ext
16739 ac_res=`eval echo '${'$as_ac_var'}'`
16740 { echo "$as_me:$LINENO: result: $ac_res" >&5
16741 echo "${ECHO_T}$ac_res" >&6; }
16742 if test `eval echo '${'$as_ac_var'}'` = yes; then
16743 cat >>confdefs.h <<_ACEOF
16744 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16745 _ACEOF
16748 done
16756 for ac_func in dup2 getcwd strdup strerror memmove
16758 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16759 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16760 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16761 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16762 echo $ECHO_N "(cached) $ECHO_C" >&6
16763 else
16764 cat >conftest.$ac_ext <<_ACEOF
16765 /* confdefs.h. */
16766 _ACEOF
16767 cat confdefs.h >>conftest.$ac_ext
16768 cat >>conftest.$ac_ext <<_ACEOF
16769 /* end confdefs.h. */
16770 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16771 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16772 #define $ac_func innocuous_$ac_func
16774 /* System header to define __stub macros and hopefully few prototypes,
16775 which can conflict with char $ac_func (); below.
16776 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16777 <limits.h> exists even on freestanding compilers. */
16779 #ifdef __STDC__
16780 # include <limits.h>
16781 #else
16782 # include <assert.h>
16783 #endif
16785 #undef $ac_func
16787 /* Override any GCC internal prototype to avoid an error.
16788 Use char because int might match the return type of a GCC
16789 builtin and then its argument prototype would still apply. */
16790 #ifdef __cplusplus
16791 extern "C"
16792 #endif
16793 char $ac_func ();
16794 /* The GNU C library defines this for functions which it implements
16795 to always fail with ENOSYS. Some functions are actually named
16796 something starting with __ and the normal name is an alias. */
16797 #if defined __stub_$ac_func || defined __stub___$ac_func
16798 choke me
16799 #endif
16802 main ()
16804 return $ac_func ();
16806 return 0;
16808 _ACEOF
16809 rm -f conftest.$ac_objext conftest$ac_exeext
16810 if { (ac_try="$ac_link"
16811 case "(($ac_try" in
16812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16813 *) ac_try_echo=$ac_try;;
16814 esac
16815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16816 (eval "$ac_link") 2>conftest.er1
16817 ac_status=$?
16818 grep -v '^ *+' conftest.er1 >conftest.err
16819 rm -f conftest.er1
16820 cat conftest.err >&5
16821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16822 (exit $ac_status); } && {
16823 test -z "$ac_c_werror_flag" ||
16824 test ! -s conftest.err
16825 } && test -s conftest$ac_exeext &&
16826 $as_test_x conftest$ac_exeext; then
16827 eval "$as_ac_var=yes"
16828 else
16829 echo "$as_me: failed program was:" >&5
16830 sed 's/^/| /' conftest.$ac_ext >&5
16832 eval "$as_ac_var=no"
16835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16836 conftest$ac_exeext conftest.$ac_ext
16838 ac_res=`eval echo '${'$as_ac_var'}'`
16839 { echo "$as_me:$LINENO: result: $ac_res" >&5
16840 echo "${ECHO_T}$ac_res" >&6; }
16841 if test `eval echo '${'$as_ac_var'}'` = yes; then
16842 cat >>confdefs.h <<_ACEOF
16843 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16844 _ACEOF
16846 else
16847 case " $LIBOBJS " in
16848 *" $ac_func.$ac_objext "* ) ;;
16849 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
16851 esac
16854 done
16858 for ac_func in getpgrp
16860 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16861 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16862 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16863 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16864 echo $ECHO_N "(cached) $ECHO_C" >&6
16865 else
16866 cat >conftest.$ac_ext <<_ACEOF
16867 /* confdefs.h. */
16868 _ACEOF
16869 cat confdefs.h >>conftest.$ac_ext
16870 cat >>conftest.$ac_ext <<_ACEOF
16871 /* end confdefs.h. */
16872 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16873 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16874 #define $ac_func innocuous_$ac_func
16876 /* System header to define __stub macros and hopefully few prototypes,
16877 which can conflict with char $ac_func (); below.
16878 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16879 <limits.h> exists even on freestanding compilers. */
16881 #ifdef __STDC__
16882 # include <limits.h>
16883 #else
16884 # include <assert.h>
16885 #endif
16887 #undef $ac_func
16889 /* Override any GCC internal prototype to avoid an error.
16890 Use char because int might match the return type of a GCC
16891 builtin and then its argument prototype would still apply. */
16892 #ifdef __cplusplus
16893 extern "C"
16894 #endif
16895 char $ac_func ();
16896 /* The GNU C library defines this for functions which it implements
16897 to always fail with ENOSYS. Some functions are actually named
16898 something starting with __ and the normal name is an alias. */
16899 #if defined __stub_$ac_func || defined __stub___$ac_func
16900 choke me
16901 #endif
16904 main ()
16906 return $ac_func ();
16908 return 0;
16910 _ACEOF
16911 rm -f conftest.$ac_objext conftest$ac_exeext
16912 if { (ac_try="$ac_link"
16913 case "(($ac_try" in
16914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16915 *) ac_try_echo=$ac_try;;
16916 esac
16917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16918 (eval "$ac_link") 2>conftest.er1
16919 ac_status=$?
16920 grep -v '^ *+' conftest.er1 >conftest.err
16921 rm -f conftest.er1
16922 cat conftest.err >&5
16923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16924 (exit $ac_status); } && {
16925 test -z "$ac_c_werror_flag" ||
16926 test ! -s conftest.err
16927 } && test -s conftest$ac_exeext &&
16928 $as_test_x conftest$ac_exeext; then
16929 eval "$as_ac_var=yes"
16930 else
16931 echo "$as_me: failed program was:" >&5
16932 sed 's/^/| /' conftest.$ac_ext >&5
16934 eval "$as_ac_var=no"
16937 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16938 conftest$ac_exeext conftest.$ac_ext
16940 ac_res=`eval echo '${'$as_ac_var'}'`
16941 { echo "$as_me:$LINENO: result: $ac_res" >&5
16942 echo "${ECHO_T}$ac_res" >&6; }
16943 if test `eval echo '${'$as_ac_var'}'` = yes; then
16944 cat >>confdefs.h <<_ACEOF
16945 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16946 _ACEOF
16947 cat >conftest.$ac_ext <<_ACEOF
16948 /* confdefs.h. */
16949 _ACEOF
16950 cat confdefs.h >>conftest.$ac_ext
16951 cat >>conftest.$ac_ext <<_ACEOF
16952 /* end confdefs.h. */
16953 #include <unistd.h>
16955 main ()
16957 getpgrp(0);
16959 return 0;
16961 _ACEOF
16962 rm -f conftest.$ac_objext
16963 if { (ac_try="$ac_compile"
16964 case "(($ac_try" in
16965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16966 *) ac_try_echo=$ac_try;;
16967 esac
16968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16969 (eval "$ac_compile") 2>conftest.er1
16970 ac_status=$?
16971 grep -v '^ *+' conftest.er1 >conftest.err
16972 rm -f conftest.er1
16973 cat conftest.err >&5
16974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16975 (exit $ac_status); } && {
16976 test -z "$ac_c_werror_flag" ||
16977 test ! -s conftest.err
16978 } && test -s conftest.$ac_objext; then
16980 cat >>confdefs.h <<\_ACEOF
16981 #define GETPGRP_HAVE_ARG 1
16982 _ACEOF
16985 else
16986 echo "$as_me: failed program was:" >&5
16987 sed 's/^/| /' conftest.$ac_ext >&5
16992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16995 done
16998 for ac_func in setpgrp
17000 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17001 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17002 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17003 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17004 echo $ECHO_N "(cached) $ECHO_C" >&6
17005 else
17006 cat >conftest.$ac_ext <<_ACEOF
17007 /* confdefs.h. */
17008 _ACEOF
17009 cat confdefs.h >>conftest.$ac_ext
17010 cat >>conftest.$ac_ext <<_ACEOF
17011 /* end confdefs.h. */
17012 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17013 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17014 #define $ac_func innocuous_$ac_func
17016 /* System header to define __stub macros and hopefully few prototypes,
17017 which can conflict with char $ac_func (); below.
17018 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17019 <limits.h> exists even on freestanding compilers. */
17021 #ifdef __STDC__
17022 # include <limits.h>
17023 #else
17024 # include <assert.h>
17025 #endif
17027 #undef $ac_func
17029 /* Override any GCC internal prototype to avoid an error.
17030 Use char because int might match the return type of a GCC
17031 builtin and then its argument prototype would still apply. */
17032 #ifdef __cplusplus
17033 extern "C"
17034 #endif
17035 char $ac_func ();
17036 /* The GNU C library defines this for functions which it implements
17037 to always fail with ENOSYS. Some functions are actually named
17038 something starting with __ and the normal name is an alias. */
17039 #if defined __stub_$ac_func || defined __stub___$ac_func
17040 choke me
17041 #endif
17044 main ()
17046 return $ac_func ();
17048 return 0;
17050 _ACEOF
17051 rm -f conftest.$ac_objext conftest$ac_exeext
17052 if { (ac_try="$ac_link"
17053 case "(($ac_try" in
17054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17055 *) ac_try_echo=$ac_try;;
17056 esac
17057 eval "echo \"\$as_me:$LINENO: $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 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 $as_test_x conftest$ac_exeext; then
17069 eval "$as_ac_var=yes"
17070 else
17071 echo "$as_me: failed program was:" >&5
17072 sed 's/^/| /' conftest.$ac_ext >&5
17074 eval "$as_ac_var=no"
17077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17078 conftest$ac_exeext conftest.$ac_ext
17080 ac_res=`eval echo '${'$as_ac_var'}'`
17081 { echo "$as_me:$LINENO: result: $ac_res" >&5
17082 echo "${ECHO_T}$ac_res" >&6; }
17083 if test `eval echo '${'$as_ac_var'}'` = yes; then
17084 cat >>confdefs.h <<_ACEOF
17085 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17086 _ACEOF
17087 cat >conftest.$ac_ext <<_ACEOF
17088 /* confdefs.h. */
17089 _ACEOF
17090 cat confdefs.h >>conftest.$ac_ext
17091 cat >>conftest.$ac_ext <<_ACEOF
17092 /* end confdefs.h. */
17093 #include <unistd.h>
17095 main ()
17097 setpgrp(0,0);
17099 return 0;
17101 _ACEOF
17102 rm -f conftest.$ac_objext
17103 if { (ac_try="$ac_compile"
17104 case "(($ac_try" in
17105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17106 *) ac_try_echo=$ac_try;;
17107 esac
17108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17109 (eval "$ac_compile") 2>conftest.er1
17110 ac_status=$?
17111 grep -v '^ *+' conftest.er1 >conftest.err
17112 rm -f conftest.er1
17113 cat conftest.err >&5
17114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17115 (exit $ac_status); } && {
17116 test -z "$ac_c_werror_flag" ||
17117 test ! -s conftest.err
17118 } && test -s conftest.$ac_objext; then
17120 cat >>confdefs.h <<\_ACEOF
17121 #define SETPGRP_HAVE_ARG 1
17122 _ACEOF
17125 else
17126 echo "$as_me: failed program was:" >&5
17127 sed 's/^/| /' conftest.$ac_ext >&5
17132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17135 done
17138 for ac_func in gettimeofday
17140 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17141 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17142 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17143 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17144 echo $ECHO_N "(cached) $ECHO_C" >&6
17145 else
17146 cat >conftest.$ac_ext <<_ACEOF
17147 /* confdefs.h. */
17148 _ACEOF
17149 cat confdefs.h >>conftest.$ac_ext
17150 cat >>conftest.$ac_ext <<_ACEOF
17151 /* end confdefs.h. */
17152 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17153 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17154 #define $ac_func innocuous_$ac_func
17156 /* System header to define __stub macros and hopefully few prototypes,
17157 which can conflict with char $ac_func (); below.
17158 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17159 <limits.h> exists even on freestanding compilers. */
17161 #ifdef __STDC__
17162 # include <limits.h>
17163 #else
17164 # include <assert.h>
17165 #endif
17167 #undef $ac_func
17169 /* Override any GCC internal prototype to avoid an error.
17170 Use char because int might match the return type of a GCC
17171 builtin and then its argument prototype would still apply. */
17172 #ifdef __cplusplus
17173 extern "C"
17174 #endif
17175 char $ac_func ();
17176 /* The GNU C library defines this for functions which it implements
17177 to always fail with ENOSYS. Some functions are actually named
17178 something starting with __ and the normal name is an alias. */
17179 #if defined __stub_$ac_func || defined __stub___$ac_func
17180 choke me
17181 #endif
17184 main ()
17186 return $ac_func ();
17188 return 0;
17190 _ACEOF
17191 rm -f conftest.$ac_objext conftest$ac_exeext
17192 if { (ac_try="$ac_link"
17193 case "(($ac_try" in
17194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17195 *) ac_try_echo=$ac_try;;
17196 esac
17197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17198 (eval "$ac_link") 2>conftest.er1
17199 ac_status=$?
17200 grep -v '^ *+' conftest.er1 >conftest.err
17201 rm -f conftest.er1
17202 cat conftest.err >&5
17203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17204 (exit $ac_status); } && {
17205 test -z "$ac_c_werror_flag" ||
17206 test ! -s conftest.err
17207 } && test -s conftest$ac_exeext &&
17208 $as_test_x conftest$ac_exeext; then
17209 eval "$as_ac_var=yes"
17210 else
17211 echo "$as_me: failed program was:" >&5
17212 sed 's/^/| /' conftest.$ac_ext >&5
17214 eval "$as_ac_var=no"
17217 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17218 conftest$ac_exeext conftest.$ac_ext
17220 ac_res=`eval echo '${'$as_ac_var'}'`
17221 { echo "$as_me:$LINENO: result: $ac_res" >&5
17222 echo "${ECHO_T}$ac_res" >&6; }
17223 if test `eval echo '${'$as_ac_var'}'` = yes; then
17224 cat >>confdefs.h <<_ACEOF
17225 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17226 _ACEOF
17227 cat >conftest.$ac_ext <<_ACEOF
17228 /* confdefs.h. */
17229 _ACEOF
17230 cat confdefs.h >>conftest.$ac_ext
17231 cat >>conftest.$ac_ext <<_ACEOF
17232 /* end confdefs.h. */
17233 #include <sys/time.h>
17235 main ()
17237 gettimeofday((struct timeval*)0,(struct timezone*)0);
17239 return 0;
17241 _ACEOF
17242 rm -f conftest.$ac_objext
17243 if { (ac_try="$ac_compile"
17244 case "(($ac_try" in
17245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17246 *) ac_try_echo=$ac_try;;
17247 esac
17248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17249 (eval "$ac_compile") 2>conftest.er1
17250 ac_status=$?
17251 grep -v '^ *+' conftest.er1 >conftest.err
17252 rm -f conftest.er1
17253 cat conftest.err >&5
17254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17255 (exit $ac_status); } && {
17256 test -z "$ac_c_werror_flag" ||
17257 test ! -s conftest.err
17258 } && test -s conftest.$ac_objext; then
17260 else
17261 echo "$as_me: failed program was:" >&5
17262 sed 's/^/| /' conftest.$ac_ext >&5
17265 cat >>confdefs.h <<\_ACEOF
17266 #define GETTIMEOFDAY_NO_TZ 1
17267 _ACEOF
17272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17275 done
17278 { echo "$as_me:$LINENO: checking for major" >&5
17279 echo $ECHO_N "checking for major... $ECHO_C" >&6; }
17280 cat >conftest.$ac_ext <<_ACEOF
17281 /* confdefs.h. */
17282 _ACEOF
17283 cat confdefs.h >>conftest.$ac_ext
17284 cat >>conftest.$ac_ext <<_ACEOF
17285 /* end confdefs.h. */
17287 #if defined(MAJOR_IN_MKDEV)
17288 #include <sys/mkdev.h>
17289 #elif defined(MAJOR_IN_SYSMACROS)
17290 #include <sys/sysmacros.h>
17291 #else
17292 #include <sys/types.h>
17293 #endif
17296 main ()
17299 makedev(major(0),minor(0));
17302 return 0;
17304 _ACEOF
17305 rm -f conftest.$ac_objext conftest$ac_exeext
17306 if { (ac_try="$ac_link"
17307 case "(($ac_try" in
17308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17309 *) ac_try_echo=$ac_try;;
17310 esac
17311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17312 (eval "$ac_link") 2>conftest.er1
17313 ac_status=$?
17314 grep -v '^ *+' conftest.er1 >conftest.err
17315 rm -f conftest.er1
17316 cat conftest.err >&5
17317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17318 (exit $ac_status); } && {
17319 test -z "$ac_c_werror_flag" ||
17320 test ! -s conftest.err
17321 } && test -s conftest$ac_exeext &&
17322 $as_test_x conftest$ac_exeext; then
17325 cat >>confdefs.h <<\_ACEOF
17326 #define HAVE_DEVICE_MACROS 1
17327 _ACEOF
17329 { echo "$as_me:$LINENO: result: yes" >&5
17330 echo "${ECHO_T}yes" >&6; }
17332 else
17333 echo "$as_me: failed program was:" >&5
17334 sed 's/^/| /' conftest.$ac_ext >&5
17337 { echo "$as_me:$LINENO: result: no" >&5
17338 echo "${ECHO_T}no" >&6; }
17342 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17343 conftest$ac_exeext conftest.$ac_ext
17345 # On OSF/1 V5.1, getaddrinfo is available, but a define
17346 # for [no]getaddrinfo in netdb.h.
17347 { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
17348 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
17349 cat >conftest.$ac_ext <<_ACEOF
17350 /* confdefs.h. */
17351 _ACEOF
17352 cat confdefs.h >>conftest.$ac_ext
17353 cat >>conftest.$ac_ext <<_ACEOF
17354 /* end confdefs.h. */
17356 #include <sys/types.h>
17357 #include <sys/socket.h>
17358 #include <netdb.h>
17359 #include <stdio.h>
17362 main ()
17365 getaddrinfo(NULL, NULL, NULL, NULL);
17368 return 0;
17370 _ACEOF
17371 rm -f conftest.$ac_objext conftest$ac_exeext
17372 if { (ac_try="$ac_link"
17373 case "(($ac_try" in
17374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17375 *) ac_try_echo=$ac_try;;
17376 esac
17377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17378 (eval "$ac_link") 2>conftest.er1
17379 ac_status=$?
17380 grep -v '^ *+' conftest.er1 >conftest.err
17381 rm -f conftest.er1
17382 cat conftest.err >&5
17383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17384 (exit $ac_status); } && {
17385 test -z "$ac_c_werror_flag" ||
17386 test ! -s conftest.err
17387 } && test -s conftest$ac_exeext &&
17388 $as_test_x conftest$ac_exeext; then
17390 { echo "$as_me:$LINENO: result: yes" >&5
17391 echo "${ECHO_T}yes" >&6; }
17392 { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
17393 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
17394 if test "$cross_compiling" = yes; then
17395 { echo "$as_me:$LINENO: result: buggy" >&5
17396 echo "${ECHO_T}buggy" >&6; }
17397 buggygetaddrinfo=yes
17398 else
17399 cat >conftest.$ac_ext <<_ACEOF
17400 /* confdefs.h. */
17401 _ACEOF
17402 cat confdefs.h >>conftest.$ac_ext
17403 cat >>conftest.$ac_ext <<_ACEOF
17404 /* end confdefs.h. */
17406 #include <sys/types.h>
17407 #include <netdb.h>
17408 #include <string.h>
17409 #include <sys/socket.h>
17410 #include <netinet/in.h>
17412 main()
17414 int passive, gaierr, inet4 = 0, inet6 = 0;
17415 struct addrinfo hints, *ai, *aitop;
17416 char straddr[INET6_ADDRSTRLEN], strport[16];
17418 for (passive = 0; passive <= 1; passive++) {
17419 memset(&hints, 0, sizeof(hints));
17420 hints.ai_family = AF_UNSPEC;
17421 hints.ai_flags = passive ? AI_PASSIVE : 0;
17422 hints.ai_socktype = SOCK_STREAM;
17423 hints.ai_protocol = IPPROTO_TCP;
17424 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
17425 (void)gai_strerror(gaierr);
17426 goto bad;
17428 for (ai = aitop; ai; ai = ai->ai_next) {
17429 if (ai->ai_addr == NULL ||
17430 ai->ai_addrlen == 0 ||
17431 getnameinfo(ai->ai_addr, ai->ai_addrlen,
17432 straddr, sizeof(straddr), strport, sizeof(strport),
17433 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
17434 goto bad;
17436 switch (ai->ai_family) {
17437 case AF_INET:
17438 if (strcmp(strport, "54321") != 0) {
17439 goto bad;
17441 if (passive) {
17442 if (strcmp(straddr, "0.0.0.0") != 0) {
17443 goto bad;
17445 } else {
17446 if (strcmp(straddr, "127.0.0.1") != 0) {
17447 goto bad;
17450 inet4++;
17451 break;
17452 case AF_INET6:
17453 if (strcmp(strport, "54321") != 0) {
17454 goto bad;
17456 if (passive) {
17457 if (strcmp(straddr, "::") != 0) {
17458 goto bad;
17460 } else {
17461 if (strcmp(straddr, "::1") != 0) {
17462 goto bad;
17465 inet6++;
17466 break;
17467 case AF_UNSPEC:
17468 goto bad;
17469 break;
17470 default:
17471 /* another family support? */
17472 break;
17477 if (!(inet4 == 0 || inet4 == 2))
17478 goto bad;
17479 if (!(inet6 == 0 || inet6 == 2))
17480 goto bad;
17482 if (aitop)
17483 freeaddrinfo(aitop);
17484 exit(0);
17486 bad:
17487 if (aitop)
17488 freeaddrinfo(aitop);
17489 exit(1);
17492 _ACEOF
17493 rm -f conftest$ac_exeext
17494 if { (ac_try="$ac_link"
17495 case "(($ac_try" in
17496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17497 *) ac_try_echo=$ac_try;;
17498 esac
17499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17500 (eval "$ac_link") 2>&5
17501 ac_status=$?
17502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17503 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17504 { (case "(($ac_try" in
17505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17506 *) ac_try_echo=$ac_try;;
17507 esac
17508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17509 (eval "$ac_try") 2>&5
17510 ac_status=$?
17511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17512 (exit $ac_status); }; }; then
17513 { echo "$as_me:$LINENO: result: good" >&5
17514 echo "${ECHO_T}good" >&6; }
17515 buggygetaddrinfo=no
17516 else
17517 echo "$as_me: program exited with status $ac_status" >&5
17518 echo "$as_me: failed program was:" >&5
17519 sed 's/^/| /' conftest.$ac_ext >&5
17521 ( exit $ac_status )
17522 { echo "$as_me:$LINENO: result: buggy" >&5
17523 echo "${ECHO_T}buggy" >&6; }
17524 buggygetaddrinfo=yes
17526 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17530 else
17531 echo "$as_me: failed program was:" >&5
17532 sed 's/^/| /' conftest.$ac_ext >&5
17535 { echo "$as_me:$LINENO: result: no" >&5
17536 echo "${ECHO_T}no" >&6; }
17537 buggygetaddrinfo=yes
17541 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17542 conftest$ac_exeext conftest.$ac_ext
17544 if test "$buggygetaddrinfo" = "yes"; then
17545 if test "$ipv6" = "yes"; then
17546 echo 'Fatal: You must get working getaddrinfo() function.'
17547 echo ' or you can specify "--disable-ipv6"'.
17548 exit 1
17550 else
17552 cat >>confdefs.h <<\_ACEOF
17553 #define HAVE_GETADDRINFO 1
17554 _ACEOF
17558 for ac_func in getnameinfo
17560 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17561 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17562 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17563 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17564 echo $ECHO_N "(cached) $ECHO_C" >&6
17565 else
17566 cat >conftest.$ac_ext <<_ACEOF
17567 /* confdefs.h. */
17568 _ACEOF
17569 cat confdefs.h >>conftest.$ac_ext
17570 cat >>conftest.$ac_ext <<_ACEOF
17571 /* end confdefs.h. */
17572 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17573 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17574 #define $ac_func innocuous_$ac_func
17576 /* System header to define __stub macros and hopefully few prototypes,
17577 which can conflict with char $ac_func (); below.
17578 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17579 <limits.h> exists even on freestanding compilers. */
17581 #ifdef __STDC__
17582 # include <limits.h>
17583 #else
17584 # include <assert.h>
17585 #endif
17587 #undef $ac_func
17589 /* Override any GCC internal prototype to avoid an error.
17590 Use char because int might match the return type of a GCC
17591 builtin and then its argument prototype would still apply. */
17592 #ifdef __cplusplus
17593 extern "C"
17594 #endif
17595 char $ac_func ();
17596 /* The GNU C library defines this for functions which it implements
17597 to always fail with ENOSYS. Some functions are actually named
17598 something starting with __ and the normal name is an alias. */
17599 #if defined __stub_$ac_func || defined __stub___$ac_func
17600 choke me
17601 #endif
17604 main ()
17606 return $ac_func ();
17608 return 0;
17610 _ACEOF
17611 rm -f conftest.$ac_objext conftest$ac_exeext
17612 if { (ac_try="$ac_link"
17613 case "(($ac_try" in
17614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17615 *) ac_try_echo=$ac_try;;
17616 esac
17617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17618 (eval "$ac_link") 2>conftest.er1
17619 ac_status=$?
17620 grep -v '^ *+' conftest.er1 >conftest.err
17621 rm -f conftest.er1
17622 cat conftest.err >&5
17623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17624 (exit $ac_status); } && {
17625 test -z "$ac_c_werror_flag" ||
17626 test ! -s conftest.err
17627 } && test -s conftest$ac_exeext &&
17628 $as_test_x conftest$ac_exeext; then
17629 eval "$as_ac_var=yes"
17630 else
17631 echo "$as_me: failed program was:" >&5
17632 sed 's/^/| /' conftest.$ac_ext >&5
17634 eval "$as_ac_var=no"
17637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17638 conftest$ac_exeext conftest.$ac_ext
17640 ac_res=`eval echo '${'$as_ac_var'}'`
17641 { echo "$as_me:$LINENO: result: $ac_res" >&5
17642 echo "${ECHO_T}$ac_res" >&6; }
17643 if test `eval echo '${'$as_ac_var'}'` = yes; then
17644 cat >>confdefs.h <<_ACEOF
17645 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17646 _ACEOF
17649 done
17652 # checks for structures
17653 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
17654 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
17655 if test "${ac_cv_header_time+set}" = set; then
17656 echo $ECHO_N "(cached) $ECHO_C" >&6
17657 else
17658 cat >conftest.$ac_ext <<_ACEOF
17659 /* confdefs.h. */
17660 _ACEOF
17661 cat confdefs.h >>conftest.$ac_ext
17662 cat >>conftest.$ac_ext <<_ACEOF
17663 /* end confdefs.h. */
17664 #include <sys/types.h>
17665 #include <sys/time.h>
17666 #include <time.h>
17669 main ()
17671 if ((struct tm *) 0)
17672 return 0;
17674 return 0;
17676 _ACEOF
17677 rm -f conftest.$ac_objext
17678 if { (ac_try="$ac_compile"
17679 case "(($ac_try" in
17680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17681 *) ac_try_echo=$ac_try;;
17682 esac
17683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17684 (eval "$ac_compile") 2>conftest.er1
17685 ac_status=$?
17686 grep -v '^ *+' conftest.er1 >conftest.err
17687 rm -f conftest.er1
17688 cat conftest.err >&5
17689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17690 (exit $ac_status); } && {
17691 test -z "$ac_c_werror_flag" ||
17692 test ! -s conftest.err
17693 } && test -s conftest.$ac_objext; then
17694 ac_cv_header_time=yes
17695 else
17696 echo "$as_me: failed program was:" >&5
17697 sed 's/^/| /' conftest.$ac_ext >&5
17699 ac_cv_header_time=no
17702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17704 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
17705 echo "${ECHO_T}$ac_cv_header_time" >&6; }
17706 if test $ac_cv_header_time = yes; then
17708 cat >>confdefs.h <<\_ACEOF
17709 #define TIME_WITH_SYS_TIME 1
17710 _ACEOF
17714 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17715 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17716 if test "${ac_cv_struct_tm+set}" = set; then
17717 echo $ECHO_N "(cached) $ECHO_C" >&6
17718 else
17719 cat >conftest.$ac_ext <<_ACEOF
17720 /* confdefs.h. */
17721 _ACEOF
17722 cat confdefs.h >>conftest.$ac_ext
17723 cat >>conftest.$ac_ext <<_ACEOF
17724 /* end confdefs.h. */
17725 #include <sys/types.h>
17726 #include <time.h>
17729 main ()
17731 struct tm tm;
17732 int *p = &tm.tm_sec;
17733 return !p;
17735 return 0;
17737 _ACEOF
17738 rm -f conftest.$ac_objext
17739 if { (ac_try="$ac_compile"
17740 case "(($ac_try" in
17741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17742 *) ac_try_echo=$ac_try;;
17743 esac
17744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17745 (eval "$ac_compile") 2>conftest.er1
17746 ac_status=$?
17747 grep -v '^ *+' conftest.er1 >conftest.err
17748 rm -f conftest.er1
17749 cat conftest.err >&5
17750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17751 (exit $ac_status); } && {
17752 test -z "$ac_c_werror_flag" ||
17753 test ! -s conftest.err
17754 } && test -s conftest.$ac_objext; then
17755 ac_cv_struct_tm=time.h
17756 else
17757 echo "$as_me: failed program was:" >&5
17758 sed 's/^/| /' conftest.$ac_ext >&5
17760 ac_cv_struct_tm=sys/time.h
17763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17765 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17766 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17767 if test $ac_cv_struct_tm = sys/time.h; then
17769 cat >>confdefs.h <<\_ACEOF
17770 #define TM_IN_SYS_TIME 1
17771 _ACEOF
17775 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
17776 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
17777 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
17778 echo $ECHO_N "(cached) $ECHO_C" >&6
17779 else
17780 cat >conftest.$ac_ext <<_ACEOF
17781 /* confdefs.h. */
17782 _ACEOF
17783 cat confdefs.h >>conftest.$ac_ext
17784 cat >>conftest.$ac_ext <<_ACEOF
17785 /* end confdefs.h. */
17786 #include <sys/types.h>
17787 #include <$ac_cv_struct_tm>
17791 main ()
17793 static struct tm ac_aggr;
17794 if (ac_aggr.tm_zone)
17795 return 0;
17797 return 0;
17799 _ACEOF
17800 rm -f conftest.$ac_objext
17801 if { (ac_try="$ac_compile"
17802 case "(($ac_try" in
17803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17804 *) ac_try_echo=$ac_try;;
17805 esac
17806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17807 (eval "$ac_compile") 2>conftest.er1
17808 ac_status=$?
17809 grep -v '^ *+' conftest.er1 >conftest.err
17810 rm -f conftest.er1
17811 cat conftest.err >&5
17812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17813 (exit $ac_status); } && {
17814 test -z "$ac_c_werror_flag" ||
17815 test ! -s conftest.err
17816 } && test -s conftest.$ac_objext; then
17817 ac_cv_member_struct_tm_tm_zone=yes
17818 else
17819 echo "$as_me: failed program was:" >&5
17820 sed 's/^/| /' conftest.$ac_ext >&5
17822 cat >conftest.$ac_ext <<_ACEOF
17823 /* confdefs.h. */
17824 _ACEOF
17825 cat confdefs.h >>conftest.$ac_ext
17826 cat >>conftest.$ac_ext <<_ACEOF
17827 /* end confdefs.h. */
17828 #include <sys/types.h>
17829 #include <$ac_cv_struct_tm>
17833 main ()
17835 static struct tm ac_aggr;
17836 if (sizeof ac_aggr.tm_zone)
17837 return 0;
17839 return 0;
17841 _ACEOF
17842 rm -f conftest.$ac_objext
17843 if { (ac_try="$ac_compile"
17844 case "(($ac_try" in
17845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17846 *) ac_try_echo=$ac_try;;
17847 esac
17848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17849 (eval "$ac_compile") 2>conftest.er1
17850 ac_status=$?
17851 grep -v '^ *+' conftest.er1 >conftest.err
17852 rm -f conftest.er1
17853 cat conftest.err >&5
17854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17855 (exit $ac_status); } && {
17856 test -z "$ac_c_werror_flag" ||
17857 test ! -s conftest.err
17858 } && test -s conftest.$ac_objext; then
17859 ac_cv_member_struct_tm_tm_zone=yes
17860 else
17861 echo "$as_me: failed program was:" >&5
17862 sed 's/^/| /' conftest.$ac_ext >&5
17864 ac_cv_member_struct_tm_tm_zone=no
17867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17872 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
17873 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
17874 if test $ac_cv_member_struct_tm_tm_zone = yes; then
17876 cat >>confdefs.h <<_ACEOF
17877 #define HAVE_STRUCT_TM_TM_ZONE 1
17878 _ACEOF
17883 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
17885 cat >>confdefs.h <<\_ACEOF
17886 #define HAVE_TM_ZONE 1
17887 _ACEOF
17889 else
17890 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
17891 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
17892 if test "${ac_cv_have_decl_tzname+set}" = set; then
17893 echo $ECHO_N "(cached) $ECHO_C" >&6
17894 else
17895 cat >conftest.$ac_ext <<_ACEOF
17896 /* confdefs.h. */
17897 _ACEOF
17898 cat confdefs.h >>conftest.$ac_ext
17899 cat >>conftest.$ac_ext <<_ACEOF
17900 /* end confdefs.h. */
17901 #include <time.h>
17904 main ()
17906 #ifndef tzname
17907 (void) tzname;
17908 #endif
17911 return 0;
17913 _ACEOF
17914 rm -f conftest.$ac_objext
17915 if { (ac_try="$ac_compile"
17916 case "(($ac_try" in
17917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17918 *) ac_try_echo=$ac_try;;
17919 esac
17920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17921 (eval "$ac_compile") 2>conftest.er1
17922 ac_status=$?
17923 grep -v '^ *+' conftest.er1 >conftest.err
17924 rm -f conftest.er1
17925 cat conftest.err >&5
17926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17927 (exit $ac_status); } && {
17928 test -z "$ac_c_werror_flag" ||
17929 test ! -s conftest.err
17930 } && test -s conftest.$ac_objext; then
17931 ac_cv_have_decl_tzname=yes
17932 else
17933 echo "$as_me: failed program was:" >&5
17934 sed 's/^/| /' conftest.$ac_ext >&5
17936 ac_cv_have_decl_tzname=no
17939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17941 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
17942 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
17943 if test $ac_cv_have_decl_tzname = yes; then
17945 cat >>confdefs.h <<_ACEOF
17946 #define HAVE_DECL_TZNAME 1
17947 _ACEOF
17950 else
17951 cat >>confdefs.h <<_ACEOF
17952 #define HAVE_DECL_TZNAME 0
17953 _ACEOF
17959 { echo "$as_me:$LINENO: checking for tzname" >&5
17960 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
17961 if test "${ac_cv_var_tzname+set}" = set; then
17962 echo $ECHO_N "(cached) $ECHO_C" >&6
17963 else
17964 cat >conftest.$ac_ext <<_ACEOF
17965 /* confdefs.h. */
17966 _ACEOF
17967 cat confdefs.h >>conftest.$ac_ext
17968 cat >>conftest.$ac_ext <<_ACEOF
17969 /* end confdefs.h. */
17970 #include <time.h>
17971 #if !HAVE_DECL_TZNAME
17972 extern char *tzname[];
17973 #endif
17976 main ()
17978 return tzname[0][0];
17980 return 0;
17982 _ACEOF
17983 rm -f conftest.$ac_objext conftest$ac_exeext
17984 if { (ac_try="$ac_link"
17985 case "(($ac_try" in
17986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17987 *) ac_try_echo=$ac_try;;
17988 esac
17989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17990 (eval "$ac_link") 2>conftest.er1
17991 ac_status=$?
17992 grep -v '^ *+' conftest.er1 >conftest.err
17993 rm -f conftest.er1
17994 cat conftest.err >&5
17995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17996 (exit $ac_status); } && {
17997 test -z "$ac_c_werror_flag" ||
17998 test ! -s conftest.err
17999 } && test -s conftest$ac_exeext &&
18000 $as_test_x conftest$ac_exeext; then
18001 ac_cv_var_tzname=yes
18002 else
18003 echo "$as_me: failed program was:" >&5
18004 sed 's/^/| /' conftest.$ac_ext >&5
18006 ac_cv_var_tzname=no
18009 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18010 conftest$ac_exeext conftest.$ac_ext
18012 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
18013 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
18014 if test $ac_cv_var_tzname = yes; then
18016 cat >>confdefs.h <<\_ACEOF
18017 #define HAVE_TZNAME 1
18018 _ACEOF
18023 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
18024 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
18025 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
18026 echo $ECHO_N "(cached) $ECHO_C" >&6
18027 else
18028 cat >conftest.$ac_ext <<_ACEOF
18029 /* confdefs.h. */
18030 _ACEOF
18031 cat confdefs.h >>conftest.$ac_ext
18032 cat >>conftest.$ac_ext <<_ACEOF
18033 /* end confdefs.h. */
18034 $ac_includes_default
18036 main ()
18038 static struct stat ac_aggr;
18039 if (ac_aggr.st_rdev)
18040 return 0;
18042 return 0;
18044 _ACEOF
18045 rm -f conftest.$ac_objext
18046 if { (ac_try="$ac_compile"
18047 case "(($ac_try" in
18048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18049 *) ac_try_echo=$ac_try;;
18050 esac
18051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18052 (eval "$ac_compile") 2>conftest.er1
18053 ac_status=$?
18054 grep -v '^ *+' conftest.er1 >conftest.err
18055 rm -f conftest.er1
18056 cat conftest.err >&5
18057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18058 (exit $ac_status); } && {
18059 test -z "$ac_c_werror_flag" ||
18060 test ! -s conftest.err
18061 } && test -s conftest.$ac_objext; then
18062 ac_cv_member_struct_stat_st_rdev=yes
18063 else
18064 echo "$as_me: failed program was:" >&5
18065 sed 's/^/| /' conftest.$ac_ext >&5
18067 cat >conftest.$ac_ext <<_ACEOF
18068 /* confdefs.h. */
18069 _ACEOF
18070 cat confdefs.h >>conftest.$ac_ext
18071 cat >>conftest.$ac_ext <<_ACEOF
18072 /* end confdefs.h. */
18073 $ac_includes_default
18075 main ()
18077 static struct stat ac_aggr;
18078 if (sizeof ac_aggr.st_rdev)
18079 return 0;
18081 return 0;
18083 _ACEOF
18084 rm -f conftest.$ac_objext
18085 if { (ac_try="$ac_compile"
18086 case "(($ac_try" in
18087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18088 *) ac_try_echo=$ac_try;;
18089 esac
18090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18091 (eval "$ac_compile") 2>conftest.er1
18092 ac_status=$?
18093 grep -v '^ *+' conftest.er1 >conftest.err
18094 rm -f conftest.er1
18095 cat conftest.err >&5
18096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18097 (exit $ac_status); } && {
18098 test -z "$ac_c_werror_flag" ||
18099 test ! -s conftest.err
18100 } && test -s conftest.$ac_objext; then
18101 ac_cv_member_struct_stat_st_rdev=yes
18102 else
18103 echo "$as_me: failed program was:" >&5
18104 sed 's/^/| /' conftest.$ac_ext >&5
18106 ac_cv_member_struct_stat_st_rdev=no
18109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18114 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
18115 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
18116 if test $ac_cv_member_struct_stat_st_rdev = yes; then
18118 cat >>confdefs.h <<_ACEOF
18119 #define HAVE_STRUCT_STAT_ST_RDEV 1
18120 _ACEOF
18125 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
18126 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
18127 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
18128 echo $ECHO_N "(cached) $ECHO_C" >&6
18129 else
18130 cat >conftest.$ac_ext <<_ACEOF
18131 /* confdefs.h. */
18132 _ACEOF
18133 cat confdefs.h >>conftest.$ac_ext
18134 cat >>conftest.$ac_ext <<_ACEOF
18135 /* end confdefs.h. */
18136 $ac_includes_default
18138 main ()
18140 static struct stat ac_aggr;
18141 if (ac_aggr.st_blksize)
18142 return 0;
18144 return 0;
18146 _ACEOF
18147 rm -f conftest.$ac_objext
18148 if { (ac_try="$ac_compile"
18149 case "(($ac_try" in
18150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18151 *) ac_try_echo=$ac_try;;
18152 esac
18153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18154 (eval "$ac_compile") 2>conftest.er1
18155 ac_status=$?
18156 grep -v '^ *+' conftest.er1 >conftest.err
18157 rm -f conftest.er1
18158 cat conftest.err >&5
18159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18160 (exit $ac_status); } && {
18161 test -z "$ac_c_werror_flag" ||
18162 test ! -s conftest.err
18163 } && test -s conftest.$ac_objext; then
18164 ac_cv_member_struct_stat_st_blksize=yes
18165 else
18166 echo "$as_me: failed program was:" >&5
18167 sed 's/^/| /' conftest.$ac_ext >&5
18169 cat >conftest.$ac_ext <<_ACEOF
18170 /* confdefs.h. */
18171 _ACEOF
18172 cat confdefs.h >>conftest.$ac_ext
18173 cat >>conftest.$ac_ext <<_ACEOF
18174 /* end confdefs.h. */
18175 $ac_includes_default
18177 main ()
18179 static struct stat ac_aggr;
18180 if (sizeof ac_aggr.st_blksize)
18181 return 0;
18183 return 0;
18185 _ACEOF
18186 rm -f conftest.$ac_objext
18187 if { (ac_try="$ac_compile"
18188 case "(($ac_try" in
18189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18190 *) ac_try_echo=$ac_try;;
18191 esac
18192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18193 (eval "$ac_compile") 2>conftest.er1
18194 ac_status=$?
18195 grep -v '^ *+' conftest.er1 >conftest.err
18196 rm -f conftest.er1
18197 cat conftest.err >&5
18198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18199 (exit $ac_status); } && {
18200 test -z "$ac_c_werror_flag" ||
18201 test ! -s conftest.err
18202 } && test -s conftest.$ac_objext; then
18203 ac_cv_member_struct_stat_st_blksize=yes
18204 else
18205 echo "$as_me: failed program was:" >&5
18206 sed 's/^/| /' conftest.$ac_ext >&5
18208 ac_cv_member_struct_stat_st_blksize=no
18211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18216 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
18217 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
18218 if test $ac_cv_member_struct_stat_st_blksize = yes; then
18220 cat >>confdefs.h <<_ACEOF
18221 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
18222 _ACEOF
18227 { echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
18228 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6; }
18229 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
18230 echo $ECHO_N "(cached) $ECHO_C" >&6
18231 else
18232 cat >conftest.$ac_ext <<_ACEOF
18233 /* confdefs.h. */
18234 _ACEOF
18235 cat confdefs.h >>conftest.$ac_ext
18236 cat >>conftest.$ac_ext <<_ACEOF
18237 /* end confdefs.h. */
18238 $ac_includes_default
18240 main ()
18242 static struct stat ac_aggr;
18243 if (ac_aggr.st_flags)
18244 return 0;
18246 return 0;
18248 _ACEOF
18249 rm -f conftest.$ac_objext
18250 if { (ac_try="$ac_compile"
18251 case "(($ac_try" in
18252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18253 *) ac_try_echo=$ac_try;;
18254 esac
18255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18256 (eval "$ac_compile") 2>conftest.er1
18257 ac_status=$?
18258 grep -v '^ *+' conftest.er1 >conftest.err
18259 rm -f conftest.er1
18260 cat conftest.err >&5
18261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18262 (exit $ac_status); } && {
18263 test -z "$ac_c_werror_flag" ||
18264 test ! -s conftest.err
18265 } && test -s conftest.$ac_objext; then
18266 ac_cv_member_struct_stat_st_flags=yes
18267 else
18268 echo "$as_me: failed program was:" >&5
18269 sed 's/^/| /' conftest.$ac_ext >&5
18271 cat >conftest.$ac_ext <<_ACEOF
18272 /* confdefs.h. */
18273 _ACEOF
18274 cat confdefs.h >>conftest.$ac_ext
18275 cat >>conftest.$ac_ext <<_ACEOF
18276 /* end confdefs.h. */
18277 $ac_includes_default
18279 main ()
18281 static struct stat ac_aggr;
18282 if (sizeof ac_aggr.st_flags)
18283 return 0;
18285 return 0;
18287 _ACEOF
18288 rm -f conftest.$ac_objext
18289 if { (ac_try="$ac_compile"
18290 case "(($ac_try" in
18291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18292 *) ac_try_echo=$ac_try;;
18293 esac
18294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18295 (eval "$ac_compile") 2>conftest.er1
18296 ac_status=$?
18297 grep -v '^ *+' conftest.er1 >conftest.err
18298 rm -f conftest.er1
18299 cat conftest.err >&5
18300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18301 (exit $ac_status); } && {
18302 test -z "$ac_c_werror_flag" ||
18303 test ! -s conftest.err
18304 } && test -s conftest.$ac_objext; then
18305 ac_cv_member_struct_stat_st_flags=yes
18306 else
18307 echo "$as_me: failed program was:" >&5
18308 sed 's/^/| /' conftest.$ac_ext >&5
18310 ac_cv_member_struct_stat_st_flags=no
18313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18318 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
18319 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6; }
18320 if test $ac_cv_member_struct_stat_st_flags = yes; then
18322 cat >>confdefs.h <<_ACEOF
18323 #define HAVE_STRUCT_STAT_ST_FLAGS 1
18324 _ACEOF
18329 { echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
18330 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6; }
18331 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
18332 echo $ECHO_N "(cached) $ECHO_C" >&6
18333 else
18334 cat >conftest.$ac_ext <<_ACEOF
18335 /* confdefs.h. */
18336 _ACEOF
18337 cat confdefs.h >>conftest.$ac_ext
18338 cat >>conftest.$ac_ext <<_ACEOF
18339 /* end confdefs.h. */
18340 $ac_includes_default
18342 main ()
18344 static struct stat ac_aggr;
18345 if (ac_aggr.st_gen)
18346 return 0;
18348 return 0;
18350 _ACEOF
18351 rm -f conftest.$ac_objext
18352 if { (ac_try="$ac_compile"
18353 case "(($ac_try" in
18354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18355 *) ac_try_echo=$ac_try;;
18356 esac
18357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18358 (eval "$ac_compile") 2>conftest.er1
18359 ac_status=$?
18360 grep -v '^ *+' conftest.er1 >conftest.err
18361 rm -f conftest.er1
18362 cat conftest.err >&5
18363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18364 (exit $ac_status); } && {
18365 test -z "$ac_c_werror_flag" ||
18366 test ! -s conftest.err
18367 } && test -s conftest.$ac_objext; then
18368 ac_cv_member_struct_stat_st_gen=yes
18369 else
18370 echo "$as_me: failed program was:" >&5
18371 sed 's/^/| /' conftest.$ac_ext >&5
18373 cat >conftest.$ac_ext <<_ACEOF
18374 /* confdefs.h. */
18375 _ACEOF
18376 cat confdefs.h >>conftest.$ac_ext
18377 cat >>conftest.$ac_ext <<_ACEOF
18378 /* end confdefs.h. */
18379 $ac_includes_default
18381 main ()
18383 static struct stat ac_aggr;
18384 if (sizeof ac_aggr.st_gen)
18385 return 0;
18387 return 0;
18389 _ACEOF
18390 rm -f conftest.$ac_objext
18391 if { (ac_try="$ac_compile"
18392 case "(($ac_try" in
18393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18394 *) ac_try_echo=$ac_try;;
18395 esac
18396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18397 (eval "$ac_compile") 2>conftest.er1
18398 ac_status=$?
18399 grep -v '^ *+' conftest.er1 >conftest.err
18400 rm -f conftest.er1
18401 cat conftest.err >&5
18402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18403 (exit $ac_status); } && {
18404 test -z "$ac_c_werror_flag" ||
18405 test ! -s conftest.err
18406 } && test -s conftest.$ac_objext; then
18407 ac_cv_member_struct_stat_st_gen=yes
18408 else
18409 echo "$as_me: failed program was:" >&5
18410 sed 's/^/| /' conftest.$ac_ext >&5
18412 ac_cv_member_struct_stat_st_gen=no
18415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18420 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
18421 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6; }
18422 if test $ac_cv_member_struct_stat_st_gen = yes; then
18424 cat >>confdefs.h <<_ACEOF
18425 #define HAVE_STRUCT_STAT_ST_GEN 1
18426 _ACEOF
18431 { echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
18432 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6; }
18433 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
18434 echo $ECHO_N "(cached) $ECHO_C" >&6
18435 else
18436 cat >conftest.$ac_ext <<_ACEOF
18437 /* confdefs.h. */
18438 _ACEOF
18439 cat confdefs.h >>conftest.$ac_ext
18440 cat >>conftest.$ac_ext <<_ACEOF
18441 /* end confdefs.h. */
18442 $ac_includes_default
18444 main ()
18446 static struct stat ac_aggr;
18447 if (ac_aggr.st_birthtime)
18448 return 0;
18450 return 0;
18452 _ACEOF
18453 rm -f conftest.$ac_objext
18454 if { (ac_try="$ac_compile"
18455 case "(($ac_try" in
18456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18457 *) ac_try_echo=$ac_try;;
18458 esac
18459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18460 (eval "$ac_compile") 2>conftest.er1
18461 ac_status=$?
18462 grep -v '^ *+' conftest.er1 >conftest.err
18463 rm -f conftest.er1
18464 cat conftest.err >&5
18465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18466 (exit $ac_status); } && {
18467 test -z "$ac_c_werror_flag" ||
18468 test ! -s conftest.err
18469 } && test -s conftest.$ac_objext; then
18470 ac_cv_member_struct_stat_st_birthtime=yes
18471 else
18472 echo "$as_me: failed program was:" >&5
18473 sed 's/^/| /' conftest.$ac_ext >&5
18475 cat >conftest.$ac_ext <<_ACEOF
18476 /* confdefs.h. */
18477 _ACEOF
18478 cat confdefs.h >>conftest.$ac_ext
18479 cat >>conftest.$ac_ext <<_ACEOF
18480 /* end confdefs.h. */
18481 $ac_includes_default
18483 main ()
18485 static struct stat ac_aggr;
18486 if (sizeof ac_aggr.st_birthtime)
18487 return 0;
18489 return 0;
18491 _ACEOF
18492 rm -f conftest.$ac_objext
18493 if { (ac_try="$ac_compile"
18494 case "(($ac_try" in
18495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18496 *) ac_try_echo=$ac_try;;
18497 esac
18498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18499 (eval "$ac_compile") 2>conftest.er1
18500 ac_status=$?
18501 grep -v '^ *+' conftest.er1 >conftest.err
18502 rm -f conftest.er1
18503 cat conftest.err >&5
18504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18505 (exit $ac_status); } && {
18506 test -z "$ac_c_werror_flag" ||
18507 test ! -s conftest.err
18508 } && test -s conftest.$ac_objext; then
18509 ac_cv_member_struct_stat_st_birthtime=yes
18510 else
18511 echo "$as_me: failed program was:" >&5
18512 sed 's/^/| /' conftest.$ac_ext >&5
18514 ac_cv_member_struct_stat_st_birthtime=no
18517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18522 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
18523 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6; }
18524 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
18526 cat >>confdefs.h <<_ACEOF
18527 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
18528 _ACEOF
18533 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
18534 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
18535 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
18536 echo $ECHO_N "(cached) $ECHO_C" >&6
18537 else
18538 cat >conftest.$ac_ext <<_ACEOF
18539 /* confdefs.h. */
18540 _ACEOF
18541 cat confdefs.h >>conftest.$ac_ext
18542 cat >>conftest.$ac_ext <<_ACEOF
18543 /* end confdefs.h. */
18544 $ac_includes_default
18546 main ()
18548 static struct stat ac_aggr;
18549 if (ac_aggr.st_blocks)
18550 return 0;
18552 return 0;
18554 _ACEOF
18555 rm -f conftest.$ac_objext
18556 if { (ac_try="$ac_compile"
18557 case "(($ac_try" in
18558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18559 *) ac_try_echo=$ac_try;;
18560 esac
18561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18562 (eval "$ac_compile") 2>conftest.er1
18563 ac_status=$?
18564 grep -v '^ *+' conftest.er1 >conftest.err
18565 rm -f conftest.er1
18566 cat conftest.err >&5
18567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18568 (exit $ac_status); } && {
18569 test -z "$ac_c_werror_flag" ||
18570 test ! -s conftest.err
18571 } && test -s conftest.$ac_objext; then
18572 ac_cv_member_struct_stat_st_blocks=yes
18573 else
18574 echo "$as_me: failed program was:" >&5
18575 sed 's/^/| /' conftest.$ac_ext >&5
18577 cat >conftest.$ac_ext <<_ACEOF
18578 /* confdefs.h. */
18579 _ACEOF
18580 cat confdefs.h >>conftest.$ac_ext
18581 cat >>conftest.$ac_ext <<_ACEOF
18582 /* end confdefs.h. */
18583 $ac_includes_default
18585 main ()
18587 static struct stat ac_aggr;
18588 if (sizeof ac_aggr.st_blocks)
18589 return 0;
18591 return 0;
18593 _ACEOF
18594 rm -f conftest.$ac_objext
18595 if { (ac_try="$ac_compile"
18596 case "(($ac_try" in
18597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18598 *) ac_try_echo=$ac_try;;
18599 esac
18600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18601 (eval "$ac_compile") 2>conftest.er1
18602 ac_status=$?
18603 grep -v '^ *+' conftest.er1 >conftest.err
18604 rm -f conftest.er1
18605 cat conftest.err >&5
18606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18607 (exit $ac_status); } && {
18608 test -z "$ac_c_werror_flag" ||
18609 test ! -s conftest.err
18610 } && test -s conftest.$ac_objext; then
18611 ac_cv_member_struct_stat_st_blocks=yes
18612 else
18613 echo "$as_me: failed program was:" >&5
18614 sed 's/^/| /' conftest.$ac_ext >&5
18616 ac_cv_member_struct_stat_st_blocks=no
18619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18624 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
18625 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
18626 if test $ac_cv_member_struct_stat_st_blocks = yes; then
18628 cat >>confdefs.h <<_ACEOF
18629 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
18630 _ACEOF
18633 cat >>confdefs.h <<\_ACEOF
18634 #define HAVE_ST_BLOCKS 1
18635 _ACEOF
18637 else
18638 case " $LIBOBJS " in
18639 *" fileblocks.$ac_objext "* ) ;;
18640 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
18642 esac
18648 { echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
18649 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6; }
18650 if test "${ac_cv_header_time_altzone+set}" = set; then
18651 echo $ECHO_N "(cached) $ECHO_C" >&6
18652 else
18653 cat >conftest.$ac_ext <<_ACEOF
18654 /* confdefs.h. */
18655 _ACEOF
18656 cat confdefs.h >>conftest.$ac_ext
18657 cat >>conftest.$ac_ext <<_ACEOF
18658 /* end confdefs.h. */
18659 #include <time.h>
18661 main ()
18663 return altzone;
18665 return 0;
18667 _ACEOF
18668 rm -f conftest.$ac_objext
18669 if { (ac_try="$ac_compile"
18670 case "(($ac_try" in
18671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18672 *) ac_try_echo=$ac_try;;
18673 esac
18674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18675 (eval "$ac_compile") 2>conftest.er1
18676 ac_status=$?
18677 grep -v '^ *+' conftest.er1 >conftest.err
18678 rm -f conftest.er1
18679 cat conftest.err >&5
18680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18681 (exit $ac_status); } && {
18682 test -z "$ac_c_werror_flag" ||
18683 test ! -s conftest.err
18684 } && test -s conftest.$ac_objext; then
18685 ac_cv_header_time_altzone=yes
18686 else
18687 echo "$as_me: failed program was:" >&5
18688 sed 's/^/| /' conftest.$ac_ext >&5
18690 ac_cv_header_time_altzone=no
18693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18696 { echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
18697 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6; }
18698 if test $ac_cv_header_time_altzone = yes; then
18700 cat >>confdefs.h <<\_ACEOF
18701 #define HAVE_ALTZONE 1
18702 _ACEOF
18706 was_it_defined=no
18707 { echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
18708 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6; }
18709 cat >conftest.$ac_ext <<_ACEOF
18710 /* confdefs.h. */
18711 _ACEOF
18712 cat confdefs.h >>conftest.$ac_ext
18713 cat >>conftest.$ac_ext <<_ACEOF
18714 /* end confdefs.h. */
18716 #include <sys/types.h>
18717 #include <sys/select.h>
18718 #include <sys/time.h>
18721 main ()
18725 return 0;
18727 _ACEOF
18728 rm -f conftest.$ac_objext
18729 if { (ac_try="$ac_compile"
18730 case "(($ac_try" in
18731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18732 *) ac_try_echo=$ac_try;;
18733 esac
18734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18735 (eval "$ac_compile") 2>conftest.er1
18736 ac_status=$?
18737 grep -v '^ *+' conftest.er1 >conftest.err
18738 rm -f conftest.er1
18739 cat conftest.err >&5
18740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18741 (exit $ac_status); } && {
18742 test -z "$ac_c_werror_flag" ||
18743 test ! -s conftest.err
18744 } && test -s conftest.$ac_objext; then
18747 cat >>confdefs.h <<\_ACEOF
18748 #define SYS_SELECT_WITH_SYS_TIME 1
18749 _ACEOF
18751 was_it_defined=yes
18753 else
18754 echo "$as_me: failed program was:" >&5
18755 sed 's/^/| /' conftest.$ac_ext >&5
18760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18761 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
18762 echo "${ECHO_T}$was_it_defined" >&6; }
18764 { echo "$as_me:$LINENO: checking for addrinfo" >&5
18765 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
18766 if test "${ac_cv_struct_addrinfo+set}" = set; then
18767 echo $ECHO_N "(cached) $ECHO_C" >&6
18768 else
18769 cat >conftest.$ac_ext <<_ACEOF
18770 /* confdefs.h. */
18771 _ACEOF
18772 cat confdefs.h >>conftest.$ac_ext
18773 cat >>conftest.$ac_ext <<_ACEOF
18774 /* end confdefs.h. */
18776 # include <netdb.h>
18778 main ()
18780 struct addrinfo a
18782 return 0;
18784 _ACEOF
18785 rm -f conftest.$ac_objext
18786 if { (ac_try="$ac_compile"
18787 case "(($ac_try" in
18788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18789 *) ac_try_echo=$ac_try;;
18790 esac
18791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18792 (eval "$ac_compile") 2>conftest.er1
18793 ac_status=$?
18794 grep -v '^ *+' conftest.er1 >conftest.err
18795 rm -f conftest.er1
18796 cat conftest.err >&5
18797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18798 (exit $ac_status); } && {
18799 test -z "$ac_c_werror_flag" ||
18800 test ! -s conftest.err
18801 } && test -s conftest.$ac_objext; then
18802 ac_cv_struct_addrinfo=yes
18803 else
18804 echo "$as_me: failed program was:" >&5
18805 sed 's/^/| /' conftest.$ac_ext >&5
18807 ac_cv_struct_addrinfo=no
18810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18813 { echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
18814 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6; }
18815 if test $ac_cv_struct_addrinfo = yes; then
18817 cat >>confdefs.h <<\_ACEOF
18818 #define HAVE_ADDRINFO 1
18819 _ACEOF
18823 { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
18824 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
18825 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
18826 echo $ECHO_N "(cached) $ECHO_C" >&6
18827 else
18828 cat >conftest.$ac_ext <<_ACEOF
18829 /* confdefs.h. */
18830 _ACEOF
18831 cat confdefs.h >>conftest.$ac_ext
18832 cat >>conftest.$ac_ext <<_ACEOF
18833 /* end confdefs.h. */
18835 # include <sys/types.h>
18836 # include <sys/socket.h>
18838 main ()
18840 struct sockaddr_storage s
18842 return 0;
18844 _ACEOF
18845 rm -f conftest.$ac_objext
18846 if { (ac_try="$ac_compile"
18847 case "(($ac_try" in
18848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18849 *) ac_try_echo=$ac_try;;
18850 esac
18851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18852 (eval "$ac_compile") 2>conftest.er1
18853 ac_status=$?
18854 grep -v '^ *+' conftest.er1 >conftest.err
18855 rm -f conftest.er1
18856 cat conftest.err >&5
18857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18858 (exit $ac_status); } && {
18859 test -z "$ac_c_werror_flag" ||
18860 test ! -s conftest.err
18861 } && test -s conftest.$ac_objext; then
18862 ac_cv_struct_sockaddr_storage=yes
18863 else
18864 echo "$as_me: failed program was:" >&5
18865 sed 's/^/| /' conftest.$ac_ext >&5
18867 ac_cv_struct_sockaddr_storage=no
18870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18873 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
18874 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6; }
18875 if test $ac_cv_struct_sockaddr_storage = yes; then
18877 cat >>confdefs.h <<\_ACEOF
18878 #define HAVE_SOCKADDR_STORAGE 1
18879 _ACEOF
18883 # checks for compiler characteristics
18886 { echo "$as_me:$LINENO: checking whether char is unsigned" >&5
18887 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; }
18888 if test "${ac_cv_c_char_unsigned+set}" = set; then
18889 echo $ECHO_N "(cached) $ECHO_C" >&6
18890 else
18891 cat >conftest.$ac_ext <<_ACEOF
18892 /* confdefs.h. */
18893 _ACEOF
18894 cat confdefs.h >>conftest.$ac_ext
18895 cat >>conftest.$ac_ext <<_ACEOF
18896 /* end confdefs.h. */
18897 $ac_includes_default
18899 main ()
18901 static int test_array [1 - 2 * !(((char) -1) < 0)];
18902 test_array [0] = 0
18905 return 0;
18907 _ACEOF
18908 rm -f conftest.$ac_objext
18909 if { (ac_try="$ac_compile"
18910 case "(($ac_try" in
18911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18912 *) ac_try_echo=$ac_try;;
18913 esac
18914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18915 (eval "$ac_compile") 2>conftest.er1
18916 ac_status=$?
18917 grep -v '^ *+' conftest.er1 >conftest.err
18918 rm -f conftest.er1
18919 cat conftest.err >&5
18920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18921 (exit $ac_status); } && {
18922 test -z "$ac_c_werror_flag" ||
18923 test ! -s conftest.err
18924 } && test -s conftest.$ac_objext; then
18925 ac_cv_c_char_unsigned=no
18926 else
18927 echo "$as_me: failed program was:" >&5
18928 sed 's/^/| /' conftest.$ac_ext >&5
18930 ac_cv_c_char_unsigned=yes
18933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18935 { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
18936 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; }
18937 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
18938 cat >>confdefs.h <<\_ACEOF
18939 #define __CHAR_UNSIGNED__ 1
18940 _ACEOF
18944 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18945 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
18946 if test "${ac_cv_c_const+set}" = set; then
18947 echo $ECHO_N "(cached) $ECHO_C" >&6
18948 else
18949 cat >conftest.$ac_ext <<_ACEOF
18950 /* confdefs.h. */
18951 _ACEOF
18952 cat confdefs.h >>conftest.$ac_ext
18953 cat >>conftest.$ac_ext <<_ACEOF
18954 /* end confdefs.h. */
18957 main ()
18959 /* FIXME: Include the comments suggested by Paul. */
18960 #ifndef __cplusplus
18961 /* Ultrix mips cc rejects this. */
18962 typedef int charset[2];
18963 const charset cs;
18964 /* SunOS 4.1.1 cc rejects this. */
18965 char const *const *pcpcc;
18966 char **ppc;
18967 /* NEC SVR4.0.2 mips cc rejects this. */
18968 struct point {int x, y;};
18969 static struct point const zero = {0,0};
18970 /* AIX XL C 1.02.0.0 rejects this.
18971 It does not let you subtract one const X* pointer from another in
18972 an arm of an if-expression whose if-part is not a constant
18973 expression */
18974 const char *g = "string";
18975 pcpcc = &g + (g ? g-g : 0);
18976 /* HPUX 7.0 cc rejects these. */
18977 ++pcpcc;
18978 ppc = (char**) pcpcc;
18979 pcpcc = (char const *const *) ppc;
18980 { /* SCO 3.2v4 cc rejects this. */
18981 char *t;
18982 char const *s = 0 ? (char *) 0 : (char const *) 0;
18984 *t++ = 0;
18985 if (s) return 0;
18987 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18988 int x[] = {25, 17};
18989 const int *foo = &x[0];
18990 ++foo;
18992 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18993 typedef const int *iptr;
18994 iptr p = 0;
18995 ++p;
18997 { /* AIX XL C 1.02.0.0 rejects this saying
18998 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18999 struct s { int j; const int *ap[3]; };
19000 struct s *b; b->j = 5;
19002 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19003 const int foo = 10;
19004 if (!foo) return 0;
19006 return !cs[0] && !zero.x;
19007 #endif
19010 return 0;
19012 _ACEOF
19013 rm -f conftest.$ac_objext
19014 if { (ac_try="$ac_compile"
19015 case "(($ac_try" in
19016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19017 *) ac_try_echo=$ac_try;;
19018 esac
19019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19020 (eval "$ac_compile") 2>conftest.er1
19021 ac_status=$?
19022 grep -v '^ *+' conftest.er1 >conftest.err
19023 rm -f conftest.er1
19024 cat conftest.err >&5
19025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19026 (exit $ac_status); } && {
19027 test -z "$ac_c_werror_flag" ||
19028 test ! -s conftest.err
19029 } && test -s conftest.$ac_objext; then
19030 ac_cv_c_const=yes
19031 else
19032 echo "$as_me: failed program was:" >&5
19033 sed 's/^/| /' conftest.$ac_ext >&5
19035 ac_cv_c_const=no
19038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19040 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19041 echo "${ECHO_T}$ac_cv_c_const" >&6; }
19042 if test $ac_cv_c_const = no; then
19044 cat >>confdefs.h <<\_ACEOF
19045 #define const
19046 _ACEOF
19051 works=no
19052 { echo "$as_me:$LINENO: checking for working volatile" >&5
19053 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
19054 cat >conftest.$ac_ext <<_ACEOF
19055 /* confdefs.h. */
19056 _ACEOF
19057 cat confdefs.h >>conftest.$ac_ext
19058 cat >>conftest.$ac_ext <<_ACEOF
19059 /* end confdefs.h. */
19062 main ()
19064 volatile int x; x = 0;
19066 return 0;
19068 _ACEOF
19069 rm -f conftest.$ac_objext
19070 if { (ac_try="$ac_compile"
19071 case "(($ac_try" in
19072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19073 *) ac_try_echo=$ac_try;;
19074 esac
19075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19076 (eval "$ac_compile") 2>conftest.er1
19077 ac_status=$?
19078 grep -v '^ *+' conftest.er1 >conftest.err
19079 rm -f conftest.er1
19080 cat conftest.err >&5
19081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19082 (exit $ac_status); } && {
19083 test -z "$ac_c_werror_flag" ||
19084 test ! -s conftest.err
19085 } && test -s conftest.$ac_objext; then
19086 works=yes
19087 else
19088 echo "$as_me: failed program was:" >&5
19089 sed 's/^/| /' conftest.$ac_ext >&5
19092 cat >>confdefs.h <<\_ACEOF
19093 #define volatile
19094 _ACEOF
19099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19100 { echo "$as_me:$LINENO: result: $works" >&5
19101 echo "${ECHO_T}$works" >&6; }
19103 works=no
19104 { echo "$as_me:$LINENO: checking for working signed char" >&5
19105 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6; }
19106 cat >conftest.$ac_ext <<_ACEOF
19107 /* confdefs.h. */
19108 _ACEOF
19109 cat confdefs.h >>conftest.$ac_ext
19110 cat >>conftest.$ac_ext <<_ACEOF
19111 /* end confdefs.h. */
19114 main ()
19116 signed char c;
19118 return 0;
19120 _ACEOF
19121 rm -f conftest.$ac_objext
19122 if { (ac_try="$ac_compile"
19123 case "(($ac_try" in
19124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19125 *) ac_try_echo=$ac_try;;
19126 esac
19127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19128 (eval "$ac_compile") 2>conftest.er1
19129 ac_status=$?
19130 grep -v '^ *+' conftest.er1 >conftest.err
19131 rm -f conftest.er1
19132 cat conftest.err >&5
19133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19134 (exit $ac_status); } && {
19135 test -z "$ac_c_werror_flag" ||
19136 test ! -s conftest.err
19137 } && test -s conftest.$ac_objext; then
19138 works=yes
19139 else
19140 echo "$as_me: failed program was:" >&5
19141 sed 's/^/| /' conftest.$ac_ext >&5
19144 cat >>confdefs.h <<\_ACEOF
19145 #define signed
19146 _ACEOF
19151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19152 { echo "$as_me:$LINENO: result: $works" >&5
19153 echo "${ECHO_T}$works" >&6; }
19155 have_prototypes=no
19156 { echo "$as_me:$LINENO: checking for prototypes" >&5
19157 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6; }
19158 cat >conftest.$ac_ext <<_ACEOF
19159 /* confdefs.h. */
19160 _ACEOF
19161 cat confdefs.h >>conftest.$ac_ext
19162 cat >>conftest.$ac_ext <<_ACEOF
19163 /* end confdefs.h. */
19164 int foo(int x) { return 0; }
19166 main ()
19168 return foo(10);
19170 return 0;
19172 _ACEOF
19173 rm -f conftest.$ac_objext
19174 if { (ac_try="$ac_compile"
19175 case "(($ac_try" in
19176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19177 *) ac_try_echo=$ac_try;;
19178 esac
19179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19180 (eval "$ac_compile") 2>conftest.er1
19181 ac_status=$?
19182 grep -v '^ *+' conftest.er1 >conftest.err
19183 rm -f conftest.er1
19184 cat conftest.err >&5
19185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19186 (exit $ac_status); } && {
19187 test -z "$ac_c_werror_flag" ||
19188 test ! -s conftest.err
19189 } && test -s conftest.$ac_objext; then
19192 cat >>confdefs.h <<\_ACEOF
19193 #define HAVE_PROTOTYPES 1
19194 _ACEOF
19196 have_prototypes=yes
19198 else
19199 echo "$as_me: failed program was:" >&5
19200 sed 's/^/| /' conftest.$ac_ext >&5
19205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19206 { echo "$as_me:$LINENO: result: $have_prototypes" >&5
19207 echo "${ECHO_T}$have_prototypes" >&6; }
19209 works=no
19210 { echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
19211 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6; }
19212 cat >conftest.$ac_ext <<_ACEOF
19213 /* confdefs.h. */
19214 _ACEOF
19215 cat confdefs.h >>conftest.$ac_ext
19216 cat >>conftest.$ac_ext <<_ACEOF
19217 /* end confdefs.h. */
19219 #include <stdarg.h>
19220 int foo(int x, ...) {
19221 va_list va;
19222 va_start(va, x);
19223 va_arg(va, int);
19224 va_arg(va, char *);
19225 va_arg(va, double);
19226 return 0;
19230 main ()
19232 return foo(10, "", 3.14);
19234 return 0;
19236 _ACEOF
19237 rm -f conftest.$ac_objext
19238 if { (ac_try="$ac_compile"
19239 case "(($ac_try" in
19240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19241 *) ac_try_echo=$ac_try;;
19242 esac
19243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19244 (eval "$ac_compile") 2>conftest.er1
19245 ac_status=$?
19246 grep -v '^ *+' conftest.er1 >conftest.err
19247 rm -f conftest.er1
19248 cat conftest.err >&5
19249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19250 (exit $ac_status); } && {
19251 test -z "$ac_c_werror_flag" ||
19252 test ! -s conftest.err
19253 } && test -s conftest.$ac_objext; then
19256 cat >>confdefs.h <<\_ACEOF
19257 #define HAVE_STDARG_PROTOTYPES 1
19258 _ACEOF
19260 works=yes
19262 else
19263 echo "$as_me: failed program was:" >&5
19264 sed 's/^/| /' conftest.$ac_ext >&5
19269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19270 { echo "$as_me:$LINENO: result: $works" >&5
19271 echo "${ECHO_T}$works" >&6; }
19273 # check for socketpair
19274 { echo "$as_me:$LINENO: checking for socketpair" >&5
19275 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6; }
19276 cat >conftest.$ac_ext <<_ACEOF
19277 /* confdefs.h. */
19278 _ACEOF
19279 cat confdefs.h >>conftest.$ac_ext
19280 cat >>conftest.$ac_ext <<_ACEOF
19281 /* end confdefs.h. */
19283 #include <sys/types.h>
19284 #include <sys/socket.h>
19287 main ()
19289 void *x=socketpair
19291 return 0;
19293 _ACEOF
19294 rm -f conftest.$ac_objext
19295 if { (ac_try="$ac_compile"
19296 case "(($ac_try" in
19297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19298 *) ac_try_echo=$ac_try;;
19299 esac
19300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19301 (eval "$ac_compile") 2>conftest.er1
19302 ac_status=$?
19303 grep -v '^ *+' conftest.er1 >conftest.err
19304 rm -f conftest.er1
19305 cat conftest.err >&5
19306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19307 (exit $ac_status); } && {
19308 test -z "$ac_c_werror_flag" ||
19309 test ! -s conftest.err
19310 } && test -s conftest.$ac_objext; then
19312 cat >>confdefs.h <<\_ACEOF
19313 #define HAVE_SOCKETPAIR 1
19314 _ACEOF
19316 { echo "$as_me:$LINENO: result: yes" >&5
19317 echo "${ECHO_T}yes" >&6; }
19318 else
19319 echo "$as_me: failed program was:" >&5
19320 sed 's/^/| /' conftest.$ac_ext >&5
19322 { echo "$as_me:$LINENO: result: no" >&5
19323 echo "${ECHO_T}no" >&6; }
19327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19329 # check if sockaddr has sa_len member
19330 { echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
19331 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6; }
19332 cat >conftest.$ac_ext <<_ACEOF
19333 /* confdefs.h. */
19334 _ACEOF
19335 cat confdefs.h >>conftest.$ac_ext
19336 cat >>conftest.$ac_ext <<_ACEOF
19337 /* end confdefs.h. */
19338 #include <sys/types.h>
19339 #include <sys/socket.h>
19341 main ()
19343 struct sockaddr x;
19344 x.sa_len = 0;
19346 return 0;
19348 _ACEOF
19349 rm -f conftest.$ac_objext
19350 if { (ac_try="$ac_compile"
19351 case "(($ac_try" in
19352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19353 *) ac_try_echo=$ac_try;;
19354 esac
19355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19356 (eval "$ac_compile") 2>conftest.er1
19357 ac_status=$?
19358 grep -v '^ *+' conftest.er1 >conftest.err
19359 rm -f conftest.er1
19360 cat conftest.err >&5
19361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19362 (exit $ac_status); } && {
19363 test -z "$ac_c_werror_flag" ||
19364 test ! -s conftest.err
19365 } && test -s conftest.$ac_objext; then
19366 { echo "$as_me:$LINENO: result: yes" >&5
19367 echo "${ECHO_T}yes" >&6; }
19369 cat >>confdefs.h <<\_ACEOF
19370 #define HAVE_SOCKADDR_SA_LEN 1
19371 _ACEOF
19373 else
19374 echo "$as_me: failed program was:" >&5
19375 sed 's/^/| /' conftest.$ac_ext >&5
19377 { echo "$as_me:$LINENO: result: no" >&5
19378 echo "${ECHO_T}no" >&6; }
19381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19383 va_list_is_array=no
19384 { echo "$as_me:$LINENO: checking whether va_list is an array" >&5
19385 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6; }
19386 cat >conftest.$ac_ext <<_ACEOF
19387 /* confdefs.h. */
19388 _ACEOF
19389 cat confdefs.h >>conftest.$ac_ext
19390 cat >>conftest.$ac_ext <<_ACEOF
19391 /* end confdefs.h. */
19393 #ifdef HAVE_STDARG_PROTOTYPES
19394 #include <stdarg.h>
19395 #else
19396 #include <varargs.h>
19397 #endif
19400 main ()
19402 va_list list1, list2; list1 = list2;
19404 return 0;
19406 _ACEOF
19407 rm -f conftest.$ac_objext
19408 if { (ac_try="$ac_compile"
19409 case "(($ac_try" in
19410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19411 *) ac_try_echo=$ac_try;;
19412 esac
19413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19414 (eval "$ac_compile") 2>conftest.er1
19415 ac_status=$?
19416 grep -v '^ *+' conftest.er1 >conftest.err
19417 rm -f conftest.er1
19418 cat conftest.err >&5
19419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19420 (exit $ac_status); } && {
19421 test -z "$ac_c_werror_flag" ||
19422 test ! -s conftest.err
19423 } && test -s conftest.$ac_objext; then
19425 else
19426 echo "$as_me: failed program was:" >&5
19427 sed 's/^/| /' conftest.$ac_ext >&5
19431 cat >>confdefs.h <<\_ACEOF
19432 #define VA_LIST_IS_ARRAY 1
19433 _ACEOF
19435 va_list_is_array=yes
19439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19440 { echo "$as_me:$LINENO: result: $va_list_is_array" >&5
19441 echo "${ECHO_T}$va_list_is_array" >&6; }
19443 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
19447 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
19448 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
19449 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
19450 echo $ECHO_N "(cached) $ECHO_C" >&6
19451 else
19452 cat >conftest.$ac_ext <<_ACEOF
19453 /* confdefs.h. */
19454 _ACEOF
19455 cat confdefs.h >>conftest.$ac_ext
19456 cat >>conftest.$ac_ext <<_ACEOF
19457 /* end confdefs.h. */
19458 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
19459 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19460 #define gethostbyname_r innocuous_gethostbyname_r
19462 /* System header to define __stub macros and hopefully few prototypes,
19463 which can conflict with char gethostbyname_r (); below.
19464 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19465 <limits.h> exists even on freestanding compilers. */
19467 #ifdef __STDC__
19468 # include <limits.h>
19469 #else
19470 # include <assert.h>
19471 #endif
19473 #undef gethostbyname_r
19475 /* Override any GCC internal prototype to avoid an error.
19476 Use char because int might match the return type of a GCC
19477 builtin and then its argument prototype would still apply. */
19478 #ifdef __cplusplus
19479 extern "C"
19480 #endif
19481 char gethostbyname_r ();
19482 /* The GNU C library defines this for functions which it implements
19483 to always fail with ENOSYS. Some functions are actually named
19484 something starting with __ and the normal name is an alias. */
19485 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
19486 choke me
19487 #endif
19490 main ()
19492 return gethostbyname_r ();
19494 return 0;
19496 _ACEOF
19497 rm -f conftest.$ac_objext conftest$ac_exeext
19498 if { (ac_try="$ac_link"
19499 case "(($ac_try" in
19500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19501 *) ac_try_echo=$ac_try;;
19502 esac
19503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19504 (eval "$ac_link") 2>conftest.er1
19505 ac_status=$?
19506 grep -v '^ *+' conftest.er1 >conftest.err
19507 rm -f conftest.er1
19508 cat conftest.err >&5
19509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19510 (exit $ac_status); } && {
19511 test -z "$ac_c_werror_flag" ||
19512 test ! -s conftest.err
19513 } && test -s conftest$ac_exeext &&
19514 $as_test_x conftest$ac_exeext; then
19515 ac_cv_func_gethostbyname_r=yes
19516 else
19517 echo "$as_me: failed program was:" >&5
19518 sed 's/^/| /' conftest.$ac_ext >&5
19520 ac_cv_func_gethostbyname_r=no
19523 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19524 conftest$ac_exeext conftest.$ac_ext
19526 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
19527 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
19528 if test $ac_cv_func_gethostbyname_r = yes; then
19530 cat >>confdefs.h <<\_ACEOF
19531 #define HAVE_GETHOSTBYNAME_R 1
19532 _ACEOF
19534 { echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
19535 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6; }
19536 OLD_CFLAGS=$CFLAGS
19537 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
19538 cat >conftest.$ac_ext <<_ACEOF
19539 /* confdefs.h. */
19540 _ACEOF
19541 cat confdefs.h >>conftest.$ac_ext
19542 cat >>conftest.$ac_ext <<_ACEOF
19543 /* end confdefs.h. */
19545 # include <netdb.h>
19548 main ()
19551 char *name;
19552 struct hostent *he, *res;
19553 char buffer[2048];
19554 int buflen = 2048;
19555 int h_errnop;
19557 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
19560 return 0;
19562 _ACEOF
19563 rm -f conftest.$ac_objext
19564 if { (ac_try="$ac_compile"
19565 case "(($ac_try" in
19566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19567 *) ac_try_echo=$ac_try;;
19568 esac
19569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19570 (eval "$ac_compile") 2>conftest.er1
19571 ac_status=$?
19572 grep -v '^ *+' conftest.er1 >conftest.err
19573 rm -f conftest.er1
19574 cat conftest.err >&5
19575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19576 (exit $ac_status); } && {
19577 test -z "$ac_c_werror_flag" ||
19578 test ! -s conftest.err
19579 } && test -s conftest.$ac_objext; then
19581 cat >>confdefs.h <<\_ACEOF
19582 #define HAVE_GETHOSTBYNAME_R 1
19583 _ACEOF
19586 cat >>confdefs.h <<\_ACEOF
19587 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
19588 _ACEOF
19590 { echo "$as_me:$LINENO: result: yes" >&5
19591 echo "${ECHO_T}yes" >&6; }
19593 else
19594 echo "$as_me: failed program was:" >&5
19595 sed 's/^/| /' conftest.$ac_ext >&5
19598 { echo "$as_me:$LINENO: result: no" >&5
19599 echo "${ECHO_T}no" >&6; }
19600 { echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
19601 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6; }
19602 cat >conftest.$ac_ext <<_ACEOF
19603 /* confdefs.h. */
19604 _ACEOF
19605 cat confdefs.h >>conftest.$ac_ext
19606 cat >>conftest.$ac_ext <<_ACEOF
19607 /* end confdefs.h. */
19609 # include <netdb.h>
19612 main ()
19615 char *name;
19616 struct hostent *he;
19617 char buffer[2048];
19618 int buflen = 2048;
19619 int h_errnop;
19621 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
19624 return 0;
19626 _ACEOF
19627 rm -f conftest.$ac_objext
19628 if { (ac_try="$ac_compile"
19629 case "(($ac_try" in
19630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19631 *) ac_try_echo=$ac_try;;
19632 esac
19633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19634 (eval "$ac_compile") 2>conftest.er1
19635 ac_status=$?
19636 grep -v '^ *+' conftest.er1 >conftest.err
19637 rm -f conftest.er1
19638 cat conftest.err >&5
19639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19640 (exit $ac_status); } && {
19641 test -z "$ac_c_werror_flag" ||
19642 test ! -s conftest.err
19643 } && test -s conftest.$ac_objext; then
19645 cat >>confdefs.h <<\_ACEOF
19646 #define HAVE_GETHOSTBYNAME_R 1
19647 _ACEOF
19650 cat >>confdefs.h <<\_ACEOF
19651 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
19652 _ACEOF
19654 { echo "$as_me:$LINENO: result: yes" >&5
19655 echo "${ECHO_T}yes" >&6; }
19657 else
19658 echo "$as_me: failed program was:" >&5
19659 sed 's/^/| /' conftest.$ac_ext >&5
19662 { echo "$as_me:$LINENO: result: no" >&5
19663 echo "${ECHO_T}no" >&6; }
19664 { echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
19665 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6; }
19666 cat >conftest.$ac_ext <<_ACEOF
19667 /* confdefs.h. */
19668 _ACEOF
19669 cat confdefs.h >>conftest.$ac_ext
19670 cat >>conftest.$ac_ext <<_ACEOF
19671 /* end confdefs.h. */
19673 # include <netdb.h>
19676 main ()
19679 char *name;
19680 struct hostent *he;
19681 struct hostent_data data;
19683 (void) gethostbyname_r(name, he, &data);
19686 return 0;
19688 _ACEOF
19689 rm -f conftest.$ac_objext
19690 if { (ac_try="$ac_compile"
19691 case "(($ac_try" in
19692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19693 *) ac_try_echo=$ac_try;;
19694 esac
19695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19696 (eval "$ac_compile") 2>conftest.er1
19697 ac_status=$?
19698 grep -v '^ *+' conftest.er1 >conftest.err
19699 rm -f conftest.er1
19700 cat conftest.err >&5
19701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19702 (exit $ac_status); } && {
19703 test -z "$ac_c_werror_flag" ||
19704 test ! -s conftest.err
19705 } && test -s conftest.$ac_objext; then
19707 cat >>confdefs.h <<\_ACEOF
19708 #define HAVE_GETHOSTBYNAME_R 1
19709 _ACEOF
19712 cat >>confdefs.h <<\_ACEOF
19713 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
19714 _ACEOF
19716 { echo "$as_me:$LINENO: result: yes" >&5
19717 echo "${ECHO_T}yes" >&6; }
19719 else
19720 echo "$as_me: failed program was:" >&5
19721 sed 's/^/| /' conftest.$ac_ext >&5
19724 { echo "$as_me:$LINENO: result: no" >&5
19725 echo "${ECHO_T}no" >&6; }
19729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19738 CFLAGS=$OLD_CFLAGS
19740 else
19743 for ac_func in gethostbyname
19745 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19746 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19747 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19748 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19749 echo $ECHO_N "(cached) $ECHO_C" >&6
19750 else
19751 cat >conftest.$ac_ext <<_ACEOF
19752 /* confdefs.h. */
19753 _ACEOF
19754 cat confdefs.h >>conftest.$ac_ext
19755 cat >>conftest.$ac_ext <<_ACEOF
19756 /* end confdefs.h. */
19757 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19758 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19759 #define $ac_func innocuous_$ac_func
19761 /* System header to define __stub macros and hopefully few prototypes,
19762 which can conflict with char $ac_func (); below.
19763 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19764 <limits.h> exists even on freestanding compilers. */
19766 #ifdef __STDC__
19767 # include <limits.h>
19768 #else
19769 # include <assert.h>
19770 #endif
19772 #undef $ac_func
19774 /* Override any GCC internal prototype to avoid an error.
19775 Use char because int might match the return type of a GCC
19776 builtin and then its argument prototype would still apply. */
19777 #ifdef __cplusplus
19778 extern "C"
19779 #endif
19780 char $ac_func ();
19781 /* The GNU C library defines this for functions which it implements
19782 to always fail with ENOSYS. Some functions are actually named
19783 something starting with __ and the normal name is an alias. */
19784 #if defined __stub_$ac_func || defined __stub___$ac_func
19785 choke me
19786 #endif
19789 main ()
19791 return $ac_func ();
19793 return 0;
19795 _ACEOF
19796 rm -f conftest.$ac_objext conftest$ac_exeext
19797 if { (ac_try="$ac_link"
19798 case "(($ac_try" in
19799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19800 *) ac_try_echo=$ac_try;;
19801 esac
19802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19803 (eval "$ac_link") 2>conftest.er1
19804 ac_status=$?
19805 grep -v '^ *+' conftest.er1 >conftest.err
19806 rm -f conftest.er1
19807 cat conftest.err >&5
19808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19809 (exit $ac_status); } && {
19810 test -z "$ac_c_werror_flag" ||
19811 test ! -s conftest.err
19812 } && test -s conftest$ac_exeext &&
19813 $as_test_x conftest$ac_exeext; then
19814 eval "$as_ac_var=yes"
19815 else
19816 echo "$as_me: failed program was:" >&5
19817 sed 's/^/| /' conftest.$ac_ext >&5
19819 eval "$as_ac_var=no"
19822 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19823 conftest$ac_exeext conftest.$ac_ext
19825 ac_res=`eval echo '${'$as_ac_var'}'`
19826 { echo "$as_me:$LINENO: result: $ac_res" >&5
19827 echo "${ECHO_T}$ac_res" >&6; }
19828 if test `eval echo '${'$as_ac_var'}'` = yes; then
19829 cat >>confdefs.h <<_ACEOF
19830 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19831 _ACEOF
19834 done
19845 # checks for system services
19846 # (none yet)
19848 # Linux requires this for correct f.p. operations
19849 { echo "$as_me:$LINENO: checking for __fpu_control" >&5
19850 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6; }
19851 if test "${ac_cv_func___fpu_control+set}" = set; then
19852 echo $ECHO_N "(cached) $ECHO_C" >&6
19853 else
19854 cat >conftest.$ac_ext <<_ACEOF
19855 /* confdefs.h. */
19856 _ACEOF
19857 cat confdefs.h >>conftest.$ac_ext
19858 cat >>conftest.$ac_ext <<_ACEOF
19859 /* end confdefs.h. */
19860 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
19861 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19862 #define __fpu_control innocuous___fpu_control
19864 /* System header to define __stub macros and hopefully few prototypes,
19865 which can conflict with char __fpu_control (); below.
19866 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19867 <limits.h> exists even on freestanding compilers. */
19869 #ifdef __STDC__
19870 # include <limits.h>
19871 #else
19872 # include <assert.h>
19873 #endif
19875 #undef __fpu_control
19877 /* Override any GCC internal prototype to avoid an error.
19878 Use char because int might match the return type of a GCC
19879 builtin and then its argument prototype would still apply. */
19880 #ifdef __cplusplus
19881 extern "C"
19882 #endif
19883 char __fpu_control ();
19884 /* The GNU C library defines this for functions which it implements
19885 to always fail with ENOSYS. Some functions are actually named
19886 something starting with __ and the normal name is an alias. */
19887 #if defined __stub___fpu_control || defined __stub_____fpu_control
19888 choke me
19889 #endif
19892 main ()
19894 return __fpu_control ();
19896 return 0;
19898 _ACEOF
19899 rm -f conftest.$ac_objext conftest$ac_exeext
19900 if { (ac_try="$ac_link"
19901 case "(($ac_try" in
19902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19903 *) ac_try_echo=$ac_try;;
19904 esac
19905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19906 (eval "$ac_link") 2>conftest.er1
19907 ac_status=$?
19908 grep -v '^ *+' conftest.er1 >conftest.err
19909 rm -f conftest.er1
19910 cat conftest.err >&5
19911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19912 (exit $ac_status); } && {
19913 test -z "$ac_c_werror_flag" ||
19914 test ! -s conftest.err
19915 } && test -s conftest$ac_exeext &&
19916 $as_test_x conftest$ac_exeext; then
19917 ac_cv_func___fpu_control=yes
19918 else
19919 echo "$as_me: failed program was:" >&5
19920 sed 's/^/| /' conftest.$ac_ext >&5
19922 ac_cv_func___fpu_control=no
19925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19926 conftest$ac_exeext conftest.$ac_ext
19928 { echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
19929 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6; }
19930 if test $ac_cv_func___fpu_control = yes; then
19932 else
19934 { echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
19935 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6; }
19936 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
19937 echo $ECHO_N "(cached) $ECHO_C" >&6
19938 else
19939 ac_check_lib_save_LIBS=$LIBS
19940 LIBS="-lieee $LIBS"
19941 cat >conftest.$ac_ext <<_ACEOF
19942 /* confdefs.h. */
19943 _ACEOF
19944 cat confdefs.h >>conftest.$ac_ext
19945 cat >>conftest.$ac_ext <<_ACEOF
19946 /* end confdefs.h. */
19948 /* Override any GCC internal prototype to avoid an error.
19949 Use char because int might match the return type of a GCC
19950 builtin and then its argument prototype would still apply. */
19951 #ifdef __cplusplus
19952 extern "C"
19953 #endif
19954 char __fpu_control ();
19956 main ()
19958 return __fpu_control ();
19960 return 0;
19962 _ACEOF
19963 rm -f conftest.$ac_objext conftest$ac_exeext
19964 if { (ac_try="$ac_link"
19965 case "(($ac_try" in
19966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19967 *) ac_try_echo=$ac_try;;
19968 esac
19969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19970 (eval "$ac_link") 2>conftest.er1
19971 ac_status=$?
19972 grep -v '^ *+' conftest.er1 >conftest.err
19973 rm -f conftest.er1
19974 cat conftest.err >&5
19975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19976 (exit $ac_status); } && {
19977 test -z "$ac_c_werror_flag" ||
19978 test ! -s conftest.err
19979 } && test -s conftest$ac_exeext &&
19980 $as_test_x conftest$ac_exeext; then
19981 ac_cv_lib_ieee___fpu_control=yes
19982 else
19983 echo "$as_me: failed program was:" >&5
19984 sed 's/^/| /' conftest.$ac_ext >&5
19986 ac_cv_lib_ieee___fpu_control=no
19989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19990 conftest$ac_exeext conftest.$ac_ext
19991 LIBS=$ac_check_lib_save_LIBS
19993 { echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
19994 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6; }
19995 if test $ac_cv_lib_ieee___fpu_control = yes; then
19996 cat >>confdefs.h <<_ACEOF
19997 #define HAVE_LIBIEEE 1
19998 _ACEOF
20000 LIBS="-lieee $LIBS"
20008 # Check for --with-fpectl
20009 { echo "$as_me:$LINENO: checking for --with-fpectl" >&5
20010 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6; }
20012 # Check whether --with-fpectl was given.
20013 if test "${with_fpectl+set}" = set; then
20014 withval=$with_fpectl;
20015 if test "$withval" != no
20016 then
20018 cat >>confdefs.h <<\_ACEOF
20019 #define WANT_SIGFPE_HANDLER 1
20020 _ACEOF
20022 { echo "$as_me:$LINENO: result: yes" >&5
20023 echo "${ECHO_T}yes" >&6; }
20024 else { echo "$as_me:$LINENO: result: no" >&5
20025 echo "${ECHO_T}no" >&6; }
20027 else
20028 { echo "$as_me:$LINENO: result: no" >&5
20029 echo "${ECHO_T}no" >&6; }
20033 # check for --with-libm=...
20035 case $ac_sys_system in
20036 Darwin) ;;
20037 BeOS) ;;
20038 *) LIBM=-lm
20039 esac
20040 { echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
20041 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6; }
20043 # Check whether --with-libm was given.
20044 if test "${with_libm+set}" = set; then
20045 withval=$with_libm;
20046 if test "$withval" = no
20047 then LIBM=
20048 { echo "$as_me:$LINENO: result: force LIBM empty" >&5
20049 echo "${ECHO_T}force LIBM empty" >&6; }
20050 elif test "$withval" != yes
20051 then LIBM=$withval
20052 { echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
20053 echo "${ECHO_T}set LIBM=\"$withval\"" >&6; }
20054 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
20055 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
20056 { (exit 1); exit 1; }; }
20058 else
20059 { echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
20060 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6; }
20064 # check for --with-libc=...
20066 { echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
20067 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6; }
20069 # Check whether --with-libc was given.
20070 if test "${with_libc+set}" = set; then
20071 withval=$with_libc;
20072 if test "$withval" = no
20073 then LIBC=
20074 { echo "$as_me:$LINENO: result: force LIBC empty" >&5
20075 echo "${ECHO_T}force LIBC empty" >&6; }
20076 elif test "$withval" != yes
20077 then LIBC=$withval
20078 { echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
20079 echo "${ECHO_T}set LIBC=\"$withval\"" >&6; }
20080 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
20081 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
20082 { (exit 1); exit 1; }; }
20084 else
20085 { echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
20086 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6; }
20090 # check for hypot() in math library
20091 LIBS_SAVE=$LIBS
20092 LIBS="$LIBS $LIBM"
20094 for ac_func in hypot
20096 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20097 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20098 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20099 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20100 echo $ECHO_N "(cached) $ECHO_C" >&6
20101 else
20102 cat >conftest.$ac_ext <<_ACEOF
20103 /* confdefs.h. */
20104 _ACEOF
20105 cat confdefs.h >>conftest.$ac_ext
20106 cat >>conftest.$ac_ext <<_ACEOF
20107 /* end confdefs.h. */
20108 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20109 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20110 #define $ac_func innocuous_$ac_func
20112 /* System header to define __stub macros and hopefully few prototypes,
20113 which can conflict with char $ac_func (); below.
20114 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20115 <limits.h> exists even on freestanding compilers. */
20117 #ifdef __STDC__
20118 # include <limits.h>
20119 #else
20120 # include <assert.h>
20121 #endif
20123 #undef $ac_func
20125 /* Override any GCC internal prototype to avoid an error.
20126 Use char because int might match the return type of a GCC
20127 builtin and then its argument prototype would still apply. */
20128 #ifdef __cplusplus
20129 extern "C"
20130 #endif
20131 char $ac_func ();
20132 /* The GNU C library defines this for functions which it implements
20133 to always fail with ENOSYS. Some functions are actually named
20134 something starting with __ and the normal name is an alias. */
20135 #if defined __stub_$ac_func || defined __stub___$ac_func
20136 choke me
20137 #endif
20140 main ()
20142 return $ac_func ();
20144 return 0;
20146 _ACEOF
20147 rm -f conftest.$ac_objext conftest$ac_exeext
20148 if { (ac_try="$ac_link"
20149 case "(($ac_try" in
20150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20151 *) ac_try_echo=$ac_try;;
20152 esac
20153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20154 (eval "$ac_link") 2>conftest.er1
20155 ac_status=$?
20156 grep -v '^ *+' conftest.er1 >conftest.err
20157 rm -f conftest.er1
20158 cat conftest.err >&5
20159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20160 (exit $ac_status); } && {
20161 test -z "$ac_c_werror_flag" ||
20162 test ! -s conftest.err
20163 } && test -s conftest$ac_exeext &&
20164 $as_test_x conftest$ac_exeext; then
20165 eval "$as_ac_var=yes"
20166 else
20167 echo "$as_me: failed program was:" >&5
20168 sed 's/^/| /' conftest.$ac_ext >&5
20170 eval "$as_ac_var=no"
20173 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20174 conftest$ac_exeext conftest.$ac_ext
20176 ac_res=`eval echo '${'$as_ac_var'}'`
20177 { echo "$as_me:$LINENO: result: $ac_res" >&5
20178 echo "${ECHO_T}$ac_res" >&6; }
20179 if test `eval echo '${'$as_ac_var'}'` = yes; then
20180 cat >>confdefs.h <<_ACEOF
20181 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20182 _ACEOF
20184 else
20185 case " $LIBOBJS " in
20186 *" $ac_func.$ac_objext "* ) ;;
20187 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20189 esac
20192 done
20195 LIBS=$LIBS_SAVE
20197 # check for wchar.h
20198 if test "${ac_cv_header_wchar_h+set}" = set; then
20199 { echo "$as_me:$LINENO: checking for wchar.h" >&5
20200 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
20201 if test "${ac_cv_header_wchar_h+set}" = set; then
20202 echo $ECHO_N "(cached) $ECHO_C" >&6
20204 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
20205 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
20206 else
20207 # Is the header compilable?
20208 { echo "$as_me:$LINENO: checking wchar.h usability" >&5
20209 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6; }
20210 cat >conftest.$ac_ext <<_ACEOF
20211 /* confdefs.h. */
20212 _ACEOF
20213 cat confdefs.h >>conftest.$ac_ext
20214 cat >>conftest.$ac_ext <<_ACEOF
20215 /* end confdefs.h. */
20216 $ac_includes_default
20217 #include <wchar.h>
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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20226 (eval "$ac_compile") 2>conftest.er1
20227 ac_status=$?
20228 grep -v '^ *+' conftest.er1 >conftest.err
20229 rm -f conftest.er1
20230 cat conftest.err >&5
20231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20232 (exit $ac_status); } && {
20233 test -z "$ac_c_werror_flag" ||
20234 test ! -s conftest.err
20235 } && test -s conftest.$ac_objext; then
20236 ac_header_compiler=yes
20237 else
20238 echo "$as_me: failed program was:" >&5
20239 sed 's/^/| /' conftest.$ac_ext >&5
20241 ac_header_compiler=no
20244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20245 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20246 echo "${ECHO_T}$ac_header_compiler" >&6; }
20248 # Is the header present?
20249 { echo "$as_me:$LINENO: checking wchar.h presence" >&5
20250 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6; }
20251 cat >conftest.$ac_ext <<_ACEOF
20252 /* confdefs.h. */
20253 _ACEOF
20254 cat confdefs.h >>conftest.$ac_ext
20255 cat >>conftest.$ac_ext <<_ACEOF
20256 /* end confdefs.h. */
20257 #include <wchar.h>
20258 _ACEOF
20259 if { (ac_try="$ac_cpp conftest.$ac_ext"
20260 case "(($ac_try" in
20261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20262 *) ac_try_echo=$ac_try;;
20263 esac
20264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20265 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20266 ac_status=$?
20267 grep -v '^ *+' conftest.er1 >conftest.err
20268 rm -f conftest.er1
20269 cat conftest.err >&5
20270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20271 (exit $ac_status); } >/dev/null && {
20272 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20273 test ! -s conftest.err
20274 }; then
20275 ac_header_preproc=yes
20276 else
20277 echo "$as_me: failed program was:" >&5
20278 sed 's/^/| /' conftest.$ac_ext >&5
20280 ac_header_preproc=no
20283 rm -f conftest.err conftest.$ac_ext
20284 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20285 echo "${ECHO_T}$ac_header_preproc" >&6; }
20287 # So? What about this header?
20288 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20289 yes:no: )
20290 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
20291 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20292 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
20293 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
20294 ac_header_preproc=yes
20296 no:yes:* )
20297 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
20298 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
20299 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
20300 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
20301 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
20302 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
20303 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
20304 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
20305 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
20306 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
20307 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
20308 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
20309 ( cat <<\_ASBOX
20310 ## ------------------------------------------------ ##
20311 ## Report this to http://www.python.org/python-bugs ##
20312 ## ------------------------------------------------ ##
20313 _ASBOX
20314 ) | sed "s/^/$as_me: WARNING: /" >&2
20316 esac
20317 { echo "$as_me:$LINENO: checking for wchar.h" >&5
20318 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
20319 if test "${ac_cv_header_wchar_h+set}" = set; then
20320 echo $ECHO_N "(cached) $ECHO_C" >&6
20321 else
20322 ac_cv_header_wchar_h=$ac_header_preproc
20324 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
20325 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
20328 if test $ac_cv_header_wchar_h = yes; then
20331 cat >>confdefs.h <<\_ACEOF
20332 #define HAVE_WCHAR_H 1
20333 _ACEOF
20335 wchar_h="yes"
20337 else
20338 wchar_h="no"
20344 # determine wchar_t size
20345 if test "$wchar_h" = yes
20346 then
20347 { echo "$as_me:$LINENO: checking for wchar_t" >&5
20348 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
20349 if test "${ac_cv_type_wchar_t+set}" = set; then
20350 echo $ECHO_N "(cached) $ECHO_C" >&6
20351 else
20352 cat >conftest.$ac_ext <<_ACEOF
20353 /* confdefs.h. */
20354 _ACEOF
20355 cat confdefs.h >>conftest.$ac_ext
20356 cat >>conftest.$ac_ext <<_ACEOF
20357 /* end confdefs.h. */
20358 #include <wchar.h>
20360 typedef wchar_t ac__type_new_;
20362 main ()
20364 if ((ac__type_new_ *) 0)
20365 return 0;
20366 if (sizeof (ac__type_new_))
20367 return 0;
20369 return 0;
20371 _ACEOF
20372 rm -f conftest.$ac_objext
20373 if { (ac_try="$ac_compile"
20374 case "(($ac_try" in
20375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20376 *) ac_try_echo=$ac_try;;
20377 esac
20378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20379 (eval "$ac_compile") 2>conftest.er1
20380 ac_status=$?
20381 grep -v '^ *+' conftest.er1 >conftest.err
20382 rm -f conftest.er1
20383 cat conftest.err >&5
20384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20385 (exit $ac_status); } && {
20386 test -z "$ac_c_werror_flag" ||
20387 test ! -s conftest.err
20388 } && test -s conftest.$ac_objext; then
20389 ac_cv_type_wchar_t=yes
20390 else
20391 echo "$as_me: failed program was:" >&5
20392 sed 's/^/| /' conftest.$ac_ext >&5
20394 ac_cv_type_wchar_t=no
20397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20399 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
20400 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
20402 # The cast to long int works around a bug in the HP C Compiler
20403 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20404 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20405 # This bug is HP SR number 8606223364.
20406 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
20407 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
20408 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
20409 echo $ECHO_N "(cached) $ECHO_C" >&6
20410 else
20411 if test "$cross_compiling" = yes; then
20412 # Depending upon the size, compute the lo and hi bounds.
20413 cat >conftest.$ac_ext <<_ACEOF
20414 /* confdefs.h. */
20415 _ACEOF
20416 cat confdefs.h >>conftest.$ac_ext
20417 cat >>conftest.$ac_ext <<_ACEOF
20418 /* end confdefs.h. */
20419 #include <wchar.h>
20421 typedef wchar_t ac__type_sizeof_;
20423 main ()
20425 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20426 test_array [0] = 0
20429 return 0;
20431 _ACEOF
20432 rm -f conftest.$ac_objext
20433 if { (ac_try="$ac_compile"
20434 case "(($ac_try" in
20435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20436 *) ac_try_echo=$ac_try;;
20437 esac
20438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20439 (eval "$ac_compile") 2>conftest.er1
20440 ac_status=$?
20441 grep -v '^ *+' conftest.er1 >conftest.err
20442 rm -f conftest.er1
20443 cat conftest.err >&5
20444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20445 (exit $ac_status); } && {
20446 test -z "$ac_c_werror_flag" ||
20447 test ! -s conftest.err
20448 } && test -s conftest.$ac_objext; then
20449 ac_lo=0 ac_mid=0
20450 while :; do
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 #include <wchar.h>
20459 typedef wchar_t ac__type_sizeof_;
20461 main ()
20463 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20464 test_array [0] = 0
20467 return 0;
20469 _ACEOF
20470 rm -f conftest.$ac_objext
20471 if { (ac_try="$ac_compile"
20472 case "(($ac_try" in
20473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20474 *) ac_try_echo=$ac_try;;
20475 esac
20476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20477 (eval "$ac_compile") 2>conftest.er1
20478 ac_status=$?
20479 grep -v '^ *+' conftest.er1 >conftest.err
20480 rm -f conftest.er1
20481 cat conftest.err >&5
20482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20483 (exit $ac_status); } && {
20484 test -z "$ac_c_werror_flag" ||
20485 test ! -s conftest.err
20486 } && test -s conftest.$ac_objext; then
20487 ac_hi=$ac_mid; break
20488 else
20489 echo "$as_me: failed program was:" >&5
20490 sed 's/^/| /' conftest.$ac_ext >&5
20492 ac_lo=`expr $ac_mid + 1`
20493 if test $ac_lo -le $ac_mid; then
20494 ac_lo= ac_hi=
20495 break
20497 ac_mid=`expr 2 '*' $ac_mid + 1`
20500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20501 done
20502 else
20503 echo "$as_me: failed program was:" >&5
20504 sed 's/^/| /' conftest.$ac_ext >&5
20506 cat >conftest.$ac_ext <<_ACEOF
20507 /* confdefs.h. */
20508 _ACEOF
20509 cat confdefs.h >>conftest.$ac_ext
20510 cat >>conftest.$ac_ext <<_ACEOF
20511 /* end confdefs.h. */
20512 #include <wchar.h>
20514 typedef wchar_t ac__type_sizeof_;
20516 main ()
20518 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20519 test_array [0] = 0
20522 return 0;
20524 _ACEOF
20525 rm -f conftest.$ac_objext
20526 if { (ac_try="$ac_compile"
20527 case "(($ac_try" in
20528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20529 *) ac_try_echo=$ac_try;;
20530 esac
20531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20532 (eval "$ac_compile") 2>conftest.er1
20533 ac_status=$?
20534 grep -v '^ *+' conftest.er1 >conftest.err
20535 rm -f conftest.er1
20536 cat conftest.err >&5
20537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20538 (exit $ac_status); } && {
20539 test -z "$ac_c_werror_flag" ||
20540 test ! -s conftest.err
20541 } && test -s conftest.$ac_objext; then
20542 ac_hi=-1 ac_mid=-1
20543 while :; do
20544 cat >conftest.$ac_ext <<_ACEOF
20545 /* confdefs.h. */
20546 _ACEOF
20547 cat confdefs.h >>conftest.$ac_ext
20548 cat >>conftest.$ac_ext <<_ACEOF
20549 /* end confdefs.h. */
20550 #include <wchar.h>
20552 typedef wchar_t ac__type_sizeof_;
20554 main ()
20556 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20557 test_array [0] = 0
20560 return 0;
20562 _ACEOF
20563 rm -f conftest.$ac_objext
20564 if { (ac_try="$ac_compile"
20565 case "(($ac_try" in
20566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20567 *) ac_try_echo=$ac_try;;
20568 esac
20569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20570 (eval "$ac_compile") 2>conftest.er1
20571 ac_status=$?
20572 grep -v '^ *+' conftest.er1 >conftest.err
20573 rm -f conftest.er1
20574 cat conftest.err >&5
20575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20576 (exit $ac_status); } && {
20577 test -z "$ac_c_werror_flag" ||
20578 test ! -s conftest.err
20579 } && test -s conftest.$ac_objext; then
20580 ac_lo=$ac_mid; break
20581 else
20582 echo "$as_me: failed program was:" >&5
20583 sed 's/^/| /' conftest.$ac_ext >&5
20585 ac_hi=`expr '(' $ac_mid ')' - 1`
20586 if test $ac_mid -le $ac_hi; then
20587 ac_lo= ac_hi=
20588 break
20590 ac_mid=`expr 2 '*' $ac_mid`
20593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20594 done
20595 else
20596 echo "$as_me: failed program was:" >&5
20597 sed 's/^/| /' conftest.$ac_ext >&5
20599 ac_lo= ac_hi=
20602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20606 # Binary search between lo and hi bounds.
20607 while test "x$ac_lo" != "x$ac_hi"; do
20608 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20609 cat >conftest.$ac_ext <<_ACEOF
20610 /* confdefs.h. */
20611 _ACEOF
20612 cat confdefs.h >>conftest.$ac_ext
20613 cat >>conftest.$ac_ext <<_ACEOF
20614 /* end confdefs.h. */
20615 #include <wchar.h>
20617 typedef wchar_t ac__type_sizeof_;
20619 main ()
20621 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20622 test_array [0] = 0
20625 return 0;
20627 _ACEOF
20628 rm -f conftest.$ac_objext
20629 if { (ac_try="$ac_compile"
20630 case "(($ac_try" in
20631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20632 *) ac_try_echo=$ac_try;;
20633 esac
20634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20635 (eval "$ac_compile") 2>conftest.er1
20636 ac_status=$?
20637 grep -v '^ *+' conftest.er1 >conftest.err
20638 rm -f conftest.er1
20639 cat conftest.err >&5
20640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20641 (exit $ac_status); } && {
20642 test -z "$ac_c_werror_flag" ||
20643 test ! -s conftest.err
20644 } && test -s conftest.$ac_objext; then
20645 ac_hi=$ac_mid
20646 else
20647 echo "$as_me: failed program was:" >&5
20648 sed 's/^/| /' conftest.$ac_ext >&5
20650 ac_lo=`expr '(' $ac_mid ')' + 1`
20653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20654 done
20655 case $ac_lo in
20656 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
20657 '') if test "$ac_cv_type_wchar_t" = yes; then
20658 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
20659 See \`config.log' for more details." >&5
20660 echo "$as_me: error: cannot compute sizeof (wchar_t)
20661 See \`config.log' for more details." >&2;}
20662 { (exit 77); exit 77; }; }
20663 else
20664 ac_cv_sizeof_wchar_t=0
20665 fi ;;
20666 esac
20667 else
20668 cat >conftest.$ac_ext <<_ACEOF
20669 /* confdefs.h. */
20670 _ACEOF
20671 cat confdefs.h >>conftest.$ac_ext
20672 cat >>conftest.$ac_ext <<_ACEOF
20673 /* end confdefs.h. */
20674 #include <wchar.h>
20676 typedef wchar_t ac__type_sizeof_;
20677 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20678 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20679 #include <stdio.h>
20680 #include <stdlib.h>
20682 main ()
20685 FILE *f = fopen ("conftest.val", "w");
20686 if (! f)
20687 return 1;
20688 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20690 long int i = longval ();
20691 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20692 return 1;
20693 fprintf (f, "%ld\n", i);
20695 else
20697 unsigned long int i = ulongval ();
20698 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20699 return 1;
20700 fprintf (f, "%lu\n", i);
20702 return ferror (f) || fclose (f) != 0;
20705 return 0;
20707 _ACEOF
20708 rm -f conftest$ac_exeext
20709 if { (ac_try="$ac_link"
20710 case "(($ac_try" in
20711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20712 *) ac_try_echo=$ac_try;;
20713 esac
20714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20715 (eval "$ac_link") 2>&5
20716 ac_status=$?
20717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20718 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20719 { (case "(($ac_try" in
20720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20721 *) ac_try_echo=$ac_try;;
20722 esac
20723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20724 (eval "$ac_try") 2>&5
20725 ac_status=$?
20726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20727 (exit $ac_status); }; }; then
20728 ac_cv_sizeof_wchar_t=`cat conftest.val`
20729 else
20730 echo "$as_me: program exited with status $ac_status" >&5
20731 echo "$as_me: failed program was:" >&5
20732 sed 's/^/| /' conftest.$ac_ext >&5
20734 ( exit $ac_status )
20735 if test "$ac_cv_type_wchar_t" = yes; then
20736 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
20737 See \`config.log' for more details." >&5
20738 echo "$as_me: error: cannot compute sizeof (wchar_t)
20739 See \`config.log' for more details." >&2;}
20740 { (exit 77); exit 77; }; }
20741 else
20742 ac_cv_sizeof_wchar_t=0
20745 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20747 rm -f conftest.val
20749 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
20750 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
20754 cat >>confdefs.h <<_ACEOF
20755 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
20756 _ACEOF
20761 { echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
20762 echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6; }
20763 have_ucs4_tcl=no
20764 cat >conftest.$ac_ext <<_ACEOF
20765 /* confdefs.h. */
20766 _ACEOF
20767 cat confdefs.h >>conftest.$ac_ext
20768 cat >>conftest.$ac_ext <<_ACEOF
20769 /* end confdefs.h. */
20771 #include <tcl.h>
20772 #if TCL_UTF_MAX != 6
20773 # error "NOT UCS4_TCL"
20774 #endif
20776 main ()
20780 return 0;
20782 _ACEOF
20783 rm -f conftest.$ac_objext
20784 if { (ac_try="$ac_compile"
20785 case "(($ac_try" in
20786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20787 *) ac_try_echo=$ac_try;;
20788 esac
20789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20790 (eval "$ac_compile") 2>conftest.er1
20791 ac_status=$?
20792 grep -v '^ *+' conftest.er1 >conftest.err
20793 rm -f conftest.er1
20794 cat conftest.err >&5
20795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20796 (exit $ac_status); } && {
20797 test -z "$ac_c_werror_flag" ||
20798 test ! -s conftest.err
20799 } && test -s conftest.$ac_objext; then
20802 cat >>confdefs.h <<\_ACEOF
20803 #define HAVE_UCS4_TCL 1
20804 _ACEOF
20806 have_ucs4_tcl=yes
20808 else
20809 echo "$as_me: failed program was:" >&5
20810 sed 's/^/| /' conftest.$ac_ext >&5
20815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20816 { echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
20817 echo "${ECHO_T}$have_ucs4_tcl" >&6; }
20819 # check whether wchar_t is signed or not
20820 if test "$wchar_h" = yes
20821 then
20822 # check whether wchar_t is signed or not
20823 { echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
20824 echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6; }
20825 if test "${ac_cv_wchar_t_signed+set}" = set; then
20826 echo $ECHO_N "(cached) $ECHO_C" >&6
20827 else
20829 if test "$cross_compiling" = yes; then
20830 ac_cv_wchar_t_signed=yes
20831 else
20832 cat >conftest.$ac_ext <<_ACEOF
20833 /* confdefs.h. */
20834 _ACEOF
20835 cat confdefs.h >>conftest.$ac_ext
20836 cat >>conftest.$ac_ext <<_ACEOF
20837 /* end confdefs.h. */
20839 #include <wchar.h>
20840 int main()
20842 /* Success: exit code 0 */
20843 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
20846 _ACEOF
20847 rm -f conftest$ac_exeext
20848 if { (ac_try="$ac_link"
20849 case "(($ac_try" in
20850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20851 *) ac_try_echo=$ac_try;;
20852 esac
20853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20854 (eval "$ac_link") 2>&5
20855 ac_status=$?
20856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20857 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20858 { (case "(($ac_try" in
20859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20860 *) ac_try_echo=$ac_try;;
20861 esac
20862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20863 (eval "$ac_try") 2>&5
20864 ac_status=$?
20865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20866 (exit $ac_status); }; }; then
20867 ac_cv_wchar_t_signed=yes
20868 else
20869 echo "$as_me: program exited with status $ac_status" >&5
20870 echo "$as_me: failed program was:" >&5
20871 sed 's/^/| /' conftest.$ac_ext >&5
20873 ( exit $ac_status )
20874 ac_cv_wchar_t_signed=no
20876 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20882 { echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
20883 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6; }
20886 { echo "$as_me:$LINENO: checking what type to use for unicode" >&5
20887 echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6; }
20888 # Check whether --enable-unicode was given.
20889 if test "${enable_unicode+set}" = set; then
20890 enableval=$enable_unicode;
20891 else
20892 enable_unicode=yes
20896 if test $enable_unicode = yes
20897 then
20898 # Without any arguments, Py_UNICODE defaults to two-byte mode
20899 case "$have_ucs4_tcl" in
20900 yes) enable_unicode="ucs4"
20902 *) enable_unicode="ucs2"
20904 esac
20909 case "$enable_unicode" in
20910 ucs2) unicode_size="2"
20911 cat >>confdefs.h <<\_ACEOF
20912 #define Py_UNICODE_SIZE 2
20913 _ACEOF
20916 ucs4) unicode_size="4"
20917 cat >>confdefs.h <<\_ACEOF
20918 #define Py_UNICODE_SIZE 4
20919 _ACEOF
20922 esac
20928 if test "$enable_unicode" = "no"
20929 then
20930 UNICODE_OBJS=""
20931 { echo "$as_me:$LINENO: result: not used" >&5
20932 echo "${ECHO_T}not used" >&6; }
20933 else
20934 UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o"
20936 cat >>confdefs.h <<\_ACEOF
20937 #define Py_USING_UNICODE 1
20938 _ACEOF
20941 # wchar_t is only usable if it maps to an unsigned type
20942 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
20943 -a "$ac_cv_wchar_t_signed" = "no"
20944 then
20945 PY_UNICODE_TYPE="wchar_t"
20947 cat >>confdefs.h <<\_ACEOF
20948 #define HAVE_USABLE_WCHAR_T 1
20949 _ACEOF
20951 cat >>confdefs.h <<\_ACEOF
20952 #define PY_UNICODE_TYPE wchar_t
20953 _ACEOF
20955 elif test "$ac_cv_sizeof_short" = "$unicode_size"
20956 then
20957 PY_UNICODE_TYPE="unsigned short"
20958 cat >>confdefs.h <<\_ACEOF
20959 #define PY_UNICODE_TYPE unsigned short
20960 _ACEOF
20962 elif test "$ac_cv_sizeof_long" = "$unicode_size"
20963 then
20964 PY_UNICODE_TYPE="unsigned long"
20965 cat >>confdefs.h <<\_ACEOF
20966 #define PY_UNICODE_TYPE unsigned long
20967 _ACEOF
20969 else
20970 PY_UNICODE_TYPE="no type found"
20972 { echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
20973 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6; }
20976 # check for endianness
20977 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20978 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
20979 if test "${ac_cv_c_bigendian+set}" = set; then
20980 echo $ECHO_N "(cached) $ECHO_C" >&6
20981 else
20982 # See if sys/param.h defines the BYTE_ORDER macro.
20983 cat >conftest.$ac_ext <<_ACEOF
20984 /* confdefs.h. */
20985 _ACEOF
20986 cat confdefs.h >>conftest.$ac_ext
20987 cat >>conftest.$ac_ext <<_ACEOF
20988 /* end confdefs.h. */
20989 #include <sys/types.h>
20990 #include <sys/param.h>
20993 main ()
20995 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
20996 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
20997 bogus endian macros
20998 #endif
21001 return 0;
21003 _ACEOF
21004 rm -f conftest.$ac_objext
21005 if { (ac_try="$ac_compile"
21006 case "(($ac_try" in
21007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21008 *) ac_try_echo=$ac_try;;
21009 esac
21010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21011 (eval "$ac_compile") 2>conftest.er1
21012 ac_status=$?
21013 grep -v '^ *+' conftest.er1 >conftest.err
21014 rm -f conftest.er1
21015 cat conftest.err >&5
21016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21017 (exit $ac_status); } && {
21018 test -z "$ac_c_werror_flag" ||
21019 test ! -s conftest.err
21020 } && test -s conftest.$ac_objext; then
21021 # It does; now see whether it defined to BIG_ENDIAN or not.
21022 cat >conftest.$ac_ext <<_ACEOF
21023 /* confdefs.h. */
21024 _ACEOF
21025 cat confdefs.h >>conftest.$ac_ext
21026 cat >>conftest.$ac_ext <<_ACEOF
21027 /* end confdefs.h. */
21028 #include <sys/types.h>
21029 #include <sys/param.h>
21032 main ()
21034 #if BYTE_ORDER != BIG_ENDIAN
21035 not big endian
21036 #endif
21039 return 0;
21041 _ACEOF
21042 rm -f conftest.$ac_objext
21043 if { (ac_try="$ac_compile"
21044 case "(($ac_try" in
21045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21046 *) ac_try_echo=$ac_try;;
21047 esac
21048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21049 (eval "$ac_compile") 2>conftest.er1
21050 ac_status=$?
21051 grep -v '^ *+' conftest.er1 >conftest.err
21052 rm -f conftest.er1
21053 cat conftest.err >&5
21054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21055 (exit $ac_status); } && {
21056 test -z "$ac_c_werror_flag" ||
21057 test ! -s conftest.err
21058 } && test -s conftest.$ac_objext; then
21059 ac_cv_c_bigendian=yes
21060 else
21061 echo "$as_me: failed program was:" >&5
21062 sed 's/^/| /' conftest.$ac_ext >&5
21064 ac_cv_c_bigendian=no
21067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21068 else
21069 echo "$as_me: failed program was:" >&5
21070 sed 's/^/| /' conftest.$ac_ext >&5
21072 # It does not; compile a test program.
21073 if test "$cross_compiling" = yes; then
21074 # try to guess the endianness by grepping values into an object file
21075 ac_cv_c_bigendian=unknown
21076 cat >conftest.$ac_ext <<_ACEOF
21077 /* confdefs.h. */
21078 _ACEOF
21079 cat confdefs.h >>conftest.$ac_ext
21080 cat >>conftest.$ac_ext <<_ACEOF
21081 /* end confdefs.h. */
21082 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21083 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21084 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
21085 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21086 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21087 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
21089 main ()
21091 _ascii (); _ebcdic ();
21093 return 0;
21095 _ACEOF
21096 rm -f conftest.$ac_objext
21097 if { (ac_try="$ac_compile"
21098 case "(($ac_try" in
21099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21100 *) ac_try_echo=$ac_try;;
21101 esac
21102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21103 (eval "$ac_compile") 2>conftest.er1
21104 ac_status=$?
21105 grep -v '^ *+' conftest.er1 >conftest.err
21106 rm -f conftest.er1
21107 cat conftest.err >&5
21108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21109 (exit $ac_status); } && {
21110 test -z "$ac_c_werror_flag" ||
21111 test ! -s conftest.err
21112 } && test -s conftest.$ac_objext; then
21113 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
21114 ac_cv_c_bigendian=yes
21116 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21117 if test "$ac_cv_c_bigendian" = unknown; then
21118 ac_cv_c_bigendian=no
21119 else
21120 # finding both strings is unlikely to happen, but who knows?
21121 ac_cv_c_bigendian=unknown
21124 else
21125 echo "$as_me: failed program was:" >&5
21126 sed 's/^/| /' conftest.$ac_ext >&5
21131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21132 else
21133 cat >conftest.$ac_ext <<_ACEOF
21134 /* confdefs.h. */
21135 _ACEOF
21136 cat confdefs.h >>conftest.$ac_ext
21137 cat >>conftest.$ac_ext <<_ACEOF
21138 /* end confdefs.h. */
21139 $ac_includes_default
21141 main ()
21144 /* Are we little or big endian? From Harbison&Steele. */
21145 union
21147 long int l;
21148 char c[sizeof (long int)];
21149 } u;
21150 u.l = 1;
21151 return u.c[sizeof (long int) - 1] == 1;
21154 return 0;
21156 _ACEOF
21157 rm -f conftest$ac_exeext
21158 if { (ac_try="$ac_link"
21159 case "(($ac_try" in
21160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21161 *) ac_try_echo=$ac_try;;
21162 esac
21163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21164 (eval "$ac_link") 2>&5
21165 ac_status=$?
21166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21167 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21168 { (case "(($ac_try" in
21169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21170 *) ac_try_echo=$ac_try;;
21171 esac
21172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21173 (eval "$ac_try") 2>&5
21174 ac_status=$?
21175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21176 (exit $ac_status); }; }; then
21177 ac_cv_c_bigendian=no
21178 else
21179 echo "$as_me: program exited with status $ac_status" >&5
21180 echo "$as_me: failed program was:" >&5
21181 sed 's/^/| /' conftest.$ac_ext >&5
21183 ( exit $ac_status )
21184 ac_cv_c_bigendian=yes
21186 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21194 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
21195 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
21196 case $ac_cv_c_bigendian in
21197 yes)
21199 cat >>confdefs.h <<\_ACEOF
21200 #define WORDS_BIGENDIAN 1
21201 _ACEOF
21206 { { echo "$as_me:$LINENO: error: unknown endianness
21207 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
21208 echo "$as_me: error: unknown endianness
21209 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
21210 { (exit 1); exit 1; }; } ;;
21211 esac
21216 # Check whether right shifting a negative integer extends the sign bit
21217 # or fills with zeros (like the Cray J90, according to Tim Peters).
21218 { echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
21219 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6; }
21220 if test "${ac_cv_rshift_extends_sign+set}" = set; then
21221 echo $ECHO_N "(cached) $ECHO_C" >&6
21222 else
21224 if test "$cross_compiling" = yes; then
21225 ac_cv_rshift_extends_sign=yes
21226 else
21227 cat >conftest.$ac_ext <<_ACEOF
21228 /* confdefs.h. */
21229 _ACEOF
21230 cat confdefs.h >>conftest.$ac_ext
21231 cat >>conftest.$ac_ext <<_ACEOF
21232 /* end confdefs.h. */
21234 int main()
21236 exit(((-1)>>3 == -1) ? 0 : 1);
21239 _ACEOF
21240 rm -f conftest$ac_exeext
21241 if { (ac_try="$ac_link"
21242 case "(($ac_try" in
21243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21244 *) ac_try_echo=$ac_try;;
21245 esac
21246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21247 (eval "$ac_link") 2>&5
21248 ac_status=$?
21249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21250 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21251 { (case "(($ac_try" in
21252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21253 *) ac_try_echo=$ac_try;;
21254 esac
21255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21256 (eval "$ac_try") 2>&5
21257 ac_status=$?
21258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21259 (exit $ac_status); }; }; then
21260 ac_cv_rshift_extends_sign=yes
21261 else
21262 echo "$as_me: program exited with status $ac_status" >&5
21263 echo "$as_me: failed program was:" >&5
21264 sed 's/^/| /' conftest.$ac_ext >&5
21266 ( exit $ac_status )
21267 ac_cv_rshift_extends_sign=no
21269 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21275 { echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
21276 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6; }
21277 if test "$ac_cv_rshift_extends_sign" = no
21278 then
21280 cat >>confdefs.h <<\_ACEOF
21281 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
21282 _ACEOF
21286 # check for getc_unlocked and related locking functions
21287 { echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
21288 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6; }
21289 if test "${ac_cv_have_getc_unlocked+set}" = set; then
21290 echo $ECHO_N "(cached) $ECHO_C" >&6
21291 else
21293 cat >conftest.$ac_ext <<_ACEOF
21294 /* confdefs.h. */
21295 _ACEOF
21296 cat confdefs.h >>conftest.$ac_ext
21297 cat >>conftest.$ac_ext <<_ACEOF
21298 /* end confdefs.h. */
21299 #include <stdio.h>
21301 main ()
21304 FILE *f = fopen("/dev/null", "r");
21305 flockfile(f);
21306 getc_unlocked(f);
21307 funlockfile(f);
21310 return 0;
21312 _ACEOF
21313 rm -f conftest.$ac_objext conftest$ac_exeext
21314 if { (ac_try="$ac_link"
21315 case "(($ac_try" in
21316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21317 *) ac_try_echo=$ac_try;;
21318 esac
21319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21320 (eval "$ac_link") 2>conftest.er1
21321 ac_status=$?
21322 grep -v '^ *+' conftest.er1 >conftest.err
21323 rm -f conftest.er1
21324 cat conftest.err >&5
21325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21326 (exit $ac_status); } && {
21327 test -z "$ac_c_werror_flag" ||
21328 test ! -s conftest.err
21329 } && test -s conftest$ac_exeext &&
21330 $as_test_x conftest$ac_exeext; then
21331 ac_cv_have_getc_unlocked=yes
21332 else
21333 echo "$as_me: failed program was:" >&5
21334 sed 's/^/| /' conftest.$ac_ext >&5
21336 ac_cv_have_getc_unlocked=no
21339 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21340 conftest$ac_exeext conftest.$ac_ext
21343 { echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
21344 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6; }
21345 if test "$ac_cv_have_getc_unlocked" = yes
21346 then
21348 cat >>confdefs.h <<\_ACEOF
21349 #define HAVE_GETC_UNLOCKED 1
21350 _ACEOF
21354 # check where readline lives
21355 # save the value of LIBS so we don't actually link Python with readline
21356 LIBS_no_readline=$LIBS
21358 { echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
21359 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6; }
21360 if test "${ac_cv_lib_readline_readline+set}" = set; then
21361 echo $ECHO_N "(cached) $ECHO_C" >&6
21362 else
21363 ac_check_lib_save_LIBS=$LIBS
21364 LIBS="-lreadline $LIBS"
21365 cat >conftest.$ac_ext <<_ACEOF
21366 /* confdefs.h. */
21367 _ACEOF
21368 cat confdefs.h >>conftest.$ac_ext
21369 cat >>conftest.$ac_ext <<_ACEOF
21370 /* end confdefs.h. */
21372 /* Override any GCC internal prototype to avoid an error.
21373 Use char because int might match the return type of a GCC
21374 builtin and then its argument prototype would still apply. */
21375 #ifdef __cplusplus
21376 extern "C"
21377 #endif
21378 char readline ();
21380 main ()
21382 return readline ();
21384 return 0;
21386 _ACEOF
21387 rm -f conftest.$ac_objext conftest$ac_exeext
21388 if { (ac_try="$ac_link"
21389 case "(($ac_try" in
21390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21391 *) ac_try_echo=$ac_try;;
21392 esac
21393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21394 (eval "$ac_link") 2>conftest.er1
21395 ac_status=$?
21396 grep -v '^ *+' conftest.er1 >conftest.err
21397 rm -f conftest.er1
21398 cat conftest.err >&5
21399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21400 (exit $ac_status); } && {
21401 test -z "$ac_c_werror_flag" ||
21402 test ! -s conftest.err
21403 } && test -s conftest$ac_exeext &&
21404 $as_test_x conftest$ac_exeext; then
21405 ac_cv_lib_readline_readline=yes
21406 else
21407 echo "$as_me: failed program was:" >&5
21408 sed 's/^/| /' conftest.$ac_ext >&5
21410 ac_cv_lib_readline_readline=no
21413 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21414 conftest$ac_exeext conftest.$ac_ext
21415 LIBS=$ac_check_lib_save_LIBS
21417 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
21418 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6; }
21419 if test $ac_cv_lib_readline_readline = yes; then
21420 cat >>confdefs.h <<_ACEOF
21421 #define HAVE_LIBREADLINE 1
21422 _ACEOF
21424 LIBS="-lreadline $LIBS"
21428 if test "$ac_cv_have_readline_readline" = no
21429 then
21431 { echo "$as_me:$LINENO: checking for readline in -ltermcap" >&5
21432 echo $ECHO_N "checking for readline in -ltermcap... $ECHO_C" >&6; }
21433 if test "${ac_cv_lib_termcap_readline+set}" = set; then
21434 echo $ECHO_N "(cached) $ECHO_C" >&6
21435 else
21436 ac_check_lib_save_LIBS=$LIBS
21437 LIBS="-ltermcap $LIBS"
21438 cat >conftest.$ac_ext <<_ACEOF
21439 /* confdefs.h. */
21440 _ACEOF
21441 cat confdefs.h >>conftest.$ac_ext
21442 cat >>conftest.$ac_ext <<_ACEOF
21443 /* end confdefs.h. */
21445 /* Override any GCC internal prototype to avoid an error.
21446 Use char because int might match the return type of a GCC
21447 builtin and then its argument prototype would still apply. */
21448 #ifdef __cplusplus
21449 extern "C"
21450 #endif
21451 char readline ();
21453 main ()
21455 return readline ();
21457 return 0;
21459 _ACEOF
21460 rm -f conftest.$ac_objext conftest$ac_exeext
21461 if { (ac_try="$ac_link"
21462 case "(($ac_try" in
21463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21464 *) ac_try_echo=$ac_try;;
21465 esac
21466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21467 (eval "$ac_link") 2>conftest.er1
21468 ac_status=$?
21469 grep -v '^ *+' conftest.er1 >conftest.err
21470 rm -f conftest.er1
21471 cat conftest.err >&5
21472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21473 (exit $ac_status); } && {
21474 test -z "$ac_c_werror_flag" ||
21475 test ! -s conftest.err
21476 } && test -s conftest$ac_exeext &&
21477 $as_test_x conftest$ac_exeext; then
21478 ac_cv_lib_termcap_readline=yes
21479 else
21480 echo "$as_me: failed program was:" >&5
21481 sed 's/^/| /' conftest.$ac_ext >&5
21483 ac_cv_lib_termcap_readline=no
21486 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21487 conftest$ac_exeext conftest.$ac_ext
21488 LIBS=$ac_check_lib_save_LIBS
21490 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_readline" >&5
21491 echo "${ECHO_T}$ac_cv_lib_termcap_readline" >&6; }
21492 if test $ac_cv_lib_termcap_readline = yes; then
21493 cat >>confdefs.h <<_ACEOF
21494 #define HAVE_LIBTERMCAP 1
21495 _ACEOF
21497 LIBS="-ltermcap $LIBS"
21503 # check for readline 2.1
21504 { echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
21505 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6; }
21506 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
21507 echo $ECHO_N "(cached) $ECHO_C" >&6
21508 else
21509 ac_check_lib_save_LIBS=$LIBS
21510 LIBS="-lreadline $LIBS"
21511 cat >conftest.$ac_ext <<_ACEOF
21512 /* confdefs.h. */
21513 _ACEOF
21514 cat confdefs.h >>conftest.$ac_ext
21515 cat >>conftest.$ac_ext <<_ACEOF
21516 /* end confdefs.h. */
21518 /* Override any GCC internal prototype to avoid an error.
21519 Use char because int might match the return type of a GCC
21520 builtin and then its argument prototype would still apply. */
21521 #ifdef __cplusplus
21522 extern "C"
21523 #endif
21524 char rl_callback_handler_install ();
21526 main ()
21528 return rl_callback_handler_install ();
21530 return 0;
21532 _ACEOF
21533 rm -f conftest.$ac_objext conftest$ac_exeext
21534 if { (ac_try="$ac_link"
21535 case "(($ac_try" in
21536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21537 *) ac_try_echo=$ac_try;;
21538 esac
21539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21540 (eval "$ac_link") 2>conftest.er1
21541 ac_status=$?
21542 grep -v '^ *+' conftest.er1 >conftest.err
21543 rm -f conftest.er1
21544 cat conftest.err >&5
21545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21546 (exit $ac_status); } && {
21547 test -z "$ac_c_werror_flag" ||
21548 test ! -s conftest.err
21549 } && test -s conftest$ac_exeext &&
21550 $as_test_x conftest$ac_exeext; then
21551 ac_cv_lib_readline_rl_callback_handler_install=yes
21552 else
21553 echo "$as_me: failed program was:" >&5
21554 sed 's/^/| /' conftest.$ac_ext >&5
21556 ac_cv_lib_readline_rl_callback_handler_install=no
21559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21560 conftest$ac_exeext conftest.$ac_ext
21561 LIBS=$ac_check_lib_save_LIBS
21563 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
21564 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
21565 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
21567 cat >>confdefs.h <<\_ACEOF
21568 #define HAVE_RL_CALLBACK 1
21569 _ACEOF
21574 # check for readline 2.2
21575 cat >conftest.$ac_ext <<_ACEOF
21576 /* confdefs.h. */
21577 _ACEOF
21578 cat confdefs.h >>conftest.$ac_ext
21579 cat >>conftest.$ac_ext <<_ACEOF
21580 /* end confdefs.h. */
21581 #include <readline/readline.h>
21582 _ACEOF
21583 if { (ac_try="$ac_cpp conftest.$ac_ext"
21584 case "(($ac_try" in
21585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21586 *) ac_try_echo=$ac_try;;
21587 esac
21588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21589 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21590 ac_status=$?
21591 grep -v '^ *+' conftest.er1 >conftest.err
21592 rm -f conftest.er1
21593 cat conftest.err >&5
21594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21595 (exit $ac_status); } >/dev/null && {
21596 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21597 test ! -s conftest.err
21598 }; then
21599 have_readline=yes
21600 else
21601 echo "$as_me: failed program was:" >&5
21602 sed 's/^/| /' conftest.$ac_ext >&5
21604 have_readline=no
21607 rm -f conftest.err conftest.$ac_ext
21608 if test $have_readline = yes
21609 then
21610 cat >conftest.$ac_ext <<_ACEOF
21611 /* confdefs.h. */
21612 _ACEOF
21613 cat confdefs.h >>conftest.$ac_ext
21614 cat >>conftest.$ac_ext <<_ACEOF
21615 /* end confdefs.h. */
21616 #include <readline/readline.h>
21618 _ACEOF
21619 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21620 $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then
21622 cat >>confdefs.h <<\_ACEOF
21623 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
21624 _ACEOF
21627 rm -f conftest*
21631 # check for readline 4.0
21632 { echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
21633 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6; }
21634 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
21635 echo $ECHO_N "(cached) $ECHO_C" >&6
21636 else
21637 ac_check_lib_save_LIBS=$LIBS
21638 LIBS="-lreadline $LIBS"
21639 cat >conftest.$ac_ext <<_ACEOF
21640 /* confdefs.h. */
21641 _ACEOF
21642 cat confdefs.h >>conftest.$ac_ext
21643 cat >>conftest.$ac_ext <<_ACEOF
21644 /* end confdefs.h. */
21646 /* Override any GCC internal prototype to avoid an error.
21647 Use char because int might match the return type of a GCC
21648 builtin and then its argument prototype would still apply. */
21649 #ifdef __cplusplus
21650 extern "C"
21651 #endif
21652 char rl_pre_input_hook ();
21654 main ()
21656 return rl_pre_input_hook ();
21658 return 0;
21660 _ACEOF
21661 rm -f conftest.$ac_objext conftest$ac_exeext
21662 if { (ac_try="$ac_link"
21663 case "(($ac_try" in
21664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21665 *) ac_try_echo=$ac_try;;
21666 esac
21667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21668 (eval "$ac_link") 2>conftest.er1
21669 ac_status=$?
21670 grep -v '^ *+' conftest.er1 >conftest.err
21671 rm -f conftest.er1
21672 cat conftest.err >&5
21673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21674 (exit $ac_status); } && {
21675 test -z "$ac_c_werror_flag" ||
21676 test ! -s conftest.err
21677 } && test -s conftest$ac_exeext &&
21678 $as_test_x conftest$ac_exeext; then
21679 ac_cv_lib_readline_rl_pre_input_hook=yes
21680 else
21681 echo "$as_me: failed program was:" >&5
21682 sed 's/^/| /' conftest.$ac_ext >&5
21684 ac_cv_lib_readline_rl_pre_input_hook=no
21687 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21688 conftest$ac_exeext conftest.$ac_ext
21689 LIBS=$ac_check_lib_save_LIBS
21691 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
21692 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6; }
21693 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
21695 cat >>confdefs.h <<\_ACEOF
21696 #define HAVE_RL_PRE_INPUT_HOOK 1
21697 _ACEOF
21702 # also in 4.0
21703 { echo "$as_me:$LINENO: checking for rl_completion_display_matches_hook in -lreadline" >&5
21704 echo $ECHO_N "checking for rl_completion_display_matches_hook in -lreadline... $ECHO_C" >&6; }
21705 if test "${ac_cv_lib_readline_rl_completion_display_matches_hook+set}" = set; then
21706 echo $ECHO_N "(cached) $ECHO_C" >&6
21707 else
21708 ac_check_lib_save_LIBS=$LIBS
21709 LIBS="-lreadline $LIBS"
21710 cat >conftest.$ac_ext <<_ACEOF
21711 /* confdefs.h. */
21712 _ACEOF
21713 cat confdefs.h >>conftest.$ac_ext
21714 cat >>conftest.$ac_ext <<_ACEOF
21715 /* end confdefs.h. */
21717 /* Override any GCC internal prototype to avoid an error.
21718 Use char because int might match the return type of a GCC
21719 builtin and then its argument prototype would still apply. */
21720 #ifdef __cplusplus
21721 extern "C"
21722 #endif
21723 char rl_completion_display_matches_hook ();
21725 main ()
21727 return rl_completion_display_matches_hook ();
21729 return 0;
21731 _ACEOF
21732 rm -f conftest.$ac_objext conftest$ac_exeext
21733 if { (ac_try="$ac_link"
21734 case "(($ac_try" in
21735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21736 *) ac_try_echo=$ac_try;;
21737 esac
21738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21739 (eval "$ac_link") 2>conftest.er1
21740 ac_status=$?
21741 grep -v '^ *+' conftest.er1 >conftest.err
21742 rm -f conftest.er1
21743 cat conftest.err >&5
21744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21745 (exit $ac_status); } && {
21746 test -z "$ac_c_werror_flag" ||
21747 test ! -s conftest.err
21748 } && test -s conftest$ac_exeext &&
21749 $as_test_x conftest$ac_exeext; then
21750 ac_cv_lib_readline_rl_completion_display_matches_hook=yes
21751 else
21752 echo "$as_me: failed program was:" >&5
21753 sed 's/^/| /' conftest.$ac_ext >&5
21755 ac_cv_lib_readline_rl_completion_display_matches_hook=no
21758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21759 conftest$ac_exeext conftest.$ac_ext
21760 LIBS=$ac_check_lib_save_LIBS
21762 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5
21763 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; }
21764 if test $ac_cv_lib_readline_rl_completion_display_matches_hook = yes; then
21766 cat >>confdefs.h <<\_ACEOF
21767 #define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1
21768 _ACEOF
21773 # check for readline 4.2
21774 { echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
21775 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6; }
21776 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
21777 echo $ECHO_N "(cached) $ECHO_C" >&6
21778 else
21779 ac_check_lib_save_LIBS=$LIBS
21780 LIBS="-lreadline $LIBS"
21781 cat >conftest.$ac_ext <<_ACEOF
21782 /* confdefs.h. */
21783 _ACEOF
21784 cat confdefs.h >>conftest.$ac_ext
21785 cat >>conftest.$ac_ext <<_ACEOF
21786 /* end confdefs.h. */
21788 /* Override any GCC internal prototype to avoid an error.
21789 Use char because int might match the return type of a GCC
21790 builtin and then its argument prototype would still apply. */
21791 #ifdef __cplusplus
21792 extern "C"
21793 #endif
21794 char rl_completion_matches ();
21796 main ()
21798 return rl_completion_matches ();
21800 return 0;
21802 _ACEOF
21803 rm -f conftest.$ac_objext conftest$ac_exeext
21804 if { (ac_try="$ac_link"
21805 case "(($ac_try" in
21806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21807 *) ac_try_echo=$ac_try;;
21808 esac
21809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21810 (eval "$ac_link") 2>conftest.er1
21811 ac_status=$?
21812 grep -v '^ *+' conftest.er1 >conftest.err
21813 rm -f conftest.er1
21814 cat conftest.err >&5
21815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21816 (exit $ac_status); } && {
21817 test -z "$ac_c_werror_flag" ||
21818 test ! -s conftest.err
21819 } && test -s conftest$ac_exeext &&
21820 $as_test_x conftest$ac_exeext; then
21821 ac_cv_lib_readline_rl_completion_matches=yes
21822 else
21823 echo "$as_me: failed program was:" >&5
21824 sed 's/^/| /' conftest.$ac_ext >&5
21826 ac_cv_lib_readline_rl_completion_matches=no
21829 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21830 conftest$ac_exeext conftest.$ac_ext
21831 LIBS=$ac_check_lib_save_LIBS
21833 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
21834 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6; }
21835 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
21837 cat >>confdefs.h <<\_ACEOF
21838 #define HAVE_RL_COMPLETION_MATCHES 1
21839 _ACEOF
21844 # also in readline 4.2
21845 cat >conftest.$ac_ext <<_ACEOF
21846 /* confdefs.h. */
21847 _ACEOF
21848 cat confdefs.h >>conftest.$ac_ext
21849 cat >>conftest.$ac_ext <<_ACEOF
21850 /* end confdefs.h. */
21851 #include <readline/readline.h>
21852 _ACEOF
21853 if { (ac_try="$ac_cpp conftest.$ac_ext"
21854 case "(($ac_try" in
21855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21856 *) ac_try_echo=$ac_try;;
21857 esac
21858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21859 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21860 ac_status=$?
21861 grep -v '^ *+' conftest.er1 >conftest.err
21862 rm -f conftest.er1
21863 cat conftest.err >&5
21864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21865 (exit $ac_status); } >/dev/null && {
21866 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21867 test ! -s conftest.err
21868 }; then
21869 have_readline=yes
21870 else
21871 echo "$as_me: failed program was:" >&5
21872 sed 's/^/| /' conftest.$ac_ext >&5
21874 have_readline=no
21877 rm -f conftest.err conftest.$ac_ext
21878 if test $have_readline = yes
21879 then
21880 cat >conftest.$ac_ext <<_ACEOF
21881 /* confdefs.h. */
21882 _ACEOF
21883 cat confdefs.h >>conftest.$ac_ext
21884 cat >>conftest.$ac_ext <<_ACEOF
21885 /* end confdefs.h. */
21886 #include <readline/readline.h>
21888 _ACEOF
21889 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21890 $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then
21892 cat >>confdefs.h <<\_ACEOF
21893 #define HAVE_RL_CATCH_SIGNAL 1
21894 _ACEOF
21897 rm -f conftest*
21901 # End of readline checks: restore LIBS
21902 LIBS=$LIBS_no_readline
21904 { echo "$as_me:$LINENO: checking for broken nice()" >&5
21905 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6; }
21906 if test "${ac_cv_broken_nice+set}" = set; then
21907 echo $ECHO_N "(cached) $ECHO_C" >&6
21908 else
21910 if test "$cross_compiling" = yes; then
21911 ac_cv_broken_nice=no
21912 else
21913 cat >conftest.$ac_ext <<_ACEOF
21914 /* confdefs.h. */
21915 _ACEOF
21916 cat confdefs.h >>conftest.$ac_ext
21917 cat >>conftest.$ac_ext <<_ACEOF
21918 /* end confdefs.h. */
21920 int main()
21922 int val1 = nice(1);
21923 if (val1 != -1 && val1 == nice(2))
21924 exit(0);
21925 exit(1);
21928 _ACEOF
21929 rm -f conftest$ac_exeext
21930 if { (ac_try="$ac_link"
21931 case "(($ac_try" in
21932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21933 *) ac_try_echo=$ac_try;;
21934 esac
21935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21936 (eval "$ac_link") 2>&5
21937 ac_status=$?
21938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21939 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21940 { (case "(($ac_try" in
21941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21942 *) ac_try_echo=$ac_try;;
21943 esac
21944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21945 (eval "$ac_try") 2>&5
21946 ac_status=$?
21947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21948 (exit $ac_status); }; }; then
21949 ac_cv_broken_nice=yes
21950 else
21951 echo "$as_me: program exited with status $ac_status" >&5
21952 echo "$as_me: failed program was:" >&5
21953 sed 's/^/| /' conftest.$ac_ext >&5
21955 ( exit $ac_status )
21956 ac_cv_broken_nice=no
21958 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21964 { echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
21965 echo "${ECHO_T}$ac_cv_broken_nice" >&6; }
21966 if test "$ac_cv_broken_nice" = yes
21967 then
21969 cat >>confdefs.h <<\_ACEOF
21970 #define HAVE_BROKEN_NICE 1
21971 _ACEOF
21975 { echo "$as_me:$LINENO: checking for broken poll()" >&5
21976 echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6; }
21977 if test "$cross_compiling" = yes; then
21978 ac_cv_broken_poll=no
21979 else
21980 cat >conftest.$ac_ext <<_ACEOF
21981 /* confdefs.h. */
21982 _ACEOF
21983 cat confdefs.h >>conftest.$ac_ext
21984 cat >>conftest.$ac_ext <<_ACEOF
21985 /* end confdefs.h. */
21987 #include <poll.h>
21989 int main (void)
21991 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
21993 close (42);
21995 int poll_test = poll (&poll_struct, 1, 0);
21997 if (poll_test < 0)
21999 exit(0);
22001 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
22003 exit(0);
22005 else
22007 exit(1);
22011 _ACEOF
22012 rm -f conftest$ac_exeext
22013 if { (ac_try="$ac_link"
22014 case "(($ac_try" in
22015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22016 *) ac_try_echo=$ac_try;;
22017 esac
22018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22019 (eval "$ac_link") 2>&5
22020 ac_status=$?
22021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22022 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22023 { (case "(($ac_try" in
22024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22025 *) ac_try_echo=$ac_try;;
22026 esac
22027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22028 (eval "$ac_try") 2>&5
22029 ac_status=$?
22030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22031 (exit $ac_status); }; }; then
22032 ac_cv_broken_poll=yes
22033 else
22034 echo "$as_me: program exited with status $ac_status" >&5
22035 echo "$as_me: failed program was:" >&5
22036 sed 's/^/| /' conftest.$ac_ext >&5
22038 ( exit $ac_status )
22039 ac_cv_broken_poll=no
22041 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22045 { echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
22046 echo "${ECHO_T}$ac_cv_broken_poll" >&6; }
22047 if test "$ac_cv_broken_poll" = yes
22048 then
22050 cat >>confdefs.h <<\_ACEOF
22051 #define HAVE_BROKEN_POLL 1
22052 _ACEOF
22056 # Before we can test tzset, we need to check if struct tm has a tm_zone
22057 # (which is not required by ISO C or UNIX spec) and/or if we support
22058 # tzname[]
22059 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
22060 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
22061 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
22062 echo $ECHO_N "(cached) $ECHO_C" >&6
22063 else
22064 cat >conftest.$ac_ext <<_ACEOF
22065 /* confdefs.h. */
22066 _ACEOF
22067 cat confdefs.h >>conftest.$ac_ext
22068 cat >>conftest.$ac_ext <<_ACEOF
22069 /* end confdefs.h. */
22070 #include <sys/types.h>
22071 #include <$ac_cv_struct_tm>
22075 main ()
22077 static struct tm ac_aggr;
22078 if (ac_aggr.tm_zone)
22079 return 0;
22081 return 0;
22083 _ACEOF
22084 rm -f conftest.$ac_objext
22085 if { (ac_try="$ac_compile"
22086 case "(($ac_try" in
22087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22088 *) ac_try_echo=$ac_try;;
22089 esac
22090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22091 (eval "$ac_compile") 2>conftest.er1
22092 ac_status=$?
22093 grep -v '^ *+' conftest.er1 >conftest.err
22094 rm -f conftest.er1
22095 cat conftest.err >&5
22096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22097 (exit $ac_status); } && {
22098 test -z "$ac_c_werror_flag" ||
22099 test ! -s conftest.err
22100 } && test -s conftest.$ac_objext; then
22101 ac_cv_member_struct_tm_tm_zone=yes
22102 else
22103 echo "$as_me: failed program was:" >&5
22104 sed 's/^/| /' conftest.$ac_ext >&5
22106 cat >conftest.$ac_ext <<_ACEOF
22107 /* confdefs.h. */
22108 _ACEOF
22109 cat confdefs.h >>conftest.$ac_ext
22110 cat >>conftest.$ac_ext <<_ACEOF
22111 /* end confdefs.h. */
22112 #include <sys/types.h>
22113 #include <$ac_cv_struct_tm>
22117 main ()
22119 static struct tm ac_aggr;
22120 if (sizeof ac_aggr.tm_zone)
22121 return 0;
22123 return 0;
22125 _ACEOF
22126 rm -f conftest.$ac_objext
22127 if { (ac_try="$ac_compile"
22128 case "(($ac_try" in
22129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22130 *) ac_try_echo=$ac_try;;
22131 esac
22132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22133 (eval "$ac_compile") 2>conftest.er1
22134 ac_status=$?
22135 grep -v '^ *+' conftest.er1 >conftest.err
22136 rm -f conftest.er1
22137 cat conftest.err >&5
22138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22139 (exit $ac_status); } && {
22140 test -z "$ac_c_werror_flag" ||
22141 test ! -s conftest.err
22142 } && test -s conftest.$ac_objext; then
22143 ac_cv_member_struct_tm_tm_zone=yes
22144 else
22145 echo "$as_me: failed program was:" >&5
22146 sed 's/^/| /' conftest.$ac_ext >&5
22148 ac_cv_member_struct_tm_tm_zone=no
22151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22156 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
22157 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
22158 if test $ac_cv_member_struct_tm_tm_zone = yes; then
22160 cat >>confdefs.h <<_ACEOF
22161 #define HAVE_STRUCT_TM_TM_ZONE 1
22162 _ACEOF
22167 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22169 cat >>confdefs.h <<\_ACEOF
22170 #define HAVE_TM_ZONE 1
22171 _ACEOF
22173 else
22174 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
22175 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
22176 if test "${ac_cv_have_decl_tzname+set}" = set; then
22177 echo $ECHO_N "(cached) $ECHO_C" >&6
22178 else
22179 cat >conftest.$ac_ext <<_ACEOF
22180 /* confdefs.h. */
22181 _ACEOF
22182 cat confdefs.h >>conftest.$ac_ext
22183 cat >>conftest.$ac_ext <<_ACEOF
22184 /* end confdefs.h. */
22185 #include <time.h>
22188 main ()
22190 #ifndef tzname
22191 (void) tzname;
22192 #endif
22195 return 0;
22197 _ACEOF
22198 rm -f conftest.$ac_objext
22199 if { (ac_try="$ac_compile"
22200 case "(($ac_try" in
22201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22202 *) ac_try_echo=$ac_try;;
22203 esac
22204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22205 (eval "$ac_compile") 2>conftest.er1
22206 ac_status=$?
22207 grep -v '^ *+' conftest.er1 >conftest.err
22208 rm -f conftest.er1
22209 cat conftest.err >&5
22210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22211 (exit $ac_status); } && {
22212 test -z "$ac_c_werror_flag" ||
22213 test ! -s conftest.err
22214 } && test -s conftest.$ac_objext; then
22215 ac_cv_have_decl_tzname=yes
22216 else
22217 echo "$as_me: failed program was:" >&5
22218 sed 's/^/| /' conftest.$ac_ext >&5
22220 ac_cv_have_decl_tzname=no
22223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22225 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
22226 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
22227 if test $ac_cv_have_decl_tzname = yes; then
22229 cat >>confdefs.h <<_ACEOF
22230 #define HAVE_DECL_TZNAME 1
22231 _ACEOF
22234 else
22235 cat >>confdefs.h <<_ACEOF
22236 #define HAVE_DECL_TZNAME 0
22237 _ACEOF
22243 { echo "$as_me:$LINENO: checking for tzname" >&5
22244 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
22245 if test "${ac_cv_var_tzname+set}" = set; then
22246 echo $ECHO_N "(cached) $ECHO_C" >&6
22247 else
22248 cat >conftest.$ac_ext <<_ACEOF
22249 /* confdefs.h. */
22250 _ACEOF
22251 cat confdefs.h >>conftest.$ac_ext
22252 cat >>conftest.$ac_ext <<_ACEOF
22253 /* end confdefs.h. */
22254 #include <time.h>
22255 #if !HAVE_DECL_TZNAME
22256 extern char *tzname[];
22257 #endif
22260 main ()
22262 return tzname[0][0];
22264 return 0;
22266 _ACEOF
22267 rm -f conftest.$ac_objext conftest$ac_exeext
22268 if { (ac_try="$ac_link"
22269 case "(($ac_try" in
22270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22271 *) ac_try_echo=$ac_try;;
22272 esac
22273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22274 (eval "$ac_link") 2>conftest.er1
22275 ac_status=$?
22276 grep -v '^ *+' conftest.er1 >conftest.err
22277 rm -f conftest.er1
22278 cat conftest.err >&5
22279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22280 (exit $ac_status); } && {
22281 test -z "$ac_c_werror_flag" ||
22282 test ! -s conftest.err
22283 } && test -s conftest$ac_exeext &&
22284 $as_test_x conftest$ac_exeext; then
22285 ac_cv_var_tzname=yes
22286 else
22287 echo "$as_me: failed program was:" >&5
22288 sed 's/^/| /' conftest.$ac_ext >&5
22290 ac_cv_var_tzname=no
22293 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22294 conftest$ac_exeext conftest.$ac_ext
22296 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
22297 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
22298 if test $ac_cv_var_tzname = yes; then
22300 cat >>confdefs.h <<\_ACEOF
22301 #define HAVE_TZNAME 1
22302 _ACEOF
22308 # check tzset(3) exists and works like we expect it to
22309 { echo "$as_me:$LINENO: checking for working tzset()" >&5
22310 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6; }
22311 if test "${ac_cv_working_tzset+set}" = set; then
22312 echo $ECHO_N "(cached) $ECHO_C" >&6
22313 else
22315 if test "$cross_compiling" = yes; then
22316 ac_cv_working_tzset=no
22317 else
22318 cat >conftest.$ac_ext <<_ACEOF
22319 /* confdefs.h. */
22320 _ACEOF
22321 cat confdefs.h >>conftest.$ac_ext
22322 cat >>conftest.$ac_ext <<_ACEOF
22323 /* end confdefs.h. */
22325 #include <stdlib.h>
22326 #include <time.h>
22327 #include <string.h>
22329 #if HAVE_TZNAME
22330 extern char *tzname[];
22331 #endif
22333 int main()
22335 /* Note that we need to ensure that not only does tzset(3)
22336 do 'something' with localtime, but it works as documented
22337 in the library reference and as expected by the test suite.
22338 This includes making sure that tzname is set properly if
22339 tm->tm_zone does not exist since it is the alternative way
22340 of getting timezone info.
22342 Red Hat 6.2 doesn't understand the southern hemisphere
22343 after New Year's Day.
22346 time_t groundhogday = 1044144000; /* GMT-based */
22347 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
22349 putenv("TZ=UTC+0");
22350 tzset();
22351 if (localtime(&groundhogday)->tm_hour != 0)
22352 exit(1);
22353 #if HAVE_TZNAME
22354 /* For UTC, tzname[1] is sometimes "", sometimes " " */
22355 if (strcmp(tzname[0], "UTC") ||
22356 (tzname[1][0] != 0 && tzname[1][0] != ' '))
22357 exit(1);
22358 #endif
22360 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
22361 tzset();
22362 if (localtime(&groundhogday)->tm_hour != 19)
22363 exit(1);
22364 #if HAVE_TZNAME
22365 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
22366 exit(1);
22367 #endif
22369 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
22370 tzset();
22371 if (localtime(&groundhogday)->tm_hour != 11)
22372 exit(1);
22373 #if HAVE_TZNAME
22374 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
22375 exit(1);
22376 #endif
22378 #if HAVE_STRUCT_TM_TM_ZONE
22379 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
22380 exit(1);
22381 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
22382 exit(1);
22383 #endif
22385 exit(0);
22388 _ACEOF
22389 rm -f 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22396 (eval "$ac_link") 2>&5
22397 ac_status=$?
22398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22399 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22400 { (case "(($ac_try" in
22401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22402 *) ac_try_echo=$ac_try;;
22403 esac
22404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22405 (eval "$ac_try") 2>&5
22406 ac_status=$?
22407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22408 (exit $ac_status); }; }; then
22409 ac_cv_working_tzset=yes
22410 else
22411 echo "$as_me: program exited with status $ac_status" >&5
22412 echo "$as_me: failed program was:" >&5
22413 sed 's/^/| /' conftest.$ac_ext >&5
22415 ( exit $ac_status )
22416 ac_cv_working_tzset=no
22418 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22424 { echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
22425 echo "${ECHO_T}$ac_cv_working_tzset" >&6; }
22426 if test "$ac_cv_working_tzset" = yes
22427 then
22429 cat >>confdefs.h <<\_ACEOF
22430 #define HAVE_WORKING_TZSET 1
22431 _ACEOF
22435 # Look for subsecond timestamps in struct stat
22436 { echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
22437 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6; }
22438 if test "${ac_cv_stat_tv_nsec+set}" = set; then
22439 echo $ECHO_N "(cached) $ECHO_C" >&6
22440 else
22441 cat >conftest.$ac_ext <<_ACEOF
22442 /* confdefs.h. */
22443 _ACEOF
22444 cat confdefs.h >>conftest.$ac_ext
22445 cat >>conftest.$ac_ext <<_ACEOF
22446 /* end confdefs.h. */
22447 #include <sys/stat.h>
22449 main ()
22452 struct stat st;
22453 st.st_mtim.tv_nsec = 1;
22456 return 0;
22458 _ACEOF
22459 rm -f conftest.$ac_objext
22460 if { (ac_try="$ac_compile"
22461 case "(($ac_try" in
22462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22463 *) ac_try_echo=$ac_try;;
22464 esac
22465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22466 (eval "$ac_compile") 2>conftest.er1
22467 ac_status=$?
22468 grep -v '^ *+' conftest.er1 >conftest.err
22469 rm -f conftest.er1
22470 cat conftest.err >&5
22471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22472 (exit $ac_status); } && {
22473 test -z "$ac_c_werror_flag" ||
22474 test ! -s conftest.err
22475 } && test -s conftest.$ac_objext; then
22476 ac_cv_stat_tv_nsec=yes
22477 else
22478 echo "$as_me: failed program was:" >&5
22479 sed 's/^/| /' conftest.$ac_ext >&5
22481 ac_cv_stat_tv_nsec=no
22484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22487 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
22488 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6; }
22489 if test "$ac_cv_stat_tv_nsec" = yes
22490 then
22492 cat >>confdefs.h <<\_ACEOF
22493 #define HAVE_STAT_TV_NSEC 1
22494 _ACEOF
22498 # Look for BSD style subsecond timestamps in struct stat
22499 { echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
22500 echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6; }
22501 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
22502 echo $ECHO_N "(cached) $ECHO_C" >&6
22503 else
22504 cat >conftest.$ac_ext <<_ACEOF
22505 /* confdefs.h. */
22506 _ACEOF
22507 cat confdefs.h >>conftest.$ac_ext
22508 cat >>conftest.$ac_ext <<_ACEOF
22509 /* end confdefs.h. */
22510 #include <sys/stat.h>
22512 main ()
22515 struct stat st;
22516 st.st_mtimespec.tv_nsec = 1;
22519 return 0;
22521 _ACEOF
22522 rm -f conftest.$ac_objext
22523 if { (ac_try="$ac_compile"
22524 case "(($ac_try" in
22525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22526 *) ac_try_echo=$ac_try;;
22527 esac
22528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22529 (eval "$ac_compile") 2>conftest.er1
22530 ac_status=$?
22531 grep -v '^ *+' conftest.er1 >conftest.err
22532 rm -f conftest.er1
22533 cat conftest.err >&5
22534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22535 (exit $ac_status); } && {
22536 test -z "$ac_c_werror_flag" ||
22537 test ! -s conftest.err
22538 } && test -s conftest.$ac_objext; then
22539 ac_cv_stat_tv_nsec2=yes
22540 else
22541 echo "$as_me: failed program was:" >&5
22542 sed 's/^/| /' conftest.$ac_ext >&5
22544 ac_cv_stat_tv_nsec2=no
22547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22550 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
22551 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6; }
22552 if test "$ac_cv_stat_tv_nsec2" = yes
22553 then
22555 cat >>confdefs.h <<\_ACEOF
22556 #define HAVE_STAT_TV_NSEC2 1
22557 _ACEOF
22561 # On HP/UX 11.0, mvwdelch is a block with a return statement
22562 { echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
22563 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6; }
22564 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
22565 echo $ECHO_N "(cached) $ECHO_C" >&6
22566 else
22567 cat >conftest.$ac_ext <<_ACEOF
22568 /* confdefs.h. */
22569 _ACEOF
22570 cat confdefs.h >>conftest.$ac_ext
22571 cat >>conftest.$ac_ext <<_ACEOF
22572 /* end confdefs.h. */
22573 #include <curses.h>
22575 main ()
22578 int rtn;
22579 rtn = mvwdelch(0,0,0);
22582 return 0;
22584 _ACEOF
22585 rm -f conftest.$ac_objext
22586 if { (ac_try="$ac_compile"
22587 case "(($ac_try" in
22588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22589 *) ac_try_echo=$ac_try;;
22590 esac
22591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22592 (eval "$ac_compile") 2>conftest.er1
22593 ac_status=$?
22594 grep -v '^ *+' conftest.er1 >conftest.err
22595 rm -f conftest.er1
22596 cat conftest.err >&5
22597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22598 (exit $ac_status); } && {
22599 test -z "$ac_c_werror_flag" ||
22600 test ! -s conftest.err
22601 } && test -s conftest.$ac_objext; then
22602 ac_cv_mvwdelch_is_expression=yes
22603 else
22604 echo "$as_me: failed program was:" >&5
22605 sed 's/^/| /' conftest.$ac_ext >&5
22607 ac_cv_mvwdelch_is_expression=no
22610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22613 { echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
22614 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6; }
22616 if test "$ac_cv_mvwdelch_is_expression" = yes
22617 then
22619 cat >>confdefs.h <<\_ACEOF
22620 #define MVWDELCH_IS_EXPRESSION 1
22621 _ACEOF
22625 { echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
22626 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6; }
22627 if test "${ac_cv_window_has_flags+set}" = set; then
22628 echo $ECHO_N "(cached) $ECHO_C" >&6
22629 else
22630 cat >conftest.$ac_ext <<_ACEOF
22631 /* confdefs.h. */
22632 _ACEOF
22633 cat confdefs.h >>conftest.$ac_ext
22634 cat >>conftest.$ac_ext <<_ACEOF
22635 /* end confdefs.h. */
22636 #include <curses.h>
22638 main ()
22641 WINDOW *w;
22642 w->_flags = 0;
22645 return 0;
22647 _ACEOF
22648 rm -f conftest.$ac_objext
22649 if { (ac_try="$ac_compile"
22650 case "(($ac_try" in
22651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22652 *) ac_try_echo=$ac_try;;
22653 esac
22654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22655 (eval "$ac_compile") 2>conftest.er1
22656 ac_status=$?
22657 grep -v '^ *+' conftest.er1 >conftest.err
22658 rm -f conftest.er1
22659 cat conftest.err >&5
22660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22661 (exit $ac_status); } && {
22662 test -z "$ac_c_werror_flag" ||
22663 test ! -s conftest.err
22664 } && test -s conftest.$ac_objext; then
22665 ac_cv_window_has_flags=yes
22666 else
22667 echo "$as_me: failed program was:" >&5
22668 sed 's/^/| /' conftest.$ac_ext >&5
22670 ac_cv_window_has_flags=no
22673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22676 { echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
22677 echo "${ECHO_T}$ac_cv_window_has_flags" >&6; }
22680 if test "$ac_cv_window_has_flags" = yes
22681 then
22683 cat >>confdefs.h <<\_ACEOF
22684 #define WINDOW_HAS_FLAGS 1
22685 _ACEOF
22689 { echo "$as_me:$LINENO: checking for is_term_resized" >&5
22690 echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6; }
22691 cat >conftest.$ac_ext <<_ACEOF
22692 /* confdefs.h. */
22693 _ACEOF
22694 cat confdefs.h >>conftest.$ac_ext
22695 cat >>conftest.$ac_ext <<_ACEOF
22696 /* end confdefs.h. */
22697 #include <curses.h>
22699 main ()
22701 void *x=is_term_resized
22703 return 0;
22705 _ACEOF
22706 rm -f conftest.$ac_objext
22707 if { (ac_try="$ac_compile"
22708 case "(($ac_try" in
22709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22710 *) ac_try_echo=$ac_try;;
22711 esac
22712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22713 (eval "$ac_compile") 2>conftest.er1
22714 ac_status=$?
22715 grep -v '^ *+' conftest.er1 >conftest.err
22716 rm -f conftest.er1
22717 cat conftest.err >&5
22718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22719 (exit $ac_status); } && {
22720 test -z "$ac_c_werror_flag" ||
22721 test ! -s conftest.err
22722 } && test -s conftest.$ac_objext; then
22724 cat >>confdefs.h <<\_ACEOF
22725 #define HAVE_CURSES_IS_TERM_RESIZED 1
22726 _ACEOF
22728 { echo "$as_me:$LINENO: result: yes" >&5
22729 echo "${ECHO_T}yes" >&6; }
22730 else
22731 echo "$as_me: failed program was:" >&5
22732 sed 's/^/| /' conftest.$ac_ext >&5
22734 { echo "$as_me:$LINENO: result: no" >&5
22735 echo "${ECHO_T}no" >&6; }
22739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22741 { echo "$as_me:$LINENO: checking for resize_term" >&5
22742 echo $ECHO_N "checking for resize_term... $ECHO_C" >&6; }
22743 cat >conftest.$ac_ext <<_ACEOF
22744 /* confdefs.h. */
22745 _ACEOF
22746 cat confdefs.h >>conftest.$ac_ext
22747 cat >>conftest.$ac_ext <<_ACEOF
22748 /* end confdefs.h. */
22749 #include <curses.h>
22751 main ()
22753 void *x=resize_term
22755 return 0;
22757 _ACEOF
22758 rm -f conftest.$ac_objext
22759 if { (ac_try="$ac_compile"
22760 case "(($ac_try" in
22761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22762 *) ac_try_echo=$ac_try;;
22763 esac
22764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22765 (eval "$ac_compile") 2>conftest.er1
22766 ac_status=$?
22767 grep -v '^ *+' conftest.er1 >conftest.err
22768 rm -f conftest.er1
22769 cat conftest.err >&5
22770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22771 (exit $ac_status); } && {
22772 test -z "$ac_c_werror_flag" ||
22773 test ! -s conftest.err
22774 } && test -s conftest.$ac_objext; then
22776 cat >>confdefs.h <<\_ACEOF
22777 #define HAVE_CURSES_RESIZE_TERM 1
22778 _ACEOF
22780 { echo "$as_me:$LINENO: result: yes" >&5
22781 echo "${ECHO_T}yes" >&6; }
22782 else
22783 echo "$as_me: failed program was:" >&5
22784 sed 's/^/| /' conftest.$ac_ext >&5
22786 { echo "$as_me:$LINENO: result: no" >&5
22787 echo "${ECHO_T}no" >&6; }
22791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22793 { echo "$as_me:$LINENO: checking for resizeterm" >&5
22794 echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6; }
22795 cat >conftest.$ac_ext <<_ACEOF
22796 /* confdefs.h. */
22797 _ACEOF
22798 cat confdefs.h >>conftest.$ac_ext
22799 cat >>conftest.$ac_ext <<_ACEOF
22800 /* end confdefs.h. */
22801 #include <curses.h>
22803 main ()
22805 void *x=resizeterm
22807 return 0;
22809 _ACEOF
22810 rm -f conftest.$ac_objext
22811 if { (ac_try="$ac_compile"
22812 case "(($ac_try" in
22813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22814 *) ac_try_echo=$ac_try;;
22815 esac
22816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22817 (eval "$ac_compile") 2>conftest.er1
22818 ac_status=$?
22819 grep -v '^ *+' conftest.er1 >conftest.err
22820 rm -f conftest.er1
22821 cat conftest.err >&5
22822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22823 (exit $ac_status); } && {
22824 test -z "$ac_c_werror_flag" ||
22825 test ! -s conftest.err
22826 } && test -s conftest.$ac_objext; then
22828 cat >>confdefs.h <<\_ACEOF
22829 #define HAVE_CURSES_RESIZETERM 1
22830 _ACEOF
22832 { echo "$as_me:$LINENO: result: yes" >&5
22833 echo "${ECHO_T}yes" >&6; }
22834 else
22835 echo "$as_me: failed program was:" >&5
22836 sed 's/^/| /' conftest.$ac_ext >&5
22838 { echo "$as_me:$LINENO: result: no" >&5
22839 echo "${ECHO_T}no" >&6; }
22843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22845 { echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
22846 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6; }
22848 if test -r /dev/ptmx
22849 then
22850 { echo "$as_me:$LINENO: result: yes" >&5
22851 echo "${ECHO_T}yes" >&6; }
22853 cat >>confdefs.h <<\_ACEOF
22854 #define HAVE_DEV_PTMX 1
22855 _ACEOF
22857 else
22858 { echo "$as_me:$LINENO: result: no" >&5
22859 echo "${ECHO_T}no" >&6; }
22862 { echo "$as_me:$LINENO: checking for /dev/ptc" >&5
22863 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; }
22865 if test -r /dev/ptc
22866 then
22867 { echo "$as_me:$LINENO: result: yes" >&5
22868 echo "${ECHO_T}yes" >&6; }
22870 cat >>confdefs.h <<\_ACEOF
22871 #define HAVE_DEV_PTC 1
22872 _ACEOF
22874 else
22875 { echo "$as_me:$LINENO: result: no" >&5
22876 echo "${ECHO_T}no" >&6; }
22879 { echo "$as_me:$LINENO: checking for %zd printf() format support" >&5
22880 echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6; }
22881 if test "$cross_compiling" = yes; then
22882 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22883 See \`config.log' for more details." >&5
22884 echo "$as_me: error: cannot run test program while cross compiling
22885 See \`config.log' for more details." >&2;}
22886 { (exit 1); exit 1; }; }
22887 else
22888 cat >conftest.$ac_ext <<_ACEOF
22889 /* confdefs.h. */
22890 _ACEOF
22891 cat confdefs.h >>conftest.$ac_ext
22892 cat >>conftest.$ac_ext <<_ACEOF
22893 /* end confdefs.h. */
22894 #include <stdio.h>
22895 #include <stddef.h>
22896 #include <string.h>
22898 int main()
22900 char buffer[256];
22902 #ifdef HAVE_SSIZE_T
22903 typedef ssize_t Py_ssize_t;
22904 #elif SIZEOF_VOID_P == SIZEOF_LONG
22905 typedef long Py_ssize_t;
22906 #else
22907 typedef int Py_ssize_t;
22908 #endif
22910 if(sprintf(buffer, "%zd", (size_t)123) < 0)
22911 return 1;
22913 if (strcmp(buffer, "123"))
22914 return 1;
22916 if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
22917 return 1;
22919 if (strcmp(buffer, "-123"))
22920 return 1;
22922 return 0;
22924 _ACEOF
22925 rm -f conftest$ac_exeext
22926 if { (ac_try="$ac_link"
22927 case "(($ac_try" in
22928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22929 *) ac_try_echo=$ac_try;;
22930 esac
22931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22932 (eval "$ac_link") 2>&5
22933 ac_status=$?
22934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22935 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22936 { (case "(($ac_try" in
22937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22938 *) ac_try_echo=$ac_try;;
22939 esac
22940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22941 (eval "$ac_try") 2>&5
22942 ac_status=$?
22943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22944 (exit $ac_status); }; }; then
22945 { echo "$as_me:$LINENO: result: yes" >&5
22946 echo "${ECHO_T}yes" >&6; }
22948 cat >>confdefs.h <<\_ACEOF
22949 #define PY_FORMAT_SIZE_T "z"
22950 _ACEOF
22952 else
22953 echo "$as_me: program exited with status $ac_status" >&5
22954 echo "$as_me: failed program was:" >&5
22955 sed 's/^/| /' conftest.$ac_ext >&5
22957 ( exit $ac_status )
22958 { echo "$as_me:$LINENO: result: no" >&5
22959 echo "${ECHO_T}no" >&6; }
22961 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22966 { echo "$as_me:$LINENO: checking for socklen_t" >&5
22967 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
22968 if test "${ac_cv_type_socklen_t+set}" = set; then
22969 echo $ECHO_N "(cached) $ECHO_C" >&6
22970 else
22971 cat >conftest.$ac_ext <<_ACEOF
22972 /* confdefs.h. */
22973 _ACEOF
22974 cat confdefs.h >>conftest.$ac_ext
22975 cat >>conftest.$ac_ext <<_ACEOF
22976 /* end confdefs.h. */
22978 #ifdef HAVE_SYS_TYPES_H
22979 #include <sys/types.h>
22980 #endif
22981 #ifdef HAVE_SYS_SOCKET_H
22982 #include <sys/socket.h>
22983 #endif
22986 typedef socklen_t ac__type_new_;
22988 main ()
22990 if ((ac__type_new_ *) 0)
22991 return 0;
22992 if (sizeof (ac__type_new_))
22993 return 0;
22995 return 0;
22997 _ACEOF
22998 rm -f conftest.$ac_objext
22999 if { (ac_try="$ac_compile"
23000 case "(($ac_try" in
23001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23002 *) ac_try_echo=$ac_try;;
23003 esac
23004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23005 (eval "$ac_compile") 2>conftest.er1
23006 ac_status=$?
23007 grep -v '^ *+' conftest.er1 >conftest.err
23008 rm -f conftest.er1
23009 cat conftest.err >&5
23010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23011 (exit $ac_status); } && {
23012 test -z "$ac_c_werror_flag" ||
23013 test ! -s conftest.err
23014 } && test -s conftest.$ac_objext; then
23015 ac_cv_type_socklen_t=yes
23016 else
23017 echo "$as_me: failed program was:" >&5
23018 sed 's/^/| /' conftest.$ac_ext >&5
23020 ac_cv_type_socklen_t=no
23023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23025 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
23026 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
23027 if test $ac_cv_type_socklen_t = yes; then
23029 else
23031 cat >>confdefs.h <<\_ACEOF
23032 #define socklen_t int
23033 _ACEOF
23040 for h in `(cd $srcdir;echo Python/thread_*.h)`
23042 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
23043 done
23046 SRCDIRS="Parser Grammar Objects Python Modules Mac"
23047 { echo "$as_me:$LINENO: checking for build directories" >&5
23048 echo $ECHO_N "checking for build directories... $ECHO_C" >&6; }
23049 for dir in $SRCDIRS; do
23050 if test ! -d $dir; then
23051 mkdir $dir
23053 done
23054 { echo "$as_me:$LINENO: result: done" >&5
23055 echo "${ECHO_T}done" >&6; }
23057 # generate output files
23058 ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config"
23060 cat >confcache <<\_ACEOF
23061 # This file is a shell script that caches the results of configure
23062 # tests run on this system so they can be shared between configure
23063 # scripts and configure runs, see configure's option --config-cache.
23064 # It is not useful on other systems. If it contains results you don't
23065 # want to keep, you may remove or edit it.
23067 # config.status only pays attention to the cache file if you give it
23068 # the --recheck option to rerun configure.
23070 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23071 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23072 # following values.
23074 _ACEOF
23076 # The following way of writing the cache mishandles newlines in values,
23077 # but we know of no workaround that is simple, portable, and efficient.
23078 # So, we kill variables containing newlines.
23079 # Ultrix sh set writes to stderr and can't be redirected directly,
23080 # and sets the high bit in the cache file unless we assign to the vars.
23082 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23083 eval ac_val=\$$ac_var
23084 case $ac_val in #(
23085 *${as_nl}*)
23086 case $ac_var in #(
23087 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23088 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23089 esac
23090 case $ac_var in #(
23091 _ | IFS | as_nl) ;; #(
23092 *) $as_unset $ac_var ;;
23093 esac ;;
23094 esac
23095 done
23097 (set) 2>&1 |
23098 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23099 *${as_nl}ac_space=\ *)
23100 # `set' does not quote correctly, so add quotes (double-quote
23101 # substitution turns \\\\ into \\, and sed turns \\ into \).
23102 sed -n \
23103 "s/'/'\\\\''/g;
23104 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23105 ;; #(
23107 # `set' quotes correctly as required by POSIX, so do not add quotes.
23108 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23110 esac |
23111 sort
23113 sed '
23114 /^ac_cv_env_/b end
23115 t clear
23116 :clear
23117 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23118 t end
23119 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23120 :end' >>confcache
23121 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23122 if test -w "$cache_file"; then
23123 test "x$cache_file" != "x/dev/null" &&
23124 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23125 echo "$as_me: updating cache $cache_file" >&6;}
23126 cat confcache >$cache_file
23127 else
23128 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23129 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23132 rm -f confcache
23134 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23135 # Let make expand exec_prefix.
23136 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23138 DEFS=-DHAVE_CONFIG_H
23140 ac_libobjs=
23141 ac_ltlibobjs=
23142 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23143 # 1. Remove the extension, and $U if already installed.
23144 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23145 ac_i=`echo "$ac_i" | sed "$ac_script"`
23146 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23147 # will be set to the directory where LIBOBJS objects are built.
23148 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23149 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23150 done
23151 LIBOBJS=$ac_libobjs
23153 LTLIBOBJS=$ac_ltlibobjs
23157 : ${CONFIG_STATUS=./config.status}
23158 ac_clean_files_save=$ac_clean_files
23159 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23160 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23161 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23162 cat >$CONFIG_STATUS <<_ACEOF
23163 #! $SHELL
23164 # Generated by $as_me.
23165 # Run this file to recreate the current configuration.
23166 # Compiler output produced by configure, useful for debugging
23167 # configure, is in config.log if it exists.
23169 debug=false
23170 ac_cs_recheck=false
23171 ac_cs_silent=false
23172 SHELL=\${CONFIG_SHELL-$SHELL}
23173 _ACEOF
23175 cat >>$CONFIG_STATUS <<\_ACEOF
23176 ## --------------------- ##
23177 ## M4sh Initialization. ##
23178 ## --------------------- ##
23180 # Be more Bourne compatible
23181 DUALCASE=1; export DUALCASE # for MKS sh
23182 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23183 emulate sh
23184 NULLCMD=:
23185 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23186 # is contrary to our usage. Disable this feature.
23187 alias -g '${1+"$@"}'='"$@"'
23188 setopt NO_GLOB_SUBST
23189 else
23190 case `(set -o) 2>/dev/null` in
23191 *posix*) set -o posix ;;
23192 esac
23199 # PATH needs CR
23200 # Avoid depending upon Character Ranges.
23201 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23202 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23203 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23204 as_cr_digits='0123456789'
23205 as_cr_alnum=$as_cr_Letters$as_cr_digits
23207 # The user is always right.
23208 if test "${PATH_SEPARATOR+set}" != set; then
23209 echo "#! /bin/sh" >conf$$.sh
23210 echo "exit 0" >>conf$$.sh
23211 chmod +x conf$$.sh
23212 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23213 PATH_SEPARATOR=';'
23214 else
23215 PATH_SEPARATOR=:
23217 rm -f conf$$.sh
23220 # Support unset when possible.
23221 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23222 as_unset=unset
23223 else
23224 as_unset=false
23228 # IFS
23229 # We need space, tab and new line, in precisely that order. Quoting is
23230 # there to prevent editors from complaining about space-tab.
23231 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23232 # splitting by setting IFS to empty value.)
23233 as_nl='
23235 IFS=" "" $as_nl"
23237 # Find who we are. Look in the path if we contain no directory separator.
23238 case $0 in
23239 *[\\/]* ) as_myself=$0 ;;
23240 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23241 for as_dir in $PATH
23243 IFS=$as_save_IFS
23244 test -z "$as_dir" && as_dir=.
23245 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23246 done
23247 IFS=$as_save_IFS
23250 esac
23251 # We did not find ourselves, most probably we were run as `sh COMMAND'
23252 # in which case we are not to be found in the path.
23253 if test "x$as_myself" = x; then
23254 as_myself=$0
23256 if test ! -f "$as_myself"; then
23257 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23258 { (exit 1); exit 1; }
23261 # Work around bugs in pre-3.0 UWIN ksh.
23262 for as_var in ENV MAIL MAILPATH
23263 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23264 done
23265 PS1='$ '
23266 PS2='> '
23267 PS4='+ '
23269 # NLS nuisances.
23270 for as_var in \
23271 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23272 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23273 LC_TELEPHONE LC_TIME
23275 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23276 eval $as_var=C; export $as_var
23277 else
23278 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23280 done
23282 # Required to use basename.
23283 if expr a : '\(a\)' >/dev/null 2>&1 &&
23284 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23285 as_expr=expr
23286 else
23287 as_expr=false
23290 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23291 as_basename=basename
23292 else
23293 as_basename=false
23297 # Name of the executable.
23298 as_me=`$as_basename -- "$0" ||
23299 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23300 X"$0" : 'X\(//\)$' \| \
23301 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23302 echo X/"$0" |
23303 sed '/^.*\/\([^/][^/]*\)\/*$/{
23304 s//\1/
23307 /^X\/\(\/\/\)$/{
23308 s//\1/
23311 /^X\/\(\/\).*/{
23312 s//\1/
23315 s/.*/./; q'`
23317 # CDPATH.
23318 $as_unset CDPATH
23322 as_lineno_1=$LINENO
23323 as_lineno_2=$LINENO
23324 test "x$as_lineno_1" != "x$as_lineno_2" &&
23325 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23327 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23328 # uniformly replaced by the line number. The first 'sed' inserts a
23329 # line-number line after each line using $LINENO; the second 'sed'
23330 # does the real work. The second script uses 'N' to pair each
23331 # line-number line with the line containing $LINENO, and appends
23332 # trailing '-' during substitution so that $LINENO is not a special
23333 # case at line end.
23334 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23335 # scripts with optimization help from Paolo Bonzini. Blame Lee
23336 # E. McMahon (1931-1989) for sed's syntax. :-)
23337 sed -n '
23339 /[$]LINENO/=
23340 ' <$as_myself |
23341 sed '
23342 s/[$]LINENO.*/&-/
23343 t lineno
23345 :lineno
23347 :loop
23348 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23349 t loop
23350 s/-\n.*//
23351 ' >$as_me.lineno &&
23352 chmod +x "$as_me.lineno" ||
23353 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23354 { (exit 1); exit 1; }; }
23356 # Don't try to exec as it changes $[0], causing all sort of problems
23357 # (the dirname of $[0] is not the place where we might find the
23358 # original and so on. Autoconf is especially sensitive to this).
23359 . "./$as_me.lineno"
23360 # Exit status is that of the last command.
23361 exit
23365 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23366 as_dirname=dirname
23367 else
23368 as_dirname=false
23371 ECHO_C= ECHO_N= ECHO_T=
23372 case `echo -n x` in
23373 -n*)
23374 case `echo 'x\c'` in
23375 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23376 *) ECHO_C='\c';;
23377 esac;;
23379 ECHO_N='-n';;
23380 esac
23382 if expr a : '\(a\)' >/dev/null 2>&1 &&
23383 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23384 as_expr=expr
23385 else
23386 as_expr=false
23389 rm -f conf$$ conf$$.exe conf$$.file
23390 if test -d conf$$.dir; then
23391 rm -f conf$$.dir/conf$$.file
23392 else
23393 rm -f conf$$.dir
23394 mkdir conf$$.dir
23396 echo >conf$$.file
23397 if ln -s conf$$.file conf$$ 2>/dev/null; then
23398 as_ln_s='ln -s'
23399 # ... but there are two gotchas:
23400 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23401 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23402 # In both cases, we have to default to `cp -p'.
23403 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23404 as_ln_s='cp -p'
23405 elif ln conf$$.file conf$$ 2>/dev/null; then
23406 as_ln_s=ln
23407 else
23408 as_ln_s='cp -p'
23410 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23411 rmdir conf$$.dir 2>/dev/null
23413 if mkdir -p . 2>/dev/null; then
23414 as_mkdir_p=:
23415 else
23416 test -d ./-p && rmdir ./-p
23417 as_mkdir_p=false
23420 if test -x / >/dev/null 2>&1; then
23421 as_test_x='test -x'
23422 else
23423 if ls -dL / >/dev/null 2>&1; then
23424 as_ls_L_option=L
23425 else
23426 as_ls_L_option=
23428 as_test_x='
23429 eval sh -c '\''
23430 if test -d "$1"; then
23431 test -d "$1/.";
23432 else
23433 case $1 in
23434 -*)set "./$1";;
23435 esac;
23436 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23437 ???[sx]*):;;*)false;;esac;fi
23438 '\'' sh
23441 as_executable_p=$as_test_x
23443 # Sed expression to map a string onto a valid CPP name.
23444 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23446 # Sed expression to map a string onto a valid variable name.
23447 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23450 exec 6>&1
23452 # Save the log message, to keep $[0] and so on meaningful, and to
23453 # report actual input values of CONFIG_FILES etc. instead of their
23454 # values after options handling.
23455 ac_log="
23456 This file was extended by python $as_me 2.6, which was
23457 generated by GNU Autoconf 2.61. Invocation command line was
23459 CONFIG_FILES = $CONFIG_FILES
23460 CONFIG_HEADERS = $CONFIG_HEADERS
23461 CONFIG_LINKS = $CONFIG_LINKS
23462 CONFIG_COMMANDS = $CONFIG_COMMANDS
23463 $ $0 $@
23465 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23468 _ACEOF
23470 cat >>$CONFIG_STATUS <<_ACEOF
23471 # Files that config.status was made for.
23472 config_files="$ac_config_files"
23473 config_headers="$ac_config_headers"
23475 _ACEOF
23477 cat >>$CONFIG_STATUS <<\_ACEOF
23478 ac_cs_usage="\
23479 \`$as_me' instantiates files from templates according to the
23480 current configuration.
23482 Usage: $0 [OPTIONS] [FILE]...
23484 -h, --help print this help, then exit
23485 -V, --version print version number and configuration settings, then exit
23486 -q, --quiet do not print progress messages
23487 -d, --debug don't remove temporary files
23488 --recheck update $as_me by reconfiguring in the same conditions
23489 --file=FILE[:TEMPLATE]
23490 instantiate the configuration file FILE
23491 --header=FILE[:TEMPLATE]
23492 instantiate the configuration header FILE
23494 Configuration files:
23495 $config_files
23497 Configuration headers:
23498 $config_headers
23500 Report bugs to <bug-autoconf@gnu.org>."
23502 _ACEOF
23503 cat >>$CONFIG_STATUS <<_ACEOF
23504 ac_cs_version="\\
23505 python config.status 2.6
23506 configured by $0, generated by GNU Autoconf 2.61,
23507 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23509 Copyright (C) 2006 Free Software Foundation, Inc.
23510 This config.status script is free software; the Free Software Foundation
23511 gives unlimited permission to copy, distribute and modify it."
23513 ac_pwd='$ac_pwd'
23514 srcdir='$srcdir'
23515 INSTALL='$INSTALL'
23516 _ACEOF
23518 cat >>$CONFIG_STATUS <<\_ACEOF
23519 # If no file are specified by the user, then we need to provide default
23520 # value. By we need to know if files were specified by the user.
23521 ac_need_defaults=:
23522 while test $# != 0
23524 case $1 in
23525 --*=*)
23526 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23527 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23528 ac_shift=:
23531 ac_option=$1
23532 ac_optarg=$2
23533 ac_shift=shift
23535 esac
23537 case $ac_option in
23538 # Handling of the options.
23539 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23540 ac_cs_recheck=: ;;
23541 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23542 echo "$ac_cs_version"; exit ;;
23543 --debug | --debu | --deb | --de | --d | -d )
23544 debug=: ;;
23545 --file | --fil | --fi | --f )
23546 $ac_shift
23547 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23548 ac_need_defaults=false;;
23549 --header | --heade | --head | --hea )
23550 $ac_shift
23551 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23552 ac_need_defaults=false;;
23553 --he | --h)
23554 # Conflict between --help and --header
23555 { echo "$as_me: error: ambiguous option: $1
23556 Try \`$0 --help' for more information." >&2
23557 { (exit 1); exit 1; }; };;
23558 --help | --hel | -h )
23559 echo "$ac_cs_usage"; exit ;;
23560 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23561 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23562 ac_cs_silent=: ;;
23564 # This is an error.
23565 -*) { echo "$as_me: error: unrecognized option: $1
23566 Try \`$0 --help' for more information." >&2
23567 { (exit 1); exit 1; }; } ;;
23569 *) ac_config_targets="$ac_config_targets $1"
23570 ac_need_defaults=false ;;
23572 esac
23573 shift
23574 done
23576 ac_configure_extra_args=
23578 if $ac_cs_silent; then
23579 exec 6>/dev/null
23580 ac_configure_extra_args="$ac_configure_extra_args --silent"
23583 _ACEOF
23584 cat >>$CONFIG_STATUS <<_ACEOF
23585 if \$ac_cs_recheck; then
23586 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23587 CONFIG_SHELL=$SHELL
23588 export CONFIG_SHELL
23589 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23592 _ACEOF
23593 cat >>$CONFIG_STATUS <<\_ACEOF
23594 exec 5>>config.log
23596 echo
23597 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23598 ## Running $as_me. ##
23599 _ASBOX
23600 echo "$ac_log"
23601 } >&5
23603 _ACEOF
23604 cat >>$CONFIG_STATUS <<_ACEOF
23605 _ACEOF
23607 cat >>$CONFIG_STATUS <<\_ACEOF
23609 # Handling of arguments.
23610 for ac_config_target in $ac_config_targets
23612 case $ac_config_target in
23613 "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;;
23614 "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;;
23615 "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
23616 "Mac/IDLE/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/IDLE/Makefile" ;;
23617 "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;;
23618 "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;;
23620 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23621 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23622 { (exit 1); exit 1; }; };;
23623 esac
23624 done
23627 # If the user did not use the arguments to specify the items to instantiate,
23628 # then the envvar interface is used. Set only those that are not.
23629 # We use the long form for the default assignment because of an extremely
23630 # bizarre bug on SunOS 4.1.3.
23631 if $ac_need_defaults; then
23632 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23633 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23636 # Have a temporary directory for convenience. Make it in the build tree
23637 # simply because there is no reason against having it here, and in addition,
23638 # creating and moving files from /tmp can sometimes cause problems.
23639 # Hook for its removal unless debugging.
23640 # Note that there is a small window in which the directory will not be cleaned:
23641 # after its creation but before its name has been assigned to `$tmp'.
23642 $debug ||
23644 tmp=
23645 trap 'exit_status=$?
23646 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23648 trap '{ (exit 1); exit 1; }' 1 2 13 15
23650 # Create a (secure) tmp directory for tmp files.
23653 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23654 test -n "$tmp" && test -d "$tmp"
23655 } ||
23657 tmp=./conf$$-$RANDOM
23658 (umask 077 && mkdir "$tmp")
23659 } ||
23661 echo "$me: cannot create a temporary directory in ." >&2
23662 { (exit 1); exit 1; }
23666 # Set up the sed scripts for CONFIG_FILES section.
23669 # No need to generate the scripts if there are no CONFIG_FILES.
23670 # This happens for instance when ./config.status config.h
23671 if test -n "$CONFIG_FILES"; then
23673 _ACEOF
23677 ac_delim='%!_!# '
23678 for ac_last_try in false false false false false :; do
23679 cat >conf$$subs.sed <<_ACEOF
23680 SHELL!$SHELL$ac_delim
23681 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23682 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23683 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23684 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23685 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23686 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23687 exec_prefix!$exec_prefix$ac_delim
23688 prefix!$prefix$ac_delim
23689 program_transform_name!$program_transform_name$ac_delim
23690 bindir!$bindir$ac_delim
23691 sbindir!$sbindir$ac_delim
23692 libexecdir!$libexecdir$ac_delim
23693 datarootdir!$datarootdir$ac_delim
23694 datadir!$datadir$ac_delim
23695 sysconfdir!$sysconfdir$ac_delim
23696 sharedstatedir!$sharedstatedir$ac_delim
23697 localstatedir!$localstatedir$ac_delim
23698 includedir!$includedir$ac_delim
23699 oldincludedir!$oldincludedir$ac_delim
23700 docdir!$docdir$ac_delim
23701 infodir!$infodir$ac_delim
23702 htmldir!$htmldir$ac_delim
23703 dvidir!$dvidir$ac_delim
23704 pdfdir!$pdfdir$ac_delim
23705 psdir!$psdir$ac_delim
23706 libdir!$libdir$ac_delim
23707 localedir!$localedir$ac_delim
23708 mandir!$mandir$ac_delim
23709 DEFS!$DEFS$ac_delim
23710 ECHO_C!$ECHO_C$ac_delim
23711 ECHO_N!$ECHO_N$ac_delim
23712 ECHO_T!$ECHO_T$ac_delim
23713 LIBS!$LIBS$ac_delim
23714 build_alias!$build_alias$ac_delim
23715 host_alias!$host_alias$ac_delim
23716 target_alias!$target_alias$ac_delim
23717 VERSION!$VERSION$ac_delim
23718 SOVERSION!$SOVERSION$ac_delim
23719 CONFIG_ARGS!$CONFIG_ARGS$ac_delim
23720 UNIVERSALSDK!$UNIVERSALSDK$ac_delim
23721 PYTHONFRAMEWORK!$PYTHONFRAMEWORK$ac_delim
23722 PYTHONFRAMEWORKDIR!$PYTHONFRAMEWORKDIR$ac_delim
23723 PYTHONFRAMEWORKPREFIX!$PYTHONFRAMEWORKPREFIX$ac_delim
23724 PYTHONFRAMEWORKINSTALLDIR!$PYTHONFRAMEWORKINSTALLDIR$ac_delim
23725 FRAMEWORKINSTALLFIRST!$FRAMEWORKINSTALLFIRST$ac_delim
23726 FRAMEWORKINSTALLLAST!$FRAMEWORKINSTALLLAST$ac_delim
23727 FRAMEWORKALTINSTALLFIRST!$FRAMEWORKALTINSTALLFIRST$ac_delim
23728 FRAMEWORKALTINSTALLLAST!$FRAMEWORKALTINSTALLLAST$ac_delim
23729 FRAMEWORKUNIXTOOLSPREFIX!$FRAMEWORKUNIXTOOLSPREFIX$ac_delim
23730 MACHDEP!$MACHDEP$ac_delim
23731 SGI_ABI!$SGI_ABI$ac_delim
23732 EXTRAPLATDIR!$EXTRAPLATDIR$ac_delim
23733 EXTRAMACHDEPPATH!$EXTRAMACHDEPPATH$ac_delim
23734 CONFIGURE_MACOSX_DEPLOYMENT_TARGET!$CONFIGURE_MACOSX_DEPLOYMENT_TARGET$ac_delim
23735 EXPORT_MACOSX_DEPLOYMENT_TARGET!$EXPORT_MACOSX_DEPLOYMENT_TARGET$ac_delim
23736 CC!$CC$ac_delim
23737 CFLAGS!$CFLAGS$ac_delim
23738 LDFLAGS!$LDFLAGS$ac_delim
23739 CPPFLAGS!$CPPFLAGS$ac_delim
23740 ac_ct_CC!$ac_ct_CC$ac_delim
23741 EXEEXT!$EXEEXT$ac_delim
23742 OBJEXT!$OBJEXT$ac_delim
23743 CXX!$CXX$ac_delim
23744 MAINCC!$MAINCC$ac_delim
23745 CPP!$CPP$ac_delim
23746 GREP!$GREP$ac_delim
23747 EGREP!$EGREP$ac_delim
23748 BUILDEXEEXT!$BUILDEXEEXT$ac_delim
23749 LIBRARY!$LIBRARY$ac_delim
23750 LDLIBRARY!$LDLIBRARY$ac_delim
23751 DLLLIBRARY!$DLLLIBRARY$ac_delim
23752 BLDLIBRARY!$BLDLIBRARY$ac_delim
23753 LDLIBRARYDIR!$LDLIBRARYDIR$ac_delim
23754 INSTSONAME!$INSTSONAME$ac_delim
23755 RUNSHARED!$RUNSHARED$ac_delim
23756 LINKCC!$LINKCC$ac_delim
23757 RANLIB!$RANLIB$ac_delim
23758 AR!$AR$ac_delim
23759 SVNVERSION!$SVNVERSION$ac_delim
23760 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23761 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23762 INSTALL_DATA!$INSTALL_DATA$ac_delim
23763 LN!$LN$ac_delim
23764 OPT!$OPT$ac_delim
23765 BASECFLAGS!$BASECFLAGS$ac_delim
23766 OTHER_LIBTOOL_OPT!$OTHER_LIBTOOL_OPT$ac_delim
23767 LIBTOOL_CRUFT!$LIBTOOL_CRUFT$ac_delim
23768 SO!$SO$ac_delim
23769 LDSHARED!$LDSHARED$ac_delim
23770 BLDSHARED!$BLDSHARED$ac_delim
23771 CCSHARED!$CCSHARED$ac_delim
23772 LINKFORSHARED!$LINKFORSHARED$ac_delim
23773 CFLAGSFORSHARED!$CFLAGSFORSHARED$ac_delim
23774 SHLIBS!$SHLIBS$ac_delim
23775 USE_SIGNAL_MODULE!$USE_SIGNAL_MODULE$ac_delim
23776 SIGNAL_OBJS!$SIGNAL_OBJS$ac_delim
23777 _ACEOF
23779 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23780 break
23781 elif $ac_last_try; then
23782 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23783 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23784 { (exit 1); exit 1; }; }
23785 else
23786 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23788 done
23790 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23791 if test -n "$ac_eof"; then
23792 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23793 ac_eof=`expr $ac_eof + 1`
23796 cat >>$CONFIG_STATUS <<_ACEOF
23797 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23798 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23799 _ACEOF
23800 sed '
23801 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23802 s/^/s,@/; s/!/@,|#_!!_#|/
23805 s/'"$ac_delim"'$/,g/; t
23806 s/$/\\/; p
23807 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23808 ' >>$CONFIG_STATUS <conf$$subs.sed
23809 rm -f conf$$subs.sed
23810 cat >>$CONFIG_STATUS <<_ACEOF
23811 CEOF$ac_eof
23812 _ACEOF
23815 ac_delim='%!_!# '
23816 for ac_last_try in false false false false false :; do
23817 cat >conf$$subs.sed <<_ACEOF
23818 USE_THREAD_MODULE!$USE_THREAD_MODULE$ac_delim
23819 LDLAST!$LDLAST$ac_delim
23820 THREADOBJ!$THREADOBJ$ac_delim
23821 DLINCLDIR!$DLINCLDIR$ac_delim
23822 DYNLOADFILE!$DYNLOADFILE$ac_delim
23823 MACHDEP_OBJS!$MACHDEP_OBJS$ac_delim
23824 TRUE!$TRUE$ac_delim
23825 LIBOBJS!$LIBOBJS$ac_delim
23826 HAVE_GETHOSTBYNAME_R_6_ARG!$HAVE_GETHOSTBYNAME_R_6_ARG$ac_delim
23827 HAVE_GETHOSTBYNAME_R_5_ARG!$HAVE_GETHOSTBYNAME_R_5_ARG$ac_delim
23828 HAVE_GETHOSTBYNAME_R_3_ARG!$HAVE_GETHOSTBYNAME_R_3_ARG$ac_delim
23829 HAVE_GETHOSTBYNAME_R!$HAVE_GETHOSTBYNAME_R$ac_delim
23830 HAVE_GETHOSTBYNAME!$HAVE_GETHOSTBYNAME$ac_delim
23831 LIBM!$LIBM$ac_delim
23832 LIBC!$LIBC$ac_delim
23833 UNICODE_OBJS!$UNICODE_OBJS$ac_delim
23834 THREADHEADERS!$THREADHEADERS$ac_delim
23835 SRCDIRS!$SRCDIRS$ac_delim
23836 LTLIBOBJS!$LTLIBOBJS$ac_delim
23837 _ACEOF
23839 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 19; then
23840 break
23841 elif $ac_last_try; then
23842 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23843 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23844 { (exit 1); exit 1; }; }
23845 else
23846 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23848 done
23850 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23851 if test -n "$ac_eof"; then
23852 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23853 ac_eof=`expr $ac_eof + 1`
23856 cat >>$CONFIG_STATUS <<_ACEOF
23857 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23858 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23859 _ACEOF
23860 sed '
23861 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23862 s/^/s,@/; s/!/@,|#_!!_#|/
23865 s/'"$ac_delim"'$/,g/; t
23866 s/$/\\/; p
23867 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23868 ' >>$CONFIG_STATUS <conf$$subs.sed
23869 rm -f conf$$subs.sed
23870 cat >>$CONFIG_STATUS <<_ACEOF
23871 :end
23872 s/|#_!!_#|//g
23873 CEOF$ac_eof
23874 _ACEOF
23877 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23878 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23879 # trailing colons and then remove the whole line if VPATH becomes empty
23880 # (actually we leave an empty line to preserve line numbers).
23881 if test "x$srcdir" = x.; then
23882 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23883 s/:*\$(srcdir):*/:/
23884 s/:*\${srcdir}:*/:/
23885 s/:*@srcdir@:*/:/
23886 s/^\([^=]*=[ ]*\):*/\1/
23887 s/:*$//
23888 s/^[^=]*=[ ]*$//
23892 cat >>$CONFIG_STATUS <<\_ACEOF
23893 fi # test -n "$CONFIG_FILES"
23896 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
23898 case $ac_tag in
23899 :[FHLC]) ac_mode=$ac_tag; continue;;
23900 esac
23901 case $ac_mode$ac_tag in
23902 :[FHL]*:*);;
23903 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23904 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23905 { (exit 1); exit 1; }; };;
23906 :[FH]-) ac_tag=-:-;;
23907 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23908 esac
23909 ac_save_IFS=$IFS
23910 IFS=:
23911 set x $ac_tag
23912 IFS=$ac_save_IFS
23913 shift
23914 ac_file=$1
23915 shift
23917 case $ac_mode in
23918 :L) ac_source=$1;;
23919 :[FH])
23920 ac_file_inputs=
23921 for ac_f
23923 case $ac_f in
23924 -) ac_f="$tmp/stdin";;
23925 *) # Look for the file first in the build tree, then in the source tree
23926 # (if the path is not absolute). The absolute path cannot be DOS-style,
23927 # because $ac_f cannot contain `:'.
23928 test -f "$ac_f" ||
23929 case $ac_f in
23930 [\\/$]*) false;;
23931 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23932 esac ||
23933 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23934 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23935 { (exit 1); exit 1; }; };;
23936 esac
23937 ac_file_inputs="$ac_file_inputs $ac_f"
23938 done
23940 # Let's still pretend it is `configure' which instantiates (i.e., don't
23941 # use $as_me), people would be surprised to read:
23942 # /* config.h. Generated by config.status. */
23943 configure_input="Generated from "`IFS=:
23944 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23945 if test x"$ac_file" != x-; then
23946 configure_input="$ac_file. $configure_input"
23947 { echo "$as_me:$LINENO: creating $ac_file" >&5
23948 echo "$as_me: creating $ac_file" >&6;}
23951 case $ac_tag in
23952 *:-:* | *:-) cat >"$tmp/stdin";;
23953 esac
23955 esac
23957 ac_dir=`$as_dirname -- "$ac_file" ||
23958 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23959 X"$ac_file" : 'X\(//\)[^/]' \| \
23960 X"$ac_file" : 'X\(//\)$' \| \
23961 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23962 echo X"$ac_file" |
23963 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23964 s//\1/
23967 /^X\(\/\/\)[^/].*/{
23968 s//\1/
23971 /^X\(\/\/\)$/{
23972 s//\1/
23975 /^X\(\/\).*/{
23976 s//\1/
23979 s/.*/./; q'`
23980 { as_dir="$ac_dir"
23981 case $as_dir in #(
23982 -*) as_dir=./$as_dir;;
23983 esac
23984 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23985 as_dirs=
23986 while :; do
23987 case $as_dir in #(
23988 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23989 *) as_qdir=$as_dir;;
23990 esac
23991 as_dirs="'$as_qdir' $as_dirs"
23992 as_dir=`$as_dirname -- "$as_dir" ||
23993 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23994 X"$as_dir" : 'X\(//\)[^/]' \| \
23995 X"$as_dir" : 'X\(//\)$' \| \
23996 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23997 echo X"$as_dir" |
23998 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23999 s//\1/
24002 /^X\(\/\/\)[^/].*/{
24003 s//\1/
24006 /^X\(\/\/\)$/{
24007 s//\1/
24010 /^X\(\/\).*/{
24011 s//\1/
24014 s/.*/./; q'`
24015 test -d "$as_dir" && break
24016 done
24017 test -z "$as_dirs" || eval "mkdir $as_dirs"
24018 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24019 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24020 { (exit 1); exit 1; }; }; }
24021 ac_builddir=.
24023 case "$ac_dir" in
24024 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24026 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24027 # A ".." for each directory in $ac_dir_suffix.
24028 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24029 case $ac_top_builddir_sub in
24030 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24031 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24032 esac ;;
24033 esac
24034 ac_abs_top_builddir=$ac_pwd
24035 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24036 # for backward compatibility:
24037 ac_top_builddir=$ac_top_build_prefix
24039 case $srcdir in
24040 .) # We are building in place.
24041 ac_srcdir=.
24042 ac_top_srcdir=$ac_top_builddir_sub
24043 ac_abs_top_srcdir=$ac_pwd ;;
24044 [\\/]* | ?:[\\/]* ) # Absolute name.
24045 ac_srcdir=$srcdir$ac_dir_suffix;
24046 ac_top_srcdir=$srcdir
24047 ac_abs_top_srcdir=$srcdir ;;
24048 *) # Relative name.
24049 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24050 ac_top_srcdir=$ac_top_build_prefix$srcdir
24051 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24052 esac
24053 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24056 case $ac_mode in
24059 # CONFIG_FILE
24062 case $INSTALL in
24063 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24064 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24065 esac
24066 _ACEOF
24068 cat >>$CONFIG_STATUS <<\_ACEOF
24069 # If the template does not know about datarootdir, expand it.
24070 # FIXME: This hack should be removed a few years after 2.60.
24071 ac_datarootdir_hack=; ac_datarootdir_seen=
24073 case `sed -n '/datarootdir/ {
24077 /@datadir@/p
24078 /@docdir@/p
24079 /@infodir@/p
24080 /@localedir@/p
24081 /@mandir@/p
24082 ' $ac_file_inputs` in
24083 *datarootdir*) ac_datarootdir_seen=yes;;
24084 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24085 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24086 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24087 _ACEOF
24088 cat >>$CONFIG_STATUS <<_ACEOF
24089 ac_datarootdir_hack='
24090 s&@datadir@&$datadir&g
24091 s&@docdir@&$docdir&g
24092 s&@infodir@&$infodir&g
24093 s&@localedir@&$localedir&g
24094 s&@mandir@&$mandir&g
24095 s&\\\${datarootdir}&$datarootdir&g' ;;
24096 esac
24097 _ACEOF
24099 # Neutralize VPATH when `$srcdir' = `.'.
24100 # Shell code in configure.ac might set extrasub.
24101 # FIXME: do we really want to maintain this feature?
24102 cat >>$CONFIG_STATUS <<_ACEOF
24103 sed "$ac_vpsub
24104 $extrasub
24105 _ACEOF
24106 cat >>$CONFIG_STATUS <<\_ACEOF
24108 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24109 s&@configure_input@&$configure_input&;t t
24110 s&@top_builddir@&$ac_top_builddir_sub&;t t
24111 s&@srcdir@&$ac_srcdir&;t t
24112 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24113 s&@top_srcdir@&$ac_top_srcdir&;t t
24114 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24115 s&@builddir@&$ac_builddir&;t t
24116 s&@abs_builddir@&$ac_abs_builddir&;t t
24117 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24118 s&@INSTALL@&$ac_INSTALL&;t t
24119 $ac_datarootdir_hack
24120 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24122 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24123 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24124 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24125 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24126 which seems to be undefined. Please make sure it is defined." >&5
24127 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24128 which seems to be undefined. Please make sure it is defined." >&2;}
24130 rm -f "$tmp/stdin"
24131 case $ac_file in
24132 -) cat "$tmp/out"; rm -f "$tmp/out";;
24133 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24134 esac
24138 # CONFIG_HEADER
24140 _ACEOF
24142 # Transform confdefs.h into a sed script `conftest.defines', that
24143 # substitutes the proper values into config.h.in to produce config.h.
24144 rm -f conftest.defines conftest.tail
24145 # First, append a space to every undef/define line, to ease matching.
24146 echo 's/$/ /' >conftest.defines
24147 # Then, protect against being on the right side of a sed subst, or in
24148 # an unquoted here document, in config.status. If some macros were
24149 # called several times there might be several #defines for the same
24150 # symbol, which is useless. But do not sort them, since the last
24151 # AC_DEFINE must be honored.
24152 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24153 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24154 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24155 # PARAMS is the parameter list in the macro definition--in most cases, it's
24156 # just an empty string.
24157 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24158 ac_dB='\\)[ (].*,\\1define\\2'
24159 ac_dC=' '
24160 ac_dD=' ,'
24162 uniq confdefs.h |
24163 sed -n '
24164 t rset
24165 :rset
24166 s/^[ ]*#[ ]*define[ ][ ]*//
24167 t ok
24170 s/[\\&,]/\\&/g
24171 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24172 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24173 ' >>conftest.defines
24175 # Remove the space that was appended to ease matching.
24176 # Then replace #undef with comments. This is necessary, for
24177 # example, in the case of _POSIX_SOURCE, which is predefined and required
24178 # on some systems where configure will not decide to define it.
24179 # (The regexp can be short, since the line contains either #define or #undef.)
24180 echo 's/ $//
24181 s,^[ #]*u.*,/* & */,' >>conftest.defines
24183 # Break up conftest.defines:
24184 ac_max_sed_lines=50
24186 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24187 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24188 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24189 # et cetera.
24190 ac_in='$ac_file_inputs'
24191 ac_out='"$tmp/out1"'
24192 ac_nxt='"$tmp/out2"'
24194 while :
24196 # Write a here document:
24197 cat >>$CONFIG_STATUS <<_ACEOF
24198 # First, check the format of the line:
24199 cat >"\$tmp/defines.sed" <<\\CEOF
24200 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24201 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24203 :def
24204 _ACEOF
24205 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
24206 echo 'CEOF
24207 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24208 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
24209 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
24210 grep . conftest.tail >/dev/null || break
24211 rm -f conftest.defines
24212 mv conftest.tail conftest.defines
24213 done
24214 rm -f conftest.defines conftest.tail
24216 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24217 cat >>$CONFIG_STATUS <<\_ACEOF
24218 if test x"$ac_file" != x-; then
24219 echo "/* $configure_input */" >"$tmp/config.h"
24220 cat "$ac_result" >>"$tmp/config.h"
24221 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
24222 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24223 echo "$as_me: $ac_file is unchanged" >&6;}
24224 else
24225 rm -f $ac_file
24226 mv "$tmp/config.h" $ac_file
24228 else
24229 echo "/* $configure_input */"
24230 cat "$ac_result"
24232 rm -f "$tmp/out12"
24236 esac
24238 done # for ac_tag
24241 { (exit 0); exit 0; }
24242 _ACEOF
24243 chmod +x $CONFIG_STATUS
24244 ac_clean_files=$ac_clean_files_save
24247 # configure is writing to config.log, and then calls config.status.
24248 # config.status does its own redirection, appending to config.log.
24249 # Unfortunately, on DOS this fails, as config.log is still kept open
24250 # by configure, so config.status won't be able to write to it; its
24251 # output is simply discarded. So we exec the FD to /dev/null,
24252 # effectively closing config.log, so it can be properly (re)opened and
24253 # appended to by config.status. When coming back to configure, we
24254 # need to make the FD available again.
24255 if test "$no_create" != yes; then
24256 ac_cs_success=:
24257 ac_config_status_args=
24258 test "$silent" = yes &&
24259 ac_config_status_args="$ac_config_status_args --quiet"
24260 exec 5>/dev/null
24261 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24262 exec 5>>config.log
24263 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24264 # would make configure fail if this is the last instruction.
24265 $ac_cs_success || { (exit 1); exit 1; }
24269 echo "creating Modules/Setup"
24270 if test ! -f Modules/Setup
24271 then
24272 cp $srcdir/Modules/Setup.dist Modules/Setup
24275 echo "creating Modules/Setup.local"
24276 if test ! -f Modules/Setup.local
24277 then
24278 echo "# Edit this file for local setup changes" >Modules/Setup.local
24281 echo "creating Makefile"
24282 $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
24283 -s Modules Modules/Setup.config \
24284 Modules/Setup.local Modules/Setup
24286 case $ac_sys_system in
24287 BeOS)
24288 { echo "$as_me:$LINENO: WARNING:
24290 Support for BeOS is deprecated as of Python 2.6.
24291 See PEP 11 for the gory details.
24292 " >&5
24293 echo "$as_me: WARNING:
24295 Support for BeOS is deprecated as of Python 2.6.
24296 See PEP 11 for the gory details.
24297 " >&2;}
24299 *) ;;
24300 esac
24302 mv config.c Modules