Issue #7673: Fix security vulnerability (CVE-2010-2089) in the audioop module,
[python/dscho.git] / configure
blob8f53afec8065a8bc1206db18beb33c4232b0d30c
1 #! /bin/sh
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,
11 # Inc.
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 :
23 emulate sh
24 NULLCMD=:
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+"$@"}'='"$@"'
28 setopt NO_GLOB_SUBST
29 else
30 case `(set -o) 2>/dev/null` in #(
31 *posix*) :
32 set -o posix ;; #(
33 *) :
35 esac
39 as_nl='
41 export as_nl
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
50 as_echo='print -r --'
51 as_echo_n='print -rn --'
52 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 as_echo='printf %s\n'
54 as_echo_n='printf %s'
55 else
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'
59 else
60 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
61 as_echo_n_body='eval
62 arg=$1;
63 case $arg in #(
64 *"$as_nl"*)
65 expr "X$arg" : "X\\(.*\\)$as_nl";
66 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 esac;
68 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 export as_echo_n_body
71 as_echo_n='sh -c $as_echo_n_body as_echo'
73 export as_echo_body
74 as_echo='sh -c $as_echo_body as_echo'
77 # The user is always right.
78 if test "${PATH_SEPARATOR+set}" != set; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
87 # IFS
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.)
92 IFS=" "" $as_nl"
94 # Find who we are. Look in the path if we contain no directory separator.
95 case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104 IFS=$as_save_IFS
107 esac
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
111 as_myself=$0
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
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 || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
136 # CDPATH.
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 :
141 emulate sh
142 NULLCMD=:
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+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147 else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
153 esac
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; }
162 exitcode=0
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 :
169 else
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 :
179 as_have_required=yes
180 else
181 as_have_required=no
183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
185 else
186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187 as_found=false
188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
190 IFS=$as_save_IFS
191 test -z "$as_dir" && as_dir=.
192 as_found=:
193 case $as_dir in #(
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 :
202 break 2
205 done;;
206 esac
207 as_found=false
208 done
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
212 fi; }
213 IFS=$as_save_IFS
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.
220 BASH_ENV=/dev/null
221 ENV=/dev/null
222 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
223 export CONFIG_SHELL
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."
233 else
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."
240 exit 1
244 SHELL=${CONFIG_SHELL-/bin/sh}
245 export SHELL
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 ## --------------------- ##
253 # as_fn_unset VAR
254 # ---------------
255 # Portably unset VAR.
256 as_fn_unset ()
258 { eval $1=; unset $1;}
260 as_unset=as_fn_unset
262 # as_fn_set_status STATUS
263 # -----------------------
264 # Set $? to STATUS, without forking.
265 as_fn_set_status ()
267 return $1
268 } # as_fn_set_status
270 # as_fn_exit STATUS
271 # -----------------
272 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
273 as_fn_exit ()
275 set +e
276 as_fn_set_status $1
277 exit $1
278 } # as_fn_exit
280 # as_fn_mkdir_p
281 # -------------
282 # Create "$as_dir" as a directory, including parents if necessary.
283 as_fn_mkdir_p ()
286 case $as_dir in #(
287 -*) as_dir=./$as_dir;;
288 esac
289 test -d "$as_dir" || eval $as_mkdir_p || {
290 as_dirs=
291 while :; do
292 case $as_dir in #(
293 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
294 *) as_qdir=$as_dir;;
295 esac
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
304 s//\1/
307 /^X\(\/\/\)[^/].*/{
308 s//\1/
311 /^X\(\/\/\)$/{
312 s//\1/
315 /^X\(\/\).*/{
316 s//\1/
319 s/.*/./; q'`
320 test -d "$as_dir" && break
321 done
322 test -z "$as_dirs" || eval "mkdir $as_dirs"
323 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326 } # as_fn_mkdir_p
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
332 # implementations.
333 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
334 eval 'as_fn_append ()
336 eval $1+=\$2
338 else
339 as_fn_append ()
341 eval $1=\$$1\$2
343 fi # as_fn_append
345 # as_fn_arith ARG...
346 # ------------------
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 :
351 eval 'as_fn_arith ()
353 as_val=$(( $* ))
355 else
356 as_fn_arith ()
358 as_val=`expr "$@" || test $? -eq 1`
360 fi # as_fn_arith
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.
368 as_fn_error ()
370 as_status=$?; test $as_status -eq 0 && as_status=1
371 if test "$3"; then
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
377 } # as_fn_error
379 if expr a : '\(a\)' >/dev/null 2>&1 &&
380 test "X`expr 00001 : '.*\(...\)'`" = X001; then
381 as_expr=expr
382 else
383 as_expr=false
386 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
387 as_basename=basename
388 else
389 as_basename=false
392 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
393 as_dirname=dirname
394 else
395 as_dirname=false
398 as_me=`$as_basename -- "$0" ||
399 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
400 X"$0" : 'X\(//\)$' \| \
401 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
402 $as_echo X/"$0" |
403 sed '/^.*\/\([^/][^/]*\)\/*$/{
404 s//\1/
407 /^X\/\(\/\/\)$/{
408 s//\1/
411 /^X\/\(\/\).*/{
412 s//\1/
415 s/.*/./; q'`
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. :-)
430 sed -n '
432 /[$]LINENO/=
433 ' <$as_myself |
434 sed '
435 s/[$]LINENO.*/&-/
436 t lineno
438 :lineno
440 :loop
441 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
442 t loop
443 s/-\n.*//
444 ' >$as_me.lineno &&
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).
451 . "./$as_me.lineno"
452 # Exit status is that of the last command.
453 exit
456 ECHO_C= ECHO_N= ECHO_T=
457 case `echo -n x` in #(((((
458 -n*)
459 case `echo 'xy\c'` in
460 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
461 xy) ECHO_C='\c';;
462 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
463 ECHO_T=' ';;
464 esac;;
466 ECHO_N='-n';;
467 esac
469 rm -f conf$$ conf$$.exe conf$$.file
470 if test -d conf$$.dir; then
471 rm -f conf$$.dir/conf$$.file
472 else
473 rm -f conf$$.dir
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
478 as_ln_s='ln -s'
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 ||
484 as_ln_s='cp -p'
485 elif ln conf$$.file conf$$ 2>/dev/null; then
486 as_ln_s=ln
487 else
488 as_ln_s='cp -p'
490 else
491 as_ln_s='cp -p'
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"'
498 else
499 test -d ./-p && rmdir ./-p
500 as_mkdir_p=false
503 if test -x / >/dev/null 2>&1; then
504 as_test_x='test -x'
505 else
506 if ls -dL / >/dev/null 2>&1; then
507 as_ls_L_option=L
508 else
509 as_ls_L_option=
511 as_test_x='
512 eval sh -c '\''
513 if test -d "$1"; then
514 test -d "$1/.";
515 else
516 case $1 in #(
517 -*)set "./$1";;
518 esac;
519 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
520 ???[sx]*):;;*)false;;esac;fi
521 '\'' sh
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
534 exec 6>&1
536 # Name of the host.
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`
542 # Initializations.
544 ac_default_prefix=/usr/local
545 ac_clean_files=
546 ac_config_libobj_dir=.
547 LIBOBJS=
548 cross_compiling=no
549 subdirs=
550 MFLAGS=
551 MAKEFLAGS=
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/'
559 PACKAGE_URL=''
561 ac_unique_file="Include/object.h"
562 # Factoring default headers for most tests.
563 ac_includes_default="\
564 #include <stdio.h>
565 #ifdef HAVE_SYS_TYPES_H
566 # include <sys/types.h>
567 #endif
568 #ifdef HAVE_SYS_STAT_H
569 # include <sys/stat.h>
570 #endif
571 #ifdef STDC_HEADERS
572 # include <stdlib.h>
573 # include <stddef.h>
574 #else
575 # ifdef HAVE_STDLIB_H
576 # include <stdlib.h>
577 # endif
578 #endif
579 #ifdef HAVE_STRING_H
580 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
581 # include <memory.h>
582 # endif
583 # include <string.h>
584 #endif
585 #ifdef HAVE_STRINGS_H
586 # include <strings.h>
587 #endif
588 #ifdef HAVE_INTTYPES_H
589 # include <inttypes.h>
590 #endif
591 #ifdef HAVE_STDINT_H
592 # include <stdint.h>
593 #endif
594 #ifdef HAVE_UNISTD_H
595 # include <unistd.h>
596 #endif"
598 ac_subst_vars='LTLIBOBJS
599 SRCDIRS
600 THREADHEADERS
601 UNICODE_OBJS
602 LIBC
603 LIBM
604 HAVE_GETHOSTBYNAME
605 HAVE_GETHOSTBYNAME_R
606 HAVE_GETHOSTBYNAME_R_3_ARG
607 HAVE_GETHOSTBYNAME_R_5_ARG
608 HAVE_GETHOSTBYNAME_R_6_ARG
609 LIBOBJS
610 TRUE
611 MACHDEP_OBJS
612 DYNLOADFILE
613 DLINCLDIR
614 THREADOBJ
615 LDLAST
616 USE_THREAD_MODULE
617 SIGNAL_OBJS
618 USE_SIGNAL_MODULE
619 LIBFFI_INCLUDEDIR
620 PKG_CONFIG
621 SHLIBS
622 CFLAGSFORSHARED
623 LINKFORSHARED
624 CCSHARED
625 BLDSHARED
626 LDCXXSHARED
627 LDSHARED
629 LIBTOOL_CRUFT
630 OTHER_LIBTOOL_OPT
631 UNIVERSAL_ARCH_FLAGS
632 BASECFLAGS
635 INSTALL_DATA
636 INSTALL_SCRIPT
637 INSTALL_PROGRAM
638 SVNVERSION
639 ARFLAGS
641 RANLIB
642 GNULD
643 LINKCC
644 RUNSHARED
645 INSTSONAME
646 LDLIBRARYDIR
647 BLDLIBRARY
648 DLLLIBRARY
649 LDLIBRARY
650 LIBRARY
651 BUILDEXEEXT
652 EGREP
653 GREP
655 MAINCC
657 OBJEXT
658 EXEEXT
659 ac_ct_CC
660 CPPFLAGS
661 LDFLAGS
662 CFLAGS
664 EXPORT_MACOSX_DEPLOYMENT_TARGET
665 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
666 EXTRAMACHDEPPATH
667 EXTRAPLATDIR
668 SGI_ABI
669 MACHDEP
670 FRAMEWORKINSTALLAPPSPREFIX
671 FRAMEWORKUNIXTOOLSPREFIX
672 FRAMEWORKALTINSTALLLAST
673 FRAMEWORKALTINSTALLFIRST
674 FRAMEWORKINSTALLLAST
675 FRAMEWORKINSTALLFIRST
676 PYTHONFRAMEWORKINSTALLDIR
677 PYTHONFRAMEWORKPREFIX
678 PYTHONFRAMEWORKDIR
679 PYTHONFRAMEWORKIDENTIFIER
680 PYTHONFRAMEWORK
681 LIPO_32BIT_FLAGS
682 ARCH_RUN_32BIT
683 UNIVERSALSDK
684 CONFIG_ARGS
685 SOVERSION
686 VERSION
687 target_alias
688 host_alias
689 build_alias
690 LIBS
691 ECHO_T
692 ECHO_N
693 ECHO_C
694 DEFS
695 mandir
696 localedir
697 libdir
698 psdir
699 pdfdir
700 dvidir
701 htmldir
702 infodir
703 docdir
704 oldincludedir
705 includedir
706 localstatedir
707 sharedstatedir
708 sysconfdir
709 datadir
710 datarootdir
711 libexecdir
712 sbindir
713 bindir
714 program_transform_name
715 prefix
716 exec_prefix
717 PACKAGE_URL
718 PACKAGE_BUGREPORT
719 PACKAGE_STRING
720 PACKAGE_VERSION
721 PACKAGE_TARNAME
722 PACKAGE_NAME
723 PATH_SEPARATOR
724 SHELL'
725 ac_subst_files=''
726 ac_user_opts='
727 enable_option_checking
728 enable_universalsdk
729 with_universal_archs
730 with_framework_name
731 enable_framework
732 with_gcc
733 with_cxx_main
734 with_suffix
735 enable_shared
736 enable_profiling
737 with_pydebug
738 enable_toolbox_glue
739 with_libs
740 with_system_expat
741 with_system_ffi
742 with_dbmliborder
743 with_signal_module
744 with_dec_threads
745 with_threads
746 with_thread
747 with_pth
748 enable_ipv6
749 with_doc_strings
750 with_tsc
751 with_pymalloc
752 with_valgrind
753 with_wctype_functions
754 with_fpectl
755 with_libm
756 with_libc
757 enable_big_digits
758 enable_unicode
760 ac_precious_vars='build_alias
761 host_alias
762 target_alias
764 CFLAGS
765 LDFLAGS
766 LIBS
767 CPPFLAGS
768 CPP'
771 # Initialize some variables set by options.
772 ac_init_help=
773 ac_init_version=false
774 ac_unrecognized_opts=
775 ac_unrecognized_sep=
776 # The variables have the same names as the options, with
777 # dashes changed to underlines.
778 cache_file=/dev/null
779 exec_prefix=NONE
780 no_create=
781 no_recursion=
782 prefix=NONE
783 program_prefix=NONE
784 program_suffix=NONE
785 program_transform_name=s,x,x,
786 silent=
787 site=
788 srcdir=
789 verbose=
790 x_includes=NONE
791 x_libraries=NONE
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'
811 htmldir='${docdir}'
812 dvidir='${docdir}'
813 pdfdir='${docdir}'
814 psdir='${docdir}'
815 libdir='${exec_prefix}/lib'
816 localedir='${datarootdir}/locale'
817 mandir='${datarootdir}/man'
819 ac_prev=
820 ac_dashdash=
821 for ac_option
823 # If the previous option needs an argument, assign it.
824 if test -n "$ac_prev"; then
825 eval $ac_prev=\$ac_option
826 ac_prev=
827 continue
830 case $ac_option in
831 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
832 *) ac_optarg=yes ;;
833 esac
835 # Accept the important Cygnus configure options, so we can diagnose typos.
837 case $ac_dashdash$ac_option in
839 ac_dashdash=yes ;;
841 -bindir | --bindir | --bindi | --bind | --bin | --bi)
842 ac_prev=bindir ;;
843 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
844 bindir=$ac_optarg ;;
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 ;;
858 --config-cache | -C)
859 cache_file=config.cache ;;
861 -datadir | --datadir | --datadi | --datad)
862 ac_prev=datadir ;;
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
882 "enable_$ac_useropt"
883 "*) ;;
884 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
885 ac_unrecognized_sep=', ';;
886 esac
887 eval enable_$ac_useropt=no ;;
889 -docdir | --docdir | --docdi | --doc | --do)
890 ac_prev=docdir ;;
891 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
892 docdir=$ac_optarg ;;
894 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
895 ac_prev=dvidir ;;
896 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
897 dvidir=$ac_optarg ;;
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
908 "enable_$ac_useropt"
909 "*) ;;
910 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
911 ac_unrecognized_sep=', ';;
912 esac
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.
926 with_gas=yes ;;
928 -help | --help | --hel | --he | -h)
929 ac_init_help=long ;;
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)
941 ac_prev=htmldir ;;
942 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
943 | --ht=*)
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)
954 ac_prev=infodir ;;
955 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
956 infodir=$ac_optarg ;;
958 -libdir | --libdir | --libdi | --libd)
959 ac_prev=libdir ;;
960 -libdir=* | --libdir=* | --libdi=* | --libd=*)
961 libdir=$ac_optarg ;;
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)
971 ac_prev=localedir ;;
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)
983 ac_prev=mandir ;;
984 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
985 mandir=$ac_optarg ;;
987 -nfp | --nfp | --nf)
988 # Obsolete; use --without-fp.
989 with_fp=no ;;
991 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
992 | --no-cr | --no-c | -n)
993 no_create=yes ;;
995 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
996 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
997 no_recursion=yes ;;
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)
1009 ac_prev=prefix ;;
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)
1045 ac_prev=pdfdir ;;
1046 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1047 pdfdir=$ac_optarg ;;
1049 -psdir | --psdir | --psdi | --psd | --ps)
1050 ac_prev=psdir ;;
1051 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1052 psdir=$ac_optarg ;;
1054 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1055 | -silent | --silent | --silen | --sile | --sil)
1056 silent=yes ;;
1058 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1059 ac_prev=sbindir ;;
1060 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1061 | --sbi=* | --sb=*)
1062 sbindir=$ac_optarg ;;
1064 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1065 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1066 | --sharedst | --shareds | --shared | --share | --shar \
1067 | --sha | --sh)
1068 ac_prev=sharedstatedir ;;
1069 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1070 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1071 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1072 | --sha=* | --sh=*)
1073 sharedstatedir=$ac_optarg ;;
1075 -site | --site | --sit)
1076 ac_prev=site ;;
1077 -site=* | --site=* | --sit=*)
1078 site=$ac_optarg ;;
1080 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1081 ac_prev=srcdir ;;
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)
1098 verbose=yes ;;
1100 -version | --version | --versio | --versi | --vers | -V)
1101 ac_init_version=: ;;
1103 -with-* | --with-*)
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
1112 "with_$ac_useropt"
1113 "*) ;;
1114 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1115 ac_unrecognized_sep=', ';;
1116 esac
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
1128 "with_$ac_useropt"
1129 "*) ;;
1130 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1131 ac_unrecognized_sep=', ';;
1132 esac
1133 eval with_$ac_useropt=no ;;
1135 --x)
1136 # Obsolete; use --with-x.
1137 with_x=yes ;;
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."
1157 *=*)
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'" ;;
1163 esac
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}
1175 esac
1176 done
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
1185 no) ;;
1186 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1187 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1188 esac
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.
1199 case $ac_val in
1200 */ )
1201 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1202 eval $ac_var=\$ac_val;;
1203 esac
1204 # Be sure to have absolute directory names.
1205 case $ac_val in
1206 [\\/$]* | ?:[\\/]* ) continue;;
1207 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1208 esac
1209 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1210 done
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.
1215 build=$build_alias
1216 host=$host_alias
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
1226 cross_compiling=yes
1230 ac_tool_prefix=
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1255 s//\1/
1258 /^X\(\/\/\)[^/].*/{
1259 s//\1/
1262 /^X\(\/\/\)$/{
1263 s//\1/
1266 /^X\(\/\).*/{
1267 s//\1/
1270 s/.*/./; q'`
1271 srcdir=$ac_confdir
1272 if test ! -r "$srcdir/$ac_unique_file"; then
1273 srcdir=..
1275 else
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"
1283 ac_abs_confdir=`(
1284 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1285 pwd)`
1286 # When building in place, set srcdir=.
1287 if test "$ac_abs_confdir" = "$ac_pwd"; then
1288 srcdir=.
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.
1293 case $srcdir in
1294 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1295 esac
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}
1301 done
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.
1309 cat <<_ACEOF
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.
1319 Configuration:
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
1334 [PREFIX]
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]
1363 _ACEOF
1365 cat <<\_ACEOF
1366 _ACEOF
1369 if test -n "$ac_init_help"; then
1370 case $ac_init_help in
1371 short | recursive ) echo "Configuration of python 2.7:";;
1372 esac
1373 cat <<\_ACEOF
1375 Optional Features:
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)
1393 Optional Packages:
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++
1405 compiler
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
1410 library
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>
1440 CPP C preprocessor
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/>.
1446 _ACEOF
1447 ac_status=$?
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"; } ||
1455 continue
1456 ac_builddir=.
1458 case "$ac_dir" in
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/ ;;
1467 esac ;;
1468 esac
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
1474 case $srcdir in
1475 .) # We are building in place.
1476 ac_srcdir=.
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 ;;
1483 *) # Relative name.
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 ;;
1487 esac
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
1493 echo &&
1494 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1495 elif test -f "$ac_srcdir/configure"; then
1496 echo &&
1497 $SHELL "$ac_srcdir/configure" --help=recursive
1498 else
1499 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1500 fi || ac_status=$?
1501 cd "$ac_pwd" || { ac_status=$?; break; }
1502 done
1505 test -n "$ac_init_help" && exit $ac_status
1506 if $ac_init_version; then
1507 cat <<\_ACEOF
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.
1514 _ACEOF
1515 exit
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"
1530 case "(($ac_try" in
1531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1532 *) ac_try_echo=$ac_try;;
1533 esac
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
1537 ac_status=$?
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 :
1548 ac_retval=0
1549 else
1550 $as_echo "$as_me: failed program was:" >&5
1551 sed 's/^/| /' conftest.$ac_ext >&5
1553 ac_retval=1
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.
1563 ac_fn_c_try_cpp ()
1565 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1566 if { { ac_try="$ac_cpp conftest.$ac_ext"
1567 case "(($ac_try" in
1568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1569 *) ac_try_echo=$ac_try;;
1570 esac
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
1574 ac_status=$?
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
1584 }; then :
1585 ac_retval=0
1586 else
1587 $as_echo "$as_me: failed program was:" >&5
1588 sed 's/^/| /' conftest.$ac_ext >&5
1590 ac_retval=1
1592 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1593 as_fn_set_status $ac_retval
1595 } # ac_fn_c_try_cpp
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
1601 # accordingly.
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
1611 eval ac_res=\$$3
1612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1613 $as_echo "$ac_res" >&6; }
1614 else
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. */
1621 #include <$2>
1622 _ACEOF
1623 if ac_fn_c_try_compile "$LINENO"; then :
1624 ac_header_compiler=yes
1625 else
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. */
1637 #include <$2>
1638 _ACEOF
1639 if ac_fn_c_try_cpp "$LINENO"; then :
1640 ac_header_preproc=yes
1641 else
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 #((
1650 yes:no: )
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;}
1656 no:yes:* )
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;}
1667 ( cat <<\_ASBOX
1668 ## -------------------------------------- ##
1669 ## Report this to http://bugs.python.org/ ##
1670 ## -------------------------------------- ##
1671 _ASBOX
1672 ) | sed "s/^/$as_me: WARNING: /" >&2
1674 esac
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
1679 else
1680 eval "$3=\$ac_header_compiler"
1682 eval ac_res=\$$3
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.
1694 ac_fn_c_try_run ()
1696 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1697 if { { ac_try="$ac_link"
1698 case "(($ac_try" in
1699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1700 *) ac_try_echo=$ac_try;;
1701 esac
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
1705 ac_status=$?
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;;
1711 esac
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
1715 ac_status=$?
1716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1717 test $ac_status = 0; }; }; then :
1718 ac_retval=0
1719 else
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
1730 } # ac_fn_c_try_run
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
1743 else
1744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1745 /* end confdefs.h. */
1747 #include <$2>
1748 _ACEOF
1749 if ac_fn_c_try_compile "$LINENO"; then :
1750 eval "$3=yes"
1751 else
1752 eval "$3=no"
1754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1756 eval ac_res=\$$3
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.
1766 ac_fn_c_try_link ()
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"
1771 case "(($ac_try" in
1772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1773 *) ac_try_echo=$ac_try;;
1774 esac
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
1778 ac_status=$?
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
1791 }; then :
1792 ac_retval=0
1793 else
1794 $as_echo "$as_me: failed program was:" >&5
1795 sed 's/^/| /' conftest.$ac_ext >&5
1797 ac_retval=1
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
1820 else
1821 eval "$3=no"
1822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1823 /* end confdefs.h. */
1826 main ()
1828 if (sizeof ($2))
1829 return 0;
1831 return 0;
1833 _ACEOF
1834 if ac_fn_c_try_compile "$LINENO"; then :
1835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1836 /* end confdefs.h. */
1839 main ()
1841 if (sizeof (($2)))
1842 return 0;
1844 return 0;
1846 _ACEOF
1847 if ac_fn_c_try_compile "$LINENO"; then :
1849 else
1850 eval "$3=yes"
1852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1856 eval ac_res=\$$3
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
1866 # accordingly.
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
1874 else
1875 eval "$3=no"
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
1884 main ()
1886 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1887 test_array [0] = 0
1890 return 0;
1892 _ACEOF
1893 if ac_fn_c_try_compile "$LINENO"; then :
1894 case $ac_type in #(
1895 uint$2_t) :
1896 eval "$3=yes" ;; #(
1897 *) :
1898 eval "$3=\$ac_type" ;;
1899 esac
1901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1902 eval as_val=\$$3
1903 if test "x$as_val" = x""no; then :
1905 else
1906 break
1908 done
1910 eval ac_res=\$$3
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
1920 # accordingly.
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
1928 else
1929 eval "$3=no"
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
1938 main ()
1940 static int test_array [1 - 2 * !(enum { N = $2 / 2 - 1 };
1941 0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
1942 test_array [0] = 0
1945 return 0;
1947 _ACEOF
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
1953 main ()
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))];
1958 test_array [0] = 0
1961 return 0;
1963 _ACEOF
1964 if ac_fn_c_try_compile "$LINENO"; then :
1966 else
1967 case $ac_type in #(
1968 int$2_t) :
1969 eval "$3=yes" ;; #(
1970 *) :
1971 eval "$3=\$ac_type" ;;
1972 esac
1974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1977 eval as_val=\$$3
1978 if test "x$as_val" = x""no; then :
1980 else
1981 break
1983 done
1985 eval ac_res=\$$3
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
1996 # computed
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. */
2006 main ()
2008 static int test_array [1 - 2 * !(($2) >= 0)];
2009 test_array [0] = 0
2012 return 0;
2014 _ACEOF
2015 if ac_fn_c_try_compile "$LINENO"; then :
2016 ac_lo=0 ac_mid=0
2017 while :; do
2018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2019 /* end confdefs.h. */
2022 main ()
2024 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2025 test_array [0] = 0
2028 return 0;
2030 _ACEOF
2031 if ac_fn_c_try_compile "$LINENO"; then :
2032 ac_hi=$ac_mid; break
2033 else
2034 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2035 if test $ac_lo -le $ac_mid; then
2036 ac_lo= ac_hi=
2037 break
2039 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2042 done
2043 else
2044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2045 /* end confdefs.h. */
2048 main ()
2050 static int test_array [1 - 2 * !(($2) < 0)];
2051 test_array [0] = 0
2054 return 0;
2056 _ACEOF
2057 if ac_fn_c_try_compile "$LINENO"; then :
2058 ac_hi=-1 ac_mid=-1
2059 while :; do
2060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2061 /* end confdefs.h. */
2064 main ()
2066 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2067 test_array [0] = 0
2070 return 0;
2072 _ACEOF
2073 if ac_fn_c_try_compile "$LINENO"; then :
2074 ac_lo=$ac_mid; break
2075 else
2076 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2077 if test $ac_mid -le $ac_hi; then
2078 ac_lo= ac_hi=
2079 break
2081 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2084 done
2085 else
2086 ac_lo= ac_hi=
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. */
2098 main ()
2100 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2101 test_array [0] = 0
2104 return 0;
2106 _ACEOF
2107 if ac_fn_c_try_compile "$LINENO"; then :
2108 ac_hi=$ac_mid
2109 else
2110 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2113 done
2114 case $ac_lo in #((
2115 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2116 '') ac_retval=1 ;;
2117 esac
2118 else
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; }
2124 #include <stdio.h>
2125 #include <stdlib.h>
2127 main ()
2130 FILE *f = fopen ("conftest.val", "w");
2131 if (! f)
2132 return 1;
2133 if (($2) < 0)
2135 long int i = longval ();
2136 if (i != ($2))
2137 return 1;
2138 fprintf (f, "%ld", i);
2140 else
2142 unsigned long int i = ulongval ();
2143 if (i != ($2))
2144 return 1;
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;
2152 return 0;
2154 _ACEOF
2155 if ac_fn_c_try_run "$LINENO"; then :
2156 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2157 else
2158 ac_retval=1
2160 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2161 conftest.$ac_objext conftest.beam conftest.$ac_ext
2162 rm -f conftest.val
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
2180 else
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. */
2192 #ifdef __STDC__
2193 # include <limits.h>
2194 #else
2195 # include <assert.h>
2196 #endif
2198 #undef $2
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. */
2203 #ifdef __cplusplus
2204 extern "C"
2205 #endif
2206 char $2 ();
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
2211 choke me
2212 #endif
2215 main ()
2217 return $2 ();
2219 return 0;
2221 _ACEOF
2222 if ac_fn_c_try_link "$LINENO"; then :
2223 eval "$3=yes"
2224 else
2225 eval "$3=no"
2227 rm -f core conftest.err conftest.$ac_objext \
2228 conftest$ac_exeext conftest.$ac_ext
2230 eval ac_res=\$$3
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
2248 else
2249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2250 /* end confdefs.h. */
2253 main ()
2255 static $2 ac_aggr;
2256 if (ac_aggr.$3)
2257 return 0;
2259 return 0;
2261 _ACEOF
2262 if ac_fn_c_try_compile "$LINENO"; then :
2263 eval "$4=yes"
2264 else
2265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2266 /* end confdefs.h. */
2269 main ()
2271 static $2 ac_aggr;
2272 if (sizeof ac_aggr.$3)
2273 return 0;
2275 return 0;
2277 _ACEOF
2278 if ac_fn_c_try_compile "$LINENO"; then :
2279 eval "$4=yes"
2280 else
2281 eval "$4=no"
2283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2287 eval ac_res=\$$4
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
2304 else
2305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2306 /* end confdefs.h. */
2309 main ()
2311 #ifndef $2
2312 (void) $2;
2313 #endif
2316 return 0;
2318 _ACEOF
2319 if ac_fn_c_try_compile "$LINENO"; then :
2320 eval "$3=yes"
2321 else
2322 eval "$3=no"
2324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2326 eval ac_res=\$$3
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
2339 $ $0 $@
2341 _ACEOF
2342 exec 5>>config.log
2344 cat <<_ASUNAME
2345 ## --------- ##
2346 ## Platform. ##
2347 ## --------- ##
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`
2366 _ASUNAME
2368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2369 for as_dir in $PATH
2371 IFS=$as_save_IFS
2372 test -z "$as_dir" && as_dir=.
2373 $as_echo "PATH: $as_dir"
2374 done
2375 IFS=$as_save_IFS
2377 } >&5
2379 cat >&5 <<_ACEOF
2382 ## ----------- ##
2383 ## Core tests. ##
2384 ## ----------- ##
2386 _ACEOF
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.
2394 ac_configure_args=
2395 ac_configure_args0=
2396 ac_configure_args1=
2397 ac_must_keep_next=false
2398 for ac_pass in 1 2
2400 for ac_arg
2402 case $ac_arg in
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)
2406 continue ;;
2407 *\'*)
2408 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2409 esac
2410 case $ac_pass in
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.
2416 else
2417 case $ac_arg in
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 ;;
2424 esac
2426 -* ) ac_must_keep_next=true ;;
2427 esac
2429 as_fn_append ac_configure_args " '$ac_arg'"
2431 esac
2432 done
2433 done
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.
2445 echo
2447 cat <<\_ASBOX
2448 ## ---------------- ##
2449 ## Cache variables. ##
2450 ## ---------------- ##
2451 _ASBOX
2452 echo
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
2457 case $ac_val in #(
2458 *${as_nl}*)
2459 case $ac_var in #(
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;} ;;
2462 esac
2463 case $ac_var in #(
2464 _ | IFS | as_nl) ;; #(
2465 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2466 *) { eval $ac_var=; unset $ac_var;} ;;
2467 esac ;;
2468 esac
2469 done
2470 (set) 2>&1 |
2471 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2472 *${as_nl}ac_space=\ *)
2473 sed -n \
2474 "s/'\''/'\''\\\\'\'''\''/g;
2475 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2476 ;; #(
2478 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2480 esac |
2481 sort
2483 echo
2485 cat <<\_ASBOX
2486 ## ----------------- ##
2487 ## Output variables. ##
2488 ## ----------------- ##
2489 _ASBOX
2490 echo
2491 for ac_var in $ac_subst_vars
2493 eval ac_val=\$$ac_var
2494 case $ac_val in
2495 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2496 esac
2497 $as_echo "$ac_var='\''$ac_val'\''"
2498 done | sort
2499 echo
2501 if test -n "$ac_subst_files"; then
2502 cat <<\_ASBOX
2503 ## ------------------- ##
2504 ## File substitutions. ##
2505 ## ------------------- ##
2506 _ASBOX
2507 echo
2508 for ac_var in $ac_subst_files
2510 eval ac_val=\$$ac_var
2511 case $ac_val in
2512 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2513 esac
2514 $as_echo "$ac_var='\''$ac_val'\''"
2515 done | sort
2516 echo
2519 if test -s confdefs.h; then
2520 cat <<\_ASBOX
2521 ## ----------- ##
2522 ## confdefs.h. ##
2523 ## ----------- ##
2524 _ASBOX
2525 echo
2526 cat confdefs.h
2527 echo
2529 test "$ac_signal" != 0 &&
2530 $as_echo "$as_me: caught signal $ac_signal"
2531 $as_echo "$as_me: exit $exit_status"
2532 } >&5
2533 rm -f core *.core core.conftest.* &&
2534 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2535 exit $exit_status
2537 for ac_signal in 1 2 13 15; do
2538 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2539 done
2540 ac_signal=0
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"
2551 _ACEOF
2553 cat >>confdefs.h <<_ACEOF
2554 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2555 _ACEOF
2557 cat >>confdefs.h <<_ACEOF
2558 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2559 _ACEOF
2561 cat >>confdefs.h <<_ACEOF
2562 #define PACKAGE_STRING "$PACKAGE_STRING"
2563 _ACEOF
2565 cat >>confdefs.h <<_ACEOF
2566 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2567 _ACEOF
2569 cat >>confdefs.h <<_ACEOF
2570 #define PACKAGE_URL "$PACKAGE_URL"
2571 _ACEOF
2574 # Let the site file select an alternate cache file if it wants to.
2575 # Prefer an explicitly selected file to automatically selected ones.
2576 ac_site_file1=NONE
2577 ac_site_file2=NONE
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
2583 else
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
2594 . "$ac_site_file"
2596 done
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;}
2604 case $cache_file in
2605 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2606 *) . "./$cache_file";;
2607 esac
2609 else
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2611 $as_echo "$as_me: creating cache $cache_file" >&6;}
2612 >$cache_file
2615 # Check that the precious variables saved in the cache have kept the same
2616 # value.
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
2624 set,)
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=: ;;
2628 ,set)
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=: ;;
2632 ,);;
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=:
2642 else
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;}
2651 fi;;
2652 esac
2653 # Pass precious variables to config.status.
2654 if test "$ac_new_set" = set; then
2655 case $ac_new_val in
2656 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2657 *) ac_arg=$ac_var=$ac_new_val ;;
2658 esac
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'" ;;
2662 esac
2664 done
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 ## -------------------- ##
2676 ac_ext=c
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
2698 rm confdefs.h
2699 mv confdefs.h.new confdefs.h
2702 VERSION=2.7
2705 SOVERSION=1.0
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
2715 # them.
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
2722 # them.
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
2735 # them.
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;
2752 case $enableval in
2753 yes)
2754 enableval=/Developer/SDKs/MacOSX10.4u.sdk
2755 if test ! -d "${enableval}"
2756 then
2757 enableval=/
2760 esac
2761 case $enableval in
2763 UNIVERSALSDK=
2764 enable_universalsdk=
2767 UNIVERSALSDK=$enableval
2768 if test ! -d "${UNIVERSALSDK}"
2769 then
2770 as_fn_error "--enable-universalsdk specifies non-existing SDK: ${UNIVERSALSDK}" "$LINENO" 5
2773 esac
2776 else
2778 UNIVERSALSDK=
2779 enable_universalsdk=
2783 if test -n "${UNIVERSALSDK}"
2784 then
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSALSDK}" >&5
2786 $as_echo "${UNIVERSALSDK}" >&6; }
2787 else
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
2808 else
2809 as_fn_error "--with-universal-archs without --enable-universalsdk. See Mac/README" "$LINENO" 5
2812 else
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
2828 else
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'`
2835 else
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;
2846 case $enableval in
2847 yes)
2848 enableval=/Library/Frameworks
2849 esac
2850 case $enableval in
2852 PYTHONFRAMEWORK=
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}"
2862 else
2863 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
2865 enable_framework=
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}"
2879 else
2880 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
2883 case "${enableval}" in
2884 /System*)
2885 FRAMEWORKINSTALLAPPSPREFIX="/Applications"
2886 if test "${prefix}" = "NONE" ; then
2887 # See below
2888 FRAMEWORKUNIXTOOLSPREFIX="/usr"
2892 /Library*)
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"
2915 esac
2917 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
2919 # Add files for Mac specific code to the list of output
2920 # files:
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"
2931 esac
2933 else
2935 PYTHONFRAMEWORK=
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}"
2945 else
2946 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
2948 enable_framework=
2965 ##AC_ARG_WITH(dyld,
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"
2974 then
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`
2979 else
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"
2988 case $MACHDEP in
2989 cygwin*) MACHDEP="cygwin";;
2990 darwin*) MACHDEP="darwin";;
2991 atheos*) MACHDEP="atheos";;
2992 irix646) MACHDEP="irix6";;
2993 '') MACHDEP="unknown";;
2994 esac
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
3021 OpenBSD/4.[789])
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
3031 # Marc Recht
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.
3039 SunOS/*)
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.
3048 SCO_SV/3.2)
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.
3052 FreeBSD/4.*)
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
3061 Darwin/[6789].*)
3062 define_xopen_source=no;;
3063 Darwin/1[0-9].*)
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.
3068 AIX/4)
3069 define_xopen_source=no;;
3070 AIX/5)
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.
3077 QNX/6.3.2)
3078 define_xopen_source=no
3081 esac
3083 if test $define_xopen_source = yes
3084 then
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"
3114 then
3115 CC="cc $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"
3128 then
3129 case $MACHDEP in
3130 darwin)
3131 EXTRAPLATDIR="\$(PLATMACDIRS)"
3132 EXTRAMACHDEPPATH="\$(PLATMACPATH)"
3135 EXTRAPLATDIR=""
3136 EXTRAMACHDEPPATH=""
3138 esac
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
3145 # needs to check it
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 :
3172 withval=$with_gcc;
3173 case $withval in
3174 no) CC=${CC:-cc}
3175 without_gcc=yes;;
3176 yes) CC=gcc
3177 without_gcc=no;;
3178 *) CC=$withval
3179 without_gcc=$withval;;
3180 esac
3181 else
3183 case $ac_sys_system in
3184 AIX*) CC=cc_r
3185 without_gcc=;;
3186 BeOS*)
3187 case $BE_HOST_CPU in
3188 ppc)
3189 CC=mwcc
3190 without_gcc=yes
3191 BASECFLAGS="$BASECFLAGS -export pragma"
3192 OPT="$OPT -O"
3193 LDFLAGS="$LDFLAGS -nodup"
3195 x86)
3196 CC=gcc
3197 without_gcc=no
3198 OPT="$OPT -O"
3201 as_fn_error "Unknown BeOS platform \"$BE_HOST_CPU\"" "$LINENO" 5
3203 esac
3204 AR="\$(srcdir)/Modules/ar_beos"
3205 RANLIB=:
3207 *) without_gcc=no;;
3208 esac
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"
3216 then
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"
3224 ac_ext=c
3225 ac_cpp='$CPP $CPPFLAGS'
3226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
3236 else
3237 if test -n "$CC"; then
3238 ac_cv_prog_CC="$CC" # Let the user override the test.
3239 else
3240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3241 for as_dir in $PATH
3243 IFS=$as_save_IFS
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
3249 break 2
3251 done
3252 done
3253 IFS=$as_save_IFS
3257 CC=$ac_cv_prog_CC
3258 if test -n "$CC"; then
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3260 $as_echo "$CC" >&6; }
3261 else
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
3269 ac_ct_CC=$CC
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
3276 else
3277 if test -n "$ac_ct_CC"; then
3278 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3279 else
3280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3281 for as_dir in $PATH
3283 IFS=$as_save_IFS
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
3289 break 2
3291 done
3292 done
3293 IFS=$as_save_IFS
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; }
3301 else
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
3307 CC=""
3308 else
3309 case $cross_compiling:$ac_tool_warned in
3310 yes:)
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 ;;
3314 esac
3315 CC=$ac_ct_CC
3317 else
3318 CC="$ac_cv_prog_CC"
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
3329 else
3330 if test -n "$CC"; then
3331 ac_cv_prog_CC="$CC" # Let the user override the test.
3332 else
3333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3334 for as_dir in $PATH
3336 IFS=$as_save_IFS
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
3342 break 2
3344 done
3345 done
3346 IFS=$as_save_IFS
3350 CC=$ac_cv_prog_CC
3351 if test -n "$CC"; then
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3353 $as_echo "$CC" >&6; }
3354 else
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
3369 else
3370 if test -n "$CC"; then
3371 ac_cv_prog_CC="$CC" # Let the user override the test.
3372 else
3373 ac_prog_rejected=no
3374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3375 for as_dir in $PATH
3377 IFS=$as_save_IFS
3378 test -z "$as_dir" && as_dir=.
3379 for ac_exec_ext in '' $ac_executable_extensions; do
3380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3381 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3382 ac_prog_rejected=yes
3383 continue
3385 ac_cv_prog_CC="cc"
3386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3387 break 2
3389 done
3390 done
3391 IFS=$as_save_IFS
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
3396 shift
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.
3401 shift
3402 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3407 CC=$ac_cv_prog_CC
3408 if test -n "$CC"; then
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3410 $as_echo "$CC" >&6; }
3411 else
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
3428 else
3429 if test -n "$CC"; then
3430 ac_cv_prog_CC="$CC" # Let the user override the test.
3431 else
3432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3433 for as_dir in $PATH
3435 IFS=$as_save_IFS
3436 test -z "$as_dir" && as_dir=.
3437 for ac_exec_ext in '' $ac_executable_extensions; do
3438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3439 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3441 break 2
3443 done
3444 done
3445 IFS=$as_save_IFS
3449 CC=$ac_cv_prog_CC
3450 if test -n "$CC"; then
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3452 $as_echo "$CC" >&6; }
3453 else
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3455 $as_echo "no" >&6; }
3459 test -n "$CC" && break
3460 done
3462 if test -z "$CC"; then
3463 ac_ct_CC=$CC
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
3472 else
3473 if test -n "$ac_ct_CC"; then
3474 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3475 else
3476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3477 for as_dir in $PATH
3479 IFS=$as_save_IFS
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
3485 break 2
3487 done
3488 done
3489 IFS=$as_save_IFS
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; }
3497 else
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3499 $as_echo "no" >&6; }
3503 test -n "$ac_ct_CC" && break
3504 done
3506 if test "x$ac_ct_CC" = x; then
3507 CC=""
3508 else
3509 case $cross_compiling:$ac_tool_warned in
3510 yes:)
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 ;;
3514 esac
3515 CC=$ac_ct_CC
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
3529 set X $ac_compile
3530 ac_compiler=$2
3531 for ac_option in --version -v -V -qversion; do
3532 { { ac_try="$ac_compiler $ac_option >&5"
3533 case "(($ac_try" in
3534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3535 *) ac_try_echo=$ac_try;;
3536 esac
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
3540 ac_status=$?
3541 if test -s conftest.err; then
3542 sed '10a\
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; }
3550 done
3552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3553 /* end confdefs.h. */
3556 main ()
3560 return 0;
3562 _ACEOF
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
3567 # of exeext.
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.*"
3575 ac_rmfiles=
3576 for ac_file in $ac_files
3578 case $ac_file in
3579 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3580 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3581 esac
3582 done
3583 rm -f $ac_rmfiles
3585 if { { ac_try="$ac_link_default"
3586 case "(($ac_try" in
3587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3588 *) ac_try_echo=$ac_try;;
3589 esac
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
3593 ac_status=$?
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
3600 # Autoconf.
3601 for ac_file in $ac_files ''
3603 test -f "$ac_file" || continue
3604 case $ac_file in
3605 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3607 [ab].out )
3608 # We found the default executable, but exeext='' is most
3609 # certainly right.
3610 break;;
3611 *.* )
3612 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3613 then :; else
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
3620 # actually working.
3621 break;;
3623 break;;
3624 esac
3625 done
3626 test "$ac_cv_exeext" = no && ac_cv_exeext=
3628 else
3629 ac_file=''
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; }; }
3642 else
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"
3657 case "(($ac_try" in
3658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3659 *) ac_try_echo=$ac_try;;
3660 esac
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
3664 ac_status=$?
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
3670 # `rm'.
3671 for ac_file in conftest.exe conftest conftest.*; do
3672 test -f "$ac_file" || continue
3673 case $ac_file in
3674 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3675 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3676 break;;
3677 * ) break;;
3678 esac
3679 done
3680 else
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
3692 ac_exeext=$EXEEXT
3693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3694 /* end confdefs.h. */
3695 #include <stdio.h>
3697 main ()
3699 FILE *f = fopen ("conftest.out", "w");
3700 return ferror (f) || fclose (f) != 0;
3703 return 0;
3705 _ACEOF
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"
3713 case "(($ac_try" in
3714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3715 *) ac_try_echo=$ac_try;;
3716 esac
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
3720 ac_status=$?
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;;
3727 esac
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
3731 ac_status=$?
3732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3733 test $ac_status = 0; }; }; then
3734 cross_compiling=no
3735 else
3736 if test "$cross_compiling" = maybe; then
3737 cross_compiling=yes
3738 else
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
3756 else
3757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3758 /* end confdefs.h. */
3761 main ()
3765 return 0;
3767 _ACEOF
3768 rm -f conftest.o conftest.obj
3769 if { { ac_try="$ac_compile"
3770 case "(($ac_try" in
3771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3772 *) ac_try_echo=$ac_try;;
3773 esac
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
3777 ac_status=$?
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;
3782 case $ac_file in
3783 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3784 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3785 break;;
3786 esac
3787 done
3788 else
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
3802 ac_objext=$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
3807 else
3808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3809 /* end confdefs.h. */
3812 main ()
3814 #ifndef __GNUC__
3815 choke me
3816 #endif
3819 return 0;
3821 _ACEOF
3822 if ac_fn_c_try_compile "$LINENO"; then :
3823 ac_compiler_gnu=yes
3824 else
3825 ac_compiler_gnu=no
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
3834 GCC=yes
3835 else
3836 GCC=
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
3844 else
3845 ac_save_c_werror_flag=$ac_c_werror_flag
3846 ac_c_werror_flag=yes
3847 ac_cv_prog_cc_g=no
3848 CFLAGS="-g"
3849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3850 /* end confdefs.h. */
3853 main ()
3857 return 0;
3859 _ACEOF
3860 if ac_fn_c_try_compile "$LINENO"; then :
3861 ac_cv_prog_cc_g=yes
3862 else
3863 CFLAGS=""
3864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3865 /* end confdefs.h. */
3868 main ()
3872 return 0;
3874 _ACEOF
3875 if ac_fn_c_try_compile "$LINENO"; then :
3877 else
3878 ac_c_werror_flag=$ac_save_c_werror_flag
3879 CFLAGS="-g"
3880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3881 /* end confdefs.h. */
3884 main ()
3888 return 0;
3890 _ACEOF
3891 if ac_fn_c_try_compile "$LINENO"; then :
3892 ac_cv_prog_cc_g=yes
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
3907 CFLAGS="-g -O2"
3908 else
3909 CFLAGS="-g"
3911 else
3912 if test "$GCC" = yes; then
3913 CFLAGS="-O2"
3914 else
3915 CFLAGS=
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
3922 else
3923 ac_cv_prog_cc_c89=no
3924 ac_save_CC=$CC
3925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3926 /* end confdefs.h. */
3927 #include <stdarg.h>
3928 #include <stdio.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)
3935 char **p;
3936 int i;
3938 return p[i];
3940 static char *f (char * (*g) (char **, int), char **p, ...)
3942 char *s;
3943 va_list v;
3944 va_start (v,p);
3945 s = g (p, va_arg (v,int));
3946 va_end (v);
3947 return s;
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. */
3961 #define FOO(x) 'x'
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);
3968 int argc;
3969 char **argv;
3971 main ()
3973 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3975 return 0;
3977 _ACEOF
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
3987 done
3988 rm -f conftest.$ac_ext
3989 CC=$ac_save_CC
3992 # AC_CACHE_VAL
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; } ;;
3997 xno)
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; } ;;
4004 esac
4005 if test "x$ac_cv_prog_cc_c89" != xno; then :
4009 ac_ext=c
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"
4016 then
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;
4029 case $withval in
4030 no) with_cxx_main=no
4031 MAINCC='$(CC)';;
4032 yes) with_cxx_main=yes
4033 MAINCC='$(CXX)';;
4034 *) with_cxx_main=yes
4035 MAINCC=$withval
4036 if test -z "$CXX"
4037 then
4038 CXX=$withval
4039 fi;;
4040 esac
4041 else
4043 with_cxx_main=no
4044 MAINCC='$(CC)'
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_cxx_main" >&5
4049 $as_echo "$with_cxx_main" >&6; }
4051 preset_cxx="$CXX"
4052 if test -z "$CXX"
4053 then
4054 case "$CC" in
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
4061 else
4062 case $CXX in
4063 [\\/]* | ?:[\\/]*)
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
4070 IFS=$as_save_IFS
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
4076 break 2
4078 done
4079 done
4080 IFS=$as_save_IFS
4082 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="g++"
4084 esac
4086 CXX=$ac_cv_path_CXX
4087 if test -n "$CXX"; then
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4089 $as_echo "$CXX" >&6; }
4090 else
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
4102 else
4103 case $CXX in
4104 [\\/]* | ?:[\\/]*)
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
4111 IFS=$as_save_IFS
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
4117 break 2
4119 done
4120 done
4121 IFS=$as_save_IFS
4123 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="c++"
4125 esac
4127 CXX=$ac_cv_path_CXX
4128 if test -n "$CXX"; then
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4130 $as_echo "$CXX" >&6; }
4131 else
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4133 $as_echo "no" >&6; }
4137 esac
4138 if test "$CXX" = "notfound"
4139 then
4140 CXX=""
4143 if test -z "$CXX"
4144 then
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
4153 else
4154 if test -n "$CXX"; then
4155 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4156 else
4157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4158 for as_dir in $PATH
4160 IFS=$as_save_IFS
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
4166 break 2
4168 done
4169 done
4170 IFS=$as_save_IFS
4174 CXX=$ac_cv_prog_CXX
4175 if test -n "$CXX"; then
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4177 $as_echo "$CXX" >&6; }
4178 else
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4180 $as_echo "no" >&6; }
4184 test -n "$CXX" && break
4185 done
4186 test -n "$CXX" || CXX="notfound"
4188 if test "$CXX" = "notfound"
4189 then
4190 CXX=""
4193 if test "$preset_cxx" != "$CXX"
4194 then
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.
4199 " >&5
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.
4204 " >&2;}
4208 # checks for UNIX variants that set C preprocessor variables
4210 ac_ext=c
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
4219 CPP=
4221 if test -z "$CPP"; then
4222 if test "${ac_cv_prog_CPP+set}" = set; then :
4223 $as_echo_n "(cached) " >&6
4224 else
4225 # Double quotes because CPP needs to be expanded
4226 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4228 ac_preproc_ok=false
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. */
4239 #ifdef __STDC__
4240 # include <limits.h>
4241 #else
4242 # include <assert.h>
4243 #endif
4244 Syntax error
4245 _ACEOF
4246 if ac_fn_c_try_cpp "$LINENO"; then :
4248 else
4249 # Broken: fails on valid input.
4250 continue
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>
4259 _ACEOF
4260 if ac_fn_c_try_cpp "$LINENO"; then :
4261 # Broken: success on invalid input.
4262 continue
4263 else
4264 # Passes both tests.
4265 ac_preproc_ok=:
4266 break
4268 rm -f conftest.err conftest.$ac_ext
4270 done
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 :
4274 break
4277 done
4278 ac_cv_prog_CPP=$CPP
4281 CPP=$ac_cv_prog_CPP
4282 else
4283 ac_cv_prog_CPP=$CPP
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4286 $as_echo "$CPP" >&6; }
4287 ac_preproc_ok=false
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. */
4298 #ifdef __STDC__
4299 # include <limits.h>
4300 #else
4301 # include <assert.h>
4302 #endif
4303 Syntax error
4304 _ACEOF
4305 if ac_fn_c_try_cpp "$LINENO"; then :
4307 else
4308 # Broken: fails on valid input.
4309 continue
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>
4318 _ACEOF
4319 if ac_fn_c_try_cpp "$LINENO"; then :
4320 # Broken: success on invalid input.
4321 continue
4322 else
4323 # Passes both tests.
4324 ac_preproc_ok=:
4325 break
4327 rm -f conftest.err conftest.$ac_ext
4329 done
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 :
4334 else
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; }
4341 ac_ext=c
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
4352 else
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/xpg4/bin
4359 IFS=$as_save_IFS
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
4368 *GNU*)
4369 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4371 ac_count=0
4372 $as_echo_n 0123456789 >"conftest.in"
4373 while :
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
4389 done
4390 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4391 esac
4393 $ac_path_GREP_found && break 3
4394 done
4395 done
4396 done
4397 IFS=$as_save_IFS
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
4401 else
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
4415 else
4416 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4417 then ac_cv_path_EGREP="$GREP -E"
4418 else
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/xpg4/bin
4425 IFS=$as_save_IFS
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
4434 *GNU*)
4435 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4437 ac_count=0
4438 $as_echo_n 0123456789 >"conftest.in"
4439 while :
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
4455 done
4456 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4457 esac
4459 $ac_path_EGREP_found && break 3
4460 done
4461 done
4462 done
4463 IFS=$as_save_IFS
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
4467 else
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
4482 else
4483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4484 /* end confdefs.h. */
4485 #include <stdlib.h>
4486 #include <stdarg.h>
4487 #include <string.h>
4488 #include <float.h>
4491 main ()
4495 return 0;
4497 _ACEOF
4498 if ac_fn_c_try_compile "$LINENO"; then :
4499 ac_cv_header_stdc=yes
4500 else
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. */
4509 #include <string.h>
4511 _ACEOF
4512 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4513 $EGREP "memchr" >/dev/null 2>&1; then :
4515 else
4516 ac_cv_header_stdc=no
4518 rm -f conftest*
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. */
4526 #include <stdlib.h>
4528 _ACEOF
4529 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4530 $EGREP "free" >/dev/null 2>&1; then :
4532 else
4533 ac_cv_header_stdc=no
4535 rm -f conftest*
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 :
4543 else
4544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4545 /* end confdefs.h. */
4546 #include <ctype.h>
4547 #include <stdlib.h>
4548 #if ((' ' & 0x0FF) == 0x020)
4549 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4550 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4551 #else
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))
4557 #endif
4559 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4561 main ()
4563 int i;
4564 for (i = 0; i < 256; i++)
4565 if (XOR (islower (i), ISLOWER (i))
4566 || toupper (i) != TOUPPER (i))
4567 return 2;
4568 return 0;
4570 _ACEOF
4571 if ac_fn_c_try_run "$LINENO"; then :
4573 else
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
4593 do :
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
4601 _ACEOF
4605 done
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 :
4611 MINIX=yes
4612 else
4613 MINIX=
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
4634 else
4635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4636 /* end confdefs.h. */
4638 # define __EXTENSIONS__ 1
4639 $ac_includes_default
4641 main ()
4645 return 0;
4647 _ACEOF
4648 if ac_fn_c_try_compile "$LINENO"; then :
4649 ac_cv_safe_to_define___extensions__=yes
4650 else
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
4672 atheos*|Linux*/1*)
4673 echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported.
4674 echo See README for details.
4675 exit 1;;
4676 esac
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;
4685 case $withval in
4686 no) EXEEXT=;;
4687 yes) EXEEXT=.exe;;
4688 *) EXEEXT=$withval;;
4689 esac
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
4705 then
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4707 $as_echo "yes" >&6; }
4708 BUILDEXEEXT=.exe
4709 else
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4711 $as_echo "no" >&6; }
4712 BUILDEXEEXT=$EXEEXT
4714 rmdir CaseSensitiveTestDir
4716 case $MACHDEP in
4717 bsdos*)
4718 case $CC in
4719 gcc) CC="$CC -D_HAVE_BSDI";;
4720 esac;;
4721 esac
4723 case $ac_sys_system in
4724 hp*|HP*)
4725 case $CC in
4726 cc|*/cc) CC="$CC -Ae";;
4727 esac;;
4728 SunOS*)
4729 # Some functions have a prototype only with that define, e.g. confstr
4731 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4734 esac
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY" >&5
4739 $as_echo_n "checking LIBRARY... " >&6; }
4740 if test -z "$LIBRARY"
4741 then
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)'
4769 DLLLIBRARY=''
4770 LDLIBRARYDIR=''
4771 RUNSHARED=''
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
4778 # linking.
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKCC" >&5
4781 $as_echo_n "checking LINKCC... " >&6; }
4782 if test -z "$LINKCC"
4783 then
4784 LINKCC='$(PURIFY) $(MAINCC)'
4785 case $ac_sys_system in
4786 AIX*)
4787 exp_extra="\"\""
4788 if test $ac_sys_release -ge 5 -o \
4789 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
4790 exp_extra="."
4792 LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
4793 QNX*)
4794 # qcc must be used because the other compilers do not
4795 # support -N.
4796 LINKCC=qcc;;
4797 esac
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; }
4810 ac_prog=ld
4811 if test "$GCC" = yes; then
4812 ac_prog=`$CC -print-prog-name=ld`
4814 case `"$ac_prog" -V 2>&1 < /dev/null` in
4815 *GNU*)
4816 GNULD=yes;;
4818 GNULD=no;;
4819 esac
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"
4832 then
4833 case $ac_sys_system in
4834 CYGWIN* | atheos*)
4835 enable_shared="yes";;
4837 enable_shared="no";;
4838 esac
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"
4848 CC="$CC -pg"
4849 if test "$cross_compiling" = yes; then :
4850 ac_enable_profiling="no"
4851 else
4852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4853 /* end confdefs.h. */
4854 int main() { return 0; }
4855 _ACEOF
4856 if ac_fn_c_try_run "$LINENO"; then :
4857 ac_enable_profiling="yes"
4858 else
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
4865 CC="$ac_save_cc"
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
4872 "yes")
4873 BASECFLAGS="-pg $BASECFLAGS"
4874 LDFLAGS="-pg $LDFLAGS"
4876 esac
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"
4888 then
4889 LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
4890 RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH"
4891 BLDLIBRARY=''
4892 else
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
4902 BeOS*)
4903 LDLIBRARY='libpython$(VERSION).so'
4905 CYGWIN*)
4906 LDLIBRARY='libpython$(VERSION).dll.a'
4907 DLLLIBRARY='libpython$(VERSION).dll'
4909 SunOS*)
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
4920 FreeBSD*)
4921 SOVERSION=`echo $SOVERSION|cut -d "." -f 1`
4923 esac
4924 INSTSONAME="$LDLIBRARY".$SOVERSION
4926 hp*|HP*)
4927 case `uname -m` in
4928 ia64)
4929 LDLIBRARY='libpython$(VERSION).so'
4932 LDLIBRARY='libpython$(VERSION).sl'
4934 esac
4935 BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
4936 RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH}
4938 OSF*)
4939 LDLIBRARY='libpython$(VERSION).so'
4940 BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
4941 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4943 atheos*)
4944 LDLIBRARY='libpython$(VERSION).so'
4945 BLDLIBRARY='-L. -lpython$(VERSION)'
4946 RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
4948 Darwin*)
4949 LDLIBRARY='libpython$(VERSION).dylib'
4950 BLDLIBRARY='-L. -lpython$(VERSION)'
4951 RUNSHARED='DYLD_LIBRARY_PATH=`pwd`:${DYLD_LIBRARY_PATH}'
4954 esac
4955 else # shared is disabled
4956 case $ac_sys_system in
4957 CYGWIN*)
4958 BLDLIBRARY='$(LIBRARY)'
4959 LDLIBRARY='libpython$(VERSION).dll.a'
4961 esac
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
4974 else
4975 if test -n "$RANLIB"; then
4976 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4977 else
4978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4979 for as_dir in $PATH
4981 IFS=$as_save_IFS
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
4987 break 2
4989 done
4990 done
4991 IFS=$as_save_IFS
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; }
4999 else
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
5014 else
5015 if test -n "$ac_ct_RANLIB"; then
5016 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5017 else
5018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5019 for as_dir in $PATH
5021 IFS=$as_save_IFS
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
5027 break 2
5029 done
5030 done
5031 IFS=$as_save_IFS
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; }
5039 else
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
5045 RANLIB=":"
5046 else
5047 case $cross_compiling:$ac_tool_warned in
5048 yes:)
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 ;;
5052 esac
5053 RANLIB=$ac_ct_RANLIB
5055 else
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
5068 else
5069 if test -n "$AR"; then
5070 ac_cv_prog_AR="$AR" # Let the user override the test.
5071 else
5072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5073 for as_dir in $PATH
5075 IFS=$as_save_IFS
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
5081 break 2
5083 done
5084 done
5085 IFS=$as_save_IFS
5089 AR=$ac_cv_prog_AR
5090 if test -n "$AR"; then
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5092 $as_echo "$AR" >&6; }
5093 else
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5095 $as_echo "no" >&6; }
5099 test -n "$AR" && break
5100 done
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"
5107 then
5108 ARFLAGS="rc"
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
5118 else
5119 if test -n "$SVNVERSION"; then
5120 ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test.
5121 else
5122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5123 for as_dir in $PATH
5125 IFS=$as_save_IFS
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
5131 break 2
5133 done
5134 done
5135 IFS=$as_save_IFS
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; }
5144 else
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5146 $as_echo "no" >&6; }
5150 if test $SVNVERSION = found
5151 then
5152 SVNVERSION="svnversion \$(srcdir)"
5153 else
5154 SVNVERSION="echo Unversioned directory"
5157 case $MACHDEP in
5158 bsdos*|hp*|HP*)
5159 # install -d does not work on BSDI or HP-UX
5160 if test -z "$INSTALL"
5161 then
5162 INSTALL="${srcdir}/install-sh -c"
5164 esac
5165 ac_aux_dir=
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
5169 ac_aux_dir=$ac_dir
5170 ac_install_sh="$ac_aux_dir/$ac_t -c"
5171 break 2
5173 done
5174 done
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
5194 # AIX /bin/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
5207 else
5208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5209 for as_dir in $PATH
5211 IFS=$as_save_IFS
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[\\/]* | \
5218 /usr/ucb/* ) ;;
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
5222 # by default.
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.
5234 else
5235 rm -rf conftest.one conftest.two conftest.dir
5236 echo one > conftest.one
5237 echo two > conftest.two
5238 mkdir conftest.dir
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
5243 then
5244 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5245 break 3
5249 done
5250 done
5252 esac
5254 done
5255 IFS=$as_save_IFS
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
5262 else
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
5286 BeOS*) LN="ln -s";;
5287 CYGWIN*) LN="ln -s";;
5288 atheos*) LN="ln -s";;
5289 *) LN=ln;;
5290 esac
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
5301 then
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; };
5307 Py_DEBUG='true'
5308 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5309 $as_echo "no" >&6; }; Py_DEBUG='false'
5311 else
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
5328 # user set OPT.
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"
5334 then
5335 case $GCC in
5336 yes)
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
5342 WRAP="-fwrapv"
5344 case $ac_cv_prog_cc_g in
5345 yes)
5346 if test "$Py_DEBUG" = 'true' ; then
5347 # Optimization messes up debuggers, so turn it off for
5348 # debug builds.
5349 OPT="-g -O0 -Wall $STRICT_PROTO"
5350 else
5351 OPT="-g $WRAP -O3 -Wall $STRICT_PROTO"
5355 OPT="-O3 -Wall $STRICT_PROTO"
5357 esac
5358 case $ac_sys_system in
5359 SCO_SV*) OPT="$OPT -m486 -DSCO5"
5361 esac
5365 OPT="-O"
5367 esac
5372 # The -arch flags for universal builds on OSX
5373 UNIVERSAL_ARCH_FLAGS=
5376 # tweak BASECFLAGS based on compiler and platform
5377 case $GCC in
5378 yes)
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; }
5384 ac_save_cc="$CC"
5385 CC="$CC -fno-strict-aliasing"
5386 if test "${ac_cv_no_strict_aliasing_ok+set}" = set; then :
5387 $as_echo_n "(cached) " >&6
5388 else
5389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5390 /* end confdefs.h. */
5393 main ()
5397 return 0;
5399 _ACEOF
5400 if ac_fn_c_try_compile "$LINENO"; then :
5401 ac_cv_no_strict_aliasing_ok=yes
5402 else
5403 ac_cv_no_strict_aliasing_ok=no
5405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5408 CC="$ac_save_cc"
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
5412 then
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
5418 # the standard.
5419 case $ac_sys_machine in
5420 alpha*)
5421 BASECFLAGS="$BASECFLAGS -mieee"
5423 esac
5425 case $ac_sys_system in
5426 SCO_SV*)
5427 BASECFLAGS="$BASECFLAGS -m486 -DSCO5"
5429 # is there any other compiler on Darwin besides gcc?
5430 Darwin*)
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
5434 then
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
5438 */MacOSX10.4u.sdk)
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
5442 CC=gcc-4.0
5443 CPP=cpp-4.0
5445 esac
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
5454 cur_target=10.3
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.
5461 cur_target='10.5'
5463 elif test "${UNIVERSAL_ARCHS}" = "3-way"; then
5464 cur_target='10.5'
5466 elif test "${UNIVERSAL_ARCHS}" = "intel"; then
5467 cur_target='10.5'
5469 elif test "${UNIVERSAL_ARCHS}" = "64-bit"; then
5470 cur_target='10.5'
5472 else
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.
5477 cur_target="10.4"
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"
5495 ARCH_RUN_32BIT=""
5496 LIPO_32BIT_FLAGS=""
5498 elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then
5499 UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64"
5500 LIPO_32BIT_FLAGS=""
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"
5518 else
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}" != "/"
5526 then
5527 CPPFLAGS="-isysroot ${UNIVERSALSDK} ${CPPFLAGS}"
5528 LDFLAGS="-isysroot ${UNIVERSALSDK} ${LDFLAGS}"
5529 CFLAGS="-isysroot ${UNIVERSALSDK} ${CFLAGS}"
5536 OSF*)
5537 BASECFLAGS="$BASECFLAGS -mieee"
5539 esac
5543 case $ac_sys_system in
5544 OpenUNIX*|UnixWare*)
5545 BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
5547 OSF*)
5548 BASECFLAGS="$BASECFLAGS -ieee -std"
5550 SCO_SV*)
5551 BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5"
5553 esac
5555 esac
5557 if test "$Py_DEBUG" = 'true'; then
5559 else
5560 OPT="-DNDEBUG $OPT"
5563 if test "$ac_arch_flags"
5564 then
5565 BASECFLAGS="$BASECFLAGS $ac_arch_flags"
5568 # disable check for icc since it seems to pass, but generates a warning
5569 if test "$CC" = icc
5570 then
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
5578 else
5579 ac_save_cc="$CC"
5580 CC="$CC -OPT:Olimit=0"
5581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5582 /* end confdefs.h. */
5585 main ()
5589 return 0;
5591 _ACEOF
5592 if ac_fn_c_try_compile "$LINENO"; then :
5593 ac_cv_opt_olimit_ok=yes
5594 else
5595 ac_cv_opt_olimit_ok=no
5598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5599 CC="$ac_save_cc"
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
5608 # environment?
5609 Darwin*)
5612 BASECFLAGS="$BASECFLAGS -OPT:Olimit=0"
5614 esac
5615 else
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
5620 else
5621 ac_save_cc="$CC"
5622 CC="$CC -Olimit 1500"
5623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5624 /* end confdefs.h. */
5627 main ()
5631 return 0;
5633 _ACEOF
5634 if ac_fn_c_try_compile "$LINENO"; then :
5635 ac_cv_olimit_ok=yes
5636 else
5637 ac_cv_olimit_ok=no
5640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5641 CC="$ac_save_cc"
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"
5653 then
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; }
5656 save_CFLAGS=$CFLAGS
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)));
5663 main ()
5667 return 0;
5670 _ACEOF
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; }
5679 else
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
5686 CFLAGS=$save_CFLAGS
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
5698 else
5699 if test "$cross_compiling" = yes; then :
5700 ac_cv_pthread_is_default=no
5701 else
5702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5703 /* end confdefs.h. */
5705 #include <pthread.h>
5707 void* routine(void* p){return NULL;}
5709 int main(){
5710 pthread_t p;
5711 if(pthread_create(&p,NULL,routine,NULL)!=0)
5712 return 1;
5713 (void)pthread_detach(p);
5714 return 0;
5717 _ACEOF
5718 if ac_fn_c_try_run "$LINENO"; then :
5720 ac_cv_pthread_is_default=yes
5721 ac_cv_kthread=no
5722 ac_cv_pthread=no
5724 else
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
5739 then
5740 ac_cv_kpthread=no
5741 else
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
5751 else
5752 ac_save_cc="$CC"
5753 CC="$CC -Kpthread"
5754 if test "$cross_compiling" = yes; then :
5755 ac_cv_kpthread=no
5756 else
5757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5758 /* end confdefs.h. */
5760 #include <pthread.h>
5762 void* routine(void* p){return NULL;}
5764 int main(){
5765 pthread_t p;
5766 if(pthread_create(&p,NULL,routine,NULL)!=0)
5767 return 1;
5768 (void)pthread_detach(p);
5769 return 0;
5772 _ACEOF
5773 if ac_fn_c_try_run "$LINENO"; then :
5774 ac_cv_kpthread=yes
5775 else
5776 ac_cv_kpthread=no
5778 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5779 conftest.$ac_objext conftest.beam conftest.$ac_ext
5782 CC="$ac_save_cc"
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
5790 then
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
5800 else
5801 ac_save_cc="$CC"
5802 CC="$CC -Kthread"
5803 if test "$cross_compiling" = yes; then :
5804 ac_cv_kthread=no
5805 else
5806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5807 /* end confdefs.h. */
5809 #include <pthread.h>
5811 void* routine(void* p){return NULL;}
5813 int main(){
5814 pthread_t p;
5815 if(pthread_create(&p,NULL,routine,NULL)!=0)
5816 return 1;
5817 (void)pthread_detach(p);
5818 return 0;
5821 _ACEOF
5822 if ac_fn_c_try_run "$LINENO"; then :
5823 ac_cv_kthread=yes
5824 else
5825 ac_cv_kthread=no
5827 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5828 conftest.$ac_objext conftest.beam conftest.$ac_ext
5831 CC="$ac_save_cc"
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
5839 then
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
5849 else
5850 ac_save_cc="$CC"
5851 CC="$CC -pthread"
5852 if test "$cross_compiling" = yes; then :
5853 ac_cv_pthread=no
5854 else
5855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5856 /* end confdefs.h. */
5858 #include <pthread.h>
5860 void* routine(void* p){return NULL;}
5862 int main(){
5863 pthread_t p;
5864 if(pthread_create(&p,NULL,routine,NULL)!=0)
5865 return 1;
5866 (void)pthread_detach(p);
5867 return 0;
5870 _ACEOF
5871 if ac_fn_c_try_run "$LINENO"; then :
5872 ac_cv_pthread=yes
5873 else
5874 ac_cv_pthread=no
5876 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5877 conftest.$ac_objext conftest.beam conftest.$ac_ext
5880 CC="$ac_save_cc"
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.
5889 ac_cv_cxx_thread=no
5890 if test ! -z "$CXX"
5891 then
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; }
5894 ac_save_cxx="$CXX"
5896 if test "$ac_cv_kpthread" = "yes"
5897 then
5898 CXX="$CXX -Kpthread"
5899 ac_cv_cxx_thread=yes
5900 elif test "$ac_cv_kthread" = "yes"
5901 then
5902 CXX="$CXX -Kthread"
5903 ac_cv_cxx_thread=yes
5904 elif test "$ac_cv_pthread" = "yes"
5905 then
5906 CXX="$CXX -pthread"
5907 ac_cv_cxx_thread=yes
5910 if test $ac_cv_cxx_thread = yes
5911 then
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
5916 then
5917 ac_cv_cxx_thread=yes
5918 else
5919 ac_cv_cxx_thread=no
5921 rm -fr conftest*
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_thread" >&5
5924 $as_echo "$ac_cv_cxx_thread" >&6; }
5926 CXX="$ac_save_cxx"
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
5934 else
5935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5936 /* end confdefs.h. */
5937 #include <stdlib.h>
5938 #include <stdarg.h>
5939 #include <string.h>
5940 #include <float.h>
5943 main ()
5947 return 0;
5949 _ACEOF
5950 if ac_fn_c_try_compile "$LINENO"; then :
5951 ac_cv_header_stdc=yes
5952 else
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. */
5961 #include <string.h>
5963 _ACEOF
5964 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5965 $EGREP "memchr" >/dev/null 2>&1; then :
5967 else
5968 ac_cv_header_stdc=no
5970 rm -f conftest*
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. */
5978 #include <stdlib.h>
5980 _ACEOF
5981 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5982 $EGREP "free" >/dev/null 2>&1; then :
5984 else
5985 ac_cv_header_stdc=no
5987 rm -f conftest*
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 :
5995 else
5996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5997 /* end confdefs.h. */
5998 #include <ctype.h>
5999 #include <stdlib.h>
6000 #if ((' ' & 0x0FF) == 0x020)
6001 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6002 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6003 #else
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))
6009 #endif
6011 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6013 main ()
6015 int i;
6016 for (i = 0; i < 256; i++)
6017 if (XOR (islower (i), ISLOWER (i))
6018 || toupper (i) != TOUPPER (i))
6019 return 2;
6020 return 0;
6022 _ACEOF
6023 if ac_fn_c_try_run "$LINENO"; then :
6025 else
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 \
6043 fcntl.h grp.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 \
6046 unistd.h utime.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
6054 do :
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
6061 _ACEOF
6065 done
6067 ac_header_dirent=no
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
6074 else
6075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6076 /* end confdefs.h. */
6077 #include <sys/types.h>
6078 #include <$ac_hdr>
6081 main ()
6083 if ((DIR *) 0)
6084 return 0;
6086 return 0;
6088 _ACEOF
6089 if ac_fn_c_try_compile "$LINENO"; then :
6090 eval "$as_ac_Header=yes"
6091 else
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
6103 _ACEOF
6105 ac_header_dirent=$ac_hdr; break
6108 done
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
6115 else
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. */
6123 #ifdef __cplusplus
6124 extern "C"
6125 #endif
6126 char opendir ();
6128 main ()
6130 return opendir ();
6132 return 0;
6134 _ACEOF
6135 for ac_lib in '' dir; do
6136 if test -z "$ac_lib"; then
6137 ac_res="none required"
6138 else
6139 ac_res=-l$ac_lib
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 \
6146 conftest$ac_exeext
6147 if test "${ac_cv_search_opendir+set}" = set; then :
6148 break
6150 done
6151 if test "${ac_cv_search_opendir+set}" = set; then :
6153 else
6154 ac_cv_search_opendir=no
6156 rm conftest.$ac_ext
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"
6167 else
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
6172 else
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. */
6180 #ifdef __cplusplus
6181 extern "C"
6182 #endif
6183 char opendir ();
6185 main ()
6187 return opendir ();
6189 return 0;
6191 _ACEOF
6192 for ac_lib in '' x; do
6193 if test -z "$ac_lib"; then
6194 ac_res="none required"
6195 else
6196 ac_res=-l$ac_lib
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 \
6203 conftest$ac_exeext
6204 if test "${ac_cv_search_opendir+set}" = set; then :
6205 break
6207 done
6208 if test "${ac_cv_search_opendir+set}" = set; then :
6210 else
6211 ac_cv_search_opendir=no
6213 rm conftest.$ac_ext
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
6230 else
6231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6232 /* end confdefs.h. */
6233 #include <sys/types.h>
6235 main ()
6237 return makedev(0, 0);
6239 return 0;
6241 _ACEOF
6242 if ac_fn_c_try_link "$LINENO"; then :
6243 ac_cv_header_sys_types_h_makedev=yes
6244 else
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
6279 do :
6280 ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "
6281 #ifdef HAVE_CURSES_H
6282 #include <curses.h>
6283 #endif
6286 if test "x$ac_cv_header_term_h" = x""yes; then :
6287 cat >>confdefs.h <<_ACEOF
6288 #define HAVE_TERM_H 1
6289 _ACEOF
6293 done
6296 # On Linux, netlink.h requires asm/types.h
6297 for ac_header in linux/netlink.h
6298 do :
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>
6302 #endif
6303 #ifdef HAVE_SYS_SOCKET_H
6304 #include <sys/socket.h>
6305 #endif
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
6311 _ACEOF
6315 done
6318 # checks for typedefs
6319 was_it_defined=no
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. */
6324 #include <time.h>
6326 _ACEOF
6327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6328 $EGREP "clock_t" >/dev/null 2>&1; then :
6329 was_it_defined=yes
6330 else
6333 $as_echo "#define clock_t long" >>confdefs.h
6337 rm -f conftest*
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>
6352 #else
6353 #include <sys/types.h>
6354 #endif
6356 main ()
6358 makedev(0, 0)
6360 return 0;
6362 _ACEOF
6363 if ac_fn_c_try_link "$LINENO"; then :
6364 ac_cv_has_makedev=yes
6365 else
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>
6379 main ()
6381 makedev(0, 0)
6383 return 0;
6385 _ACEOF
6386 if ac_fn_c_try_link "$LINENO"; then :
6387 ac_cv_has_makedev=yes
6388 else
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
6414 use_lfs=yes
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>
6425 main ()
6427 struct rlimit foo;
6429 return 0;
6431 _ACEOF
6432 if ac_fn_c_try_compile "$LINENO"; then :
6433 sol_lfs_bug=no
6434 else
6435 sol_lfs_bug=yes
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
6441 use_lfs=no
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
6457 #if defined(SCO_DS)
6458 #undef _OFF_T
6459 #endif
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 :
6466 else
6468 cat >>confdefs.h <<_ACEOF
6469 #define mode_t int
6470 _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 :
6477 else
6479 cat >>confdefs.h <<_ACEOF
6480 #define off_t long int
6481 _ACEOF
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 :
6488 else
6490 cat >>confdefs.h <<_ACEOF
6491 #define pid_t int
6492 _ACEOF
6497 cat >>confdefs.h <<_ACEOF
6498 #define RETSIGTYPE void
6499 _ACEOF
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 :
6504 else
6506 cat >>confdefs.h <<_ACEOF
6507 #define size_t unsigned int
6508 _ACEOF
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
6516 else
6517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6518 /* end confdefs.h. */
6519 #include <sys/types.h>
6521 _ACEOF
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
6525 else
6526 ac_cv_type_uid_t=no
6528 rm -f conftest*
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 #(
6544 no|yes) ;; #(
6547 $as_echo "#define _UINT32_T 1" >>confdefs.h
6550 cat >>confdefs.h <<_ACEOF
6551 #define uint32_t $ac_cv_c_uint32_t
6552 _ACEOF
6554 esac
6556 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6557 case $ac_cv_c_uint64_t in #(
6558 no|yes) ;; #(
6561 $as_echo "#define _UINT64_T 1" >>confdefs.h
6564 cat >>confdefs.h <<_ACEOF
6565 #define uint64_t $ac_cv_c_uint64_t
6566 _ACEOF
6568 esac
6570 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6571 case $ac_cv_c_int32_t in #(
6572 no|yes) ;; #(
6575 cat >>confdefs.h <<_ACEOF
6576 #define int32_t $ac_cv_c_int32_t
6577 _ACEOF
6579 esac
6581 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6582 case $ac_cv_c_int64_t in #(
6583 no|yes) ;; #(
6586 cat >>confdefs.h <<_ACEOF
6587 #define int64_t $ac_cv_c_int64_t
6588 _ACEOF
6590 esac
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
6610 else
6611 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6613 else
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; }; }
6620 else
6621 ac_cv_sizeof_int=0
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
6633 _ACEOF
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
6644 else
6645 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6647 else
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; }; }
6654 else
6655 ac_cv_sizeof_long=0
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
6667 _ACEOF
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
6678 else
6679 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
6681 else
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; }; }
6688 else
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
6701 _ACEOF
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
6712 else
6713 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
6715 else
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; }; }
6722 else
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
6735 _ACEOF
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
6746 else
6747 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
6749 else
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; }; }
6756 else
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
6769 _ACEOF
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
6780 else
6781 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
6783 else
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; }; }
6790 else
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
6803 _ACEOF
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
6814 else
6815 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (fpos_t))" "ac_cv_sizeof_fpos_t" "$ac_includes_default"; then :
6817 else
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; }; }
6824 else
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
6837 _ACEOF
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
6848 else
6849 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
6851 else
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; }; }
6858 else
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
6871 _ACEOF
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
6882 else
6883 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pid_t))" "ac_cv_sizeof_pid_t" "$ac_includes_default"; then :
6885 else
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; }; }
6892 else
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
6905 _ACEOF
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support" >&5
6910 $as_echo_n "checking for long long support... " >&6; }
6911 have_long_long=no
6912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6913 /* end confdefs.h. */
6916 main ()
6918 long long x; x = (long long)0;
6920 return 0;
6922 _ACEOF
6923 if ac_fn_c_try_compile "$LINENO"; then :
6926 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
6928 have_long_long=yes
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
6943 else
6944 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6946 else
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; }; }
6953 else
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
6966 _ACEOF
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support" >&5
6972 $as_echo_n "checking for long double support... " >&6; }
6973 have_long_double=no
6974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6975 /* end confdefs.h. */
6978 main ()
6980 long double x; x = (long double)0;
6982 return 0;
6984 _ACEOF
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
7005 else
7006 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
7008 else
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; }; }
7015 else
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
7028 _ACEOF
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Bool support" >&5
7034 $as_echo_n "checking for _Bool support... " >&6; }
7035 have_c99_bool=no
7036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7037 /* end confdefs.h. */
7040 main ()
7042 _Bool x; x = (_Bool)0;
7044 return 0;
7046 _ACEOF
7047 if ac_fn_c_try_compile "$LINENO"; then :
7050 $as_echo "#define HAVE_C99_BOOL 1" >>confdefs.h
7052 have_c99_bool=yes
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
7067 else
7068 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (_Bool))" "ac_cv_sizeof__Bool" "$ac_includes_default"; then :
7070 else
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; }; }
7077 else
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
7090 _ACEOF
7095 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#ifdef HAVE_STDINT_H
7096 #include <stdint.h>
7097 #endif
7099 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
7101 cat >>confdefs.h <<_ACEOF
7102 #define HAVE_UINTPTR_T 1
7103 _ACEOF
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
7113 else
7114 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uintptr_t))" "ac_cv_sizeof_uintptr_t" "$ac_includes_default"; then :
7116 else
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; }; }
7123 else
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
7136 _ACEOF
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
7150 else
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>
7154 #endif
7156 "; then :
7158 else
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; }; }
7165 else
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
7178 _ACEOF
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
7185 then
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; }
7193 else
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7195 $as_echo "no" >&6; }
7197 else
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
7210 else
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>
7214 #endif
7215 #ifdef HAVE_TIME_H
7216 #include <time.h>
7217 #endif
7219 "; then :
7221 else
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; }; }
7228 else
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
7241 _ACEOF
7245 # if have pthread_t then define SIZEOF_PTHREAD_T
7246 ac_save_cc="$CC"
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; }
7256 have_pthread_t=no
7257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7258 /* end confdefs.h. */
7260 #include <pthread.h>
7262 main ()
7264 pthread_t x; x = *(pthread_t*)0;
7266 return 0;
7269 _ACEOF
7270 if ac_fn_c_try_compile "$LINENO"; then :
7271 have_pthread_t=yes
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
7285 else
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>
7289 #endif
7291 "; then :
7293 else
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; }; }
7300 else
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
7313 _ACEOF
7317 CC="$ac_save_cc"
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"
7328 then
7329 case $ac_sys_system/$ac_sys_release in
7330 Darwin/*)
7331 enable_toolbox_glue="yes";;
7333 enable_toolbox_glue="no";;
7334 esac
7336 case "$enable_toolbox_glue" in
7337 yes)
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=""
7346 extra_undefs=""
7348 esac
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
7355 Darwin/[01567]\..*)
7356 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
7358 Darwin/*)
7359 OTHER_LIBTOOL_OPT=""
7361 esac
7364 ARCH_RUN_32BIT=""
7366 case $ac_sys_system/$ac_sys_release in
7367 Darwin/[01567]\..*)
7368 LIBTOOL_CRUFT="-framework System -lcc_dynamic"
7369 if test "${enable_universalsdk}"; then
7371 else
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)';;
7376 Darwin/*)
7377 gcc_version=`gcc -dumpversion`
7378 if test ${gcc_version} '<' 4.0
7379 then
7380 LIBTOOL_CRUFT="-lcc_dynamic"
7381 else
7382 LIBTOOL_CRUFT=""
7384 if test "$cross_compiling" = yes; then :
7385 ac_osx_32bit=yes
7386 else
7387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7388 /* end confdefs.h. */
7390 #include <unistd.h>
7391 int main(int argc, char*argv[])
7393 if (sizeof(long) == 4) {
7394 return 0;
7395 } else {
7396 return 1;
7400 _ACEOF
7401 if ac_fn_c_try_run "$LINENO"; then :
7402 ac_osx_32bit=yes
7403 else
7404 ac_osx_32bit=no
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
7413 i386)
7414 MACOSX_DEFAULT_ARCH="i386"
7416 ppc)
7417 MACOSX_DEFAULT_ARCH="ppc"
7420 as_fn_error "Unexpected output of 'arch' on OSX" "$LINENO" 5
7422 esac
7423 else
7424 case `/usr/bin/arch` in
7425 i386)
7426 MACOSX_DEFAULT_ARCH="x86_64"
7428 ppc)
7429 MACOSX_DEFAULT_ARCH="ppc64"
7432 as_fn_error "Unexpected output of 'arch' on OSX" "$LINENO" 5
7434 esac
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)';;
7442 esac
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"
7447 then
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"
7457 then
7458 as_fn_error "Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead. See Mac/README." "$LINENO" 5
7460 else
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
7468 Darwin/*)
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; }
7479 esac
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; }
7492 if test -z "$SO"
7493 then
7494 case $ac_sys_system in
7495 hp*|HP*)
7496 case `uname -m` in
7497 ia64) SO=.so;;
7498 *) SO=.sl;;
7499 esac
7501 CYGWIN*) SO=.dll;;
7502 *) SO=.so;;
7503 esac
7504 else
7505 # this might also be a termcap variable, see #610332
7506 echo
7507 echo '====================================================================='
7508 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. +'
7512 echo '+ +'
7513 echo '====================================================================='
7514 sleep 10
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"
7522 _ACEOF
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"
7531 then
7532 case $ac_sys_system/$ac_sys_release in
7533 AIX*)
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"
7537 BeOS*)
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";;
7543 SunOS/5*)
7544 if test "$GCC" = "yes" ; then
7545 LDSHARED='$(CC) -shared'
7546 LDCXXSHARED='$(CXX) -shared'
7547 else
7548 LDSHARED='$(CC) -G'
7549 LDCXXSHARED='$(CXX) -G'
7550 fi ;;
7551 hp*|HP*)
7552 if test "$GCC" = "yes" ; then
7553 LDSHARED='$(CC) -shared'
7554 LDCXXSHARED='$(CXX) -shared'
7555 else
7556 LDSHARED='ld -b'
7557 fi ;;
7558 OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
7559 Darwin/1.3*)
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)'
7567 else
7568 # No framework. Ignore undefined symbols, assuming they come from Python
7569 LDSHARED="$LDSHARED -undefined suppress"
7570 LDCXXSHARED="$LDCXXSHARED -undefined suppress"
7571 fi ;;
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)'
7580 else
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)'
7585 fi ;;
7586 Darwin/*)
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
7591 then
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"
7598 else
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)'
7606 else
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)'
7614 Linux*|GNU*|QNX*)
7615 LDSHARED='$(CC) -shared'
7616 LDCXXSHARED='$(CXX) -shared';;
7617 BSD/OS*/4*)
7618 LDSHARED="gcc -shared"
7619 LDCXXSHARED="g++ -shared";;
7620 FreeBSD*)
7621 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
7622 then
7623 LDSHARED='$(CC) -shared ${LDFLAGS}'
7624 LDCXXSHARED='$(CXX) -shared ${LDFLAGS}'
7625 else
7626 LDSHARED="ld -Bshareable ${LDFLAGS}"
7627 fi;;
7628 OpenBSD*)
7629 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
7630 then
7631 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
7632 LDCXXSHARED='$(CXX) -shared $(CCSHARED) ${LDFLAGS}'
7633 else
7634 case `uname -r` in
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}'
7642 esac
7643 fi;;
7644 NetBSD*|DragonFly*)
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'
7651 else
7652 LDSHARED='$(CC) -G'
7653 LDCXXSHARED='$(CXX) -G'
7654 fi;;
7655 SCO_SV*)
7656 LDSHARED='$(CC) -Wl,-G,-Bexport'
7657 LDCXXSHARED='$(CXX) -Wl,-G,-Bexport';;
7658 CYGWIN*)
7659 LDSHARED="gcc -shared -Wl,--enable-auto-image-base"
7660 LDCXXSHARED="g++ -shared -Wl,--enable-auto-image-base";;
7661 atheos*)
7662 LDSHARED="gcc -shared"
7663 LDCXXSHARED="g++ -shared";;
7664 *) LDSHARED="ld";;
7665 esac
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"
7676 then
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";
7683 fi;;
7684 hp*|HP*) if test "$GCC" = yes;
7685 then CCSHARED="-fPIC";
7686 else CCSHARED="+z";
7687 fi;;
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"
7695 fi;;
7696 SCO_SV*)
7697 if test "$GCC" = "yes"
7698 then CCSHARED="-fPIC"
7699 else CCSHARED="-Kpic -belf"
7700 fi;;
7701 IRIX*/6*) case $CC in
7702 *gcc*) CCSHARED="-shared";;
7703 *) CCSHARED="";;
7704 esac;;
7705 atheos*) CCSHARED="-fPIC";;
7706 esac
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"
7715 then
7716 case $ac_sys_system/$ac_sys_release in
7717 AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';;
7718 hp*|HP*)
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
7724 Darwin/*)
7725 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
7726 # which is
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"
7735 then
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__`" != "" ]
7744 then
7745 LINKFORSHARED="-Wl,--export-dynamic"
7746 fi;;
7747 SunOS/5*) case $CC in
7748 *gcc*)
7749 if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
7750 then
7751 LINKFORSHARED="-Xlinker --export-dynamic"
7752 fi;;
7753 esac;;
7754 CYGWIN*)
7755 if test $enable_shared = "no"
7756 then
7757 LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)'
7758 fi;;
7759 QNX*)
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';;
7766 esac
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"
7776 then
7777 case $ac_sys_system in
7778 CYGWIN*)
7779 # Cygwin needs CCSHARED when building extension DLLs
7780 # but not when building the interpreter DLL.
7781 CFLAGSFORSHARED='';;
7783 CFLAGSFORSHARED='$(CCSHARED)'
7784 esac
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
7802 SHLIBS='$(LIBS)';;
7803 esac
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
7813 else
7814 ac_check_lib_save_LIBS=$LIBS
7815 LIBS="-ldl $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. */
7822 #ifdef __cplusplus
7823 extern "C"
7824 #endif
7825 char dlopen ();
7827 main ()
7829 return dlopen ();
7831 return 0;
7833 _ACEOF
7834 if ac_fn_c_try_link "$LINENO"; then :
7835 ac_cv_lib_dl_dlopen=yes
7836 else
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
7848 _ACEOF
7850 LIBS="-ldl $LIBS"
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
7858 else
7859 ac_check_lib_save_LIBS=$LIBS
7860 LIBS="-ldld $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. */
7867 #ifdef __cplusplus
7868 extern "C"
7869 #endif
7870 char shl_load ();
7872 main ()
7874 return shl_load ();
7876 return 0;
7878 _ACEOF
7879 if ac_fn_c_try_link "$LINENO"; then :
7880 ac_cv_lib_dld_shl_load=yes
7881 else
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
7893 _ACEOF
7895 LIBS="-ldld $LIBS"
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
7906 else
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. */
7914 #ifdef __cplusplus
7915 extern "C"
7916 #endif
7917 char sem_init ();
7919 main ()
7921 return sem_init ();
7923 return 0;
7925 _ACEOF
7926 for ac_lib in '' pthread rt posix4; do
7927 if test -z "$ac_lib"; then
7928 ac_res="none required"
7929 else
7930 ac_res=-l$ac_lib
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 \
7937 conftest$ac_exeext
7938 if test "${ac_cv_search_sem_init+set}" = set; then :
7939 break
7941 done
7942 if test "${ac_cv_search_sem_init+set}" = set; then :
7944 else
7945 ac_cv_search_sem_init=no
7947 rm conftest.$ac_ext
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
7967 else
7968 ac_check_lib_save_LIBS=$LIBS
7969 LIBS="-lintl $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. */
7976 #ifdef __cplusplus
7977 extern "C"
7978 #endif
7979 char textdomain ();
7981 main ()
7983 return textdomain ();
7985 return 0;
7987 _ACEOF
7988 if ac_fn_c_try_link "$LINENO"; then :
7989 ac_cv_lib_intl_textdomain=yes
7990 else
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"
8015 main ()
8017 loadAndInit("", 0, "")
8019 return 0;
8022 _ACEOF
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; }
8031 else
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;;
8039 *) ;;
8040 esac
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
8048 else
8049 ac_check_lib_save_LIBS=$LIBS
8050 LIBS="-lnsl $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. */
8057 #ifdef __cplusplus
8058 extern "C"
8059 #endif
8060 char t_open ();
8062 main ()
8064 return t_open ();
8066 return 0;
8068 _ACEOF
8069 if ac_fn_c_try_link "$LINENO"; then :
8070 ac_cv_lib_nsl_t_open=yes
8071 else
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 :
8081 LIBS="-lnsl $LIBS"
8083 # SVR4
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
8088 else
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. */
8097 #ifdef __cplusplus
8098 extern "C"
8099 #endif
8100 char socket ();
8102 main ()
8104 return socket ();
8106 return 0;
8108 _ACEOF
8109 if ac_fn_c_try_link "$LINENO"; then :
8110 ac_cv_lib_socket_socket=yes
8111 else
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"
8123 # SVR4 sockets
8125 case "$ac_sys_system" in
8126 BeOS*)
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
8131 else
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. */
8140 #ifdef __cplusplus
8141 extern "C"
8142 #endif
8143 char socket ();
8145 main ()
8147 return socket ();
8149 return 0;
8151 _ACEOF
8152 if ac_fn_c_try_link "$LINENO"; then :
8153 ac_cv_lib_net_socket=yes
8154 else
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 :
8164 LIBS="-lnet $LIBS"
8166 # BeOS
8168 esac
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 :
8175 withval=$with_libs;
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
8177 $as_echo "$withval" >&6; }
8178 LIBS="$withval $LIBS"
8180 else
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
8193 else
8194 case $PKG_CONFIG in
8195 [\\/]* | ?:[\\/]*)
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
8200 for as_dir in $PATH
8202 IFS=$as_save_IFS
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
8208 break 2
8210 done
8211 done
8212 IFS=$as_save_IFS
8215 esac
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; }
8221 else
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
8236 else
8237 case $ac_pt_PKG_CONFIG in
8238 [\\/]* | ?:[\\/]*)
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
8243 for as_dir in $PATH
8245 IFS=$as_save_IFS
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
8251 break 2
8253 done
8254 done
8255 IFS=$as_save_IFS
8258 esac
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; }
8264 else
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
8270 PKG_CONFIG=""
8271 else
8272 case $cross_compiling:$ac_tool_warned in
8273 yes:)
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 ;;
8277 esac
8278 PKG_CONFIG=$ac_pt_PKG_CONFIG
8280 else
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/ *$//'`"
8310 else
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
8326 then
8327 as_fn_error "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5
8328 else
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
8331 then
8332 as_fn_error "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5
8334 done
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=""
8361 SIGNAL_OBJS=""
8362 else
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; }
8380 LDLAST=-threads
8381 if test "${with_thread+set}" != set; then
8382 with_thread="$withval";
8384 else
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"
8421 then
8422 USE_THREAD_MODULE="#"
8423 elif test "$ac_cv_pthread_is_default" = yes
8424 then
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
8430 posix_threads=yes
8431 THREADOBJ="Python/thread.o"
8432 elif test "$ac_cv_kpthread" = "yes"
8433 then
8434 CC="$CC -Kpthread"
8435 if test "$ac_cv_cxx_thread" = "yes"; then
8436 CXX="$CXX -Kpthread"
8438 $as_echo "#define WITH_THREAD 1" >>confdefs.h
8440 posix_threads=yes
8441 THREADOBJ="Python/thread.o"
8442 elif test "$ac_cv_kthread" = "yes"
8443 then
8444 CC="$CC -Kthread"
8445 if test "$ac_cv_cxx_thread" = "yes"; then
8446 CXX="$CXX -Kthread"
8448 $as_echo "#define WITH_THREAD 1" >>confdefs.h
8450 posix_threads=yes
8451 THREADOBJ="Python/thread.o"
8452 elif test "$ac_cv_pthread" = "yes"
8453 then
8454 CC="$CC -pthread"
8455 if test "$ac_cv_cxx_thread" = "yes"; then
8456 CXX="$CXX -pthread"
8458 $as_echo "#define WITH_THREAD 1" >>confdefs.h
8460 posix_threads=yes
8461 THREADOBJ="Python/thread.o"
8462 else
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. */
8478 #include <unistd.h>
8479 #ifdef _POSIX_THREADS
8481 #endif
8483 _ACEOF
8484 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8485 $EGREP "yes" >/dev/null 2>&1; then :
8486 unistd_defines_pthreads=yes
8487 else
8488 unistd_defines_pthreads=no
8490 rm -f conftest*
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"
8508 else
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"
8520 else
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
8534 LIBS="-lpth $LIBS"
8535 THREADOBJ="Python/thread.o"
8536 else
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.
8543 _libs=$LIBS
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); }
8553 main ()
8556 pthread_create (NULL, NULL, start_routine, NULL)
8558 return 0;
8560 _ACEOF
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
8567 posix_threads=yes
8568 THREADOBJ="Python/thread.o"
8569 else
8571 LIBS=$_libs
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
8576 posix_threads=yes
8577 THREADOBJ="Python/thread.o"
8578 else
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"
8588 else
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"
8598 else
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
8604 else
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. */
8613 #ifdef __cplusplus
8614 extern "C"
8615 #endif
8616 char pthread_create ();
8618 main ()
8620 return pthread_create ();
8622 return 0;
8624 _ACEOF
8625 if ac_fn_c_try_link "$LINENO"; then :
8626 ac_cv_lib_pthreads_pthread_create=yes
8627 else
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
8639 posix_threads=yes
8640 LIBS="$LIBS -lpthreads"
8641 THREADOBJ="Python/thread.o"
8642 else
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
8648 else
8649 ac_check_lib_save_LIBS=$LIBS
8650 LIBS="-lc_r $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. */
8657 #ifdef __cplusplus
8658 extern "C"
8659 #endif
8660 char pthread_create ();
8662 main ()
8664 return pthread_create ();
8666 return 0;
8668 _ACEOF
8669 if ac_fn_c_try_link "$LINENO"; then :
8670 ac_cv_lib_c_r_pthread_create=yes
8671 else
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
8683 posix_threads=yes
8684 LIBS="$LIBS -lc_r"
8685 THREADOBJ="Python/thread.o"
8686 else
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
8692 else
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. */
8701 #ifdef __cplusplus
8702 extern "C"
8703 #endif
8704 char __pthread_create_system ();
8706 main ()
8708 return __pthread_create_system ();
8710 return 0;
8712 _ACEOF
8713 if ac_fn_c_try_link "$LINENO"; then :
8714 ac_cv_lib_pthread___pthread_create_system=yes
8715 else
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
8727 posix_threads=yes
8728 LIBS="$LIBS -lpthread"
8729 THREADOBJ="Python/thread.o"
8730 else
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
8736 else
8737 ac_check_lib_save_LIBS=$LIBS
8738 LIBS="-lcma $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. */
8745 #ifdef __cplusplus
8746 extern "C"
8747 #endif
8748 char pthread_create ();
8750 main ()
8752 return pthread_create ();
8754 return 0;
8756 _ACEOF
8757 if ac_fn_c_try_link "$LINENO"; then :
8758 ac_cv_lib_cma_pthread_create=yes
8759 else
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
8771 posix_threads=yes
8772 LIBS="$LIBS -lcma"
8773 THREADOBJ="Python/thread.o"
8774 else
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
8810 else
8811 ac_check_lib_save_LIBS=$LIBS
8812 LIBS="-lmpc $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. */
8819 #ifdef __cplusplus
8820 extern "C"
8821 #endif
8822 char usconfig ();
8824 main ()
8826 return usconfig ();
8828 return 0;
8830 _ACEOF
8831 if ac_fn_c_try_link "$LINENO"; then :
8832 ac_cv_lib_mpc_usconfig=yes
8833 else
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
8845 LIBS="$LIBS -lmpc"
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
8856 else
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. */
8865 #ifdef __cplusplus
8866 extern "C"
8867 #endif
8868 char thr_create ();
8870 main ()
8872 return thr_create ();
8874 return 0;
8876 _ACEOF
8877 if ac_fn_c_try_link "$LINENO"; then :
8878 ac_cv_lib_thread_thr_create=yes
8879 else
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" != "#"
8899 then
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;;
8904 esac
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
8917 SunOS/5.6)
8918 $as_echo "#define HAVE_PTHREAD_DESTRUCTOR 1" >>confdefs.h
8921 SunOS/5.8)
8922 $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
8925 AIX/5)
8926 $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
8929 esac
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
8935 else
8936 if test "$cross_compiling" = yes; then :
8937 ac_cv_pthread_system_supported=no
8938 else
8939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8940 /* end confdefs.h. */
8941 #include <pthread.h>
8942 void *foo(void *parm) {
8943 return NULL;
8945 main() {
8946 pthread_attr_t attr;
8947 pthread_t id;
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);
8951 exit(0);
8953 _ACEOF
8954 if ac_fn_c_try_run "$LINENO"; then :
8955 ac_cv_pthread_system_supported=yes
8956 else
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
8974 do :
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
8979 _ACEOF
8980 case $ac_sys_system in
8981 CYGWIN*)
8983 $as_echo "#define HAVE_BROKEN_PTHREAD_SIGMASK 1" >>confdefs.h
8986 esac
8988 done
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; }
9003 ipv6=no
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
9009 ipv6=yes
9011 esac
9012 else
9014 if test "$cross_compiling" = yes; then :
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9017 $as_echo "no" >&6; }
9018 ipv6=no
9020 else
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>
9026 main()
9028 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
9029 exit(1);
9030 else
9031 exit(0);
9034 _ACEOF
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; }
9039 ipv6=yes
9041 else
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9044 $as_echo "no" >&6; }
9045 ipv6=no
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>
9062 main ()
9064 struct sockaddr_in6 x;
9065 x.sin6_scope_id;
9067 return 0;
9070 _ACEOF
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; }
9075 ipv6=yes
9077 else
9079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9080 $as_echo "no" >&6; }
9081 ipv6=no
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
9095 ipv6type=unknown
9096 ipv6lib=none
9097 ipv6trylibc=no
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;
9104 case $i in
9105 inria)
9106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9107 /* end confdefs.h. */
9109 #include <netinet/in.h>
9110 #ifdef IPV6_INRIA_VERSION
9112 #endif
9113 _ACEOF
9114 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9115 $EGREP "yes" >/dev/null 2>&1; then :
9116 ipv6type=$i
9118 rm -f conftest*
9121 kame)
9122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9123 /* end confdefs.h. */
9125 #include <netinet/in.h>
9126 #ifdef __KAME__
9128 #endif
9129 _ACEOF
9130 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9131 $EGREP "yes" >/dev/null 2>&1; then :
9132 ipv6type=$i;
9133 ipv6lib=inet6
9134 ipv6libdir=/usr/local/v6/lib
9135 ipv6trylibc=yes
9137 rm -f conftest*
9140 linux-glibc)
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))
9147 #endif
9148 _ACEOF
9149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9150 $EGREP "yes" >/dev/null 2>&1; then :
9151 ipv6type=$i;
9152 ipv6trylibc=yes
9154 rm -f conftest*
9157 linux-inet6)
9158 if test -d /usr/inet6; then
9159 ipv6type=$i
9160 ipv6lib=inet6
9161 ipv6libdir=/usr/inet6/lib
9162 BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
9165 solaris)
9166 if test -f /etc/netconfig; then
9167 if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then
9168 ipv6type=$i
9169 ipv6trylibc=yes
9173 toshiba)
9174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9175 /* end confdefs.h. */
9177 #include <sys/param.h>
9178 #ifdef _TOSHIBA_INET6
9180 #endif
9181 _ACEOF
9182 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9183 $EGREP "yes" >/dev/null 2>&1; then :
9184 ipv6type=$i;
9185 ipv6lib=inet6;
9186 ipv6libdir=/usr/local/v6/lib
9188 rm -f conftest*
9191 v6d)
9192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9193 /* end confdefs.h. */
9195 #include </usr/local/v6/include/sys/v6config.h>
9196 #ifdef __V6D__
9198 #endif
9199 _ACEOF
9200 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9201 $EGREP "yes" >/dev/null 2>&1; then :
9202 ipv6type=$i;
9203 ipv6lib=v6;
9204 ipv6libdir=/usr/local/v6/lib;
9205 BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
9207 rm -f conftest*
9210 zeta)
9211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9212 /* end confdefs.h. */
9214 #include <sys/param.h>
9215 #ifdef _ZETA_MINAMI_INET6
9217 #endif
9218 _ACEOF
9219 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9220 $EGREP "yes" >/dev/null 2>&1; then :
9221 ipv6type=$i;
9222 ipv6lib=inet6;
9223 ipv6libdir=/usr/local/v6/lib
9225 rm -f conftest*
9228 esac
9229 if test "$ipv6type" != "unknown"; then
9230 break
9232 done
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"
9241 else
9242 if test $ipv6trylibc = "yes"; then
9243 echo "using libc"
9244 else
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.'
9248 exit 1
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>
9260 main ()
9262 FSIORefNum fRef = 0
9264 return 0;
9267 _ACEOF
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; }
9276 else
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"
9298 then
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 :
9312 withval=$with_tsc;
9313 if test "$withval" != no
9314 then
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; }
9323 else
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"
9343 then
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;
9358 else
9359 with_valgrind=no
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
9370 else
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
9386 then
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; }
9395 else
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
9403 DLINCLDIR=.
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
9408 do :
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
9413 _ACEOF
9416 done
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"
9425 then
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"
9446 esac
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DYNLOADFILE" >&5
9449 $as_echo "$DYNLOADFILE" >&6; }
9450 if test "$DYNLOADFILE" != "dynload_stub.o"
9451 then
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"
9463 then
9464 MACHDEP_OBJS=$extra_machdep_objs
9465 else
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 \
9480 setgid \
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
9487 do :
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
9494 _ACEOF
9497 done
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. */
9506 #include <unistd.h>
9508 main ()
9510 void *x=chroot
9512 return 0;
9514 _ACEOF
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; }
9521 else
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. */
9531 #include <unistd.h>
9533 main ()
9535 void *x=link
9537 return 0;
9539 _ACEOF
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; }
9546 else
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. */
9556 #include <unistd.h>
9558 main ()
9560 void *x=symlink
9562 return 0;
9564 _ACEOF
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; }
9571 else
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. */
9581 #include <unistd.h>
9583 main ()
9585 void *x=fchdir
9587 return 0;
9589 _ACEOF
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; }
9596 else
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. */
9606 #include <unistd.h>
9608 main ()
9610 void *x=fsync
9612 return 0;
9614 _ACEOF
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; }
9621 else
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. */
9631 #include <unistd.h>
9633 main ()
9635 void *x=fdatasync
9637 return 0;
9639 _ACEOF
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; }
9646 else
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>
9658 main ()
9660 void *x=epoll_create
9662 return 0;
9664 _ACEOF
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; }
9671 else
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>
9686 main ()
9688 int x=kqueue()
9690 return 0;
9692 _ACEOF
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; }
9699 else
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. */
9716 #include <stdio.h>
9719 main ()
9721 void* p = ctermid_r
9723 return 0;
9725 _ACEOF
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; }
9732 else
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>
9747 main ()
9749 void* p = flock
9751 return 0;
9753 _ACEOF
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; }
9760 else
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. */
9772 #include <unistd.h>
9775 main ()
9777 void* p = getpagesize
9779 return 0;
9781 _ACEOF
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; }
9788 else
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
9795 for ac_prog in true
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
9803 else
9804 if test -n "$TRUE"; then
9805 ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
9806 else
9807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9808 for as_dir in $PATH
9810 IFS=$as_save_IFS
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
9816 break 2
9818 done
9819 done
9820 IFS=$as_save_IFS
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; }
9828 else
9829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9830 $as_echo "no" >&6; }
9834 test -n "$TRUE" && break
9835 done
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
9843 else
9844 ac_check_lib_save_LIBS=$LIBS
9845 LIBS="-lc $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. */
9852 #ifdef __cplusplus
9853 extern "C"
9854 #endif
9855 char inet_aton ();
9857 main ()
9859 return inet_aton ();
9861 return 0;
9863 _ACEOF
9864 if ac_fn_c_try_link "$LINENO"; then :
9865 ac_cv_lib_c_inet_aton=yes
9866 else
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 :
9876 $ac_cv_prog_TRUE
9877 else
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
9882 else
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. */
9891 #ifdef __cplusplus
9892 extern "C"
9893 #endif
9894 char inet_aton ();
9896 main ()
9898 return inet_aton ();
9900 return 0;
9902 _ACEOF
9903 if ac_fn_c_try_link "$LINENO"; then :
9904 ac_cv_lib_resolv_inet_aton=yes
9905 else
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
9917 _ACEOF
9919 LIBS="-lresolv $LIBS"
9927 # On Tru64, chflags seems to be present, but calling it will
9928 # exit Python
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
9933 else
9934 if test "$cross_compiling" = yes; then :
9935 ac_cv_have_chflags=cross
9936 else
9937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9938 /* end confdefs.h. */
9940 #include <sys/stat.h>
9941 #include <unistd.h>
9942 int main(int argc, char*argv[])
9944 if(chflags(argv[0], 0) != 0)
9945 return 1;
9946 return 0;
9949 _ACEOF
9950 if ac_fn_c_try_run "$LINENO"; then :
9951 ac_cv_have_chflags=yes
9952 else
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"
9967 else
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
9982 else
9983 if test "$cross_compiling" = yes; then :
9984 ac_cv_have_lchflags=cross
9985 else
9986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9987 /* end confdefs.h. */
9989 #include <sys/stat.h>
9990 #include <unistd.h>
9991 int main(int argc, char*argv[])
9993 if(lchflags(argv[0], 0) != 0)
9994 return 1;
9995 return 0;
9998 _ACEOF
9999 if ac_fn_c_try_run "$LINENO"; then :
10000 ac_cv_have_lchflags=yes
10001 else
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"
10016 else
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
10028 Darwin/*)
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"
10034 esac
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
10040 else
10041 ac_check_lib_save_LIBS=$LIBS
10042 LIBS="-lz $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. */
10049 #ifdef __cplusplus
10050 extern "C"
10051 #endif
10052 char inflateCopy ();
10054 main ()
10056 return inflateCopy ();
10058 return 0;
10060 _ACEOF
10061 if ac_fn_c_try_link "$LINENO"; then :
10062 ac_cv_lib_z_inflateCopy=yes
10063 else
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
10080 Darwin/*)
10081 CFLAGS="${_CUR_CFLAGS}"
10082 LDFLAGS="${_CUR_LDFLAGS}"
10084 esac
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. */
10091 #include <netdb.h>
10094 main ()
10096 void* p = hstrerror; hstrerror(0)
10098 return 0;
10100 _ACEOF
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; }
10107 else
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>
10126 main ()
10128 void* p = inet_aton;inet_aton(0,0)
10130 return 0;
10132 _ACEOF
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; }
10139 else
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>
10158 main ()
10160 void* p = inet_pton
10162 return 0;
10164 _ACEOF
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; }
10171 else
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>
10185 #ifdef HAVE_GRP_H
10186 #include <grp.h>
10187 #endif
10190 main ()
10192 void* p = setgroups
10194 return 0;
10196 _ACEOF
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; }
10203 else
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
10213 do :
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
10218 _ACEOF
10220 else
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
10225 else
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. */
10234 #ifdef __cplusplus
10235 extern "C"
10236 #endif
10237 char openpty ();
10239 main ()
10241 return openpty ();
10243 return 0;
10245 _ACEOF
10246 if ac_fn_c_try_link "$LINENO"; then :
10247 ac_cv_lib_util_openpty=yes
10248 else
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"
10260 else
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
10265 else
10266 ac_check_lib_save_LIBS=$LIBS
10267 LIBS="-lbsd $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. */
10274 #ifdef __cplusplus
10275 extern "C"
10276 #endif
10277 char openpty ();
10279 main ()
10281 return openpty ();
10283 return 0;
10285 _ACEOF
10286 if ac_fn_c_try_link "$LINENO"; then :
10287 ac_cv_lib_bsd_openpty=yes
10288 else
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
10299 LIBS="$LIBS -lbsd"
10307 done
10309 for ac_func in forkpty
10310 do :
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
10315 _ACEOF
10317 else
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
10322 else
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. */
10331 #ifdef __cplusplus
10332 extern "C"
10333 #endif
10334 char forkpty ();
10336 main ()
10338 return forkpty ();
10340 return 0;
10342 _ACEOF
10343 if ac_fn_c_try_link "$LINENO"; then :
10344 ac_cv_lib_util_forkpty=yes
10345 else
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"
10357 else
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
10362 else
10363 ac_check_lib_save_LIBS=$LIBS
10364 LIBS="-lbsd $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. */
10371 #ifdef __cplusplus
10372 extern "C"
10373 #endif
10374 char forkpty ();
10376 main ()
10378 return forkpty ();
10380 return 0;
10382 _ACEOF
10383 if ac_fn_c_try_link "$LINENO"; then :
10384 ac_cv_lib_bsd_forkpty=yes
10385 else
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
10396 LIBS="$LIBS -lbsd"
10404 done
10407 # Stuff for expat.
10408 for ac_func in memmove
10409 do :
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
10414 _ACEOF
10417 done
10420 # check for long file support functions
10421 for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
10422 do :
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
10429 _ACEOF
10432 done
10435 for ac_func in dup2 getcwd strdup
10436 do :
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
10443 _ACEOF
10445 else
10446 case " $LIBOBJS " in
10447 *" $ac_func.$ac_objext "* ) ;;
10448 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
10450 esac
10453 done
10456 for ac_func in getpgrp
10457 do :
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
10462 _ACEOF
10463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10464 /* end confdefs.h. */
10465 #include <unistd.h>
10467 main ()
10469 getpgrp(0);
10471 return 0;
10473 _ACEOF
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
10482 done
10484 for ac_func in setpgrp
10485 do :
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
10490 _ACEOF
10491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10492 /* end confdefs.h. */
10493 #include <unistd.h>
10495 main ()
10497 setpgrp(0,0);
10499 return 0;
10501 _ACEOF
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
10510 done
10512 for ac_func in gettimeofday
10513 do :
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
10518 _ACEOF
10519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10520 /* end confdefs.h. */
10521 #include <sys/time.h>
10523 main ()
10525 gettimeofday((struct timeval*)0,(struct timezone*)0);
10527 return 0;
10529 _ACEOF
10530 if ac_fn_c_try_compile "$LINENO"; then :
10532 else
10534 $as_echo "#define GETTIMEOFDAY_NO_TZ 1" >>confdefs.h
10538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10541 done
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>
10553 #else
10554 #include <sys/types.h>
10555 #endif
10558 main ()
10561 makedev(major(0),minor(0));
10564 return 0;
10566 _ACEOF
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; }
10575 else
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>
10593 #include <netdb.h>
10594 #include <stdio.h>
10597 main ()
10599 getaddrinfo(NULL, NULL, NULL, NULL);
10601 return 0;
10603 _ACEOF
10604 if ac_fn_c_try_link "$LINENO"; then :
10605 have_getaddrinfo=yes
10606 else
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
10614 then
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
10619 else
10620 if test "$cross_compiling" = yes; then :
10621 ac_cv_buggy_getaddrinfo=yes
10622 else
10623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10624 /* end confdefs.h. */
10626 #include <sys/types.h>
10627 #include <netdb.h>
10628 #include <string.h>
10629 #include <sys/socket.h>
10630 #include <netinet/in.h>
10632 int main()
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);
10646 goto bad;
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) {
10654 goto bad;
10656 switch (ai->ai_family) {
10657 case AF_INET:
10658 if (strcmp(strport, "54321") != 0) {
10659 goto bad;
10661 if (passive) {
10662 if (strcmp(straddr, "0.0.0.0") != 0) {
10663 goto bad;
10665 } else {
10666 if (strcmp(straddr, "127.0.0.1") != 0) {
10667 goto bad;
10670 inet4++;
10671 break;
10672 case AF_INET6:
10673 if (strcmp(strport, "54321") != 0) {
10674 goto bad;
10676 if (passive) {
10677 if (strcmp(straddr, "::") != 0) {
10678 goto bad;
10680 } else {
10681 if (strcmp(straddr, "::1") != 0) {
10682 goto bad;
10685 inet6++;
10686 break;
10687 case AF_UNSPEC:
10688 goto bad;
10689 break;
10690 default:
10691 /* another family support? */
10692 break;
10697 if (!(inet4 == 0 || inet4 == 2))
10698 goto bad;
10699 if (!(inet6 == 0 || inet6 == 2))
10700 goto bad;
10702 if (aitop)
10703 freeaddrinfo(aitop);
10704 return 0;
10706 bad:
10707 if (aitop)
10708 freeaddrinfo(aitop);
10709 return 1;
10712 _ACEOF
10713 if ac_fn_c_try_run "$LINENO"; then :
10714 ac_cv_buggy_getaddrinfo=no
10715 else
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
10727 then
10728 if test $ipv6 = yes
10729 then
10730 echo 'Fatal: You must get working getaddrinfo() function.'
10731 echo ' or you can specify "--disable-ipv6"'.
10732 exit 1
10734 else
10736 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
10739 for ac_func in getnameinfo
10740 do :
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
10745 _ACEOF
10748 done
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
10756 else
10757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10758 /* end confdefs.h. */
10759 #include <sys/types.h>
10760 #include <sys/time.h>
10761 #include <time.h>
10764 main ()
10766 if ((struct tm *) 0)
10767 return 0;
10769 return 0;
10771 _ACEOF
10772 if ac_fn_c_try_compile "$LINENO"; then :
10773 ac_cv_header_time=yes
10774 else
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
10791 else
10792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10793 /* end confdefs.h. */
10794 #include <sys/types.h>
10795 #include <time.h>
10798 main ()
10800 struct tm tm;
10801 int *p = &tm.tm_sec;
10802 return !p;
10804 return 0;
10806 _ACEOF
10807 if ac_fn_c_try_compile "$LINENO"; then :
10808 ac_cv_struct_tm=time.h
10809 else
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
10830 _ACEOF
10835 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
10837 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
10839 else
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 :
10843 ac_have_decl=1
10844 else
10845 ac_have_decl=0
10848 cat >>confdefs.h <<_ACEOF
10849 #define HAVE_DECL_TZNAME $ac_have_decl
10850 _ACEOF
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
10856 else
10857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10858 /* end confdefs.h. */
10859 #include <time.h>
10860 #if !HAVE_DECL_TZNAME
10861 extern char *tzname[];
10862 #endif
10865 main ()
10867 return tzname[0][0];
10869 return 0;
10871 _ACEOF
10872 if ac_fn_c_try_link "$LINENO"; then :
10873 ac_cv_var_tzname=yes
10874 else
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
10894 _ACEOF
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
10904 _ACEOF
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
10914 _ACEOF
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
10924 _ACEOF
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
10934 _ACEOF
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
10944 _ACEOF
10947 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
10949 else
10950 case " $LIBOBJS " in
10951 *" fileblocks.$ac_objext "* ) ;;
10952 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
10954 esac
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
10964 else
10966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10967 /* end confdefs.h. */
10968 #include <time.h>
10970 main ()
10972 return altzone;
10974 return 0;
10976 _ACEOF
10977 if ac_fn_c_try_compile "$LINENO"; then :
10978 ac_cv_header_time_altzone=yes
10979 else
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
10994 was_it_defined=no
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>
11005 main ()
11009 return 0;
11011 _ACEOF
11012 if ac_fn_c_try_compile "$LINENO"; then :
11015 $as_echo "#define SYS_SELECT_WITH_SYS_TIME 1" >>confdefs.h
11017 was_it_defined=yes
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
11028 else
11029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11030 /* end confdefs.h. */
11031 #include <netdb.h>
11033 main ()
11035 struct addrinfo a
11037 return 0;
11039 _ACEOF
11040 if ac_fn_c_try_compile "$LINENO"; then :
11041 ac_cv_struct_addrinfo=yes
11042 else
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
11060 else
11061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11062 /* end confdefs.h. */
11064 # include <sys/types.h>
11065 # include <sys/socket.h>
11067 main ()
11069 struct sockaddr_storage s
11071 return 0;
11073 _ACEOF
11074 if ac_fn_c_try_compile "$LINENO"; then :
11075 ac_cv_struct_sockaddr_storage=yes
11076 else
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
11096 else
11097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11098 /* end confdefs.h. */
11099 $ac_includes_default
11101 main ()
11103 static int test_array [1 - 2 * !(((char) -1) < 0)];
11104 test_array [0] = 0
11107 return 0;
11109 _ACEOF
11110 if ac_fn_c_try_compile "$LINENO"; then :
11111 ac_cv_c_char_unsigned=no
11112 else
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
11128 else
11129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11130 /* end confdefs.h. */
11133 main ()
11135 /* FIXME: Include the comments suggested by Paul. */
11136 #ifndef __cplusplus
11137 /* Ultrix mips cc rejects this. */
11138 typedef int charset[2];
11139 const charset cs;
11140 /* SunOS 4.1.1 cc rejects this. */
11141 char const *const *pcpcc;
11142 char **ppc;
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
11149 expression */
11150 const char *g = "string";
11151 pcpcc = &g + (g ? g-g : 0);
11152 /* HPUX 7.0 cc rejects these. */
11153 ++pcpcc;
11154 ppc = (char**) pcpcc;
11155 pcpcc = (char const *const *) ppc;
11156 { /* SCO 3.2v4 cc rejects this. */
11157 char *t;
11158 char const *s = 0 ? (char *) 0 : (char const *) 0;
11160 *t++ = 0;
11161 if (s) return 0;
11163 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11164 int x[] = {25, 17};
11165 const int *foo = &x[0];
11166 ++foo;
11168 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11169 typedef const int *iptr;
11170 iptr p = 0;
11171 ++p;
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;
11183 #endif
11186 return 0;
11188 _ACEOF
11189 if ac_fn_c_try_compile "$LINENO"; then :
11190 ac_cv_c_const=yes
11191 else
11192 ac_cv_c_const=no
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
11205 works=no
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. */
11212 main ()
11214 volatile int x; x = 0;
11216 return 0;
11218 _ACEOF
11219 if ac_fn_c_try_compile "$LINENO"; then :
11220 works=yes
11221 else
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; }
11231 works=no
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. */
11238 main ()
11240 signed char c;
11242 return 0;
11244 _ACEOF
11245 if ac_fn_c_try_compile "$LINENO"; then :
11246 works=yes
11247 else
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; }
11257 have_prototypes=no
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; }
11264 main ()
11266 return foo(10);
11268 return 0;
11270 _ACEOF
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; }
11281 works=no
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, ...) {
11289 va_list va;
11290 va_start(va, x);
11291 va_arg(va, int);
11292 va_arg(va, char *);
11293 va_arg(va, double);
11294 return 0;
11298 main ()
11300 return foo(10, "", 3.14);
11302 return 0;
11304 _ACEOF
11305 if ac_fn_c_try_compile "$LINENO"; then :
11308 $as_echo "#define HAVE_STDARG_PROTOTYPES 1" >>confdefs.h
11310 works=yes
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>
11327 main ()
11329 void *x=socketpair
11331 return 0;
11333 _ACEOF
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; }
11340 else
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>
11355 main ()
11357 struct sockaddr x;
11358 x.sa_len = 0;
11360 return 0;
11362 _ACEOF
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
11369 else
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>
11384 #else
11385 #include <varargs.h>
11386 #endif
11389 main ()
11391 va_list list1, list2; list1 = list2;
11393 return 0;
11395 _ACEOF
11396 if ac_fn_c_try_compile "$LINENO"; then :
11398 else
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; }
11420 OLD_CFLAGS=$CFLAGS
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>
11428 main ()
11431 char *name;
11432 struct hostent *he, *res;
11433 char buffer[2048];
11434 int buflen = 2048;
11435 int h_errnop;
11437 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
11440 return 0;
11442 _ACEOF
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; }
11453 else
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>
11465 main ()
11468 char *name;
11469 struct hostent *he;
11470 char buffer[2048];
11471 int buflen = 2048;
11472 int h_errnop;
11474 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
11477 return 0;
11479 _ACEOF
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; }
11490 else
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>
11502 main ()
11505 char *name;
11506 struct hostent *he;
11507 struct hostent_data data;
11509 (void) gethostbyname_r(name, he, &data);
11512 return 0;
11514 _ACEOF
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; }
11525 else
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
11538 CFLAGS=$OLD_CFLAGS
11540 else
11542 for ac_func in gethostbyname
11543 do :
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
11548 _ACEOF
11551 done
11562 # checks for system services
11563 # (none yet)
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 :
11569 else
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
11574 else
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. */
11583 #ifdef __cplusplus
11584 extern "C"
11585 #endif
11586 char __fpu_control ();
11588 main ()
11590 return __fpu_control ();
11592 return 0;
11594 _ACEOF
11595 if ac_fn_c_try_link "$LINENO"; then :
11596 ac_cv_lib_ieee___fpu_control=yes
11597 else
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
11609 _ACEOF
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
11627 then
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; }
11636 else
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
11645 Darwin) ;;
11646 BeOS) ;;
11647 *) LIBM=-lm
11648 esac
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
11656 then LIBM=
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
11660 then LIBM=$withval
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
11665 else
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
11680 then LIBC=
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
11684 then LIBC=$withval
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
11689 else
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
11703 else
11705 if test "$cross_compiling" = yes; then :
11706 ac_cv_little_endian_double=no
11707 else
11708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11709 /* end confdefs.h. */
11711 #include <string.h>
11712 int main() {
11713 double x = 9006104071832581.0;
11714 if (memcmp(&x, "\x05\x04\x03\x02\x01\xff\x3f\x43", 8) == 0)
11715 return 0;
11716 else
11717 return 1;
11720 _ACEOF
11721 if ac_fn_c_try_run "$LINENO"; then :
11722 ac_cv_little_endian_double=yes
11723 else
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
11735 then
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
11745 else
11747 if test "$cross_compiling" = yes; then :
11748 ac_cv_big_endian_double=no
11749 else
11750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11751 /* end confdefs.h. */
11753 #include <string.h>
11754 int main() {
11755 double x = 9006104071832581.0;
11756 if (memcmp(&x, "\x43\x3f\xff\x01\x02\x03\x04\x05", 8) == 0)
11757 return 0;
11758 else
11759 return 1;
11762 _ACEOF
11763 if ac_fn_c_try_run "$LINENO"; then :
11764 ac_cv_big_endian_double=yes
11765 else
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
11777 then
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
11791 else
11793 if test "$cross_compiling" = yes; then :
11794 ac_cv_mixed_endian_double=no
11795 else
11796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11797 /* end confdefs.h. */
11799 #include <string.h>
11800 int main() {
11801 double x = 9006104071832581.0;
11802 if (memcmp(&x, "\x01\xff\x3f\x43\x05\x04\x03\x02", 8) == 0)
11803 return 0;
11804 else
11805 return 1;
11808 _ACEOF
11809 if ac_fn_c_try_run "$LINENO"; then :
11810 ac_cv_mixed_endian_double=yes
11811 else
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
11823 then
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. */
11845 main ()
11848 unsigned short cw;
11849 __asm__ __volatile__ ("fnstcw %0" : "=m" (cw));
11850 __asm__ __volatile__ ("fldcw %0" : : "m" (cw));
11853 return 0;
11855 _ACEOF
11856 if ac_fn_c_try_compile "$LINENO"; then :
11857 have_gcc_asm_for_x87=yes
11858 else
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
11865 then
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
11879 ac_save_cc="$CC"
11880 CC="$CC $BASECFLAGS"
11881 if test "$cross_compiling" = yes; then :
11882 ac_cv_x87_double_rounding=no
11883 else
11884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11885 /* end confdefs.h. */
11887 #include <stdlib.h>
11888 #include <math.h>
11889 int main() {
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 */
11893 y = 1./x;
11894 if (y != 1.)
11895 exit(0);
11896 /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */
11897 x = 1e16;
11898 y = 2.99999;
11899 z = x + y;
11900 if (z != 1e16+4.)
11901 exit(0);
11902 /* both tests show evidence of double rounding */
11903 exit(1);
11906 _ACEOF
11907 if ac_fn_c_try_run "$LINENO"; then :
11908 ac_cv_x87_double_rounding=no
11909 else
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
11916 CC="$ac_save_cc"
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
11920 then
11922 $as_echo "#define X87_DOUBLE_ROUNDING 1" >>confdefs.h
11926 # ************************************
11927 # * Check for mathematical functions *
11928 # ************************************
11930 LIBS_SAVE=$LIBS
11931 LIBS="$LIBS $LIBM"
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
11939 else
11941 if test "$cross_compiling" = yes; then :
11942 ac_cv_tanh_preserves_zero_sign=no
11943 else
11944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11945 /* end confdefs.h. */
11947 #include <math.h>
11948 #include <stdlib.h>
11949 int main() {
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);
11955 else exit(1);
11958 _ACEOF
11959 if ac_fn_c_try_run "$LINENO"; then :
11960 ac_cv_tanh_preserves_zero_sign=yes
11961 else
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
11973 then
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
11980 do :
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
11987 _ACEOF
11990 done
11992 for ac_func in hypot lgamma log1p round tgamma
11993 do :
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
12000 _ACEOF
12003 done
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 :
12008 ac_have_decl=1
12009 else
12010 ac_have_decl=0
12013 cat >>confdefs.h <<_ACEOF
12014 #define HAVE_DECL_ISINF $ac_have_decl
12015 _ACEOF
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 :
12019 ac_have_decl=1
12020 else
12021 ac_have_decl=0
12024 cat >>confdefs.h <<_ACEOF
12025 #define HAVE_DECL_ISNAN $ac_have_decl
12026 _ACEOF
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 :
12030 ac_have_decl=1
12031 else
12032 ac_have_decl=0
12035 cat >>confdefs.h <<_ACEOF
12036 #define HAVE_DECL_ISFINITE $ac_have_decl
12037 _ACEOF
12040 LIBS=$LIBS_SAVE
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
12051 else
12052 if test "$cross_compiling" = yes; then :
12053 ac_cv_posix_semaphores_enabled=yes
12054 else
12055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12056 /* end confdefs.h. */
12058 #include <unistd.h>
12059 #include <fcntl.h>
12060 #include <stdio.h>
12061 #include <semaphore.h>
12062 #include <sys/stat.h>
12064 int main(void) {
12065 sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0);
12066 if (a == SEM_FAILED) {
12067 perror("sem_open");
12068 return 1;
12070 sem_close(a);
12071 sem_unlink("/autoconf");
12072 return 0;
12075 _ACEOF
12076 if ac_fn_c_try_run "$LINENO"; then :
12077 ac_cv_posix_semaphores_enabled=yes
12078 else
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
12091 then
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
12102 else
12103 if test "$cross_compiling" = yes; then :
12104 ac_cv_broken_sem_getvalue=yes
12105 else
12106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12107 /* end confdefs.h. */
12109 #include <unistd.h>
12110 #include <fcntl.h>
12111 #include <stdio.h>
12112 #include <semaphore.h>
12113 #include <sys/stat.h>
12115 int main(void){
12116 sem_t *a = sem_open("/autocftw", O_CREAT, S_IRUSR|S_IWUSR, 0);
12117 int count;
12118 int res;
12119 if(a==SEM_FAILED){
12120 perror("sem_open");
12121 return 1;
12124 res = sem_getvalue(a, &count);
12125 sem_close(a);
12126 sem_unlink("/autocftw");
12127 return res==-1 ? 1 : 0;
12130 _ACEOF
12131 if ac_fn_c_try_run "$LINENO"; then :
12132 ac_cv_broken_sem_getvalue=no
12133 else
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
12146 then
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
12158 yes)
12159 enable_big_digits=30 ;;
12161 enable_big_digits=15 ;;
12162 15|30)
12165 as_fn_error "bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" "$LINENO" 5 ;;
12166 esac
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
12172 _ACEOF
12175 else
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
12188 wchar_h="yes"
12190 else
12191 wchar_h="no"
12197 # determine wchar_t size
12198 if test "$wchar_h" = yes
12199 then
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
12208 else
12209 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" "#include <wchar.h>
12210 "; then :
12212 else
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; }; }
12219 else
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
12232 _ACEOF
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UCS-4 tcl" >&5
12238 $as_echo_n "checking for UCS-4 tcl... " >&6; }
12239 have_ucs4_tcl=no
12240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12241 /* end confdefs.h. */
12243 #include <tcl.h>
12244 #if TCL_UTF_MAX != 6
12245 # error "NOT UCS4_TCL"
12246 #endif
12248 main ()
12252 return 0;
12254 _ACEOF
12255 if ac_fn_c_try_compile "$LINENO"; then :
12258 $as_echo "#define HAVE_UCS4_TCL 1" >>confdefs.h
12260 have_ucs4_tcl=yes
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
12269 then
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
12275 else
12277 if test "$cross_compiling" = yes; then :
12278 ac_cv_wchar_t_signed=yes
12279 else
12280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12281 /* end confdefs.h. */
12283 #include <wchar.h>
12284 int main()
12286 /* Success: exit code 0 */
12287 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
12290 _ACEOF
12291 if ac_fn_c_try_run "$LINENO"; then :
12292 ac_cv_wchar_t_signed=yes
12293 else
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;
12311 else
12312 enable_unicode=yes
12316 if test $enable_unicode = yes
12317 then
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"
12324 esac
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 ;;
12338 esac
12343 if test "$enable_unicode" = "no"
12344 then
12345 UNICODE_OBJS=""
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not used" >&5
12347 $as_echo "not used" >&6; }
12348 else
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"
12357 then
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"
12365 then
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"
12370 then
12371 PY_UNICODE_TYPE="unsigned long"
12372 $as_echo "#define PY_UNICODE_TYPE unsigned long" >>confdefs.h
12374 else
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
12386 else
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
12393 #endif
12394 typedef int dummy;
12396 _ACEOF
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.
12401 ac_arch=
12402 ac_prev=
12403 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12404 if test -n "$ac_prev"; then
12405 case $ac_word in
12406 i?86 | x86_64 | ppc | ppc64)
12407 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12408 ac_arch=$ac_word
12409 else
12410 ac_cv_c_bigendian=universal
12411 break
12414 esac
12415 ac_prev=
12416 elif test "x$ac_word" = "x-arch"; then
12417 ac_prev=arch
12419 done
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>
12430 main ()
12432 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12433 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12434 && LITTLE_ENDIAN)
12435 bogus endian macros
12436 #endif
12439 return 0;
12441 _ACEOF
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>
12450 main ()
12452 #if BYTE_ORDER != BIG_ENDIAN
12453 not big endian
12454 #endif
12457 return 0;
12459 _ACEOF
12460 if ac_fn_c_try_compile "$LINENO"; then :
12461 ac_cv_c_bigendian=yes
12462 else
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>
12476 main ()
12478 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12479 bogus endian macros
12480 #endif
12483 return 0;
12485 _ACEOF
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>
12493 main ()
12495 #ifndef _BIG_ENDIAN
12496 not big endian
12497 #endif
12500 return 0;
12502 _ACEOF
12503 if ac_fn_c_try_compile "$LINENO"; then :
12504 ac_cv_c_bigendian=yes
12505 else
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];
12532 extern int foo;
12535 main ()
12537 return use_ascii (foo) == use_ebcdic (foo);
12539 return 0;
12541 _ACEOF
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
12549 else
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
12556 else
12557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12558 /* end confdefs.h. */
12559 $ac_includes_default
12561 main ()
12564 /* Are we little or big endian? From Harbison&Steele. */
12565 union
12567 long int l;
12568 char c[sizeof (long int)];
12569 } u;
12570 u.l = 1;
12571 return u.c[sizeof (long int) - 1] == 1;
12574 return 0;
12576 _ACEOF
12577 if ac_fn_c_try_run "$LINENO"; then :
12578 ac_cv_c_bigendian=no
12579 else
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 #(
12591 yes)
12592 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12593 ;; #(
12595 ;; #(
12596 universal)
12598 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12600 ;; #(
12602 as_fn_error "unknown endianness
12603 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12604 esac
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
12613 else
12615 if test "$cross_compiling" = yes; then :
12616 ac_cv_rshift_extends_sign=yes
12617 else
12618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12619 /* end confdefs.h. */
12621 int main()
12623 exit(((-1)>>3 == -1) ? 0 : 1);
12626 _ACEOF
12627 if ac_fn_c_try_run "$LINENO"; then :
12628 ac_cv_rshift_extends_sign=yes
12629 else
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
12641 then
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
12652 else
12654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12655 /* end confdefs.h. */
12656 #include <stdio.h>
12658 main ()
12661 FILE *f = fopen("/dev/null", "r");
12662 flockfile(f);
12663 getc_unlocked(f);
12664 funlockfile(f);
12667 return 0;
12669 _ACEOF
12670 if ac_fn_c_try_link "$LINENO"; then :
12671 ac_cv_have_getc_unlocked=yes
12672 else
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
12682 then
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
12694 # with setup.py.
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"
12701 else
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. */
12711 #ifdef __cplusplus
12712 extern "C"
12713 #endif
12714 char readline ();
12716 main ()
12718 return readline ();
12720 return 0;
12722 _ACEOF
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
12729 break
12731 done
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; }
12737 else
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
12750 else
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. */
12759 #ifdef __cplusplus
12760 extern "C"
12761 #endif
12762 char rl_callback_handler_install ();
12764 main ()
12766 return rl_callback_handler_install ();
12768 return 0;
12770 _ACEOF
12771 if ac_fn_c_try_link "$LINENO"; then :
12772 ac_cv_lib_readline_rl_callback_handler_install=yes
12773 else
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>
12793 _ACEOF
12794 if ac_fn_c_try_cpp "$LINENO"; then :
12795 have_readline=yes
12796 else
12797 have_readline=no
12800 rm -f conftest.err conftest.$ac_ext
12801 if test $have_readline = yes
12802 then
12803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12804 /* end confdefs.h. */
12805 #include <readline/readline.h>
12807 _ACEOF
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
12814 rm -f conftest*
12816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12817 /* end confdefs.h. */
12818 #include <readline/readline.h>
12820 _ACEOF
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
12827 rm -f conftest*
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
12836 else
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. */
12845 #ifdef __cplusplus
12846 extern "C"
12847 #endif
12848 char rl_pre_input_hook ();
12850 main ()
12852 return rl_pre_input_hook ();
12854 return 0;
12856 _ACEOF
12857 if ac_fn_c_try_link "$LINENO"; then :
12858 ac_cv_lib_readline_rl_pre_input_hook=yes
12859 else
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
12875 # also in 4.0
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
12880 else
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. */
12889 #ifdef __cplusplus
12890 extern "C"
12891 #endif
12892 char rl_completion_display_matches_hook ();
12894 main ()
12896 return rl_completion_display_matches_hook ();
12898 return 0;
12900 _ACEOF
12901 if ac_fn_c_try_link "$LINENO"; then :
12902 ac_cv_lib_readline_rl_completion_display_matches_hook=yes
12903 else
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
12924 else
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. */
12933 #ifdef __cplusplus
12934 extern "C"
12935 #endif
12936 char rl_completion_matches ();
12938 main ()
12940 return rl_completion_matches ();
12942 return 0;
12944 _ACEOF
12945 if ac_fn_c_try_link "$LINENO"; then :
12946 ac_cv_lib_readline_rl_completion_matches=yes
12947 else
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>
12967 _ACEOF
12968 if ac_fn_c_try_cpp "$LINENO"; then :
12969 have_readline=yes
12970 else
12971 have_readline=no
12974 rm -f conftest.err conftest.$ac_ext
12975 if test $have_readline = yes
12976 then
12977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12978 /* end confdefs.h. */
12979 #include <readline/readline.h>
12981 _ACEOF
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
12988 rm -f conftest*
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
12999 else
13001 if test "$cross_compiling" = yes; then :
13002 ac_cv_broken_nice=no
13003 else
13004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13005 /* end confdefs.h. */
13007 int main()
13009 int val1 = nice(1);
13010 if (val1 != -1 && val1 == nice(2))
13011 exit(0);
13012 exit(1);
13015 _ACEOF
13016 if ac_fn_c_try_run "$LINENO"; then :
13017 ac_cv_broken_nice=yes
13018 else
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
13030 then
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
13040 else
13041 if test "$cross_compiling" = yes; then :
13042 ac_cv_broken_poll=no
13043 else
13044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13045 /* end confdefs.h. */
13047 #include <poll.h>
13049 int main()
13051 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
13052 int poll_test;
13054 close (42);
13056 poll_test = poll(&poll_struct, 1, 0);
13057 if (poll_test < 0)
13058 return 0;
13059 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
13060 return 0;
13061 else
13062 return 1;
13065 _ACEOF
13066 if ac_fn_c_try_run "$LINENO"; then :
13067 ac_cv_broken_poll=yes
13068 else
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
13080 then
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
13088 # tzname[]
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
13097 _ACEOF
13102 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
13104 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
13106 else
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 :
13110 ac_have_decl=1
13111 else
13112 ac_have_decl=0
13115 cat >>confdefs.h <<_ACEOF
13116 #define HAVE_DECL_TZNAME $ac_have_decl
13117 _ACEOF
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
13123 else
13124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13125 /* end confdefs.h. */
13126 #include <time.h>
13127 #if !HAVE_DECL_TZNAME
13128 extern char *tzname[];
13129 #endif
13132 main ()
13134 return tzname[0][0];
13136 return 0;
13138 _ACEOF
13139 if ac_fn_c_try_link "$LINENO"; then :
13140 ac_cv_var_tzname=yes
13141 else
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
13162 else
13164 if test "$cross_compiling" = yes; then :
13165 ac_cv_working_tzset=no
13166 else
13167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13168 /* end confdefs.h. */
13170 #include <stdlib.h>
13171 #include <time.h>
13172 #include <string.h>
13174 #if HAVE_TZNAME
13175 extern char *tzname[];
13176 #endif
13178 int main()
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");
13195 tzset();
13196 if (localtime(&groundhogday)->tm_hour != 0)
13197 exit(1);
13198 #if HAVE_TZNAME
13199 /* For UTC, tzname[1] is sometimes "", sometimes " " */
13200 if (strcmp(tzname[0], "UTC") ||
13201 (tzname[1][0] != 0 && tzname[1][0] != ' '))
13202 exit(1);
13203 #endif
13205 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
13206 tzset();
13207 if (localtime(&groundhogday)->tm_hour != 19)
13208 exit(1);
13209 #if HAVE_TZNAME
13210 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
13211 exit(1);
13212 #endif
13214 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
13215 tzset();
13216 if (localtime(&groundhogday)->tm_hour != 11)
13217 exit(1);
13218 #if HAVE_TZNAME
13219 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
13220 exit(1);
13221 #endif
13223 #if HAVE_STRUCT_TM_TM_ZONE
13224 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
13225 exit(1);
13226 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
13227 exit(1);
13228 #endif
13230 exit(0);
13233 _ACEOF
13234 if ac_fn_c_try_run "$LINENO"; then :
13235 ac_cv_working_tzset=yes
13236 else
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
13248 then
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
13259 else
13260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13261 /* end confdefs.h. */
13262 #include <sys/stat.h>
13264 main ()
13267 struct stat st;
13268 st.st_mtim.tv_nsec = 1;
13271 return 0;
13273 _ACEOF
13274 if ac_fn_c_try_compile "$LINENO"; then :
13275 ac_cv_stat_tv_nsec=yes
13276 else
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
13285 then
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
13296 else
13297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13298 /* end confdefs.h. */
13299 #include <sys/stat.h>
13301 main ()
13304 struct stat st;
13305 st.st_mtimespec.tv_nsec = 1;
13308 return 0;
13310 _ACEOF
13311 if ac_fn_c_try_compile "$LINENO"; then :
13312 ac_cv_stat_tv_nsec2=yes
13313 else
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
13322 then
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
13333 else
13334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13335 /* end confdefs.h. */
13336 #include <curses.h>
13338 main ()
13341 int rtn;
13342 rtn = mvwdelch(0,0,0);
13345 return 0;
13347 _ACEOF
13348 if ac_fn_c_try_compile "$LINENO"; then :
13349 ac_cv_mvwdelch_is_expression=yes
13350 else
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
13360 then
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
13370 else
13371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13372 /* end confdefs.h. */
13373 #include <curses.h>
13375 main ()
13378 WINDOW *w;
13379 w->_flags = 0;
13382 return 0;
13384 _ACEOF
13385 if ac_fn_c_try_compile "$LINENO"; then :
13386 ac_cv_window_has_flags=yes
13387 else
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
13398 then
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>
13410 main ()
13412 void *x=is_term_resized
13414 return 0;
13416 _ACEOF
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; }
13423 else
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>
13436 main ()
13438 void *x=resize_term
13440 return 0;
13442 _ACEOF
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; }
13449 else
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>
13462 main ()
13464 void *x=resizeterm
13466 return 0;
13468 _ACEOF
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; }
13475 else
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
13486 then
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
13492 else
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
13501 then
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
13507 else
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13509 $as_echo "no" >&6; }
13512 if test "$have_long_long" = yes
13513 then
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
13518 else
13519 if test "$cross_compiling" = yes; then :
13520 ac_cv_have_long_long_format=no
13521 else
13522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13523 /* end confdefs.h. */
13525 #include <stdio.h>
13526 #include <stddef.h>
13527 #include <string.h>
13529 #ifdef HAVE_SYS_TYPES_H
13530 #include <sys/types.h>
13531 #endif
13533 int main()
13535 char buffer[256];
13537 if (sprintf(buffer, "%lld", (long long)123) < 0)
13538 return 1;
13539 if (strcmp(buffer, "123"))
13540 return 1;
13542 if (sprintf(buffer, "%lld", (long long)-123) < 0)
13543 return 1;
13544 if (strcmp(buffer, "-123"))
13545 return 1;
13547 if (sprintf(buffer, "%llu", (unsigned long long)123) < 0)
13548 return 1;
13549 if (strcmp(buffer, "123"))
13550 return 1;
13552 return 0;
13555 _ACEOF
13556 if ac_fn_c_try_run "$LINENO"; then :
13557 ac_cv_have_long_long_format=yes
13558 else
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
13573 then
13575 $as_echo "#define PY_FORMAT_LONG_LONG \"ll\"" >>confdefs.h
13579 if test $ac_sys_system = Darwin
13580 then
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
13589 else
13590 if test "$cross_compiling" = yes; then :
13591 ac_cv_have_size_t_format="cross -- assuming yes"
13593 else
13594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13595 /* end confdefs.h. */
13597 #include <stdio.h>
13598 #include <stddef.h>
13599 #include <string.h>
13601 #ifdef HAVE_SYS_TYPES_H
13602 #include <sys/types.h>
13603 #endif
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;
13609 #else
13610 typedef int Py_ssize_t;
13611 #endif
13613 int main()
13615 char buffer[256];
13617 if(sprintf(buffer, "%zd", (size_t)123) < 0)
13618 return 1;
13620 if (strcmp(buffer, "123"))
13621 return 1;
13623 if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
13624 return 1;
13626 if (strcmp(buffer, "-123"))
13627 return 1;
13629 return 0;
13632 _ACEOF
13633 if ac_fn_c_try_run "$LINENO"; then :
13634 ac_cv_have_size_t_format=yes
13635 else
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>
13654 #endif
13655 #ifdef HAVE_SYS_SOCKET_H
13656 #include <sys/socket.h>
13657 #endif
13660 if test "x$ac_cv_type_socklen_t" = x""yes; then :
13662 else
13664 $as_echo "#define socklen_t int" >>confdefs.h
13671 for h in `(cd $srcdir;echo Python/thread_*.h)`
13673 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
13674 done
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
13682 mkdir $dir
13684 done
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.
13705 _ACEOF
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
13715 case $ac_val in #(
13716 *${as_nl}*)
13717 case $ac_var in #(
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;} ;;
13720 esac
13721 case $ac_var in #(
13722 _ | IFS | as_nl) ;; #(
13723 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13724 *) { eval $ac_var=; unset $ac_var;} ;;
13725 esac ;;
13726 esac
13727 done
13729 (set) 2>&1 |
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 \.
13734 sed -n \
13735 "s/'/'\\\\''/g;
13736 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13737 ;; #(
13739 # `set' quotes correctly as required by POSIX, so do not add quotes.
13740 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13742 esac |
13743 sort
13745 sed '
13746 /^ac_cv_env_/b end
13747 t clear
13748 :clear
13749 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13750 t end
13751 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13752 :end' >>confcache
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
13759 else
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;}
13764 rm -f confcache
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
13772 ac_libobjs=
13773 ac_ltlibobjs=
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'
13782 done
13783 LIBOBJS=$ac_libobjs
13785 LTLIBOBJS=$ac_ltlibobjs
13790 : ${CONFIG_STATUS=./config.status}
13791 ac_write_fail=0
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;}
13796 as_write_fail=0
13797 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13798 #! $SHELL
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.
13804 debug=false
13805 ac_cs_recheck=false
13806 ac_cs_silent=false
13808 SHELL=\${CONFIG_SHELL-$SHELL}
13809 export SHELL
13810 _ASEOF
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 :
13819 emulate sh
13820 NULLCMD=:
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
13825 else
13826 case `(set -o) 2>/dev/null` in #(
13827 *posix*) :
13828 set -o posix ;; #(
13829 *) :
13831 esac
13835 as_nl='
13837 export as_nl
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'
13851 else
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'
13855 else
13856 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13857 as_echo_n_body='eval
13858 arg=$1;
13859 case $arg in #(
13860 *"$as_nl"*)
13861 expr "X$arg" : "X\\(.*\\)$as_nl";
13862 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13863 esac;
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
13875 PATH_SEPARATOR=:
13876 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13877 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13878 PATH_SEPARATOR=';'
13883 # IFS
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.)
13888 IFS=" "" $as_nl"
13890 # Find who we are. Look in the path if we contain no directory separator.
13891 case $0 in #((
13892 *[\\/]* ) as_myself=$0 ;;
13893 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13894 for as_dir in $PATH
13896 IFS=$as_save_IFS
13897 test -z "$as_dir" && as_dir=.
13898 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13899 done
13900 IFS=$as_save_IFS
13903 esac
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
13907 as_myself=$0
13909 if test ! -f "$as_myself"; then
13910 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13911 exit 1
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 || :
13921 done
13922 PS1='$ '
13923 PS2='> '
13924 PS4='+ '
13926 # NLS nuisances.
13927 LC_ALL=C
13928 export LC_ALL
13929 LANGUAGE=C
13930 export LANGUAGE
13932 # CDPATH.
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.
13941 as_fn_error ()
13943 as_status=$?; test $as_status -eq 0 && as_status=1
13944 if test "$3"; then
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
13950 } # as_fn_error
13953 # as_fn_set_status STATUS
13954 # -----------------------
13955 # Set $? to STATUS, without forking.
13956 as_fn_set_status ()
13958 return $1
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.
13964 as_fn_exit ()
13966 set +e
13967 as_fn_set_status $1
13968 exit $1
13969 } # as_fn_exit
13971 # as_fn_unset VAR
13972 # ---------------
13973 # Portably unset VAR.
13974 as_fn_unset ()
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
13984 # implementations.
13985 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13986 eval 'as_fn_append ()
13988 eval $1+=\$2
13990 else
13991 as_fn_append ()
13993 eval $1=\$$1\$2
13995 fi # 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 ()
14005 as_val=$(( $* ))
14007 else
14008 as_fn_arith ()
14010 as_val=`expr "$@" || test $? -eq 1`
14012 fi # as_fn_arith
14015 if expr a : '\(a\)' >/dev/null 2>&1 &&
14016 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14017 as_expr=expr
14018 else
14019 as_expr=false
14022 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14023 as_basename=basename
14024 else
14025 as_basename=false
14028 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14029 as_dirname=dirname
14030 else
14031 as_dirname=false
14034 as_me=`$as_basename -- "$0" ||
14035 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14036 X"$0" : 'X\(//\)$' \| \
14037 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14038 $as_echo X/"$0" |
14039 sed '/^.*\/\([^/][^/]*\)\/*$/{
14040 s//\1/
14043 /^X\/\(\/\/\)$/{
14044 s//\1/
14047 /^X\/\(\/\).*/{
14048 s//\1/
14051 s/.*/./; q'`
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 #(((((
14062 -n*)
14063 case `echo 'xy\c'` in
14064 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14065 xy) ECHO_C='\c';;
14066 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14067 ECHO_T=' ';;
14068 esac;;
14070 ECHO_N='-n';;
14071 esac
14073 rm -f conf$$ conf$$.exe conf$$.file
14074 if test -d conf$$.dir; then
14075 rm -f conf$$.dir/conf$$.file
14076 else
14077 rm -f conf$$.dir
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
14082 as_ln_s='ln -s'
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 ||
14088 as_ln_s='cp -p'
14089 elif ln conf$$.file conf$$ 2>/dev/null; then
14090 as_ln_s=ln
14091 else
14092 as_ln_s='cp -p'
14094 else
14095 as_ln_s='cp -p'
14097 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14098 rmdir conf$$.dir 2>/dev/null
14101 # as_fn_mkdir_p
14102 # -------------
14103 # Create "$as_dir" as a directory, including parents if necessary.
14104 as_fn_mkdir_p ()
14107 case $as_dir in #(
14108 -*) as_dir=./$as_dir;;
14109 esac
14110 test -d "$as_dir" || eval $as_mkdir_p || {
14111 as_dirs=
14112 while :; do
14113 case $as_dir in #(
14114 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14115 *) as_qdir=$as_dir;;
14116 esac
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14125 s//\1/
14128 /^X\(\/\/\)[^/].*/{
14129 s//\1/
14132 /^X\(\/\/\)$/{
14133 s//\1/
14136 /^X\(\/\).*/{
14137 s//\1/
14140 s/.*/./; q'`
14141 test -d "$as_dir" && break
14142 done
14143 test -z "$as_dirs" || eval "mkdir $as_dirs"
14144 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14147 } # as_fn_mkdir_p
14148 if mkdir -p . 2>/dev/null; then
14149 as_mkdir_p='mkdir -p "$as_dir"'
14150 else
14151 test -d ./-p && rmdir ./-p
14152 as_mkdir_p=false
14155 if test -x / >/dev/null 2>&1; then
14156 as_test_x='test -x'
14157 else
14158 if ls -dL / >/dev/null 2>&1; then
14159 as_ls_L_option=L
14160 else
14161 as_ls_L_option=
14163 as_test_x='
14164 eval sh -c '\''
14165 if test -d "$1"; then
14166 test -d "$1/.";
14167 else
14168 case $1 in #(
14169 -*)set "./$1";;
14170 esac;
14171 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14172 ???[sx]*):;;*)false;;esac;fi
14173 '\'' sh
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'"
14185 exec 6>&1
14186 ## ----------------------------------- ##
14187 ## Main body of $CONFIG_STATUS script. ##
14188 ## ----------------------------------- ##
14189 _ASEOF
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.
14196 ac_log="
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
14204 $ $0 $@
14206 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14209 _ACEOF
14211 case $ac_config_files in *"
14212 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14213 esac
14215 case $ac_config_headers in *"
14216 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14217 esac
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"
14225 _ACEOF
14227 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14228 ac_cs_usage="\
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:
14248 $config_files
14250 Configuration headers:
14251 $config_headers
14253 Report bugs to <http://bugs.python.org/>."
14255 _ACEOF
14256 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14257 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14258 ac_cs_version="\\
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."
14267 ac_pwd='$ac_pwd'
14268 srcdir='$srcdir'
14269 INSTALL='$INSTALL'
14270 test -n "\$AWK" || AWK=awk
14271 _ACEOF
14273 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14274 # The default lists apply if the user does not specify any file.
14275 ac_need_defaults=:
14276 while test $# != 0
14278 case $1 in
14279 --*=*)
14280 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14281 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14282 ac_shift=:
14285 ac_option=$1
14286 ac_optarg=$2
14287 ac_shift=shift
14289 esac
14291 case $ac_option in
14292 # Handling of the options.
14293 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14294 ac_cs_recheck=: ;;
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 )
14300 debug=: ;;
14301 --file | --fil | --fi | --f )
14302 $ac_shift
14303 case $ac_optarg in
14304 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14305 esac
14306 as_fn_append CONFIG_FILES " '$ac_optarg'"
14307 ac_need_defaults=false;;
14308 --header | --heade | --head | --hea )
14309 $ac_shift
14310 case $ac_optarg in
14311 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14312 esac
14313 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14314 ac_need_defaults=false;;
14315 --he | --h)
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)
14323 ac_cs_silent=: ;;
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 ;;
14332 esac
14333 shift
14334 done
14336 ac_configure_extra_args=
14338 if $ac_cs_silent; then
14339 exec 6>/dev/null
14340 ac_configure_extra_args="$ac_configure_extra_args --silent"
14343 _ACEOF
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
14347 shift
14348 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14349 CONFIG_SHELL='$SHELL'
14350 export CONFIG_SHELL
14351 exec "\$@"
14354 _ACEOF
14355 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14356 exec 5>>config.log
14358 echo
14359 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14360 ## Running $as_me. ##
14361 _ASBOX
14362 $as_echo "$ac_log"
14363 } >&5
14365 _ACEOF
14366 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14367 _ACEOF
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;;
14386 esac
14387 done
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'.
14405 $debug ||
14407 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"
14418 } ||
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
14439 ac_cs_awk_cr='\r'
14440 else
14441 ac_cs_awk_cr=$ac_cr
14444 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14445 _ACEOF
14449 echo "cat >conf$$subs.awk <<_ACEOF" &&
14450 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14451 echo "_ACEOF"
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 '$'`
14455 ac_delim='%!_!# '
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
14462 break
14463 elif $ac_last_try; then
14464 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14465 else
14466 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14468 done
14469 rm -f conf$$subs.sh
14471 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14472 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14473 _ACEOF
14474 sed -n '
14476 s/^/S["/; s/!.*/"]=/
14479 s/^[^!]*!//
14480 :repl
14481 t repl
14482 s/'"$ac_delim"'$//
14483 t delim
14486 s/\(.\{148\}\)..*/\1/
14487 t more1
14488 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14491 b repl
14492 :more1
14493 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14496 s/.\{148\}//
14497 t nl
14498 :delim
14500 s/\(.\{148\}\)..*/\1/
14501 t more2
14502 s/["\\]/\\&/g; s/^/"/; s/$/"/
14505 :more2
14506 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14509 s/.\{148\}//
14510 t delim
14511 ' <conf$$subs.awk | sed '
14512 /^[^""]/{
14514 s/\n//
14516 ' >>$CONFIG_STATUS || ac_write_fail=1
14517 rm -f conf$$subs.awk
14518 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14519 _ACAWK
14520 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14521 for (key in S) S_is_set[key] = 1
14522 FS = "\a"
14526 line = $ 0
14527 nfields = split(line, field, "@")
14528 substed = 0
14529 len = length(field[1])
14530 for (i = 2; i < nfields; i++) {
14531 key = field[i]
14532 keylen = length(key)
14533 if (S_is_set[key]) {
14534 value = S[key]
14535 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14536 len += length(value) + length(field[++i])
14537 substed = 1
14538 } else
14539 len += 1 + keylen
14542 print line
14545 _ACAWK
14546 _ACEOF
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"
14550 else
14552 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14553 || as_fn_error "could not setup config files machinery" "$LINENO" 5
14554 _ACEOF
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}:*/:/
14564 s/:*@srcdir@:*/:/
14565 s/^\([^=]*=[ ]*\):*/\1/
14566 s/:*$//
14567 s/^[^=]*=[ ]*$//
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 ||
14579 BEGIN {
14580 _ACEOF
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.
14588 ac_delim='%!_!# '
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
14592 break
14593 elif $ac_last_try; then
14594 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
14595 else
14596 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14598 done
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]*
14605 sed -n '
14606 s/.\{148\}/&'"$ac_delim"'/g
14607 t rset
14608 :rset
14609 s/^[ ]*#[ ]*define[ ][ ]*/ /
14610 t def
14612 :def
14613 s/\\$//
14614 t bsnl
14615 s/["\\]/\\&/g
14616 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14617 D["\1"]=" \3"/p
14618 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14620 :bsnl
14621 s/["\\]/\\&/g
14622 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14623 D["\1"]=" \3\\\\\\n"\\/p
14624 t cont
14625 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14626 t cont
14628 :cont
14630 s/.\{148\}/&'"$ac_delim"'/g
14631 t clear
14632 :clear
14633 s/\\$//
14634 t bsnlc
14635 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14637 :bsnlc
14638 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14639 b cont
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
14646 FS = "\a"
14648 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14649 line = \$ 0
14650 split(line, arg, " ")
14651 if (arg[1] == "#") {
14652 defundef = arg[2]
14653 mac1 = arg[3]
14654 } else {
14655 defundef = substr(arg[1], 2)
14656 mac1 = arg[2]
14658 split(mac1, mac2, "(") #)
14659 macro = mac2[1]
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]
14664 next
14665 } else {
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, "*/"
14671 next
14675 { print }
14676 _ACAWK
14677 _ACEOF
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 "
14684 shift
14685 for ac_tag
14687 case $ac_tag in
14688 :[FHLC]) ac_mode=$ac_tag; continue;;
14689 esac
14690 case $ac_mode$ac_tag in
14691 :[FHL]*:*);;
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;;
14695 esac
14696 ac_save_IFS=$IFS
14697 IFS=:
14698 set x $ac_tag
14699 IFS=$ac_save_IFS
14700 shift
14701 ac_file=$1
14702 shift
14704 case $ac_mode in
14705 :L) ac_source=$1;;
14706 :[FH])
14707 ac_file_inputs=
14708 for ac_f
14710 case $ac_f 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 `:'.
14715 test -f "$ac_f" ||
14716 case $ac_f in
14717 [\\/$]*) false;;
14718 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14719 esac ||
14720 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14721 esac
14722 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14723 as_fn_append ac_file_inputs " '$ac_f'"
14724 done
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'
14731 `' by configure.'
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;;
14743 esac
14745 case $ac_tag in
14746 *:-:* | *:-) cat >"$tmp/stdin" \
14747 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
14748 esac
14750 esac
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14759 s//\1/
14762 /^X\(\/\/\)[^/].*/{
14763 s//\1/
14766 /^X\(\/\/\)$/{
14767 s//\1/
14770 /^X\(\/\).*/{
14771 s//\1/
14774 s/.*/./; q'`
14775 as_dir="$ac_dir"; as_fn_mkdir_p
14776 ac_builddir=.
14778 case "$ac_dir" in
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/ ;;
14787 esac ;;
14788 esac
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
14794 case $srcdir in
14795 .) # We are building in place.
14796 ac_srcdir=.
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 ;;
14807 esac
14808 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14811 case $ac_mode in
14814 # CONFIG_FILE
14817 case $INSTALL in
14818 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14819 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14820 esac
14821 _ACEOF
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=
14827 ac_sed_dataroot='
14828 /datarootdir/ {
14832 /@datadir@/p
14833 /@docdir@/p
14834 /@infodir@/p
14835 /@localedir@/p
14836 /@mandir@/p'
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;}
14842 _ACEOF
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' ;;
14851 esac
14852 _ACEOF
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
14859 $extrasub
14860 _ACEOF
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;}
14888 rm -f "$tmp/stdin"
14889 case $ac_file in
14890 -) cat "$tmp/out" && rm -f "$tmp/out";;
14891 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14892 esac \
14893 || as_fn_error "could not create $ac_file" "$LINENO" 5
14897 # CONFIG_HEADER
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;}
14908 else
14909 rm -f "$ac_file"
14910 mv "$tmp/config.h" "$ac_file" \
14911 || as_fn_error "could not create $ac_file" "$LINENO" 5
14913 else
14914 $as_echo "/* $configure_input */" \
14915 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14916 || as_fn_error "could not create -" "$LINENO" 5
14921 esac
14923 done # for ac_tag
14926 as_fn_exit 0
14927 _ACEOF
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
14943 ac_cs_success=:
14944 ac_config_status_args=
14945 test "$silent" = yes &&
14946 ac_config_status_args="$ac_config_status_args --quiet"
14947 exec 5>/dev/null
14948 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14949 exec 5>>config.log
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
14962 then
14963 cp $srcdir/Modules/Setup.dist Modules/Setup
14966 echo "creating Modules/Setup.local"
14967 if test ! -f Modules/Setup.local
14968 then
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
14978 BeOS)
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.
14983 " >&5
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.
14988 " >&2;}
14990 *) ;;
14991 esac
14993 mv config.c Modules