bump to 3.1.3rc1
[python/dscho.git] / configure
blob8a23f2bb32f109a00e0f27210e3ab9a3b11ffadb
1 #! /bin/sh
2 # From configure.in Revision: 85351 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.65 for python 3.1.
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='3.1'
557 PACKAGE_STRING='python 3.1'
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 LIBC
602 LIBM
603 HAVE_GETHOSTBYNAME
604 HAVE_GETHOSTBYNAME_R
605 HAVE_GETHOSTBYNAME_R_3_ARG
606 HAVE_GETHOSTBYNAME_R_5_ARG
607 HAVE_GETHOSTBYNAME_R_6_ARG
608 LIBOBJS
609 TRUE
610 MACHDEP_OBJS
611 DYNLOADFILE
612 DLINCLDIR
613 THREADOBJ
614 LDLAST
615 USE_THREAD_MODULE
616 SIGNAL_OBJS
617 USE_SIGNAL_MODULE
618 SHLIBS
619 CFLAGSFORSHARED
620 LINKFORSHARED
621 CCSHARED
622 BLDSHARED
623 LDSHARED
625 LIBTOOL_CRUFT
626 OTHER_LIBTOOL_OPT
627 UNIVERSAL_ARCH_FLAGS
628 BASECFLAGS
631 INSTALL_DATA
632 INSTALL_SCRIPT
633 INSTALL_PROGRAM
634 SVNVERSION
635 ARFLAGS
637 RANLIB
638 GNULD
639 LINKCC
640 RUNSHARED
641 INSTSONAME
642 LDLIBRARYDIR
643 BLDLIBRARY
644 DLLLIBRARY
645 LDLIBRARY
646 LIBRARY
647 BUILDEXEEXT
648 EGREP
649 GREP
651 MAINCC
653 OBJEXT
654 EXEEXT
655 ac_ct_CC
656 CPPFLAGS
657 LDFLAGS
658 CFLAGS
660 EXPORT_MACOSX_DEPLOYMENT_TARGET
661 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
662 SGI_ABI
663 MACHDEP
664 FRAMEWORKUNIXTOOLSPREFIX
665 FRAMEWORKALTINSTALLLAST
666 FRAMEWORKALTINSTALLFIRST
667 FRAMEWORKINSTALLLAST
668 FRAMEWORKINSTALLFIRST
669 PYTHONFRAMEWORKINSTALLDIR
670 PYTHONFRAMEWORKPREFIX
671 PYTHONFRAMEWORKDIR
672 PYTHONFRAMEWORKIDENTIFIER
673 PYTHONFRAMEWORK
674 LIPO_64BIT_FLAGS
675 LIPO_32BIT_FLAGS
676 ARCH_RUN_32BIT
677 UNIVERSALSDK
678 CONFIG_ARGS
679 SOVERSION
680 VERSION
681 target_alias
682 host_alias
683 build_alias
684 LIBS
685 ECHO_T
686 ECHO_N
687 ECHO_C
688 DEFS
689 mandir
690 localedir
691 libdir
692 psdir
693 pdfdir
694 dvidir
695 htmldir
696 infodir
697 docdir
698 oldincludedir
699 includedir
700 localstatedir
701 sharedstatedir
702 sysconfdir
703 datadir
704 datarootdir
705 libexecdir
706 sbindir
707 bindir
708 program_transform_name
709 prefix
710 exec_prefix
711 PACKAGE_URL
712 PACKAGE_BUGREPORT
713 PACKAGE_STRING
714 PACKAGE_VERSION
715 PACKAGE_TARNAME
716 PACKAGE_NAME
717 PATH_SEPARATOR
718 SHELL'
719 ac_subst_files=''
720 ac_user_opts='
721 enable_option_checking
722 enable_universalsdk
723 with_universal_archs
724 with_framework_name
725 enable_framework
726 with_gcc
727 with_cxx_main
728 with_suffix
729 enable_shared
730 enable_profiling
731 with_pydebug
732 with_libs
733 with_system_ffi
734 with_dbmliborder
735 with_signal_module
736 with_dec_threads
737 with_threads
738 with_thread
739 with_pth
740 enable_ipv6
741 with_doc_strings
742 with_tsc
743 with_pymalloc
744 with_wctype_functions
745 with_fpectl
746 with_libm
747 with_libc
748 enable_big_digits
749 with_wide_unicode
750 with_computed_gotos
752 ac_precious_vars='build_alias
753 host_alias
754 target_alias
756 CFLAGS
757 LDFLAGS
758 LIBS
759 CPPFLAGS
760 CPP'
763 # Initialize some variables set by options.
764 ac_init_help=
765 ac_init_version=false
766 ac_unrecognized_opts=
767 ac_unrecognized_sep=
768 # The variables have the same names as the options, with
769 # dashes changed to underlines.
770 cache_file=/dev/null
771 exec_prefix=NONE
772 no_create=
773 no_recursion=
774 prefix=NONE
775 program_prefix=NONE
776 program_suffix=NONE
777 program_transform_name=s,x,x,
778 silent=
779 site=
780 srcdir=
781 verbose=
782 x_includes=NONE
783 x_libraries=NONE
785 # Installation directory options.
786 # These are left unexpanded so users can "make install exec_prefix=/foo"
787 # and all the variables that are supposed to be based on exec_prefix
788 # by default will actually change.
789 # Use braces instead of parens because sh, perl, etc. also accept them.
790 # (The list follows the same order as the GNU Coding Standards.)
791 bindir='${exec_prefix}/bin'
792 sbindir='${exec_prefix}/sbin'
793 libexecdir='${exec_prefix}/libexec'
794 datarootdir='${prefix}/share'
795 datadir='${datarootdir}'
796 sysconfdir='${prefix}/etc'
797 sharedstatedir='${prefix}/com'
798 localstatedir='${prefix}/var'
799 includedir='${prefix}/include'
800 oldincludedir='/usr/include'
801 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
802 infodir='${datarootdir}/info'
803 htmldir='${docdir}'
804 dvidir='${docdir}'
805 pdfdir='${docdir}'
806 psdir='${docdir}'
807 libdir='${exec_prefix}/lib'
808 localedir='${datarootdir}/locale'
809 mandir='${datarootdir}/man'
811 ac_prev=
812 ac_dashdash=
813 for ac_option
815 # If the previous option needs an argument, assign it.
816 if test -n "$ac_prev"; then
817 eval $ac_prev=\$ac_option
818 ac_prev=
819 continue
822 case $ac_option in
823 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
824 *) ac_optarg=yes ;;
825 esac
827 # Accept the important Cygnus configure options, so we can diagnose typos.
829 case $ac_dashdash$ac_option in
831 ac_dashdash=yes ;;
833 -bindir | --bindir | --bindi | --bind | --bin | --bi)
834 ac_prev=bindir ;;
835 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
836 bindir=$ac_optarg ;;
838 -build | --build | --buil | --bui | --bu)
839 ac_prev=build_alias ;;
840 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
841 build_alias=$ac_optarg ;;
843 -cache-file | --cache-file | --cache-fil | --cache-fi \
844 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
845 ac_prev=cache_file ;;
846 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
847 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
848 cache_file=$ac_optarg ;;
850 --config-cache | -C)
851 cache_file=config.cache ;;
853 -datadir | --datadir | --datadi | --datad)
854 ac_prev=datadir ;;
855 -datadir=* | --datadir=* | --datadi=* | --datad=*)
856 datadir=$ac_optarg ;;
858 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
859 | --dataroo | --dataro | --datar)
860 ac_prev=datarootdir ;;
861 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
862 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
863 datarootdir=$ac_optarg ;;
865 -disable-* | --disable-*)
866 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
867 # Reject names that are not valid shell variable names.
868 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
869 as_fn_error "invalid feature name: $ac_useropt"
870 ac_useropt_orig=$ac_useropt
871 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
872 case $ac_user_opts in
874 "enable_$ac_useropt"
875 "*) ;;
876 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
877 ac_unrecognized_sep=', ';;
878 esac
879 eval enable_$ac_useropt=no ;;
881 -docdir | --docdir | --docdi | --doc | --do)
882 ac_prev=docdir ;;
883 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
884 docdir=$ac_optarg ;;
886 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
887 ac_prev=dvidir ;;
888 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
889 dvidir=$ac_optarg ;;
891 -enable-* | --enable-*)
892 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
893 # Reject names that are not valid shell variable names.
894 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
895 as_fn_error "invalid feature name: $ac_useropt"
896 ac_useropt_orig=$ac_useropt
897 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
898 case $ac_user_opts in
900 "enable_$ac_useropt"
901 "*) ;;
902 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
903 ac_unrecognized_sep=', ';;
904 esac
905 eval enable_$ac_useropt=\$ac_optarg ;;
907 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
908 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
909 | --exec | --exe | --ex)
910 ac_prev=exec_prefix ;;
911 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
912 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
913 | --exec=* | --exe=* | --ex=*)
914 exec_prefix=$ac_optarg ;;
916 -gas | --gas | --ga | --g)
917 # Obsolete; use --with-gas.
918 with_gas=yes ;;
920 -help | --help | --hel | --he | -h)
921 ac_init_help=long ;;
922 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
923 ac_init_help=recursive ;;
924 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
925 ac_init_help=short ;;
927 -host | --host | --hos | --ho)
928 ac_prev=host_alias ;;
929 -host=* | --host=* | --hos=* | --ho=*)
930 host_alias=$ac_optarg ;;
932 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
933 ac_prev=htmldir ;;
934 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
935 | --ht=*)
936 htmldir=$ac_optarg ;;
938 -includedir | --includedir | --includedi | --included | --include \
939 | --includ | --inclu | --incl | --inc)
940 ac_prev=includedir ;;
941 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
942 | --includ=* | --inclu=* | --incl=* | --inc=*)
943 includedir=$ac_optarg ;;
945 -infodir | --infodir | --infodi | --infod | --info | --inf)
946 ac_prev=infodir ;;
947 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
948 infodir=$ac_optarg ;;
950 -libdir | --libdir | --libdi | --libd)
951 ac_prev=libdir ;;
952 -libdir=* | --libdir=* | --libdi=* | --libd=*)
953 libdir=$ac_optarg ;;
955 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
956 | --libexe | --libex | --libe)
957 ac_prev=libexecdir ;;
958 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
959 | --libexe=* | --libex=* | --libe=*)
960 libexecdir=$ac_optarg ;;
962 -localedir | --localedir | --localedi | --localed | --locale)
963 ac_prev=localedir ;;
964 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
965 localedir=$ac_optarg ;;
967 -localstatedir | --localstatedir | --localstatedi | --localstated \
968 | --localstate | --localstat | --localsta | --localst | --locals)
969 ac_prev=localstatedir ;;
970 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
971 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
972 localstatedir=$ac_optarg ;;
974 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
975 ac_prev=mandir ;;
976 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
977 mandir=$ac_optarg ;;
979 -nfp | --nfp | --nf)
980 # Obsolete; use --without-fp.
981 with_fp=no ;;
983 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
984 | --no-cr | --no-c | -n)
985 no_create=yes ;;
987 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
988 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
989 no_recursion=yes ;;
991 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
992 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
993 | --oldin | --oldi | --old | --ol | --o)
994 ac_prev=oldincludedir ;;
995 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
996 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
997 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
998 oldincludedir=$ac_optarg ;;
1000 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1001 ac_prev=prefix ;;
1002 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1003 prefix=$ac_optarg ;;
1005 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1006 | --program-pre | --program-pr | --program-p)
1007 ac_prev=program_prefix ;;
1008 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1009 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1010 program_prefix=$ac_optarg ;;
1012 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1013 | --program-suf | --program-su | --program-s)
1014 ac_prev=program_suffix ;;
1015 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1016 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1017 program_suffix=$ac_optarg ;;
1019 -program-transform-name | --program-transform-name \
1020 | --program-transform-nam | --program-transform-na \
1021 | --program-transform-n | --program-transform- \
1022 | --program-transform | --program-transfor \
1023 | --program-transfo | --program-transf \
1024 | --program-trans | --program-tran \
1025 | --progr-tra | --program-tr | --program-t)
1026 ac_prev=program_transform_name ;;
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 program_transform_name=$ac_optarg ;;
1036 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1037 ac_prev=pdfdir ;;
1038 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1039 pdfdir=$ac_optarg ;;
1041 -psdir | --psdir | --psdi | --psd | --ps)
1042 ac_prev=psdir ;;
1043 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1044 psdir=$ac_optarg ;;
1046 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1047 | -silent | --silent | --silen | --sile | --sil)
1048 silent=yes ;;
1050 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1051 ac_prev=sbindir ;;
1052 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1053 | --sbi=* | --sb=*)
1054 sbindir=$ac_optarg ;;
1056 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1057 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1058 | --sharedst | --shareds | --shared | --share | --shar \
1059 | --sha | --sh)
1060 ac_prev=sharedstatedir ;;
1061 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1062 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1063 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1064 | --sha=* | --sh=*)
1065 sharedstatedir=$ac_optarg ;;
1067 -site | --site | --sit)
1068 ac_prev=site ;;
1069 -site=* | --site=* | --sit=*)
1070 site=$ac_optarg ;;
1072 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1073 ac_prev=srcdir ;;
1074 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1075 srcdir=$ac_optarg ;;
1077 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1078 | --syscon | --sysco | --sysc | --sys | --sy)
1079 ac_prev=sysconfdir ;;
1080 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1081 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1082 sysconfdir=$ac_optarg ;;
1084 -target | --target | --targe | --targ | --tar | --ta | --t)
1085 ac_prev=target_alias ;;
1086 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1087 target_alias=$ac_optarg ;;
1089 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1090 verbose=yes ;;
1092 -version | --version | --versio | --versi | --vers | -V)
1093 ac_init_version=: ;;
1095 -with-* | --with-*)
1096 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1097 # Reject names that are not valid shell variable names.
1098 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1099 as_fn_error "invalid package name: $ac_useropt"
1100 ac_useropt_orig=$ac_useropt
1101 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1102 case $ac_user_opts in
1104 "with_$ac_useropt"
1105 "*) ;;
1106 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1107 ac_unrecognized_sep=', ';;
1108 esac
1109 eval with_$ac_useropt=\$ac_optarg ;;
1111 -without-* | --without-*)
1112 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1113 # Reject names that are not valid shell variable names.
1114 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1115 as_fn_error "invalid package name: $ac_useropt"
1116 ac_useropt_orig=$ac_useropt
1117 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1118 case $ac_user_opts in
1120 "with_$ac_useropt"
1121 "*) ;;
1122 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1123 ac_unrecognized_sep=', ';;
1124 esac
1125 eval with_$ac_useropt=no ;;
1127 --x)
1128 # Obsolete; use --with-x.
1129 with_x=yes ;;
1131 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1132 | --x-incl | --x-inc | --x-in | --x-i)
1133 ac_prev=x_includes ;;
1134 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1135 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1136 x_includes=$ac_optarg ;;
1138 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1139 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1140 ac_prev=x_libraries ;;
1141 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1142 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1143 x_libraries=$ac_optarg ;;
1145 -*) as_fn_error "unrecognized option: \`$ac_option'
1146 Try \`$0 --help' for more information."
1149 *=*)
1150 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1151 # Reject names that are not valid shell variable names.
1152 case $ac_envvar in #(
1153 '' | [0-9]* | *[!_$as_cr_alnum]* )
1154 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1155 esac
1156 eval $ac_envvar=\$ac_optarg
1157 export $ac_envvar ;;
1160 # FIXME: should be removed in autoconf 3.0.
1161 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1162 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1163 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1164 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1167 esac
1168 done
1170 if test -n "$ac_prev"; then
1171 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1172 as_fn_error "missing argument to $ac_option"
1175 if test -n "$ac_unrecognized_opts"; then
1176 case $enable_option_checking in
1177 no) ;;
1178 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1179 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1180 esac
1183 # Check all directory arguments for consistency.
1184 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1185 datadir sysconfdir sharedstatedir localstatedir includedir \
1186 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1187 libdir localedir mandir
1189 eval ac_val=\$$ac_var
1190 # Remove trailing slashes.
1191 case $ac_val in
1192 */ )
1193 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1194 eval $ac_var=\$ac_val;;
1195 esac
1196 # Be sure to have absolute directory names.
1197 case $ac_val in
1198 [\\/$]* | ?:[\\/]* ) continue;;
1199 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1200 esac
1201 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1202 done
1204 # There might be people who depend on the old broken behavior: `$host'
1205 # used to hold the argument of --host etc.
1206 # FIXME: To remove some day.
1207 build=$build_alias
1208 host=$host_alias
1209 target=$target_alias
1211 # FIXME: To remove some day.
1212 if test "x$host_alias" != x; then
1213 if test "x$build_alias" = x; then
1214 cross_compiling=maybe
1215 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1216 If a cross compiler is detected then cross compile mode will be used." >&2
1217 elif test "x$build_alias" != "x$host_alias"; then
1218 cross_compiling=yes
1222 ac_tool_prefix=
1223 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1225 test "$silent" = yes && exec 6>/dev/null
1228 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1229 ac_ls_di=`ls -di .` &&
1230 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1231 as_fn_error "working directory cannot be determined"
1232 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1233 as_fn_error "pwd does not report name of working directory"
1236 # Find the source files, if location was not specified.
1237 if test -z "$srcdir"; then
1238 ac_srcdir_defaulted=yes
1239 # Try the directory containing this script, then the parent directory.
1240 ac_confdir=`$as_dirname -- "$as_myself" ||
1241 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1242 X"$as_myself" : 'X\(//\)[^/]' \| \
1243 X"$as_myself" : 'X\(//\)$' \| \
1244 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1245 $as_echo X"$as_myself" |
1246 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1247 s//\1/
1250 /^X\(\/\/\)[^/].*/{
1251 s//\1/
1254 /^X\(\/\/\)$/{
1255 s//\1/
1258 /^X\(\/\).*/{
1259 s//\1/
1262 s/.*/./; q'`
1263 srcdir=$ac_confdir
1264 if test ! -r "$srcdir/$ac_unique_file"; then
1265 srcdir=..
1267 else
1268 ac_srcdir_defaulted=no
1270 if test ! -r "$srcdir/$ac_unique_file"; then
1271 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1272 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1274 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1275 ac_abs_confdir=`(
1276 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1277 pwd)`
1278 # When building in place, set srcdir=.
1279 if test "$ac_abs_confdir" = "$ac_pwd"; then
1280 srcdir=.
1282 # Remove unnecessary trailing slashes from srcdir.
1283 # Double slashes in file names in object file debugging info
1284 # mess up M-x gdb in Emacs.
1285 case $srcdir in
1286 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1287 esac
1288 for ac_var in $ac_precious_vars; do
1289 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1290 eval ac_env_${ac_var}_value=\$${ac_var}
1291 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1292 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1293 done
1296 # Report the --help message.
1298 if test "$ac_init_help" = "long"; then
1299 # Omit some internal or obsolete options to make the list less imposing.
1300 # This message is too long to be a string in the A/UX 3.1 sh.
1301 cat <<_ACEOF
1302 \`configure' configures python 3.1 to adapt to many kinds of systems.
1304 Usage: $0 [OPTION]... [VAR=VALUE]...
1306 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1307 VAR=VALUE. See below for descriptions of some of the useful variables.
1309 Defaults for the options are specified in brackets.
1311 Configuration:
1312 -h, --help display this help and exit
1313 --help=short display options specific to this package
1314 --help=recursive display the short help of all the included packages
1315 -V, --version display version information and exit
1316 -q, --quiet, --silent do not print \`checking...' messages
1317 --cache-file=FILE cache test results in FILE [disabled]
1318 -C, --config-cache alias for \`--cache-file=config.cache'
1319 -n, --no-create do not create output files
1320 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1322 Installation directories:
1323 --prefix=PREFIX install architecture-independent files in PREFIX
1324 [$ac_default_prefix]
1325 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1326 [PREFIX]
1328 By default, \`make install' will install all the files in
1329 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1330 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1331 for instance \`--prefix=\$HOME'.
1333 For better control, use the options below.
1335 Fine tuning of the installation directories:
1336 --bindir=DIR user executables [EPREFIX/bin]
1337 --sbindir=DIR system admin executables [EPREFIX/sbin]
1338 --libexecdir=DIR program executables [EPREFIX/libexec]
1339 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1340 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1341 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1342 --libdir=DIR object code libraries [EPREFIX/lib]
1343 --includedir=DIR C header files [PREFIX/include]
1344 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1345 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1346 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1347 --infodir=DIR info documentation [DATAROOTDIR/info]
1348 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1349 --mandir=DIR man documentation [DATAROOTDIR/man]
1350 --docdir=DIR documentation root [DATAROOTDIR/doc/python]
1351 --htmldir=DIR html documentation [DOCDIR]
1352 --dvidir=DIR dvi documentation [DOCDIR]
1353 --pdfdir=DIR pdf documentation [DOCDIR]
1354 --psdir=DIR ps documentation [DOCDIR]
1355 _ACEOF
1357 cat <<\_ACEOF
1358 _ACEOF
1361 if test -n "$ac_init_help"; then
1362 case $ac_init_help in
1363 short | recursive ) echo "Configuration of python 3.1:";;
1364 esac
1365 cat <<\_ACEOF
1367 Optional Features:
1368 --disable-option-checking ignore unrecognized --enable/--with options
1369 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1370 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1371 --enable-universalsdk[=SDKDIR]
1372 Build against Mac OS X 10.4u SDK (ppc/i386)
1373 --enable-framework[=INSTALLDIR]
1374 Build (MacOSX|Darwin) framework
1375 --enable-shared disable/enable building shared python library
1376 --enable-profiling enable C-level code profiling
1377 --enable-ipv6 Enable ipv6 (with ipv4) support
1378 --disable-ipv6 Disable ipv6 support
1379 --enable-big-digits[=BITS]
1380 use big digits for Python longs [[BITS=30]]
1382 Optional Packages:
1383 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1384 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1385 --with-universal-archs=ARCH
1386 select architectures for universal build ("32-bit",
1387 "64-bit", "3-way", "intel" or "all")
1388 --with-framework-name=FRAMEWORK
1389 specify an alternate name of the framework built
1390 with --enable-framework
1391 --without-gcc never use gcc
1392 --with-cxx-main=<compiler>
1393 compile main() and link python executable with C++
1394 compiler
1395 --with-suffix=.exe set executable suffix
1396 --with-pydebug build with Py_DEBUG defined
1397 --with-libs='lib1 ...' link against additional libs
1398 --with-system-ffi build _ctypes module using an installed ffi library
1399 --with-dbmliborder=db1:db2:...
1400 order to check db backends for dbm. Valid value is a
1401 colon separated string with the backend names
1402 `ndbm', `gdbm' and `bdb'.
1403 --with-signal-module disable/enable signal module
1404 --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries
1405 --with(out)-threads[=DIRECTORY]
1406 disable/enable thread support
1407 --with(out)-thread[=DIRECTORY]
1408 deprecated; use --with(out)-threads
1409 --with-pth use GNU pth threading libraries
1410 --with(out)-doc-strings disable/enable documentation strings
1411 --with(out)-tsc enable/disable timestamp counter profile
1412 --with(out)-pymalloc disable/enable specialized mallocs
1413 --with-wctype-functions use wctype.h functions
1414 --with-fpectl enable SIGFPE catching
1415 --with-libm=STRING math library
1416 --with-libc=STRING C library
1417 --with-wide-unicode Use 4-byte Unicode characters (default is 2 bytes)
1418 --with-computed-gotos Use computed gotos / threaded dispatch in evaluation
1419 loop (not available on all compilers)
1421 Some influential environment variables:
1422 CC C compiler command
1423 CFLAGS C compiler flags
1424 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1425 nonstandard directory <lib dir>
1426 LIBS libraries to pass to the linker, e.g. -l<library>
1427 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1428 you have headers in a nonstandard directory <include dir>
1429 CPP C preprocessor
1431 Use these variables to override the choices made by `configure' or to help
1432 it to find libraries and programs with nonstandard names/locations.
1434 Report bugs to <http://bugs.python.org/>.
1435 _ACEOF
1436 ac_status=$?
1439 if test "$ac_init_help" = "recursive"; then
1440 # If there are subdirs, report their specific --help.
1441 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1442 test -d "$ac_dir" ||
1443 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1444 continue
1445 ac_builddir=.
1447 case "$ac_dir" in
1448 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1450 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1451 # A ".." for each directory in $ac_dir_suffix.
1452 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1453 case $ac_top_builddir_sub in
1454 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1455 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1456 esac ;;
1457 esac
1458 ac_abs_top_builddir=$ac_pwd
1459 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1460 # for backward compatibility:
1461 ac_top_builddir=$ac_top_build_prefix
1463 case $srcdir in
1464 .) # We are building in place.
1465 ac_srcdir=.
1466 ac_top_srcdir=$ac_top_builddir_sub
1467 ac_abs_top_srcdir=$ac_pwd ;;
1468 [\\/]* | ?:[\\/]* ) # Absolute name.
1469 ac_srcdir=$srcdir$ac_dir_suffix;
1470 ac_top_srcdir=$srcdir
1471 ac_abs_top_srcdir=$srcdir ;;
1472 *) # Relative name.
1473 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1474 ac_top_srcdir=$ac_top_build_prefix$srcdir
1475 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1476 esac
1477 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1479 cd "$ac_dir" || { ac_status=$?; continue; }
1480 # Check for guested configure.
1481 if test -f "$ac_srcdir/configure.gnu"; then
1482 echo &&
1483 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1484 elif test -f "$ac_srcdir/configure"; then
1485 echo &&
1486 $SHELL "$ac_srcdir/configure" --help=recursive
1487 else
1488 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1489 fi || ac_status=$?
1490 cd "$ac_pwd" || { ac_status=$?; break; }
1491 done
1494 test -n "$ac_init_help" && exit $ac_status
1495 if $ac_init_version; then
1496 cat <<\_ACEOF
1497 python configure 3.1
1498 generated by GNU Autoconf 2.65
1500 Copyright (C) 2009 Free Software Foundation, Inc.
1501 This configure script is free software; the Free Software Foundation
1502 gives unlimited permission to copy, distribute and modify it.
1503 _ACEOF
1504 exit
1507 ## ------------------------ ##
1508 ## Autoconf initialization. ##
1509 ## ------------------------ ##
1511 # ac_fn_c_try_compile LINENO
1512 # --------------------------
1513 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1514 ac_fn_c_try_compile ()
1516 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1517 rm -f conftest.$ac_objext
1518 if { { ac_try="$ac_compile"
1519 case "(($ac_try" in
1520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1521 *) ac_try_echo=$ac_try;;
1522 esac
1523 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1524 $as_echo "$ac_try_echo"; } >&5
1525 (eval "$ac_compile") 2>conftest.err
1526 ac_status=$?
1527 if test -s conftest.err; then
1528 grep -v '^ *+' conftest.err >conftest.er1
1529 cat conftest.er1 >&5
1530 mv -f conftest.er1 conftest.err
1532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1533 test $ac_status = 0; } && {
1534 test -z "$ac_c_werror_flag" ||
1535 test ! -s conftest.err
1536 } && test -s conftest.$ac_objext; then :
1537 ac_retval=0
1538 else
1539 $as_echo "$as_me: failed program was:" >&5
1540 sed 's/^/| /' conftest.$ac_ext >&5
1542 ac_retval=1
1544 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1545 as_fn_set_status $ac_retval
1547 } # ac_fn_c_try_compile
1549 # ac_fn_c_try_cpp LINENO
1550 # ----------------------
1551 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1552 ac_fn_c_try_cpp ()
1554 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1555 if { { ac_try="$ac_cpp conftest.$ac_ext"
1556 case "(($ac_try" in
1557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1558 *) ac_try_echo=$ac_try;;
1559 esac
1560 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1561 $as_echo "$ac_try_echo"; } >&5
1562 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1563 ac_status=$?
1564 if test -s conftest.err; then
1565 grep -v '^ *+' conftest.err >conftest.er1
1566 cat conftest.er1 >&5
1567 mv -f conftest.er1 conftest.err
1569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1570 test $ac_status = 0; } >/dev/null && {
1571 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1572 test ! -s conftest.err
1573 }; then :
1574 ac_retval=0
1575 else
1576 $as_echo "$as_me: failed program was:" >&5
1577 sed 's/^/| /' conftest.$ac_ext >&5
1579 ac_retval=1
1581 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1582 as_fn_set_status $ac_retval
1584 } # ac_fn_c_try_cpp
1586 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1587 # -------------------------------------------------------
1588 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1589 # the include files in INCLUDES and setting the cache variable VAR
1590 # accordingly.
1591 ac_fn_c_check_header_mongrel ()
1593 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1594 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1596 $as_echo_n "checking for $2... " >&6; }
1597 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1598 $as_echo_n "(cached) " >&6
1600 eval ac_res=\$$3
1601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1602 $as_echo "$ac_res" >&6; }
1603 else
1604 # Is the header compilable?
1605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1606 $as_echo_n "checking $2 usability... " >&6; }
1607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1608 /* end confdefs.h. */
1610 #include <$2>
1611 _ACEOF
1612 if ac_fn_c_try_compile "$LINENO"; then :
1613 ac_header_compiler=yes
1614 else
1615 ac_header_compiler=no
1617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1619 $as_echo "$ac_header_compiler" >&6; }
1621 # Is the header present?
1622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1623 $as_echo_n "checking $2 presence... " >&6; }
1624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1625 /* end confdefs.h. */
1626 #include <$2>
1627 _ACEOF
1628 if ac_fn_c_try_cpp "$LINENO"; then :
1629 ac_header_preproc=yes
1630 else
1631 ac_header_preproc=no
1633 rm -f conftest.err conftest.$ac_ext
1634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1635 $as_echo "$ac_header_preproc" >&6; }
1637 # So? What about this header?
1638 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1639 yes:no: )
1640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1641 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1643 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1645 no:yes:* )
1646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1647 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1649 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1651 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1653 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1655 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1656 ( cat <<\_ASBOX
1657 ## -------------------------------------- ##
1658 ## Report this to http://bugs.python.org/ ##
1659 ## -------------------------------------- ##
1660 _ASBOX
1661 ) | sed "s/^/$as_me: WARNING: /" >&2
1663 esac
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1665 $as_echo_n "checking for $2... " >&6; }
1666 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1667 $as_echo_n "(cached) " >&6
1668 else
1669 eval "$3=\$ac_header_compiler"
1671 eval ac_res=\$$3
1672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1673 $as_echo "$ac_res" >&6; }
1675 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1677 } # ac_fn_c_check_header_mongrel
1679 # ac_fn_c_try_run LINENO
1680 # ----------------------
1681 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1682 # that executables *can* be run.
1683 ac_fn_c_try_run ()
1685 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1686 if { { ac_try="$ac_link"
1687 case "(($ac_try" in
1688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1689 *) ac_try_echo=$ac_try;;
1690 esac
1691 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1692 $as_echo "$ac_try_echo"; } >&5
1693 (eval "$ac_link") 2>&5
1694 ac_status=$?
1695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1696 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1697 { { case "(($ac_try" in
1698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1699 *) ac_try_echo=$ac_try;;
1700 esac
1701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1702 $as_echo "$ac_try_echo"; } >&5
1703 (eval "$ac_try") 2>&5
1704 ac_status=$?
1705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1706 test $ac_status = 0; }; }; then :
1707 ac_retval=0
1708 else
1709 $as_echo "$as_me: program exited with status $ac_status" >&5
1710 $as_echo "$as_me: failed program was:" >&5
1711 sed 's/^/| /' conftest.$ac_ext >&5
1713 ac_retval=$ac_status
1715 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1716 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1717 as_fn_set_status $ac_retval
1719 } # ac_fn_c_try_run
1721 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1722 # -------------------------------------------------------
1723 # Tests whether HEADER exists and can be compiled using the include files in
1724 # INCLUDES, setting the cache variable VAR accordingly.
1725 ac_fn_c_check_header_compile ()
1727 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1729 $as_echo_n "checking for $2... " >&6; }
1730 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1731 $as_echo_n "(cached) " >&6
1732 else
1733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1734 /* end confdefs.h. */
1736 #include <$2>
1737 _ACEOF
1738 if ac_fn_c_try_compile "$LINENO"; then :
1739 eval "$3=yes"
1740 else
1741 eval "$3=no"
1743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1745 eval ac_res=\$$3
1746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1747 $as_echo "$ac_res" >&6; }
1748 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1750 } # ac_fn_c_check_header_compile
1752 # ac_fn_c_try_link LINENO
1753 # -----------------------
1754 # Try to link conftest.$ac_ext, and return whether this succeeded.
1755 ac_fn_c_try_link ()
1757 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1758 rm -f conftest.$ac_objext conftest$ac_exeext
1759 if { { ac_try="$ac_link"
1760 case "(($ac_try" in
1761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1762 *) ac_try_echo=$ac_try;;
1763 esac
1764 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1765 $as_echo "$ac_try_echo"; } >&5
1766 (eval "$ac_link") 2>conftest.err
1767 ac_status=$?
1768 if test -s conftest.err; then
1769 grep -v '^ *+' conftest.err >conftest.er1
1770 cat conftest.er1 >&5
1771 mv -f conftest.er1 conftest.err
1773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1774 test $ac_status = 0; } && {
1775 test -z "$ac_c_werror_flag" ||
1776 test ! -s conftest.err
1777 } && test -s conftest$ac_exeext && {
1778 test "$cross_compiling" = yes ||
1779 $as_test_x conftest$ac_exeext
1780 }; then :
1781 ac_retval=0
1782 else
1783 $as_echo "$as_me: failed program was:" >&5
1784 sed 's/^/| /' conftest.$ac_ext >&5
1786 ac_retval=1
1788 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1789 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1790 # interfere with the next link command; also delete a directory that is
1791 # left behind by Apple's compiler. We do this before executing the actions.
1792 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1793 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1794 as_fn_set_status $ac_retval
1796 } # ac_fn_c_try_link
1798 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1799 # -------------------------------------------
1800 # Tests whether TYPE exists after having included INCLUDES, setting cache
1801 # variable VAR accordingly.
1802 ac_fn_c_check_type ()
1804 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1806 $as_echo_n "checking for $2... " >&6; }
1807 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1808 $as_echo_n "(cached) " >&6
1809 else
1810 eval "$3=no"
1811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1812 /* end confdefs.h. */
1815 main ()
1817 if (sizeof ($2))
1818 return 0;
1820 return 0;
1822 _ACEOF
1823 if ac_fn_c_try_compile "$LINENO"; then :
1824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1825 /* end confdefs.h. */
1828 main ()
1830 if (sizeof (($2)))
1831 return 0;
1833 return 0;
1835 _ACEOF
1836 if ac_fn_c_try_compile "$LINENO"; then :
1838 else
1839 eval "$3=yes"
1841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1845 eval ac_res=\$$3
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1847 $as_echo "$ac_res" >&6; }
1848 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1850 } # ac_fn_c_check_type
1852 # ac_fn_c_find_uintX_t LINENO BITS VAR
1853 # ------------------------------------
1854 # Finds an unsigned integer type with width BITS, setting cache variable VAR
1855 # accordingly.
1856 ac_fn_c_find_uintX_t ()
1858 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1860 $as_echo_n "checking for uint$2_t... " >&6; }
1861 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1862 $as_echo_n "(cached) " >&6
1863 else
1864 eval "$3=no"
1865 # Order is important - never check a type that is potentially smaller
1866 # than half of the expected target width.
1867 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1868 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1870 /* end confdefs.h. */
1871 $ac_includes_default
1873 main ()
1875 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1876 test_array [0] = 0
1879 return 0;
1881 _ACEOF
1882 if ac_fn_c_try_compile "$LINENO"; then :
1883 case $ac_type in #(
1884 uint$2_t) :
1885 eval "$3=yes" ;; #(
1886 *) :
1887 eval "$3=\$ac_type" ;;
1888 esac
1890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1891 eval as_val=\$$3
1892 if test "x$as_val" = x""no; then :
1894 else
1895 break
1897 done
1899 eval ac_res=\$$3
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1901 $as_echo "$ac_res" >&6; }
1902 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1904 } # ac_fn_c_find_uintX_t
1906 # ac_fn_c_find_intX_t LINENO BITS VAR
1907 # -----------------------------------
1908 # Finds a signed integer type with width BITS, setting cache variable VAR
1909 # accordingly.
1910 ac_fn_c_find_intX_t ()
1912 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1914 $as_echo_n "checking for int$2_t... " >&6; }
1915 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1916 $as_echo_n "(cached) " >&6
1917 else
1918 eval "$3=no"
1919 # Order is important - never check a type that is potentially smaller
1920 # than half of the expected target width.
1921 for ac_type in int$2_t 'int' 'long int' \
1922 'long long int' 'short int' 'signed char'; do
1923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1924 /* end confdefs.h. */
1925 $ac_includes_default
1926 enum { N = $2 / 2 - 1 };
1928 main ()
1930 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
1931 test_array [0] = 0
1934 return 0;
1936 _ACEOF
1937 if ac_fn_c_try_compile "$LINENO"; then :
1938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1939 /* end confdefs.h. */
1940 $ac_includes_default
1941 enum { N = $2 / 2 - 1 };
1943 main ()
1945 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
1946 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
1947 test_array [0] = 0
1950 return 0;
1952 _ACEOF
1953 if ac_fn_c_try_compile "$LINENO"; then :
1955 else
1956 case $ac_type in #(
1957 int$2_t) :
1958 eval "$3=yes" ;; #(
1959 *) :
1960 eval "$3=\$ac_type" ;;
1961 esac
1963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1966 eval as_val=\$$3
1967 if test "x$as_val" = x""no; then :
1969 else
1970 break
1972 done
1974 eval ac_res=\$$3
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1976 $as_echo "$ac_res" >&6; }
1977 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1979 } # ac_fn_c_find_intX_t
1981 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1982 # --------------------------------------------
1983 # Tries to find the compile-time value of EXPR in a program that includes
1984 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1985 # computed
1986 ac_fn_c_compute_int ()
1988 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1989 if test "$cross_compiling" = yes; then
1990 # Depending upon the size, compute the lo and hi bounds.
1991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1992 /* end confdefs.h. */
1995 main ()
1997 static int test_array [1 - 2 * !(($2) >= 0)];
1998 test_array [0] = 0
2001 return 0;
2003 _ACEOF
2004 if ac_fn_c_try_compile "$LINENO"; then :
2005 ac_lo=0 ac_mid=0
2006 while :; do
2007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2008 /* end confdefs.h. */
2011 main ()
2013 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2014 test_array [0] = 0
2017 return 0;
2019 _ACEOF
2020 if ac_fn_c_try_compile "$LINENO"; then :
2021 ac_hi=$ac_mid; break
2022 else
2023 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2024 if test $ac_lo -le $ac_mid; then
2025 ac_lo= ac_hi=
2026 break
2028 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2031 done
2032 else
2033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2034 /* end confdefs.h. */
2037 main ()
2039 static int test_array [1 - 2 * !(($2) < 0)];
2040 test_array [0] = 0
2043 return 0;
2045 _ACEOF
2046 if ac_fn_c_try_compile "$LINENO"; then :
2047 ac_hi=-1 ac_mid=-1
2048 while :; do
2049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2050 /* end confdefs.h. */
2053 main ()
2055 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2056 test_array [0] = 0
2059 return 0;
2061 _ACEOF
2062 if ac_fn_c_try_compile "$LINENO"; then :
2063 ac_lo=$ac_mid; break
2064 else
2065 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2066 if test $ac_mid -le $ac_hi; then
2067 ac_lo= ac_hi=
2068 break
2070 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2073 done
2074 else
2075 ac_lo= ac_hi=
2077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2080 # Binary search between lo and hi bounds.
2081 while test "x$ac_lo" != "x$ac_hi"; do
2082 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2084 /* end confdefs.h. */
2087 main ()
2089 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2090 test_array [0] = 0
2093 return 0;
2095 _ACEOF
2096 if ac_fn_c_try_compile "$LINENO"; then :
2097 ac_hi=$ac_mid
2098 else
2099 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2102 done
2103 case $ac_lo in #((
2104 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2105 '') ac_retval=1 ;;
2106 esac
2107 else
2108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2109 /* end confdefs.h. */
2111 static long int longval () { return $2; }
2112 static unsigned long int ulongval () { return $2; }
2113 #include <stdio.h>
2114 #include <stdlib.h>
2116 main ()
2119 FILE *f = fopen ("conftest.val", "w");
2120 if (! f)
2121 return 1;
2122 if (($2) < 0)
2124 long int i = longval ();
2125 if (i != ($2))
2126 return 1;
2127 fprintf (f, "%ld", i);
2129 else
2131 unsigned long int i = ulongval ();
2132 if (i != ($2))
2133 return 1;
2134 fprintf (f, "%lu", i);
2136 /* Do not output a trailing newline, as this causes \r\n confusion
2137 on some platforms. */
2138 return ferror (f) || fclose (f) != 0;
2141 return 0;
2143 _ACEOF
2144 if ac_fn_c_try_run "$LINENO"; then :
2145 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2146 else
2147 ac_retval=1
2149 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2150 conftest.$ac_objext conftest.beam conftest.$ac_ext
2151 rm -f conftest.val
2154 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2155 as_fn_set_status $ac_retval
2157 } # ac_fn_c_compute_int
2159 # ac_fn_c_check_func LINENO FUNC VAR
2160 # ----------------------------------
2161 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2162 ac_fn_c_check_func ()
2164 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2166 $as_echo_n "checking for $2... " >&6; }
2167 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2168 $as_echo_n "(cached) " >&6
2169 else
2170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2171 /* end confdefs.h. */
2172 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2173 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2174 #define $2 innocuous_$2
2176 /* System header to define __stub macros and hopefully few prototypes,
2177 which can conflict with char $2 (); below.
2178 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2179 <limits.h> exists even on freestanding compilers. */
2181 #ifdef __STDC__
2182 # include <limits.h>
2183 #else
2184 # include <assert.h>
2185 #endif
2187 #undef $2
2189 /* Override any GCC internal prototype to avoid an error.
2190 Use char because int might match the return type of a GCC
2191 builtin and then its argument prototype would still apply. */
2192 #ifdef __cplusplus
2193 extern "C"
2194 #endif
2195 char $2 ();
2196 /* The GNU C library defines this for functions which it implements
2197 to always fail with ENOSYS. Some functions are actually named
2198 something starting with __ and the normal name is an alias. */
2199 #if defined __stub_$2 || defined __stub___$2
2200 choke me
2201 #endif
2204 main ()
2206 return $2 ();
2208 return 0;
2210 _ACEOF
2211 if ac_fn_c_try_link "$LINENO"; then :
2212 eval "$3=yes"
2213 else
2214 eval "$3=no"
2216 rm -f core conftest.err conftest.$ac_objext \
2217 conftest$ac_exeext conftest.$ac_ext
2219 eval ac_res=\$$3
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2221 $as_echo "$ac_res" >&6; }
2222 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2224 } # ac_fn_c_check_func
2226 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2227 # ----------------------------------------------------
2228 # Tries to find if the field MEMBER exists in type AGGR, after including
2229 # INCLUDES, setting cache variable VAR accordingly.
2230 ac_fn_c_check_member ()
2232 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2234 $as_echo_n "checking for $2.$3... " >&6; }
2235 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2236 $as_echo_n "(cached) " >&6
2237 else
2238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2239 /* end confdefs.h. */
2242 main ()
2244 static $2 ac_aggr;
2245 if (ac_aggr.$3)
2246 return 0;
2248 return 0;
2250 _ACEOF
2251 if ac_fn_c_try_compile "$LINENO"; then :
2252 eval "$4=yes"
2253 else
2254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2255 /* end confdefs.h. */
2258 main ()
2260 static $2 ac_aggr;
2261 if (sizeof ac_aggr.$3)
2262 return 0;
2264 return 0;
2266 _ACEOF
2267 if ac_fn_c_try_compile "$LINENO"; then :
2268 eval "$4=yes"
2269 else
2270 eval "$4=no"
2272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2276 eval ac_res=\$$4
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2278 $as_echo "$ac_res" >&6; }
2279 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2281 } # ac_fn_c_check_member
2283 # ac_fn_c_check_decl LINENO SYMBOL VAR
2284 # ------------------------------------
2285 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2286 ac_fn_c_check_decl ()
2288 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2290 $as_echo_n "checking whether $2 is declared... " >&6; }
2291 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2292 $as_echo_n "(cached) " >&6
2293 else
2294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2295 /* end confdefs.h. */
2298 main ()
2300 #ifndef $2
2301 (void) $2;
2302 #endif
2305 return 0;
2307 _ACEOF
2308 if ac_fn_c_try_compile "$LINENO"; then :
2309 eval "$3=yes"
2310 else
2311 eval "$3=no"
2313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2315 eval ac_res=\$$3
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2317 $as_echo "$ac_res" >&6; }
2318 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2320 } # ac_fn_c_check_decl
2321 cat >config.log <<_ACEOF
2322 This file contains any messages produced by compilers while
2323 running configure, to aid debugging if configure makes a mistake.
2325 It was created by python $as_me 3.1, which was
2326 generated by GNU Autoconf 2.65. Invocation command line was
2328 $ $0 $@
2330 _ACEOF
2331 exec 5>>config.log
2333 cat <<_ASUNAME
2334 ## --------- ##
2335 ## Platform. ##
2336 ## --------- ##
2338 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2339 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2340 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2341 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2342 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2344 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2345 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2347 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2348 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2349 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2350 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2351 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2352 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2353 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2355 _ASUNAME
2357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2358 for as_dir in $PATH
2360 IFS=$as_save_IFS
2361 test -z "$as_dir" && as_dir=.
2362 $as_echo "PATH: $as_dir"
2363 done
2364 IFS=$as_save_IFS
2366 } >&5
2368 cat >&5 <<_ACEOF
2371 ## ----------- ##
2372 ## Core tests. ##
2373 ## ----------- ##
2375 _ACEOF
2378 # Keep a trace of the command line.
2379 # Strip out --no-create and --no-recursion so they do not pile up.
2380 # Strip out --silent because we don't want to record it for future runs.
2381 # Also quote any args containing shell meta-characters.
2382 # Make two passes to allow for proper duplicate-argument suppression.
2383 ac_configure_args=
2384 ac_configure_args0=
2385 ac_configure_args1=
2386 ac_must_keep_next=false
2387 for ac_pass in 1 2
2389 for ac_arg
2391 case $ac_arg in
2392 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2393 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2394 | -silent | --silent | --silen | --sile | --sil)
2395 continue ;;
2396 *\'*)
2397 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2398 esac
2399 case $ac_pass in
2400 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2402 as_fn_append ac_configure_args1 " '$ac_arg'"
2403 if test $ac_must_keep_next = true; then
2404 ac_must_keep_next=false # Got value, back to normal.
2405 else
2406 case $ac_arg in
2407 *=* | --config-cache | -C | -disable-* | --disable-* \
2408 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2409 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2410 | -with-* | --with-* | -without-* | --without-* | --x)
2411 case "$ac_configure_args0 " in
2412 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2413 esac
2415 -* ) ac_must_keep_next=true ;;
2416 esac
2418 as_fn_append ac_configure_args " '$ac_arg'"
2420 esac
2421 done
2422 done
2423 { ac_configure_args0=; unset ac_configure_args0;}
2424 { ac_configure_args1=; unset ac_configure_args1;}
2426 # When interrupted or exit'd, cleanup temporary files, and complete
2427 # config.log. We remove comments because anyway the quotes in there
2428 # would cause problems or look ugly.
2429 # WARNING: Use '\'' to represent an apostrophe within the trap.
2430 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2431 trap 'exit_status=$?
2432 # Save into config.log some information that might help in debugging.
2434 echo
2436 cat <<\_ASBOX
2437 ## ---------------- ##
2438 ## Cache variables. ##
2439 ## ---------------- ##
2440 _ASBOX
2441 echo
2442 # The following way of writing the cache mishandles newlines in values,
2444 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2445 eval ac_val=\$$ac_var
2446 case $ac_val in #(
2447 *${as_nl}*)
2448 case $ac_var in #(
2449 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2450 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2451 esac
2452 case $ac_var in #(
2453 _ | IFS | as_nl) ;; #(
2454 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2455 *) { eval $ac_var=; unset $ac_var;} ;;
2456 esac ;;
2457 esac
2458 done
2459 (set) 2>&1 |
2460 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2461 *${as_nl}ac_space=\ *)
2462 sed -n \
2463 "s/'\''/'\''\\\\'\'''\''/g;
2464 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2465 ;; #(
2467 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2469 esac |
2470 sort
2472 echo
2474 cat <<\_ASBOX
2475 ## ----------------- ##
2476 ## Output variables. ##
2477 ## ----------------- ##
2478 _ASBOX
2479 echo
2480 for ac_var in $ac_subst_vars
2482 eval ac_val=\$$ac_var
2483 case $ac_val in
2484 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2485 esac
2486 $as_echo "$ac_var='\''$ac_val'\''"
2487 done | sort
2488 echo
2490 if test -n "$ac_subst_files"; then
2491 cat <<\_ASBOX
2492 ## ------------------- ##
2493 ## File substitutions. ##
2494 ## ------------------- ##
2495 _ASBOX
2496 echo
2497 for ac_var in $ac_subst_files
2499 eval ac_val=\$$ac_var
2500 case $ac_val in
2501 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2502 esac
2503 $as_echo "$ac_var='\''$ac_val'\''"
2504 done | sort
2505 echo
2508 if test -s confdefs.h; then
2509 cat <<\_ASBOX
2510 ## ----------- ##
2511 ## confdefs.h. ##
2512 ## ----------- ##
2513 _ASBOX
2514 echo
2515 cat confdefs.h
2516 echo
2518 test "$ac_signal" != 0 &&
2519 $as_echo "$as_me: caught signal $ac_signal"
2520 $as_echo "$as_me: exit $exit_status"
2521 } >&5
2522 rm -f core *.core core.conftest.* &&
2523 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2524 exit $exit_status
2526 for ac_signal in 1 2 13 15; do
2527 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2528 done
2529 ac_signal=0
2531 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2532 rm -f -r conftest* confdefs.h
2534 $as_echo "/* confdefs.h */" > confdefs.h
2536 # Predefined preprocessor variables.
2538 cat >>confdefs.h <<_ACEOF
2539 #define PACKAGE_NAME "$PACKAGE_NAME"
2540 _ACEOF
2542 cat >>confdefs.h <<_ACEOF
2543 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2544 _ACEOF
2546 cat >>confdefs.h <<_ACEOF
2547 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2548 _ACEOF
2550 cat >>confdefs.h <<_ACEOF
2551 #define PACKAGE_STRING "$PACKAGE_STRING"
2552 _ACEOF
2554 cat >>confdefs.h <<_ACEOF
2555 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2556 _ACEOF
2558 cat >>confdefs.h <<_ACEOF
2559 #define PACKAGE_URL "$PACKAGE_URL"
2560 _ACEOF
2563 # Let the site file select an alternate cache file if it wants to.
2564 # Prefer an explicitly selected file to automatically selected ones.
2565 ac_site_file1=NONE
2566 ac_site_file2=NONE
2567 if test -n "$CONFIG_SITE"; then
2568 ac_site_file1=$CONFIG_SITE
2569 elif test "x$prefix" != xNONE; then
2570 ac_site_file1=$prefix/share/config.site
2571 ac_site_file2=$prefix/etc/config.site
2572 else
2573 ac_site_file1=$ac_default_prefix/share/config.site
2574 ac_site_file2=$ac_default_prefix/etc/config.site
2576 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2578 test "x$ac_site_file" = xNONE && continue
2579 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2581 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2582 sed 's/^/| /' "$ac_site_file" >&5
2583 . "$ac_site_file"
2585 done
2587 if test -r "$cache_file"; then
2588 # Some versions of bash will fail to source /dev/null (special files
2589 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2590 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2592 $as_echo "$as_me: loading cache $cache_file" >&6;}
2593 case $cache_file in
2594 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2595 *) . "./$cache_file";;
2596 esac
2598 else
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2600 $as_echo "$as_me: creating cache $cache_file" >&6;}
2601 >$cache_file
2604 # Check that the precious variables saved in the cache have kept the same
2605 # value.
2606 ac_cache_corrupted=false
2607 for ac_var in $ac_precious_vars; do
2608 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2609 eval ac_new_set=\$ac_env_${ac_var}_set
2610 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2611 eval ac_new_val=\$ac_env_${ac_var}_value
2612 case $ac_old_set,$ac_new_set in
2613 set,)
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2615 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2616 ac_cache_corrupted=: ;;
2617 ,set)
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2619 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2620 ac_cache_corrupted=: ;;
2621 ,);;
2623 if test "x$ac_old_val" != "x$ac_new_val"; then
2624 # differences in whitespace do not lead to failure.
2625 ac_old_val_w=`echo x $ac_old_val`
2626 ac_new_val_w=`echo x $ac_new_val`
2627 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2629 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2630 ac_cache_corrupted=:
2631 else
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2633 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2634 eval $ac_var=\$ac_old_val
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2637 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2639 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2640 fi;;
2641 esac
2642 # Pass precious variables to config.status.
2643 if test "$ac_new_set" = set; then
2644 case $ac_new_val in
2645 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2646 *) ac_arg=$ac_var=$ac_new_val ;;
2647 esac
2648 case " $ac_configure_args " in
2649 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2650 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2651 esac
2653 done
2654 if $ac_cache_corrupted; then
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2656 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2658 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2659 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2661 ## -------------------- ##
2662 ## Main body of script. ##
2663 ## -------------------- ##
2665 ac_ext=c
2666 ac_cpp='$CPP $CPPFLAGS'
2667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2669 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2673 ac_config_headers="$ac_config_headers pyconfig.h"
2677 if test "$prefix" != "/"; then
2678 prefix=`echo "$prefix" | sed -e 's/\/$//g'`
2684 # We don't use PACKAGE_ variables, and they cause conflicts
2685 # with other autoconf-based packages that include Python.h
2686 grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
2687 rm confdefs.h
2688 mv confdefs.h.new confdefs.h
2691 VERSION=3.1
2694 SOVERSION=1.0
2696 # The later defininition of _XOPEN_SOURCE disables certain features
2697 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
2699 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
2702 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
2703 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
2704 # them.
2706 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
2709 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
2710 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
2711 # them.
2713 $as_echo "#define __BSD_VISIBLE 1" >>confdefs.h
2716 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
2717 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
2719 $as_echo "#define _BSD_TYPES 1" >>confdefs.h
2722 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
2723 # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable
2724 # them.
2726 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
2730 define_xopen_source=yes
2732 # Arguments passed to configure.
2734 CONFIG_ARGS="$ac_configure_args"
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-universalsdk" >&5
2737 $as_echo_n "checking for --enable-universalsdk... " >&6; }
2738 # Check whether --enable-universalsdk was given.
2739 if test "${enable_universalsdk+set}" = set; then :
2740 enableval=$enable_universalsdk;
2741 case $enableval in
2742 yes)
2743 enableval=/Developer/SDKs/MacOSX10.4u.sdk
2744 if test ! -d "${enableval}"
2745 then
2746 enableval=/
2749 esac
2750 case $enableval in
2752 UNIVERSALSDK=
2753 enable_universalsdk=
2756 UNIVERSALSDK=$enableval
2757 if test ! -d "${UNIVERSALSDK}"
2758 then
2759 as_fn_error "--enable-universalsdk specifies non-existing SDK: ${UNIVERSALSDK}" "$LINENO" 5
2762 esac
2765 else
2767 UNIVERSALSDK=
2768 enable_universalsdk=
2772 if test -n "${UNIVERSALSDK}"
2773 then
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSALSDK}" >&5
2775 $as_echo "${UNIVERSALSDK}" >&6; }
2776 else
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2778 $as_echo "no" >&6; }
2784 UNIVERSAL_ARCHS="32-bit"
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-universal-archs" >&5
2788 $as_echo_n "checking for --with-universal-archs... " >&6; }
2790 # Check whether --with-universal-archs was given.
2791 if test "${with_universal_archs+set}" = set; then :
2792 withval=$with_universal_archs;
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
2794 $as_echo "$withval" >&6; }
2795 UNIVERSAL_ARCHS="$withval"
2797 else
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 32-bit" >&5
2800 $as_echo "32-bit" >&6; }
2808 # Check whether --with-framework-name was given.
2809 if test "${with_framework_name+set}" = set; then :
2810 withval=$with_framework_name;
2811 PYTHONFRAMEWORK=${withval}
2812 PYTHONFRAMEWORKDIR=${withval}.framework
2813 PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'`
2815 else
2817 PYTHONFRAMEWORK=Python
2818 PYTHONFRAMEWORKDIR=Python.framework
2819 PYTHONFRAMEWORKIDENTIFIER=org.python.python
2823 # Check whether --enable-framework was given.
2824 if test "${enable_framework+set}" = set; then :
2825 enableval=$enable_framework;
2826 case $enableval in
2827 yes)
2828 enableval=/Library/Frameworks
2829 esac
2830 case $enableval in
2832 PYTHONFRAMEWORK=
2833 PYTHONFRAMEWORKDIR=no-framework
2834 PYTHONFRAMEWORKPREFIX=
2835 PYTHONFRAMEWORKINSTALLDIR=
2836 FRAMEWORKINSTALLFIRST=
2837 FRAMEWORKINSTALLLAST=
2838 FRAMEWORKALTINSTALLFIRST=
2839 FRAMEWORKALTINSTALLLAST=
2840 if test "x${prefix}" = "xNONE"; then
2841 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
2842 else
2843 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
2845 enable_framework=
2848 PYTHONFRAMEWORKPREFIX=$enableval
2849 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
2850 FRAMEWORKINSTALLFIRST="frameworkinstallstructure"
2851 FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure "
2852 case "${UNIVERSAL_ARCHS}" in
2853 all|3-way|intel)
2854 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkinstallunixtools4way"
2855 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkaltinstallunixtools4way"
2858 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools"
2859 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
2861 esac
2863 if test "x${prefix}" = "xNONE" ; then
2864 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
2865 else
2866 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
2868 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
2870 # Add files for Mac specific code to the list of output
2871 # files:
2872 ac_config_files="$ac_config_files Mac/Makefile"
2874 ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile"
2876 ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist"
2878 ac_config_files="$ac_config_files Mac/Resources/app/Info.plist"
2880 esac
2882 else
2884 PYTHONFRAMEWORK=
2885 PYTHONFRAMEWORKDIR=no-framework
2886 PYTHONFRAMEWORKPREFIX=
2887 PYTHONFRAMEWORKINSTALLDIR=
2888 FRAMEWORKINSTALLFIRST=
2889 FRAMEWORKINSTALLLAST=
2890 FRAMEWORKALTINSTALLFIRST=
2891 FRAMEWORKALTINSTALLLAST=
2892 if test "x${prefix}" = "xNONE" ; then
2893 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
2894 else
2895 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
2897 enable_framework=
2899 if test "$UNIVERSAL_ARCHS" = "all"
2900 then
2901 FRAMEWORKINSTALLLAST=update4wayuniversal
2902 FRAMEWORKALTINSTALLLAST=update4wayuniversal
2918 ##AC_ARG_WITH(dyld,
2919 ## AC_HELP_STRING(--with-dyld,
2920 ## Use (OpenStep|Rhapsody) dynamic linker))
2922 # Set name for machine-dependent library files
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP" >&5
2925 $as_echo_n "checking MACHDEP... " >&6; }
2926 if test -z "$MACHDEP"
2927 then
2928 ac_sys_system=`uname -s`
2929 if test "$ac_sys_system" = "AIX" \
2930 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
2931 ac_sys_release=`uname -v`
2932 else
2933 ac_sys_release=`uname -r`
2935 ac_md_system=`echo $ac_sys_system |
2936 tr -d '/ ' | tr '[A-Z]' '[a-z]'`
2937 ac_md_release=`echo $ac_sys_release |
2938 tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'`
2939 MACHDEP="$ac_md_system$ac_md_release"
2941 case $MACHDEP in
2942 cygwin*) MACHDEP="cygwin";;
2943 darwin*) MACHDEP="darwin";;
2944 atheos*) MACHDEP="atheos";;
2945 irix646) MACHDEP="irix6";;
2946 '') MACHDEP="unknown";;
2947 esac
2950 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
2951 # disable features if it is defined, without any means to access these
2952 # features as extensions. For these systems, we skip the definition of
2953 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
2954 # some feature, make sure there is no alternative way to access this
2955 # feature. Also, when using wildcards, make sure you have verified the
2956 # need for not defining _XOPEN_SOURCE on all systems matching the
2957 # wildcard, and that the wildcard does not include future systems
2958 # (which may remove their limitations).
2959 case $ac_sys_system/$ac_sys_release in
2960 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
2961 # even though select is a POSIX function. Reported by J. Ribbens.
2962 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
2963 # In addition, Stefan Krah confirms that issue #1244610 exists through
2964 # OpenBSD 4.6, but is fixed in 4.7.
2965 OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0123456])
2966 define_xopen_source=no
2967 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
2968 # also defined. This can be overridden by defining _BSD_SOURCE
2969 # As this has a different meaning on Linux, only define it on OpenBSD
2971 $as_echo "#define _BSD_SOURCE 1" >>confdefs.h
2974 OpenBSD/4.[789])
2975 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
2976 # also defined. This can be overridden by defining _BSD_SOURCE
2977 # As this has a different meaning on Linux, only define it on OpenBSD
2979 $as_echo "#define _BSD_SOURCE 1" >>confdefs.h
2982 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
2983 # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
2984 # Marc Recht
2985 NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S])
2986 define_xopen_source=no;;
2987 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
2988 # of union __?sigval. Reported by Stuart Bishop.
2989 SunOS/5.6)
2990 define_xopen_source=no;;
2991 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
2992 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
2993 # Reconfirmed for 7.1.4 by Martin v. Loewis.
2994 OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
2995 define_xopen_source=no;;
2996 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
2997 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
2998 SCO_SV/3.2)
2999 define_xopen_source=no;;
3000 # On FreeBSD 4, the math functions C89 does not cover are never defined
3001 # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them.
3002 FreeBSD/4.*)
3003 define_xopen_source=no;;
3004 # On MacOS X 10.2, a bug in ncurses.h means that it craps out if
3005 # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which
3006 # identifies itself as Darwin/7.*
3007 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
3008 # disables platform specific features beyond repair.
3009 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
3010 # has no effect, don't bother defining them
3011 Darwin/[6789].*)
3012 define_xopen_source=no;;
3013 Darwin/1[0-9].*)
3014 define_xopen_source=no;;
3015 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
3016 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
3017 # or has another value. By not (re)defining it, the defaults come in place.
3018 AIX/4)
3019 define_xopen_source=no;;
3020 AIX/5)
3021 if test `uname -r` -eq 1; then
3022 define_xopen_source=no
3025 # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from
3026 # defining NI_NUMERICHOST.
3027 QNX/6.3.2)
3028 define_xopen_source=no
3031 esac
3033 if test $define_xopen_source = yes
3034 then
3035 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
3036 # defined precisely as g++ defines it
3037 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
3038 # compiler
3039 case $ac_sys_system/$ac_sys_release in
3040 SunOS/5.8|SunOS/5.9|SunOS/5.10)
3042 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
3047 $as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h
3050 esac
3052 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
3053 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
3054 # several APIs are not declared. Since this is also needed in some
3055 # cases for HP-UX, we define it globally.
3056 # except for Solaris 10, where it must not be defined,
3057 # as it implies XPG4.2
3058 case $ac_sys_system/$ac_sys_release in
3059 SunOS/5.10)
3063 $as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h
3066 esac
3069 $as_echo "#define _POSIX_C_SOURCE 200112L" >>confdefs.h
3075 # SGI compilers allow the specification of the both the ABI and the
3076 # ISA on the command line. Depending on the values of these switches,
3077 # different and often incompatable code will be generated.
3079 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
3080 # thus supply support for various ABI/ISA combinations. The MACHDEP
3081 # variable is also adjusted.
3084 if test ! -z "$SGI_ABI"
3085 then
3086 CC="cc $SGI_ABI"
3087 LDFLAGS="$SGI_ABI $LDFLAGS"
3088 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACHDEP" >&5
3091 $as_echo "$MACHDEP" >&6; }
3093 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
3094 # it may influence the way we can build extensions, so distutils
3095 # needs to check it
3098 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
3099 EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking machine type as reported by uname -m" >&5
3102 $as_echo_n "checking machine type as reported by uname -m... " >&6; }
3103 ac_sys_machine=`uname -m`
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sys_machine" >&5
3105 $as_echo "$ac_sys_machine" >&6; }
3107 # checks for alternative programs
3109 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
3110 # for debug/optimization stuff. BASECFLAGS is for flags that are required
3111 # just to get things to compile and link. Users are free to override OPT
3112 # when running configure or make. The build should not break if they do.
3113 # BASECFLAGS should generally not be messed with, however.
3115 # XXX shouldn't some/most/all of this code be merged with the stuff later
3116 # on that fiddles with OPT and BASECFLAGS?
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --without-gcc" >&5
3118 $as_echo_n "checking for --without-gcc... " >&6; }
3120 # Check whether --with-gcc was given.
3121 if test "${with_gcc+set}" = set; then :
3122 withval=$with_gcc;
3123 case $withval in
3124 no) CC=${CC:-cc}
3125 without_gcc=yes;;
3126 yes) CC=gcc
3127 without_gcc=no;;
3128 *) CC=$withval
3129 without_gcc=$withval;;
3130 esac
3131 else
3133 case $ac_sys_system in
3134 AIX*) CC=${CC:-xlc_r}
3135 without_gcc=;;
3136 *) without_gcc=no;;
3137 esac
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $without_gcc" >&5
3141 $as_echo "$without_gcc" >&6; }
3143 # If the user switches compilers, we can't believe the cache
3144 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
3145 then
3146 as_fn_error "cached CC is different -- throw away $cache_file
3147 (it is also a good idea to do 'make clean' before compiling)" "$LINENO" 5
3150 ac_ext=c
3151 ac_cpp='$CPP $CPPFLAGS'
3152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3155 if test -n "$ac_tool_prefix"; then
3156 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3157 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3159 $as_echo_n "checking for $ac_word... " >&6; }
3160 if test "${ac_cv_prog_CC+set}" = set; then :
3161 $as_echo_n "(cached) " >&6
3162 else
3163 if test -n "$CC"; then
3164 ac_cv_prog_CC="$CC" # Let the user override the test.
3165 else
3166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3167 for as_dir in $PATH
3169 IFS=$as_save_IFS
3170 test -z "$as_dir" && as_dir=.
3171 for ac_exec_ext in '' $ac_executable_extensions; do
3172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3173 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3175 break 2
3177 done
3178 done
3179 IFS=$as_save_IFS
3183 CC=$ac_cv_prog_CC
3184 if test -n "$CC"; then
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3186 $as_echo "$CC" >&6; }
3187 else
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3189 $as_echo "no" >&6; }
3194 if test -z "$ac_cv_prog_CC"; then
3195 ac_ct_CC=$CC
3196 # Extract the first word of "gcc", so it can be a program name with args.
3197 set dummy gcc; ac_word=$2
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3199 $as_echo_n "checking for $ac_word... " >&6; }
3200 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3201 $as_echo_n "(cached) " >&6
3202 else
3203 if test -n "$ac_ct_CC"; then
3204 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3205 else
3206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3207 for as_dir in $PATH
3209 IFS=$as_save_IFS
3210 test -z "$as_dir" && as_dir=.
3211 for ac_exec_ext in '' $ac_executable_extensions; do
3212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3213 ac_cv_prog_ac_ct_CC="gcc"
3214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3215 break 2
3217 done
3218 done
3219 IFS=$as_save_IFS
3223 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3224 if test -n "$ac_ct_CC"; then
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3226 $as_echo "$ac_ct_CC" >&6; }
3227 else
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3229 $as_echo "no" >&6; }
3232 if test "x$ac_ct_CC" = x; then
3233 CC=""
3234 else
3235 case $cross_compiling:$ac_tool_warned in
3236 yes:)
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3238 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3239 ac_tool_warned=yes ;;
3240 esac
3241 CC=$ac_ct_CC
3243 else
3244 CC="$ac_cv_prog_CC"
3247 if test -z "$CC"; then
3248 if test -n "$ac_tool_prefix"; then
3249 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3250 set dummy ${ac_tool_prefix}cc; ac_word=$2
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3252 $as_echo_n "checking for $ac_word... " >&6; }
3253 if test "${ac_cv_prog_CC+set}" = set; then :
3254 $as_echo_n "(cached) " >&6
3255 else
3256 if test -n "$CC"; then
3257 ac_cv_prog_CC="$CC" # Let the user override the test.
3258 else
3259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3260 for as_dir in $PATH
3262 IFS=$as_save_IFS
3263 test -z "$as_dir" && as_dir=.
3264 for ac_exec_ext in '' $ac_executable_extensions; do
3265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3266 ac_cv_prog_CC="${ac_tool_prefix}cc"
3267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3268 break 2
3270 done
3271 done
3272 IFS=$as_save_IFS
3276 CC=$ac_cv_prog_CC
3277 if test -n "$CC"; then
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3279 $as_echo "$CC" >&6; }
3280 else
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3282 $as_echo "no" >&6; }
3288 if test -z "$CC"; then
3289 # Extract the first word of "cc", so it can be a program name with args.
3290 set dummy cc; ac_word=$2
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3292 $as_echo_n "checking for $ac_word... " >&6; }
3293 if test "${ac_cv_prog_CC+set}" = set; then :
3294 $as_echo_n "(cached) " >&6
3295 else
3296 if test -n "$CC"; then
3297 ac_cv_prog_CC="$CC" # Let the user override the test.
3298 else
3299 ac_prog_rejected=no
3300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3301 for as_dir in $PATH
3303 IFS=$as_save_IFS
3304 test -z "$as_dir" && as_dir=.
3305 for ac_exec_ext in '' $ac_executable_extensions; do
3306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3307 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3308 ac_prog_rejected=yes
3309 continue
3311 ac_cv_prog_CC="cc"
3312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3313 break 2
3315 done
3316 done
3317 IFS=$as_save_IFS
3319 if test $ac_prog_rejected = yes; then
3320 # We found a bogon in the path, so make sure we never use it.
3321 set dummy $ac_cv_prog_CC
3322 shift
3323 if test $# != 0; then
3324 # We chose a different compiler from the bogus one.
3325 # However, it has the same basename, so the bogon will be chosen
3326 # first if we set CC to just the basename; use the full file name.
3327 shift
3328 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3333 CC=$ac_cv_prog_CC
3334 if test -n "$CC"; then
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3336 $as_echo "$CC" >&6; }
3337 else
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3339 $as_echo "no" >&6; }
3344 if test -z "$CC"; then
3345 if test -n "$ac_tool_prefix"; then
3346 for ac_prog in cl.exe
3348 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3349 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3351 $as_echo_n "checking for $ac_word... " >&6; }
3352 if test "${ac_cv_prog_CC+set}" = set; then :
3353 $as_echo_n "(cached) " >&6
3354 else
3355 if test -n "$CC"; then
3356 ac_cv_prog_CC="$CC" # Let the user override the test.
3357 else
3358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3359 for as_dir in $PATH
3361 IFS=$as_save_IFS
3362 test -z "$as_dir" && as_dir=.
3363 for ac_exec_ext in '' $ac_executable_extensions; do
3364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3365 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3367 break 2
3369 done
3370 done
3371 IFS=$as_save_IFS
3375 CC=$ac_cv_prog_CC
3376 if test -n "$CC"; then
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3378 $as_echo "$CC" >&6; }
3379 else
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3381 $as_echo "no" >&6; }
3385 test -n "$CC" && break
3386 done
3388 if test -z "$CC"; then
3389 ac_ct_CC=$CC
3390 for ac_prog in cl.exe
3392 # Extract the first word of "$ac_prog", so it can be a program name with args.
3393 set dummy $ac_prog; ac_word=$2
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3395 $as_echo_n "checking for $ac_word... " >&6; }
3396 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3397 $as_echo_n "(cached) " >&6
3398 else
3399 if test -n "$ac_ct_CC"; then
3400 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3401 else
3402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3403 for as_dir in $PATH
3405 IFS=$as_save_IFS
3406 test -z "$as_dir" && as_dir=.
3407 for ac_exec_ext in '' $ac_executable_extensions; do
3408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3409 ac_cv_prog_ac_ct_CC="$ac_prog"
3410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3411 break 2
3413 done
3414 done
3415 IFS=$as_save_IFS
3419 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3420 if test -n "$ac_ct_CC"; then
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3422 $as_echo "$ac_ct_CC" >&6; }
3423 else
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3425 $as_echo "no" >&6; }
3429 test -n "$ac_ct_CC" && break
3430 done
3432 if test "x$ac_ct_CC" = x; then
3433 CC=""
3434 else
3435 case $cross_compiling:$ac_tool_warned in
3436 yes:)
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3438 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3439 ac_tool_warned=yes ;;
3440 esac
3441 CC=$ac_ct_CC
3448 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3449 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3450 as_fn_error "no acceptable C compiler found in \$PATH
3451 See \`config.log' for more details." "$LINENO" 5; }
3453 # Provide some information about the compiler.
3454 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3455 set X $ac_compile
3456 ac_compiler=$2
3457 for ac_option in --version -v -V -qversion; do
3458 { { ac_try="$ac_compiler $ac_option >&5"
3459 case "(($ac_try" in
3460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3461 *) ac_try_echo=$ac_try;;
3462 esac
3463 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3464 $as_echo "$ac_try_echo"; } >&5
3465 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3466 ac_status=$?
3467 if test -s conftest.err; then
3468 sed '10a\
3469 ... rest of stderr output deleted ...
3470 10q' conftest.err >conftest.er1
3471 cat conftest.er1 >&5
3473 rm -f conftest.er1 conftest.err
3474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3475 test $ac_status = 0; }
3476 done
3478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3479 /* end confdefs.h. */
3482 main ()
3486 return 0;
3488 _ACEOF
3489 ac_clean_files_save=$ac_clean_files
3490 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3491 # Try to create an executable without -o first, disregard a.out.
3492 # It will help us diagnose broken compilers, and finding out an intuition
3493 # of exeext.
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3495 $as_echo_n "checking whether the C compiler works... " >&6; }
3496 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3498 # The possible output files:
3499 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3501 ac_rmfiles=
3502 for ac_file in $ac_files
3504 case $ac_file in
3505 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3506 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3507 esac
3508 done
3509 rm -f $ac_rmfiles
3511 if { { ac_try="$ac_link_default"
3512 case "(($ac_try" in
3513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3514 *) ac_try_echo=$ac_try;;
3515 esac
3516 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3517 $as_echo "$ac_try_echo"; } >&5
3518 (eval "$ac_link_default") 2>&5
3519 ac_status=$?
3520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3521 test $ac_status = 0; }; then :
3522 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3523 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3524 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3525 # so that the user can short-circuit this test for compilers unknown to
3526 # Autoconf.
3527 for ac_file in $ac_files ''
3529 test -f "$ac_file" || continue
3530 case $ac_file in
3531 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3533 [ab].out )
3534 # We found the default executable, but exeext='' is most
3535 # certainly right.
3536 break;;
3537 *.* )
3538 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3539 then :; else
3540 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3542 # We set ac_cv_exeext here because the later test for it is not
3543 # safe: cross compilers may not add the suffix if given an `-o'
3544 # argument, so we may need to know it at that point already.
3545 # Even if this section looks crufty: it has the advantage of
3546 # actually working.
3547 break;;
3549 break;;
3550 esac
3551 done
3552 test "$ac_cv_exeext" = no && ac_cv_exeext=
3554 else
3555 ac_file=''
3557 if test -z "$ac_file"; then :
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3559 $as_echo "no" >&6; }
3560 $as_echo "$as_me: failed program was:" >&5
3561 sed 's/^/| /' conftest.$ac_ext >&5
3563 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3564 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3565 { as_fn_set_status 77
3566 as_fn_error "C compiler cannot create executables
3567 See \`config.log' for more details." "$LINENO" 5; }; }
3568 else
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3570 $as_echo "yes" >&6; }
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3573 $as_echo_n "checking for C compiler default output file name... " >&6; }
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3575 $as_echo "$ac_file" >&6; }
3576 ac_exeext=$ac_cv_exeext
3578 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3579 ac_clean_files=$ac_clean_files_save
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3581 $as_echo_n "checking for suffix of executables... " >&6; }
3582 if { { ac_try="$ac_link"
3583 case "(($ac_try" in
3584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3585 *) ac_try_echo=$ac_try;;
3586 esac
3587 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3588 $as_echo "$ac_try_echo"; } >&5
3589 (eval "$ac_link") 2>&5
3590 ac_status=$?
3591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3592 test $ac_status = 0; }; then :
3593 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3594 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3595 # work properly (i.e., refer to `conftest.exe'), while it won't with
3596 # `rm'.
3597 for ac_file in conftest.exe conftest conftest.*; do
3598 test -f "$ac_file" || continue
3599 case $ac_file in
3600 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3601 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3602 break;;
3603 * ) break;;
3604 esac
3605 done
3606 else
3607 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3608 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3609 as_fn_error "cannot compute suffix of executables: cannot compile and link
3610 See \`config.log' for more details." "$LINENO" 5; }
3612 rm -f conftest conftest$ac_cv_exeext
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3614 $as_echo "$ac_cv_exeext" >&6; }
3616 rm -f conftest.$ac_ext
3617 EXEEXT=$ac_cv_exeext
3618 ac_exeext=$EXEEXT
3619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3620 /* end confdefs.h. */
3621 #include <stdio.h>
3623 main ()
3625 FILE *f = fopen ("conftest.out", "w");
3626 return ferror (f) || fclose (f) != 0;
3629 return 0;
3631 _ACEOF
3632 ac_clean_files="$ac_clean_files conftest.out"
3633 # Check that the compiler produces executables we can run. If not, either
3634 # the compiler is broken, or we cross compile.
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3636 $as_echo_n "checking whether we are cross compiling... " >&6; }
3637 if test "$cross_compiling" != yes; then
3638 { { ac_try="$ac_link"
3639 case "(($ac_try" in
3640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3641 *) ac_try_echo=$ac_try;;
3642 esac
3643 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3644 $as_echo "$ac_try_echo"; } >&5
3645 (eval "$ac_link") 2>&5
3646 ac_status=$?
3647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3648 test $ac_status = 0; }
3649 if { ac_try='./conftest$ac_cv_exeext'
3650 { { case "(($ac_try" in
3651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3652 *) ac_try_echo=$ac_try;;
3653 esac
3654 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3655 $as_echo "$ac_try_echo"; } >&5
3656 (eval "$ac_try") 2>&5
3657 ac_status=$?
3658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3659 test $ac_status = 0; }; }; then
3660 cross_compiling=no
3661 else
3662 if test "$cross_compiling" = maybe; then
3663 cross_compiling=yes
3664 else
3665 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3666 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3667 as_fn_error "cannot run C compiled programs.
3668 If you meant to cross compile, use \`--host'.
3669 See \`config.log' for more details." "$LINENO" 5; }
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3674 $as_echo "$cross_compiling" >&6; }
3676 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3677 ac_clean_files=$ac_clean_files_save
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3679 $as_echo_n "checking for suffix of object files... " >&6; }
3680 if test "${ac_cv_objext+set}" = set; then :
3681 $as_echo_n "(cached) " >&6
3682 else
3683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3684 /* end confdefs.h. */
3687 main ()
3691 return 0;
3693 _ACEOF
3694 rm -f conftest.o conftest.obj
3695 if { { ac_try="$ac_compile"
3696 case "(($ac_try" in
3697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3698 *) ac_try_echo=$ac_try;;
3699 esac
3700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3701 $as_echo "$ac_try_echo"; } >&5
3702 (eval "$ac_compile") 2>&5
3703 ac_status=$?
3704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3705 test $ac_status = 0; }; then :
3706 for ac_file in conftest.o conftest.obj conftest.*; do
3707 test -f "$ac_file" || continue;
3708 case $ac_file in
3709 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3710 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3711 break;;
3712 esac
3713 done
3714 else
3715 $as_echo "$as_me: failed program was:" >&5
3716 sed 's/^/| /' conftest.$ac_ext >&5
3718 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3719 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3720 as_fn_error "cannot compute suffix of object files: cannot compile
3721 See \`config.log' for more details." "$LINENO" 5; }
3723 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3726 $as_echo "$ac_cv_objext" >&6; }
3727 OBJEXT=$ac_cv_objext
3728 ac_objext=$OBJEXT
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3730 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3731 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3732 $as_echo_n "(cached) " >&6
3733 else
3734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3735 /* end confdefs.h. */
3738 main ()
3740 #ifndef __GNUC__
3741 choke me
3742 #endif
3745 return 0;
3747 _ACEOF
3748 if ac_fn_c_try_compile "$LINENO"; then :
3749 ac_compiler_gnu=yes
3750 else
3751 ac_compiler_gnu=no
3753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3754 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3758 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3759 if test $ac_compiler_gnu = yes; then
3760 GCC=yes
3761 else
3762 GCC=
3764 ac_test_CFLAGS=${CFLAGS+set}
3765 ac_save_CFLAGS=$CFLAGS
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3767 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3768 if test "${ac_cv_prog_cc_g+set}" = set; then :
3769 $as_echo_n "(cached) " >&6
3770 else
3771 ac_save_c_werror_flag=$ac_c_werror_flag
3772 ac_c_werror_flag=yes
3773 ac_cv_prog_cc_g=no
3774 CFLAGS="-g"
3775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3776 /* end confdefs.h. */
3779 main ()
3783 return 0;
3785 _ACEOF
3786 if ac_fn_c_try_compile "$LINENO"; then :
3787 ac_cv_prog_cc_g=yes
3788 else
3789 CFLAGS=""
3790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3791 /* end confdefs.h. */
3794 main ()
3798 return 0;
3800 _ACEOF
3801 if ac_fn_c_try_compile "$LINENO"; then :
3803 else
3804 ac_c_werror_flag=$ac_save_c_werror_flag
3805 CFLAGS="-g"
3806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3807 /* end confdefs.h. */
3810 main ()
3814 return 0;
3816 _ACEOF
3817 if ac_fn_c_try_compile "$LINENO"; then :
3818 ac_cv_prog_cc_g=yes
3820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3825 ac_c_werror_flag=$ac_save_c_werror_flag
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3828 $as_echo "$ac_cv_prog_cc_g" >&6; }
3829 if test "$ac_test_CFLAGS" = set; then
3830 CFLAGS=$ac_save_CFLAGS
3831 elif test $ac_cv_prog_cc_g = yes; then
3832 if test "$GCC" = yes; then
3833 CFLAGS="-g -O2"
3834 else
3835 CFLAGS="-g"
3837 else
3838 if test "$GCC" = yes; then
3839 CFLAGS="-O2"
3840 else
3841 CFLAGS=
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3845 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3846 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3847 $as_echo_n "(cached) " >&6
3848 else
3849 ac_cv_prog_cc_c89=no
3850 ac_save_CC=$CC
3851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3852 /* end confdefs.h. */
3853 #include <stdarg.h>
3854 #include <stdio.h>
3855 #include <sys/types.h>
3856 #include <sys/stat.h>
3857 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3858 struct buf { int x; };
3859 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3860 static char *e (p, i)
3861 char **p;
3862 int i;
3864 return p[i];
3866 static char *f (char * (*g) (char **, int), char **p, ...)
3868 char *s;
3869 va_list v;
3870 va_start (v,p);
3871 s = g (p, va_arg (v,int));
3872 va_end (v);
3873 return s;
3876 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3877 function prototypes and stuff, but not '\xHH' hex character constants.
3878 These don't provoke an error unfortunately, instead are silently treated
3879 as 'x'. The following induces an error, until -std is added to get
3880 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3881 array size at least. It's necessary to write '\x00'==0 to get something
3882 that's true only with -std. */
3883 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3885 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3886 inside strings and character constants. */
3887 #define FOO(x) 'x'
3888 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3890 int test (int i, double x);
3891 struct s1 {int (*f) (int a);};
3892 struct s2 {int (*f) (double a);};
3893 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3894 int argc;
3895 char **argv;
3897 main ()
3899 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3901 return 0;
3903 _ACEOF
3904 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3905 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3907 CC="$ac_save_CC $ac_arg"
3908 if ac_fn_c_try_compile "$LINENO"; then :
3909 ac_cv_prog_cc_c89=$ac_arg
3911 rm -f core conftest.err conftest.$ac_objext
3912 test "x$ac_cv_prog_cc_c89" != "xno" && break
3913 done
3914 rm -f conftest.$ac_ext
3915 CC=$ac_save_CC
3918 # AC_CACHE_VAL
3919 case "x$ac_cv_prog_cc_c89" in
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3922 $as_echo "none needed" >&6; } ;;
3923 xno)
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3925 $as_echo "unsupported" >&6; } ;;
3927 CC="$CC $ac_cv_prog_cc_c89"
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3929 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3930 esac
3931 if test "x$ac_cv_prog_cc_c89" != xno; then :
3935 ac_ext=c
3936 ac_cpp='$CPP $CPPFLAGS'
3937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-cxx-main=<compiler>" >&5
3945 $as_echo_n "checking for --with-cxx-main=<compiler>... " >&6; }
3947 # Check whether --with-cxx_main was given.
3948 if test "${with_cxx_main+set}" = set; then :
3949 withval=$with_cxx_main;
3951 case $withval in
3952 no) with_cxx_main=no
3953 MAINCC='$(CC)';;
3954 yes) with_cxx_main=yes
3955 MAINCC='$(CXX)';;
3956 *) with_cxx_main=yes
3957 MAINCC=$withval
3958 if test -z "$CXX"
3959 then
3960 CXX=$withval
3961 fi;;
3962 esac
3963 else
3965 with_cxx_main=no
3966 MAINCC='$(CC)'
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_cxx_main" >&5
3971 $as_echo "$with_cxx_main" >&6; }
3973 preset_cxx="$CXX"
3974 if test -z "$CXX"
3975 then
3976 case "$CC" in
3977 gcc) # Extract the first word of "g++", so it can be a program name with args.
3978 set dummy g++; ac_word=$2
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3980 $as_echo_n "checking for $ac_word... " >&6; }
3981 if test "${ac_cv_path_CXX+set}" = set; then :
3982 $as_echo_n "(cached) " >&6
3983 else
3984 case $CXX in
3985 [\\/]* | ?:[\\/]*)
3986 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3990 for as_dir in notfound
3992 IFS=$as_save_IFS
3993 test -z "$as_dir" && as_dir=.
3994 for ac_exec_ext in '' $ac_executable_extensions; do
3995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3996 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3998 break 2
4000 done
4001 done
4002 IFS=$as_save_IFS
4004 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="g++"
4006 esac
4008 CXX=$ac_cv_path_CXX
4009 if test -n "$CXX"; then
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4011 $as_echo "$CXX" >&6; }
4012 else
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4014 $as_echo "no" >&6; }
4018 cc) # Extract the first word of "c++", so it can be a program name with args.
4019 set dummy c++; ac_word=$2
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4021 $as_echo_n "checking for $ac_word... " >&6; }
4022 if test "${ac_cv_path_CXX+set}" = set; then :
4023 $as_echo_n "(cached) " >&6
4024 else
4025 case $CXX in
4026 [\\/]* | ?:[\\/]*)
4027 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4031 for as_dir in notfound
4033 IFS=$as_save_IFS
4034 test -z "$as_dir" && as_dir=.
4035 for ac_exec_ext in '' $ac_executable_extensions; do
4036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4037 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4039 break 2
4041 done
4042 done
4043 IFS=$as_save_IFS
4045 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="c++"
4047 esac
4049 CXX=$ac_cv_path_CXX
4050 if test -n "$CXX"; then
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4052 $as_echo "$CXX" >&6; }
4053 else
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4055 $as_echo "no" >&6; }
4059 esac
4060 if test "$CXX" = "notfound"
4061 then
4062 CXX=""
4065 if test -z "$CXX"
4066 then
4067 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
4069 # Extract the first word of "$ac_prog", so it can be a program name with args.
4070 set dummy $ac_prog; ac_word=$2
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4072 $as_echo_n "checking for $ac_word... " >&6; }
4073 if test "${ac_cv_prog_CXX+set}" = set; then :
4074 $as_echo_n "(cached) " >&6
4075 else
4076 if test -n "$CXX"; then
4077 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4078 else
4079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4080 for as_dir in $PATH
4082 IFS=$as_save_IFS
4083 test -z "$as_dir" && as_dir=.
4084 for ac_exec_ext in '' $ac_executable_extensions; do
4085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4086 ac_cv_prog_CXX="$ac_prog"
4087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4088 break 2
4090 done
4091 done
4092 IFS=$as_save_IFS
4096 CXX=$ac_cv_prog_CXX
4097 if test -n "$CXX"; then
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4099 $as_echo "$CXX" >&6; }
4100 else
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4102 $as_echo "no" >&6; }
4106 test -n "$CXX" && break
4107 done
4108 test -n "$CXX" || CXX="notfound"
4110 if test "$CXX" = "notfound"
4111 then
4112 CXX=""
4115 if test "$preset_cxx" != "$CXX"
4116 then
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
4119 By default, distutils will build C++ extension modules with \"$CXX\".
4120 If this is not intended, then set CXX on the configure command line.
4121 " >&5
4122 $as_echo "$as_me: WARNING:
4124 By default, distutils will build C++ extension modules with \"$CXX\".
4125 If this is not intended, then set CXX on the configure command line.
4126 " >&2;}
4130 # checks for UNIX variants that set C preprocessor variables
4132 ac_ext=c
4133 ac_cpp='$CPP $CPPFLAGS'
4134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4138 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4139 # On Suns, sometimes $CPP names a directory.
4140 if test -n "$CPP" && test -d "$CPP"; then
4141 CPP=
4143 if test -z "$CPP"; then
4144 if test "${ac_cv_prog_CPP+set}" = set; then :
4145 $as_echo_n "(cached) " >&6
4146 else
4147 # Double quotes because CPP needs to be expanded
4148 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4150 ac_preproc_ok=false
4151 for ac_c_preproc_warn_flag in '' yes
4153 # Use a header file that comes with gcc, so configuring glibc
4154 # with a fresh cross-compiler works.
4155 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4156 # <limits.h> exists even on freestanding compilers.
4157 # On the NeXT, cc -E runs the code through the compiler's parser,
4158 # not just through cpp. "Syntax error" is here to catch this case.
4159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4160 /* end confdefs.h. */
4161 #ifdef __STDC__
4162 # include <limits.h>
4163 #else
4164 # include <assert.h>
4165 #endif
4166 Syntax error
4167 _ACEOF
4168 if ac_fn_c_try_cpp "$LINENO"; then :
4170 else
4171 # Broken: fails on valid input.
4172 continue
4174 rm -f conftest.err conftest.$ac_ext
4176 # OK, works on sane cases. Now check whether nonexistent headers
4177 # can be detected and how.
4178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4179 /* end confdefs.h. */
4180 #include <ac_nonexistent.h>
4181 _ACEOF
4182 if ac_fn_c_try_cpp "$LINENO"; then :
4183 # Broken: success on invalid input.
4184 continue
4185 else
4186 # Passes both tests.
4187 ac_preproc_ok=:
4188 break
4190 rm -f conftest.err conftest.$ac_ext
4192 done
4193 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4194 rm -f conftest.err conftest.$ac_ext
4195 if $ac_preproc_ok; then :
4196 break
4199 done
4200 ac_cv_prog_CPP=$CPP
4203 CPP=$ac_cv_prog_CPP
4204 else
4205 ac_cv_prog_CPP=$CPP
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4208 $as_echo "$CPP" >&6; }
4209 ac_preproc_ok=false
4210 for ac_c_preproc_warn_flag in '' yes
4212 # Use a header file that comes with gcc, so configuring glibc
4213 # with a fresh cross-compiler works.
4214 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4215 # <limits.h> exists even on freestanding compilers.
4216 # On the NeXT, cc -E runs the code through the compiler's parser,
4217 # not just through cpp. "Syntax error" is here to catch this case.
4218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4219 /* end confdefs.h. */
4220 #ifdef __STDC__
4221 # include <limits.h>
4222 #else
4223 # include <assert.h>
4224 #endif
4225 Syntax error
4226 _ACEOF
4227 if ac_fn_c_try_cpp "$LINENO"; then :
4229 else
4230 # Broken: fails on valid input.
4231 continue
4233 rm -f conftest.err conftest.$ac_ext
4235 # OK, works on sane cases. Now check whether nonexistent headers
4236 # can be detected and how.
4237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4238 /* end confdefs.h. */
4239 #include <ac_nonexistent.h>
4240 _ACEOF
4241 if ac_fn_c_try_cpp "$LINENO"; then :
4242 # Broken: success on invalid input.
4243 continue
4244 else
4245 # Passes both tests.
4246 ac_preproc_ok=:
4247 break
4249 rm -f conftest.err conftest.$ac_ext
4251 done
4252 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4253 rm -f conftest.err conftest.$ac_ext
4254 if $ac_preproc_ok; then :
4256 else
4257 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4258 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4259 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4260 See \`config.log' for more details." "$LINENO" 5; }
4263 ac_ext=c
4264 ac_cpp='$CPP $CPPFLAGS'
4265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4271 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4272 if test "${ac_cv_path_GREP+set}" = set; then :
4273 $as_echo_n "(cached) " >&6
4274 else
4275 if test -z "$GREP"; then
4276 ac_path_GREP_found=false
4277 # Loop through the user's path and test for each of PROGNAME-LIST
4278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4279 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4281 IFS=$as_save_IFS
4282 test -z "$as_dir" && as_dir=.
4283 for ac_prog in grep ggrep; do
4284 for ac_exec_ext in '' $ac_executable_extensions; do
4285 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4286 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4287 # Check for GNU ac_path_GREP and select it if it is found.
4288 # Check for GNU $ac_path_GREP
4289 case `"$ac_path_GREP" --version 2>&1` in
4290 *GNU*)
4291 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4293 ac_count=0
4294 $as_echo_n 0123456789 >"conftest.in"
4295 while :
4297 cat "conftest.in" "conftest.in" >"conftest.tmp"
4298 mv "conftest.tmp" "conftest.in"
4299 cp "conftest.in" "conftest.nl"
4300 $as_echo 'GREP' >> "conftest.nl"
4301 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4302 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4303 as_fn_arith $ac_count + 1 && ac_count=$as_val
4304 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4305 # Best one so far, save it but keep looking for a better one
4306 ac_cv_path_GREP="$ac_path_GREP"
4307 ac_path_GREP_max=$ac_count
4309 # 10*(2^10) chars as input seems more than enough
4310 test $ac_count -gt 10 && break
4311 done
4312 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4313 esac
4315 $ac_path_GREP_found && break 3
4316 done
4317 done
4318 done
4319 IFS=$as_save_IFS
4320 if test -z "$ac_cv_path_GREP"; then
4321 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4323 else
4324 ac_cv_path_GREP=$GREP
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4329 $as_echo "$ac_cv_path_GREP" >&6; }
4330 GREP="$ac_cv_path_GREP"
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4334 $as_echo_n "checking for egrep... " >&6; }
4335 if test "${ac_cv_path_EGREP+set}" = set; then :
4336 $as_echo_n "(cached) " >&6
4337 else
4338 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4339 then ac_cv_path_EGREP="$GREP -E"
4340 else
4341 if test -z "$EGREP"; then
4342 ac_path_EGREP_found=false
4343 # Loop through the user's path and test for each of PROGNAME-LIST
4344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4345 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4347 IFS=$as_save_IFS
4348 test -z "$as_dir" && as_dir=.
4349 for ac_prog in egrep; do
4350 for ac_exec_ext in '' $ac_executable_extensions; do
4351 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4352 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4353 # Check for GNU ac_path_EGREP and select it if it is found.
4354 # Check for GNU $ac_path_EGREP
4355 case `"$ac_path_EGREP" --version 2>&1` in
4356 *GNU*)
4357 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4359 ac_count=0
4360 $as_echo_n 0123456789 >"conftest.in"
4361 while :
4363 cat "conftest.in" "conftest.in" >"conftest.tmp"
4364 mv "conftest.tmp" "conftest.in"
4365 cp "conftest.in" "conftest.nl"
4366 $as_echo 'EGREP' >> "conftest.nl"
4367 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4368 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4369 as_fn_arith $ac_count + 1 && ac_count=$as_val
4370 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4371 # Best one so far, save it but keep looking for a better one
4372 ac_cv_path_EGREP="$ac_path_EGREP"
4373 ac_path_EGREP_max=$ac_count
4375 # 10*(2^10) chars as input seems more than enough
4376 test $ac_count -gt 10 && break
4377 done
4378 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4379 esac
4381 $ac_path_EGREP_found && break 3
4382 done
4383 done
4384 done
4385 IFS=$as_save_IFS
4386 if test -z "$ac_cv_path_EGREP"; then
4387 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4389 else
4390 ac_cv_path_EGREP=$EGREP
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4396 $as_echo "$ac_cv_path_EGREP" >&6; }
4397 EGREP="$ac_cv_path_EGREP"
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4401 $as_echo_n "checking for ANSI C header files... " >&6; }
4402 if test "${ac_cv_header_stdc+set}" = set; then :
4403 $as_echo_n "(cached) " >&6
4404 else
4405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4406 /* end confdefs.h. */
4407 #include <stdlib.h>
4408 #include <stdarg.h>
4409 #include <string.h>
4410 #include <float.h>
4413 main ()
4417 return 0;
4419 _ACEOF
4420 if ac_fn_c_try_compile "$LINENO"; then :
4421 ac_cv_header_stdc=yes
4422 else
4423 ac_cv_header_stdc=no
4425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4427 if test $ac_cv_header_stdc = yes; then
4428 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4430 /* end confdefs.h. */
4431 #include <string.h>
4433 _ACEOF
4434 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4435 $EGREP "memchr" >/dev/null 2>&1; then :
4437 else
4438 ac_cv_header_stdc=no
4440 rm -f conftest*
4444 if test $ac_cv_header_stdc = yes; then
4445 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4447 /* end confdefs.h. */
4448 #include <stdlib.h>
4450 _ACEOF
4451 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4452 $EGREP "free" >/dev/null 2>&1; then :
4454 else
4455 ac_cv_header_stdc=no
4457 rm -f conftest*
4461 if test $ac_cv_header_stdc = yes; then
4462 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4463 if test "$cross_compiling" = yes; then :
4465 else
4466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4467 /* end confdefs.h. */
4468 #include <ctype.h>
4469 #include <stdlib.h>
4470 #if ((' ' & 0x0FF) == 0x020)
4471 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4472 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4473 #else
4474 # define ISLOWER(c) \
4475 (('a' <= (c) && (c) <= 'i') \
4476 || ('j' <= (c) && (c) <= 'r') \
4477 || ('s' <= (c) && (c) <= 'z'))
4478 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4479 #endif
4481 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4483 main ()
4485 int i;
4486 for (i = 0; i < 256; i++)
4487 if (XOR (islower (i), ISLOWER (i))
4488 || toupper (i) != TOUPPER (i))
4489 return 2;
4490 return 0;
4492 _ACEOF
4493 if ac_fn_c_try_run "$LINENO"; then :
4495 else
4496 ac_cv_header_stdc=no
4498 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4499 conftest.$ac_objext conftest.beam conftest.$ac_ext
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4505 $as_echo "$ac_cv_header_stdc" >&6; }
4506 if test $ac_cv_header_stdc = yes; then
4508 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4512 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4513 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4514 inttypes.h stdint.h unistd.h
4515 do :
4516 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4517 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4519 eval as_val=\$$as_ac_Header
4520 if test "x$as_val" = x""yes; then :
4521 cat >>confdefs.h <<_ACEOF
4522 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4523 _ACEOF
4527 done
4531 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4532 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4533 MINIX=yes
4534 else
4535 MINIX=
4539 if test "$MINIX" = yes; then
4541 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4544 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4547 $as_echo "#define _MINIX 1" >>confdefs.h
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4553 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4554 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4555 $as_echo_n "(cached) " >&6
4556 else
4557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4558 /* end confdefs.h. */
4560 # define __EXTENSIONS__ 1
4561 $ac_includes_default
4563 main ()
4567 return 0;
4569 _ACEOF
4570 if ac_fn_c_try_compile "$LINENO"; then :
4571 ac_cv_safe_to_define___extensions__=yes
4572 else
4573 ac_cv_safe_to_define___extensions__=no
4575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4578 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4579 test $ac_cv_safe_to_define___extensions__ = yes &&
4580 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4582 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4584 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4586 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4588 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4593 # Check for unsupported systems
4594 case $ac_sys_system/$ac_sys_release in
4595 atheos*|Linux*/1*)
4596 echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported.
4597 echo See README for details.
4598 exit 1;;
4599 esac
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-suffix" >&5
4603 $as_echo_n "checking for --with-suffix... " >&6; }
4605 # Check whether --with-suffix was given.
4606 if test "${with_suffix+set}" = set; then :
4607 withval=$with_suffix;
4608 case $withval in
4609 no) EXEEXT=;;
4610 yes) EXEEXT=.exe;;
4611 *) EXEEXT=$withval;;
4612 esac
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXEEXT" >&5
4616 $as_echo "$EXEEXT" >&6; }
4618 # Test whether we're running on a non-case-sensitive system, in which
4619 # case we give a warning if no ext is given
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for case-insensitive build directory" >&5
4622 $as_echo_n "checking for case-insensitive build directory... " >&6; }
4623 if test ! -d CaseSensitiveTestDir; then
4624 mkdir CaseSensitiveTestDir
4627 if test -d casesensitivetestdir
4628 then
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4630 $as_echo "yes" >&6; }
4631 BUILDEXEEXT=.exe
4632 else
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4634 $as_echo "no" >&6; }
4635 BUILDEXEEXT=$EXEEXT
4637 rmdir CaseSensitiveTestDir
4639 case $MACHDEP in
4640 bsdos*)
4641 case $CC in
4642 gcc) CC="$CC -D_HAVE_BSDI";;
4643 esac;;
4644 esac
4646 case $ac_sys_system in
4647 hp*|HP*)
4648 case $CC in
4649 cc|*/cc) CC="$CC -Ae";;
4650 esac;;
4651 SunOS*)
4652 # Some functions have a prototype only with that define, e.g. confstr
4654 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4657 esac
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY" >&5
4662 $as_echo_n "checking LIBRARY... " >&6; }
4663 if test -z "$LIBRARY"
4664 then
4665 LIBRARY='libpython$(VERSION).a'
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBRARY" >&5
4668 $as_echo "$LIBRARY" >&6; }
4670 # LDLIBRARY is the name of the library to link against (as opposed to the
4671 # name of the library into which to insert object files). BLDLIBRARY is also
4672 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
4673 # is blank as the main program is not linked directly against LDLIBRARY.
4674 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
4675 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
4676 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
4677 # DLLLIBRARY is the shared (i.e., DLL) library.
4679 # RUNSHARED is used to run shared python without installed libraries
4681 # INSTSONAME is the name of the shared library that will be use to install
4682 # on the system - some systems like version suffix, others don't
4689 LDLIBRARY="$LIBRARY"
4690 BLDLIBRARY='$(LDLIBRARY)'
4691 INSTSONAME='$(LDLIBRARY)'
4692 DLLLIBRARY=''
4693 LDLIBRARYDIR=''
4694 RUNSHARED=''
4696 # LINKCC is the command that links the python executable -- default is $(CC).
4697 # If CXX is set, and if it is needed to link a main function that was
4698 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
4699 # python might then depend on the C++ runtime
4700 # This is altered for AIX in order to build the export list before
4701 # linking.
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKCC" >&5
4704 $as_echo_n "checking LINKCC... " >&6; }
4705 if test -z "$LINKCC"
4706 then
4707 LINKCC='$(PURIFY) $(MAINCC)'
4708 case $ac_sys_system in
4709 AIX*)
4710 exp_extra="\"\""
4711 if test $ac_sys_release -ge 5 -o \
4712 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
4713 exp_extra="."
4715 LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
4716 QNX*)
4717 # qcc must be used because the other compilers do not
4718 # support -N.
4719 LINKCC=qcc;;
4720 esac
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKCC" >&5
4723 $as_echo "$LINKCC" >&6; }
4725 # GNULD is set to "yes" if the GNU linker is used. If this goes wrong
4726 # make sure we default having it set to "no": this is used by
4727 # distutils.unixccompiler to know if it should add --enable-new-dtags
4728 # to linker command lines, and failing to detect GNU ld simply results
4729 # in the same bahaviour as before.
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4732 $as_echo_n "checking for GNU ld... " >&6; }
4733 ac_prog=ld
4734 if test "$GCC" = yes; then
4735 ac_prog=`$CC -print-prog-name=ld`
4737 case `"$ac_prog" -V 2>&1 < /dev/null` in
4738 *GNU*)
4739 GNULD=yes;;
4741 GNULD=no;;
4742 esac
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNULD" >&5
4744 $as_echo "$GNULD" >&6; }
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-shared" >&5
4747 $as_echo_n "checking for --enable-shared... " >&6; }
4748 # Check whether --enable-shared was given.
4749 if test "${enable_shared+set}" = set; then :
4750 enableval=$enable_shared;
4754 if test -z "$enable_shared"
4755 then
4756 case $ac_sys_system in
4757 CYGWIN* | atheos*)
4758 enable_shared="yes";;
4760 enable_shared="no";;
4761 esac
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
4764 $as_echo "$enable_shared" >&6; }
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-profiling" >&5
4767 $as_echo_n "checking for --enable-profiling... " >&6; }
4768 # Check whether --enable-profiling was given.
4769 if test "${enable_profiling+set}" = set; then :
4770 enableval=$enable_profiling; ac_save_cc="$CC"
4771 CC="$CC -pg"
4772 if test "$cross_compiling" = yes; then :
4773 ac_enable_profiling="no"
4774 else
4775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4776 /* end confdefs.h. */
4777 int main() { return 0; }
4778 _ACEOF
4779 if ac_fn_c_try_run "$LINENO"; then :
4780 ac_enable_profiling="yes"
4781 else
4782 ac_enable_profiling="no"
4784 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4785 conftest.$ac_objext conftest.beam conftest.$ac_ext
4788 CC="$ac_save_cc"
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_profiling" >&5
4792 $as_echo "$ac_enable_profiling" >&6; }
4794 case "$ac_enable_profiling" in
4795 "yes")
4796 BASECFLAGS="-pg $BASECFLAGS"
4797 LDFLAGS="-pg $LDFLAGS"
4799 esac
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDLIBRARY" >&5
4802 $as_echo_n "checking LDLIBRARY... " >&6; }
4804 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
4805 # library that we build, but we do not want to link against it (we
4806 # will find it with a -framework option). For this reason there is an
4807 # extra variable BLDLIBRARY against which Python and the extension
4808 # modules are linked, BLDLIBRARY. This is normally the same as
4809 # LDLIBRARY, but empty for MacOSX framework builds.
4810 if test "$enable_framework"
4811 then
4812 LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
4813 RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH"
4814 BLDLIBRARY=''
4815 else
4816 BLDLIBRARY='$(LDLIBRARY)'
4819 # Other platforms follow
4820 if test $enable_shared = "yes"; then
4822 $as_echo "#define Py_ENABLE_SHARED 1" >>confdefs.h
4824 case $ac_sys_system in
4825 CYGWIN*)
4826 LDLIBRARY='libpython$(VERSION).dll.a'
4827 DLLLIBRARY='libpython$(VERSION).dll'
4829 SunOS*)
4830 LDLIBRARY='libpython$(VERSION).so'
4831 BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
4832 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4833 INSTSONAME="$LDLIBRARY".$SOVERSION
4835 Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*)
4836 LDLIBRARY='libpython$(VERSION).so'
4837 BLDLIBRARY='-L. -lpython$(VERSION)'
4838 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4839 case $ac_sys_system in
4840 FreeBSD*)
4841 SOVERSION=`echo $SOVERSION|cut -d "." -f 1`
4843 esac
4844 INSTSONAME="$LDLIBRARY".$SOVERSION
4846 hp*|HP*)
4847 case `uname -m` in
4848 ia64)
4849 LDLIBRARY='libpython$(VERSION).so'
4852 LDLIBRARY='libpython$(VERSION).sl'
4854 esac
4855 BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
4856 RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH}
4858 OSF*)
4859 LDLIBRARY='libpython$(VERSION).so'
4860 BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
4861 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4863 atheos*)
4864 LDLIBRARY='libpython$(VERSION).so'
4865 BLDLIBRARY='-L. -lpython$(VERSION)'
4866 RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
4868 Darwin*)
4869 LDLIBRARY='libpython$(VERSION).dylib'
4870 BLDLIBRARY='-L. -lpython$(VERSION)'
4871 RUNSHARED='DYLD_LIBRARY_PATH=`pwd`:${DYLD_LIBRARY_PATH}'
4873 AIX*)
4874 LDLIBRARY='libpython$(VERSION).so'
4875 RUNSHARED=LIBPATH=`pwd`:${LIBPATH}
4878 esac
4879 else # shared is disabled
4880 case $ac_sys_system in
4881 CYGWIN*)
4882 BLDLIBRARY='$(LIBRARY)'
4883 LDLIBRARY='libpython$(VERSION).dll.a'
4885 esac
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDLIBRARY" >&5
4889 $as_echo "$LDLIBRARY" >&6; }
4891 if test -n "$ac_tool_prefix"; then
4892 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4893 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4895 $as_echo_n "checking for $ac_word... " >&6; }
4896 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4897 $as_echo_n "(cached) " >&6
4898 else
4899 if test -n "$RANLIB"; then
4900 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4901 else
4902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4903 for as_dir in $PATH
4905 IFS=$as_save_IFS
4906 test -z "$as_dir" && as_dir=.
4907 for ac_exec_ext in '' $ac_executable_extensions; do
4908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4909 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4911 break 2
4913 done
4914 done
4915 IFS=$as_save_IFS
4919 RANLIB=$ac_cv_prog_RANLIB
4920 if test -n "$RANLIB"; then
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4922 $as_echo "$RANLIB" >&6; }
4923 else
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4925 $as_echo "no" >&6; }
4930 if test -z "$ac_cv_prog_RANLIB"; then
4931 ac_ct_RANLIB=$RANLIB
4932 # Extract the first word of "ranlib", so it can be a program name with args.
4933 set dummy ranlib; ac_word=$2
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4935 $as_echo_n "checking for $ac_word... " >&6; }
4936 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4937 $as_echo_n "(cached) " >&6
4938 else
4939 if test -n "$ac_ct_RANLIB"; then
4940 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4941 else
4942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4943 for as_dir in $PATH
4945 IFS=$as_save_IFS
4946 test -z "$as_dir" && as_dir=.
4947 for ac_exec_ext in '' $ac_executable_extensions; do
4948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4949 ac_cv_prog_ac_ct_RANLIB="ranlib"
4950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4951 break 2
4953 done
4954 done
4955 IFS=$as_save_IFS
4959 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4960 if test -n "$ac_ct_RANLIB"; then
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4962 $as_echo "$ac_ct_RANLIB" >&6; }
4963 else
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4965 $as_echo "no" >&6; }
4968 if test "x$ac_ct_RANLIB" = x; then
4969 RANLIB=":"
4970 else
4971 case $cross_compiling:$ac_tool_warned in
4972 yes:)
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4974 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4975 ac_tool_warned=yes ;;
4976 esac
4977 RANLIB=$ac_ct_RANLIB
4979 else
4980 RANLIB="$ac_cv_prog_RANLIB"
4984 for ac_prog in ar aal
4986 # Extract the first word of "$ac_prog", so it can be a program name with args.
4987 set dummy $ac_prog; ac_word=$2
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4989 $as_echo_n "checking for $ac_word... " >&6; }
4990 if test "${ac_cv_prog_AR+set}" = set; then :
4991 $as_echo_n "(cached) " >&6
4992 else
4993 if test -n "$AR"; then
4994 ac_cv_prog_AR="$AR" # Let the user override the test.
4995 else
4996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4997 for as_dir in $PATH
4999 IFS=$as_save_IFS
5000 test -z "$as_dir" && as_dir=.
5001 for ac_exec_ext in '' $ac_executable_extensions; do
5002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5003 ac_cv_prog_AR="$ac_prog"
5004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5005 break 2
5007 done
5008 done
5009 IFS=$as_save_IFS
5013 AR=$ac_cv_prog_AR
5014 if test -n "$AR"; then
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5016 $as_echo "$AR" >&6; }
5017 else
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5019 $as_echo "no" >&6; }
5023 test -n "$AR" && break
5024 done
5025 test -n "$AR" || AR="ar"
5028 # tweak ARFLAGS only if the user didn't set it on the command line
5030 if test -z "$ARFLAGS"
5031 then
5032 ARFLAGS="rc"
5036 # Extract the first word of "svnversion", so it can be a program name with args.
5037 set dummy svnversion; ac_word=$2
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5039 $as_echo_n "checking for $ac_word... " >&6; }
5040 if test "${ac_cv_prog_SVNVERSION+set}" = set; then :
5041 $as_echo_n "(cached) " >&6
5042 else
5043 if test -n "$SVNVERSION"; then
5044 ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test.
5045 else
5046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5047 for as_dir in $PATH
5049 IFS=$as_save_IFS
5050 test -z "$as_dir" && as_dir=.
5051 for ac_exec_ext in '' $ac_executable_extensions; do
5052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5053 ac_cv_prog_SVNVERSION="found"
5054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5055 break 2
5057 done
5058 done
5059 IFS=$as_save_IFS
5061 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION="not-found"
5064 SVNVERSION=$ac_cv_prog_SVNVERSION
5065 if test -n "$SVNVERSION"; then
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVNVERSION" >&5
5067 $as_echo "$SVNVERSION" >&6; }
5068 else
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5070 $as_echo "no" >&6; }
5074 if test $SVNVERSION = found
5075 then
5076 SVNVERSION="svnversion \$(srcdir)"
5077 else
5078 SVNVERSION="echo Unversioned directory"
5081 case $MACHDEP in
5082 bsdos*|hp*|HP*)
5083 # install -d does not work on BSDI or HP-UX
5084 if test -z "$INSTALL"
5085 then
5086 INSTALL="${srcdir}/install-sh -c"
5088 esac
5089 ac_aux_dir=
5090 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
5091 for ac_t in install-sh install.sh shtool; do
5092 if test -f "$ac_dir/$ac_t"; then
5093 ac_aux_dir=$ac_dir
5094 ac_install_sh="$ac_aux_dir/$ac_t -c"
5095 break 2
5097 done
5098 done
5099 if test -z "$ac_aux_dir"; then
5100 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
5103 # These three variables are undocumented and unsupported,
5104 # and are intended to be withdrawn in a future Autoconf release.
5105 # They can cause serious problems if a builder's source tree is in a directory
5106 # whose full name contains unusual characters.
5107 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5108 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5109 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5112 # Find a good install program. We prefer a C program (faster),
5113 # so one script is as good as another. But avoid the broken or
5114 # incompatible versions:
5115 # SysV /etc/install, /usr/sbin/install
5116 # SunOS /usr/etc/install
5117 # IRIX /sbin/install
5118 # AIX /bin/install
5119 # AmigaOS /C/install, which installs bootblocks on floppy discs
5120 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5121 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5122 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5123 # OS/2's system install, which has a completely different semantic
5124 # ./install, which can be erroneously created by make from ./install.sh.
5125 # Reject install programs that cannot install multiple files.
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5127 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5128 if test -z "$INSTALL"; then
5129 if test "${ac_cv_path_install+set}" = set; then :
5130 $as_echo_n "(cached) " >&6
5131 else
5132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5133 for as_dir in $PATH
5135 IFS=$as_save_IFS
5136 test -z "$as_dir" && as_dir=.
5137 # Account for people who put trailing slashes in PATH elements.
5138 case $as_dir/ in #((
5139 ./ | .// | /[cC]/* | \
5140 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5141 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5142 /usr/ucb/* ) ;;
5144 # OSF1 and SCO ODT 3.0 have their own names for install.
5145 # Don't use installbsd from OSF since it installs stuff as root
5146 # by default.
5147 for ac_prog in ginstall scoinst install; do
5148 for ac_exec_ext in '' $ac_executable_extensions; do
5149 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5150 if test $ac_prog = install &&
5151 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5152 # AIX install. It has an incompatible calling convention.
5154 elif test $ac_prog = install &&
5155 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5156 # program-specific install script used by HP pwplus--don't use.
5158 else
5159 rm -rf conftest.one conftest.two conftest.dir
5160 echo one > conftest.one
5161 echo two > conftest.two
5162 mkdir conftest.dir
5163 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5164 test -s conftest.one && test -s conftest.two &&
5165 test -s conftest.dir/conftest.one &&
5166 test -s conftest.dir/conftest.two
5167 then
5168 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5169 break 3
5173 done
5174 done
5176 esac
5178 done
5179 IFS=$as_save_IFS
5181 rm -rf conftest.one conftest.two conftest.dir
5184 if test "${ac_cv_path_install+set}" = set; then
5185 INSTALL=$ac_cv_path_install
5186 else
5187 # As a last resort, use the slow shell script. Don't cache a
5188 # value for INSTALL within a source directory, because that will
5189 # break other packages using the cache if that directory is
5190 # removed, or if the value is a relative name.
5191 INSTALL=$ac_install_sh
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5195 $as_echo "$INSTALL" >&6; }
5197 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5198 # It thinks the first close brace ends the variable substitution.
5199 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5201 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5203 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5206 # Not every filesystem supports hard links
5208 if test -z "$LN" ; then
5209 case $ac_sys_system in
5210 CYGWIN*) LN="ln -s";;
5211 atheos*) LN="ln -s";;
5212 *) LN=ln;;
5213 esac
5216 # Check for --with-pydebug
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pydebug" >&5
5218 $as_echo_n "checking for --with-pydebug... " >&6; }
5220 # Check whether --with-pydebug was given.
5221 if test "${with_pydebug+set}" = set; then :
5222 withval=$with_pydebug;
5223 if test "$withval" != no
5224 then
5226 $as_echo "#define Py_DEBUG 1" >>confdefs.h
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5229 $as_echo "yes" >&6; };
5230 Py_DEBUG='true'
5231 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5232 $as_echo "no" >&6; }; Py_DEBUG='false'
5234 else
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5236 $as_echo "no" >&6; }
5240 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
5241 # merged with this chunk of code?
5243 # Optimizer/debugger flags
5244 # ------------------------
5245 # (The following bit of code is complicated enough - please keep things
5246 # indented properly. Just pretend you're editing Python code. ;-)
5248 # There are two parallel sets of case statements below, one that checks to
5249 # see if OPT was set and one that does BASECFLAGS setting based upon
5250 # compiler and platform. BASECFLAGS tweaks need to be made even if the
5251 # user set OPT.
5253 # tweak OPT based on compiler and platform, only if the user didn't set
5254 # it on the command line
5256 if test "${OPT-unset}" = "unset"
5257 then
5258 case $GCC in
5259 yes)
5260 if test "$CC" != 'g++' ; then
5261 STRICT_PROTO="-Wstrict-prototypes"
5263 # For gcc 4.x we need to use -fwrapv so lets check if its supported
5264 if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then
5265 WRAP="-fwrapv"
5267 case $ac_cv_prog_cc_g in
5268 yes)
5269 if test "$Py_DEBUG" = 'true' ; then
5270 # Optimization messes up debuggers, so turn it off for
5271 # debug builds.
5272 OPT="-g -Wall $STRICT_PROTO"
5273 else
5274 OPT="-g $WRAP -O3 -Wall $STRICT_PROTO"
5278 OPT="-O3 -Wall $STRICT_PROTO"
5280 esac
5281 case $ac_sys_system in
5282 SCO_SV*) OPT="$OPT -m486 -DSCO5"
5284 esac
5288 OPT="-O"
5290 esac
5295 # The -arch flags for universal builds on OSX
5296 UNIVERSAL_ARCH_FLAGS=
5299 # tweak BASECFLAGS based on compiler and platform
5300 case $GCC in
5301 yes)
5302 # Python doesn't violate C99 aliasing rules, but older versions of
5303 # GCC produce warnings for legal Python code. Enable
5304 # -fno-strict-aliasing on versions of GCC that support but produce
5305 # warnings. See Issue3326
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts and needs -fno-strict-aliasing" >&5
5307 $as_echo_n "checking whether $CC accepts and needs -fno-strict-aliasing... " >&6; }
5308 ac_save_cc="$CC"
5309 CC="$CC -fno-strict-aliasing"
5310 save_CFLAGS="$CFLAGS"
5311 if test "${ac_cv_no_strict_aliasing+set}" = set; then :
5312 $as_echo_n "(cached) " >&6
5313 else
5314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5315 /* end confdefs.h. */
5319 main ()
5323 return 0;
5326 _ACEOF
5327 if ac_fn_c_try_compile "$LINENO"; then :
5329 CC="$ac_save_cc -fstrict-aliasing"
5330 CFLAGS="$CFLAGS -Werror -Wstrict-aliasing"
5331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5332 /* end confdefs.h. */
5334 void f(int **x) {}
5336 main ()
5338 double *x; f((int **) &x);
5340 return 0;
5343 _ACEOF
5344 if ac_fn_c_try_compile "$LINENO"; then :
5346 ac_cv_no_strict_aliasing=no
5348 else
5350 ac_cv_no_strict_aliasing=yes
5353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5355 else
5357 ac_cv_no_strict_aliasing=no
5360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5363 CFLAGS="$save_CFLAGS"
5364 CC="$ac_save_cc"
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_no_strict_aliasing" >&5
5366 $as_echo "$ac_cv_no_strict_aliasing" >&6; }
5367 if test $ac_cv_no_strict_aliasing = yes
5368 then
5369 BASECFLAGS="$BASECFLAGS -fno-strict-aliasing"
5372 # if using gcc on alpha, use -mieee to get (near) full IEEE 754
5373 # support. Without this, treatment of subnormals doesn't follow
5374 # the standard.
5375 case $ac_sys_machine in
5376 alpha*)
5377 BASECFLAGS="$BASECFLAGS -mieee"
5379 esac
5381 case $ac_sys_system in
5382 SCO_SV*)
5383 BASECFLAGS="$BASECFLAGS -m486 -DSCO5"
5385 # is there any other compiler on Darwin besides gcc?
5386 Darwin*)
5387 # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd
5388 # used to be here, but non-Apple gcc doesn't accept them.
5389 if test "${CC}" = gcc
5390 then
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which compiler should be used" >&5
5392 $as_echo_n "checking which compiler should be used... " >&6; }
5393 case "${UNIVERSALSDK}" in
5394 */MacOSX10.4u.sdk)
5395 # Build using 10.4 SDK, force usage of gcc when the
5396 # compiler is gcc, otherwise the user will get very
5397 # confusing error messages when building on OSX 10.6
5398 CC=gcc-4.0
5399 CPP=cpp-4.0
5401 esac
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5403 $as_echo "$CC" >&6; }
5407 if test "${enable_universalsdk}"; then
5408 UNIVERSAL_ARCH_FLAGS=""
5409 if test "$UNIVERSAL_ARCHS" = "32-bit" ; then
5410 ARCH_RUN_32BIT=""
5411 UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386"
5413 elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then
5414 ARCH_RUN_32BIT="true"
5415 UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64"
5417 elif test "$UNIVERSAL_ARCHS" = "all" ; then
5418 ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc"
5419 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64"
5420 LIPO_32BIT_FLAGS="-extract i386 -extract ppc7400"
5421 LIPO_64BIT_FLAGS="-extract x86_64 -extract ppc64"
5423 elif test "$UNIVERSAL_ARCHS" = "intel" ; then
5424 ARCH_RUN_32BIT="/usr/bin/arch -i386"
5425 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64"
5426 LIPO_32BIT_FLAGS="-extract i386"
5427 LIPO_64BIT_FLAGS="-extract x86_64"
5429 elif test "$UNIVERSAL_ARCHS" = "3-way" ; then
5430 ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc"
5431 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64"
5432 LIPO_32BIT_FLAGS="-extract i386 -extract ppc7400"
5433 LIPO_64BIT_FLAGS="-extract x86_64"
5435 else
5436 as_fn_error "proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" "$LINENO" 5
5441 CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}"
5442 if test "${UNIVERSALSDK}" != "/"
5443 then
5444 CFLAGS="-isysroot ${UNIVERSALSDK} ${CFLAGS}"
5445 LDFLAGS="-isysroot ${UNIVERSALSDK} ${LDFLAGS}"
5446 CPPFLAGSFLAGS="-isysroot ${UNIVERSALSDK} ${CPPFLAGS}"
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=''
5492 OSF*)
5493 BASECFLAGS="$BASECFLAGS -mieee"
5495 esac
5499 case $ac_sys_system in
5500 OpenUNIX*|UnixWare*)
5501 BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
5503 OSF*)
5504 BASECFLAGS="$BASECFLAGS -ieee -std"
5506 SCO_SV*)
5507 BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5"
5509 esac
5511 esac
5513 if test "$Py_DEBUG" = 'true'; then
5515 else
5516 OPT="-DNDEBUG $OPT"
5519 if test "$ac_arch_flags"
5520 then
5521 BASECFLAGS="$BASECFLAGS $ac_arch_flags"
5524 # disable check for icc since it seems to pass, but generates a warning
5525 if test "$CC" = icc
5526 then
5527 ac_cv_opt_olimit_ok=no
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -OPT:Olimit=0" >&5
5531 $as_echo_n "checking whether $CC accepts -OPT:Olimit=0... " >&6; }
5532 if test "${ac_cv_opt_olimit_ok+set}" = set; then :
5533 $as_echo_n "(cached) " >&6
5534 else
5535 ac_save_cc="$CC"
5536 CC="$CC -OPT:Olimit=0"
5537 if test "$cross_compiling" = yes; then :
5538 ac_cv_opt_olimit_ok=no
5539 else
5540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5541 /* end confdefs.h. */
5542 int main() { return 0; }
5543 _ACEOF
5544 if ac_fn_c_try_run "$LINENO"; then :
5545 ac_cv_opt_olimit_ok=yes
5546 else
5547 ac_cv_opt_olimit_ok=no
5549 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5550 conftest.$ac_objext conftest.beam conftest.$ac_ext
5553 CC="$ac_save_cc"
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_opt_olimit_ok" >&5
5557 $as_echo "$ac_cv_opt_olimit_ok" >&6; }
5558 if test $ac_cv_opt_olimit_ok = yes; then
5559 case $ac_sys_system in
5560 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
5561 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
5562 # environment?
5563 Darwin*)
5566 BASECFLAGS="$BASECFLAGS -OPT:Olimit=0"
5568 esac
5569 else
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Olimit 1500" >&5
5571 $as_echo_n "checking whether $CC accepts -Olimit 1500... " >&6; }
5572 if test "${ac_cv_olimit_ok+set}" = set; then :
5573 $as_echo_n "(cached) " >&6
5574 else
5575 ac_save_cc="$CC"
5576 CC="$CC -Olimit 1500"
5577 if test "$cross_compiling" = yes; then :
5578 ac_cv_olimit_ok=no
5579 else
5580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5581 /* end confdefs.h. */
5582 int main() { return 0; }
5583 _ACEOF
5584 if ac_fn_c_try_run "$LINENO"; then :
5585 ac_cv_olimit_ok=yes
5586 else
5587 ac_cv_olimit_ok=no
5589 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5590 conftest.$ac_objext conftest.beam conftest.$ac_ext
5593 CC="$ac_save_cc"
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_olimit_ok" >&5
5597 $as_echo "$ac_cv_olimit_ok" >&6; }
5598 if test $ac_cv_olimit_ok = yes; then
5599 BASECFLAGS="$BASECFLAGS -Olimit 1500"
5603 # Check whether GCC supports PyArg_ParseTuple format
5604 if test "$GCC" = "yes"
5605 then
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc supports ParseTuple __format__" >&5
5607 $as_echo_n "checking whether gcc supports ParseTuple __format__... " >&6; }
5608 save_CFLAGS=$CFLAGS
5609 CFLAGS="$CFLAGS -Werror"
5610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5611 /* end confdefs.h. */
5613 void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2)));
5616 main ()
5620 return 0;
5622 _ACEOF
5623 if ac_fn_c_try_compile "$LINENO"; then :
5625 $as_echo "#define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1" >>confdefs.h
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5628 $as_echo "yes" >&6; }
5629 else
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5631 $as_echo "no" >&6; }
5634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5635 CFLAGS=$save_CFLAGS
5638 # On some compilers, pthreads are available without further options
5639 # (e.g. MacOS X). On some of these systems, the compiler will not
5640 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
5641 # So we have to see first whether pthreads are available without
5642 # options before we can check whether -Kpthread improves anything.
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads are available without options" >&5
5644 $as_echo_n "checking whether pthreads are available without options... " >&6; }
5645 if test "${ac_cv_pthread_is_default+set}" = set; then :
5646 $as_echo_n "(cached) " >&6
5647 else
5648 if test "$cross_compiling" = yes; then :
5649 ac_cv_pthread_is_default=no
5650 else
5651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5652 /* end confdefs.h. */
5654 #include <pthread.h>
5656 void* routine(void* p){return NULL;}
5658 int main(){
5659 pthread_t p;
5660 if(pthread_create(&p,NULL,routine,NULL)!=0)
5661 return 1;
5662 (void)pthread_detach(p);
5663 return 0;
5666 _ACEOF
5667 if ac_fn_c_try_run "$LINENO"; then :
5669 ac_cv_pthread_is_default=yes
5670 ac_cv_kthread=no
5671 ac_cv_pthread=no
5673 else
5674 ac_cv_pthread_is_default=no
5676 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5677 conftest.$ac_objext conftest.beam conftest.$ac_ext
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_is_default" >&5
5684 $as_echo "$ac_cv_pthread_is_default" >&6; }
5687 if test $ac_cv_pthread_is_default = yes
5688 then
5689 ac_cv_kpthread=no
5690 else
5691 # -Kpthread, if available, provides the right #defines
5692 # and linker options to make pthread_create available
5693 # Some compilers won't report that they do not support -Kpthread,
5694 # so we need to run a program to see whether it really made the
5695 # function available.
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kpthread" >&5
5697 $as_echo_n "checking whether $CC accepts -Kpthread... " >&6; }
5698 if test "${ac_cv_kpthread+set}" = set; then :
5699 $as_echo_n "(cached) " >&6
5700 else
5701 ac_save_cc="$CC"
5702 CC="$CC -Kpthread"
5703 if test "$cross_compiling" = yes; then :
5704 ac_cv_kpthread=no
5705 else
5706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5707 /* end confdefs.h. */
5709 #include <pthread.h>
5711 void* routine(void* p){return NULL;}
5713 int main(){
5714 pthread_t p;
5715 if(pthread_create(&p,NULL,routine,NULL)!=0)
5716 return 1;
5717 (void)pthread_detach(p);
5718 return 0;
5721 _ACEOF
5722 if ac_fn_c_try_run "$LINENO"; then :
5723 ac_cv_kpthread=yes
5724 else
5725 ac_cv_kpthread=no
5727 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5728 conftest.$ac_objext conftest.beam conftest.$ac_ext
5731 CC="$ac_save_cc"
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kpthread" >&5
5735 $as_echo "$ac_cv_kpthread" >&6; }
5738 if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
5739 then
5740 # -Kthread, if available, provides the right #defines
5741 # and linker options to make pthread_create available
5742 # Some compilers won't report that they do not support -Kthread,
5743 # so we need to run a program to see whether it really made the
5744 # function available.
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kthread" >&5
5746 $as_echo_n "checking whether $CC accepts -Kthread... " >&6; }
5747 if test "${ac_cv_kthread+set}" = set; then :
5748 $as_echo_n "(cached) " >&6
5749 else
5750 ac_save_cc="$CC"
5751 CC="$CC -Kthread"
5752 if test "$cross_compiling" = yes; then :
5753 ac_cv_kthread=no
5754 else
5755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5756 /* end confdefs.h. */
5758 #include <pthread.h>
5760 void* routine(void* p){return NULL;}
5762 int main(){
5763 pthread_t p;
5764 if(pthread_create(&p,NULL,routine,NULL)!=0)
5765 return 1;
5766 (void)pthread_detach(p);
5767 return 0;
5770 _ACEOF
5771 if ac_fn_c_try_run "$LINENO"; then :
5772 ac_cv_kthread=yes
5773 else
5774 ac_cv_kthread=no
5776 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5777 conftest.$ac_objext conftest.beam conftest.$ac_ext
5780 CC="$ac_save_cc"
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kthread" >&5
5784 $as_echo "$ac_cv_kthread" >&6; }
5787 if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
5788 then
5789 # -pthread, if available, provides the right #defines
5790 # and linker options to make pthread_create available
5791 # Some compilers won't report that they do not support -pthread,
5792 # so we need to run a program to see whether it really made the
5793 # function available.
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -pthread" >&5
5795 $as_echo_n "checking whether $CC accepts -pthread... " >&6; }
5796 if test "${ac_cv_thread+set}" = set; then :
5797 $as_echo_n "(cached) " >&6
5798 else
5799 ac_save_cc="$CC"
5800 CC="$CC -pthread"
5801 if test "$cross_compiling" = yes; then :
5802 ac_cv_pthread=no
5803 else
5804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5805 /* end confdefs.h. */
5807 #include <pthread.h>
5809 void* routine(void* p){return NULL;}
5811 int main(){
5812 pthread_t p;
5813 if(pthread_create(&p,NULL,routine,NULL)!=0)
5814 return 1;
5815 (void)pthread_detach(p);
5816 return 0;
5819 _ACEOF
5820 if ac_fn_c_try_run "$LINENO"; then :
5821 ac_cv_pthread=yes
5822 else
5823 ac_cv_pthread=no
5825 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5826 conftest.$ac_objext conftest.beam conftest.$ac_ext
5829 CC="$ac_save_cc"
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread" >&5
5833 $as_echo "$ac_cv_pthread" >&6; }
5836 # If we have set a CC compiler flag for thread support then
5837 # check if it works for CXX, too.
5838 ac_cv_cxx_thread=no
5839 if test ! -z "$CXX"
5840 then
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX also accepts flags for thread support" >&5
5842 $as_echo_n "checking whether $CXX also accepts flags for thread support... " >&6; }
5843 ac_save_cxx="$CXX"
5845 if test "$ac_cv_kpthread" = "yes"
5846 then
5847 CXX="$CXX -Kpthread"
5848 ac_cv_cxx_thread=yes
5849 elif test "$ac_cv_kthread" = "yes"
5850 then
5851 CXX="$CXX -Kthread"
5852 ac_cv_cxx_thread=yes
5853 elif test "$ac_cv_pthread" = "yes"
5854 then
5855 CXX="$CXX -pthread"
5856 ac_cv_cxx_thread=yes
5859 if test $ac_cv_cxx_thread = yes
5860 then
5861 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
5862 $CXX -c conftest.$ac_ext 2>&5
5863 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
5864 && test -s conftest$ac_exeext && ./conftest$ac_exeext
5865 then
5866 ac_cv_cxx_thread=yes
5867 else
5868 ac_cv_cxx_thread=no
5870 rm -fr conftest*
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_thread" >&5
5873 $as_echo "$ac_cv_cxx_thread" >&6; }
5875 CXX="$ac_save_cxx"
5878 # checks for header files
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5880 $as_echo_n "checking for ANSI C header files... " >&6; }
5881 if test "${ac_cv_header_stdc+set}" = set; then :
5882 $as_echo_n "(cached) " >&6
5883 else
5884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5885 /* end confdefs.h. */
5886 #include <stdlib.h>
5887 #include <stdarg.h>
5888 #include <string.h>
5889 #include <float.h>
5892 main ()
5896 return 0;
5898 _ACEOF
5899 if ac_fn_c_try_compile "$LINENO"; then :
5900 ac_cv_header_stdc=yes
5901 else
5902 ac_cv_header_stdc=no
5904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5906 if test $ac_cv_header_stdc = yes; then
5907 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5909 /* end confdefs.h. */
5910 #include <string.h>
5912 _ACEOF
5913 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5914 $EGREP "memchr" >/dev/null 2>&1; then :
5916 else
5917 ac_cv_header_stdc=no
5919 rm -f conftest*
5923 if test $ac_cv_header_stdc = yes; then
5924 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5926 /* end confdefs.h. */
5927 #include <stdlib.h>
5929 _ACEOF
5930 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5931 $EGREP "free" >/dev/null 2>&1; then :
5933 else
5934 ac_cv_header_stdc=no
5936 rm -f conftest*
5940 if test $ac_cv_header_stdc = yes; then
5941 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5942 if test "$cross_compiling" = yes; then :
5944 else
5945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5946 /* end confdefs.h. */
5947 #include <ctype.h>
5948 #include <stdlib.h>
5949 #if ((' ' & 0x0FF) == 0x020)
5950 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5951 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5952 #else
5953 # define ISLOWER(c) \
5954 (('a' <= (c) && (c) <= 'i') \
5955 || ('j' <= (c) && (c) <= 'r') \
5956 || ('s' <= (c) && (c) <= 'z'))
5957 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5958 #endif
5960 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5962 main ()
5964 int i;
5965 for (i = 0; i < 256; i++)
5966 if (XOR (islower (i), ISLOWER (i))
5967 || toupper (i) != TOUPPER (i))
5968 return 2;
5969 return 0;
5971 _ACEOF
5972 if ac_fn_c_try_run "$LINENO"; then :
5974 else
5975 ac_cv_header_stdc=no
5977 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5978 conftest.$ac_objext conftest.beam conftest.$ac_ext
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5984 $as_echo "$ac_cv_header_stdc" >&6; }
5985 if test $ac_cv_header_stdc = yes; then
5987 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5991 for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \
5992 fcntl.h grp.h \
5993 ieeefp.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
5994 shadow.h signal.h stdint.h stropts.h termios.h thread.h \
5995 unistd.h utime.h \
5996 sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \
5997 sys/lock.h sys/mkdev.h sys/modem.h \
5998 sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \
5999 sys/termio.h sys/time.h \
6000 sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
6001 sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
6002 bluetooth/bluetooth.h linux/tipc.h
6003 do :
6004 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6005 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6006 eval as_val=\$$as_ac_Header
6007 if test "x$as_val" = x""yes; then :
6008 cat >>confdefs.h <<_ACEOF
6009 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6010 _ACEOF
6014 done
6016 ac_header_dirent=no
6017 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6018 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6020 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6021 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
6022 $as_echo_n "(cached) " >&6
6023 else
6024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6025 /* end confdefs.h. */
6026 #include <sys/types.h>
6027 #include <$ac_hdr>
6030 main ()
6032 if ((DIR *) 0)
6033 return 0;
6035 return 0;
6037 _ACEOF
6038 if ac_fn_c_try_compile "$LINENO"; then :
6039 eval "$as_ac_Header=yes"
6040 else
6041 eval "$as_ac_Header=no"
6043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6045 eval ac_res=\$$as_ac_Header
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6047 $as_echo "$ac_res" >&6; }
6048 eval as_val=\$$as_ac_Header
6049 if test "x$as_val" = x""yes; then :
6050 cat >>confdefs.h <<_ACEOF
6051 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6052 _ACEOF
6054 ac_header_dirent=$ac_hdr; break
6057 done
6058 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6059 if test $ac_header_dirent = dirent.h; then
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6061 $as_echo_n "checking for library containing opendir... " >&6; }
6062 if test "${ac_cv_search_opendir+set}" = set; then :
6063 $as_echo_n "(cached) " >&6
6064 else
6065 ac_func_search_save_LIBS=$LIBS
6066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6067 /* end confdefs.h. */
6069 /* Override any GCC internal prototype to avoid an error.
6070 Use char because int might match the return type of a GCC
6071 builtin and then its argument prototype would still apply. */
6072 #ifdef __cplusplus
6073 extern "C"
6074 #endif
6075 char opendir ();
6077 main ()
6079 return opendir ();
6081 return 0;
6083 _ACEOF
6084 for ac_lib in '' dir; do
6085 if test -z "$ac_lib"; then
6086 ac_res="none required"
6087 else
6088 ac_res=-l$ac_lib
6089 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6091 if ac_fn_c_try_link "$LINENO"; then :
6092 ac_cv_search_opendir=$ac_res
6094 rm -f core conftest.err conftest.$ac_objext \
6095 conftest$ac_exeext
6096 if test "${ac_cv_search_opendir+set}" = set; then :
6097 break
6099 done
6100 if test "${ac_cv_search_opendir+set}" = set; then :
6102 else
6103 ac_cv_search_opendir=no
6105 rm conftest.$ac_ext
6106 LIBS=$ac_func_search_save_LIBS
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6109 $as_echo "$ac_cv_search_opendir" >&6; }
6110 ac_res=$ac_cv_search_opendir
6111 if test "$ac_res" != no; then :
6112 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6116 else
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6118 $as_echo_n "checking for library containing opendir... " >&6; }
6119 if test "${ac_cv_search_opendir+set}" = set; then :
6120 $as_echo_n "(cached) " >&6
6121 else
6122 ac_func_search_save_LIBS=$LIBS
6123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6124 /* end confdefs.h. */
6126 /* Override any GCC internal prototype to avoid an error.
6127 Use char because int might match the return type of a GCC
6128 builtin and then its argument prototype would still apply. */
6129 #ifdef __cplusplus
6130 extern "C"
6131 #endif
6132 char opendir ();
6134 main ()
6136 return opendir ();
6138 return 0;
6140 _ACEOF
6141 for ac_lib in '' x; do
6142 if test -z "$ac_lib"; then
6143 ac_res="none required"
6144 else
6145 ac_res=-l$ac_lib
6146 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6148 if ac_fn_c_try_link "$LINENO"; then :
6149 ac_cv_search_opendir=$ac_res
6151 rm -f core conftest.err conftest.$ac_objext \
6152 conftest$ac_exeext
6153 if test "${ac_cv_search_opendir+set}" = set; then :
6154 break
6156 done
6157 if test "${ac_cv_search_opendir+set}" = set; then :
6159 else
6160 ac_cv_search_opendir=no
6162 rm conftest.$ac_ext
6163 LIBS=$ac_func_search_save_LIBS
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6166 $as_echo "$ac_cv_search_opendir" >&6; }
6167 ac_res=$ac_cv_search_opendir
6168 if test "$ac_res" != no; then :
6169 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
6176 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
6177 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then :
6178 $as_echo_n "(cached) " >&6
6179 else
6180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6181 /* end confdefs.h. */
6182 #include <sys/types.h>
6184 main ()
6186 return makedev(0, 0);
6188 return 0;
6190 _ACEOF
6191 if ac_fn_c_try_link "$LINENO"; then :
6192 ac_cv_header_sys_types_h_makedev=yes
6193 else
6194 ac_cv_header_sys_types_h_makedev=no
6196 rm -f core conftest.err conftest.$ac_objext \
6197 conftest$ac_exeext conftest.$ac_ext
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
6201 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
6203 if test $ac_cv_header_sys_types_h_makedev = no; then
6204 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
6205 if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then :
6207 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
6213 if test $ac_cv_header_sys_mkdev_h = no; then
6214 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
6215 if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then :
6217 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
6226 # On Solaris, term.h requires curses.h
6227 for ac_header in term.h
6228 do :
6229 ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "
6230 #ifdef HAVE_CURSES_H
6231 #include <curses.h>
6232 #endif
6235 if test "x$ac_cv_header_term_h" = x""yes; then :
6236 cat >>confdefs.h <<_ACEOF
6237 #define HAVE_TERM_H 1
6238 _ACEOF
6242 done
6245 # On Linux, netlink.h requires asm/types.h
6246 for ac_header in linux/netlink.h
6247 do :
6248 ac_fn_c_check_header_compile "$LINENO" "linux/netlink.h" "ac_cv_header_linux_netlink_h" "
6249 #ifdef HAVE_ASM_TYPES_H
6250 #include <asm/types.h>
6251 #endif
6252 #ifdef HAVE_SYS_SOCKET_H
6253 #include <sys/socket.h>
6254 #endif
6257 if test "x$ac_cv_header_linux_netlink_h" = x""yes; then :
6258 cat >>confdefs.h <<_ACEOF
6259 #define HAVE_LINUX_NETLINK_H 1
6260 _ACEOF
6264 done
6267 # checks for typedefs
6268 was_it_defined=no
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t in time.h" >&5
6270 $as_echo_n "checking for clock_t in time.h... " >&6; }
6271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6272 /* end confdefs.h. */
6273 #include <time.h>
6275 _ACEOF
6276 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6277 $EGREP "clock_t" >/dev/null 2>&1; then :
6278 was_it_defined=yes
6279 else
6282 $as_echo "#define clock_t long" >>confdefs.h
6286 rm -f conftest*
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5
6289 $as_echo "$was_it_defined" >&6; }
6291 # Check whether using makedev requires defining _OSF_SOURCE
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for makedev" >&5
6293 $as_echo_n "checking for makedev... " >&6; }
6294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6295 /* end confdefs.h. */
6297 #if defined(MAJOR_IN_MKDEV)
6298 #include <sys/mkdev.h>
6299 #elif defined(MAJOR_IN_SYSMACROS)
6300 #include <sys/sysmacros.h>
6301 #else
6302 #include <sys/types.h>
6303 #endif
6305 main ()
6307 makedev(0, 0)
6309 return 0;
6311 _ACEOF
6312 if ac_fn_c_try_link "$LINENO"; then :
6313 ac_cv_has_makedev=yes
6314 else
6315 ac_cv_has_makedev=no
6317 rm -f core conftest.err conftest.$ac_objext \
6318 conftest$ac_exeext conftest.$ac_ext
6319 if test "$ac_cv_has_makedev" = "no"; then
6320 # we didn't link, try if _OSF_SOURCE will allow us to link
6321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6322 /* end confdefs.h. */
6324 #define _OSF_SOURCE 1
6325 #include <sys/types.h>
6328 main ()
6330 makedev(0, 0)
6332 return 0;
6334 _ACEOF
6335 if ac_fn_c_try_link "$LINENO"; then :
6336 ac_cv_has_makedev=yes
6337 else
6338 ac_cv_has_makedev=no
6340 rm -f core conftest.err conftest.$ac_objext \
6341 conftest$ac_exeext conftest.$ac_ext
6342 if test "$ac_cv_has_makedev" = "yes"; then
6344 $as_echo "#define _OSF_SOURCE 1" >>confdefs.h
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_makedev" >&5
6349 $as_echo "$ac_cv_has_makedev" >&6; }
6350 if test "$ac_cv_has_makedev" = "yes"; then
6352 $as_echo "#define HAVE_MAKEDEV 1" >>confdefs.h
6356 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
6357 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
6358 # defined, but the compiler does not support pragma redefine_extname,
6359 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
6360 # structures (such as rlimit64) without declaring them. As a
6361 # work-around, disable LFS on such configurations
6363 use_lfs=yes
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Solaris LFS bug" >&5
6365 $as_echo_n "checking Solaris LFS bug... " >&6; }
6366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6367 /* end confdefs.h. */
6369 #define _LARGEFILE_SOURCE 1
6370 #define _FILE_OFFSET_BITS 64
6371 #include <sys/resource.h>
6374 main ()
6376 struct rlimit foo;
6378 return 0;
6380 _ACEOF
6381 if ac_fn_c_try_compile "$LINENO"; then :
6382 sol_lfs_bug=no
6383 else
6384 sol_lfs_bug=yes
6386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sol_lfs_bug" >&5
6388 $as_echo "$sol_lfs_bug" >&6; }
6389 if test "$sol_lfs_bug" = "yes"; then
6390 use_lfs=no
6393 if test "$use_lfs" = "yes"; then
6394 # Two defines needed to enable largefile support on various platforms
6395 # These may affect some typedefs
6397 $as_echo "#define _LARGEFILE_SOURCE 1" >>confdefs.h
6400 $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
6404 # Add some code to confdefs.h so that the test for off_t works on SCO
6405 cat >> confdefs.h <<\EOF
6406 #if defined(SCO_DS)
6407 #undef _OFF_T
6408 #endif
6411 # Type availability checks
6412 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
6413 if test "x$ac_cv_type_mode_t" = x""yes; then :
6415 else
6417 cat >>confdefs.h <<_ACEOF
6418 #define mode_t int
6419 _ACEOF
6423 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6424 if test "x$ac_cv_type_off_t" = x""yes; then :
6426 else
6428 cat >>confdefs.h <<_ACEOF
6429 #define off_t long int
6430 _ACEOF
6434 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6435 if test "x$ac_cv_type_pid_t" = x""yes; then :
6437 else
6439 cat >>confdefs.h <<_ACEOF
6440 #define pid_t int
6441 _ACEOF
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
6446 $as_echo_n "checking return type of signal handlers... " >&6; }
6447 if test "${ac_cv_type_signal+set}" = set; then :
6448 $as_echo_n "(cached) " >&6
6449 else
6450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6451 /* end confdefs.h. */
6452 #include <sys/types.h>
6453 #include <signal.h>
6456 main ()
6458 return *(signal (0, 0)) (0) == 1;
6460 return 0;
6462 _ACEOF
6463 if ac_fn_c_try_compile "$LINENO"; then :
6464 ac_cv_type_signal=int
6465 else
6466 ac_cv_type_signal=void
6468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
6471 $as_echo "$ac_cv_type_signal" >&6; }
6473 cat >>confdefs.h <<_ACEOF
6474 #define RETSIGTYPE $ac_cv_type_signal
6475 _ACEOF
6478 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6479 if test "x$ac_cv_type_size_t" = x""yes; then :
6481 else
6483 cat >>confdefs.h <<_ACEOF
6484 #define size_t unsigned int
6485 _ACEOF
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6490 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6491 if test "${ac_cv_type_uid_t+set}" = set; then :
6492 $as_echo_n "(cached) " >&6
6493 else
6494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6495 /* end confdefs.h. */
6496 #include <sys/types.h>
6498 _ACEOF
6499 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6500 $EGREP "uid_t" >/dev/null 2>&1; then :
6501 ac_cv_type_uid_t=yes
6502 else
6503 ac_cv_type_uid_t=no
6505 rm -f conftest*
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6509 $as_echo "$ac_cv_type_uid_t" >&6; }
6510 if test $ac_cv_type_uid_t = no; then
6512 $as_echo "#define uid_t int" >>confdefs.h
6515 $as_echo "#define gid_t int" >>confdefs.h
6519 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6520 case $ac_cv_c_uint32_t in #(
6521 no|yes) ;; #(
6524 $as_echo "#define _UINT32_T 1" >>confdefs.h
6527 cat >>confdefs.h <<_ACEOF
6528 #define uint32_t $ac_cv_c_uint32_t
6529 _ACEOF
6531 esac
6533 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6534 case $ac_cv_c_uint64_t in #(
6535 no|yes) ;; #(
6538 $as_echo "#define _UINT64_T 1" >>confdefs.h
6541 cat >>confdefs.h <<_ACEOF
6542 #define uint64_t $ac_cv_c_uint64_t
6543 _ACEOF
6545 esac
6547 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6548 case $ac_cv_c_int32_t in #(
6549 no|yes) ;; #(
6552 cat >>confdefs.h <<_ACEOF
6553 #define int32_t $ac_cv_c_int32_t
6554 _ACEOF
6556 esac
6558 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6559 case $ac_cv_c_int64_t in #(
6560 no|yes) ;; #(
6563 cat >>confdefs.h <<_ACEOF
6564 #define int64_t $ac_cv_c_int64_t
6565 _ACEOF
6567 esac
6569 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
6570 if test "x$ac_cv_type_ssize_t" = x""yes; then :
6572 $as_echo "#define HAVE_SSIZE_T 1" >>confdefs.h
6577 # Sizes of various common basic types
6578 # ANSI C requires sizeof(char) == 1, so no need to check it
6579 # The cast to long int works around a bug in the HP C Compiler
6580 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6581 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6582 # This bug is HP SR number 8606223364.
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6584 $as_echo_n "checking size of int... " >&6; }
6585 if test "${ac_cv_sizeof_int+set}" = set; then :
6586 $as_echo_n "(cached) " >&6
6587 else
6588 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6590 else
6591 if test "$ac_cv_type_int" = yes; then
6592 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6593 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6594 { as_fn_set_status 77
6595 as_fn_error "cannot compute sizeof (int)
6596 See \`config.log' for more details." "$LINENO" 5; }; }
6597 else
6598 ac_cv_sizeof_int=0
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6604 $as_echo "$ac_cv_sizeof_int" >&6; }
6608 cat >>confdefs.h <<_ACEOF
6609 #define SIZEOF_INT $ac_cv_sizeof_int
6610 _ACEOF
6613 # The cast to long int works around a bug in the HP C Compiler
6614 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6615 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6616 # This bug is HP SR number 8606223364.
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6618 $as_echo_n "checking size of long... " >&6; }
6619 if test "${ac_cv_sizeof_long+set}" = set; then :
6620 $as_echo_n "(cached) " >&6
6621 else
6622 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6624 else
6625 if test "$ac_cv_type_long" = yes; then
6626 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6627 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6628 { as_fn_set_status 77
6629 as_fn_error "cannot compute sizeof (long)
6630 See \`config.log' for more details." "$LINENO" 5; }; }
6631 else
6632 ac_cv_sizeof_long=0
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6638 $as_echo "$ac_cv_sizeof_long" >&6; }
6642 cat >>confdefs.h <<_ACEOF
6643 #define SIZEOF_LONG $ac_cv_sizeof_long
6644 _ACEOF
6647 # The cast to long int works around a bug in the HP C Compiler
6648 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6649 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6650 # This bug is HP SR number 8606223364.
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
6652 $as_echo_n "checking size of void *... " >&6; }
6653 if test "${ac_cv_sizeof_void_p+set}" = set; then :
6654 $as_echo_n "(cached) " >&6
6655 else
6656 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
6658 else
6659 if test "$ac_cv_type_void_p" = yes; then
6660 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6661 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6662 { as_fn_set_status 77
6663 as_fn_error "cannot compute sizeof (void *)
6664 See \`config.log' for more details." "$LINENO" 5; }; }
6665 else
6666 ac_cv_sizeof_void_p=0
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
6672 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6676 cat >>confdefs.h <<_ACEOF
6677 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6678 _ACEOF
6681 # The cast to long int works around a bug in the HP C Compiler
6682 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6683 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6684 # This bug is HP SR number 8606223364.
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6686 $as_echo_n "checking size of short... " >&6; }
6687 if test "${ac_cv_sizeof_short+set}" = set; then :
6688 $as_echo_n "(cached) " >&6
6689 else
6690 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
6692 else
6693 if test "$ac_cv_type_short" = yes; then
6694 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6695 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6696 { as_fn_set_status 77
6697 as_fn_error "cannot compute sizeof (short)
6698 See \`config.log' for more details." "$LINENO" 5; }; }
6699 else
6700 ac_cv_sizeof_short=0
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6706 $as_echo "$ac_cv_sizeof_short" >&6; }
6710 cat >>confdefs.h <<_ACEOF
6711 #define SIZEOF_SHORT $ac_cv_sizeof_short
6712 _ACEOF
6715 # The cast to long int works around a bug in the HP C Compiler
6716 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6717 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6718 # This bug is HP SR number 8606223364.
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
6720 $as_echo_n "checking size of float... " >&6; }
6721 if test "${ac_cv_sizeof_float+set}" = set; then :
6722 $as_echo_n "(cached) " >&6
6723 else
6724 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
6726 else
6727 if test "$ac_cv_type_float" = yes; then
6728 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6729 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6730 { as_fn_set_status 77
6731 as_fn_error "cannot compute sizeof (float)
6732 See \`config.log' for more details." "$LINENO" 5; }; }
6733 else
6734 ac_cv_sizeof_float=0
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
6740 $as_echo "$ac_cv_sizeof_float" >&6; }
6744 cat >>confdefs.h <<_ACEOF
6745 #define SIZEOF_FLOAT $ac_cv_sizeof_float
6746 _ACEOF
6749 # The cast to long int works around a bug in the HP C Compiler
6750 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6751 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6752 # This bug is HP SR number 8606223364.
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
6754 $as_echo_n "checking size of double... " >&6; }
6755 if test "${ac_cv_sizeof_double+set}" = set; then :
6756 $as_echo_n "(cached) " >&6
6757 else
6758 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
6760 else
6761 if test "$ac_cv_type_double" = yes; then
6762 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6763 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6764 { as_fn_set_status 77
6765 as_fn_error "cannot compute sizeof (double)
6766 See \`config.log' for more details." "$LINENO" 5; }; }
6767 else
6768 ac_cv_sizeof_double=0
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
6774 $as_echo "$ac_cv_sizeof_double" >&6; }
6778 cat >>confdefs.h <<_ACEOF
6779 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
6780 _ACEOF
6783 # The cast to long int works around a bug in the HP C Compiler
6784 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6785 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6786 # This bug is HP SR number 8606223364.
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of fpos_t" >&5
6788 $as_echo_n "checking size of fpos_t... " >&6; }
6789 if test "${ac_cv_sizeof_fpos_t+set}" = set; then :
6790 $as_echo_n "(cached) " >&6
6791 else
6792 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (fpos_t))" "ac_cv_sizeof_fpos_t" "$ac_includes_default"; then :
6794 else
6795 if test "$ac_cv_type_fpos_t" = yes; then
6796 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6797 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6798 { as_fn_set_status 77
6799 as_fn_error "cannot compute sizeof (fpos_t)
6800 See \`config.log' for more details." "$LINENO" 5; }; }
6801 else
6802 ac_cv_sizeof_fpos_t=0
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_fpos_t" >&5
6808 $as_echo "$ac_cv_sizeof_fpos_t" >&6; }
6812 cat >>confdefs.h <<_ACEOF
6813 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
6814 _ACEOF
6817 # The cast to long int works around a bug in the HP C Compiler
6818 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6819 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6820 # This bug is HP SR number 8606223364.
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
6822 $as_echo_n "checking size of size_t... " >&6; }
6823 if test "${ac_cv_sizeof_size_t+set}" = set; then :
6824 $as_echo_n "(cached) " >&6
6825 else
6826 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
6828 else
6829 if test "$ac_cv_type_size_t" = yes; then
6830 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6831 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6832 { as_fn_set_status 77
6833 as_fn_error "cannot compute sizeof (size_t)
6834 See \`config.log' for more details." "$LINENO" 5; }; }
6835 else
6836 ac_cv_sizeof_size_t=0
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
6842 $as_echo "$ac_cv_sizeof_size_t" >&6; }
6846 cat >>confdefs.h <<_ACEOF
6847 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
6848 _ACEOF
6851 # The cast to long int works around a bug in the HP C Compiler
6852 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6853 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6854 # This bug is HP SR number 8606223364.
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pid_t" >&5
6856 $as_echo_n "checking size of pid_t... " >&6; }
6857 if test "${ac_cv_sizeof_pid_t+set}" = set; then :
6858 $as_echo_n "(cached) " >&6
6859 else
6860 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pid_t))" "ac_cv_sizeof_pid_t" "$ac_includes_default"; then :
6862 else
6863 if test "$ac_cv_type_pid_t" = yes; then
6864 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6865 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6866 { as_fn_set_status 77
6867 as_fn_error "cannot compute sizeof (pid_t)
6868 See \`config.log' for more details." "$LINENO" 5; }; }
6869 else
6870 ac_cv_sizeof_pid_t=0
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pid_t" >&5
6876 $as_echo "$ac_cv_sizeof_pid_t" >&6; }
6880 cat >>confdefs.h <<_ACEOF
6881 #define SIZEOF_PID_T $ac_cv_sizeof_pid_t
6882 _ACEOF
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support" >&5
6887 $as_echo_n "checking for long long support... " >&6; }
6888 have_long_long=no
6889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6890 /* end confdefs.h. */
6893 main ()
6895 long long x; x = (long long)0;
6897 return 0;
6899 _ACEOF
6900 if ac_fn_c_try_compile "$LINENO"; then :
6903 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
6905 have_long_long=yes
6908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_long_long" >&5
6910 $as_echo "$have_long_long" >&6; }
6911 if test "$have_long_long" = yes ; then
6912 # The cast to long int works around a bug in the HP C Compiler
6913 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6914 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6915 # This bug is HP SR number 8606223364.
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6917 $as_echo_n "checking size of long long... " >&6; }
6918 if test "${ac_cv_sizeof_long_long+set}" = set; then :
6919 $as_echo_n "(cached) " >&6
6920 else
6921 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6923 else
6924 if test "$ac_cv_type_long_long" = yes; then
6925 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6926 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6927 { as_fn_set_status 77
6928 as_fn_error "cannot compute sizeof (long long)
6929 See \`config.log' for more details." "$LINENO" 5; }; }
6930 else
6931 ac_cv_sizeof_long_long=0
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6937 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6941 cat >>confdefs.h <<_ACEOF
6942 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6943 _ACEOF
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support" >&5
6949 $as_echo_n "checking for long double support... " >&6; }
6950 have_long_double=no
6951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6952 /* end confdefs.h. */
6955 main ()
6957 long double x; x = (long double)0;
6959 return 0;
6961 _ACEOF
6962 if ac_fn_c_try_compile "$LINENO"; then :
6965 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
6967 have_long_double=yes
6970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_long_double" >&5
6972 $as_echo "$have_long_double" >&6; }
6973 if test "$have_long_double" = yes ; then
6974 # The cast to long int works around a bug in the HP C Compiler
6975 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6976 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6977 # This bug is HP SR number 8606223364.
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
6979 $as_echo_n "checking size of long double... " >&6; }
6980 if test "${ac_cv_sizeof_long_double+set}" = set; then :
6981 $as_echo_n "(cached) " >&6
6982 else
6983 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
6985 else
6986 if test "$ac_cv_type_long_double" = yes; then
6987 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6988 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6989 { as_fn_set_status 77
6990 as_fn_error "cannot compute sizeof (long double)
6991 See \`config.log' for more details." "$LINENO" 5; }; }
6992 else
6993 ac_cv_sizeof_long_double=0
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
6999 $as_echo "$ac_cv_sizeof_long_double" >&6; }
7003 cat >>confdefs.h <<_ACEOF
7004 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
7005 _ACEOF
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Bool support" >&5
7012 $as_echo_n "checking for _Bool support... " >&6; }
7013 have_c99_bool=no
7014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7015 /* end confdefs.h. */
7018 main ()
7020 _Bool x; x = (_Bool)0;
7022 return 0;
7024 _ACEOF
7025 if ac_fn_c_try_compile "$LINENO"; then :
7028 $as_echo "#define HAVE_C99_BOOL 1" >>confdefs.h
7030 have_c99_bool=yes
7033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_c99_bool" >&5
7035 $as_echo "$have_c99_bool" >&6; }
7036 if test "$have_c99_bool" = yes ; then
7037 # The cast to long int works around a bug in the HP C Compiler
7038 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7039 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7040 # This bug is HP SR number 8606223364.
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of _Bool" >&5
7042 $as_echo_n "checking size of _Bool... " >&6; }
7043 if test "${ac_cv_sizeof__Bool+set}" = set; then :
7044 $as_echo_n "(cached) " >&6
7045 else
7046 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (_Bool))" "ac_cv_sizeof__Bool" "$ac_includes_default"; then :
7048 else
7049 if test "$ac_cv_type__Bool" = yes; then
7050 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7051 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7052 { as_fn_set_status 77
7053 as_fn_error "cannot compute sizeof (_Bool)
7054 See \`config.log' for more details." "$LINENO" 5; }; }
7055 else
7056 ac_cv_sizeof__Bool=0
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof__Bool" >&5
7062 $as_echo "$ac_cv_sizeof__Bool" >&6; }
7066 cat >>confdefs.h <<_ACEOF
7067 #define SIZEOF__BOOL $ac_cv_sizeof__Bool
7068 _ACEOF
7073 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#ifdef HAVE_STDINT_H
7074 #include <stdint.h>
7075 #endif
7076 #ifdef HAVE_INTTYPES_H
7077 #include <inttypes.h>
7078 #endif
7080 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
7082 cat >>confdefs.h <<_ACEOF
7083 #define HAVE_UINTPTR_T 1
7084 _ACEOF
7086 # The cast to long int works around a bug in the HP C Compiler
7087 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7088 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7089 # This bug is HP SR number 8606223364.
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uintptr_t" >&5
7091 $as_echo_n "checking size of uintptr_t... " >&6; }
7092 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then :
7093 $as_echo_n "(cached) " >&6
7094 else
7095 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uintptr_t))" "ac_cv_sizeof_uintptr_t" "$ac_includes_default"; then :
7097 else
7098 if test "$ac_cv_type_uintptr_t" = yes; then
7099 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7100 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7101 { as_fn_set_status 77
7102 as_fn_error "cannot compute sizeof (uintptr_t)
7103 See \`config.log' for more details." "$LINENO" 5; }; }
7104 else
7105 ac_cv_sizeof_uintptr_t=0
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uintptr_t" >&5
7111 $as_echo "$ac_cv_sizeof_uintptr_t" >&6; }
7115 cat >>confdefs.h <<_ACEOF
7116 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
7117 _ACEOF
7124 # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
7126 $as_echo_n "checking size of off_t... " >&6; }
7127 if test "${ac_cv_sizeof_off_t+set}" = set; then :
7128 $as_echo_n "(cached) " >&6
7129 else
7130 if test "$cross_compiling" = yes; then :
7131 ac_cv_sizeof_off_t=4
7132 else
7133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7134 /* end confdefs.h. */
7135 #include <stdio.h>
7136 #include <sys/types.h>
7137 main()
7139 FILE *f=fopen("conftestval", "w");
7140 if (!f) exit(1);
7141 fprintf(f, "%d\n", sizeof(off_t));
7142 exit(0);
7144 _ACEOF
7145 if ac_fn_c_try_run "$LINENO"; then :
7146 ac_cv_sizeof_off_t=`cat conftestval`
7147 else
7148 ac_cv_sizeof_off_t=0
7150 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7151 conftest.$ac_objext conftest.beam conftest.$ac_ext
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
7158 $as_echo "$ac_cv_sizeof_off_t" >&6; }
7160 cat >>confdefs.h <<_ACEOF
7161 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
7162 _ACEOF
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable large file support" >&5
7166 $as_echo_n "checking whether to enable large file support... " >&6; }
7167 if test "$have_long_long" = yes
7168 then
7169 if test "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
7170 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
7172 $as_echo "#define HAVE_LARGEFILE_SUPPORT 1" >>confdefs.h
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7175 $as_echo "yes" >&6; }
7176 else
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7178 $as_echo "no" >&6; }
7180 else
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7182 $as_echo "no" >&6; }
7185 # AC_CHECK_SIZEOF() doesn't include <time.h>.
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
7187 $as_echo_n "checking size of time_t... " >&6; }
7188 if test "${ac_cv_sizeof_time_t+set}" = set; then :
7189 $as_echo_n "(cached) " >&6
7190 else
7191 if test "$cross_compiling" = yes; then :
7192 ac_cv_sizeof_time_t=4
7193 else
7194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7195 /* end confdefs.h. */
7196 #include <stdio.h>
7197 #include <time.h>
7198 main()
7200 FILE *f=fopen("conftestval", "w");
7201 if (!f) exit(1);
7202 fprintf(f, "%d\n", sizeof(time_t));
7203 exit(0);
7205 _ACEOF
7206 if ac_fn_c_try_run "$LINENO"; then :
7207 ac_cv_sizeof_time_t=`cat conftestval`
7208 else
7209 ac_cv_sizeof_time_t=0
7211 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7212 conftest.$ac_objext conftest.beam conftest.$ac_ext
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
7219 $as_echo "$ac_cv_sizeof_time_t" >&6; }
7221 cat >>confdefs.h <<_ACEOF
7222 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
7223 _ACEOF
7227 # if have pthread_t then define SIZEOF_PTHREAD_T
7228 ac_save_cc="$CC"
7229 if test "$ac_cv_kpthread" = "yes"
7230 then CC="$CC -Kpthread"
7231 elif test "$ac_cv_kthread" = "yes"
7232 then CC="$CC -Kthread"
7233 elif test "$ac_cv_pthread" = "yes"
7234 then CC="$CC -pthread"
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_t" >&5
7237 $as_echo_n "checking for pthread_t... " >&6; }
7238 have_pthread_t=no
7239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7240 /* end confdefs.h. */
7241 #include <pthread.h>
7243 main ()
7245 pthread_t x; x = *(pthread_t*)0;
7247 return 0;
7249 _ACEOF
7250 if ac_fn_c_try_compile "$LINENO"; then :
7251 have_pthread_t=yes
7253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_t" >&5
7255 $as_echo "$have_pthread_t" >&6; }
7256 if test "$have_pthread_t" = yes ; then
7257 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
7259 $as_echo_n "checking size of pthread_t... " >&6; }
7260 if test "${ac_cv_sizeof_pthread_t+set}" = set; then :
7261 $as_echo_n "(cached) " >&6
7262 else
7263 if test "$cross_compiling" = yes; then :
7264 ac_cv_sizeof_pthread_t=4
7265 else
7266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7267 /* end confdefs.h. */
7268 #include <stdio.h>
7269 #include <pthread.h>
7270 main()
7272 FILE *f=fopen("conftestval", "w");
7273 if (!f) exit(1);
7274 fprintf(f, "%d\n", sizeof(pthread_t));
7275 exit(0);
7277 _ACEOF
7278 if ac_fn_c_try_run "$LINENO"; then :
7279 ac_cv_sizeof_pthread_t=`cat conftestval`
7280 else
7281 ac_cv_sizeof_pthread_t=0
7283 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7284 conftest.$ac_objext conftest.beam conftest.$ac_ext
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
7291 $as_echo "$ac_cv_sizeof_pthread_t" >&6; }
7293 cat >>confdefs.h <<_ACEOF
7294 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
7295 _ACEOF
7298 CC="$ac_save_cc"
7303 case $ac_sys_system/$ac_sys_release in
7304 Darwin/[01567]\..*)
7305 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
7307 Darwin/*)
7308 OTHER_LIBTOOL_OPT=""
7310 esac
7313 ARCH_RUN_32BIT=""
7315 case $ac_sys_system/$ac_sys_release in
7316 Darwin/[01567]\..*)
7317 LIBTOOL_CRUFT="-framework System -lcc_dynamic"
7318 if test "${enable_universalsdk}"; then
7320 else
7321 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `/usr/bin/arch`"
7323 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
7324 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
7325 Darwin/*)
7326 gcc_version=`gcc -dumpversion`
7327 if test ${gcc_version} '<' 4.0
7328 then
7329 LIBTOOL_CRUFT="-lcc_dynamic"
7330 else
7331 LIBTOOL_CRUFT=""
7333 if test "$cross_compiling" = yes; then :
7334 ac_osx_32bit=yes
7335 else
7336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7337 /* end confdefs.h. */
7339 #include <unistd.h>
7340 int main(int argc, char*argv[])
7342 if (sizeof(long) == 4) {
7343 return 0;
7344 } else {
7345 return 1;
7349 _ACEOF
7350 if ac_fn_c_try_run "$LINENO"; then :
7351 ac_osx_32bit=yes
7352 else
7353 ac_osx_32bit=no
7355 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7356 conftest.$ac_objext conftest.beam conftest.$ac_ext
7360 if test "${ac_osx_32bit}" = "yes"; then
7361 case `/usr/bin/arch` in
7362 i386)
7363 MACOSX_DEFAULT_ARCH="i386"
7365 ppc)
7366 MACOSX_DEFAULT_ARCH="ppc"
7369 as_fn_error "Unexpected output of 'arch' on OSX" "$LINENO" 5
7371 esac
7372 else
7373 case `/usr/bin/arch` in
7374 i386)
7375 MACOSX_DEFAULT_ARCH="x86_64"
7377 ppc)
7378 MACOSX_DEFAULT_ARCH="ppc64"
7381 as_fn_error "Unexpected output of 'arch' on OSX" "$LINENO" 5
7383 esac
7385 #ARCH_RUN_32BIT="true"
7388 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}"
7389 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
7390 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
7391 esac
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-framework" >&5
7394 $as_echo_n "checking for --enable-framework... " >&6; }
7395 if test "$enable_framework"
7396 then
7397 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
7398 # -F. is needed to allow linking to the framework while
7399 # in the build location.
7401 $as_echo "#define WITH_NEXT_FRAMEWORK 1" >>confdefs.h
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7404 $as_echo "yes" >&6; }
7405 if test $enable_shared = "yes"
7406 then
7407 as_fn_error "Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead" "$LINENO" 5
7409 else
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7411 $as_echo "no" >&6; }
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dyld" >&5
7415 $as_echo_n "checking for dyld... " >&6; }
7416 case $ac_sys_system/$ac_sys_release in
7417 Darwin/*)
7419 $as_echo "#define WITH_DYLD 1" >>confdefs.h
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: always on for Darwin" >&5
7422 $as_echo "always on for Darwin" >&6; }
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7426 $as_echo "no" >&6; }
7428 esac
7430 # Set info about shared libraries.
7436 # SO is the extension of shared libraries `(including the dot!)
7437 # -- usually .so, .sl on HP-UX, .dll on Cygwin
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SO" >&5
7439 $as_echo_n "checking SO... " >&6; }
7440 if test -z "$SO"
7441 then
7442 case $ac_sys_system in
7443 hp*|HP*)
7444 case `uname -m` in
7445 ia64) SO=.so;;
7446 *) SO=.sl;;
7447 esac
7449 CYGWIN*) SO=.dll;;
7450 *) SO=.so;;
7451 esac
7452 else
7453 # this might also be a termcap variable, see #610332
7454 echo
7455 echo '====================================================================='
7456 echo '+ +'
7457 echo '+ WARNING: You have set SO in your environment. +'
7458 echo '+ Do you really mean to change the extension for shared libraries? +'
7459 echo '+ Continuing in 10 seconds to let you to ponder. +'
7460 echo '+ +'
7461 echo '====================================================================='
7462 sleep 10
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SO" >&5
7465 $as_echo "$SO" >&6; }
7468 cat >>confdefs.h <<_ACEOF
7469 #define SHLIB_EXT "$SO"
7470 _ACEOF
7472 # LDSHARED is the ld *command* used to create shared library
7473 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
7474 # (Shared libraries in this instance are shared modules to be loaded into
7475 # Python, as opposed to building Python itself as a shared library.)
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDSHARED" >&5
7477 $as_echo_n "checking LDSHARED... " >&6; }
7478 if test -z "$LDSHARED"
7479 then
7480 case $ac_sys_system/$ac_sys_release in
7481 AIX*)
7482 BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp -L\$(srcdir)"
7483 LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
7485 IRIX/5*) LDSHARED="ld -shared";;
7486 IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
7487 SunOS/5*)
7488 if test "$GCC" = "yes"
7489 then LDSHARED='$(CC) -shared'
7490 else LDSHARED='$(CC) -G';
7491 fi ;;
7492 hp*|HP*)
7493 if test "$GCC" = "yes"
7494 then LDSHARED='$(CC) -shared'
7495 else LDSHARED='ld -b';
7496 fi ;;
7497 OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
7498 Darwin/1.3*)
7499 LDSHARED='$(CC) $(LDFLAGS) -bundle'
7500 if test "$enable_framework" ; then
7501 # Link against the framework. All externals should be defined.
7502 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
7503 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
7504 else
7505 # No framework. Ignore undefined symbols, assuming they come from Python
7506 LDSHARED="$LDSHARED -undefined suppress"
7507 fi ;;
7508 Darwin/1.4*|Darwin/5.*|Darwin/6.*)
7509 LDSHARED='$(CC) $(LDFLAGS) -bundle'
7510 if test "$enable_framework" ; then
7511 # Link against the framework. All externals should be defined.
7512 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
7513 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
7514 else
7515 # No framework, use the Python app as bundle-loader
7516 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
7517 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
7518 fi ;;
7519 Darwin/*)
7520 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
7521 # This allows an extension to be used in any Python
7523 if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2
7524 then
7525 if test "${enable_universalsdk}"; then
7526 LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
7528 LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
7529 BLDSHARED="$LDSHARED"
7530 else
7531 LDSHARED='$(CC) $(LDFLAGS) -bundle'
7532 if test "$enable_framework" ; then
7533 # Link against the framework. All externals should be defined.
7534 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
7535 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
7536 else
7537 # No framework, use the Python app as bundle-loader
7538 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
7539 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
7543 Linux*|GNU*|QNX*) LDSHARED='$(CC) -shared';;
7544 BSD/OS*/4*) LDSHARED="gcc -shared";;
7545 FreeBSD*)
7546 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
7547 then
7548 LDSHARED='$(CC) -shared ${LDFLAGS}'
7549 else
7550 LDSHARED="ld -Bshareable ${LDFLAGS}"
7551 fi;;
7552 OpenBSD*)
7553 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
7554 then
7555 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
7556 else
7557 case `uname -r` in
7558 [01].* | 2.[0-7] | 2.[0-7].*)
7559 LDSHARED="ld -Bshareable ${LDFLAGS}"
7562 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
7564 esac
7565 fi;;
7566 NetBSD*|DragonFly*) LDSHARED="cc -shared ${LDFLAGS}";;
7567 OpenUNIX*|UnixWare*)
7568 if test "$GCC" = "yes"
7569 then LDSHARED='$(CC) -shared'
7570 else LDSHARED='$(CC) -G'
7571 fi;;
7572 SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';;
7573 CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";;
7574 atheos*) LDSHARED="gcc -shared";;
7575 *) LDSHARED="ld";;
7576 esac
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDSHARED" >&5
7579 $as_echo "$LDSHARED" >&6; }
7580 BLDSHARED=${BLDSHARED-$LDSHARED}
7581 # CCSHARED are the C *flags* used to create objects to go into a shared
7582 # library (module) -- this is only needed for a few systems
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CCSHARED" >&5
7584 $as_echo_n "checking CCSHARED... " >&6; }
7585 if test -z "$CCSHARED"
7586 then
7587 case $ac_sys_system/$ac_sys_release in
7588 SunOS*) if test "$GCC" = yes;
7589 then CCSHARED="-fPIC";
7590 elif test `uname -p` = sparc;
7591 then CCSHARED="-xcode=pic32";
7592 else CCSHARED="-Kpic";
7593 fi;;
7594 hp*|HP*) if test "$GCC" = yes;
7595 then CCSHARED="-fPIC";
7596 else CCSHARED="+z";
7597 fi;;
7598 Linux*|GNU*) CCSHARED="-fPIC";;
7599 BSD/OS*/4*) CCSHARED="-fpic";;
7600 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";;
7601 OpenUNIX*|UnixWare*)
7602 if test "$GCC" = "yes"
7603 then CCSHARED="-fPIC"
7604 else CCSHARED="-KPIC"
7605 fi;;
7606 SCO_SV*)
7607 if test "$GCC" = "yes"
7608 then CCSHARED="-fPIC"
7609 else CCSHARED="-Kpic -belf"
7610 fi;;
7611 IRIX*/6*) case $CC in
7612 *gcc*) CCSHARED="-shared";;
7613 *) CCSHARED="";;
7614 esac;;
7615 atheos*) CCSHARED="-fPIC";;
7616 esac
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCSHARED" >&5
7619 $as_echo "$CCSHARED" >&6; }
7620 # LINKFORSHARED are the flags passed to the $(CC) command that links
7621 # the python executable -- this is only needed for a few systems
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKFORSHARED" >&5
7623 $as_echo_n "checking LINKFORSHARED... " >&6; }
7624 if test -z "$LINKFORSHARED"
7625 then
7626 case $ac_sys_system/$ac_sys_release in
7627 AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';;
7628 hp*|HP*)
7629 LINKFORSHARED="-Wl,-E -Wl,+s";;
7630 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
7631 BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
7632 Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
7633 # -u libsys_s pulls in all symbols in libsys
7634 Darwin/*)
7635 LINKFORSHARED="$extra_undefs -framework CoreFoundation"
7636 if test "$enable_framework"
7637 then
7638 LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
7640 LINKFORSHARED="$LINKFORSHARED";;
7641 OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
7642 SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
7643 ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
7644 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*)
7645 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
7646 then
7647 LINKFORSHARED="-Wl,--export-dynamic"
7648 fi;;
7649 SunOS/5*) case $CC in
7650 *gcc*)
7651 if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
7652 then
7653 LINKFORSHARED="-Xlinker --export-dynamic"
7654 fi;;
7655 esac;;
7656 CYGWIN*)
7657 if test $enable_shared = "no"
7658 then
7659 LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)'
7660 fi;;
7661 QNX*)
7662 # -Wl,-E causes the symbols to be added to the dynamic
7663 # symbol table so that they can be found when a module
7664 # is loaded. -N 2048K causes the stack size to be set
7665 # to 2048 kilobytes so that the stack doesn't overflow
7666 # when running test_compile.py.
7667 LINKFORSHARED='-Wl,-E -N 2048K';;
7668 esac
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKFORSHARED" >&5
7671 $as_echo "$LINKFORSHARED" >&6; }
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGSFORSHARED" >&5
7676 $as_echo_n "checking CFLAGSFORSHARED... " >&6; }
7677 if test ! "$LIBRARY" = "$LDLIBRARY"
7678 then
7679 case $ac_sys_system in
7680 CYGWIN*)
7681 # Cygwin needs CCSHARED when building extension DLLs
7682 # but not when building the interpreter DLL.
7683 CFLAGSFORSHARED='';;
7685 CFLAGSFORSHARED='$(CCSHARED)'
7686 esac
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLAGSFORSHARED" >&5
7689 $as_echo "$CFLAGSFORSHARED" >&6; }
7691 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
7692 # library (with --enable-shared).
7693 # For platforms on which shared libraries are not allowed to have unresolved
7694 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
7695 # if it is not required, since it creates a dependency of the shared library
7696 # to LIBS. This, in turn, means that applications linking the shared libpython
7697 # don't need to link LIBS explicitly. The default should be only changed
7698 # on systems where this approach causes problems.
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SHLIBS" >&5
7701 $as_echo_n "checking SHLIBS... " >&6; }
7702 case "$ac_sys_system" in
7704 SHLIBS='$(LIBS)';;
7705 esac
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIBS" >&5
7707 $as_echo "$SHLIBS" >&6; }
7710 # checks for libraries
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
7712 $as_echo_n "checking for dlopen in -ldl... " >&6; }
7713 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
7714 $as_echo_n "(cached) " >&6
7715 else
7716 ac_check_lib_save_LIBS=$LIBS
7717 LIBS="-ldl $LIBS"
7718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7719 /* end confdefs.h. */
7721 /* Override any GCC internal prototype to avoid an error.
7722 Use char because int might match the return type of a GCC
7723 builtin and then its argument prototype would still apply. */
7724 #ifdef __cplusplus
7725 extern "C"
7726 #endif
7727 char dlopen ();
7729 main ()
7731 return dlopen ();
7733 return 0;
7735 _ACEOF
7736 if ac_fn_c_try_link "$LINENO"; then :
7737 ac_cv_lib_dl_dlopen=yes
7738 else
7739 ac_cv_lib_dl_dlopen=no
7741 rm -f core conftest.err conftest.$ac_objext \
7742 conftest$ac_exeext conftest.$ac_ext
7743 LIBS=$ac_check_lib_save_LIBS
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
7746 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
7747 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
7748 cat >>confdefs.h <<_ACEOF
7749 #define HAVE_LIBDL 1
7750 _ACEOF
7752 LIBS="-ldl $LIBS"
7755 # Dynamic linking for SunOS/Solaris and SYSV
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
7757 $as_echo_n "checking for shl_load in -ldld... " >&6; }
7758 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
7759 $as_echo_n "(cached) " >&6
7760 else
7761 ac_check_lib_save_LIBS=$LIBS
7762 LIBS="-ldld $LIBS"
7763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7764 /* end confdefs.h. */
7766 /* Override any GCC internal prototype to avoid an error.
7767 Use char because int might match the return type of a GCC
7768 builtin and then its argument prototype would still apply. */
7769 #ifdef __cplusplus
7770 extern "C"
7771 #endif
7772 char shl_load ();
7774 main ()
7776 return shl_load ();
7778 return 0;
7780 _ACEOF
7781 if ac_fn_c_try_link "$LINENO"; then :
7782 ac_cv_lib_dld_shl_load=yes
7783 else
7784 ac_cv_lib_dld_shl_load=no
7786 rm -f core conftest.err conftest.$ac_objext \
7787 conftest$ac_exeext conftest.$ac_ext
7788 LIBS=$ac_check_lib_save_LIBS
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
7791 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
7792 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
7793 cat >>confdefs.h <<_ACEOF
7794 #define HAVE_LIBDLD 1
7795 _ACEOF
7797 LIBS="-ldld $LIBS"
7800 # Dynamic linking for HP-UX
7802 # only check for sem_init if thread support is requested
7803 if test "$with_threads" = "yes" -o -z "$with_threads"; then
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
7805 $as_echo_n "checking for library containing sem_init... " >&6; }
7806 if test "${ac_cv_search_sem_init+set}" = set; then :
7807 $as_echo_n "(cached) " >&6
7808 else
7809 ac_func_search_save_LIBS=$LIBS
7810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7811 /* end confdefs.h. */
7813 /* Override any GCC internal prototype to avoid an error.
7814 Use char because int might match the return type of a GCC
7815 builtin and then its argument prototype would still apply. */
7816 #ifdef __cplusplus
7817 extern "C"
7818 #endif
7819 char sem_init ();
7821 main ()
7823 return sem_init ();
7825 return 0;
7827 _ACEOF
7828 for ac_lib in '' pthread rt posix4; do
7829 if test -z "$ac_lib"; then
7830 ac_res="none required"
7831 else
7832 ac_res=-l$ac_lib
7833 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7835 if ac_fn_c_try_link "$LINENO"; then :
7836 ac_cv_search_sem_init=$ac_res
7838 rm -f core conftest.err conftest.$ac_objext \
7839 conftest$ac_exeext
7840 if test "${ac_cv_search_sem_init+set}" = set; then :
7841 break
7843 done
7844 if test "${ac_cv_search_sem_init+set}" = set; then :
7846 else
7847 ac_cv_search_sem_init=no
7849 rm conftest.$ac_ext
7850 LIBS=$ac_func_search_save_LIBS
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5
7853 $as_echo "$ac_cv_search_sem_init" >&6; }
7854 ac_res=$ac_cv_search_sem_init
7855 if test "$ac_res" != no; then :
7856 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7859 # 'Real Time' functions on Solaris
7860 # posix4 on Solaris 2.6
7861 # pthread (first!) on Linux
7864 # check if we need libintl for locale functions
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for textdomain in -lintl" >&5
7866 $as_echo_n "checking for textdomain in -lintl... " >&6; }
7867 if test "${ac_cv_lib_intl_textdomain+set}" = set; then :
7868 $as_echo_n "(cached) " >&6
7869 else
7870 ac_check_lib_save_LIBS=$LIBS
7871 LIBS="-lintl $LIBS"
7872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7873 /* end confdefs.h. */
7875 /* Override any GCC internal prototype to avoid an error.
7876 Use char because int might match the return type of a GCC
7877 builtin and then its argument prototype would still apply. */
7878 #ifdef __cplusplus
7879 extern "C"
7880 #endif
7881 char textdomain ();
7883 main ()
7885 return textdomain ();
7887 return 0;
7889 _ACEOF
7890 if ac_fn_c_try_link "$LINENO"; then :
7891 ac_cv_lib_intl_textdomain=yes
7892 else
7893 ac_cv_lib_intl_textdomain=no
7895 rm -f core conftest.err conftest.$ac_objext \
7896 conftest$ac_exeext conftest.$ac_ext
7897 LIBS=$ac_check_lib_save_LIBS
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_textdomain" >&5
7900 $as_echo "$ac_cv_lib_intl_textdomain" >&6; }
7901 if test "x$ac_cv_lib_intl_textdomain" = x""yes; then :
7903 $as_echo "#define WITH_LIBINTL 1" >>confdefs.h
7905 LIBS="-lintl $LIBS"
7909 # checks for system dependent C++ extensions support
7910 case "$ac_sys_system" in
7911 AIX*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for genuine AIX C++ extensions support" >&5
7912 $as_echo_n "checking for genuine AIX C++ extensions support... " >&6; }
7913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7914 /* end confdefs.h. */
7915 #include "/usr/lpp/xlC/include/load.h"
7917 main ()
7919 loadAndInit("", 0, "")
7921 return 0;
7923 _ACEOF
7924 if ac_fn_c_try_link "$LINENO"; then :
7926 $as_echo "#define AIX_GENUINE_CPLUSPLUS 1" >>confdefs.h
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7929 $as_echo "yes" >&6; }
7930 else
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7932 $as_echo "no" >&6; }
7934 rm -f core conftest.err conftest.$ac_objext \
7935 conftest$ac_exeext conftest.$ac_ext;;
7936 *) ;;
7937 esac
7939 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_open in -lnsl" >&5
7941 $as_echo_n "checking for t_open in -lnsl... " >&6; }
7942 if test "${ac_cv_lib_nsl_t_open+set}" = set; then :
7943 $as_echo_n "(cached) " >&6
7944 else
7945 ac_check_lib_save_LIBS=$LIBS
7946 LIBS="-lnsl $LIBS"
7947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7948 /* end confdefs.h. */
7950 /* Override any GCC internal prototype to avoid an error.
7951 Use char because int might match the return type of a GCC
7952 builtin and then its argument prototype would still apply. */
7953 #ifdef __cplusplus
7954 extern "C"
7955 #endif
7956 char t_open ();
7958 main ()
7960 return t_open ();
7962 return 0;
7964 _ACEOF
7965 if ac_fn_c_try_link "$LINENO"; then :
7966 ac_cv_lib_nsl_t_open=yes
7967 else
7968 ac_cv_lib_nsl_t_open=no
7970 rm -f core conftest.err conftest.$ac_objext \
7971 conftest$ac_exeext conftest.$ac_ext
7972 LIBS=$ac_check_lib_save_LIBS
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_t_open" >&5
7975 $as_echo "$ac_cv_lib_nsl_t_open" >&6; }
7976 if test "x$ac_cv_lib_nsl_t_open" = x""yes; then :
7977 LIBS="-lnsl $LIBS"
7979 # SVR4
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
7981 $as_echo_n "checking for socket in -lsocket... " >&6; }
7982 if test "${ac_cv_lib_socket_socket+set}" = set; then :
7983 $as_echo_n "(cached) " >&6
7984 else
7985 ac_check_lib_save_LIBS=$LIBS
7986 LIBS="-lsocket $LIBS $LIBS"
7987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7988 /* end confdefs.h. */
7990 /* Override any GCC internal prototype to avoid an error.
7991 Use char because int might match the return type of a GCC
7992 builtin and then its argument prototype would still apply. */
7993 #ifdef __cplusplus
7994 extern "C"
7995 #endif
7996 char socket ();
7998 main ()
8000 return socket ();
8002 return 0;
8004 _ACEOF
8005 if ac_fn_c_try_link "$LINENO"; then :
8006 ac_cv_lib_socket_socket=yes
8007 else
8008 ac_cv_lib_socket_socket=no
8010 rm -f core conftest.err conftest.$ac_objext \
8011 conftest$ac_exeext conftest.$ac_ext
8012 LIBS=$ac_check_lib_save_LIBS
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
8015 $as_echo "$ac_cv_lib_socket_socket" >&6; }
8016 if test "x$ac_cv_lib_socket_socket" = x""yes; then :
8017 LIBS="-lsocket $LIBS"
8019 # SVR4 sockets
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libs" >&5
8022 $as_echo_n "checking for --with-libs... " >&6; }
8024 # Check whether --with-libs was given.
8025 if test "${with_libs+set}" = set; then :
8026 withval=$with_libs;
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
8028 $as_echo "$withval" >&6; }
8029 LIBS="$withval $LIBS"
8031 else
8032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8033 $as_echo "no" >&6; }
8037 # Check for use of the system libffi library
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-ffi" >&5
8039 $as_echo_n "checking for --with-system-ffi... " >&6; }
8041 # Check whether --with-system_ffi was given.
8042 if test "${with_system_ffi+set}" = set; then :
8043 withval=$with_system_ffi;
8044 else
8045 with_system_ffi="no"
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_ffi" >&5
8050 $as_echo "$with_system_ffi" >&6; }
8052 # Check for --with-dbmliborder
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dbmliborder" >&5
8054 $as_echo_n "checking for --with-dbmliborder... " >&6; }
8056 # Check whether --with-dbmliborder was given.
8057 if test "${with_dbmliborder+set}" = set; then :
8058 withval=$with_dbmliborder;
8059 if test x$with_dbmliborder = xyes
8060 then
8061 as_fn_error "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5
8062 else
8063 for db in `echo $with_dbmliborder | sed 's/:/ /g'`; do
8064 if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb
8065 then
8066 as_fn_error "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5
8068 done
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_dbmliborder" >&5
8073 $as_echo "$with_dbmliborder" >&6; }
8075 # Determine if signalmodule should be used.
8078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-signal-module" >&5
8079 $as_echo_n "checking for --with-signal-module... " >&6; }
8081 # Check whether --with-signal-module was given.
8082 if test "${with_signal_module+set}" = set; then :
8083 withval=$with_signal_module;
8087 if test -z "$with_signal_module"
8088 then with_signal_module="yes"
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_signal_module" >&5
8091 $as_echo "$with_signal_module" >&6; }
8093 if test "${with_signal_module}" = "yes"; then
8094 USE_SIGNAL_MODULE=""
8095 SIGNAL_OBJS=""
8096 else
8097 USE_SIGNAL_MODULE="#"
8098 SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o"
8101 # This is used to generate Setup.config
8103 USE_THREAD_MODULE=""
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dec-threads" >&5
8106 $as_echo_n "checking for --with-dec-threads... " >&6; }
8109 # Check whether --with-dec-threads was given.
8110 if test "${with_dec_threads+set}" = set; then :
8111 withval=$with_dec_threads;
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
8113 $as_echo "$withval" >&6; }
8114 LDLAST=-threads
8115 if test "${with_thread+set}" != set; then
8116 with_thread="$withval";
8118 else
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8120 $as_echo "no" >&6; }
8124 # Templates for things AC_DEFINEd more than once.
8125 # For a single AC_DEFINE, no template is needed.
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-threads" >&5
8131 $as_echo_n "checking for --with-threads... " >&6; }
8133 # Check whether --with-threads was given.
8134 if test "${with_threads+set}" = set; then :
8135 withval=$with_threads;
8139 # --with-thread is deprecated, but check for it anyway
8141 # Check whether --with-thread was given.
8142 if test "${with_thread+set}" = set; then :
8143 withval=$with_thread; with_threads=$with_thread
8147 if test -z "$with_threads"
8148 then with_threads="yes"
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_threads" >&5
8151 $as_echo "$with_threads" >&6; }
8154 if test "$with_threads" = "no"
8155 then
8156 USE_THREAD_MODULE="#"
8157 elif test "$ac_cv_pthread_is_default" = yes
8158 then
8159 $as_echo "#define WITH_THREAD 1" >>confdefs.h
8161 # Defining _REENTRANT on system with POSIX threads should not hurt.
8162 $as_echo "#define _REENTRANT 1" >>confdefs.h
8164 posix_threads=yes
8165 THREADOBJ="Python/thread.o"
8166 elif test "$ac_cv_kpthread" = "yes"
8167 then
8168 CC="$CC -Kpthread"
8169 if test "$ac_cv_cxx_thread" = "yes"; then
8170 CXX="$CXX -Kpthread"
8172 $as_echo "#define WITH_THREAD 1" >>confdefs.h
8174 posix_threads=yes
8175 THREADOBJ="Python/thread.o"
8176 elif test "$ac_cv_kthread" = "yes"
8177 then
8178 CC="$CC -Kthread"
8179 if test "$ac_cv_cxx_thread" = "yes"; then
8180 CXX="$CXX -Kthread"
8182 $as_echo "#define WITH_THREAD 1" >>confdefs.h
8184 posix_threads=yes
8185 THREADOBJ="Python/thread.o"
8186 elif test "$ac_cv_pthread" = "yes"
8187 then
8188 CC="$CC -pthread"
8189 if test "$ac_cv_cxx_thread" = "yes"; then
8190 CXX="$CXX -pthread"
8192 $as_echo "#define WITH_THREAD 1" >>confdefs.h
8194 posix_threads=yes
8195 THREADOBJ="Python/thread.o"
8196 else
8197 if test ! -z "$with_threads" -a -d "$with_threads"
8198 then LDFLAGS="$LDFLAGS -L$with_threads"
8200 if test ! -z "$withval" -a -d "$withval"
8201 then LDFLAGS="$LDFLAGS -L$withval"
8204 # According to the POSIX spec, a pthreads implementation must
8205 # define _POSIX_THREADS in unistd.h. Some apparently don't
8206 # (e.g. gnu pth with pthread emulation)
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _POSIX_THREADS in unistd.h" >&5
8208 $as_echo_n "checking for _POSIX_THREADS in unistd.h... " >&6; }
8209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8210 /* end confdefs.h. */
8212 #include <unistd.h>
8213 #ifdef _POSIX_THREADS
8215 #endif
8217 _ACEOF
8218 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8219 $EGREP "yes" >/dev/null 2>&1; then :
8220 unistd_defines_pthreads=yes
8221 else
8222 unistd_defines_pthreads=no
8224 rm -f conftest*
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unistd_defines_pthreads" >&5
8227 $as_echo "$unistd_defines_pthreads" >&6; }
8229 $as_echo "#define _REENTRANT 1" >>confdefs.h
8231 ac_fn_c_check_header_mongrel "$LINENO" "cthreads.h" "ac_cv_header_cthreads_h" "$ac_includes_default"
8232 if test "x$ac_cv_header_cthreads_h" = x""yes; then :
8233 $as_echo "#define WITH_THREAD 1" >>confdefs.h
8235 $as_echo "#define C_THREADS 1" >>confdefs.h
8238 $as_echo "#define HURD_C_THREADS 1" >>confdefs.h
8240 LIBS="$LIBS -lthreads"
8241 THREADOBJ="Python/thread.o"
8242 else
8244 ac_fn_c_check_header_mongrel "$LINENO" "mach/cthreads.h" "ac_cv_header_mach_cthreads_h" "$ac_includes_default"
8245 if test "x$ac_cv_header_mach_cthreads_h" = x""yes; then :
8246 $as_echo "#define WITH_THREAD 1" >>confdefs.h
8248 $as_echo "#define C_THREADS 1" >>confdefs.h
8251 $as_echo "#define MACH_C_THREADS 1" >>confdefs.h
8253 THREADOBJ="Python/thread.o"
8254 else
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pth" >&5
8257 $as_echo_n "checking for --with-pth... " >&6; }
8259 # Check whether --with-pth was given.
8260 if test "${with_pth+set}" = set; then :
8261 withval=$with_pth; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
8262 $as_echo "$withval" >&6; }
8263 $as_echo "#define WITH_THREAD 1" >>confdefs.h
8266 $as_echo "#define HAVE_PTH 1" >>confdefs.h
8268 LIBS="-lpth $LIBS"
8269 THREADOBJ="Python/thread.o"
8270 else
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8272 $as_echo "no" >&6; }
8274 # Just looking for pthread_create in libpthread is not enough:
8275 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
8276 # So we really have to include pthread.h, and then link.
8277 _libs=$LIBS
8278 LIBS="$LIBS -lpthread"
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
8280 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
8281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8282 /* end confdefs.h. */
8283 #include <pthread.h>
8285 void * start_routine (void *arg) { exit (0); }
8287 main ()
8290 pthread_create (NULL, NULL, start_routine, NULL)
8292 return 0;
8294 _ACEOF
8295 if ac_fn_c_try_link "$LINENO"; then :
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8298 $as_echo "yes" >&6; }
8299 $as_echo "#define WITH_THREAD 1" >>confdefs.h
8301 posix_threads=yes
8302 THREADOBJ="Python/thread.o"
8303 else
8305 LIBS=$_libs
8306 ac_fn_c_check_func "$LINENO" "pthread_detach" "ac_cv_func_pthread_detach"
8307 if test "x$ac_cv_func_pthread_detach" = x""yes; then :
8308 $as_echo "#define WITH_THREAD 1" >>confdefs.h
8310 posix_threads=yes
8311 THREADOBJ="Python/thread.o"
8312 else
8314 ac_fn_c_check_header_mongrel "$LINENO" "atheos/threads.h" "ac_cv_header_atheos_threads_h" "$ac_includes_default"
8315 if test "x$ac_cv_header_atheos_threads_h" = x""yes; then :
8316 $as_echo "#define WITH_THREAD 1" >>confdefs.h
8319 $as_echo "#define ATHEOS_THREADS 1" >>confdefs.h
8321 THREADOBJ="Python/thread.o"
8322 else
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
8325 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
8326 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then :
8327 $as_echo_n "(cached) " >&6
8328 else
8329 ac_check_lib_save_LIBS=$LIBS
8330 LIBS="-lpthreads $LIBS"
8331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8332 /* end confdefs.h. */
8334 /* Override any GCC internal prototype to avoid an error.
8335 Use char because int might match the return type of a GCC
8336 builtin and then its argument prototype would still apply. */
8337 #ifdef __cplusplus
8338 extern "C"
8339 #endif
8340 char pthread_create ();
8342 main ()
8344 return pthread_create ();
8346 return 0;
8348 _ACEOF
8349 if ac_fn_c_try_link "$LINENO"; then :
8350 ac_cv_lib_pthreads_pthread_create=yes
8351 else
8352 ac_cv_lib_pthreads_pthread_create=no
8354 rm -f core conftest.err conftest.$ac_objext \
8355 conftest$ac_exeext conftest.$ac_ext
8356 LIBS=$ac_check_lib_save_LIBS
8358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
8359 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
8360 if test "x$ac_cv_lib_pthreads_pthread_create" = x""yes; then :
8361 $as_echo "#define WITH_THREAD 1" >>confdefs.h
8363 posix_threads=yes
8364 LIBS="$LIBS -lpthreads"
8365 THREADOBJ="Python/thread.o"
8366 else
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
8369 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
8370 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then :
8371 $as_echo_n "(cached) " >&6
8372 else
8373 ac_check_lib_save_LIBS=$LIBS
8374 LIBS="-lc_r $LIBS"
8375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8376 /* end confdefs.h. */
8378 /* Override any GCC internal prototype to avoid an error.
8379 Use char because int might match the return type of a GCC
8380 builtin and then its argument prototype would still apply. */
8381 #ifdef __cplusplus
8382 extern "C"
8383 #endif
8384 char pthread_create ();
8386 main ()
8388 return pthread_create ();
8390 return 0;
8392 _ACEOF
8393 if ac_fn_c_try_link "$LINENO"; then :
8394 ac_cv_lib_c_r_pthread_create=yes
8395 else
8396 ac_cv_lib_c_r_pthread_create=no
8398 rm -f core conftest.err conftest.$ac_objext \
8399 conftest$ac_exeext conftest.$ac_ext
8400 LIBS=$ac_check_lib_save_LIBS
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
8403 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
8404 if test "x$ac_cv_lib_c_r_pthread_create" = x""yes; then :
8405 $as_echo "#define WITH_THREAD 1" >>confdefs.h
8407 posix_threads=yes
8408 LIBS="$LIBS -lc_r"
8409 THREADOBJ="Python/thread.o"
8410 else
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __pthread_create_system in -lpthread" >&5
8413 $as_echo_n "checking for __pthread_create_system in -lpthread... " >&6; }
8414 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then :
8415 $as_echo_n "(cached) " >&6
8416 else
8417 ac_check_lib_save_LIBS=$LIBS
8418 LIBS="-lpthread $LIBS"
8419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8420 /* end confdefs.h. */
8422 /* Override any GCC internal prototype to avoid an error.
8423 Use char because int might match the return type of a GCC
8424 builtin and then its argument prototype would still apply. */
8425 #ifdef __cplusplus
8426 extern "C"
8427 #endif
8428 char __pthread_create_system ();
8430 main ()
8432 return __pthread_create_system ();
8434 return 0;
8436 _ACEOF
8437 if ac_fn_c_try_link "$LINENO"; then :
8438 ac_cv_lib_pthread___pthread_create_system=yes
8439 else
8440 ac_cv_lib_pthread___pthread_create_system=no
8442 rm -f core conftest.err conftest.$ac_objext \
8443 conftest$ac_exeext conftest.$ac_ext
8444 LIBS=$ac_check_lib_save_LIBS
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_create_system" >&5
8447 $as_echo "$ac_cv_lib_pthread___pthread_create_system" >&6; }
8448 if test "x$ac_cv_lib_pthread___pthread_create_system" = x""yes; then :
8449 $as_echo "#define WITH_THREAD 1" >>confdefs.h
8451 posix_threads=yes
8452 LIBS="$LIBS -lpthread"
8453 THREADOBJ="Python/thread.o"
8454 else
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lcma" >&5
8457 $as_echo_n "checking for pthread_create in -lcma... " >&6; }
8458 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then :
8459 $as_echo_n "(cached) " >&6
8460 else
8461 ac_check_lib_save_LIBS=$LIBS
8462 LIBS="-lcma $LIBS"
8463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8464 /* end confdefs.h. */
8466 /* Override any GCC internal prototype to avoid an error.
8467 Use char because int might match the return type of a GCC
8468 builtin and then its argument prototype would still apply. */
8469 #ifdef __cplusplus
8470 extern "C"
8471 #endif
8472 char pthread_create ();
8474 main ()
8476 return pthread_create ();
8478 return 0;
8480 _ACEOF
8481 if ac_fn_c_try_link "$LINENO"; then :
8482 ac_cv_lib_cma_pthread_create=yes
8483 else
8484 ac_cv_lib_cma_pthread_create=no
8486 rm -f core conftest.err conftest.$ac_objext \
8487 conftest$ac_exeext conftest.$ac_ext
8488 LIBS=$ac_check_lib_save_LIBS
8490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cma_pthread_create" >&5
8491 $as_echo "$ac_cv_lib_cma_pthread_create" >&6; }
8492 if test "x$ac_cv_lib_cma_pthread_create" = x""yes; then :
8493 $as_echo "#define WITH_THREAD 1" >>confdefs.h
8495 posix_threads=yes
8496 LIBS="$LIBS -lcma"
8497 THREADOBJ="Python/thread.o"
8498 else
8500 USE_THREAD_MODULE="#"
8516 rm -f core conftest.err conftest.$ac_objext \
8517 conftest$ac_exeext conftest.$ac_ext
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usconfig in -lmpc" >&5
8528 $as_echo_n "checking for usconfig in -lmpc... " >&6; }
8529 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then :
8530 $as_echo_n "(cached) " >&6
8531 else
8532 ac_check_lib_save_LIBS=$LIBS
8533 LIBS="-lmpc $LIBS"
8534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8535 /* end confdefs.h. */
8537 /* Override any GCC internal prototype to avoid an error.
8538 Use char because int might match the return type of a GCC
8539 builtin and then its argument prototype would still apply. */
8540 #ifdef __cplusplus
8541 extern "C"
8542 #endif
8543 char usconfig ();
8545 main ()
8547 return usconfig ();
8549 return 0;
8551 _ACEOF
8552 if ac_fn_c_try_link "$LINENO"; then :
8553 ac_cv_lib_mpc_usconfig=yes
8554 else
8555 ac_cv_lib_mpc_usconfig=no
8557 rm -f core conftest.err conftest.$ac_objext \
8558 conftest$ac_exeext conftest.$ac_ext
8559 LIBS=$ac_check_lib_save_LIBS
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpc_usconfig" >&5
8562 $as_echo "$ac_cv_lib_mpc_usconfig" >&6; }
8563 if test "x$ac_cv_lib_mpc_usconfig" = x""yes; then :
8564 $as_echo "#define WITH_THREAD 1" >>confdefs.h
8566 LIBS="$LIBS -lmpc"
8567 THREADOBJ="Python/thread.o"
8568 USE_THREAD_MODULE=""
8572 if test "$posix_threads" != "yes"; then
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5
8574 $as_echo_n "checking for thr_create in -lthread... " >&6; }
8575 if test "${ac_cv_lib_thread_thr_create+set}" = set; then :
8576 $as_echo_n "(cached) " >&6
8577 else
8578 ac_check_lib_save_LIBS=$LIBS
8579 LIBS="-lthread $LIBS"
8580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8581 /* end confdefs.h. */
8583 /* Override any GCC internal prototype to avoid an error.
8584 Use char because int might match the return type of a GCC
8585 builtin and then its argument prototype would still apply. */
8586 #ifdef __cplusplus
8587 extern "C"
8588 #endif
8589 char thr_create ();
8591 main ()
8593 return thr_create ();
8595 return 0;
8597 _ACEOF
8598 if ac_fn_c_try_link "$LINENO"; then :
8599 ac_cv_lib_thread_thr_create=yes
8600 else
8601 ac_cv_lib_thread_thr_create=no
8603 rm -f core conftest.err conftest.$ac_objext \
8604 conftest$ac_exeext conftest.$ac_ext
8605 LIBS=$ac_check_lib_save_LIBS
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5
8608 $as_echo "$ac_cv_lib_thread_thr_create" >&6; }
8609 if test "x$ac_cv_lib_thread_thr_create" = x""yes; then :
8610 $as_echo "#define WITH_THREAD 1" >>confdefs.h
8612 LIBS="$LIBS -lthread"
8613 THREADOBJ="Python/thread.o"
8614 USE_THREAD_MODULE=""
8619 if test "$USE_THREAD_MODULE" != "#"
8620 then
8621 # If the above checks didn't disable threads, (at least) OSF1
8622 # needs this '-threads' argument during linking.
8623 case $ac_sys_system in
8624 OSF1) LDLAST=-threads;;
8625 esac
8629 if test "$posix_threads" = "yes"; then
8630 if test "$unistd_defines_pthreads" = "no"; then
8632 $as_echo "#define _POSIX_THREADS 1" >>confdefs.h
8636 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
8637 case $ac_sys_system/$ac_sys_release in
8638 SunOS/5.6)
8639 $as_echo "#define HAVE_PTHREAD_DESTRUCTOR 1" >>confdefs.h
8642 SunOS/5.8)
8643 $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
8646 AIX/5)
8647 $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
8650 AIX/6)
8651 $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
8654 esac
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
8657 $as_echo_n "checking if PTHREAD_SCOPE_SYSTEM is supported... " >&6; }
8658 if test "${ac_cv_pthread_system_supported+set}" = set; then :
8659 $as_echo_n "(cached) " >&6
8660 else
8661 if test "$cross_compiling" = yes; then :
8662 ac_cv_pthread_system_supported=no
8663 else
8664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8665 /* end confdefs.h. */
8666 #include <pthread.h>
8667 void *foo(void *parm) {
8668 return NULL;
8670 main() {
8671 pthread_attr_t attr;
8672 pthread_t id;
8673 if (pthread_attr_init(&attr)) exit(-1);
8674 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
8675 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
8676 exit(0);
8678 _ACEOF
8679 if ac_fn_c_try_run "$LINENO"; then :
8680 ac_cv_pthread_system_supported=yes
8681 else
8682 ac_cv_pthread_system_supported=no
8684 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8685 conftest.$ac_objext conftest.beam conftest.$ac_ext
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_system_supported" >&5
8692 $as_echo "$ac_cv_pthread_system_supported" >&6; }
8693 if test "$ac_cv_pthread_system_supported" = "yes"; then
8695 $as_echo "#define PTHREAD_SYSTEM_SCHED_SUPPORTED 1" >>confdefs.h
8698 for ac_func in pthread_sigmask
8699 do :
8700 ac_fn_c_check_func "$LINENO" "pthread_sigmask" "ac_cv_func_pthread_sigmask"
8701 if test "x$ac_cv_func_pthread_sigmask" = x""yes; then :
8702 cat >>confdefs.h <<_ACEOF
8703 #define HAVE_PTHREAD_SIGMASK 1
8704 _ACEOF
8705 case $ac_sys_system in
8706 CYGWIN*)
8708 $as_echo "#define HAVE_BROKEN_PTHREAD_SIGMASK 1" >>confdefs.h
8711 esac
8713 done
8718 # Check for enable-ipv6
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-ipv6 is specified" >&5
8721 $as_echo_n "checking if --enable-ipv6 is specified... " >&6; }
8722 # Check whether --enable-ipv6 was given.
8723 if test "${enable_ipv6+set}" = set; then :
8724 enableval=$enable_ipv6; case "$enableval" in
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8727 $as_echo "no" >&6; }
8728 ipv6=no
8730 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8731 $as_echo "yes" >&6; }
8732 $as_echo "#define ENABLE_IPV6 1" >>confdefs.h
8734 ipv6=yes
8736 esac
8737 else
8739 if test "$cross_compiling" = yes; then :
8740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8741 $as_echo "no" >&6; }
8742 ipv6=no
8744 else
8745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8746 /* end confdefs.h. */
8747 /* AF_INET6 available check */
8748 #include <sys/types.h>
8749 #include <sys/socket.h>
8750 main()
8752 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
8753 exit(1);
8754 else
8755 exit(0);
8758 _ACEOF
8759 if ac_fn_c_try_run "$LINENO"; then :
8760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8761 $as_echo "yes" >&6; }
8762 ipv6=yes
8763 else
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8765 $as_echo "no" >&6; }
8766 ipv6=no
8768 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8769 conftest.$ac_objext conftest.beam conftest.$ac_ext
8773 if test "$ipv6" = "yes"; then
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RFC2553 API is available" >&5
8775 $as_echo_n "checking if RFC2553 API is available... " >&6; }
8776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8777 /* end confdefs.h. */
8778 #include <sys/types.h>
8779 #include <netinet/in.h>
8781 main ()
8783 struct sockaddr_in6 x;
8784 x.sin6_scope_id;
8786 return 0;
8788 _ACEOF
8789 if ac_fn_c_try_compile "$LINENO"; then :
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8791 $as_echo "yes" >&6; }
8792 ipv6=yes
8793 else
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8795 $as_echo "no" >&6; }
8796 ipv6=no
8798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8801 if test "$ipv6" = "yes"; then
8802 $as_echo "#define ENABLE_IPV6 1" >>confdefs.h
8809 ipv6type=unknown
8810 ipv6lib=none
8811 ipv6trylibc=no
8813 if test "$ipv6" = "yes"; then
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ipv6 stack type" >&5
8815 $as_echo_n "checking ipv6 stack type... " >&6; }
8816 for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
8818 case $i in
8819 inria)
8820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8821 /* end confdefs.h. */
8823 #include <netinet/in.h>
8824 #ifdef IPV6_INRIA_VERSION
8826 #endif
8827 _ACEOF
8828 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8829 $EGREP "yes" >/dev/null 2>&1; then :
8830 ipv6type=$i
8832 rm -f conftest*
8835 kame)
8836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8837 /* end confdefs.h. */
8839 #include <netinet/in.h>
8840 #ifdef __KAME__
8842 #endif
8843 _ACEOF
8844 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8845 $EGREP "yes" >/dev/null 2>&1; then :
8846 ipv6type=$i;
8847 ipv6lib=inet6
8848 ipv6libdir=/usr/local/v6/lib
8849 ipv6trylibc=yes
8851 rm -f conftest*
8854 linux-glibc)
8855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8856 /* end confdefs.h. */
8858 #include <features.h>
8859 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
8861 #endif
8862 _ACEOF
8863 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8864 $EGREP "yes" >/dev/null 2>&1; then :
8865 ipv6type=$i;
8866 ipv6trylibc=yes
8868 rm -f conftest*
8871 linux-inet6)
8872 if test -d /usr/inet6; then
8873 ipv6type=$i
8874 ipv6lib=inet6
8875 ipv6libdir=/usr/inet6/lib
8876 BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
8879 solaris)
8880 if test -f /etc/netconfig; then
8881 if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then
8882 ipv6type=$i
8883 ipv6trylibc=yes
8887 toshiba)
8888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8889 /* end confdefs.h. */
8891 #include <sys/param.h>
8892 #ifdef _TOSHIBA_INET6
8894 #endif
8895 _ACEOF
8896 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8897 $EGREP "yes" >/dev/null 2>&1; then :
8898 ipv6type=$i;
8899 ipv6lib=inet6;
8900 ipv6libdir=/usr/local/v6/lib
8902 rm -f conftest*
8905 v6d)
8906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8907 /* end confdefs.h. */
8909 #include </usr/local/v6/include/sys/v6config.h>
8910 #ifdef __V6D__
8912 #endif
8913 _ACEOF
8914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8915 $EGREP "yes" >/dev/null 2>&1; then :
8916 ipv6type=$i;
8917 ipv6lib=v6;
8918 ipv6libdir=/usr/local/v6/lib;
8919 BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
8921 rm -f conftest*
8924 zeta)
8925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8926 /* end confdefs.h. */
8928 #include <sys/param.h>
8929 #ifdef _ZETA_MINAMI_INET6
8931 #endif
8932 _ACEOF
8933 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8934 $EGREP "yes" >/dev/null 2>&1; then :
8935 ipv6type=$i;
8936 ipv6lib=inet6;
8937 ipv6libdir=/usr/local/v6/lib
8939 rm -f conftest*
8942 esac
8943 if test "$ipv6type" != "unknown"; then
8944 break
8946 done
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6type" >&5
8948 $as_echo "$ipv6type" >&6; }
8951 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
8952 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
8953 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
8954 echo "using lib$ipv6lib"
8955 else
8956 if test $ipv6trylibc = "yes"; then
8957 echo "using libc"
8958 else
8959 echo 'Fatal: no $ipv6lib library found. cannot continue.'
8960 echo "You need to fetch lib$ipv6lib.a from appropriate"
8961 echo 'ipv6 kit and compile beforehand.'
8962 exit 1
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSX 10.5 SDK or later" >&5
8968 $as_echo_n "checking for OSX 10.5 SDK or later... " >&6; }
8969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8970 /* end confdefs.h. */
8971 #include <Carbon/Carbon.h>
8973 main ()
8975 FSIORefNum fRef = 0
8977 return 0;
8979 _ACEOF
8980 if ac_fn_c_try_compile "$LINENO"; then :
8982 $as_echo "#define HAVE_OSX105_SDK 1" >>confdefs.h
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8985 $as_echo "yes" >&6; }
8986 else
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8988 $as_echo "no" >&6; }
8991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8993 # Check for --with-doc-strings
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-doc-strings" >&5
8995 $as_echo_n "checking for --with-doc-strings... " >&6; }
8997 # Check whether --with-doc-strings was given.
8998 if test "${with_doc_strings+set}" = set; then :
8999 withval=$with_doc_strings;
9003 if test -z "$with_doc_strings"
9004 then with_doc_strings="yes"
9006 if test "$with_doc_strings" != "no"
9007 then
9009 $as_echo "#define WITH_DOC_STRINGS 1" >>confdefs.h
9012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_doc_strings" >&5
9013 $as_echo "$with_doc_strings" >&6; }
9015 # Check if eval loop should use timestamp counter profiling
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tsc" >&5
9017 $as_echo_n "checking for --with-tsc... " >&6; }
9019 # Check whether --with-tsc was given.
9020 if test "${with_tsc+set}" = set; then :
9021 withval=$with_tsc;
9022 if test "$withval" != no
9023 then
9025 $as_echo "#define WITH_TSC 1" >>confdefs.h
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9028 $as_echo "yes" >&6; }
9029 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9030 $as_echo "no" >&6; }
9032 else
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9034 $as_echo "no" >&6; }
9038 # Check for Python-specific malloc support
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pymalloc" >&5
9040 $as_echo_n "checking for --with-pymalloc... " >&6; }
9042 # Check whether --with-pymalloc was given.
9043 if test "${with_pymalloc+set}" = set; then :
9044 withval=$with_pymalloc;
9048 if test -z "$with_pymalloc"
9049 then with_pymalloc="yes"
9051 if test "$with_pymalloc" != "no"
9052 then
9054 $as_echo "#define WITH_PYMALLOC 1" >>confdefs.h
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pymalloc" >&5
9058 $as_echo "$with_pymalloc" >&6; }
9060 # Check for --with-wctype-functions
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-wctype-functions" >&5
9062 $as_echo_n "checking for --with-wctype-functions... " >&6; }
9064 # Check whether --with-wctype-functions was given.
9065 if test "${with_wctype_functions+set}" = set; then :
9066 withval=$with_wctype_functions;
9067 if test "$withval" != no
9068 then
9070 $as_echo "#define WANT_WCTYPE_FUNCTIONS 1" >>confdefs.h
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9073 $as_echo "yes" >&6; }
9074 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9075 $as_echo "no" >&6; }
9077 else
9078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9079 $as_echo "no" >&6; }
9083 # -I${DLINCLDIR} is added to the compile rule for importdl.o
9085 DLINCLDIR=.
9087 # the dlopen() function means we might want to use dynload_shlib.o. some
9088 # platforms, such as AIX, have dlopen(), but don't want to use it.
9089 for ac_func in dlopen
9090 do :
9091 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9092 if test "x$ac_cv_func_dlopen" = x""yes; then :
9093 cat >>confdefs.h <<_ACEOF
9094 #define HAVE_DLOPEN 1
9095 _ACEOF
9098 done
9101 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
9102 # loading of modules.
9104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DYNLOADFILE" >&5
9105 $as_echo_n "checking DYNLOADFILE... " >&6; }
9106 if test -z "$DYNLOADFILE"
9107 then
9108 case $ac_sys_system/$ac_sys_release in
9109 AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
9110 if test "$ac_cv_func_dlopen" = yes
9111 then DYNLOADFILE="dynload_shlib.o"
9112 else DYNLOADFILE="dynload_aix.o"
9115 hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
9116 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
9117 Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";;
9118 atheos*) DYNLOADFILE="dynload_atheos.o";;
9120 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
9121 # out any dynamic loading
9122 if test "$ac_cv_func_dlopen" = yes
9123 then DYNLOADFILE="dynload_shlib.o"
9124 else DYNLOADFILE="dynload_stub.o"
9127 esac
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DYNLOADFILE" >&5
9130 $as_echo "$DYNLOADFILE" >&6; }
9131 if test "$DYNLOADFILE" != "dynload_stub.o"
9132 then
9134 $as_echo "#define HAVE_DYNAMIC_LOADING 1" >>confdefs.h
9138 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP_OBJS" >&5
9142 $as_echo_n "checking MACHDEP_OBJS... " >&6; }
9143 if test -z "$MACHDEP_OBJS"
9144 then
9145 MACHDEP_OBJS=$extra_machdep_objs
9146 else
9147 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
9149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: MACHDEP_OBJS" >&5
9150 $as_echo "MACHDEP_OBJS" >&6; }
9152 # checks for library functions
9153 for ac_func in alarm setitimer getitimer bind_textdomain_codeset chown \
9154 clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \
9155 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
9156 getpriority getpwent getspnam getspent getsid getwd \
9157 kill killpg lchmod lchown lstat mbrtowc mkfifo mknod mktime \
9158 mremap nice pathconf pause plock poll pthread_init \
9159 putenv readlink realpath \
9160 select sem_open sem_timedwait sem_getvalue sem_unlink setegid seteuid \
9161 setgid \
9162 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
9163 sigaction siginterrupt sigrelse strftime strlcpy \
9164 sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
9165 truncate uname unsetenv utimes waitpid wait3 wait4 \
9166 wcscoll wcsftime wcsxfrm _getpty
9167 do :
9168 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9169 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9170 eval as_val=\$$as_ac_var
9171 if test "x$as_val" = x""yes; then :
9172 cat >>confdefs.h <<_ACEOF
9173 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9174 _ACEOF
9177 done
9180 # For some functions, having a definition is not sufficient, since
9181 # we want to take their address.
9182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chroot" >&5
9183 $as_echo_n "checking for chroot... " >&6; }
9184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9185 /* end confdefs.h. */
9186 #include <unistd.h>
9188 main ()
9190 void *x=chroot
9192 return 0;
9194 _ACEOF
9195 if ac_fn_c_try_compile "$LINENO"; then :
9197 $as_echo "#define HAVE_CHROOT 1" >>confdefs.h
9199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9200 $as_echo "yes" >&6; }
9201 else
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9203 $as_echo "no" >&6; }
9206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for link" >&5
9208 $as_echo_n "checking for link... " >&6; }
9209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9210 /* end confdefs.h. */
9211 #include <unistd.h>
9213 main ()
9215 void *x=link
9217 return 0;
9219 _ACEOF
9220 if ac_fn_c_try_compile "$LINENO"; then :
9222 $as_echo "#define HAVE_LINK 1" >>confdefs.h
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9225 $as_echo "yes" >&6; }
9226 else
9227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9228 $as_echo "no" >&6; }
9231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for symlink" >&5
9233 $as_echo_n "checking for symlink... " >&6; }
9234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9235 /* end confdefs.h. */
9236 #include <unistd.h>
9238 main ()
9240 void *x=symlink
9242 return 0;
9244 _ACEOF
9245 if ac_fn_c_try_compile "$LINENO"; then :
9247 $as_echo "#define HAVE_SYMLINK 1" >>confdefs.h
9249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9250 $as_echo "yes" >&6; }
9251 else
9252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9253 $as_echo "no" >&6; }
9256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fchdir" >&5
9258 $as_echo_n "checking for fchdir... " >&6; }
9259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9260 /* end confdefs.h. */
9261 #include <unistd.h>
9263 main ()
9265 void *x=fchdir
9267 return 0;
9269 _ACEOF
9270 if ac_fn_c_try_compile "$LINENO"; then :
9272 $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h
9274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9275 $as_echo "yes" >&6; }
9276 else
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9278 $as_echo "no" >&6; }
9281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fsync" >&5
9283 $as_echo_n "checking for fsync... " >&6; }
9284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9285 /* end confdefs.h. */
9286 #include <unistd.h>
9288 main ()
9290 void *x=fsync
9292 return 0;
9294 _ACEOF
9295 if ac_fn_c_try_compile "$LINENO"; then :
9297 $as_echo "#define HAVE_FSYNC 1" >>confdefs.h
9299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9300 $as_echo "yes" >&6; }
9301 else
9302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9303 $as_echo "no" >&6; }
9306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fdatasync" >&5
9308 $as_echo_n "checking for fdatasync... " >&6; }
9309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9310 /* end confdefs.h. */
9311 #include <unistd.h>
9313 main ()
9315 void *x=fdatasync
9317 return 0;
9319 _ACEOF
9320 if ac_fn_c_try_compile "$LINENO"; then :
9322 $as_echo "#define HAVE_FDATASYNC 1" >>confdefs.h
9324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9325 $as_echo "yes" >&6; }
9326 else
9327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9328 $as_echo "no" >&6; }
9331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll" >&5
9333 $as_echo_n "checking for epoll... " >&6; }
9334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9335 /* end confdefs.h. */
9336 #include <sys/epoll.h>
9338 main ()
9340 void *x=epoll_create
9342 return 0;
9344 _ACEOF
9345 if ac_fn_c_try_compile "$LINENO"; then :
9347 $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
9349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9350 $as_echo "yes" >&6; }
9351 else
9352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9353 $as_echo "no" >&6; }
9356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kqueue" >&5
9358 $as_echo_n "checking for kqueue... " >&6; }
9359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9360 /* end confdefs.h. */
9362 #include <sys/types.h>
9363 #include <sys/event.h>
9366 main ()
9368 int x=kqueue()
9370 return 0;
9372 _ACEOF
9373 if ac_fn_c_try_compile "$LINENO"; then :
9375 $as_echo "#define HAVE_KQUEUE 1" >>confdefs.h
9377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9378 $as_echo "yes" >&6; }
9379 else
9380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9381 $as_echo "no" >&6; }
9384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9385 # On some systems (eg. FreeBSD 5), we would find a definition of the
9386 # functions ctermid_r, setgroups in the library, but no prototype
9387 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
9388 # address to avoid compiler warnings and potential miscompilations
9389 # because of the missing prototypes.
9391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctermid_r" >&5
9392 $as_echo_n "checking for ctermid_r... " >&6; }
9393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9394 /* end confdefs.h. */
9396 #include "confdefs.h"
9397 #include <stdio.h>
9400 main ()
9402 void* p = ctermid_r
9404 return 0;
9406 _ACEOF
9407 if ac_fn_c_try_compile "$LINENO"; then :
9409 $as_echo "#define HAVE_CTERMID_R 1" >>confdefs.h
9411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9412 $as_echo "yes" >&6; }
9413 else
9414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9415 $as_echo "no" >&6; }
9418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock declaration" >&5
9421 $as_echo_n "checking for flock declaration... " >&6; }
9422 if test "${ac_cv_flock_decl+set}" = set; then :
9423 $as_echo_n "(cached) " >&6
9424 else
9425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9426 /* end confdefs.h. */
9427 #include <sys/file.h>
9429 main ()
9431 void* p = flock
9434 return 0;
9436 _ACEOF
9437 if ac_fn_c_try_compile "$LINENO"; then :
9438 ac_cv_flock_decl=yes
9439 else
9440 ac_cv_flock_decl=no
9443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flock_decl" >&5
9447 $as_echo "$ac_cv_flock_decl" >&6; }
9448 if test "x${ac_cv_flock_decl}" = xyes; then
9449 for ac_func in flock
9450 do :
9451 ac_fn_c_check_func "$LINENO" "flock" "ac_cv_func_flock"
9452 if test "x$ac_cv_func_flock" = x""yes; then :
9453 cat >>confdefs.h <<_ACEOF
9454 #define HAVE_FLOCK 1
9455 _ACEOF
9457 else
9458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock in -lbsd" >&5
9459 $as_echo_n "checking for flock in -lbsd... " >&6; }
9460 if test "${ac_cv_lib_bsd_flock+set}" = set; then :
9461 $as_echo_n "(cached) " >&6
9462 else
9463 ac_check_lib_save_LIBS=$LIBS
9464 LIBS="-lbsd $LIBS"
9465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9466 /* end confdefs.h. */
9468 /* Override any GCC internal prototype to avoid an error.
9469 Use char because int might match the return type of a GCC
9470 builtin and then its argument prototype would still apply. */
9471 #ifdef __cplusplus
9472 extern "C"
9473 #endif
9474 char flock ();
9476 main ()
9478 return flock ();
9480 return 0;
9482 _ACEOF
9483 if ac_fn_c_try_link "$LINENO"; then :
9484 ac_cv_lib_bsd_flock=yes
9485 else
9486 ac_cv_lib_bsd_flock=no
9488 rm -f core conftest.err conftest.$ac_objext \
9489 conftest$ac_exeext conftest.$ac_ext
9490 LIBS=$ac_check_lib_save_LIBS
9492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_flock" >&5
9493 $as_echo "$ac_cv_lib_bsd_flock" >&6; }
9494 if test "x$ac_cv_lib_bsd_flock" = x""yes; then :
9495 $as_echo "#define HAVE_FLOCK 1" >>confdefs.h
9498 $as_echo "#define FLOCK_NEEDS_LIBBSD 1" >>confdefs.h
9505 done
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize" >&5
9510 $as_echo_n "checking for getpagesize... " >&6; }
9511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9512 /* end confdefs.h. */
9514 #include "confdefs.h"
9515 #include <unistd.h>
9518 main ()
9520 void* p = getpagesize
9522 return 0;
9524 _ACEOF
9525 if ac_fn_c_try_compile "$LINENO"; then :
9527 $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9530 $as_echo "yes" >&6; }
9531 else
9532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9533 $as_echo "no" >&6; }
9536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9538 for ac_prog in true
9540 # Extract the first word of "$ac_prog", so it can be a program name with args.
9541 set dummy $ac_prog; ac_word=$2
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9543 $as_echo_n "checking for $ac_word... " >&6; }
9544 if test "${ac_cv_prog_TRUE+set}" = set; then :
9545 $as_echo_n "(cached) " >&6
9546 else
9547 if test -n "$TRUE"; then
9548 ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
9549 else
9550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9551 for as_dir in $PATH
9553 IFS=$as_save_IFS
9554 test -z "$as_dir" && as_dir=.
9555 for ac_exec_ext in '' $ac_executable_extensions; do
9556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9557 ac_cv_prog_TRUE="$ac_prog"
9558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9559 break 2
9561 done
9562 done
9563 IFS=$as_save_IFS
9567 TRUE=$ac_cv_prog_TRUE
9568 if test -n "$TRUE"; then
9569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUE" >&5
9570 $as_echo "$TRUE" >&6; }
9571 else
9572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9573 $as_echo "no" >&6; }
9577 test -n "$TRUE" && break
9578 done
9579 test -n "$TRUE" || TRUE="/bin/true"
9582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lc" >&5
9583 $as_echo_n "checking for inet_aton in -lc... " >&6; }
9584 if test "${ac_cv_lib_c_inet_aton+set}" = set; then :
9585 $as_echo_n "(cached) " >&6
9586 else
9587 ac_check_lib_save_LIBS=$LIBS
9588 LIBS="-lc $LIBS"
9589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9590 /* end confdefs.h. */
9592 /* Override any GCC internal prototype to avoid an error.
9593 Use char because int might match the return type of a GCC
9594 builtin and then its argument prototype would still apply. */
9595 #ifdef __cplusplus
9596 extern "C"
9597 #endif
9598 char inet_aton ();
9600 main ()
9602 return inet_aton ();
9604 return 0;
9606 _ACEOF
9607 if ac_fn_c_try_link "$LINENO"; then :
9608 ac_cv_lib_c_inet_aton=yes
9609 else
9610 ac_cv_lib_c_inet_aton=no
9612 rm -f core conftest.err conftest.$ac_objext \
9613 conftest$ac_exeext conftest.$ac_ext
9614 LIBS=$ac_check_lib_save_LIBS
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_inet_aton" >&5
9617 $as_echo "$ac_cv_lib_c_inet_aton" >&6; }
9618 if test "x$ac_cv_lib_c_inet_aton" = x""yes; then :
9619 $ac_cv_prog_TRUE
9620 else
9621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
9622 $as_echo_n "checking for inet_aton in -lresolv... " >&6; }
9623 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then :
9624 $as_echo_n "(cached) " >&6
9625 else
9626 ac_check_lib_save_LIBS=$LIBS
9627 LIBS="-lresolv $LIBS"
9628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9629 /* end confdefs.h. */
9631 /* Override any GCC internal prototype to avoid an error.
9632 Use char because int might match the return type of a GCC
9633 builtin and then its argument prototype would still apply. */
9634 #ifdef __cplusplus
9635 extern "C"
9636 #endif
9637 char inet_aton ();
9639 main ()
9641 return inet_aton ();
9643 return 0;
9645 _ACEOF
9646 if ac_fn_c_try_link "$LINENO"; then :
9647 ac_cv_lib_resolv_inet_aton=yes
9648 else
9649 ac_cv_lib_resolv_inet_aton=no
9651 rm -f core conftest.err conftest.$ac_objext \
9652 conftest$ac_exeext conftest.$ac_ext
9653 LIBS=$ac_check_lib_save_LIBS
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
9656 $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
9657 if test "x$ac_cv_lib_resolv_inet_aton" = x""yes; then :
9658 cat >>confdefs.h <<_ACEOF
9659 #define HAVE_LIBRESOLV 1
9660 _ACEOF
9662 LIBS="-lresolv $LIBS"
9670 # On Tru64, chflags seems to be present, but calling it will
9671 # exit Python
9672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chflags" >&5
9673 $as_echo_n "checking for chflags... " >&6; }
9674 if test "${ac_cv_have_chflags+set}" = set; then :
9675 $as_echo_n "(cached) " >&6
9676 else
9677 if test "$cross_compiling" = yes; then :
9678 ac_cv_have_chflags=cross
9679 else
9680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9681 /* end confdefs.h. */
9683 #include <sys/stat.h>
9684 #include <unistd.h>
9685 int main(int argc, char*argv[])
9687 if(chflags(argv[0], 0) != 0)
9688 return 1;
9689 return 0;
9692 _ACEOF
9693 if ac_fn_c_try_run "$LINENO"; then :
9694 ac_cv_have_chflags=yes
9695 else
9696 ac_cv_have_chflags=no
9698 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9699 conftest.$ac_objext conftest.beam conftest.$ac_ext
9704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_chflags" >&5
9705 $as_echo "$ac_cv_have_chflags" >&6; }
9706 if test "$ac_cv_have_chflags" = cross ; then
9707 ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
9708 if test "x$ac_cv_func_chflags" = x""yes; then :
9709 ac_cv_have_chflags="yes"
9710 else
9711 ac_cv_have_chflags="no"
9715 if test "$ac_cv_have_chflags" = yes ; then
9717 $as_echo "#define HAVE_CHFLAGS 1" >>confdefs.h
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lchflags" >&5
9722 $as_echo_n "checking for lchflags... " >&6; }
9723 if test "${ac_cv_have_lchflags+set}" = set; then :
9724 $as_echo_n "(cached) " >&6
9725 else
9726 if test "$cross_compiling" = yes; then :
9727 ac_cv_have_lchflags=cross
9728 else
9729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9730 /* end confdefs.h. */
9732 #include <sys/stat.h>
9733 #include <unistd.h>
9734 int main(int argc, char*argv[])
9736 if(lchflags(argv[0], 0) != 0)
9737 return 1;
9738 return 0;
9741 _ACEOF
9742 if ac_fn_c_try_run "$LINENO"; then :
9743 ac_cv_have_lchflags=yes
9744 else
9745 ac_cv_have_lchflags=no
9747 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9748 conftest.$ac_objext conftest.beam conftest.$ac_ext
9753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_lchflags" >&5
9754 $as_echo "$ac_cv_have_lchflags" >&6; }
9755 if test "$ac_cv_have_lchflags" = cross ; then
9756 ac_fn_c_check_func "$LINENO" "lchflags" "ac_cv_func_lchflags"
9757 if test "x$ac_cv_func_lchflags" = x""yes; then :
9758 ac_cv_have_lchflags="yes"
9759 else
9760 ac_cv_have_lchflags="no"
9764 if test "$ac_cv_have_lchflags" = yes ; then
9766 $as_echo "#define HAVE_LCHFLAGS 1" >>confdefs.h
9770 case $ac_sys_system/$ac_sys_release in
9771 Darwin/*)
9772 _CUR_CFLAGS="${CFLAGS}"
9773 _CUR_LDFLAGS="${LDFLAGS}"
9774 CFLAGS="${CFLAGS} -Wl,-search_paths_first"
9775 LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
9777 esac
9779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5
9780 $as_echo_n "checking for inflateCopy in -lz... " >&6; }
9781 if test "${ac_cv_lib_z_inflateCopy+set}" = set; then :
9782 $as_echo_n "(cached) " >&6
9783 else
9784 ac_check_lib_save_LIBS=$LIBS
9785 LIBS="-lz $LIBS"
9786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9787 /* end confdefs.h. */
9789 /* Override any GCC internal prototype to avoid an error.
9790 Use char because int might match the return type of a GCC
9791 builtin and then its argument prototype would still apply. */
9792 #ifdef __cplusplus
9793 extern "C"
9794 #endif
9795 char inflateCopy ();
9797 main ()
9799 return inflateCopy ();
9801 return 0;
9803 _ACEOF
9804 if ac_fn_c_try_link "$LINENO"; then :
9805 ac_cv_lib_z_inflateCopy=yes
9806 else
9807 ac_cv_lib_z_inflateCopy=no
9809 rm -f core conftest.err conftest.$ac_objext \
9810 conftest$ac_exeext conftest.$ac_ext
9811 LIBS=$ac_check_lib_save_LIBS
9813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5
9814 $as_echo "$ac_cv_lib_z_inflateCopy" >&6; }
9815 if test "x$ac_cv_lib_z_inflateCopy" = x""yes; then :
9817 $as_echo "#define HAVE_ZLIB_COPY 1" >>confdefs.h
9822 case $ac_sys_system/$ac_sys_release in
9823 Darwin/*)
9824 CFLAGS="${_CUR_CFLAGS}"
9825 LDFLAGS="${_CUR_LDFLAGS}"
9827 esac
9829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hstrerror" >&5
9830 $as_echo_n "checking for hstrerror... " >&6; }
9831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9832 /* end confdefs.h. */
9834 #include "confdefs.h"
9835 #include <netdb.h>
9838 main ()
9840 void* p = hstrerror; hstrerror(0)
9842 return 0;
9844 _ACEOF
9845 if ac_fn_c_try_link "$LINENO"; then :
9847 $as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h
9849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9850 $as_echo "yes" >&6; }
9851 else
9852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9853 $as_echo "no" >&6; }
9856 rm -f core conftest.err conftest.$ac_objext \
9857 conftest$ac_exeext conftest.$ac_ext
9859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton" >&5
9860 $as_echo_n "checking for inet_aton... " >&6; }
9861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9862 /* end confdefs.h. */
9864 #include "confdefs.h"
9865 #include <sys/types.h>
9866 #include <sys/socket.h>
9867 #include <netinet/in.h>
9868 #include <arpa/inet.h>
9871 main ()
9873 void* p = inet_aton;inet_aton(0,0)
9875 return 0;
9877 _ACEOF
9878 if ac_fn_c_try_link "$LINENO"; then :
9880 $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
9882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9883 $as_echo "yes" >&6; }
9884 else
9885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9886 $as_echo "no" >&6; }
9889 rm -f core conftest.err conftest.$ac_objext \
9890 conftest$ac_exeext conftest.$ac_ext
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_pton" >&5
9893 $as_echo_n "checking for inet_pton... " >&6; }
9894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9895 /* end confdefs.h. */
9897 #include "confdefs.h"
9898 #include <sys/types.h>
9899 #include <sys/socket.h>
9900 #include <netinet/in.h>
9901 #include <arpa/inet.h>
9904 main ()
9906 void* p = inet_pton
9908 return 0;
9910 _ACEOF
9911 if ac_fn_c_try_compile "$LINENO"; then :
9913 $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
9915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9916 $as_echo "yes" >&6; }
9917 else
9918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9919 $as_echo "no" >&6; }
9922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9924 # On some systems, setgroups is in unistd.h, on others, in grp.h
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setgroups" >&5
9926 $as_echo_n "checking for setgroups... " >&6; }
9927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9928 /* end confdefs.h. */
9930 #include "confdefs.h"
9931 #include <unistd.h>
9932 #ifdef HAVE_GRP_H
9933 #include <grp.h>
9934 #endif
9937 main ()
9939 void* p = setgroups
9941 return 0;
9943 _ACEOF
9944 if ac_fn_c_try_compile "$LINENO"; then :
9946 $as_echo "#define HAVE_SETGROUPS 1" >>confdefs.h
9948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9949 $as_echo "yes" >&6; }
9950 else
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9952 $as_echo "no" >&6; }
9955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9957 # check for openpty and forkpty
9959 for ac_func in openpty
9960 do :
9961 ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty"
9962 if test "x$ac_cv_func_openpty" = x""yes; then :
9963 cat >>confdefs.h <<_ACEOF
9964 #define HAVE_OPENPTY 1
9965 _ACEOF
9967 else
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
9969 $as_echo_n "checking for openpty in -lutil... " >&6; }
9970 if test "${ac_cv_lib_util_openpty+set}" = set; then :
9971 $as_echo_n "(cached) " >&6
9972 else
9973 ac_check_lib_save_LIBS=$LIBS
9974 LIBS="-lutil $LIBS"
9975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9976 /* end confdefs.h. */
9978 /* Override any GCC internal prototype to avoid an error.
9979 Use char because int might match the return type of a GCC
9980 builtin and then its argument prototype would still apply. */
9981 #ifdef __cplusplus
9982 extern "C"
9983 #endif
9984 char openpty ();
9986 main ()
9988 return openpty ();
9990 return 0;
9992 _ACEOF
9993 if ac_fn_c_try_link "$LINENO"; then :
9994 ac_cv_lib_util_openpty=yes
9995 else
9996 ac_cv_lib_util_openpty=no
9998 rm -f core conftest.err conftest.$ac_objext \
9999 conftest$ac_exeext conftest.$ac_ext
10000 LIBS=$ac_check_lib_save_LIBS
10002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
10003 $as_echo "$ac_cv_lib_util_openpty" >&6; }
10004 if test "x$ac_cv_lib_util_openpty" = x""yes; then :
10005 $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h
10006 LIBS="$LIBS -lutil"
10007 else
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lbsd" >&5
10009 $as_echo_n "checking for openpty in -lbsd... " >&6; }
10010 if test "${ac_cv_lib_bsd_openpty+set}" = set; then :
10011 $as_echo_n "(cached) " >&6
10012 else
10013 ac_check_lib_save_LIBS=$LIBS
10014 LIBS="-lbsd $LIBS"
10015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10016 /* end confdefs.h. */
10018 /* Override any GCC internal prototype to avoid an error.
10019 Use char because int might match the return type of a GCC
10020 builtin and then its argument prototype would still apply. */
10021 #ifdef __cplusplus
10022 extern "C"
10023 #endif
10024 char openpty ();
10026 main ()
10028 return openpty ();
10030 return 0;
10032 _ACEOF
10033 if ac_fn_c_try_link "$LINENO"; then :
10034 ac_cv_lib_bsd_openpty=yes
10035 else
10036 ac_cv_lib_bsd_openpty=no
10038 rm -f core conftest.err conftest.$ac_objext \
10039 conftest$ac_exeext conftest.$ac_ext
10040 LIBS=$ac_check_lib_save_LIBS
10042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_openpty" >&5
10043 $as_echo "$ac_cv_lib_bsd_openpty" >&6; }
10044 if test "x$ac_cv_lib_bsd_openpty" = x""yes; then :
10045 $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h
10046 LIBS="$LIBS -lbsd"
10054 done
10056 for ac_func in forkpty
10057 do :
10058 ac_fn_c_check_func "$LINENO" "forkpty" "ac_cv_func_forkpty"
10059 if test "x$ac_cv_func_forkpty" = x""yes; then :
10060 cat >>confdefs.h <<_ACEOF
10061 #define HAVE_FORKPTY 1
10062 _ACEOF
10064 else
10065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lutil" >&5
10066 $as_echo_n "checking for forkpty in -lutil... " >&6; }
10067 if test "${ac_cv_lib_util_forkpty+set}" = set; then :
10068 $as_echo_n "(cached) " >&6
10069 else
10070 ac_check_lib_save_LIBS=$LIBS
10071 LIBS="-lutil $LIBS"
10072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10073 /* end confdefs.h. */
10075 /* Override any GCC internal prototype to avoid an error.
10076 Use char because int might match the return type of a GCC
10077 builtin and then its argument prototype would still apply. */
10078 #ifdef __cplusplus
10079 extern "C"
10080 #endif
10081 char forkpty ();
10083 main ()
10085 return forkpty ();
10087 return 0;
10089 _ACEOF
10090 if ac_fn_c_try_link "$LINENO"; then :
10091 ac_cv_lib_util_forkpty=yes
10092 else
10093 ac_cv_lib_util_forkpty=no
10095 rm -f core conftest.err conftest.$ac_objext \
10096 conftest$ac_exeext conftest.$ac_ext
10097 LIBS=$ac_check_lib_save_LIBS
10099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_forkpty" >&5
10100 $as_echo "$ac_cv_lib_util_forkpty" >&6; }
10101 if test "x$ac_cv_lib_util_forkpty" = x""yes; then :
10102 $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h
10103 LIBS="$LIBS -lutil"
10104 else
10105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lbsd" >&5
10106 $as_echo_n "checking for forkpty in -lbsd... " >&6; }
10107 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then :
10108 $as_echo_n "(cached) " >&6
10109 else
10110 ac_check_lib_save_LIBS=$LIBS
10111 LIBS="-lbsd $LIBS"
10112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10113 /* end confdefs.h. */
10115 /* Override any GCC internal prototype to avoid an error.
10116 Use char because int might match the return type of a GCC
10117 builtin and then its argument prototype would still apply. */
10118 #ifdef __cplusplus
10119 extern "C"
10120 #endif
10121 char forkpty ();
10123 main ()
10125 return forkpty ();
10127 return 0;
10129 _ACEOF
10130 if ac_fn_c_try_link "$LINENO"; then :
10131 ac_cv_lib_bsd_forkpty=yes
10132 else
10133 ac_cv_lib_bsd_forkpty=no
10135 rm -f core conftest.err conftest.$ac_objext \
10136 conftest$ac_exeext conftest.$ac_ext
10137 LIBS=$ac_check_lib_save_LIBS
10139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_forkpty" >&5
10140 $as_echo "$ac_cv_lib_bsd_forkpty" >&6; }
10141 if test "x$ac_cv_lib_bsd_forkpty" = x""yes; then :
10142 $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h
10143 LIBS="$LIBS -lbsd"
10151 done
10154 # Stuff for expat.
10155 for ac_func in memmove
10156 do :
10157 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
10158 if test "x$ac_cv_func_memmove" = x""yes; then :
10159 cat >>confdefs.h <<_ACEOF
10160 #define HAVE_MEMMOVE 1
10161 _ACEOF
10164 done
10167 # check for long file support functions
10168 for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
10169 do :
10170 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10171 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10172 eval as_val=\$$as_ac_var
10173 if test "x$as_val" = x""yes; then :
10174 cat >>confdefs.h <<_ACEOF
10175 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10176 _ACEOF
10179 done
10182 for ac_func in dup2 getcwd strdup
10183 do :
10184 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10185 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10186 eval as_val=\$$as_ac_var
10187 if test "x$as_val" = x""yes; then :
10188 cat >>confdefs.h <<_ACEOF
10189 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10190 _ACEOF
10192 else
10193 case " $LIBOBJS " in
10194 *" $ac_func.$ac_objext "* ) ;;
10195 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
10197 esac
10200 done
10203 for ac_func in getpgrp
10204 do :
10205 ac_fn_c_check_func "$LINENO" "getpgrp" "ac_cv_func_getpgrp"
10206 if test "x$ac_cv_func_getpgrp" = x""yes; then :
10207 cat >>confdefs.h <<_ACEOF
10208 #define HAVE_GETPGRP 1
10209 _ACEOF
10210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10211 /* end confdefs.h. */
10212 #include <unistd.h>
10214 main ()
10216 getpgrp(0);
10218 return 0;
10220 _ACEOF
10221 if ac_fn_c_try_compile "$LINENO"; then :
10223 $as_echo "#define GETPGRP_HAVE_ARG 1" >>confdefs.h
10227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10230 done
10232 for ac_func in setpgrp
10233 do :
10234 ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp"
10235 if test "x$ac_cv_func_setpgrp" = x""yes; then :
10236 cat >>confdefs.h <<_ACEOF
10237 #define HAVE_SETPGRP 1
10238 _ACEOF
10239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10240 /* end confdefs.h. */
10241 #include <unistd.h>
10243 main ()
10245 setpgrp(0,0);
10247 return 0;
10249 _ACEOF
10250 if ac_fn_c_try_compile "$LINENO"; then :
10252 $as_echo "#define SETPGRP_HAVE_ARG 1" >>confdefs.h
10256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10259 done
10261 for ac_func in gettimeofday
10262 do :
10263 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
10264 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
10265 cat >>confdefs.h <<_ACEOF
10266 #define HAVE_GETTIMEOFDAY 1
10267 _ACEOF
10268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10269 /* end confdefs.h. */
10270 #include <sys/time.h>
10272 main ()
10274 gettimeofday((struct timeval*)0,(struct timezone*)0);
10276 return 0;
10278 _ACEOF
10279 if ac_fn_c_try_compile "$LINENO"; then :
10281 else
10283 $as_echo "#define GETTIMEOFDAY_NO_TZ 1" >>confdefs.h
10287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10290 done
10293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for major" >&5
10294 $as_echo_n "checking for major... " >&6; }
10295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10296 /* end confdefs.h. */
10298 #if defined(MAJOR_IN_MKDEV)
10299 #include <sys/mkdev.h>
10300 #elif defined(MAJOR_IN_SYSMACROS)
10301 #include <sys/sysmacros.h>
10302 #else
10303 #include <sys/types.h>
10304 #endif
10307 main ()
10310 makedev(major(0),minor(0));
10313 return 0;
10315 _ACEOF
10316 if ac_fn_c_try_link "$LINENO"; then :
10319 $as_echo "#define HAVE_DEVICE_MACROS 1" >>confdefs.h
10321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10322 $as_echo "yes" >&6; }
10324 else
10326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10327 $as_echo "no" >&6; }
10330 rm -f core conftest.err conftest.$ac_objext \
10331 conftest$ac_exeext conftest.$ac_ext
10333 # On OSF/1 V5.1, getaddrinfo is available, but a define
10334 # for [no]getaddrinfo in netdb.h.
10335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
10336 $as_echo_n "checking for getaddrinfo... " >&6; }
10337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10338 /* end confdefs.h. */
10340 #include <sys/types.h>
10341 #include <sys/socket.h>
10342 #include <netdb.h>
10343 #include <stdio.h>
10346 main ()
10349 getaddrinfo(NULL, NULL, NULL, NULL);
10352 return 0;
10354 _ACEOF
10355 if ac_fn_c_try_link "$LINENO"; then :
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10358 $as_echo "yes" >&6; }
10359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking getaddrinfo bug" >&5
10360 $as_echo_n "checking getaddrinfo bug... " >&6; }
10361 if test "$cross_compiling" = yes; then :
10362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy" >&5
10363 $as_echo "buggy" >&6; }
10364 buggygetaddrinfo=yes
10365 else
10366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10367 /* end confdefs.h. */
10369 #include <sys/types.h>
10370 #include <netdb.h>
10371 #include <string.h>
10372 #include <sys/socket.h>
10373 #include <netinet/in.h>
10375 main()
10377 int passive, gaierr, inet4 = 0, inet6 = 0;
10378 struct addrinfo hints, *ai, *aitop;
10379 char straddr[INET6_ADDRSTRLEN], strport[16];
10381 for (passive = 0; passive <= 1; passive++) {
10382 memset(&hints, 0, sizeof(hints));
10383 hints.ai_family = AF_UNSPEC;
10384 hints.ai_flags = passive ? AI_PASSIVE : 0;
10385 hints.ai_socktype = SOCK_STREAM;
10386 hints.ai_protocol = IPPROTO_TCP;
10387 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
10388 (void)gai_strerror(gaierr);
10389 goto bad;
10391 for (ai = aitop; ai; ai = ai->ai_next) {
10392 if (ai->ai_addr == NULL ||
10393 ai->ai_addrlen == 0 ||
10394 getnameinfo(ai->ai_addr, ai->ai_addrlen,
10395 straddr, sizeof(straddr), strport, sizeof(strport),
10396 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
10397 goto bad;
10399 switch (ai->ai_family) {
10400 case AF_INET:
10401 if (strcmp(strport, "54321") != 0) {
10402 goto bad;
10404 if (passive) {
10405 if (strcmp(straddr, "0.0.0.0") != 0) {
10406 goto bad;
10408 } else {
10409 if (strcmp(straddr, "127.0.0.1") != 0) {
10410 goto bad;
10413 inet4++;
10414 break;
10415 case AF_INET6:
10416 if (strcmp(strport, "54321") != 0) {
10417 goto bad;
10419 if (passive) {
10420 if (strcmp(straddr, "::") != 0) {
10421 goto bad;
10423 } else {
10424 if (strcmp(straddr, "::1") != 0) {
10425 goto bad;
10428 inet6++;
10429 break;
10430 case AF_UNSPEC:
10431 goto bad;
10432 break;
10433 default:
10434 /* another family support? */
10435 break;
10440 if (!(inet4 == 0 || inet4 == 2))
10441 goto bad;
10442 if (!(inet6 == 0 || inet6 == 2))
10443 goto bad;
10445 if (aitop)
10446 freeaddrinfo(aitop);
10447 exit(0);
10449 bad:
10450 if (aitop)
10451 freeaddrinfo(aitop);
10452 exit(1);
10455 _ACEOF
10456 if ac_fn_c_try_run "$LINENO"; then :
10457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: good" >&5
10458 $as_echo "good" >&6; }
10459 buggygetaddrinfo=no
10460 else
10461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy" >&5
10462 $as_echo "buggy" >&6; }
10463 buggygetaddrinfo=yes
10465 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10466 conftest.$ac_objext conftest.beam conftest.$ac_ext
10469 else
10471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10472 $as_echo "no" >&6; }
10473 buggygetaddrinfo=yes
10476 rm -f core conftest.err conftest.$ac_objext \
10477 conftest$ac_exeext conftest.$ac_ext
10479 if test "$buggygetaddrinfo" = "yes"; then
10480 if test "$ipv6" = "yes"; then
10481 echo 'Fatal: You must get working getaddrinfo() function.'
10482 echo ' or you can specify "--disable-ipv6"'.
10483 exit 1
10485 else
10487 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
10490 for ac_func in getnameinfo
10491 do :
10492 ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
10493 if test "x$ac_cv_func_getnameinfo" = x""yes; then :
10494 cat >>confdefs.h <<_ACEOF
10495 #define HAVE_GETNAMEINFO 1
10496 _ACEOF
10499 done
10502 # checks for structures
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
10504 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
10505 if test "${ac_cv_header_time+set}" = set; then :
10506 $as_echo_n "(cached) " >&6
10507 else
10508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10509 /* end confdefs.h. */
10510 #include <sys/types.h>
10511 #include <sys/time.h>
10512 #include <time.h>
10515 main ()
10517 if ((struct tm *) 0)
10518 return 0;
10520 return 0;
10522 _ACEOF
10523 if ac_fn_c_try_compile "$LINENO"; then :
10524 ac_cv_header_time=yes
10525 else
10526 ac_cv_header_time=no
10528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
10531 $as_echo "$ac_cv_header_time" >&6; }
10532 if test $ac_cv_header_time = yes; then
10534 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
10539 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
10540 if test "${ac_cv_struct_tm+set}" = set; then :
10541 $as_echo_n "(cached) " >&6
10542 else
10543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10544 /* end confdefs.h. */
10545 #include <sys/types.h>
10546 #include <time.h>
10549 main ()
10551 struct tm tm;
10552 int *p = &tm.tm_sec;
10553 return !p;
10555 return 0;
10557 _ACEOF
10558 if ac_fn_c_try_compile "$LINENO"; then :
10559 ac_cv_struct_tm=time.h
10560 else
10561 ac_cv_struct_tm=sys/time.h
10563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
10566 $as_echo "$ac_cv_struct_tm" >&6; }
10567 if test $ac_cv_struct_tm = sys/time.h; then
10569 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
10573 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
10574 #include <$ac_cv_struct_tm>
10577 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
10579 cat >>confdefs.h <<_ACEOF
10580 #define HAVE_STRUCT_TM_TM_ZONE 1
10581 _ACEOF
10586 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
10588 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
10590 else
10591 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
10593 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
10594 ac_have_decl=1
10595 else
10596 ac_have_decl=0
10599 cat >>confdefs.h <<_ACEOF
10600 #define HAVE_DECL_TZNAME $ac_have_decl
10601 _ACEOF
10603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
10604 $as_echo_n "checking for tzname... " >&6; }
10605 if test "${ac_cv_var_tzname+set}" = set; then :
10606 $as_echo_n "(cached) " >&6
10607 else
10608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10609 /* end confdefs.h. */
10610 #include <time.h>
10611 #if !HAVE_DECL_TZNAME
10612 extern char *tzname[];
10613 #endif
10616 main ()
10618 return tzname[0][0];
10620 return 0;
10622 _ACEOF
10623 if ac_fn_c_try_link "$LINENO"; then :
10624 ac_cv_var_tzname=yes
10625 else
10626 ac_cv_var_tzname=no
10628 rm -f core conftest.err conftest.$ac_objext \
10629 conftest$ac_exeext conftest.$ac_ext
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
10632 $as_echo "$ac_cv_var_tzname" >&6; }
10633 if test $ac_cv_var_tzname = yes; then
10635 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
10640 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
10641 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
10643 cat >>confdefs.h <<_ACEOF
10644 #define HAVE_STRUCT_STAT_ST_RDEV 1
10645 _ACEOF
10650 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
10651 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
10653 cat >>confdefs.h <<_ACEOF
10654 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
10655 _ACEOF
10660 ac_fn_c_check_member "$LINENO" "struct stat" "st_flags" "ac_cv_member_struct_stat_st_flags" "$ac_includes_default"
10661 if test "x$ac_cv_member_struct_stat_st_flags" = x""yes; then :
10663 cat >>confdefs.h <<_ACEOF
10664 #define HAVE_STRUCT_STAT_ST_FLAGS 1
10665 _ACEOF
10670 ac_fn_c_check_member "$LINENO" "struct stat" "st_gen" "ac_cv_member_struct_stat_st_gen" "$ac_includes_default"
10671 if test "x$ac_cv_member_struct_stat_st_gen" = x""yes; then :
10673 cat >>confdefs.h <<_ACEOF
10674 #define HAVE_STRUCT_STAT_ST_GEN 1
10675 _ACEOF
10680 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "$ac_includes_default"
10681 if test "x$ac_cv_member_struct_stat_st_birthtime" = x""yes; then :
10683 cat >>confdefs.h <<_ACEOF
10684 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
10685 _ACEOF
10690 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
10691 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
10693 cat >>confdefs.h <<_ACEOF
10694 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
10695 _ACEOF
10698 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
10700 else
10701 case " $LIBOBJS " in
10702 *" fileblocks.$ac_objext "* ) ;;
10703 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
10705 esac
10711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for time.h that defines altzone" >&5
10712 $as_echo_n "checking for time.h that defines altzone... " >&6; }
10713 if test "${ac_cv_header_time_altzone+set}" = set; then :
10714 $as_echo_n "(cached) " >&6
10715 else
10716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10717 /* end confdefs.h. */
10718 #include <time.h>
10720 main ()
10722 return altzone;
10724 return 0;
10726 _ACEOF
10727 if ac_fn_c_try_compile "$LINENO"; then :
10728 ac_cv_header_time_altzone=yes
10729 else
10730 ac_cv_header_time_altzone=no
10732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time_altzone" >&5
10736 $as_echo "$ac_cv_header_time_altzone" >&6; }
10737 if test $ac_cv_header_time_altzone = yes; then
10739 $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h
10743 was_it_defined=no
10744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5
10745 $as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; }
10746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10747 /* end confdefs.h. */
10749 #include <sys/types.h>
10750 #include <sys/select.h>
10751 #include <sys/time.h>
10754 main ()
10758 return 0;
10760 _ACEOF
10761 if ac_fn_c_try_compile "$LINENO"; then :
10764 $as_echo "#define SYS_SELECT_WITH_SYS_TIME 1" >>confdefs.h
10766 was_it_defined=yes
10769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5
10771 $as_echo "$was_it_defined" >&6; }
10773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for addrinfo" >&5
10774 $as_echo_n "checking for addrinfo... " >&6; }
10775 if test "${ac_cv_struct_addrinfo+set}" = set; then :
10776 $as_echo_n "(cached) " >&6
10777 else
10778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10779 /* end confdefs.h. */
10781 # include <netdb.h>
10783 main ()
10785 struct addrinfo a
10787 return 0;
10789 _ACEOF
10790 if ac_fn_c_try_compile "$LINENO"; then :
10791 ac_cv_struct_addrinfo=yes
10792 else
10793 ac_cv_struct_addrinfo=no
10795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_addrinfo" >&5
10799 $as_echo "$ac_cv_struct_addrinfo" >&6; }
10800 if test $ac_cv_struct_addrinfo = yes; then
10802 $as_echo "#define HAVE_ADDRINFO 1" >>confdefs.h
10806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage" >&5
10807 $as_echo_n "checking for sockaddr_storage... " >&6; }
10808 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then :
10809 $as_echo_n "(cached) " >&6
10810 else
10811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10812 /* end confdefs.h. */
10814 # include <sys/types.h>
10815 # include <sys/socket.h>
10817 main ()
10819 struct sockaddr_storage s
10821 return 0;
10823 _ACEOF
10824 if ac_fn_c_try_compile "$LINENO"; then :
10825 ac_cv_struct_sockaddr_storage=yes
10826 else
10827 ac_cv_struct_sockaddr_storage=no
10829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_storage" >&5
10833 $as_echo "$ac_cv_struct_sockaddr_storage" >&6; }
10834 if test $ac_cv_struct_sockaddr_storage = yes; then
10836 $as_echo "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h
10840 # checks for compiler characteristics
10842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
10843 $as_echo_n "checking whether char is unsigned... " >&6; }
10844 if test "${ac_cv_c_char_unsigned+set}" = set; then :
10845 $as_echo_n "(cached) " >&6
10846 else
10847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10848 /* end confdefs.h. */
10849 $ac_includes_default
10851 main ()
10853 static int test_array [1 - 2 * !(((char) -1) < 0)];
10854 test_array [0] = 0
10857 return 0;
10859 _ACEOF
10860 if ac_fn_c_try_compile "$LINENO"; then :
10861 ac_cv_c_char_unsigned=no
10862 else
10863 ac_cv_c_char_unsigned=yes
10865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
10868 $as_echo "$ac_cv_c_char_unsigned" >&6; }
10869 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
10870 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
10874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
10875 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
10876 if test "${ac_cv_c_const+set}" = set; then :
10877 $as_echo_n "(cached) " >&6
10878 else
10879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10880 /* end confdefs.h. */
10883 main ()
10885 /* FIXME: Include the comments suggested by Paul. */
10886 #ifndef __cplusplus
10887 /* Ultrix mips cc rejects this. */
10888 typedef int charset[2];
10889 const charset cs;
10890 /* SunOS 4.1.1 cc rejects this. */
10891 char const *const *pcpcc;
10892 char **ppc;
10893 /* NEC SVR4.0.2 mips cc rejects this. */
10894 struct point {int x, y;};
10895 static struct point const zero = {0,0};
10896 /* AIX XL C 1.02.0.0 rejects this.
10897 It does not let you subtract one const X* pointer from another in
10898 an arm of an if-expression whose if-part is not a constant
10899 expression */
10900 const char *g = "string";
10901 pcpcc = &g + (g ? g-g : 0);
10902 /* HPUX 7.0 cc rejects these. */
10903 ++pcpcc;
10904 ppc = (char**) pcpcc;
10905 pcpcc = (char const *const *) ppc;
10906 { /* SCO 3.2v4 cc rejects this. */
10907 char *t;
10908 char const *s = 0 ? (char *) 0 : (char const *) 0;
10910 *t++ = 0;
10911 if (s) return 0;
10913 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10914 int x[] = {25, 17};
10915 const int *foo = &x[0];
10916 ++foo;
10918 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10919 typedef const int *iptr;
10920 iptr p = 0;
10921 ++p;
10923 { /* AIX XL C 1.02.0.0 rejects this saying
10924 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10925 struct s { int j; const int *ap[3]; };
10926 struct s *b; b->j = 5;
10928 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10929 const int foo = 10;
10930 if (!foo) return 0;
10932 return !cs[0] && !zero.x;
10933 #endif
10936 return 0;
10938 _ACEOF
10939 if ac_fn_c_try_compile "$LINENO"; then :
10940 ac_cv_c_const=yes
10941 else
10942 ac_cv_c_const=no
10944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
10947 $as_echo "$ac_cv_c_const" >&6; }
10948 if test $ac_cv_c_const = no; then
10950 $as_echo "#define const /**/" >>confdefs.h
10955 works=no
10956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
10957 $as_echo_n "checking for working volatile... " >&6; }
10958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10959 /* end confdefs.h. */
10962 main ()
10964 volatile int x; x = 0;
10966 return 0;
10968 _ACEOF
10969 if ac_fn_c_try_compile "$LINENO"; then :
10970 works=yes
10971 else
10973 $as_echo "#define volatile /**/" >>confdefs.h
10977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5
10979 $as_echo "$works" >&6; }
10981 works=no
10982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working signed char" >&5
10983 $as_echo_n "checking for working signed char... " >&6; }
10984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10985 /* end confdefs.h. */
10988 main ()
10990 signed char c;
10992 return 0;
10994 _ACEOF
10995 if ac_fn_c_try_compile "$LINENO"; then :
10996 works=yes
10997 else
10999 $as_echo "#define signed /**/" >>confdefs.h
11003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5
11005 $as_echo "$works" >&6; }
11007 have_prototypes=no
11008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prototypes" >&5
11009 $as_echo_n "checking for prototypes... " >&6; }
11010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11011 /* end confdefs.h. */
11012 int foo(int x) { return 0; }
11014 main ()
11016 return foo(10);
11018 return 0;
11020 _ACEOF
11021 if ac_fn_c_try_compile "$LINENO"; then :
11024 $as_echo "#define HAVE_PROTOTYPES 1" >>confdefs.h
11026 have_prototypes=yes
11029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_prototypes" >&5
11031 $as_echo "$have_prototypes" >&6; }
11033 works=no
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for variable length prototypes and stdarg.h" >&5
11035 $as_echo_n "checking for variable length prototypes and stdarg.h... " >&6; }
11036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11037 /* end confdefs.h. */
11039 #include <stdarg.h>
11040 int foo(int x, ...) {
11041 va_list va;
11042 va_start(va, x);
11043 va_arg(va, int);
11044 va_arg(va, char *);
11045 va_arg(va, double);
11046 return 0;
11050 main ()
11052 return foo(10, "", 3.14);
11054 return 0;
11056 _ACEOF
11057 if ac_fn_c_try_compile "$LINENO"; then :
11060 $as_echo "#define HAVE_STDARG_PROTOTYPES 1" >>confdefs.h
11062 works=yes
11065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5
11067 $as_echo "$works" >&6; }
11069 # check for socketpair
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socketpair" >&5
11071 $as_echo_n "checking for socketpair... " >&6; }
11072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11073 /* end confdefs.h. */
11075 #include <sys/types.h>
11076 #include <sys/socket.h>
11079 main ()
11081 void *x=socketpair
11083 return 0;
11085 _ACEOF
11086 if ac_fn_c_try_compile "$LINENO"; then :
11088 $as_echo "#define HAVE_SOCKETPAIR 1" >>confdefs.h
11090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11091 $as_echo "yes" >&6; }
11092 else
11093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11094 $as_echo "no" >&6; }
11097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11099 # check if sockaddr has sa_len member
11100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr has sa_len member" >&5
11101 $as_echo_n "checking if sockaddr has sa_len member... " >&6; }
11102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11103 /* end confdefs.h. */
11104 #include <sys/types.h>
11105 #include <sys/socket.h>
11107 main ()
11109 struct sockaddr x;
11110 x.sa_len = 0;
11112 return 0;
11114 _ACEOF
11115 if ac_fn_c_try_compile "$LINENO"; then :
11116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11117 $as_echo "yes" >&6; }
11119 $as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h
11121 else
11122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11123 $as_echo "no" >&6; }
11125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11127 va_list_is_array=no
11128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether va_list is an array" >&5
11129 $as_echo_n "checking whether va_list is an array... " >&6; }
11130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11131 /* end confdefs.h. */
11133 #ifdef HAVE_STDARG_PROTOTYPES
11134 #include <stdarg.h>
11135 #else
11136 #include <varargs.h>
11137 #endif
11140 main ()
11142 va_list list1, list2; list1 = list2;
11144 return 0;
11146 _ACEOF
11147 if ac_fn_c_try_compile "$LINENO"; then :
11149 else
11152 $as_echo "#define VA_LIST_IS_ARRAY 1" >>confdefs.h
11154 va_list_is_array=yes
11157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $va_list_is_array" >&5
11159 $as_echo "$va_list_is_array" >&6; }
11161 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
11164 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
11165 if test "x$ac_cv_func_gethostbyname_r" = x""yes; then :
11167 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
11169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 6 args" >&5
11170 $as_echo_n "checking gethostbyname_r with 6 args... " >&6; }
11171 OLD_CFLAGS=$CFLAGS
11172 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
11173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11174 /* end confdefs.h. */
11176 # include <netdb.h>
11179 main ()
11182 char *name;
11183 struct hostent *he, *res;
11184 char buffer[2048];
11185 int buflen = 2048;
11186 int h_errnop;
11188 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
11191 return 0;
11193 _ACEOF
11194 if ac_fn_c_try_compile "$LINENO"; then :
11196 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
11199 $as_echo "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11202 $as_echo "yes" >&6; }
11204 else
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11207 $as_echo "no" >&6; }
11208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 5 args" >&5
11209 $as_echo_n "checking gethostbyname_r with 5 args... " >&6; }
11210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11211 /* end confdefs.h. */
11213 # include <netdb.h>
11216 main ()
11219 char *name;
11220 struct hostent *he;
11221 char buffer[2048];
11222 int buflen = 2048;
11223 int h_errnop;
11225 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
11228 return 0;
11230 _ACEOF
11231 if ac_fn_c_try_compile "$LINENO"; then :
11233 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
11236 $as_echo "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h
11238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11239 $as_echo "yes" >&6; }
11241 else
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11244 $as_echo "no" >&6; }
11245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 3 args" >&5
11246 $as_echo_n "checking gethostbyname_r with 3 args... " >&6; }
11247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11248 /* end confdefs.h. */
11250 # include <netdb.h>
11253 main ()
11256 char *name;
11257 struct hostent *he;
11258 struct hostent_data data;
11260 (void) gethostbyname_r(name, he, &data);
11263 return 0;
11265 _ACEOF
11266 if ac_fn_c_try_compile "$LINENO"; then :
11268 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
11271 $as_echo "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11274 $as_echo "yes" >&6; }
11276 else
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11279 $as_echo "no" >&6; }
11282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11289 CFLAGS=$OLD_CFLAGS
11291 else
11293 for ac_func in gethostbyname
11294 do :
11295 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
11296 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
11297 cat >>confdefs.h <<_ACEOF
11298 #define HAVE_GETHOSTBYNAME 1
11299 _ACEOF
11302 done
11313 # checks for system services
11314 # (none yet)
11316 # Linux requires this for correct f.p. operations
11317 ac_fn_c_check_func "$LINENO" "__fpu_control" "ac_cv_func___fpu_control"
11318 if test "x$ac_cv_func___fpu_control" = x""yes; then :
11320 else
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __fpu_control in -lieee" >&5
11322 $as_echo_n "checking for __fpu_control in -lieee... " >&6; }
11323 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then :
11324 $as_echo_n "(cached) " >&6
11325 else
11326 ac_check_lib_save_LIBS=$LIBS
11327 LIBS="-lieee $LIBS"
11328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11329 /* end confdefs.h. */
11331 /* Override any GCC internal prototype to avoid an error.
11332 Use char because int might match the return type of a GCC
11333 builtin and then its argument prototype would still apply. */
11334 #ifdef __cplusplus
11335 extern "C"
11336 #endif
11337 char __fpu_control ();
11339 main ()
11341 return __fpu_control ();
11343 return 0;
11345 _ACEOF
11346 if ac_fn_c_try_link "$LINENO"; then :
11347 ac_cv_lib_ieee___fpu_control=yes
11348 else
11349 ac_cv_lib_ieee___fpu_control=no
11351 rm -f core conftest.err conftest.$ac_objext \
11352 conftest$ac_exeext conftest.$ac_ext
11353 LIBS=$ac_check_lib_save_LIBS
11355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ieee___fpu_control" >&5
11356 $as_echo "$ac_cv_lib_ieee___fpu_control" >&6; }
11357 if test "x$ac_cv_lib_ieee___fpu_control" = x""yes; then :
11358 cat >>confdefs.h <<_ACEOF
11359 #define HAVE_LIBIEEE 1
11360 _ACEOF
11362 LIBS="-lieee $LIBS"
11370 # Check for --with-fpectl
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-fpectl" >&5
11372 $as_echo_n "checking for --with-fpectl... " >&6; }
11374 # Check whether --with-fpectl was given.
11375 if test "${with_fpectl+set}" = set; then :
11376 withval=$with_fpectl;
11377 if test "$withval" != no
11378 then
11380 $as_echo "#define WANT_SIGFPE_HANDLER 1" >>confdefs.h
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11383 $as_echo "yes" >&6; }
11384 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11385 $as_echo "no" >&6; }
11387 else
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11389 $as_echo "no" >&6; }
11393 # check for --with-libm=...
11395 case $ac_sys_system in
11396 Darwin) ;;
11397 *) LIBM=-lm
11398 esac
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libm=STRING" >&5
11400 $as_echo_n "checking for --with-libm=STRING... " >&6; }
11402 # Check whether --with-libm was given.
11403 if test "${with_libm+set}" = set; then :
11404 withval=$with_libm;
11405 if test "$withval" = no
11406 then LIBM=
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBM empty" >&5
11408 $as_echo "force LIBM empty" >&6; }
11409 elif test "$withval" != yes
11410 then LIBM=$withval
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBM=\"$withval\"" >&5
11412 $as_echo "set LIBM=\"$withval\"" >&6; }
11413 else as_fn_error "proper usage is --with-libm=STRING" "$LINENO" 5
11415 else
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBM=\"$LIBM\"" >&5
11417 $as_echo "default LIBM=\"$LIBM\"" >&6; }
11421 # check for --with-libc=...
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libc=STRING" >&5
11424 $as_echo_n "checking for --with-libc=STRING... " >&6; }
11426 # Check whether --with-libc was given.
11427 if test "${with_libc+set}" = set; then :
11428 withval=$with_libc;
11429 if test "$withval" = no
11430 then LIBC=
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBC empty" >&5
11432 $as_echo "force LIBC empty" >&6; }
11433 elif test "$withval" != yes
11434 then LIBC=$withval
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBC=\"$withval\"" >&5
11436 $as_echo "set LIBC=\"$withval\"" >&6; }
11437 else as_fn_error "proper usage is --with-libc=STRING" "$LINENO" 5
11439 else
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBC=\"$LIBC\"" >&5
11441 $as_echo "default LIBC=\"$LIBC\"" >&6; }
11445 # **************************************************
11446 # * Check for various properties of floating point *
11447 # **************************************************
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are little-endian IEEE 754 binary64" >&5
11450 $as_echo_n "checking whether C doubles are little-endian IEEE 754 binary64... " >&6; }
11451 if test "${ac_cv_little_endian_double+set}" = set; then :
11452 $as_echo_n "(cached) " >&6
11453 else
11455 if test "$cross_compiling" = yes; then :
11456 ac_cv_little_endian_double=no
11457 else
11458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11459 /* end confdefs.h. */
11461 #include <string.h>
11462 int main() {
11463 double x = 9006104071832581.0;
11464 if (memcmp(&x, "\x05\x04\x03\x02\x01\xff\x3f\x43", 8) == 0)
11465 return 0;
11466 else
11467 return 1;
11470 _ACEOF
11471 if ac_fn_c_try_run "$LINENO"; then :
11472 ac_cv_little_endian_double=yes
11473 else
11474 ac_cv_little_endian_double=no
11476 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11477 conftest.$ac_objext conftest.beam conftest.$ac_ext
11482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_little_endian_double" >&5
11483 $as_echo "$ac_cv_little_endian_double" >&6; }
11484 if test "$ac_cv_little_endian_double" = yes
11485 then
11487 $as_echo "#define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1" >>confdefs.h
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are big-endian IEEE 754 binary64" >&5
11492 $as_echo_n "checking whether C doubles are big-endian IEEE 754 binary64... " >&6; }
11493 if test "${ac_cv_big_endian_double+set}" = set; then :
11494 $as_echo_n "(cached) " >&6
11495 else
11497 if test "$cross_compiling" = yes; then :
11498 ac_cv_big_endian_double=no
11499 else
11500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11501 /* end confdefs.h. */
11503 #include <string.h>
11504 int main() {
11505 double x = 9006104071832581.0;
11506 if (memcmp(&x, "\x43\x3f\xff\x01\x02\x03\x04\x05", 8) == 0)
11507 return 0;
11508 else
11509 return 1;
11512 _ACEOF
11513 if ac_fn_c_try_run "$LINENO"; then :
11514 ac_cv_big_endian_double=yes
11515 else
11516 ac_cv_big_endian_double=no
11518 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11519 conftest.$ac_objext conftest.beam conftest.$ac_ext
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_big_endian_double" >&5
11525 $as_echo "$ac_cv_big_endian_double" >&6; }
11526 if test "$ac_cv_big_endian_double" = yes
11527 then
11529 $as_echo "#define DOUBLE_IS_BIG_ENDIAN_IEEE754 1" >>confdefs.h
11533 # Some ARM platforms use a mixed-endian representation for doubles.
11534 # While Python doesn't currently have full support for these platforms
11535 # (see e.g., issue 1762561), we can at least make sure that float <-> string
11536 # conversions work.
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are ARM mixed-endian IEEE 754 binary64" >&5
11538 $as_echo_n "checking whether C doubles are ARM mixed-endian IEEE 754 binary64... " >&6; }
11539 if test "${ac_cv_mixed_endian_double+set}" = set; then :
11540 $as_echo_n "(cached) " >&6
11541 else
11543 if test "$cross_compiling" = yes; then :
11544 ac_cv_mixed_endian_double=no
11545 else
11546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11547 /* end confdefs.h. */
11549 #include <string.h>
11550 int main() {
11551 double x = 9006104071832581.0;
11552 if (memcmp(&x, "\x01\xff\x3f\x43\x05\x04\x03\x02", 8) == 0)
11553 return 0;
11554 else
11555 return 1;
11558 _ACEOF
11559 if ac_fn_c_try_run "$LINENO"; then :
11560 ac_cv_mixed_endian_double=yes
11561 else
11562 ac_cv_mixed_endian_double=no
11564 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11565 conftest.$ac_objext conftest.beam conftest.$ac_ext
11570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mixed_endian_double" >&5
11571 $as_echo "$ac_cv_mixed_endian_double" >&6; }
11572 if test "$ac_cv_mixed_endian_double" = yes
11573 then
11575 $as_echo "#define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1" >>confdefs.h
11579 # The short float repr introduced in Python 3.1 requires the
11580 # correctly-rounded string <-> double conversion functions from
11581 # Python/dtoa.c, which in turn require that the FPU uses 53-bit
11582 # rounding; this is a problem on x86, where the x87 FPU has a default
11583 # rounding precision of 64 bits. For gcc/x86, we try to fix this by
11584 # using inline assembler to get and set the x87 FPU control word.
11585 if test "$GCC" = yes && test -n "`$CC -dM -E - </dev/null | grep i386`"
11586 then
11587 # Check that it's okay to use gcc inline assembler to get and set
11588 # x87 control word. It should be, but you never know...
11589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set x87 control word" >&5
11590 $as_echo_n "checking whether we can use gcc inline assembler to get and set x87 control word... " >&6; }
11591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11592 /* end confdefs.h. */
11595 main ()
11598 unsigned short cw;
11599 __asm__ __volatile__ ("fnstcw %0" : "=m" (cw));
11600 __asm__ __volatile__ ("fldcw %0" : : "m" (cw));
11603 return 0;
11605 _ACEOF
11606 if ac_fn_c_try_compile "$LINENO"; then :
11607 have_gcc_asm_for_x87=yes
11608 else
11609 have_gcc_asm_for_x87=no
11611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_x87" >&5
11613 $as_echo "$have_gcc_asm_for_x87" >&6; }
11614 if test "$have_gcc_asm_for_x87" = yes
11615 then
11617 $as_echo "#define HAVE_GCC_ASM_FOR_X87 1" >>confdefs.h
11622 # Detect whether system arithmetic is subject to x87-style double
11623 # rounding issues. The result of this test has little meaning on non
11624 # IEEE 754 platforms. On IEEE 754, test should return 1 if rounding
11625 # mode is round-to-nearest and double rounding issues are present, and
11626 # 0 otherwise. See http://bugs.python.org/issue2937 for more info.
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x87-style double rounding" >&5
11628 $as_echo_n "checking for x87-style double rounding... " >&6; }
11629 # $BASECFLAGS may affect the result
11630 ac_save_cc="$CC"
11631 CC="$CC $BASECFLAGS"
11632 if test "$cross_compiling" = yes; then :
11633 ac_cv_x87_double_rounding=no
11634 else
11635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11636 /* end confdefs.h. */
11638 #include <stdlib.h>
11639 #include <math.h>
11640 int main() {
11641 volatile double x, y, z;
11642 /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */
11643 x = 0.99999999999999989; /* 1-2**-53 */
11644 y = 1./x;
11645 if (y != 1.)
11646 exit(0);
11647 /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */
11648 x = 1e16;
11649 y = 2.99999;
11650 z = x + y;
11651 if (z != 1e16+4.)
11652 exit(0);
11653 /* both tests show evidence of double rounding */
11654 exit(1);
11657 _ACEOF
11658 if ac_fn_c_try_run "$LINENO"; then :
11659 ac_cv_x87_double_rounding=no
11660 else
11661 ac_cv_x87_double_rounding=yes
11663 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11664 conftest.$ac_objext conftest.beam conftest.$ac_ext
11667 CC="$ac_save_cc"
11668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_x87_double_rounding" >&5
11669 $as_echo "$ac_cv_x87_double_rounding" >&6; }
11670 if test "$ac_cv_x87_double_rounding" = yes
11671 then
11673 $as_echo "#define X87_DOUBLE_ROUNDING 1" >>confdefs.h
11677 # ************************************
11678 # * Check for mathematical functions *
11679 # ************************************
11681 LIBS_SAVE=$LIBS
11682 LIBS="$LIBS $LIBM"
11684 # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of
11685 # -0. on some architectures.
11686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tanh preserves the sign of zero" >&5
11687 $as_echo_n "checking whether tanh preserves the sign of zero... " >&6; }
11688 if test "${ac_cv_tanh_preserves_zero_sign+set}" = set; then :
11689 $as_echo_n "(cached) " >&6
11690 else
11692 if test "$cross_compiling" = yes; then :
11693 ac_cv_tanh_preserves_zero_sign=no
11694 else
11695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11696 /* end confdefs.h. */
11698 #include <math.h>
11699 #include <stdlib.h>
11700 int main() {
11701 /* return 0 if either negative zeros don't exist
11702 on this platform or if negative zeros exist
11703 and tanh(-0.) == -0. */
11704 if (atan2(0., -1.) == atan2(-0., -1.) ||
11705 atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0);
11706 else exit(1);
11709 _ACEOF
11710 if ac_fn_c_try_run "$LINENO"; then :
11711 ac_cv_tanh_preserves_zero_sign=yes
11712 else
11713 ac_cv_tanh_preserves_zero_sign=no
11715 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11716 conftest.$ac_objext conftest.beam conftest.$ac_ext
11721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tanh_preserves_zero_sign" >&5
11722 $as_echo "$ac_cv_tanh_preserves_zero_sign" >&6; }
11723 if test "$ac_cv_tanh_preserves_zero_sign" = yes
11724 then
11726 $as_echo "#define TANH_PRESERVES_ZERO_SIGN 1" >>confdefs.h
11730 for ac_func in acosh asinh atanh copysign expm1 finite hypot log1p round
11731 do :
11732 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11733 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11734 eval as_val=\$$as_ac_var
11735 if test "x$as_val" = x""yes; then :
11736 cat >>confdefs.h <<_ACEOF
11737 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11738 _ACEOF
11741 done
11743 ac_fn_c_check_decl "$LINENO" "isinf" "ac_cv_have_decl_isinf" "#include <math.h>
11745 if test "x$ac_cv_have_decl_isinf" = x""yes; then :
11746 ac_have_decl=1
11747 else
11748 ac_have_decl=0
11751 cat >>confdefs.h <<_ACEOF
11752 #define HAVE_DECL_ISINF $ac_have_decl
11753 _ACEOF
11754 ac_fn_c_check_decl "$LINENO" "isnan" "ac_cv_have_decl_isnan" "#include <math.h>
11756 if test "x$ac_cv_have_decl_isnan" = x""yes; then :
11757 ac_have_decl=1
11758 else
11759 ac_have_decl=0
11762 cat >>confdefs.h <<_ACEOF
11763 #define HAVE_DECL_ISNAN $ac_have_decl
11764 _ACEOF
11765 ac_fn_c_check_decl "$LINENO" "isfinite" "ac_cv_have_decl_isfinite" "#include <math.h>
11767 if test "x$ac_cv_have_decl_isfinite" = x""yes; then :
11768 ac_have_decl=1
11769 else
11770 ac_have_decl=0
11773 cat >>confdefs.h <<_ACEOF
11774 #define HAVE_DECL_ISFINITE $ac_have_decl
11775 _ACEOF
11778 LIBS=$LIBS_SAVE
11780 # For multiprocessing module, check that sem_open
11781 # actually works. For FreeBSD versions <= 7.2,
11782 # the kernel module that provides POSIX semaphores
11783 # isn't loaded by default, so an attempt to call
11784 # sem_open results in a 'Signal 12' error.
11785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX semaphores are enabled" >&5
11786 $as_echo_n "checking whether POSIX semaphores are enabled... " >&6; }
11787 if test "${ac_cv_posix_semaphores_enabled+set}" = set; then :
11788 $as_echo_n "(cached) " >&6
11789 else
11790 if test "$cross_compiling" = yes; then :
11791 ac_cv_posix_semaphores_enabled=yes
11792 else
11793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11794 /* end confdefs.h. */
11796 #include <unistd.h>
11797 #include <fcntl.h>
11798 #include <stdio.h>
11799 #include <semaphore.h>
11800 #include <sys/stat.h>
11802 int main(void) {
11803 sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0);
11804 if (a == SEM_FAILED) {
11805 perror("sem_open");
11806 return 1;
11808 sem_close(a);
11809 sem_unlink("/autoconf");
11810 return 0;
11813 _ACEOF
11814 if ac_fn_c_try_run "$LINENO"; then :
11815 ac_cv_posix_semaphores_enabled=yes
11816 else
11817 ac_cv_posix_semaphores_enabled=no
11819 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11820 conftest.$ac_objext conftest.beam conftest.$ac_ext
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_semaphores_enabled" >&5
11827 $as_echo "$ac_cv_posix_semaphores_enabled" >&6; }
11828 if test $ac_cv_posix_semaphores_enabled = no
11829 then
11831 $as_echo "#define POSIX_SEMAPHORES_NOT_ENABLED 1" >>confdefs.h
11835 # Multiprocessing check for broken sem_getvalue
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken sem_getvalue" >&5
11837 $as_echo_n "checking for broken sem_getvalue... " >&6; }
11838 if test "$cross_compiling" = yes; then :
11839 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11840 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11841 as_fn_error "cannot run test program while cross compiling
11842 See \`config.log' for more details." "$LINENO" 5; }
11843 else
11844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11845 /* end confdefs.h. */
11847 #include <unistd.h>
11848 #include <fcntl.h>
11849 #include <stdio.h>
11850 #include <semaphore.h>
11851 #include <sys/stat.h>
11853 int main(void){
11854 sem_t *a = sem_open("/autocftw", O_CREAT, S_IRUSR|S_IWUSR, 0);
11855 int count;
11856 int res;
11857 if(a==SEM_FAILED){
11858 perror("sem_open");
11859 return 1;
11862 res = sem_getvalue(a, &count);
11863 sem_close(a);
11864 sem_unlink("/autocftw");
11865 return res==-1 ? 1 : 0;
11869 _ACEOF
11870 if ac_fn_c_try_run "$LINENO"; then :
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11872 $as_echo "no" >&6; }
11873 else
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11875 $as_echo "yes" >&6; }
11877 $as_echo "#define HAVE_BROKEN_SEM_GETVALUE 1" >>confdefs.h
11881 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11882 conftest.$ac_objext conftest.beam conftest.$ac_ext
11886 # determine what size digit to use for Python's longs
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking digit size for Python's longs" >&5
11888 $as_echo_n "checking digit size for Python's longs... " >&6; }
11889 # Check whether --enable-big-digits was given.
11890 if test "${enable_big_digits+set}" = set; then :
11891 enableval=$enable_big_digits; case $enable_big_digits in
11892 yes)
11893 enable_big_digits=30 ;;
11895 enable_big_digits=15 ;;
11896 15|30)
11899 as_fn_error "bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" "$LINENO" 5 ;;
11900 esac
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_big_digits" >&5
11902 $as_echo "$enable_big_digits" >&6; }
11904 cat >>confdefs.h <<_ACEOF
11905 #define PYLONG_BITS_IN_DIGIT $enable_big_digits
11906 _ACEOF
11909 else
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5
11911 $as_echo "no value specified" >&6; }
11915 # check for wchar.h
11916 ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
11917 if test "x$ac_cv_header_wchar_h" = x""yes; then :
11920 $as_echo "#define HAVE_WCHAR_H 1" >>confdefs.h
11922 wchar_h="yes"
11924 else
11925 wchar_h="no"
11931 # determine wchar_t size
11932 if test "$wchar_h" = yes
11933 then
11934 # The cast to long int works around a bug in the HP C Compiler
11935 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11936 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11937 # This bug is HP SR number 8606223364.
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5
11939 $as_echo_n "checking size of wchar_t... " >&6; }
11940 if test "${ac_cv_sizeof_wchar_t+set}" = set; then :
11941 $as_echo_n "(cached) " >&6
11942 else
11943 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" "#include <wchar.h>
11944 "; then :
11946 else
11947 if test "$ac_cv_type_wchar_t" = yes; then
11948 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11949 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11950 { as_fn_set_status 77
11951 as_fn_error "cannot compute sizeof (wchar_t)
11952 See \`config.log' for more details." "$LINENO" 5; }; }
11953 else
11954 ac_cv_sizeof_wchar_t=0
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5
11960 $as_echo "$ac_cv_sizeof_wchar_t" >&6; }
11964 cat >>confdefs.h <<_ACEOF
11965 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
11966 _ACEOF
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UCS-4 tcl" >&5
11972 $as_echo_n "checking for UCS-4 tcl... " >&6; }
11973 have_ucs4_tcl=no
11974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11975 /* end confdefs.h. */
11977 #include <tcl.h>
11978 #if TCL_UTF_MAX != 6
11979 # error "NOT UCS4_TCL"
11980 #endif
11982 main ()
11986 return 0;
11988 _ACEOF
11989 if ac_fn_c_try_compile "$LINENO"; then :
11992 $as_echo "#define HAVE_UCS4_TCL 1" >>confdefs.h
11994 have_ucs4_tcl=yes
11997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ucs4_tcl" >&5
11999 $as_echo "$have_ucs4_tcl" >&6; }
12001 # check whether wchar_t is signed or not
12002 if test "$wchar_h" = yes
12003 then
12004 # check whether wchar_t is signed or not
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wchar_t is signed" >&5
12006 $as_echo_n "checking whether wchar_t is signed... " >&6; }
12007 if test "${ac_cv_wchar_t_signed+set}" = set; then :
12008 $as_echo_n "(cached) " >&6
12009 else
12011 if test "$cross_compiling" = yes; then :
12012 ac_cv_wchar_t_signed=yes
12013 else
12014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12015 /* end confdefs.h. */
12017 #include <wchar.h>
12018 int main()
12020 /* Success: exit code 0 */
12021 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
12024 _ACEOF
12025 if ac_fn_c_try_run "$LINENO"; then :
12026 ac_cv_wchar_t_signed=yes
12027 else
12028 ac_cv_wchar_t_signed=no
12030 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12031 conftest.$ac_objext conftest.beam conftest.$ac_ext
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_wchar_t_signed" >&5
12037 $as_echo "$ac_cv_wchar_t_signed" >&6; }
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what type to use for str" >&5
12041 $as_echo_n "checking what type to use for str... " >&6; }
12043 # Check whether --with-wide-unicode was given.
12044 if test "${with_wide_unicode+set}" = set; then :
12045 withval=$with_wide_unicode;
12046 if test "$withval" != no
12047 then unicode_size="4"
12048 else unicode_size="2"
12051 else
12053 case "$have_ucs4_tcl" in
12054 yes) unicode_size="4" ;;
12055 *) unicode_size="2" ;;
12056 esac
12062 case "$unicode_size" in
12063 4) $as_echo "#define Py_UNICODE_SIZE 4" >>confdefs.h
12065 *) $as_echo "#define Py_UNICODE_SIZE 2" >>confdefs.h
12067 esac
12071 # wchar_t is only usable if it maps to an unsigned type
12072 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
12073 -a "$ac_cv_wchar_t_signed" = "no"
12074 then
12075 PY_UNICODE_TYPE="wchar_t"
12077 $as_echo "#define HAVE_USABLE_WCHAR_T 1" >>confdefs.h
12079 $as_echo "#define PY_UNICODE_TYPE wchar_t" >>confdefs.h
12081 elif test "$ac_cv_sizeof_short" = "$unicode_size"
12082 then
12083 PY_UNICODE_TYPE="unsigned short"
12084 $as_echo "#define PY_UNICODE_TYPE unsigned short" >>confdefs.h
12086 elif test "$ac_cv_sizeof_long" = "$unicode_size"
12087 then
12088 PY_UNICODE_TYPE="unsigned long"
12089 $as_echo "#define PY_UNICODE_TYPE unsigned long" >>confdefs.h
12091 else
12092 PY_UNICODE_TYPE="no type found"
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PY_UNICODE_TYPE" >&5
12095 $as_echo "$PY_UNICODE_TYPE" >&6; }
12097 # check for endianness
12098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12099 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12100 if test "${ac_cv_c_bigendian+set}" = set; then :
12101 $as_echo_n "(cached) " >&6
12102 else
12103 ac_cv_c_bigendian=unknown
12104 # See if we're dealing with a universal compiler.
12105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12106 /* end confdefs.h. */
12107 #ifndef __APPLE_CC__
12108 not a universal capable compiler
12109 #endif
12110 typedef int dummy;
12112 _ACEOF
12113 if ac_fn_c_try_compile "$LINENO"; then :
12115 # Check for potential -arch flags. It is not universal unless
12116 # there are at least two -arch flags with different values.
12117 ac_arch=
12118 ac_prev=
12119 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12120 if test -n "$ac_prev"; then
12121 case $ac_word in
12122 i?86 | x86_64 | ppc | ppc64)
12123 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12124 ac_arch=$ac_word
12125 else
12126 ac_cv_c_bigendian=universal
12127 break
12130 esac
12131 ac_prev=
12132 elif test "x$ac_word" = "x-arch"; then
12133 ac_prev=arch
12135 done
12137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12138 if test $ac_cv_c_bigendian = unknown; then
12139 # See if sys/param.h defines the BYTE_ORDER macro.
12140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12141 /* end confdefs.h. */
12142 #include <sys/types.h>
12143 #include <sys/param.h>
12146 main ()
12148 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12149 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12150 && LITTLE_ENDIAN)
12151 bogus endian macros
12152 #endif
12155 return 0;
12157 _ACEOF
12158 if ac_fn_c_try_compile "$LINENO"; then :
12159 # It does; now see whether it defined to BIG_ENDIAN or not.
12160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12161 /* end confdefs.h. */
12162 #include <sys/types.h>
12163 #include <sys/param.h>
12166 main ()
12168 #if BYTE_ORDER != BIG_ENDIAN
12169 not big endian
12170 #endif
12173 return 0;
12175 _ACEOF
12176 if ac_fn_c_try_compile "$LINENO"; then :
12177 ac_cv_c_bigendian=yes
12178 else
12179 ac_cv_c_bigendian=no
12181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12185 if test $ac_cv_c_bigendian = unknown; then
12186 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12188 /* end confdefs.h. */
12189 #include <limits.h>
12192 main ()
12194 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12195 bogus endian macros
12196 #endif
12199 return 0;
12201 _ACEOF
12202 if ac_fn_c_try_compile "$LINENO"; then :
12203 # It does; now see whether it defined to _BIG_ENDIAN or not.
12204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12205 /* end confdefs.h. */
12206 #include <limits.h>
12209 main ()
12211 #ifndef _BIG_ENDIAN
12212 not big endian
12213 #endif
12216 return 0;
12218 _ACEOF
12219 if ac_fn_c_try_compile "$LINENO"; then :
12220 ac_cv_c_bigendian=yes
12221 else
12222 ac_cv_c_bigendian=no
12224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12228 if test $ac_cv_c_bigendian = unknown; then
12229 # Compile a test program.
12230 if test "$cross_compiling" = yes; then :
12231 # Try to guess by grepping values from an object file.
12232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12233 /* end confdefs.h. */
12234 short int ascii_mm[] =
12235 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12236 short int ascii_ii[] =
12237 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12238 int use_ascii (int i) {
12239 return ascii_mm[i] + ascii_ii[i];
12241 short int ebcdic_ii[] =
12242 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12243 short int ebcdic_mm[] =
12244 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12245 int use_ebcdic (int i) {
12246 return ebcdic_mm[i] + ebcdic_ii[i];
12248 extern int foo;
12251 main ()
12253 return use_ascii (foo) == use_ebcdic (foo);
12255 return 0;
12257 _ACEOF
12258 if ac_fn_c_try_compile "$LINENO"; then :
12259 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12260 ac_cv_c_bigendian=yes
12262 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12263 if test "$ac_cv_c_bigendian" = unknown; then
12264 ac_cv_c_bigendian=no
12265 else
12266 # finding both strings is unlikely to happen, but who knows?
12267 ac_cv_c_bigendian=unknown
12271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12272 else
12273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12274 /* end confdefs.h. */
12275 $ac_includes_default
12277 main ()
12280 /* Are we little or big endian? From Harbison&Steele. */
12281 union
12283 long int l;
12284 char c[sizeof (long int)];
12285 } u;
12286 u.l = 1;
12287 return u.c[sizeof (long int) - 1] == 1;
12290 return 0;
12292 _ACEOF
12293 if ac_fn_c_try_run "$LINENO"; then :
12294 ac_cv_c_bigendian=no
12295 else
12296 ac_cv_c_bigendian=yes
12298 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12299 conftest.$ac_objext conftest.beam conftest.$ac_ext
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12305 $as_echo "$ac_cv_c_bigendian" >&6; }
12306 case $ac_cv_c_bigendian in #(
12307 yes)
12308 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12309 ;; #(
12311 ;; #(
12312 universal)
12314 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12316 ;; #(
12318 as_fn_error "unknown endianness
12319 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12320 esac
12323 # Check whether right shifting a negative integer extends the sign bit
12324 # or fills with zeros (like the Cray J90, according to Tim Peters).
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether right shift extends the sign bit" >&5
12326 $as_echo_n "checking whether right shift extends the sign bit... " >&6; }
12327 if test "${ac_cv_rshift_extends_sign+set}" = set; then :
12328 $as_echo_n "(cached) " >&6
12329 else
12331 if test "$cross_compiling" = yes; then :
12332 ac_cv_rshift_extends_sign=yes
12333 else
12334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12335 /* end confdefs.h. */
12337 int main()
12339 exit(((-1)>>3 == -1) ? 0 : 1);
12342 _ACEOF
12343 if ac_fn_c_try_run "$LINENO"; then :
12344 ac_cv_rshift_extends_sign=yes
12345 else
12346 ac_cv_rshift_extends_sign=no
12348 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12349 conftest.$ac_objext conftest.beam conftest.$ac_ext
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rshift_extends_sign" >&5
12355 $as_echo "$ac_cv_rshift_extends_sign" >&6; }
12356 if test "$ac_cv_rshift_extends_sign" = no
12357 then
12359 $as_echo "#define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1" >>confdefs.h
12363 # check for getc_unlocked and related locking functions
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getc_unlocked() and friends" >&5
12365 $as_echo_n "checking for getc_unlocked() and friends... " >&6; }
12366 if test "${ac_cv_have_getc_unlocked+set}" = set; then :
12367 $as_echo_n "(cached) " >&6
12368 else
12370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12371 /* end confdefs.h. */
12372 #include <stdio.h>
12374 main ()
12377 FILE *f = fopen("/dev/null", "r");
12378 flockfile(f);
12379 getc_unlocked(f);
12380 funlockfile(f);
12383 return 0;
12385 _ACEOF
12386 if ac_fn_c_try_link "$LINENO"; then :
12387 ac_cv_have_getc_unlocked=yes
12388 else
12389 ac_cv_have_getc_unlocked=no
12391 rm -f core conftest.err conftest.$ac_objext \
12392 conftest$ac_exeext conftest.$ac_ext
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getc_unlocked" >&5
12396 $as_echo "$ac_cv_have_getc_unlocked" >&6; }
12397 if test "$ac_cv_have_getc_unlocked" = yes
12398 then
12400 $as_echo "#define HAVE_GETC_UNLOCKED 1" >>confdefs.h
12404 # check where readline lives
12405 # save the value of LIBS so we don't actually link Python with readline
12406 LIBS_no_readline=$LIBS
12408 # On some systems we need to link readline to a termcap compatible
12409 # library. NOTE: Keep the precedence of listed libraries synchronised
12410 # with setup.py.
12411 py_cv_lib_readline=no
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link readline libs" >&5
12413 $as_echo_n "checking how to link readline libs... " >&6; }
12414 for py_libtermcap in "" ncursesw ncurses curses termcap; do
12415 if test -z "$py_libtermcap"; then
12416 READLINE_LIBS="-lreadline"
12417 else
12418 READLINE_LIBS="-lreadline -l$py_libtermcap"
12420 LIBS="$READLINE_LIBS $LIBS_no_readline"
12421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12422 /* end confdefs.h. */
12424 /* Override any GCC internal prototype to avoid an error.
12425 Use char because int might match the return type of a GCC
12426 builtin and then its argument prototype would still apply. */
12427 #ifdef __cplusplus
12428 extern "C"
12429 #endif
12430 char readline ();
12432 main ()
12434 return readline ();
12436 return 0;
12438 _ACEOF
12439 if ac_fn_c_try_link "$LINENO"; then :
12440 py_cv_lib_readline=yes
12442 rm -f core conftest.err conftest.$ac_objext \
12443 conftest$ac_exeext conftest.$ac_ext
12444 if test $py_cv_lib_readline = yes; then
12445 break
12447 done
12448 # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts
12449 #AC_SUBST([READLINE_LIBS])
12450 if test $py_cv_lib_readline = no; then
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12452 $as_echo "none" >&6; }
12453 else
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE_LIBS" >&5
12455 $as_echo "$READLINE_LIBS" >&6; }
12457 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
12461 # check for readline 2.1
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_callback_handler_install in -lreadline" >&5
12463 $as_echo_n "checking for rl_callback_handler_install in -lreadline... " >&6; }
12464 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then :
12465 $as_echo_n "(cached) " >&6
12466 else
12467 ac_check_lib_save_LIBS=$LIBS
12468 LIBS="-lreadline $READLINE_LIBS $LIBS"
12469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12470 /* end confdefs.h. */
12472 /* Override any GCC internal prototype to avoid an error.
12473 Use char because int might match the return type of a GCC
12474 builtin and then its argument prototype would still apply. */
12475 #ifdef __cplusplus
12476 extern "C"
12477 #endif
12478 char rl_callback_handler_install ();
12480 main ()
12482 return rl_callback_handler_install ();
12484 return 0;
12486 _ACEOF
12487 if ac_fn_c_try_link "$LINENO"; then :
12488 ac_cv_lib_readline_rl_callback_handler_install=yes
12489 else
12490 ac_cv_lib_readline_rl_callback_handler_install=no
12492 rm -f core conftest.err conftest.$ac_objext \
12493 conftest$ac_exeext conftest.$ac_ext
12494 LIBS=$ac_check_lib_save_LIBS
12496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
12497 $as_echo "$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
12498 if test "x$ac_cv_lib_readline_rl_callback_handler_install" = x""yes; then :
12500 $as_echo "#define HAVE_RL_CALLBACK 1" >>confdefs.h
12505 # check for readline 2.2
12506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12507 /* end confdefs.h. */
12508 #include <readline/readline.h>
12509 _ACEOF
12510 if ac_fn_c_try_cpp "$LINENO"; then :
12511 have_readline=yes
12512 else
12513 have_readline=no
12515 rm -f conftest.err conftest.$ac_ext
12516 if test $have_readline = yes
12517 then
12518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12519 /* end confdefs.h. */
12520 #include <readline/readline.h>
12522 _ACEOF
12523 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12524 $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then :
12526 $as_echo "#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1" >>confdefs.h
12529 rm -f conftest*
12531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12532 /* end confdefs.h. */
12533 #include <readline/readline.h>
12535 _ACEOF
12536 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12537 $EGREP "extern int rl_completion_suppress_append;" >/dev/null 2>&1; then :
12539 $as_echo "#define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1" >>confdefs.h
12542 rm -f conftest*
12546 # check for readline 4.0
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_pre_input_hook in -lreadline" >&5
12548 $as_echo_n "checking for rl_pre_input_hook in -lreadline... " >&6; }
12549 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then :
12550 $as_echo_n "(cached) " >&6
12551 else
12552 ac_check_lib_save_LIBS=$LIBS
12553 LIBS="-lreadline $READLINE_LIBS $LIBS"
12554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12555 /* end confdefs.h. */
12557 /* Override any GCC internal prototype to avoid an error.
12558 Use char because int might match the return type of a GCC
12559 builtin and then its argument prototype would still apply. */
12560 #ifdef __cplusplus
12561 extern "C"
12562 #endif
12563 char rl_pre_input_hook ();
12565 main ()
12567 return rl_pre_input_hook ();
12569 return 0;
12571 _ACEOF
12572 if ac_fn_c_try_link "$LINENO"; then :
12573 ac_cv_lib_readline_rl_pre_input_hook=yes
12574 else
12575 ac_cv_lib_readline_rl_pre_input_hook=no
12577 rm -f core conftest.err conftest.$ac_objext \
12578 conftest$ac_exeext conftest.$ac_ext
12579 LIBS=$ac_check_lib_save_LIBS
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
12582 $as_echo "$ac_cv_lib_readline_rl_pre_input_hook" >&6; }
12583 if test "x$ac_cv_lib_readline_rl_pre_input_hook" = x""yes; then :
12585 $as_echo "#define HAVE_RL_PRE_INPUT_HOOK 1" >>confdefs.h
12590 # also in 4.0
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_display_matches_hook in -lreadline" >&5
12592 $as_echo_n "checking for rl_completion_display_matches_hook in -lreadline... " >&6; }
12593 if test "${ac_cv_lib_readline_rl_completion_display_matches_hook+set}" = set; then :
12594 $as_echo_n "(cached) " >&6
12595 else
12596 ac_check_lib_save_LIBS=$LIBS
12597 LIBS="-lreadline $READLINE_LIBS $LIBS"
12598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12599 /* end confdefs.h. */
12601 /* Override any GCC internal prototype to avoid an error.
12602 Use char because int might match the return type of a GCC
12603 builtin and then its argument prototype would still apply. */
12604 #ifdef __cplusplus
12605 extern "C"
12606 #endif
12607 char rl_completion_display_matches_hook ();
12609 main ()
12611 return rl_completion_display_matches_hook ();
12613 return 0;
12615 _ACEOF
12616 if ac_fn_c_try_link "$LINENO"; then :
12617 ac_cv_lib_readline_rl_completion_display_matches_hook=yes
12618 else
12619 ac_cv_lib_readline_rl_completion_display_matches_hook=no
12621 rm -f core conftest.err conftest.$ac_objext \
12622 conftest$ac_exeext conftest.$ac_ext
12623 LIBS=$ac_check_lib_save_LIBS
12625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5
12626 $as_echo "$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; }
12627 if test "x$ac_cv_lib_readline_rl_completion_display_matches_hook" = x""yes; then :
12629 $as_echo "#define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1" >>confdefs.h
12634 # check for readline 4.2
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_matches in -lreadline" >&5
12636 $as_echo_n "checking for rl_completion_matches in -lreadline... " >&6; }
12637 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then :
12638 $as_echo_n "(cached) " >&6
12639 else
12640 ac_check_lib_save_LIBS=$LIBS
12641 LIBS="-lreadline $READLINE_LIBS $LIBS"
12642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12643 /* end confdefs.h. */
12645 /* Override any GCC internal prototype to avoid an error.
12646 Use char because int might match the return type of a GCC
12647 builtin and then its argument prototype would still apply. */
12648 #ifdef __cplusplus
12649 extern "C"
12650 #endif
12651 char rl_completion_matches ();
12653 main ()
12655 return rl_completion_matches ();
12657 return 0;
12659 _ACEOF
12660 if ac_fn_c_try_link "$LINENO"; then :
12661 ac_cv_lib_readline_rl_completion_matches=yes
12662 else
12663 ac_cv_lib_readline_rl_completion_matches=no
12665 rm -f core conftest.err conftest.$ac_objext \
12666 conftest$ac_exeext conftest.$ac_ext
12667 LIBS=$ac_check_lib_save_LIBS
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_matches" >&5
12670 $as_echo "$ac_cv_lib_readline_rl_completion_matches" >&6; }
12671 if test "x$ac_cv_lib_readline_rl_completion_matches" = x""yes; then :
12673 $as_echo "#define HAVE_RL_COMPLETION_MATCHES 1" >>confdefs.h
12678 # also in readline 4.2
12679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12680 /* end confdefs.h. */
12681 #include <readline/readline.h>
12682 _ACEOF
12683 if ac_fn_c_try_cpp "$LINENO"; then :
12684 have_readline=yes
12685 else
12686 have_readline=no
12688 rm -f conftest.err conftest.$ac_ext
12689 if test $have_readline = yes
12690 then
12691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12692 /* end confdefs.h. */
12693 #include <readline/readline.h>
12695 _ACEOF
12696 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12697 $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then :
12699 $as_echo "#define HAVE_RL_CATCH_SIGNAL 1" >>confdefs.h
12702 rm -f conftest*
12706 # End of readline checks: restore LIBS
12707 LIBS=$LIBS_no_readline
12709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken nice()" >&5
12710 $as_echo_n "checking for broken nice()... " >&6; }
12711 if test "${ac_cv_broken_nice+set}" = set; then :
12712 $as_echo_n "(cached) " >&6
12713 else
12715 if test "$cross_compiling" = yes; then :
12716 ac_cv_broken_nice=no
12717 else
12718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12719 /* end confdefs.h. */
12721 int main()
12723 int val1 = nice(1);
12724 if (val1 != -1 && val1 == nice(2))
12725 exit(0);
12726 exit(1);
12729 _ACEOF
12730 if ac_fn_c_try_run "$LINENO"; then :
12731 ac_cv_broken_nice=yes
12732 else
12733 ac_cv_broken_nice=no
12735 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12736 conftest.$ac_objext conftest.beam conftest.$ac_ext
12741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_nice" >&5
12742 $as_echo "$ac_cv_broken_nice" >&6; }
12743 if test "$ac_cv_broken_nice" = yes
12744 then
12746 $as_echo "#define HAVE_BROKEN_NICE 1" >>confdefs.h
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken poll()" >&5
12751 $as_echo_n "checking for broken poll()... " >&6; }
12752 if test "$cross_compiling" = yes; then :
12753 ac_cv_broken_poll=no
12754 else
12755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12756 /* end confdefs.h. */
12758 #include <poll.h>
12760 int main (void)
12762 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
12764 close (42);
12766 int poll_test = poll (&poll_struct, 1, 0);
12768 if (poll_test < 0)
12770 exit(0);
12772 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
12774 exit(0);
12776 else
12778 exit(1);
12782 _ACEOF
12783 if ac_fn_c_try_run "$LINENO"; then :
12784 ac_cv_broken_poll=yes
12785 else
12786 ac_cv_broken_poll=no
12788 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12789 conftest.$ac_objext conftest.beam conftest.$ac_ext
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_poll" >&5
12793 $as_echo "$ac_cv_broken_poll" >&6; }
12794 if test "$ac_cv_broken_poll" = yes
12795 then
12797 $as_echo "#define HAVE_BROKEN_POLL 1" >>confdefs.h
12801 # Before we can test tzset, we need to check if struct tm has a tm_zone
12802 # (which is not required by ISO C or UNIX spec) and/or if we support
12803 # tzname[]
12804 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
12805 #include <$ac_cv_struct_tm>
12808 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
12810 cat >>confdefs.h <<_ACEOF
12811 #define HAVE_STRUCT_TM_TM_ZONE 1
12812 _ACEOF
12817 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
12819 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
12821 else
12822 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
12824 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
12825 ac_have_decl=1
12826 else
12827 ac_have_decl=0
12830 cat >>confdefs.h <<_ACEOF
12831 #define HAVE_DECL_TZNAME $ac_have_decl
12832 _ACEOF
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
12835 $as_echo_n "checking for tzname... " >&6; }
12836 if test "${ac_cv_var_tzname+set}" = set; then :
12837 $as_echo_n "(cached) " >&6
12838 else
12839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12840 /* end confdefs.h. */
12841 #include <time.h>
12842 #if !HAVE_DECL_TZNAME
12843 extern char *tzname[];
12844 #endif
12847 main ()
12849 return tzname[0][0];
12851 return 0;
12853 _ACEOF
12854 if ac_fn_c_try_link "$LINENO"; then :
12855 ac_cv_var_tzname=yes
12856 else
12857 ac_cv_var_tzname=no
12859 rm -f core conftest.err conftest.$ac_objext \
12860 conftest$ac_exeext conftest.$ac_ext
12862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
12863 $as_echo "$ac_cv_var_tzname" >&6; }
12864 if test $ac_cv_var_tzname = yes; then
12866 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
12872 # check tzset(3) exists and works like we expect it to
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working tzset()" >&5
12874 $as_echo_n "checking for working tzset()... " >&6; }
12875 if test "${ac_cv_working_tzset+set}" = set; then :
12876 $as_echo_n "(cached) " >&6
12877 else
12879 if test "$cross_compiling" = yes; then :
12880 ac_cv_working_tzset=no
12881 else
12882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12883 /* end confdefs.h. */
12885 #include <stdlib.h>
12886 #include <time.h>
12887 #include <string.h>
12889 #if HAVE_TZNAME
12890 extern char *tzname[];
12891 #endif
12893 int main()
12895 /* Note that we need to ensure that not only does tzset(3)
12896 do 'something' with localtime, but it works as documented
12897 in the library reference and as expected by the test suite.
12898 This includes making sure that tzname is set properly if
12899 tm->tm_zone does not exist since it is the alternative way
12900 of getting timezone info.
12902 Red Hat 6.2 doesn't understand the southern hemisphere
12903 after New Year's Day.
12906 time_t groundhogday = 1044144000; /* GMT-based */
12907 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
12909 putenv("TZ=UTC+0");
12910 tzset();
12911 if (localtime(&groundhogday)->tm_hour != 0)
12912 exit(1);
12913 #if HAVE_TZNAME
12914 /* For UTC, tzname[1] is sometimes "", sometimes " " */
12915 if (strcmp(tzname[0], "UTC") ||
12916 (tzname[1][0] != 0 && tzname[1][0] != ' '))
12917 exit(1);
12918 #endif
12920 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
12921 tzset();
12922 if (localtime(&groundhogday)->tm_hour != 19)
12923 exit(1);
12924 #if HAVE_TZNAME
12925 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
12926 exit(1);
12927 #endif
12929 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
12930 tzset();
12931 if (localtime(&groundhogday)->tm_hour != 11)
12932 exit(1);
12933 #if HAVE_TZNAME
12934 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
12935 exit(1);
12936 #endif
12938 #if HAVE_STRUCT_TM_TM_ZONE
12939 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
12940 exit(1);
12941 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
12942 exit(1);
12943 #endif
12945 exit(0);
12948 _ACEOF
12949 if ac_fn_c_try_run "$LINENO"; then :
12950 ac_cv_working_tzset=yes
12951 else
12952 ac_cv_working_tzset=no
12954 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12955 conftest.$ac_objext conftest.beam conftest.$ac_ext
12960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_tzset" >&5
12961 $as_echo "$ac_cv_working_tzset" >&6; }
12962 if test "$ac_cv_working_tzset" = yes
12963 then
12965 $as_echo "#define HAVE_WORKING_TZSET 1" >>confdefs.h
12969 # Look for subsecond timestamps in struct stat
12970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec in struct stat" >&5
12971 $as_echo_n "checking for tv_nsec in struct stat... " >&6; }
12972 if test "${ac_cv_stat_tv_nsec+set}" = set; then :
12973 $as_echo_n "(cached) " >&6
12974 else
12975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12976 /* end confdefs.h. */
12977 #include <sys/stat.h>
12979 main ()
12982 struct stat st;
12983 st.st_mtim.tv_nsec = 1;
12986 return 0;
12988 _ACEOF
12989 if ac_fn_c_try_compile "$LINENO"; then :
12990 ac_cv_stat_tv_nsec=yes
12991 else
12992 ac_cv_stat_tv_nsec=no
12994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec" >&5
12998 $as_echo "$ac_cv_stat_tv_nsec" >&6; }
12999 if test "$ac_cv_stat_tv_nsec" = yes
13000 then
13002 $as_echo "#define HAVE_STAT_TV_NSEC 1" >>confdefs.h
13006 # Look for BSD style subsecond timestamps in struct stat
13007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec2 in struct stat" >&5
13008 $as_echo_n "checking for tv_nsec2 in struct stat... " >&6; }
13009 if test "${ac_cv_stat_tv_nsec2+set}" = set; then :
13010 $as_echo_n "(cached) " >&6
13011 else
13012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13013 /* end confdefs.h. */
13014 #include <sys/stat.h>
13016 main ()
13019 struct stat st;
13020 st.st_mtimespec.tv_nsec = 1;
13023 return 0;
13025 _ACEOF
13026 if ac_fn_c_try_compile "$LINENO"; then :
13027 ac_cv_stat_tv_nsec2=yes
13028 else
13029 ac_cv_stat_tv_nsec2=no
13031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec2" >&5
13035 $as_echo "$ac_cv_stat_tv_nsec2" >&6; }
13036 if test "$ac_cv_stat_tv_nsec2" = yes
13037 then
13039 $as_echo "#define HAVE_STAT_TV_NSEC2 1" >>confdefs.h
13043 # On HP/UX 11.0, mvwdelch is a block with a return statement
13044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mvwdelch is an expression" >&5
13045 $as_echo_n "checking whether mvwdelch is an expression... " >&6; }
13046 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then :
13047 $as_echo_n "(cached) " >&6
13048 else
13049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13050 /* end confdefs.h. */
13051 #include <curses.h>
13053 main ()
13056 int rtn;
13057 rtn = mvwdelch(0,0,0);
13060 return 0;
13062 _ACEOF
13063 if ac_fn_c_try_compile "$LINENO"; then :
13064 ac_cv_mvwdelch_is_expression=yes
13065 else
13066 ac_cv_mvwdelch_is_expression=no
13068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mvwdelch_is_expression" >&5
13072 $as_echo "$ac_cv_mvwdelch_is_expression" >&6; }
13074 if test "$ac_cv_mvwdelch_is_expression" = yes
13075 then
13077 $as_echo "#define MVWDELCH_IS_EXPRESSION 1" >>confdefs.h
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether WINDOW has _flags" >&5
13082 $as_echo_n "checking whether WINDOW has _flags... " >&6; }
13083 if test "${ac_cv_window_has_flags+set}" = set; then :
13084 $as_echo_n "(cached) " >&6
13085 else
13086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13087 /* end confdefs.h. */
13088 #include <curses.h>
13090 main ()
13093 WINDOW *w;
13094 w->_flags = 0;
13097 return 0;
13099 _ACEOF
13100 if ac_fn_c_try_compile "$LINENO"; then :
13101 ac_cv_window_has_flags=yes
13102 else
13103 ac_cv_window_has_flags=no
13105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_window_has_flags" >&5
13109 $as_echo "$ac_cv_window_has_flags" >&6; }
13112 if test "$ac_cv_window_has_flags" = yes
13113 then
13115 $as_echo "#define WINDOW_HAS_FLAGS 1" >>confdefs.h
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_term_resized" >&5
13120 $as_echo_n "checking for is_term_resized... " >&6; }
13121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13122 /* end confdefs.h. */
13123 #include <curses.h>
13125 main ()
13127 void *x=is_term_resized
13129 return 0;
13131 _ACEOF
13132 if ac_fn_c_try_compile "$LINENO"; then :
13134 $as_echo "#define HAVE_CURSES_IS_TERM_RESIZED 1" >>confdefs.h
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13137 $as_echo "yes" >&6; }
13138 else
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13140 $as_echo "no" >&6; }
13143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resize_term" >&5
13146 $as_echo_n "checking for resize_term... " >&6; }
13147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13148 /* end confdefs.h. */
13149 #include <curses.h>
13151 main ()
13153 void *x=resize_term
13155 return 0;
13157 _ACEOF
13158 if ac_fn_c_try_compile "$LINENO"; then :
13160 $as_echo "#define HAVE_CURSES_RESIZE_TERM 1" >>confdefs.h
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13163 $as_echo "yes" >&6; }
13164 else
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13166 $as_echo "no" >&6; }
13169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resizeterm" >&5
13172 $as_echo_n "checking for resizeterm... " >&6; }
13173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13174 /* end confdefs.h. */
13175 #include <curses.h>
13177 main ()
13179 void *x=resizeterm
13181 return 0;
13183 _ACEOF
13184 if ac_fn_c_try_compile "$LINENO"; then :
13186 $as_echo "#define HAVE_CURSES_RESIZETERM 1" >>confdefs.h
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13189 $as_echo "yes" >&6; }
13190 else
13191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13192 $as_echo "no" >&6; }
13195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5
13198 $as_echo_n "checking for /dev/ptmx... " >&6; }
13200 if test -r /dev/ptmx
13201 then
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13203 $as_echo "yes" >&6; }
13205 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
13207 else
13208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13209 $as_echo "no" >&6; }
13212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5
13213 $as_echo_n "checking for /dev/ptc... " >&6; }
13215 if test -r /dev/ptc
13216 then
13217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13218 $as_echo "yes" >&6; }
13220 $as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h
13222 else
13223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13224 $as_echo "no" >&6; }
13227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for %zd printf() format support" >&5
13228 $as_echo_n "checking for %zd printf() format support... " >&6; }
13229 if test "$cross_compiling" = yes; then :
13230 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13231 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13232 as_fn_error "cannot run test program while cross compiling
13233 See \`config.log' for more details." "$LINENO" 5; }
13234 else
13235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13236 /* end confdefs.h. */
13237 #include <stdio.h>
13238 #include <stddef.h>
13239 #include <string.h>
13241 #ifdef HAVE_SYS_TYPES_H
13242 #include <sys/types.h>
13243 #endif
13245 #ifdef HAVE_SSIZE_T
13246 typedef ssize_t Py_ssize_t;
13247 #elif SIZEOF_VOID_P == SIZEOF_LONG
13248 typedef long Py_ssize_t;
13249 #else
13250 typedef int Py_ssize_t;
13251 #endif
13253 int main()
13255 char buffer[256];
13257 if(sprintf(buffer, "%zd", (size_t)123) < 0)
13258 return 1;
13260 if (strcmp(buffer, "123"))
13261 return 1;
13263 if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
13264 return 1;
13266 if (strcmp(buffer, "-123"))
13267 return 1;
13269 return 0;
13271 _ACEOF
13272 if ac_fn_c_try_run "$LINENO"; then :
13273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13274 $as_echo "yes" >&6; }
13276 $as_echo "#define PY_FORMAT_SIZE_T \"z\"" >>confdefs.h
13278 else
13279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13280 $as_echo "no" >&6; }
13282 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13283 conftest.$ac_objext conftest.beam conftest.$ac_ext
13287 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
13288 #ifdef HAVE_SYS_TYPES_H
13289 #include <sys/types.h>
13290 #endif
13291 #ifdef HAVE_SYS_SOCKET_H
13292 #include <sys/socket.h>
13293 #endif
13296 if test "x$ac_cv_type_socklen_t" = x""yes; then :
13298 else
13300 $as_echo "#define socklen_t int" >>confdefs.h
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken mbstowcs" >&5
13306 $as_echo_n "checking for broken mbstowcs... " >&6; }
13307 if test "$cross_compiling" = yes; then :
13308 ac_cv_broken_mbstowcs=no
13309 else
13310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13311 /* end confdefs.h. */
13313 #include<stdlib.h>
13314 int main() {
13315 size_t len = -1;
13316 const char *str = "text";
13317 len = mbstowcs(NULL, str, 0);
13318 return (len != 4);
13321 _ACEOF
13322 if ac_fn_c_try_run "$LINENO"; then :
13323 ac_cv_broken_mbstowcs=no
13324 else
13325 ac_cv_broken_mbstowcs=yes
13327 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13328 conftest.$ac_objext conftest.beam conftest.$ac_ext
13331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_mbstowcs" >&5
13332 $as_echo "$ac_cv_broken_mbstowcs" >&6; }
13333 if test "$ac_cv_broken_mbstowcs" = yes
13334 then
13336 $as_echo "#define HAVE_BROKEN_MBSTOWCS 1" >>confdefs.h
13340 # Check for --with-computed-gotos
13341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-computed-gotos" >&5
13342 $as_echo_n "checking for --with-computed-gotos... " >&6; }
13344 # Check whether --with-computed-gotos was given.
13345 if test "${with_computed_gotos+set}" = set; then :
13346 withval=$with_computed_gotos;
13347 if test "$withval" != no
13348 then
13350 $as_echo "#define USE_COMPUTED_GOTOS 1" >>confdefs.h
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13353 $as_echo "yes" >&6; }
13354 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13355 $as_echo "no" >&6; }
13357 else
13358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13359 $as_echo "no" >&6; }
13363 if test $ac_sys_system = Darwin
13364 then
13365 LIBS="$LIBS -framework CoreFoundation"
13372 for h in `(cd $srcdir;echo Python/thread_*.h)`
13374 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
13375 done
13378 SRCDIRS="Parser Grammar Objects Python Modules Mac"
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build directories" >&5
13380 $as_echo_n "checking for build directories... " >&6; }
13381 for dir in $SRCDIRS; do
13382 if test ! -d $dir; then
13383 mkdir $dir
13385 done
13386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13387 $as_echo "done" >&6; }
13389 # generate output files
13390 ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config Misc/python.pc"
13392 ac_config_files="$ac_config_files Modules/ld_so_aix"
13394 cat >confcache <<\_ACEOF
13395 # This file is a shell script that caches the results of configure
13396 # tests run on this system so they can be shared between configure
13397 # scripts and configure runs, see configure's option --config-cache.
13398 # It is not useful on other systems. If it contains results you don't
13399 # want to keep, you may remove or edit it.
13401 # config.status only pays attention to the cache file if you give it
13402 # the --recheck option to rerun configure.
13404 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13405 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13406 # following values.
13408 _ACEOF
13410 # The following way of writing the cache mishandles newlines in values,
13411 # but we know of no workaround that is simple, portable, and efficient.
13412 # So, we kill variables containing newlines.
13413 # Ultrix sh set writes to stderr and can't be redirected directly,
13414 # and sets the high bit in the cache file unless we assign to the vars.
13416 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13417 eval ac_val=\$$ac_var
13418 case $ac_val in #(
13419 *${as_nl}*)
13420 case $ac_var in #(
13421 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13422 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13423 esac
13424 case $ac_var in #(
13425 _ | IFS | as_nl) ;; #(
13426 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13427 *) { eval $ac_var=; unset $ac_var;} ;;
13428 esac ;;
13429 esac
13430 done
13432 (set) 2>&1 |
13433 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13434 *${as_nl}ac_space=\ *)
13435 # `set' does not quote correctly, so add quotes: double-quote
13436 # substitution turns \\\\ into \\, and sed turns \\ into \.
13437 sed -n \
13438 "s/'/'\\\\''/g;
13439 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13440 ;; #(
13442 # `set' quotes correctly as required by POSIX, so do not add quotes.
13443 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13445 esac |
13446 sort
13448 sed '
13449 /^ac_cv_env_/b end
13450 t clear
13451 :clear
13452 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13453 t end
13454 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13455 :end' >>confcache
13456 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13457 if test -w "$cache_file"; then
13458 test "x$cache_file" != "x/dev/null" &&
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13460 $as_echo "$as_me: updating cache $cache_file" >&6;}
13461 cat confcache >$cache_file
13462 else
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13464 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13467 rm -f confcache
13469 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13470 # Let make expand exec_prefix.
13471 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13473 DEFS=-DHAVE_CONFIG_H
13475 ac_libobjs=
13476 ac_ltlibobjs=
13477 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13478 # 1. Remove the extension, and $U if already installed.
13479 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13480 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13481 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13482 # will be set to the directory where LIBOBJS objects are built.
13483 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13484 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13485 done
13486 LIBOBJS=$ac_libobjs
13488 LTLIBOBJS=$ac_ltlibobjs
13493 : ${CONFIG_STATUS=./config.status}
13494 ac_write_fail=0
13495 ac_clean_files_save=$ac_clean_files
13496 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13497 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13498 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13499 as_write_fail=0
13500 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13501 #! $SHELL
13502 # Generated by $as_me.
13503 # Run this file to recreate the current configuration.
13504 # Compiler output produced by configure, useful for debugging
13505 # configure, is in config.log if it exists.
13507 debug=false
13508 ac_cs_recheck=false
13509 ac_cs_silent=false
13511 SHELL=\${CONFIG_SHELL-$SHELL}
13512 export SHELL
13513 _ASEOF
13514 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13515 ## -------------------- ##
13516 ## M4sh Initialization. ##
13517 ## -------------------- ##
13519 # Be more Bourne compatible
13520 DUALCASE=1; export DUALCASE # for MKS sh
13521 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13522 emulate sh
13523 NULLCMD=:
13524 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13525 # is contrary to our usage. Disable this feature.
13526 alias -g '${1+"$@"}'='"$@"'
13527 setopt NO_GLOB_SUBST
13528 else
13529 case `(set -o) 2>/dev/null` in #(
13530 *posix*) :
13531 set -o posix ;; #(
13532 *) :
13534 esac
13538 as_nl='
13540 export as_nl
13541 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13542 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13543 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13544 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13545 # Prefer a ksh shell builtin over an external printf program on Solaris,
13546 # but without wasting forks for bash or zsh.
13547 if test -z "$BASH_VERSION$ZSH_VERSION" \
13548 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13549 as_echo='print -r --'
13550 as_echo_n='print -rn --'
13551 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13552 as_echo='printf %s\n'
13553 as_echo_n='printf %s'
13554 else
13555 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13556 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13557 as_echo_n='/usr/ucb/echo -n'
13558 else
13559 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13560 as_echo_n_body='eval
13561 arg=$1;
13562 case $arg in #(
13563 *"$as_nl"*)
13564 expr "X$arg" : "X\\(.*\\)$as_nl";
13565 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13566 esac;
13567 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13569 export as_echo_n_body
13570 as_echo_n='sh -c $as_echo_n_body as_echo'
13572 export as_echo_body
13573 as_echo='sh -c $as_echo_body as_echo'
13576 # The user is always right.
13577 if test "${PATH_SEPARATOR+set}" != set; then
13578 PATH_SEPARATOR=:
13579 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13580 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13581 PATH_SEPARATOR=';'
13586 # IFS
13587 # We need space, tab and new line, in precisely that order. Quoting is
13588 # there to prevent editors from complaining about space-tab.
13589 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13590 # splitting by setting IFS to empty value.)
13591 IFS=" "" $as_nl"
13593 # Find who we are. Look in the path if we contain no directory separator.
13594 case $0 in #((
13595 *[\\/]* ) as_myself=$0 ;;
13596 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13597 for as_dir in $PATH
13599 IFS=$as_save_IFS
13600 test -z "$as_dir" && as_dir=.
13601 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13602 done
13603 IFS=$as_save_IFS
13606 esac
13607 # We did not find ourselves, most probably we were run as `sh COMMAND'
13608 # in which case we are not to be found in the path.
13609 if test "x$as_myself" = x; then
13610 as_myself=$0
13612 if test ! -f "$as_myself"; then
13613 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13614 exit 1
13617 # Unset variables that we do not need and which cause bugs (e.g. in
13618 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13619 # suppresses any "Segmentation fault" message there. '((' could
13620 # trigger a bug in pdksh 5.2.14.
13621 for as_var in BASH_ENV ENV MAIL MAILPATH
13622 do eval test x\${$as_var+set} = xset \
13623 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13624 done
13625 PS1='$ '
13626 PS2='> '
13627 PS4='+ '
13629 # NLS nuisances.
13630 LC_ALL=C
13631 export LC_ALL
13632 LANGUAGE=C
13633 export LANGUAGE
13635 # CDPATH.
13636 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13639 # as_fn_error ERROR [LINENO LOG_FD]
13640 # ---------------------------------
13641 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13642 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13643 # script with status $?, using 1 if that was 0.
13644 as_fn_error ()
13646 as_status=$?; test $as_status -eq 0 && as_status=1
13647 if test "$3"; then
13648 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13649 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
13651 $as_echo "$as_me: error: $1" >&2
13652 as_fn_exit $as_status
13653 } # as_fn_error
13656 # as_fn_set_status STATUS
13657 # -----------------------
13658 # Set $? to STATUS, without forking.
13659 as_fn_set_status ()
13661 return $1
13662 } # as_fn_set_status
13664 # as_fn_exit STATUS
13665 # -----------------
13666 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13667 as_fn_exit ()
13669 set +e
13670 as_fn_set_status $1
13671 exit $1
13672 } # as_fn_exit
13674 # as_fn_unset VAR
13675 # ---------------
13676 # Portably unset VAR.
13677 as_fn_unset ()
13679 { eval $1=; unset $1;}
13681 as_unset=as_fn_unset
13682 # as_fn_append VAR VALUE
13683 # ----------------------
13684 # Append the text in VALUE to the end of the definition contained in VAR. Take
13685 # advantage of any shell optimizations that allow amortized linear growth over
13686 # repeated appends, instead of the typical quadratic growth present in naive
13687 # implementations.
13688 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13689 eval 'as_fn_append ()
13691 eval $1+=\$2
13693 else
13694 as_fn_append ()
13696 eval $1=\$$1\$2
13698 fi # as_fn_append
13700 # as_fn_arith ARG...
13701 # ------------------
13702 # Perform arithmetic evaluation on the ARGs, and store the result in the
13703 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13704 # must be portable across $(()) and expr.
13705 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13706 eval 'as_fn_arith ()
13708 as_val=$(( $* ))
13710 else
13711 as_fn_arith ()
13713 as_val=`expr "$@" || test $? -eq 1`
13715 fi # as_fn_arith
13718 if expr a : '\(a\)' >/dev/null 2>&1 &&
13719 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13720 as_expr=expr
13721 else
13722 as_expr=false
13725 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13726 as_basename=basename
13727 else
13728 as_basename=false
13731 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13732 as_dirname=dirname
13733 else
13734 as_dirname=false
13737 as_me=`$as_basename -- "$0" ||
13738 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13739 X"$0" : 'X\(//\)$' \| \
13740 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13741 $as_echo X/"$0" |
13742 sed '/^.*\/\([^/][^/]*\)\/*$/{
13743 s//\1/
13746 /^X\/\(\/\/\)$/{
13747 s//\1/
13750 /^X\/\(\/\).*/{
13751 s//\1/
13754 s/.*/./; q'`
13756 # Avoid depending upon Character Ranges.
13757 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13758 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13759 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13760 as_cr_digits='0123456789'
13761 as_cr_alnum=$as_cr_Letters$as_cr_digits
13763 ECHO_C= ECHO_N= ECHO_T=
13764 case `echo -n x` in #(((((
13765 -n*)
13766 case `echo 'xy\c'` in
13767 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13768 xy) ECHO_C='\c';;
13769 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13770 ECHO_T=' ';;
13771 esac;;
13773 ECHO_N='-n';;
13774 esac
13776 rm -f conf$$ conf$$.exe conf$$.file
13777 if test -d conf$$.dir; then
13778 rm -f conf$$.dir/conf$$.file
13779 else
13780 rm -f conf$$.dir
13781 mkdir conf$$.dir 2>/dev/null
13783 if (echo >conf$$.file) 2>/dev/null; then
13784 if ln -s conf$$.file conf$$ 2>/dev/null; then
13785 as_ln_s='ln -s'
13786 # ... but there are two gotchas:
13787 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13788 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13789 # In both cases, we have to default to `cp -p'.
13790 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13791 as_ln_s='cp -p'
13792 elif ln conf$$.file conf$$ 2>/dev/null; then
13793 as_ln_s=ln
13794 else
13795 as_ln_s='cp -p'
13797 else
13798 as_ln_s='cp -p'
13800 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13801 rmdir conf$$.dir 2>/dev/null
13804 # as_fn_mkdir_p
13805 # -------------
13806 # Create "$as_dir" as a directory, including parents if necessary.
13807 as_fn_mkdir_p ()
13810 case $as_dir in #(
13811 -*) as_dir=./$as_dir;;
13812 esac
13813 test -d "$as_dir" || eval $as_mkdir_p || {
13814 as_dirs=
13815 while :; do
13816 case $as_dir in #(
13817 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13818 *) as_qdir=$as_dir;;
13819 esac
13820 as_dirs="'$as_qdir' $as_dirs"
13821 as_dir=`$as_dirname -- "$as_dir" ||
13822 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13823 X"$as_dir" : 'X\(//\)[^/]' \| \
13824 X"$as_dir" : 'X\(//\)$' \| \
13825 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13826 $as_echo X"$as_dir" |
13827 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13828 s//\1/
13831 /^X\(\/\/\)[^/].*/{
13832 s//\1/
13835 /^X\(\/\/\)$/{
13836 s//\1/
13839 /^X\(\/\).*/{
13840 s//\1/
13843 s/.*/./; q'`
13844 test -d "$as_dir" && break
13845 done
13846 test -z "$as_dirs" || eval "mkdir $as_dirs"
13847 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
13850 } # as_fn_mkdir_p
13851 if mkdir -p . 2>/dev/null; then
13852 as_mkdir_p='mkdir -p "$as_dir"'
13853 else
13854 test -d ./-p && rmdir ./-p
13855 as_mkdir_p=false
13858 if test -x / >/dev/null 2>&1; then
13859 as_test_x='test -x'
13860 else
13861 if ls -dL / >/dev/null 2>&1; then
13862 as_ls_L_option=L
13863 else
13864 as_ls_L_option=
13866 as_test_x='
13867 eval sh -c '\''
13868 if test -d "$1"; then
13869 test -d "$1/.";
13870 else
13871 case $1 in #(
13872 -*)set "./$1";;
13873 esac;
13874 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13875 ???[sx]*):;;*)false;;esac;fi
13876 '\'' sh
13879 as_executable_p=$as_test_x
13881 # Sed expression to map a string onto a valid CPP name.
13882 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13884 # Sed expression to map a string onto a valid variable name.
13885 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13888 exec 6>&1
13889 ## ----------------------------------- ##
13890 ## Main body of $CONFIG_STATUS script. ##
13891 ## ----------------------------------- ##
13892 _ASEOF
13893 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13895 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13896 # Save the log message, to keep $0 and so on meaningful, and to
13897 # report actual input values of CONFIG_FILES etc. instead of their
13898 # values after options handling.
13899 ac_log="
13900 This file was extended by python $as_me 3.1, which was
13901 generated by GNU Autoconf 2.65. Invocation command line was
13903 CONFIG_FILES = $CONFIG_FILES
13904 CONFIG_HEADERS = $CONFIG_HEADERS
13905 CONFIG_LINKS = $CONFIG_LINKS
13906 CONFIG_COMMANDS = $CONFIG_COMMANDS
13907 $ $0 $@
13909 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13912 _ACEOF
13914 case $ac_config_files in *"
13915 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13916 esac
13918 case $ac_config_headers in *"
13919 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13920 esac
13923 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13924 # Files that config.status was made for.
13925 config_files="$ac_config_files"
13926 config_headers="$ac_config_headers"
13928 _ACEOF
13930 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13931 ac_cs_usage="\
13932 \`$as_me' instantiates files and other configuration actions
13933 from templates according to the current configuration. Unless the files
13934 and actions are specified as TAGs, all are instantiated by default.
13936 Usage: $0 [OPTION]... [TAG]...
13938 -h, --help print this help, then exit
13939 -V, --version print version number and configuration settings, then exit
13940 --config print configuration, then exit
13941 -q, --quiet, --silent
13942 do not print progress messages
13943 -d, --debug don't remove temporary files
13944 --recheck update $as_me by reconfiguring in the same conditions
13945 --file=FILE[:TEMPLATE]
13946 instantiate the configuration file FILE
13947 --header=FILE[:TEMPLATE]
13948 instantiate the configuration header FILE
13950 Configuration files:
13951 $config_files
13953 Configuration headers:
13954 $config_headers
13956 Report bugs to <http://bugs.python.org/>."
13958 _ACEOF
13959 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13960 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13961 ac_cs_version="\\
13962 python config.status 3.1
13963 configured by $0, generated by GNU Autoconf 2.65,
13964 with options \\"\$ac_cs_config\\"
13966 Copyright (C) 2009 Free Software Foundation, Inc.
13967 This config.status script is free software; the Free Software Foundation
13968 gives unlimited permission to copy, distribute and modify it."
13970 ac_pwd='$ac_pwd'
13971 srcdir='$srcdir'
13972 INSTALL='$INSTALL'
13973 test -n "\$AWK" || AWK=awk
13974 _ACEOF
13976 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13977 # The default lists apply if the user does not specify any file.
13978 ac_need_defaults=:
13979 while test $# != 0
13981 case $1 in
13982 --*=*)
13983 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13984 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13985 ac_shift=:
13988 ac_option=$1
13989 ac_optarg=$2
13990 ac_shift=shift
13992 esac
13994 case $ac_option in
13995 # Handling of the options.
13996 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13997 ac_cs_recheck=: ;;
13998 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13999 $as_echo "$ac_cs_version"; exit ;;
14000 --config | --confi | --conf | --con | --co | --c )
14001 $as_echo "$ac_cs_config"; exit ;;
14002 --debug | --debu | --deb | --de | --d | -d )
14003 debug=: ;;
14004 --file | --fil | --fi | --f )
14005 $ac_shift
14006 case $ac_optarg in
14007 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14008 esac
14009 as_fn_append CONFIG_FILES " '$ac_optarg'"
14010 ac_need_defaults=false;;
14011 --header | --heade | --head | --hea )
14012 $ac_shift
14013 case $ac_optarg in
14014 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14015 esac
14016 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14017 ac_need_defaults=false;;
14018 --he | --h)
14019 # Conflict between --help and --header
14020 as_fn_error "ambiguous option: \`$1'
14021 Try \`$0 --help' for more information.";;
14022 --help | --hel | -h )
14023 $as_echo "$ac_cs_usage"; exit ;;
14024 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14025 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14026 ac_cs_silent=: ;;
14028 # This is an error.
14029 -*) as_fn_error "unrecognized option: \`$1'
14030 Try \`$0 --help' for more information." ;;
14032 *) as_fn_append ac_config_targets " $1"
14033 ac_need_defaults=false ;;
14035 esac
14036 shift
14037 done
14039 ac_configure_extra_args=
14041 if $ac_cs_silent; then
14042 exec 6>/dev/null
14043 ac_configure_extra_args="$ac_configure_extra_args --silent"
14046 _ACEOF
14047 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14048 if \$ac_cs_recheck; then
14049 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14050 shift
14051 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14052 CONFIG_SHELL='$SHELL'
14053 export CONFIG_SHELL
14054 exec "\$@"
14057 _ACEOF
14058 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14059 exec 5>>config.log
14061 echo
14062 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14063 ## Running $as_me. ##
14064 _ASBOX
14065 $as_echo "$ac_log"
14066 } >&5
14068 _ACEOF
14069 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14070 _ACEOF
14072 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14074 # Handling of arguments.
14075 for ac_config_target in $ac_config_targets
14077 case $ac_config_target in
14078 "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;;
14079 "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;;
14080 "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
14081 "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;;
14082 "Mac/Resources/app/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/app/Info.plist" ;;
14083 "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;;
14084 "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;;
14085 "Misc/python.pc") CONFIG_FILES="$CONFIG_FILES Misc/python.pc" ;;
14086 "Modules/ld_so_aix") CONFIG_FILES="$CONFIG_FILES Modules/ld_so_aix" ;;
14088 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14089 esac
14090 done
14093 # If the user did not use the arguments to specify the items to instantiate,
14094 # then the envvar interface is used. Set only those that are not.
14095 # We use the long form for the default assignment because of an extremely
14096 # bizarre bug on SunOS 4.1.3.
14097 if $ac_need_defaults; then
14098 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14099 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14102 # Have a temporary directory for convenience. Make it in the build tree
14103 # simply because there is no reason against having it here, and in addition,
14104 # creating and moving files from /tmp can sometimes cause problems.
14105 # Hook for its removal unless debugging.
14106 # Note that there is a small window in which the directory will not be cleaned:
14107 # after its creation but before its name has been assigned to `$tmp'.
14108 $debug ||
14110 tmp=
14111 trap 'exit_status=$?
14112 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14114 trap 'as_fn_exit 1' 1 2 13 15
14116 # Create a (secure) tmp directory for tmp files.
14119 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14120 test -n "$tmp" && test -d "$tmp"
14121 } ||
14123 tmp=./conf$$-$RANDOM
14124 (umask 077 && mkdir "$tmp")
14125 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14127 # Set up the scripts for CONFIG_FILES section.
14128 # No need to generate them if there are no CONFIG_FILES.
14129 # This happens for instance with `./config.status config.h'.
14130 if test -n "$CONFIG_FILES"; then
14133 ac_cr=`echo X | tr X '\015'`
14134 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14135 # But we know of no other shell where ac_cr would be empty at this
14136 # point, so we can use a bashism as a fallback.
14137 if test "x$ac_cr" = x; then
14138 eval ac_cr=\$\'\\r\'
14140 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14141 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14142 ac_cs_awk_cr='\r'
14143 else
14144 ac_cs_awk_cr=$ac_cr
14147 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14148 _ACEOF
14152 echo "cat >conf$$subs.awk <<_ACEOF" &&
14153 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14154 echo "_ACEOF"
14155 } >conf$$subs.sh ||
14156 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14157 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14158 ac_delim='%!_!# '
14159 for ac_last_try in false false false false false :; do
14160 . ./conf$$subs.sh ||
14161 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14163 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14164 if test $ac_delim_n = $ac_delim_num; then
14165 break
14166 elif $ac_last_try; then
14167 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14168 else
14169 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14171 done
14172 rm -f conf$$subs.sh
14174 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14175 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14176 _ACEOF
14177 sed -n '
14179 s/^/S["/; s/!.*/"]=/
14182 s/^[^!]*!//
14183 :repl
14184 t repl
14185 s/'"$ac_delim"'$//
14186 t delim
14189 s/\(.\{148\}\)..*/\1/
14190 t more1
14191 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14194 b repl
14195 :more1
14196 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14199 s/.\{148\}//
14200 t nl
14201 :delim
14203 s/\(.\{148\}\)..*/\1/
14204 t more2
14205 s/["\\]/\\&/g; s/^/"/; s/$/"/
14208 :more2
14209 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14212 s/.\{148\}//
14213 t delim
14214 ' <conf$$subs.awk | sed '
14215 /^[^""]/{
14217 s/\n//
14219 ' >>$CONFIG_STATUS || ac_write_fail=1
14220 rm -f conf$$subs.awk
14221 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14222 _ACAWK
14223 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14224 for (key in S) S_is_set[key] = 1
14225 FS = "\a"
14229 line = $ 0
14230 nfields = split(line, field, "@")
14231 substed = 0
14232 len = length(field[1])
14233 for (i = 2; i < nfields; i++) {
14234 key = field[i]
14235 keylen = length(key)
14236 if (S_is_set[key]) {
14237 value = S[key]
14238 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14239 len += length(value) + length(field[++i])
14240 substed = 1
14241 } else
14242 len += 1 + keylen
14245 print line
14248 _ACAWK
14249 _ACEOF
14250 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14251 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14252 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14253 else
14255 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14256 || as_fn_error "could not setup config files machinery" "$LINENO" 5
14257 _ACEOF
14259 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14260 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14261 # trailing colons and then remove the whole line if VPATH becomes empty
14262 # (actually we leave an empty line to preserve line numbers).
14263 if test "x$srcdir" = x.; then
14264 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14265 s/:*\$(srcdir):*/:/
14266 s/:*\${srcdir}:*/:/
14267 s/:*@srcdir@:*/:/
14268 s/^\([^=]*=[ ]*\):*/\1/
14269 s/:*$//
14270 s/^[^=]*=[ ]*$//
14274 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14275 fi # test -n "$CONFIG_FILES"
14277 # Set up the scripts for CONFIG_HEADERS section.
14278 # No need to generate them if there are no CONFIG_HEADERS.
14279 # This happens for instance with `./config.status Makefile'.
14280 if test -n "$CONFIG_HEADERS"; then
14281 cat >"$tmp/defines.awk" <<\_ACAWK ||
14282 BEGIN {
14283 _ACEOF
14285 # Transform confdefs.h into an awk script `defines.awk', embedded as
14286 # here-document in config.status, that substitutes the proper values into
14287 # config.h.in to produce config.h.
14289 # Create a delimiter string that does not exist in confdefs.h, to ease
14290 # handling of long lines.
14291 ac_delim='%!_!# '
14292 for ac_last_try in false false :; do
14293 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14294 if test -z "$ac_t"; then
14295 break
14296 elif $ac_last_try; then
14297 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
14298 else
14299 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14301 done
14303 # For the awk script, D is an array of macro values keyed by name,
14304 # likewise P contains macro parameters if any. Preserve backslash
14305 # newline sequences.
14307 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14308 sed -n '
14309 s/.\{148\}/&'"$ac_delim"'/g
14310 t rset
14311 :rset
14312 s/^[ ]*#[ ]*define[ ][ ]*/ /
14313 t def
14315 :def
14316 s/\\$//
14317 t bsnl
14318 s/["\\]/\\&/g
14319 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14320 D["\1"]=" \3"/p
14321 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14323 :bsnl
14324 s/["\\]/\\&/g
14325 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14326 D["\1"]=" \3\\\\\\n"\\/p
14327 t cont
14328 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14329 t cont
14331 :cont
14333 s/.\{148\}/&'"$ac_delim"'/g
14334 t clear
14335 :clear
14336 s/\\$//
14337 t bsnlc
14338 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14340 :bsnlc
14341 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14342 b cont
14343 ' <confdefs.h | sed '
14344 s/'"$ac_delim"'/"\\\
14345 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14347 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14348 for (key in D) D_is_set[key] = 1
14349 FS = "\a"
14351 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14352 line = \$ 0
14353 split(line, arg, " ")
14354 if (arg[1] == "#") {
14355 defundef = arg[2]
14356 mac1 = arg[3]
14357 } else {
14358 defundef = substr(arg[1], 2)
14359 mac1 = arg[2]
14361 split(mac1, mac2, "(") #)
14362 macro = mac2[1]
14363 prefix = substr(line, 1, index(line, defundef) - 1)
14364 if (D_is_set[macro]) {
14365 # Preserve the white space surrounding the "#".
14366 print prefix "define", macro P[macro] D[macro]
14367 next
14368 } else {
14369 # Replace #undef with comments. This is necessary, for example,
14370 # in the case of _POSIX_SOURCE, which is predefined and required
14371 # on some systems where configure will not decide to define it.
14372 if (defundef == "undef") {
14373 print "/*", prefix defundef, macro, "*/"
14374 next
14378 { print }
14379 _ACAWK
14380 _ACEOF
14381 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14382 as_fn_error "could not setup config headers machinery" "$LINENO" 5
14383 fi # test -n "$CONFIG_HEADERS"
14386 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
14387 shift
14388 for ac_tag
14390 case $ac_tag in
14391 :[FHLC]) ac_mode=$ac_tag; continue;;
14392 esac
14393 case $ac_mode$ac_tag in
14394 :[FHL]*:*);;
14395 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14396 :[FH]-) ac_tag=-:-;;
14397 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14398 esac
14399 ac_save_IFS=$IFS
14400 IFS=:
14401 set x $ac_tag
14402 IFS=$ac_save_IFS
14403 shift
14404 ac_file=$1
14405 shift
14407 case $ac_mode in
14408 :L) ac_source=$1;;
14409 :[FH])
14410 ac_file_inputs=
14411 for ac_f
14413 case $ac_f in
14414 -) ac_f="$tmp/stdin";;
14415 *) # Look for the file first in the build tree, then in the source tree
14416 # (if the path is not absolute). The absolute path cannot be DOS-style,
14417 # because $ac_f cannot contain `:'.
14418 test -f "$ac_f" ||
14419 case $ac_f in
14420 [\\/$]*) false;;
14421 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14422 esac ||
14423 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14424 esac
14425 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14426 as_fn_append ac_file_inputs " '$ac_f'"
14427 done
14429 # Let's still pretend it is `configure' which instantiates (i.e., don't
14430 # use $as_me), people would be surprised to read:
14431 # /* config.h. Generated by config.status. */
14432 configure_input='Generated from '`
14433 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14434 `' by configure.'
14435 if test x"$ac_file" != x-; then
14436 configure_input="$ac_file. $configure_input"
14437 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14438 $as_echo "$as_me: creating $ac_file" >&6;}
14440 # Neutralize special characters interpreted by sed in replacement strings.
14441 case $configure_input in #(
14442 *\&* | *\|* | *\\* )
14443 ac_sed_conf_input=`$as_echo "$configure_input" |
14444 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14445 *) ac_sed_conf_input=$configure_input;;
14446 esac
14448 case $ac_tag in
14449 *:-:* | *:-) cat >"$tmp/stdin" \
14450 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
14451 esac
14453 esac
14455 ac_dir=`$as_dirname -- "$ac_file" ||
14456 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14457 X"$ac_file" : 'X\(//\)[^/]' \| \
14458 X"$ac_file" : 'X\(//\)$' \| \
14459 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14460 $as_echo X"$ac_file" |
14461 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14462 s//\1/
14465 /^X\(\/\/\)[^/].*/{
14466 s//\1/
14469 /^X\(\/\/\)$/{
14470 s//\1/
14473 /^X\(\/\).*/{
14474 s//\1/
14477 s/.*/./; q'`
14478 as_dir="$ac_dir"; as_fn_mkdir_p
14479 ac_builddir=.
14481 case "$ac_dir" in
14482 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14484 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14485 # A ".." for each directory in $ac_dir_suffix.
14486 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14487 case $ac_top_builddir_sub in
14488 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14489 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14490 esac ;;
14491 esac
14492 ac_abs_top_builddir=$ac_pwd
14493 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14494 # for backward compatibility:
14495 ac_top_builddir=$ac_top_build_prefix
14497 case $srcdir in
14498 .) # We are building in place.
14499 ac_srcdir=.
14500 ac_top_srcdir=$ac_top_builddir_sub
14501 ac_abs_top_srcdir=$ac_pwd ;;
14502 [\\/]* | ?:[\\/]* ) # Absolute name.
14503 ac_srcdir=$srcdir$ac_dir_suffix;
14504 ac_top_srcdir=$srcdir
14505 ac_abs_top_srcdir=$srcdir ;;
14506 *) # Relative name.
14507 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14508 ac_top_srcdir=$ac_top_build_prefix$srcdir
14509 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14510 esac
14511 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14514 case $ac_mode in
14517 # CONFIG_FILE
14520 case $INSTALL in
14521 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14522 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14523 esac
14524 _ACEOF
14526 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14527 # If the template does not know about datarootdir, expand it.
14528 # FIXME: This hack should be removed a few years after 2.60.
14529 ac_datarootdir_hack=; ac_datarootdir_seen=
14530 ac_sed_dataroot='
14531 /datarootdir/ {
14535 /@datadir@/p
14536 /@docdir@/p
14537 /@infodir@/p
14538 /@localedir@/p
14539 /@mandir@/p'
14540 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14541 *datarootdir*) ac_datarootdir_seen=yes;;
14542 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14544 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14545 _ACEOF
14546 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14547 ac_datarootdir_hack='
14548 s&@datadir@&$datadir&g
14549 s&@docdir@&$docdir&g
14550 s&@infodir@&$infodir&g
14551 s&@localedir@&$localedir&g
14552 s&@mandir@&$mandir&g
14553 s&\\\${datarootdir}&$datarootdir&g' ;;
14554 esac
14555 _ACEOF
14557 # Neutralize VPATH when `$srcdir' = `.'.
14558 # Shell code in configure.ac might set extrasub.
14559 # FIXME: do we really want to maintain this feature?
14560 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14561 ac_sed_extra="$ac_vpsub
14562 $extrasub
14563 _ACEOF
14564 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14566 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14567 s|@configure_input@|$ac_sed_conf_input|;t t
14568 s&@top_builddir@&$ac_top_builddir_sub&;t t
14569 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14570 s&@srcdir@&$ac_srcdir&;t t
14571 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14572 s&@top_srcdir@&$ac_top_srcdir&;t t
14573 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14574 s&@builddir@&$ac_builddir&;t t
14575 s&@abs_builddir@&$ac_abs_builddir&;t t
14576 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14577 s&@INSTALL@&$ac_INSTALL&;t t
14578 $ac_datarootdir_hack
14580 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14581 || as_fn_error "could not create $ac_file" "$LINENO" 5
14583 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14584 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14585 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14587 which seems to be undefined. Please make sure it is defined." >&5
14588 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14589 which seems to be undefined. Please make sure it is defined." >&2;}
14591 rm -f "$tmp/stdin"
14592 case $ac_file in
14593 -) cat "$tmp/out" && rm -f "$tmp/out";;
14594 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14595 esac \
14596 || as_fn_error "could not create $ac_file" "$LINENO" 5
14600 # CONFIG_HEADER
14602 if test x"$ac_file" != x-; then
14604 $as_echo "/* $configure_input */" \
14605 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14606 } >"$tmp/config.h" \
14607 || as_fn_error "could not create $ac_file" "$LINENO" 5
14608 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14610 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14611 else
14612 rm -f "$ac_file"
14613 mv "$tmp/config.h" "$ac_file" \
14614 || as_fn_error "could not create $ac_file" "$LINENO" 5
14616 else
14617 $as_echo "/* $configure_input */" \
14618 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14619 || as_fn_error "could not create -" "$LINENO" 5
14624 esac
14627 case $ac_file$ac_mode in
14628 "Modules/ld_so_aix":F) chmod +x Modules/ld_so_aix ;;
14630 esac
14631 done # for ac_tag
14634 as_fn_exit 0
14635 _ACEOF
14636 ac_clean_files=$ac_clean_files_save
14638 test $ac_write_fail = 0 ||
14639 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
14642 # configure is writing to config.log, and then calls config.status.
14643 # config.status does its own redirection, appending to config.log.
14644 # Unfortunately, on DOS this fails, as config.log is still kept open
14645 # by configure, so config.status won't be able to write to it; its
14646 # output is simply discarded. So we exec the FD to /dev/null,
14647 # effectively closing config.log, so it can be properly (re)opened and
14648 # appended to by config.status. When coming back to configure, we
14649 # need to make the FD available again.
14650 if test "$no_create" != yes; then
14651 ac_cs_success=:
14652 ac_config_status_args=
14653 test "$silent" = yes &&
14654 ac_config_status_args="$ac_config_status_args --quiet"
14655 exec 5>/dev/null
14656 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14657 exec 5>>config.log
14658 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14659 # would make configure fail if this is the last instruction.
14660 $ac_cs_success || as_fn_exit $?
14662 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14664 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14668 echo "creating Modules/Setup"
14669 if test ! -f Modules/Setup
14670 then
14671 cp $srcdir/Modules/Setup.dist Modules/Setup
14674 echo "creating Modules/Setup.local"
14675 if test ! -f Modules/Setup.local
14676 then
14677 echo "# Edit this file for local setup changes" >Modules/Setup.local
14680 echo "creating Makefile"
14681 $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
14682 -s Modules Modules/Setup.config \
14683 Modules/Setup.local Modules/Setup
14684 mv config.c Modules