2 # From configure.in Revision: 81509 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.65 for python 2.7.
6 # Report bugs to <http://bugs.python.org/>.
9 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
10 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
14 # This configure script is free software; the Free Software Foundation
15 # gives unlimited permission to copy, distribute and modify it.
16 ## -------------------- ##
17 ## M4sh Initialization. ##
18 ## -------------------- ##
20 # Be more Bourne compatible
21 DUALCASE
=1; export DUALCASE
# for MKS sh
22 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
30 case `(set -o) 2>/dev/null` in #(
42 # Printing a long string crashes Solaris 7 /usr/bin/printf.
43 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
46 # Prefer a ksh shell builtin over an external printf program on Solaris,
47 # but without wasting forks for bash or zsh.
48 if test -z "$BASH_VERSION$ZSH_VERSION" \
49 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
51 as_echo_n='print
-rn --'
52 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
56 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
57 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
58 as_echo_n='/usr
/ucb
/echo -n'
60 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
65 expr "X$arg" : "X\\(.*\\)$as_nl";
66 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
68 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
71 as_echo_n='sh
-c $as_echo_n_body as_echo
'
74 as_echo='sh
-c $as_echo_body as_echo
'
77 # The user is always right.
78 if test "${PATH_SEPARATOR+set}" != set; then
80 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
88 # We need space, tab and new line, in precisely that order. Quoting is
89 # there to prevent editors from complaining about space-tab.
90 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
91 # splitting by setting IFS to empty value.)
94 # Find who we are. Look in the path if we contain no directory separator.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x
; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var
in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\
${$as_var+set} = xset \
124 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
137 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x
; then
140 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 case \`(set -o) 2>/dev/null\` in #(
156 as_required
="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1"
178 if (eval "$as_required") 2>/dev
/null
; then :
183 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
186 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
188 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
191 test -z "$as_dir" && as_dir
=.
195 for as_base
in sh bash ksh sh5
; do
196 # Try only shells that exist, to save several forks.
197 as_shell
=$as_dir/$as_base
198 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
199 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
200 CONFIG_SHELL
=$as_shell as_have_required
=yes
201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
209 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
210 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
211 CONFIG_SHELL
=$SHELL as_have_required
=yes
216 if test "x$CONFIG_SHELL" != x
; then :
217 # We cannot yet assume a decent shell, so we have to provide a
218 # neutralization value for shells without unset; and this also
219 # works around shells that cannot unset nonexistent variables.
222 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
224 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
227 if test x
$as_have_required = xno
; then :
228 $as_echo "$0: This script requires a shell more modern than all"
229 $as_echo "$0: the shells that I found on your system."
230 if test x
${ZSH_VERSION+set} = xset
; then
231 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
232 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
234 $as_echo "$0: Please tell bug-autoconf@gnu.org and
235 $0: http://bugs.python.org/ about your system, including
236 $0: any error possibly output before this message. Then
237 $0: install a modern shell, or manually run the script
238 $0: under such a shell if you do have one."
244 SHELL
=${CONFIG_SHELL-/bin/sh}
246 # Unset more variables known to interfere with behavior of common tools.
247 CLICOLOR_FORCE
= GREP_OPTIONS
=
248 unset CLICOLOR_FORCE GREP_OPTIONS
250 ## --------------------- ##
251 ## M4sh Shell Functions. ##
252 ## --------------------- ##
255 # Portably unset VAR.
258 { eval $1=; unset $1;}
262 # as_fn_set_status STATUS
263 # -----------------------
264 # Set $? to STATUS, without forking.
272 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
282 # Create "$as_dir" as a directory, including parents if necessary.
287 -*) as_dir
=.
/$as_dir;;
289 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
293 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 as_dirs
="'$as_qdir' $as_dirs"
297 as_dir
=`$as_dirname -- "$as_dir" ||
298 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
299 X"$as_dir" : 'X\(//\)[^/]' \| \
300 X"$as_dir" : 'X\(//\)$' \| \
301 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
302 $as_echo X"$as_dir" |
303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
320 test -d "$as_dir" && break
322 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
323 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
327 # as_fn_append VAR VALUE
328 # ----------------------
329 # Append the text in VALUE to the end of the definition contained in VAR. Take
330 # advantage of any shell optimizations that allow amortized linear growth over
331 # repeated appends, instead of the typical quadratic growth present in naive
333 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
334 eval 'as_fn_append ()
347 # Perform arithmetic evaluation on the ARGs, and store the result in the
348 # global $as_val. Take advantage of shells that can avoid forks. The arguments
349 # must be portable across $(()) and expr.
350 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
358 as_val
=`expr "$@" || test $? -eq 1`
363 # as_fn_error ERROR [LINENO LOG_FD]
364 # ---------------------------------
365 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
366 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
367 # script with status $?, using 1 if that was 0.
370 as_status
=$?
; test $as_status -eq 0 && as_status
=1
372 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
373 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
375 $as_echo "$as_me: error: $1" >&2
376 as_fn_exit
$as_status
379 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
380 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
386 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
392 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
398 as_me
=`$as_basename -- "$0" ||
399 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
400 X"$0" : 'X\(//\)$' \| \
401 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
403 sed '/^.*\/\([^/][^/]*\)\/*$/{
417 # Avoid depending upon Character Ranges.
418 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
419 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
420 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
421 as_cr_digits
='0123456789'
422 as_cr_alnum
=$as_cr_Letters$as_cr_digits
425 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
426 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
427 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
428 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
429 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
441 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
445 chmod +x
"$as_me.lineno" ||
446 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
448 # Don't try to exec as it changes $[0], causing all sort of problems
449 # (the dirname of $[0] is not the place where we might find the
450 # original and so on. Autoconf is especially sensitive to this).
452 # Exit status is that of the last command.
456 ECHO_C
= ECHO_N
= ECHO_T
=
457 case `echo -n x` in #(((((
459 case `echo 'xy\c'` in
460 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
462 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
469 rm -f conf$$ conf$$.exe conf$$.
file
470 if test -d conf$$.dir
; then
471 rm -f conf$$.dir
/conf$$.
file
474 mkdir conf$$.dir
2>/dev
/null
476 if (echo >conf$$.
file) 2>/dev
/null
; then
477 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
479 # ... but there are two gotchas:
480 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
481 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
482 # In both cases, we have to default to `cp -p'.
483 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
485 elif ln conf$$.
file conf$$
2>/dev
/null
; then
493 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
494 rmdir conf$$.dir
2>/dev
/null
496 if mkdir
-p .
2>/dev
/null
; then
497 as_mkdir_p
='mkdir -p "$as_dir"'
499 test -d .
/-p && rmdir .
/-p
503 if test -x / >/dev
/null
2>&1; then
506 if ls -dL / >/dev
/null
2>&1; then
513 if test -d "$1"; then
519 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
520 ???[sx]*):;;*)false;;esac;fi
524 as_executable_p
=$as_test_x
526 # Sed expression to map a string onto a valid CPP name.
527 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
529 # Sed expression to map a string onto a valid variable name.
530 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
537 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
538 # so uname gets run too.
539 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
544 ac_default_prefix
=/usr
/local
546 ac_config_libobj_dir
=.
553 # Identity of this package.
554 PACKAGE_NAME
='python'
555 PACKAGE_TARNAME
='python'
556 PACKAGE_VERSION
='2.7'
557 PACKAGE_STRING
='python 2.7'
558 PACKAGE_BUGREPORT
='http://bugs.python.org/'
561 ac_unique_file
="Include/object.h"
562 # Factoring default headers for most tests.
563 ac_includes_default
="\
565 #ifdef HAVE_SYS_TYPES_H
566 # include <sys/types.h>
568 #ifdef HAVE_SYS_STAT_H
569 # include <sys/stat.h>
575 # ifdef HAVE_STDLIB_H
580 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
585 #ifdef HAVE_STRINGS_H
586 # include <strings.h>
588 #ifdef HAVE_INTTYPES_H
589 # include <inttypes.h>
598 ac_subst_vars
='LTLIBOBJS
606 HAVE_GETHOSTBYNAME_R_3_ARG
607 HAVE_GETHOSTBYNAME_R_5_ARG
608 HAVE_GETHOSTBYNAME_R_6_ARG
664 EXPORT_MACOSX_DEPLOYMENT_TARGET
665 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
670 FRAMEWORKINSTALLAPPSPREFIX
671 FRAMEWORKUNIXTOOLSPREFIX
672 FRAMEWORKALTINSTALLLAST
673 FRAMEWORKALTINSTALLFIRST
675 FRAMEWORKINSTALLFIRST
676 PYTHONFRAMEWORKINSTALLDIR
677 PYTHONFRAMEWORKPREFIX
679 PYTHONFRAMEWORKIDENTIFIER
714 program_transform_name
727 enable_option_checking
753 with_wctype_functions
760 ac_precious_vars
='build_alias
771 # Initialize some variables set by options.
773 ac_init_version
=false
774 ac_unrecognized_opts
=
776 # The variables have the same names as the options, with
777 # dashes changed to underlines.
785 program_transform_name
=s
,x
,x
,
793 # Installation directory options.
794 # These are left unexpanded so users can "make install exec_prefix=/foo"
795 # and all the variables that are supposed to be based on exec_prefix
796 # by default will actually change.
797 # Use braces instead of parens because sh, perl, etc. also accept them.
798 # (The list follows the same order as the GNU Coding Standards.)
799 bindir
='${exec_prefix}/bin'
800 sbindir
='${exec_prefix}/sbin'
801 libexecdir
='${exec_prefix}/libexec'
802 datarootdir
='${prefix}/share'
803 datadir
='${datarootdir}'
804 sysconfdir
='${prefix}/etc'
805 sharedstatedir
='${prefix}/com'
806 localstatedir
='${prefix}/var'
807 includedir
='${prefix}/include'
808 oldincludedir
='/usr/include'
809 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
810 infodir
='${datarootdir}/info'
815 libdir
='${exec_prefix}/lib'
816 localedir
='${datarootdir}/locale'
817 mandir
='${datarootdir}/man'
823 # If the previous option needs an argument, assign it.
824 if test -n "$ac_prev"; then
825 eval $ac_prev=\
$ac_option
831 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
835 # Accept the important Cygnus configure options, so we can diagnose typos.
837 case $ac_dashdash$ac_option in
841 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
843 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
846 -build |
--build |
--buil |
--bui |
--bu)
847 ac_prev
=build_alias
;;
848 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
849 build_alias
=$ac_optarg ;;
851 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
852 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
853 ac_prev
=cache_file
;;
854 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
855 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
856 cache_file
=$ac_optarg ;;
859 cache_file
=config.cache
;;
861 -datadir |
--datadir |
--datadi |
--datad)
863 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
864 datadir
=$ac_optarg ;;
866 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
867 |
--dataroo |
--dataro |
--datar)
868 ac_prev
=datarootdir
;;
869 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
870 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
871 datarootdir
=$ac_optarg ;;
873 -disable-* |
--disable-*)
874 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
875 # Reject names that are not valid shell variable names.
876 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
877 as_fn_error
"invalid feature name: $ac_useropt"
878 ac_useropt_orig
=$ac_useropt
879 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
880 case $ac_user_opts in
884 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
885 ac_unrecognized_sep
=', ';;
887 eval enable_
$ac_useropt=no
;;
889 -docdir |
--docdir |
--docdi |
--doc |
--do)
891 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
894 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
896 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
899 -enable-* |
--enable-*)
900 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
901 # Reject names that are not valid shell variable names.
902 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
903 as_fn_error
"invalid feature name: $ac_useropt"
904 ac_useropt_orig
=$ac_useropt
905 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
906 case $ac_user_opts in
910 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
911 ac_unrecognized_sep
=', ';;
913 eval enable_
$ac_useropt=\
$ac_optarg ;;
915 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
916 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
917 |
--exec |
--exe |
--ex)
918 ac_prev
=exec_prefix
;;
919 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
920 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
921 |
--exec=* |
--exe=* |
--ex=*)
922 exec_prefix
=$ac_optarg ;;
924 -gas |
--gas |
--ga |
--g)
925 # Obsolete; use --with-gas.
928 -help |
--help |
--hel |
--he |
-h)
930 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
931 ac_init_help
=recursive
;;
932 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
933 ac_init_help
=short
;;
935 -host |
--host |
--hos |
--ho)
936 ac_prev
=host_alias
;;
937 -host=* |
--host=* |
--hos=* |
--ho=*)
938 host_alias
=$ac_optarg ;;
940 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
942 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
944 htmldir
=$ac_optarg ;;
946 -includedir |
--includedir |
--includedi |
--included |
--include \
947 |
--includ |
--inclu |
--incl |
--inc)
948 ac_prev
=includedir
;;
949 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
950 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
951 includedir
=$ac_optarg ;;
953 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
955 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
956 infodir
=$ac_optarg ;;
958 -libdir |
--libdir |
--libdi |
--libd)
960 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
963 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
964 |
--libexe |
--libex |
--libe)
965 ac_prev
=libexecdir
;;
966 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
967 |
--libexe=* |
--libex=* |
--libe=*)
968 libexecdir
=$ac_optarg ;;
970 -localedir |
--localedir |
--localedi |
--localed |
--locale)
972 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
973 localedir
=$ac_optarg ;;
975 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
976 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
977 ac_prev
=localstatedir
;;
978 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
979 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
980 localstatedir
=$ac_optarg ;;
982 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
984 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
988 # Obsolete; use --without-fp.
991 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
992 |
--no-cr |
--no-c |
-n)
995 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
996 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
999 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1000 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1001 |
--oldin |
--oldi |
--old |
--ol |
--o)
1002 ac_prev
=oldincludedir
;;
1003 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1004 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1005 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1006 oldincludedir
=$ac_optarg ;;
1008 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1010 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1011 prefix
=$ac_optarg ;;
1013 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1014 |
--program-pre |
--program-pr |
--program-p)
1015 ac_prev
=program_prefix
;;
1016 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1017 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1018 program_prefix
=$ac_optarg ;;
1020 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1021 |
--program-suf |
--program-su |
--program-s)
1022 ac_prev
=program_suffix
;;
1023 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1024 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1025 program_suffix
=$ac_optarg ;;
1027 -program-transform-name |
--program-transform-name \
1028 |
--program-transform-nam |
--program-transform-na \
1029 |
--program-transform-n |
--program-transform- \
1030 |
--program-transform |
--program-transfor \
1031 |
--program-transfo |
--program-transf \
1032 |
--program-trans |
--program-tran \
1033 |
--progr-tra |
--program-tr |
--program-t)
1034 ac_prev
=program_transform_name
;;
1035 -program-transform-name=* |
--program-transform-name=* \
1036 |
--program-transform-nam=* |
--program-transform-na=* \
1037 |
--program-transform-n=* |
--program-transform-=* \
1038 |
--program-transform=* |
--program-transfor=* \
1039 |
--program-transfo=* |
--program-transf=* \
1040 |
--program-trans=* |
--program-tran=* \
1041 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1042 program_transform_name
=$ac_optarg ;;
1044 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1046 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1047 pdfdir
=$ac_optarg ;;
1049 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1051 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1054 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1055 |
-silent |
--silent |
--silen |
--sile |
--sil)
1058 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1060 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1062 sbindir
=$ac_optarg ;;
1064 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1065 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1066 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1068 ac_prev
=sharedstatedir
;;
1069 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1070 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1071 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1073 sharedstatedir
=$ac_optarg ;;
1075 -site |
--site |
--sit)
1077 -site=* |
--site=* |
--sit=*)
1080 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1082 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1083 srcdir
=$ac_optarg ;;
1085 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1086 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1087 ac_prev
=sysconfdir
;;
1088 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1089 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1090 sysconfdir
=$ac_optarg ;;
1092 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1093 ac_prev
=target_alias
;;
1094 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1095 target_alias
=$ac_optarg ;;
1097 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1100 -version |
--version |
--versio |
--versi |
--vers |
-V)
1101 ac_init_version
=: ;;
1104 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1105 # Reject names that are not valid shell variable names.
1106 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1107 as_fn_error
"invalid package name: $ac_useropt"
1108 ac_useropt_orig
=$ac_useropt
1109 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1110 case $ac_user_opts in
1114 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1115 ac_unrecognized_sep
=', ';;
1117 eval with_
$ac_useropt=\
$ac_optarg ;;
1119 -without-* |
--without-*)
1120 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1121 # Reject names that are not valid shell variable names.
1122 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1123 as_fn_error
"invalid package name: $ac_useropt"
1124 ac_useropt_orig
=$ac_useropt
1125 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1126 case $ac_user_opts in
1130 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1131 ac_unrecognized_sep
=', ';;
1133 eval with_
$ac_useropt=no
;;
1136 # Obsolete; use --with-x.
1139 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1140 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1141 ac_prev
=x_includes
;;
1142 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1143 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1144 x_includes
=$ac_optarg ;;
1146 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1147 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1148 ac_prev
=x_libraries
;;
1149 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1150 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1151 x_libraries
=$ac_optarg ;;
1153 -*) as_fn_error
"unrecognized option: \`$ac_option'
1154 Try \`$0 --help' for more information."
1158 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1159 # Reject names that are not valid shell variable names.
1160 case $ac_envvar in #(
1161 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1162 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1164 eval $ac_envvar=\
$ac_optarg
1165 export $ac_envvar ;;
1168 # FIXME: should be removed in autoconf 3.0.
1169 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1170 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1171 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1172 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1178 if test -n "$ac_prev"; then
1179 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1180 as_fn_error
"missing argument to $ac_option"
1183 if test -n "$ac_unrecognized_opts"; then
1184 case $enable_option_checking in
1186 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1187 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1191 # Check all directory arguments for consistency.
1192 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1193 datadir sysconfdir sharedstatedir localstatedir includedir \
1194 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1195 libdir localedir mandir
1197 eval ac_val
=\$
$ac_var
1198 # Remove trailing slashes.
1201 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1202 eval $ac_var=\
$ac_val;;
1204 # Be sure to have absolute directory names.
1206 [\\/$
]* | ?
:[\\/]* ) continue;;
1207 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1209 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1212 # There might be people who depend on the old broken behavior: `$host'
1213 # used to hold the argument of --host etc.
1214 # FIXME: To remove some day.
1217 target
=$target_alias
1219 # FIXME: To remove some day.
1220 if test "x$host_alias" != x
; then
1221 if test "x$build_alias" = x
; then
1222 cross_compiling
=maybe
1223 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1224 If a cross compiler is detected then cross compile mode will be used." >&2
1225 elif test "x$build_alias" != "x$host_alias"; then
1231 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1233 test "$silent" = yes && exec 6>/dev
/null
1236 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1237 ac_ls_di
=`ls -di .` &&
1238 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1239 as_fn_error
"working directory cannot be determined"
1240 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1241 as_fn_error
"pwd does not report name of working directory"
1244 # Find the source files, if location was not specified.
1245 if test -z "$srcdir"; then
1246 ac_srcdir_defaulted
=yes
1247 # Try the directory containing this script, then the parent directory.
1248 ac_confdir
=`$as_dirname -- "$as_myself" ||
1249 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1250 X"$as_myself" : 'X\(//\)[^/]' \| \
1251 X"$as_myself" : 'X\(//\)$' \| \
1252 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1253 $as_echo X"$as_myself" |
1254 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1272 if test ! -r "$srcdir/$ac_unique_file"; then
1276 ac_srcdir_defaulted
=no
1278 if test ! -r "$srcdir/$ac_unique_file"; then
1279 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1280 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1282 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1284 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1286 # When building in place, set srcdir=.
1287 if test "$ac_abs_confdir" = "$ac_pwd"; then
1290 # Remove unnecessary trailing slashes from srcdir.
1291 # Double slashes in file names in object file debugging info
1292 # mess up M-x gdb in Emacs.
1294 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1296 for ac_var
in $ac_precious_vars; do
1297 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1298 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1299 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1300 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1304 # Report the --help message.
1306 if test "$ac_init_help" = "long"; then
1307 # Omit some internal or obsolete options to make the list less imposing.
1308 # This message is too long to be a string in the A/UX 3.1 sh.
1310 \`configure' configures python 2.7 to adapt to many kinds of systems.
1312 Usage: $0 [OPTION]... [VAR=VALUE]...
1314 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1315 VAR=VALUE. See below for descriptions of some of the useful variables.
1317 Defaults for the options are specified in brackets.
1320 -h, --help display this help and exit
1321 --help=short display options specific to this package
1322 --help=recursive display the short help of all the included packages
1323 -V, --version display version information and exit
1324 -q, --quiet, --silent do not print \`checking...' messages
1325 --cache-file=FILE cache test results in FILE [disabled]
1326 -C, --config-cache alias for \`--cache-file=config.cache'
1327 -n, --no-create do not create output files
1328 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1330 Installation directories:
1331 --prefix=PREFIX install architecture-independent files in PREFIX
1332 [$ac_default_prefix]
1333 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1336 By default, \`make install' will install all the files in
1337 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1338 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1339 for instance \`--prefix=\$HOME'.
1341 For better control, use the options below.
1343 Fine tuning of the installation directories:
1344 --bindir=DIR user executables [EPREFIX/bin]
1345 --sbindir=DIR system admin executables [EPREFIX/sbin]
1346 --libexecdir=DIR program executables [EPREFIX/libexec]
1347 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1348 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1349 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1350 --libdir=DIR object code libraries [EPREFIX/lib]
1351 --includedir=DIR C header files [PREFIX/include]
1352 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1353 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1354 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1355 --infodir=DIR info documentation [DATAROOTDIR/info]
1356 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1357 --mandir=DIR man documentation [DATAROOTDIR/man]
1358 --docdir=DIR documentation root [DATAROOTDIR/doc/python]
1359 --htmldir=DIR html documentation [DOCDIR]
1360 --dvidir=DIR dvi documentation [DOCDIR]
1361 --pdfdir=DIR pdf documentation [DOCDIR]
1362 --psdir=DIR ps documentation [DOCDIR]
1369 if test -n "$ac_init_help"; then
1370 case $ac_init_help in
1371 short | recursive
) echo "Configuration of python 2.7:";;
1376 --disable-option-checking ignore unrecognized
--enable/--with options
1377 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1378 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1379 --enable-universalsdk[=SDKDIR
]
1380 Build against Mac OS X
10.4u SDK
(ppc
/i386
)
1381 --enable-framework[=INSTALLDIR
]
1382 Build
(MacOSX|Darwin
) framework
1383 --enable-shared disable
/enable building shared python library
1384 --enable-profiling enable C-level code profiling
1385 --enable-toolbox-glue disable
/enable MacOSX glue code
for extensions
1386 --enable-ipv6 Enable ipv6
(with ipv4
) support
1387 --disable-ipv6 Disable ipv6 support
1388 --enable-big-digits[=BITS
]
1389 use big digits
for Python longs
[[BITS
=30]]
1390 --enable-unicode[=ucs
[24]]
1391 Enable Unicode
strings (default is ucs2
)
1394 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1395 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1396 --with-universal-archs=ARCH
1397 select architectures
for universal build
("32-bit",
1398 "64-bit", "3-way", "intel" or
"all")
1399 --with-framework-name=FRAMEWORK
1400 specify an alternate name of the framework built
1401 with
--enable-framework
1402 --without-gcc never use gcc
1403 --with-cxx-main=<compiler
>
1404 compile main
() and link python executable with C
++
1406 --with-suffix=.exe
set executable suffix
1407 --with-pydebug build with Py_DEBUG defined
1408 --with-libs='lib1 ...' link against additional libs
1409 --with-system-expat build pyexpat module using an installed expat
1411 --with-system-ffi build _ctypes module using an installed ffi library
1412 --with-dbmliborder=db1
:db2
:...
1413 order to check db backends
for dbm. Valid value is a
1414 colon separated string with the backend names
1415 `ndbm', `gdbm
' and `bdb'.
1416 --with-signal-module disable
/enable signal module
1417 --with-dec-threads use DEC Alpha
/OSF1 thread-safe libraries
1418 --with(out
)-threads[=DIRECTORY
]
1419 disable
/enable thread support
1420 --with(out
)-thread[=DIRECTORY
]
1421 deprecated
; use
--with(out
)-threads
1422 --with-pth use GNU pth threading libraries
1423 --with(out
)-doc-strings disable
/enable documentation
strings
1424 --with(out
)-tsc enable
/disable timestamp counter profile
1425 --with(out
)-pymalloc disable
/enable specialized mallocs
1426 --with-valgrind Enable Valgrind support
1427 --with-wctype-functions use wctype.h functions
1428 --with-fpectl enable SIGFPE catching
1429 --with-libm=STRING math library
1430 --with-libc=STRING C library
1432 Some influential environment variables
:
1433 CC C compiler
command
1434 CFLAGS C compiler flags
1435 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1436 nonstandard directory
<lib dir
>
1437 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1438 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1439 you have headers
in a nonstandard directory
<include dir
>
1442 Use these variables to override the choices made by
`configure' or to help
1443 it to find libraries and programs with nonstandard names/locations.
1445 Report bugs to <http://bugs.python.org/>.
1450 if test "$ac_init_help" = "recursive"; then
1451 # If there are subdirs, report their specific --help.
1452 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1453 test -d "$ac_dir" ||
1454 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1459 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1461 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1462 # A ".." for each directory in $ac_dir_suffix.
1463 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1464 case $ac_top_builddir_sub in
1465 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1466 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1469 ac_abs_top_builddir=$ac_pwd
1470 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1471 # for backward compatibility:
1472 ac_top_builddir=$ac_top_build_prefix
1475 .) # We are building in place.
1477 ac_top_srcdir=$ac_top_builddir_sub
1478 ac_abs_top_srcdir=$ac_pwd ;;
1479 [\\/]* | ?:[\\/]* ) # Absolute name.
1480 ac_srcdir=$srcdir$ac_dir_suffix;
1481 ac_top_srcdir=$srcdir
1482 ac_abs_top_srcdir=$srcdir ;;
1484 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1485 ac_top_srcdir=$ac_top_build_prefix$srcdir
1486 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1488 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1490 cd "$ac_dir" || { ac_status=$?; continue; }
1491 # Check for guested configure.
1492 if test -f "$ac_srcdir/configure.gnu"; then
1494 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1495 elif test -f "$ac_srcdir/configure"; then
1497 $SHELL "$ac_srcdir/configure" --help=recursive
1499 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1501 cd "$ac_pwd" || { ac_status=$?; break; }
1505 test -n "$ac_init_help" && exit $ac_status
1506 if $ac_init_version; then
1508 python configure 2.7
1509 generated by GNU Autoconf 2.65
1511 Copyright (C) 2009 Free Software Foundation, Inc.
1512 This configure script is free software; the Free Software Foundation
1513 gives unlimited permission to copy, distribute and modify it.
1518 ## ------------------------ ##
1519 ## Autoconf initialization. ##
1520 ## ------------------------ ##
1522 # ac_fn_c_try_compile LINENO
1523 # --------------------------
1524 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1525 ac_fn_c_try_compile ()
1527 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1528 rm -f conftest.$ac_objext
1529 if { { ac_try="$ac_compile"
1531 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1532 *) ac_try_echo
=$ac_try;;
1534 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1535 $as_echo "$ac_try_echo"; } >&5
1536 (eval "$ac_compile") 2>conftest.err
1538 if test -s conftest.err
; then
1539 grep -v '^ *+' conftest.err
>conftest.er1
1540 cat conftest.er1
>&5
1541 mv -f conftest.er1 conftest.err
1543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1544 test $ac_status = 0; } && {
1545 test -z "$ac_c_werror_flag" ||
1546 test ! -s conftest.err
1547 } && test -s conftest.
$ac_objext; then :
1550 $as_echo "$as_me: failed program was:" >&5
1551 sed 's/^/| /' conftest.
$ac_ext >&5
1555 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1556 as_fn_set_status
$ac_retval
1558 } # ac_fn_c_try_compile
1560 # ac_fn_c_try_cpp LINENO
1561 # ----------------------
1562 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1565 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1566 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1568 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1569 *) ac_try_echo=$ac_try;;
1571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1572 $as_echo "$ac_try_echo"; } >&5
1573 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1575 if test -s conftest.err; then
1576 grep -v '^ *+' conftest.err >conftest.er1
1577 cat conftest.er1 >&5
1578 mv -f conftest.er1 conftest.err
1580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1581 test $ac_status = 0; } >/dev/null && {
1582 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1583 test ! -s conftest.err
1587 $as_echo "$as_me: failed program was:" >&5
1588 sed 's/^/| /' conftest.$ac_ext >&5
1592 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1593 as_fn_set_status $ac_retval
1597 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1598 # -------------------------------------------------------
1599 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1600 # the include files in INCLUDES and setting the cache variable VAR
1602 ac_fn_c_check_header_mongrel ()
1604 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1605 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1607 $as_echo_n "checking for $2... " >&6; }
1608 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1609 $as_echo_n "(cached) " >&6
1612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1613 $as_echo "$ac_res" >&6; }
1615 # Is the header compilable?
1616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1617 $as_echo_n "checking $2 usability... " >&6; }
1618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1619 /* end confdefs.h. */
1623 if ac_fn_c_try_compile "$LINENO"; then :
1624 ac_header_compiler=yes
1626 ac_header_compiler=no
1628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1630 $as_echo "$ac_header_compiler" >&6; }
1632 # Is the header present?
1633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1634 $as_echo_n "checking $2 presence... " >&6; }
1635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1636 /* end confdefs.h. */
1639 if ac_fn_c_try_cpp "$LINENO"; then :
1640 ac_header_preproc=yes
1642 ac_header_preproc=no
1644 rm -f conftest.err conftest.$ac_ext
1645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1646 $as_echo "$ac_header_preproc" >&6; }
1648 # So? What about this header?
1649 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1652 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1654 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1658 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1660 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1662 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1664 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1666 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1668 ## -------------------------------------- ##
1669 ## Report this to http://bugs.python.org/ ##
1670 ## -------------------------------------- ##
1672 ) | sed "s/^/$as_me: WARNING: /" >&2
1675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1676 $as_echo_n "checking for $2... " >&6; }
1677 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1678 $as_echo_n "(cached) " >&6
1680 eval "$3=\$ac_header_compiler"
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1684 $as_echo "$ac_res" >&6; }
1686 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1688 } # ac_fn_c_check_header_mongrel
1690 # ac_fn_c_try_run LINENO
1691 # ----------------------
1692 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1693 # that executables *can* be run.
1696 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1697 if { { ac_try="$ac_link"
1699 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1700 *) ac_try_echo
=$ac_try;;
1702 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1703 $as_echo "$ac_try_echo"; } >&5
1704 (eval "$ac_link") 2>&5
1706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1707 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1708 { { case "(($ac_try" in
1709 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1710 *) ac_try_echo=$ac_try;;
1712 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1713 $as_echo "$ac_try_echo"; } >&5
1714 (eval "$ac_try") 2>&5
1716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1717 test $ac_status = 0; }; }; then :
1720 $as_echo "$as_me: program exited with status $ac_status" >&5
1721 $as_echo "$as_me: failed program was:" >&5
1722 sed 's/^/| /' conftest.$ac_ext >&5
1724 ac_retval=$ac_status
1726 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1727 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1728 as_fn_set_status $ac_retval
1732 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1733 # -------------------------------------------------------
1734 # Tests whether HEADER exists and can be compiled using the include files in
1735 # INCLUDES, setting the cache variable VAR accordingly.
1736 ac_fn_c_check_header_compile ()
1738 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1740 $as_echo_n "checking for $2... " >&6; }
1741 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1742 $as_echo_n "(cached) " >&6
1744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1745 /* end confdefs.h. */
1749 if ac_fn_c_try_compile "$LINENO"; then :
1754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1758 $as_echo "$ac_res" >&6; }
1759 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1761 } # ac_fn_c_check_header_compile
1763 # ac_fn_c_try_link LINENO
1764 # -----------------------
1765 # Try to link conftest.$ac_ext, and return whether this succeeded.
1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769 rm -f conftest.$ac_objext conftest$ac_exeext
1770 if { { ac_try="$ac_link"
1772 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1773 *) ac_try_echo
=$ac_try;;
1775 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1776 $as_echo "$ac_try_echo"; } >&5
1777 (eval "$ac_link") 2>conftest.err
1779 if test -s conftest.err
; then
1780 grep -v '^ *+' conftest.err
>conftest.er1
1781 cat conftest.er1
>&5
1782 mv -f conftest.er1 conftest.err
1784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1785 test $ac_status = 0; } && {
1786 test -z "$ac_c_werror_flag" ||
1787 test ! -s conftest.err
1788 } && test -s conftest
$ac_exeext && {
1789 test "$cross_compiling" = yes ||
1790 $as_test_x conftest
$ac_exeext
1794 $as_echo "$as_me: failed program was:" >&5
1795 sed 's/^/| /' conftest.
$ac_ext >&5
1799 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1800 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1801 # interfere with the next link command; also delete a directory that is
1802 # left behind by Apple's compiler. We do this before executing the actions.
1803 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1804 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1805 as_fn_set_status
$ac_retval
1807 } # ac_fn_c_try_link
1809 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1810 # -------------------------------------------
1811 # Tests whether TYPE exists after having included INCLUDES, setting cache
1812 # variable VAR accordingly.
1813 ac_fn_c_check_type
()
1815 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1817 $as_echo_n "checking for $2... " >&6; }
1818 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1819 $as_echo_n "(cached) " >&6
1822 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1823 /* end confdefs.h. */
1834 if ac_fn_c_try_compile
"$LINENO"; then :
1835 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1836 /* end confdefs.h. */
1847 if ac_fn_c_try_compile
"$LINENO"; then :
1852 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1854 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1858 $as_echo "$ac_res" >&6; }
1859 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1861 } # ac_fn_c_check_type
1863 # ac_fn_c_find_uintX_t LINENO BITS VAR
1864 # ------------------------------------
1865 # Finds an unsigned integer type with width BITS, setting cache variable VAR
1867 ac_fn_c_find_uintX_t
()
1869 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1871 $as_echo_n "checking for uint$2_t... " >&6; }
1872 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1873 $as_echo_n "(cached) " >&6
1876 # Order is important - never check a type that is potentially smaller
1877 # than half of the expected target width.
1878 for ac_type
in uint
$2_t 'unsigned int' 'unsigned long int' \
1879 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1880 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1881 /* end confdefs.h. */
1882 $ac_includes_default
1886 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1893 if ac_fn_c_try_compile
"$LINENO"; then :
1898 eval "$3=\$ac_type" ;;
1901 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1903 if test "x$as_val" = x
""no
; then :
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1912 $as_echo "$ac_res" >&6; }
1913 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1915 } # ac_fn_c_find_uintX_t
1917 # ac_fn_c_find_intX_t LINENO BITS VAR
1918 # -----------------------------------
1919 # Finds a signed integer type with width BITS, setting cache variable VAR
1921 ac_fn_c_find_intX_t
()
1923 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1925 $as_echo_n "checking for int$2_t... " >&6; }
1926 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1927 $as_echo_n "(cached) " >&6
1930 # Order is important - never check a type that is potentially smaller
1931 # than half of the expected target width.
1932 for ac_type
in int
$2_t 'int' 'long int' \
1933 'long long int' 'short int' 'signed char'; do
1934 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1935 /* end confdefs.h. */
1936 $ac_includes_default
1940 static int test_array [1 - 2 * !(enum { N = $2 / 2 - 1 };
1941 0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
1948 if ac_fn_c_try_compile
"$LINENO"; then :
1949 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1950 /* end confdefs.h. */
1951 $ac_includes_default
1955 static int test_array [1 - 2 * !(enum { N = $2 / 2 - 1 };
1956 ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
1957 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
1964 if ac_fn_c_try_compile
"$LINENO"; then :
1971 eval "$3=\$ac_type" ;;
1974 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1976 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1978 if test "x$as_val" = x
""no
; then :
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1987 $as_echo "$ac_res" >&6; }
1988 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1990 } # ac_fn_c_find_intX_t
1992 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1993 # --------------------------------------------
1994 # Tries to find the compile-time value of EXPR in a program that includes
1995 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1997 ac_fn_c_compute_int
()
1999 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2000 if test "$cross_compiling" = yes; then
2001 # Depending upon the size, compute the lo and hi bounds.
2002 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2003 /* end confdefs.h. */
2008 static int test_array [1 - 2 * !(($2) >= 0)];
2015 if ac_fn_c_try_compile
"$LINENO"; then :
2018 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2019 /* end confdefs.h. */
2024 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2031 if ac_fn_c_try_compile
"$LINENO"; then :
2032 ac_hi
=$ac_mid; break
2034 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2035 if test $ac_lo -le $ac_mid; then
2039 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2041 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2044 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2045 /* end confdefs.h. */
2050 static int test_array [1 - 2 * !(($2) < 0)];
2057 if ac_fn_c_try_compile
"$LINENO"; then :
2060 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2061 /* end confdefs.h. */
2066 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2073 if ac_fn_c_try_compile
"$LINENO"; then :
2074 ac_lo
=$ac_mid; break
2076 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2077 if test $ac_mid -le $ac_hi; then
2081 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2083 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2088 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2090 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2091 # Binary search between lo and hi bounds.
2092 while test "x$ac_lo" != "x$ac_hi"; do
2093 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2094 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2095 /* end confdefs.h. */
2100 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2107 if ac_fn_c_try_compile
"$LINENO"; then :
2110 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2112 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2115 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2119 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2120 /* end confdefs.h. */
2122 static long int longval () { return $2; }
2123 static unsigned long int ulongval () { return $2; }
2130 FILE *f = fopen ("conftest.val", "w");
2135 long int i = longval ();
2138 fprintf (f, "%ld", i);
2142 unsigned long int i = ulongval ();
2145 fprintf (f, "%lu", i);
2147 /* Do not output a trailing newline, as this causes \r\n confusion
2148 on some platforms. */
2149 return ferror (f) || fclose (f) != 0;
2155 if ac_fn_c_try_run
"$LINENO"; then :
2156 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2160 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2161 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2165 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2166 as_fn_set_status
$ac_retval
2168 } # ac_fn_c_compute_int
2170 # ac_fn_c_check_func LINENO FUNC VAR
2171 # ----------------------------------
2172 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2173 ac_fn_c_check_func
()
2175 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2177 $as_echo_n "checking for $2... " >&6; }
2178 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2179 $as_echo_n "(cached) " >&6
2181 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2182 /* end confdefs.h. */
2183 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2184 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2185 #define $2 innocuous_$2
2187 /* System header to define __stub macros and hopefully few prototypes,
2188 which can conflict with char $2 (); below.
2189 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2190 <limits.h> exists even on freestanding compilers. */
2193 # include <limits.h>
2195 # include <assert.h>
2200 /* Override any GCC internal prototype to avoid an error.
2201 Use char because int might match the return type of a GCC
2202 builtin and then its argument prototype would still apply. */
2207 /* The GNU C library defines this for functions which it implements
2208 to always fail with ENOSYS. Some functions are actually named
2209 something starting with __ and the normal name is an alias. */
2210 #if defined __stub_$2 || defined __stub___$2
2222 if ac_fn_c_try_link
"$LINENO"; then :
2227 rm -f core conftest.err conftest.
$ac_objext \
2228 conftest
$ac_exeext conftest.
$ac_ext
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2232 $as_echo "$ac_res" >&6; }
2233 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2235 } # ac_fn_c_check_func
2237 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2238 # ----------------------------------------------------
2239 # Tries to find if the field MEMBER exists in type AGGR, after including
2240 # INCLUDES, setting cache variable VAR accordingly.
2241 ac_fn_c_check_member
()
2243 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2245 $as_echo_n "checking for $2.$3... " >&6; }
2246 if { as_var
=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2247 $as_echo_n "(cached) " >&6
2249 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2250 /* end confdefs.h. */
2262 if ac_fn_c_try_compile
"$LINENO"; then :
2265 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2266 /* end confdefs.h. */
2272 if (sizeof ac_aggr.$3)
2278 if ac_fn_c_try_compile
"$LINENO"; then :
2283 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2285 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2289 $as_echo "$ac_res" >&6; }
2290 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2292 } # ac_fn_c_check_member
2294 # ac_fn_c_check_decl LINENO SYMBOL VAR
2295 # ------------------------------------
2296 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2297 ac_fn_c_check_decl
()
2299 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2301 $as_echo_n "checking whether $2 is declared... " >&6; }
2302 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2303 $as_echo_n "(cached) " >&6
2305 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2306 /* end confdefs.h. */
2319 if ac_fn_c_try_compile
"$LINENO"; then :
2324 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2328 $as_echo "$ac_res" >&6; }
2329 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2331 } # ac_fn_c_check_decl
2332 cat >config.log
<<_ACEOF
2333 This file contains any messages produced by compilers while
2334 running configure, to aid debugging if configure makes a mistake.
2336 It was created by python $as_me 2.7, which was
2337 generated by GNU Autoconf 2.65. Invocation command line was
2349 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2350 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2351 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2352 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2353 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2355 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2356 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2358 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2359 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2360 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2361 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2362 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2363 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2364 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2368 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2372 test -z "$as_dir" && as_dir
=.
2373 $as_echo "PATH: $as_dir"
2389 # Keep a trace of the command line.
2390 # Strip out --no-create and --no-recursion so they do not pile up.
2391 # Strip out --silent because we don't want to record it for future runs.
2392 # Also quote any args containing shell meta-characters.
2393 # Make two passes to allow for proper duplicate-argument suppression.
2397 ac_must_keep_next
=false
2403 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2404 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2405 |
-silent |
--silent |
--silen |
--sile |
--sil)
2408 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2411 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2413 as_fn_append ac_configure_args1
" '$ac_arg'"
2414 if test $ac_must_keep_next = true
; then
2415 ac_must_keep_next
=false
# Got value, back to normal.
2418 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2419 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2420 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2421 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2422 case "$ac_configure_args0 " in
2423 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2426 -* ) ac_must_keep_next
=true
;;
2429 as_fn_append ac_configure_args
" '$ac_arg'"
2434 { ac_configure_args0
=; unset ac_configure_args0
;}
2435 { ac_configure_args1
=; unset ac_configure_args1
;}
2437 # When interrupted or exit'd, cleanup temporary files, and complete
2438 # config.log. We remove comments because anyway the quotes in there
2439 # would cause problems or look ugly.
2440 # WARNING: Use '\'' to represent an apostrophe within the trap.
2441 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2442 trap 'exit_status=$?
2443 # Save into config.log some information that might help in debugging.
2448 ## ---------------- ##
2449 ## Cache variables. ##
2450 ## ---------------- ##
2453 # The following way of writing the cache mishandles newlines in values,
2455 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2456 eval ac_val=\$$ac_var
2460 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2461 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2464 _ | IFS | as_nl) ;; #(
2465 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2466 *) { eval $ac_var=; unset $ac_var;} ;;
2471 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2472 *${as_nl}ac_space=\ *)
2474 "s/'\''/'\''\\\\'\'''\''/g;
2475 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2478 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2486 ## ----------------- ##
2487 ## Output variables. ##
2488 ## ----------------- ##
2491 for ac_var in $ac_subst_vars
2493 eval ac_val=\$$ac_var
2495 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2497 $as_echo "$ac_var='\''$ac_val'\''"
2501 if test -n "$ac_subst_files"; then
2503 ## ------------------- ##
2504 ## File substitutions. ##
2505 ## ------------------- ##
2508 for ac_var
in $ac_subst_files
2510 eval ac_val
=\$
$ac_var
2512 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2514 $as_echo "$ac_var='\''$ac_val'\''"
2519 if test -s confdefs.h; then
2529 test "$ac_signal" != 0 &&
2530 $as_echo "$as_me: caught signal $ac_signal"
2531 $as_echo "$as_me: exit $exit_status"
2533 rm -f core *.core core.conftest.* &&
2534 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2537 for ac_signal
in 1 2 13 15; do
2538 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2542 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2543 rm -f -r conftest
* confdefs.h
2545 $as_echo "/* confdefs.h */" > confdefs.h
2547 # Predefined preprocessor variables.
2549 cat >>confdefs.h
<<_ACEOF
2550 #define PACKAGE_NAME "$PACKAGE_NAME"
2553 cat >>confdefs.h
<<_ACEOF
2554 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2557 cat >>confdefs.h
<<_ACEOF
2558 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2561 cat >>confdefs.h
<<_ACEOF
2562 #define PACKAGE_STRING "$PACKAGE_STRING"
2565 cat >>confdefs.h
<<_ACEOF
2566 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2569 cat >>confdefs.h
<<_ACEOF
2570 #define PACKAGE_URL "$PACKAGE_URL"
2574 # Let the site file select an alternate cache file if it wants to.
2575 # Prefer an explicitly selected file to automatically selected ones.
2578 if test -n "$CONFIG_SITE"; then
2579 ac_site_file1
=$CONFIG_SITE
2580 elif test "x$prefix" != xNONE
; then
2581 ac_site_file1
=$prefix/share
/config.site
2582 ac_site_file2
=$prefix/etc
/config.site
2584 ac_site_file1
=$ac_default_prefix/share
/config.site
2585 ac_site_file2
=$ac_default_prefix/etc
/config.site
2587 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2589 test "x$ac_site_file" = xNONE
&& continue
2590 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2592 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2593 sed 's/^/| /' "$ac_site_file" >&5
2598 if test -r "$cache_file"; then
2599 # Some versions of bash will fail to source /dev/null (special files
2600 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2601 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2603 $as_echo "$as_me: loading cache $cache_file" >&6;}
2605 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2606 *) .
"./$cache_file";;
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2611 $as_echo "$as_me: creating cache $cache_file" >&6;}
2615 # Check that the precious variables saved in the cache have kept the same
2617 ac_cache_corrupted
=false
2618 for ac_var
in $ac_precious_vars; do
2619 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2620 eval ac_new_set
=\
$ac_env_${ac_var}_set
2621 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2622 eval ac_new_val
=\
$ac_env_${ac_var}_value
2623 case $ac_old_set,$ac_new_set in
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2626 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2627 ac_cache_corrupted
=: ;;
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2630 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2631 ac_cache_corrupted
=: ;;
2634 if test "x$ac_old_val" != "x$ac_new_val"; then
2635 # differences in whitespace do not lead to failure.
2636 ac_old_val_w
=`echo x $ac_old_val`
2637 ac_new_val_w
=`echo x $ac_new_val`
2638 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2640 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2641 ac_cache_corrupted
=:
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2644 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2645 eval $ac_var=\
$ac_old_val
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2648 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2650 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2653 # Pass precious variables to config.status.
2654 if test "$ac_new_set" = set; then
2656 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2657 *) ac_arg
=$ac_var=$ac_new_val ;;
2659 case " $ac_configure_args " in
2660 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2661 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2665 if $ac_cache_corrupted; then
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2667 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2669 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2670 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2672 ## -------------------- ##
2673 ## Main body of script. ##
2674 ## -------------------- ##
2677 ac_cpp
='$CPP $CPPFLAGS'
2678 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2679 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2680 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2684 ac_config_headers
="$ac_config_headers pyconfig.h"
2688 if test "$prefix" != "/"; then
2689 prefix
=`echo "$prefix" | sed -e 's/\/$//g'`
2695 # We don't use PACKAGE_ variables, and they cause conflicts
2696 # with other autoconf-based packages that include Python.h
2697 grep -v 'define PACKAGE_' <confdefs.h
>confdefs.h.new
2699 mv confdefs.h.new confdefs.h
2707 # The later defininition of _XOPEN_SOURCE disables certain features
2708 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
2710 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
2713 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
2714 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
2717 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
2720 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
2721 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
2724 $as_echo "#define __BSD_VISIBLE 1" >>confdefs.h
2727 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
2728 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
2730 $as_echo "#define _BSD_TYPES 1" >>confdefs.h
2733 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
2734 # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable
2737 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
2741 define_xopen_source
=yes
2743 # Arguments passed to configure.
2745 CONFIG_ARGS
="$ac_configure_args"
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-universalsdk" >&5
2748 $as_echo_n "checking for --enable-universalsdk... " >&6; }
2749 # Check whether --enable-universalsdk was given.
2750 if test "${enable_universalsdk+set}" = set; then :
2751 enableval
=$enable_universalsdk;
2754 enableval
=/Developer
/SDKs
/MacOSX10.4u.sdk
2755 if test ! -d "${enableval}"
2764 enable_universalsdk
=
2767 UNIVERSALSDK
=$enableval
2768 if test ! -d "${UNIVERSALSDK}"
2770 as_fn_error
"--enable-universalsdk specifies non-existing SDK: ${UNIVERSALSDK}" "$LINENO" 5
2779 enable_universalsdk
=
2783 if test -n "${UNIVERSALSDK}"
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSALSDK}" >&5
2786 $as_echo "${UNIVERSALSDK}" >&6; }
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2789 $as_echo "no" >&6; }
2795 UNIVERSAL_ARCHS
="32-bit"
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-universal-archs" >&5
2798 $as_echo_n "checking for --with-universal-archs... " >&6; }
2800 # Check whether --with-universal-archs was given.
2801 if test "${with_universal_archs+set}" = set; then :
2802 withval
=$with_universal_archs;
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
2804 $as_echo "$withval" >&6; }
2805 UNIVERSAL_ARCHS
="$withval"
2806 if test "${enable_universalsdk}" ; then
2809 as_fn_error
"--with-universal-archs without --enable-universalsdk. See Mac/README" "$LINENO" 5
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 32-bit" >&5
2815 $as_echo "32-bit" >&6; }
2823 # Check whether --with-framework-name was given.
2824 if test "${with_framework_name+set}" = set; then :
2825 withval
=$with_framework_name;
2826 if test "${enable_framework}"; then
2829 as_fn_error
"--with-framework-name without --enable-framework. See Mac/README" "$LINENO" 5
2831 PYTHONFRAMEWORK
=${withval}
2832 PYTHONFRAMEWORKDIR
=${withval}.framework
2833 PYTHONFRAMEWORKIDENTIFIER
=org.python.
`echo $withval | tr 'A-Z' 'a-z'`
2837 PYTHONFRAMEWORK
=Python
2838 PYTHONFRAMEWORKDIR
=Python.framework
2839 PYTHONFRAMEWORKIDENTIFIER
=org.python.python
2843 # Check whether --enable-framework was given.
2844 if test "${enable_framework+set}" = set; then :
2845 enableval
=$enable_framework;
2848 enableval
=/Library
/Frameworks
2853 PYTHONFRAMEWORKDIR
=no-framework
2854 PYTHONFRAMEWORKPREFIX
=
2855 PYTHONFRAMEWORKINSTALLDIR
=
2856 FRAMEWORKINSTALLFIRST
=
2857 FRAMEWORKINSTALLLAST
=
2858 FRAMEWORKALTINSTALLFIRST
=
2859 FRAMEWORKALTINSTALLLAST
=
2860 if test "x${prefix}" = "xNONE"; then
2861 FRAMEWORKUNIXTOOLSPREFIX
="${ac_default_prefix}"
2863 FRAMEWORKUNIXTOOLSPREFIX
="${prefix}"
2868 PYTHONFRAMEWORKPREFIX
="${enableval}"
2869 PYTHONFRAMEWORKINSTALLDIR
=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
2870 FRAMEWORKINSTALLFIRST
="frameworkinstallstructure"
2871 FRAMEWORKALTINSTALLFIRST
="frameworkinstallstructure bininstall maninstall"
2872 FRAMEWORKINSTALLLAST
="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools"
2873 FRAMEWORKALTINSTALLLAST
="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
2874 FRAMEWORKINSTALLAPPSPREFIX
="/Applications"
2876 if test "x${prefix}" = "xNONE" ; then
2877 FRAMEWORKUNIXTOOLSPREFIX
="${ac_default_prefix}"
2880 FRAMEWORKUNIXTOOLSPREFIX
="${prefix}"
2883 case "${enableval}" in
2885 FRAMEWORKINSTALLAPPSPREFIX
="/Applications"
2886 if test "${prefix}" = "NONE" ; then
2888 FRAMEWORKUNIXTOOLSPREFIX
="/usr"
2893 FRAMEWORKINSTALLAPPSPREFIX
="/Applications"
2896 */Library
/Frameworks
)
2897 MDIR
="`dirname "${enableval}"`"
2898 MDIR
="`dirname "${MDIR}"`"
2899 FRAMEWORKINSTALLAPPSPREFIX
="${MDIR}/Applications"
2901 if test "${prefix}" = "NONE"; then
2902 # User hasn't specified the
2903 # --prefix option, but wants to install
2904 # the framework in a non-default location,
2905 # ensure that the compatibility links get
2906 # installed relative to that prefix as well
2907 # instead of in /usr/local.
2908 FRAMEWORKUNIXTOOLSPREFIX
="${MDIR}"
2913 FRAMEWORKINSTALLAPPSPREFIX
="/Applications"
2917 prefix
=$PYTHONFRAMEWORKINSTALLDIR/Versions
/$VERSION
2919 # Add files for Mac specific code to the list of output
2921 ac_config_files
="$ac_config_files Mac/Makefile"
2923 ac_config_files
="$ac_config_files Mac/PythonLauncher/Makefile"
2925 ac_config_files
="$ac_config_files Mac/IDLE/Makefile"
2927 ac_config_files
="$ac_config_files Mac/Resources/framework/Info.plist"
2929 ac_config_files
="$ac_config_files Mac/Resources/app/Info.plist"
2936 PYTHONFRAMEWORKDIR
=no-framework
2937 PYTHONFRAMEWORKPREFIX
=
2938 PYTHONFRAMEWORKINSTALLDIR
=
2939 FRAMEWORKINSTALLFIRST
=
2940 FRAMEWORKINSTALLLAST
=
2941 FRAMEWORKALTINSTALLFIRST
=
2942 FRAMEWORKALTINSTALLLAST
=
2943 if test "x${prefix}" = "xNONE" ; then
2944 FRAMEWORKUNIXTOOLSPREFIX
="${ac_default_prefix}"
2946 FRAMEWORKUNIXTOOLSPREFIX
="${prefix}"
2966 ## AS_HELP_STRING([--with-dyld],
2967 ## [Use (OpenStep|Rhapsody) dynamic linker]))
2969 # Set name for machine-dependent library files
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP" >&5
2972 $as_echo_n "checking MACHDEP... " >&6; }
2973 if test -z "$MACHDEP"
2975 ac_sys_system
=`uname -s`
2976 if test "$ac_sys_system" = "AIX" \
2977 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
2978 ac_sys_release
=`uname -v`
2980 ac_sys_release
=`uname -r`
2982 ac_md_system
=`echo $ac_sys_system |
2983 tr -d '/ ' | tr '[A-Z]' '[a-z]'`
2984 ac_md_release
=`echo $ac_sys_release |
2985 tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'`
2986 MACHDEP
="$ac_md_system$ac_md_release"
2989 cygwin
*) MACHDEP
="cygwin";;
2990 darwin
*) MACHDEP
="darwin";;
2991 atheos
*) MACHDEP
="atheos";;
2992 irix646
) MACHDEP
="irix6";;
2993 '') MACHDEP
="unknown";;
2997 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
2998 # disable features if it is defined, without any means to access these
2999 # features as extensions. For these systems, we skip the definition of
3000 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
3001 # some feature, make sure there is no alternative way to access this
3002 # feature. Also, when using wildcards, make sure you have verified the
3003 # need for not defining _XOPEN_SOURCE on all systems matching the
3004 # wildcard, and that the wildcard does not include future systems
3005 # (which may remove their limitations).
3006 case $ac_sys_system/$ac_sys_release in
3007 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
3008 # even though select is a POSIX function. Reported by J. Ribbens.
3009 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
3010 # In addition, Stefan Krah confirms that issue #1244610 exists through
3011 # OpenBSD 4.6, but is fixed in 4.7.
3012 OpenBSD
/2.
* | OpenBSD
/3.
[0123456789] | OpenBSD
/4.
[0123456])
3013 define_xopen_source
=no
3014 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
3015 # also defined. This can be overridden by defining _BSD_SOURCE
3016 # As this has a different meaning on Linux, only define it on OpenBSD
3018 $as_echo "#define _BSD_SOURCE 1" >>confdefs.h
3022 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
3023 # also defined. This can be overridden by defining _BSD_SOURCE
3024 # As this has a different meaning on Linux, only define it on OpenBSD
3026 $as_echo "#define _BSD_SOURCE 1" >>confdefs.h
3029 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
3030 # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
3032 NetBSD
/1.5 | NetBSD
/1.5.
* | NetBSD
/1.6 | NetBSD
/1.6.
* | NetBSD
/1.6[A-S
])
3033 define_xopen_source
=no
;;
3034 # From the perspective of Solaris, _XOPEN_SOURCE is not so much a
3035 # request to enable features supported by the standard as a request
3036 # to disable features not supported by the standard. The best way
3037 # for Python to use Solaris is simply to leave _XOPEN_SOURCE out
3038 # entirely and define __EXTENSIONS__ instead.
3040 define_xopen_source
=no
;;
3041 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
3042 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
3043 # Reconfirmed for 7.1.4 by Martin v. Loewis.
3044 OpenUNIX
/8.0.0| UnixWare
/7.1.
[0-4])
3045 define_xopen_source
=no
;;
3046 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
3047 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
3049 define_xopen_source
=no
;;
3050 # On FreeBSD 4, the math functions C89 does not cover are never defined
3051 # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them.
3053 define_xopen_source
=no
;;
3054 # On MacOS X 10.2, a bug in ncurses.h means that it craps out if
3055 # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which
3056 # identifies itself as Darwin/7.*
3057 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
3058 # disables platform specific features beyond repair.
3059 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
3060 # has no effect, don't bother defining them
3062 define_xopen_source
=no
;;
3064 define_xopen_source
=no
;;
3065 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
3066 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
3067 # or has another value. By not (re)defining it, the defaults come in place.
3069 define_xopen_source
=no
;;
3071 if test `uname -r` -eq 1; then
3072 define_xopen_source
=no
3075 # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from
3076 # defining NI_NUMERICHOST.
3078 define_xopen_source
=no
3083 if test $define_xopen_source = yes
3086 $as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h
3089 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
3090 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
3091 # several APIs are not declared. Since this is also needed in some
3092 # cases for HP-UX, we define it globally.
3094 $as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h
3098 $as_echo "#define _POSIX_C_SOURCE 200112L" >>confdefs.h
3104 # SGI compilers allow the specification of the both the ABI and the
3105 # ISA on the command line. Depending on the values of these switches,
3106 # different and often incompatable code will be generated.
3108 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
3109 # thus supply support for various ABI/ISA combinations. The MACHDEP
3110 # variable is also adjusted.
3113 if test ! -z "$SGI_ABI"
3116 LDFLAGS
="$SGI_ABI $LDFLAGS"
3117 MACHDEP
=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACHDEP" >&5
3120 $as_echo "$MACHDEP" >&6; }
3122 # And add extra plat-mac for darwin
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking EXTRAPLATDIR" >&5
3126 $as_echo_n "checking EXTRAPLATDIR... " >&6; }
3127 if test -z "$EXTRAPLATDIR"
3131 EXTRAPLATDIR
="\$(PLATMACDIRS)"
3132 EXTRAMACHDEPPATH
="\$(PLATMACPATH)"
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRAPLATDIR" >&5
3141 $as_echo "$EXTRAPLATDIR" >&6; }
3143 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
3144 # it may influence the way we can build extensions, so distutils
3148 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
=
3149 EXPORT_MACOSX_DEPLOYMENT_TARGET
='#'
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking machine type as reported by uname -m" >&5
3152 $as_echo_n "checking machine type as reported by uname -m... " >&6; }
3153 ac_sys_machine
=`uname -m`
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sys_machine" >&5
3155 $as_echo "$ac_sys_machine" >&6; }
3157 # checks for alternative programs
3159 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
3160 # for debug/optimization stuff. BASECFLAGS is for flags that are required
3161 # just to get things to compile and link. Users are free to override OPT
3162 # when running configure or make. The build should not break if they do.
3163 # BASECFLAGS should generally not be messed with, however.
3165 # XXX shouldn't some/most/all of this code be merged with the stuff later
3166 # on that fiddles with OPT and BASECFLAGS?
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --without-gcc" >&5
3168 $as_echo_n "checking for --without-gcc... " >&6; }
3170 # Check whether --with-gcc was given.
3171 if test "${with_gcc+set}" = set; then :
3179 without_gcc
=$withval;;
3183 case $ac_sys_system in
3187 case $BE_HOST_CPU in
3191 BASECFLAGS
="$BASECFLAGS -export pragma"
3193 LDFLAGS
="$LDFLAGS -nodup"
3201 as_fn_error
"Unknown BeOS platform \"$BE_HOST_CPU\"" "$LINENO" 5
3204 AR
="\$(srcdir)/Modules/ar_beos"
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $without_gcc" >&5
3212 $as_echo "$without_gcc" >&6; }
3214 # If the user switches compilers, we can't believe the cache
3215 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
3217 as_fn_error
"cached CC is different -- throw away $cache_file
3218 (it is also a good idea to do 'make clean' before compiling)" "$LINENO" 5
3221 # If the user set CFLAGS, use this instead of the automatically
3222 # determined setting
3223 preset_cflags
="$CFLAGS"
3225 ac_cpp
='$CPP $CPPFLAGS'
3226 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3227 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3228 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3229 if test -n "$ac_tool_prefix"; then
3230 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3231 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3233 $as_echo_n "checking for $ac_word... " >&6; }
3234 if test "${ac_cv_prog_CC+set}" = set; then :
3235 $as_echo_n "(cached) " >&6
3237 if test -n "$CC"; then
3238 ac_cv_prog_CC
="$CC" # Let the user override the test.
3240 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3244 test -z "$as_dir" && as_dir
=.
3245 for ac_exec_ext
in '' $ac_executable_extensions; do
3246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3247 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3258 if test -n "$CC"; then
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3260 $as_echo "$CC" >&6; }
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3263 $as_echo "no" >&6; }
3268 if test -z "$ac_cv_prog_CC"; then
3270 # Extract the first word of "gcc", so it can be a program name with args.
3271 set dummy gcc
; ac_word
=$2
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3273 $as_echo_n "checking for $ac_word... " >&6; }
3274 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3275 $as_echo_n "(cached) " >&6
3277 if test -n "$ac_ct_CC"; then
3278 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3280 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3284 test -z "$as_dir" && as_dir
=.
3285 for ac_exec_ext
in '' $ac_executable_extensions; do
3286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3287 ac_cv_prog_ac_ct_CC
="gcc"
3288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3297 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3298 if test -n "$ac_ct_CC"; then
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3300 $as_echo "$ac_ct_CC" >&6; }
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3303 $as_echo "no" >&6; }
3306 if test "x$ac_ct_CC" = x
; then
3309 case $cross_compiling:$ac_tool_warned in
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3312 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3313 ac_tool_warned
=yes ;;
3321 if test -z "$CC"; then
3322 if test -n "$ac_tool_prefix"; then
3323 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3324 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3326 $as_echo_n "checking for $ac_word... " >&6; }
3327 if test "${ac_cv_prog_CC+set}" = set; then :
3328 $as_echo_n "(cached) " >&6
3330 if test -n "$CC"; then
3331 ac_cv_prog_CC
="$CC" # Let the user override the test.
3333 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3337 test -z "$as_dir" && as_dir
=.
3338 for ac_exec_ext
in '' $ac_executable_extensions; do
3339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3340 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3351 if test -n "$CC"; then
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3353 $as_echo "$CC" >&6; }
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3356 $as_echo "no" >&6; }
3362 if test -z "$CC"; then
3363 # Extract the first word of "cc", so it can be a program name with args.
3364 set dummy cc
; ac_word
=$2
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3366 $as_echo_n "checking for $ac_word... " >&6; }
3367 if test "${ac_cv_prog_CC+set}" = set; then :
3368 $as_echo_n "(cached) " >&6
3370 if test -n "$CC"; then
3371 ac_cv_prog_CC
="$CC" # Let the user override the test.
3374 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3378 test -z "$as_dir" && as_dir
=.
3379 for ac_exec_ext
in '' $ac_executable_extensions; do
3380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3381 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3382 ac_prog_rejected
=yes
3386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3393 if test $ac_prog_rejected = yes; then
3394 # We found a bogon in the path, so make sure we never use it.
3395 set dummy
$ac_cv_prog_CC
3397 if test $# != 0; then
3398 # We chose a different compiler from the bogus one.
3399 # However, it has the same basename, so the bogon will be chosen
3400 # first if we set CC to just the basename; use the full file name.
3402 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3408 if test -n "$CC"; then
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3410 $as_echo "$CC" >&6; }
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3413 $as_echo "no" >&6; }
3418 if test -z "$CC"; then
3419 if test -n "$ac_tool_prefix"; then
3420 for ac_prog
in cl.exe
3422 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3423 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3425 $as_echo_n "checking for $ac_word... " >&6; }
3426 if test "${ac_cv_prog_CC+set}" = set; then :
3427 $as_echo_n "(cached) " >&6
3429 if test -n "$CC"; then
3430 ac_cv_prog_CC
="$CC" # Let the user override the test.
3432 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3436 test -z "$as_dir" && as_dir
=.
3437 for ac_exec_ext
in '' $ac_executable_extensions; do
3438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3439 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3450 if test -n "$CC"; then
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3452 $as_echo "$CC" >&6; }
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3455 $as_echo "no" >&6; }
3459 test -n "$CC" && break
3462 if test -z "$CC"; then
3464 for ac_prog
in cl.exe
3466 # Extract the first word of "$ac_prog", so it can be a program name with args.
3467 set dummy
$ac_prog; ac_word
=$2
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3469 $as_echo_n "checking for $ac_word... " >&6; }
3470 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3471 $as_echo_n "(cached) " >&6
3473 if test -n "$ac_ct_CC"; then
3474 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3476 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3480 test -z "$as_dir" && as_dir
=.
3481 for ac_exec_ext
in '' $ac_executable_extensions; do
3482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3483 ac_cv_prog_ac_ct_CC
="$ac_prog"
3484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3493 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3494 if test -n "$ac_ct_CC"; then
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3496 $as_echo "$ac_ct_CC" >&6; }
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3499 $as_echo "no" >&6; }
3503 test -n "$ac_ct_CC" && break
3506 if test "x$ac_ct_CC" = x
; then
3509 case $cross_compiling:$ac_tool_warned in
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3512 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3513 ac_tool_warned
=yes ;;
3522 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3523 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3524 as_fn_error
"no acceptable C compiler found in \$PATH
3525 See \`config.log' for more details." "$LINENO" 5; }
3527 # Provide some information about the compiler.
3528 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3531 for ac_option
in --version -v -V -qversion; do
3532 { { ac_try
="$ac_compiler $ac_option >&5"
3534 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3535 *) ac_try_echo=$ac_try;;
3537 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3538 $as_echo "$ac_try_echo"; } >&5
3539 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3541 if test -s conftest.err; then
3543 ... rest of stderr output deleted ...
3544 10q' conftest.err >conftest.er1
3545 cat conftest.er1 >&5
3547 rm -f conftest.er1 conftest.err
3548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3549 test $ac_status = 0; }
3552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3553 /* end confdefs.h. */
3563 ac_clean_files_save=$ac_clean_files
3564 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3565 # Try to create an executable without -o first, disregard a.out.
3566 # It will help us diagnose broken compilers, and finding out an intuition
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3569 $as_echo_n "checking whether the C compiler works... " >&6; }
3570 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3572 # The possible output files:
3573 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3576 for ac_file in $ac_files
3579 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3580 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3585 if { { ac_try="$ac_link_default"
3587 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3588 *) ac_try_echo
=$ac_try;;
3590 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3591 $as_echo "$ac_try_echo"; } >&5
3592 (eval "$ac_link_default") 2>&5
3594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3595 test $ac_status = 0; }; then :
3596 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3597 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3598 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3599 # so that the user can short-circuit this test for compilers unknown to
3601 for ac_file
in $ac_files ''
3603 test -f "$ac_file" ||
continue
3605 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3608 # We found the default executable, but exeext='' is most
3612 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3614 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3616 # We set ac_cv_exeext here because the later test for it is not
3617 # safe: cross compilers may not add the suffix if given an `-o'
3618 # argument, so we may need to know it at that point already.
3619 # Even if this section looks crufty: it has the advantage of
3626 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3631 if test -z "$ac_file"; then :
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3633 $as_echo "no" >&6; }
3634 $as_echo "$as_me: failed program was:" >&5
3635 sed 's/^/| /' conftest.
$ac_ext >&5
3637 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3638 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3639 { as_fn_set_status
77
3640 as_fn_error
"C compiler cannot create executables
3641 See \`config.log' for more details." "$LINENO" 5; }; }
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3644 $as_echo "yes" >&6; }
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3647 $as_echo_n "checking for C compiler default output file name... " >&6; }
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3649 $as_echo "$ac_file" >&6; }
3650 ac_exeext
=$ac_cv_exeext
3652 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3653 ac_clean_files
=$ac_clean_files_save
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3655 $as_echo_n "checking for suffix of executables... " >&6; }
3656 if { { ac_try
="$ac_link"
3658 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3659 *) ac_try_echo=$ac_try;;
3661 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3662 $as_echo "$ac_try_echo"; } >&5
3663 (eval "$ac_link") 2>&5
3665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3666 test $ac_status = 0; }; then :
3667 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3668 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3669 # work properly (i.e., refer to `conftest.exe'), while it won't with
3671 for ac_file
in conftest.exe conftest conftest.
*; do
3672 test -f "$ac_file" ||
continue
3674 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3675 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3681 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3682 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3683 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3684 See \`config.log' for more details." "$LINENO" 5; }
3686 rm -f conftest conftest
$ac_cv_exeext
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3688 $as_echo "$ac_cv_exeext" >&6; }
3690 rm -f conftest.
$ac_ext
3691 EXEEXT
=$ac_cv_exeext
3693 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3694 /* end confdefs.h. */
3699 FILE *f = fopen ("conftest.out", "w");
3700 return ferror (f) || fclose (f) != 0;
3706 ac_clean_files
="$ac_clean_files conftest.out"
3707 # Check that the compiler produces executables we can run. If not, either
3708 # the compiler is broken, or we cross compile.
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3710 $as_echo_n "checking whether we are cross compiling... " >&6; }
3711 if test "$cross_compiling" != yes; then
3712 { { ac_try
="$ac_link"
3714 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3715 *) ac_try_echo=$ac_try;;
3717 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3718 $as_echo "$ac_try_echo"; } >&5
3719 (eval "$ac_link") 2>&5
3721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3722 test $ac_status = 0; }
3723 if { ac_try='./conftest$ac_cv_exeext'
3724 { { case "(($ac_try" in
3725 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3726 *) ac_try_echo
=$ac_try;;
3728 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3729 $as_echo "$ac_try_echo"; } >&5
3730 (eval "$ac_try") 2>&5
3732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3733 test $ac_status = 0; }; }; then
3736 if test "$cross_compiling" = maybe
; then
3739 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3740 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3741 as_fn_error
"cannot run C compiled programs.
3742 If you meant to cross compile, use \`--host'.
3743 See \`config.log' for more details." "$LINENO" 5; }
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3748 $as_echo "$cross_compiling" >&6; }
3750 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3751 ac_clean_files
=$ac_clean_files_save
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3753 $as_echo_n "checking for suffix of object files... " >&6; }
3754 if test "${ac_cv_objext+set}" = set; then :
3755 $as_echo_n "(cached) " >&6
3757 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3758 /* end confdefs.h. */
3768 rm -f conftest.o conftest.obj
3769 if { { ac_try
="$ac_compile"
3771 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3772 *) ac_try_echo=$ac_try;;
3774 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3775 $as_echo "$ac_try_echo"; } >&5
3776 (eval "$ac_compile") 2>&5
3778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3779 test $ac_status = 0; }; then :
3780 for ac_file in conftest.o conftest.obj conftest.*; do
3781 test -f "$ac_file" || continue;
3783 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3784 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3789 $as_echo "$as_me: failed program was:" >&5
3790 sed 's/^/| /' conftest.$ac_ext >&5
3792 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3793 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3794 as_fn_error "cannot compute suffix of object files
: cannot compile
3795 See \
`config.log' for more details." "$LINENO" 5; }
3797 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3800 $as_echo "$ac_cv_objext" >&6; }
3801 OBJEXT=$ac_cv_objext
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3804 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3805 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3806 $as_echo_n "(cached) " >&6
3808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3809 /* end confdefs.h. */
3822 if ac_fn_c_try_compile "$LINENO"; then :
3827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3828 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3832 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3833 if test $ac_compiler_gnu = yes; then
3838 ac_test_CFLAGS=${CFLAGS+set}
3839 ac_save_CFLAGS=$CFLAGS
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3841 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3842 if test "${ac_cv_prog_cc_g+set}" = set; then :
3843 $as_echo_n "(cached) " >&6
3845 ac_save_c_werror_flag=$ac_c_werror_flag
3846 ac_c_werror_flag=yes
3849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3850 /* end confdefs.h. */
3860 if ac_fn_c_try_compile "$LINENO"; then :
3864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3865 /* end confdefs.h. */
3875 if ac_fn_c_try_compile "$LINENO"; then :
3878 ac_c_werror_flag=$ac_save_c_werror_flag
3880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3881 /* end confdefs.h. */
3891 if ac_fn_c_try_compile "$LINENO"; then :
3894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3899 ac_c_werror_flag=$ac_save_c_werror_flag
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3902 $as_echo "$ac_cv_prog_cc_g" >&6; }
3903 if test "$ac_test_CFLAGS" = set; then
3904 CFLAGS=$ac_save_CFLAGS
3905 elif test $ac_cv_prog_cc_g = yes; then
3906 if test "$GCC" = yes; then
3912 if test "$GCC" = yes; then
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3919 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3920 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3921 $as_echo_n "(cached) " >&6
3923 ac_cv_prog_cc_c89=no
3925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3926 /* end confdefs.h. */
3929 #include <sys/types.h>
3930 #include <sys/stat.h>
3931 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3932 struct buf { int x; };
3933 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3934 static char *e (p, i)
3940 static char *f (char * (*g) (char **, int), char **p, ...)
3945 s = g (p, va_arg (v,int));
3950 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3951 function prototypes and stuff, but not '\xHH' hex character constants.
3952 These don't provoke an error unfortunately, instead are silently treated
3953 as 'x'. The following induces an error, until -std is added to get
3954 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3955 array size at least. It's necessary to write '\x00'==0 to get something
3956 that's true only with -std. */
3957 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3959 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3960 inside strings and character constants. */
3962 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3964 int test (int i, double x);
3965 struct s1 {int (*f) (int a);};
3966 struct s2 {int (*f) (double a);};
3967 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3973 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3978 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3979 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3981 CC="$ac_save_CC $ac_arg"
3982 if ac_fn_c_try_compile "$LINENO"; then :
3983 ac_cv_prog_cc_c89=$ac_arg
3985 rm -f core conftest.err conftest.$ac_objext
3986 test "x$ac_cv_prog_cc_c89" != "xno" && break
3988 rm -f conftest.$ac_ext
3993 case "x$ac_cv_prog_cc_c89" in
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3996 $as_echo "none needed" >&6; } ;;
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3999 $as_echo "unsupported" >&6; } ;;
4001 CC="$CC $ac_cv_prog_cc_c89"
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4003 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4005 if test "x$ac_cv_prog_cc_c89" != xno; then :
4010 ac_cpp='$CPP $CPPFLAGS'
4011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4015 if test ! -z "$preset_cflags"
4017 CFLAGS=$preset_cflags
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-cxx-main=<compiler>" >&5
4023 $as_echo_n "checking for --with-cxx-main=<compiler>... " >&6; }
4025 # Check whether --with-cxx_main was given.
4026 if test "${with_cxx_main+set}" = set; then :
4027 withval=$with_cxx_main;
4030 no) with_cxx_main=no
4032 yes) with_cxx_main=yes
4034 *) with_cxx_main=yes
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_cxx_main" >&5
4049 $as_echo "$with_cxx_main" >&6; }
4055 gcc) # Extract the first word of "g++", so it can be a program name with args.
4056 set dummy g++; ac_word=$2
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4058 $as_echo_n "checking for $ac_word... " >&6; }
4059 if test "${ac_cv_path_CXX+set}" = set; then :
4060 $as_echo_n "(cached) " >&6
4064 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4068 for as_dir in notfound
4071 test -z "$as_dir" && as_dir=.
4072 for ac_exec_ext in '' $ac_executable_extensions; do
4073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4074 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4082 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="g++"
4087 if test -n "$CXX"; then
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4089 $as_echo "$CXX" >&6; }
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4092 $as_echo "no" >&6; }
4096 cc) # Extract the first word of "c++", so it can be a program name with args.
4097 set dummy c++; ac_word=$2
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4099 $as_echo_n "checking for $ac_word... " >&6; }
4100 if test "${ac_cv_path_CXX+set}" = set; then :
4101 $as_echo_n "(cached) " >&6
4105 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4109 for as_dir in notfound
4112 test -z "$as_dir" && as_dir=.
4113 for ac_exec_ext in '' $ac_executable_extensions; do
4114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4115 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4123 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="c++"
4128 if test -n "$CXX"; then
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4130 $as_echo "$CXX" >&6; }
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4133 $as_echo "no" >&6; }
4138 if test "$CXX" = "notfound"
4145 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
4147 # Extract the first word of "$ac_prog", so it can be a program name with args.
4148 set dummy $ac_prog; ac_word=$2
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4150 $as_echo_n "checking for $ac_word... " >&6; }
4151 if test "${ac_cv_prog_CXX+set}" = set; then :
4152 $as_echo_n "(cached) " >&6
4154 if test -n "$CXX"; then
4155 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4161 test -z "$as_dir" && as_dir=.
4162 for ac_exec_ext in '' $ac_executable_extensions; do
4163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4164 ac_cv_prog_CXX="$ac_prog"
4165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4175 if test -n "$CXX"; then
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4177 $as_echo "$CXX" >&6; }
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4180 $as_echo "no" >&6; }
4184 test -n "$CXX" && break
4186 test -n "$CXX" || CXX="notfound"
4188 if test "$CXX" = "notfound"
4193 if test "$preset_cxx" != "$CXX"
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
4197 By default, distutils will build C++ extension modules with \"$CXX\".
4198 If this is not intended, then set CXX on the configure command line.
4200 $as_echo "$as_me: WARNING:
4202 By default, distutils will build C++ extension modules with \"$CXX\".
4203 If this is not intended, then set CXX on the configure command line.
4208 # checks for UNIX variants that set C preprocessor variables
4211 ac_cpp='$CPP $CPPFLAGS'
4212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4216 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4217 # On Suns, sometimes $CPP names a directory.
4218 if test -n "$CPP" && test -d "$CPP"; then
4221 if test -z "$CPP"; then
4222 if test "${ac_cv_prog_CPP+set}" = set; then :
4223 $as_echo_n "(cached) " >&6
4225 # Double quotes because CPP needs to be expanded
4226 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4229 for ac_c_preproc_warn_flag in '' yes
4231 # Use a header file that comes with gcc, so configuring glibc
4232 # with a fresh cross-compiler works.
4233 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4234 # <limits.h> exists even on freestanding compilers.
4235 # On the NeXT, cc -E runs the code through the compiler's parser,
4236 # not just through cpp. "Syntax error" is here to catch this case.
4237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4238 /* end confdefs.h. */
4240 # include <limits.h>
4242 # include <assert.h>
4246 if ac_fn_c_try_cpp "$LINENO"; then :
4249 # Broken: fails on valid input.
4252 rm -f conftest.err conftest.$ac_ext
4254 # OK, works on sane cases. Now check whether nonexistent headers
4255 # can be detected and how.
4256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4257 /* end confdefs.h. */
4258 #include <ac_nonexistent.h>
4260 if ac_fn_c_try_cpp "$LINENO"; then :
4261 # Broken: success on invalid input.
4264 # Passes both tests.
4268 rm -f conftest.err conftest.$ac_ext
4271 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4272 rm -f conftest.err conftest.
$ac_ext
4273 if $ac_preproc_ok; then :
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4286 $as_echo "$CPP" >&6; }
4288 for ac_c_preproc_warn_flag
in '' yes
4290 # Use a header file that comes with gcc, so configuring glibc
4291 # with a fresh cross-compiler works.
4292 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4293 # <limits.h> exists even on freestanding compilers.
4294 # On the NeXT, cc -E runs the code through the compiler's parser,
4295 # not just through cpp. "Syntax error" is here to catch this case.
4296 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4297 /* end confdefs.h. */
4299 # include <limits.h>
4301 # include <assert.h>
4305 if ac_fn_c_try_cpp
"$LINENO"; then :
4308 # Broken: fails on valid input.
4311 rm -f conftest.err conftest.
$ac_ext
4313 # OK, works on sane cases. Now check whether nonexistent headers
4314 # can be detected and how.
4315 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4316 /* end confdefs.h. */
4317 #include <ac_nonexistent.h>
4319 if ac_fn_c_try_cpp
"$LINENO"; then :
4320 # Broken: success on invalid input.
4323 # Passes both tests.
4327 rm -f conftest.err conftest.
$ac_ext
4330 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4331 rm -f conftest.err conftest.
$ac_ext
4332 if $ac_preproc_ok; then :
4335 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4336 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4337 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
4338 See \`config.log' for more details." "$LINENO" 5; }
4342 ac_cpp
='$CPP $CPPFLAGS'
4343 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4344 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4345 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4349 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4350 if test "${ac_cv_path_GREP+set}" = set; then :
4351 $as_echo_n "(cached) " >&6
4353 if test -z "$GREP"; then
4354 ac_path_GREP_found
=false
4355 # Loop through the user's path and test for each of PROGNAME-LIST
4356 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4357 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4360 test -z "$as_dir" && as_dir
=.
4361 for ac_prog
in grep ggrep
; do
4362 for ac_exec_ext
in '' $ac_executable_extensions; do
4363 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4364 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4365 # Check for GNU ac_path_GREP and select it if it is found.
4366 # Check for GNU $ac_path_GREP
4367 case `"$ac_path_GREP" --version 2>&1` in
4369 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4372 $as_echo_n 0123456789 >"conftest.in"
4375 cat "conftest.in" "conftest.in" >"conftest.tmp"
4376 mv "conftest.tmp" "conftest.in"
4377 cp "conftest.in" "conftest.nl"
4378 $as_echo 'GREP' >> "conftest.nl"
4379 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4380 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4381 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4382 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4383 # Best one so far, save it but keep looking for a better one
4384 ac_cv_path_GREP
="$ac_path_GREP"
4385 ac_path_GREP_max
=$ac_count
4387 # 10*(2^10) chars as input seems more than enough
4388 test $ac_count -gt 10 && break
4390 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4393 $ac_path_GREP_found && break 3
4398 if test -z "$ac_cv_path_GREP"; then
4399 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4402 ac_cv_path_GREP
=$GREP
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4407 $as_echo "$ac_cv_path_GREP" >&6; }
4408 GREP
="$ac_cv_path_GREP"
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4412 $as_echo_n "checking for egrep... " >&6; }
4413 if test "${ac_cv_path_EGREP+set}" = set; then :
4414 $as_echo_n "(cached) " >&6
4416 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4417 then ac_cv_path_EGREP
="$GREP -E"
4419 if test -z "$EGREP"; then
4420 ac_path_EGREP_found
=false
4421 # Loop through the user's path and test for each of PROGNAME-LIST
4422 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4423 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4426 test -z "$as_dir" && as_dir
=.
4427 for ac_prog
in egrep; do
4428 for ac_exec_ext
in '' $ac_executable_extensions; do
4429 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4430 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4431 # Check for GNU ac_path_EGREP and select it if it is found.
4432 # Check for GNU $ac_path_EGREP
4433 case `"$ac_path_EGREP" --version 2>&1` in
4435 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4438 $as_echo_n 0123456789 >"conftest.in"
4441 cat "conftest.in" "conftest.in" >"conftest.tmp"
4442 mv "conftest.tmp" "conftest.in"
4443 cp "conftest.in" "conftest.nl"
4444 $as_echo 'EGREP' >> "conftest.nl"
4445 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4446 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4447 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4448 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4449 # Best one so far, save it but keep looking for a better one
4450 ac_cv_path_EGREP
="$ac_path_EGREP"
4451 ac_path_EGREP_max
=$ac_count
4453 # 10*(2^10) chars as input seems more than enough
4454 test $ac_count -gt 10 && break
4456 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4459 $ac_path_EGREP_found && break 3
4464 if test -z "$ac_cv_path_EGREP"; then
4465 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4468 ac_cv_path_EGREP
=$EGREP
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4474 $as_echo "$ac_cv_path_EGREP" >&6; }
4475 EGREP
="$ac_cv_path_EGREP"
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4479 $as_echo_n "checking for ANSI C header files... " >&6; }
4480 if test "${ac_cv_header_stdc+set}" = set; then :
4481 $as_echo_n "(cached) " >&6
4483 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4484 /* end confdefs.h. */
4498 if ac_fn_c_try_compile
"$LINENO"; then :
4499 ac_cv_header_stdc
=yes
4501 ac_cv_header_stdc
=no
4503 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4505 if test $ac_cv_header_stdc = yes; then
4506 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4507 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4508 /* end confdefs.h. */
4512 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4513 $EGREP "memchr" >/dev
/null
2>&1; then :
4516 ac_cv_header_stdc
=no
4522 if test $ac_cv_header_stdc = yes; then
4523 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4524 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4525 /* end confdefs.h. */
4529 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4530 $EGREP "free" >/dev
/null
2>&1; then :
4533 ac_cv_header_stdc
=no
4539 if test $ac_cv_header_stdc = yes; then
4540 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4541 if test "$cross_compiling" = yes; then :
4544 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4545 /* end confdefs.h. */
4548 #if ((' ' & 0x0FF) == 0x020)
4549 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4550 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4552 # define ISLOWER(c) \
4553 (('a' <= (c) && (c) <= 'i') \
4554 || ('j' <= (c) && (c) <= 'r') \
4555 || ('s' <= (c) && (c) <= 'z'))
4556 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4559 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4564 for (i = 0; i < 256; i++)
4565 if (XOR (islower (i), ISLOWER (i))
4566 || toupper (i) != TOUPPER (i))
4571 if ac_fn_c_try_run
"$LINENO"; then :
4574 ac_cv_header_stdc
=no
4576 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4577 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4583 $as_echo "$ac_cv_header_stdc" >&6; }
4584 if test $ac_cv_header_stdc = yes; then
4586 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4590 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4591 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4592 inttypes.h stdint.h unistd.h
4594 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4595 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4597 eval as_val
=\$
$as_ac_Header
4598 if test "x$as_val" = x
""yes; then :
4599 cat >>confdefs.h
<<_ACEOF
4600 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4609 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4610 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
4617 if test "$MINIX" = yes; then
4619 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4622 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4625 $as_echo "#define _MINIX 1" >>confdefs.h
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4631 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4632 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4633 $as_echo_n "(cached) " >&6
4635 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4636 /* end confdefs.h. */
4638 # define __EXTENSIONS__ 1
4639 $ac_includes_default
4648 if ac_fn_c_try_compile
"$LINENO"; then :
4649 ac_cv_safe_to_define___extensions__
=yes
4651 ac_cv_safe_to_define___extensions__
=no
4653 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4656 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4657 test $ac_cv_safe_to_define___extensions__ = yes &&
4658 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4660 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4662 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4664 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4666 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4670 # Check for unsupported systems
4671 case $ac_sys_system/$ac_sys_release in
4673 echo This system \
($ac_sys_system/$ac_sys_release\
) is no longer supported.
4674 echo See README
for details.
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-suffix" >&5
4680 $as_echo_n "checking for --with-suffix... " >&6; }
4682 # Check whether --with-suffix was given.
4683 if test "${with_suffix+set}" = set; then :
4684 withval
=$with_suffix;
4688 *) EXEEXT
=$withval;;
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXEEXT" >&5
4693 $as_echo "$EXEEXT" >&6; }
4695 # Test whether we're running on a non-case-sensitive system, in which
4696 # case we give a warning if no ext is given
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for case-insensitive build directory" >&5
4699 $as_echo_n "checking for case-insensitive build directory... " >&6; }
4700 if test ! -d CaseSensitiveTestDir
; then
4701 mkdir CaseSensitiveTestDir
4704 if test -d casesensitivetestdir
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4707 $as_echo "yes" >&6; }
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4711 $as_echo "no" >&6; }
4714 rmdir CaseSensitiveTestDir
4719 gcc
) CC
="$CC -D_HAVE_BSDI";;
4723 case $ac_sys_system in
4726 cc|
*/cc
) CC
="$CC -Ae";;
4729 # Some functions have a prototype only with that define, e.g. confstr
4731 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY" >&5
4739 $as_echo_n "checking LIBRARY... " >&6; }
4740 if test -z "$LIBRARY"
4742 LIBRARY
='libpython$(VERSION).a'
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBRARY" >&5
4745 $as_echo "$LIBRARY" >&6; }
4747 # LDLIBRARY is the name of the library to link against (as opposed to the
4748 # name of the library into which to insert object files). BLDLIBRARY is also
4749 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
4750 # is blank as the main program is not linked directly against LDLIBRARY.
4751 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
4752 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
4753 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
4754 # DLLLIBRARY is the shared (i.e., DLL) library.
4756 # RUNSHARED is used to run shared python without installed libraries
4758 # INSTSONAME is the name of the shared library that will be use to install
4759 # on the system - some systems like version suffix, others don't
4766 LDLIBRARY
="$LIBRARY"
4767 BLDLIBRARY
='$(LDLIBRARY)'
4768 INSTSONAME
='$(LDLIBRARY)'
4773 # LINKCC is the command that links the python executable -- default is $(CC).
4774 # If CXX is set, and if it is needed to link a main function that was
4775 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
4776 # python might then depend on the C++ runtime
4777 # This is altered for AIX in order to build the export list before
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKCC" >&5
4781 $as_echo_n "checking LINKCC... " >&6; }
4782 if test -z "$LINKCC"
4784 LINKCC
='$(PURIFY) $(MAINCC)'
4785 case $ac_sys_system in
4788 if test $ac_sys_release -ge 5 -o \
4789 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
4792 LINKCC
="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
4794 # qcc must be used because the other compilers do not
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKCC" >&5
4800 $as_echo "$LINKCC" >&6; }
4802 # GNULD is set to "yes" if the GNU linker is used. If this goes wrong
4803 # make sure we default having it set to "no": this is used by
4804 # distutils.unixccompiler to know if it should add --enable-new-dtags
4805 # to linker command lines, and failing to detect GNU ld simply results
4806 # in the same bahaviour as before.
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4809 $as_echo_n "checking for GNU ld... " >&6; }
4811 if test "$GCC" = yes; then
4812 ac_prog
=`$CC -print-prog-name=ld`
4814 case `"$ac_prog" -V 2>&1 < /dev/null` in
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNULD" >&5
4821 $as_echo "$GNULD" >&6; }
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-shared" >&5
4824 $as_echo_n "checking for --enable-shared... " >&6; }
4825 # Check whether --enable-shared was given.
4826 if test "${enable_shared+set}" = set; then :
4827 enableval
=$enable_shared;
4831 if test -z "$enable_shared"
4833 case $ac_sys_system in
4835 enable_shared
="yes";;
4837 enable_shared
="no";;
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
4841 $as_echo "$enable_shared" >&6; }
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-profiling" >&5
4844 $as_echo_n "checking for --enable-profiling... " >&6; }
4845 # Check whether --enable-profiling was given.
4846 if test "${enable_profiling+set}" = set; then :
4847 enableval
=$enable_profiling; ac_save_cc
="$CC"
4849 if test "$cross_compiling" = yes; then :
4850 ac_enable_profiling
="no"
4852 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4853 /* end confdefs.h. */
4854 int main() { return 0; }
4856 if ac_fn_c_try_run
"$LINENO"; then :
4857 ac_enable_profiling
="yes"
4859 ac_enable_profiling
="no"
4861 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4862 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_profiling" >&5
4869 $as_echo "$ac_enable_profiling" >&6; }
4871 case "$ac_enable_profiling" in
4873 BASECFLAGS
="-pg $BASECFLAGS"
4874 LDFLAGS
="-pg $LDFLAGS"
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDLIBRARY" >&5
4879 $as_echo_n "checking LDLIBRARY... " >&6; }
4881 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
4882 # library that we build, but we do not want to link against it (we
4883 # will find it with a -framework option). For this reason there is an
4884 # extra variable BLDLIBRARY against which Python and the extension
4885 # modules are linked, BLDLIBRARY. This is normally the same as
4886 # LDLIBRARY, but empty for MacOSX framework builds.
4887 if test "$enable_framework"
4889 LDLIBRARY
='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
4890 RUNSHARED
=DYLD_FRAMEWORK_PATH
="`pwd`:$DYLD_FRAMEWORK_PATH"
4893 BLDLIBRARY
='$(LDLIBRARY)'
4896 # Other platforms follow
4897 if test $enable_shared = "yes"; then
4899 $as_echo "#define Py_ENABLE_SHARED 1" >>confdefs.h
4901 case $ac_sys_system in
4903 LDLIBRARY
='libpython$(VERSION).so'
4906 LDLIBRARY
='libpython$(VERSION).dll.a'
4907 DLLLIBRARY
='libpython$(VERSION).dll'
4910 LDLIBRARY
='libpython$(VERSION).so'
4911 BLDLIBRARY
='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
4912 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
4913 INSTSONAME
="$LDLIBRARY".
$SOVERSION
4915 Linux
*|GNU
*|NetBSD
*|FreeBSD
*|DragonFly
*)
4916 LDLIBRARY
='libpython$(VERSION).so'
4917 BLDLIBRARY
='-L. -lpython$(VERSION)'
4918 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
4919 case $ac_sys_system in
4921 SOVERSION
=`echo $SOVERSION|cut -d "." -f 1`
4924 INSTSONAME
="$LDLIBRARY".
$SOVERSION
4929 LDLIBRARY
='libpython$(VERSION).so'
4932 LDLIBRARY
='libpython$(VERSION).sl'
4935 BLDLIBRARY
='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
4936 RUNSHARED
=SHLIB_PATH
=`pwd`:${SHLIB_PATH}
4939 LDLIBRARY
='libpython$(VERSION).so'
4940 BLDLIBRARY
='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
4941 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
4944 LDLIBRARY
='libpython$(VERSION).so'
4945 BLDLIBRARY
='-L. -lpython$(VERSION)'
4946 RUNSHARED
=DLL_PATH
=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
4949 LDLIBRARY
='libpython$(VERSION).dylib'
4950 BLDLIBRARY
='-L. -lpython$(VERSION)'
4951 RUNSHARED
='DYLD_LIBRARY_PATH=`pwd`:${DYLD_LIBRARY_PATH}'
4955 else # shared is disabled
4956 case $ac_sys_system in
4958 BLDLIBRARY
='$(LIBRARY)'
4959 LDLIBRARY
='libpython$(VERSION).dll.a'
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDLIBRARY" >&5
4965 $as_echo "$LDLIBRARY" >&6; }
4967 if test -n "$ac_tool_prefix"; then
4968 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4969 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4971 $as_echo_n "checking for $ac_word... " >&6; }
4972 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4973 $as_echo_n "(cached) " >&6
4975 if test -n "$RANLIB"; then
4976 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4978 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4982 test -z "$as_dir" && as_dir
=.
4983 for ac_exec_ext
in '' $ac_executable_extensions; do
4984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4985 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4995 RANLIB
=$ac_cv_prog_RANLIB
4996 if test -n "$RANLIB"; then
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4998 $as_echo "$RANLIB" >&6; }
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5001 $as_echo "no" >&6; }
5006 if test -z "$ac_cv_prog_RANLIB"; then
5007 ac_ct_RANLIB
=$RANLIB
5008 # Extract the first word of "ranlib", so it can be a program name with args.
5009 set dummy ranlib
; ac_word
=$2
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5011 $as_echo_n "checking for $ac_word... " >&6; }
5012 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5013 $as_echo_n "(cached) " >&6
5015 if test -n "$ac_ct_RANLIB"; then
5016 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5018 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5022 test -z "$as_dir" && as_dir
=.
5023 for ac_exec_ext
in '' $ac_executable_extensions; do
5024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5025 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5035 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5036 if test -n "$ac_ct_RANLIB"; then
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5038 $as_echo "$ac_ct_RANLIB" >&6; }
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5041 $as_echo "no" >&6; }
5044 if test "x$ac_ct_RANLIB" = x
; then
5047 case $cross_compiling:$ac_tool_warned in
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5050 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5051 ac_tool_warned
=yes ;;
5053 RANLIB
=$ac_ct_RANLIB
5056 RANLIB
="$ac_cv_prog_RANLIB"
5060 for ac_prog
in ar aal
5062 # Extract the first word of "$ac_prog", so it can be a program name with args.
5063 set dummy
$ac_prog; ac_word
=$2
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5065 $as_echo_n "checking for $ac_word... " >&6; }
5066 if test "${ac_cv_prog_AR+set}" = set; then :
5067 $as_echo_n "(cached) " >&6
5069 if test -n "$AR"; then
5070 ac_cv_prog_AR
="$AR" # Let the user override the test.
5072 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5076 test -z "$as_dir" && as_dir
=.
5077 for ac_exec_ext
in '' $ac_executable_extensions; do
5078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5079 ac_cv_prog_AR
="$ac_prog"
5080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5090 if test -n "$AR"; then
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5092 $as_echo "$AR" >&6; }
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5095 $as_echo "no" >&6; }
5099 test -n "$AR" && break
5101 test -n "$AR" || AR
="ar"
5104 # tweak ARFLAGS only if the user didn't set it on the command line
5106 if test -z "$ARFLAGS"
5112 # Extract the first word of "svnversion", so it can be a program name with args.
5113 set dummy svnversion
; ac_word
=$2
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5115 $as_echo_n "checking for $ac_word... " >&6; }
5116 if test "${ac_cv_prog_SVNVERSION+set}" = set; then :
5117 $as_echo_n "(cached) " >&6
5119 if test -n "$SVNVERSION"; then
5120 ac_cv_prog_SVNVERSION
="$SVNVERSION" # Let the user override the test.
5122 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5126 test -z "$as_dir" && as_dir
=.
5127 for ac_exec_ext
in '' $ac_executable_extensions; do
5128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5129 ac_cv_prog_SVNVERSION
="found"
5130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5137 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION
="not-found"
5140 SVNVERSION
=$ac_cv_prog_SVNVERSION
5141 if test -n "$SVNVERSION"; then
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVNVERSION" >&5
5143 $as_echo "$SVNVERSION" >&6; }
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5146 $as_echo "no" >&6; }
5150 if test $SVNVERSION = found
5152 SVNVERSION
="svnversion \$(srcdir)"
5154 SVNVERSION
="echo Unversioned directory"
5159 # install -d does not work on BSDI or HP-UX
5160 if test -z "$INSTALL"
5162 INSTALL
="${srcdir}/install-sh -c"
5166 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
5167 for ac_t
in install-sh
install.sh shtool
; do
5168 if test -f "$ac_dir/$ac_t"; then
5170 ac_install_sh
="$ac_aux_dir/$ac_t -c"
5175 if test -z "$ac_aux_dir"; then
5176 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
5179 # These three variables are undocumented and unsupported,
5180 # and are intended to be withdrawn in a future Autoconf release.
5181 # They can cause serious problems if a builder's source tree is in a directory
5182 # whose full name contains unusual characters.
5183 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5184 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5185 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5188 # Find a good install program. We prefer a C program (faster),
5189 # so one script is as good as another. But avoid the broken or
5190 # incompatible versions:
5191 # SysV /etc/install, /usr/sbin/install
5192 # SunOS /usr/etc/install
5193 # IRIX /sbin/install
5195 # AmigaOS /C/install, which installs bootblocks on floppy discs
5196 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5197 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5198 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5199 # OS/2's system install, which has a completely different semantic
5200 # ./install, which can be erroneously created by make from ./install.sh.
5201 # Reject install programs that cannot install multiple files.
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5203 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5204 if test -z "$INSTALL"; then
5205 if test "${ac_cv_path_install+set}" = set; then :
5206 $as_echo_n "(cached) " >&6
5208 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5212 test -z "$as_dir" && as_dir
=.
5213 # Account for people who put trailing slashes in PATH elements.
5214 case $as_dir/ in #((
5215 .
/ | .
// |
/[cC
]/* | \
5216 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
5217 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
5220 # OSF1 and SCO ODT 3.0 have their own names for install.
5221 # Don't use installbsd from OSF since it installs stuff as root
5223 for ac_prog
in ginstall scoinst
install; do
5224 for ac_exec_ext
in '' $ac_executable_extensions; do
5225 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5226 if test $ac_prog = install &&
5227 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5228 # AIX install. It has an incompatible calling convention.
5230 elif test $ac_prog = install &&
5231 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5232 # program-specific install script used by HP pwplus--don't use.
5235 rm -rf conftest.one conftest.two conftest.dir
5236 echo one
> conftest.one
5237 echo two
> conftest.two
5239 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
5240 test -s conftest.one
&& test -s conftest.two
&&
5241 test -s conftest.dir
/conftest.one
&&
5242 test -s conftest.dir
/conftest.two
5244 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
5257 rm -rf conftest.one conftest.two conftest.dir
5260 if test "${ac_cv_path_install+set}" = set; then
5261 INSTALL
=$ac_cv_path_install
5263 # As a last resort, use the slow shell script. Don't cache a
5264 # value for INSTALL within a source directory, because that will
5265 # break other packages using the cache if that directory is
5266 # removed, or if the value is a relative name.
5267 INSTALL
=$ac_install_sh
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5271 $as_echo "$INSTALL" >&6; }
5273 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5274 # It thinks the first close brace ends the variable substitution.
5275 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5277 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5279 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5282 # Not every filesystem supports hard links
5284 if test -z "$LN" ; then
5285 case $ac_sys_system in
5287 CYGWIN
*) LN
="ln -s";;
5288 atheos
*) LN
="ln -s";;
5293 # Check for --with-pydebug
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pydebug" >&5
5295 $as_echo_n "checking for --with-pydebug... " >&6; }
5297 # Check whether --with-pydebug was given.
5298 if test "${with_pydebug+set}" = set; then :
5299 withval
=$with_pydebug;
5300 if test "$withval" != no
5303 $as_echo "#define Py_DEBUG 1" >>confdefs.h
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5306 $as_echo "yes" >&6; };
5308 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5309 $as_echo "no" >&6; }; Py_DEBUG
='false'
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5313 $as_echo "no" >&6; }
5317 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
5318 # merged with this chunk of code?
5320 # Optimizer/debugger flags
5321 # ------------------------
5322 # (The following bit of code is complicated enough - please keep things
5323 # indented properly. Just pretend you're editing Python code. ;-)
5325 # There are two parallel sets of case statements below, one that checks to
5326 # see if OPT was set and one that does BASECFLAGS setting based upon
5327 # compiler and platform. BASECFLAGS tweaks need to be made even if the
5330 # tweak OPT based on compiler and platform, only if the user didn't set
5331 # it on the command line
5333 if test "${OPT-unset}" = "unset"
5337 if test "$CC" != 'g++' ; then
5338 STRICT_PROTO
="-Wstrict-prototypes"
5340 # For gcc 4.x we need to use -fwrapv so lets check if its supported
5341 if "$CC" -v --help 2>/dev
/null |
grep -- -fwrapv > /dev
/null
; then
5344 case $ac_cv_prog_cc_g in
5346 if test "$Py_DEBUG" = 'true' ; then
5347 # Optimization messes up debuggers, so turn it off for
5349 OPT
="-g -O0 -Wall $STRICT_PROTO"
5351 OPT
="-g $WRAP -O3 -Wall $STRICT_PROTO"
5355 OPT
="-O3 -Wall $STRICT_PROTO"
5358 case $ac_sys_system in
5359 SCO_SV
*) OPT
="$OPT -m486 -DSCO5"
5372 # The -arch flags for universal builds on OSX
5373 UNIVERSAL_ARCH_FLAGS
=
5376 # tweak BASECFLAGS based on compiler and platform
5379 # Python violates C99 rules, by casting between incompatible
5380 # pointer types. GCC may generate bad code as a result of that,
5381 # so use -fno-strict-aliasing if supported.
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -fno-strict-aliasing" >&5
5383 $as_echo_n "checking whether $CC accepts -fno-strict-aliasing... " >&6; }
5385 CC
="$CC -fno-strict-aliasing"
5386 if test "${ac_cv_no_strict_aliasing_ok+set}" = set; then :
5387 $as_echo_n "(cached) " >&6
5389 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5390 /* end confdefs.h. */
5400 if ac_fn_c_try_compile
"$LINENO"; then :
5401 ac_cv_no_strict_aliasing_ok
=yes
5403 ac_cv_no_strict_aliasing_ok
=no
5405 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_no_strict_aliasing_ok" >&5
5410 $as_echo "$ac_cv_no_strict_aliasing_ok" >&6; }
5411 if test $ac_cv_no_strict_aliasing_ok = yes
5413 BASECFLAGS
="$BASECFLAGS -fno-strict-aliasing"
5416 # if using gcc on alpha, use -mieee to get (near) full IEEE 754
5417 # support. Without this, treatment of subnormals doesn't follow
5419 case $ac_sys_machine in
5421 BASECFLAGS
="$BASECFLAGS -mieee"
5425 case $ac_sys_system in
5427 BASECFLAGS
="$BASECFLAGS -m486 -DSCO5"
5429 # is there any other compiler on Darwin besides gcc?
5431 # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd
5432 # used to be here, but non-Apple gcc doesn't accept them.
5433 if test "${CC}" = gcc
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which compiler should be used" >&5
5436 $as_echo_n "checking which compiler should be used... " >&6; }
5437 case "${UNIVERSALSDK}" in
5439 # Build using 10.4 SDK, force usage of gcc when the
5440 # compiler is gcc, otherwise the user will get very
5441 # confusing error messages when building on OSX 10.6
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5447 $as_echo "$CC" >&6; }
5450 # Calculate the right deployment target for this build.
5452 cur_target
=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
5453 if test ${cur_target} '>' 10.2; then
5455 if test ${enable_universalsdk}; then
5456 if test "${UNIVERSAL_ARCHS}" = "all"; then
5457 # Ensure that the default platform for a
5458 # 4-way universal build is OSX 10.5,
5459 # that's the first OS release where
5460 # 4-way builds make sense.
5463 elif test "${UNIVERSAL_ARCHS}" = "3-way"; then
5466 elif test "${UNIVERSAL_ARCHS}" = "intel"; then
5469 elif test "${UNIVERSAL_ARCHS}" = "64-bit"; then
5473 if test `/usr/bin/arch` = "i386"; then
5474 # On Intel macs default to a deployment
5475 # target of 10.4, that's the first OSX
5476 # release with Intel support.
5481 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
5483 # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the
5484 # environment with a value that is the same as what we'll use
5485 # in the Makefile to ensure that we'll get the same compiler
5486 # environment during configure and build time.
5487 MACOSX_DEPLOYMENT_TARGET
="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET"
5488 export MACOSX_DEPLOYMENT_TARGET
5489 EXPORT_MACOSX_DEPLOYMENT_TARGET
=''
5491 if test "${enable_universalsdk}"; then
5492 UNIVERSAL_ARCH_FLAGS
=""
5493 if test "$UNIVERSAL_ARCHS" = "32-bit" ; then
5494 UNIVERSAL_ARCH_FLAGS
="-arch ppc -arch i386"
5498 elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then
5499 UNIVERSAL_ARCH_FLAGS
="-arch ppc64 -arch x86_64"
5501 ARCH_RUN_32BIT
="true"
5503 elif test "$UNIVERSAL_ARCHS" = "all" ; then
5504 UNIVERSAL_ARCH_FLAGS
="-arch i386 -arch ppc -arch ppc64 -arch x86_64"
5505 LIPO_32BIT_FLAGS
="-extract ppc7400 -extract i386"
5506 ARCH_RUN_32BIT
="/usr/bin/arch -i386 -ppc"
5508 elif test "$UNIVERSAL_ARCHS" = "intel" ; then
5509 UNIVERSAL_ARCH_FLAGS
="-arch i386 -arch x86_64"
5510 LIPO_32BIT_FLAGS
="-extract i386"
5511 ARCH_RUN_32BIT
="/usr/bin/arch -i386"
5513 elif test "$UNIVERSAL_ARCHS" = "3-way" ; then
5514 UNIVERSAL_ARCH_FLAGS
="-arch i386 -arch ppc -arch x86_64"
5515 LIPO_32BIT_FLAGS
="-extract ppc7400 -extract i386"
5516 ARCH_RUN_32BIT
="/usr/bin/arch -i386 -ppc"
5519 as_fn_error
"proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" "$LINENO" 5
5524 CFLAGS
="${UNIVERSAL_ARCH_FLAGS} ${CFLAGS}"
5525 if test "${UNIVERSALSDK}" != "/"
5527 CPPFLAGS
="-isysroot ${UNIVERSALSDK} ${CPPFLAGS}"
5528 LDFLAGS
="-isysroot ${UNIVERSALSDK} ${LDFLAGS}"
5529 CFLAGS
="-isysroot ${UNIVERSALSDK} ${CFLAGS}"
5537 BASECFLAGS
="$BASECFLAGS -mieee"
5543 case $ac_sys_system in
5544 OpenUNIX
*|UnixWare
*)
5545 BASECFLAGS
="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
5548 BASECFLAGS
="$BASECFLAGS -ieee -std"
5551 BASECFLAGS
="$BASECFLAGS -belf -Ki486 -DSCO5"
5557 if test "$Py_DEBUG" = 'true'; then
5563 if test "$ac_arch_flags"
5565 BASECFLAGS
="$BASECFLAGS $ac_arch_flags"
5568 # disable check for icc since it seems to pass, but generates a warning
5571 ac_cv_opt_olimit_ok
=no
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -OPT:Olimit=0" >&5
5575 $as_echo_n "checking whether $CC accepts -OPT:Olimit=0... " >&6; }
5576 if test "${ac_cv_opt_olimit_ok+set}" = set; then :
5577 $as_echo_n "(cached) " >&6
5580 CC
="$CC -OPT:Olimit=0"
5581 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5582 /* end confdefs.h. */
5592 if ac_fn_c_try_compile
"$LINENO"; then :
5593 ac_cv_opt_olimit_ok
=yes
5595 ac_cv_opt_olimit_ok
=no
5598 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_opt_olimit_ok" >&5
5603 $as_echo "$ac_cv_opt_olimit_ok" >&6; }
5604 if test $ac_cv_opt_olimit_ok = yes; then
5605 case $ac_sys_system in
5606 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
5607 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
5612 BASECFLAGS
="$BASECFLAGS -OPT:Olimit=0"
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Olimit 1500" >&5
5617 $as_echo_n "checking whether $CC accepts -Olimit 1500... " >&6; }
5618 if test "${ac_cv_olimit_ok+set}" = set; then :
5619 $as_echo_n "(cached) " >&6
5622 CC
="$CC -Olimit 1500"
5623 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5624 /* end confdefs.h. */
5634 if ac_fn_c_try_compile
"$LINENO"; then :
5640 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_olimit_ok" >&5
5645 $as_echo "$ac_cv_olimit_ok" >&6; }
5646 if test $ac_cv_olimit_ok = yes; then
5647 BASECFLAGS
="$BASECFLAGS -Olimit 1500"
5651 # Check whether GCC supports PyArg_ParseTuple format
5652 if test "$GCC" = "yes"
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc supports ParseTuple __format__" >&5
5655 $as_echo_n "checking whether gcc supports ParseTuple __format__... " >&6; }
5657 CFLAGS
="$CFLAGS -Werror"
5658 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5659 /* end confdefs.h. */
5661 void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2)));
5671 if ac_fn_c_try_compile
"$LINENO"; then :
5674 $as_echo "#define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1" >>confdefs.h
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5677 $as_echo "yes" >&6; }
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5682 $as_echo "no" >&6; }
5685 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5689 # On some compilers, pthreads are available without further options
5690 # (e.g. MacOS X). On some of these systems, the compiler will not
5691 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
5692 # So we have to see first whether pthreads are available without
5693 # options before we can check whether -Kpthread improves anything.
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads are available without options" >&5
5695 $as_echo_n "checking whether pthreads are available without options... " >&6; }
5696 if test "${ac_cv_pthread_is_default+set}" = set; then :
5697 $as_echo_n "(cached) " >&6
5699 if test "$cross_compiling" = yes; then :
5700 ac_cv_pthread_is_default
=no
5702 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5703 /* end confdefs.h. */
5705 #include <pthread.h>
5707 void* routine(void* p){return NULL;}
5711 if(pthread_create(&p,NULL,routine,NULL)!=0)
5713 (void)pthread_detach(p);
5718 if ac_fn_c_try_run
"$LINENO"; then :
5720 ac_cv_pthread_is_default
=yes
5725 ac_cv_pthread_is_default
=no
5727 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5728 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_is_default" >&5
5735 $as_echo "$ac_cv_pthread_is_default" >&6; }
5738 if test $ac_cv_pthread_is_default = yes
5742 # -Kpthread, if available, provides the right #defines
5743 # and linker options to make pthread_create available
5744 # Some compilers won't report that they do not support -Kpthread,
5745 # so we need to run a program to see whether it really made the
5746 # function available.
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kpthread" >&5
5748 $as_echo_n "checking whether $CC accepts -Kpthread... " >&6; }
5749 if test "${ac_cv_kpthread+set}" = set; then :
5750 $as_echo_n "(cached) " >&6
5754 if test "$cross_compiling" = yes; then :
5757 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5758 /* end confdefs.h. */
5760 #include <pthread.h>
5762 void* routine(void* p){return NULL;}
5766 if(pthread_create(&p,NULL,routine,NULL)!=0)
5768 (void)pthread_detach(p);
5773 if ac_fn_c_try_run
"$LINENO"; then :
5778 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5779 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kpthread" >&5
5786 $as_echo "$ac_cv_kpthread" >&6; }
5789 if test $ac_cv_kpthread = no
-a $ac_cv_pthread_is_default = no
5791 # -Kthread, if available, provides the right #defines
5792 # and linker options to make pthread_create available
5793 # Some compilers won't report that they do not support -Kthread,
5794 # so we need to run a program to see whether it really made the
5795 # function available.
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kthread" >&5
5797 $as_echo_n "checking whether $CC accepts -Kthread... " >&6; }
5798 if test "${ac_cv_kthread+set}" = set; then :
5799 $as_echo_n "(cached) " >&6
5803 if test "$cross_compiling" = yes; then :
5806 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5807 /* end confdefs.h. */
5809 #include <pthread.h>
5811 void* routine(void* p){return NULL;}
5815 if(pthread_create(&p,NULL,routine,NULL)!=0)
5817 (void)pthread_detach(p);
5822 if ac_fn_c_try_run
"$LINENO"; then :
5827 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5828 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kthread" >&5
5835 $as_echo "$ac_cv_kthread" >&6; }
5838 if test $ac_cv_kthread = no
-a $ac_cv_pthread_is_default = no
5840 # -pthread, if available, provides the right #defines
5841 # and linker options to make pthread_create available
5842 # Some compilers won't report that they do not support -pthread,
5843 # so we need to run a program to see whether it really made the
5844 # function available.
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -pthread" >&5
5846 $as_echo_n "checking whether $CC accepts -pthread... " >&6; }
5847 if test "${ac_cv_thread+set}" = set; then :
5848 $as_echo_n "(cached) " >&6
5852 if test "$cross_compiling" = yes; then :
5855 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5856 /* end confdefs.h. */
5858 #include <pthread.h>
5860 void* routine(void* p){return NULL;}
5864 if(pthread_create(&p,NULL,routine,NULL)!=0)
5866 (void)pthread_detach(p);
5871 if ac_fn_c_try_run
"$LINENO"; then :
5876 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5877 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread" >&5
5884 $as_echo "$ac_cv_pthread" >&6; }
5887 # If we have set a CC compiler flag for thread support then
5888 # check if it works for CXX, too.
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX also accepts flags for thread support" >&5
5893 $as_echo_n "checking whether $CXX also accepts flags for thread support... " >&6; }
5896 if test "$ac_cv_kpthread" = "yes"
5898 CXX
="$CXX -Kpthread"
5899 ac_cv_cxx_thread
=yes
5900 elif test "$ac_cv_kthread" = "yes"
5903 ac_cv_cxx_thread
=yes
5904 elif test "$ac_cv_pthread" = "yes"
5907 ac_cv_cxx_thread
=yes
5910 if test $ac_cv_cxx_thread = yes
5912 echo 'void foo();int main(){foo();}void foo(){}' > conftest.
$ac_ext
5913 $CXX -c conftest.
$ac_ext 2>&5
5914 if $CXX -o conftest
$ac_exeext conftest.
$ac_objext 2>&5 \
5915 && test -s conftest
$ac_exeext && .
/conftest
$ac_exeext
5917 ac_cv_cxx_thread
=yes
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_thread" >&5
5924 $as_echo "$ac_cv_cxx_thread" >&6; }
5929 # checks for header files
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5931 $as_echo_n "checking for ANSI C header files... " >&6; }
5932 if test "${ac_cv_header_stdc+set}" = set; then :
5933 $as_echo_n "(cached) " >&6
5935 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5936 /* end confdefs.h. */
5950 if ac_fn_c_try_compile
"$LINENO"; then :
5951 ac_cv_header_stdc
=yes
5953 ac_cv_header_stdc
=no
5955 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5957 if test $ac_cv_header_stdc = yes; then
5958 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5959 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5960 /* end confdefs.h. */
5964 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5965 $EGREP "memchr" >/dev
/null
2>&1; then :
5968 ac_cv_header_stdc
=no
5974 if test $ac_cv_header_stdc = yes; then
5975 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5976 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5977 /* end confdefs.h. */
5981 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5982 $EGREP "free" >/dev
/null
2>&1; then :
5985 ac_cv_header_stdc
=no
5991 if test $ac_cv_header_stdc = yes; then
5992 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5993 if test "$cross_compiling" = yes; then :
5996 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5997 /* end confdefs.h. */
6000 #if ((' ' & 0x0FF) == 0x020)
6001 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6002 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6004 # define ISLOWER(c) \
6005 (('a' <= (c) && (c) <= 'i') \
6006 || ('j' <= (c) && (c) <= 'r') \
6007 || ('s' <= (c) && (c) <= 'z'))
6008 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6011 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6016 for (i = 0; i < 256; i++)
6017 if (XOR (islower (i), ISLOWER (i))
6018 || toupper (i) != TOUPPER (i))
6023 if ac_fn_c_try_run
"$LINENO"; then :
6026 ac_cv_header_stdc
=no
6028 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6029 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6035 $as_echo "$ac_cv_header_stdc" >&6; }
6036 if test $ac_cv_header_stdc = yes; then
6038 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6042 for ac_header
in asm
/types.h conio.h curses.h direct.h dlfcn.h errno.h \
6044 ieeefp.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
6045 shadow.h signal.h stdint.h stropts.h termios.h thread.h \
6047 sys
/audioio.h sys
/bsdtty.h sys
/epoll.h sys
/event.h sys
/file.h sys
/loadavg.h \
6048 sys
/lock.h sys
/mkdev.h sys
/modem.h \
6049 sys
/param.h sys
/poll.h sys
/select.h sys
/socket.h sys
/statvfs.h sys
/stat.h \
6050 sys
/termio.h sys
/time.h \
6051 sys
/times.h sys
/types.h sys
/un.h sys
/utsname.h sys
/wait.h pty.h libutil.h \
6052 sys
/resource.h netpacket
/packet.h sysexits.h bluetooth.h \
6053 bluetooth
/bluetooth.h linux
/tipc.h spawn.h util.h
6055 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6056 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6057 eval as_val
=\$
$as_ac_Header
6058 if test "x$as_val" = x
""yes; then :
6059 cat >>confdefs.h
<<_ACEOF
6060 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6068 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
6069 as_ac_Header
=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6071 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6072 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
6073 $as_echo_n "(cached) " >&6
6075 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6076 /* end confdefs.h. */
6077 #include <sys/types.h>
6089 if ac_fn_c_try_compile
"$LINENO"; then :
6090 eval "$as_ac_Header=yes"
6092 eval "$as_ac_Header=no"
6094 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6096 eval ac_res
=\$
$as_ac_Header
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6098 $as_echo "$ac_res" >&6; }
6099 eval as_val
=\$
$as_ac_Header
6100 if test "x$as_val" = x
""yes; then :
6101 cat >>confdefs.h
<<_ACEOF
6102 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6105 ac_header_dirent
=$ac_hdr; break
6109 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6110 if test $ac_header_dirent = dirent.h
; then
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6112 $as_echo_n "checking for library containing opendir... " >&6; }
6113 if test "${ac_cv_search_opendir+set}" = set; then :
6114 $as_echo_n "(cached) " >&6
6116 ac_func_search_save_LIBS
=$LIBS
6117 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6118 /* end confdefs.h. */
6120 /* Override any GCC internal prototype to avoid an error.
6121 Use char because int might match the return type of a GCC
6122 builtin and then its argument prototype would still apply. */
6135 for ac_lib
in '' dir
; do
6136 if test -z "$ac_lib"; then
6137 ac_res
="none required"
6140 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6142 if ac_fn_c_try_link
"$LINENO"; then :
6143 ac_cv_search_opendir
=$ac_res
6145 rm -f core conftest.err conftest.
$ac_objext \
6147 if test "${ac_cv_search_opendir+set}" = set; then :
6151 if test "${ac_cv_search_opendir+set}" = set; then :
6154 ac_cv_search_opendir
=no
6157 LIBS
=$ac_func_search_save_LIBS
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6160 $as_echo "$ac_cv_search_opendir" >&6; }
6161 ac_res
=$ac_cv_search_opendir
6162 if test "$ac_res" != no
; then :
6163 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6169 $as_echo_n "checking for library containing opendir... " >&6; }
6170 if test "${ac_cv_search_opendir+set}" = set; then :
6171 $as_echo_n "(cached) " >&6
6173 ac_func_search_save_LIBS
=$LIBS
6174 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6175 /* end confdefs.h. */
6177 /* Override any GCC internal prototype to avoid an error.
6178 Use char because int might match the return type of a GCC
6179 builtin and then its argument prototype would still apply. */
6192 for ac_lib
in '' x
; do
6193 if test -z "$ac_lib"; then
6194 ac_res
="none required"
6197 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6199 if ac_fn_c_try_link
"$LINENO"; then :
6200 ac_cv_search_opendir
=$ac_res
6202 rm -f core conftest.err conftest.
$ac_objext \
6204 if test "${ac_cv_search_opendir+set}" = set; then :
6208 if test "${ac_cv_search_opendir+set}" = set; then :
6211 ac_cv_search_opendir
=no
6214 LIBS
=$ac_func_search_save_LIBS
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6217 $as_echo "$ac_cv_search_opendir" >&6; }
6218 ac_res
=$ac_cv_search_opendir
6219 if test "$ac_res" != no
; then :
6220 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
6227 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
6228 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then :
6229 $as_echo_n "(cached) " >&6
6231 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6232 /* end confdefs.h. */
6233 #include <sys/types.h>
6237 return makedev(0, 0);
6242 if ac_fn_c_try_link
"$LINENO"; then :
6243 ac_cv_header_sys_types_h_makedev
=yes
6245 ac_cv_header_sys_types_h_makedev
=no
6247 rm -f core conftest.err conftest.
$ac_objext \
6248 conftest
$ac_exeext conftest.
$ac_ext
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
6252 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
6254 if test $ac_cv_header_sys_types_h_makedev = no
; then
6255 ac_fn_c_check_header_mongrel
"$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
6256 if test "x$ac_cv_header_sys_mkdev_h" = x
""yes; then :
6258 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
6264 if test $ac_cv_header_sys_mkdev_h = no
; then
6265 ac_fn_c_check_header_mongrel
"$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
6266 if test "x$ac_cv_header_sys_sysmacros_h" = x
""yes; then :
6268 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
6277 # On Solaris, term.h requires curses.h
6278 for ac_header
in term.h
6280 ac_fn_c_check_header_compile
"$LINENO" "term.h" "ac_cv_header_term_h" "
6281 #ifdef HAVE_CURSES_H
6286 if test "x$ac_cv_header_term_h" = x
""yes; then :
6287 cat >>confdefs.h
<<_ACEOF
6288 #define HAVE_TERM_H 1
6296 # On Linux, netlink.h requires asm/types.h
6297 for ac_header
in linux
/netlink.h
6299 ac_fn_c_check_header_compile
"$LINENO" "linux/netlink.h" "ac_cv_header_linux_netlink_h" "
6300 #ifdef HAVE_ASM_TYPES_H
6301 #include <asm/types.h>
6303 #ifdef HAVE_SYS_SOCKET_H
6304 #include <sys/socket.h>
6308 if test "x$ac_cv_header_linux_netlink_h" = x
""yes; then :
6309 cat >>confdefs.h
<<_ACEOF
6310 #define HAVE_LINUX_NETLINK_H 1
6318 # checks for typedefs
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t in time.h" >&5
6321 $as_echo_n "checking for clock_t in time.h... " >&6; }
6322 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6323 /* end confdefs.h. */
6327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6328 $EGREP "clock_t" >/dev
/null
2>&1; then :
6333 $as_echo "#define clock_t long" >>confdefs.h
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5
6340 $as_echo "$was_it_defined" >&6; }
6342 # Check whether using makedev requires defining _OSF_SOURCE
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for makedev" >&5
6344 $as_echo_n "checking for makedev... " >&6; }
6345 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6346 /* end confdefs.h. */
6348 #if defined(MAJOR_IN_MKDEV)
6349 #include <sys/mkdev.h>
6350 #elif defined(MAJOR_IN_SYSMACROS)
6351 #include <sys/sysmacros.h>
6353 #include <sys/types.h>
6363 if ac_fn_c_try_link
"$LINENO"; then :
6364 ac_cv_has_makedev
=yes
6366 ac_cv_has_makedev
=no
6368 rm -f core conftest.err conftest.
$ac_objext \
6369 conftest
$ac_exeext conftest.
$ac_ext
6370 if test "$ac_cv_has_makedev" = "no"; then
6371 # we didn't link, try if _OSF_SOURCE will allow us to link
6372 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6373 /* end confdefs.h. */
6375 #define _OSF_SOURCE 1
6376 #include <sys/types.h>
6386 if ac_fn_c_try_link
"$LINENO"; then :
6387 ac_cv_has_makedev
=yes
6389 ac_cv_has_makedev
=no
6391 rm -f core conftest.err conftest.
$ac_objext \
6392 conftest
$ac_exeext conftest.
$ac_ext
6393 if test "$ac_cv_has_makedev" = "yes"; then
6395 $as_echo "#define _OSF_SOURCE 1" >>confdefs.h
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_makedev" >&5
6400 $as_echo "$ac_cv_has_makedev" >&6; }
6401 if test "$ac_cv_has_makedev" = "yes"; then
6403 $as_echo "#define HAVE_MAKEDEV 1" >>confdefs.h
6407 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
6408 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
6409 # defined, but the compiler does not support pragma redefine_extname,
6410 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
6411 # structures (such as rlimit64) without declaring them. As a
6412 # work-around, disable LFS on such configurations
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Solaris LFS bug" >&5
6416 $as_echo_n "checking Solaris LFS bug... " >&6; }
6417 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6418 /* end confdefs.h. */
6420 #define _LARGEFILE_SOURCE 1
6421 #define _FILE_OFFSET_BITS 64
6422 #include <sys/resource.h>
6432 if ac_fn_c_try_compile
"$LINENO"; then :
6437 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sol_lfs_bug" >&5
6439 $as_echo "$sol_lfs_bug" >&6; }
6440 if test "$sol_lfs_bug" = "yes"; then
6444 if test "$use_lfs" = "yes"; then
6445 # Two defines needed to enable largefile support on various platforms
6446 # These may affect some typedefs
6448 $as_echo "#define _LARGEFILE_SOURCE 1" >>confdefs.h
6451 $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
6455 # Add some code to confdefs.h so that the test for off_t works on SCO
6456 cat >> confdefs.h
<<\EOF
6462 # Type availability checks
6463 ac_fn_c_check_type
"$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
6464 if test "x$ac_cv_type_mode_t" = x
""yes; then :
6468 cat >>confdefs.h
<<_ACEOF
6474 ac_fn_c_check_type
"$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6475 if test "x$ac_cv_type_off_t" = x
""yes; then :
6479 cat >>confdefs.h
<<_ACEOF
6480 #define off_t long int
6485 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6486 if test "x$ac_cv_type_pid_t" = x
""yes; then :
6490 cat >>confdefs.h
<<_ACEOF
6497 cat >>confdefs.h
<<_ACEOF
6498 #define RETSIGTYPE void
6501 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6502 if test "x$ac_cv_type_size_t" = x
""yes; then :
6506 cat >>confdefs.h
<<_ACEOF
6507 #define size_t unsigned int
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6513 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6514 if test "${ac_cv_type_uid_t+set}" = set; then :
6515 $as_echo_n "(cached) " >&6
6517 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6518 /* end confdefs.h. */
6519 #include <sys/types.h>
6522 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6523 $EGREP "uid_t" >/dev
/null
2>&1; then :
6524 ac_cv_type_uid_t
=yes
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6532 $as_echo "$ac_cv_type_uid_t" >&6; }
6533 if test $ac_cv_type_uid_t = no
; then
6535 $as_echo "#define uid_t int" >>confdefs.h
6538 $as_echo "#define gid_t int" >>confdefs.h
6542 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
6543 case $ac_cv_c_uint32_t in #(
6547 $as_echo "#define _UINT32_T 1" >>confdefs.h
6550 cat >>confdefs.h
<<_ACEOF
6551 #define uint32_t $ac_cv_c_uint32_t
6556 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
6557 case $ac_cv_c_uint64_t in #(
6561 $as_echo "#define _UINT64_T 1" >>confdefs.h
6564 cat >>confdefs.h
<<_ACEOF
6565 #define uint64_t $ac_cv_c_uint64_t
6570 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
6571 case $ac_cv_c_int32_t in #(
6575 cat >>confdefs.h
<<_ACEOF
6576 #define int32_t $ac_cv_c_int32_t
6581 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
6582 case $ac_cv_c_int64_t in #(
6586 cat >>confdefs.h
<<_ACEOF
6587 #define int64_t $ac_cv_c_int64_t
6592 ac_fn_c_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
6593 if test "x$ac_cv_type_ssize_t" = x
""yes; then :
6595 $as_echo "#define HAVE_SSIZE_T 1" >>confdefs.h
6600 # Sizes of various common basic types
6601 # ANSI C requires sizeof(char) == 1, so no need to check it
6602 # The cast to long int works around a bug in the HP C Compiler
6603 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6604 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6605 # This bug is HP SR number 8606223364.
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6607 $as_echo_n "checking size of int... " >&6; }
6608 if test "${ac_cv_sizeof_int+set}" = set; then :
6609 $as_echo_n "(cached) " >&6
6611 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6614 if test "$ac_cv_type_int" = yes; then
6615 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6616 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6617 { as_fn_set_status
77
6618 as_fn_error
"cannot compute sizeof (int)
6619 See \`config.log' for more details." "$LINENO" 5; }; }
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6627 $as_echo "$ac_cv_sizeof_int" >&6; }
6631 cat >>confdefs.h
<<_ACEOF
6632 #define SIZEOF_INT $ac_cv_sizeof_int
6636 # The cast to long int works around a bug in the HP C Compiler
6637 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6638 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6639 # This bug is HP SR number 8606223364.
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6641 $as_echo_n "checking size of long... " >&6; }
6642 if test "${ac_cv_sizeof_long+set}" = set; then :
6643 $as_echo_n "(cached) " >&6
6645 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6648 if test "$ac_cv_type_long" = yes; then
6649 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6650 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6651 { as_fn_set_status
77
6652 as_fn_error
"cannot compute sizeof (long)
6653 See \`config.log' for more details." "$LINENO" 5; }; }
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6661 $as_echo "$ac_cv_sizeof_long" >&6; }
6665 cat >>confdefs.h
<<_ACEOF
6666 #define SIZEOF_LONG $ac_cv_sizeof_long
6670 # The cast to long int works around a bug in the HP C Compiler
6671 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6672 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6673 # This bug is HP SR number 8606223364.
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
6675 $as_echo_n "checking size of void *... " >&6; }
6676 if test "${ac_cv_sizeof_void_p+set}" = set; then :
6677 $as_echo_n "(cached) " >&6
6679 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
6682 if test "$ac_cv_type_void_p" = yes; then
6683 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6684 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6685 { as_fn_set_status
77
6686 as_fn_error
"cannot compute sizeof (void *)
6687 See \`config.log' for more details." "$LINENO" 5; }; }
6689 ac_cv_sizeof_void_p
=0
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
6695 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6699 cat >>confdefs.h
<<_ACEOF
6700 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6704 # The cast to long int works around a bug in the HP C Compiler
6705 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6706 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6707 # This bug is HP SR number 8606223364.
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6709 $as_echo_n "checking size of short... " >&6; }
6710 if test "${ac_cv_sizeof_short+set}" = set; then :
6711 $as_echo_n "(cached) " >&6
6713 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
6716 if test "$ac_cv_type_short" = yes; then
6717 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6718 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6719 { as_fn_set_status
77
6720 as_fn_error
"cannot compute sizeof (short)
6721 See \`config.log' for more details." "$LINENO" 5; }; }
6723 ac_cv_sizeof_short
=0
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6729 $as_echo "$ac_cv_sizeof_short" >&6; }
6733 cat >>confdefs.h
<<_ACEOF
6734 #define SIZEOF_SHORT $ac_cv_sizeof_short
6738 # The cast to long int works around a bug in the HP C Compiler
6739 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6740 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6741 # This bug is HP SR number 8606223364.
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
6743 $as_echo_n "checking size of float... " >&6; }
6744 if test "${ac_cv_sizeof_float+set}" = set; then :
6745 $as_echo_n "(cached) " >&6
6747 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
6750 if test "$ac_cv_type_float" = yes; then
6751 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6752 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6753 { as_fn_set_status
77
6754 as_fn_error
"cannot compute sizeof (float)
6755 See \`config.log' for more details." "$LINENO" 5; }; }
6757 ac_cv_sizeof_float
=0
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
6763 $as_echo "$ac_cv_sizeof_float" >&6; }
6767 cat >>confdefs.h
<<_ACEOF
6768 #define SIZEOF_FLOAT $ac_cv_sizeof_float
6772 # The cast to long int works around a bug in the HP C Compiler
6773 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6774 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6775 # This bug is HP SR number 8606223364.
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
6777 $as_echo_n "checking size of double... " >&6; }
6778 if test "${ac_cv_sizeof_double+set}" = set; then :
6779 $as_echo_n "(cached) " >&6
6781 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
6784 if test "$ac_cv_type_double" = yes; then
6785 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6786 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6787 { as_fn_set_status
77
6788 as_fn_error
"cannot compute sizeof (double)
6789 See \`config.log' for more details." "$LINENO" 5; }; }
6791 ac_cv_sizeof_double
=0
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
6797 $as_echo "$ac_cv_sizeof_double" >&6; }
6801 cat >>confdefs.h
<<_ACEOF
6802 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
6806 # The cast to long int works around a bug in the HP C Compiler
6807 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6808 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6809 # This bug is HP SR number 8606223364.
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of fpos_t" >&5
6811 $as_echo_n "checking size of fpos_t... " >&6; }
6812 if test "${ac_cv_sizeof_fpos_t+set}" = set; then :
6813 $as_echo_n "(cached) " >&6
6815 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (fpos_t))" "ac_cv_sizeof_fpos_t" "$ac_includes_default"; then :
6818 if test "$ac_cv_type_fpos_t" = yes; then
6819 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6820 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6821 { as_fn_set_status
77
6822 as_fn_error
"cannot compute sizeof (fpos_t)
6823 See \`config.log' for more details." "$LINENO" 5; }; }
6825 ac_cv_sizeof_fpos_t
=0
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_fpos_t" >&5
6831 $as_echo "$ac_cv_sizeof_fpos_t" >&6; }
6835 cat >>confdefs.h
<<_ACEOF
6836 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
6840 # The cast to long int works around a bug in the HP C Compiler
6841 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6842 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6843 # This bug is HP SR number 8606223364.
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
6845 $as_echo_n "checking size of size_t... " >&6; }
6846 if test "${ac_cv_sizeof_size_t+set}" = set; then :
6847 $as_echo_n "(cached) " >&6
6849 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
6852 if test "$ac_cv_type_size_t" = yes; then
6853 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6854 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6855 { as_fn_set_status
77
6856 as_fn_error
"cannot compute sizeof (size_t)
6857 See \`config.log' for more details." "$LINENO" 5; }; }
6859 ac_cv_sizeof_size_t
=0
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
6865 $as_echo "$ac_cv_sizeof_size_t" >&6; }
6869 cat >>confdefs.h
<<_ACEOF
6870 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
6874 # The cast to long int works around a bug in the HP C Compiler
6875 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6876 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6877 # This bug is HP SR number 8606223364.
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pid_t" >&5
6879 $as_echo_n "checking size of pid_t... " >&6; }
6880 if test "${ac_cv_sizeof_pid_t+set}" = set; then :
6881 $as_echo_n "(cached) " >&6
6883 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (pid_t))" "ac_cv_sizeof_pid_t" "$ac_includes_default"; then :
6886 if test "$ac_cv_type_pid_t" = yes; then
6887 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6888 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6889 { as_fn_set_status
77
6890 as_fn_error
"cannot compute sizeof (pid_t)
6891 See \`config.log' for more details." "$LINENO" 5; }; }
6893 ac_cv_sizeof_pid_t
=0
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pid_t" >&5
6899 $as_echo "$ac_cv_sizeof_pid_t" >&6; }
6903 cat >>confdefs.h
<<_ACEOF
6904 #define SIZEOF_PID_T $ac_cv_sizeof_pid_t
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support" >&5
6910 $as_echo_n "checking for long long support... " >&6; }
6912 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6913 /* end confdefs.h. */
6918 long long x; x = (long long)0;
6923 if ac_fn_c_try_compile
"$LINENO"; then :
6926 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
6931 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_long_long" >&5
6933 $as_echo "$have_long_long" >&6; }
6934 if test "$have_long_long" = yes ; then
6935 # The cast to long int works around a bug in the HP C Compiler
6936 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6937 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6938 # This bug is HP SR number 8606223364.
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6940 $as_echo_n "checking size of long long... " >&6; }
6941 if test "${ac_cv_sizeof_long_long+set}" = set; then :
6942 $as_echo_n "(cached) " >&6
6944 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6947 if test "$ac_cv_type_long_long" = yes; then
6948 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6949 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6950 { as_fn_set_status
77
6951 as_fn_error
"cannot compute sizeof (long long)
6952 See \`config.log' for more details." "$LINENO" 5; }; }
6954 ac_cv_sizeof_long_long
=0
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6960 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6964 cat >>confdefs.h
<<_ACEOF
6965 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support" >&5
6972 $as_echo_n "checking for long double support... " >&6; }
6974 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6975 /* end confdefs.h. */
6980 long double x; x = (long double)0;
6985 if ac_fn_c_try_compile
"$LINENO"; then :
6988 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
6990 have_long_double
=yes
6993 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_long_double" >&5
6995 $as_echo "$have_long_double" >&6; }
6996 if test "$have_long_double" = yes ; then
6997 # The cast to long int works around a bug in the HP C Compiler
6998 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6999 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7000 # This bug is HP SR number 8606223364.
7001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
7002 $as_echo_n "checking size of long double... " >&6; }
7003 if test "${ac_cv_sizeof_long_double+set}" = set; then :
7004 $as_echo_n "(cached) " >&6
7006 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
7009 if test "$ac_cv_type_long_double" = yes; then
7010 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7011 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7012 { as_fn_set_status
77
7013 as_fn_error
"cannot compute sizeof (long double)
7014 See \`config.log' for more details." "$LINENO" 5; }; }
7016 ac_cv_sizeof_long_double
=0
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
7022 $as_echo "$ac_cv_sizeof_long_double" >&6; }
7026 cat >>confdefs.h
<<_ACEOF
7027 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Bool support" >&5
7034 $as_echo_n "checking for _Bool support... " >&6; }
7036 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7037 /* end confdefs.h. */
7042 _Bool x; x = (_Bool)0;
7047 if ac_fn_c_try_compile
"$LINENO"; then :
7050 $as_echo "#define HAVE_C99_BOOL 1" >>confdefs.h
7055 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_c99_bool" >&5
7057 $as_echo "$have_c99_bool" >&6; }
7058 if test "$have_c99_bool" = yes ; then
7059 # The cast to long int works around a bug in the HP C Compiler
7060 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7061 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7062 # This bug is HP SR number 8606223364.
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of _Bool" >&5
7064 $as_echo_n "checking size of _Bool... " >&6; }
7065 if test "${ac_cv_sizeof__Bool+set}" = set; then :
7066 $as_echo_n "(cached) " >&6
7068 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (_Bool))" "ac_cv_sizeof__Bool" "$ac_includes_default"; then :
7071 if test "$ac_cv_type__Bool" = yes; then
7072 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7073 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7074 { as_fn_set_status
77
7075 as_fn_error
"cannot compute sizeof (_Bool)
7076 See \`config.log' for more details." "$LINENO" 5; }; }
7078 ac_cv_sizeof__Bool
=0
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof__Bool" >&5
7084 $as_echo "$ac_cv_sizeof__Bool" >&6; }
7088 cat >>confdefs.h
<<_ACEOF
7089 #define SIZEOF__BOOL $ac_cv_sizeof__Bool
7095 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#ifdef HAVE_STDINT_H
7099 if test "x$ac_cv_type_uintptr_t" = x
""yes; then :
7101 cat >>confdefs.h
<<_ACEOF
7102 #define HAVE_UINTPTR_T 1
7105 # The cast to long int works around a bug in the HP C Compiler
7106 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7107 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7108 # This bug is HP SR number 8606223364.
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uintptr_t" >&5
7110 $as_echo_n "checking size of uintptr_t... " >&6; }
7111 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then :
7112 $as_echo_n "(cached) " >&6
7114 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (uintptr_t))" "ac_cv_sizeof_uintptr_t" "$ac_includes_default"; then :
7117 if test "$ac_cv_type_uintptr_t" = yes; then
7118 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7119 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7120 { as_fn_set_status
77
7121 as_fn_error
"cannot compute sizeof (uintptr_t)
7122 See \`config.log' for more details." "$LINENO" 5; }; }
7124 ac_cv_sizeof_uintptr_t
=0
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uintptr_t" >&5
7130 $as_echo "$ac_cv_sizeof_uintptr_t" >&6; }
7134 cat >>confdefs.h
<<_ACEOF
7135 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
7142 # The cast to long int works around a bug in the HP C Compiler
7143 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7144 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7145 # This bug is HP SR number 8606223364.
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
7147 $as_echo_n "checking size of off_t... " >&6; }
7148 if test "${ac_cv_sizeof_off_t+set}" = set; then :
7149 $as_echo_n "(cached) " >&6
7151 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "
7152 #ifdef HAVE_SYS_TYPES_H
7153 #include <sys/types.h>
7159 if test "$ac_cv_type_off_t" = yes; then
7160 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7161 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7162 { as_fn_set_status
77
7163 as_fn_error
"cannot compute sizeof (off_t)
7164 See \`config.log' for more details." "$LINENO" 5; }; }
7166 ac_cv_sizeof_off_t
=0
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
7172 $as_echo "$ac_cv_sizeof_off_t" >&6; }
7176 cat >>confdefs.h
<<_ACEOF
7177 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable large file support" >&5
7183 $as_echo_n "checking whether to enable large file support... " >&6; }
7184 if test "$have_long_long" = yes
7186 if test "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
7187 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
7189 $as_echo "#define HAVE_LARGEFILE_SUPPORT 1" >>confdefs.h
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7192 $as_echo "yes" >&6; }
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7195 $as_echo "no" >&6; }
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7199 $as_echo "no" >&6; }
7202 # The cast to long int works around a bug in the HP C Compiler
7203 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7204 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7205 # This bug is HP SR number 8606223364.
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
7207 $as_echo_n "checking size of time_t... " >&6; }
7208 if test "${ac_cv_sizeof_time_t+set}" = set; then :
7209 $as_echo_n "(cached) " >&6
7211 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "
7212 #ifdef HAVE_SYS_TYPES_H
7213 #include <sys/types.h>
7222 if test "$ac_cv_type_time_t" = yes; then
7223 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7224 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7225 { as_fn_set_status
77
7226 as_fn_error
"cannot compute sizeof (time_t)
7227 See \`config.log' for more details." "$LINENO" 5; }; }
7229 ac_cv_sizeof_time_t
=0
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
7235 $as_echo "$ac_cv_sizeof_time_t" >&6; }
7239 cat >>confdefs.h
<<_ACEOF
7240 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
7245 # if have pthread_t then define SIZEOF_PTHREAD_T
7247 if test "$ac_cv_kpthread" = "yes"
7248 then CC
="$CC -Kpthread"
7249 elif test "$ac_cv_kthread" = "yes"
7250 then CC
="$CC -Kthread"
7251 elif test "$ac_cv_pthread" = "yes"
7252 then CC
="$CC -pthread"
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_t" >&5
7255 $as_echo_n "checking for pthread_t... " >&6; }
7257 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7258 /* end confdefs.h. */
7260 #include <pthread.h>
7264 pthread_t x; x = *(pthread_t*)0;
7270 if ac_fn_c_try_compile
"$LINENO"; then :
7273 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_t" >&5
7275 $as_echo "$have_pthread_t" >&6; }
7276 if test "$have_pthread_t" = yes ; then
7277 # The cast to long int works around a bug in the HP C Compiler
7278 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7279 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7280 # This bug is HP SR number 8606223364.
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
7282 $as_echo_n "checking size of pthread_t... " >&6; }
7283 if test "${ac_cv_sizeof_pthread_t+set}" = set; then :
7284 $as_echo_n "(cached) " >&6
7286 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t" "
7287 #ifdef HAVE_PTHREAD_H
7288 #include <pthread.h>
7294 if test "$ac_cv_type_pthread_t" = yes; then
7295 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7296 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7297 { as_fn_set_status
77
7298 as_fn_error
"cannot compute sizeof (pthread_t)
7299 See \`config.log' for more details." "$LINENO" 5; }; }
7301 ac_cv_sizeof_pthread_t
=0
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
7307 $as_echo "$ac_cv_sizeof_pthread_t" >&6; }
7311 cat >>confdefs.h
<<_ACEOF
7312 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-toolbox-glue" >&5
7320 $as_echo_n "checking for --enable-toolbox-glue... " >&6; }
7321 # Check whether --enable-toolbox-glue was given.
7322 if test "${enable_toolbox_glue+set}" = set; then :
7323 enableval
=$enable_toolbox_glue;
7327 if test -z "$enable_toolbox_glue"
7329 case $ac_sys_system/$ac_sys_release in
7331 enable_toolbox_glue
="yes";;
7333 enable_toolbox_glue
="no";;
7336 case "$enable_toolbox_glue" in
7338 extra_machdep_objs
="Python/mactoolboxglue.o"
7339 extra_undefs
="-u _PyMac_Error"
7341 $as_echo "#define USE_TOOLBOX_OBJECT_GLUE 1" >>confdefs.h
7345 extra_machdep_objs
=""
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_toolbox_glue" >&5
7350 $as_echo "$enable_toolbox_glue" >&6; }
7354 case $ac_sys_system/$ac_sys_release in
7356 OTHER_LIBTOOL_OPT
="-prebind -seg1addr 0x10000000"
7359 OTHER_LIBTOOL_OPT
=""
7366 case $ac_sys_system/$ac_sys_release in
7368 LIBTOOL_CRUFT
="-framework System -lcc_dynamic"
7369 if test "${enable_universalsdk}"; then
7372 LIBTOOL_CRUFT
="${LIBTOOL_CRUFT} -arch_only `/usr/bin/arch`"
7374 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
7375 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
7377 gcc_version
=`gcc -dumpversion`
7378 if test ${gcc_version} '<' 4.0
7380 LIBTOOL_CRUFT
="-lcc_dynamic"
7384 if test "$cross_compiling" = yes; then :
7387 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7388 /* end confdefs.h. */
7391 int main(int argc, char*argv[])
7393 if (sizeof(long) == 4) {
7401 if ac_fn_c_try_run
"$LINENO"; then :
7406 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7407 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7411 if test "${ac_osx_32bit}" = "yes"; then
7412 case `/usr/bin/arch` in
7414 MACOSX_DEFAULT_ARCH
="i386"
7417 MACOSX_DEFAULT_ARCH
="ppc"
7420 as_fn_error
"Unexpected output of 'arch' on OSX" "$LINENO" 5
7424 case `/usr/bin/arch` in
7426 MACOSX_DEFAULT_ARCH
="x86_64"
7429 MACOSX_DEFAULT_ARCH
="ppc64"
7432 as_fn_error
"Unexpected output of 'arch' on OSX" "$LINENO" 5
7436 #ARCH_RUN_32BIT="true"
7439 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}"
7440 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
7441 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-framework" >&5
7445 $as_echo_n "checking for --enable-framework... " >&6; }
7446 if test "$enable_framework"
7448 BASECFLAGS
="$BASECFLAGS -fno-common -dynamic"
7449 # -F. is needed to allow linking to the framework while
7450 # in the build location.
7452 $as_echo "#define WITH_NEXT_FRAMEWORK 1" >>confdefs.h
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7455 $as_echo "yes" >&6; }
7456 if test $enable_shared = "yes"
7458 as_fn_error
"Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead. See Mac/README." "$LINENO" 5
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7462 $as_echo "no" >&6; }
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dyld" >&5
7466 $as_echo_n "checking for dyld... " >&6; }
7467 case $ac_sys_system/$ac_sys_release in
7470 $as_echo "#define WITH_DYLD 1" >>confdefs.h
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: always on for Darwin" >&5
7473 $as_echo "always on for Darwin" >&6; }
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7477 $as_echo "no" >&6; }
7481 # Set info about shared libraries.
7488 # SO is the extension of shared libraries `(including the dot!)
7489 # -- usually .so, .sl on HP-UX, .dll on Cygwin
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SO" >&5
7491 $as_echo_n "checking SO... " >&6; }
7494 case $ac_sys_system in
7505 # this might also be a termcap variable, see #610332
7507 echo '====================================================================='
7509 echo '+ WARNING: You have set SO in your environment. +'
7510 echo '+ Do you really mean to change the extension for shared libraries? +'
7511 echo '+ Continuing in 10 seconds to let you to ponder. +'
7513 echo '====================================================================='
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SO" >&5
7517 $as_echo "$SO" >&6; }
7520 cat >>confdefs.h
<<_ACEOF
7521 #define SHLIB_EXT "$SO"
7524 # LDSHARED is the ld *command* used to create shared library
7525 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
7526 # (Shared libraries in this instance are shared modules to be loaded into
7527 # Python, as opposed to building Python itself as a shared library.)
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDSHARED" >&5
7529 $as_echo_n "checking LDSHARED... " >&6; }
7530 if test -z "$LDSHARED"
7532 case $ac_sys_system/$ac_sys_release in
7534 BLDSHARED
="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
7535 LDSHARED
="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
7538 BLDSHARED
="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
7539 LDSHARED
="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
7541 IRIX
/5*) LDSHARED
="ld -shared";;
7542 IRIX
*/6*) LDSHARED
="ld ${SGI_ABI} -shared -all";;
7544 if test "$GCC" = "yes" ; then
7545 LDSHARED
='$(CC) -shared'
7546 LDCXXSHARED
='$(CXX) -shared'
7549 LDCXXSHARED
='$(CXX) -G'
7552 if test "$GCC" = "yes" ; then
7553 LDSHARED
='$(CC) -shared'
7554 LDCXXSHARED
='$(CXX) -shared'
7558 OSF
*) LDSHARED
="ld -shared -expect_unresolved \"*\"";;
7560 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
7561 LDCXXSHARED
='$(CXX) $(LDFLAGS) -bundle'
7562 if test "$enable_framework" ; then
7563 # Link against the framework. All externals should be defined.
7564 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
7565 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
7566 LDCXXSHARED
="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
7568 # No framework. Ignore undefined symbols, assuming they come from Python
7569 LDSHARED
="$LDSHARED -undefined suppress"
7570 LDCXXSHARED
="$LDCXXSHARED -undefined suppress"
7572 Darwin
/1.4*|Darwin
/5.
*|Darwin
/6.
*)
7573 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
7574 LDCXXSHARED
='$(CXX) $(LDFLAGS) -bundle'
7575 if test "$enable_framework" ; then
7576 # Link against the framework. All externals should be defined.
7577 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
7578 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
7579 LDCXXSHARED
="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
7581 # No framework, use the Python app as bundle-loader
7582 BLDSHARED
="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
7583 LDSHARED
="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
7584 LDCXXSHARED
="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
7587 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
7588 # This allows an extension to be used in any Python
7590 if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2
7592 if test "${enable_universalsdk}"; then
7593 LDFLAGS
="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
7595 LDSHARED
='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
7596 LDCXXSHARED
='$(CXX) $(LDFLAGS) -bundle -undefined dynamic_lookup'
7597 BLDSHARED
="$LDSHARED"
7599 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
7600 LDCXXSHARED
='$(CXX) $(LDFLAGS) -bundle'
7601 if test "$enable_framework" ; then
7602 # Link against the framework. All externals should be defined.
7603 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
7604 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
7605 LDCXXSHARED
="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
7607 # No framework, use the Python app as bundle-loader
7608 BLDSHARED
="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
7609 LDSHARED
="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
7610 LDCXXSHARED
="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
7615 LDSHARED
='$(CC) -shared'
7616 LDCXXSHARED
='$(CXX) -shared';;
7618 LDSHARED
="gcc -shared"
7619 LDCXXSHARED
="g++ -shared";;
7621 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
7623 LDSHARED
='$(CC) -shared ${LDFLAGS}'
7624 LDCXXSHARED
='$(CXX) -shared ${LDFLAGS}'
7626 LDSHARED
="ld -Bshareable ${LDFLAGS}"
7629 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
7631 LDSHARED
='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
7632 LDCXXSHARED
='$(CXX) -shared $(CCSHARED) ${LDFLAGS}'
7635 [01].
* |
2.
[0-7] |
2.
[0-7].
*)
7636 LDSHARED
="ld -Bshareable ${LDFLAGS}"
7639 LDSHARED
='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
7640 LDCXXSHARED
='$(CXX) -shared $(CCSHARED) ${LDFLAGS}'
7645 LDSHARED
="cc -shared ${LDFLAGS}"
7646 LDCXXSHARED
="c++ -shared ${LDFLAGS}";;
7647 OpenUNIX
*|UnixWare
*)
7648 if test "$GCC" = "yes" ; then
7649 LDSHARED
='$(CC) -shared'
7650 LDCXXSHARED
='$(CXX) -shared'
7653 LDCXXSHARED
='$(CXX) -G'
7656 LDSHARED
='$(CC) -Wl,-G,-Bexport'
7657 LDCXXSHARED
='$(CXX) -Wl,-G,-Bexport';;
7659 LDSHARED
="gcc -shared -Wl,--enable-auto-image-base"
7660 LDCXXSHARED
="g++ -shared -Wl,--enable-auto-image-base";;
7662 LDSHARED
="gcc -shared"
7663 LDCXXSHARED
="g++ -shared";;
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDSHARED" >&5
7668 $as_echo "$LDSHARED" >&6; }
7669 LDCXXSHARED
=${LDCXXSHARED-$LDSHARED}
7670 BLDSHARED
=${BLDSHARED-$LDSHARED}
7671 # CCSHARED are the C *flags* used to create objects to go into a shared
7672 # library (module) -- this is only needed for a few systems
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CCSHARED" >&5
7674 $as_echo_n "checking CCSHARED... " >&6; }
7675 if test -z "$CCSHARED"
7677 case $ac_sys_system/$ac_sys_release in
7678 SunOS
*) if test "$GCC" = yes;
7679 then CCSHARED
="-fPIC";
7680 elif test `uname -p` = sparc
;
7681 then CCSHARED
="-xcode=pic32";
7682 else CCSHARED
="-Kpic";
7684 hp
*|HP
*) if test "$GCC" = yes;
7685 then CCSHARED
="-fPIC";
7688 Linux
*|GNU
*) CCSHARED
="-fPIC";;
7689 BSD
/OS
*/4*) CCSHARED
="-fpic";;
7690 FreeBSD
*|NetBSD
*|OpenBSD
*|DragonFly
*) CCSHARED
="-fPIC";;
7691 OpenUNIX
*|UnixWare
*)
7692 if test "$GCC" = "yes"
7693 then CCSHARED
="-fPIC"
7694 else CCSHARED
="-KPIC"
7697 if test "$GCC" = "yes"
7698 then CCSHARED
="-fPIC"
7699 else CCSHARED
="-Kpic -belf"
7701 IRIX
*/6*) case $CC in
7702 *gcc
*) CCSHARED
="-shared";;
7705 atheos
*) CCSHARED
="-fPIC";;
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCSHARED" >&5
7709 $as_echo "$CCSHARED" >&6; }
7710 # LINKFORSHARED are the flags passed to the $(CC) command that links
7711 # the python executable -- this is only needed for a few systems
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKFORSHARED" >&5
7713 $as_echo_n "checking LINKFORSHARED... " >&6; }
7714 if test -z "$LINKFORSHARED"
7716 case $ac_sys_system/$ac_sys_release in
7717 AIX
*) LINKFORSHARED
='-Wl,-bE:Modules/python.exp -lld';;
7719 LINKFORSHARED
="-Wl,-E -Wl,+s";;
7720 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
7721 BSD
/OS
/4*) LINKFORSHARED
="-Xlinker -export-dynamic";;
7722 Linux
*|GNU
*) LINKFORSHARED
="-Xlinker -export-dynamic";;
7723 # -u libsys_s pulls in all symbols in libsys
7725 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
7727 # not used by the core itself but which needs to be in the core so
7728 # that dynamically loaded extension modules have access to it.
7729 # -prebind is no longer used, because it actually seems to give a
7730 # slowdown in stead of a speedup, maybe due to the large number of
7731 # dynamic loads Python does.
7733 LINKFORSHARED
="$extra_undefs"
7734 if test "$enable_framework"
7736 LINKFORSHARED
="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
7738 LINKFORSHARED
="$LINKFORSHARED";;
7739 OpenUNIX
*|UnixWare
*) LINKFORSHARED
="-Wl,-Bexport";;
7740 SCO_SV
*) LINKFORSHARED
="-Wl,-Bexport";;
7741 ReliantUNIX
*) LINKFORSHARED
="-W1 -Blargedynsym";;
7742 FreeBSD
*|NetBSD
*|OpenBSD
*|DragonFly
*)
7743 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
7745 LINKFORSHARED
="-Wl,--export-dynamic"
7747 SunOS
/5*) case $CC in
7749 if $CC -Xlinker --help 2>&1 |
grep export-dynamic
>/dev
/null
7751 LINKFORSHARED
="-Xlinker --export-dynamic"
7755 if test $enable_shared = "no"
7757 LINKFORSHARED
='-Wl,--out-implib=$(LDLIBRARY)'
7760 # -Wl,-E causes the symbols to be added to the dynamic
7761 # symbol table so that they can be found when a module
7762 # is loaded. -N 2048K causes the stack size to be set
7763 # to 2048 kilobytes so that the stack doesn't overflow
7764 # when running test_compile.py.
7765 LINKFORSHARED
='-Wl,-E -N 2048K';;
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKFORSHARED" >&5
7769 $as_echo "$LINKFORSHARED" >&6; }
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGSFORSHARED" >&5
7774 $as_echo_n "checking CFLAGSFORSHARED... " >&6; }
7775 if test ! "$LIBRARY" = "$LDLIBRARY"
7777 case $ac_sys_system in
7779 # Cygwin needs CCSHARED when building extension DLLs
7780 # but not when building the interpreter DLL.
7781 CFLAGSFORSHARED
='';;
7783 CFLAGSFORSHARED
='$(CCSHARED)'
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLAGSFORSHARED" >&5
7787 $as_echo "$CFLAGSFORSHARED" >&6; }
7789 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
7790 # library (with --enable-shared).
7791 # For platforms on which shared libraries are not allowed to have unresolved
7792 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
7793 # if it is not required, since it creates a dependency of the shared library
7794 # to LIBS. This, in turn, means that applications linking the shared libpython
7795 # don't need to link LIBS explicitly. The default should be only changed
7796 # on systems where this approach causes problems.
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SHLIBS" >&5
7799 $as_echo_n "checking SHLIBS... " >&6; }
7800 case "$ac_sys_system" in
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIBS" >&5
7805 $as_echo "$SHLIBS" >&6; }
7808 # checks for libraries
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
7810 $as_echo_n "checking for dlopen in -ldl... " >&6; }
7811 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
7812 $as_echo_n "(cached) " >&6
7814 ac_check_lib_save_LIBS
=$LIBS
7816 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7817 /* end confdefs.h. */
7819 /* Override any GCC internal prototype to avoid an error.
7820 Use char because int might match the return type of a GCC
7821 builtin and then its argument prototype would still apply. */
7834 if ac_fn_c_try_link
"$LINENO"; then :
7835 ac_cv_lib_dl_dlopen
=yes
7837 ac_cv_lib_dl_dlopen
=no
7839 rm -f core conftest.err conftest.
$ac_objext \
7840 conftest
$ac_exeext conftest.
$ac_ext
7841 LIBS
=$ac_check_lib_save_LIBS
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
7844 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
7845 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
7846 cat >>confdefs.h
<<_ACEOF
7847 #define HAVE_LIBDL 1
7853 # Dynamic linking for SunOS/Solaris and SYSV
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
7855 $as_echo_n "checking for shl_load in -ldld... " >&6; }
7856 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
7857 $as_echo_n "(cached) " >&6
7859 ac_check_lib_save_LIBS
=$LIBS
7861 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7862 /* end confdefs.h. */
7864 /* Override any GCC internal prototype to avoid an error.
7865 Use char because int might match the return type of a GCC
7866 builtin and then its argument prototype would still apply. */
7879 if ac_fn_c_try_link
"$LINENO"; then :
7880 ac_cv_lib_dld_shl_load
=yes
7882 ac_cv_lib_dld_shl_load
=no
7884 rm -f core conftest.err conftest.
$ac_objext \
7885 conftest
$ac_exeext conftest.
$ac_ext
7886 LIBS
=$ac_check_lib_save_LIBS
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
7889 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
7890 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then :
7891 cat >>confdefs.h
<<_ACEOF
7892 #define HAVE_LIBDLD 1
7898 # Dynamic linking for HP-UX
7900 # only check for sem_init if thread support is requested
7901 if test "$with_threads" = "yes" -o -z "$with_threads"; then
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
7903 $as_echo_n "checking for library containing sem_init... " >&6; }
7904 if test "${ac_cv_search_sem_init+set}" = set; then :
7905 $as_echo_n "(cached) " >&6
7907 ac_func_search_save_LIBS
=$LIBS
7908 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7909 /* end confdefs.h. */
7911 /* Override any GCC internal prototype to avoid an error.
7912 Use char because int might match the return type of a GCC
7913 builtin and then its argument prototype would still apply. */
7926 for ac_lib
in '' pthread rt posix4
; do
7927 if test -z "$ac_lib"; then
7928 ac_res
="none required"
7931 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7933 if ac_fn_c_try_link
"$LINENO"; then :
7934 ac_cv_search_sem_init
=$ac_res
7936 rm -f core conftest.err conftest.
$ac_objext \
7938 if test "${ac_cv_search_sem_init+set}" = set; then :
7942 if test "${ac_cv_search_sem_init+set}" = set; then :
7945 ac_cv_search_sem_init
=no
7948 LIBS
=$ac_func_search_save_LIBS
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5
7951 $as_echo "$ac_cv_search_sem_init" >&6; }
7952 ac_res
=$ac_cv_search_sem_init
7953 if test "$ac_res" != no
; then :
7954 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7957 # 'Real Time' functions on Solaris
7958 # posix4 on Solaris 2.6
7959 # pthread (first!) on Linux
7962 # check if we need libintl for locale functions
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for textdomain in -lintl" >&5
7964 $as_echo_n "checking for textdomain in -lintl... " >&6; }
7965 if test "${ac_cv_lib_intl_textdomain+set}" = set; then :
7966 $as_echo_n "(cached) " >&6
7968 ac_check_lib_save_LIBS
=$LIBS
7970 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7971 /* end confdefs.h. */
7973 /* Override any GCC internal prototype to avoid an error.
7974 Use char because int might match the return type of a GCC
7975 builtin and then its argument prototype would still apply. */
7983 return textdomain ();
7988 if ac_fn_c_try_link
"$LINENO"; then :
7989 ac_cv_lib_intl_textdomain
=yes
7991 ac_cv_lib_intl_textdomain
=no
7993 rm -f core conftest.err conftest.
$ac_objext \
7994 conftest
$ac_exeext conftest.
$ac_ext
7995 LIBS
=$ac_check_lib_save_LIBS
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_textdomain" >&5
7998 $as_echo "$ac_cv_lib_intl_textdomain" >&6; }
7999 if test "x$ac_cv_lib_intl_textdomain" = x
""yes; then :
8001 $as_echo "#define WITH_LIBINTL 1" >>confdefs.h
8006 # checks for system dependent C++ extensions support
8007 case "$ac_sys_system" in
8008 AIX
*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for genuine AIX C++ extensions support" >&5
8009 $as_echo_n "checking for genuine AIX C++ extensions support... " >&6; }
8010 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8011 /* end confdefs.h. */
8013 #include "/usr/lpp/xlC/include/load.h"
8017 loadAndInit("", 0, "")
8023 if ac_fn_c_try_link
"$LINENO"; then :
8026 $as_echo "#define AIX_GENUINE_CPLUSPLUS 1" >>confdefs.h
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8029 $as_echo "yes" >&6; }
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8034 $as_echo "no" >&6; }
8037 rm -f core conftest.err conftest.
$ac_objext \
8038 conftest
$ac_exeext conftest.
$ac_ext;;
8042 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
8043 # BeOS' sockets are stashed in libnet.
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_open in -lnsl" >&5
8045 $as_echo_n "checking for t_open in -lnsl... " >&6; }
8046 if test "${ac_cv_lib_nsl_t_open+set}" = set; then :
8047 $as_echo_n "(cached) " >&6
8049 ac_check_lib_save_LIBS
=$LIBS
8051 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8052 /* end confdefs.h. */
8054 /* Override any GCC internal prototype to avoid an error.
8055 Use char because int might match the return type of a GCC
8056 builtin and then its argument prototype would still apply. */
8069 if ac_fn_c_try_link
"$LINENO"; then :
8070 ac_cv_lib_nsl_t_open
=yes
8072 ac_cv_lib_nsl_t_open
=no
8074 rm -f core conftest.err conftest.
$ac_objext \
8075 conftest
$ac_exeext conftest.
$ac_ext
8076 LIBS
=$ac_check_lib_save_LIBS
8078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_t_open" >&5
8079 $as_echo "$ac_cv_lib_nsl_t_open" >&6; }
8080 if test "x$ac_cv_lib_nsl_t_open" = x
""yes; then :
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
8085 $as_echo_n "checking for socket in -lsocket... " >&6; }
8086 if test "${ac_cv_lib_socket_socket+set}" = set; then :
8087 $as_echo_n "(cached) " >&6
8089 ac_check_lib_save_LIBS
=$LIBS
8090 LIBS
="-lsocket $LIBS $LIBS"
8091 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8092 /* end confdefs.h. */
8094 /* Override any GCC internal prototype to avoid an error.
8095 Use char because int might match the return type of a GCC
8096 builtin and then its argument prototype would still apply. */
8109 if ac_fn_c_try_link
"$LINENO"; then :
8110 ac_cv_lib_socket_socket
=yes
8112 ac_cv_lib_socket_socket
=no
8114 rm -f core conftest.err conftest.
$ac_objext \
8115 conftest
$ac_exeext conftest.
$ac_ext
8116 LIBS
=$ac_check_lib_save_LIBS
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
8119 $as_echo "$ac_cv_lib_socket_socket" >&6; }
8120 if test "x$ac_cv_lib_socket_socket" = x
""yes; then :
8121 LIBS
="-lsocket $LIBS"
8125 case "$ac_sys_system" in
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnet" >&5
8128 $as_echo_n "checking for socket in -lnet... " >&6; }
8129 if test "${ac_cv_lib_net_socket+set}" = set; then :
8130 $as_echo_n "(cached) " >&6
8132 ac_check_lib_save_LIBS
=$LIBS
8133 LIBS
="-lnet $LIBS $LIBS"
8134 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8135 /* end confdefs.h. */
8137 /* Override any GCC internal prototype to avoid an error.
8138 Use char because int might match the return type of a GCC
8139 builtin and then its argument prototype would still apply. */
8152 if ac_fn_c_try_link
"$LINENO"; then :
8153 ac_cv_lib_net_socket
=yes
8155 ac_cv_lib_net_socket
=no
8157 rm -f core conftest.err conftest.
$ac_objext \
8158 conftest
$ac_exeext conftest.
$ac_ext
8159 LIBS
=$ac_check_lib_save_LIBS
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_net_socket" >&5
8162 $as_echo "$ac_cv_lib_net_socket" >&6; }
8163 if test "x$ac_cv_lib_net_socket" = x
""yes; then :
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libs" >&5
8171 $as_echo_n "checking for --with-libs... " >&6; }
8173 # Check whether --with-libs was given.
8174 if test "${with_libs+set}" = set; then :
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
8177 $as_echo "$withval" >&6; }
8178 LIBS
="$withval $LIBS"
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8182 $as_echo "no" >&6; }
8186 if test -n "$ac_tool_prefix"; then
8187 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8188 set dummy
${ac_tool_prefix}pkg-config
; ac_word
=$2
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8190 $as_echo_n "checking for $ac_word... " >&6; }
8191 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8192 $as_echo_n "(cached) " >&6
8196 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8199 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8203 test -z "$as_dir" && as_dir
=.
8204 for ac_exec_ext
in '' $ac_executable_extensions; do
8205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8206 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8217 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8218 if test -n "$PKG_CONFIG"; then
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8220 $as_echo "$PKG_CONFIG" >&6; }
8222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8223 $as_echo "no" >&6; }
8228 if test -z "$ac_cv_path_PKG_CONFIG"; then
8229 ac_pt_PKG_CONFIG
=$PKG_CONFIG
8230 # Extract the first word of "pkg-config", so it can be a program name with args.
8231 set dummy pkg-config
; ac_word
=$2
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8233 $as_echo_n "checking for $ac_word... " >&6; }
8234 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
8235 $as_echo_n "(cached) " >&6
8237 case $ac_pt_PKG_CONFIG in
8239 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8242 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8246 test -z "$as_dir" && as_dir
=.
8247 for ac_exec_ext
in '' $ac_executable_extensions; do
8248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8249 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8260 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
8261 if test -n "$ac_pt_PKG_CONFIG"; then
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8263 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8266 $as_echo "no" >&6; }
8269 if test "x$ac_pt_PKG_CONFIG" = x
; then
8272 case $cross_compiling:$ac_tool_warned in
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8275 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8276 ac_tool_warned
=yes ;;
8278 PKG_CONFIG
=$ac_pt_PKG_CONFIG
8281 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
8285 # Check for use of the system expat library
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-expat" >&5
8287 $as_echo_n "checking for --with-system-expat... " >&6; }
8289 # Check whether --with-system_expat was given.
8290 if test "${with_system_expat+set}" = set; then :
8291 withval
=$with_system_expat;
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_expat" >&5
8296 $as_echo "$with_system_expat" >&6; }
8298 # Check for use of the system libffi library
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-ffi" >&5
8300 $as_echo_n "checking for --with-system-ffi... " >&6; }
8302 # Check whether --with-system_ffi was given.
8303 if test "${with_system_ffi+set}" = set; then :
8304 withval
=$with_system_ffi;
8308 if test "$with_system_ffi" = "yes" && test -n "$PKG_CONFIG"; then
8309 LIBFFI_INCLUDEDIR
="`"$PKG_CONFIG" libffi --cflags-only-I 2>/dev/null | sed -e 's/^-I//;s/ *$//'`"
8311 LIBFFI_INCLUDEDIR
=""
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_ffi" >&5
8316 $as_echo "$with_system_ffi" >&6; }
8318 # Check for --with-dbmliborder
8319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dbmliborder" >&5
8320 $as_echo_n "checking for --with-dbmliborder... " >&6; }
8322 # Check whether --with-dbmliborder was given.
8323 if test "${with_dbmliborder+set}" = set; then :
8324 withval
=$with_dbmliborder;
8325 if test x
$with_dbmliborder = xyes
8327 as_fn_error
"proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5
8329 for db
in `echo $with_dbmliborder | sed 's/:/ /g'`; do
8330 if test x
$db != xndbm
&& test x
$db != xgdbm
&& test x
$db != xbdb
8332 as_fn_error
"proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_dbmliborder" >&5
8339 $as_echo "$with_dbmliborder" >&6; }
8341 # Determine if signalmodule should be used.
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-signal-module" >&5
8345 $as_echo_n "checking for --with-signal-module... " >&6; }
8347 # Check whether --with-signal-module was given.
8348 if test "${with_signal_module+set}" = set; then :
8349 withval
=$with_signal_module;
8353 if test -z "$with_signal_module"
8354 then with_signal_module
="yes"
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_signal_module" >&5
8357 $as_echo "$with_signal_module" >&6; }
8359 if test "${with_signal_module}" = "yes"; then
8360 USE_SIGNAL_MODULE
=""
8363 USE_SIGNAL_MODULE
="#"
8364 SIGNAL_OBJS
="Parser/intrcheck.o Python/sigcheck.o"
8367 # This is used to generate Setup.config
8369 USE_THREAD_MODULE
=""
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dec-threads" >&5
8372 $as_echo_n "checking for --with-dec-threads... " >&6; }
8375 # Check whether --with-dec-threads was given.
8376 if test "${with_dec_threads+set}" = set; then :
8377 withval
=$with_dec_threads;
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
8379 $as_echo "$withval" >&6; }
8381 if test "${with_thread+set}" != set; then
8382 with_thread
="$withval";
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8386 $as_echo "no" >&6; }
8390 # Templates for things AC_DEFINEd more than once.
8391 # For a single AC_DEFINE, no template is needed.
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-threads" >&5
8397 $as_echo_n "checking for --with-threads... " >&6; }
8399 # Check whether --with-threads was given.
8400 if test "${with_threads+set}" = set; then :
8401 withval
=$with_threads;
8405 # --with-thread is deprecated, but check for it anyway
8407 # Check whether --with-thread was given.
8408 if test "${with_thread+set}" = set; then :
8409 withval
=$with_thread; with_threads
=$with_thread
8413 if test -z "$with_threads"
8414 then with_threads
="yes"
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_threads" >&5
8417 $as_echo "$with_threads" >&6; }
8420 if test "$with_threads" = "no"
8422 USE_THREAD_MODULE
="#"
8423 elif test "$ac_cv_pthread_is_default" = yes
8425 $as_echo "#define WITH_THREAD 1" >>confdefs.h
8427 # Defining _REENTRANT on system with POSIX threads should not hurt.
8428 $as_echo "#define _REENTRANT 1" >>confdefs.h
8431 THREADOBJ
="Python/thread.o"
8432 elif test "$ac_cv_kpthread" = "yes"
8435 if test "$ac_cv_cxx_thread" = "yes"; then
8436 CXX
="$CXX -Kpthread"
8438 $as_echo "#define WITH_THREAD 1" >>confdefs.h
8441 THREADOBJ
="Python/thread.o"
8442 elif test "$ac_cv_kthread" = "yes"
8445 if test "$ac_cv_cxx_thread" = "yes"; then
8448 $as_echo "#define WITH_THREAD 1" >>confdefs.h
8451 THREADOBJ
="Python/thread.o"
8452 elif test "$ac_cv_pthread" = "yes"
8455 if test "$ac_cv_cxx_thread" = "yes"; then
8458 $as_echo "#define WITH_THREAD 1" >>confdefs.h
8461 THREADOBJ
="Python/thread.o"
8463 if test ! -z "$with_threads" -a -d "$with_threads"
8464 then LDFLAGS
="$LDFLAGS -L$with_threads"
8466 if test ! -z "$withval" -a -d "$withval"
8467 then LDFLAGS
="$LDFLAGS -L$withval"
8470 # According to the POSIX spec, a pthreads implementation must
8471 # define _POSIX_THREADS in unistd.h. Some apparently don't
8472 # (e.g. gnu pth with pthread emulation)
8473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _POSIX_THREADS in unistd.h" >&5
8474 $as_echo_n "checking for _POSIX_THREADS in unistd.h... " >&6; }
8475 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8476 /* end confdefs.h. */
8479 #ifdef _POSIX_THREADS
8484 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8485 $EGREP "yes" >/dev
/null
2>&1; then :
8486 unistd_defines_pthreads
=yes
8488 unistd_defines_pthreads
=no
8492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unistd_defines_pthreads" >&5
8493 $as_echo "$unistd_defines_pthreads" >&6; }
8495 $as_echo "#define _REENTRANT 1" >>confdefs.h
8497 ac_fn_c_check_header_mongrel
"$LINENO" "cthreads.h" "ac_cv_header_cthreads_h" "$ac_includes_default"
8498 if test "x$ac_cv_header_cthreads_h" = x
""yes; then :
8499 $as_echo "#define WITH_THREAD 1" >>confdefs.h
8501 $as_echo "#define C_THREADS 1" >>confdefs.h
8504 $as_echo "#define HURD_C_THREADS 1" >>confdefs.h
8506 LIBS
="$LIBS -lthreads"
8507 THREADOBJ
="Python/thread.o"
8510 ac_fn_c_check_header_mongrel
"$LINENO" "mach/cthreads.h" "ac_cv_header_mach_cthreads_h" "$ac_includes_default"
8511 if test "x$ac_cv_header_mach_cthreads_h" = x
""yes; then :
8512 $as_echo "#define WITH_THREAD 1" >>confdefs.h
8514 $as_echo "#define C_THREADS 1" >>confdefs.h
8517 $as_echo "#define MACH_C_THREADS 1" >>confdefs.h
8519 THREADOBJ
="Python/thread.o"
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pth" >&5
8523 $as_echo_n "checking for --with-pth... " >&6; }
8525 # Check whether --with-pth was given.
8526 if test "${with_pth+set}" = set; then :
8527 withval
=$with_pth; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
8528 $as_echo "$withval" >&6; }
8529 $as_echo "#define WITH_THREAD 1" >>confdefs.h
8532 $as_echo "#define HAVE_PTH 1" >>confdefs.h
8535 THREADOBJ
="Python/thread.o"
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8538 $as_echo "no" >&6; }
8540 # Just looking for pthread_create in libpthread is not enough:
8541 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
8542 # So we really have to include pthread.h, and then link.
8544 LIBS
="$LIBS -lpthread"
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
8546 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
8547 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8548 /* end confdefs.h. */
8549 #include <pthread.h>
8551 void * start_routine (void *arg) { exit (0); }
8556 pthread_create (NULL, NULL, start_routine, NULL)
8561 if ac_fn_c_try_link
"$LINENO"; then :
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8564 $as_echo "yes" >&6; }
8565 $as_echo "#define WITH_THREAD 1" >>confdefs.h
8568 THREADOBJ
="Python/thread.o"
8572 ac_fn_c_check_func
"$LINENO" "pthread_detach" "ac_cv_func_pthread_detach"
8573 if test "x$ac_cv_func_pthread_detach" = x
""yes; then :
8574 $as_echo "#define WITH_THREAD 1" >>confdefs.h
8577 THREADOBJ
="Python/thread.o"
8580 ac_fn_c_check_header_mongrel
"$LINENO" "atheos/threads.h" "ac_cv_header_atheos_threads_h" "$ac_includes_default"
8581 if test "x$ac_cv_header_atheos_threads_h" = x
""yes; then :
8582 $as_echo "#define WITH_THREAD 1" >>confdefs.h
8585 $as_echo "#define ATHEOS_THREADS 1" >>confdefs.h
8587 THREADOBJ
="Python/thread.o"
8590 ac_fn_c_check_header_mongrel
"$LINENO" "kernel/OS.h" "ac_cv_header_kernel_OS_h" "$ac_includes_default"
8591 if test "x$ac_cv_header_kernel_OS_h" = x
""yes; then :
8592 $as_echo "#define WITH_THREAD 1" >>confdefs.h
8595 $as_echo "#define BEOS_THREADS 1" >>confdefs.h
8597 THREADOBJ
="Python/thread.o"
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
8601 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
8602 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then :
8603 $as_echo_n "(cached) " >&6
8605 ac_check_lib_save_LIBS
=$LIBS
8606 LIBS
="-lpthreads $LIBS"
8607 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8608 /* end confdefs.h. */
8610 /* Override any GCC internal prototype to avoid an error.
8611 Use char because int might match the return type of a GCC
8612 builtin and then its argument prototype would still apply. */
8616 char pthread_create ();
8620 return pthread_create ();
8625 if ac_fn_c_try_link
"$LINENO"; then :
8626 ac_cv_lib_pthreads_pthread_create
=yes
8628 ac_cv_lib_pthreads_pthread_create
=no
8630 rm -f core conftest.err conftest.
$ac_objext \
8631 conftest
$ac_exeext conftest.
$ac_ext
8632 LIBS
=$ac_check_lib_save_LIBS
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
8635 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
8636 if test "x$ac_cv_lib_pthreads_pthread_create" = x
""yes; then :
8637 $as_echo "#define WITH_THREAD 1" >>confdefs.h
8640 LIBS
="$LIBS -lpthreads"
8641 THREADOBJ
="Python/thread.o"
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
8645 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
8646 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then :
8647 $as_echo_n "(cached) " >&6
8649 ac_check_lib_save_LIBS
=$LIBS
8651 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8652 /* end confdefs.h. */
8654 /* Override any GCC internal prototype to avoid an error.
8655 Use char because int might match the return type of a GCC
8656 builtin and then its argument prototype would still apply. */
8660 char pthread_create ();
8664 return pthread_create ();
8669 if ac_fn_c_try_link
"$LINENO"; then :
8670 ac_cv_lib_c_r_pthread_create
=yes
8672 ac_cv_lib_c_r_pthread_create
=no
8674 rm -f core conftest.err conftest.
$ac_objext \
8675 conftest
$ac_exeext conftest.
$ac_ext
8676 LIBS
=$ac_check_lib_save_LIBS
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
8679 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
8680 if test "x$ac_cv_lib_c_r_pthread_create" = x
""yes; then :
8681 $as_echo "#define WITH_THREAD 1" >>confdefs.h
8685 THREADOBJ
="Python/thread.o"
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __pthread_create_system in -lpthread" >&5
8689 $as_echo_n "checking for __pthread_create_system in -lpthread... " >&6; }
8690 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then :
8691 $as_echo_n "(cached) " >&6
8693 ac_check_lib_save_LIBS
=$LIBS
8694 LIBS
="-lpthread $LIBS"
8695 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8696 /* end confdefs.h. */
8698 /* Override any GCC internal prototype to avoid an error.
8699 Use char because int might match the return type of a GCC
8700 builtin and then its argument prototype would still apply. */
8704 char __pthread_create_system ();
8708 return __pthread_create_system ();
8713 if ac_fn_c_try_link
"$LINENO"; then :
8714 ac_cv_lib_pthread___pthread_create_system
=yes
8716 ac_cv_lib_pthread___pthread_create_system
=no
8718 rm -f core conftest.err conftest.
$ac_objext \
8719 conftest
$ac_exeext conftest.
$ac_ext
8720 LIBS
=$ac_check_lib_save_LIBS
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_create_system" >&5
8723 $as_echo "$ac_cv_lib_pthread___pthread_create_system" >&6; }
8724 if test "x$ac_cv_lib_pthread___pthread_create_system" = x
""yes; then :
8725 $as_echo "#define WITH_THREAD 1" >>confdefs.h
8728 LIBS
="$LIBS -lpthread"
8729 THREADOBJ
="Python/thread.o"
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lcma" >&5
8733 $as_echo_n "checking for pthread_create in -lcma... " >&6; }
8734 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then :
8735 $as_echo_n "(cached) " >&6
8737 ac_check_lib_save_LIBS
=$LIBS
8739 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8740 /* end confdefs.h. */
8742 /* Override any GCC internal prototype to avoid an error.
8743 Use char because int might match the return type of a GCC
8744 builtin and then its argument prototype would still apply. */
8748 char pthread_create ();
8752 return pthread_create ();
8757 if ac_fn_c_try_link
"$LINENO"; then :
8758 ac_cv_lib_cma_pthread_create
=yes
8760 ac_cv_lib_cma_pthread_create
=no
8762 rm -f core conftest.err conftest.
$ac_objext \
8763 conftest
$ac_exeext conftest.
$ac_ext
8764 LIBS
=$ac_check_lib_save_LIBS
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cma_pthread_create" >&5
8767 $as_echo "$ac_cv_lib_cma_pthread_create" >&6; }
8768 if test "x$ac_cv_lib_cma_pthread_create" = x
""yes; then :
8769 $as_echo "#define WITH_THREAD 1" >>confdefs.h
8773 THREADOBJ
="Python/thread.o"
8776 USE_THREAD_MODULE
="#"
8795 rm -f core conftest.err conftest.
$ac_objext \
8796 conftest
$ac_exeext conftest.
$ac_ext
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usconfig in -lmpc" >&5
8807 $as_echo_n "checking for usconfig in -lmpc... " >&6; }
8808 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then :
8809 $as_echo_n "(cached) " >&6
8811 ac_check_lib_save_LIBS
=$LIBS
8813 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8814 /* end confdefs.h. */
8816 /* Override any GCC internal prototype to avoid an error.
8817 Use char because int might match the return type of a GCC
8818 builtin and then its argument prototype would still apply. */
8831 if ac_fn_c_try_link
"$LINENO"; then :
8832 ac_cv_lib_mpc_usconfig
=yes
8834 ac_cv_lib_mpc_usconfig
=no
8836 rm -f core conftest.err conftest.
$ac_objext \
8837 conftest
$ac_exeext conftest.
$ac_ext
8838 LIBS
=$ac_check_lib_save_LIBS
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpc_usconfig" >&5
8841 $as_echo "$ac_cv_lib_mpc_usconfig" >&6; }
8842 if test "x$ac_cv_lib_mpc_usconfig" = x
""yes; then :
8843 $as_echo "#define WITH_THREAD 1" >>confdefs.h
8846 THREADOBJ
="Python/thread.o"
8847 USE_THREAD_MODULE
=""
8851 if test "$posix_threads" != "yes"; then
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5
8853 $as_echo_n "checking for thr_create in -lthread... " >&6; }
8854 if test "${ac_cv_lib_thread_thr_create+set}" = set; then :
8855 $as_echo_n "(cached) " >&6
8857 ac_check_lib_save_LIBS
=$LIBS
8858 LIBS
="-lthread $LIBS"
8859 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8860 /* end confdefs.h. */
8862 /* Override any GCC internal prototype to avoid an error.
8863 Use char because int might match the return type of a GCC
8864 builtin and then its argument prototype would still apply. */
8872 return thr_create ();
8877 if ac_fn_c_try_link
"$LINENO"; then :
8878 ac_cv_lib_thread_thr_create
=yes
8880 ac_cv_lib_thread_thr_create
=no
8882 rm -f core conftest.err conftest.
$ac_objext \
8883 conftest
$ac_exeext conftest.
$ac_ext
8884 LIBS
=$ac_check_lib_save_LIBS
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5
8887 $as_echo "$ac_cv_lib_thread_thr_create" >&6; }
8888 if test "x$ac_cv_lib_thread_thr_create" = x
""yes; then :
8889 $as_echo "#define WITH_THREAD 1" >>confdefs.h
8891 LIBS
="$LIBS -lthread"
8892 THREADOBJ
="Python/thread.o"
8893 USE_THREAD_MODULE
=""
8898 if test "$USE_THREAD_MODULE" != "#"
8900 # If the above checks didn't disable threads, (at least) OSF1
8901 # needs this '-threads' argument during linking.
8902 case $ac_sys_system in
8903 OSF1
) LDLAST
=-threads;;
8908 if test "$posix_threads" = "yes"; then
8909 if test "$unistd_defines_pthreads" = "no"; then
8911 $as_echo "#define _POSIX_THREADS 1" >>confdefs.h
8915 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
8916 case $ac_sys_system/$ac_sys_release in
8918 $as_echo "#define HAVE_PTHREAD_DESTRUCTOR 1" >>confdefs.h
8922 $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
8926 $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
8932 $as_echo_n "checking if PTHREAD_SCOPE_SYSTEM is supported... " >&6; }
8933 if test "${ac_cv_pthread_system_supported+set}" = set; then :
8934 $as_echo_n "(cached) " >&6
8936 if test "$cross_compiling" = yes; then :
8937 ac_cv_pthread_system_supported
=no
8939 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8940 /* end confdefs.h. */
8941 #include <pthread.h>
8942 void *foo(void *parm) {
8946 pthread_attr_t attr;
8948 if (pthread_attr_init(&attr)) exit(-1);
8949 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
8950 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
8954 if ac_fn_c_try_run
"$LINENO"; then :
8955 ac_cv_pthread_system_supported
=yes
8957 ac_cv_pthread_system_supported
=no
8959 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8960 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_system_supported" >&5
8967 $as_echo "$ac_cv_pthread_system_supported" >&6; }
8968 if test "$ac_cv_pthread_system_supported" = "yes"; then
8970 $as_echo "#define PTHREAD_SYSTEM_SCHED_SUPPORTED 1" >>confdefs.h
8973 for ac_func
in pthread_sigmask
8975 ac_fn_c_check_func
"$LINENO" "pthread_sigmask" "ac_cv_func_pthread_sigmask"
8976 if test "x$ac_cv_func_pthread_sigmask" = x
""yes; then :
8977 cat >>confdefs.h
<<_ACEOF
8978 #define HAVE_PTHREAD_SIGMASK 1
8980 case $ac_sys_system in
8983 $as_echo "#define HAVE_BROKEN_PTHREAD_SIGMASK 1" >>confdefs.h
8993 # Check for enable-ipv6
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-ipv6 is specified" >&5
8996 $as_echo_n "checking if --enable-ipv6 is specified... " >&6; }
8997 # Check whether --enable-ipv6 was given.
8998 if test "${enable_ipv6+set}" = set; then :
8999 enableval
=$enable_ipv6; case "$enableval" in
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9002 $as_echo "no" >&6; }
9005 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9006 $as_echo "yes" >&6; }
9007 $as_echo "#define ENABLE_IPV6 1" >>confdefs.h
9014 if test "$cross_compiling" = yes; then :
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9017 $as_echo "no" >&6; }
9021 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9022 /* end confdefs.h. */
9023 /* AF_INET6 available check */
9024 #include <sys/types.h>
9025 #include <sys/socket.h>
9028 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
9035 if ac_fn_c_try_run
"$LINENO"; then :
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9038 $as_echo "yes" >&6; }
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9044 $as_echo "no" >&6; }
9048 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9049 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9053 if test "$ipv6" = "yes"; then
9054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RFC2553 API is available" >&5
9055 $as_echo_n "checking if RFC2553 API is available... " >&6; }
9056 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9057 /* end confdefs.h. */
9059 #include <sys/types.h>
9060 #include <netinet/in.h>
9064 struct sockaddr_in6 x;
9071 if ac_fn_c_try_compile
"$LINENO"; then :
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9074 $as_echo "yes" >&6; }
9079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9080 $as_echo "no" >&6; }
9084 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9087 if test "$ipv6" = "yes"; then
9088 $as_echo "#define ENABLE_IPV6 1" >>confdefs.h
9099 if test "$ipv6" = "yes"; then
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ipv6 stack type" >&5
9101 $as_echo_n "checking ipv6 stack type... " >&6; }
9102 for i
in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta
;
9106 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9107 /* end confdefs.h. */
9109 #include <netinet/in.h>
9110 #ifdef IPV6_INRIA_VERSION
9114 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9115 $EGREP "yes" >/dev
/null
2>&1; then :
9122 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9123 /* end confdefs.h. */
9125 #include <netinet/in.h>
9130 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9131 $EGREP "yes" >/dev
/null
2>&1; then :
9134 ipv6libdir
=/usr
/local
/v
6/lib
9141 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9142 /* end confdefs.h. */
9144 #include <features.h>
9145 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
9149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9150 $EGREP "yes" >/dev
/null
2>&1; then :
9158 if test -d /usr
/inet6
; then
9161 ipv6libdir
=/usr
/inet
6/lib
9162 BASECFLAGS
="-I/usr/inet6/include $BASECFLAGS"
9166 if test -f /etc
/netconfig
; then
9167 if /usr
/xpg
4/bin
/grep -q tcp6
/etc
/netconfig
; then
9174 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9175 /* end confdefs.h. */
9177 #include <sys/param.h>
9178 #ifdef _TOSHIBA_INET6
9182 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9183 $EGREP "yes" >/dev
/null
2>&1; then :
9186 ipv6libdir
=/usr
/local
/v
6/lib
9192 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9193 /* end confdefs.h. */
9195 #include </usr/local/v6/include/sys/v6config.h>
9200 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9201 $EGREP "yes" >/dev
/null
2>&1; then :
9204 ipv6libdir
=/usr
/local
/v
6/lib
;
9205 BASECFLAGS
="-I/usr/local/v6/include $BASECFLAGS"
9211 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9212 /* end confdefs.h. */
9214 #include <sys/param.h>
9215 #ifdef _ZETA_MINAMI_INET6
9219 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9220 $EGREP "yes" >/dev
/null
2>&1; then :
9223 ipv6libdir
=/usr
/local
/v
6/lib
9229 if test "$ipv6type" != "unknown"; then
9233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6type" >&5
9234 $as_echo "$ipv6type" >&6; }
9237 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
9238 if test -d $ipv6libdir -a -f $ipv6libdir/lib
$ipv6lib.a
; then
9239 LIBS
="-L$ipv6libdir -l$ipv6lib $LIBS"
9240 echo "using lib$ipv6lib"
9242 if test $ipv6trylibc = "yes"; then
9245 echo 'Fatal: no $ipv6lib library found. cannot continue.'
9246 echo "You need to fetch lib$ipv6lib.a from appropriate"
9247 echo 'ipv6 kit and compile beforehand.'
9253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSX 10.5 SDK or later" >&5
9254 $as_echo_n "checking for OSX 10.5 SDK or later... " >&6; }
9255 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9256 /* end confdefs.h. */
9258 #include <Carbon/Carbon.h>
9268 if ac_fn_c_try_compile
"$LINENO"; then :
9271 $as_echo "#define HAVE_OSX105_SDK 1" >>confdefs.h
9273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9274 $as_echo "yes" >&6; }
9278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9279 $as_echo "no" >&6; }
9282 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9284 # Check for --with-doc-strings
9285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-doc-strings" >&5
9286 $as_echo_n "checking for --with-doc-strings... " >&6; }
9288 # Check whether --with-doc-strings was given.
9289 if test "${with_doc_strings+set}" = set; then :
9290 withval
=$with_doc_strings;
9294 if test -z "$with_doc_strings"
9295 then with_doc_strings
="yes"
9297 if test "$with_doc_strings" != "no"
9300 $as_echo "#define WITH_DOC_STRINGS 1" >>confdefs.h
9303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_doc_strings" >&5
9304 $as_echo "$with_doc_strings" >&6; }
9306 # Check for Python-specific malloc support
9307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tsc" >&5
9308 $as_echo_n "checking for --with-tsc... " >&6; }
9310 # Check whether --with-tsc was given.
9311 if test "${with_tsc+set}" = set; then :
9313 if test "$withval" != no
9316 $as_echo "#define WITH_TSC 1" >>confdefs.h
9318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9319 $as_echo "yes" >&6; }
9320 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9321 $as_echo "no" >&6; }
9324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9325 $as_echo "no" >&6; }
9329 # Check for Python-specific malloc support
9330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pymalloc" >&5
9331 $as_echo_n "checking for --with-pymalloc... " >&6; }
9333 # Check whether --with-pymalloc was given.
9334 if test "${with_pymalloc+set}" = set; then :
9335 withval
=$with_pymalloc;
9339 if test -z "$with_pymalloc"
9340 then with_pymalloc
="yes"
9342 if test "$with_pymalloc" != "no"
9345 $as_echo "#define WITH_PYMALLOC 1" >>confdefs.h
9348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pymalloc" >&5
9349 $as_echo "$with_pymalloc" >&6; }
9351 # Check for Valgrind support
9352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-valgrind" >&5
9353 $as_echo_n "checking for --with-valgrind... " >&6; }
9355 # Check whether --with-valgrind was given.
9356 if test "${with_valgrind+set}" = set; then :
9357 withval
=$with_valgrind;
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_valgrind" >&5
9363 $as_echo "$with_valgrind" >&6; }
9364 if test "$with_valgrind" != no
; then
9365 ac_fn_c_check_header_mongrel
"$LINENO" "valgrind/valgrind.h" "ac_cv_header_valgrind_valgrind_h" "$ac_includes_default"
9366 if test "x$ac_cv_header_valgrind_valgrind_h" = x
""yes; then :
9368 $as_echo "#define WITH_VALGRIND 1" >>confdefs.h
9371 as_fn_error
"Valgrind support requested but headers not available" "$LINENO" 5
9378 # Check for --with-wctype-functions
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-wctype-functions" >&5
9380 $as_echo_n "checking for --with-wctype-functions... " >&6; }
9382 # Check whether --with-wctype-functions was given.
9383 if test "${with_wctype_functions+set}" = set; then :
9384 withval
=$with_wctype_functions;
9385 if test "$withval" != no
9388 $as_echo "#define WANT_WCTYPE_FUNCTIONS 1" >>confdefs.h
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9391 $as_echo "yes" >&6; }
9392 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9393 $as_echo "no" >&6; }
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9397 $as_echo "no" >&6; }
9401 # -I${DLINCLDIR} is added to the compile rule for importdl.o
9405 # the dlopen() function means we might want to use dynload_shlib.o. some
9406 # platforms, such as AIX, have dlopen(), but don't want to use it.
9407 for ac_func
in dlopen
9409 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
9410 if test "x$ac_cv_func_dlopen" = x
""yes; then :
9411 cat >>confdefs.h
<<_ACEOF
9412 #define HAVE_DLOPEN 1
9419 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
9420 # loading of modules.
9422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DYNLOADFILE" >&5
9423 $as_echo_n "checking DYNLOADFILE... " >&6; }
9424 if test -z "$DYNLOADFILE"
9426 case $ac_sys_system/$ac_sys_release in
9427 AIX
*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
9428 if test "$ac_cv_func_dlopen" = yes
9429 then DYNLOADFILE
="dynload_shlib.o"
9430 else DYNLOADFILE
="dynload_aix.o"
9433 BeOS
*) DYNLOADFILE
="dynload_beos.o";;
9434 hp
*|HP
*) DYNLOADFILE
="dynload_hpux.o";;
9435 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
9436 Darwin
/[0156]\..
*) DYNLOADFILE
="dynload_next.o";;
9437 atheos
*) DYNLOADFILE
="dynload_atheos.o";;
9439 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
9440 # out any dynamic loading
9441 if test "$ac_cv_func_dlopen" = yes
9442 then DYNLOADFILE
="dynload_shlib.o"
9443 else DYNLOADFILE
="dynload_stub.o"
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DYNLOADFILE" >&5
9449 $as_echo "$DYNLOADFILE" >&6; }
9450 if test "$DYNLOADFILE" != "dynload_stub.o"
9453 $as_echo "#define HAVE_DYNAMIC_LOADING 1" >>confdefs.h
9457 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
9460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP_OBJS" >&5
9461 $as_echo_n "checking MACHDEP_OBJS... " >&6; }
9462 if test -z "$MACHDEP_OBJS"
9464 MACHDEP_OBJS
=$extra_machdep_objs
9466 MACHDEP_OBJS
="$MACHDEP_OBJS $extra_machdep_objs"
9468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: MACHDEP_OBJS" >&5
9469 $as_echo "MACHDEP_OBJS" >&6; }
9471 # checks for library functions
9472 for ac_func
in alarm setitimer getitimer bind_textdomain_codeset chown \
9473 clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \
9474 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
9475 getpriority getresuid getresgid getpwent getspnam getspent getsid getwd \
9476 initgroups
kill killpg lchmod lchown lstat
mkfifo mknod mktime \
9477 mremap nice pathconf pause plock poll pthread_init \
9478 putenv readlink realpath \
9479 select sem_open sem_timedwait sem_getvalue sem_unlink setegid seteuid \
9481 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
9482 setlocale setregid setreuid setresuid setresgid \
9483 setsid setpgid setpgrp setuid setvbuf snprintf \
9484 sigaction siginterrupt sigrelse strftime \
9485 sysconf tcgetpgrp tcsetpgrp tempnam timegm
times tmpfile tmpnam tmpnam_r \
9486 truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty
9488 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9489 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9490 eval as_val
=\$
$as_ac_var
9491 if test "x$as_val" = x
""yes; then :
9492 cat >>confdefs.h
<<_ACEOF
9493 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9500 # For some functions, having a definition is not sufficient, since
9501 # we want to take their address.
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chroot" >&5
9503 $as_echo_n "checking for chroot... " >&6; }
9504 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9505 /* end confdefs.h. */
9515 if ac_fn_c_try_compile
"$LINENO"; then :
9517 $as_echo "#define HAVE_CHROOT 1" >>confdefs.h
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9520 $as_echo "yes" >&6; }
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9523 $as_echo "no" >&6; }
9526 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for link" >&5
9528 $as_echo_n "checking for link... " >&6; }
9529 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9530 /* end confdefs.h. */
9540 if ac_fn_c_try_compile
"$LINENO"; then :
9542 $as_echo "#define HAVE_LINK 1" >>confdefs.h
9544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9545 $as_echo "yes" >&6; }
9547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9548 $as_echo "no" >&6; }
9551 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for symlink" >&5
9553 $as_echo_n "checking for symlink... " >&6; }
9554 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9555 /* end confdefs.h. */
9565 if ac_fn_c_try_compile
"$LINENO"; then :
9567 $as_echo "#define HAVE_SYMLINK 1" >>confdefs.h
9569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9570 $as_echo "yes" >&6; }
9572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9573 $as_echo "no" >&6; }
9576 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fchdir" >&5
9578 $as_echo_n "checking for fchdir... " >&6; }
9579 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9580 /* end confdefs.h. */
9590 if ac_fn_c_try_compile
"$LINENO"; then :
9592 $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h
9594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9595 $as_echo "yes" >&6; }
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9598 $as_echo "no" >&6; }
9601 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fsync" >&5
9603 $as_echo_n "checking for fsync... " >&6; }
9604 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9605 /* end confdefs.h. */
9615 if ac_fn_c_try_compile
"$LINENO"; then :
9617 $as_echo "#define HAVE_FSYNC 1" >>confdefs.h
9619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9620 $as_echo "yes" >&6; }
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9623 $as_echo "no" >&6; }
9626 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fdatasync" >&5
9628 $as_echo_n "checking for fdatasync... " >&6; }
9629 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9630 /* end confdefs.h. */
9640 if ac_fn_c_try_compile
"$LINENO"; then :
9642 $as_echo "#define HAVE_FDATASYNC 1" >>confdefs.h
9644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9645 $as_echo "yes" >&6; }
9647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9648 $as_echo "no" >&6; }
9651 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll" >&5
9653 $as_echo_n "checking for epoll... " >&6; }
9654 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9655 /* end confdefs.h. */
9656 #include <sys/epoll.h>
9660 void *x=epoll_create
9665 if ac_fn_c_try_compile
"$LINENO"; then :
9667 $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
9669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9670 $as_echo "yes" >&6; }
9672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9673 $as_echo "no" >&6; }
9676 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kqueue" >&5
9678 $as_echo_n "checking for kqueue... " >&6; }
9679 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9680 /* end confdefs.h. */
9682 #include <sys/types.h>
9683 #include <sys/event.h>
9693 if ac_fn_c_try_compile
"$LINENO"; then :
9695 $as_echo "#define HAVE_KQUEUE 1" >>confdefs.h
9697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9698 $as_echo "yes" >&6; }
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9701 $as_echo "no" >&6; }
9704 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9705 # On some systems (eg. FreeBSD 5), we would find a definition of the
9706 # functions ctermid_r, setgroups in the library, but no prototype
9707 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
9708 # address to avoid compiler warnings and potential miscompilations
9709 # because of the missing prototypes.
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctermid_r" >&5
9712 $as_echo_n "checking for ctermid_r... " >&6; }
9713 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9714 /* end confdefs.h. */
9726 if ac_fn_c_try_compile
"$LINENO"; then :
9728 $as_echo "#define HAVE_CTERMID_R 1" >>confdefs.h
9730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9731 $as_echo "yes" >&6; }
9733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9734 $as_echo "no" >&6; }
9737 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock" >&5
9740 $as_echo_n "checking for flock... " >&6; }
9741 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9742 /* end confdefs.h. */
9744 #include <sys/file.h>
9754 if ac_fn_c_try_compile
"$LINENO"; then :
9756 $as_echo "#define HAVE_FLOCK 1" >>confdefs.h
9758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9759 $as_echo "yes" >&6; }
9761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9762 $as_echo "no" >&6; }
9765 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize" >&5
9768 $as_echo_n "checking for getpagesize... " >&6; }
9769 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9770 /* end confdefs.h. */
9777 void* p = getpagesize
9782 if ac_fn_c_try_compile
"$LINENO"; then :
9784 $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
9786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9787 $as_echo "yes" >&6; }
9789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9790 $as_echo "no" >&6; }
9793 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9797 # Extract the first word of "$ac_prog", so it can be a program name with args.
9798 set dummy
$ac_prog; ac_word
=$2
9799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9800 $as_echo_n "checking for $ac_word... " >&6; }
9801 if test "${ac_cv_prog_TRUE+set}" = set; then :
9802 $as_echo_n "(cached) " >&6
9804 if test -n "$TRUE"; then
9805 ac_cv_prog_TRUE
="$TRUE" # Let the user override the test.
9807 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9811 test -z "$as_dir" && as_dir
=.
9812 for ac_exec_ext
in '' $ac_executable_extensions; do
9813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9814 ac_cv_prog_TRUE
="$ac_prog"
9815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9824 TRUE
=$ac_cv_prog_TRUE
9825 if test -n "$TRUE"; then
9826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUE" >&5
9827 $as_echo "$TRUE" >&6; }
9829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9830 $as_echo "no" >&6; }
9834 test -n "$TRUE" && break
9836 test -n "$TRUE" || TRUE
="/bin/true"
9839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lc" >&5
9840 $as_echo_n "checking for inet_aton in -lc... " >&6; }
9841 if test "${ac_cv_lib_c_inet_aton+set}" = set; then :
9842 $as_echo_n "(cached) " >&6
9844 ac_check_lib_save_LIBS
=$LIBS
9846 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9847 /* end confdefs.h. */
9849 /* Override any GCC internal prototype to avoid an error.
9850 Use char because int might match the return type of a GCC
9851 builtin and then its argument prototype would still apply. */
9859 return inet_aton ();
9864 if ac_fn_c_try_link
"$LINENO"; then :
9865 ac_cv_lib_c_inet_aton
=yes
9867 ac_cv_lib_c_inet_aton
=no
9869 rm -f core conftest.err conftest.
$ac_objext \
9870 conftest
$ac_exeext conftest.
$ac_ext
9871 LIBS
=$ac_check_lib_save_LIBS
9873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_inet_aton" >&5
9874 $as_echo "$ac_cv_lib_c_inet_aton" >&6; }
9875 if test "x$ac_cv_lib_c_inet_aton" = x
""yes; then :
9878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
9879 $as_echo_n "checking for inet_aton in -lresolv... " >&6; }
9880 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then :
9881 $as_echo_n "(cached) " >&6
9883 ac_check_lib_save_LIBS
=$LIBS
9884 LIBS
="-lresolv $LIBS"
9885 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9886 /* end confdefs.h. */
9888 /* Override any GCC internal prototype to avoid an error.
9889 Use char because int might match the return type of a GCC
9890 builtin and then its argument prototype would still apply. */
9898 return inet_aton ();
9903 if ac_fn_c_try_link
"$LINENO"; then :
9904 ac_cv_lib_resolv_inet_aton
=yes
9906 ac_cv_lib_resolv_inet_aton
=no
9908 rm -f core conftest.err conftest.
$ac_objext \
9909 conftest
$ac_exeext conftest.
$ac_ext
9910 LIBS
=$ac_check_lib_save_LIBS
9912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
9913 $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
9914 if test "x$ac_cv_lib_resolv_inet_aton" = x
""yes; then :
9915 cat >>confdefs.h
<<_ACEOF
9916 #define HAVE_LIBRESOLV 1
9919 LIBS
="-lresolv $LIBS"
9927 # On Tru64, chflags seems to be present, but calling it will
9929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chflags" >&5
9930 $as_echo_n "checking for chflags... " >&6; }
9931 if test "${ac_cv_have_chflags+set}" = set; then :
9932 $as_echo_n "(cached) " >&6
9934 if test "$cross_compiling" = yes; then :
9935 ac_cv_have_chflags
=cross
9937 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9938 /* end confdefs.h. */
9940 #include <sys/stat.h>
9942 int main(int argc, char*argv[])
9944 if(chflags(argv[0], 0) != 0)
9950 if ac_fn_c_try_run
"$LINENO"; then :
9951 ac_cv_have_chflags
=yes
9953 ac_cv_have_chflags
=no
9955 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9956 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_chflags" >&5
9962 $as_echo "$ac_cv_have_chflags" >&6; }
9963 if test "$ac_cv_have_chflags" = cross
; then
9964 ac_fn_c_check_func
"$LINENO" "chflags" "ac_cv_func_chflags"
9965 if test "x$ac_cv_func_chflags" = x
""yes; then :
9966 ac_cv_have_chflags
="yes"
9968 ac_cv_have_chflags
="no"
9972 if test "$ac_cv_have_chflags" = yes ; then
9974 $as_echo "#define HAVE_CHFLAGS 1" >>confdefs.h
9978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lchflags" >&5
9979 $as_echo_n "checking for lchflags... " >&6; }
9980 if test "${ac_cv_have_lchflags+set}" = set; then :
9981 $as_echo_n "(cached) " >&6
9983 if test "$cross_compiling" = yes; then :
9984 ac_cv_have_lchflags
=cross
9986 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9987 /* end confdefs.h. */
9989 #include <sys/stat.h>
9991 int main(int argc, char*argv[])
9993 if(lchflags(argv[0], 0) != 0)
9999 if ac_fn_c_try_run
"$LINENO"; then :
10000 ac_cv_have_lchflags
=yes
10002 ac_cv_have_lchflags
=no
10004 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10005 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_lchflags" >&5
10011 $as_echo "$ac_cv_have_lchflags" >&6; }
10012 if test "$ac_cv_have_lchflags" = cross
; then
10013 ac_fn_c_check_func
"$LINENO" "lchflags" "ac_cv_func_lchflags"
10014 if test "x$ac_cv_func_lchflags" = x
""yes; then :
10015 ac_cv_have_lchflags
="yes"
10017 ac_cv_have_lchflags
="no"
10021 if test "$ac_cv_have_lchflags" = yes ; then
10023 $as_echo "#define HAVE_LCHFLAGS 1" >>confdefs.h
10027 case $ac_sys_system/$ac_sys_release in
10029 _CUR_CFLAGS
="${CFLAGS}"
10030 _CUR_LDFLAGS
="${LDFLAGS}"
10031 CFLAGS
="${CFLAGS} -Wl,-search_paths_first"
10032 LDFLAGS
="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
10036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5
10037 $as_echo_n "checking for inflateCopy in -lz... " >&6; }
10038 if test "${ac_cv_lib_z_inflateCopy+set}" = set; then :
10039 $as_echo_n "(cached) " >&6
10041 ac_check_lib_save_LIBS
=$LIBS
10043 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10044 /* end confdefs.h. */
10046 /* Override any GCC internal prototype to avoid an error.
10047 Use char because int might match the return type of a GCC
10048 builtin and then its argument prototype would still apply. */
10052 char inflateCopy ();
10056 return inflateCopy ();
10061 if ac_fn_c_try_link
"$LINENO"; then :
10062 ac_cv_lib_z_inflateCopy
=yes
10064 ac_cv_lib_z_inflateCopy
=no
10066 rm -f core conftest.err conftest.
$ac_objext \
10067 conftest
$ac_exeext conftest.
$ac_ext
10068 LIBS
=$ac_check_lib_save_LIBS
10070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5
10071 $as_echo "$ac_cv_lib_z_inflateCopy" >&6; }
10072 if test "x$ac_cv_lib_z_inflateCopy" = x
""yes; then :
10074 $as_echo "#define HAVE_ZLIB_COPY 1" >>confdefs.h
10079 case $ac_sys_system/$ac_sys_release in
10081 CFLAGS
="${_CUR_CFLAGS}"
10082 LDFLAGS
="${_CUR_LDFLAGS}"
10086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hstrerror" >&5
10087 $as_echo_n "checking for hstrerror... " >&6; }
10088 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10089 /* end confdefs.h. */
10096 void* p = hstrerror; hstrerror(0)
10101 if ac_fn_c_try_link
"$LINENO"; then :
10103 $as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h
10105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10106 $as_echo "yes" >&6; }
10108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10109 $as_echo "no" >&6; }
10112 rm -f core conftest.err conftest.
$ac_objext \
10113 conftest
$ac_exeext conftest.
$ac_ext
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton" >&5
10116 $as_echo_n "checking for inet_aton... " >&6; }
10117 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10118 /* end confdefs.h. */
10120 #include <sys/types.h>
10121 #include <sys/socket.h>
10122 #include <netinet/in.h>
10123 #include <arpa/inet.h>
10128 void* p = inet_aton;inet_aton(0,0)
10133 if ac_fn_c_try_link
"$LINENO"; then :
10135 $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
10137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10138 $as_echo "yes" >&6; }
10140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10141 $as_echo "no" >&6; }
10144 rm -f core conftest.err conftest.
$ac_objext \
10145 conftest
$ac_exeext conftest.
$ac_ext
10147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_pton" >&5
10148 $as_echo_n "checking for inet_pton... " >&6; }
10149 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10150 /* end confdefs.h. */
10152 #include <sys/types.h>
10153 #include <sys/socket.h>
10154 #include <netinet/in.h>
10155 #include <arpa/inet.h>
10160 void* p = inet_pton
10165 if ac_fn_c_try_compile
"$LINENO"; then :
10167 $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
10169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10170 $as_echo "yes" >&6; }
10172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10173 $as_echo "no" >&6; }
10176 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10178 # On some systems, setgroups is in unistd.h, on others, in grp.h
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setgroups" >&5
10180 $as_echo_n "checking for setgroups... " >&6; }
10181 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10182 /* end confdefs.h. */
10184 #include <unistd.h>
10192 void* p = setgroups
10197 if ac_fn_c_try_compile
"$LINENO"; then :
10199 $as_echo "#define HAVE_SETGROUPS 1" >>confdefs.h
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10202 $as_echo "yes" >&6; }
10204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10205 $as_echo "no" >&6; }
10208 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10210 # check for openpty and forkpty
10212 for ac_func
in openpty
10214 ac_fn_c_check_func
"$LINENO" "openpty" "ac_cv_func_openpty"
10215 if test "x$ac_cv_func_openpty" = x
""yes; then :
10216 cat >>confdefs.h
<<_ACEOF
10217 #define HAVE_OPENPTY 1
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
10222 $as_echo_n "checking for openpty in -lutil... " >&6; }
10223 if test "${ac_cv_lib_util_openpty+set}" = set; then :
10224 $as_echo_n "(cached) " >&6
10226 ac_check_lib_save_LIBS
=$LIBS
10227 LIBS
="-lutil $LIBS"
10228 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10229 /* end confdefs.h. */
10231 /* Override any GCC internal prototype to avoid an error.
10232 Use char because int might match the return type of a GCC
10233 builtin and then its argument prototype would still apply. */
10246 if ac_fn_c_try_link
"$LINENO"; then :
10247 ac_cv_lib_util_openpty
=yes
10249 ac_cv_lib_util_openpty
=no
10251 rm -f core conftest.err conftest.
$ac_objext \
10252 conftest
$ac_exeext conftest.
$ac_ext
10253 LIBS
=$ac_check_lib_save_LIBS
10255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
10256 $as_echo "$ac_cv_lib_util_openpty" >&6; }
10257 if test "x$ac_cv_lib_util_openpty" = x
""yes; then :
10258 $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h
10259 LIBS
="$LIBS -lutil"
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lbsd" >&5
10262 $as_echo_n "checking for openpty in -lbsd... " >&6; }
10263 if test "${ac_cv_lib_bsd_openpty+set}" = set; then :
10264 $as_echo_n "(cached) " >&6
10266 ac_check_lib_save_LIBS
=$LIBS
10268 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10269 /* end confdefs.h. */
10271 /* Override any GCC internal prototype to avoid an error.
10272 Use char because int might match the return type of a GCC
10273 builtin and then its argument prototype would still apply. */
10286 if ac_fn_c_try_link
"$LINENO"; then :
10287 ac_cv_lib_bsd_openpty
=yes
10289 ac_cv_lib_bsd_openpty
=no
10291 rm -f core conftest.err conftest.
$ac_objext \
10292 conftest
$ac_exeext conftest.
$ac_ext
10293 LIBS
=$ac_check_lib_save_LIBS
10295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_openpty" >&5
10296 $as_echo "$ac_cv_lib_bsd_openpty" >&6; }
10297 if test "x$ac_cv_lib_bsd_openpty" = x
""yes; then :
10298 $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h
10309 for ac_func
in forkpty
10311 ac_fn_c_check_func
"$LINENO" "forkpty" "ac_cv_func_forkpty"
10312 if test "x$ac_cv_func_forkpty" = x
""yes; then :
10313 cat >>confdefs.h
<<_ACEOF
10314 #define HAVE_FORKPTY 1
10318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lutil" >&5
10319 $as_echo_n "checking for forkpty in -lutil... " >&6; }
10320 if test "${ac_cv_lib_util_forkpty+set}" = set; then :
10321 $as_echo_n "(cached) " >&6
10323 ac_check_lib_save_LIBS
=$LIBS
10324 LIBS
="-lutil $LIBS"
10325 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10326 /* end confdefs.h. */
10328 /* Override any GCC internal prototype to avoid an error.
10329 Use char because int might match the return type of a GCC
10330 builtin and then its argument prototype would still apply. */
10343 if ac_fn_c_try_link
"$LINENO"; then :
10344 ac_cv_lib_util_forkpty
=yes
10346 ac_cv_lib_util_forkpty
=no
10348 rm -f core conftest.err conftest.
$ac_objext \
10349 conftest
$ac_exeext conftest.
$ac_ext
10350 LIBS
=$ac_check_lib_save_LIBS
10352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_forkpty" >&5
10353 $as_echo "$ac_cv_lib_util_forkpty" >&6; }
10354 if test "x$ac_cv_lib_util_forkpty" = x
""yes; then :
10355 $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h
10356 LIBS
="$LIBS -lutil"
10358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lbsd" >&5
10359 $as_echo_n "checking for forkpty in -lbsd... " >&6; }
10360 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then :
10361 $as_echo_n "(cached) " >&6
10363 ac_check_lib_save_LIBS
=$LIBS
10365 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10366 /* end confdefs.h. */
10368 /* Override any GCC internal prototype to avoid an error.
10369 Use char because int might match the return type of a GCC
10370 builtin and then its argument prototype would still apply. */
10383 if ac_fn_c_try_link
"$LINENO"; then :
10384 ac_cv_lib_bsd_forkpty
=yes
10386 ac_cv_lib_bsd_forkpty
=no
10388 rm -f core conftest.err conftest.
$ac_objext \
10389 conftest
$ac_exeext conftest.
$ac_ext
10390 LIBS
=$ac_check_lib_save_LIBS
10392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_forkpty" >&5
10393 $as_echo "$ac_cv_lib_bsd_forkpty" >&6; }
10394 if test "x$ac_cv_lib_bsd_forkpty" = x
""yes; then :
10395 $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h
10408 for ac_func
in memmove
10410 ac_fn_c_check_func
"$LINENO" "memmove" "ac_cv_func_memmove"
10411 if test "x$ac_cv_func_memmove" = x
""yes; then :
10412 cat >>confdefs.h
<<_ACEOF
10413 #define HAVE_MEMMOVE 1
10420 # check for long file support functions
10421 for ac_func
in fseek64 fseeko fstatvfs ftell64 ftello statvfs
10423 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10424 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10425 eval as_val
=\$
$as_ac_var
10426 if test "x$as_val" = x
""yes; then :
10427 cat >>confdefs.h
<<_ACEOF
10428 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10435 for ac_func
in dup2 getcwd strdup
10437 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10438 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10439 eval as_val
=\$
$as_ac_var
10440 if test "x$as_val" = x
""yes; then :
10441 cat >>confdefs.h
<<_ACEOF
10442 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10446 case " $LIBOBJS " in
10447 *" $ac_func.$ac_objext "* ) ;;
10448 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
10456 for ac_func
in getpgrp
10458 ac_fn_c_check_func
"$LINENO" "getpgrp" "ac_cv_func_getpgrp"
10459 if test "x$ac_cv_func_getpgrp" = x
""yes; then :
10460 cat >>confdefs.h
<<_ACEOF
10461 #define HAVE_GETPGRP 1
10463 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10464 /* end confdefs.h. */
10465 #include <unistd.h>
10474 if ac_fn_c_try_compile
"$LINENO"; then :
10476 $as_echo "#define GETPGRP_HAVE_ARG 1" >>confdefs.h
10479 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10484 for ac_func
in setpgrp
10486 ac_fn_c_check_func
"$LINENO" "setpgrp" "ac_cv_func_setpgrp"
10487 if test "x$ac_cv_func_setpgrp" = x
""yes; then :
10488 cat >>confdefs.h
<<_ACEOF
10489 #define HAVE_SETPGRP 1
10491 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10492 /* end confdefs.h. */
10493 #include <unistd.h>
10502 if ac_fn_c_try_compile
"$LINENO"; then :
10504 $as_echo "#define SETPGRP_HAVE_ARG 1" >>confdefs.h
10507 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10512 for ac_func
in gettimeofday
10514 ac_fn_c_check_func
"$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
10515 if test "x$ac_cv_func_gettimeofday" = x
""yes; then :
10516 cat >>confdefs.h
<<_ACEOF
10517 #define HAVE_GETTIMEOFDAY 1
10519 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10520 /* end confdefs.h. */
10521 #include <sys/time.h>
10525 gettimeofday((struct timeval*)0,(struct timezone*)0);
10530 if ac_fn_c_try_compile
"$LINENO"; then :
10534 $as_echo "#define GETTIMEOFDAY_NO_TZ 1" >>confdefs.h
10538 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for major" >&5
10545 $as_echo_n "checking for major... " >&6; }
10546 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10547 /* end confdefs.h. */
10549 #if defined(MAJOR_IN_MKDEV)
10550 #include <sys/mkdev.h>
10551 #elif defined(MAJOR_IN_SYSMACROS)
10552 #include <sys/sysmacros.h>
10554 #include <sys/types.h>
10561 makedev(major(0),minor(0));
10567 if ac_fn_c_try_link
"$LINENO"; then :
10570 $as_echo "#define HAVE_DEVICE_MACROS 1" >>confdefs.h
10572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10573 $as_echo "yes" >&6; }
10577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10578 $as_echo "no" >&6; }
10581 rm -f core conftest.err conftest.
$ac_objext \
10582 conftest
$ac_exeext conftest.
$ac_ext
10584 # On OSF/1 V5.1, getaddrinfo is available, but a define
10585 # for [no]getaddrinfo in netdb.h.
10586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
10587 $as_echo_n "checking for getaddrinfo... " >&6; }
10588 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10589 /* end confdefs.h. */
10591 #include <sys/types.h>
10592 #include <sys/socket.h>
10599 getaddrinfo(NULL, NULL, NULL, NULL);
10604 if ac_fn_c_try_link
"$LINENO"; then :
10605 have_getaddrinfo
=yes
10607 have_getaddrinfo
=no
10609 rm -f core conftest.err conftest.
$ac_objext \
10610 conftest
$ac_exeext conftest.
$ac_ext
10611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getaddrinfo" >&5
10612 $as_echo "$have_getaddrinfo" >&6; }
10613 if test $have_getaddrinfo = yes
10615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking getaddrinfo bug" >&5
10616 $as_echo_n "checking getaddrinfo bug... " >&6; }
10617 if test "${ac_cv_buggy_getaddrinfo+set}" = set; then :
10618 $as_echo_n "(cached) " >&6
10620 if test "$cross_compiling" = yes; then :
10621 ac_cv_buggy_getaddrinfo
=yes
10623 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10624 /* end confdefs.h. */
10626 #include <sys/types.h>
10628 #include <string.h>
10629 #include <sys/socket.h>
10630 #include <netinet/in.h>
10634 int passive, gaierr, inet4 = 0, inet6 = 0;
10635 struct addrinfo hints, *ai, *aitop;
10636 char straddr[INET6_ADDRSTRLEN], strport[16];
10638 for (passive = 0; passive <= 1; passive++) {
10639 memset(&hints, 0, sizeof(hints));
10640 hints.ai_family = AF_UNSPEC;
10641 hints.ai_flags = passive ? AI_PASSIVE : 0;
10642 hints.ai_socktype = SOCK_STREAM;
10643 hints.ai_protocol = IPPROTO_TCP;
10644 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
10645 (void)gai_strerror(gaierr);
10648 for (ai = aitop; ai; ai = ai->ai_next) {
10649 if (ai->ai_addr == NULL ||
10650 ai->ai_addrlen == 0 ||
10651 getnameinfo(ai->ai_addr, ai->ai_addrlen,
10652 straddr, sizeof(straddr), strport, sizeof(strport),
10653 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
10656 switch (ai->ai_family) {
10658 if (strcmp(strport, "54321") != 0) {
10662 if (strcmp(straddr, "0.0.0.0") != 0) {
10666 if (strcmp(straddr, "127.0.0.1") != 0) {
10673 if (strcmp(strport, "54321") != 0) {
10677 if (strcmp(straddr, "::") != 0) {
10681 if (strcmp(straddr, "::1") != 0) {
10691 /* another family support? */
10697 if (!(inet4 == 0 || inet4 == 2))
10699 if (!(inet6 == 0 || inet6 == 2))
10703 freeaddrinfo(aitop);
10708 freeaddrinfo(aitop);
10713 if ac_fn_c_try_run
"$LINENO"; then :
10714 ac_cv_buggy_getaddrinfo
=no
10716 ac_cv_buggy_getaddrinfo
=yes
10718 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10719 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10726 if test $have_getaddrinfo = no
-o "$ac_cv_buggy_getaddrinfo" = yes
10728 if test $ipv6 = yes
10730 echo 'Fatal: You must get working getaddrinfo() function.'
10731 echo ' or you can specify "--disable-ipv6"'.
10736 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
10739 for ac_func
in getnameinfo
10741 ac_fn_c_check_func
"$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
10742 if test "x$ac_cv_func_getnameinfo" = x
""yes; then :
10743 cat >>confdefs.h
<<_ACEOF
10744 #define HAVE_GETNAMEINFO 1
10751 # checks for structures
10752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
10753 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
10754 if test "${ac_cv_header_time+set}" = set; then :
10755 $as_echo_n "(cached) " >&6
10757 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10758 /* end confdefs.h. */
10759 #include <sys/types.h>
10760 #include <sys/time.h>
10766 if ((struct tm *) 0)
10772 if ac_fn_c_try_compile
"$LINENO"; then :
10773 ac_cv_header_time
=yes
10775 ac_cv_header_time
=no
10777 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
10780 $as_echo "$ac_cv_header_time" >&6; }
10781 if test $ac_cv_header_time = yes; then
10783 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
10787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
10788 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
10789 if test "${ac_cv_struct_tm+set}" = set; then :
10790 $as_echo_n "(cached) " >&6
10792 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10793 /* end confdefs.h. */
10794 #include <sys/types.h>
10801 int *p = &tm.tm_sec;
10807 if ac_fn_c_try_compile
"$LINENO"; then :
10808 ac_cv_struct_tm
=time.h
10810 ac_cv_struct_tm
=sys
/time.h
10812 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
10815 $as_echo "$ac_cv_struct_tm" >&6; }
10816 if test $ac_cv_struct_tm = sys
/time.h
; then
10818 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
10822 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
10823 #include <$ac_cv_struct_tm>
10826 if test "x$ac_cv_member_struct_tm_tm_zone" = x
""yes; then :
10828 cat >>confdefs.h
<<_ACEOF
10829 #define HAVE_STRUCT_TM_TM_ZONE 1
10835 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
10837 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
10840 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
10842 if test "x$ac_cv_have_decl_tzname" = x
""yes; then :
10848 cat >>confdefs.h
<<_ACEOF
10849 #define HAVE_DECL_TZNAME $ac_have_decl
10852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
10853 $as_echo_n "checking for tzname... " >&6; }
10854 if test "${ac_cv_var_tzname+set}" = set; then :
10855 $as_echo_n "(cached) " >&6
10857 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10858 /* end confdefs.h. */
10860 #if !HAVE_DECL_TZNAME
10861 extern char *tzname[];
10867 return tzname[0][0];
10872 if ac_fn_c_try_link
"$LINENO"; then :
10873 ac_cv_var_tzname
=yes
10875 ac_cv_var_tzname
=no
10877 rm -f core conftest.err conftest.
$ac_objext \
10878 conftest
$ac_exeext conftest.
$ac_ext
10880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
10881 $as_echo "$ac_cv_var_tzname" >&6; }
10882 if test $ac_cv_var_tzname = yes; then
10884 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
10889 ac_fn_c_check_member
"$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
10890 if test "x$ac_cv_member_struct_stat_st_rdev" = x
""yes; then :
10892 cat >>confdefs.h
<<_ACEOF
10893 #define HAVE_STRUCT_STAT_ST_RDEV 1
10899 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
10900 if test "x$ac_cv_member_struct_stat_st_blksize" = x
""yes; then :
10902 cat >>confdefs.h
<<_ACEOF
10903 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
10909 ac_fn_c_check_member
"$LINENO" "struct stat" "st_flags" "ac_cv_member_struct_stat_st_flags" "$ac_includes_default"
10910 if test "x$ac_cv_member_struct_stat_st_flags" = x
""yes; then :
10912 cat >>confdefs.h
<<_ACEOF
10913 #define HAVE_STRUCT_STAT_ST_FLAGS 1
10919 ac_fn_c_check_member
"$LINENO" "struct stat" "st_gen" "ac_cv_member_struct_stat_st_gen" "$ac_includes_default"
10920 if test "x$ac_cv_member_struct_stat_st_gen" = x
""yes; then :
10922 cat >>confdefs.h
<<_ACEOF
10923 #define HAVE_STRUCT_STAT_ST_GEN 1
10929 ac_fn_c_check_member
"$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "$ac_includes_default"
10930 if test "x$ac_cv_member_struct_stat_st_birthtime" = x
""yes; then :
10932 cat >>confdefs.h
<<_ACEOF
10933 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
10939 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
10940 if test "x$ac_cv_member_struct_stat_st_blocks" = x
""yes; then :
10942 cat >>confdefs.h
<<_ACEOF
10943 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
10947 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
10950 case " $LIBOBJS " in
10951 *" fileblocks.$ac_objext "* ) ;;
10952 *) LIBOBJS
="$LIBOBJS fileblocks.$ac_objext"
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for time.h that defines altzone" >&5
10961 $as_echo_n "checking for time.h that defines altzone... " >&6; }
10962 if test "${ac_cv_header_time_altzone+set}" = set; then :
10963 $as_echo_n "(cached) " >&6
10966 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10967 /* end confdefs.h. */
10977 if ac_fn_c_try_compile
"$LINENO"; then :
10978 ac_cv_header_time_altzone
=yes
10980 ac_cv_header_time_altzone
=no
10982 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time_altzone" >&5
10987 $as_echo "$ac_cv_header_time_altzone" >&6; }
10988 if test $ac_cv_header_time_altzone = yes; then
10990 $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h
10995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5
10996 $as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; }
10997 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10998 /* end confdefs.h. */
11000 #include <sys/types.h>
11001 #include <sys/select.h>
11002 #include <sys/time.h>
11012 if ac_fn_c_try_compile
"$LINENO"; then :
11015 $as_echo "#define SYS_SELECT_WITH_SYS_TIME 1" >>confdefs.h
11020 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5
11022 $as_echo "$was_it_defined" >&6; }
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for addrinfo" >&5
11025 $as_echo_n "checking for addrinfo... " >&6; }
11026 if test "${ac_cv_struct_addrinfo+set}" = set; then :
11027 $as_echo_n "(cached) " >&6
11029 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11030 /* end confdefs.h. */
11040 if ac_fn_c_try_compile
"$LINENO"; then :
11041 ac_cv_struct_addrinfo
=yes
11043 ac_cv_struct_addrinfo
=no
11045 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_addrinfo" >&5
11049 $as_echo "$ac_cv_struct_addrinfo" >&6; }
11050 if test $ac_cv_struct_addrinfo = yes; then
11052 $as_echo "#define HAVE_ADDRINFO 1" >>confdefs.h
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage" >&5
11057 $as_echo_n "checking for sockaddr_storage... " >&6; }
11058 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then :
11059 $as_echo_n "(cached) " >&6
11061 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11062 /* end confdefs.h. */
11064 # include <sys/types.h>
11065 # include <sys/socket.h>
11069 struct sockaddr_storage s
11074 if ac_fn_c_try_compile
"$LINENO"; then :
11075 ac_cv_struct_sockaddr_storage
=yes
11077 ac_cv_struct_sockaddr_storage
=no
11079 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_storage" >&5
11083 $as_echo "$ac_cv_struct_sockaddr_storage" >&6; }
11084 if test $ac_cv_struct_sockaddr_storage = yes; then
11086 $as_echo "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h
11090 # checks for compiler characteristics
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
11093 $as_echo_n "checking whether char is unsigned... " >&6; }
11094 if test "${ac_cv_c_char_unsigned+set}" = set; then :
11095 $as_echo_n "(cached) " >&6
11097 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11098 /* end confdefs.h. */
11099 $ac_includes_default
11103 static int test_array [1 - 2 * !(((char) -1) < 0)];
11110 if ac_fn_c_try_compile
"$LINENO"; then :
11111 ac_cv_c_char_unsigned
=no
11113 ac_cv_c_char_unsigned
=yes
11115 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
11118 $as_echo "$ac_cv_c_char_unsigned" >&6; }
11119 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
11120 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
11124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
11125 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11126 if test "${ac_cv_c_const+set}" = set; then :
11127 $as_echo_n "(cached) " >&6
11129 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11130 /* end confdefs.h. */
11135 /* FIXME: Include the comments suggested by Paul. */
11136 #ifndef __cplusplus
11137 /* Ultrix mips cc rejects this. */
11138 typedef int charset[2];
11140 /* SunOS 4.1.1 cc rejects this. */
11141 char const *const *pcpcc;
11143 /* NEC SVR4.0.2 mips cc rejects this. */
11144 struct point {int x, y;};
11145 static struct point const zero = {0,0};
11146 /* AIX XL C 1.02.0.0 rejects this.
11147 It does not let you subtract one const X* pointer from another in
11148 an arm of an if-expression whose if-part is not a constant
11150 const char *g = "string";
11151 pcpcc = &g + (g ? g-g : 0);
11152 /* HPUX 7.0 cc rejects these. */
11154 ppc = (char**) pcpcc;
11155 pcpcc = (char const *const *) ppc;
11156 { /* SCO 3.2v4 cc rejects this. */
11158 char const *s = 0 ? (char *) 0 : (char const *) 0;
11163 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11164 int x[] = {25, 17};
11165 const int *foo = &x[0];
11168 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11169 typedef const int *iptr;
11173 { /* AIX XL C 1.02.0.0 rejects this saying
11174 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11175 struct s { int j; const int *ap[3]; };
11176 struct s *b; b->j = 5;
11178 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11179 const int foo = 10;
11180 if (!foo) return 0;
11182 return !cs[0] && !zero.x;
11189 if ac_fn_c_try_compile
"$LINENO"; then :
11194 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
11197 $as_echo "$ac_cv_c_const" >&6; }
11198 if test $ac_cv_c_const = no
; then
11200 $as_echo "#define const /**/" >>confdefs.h
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
11207 $as_echo_n "checking for working volatile... " >&6; }
11208 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11209 /* end confdefs.h. */
11214 volatile int x; x = 0;
11219 if ac_fn_c_try_compile
"$LINENO"; then :
11223 $as_echo "#define volatile /**/" >>confdefs.h
11227 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5
11229 $as_echo "$works" >&6; }
11232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working signed char" >&5
11233 $as_echo_n "checking for working signed char... " >&6; }
11234 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11235 /* end confdefs.h. */
11245 if ac_fn_c_try_compile
"$LINENO"; then :
11249 $as_echo "#define signed /**/" >>confdefs.h
11253 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5
11255 $as_echo "$works" >&6; }
11258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prototypes" >&5
11259 $as_echo_n "checking for prototypes... " >&6; }
11260 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11261 /* end confdefs.h. */
11262 int foo(int x) { return 0; }
11271 if ac_fn_c_try_compile
"$LINENO"; then :
11273 $as_echo "#define HAVE_PROTOTYPES 1" >>confdefs.h
11275 have_prototypes
=yes
11277 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_prototypes" >&5
11279 $as_echo "$have_prototypes" >&6; }
11282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for variable length prototypes and stdarg.h" >&5
11283 $as_echo_n "checking for variable length prototypes and stdarg.h... " >&6; }
11284 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11285 /* end confdefs.h. */
11287 #include <stdarg.h>
11288 int foo(int x, ...) {
11292 va_arg(va, char *);
11293 va_arg(va, double);
11300 return foo(10, "", 3.14);
11305 if ac_fn_c_try_compile
"$LINENO"; then :
11308 $as_echo "#define HAVE_STDARG_PROTOTYPES 1" >>confdefs.h
11313 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5
11315 $as_echo "$works" >&6; }
11317 # check for socketpair
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socketpair" >&5
11319 $as_echo_n "checking for socketpair... " >&6; }
11320 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11321 /* end confdefs.h. */
11323 #include <sys/types.h>
11324 #include <sys/socket.h>
11334 if ac_fn_c_try_compile
"$LINENO"; then :
11336 $as_echo "#define HAVE_SOCKETPAIR 1" >>confdefs.h
11338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11339 $as_echo "yes" >&6; }
11341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11342 $as_echo "no" >&6; }
11345 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11347 # check if sockaddr has sa_len member
11348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr has sa_len member" >&5
11349 $as_echo_n "checking if sockaddr has sa_len member... " >&6; }
11350 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11351 /* end confdefs.h. */
11352 #include <sys/types.h>
11353 #include <sys/socket.h>
11363 if ac_fn_c_try_compile
"$LINENO"; then :
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11365 $as_echo "yes" >&6; }
11367 $as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11371 $as_echo "no" >&6; }
11374 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11376 va_list_is_array
=no
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether va_list is an array" >&5
11378 $as_echo_n "checking whether va_list is an array... " >&6; }
11379 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11380 /* end confdefs.h. */
11382 #ifdef HAVE_STDARG_PROTOTYPES
11383 #include <stdarg.h>
11385 #include <varargs.h>
11391 va_list list1, list2; list1 = list2;
11396 if ac_fn_c_try_compile
"$LINENO"; then :
11401 $as_echo "#define VA_LIST_IS_ARRAY 1" >>confdefs.h
11403 va_list_is_array
=yes
11406 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $va_list_is_array" >&5
11408 $as_echo "$va_list_is_array" >&6; }
11410 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
11413 ac_fn_c_check_func
"$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
11414 if test "x$ac_cv_func_gethostbyname_r" = x
""yes; then :
11416 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 6 args" >&5
11419 $as_echo_n "checking gethostbyname_r with 6 args... " >&6; }
11421 CFLAGS
="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
11422 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11423 /* end confdefs.h. */
11425 # include <netdb.h>
11432 struct hostent *he, *res;
11437 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
11443 if ac_fn_c_try_compile
"$LINENO"; then :
11445 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
11448 $as_echo "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11451 $as_echo "yes" >&6; }
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11456 $as_echo "no" >&6; }
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 5 args" >&5
11458 $as_echo_n "checking gethostbyname_r with 5 args... " >&6; }
11459 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11460 /* end confdefs.h. */
11462 # include <netdb.h>
11469 struct hostent *he;
11474 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
11480 if ac_fn_c_try_compile
"$LINENO"; then :
11482 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
11485 $as_echo "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h
11487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11488 $as_echo "yes" >&6; }
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11493 $as_echo "no" >&6; }
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 3 args" >&5
11495 $as_echo_n "checking gethostbyname_r with 3 args... " >&6; }
11496 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11497 /* end confdefs.h. */
11499 # include <netdb.h>
11506 struct hostent *he;
11507 struct hostent_data data;
11509 (void) gethostbyname_r(name, he, &data);
11515 if ac_fn_c_try_compile
"$LINENO"; then :
11517 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
11520 $as_echo "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11523 $as_echo "yes" >&6; }
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11528 $as_echo "no" >&6; }
11531 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11534 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11537 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11542 for ac_func
in gethostbyname
11544 ac_fn_c_check_func
"$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
11545 if test "x$ac_cv_func_gethostbyname" = x
""yes; then :
11546 cat >>confdefs.h
<<_ACEOF
11547 #define HAVE_GETHOSTBYNAME 1
11562 # checks for system services
11565 # Linux requires this for correct f.p. operations
11566 ac_fn_c_check_func
"$LINENO" "__fpu_control" "ac_cv_func___fpu_control"
11567 if test "x$ac_cv_func___fpu_control" = x
""yes; then :
11570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __fpu_control in -lieee" >&5
11571 $as_echo_n "checking for __fpu_control in -lieee... " >&6; }
11572 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then :
11573 $as_echo_n "(cached) " >&6
11575 ac_check_lib_save_LIBS
=$LIBS
11576 LIBS
="-lieee $LIBS"
11577 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11578 /* end confdefs.h. */
11580 /* Override any GCC internal prototype to avoid an error.
11581 Use char because int might match the return type of a GCC
11582 builtin and then its argument prototype would still apply. */
11586 char __fpu_control ();
11590 return __fpu_control ();
11595 if ac_fn_c_try_link
"$LINENO"; then :
11596 ac_cv_lib_ieee___fpu_control
=yes
11598 ac_cv_lib_ieee___fpu_control
=no
11600 rm -f core conftest.err conftest.
$ac_objext \
11601 conftest
$ac_exeext conftest.
$ac_ext
11602 LIBS
=$ac_check_lib_save_LIBS
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ieee___fpu_control" >&5
11605 $as_echo "$ac_cv_lib_ieee___fpu_control" >&6; }
11606 if test "x$ac_cv_lib_ieee___fpu_control" = x
""yes; then :
11607 cat >>confdefs.h
<<_ACEOF
11608 #define HAVE_LIBIEEE 1
11611 LIBS
="-lieee $LIBS"
11619 # Check for --with-fpectl
11620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-fpectl" >&5
11621 $as_echo_n "checking for --with-fpectl... " >&6; }
11623 # Check whether --with-fpectl was given.
11624 if test "${with_fpectl+set}" = set; then :
11625 withval
=$with_fpectl;
11626 if test "$withval" != no
11629 $as_echo "#define WANT_SIGFPE_HANDLER 1" >>confdefs.h
11631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11632 $as_echo "yes" >&6; }
11633 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11634 $as_echo "no" >&6; }
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11638 $as_echo "no" >&6; }
11642 # check for --with-libm=...
11644 case $ac_sys_system in
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libm=STRING" >&5
11650 $as_echo_n "checking for --with-libm=STRING... " >&6; }
11652 # Check whether --with-libm was given.
11653 if test "${with_libm+set}" = set; then :
11654 withval
=$with_libm;
11655 if test "$withval" = no
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBM empty" >&5
11658 $as_echo "force LIBM empty" >&6; }
11659 elif test "$withval" != yes
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBM=\"$withval\"" >&5
11662 $as_echo "set LIBM=\"$withval\"" >&6; }
11663 else as_fn_error
"proper usage is --with-libm=STRING" "$LINENO" 5
11666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBM=\"$LIBM\"" >&5
11667 $as_echo "default LIBM=\"$LIBM\"" >&6; }
11671 # check for --with-libc=...
11673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libc=STRING" >&5
11674 $as_echo_n "checking for --with-libc=STRING... " >&6; }
11676 # Check whether --with-libc was given.
11677 if test "${with_libc+set}" = set; then :
11678 withval
=$with_libc;
11679 if test "$withval" = no
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBC empty" >&5
11682 $as_echo "force LIBC empty" >&6; }
11683 elif test "$withval" != yes
11685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBC=\"$withval\"" >&5
11686 $as_echo "set LIBC=\"$withval\"" >&6; }
11687 else as_fn_error
"proper usage is --with-libc=STRING" "$LINENO" 5
11690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBC=\"$LIBC\"" >&5
11691 $as_echo "default LIBC=\"$LIBC\"" >&6; }
11695 # **************************************************
11696 # * Check for various properties of floating point *
11697 # **************************************************
11699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are little-endian IEEE 754 binary64" >&5
11700 $as_echo_n "checking whether C doubles are little-endian IEEE 754 binary64... " >&6; }
11701 if test "${ac_cv_little_endian_double+set}" = set; then :
11702 $as_echo_n "(cached) " >&6
11705 if test "$cross_compiling" = yes; then :
11706 ac_cv_little_endian_double
=no
11708 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11709 /* end confdefs.h. */
11711 #include <string.h>
11713 double x = 9006104071832581.0;
11714 if (memcmp(&x, "\x05\x04\x03\x02\x01\xff\x3f\x43", 8) == 0)
11721 if ac_fn_c_try_run
"$LINENO"; then :
11722 ac_cv_little_endian_double
=yes
11724 ac_cv_little_endian_double
=no
11726 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11727 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_little_endian_double" >&5
11733 $as_echo "$ac_cv_little_endian_double" >&6; }
11734 if test "$ac_cv_little_endian_double" = yes
11737 $as_echo "#define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1" >>confdefs.h
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are big-endian IEEE 754 binary64" >&5
11742 $as_echo_n "checking whether C doubles are big-endian IEEE 754 binary64... " >&6; }
11743 if test "${ac_cv_big_endian_double+set}" = set; then :
11744 $as_echo_n "(cached) " >&6
11747 if test "$cross_compiling" = yes; then :
11748 ac_cv_big_endian_double
=no
11750 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11751 /* end confdefs.h. */
11753 #include <string.h>
11755 double x = 9006104071832581.0;
11756 if (memcmp(&x, "\x43\x3f\xff\x01\x02\x03\x04\x05", 8) == 0)
11763 if ac_fn_c_try_run
"$LINENO"; then :
11764 ac_cv_big_endian_double
=yes
11766 ac_cv_big_endian_double
=no
11768 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11769 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_big_endian_double" >&5
11775 $as_echo "$ac_cv_big_endian_double" >&6; }
11776 if test "$ac_cv_big_endian_double" = yes
11779 $as_echo "#define DOUBLE_IS_BIG_ENDIAN_IEEE754 1" >>confdefs.h
11783 # Some ARM platforms use a mixed-endian representation for doubles.
11784 # While Python doesn't currently have full support for these platforms
11785 # (see e.g., issue 1762561), we can at least make sure that float <-> string
11786 # conversions work.
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are ARM mixed-endian IEEE 754 binary64" >&5
11788 $as_echo_n "checking whether C doubles are ARM mixed-endian IEEE 754 binary64... " >&6; }
11789 if test "${ac_cv_mixed_endian_double+set}" = set; then :
11790 $as_echo_n "(cached) " >&6
11793 if test "$cross_compiling" = yes; then :
11794 ac_cv_mixed_endian_double
=no
11796 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11797 /* end confdefs.h. */
11799 #include <string.h>
11801 double x = 9006104071832581.0;
11802 if (memcmp(&x, "\x01\xff\x3f\x43\x05\x04\x03\x02", 8) == 0)
11809 if ac_fn_c_try_run
"$LINENO"; then :
11810 ac_cv_mixed_endian_double
=yes
11812 ac_cv_mixed_endian_double
=no
11814 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11815 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mixed_endian_double" >&5
11821 $as_echo "$ac_cv_mixed_endian_double" >&6; }
11822 if test "$ac_cv_mixed_endian_double" = yes
11825 $as_echo "#define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1" >>confdefs.h
11829 # The short float repr introduced in Python 3.1 requires the
11830 # correctly-rounded string <-> double conversion functions from
11831 # Python/dtoa.c, which in turn require that the FPU uses 53-bit
11832 # rounding; this is a problem on x86, where the x87 FPU has a default
11833 # rounding precision of 64 bits. For gcc/x86, we can fix this by
11834 # using inline assembler to get and set the x87 FPU control word.
11836 # This inline assembler syntax may also work for suncc and icc,
11837 # so we try it on all platforms.
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set x87 control word" >&5
11840 $as_echo_n "checking whether we can use gcc inline assembler to get and set x87 control word... " >&6; }
11841 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11842 /* end confdefs.h. */
11849 __asm__ __volatile__ ("fnstcw %0" : "=m" (cw));
11850 __asm__ __volatile__ ("fldcw %0" : : "m" (cw));
11856 if ac_fn_c_try_compile
"$LINENO"; then :
11857 have_gcc_asm_for_x87
=yes
11859 have_gcc_asm_for_x87
=no
11861 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_x87" >&5
11863 $as_echo "$have_gcc_asm_for_x87" >&6; }
11864 if test "$have_gcc_asm_for_x87" = yes
11867 $as_echo "#define HAVE_GCC_ASM_FOR_X87 1" >>confdefs.h
11871 # Detect whether system arithmetic is subject to x87-style double
11872 # rounding issues. The result of this test has little meaning on non
11873 # IEEE 754 platforms. On IEEE 754, test should return 1 if rounding
11874 # mode is round-to-nearest and double rounding issues are present, and
11875 # 0 otherwise. See http://bugs.python.org/issue2937 for more info.
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x87-style double rounding" >&5
11877 $as_echo_n "checking for x87-style double rounding... " >&6; }
11878 # $BASECFLAGS may affect the result
11880 CC
="$CC $BASECFLAGS"
11881 if test "$cross_compiling" = yes; then :
11882 ac_cv_x87_double_rounding
=no
11884 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11885 /* end confdefs.h. */
11887 #include <stdlib.h>
11890 volatile double x, y, z;
11891 /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */
11892 x = 0.99999999999999989; /* 1-2**-53 */
11896 /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */
11902 /* both tests show evidence of double rounding */
11907 if ac_fn_c_try_run
"$LINENO"; then :
11908 ac_cv_x87_double_rounding
=no
11910 ac_cv_x87_double_rounding
=yes
11912 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11913 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_x87_double_rounding" >&5
11918 $as_echo "$ac_cv_x87_double_rounding" >&6; }
11919 if test "$ac_cv_x87_double_rounding" = yes
11922 $as_echo "#define X87_DOUBLE_ROUNDING 1" >>confdefs.h
11926 # ************************************
11927 # * Check for mathematical functions *
11928 # ************************************
11933 # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of
11934 # -0. on some architectures.
11935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tanh preserves the sign of zero" >&5
11936 $as_echo_n "checking whether tanh preserves the sign of zero... " >&6; }
11937 if test "${ac_cv_tanh_preserves_zero_sign+set}" = set; then :
11938 $as_echo_n "(cached) " >&6
11941 if test "$cross_compiling" = yes; then :
11942 ac_cv_tanh_preserves_zero_sign
=no
11944 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11945 /* end confdefs.h. */
11948 #include <stdlib.h>
11950 /* return 0 if either negative zeros don't exist
11951 on this platform or if negative zeros exist
11952 and tanh(-0.) == -0. */
11953 if (atan2(0., -1.) == atan2(-0., -1.) ||
11954 atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0);
11959 if ac_fn_c_try_run
"$LINENO"; then :
11960 ac_cv_tanh_preserves_zero_sign
=yes
11962 ac_cv_tanh_preserves_zero_sign
=no
11964 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11965 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tanh_preserves_zero_sign" >&5
11971 $as_echo "$ac_cv_tanh_preserves_zero_sign" >&6; }
11972 if test "$ac_cv_tanh_preserves_zero_sign" = yes
11975 $as_echo "#define TANH_PRESERVES_ZERO_SIGN 1" >>confdefs.h
11979 for ac_func
in acosh asinh atanh copysign erf erfc expm1 finite gamma
11981 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11982 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11983 eval as_val
=\$
$as_ac_var
11984 if test "x$as_val" = x
""yes; then :
11985 cat >>confdefs.h
<<_ACEOF
11986 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11992 for ac_func
in hypot lgamma log1p round tgamma
11994 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11995 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11996 eval as_val
=\$
$as_ac_var
11997 if test "x$as_val" = x
""yes; then :
11998 cat >>confdefs.h
<<_ACEOF
11999 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12005 ac_fn_c_check_decl
"$LINENO" "isinf" "ac_cv_have_decl_isinf" "#include <math.h>
12007 if test "x$ac_cv_have_decl_isinf" = x
""yes; then :
12013 cat >>confdefs.h
<<_ACEOF
12014 #define HAVE_DECL_ISINF $ac_have_decl
12016 ac_fn_c_check_decl
"$LINENO" "isnan" "ac_cv_have_decl_isnan" "#include <math.h>
12018 if test "x$ac_cv_have_decl_isnan" = x
""yes; then :
12024 cat >>confdefs.h
<<_ACEOF
12025 #define HAVE_DECL_ISNAN $ac_have_decl
12027 ac_fn_c_check_decl
"$LINENO" "isfinite" "ac_cv_have_decl_isfinite" "#include <math.h>
12029 if test "x$ac_cv_have_decl_isfinite" = x
""yes; then :
12035 cat >>confdefs.h
<<_ACEOF
12036 #define HAVE_DECL_ISFINITE $ac_have_decl
12042 # For multiprocessing module, check that sem_open
12043 # actually works. For FreeBSD versions <= 7.2,
12044 # the kernel module that provides POSIX semaphores
12045 # isn't loaded by default, so an attempt to call
12046 # sem_open results in a 'Signal 12' error.
12047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX semaphores are enabled" >&5
12048 $as_echo_n "checking whether POSIX semaphores are enabled... " >&6; }
12049 if test "${ac_cv_posix_semaphores_enabled+set}" = set; then :
12050 $as_echo_n "(cached) " >&6
12052 if test "$cross_compiling" = yes; then :
12053 ac_cv_posix_semaphores_enabled
=yes
12055 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12056 /* end confdefs.h. */
12058 #include <unistd.h>
12061 #include <semaphore.h>
12062 #include <sys/stat.h>
12065 sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0);
12066 if (a == SEM_FAILED) {
12067 perror("sem_open");
12071 sem_unlink("/autoconf");
12076 if ac_fn_c_try_run
"$LINENO"; then :
12077 ac_cv_posix_semaphores_enabled
=yes
12079 ac_cv_posix_semaphores_enabled
=no
12081 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12082 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_semaphores_enabled" >&5
12089 $as_echo "$ac_cv_posix_semaphores_enabled" >&6; }
12090 if test $ac_cv_posix_semaphores_enabled = no
12093 $as_echo "#define POSIX_SEMAPHORES_NOT_ENABLED 1" >>confdefs.h
12097 # Multiprocessing check for broken sem_getvalue
12098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken sem_getvalue" >&5
12099 $as_echo_n "checking for broken sem_getvalue... " >&6; }
12100 if test "${ac_cv_broken_sem_getvalue+set}" = set; then :
12101 $as_echo_n "(cached) " >&6
12103 if test "$cross_compiling" = yes; then :
12104 ac_cv_broken_sem_getvalue
=yes
12106 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12107 /* end confdefs.h. */
12109 #include <unistd.h>
12112 #include <semaphore.h>
12113 #include <sys/stat.h>
12116 sem_t *a = sem_open("/autocftw", O_CREAT, S_IRUSR|S_IWUSR, 0);
12120 perror("sem_open");
12124 res = sem_getvalue(a, &count);
12126 sem_unlink("/autocftw");
12127 return res==-1 ? 1 : 0;
12131 if ac_fn_c_try_run
"$LINENO"; then :
12132 ac_cv_broken_sem_getvalue
=no
12134 ac_cv_broken_sem_getvalue
=yes
12136 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12137 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_sem_getvalue" >&5
12144 $as_echo "$ac_cv_broken_sem_getvalue" >&6; }
12145 if test $ac_cv_broken_sem_getvalue = yes
12148 $as_echo "#define HAVE_BROKEN_SEM_GETVALUE 1" >>confdefs.h
12152 # determine what size digit to use for Python's longs
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking digit size for Python's longs" >&5
12154 $as_echo_n "checking digit size for Python's longs... " >&6; }
12155 # Check whether --enable-big-digits was given.
12156 if test "${enable_big_digits+set}" = set; then :
12157 enableval
=$enable_big_digits; case $enable_big_digits in
12159 enable_big_digits
=30 ;;
12161 enable_big_digits
=15 ;;
12165 as_fn_error
"bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" "$LINENO" 5 ;;
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_big_digits" >&5
12168 $as_echo "$enable_big_digits" >&6; }
12170 cat >>confdefs.h
<<_ACEOF
12171 #define PYLONG_BITS_IN_DIGIT $enable_big_digits
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5
12177 $as_echo "no value specified" >&6; }
12181 # check for wchar.h
12182 ac_fn_c_check_header_mongrel
"$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
12183 if test "x$ac_cv_header_wchar_h" = x
""yes; then :
12186 $as_echo "#define HAVE_WCHAR_H 1" >>confdefs.h
12197 # determine wchar_t size
12198 if test "$wchar_h" = yes
12200 # The cast to long int works around a bug in the HP C Compiler
12201 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12202 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12203 # This bug is HP SR number 8606223364.
12204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5
12205 $as_echo_n "checking size of wchar_t... " >&6; }
12206 if test "${ac_cv_sizeof_wchar_t+set}" = set; then :
12207 $as_echo_n "(cached) " >&6
12209 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" "#include <wchar.h>
12213 if test "$ac_cv_type_wchar_t" = yes; then
12214 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12215 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12216 { as_fn_set_status
77
12217 as_fn_error
"cannot compute sizeof (wchar_t)
12218 See \`config.log' for more details." "$LINENO" 5; }; }
12220 ac_cv_sizeof_wchar_t
=0
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5
12226 $as_echo "$ac_cv_sizeof_wchar_t" >&6; }
12230 cat >>confdefs.h
<<_ACEOF
12231 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UCS-4 tcl" >&5
12238 $as_echo_n "checking for UCS-4 tcl... " >&6; }
12240 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12241 /* end confdefs.h. */
12244 #if TCL_UTF_MAX != 6
12245 # error "NOT UCS4_TCL"
12255 if ac_fn_c_try_compile
"$LINENO"; then :
12258 $as_echo "#define HAVE_UCS4_TCL 1" >>confdefs.h
12263 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ucs4_tcl" >&5
12265 $as_echo "$have_ucs4_tcl" >&6; }
12267 # check whether wchar_t is signed or not
12268 if test "$wchar_h" = yes
12270 # check whether wchar_t is signed or not
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wchar_t is signed" >&5
12272 $as_echo_n "checking whether wchar_t is signed... " >&6; }
12273 if test "${ac_cv_wchar_t_signed+set}" = set; then :
12274 $as_echo_n "(cached) " >&6
12277 if test "$cross_compiling" = yes; then :
12278 ac_cv_wchar_t_signed
=yes
12280 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12281 /* end confdefs.h. */
12286 /* Success: exit code 0 */
12287 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
12291 if ac_fn_c_try_run
"$LINENO"; then :
12292 ac_cv_wchar_t_signed
=yes
12294 ac_cv_wchar_t_signed
=no
12296 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12297 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_wchar_t_signed" >&5
12303 $as_echo "$ac_cv_wchar_t_signed" >&6; }
12306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what type to use for unicode" >&5
12307 $as_echo_n "checking what type to use for unicode... " >&6; }
12308 # Check whether --enable-unicode was given.
12309 if test "${enable_unicode+set}" = set; then :
12310 enableval
=$enable_unicode;
12316 if test $enable_unicode = yes
12318 # Without any arguments, Py_UNICODE defaults to two-byte mode
12319 case "$have_ucs4_tcl" in
12320 yes) enable_unicode
="ucs4"
12322 *) enable_unicode
="ucs2"
12328 case "$enable_unicode" in
12329 ucs2
) unicode_size
="2"
12330 $as_echo "#define Py_UNICODE_SIZE 2" >>confdefs.h
12333 ucs4
) unicode_size
="4"
12334 $as_echo "#define Py_UNICODE_SIZE 4" >>confdefs.h
12337 *) as_fn_error
"invalid value for --enable-unicode. Use either ucs2 or ucs4 (lowercase)." "$LINENO" 5 ;;
12343 if test "$enable_unicode" = "no"
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not used" >&5
12347 $as_echo "not used" >&6; }
12349 UNICODE_OBJS
="Objects/unicodeobject.o Objects/unicodectype.o"
12351 $as_echo "#define Py_USING_UNICODE 1" >>confdefs.h
12354 # wchar_t is only usable if it maps to an unsigned type
12355 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
12356 -a "$ac_cv_wchar_t_signed" = "no"
12358 PY_UNICODE_TYPE
="wchar_t"
12360 $as_echo "#define HAVE_USABLE_WCHAR_T 1" >>confdefs.h
12362 $as_echo "#define PY_UNICODE_TYPE wchar_t" >>confdefs.h
12364 elif test "$ac_cv_sizeof_short" = "$unicode_size"
12366 PY_UNICODE_TYPE
="unsigned short"
12367 $as_echo "#define PY_UNICODE_TYPE unsigned short" >>confdefs.h
12369 elif test "$ac_cv_sizeof_long" = "$unicode_size"
12371 PY_UNICODE_TYPE
="unsigned long"
12372 $as_echo "#define PY_UNICODE_TYPE unsigned long" >>confdefs.h
12375 PY_UNICODE_TYPE
="no type found"
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PY_UNICODE_TYPE" >&5
12378 $as_echo "$PY_UNICODE_TYPE" >&6; }
12381 # check for endianness
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12383 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12384 if test "${ac_cv_c_bigendian+set}" = set; then :
12385 $as_echo_n "(cached) " >&6
12387 ac_cv_c_bigendian
=unknown
12388 # See if we're dealing with a universal compiler.
12389 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12390 /* end confdefs.h. */
12391 #ifndef __APPLE_CC__
12392 not a universal capable compiler
12397 if ac_fn_c_try_compile
"$LINENO"; then :
12399 # Check for potential -arch flags. It is not universal unless
12400 # there are at least two -arch flags with different values.
12403 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12404 if test -n "$ac_prev"; then
12406 i?
86 | x86_64 | ppc | ppc64
)
12407 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
12410 ac_cv_c_bigendian
=universal
12416 elif test "x$ac_word" = "x-arch"; then
12421 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12422 if test $ac_cv_c_bigendian = unknown
; then
12423 # See if sys/param.h defines the BYTE_ORDER macro.
12424 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12425 /* end confdefs.h. */
12426 #include <sys/types.h>
12427 #include <sys/param.h>
12432 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12433 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12435 bogus endian macros
12442 if ac_fn_c_try_compile
"$LINENO"; then :
12443 # It does; now see whether it defined to BIG_ENDIAN or not.
12444 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12445 /* end confdefs.h. */
12446 #include <sys/types.h>
12447 #include <sys/param.h>
12452 #if BYTE_ORDER != BIG_ENDIAN
12460 if ac_fn_c_try_compile
"$LINENO"; then :
12461 ac_cv_c_bigendian
=yes
12463 ac_cv_c_bigendian
=no
12465 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12467 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12469 if test $ac_cv_c_bigendian = unknown
; then
12470 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12471 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12472 /* end confdefs.h. */
12473 #include <limits.h>
12478 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12479 bogus endian macros
12486 if ac_fn_c_try_compile
"$LINENO"; then :
12487 # It does; now see whether it defined to _BIG_ENDIAN or not.
12488 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12489 /* end confdefs.h. */
12490 #include <limits.h>
12495 #ifndef _BIG_ENDIAN
12503 if ac_fn_c_try_compile
"$LINENO"; then :
12504 ac_cv_c_bigendian
=yes
12506 ac_cv_c_bigendian
=no
12508 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12510 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12512 if test $ac_cv_c_bigendian = unknown
; then
12513 # Compile a test program.
12514 if test "$cross_compiling" = yes; then :
12515 # Try to guess by grepping values from an object file.
12516 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12517 /* end confdefs.h. */
12518 short int ascii_mm[] =
12519 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12520 short int ascii_ii[] =
12521 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12522 int use_ascii (int i) {
12523 return ascii_mm[i] + ascii_ii[i];
12525 short int ebcdic_ii[] =
12526 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12527 short int ebcdic_mm[] =
12528 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12529 int use_ebcdic (int i) {
12530 return ebcdic_mm[i] + ebcdic_ii[i];
12537 return use_ascii (foo) == use_ebcdic (foo);
12542 if ac_fn_c_try_compile
"$LINENO"; then :
12543 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
12544 ac_cv_c_bigendian
=yes
12546 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
12547 if test "$ac_cv_c_bigendian" = unknown
; then
12548 ac_cv_c_bigendian
=no
12550 # finding both strings is unlikely to happen, but who knows?
12551 ac_cv_c_bigendian
=unknown
12555 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12557 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12558 /* end confdefs.h. */
12559 $ac_includes_default
12564 /* Are we little or big endian? From Harbison&Steele. */
12568 char c[sizeof (long int)];
12571 return u.c[sizeof (long int) - 1] == 1;
12577 if ac_fn_c_try_run
"$LINENO"; then :
12578 ac_cv_c_bigendian
=no
12580 ac_cv_c_bigendian
=yes
12582 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12583 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12589 $as_echo "$ac_cv_c_bigendian" >&6; }
12590 case $ac_cv_c_bigendian in #(
12592 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12598 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12602 as_fn_error
"unknown endianness
12603 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12607 # Check whether right shifting a negative integer extends the sign bit
12608 # or fills with zeros (like the Cray J90, according to Tim Peters).
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether right shift extends the sign bit" >&5
12610 $as_echo_n "checking whether right shift extends the sign bit... " >&6; }
12611 if test "${ac_cv_rshift_extends_sign+set}" = set; then :
12612 $as_echo_n "(cached) " >&6
12615 if test "$cross_compiling" = yes; then :
12616 ac_cv_rshift_extends_sign
=yes
12618 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12619 /* end confdefs.h. */
12623 exit(((-1)>>3 == -1) ? 0 : 1);
12627 if ac_fn_c_try_run
"$LINENO"; then :
12628 ac_cv_rshift_extends_sign
=yes
12630 ac_cv_rshift_extends_sign
=no
12632 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12633 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rshift_extends_sign" >&5
12639 $as_echo "$ac_cv_rshift_extends_sign" >&6; }
12640 if test "$ac_cv_rshift_extends_sign" = no
12643 $as_echo "#define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1" >>confdefs.h
12647 # check for getc_unlocked and related locking functions
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getc_unlocked() and friends" >&5
12649 $as_echo_n "checking for getc_unlocked() and friends... " >&6; }
12650 if test "${ac_cv_have_getc_unlocked+set}" = set; then :
12651 $as_echo_n "(cached) " >&6
12654 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12655 /* end confdefs.h. */
12661 FILE *f = fopen("/dev/null", "r");
12670 if ac_fn_c_try_link
"$LINENO"; then :
12671 ac_cv_have_getc_unlocked
=yes
12673 ac_cv_have_getc_unlocked
=no
12675 rm -f core conftest.err conftest.
$ac_objext \
12676 conftest
$ac_exeext conftest.
$ac_ext
12679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getc_unlocked" >&5
12680 $as_echo "$ac_cv_have_getc_unlocked" >&6; }
12681 if test "$ac_cv_have_getc_unlocked" = yes
12684 $as_echo "#define HAVE_GETC_UNLOCKED 1" >>confdefs.h
12688 # check where readline lives
12689 # save the value of LIBS so we don't actually link Python with readline
12690 LIBS_no_readline
=$LIBS
12692 # On some systems we need to link readline to a termcap compatible
12693 # library. NOTE: Keep the precedence of listed libraries synchronised
12695 py_cv_lib_readline
=no
12696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link readline libs" >&5
12697 $as_echo_n "checking how to link readline libs... " >&6; }
12698 for py_libtermcap
in "" ncursesw ncurses curses termcap
; do
12699 if test -z "$py_libtermcap"; then
12700 READLINE_LIBS
="-lreadline"
12702 READLINE_LIBS
="-lreadline -l$py_libtermcap"
12704 LIBS
="$READLINE_LIBS $LIBS_no_readline"
12705 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12706 /* end confdefs.h. */
12708 /* Override any GCC internal prototype to avoid an error.
12709 Use char because int might match the return type of a GCC
12710 builtin and then its argument prototype would still apply. */
12718 return readline ();
12723 if ac_fn_c_try_link
"$LINENO"; then :
12724 py_cv_lib_readline
=yes
12726 rm -f core conftest.err conftest.
$ac_objext \
12727 conftest
$ac_exeext conftest.
$ac_ext
12728 if test $py_cv_lib_readline = yes; then
12732 # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts
12733 #AC_SUBST([READLINE_LIBS])
12734 if test $py_cv_lib_readline = no
; then
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12736 $as_echo "none" >&6; }
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE_LIBS" >&5
12739 $as_echo "$READLINE_LIBS" >&6; }
12741 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
12745 # check for readline 2.1
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_callback_handler_install in -lreadline" >&5
12747 $as_echo_n "checking for rl_callback_handler_install in -lreadline... " >&6; }
12748 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then :
12749 $as_echo_n "(cached) " >&6
12751 ac_check_lib_save_LIBS
=$LIBS
12752 LIBS
="-lreadline $READLINE_LIBS $LIBS"
12753 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12754 /* end confdefs.h. */
12756 /* Override any GCC internal prototype to avoid an error.
12757 Use char because int might match the return type of a GCC
12758 builtin and then its argument prototype would still apply. */
12762 char rl_callback_handler_install ();
12766 return rl_callback_handler_install ();
12771 if ac_fn_c_try_link
"$LINENO"; then :
12772 ac_cv_lib_readline_rl_callback_handler_install
=yes
12774 ac_cv_lib_readline_rl_callback_handler_install
=no
12776 rm -f core conftest.err conftest.
$ac_objext \
12777 conftest
$ac_exeext conftest.
$ac_ext
12778 LIBS
=$ac_check_lib_save_LIBS
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
12781 $as_echo "$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
12782 if test "x$ac_cv_lib_readline_rl_callback_handler_install" = x
""yes; then :
12784 $as_echo "#define HAVE_RL_CALLBACK 1" >>confdefs.h
12789 # check for readline 2.2
12790 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12791 /* end confdefs.h. */
12792 #include <readline/readline.h>
12794 if ac_fn_c_try_cpp
"$LINENO"; then :
12800 rm -f conftest.err conftest.
$ac_ext
12801 if test $have_readline = yes
12803 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12804 /* end confdefs.h. */
12805 #include <readline/readline.h>
12808 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12809 $EGREP "extern int rl_completion_append_character;" >/dev
/null
2>&1; then :
12811 $as_echo "#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1" >>confdefs.h
12816 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12817 /* end confdefs.h. */
12818 #include <readline/readline.h>
12821 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12822 $EGREP "extern int rl_completion_suppress_append;" >/dev
/null
2>&1; then :
12824 $as_echo "#define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1" >>confdefs.h
12831 # check for readline 4.0
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_pre_input_hook in -lreadline" >&5
12833 $as_echo_n "checking for rl_pre_input_hook in -lreadline... " >&6; }
12834 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then :
12835 $as_echo_n "(cached) " >&6
12837 ac_check_lib_save_LIBS
=$LIBS
12838 LIBS
="-lreadline $READLINE_LIBS $LIBS"
12839 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12840 /* end confdefs.h. */
12842 /* Override any GCC internal prototype to avoid an error.
12843 Use char because int might match the return type of a GCC
12844 builtin and then its argument prototype would still apply. */
12848 char rl_pre_input_hook ();
12852 return rl_pre_input_hook ();
12857 if ac_fn_c_try_link
"$LINENO"; then :
12858 ac_cv_lib_readline_rl_pre_input_hook
=yes
12860 ac_cv_lib_readline_rl_pre_input_hook
=no
12862 rm -f core conftest.err conftest.
$ac_objext \
12863 conftest
$ac_exeext conftest.
$ac_ext
12864 LIBS
=$ac_check_lib_save_LIBS
12866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
12867 $as_echo "$ac_cv_lib_readline_rl_pre_input_hook" >&6; }
12868 if test "x$ac_cv_lib_readline_rl_pre_input_hook" = x
""yes; then :
12870 $as_echo "#define HAVE_RL_PRE_INPUT_HOOK 1" >>confdefs.h
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_display_matches_hook in -lreadline" >&5
12877 $as_echo_n "checking for rl_completion_display_matches_hook in -lreadline... " >&6; }
12878 if test "${ac_cv_lib_readline_rl_completion_display_matches_hook+set}" = set; then :
12879 $as_echo_n "(cached) " >&6
12881 ac_check_lib_save_LIBS
=$LIBS
12882 LIBS
="-lreadline $READLINE_LIBS $LIBS"
12883 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12884 /* end confdefs.h. */
12886 /* Override any GCC internal prototype to avoid an error.
12887 Use char because int might match the return type of a GCC
12888 builtin and then its argument prototype would still apply. */
12892 char rl_completion_display_matches_hook ();
12896 return rl_completion_display_matches_hook ();
12901 if ac_fn_c_try_link
"$LINENO"; then :
12902 ac_cv_lib_readline_rl_completion_display_matches_hook
=yes
12904 ac_cv_lib_readline_rl_completion_display_matches_hook
=no
12906 rm -f core conftest.err conftest.
$ac_objext \
12907 conftest
$ac_exeext conftest.
$ac_ext
12908 LIBS
=$ac_check_lib_save_LIBS
12910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5
12911 $as_echo "$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; }
12912 if test "x$ac_cv_lib_readline_rl_completion_display_matches_hook" = x
""yes; then :
12914 $as_echo "#define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1" >>confdefs.h
12919 # check for readline 4.2
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_matches in -lreadline" >&5
12921 $as_echo_n "checking for rl_completion_matches in -lreadline... " >&6; }
12922 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then :
12923 $as_echo_n "(cached) " >&6
12925 ac_check_lib_save_LIBS
=$LIBS
12926 LIBS
="-lreadline $READLINE_LIBS $LIBS"
12927 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12928 /* end confdefs.h. */
12930 /* Override any GCC internal prototype to avoid an error.
12931 Use char because int might match the return type of a GCC
12932 builtin and then its argument prototype would still apply. */
12936 char rl_completion_matches ();
12940 return rl_completion_matches ();
12945 if ac_fn_c_try_link
"$LINENO"; then :
12946 ac_cv_lib_readline_rl_completion_matches
=yes
12948 ac_cv_lib_readline_rl_completion_matches
=no
12950 rm -f core conftest.err conftest.
$ac_objext \
12951 conftest
$ac_exeext conftest.
$ac_ext
12952 LIBS
=$ac_check_lib_save_LIBS
12954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_matches" >&5
12955 $as_echo "$ac_cv_lib_readline_rl_completion_matches" >&6; }
12956 if test "x$ac_cv_lib_readline_rl_completion_matches" = x
""yes; then :
12958 $as_echo "#define HAVE_RL_COMPLETION_MATCHES 1" >>confdefs.h
12963 # also in readline 4.2
12964 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12965 /* end confdefs.h. */
12966 #include <readline/readline.h>
12968 if ac_fn_c_try_cpp
"$LINENO"; then :
12974 rm -f conftest.err conftest.
$ac_ext
12975 if test $have_readline = yes
12977 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12978 /* end confdefs.h. */
12979 #include <readline/readline.h>
12982 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12983 $EGREP "extern int rl_catch_signals;" >/dev
/null
2>&1; then :
12985 $as_echo "#define HAVE_RL_CATCH_SIGNAL 1" >>confdefs.h
12992 # End of readline checks: restore LIBS
12993 LIBS
=$LIBS_no_readline
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken nice()" >&5
12996 $as_echo_n "checking for broken nice()... " >&6; }
12997 if test "${ac_cv_broken_nice+set}" = set; then :
12998 $as_echo_n "(cached) " >&6
13001 if test "$cross_compiling" = yes; then :
13002 ac_cv_broken_nice
=no
13004 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13005 /* end confdefs.h. */
13009 int val1 = nice(1);
13010 if (val1 != -1 && val1 == nice(2))
13016 if ac_fn_c_try_run
"$LINENO"; then :
13017 ac_cv_broken_nice
=yes
13019 ac_cv_broken_nice
=no
13021 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13022 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_nice" >&5
13028 $as_echo "$ac_cv_broken_nice" >&6; }
13029 if test "$ac_cv_broken_nice" = yes
13032 $as_echo "#define HAVE_BROKEN_NICE 1" >>confdefs.h
13036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken poll()" >&5
13037 $as_echo_n "checking for broken poll()... " >&6; }
13038 if test "${ac_cv_broken_poll+set}" = set; then :
13039 $as_echo_n "(cached) " >&6
13041 if test "$cross_compiling" = yes; then :
13042 ac_cv_broken_poll
=no
13044 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13045 /* end confdefs.h. */
13051 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
13056 poll_test = poll(&poll_struct, 1, 0);
13059 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
13066 if ac_fn_c_try_run
"$LINENO"; then :
13067 ac_cv_broken_poll
=yes
13069 ac_cv_broken_poll
=no
13071 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13072 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_poll" >&5
13078 $as_echo "$ac_cv_broken_poll" >&6; }
13079 if test "$ac_cv_broken_poll" = yes
13082 $as_echo "#define HAVE_BROKEN_POLL 1" >>confdefs.h
13086 # Before we can test tzset, we need to check if struct tm has a tm_zone
13087 # (which is not required by ISO C or UNIX spec) and/or if we support
13089 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
13090 #include <$ac_cv_struct_tm>
13093 if test "x$ac_cv_member_struct_tm_tm_zone" = x
""yes; then :
13095 cat >>confdefs.h
<<_ACEOF
13096 #define HAVE_STRUCT_TM_TM_ZONE 1
13102 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
13104 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
13107 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
13109 if test "x$ac_cv_have_decl_tzname" = x
""yes; then :
13115 cat >>confdefs.h
<<_ACEOF
13116 #define HAVE_DECL_TZNAME $ac_have_decl
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
13120 $as_echo_n "checking for tzname... " >&6; }
13121 if test "${ac_cv_var_tzname+set}" = set; then :
13122 $as_echo_n "(cached) " >&6
13124 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13125 /* end confdefs.h. */
13127 #if !HAVE_DECL_TZNAME
13128 extern char *tzname[];
13134 return tzname[0][0];
13139 if ac_fn_c_try_link
"$LINENO"; then :
13140 ac_cv_var_tzname
=yes
13142 ac_cv_var_tzname
=no
13144 rm -f core conftest.err conftest.
$ac_objext \
13145 conftest
$ac_exeext conftest.
$ac_ext
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
13148 $as_echo "$ac_cv_var_tzname" >&6; }
13149 if test $ac_cv_var_tzname = yes; then
13151 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
13157 # check tzset(3) exists and works like we expect it to
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working tzset()" >&5
13159 $as_echo_n "checking for working tzset()... " >&6; }
13160 if test "${ac_cv_working_tzset+set}" = set; then :
13161 $as_echo_n "(cached) " >&6
13164 if test "$cross_compiling" = yes; then :
13165 ac_cv_working_tzset
=no
13167 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13168 /* end confdefs.h. */
13170 #include <stdlib.h>
13172 #include <string.h>
13175 extern char *tzname[];
13180 /* Note that we need to ensure that not only does tzset(3)
13181 do 'something' with localtime, but it works as documented
13182 in the library reference and as expected by the test suite.
13183 This includes making sure that tzname is set properly if
13184 tm->tm_zone does not exist since it is the alternative way
13185 of getting timezone info.
13187 Red Hat 6.2 doesn't understand the southern hemisphere
13188 after New Year's Day.
13191 time_t groundhogday = 1044144000; /* GMT-based */
13192 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
13194 putenv("TZ=UTC+0");
13196 if (localtime(&groundhogday)->tm_hour != 0)
13199 /* For UTC, tzname[1] is sometimes "", sometimes " " */
13200 if (strcmp(tzname[0], "UTC") ||
13201 (tzname[1][0] != 0 && tzname[1][0] != ' '))
13205 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
13207 if (localtime(&groundhogday)->tm_hour != 19)
13210 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
13214 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
13216 if (localtime(&groundhogday)->tm_hour != 11)
13219 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
13223 #if HAVE_STRUCT_TM_TM_ZONE
13224 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
13226 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
13234 if ac_fn_c_try_run
"$LINENO"; then :
13235 ac_cv_working_tzset
=yes
13237 ac_cv_working_tzset
=no
13239 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13240 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_tzset" >&5
13246 $as_echo "$ac_cv_working_tzset" >&6; }
13247 if test "$ac_cv_working_tzset" = yes
13250 $as_echo "#define HAVE_WORKING_TZSET 1" >>confdefs.h
13254 # Look for subsecond timestamps in struct stat
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec in struct stat" >&5
13256 $as_echo_n "checking for tv_nsec in struct stat... " >&6; }
13257 if test "${ac_cv_stat_tv_nsec+set}" = set; then :
13258 $as_echo_n "(cached) " >&6
13260 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13261 /* end confdefs.h. */
13262 #include <sys/stat.h>
13268 st.st_mtim.tv_nsec = 1;
13274 if ac_fn_c_try_compile
"$LINENO"; then :
13275 ac_cv_stat_tv_nsec
=yes
13277 ac_cv_stat_tv_nsec
=no
13279 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec" >&5
13283 $as_echo "$ac_cv_stat_tv_nsec" >&6; }
13284 if test "$ac_cv_stat_tv_nsec" = yes
13287 $as_echo "#define HAVE_STAT_TV_NSEC 1" >>confdefs.h
13291 # Look for BSD style subsecond timestamps in struct stat
13292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec2 in struct stat" >&5
13293 $as_echo_n "checking for tv_nsec2 in struct stat... " >&6; }
13294 if test "${ac_cv_stat_tv_nsec2+set}" = set; then :
13295 $as_echo_n "(cached) " >&6
13297 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13298 /* end confdefs.h. */
13299 #include <sys/stat.h>
13305 st.st_mtimespec.tv_nsec = 1;
13311 if ac_fn_c_try_compile
"$LINENO"; then :
13312 ac_cv_stat_tv_nsec2
=yes
13314 ac_cv_stat_tv_nsec2
=no
13316 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec2" >&5
13320 $as_echo "$ac_cv_stat_tv_nsec2" >&6; }
13321 if test "$ac_cv_stat_tv_nsec2" = yes
13324 $as_echo "#define HAVE_STAT_TV_NSEC2 1" >>confdefs.h
13328 # On HP/UX 11.0, mvwdelch is a block with a return statement
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mvwdelch is an expression" >&5
13330 $as_echo_n "checking whether mvwdelch is an expression... " >&6; }
13331 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then :
13332 $as_echo_n "(cached) " >&6
13334 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13335 /* end confdefs.h. */
13336 #include <curses.h>
13342 rtn = mvwdelch(0,0,0);
13348 if ac_fn_c_try_compile
"$LINENO"; then :
13349 ac_cv_mvwdelch_is_expression
=yes
13351 ac_cv_mvwdelch_is_expression
=no
13353 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mvwdelch_is_expression" >&5
13357 $as_echo "$ac_cv_mvwdelch_is_expression" >&6; }
13359 if test "$ac_cv_mvwdelch_is_expression" = yes
13362 $as_echo "#define MVWDELCH_IS_EXPRESSION 1" >>confdefs.h
13366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether WINDOW has _flags" >&5
13367 $as_echo_n "checking whether WINDOW has _flags... " >&6; }
13368 if test "${ac_cv_window_has_flags+set}" = set; then :
13369 $as_echo_n "(cached) " >&6
13371 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13372 /* end confdefs.h. */
13373 #include <curses.h>
13385 if ac_fn_c_try_compile
"$LINENO"; then :
13386 ac_cv_window_has_flags
=yes
13388 ac_cv_window_has_flags
=no
13390 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_window_has_flags" >&5
13394 $as_echo "$ac_cv_window_has_flags" >&6; }
13397 if test "$ac_cv_window_has_flags" = yes
13400 $as_echo "#define WINDOW_HAS_FLAGS 1" >>confdefs.h
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_term_resized" >&5
13405 $as_echo_n "checking for is_term_resized... " >&6; }
13406 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13407 /* end confdefs.h. */
13408 #include <curses.h>
13412 void *x=is_term_resized
13417 if ac_fn_c_try_compile
"$LINENO"; then :
13419 $as_echo "#define HAVE_CURSES_IS_TERM_RESIZED 1" >>confdefs.h
13421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13422 $as_echo "yes" >&6; }
13424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13425 $as_echo "no" >&6; }
13428 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resize_term" >&5
13431 $as_echo_n "checking for resize_term... " >&6; }
13432 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13433 /* end confdefs.h. */
13434 #include <curses.h>
13438 void *x=resize_term
13443 if ac_fn_c_try_compile
"$LINENO"; then :
13445 $as_echo "#define HAVE_CURSES_RESIZE_TERM 1" >>confdefs.h
13447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13448 $as_echo "yes" >&6; }
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13451 $as_echo "no" >&6; }
13454 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resizeterm" >&5
13457 $as_echo_n "checking for resizeterm... " >&6; }
13458 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13459 /* end confdefs.h. */
13460 #include <curses.h>
13469 if ac_fn_c_try_compile
"$LINENO"; then :
13471 $as_echo "#define HAVE_CURSES_RESIZETERM 1" >>confdefs.h
13473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13474 $as_echo "yes" >&6; }
13476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13477 $as_echo "no" >&6; }
13480 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5
13483 $as_echo_n "checking for /dev/ptmx... " >&6; }
13485 if test -r /dev
/ptmx
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13488 $as_echo "yes" >&6; }
13490 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13494 $as_echo "no" >&6; }
13497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5
13498 $as_echo_n "checking for /dev/ptc... " >&6; }
13500 if test -r /dev
/ptc
13502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13503 $as_echo "yes" >&6; }
13505 $as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13509 $as_echo "no" >&6; }
13512 if test "$have_long_long" = yes
13514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for %lld and %llu printf() format support" >&5
13515 $as_echo_n "checking for %lld and %llu printf() format support... " >&6; }
13516 if test "${ac_cv_have_long_long_format+set}" = set; then :
13517 $as_echo_n "(cached) " >&6
13519 if test "$cross_compiling" = yes; then :
13520 ac_cv_have_long_long_format
=no
13522 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13523 /* end confdefs.h. */
13526 #include <stddef.h>
13527 #include <string.h>
13529 #ifdef HAVE_SYS_TYPES_H
13530 #include <sys/types.h>
13537 if (sprintf(buffer, "%lld", (long long)123) < 0)
13539 if (strcmp(buffer, "123"))
13542 if (sprintf(buffer, "%lld", (long long)-123) < 0)
13544 if (strcmp(buffer, "-123"))
13547 if (sprintf(buffer, "%llu", (unsigned long long)123) < 0)
13549 if (strcmp(buffer, "123"))
13556 if ac_fn_c_try_run
"$LINENO"; then :
13557 ac_cv_have_long_long_format
=yes
13559 ac_cv_have_long_long_format
=no
13561 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13562 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_long_long_format" >&5
13569 $as_echo "$ac_cv_have_long_long_format" >&6; }
13572 if test "$ac_cv_have_long_long_format" = yes
13575 $as_echo "#define PY_FORMAT_LONG_LONG \"ll\"" >>confdefs.h
13579 if test $ac_sys_system = Darwin
13581 LIBS
="$LIBS -framework CoreFoundation"
13585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for %zd printf() format support" >&5
13586 $as_echo_n "checking for %zd printf() format support... " >&6; }
13587 if test "${ac_cv_have_size_t_format+set}" = set; then :
13588 $as_echo_n "(cached) " >&6
13590 if test "$cross_compiling" = yes; then :
13591 ac_cv_have_size_t_format
="cross -- assuming yes"
13594 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13595 /* end confdefs.h. */
13598 #include <stddef.h>
13599 #include <string.h>
13601 #ifdef HAVE_SYS_TYPES_H
13602 #include <sys/types.h>
13605 #ifdef HAVE_SSIZE_T
13606 typedef ssize_t Py_ssize_t;
13607 #elif SIZEOF_VOID_P == SIZEOF_LONG
13608 typedef long Py_ssize_t;
13610 typedef int Py_ssize_t;
13617 if(sprintf(buffer, "%zd", (size_t)123) < 0)
13620 if (strcmp(buffer, "123"))
13623 if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
13626 if (strcmp(buffer, "-123"))
13633 if ac_fn_c_try_run
"$LINENO"; then :
13634 ac_cv_have_size_t_format
=yes
13636 ac_cv_have_size_t_format
=no
13638 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13639 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_size_t_format" >&5
13644 $as_echo "$ac_cv_have_size_t_format" >&6; }
13645 if test "$ac_cv_have_size_t_format" != no
; then
13647 $as_echo "#define PY_FORMAT_SIZE_T \"z\"" >>confdefs.h
13651 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
13652 #ifdef HAVE_SYS_TYPES_H
13653 #include <sys/types.h>
13655 #ifdef HAVE_SYS_SOCKET_H
13656 #include <sys/socket.h>
13660 if test "x$ac_cv_type_socklen_t" = x
""yes; then :
13664 $as_echo "#define socklen_t int" >>confdefs.h
13671 for h
in `(cd $srcdir;echo Python/thread_*.h)`
13673 THREADHEADERS
="$THREADHEADERS \$(srcdir)/$h"
13677 SRCDIRS
="Parser Grammar Objects Python Modules Mac"
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build directories" >&5
13679 $as_echo_n "checking for build directories... " >&6; }
13680 for dir
in $SRCDIRS; do
13681 if test ! -d $dir; then
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13686 $as_echo "done" >&6; }
13688 # generate output files
13689 ac_config_files
="$ac_config_files Makefile.pre Modules/Setup.config Misc/python.pc"
13691 cat >confcache
<<\_ACEOF
13692 # This file is a shell script that caches the results of configure
13693 # tests run on this system so they can be shared between configure
13694 # scripts and configure runs, see configure's option --config-cache.
13695 # It is not useful on other systems. If it contains results you don't
13696 # want to keep, you may remove or edit it.
13698 # config.status only pays attention to the cache file if you give it
13699 # the --recheck option to rerun configure.
13701 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13702 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13703 # following values.
13707 # The following way of writing the cache mishandles newlines in values,
13708 # but we know of no workaround that is simple, portable, and efficient.
13709 # So, we kill variables containing newlines.
13710 # Ultrix sh set writes to stderr and can't be redirected directly,
13711 # and sets the high bit in the cache file unless we assign to the vars.
13713 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13714 eval ac_val
=\$
$ac_var
13718 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13719 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13722 _ | IFS | as_nl
) ;; #(
13723 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
13724 *) { eval $ac_var=; unset $ac_var;} ;;
13730 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13731 *${as_nl}ac_space
=\
*)
13732 # `set' does not quote correctly, so add quotes: double-quote
13733 # substitution turns \\\\ into \\, and sed turns \\ into \.
13736 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13739 # `set' quotes correctly as required by POSIX, so do not add quotes.
13740 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13749 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13751 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13753 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
13754 if test -w "$cache_file"; then
13755 test "x$cache_file" != "x/dev/null" &&
13756 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13757 $as_echo "$as_me: updating cache $cache_file" >&6;}
13758 cat confcache
>$cache_file
13760 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13761 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13766 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
13767 # Let make expand exec_prefix.
13768 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
13770 DEFS
=-DHAVE_CONFIG_H
13774 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
13775 # 1. Remove the extension, and $U if already installed.
13776 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
13777 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
13778 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13779 # will be set to the directory where LIBOBJS objects are built.
13780 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13781 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
13783 LIBOBJS
=$ac_libobjs
13785 LTLIBOBJS
=$ac_ltlibobjs
13790 : ${CONFIG_STATUS=./config.status}
13792 ac_clean_files_save
=$ac_clean_files
13793 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
13794 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13795 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13797 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13799 # Generated by $as_me.
13800 # Run this file to recreate the current configuration.
13801 # Compiler output produced by configure, useful for debugging
13802 # configure, is in config.log if it exists.
13805 ac_cs_recheck=false
13808 SHELL=\${CONFIG_SHELL-$SHELL}
13811 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
13812 ## -------------------- ##
13813 ## M4sh Initialization. ##
13814 ## -------------------- ##
13816 # Be more Bourne compatible
13817 DUALCASE
=1; export DUALCASE
# for MKS sh
13818 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
13821 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13822 # is contrary to our usage. Disable this feature.
13823 alias -g '${1+"$@"}'='"$@"'
13824 setopt NO_GLOB_SUBST
13826 case `(set -o) 2>/dev/null` in #(
13838 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13839 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13840 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13841 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13842 # Prefer a ksh shell builtin over an external printf program on Solaris,
13843 # but without wasting forks for bash or zsh.
13844 if test -z "$BASH_VERSION$ZSH_VERSION" \
13845 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13846 as_echo='print
-r --'
13847 as_echo_n='print
-rn --'
13848 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13849 as_echo='printf %s
\n'
13850 as_echo_n='printf %s
'
13852 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13853 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
13854 as_echo_n='/usr
/ucb
/echo -n'
13856 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13857 as_echo_n_body='eval
13861 expr "X$arg" : "X\\(.*\\)$as_nl";
13862 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13864 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
13866 export as_echo_n_body
13867 as_echo_n='sh
-c $as_echo_n_body as_echo
'
13869 export as_echo_body
13870 as_echo='sh
-c $as_echo_body as_echo
'
13873 # The user is always right.
13874 if test "${PATH_SEPARATOR+set}" != set; then
13876 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13877 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13884 # We need space, tab and new line, in precisely that order. Quoting is
13885 # there to prevent editors from complaining about space-tab.
13886 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13887 # splitting by setting IFS to empty value.)
13890 # Find who we are. Look in the path if we contain no directory separator.
13892 *[\\/]* ) as_myself=$0 ;;
13893 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13894 for as_dir in $PATH
13897 test -z "$as_dir" && as_dir=.
13898 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13904 # We did not find ourselves, most probably we were run as `sh COMMAND'
13905 # in which case we are not to be found in the path.
13906 if test "x$as_myself" = x
; then
13909 if test ! -f "$as_myself"; then
13910 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13914 # Unset variables that we do not need and which cause bugs (e.g. in
13915 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13916 # suppresses any "Segmentation fault" message there. '((' could
13917 # trigger a bug in pdksh 5.2.14.
13918 for as_var
in BASH_ENV ENV MAIL MAILPATH
13919 do eval test x\
${$as_var+set} = xset \
13920 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
13933 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
13936 # as_fn_error ERROR [LINENO LOG_FD]
13937 # ---------------------------------
13938 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13939 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13940 # script with status $?, using 1 if that was 0.
13943 as_status
=$?
; test $as_status -eq 0 && as_status
=1
13945 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
13946 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
13948 $as_echo "$as_me: error: $1" >&2
13949 as_fn_exit
$as_status
13953 # as_fn_set_status STATUS
13954 # -----------------------
13955 # Set $? to STATUS, without forking.
13956 as_fn_set_status
()
13959 } # as_fn_set_status
13961 # as_fn_exit STATUS
13962 # -----------------
13963 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13967 as_fn_set_status
$1
13973 # Portably unset VAR.
13976 { eval $1=; unset $1;}
13978 as_unset
=as_fn_unset
13979 # as_fn_append VAR VALUE
13980 # ----------------------
13981 # Append the text in VALUE to the end of the definition contained in VAR. Take
13982 # advantage of any shell optimizations that allow amortized linear growth over
13983 # repeated appends, instead of the typical quadratic growth present in naive
13985 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
13986 eval 'as_fn_append ()
13997 # as_fn_arith ARG...
13998 # ------------------
13999 # Perform arithmetic evaluation on the ARGs, and store the result in the
14000 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14001 # must be portable across $(()) and expr.
14002 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
14003 eval 'as_fn_arith ()
14010 as_val
=`expr "$@" || test $? -eq 1`
14015 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
14016 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
14022 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14023 as_basename
=basename
14028 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
14034 as_me
=`$as_basename -- "$0" ||
14035 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14036 X"$0" : 'X\(//\)$' \| \
14037 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14039 sed '/^.*\/\([^/][^/]*\)\/*$/{
14053 # Avoid depending upon Character Ranges.
14054 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
14055 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14056 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
14057 as_cr_digits
='0123456789'
14058 as_cr_alnum
=$as_cr_Letters$as_cr_digits
14060 ECHO_C
= ECHO_N
= ECHO_T
=
14061 case `echo -n x` in #(((((
14063 case `echo 'xy\c'` in
14064 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
14066 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
14073 rm -f conf$$ conf$$.exe conf$$.
file
14074 if test -d conf$$.dir
; then
14075 rm -f conf$$.dir
/conf$$.
file
14078 mkdir conf$$.dir
2>/dev
/null
14080 if (echo >conf$$.
file) 2>/dev
/null
; then
14081 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
14083 # ... but there are two gotchas:
14084 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14085 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14086 # In both cases, we have to default to `cp -p'.
14087 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
14089 elif ln conf$$.
file conf$$
2>/dev
/null
; then
14097 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
14098 rmdir conf$$.dir
2>/dev
/null
14103 # Create "$as_dir" as a directory, including parents if necessary.
14108 -*) as_dir
=.
/$as_dir;;
14110 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
14114 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14115 *) as_qdir
=$as_dir;;
14117 as_dirs
="'$as_qdir' $as_dirs"
14118 as_dir
=`$as_dirname -- "$as_dir" ||
14119 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14120 X"$as_dir" : 'X\(//\)[^/]' \| \
14121 X"$as_dir" : 'X\(//\)$' \| \
14122 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14123 $as_echo X"$as_dir" |
14124 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14128 /^X\(\/\/\)[^/].*/{
14141 test -d "$as_dir" && break
14143 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
14144 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
14148 if mkdir
-p .
2>/dev
/null
; then
14149 as_mkdir_p
='mkdir -p "$as_dir"'
14151 test -d .
/-p && rmdir .
/-p
14155 if test -x / >/dev
/null
2>&1; then
14156 as_test_x
='test -x'
14158 if ls -dL / >/dev
/null
2>&1; then
14165 if test -d "$1"; then
14171 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14172 ???[sx]*):;;*)false;;esac;fi
14176 as_executable_p
=$as_test_x
14178 # Sed expression to map a string onto a valid CPP name.
14179 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14181 # Sed expression to map a string onto a valid variable name.
14182 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14186 ## ----------------------------------- ##
14187 ## Main body of $CONFIG_STATUS script. ##
14188 ## ----------------------------------- ##
14190 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
14192 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14193 # Save the log message, to keep $0 and so on meaningful, and to
14194 # report actual input values of CONFIG_FILES etc. instead of their
14195 # values after options handling.
14197 This file was extended by python $as_me 2.7, which was
14198 generated by GNU Autoconf 2.65. Invocation command line was
14200 CONFIG_FILES = $CONFIG_FILES
14201 CONFIG_HEADERS = $CONFIG_HEADERS
14202 CONFIG_LINKS = $CONFIG_LINKS
14203 CONFIG_COMMANDS = $CONFIG_COMMANDS
14206 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14211 case $ac_config_files in *"
14212 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
14215 case $ac_config_headers in *"
14216 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
14220 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14221 # Files that config.status was made for.
14222 config_files="$ac_config_files"
14223 config_headers="$ac_config_headers"
14227 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14229 \`$as_me' instantiates files and other configuration actions
14230 from templates according to the current configuration. Unless the files
14231 and actions are specified as TAGs, all are instantiated by default.
14233 Usage: $0 [OPTION]... [TAG]...
14235 -h, --help print this help, then exit
14236 -V, --version print version number and configuration settings, then exit
14237 --config print configuration, then exit
14238 -q, --quiet, --silent
14239 do not print progress messages
14240 -d, --debug don't remove temporary files
14241 --recheck update $as_me by reconfiguring in the same conditions
14242 --file=FILE[:TEMPLATE]
14243 instantiate the configuration file FILE
14244 --header=FILE[:TEMPLATE]
14245 instantiate the configuration header FILE
14247 Configuration files:
14250 Configuration headers:
14253 Report bugs to <http://bugs.python.org/>."
14256 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14257 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14259 python config.status 2.7
14260 configured by $0, generated by GNU Autoconf 2.65,
14261 with options \\"\$ac_cs_config\\"
14263 Copyright (C) 2009 Free Software Foundation, Inc.
14264 This config.status script is free software; the Free Software Foundation
14265 gives unlimited permission to copy, distribute and modify it."
14270 test -n "\$AWK" || AWK=awk
14273 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14274 # The default lists apply if the user does not specify any file.
14280 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
14281 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
14292 # Handling of the options.
14293 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
14295 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
14296 $as_echo "$ac_cs_version"; exit ;;
14297 --config |
--confi |
--conf |
--con |
--co |
--c )
14298 $as_echo "$ac_cs_config"; exit ;;
14299 --debug |
--debu |
--deb |
--de |
--d |
-d )
14301 --file |
--fil |
--fi |
--f )
14304 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14306 as_fn_append CONFIG_FILES
" '$ac_optarg'"
14307 ac_need_defaults
=false
;;
14308 --header |
--heade |
--head |
--hea )
14311 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14313 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
14314 ac_need_defaults
=false
;;
14316 # Conflict between --help and --header
14317 as_fn_error
"ambiguous option: \`$1'
14318 Try \`$0 --help' for more information.";;
14319 --help |
--hel |
-h )
14320 $as_echo "$ac_cs_usage"; exit ;;
14321 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
14322 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
14325 # This is an error.
14326 -*) as_fn_error
"unrecognized option: \`$1'
14327 Try \`$0 --help' for more information." ;;
14329 *) as_fn_append ac_config_targets
" $1"
14330 ac_need_defaults
=false
;;
14336 ac_configure_extra_args
=
14338 if $ac_cs_silent; then
14340 ac_configure_extra_args
="$ac_configure_extra_args --silent"
14344 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14345 if \$ac_cs_recheck; then
14346 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14348 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14349 CONFIG_SHELL='$SHELL'
14350 export CONFIG_SHELL
14355 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14359 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14360 ## Running $as_me. ##
14366 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14369 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14371 # Handling of arguments.
14372 for ac_config_target
in $ac_config_targets
14374 case $ac_config_target in
14375 "pyconfig.h") CONFIG_HEADERS
="$CONFIG_HEADERS pyconfig.h" ;;
14376 "Mac/Makefile") CONFIG_FILES
="$CONFIG_FILES Mac/Makefile" ;;
14377 "Mac/PythonLauncher/Makefile") CONFIG_FILES
="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
14378 "Mac/IDLE/Makefile") CONFIG_FILES
="$CONFIG_FILES Mac/IDLE/Makefile" ;;
14379 "Mac/Resources/framework/Info.plist") CONFIG_FILES
="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;;
14380 "Mac/Resources/app/Info.plist") CONFIG_FILES
="$CONFIG_FILES Mac/Resources/app/Info.plist" ;;
14381 "Makefile.pre") CONFIG_FILES
="$CONFIG_FILES Makefile.pre" ;;
14382 "Modules/Setup.config") CONFIG_FILES
="$CONFIG_FILES Modules/Setup.config" ;;
14383 "Misc/python.pc") CONFIG_FILES
="$CONFIG_FILES Misc/python.pc" ;;
14385 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14390 # If the user did not use the arguments to specify the items to instantiate,
14391 # then the envvar interface is used. Set only those that are not.
14392 # We use the long form for the default assignment because of an extremely
14393 # bizarre bug on SunOS 4.1.3.
14394 if $ac_need_defaults; then
14395 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
14396 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
14399 # Have a temporary directory for convenience. Make it in the build tree
14400 # simply because there is no reason against having it here, and in addition,
14401 # creating and moving files from /tmp can sometimes cause problems.
14402 # Hook for its removal unless debugging.
14403 # Note that there is a small window in which the directory will not be cleaned:
14404 # after its creation but before its name has been assigned to `$tmp'.
14408 trap 'exit_status=$?
14409 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14411 trap 'as_fn_exit 1' 1 2 13 15
14413 # Create a (secure) tmp directory for tmp files.
14416 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14417 test -n "$tmp" && test -d "$tmp"
14420 tmp
=.
/conf$$
-$RANDOM
14421 (umask 077 && mkdir
"$tmp")
14422 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
14424 # Set up the scripts for CONFIG_FILES section.
14425 # No need to generate them if there are no CONFIG_FILES.
14426 # This happens for instance with `./config.status config.h'.
14427 if test -n "$CONFIG_FILES"; then
14430 ac_cr
=`echo X | tr X '\015'`
14431 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14432 # But we know of no other shell where ac_cr would be empty at this
14433 # point, so we can use a bashism as a fallback.
14434 if test "x$ac_cr" = x
; then
14435 eval ac_cr
=\$
\'\\r
\'
14437 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14438 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14441 ac_cs_awk_cr
=$ac_cr
14444 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14449 echo "cat >conf$$subs.awk <<_ACEOF" &&
14450 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14452 } >conf$$subs.sh ||
14453 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
14454 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14456 for ac_last_try in false false false false false :; do
14457 . ./conf$$subs.sh ||
14458 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
14460 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
14461 if test $ac_delim_n = $ac_delim_num; then
14463 elif $ac_last_try; then
14464 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
14466 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
14469 rm -f conf$$subs.sh
14471 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14472 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
14476 s/^/S["/; s
/!.
*/"]=/
14486 s/\(.\{148\}\)..*/\1/
14488 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
14493 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
14500 s/\(.\{148\}\)..*/\1/
14502 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
14506 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
14511 ' <conf$$subs.awk | sed '
14516 ' >>$CONFIG_STATUS || ac_write_fail=1
14517 rm -f conf$$subs.awk
14518 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14520 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
14521 for (key in S) S_is_set[key] = 1
14527 nfields = split(line, field, "@
")
14529 len = length(field[1])
14530 for (i = 2; i < nfields; i++) {
14532 keylen = length(key)
14533 if (S_is_set[key]) {
14535 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14536 len += length(value) + length(field[++i])
14547 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14548 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14549 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
14552 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
14553 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
14556 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14557 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
14558 # trailing colons and then remove the whole line if VPATH becomes empty
14559 # (actually we leave an empty line to preserve line numbers).
14560 if test "x
$srcdir" = x.; then
14561 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14562 s/:*\$(srcdir):*/:/
14563 s/:*\${srcdir}:*/:/
14565 s/^\([^=]*=[ ]*\):*/\1/
14571 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14572 fi # test -n "$CONFIG_FILES"
14574 # Set up the scripts for CONFIG_HEADERS section.
14575 # No need to generate them if there are no CONFIG_HEADERS.
14576 # This happens for instance with `./config.status Makefile'.
14577 if test -n "$CONFIG_HEADERS"; then
14578 cat >"$tmp/defines.
awk" <<\_ACAWK ||
14582 # Transform confdefs.h into an awk script `defines.awk', embedded as
14583 # here-document in config.status, that substitutes the proper values into
14584 # config.h.in to produce config.h.
14586 # Create a delimiter string that does not exist in confdefs.h, to ease
14587 # handling of long lines.
14589 for ac_last_try in false false :; do
14590 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
14591 if test -z "$ac_t"; then
14593 elif $ac_last_try; then
14594 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
14596 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
14600 # For the awk script, D is an array of macro values keyed by name,
14601 # likewise P contains macro parameters if any. Preserve backslash
14602 # newline sequences.
14604 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14606 s/.\{148\}/&'"$ac_delim"'/g
14609 s/^[ ]*#[ ]*define[ ][ ]*/ /
14616 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
14618 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
14622 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
14623 D["\
1"]=" \
3\\\\\\n
"\\/p
14625 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
14630 s/.\{148\}/&'"$ac_delim"'/g
14635 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
14638 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
14640 ' <confdefs.h | sed '
14641 s/'"$ac_delim"'/"\\\
14642 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14644 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14645 for (key in D) D_is_set[key] = 1
14648 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14650 split(line, arg, " ")
14651 if (arg[1] == "#") {
14655 defundef
= substr
(arg
[1], 2)
14658 split(mac1
, mac2
, "(") #)
14660 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
14661 if (D_is_set
[macro
]) {
14662 # Preserve the white space surrounding the "#".
14663 print prefix
"define", macro P
[macro
] D
[macro
]
14666 # Replace #undef with comments. This is necessary, for example,
14667 # in the case of _POSIX_SOURCE, which is predefined and required
14668 # on some systems where configure will not decide to define it.
14669 if (defundef
== "undef") {
14670 print
"/*", prefix defundef
, macro
, "*/"
14678 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14679 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
14680 fi # test -n "$CONFIG_HEADERS"
14683 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS "
14688 :[FHLC
]) ac_mode
=$ac_tag; continue;;
14690 case $ac_mode$ac_tag in
14692 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
14693 :[FH
]-) ac_tag
=-:-;;
14694 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
14711 -) ac_f
="$tmp/stdin";;
14712 *) # Look for the file first in the build tree, then in the source tree
14713 # (if the path is not absolute). The absolute path cannot be DOS-style,
14714 # because $ac_f cannot contain `:'.
14718 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
14720 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
14722 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14723 as_fn_append ac_file_inputs
" '$ac_f'"
14726 # Let's still pretend it is `configure' which instantiates (i.e., don't
14727 # use $as_me), people would be surprised to read:
14728 # /* config.h. Generated by config.status. */
14729 configure_input
='Generated from '`
14730 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14732 if test x
"$ac_file" != x-
; then
14733 configure_input
="$ac_file. $configure_input"
14734 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14735 $as_echo "$as_me: creating $ac_file" >&6;}
14737 # Neutralize special characters interpreted by sed in replacement strings.
14738 case $configure_input in #(
14739 *\
&* |
*\|
* |
*\\* )
14740 ac_sed_conf_input
=`$as_echo "$configure_input" |
14741 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14742 *) ac_sed_conf_input
=$configure_input;;
14746 *:-:* |
*:-) cat >"$tmp/stdin" \
14747 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
14752 ac_dir
=`$as_dirname -- "$ac_file" ||
14753 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14754 X"$ac_file" : 'X\(//\)[^/]' \| \
14755 X"$ac_file" : 'X\(//\)$' \| \
14756 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14757 $as_echo X"$ac_file" |
14758 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14762 /^X\(\/\/\)[^/].*/{
14775 as_dir
="$ac_dir"; as_fn_mkdir_p
14779 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
14781 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14782 # A ".." for each directory in $ac_dir_suffix.
14783 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14784 case $ac_top_builddir_sub in
14785 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
14786 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
14789 ac_abs_top_builddir
=$ac_pwd
14790 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
14791 # for backward compatibility:
14792 ac_top_builddir
=$ac_top_build_prefix
14795 .
) # We are building in place.
14797 ac_top_srcdir
=$ac_top_builddir_sub
14798 ac_abs_top_srcdir
=$ac_pwd ;;
14799 [\\/]* | ?
:[\\/]* ) # Absolute name.
14800 ac_srcdir
=$srcdir$ac_dir_suffix;
14801 ac_top_srcdir
=$srcdir
14802 ac_abs_top_srcdir
=$srcdir ;;
14803 *) # Relative name.
14804 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
14805 ac_top_srcdir
=$ac_top_build_prefix$srcdir
14806 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
14808 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
14818 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
14819 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
14823 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14824 # If the template does not know about datarootdir, expand it.
14825 # FIXME: This hack should be removed a few years after 2.60.
14826 ac_datarootdir_hack
=; ac_datarootdir_seen
=
14837 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14838 *datarootdir
*) ac_datarootdir_seen
=yes;;
14839 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
14840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14841 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14843 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14844 ac_datarootdir_hack='
14845 s&@datadir@&$datadir&g
14846 s&@docdir@&$docdir&g
14847 s&@infodir@&$infodir&g
14848 s&@localedir@&$localedir&g
14849 s&@mandir@&$mandir&g
14850 s&\\\${datarootdir}&$datarootdir&g' ;;
14854 # Neutralize VPATH when `$srcdir' = `.'.
14855 # Shell code in configure.ac might set extrasub.
14856 # FIXME: do we really want to maintain this feature?
14857 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14858 ac_sed_extra="$ac_vpsub
14861 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14863 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
14864 s|@configure_input@|
$ac_sed_conf_input|
;t t
14865 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
14866 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
14867 s
&@srcdir@
&$ac_srcdir&;t t
14868 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
14869 s
&@top_srcdir@
&$ac_top_srcdir&;t t
14870 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
14871 s
&@builddir@
&$ac_builddir&;t t
14872 s
&@abs_builddir@
&$ac_abs_builddir&;t t
14873 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
14874 s
&@INSTALL@
&$ac_INSTALL&;t t
14875 $ac_datarootdir_hack
14877 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
14878 || as_fn_error "could not create
$ac_file" "$LINENO" 5
14880 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14881 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
14882 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
14883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
14884 which seems to be undefined. Please make sure it is defined." >&5
14885 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
14886 which seems to be undefined. Please make sure it is defined." >&2;}
14890 -) cat "$tmp/out" && rm -f "$tmp/out";;
14891 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14893 || as_fn_error "could not create $ac_file" "$LINENO" 5
14899 if test x"$ac_file" != x-; then
14901 $as_echo "/* $configure_input */" \
14902 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14903 } >"$tmp/config.h" \
14904 || as_fn_error "could not create $ac_file" "$LINENO" 5
14905 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14906 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14907 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14910 mv "$tmp/config.h" "$ac_file" \
14911 || as_fn_error "could not create $ac_file" "$LINENO" 5
14914 $as_echo "/* $configure_input */" \
14915 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14916 || as_fn_error "could not create -" "$LINENO" 5
14928 ac_clean_files=$ac_clean_files_save
14930 test $ac_write_fail = 0 ||
14931 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
14934 # configure is writing to config.log, and then calls config.status.
14935 # config.status does its own redirection, appending to config.log.
14936 # Unfortunately, on DOS this fails, as config.log is still kept open
14937 # by configure, so config.status won't be able to
write to it
; its
14938 # output is simply discarded. So we exec the FD to /dev/null,
14939 # effectively closing config.log, so it can be properly (re)opened and
14940 # appended to by config.status. When coming back to configure, we
14941 # need to make the FD available again.
14942 if test "$no_create" != yes; then
14944 ac_config_status_args
=
14945 test "$silent" = yes &&
14946 ac_config_status_args
="$ac_config_status_args --quiet"
14948 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
14950 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14951 # would make configure fail if this is the last instruction.
14952 $ac_cs_success || as_fn_exit $?
14954 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
14955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14956 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14960 echo "creating Modules/Setup"
14961 if test ! -f Modules
/Setup
14963 cp $srcdir/Modules
/Setup.dist Modules
/Setup
14966 echo "creating Modules/Setup.local"
14967 if test ! -f Modules
/Setup.
local
14969 echo "# Edit this file for local setup changes" >Modules
/Setup.
local
14972 echo "creating Makefile"
14973 $SHELL $srcdir/Modules
/makesetup
-c $srcdir/Modules
/config.c.
in \
14974 -s Modules Modules
/Setup.config \
14975 Modules
/Setup.
local Modules
/Setup
14977 case $ac_sys_system in
14979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
14981 Support for BeOS is deprecated as of Python 2.6.
14982 See PEP 11 for the gory details.
14984 $as_echo "$as_me: WARNING:
14986 Support for BeOS is deprecated as of Python 2.6.
14987 See PEP 11 for the gory details.
14993 mv config.c Modules