adjust to match the uname changes.
[AROS-Contrib.git] / development / python / Python-2.5.2-aros.diff
blob100eef69657820e6aaa1437bf72c9d1cf79b10e2
1 diff -ruN Python-2.5.2/configure Python-2.5.2.aros/configure
2 --- Python-2.5.2/configure 2008-02-13 19:17:17.000000000 +0000
3 +++ Python-2.5.2.aros/configure 2016-03-30 14:00:59.646930568 +0100
4 @@ -1,63 +1,84 @@
5 #! /bin/sh
6 -# From configure.in Revision: 60465 .
7 +# From configure.in Revision: 60766 .
8 # Guess values for system-dependent variables and create Makefiles.
9 -# Generated by GNU Autoconf 2.61 for python 2.5.
10 +# Generated by GNU Autoconf 2.69 for python 2.5.
12 # Report bugs to <http://www.python.org/python-bugs>.
14 -# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15 -# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
17 +# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
20 # This configure script is free software; the Free Software Foundation
21 # gives unlimited permission to copy, distribute and modify it.
22 -## --------------------- ##
23 -## M4sh Initialization. ##
24 -## --------------------- ##
25 +## -------------------- ##
26 +## M4sh Initialization. ##
27 +## -------------------- ##
29 # Be more Bourne compatible
30 DUALCASE=1; export DUALCASE # for MKS sh
31 -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
32 +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
33 emulate sh
34 NULLCMD=:
35 - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
36 + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
37 # is contrary to our usage. Disable this feature.
38 alias -g '${1+"$@"}'='"$@"'
39 setopt NO_GLOB_SUBST
40 else
41 - case `(set -o) 2>/dev/null` in
42 - *posix*) set -o posix ;;
43 + case `(set -o) 2>/dev/null` in #(
44 + *posix*) :
45 + set -o posix ;; #(
46 + *) :
47 + ;;
48 esac
55 -# PATH needs CR
56 -# Avoid depending upon Character Ranges.
57 -as_cr_letters='abcdefghijklmnopqrstuvwxyz'
58 -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
59 -as_cr_Letters=$as_cr_letters$as_cr_LETTERS
60 -as_cr_digits='0123456789'
61 -as_cr_alnum=$as_cr_Letters$as_cr_digits
63 -# The user is always right.
64 -if test "${PATH_SEPARATOR+set}" != set; then
65 - echo "#! /bin/sh" >conf$$.sh
66 - echo "exit 0" >>conf$$.sh
67 - chmod +x conf$$.sh
68 - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
69 - PATH_SEPARATOR=';'
70 +as_nl='
72 +export as_nl
73 +# Printing a long string crashes Solaris 7 /usr/bin/printf.
74 +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
75 +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
76 +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
77 +# Prefer a ksh shell builtin over an external printf program on Solaris,
78 +# but without wasting forks for bash or zsh.
79 +if test -z "$BASH_VERSION$ZSH_VERSION" \
80 + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
81 + as_echo='print -r --'
82 + as_echo_n='print -rn --'
83 +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
84 + as_echo='printf %s\n'
85 + as_echo_n='printf %s'
86 +else
87 + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
88 + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
89 + as_echo_n='/usr/ucb/echo -n'
90 else
91 - PATH_SEPARATOR=:
92 + as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
93 + as_echo_n_body='eval
94 + arg=$1;
95 + case $arg in #(
96 + *"$as_nl"*)
97 + expr "X$arg" : "X\\(.*\\)$as_nl";
98 + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
99 + esac;
100 + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
102 + export as_echo_n_body
103 + as_echo_n='sh -c $as_echo_n_body as_echo'
105 - rm -f conf$$.sh
106 + export as_echo_body
107 + as_echo='sh -c $as_echo_body as_echo'
110 -# Support unset when possible.
111 -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
112 - as_unset=unset
113 -else
114 - as_unset=false
115 +# The user is always right.
116 +if test "${PATH_SEPARATOR+set}" != set; then
117 + PATH_SEPARATOR=:
118 + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
119 + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
120 + PATH_SEPARATOR=';'
125 @@ -66,20 +87,19 @@
126 # there to prevent editors from complaining about space-tab.
127 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
128 # splitting by setting IFS to empty value.)
129 -as_nl='
131 IFS=" "" $as_nl"
133 # Find who we are. Look in the path if we contain no directory separator.
134 -case $0 in
135 +as_myself=
136 +case $0 in #((
137 *[\\/]* ) as_myself=$0 ;;
138 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139 for as_dir in $PATH
141 IFS=$as_save_IFS
142 test -z "$as_dir" && as_dir=.
143 - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
144 -done
145 + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
146 + done
147 IFS=$as_save_IFS
150 @@ -90,354 +110,367 @@
151 as_myself=$0
153 if test ! -f "$as_myself"; then
154 - echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
155 - { (exit 1); exit 1; }
156 + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
157 + exit 1
160 -# Work around bugs in pre-3.0 UWIN ksh.
161 -for as_var in ENV MAIL MAILPATH
162 -do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
163 +# Unset variables that we do not need and which cause bugs (e.g. in
164 +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
165 +# suppresses any "Segmentation fault" message there. '((' could
166 +# trigger a bug in pdksh 5.2.14.
167 +for as_var in BASH_ENV ENV MAIL MAILPATH
168 +do eval test x\${$as_var+set} = xset \
169 + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
170 done
171 PS1='$ '
172 PS2='> '
173 PS4='+ '
175 # NLS nuisances.
176 -for as_var in \
177 - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
178 - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
179 - LC_TELEPHONE LC_TIME
181 - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
182 - eval $as_var=C; export $as_var
183 - else
184 - ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
185 - fi
186 -done
188 -# Required to use basename.
189 -if expr a : '\(a\)' >/dev/null 2>&1 &&
190 - test "X`expr 00001 : '.*\(...\)'`" = X001; then
191 - as_expr=expr
192 -else
193 - as_expr=false
196 -if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
197 - as_basename=basename
198 -else
199 - as_basename=false
203 -# Name of the executable.
204 -as_me=`$as_basename -- "$0" ||
205 -$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
206 - X"$0" : 'X\(//\)$' \| \
207 - X"$0" : 'X\(/\)' \| . 2>/dev/null ||
208 -echo X/"$0" |
209 - sed '/^.*\/\([^/][^/]*\)\/*$/{
210 - s//\1/
213 - /^X\/\(\/\/\)$/{
214 - s//\1/
217 - /^X\/\(\/\).*/{
218 - s//\1/
221 - s/.*/./; q'`
222 +LC_ALL=C
223 +export LC_ALL
224 +LANGUAGE=C
225 +export LANGUAGE
227 # CDPATH.
228 -$as_unset CDPATH
230 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
232 +# Use a proper internal environment variable to ensure we don't fall
233 + # into an infinite loop, continuously re-executing ourselves.
234 + if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
235 + _as_can_reexec=no; export _as_can_reexec;
236 + # We cannot yet assume a decent shell, so we have to provide a
237 +# neutralization value for shells without unset; and this also
238 +# works around shells that cannot unset nonexistent variables.
239 +# Preserve -v and -x to the replacement shell.
240 +BASH_ENV=/dev/null
241 +ENV=/dev/null
242 +(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
243 +case $- in # ((((
244 + *v*x* | *x*v* ) as_opts=-vx ;;
245 + *v* ) as_opts=-v ;;
246 + *x* ) as_opts=-x ;;
247 + * ) as_opts= ;;
248 +esac
249 +exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
250 +# Admittedly, this is quite paranoid, since all the known shells bail
251 +# out after a failed `exec'.
252 +$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
253 +as_fn_exit 255
254 + fi
255 + # We don't want this to propagate to other subprocesses.
256 + { _as_can_reexec=; unset _as_can_reexec;}
257 if test "x$CONFIG_SHELL" = x; then
258 - if (eval ":") 2>/dev/null; then
259 - as_have_required=yes
260 + as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
261 + emulate sh
262 + NULLCMD=:
263 + # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
264 + # is contrary to our usage. Disable this feature.
265 + alias -g '\${1+\"\$@\"}'='\"\$@\"'
266 + setopt NO_GLOB_SUBST
267 else
268 - as_have_required=no
269 + case \`(set -o) 2>/dev/null\` in #(
270 + *posix*) :
271 + set -o posix ;; #(
272 + *) :
273 + ;;
274 +esac
277 - if test $as_have_required = yes && (eval ":
278 -(as_func_return () {
279 - (exit \$1)
281 -as_func_success () {
282 - as_func_return 0
284 -as_func_failure () {
285 - as_func_return 1
287 -as_func_ret_success () {
288 - return 0
290 -as_func_ret_failure () {
291 - return 1
294 + as_required="as_fn_return () { (exit \$1); }
295 +as_fn_success () { as_fn_return 0; }
296 +as_fn_failure () { as_fn_return 1; }
297 +as_fn_ret_success () { return 0; }
298 +as_fn_ret_failure () { return 1; }
300 exitcode=0
301 -if as_func_success; then
303 -else
304 - exitcode=1
305 - echo as_func_success failed.
308 -if as_func_failure; then
309 - exitcode=1
310 - echo as_func_failure succeeded.
313 -if as_func_ret_success; then
315 -else
316 - exitcode=1
317 - echo as_func_ret_success failed.
320 -if as_func_ret_failure; then
321 - exitcode=1
322 - echo as_func_ret_failure succeeded.
325 -if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
327 +as_fn_success || { exitcode=1; echo as_fn_success failed.; }
328 +as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
329 +as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
330 +as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
331 +if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
333 +else
334 + exitcode=1; echo positional parameters were not saved.
336 +test x\$exitcode = x0 || exit 1
337 +test -x / || exit 1"
338 + as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
339 + as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
340 + eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
341 + test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
342 +test \$(( 1 + 1 )) = 2 || exit 1"
343 + if (eval "$as_required") 2>/dev/null; then :
344 + as_have_required=yes
345 else
346 - exitcode=1
347 - echo positional parameters were not saved.
348 + as_have_required=no
350 + if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
352 -test \$exitcode = 0) || { (exit 1); exit 1; }
355 - as_lineno_1=\$LINENO
356 - as_lineno_2=\$LINENO
357 - test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
358 - test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
359 -") 2> /dev/null; then
361 else
362 - as_candidate_shells=
363 - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
364 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
365 +as_found=false
366 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
368 IFS=$as_save_IFS
369 test -z "$as_dir" && as_dir=.
370 - case $as_dir in
371 + as_found=:
372 + case $as_dir in #(
374 for as_base in sh bash ksh sh5; do
375 - as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
376 + # Try only shells that exist, to save several forks.
377 + as_shell=$as_dir/$as_base
378 + if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
379 + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
380 + CONFIG_SHELL=$as_shell as_have_required=yes
381 + if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
382 + break 2
385 done;;
386 esac
387 + as_found=false
388 done
389 +$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
390 + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
391 + CONFIG_SHELL=$SHELL as_have_required=yes
392 +fi; }
393 IFS=$as_save_IFS
396 - for as_shell in $as_candidate_shells $SHELL; do
397 - # Try only shells that exist, to save several forks.
398 - if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
399 - { ("$as_shell") 2> /dev/null <<\_ASEOF
400 -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
401 - emulate sh
402 - NULLCMD=:
403 - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
404 - # is contrary to our usage. Disable this feature.
405 - alias -g '${1+"$@"}'='"$@"'
406 - setopt NO_GLOB_SUBST
407 -else
408 - case `(set -o) 2>/dev/null` in
409 - *posix*) set -o posix ;;
410 -esac
412 + if test "x$CONFIG_SHELL" != x; then :
413 + export CONFIG_SHELL
414 + # We cannot yet assume a decent shell, so we have to provide a
415 +# neutralization value for shells without unset; and this also
416 +# works around shells that cannot unset nonexistent variables.
417 +# Preserve -v and -x to the replacement shell.
418 +BASH_ENV=/dev/null
419 +ENV=/dev/null
420 +(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
421 +case $- in # ((((
422 + *v*x* | *x*v* ) as_opts=-vx ;;
423 + *v* ) as_opts=-v ;;
424 + *x* ) as_opts=-x ;;
425 + * ) as_opts= ;;
426 +esac
427 +exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
428 +# Admittedly, this is quite paranoid, since all the known shells bail
429 +# out after a failed `exec'.
430 +$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
431 +exit 255
434 + if test x$as_have_required = xno; then :
435 + $as_echo "$0: This script requires a shell more modern than all"
436 + $as_echo "$0: the shells that I found on your system."
437 + if test x${ZSH_VERSION+set} = xset ; then
438 + $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
439 + $as_echo "$0: be upgraded to zsh 4.3.4 or later."
440 + else
441 + $as_echo "$0: Please tell bug-autoconf@gnu.org and
442 +$0: http://www.python.org/python-bugs about your system,
443 +$0: including any error possibly output before this
444 +$0: message. Then install a modern shell, or manually run
445 +$0: the script under such a shell if you do have one."
446 + fi
447 + exit 1
453 -_ASEOF
454 -}; then
455 - CONFIG_SHELL=$as_shell
456 - as_have_required=yes
457 - if { "$as_shell" 2> /dev/null <<\_ASEOF
458 -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
459 - emulate sh
460 - NULLCMD=:
461 - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
462 - # is contrary to our usage. Disable this feature.
463 - alias -g '${1+"$@"}'='"$@"'
464 - setopt NO_GLOB_SUBST
465 -else
466 - case `(set -o) 2>/dev/null` in
467 - *posix*) set -o posix ;;
468 -esac
471 +SHELL=${CONFIG_SHELL-/bin/sh}
472 +export SHELL
473 +# Unset more variables known to interfere with behavior of common tools.
474 +CLICOLOR_FORCE= GREP_OPTIONS=
475 +unset CLICOLOR_FORCE GREP_OPTIONS
477 +## --------------------- ##
478 +## M4sh Shell Functions. ##
479 +## --------------------- ##
480 +# as_fn_unset VAR
481 +# ---------------
482 +# Portably unset VAR.
483 +as_fn_unset ()
485 + { eval $1=; unset $1;}
487 +as_unset=as_fn_unset
489 +# as_fn_set_status STATUS
490 +# -----------------------
491 +# Set $? to STATUS, without forking.
492 +as_fn_set_status ()
494 + return $1
495 +} # as_fn_set_status
497 +# as_fn_exit STATUS
498 +# -----------------
499 +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
500 +as_fn_exit ()
502 + set +e
503 + as_fn_set_status $1
504 + exit $1
505 +} # as_fn_exit
507 +# as_fn_mkdir_p
508 +# -------------
509 +# Create "$as_dir" as a directory, including parents if necessary.
510 +as_fn_mkdir_p ()
514 -(as_func_return () {
515 - (exit $1)
517 -as_func_success () {
518 - as_func_return 0
520 -as_func_failure () {
521 - as_func_return 1
523 -as_func_ret_success () {
524 - return 0
526 -as_func_ret_failure () {
527 - return 1
529 + case $as_dir in #(
530 + -*) as_dir=./$as_dir;;
531 + esac
532 + test -d "$as_dir" || eval $as_mkdir_p || {
533 + as_dirs=
534 + while :; do
535 + case $as_dir in #(
536 + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
537 + *) as_qdir=$as_dir;;
538 + esac
539 + as_dirs="'$as_qdir' $as_dirs"
540 + as_dir=`$as_dirname -- "$as_dir" ||
541 +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
542 + X"$as_dir" : 'X\(//\)[^/]' \| \
543 + X"$as_dir" : 'X\(//\)$' \| \
544 + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
545 +$as_echo X"$as_dir" |
546 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
547 + s//\1/
550 + /^X\(\/\/\)[^/].*/{
551 + s//\1/
554 + /^X\(\/\/\)$/{
555 + s//\1/
558 + /^X\(\/\).*/{
559 + s//\1/
562 + s/.*/./; q'`
563 + test -d "$as_dir" && break
564 + done
565 + test -z "$as_dirs" || eval "mkdir $as_dirs"
566 + } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
568 -exitcode=0
569 -if as_func_success; then
571 -else
572 - exitcode=1
573 - echo as_func_success failed.
576 -if as_func_failure; then
577 - exitcode=1
578 - echo as_func_failure succeeded.
580 +} # as_fn_mkdir_p
582 -if as_func_ret_success; then
584 +# as_fn_executable_p FILE
585 +# -----------------------
586 +# Test if FILE is an executable regular file.
587 +as_fn_executable_p ()
589 + test -f "$1" && test -x "$1"
590 +} # as_fn_executable_p
591 +# as_fn_append VAR VALUE
592 +# ----------------------
593 +# Append the text in VALUE to the end of the definition contained in VAR. Take
594 +# advantage of any shell optimizations that allow amortized linear growth over
595 +# repeated appends, instead of the typical quadratic growth present in naive
596 +# implementations.
597 +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
598 + eval 'as_fn_append ()
600 + eval $1+=\$2
601 + }'
602 else
603 - exitcode=1
604 - echo as_func_ret_success failed.
607 -if as_func_ret_failure; then
608 - exitcode=1
609 - echo as_func_ret_failure succeeded.
611 + as_fn_append ()
613 + eval $1=\$$1\$2
615 +fi # as_fn_append
617 -if ( set x; as_func_ret_success y && test x = "$1" ); then
619 +# as_fn_arith ARG...
620 +# ------------------
621 +# Perform arithmetic evaluation on the ARGs, and store the result in the
622 +# global $as_val. Take advantage of shells that can avoid forks. The arguments
623 +# must be portable across $(()) and expr.
624 +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
625 + eval 'as_fn_arith ()
627 + as_val=$(( $* ))
628 + }'
629 else
630 - exitcode=1
631 - echo positional parameters were not saved.
634 -test $exitcode = 0) || { (exit 1); exit 1; }
637 - as_lineno_1=$LINENO
638 - as_lineno_2=$LINENO
639 - test "x$as_lineno_1" != "x$as_lineno_2" &&
640 - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
642 -_ASEOF
643 -}; then
644 - break
649 - done
651 - if test "x$CONFIG_SHELL" != x; then
652 - for as_var in BASH_ENV ENV
653 - do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
654 - done
655 - export CONFIG_SHELL
656 - exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
660 - if test $as_have_required = no; then
661 - echo This script requires a shell more modern than all the
662 - echo shells that I found on your system. Please install a
663 - echo modern shell, or manually run the script under such a
664 - echo shell if you do have one.
665 - { (exit 1); exit 1; }
673 + as_fn_arith ()
675 + as_val=`expr "$@" || test $? -eq 1`
677 +fi # as_fn_arith
680 -(eval "as_func_return () {
681 - (exit \$1)
683 -as_func_success () {
684 - as_func_return 0
686 -as_func_failure () {
687 - as_func_return 1
689 -as_func_ret_success () {
690 - return 0
692 -as_func_ret_failure () {
693 - return 1
695 +# as_fn_error STATUS ERROR [LINENO LOG_FD]
696 +# ----------------------------------------
697 +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
698 +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
699 +# script with STATUS, using 1 if that was 0.
700 +as_fn_error ()
702 + as_status=$1; test $as_status -eq 0 && as_status=1
703 + if test "$4"; then
704 + as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
705 + $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
706 + fi
707 + $as_echo "$as_me: error: $2" >&2
708 + as_fn_exit $as_status
709 +} # as_fn_error
711 -exitcode=0
712 -if as_func_success; then
714 +if expr a : '\(a\)' >/dev/null 2>&1 &&
715 + test "X`expr 00001 : '.*\(...\)'`" = X001; then
716 + as_expr=expr
717 else
718 - exitcode=1
719 - echo as_func_success failed.
722 -if as_func_failure; then
723 - exitcode=1
724 - echo as_func_failure succeeded.
725 + as_expr=false
728 -if as_func_ret_success; then
730 +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
731 + as_basename=basename
732 else
733 - exitcode=1
734 - echo as_func_ret_success failed.
737 -if as_func_ret_failure; then
738 - exitcode=1
739 - echo as_func_ret_failure succeeded.
740 + as_basename=false
743 -if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
745 +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
746 + as_dirname=dirname
747 else
748 - exitcode=1
749 - echo positional parameters were not saved.
750 + as_dirname=false
753 -test \$exitcode = 0") || {
754 - echo No shell found that supports shell functions.
755 - echo Please tell autoconf@gnu.org about your system,
756 - echo including any error possibly output before this
757 - echo message
759 +as_me=`$as_basename -- "$0" ||
760 +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
761 + X"$0" : 'X\(//\)$' \| \
762 + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
763 +$as_echo X/"$0" |
764 + sed '/^.*\/\([^/][^/]*\)\/*$/{
765 + s//\1/
768 + /^X\/\(\/\/\)$/{
769 + s//\1/
772 + /^X\/\(\/\).*/{
773 + s//\1/
776 + s/.*/./; q'`
778 +# Avoid depending upon Character Ranges.
779 +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
780 +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
781 +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
782 +as_cr_digits='0123456789'
783 +as_cr_alnum=$as_cr_Letters$as_cr_digits
786 - as_lineno_1=$LINENO
787 - as_lineno_2=$LINENO
788 - test "x$as_lineno_1" != "x$as_lineno_2" &&
789 - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
791 - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
792 - # uniformly replaced by the line number. The first 'sed' inserts a
793 - # line-number line after each line using $LINENO; the second 'sed'
794 - # does the real work. The second script uses 'N' to pair each
795 - # line-number line with the line containing $LINENO, and appends
796 - # trailing '-' during substitution so that $LINENO is not a special
797 - # case at line end.
798 - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
799 - # scripts with optimization help from Paolo Bonzini. Blame Lee
800 - # E. McMahon (1931-1989) for sed's syntax. :-)
801 + as_lineno_1=$LINENO as_lineno_1a=$LINENO
802 + as_lineno_2=$LINENO as_lineno_2a=$LINENO
803 + eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
804 + test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
805 + # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
806 sed -n '
808 /[$]LINENO/=
809 @@ -454,9 +487,12 @@
810 s/-\n.*//
811 ' >$as_me.lineno &&
812 chmod +x "$as_me.lineno" ||
813 - { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
814 - { (exit 1); exit 1; }; }
815 + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
817 + # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
818 + # already done that, so ensure we don't try to do so again and fall
819 + # in an infinite loop. This has already happened in practice.
820 + _as_can_reexec=no; export _as_can_reexec
821 # Don't try to exec as it changes $[0], causing all sort of problems
822 # (the dirname of $[0] is not the place where we might find the
823 # original and so on. Autoconf is especially sensitive to this).
824 @@ -465,84 +501,55 @@
825 exit
829 -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
830 - as_dirname=dirname
831 -else
832 - as_dirname=false
835 ECHO_C= ECHO_N= ECHO_T=
836 -case `echo -n x` in
837 +case `echo -n x` in #(((((
838 -n*)
839 - case `echo 'x\c'` in
840 + case `echo 'xy\c'` in
841 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
842 - *) ECHO_C='\c';;
843 + xy) ECHO_C='\c';;
844 + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
845 + ECHO_T=' ';;
846 esac;;
848 ECHO_N='-n';;
849 esac
851 -if expr a : '\(a\)' >/dev/null 2>&1 &&
852 - test "X`expr 00001 : '.*\(...\)'`" = X001; then
853 - as_expr=expr
854 -else
855 - as_expr=false
858 rm -f conf$$ conf$$.exe conf$$.file
859 if test -d conf$$.dir; then
860 rm -f conf$$.dir/conf$$.file
861 else
862 rm -f conf$$.dir
863 - mkdir conf$$.dir
864 + mkdir conf$$.dir 2>/dev/null
866 -echo >conf$$.file
867 -if ln -s conf$$.file conf$$ 2>/dev/null; then
868 - as_ln_s='ln -s'
869 - # ... but there are two gotchas:
870 - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
871 - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
872 - # In both cases, we have to default to `cp -p'.
873 - ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
874 - as_ln_s='cp -p'
875 -elif ln conf$$.file conf$$ 2>/dev/null; then
876 - as_ln_s=ln
877 +if (echo >conf$$.file) 2>/dev/null; then
878 + if ln -s conf$$.file conf$$ 2>/dev/null; then
879 + as_ln_s='ln -s'
880 + # ... but there are two gotchas:
881 + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
882 + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
883 + # In both cases, we have to default to `cp -pR'.
884 + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
885 + as_ln_s='cp -pR'
886 + elif ln conf$$.file conf$$ 2>/dev/null; then
887 + as_ln_s=ln
888 + else
889 + as_ln_s='cp -pR'
890 + fi
891 else
892 - as_ln_s='cp -p'
893 + as_ln_s='cp -pR'
895 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
896 rmdir conf$$.dir 2>/dev/null
898 if mkdir -p . 2>/dev/null; then
899 - as_mkdir_p=:
900 + as_mkdir_p='mkdir -p "$as_dir"'
901 else
902 test -d ./-p && rmdir ./-p
903 as_mkdir_p=false
906 -if test -x / >/dev/null 2>&1; then
907 - as_test_x='test -x'
908 -else
909 - if ls -dL / >/dev/null 2>&1; then
910 - as_ls_L_option=L
911 - else
912 - as_ls_L_option=
913 - fi
914 - as_test_x='
915 - eval sh -c '\''
916 - if test -d "$1"; then
917 - test -d "$1/.";
918 - else
919 - case $1 in
920 - -*)set "./$1";;
921 - esac;
922 - case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
923 - ???[sx]*):;;*)false;;esac;fi
924 - '\'' sh
927 -as_executable_p=$as_test_x
928 +as_test_x='test -x'
929 +as_executable_p=as_fn_executable_p
931 # Sed expression to map a string onto a valid CPP name.
932 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
933 @@ -551,11 +558,11 @@
934 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
938 -exec 7<&0 </dev/null 6>&1
939 +test -n "$DJDIR" || exec 7<&0 </dev/null
940 +exec 6>&1
942 # Name of the host.
943 -# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
944 +# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
945 # so uname gets run too.
946 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
948 @@ -570,7 +577,6 @@
949 subdirs=
950 MFLAGS=
951 MAKEFLAGS=
952 -SHELL=${CONFIG_SHELL-/bin/sh}
954 # Identity of this package.
955 PACKAGE_NAME='python'
956 @@ -578,6 +584,7 @@
957 PACKAGE_VERSION='2.5'
958 PACKAGE_STRING='python 2.5'
959 PACKAGE_BUGREPORT='http://www.python.org/python-bugs'
960 +PACKAGE_URL=''
962 ac_unique_file="Include/object.h"
963 # Factoring default headers for most tests.
964 @@ -616,123 +623,152 @@
965 # include <unistd.h>
966 #endif"
968 -ac_subst_vars='SHELL
969 -PATH_SEPARATOR
970 -PACKAGE_NAME
971 -PACKAGE_TARNAME
972 -PACKAGE_VERSION
973 -PACKAGE_STRING
974 -PACKAGE_BUGREPORT
975 -exec_prefix
976 -prefix
977 -program_transform_name
978 -bindir
979 -sbindir
980 -libexecdir
981 -datarootdir
982 -datadir
983 -sysconfdir
984 -sharedstatedir
985 -localstatedir
986 -includedir
987 -oldincludedir
988 -docdir
989 -infodir
990 -htmldir
991 -dvidir
992 -pdfdir
993 -psdir
994 -libdir
995 -localedir
996 -mandir
997 -DEFS
998 -ECHO_C
999 -ECHO_N
1000 -ECHO_T
1001 -LIBS
1002 -build_alias
1003 -host_alias
1004 -target_alias
1005 -VERSION
1006 -SOVERSION
1007 -CONFIG_ARGS
1008 -UNIVERSALSDK
1009 -PYTHONFRAMEWORK
1010 -PYTHONFRAMEWORKDIR
1011 -PYTHONFRAMEWORKPREFIX
1012 -PYTHONFRAMEWORKINSTALLDIR
1013 -FRAMEWORKINSTALLFIRST
1014 -FRAMEWORKINSTALLLAST
1015 -FRAMEWORKALTINSTALLFIRST
1016 -FRAMEWORKALTINSTALLLAST
1017 -FRAMEWORKUNIXTOOLSPREFIX
1018 -MACHDEP
1019 -SGI_ABI
1020 -EXTRAPLATDIR
1021 -EXTRAMACHDEPPATH
1022 -CONFIGURE_MACOSX_DEPLOYMENT_TARGET
1023 -EXPORT_MACOSX_DEPLOYMENT_TARGET
1025 -CFLAGS
1026 -LDFLAGS
1027 -CPPFLAGS
1028 -ac_ct_CC
1029 -EXEEXT
1030 -OBJEXT
1031 -CXX
1032 -MAINCC
1033 -CPP
1034 -GREP
1035 -EGREP
1036 -BUILDEXEEXT
1037 -LIBRARY
1038 -LDLIBRARY
1039 -DLLLIBRARY
1040 -BLDLIBRARY
1041 -LDLIBRARYDIR
1042 -INSTSONAME
1043 -RUNSHARED
1044 -LINKCC
1045 -RANLIB
1047 -SVNVERSION
1048 -INSTALL_PROGRAM
1049 -INSTALL_SCRIPT
1050 -INSTALL_DATA
1052 -OPT
1053 -BASECFLAGS
1054 -OTHER_LIBTOOL_OPT
1055 -LIBTOOL_CRUFT
1057 -LDSHARED
1058 -BLDSHARED
1059 -CCSHARED
1060 -LINKFORSHARED
1061 -CFLAGSFORSHARED
1062 -SHLIBS
1063 -USE_SIGNAL_MODULE
1064 -SIGNAL_OBJS
1065 -USE_THREAD_MODULE
1066 -LDLAST
1067 -THREADOBJ
1068 -DLINCLDIR
1069 -DYNLOADFILE
1070 -MACHDEP_OBJS
1071 -TRUE
1072 -LIBOBJS
1073 -HAVE_GETHOSTBYNAME_R_6_ARG
1074 -HAVE_GETHOSTBYNAME_R_5_ARG
1075 -HAVE_GETHOSTBYNAME_R_3_ARG
1076 -HAVE_GETHOSTBYNAME_R
1077 -HAVE_GETHOSTBYNAME
1078 -LIBM
1079 -LIBC
1080 -UNICODE_OBJS
1081 -THREADHEADERS
1082 +ac_subst_vars='LTLIBOBJS
1083 SRCDIRS
1084 -LTLIBOBJS'
1085 +THREADHEADERS
1086 +UNICODE_OBJS
1087 +LIBC
1088 +LIBM
1089 +HAVE_GETHOSTBYNAME
1090 +HAVE_GETHOSTBYNAME_R
1091 +HAVE_GETHOSTBYNAME_R_3_ARG
1092 +HAVE_GETHOSTBYNAME_R_5_ARG
1093 +HAVE_GETHOSTBYNAME_R_6_ARG
1094 +LIBOBJS
1095 +TRUE
1096 +MACHDEP_OBJS
1097 +DYNLOADFILE
1098 +DLINCLDIR
1099 +THREADOBJ
1100 +LDLAST
1101 +USE_THREAD_MODULE
1102 +SIGNAL_OBJS
1103 +USE_SIGNAL_MODULE
1104 +SHLIBS
1105 +CFLAGSFORSHARED
1106 +LINKFORSHARED
1107 +CCSHARED
1108 +BLDSHARED
1109 +LDSHARED
1111 +LIBTOOL_CRUFT
1112 +OTHER_LIBTOOL_OPT
1113 +BASECFLAGS
1114 +OPT
1116 +INSTALL_DATA
1117 +INSTALL_SCRIPT
1118 +INSTALL_PROGRAM
1119 +SVNVERSION
1121 +RANLIB
1122 +LINKCC
1123 +RUNSHARED
1124 +INSTSONAME
1125 +LDLIBRARYDIR
1126 +BLDLIBRARY
1127 +DLLLIBRARY
1128 +LDLIBRARY
1129 +LIBRARY
1130 +BUILDEXEEXT
1131 +EGREP
1132 +GREP
1133 +CPP
1134 +MAINCC
1135 +CXX
1136 +OBJEXT
1137 +EXEEXT
1138 +ac_ct_CC
1139 +CPPFLAGS
1140 +LDFLAGS
1141 +CFLAGS
1143 +EXPORT_MACOSX_DEPLOYMENT_TARGET
1144 +CONFIGURE_MACOSX_DEPLOYMENT_TARGET
1145 +EXTRAMACHDEPPATH
1146 +EXTRAPLATDIR
1147 +SGI_ABI
1148 +MACHDEP
1149 +FRAMEWORKUNIXTOOLSPREFIX
1150 +FRAMEWORKALTINSTALLLAST
1151 +FRAMEWORKALTINSTALLFIRST
1152 +FRAMEWORKINSTALLLAST
1153 +FRAMEWORKINSTALLFIRST
1154 +PYTHONFRAMEWORKINSTALLDIR
1155 +PYTHONFRAMEWORKPREFIX
1156 +PYTHONFRAMEWORKDIR
1157 +PYTHONFRAMEWORK
1158 +UNIVERSALSDK
1159 +CONFIG_ARGS
1160 +SOVERSION
1161 +VERSION
1162 +target_alias
1163 +host_alias
1164 +build_alias
1165 +LIBS
1166 +ECHO_T
1167 +ECHO_N
1168 +ECHO_C
1169 +DEFS
1170 +mandir
1171 +localedir
1172 +libdir
1173 +psdir
1174 +pdfdir
1175 +dvidir
1176 +htmldir
1177 +infodir
1178 +docdir
1179 +oldincludedir
1180 +includedir
1181 +localstatedir
1182 +sharedstatedir
1183 +sysconfdir
1184 +datadir
1185 +datarootdir
1186 +libexecdir
1187 +sbindir
1188 +bindir
1189 +program_transform_name
1190 +prefix
1191 +exec_prefix
1192 +PACKAGE_URL
1193 +PACKAGE_BUGREPORT
1194 +PACKAGE_STRING
1195 +PACKAGE_VERSION
1196 +PACKAGE_TARNAME
1197 +PACKAGE_NAME
1198 +PATH_SEPARATOR
1199 +SHELL'
1200 ac_subst_files=''
1201 +ac_user_opts='
1202 +enable_option_checking
1203 +enable_universalsdk
1204 +enable_framework
1205 +with_gcc
1206 +with_cxx_main
1207 +with_suffix
1208 +enable_shared
1209 +enable_profiling
1210 +with_pydebug
1211 +enable_toolbox_glue
1212 +with_libs
1213 +with_system_ffi
1214 +with_signal_module
1215 +with_dec_threads
1216 +with_threads
1217 +with_thread
1218 +with_pth
1219 +enable_ipv6
1220 +with_doc_strings
1221 +with_tsc
1222 +with_pymalloc
1223 +with_wctype_functions
1224 +with_fpectl
1225 +with_libm
1226 +with_libc
1227 +enable_unicode
1229 ac_precious_vars='build_alias
1230 host_alias
1231 target_alias
1232 @@ -747,6 +783,8 @@
1233 # Initialize some variables set by options.
1234 ac_init_help=
1235 ac_init_version=false
1236 +ac_unrecognized_opts=
1237 +ac_unrecognized_sep=
1238 # The variables have the same names as the options, with
1239 # dashes changed to underlines.
1240 cache_file=/dev/null
1241 @@ -802,8 +840,9 @@
1244 case $ac_option in
1245 - *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1246 - *) ac_optarg=yes ;;
1247 + *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1248 + *=) ac_optarg= ;;
1249 + *) ac_optarg=yes ;;
1250 esac
1252 # Accept the important Cygnus configure options, so we can diagnose typos.
1253 @@ -845,13 +884,20 @@
1254 datarootdir=$ac_optarg ;;
1256 -disable-* | --disable-*)
1257 - ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1258 + ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1259 # Reject names that are not valid shell variable names.
1260 - expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1261 - { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1262 - { (exit 1); exit 1; }; }
1263 - ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1264 - eval enable_$ac_feature=no ;;
1265 + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1266 + as_fn_error $? "invalid feature name: $ac_useropt"
1267 + ac_useropt_orig=$ac_useropt
1268 + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1269 + case $ac_user_opts in
1270 + *"
1271 +"enable_$ac_useropt"
1272 +"*) ;;
1273 + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1274 + ac_unrecognized_sep=', ';;
1275 + esac
1276 + eval enable_$ac_useropt=no ;;
1278 -docdir | --docdir | --docdi | --doc | --do)
1279 ac_prev=docdir ;;
1280 @@ -864,13 +910,20 @@
1281 dvidir=$ac_optarg ;;
1283 -enable-* | --enable-*)
1284 - ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1285 + ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1286 # Reject names that are not valid shell variable names.
1287 - expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1288 - { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1289 - { (exit 1); exit 1; }; }
1290 - ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1291 - eval enable_$ac_feature=\$ac_optarg ;;
1292 + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1293 + as_fn_error $? "invalid feature name: $ac_useropt"
1294 + ac_useropt_orig=$ac_useropt
1295 + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1296 + case $ac_user_opts in
1297 + *"
1298 +"enable_$ac_useropt"
1299 +"*) ;;
1300 + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1301 + ac_unrecognized_sep=', ';;
1302 + esac
1303 + eval enable_$ac_useropt=\$ac_optarg ;;
1305 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1306 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1307 @@ -1061,22 +1114,36 @@
1308 ac_init_version=: ;;
1310 -with-* | --with-*)
1311 - ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1312 + ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1313 # Reject names that are not valid shell variable names.
1314 - expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1315 - { echo "$as_me: error: invalid package name: $ac_package" >&2
1316 - { (exit 1); exit 1; }; }
1317 - ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1318 - eval with_$ac_package=\$ac_optarg ;;
1319 + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1320 + as_fn_error $? "invalid package name: $ac_useropt"
1321 + ac_useropt_orig=$ac_useropt
1322 + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1323 + case $ac_user_opts in
1324 + *"
1325 +"with_$ac_useropt"
1326 +"*) ;;
1327 + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1328 + ac_unrecognized_sep=', ';;
1329 + esac
1330 + eval with_$ac_useropt=\$ac_optarg ;;
1332 -without-* | --without-*)
1333 - ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1334 + ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1335 # Reject names that are not valid shell variable names.
1336 - expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1337 - { echo "$as_me: error: invalid package name: $ac_package" >&2
1338 - { (exit 1); exit 1; }; }
1339 - ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1340 - eval with_$ac_package=no ;;
1341 + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1342 + as_fn_error $? "invalid package name: $ac_useropt"
1343 + ac_useropt_orig=$ac_useropt
1344 + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1345 + case $ac_user_opts in
1346 + *"
1347 +"with_$ac_useropt"
1348 +"*) ;;
1349 + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1350 + ac_unrecognized_sep=', ';;
1351 + esac
1352 + eval with_$ac_useropt=no ;;
1354 --x)
1355 # Obsolete; use --with-x.
1356 @@ -1096,26 +1163,26 @@
1357 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1358 x_libraries=$ac_optarg ;;
1360 - -*) { echo "$as_me: error: unrecognized option: $ac_option
1361 -Try \`$0 --help' for more information." >&2
1362 - { (exit 1); exit 1; }; }
1363 + -*) as_fn_error $? "unrecognized option: \`$ac_option'
1364 +Try \`$0 --help' for more information"
1367 *=*)
1368 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1369 # Reject names that are not valid shell variable names.
1370 - expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1371 - { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1372 - { (exit 1); exit 1; }; }
1373 + case $ac_envvar in #(
1374 + '' | [0-9]* | *[!_$as_cr_alnum]* )
1375 + as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1376 + esac
1377 eval $ac_envvar=\$ac_optarg
1378 export $ac_envvar ;;
1381 # FIXME: should be removed in autoconf 3.0.
1382 - echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1383 + $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1384 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1385 - echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1386 - : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1387 + $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1388 + : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1391 esac
1392 @@ -1123,23 +1190,36 @@
1394 if test -n "$ac_prev"; then
1395 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1396 - { echo "$as_me: error: missing argument to $ac_option" >&2
1397 - { (exit 1); exit 1; }; }
1398 + as_fn_error $? "missing argument to $ac_option"
1401 -# Be sure to have absolute directory names.
1402 -for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1403 +if test -n "$ac_unrecognized_opts"; then
1404 + case $enable_option_checking in
1405 + no) ;;
1406 + fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1407 + *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1408 + esac
1411 +# Check all directory arguments for consistency.
1412 +for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1413 datadir sysconfdir sharedstatedir localstatedir includedir \
1414 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1415 libdir localedir mandir
1417 eval ac_val=\$$ac_var
1418 + # Remove trailing slashes.
1419 + case $ac_val in
1420 + */ )
1421 + ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1422 + eval $ac_var=\$ac_val;;
1423 + esac
1424 + # Be sure to have absolute directory names.
1425 case $ac_val in
1426 [\\/$]* | ?:[\\/]* ) continue;;
1427 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1428 esac
1429 - { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1430 - { (exit 1); exit 1; }; }
1431 + as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1432 done
1434 # There might be people who depend on the old broken behavior: `$host'
1435 @@ -1153,8 +1233,6 @@
1436 if test "x$host_alias" != x; then
1437 if test "x$build_alias" = x; then
1438 cross_compiling=maybe
1439 - echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1440 - If a cross compiler is detected then cross compile mode will be used." >&2
1441 elif test "x$build_alias" != "x$host_alias"; then
1442 cross_compiling=yes
1444 @@ -1169,23 +1247,21 @@
1445 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1446 ac_ls_di=`ls -di .` &&
1447 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1448 - { echo "$as_me: error: Working directory cannot be determined" >&2
1449 - { (exit 1); exit 1; }; }
1450 + as_fn_error $? "working directory cannot be determined"
1451 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1452 - { echo "$as_me: error: pwd does not report name of working directory" >&2
1453 - { (exit 1); exit 1; }; }
1454 + as_fn_error $? "pwd does not report name of working directory"
1457 # Find the source files, if location was not specified.
1458 if test -z "$srcdir"; then
1459 ac_srcdir_defaulted=yes
1460 # Try the directory containing this script, then the parent directory.
1461 - ac_confdir=`$as_dirname -- "$0" ||
1462 -$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1463 - X"$0" : 'X\(//\)[^/]' \| \
1464 - X"$0" : 'X\(//\)$' \| \
1465 - X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1466 -echo X"$0" |
1467 + ac_confdir=`$as_dirname -- "$as_myself" ||
1468 +$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1469 + X"$as_myself" : 'X\(//\)[^/]' \| \
1470 + X"$as_myself" : 'X\(//\)$' \| \
1471 + X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1472 +$as_echo X"$as_myself" |
1473 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1474 s//\1/
1476 @@ -1212,13 +1288,11 @@
1478 if test ! -r "$srcdir/$ac_unique_file"; then
1479 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1480 - { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1481 - { (exit 1); exit 1; }; }
1482 + as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1484 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1485 ac_abs_confdir=`(
1486 - cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1487 - { (exit 1); exit 1; }; }
1488 + cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1489 pwd)`
1490 # When building in place, set srcdir=.
1491 if test "$ac_abs_confdir" = "$ac_pwd"; then
1492 @@ -1258,7 +1332,7 @@
1493 --help=short display options specific to this package
1494 --help=recursive display the short help of all the included packages
1495 -V, --version display version information and exit
1496 - -q, --quiet, --silent do not print \`checking...' messages
1497 + -q, --quiet, --silent do not print \`checking ...' messages
1498 --cache-file=FILE cache test results in FILE [disabled]
1499 -C, --config-cache alias for \`--cache-file=config.cache'
1500 -n, --no-create do not create output files
1501 @@ -1266,9 +1340,9 @@
1503 Installation directories:
1504 --prefix=PREFIX install architecture-independent files in PREFIX
1505 - [$ac_default_prefix]
1506 + [$ac_default_prefix]
1507 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1508 - [PREFIX]
1509 + [PREFIX]
1511 By default, \`make install' will install all the files in
1512 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1513 @@ -1278,25 +1352,25 @@
1514 For better control, use the options below.
1516 Fine tuning of the installation directories:
1517 - --bindir=DIR user executables [EPREFIX/bin]
1518 - --sbindir=DIR system admin executables [EPREFIX/sbin]
1519 - --libexecdir=DIR program executables [EPREFIX/libexec]
1520 - --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1521 - --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1522 - --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1523 - --libdir=DIR object code libraries [EPREFIX/lib]
1524 - --includedir=DIR C header files [PREFIX/include]
1525 - --oldincludedir=DIR C header files for non-gcc [/usr/include]
1526 - --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1527 - --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1528 - --infodir=DIR info documentation [DATAROOTDIR/info]
1529 - --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1530 - --mandir=DIR man documentation [DATAROOTDIR/man]
1531 - --docdir=DIR documentation root [DATAROOTDIR/doc/python]
1532 - --htmldir=DIR html documentation [DOCDIR]
1533 - --dvidir=DIR dvi documentation [DOCDIR]
1534 - --pdfdir=DIR pdf documentation [DOCDIR]
1535 - --psdir=DIR ps documentation [DOCDIR]
1536 + --bindir=DIR user executables [EPREFIX/bin]
1537 + --sbindir=DIR system admin executables [EPREFIX/sbin]
1538 + --libexecdir=DIR program executables [EPREFIX/libexec]
1539 + --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1540 + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1541 + --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1542 + --libdir=DIR object code libraries [EPREFIX/lib]
1543 + --includedir=DIR C header files [PREFIX/include]
1544 + --oldincludedir=DIR C header files for non-gcc [/usr/include]
1545 + --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1546 + --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1547 + --infodir=DIR info documentation [DATAROOTDIR/info]
1548 + --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1549 + --mandir=DIR man documentation [DATAROOTDIR/man]
1550 + --docdir=DIR documentation root [DATAROOTDIR/doc/python]
1551 + --htmldir=DIR html documentation [DOCDIR]
1552 + --dvidir=DIR dvi documentation [DOCDIR]
1553 + --pdfdir=DIR pdf documentation [DOCDIR]
1554 + --psdir=DIR ps documentation [DOCDIR]
1555 _ACEOF
1557 cat <<\_ACEOF
1558 @@ -1310,6 +1384,7 @@
1559 cat <<\_ACEOF
1561 Optional Features:
1562 + --disable-option-checking ignore unrecognized --enable/--with options
1563 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1564 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1565 --enable-universalsdk[=SDKDIR]
1566 @@ -1356,7 +1431,7 @@
1567 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1568 nonstandard directory <lib dir>
1569 LIBS libraries to pass to the linker, e.g. -l<library>
1570 - CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1571 + CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1572 you have headers in a nonstandard directory <include dir>
1573 CPP C preprocessor
1575 @@ -1371,15 +1446,17 @@
1576 if test "$ac_init_help" = "recursive"; then
1577 # If there are subdirs, report their specific --help.
1578 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1579 - test -d "$ac_dir" || continue
1580 + test -d "$ac_dir" ||
1581 + { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1582 + continue
1583 ac_builddir=.
1585 case "$ac_dir" in
1586 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1588 - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1589 + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1590 # A ".." for each directory in $ac_dir_suffix.
1591 - ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1592 + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1593 case $ac_top_builddir_sub in
1594 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1595 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1596 @@ -1415,7 +1492,7 @@
1597 echo &&
1598 $SHELL "$ac_srcdir/configure" --help=recursive
1599 else
1600 - echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1601 + $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1602 fi || ac_status=$?
1603 cd "$ac_pwd" || { ac_status=$?; break; }
1604 done
1605 @@ -1425,466 +1502,1146 @@
1606 if $ac_init_version; then
1607 cat <<\_ACEOF
1608 python configure 2.5
1609 -generated by GNU Autoconf 2.61
1610 +generated by GNU Autoconf 2.69
1612 -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1613 -2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1614 +Copyright (C) 2012 Free Software Foundation, Inc.
1615 This configure script is free software; the Free Software Foundation
1616 gives unlimited permission to copy, distribute and modify it.
1617 _ACEOF
1618 exit
1620 -cat >config.log <<_ACEOF
1621 -This file contains any messages produced by compilers while
1622 -running configure, to aid debugging if configure makes a mistake.
1624 -It was created by python $as_me 2.5, which was
1625 -generated by GNU Autoconf 2.61. Invocation command line was
1626 +## ------------------------ ##
1627 +## Autoconf initialization. ##
1628 +## ------------------------ ##
1630 +# ac_fn_c_try_compile LINENO
1631 +# --------------------------
1632 +# Try to compile conftest.$ac_ext, and return whether this succeeded.
1633 +ac_fn_c_try_compile ()
1635 + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1636 + rm -f conftest.$ac_objext
1637 + if { { ac_try="$ac_compile"
1638 +case "(($ac_try" in
1639 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1640 + *) ac_try_echo=$ac_try;;
1641 +esac
1642 +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1643 +$as_echo "$ac_try_echo"; } >&5
1644 + (eval "$ac_compile") 2>conftest.err
1645 + ac_status=$?
1646 + if test -s conftest.err; then
1647 + grep -v '^ *+' conftest.err >conftest.er1
1648 + cat conftest.er1 >&5
1649 + mv -f conftest.er1 conftest.err
1650 + fi
1651 + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1652 + test $ac_status = 0; } && {
1653 + test -z "$ac_c_werror_flag" ||
1654 + test ! -s conftest.err
1655 + } && test -s conftest.$ac_objext; then :
1656 + ac_retval=0
1657 +else
1658 + $as_echo "$as_me: failed program was:" >&5
1659 +sed 's/^/| /' conftest.$ac_ext >&5
1661 - $ $0 $@
1662 + ac_retval=1
1664 + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1665 + as_fn_set_status $ac_retval
1667 -_ACEOF
1668 -exec 5>>config.log
1669 +} # ac_fn_c_try_compile
1671 +# ac_fn_c_try_cpp LINENO
1672 +# ----------------------
1673 +# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1674 +ac_fn_c_try_cpp ()
1676 -cat <<_ASUNAME
1677 -## --------- ##
1678 -## Platform. ##
1679 -## --------- ##
1680 + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1681 + if { { ac_try="$ac_cpp conftest.$ac_ext"
1682 +case "(($ac_try" in
1683 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1684 + *) ac_try_echo=$ac_try;;
1685 +esac
1686 +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1687 +$as_echo "$ac_try_echo"; } >&5
1688 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1689 + ac_status=$?
1690 + if test -s conftest.err; then
1691 + grep -v '^ *+' conftest.err >conftest.er1
1692 + cat conftest.er1 >&5
1693 + mv -f conftest.er1 conftest.err
1694 + fi
1695 + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1696 + test $ac_status = 0; } > conftest.i && {
1697 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1698 + test ! -s conftest.err
1699 + }; then :
1700 + ac_retval=0
1701 +else
1702 + $as_echo "$as_me: failed program was:" >&5
1703 +sed 's/^/| /' conftest.$ac_ext >&5
1705 -hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1706 -uname -m = `(uname -m) 2>/dev/null || echo unknown`
1707 -uname -r = `(uname -r) 2>/dev/null || echo unknown`
1708 -uname -s = `(uname -s) 2>/dev/null || echo unknown`
1709 -uname -v = `(uname -v) 2>/dev/null || echo unknown`
1710 + ac_retval=1
1712 + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1713 + as_fn_set_status $ac_retval
1715 -/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1716 -/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1717 +} # ac_fn_c_try_cpp
1719 -/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1720 -/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1721 -/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1722 -/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1723 -/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1724 -/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1725 -/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1726 +# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1727 +# -------------------------------------------------------
1728 +# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1729 +# the include files in INCLUDES and setting the cache variable VAR
1730 +# accordingly.
1731 +ac_fn_c_check_header_mongrel ()
1733 + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1734 + if eval \${$3+:} false; then :
1735 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1736 +$as_echo_n "checking for $2... " >&6; }
1737 +if eval \${$3+:} false; then :
1738 + $as_echo_n "(cached) " >&6
1740 +eval ac_res=\$$3
1741 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1742 +$as_echo "$ac_res" >&6; }
1743 +else
1744 + # Is the header compilable?
1745 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1746 +$as_echo_n "checking $2 usability... " >&6; }
1747 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1748 +/* end confdefs.h. */
1750 +#include <$2>
1751 +_ACEOF
1752 +if ac_fn_c_try_compile "$LINENO"; then :
1753 + ac_header_compiler=yes
1754 +else
1755 + ac_header_compiler=no
1757 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1758 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1759 +$as_echo "$ac_header_compiler" >&6; }
1761 -_ASUNAME
1762 +# Is the header present?
1763 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1764 +$as_echo_n "checking $2 presence... " >&6; }
1765 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1766 +/* end confdefs.h. */
1767 +#include <$2>
1768 +_ACEOF
1769 +if ac_fn_c_try_cpp "$LINENO"; then :
1770 + ac_header_preproc=yes
1771 +else
1772 + ac_header_preproc=no
1774 +rm -f conftest.err conftest.i conftest.$ac_ext
1775 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1776 +$as_echo "$ac_header_preproc" >&6; }
1778 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1779 -for as_dir in $PATH
1781 - IFS=$as_save_IFS
1782 - test -z "$as_dir" && as_dir=.
1783 - echo "PATH: $as_dir"
1784 -done
1785 -IFS=$as_save_IFS
1786 +# So? What about this header?
1787 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1788 + yes:no: )
1789 + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1790 +$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1791 + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1792 +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1793 + ;;
1794 + no:yes:* )
1795 + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1796 +$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1797 + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1798 +$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1799 + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1800 +$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1801 + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1802 +$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1803 + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1804 +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1805 +( $as_echo "## ------------------------------------------------ ##
1806 +## Report this to http://www.python.org/python-bugs ##
1807 +## ------------------------------------------------ ##"
1808 + ) | sed "s/^/$as_me: WARNING: /" >&2
1809 + ;;
1810 +esac
1811 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1812 +$as_echo_n "checking for $2... " >&6; }
1813 +if eval \${$3+:} false; then :
1814 + $as_echo_n "(cached) " >&6
1815 +else
1816 + eval "$3=\$ac_header_compiler"
1818 +eval ac_res=\$$3
1819 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1820 +$as_echo "$ac_res" >&6; }
1822 + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1824 -} >&5
1825 +} # ac_fn_c_check_header_mongrel
1827 -cat >&5 <<_ACEOF
1828 +# ac_fn_c_try_run LINENO
1829 +# ----------------------
1830 +# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1831 +# that executables *can* be run.
1832 +ac_fn_c_try_run ()
1834 + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1835 + if { { ac_try="$ac_link"
1836 +case "(($ac_try" in
1837 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1838 + *) ac_try_echo=$ac_try;;
1839 +esac
1840 +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1841 +$as_echo "$ac_try_echo"; } >&5
1842 + (eval "$ac_link") 2>&5
1843 + ac_status=$?
1844 + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1845 + test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1846 + { { case "(($ac_try" in
1847 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1848 + *) ac_try_echo=$ac_try;;
1849 +esac
1850 +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1851 +$as_echo "$ac_try_echo"; } >&5
1852 + (eval "$ac_try") 2>&5
1853 + ac_status=$?
1854 + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1855 + test $ac_status = 0; }; }; then :
1856 + ac_retval=0
1857 +else
1858 + $as_echo "$as_me: program exited with status $ac_status" >&5
1859 + $as_echo "$as_me: failed program was:" >&5
1860 +sed 's/^/| /' conftest.$ac_ext >&5
1862 + ac_retval=$ac_status
1864 + rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1865 + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1866 + as_fn_set_status $ac_retval
1868 -## ----------- ##
1869 -## Core tests. ##
1870 -## ----------- ##
1871 +} # ac_fn_c_try_run
1873 +# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1874 +# -------------------------------------------------------
1875 +# Tests whether HEADER exists and can be compiled using the include files in
1876 +# INCLUDES, setting the cache variable VAR accordingly.
1877 +ac_fn_c_check_header_compile ()
1879 + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1880 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1881 +$as_echo_n "checking for $2... " >&6; }
1882 +if eval \${$3+:} false; then :
1883 + $as_echo_n "(cached) " >&6
1884 +else
1885 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1886 +/* end confdefs.h. */
1888 +#include <$2>
1889 _ACEOF
1890 +if ac_fn_c_try_compile "$LINENO"; then :
1891 + eval "$3=yes"
1892 +else
1893 + eval "$3=no"
1895 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1897 +eval ac_res=\$$3
1898 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1899 +$as_echo "$ac_res" >&6; }
1900 + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1902 +} # ac_fn_c_check_header_compile
1904 -# Keep a trace of the command line.
1905 -# Strip out --no-create and --no-recursion so they do not pile up.
1906 -# Strip out --silent because we don't want to record it for future runs.
1907 -# Also quote any args containing shell meta-characters.
1908 -# Make two passes to allow for proper duplicate-argument suppression.
1909 -ac_configure_args=
1910 -ac_configure_args0=
1911 -ac_configure_args1=
1912 -ac_must_keep_next=false
1913 -for ac_pass in 1 2
1915 - for ac_arg
1916 - do
1917 - case $ac_arg in
1918 - -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1919 - -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1920 - | -silent | --silent | --silen | --sile | --sil)
1921 - continue ;;
1922 - *\'*)
1923 - ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1924 - esac
1925 - case $ac_pass in
1926 - 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1927 - 2)
1928 - ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1929 - if test $ac_must_keep_next = true; then
1930 - ac_must_keep_next=false # Got value, back to normal.
1931 - else
1932 - case $ac_arg in
1933 - *=* | --config-cache | -C | -disable-* | --disable-* \
1934 - | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1935 - | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1936 - | -with-* | --with-* | -without-* | --without-* | --x)
1937 - case "$ac_configure_args0 " in
1938 - "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1939 - esac
1940 - ;;
1941 - -* ) ac_must_keep_next=true ;;
1942 - esac
1943 - fi
1944 - ac_configure_args="$ac_configure_args '$ac_arg'"
1945 - ;;
1946 - esac
1947 - done
1948 -done
1949 -$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1950 -$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1952 -# When interrupted or exit'd, cleanup temporary files, and complete
1953 -# config.log. We remove comments because anyway the quotes in there
1954 -# would cause problems or look ugly.
1955 -# WARNING: Use '\'' to represent an apostrophe within the trap.
1956 -# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1957 -trap 'exit_status=$?
1958 - # Save into config.log some information that might help in debugging.
1960 - echo
1961 +# ac_fn_c_try_link LINENO
1962 +# -----------------------
1963 +# Try to link conftest.$ac_ext, and return whether this succeeded.
1964 +ac_fn_c_try_link ()
1966 + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1967 + rm -f conftest.$ac_objext conftest$ac_exeext
1968 + if { { ac_try="$ac_link"
1969 +case "(($ac_try" in
1970 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1971 + *) ac_try_echo=$ac_try;;
1972 +esac
1973 +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1974 +$as_echo "$ac_try_echo"; } >&5
1975 + (eval "$ac_link") 2>conftest.err
1976 + ac_status=$?
1977 + if test -s conftest.err; then
1978 + grep -v '^ *+' conftest.err >conftest.er1
1979 + cat conftest.er1 >&5
1980 + mv -f conftest.er1 conftest.err
1981 + fi
1982 + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1983 + test $ac_status = 0; } && {
1984 + test -z "$ac_c_werror_flag" ||
1985 + test ! -s conftest.err
1986 + } && test -s conftest$ac_exeext && {
1987 + test "$cross_compiling" = yes ||
1988 + test -x conftest$ac_exeext
1989 + }; then :
1990 + ac_retval=0
1991 +else
1992 + $as_echo "$as_me: failed program was:" >&5
1993 +sed 's/^/| /' conftest.$ac_ext >&5
1995 - cat <<\_ASBOX
1996 -## ---------------- ##
1997 -## Cache variables. ##
1998 -## ---------------- ##
1999 -_ASBOX
2000 - echo
2001 - # The following way of writing the cache mishandles newlines in values,
2003 - for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2004 - eval ac_val=\$$ac_var
2005 - case $ac_val in #(
2006 - *${as_nl}*)
2007 - case $ac_var in #(
2008 - *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
2009 -echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
2010 - esac
2011 - case $ac_var in #(
2012 - _ | IFS | as_nl) ;; #(
2013 - *) $as_unset $ac_var ;;
2014 - esac ;;
2015 - esac
2016 - done
2017 - (set) 2>&1 |
2018 - case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2019 - *${as_nl}ac_space=\ *)
2020 - sed -n \
2021 - "s/'\''/'\''\\\\'\'''\''/g;
2022 - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2023 - ;; #(
2024 - *)
2025 - sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2026 - ;;
2027 - esac |
2028 - sort
2030 - echo
2031 + ac_retval=1
2033 + # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2034 + # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2035 + # interfere with the next link command; also delete a directory that is
2036 + # left behind by Apple's compiler. We do this before executing the actions.
2037 + rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2038 + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2039 + as_fn_set_status $ac_retval
2041 - cat <<\_ASBOX
2042 -## ----------------- ##
2043 -## Output variables. ##
2044 -## ----------------- ##
2045 -_ASBOX
2046 - echo
2047 - for ac_var in $ac_subst_vars
2048 - do
2049 - eval ac_val=\$$ac_var
2050 - case $ac_val in
2051 - *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2052 - esac
2053 - echo "$ac_var='\''$ac_val'\''"
2054 - done | sort
2055 - echo
2056 +} # ac_fn_c_try_link
2058 - if test -n "$ac_subst_files"; then
2059 - cat <<\_ASBOX
2060 -## ------------------- ##
2061 -## File substitutions. ##
2062 -## ------------------- ##
2063 -_ASBOX
2064 - echo
2065 - for ac_var in $ac_subst_files
2066 - do
2067 - eval ac_val=\$$ac_var
2068 - case $ac_val in
2069 - *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2070 - esac
2071 - echo "$ac_var='\''$ac_val'\''"
2072 - done | sort
2073 - echo
2074 - fi
2075 +# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2076 +# -------------------------------------------
2077 +# Tests whether TYPE exists after having included INCLUDES, setting cache
2078 +# variable VAR accordingly.
2079 +ac_fn_c_check_type ()
2081 + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2082 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2083 +$as_echo_n "checking for $2... " >&6; }
2084 +if eval \${$3+:} false; then :
2085 + $as_echo_n "(cached) " >&6
2086 +else
2087 + eval "$3=no"
2088 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2089 +/* end confdefs.h. */
2091 +int
2092 +main ()
2094 +if (sizeof ($2))
2095 + return 0;
2097 + return 0;
2099 +_ACEOF
2100 +if ac_fn_c_try_compile "$LINENO"; then :
2101 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2102 +/* end confdefs.h. */
2104 +int
2105 +main ()
2107 +if (sizeof (($2)))
2108 + return 0;
2110 + return 0;
2112 +_ACEOF
2113 +if ac_fn_c_try_compile "$LINENO"; then :
2115 - if test -s confdefs.h; then
2116 - cat <<\_ASBOX
2117 -## ----------- ##
2118 -## confdefs.h. ##
2119 -## ----------- ##
2120 -_ASBOX
2121 - echo
2122 - cat confdefs.h
2123 - echo
2124 - fi
2125 - test "$ac_signal" != 0 &&
2126 - echo "$as_me: caught signal $ac_signal"
2127 - echo "$as_me: exit $exit_status"
2128 - } >&5
2129 - rm -f core *.core core.conftest.* &&
2130 - rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2131 - exit $exit_status
2132 -' 0
2133 -for ac_signal in 1 2 13 15; do
2134 - trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2135 -done
2136 -ac_signal=0
2137 +else
2138 + eval "$3=yes"
2140 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2142 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2144 +eval ac_res=\$$3
2145 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2146 +$as_echo "$ac_res" >&6; }
2147 + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2149 -# confdefs.h avoids OS command line length limits that DEFS can exceed.
2150 -rm -f -r conftest* confdefs.h
2151 +} # ac_fn_c_check_type
2153 -# Predefined preprocessor variables.
2154 +# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2155 +# --------------------------------------------
2156 +# Tries to find the compile-time value of EXPR in a program that includes
2157 +# INCLUDES, setting VAR accordingly. Returns whether the value could be
2158 +# computed
2159 +ac_fn_c_compute_int ()
2161 + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2162 + if test "$cross_compiling" = yes; then
2163 + # Depending upon the size, compute the lo and hi bounds.
2164 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2165 +/* end confdefs.h. */
2167 +int
2168 +main ()
2170 +static int test_array [1 - 2 * !(($2) >= 0)];
2171 +test_array [0] = 0;
2172 +return test_array [0];
2174 -cat >>confdefs.h <<_ACEOF
2175 -#define PACKAGE_NAME "$PACKAGE_NAME"
2177 + return 0;
2179 _ACEOF
2180 +if ac_fn_c_try_compile "$LINENO"; then :
2181 + ac_lo=0 ac_mid=0
2182 + while :; do
2183 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2184 +/* end confdefs.h. */
2186 +int
2187 +main ()
2189 +static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2190 +test_array [0] = 0;
2191 +return test_array [0];
2194 -cat >>confdefs.h <<_ACEOF
2195 -#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2197 + return 0;
2199 _ACEOF
2200 +if ac_fn_c_try_compile "$LINENO"; then :
2201 + ac_hi=$ac_mid; break
2202 +else
2203 + as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2204 + if test $ac_lo -le $ac_mid; then
2205 + ac_lo= ac_hi=
2206 + break
2207 + fi
2208 + as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2210 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2211 + done
2212 +else
2213 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2214 +/* end confdefs.h. */
2216 +int
2217 +main ()
2219 +static int test_array [1 - 2 * !(($2) < 0)];
2220 +test_array [0] = 0;
2221 +return test_array [0];
2224 -cat >>confdefs.h <<_ACEOF
2225 -#define PACKAGE_VERSION "$PACKAGE_VERSION"
2227 + return 0;
2229 _ACEOF
2230 +if ac_fn_c_try_compile "$LINENO"; then :
2231 + ac_hi=-1 ac_mid=-1
2232 + while :; do
2233 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2234 +/* end confdefs.h. */
2236 +int
2237 +main ()
2239 +static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2240 +test_array [0] = 0;
2241 +return test_array [0];
2244 -cat >>confdefs.h <<_ACEOF
2245 -#define PACKAGE_STRING "$PACKAGE_STRING"
2247 + return 0;
2249 _ACEOF
2250 +if ac_fn_c_try_compile "$LINENO"; then :
2251 + ac_lo=$ac_mid; break
2252 +else
2253 + as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2254 + if test $ac_mid -le $ac_hi; then
2255 + ac_lo= ac_hi=
2256 + break
2257 + fi
2258 + as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2260 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2261 + done
2262 +else
2263 + ac_lo= ac_hi=
2265 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2267 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2268 +# Binary search between lo and hi bounds.
2269 +while test "x$ac_lo" != "x$ac_hi"; do
2270 + as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2271 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2272 +/* end confdefs.h. */
2274 +int
2275 +main ()
2277 +static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2278 +test_array [0] = 0;
2279 +return test_array [0];
2282 -cat >>confdefs.h <<_ACEOF
2283 -#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2285 + return 0;
2287 _ACEOF
2290 -# Let the site file select an alternate cache file if it wants to.
2291 -# Prefer explicitly selected file to automatically selected ones.
2292 -if test -n "$CONFIG_SITE"; then
2293 - set x "$CONFIG_SITE"
2294 -elif test "x$prefix" != xNONE; then
2295 - set x "$prefix/share/config.site" "$prefix/etc/config.site"
2296 +if ac_fn_c_try_compile "$LINENO"; then :
2297 + ac_hi=$ac_mid
2298 else
2299 - set x "$ac_default_prefix/share/config.site" \
2300 - "$ac_default_prefix/etc/config.site"
2301 + as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2303 -shift
2304 -for ac_site_file
2306 - if test -r "$ac_site_file"; then
2307 - { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2308 -echo "$as_me: loading site script $ac_site_file" >&6;}
2309 - sed 's/^/| /' "$ac_site_file" >&5
2310 - . "$ac_site_file"
2311 - fi
2312 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2313 done
2314 +case $ac_lo in #((
2315 +?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2316 +'') ac_retval=1 ;;
2317 +esac
2318 + else
2319 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2320 +/* end confdefs.h. */
2322 +static long int longval () { return $2; }
2323 +static unsigned long int ulongval () { return $2; }
2324 +#include <stdio.h>
2325 +#include <stdlib.h>
2326 +int
2327 +main ()
2330 -if test -r "$cache_file"; then
2331 - # Some versions of bash will fail to source /dev/null (special
2332 - # files actually), so we avoid doing that.
2333 - if test -f "$cache_file"; then
2334 - { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2335 -echo "$as_me: loading cache $cache_file" >&6;}
2336 - case $cache_file in
2337 - [\\/]* | ?:[\\/]* ) . "$cache_file";;
2338 - *) . "./$cache_file";;
2339 - esac
2340 - fi
2341 + FILE *f = fopen ("conftest.val", "w");
2342 + if (! f)
2343 + return 1;
2344 + if (($2) < 0)
2346 + long int i = longval ();
2347 + if (i != ($2))
2348 + return 1;
2349 + fprintf (f, "%ld", i);
2351 + else
2353 + unsigned long int i = ulongval ();
2354 + if (i != ($2))
2355 + return 1;
2356 + fprintf (f, "%lu", i);
2358 + /* Do not output a trailing newline, as this causes \r\n confusion
2359 + on some platforms. */
2360 + return ferror (f) || fclose (f) != 0;
2363 + return 0;
2365 +_ACEOF
2366 +if ac_fn_c_try_run "$LINENO"; then :
2367 + echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2368 else
2369 - { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2370 -echo "$as_me: creating cache $cache_file" >&6;}
2371 - >$cache_file
2372 + ac_retval=1
2374 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2375 + conftest.$ac_objext conftest.beam conftest.$ac_ext
2376 +rm -f conftest.val
2378 -# Check that the precious variables saved in the cache have kept the same
2379 -# value.
2380 -ac_cache_corrupted=false
2381 -for ac_var in $ac_precious_vars; do
2382 - eval ac_old_set=\$ac_cv_env_${ac_var}_set
2383 - eval ac_new_set=\$ac_env_${ac_var}_set
2384 - eval ac_old_val=\$ac_cv_env_${ac_var}_value
2385 - eval ac_new_val=\$ac_env_${ac_var}_value
2386 - case $ac_old_set,$ac_new_set in
2387 - set,)
2388 - { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2389 -echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2390 - ac_cache_corrupted=: ;;
2391 - ,set)
2392 - { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2393 -echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2394 - ac_cache_corrupted=: ;;
2395 - ,);;
2396 - *)
2397 - if test "x$ac_old_val" != "x$ac_new_val"; then
2398 - { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2399 -echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2400 - { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
2401 -echo "$as_me: former value: $ac_old_val" >&2;}
2402 - { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
2403 -echo "$as_me: current value: $ac_new_val" >&2;}
2404 - ac_cache_corrupted=:
2405 - fi;;
2406 - esac
2407 - # Pass precious variables to config.status.
2408 - if test "$ac_new_set" = set; then
2409 - case $ac_new_val in
2410 - *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2411 - *) ac_arg=$ac_var=$ac_new_val ;;
2412 - esac
2413 - case " $ac_configure_args " in
2414 - *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2415 - *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2416 - esac
2418 -done
2419 -if $ac_cache_corrupted; then
2420 - { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2421 -echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2422 - { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2423 -echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2424 - { (exit 1); exit 1; }; }
2433 + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2434 + as_fn_set_status $ac_retval
2436 +} # ac_fn_c_compute_int
2438 +# ac_fn_c_check_func LINENO FUNC VAR
2439 +# ----------------------------------
2440 +# Tests whether FUNC exists, setting the cache variable VAR accordingly
2441 +ac_fn_c_check_func ()
2443 + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2444 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2445 +$as_echo_n "checking for $2... " >&6; }
2446 +if eval \${$3+:} false; then :
2447 + $as_echo_n "(cached) " >&6
2448 +else
2449 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2450 +/* end confdefs.h. */
2451 +/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2452 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
2453 +#define $2 innocuous_$2
2455 +/* System header to define __stub macros and hopefully few prototypes,
2456 + which can conflict with char $2 (); below.
2457 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2458 + <limits.h> exists even on freestanding compilers. */
2460 +#ifdef __STDC__
2461 +# include <limits.h>
2462 +#else
2463 +# include <assert.h>
2464 +#endif
2466 +#undef $2
2468 +/* Override any GCC internal prototype to avoid an error.
2469 + Use char because int might match the return type of a GCC
2470 + builtin and then its argument prototype would still apply. */
2471 +#ifdef __cplusplus
2472 +extern "C"
2473 +#endif
2474 +char $2 ();
2475 +/* The GNU C library defines this for functions which it implements
2476 + to always fail with ENOSYS. Some functions are actually named
2477 + something starting with __ and the normal name is an alias. */
2478 +#if defined __stub_$2 || defined __stub___$2
2479 +choke me
2480 +#endif
2482 +int
2483 +main ()
2485 +return $2 ();
2487 + return 0;
2489 +_ACEOF
2490 +if ac_fn_c_try_link "$LINENO"; then :
2491 + eval "$3=yes"
2492 +else
2493 + eval "$3=no"
2495 +rm -f core conftest.err conftest.$ac_objext \
2496 + conftest$ac_exeext conftest.$ac_ext
2498 +eval ac_res=\$$3
2499 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2500 +$as_echo "$ac_res" >&6; }
2501 + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2503 +} # ac_fn_c_check_func
2505 +# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2506 +# ----------------------------------------------------
2507 +# Tries to find if the field MEMBER exists in type AGGR, after including
2508 +# INCLUDES, setting cache variable VAR accordingly.
2509 +ac_fn_c_check_member ()
2511 + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2512 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2513 +$as_echo_n "checking for $2.$3... " >&6; }
2514 +if eval \${$4+:} false; then :
2515 + $as_echo_n "(cached) " >&6
2516 +else
2517 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2518 +/* end confdefs.h. */
2520 +int
2521 +main ()
2523 +static $2 ac_aggr;
2524 +if (ac_aggr.$3)
2525 +return 0;
2527 + return 0;
2529 +_ACEOF
2530 +if ac_fn_c_try_compile "$LINENO"; then :
2531 + eval "$4=yes"
2532 +else
2533 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2534 +/* end confdefs.h. */
2536 +int
2537 +main ()
2539 +static $2 ac_aggr;
2540 +if (sizeof ac_aggr.$3)
2541 +return 0;
2543 + return 0;
2545 +_ACEOF
2546 +if ac_fn_c_try_compile "$LINENO"; then :
2547 + eval "$4=yes"
2548 +else
2549 + eval "$4=no"
2551 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2553 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2555 +eval ac_res=\$$4
2556 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2557 +$as_echo "$ac_res" >&6; }
2558 + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2560 +} # ac_fn_c_check_member
2562 +# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2563 +# ---------------------------------------------
2564 +# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2565 +# accordingly.
2566 +ac_fn_c_check_decl ()
2568 + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2569 + as_decl_name=`echo $2|sed 's/ *(.*//'`
2570 + as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2571 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2572 +$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2573 +if eval \${$3+:} false; then :
2574 + $as_echo_n "(cached) " >&6
2575 +else
2576 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2577 +/* end confdefs.h. */
2579 +int
2580 +main ()
2582 +#ifndef $as_decl_name
2583 +#ifdef __cplusplus
2584 + (void) $as_decl_use;
2585 +#else
2586 + (void) $as_decl_name;
2587 +#endif
2588 +#endif
2591 + return 0;
2593 +_ACEOF
2594 +if ac_fn_c_try_compile "$LINENO"; then :
2595 + eval "$3=yes"
2596 +else
2597 + eval "$3=no"
2599 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2601 +eval ac_res=\$$3
2602 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2603 +$as_echo "$ac_res" >&6; }
2604 + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2606 +} # ac_fn_c_check_decl
2607 +cat >config.log <<_ACEOF
2608 +This file contains any messages produced by compilers while
2609 +running configure, to aid debugging if configure makes a mistake.
2611 +It was created by python $as_me 2.5, which was
2612 +generated by GNU Autoconf 2.69. Invocation command line was
2614 + $ $0 $@
2616 +_ACEOF
2617 +exec 5>>config.log
2619 +cat <<_ASUNAME
2620 +## --------- ##
2621 +## Platform. ##
2622 +## --------- ##
2624 +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2625 +uname -m = `(uname -m) 2>/dev/null || echo unknown`
2626 +uname -r = `(uname -r) 2>/dev/null || echo unknown`
2627 +uname -s = `(uname -s) 2>/dev/null || echo unknown`
2628 +uname -v = `(uname -v) 2>/dev/null || echo unknown`
2630 -ac_ext=c
2631 -ac_cpp='$CPP $CPPFLAGS'
2632 -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2633 -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2634 -ac_compiler_gnu=$ac_cv_c_compiler_gnu
2635 +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2636 +/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2638 +/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2639 +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2640 +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2641 +/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2642 +/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2643 +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2644 +/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2646 +_ASUNAME
2648 -ac_config_headers="$ac_config_headers pyconfig.h"
2649 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2650 +for as_dir in $PATH
2652 + IFS=$as_save_IFS
2653 + test -z "$as_dir" && as_dir=.
2654 + $as_echo "PATH: $as_dir"
2655 + done
2656 +IFS=$as_save_IFS
2658 +} >&5
2660 +cat >&5 <<_ACEOF
2663 +## ----------- ##
2664 +## Core tests. ##
2665 +## ----------- ##
2667 +_ACEOF
2670 -# We don't use PACKAGE_ variables, and they cause conflicts
2671 -# with other autoconf-based packages that include Python.h
2672 -grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
2673 -rm confdefs.h
2674 -mv confdefs.h.new confdefs.h
2675 +# Keep a trace of the command line.
2676 +# Strip out --no-create and --no-recursion so they do not pile up.
2677 +# Strip out --silent because we don't want to record it for future runs.
2678 +# Also quote any args containing shell meta-characters.
2679 +# Make two passes to allow for proper duplicate-argument suppression.
2680 +ac_configure_args=
2681 +ac_configure_args0=
2682 +ac_configure_args1=
2683 +ac_must_keep_next=false
2684 +for ac_pass in 1 2
2686 + for ac_arg
2687 + do
2688 + case $ac_arg in
2689 + -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2690 + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2691 + | -silent | --silent | --silen | --sile | --sil)
2692 + continue ;;
2693 + *\'*)
2694 + ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2695 + esac
2696 + case $ac_pass in
2697 + 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2698 + 2)
2699 + as_fn_append ac_configure_args1 " '$ac_arg'"
2700 + if test $ac_must_keep_next = true; then
2701 + ac_must_keep_next=false # Got value, back to normal.
2702 + else
2703 + case $ac_arg in
2704 + *=* | --config-cache | -C | -disable-* | --disable-* \
2705 + | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2706 + | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2707 + | -with-* | --with-* | -without-* | --without-* | --x)
2708 + case "$ac_configure_args0 " in
2709 + "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2710 + esac
2711 + ;;
2712 + -* ) ac_must_keep_next=true ;;
2713 + esac
2714 + fi
2715 + as_fn_append ac_configure_args " '$ac_arg'"
2716 + ;;
2717 + esac
2718 + done
2719 +done
2720 +{ ac_configure_args0=; unset ac_configure_args0;}
2721 +{ ac_configure_args1=; unset ac_configure_args1;}
2723 +# When interrupted or exit'd, cleanup temporary files, and complete
2724 +# config.log. We remove comments because anyway the quotes in there
2725 +# would cause problems or look ugly.
2726 +# WARNING: Use '\'' to represent an apostrophe within the trap.
2727 +# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2728 +trap 'exit_status=$?
2729 + # Save into config.log some information that might help in debugging.
2731 + echo
2733 -VERSION=2.5
2734 + $as_echo "## ---------------- ##
2735 +## Cache variables. ##
2736 +## ---------------- ##"
2737 + echo
2738 + # The following way of writing the cache mishandles newlines in values,
2740 + for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2741 + eval ac_val=\$$ac_var
2742 + case $ac_val in #(
2743 + *${as_nl}*)
2744 + case $ac_var in #(
2745 + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2746 +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2747 + esac
2748 + case $ac_var in #(
2749 + _ | IFS | as_nl) ;; #(
2750 + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2751 + *) { eval $ac_var=; unset $ac_var;} ;;
2752 + esac ;;
2753 + esac
2754 + done
2755 + (set) 2>&1 |
2756 + case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2757 + *${as_nl}ac_space=\ *)
2758 + sed -n \
2759 + "s/'\''/'\''\\\\'\'''\''/g;
2760 + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2761 + ;; #(
2762 + *)
2763 + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2764 + ;;
2765 + esac |
2766 + sort
2768 + echo
2770 + $as_echo "## ----------------- ##
2771 +## Output variables. ##
2772 +## ----------------- ##"
2773 + echo
2774 + for ac_var in $ac_subst_vars
2775 + do
2776 + eval ac_val=\$$ac_var
2777 + case $ac_val in
2778 + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2779 + esac
2780 + $as_echo "$ac_var='\''$ac_val'\''"
2781 + done | sort
2782 + echo
2784 -SOVERSION=1.0
2785 + if test -n "$ac_subst_files"; then
2786 + $as_echo "## ------------------- ##
2787 +## File substitutions. ##
2788 +## ------------------- ##"
2789 + echo
2790 + for ac_var in $ac_subst_files
2791 + do
2792 + eval ac_val=\$$ac_var
2793 + case $ac_val in
2794 + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2795 + esac
2796 + $as_echo "$ac_var='\''$ac_val'\''"
2797 + done | sort
2798 + echo
2799 + fi
2801 -# The later defininition of _XOPEN_SOURCE disables certain features
2802 -# on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
2803 + if test -s confdefs.h; then
2804 + $as_echo "## ----------- ##
2805 +## confdefs.h. ##
2806 +## ----------- ##"
2807 + echo
2808 + cat confdefs.h
2809 + echo
2810 + fi
2811 + test "$ac_signal" != 0 &&
2812 + $as_echo "$as_me: caught signal $ac_signal"
2813 + $as_echo "$as_me: exit $exit_status"
2814 + } >&5
2815 + rm -f core *.core core.conftest.* &&
2816 + rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2817 + exit $exit_status
2818 +' 0
2819 +for ac_signal in 1 2 13 15; do
2820 + trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2821 +done
2822 +ac_signal=0
2824 -cat >>confdefs.h <<\_ACEOF
2825 -#define _GNU_SOURCE 1
2826 -_ACEOF
2827 +# confdefs.h avoids OS command line length limits that DEFS can exceed.
2828 +rm -f -r conftest* confdefs.h
2830 +$as_echo "/* confdefs.h */" > confdefs.h
2832 -# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
2833 -# certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
2834 -# them.
2835 +# Predefined preprocessor variables.
2837 -cat >>confdefs.h <<\_ACEOF
2838 -#define _NETBSD_SOURCE 1
2839 +cat >>confdefs.h <<_ACEOF
2840 +#define PACKAGE_NAME "$PACKAGE_NAME"
2841 _ACEOF
2844 -# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
2845 -# certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
2846 -# them.
2848 -cat >>confdefs.h <<\_ACEOF
2849 -#define __BSD_VISIBLE 1
2850 +cat >>confdefs.h <<_ACEOF
2851 +#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2852 _ACEOF
2855 -# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
2856 -# u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
2858 -cat >>confdefs.h <<\_ACEOF
2859 -#define _BSD_TYPES 1
2860 +cat >>confdefs.h <<_ACEOF
2861 +#define PACKAGE_VERSION "$PACKAGE_VERSION"
2862 _ACEOF
2864 +cat >>confdefs.h <<_ACEOF
2865 +#define PACKAGE_STRING "$PACKAGE_STRING"
2866 +_ACEOF
2868 -define_xopen_source=yes
2870 -# Arguments passed to configure.
2871 +cat >>confdefs.h <<_ACEOF
2872 +#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2873 +_ACEOF
2875 -CONFIG_ARGS="$ac_configure_args"
2876 +cat >>confdefs.h <<_ACEOF
2877 +#define PACKAGE_URL "$PACKAGE_URL"
2878 +_ACEOF
2880 -# Check whether --enable-universalsdk was given.
2881 -if test "${enable_universalsdk+set}" = set; then
2882 - enableval=$enable_universalsdk;
2883 - case $enableval in
2884 - yes)
2885 - enableval=/Developer/SDKs/MacOSX10.4u.sdk
2886 - ;;
2887 - esac
2888 - case $enableval in
2889 - no)
2890 - UNIVERSALSDK=
2891 - enable_universalsdk=
2892 - ;;
2893 - *)
2894 - UNIVERSALSDK=$enableval
2895 - ;;
2896 - esac
2898 +# Let the site file select an alternate cache file if it wants to.
2899 +# Prefer an explicitly selected file to automatically selected ones.
2900 +ac_site_file1=NONE
2901 +ac_site_file2=NONE
2902 +if test -n "$CONFIG_SITE"; then
2903 + # We do not want a PATH search for config.site.
2904 + case $CONFIG_SITE in #((
2905 + -*) ac_site_file1=./$CONFIG_SITE;;
2906 + */*) ac_site_file1=$CONFIG_SITE;;
2907 + *) ac_site_file1=./$CONFIG_SITE;;
2908 + esac
2909 +elif test "x$prefix" != xNONE; then
2910 + ac_site_file1=$prefix/share/config.site
2911 + ac_site_file2=$prefix/etc/config.site
2912 else
2914 - UNIVERSALSDK=
2915 - enable_universalsdk=
2917 + ac_site_file1=$ac_default_prefix/share/config.site
2918 + ac_site_file2=$ac_default_prefix/etc/config.site
2920 +for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2922 + test "x$ac_site_file" = xNONE && continue
2923 + if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2924 + { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2925 +$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2926 + sed 's/^/| /' "$ac_site_file" >&5
2927 + . "$ac_site_file" \
2928 + || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2929 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2930 +as_fn_error $? "failed to load site script $ac_site_file
2931 +See \`config.log' for more details" "$LINENO" 5; }
2932 + fi
2933 +done
2935 +if test -r "$cache_file"; then
2936 + # Some versions of bash will fail to source /dev/null (special files
2937 + # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2938 + if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2939 + { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2940 +$as_echo "$as_me: loading cache $cache_file" >&6;}
2941 + case $cache_file in
2942 + [\\/]* | ?:[\\/]* ) . "$cache_file";;
2943 + *) . "./$cache_file";;
2944 + esac
2945 + fi
2946 +else
2947 + { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2948 +$as_echo "$as_me: creating cache $cache_file" >&6;}
2949 + >$cache_file
2953 -# Check whether --enable-framework was given.
2954 -if test "${enable_framework+set}" = set; then
2955 - enableval=$enable_framework;
2956 - case $enableval in
2957 - yes)
2958 - enableval=/Library/Frameworks
2959 +# Check that the precious variables saved in the cache have kept the same
2960 +# value.
2961 +ac_cache_corrupted=false
2962 +for ac_var in $ac_precious_vars; do
2963 + eval ac_old_set=\$ac_cv_env_${ac_var}_set
2964 + eval ac_new_set=\$ac_env_${ac_var}_set
2965 + eval ac_old_val=\$ac_cv_env_${ac_var}_value
2966 + eval ac_new_val=\$ac_env_${ac_var}_value
2967 + case $ac_old_set,$ac_new_set in
2968 + set,)
2969 + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2970 +$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2971 + ac_cache_corrupted=: ;;
2972 + ,set)
2973 + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2974 +$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2975 + ac_cache_corrupted=: ;;
2976 + ,);;
2977 + *)
2978 + if test "x$ac_old_val" != "x$ac_new_val"; then
2979 + # differences in whitespace do not lead to failure.
2980 + ac_old_val_w=`echo x $ac_old_val`
2981 + ac_new_val_w=`echo x $ac_new_val`
2982 + if test "$ac_old_val_w" != "$ac_new_val_w"; then
2983 + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2984 +$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2985 + ac_cache_corrupted=:
2986 + else
2987 + { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2988 +$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2989 + eval $ac_var=\$ac_old_val
2990 + fi
2991 + { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2992 +$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2993 + { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2994 +$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2995 + fi;;
2996 + esac
2997 + # Pass precious variables to config.status.
2998 + if test "$ac_new_set" = set; then
2999 + case $ac_new_val in
3000 + *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3001 + *) ac_arg=$ac_var=$ac_new_val ;;
3002 + esac
3003 + case " $ac_configure_args " in
3004 + *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3005 + *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3006 + esac
3007 + fi
3008 +done
3009 +if $ac_cache_corrupted; then
3010 + { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3011 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3012 + { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3013 +$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3014 + as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3016 +## -------------------- ##
3017 +## Main body of script. ##
3018 +## -------------------- ##
3020 +ac_ext=c
3021 +ac_cpp='$CPP $CPPFLAGS'
3022 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3023 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3024 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
3028 +ac_config_headers="$ac_config_headers pyconfig.h"
3034 +# We don't use PACKAGE_ variables, and they cause conflicts
3035 +# with other autoconf-based packages that include Python.h
3036 +grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
3037 +rm confdefs.h
3038 +mv confdefs.h.new confdefs.h
3041 +VERSION=2.5
3044 +SOVERSION=1.0
3046 +# The later defininition of _XOPEN_SOURCE disables certain features
3047 +# on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
3049 +$as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3052 +# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
3053 +# certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
3054 +# them.
3056 +$as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
3059 +# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
3060 +# certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
3061 +# them.
3063 +$as_echo "#define __BSD_VISIBLE 1" >>confdefs.h
3066 +# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
3067 +# u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
3069 +$as_echo "#define _BSD_TYPES 1" >>confdefs.h
3072 +define_xopen_source=yes
3074 +# Arguments passed to configure.
3076 +CONFIG_ARGS="$ac_configure_args"
3078 +# Check whether --enable-universalsdk was given.
3079 +if test "${enable_universalsdk+set}" = set; then :
3080 + enableval=$enable_universalsdk;
3081 + case $enableval in
3082 + yes)
3083 + enableval=/Developer/SDKs/MacOSX10.4u.sdk
3084 + ;;
3085 + esac
3086 + case $enableval in
3087 + no)
3088 + UNIVERSALSDK=
3089 + enable_universalsdk=
3090 + ;;
3091 + *)
3092 + UNIVERSALSDK=$enableval
3093 + ;;
3094 + esac
3096 +else
3098 + UNIVERSALSDK=
3099 + enable_universalsdk=
3105 +# Check whether --enable-framework was given.
3106 +if test "${enable_framework+set}" = set; then :
3107 + enableval=$enable_framework;
3108 + case $enableval in
3109 + yes)
3110 + enableval=/Library/Frameworks
3111 esac
3112 case $enableval in
3114 @@ -1964,8 +2721,8 @@
3116 # Set name for machine-dependent library files
3118 -{ echo "$as_me:$LINENO: checking MACHDEP" >&5
3119 -echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6; }
3120 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP" >&5
3121 +$as_echo_n "checking MACHDEP... " >&6; }
3122 if test -z "$MACHDEP"
3123 then
3124 ac_sys_system=`uname -s`
3125 @@ -2009,9 +2766,7 @@
3126 # also defined. This can be overridden by defining _BSD_SOURCE
3127 # As this has a different meaning on Linux, only define it on OpenBSD
3129 -cat >>confdefs.h <<\_ACEOF
3130 -#define _BSD_SOURCE 1
3131 -_ACEOF
3132 +$as_echo "#define _BSD_SOURCE 1" >>confdefs.h
3135 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
3136 @@ -2067,16 +2822,12 @@
3137 case $ac_sys_system/$ac_sys_release in
3138 SunOS/5.8|SunOS/5.9|SunOS/5.10)
3140 -cat >>confdefs.h <<\_ACEOF
3141 -#define _XOPEN_SOURCE 500
3142 -_ACEOF
3143 +$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
3148 -cat >>confdefs.h <<\_ACEOF
3149 -#define _XOPEN_SOURCE 600
3150 -_ACEOF
3151 +$as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h
3154 esac
3155 @@ -2092,17 +2843,13 @@
3159 -cat >>confdefs.h <<\_ACEOF
3160 -#define _XOPEN_SOURCE_EXTENDED 1
3161 -_ACEOF
3162 +$as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h
3165 esac
3168 -cat >>confdefs.h <<\_ACEOF
3169 -#define _POSIX_C_SOURCE 200112L
3170 -_ACEOF
3171 +$as_echo "#define _POSIX_C_SOURCE 200112L" >>confdefs.h
3175 @@ -2123,14 +2870,14 @@
3176 LDFLAGS="$SGI_ABI $LDFLAGS"
3177 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
3179 -{ echo "$as_me:$LINENO: result: $MACHDEP" >&5
3180 -echo "${ECHO_T}$MACHDEP" >&6; }
3181 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACHDEP" >&5
3182 +$as_echo "$MACHDEP" >&6; }
3184 # And add extra plat-mac for darwin
3187 -{ echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5
3188 -echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6; }
3189 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking EXTRAPLATDIR" >&5
3190 +$as_echo_n "checking EXTRAPLATDIR... " >&6; }
3191 if test -z "$EXTRAPLATDIR"
3192 then
3193 case $MACHDEP in
3194 @@ -2144,8 +2891,8 @@
3196 esac
3198 -{ echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5
3199 -echo "${ECHO_T}$EXTRAPLATDIR" >&6; }
3200 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRAPLATDIR" >&5
3201 +$as_echo "$EXTRAPLATDIR" >&6; }
3203 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
3204 # it may influence the way we can build extensions, so distutils
3205 @@ -2165,11 +2912,11 @@
3207 # XXX shouldn't some/most/all of this code be merged with the stuff later
3208 # on that fiddles with OPT and BASECFLAGS?
3209 -{ echo "$as_me:$LINENO: checking for --without-gcc" >&5
3210 -echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6; }
3211 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --without-gcc" >&5
3212 +$as_echo_n "checking for --without-gcc... " >&6; }
3214 # Check whether --with-gcc was given.
3215 -if test "${with_gcc+set}" = set; then
3216 +if test "${with_gcc+set}" = set; then :
3217 withval=$with_gcc;
3218 case $withval in
3219 no) CC=cc
3220 @@ -2199,9 +2946,7 @@
3221 OPT="$OPT -O"
3224 - { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5
3225 -echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;}
3226 - { (exit 1); exit 1; }; }
3227 + as_fn_error $? "Unknown BeOS platform \"$BE_HOST_CPU\"" "$LINENO" 5
3229 esac
3230 AR="\$(srcdir)/Modules/ar_beos"
3231 @@ -2214,17 +2959,14 @@
3232 esac
3235 -{ echo "$as_me:$LINENO: result: $without_gcc" >&5
3236 -echo "${ECHO_T}$without_gcc" >&6; }
3237 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $without_gcc" >&5
3238 +$as_echo "$without_gcc" >&6; }
3240 # If the user switches compilers, we can't believe the cache
3241 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
3242 then
3243 - { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
3244 -(it is also a good idea to do 'make clean' before compiling)" >&5
3245 -echo "$as_me: error: cached CC is different -- throw away $cache_file
3246 -(it is also a good idea to do 'make clean' before compiling)" >&2;}
3247 - { (exit 1); exit 1; }; }
3248 + as_fn_error $? "cached CC is different -- throw away $cache_file
3249 +(it is also a good idea to do 'make clean' before compiling)" "$LINENO" 5
3252 ac_ext=c
3253 @@ -2235,10 +2977,10 @@
3254 if test -n "$ac_tool_prefix"; then
3255 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3256 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3257 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3258 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3259 -if test "${ac_cv_prog_CC+set}" = set; then
3260 - echo $ECHO_N "(cached) $ECHO_C" >&6
3261 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3262 +$as_echo_n "checking for $ac_word... " >&6; }
3263 +if ${ac_cv_prog_CC+:} false; then :
3264 + $as_echo_n "(cached) " >&6
3265 else
3266 if test -n "$CC"; then
3267 ac_cv_prog_CC="$CC" # Let the user override the test.
3268 @@ -2248,25 +2990,25 @@
3270 IFS=$as_save_IFS
3271 test -z "$as_dir" && as_dir=.
3272 - for ac_exec_ext in '' $ac_executable_extensions; do
3273 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3274 + for ac_exec_ext in '' $ac_executable_extensions; do
3275 + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3276 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3277 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3278 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3279 break 2
3281 done
3282 -done
3283 + done
3284 IFS=$as_save_IFS
3288 CC=$ac_cv_prog_CC
3289 if test -n "$CC"; then
3290 - { echo "$as_me:$LINENO: result: $CC" >&5
3291 -echo "${ECHO_T}$CC" >&6; }
3292 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3293 +$as_echo "$CC" >&6; }
3294 else
3295 - { echo "$as_me:$LINENO: result: no" >&5
3296 -echo "${ECHO_T}no" >&6; }
3297 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3298 +$as_echo "no" >&6; }
3302 @@ -2275,10 +3017,10 @@
3303 ac_ct_CC=$CC
3304 # Extract the first word of "gcc", so it can be a program name with args.
3305 set dummy gcc; ac_word=$2
3306 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3307 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3308 -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3309 - echo $ECHO_N "(cached) $ECHO_C" >&6
3310 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3311 +$as_echo_n "checking for $ac_word... " >&6; }
3312 +if ${ac_cv_prog_ac_ct_CC+:} false; then :
3313 + $as_echo_n "(cached) " >&6
3314 else
3315 if test -n "$ac_ct_CC"; then
3316 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3317 @@ -2288,25 +3030,25 @@
3319 IFS=$as_save_IFS
3320 test -z "$as_dir" && as_dir=.
3321 - for ac_exec_ext in '' $ac_executable_extensions; do
3322 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3323 + for ac_exec_ext in '' $ac_executable_extensions; do
3324 + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3325 ac_cv_prog_ac_ct_CC="gcc"
3326 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3327 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3328 break 2
3330 done
3331 -done
3332 + done
3333 IFS=$as_save_IFS
3337 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3338 if test -n "$ac_ct_CC"; then
3339 - { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3340 -echo "${ECHO_T}$ac_ct_CC" >&6; }
3341 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3342 +$as_echo "$ac_ct_CC" >&6; }
3343 else
3344 - { echo "$as_me:$LINENO: result: no" >&5
3345 -echo "${ECHO_T}no" >&6; }
3346 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3347 +$as_echo "no" >&6; }
3350 if test "x$ac_ct_CC" = x; then
3351 @@ -2314,12 +3056,8 @@
3352 else
3353 case $cross_compiling:$ac_tool_warned in
3354 yes:)
3355 -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3356 -whose name does not start with the host triplet. If you think this
3357 -configuration is useful to you, please write to autoconf@gnu.org." >&5
3358 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3359 -whose name does not start with the host triplet. If you think this
3360 -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3361 +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3362 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3363 ac_tool_warned=yes ;;
3364 esac
3365 CC=$ac_ct_CC
3366 @@ -2332,10 +3070,10 @@
3367 if test -n "$ac_tool_prefix"; then
3368 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3369 set dummy ${ac_tool_prefix}cc; ac_word=$2
3370 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3371 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3372 -if test "${ac_cv_prog_CC+set}" = set; then
3373 - echo $ECHO_N "(cached) $ECHO_C" >&6
3374 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3375 +$as_echo_n "checking for $ac_word... " >&6; }
3376 +if ${ac_cv_prog_CC+:} false; then :
3377 + $as_echo_n "(cached) " >&6
3378 else
3379 if test -n "$CC"; then
3380 ac_cv_prog_CC="$CC" # Let the user override the test.
3381 @@ -2345,25 +3083,25 @@
3383 IFS=$as_save_IFS
3384 test -z "$as_dir" && as_dir=.
3385 - for ac_exec_ext in '' $ac_executable_extensions; do
3386 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3387 + for ac_exec_ext in '' $ac_executable_extensions; do
3388 + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3389 ac_cv_prog_CC="${ac_tool_prefix}cc"
3390 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3391 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3392 break 2
3394 done
3395 -done
3396 + done
3397 IFS=$as_save_IFS
3401 CC=$ac_cv_prog_CC
3402 if test -n "$CC"; then
3403 - { echo "$as_me:$LINENO: result: $CC" >&5
3404 -echo "${ECHO_T}$CC" >&6; }
3405 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3406 +$as_echo "$CC" >&6; }
3407 else
3408 - { echo "$as_me:$LINENO: result: no" >&5
3409 -echo "${ECHO_T}no" >&6; }
3410 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3411 +$as_echo "no" >&6; }
3415 @@ -2372,10 +3110,10 @@
3416 if test -z "$CC"; then
3417 # Extract the first word of "cc", so it can be a program name with args.
3418 set dummy cc; ac_word=$2
3419 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3420 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3421 -if test "${ac_cv_prog_CC+set}" = set; then
3422 - echo $ECHO_N "(cached) $ECHO_C" >&6
3423 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3424 +$as_echo_n "checking for $ac_word... " >&6; }
3425 +if ${ac_cv_prog_CC+:} false; then :
3426 + $as_echo_n "(cached) " >&6
3427 else
3428 if test -n "$CC"; then
3429 ac_cv_prog_CC="$CC" # Let the user override the test.
3430 @@ -2386,18 +3124,18 @@
3432 IFS=$as_save_IFS
3433 test -z "$as_dir" && as_dir=.
3434 - for ac_exec_ext in '' $ac_executable_extensions; do
3435 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3436 + for ac_exec_ext in '' $ac_executable_extensions; do
3437 + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3438 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3439 ac_prog_rejected=yes
3440 continue
3442 ac_cv_prog_CC="cc"
3443 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3444 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3445 break 2
3447 done
3448 -done
3449 + done
3450 IFS=$as_save_IFS
3452 if test $ac_prog_rejected = yes; then
3453 @@ -2416,11 +3154,11 @@
3455 CC=$ac_cv_prog_CC
3456 if test -n "$CC"; then
3457 - { echo "$as_me:$LINENO: result: $CC" >&5
3458 -echo "${ECHO_T}$CC" >&6; }
3459 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3460 +$as_echo "$CC" >&6; }
3461 else
3462 - { echo "$as_me:$LINENO: result: no" >&5
3463 -echo "${ECHO_T}no" >&6; }
3464 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3465 +$as_echo "no" >&6; }
3469 @@ -2431,10 +3169,10 @@
3471 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3472 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3473 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3474 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3475 -if test "${ac_cv_prog_CC+set}" = set; then
3476 - echo $ECHO_N "(cached) $ECHO_C" >&6
3477 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3478 +$as_echo_n "checking for $ac_word... " >&6; }
3479 +if ${ac_cv_prog_CC+:} false; then :
3480 + $as_echo_n "(cached) " >&6
3481 else
3482 if test -n "$CC"; then
3483 ac_cv_prog_CC="$CC" # Let the user override the test.
3484 @@ -2444,25 +3182,25 @@
3486 IFS=$as_save_IFS
3487 test -z "$as_dir" && as_dir=.
3488 - for ac_exec_ext in '' $ac_executable_extensions; do
3489 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3490 + for ac_exec_ext in '' $ac_executable_extensions; do
3491 + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3492 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3493 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3494 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3495 break 2
3497 done
3498 -done
3499 + done
3500 IFS=$as_save_IFS
3504 CC=$ac_cv_prog_CC
3505 if test -n "$CC"; then
3506 - { echo "$as_me:$LINENO: result: $CC" >&5
3507 -echo "${ECHO_T}$CC" >&6; }
3508 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3509 +$as_echo "$CC" >&6; }
3510 else
3511 - { echo "$as_me:$LINENO: result: no" >&5
3512 -echo "${ECHO_T}no" >&6; }
3513 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3514 +$as_echo "no" >&6; }
3518 @@ -2475,10 +3213,10 @@
3520 # Extract the first word of "$ac_prog", so it can be a program name with args.
3521 set dummy $ac_prog; ac_word=$2
3522 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3523 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3524 -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3525 - echo $ECHO_N "(cached) $ECHO_C" >&6
3526 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3527 +$as_echo_n "checking for $ac_word... " >&6; }
3528 +if ${ac_cv_prog_ac_ct_CC+:} false; then :
3529 + $as_echo_n "(cached) " >&6
3530 else
3531 if test -n "$ac_ct_CC"; then
3532 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3533 @@ -2488,25 +3226,25 @@
3535 IFS=$as_save_IFS
3536 test -z "$as_dir" && as_dir=.
3537 - for ac_exec_ext in '' $ac_executable_extensions; do
3538 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3539 + for ac_exec_ext in '' $ac_executable_extensions; do
3540 + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3541 ac_cv_prog_ac_ct_CC="$ac_prog"
3542 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3543 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3544 break 2
3546 done
3547 -done
3548 + done
3549 IFS=$as_save_IFS
3553 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3554 if test -n "$ac_ct_CC"; then
3555 - { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3556 -echo "${ECHO_T}$ac_ct_CC" >&6; }
3557 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3558 +$as_echo "$ac_ct_CC" >&6; }
3559 else
3560 - { echo "$as_me:$LINENO: result: no" >&5
3561 -echo "${ECHO_T}no" >&6; }
3562 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3563 +$as_echo "no" >&6; }
3567 @@ -2518,12 +3256,8 @@
3568 else
3569 case $cross_compiling:$ac_tool_warned in
3570 yes:)
3571 -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3572 -whose name does not start with the host triplet. If you think this
3573 -configuration is useful to you, please write to autoconf@gnu.org." >&5
3574 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3575 -whose name does not start with the host triplet. If you think this
3576 -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3577 +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3578 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3579 ac_tool_warned=yes ;;
3580 esac
3581 CC=$ac_ct_CC
3582 @@ -2533,51 +3267,37 @@
3586 -test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3587 -See \`config.log' for more details." >&5
3588 -echo "$as_me: error: no acceptable C compiler found in \$PATH
3589 -See \`config.log' for more details." >&2;}
3590 - { (exit 1); exit 1; }; }
3591 +test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3592 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3593 +as_fn_error $? "no acceptable C compiler found in \$PATH
3594 +See \`config.log' for more details" "$LINENO" 5; }
3596 # Provide some information about the compiler.
3597 -echo "$as_me:$LINENO: checking for C compiler version" >&5
3598 -ac_compiler=`set X $ac_compile; echo $2`
3599 -{ (ac_try="$ac_compiler --version >&5"
3600 -case "(($ac_try" in
3601 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3602 - *) ac_try_echo=$ac_try;;
3603 -esac
3604 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3605 - (eval "$ac_compiler --version >&5") 2>&5
3606 - ac_status=$?
3607 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608 - (exit $ac_status); }
3609 -{ (ac_try="$ac_compiler -v >&5"
3610 -case "(($ac_try" in
3611 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3612 - *) ac_try_echo=$ac_try;;
3613 -esac
3614 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3615 - (eval "$ac_compiler -v >&5") 2>&5
3616 - ac_status=$?
3617 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618 - (exit $ac_status); }
3619 -{ (ac_try="$ac_compiler -V >&5"
3620 +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3621 +set X $ac_compile
3622 +ac_compiler=$2
3623 +for ac_option in --version -v -V -qversion; do
3624 + { { ac_try="$ac_compiler $ac_option >&5"
3625 case "(($ac_try" in
3626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3627 *) ac_try_echo=$ac_try;;
3628 esac
3629 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3630 - (eval "$ac_compiler -V >&5") 2>&5
3631 +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3632 +$as_echo "$ac_try_echo"; } >&5
3633 + (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3634 ac_status=$?
3635 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636 - (exit $ac_status); }
3637 + if test -s conftest.err; then
3638 + sed '10a\
3639 +... rest of stderr output deleted ...
3640 + 10q' conftest.err >conftest.er1
3641 + cat conftest.er1 >&5
3642 + fi
3643 + rm -f conftest.er1 conftest.err
3644 + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3645 + test $ac_status = 0; }
3646 +done
3648 -cat >conftest.$ac_ext <<_ACEOF
3649 -/* confdefs.h. */
3650 -_ACEOF
3651 -cat confdefs.h >>conftest.$ac_ext
3652 -cat >>conftest.$ac_ext <<_ACEOF
3653 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3654 /* end confdefs.h. */
3657 @@ -2589,42 +3309,38 @@
3659 _ACEOF
3660 ac_clean_files_save=$ac_clean_files
3661 -ac_clean_files="$ac_clean_files a.out a.exe b.out"
3662 +ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3663 # Try to create an executable without -o first, disregard a.out.
3664 # It will help us diagnose broken compilers, and finding out an intuition
3665 # of exeext.
3666 -{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3667 -echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3668 -ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3670 -# List of possible output files, starting from the most likely.
3671 -# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3672 -# only as a last resort. b.out is created by i960 compilers.
3673 -ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3675 -# The IRIX 6 linker writes into existing files which may not be
3676 -# executable, retaining their permissions. Remove them first so a
3677 -# subsequent execution test works.
3678 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3679 +$as_echo_n "checking whether the C compiler works... " >&6; }
3680 +ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3682 +# The possible output files:
3683 +ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3685 ac_rmfiles=
3686 for ac_file in $ac_files
3688 case $ac_file in
3689 - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3690 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3691 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3692 esac
3693 done
3694 rm -f $ac_rmfiles
3696 -if { (ac_try="$ac_link_default"
3697 +if { { ac_try="$ac_link_default"
3698 case "(($ac_try" in
3699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3700 *) ac_try_echo=$ac_try;;
3701 esac
3702 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3703 +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3704 +$as_echo "$ac_try_echo"; } >&5
3705 (eval "$ac_link_default") 2>&5
3706 ac_status=$?
3707 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708 - (exit $ac_status); }; then
3709 + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3710 + test $ac_status = 0; }; then :
3711 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3712 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3713 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3714 @@ -2634,14 +3350,14 @@
3716 test -f "$ac_file" || continue
3717 case $ac_file in
3718 - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3719 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3721 [ab].out )
3722 # We found the default executable, but exeext='' is most
3723 # certainly right.
3724 break;;
3725 *.* )
3726 - if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3727 + if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3728 then :; else
3729 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3731 @@ -2660,78 +3376,41 @@
3732 else
3733 ac_file=''
3736 -{ echo "$as_me:$LINENO: result: $ac_file" >&5
3737 -echo "${ECHO_T}$ac_file" >&6; }
3738 -if test -z "$ac_file"; then
3739 - echo "$as_me: failed program was:" >&5
3740 -sed 's/^/| /' conftest.$ac_ext >&5
3742 -{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3743 -See \`config.log' for more details." >&5
3744 -echo "$as_me: error: C compiler cannot create executables
3745 -See \`config.log' for more details." >&2;}
3746 - { (exit 77); exit 77; }; }
3749 +if test -z "$ac_file"; then :
3750 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3751 +$as_echo "no" >&6; }
3752 +$as_echo "$as_me: failed program was:" >&5
3753 +sed 's/^/| /' conftest.$ac_ext >&5
3755 +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3756 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3757 +as_fn_error 77 "C compiler cannot create executables
3758 +See \`config.log' for more details" "$LINENO" 5; }
3759 +else
3760 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3761 +$as_echo "yes" >&6; }
3763 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3764 +$as_echo_n "checking for C compiler default output file name... " >&6; }
3765 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3766 +$as_echo "$ac_file" >&6; }
3767 ac_exeext=$ac_cv_exeext
3769 -# Check that the compiler produces executables we can run. If not, either
3770 -# the compiler is broken, or we cross compile.
3771 -{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3772 -echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3773 -# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3774 -# If not cross compiling, check that we can run a simple program.
3775 -if test "$cross_compiling" != yes; then
3776 - if { ac_try='./$ac_file'
3777 - { (case "(($ac_try" in
3778 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3779 - *) ac_try_echo=$ac_try;;
3780 -esac
3781 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3782 - (eval "$ac_try") 2>&5
3783 - ac_status=$?
3784 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
3785 - (exit $ac_status); }; }; then
3786 - cross_compiling=no
3787 - else
3788 - if test "$cross_compiling" = maybe; then
3789 - cross_compiling=yes
3790 - else
3791 - { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3792 -If you meant to cross compile, use \`--host'.
3793 -See \`config.log' for more details." >&5
3794 -echo "$as_me: error: cannot run C compiled programs.
3795 -If you meant to cross compile, use \`--host'.
3796 -See \`config.log' for more details." >&2;}
3797 - { (exit 1); exit 1; }; }
3798 - fi
3799 - fi
3801 -{ echo "$as_me:$LINENO: result: yes" >&5
3802 -echo "${ECHO_T}yes" >&6; }
3804 -rm -f a.out a.exe conftest$ac_cv_exeext b.out
3805 +rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3806 ac_clean_files=$ac_clean_files_save
3807 -# Check that the compiler produces executables we can run. If not, either
3808 -# the compiler is broken, or we cross compile.
3809 -{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3810 -echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3811 -{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
3812 -echo "${ECHO_T}$cross_compiling" >&6; }
3814 -{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
3815 -echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3816 -if { (ac_try="$ac_link"
3817 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3818 +$as_echo_n "checking for suffix of executables... " >&6; }
3819 +if { { ac_try="$ac_link"
3820 case "(($ac_try" in
3821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3822 *) ac_try_echo=$ac_try;;
3823 esac
3824 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3825 +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3826 +$as_echo "$ac_try_echo"; } >&5
3827 (eval "$ac_link") 2>&5
3828 ac_status=$?
3829 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
3830 - (exit $ac_status); }; then
3831 + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3832 + test $ac_status = 0; }; then :
3833 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3834 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3835 # work properly (i.e., refer to `conftest.exe'), while it won't with
3836 @@ -2739,37 +3418,90 @@
3837 for ac_file in conftest.exe conftest conftest.*; do
3838 test -f "$ac_file" || continue
3839 case $ac_file in
3840 - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3841 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3842 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3843 break;;
3844 * ) break;;
3845 esac
3846 done
3847 else
3848 - { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3849 -See \`config.log' for more details." >&5
3850 -echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3851 -See \`config.log' for more details." >&2;}
3852 - { (exit 1); exit 1; }; }
3855 -rm -f conftest$ac_cv_exeext
3856 -{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3857 -echo "${ECHO_T}$ac_cv_exeext" >&6; }
3858 + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3859 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3860 +as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3861 +See \`config.log' for more details" "$LINENO" 5; }
3863 +rm -f conftest conftest$ac_cv_exeext
3864 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3865 +$as_echo "$ac_cv_exeext" >&6; }
3867 rm -f conftest.$ac_ext
3868 EXEEXT=$ac_cv_exeext
3869 ac_exeext=$EXEEXT
3870 -{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3871 -echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3872 -if test "${ac_cv_objext+set}" = set; then
3873 - echo $ECHO_N "(cached) $ECHO_C" >&6
3874 -else
3875 - cat >conftest.$ac_ext <<_ACEOF
3876 -/* confdefs.h. */
3877 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3878 +/* end confdefs.h. */
3879 +#include <stdio.h>
3880 +int
3881 +main ()
3883 +FILE *f = fopen ("conftest.out", "w");
3884 + return ferror (f) || fclose (f) != 0;
3887 + return 0;
3889 _ACEOF
3890 -cat confdefs.h >>conftest.$ac_ext
3891 -cat >>conftest.$ac_ext <<_ACEOF
3892 +ac_clean_files="$ac_clean_files conftest.out"
3893 +# Check that the compiler produces executables we can run. If not, either
3894 +# the compiler is broken, or we cross compile.
3895 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3896 +$as_echo_n "checking whether we are cross compiling... " >&6; }
3897 +if test "$cross_compiling" != yes; then
3898 + { { ac_try="$ac_link"
3899 +case "(($ac_try" in
3900 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3901 + *) ac_try_echo=$ac_try;;
3902 +esac
3903 +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3904 +$as_echo "$ac_try_echo"; } >&5
3905 + (eval "$ac_link") 2>&5
3906 + ac_status=$?
3907 + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3908 + test $ac_status = 0; }
3909 + if { ac_try='./conftest$ac_cv_exeext'
3910 + { { case "(($ac_try" in
3911 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3912 + *) ac_try_echo=$ac_try;;
3913 +esac
3914 +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3915 +$as_echo "$ac_try_echo"; } >&5
3916 + (eval "$ac_try") 2>&5
3917 + ac_status=$?
3918 + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3919 + test $ac_status = 0; }; }; then
3920 + cross_compiling=no
3921 + else
3922 + if test "$cross_compiling" = maybe; then
3923 + cross_compiling=yes
3924 + else
3925 + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3926 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3927 +as_fn_error $? "cannot run C compiled programs.
3928 +If you meant to cross compile, use \`--host'.
3929 +See \`config.log' for more details" "$LINENO" 5; }
3930 + fi
3931 + fi
3933 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3934 +$as_echo "$cross_compiling" >&6; }
3936 +rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3937 +ac_clean_files=$ac_clean_files_save
3938 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3939 +$as_echo_n "checking for suffix of object files... " >&6; }
3940 +if ${ac_cv_objext+:} false; then :
3941 + $as_echo_n "(cached) " >&6
3942 +else
3943 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3944 /* end confdefs.h. */
3947 @@ -2781,51 +3513,46 @@
3949 _ACEOF
3950 rm -f conftest.o conftest.obj
3951 -if { (ac_try="$ac_compile"
3952 +if { { ac_try="$ac_compile"
3953 case "(($ac_try" in
3954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3955 *) ac_try_echo=$ac_try;;
3956 esac
3957 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3958 +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3959 +$as_echo "$ac_try_echo"; } >&5
3960 (eval "$ac_compile") 2>&5
3961 ac_status=$?
3962 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963 - (exit $ac_status); }; then
3964 + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3965 + test $ac_status = 0; }; then :
3966 for ac_file in conftest.o conftest.obj conftest.*; do
3967 test -f "$ac_file" || continue;
3968 case $ac_file in
3969 - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3970 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3971 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3972 break;;
3973 esac
3974 done
3975 else
3976 - echo "$as_me: failed program was:" >&5
3977 + $as_echo "$as_me: failed program was:" >&5
3978 sed 's/^/| /' conftest.$ac_ext >&5
3980 -{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3981 -See \`config.log' for more details." >&5
3982 -echo "$as_me: error: cannot compute suffix of object files: cannot compile
3983 -See \`config.log' for more details." >&2;}
3984 - { (exit 1); exit 1; }; }
3985 +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3986 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3987 +as_fn_error $? "cannot compute suffix of object files: cannot compile
3988 +See \`config.log' for more details" "$LINENO" 5; }
3991 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3993 -{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3994 -echo "${ECHO_T}$ac_cv_objext" >&6; }
3995 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3996 +$as_echo "$ac_cv_objext" >&6; }
3997 OBJEXT=$ac_cv_objext
3998 ac_objext=$OBJEXT
3999 -{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4000 -echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4001 -if test "${ac_cv_c_compiler_gnu+set}" = set; then
4002 - echo $ECHO_N "(cached) $ECHO_C" >&6
4003 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4004 +$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4005 +if ${ac_cv_c_compiler_gnu+:} false; then :
4006 + $as_echo_n "(cached) " >&6
4007 else
4008 - cat >conftest.$ac_ext <<_ACEOF
4009 -/* confdefs.h. */
4010 -_ACEOF
4011 -cat confdefs.h >>conftest.$ac_ext
4012 -cat >>conftest.$ac_ext <<_ACEOF
4013 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4014 /* end confdefs.h. */
4017 @@ -2839,54 +3566,34 @@
4018 return 0;
4020 _ACEOF
4021 -rm -f conftest.$ac_objext
4022 -if { (ac_try="$ac_compile"
4023 -case "(($ac_try" in
4024 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4025 - *) ac_try_echo=$ac_try;;
4026 -esac
4027 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4028 - (eval "$ac_compile") 2>conftest.er1
4029 - ac_status=$?
4030 - grep -v '^ *+' conftest.er1 >conftest.err
4031 - rm -f conftest.er1
4032 - cat conftest.err >&5
4033 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034 - (exit $ac_status); } && {
4035 - test -z "$ac_c_werror_flag" ||
4036 - test ! -s conftest.err
4037 - } && test -s conftest.$ac_objext; then
4038 +if ac_fn_c_try_compile "$LINENO"; then :
4039 ac_compiler_gnu=yes
4040 else
4041 - echo "$as_me: failed program was:" >&5
4042 -sed 's/^/| /' conftest.$ac_ext >&5
4044 - ac_compiler_gnu=no
4045 + ac_compiler_gnu=no
4048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4049 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4052 -{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4053 -echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4054 -GCC=`test $ac_compiler_gnu = yes && echo yes`
4055 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4056 +$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4057 +if test $ac_compiler_gnu = yes; then
4058 + GCC=yes
4059 +else
4060 + GCC=
4062 ac_test_CFLAGS=${CFLAGS+set}
4063 ac_save_CFLAGS=$CFLAGS
4064 -{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4065 -echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4066 -if test "${ac_cv_prog_cc_g+set}" = set; then
4067 - echo $ECHO_N "(cached) $ECHO_C" >&6
4068 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4069 +$as_echo_n "checking whether $CC accepts -g... " >&6; }
4070 +if ${ac_cv_prog_cc_g+:} false; then :
4071 + $as_echo_n "(cached) " >&6
4072 else
4073 ac_save_c_werror_flag=$ac_c_werror_flag
4074 ac_c_werror_flag=yes
4075 ac_cv_prog_cc_g=no
4076 CFLAGS="-g"
4077 - cat >conftest.$ac_ext <<_ACEOF
4078 -/* confdefs.h. */
4079 -_ACEOF
4080 -cat confdefs.h >>conftest.$ac_ext
4081 -cat >>conftest.$ac_ext <<_ACEOF
4082 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4083 /* end confdefs.h. */
4086 @@ -2897,34 +3604,11 @@
4087 return 0;
4089 _ACEOF
4090 -rm -f conftest.$ac_objext
4091 -if { (ac_try="$ac_compile"
4092 -case "(($ac_try" in
4093 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4094 - *) ac_try_echo=$ac_try;;
4095 -esac
4096 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4097 - (eval "$ac_compile") 2>conftest.er1
4098 - ac_status=$?
4099 - grep -v '^ *+' conftest.er1 >conftest.err
4100 - rm -f conftest.er1
4101 - cat conftest.err >&5
4102 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
4103 - (exit $ac_status); } && {
4104 - test -z "$ac_c_werror_flag" ||
4105 - test ! -s conftest.err
4106 - } && test -s conftest.$ac_objext; then
4107 +if ac_fn_c_try_compile "$LINENO"; then :
4108 ac_cv_prog_cc_g=yes
4109 else
4110 - echo "$as_me: failed program was:" >&5
4111 -sed 's/^/| /' conftest.$ac_ext >&5
4113 - CFLAGS=""
4114 - cat >conftest.$ac_ext <<_ACEOF
4115 -/* confdefs.h. */
4116 -_ACEOF
4117 -cat confdefs.h >>conftest.$ac_ext
4118 -cat >>conftest.$ac_ext <<_ACEOF
4119 + CFLAGS=""
4120 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4121 /* end confdefs.h. */
4124 @@ -2935,35 +3619,12 @@
4125 return 0;
4127 _ACEOF
4128 -rm -f conftest.$ac_objext
4129 -if { (ac_try="$ac_compile"
4130 -case "(($ac_try" in
4131 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4132 - *) ac_try_echo=$ac_try;;
4133 -esac
4134 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4135 - (eval "$ac_compile") 2>conftest.er1
4136 - ac_status=$?
4137 - grep -v '^ *+' conftest.er1 >conftest.err
4138 - rm -f conftest.er1
4139 - cat conftest.err >&5
4140 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
4141 - (exit $ac_status); } && {
4142 - test -z "$ac_c_werror_flag" ||
4143 - test ! -s conftest.err
4144 - } && test -s conftest.$ac_objext; then
4146 -else
4147 - echo "$as_me: failed program was:" >&5
4148 -sed 's/^/| /' conftest.$ac_ext >&5
4149 +if ac_fn_c_try_compile "$LINENO"; then :
4151 - ac_c_werror_flag=$ac_save_c_werror_flag
4152 +else
4153 + ac_c_werror_flag=$ac_save_c_werror_flag
4154 CFLAGS="-g"
4155 - cat >conftest.$ac_ext <<_ACEOF
4156 -/* confdefs.h. */
4157 -_ACEOF
4158 -cat confdefs.h >>conftest.$ac_ext
4159 -cat >>conftest.$ac_ext <<_ACEOF
4160 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4161 /* end confdefs.h. */
4164 @@ -2974,42 +3635,18 @@
4165 return 0;
4167 _ACEOF
4168 -rm -f conftest.$ac_objext
4169 -if { (ac_try="$ac_compile"
4170 -case "(($ac_try" in
4171 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4172 - *) ac_try_echo=$ac_try;;
4173 -esac
4174 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4175 - (eval "$ac_compile") 2>conftest.er1
4176 - ac_status=$?
4177 - grep -v '^ *+' conftest.er1 >conftest.err
4178 - rm -f conftest.er1
4179 - cat conftest.err >&5
4180 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181 - (exit $ac_status); } && {
4182 - test -z "$ac_c_werror_flag" ||
4183 - test ! -s conftest.err
4184 - } && test -s conftest.$ac_objext; then
4185 +if ac_fn_c_try_compile "$LINENO"; then :
4186 ac_cv_prog_cc_g=yes
4187 -else
4188 - echo "$as_me: failed program was:" >&5
4189 -sed 's/^/| /' conftest.$ac_ext >&5
4194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4201 ac_c_werror_flag=$ac_save_c_werror_flag
4203 -{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4204 -echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4205 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4206 +$as_echo "$ac_cv_prog_cc_g" >&6; }
4207 if test "$ac_test_CFLAGS" = set; then
4208 CFLAGS=$ac_save_CFLAGS
4209 elif test $ac_cv_prog_cc_g = yes; then
4210 @@ -3025,23 +3662,18 @@
4211 CFLAGS=
4214 -{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4215 -echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4216 -if test "${ac_cv_prog_cc_c89+set}" = set; then
4217 - echo $ECHO_N "(cached) $ECHO_C" >&6
4218 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4219 +$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4220 +if ${ac_cv_prog_cc_c89+:} false; then :
4221 + $as_echo_n "(cached) " >&6
4222 else
4223 ac_cv_prog_cc_c89=no
4224 ac_save_CC=$CC
4225 -cat >conftest.$ac_ext <<_ACEOF
4226 -/* confdefs.h. */
4227 -_ACEOF
4228 -cat confdefs.h >>conftest.$ac_ext
4229 -cat >>conftest.$ac_ext <<_ACEOF
4230 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4231 /* end confdefs.h. */
4232 #include <stdarg.h>
4233 #include <stdio.h>
4234 -#include <sys/types.h>
4235 -#include <sys/stat.h>
4236 +struct stat;
4237 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4238 struct buf { int x; };
4239 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4240 @@ -3093,31 +3725,9 @@
4241 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4243 CC="$ac_save_CC $ac_arg"
4244 - rm -f conftest.$ac_objext
4245 -if { (ac_try="$ac_compile"
4246 -case "(($ac_try" in
4247 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4248 - *) ac_try_echo=$ac_try;;
4249 -esac
4250 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4251 - (eval "$ac_compile") 2>conftest.er1
4252 - ac_status=$?
4253 - grep -v '^ *+' conftest.er1 >conftest.err
4254 - rm -f conftest.er1
4255 - cat conftest.err >&5
4256 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
4257 - (exit $ac_status); } && {
4258 - test -z "$ac_c_werror_flag" ||
4259 - test ! -s conftest.err
4260 - } && test -s conftest.$ac_objext; then
4261 + if ac_fn_c_try_compile "$LINENO"; then :
4262 ac_cv_prog_cc_c89=$ac_arg
4263 -else
4264 - echo "$as_me: failed program was:" >&5
4265 -sed 's/^/| /' conftest.$ac_ext >&5
4270 rm -f core conftest.err conftest.$ac_objext
4271 test "x$ac_cv_prog_cc_c89" != "xno" && break
4272 done
4273 @@ -3128,17 +3738,19 @@
4274 # AC_CACHE_VAL
4275 case "x$ac_cv_prog_cc_c89" in
4277 - { echo "$as_me:$LINENO: result: none needed" >&5
4278 -echo "${ECHO_T}none needed" >&6; } ;;
4279 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4280 +$as_echo "none needed" >&6; } ;;
4281 xno)
4282 - { echo "$as_me:$LINENO: result: unsupported" >&5
4283 -echo "${ECHO_T}unsupported" >&6; } ;;
4284 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4285 +$as_echo "unsupported" >&6; } ;;
4287 CC="$CC $ac_cv_prog_cc_c89"
4288 - { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4289 -echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4290 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4291 +$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4292 esac
4293 +if test "x$ac_cv_prog_cc_c89" != xno; then :
4297 ac_ext=c
4298 ac_cpp='$CPP $CPPFLAGS'
4299 @@ -3149,11 +3761,11 @@
4303 -{ echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5
4304 -echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6; }
4305 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-cxx-main=<compiler>" >&5
4306 +$as_echo_n "checking for --with-cxx-main=<compiler>... " >&6; }
4308 # Check whether --with-cxx_main was given.
4309 -if test "${with_cxx_main+set}" = set; then
4310 +if test "${with_cxx_main+set}" = set; then :
4311 withval=$with_cxx_main;
4313 case $withval in
4314 @@ -3175,8 +3787,8 @@
4318 -{ echo "$as_me:$LINENO: result: $with_cxx_main" >&5
4319 -echo "${ECHO_T}$with_cxx_main" >&6; }
4320 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_cxx_main" >&5
4321 +$as_echo "$with_cxx_main" >&6; }
4323 preset_cxx="$CXX"
4324 if test -z "$CXX"
4325 @@ -3184,10 +3796,10 @@
4326 case "$CC" in
4327 gcc) # Extract the first word of "g++", so it can be a program name with args.
4328 set dummy g++; ac_word=$2
4329 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4330 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4331 -if test "${ac_cv_path_CXX+set}" = set; then
4332 - echo $ECHO_N "(cached) $ECHO_C" >&6
4333 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4334 +$as_echo_n "checking for $ac_word... " >&6; }
4335 +if ${ac_cv_path_CXX+:} false; then :
4336 + $as_echo_n "(cached) " >&6
4337 else
4338 case $CXX in
4339 [\\/]* | ?:[\\/]*)
4340 @@ -3199,14 +3811,14 @@
4342 IFS=$as_save_IFS
4343 test -z "$as_dir" && as_dir=.
4344 - for ac_exec_ext in '' $ac_executable_extensions; do
4345 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4346 + for ac_exec_ext in '' $ac_executable_extensions; do
4347 + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4348 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4349 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4350 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4351 break 2
4353 done
4354 -done
4355 + done
4356 IFS=$as_save_IFS
4358 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="g++"
4359 @@ -3215,20 +3827,20 @@
4361 CXX=$ac_cv_path_CXX
4362 if test -n "$CXX"; then
4363 - { echo "$as_me:$LINENO: result: $CXX" >&5
4364 -echo "${ECHO_T}$CXX" >&6; }
4365 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4366 +$as_echo "$CXX" >&6; }
4367 else
4368 - { echo "$as_me:$LINENO: result: no" >&5
4369 -echo "${ECHO_T}no" >&6; }
4370 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4371 +$as_echo "no" >&6; }
4375 cc) # Extract the first word of "c++", so it can be a program name with args.
4376 set dummy c++; ac_word=$2
4377 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4378 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4379 -if test "${ac_cv_path_CXX+set}" = set; then
4380 - echo $ECHO_N "(cached) $ECHO_C" >&6
4381 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4382 +$as_echo_n "checking for $ac_word... " >&6; }
4383 +if ${ac_cv_path_CXX+:} false; then :
4384 + $as_echo_n "(cached) " >&6
4385 else
4386 case $CXX in
4387 [\\/]* | ?:[\\/]*)
4388 @@ -3240,14 +3852,14 @@
4390 IFS=$as_save_IFS
4391 test -z "$as_dir" && as_dir=.
4392 - for ac_exec_ext in '' $ac_executable_extensions; do
4393 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4394 + for ac_exec_ext in '' $ac_executable_extensions; do
4395 + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4396 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4397 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4398 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4399 break 2
4401 done
4402 -done
4403 + done
4404 IFS=$as_save_IFS
4406 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="c++"
4407 @@ -3256,11 +3868,11 @@
4409 CXX=$ac_cv_path_CXX
4410 if test -n "$CXX"; then
4411 - { echo "$as_me:$LINENO: result: $CXX" >&5
4412 -echo "${ECHO_T}$CXX" >&6; }
4413 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4414 +$as_echo "$CXX" >&6; }
4415 else
4416 - { echo "$as_me:$LINENO: result: no" >&5
4417 -echo "${ECHO_T}no" >&6; }
4418 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4419 +$as_echo "no" >&6; }
4423 @@ -3276,10 +3888,10 @@
4425 # Extract the first word of "$ac_prog", so it can be a program name with args.
4426 set dummy $ac_prog; ac_word=$2
4427 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4428 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4429 -if test "${ac_cv_prog_CXX+set}" = set; then
4430 - echo $ECHO_N "(cached) $ECHO_C" >&6
4431 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4432 +$as_echo_n "checking for $ac_word... " >&6; }
4433 +if ${ac_cv_prog_CXX+:} false; then :
4434 + $as_echo_n "(cached) " >&6
4435 else
4436 if test -n "$CXX"; then
4437 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4438 @@ -3289,25 +3901,25 @@
4440 IFS=$as_save_IFS
4441 test -z "$as_dir" && as_dir=.
4442 - for ac_exec_ext in '' $ac_executable_extensions; do
4443 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4444 + for ac_exec_ext in '' $ac_executable_extensions; do
4445 + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4446 ac_cv_prog_CXX="$ac_prog"
4447 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4448 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4449 break 2
4451 done
4452 -done
4453 + done
4454 IFS=$as_save_IFS
4458 CXX=$ac_cv_prog_CXX
4459 if test -n "$CXX"; then
4460 - { echo "$as_me:$LINENO: result: $CXX" >&5
4461 -echo "${ECHO_T}$CXX" >&6; }
4462 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4463 +$as_echo "$CXX" >&6; }
4464 else
4465 - { echo "$as_me:$LINENO: result: no" >&5
4466 -echo "${ECHO_T}no" >&6; }
4467 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4468 +$as_echo "no" >&6; }
4472 @@ -3322,12 +3934,12 @@
4474 if test "$preset_cxx" != "$CXX"
4475 then
4476 - { echo "$as_me:$LINENO: WARNING:
4477 + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
4479 By default, distutils will build C++ extension modules with \"$CXX\".
4480 If this is not intended, then set CXX on the configure command line.
4481 " >&5
4482 -echo "$as_me: WARNING:
4483 +$as_echo "$as_me: WARNING:
4485 By default, distutils will build C++ extension modules with \"$CXX\".
4486 If this is not intended, then set CXX on the configure command line.
4487 @@ -3342,15 +3954,15 @@
4488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4491 -{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4492 -echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4493 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4494 +$as_echo_n "checking how to run the C preprocessor... " >&6; }
4495 # On Suns, sometimes $CPP names a directory.
4496 if test -n "$CPP" && test -d "$CPP"; then
4497 CPP=
4499 if test -z "$CPP"; then
4500 - if test "${ac_cv_prog_CPP+set}" = set; then
4501 - echo $ECHO_N "(cached) $ECHO_C" >&6
4502 + if ${ac_cv_prog_CPP+:} false; then :
4503 + $as_echo_n "(cached) " >&6
4504 else
4505 # Double quotes because CPP needs to be expanded
4506 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4507 @@ -3364,11 +3976,7 @@
4508 # <limits.h> exists even on freestanding compilers.
4509 # On the NeXT, cc -E runs the code through the compiler's parser,
4510 # not just through cpp. "Syntax error" is here to catch this case.
4511 - cat >conftest.$ac_ext <<_ACEOF
4512 -/* confdefs.h. */
4513 -_ACEOF
4514 -cat confdefs.h >>conftest.$ac_ext
4515 -cat >>conftest.$ac_ext <<_ACEOF
4516 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4517 /* end confdefs.h. */
4518 #ifdef __STDC__
4519 # include <limits.h>
4520 @@ -3377,76 +3985,34 @@
4521 #endif
4522 Syntax error
4523 _ACEOF
4524 -if { (ac_try="$ac_cpp conftest.$ac_ext"
4525 -case "(($ac_try" in
4526 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4527 - *) ac_try_echo=$ac_try;;
4528 -esac
4529 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4530 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4531 - ac_status=$?
4532 - grep -v '^ *+' conftest.er1 >conftest.err
4533 - rm -f conftest.er1
4534 - cat conftest.err >&5
4535 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536 - (exit $ac_status); } >/dev/null && {
4537 - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4538 - test ! -s conftest.err
4539 - }; then
4541 -else
4542 - echo "$as_me: failed program was:" >&5
4543 -sed 's/^/| /' conftest.$ac_ext >&5
4544 +if ac_fn_c_try_cpp "$LINENO"; then :
4546 +else
4547 # Broken: fails on valid input.
4548 continue
4551 -rm -f conftest.err conftest.$ac_ext
4552 +rm -f conftest.err conftest.i conftest.$ac_ext
4554 # OK, works on sane cases. Now check whether nonexistent headers
4555 # can be detected and how.
4556 - cat >conftest.$ac_ext <<_ACEOF
4557 -/* confdefs.h. */
4558 -_ACEOF
4559 -cat confdefs.h >>conftest.$ac_ext
4560 -cat >>conftest.$ac_ext <<_ACEOF
4561 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4562 /* end confdefs.h. */
4563 #include <ac_nonexistent.h>
4564 _ACEOF
4565 -if { (ac_try="$ac_cpp conftest.$ac_ext"
4566 -case "(($ac_try" in
4567 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4568 - *) ac_try_echo=$ac_try;;
4569 -esac
4570 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4571 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4572 - ac_status=$?
4573 - grep -v '^ *+' conftest.er1 >conftest.err
4574 - rm -f conftest.er1
4575 - cat conftest.err >&5
4576 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577 - (exit $ac_status); } >/dev/null && {
4578 - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4579 - test ! -s conftest.err
4580 - }; then
4581 +if ac_fn_c_try_cpp "$LINENO"; then :
4582 # Broken: success on invalid input.
4583 continue
4584 else
4585 - echo "$as_me: failed program was:" >&5
4586 -sed 's/^/| /' conftest.$ac_ext >&5
4588 # Passes both tests.
4589 ac_preproc_ok=:
4590 break
4593 -rm -f conftest.err conftest.$ac_ext
4594 +rm -f conftest.err conftest.i conftest.$ac_ext
4596 done
4597 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4598 -rm -f conftest.err conftest.$ac_ext
4599 -if $ac_preproc_ok; then
4600 +rm -f conftest.i conftest.err conftest.$ac_ext
4601 +if $ac_preproc_ok; then :
4602 break
4605 @@ -3458,8 +4024,8 @@
4606 else
4607 ac_cv_prog_CPP=$CPP
4609 -{ echo "$as_me:$LINENO: result: $CPP" >&5
4610 -echo "${ECHO_T}$CPP" >&6; }
4611 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4612 +$as_echo "$CPP" >&6; }
4613 ac_preproc_ok=false
4614 for ac_c_preproc_warn_flag in '' yes
4616 @@ -3469,11 +4035,7 @@
4617 # <limits.h> exists even on freestanding compilers.
4618 # On the NeXT, cc -E runs the code through the compiler's parser,
4619 # not just through cpp. "Syntax error" is here to catch this case.
4620 - cat >conftest.$ac_ext <<_ACEOF
4621 -/* confdefs.h. */
4622 -_ACEOF
4623 -cat confdefs.h >>conftest.$ac_ext
4624 -cat >>conftest.$ac_ext <<_ACEOF
4625 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4626 /* end confdefs.h. */
4627 #ifdef __STDC__
4628 # include <limits.h>
4629 @@ -3482,83 +4044,40 @@
4630 #endif
4631 Syntax error
4632 _ACEOF
4633 -if { (ac_try="$ac_cpp conftest.$ac_ext"
4634 -case "(($ac_try" in
4635 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4636 - *) ac_try_echo=$ac_try;;
4637 -esac
4638 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4639 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4640 - ac_status=$?
4641 - grep -v '^ *+' conftest.er1 >conftest.err
4642 - rm -f conftest.er1
4643 - cat conftest.err >&5
4644 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
4645 - (exit $ac_status); } >/dev/null && {
4646 - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4647 - test ! -s conftest.err
4648 - }; then
4650 -else
4651 - echo "$as_me: failed program was:" >&5
4652 -sed 's/^/| /' conftest.$ac_ext >&5
4653 +if ac_fn_c_try_cpp "$LINENO"; then :
4655 +else
4656 # Broken: fails on valid input.
4657 continue
4660 -rm -f conftest.err conftest.$ac_ext
4661 +rm -f conftest.err conftest.i conftest.$ac_ext
4663 # OK, works on sane cases. Now check whether nonexistent headers
4664 # can be detected and how.
4665 - cat >conftest.$ac_ext <<_ACEOF
4666 -/* confdefs.h. */
4667 -_ACEOF
4668 -cat confdefs.h >>conftest.$ac_ext
4669 -cat >>conftest.$ac_ext <<_ACEOF
4670 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4671 /* end confdefs.h. */
4672 #include <ac_nonexistent.h>
4673 _ACEOF
4674 -if { (ac_try="$ac_cpp conftest.$ac_ext"
4675 -case "(($ac_try" in
4676 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4677 - *) ac_try_echo=$ac_try;;
4678 -esac
4679 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4680 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4681 - ac_status=$?
4682 - grep -v '^ *+' conftest.er1 >conftest.err
4683 - rm -f conftest.er1
4684 - cat conftest.err >&5
4685 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
4686 - (exit $ac_status); } >/dev/null && {
4687 - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4688 - test ! -s conftest.err
4689 - }; then
4690 +if ac_fn_c_try_cpp "$LINENO"; then :
4691 # Broken: success on invalid input.
4692 continue
4693 else
4694 - echo "$as_me: failed program was:" >&5
4695 -sed 's/^/| /' conftest.$ac_ext >&5
4697 # Passes both tests.
4698 ac_preproc_ok=:
4699 break
4702 -rm -f conftest.err conftest.$ac_ext
4703 +rm -f conftest.err conftest.i conftest.$ac_ext
4705 done
4706 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4707 -rm -f conftest.err conftest.$ac_ext
4708 -if $ac_preproc_ok; then
4710 +rm -f conftest.i conftest.err conftest.$ac_ext
4711 +if $ac_preproc_ok; then :
4713 else
4714 - { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4715 -See \`config.log' for more details." >&5
4716 -echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4717 -See \`config.log' for more details." >&2;}
4718 - { (exit 1); exit 1; }; }
4719 + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4720 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4721 +as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4722 +See \`config.log' for more details" "$LINENO" 5; }
4725 ac_ext=c
4726 @@ -3568,45 +4087,40 @@
4727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4730 -{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4731 -echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4732 -if test "${ac_cv_path_GREP+set}" = set; then
4733 - echo $ECHO_N "(cached) $ECHO_C" >&6
4734 -else
4735 - # Extract the first word of "grep ggrep" to use in msg output
4736 -if test -z "$GREP"; then
4737 -set dummy grep ggrep; ac_prog_name=$2
4738 -if test "${ac_cv_path_GREP+set}" = set; then
4739 - echo $ECHO_N "(cached) $ECHO_C" >&6
4740 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4741 +$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4742 +if ${ac_cv_path_GREP+:} false; then :
4743 + $as_echo_n "(cached) " >&6
4744 else
4745 + if test -z "$GREP"; then
4746 ac_path_GREP_found=false
4747 -# Loop through the user's path and test for each of PROGNAME-LIST
4748 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4749 + # Loop through the user's path and test for each of PROGNAME-LIST
4750 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4751 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4753 IFS=$as_save_IFS
4754 test -z "$as_dir" && as_dir=.
4755 - for ac_prog in grep ggrep; do
4756 - for ac_exec_ext in '' $ac_executable_extensions; do
4757 - ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4758 - { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4759 - # Check for GNU ac_path_GREP and select it if it is found.
4760 + for ac_prog in grep ggrep; do
4761 + for ac_exec_ext in '' $ac_executable_extensions; do
4762 + ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4763 + as_fn_executable_p "$ac_path_GREP" || continue
4764 +# Check for GNU ac_path_GREP and select it if it is found.
4765 # Check for GNU $ac_path_GREP
4766 case `"$ac_path_GREP" --version 2>&1` in
4767 *GNU*)
4768 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4770 ac_count=0
4771 - echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4772 + $as_echo_n 0123456789 >"conftest.in"
4773 while :
4775 cat "conftest.in" "conftest.in" >"conftest.tmp"
4776 mv "conftest.tmp" "conftest.in"
4777 cp "conftest.in" "conftest.nl"
4778 - echo 'GREP' >> "conftest.nl"
4779 + $as_echo 'GREP' >> "conftest.nl"
4780 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4781 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4782 - ac_count=`expr $ac_count + 1`
4783 + as_fn_arith $ac_count + 1 && ac_count=$as_val
4784 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4785 # Best one so far, save it but keep looking for a better one
4786 ac_cv_path_GREP="$ac_path_GREP"
4787 @@ -3618,77 +4132,61 @@
4788 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4789 esac
4792 - $ac_path_GREP_found && break 3
4793 + $ac_path_GREP_found && break 3
4794 + done
4795 + done
4796 done
4797 -done
4799 -done
4800 IFS=$as_save_IFS
4805 -GREP="$ac_cv_path_GREP"
4806 -if test -z "$GREP"; then
4807 - { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4808 -echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4809 - { (exit 1); exit 1; }; }
4812 + if test -z "$ac_cv_path_GREP"; then
4813 + as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4814 + fi
4815 else
4816 ac_cv_path_GREP=$GREP
4821 -{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4822 -echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4823 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4824 +$as_echo "$ac_cv_path_GREP" >&6; }
4825 GREP="$ac_cv_path_GREP"
4828 -{ echo "$as_me:$LINENO: checking for egrep" >&5
4829 -echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4830 -if test "${ac_cv_path_EGREP+set}" = set; then
4831 - echo $ECHO_N "(cached) $ECHO_C" >&6
4832 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4833 +$as_echo_n "checking for egrep... " >&6; }
4834 +if ${ac_cv_path_EGREP+:} false; then :
4835 + $as_echo_n "(cached) " >&6
4836 else
4837 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4838 then ac_cv_path_EGREP="$GREP -E"
4839 else
4840 - # Extract the first word of "egrep" to use in msg output
4841 -if test -z "$EGREP"; then
4842 -set dummy egrep; ac_prog_name=$2
4843 -if test "${ac_cv_path_EGREP+set}" = set; then
4844 - echo $ECHO_N "(cached) $ECHO_C" >&6
4845 -else
4846 + if test -z "$EGREP"; then
4847 ac_path_EGREP_found=false
4848 -# Loop through the user's path and test for each of PROGNAME-LIST
4849 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4850 + # Loop through the user's path and test for each of PROGNAME-LIST
4851 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4852 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4854 IFS=$as_save_IFS
4855 test -z "$as_dir" && as_dir=.
4856 - for ac_prog in egrep; do
4857 - for ac_exec_ext in '' $ac_executable_extensions; do
4858 - ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4859 - { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4860 - # Check for GNU ac_path_EGREP and select it if it is found.
4861 + for ac_prog in egrep; do
4862 + for ac_exec_ext in '' $ac_executable_extensions; do
4863 + ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4864 + as_fn_executable_p "$ac_path_EGREP" || continue
4865 +# Check for GNU ac_path_EGREP and select it if it is found.
4866 # Check for GNU $ac_path_EGREP
4867 case `"$ac_path_EGREP" --version 2>&1` in
4868 *GNU*)
4869 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4871 ac_count=0
4872 - echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4873 + $as_echo_n 0123456789 >"conftest.in"
4874 while :
4876 cat "conftest.in" "conftest.in" >"conftest.tmp"
4877 mv "conftest.tmp" "conftest.in"
4878 cp "conftest.in" "conftest.nl"
4879 - echo 'EGREP' >> "conftest.nl"
4880 + $as_echo 'EGREP' >> "conftest.nl"
4881 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4882 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4883 - ac_count=`expr $ac_count + 1`
4884 + as_fn_arith $ac_count + 1 && ac_count=$as_val
4885 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4886 # Best one so far, save it but keep looking for a better one
4887 ac_cv_path_EGREP="$ac_path_EGREP"
4888 @@ -3700,63 +4198,214 @@
4889 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4890 esac
4893 - $ac_path_EGREP_found && break 3
4894 + $ac_path_EGREP_found && break 3
4895 + done
4896 + done
4897 done
4898 -done
4900 -done
4901 IFS=$as_save_IFS
4904 + if test -z "$ac_cv_path_EGREP"; then
4905 + as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4906 + fi
4907 +else
4908 + ac_cv_path_EGREP=$EGREP
4911 -EGREP="$ac_cv_path_EGREP"
4912 -if test -z "$EGREP"; then
4913 - { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4914 -echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4915 - { (exit 1); exit 1; }; }
4916 + fi
4918 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4919 +$as_echo "$ac_cv_path_EGREP" >&6; }
4920 + EGREP="$ac_cv_path_EGREP"
4923 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4924 +$as_echo_n "checking for ANSI C header files... " >&6; }
4925 +if ${ac_cv_header_stdc+:} false; then :
4926 + $as_echo_n "(cached) " >&6
4927 else
4928 - ac_cv_path_EGREP=$EGREP
4929 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4930 +/* end confdefs.h. */
4931 +#include <stdlib.h>
4932 +#include <stdarg.h>
4933 +#include <string.h>
4934 +#include <float.h>
4936 +int
4937 +main ()
4941 + return 0;
4943 +_ACEOF
4944 +if ac_fn_c_try_compile "$LINENO"; then :
4945 + ac_cv_header_stdc=yes
4946 +else
4947 + ac_cv_header_stdc=no
4949 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4951 +if test $ac_cv_header_stdc = yes; then
4952 + # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4953 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4954 +/* end confdefs.h. */
4955 +#include <string.h>
4957 +_ACEOF
4958 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4959 + $EGREP "memchr" >/dev/null 2>&1; then :
4961 - fi
4962 +else
4963 + ac_cv_header_stdc=no
4965 -{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4966 -echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4967 - EGREP="$ac_cv_path_EGREP"
4968 +rm -f conftest*
4972 +if test $ac_cv_header_stdc = yes; then
4973 + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4974 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4975 +/* end confdefs.h. */
4976 +#include <stdlib.h>
4978 -{ echo "$as_me:$LINENO: checking for AIX" >&5
4979 -echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4980 -cat >conftest.$ac_ext <<_ACEOF
4981 -/* confdefs.h. */
4982 _ACEOF
4983 -cat confdefs.h >>conftest.$ac_ext
4984 -cat >>conftest.$ac_ext <<_ACEOF
4985 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4986 + $EGREP "free" >/dev/null 2>&1; then :
4988 +else
4989 + ac_cv_header_stdc=no
4991 +rm -f conftest*
4995 +if test $ac_cv_header_stdc = yes; then
4996 + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4997 + if test "$cross_compiling" = yes; then :
4999 +else
5000 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5001 /* end confdefs.h. */
5002 -#ifdef _AIX
5003 - yes
5004 +#include <ctype.h>
5005 +#include <stdlib.h>
5006 +#if ((' ' & 0x0FF) == 0x020)
5007 +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5008 +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5009 +#else
5010 +# define ISLOWER(c) \
5011 + (('a' <= (c) && (c) <= 'i') \
5012 + || ('j' <= (c) && (c) <= 'r') \
5013 + || ('s' <= (c) && (c) <= 'z'))
5014 +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5015 #endif
5017 +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5018 +int
5019 +main ()
5021 + int i;
5022 + for (i = 0; i < 256; i++)
5023 + if (XOR (islower (i), ISLOWER (i))
5024 + || toupper (i) != TOUPPER (i))
5025 + return 2;
5026 + return 0;
5028 _ACEOF
5029 -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5030 - $EGREP "yes" >/dev/null 2>&1; then
5031 - { echo "$as_me:$LINENO: result: yes" >&5
5032 -echo "${ECHO_T}yes" >&6; }
5033 -cat >>confdefs.h <<\_ACEOF
5034 -#define _ALL_SOURCE 1
5035 +if ac_fn_c_try_run "$LINENO"; then :
5037 +else
5038 + ac_cv_header_stdc=no
5040 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5041 + conftest.$ac_objext conftest.beam conftest.$ac_ext
5046 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5047 +$as_echo "$ac_cv_header_stdc" >&6; }
5048 +if test $ac_cv_header_stdc = yes; then
5050 +$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5054 +# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5055 +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5056 + inttypes.h stdint.h unistd.h
5057 +do :
5058 + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5059 +ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5061 +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5062 + cat >>confdefs.h <<_ACEOF
5063 +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5064 _ACEOF
5068 +done
5072 + ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5073 +if test "x$ac_cv_header_minix_config_h" = xyes; then :
5074 + MINIX=yes
5075 else
5076 - { echo "$as_me:$LINENO: result: no" >&5
5077 -echo "${ECHO_T}no" >&6; }
5078 + MINIX=
5080 -rm -f conftest*
5083 + if test "$MINIX" = yes; then
5085 +$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5088 +$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5091 +$as_echo "#define _MINIX 1" >>confdefs.h
5093 + fi
5096 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5097 +$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5098 +if ${ac_cv_safe_to_define___extensions__+:} false; then :
5099 + $as_echo_n "(cached) " >&6
5100 +else
5101 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5102 +/* end confdefs.h. */
5104 +# define __EXTENSIONS__ 1
5105 + $ac_includes_default
5106 +int
5107 +main ()
5111 + return 0;
5113 +_ACEOF
5114 +if ac_fn_c_try_compile "$LINENO"; then :
5115 + ac_cv_safe_to_define___extensions__=yes
5116 +else
5117 + ac_cv_safe_to_define___extensions__=no
5119 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5121 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5122 +$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5123 + test $ac_cv_safe_to_define___extensions__ = yes &&
5124 + $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5126 + $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5128 + $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5130 + $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5132 + $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5137 @@ -3769,11 +4418,11 @@
5138 esac
5141 -{ echo "$as_me:$LINENO: checking for --with-suffix" >&5
5142 -echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6; }
5143 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-suffix" >&5
5144 +$as_echo_n "checking for --with-suffix... " >&6; }
5146 # Check whether --with-suffix was given.
5147 -if test "${with_suffix+set}" = set; then
5148 +if test "${with_suffix+set}" = set; then :
5149 withval=$with_suffix;
5150 case $withval in
5151 no) EXEEXT=;;
5152 @@ -3782,26 +4431,26 @@
5153 esac
5156 -{ echo "$as_me:$LINENO: result: $EXEEXT" >&5
5157 -echo "${ECHO_T}$EXEEXT" >&6; }
5158 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXEEXT" >&5
5159 +$as_echo "$EXEEXT" >&6; }
5161 # Test whether we're running on a non-case-sensitive system, in which
5162 # case we give a warning if no ext is given
5164 -{ echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
5165 -echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6; }
5166 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for case-insensitive build directory" >&5
5167 +$as_echo_n "checking for case-insensitive build directory... " >&6; }
5168 if test ! -d CaseSensitiveTestDir; then
5169 mkdir CaseSensitiveTestDir
5172 if test -d casesensitivetestdir
5173 then
5174 - { echo "$as_me:$LINENO: result: yes" >&5
5175 -echo "${ECHO_T}yes" >&6; }
5176 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5177 +$as_echo "yes" >&6; }
5178 BUILDEXEEXT=.exe
5179 else
5180 - { echo "$as_me:$LINENO: result: no" >&5
5181 -echo "${ECHO_T}no" >&6; }
5182 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5183 +$as_echo "no" >&6; }
5184 BUILDEXEEXT=$EXEEXT
5186 rmdir CaseSensitiveTestDir
5187 @@ -3825,23 +4474,21 @@
5188 SunOS*)
5189 # Some functions have a prototype only with that define, e.g. confstr
5191 -cat >>confdefs.h <<\_ACEOF
5192 -#define __EXTENSIONS__ 1
5193 -_ACEOF
5194 +$as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5197 esac
5201 -{ echo "$as_me:$LINENO: checking LIBRARY" >&5
5202 -echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6; }
5203 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY" >&5
5204 +$as_echo_n "checking LIBRARY... " >&6; }
5205 if test -z "$LIBRARY"
5206 then
5207 LIBRARY='libpython$(VERSION).a'
5209 -{ echo "$as_me:$LINENO: result: $LIBRARY" >&5
5210 -echo "${ECHO_T}$LIBRARY" >&6; }
5211 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBRARY" >&5
5212 +$as_echo "$LIBRARY" >&6; }
5214 # LDLIBRARY is the name of the library to link against (as opposed to the
5215 # name of the library into which to insert object files). BLDLIBRARY is also
5216 @@ -3876,8 +4523,8 @@
5217 # This is altered for AIX in order to build the export list before
5218 # linking.
5220 -{ echo "$as_me:$LINENO: checking LINKCC" >&5
5221 -echo $ECHO_N "checking LINKCC... $ECHO_C" >&6; }
5222 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKCC" >&5
5223 +$as_echo_n "checking LINKCC... " >&6; }
5224 if test -z "$LINKCC"
5225 then
5226 LINKCC='$(PURIFY) $(MAINCC)'
5227 @@ -3893,13 +4540,13 @@
5228 LINKCC="$LINKCC -L/usr/lib/ia64l64";;
5229 esac
5231 -{ echo "$as_me:$LINENO: result: $LINKCC" >&5
5232 -echo "${ECHO_T}$LINKCC" >&6; }
5233 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKCC" >&5
5234 +$as_echo "$LINKCC" >&6; }
5236 -{ echo "$as_me:$LINENO: checking for --enable-shared" >&5
5237 -echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6; }
5238 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-shared" >&5
5239 +$as_echo_n "checking for --enable-shared... " >&6; }
5240 # Check whether --enable-shared was given.
5241 -if test "${enable_shared+set}" = set; then
5242 +if test "${enable_shared+set}" = set; then :
5243 enableval=$enable_shared;
5246 @@ -3913,64 +4560,36 @@
5247 enable_shared="no";;
5248 esac
5250 -{ echo "$as_me:$LINENO: result: $enable_shared" >&5
5251 -echo "${ECHO_T}$enable_shared" >&6; }
5252 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
5253 +$as_echo "$enable_shared" >&6; }
5255 -{ echo "$as_me:$LINENO: checking for --enable-profiling" >&5
5256 -echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6; }
5257 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-profiling" >&5
5258 +$as_echo_n "checking for --enable-profiling... " >&6; }
5259 # Check whether --enable-profiling was given.
5260 -if test "${enable_profiling+set}" = set; then
5261 +if test "${enable_profiling+set}" = set; then :
5262 enableval=$enable_profiling; ac_save_cc="$CC"
5263 CC="$CC -pg"
5264 - if test "$cross_compiling" = yes; then
5265 + if test "$cross_compiling" = yes; then :
5266 ac_enable_profiling="no"
5267 else
5268 - cat >conftest.$ac_ext <<_ACEOF
5269 -/* confdefs.h. */
5270 -_ACEOF
5271 -cat confdefs.h >>conftest.$ac_ext
5272 -cat >>conftest.$ac_ext <<_ACEOF
5273 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5274 /* end confdefs.h. */
5275 int main() { return 0; }
5276 _ACEOF
5277 -rm -f conftest$ac_exeext
5278 -if { (ac_try="$ac_link"
5279 -case "(($ac_try" in
5280 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5281 - *) ac_try_echo=$ac_try;;
5282 -esac
5283 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5284 - (eval "$ac_link") 2>&5
5285 - ac_status=$?
5286 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5288 - { (case "(($ac_try" in
5289 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5290 - *) ac_try_echo=$ac_try;;
5291 -esac
5292 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5293 - (eval "$ac_try") 2>&5
5294 - ac_status=$?
5295 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296 - (exit $ac_status); }; }; then
5297 +if ac_fn_c_try_run "$LINENO"; then :
5298 ac_enable_profiling="yes"
5299 else
5300 - echo "$as_me: program exited with status $ac_status" >&5
5301 -echo "$as_me: failed program was:" >&5
5302 -sed 's/^/| /' conftest.$ac_ext >&5
5304 -( exit $ac_status )
5305 -ac_enable_profiling="no"
5306 + ac_enable_profiling="no"
5308 -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5309 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5310 + conftest.$ac_objext conftest.beam conftest.$ac_ext
5314 CC="$ac_save_cc"
5317 -{ echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
5318 -echo "${ECHO_T}$ac_enable_profiling" >&6; }
5319 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_profiling" >&5
5320 +$as_echo "$ac_enable_profiling" >&6; }
5322 case "$ac_enable_profiling" in
5323 "yes")
5324 @@ -3979,8 +4598,8 @@
5326 esac
5328 -{ echo "$as_me:$LINENO: checking LDLIBRARY" >&5
5329 -echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6; }
5330 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LDLIBRARY" >&5
5331 +$as_echo_n "checking LDLIBRARY... " >&6; }
5333 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
5334 # library that we build, but we do not want to link against it (we
5335 @@ -4000,9 +4619,7 @@
5336 # Other platforms follow
5337 if test $enable_shared = "yes"; then
5339 -cat >>confdefs.h <<\_ACEOF
5340 -#define Py_ENABLE_SHARED 1
5341 -_ACEOF
5342 +$as_echo "#define Py_ENABLE_SHARED 1" >>confdefs.h
5344 case $ac_sys_system in
5345 BeOS*)
5346 @@ -4061,16 +4678,16 @@
5347 esac
5350 -{ echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
5351 -echo "${ECHO_T}$LDLIBRARY" >&6; }
5352 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDLIBRARY" >&5
5353 +$as_echo "$LDLIBRARY" >&6; }
5355 if test -n "$ac_tool_prefix"; then
5356 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5357 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5358 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5359 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5360 -if test "${ac_cv_prog_RANLIB+set}" = set; then
5361 - echo $ECHO_N "(cached) $ECHO_C" >&6
5362 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5363 +$as_echo_n "checking for $ac_word... " >&6; }
5364 +if ${ac_cv_prog_RANLIB+:} false; then :
5365 + $as_echo_n "(cached) " >&6
5366 else
5367 if test -n "$RANLIB"; then
5368 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5369 @@ -4080,25 +4697,25 @@
5371 IFS=$as_save_IFS
5372 test -z "$as_dir" && as_dir=.
5373 - for ac_exec_ext in '' $ac_executable_extensions; do
5374 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5375 + for ac_exec_ext in '' $ac_executable_extensions; do
5376 + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5377 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5378 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5379 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5380 break 2
5382 done
5383 -done
5384 + done
5385 IFS=$as_save_IFS
5389 RANLIB=$ac_cv_prog_RANLIB
5390 if test -n "$RANLIB"; then
5391 - { echo "$as_me:$LINENO: result: $RANLIB" >&5
5392 -echo "${ECHO_T}$RANLIB" >&6; }
5393 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5394 +$as_echo "$RANLIB" >&6; }
5395 else
5396 - { echo "$as_me:$LINENO: result: no" >&5
5397 -echo "${ECHO_T}no" >&6; }
5398 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5399 +$as_echo "no" >&6; }
5403 @@ -4107,10 +4724,10 @@
5404 ac_ct_RANLIB=$RANLIB
5405 # Extract the first word of "ranlib", so it can be a program name with args.
5406 set dummy ranlib; ac_word=$2
5407 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5408 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5409 -if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5410 - echo $ECHO_N "(cached) $ECHO_C" >&6
5411 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5412 +$as_echo_n "checking for $ac_word... " >&6; }
5413 +if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5414 + $as_echo_n "(cached) " >&6
5415 else
5416 if test -n "$ac_ct_RANLIB"; then
5417 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5418 @@ -4120,25 +4737,25 @@
5420 IFS=$as_save_IFS
5421 test -z "$as_dir" && as_dir=.
5422 - for ac_exec_ext in '' $ac_executable_extensions; do
5423 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5424 + for ac_exec_ext in '' $ac_executable_extensions; do
5425 + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5426 ac_cv_prog_ac_ct_RANLIB="ranlib"
5427 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5428 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5429 break 2
5431 done
5432 -done
5433 + done
5434 IFS=$as_save_IFS
5438 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5439 if test -n "$ac_ct_RANLIB"; then
5440 - { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5441 -echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5442 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5443 +$as_echo "$ac_ct_RANLIB" >&6; }
5444 else
5445 - { echo "$as_me:$LINENO: result: no" >&5
5446 -echo "${ECHO_T}no" >&6; }
5447 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5448 +$as_echo "no" >&6; }
5451 if test "x$ac_ct_RANLIB" = x; then
5452 @@ -4146,12 +4763,8 @@
5453 else
5454 case $cross_compiling:$ac_tool_warned in
5455 yes:)
5456 -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5457 -whose name does not start with the host triplet. If you think this
5458 -configuration is useful to you, please write to autoconf@gnu.org." >&5
5459 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5460 -whose name does not start with the host triplet. If you think this
5461 -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5462 +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5463 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5464 ac_tool_warned=yes ;;
5465 esac
5466 RANLIB=$ac_ct_RANLIB
5467 @@ -4165,10 +4778,10 @@
5469 # Extract the first word of "$ac_prog", so it can be a program name with args.
5470 set dummy $ac_prog; ac_word=$2
5471 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5472 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5473 -if test "${ac_cv_prog_AR+set}" = set; then
5474 - echo $ECHO_N "(cached) $ECHO_C" >&6
5475 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5476 +$as_echo_n "checking for $ac_word... " >&6; }
5477 +if ${ac_cv_prog_AR+:} false; then :
5478 + $as_echo_n "(cached) " >&6
5479 else
5480 if test -n "$AR"; then
5481 ac_cv_prog_AR="$AR" # Let the user override the test.
5482 @@ -4178,25 +4791,25 @@
5484 IFS=$as_save_IFS
5485 test -z "$as_dir" && as_dir=.
5486 - for ac_exec_ext in '' $ac_executable_extensions; do
5487 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5488 + for ac_exec_ext in '' $ac_executable_extensions; do
5489 + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5490 ac_cv_prog_AR="$ac_prog"
5491 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5492 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5493 break 2
5495 done
5496 -done
5497 + done
5498 IFS=$as_save_IFS
5502 AR=$ac_cv_prog_AR
5503 if test -n "$AR"; then
5504 - { echo "$as_me:$LINENO: result: $AR" >&5
5505 -echo "${ECHO_T}$AR" >&6; }
5506 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5507 +$as_echo "$AR" >&6; }
5508 else
5509 - { echo "$as_me:$LINENO: result: no" >&5
5510 -echo "${ECHO_T}no" >&6; }
5511 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5512 +$as_echo "no" >&6; }
5516 @@ -4208,10 +4821,10 @@
5518 # Extract the first word of "svnversion", so it can be a program name with args.
5519 set dummy svnversion; ac_word=$2
5520 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5521 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5522 -if test "${ac_cv_prog_SVNVERSION+set}" = set; then
5523 - echo $ECHO_N "(cached) $ECHO_C" >&6
5524 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5525 +$as_echo_n "checking for $ac_word... " >&6; }
5526 +if ${ac_cv_prog_SVNVERSION+:} false; then :
5527 + $as_echo_n "(cached) " >&6
5528 else
5529 if test -n "$SVNVERSION"; then
5530 ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test.
5531 @@ -4221,14 +4834,14 @@
5533 IFS=$as_save_IFS
5534 test -z "$as_dir" && as_dir=.
5535 - for ac_exec_ext in '' $ac_executable_extensions; do
5536 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5537 + for ac_exec_ext in '' $ac_executable_extensions; do
5538 + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5539 ac_cv_prog_SVNVERSION="found"
5540 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5541 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5542 break 2
5544 done
5545 -done
5546 + done
5547 IFS=$as_save_IFS
5549 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION="not-found"
5550 @@ -4236,11 +4849,11 @@
5552 SVNVERSION=$ac_cv_prog_SVNVERSION
5553 if test -n "$SVNVERSION"; then
5554 - { echo "$as_me:$LINENO: result: $SVNVERSION" >&5
5555 -echo "${ECHO_T}$SVNVERSION" >&6; }
5556 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVNVERSION" >&5
5557 +$as_echo "$SVNVERSION" >&6; }
5558 else
5559 - { echo "$as_me:$LINENO: result: no" >&5
5560 -echo "${ECHO_T}no" >&6; }
5561 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5562 +$as_echo "no" >&6; }
5566 @@ -4276,9 +4889,7 @@
5568 done
5569 if test -z "$ac_aux_dir"; then
5570 - { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
5571 -echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
5572 - { (exit 1); exit 1; }; }
5573 + as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
5576 # These three variables are undocumented and unsupported,
5577 @@ -4303,22 +4914,23 @@
5578 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5579 # OS/2's system install, which has a completely different semantic
5580 # ./install, which can be erroneously created by make from ./install.sh.
5581 -{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5582 -echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5583 +# Reject install programs that cannot install multiple files.
5584 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5585 +$as_echo_n "checking for a BSD-compatible install... " >&6; }
5586 if test -z "$INSTALL"; then
5587 -if test "${ac_cv_path_install+set}" = set; then
5588 - echo $ECHO_N "(cached) $ECHO_C" >&6
5589 +if ${ac_cv_path_install+:} false; then :
5590 + $as_echo_n "(cached) " >&6
5591 else
5592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5593 for as_dir in $PATH
5595 IFS=$as_save_IFS
5596 test -z "$as_dir" && as_dir=.
5597 - # Account for people who put trailing slashes in PATH elements.
5598 -case $as_dir/ in
5599 - ./ | .// | /cC/* | \
5600 + # Account for people who put trailing slashes in PATH elements.
5601 +case $as_dir/ in #((
5602 + ./ | .// | /[cC]/* | \
5603 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5604 - ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5605 + ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5606 /usr/ucb/* ) ;;
5608 # OSF1 and SCO ODT 3.0 have their own names for install.
5609 @@ -4326,7 +4938,7 @@
5610 # by default.
5611 for ac_prog in ginstall scoinst install; do
5612 for ac_exec_ext in '' $ac_executable_extensions; do
5613 - if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5614 + if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5615 if test $ac_prog = install &&
5616 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5617 # AIX install. It has an incompatible calling convention.
5618 @@ -4336,17 +4948,29 @@
5619 # program-specific install script used by HP pwplus--don't use.
5621 else
5622 - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5623 - break 3
5624 + rm -rf conftest.one conftest.two conftest.dir
5625 + echo one > conftest.one
5626 + echo two > conftest.two
5627 + mkdir conftest.dir
5628 + if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5629 + test -s conftest.one && test -s conftest.two &&
5630 + test -s conftest.dir/conftest.one &&
5631 + test -s conftest.dir/conftest.two
5632 + then
5633 + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5634 + break 3
5635 + fi
5638 done
5639 done
5641 esac
5642 -done
5644 + done
5645 IFS=$as_save_IFS
5647 +rm -rf conftest.one conftest.two conftest.dir
5650 if test "${ac_cv_path_install+set}" = set; then
5651 @@ -4359,8 +4983,8 @@
5652 INSTALL=$ac_install_sh
5655 -{ echo "$as_me:$LINENO: result: $INSTALL" >&5
5656 -echo "${ECHO_T}$INSTALL" >&6; }
5657 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5658 +$as_echo "$INSTALL" >&6; }
5660 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5661 # It thinks the first close brace ends the variable substitution.
5662 @@ -4383,28 +5007,26 @@
5665 # Check for --with-pydebug
5666 -{ echo "$as_me:$LINENO: checking for --with-pydebug" >&5
5667 -echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6; }
5668 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pydebug" >&5
5669 +$as_echo_n "checking for --with-pydebug... " >&6; }
5671 # Check whether --with-pydebug was given.
5672 -if test "${with_pydebug+set}" = set; then
5673 +if test "${with_pydebug+set}" = set; then :
5674 withval=$with_pydebug;
5675 if test "$withval" != no
5676 then
5678 -cat >>confdefs.h <<\_ACEOF
5679 -#define Py_DEBUG 1
5680 -_ACEOF
5681 +$as_echo "#define Py_DEBUG 1" >>confdefs.h
5683 - { echo "$as_me:$LINENO: result: yes" >&5
5684 -echo "${ECHO_T}yes" >&6; };
5685 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5686 +$as_echo "yes" >&6; };
5687 Py_DEBUG='true'
5688 -else { echo "$as_me:$LINENO: result: no" >&5
5689 -echo "${ECHO_T}no" >&6; }; Py_DEBUG='false'
5690 +else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5691 +$as_echo "no" >&6; }; Py_DEBUG='false'
5693 else
5694 - { echo "$as_me:$LINENO: result: no" >&5
5695 -echo "${ECHO_T}no" >&6; }
5696 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5697 +$as_echo "no" >&6; }
5701 @@ -4477,57 +5099,29 @@
5702 # Python violates C99 rules, by casting between incompatible
5703 # pointer types. GCC may generate bad code as a result of that,
5704 # so use -fno-strict-aliasing if supported.
5705 - { echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
5706 -echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6; }
5707 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -fno-strict-aliasing" >&5
5708 +$as_echo_n "checking whether $CC accepts -fno-strict-aliasing... " >&6; }
5709 ac_save_cc="$CC"
5710 CC="$CC -fno-strict-aliasing"
5711 - if test "$cross_compiling" = yes; then
5712 + if test "$cross_compiling" = yes; then :
5713 ac_cv_no_strict_aliasing_ok=no
5714 else
5715 - cat >conftest.$ac_ext <<_ACEOF
5716 -/* confdefs.h. */
5717 -_ACEOF
5718 -cat confdefs.h >>conftest.$ac_ext
5719 -cat >>conftest.$ac_ext <<_ACEOF
5720 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5721 /* end confdefs.h. */
5722 int main() { return 0; }
5723 _ACEOF
5724 -rm -f conftest$ac_exeext
5725 -if { (ac_try="$ac_link"
5726 -case "(($ac_try" in
5727 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5728 - *) ac_try_echo=$ac_try;;
5729 -esac
5730 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5731 - (eval "$ac_link") 2>&5
5732 - ac_status=$?
5733 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
5734 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5735 - { (case "(($ac_try" in
5736 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5737 - *) ac_try_echo=$ac_try;;
5738 -esac
5739 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5740 - (eval "$ac_try") 2>&5
5741 - ac_status=$?
5742 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743 - (exit $ac_status); }; }; then
5744 +if ac_fn_c_try_run "$LINENO"; then :
5745 ac_cv_no_strict_aliasing_ok=yes
5746 else
5747 - echo "$as_me: program exited with status $ac_status" >&5
5748 -echo "$as_me: failed program was:" >&5
5749 -sed 's/^/| /' conftest.$ac_ext >&5
5751 -( exit $ac_status )
5752 -ac_cv_no_strict_aliasing_ok=no
5753 + ac_cv_no_strict_aliasing_ok=no
5755 -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5756 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5757 + conftest.$ac_objext conftest.beam conftest.$ac_ext
5761 CC="$ac_save_cc"
5762 - { echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
5763 -echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6; }
5764 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_no_strict_aliasing_ok" >&5
5765 +$as_echo "$ac_cv_no_strict_aliasing_ok" >&6; }
5766 if test $ac_cv_no_strict_aliasing_ok = yes
5767 then
5768 BASECFLAGS="$BASECFLAGS -fno-strict-aliasing"
5769 @@ -4582,62 +5176,34 @@
5770 ac_cv_opt_olimit_ok=no
5773 -{ echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
5774 -echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6; }
5775 -if test "${ac_cv_opt_olimit_ok+set}" = set; then
5776 - echo $ECHO_N "(cached) $ECHO_C" >&6
5777 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -OPT:Olimit=0" >&5
5778 +$as_echo_n "checking whether $CC accepts -OPT:Olimit=0... " >&6; }
5779 +if ${ac_cv_opt_olimit_ok+:} false; then :
5780 + $as_echo_n "(cached) " >&6
5781 else
5782 ac_save_cc="$CC"
5783 CC="$CC -OPT:Olimit=0"
5784 -if test "$cross_compiling" = yes; then
5785 +if test "$cross_compiling" = yes; then :
5786 ac_cv_opt_olimit_ok=no
5787 else
5788 - cat >conftest.$ac_ext <<_ACEOF
5789 -/* confdefs.h. */
5790 -_ACEOF
5791 -cat confdefs.h >>conftest.$ac_ext
5792 -cat >>conftest.$ac_ext <<_ACEOF
5793 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5794 /* end confdefs.h. */
5795 int main() { return 0; }
5796 _ACEOF
5797 -rm -f conftest$ac_exeext
5798 -if { (ac_try="$ac_link"
5799 -case "(($ac_try" in
5800 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5801 - *) ac_try_echo=$ac_try;;
5802 -esac
5803 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5804 - (eval "$ac_link") 2>&5
5805 - ac_status=$?
5806 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5808 - { (case "(($ac_try" in
5809 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5810 - *) ac_try_echo=$ac_try;;
5811 -esac
5812 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5813 - (eval "$ac_try") 2>&5
5814 - ac_status=$?
5815 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816 - (exit $ac_status); }; }; then
5817 +if ac_fn_c_try_run "$LINENO"; then :
5818 ac_cv_opt_olimit_ok=yes
5819 else
5820 - echo "$as_me: program exited with status $ac_status" >&5
5821 -echo "$as_me: failed program was:" >&5
5822 -sed 's/^/| /' conftest.$ac_ext >&5
5824 -( exit $ac_status )
5825 -ac_cv_opt_olimit_ok=no
5826 + ac_cv_opt_olimit_ok=no
5828 -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5829 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5830 + conftest.$ac_objext conftest.beam conftest.$ac_ext
5834 CC="$ac_save_cc"
5837 -{ echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
5838 -echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6; }
5839 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_opt_olimit_ok" >&5
5840 +$as_echo "$ac_cv_opt_olimit_ok" >&6; }
5841 if test $ac_cv_opt_olimit_ok = yes; then
5842 case $ac_sys_system in
5843 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
5844 @@ -4650,62 +5216,34 @@
5846 esac
5847 else
5848 - { echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
5849 -echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6; }
5850 - if test "${ac_cv_olimit_ok+set}" = set; then
5851 - echo $ECHO_N "(cached) $ECHO_C" >&6
5852 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Olimit 1500" >&5
5853 +$as_echo_n "checking whether $CC accepts -Olimit 1500... " >&6; }
5854 + if ${ac_cv_olimit_ok+:} false; then :
5855 + $as_echo_n "(cached) " >&6
5856 else
5857 ac_save_cc="$CC"
5858 CC="$CC -Olimit 1500"
5859 - if test "$cross_compiling" = yes; then
5860 + if test "$cross_compiling" = yes; then :
5861 ac_cv_olimit_ok=no
5862 else
5863 - cat >conftest.$ac_ext <<_ACEOF
5864 -/* confdefs.h. */
5865 -_ACEOF
5866 -cat confdefs.h >>conftest.$ac_ext
5867 -cat >>conftest.$ac_ext <<_ACEOF
5868 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5869 /* end confdefs.h. */
5870 int main() { return 0; }
5871 _ACEOF
5872 -rm -f conftest$ac_exeext
5873 -if { (ac_try="$ac_link"
5874 -case "(($ac_try" in
5875 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5876 - *) ac_try_echo=$ac_try;;
5877 -esac
5878 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5879 - (eval "$ac_link") 2>&5
5880 - ac_status=$?
5881 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5883 - { (case "(($ac_try" in
5884 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5885 - *) ac_try_echo=$ac_try;;
5886 -esac
5887 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5888 - (eval "$ac_try") 2>&5
5889 - ac_status=$?
5890 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
5891 - (exit $ac_status); }; }; then
5892 +if ac_fn_c_try_run "$LINENO"; then :
5893 ac_cv_olimit_ok=yes
5894 else
5895 - echo "$as_me: program exited with status $ac_status" >&5
5896 -echo "$as_me: failed program was:" >&5
5897 -sed 's/^/| /' conftest.$ac_ext >&5
5899 -( exit $ac_status )
5900 -ac_cv_olimit_ok=no
5901 + ac_cv_olimit_ok=no
5903 -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5904 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5905 + conftest.$ac_objext conftest.beam conftest.$ac_ext
5909 CC="$ac_save_cc"
5912 - { echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
5913 -echo "${ECHO_T}$ac_cv_olimit_ok" >&6; }
5914 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_olimit_ok" >&5
5915 +$as_echo "$ac_cv_olimit_ok" >&6; }
5916 if test $ac_cv_olimit_ok = yes; then
5917 BASECFLAGS="$BASECFLAGS -Olimit 1500"
5919 @@ -4716,19 +5254,15 @@
5920 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
5921 # So we have to see first whether pthreads are available without
5922 # options before we can check whether -Kpthread improves anything.
5923 -{ echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
5924 -echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6; }
5925 -if test "${ac_cv_pthread_is_default+set}" = set; then
5926 - echo $ECHO_N "(cached) $ECHO_C" >&6
5927 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads are available without options" >&5
5928 +$as_echo_n "checking whether pthreads are available without options... " >&6; }
5929 +if ${ac_cv_pthread_is_default+:} false; then :
5930 + $as_echo_n "(cached) " >&6
5931 else
5932 - if test "$cross_compiling" = yes; then
5933 + if test "$cross_compiling" = yes; then :
5934 ac_cv_pthread_is_default=no
5935 else
5936 - cat >conftest.$ac_ext <<_ACEOF
5937 -/* confdefs.h. */
5938 -_ACEOF
5939 -cat confdefs.h >>conftest.$ac_ext
5940 -cat >>conftest.$ac_ext <<_ACEOF
5941 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5942 /* end confdefs.h. */
5944 #include <pthread.h>
5945 @@ -4744,48 +5278,24 @@
5948 _ACEOF
5949 -rm -f conftest$ac_exeext
5950 -if { (ac_try="$ac_link"
5951 -case "(($ac_try" in
5952 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5953 - *) ac_try_echo=$ac_try;;
5954 -esac
5955 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5956 - (eval "$ac_link") 2>&5
5957 - ac_status=$?
5958 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5960 - { (case "(($ac_try" in
5961 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5962 - *) ac_try_echo=$ac_try;;
5963 -esac
5964 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5965 - (eval "$ac_try") 2>&5
5966 - ac_status=$?
5967 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
5968 - (exit $ac_status); }; }; then
5969 +if ac_fn_c_try_run "$LINENO"; then :
5971 ac_cv_pthread_is_default=yes
5972 ac_cv_kthread=no
5973 ac_cv_pthread=no
5975 else
5976 - echo "$as_me: program exited with status $ac_status" >&5
5977 -echo "$as_me: failed program was:" >&5
5978 -sed 's/^/| /' conftest.$ac_ext >&5
5980 -( exit $ac_status )
5981 -ac_cv_pthread_is_default=no
5982 + ac_cv_pthread_is_default=no
5984 -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5985 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5986 + conftest.$ac_objext conftest.beam conftest.$ac_ext
5993 -{ echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
5994 -echo "${ECHO_T}$ac_cv_pthread_is_default" >&6; }
5995 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_is_default" >&5
5996 +$as_echo "$ac_cv_pthread_is_default" >&6; }
5999 if test $ac_cv_pthread_is_default = yes
6000 @@ -4797,21 +5307,17 @@
6001 # Some compilers won't report that they do not support -Kpthread,
6002 # so we need to run a program to see whether it really made the
6003 # function available.
6004 -{ echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
6005 -echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6; }
6006 -if test "${ac_cv_kpthread+set}" = set; then
6007 - echo $ECHO_N "(cached) $ECHO_C" >&6
6008 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kpthread" >&5
6009 +$as_echo_n "checking whether $CC accepts -Kpthread... " >&6; }
6010 +if ${ac_cv_kpthread+:} false; then :
6011 + $as_echo_n "(cached) " >&6
6012 else
6013 ac_save_cc="$CC"
6014 CC="$CC -Kpthread"
6015 -if test "$cross_compiling" = yes; then
6016 +if test "$cross_compiling" = yes; then :
6017 ac_cv_kpthread=no
6018 else
6019 - cat >conftest.$ac_ext <<_ACEOF
6020 -/* confdefs.h. */
6021 -_ACEOF
6022 -cat confdefs.h >>conftest.$ac_ext
6023 -cat >>conftest.$ac_ext <<_ACEOF
6024 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6025 /* end confdefs.h. */
6027 #include <pthread.h>
6028 @@ -4827,44 +5333,20 @@
6031 _ACEOF
6032 -rm -f conftest$ac_exeext
6033 -if { (ac_try="$ac_link"
6034 -case "(($ac_try" in
6035 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6036 - *) ac_try_echo=$ac_try;;
6037 -esac
6038 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6039 - (eval "$ac_link") 2>&5
6040 - ac_status=$?
6041 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
6042 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6043 - { (case "(($ac_try" in
6044 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6045 - *) ac_try_echo=$ac_try;;
6046 -esac
6047 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6048 - (eval "$ac_try") 2>&5
6049 - ac_status=$?
6050 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051 - (exit $ac_status); }; }; then
6052 +if ac_fn_c_try_run "$LINENO"; then :
6053 ac_cv_kpthread=yes
6054 else
6055 - echo "$as_me: program exited with status $ac_status" >&5
6056 -echo "$as_me: failed program was:" >&5
6057 -sed 's/^/| /' conftest.$ac_ext >&5
6059 -( exit $ac_status )
6060 -ac_cv_kpthread=no
6061 + ac_cv_kpthread=no
6063 -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6064 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6065 + conftest.$ac_objext conftest.beam conftest.$ac_ext
6069 CC="$ac_save_cc"
6072 -{ echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
6073 -echo "${ECHO_T}$ac_cv_kpthread" >&6; }
6074 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kpthread" >&5
6075 +$as_echo "$ac_cv_kpthread" >&6; }
6078 if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
6079 @@ -4874,21 +5356,17 @@
6080 # Some compilers won't report that they do not support -Kthread,
6081 # so we need to run a program to see whether it really made the
6082 # function available.
6083 -{ echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
6084 -echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6; }
6085 -if test "${ac_cv_kthread+set}" = set; then
6086 - echo $ECHO_N "(cached) $ECHO_C" >&6
6087 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kthread" >&5
6088 +$as_echo_n "checking whether $CC accepts -Kthread... " >&6; }
6089 +if ${ac_cv_kthread+:} false; then :
6090 + $as_echo_n "(cached) " >&6
6091 else
6092 ac_save_cc="$CC"
6093 CC="$CC -Kthread"
6094 -if test "$cross_compiling" = yes; then
6095 +if test "$cross_compiling" = yes; then :
6096 ac_cv_kthread=no
6097 else
6098 - cat >conftest.$ac_ext <<_ACEOF
6099 -/* confdefs.h. */
6100 -_ACEOF
6101 -cat confdefs.h >>conftest.$ac_ext
6102 -cat >>conftest.$ac_ext <<_ACEOF
6103 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6104 /* end confdefs.h. */
6106 #include <pthread.h>
6107 @@ -4904,44 +5382,20 @@
6110 _ACEOF
6111 -rm -f conftest$ac_exeext
6112 -if { (ac_try="$ac_link"
6113 -case "(($ac_try" in
6114 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6115 - *) ac_try_echo=$ac_try;;
6116 -esac
6117 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6118 - (eval "$ac_link") 2>&5
6119 - ac_status=$?
6120 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
6121 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6122 - { (case "(($ac_try" in
6123 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6124 - *) ac_try_echo=$ac_try;;
6125 -esac
6126 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6127 - (eval "$ac_try") 2>&5
6128 - ac_status=$?
6129 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
6130 - (exit $ac_status); }; }; then
6131 +if ac_fn_c_try_run "$LINENO"; then :
6132 ac_cv_kthread=yes
6133 else
6134 - echo "$as_me: program exited with status $ac_status" >&5
6135 -echo "$as_me: failed program was:" >&5
6136 -sed 's/^/| /' conftest.$ac_ext >&5
6138 -( exit $ac_status )
6139 -ac_cv_kthread=no
6140 + ac_cv_kthread=no
6142 -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6143 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6144 + conftest.$ac_objext conftest.beam conftest.$ac_ext
6148 CC="$ac_save_cc"
6151 -{ echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
6152 -echo "${ECHO_T}$ac_cv_kthread" >&6; }
6153 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kthread" >&5
6154 +$as_echo "$ac_cv_kthread" >&6; }
6157 if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
6158 @@ -4951,21 +5405,17 @@
6159 # Some compilers won't report that they do not support -pthread,
6160 # so we need to run a program to see whether it really made the
6161 # function available.
6162 -{ echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
6163 -echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6; }
6164 -if test "${ac_cv_thread+set}" = set; then
6165 - echo $ECHO_N "(cached) $ECHO_C" >&6
6166 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -pthread" >&5
6167 +$as_echo_n "checking whether $CC accepts -pthread... " >&6; }
6168 +if ${ac_cv_thread+:} false; then :
6169 + $as_echo_n "(cached) " >&6
6170 else
6171 ac_save_cc="$CC"
6172 CC="$CC -pthread"
6173 -if test "$cross_compiling" = yes; then
6174 +if test "$cross_compiling" = yes; then :
6175 ac_cv_pthread=no
6176 else
6177 - cat >conftest.$ac_ext <<_ACEOF
6178 -/* confdefs.h. */
6179 -_ACEOF
6180 -cat confdefs.h >>conftest.$ac_ext
6181 -cat >>conftest.$ac_ext <<_ACEOF
6182 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6183 /* end confdefs.h. */
6185 #include <pthread.h>
6186 @@ -4981,44 +5431,20 @@
6189 _ACEOF
6190 -rm -f conftest$ac_exeext
6191 -if { (ac_try="$ac_link"
6192 -case "(($ac_try" in
6193 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6194 - *) ac_try_echo=$ac_try;;
6195 -esac
6196 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6197 - (eval "$ac_link") 2>&5
6198 - ac_status=$?
6199 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
6200 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6201 - { (case "(($ac_try" in
6202 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6203 - *) ac_try_echo=$ac_try;;
6204 -esac
6205 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6206 - (eval "$ac_try") 2>&5
6207 - ac_status=$?
6208 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
6209 - (exit $ac_status); }; }; then
6210 +if ac_fn_c_try_run "$LINENO"; then :
6211 ac_cv_pthread=yes
6212 else
6213 - echo "$as_me: program exited with status $ac_status" >&5
6214 -echo "$as_me: failed program was:" >&5
6215 -sed 's/^/| /' conftest.$ac_ext >&5
6217 -( exit $ac_status )
6218 -ac_cv_pthread=no
6219 + ac_cv_pthread=no
6221 -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6222 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6223 + conftest.$ac_objext conftest.beam conftest.$ac_ext
6227 CC="$ac_save_cc"
6230 -{ echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
6231 -echo "${ECHO_T}$ac_cv_pthread" >&6; }
6232 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread" >&5
6233 +$as_echo "$ac_cv_pthread" >&6; }
6236 # If we have set a CC compiler flag for thread support then
6237 @@ -5026,8 +5452,8 @@
6238 ac_cv_cxx_thread=no
6239 if test ! -z "$CXX"
6240 then
6241 -{ echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
6242 -echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6; }
6243 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX also accepts flags for thread support" >&5
6244 +$as_echo_n "checking whether $CXX also accepts flags for thread support... " >&6; }
6245 ac_save_cxx="$CXX"
6247 if test "$ac_cv_kpthread" = "yes"
6248 @@ -5057,23 +5483,19 @@
6250 rm -fr conftest*
6252 -{ echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
6253 -echo "${ECHO_T}$ac_cv_cxx_thread" >&6; }
6254 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_thread" >&5
6255 +$as_echo "$ac_cv_cxx_thread" >&6; }
6257 CXX="$ac_save_cxx"
6260 # checks for header files
6261 -{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6262 -echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6263 -if test "${ac_cv_header_stdc+set}" = set; then
6264 - echo $ECHO_N "(cached) $ECHO_C" >&6
6265 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6266 +$as_echo_n "checking for ANSI C header files... " >&6; }
6267 +if ${ac_cv_header_stdc+:} false; then :
6268 + $as_echo_n "(cached) " >&6
6269 else
6270 - cat >conftest.$ac_ext <<_ACEOF
6271 -/* confdefs.h. */
6272 -_ACEOF
6273 -cat confdefs.h >>conftest.$ac_ext
6274 -cat >>conftest.$ac_ext <<_ACEOF
6275 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6276 /* end confdefs.h. */
6277 #include <stdlib.h>
6278 #include <stdarg.h>
6279 @@ -5088,47 +5510,23 @@
6280 return 0;
6282 _ACEOF
6283 -rm -f conftest.$ac_objext
6284 -if { (ac_try="$ac_compile"
6285 -case "(($ac_try" in
6286 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6287 - *) ac_try_echo=$ac_try;;
6288 -esac
6289 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6290 - (eval "$ac_compile") 2>conftest.er1
6291 - ac_status=$?
6292 - grep -v '^ *+' conftest.er1 >conftest.err
6293 - rm -f conftest.er1
6294 - cat conftest.err >&5
6295 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296 - (exit $ac_status); } && {
6297 - test -z "$ac_c_werror_flag" ||
6298 - test ! -s conftest.err
6299 - } && test -s conftest.$ac_objext; then
6300 +if ac_fn_c_try_compile "$LINENO"; then :
6301 ac_cv_header_stdc=yes
6302 else
6303 - echo "$as_me: failed program was:" >&5
6304 -sed 's/^/| /' conftest.$ac_ext >&5
6306 - ac_cv_header_stdc=no
6307 + ac_cv_header_stdc=no
6310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6312 if test $ac_cv_header_stdc = yes; then
6313 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6314 - cat >conftest.$ac_ext <<_ACEOF
6315 -/* confdefs.h. */
6316 -_ACEOF
6317 -cat confdefs.h >>conftest.$ac_ext
6318 -cat >>conftest.$ac_ext <<_ACEOF
6319 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6320 /* end confdefs.h. */
6321 #include <string.h>
6323 _ACEOF
6324 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6325 - $EGREP "memchr" >/dev/null 2>&1; then
6327 + $EGREP "memchr" >/dev/null 2>&1; then :
6329 else
6330 ac_cv_header_stdc=no
6332 @@ -5138,18 +5536,14 @@
6334 if test $ac_cv_header_stdc = yes; then
6335 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6336 - cat >conftest.$ac_ext <<_ACEOF
6337 -/* confdefs.h. */
6338 -_ACEOF
6339 -cat confdefs.h >>conftest.$ac_ext
6340 -cat >>conftest.$ac_ext <<_ACEOF
6341 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6342 /* end confdefs.h. */
6343 #include <stdlib.h>
6345 _ACEOF
6346 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6347 - $EGREP "free" >/dev/null 2>&1; then
6349 + $EGREP "free" >/dev/null 2>&1; then :
6351 else
6352 ac_cv_header_stdc=no
6354 @@ -5159,14 +5553,10 @@
6356 if test $ac_cv_header_stdc = yes; then
6357 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6358 - if test "$cross_compiling" = yes; then
6359 + if test "$cross_compiling" = yes; then :
6361 else
6362 - cat >conftest.$ac_ext <<_ACEOF
6363 -/* confdefs.h. */
6364 -_ACEOF
6365 -cat confdefs.h >>conftest.$ac_ext
6366 -cat >>conftest.$ac_ext <<_ACEOF
6367 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6368 /* end confdefs.h. */
6369 #include <ctype.h>
6370 #include <stdlib.h>
6371 @@ -5193,10312 +5583,1501 @@
6372 return 0;
6374 _ACEOF
6375 -rm -f conftest$ac_exeext
6376 -if { (ac_try="$ac_link"
6377 -case "(($ac_try" in
6378 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6379 - *) ac_try_echo=$ac_try;;
6380 -esac
6381 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6382 - (eval "$ac_link") 2>&5
6383 - ac_status=$?
6384 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
6385 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6386 - { (case "(($ac_try" in
6387 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6388 - *) ac_try_echo=$ac_try;;
6389 -esac
6390 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6391 - (eval "$ac_try") 2>&5
6392 - ac_status=$?
6393 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
6394 - (exit $ac_status); }; }; then
6396 -else
6397 - echo "$as_me: program exited with status $ac_status" >&5
6398 -echo "$as_me: failed program was:" >&5
6399 -sed 's/^/| /' conftest.$ac_ext >&5
6400 +if ac_fn_c_try_run "$LINENO"; then :
6402 -( exit $ac_status )
6403 -ac_cv_header_stdc=no
6404 +else
6405 + ac_cv_header_stdc=no
6407 -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6408 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6409 + conftest.$ac_objext conftest.beam conftest.$ac_ext
6415 -{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6416 -echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6417 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6418 +$as_echo "$ac_cv_header_stdc" >&6; }
6419 if test $ac_cv_header_stdc = yes; then
6421 -cat >>confdefs.h <<\_ACEOF
6422 -#define STDC_HEADERS 1
6423 -_ACEOF
6424 +$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6428 -# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6435 +for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \
6436 +fcntl.h grp.h \
6437 +io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
6438 +shadow.h signal.h stdint.h stropts.h termios.h thread.h \
6439 +unistd.h utime.h \
6440 +sys/audioio.h sys/bsdtty.h sys/file.h sys/loadavg.h sys/lock.h sys/mkdev.h \
6441 +sys/modem.h \
6442 +sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \
6443 +sys/time.h \
6444 +sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
6445 +sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
6446 +bluetooth/bluetooth.h
6447 +do :
6448 + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6449 +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6450 +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6451 + cat >>confdefs.h <<_ACEOF
6452 +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6453 +_ACEOF
6457 +done
6459 -for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6460 - inttypes.h stdint.h unistd.h
6462 -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6463 -{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6464 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6465 -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6466 - echo $ECHO_N "(cached) $ECHO_C" >&6
6467 +ac_header_dirent=no
6468 +for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6469 + as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6470 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6471 +$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6472 +if eval \${$as_ac_Header+:} false; then :
6473 + $as_echo_n "(cached) " >&6
6474 else
6475 - cat >conftest.$ac_ext <<_ACEOF
6476 -/* confdefs.h. */
6477 -_ACEOF
6478 -cat confdefs.h >>conftest.$ac_ext
6479 -cat >>conftest.$ac_ext <<_ACEOF
6480 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6481 /* end confdefs.h. */
6482 -$ac_includes_default
6483 +#include <sys/types.h>
6484 +#include <$ac_hdr>
6486 -#include <$ac_header>
6487 +int
6488 +main ()
6490 +if ((DIR *) 0)
6491 +return 0;
6493 + return 0;
6495 _ACEOF
6496 -rm -f conftest.$ac_objext
6497 -if { (ac_try="$ac_compile"
6498 -case "(($ac_try" in
6499 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6500 - *) ac_try_echo=$ac_try;;
6501 -esac
6502 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6503 - (eval "$ac_compile") 2>conftest.er1
6504 - ac_status=$?
6505 - grep -v '^ *+' conftest.er1 >conftest.err
6506 - rm -f conftest.er1
6507 - cat conftest.err >&5
6508 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
6509 - (exit $ac_status); } && {
6510 - test -z "$ac_c_werror_flag" ||
6511 - test ! -s conftest.err
6512 - } && test -s conftest.$ac_objext; then
6513 +if ac_fn_c_try_compile "$LINENO"; then :
6514 eval "$as_ac_Header=yes"
6515 else
6516 - echo "$as_me: failed program was:" >&5
6517 -sed 's/^/| /' conftest.$ac_ext >&5
6519 - eval "$as_ac_Header=no"
6520 + eval "$as_ac_Header=no"
6523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6525 -ac_res=`eval echo '${'$as_ac_Header'}'`
6526 - { echo "$as_me:$LINENO: result: $ac_res" >&5
6527 -echo "${ECHO_T}$ac_res" >&6; }
6528 -if test `eval echo '${'$as_ac_Header'}'` = yes; then
6529 +eval ac_res=\$$as_ac_Header
6530 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6531 +$as_echo "$ac_res" >&6; }
6532 +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6533 cat >>confdefs.h <<_ACEOF
6534 -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6535 +#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6536 _ACEOF
6538 +ac_header_dirent=$ac_hdr; break
6541 done
6542 +# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6543 +if test $ac_header_dirent = dirent.h; then
6544 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6545 +$as_echo_n "checking for library containing opendir... " >&6; }
6546 +if ${ac_cv_search_opendir+:} false; then :
6547 + $as_echo_n "(cached) " >&6
6548 +else
6549 + ac_func_search_save_LIBS=$LIBS
6550 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6551 +/* end confdefs.h. */
6553 +/* Override any GCC internal prototype to avoid an error.
6554 + Use char because int might match the return type of a GCC
6555 + builtin and then its argument prototype would still apply. */
6556 +#ifdef __cplusplus
6557 +extern "C"
6558 +#endif
6559 +char opendir ();
6560 +int
6561 +main ()
6563 +return opendir ();
6565 + return 0;
6567 +_ACEOF
6568 +for ac_lib in '' dir; do
6569 + if test -z "$ac_lib"; then
6570 + ac_res="none required"
6571 + else
6572 + ac_res=-l$ac_lib
6573 + LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6574 + fi
6575 + if ac_fn_c_try_link "$LINENO"; then :
6576 + ac_cv_search_opendir=$ac_res
6578 +rm -f core conftest.err conftest.$ac_objext \
6579 + conftest$ac_exeext
6580 + if ${ac_cv_search_opendir+:} false; then :
6581 + break
6583 +done
6584 +if ${ac_cv_search_opendir+:} false; then :
6586 +else
6587 + ac_cv_search_opendir=no
6589 +rm conftest.$ac_ext
6590 +LIBS=$ac_func_search_save_LIBS
6592 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6593 +$as_echo "$ac_cv_search_opendir" >&6; }
6594 +ac_res=$ac_cv_search_opendir
6595 +if test "$ac_res" != no; then :
6596 + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6600 +else
6601 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6602 +$as_echo_n "checking for library containing opendir... " >&6; }
6603 +if ${ac_cv_search_opendir+:} false; then :
6604 + $as_echo_n "(cached) " >&6
6605 +else
6606 + ac_func_search_save_LIBS=$LIBS
6607 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6608 +/* end confdefs.h. */
6610 +/* Override any GCC internal prototype to avoid an error.
6611 + Use char because int might match the return type of a GCC
6612 + builtin and then its argument prototype would still apply. */
6613 +#ifdef __cplusplus
6614 +extern "C"
6615 +#endif
6616 +char opendir ();
6617 +int
6618 +main ()
6620 +return opendir ();
6622 + return 0;
6624 +_ACEOF
6625 +for ac_lib in '' x; do
6626 + if test -z "$ac_lib"; then
6627 + ac_res="none required"
6628 + else
6629 + ac_res=-l$ac_lib
6630 + LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6631 + fi
6632 + if ac_fn_c_try_link "$LINENO"; then :
6633 + ac_cv_search_opendir=$ac_res
6635 +rm -f core conftest.err conftest.$ac_objext \
6636 + conftest$ac_exeext
6637 + if ${ac_cv_search_opendir+:} false; then :
6638 + break
6640 +done
6641 +if ${ac_cv_search_opendir+:} false; then :
6643 +else
6644 + ac_cv_search_opendir=no
6646 +rm conftest.$ac_ext
6647 +LIBS=$ac_func_search_save_LIBS
6649 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6650 +$as_echo "$ac_cv_search_opendir" >&6; }
6651 +ac_res=$ac_cv_search_opendir
6652 +if test "$ac_res" != no; then :
6653 + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6659 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
6660 +$as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
6661 +if ${ac_cv_header_sys_types_h_makedev+:} false; then :
6662 + $as_echo_n "(cached) " >&6
6663 +else
6664 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6665 +/* end confdefs.h. */
6666 +#include <sys/types.h>
6667 +int
6668 +main ()
6670 +return makedev(0, 0);
6672 + return 0;
6674 +_ACEOF
6675 +if ac_fn_c_try_link "$LINENO"; then :
6676 + ac_cv_header_sys_types_h_makedev=yes
6677 +else
6678 + ac_cv_header_sys_types_h_makedev=no
6680 +rm -f core conftest.err conftest.$ac_objext \
6681 + conftest$ac_exeext conftest.$ac_ext
6684 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
6685 +$as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
6687 +if test $ac_cv_header_sys_types_h_makedev = no; then
6688 +ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
6689 +if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
6691 +$as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
6697 + if test $ac_cv_header_sys_mkdev_h = no; then
6698 + ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
6699 +if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
6701 +$as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
6706 + fi
6710 +# On Solaris, term.h requires curses.h
6711 +for ac_header in term.h
6712 +do :
6713 + ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "
6714 +#ifdef HAVE_CURSES_H
6715 +#include <curses.h>
6716 +#endif
6719 +if test "x$ac_cv_header_term_h" = xyes; then :
6720 + cat >>confdefs.h <<_ACEOF
6721 +#define HAVE_TERM_H 1
6722 +_ACEOF
6726 +done
6729 +# On Linux, netlink.h requires asm/types.h
6730 +for ac_header in linux/netlink.h
6731 +do :
6732 + ac_fn_c_check_header_compile "$LINENO" "linux/netlink.h" "ac_cv_header_linux_netlink_h" "
6733 +#ifdef HAVE_ASM_TYPES_H
6734 +#include <asm/types.h>
6735 +#endif
6736 +#ifdef HAVE_SYS_SOCKET_H
6737 +#include <sys/socket.h>
6738 +#endif
6741 +if test "x$ac_cv_header_linux_netlink_h" = xyes; then :
6742 + cat >>confdefs.h <<_ACEOF
6743 +#define HAVE_LINUX_NETLINK_H 1
6744 +_ACEOF
6748 +done
6751 +# checks for typedefs
6752 +was_it_defined=no
6753 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t in time.h" >&5
6754 +$as_echo_n "checking for clock_t in time.h... " >&6; }
6755 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6756 +/* end confdefs.h. */
6757 +#include <time.h>
6759 +_ACEOF
6760 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6761 + $EGREP "clock_t" >/dev/null 2>&1; then :
6762 + was_it_defined=yes
6763 +else
6766 +$as_echo "#define clock_t long" >>confdefs.h
6770 +rm -f conftest*
6772 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5
6773 +$as_echo "$was_it_defined" >&6; }
6775 +# Check whether using makedev requires defining _OSF_SOURCE
6776 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for makedev" >&5
6777 +$as_echo_n "checking for makedev... " >&6; }
6778 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6779 +/* end confdefs.h. */
6780 +#include <sys/types.h>
6781 +int
6782 +main ()
6784 + makedev(0, 0)
6786 + return 0;
6788 +_ACEOF
6789 +if ac_fn_c_try_link "$LINENO"; then :
6790 + ac_cv_has_makedev=yes
6791 +else
6792 + ac_cv_has_makedev=no
6794 +rm -f core conftest.err conftest.$ac_objext \
6795 + conftest$ac_exeext conftest.$ac_ext
6796 +if test "$ac_cv_has_makedev" = "no"; then
6797 + # we didn't link, try if _OSF_SOURCE will allow us to link
6798 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6799 +/* end confdefs.h. */
6801 +#define _OSF_SOURCE 1
6802 +#include <sys/types.h>
6804 +int
6805 +main ()
6807 + makedev(0, 0)
6809 + return 0;
6811 +_ACEOF
6812 +if ac_fn_c_try_link "$LINENO"; then :
6813 + ac_cv_has_makedev=yes
6814 +else
6815 + ac_cv_has_makedev=no
6817 +rm -f core conftest.err conftest.$ac_objext \
6818 + conftest$ac_exeext conftest.$ac_ext
6819 + if test "$ac_cv_has_makedev" = "yes"; then
6821 +$as_echo "#define _OSF_SOURCE 1" >>confdefs.h
6823 + fi
6825 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_makedev" >&5
6826 +$as_echo "$ac_cv_has_makedev" >&6; }
6827 +if test "$ac_cv_has_makedev" = "yes"; then
6829 +$as_echo "#define HAVE_MAKEDEV 1" >>confdefs.h
6833 +# Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
6834 +# the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
6835 +# defined, but the compiler does not support pragma redefine_extname,
6836 +# and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
6837 +# structures (such as rlimit64) without declaring them. As a
6838 +# work-around, disable LFS on such configurations
6840 +use_lfs=yes
6841 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Solaris LFS bug" >&5
6842 +$as_echo_n "checking Solaris LFS bug... " >&6; }
6843 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6844 +/* end confdefs.h. */
6846 +#define _LARGEFILE_SOURCE 1
6847 +#define _FILE_OFFSET_BITS 64
6848 +#include <sys/resource.h>
6852 -for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \
6853 -fcntl.h grp.h \
6854 -io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
6855 -shadow.h signal.h stdint.h stropts.h termios.h thread.h \
6856 -unistd.h utime.h \
6857 -sys/audioio.h sys/bsdtty.h sys/file.h sys/loadavg.h sys/lock.h sys/mkdev.h \
6858 -sys/modem.h \
6859 -sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \
6860 -sys/time.h \
6861 -sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
6862 -sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
6863 -bluetooth/bluetooth.h
6865 -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6866 -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6867 - { echo "$as_me:$LINENO: checking for $ac_header" >&5
6868 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6869 -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6870 - echo $ECHO_N "(cached) $ECHO_C" >&6
6872 -ac_res=`eval echo '${'$as_ac_Header'}'`
6873 - { echo "$as_me:$LINENO: result: $ac_res" >&5
6874 -echo "${ECHO_T}$ac_res" >&6; }
6875 -else
6876 - # Is the header compilable?
6877 -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6878 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6879 -cat >conftest.$ac_ext <<_ACEOF
6880 -/* confdefs.h. */
6881 -_ACEOF
6882 -cat confdefs.h >>conftest.$ac_ext
6883 -cat >>conftest.$ac_ext <<_ACEOF
6884 -/* end confdefs.h. */
6885 -$ac_includes_default
6886 -#include <$ac_header>
6887 +int
6888 +main ()
6890 +struct rlimit foo;
6892 + return 0;
6894 _ACEOF
6895 -rm -f conftest.$ac_objext
6896 -if { (ac_try="$ac_compile"
6897 -case "(($ac_try" in
6898 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6899 - *) ac_try_echo=$ac_try;;
6900 -esac
6901 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6902 - (eval "$ac_compile") 2>conftest.er1
6903 - ac_status=$?
6904 - grep -v '^ *+' conftest.er1 >conftest.err
6905 - rm -f conftest.er1
6906 - cat conftest.err >&5
6907 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
6908 - (exit $ac_status); } && {
6909 - test -z "$ac_c_werror_flag" ||
6910 - test ! -s conftest.err
6911 - } && test -s conftest.$ac_objext; then
6912 - ac_header_compiler=yes
6913 +if ac_fn_c_try_compile "$LINENO"; then :
6914 + sol_lfs_bug=no
6915 else
6916 - echo "$as_me: failed program was:" >&5
6917 -sed 's/^/| /' conftest.$ac_ext >&5
6919 - ac_header_compiler=no
6920 + sol_lfs_bug=yes
6923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6924 -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6925 -echo "${ECHO_T}$ac_header_compiler" >&6; }
6926 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sol_lfs_bug" >&5
6927 +$as_echo "$sol_lfs_bug" >&6; }
6928 +if test "$sol_lfs_bug" = "yes"; then
6929 + use_lfs=no
6932 -# Is the header present?
6933 -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6934 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6935 -cat >conftest.$ac_ext <<_ACEOF
6936 -/* confdefs.h. */
6937 -_ACEOF
6938 -cat confdefs.h >>conftest.$ac_ext
6939 -cat >>conftest.$ac_ext <<_ACEOF
6940 -/* end confdefs.h. */
6941 -#include <$ac_header>
6942 -_ACEOF
6943 -if { (ac_try="$ac_cpp conftest.$ac_ext"
6944 -case "(($ac_try" in
6945 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6946 - *) ac_try_echo=$ac_try;;
6947 -esac
6948 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6949 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6950 - ac_status=$?
6951 - grep -v '^ *+' conftest.er1 >conftest.err
6952 - rm -f conftest.er1
6953 - cat conftest.err >&5
6954 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
6955 - (exit $ac_status); } >/dev/null && {
6956 - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6957 - test ! -s conftest.err
6958 - }; then
6959 - ac_header_preproc=yes
6960 -else
6961 - echo "$as_me: failed program was:" >&5
6962 -sed 's/^/| /' conftest.$ac_ext >&5
6963 +if test "$use_lfs" = "yes"; then
6964 +# Two defines needed to enable largefile support on various platforms
6965 +# These may affect some typedefs
6967 +$as_echo "#define _LARGEFILE_SOURCE 1" >>confdefs.h
6970 +$as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
6972 - ac_header_preproc=no
6975 -rm -f conftest.err conftest.$ac_ext
6976 -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6977 -echo "${ECHO_T}$ac_header_preproc" >&6; }
6978 +# Add some code to confdefs.h so that the test for off_t works on SCO
6979 +cat >> confdefs.h <<\EOF
6980 +#if defined(SCO_DS)
6981 +#undef _OFF_T
6982 +#endif
6983 +EOF
6985 +# Type availability checks
6986 +ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
6987 +if test "x$ac_cv_type_mode_t" = xyes; then :
6989 -# So? What about this header?
6990 -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6991 - yes:no: )
6992 - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6993 -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6994 - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6995 -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6996 - ac_header_preproc=yes
6997 - ;;
6998 - no:yes:* )
6999 - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7000 -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7001 - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7002 -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7003 - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7004 -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7005 - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7006 -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7007 - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7008 -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7009 - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7010 -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7011 - ( cat <<\_ASBOX
7012 -## ------------------------------------------------ ##
7013 -## Report this to http://www.python.org/python-bugs ##
7014 -## ------------------------------------------------ ##
7015 -_ASBOX
7016 - ) | sed "s/^/$as_me: WARNING: /" >&2
7017 - ;;
7018 -esac
7019 -{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7020 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7021 -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7022 - echo $ECHO_N "(cached) $ECHO_C" >&6
7023 else
7024 - eval "$as_ac_Header=\$ac_header_preproc"
7026 -ac_res=`eval echo '${'$as_ac_Header'}'`
7027 - { echo "$as_me:$LINENO: result: $ac_res" >&5
7028 -echo "${ECHO_T}$ac_res" >&6; }
7031 -if test `eval echo '${'$as_ac_Header'}'` = yes; then
7032 - cat >>confdefs.h <<_ACEOF
7033 -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7034 +cat >>confdefs.h <<_ACEOF
7035 +#define mode_t int
7036 _ACEOF
7040 -done
7042 +ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
7043 +if test "x$ac_cv_type_off_t" = xyes; then :
7045 +else
7047 +cat >>confdefs.h <<_ACEOF
7048 +#define off_t long int
7049 +_ACEOF
7053 +ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7054 +if test "x$ac_cv_type_pid_t" = xyes; then :
7056 -ac_header_dirent=no
7057 -for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7058 - as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7059 -{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
7060 -echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
7061 -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7062 - echo $ECHO_N "(cached) $ECHO_C" >&6
7063 else
7064 - cat >conftest.$ac_ext <<_ACEOF
7065 -/* confdefs.h. */
7067 +cat >>confdefs.h <<_ACEOF
7068 +#define pid_t int
7069 _ACEOF
7070 -cat confdefs.h >>conftest.$ac_ext
7071 -cat >>conftest.$ac_ext <<_ACEOF
7075 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
7076 +$as_echo_n "checking return type of signal handlers... " >&6; }
7077 +if ${ac_cv_type_signal+:} false; then :
7078 + $as_echo_n "(cached) " >&6
7079 +else
7080 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7081 /* end confdefs.h. */
7082 #include <sys/types.h>
7083 -#include <$ac_hdr>
7084 +#include <signal.h>
7087 main ()
7089 -if ((DIR *) 0)
7090 -return 0;
7091 +return *(signal (0, 0)) (0) == 1;
7093 return 0;
7095 _ACEOF
7096 -rm -f conftest.$ac_objext
7097 -if { (ac_try="$ac_compile"
7098 -case "(($ac_try" in
7099 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7100 - *) ac_try_echo=$ac_try;;
7101 -esac
7102 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7103 - (eval "$ac_compile") 2>conftest.er1
7104 - ac_status=$?
7105 - grep -v '^ *+' conftest.er1 >conftest.err
7106 - rm -f conftest.er1
7107 - cat conftest.err >&5
7108 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
7109 - (exit $ac_status); } && {
7110 - test -z "$ac_c_werror_flag" ||
7111 - test ! -s conftest.err
7112 - } && test -s conftest.$ac_objext; then
7113 - eval "$as_ac_Header=yes"
7114 +if ac_fn_c_try_compile "$LINENO"; then :
7115 + ac_cv_type_signal=int
7116 else
7117 - echo "$as_me: failed program was:" >&5
7118 -sed 's/^/| /' conftest.$ac_ext >&5
7120 - eval "$as_ac_Header=no"
7121 + ac_cv_type_signal=void
7124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7126 -ac_res=`eval echo '${'$as_ac_Header'}'`
7127 - { echo "$as_me:$LINENO: result: $ac_res" >&5
7128 -echo "${ECHO_T}$ac_res" >&6; }
7129 -if test `eval echo '${'$as_ac_Header'}'` = yes; then
7130 - cat >>confdefs.h <<_ACEOF
7131 -#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7132 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
7133 +$as_echo "$ac_cv_type_signal" >&6; }
7135 +cat >>confdefs.h <<_ACEOF
7136 +#define RETSIGTYPE $ac_cv_type_signal
7137 _ACEOF
7139 -ac_header_dirent=$ac_hdr; break
7142 -done
7143 -# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7144 -if test $ac_header_dirent = dirent.h; then
7145 - { echo "$as_me:$LINENO: checking for library containing opendir" >&5
7146 -echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
7147 -if test "${ac_cv_search_opendir+set}" = set; then
7148 - echo $ECHO_N "(cached) $ECHO_C" >&6
7149 +ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7150 +if test "x$ac_cv_type_size_t" = xyes; then :
7152 else
7153 - ac_func_search_save_LIBS=$LIBS
7154 -cat >conftest.$ac_ext <<_ACEOF
7155 -/* confdefs.h. */
7157 +cat >>confdefs.h <<_ACEOF
7158 +#define size_t unsigned int
7159 _ACEOF
7160 -cat confdefs.h >>conftest.$ac_ext
7161 -cat >>conftest.$ac_ext <<_ACEOF
7165 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
7166 +$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7167 +if ${ac_cv_type_uid_t+:} false; then :
7168 + $as_echo_n "(cached) " >&6
7169 +else
7170 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7171 /* end confdefs.h. */
7172 +#include <sys/types.h>
7174 -/* Override any GCC internal prototype to avoid an error.
7175 - Use char because int might match the return type of a GCC
7176 - builtin and then its argument prototype would still apply. */
7177 -#ifdef __cplusplus
7178 -extern "C"
7179 -#endif
7180 -char opendir ();
7181 -int
7182 -main ()
7184 -return opendir ();
7186 - return 0;
7188 _ACEOF
7189 -for ac_lib in '' dir; do
7190 - if test -z "$ac_lib"; then
7191 - ac_res="none required"
7192 - else
7193 - ac_res=-l$ac_lib
7194 - LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7195 - fi
7196 - rm -f conftest.$ac_objext conftest$ac_exeext
7197 -if { (ac_try="$ac_link"
7198 -case "(($ac_try" in
7199 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7200 - *) ac_try_echo=$ac_try;;
7201 -esac
7202 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7203 - (eval "$ac_link") 2>conftest.er1
7204 - ac_status=$?
7205 - grep -v '^ *+' conftest.er1 >conftest.err
7206 - rm -f conftest.er1
7207 - cat conftest.err >&5
7208 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
7209 - (exit $ac_status); } && {
7210 - test -z "$ac_c_werror_flag" ||
7211 - test ! -s conftest.err
7212 - } && test -s conftest$ac_exeext &&
7213 - $as_test_x conftest$ac_exeext; then
7214 - ac_cv_search_opendir=$ac_res
7215 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7216 + $EGREP "uid_t" >/dev/null 2>&1; then :
7217 + ac_cv_type_uid_t=yes
7218 else
7219 - echo "$as_me: failed program was:" >&5
7220 -sed 's/^/| /' conftest.$ac_ext >&5
7221 + ac_cv_type_uid_t=no
7223 +rm -f conftest*
7226 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
7227 +$as_echo "$ac_cv_type_uid_t" >&6; }
7228 +if test $ac_cv_type_uid_t = no; then
7230 +$as_echo "#define uid_t int" >>confdefs.h
7233 +$as_echo "#define gid_t int" >>confdefs.h
7237 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7238 - conftest$ac_exeext
7239 - if test "${ac_cv_search_opendir+set}" = set; then
7240 - break
7241 +ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
7242 +if test "x$ac_cv_type_ssize_t" = xyes; then :
7244 +$as_echo "#define HAVE_SSIZE_T 1" >>confdefs.h
7247 -done
7248 -if test "${ac_cv_search_opendir+set}" = set; then
7252 +# Sizes of various common basic types
7253 +# ANSI C requires sizeof(char) == 1, so no need to check it
7254 +# The cast to long int works around a bug in the HP C Compiler
7255 +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7256 +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7257 +# This bug is HP SR number 8606223364.
7258 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
7259 +$as_echo_n "checking size of int... " >&6; }
7260 +if ${ac_cv_sizeof_int+:} false; then :
7261 + $as_echo_n "(cached) " >&6
7262 +else
7263 + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
7265 else
7266 - ac_cv_search_opendir=no
7268 -rm conftest.$ac_ext
7269 -LIBS=$ac_func_search_save_LIBS
7270 + if test "$ac_cv_type_int" = yes; then
7271 + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7272 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7273 +as_fn_error 77 "cannot compute sizeof (int)
7274 +See \`config.log' for more details" "$LINENO" 5; }
7275 + else
7276 + ac_cv_sizeof_int=0
7277 + fi
7279 -{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7280 -echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
7281 -ac_res=$ac_cv_search_opendir
7282 -if test "$ac_res" != no; then
7283 - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7286 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
7287 +$as_echo "$ac_cv_sizeof_int" >&6; }
7289 -else
7290 - { echo "$as_me:$LINENO: checking for library containing opendir" >&5
7291 -echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
7292 -if test "${ac_cv_search_opendir+set}" = set; then
7293 - echo $ECHO_N "(cached) $ECHO_C" >&6
7294 -else
7295 - ac_func_search_save_LIBS=$LIBS
7296 -cat >conftest.$ac_ext <<_ACEOF
7297 -/* confdefs.h. */
7298 -_ACEOF
7299 -cat confdefs.h >>conftest.$ac_ext
7300 -cat >>conftest.$ac_ext <<_ACEOF
7301 -/* end confdefs.h. */
7303 -/* Override any GCC internal prototype to avoid an error.
7304 - Use char because int might match the return type of a GCC
7305 - builtin and then its argument prototype would still apply. */
7306 -#ifdef __cplusplus
7307 -extern "C"
7308 -#endif
7309 -char opendir ();
7310 -int
7311 -main ()
7313 -return opendir ();
7315 - return 0;
7318 +cat >>confdefs.h <<_ACEOF
7319 +#define SIZEOF_INT $ac_cv_sizeof_int
7320 _ACEOF
7321 -for ac_lib in '' x; do
7322 - if test -z "$ac_lib"; then
7323 - ac_res="none required"
7324 - else
7325 - ac_res=-l$ac_lib
7326 - LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7327 - fi
7328 - rm -f conftest.$ac_objext conftest$ac_exeext
7329 -if { (ac_try="$ac_link"
7330 -case "(($ac_try" in
7331 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7332 - *) ac_try_echo=$ac_try;;
7333 -esac
7334 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7335 - (eval "$ac_link") 2>conftest.er1
7336 - ac_status=$?
7337 - grep -v '^ *+' conftest.er1 >conftest.err
7338 - rm -f conftest.er1
7339 - cat conftest.err >&5
7340 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
7341 - (exit $ac_status); } && {
7342 - test -z "$ac_c_werror_flag" ||
7343 - test ! -s conftest.err
7344 - } && test -s conftest$ac_exeext &&
7345 - $as_test_x conftest$ac_exeext; then
7346 - ac_cv_search_opendir=$ac_res
7347 -else
7348 - echo "$as_me: failed program was:" >&5
7349 -sed 's/^/| /' conftest.$ac_ext >&5
7353 +# The cast to long int works around a bug in the HP C Compiler
7354 +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7355 +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7356 +# This bug is HP SR number 8606223364.
7357 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
7358 +$as_echo_n "checking size of long... " >&6; }
7359 +if ${ac_cv_sizeof_long+:} false; then :
7360 + $as_echo_n "(cached) " >&6
7361 +else
7362 + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
7364 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7365 - conftest$ac_exeext
7366 - if test "${ac_cv_search_opendir+set}" = set; then
7367 - break
7369 -done
7370 -if test "${ac_cv_search_opendir+set}" = set; then
7372 else
7373 - ac_cv_search_opendir=no
7375 -rm conftest.$ac_ext
7376 -LIBS=$ac_func_search_save_LIBS
7377 + if test "$ac_cv_type_long" = yes; then
7378 + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7379 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7380 +as_fn_error 77 "cannot compute sizeof (long)
7381 +See \`config.log' for more details" "$LINENO" 5; }
7382 + else
7383 + ac_cv_sizeof_long=0
7384 + fi
7386 -{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7387 -echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
7388 -ac_res=$ac_cv_search_opendir
7389 -if test "$ac_res" != no; then
7390 - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7393 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
7394 +$as_echo "$ac_cv_sizeof_long" >&6; }
7398 -{ echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
7399 -echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
7400 -if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
7401 - echo $ECHO_N "(cached) $ECHO_C" >&6
7402 -else
7403 - cat >conftest.$ac_ext <<_ACEOF
7404 -/* confdefs.h. */
7405 -_ACEOF
7406 -cat confdefs.h >>conftest.$ac_ext
7407 -cat >>conftest.$ac_ext <<_ACEOF
7408 -/* end confdefs.h. */
7409 -#include <sys/types.h>
7410 -int
7411 -main ()
7413 -return makedev(0, 0);
7415 - return 0;
7418 +cat >>confdefs.h <<_ACEOF
7419 +#define SIZEOF_LONG $ac_cv_sizeof_long
7420 _ACEOF
7421 -rm -f conftest.$ac_objext conftest$ac_exeext
7422 -if { (ac_try="$ac_link"
7423 -case "(($ac_try" in
7424 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7425 - *) ac_try_echo=$ac_try;;
7426 -esac
7427 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7428 - (eval "$ac_link") 2>conftest.er1
7429 - ac_status=$?
7430 - grep -v '^ *+' conftest.er1 >conftest.err
7431 - rm -f conftest.er1
7432 - cat conftest.err >&5
7433 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
7434 - (exit $ac_status); } && {
7435 - test -z "$ac_c_werror_flag" ||
7436 - test ! -s conftest.err
7437 - } && test -s conftest$ac_exeext &&
7438 - $as_test_x conftest$ac_exeext; then
7439 - ac_cv_header_sys_types_h_makedev=yes
7440 -else
7441 - echo "$as_me: failed program was:" >&5
7442 -sed 's/^/| /' conftest.$ac_ext >&5
7444 - ac_cv_header_sys_types_h_makedev=no
7447 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7448 - conftest$ac_exeext conftest.$ac_ext
7449 +# The cast to long int works around a bug in the HP C Compiler
7450 +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7451 +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7452 +# This bug is HP SR number 8606223364.
7453 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
7454 +$as_echo_n "checking size of void *... " >&6; }
7455 +if ${ac_cv_sizeof_void_p+:} false; then :
7456 + $as_echo_n "(cached) " >&6
7457 +else
7458 + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
7460 +else
7461 + if test "$ac_cv_type_void_p" = yes; then
7462 + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7463 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7464 +as_fn_error 77 "cannot compute sizeof (void *)
7465 +See \`config.log' for more details" "$LINENO" 5; }
7466 + else
7467 + ac_cv_sizeof_void_p=0
7468 + fi
7470 -{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
7471 -echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
7473 -if test $ac_cv_header_sys_types_h_makedev = no; then
7474 -if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
7475 - { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
7476 -echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
7477 -if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
7478 - echo $ECHO_N "(cached) $ECHO_C" >&6
7480 -{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
7481 -echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
7482 -else
7483 - # Is the header compilable?
7484 -{ echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
7485 -echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
7486 -cat >conftest.$ac_ext <<_ACEOF
7487 -/* confdefs.h. */
7488 -_ACEOF
7489 -cat confdefs.h >>conftest.$ac_ext
7490 -cat >>conftest.$ac_ext <<_ACEOF
7491 -/* end confdefs.h. */
7492 -$ac_includes_default
7493 -#include <sys/mkdev.h>
7494 -_ACEOF
7495 -rm -f conftest.$ac_objext
7496 -if { (ac_try="$ac_compile"
7497 -case "(($ac_try" in
7498 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7499 - *) ac_try_echo=$ac_try;;
7500 -esac
7501 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7502 - (eval "$ac_compile") 2>conftest.er1
7503 - ac_status=$?
7504 - grep -v '^ *+' conftest.er1 >conftest.err
7505 - rm -f conftest.er1
7506 - cat conftest.err >&5
7507 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
7508 - (exit $ac_status); } && {
7509 - test -z "$ac_c_werror_flag" ||
7510 - test ! -s conftest.err
7511 - } && test -s conftest.$ac_objext; then
7512 - ac_header_compiler=yes
7513 -else
7514 - echo "$as_me: failed program was:" >&5
7515 -sed 's/^/| /' conftest.$ac_ext >&5
7516 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
7517 +$as_echo "$ac_cv_sizeof_void_p" >&6; }
7519 - ac_header_compiler=no
7522 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7523 -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7524 -echo "${ECHO_T}$ac_header_compiler" >&6; }
7526 -# Is the header present?
7527 -{ echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
7528 -echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
7529 -cat >conftest.$ac_ext <<_ACEOF
7530 -/* confdefs.h. */
7531 -_ACEOF
7532 -cat confdefs.h >>conftest.$ac_ext
7533 -cat >>conftest.$ac_ext <<_ACEOF
7534 -/* end confdefs.h. */
7535 -#include <sys/mkdev.h>
7536 +cat >>confdefs.h <<_ACEOF
7537 +#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
7538 _ACEOF
7539 -if { (ac_try="$ac_cpp conftest.$ac_ext"
7540 -case "(($ac_try" in
7541 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7542 - *) ac_try_echo=$ac_try;;
7543 -esac
7544 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7545 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7546 - ac_status=$?
7547 - grep -v '^ *+' conftest.er1 >conftest.err
7548 - rm -f conftest.er1
7549 - cat conftest.err >&5
7550 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
7551 - (exit $ac_status); } >/dev/null && {
7552 - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7553 - test ! -s conftest.err
7554 - }; then
7555 - ac_header_preproc=yes
7556 -else
7557 - echo "$as_me: failed program was:" >&5
7558 -sed 's/^/| /' conftest.$ac_ext >&5
7560 - ac_header_preproc=no
7563 -rm -f conftest.err conftest.$ac_ext
7564 -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7565 -echo "${ECHO_T}$ac_header_preproc" >&6; }
7566 +# The cast to long int works around a bug in the HP C Compiler
7567 +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7568 +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7569 +# This bug is HP SR number 8606223364.
7570 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
7571 +$as_echo_n "checking size of short... " >&6; }
7572 +if ${ac_cv_sizeof_short+:} false; then :
7573 + $as_echo_n "(cached) " >&6
7574 +else
7575 + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
7577 -# So? What about this header?
7578 -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7579 - yes:no: )
7580 - { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
7581 -echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7582 - { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
7583 -echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
7584 - ac_header_preproc=yes
7585 - ;;
7586 - no:yes:* )
7587 - { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
7588 -echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
7589 - { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
7590 -echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
7591 - { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
7592 -echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
7593 - { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
7594 -echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
7595 - { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
7596 -echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
7597 - { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
7598 -echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
7599 - ( cat <<\_ASBOX
7600 -## ------------------------------------------------ ##
7601 -## Report this to http://www.python.org/python-bugs ##
7602 -## ------------------------------------------------ ##
7603 -_ASBOX
7604 - ) | sed "s/^/$as_me: WARNING: /" >&2
7605 - ;;
7606 -esac
7607 -{ echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
7608 -echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
7609 -if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
7610 - echo $ECHO_N "(cached) $ECHO_C" >&6
7611 else
7612 - ac_cv_header_sys_mkdev_h=$ac_header_preproc
7613 + if test "$ac_cv_type_short" = yes; then
7614 + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7615 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7616 +as_fn_error 77 "cannot compute sizeof (short)
7617 +See \`config.log' for more details" "$LINENO" 5; }
7618 + else
7619 + ac_cv_sizeof_short=0
7620 + fi
7622 -{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
7623 -echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
7626 -if test $ac_cv_header_sys_mkdev_h = yes; then
7627 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
7628 +$as_echo "$ac_cv_sizeof_short" >&6; }
7631 -cat >>confdefs.h <<\_ACEOF
7632 -#define MAJOR_IN_MKDEV 1
7634 +cat >>confdefs.h <<_ACEOF
7635 +#define SIZEOF_SHORT $ac_cv_sizeof_short
7636 _ACEOF
7640 +# The cast to long int works around a bug in the HP C Compiler
7641 +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7642 +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7643 +# This bug is HP SR number 8606223364.
7644 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
7645 +$as_echo_n "checking size of float... " >&6; }
7646 +if ${ac_cv_sizeof_float+:} false; then :
7647 + $as_echo_n "(cached) " >&6
7648 +else
7649 + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
7651 +else
7652 + if test "$ac_cv_type_float" = yes; then
7653 + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7654 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7655 +as_fn_error 77 "cannot compute sizeof (float)
7656 +See \`config.log' for more details" "$LINENO" 5; }
7657 + else
7658 + ac_cv_sizeof_float=0
7659 + fi
7662 - if test $ac_cv_header_sys_mkdev_h = no; then
7663 - if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
7664 - { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
7665 -echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
7666 -if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
7667 - echo $ECHO_N "(cached) $ECHO_C" >&6
7669 -{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
7670 -echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
7671 -else
7672 - # Is the header compilable?
7673 -{ echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
7674 -echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
7675 -cat >conftest.$ac_ext <<_ACEOF
7676 -/* confdefs.h. */
7677 -_ACEOF
7678 -cat confdefs.h >>conftest.$ac_ext
7679 -cat >>conftest.$ac_ext <<_ACEOF
7680 -/* end confdefs.h. */
7681 -$ac_includes_default
7682 -#include <sys/sysmacros.h>
7683 -_ACEOF
7684 -rm -f conftest.$ac_objext
7685 -if { (ac_try="$ac_compile"
7686 -case "(($ac_try" in
7687 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7688 - *) ac_try_echo=$ac_try;;
7689 -esac
7690 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7691 - (eval "$ac_compile") 2>conftest.er1
7692 - ac_status=$?
7693 - grep -v '^ *+' conftest.er1 >conftest.err
7694 - rm -f conftest.er1
7695 - cat conftest.err >&5
7696 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
7697 - (exit $ac_status); } && {
7698 - test -z "$ac_c_werror_flag" ||
7699 - test ! -s conftest.err
7700 - } && test -s conftest.$ac_objext; then
7701 - ac_header_compiler=yes
7702 -else
7703 - echo "$as_me: failed program was:" >&5
7704 -sed 's/^/| /' conftest.$ac_ext >&5
7705 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
7706 +$as_echo "$ac_cv_sizeof_float" >&6; }
7708 - ac_header_compiler=no
7711 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7712 -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7713 -echo "${ECHO_T}$ac_header_compiler" >&6; }
7715 -# Is the header present?
7716 -{ echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
7717 -echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
7718 -cat >conftest.$ac_ext <<_ACEOF
7719 -/* confdefs.h. */
7720 -_ACEOF
7721 -cat confdefs.h >>conftest.$ac_ext
7722 -cat >>conftest.$ac_ext <<_ACEOF
7723 -/* end confdefs.h. */
7724 -#include <sys/sysmacros.h>
7725 +cat >>confdefs.h <<_ACEOF
7726 +#define SIZEOF_FLOAT $ac_cv_sizeof_float
7727 _ACEOF
7728 -if { (ac_try="$ac_cpp conftest.$ac_ext"
7729 -case "(($ac_try" in
7730 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7731 - *) ac_try_echo=$ac_try;;
7732 -esac
7733 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7734 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7735 - ac_status=$?
7736 - grep -v '^ *+' conftest.er1 >conftest.err
7737 - rm -f conftest.er1
7738 - cat conftest.err >&5
7739 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
7740 - (exit $ac_status); } >/dev/null && {
7741 - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7742 - test ! -s conftest.err
7743 - }; then
7744 - ac_header_preproc=yes
7745 -else
7746 - echo "$as_me: failed program was:" >&5
7747 -sed 's/^/| /' conftest.$ac_ext >&5
7749 - ac_header_preproc=no
7752 -rm -f conftest.err conftest.$ac_ext
7753 -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7754 -echo "${ECHO_T}$ac_header_preproc" >&6; }
7755 +# The cast to long int works around a bug in the HP C Compiler
7756 +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7757 +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7758 +# This bug is HP SR number 8606223364.
7759 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
7760 +$as_echo_n "checking size of double... " >&6; }
7761 +if ${ac_cv_sizeof_double+:} false; then :
7762 + $as_echo_n "(cached) " >&6
7763 +else
7764 + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
7766 -# So? What about this header?
7767 -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7768 - yes:no: )
7769 - { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
7770 -echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7771 - { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
7772 -echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
7773 - ac_header_preproc=yes
7774 - ;;
7775 - no:yes:* )
7776 - { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
7777 -echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
7778 - { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
7779 -echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
7780 - { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
7781 -echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
7782 - { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
7783 -echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
7784 - { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
7785 -echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
7786 - { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
7787 -echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
7788 - ( cat <<\_ASBOX
7789 -## ------------------------------------------------ ##
7790 -## Report this to http://www.python.org/python-bugs ##
7791 -## ------------------------------------------------ ##
7792 -_ASBOX
7793 - ) | sed "s/^/$as_me: WARNING: /" >&2
7794 - ;;
7795 -esac
7796 -{ echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
7797 -echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
7798 -if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
7799 - echo $ECHO_N "(cached) $ECHO_C" >&6
7800 else
7801 - ac_cv_header_sys_sysmacros_h=$ac_header_preproc
7802 + if test "$ac_cv_type_double" = yes; then
7803 + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7804 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7805 +as_fn_error 77 "cannot compute sizeof (double)
7806 +See \`config.log' for more details" "$LINENO" 5; }
7807 + else
7808 + ac_cv_sizeof_double=0
7809 + fi
7811 -{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
7812 -echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
7815 -if test $ac_cv_header_sys_sysmacros_h = yes; then
7816 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
7817 +$as_echo "$ac_cv_sizeof_double" >&6; }
7820 -cat >>confdefs.h <<\_ACEOF
7821 -#define MAJOR_IN_SYSMACROS 1
7823 +cat >>confdefs.h <<_ACEOF
7824 +#define SIZEOF_DOUBLE $ac_cv_sizeof_double
7825 _ACEOF
7829 +# The cast to long int works around a bug in the HP C Compiler
7830 +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7831 +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7832 +# This bug is HP SR number 8606223364.
7833 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of fpos_t" >&5
7834 +$as_echo_n "checking size of fpos_t... " >&6; }
7835 +if ${ac_cv_sizeof_fpos_t+:} false; then :
7836 + $as_echo_n "(cached) " >&6
7837 +else
7838 + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (fpos_t))" "ac_cv_sizeof_fpos_t" "$ac_includes_default"; then :
7840 - fi
7841 +else
7842 + if test "$ac_cv_type_fpos_t" = yes; then
7843 + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7844 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7845 +as_fn_error 77 "cannot compute sizeof (fpos_t)
7846 +See \`config.log' for more details" "$LINENO" 5; }
7847 + else
7848 + ac_cv_sizeof_fpos_t=0
7849 + fi
7853 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_fpos_t" >&5
7854 +$as_echo "$ac_cv_sizeof_fpos_t" >&6; }
7856 -# On Solaris, term.h requires curses.h
7858 -for ac_header in term.h
7860 -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7861 -{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7862 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7863 -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7864 - echo $ECHO_N "(cached) $ECHO_C" >&6
7865 -else
7866 - cat >conftest.$ac_ext <<_ACEOF
7867 -/* confdefs.h. */
7869 +cat >>confdefs.h <<_ACEOF
7870 +#define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
7871 _ACEOF
7872 -cat confdefs.h >>conftest.$ac_ext
7873 -cat >>conftest.$ac_ext <<_ACEOF
7874 -/* end confdefs.h. */
7876 -#ifdef HAVE_CURSES_H
7877 -#include <curses.h>
7878 -#endif
7880 +# The cast to long int works around a bug in the HP C Compiler
7881 +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7882 +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7883 +# This bug is HP SR number 8606223364.
7884 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
7885 +$as_echo_n "checking size of size_t... " >&6; }
7886 +if ${ac_cv_sizeof_size_t+:} false; then :
7887 + $as_echo_n "(cached) " >&6
7888 +else
7889 + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
7891 -#include <$ac_header>
7892 -_ACEOF
7893 -rm -f conftest.$ac_objext
7894 -if { (ac_try="$ac_compile"
7895 -case "(($ac_try" in
7896 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7897 - *) ac_try_echo=$ac_try;;
7898 -esac
7899 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7900 - (eval "$ac_compile") 2>conftest.er1
7901 - ac_status=$?
7902 - grep -v '^ *+' conftest.er1 >conftest.err
7903 - rm -f conftest.er1
7904 - cat conftest.err >&5
7905 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
7906 - (exit $ac_status); } && {
7907 - test -z "$ac_c_werror_flag" ||
7908 - test ! -s conftest.err
7909 - } && test -s conftest.$ac_objext; then
7910 - eval "$as_ac_Header=yes"
7911 else
7912 - echo "$as_me: failed program was:" >&5
7913 -sed 's/^/| /' conftest.$ac_ext >&5
7915 - eval "$as_ac_Header=no"
7916 + if test "$ac_cv_type_size_t" = yes; then
7917 + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7918 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7919 +as_fn_error 77 "cannot compute sizeof (size_t)
7920 +See \`config.log' for more details" "$LINENO" 5; }
7921 + else
7922 + ac_cv_sizeof_size_t=0
7923 + fi
7926 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7928 -ac_res=`eval echo '${'$as_ac_Header'}'`
7929 - { echo "$as_me:$LINENO: result: $ac_res" >&5
7930 -echo "${ECHO_T}$ac_res" >&6; }
7931 -if test `eval echo '${'$as_ac_Header'}'` = yes; then
7932 - cat >>confdefs.h <<_ACEOF
7933 -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7934 -_ACEOF
7935 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
7936 +$as_echo "$ac_cv_sizeof_size_t" >&6; }
7940 -done
7942 +cat >>confdefs.h <<_ACEOF
7943 +#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
7944 +_ACEOF
7946 -# On Linux, netlink.h requires asm/types.h
7948 -for ac_header in linux/netlink.h
7950 -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7951 -{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7952 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7953 -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7954 - echo $ECHO_N "(cached) $ECHO_C" >&6
7955 -else
7956 - cat >conftest.$ac_ext <<_ACEOF
7957 -/* confdefs.h. */
7958 -_ACEOF
7959 -cat confdefs.h >>conftest.$ac_ext
7960 -cat >>conftest.$ac_ext <<_ACEOF
7962 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support" >&5
7963 +$as_echo_n "checking for long long support... " >&6; }
7964 +have_long_long=no
7965 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7966 /* end confdefs.h. */
7968 -#ifdef HAVE_ASM_TYPES_H
7969 -#include <asm/types.h>
7970 -#endif
7971 -#ifdef HAVE_SYS_SOCKET_H
7972 -#include <sys/socket.h>
7973 -#endif
7974 +int
7975 +main ()
7977 +long long x; x = (long long)0;
7979 + return 0;
7981 +_ACEOF
7982 +if ac_fn_c_try_compile "$LINENO"; then :
7985 -#include <$ac_header>
7986 -_ACEOF
7987 -rm -f conftest.$ac_objext
7988 -if { (ac_try="$ac_compile"
7989 -case "(($ac_try" in
7990 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7991 - *) ac_try_echo=$ac_try;;
7992 -esac
7993 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7994 - (eval "$ac_compile") 2>conftest.er1
7995 - ac_status=$?
7996 - grep -v '^ *+' conftest.er1 >conftest.err
7997 - rm -f conftest.er1
7998 - cat conftest.err >&5
7999 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
8000 - (exit $ac_status); } && {
8001 - test -z "$ac_c_werror_flag" ||
8002 - test ! -s conftest.err
8003 - } && test -s conftest.$ac_objext; then
8004 - eval "$as_ac_Header=yes"
8005 -else
8006 - echo "$as_me: failed program was:" >&5
8007 -sed 's/^/| /' conftest.$ac_ext >&5
8008 +$as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
8010 - eval "$as_ac_Header=no"
8012 + have_long_long=yes
8015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8016 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_long_long" >&5
8017 +$as_echo "$have_long_long" >&6; }
8018 +if test "$have_long_long" = yes ; then
8019 +# The cast to long int works around a bug in the HP C Compiler
8020 +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8021 +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8022 +# This bug is HP SR number 8606223364.
8023 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
8024 +$as_echo_n "checking size of long long... " >&6; }
8025 +if ${ac_cv_sizeof_long_long+:} false; then :
8026 + $as_echo_n "(cached) " >&6
8027 +else
8028 + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
8030 +else
8031 + if test "$ac_cv_type_long_long" = yes; then
8032 + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8033 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8034 +as_fn_error 77 "cannot compute sizeof (long long)
8035 +See \`config.log' for more details" "$LINENO" 5; }
8036 + else
8037 + ac_cv_sizeof_long_long=0
8038 + fi
8040 -ac_res=`eval echo '${'$as_ac_Header'}'`
8041 - { echo "$as_me:$LINENO: result: $ac_res" >&5
8042 -echo "${ECHO_T}$ac_res" >&6; }
8043 -if test `eval echo '${'$as_ac_Header'}'` = yes; then
8044 - cat >>confdefs.h <<_ACEOF
8045 -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8046 -_ACEOF
8049 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
8050 +$as_echo "$ac_cv_sizeof_long_long" >&6; }
8052 -done
8055 -# checks for typedefs
8056 -was_it_defined=no
8057 -{ echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
8058 -echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6; }
8059 -cat >conftest.$ac_ext <<_ACEOF
8060 -/* confdefs.h. */
8061 +cat >>confdefs.h <<_ACEOF
8062 +#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
8063 _ACEOF
8064 -cat confdefs.h >>conftest.$ac_ext
8065 -cat >>conftest.$ac_ext <<_ACEOF
8066 -/* end confdefs.h. */
8067 -#include <time.h>
8069 -_ACEOF
8070 -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8071 - $EGREP "clock_t" >/dev/null 2>&1; then
8072 - was_it_defined=yes
8073 -else
8077 +ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#ifdef HAVE_STDINT_H
8078 + #include <stdint.h>
8079 + #endif
8081 +if test "x$ac_cv_type_uintptr_t" = xyes; then :
8083 -cat >>confdefs.h <<\_ACEOF
8084 -#define clock_t long
8085 +cat >>confdefs.h <<_ACEOF
8086 +#define HAVE_UINTPTR_T 1
8087 _ACEOF
8089 +# The cast to long int works around a bug in the HP C Compiler
8090 +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8091 +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8092 +# This bug is HP SR number 8606223364.
8093 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uintptr_t" >&5
8094 +$as_echo_n "checking size of uintptr_t... " >&6; }
8095 +if ${ac_cv_sizeof_uintptr_t+:} false; then :
8096 + $as_echo_n "(cached) " >&6
8097 +else
8098 + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uintptr_t))" "ac_cv_sizeof_uintptr_t" "$ac_includes_default"; then :
8100 +else
8101 + if test "$ac_cv_type_uintptr_t" = yes; then
8102 + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8103 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8104 +as_fn_error 77 "cannot compute sizeof (uintptr_t)
8105 +See \`config.log' for more details" "$LINENO" 5; }
8106 + else
8107 + ac_cv_sizeof_uintptr_t=0
8108 + fi
8112 -rm -f conftest*
8113 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uintptr_t" >&5
8114 +$as_echo "$ac_cv_sizeof_uintptr_t" >&6; }
8116 -{ echo "$as_me:$LINENO: result: $was_it_defined" >&5
8117 -echo "${ECHO_T}$was_it_defined" >&6; }
8119 -# Check whether using makedev requires defining _OSF_SOURCE
8120 -{ echo "$as_me:$LINENO: checking for makedev" >&5
8121 -echo $ECHO_N "checking for makedev... $ECHO_C" >&6; }
8122 -cat >conftest.$ac_ext <<_ACEOF
8123 -/* confdefs.h. */
8124 -_ACEOF
8125 -cat confdefs.h >>conftest.$ac_ext
8126 -cat >>conftest.$ac_ext <<_ACEOF
8127 -/* end confdefs.h. */
8128 -#include <sys/types.h>
8129 -int
8130 -main ()
8132 - makedev(0, 0)
8134 - return 0;
8137 +cat >>confdefs.h <<_ACEOF
8138 +#define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
8139 _ACEOF
8140 -rm -f conftest.$ac_objext conftest$ac_exeext
8141 -if { (ac_try="$ac_link"
8142 -case "(($ac_try" in
8143 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8144 - *) ac_try_echo=$ac_try;;
8145 -esac
8146 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8147 - (eval "$ac_link") 2>conftest.er1
8148 - ac_status=$?
8149 - grep -v '^ *+' conftest.er1 >conftest.err
8150 - rm -f conftest.er1
8151 - cat conftest.err >&5
8152 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
8153 - (exit $ac_status); } && {
8154 - test -z "$ac_c_werror_flag" ||
8155 - test ! -s conftest.err
8156 - } && test -s conftest$ac_exeext &&
8157 - $as_test_x conftest$ac_exeext; then
8158 - ac_cv_has_makedev=yes
8159 -else
8160 - echo "$as_me: failed program was:" >&5
8161 -sed 's/^/| /' conftest.$ac_ext >&5
8163 - ac_cv_has_makedev=no
8167 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8168 - conftest$ac_exeext conftest.$ac_ext
8169 -if test "$ac_cv_has_makedev" = "no"; then
8170 - # we didn't link, try if _OSF_SOURCE will allow us to link
8171 - cat >conftest.$ac_ext <<_ACEOF
8172 -/* confdefs.h. */
8173 -_ACEOF
8174 -cat confdefs.h >>conftest.$ac_ext
8175 -cat >>conftest.$ac_ext <<_ACEOF
8176 -/* end confdefs.h. */
8178 -#define _OSF_SOURCE 1
8179 -#include <sys/types.h>
8181 -int
8182 -main ()
8183 +# Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.
8184 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
8185 +$as_echo_n "checking size of off_t... " >&6; }
8186 +if ${ac_cv_sizeof_off_t+:} false; then :
8187 + $as_echo_n "(cached) " >&6
8188 +else
8189 + if test "$cross_compiling" = yes; then :
8190 + ac_cv_sizeof_off_t=4
8191 +else
8192 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8193 +/* end confdefs.h. */
8194 +#include <stdio.h>
8195 +#include <sys/types.h>
8196 +main()
8198 - makedev(0, 0)
8200 - return 0;
8201 + FILE *f=fopen("conftestval", "w");
8202 + if (!f) exit(1);
8203 + fprintf(f, "%d\n", sizeof(off_t));
8204 + exit(0);
8206 _ACEOF
8207 -rm -f conftest.$ac_objext conftest$ac_exeext
8208 -if { (ac_try="$ac_link"
8209 -case "(($ac_try" in
8210 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8211 - *) ac_try_echo=$ac_try;;
8212 -esac
8213 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8214 - (eval "$ac_link") 2>conftest.er1
8215 - ac_status=$?
8216 - grep -v '^ *+' conftest.er1 >conftest.err
8217 - rm -f conftest.er1
8218 - cat conftest.err >&5
8219 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
8220 - (exit $ac_status); } && {
8221 - test -z "$ac_c_werror_flag" ||
8222 - test ! -s conftest.err
8223 - } && test -s conftest$ac_exeext &&
8224 - $as_test_x conftest$ac_exeext; then
8225 - ac_cv_has_makedev=yes
8226 +if ac_fn_c_try_run "$LINENO"; then :
8227 + ac_cv_sizeof_off_t=`cat conftestval`
8228 else
8229 - echo "$as_me: failed program was:" >&5
8230 -sed 's/^/| /' conftest.$ac_ext >&5
8231 + ac_cv_sizeof_off_t=0
8233 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8234 + conftest.$ac_objext conftest.beam conftest.$ac_ext
8238 - ac_cv_has_makedev=no
8241 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8242 - conftest$ac_exeext conftest.$ac_ext
8243 - if test "$ac_cv_has_makedev" = "yes"; then
8244 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
8245 +$as_echo "$ac_cv_sizeof_off_t" >&6; }
8247 -cat >>confdefs.h <<\_ACEOF
8248 -#define _OSF_SOURCE 1
8249 +cat >>confdefs.h <<_ACEOF
8250 +#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
8251 _ACEOF
8253 - fi
8255 -{ echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
8256 -echo "${ECHO_T}$ac_cv_has_makedev" >&6; }
8257 -if test "$ac_cv_has_makedev" = "yes"; then
8259 -cat >>confdefs.h <<\_ACEOF
8260 -#define HAVE_MAKEDEV 1
8261 -_ACEOF
8262 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable large file support" >&5
8263 +$as_echo_n "checking whether to enable large file support... " >&6; }
8264 +if test "$have_long_long" = yes -a \
8265 + "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
8266 + "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
8268 +$as_echo "#define HAVE_LARGEFILE_SUPPORT 1" >>confdefs.h
8270 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8271 +$as_echo "yes" >&6; }
8272 +else
8273 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8274 +$as_echo "no" >&6; }
8277 -# Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
8278 -# the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
8279 -# defined, but the compiler does not support pragma redefine_extname,
8280 -# and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
8281 -# structures (such as rlimit64) without declaring them. As a
8282 -# work-around, disable LFS on such configurations
8284 -use_lfs=yes
8285 -{ echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
8286 -echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6; }
8287 -cat >conftest.$ac_ext <<_ACEOF
8288 -/* confdefs.h. */
8289 -_ACEOF
8290 -cat confdefs.h >>conftest.$ac_ext
8291 -cat >>conftest.$ac_ext <<_ACEOF
8292 +# AC_CHECK_SIZEOF() doesn't include <time.h>.
8293 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
8294 +$as_echo_n "checking size of time_t... " >&6; }
8295 +if ${ac_cv_sizeof_time_t+:} false; then :
8296 + $as_echo_n "(cached) " >&6
8297 +else
8298 + if test "$cross_compiling" = yes; then :
8299 + ac_cv_sizeof_time_t=4
8300 +else
8301 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8302 /* end confdefs.h. */
8304 -#define _LARGEFILE_SOURCE 1
8305 -#define _FILE_OFFSET_BITS 64
8306 -#include <sys/resource.h>
8308 -int
8309 -main ()
8310 +#include <stdio.h>
8311 +#include <time.h>
8312 +main()
8314 -struct rlimit foo;
8316 - return 0;
8317 + FILE *f=fopen("conftestval", "w");
8318 + if (!f) exit(1);
8319 + fprintf(f, "%d\n", sizeof(time_t));
8320 + exit(0);
8322 _ACEOF
8323 -rm -f conftest.$ac_objext
8324 -if { (ac_try="$ac_compile"
8325 -case "(($ac_try" in
8326 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8327 - *) ac_try_echo=$ac_try;;
8328 -esac
8329 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8330 - (eval "$ac_compile") 2>conftest.er1
8331 - ac_status=$?
8332 - grep -v '^ *+' conftest.er1 >conftest.err
8333 - rm -f conftest.er1
8334 - cat conftest.err >&5
8335 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
8336 - (exit $ac_status); } && {
8337 - test -z "$ac_c_werror_flag" ||
8338 - test ! -s conftest.err
8339 - } && test -s conftest.$ac_objext; then
8340 - sol_lfs_bug=no
8341 +if ac_fn_c_try_run "$LINENO"; then :
8342 + ac_cv_sizeof_time_t=`cat conftestval`
8343 else
8344 - echo "$as_me: failed program was:" >&5
8345 -sed 's/^/| /' conftest.$ac_ext >&5
8347 - sol_lfs_bug=yes
8348 + ac_cv_sizeof_time_t=0
8351 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8352 -{ echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
8353 -echo "${ECHO_T}$sol_lfs_bug" >&6; }
8354 -if test "$sol_lfs_bug" = "yes"; then
8355 - use_lfs=no
8356 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8357 + conftest.$ac_objext conftest.beam conftest.$ac_ext
8360 -if test "$use_lfs" = "yes"; then
8361 -# Two defines needed to enable largefile support on various platforms
8362 -# These may affect some typedefs
8364 -cat >>confdefs.h <<\_ACEOF
8365 -#define _LARGEFILE_SOURCE 1
8366 -_ACEOF
8369 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
8370 +$as_echo "$ac_cv_sizeof_time_t" >&6; }
8372 -cat >>confdefs.h <<\_ACEOF
8373 -#define _FILE_OFFSET_BITS 64
8374 +cat >>confdefs.h <<_ACEOF
8375 +#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
8376 _ACEOF
8380 -# Add some code to confdefs.h so that the test for off_t works on SCO
8381 -cat >> confdefs.h <<\EOF
8382 -#if defined(SCO_DS)
8383 -#undef _OFF_T
8384 -#endif
8385 -EOF
8387 -# Type availability checks
8388 -{ echo "$as_me:$LINENO: checking for mode_t" >&5
8389 -echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
8390 -if test "${ac_cv_type_mode_t+set}" = set; then
8391 - echo $ECHO_N "(cached) $ECHO_C" >&6
8392 -else
8393 - cat >conftest.$ac_ext <<_ACEOF
8394 -/* confdefs.h. */
8395 -_ACEOF
8396 -cat confdefs.h >>conftest.$ac_ext
8397 -cat >>conftest.$ac_ext <<_ACEOF
8398 +# if have pthread_t then define SIZEOF_PTHREAD_T
8399 +ac_save_cc="$CC"
8400 +if test "$ac_cv_kpthread" = "yes"
8401 +then CC="$CC -Kpthread"
8402 +elif test "$ac_cv_kthread" = "yes"
8403 +then CC="$CC -Kthread"
8404 +elif test "$ac_cv_pthread" = "yes"
8405 +then CC="$CC -pthread"
8407 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_t" >&5
8408 +$as_echo_n "checking for pthread_t... " >&6; }
8409 +have_pthread_t=no
8410 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8411 /* end confdefs.h. */
8412 -$ac_includes_default
8413 -typedef mode_t ac__type_new_;
8414 +#include <pthread.h>
8416 main ()
8418 -if ((ac__type_new_ *) 0)
8419 - return 0;
8420 -if (sizeof (ac__type_new_))
8421 - return 0;
8422 +pthread_t x; x = *(pthread_t*)0;
8424 return 0;
8426 _ACEOF
8427 -rm -f conftest.$ac_objext
8428 -if { (ac_try="$ac_compile"
8429 -case "(($ac_try" in
8430 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8431 - *) ac_try_echo=$ac_try;;
8432 -esac
8433 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8434 - (eval "$ac_compile") 2>conftest.er1
8435 - ac_status=$?
8436 - grep -v '^ *+' conftest.er1 >conftest.err
8437 - rm -f conftest.er1
8438 - cat conftest.err >&5
8439 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
8440 - (exit $ac_status); } && {
8441 - test -z "$ac_c_werror_flag" ||
8442 - test ! -s conftest.err
8443 - } && test -s conftest.$ac_objext; then
8444 - ac_cv_type_mode_t=yes
8445 -else
8446 - echo "$as_me: failed program was:" >&5
8447 -sed 's/^/| /' conftest.$ac_ext >&5
8449 - ac_cv_type_mode_t=no
8450 +if ac_fn_c_try_compile "$LINENO"; then :
8451 + have_pthread_t=yes
8454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8456 -{ echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
8457 -echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
8458 -if test $ac_cv_type_mode_t = yes; then
8460 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_t" >&5
8461 +$as_echo "$have_pthread_t" >&6; }
8462 +if test "$have_pthread_t" = yes ; then
8463 + # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
8464 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
8465 +$as_echo_n "checking size of pthread_t... " >&6; }
8466 + if ${ac_cv_sizeof_pthread_t+:} false; then :
8467 + $as_echo_n "(cached) " >&6
8468 else
8470 -cat >>confdefs.h <<_ACEOF
8471 -#define mode_t int
8472 -_ACEOF
8476 -{ echo "$as_me:$LINENO: checking for off_t" >&5
8477 -echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
8478 -if test "${ac_cv_type_off_t+set}" = set; then
8479 - echo $ECHO_N "(cached) $ECHO_C" >&6
8480 + if test "$cross_compiling" = yes; then :
8481 + ac_cv_sizeof_pthread_t=4
8482 else
8483 - cat >conftest.$ac_ext <<_ACEOF
8484 -/* confdefs.h. */
8485 -_ACEOF
8486 -cat confdefs.h >>conftest.$ac_ext
8487 -cat >>conftest.$ac_ext <<_ACEOF
8488 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8489 /* end confdefs.h. */
8490 -$ac_includes_default
8491 -typedef off_t ac__type_new_;
8492 -int
8493 -main ()
8495 -if ((ac__type_new_ *) 0)
8496 - return 0;
8497 -if (sizeof (ac__type_new_))
8498 - return 0;
8500 - return 0;
8502 +#include <stdio.h>
8503 +#include <pthread.h>
8504 + main()
8506 + FILE *f=fopen("conftestval", "w");
8507 + if (!f) exit(1);
8508 + fprintf(f, "%d\n", sizeof(pthread_t));
8509 + exit(0);
8511 _ACEOF
8512 -rm -f conftest.$ac_objext
8513 -if { (ac_try="$ac_compile"
8514 -case "(($ac_try" in
8515 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8516 - *) ac_try_echo=$ac_try;;
8517 -esac
8518 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8519 - (eval "$ac_compile") 2>conftest.er1
8520 - ac_status=$?
8521 - grep -v '^ *+' conftest.er1 >conftest.err
8522 - rm -f conftest.er1
8523 - cat conftest.err >&5
8524 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525 - (exit $ac_status); } && {
8526 - test -z "$ac_c_werror_flag" ||
8527 - test ! -s conftest.err
8528 - } && test -s conftest.$ac_objext; then
8529 - ac_cv_type_off_t=yes
8530 +if ac_fn_c_try_run "$LINENO"; then :
8531 + ac_cv_sizeof_pthread_t=`cat conftestval`
8532 else
8533 - echo "$as_me: failed program was:" >&5
8534 -sed 's/^/| /' conftest.$ac_ext >&5
8536 - ac_cv_type_off_t=no
8537 + ac_cv_sizeof_pthread_t=0
8540 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8541 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8542 + conftest.$ac_objext conftest.beam conftest.$ac_ext
8544 -{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8545 -echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
8546 -if test $ac_cv_type_off_t = yes; then
8548 -else
8550 -cat >>confdefs.h <<_ACEOF
8551 -#define off_t long int
8552 -_ACEOF
8556 -{ echo "$as_me:$LINENO: checking for pid_t" >&5
8557 -echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
8558 -if test "${ac_cv_type_pid_t+set}" = set; then
8559 - echo $ECHO_N "(cached) $ECHO_C" >&6
8560 -else
8561 - cat >conftest.$ac_ext <<_ACEOF
8562 -/* confdefs.h. */
8563 -_ACEOF
8564 -cat confdefs.h >>conftest.$ac_ext
8565 -cat >>conftest.$ac_ext <<_ACEOF
8566 -/* end confdefs.h. */
8567 -$ac_includes_default
8568 -typedef pid_t ac__type_new_;
8569 -int
8570 -main ()
8572 -if ((ac__type_new_ *) 0)
8573 - return 0;
8574 -if (sizeof (ac__type_new_))
8575 - return 0;
8577 - return 0;
8579 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
8580 +$as_echo "$ac_cv_sizeof_pthread_t" >&6; }
8582 +cat >>confdefs.h <<_ACEOF
8583 +#define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
8584 _ACEOF
8585 -rm -f conftest.$ac_objext
8586 -if { (ac_try="$ac_compile"
8587 -case "(($ac_try" in
8588 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8589 - *) ac_try_echo=$ac_try;;
8590 -esac
8591 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8592 - (eval "$ac_compile") 2>conftest.er1
8593 - ac_status=$?
8594 - grep -v '^ *+' conftest.er1 >conftest.err
8595 - rm -f conftest.er1
8596 - cat conftest.err >&5
8597 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598 - (exit $ac_status); } && {
8599 - test -z "$ac_c_werror_flag" ||
8600 - test ! -s conftest.err
8601 - } && test -s conftest.$ac_objext; then
8602 - ac_cv_type_pid_t=yes
8603 -else
8604 - echo "$as_me: failed program was:" >&5
8605 -sed 's/^/| /' conftest.$ac_ext >&5
8607 - ac_cv_type_pid_t=no
8609 +CC="$ac_save_cc"
8611 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8612 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-toolbox-glue" >&5
8613 +$as_echo_n "checking for --enable-toolbox-glue... " >&6; }
8614 +# Check whether --enable-toolbox-glue was given.
8615 +if test "${enable_toolbox_glue+set}" = set; then :
8616 + enableval=$enable_toolbox_glue;
8618 -{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
8619 -echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
8620 -if test $ac_cv_type_pid_t = yes; then
8622 -else
8624 -cat >>confdefs.h <<_ACEOF
8625 -#define pid_t int
8626 -_ACEOF
8628 +if test -z "$enable_toolbox_glue"
8629 +then
8630 + case $ac_sys_system/$ac_sys_release in
8631 + Darwin/*)
8632 + enable_toolbox_glue="yes";;
8633 + *)
8634 + enable_toolbox_glue="no";;
8635 + esac
8637 +case "$enable_toolbox_glue" in
8638 +yes)
8639 + extra_machdep_objs="Python/mactoolboxglue.o"
8640 + extra_undefs="-u _PyMac_Error"
8642 -{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
8643 -echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
8644 -if test "${ac_cv_type_signal+set}" = set; then
8645 - echo $ECHO_N "(cached) $ECHO_C" >&6
8646 -else
8647 - cat >conftest.$ac_ext <<_ACEOF
8648 -/* confdefs.h. */
8649 -_ACEOF
8650 -cat confdefs.h >>conftest.$ac_ext
8651 -cat >>conftest.$ac_ext <<_ACEOF
8652 -/* end confdefs.h. */
8653 -#include <sys/types.h>
8654 -#include <signal.h>
8655 +$as_echo "#define USE_TOOLBOX_OBJECT_GLUE 1" >>confdefs.h
8657 -int
8658 -main ()
8660 -return *(signal (0, 0)) (0) == 1;
8662 - return 0;
8664 -_ACEOF
8665 -rm -f conftest.$ac_objext
8666 -if { (ac_try="$ac_compile"
8667 -case "(($ac_try" in
8668 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8669 - *) ac_try_echo=$ac_try;;
8670 + ;;
8672 + extra_machdep_objs=""
8673 + extra_undefs=""
8674 + ;;
8675 esac
8676 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8677 - (eval "$ac_compile") 2>conftest.er1
8678 - ac_status=$?
8679 - grep -v '^ *+' conftest.er1 >conftest.err
8680 - rm -f conftest.er1
8681 - cat conftest.err >&5
8682 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
8683 - (exit $ac_status); } && {
8684 - test -z "$ac_c_werror_flag" ||
8685 - test ! -s conftest.err
8686 - } && test -s conftest.$ac_objext; then
8687 - ac_cv_type_signal=int
8688 -else
8689 - echo "$as_me: failed program was:" >&5
8690 -sed 's/^/| /' conftest.$ac_ext >&5
8691 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_toolbox_glue" >&5
8692 +$as_echo "$enable_toolbox_glue" >&6; }
8694 - ac_cv_type_signal=void
8697 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8699 -{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
8700 -echo "${ECHO_T}$ac_cv_type_signal" >&6; }
8701 +case $ac_sys_system/$ac_sys_release in
8702 + Darwin/[01567]\..*)
8703 + OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
8704 + ;;
8705 + Darwin/*)
8706 + OTHER_LIBTOOL_OPT=""
8707 + ;;
8708 +esac
8710 -cat >>confdefs.h <<_ACEOF
8711 -#define RETSIGTYPE $ac_cv_type_signal
8712 -_ACEOF
8714 +case $ac_sys_system/$ac_sys_release in
8715 + Darwin/[01567]\..*)
8716 + LIBTOOL_CRUFT="-framework System -lcc_dynamic"
8717 + if test "${enable_universalsdk}"; then
8719 + else
8720 + LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch`"
8721 + fi
8722 + LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
8723 + LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
8724 + Darwin/*)
8725 + gcc_version=`gcc -v 2>&1 | grep version | cut -d\ -f3`
8726 + if test ${gcc_version} '<' 4.0
8727 + then
8728 + LIBTOOL_CRUFT="-lcc_dynamic"
8729 + else
8730 + LIBTOOL_CRUFT=""
8731 + fi
8732 + LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch`"
8733 + LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
8734 + LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
8735 +esac
8737 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-framework" >&5
8738 +$as_echo_n "checking for --enable-framework... " >&6; }
8739 +if test "$enable_framework"
8740 +then
8741 + BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
8742 + # -F. is needed to allow linking to the framework while
8743 + # in the build location.
8745 +$as_echo "#define WITH_NEXT_FRAMEWORK 1" >>confdefs.h
8747 -{ echo "$as_me:$LINENO: checking for size_t" >&5
8748 -echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
8749 -if test "${ac_cv_type_size_t+set}" = set; then
8750 - echo $ECHO_N "(cached) $ECHO_C" >&6
8751 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8752 +$as_echo "yes" >&6; }
8753 else
8754 - cat >conftest.$ac_ext <<_ACEOF
8755 -/* confdefs.h. */
8756 -_ACEOF
8757 -cat confdefs.h >>conftest.$ac_ext
8758 -cat >>conftest.$ac_ext <<_ACEOF
8759 -/* end confdefs.h. */
8760 -$ac_includes_default
8761 -typedef size_t ac__type_new_;
8762 -int
8763 -main ()
8765 -if ((ac__type_new_ *) 0)
8766 - return 0;
8767 -if (sizeof (ac__type_new_))
8768 - return 0;
8770 - return 0;
8772 -_ACEOF
8773 -rm -f conftest.$ac_objext
8774 -if { (ac_try="$ac_compile"
8775 -case "(($ac_try" in
8776 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8777 - *) ac_try_echo=$ac_try;;
8778 -esac
8779 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8780 - (eval "$ac_compile") 2>conftest.er1
8781 - ac_status=$?
8782 - grep -v '^ *+' conftest.er1 >conftest.err
8783 - rm -f conftest.er1
8784 - cat conftest.err >&5
8785 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
8786 - (exit $ac_status); } && {
8787 - test -z "$ac_c_werror_flag" ||
8788 - test ! -s conftest.err
8789 - } && test -s conftest.$ac_objext; then
8790 - ac_cv_type_size_t=yes
8791 -else
8792 - echo "$as_me: failed program was:" >&5
8793 -sed 's/^/| /' conftest.$ac_ext >&5
8795 - ac_cv_type_size_t=no
8798 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8800 -{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8801 -echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
8802 -if test $ac_cv_type_size_t = yes; then
8804 -else
8806 -cat >>confdefs.h <<_ACEOF
8807 -#define size_t unsigned int
8808 -_ACEOF
8812 -{ echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
8813 -echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
8814 -if test "${ac_cv_type_uid_t+set}" = set; then
8815 - echo $ECHO_N "(cached) $ECHO_C" >&6
8816 -else
8817 - cat >conftest.$ac_ext <<_ACEOF
8818 -/* confdefs.h. */
8819 -_ACEOF
8820 -cat confdefs.h >>conftest.$ac_ext
8821 -cat >>conftest.$ac_ext <<_ACEOF
8822 -/* end confdefs.h. */
8823 -#include <sys/types.h>
8825 -_ACEOF
8826 -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8827 - $EGREP "uid_t" >/dev/null 2>&1; then
8828 - ac_cv_type_uid_t=yes
8829 -else
8830 - ac_cv_type_uid_t=no
8831 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8832 +$as_echo "no" >&6; }
8834 -rm -f conftest*
8837 -{ echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
8838 -echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
8839 -if test $ac_cv_type_uid_t = no; then
8841 -cat >>confdefs.h <<\_ACEOF
8842 -#define uid_t int
8843 -_ACEOF
8846 -cat >>confdefs.h <<\_ACEOF
8847 -#define gid_t int
8848 -_ACEOF
8849 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dyld" >&5
8850 +$as_echo_n "checking for dyld... " >&6; }
8851 +case $ac_sys_system/$ac_sys_release in
8852 + Darwin/*)
8855 +$as_echo "#define WITH_DYLD 1" >>confdefs.h
8857 -{ echo "$as_me:$LINENO: checking for ssize_t" >&5
8858 -echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
8859 -if test "${ac_cv_type_ssize_t+set}" = set; then
8860 - echo $ECHO_N "(cached) $ECHO_C" >&6
8861 -else
8862 - cat >conftest.$ac_ext <<_ACEOF
8863 -/* confdefs.h. */
8864 -_ACEOF
8865 -cat confdefs.h >>conftest.$ac_ext
8866 -cat >>conftest.$ac_ext <<_ACEOF
8867 -/* end confdefs.h. */
8868 -$ac_includes_default
8869 -typedef ssize_t ac__type_new_;
8870 -int
8871 -main ()
8873 -if ((ac__type_new_ *) 0)
8874 - return 0;
8875 -if (sizeof (ac__type_new_))
8876 - return 0;
8878 - return 0;
8880 -_ACEOF
8881 -rm -f conftest.$ac_objext
8882 -if { (ac_try="$ac_compile"
8883 -case "(($ac_try" in
8884 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8885 - *) ac_try_echo=$ac_try;;
8886 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: always on for Darwin" >&5
8887 +$as_echo "always on for Darwin" >&6; }
8888 + ;;
8889 + *)
8890 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8891 +$as_echo "no" >&6; }
8892 + ;;
8893 esac
8894 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8895 - (eval "$ac_compile") 2>conftest.er1
8896 - ac_status=$?
8897 - grep -v '^ *+' conftest.er1 >conftest.err
8898 - rm -f conftest.er1
8899 - cat conftest.err >&5
8900 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901 - (exit $ac_status); } && {
8902 - test -z "$ac_c_werror_flag" ||
8903 - test ! -s conftest.err
8904 - } && test -s conftest.$ac_objext; then
8905 - ac_cv_type_ssize_t=yes
8906 -else
8907 - echo "$as_me: failed program was:" >&5
8908 -sed 's/^/| /' conftest.$ac_ext >&5
8910 - ac_cv_type_ssize_t=no
8912 +# Set info about shared libraries.
8914 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8916 -{ echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
8917 -echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
8918 -if test $ac_cv_type_ssize_t = yes; then
8920 -cat >>confdefs.h <<\_ACEOF
8921 -#define HAVE_SSIZE_T 1
8922 -_ACEOF
8927 -# Sizes of various common basic types
8928 -# ANSI C requires sizeof(char) == 1, so no need to check it
8929 -{ echo "$as_me:$LINENO: checking for int" >&5
8930 -echo $ECHO_N "checking for int... $ECHO_C" >&6; }
8931 -if test "${ac_cv_type_int+set}" = set; then
8932 - echo $ECHO_N "(cached) $ECHO_C" >&6
8933 -else
8934 - cat >conftest.$ac_ext <<_ACEOF
8935 -/* confdefs.h. */
8936 -_ACEOF
8937 -cat confdefs.h >>conftest.$ac_ext
8938 -cat >>conftest.$ac_ext <<_ACEOF
8939 -/* end confdefs.h. */
8940 -$ac_includes_default
8941 -typedef int ac__type_new_;
8942 -int
8943 -main ()
8945 -if ((ac__type_new_ *) 0)
8946 - return 0;
8947 -if (sizeof (ac__type_new_))
8948 - return 0;
8950 - return 0;
8952 -_ACEOF
8953 -rm -f conftest.$ac_objext
8954 -if { (ac_try="$ac_compile"
8955 -case "(($ac_try" in
8956 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8957 - *) ac_try_echo=$ac_try;;
8958 -esac
8959 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8960 - (eval "$ac_compile") 2>conftest.er1
8961 - ac_status=$?
8962 - grep -v '^ *+' conftest.er1 >conftest.err
8963 - rm -f conftest.er1
8964 - cat conftest.err >&5
8965 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
8966 - (exit $ac_status); } && {
8967 - test -z "$ac_c_werror_flag" ||
8968 - test ! -s conftest.err
8969 - } && test -s conftest.$ac_objext; then
8970 - ac_cv_type_int=yes
8971 +# SO is the extension of shared libraries `(including the dot!)
8972 +# -- usually .so, .sl on HP-UX, .dll on Cygwin
8973 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SO" >&5
8974 +$as_echo_n "checking SO... " >&6; }
8975 +if test -z "$SO"
8976 +then
8977 + case $ac_sys_system in
8978 + hp*|HP*)
8979 + case `uname -m` in
8980 + ia64) SO=.so;;
8981 + *) SO=.sl;;
8982 + esac
8983 + ;;
8984 + CYGWIN*) SO=.dll;;
8985 + *) SO=.so;;
8986 + esac
8987 else
8988 - echo "$as_me: failed program was:" >&5
8989 -sed 's/^/| /' conftest.$ac_ext >&5
8991 - ac_cv_type_int=no
8994 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8995 + # this might also be a termcap variable, see #610332
8996 + echo
8997 + echo '====================================================================='
8998 + echo '+ +'
8999 + echo '+ WARNING: You have set SO in your environment. +'
9000 + echo '+ Do you really mean to change the extension for shared libraries? +'
9001 + echo '+ Continuing in 10 seconds to let you to ponder. +'
9002 + echo '+ +'
9003 + echo '====================================================================='
9004 + sleep 10
9006 -{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
9007 -echo "${ECHO_T}$ac_cv_type_int" >&6; }
9008 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SO" >&5
9009 +$as_echo "$SO" >&6; }
9011 -# The cast to long int works around a bug in the HP C Compiler
9012 -# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9013 -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9014 -# This bug is HP SR number 8606223364.
9015 -{ echo "$as_me:$LINENO: checking size of int" >&5
9016 -echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
9017 -if test "${ac_cv_sizeof_int+set}" = set; then
9018 - echo $ECHO_N "(cached) $ECHO_C" >&6
9019 -else
9020 - if test "$cross_compiling" = yes; then
9021 - # Depending upon the size, compute the lo and hi bounds.
9022 -cat >conftest.$ac_ext <<_ACEOF
9023 -/* confdefs.h. */
9024 +cat >>confdefs.h <<_ACEOF
9025 +#define SHLIB_EXT "$SO"
9026 _ACEOF
9027 -cat confdefs.h >>conftest.$ac_ext
9028 -cat >>conftest.$ac_ext <<_ACEOF
9029 -/* end confdefs.h. */
9030 -$ac_includes_default
9031 - typedef int ac__type_sizeof_;
9032 -int
9033 -main ()
9035 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9036 -test_array [0] = 0
9039 - return 0;
9041 -_ACEOF
9042 -rm -f conftest.$ac_objext
9043 -if { (ac_try="$ac_compile"
9044 -case "(($ac_try" in
9045 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9046 - *) ac_try_echo=$ac_try;;
9047 -esac
9048 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9049 - (eval "$ac_compile") 2>conftest.er1
9050 - ac_status=$?
9051 - grep -v '^ *+' conftest.er1 >conftest.err
9052 - rm -f conftest.er1
9053 - cat conftest.err >&5
9054 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9055 - (exit $ac_status); } && {
9056 - test -z "$ac_c_werror_flag" ||
9057 - test ! -s conftest.err
9058 - } && test -s conftest.$ac_objext; then
9059 - ac_lo=0 ac_mid=0
9060 - while :; do
9061 - cat >conftest.$ac_ext <<_ACEOF
9062 -/* confdefs.h. */
9063 -_ACEOF
9064 -cat confdefs.h >>conftest.$ac_ext
9065 -cat >>conftest.$ac_ext <<_ACEOF
9066 -/* end confdefs.h. */
9067 -$ac_includes_default
9068 - typedef int ac__type_sizeof_;
9069 -int
9070 -main ()
9072 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9073 -test_array [0] = 0
9074 +# LDSHARED is the ld *command* used to create shared library
9075 +# -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
9076 +# (Shared libraries in this instance are shared modules to be loaded into
9077 +# Python, as opposed to building Python itself as a shared library.)
9078 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LDSHARED" >&5
9079 +$as_echo_n "checking LDSHARED... " >&6; }
9080 +if test -z "$LDSHARED"
9081 +then
9082 + case $ac_sys_system/$ac_sys_release in
9083 + AIX*)
9084 + BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
9085 + LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
9086 + ;;
9087 + BeOS*)
9088 + BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
9089 + LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
9090 + ;;
9091 + IRIX/5*) LDSHARED="ld -shared";;
9092 + IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
9093 + SunOS/5*)
9094 + if test "$GCC" = "yes"
9095 + then LDSHARED='$(CC) -shared'
9096 + else LDSHARED='$(CC) -G';
9097 + fi ;;
9098 + hp*|HP*) LDSHARED="ld -b";;
9099 + OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
9100 + Darwin/1.3*)
9101 + LDSHARED='$(CC) $(LDFLAGS) -bundle'
9102 + if test "$enable_framework" ; then
9103 + # Link against the framework. All externals should be defined.
9104 + BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
9105 + LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
9106 + else
9107 + # No framework. Ignore undefined symbols, assuming they come from Python
9108 + LDSHARED="$LDSHARED -undefined suppress"
9109 + fi ;;
9110 + Darwin/1.4*|Darwin/5.*|Darwin/6.*)
9111 + LDSHARED='$(CC) $(LDFLAGS) -bundle'
9112 + if test "$enable_framework" ; then
9113 + # Link against the framework. All externals should be defined.
9114 + BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
9115 + LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
9116 + else
9117 + # No framework, use the Python app as bundle-loader
9118 + BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
9119 + LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
9120 + fi ;;
9121 + Darwin/*)
9122 + # Use -undefined dynamic_lookup whenever possible (10.3 and later).
9123 + # This allows an extension to be used in any Python
9124 + cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
9125 + if test ${cur_target} '>' 10.2; then
9126 + cur_target=10.3
9127 + fi
9128 + CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
9131 - return 0;
9133 -_ACEOF
9134 -rm -f conftest.$ac_objext
9135 -if { (ac_try="$ac_compile"
9136 -case "(($ac_try" in
9137 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9138 - *) ac_try_echo=$ac_try;;
9139 -esac
9140 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9141 - (eval "$ac_compile") 2>conftest.er1
9142 - ac_status=$?
9143 - grep -v '^ *+' conftest.er1 >conftest.err
9144 - rm -f conftest.er1
9145 - cat conftest.err >&5
9146 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9147 - (exit $ac_status); } && {
9148 - test -z "$ac_c_werror_flag" ||
9149 - test ! -s conftest.err
9150 - } && test -s conftest.$ac_objext; then
9151 - ac_hi=$ac_mid; break
9152 -else
9153 - echo "$as_me: failed program was:" >&5
9154 -sed 's/^/| /' conftest.$ac_ext >&5
9155 + # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the
9156 + # environment with a value that is the same as what we'll use
9157 + # in the Makefile to ensure that we'll get the same compiler
9158 + # environment during configure and build time.
9159 + MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET"
9160 + export MACOSX_DEPLOYMENT_TARGET
9162 - ac_lo=`expr $ac_mid + 1`
9163 - if test $ac_lo -le $ac_mid; then
9164 - ac_lo= ac_hi=
9165 - break
9166 + EXPORT_MACOSX_DEPLOYMENT_TARGET=''
9167 + if test ${MACOSX_DEPLOYMENT_TARGET-${cur_target}} '>' 10.2
9168 + then
9169 + if test "${enable_universalsdk}"; then
9170 + LDFLAGS="-arch i386 -arch ppc -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
9172 - ac_mid=`expr 2 '*' $ac_mid + 1`
9175 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9176 - done
9177 -else
9178 - echo "$as_me: failed program was:" >&5
9179 -sed 's/^/| /' conftest.$ac_ext >&5
9181 - cat >conftest.$ac_ext <<_ACEOF
9182 -/* confdefs.h. */
9183 -_ACEOF
9184 -cat confdefs.h >>conftest.$ac_ext
9185 -cat >>conftest.$ac_ext <<_ACEOF
9186 -/* end confdefs.h. */
9187 -$ac_includes_default
9188 - typedef int ac__type_sizeof_;
9189 -int
9190 -main ()
9192 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9193 -test_array [0] = 0
9196 - return 0;
9198 -_ACEOF
9199 -rm -f conftest.$ac_objext
9200 -if { (ac_try="$ac_compile"
9201 -case "(($ac_try" in
9202 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9203 - *) ac_try_echo=$ac_try;;
9204 -esac
9205 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9206 - (eval "$ac_compile") 2>conftest.er1
9207 - ac_status=$?
9208 - grep -v '^ *+' conftest.er1 >conftest.err
9209 - rm -f conftest.er1
9210 - cat conftest.err >&5
9211 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9212 - (exit $ac_status); } && {
9213 - test -z "$ac_c_werror_flag" ||
9214 - test ! -s conftest.err
9215 - } && test -s conftest.$ac_objext; then
9216 - ac_hi=-1 ac_mid=-1
9217 - while :; do
9218 - cat >conftest.$ac_ext <<_ACEOF
9219 -/* confdefs.h. */
9220 -_ACEOF
9221 -cat confdefs.h >>conftest.$ac_ext
9222 -cat >>conftest.$ac_ext <<_ACEOF
9223 -/* end confdefs.h. */
9224 -$ac_includes_default
9225 - typedef int ac__type_sizeof_;
9226 -int
9227 -main ()
9229 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9230 -test_array [0] = 0
9233 - return 0;
9235 -_ACEOF
9236 -rm -f conftest.$ac_objext
9237 -if { (ac_try="$ac_compile"
9238 -case "(($ac_try" in
9239 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9240 - *) ac_try_echo=$ac_try;;
9241 -esac
9242 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9243 - (eval "$ac_compile") 2>conftest.er1
9244 - ac_status=$?
9245 - grep -v '^ *+' conftest.er1 >conftest.err
9246 - rm -f conftest.er1
9247 - cat conftest.err >&5
9248 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9249 - (exit $ac_status); } && {
9250 - test -z "$ac_c_werror_flag" ||
9251 - test ! -s conftest.err
9252 - } && test -s conftest.$ac_objext; then
9253 - ac_lo=$ac_mid; break
9254 -else
9255 - echo "$as_me: failed program was:" >&5
9256 -sed 's/^/| /' conftest.$ac_ext >&5
9258 - ac_hi=`expr '(' $ac_mid ')' - 1`
9259 - if test $ac_mid -le $ac_hi; then
9260 - ac_lo= ac_hi=
9261 - break
9262 + LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
9263 + BLDSHARED="$LDSHARED"
9264 + else
9265 + LDSHARED='$(CC) $(LDFLAGS) -bundle'
9266 + if test "$enable_framework" ; then
9267 + # Link against the framework. All externals should be defined.
9268 + BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
9269 + LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
9270 + else
9271 + # No framework, use the Python app as bundle-loader
9272 + BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
9273 + LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
9275 - ac_mid=`expr 2 '*' $ac_mid`
9276 + fi
9277 + ;;
9278 + Linux*|GNU*) LDSHARED='$(CC) -shared';;
9279 + BSD/OS*/4*) LDSHARED="gcc -shared";;
9280 + FreeBSD*)
9281 + if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
9282 + then
9283 + LDSHARED="$CC -shared ${LDFLAGS}"
9284 + else
9285 + LDSHARED="ld -Bshareable ${LDFLAGS}"
9286 + fi;;
9287 + OpenBSD*)
9288 + if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
9289 + then
9290 + LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
9291 + else
9292 + case `uname -r` in
9293 + [01].* | 2.[0-7] | 2.[0-7].*)
9294 + LDSHARED="ld -Bshareable ${LDFLAGS}"
9295 + ;;
9296 + *)
9297 + LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
9298 + ;;
9299 + esac
9300 + fi;;
9301 + NetBSD*|DragonFly*) LDSHARED="cc -shared ${LDFLAGS}";;
9302 + OpenUNIX*|UnixWare*)
9303 + if test "$GCC" = "yes"
9304 + then LDSHARED='$(CC) -shared'
9305 + else LDSHARED='$(CC) -G'
9306 + fi;;
9307 + SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';;
9308 + Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
9309 + CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";;
9310 + atheos*) LDSHARED="gcc -shared";;
9311 + *) LDSHARED="ld";;
9312 + esac
9315 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9316 - done
9317 -else
9318 - echo "$as_me: failed program was:" >&5
9319 -sed 's/^/| /' conftest.$ac_ext >&5
9321 - ac_lo= ac_hi=
9322 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDSHARED" >&5
9323 +$as_echo "$LDSHARED" >&6; }
9324 +BLDSHARED=${BLDSHARED-$LDSHARED}
9325 +# CCSHARED are the C *flags* used to create objects to go into a shared
9326 +# library (module) -- this is only needed for a few systems
9327 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CCSHARED" >&5
9328 +$as_echo_n "checking CCSHARED... " >&6; }
9329 +if test -z "$CCSHARED"
9330 +then
9331 + case $ac_sys_system/$ac_sys_release in
9332 + SunOS*) if test "$GCC" = yes;
9333 + then CCSHARED="-fPIC";
9334 + elif test `uname -p` = sparc;
9335 + then CCSHARED="-xcode=pic32";
9336 + else CCSHARED="-Kpic";
9337 + fi;;
9338 + hp*|HP*) if test "$GCC" = yes;
9339 + then CCSHARED="-fPIC";
9340 + else CCSHARED="+z";
9341 + fi;;
9342 + Linux*|GNU*) CCSHARED="-fPIC";;
9343 + BSD/OS*/4*) CCSHARED="-fpic";;
9344 + FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";;
9345 + OpenUNIX*|UnixWare*)
9346 + if test "$GCC" = "yes"
9347 + then CCSHARED="-fPIC"
9348 + else CCSHARED="-KPIC"
9349 + fi;;
9350 + SCO_SV*)
9351 + if test "$GCC" = "yes"
9352 + then CCSHARED="-fPIC"
9353 + else CCSHARED="-Kpic -belf"
9354 + fi;;
9355 + Monterey*) CCSHARED="-G";;
9356 + IRIX*/6*) case $CC in
9357 + *gcc*) CCSHARED="-shared";;
9358 + *) CCSHARED="";;
9359 + esac;;
9360 + atheos*) CCSHARED="-fPIC";;
9361 + esac
9363 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCSHARED" >&5
9364 +$as_echo "$CCSHARED" >&6; }
9365 +# LINKFORSHARED are the flags passed to the $(CC) command that links
9366 +# the python executable -- this is only needed for a few systems
9367 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKFORSHARED" >&5
9368 +$as_echo_n "checking LINKFORSHARED... " >&6; }
9369 +if test -z "$LINKFORSHARED"
9370 +then
9371 + case $ac_sys_system/$ac_sys_release in
9372 + AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';;
9373 + hp*|HP*)
9374 + LINKFORSHARED="-Wl,-E -Wl,+s";;
9375 +# LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
9376 + BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
9377 + Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
9378 + # -u libsys_s pulls in all symbols in libsys
9379 + Darwin/*)
9380 + # -u _PyMac_Error is needed to pull in the mac toolbox glue,
9381 + # which is
9382 + # not used by the core itself but which needs to be in the core so
9383 + # that dynamically loaded extension modules have access to it.
9384 + # -prebind is no longer used, because it actually seems to give a
9385 + # slowdown in stead of a speedup, maybe due to the large number of
9386 + # dynamic loads Python does.
9388 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9391 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9392 -# Binary search between lo and hi bounds.
9393 -while test "x$ac_lo" != "x$ac_hi"; do
9394 - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9395 - cat >conftest.$ac_ext <<_ACEOF
9396 -/* confdefs.h. */
9397 -_ACEOF
9398 -cat confdefs.h >>conftest.$ac_ext
9399 -cat >>conftest.$ac_ext <<_ACEOF
9400 -/* end confdefs.h. */
9401 -$ac_includes_default
9402 - typedef int ac__type_sizeof_;
9403 -int
9404 -main ()
9406 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9407 -test_array [0] = 0
9410 - return 0;
9412 -_ACEOF
9413 -rm -f conftest.$ac_objext
9414 -if { (ac_try="$ac_compile"
9415 -case "(($ac_try" in
9416 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9417 - *) ac_try_echo=$ac_try;;
9418 -esac
9419 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9420 - (eval "$ac_compile") 2>conftest.er1
9421 - ac_status=$?
9422 - grep -v '^ *+' conftest.er1 >conftest.err
9423 - rm -f conftest.er1
9424 - cat conftest.err >&5
9425 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9426 - (exit $ac_status); } && {
9427 - test -z "$ac_c_werror_flag" ||
9428 - test ! -s conftest.err
9429 - } && test -s conftest.$ac_objext; then
9430 - ac_hi=$ac_mid
9431 -else
9432 - echo "$as_me: failed program was:" >&5
9433 -sed 's/^/| /' conftest.$ac_ext >&5
9435 - ac_lo=`expr '(' $ac_mid ')' + 1`
9438 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9439 -done
9440 -case $ac_lo in
9441 -?*) ac_cv_sizeof_int=$ac_lo;;
9442 -'') if test "$ac_cv_type_int" = yes; then
9443 - { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
9444 -See \`config.log' for more details." >&5
9445 -echo "$as_me: error: cannot compute sizeof (int)
9446 -See \`config.log' for more details." >&2;}
9447 - { (exit 77); exit 77; }; }
9448 - else
9449 - ac_cv_sizeof_int=0
9450 - fi ;;
9451 -esac
9452 -else
9453 - cat >conftest.$ac_ext <<_ACEOF
9454 -/* confdefs.h. */
9455 -_ACEOF
9456 -cat confdefs.h >>conftest.$ac_ext
9457 -cat >>conftest.$ac_ext <<_ACEOF
9458 -/* end confdefs.h. */
9459 -$ac_includes_default
9460 - typedef int ac__type_sizeof_;
9461 -static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9462 -static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9463 -#include <stdio.h>
9464 -#include <stdlib.h>
9465 -int
9466 -main ()
9469 - FILE *f = fopen ("conftest.val", "w");
9470 - if (! f)
9471 - return 1;
9472 - if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9474 - long int i = longval ();
9475 - if (i != ((long int) (sizeof (ac__type_sizeof_))))
9476 - return 1;
9477 - fprintf (f, "%ld\n", i);
9479 - else
9481 - unsigned long int i = ulongval ();
9482 - if (i != ((long int) (sizeof (ac__type_sizeof_))))
9483 - return 1;
9484 - fprintf (f, "%lu\n", i);
9486 - return ferror (f) || fclose (f) != 0;
9489 - return 0;
9491 -_ACEOF
9492 -rm -f conftest$ac_exeext
9493 -if { (ac_try="$ac_link"
9494 -case "(($ac_try" in
9495 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9496 - *) ac_try_echo=$ac_try;;
9497 -esac
9498 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9499 - (eval "$ac_link") 2>&5
9500 - ac_status=$?
9501 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9502 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9503 - { (case "(($ac_try" in
9504 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9505 - *) ac_try_echo=$ac_try;;
9506 -esac
9507 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9508 - (eval "$ac_try") 2>&5
9509 - ac_status=$?
9510 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9511 - (exit $ac_status); }; }; then
9512 - ac_cv_sizeof_int=`cat conftest.val`
9513 -else
9514 - echo "$as_me: program exited with status $ac_status" >&5
9515 -echo "$as_me: failed program was:" >&5
9516 -sed 's/^/| /' conftest.$ac_ext >&5
9518 -( exit $ac_status )
9519 -if test "$ac_cv_type_int" = yes; then
9520 - { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
9521 -See \`config.log' for more details." >&5
9522 -echo "$as_me: error: cannot compute sizeof (int)
9523 -See \`config.log' for more details." >&2;}
9524 - { (exit 77); exit 77; }; }
9525 - else
9526 - ac_cv_sizeof_int=0
9527 - fi
9529 -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9531 -rm -f conftest.val
9533 -{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
9534 -echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
9538 -cat >>confdefs.h <<_ACEOF
9539 -#define SIZEOF_INT $ac_cv_sizeof_int
9540 -_ACEOF
9543 -{ echo "$as_me:$LINENO: checking for long" >&5
9544 -echo $ECHO_N "checking for long... $ECHO_C" >&6; }
9545 -if test "${ac_cv_type_long+set}" = set; then
9546 - echo $ECHO_N "(cached) $ECHO_C" >&6
9547 -else
9548 - cat >conftest.$ac_ext <<_ACEOF
9549 -/* confdefs.h. */
9550 -_ACEOF
9551 -cat confdefs.h >>conftest.$ac_ext
9552 -cat >>conftest.$ac_ext <<_ACEOF
9553 -/* end confdefs.h. */
9554 -$ac_includes_default
9555 -typedef long ac__type_new_;
9556 -int
9557 -main ()
9559 -if ((ac__type_new_ *) 0)
9560 - return 0;
9561 -if (sizeof (ac__type_new_))
9562 - return 0;
9564 - return 0;
9566 -_ACEOF
9567 -rm -f conftest.$ac_objext
9568 -if { (ac_try="$ac_compile"
9569 -case "(($ac_try" in
9570 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9571 - *) ac_try_echo=$ac_try;;
9572 -esac
9573 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9574 - (eval "$ac_compile") 2>conftest.er1
9575 - ac_status=$?
9576 - grep -v '^ *+' conftest.er1 >conftest.err
9577 - rm -f conftest.er1
9578 - cat conftest.err >&5
9579 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9580 - (exit $ac_status); } && {
9581 - test -z "$ac_c_werror_flag" ||
9582 - test ! -s conftest.err
9583 - } && test -s conftest.$ac_objext; then
9584 - ac_cv_type_long=yes
9585 -else
9586 - echo "$as_me: failed program was:" >&5
9587 -sed 's/^/| /' conftest.$ac_ext >&5
9589 - ac_cv_type_long=no
9592 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9594 -{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
9595 -echo "${ECHO_T}$ac_cv_type_long" >&6; }
9597 -# The cast to long int works around a bug in the HP C Compiler
9598 -# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9599 -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9600 -# This bug is HP SR number 8606223364.
9601 -{ echo "$as_me:$LINENO: checking size of long" >&5
9602 -echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
9603 -if test "${ac_cv_sizeof_long+set}" = set; then
9604 - echo $ECHO_N "(cached) $ECHO_C" >&6
9605 -else
9606 - if test "$cross_compiling" = yes; then
9607 - # Depending upon the size, compute the lo and hi bounds.
9608 -cat >conftest.$ac_ext <<_ACEOF
9609 -/* confdefs.h. */
9610 -_ACEOF
9611 -cat confdefs.h >>conftest.$ac_ext
9612 -cat >>conftest.$ac_ext <<_ACEOF
9613 -/* end confdefs.h. */
9614 -$ac_includes_default
9615 - typedef long ac__type_sizeof_;
9616 -int
9617 -main ()
9619 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9620 -test_array [0] = 0
9623 - return 0;
9625 -_ACEOF
9626 -rm -f conftest.$ac_objext
9627 -if { (ac_try="$ac_compile"
9628 -case "(($ac_try" in
9629 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9630 - *) ac_try_echo=$ac_try;;
9631 -esac
9632 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9633 - (eval "$ac_compile") 2>conftest.er1
9634 - ac_status=$?
9635 - grep -v '^ *+' conftest.er1 >conftest.err
9636 - rm -f conftest.er1
9637 - cat conftest.err >&5
9638 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9639 - (exit $ac_status); } && {
9640 - test -z "$ac_c_werror_flag" ||
9641 - test ! -s conftest.err
9642 - } && test -s conftest.$ac_objext; then
9643 - ac_lo=0 ac_mid=0
9644 - while :; do
9645 - cat >conftest.$ac_ext <<_ACEOF
9646 -/* confdefs.h. */
9647 -_ACEOF
9648 -cat confdefs.h >>conftest.$ac_ext
9649 -cat >>conftest.$ac_ext <<_ACEOF
9650 -/* end confdefs.h. */
9651 -$ac_includes_default
9652 - typedef long ac__type_sizeof_;
9653 -int
9654 -main ()
9656 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9657 -test_array [0] = 0
9660 - return 0;
9662 -_ACEOF
9663 -rm -f conftest.$ac_objext
9664 -if { (ac_try="$ac_compile"
9665 -case "(($ac_try" in
9666 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9667 - *) ac_try_echo=$ac_try;;
9668 -esac
9669 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9670 - (eval "$ac_compile") 2>conftest.er1
9671 - ac_status=$?
9672 - grep -v '^ *+' conftest.er1 >conftest.err
9673 - rm -f conftest.er1
9674 - cat conftest.err >&5
9675 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9676 - (exit $ac_status); } && {
9677 - test -z "$ac_c_werror_flag" ||
9678 - test ! -s conftest.err
9679 - } && test -s conftest.$ac_objext; then
9680 - ac_hi=$ac_mid; break
9681 -else
9682 - echo "$as_me: failed program was:" >&5
9683 -sed 's/^/| /' conftest.$ac_ext >&5
9685 - ac_lo=`expr $ac_mid + 1`
9686 - if test $ac_lo -le $ac_mid; then
9687 - ac_lo= ac_hi=
9688 - break
9689 - fi
9690 - ac_mid=`expr 2 '*' $ac_mid + 1`
9693 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9694 - done
9695 -else
9696 - echo "$as_me: failed program was:" >&5
9697 -sed 's/^/| /' conftest.$ac_ext >&5
9699 - cat >conftest.$ac_ext <<_ACEOF
9700 -/* confdefs.h. */
9701 -_ACEOF
9702 -cat confdefs.h >>conftest.$ac_ext
9703 -cat >>conftest.$ac_ext <<_ACEOF
9704 -/* end confdefs.h. */
9705 -$ac_includes_default
9706 - typedef long ac__type_sizeof_;
9707 -int
9708 -main ()
9710 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9711 -test_array [0] = 0
9714 - return 0;
9716 -_ACEOF
9717 -rm -f conftest.$ac_objext
9718 -if { (ac_try="$ac_compile"
9719 -case "(($ac_try" in
9720 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9721 - *) ac_try_echo=$ac_try;;
9722 -esac
9723 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9724 - (eval "$ac_compile") 2>conftest.er1
9725 - ac_status=$?
9726 - grep -v '^ *+' conftest.er1 >conftest.err
9727 - rm -f conftest.er1
9728 - cat conftest.err >&5
9729 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9730 - (exit $ac_status); } && {
9731 - test -z "$ac_c_werror_flag" ||
9732 - test ! -s conftest.err
9733 - } && test -s conftest.$ac_objext; then
9734 - ac_hi=-1 ac_mid=-1
9735 - while :; do
9736 - cat >conftest.$ac_ext <<_ACEOF
9737 -/* confdefs.h. */
9738 -_ACEOF
9739 -cat confdefs.h >>conftest.$ac_ext
9740 -cat >>conftest.$ac_ext <<_ACEOF
9741 -/* end confdefs.h. */
9742 -$ac_includes_default
9743 - typedef long ac__type_sizeof_;
9744 -int
9745 -main ()
9747 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9748 -test_array [0] = 0
9751 - return 0;
9753 -_ACEOF
9754 -rm -f conftest.$ac_objext
9755 -if { (ac_try="$ac_compile"
9756 -case "(($ac_try" in
9757 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9758 - *) ac_try_echo=$ac_try;;
9759 -esac
9760 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9761 - (eval "$ac_compile") 2>conftest.er1
9762 - ac_status=$?
9763 - grep -v '^ *+' conftest.er1 >conftest.err
9764 - rm -f conftest.er1
9765 - cat conftest.err >&5
9766 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9767 - (exit $ac_status); } && {
9768 - test -z "$ac_c_werror_flag" ||
9769 - test ! -s conftest.err
9770 - } && test -s conftest.$ac_objext; then
9771 - ac_lo=$ac_mid; break
9772 -else
9773 - echo "$as_me: failed program was:" >&5
9774 -sed 's/^/| /' conftest.$ac_ext >&5
9776 - ac_hi=`expr '(' $ac_mid ')' - 1`
9777 - if test $ac_mid -le $ac_hi; then
9778 - ac_lo= ac_hi=
9779 - break
9780 - fi
9781 - ac_mid=`expr 2 '*' $ac_mid`
9784 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9785 - done
9786 -else
9787 - echo "$as_me: failed program was:" >&5
9788 -sed 's/^/| /' conftest.$ac_ext >&5
9790 - ac_lo= ac_hi=
9793 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9796 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9797 -# Binary search between lo and hi bounds.
9798 -while test "x$ac_lo" != "x$ac_hi"; do
9799 - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9800 - cat >conftest.$ac_ext <<_ACEOF
9801 -/* confdefs.h. */
9802 -_ACEOF
9803 -cat confdefs.h >>conftest.$ac_ext
9804 -cat >>conftest.$ac_ext <<_ACEOF
9805 -/* end confdefs.h. */
9806 -$ac_includes_default
9807 - typedef long ac__type_sizeof_;
9808 -int
9809 -main ()
9811 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9812 -test_array [0] = 0
9815 - return 0;
9817 -_ACEOF
9818 -rm -f conftest.$ac_objext
9819 -if { (ac_try="$ac_compile"
9820 -case "(($ac_try" in
9821 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9822 - *) ac_try_echo=$ac_try;;
9823 -esac
9824 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9825 - (eval "$ac_compile") 2>conftest.er1
9826 - ac_status=$?
9827 - grep -v '^ *+' conftest.er1 >conftest.err
9828 - rm -f conftest.er1
9829 - cat conftest.err >&5
9830 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831 - (exit $ac_status); } && {
9832 - test -z "$ac_c_werror_flag" ||
9833 - test ! -s conftest.err
9834 - } && test -s conftest.$ac_objext; then
9835 - ac_hi=$ac_mid
9836 -else
9837 - echo "$as_me: failed program was:" >&5
9838 -sed 's/^/| /' conftest.$ac_ext >&5
9840 - ac_lo=`expr '(' $ac_mid ')' + 1`
9843 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9844 -done
9845 -case $ac_lo in
9846 -?*) ac_cv_sizeof_long=$ac_lo;;
9847 -'') if test "$ac_cv_type_long" = yes; then
9848 - { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
9849 -See \`config.log' for more details." >&5
9850 -echo "$as_me: error: cannot compute sizeof (long)
9851 -See \`config.log' for more details." >&2;}
9852 - { (exit 77); exit 77; }; }
9853 - else
9854 - ac_cv_sizeof_long=0
9855 - fi ;;
9856 -esac
9857 -else
9858 - cat >conftest.$ac_ext <<_ACEOF
9859 -/* confdefs.h. */
9860 -_ACEOF
9861 -cat confdefs.h >>conftest.$ac_ext
9862 -cat >>conftest.$ac_ext <<_ACEOF
9863 -/* end confdefs.h. */
9864 -$ac_includes_default
9865 - typedef long ac__type_sizeof_;
9866 -static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9867 -static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9868 -#include <stdio.h>
9869 -#include <stdlib.h>
9870 -int
9871 -main ()
9874 - FILE *f = fopen ("conftest.val", "w");
9875 - if (! f)
9876 - return 1;
9877 - if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9879 - long int i = longval ();
9880 - if (i != ((long int) (sizeof (ac__type_sizeof_))))
9881 - return 1;
9882 - fprintf (f, "%ld\n", i);
9884 - else
9886 - unsigned long int i = ulongval ();
9887 - if (i != ((long int) (sizeof (ac__type_sizeof_))))
9888 - return 1;
9889 - fprintf (f, "%lu\n", i);
9891 - return ferror (f) || fclose (f) != 0;
9894 - return 0;
9896 -_ACEOF
9897 -rm -f conftest$ac_exeext
9898 -if { (ac_try="$ac_link"
9899 -case "(($ac_try" in
9900 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9901 - *) ac_try_echo=$ac_try;;
9902 -esac
9903 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9904 - (eval "$ac_link") 2>&5
9905 - ac_status=$?
9906 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9907 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9908 - { (case "(($ac_try" in
9909 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9910 - *) ac_try_echo=$ac_try;;
9911 -esac
9912 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9913 - (eval "$ac_try") 2>&5
9914 - ac_status=$?
9915 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9916 - (exit $ac_status); }; }; then
9917 - ac_cv_sizeof_long=`cat conftest.val`
9918 -else
9919 - echo "$as_me: program exited with status $ac_status" >&5
9920 -echo "$as_me: failed program was:" >&5
9921 -sed 's/^/| /' conftest.$ac_ext >&5
9923 -( exit $ac_status )
9924 -if test "$ac_cv_type_long" = yes; then
9925 - { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
9926 -See \`config.log' for more details." >&5
9927 -echo "$as_me: error: cannot compute sizeof (long)
9928 -See \`config.log' for more details." >&2;}
9929 - { (exit 77); exit 77; }; }
9930 - else
9931 - ac_cv_sizeof_long=0
9932 - fi
9934 -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9936 -rm -f conftest.val
9938 -{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
9939 -echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
9943 -cat >>confdefs.h <<_ACEOF
9944 -#define SIZEOF_LONG $ac_cv_sizeof_long
9945 -_ACEOF
9948 -{ echo "$as_me:$LINENO: checking for void *" >&5
9949 -echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
9950 -if test "${ac_cv_type_void_p+set}" = set; then
9951 - echo $ECHO_N "(cached) $ECHO_C" >&6
9952 -else
9953 - cat >conftest.$ac_ext <<_ACEOF
9954 -/* confdefs.h. */
9955 -_ACEOF
9956 -cat confdefs.h >>conftest.$ac_ext
9957 -cat >>conftest.$ac_ext <<_ACEOF
9958 -/* end confdefs.h. */
9959 -$ac_includes_default
9960 -typedef void * ac__type_new_;
9961 -int
9962 -main ()
9964 -if ((ac__type_new_ *) 0)
9965 - return 0;
9966 -if (sizeof (ac__type_new_))
9967 - return 0;
9969 - return 0;
9971 -_ACEOF
9972 -rm -f conftest.$ac_objext
9973 -if { (ac_try="$ac_compile"
9974 -case "(($ac_try" in
9975 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9976 - *) ac_try_echo=$ac_try;;
9977 -esac
9978 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9979 - (eval "$ac_compile") 2>conftest.er1
9980 - ac_status=$?
9981 - grep -v '^ *+' conftest.er1 >conftest.err
9982 - rm -f conftest.er1
9983 - cat conftest.err >&5
9984 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9985 - (exit $ac_status); } && {
9986 - test -z "$ac_c_werror_flag" ||
9987 - test ! -s conftest.err
9988 - } && test -s conftest.$ac_objext; then
9989 - ac_cv_type_void_p=yes
9990 -else
9991 - echo "$as_me: failed program was:" >&5
9992 -sed 's/^/| /' conftest.$ac_ext >&5
9994 - ac_cv_type_void_p=no
9997 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9999 -{ echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
10000 -echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
10002 -# The cast to long int works around a bug in the HP C Compiler
10003 -# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10004 -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10005 -# This bug is HP SR number 8606223364.
10006 -{ echo "$as_me:$LINENO: checking size of void *" >&5
10007 -echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
10008 -if test "${ac_cv_sizeof_void_p+set}" = set; then
10009 - echo $ECHO_N "(cached) $ECHO_C" >&6
10010 -else
10011 - if test "$cross_compiling" = yes; then
10012 - # Depending upon the size, compute the lo and hi bounds.
10013 -cat >conftest.$ac_ext <<_ACEOF
10014 -/* confdefs.h. */
10015 -_ACEOF
10016 -cat confdefs.h >>conftest.$ac_ext
10017 -cat >>conftest.$ac_ext <<_ACEOF
10018 -/* end confdefs.h. */
10019 -$ac_includes_default
10020 - typedef void * ac__type_sizeof_;
10021 -int
10022 -main ()
10024 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10025 -test_array [0] = 0
10028 - return 0;
10030 -_ACEOF
10031 -rm -f conftest.$ac_objext
10032 -if { (ac_try="$ac_compile"
10033 -case "(($ac_try" in
10034 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10035 - *) ac_try_echo=$ac_try;;
10036 -esac
10037 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10038 - (eval "$ac_compile") 2>conftest.er1
10039 - ac_status=$?
10040 - grep -v '^ *+' conftest.er1 >conftest.err
10041 - rm -f conftest.er1
10042 - cat conftest.err >&5
10043 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044 - (exit $ac_status); } && {
10045 - test -z "$ac_c_werror_flag" ||
10046 - test ! -s conftest.err
10047 - } && test -s conftest.$ac_objext; then
10048 - ac_lo=0 ac_mid=0
10049 - while :; do
10050 - cat >conftest.$ac_ext <<_ACEOF
10051 -/* confdefs.h. */
10052 -_ACEOF
10053 -cat confdefs.h >>conftest.$ac_ext
10054 -cat >>conftest.$ac_ext <<_ACEOF
10055 -/* end confdefs.h. */
10056 -$ac_includes_default
10057 - typedef void * ac__type_sizeof_;
10058 -int
10059 -main ()
10061 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10062 -test_array [0] = 0
10065 - return 0;
10067 -_ACEOF
10068 -rm -f conftest.$ac_objext
10069 -if { (ac_try="$ac_compile"
10070 -case "(($ac_try" in
10071 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10072 - *) ac_try_echo=$ac_try;;
10073 -esac
10074 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10075 - (eval "$ac_compile") 2>conftest.er1
10076 - ac_status=$?
10077 - grep -v '^ *+' conftest.er1 >conftest.err
10078 - rm -f conftest.er1
10079 - cat conftest.err >&5
10080 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10081 - (exit $ac_status); } && {
10082 - test -z "$ac_c_werror_flag" ||
10083 - test ! -s conftest.err
10084 - } && test -s conftest.$ac_objext; then
10085 - ac_hi=$ac_mid; break
10086 -else
10087 - echo "$as_me: failed program was:" >&5
10088 -sed 's/^/| /' conftest.$ac_ext >&5
10090 - ac_lo=`expr $ac_mid + 1`
10091 - if test $ac_lo -le $ac_mid; then
10092 - ac_lo= ac_hi=
10093 - break
10094 - fi
10095 - ac_mid=`expr 2 '*' $ac_mid + 1`
10098 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10099 - done
10100 -else
10101 - echo "$as_me: failed program was:" >&5
10102 -sed 's/^/| /' conftest.$ac_ext >&5
10104 - cat >conftest.$ac_ext <<_ACEOF
10105 -/* confdefs.h. */
10106 -_ACEOF
10107 -cat confdefs.h >>conftest.$ac_ext
10108 -cat >>conftest.$ac_ext <<_ACEOF
10109 -/* end confdefs.h. */
10110 -$ac_includes_default
10111 - typedef void * ac__type_sizeof_;
10112 -int
10113 -main ()
10115 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10116 -test_array [0] = 0
10119 - return 0;
10121 -_ACEOF
10122 -rm -f conftest.$ac_objext
10123 -if { (ac_try="$ac_compile"
10124 -case "(($ac_try" in
10125 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10126 - *) ac_try_echo=$ac_try;;
10127 -esac
10128 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10129 - (eval "$ac_compile") 2>conftest.er1
10130 - ac_status=$?
10131 - grep -v '^ *+' conftest.er1 >conftest.err
10132 - rm -f conftest.er1
10133 - cat conftest.err >&5
10134 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10135 - (exit $ac_status); } && {
10136 - test -z "$ac_c_werror_flag" ||
10137 - test ! -s conftest.err
10138 - } && test -s conftest.$ac_objext; then
10139 - ac_hi=-1 ac_mid=-1
10140 - while :; do
10141 - cat >conftest.$ac_ext <<_ACEOF
10142 -/* confdefs.h. */
10143 -_ACEOF
10144 -cat confdefs.h >>conftest.$ac_ext
10145 -cat >>conftest.$ac_ext <<_ACEOF
10146 -/* end confdefs.h. */
10147 -$ac_includes_default
10148 - typedef void * ac__type_sizeof_;
10149 -int
10150 -main ()
10152 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10153 -test_array [0] = 0
10156 - return 0;
10158 -_ACEOF
10159 -rm -f conftest.$ac_objext
10160 -if { (ac_try="$ac_compile"
10161 -case "(($ac_try" in
10162 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10163 - *) ac_try_echo=$ac_try;;
10164 -esac
10165 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10166 - (eval "$ac_compile") 2>conftest.er1
10167 - ac_status=$?
10168 - grep -v '^ *+' conftest.er1 >conftest.err
10169 - rm -f conftest.er1
10170 - cat conftest.err >&5
10171 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10172 - (exit $ac_status); } && {
10173 - test -z "$ac_c_werror_flag" ||
10174 - test ! -s conftest.err
10175 - } && test -s conftest.$ac_objext; then
10176 - ac_lo=$ac_mid; break
10177 -else
10178 - echo "$as_me: failed program was:" >&5
10179 -sed 's/^/| /' conftest.$ac_ext >&5
10181 - ac_hi=`expr '(' $ac_mid ')' - 1`
10182 - if test $ac_mid -le $ac_hi; then
10183 - ac_lo= ac_hi=
10184 - break
10185 - fi
10186 - ac_mid=`expr 2 '*' $ac_mid`
10189 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10190 - done
10191 -else
10192 - echo "$as_me: failed program was:" >&5
10193 -sed 's/^/| /' conftest.$ac_ext >&5
10195 - ac_lo= ac_hi=
10198 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10201 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10202 -# Binary search between lo and hi bounds.
10203 -while test "x$ac_lo" != "x$ac_hi"; do
10204 - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10205 - cat >conftest.$ac_ext <<_ACEOF
10206 -/* confdefs.h. */
10207 -_ACEOF
10208 -cat confdefs.h >>conftest.$ac_ext
10209 -cat >>conftest.$ac_ext <<_ACEOF
10210 -/* end confdefs.h. */
10211 -$ac_includes_default
10212 - typedef void * ac__type_sizeof_;
10213 -int
10214 -main ()
10216 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10217 -test_array [0] = 0
10220 - return 0;
10222 -_ACEOF
10223 -rm -f conftest.$ac_objext
10224 -if { (ac_try="$ac_compile"
10225 -case "(($ac_try" in
10226 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10227 - *) ac_try_echo=$ac_try;;
10228 -esac
10229 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10230 - (eval "$ac_compile") 2>conftest.er1
10231 - ac_status=$?
10232 - grep -v '^ *+' conftest.er1 >conftest.err
10233 - rm -f conftest.er1
10234 - cat conftest.err >&5
10235 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10236 - (exit $ac_status); } && {
10237 - test -z "$ac_c_werror_flag" ||
10238 - test ! -s conftest.err
10239 - } && test -s conftest.$ac_objext; then
10240 - ac_hi=$ac_mid
10241 -else
10242 - echo "$as_me: failed program was:" >&5
10243 -sed 's/^/| /' conftest.$ac_ext >&5
10245 - ac_lo=`expr '(' $ac_mid ')' + 1`
10248 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10249 -done
10250 -case $ac_lo in
10251 -?*) ac_cv_sizeof_void_p=$ac_lo;;
10252 -'') if test "$ac_cv_type_void_p" = yes; then
10253 - { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
10254 -See \`config.log' for more details." >&5
10255 -echo "$as_me: error: cannot compute sizeof (void *)
10256 -See \`config.log' for more details." >&2;}
10257 - { (exit 77); exit 77; }; }
10258 - else
10259 - ac_cv_sizeof_void_p=0
10260 - fi ;;
10261 -esac
10262 -else
10263 - cat >conftest.$ac_ext <<_ACEOF
10264 -/* confdefs.h. */
10265 -_ACEOF
10266 -cat confdefs.h >>conftest.$ac_ext
10267 -cat >>conftest.$ac_ext <<_ACEOF
10268 -/* end confdefs.h. */
10269 -$ac_includes_default
10270 - typedef void * ac__type_sizeof_;
10271 -static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10272 -static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10273 -#include <stdio.h>
10274 -#include <stdlib.h>
10275 -int
10276 -main ()
10279 - FILE *f = fopen ("conftest.val", "w");
10280 - if (! f)
10281 - return 1;
10282 - if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10284 - long int i = longval ();
10285 - if (i != ((long int) (sizeof (ac__type_sizeof_))))
10286 - return 1;
10287 - fprintf (f, "%ld\n", i);
10289 - else
10291 - unsigned long int i = ulongval ();
10292 - if (i != ((long int) (sizeof (ac__type_sizeof_))))
10293 - return 1;
10294 - fprintf (f, "%lu\n", i);
10296 - return ferror (f) || fclose (f) != 0;
10299 - return 0;
10301 -_ACEOF
10302 -rm -f conftest$ac_exeext
10303 -if { (ac_try="$ac_link"
10304 -case "(($ac_try" in
10305 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10306 - *) ac_try_echo=$ac_try;;
10307 -esac
10308 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10309 - (eval "$ac_link") 2>&5
10310 - ac_status=$?
10311 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10312 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10313 - { (case "(($ac_try" in
10314 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10315 - *) ac_try_echo=$ac_try;;
10316 -esac
10317 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10318 - (eval "$ac_try") 2>&5
10319 - ac_status=$?
10320 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10321 - (exit $ac_status); }; }; then
10322 - ac_cv_sizeof_void_p=`cat conftest.val`
10323 -else
10324 - echo "$as_me: program exited with status $ac_status" >&5
10325 -echo "$as_me: failed program was:" >&5
10326 -sed 's/^/| /' conftest.$ac_ext >&5
10328 -( exit $ac_status )
10329 -if test "$ac_cv_type_void_p" = yes; then
10330 - { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
10331 -See \`config.log' for more details." >&5
10332 -echo "$as_me: error: cannot compute sizeof (void *)
10333 -See \`config.log' for more details." >&2;}
10334 - { (exit 77); exit 77; }; }
10335 - else
10336 - ac_cv_sizeof_void_p=0
10337 - fi
10339 -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10341 -rm -f conftest.val
10343 -{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
10344 -echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
10348 -cat >>confdefs.h <<_ACEOF
10349 -#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
10350 -_ACEOF
10353 -{ echo "$as_me:$LINENO: checking for short" >&5
10354 -echo $ECHO_N "checking for short... $ECHO_C" >&6; }
10355 -if test "${ac_cv_type_short+set}" = set; then
10356 - echo $ECHO_N "(cached) $ECHO_C" >&6
10357 -else
10358 - cat >conftest.$ac_ext <<_ACEOF
10359 -/* confdefs.h. */
10360 -_ACEOF
10361 -cat confdefs.h >>conftest.$ac_ext
10362 -cat >>conftest.$ac_ext <<_ACEOF
10363 -/* end confdefs.h. */
10364 -$ac_includes_default
10365 -typedef short ac__type_new_;
10366 -int
10367 -main ()
10369 -if ((ac__type_new_ *) 0)
10370 - return 0;
10371 -if (sizeof (ac__type_new_))
10372 - return 0;
10374 - return 0;
10376 -_ACEOF
10377 -rm -f conftest.$ac_objext
10378 -if { (ac_try="$ac_compile"
10379 -case "(($ac_try" in
10380 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10381 - *) ac_try_echo=$ac_try;;
10382 -esac
10383 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10384 - (eval "$ac_compile") 2>conftest.er1
10385 - ac_status=$?
10386 - grep -v '^ *+' conftest.er1 >conftest.err
10387 - rm -f conftest.er1
10388 - cat conftest.err >&5
10389 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10390 - (exit $ac_status); } && {
10391 - test -z "$ac_c_werror_flag" ||
10392 - test ! -s conftest.err
10393 - } && test -s conftest.$ac_objext; then
10394 - ac_cv_type_short=yes
10395 -else
10396 - echo "$as_me: failed program was:" >&5
10397 -sed 's/^/| /' conftest.$ac_ext >&5
10399 - ac_cv_type_short=no
10402 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10404 -{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
10405 -echo "${ECHO_T}$ac_cv_type_short" >&6; }
10407 -# The cast to long int works around a bug in the HP C Compiler
10408 -# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10409 -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10410 -# This bug is HP SR number 8606223364.
10411 -{ echo "$as_me:$LINENO: checking size of short" >&5
10412 -echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
10413 -if test "${ac_cv_sizeof_short+set}" = set; then
10414 - echo $ECHO_N "(cached) $ECHO_C" >&6
10415 -else
10416 - if test "$cross_compiling" = yes; then
10417 - # Depending upon the size, compute the lo and hi bounds.
10418 -cat >conftest.$ac_ext <<_ACEOF
10419 -/* confdefs.h. */
10420 -_ACEOF
10421 -cat confdefs.h >>conftest.$ac_ext
10422 -cat >>conftest.$ac_ext <<_ACEOF
10423 -/* end confdefs.h. */
10424 -$ac_includes_default
10425 - typedef short ac__type_sizeof_;
10426 -int
10427 -main ()
10429 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10430 -test_array [0] = 0
10433 - return 0;
10435 -_ACEOF
10436 -rm -f conftest.$ac_objext
10437 -if { (ac_try="$ac_compile"
10438 -case "(($ac_try" in
10439 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10440 - *) ac_try_echo=$ac_try;;
10441 -esac
10442 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10443 - (eval "$ac_compile") 2>conftest.er1
10444 - ac_status=$?
10445 - grep -v '^ *+' conftest.er1 >conftest.err
10446 - rm -f conftest.er1
10447 - cat conftest.err >&5
10448 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449 - (exit $ac_status); } && {
10450 - test -z "$ac_c_werror_flag" ||
10451 - test ! -s conftest.err
10452 - } && test -s conftest.$ac_objext; then
10453 - ac_lo=0 ac_mid=0
10454 - while :; do
10455 - cat >conftest.$ac_ext <<_ACEOF
10456 -/* confdefs.h. */
10457 -_ACEOF
10458 -cat confdefs.h >>conftest.$ac_ext
10459 -cat >>conftest.$ac_ext <<_ACEOF
10460 -/* end confdefs.h. */
10461 -$ac_includes_default
10462 - typedef short ac__type_sizeof_;
10463 -int
10464 -main ()
10466 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10467 -test_array [0] = 0
10470 - return 0;
10472 -_ACEOF
10473 -rm -f conftest.$ac_objext
10474 -if { (ac_try="$ac_compile"
10475 -case "(($ac_try" in
10476 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10477 - *) ac_try_echo=$ac_try;;
10478 -esac
10479 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10480 - (eval "$ac_compile") 2>conftest.er1
10481 - ac_status=$?
10482 - grep -v '^ *+' conftest.er1 >conftest.err
10483 - rm -f conftest.er1
10484 - cat conftest.err >&5
10485 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10486 - (exit $ac_status); } && {
10487 - test -z "$ac_c_werror_flag" ||
10488 - test ! -s conftest.err
10489 - } && test -s conftest.$ac_objext; then
10490 - ac_hi=$ac_mid; break
10491 -else
10492 - echo "$as_me: failed program was:" >&5
10493 -sed 's/^/| /' conftest.$ac_ext >&5
10495 - ac_lo=`expr $ac_mid + 1`
10496 - if test $ac_lo -le $ac_mid; then
10497 - ac_lo= ac_hi=
10498 - break
10499 - fi
10500 - ac_mid=`expr 2 '*' $ac_mid + 1`
10503 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10504 - done
10505 -else
10506 - echo "$as_me: failed program was:" >&5
10507 -sed 's/^/| /' conftest.$ac_ext >&5
10509 - cat >conftest.$ac_ext <<_ACEOF
10510 -/* confdefs.h. */
10511 -_ACEOF
10512 -cat confdefs.h >>conftest.$ac_ext
10513 -cat >>conftest.$ac_ext <<_ACEOF
10514 -/* end confdefs.h. */
10515 -$ac_includes_default
10516 - typedef short ac__type_sizeof_;
10517 -int
10518 -main ()
10520 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10521 -test_array [0] = 0
10524 - return 0;
10526 -_ACEOF
10527 -rm -f conftest.$ac_objext
10528 -if { (ac_try="$ac_compile"
10529 -case "(($ac_try" in
10530 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10531 - *) ac_try_echo=$ac_try;;
10532 -esac
10533 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10534 - (eval "$ac_compile") 2>conftest.er1
10535 - ac_status=$?
10536 - grep -v '^ *+' conftest.er1 >conftest.err
10537 - rm -f conftest.er1
10538 - cat conftest.err >&5
10539 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540 - (exit $ac_status); } && {
10541 - test -z "$ac_c_werror_flag" ||
10542 - test ! -s conftest.err
10543 - } && test -s conftest.$ac_objext; then
10544 - ac_hi=-1 ac_mid=-1
10545 - while :; do
10546 - cat >conftest.$ac_ext <<_ACEOF
10547 -/* confdefs.h. */
10548 -_ACEOF
10549 -cat confdefs.h >>conftest.$ac_ext
10550 -cat >>conftest.$ac_ext <<_ACEOF
10551 -/* end confdefs.h. */
10552 -$ac_includes_default
10553 - typedef short ac__type_sizeof_;
10554 -int
10555 -main ()
10557 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10558 -test_array [0] = 0
10561 - return 0;
10563 -_ACEOF
10564 -rm -f conftest.$ac_objext
10565 -if { (ac_try="$ac_compile"
10566 -case "(($ac_try" in
10567 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10568 - *) ac_try_echo=$ac_try;;
10569 -esac
10570 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10571 - (eval "$ac_compile") 2>conftest.er1
10572 - ac_status=$?
10573 - grep -v '^ *+' conftest.er1 >conftest.err
10574 - rm -f conftest.er1
10575 - cat conftest.err >&5
10576 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10577 - (exit $ac_status); } && {
10578 - test -z "$ac_c_werror_flag" ||
10579 - test ! -s conftest.err
10580 - } && test -s conftest.$ac_objext; then
10581 - ac_lo=$ac_mid; break
10582 -else
10583 - echo "$as_me: failed program was:" >&5
10584 -sed 's/^/| /' conftest.$ac_ext >&5
10586 - ac_hi=`expr '(' $ac_mid ')' - 1`
10587 - if test $ac_mid -le $ac_hi; then
10588 - ac_lo= ac_hi=
10589 - break
10590 - fi
10591 - ac_mid=`expr 2 '*' $ac_mid`
10594 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10595 - done
10596 -else
10597 - echo "$as_me: failed program was:" >&5
10598 -sed 's/^/| /' conftest.$ac_ext >&5
10600 - ac_lo= ac_hi=
10603 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10606 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10607 -# Binary search between lo and hi bounds.
10608 -while test "x$ac_lo" != "x$ac_hi"; do
10609 - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10610 - cat >conftest.$ac_ext <<_ACEOF
10611 -/* confdefs.h. */
10612 -_ACEOF
10613 -cat confdefs.h >>conftest.$ac_ext
10614 -cat >>conftest.$ac_ext <<_ACEOF
10615 -/* end confdefs.h. */
10616 -$ac_includes_default
10617 - typedef short ac__type_sizeof_;
10618 -int
10619 -main ()
10621 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10622 -test_array [0] = 0
10625 - return 0;
10627 -_ACEOF
10628 -rm -f conftest.$ac_objext
10629 -if { (ac_try="$ac_compile"
10630 -case "(($ac_try" in
10631 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10632 - *) ac_try_echo=$ac_try;;
10633 -esac
10634 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10635 - (eval "$ac_compile") 2>conftest.er1
10636 - ac_status=$?
10637 - grep -v '^ *+' conftest.er1 >conftest.err
10638 - rm -f conftest.er1
10639 - cat conftest.err >&5
10640 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10641 - (exit $ac_status); } && {
10642 - test -z "$ac_c_werror_flag" ||
10643 - test ! -s conftest.err
10644 - } && test -s conftest.$ac_objext; then
10645 - ac_hi=$ac_mid
10646 -else
10647 - echo "$as_me: failed program was:" >&5
10648 -sed 's/^/| /' conftest.$ac_ext >&5
10650 - ac_lo=`expr '(' $ac_mid ')' + 1`
10653 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10654 -done
10655 -case $ac_lo in
10656 -?*) ac_cv_sizeof_short=$ac_lo;;
10657 -'') if test "$ac_cv_type_short" = yes; then
10658 - { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
10659 -See \`config.log' for more details." >&5
10660 -echo "$as_me: error: cannot compute sizeof (short)
10661 -See \`config.log' for more details." >&2;}
10662 - { (exit 77); exit 77; }; }
10663 - else
10664 - ac_cv_sizeof_short=0
10665 - fi ;;
10666 -esac
10667 -else
10668 - cat >conftest.$ac_ext <<_ACEOF
10669 -/* confdefs.h. */
10670 -_ACEOF
10671 -cat confdefs.h >>conftest.$ac_ext
10672 -cat >>conftest.$ac_ext <<_ACEOF
10673 -/* end confdefs.h. */
10674 -$ac_includes_default
10675 - typedef short ac__type_sizeof_;
10676 -static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10677 -static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10678 -#include <stdio.h>
10679 -#include <stdlib.h>
10680 -int
10681 -main ()
10684 - FILE *f = fopen ("conftest.val", "w");
10685 - if (! f)
10686 - return 1;
10687 - if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10689 - long int i = longval ();
10690 - if (i != ((long int) (sizeof (ac__type_sizeof_))))
10691 - return 1;
10692 - fprintf (f, "%ld\n", i);
10694 - else
10696 - unsigned long int i = ulongval ();
10697 - if (i != ((long int) (sizeof (ac__type_sizeof_))))
10698 - return 1;
10699 - fprintf (f, "%lu\n", i);
10701 - return ferror (f) || fclose (f) != 0;
10704 - return 0;
10706 -_ACEOF
10707 -rm -f conftest$ac_exeext
10708 -if { (ac_try="$ac_link"
10709 -case "(($ac_try" in
10710 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10711 - *) ac_try_echo=$ac_try;;
10712 -esac
10713 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10714 - (eval "$ac_link") 2>&5
10715 - ac_status=$?
10716 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10717 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10718 - { (case "(($ac_try" in
10719 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10720 - *) ac_try_echo=$ac_try;;
10721 -esac
10722 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10723 - (eval "$ac_try") 2>&5
10724 - ac_status=$?
10725 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10726 - (exit $ac_status); }; }; then
10727 - ac_cv_sizeof_short=`cat conftest.val`
10728 -else
10729 - echo "$as_me: program exited with status $ac_status" >&5
10730 -echo "$as_me: failed program was:" >&5
10731 -sed 's/^/| /' conftest.$ac_ext >&5
10733 -( exit $ac_status )
10734 -if test "$ac_cv_type_short" = yes; then
10735 - { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
10736 -See \`config.log' for more details." >&5
10737 -echo "$as_me: error: cannot compute sizeof (short)
10738 -See \`config.log' for more details." >&2;}
10739 - { (exit 77); exit 77; }; }
10740 - else
10741 - ac_cv_sizeof_short=0
10742 - fi
10744 -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10746 -rm -f conftest.val
10748 -{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
10749 -echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
10753 -cat >>confdefs.h <<_ACEOF
10754 -#define SIZEOF_SHORT $ac_cv_sizeof_short
10755 -_ACEOF
10758 -{ echo "$as_me:$LINENO: checking for float" >&5
10759 -echo $ECHO_N "checking for float... $ECHO_C" >&6; }
10760 -if test "${ac_cv_type_float+set}" = set; then
10761 - echo $ECHO_N "(cached) $ECHO_C" >&6
10762 -else
10763 - cat >conftest.$ac_ext <<_ACEOF
10764 -/* confdefs.h. */
10765 -_ACEOF
10766 -cat confdefs.h >>conftest.$ac_ext
10767 -cat >>conftest.$ac_ext <<_ACEOF
10768 -/* end confdefs.h. */
10769 -$ac_includes_default
10770 -typedef float ac__type_new_;
10771 -int
10772 -main ()
10774 -if ((ac__type_new_ *) 0)
10775 - return 0;
10776 -if (sizeof (ac__type_new_))
10777 - return 0;
10779 - return 0;
10781 -_ACEOF
10782 -rm -f conftest.$ac_objext
10783 -if { (ac_try="$ac_compile"
10784 -case "(($ac_try" in
10785 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10786 - *) ac_try_echo=$ac_try;;
10787 -esac
10788 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10789 - (eval "$ac_compile") 2>conftest.er1
10790 - ac_status=$?
10791 - grep -v '^ *+' conftest.er1 >conftest.err
10792 - rm -f conftest.er1
10793 - cat conftest.err >&5
10794 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10795 - (exit $ac_status); } && {
10796 - test -z "$ac_c_werror_flag" ||
10797 - test ! -s conftest.err
10798 - } && test -s conftest.$ac_objext; then
10799 - ac_cv_type_float=yes
10800 -else
10801 - echo "$as_me: failed program was:" >&5
10802 -sed 's/^/| /' conftest.$ac_ext >&5
10804 - ac_cv_type_float=no
10807 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10809 -{ echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
10810 -echo "${ECHO_T}$ac_cv_type_float" >&6; }
10812 -# The cast to long int works around a bug in the HP C Compiler
10813 -# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10814 -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10815 -# This bug is HP SR number 8606223364.
10816 -{ echo "$as_me:$LINENO: checking size of float" >&5
10817 -echo $ECHO_N "checking size of float... $ECHO_C" >&6; }
10818 -if test "${ac_cv_sizeof_float+set}" = set; then
10819 - echo $ECHO_N "(cached) $ECHO_C" >&6
10820 -else
10821 - if test "$cross_compiling" = yes; then
10822 - # Depending upon the size, compute the lo and hi bounds.
10823 -cat >conftest.$ac_ext <<_ACEOF
10824 -/* confdefs.h. */
10825 -_ACEOF
10826 -cat confdefs.h >>conftest.$ac_ext
10827 -cat >>conftest.$ac_ext <<_ACEOF
10828 -/* end confdefs.h. */
10829 -$ac_includes_default
10830 - typedef float ac__type_sizeof_;
10831 -int
10832 -main ()
10834 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10835 -test_array [0] = 0
10838 - return 0;
10840 -_ACEOF
10841 -rm -f conftest.$ac_objext
10842 -if { (ac_try="$ac_compile"
10843 -case "(($ac_try" in
10844 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10845 - *) ac_try_echo=$ac_try;;
10846 -esac
10847 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10848 - (eval "$ac_compile") 2>conftest.er1
10849 - ac_status=$?
10850 - grep -v '^ *+' conftest.er1 >conftest.err
10851 - rm -f conftest.er1
10852 - cat conftest.err >&5
10853 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10854 - (exit $ac_status); } && {
10855 - test -z "$ac_c_werror_flag" ||
10856 - test ! -s conftest.err
10857 - } && test -s conftest.$ac_objext; then
10858 - ac_lo=0 ac_mid=0
10859 - while :; do
10860 - cat >conftest.$ac_ext <<_ACEOF
10861 -/* confdefs.h. */
10862 -_ACEOF
10863 -cat confdefs.h >>conftest.$ac_ext
10864 -cat >>conftest.$ac_ext <<_ACEOF
10865 -/* end confdefs.h. */
10866 -$ac_includes_default
10867 - typedef float ac__type_sizeof_;
10868 -int
10869 -main ()
10871 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10872 -test_array [0] = 0
10875 - return 0;
10877 -_ACEOF
10878 -rm -f conftest.$ac_objext
10879 -if { (ac_try="$ac_compile"
10880 -case "(($ac_try" in
10881 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10882 - *) ac_try_echo=$ac_try;;
10883 -esac
10884 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10885 - (eval "$ac_compile") 2>conftest.er1
10886 - ac_status=$?
10887 - grep -v '^ *+' conftest.er1 >conftest.err
10888 - rm -f conftest.er1
10889 - cat conftest.err >&5
10890 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891 - (exit $ac_status); } && {
10892 - test -z "$ac_c_werror_flag" ||
10893 - test ! -s conftest.err
10894 - } && test -s conftest.$ac_objext; then
10895 - ac_hi=$ac_mid; break
10896 -else
10897 - echo "$as_me: failed program was:" >&5
10898 -sed 's/^/| /' conftest.$ac_ext >&5
10900 - ac_lo=`expr $ac_mid + 1`
10901 - if test $ac_lo -le $ac_mid; then
10902 - ac_lo= ac_hi=
10903 - break
10904 - fi
10905 - ac_mid=`expr 2 '*' $ac_mid + 1`
10908 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10909 - done
10910 -else
10911 - echo "$as_me: failed program was:" >&5
10912 -sed 's/^/| /' conftest.$ac_ext >&5
10914 - cat >conftest.$ac_ext <<_ACEOF
10915 -/* confdefs.h. */
10916 -_ACEOF
10917 -cat confdefs.h >>conftest.$ac_ext
10918 -cat >>conftest.$ac_ext <<_ACEOF
10919 -/* end confdefs.h. */
10920 -$ac_includes_default
10921 - typedef float ac__type_sizeof_;
10922 -int
10923 -main ()
10925 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10926 -test_array [0] = 0
10929 - return 0;
10931 -_ACEOF
10932 -rm -f conftest.$ac_objext
10933 -if { (ac_try="$ac_compile"
10934 -case "(($ac_try" in
10935 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10936 - *) ac_try_echo=$ac_try;;
10937 -esac
10938 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10939 - (eval "$ac_compile") 2>conftest.er1
10940 - ac_status=$?
10941 - grep -v '^ *+' conftest.er1 >conftest.err
10942 - rm -f conftest.er1
10943 - cat conftest.err >&5
10944 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10945 - (exit $ac_status); } && {
10946 - test -z "$ac_c_werror_flag" ||
10947 - test ! -s conftest.err
10948 - } && test -s conftest.$ac_objext; then
10949 - ac_hi=-1 ac_mid=-1
10950 - while :; do
10951 - cat >conftest.$ac_ext <<_ACEOF
10952 -/* confdefs.h. */
10953 -_ACEOF
10954 -cat confdefs.h >>conftest.$ac_ext
10955 -cat >>conftest.$ac_ext <<_ACEOF
10956 -/* end confdefs.h. */
10957 -$ac_includes_default
10958 - typedef float ac__type_sizeof_;
10959 -int
10960 -main ()
10962 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10963 -test_array [0] = 0
10966 - return 0;
10968 -_ACEOF
10969 -rm -f conftest.$ac_objext
10970 -if { (ac_try="$ac_compile"
10971 -case "(($ac_try" in
10972 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10973 - *) ac_try_echo=$ac_try;;
10974 -esac
10975 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10976 - (eval "$ac_compile") 2>conftest.er1
10977 - ac_status=$?
10978 - grep -v '^ *+' conftest.er1 >conftest.err
10979 - rm -f conftest.er1
10980 - cat conftest.err >&5
10981 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10982 - (exit $ac_status); } && {
10983 - test -z "$ac_c_werror_flag" ||
10984 - test ! -s conftest.err
10985 - } && test -s conftest.$ac_objext; then
10986 - ac_lo=$ac_mid; break
10987 -else
10988 - echo "$as_me: failed program was:" >&5
10989 -sed 's/^/| /' conftest.$ac_ext >&5
10991 - ac_hi=`expr '(' $ac_mid ')' - 1`
10992 - if test $ac_mid -le $ac_hi; then
10993 - ac_lo= ac_hi=
10994 - break
10995 - fi
10996 - ac_mid=`expr 2 '*' $ac_mid`
10999 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11000 - done
11001 -else
11002 - echo "$as_me: failed program was:" >&5
11003 -sed 's/^/| /' conftest.$ac_ext >&5
11005 - ac_lo= ac_hi=
11008 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11011 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11012 -# Binary search between lo and hi bounds.
11013 -while test "x$ac_lo" != "x$ac_hi"; do
11014 - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11015 - cat >conftest.$ac_ext <<_ACEOF
11016 -/* confdefs.h. */
11017 -_ACEOF
11018 -cat confdefs.h >>conftest.$ac_ext
11019 -cat >>conftest.$ac_ext <<_ACEOF
11020 -/* end confdefs.h. */
11021 -$ac_includes_default
11022 - typedef float ac__type_sizeof_;
11023 -int
11024 -main ()
11026 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11027 -test_array [0] = 0
11030 - return 0;
11032 -_ACEOF
11033 -rm -f conftest.$ac_objext
11034 -if { (ac_try="$ac_compile"
11035 -case "(($ac_try" in
11036 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11037 - *) ac_try_echo=$ac_try;;
11038 -esac
11039 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11040 - (eval "$ac_compile") 2>conftest.er1
11041 - ac_status=$?
11042 - grep -v '^ *+' conftest.er1 >conftest.err
11043 - rm -f conftest.er1
11044 - cat conftest.err >&5
11045 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11046 - (exit $ac_status); } && {
11047 - test -z "$ac_c_werror_flag" ||
11048 - test ! -s conftest.err
11049 - } && test -s conftest.$ac_objext; then
11050 - ac_hi=$ac_mid
11051 -else
11052 - echo "$as_me: failed program was:" >&5
11053 -sed 's/^/| /' conftest.$ac_ext >&5
11055 - ac_lo=`expr '(' $ac_mid ')' + 1`
11058 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11059 -done
11060 -case $ac_lo in
11061 -?*) ac_cv_sizeof_float=$ac_lo;;
11062 -'') if test "$ac_cv_type_float" = yes; then
11063 - { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
11064 -See \`config.log' for more details." >&5
11065 -echo "$as_me: error: cannot compute sizeof (float)
11066 -See \`config.log' for more details." >&2;}
11067 - { (exit 77); exit 77; }; }
11068 - else
11069 - ac_cv_sizeof_float=0
11070 - fi ;;
11071 -esac
11072 -else
11073 - cat >conftest.$ac_ext <<_ACEOF
11074 -/* confdefs.h. */
11075 -_ACEOF
11076 -cat confdefs.h >>conftest.$ac_ext
11077 -cat >>conftest.$ac_ext <<_ACEOF
11078 -/* end confdefs.h. */
11079 -$ac_includes_default
11080 - typedef float ac__type_sizeof_;
11081 -static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11082 -static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11083 -#include <stdio.h>
11084 -#include <stdlib.h>
11085 -int
11086 -main ()
11089 - FILE *f = fopen ("conftest.val", "w");
11090 - if (! f)
11091 - return 1;
11092 - if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11094 - long int i = longval ();
11095 - if (i != ((long int) (sizeof (ac__type_sizeof_))))
11096 - return 1;
11097 - fprintf (f, "%ld\n", i);
11099 - else
11101 - unsigned long int i = ulongval ();
11102 - if (i != ((long int) (sizeof (ac__type_sizeof_))))
11103 - return 1;
11104 - fprintf (f, "%lu\n", i);
11106 - return ferror (f) || fclose (f) != 0;
11109 - return 0;
11111 -_ACEOF
11112 -rm -f conftest$ac_exeext
11113 -if { (ac_try="$ac_link"
11114 -case "(($ac_try" in
11115 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11116 - *) ac_try_echo=$ac_try;;
11117 -esac
11118 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11119 - (eval "$ac_link") 2>&5
11120 - ac_status=$?
11121 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11122 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11123 - { (case "(($ac_try" in
11124 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11125 - *) ac_try_echo=$ac_try;;
11126 -esac
11127 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11128 - (eval "$ac_try") 2>&5
11129 - ac_status=$?
11130 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11131 - (exit $ac_status); }; }; then
11132 - ac_cv_sizeof_float=`cat conftest.val`
11133 -else
11134 - echo "$as_me: program exited with status $ac_status" >&5
11135 -echo "$as_me: failed program was:" >&5
11136 -sed 's/^/| /' conftest.$ac_ext >&5
11138 -( exit $ac_status )
11139 -if test "$ac_cv_type_float" = yes; then
11140 - { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
11141 -See \`config.log' for more details." >&5
11142 -echo "$as_me: error: cannot compute sizeof (float)
11143 -See \`config.log' for more details." >&2;}
11144 - { (exit 77); exit 77; }; }
11145 - else
11146 - ac_cv_sizeof_float=0
11147 - fi
11149 -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11151 -rm -f conftest.val
11153 -{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
11154 -echo "${ECHO_T}$ac_cv_sizeof_float" >&6; }
11158 -cat >>confdefs.h <<_ACEOF
11159 -#define SIZEOF_FLOAT $ac_cv_sizeof_float
11160 -_ACEOF
11163 -{ echo "$as_me:$LINENO: checking for double" >&5
11164 -echo $ECHO_N "checking for double... $ECHO_C" >&6; }
11165 -if test "${ac_cv_type_double+set}" = set; then
11166 - echo $ECHO_N "(cached) $ECHO_C" >&6
11167 -else
11168 - cat >conftest.$ac_ext <<_ACEOF
11169 -/* confdefs.h. */
11170 -_ACEOF
11171 -cat confdefs.h >>conftest.$ac_ext
11172 -cat >>conftest.$ac_ext <<_ACEOF
11173 -/* end confdefs.h. */
11174 -$ac_includes_default
11175 -typedef double ac__type_new_;
11176 -int
11177 -main ()
11179 -if ((ac__type_new_ *) 0)
11180 - return 0;
11181 -if (sizeof (ac__type_new_))
11182 - return 0;
11184 - return 0;
11186 -_ACEOF
11187 -rm -f conftest.$ac_objext
11188 -if { (ac_try="$ac_compile"
11189 -case "(($ac_try" in
11190 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11191 - *) ac_try_echo=$ac_try;;
11192 -esac
11193 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11194 - (eval "$ac_compile") 2>conftest.er1
11195 - ac_status=$?
11196 - grep -v '^ *+' conftest.er1 >conftest.err
11197 - rm -f conftest.er1
11198 - cat conftest.err >&5
11199 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11200 - (exit $ac_status); } && {
11201 - test -z "$ac_c_werror_flag" ||
11202 - test ! -s conftest.err
11203 - } && test -s conftest.$ac_objext; then
11204 - ac_cv_type_double=yes
11205 -else
11206 - echo "$as_me: failed program was:" >&5
11207 -sed 's/^/| /' conftest.$ac_ext >&5
11209 - ac_cv_type_double=no
11212 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11214 -{ echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
11215 -echo "${ECHO_T}$ac_cv_type_double" >&6; }
11217 -# The cast to long int works around a bug in the HP C Compiler
11218 -# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11219 -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11220 -# This bug is HP SR number 8606223364.
11221 -{ echo "$as_me:$LINENO: checking size of double" >&5
11222 -echo $ECHO_N "checking size of double... $ECHO_C" >&6; }
11223 -if test "${ac_cv_sizeof_double+set}" = set; then
11224 - echo $ECHO_N "(cached) $ECHO_C" >&6
11225 -else
11226 - if test "$cross_compiling" = yes; then
11227 - # Depending upon the size, compute the lo and hi bounds.
11228 -cat >conftest.$ac_ext <<_ACEOF
11229 -/* confdefs.h. */
11230 -_ACEOF
11231 -cat confdefs.h >>conftest.$ac_ext
11232 -cat >>conftest.$ac_ext <<_ACEOF
11233 -/* end confdefs.h. */
11234 -$ac_includes_default
11235 - typedef double ac__type_sizeof_;
11236 -int
11237 -main ()
11239 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11240 -test_array [0] = 0
11243 - return 0;
11245 -_ACEOF
11246 -rm -f conftest.$ac_objext
11247 -if { (ac_try="$ac_compile"
11248 -case "(($ac_try" in
11249 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11250 - *) ac_try_echo=$ac_try;;
11251 -esac
11252 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11253 - (eval "$ac_compile") 2>conftest.er1
11254 - ac_status=$?
11255 - grep -v '^ *+' conftest.er1 >conftest.err
11256 - rm -f conftest.er1
11257 - cat conftest.err >&5
11258 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11259 - (exit $ac_status); } && {
11260 - test -z "$ac_c_werror_flag" ||
11261 - test ! -s conftest.err
11262 - } && test -s conftest.$ac_objext; then
11263 - ac_lo=0 ac_mid=0
11264 - while :; do
11265 - cat >conftest.$ac_ext <<_ACEOF
11266 -/* confdefs.h. */
11267 -_ACEOF
11268 -cat confdefs.h >>conftest.$ac_ext
11269 -cat >>conftest.$ac_ext <<_ACEOF
11270 -/* end confdefs.h. */
11271 -$ac_includes_default
11272 - typedef double ac__type_sizeof_;
11273 -int
11274 -main ()
11276 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11277 -test_array [0] = 0
11280 - return 0;
11282 -_ACEOF
11283 -rm -f conftest.$ac_objext
11284 -if { (ac_try="$ac_compile"
11285 -case "(($ac_try" in
11286 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11287 - *) ac_try_echo=$ac_try;;
11288 -esac
11289 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11290 - (eval "$ac_compile") 2>conftest.er1
11291 - ac_status=$?
11292 - grep -v '^ *+' conftest.er1 >conftest.err
11293 - rm -f conftest.er1
11294 - cat conftest.err >&5
11295 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11296 - (exit $ac_status); } && {
11297 - test -z "$ac_c_werror_flag" ||
11298 - test ! -s conftest.err
11299 - } && test -s conftest.$ac_objext; then
11300 - ac_hi=$ac_mid; break
11301 -else
11302 - echo "$as_me: failed program was:" >&5
11303 -sed 's/^/| /' conftest.$ac_ext >&5
11305 - ac_lo=`expr $ac_mid + 1`
11306 - if test $ac_lo -le $ac_mid; then
11307 - ac_lo= ac_hi=
11308 - break
11309 - fi
11310 - ac_mid=`expr 2 '*' $ac_mid + 1`
11313 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11314 - done
11315 -else
11316 - echo "$as_me: failed program was:" >&5
11317 -sed 's/^/| /' conftest.$ac_ext >&5
11319 - cat >conftest.$ac_ext <<_ACEOF
11320 -/* confdefs.h. */
11321 -_ACEOF
11322 -cat confdefs.h >>conftest.$ac_ext
11323 -cat >>conftest.$ac_ext <<_ACEOF
11324 -/* end confdefs.h. */
11325 -$ac_includes_default
11326 - typedef double ac__type_sizeof_;
11327 -int
11328 -main ()
11330 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11331 -test_array [0] = 0
11334 - return 0;
11336 -_ACEOF
11337 -rm -f conftest.$ac_objext
11338 -if { (ac_try="$ac_compile"
11339 -case "(($ac_try" in
11340 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11341 - *) ac_try_echo=$ac_try;;
11342 -esac
11343 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11344 - (eval "$ac_compile") 2>conftest.er1
11345 - ac_status=$?
11346 - grep -v '^ *+' conftest.er1 >conftest.err
11347 - rm -f conftest.er1
11348 - cat conftest.err >&5
11349 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11350 - (exit $ac_status); } && {
11351 - test -z "$ac_c_werror_flag" ||
11352 - test ! -s conftest.err
11353 - } && test -s conftest.$ac_objext; then
11354 - ac_hi=-1 ac_mid=-1
11355 - while :; do
11356 - cat >conftest.$ac_ext <<_ACEOF
11357 -/* confdefs.h. */
11358 -_ACEOF
11359 -cat confdefs.h >>conftest.$ac_ext
11360 -cat >>conftest.$ac_ext <<_ACEOF
11361 -/* end confdefs.h. */
11362 -$ac_includes_default
11363 - typedef double ac__type_sizeof_;
11364 -int
11365 -main ()
11367 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11368 -test_array [0] = 0
11371 - return 0;
11373 -_ACEOF
11374 -rm -f conftest.$ac_objext
11375 -if { (ac_try="$ac_compile"
11376 -case "(($ac_try" in
11377 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11378 - *) ac_try_echo=$ac_try;;
11379 -esac
11380 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11381 - (eval "$ac_compile") 2>conftest.er1
11382 - ac_status=$?
11383 - grep -v '^ *+' conftest.er1 >conftest.err
11384 - rm -f conftest.er1
11385 - cat conftest.err >&5
11386 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11387 - (exit $ac_status); } && {
11388 - test -z "$ac_c_werror_flag" ||
11389 - test ! -s conftest.err
11390 - } && test -s conftest.$ac_objext; then
11391 - ac_lo=$ac_mid; break
11392 -else
11393 - echo "$as_me: failed program was:" >&5
11394 -sed 's/^/| /' conftest.$ac_ext >&5
11396 - ac_hi=`expr '(' $ac_mid ')' - 1`
11397 - if test $ac_mid -le $ac_hi; then
11398 - ac_lo= ac_hi=
11399 - break
11400 - fi
11401 - ac_mid=`expr 2 '*' $ac_mid`
11404 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11405 - done
11406 -else
11407 - echo "$as_me: failed program was:" >&5
11408 -sed 's/^/| /' conftest.$ac_ext >&5
11410 - ac_lo= ac_hi=
11413 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11416 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11417 -# Binary search between lo and hi bounds.
11418 -while test "x$ac_lo" != "x$ac_hi"; do
11419 - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11420 - cat >conftest.$ac_ext <<_ACEOF
11421 -/* confdefs.h. */
11422 -_ACEOF
11423 -cat confdefs.h >>conftest.$ac_ext
11424 -cat >>conftest.$ac_ext <<_ACEOF
11425 -/* end confdefs.h. */
11426 -$ac_includes_default
11427 - typedef double ac__type_sizeof_;
11428 -int
11429 -main ()
11431 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11432 -test_array [0] = 0
11435 - return 0;
11437 -_ACEOF
11438 -rm -f conftest.$ac_objext
11439 -if { (ac_try="$ac_compile"
11440 -case "(($ac_try" in
11441 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11442 - *) ac_try_echo=$ac_try;;
11443 -esac
11444 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11445 - (eval "$ac_compile") 2>conftest.er1
11446 - ac_status=$?
11447 - grep -v '^ *+' conftest.er1 >conftest.err
11448 - rm -f conftest.er1
11449 - cat conftest.err >&5
11450 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11451 - (exit $ac_status); } && {
11452 - test -z "$ac_c_werror_flag" ||
11453 - test ! -s conftest.err
11454 - } && test -s conftest.$ac_objext; then
11455 - ac_hi=$ac_mid
11456 -else
11457 - echo "$as_me: failed program was:" >&5
11458 -sed 's/^/| /' conftest.$ac_ext >&5
11460 - ac_lo=`expr '(' $ac_mid ')' + 1`
11463 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11464 -done
11465 -case $ac_lo in
11466 -?*) ac_cv_sizeof_double=$ac_lo;;
11467 -'') if test "$ac_cv_type_double" = yes; then
11468 - { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
11469 -See \`config.log' for more details." >&5
11470 -echo "$as_me: error: cannot compute sizeof (double)
11471 -See \`config.log' for more details." >&2;}
11472 - { (exit 77); exit 77; }; }
11473 - else
11474 - ac_cv_sizeof_double=0
11475 - fi ;;
11476 -esac
11477 -else
11478 - cat >conftest.$ac_ext <<_ACEOF
11479 -/* confdefs.h. */
11480 -_ACEOF
11481 -cat confdefs.h >>conftest.$ac_ext
11482 -cat >>conftest.$ac_ext <<_ACEOF
11483 -/* end confdefs.h. */
11484 -$ac_includes_default
11485 - typedef double ac__type_sizeof_;
11486 -static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11487 -static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11488 -#include <stdio.h>
11489 -#include <stdlib.h>
11490 -int
11491 -main ()
11494 - FILE *f = fopen ("conftest.val", "w");
11495 - if (! f)
11496 - return 1;
11497 - if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11499 - long int i = longval ();
11500 - if (i != ((long int) (sizeof (ac__type_sizeof_))))
11501 - return 1;
11502 - fprintf (f, "%ld\n", i);
11504 - else
11506 - unsigned long int i = ulongval ();
11507 - if (i != ((long int) (sizeof (ac__type_sizeof_))))
11508 - return 1;
11509 - fprintf (f, "%lu\n", i);
11511 - return ferror (f) || fclose (f) != 0;
11514 - return 0;
11516 -_ACEOF
11517 -rm -f conftest$ac_exeext
11518 -if { (ac_try="$ac_link"
11519 -case "(($ac_try" in
11520 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11521 - *) ac_try_echo=$ac_try;;
11522 -esac
11523 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11524 - (eval "$ac_link") 2>&5
11525 - ac_status=$?
11526 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11527 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11528 - { (case "(($ac_try" in
11529 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11530 - *) ac_try_echo=$ac_try;;
11531 -esac
11532 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11533 - (eval "$ac_try") 2>&5
11534 - ac_status=$?
11535 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11536 - (exit $ac_status); }; }; then
11537 - ac_cv_sizeof_double=`cat conftest.val`
11538 -else
11539 - echo "$as_me: program exited with status $ac_status" >&5
11540 -echo "$as_me: failed program was:" >&5
11541 -sed 's/^/| /' conftest.$ac_ext >&5
11543 -( exit $ac_status )
11544 -if test "$ac_cv_type_double" = yes; then
11545 - { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
11546 -See \`config.log' for more details." >&5
11547 -echo "$as_me: error: cannot compute sizeof (double)
11548 -See \`config.log' for more details." >&2;}
11549 - { (exit 77); exit 77; }; }
11550 - else
11551 - ac_cv_sizeof_double=0
11552 - fi
11554 -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11556 -rm -f conftest.val
11558 -{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
11559 -echo "${ECHO_T}$ac_cv_sizeof_double" >&6; }
11563 -cat >>confdefs.h <<_ACEOF
11564 -#define SIZEOF_DOUBLE $ac_cv_sizeof_double
11565 -_ACEOF
11568 -{ echo "$as_me:$LINENO: checking for fpos_t" >&5
11569 -echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6; }
11570 -if test "${ac_cv_type_fpos_t+set}" = set; then
11571 - echo $ECHO_N "(cached) $ECHO_C" >&6
11572 -else
11573 - cat >conftest.$ac_ext <<_ACEOF
11574 -/* confdefs.h. */
11575 -_ACEOF
11576 -cat confdefs.h >>conftest.$ac_ext
11577 -cat >>conftest.$ac_ext <<_ACEOF
11578 -/* end confdefs.h. */
11579 -$ac_includes_default
11580 -typedef fpos_t ac__type_new_;
11581 -int
11582 -main ()
11584 -if ((ac__type_new_ *) 0)
11585 - return 0;
11586 -if (sizeof (ac__type_new_))
11587 - return 0;
11589 - return 0;
11591 -_ACEOF
11592 -rm -f conftest.$ac_objext
11593 -if { (ac_try="$ac_compile"
11594 -case "(($ac_try" in
11595 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11596 - *) ac_try_echo=$ac_try;;
11597 -esac
11598 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11599 - (eval "$ac_compile") 2>conftest.er1
11600 - ac_status=$?
11601 - grep -v '^ *+' conftest.er1 >conftest.err
11602 - rm -f conftest.er1
11603 - cat conftest.err >&5
11604 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11605 - (exit $ac_status); } && {
11606 - test -z "$ac_c_werror_flag" ||
11607 - test ! -s conftest.err
11608 - } && test -s conftest.$ac_objext; then
11609 - ac_cv_type_fpos_t=yes
11610 -else
11611 - echo "$as_me: failed program was:" >&5
11612 -sed 's/^/| /' conftest.$ac_ext >&5
11614 - ac_cv_type_fpos_t=no
11617 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11619 -{ echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
11620 -echo "${ECHO_T}$ac_cv_type_fpos_t" >&6; }
11622 -# The cast to long int works around a bug in the HP C Compiler
11623 -# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11624 -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11625 -# This bug is HP SR number 8606223364.
11626 -{ echo "$as_me:$LINENO: checking size of fpos_t" >&5
11627 -echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6; }
11628 -if test "${ac_cv_sizeof_fpos_t+set}" = set; then
11629 - echo $ECHO_N "(cached) $ECHO_C" >&6
11630 -else
11631 - if test "$cross_compiling" = yes; then
11632 - # Depending upon the size, compute the lo and hi bounds.
11633 -cat >conftest.$ac_ext <<_ACEOF
11634 -/* confdefs.h. */
11635 -_ACEOF
11636 -cat confdefs.h >>conftest.$ac_ext
11637 -cat >>conftest.$ac_ext <<_ACEOF
11638 -/* end confdefs.h. */
11639 -$ac_includes_default
11640 - typedef fpos_t ac__type_sizeof_;
11641 -int
11642 -main ()
11644 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11645 -test_array [0] = 0
11648 - return 0;
11650 -_ACEOF
11651 -rm -f conftest.$ac_objext
11652 -if { (ac_try="$ac_compile"
11653 -case "(($ac_try" in
11654 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11655 - *) ac_try_echo=$ac_try;;
11656 -esac
11657 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11658 - (eval "$ac_compile") 2>conftest.er1
11659 - ac_status=$?
11660 - grep -v '^ *+' conftest.er1 >conftest.err
11661 - rm -f conftest.er1
11662 - cat conftest.err >&5
11663 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11664 - (exit $ac_status); } && {
11665 - test -z "$ac_c_werror_flag" ||
11666 - test ! -s conftest.err
11667 - } && test -s conftest.$ac_objext; then
11668 - ac_lo=0 ac_mid=0
11669 - while :; do
11670 - cat >conftest.$ac_ext <<_ACEOF
11671 -/* confdefs.h. */
11672 -_ACEOF
11673 -cat confdefs.h >>conftest.$ac_ext
11674 -cat >>conftest.$ac_ext <<_ACEOF
11675 -/* end confdefs.h. */
11676 -$ac_includes_default
11677 - typedef fpos_t ac__type_sizeof_;
11678 -int
11679 -main ()
11681 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11682 -test_array [0] = 0
11685 - return 0;
11687 -_ACEOF
11688 -rm -f conftest.$ac_objext
11689 -if { (ac_try="$ac_compile"
11690 -case "(($ac_try" in
11691 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11692 - *) ac_try_echo=$ac_try;;
11693 -esac
11694 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11695 - (eval "$ac_compile") 2>conftest.er1
11696 - ac_status=$?
11697 - grep -v '^ *+' conftest.er1 >conftest.err
11698 - rm -f conftest.er1
11699 - cat conftest.err >&5
11700 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11701 - (exit $ac_status); } && {
11702 - test -z "$ac_c_werror_flag" ||
11703 - test ! -s conftest.err
11704 - } && test -s conftest.$ac_objext; then
11705 - ac_hi=$ac_mid; break
11706 -else
11707 - echo "$as_me: failed program was:" >&5
11708 -sed 's/^/| /' conftest.$ac_ext >&5
11710 - ac_lo=`expr $ac_mid + 1`
11711 - if test $ac_lo -le $ac_mid; then
11712 - ac_lo= ac_hi=
11713 - break
11714 - fi
11715 - ac_mid=`expr 2 '*' $ac_mid + 1`
11718 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11719 - done
11720 -else
11721 - echo "$as_me: failed program was:" >&5
11722 -sed 's/^/| /' conftest.$ac_ext >&5
11724 - cat >conftest.$ac_ext <<_ACEOF
11725 -/* confdefs.h. */
11726 -_ACEOF
11727 -cat confdefs.h >>conftest.$ac_ext
11728 -cat >>conftest.$ac_ext <<_ACEOF
11729 -/* end confdefs.h. */
11730 -$ac_includes_default
11731 - typedef fpos_t ac__type_sizeof_;
11732 -int
11733 -main ()
11735 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11736 -test_array [0] = 0
11739 - return 0;
11741 -_ACEOF
11742 -rm -f conftest.$ac_objext
11743 -if { (ac_try="$ac_compile"
11744 -case "(($ac_try" in
11745 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11746 - *) ac_try_echo=$ac_try;;
11747 -esac
11748 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11749 - (eval "$ac_compile") 2>conftest.er1
11750 - ac_status=$?
11751 - grep -v '^ *+' conftest.er1 >conftest.err
11752 - rm -f conftest.er1
11753 - cat conftest.err >&5
11754 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11755 - (exit $ac_status); } && {
11756 - test -z "$ac_c_werror_flag" ||
11757 - test ! -s conftest.err
11758 - } && test -s conftest.$ac_objext; then
11759 - ac_hi=-1 ac_mid=-1
11760 - while :; do
11761 - cat >conftest.$ac_ext <<_ACEOF
11762 -/* confdefs.h. */
11763 -_ACEOF
11764 -cat confdefs.h >>conftest.$ac_ext
11765 -cat >>conftest.$ac_ext <<_ACEOF
11766 -/* end confdefs.h. */
11767 -$ac_includes_default
11768 - typedef fpos_t ac__type_sizeof_;
11769 -int
11770 -main ()
11772 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11773 -test_array [0] = 0
11776 - return 0;
11778 -_ACEOF
11779 -rm -f conftest.$ac_objext
11780 -if { (ac_try="$ac_compile"
11781 -case "(($ac_try" in
11782 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11783 - *) ac_try_echo=$ac_try;;
11784 -esac
11785 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11786 - (eval "$ac_compile") 2>conftest.er1
11787 - ac_status=$?
11788 - grep -v '^ *+' conftest.er1 >conftest.err
11789 - rm -f conftest.er1
11790 - cat conftest.err >&5
11791 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792 - (exit $ac_status); } && {
11793 - test -z "$ac_c_werror_flag" ||
11794 - test ! -s conftest.err
11795 - } && test -s conftest.$ac_objext; then
11796 - ac_lo=$ac_mid; break
11797 -else
11798 - echo "$as_me: failed program was:" >&5
11799 -sed 's/^/| /' conftest.$ac_ext >&5
11801 - ac_hi=`expr '(' $ac_mid ')' - 1`
11802 - if test $ac_mid -le $ac_hi; then
11803 - ac_lo= ac_hi=
11804 - break
11805 - fi
11806 - ac_mid=`expr 2 '*' $ac_mid`
11809 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11810 - done
11811 -else
11812 - echo "$as_me: failed program was:" >&5
11813 -sed 's/^/| /' conftest.$ac_ext >&5
11815 - ac_lo= ac_hi=
11818 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11821 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11822 -# Binary search between lo and hi bounds.
11823 -while test "x$ac_lo" != "x$ac_hi"; do
11824 - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11825 - cat >conftest.$ac_ext <<_ACEOF
11826 -/* confdefs.h. */
11827 -_ACEOF
11828 -cat confdefs.h >>conftest.$ac_ext
11829 -cat >>conftest.$ac_ext <<_ACEOF
11830 -/* end confdefs.h. */
11831 -$ac_includes_default
11832 - typedef fpos_t ac__type_sizeof_;
11833 -int
11834 -main ()
11836 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11837 -test_array [0] = 0
11840 - return 0;
11842 -_ACEOF
11843 -rm -f conftest.$ac_objext
11844 -if { (ac_try="$ac_compile"
11845 -case "(($ac_try" in
11846 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11847 - *) ac_try_echo=$ac_try;;
11848 -esac
11849 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11850 - (eval "$ac_compile") 2>conftest.er1
11851 - ac_status=$?
11852 - grep -v '^ *+' conftest.er1 >conftest.err
11853 - rm -f conftest.er1
11854 - cat conftest.err >&5
11855 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11856 - (exit $ac_status); } && {
11857 - test -z "$ac_c_werror_flag" ||
11858 - test ! -s conftest.err
11859 - } && test -s conftest.$ac_objext; then
11860 - ac_hi=$ac_mid
11861 -else
11862 - echo "$as_me: failed program was:" >&5
11863 -sed 's/^/| /' conftest.$ac_ext >&5
11865 - ac_lo=`expr '(' $ac_mid ')' + 1`
11868 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11869 -done
11870 -case $ac_lo in
11871 -?*) ac_cv_sizeof_fpos_t=$ac_lo;;
11872 -'') if test "$ac_cv_type_fpos_t" = yes; then
11873 - { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
11874 -See \`config.log' for more details." >&5
11875 -echo "$as_me: error: cannot compute sizeof (fpos_t)
11876 -See \`config.log' for more details." >&2;}
11877 - { (exit 77); exit 77; }; }
11878 - else
11879 - ac_cv_sizeof_fpos_t=0
11880 - fi ;;
11881 -esac
11882 -else
11883 - cat >conftest.$ac_ext <<_ACEOF
11884 -/* confdefs.h. */
11885 -_ACEOF
11886 -cat confdefs.h >>conftest.$ac_ext
11887 -cat >>conftest.$ac_ext <<_ACEOF
11888 -/* end confdefs.h. */
11889 -$ac_includes_default
11890 - typedef fpos_t ac__type_sizeof_;
11891 -static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11892 -static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11893 -#include <stdio.h>
11894 -#include <stdlib.h>
11895 -int
11896 -main ()
11899 - FILE *f = fopen ("conftest.val", "w");
11900 - if (! f)
11901 - return 1;
11902 - if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11904 - long int i = longval ();
11905 - if (i != ((long int) (sizeof (ac__type_sizeof_))))
11906 - return 1;
11907 - fprintf (f, "%ld\n", i);
11909 - else
11911 - unsigned long int i = ulongval ();
11912 - if (i != ((long int) (sizeof (ac__type_sizeof_))))
11913 - return 1;
11914 - fprintf (f, "%lu\n", i);
11916 - return ferror (f) || fclose (f) != 0;
11919 - return 0;
11921 -_ACEOF
11922 -rm -f conftest$ac_exeext
11923 -if { (ac_try="$ac_link"
11924 -case "(($ac_try" in
11925 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11926 - *) ac_try_echo=$ac_try;;
11927 -esac
11928 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11929 - (eval "$ac_link") 2>&5
11930 - ac_status=$?
11931 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11933 - { (case "(($ac_try" in
11934 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11935 - *) ac_try_echo=$ac_try;;
11936 -esac
11937 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11938 - (eval "$ac_try") 2>&5
11939 - ac_status=$?
11940 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941 - (exit $ac_status); }; }; then
11942 - ac_cv_sizeof_fpos_t=`cat conftest.val`
11943 -else
11944 - echo "$as_me: program exited with status $ac_status" >&5
11945 -echo "$as_me: failed program was:" >&5
11946 -sed 's/^/| /' conftest.$ac_ext >&5
11948 -( exit $ac_status )
11949 -if test "$ac_cv_type_fpos_t" = yes; then
11950 - { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
11951 -See \`config.log' for more details." >&5
11952 -echo "$as_me: error: cannot compute sizeof (fpos_t)
11953 -See \`config.log' for more details." >&2;}
11954 - { (exit 77); exit 77; }; }
11955 - else
11956 - ac_cv_sizeof_fpos_t=0
11957 - fi
11959 -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11961 -rm -f conftest.val
11963 -{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
11964 -echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6; }
11968 -cat >>confdefs.h <<_ACEOF
11969 -#define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
11970 -_ACEOF
11973 -{ echo "$as_me:$LINENO: checking for size_t" >&5
11974 -echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
11975 -if test "${ac_cv_type_size_t+set}" = set; then
11976 - echo $ECHO_N "(cached) $ECHO_C" >&6
11977 -else
11978 - cat >conftest.$ac_ext <<_ACEOF
11979 -/* confdefs.h. */
11980 -_ACEOF
11981 -cat confdefs.h >>conftest.$ac_ext
11982 -cat >>conftest.$ac_ext <<_ACEOF
11983 -/* end confdefs.h. */
11984 -$ac_includes_default
11985 -typedef size_t ac__type_new_;
11986 -int
11987 -main ()
11989 -if ((ac__type_new_ *) 0)
11990 - return 0;
11991 -if (sizeof (ac__type_new_))
11992 - return 0;
11994 - return 0;
11996 -_ACEOF
11997 -rm -f conftest.$ac_objext
11998 -if { (ac_try="$ac_compile"
11999 -case "(($ac_try" in
12000 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12001 - *) ac_try_echo=$ac_try;;
12002 -esac
12003 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12004 - (eval "$ac_compile") 2>conftest.er1
12005 - ac_status=$?
12006 - grep -v '^ *+' conftest.er1 >conftest.err
12007 - rm -f conftest.er1
12008 - cat conftest.err >&5
12009 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12010 - (exit $ac_status); } && {
12011 - test -z "$ac_c_werror_flag" ||
12012 - test ! -s conftest.err
12013 - } && test -s conftest.$ac_objext; then
12014 - ac_cv_type_size_t=yes
12015 -else
12016 - echo "$as_me: failed program was:" >&5
12017 -sed 's/^/| /' conftest.$ac_ext >&5
12019 - ac_cv_type_size_t=no
12022 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12024 -{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
12025 -echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
12027 -# The cast to long int works around a bug in the HP C Compiler
12028 -# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12029 -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12030 -# This bug is HP SR number 8606223364.
12031 -{ echo "$as_me:$LINENO: checking size of size_t" >&5
12032 -echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
12033 -if test "${ac_cv_sizeof_size_t+set}" = set; then
12034 - echo $ECHO_N "(cached) $ECHO_C" >&6
12035 -else
12036 - if test "$cross_compiling" = yes; then
12037 - # Depending upon the size, compute the lo and hi bounds.
12038 -cat >conftest.$ac_ext <<_ACEOF
12039 -/* confdefs.h. */
12040 -_ACEOF
12041 -cat confdefs.h >>conftest.$ac_ext
12042 -cat >>conftest.$ac_ext <<_ACEOF
12043 -/* end confdefs.h. */
12044 -$ac_includes_default
12045 - typedef size_t ac__type_sizeof_;
12046 -int
12047 -main ()
12049 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12050 -test_array [0] = 0
12053 - return 0;
12055 -_ACEOF
12056 -rm -f conftest.$ac_objext
12057 -if { (ac_try="$ac_compile"
12058 -case "(($ac_try" in
12059 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12060 - *) ac_try_echo=$ac_try;;
12061 -esac
12062 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12063 - (eval "$ac_compile") 2>conftest.er1
12064 - ac_status=$?
12065 - grep -v '^ *+' conftest.er1 >conftest.err
12066 - rm -f conftest.er1
12067 - cat conftest.err >&5
12068 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12069 - (exit $ac_status); } && {
12070 - test -z "$ac_c_werror_flag" ||
12071 - test ! -s conftest.err
12072 - } && test -s conftest.$ac_objext; then
12073 - ac_lo=0 ac_mid=0
12074 - while :; do
12075 - cat >conftest.$ac_ext <<_ACEOF
12076 -/* confdefs.h. */
12077 -_ACEOF
12078 -cat confdefs.h >>conftest.$ac_ext
12079 -cat >>conftest.$ac_ext <<_ACEOF
12080 -/* end confdefs.h. */
12081 -$ac_includes_default
12082 - typedef size_t ac__type_sizeof_;
12083 -int
12084 -main ()
12086 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12087 -test_array [0] = 0
12090 - return 0;
12092 -_ACEOF
12093 -rm -f conftest.$ac_objext
12094 -if { (ac_try="$ac_compile"
12095 -case "(($ac_try" in
12096 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12097 - *) ac_try_echo=$ac_try;;
12098 -esac
12099 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12100 - (eval "$ac_compile") 2>conftest.er1
12101 - ac_status=$?
12102 - grep -v '^ *+' conftest.er1 >conftest.err
12103 - rm -f conftest.er1
12104 - cat conftest.err >&5
12105 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12106 - (exit $ac_status); } && {
12107 - test -z "$ac_c_werror_flag" ||
12108 - test ! -s conftest.err
12109 - } && test -s conftest.$ac_objext; then
12110 - ac_hi=$ac_mid; break
12111 -else
12112 - echo "$as_me: failed program was:" >&5
12113 -sed 's/^/| /' conftest.$ac_ext >&5
12115 - ac_lo=`expr $ac_mid + 1`
12116 - if test $ac_lo -le $ac_mid; then
12117 - ac_lo= ac_hi=
12118 - break
12119 - fi
12120 - ac_mid=`expr 2 '*' $ac_mid + 1`
12123 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12124 - done
12125 -else
12126 - echo "$as_me: failed program was:" >&5
12127 -sed 's/^/| /' conftest.$ac_ext >&5
12129 - cat >conftest.$ac_ext <<_ACEOF
12130 -/* confdefs.h. */
12131 -_ACEOF
12132 -cat confdefs.h >>conftest.$ac_ext
12133 -cat >>conftest.$ac_ext <<_ACEOF
12134 -/* end confdefs.h. */
12135 -$ac_includes_default
12136 - typedef size_t ac__type_sizeof_;
12137 -int
12138 -main ()
12140 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12141 -test_array [0] = 0
12144 - return 0;
12146 -_ACEOF
12147 -rm -f conftest.$ac_objext
12148 -if { (ac_try="$ac_compile"
12149 -case "(($ac_try" in
12150 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12151 - *) ac_try_echo=$ac_try;;
12152 -esac
12153 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12154 - (eval "$ac_compile") 2>conftest.er1
12155 - ac_status=$?
12156 - grep -v '^ *+' conftest.er1 >conftest.err
12157 - rm -f conftest.er1
12158 - cat conftest.err >&5
12159 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12160 - (exit $ac_status); } && {
12161 - test -z "$ac_c_werror_flag" ||
12162 - test ! -s conftest.err
12163 - } && test -s conftest.$ac_objext; then
12164 - ac_hi=-1 ac_mid=-1
12165 - while :; do
12166 - cat >conftest.$ac_ext <<_ACEOF
12167 -/* confdefs.h. */
12168 -_ACEOF
12169 -cat confdefs.h >>conftest.$ac_ext
12170 -cat >>conftest.$ac_ext <<_ACEOF
12171 -/* end confdefs.h. */
12172 -$ac_includes_default
12173 - typedef size_t ac__type_sizeof_;
12174 -int
12175 -main ()
12177 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12178 -test_array [0] = 0
12181 - return 0;
12183 -_ACEOF
12184 -rm -f conftest.$ac_objext
12185 -if { (ac_try="$ac_compile"
12186 -case "(($ac_try" in
12187 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12188 - *) ac_try_echo=$ac_try;;
12189 -esac
12190 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12191 - (eval "$ac_compile") 2>conftest.er1
12192 - ac_status=$?
12193 - grep -v '^ *+' conftest.er1 >conftest.err
12194 - rm -f conftest.er1
12195 - cat conftest.err >&5
12196 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12197 - (exit $ac_status); } && {
12198 - test -z "$ac_c_werror_flag" ||
12199 - test ! -s conftest.err
12200 - } && test -s conftest.$ac_objext; then
12201 - ac_lo=$ac_mid; break
12202 -else
12203 - echo "$as_me: failed program was:" >&5
12204 -sed 's/^/| /' conftest.$ac_ext >&5
12206 - ac_hi=`expr '(' $ac_mid ')' - 1`
12207 - if test $ac_mid -le $ac_hi; then
12208 - ac_lo= ac_hi=
12209 - break
12210 - fi
12211 - ac_mid=`expr 2 '*' $ac_mid`
12214 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12215 - done
12216 -else
12217 - echo "$as_me: failed program was:" >&5
12218 -sed 's/^/| /' conftest.$ac_ext >&5
12220 - ac_lo= ac_hi=
12223 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12226 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12227 -# Binary search between lo and hi bounds.
12228 -while test "x$ac_lo" != "x$ac_hi"; do
12229 - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12230 - cat >conftest.$ac_ext <<_ACEOF
12231 -/* confdefs.h. */
12232 -_ACEOF
12233 -cat confdefs.h >>conftest.$ac_ext
12234 -cat >>conftest.$ac_ext <<_ACEOF
12235 -/* end confdefs.h. */
12236 -$ac_includes_default
12237 - typedef size_t ac__type_sizeof_;
12238 -int
12239 -main ()
12241 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12242 -test_array [0] = 0
12245 - return 0;
12247 -_ACEOF
12248 -rm -f conftest.$ac_objext
12249 -if { (ac_try="$ac_compile"
12250 -case "(($ac_try" in
12251 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12252 - *) ac_try_echo=$ac_try;;
12253 -esac
12254 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12255 - (eval "$ac_compile") 2>conftest.er1
12256 - ac_status=$?
12257 - grep -v '^ *+' conftest.er1 >conftest.err
12258 - rm -f conftest.er1
12259 - cat conftest.err >&5
12260 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12261 - (exit $ac_status); } && {
12262 - test -z "$ac_c_werror_flag" ||
12263 - test ! -s conftest.err
12264 - } && test -s conftest.$ac_objext; then
12265 - ac_hi=$ac_mid
12266 -else
12267 - echo "$as_me: failed program was:" >&5
12268 -sed 's/^/| /' conftest.$ac_ext >&5
12270 - ac_lo=`expr '(' $ac_mid ')' + 1`
12273 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12274 -done
12275 -case $ac_lo in
12276 -?*) ac_cv_sizeof_size_t=$ac_lo;;
12277 -'') if test "$ac_cv_type_size_t" = yes; then
12278 - { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
12279 -See \`config.log' for more details." >&5
12280 -echo "$as_me: error: cannot compute sizeof (size_t)
12281 -See \`config.log' for more details." >&2;}
12282 - { (exit 77); exit 77; }; }
12283 - else
12284 - ac_cv_sizeof_size_t=0
12285 - fi ;;
12286 -esac
12287 -else
12288 - cat >conftest.$ac_ext <<_ACEOF
12289 -/* confdefs.h. */
12290 -_ACEOF
12291 -cat confdefs.h >>conftest.$ac_ext
12292 -cat >>conftest.$ac_ext <<_ACEOF
12293 -/* end confdefs.h. */
12294 -$ac_includes_default
12295 - typedef size_t ac__type_sizeof_;
12296 -static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12297 -static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12298 -#include <stdio.h>
12299 -#include <stdlib.h>
12300 -int
12301 -main ()
12304 - FILE *f = fopen ("conftest.val", "w");
12305 - if (! f)
12306 - return 1;
12307 - if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12309 - long int i = longval ();
12310 - if (i != ((long int) (sizeof (ac__type_sizeof_))))
12311 - return 1;
12312 - fprintf (f, "%ld\n", i);
12314 - else
12316 - unsigned long int i = ulongval ();
12317 - if (i != ((long int) (sizeof (ac__type_sizeof_))))
12318 - return 1;
12319 - fprintf (f, "%lu\n", i);
12321 - return ferror (f) || fclose (f) != 0;
12324 - return 0;
12326 -_ACEOF
12327 -rm -f conftest$ac_exeext
12328 -if { (ac_try="$ac_link"
12329 -case "(($ac_try" in
12330 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12331 - *) ac_try_echo=$ac_try;;
12332 -esac
12333 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12334 - (eval "$ac_link") 2>&5
12335 - ac_status=$?
12336 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12337 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12338 - { (case "(($ac_try" in
12339 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12340 - *) ac_try_echo=$ac_try;;
12341 -esac
12342 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12343 - (eval "$ac_try") 2>&5
12344 - ac_status=$?
12345 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12346 - (exit $ac_status); }; }; then
12347 - ac_cv_sizeof_size_t=`cat conftest.val`
12348 -else
12349 - echo "$as_me: program exited with status $ac_status" >&5
12350 -echo "$as_me: failed program was:" >&5
12351 -sed 's/^/| /' conftest.$ac_ext >&5
12353 -( exit $ac_status )
12354 -if test "$ac_cv_type_size_t" = yes; then
12355 - { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
12356 -See \`config.log' for more details." >&5
12357 -echo "$as_me: error: cannot compute sizeof (size_t)
12358 -See \`config.log' for more details." >&2;}
12359 - { (exit 77); exit 77; }; }
12360 - else
12361 - ac_cv_sizeof_size_t=0
12362 - fi
12364 -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12366 -rm -f conftest.val
12368 -{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
12369 -echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
12373 -cat >>confdefs.h <<_ACEOF
12374 -#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
12375 -_ACEOF
12379 -{ echo "$as_me:$LINENO: checking for long long support" >&5
12380 -echo $ECHO_N "checking for long long support... $ECHO_C" >&6; }
12381 -have_long_long=no
12382 -cat >conftest.$ac_ext <<_ACEOF
12383 -/* confdefs.h. */
12384 -_ACEOF
12385 -cat confdefs.h >>conftest.$ac_ext
12386 -cat >>conftest.$ac_ext <<_ACEOF
12387 -/* end confdefs.h. */
12389 -int
12390 -main ()
12392 -long long x; x = (long long)0;
12394 - return 0;
12396 -_ACEOF
12397 -rm -f conftest.$ac_objext
12398 -if { (ac_try="$ac_compile"
12399 -case "(($ac_try" in
12400 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12401 - *) ac_try_echo=$ac_try;;
12402 -esac
12403 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12404 - (eval "$ac_compile") 2>conftest.er1
12405 - ac_status=$?
12406 - grep -v '^ *+' conftest.er1 >conftest.err
12407 - rm -f conftest.er1
12408 - cat conftest.err >&5
12409 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410 - (exit $ac_status); } && {
12411 - test -z "$ac_c_werror_flag" ||
12412 - test ! -s conftest.err
12413 - } && test -s conftest.$ac_objext; then
12416 -cat >>confdefs.h <<\_ACEOF
12417 -#define HAVE_LONG_LONG 1
12418 -_ACEOF
12420 - have_long_long=yes
12422 -else
12423 - echo "$as_me: failed program was:" >&5
12424 -sed 's/^/| /' conftest.$ac_ext >&5
12429 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12430 -{ echo "$as_me:$LINENO: result: $have_long_long" >&5
12431 -echo "${ECHO_T}$have_long_long" >&6; }
12432 -if test "$have_long_long" = yes ; then
12433 -{ echo "$as_me:$LINENO: checking for long long" >&5
12434 -echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
12435 -if test "${ac_cv_type_long_long+set}" = set; then
12436 - echo $ECHO_N "(cached) $ECHO_C" >&6
12437 -else
12438 - cat >conftest.$ac_ext <<_ACEOF
12439 -/* confdefs.h. */
12440 -_ACEOF
12441 -cat confdefs.h >>conftest.$ac_ext
12442 -cat >>conftest.$ac_ext <<_ACEOF
12443 -/* end confdefs.h. */
12444 -$ac_includes_default
12445 -typedef long long ac__type_new_;
12446 -int
12447 -main ()
12449 -if ((ac__type_new_ *) 0)
12450 - return 0;
12451 -if (sizeof (ac__type_new_))
12452 - return 0;
12454 - return 0;
12456 -_ACEOF
12457 -rm -f conftest.$ac_objext
12458 -if { (ac_try="$ac_compile"
12459 -case "(($ac_try" in
12460 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12461 - *) ac_try_echo=$ac_try;;
12462 -esac
12463 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12464 - (eval "$ac_compile") 2>conftest.er1
12465 - ac_status=$?
12466 - grep -v '^ *+' conftest.er1 >conftest.err
12467 - rm -f conftest.er1
12468 - cat conftest.err >&5
12469 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12470 - (exit $ac_status); } && {
12471 - test -z "$ac_c_werror_flag" ||
12472 - test ! -s conftest.err
12473 - } && test -s conftest.$ac_objext; then
12474 - ac_cv_type_long_long=yes
12475 -else
12476 - echo "$as_me: failed program was:" >&5
12477 -sed 's/^/| /' conftest.$ac_ext >&5
12479 - ac_cv_type_long_long=no
12482 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12484 -{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
12485 -echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
12487 -# The cast to long int works around a bug in the HP C Compiler
12488 -# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12489 -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12490 -# This bug is HP SR number 8606223364.
12491 -{ echo "$as_me:$LINENO: checking size of long long" >&5
12492 -echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
12493 -if test "${ac_cv_sizeof_long_long+set}" = set; then
12494 - echo $ECHO_N "(cached) $ECHO_C" >&6
12495 -else
12496 - if test "$cross_compiling" = yes; then
12497 - # Depending upon the size, compute the lo and hi bounds.
12498 -cat >conftest.$ac_ext <<_ACEOF
12499 -/* confdefs.h. */
12500 -_ACEOF
12501 -cat confdefs.h >>conftest.$ac_ext
12502 -cat >>conftest.$ac_ext <<_ACEOF
12503 -/* end confdefs.h. */
12504 -$ac_includes_default
12505 - typedef long long ac__type_sizeof_;
12506 -int
12507 -main ()
12509 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12510 -test_array [0] = 0
12513 - return 0;
12515 -_ACEOF
12516 -rm -f conftest.$ac_objext
12517 -if { (ac_try="$ac_compile"
12518 -case "(($ac_try" in
12519 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12520 - *) ac_try_echo=$ac_try;;
12521 -esac
12522 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12523 - (eval "$ac_compile") 2>conftest.er1
12524 - ac_status=$?
12525 - grep -v '^ *+' conftest.er1 >conftest.err
12526 - rm -f conftest.er1
12527 - cat conftest.err >&5
12528 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529 - (exit $ac_status); } && {
12530 - test -z "$ac_c_werror_flag" ||
12531 - test ! -s conftest.err
12532 - } && test -s conftest.$ac_objext; then
12533 - ac_lo=0 ac_mid=0
12534 - while :; do
12535 - cat >conftest.$ac_ext <<_ACEOF
12536 -/* confdefs.h. */
12537 -_ACEOF
12538 -cat confdefs.h >>conftest.$ac_ext
12539 -cat >>conftest.$ac_ext <<_ACEOF
12540 -/* end confdefs.h. */
12541 -$ac_includes_default
12542 - typedef long long ac__type_sizeof_;
12543 -int
12544 -main ()
12546 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12547 -test_array [0] = 0
12550 - return 0;
12552 -_ACEOF
12553 -rm -f conftest.$ac_objext
12554 -if { (ac_try="$ac_compile"
12555 -case "(($ac_try" in
12556 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12557 - *) ac_try_echo=$ac_try;;
12558 -esac
12559 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12560 - (eval "$ac_compile") 2>conftest.er1
12561 - ac_status=$?
12562 - grep -v '^ *+' conftest.er1 >conftest.err
12563 - rm -f conftest.er1
12564 - cat conftest.err >&5
12565 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12566 - (exit $ac_status); } && {
12567 - test -z "$ac_c_werror_flag" ||
12568 - test ! -s conftest.err
12569 - } && test -s conftest.$ac_objext; then
12570 - ac_hi=$ac_mid; break
12571 -else
12572 - echo "$as_me: failed program was:" >&5
12573 -sed 's/^/| /' conftest.$ac_ext >&5
12575 - ac_lo=`expr $ac_mid + 1`
12576 - if test $ac_lo -le $ac_mid; then
12577 - ac_lo= ac_hi=
12578 - break
12579 - fi
12580 - ac_mid=`expr 2 '*' $ac_mid + 1`
12583 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12584 - done
12585 -else
12586 - echo "$as_me: failed program was:" >&5
12587 -sed 's/^/| /' conftest.$ac_ext >&5
12589 - cat >conftest.$ac_ext <<_ACEOF
12590 -/* confdefs.h. */
12591 -_ACEOF
12592 -cat confdefs.h >>conftest.$ac_ext
12593 -cat >>conftest.$ac_ext <<_ACEOF
12594 -/* end confdefs.h. */
12595 -$ac_includes_default
12596 - typedef long long ac__type_sizeof_;
12597 -int
12598 -main ()
12600 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12601 -test_array [0] = 0
12604 - return 0;
12606 -_ACEOF
12607 -rm -f conftest.$ac_objext
12608 -if { (ac_try="$ac_compile"
12609 -case "(($ac_try" in
12610 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12611 - *) ac_try_echo=$ac_try;;
12612 -esac
12613 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12614 - (eval "$ac_compile") 2>conftest.er1
12615 - ac_status=$?
12616 - grep -v '^ *+' conftest.er1 >conftest.err
12617 - rm -f conftest.er1
12618 - cat conftest.err >&5
12619 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12620 - (exit $ac_status); } && {
12621 - test -z "$ac_c_werror_flag" ||
12622 - test ! -s conftest.err
12623 - } && test -s conftest.$ac_objext; then
12624 - ac_hi=-1 ac_mid=-1
12625 - while :; do
12626 - cat >conftest.$ac_ext <<_ACEOF
12627 -/* confdefs.h. */
12628 -_ACEOF
12629 -cat confdefs.h >>conftest.$ac_ext
12630 -cat >>conftest.$ac_ext <<_ACEOF
12631 -/* end confdefs.h. */
12632 -$ac_includes_default
12633 - typedef long long ac__type_sizeof_;
12634 -int
12635 -main ()
12637 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12638 -test_array [0] = 0
12641 - return 0;
12643 -_ACEOF
12644 -rm -f conftest.$ac_objext
12645 -if { (ac_try="$ac_compile"
12646 -case "(($ac_try" in
12647 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12648 - *) ac_try_echo=$ac_try;;
12649 -esac
12650 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12651 - (eval "$ac_compile") 2>conftest.er1
12652 - ac_status=$?
12653 - grep -v '^ *+' conftest.er1 >conftest.err
12654 - rm -f conftest.er1
12655 - cat conftest.err >&5
12656 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657 - (exit $ac_status); } && {
12658 - test -z "$ac_c_werror_flag" ||
12659 - test ! -s conftest.err
12660 - } && test -s conftest.$ac_objext; then
12661 - ac_lo=$ac_mid; break
12662 -else
12663 - echo "$as_me: failed program was:" >&5
12664 -sed 's/^/| /' conftest.$ac_ext >&5
12666 - ac_hi=`expr '(' $ac_mid ')' - 1`
12667 - if test $ac_mid -le $ac_hi; then
12668 - ac_lo= ac_hi=
12669 - break
12670 - fi
12671 - ac_mid=`expr 2 '*' $ac_mid`
12674 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12675 - done
12676 -else
12677 - echo "$as_me: failed program was:" >&5
12678 -sed 's/^/| /' conftest.$ac_ext >&5
12680 - ac_lo= ac_hi=
12683 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12686 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12687 -# Binary search between lo and hi bounds.
12688 -while test "x$ac_lo" != "x$ac_hi"; do
12689 - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12690 - cat >conftest.$ac_ext <<_ACEOF
12691 -/* confdefs.h. */
12692 -_ACEOF
12693 -cat confdefs.h >>conftest.$ac_ext
12694 -cat >>conftest.$ac_ext <<_ACEOF
12695 -/* end confdefs.h. */
12696 -$ac_includes_default
12697 - typedef long long ac__type_sizeof_;
12698 -int
12699 -main ()
12701 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12702 -test_array [0] = 0
12705 - return 0;
12707 -_ACEOF
12708 -rm -f conftest.$ac_objext
12709 -if { (ac_try="$ac_compile"
12710 -case "(($ac_try" in
12711 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12712 - *) ac_try_echo=$ac_try;;
12713 -esac
12714 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12715 - (eval "$ac_compile") 2>conftest.er1
12716 - ac_status=$?
12717 - grep -v '^ *+' conftest.er1 >conftest.err
12718 - rm -f conftest.er1
12719 - cat conftest.err >&5
12720 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12721 - (exit $ac_status); } && {
12722 - test -z "$ac_c_werror_flag" ||
12723 - test ! -s conftest.err
12724 - } && test -s conftest.$ac_objext; then
12725 - ac_hi=$ac_mid
12726 -else
12727 - echo "$as_me: failed program was:" >&5
12728 -sed 's/^/| /' conftest.$ac_ext >&5
12730 - ac_lo=`expr '(' $ac_mid ')' + 1`
12733 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12734 -done
12735 -case $ac_lo in
12736 -?*) ac_cv_sizeof_long_long=$ac_lo;;
12737 -'') if test "$ac_cv_type_long_long" = yes; then
12738 - { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
12739 -See \`config.log' for more details." >&5
12740 -echo "$as_me: error: cannot compute sizeof (long long)
12741 -See \`config.log' for more details." >&2;}
12742 - { (exit 77); exit 77; }; }
12743 - else
12744 - ac_cv_sizeof_long_long=0
12745 - fi ;;
12746 -esac
12747 -else
12748 - cat >conftest.$ac_ext <<_ACEOF
12749 -/* confdefs.h. */
12750 -_ACEOF
12751 -cat confdefs.h >>conftest.$ac_ext
12752 -cat >>conftest.$ac_ext <<_ACEOF
12753 -/* end confdefs.h. */
12754 -$ac_includes_default
12755 - typedef long long ac__type_sizeof_;
12756 -static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12757 -static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12758 -#include <stdio.h>
12759 -#include <stdlib.h>
12760 -int
12761 -main ()
12764 - FILE *f = fopen ("conftest.val", "w");
12765 - if (! f)
12766 - return 1;
12767 - if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12769 - long int i = longval ();
12770 - if (i != ((long int) (sizeof (ac__type_sizeof_))))
12771 - return 1;
12772 - fprintf (f, "%ld\n", i);
12774 - else
12776 - unsigned long int i = ulongval ();
12777 - if (i != ((long int) (sizeof (ac__type_sizeof_))))
12778 - return 1;
12779 - fprintf (f, "%lu\n", i);
12781 - return ferror (f) || fclose (f) != 0;
12784 - return 0;
12786 -_ACEOF
12787 -rm -f conftest$ac_exeext
12788 -if { (ac_try="$ac_link"
12789 -case "(($ac_try" in
12790 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12791 - *) ac_try_echo=$ac_try;;
12792 -esac
12793 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12794 - (eval "$ac_link") 2>&5
12795 - ac_status=$?
12796 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12797 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12798 - { (case "(($ac_try" in
12799 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12800 - *) ac_try_echo=$ac_try;;
12801 -esac
12802 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12803 - (eval "$ac_try") 2>&5
12804 - ac_status=$?
12805 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12806 - (exit $ac_status); }; }; then
12807 - ac_cv_sizeof_long_long=`cat conftest.val`
12808 -else
12809 - echo "$as_me: program exited with status $ac_status" >&5
12810 -echo "$as_me: failed program was:" >&5
12811 -sed 's/^/| /' conftest.$ac_ext >&5
12813 -( exit $ac_status )
12814 -if test "$ac_cv_type_long_long" = yes; then
12815 - { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
12816 -See \`config.log' for more details." >&5
12817 -echo "$as_me: error: cannot compute sizeof (long long)
12818 -See \`config.log' for more details." >&2;}
12819 - { (exit 77); exit 77; }; }
12820 - else
12821 - ac_cv_sizeof_long_long=0
12822 - fi
12824 -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12826 -rm -f conftest.val
12828 -{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
12829 -echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
12833 -cat >>confdefs.h <<_ACEOF
12834 -#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12835 -_ACEOF
12840 -{ echo "$as_me:$LINENO: checking for uintptr_t" >&5
12841 -echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
12842 -if test "${ac_cv_type_uintptr_t+set}" = set; then
12843 - echo $ECHO_N "(cached) $ECHO_C" >&6
12844 -else
12845 - cat >conftest.$ac_ext <<_ACEOF
12846 -/* confdefs.h. */
12847 -_ACEOF
12848 -cat confdefs.h >>conftest.$ac_ext
12849 -cat >>conftest.$ac_ext <<_ACEOF
12850 -/* end confdefs.h. */
12851 -#ifdef HAVE_STDINT_H
12852 - #include <stdint.h>
12853 - #endif
12855 -typedef uintptr_t ac__type_new_;
12856 -int
12857 -main ()
12859 -if ((ac__type_new_ *) 0)
12860 - return 0;
12861 -if (sizeof (ac__type_new_))
12862 - return 0;
12864 - return 0;
12866 -_ACEOF
12867 -rm -f conftest.$ac_objext
12868 -if { (ac_try="$ac_compile"
12869 -case "(($ac_try" in
12870 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12871 - *) ac_try_echo=$ac_try;;
12872 -esac
12873 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12874 - (eval "$ac_compile") 2>conftest.er1
12875 - ac_status=$?
12876 - grep -v '^ *+' conftest.er1 >conftest.err
12877 - rm -f conftest.er1
12878 - cat conftest.err >&5
12879 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12880 - (exit $ac_status); } && {
12881 - test -z "$ac_c_werror_flag" ||
12882 - test ! -s conftest.err
12883 - } && test -s conftest.$ac_objext; then
12884 - ac_cv_type_uintptr_t=yes
12885 -else
12886 - echo "$as_me: failed program was:" >&5
12887 -sed 's/^/| /' conftest.$ac_ext >&5
12889 - ac_cv_type_uintptr_t=no
12892 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12894 -{ echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12895 -echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12896 -if test $ac_cv_type_uintptr_t = yes; then
12898 -cat >>confdefs.h <<_ACEOF
12899 -#define HAVE_UINTPTR_T 1
12900 -_ACEOF
12902 -{ echo "$as_me:$LINENO: checking for uintptr_t" >&5
12903 -echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
12904 -if test "${ac_cv_type_uintptr_t+set}" = set; then
12905 - echo $ECHO_N "(cached) $ECHO_C" >&6
12906 -else
12907 - cat >conftest.$ac_ext <<_ACEOF
12908 -/* confdefs.h. */
12909 -_ACEOF
12910 -cat confdefs.h >>conftest.$ac_ext
12911 -cat >>conftest.$ac_ext <<_ACEOF
12912 -/* end confdefs.h. */
12913 -$ac_includes_default
12914 -typedef uintptr_t ac__type_new_;
12915 -int
12916 -main ()
12918 -if ((ac__type_new_ *) 0)
12919 - return 0;
12920 -if (sizeof (ac__type_new_))
12921 - return 0;
12923 - return 0;
12925 -_ACEOF
12926 -rm -f conftest.$ac_objext
12927 -if { (ac_try="$ac_compile"
12928 -case "(($ac_try" in
12929 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12930 - *) ac_try_echo=$ac_try;;
12931 -esac
12932 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12933 - (eval "$ac_compile") 2>conftest.er1
12934 - ac_status=$?
12935 - grep -v '^ *+' conftest.er1 >conftest.err
12936 - rm -f conftest.er1
12937 - cat conftest.err >&5
12938 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12939 - (exit $ac_status); } && {
12940 - test -z "$ac_c_werror_flag" ||
12941 - test ! -s conftest.err
12942 - } && test -s conftest.$ac_objext; then
12943 - ac_cv_type_uintptr_t=yes
12944 -else
12945 - echo "$as_me: failed program was:" >&5
12946 -sed 's/^/| /' conftest.$ac_ext >&5
12948 - ac_cv_type_uintptr_t=no
12951 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12953 -{ echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12954 -echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12956 -# The cast to long int works around a bug in the HP C Compiler
12957 -# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12958 -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12959 -# This bug is HP SR number 8606223364.
12960 -{ echo "$as_me:$LINENO: checking size of uintptr_t" >&5
12961 -echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6; }
12962 -if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
12963 - echo $ECHO_N "(cached) $ECHO_C" >&6
12964 -else
12965 - if test "$cross_compiling" = yes; then
12966 - # Depending upon the size, compute the lo and hi bounds.
12967 -cat >conftest.$ac_ext <<_ACEOF
12968 -/* confdefs.h. */
12969 -_ACEOF
12970 -cat confdefs.h >>conftest.$ac_ext
12971 -cat >>conftest.$ac_ext <<_ACEOF
12972 -/* end confdefs.h. */
12973 -$ac_includes_default
12974 - typedef uintptr_t ac__type_sizeof_;
12975 -int
12976 -main ()
12978 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12979 -test_array [0] = 0
12982 - return 0;
12984 -_ACEOF
12985 -rm -f conftest.$ac_objext
12986 -if { (ac_try="$ac_compile"
12987 -case "(($ac_try" in
12988 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12989 - *) ac_try_echo=$ac_try;;
12990 -esac
12991 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12992 - (eval "$ac_compile") 2>conftest.er1
12993 - ac_status=$?
12994 - grep -v '^ *+' conftest.er1 >conftest.err
12995 - rm -f conftest.er1
12996 - cat conftest.err >&5
12997 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12998 - (exit $ac_status); } && {
12999 - test -z "$ac_c_werror_flag" ||
13000 - test ! -s conftest.err
13001 - } && test -s conftest.$ac_objext; then
13002 - ac_lo=0 ac_mid=0
13003 - while :; do
13004 - cat >conftest.$ac_ext <<_ACEOF
13005 -/* confdefs.h. */
13006 -_ACEOF
13007 -cat confdefs.h >>conftest.$ac_ext
13008 -cat >>conftest.$ac_ext <<_ACEOF
13009 -/* end confdefs.h. */
13010 -$ac_includes_default
13011 - typedef uintptr_t ac__type_sizeof_;
13012 -int
13013 -main ()
13015 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13016 -test_array [0] = 0
13019 - return 0;
13021 -_ACEOF
13022 -rm -f conftest.$ac_objext
13023 -if { (ac_try="$ac_compile"
13024 -case "(($ac_try" in
13025 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13026 - *) ac_try_echo=$ac_try;;
13027 -esac
13028 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13029 - (eval "$ac_compile") 2>conftest.er1
13030 - ac_status=$?
13031 - grep -v '^ *+' conftest.er1 >conftest.err
13032 - rm -f conftest.er1
13033 - cat conftest.err >&5
13034 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13035 - (exit $ac_status); } && {
13036 - test -z "$ac_c_werror_flag" ||
13037 - test ! -s conftest.err
13038 - } && test -s conftest.$ac_objext; then
13039 - ac_hi=$ac_mid; break
13040 -else
13041 - echo "$as_me: failed program was:" >&5
13042 -sed 's/^/| /' conftest.$ac_ext >&5
13044 - ac_lo=`expr $ac_mid + 1`
13045 - if test $ac_lo -le $ac_mid; then
13046 - ac_lo= ac_hi=
13047 - break
13048 - fi
13049 - ac_mid=`expr 2 '*' $ac_mid + 1`
13052 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13053 - done
13054 -else
13055 - echo "$as_me: failed program was:" >&5
13056 -sed 's/^/| /' conftest.$ac_ext >&5
13058 - cat >conftest.$ac_ext <<_ACEOF
13059 -/* confdefs.h. */
13060 -_ACEOF
13061 -cat confdefs.h >>conftest.$ac_ext
13062 -cat >>conftest.$ac_ext <<_ACEOF
13063 -/* end confdefs.h. */
13064 -$ac_includes_default
13065 - typedef uintptr_t ac__type_sizeof_;
13066 -int
13067 -main ()
13069 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13070 -test_array [0] = 0
13073 - return 0;
13075 -_ACEOF
13076 -rm -f conftest.$ac_objext
13077 -if { (ac_try="$ac_compile"
13078 -case "(($ac_try" in
13079 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13080 - *) ac_try_echo=$ac_try;;
13081 -esac
13082 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13083 - (eval "$ac_compile") 2>conftest.er1
13084 - ac_status=$?
13085 - grep -v '^ *+' conftest.er1 >conftest.err
13086 - rm -f conftest.er1
13087 - cat conftest.err >&5
13088 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13089 - (exit $ac_status); } && {
13090 - test -z "$ac_c_werror_flag" ||
13091 - test ! -s conftest.err
13092 - } && test -s conftest.$ac_objext; then
13093 - ac_hi=-1 ac_mid=-1
13094 - while :; do
13095 - cat >conftest.$ac_ext <<_ACEOF
13096 -/* confdefs.h. */
13097 -_ACEOF
13098 -cat confdefs.h >>conftest.$ac_ext
13099 -cat >>conftest.$ac_ext <<_ACEOF
13100 -/* end confdefs.h. */
13101 -$ac_includes_default
13102 - typedef uintptr_t ac__type_sizeof_;
13103 -int
13104 -main ()
13106 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13107 -test_array [0] = 0
13110 - return 0;
13112 -_ACEOF
13113 -rm -f conftest.$ac_objext
13114 -if { (ac_try="$ac_compile"
13115 -case "(($ac_try" in
13116 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13117 - *) ac_try_echo=$ac_try;;
13118 -esac
13119 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13120 - (eval "$ac_compile") 2>conftest.er1
13121 - ac_status=$?
13122 - grep -v '^ *+' conftest.er1 >conftest.err
13123 - rm -f conftest.er1
13124 - cat conftest.err >&5
13125 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13126 - (exit $ac_status); } && {
13127 - test -z "$ac_c_werror_flag" ||
13128 - test ! -s conftest.err
13129 - } && test -s conftest.$ac_objext; then
13130 - ac_lo=$ac_mid; break
13131 -else
13132 - echo "$as_me: failed program was:" >&5
13133 -sed 's/^/| /' conftest.$ac_ext >&5
13135 - ac_hi=`expr '(' $ac_mid ')' - 1`
13136 - if test $ac_mid -le $ac_hi; then
13137 - ac_lo= ac_hi=
13138 - break
13139 - fi
13140 - ac_mid=`expr 2 '*' $ac_mid`
13143 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13144 - done
13145 -else
13146 - echo "$as_me: failed program was:" >&5
13147 -sed 's/^/| /' conftest.$ac_ext >&5
13149 - ac_lo= ac_hi=
13152 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13155 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13156 -# Binary search between lo and hi bounds.
13157 -while test "x$ac_lo" != "x$ac_hi"; do
13158 - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13159 - cat >conftest.$ac_ext <<_ACEOF
13160 -/* confdefs.h. */
13161 -_ACEOF
13162 -cat confdefs.h >>conftest.$ac_ext
13163 -cat >>conftest.$ac_ext <<_ACEOF
13164 -/* end confdefs.h. */
13165 -$ac_includes_default
13166 - typedef uintptr_t ac__type_sizeof_;
13167 -int
13168 -main ()
13170 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13171 -test_array [0] = 0
13174 - return 0;
13176 -_ACEOF
13177 -rm -f conftest.$ac_objext
13178 -if { (ac_try="$ac_compile"
13179 -case "(($ac_try" in
13180 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13181 - *) ac_try_echo=$ac_try;;
13182 -esac
13183 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13184 - (eval "$ac_compile") 2>conftest.er1
13185 - ac_status=$?
13186 - grep -v '^ *+' conftest.er1 >conftest.err
13187 - rm -f conftest.er1
13188 - cat conftest.err >&5
13189 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13190 - (exit $ac_status); } && {
13191 - test -z "$ac_c_werror_flag" ||
13192 - test ! -s conftest.err
13193 - } && test -s conftest.$ac_objext; then
13194 - ac_hi=$ac_mid
13195 -else
13196 - echo "$as_me: failed program was:" >&5
13197 -sed 's/^/| /' conftest.$ac_ext >&5
13199 - ac_lo=`expr '(' $ac_mid ')' + 1`
13202 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13203 -done
13204 -case $ac_lo in
13205 -?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
13206 -'') if test "$ac_cv_type_uintptr_t" = yes; then
13207 - { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
13208 -See \`config.log' for more details." >&5
13209 -echo "$as_me: error: cannot compute sizeof (uintptr_t)
13210 -See \`config.log' for more details." >&2;}
13211 - { (exit 77); exit 77; }; }
13212 - else
13213 - ac_cv_sizeof_uintptr_t=0
13214 - fi ;;
13215 -esac
13216 -else
13217 - cat >conftest.$ac_ext <<_ACEOF
13218 -/* confdefs.h. */
13219 -_ACEOF
13220 -cat confdefs.h >>conftest.$ac_ext
13221 -cat >>conftest.$ac_ext <<_ACEOF
13222 -/* end confdefs.h. */
13223 -$ac_includes_default
13224 - typedef uintptr_t ac__type_sizeof_;
13225 -static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13226 -static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13227 -#include <stdio.h>
13228 -#include <stdlib.h>
13229 -int
13230 -main ()
13233 - FILE *f = fopen ("conftest.val", "w");
13234 - if (! f)
13235 - return 1;
13236 - if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13238 - long int i = longval ();
13239 - if (i != ((long int) (sizeof (ac__type_sizeof_))))
13240 - return 1;
13241 - fprintf (f, "%ld\n", i);
13243 - else
13245 - unsigned long int i = ulongval ();
13246 - if (i != ((long int) (sizeof (ac__type_sizeof_))))
13247 - return 1;
13248 - fprintf (f, "%lu\n", i);
13250 - return ferror (f) || fclose (f) != 0;
13253 - return 0;
13255 -_ACEOF
13256 -rm -f conftest$ac_exeext
13257 -if { (ac_try="$ac_link"
13258 -case "(($ac_try" in
13259 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13260 - *) ac_try_echo=$ac_try;;
13261 -esac
13262 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13263 - (eval "$ac_link") 2>&5
13264 - ac_status=$?
13265 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13266 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13267 - { (case "(($ac_try" in
13268 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13269 - *) ac_try_echo=$ac_try;;
13270 -esac
13271 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13272 - (eval "$ac_try") 2>&5
13273 - ac_status=$?
13274 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13275 - (exit $ac_status); }; }; then
13276 - ac_cv_sizeof_uintptr_t=`cat conftest.val`
13277 -else
13278 - echo "$as_me: program exited with status $ac_status" >&5
13279 -echo "$as_me: failed program was:" >&5
13280 -sed 's/^/| /' conftest.$ac_ext >&5
13282 -( exit $ac_status )
13283 -if test "$ac_cv_type_uintptr_t" = yes; then
13284 - { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
13285 -See \`config.log' for more details." >&5
13286 -echo "$as_me: error: cannot compute sizeof (uintptr_t)
13287 -See \`config.log' for more details." >&2;}
13288 - { (exit 77); exit 77; }; }
13289 - else
13290 - ac_cv_sizeof_uintptr_t=0
13291 - fi
13293 -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13295 -rm -f conftest.val
13297 -{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
13298 -echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6; }
13302 -cat >>confdefs.h <<_ACEOF
13303 -#define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
13304 -_ACEOF
13311 -# Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.
13312 -{ echo "$as_me:$LINENO: checking size of off_t" >&5
13313 -echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
13314 -if test "${ac_cv_sizeof_off_t+set}" = set; then
13315 - echo $ECHO_N "(cached) $ECHO_C" >&6
13316 -else
13317 - if test "$cross_compiling" = yes; then
13318 - ac_cv_sizeof_off_t=4
13319 -else
13320 - cat >conftest.$ac_ext <<_ACEOF
13321 -/* confdefs.h. */
13322 -_ACEOF
13323 -cat confdefs.h >>conftest.$ac_ext
13324 -cat >>conftest.$ac_ext <<_ACEOF
13325 -/* end confdefs.h. */
13326 -#include <stdio.h>
13327 -#include <sys/types.h>
13328 -main()
13330 - FILE *f=fopen("conftestval", "w");
13331 - if (!f) exit(1);
13332 - fprintf(f, "%d\n", sizeof(off_t));
13333 - exit(0);
13335 -_ACEOF
13336 -rm -f conftest$ac_exeext
13337 -if { (ac_try="$ac_link"
13338 -case "(($ac_try" in
13339 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13340 - *) ac_try_echo=$ac_try;;
13341 -esac
13342 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13343 - (eval "$ac_link") 2>&5
13344 - ac_status=$?
13345 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13346 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13347 - { (case "(($ac_try" in
13348 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13349 - *) ac_try_echo=$ac_try;;
13350 -esac
13351 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13352 - (eval "$ac_try") 2>&5
13353 - ac_status=$?
13354 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13355 - (exit $ac_status); }; }; then
13356 - ac_cv_sizeof_off_t=`cat conftestval`
13357 -else
13358 - echo "$as_me: program exited with status $ac_status" >&5
13359 -echo "$as_me: failed program was:" >&5
13360 -sed 's/^/| /' conftest.$ac_ext >&5
13362 -( exit $ac_status )
13363 -ac_cv_sizeof_off_t=0
13365 -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13372 -{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
13373 -echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
13375 -cat >>confdefs.h <<_ACEOF
13376 -#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
13377 -_ACEOF
13380 -{ echo "$as_me:$LINENO: checking whether to enable large file support" >&5
13381 -echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6; }
13382 -if test "$have_long_long" = yes -a \
13383 - "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
13384 - "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
13386 -cat >>confdefs.h <<\_ACEOF
13387 -#define HAVE_LARGEFILE_SUPPORT 1
13388 -_ACEOF
13390 - { echo "$as_me:$LINENO: result: yes" >&5
13391 -echo "${ECHO_T}yes" >&6; }
13392 -else
13393 - { echo "$as_me:$LINENO: result: no" >&5
13394 -echo "${ECHO_T}no" >&6; }
13397 -# AC_CHECK_SIZEOF() doesn't include <time.h>.
13398 -{ echo "$as_me:$LINENO: checking size of time_t" >&5
13399 -echo $ECHO_N "checking size of time_t... $ECHO_C" >&6; }
13400 -if test "${ac_cv_sizeof_time_t+set}" = set; then
13401 - echo $ECHO_N "(cached) $ECHO_C" >&6
13402 -else
13403 - if test "$cross_compiling" = yes; then
13404 - ac_cv_sizeof_time_t=4
13405 -else
13406 - cat >conftest.$ac_ext <<_ACEOF
13407 -/* confdefs.h. */
13408 -_ACEOF
13409 -cat confdefs.h >>conftest.$ac_ext
13410 -cat >>conftest.$ac_ext <<_ACEOF
13411 -/* end confdefs.h. */
13412 -#include <stdio.h>
13413 -#include <time.h>
13414 -main()
13416 - FILE *f=fopen("conftestval", "w");
13417 - if (!f) exit(1);
13418 - fprintf(f, "%d\n", sizeof(time_t));
13419 - exit(0);
13421 -_ACEOF
13422 -rm -f conftest$ac_exeext
13423 -if { (ac_try="$ac_link"
13424 -case "(($ac_try" in
13425 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13426 - *) ac_try_echo=$ac_try;;
13427 -esac
13428 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13429 - (eval "$ac_link") 2>&5
13430 - ac_status=$?
13431 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13432 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13433 - { (case "(($ac_try" in
13434 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13435 - *) ac_try_echo=$ac_try;;
13436 -esac
13437 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13438 - (eval "$ac_try") 2>&5
13439 - ac_status=$?
13440 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13441 - (exit $ac_status); }; }; then
13442 - ac_cv_sizeof_time_t=`cat conftestval`
13443 -else
13444 - echo "$as_me: program exited with status $ac_status" >&5
13445 -echo "$as_me: failed program was:" >&5
13446 -sed 's/^/| /' conftest.$ac_ext >&5
13448 -( exit $ac_status )
13449 -ac_cv_sizeof_time_t=0
13451 -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13458 -{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
13459 -echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; }
13461 -cat >>confdefs.h <<_ACEOF
13462 -#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
13463 -_ACEOF
13467 -# if have pthread_t then define SIZEOF_PTHREAD_T
13468 -ac_save_cc="$CC"
13469 -if test "$ac_cv_kpthread" = "yes"
13470 -then CC="$CC -Kpthread"
13471 -elif test "$ac_cv_kthread" = "yes"
13472 -then CC="$CC -Kthread"
13473 -elif test "$ac_cv_pthread" = "yes"
13474 -then CC="$CC -pthread"
13476 -{ echo "$as_me:$LINENO: checking for pthread_t" >&5
13477 -echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; }
13478 -have_pthread_t=no
13479 -cat >conftest.$ac_ext <<_ACEOF
13480 -/* confdefs.h. */
13481 -_ACEOF
13482 -cat confdefs.h >>conftest.$ac_ext
13483 -cat >>conftest.$ac_ext <<_ACEOF
13484 -/* end confdefs.h. */
13485 -#include <pthread.h>
13486 -int
13487 -main ()
13489 -pthread_t x; x = *(pthread_t*)0;
13491 - return 0;
13493 -_ACEOF
13494 -rm -f conftest.$ac_objext
13495 -if { (ac_try="$ac_compile"
13496 -case "(($ac_try" in
13497 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13498 - *) ac_try_echo=$ac_try;;
13499 -esac
13500 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13501 - (eval "$ac_compile") 2>conftest.er1
13502 - ac_status=$?
13503 - grep -v '^ *+' conftest.er1 >conftest.err
13504 - rm -f conftest.er1
13505 - cat conftest.err >&5
13506 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13507 - (exit $ac_status); } && {
13508 - test -z "$ac_c_werror_flag" ||
13509 - test ! -s conftest.err
13510 - } && test -s conftest.$ac_objext; then
13511 - have_pthread_t=yes
13512 -else
13513 - echo "$as_me: failed program was:" >&5
13514 -sed 's/^/| /' conftest.$ac_ext >&5
13519 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13520 -{ echo "$as_me:$LINENO: result: $have_pthread_t" >&5
13521 -echo "${ECHO_T}$have_pthread_t" >&6; }
13522 -if test "$have_pthread_t" = yes ; then
13523 - # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
13524 - { echo "$as_me:$LINENO: checking size of pthread_t" >&5
13525 -echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6; }
13526 - if test "${ac_cv_sizeof_pthread_t+set}" = set; then
13527 - echo $ECHO_N "(cached) $ECHO_C" >&6
13528 -else
13529 - if test "$cross_compiling" = yes; then
13530 - ac_cv_sizeof_pthread_t=4
13531 -else
13532 - cat >conftest.$ac_ext <<_ACEOF
13533 -/* confdefs.h. */
13534 -_ACEOF
13535 -cat confdefs.h >>conftest.$ac_ext
13536 -cat >>conftest.$ac_ext <<_ACEOF
13537 -/* end confdefs.h. */
13538 -#include <stdio.h>
13539 -#include <pthread.h>
13540 - main()
13542 - FILE *f=fopen("conftestval", "w");
13543 - if (!f) exit(1);
13544 - fprintf(f, "%d\n", sizeof(pthread_t));
13545 - exit(0);
13547 -_ACEOF
13548 -rm -f conftest$ac_exeext
13549 -if { (ac_try="$ac_link"
13550 -case "(($ac_try" in
13551 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13552 - *) ac_try_echo=$ac_try;;
13553 -esac
13554 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13555 - (eval "$ac_link") 2>&5
13556 - ac_status=$?
13557 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13558 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13559 - { (case "(($ac_try" in
13560 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13561 - *) ac_try_echo=$ac_try;;
13562 -esac
13563 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13564 - (eval "$ac_try") 2>&5
13565 - ac_status=$?
13566 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13567 - (exit $ac_status); }; }; then
13568 - ac_cv_sizeof_pthread_t=`cat conftestval`
13569 -else
13570 - echo "$as_me: program exited with status $ac_status" >&5
13571 -echo "$as_me: failed program was:" >&5
13572 -sed 's/^/| /' conftest.$ac_ext >&5
13574 -( exit $ac_status )
13575 -ac_cv_sizeof_pthread_t=0
13577 -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13584 - { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
13585 -echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6; }
13587 -cat >>confdefs.h <<_ACEOF
13588 -#define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
13589 -_ACEOF
13592 -CC="$ac_save_cc"
13594 -{ echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
13595 -echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6; }
13596 -# Check whether --enable-toolbox-glue was given.
13597 -if test "${enable_toolbox_glue+set}" = set; then
13598 - enableval=$enable_toolbox_glue;
13602 -if test -z "$enable_toolbox_glue"
13603 -then
13604 - case $ac_sys_system/$ac_sys_release in
13605 - Darwin/*)
13606 - enable_toolbox_glue="yes";;
13607 - *)
13608 - enable_toolbox_glue="no";;
13609 - esac
13611 -case "$enable_toolbox_glue" in
13612 -yes)
13613 - extra_machdep_objs="Python/mactoolboxglue.o"
13614 - extra_undefs="-u _PyMac_Error"
13616 -cat >>confdefs.h <<\_ACEOF
13617 -#define USE_TOOLBOX_OBJECT_GLUE 1
13618 -_ACEOF
13620 - ;;
13622 - extra_machdep_objs=""
13623 - extra_undefs=""
13624 - ;;
13625 -esac
13626 -{ echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
13627 -echo "${ECHO_T}$enable_toolbox_glue" >&6; }
13630 -case $ac_sys_system/$ac_sys_release in
13631 - Darwin/[01567]\..*)
13632 - OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
13633 - ;;
13634 - Darwin/*)
13635 - OTHER_LIBTOOL_OPT=""
13636 - ;;
13637 -esac
13640 -case $ac_sys_system/$ac_sys_release in
13641 - Darwin/[01567]\..*)
13642 - LIBTOOL_CRUFT="-framework System -lcc_dynamic"
13643 - if test "${enable_universalsdk}"; then
13645 - else
13646 - LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch`"
13647 - fi
13648 - LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13649 - LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
13650 - Darwin/*)
13651 - gcc_version=`gcc -v 2>&1 | grep version | cut -d\ -f3`
13652 - if test ${gcc_version} '<' 4.0
13653 - then
13654 - LIBTOOL_CRUFT="-lcc_dynamic"
13655 - else
13656 - LIBTOOL_CRUFT=""
13657 - fi
13658 - LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch`"
13659 - LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13660 - LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
13661 -esac
13663 -{ echo "$as_me:$LINENO: checking for --enable-framework" >&5
13664 -echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6; }
13665 -if test "$enable_framework"
13666 -then
13667 - BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
13668 - # -F. is needed to allow linking to the framework while
13669 - # in the build location.
13671 -cat >>confdefs.h <<\_ACEOF
13672 -#define WITH_NEXT_FRAMEWORK 1
13673 -_ACEOF
13675 - { echo "$as_me:$LINENO: result: yes" >&5
13676 -echo "${ECHO_T}yes" >&6; }
13677 -else
13678 - { echo "$as_me:$LINENO: result: no" >&5
13679 -echo "${ECHO_T}no" >&6; }
13682 -{ echo "$as_me:$LINENO: checking for dyld" >&5
13683 -echo $ECHO_N "checking for dyld... $ECHO_C" >&6; }
13684 -case $ac_sys_system/$ac_sys_release in
13685 - Darwin/*)
13687 -cat >>confdefs.h <<\_ACEOF
13688 -#define WITH_DYLD 1
13689 -_ACEOF
13691 - { echo "$as_me:$LINENO: result: always on for Darwin" >&5
13692 -echo "${ECHO_T}always on for Darwin" >&6; }
13693 - ;;
13694 - *)
13695 - { echo "$as_me:$LINENO: result: no" >&5
13696 -echo "${ECHO_T}no" >&6; }
13697 - ;;
13698 -esac
13700 -# Set info about shared libraries.
13706 -# SO is the extension of shared libraries `(including the dot!)
13707 -# -- usually .so, .sl on HP-UX, .dll on Cygwin
13708 -{ echo "$as_me:$LINENO: checking SO" >&5
13709 -echo $ECHO_N "checking SO... $ECHO_C" >&6; }
13710 -if test -z "$SO"
13711 -then
13712 - case $ac_sys_system in
13713 - hp*|HP*)
13714 - case `uname -m` in
13715 - ia64) SO=.so;;
13716 - *) SO=.sl;;
13717 - esac
13718 - ;;
13719 - CYGWIN*) SO=.dll;;
13720 - *) SO=.so;;
13721 - esac
13722 -else
13723 - # this might also be a termcap variable, see #610332
13724 - echo
13725 - echo '====================================================================='
13726 - echo '+ +'
13727 - echo '+ WARNING: You have set SO in your environment. +'
13728 - echo '+ Do you really mean to change the extension for shared libraries? +'
13729 - echo '+ Continuing in 10 seconds to let you to ponder. +'
13730 - echo '+ +'
13731 - echo '====================================================================='
13732 - sleep 10
13734 -{ echo "$as_me:$LINENO: result: $SO" >&5
13735 -echo "${ECHO_T}$SO" >&6; }
13737 -cat >>confdefs.h <<_ACEOF
13738 -#define SHLIB_EXT "$SO"
13739 -_ACEOF
13741 -# LDSHARED is the ld *command* used to create shared library
13742 -# -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
13743 -# (Shared libraries in this instance are shared modules to be loaded into
13744 -# Python, as opposed to building Python itself as a shared library.)
13745 -{ echo "$as_me:$LINENO: checking LDSHARED" >&5
13746 -echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6; }
13747 -if test -z "$LDSHARED"
13748 -then
13749 - case $ac_sys_system/$ac_sys_release in
13750 - AIX*)
13751 - BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
13752 - LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
13753 - ;;
13754 - BeOS*)
13755 - BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
13756 - LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
13757 - ;;
13758 - IRIX/5*) LDSHARED="ld -shared";;
13759 - IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
13760 - SunOS/5*)
13761 - if test "$GCC" = "yes"
13762 - then LDSHARED='$(CC) -shared'
13763 - else LDSHARED='$(CC) -G';
13764 - fi ;;
13765 - hp*|HP*) LDSHARED="ld -b";;
13766 - OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
13767 - Darwin/1.3*)
13768 - LDSHARED='$(CC) $(LDFLAGS) -bundle'
13769 - if test "$enable_framework" ; then
13770 - # Link against the framework. All externals should be defined.
13771 - BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13772 - LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13773 - else
13774 - # No framework. Ignore undefined symbols, assuming they come from Python
13775 - LDSHARED="$LDSHARED -undefined suppress"
13776 - fi ;;
13777 - Darwin/1.4*|Darwin/5.*|Darwin/6.*)
13778 - LDSHARED='$(CC) $(LDFLAGS) -bundle'
13779 - if test "$enable_framework" ; then
13780 - # Link against the framework. All externals should be defined.
13781 - BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13782 - LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13783 - else
13784 - # No framework, use the Python app as bundle-loader
13785 - BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
13786 - LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
13787 - fi ;;
13788 - Darwin/*)
13789 - # Use -undefined dynamic_lookup whenever possible (10.3 and later).
13790 - # This allows an extension to be used in any Python
13791 - cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
13792 - if test ${cur_target} '>' 10.2; then
13793 - cur_target=10.3
13794 - fi
13795 - CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
13797 - # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the
13798 - # environment with a value that is the same as what we'll use
13799 - # in the Makefile to ensure that we'll get the same compiler
13800 - # environment during configure and build time.
13801 - MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET"
13802 - export MACOSX_DEPLOYMENT_TARGET
13804 - EXPORT_MACOSX_DEPLOYMENT_TARGET=''
13805 - if test ${MACOSX_DEPLOYMENT_TARGET-${cur_target}} '>' 10.2
13806 - then
13807 - if test "${enable_universalsdk}"; then
13808 - LDFLAGS="-arch i386 -arch ppc -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
13809 - fi
13810 - LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
13811 - BLDSHARED="$LDSHARED"
13812 - else
13813 - LDSHARED='$(CC) $(LDFLAGS) -bundle'
13814 - if test "$enable_framework" ; then
13815 - # Link against the framework. All externals should be defined.
13816 - BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13817 - LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13818 - else
13819 - # No framework, use the Python app as bundle-loader
13820 - BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
13821 - LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
13822 - fi
13823 - fi
13824 - ;;
13825 - Linux*|GNU*) LDSHARED='$(CC) -shared';;
13826 - BSD/OS*/4*) LDSHARED="gcc -shared";;
13827 - FreeBSD*)
13828 - if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13829 - then
13830 - LDSHARED="$CC -shared ${LDFLAGS}"
13831 - else
13832 - LDSHARED="ld -Bshareable ${LDFLAGS}"
13833 - fi;;
13834 - OpenBSD*)
13835 - if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13836 - then
13837 - LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
13838 - else
13839 - case `uname -r` in
13840 - [01].* | 2.[0-7] | 2.[0-7].*)
13841 - LDSHARED="ld -Bshareable ${LDFLAGS}"
13842 - ;;
13843 - *)
13844 - LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
13845 - ;;
13846 - esac
13847 - fi;;
13848 - NetBSD*|DragonFly*) LDSHARED="cc -shared ${LDFLAGS}";;
13849 - OpenUNIX*|UnixWare*)
13850 - if test "$GCC" = "yes"
13851 - then LDSHARED='$(CC) -shared'
13852 - else LDSHARED='$(CC) -G'
13853 - fi;;
13854 - SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';;
13855 - Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
13856 - CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";;
13857 - atheos*) LDSHARED="gcc -shared";;
13858 - *) LDSHARED="ld";;
13859 - esac
13861 -{ echo "$as_me:$LINENO: result: $LDSHARED" >&5
13862 -echo "${ECHO_T}$LDSHARED" >&6; }
13863 -BLDSHARED=${BLDSHARED-$LDSHARED}
13864 -# CCSHARED are the C *flags* used to create objects to go into a shared
13865 -# library (module) -- this is only needed for a few systems
13866 -{ echo "$as_me:$LINENO: checking CCSHARED" >&5
13867 -echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6; }
13868 -if test -z "$CCSHARED"
13869 -then
13870 - case $ac_sys_system/$ac_sys_release in
13871 - SunOS*) if test "$GCC" = yes;
13872 - then CCSHARED="-fPIC";
13873 - elif test `uname -p` = sparc;
13874 - then CCSHARED="-xcode=pic32";
13875 - else CCSHARED="-Kpic";
13876 - fi;;
13877 - hp*|HP*) if test "$GCC" = yes;
13878 - then CCSHARED="-fPIC";
13879 - else CCSHARED="+z";
13880 - fi;;
13881 - Linux*|GNU*) CCSHARED="-fPIC";;
13882 - BSD/OS*/4*) CCSHARED="-fpic";;
13883 - FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";;
13884 - OpenUNIX*|UnixWare*)
13885 - if test "$GCC" = "yes"
13886 - then CCSHARED="-fPIC"
13887 - else CCSHARED="-KPIC"
13888 - fi;;
13889 - SCO_SV*)
13890 - if test "$GCC" = "yes"
13891 - then CCSHARED="-fPIC"
13892 - else CCSHARED="-Kpic -belf"
13893 - fi;;
13894 - Monterey*) CCSHARED="-G";;
13895 - IRIX*/6*) case $CC in
13896 - *gcc*) CCSHARED="-shared";;
13897 - *) CCSHARED="";;
13898 - esac;;
13899 - atheos*) CCSHARED="-fPIC";;
13900 - esac
13902 -{ echo "$as_me:$LINENO: result: $CCSHARED" >&5
13903 -echo "${ECHO_T}$CCSHARED" >&6; }
13904 -# LINKFORSHARED are the flags passed to the $(CC) command that links
13905 -# the python executable -- this is only needed for a few systems
13906 -{ echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
13907 -echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6; }
13908 -if test -z "$LINKFORSHARED"
13909 -then
13910 - case $ac_sys_system/$ac_sys_release in
13911 - AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';;
13912 - hp*|HP*)
13913 - LINKFORSHARED="-Wl,-E -Wl,+s";;
13914 -# LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
13915 - BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
13916 - Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
13917 - # -u libsys_s pulls in all symbols in libsys
13918 - Darwin/*)
13919 - # -u _PyMac_Error is needed to pull in the mac toolbox glue,
13920 - # which is
13921 - # not used by the core itself but which needs to be in the core so
13922 - # that dynamically loaded extension modules have access to it.
13923 - # -prebind is no longer used, because it actually seems to give a
13924 - # slowdown in stead of a speedup, maybe due to the large number of
13925 - # dynamic loads Python does.
13927 - LINKFORSHARED="$extra_undefs"
13928 - if test "$enable_framework"
13929 - then
13930 - LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13931 - fi
13932 - LINKFORSHARED="$LINKFORSHARED";;
13933 - OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
13934 - SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
13935 - ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
13936 - FreeBSD*|NetBSD*|OpenBSD*|DragonFly*)
13937 - if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13938 - then
13939 - LINKFORSHARED="-Wl,--export-dynamic"
13940 - fi;;
13941 - SunOS/5*) case $CC in
13942 - *gcc*)
13943 - if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
13944 - then
13945 - LINKFORSHARED="-Xlinker --export-dynamic"
13946 - fi;;
13947 - esac;;
13948 - CYGWIN*)
13949 - if test $enable_shared = "no"
13950 - then
13951 - LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)'
13952 - fi;;
13953 - esac
13955 -{ echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
13956 -echo "${ECHO_T}$LINKFORSHARED" >&6; }
13959 -{ echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
13960 -echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6; }
13961 -if test ! "$LIBRARY" = "$LDLIBRARY"
13962 -then
13963 - case $ac_sys_system in
13964 - CYGWIN*)
13965 - # Cygwin needs CCSHARED when building extension DLLs
13966 - # but not when building the interpreter DLL.
13967 - CFLAGSFORSHARED='';;
13968 - *)
13969 - CFLAGSFORSHARED='$(CCSHARED)'
13970 - esac
13972 -{ echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
13973 -echo "${ECHO_T}$CFLAGSFORSHARED" >&6; }
13975 -# SHLIBS are libraries (except -lc and -lm) to link to the python shared
13976 -# library (with --enable-shared).
13977 -# For platforms on which shared libraries are not allowed to have unresolved
13978 -# symbols, this must be set to $(LIBS) (expanded by make). We do this even
13979 -# if it is not required, since it creates a dependency of the shared library
13980 -# to LIBS. This, in turn, means that applications linking the shared libpython
13981 -# don't need to link LIBS explicitly. The default should be only changed
13982 -# on systems where this approach causes problems.
13984 -{ echo "$as_me:$LINENO: checking SHLIBS" >&5
13985 -echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6; }
13986 -case "$ac_sys_system" in
13987 - *)
13988 - SHLIBS='$(LIBS)';;
13989 -esac
13990 -{ echo "$as_me:$LINENO: result: $SHLIBS" >&5
13991 -echo "${ECHO_T}$SHLIBS" >&6; }
13994 -# checks for libraries
13996 -{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13997 -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
13998 -if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13999 - echo $ECHO_N "(cached) $ECHO_C" >&6
14000 -else
14001 - ac_check_lib_save_LIBS=$LIBS
14002 -LIBS="-ldl $LIBS"
14003 -cat >conftest.$ac_ext <<_ACEOF
14004 -/* confdefs.h. */
14005 -_ACEOF
14006 -cat confdefs.h >>conftest.$ac_ext
14007 -cat >>conftest.$ac_ext <<_ACEOF
14008 -/* end confdefs.h. */
14010 -/* Override any GCC internal prototype to avoid an error.
14011 - Use char because int might match the return type of a GCC
14012 - builtin and then its argument prototype would still apply. */
14013 -#ifdef __cplusplus
14014 -extern "C"
14015 -#endif
14016 -char dlopen ();
14017 -int
14018 -main ()
14020 -return dlopen ();
14022 - return 0;
14024 -_ACEOF
14025 -rm -f conftest.$ac_objext conftest$ac_exeext
14026 -if { (ac_try="$ac_link"
14027 -case "(($ac_try" in
14028 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14029 - *) ac_try_echo=$ac_try;;
14030 -esac
14031 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14032 - (eval "$ac_link") 2>conftest.er1
14033 - ac_status=$?
14034 - grep -v '^ *+' conftest.er1 >conftest.err
14035 - rm -f conftest.er1
14036 - cat conftest.err >&5
14037 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
14038 - (exit $ac_status); } && {
14039 - test -z "$ac_c_werror_flag" ||
14040 - test ! -s conftest.err
14041 - } && test -s conftest$ac_exeext &&
14042 - $as_test_x conftest$ac_exeext; then
14043 - ac_cv_lib_dl_dlopen=yes
14044 -else
14045 - echo "$as_me: failed program was:" >&5
14046 -sed 's/^/| /' conftest.$ac_ext >&5
14048 - ac_cv_lib_dl_dlopen=no
14051 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14052 - conftest$ac_exeext conftest.$ac_ext
14053 -LIBS=$ac_check_lib_save_LIBS
14055 -{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14056 -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
14057 -if test $ac_cv_lib_dl_dlopen = yes; then
14058 - cat >>confdefs.h <<_ACEOF
14059 -#define HAVE_LIBDL 1
14060 -_ACEOF
14062 - LIBS="-ldl $LIBS"
14065 - # Dynamic linking for SunOS/Solaris and SYSV
14067 -{ echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
14068 -echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
14069 -if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14070 - echo $ECHO_N "(cached) $ECHO_C" >&6
14071 -else
14072 - ac_check_lib_save_LIBS=$LIBS
14073 -LIBS="-ldld $LIBS"
14074 -cat >conftest.$ac_ext <<_ACEOF
14075 -/* confdefs.h. */
14076 -_ACEOF
14077 -cat confdefs.h >>conftest.$ac_ext
14078 -cat >>conftest.$ac_ext <<_ACEOF
14079 -/* end confdefs.h. */
14081 -/* Override any GCC internal prototype to avoid an error.
14082 - Use char because int might match the return type of a GCC
14083 - builtin and then its argument prototype would still apply. */
14084 -#ifdef __cplusplus
14085 -extern "C"
14086 -#endif
14087 -char shl_load ();
14088 -int
14089 -main ()
14091 -return shl_load ();
14093 - return 0;
14095 -_ACEOF
14096 -rm -f conftest.$ac_objext conftest$ac_exeext
14097 -if { (ac_try="$ac_link"
14098 -case "(($ac_try" in
14099 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14100 - *) ac_try_echo=$ac_try;;
14101 -esac
14102 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14103 - (eval "$ac_link") 2>conftest.er1
14104 - ac_status=$?
14105 - grep -v '^ *+' conftest.er1 >conftest.err
14106 - rm -f conftest.er1
14107 - cat conftest.err >&5
14108 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
14109 - (exit $ac_status); } && {
14110 - test -z "$ac_c_werror_flag" ||
14111 - test ! -s conftest.err
14112 - } && test -s conftest$ac_exeext &&
14113 - $as_test_x conftest$ac_exeext; then
14114 - ac_cv_lib_dld_shl_load=yes
14115 -else
14116 - echo "$as_me: failed program was:" >&5
14117 -sed 's/^/| /' conftest.$ac_ext >&5
14119 - ac_cv_lib_dld_shl_load=no
14122 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14123 - conftest$ac_exeext conftest.$ac_ext
14124 -LIBS=$ac_check_lib_save_LIBS
14126 -{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14127 -echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
14128 -if test $ac_cv_lib_dld_shl_load = yes; then
14129 - cat >>confdefs.h <<_ACEOF
14130 -#define HAVE_LIBDLD 1
14131 -_ACEOF
14133 - LIBS="-ldld $LIBS"
14136 - # Dynamic linking for HP-UX
14138 -# only check for sem_ini if thread support is requested
14139 -if test "$with_threads" = "yes" -o -z "$with_threads"; then
14140 - { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
14141 -echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
14142 -if test "${ac_cv_search_sem_init+set}" = set; then
14143 - echo $ECHO_N "(cached) $ECHO_C" >&6
14144 -else
14145 - ac_func_search_save_LIBS=$LIBS
14146 -cat >conftest.$ac_ext <<_ACEOF
14147 -/* confdefs.h. */
14148 -_ACEOF
14149 -cat confdefs.h >>conftest.$ac_ext
14150 -cat >>conftest.$ac_ext <<_ACEOF
14151 -/* end confdefs.h. */
14153 -/* Override any GCC internal prototype to avoid an error.
14154 - Use char because int might match the return type of a GCC
14155 - builtin and then its argument prototype would still apply. */
14156 -#ifdef __cplusplus
14157 -extern "C"
14158 -#endif
14159 -char sem_init ();
14160 -int
14161 -main ()
14163 -return sem_init ();
14165 - return 0;
14167 -_ACEOF
14168 -for ac_lib in '' pthread rt posix4; do
14169 - if test -z "$ac_lib"; then
14170 - ac_res="none required"
14171 - else
14172 - ac_res=-l$ac_lib
14173 - LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14174 - fi
14175 - rm -f conftest.$ac_objext conftest$ac_exeext
14176 -if { (ac_try="$ac_link"
14177 -case "(($ac_try" in
14178 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14179 - *) ac_try_echo=$ac_try;;
14180 -esac
14181 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14182 - (eval "$ac_link") 2>conftest.er1
14183 - ac_status=$?
14184 - grep -v '^ *+' conftest.er1 >conftest.err
14185 - rm -f conftest.er1
14186 - cat conftest.err >&5
14187 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
14188 - (exit $ac_status); } && {
14189 - test -z "$ac_c_werror_flag" ||
14190 - test ! -s conftest.err
14191 - } && test -s conftest$ac_exeext &&
14192 - $as_test_x conftest$ac_exeext; then
14193 - ac_cv_search_sem_init=$ac_res
14194 -else
14195 - echo "$as_me: failed program was:" >&5
14196 -sed 's/^/| /' conftest.$ac_ext >&5
14201 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14202 - conftest$ac_exeext
14203 - if test "${ac_cv_search_sem_init+set}" = set; then
14204 - break
14206 -done
14207 -if test "${ac_cv_search_sem_init+set}" = set; then
14209 -else
14210 - ac_cv_search_sem_init=no
14212 -rm conftest.$ac_ext
14213 -LIBS=$ac_func_search_save_LIBS
14215 -{ echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
14216 -echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
14217 -ac_res=$ac_cv_search_sem_init
14218 -if test "$ac_res" != no; then
14219 - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14222 - # 'Real Time' functions on Solaris
14223 - # posix4 on Solaris 2.6
14224 - # pthread (first!) on Linux
14227 -# check if we need libintl for locale functions
14228 -{ echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
14229 -echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6; }
14230 -if test "${ac_cv_lib_intl_textdomain+set}" = set; then
14231 - echo $ECHO_N "(cached) $ECHO_C" >&6
14232 -else
14233 - ac_check_lib_save_LIBS=$LIBS
14234 -LIBS="-lintl $LIBS"
14235 -cat >conftest.$ac_ext <<_ACEOF
14236 -/* confdefs.h. */
14237 -_ACEOF
14238 -cat confdefs.h >>conftest.$ac_ext
14239 -cat >>conftest.$ac_ext <<_ACEOF
14240 -/* end confdefs.h. */
14242 -/* Override any GCC internal prototype to avoid an error.
14243 - Use char because int might match the return type of a GCC
14244 - builtin and then its argument prototype would still apply. */
14245 -#ifdef __cplusplus
14246 -extern "C"
14247 -#endif
14248 -char textdomain ();
14249 -int
14250 -main ()
14252 -return textdomain ();
14254 - return 0;
14256 -_ACEOF
14257 -rm -f conftest.$ac_objext conftest$ac_exeext
14258 -if { (ac_try="$ac_link"
14259 -case "(($ac_try" in
14260 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14261 - *) ac_try_echo=$ac_try;;
14262 -esac
14263 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14264 - (eval "$ac_link") 2>conftest.er1
14265 - ac_status=$?
14266 - grep -v '^ *+' conftest.er1 >conftest.err
14267 - rm -f conftest.er1
14268 - cat conftest.err >&5
14269 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
14270 - (exit $ac_status); } && {
14271 - test -z "$ac_c_werror_flag" ||
14272 - test ! -s conftest.err
14273 - } && test -s conftest$ac_exeext &&
14274 - $as_test_x conftest$ac_exeext; then
14275 - ac_cv_lib_intl_textdomain=yes
14276 -else
14277 - echo "$as_me: failed program was:" >&5
14278 -sed 's/^/| /' conftest.$ac_ext >&5
14280 - ac_cv_lib_intl_textdomain=no
14283 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14284 - conftest$ac_exeext conftest.$ac_ext
14285 -LIBS=$ac_check_lib_save_LIBS
14287 -{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
14288 -echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6; }
14289 -if test $ac_cv_lib_intl_textdomain = yes; then
14291 -cat >>confdefs.h <<\_ACEOF
14292 -#define WITH_LIBINTL 1
14293 -_ACEOF
14298 -# checks for system dependent C++ extensions support
14299 -case "$ac_sys_system" in
14300 - AIX*) { echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
14301 -echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6; }
14302 - cat >conftest.$ac_ext <<_ACEOF
14303 -/* confdefs.h. */
14304 -_ACEOF
14305 -cat confdefs.h >>conftest.$ac_ext
14306 -cat >>conftest.$ac_ext <<_ACEOF
14307 -/* end confdefs.h. */
14308 -#include "/usr/lpp/xlC/include/load.h"
14309 -int
14310 -main ()
14312 -loadAndInit("", 0, "")
14314 - return 0;
14316 -_ACEOF
14317 -rm -f conftest.$ac_objext conftest$ac_exeext
14318 -if { (ac_try="$ac_link"
14319 -case "(($ac_try" in
14320 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14321 - *) ac_try_echo=$ac_try;;
14322 -esac
14323 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14324 - (eval "$ac_link") 2>conftest.er1
14325 - ac_status=$?
14326 - grep -v '^ *+' conftest.er1 >conftest.err
14327 - rm -f conftest.er1
14328 - cat conftest.err >&5
14329 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
14330 - (exit $ac_status); } && {
14331 - test -z "$ac_c_werror_flag" ||
14332 - test ! -s conftest.err
14333 - } && test -s conftest$ac_exeext &&
14334 - $as_test_x conftest$ac_exeext; then
14336 -cat >>confdefs.h <<\_ACEOF
14337 -#define AIX_GENUINE_CPLUSPLUS 1
14338 -_ACEOF
14340 - { echo "$as_me:$LINENO: result: yes" >&5
14341 -echo "${ECHO_T}yes" >&6; }
14342 -else
14343 - echo "$as_me: failed program was:" >&5
14344 -sed 's/^/| /' conftest.$ac_ext >&5
14346 - { echo "$as_me:$LINENO: result: no" >&5
14347 -echo "${ECHO_T}no" >&6; }
14350 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14351 - conftest$ac_exeext conftest.$ac_ext;;
14352 - *) ;;
14353 -esac
14355 -# Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
14356 -# BeOS' sockets are stashed in libnet.
14357 -{ echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
14358 -echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6; }
14359 -if test "${ac_cv_lib_nsl_t_open+set}" = set; then
14360 - echo $ECHO_N "(cached) $ECHO_C" >&6
14361 -else
14362 - ac_check_lib_save_LIBS=$LIBS
14363 -LIBS="-lnsl $LIBS"
14364 -cat >conftest.$ac_ext <<_ACEOF
14365 -/* confdefs.h. */
14366 -_ACEOF
14367 -cat confdefs.h >>conftest.$ac_ext
14368 -cat >>conftest.$ac_ext <<_ACEOF
14369 -/* end confdefs.h. */
14371 -/* Override any GCC internal prototype to avoid an error.
14372 - Use char because int might match the return type of a GCC
14373 - builtin and then its argument prototype would still apply. */
14374 -#ifdef __cplusplus
14375 -extern "C"
14376 -#endif
14377 -char t_open ();
14378 -int
14379 -main ()
14381 -return t_open ();
14383 - return 0;
14385 -_ACEOF
14386 -rm -f conftest.$ac_objext conftest$ac_exeext
14387 -if { (ac_try="$ac_link"
14388 -case "(($ac_try" in
14389 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14390 - *) ac_try_echo=$ac_try;;
14391 -esac
14392 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14393 - (eval "$ac_link") 2>conftest.er1
14394 - ac_status=$?
14395 - grep -v '^ *+' conftest.er1 >conftest.err
14396 - rm -f conftest.er1
14397 - cat conftest.err >&5
14398 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
14399 - (exit $ac_status); } && {
14400 - test -z "$ac_c_werror_flag" ||
14401 - test ! -s conftest.err
14402 - } && test -s conftest$ac_exeext &&
14403 - $as_test_x conftest$ac_exeext; then
14404 - ac_cv_lib_nsl_t_open=yes
14405 -else
14406 - echo "$as_me: failed program was:" >&5
14407 -sed 's/^/| /' conftest.$ac_ext >&5
14409 - ac_cv_lib_nsl_t_open=no
14412 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14413 - conftest$ac_exeext conftest.$ac_ext
14414 -LIBS=$ac_check_lib_save_LIBS
14416 -{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
14417 -echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6; }
14418 -if test $ac_cv_lib_nsl_t_open = yes; then
14419 - LIBS="-lnsl $LIBS"
14421 - # SVR4
14422 -{ echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
14423 -echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
14424 -if test "${ac_cv_lib_socket_socket+set}" = set; then
14425 - echo $ECHO_N "(cached) $ECHO_C" >&6
14426 -else
14427 - ac_check_lib_save_LIBS=$LIBS
14428 -LIBS="-lsocket $LIBS $LIBS"
14429 -cat >conftest.$ac_ext <<_ACEOF
14430 -/* confdefs.h. */
14431 -_ACEOF
14432 -cat confdefs.h >>conftest.$ac_ext
14433 -cat >>conftest.$ac_ext <<_ACEOF
14434 -/* end confdefs.h. */
14436 -/* Override any GCC internal prototype to avoid an error.
14437 - Use char because int might match the return type of a GCC
14438 - builtin and then its argument prototype would still apply. */
14439 -#ifdef __cplusplus
14440 -extern "C"
14441 -#endif
14442 -char socket ();
14443 -int
14444 -main ()
14446 -return socket ();
14448 - return 0;
14450 -_ACEOF
14451 -rm -f conftest.$ac_objext conftest$ac_exeext
14452 -if { (ac_try="$ac_link"
14453 -case "(($ac_try" in
14454 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14455 - *) ac_try_echo=$ac_try;;
14456 -esac
14457 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14458 - (eval "$ac_link") 2>conftest.er1
14459 - ac_status=$?
14460 - grep -v '^ *+' conftest.er1 >conftest.err
14461 - rm -f conftest.er1
14462 - cat conftest.err >&5
14463 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
14464 - (exit $ac_status); } && {
14465 - test -z "$ac_c_werror_flag" ||
14466 - test ! -s conftest.err
14467 - } && test -s conftest$ac_exeext &&
14468 - $as_test_x conftest$ac_exeext; then
14469 - ac_cv_lib_socket_socket=yes
14470 -else
14471 - echo "$as_me: failed program was:" >&5
14472 -sed 's/^/| /' conftest.$ac_ext >&5
14474 - ac_cv_lib_socket_socket=no
14477 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14478 - conftest$ac_exeext conftest.$ac_ext
14479 -LIBS=$ac_check_lib_save_LIBS
14481 -{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
14482 -echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
14483 -if test $ac_cv_lib_socket_socket = yes; then
14484 - LIBS="-lsocket $LIBS"
14486 - # SVR4 sockets
14488 -case "$ac_sys_system" in
14489 -BeOS*)
14490 -{ echo "$as_me:$LINENO: checking for socket in -lnet" >&5
14491 -echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6; }
14492 -if test "${ac_cv_lib_net_socket+set}" = set; then
14493 - echo $ECHO_N "(cached) $ECHO_C" >&6
14494 -else
14495 - ac_check_lib_save_LIBS=$LIBS
14496 -LIBS="-lnet $LIBS $LIBS"
14497 -cat >conftest.$ac_ext <<_ACEOF
14498 -/* confdefs.h. */
14499 -_ACEOF
14500 -cat confdefs.h >>conftest.$ac_ext
14501 -cat >>conftest.$ac_ext <<_ACEOF
14502 -/* end confdefs.h. */
14504 -/* Override any GCC internal prototype to avoid an error.
14505 - Use char because int might match the return type of a GCC
14506 - builtin and then its argument prototype would still apply. */
14507 -#ifdef __cplusplus
14508 -extern "C"
14509 -#endif
14510 -char socket ();
14511 -int
14512 -main ()
14514 -return socket ();
14516 - return 0;
14518 -_ACEOF
14519 -rm -f conftest.$ac_objext conftest$ac_exeext
14520 -if { (ac_try="$ac_link"
14521 -case "(($ac_try" in
14522 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14523 - *) ac_try_echo=$ac_try;;
14524 -esac
14525 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14526 - (eval "$ac_link") 2>conftest.er1
14527 - ac_status=$?
14528 - grep -v '^ *+' conftest.er1 >conftest.err
14529 - rm -f conftest.er1
14530 - cat conftest.err >&5
14531 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
14532 - (exit $ac_status); } && {
14533 - test -z "$ac_c_werror_flag" ||
14534 - test ! -s conftest.err
14535 - } && test -s conftest$ac_exeext &&
14536 - $as_test_x conftest$ac_exeext; then
14537 - ac_cv_lib_net_socket=yes
14538 -else
14539 - echo "$as_me: failed program was:" >&5
14540 -sed 's/^/| /' conftest.$ac_ext >&5
14542 - ac_cv_lib_net_socket=no
14545 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14546 - conftest$ac_exeext conftest.$ac_ext
14547 -LIBS=$ac_check_lib_save_LIBS
14549 -{ echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
14550 -echo "${ECHO_T}$ac_cv_lib_net_socket" >&6; }
14551 -if test $ac_cv_lib_net_socket = yes; then
14552 - LIBS="-lnet $LIBS"
14554 - # BeOS
14556 -esac
14558 -{ echo "$as_me:$LINENO: checking for --with-libs" >&5
14559 -echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6; }
14561 -# Check whether --with-libs was given.
14562 -if test "${with_libs+set}" = set; then
14563 - withval=$with_libs;
14564 -{ echo "$as_me:$LINENO: result: $withval" >&5
14565 -echo "${ECHO_T}$withval" >&6; }
14566 -LIBS="$withval $LIBS"
14568 -else
14569 - { echo "$as_me:$LINENO: result: no" >&5
14570 -echo "${ECHO_T}no" >&6; }
14574 -# Check for use of the system libffi library
14575 -if test "${ac_cv_header_ffi_h+set}" = set; then
14576 - { echo "$as_me:$LINENO: checking for ffi.h" >&5
14577 -echo $ECHO_N "checking for ffi.h... $ECHO_C" >&6; }
14578 -if test "${ac_cv_header_ffi_h+set}" = set; then
14579 - echo $ECHO_N "(cached) $ECHO_C" >&6
14581 -{ echo "$as_me:$LINENO: result: $ac_cv_header_ffi_h" >&5
14582 -echo "${ECHO_T}$ac_cv_header_ffi_h" >&6; }
14583 -else
14584 - # Is the header compilable?
14585 -{ echo "$as_me:$LINENO: checking ffi.h usability" >&5
14586 -echo $ECHO_N "checking ffi.h usability... $ECHO_C" >&6; }
14587 -cat >conftest.$ac_ext <<_ACEOF
14588 -/* confdefs.h. */
14589 -_ACEOF
14590 -cat confdefs.h >>conftest.$ac_ext
14591 -cat >>conftest.$ac_ext <<_ACEOF
14592 -/* end confdefs.h. */
14593 -$ac_includes_default
14594 -#include <ffi.h>
14595 -_ACEOF
14596 -rm -f conftest.$ac_objext
14597 -if { (ac_try="$ac_compile"
14598 -case "(($ac_try" in
14599 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14600 - *) ac_try_echo=$ac_try;;
14601 -esac
14602 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14603 - (eval "$ac_compile") 2>conftest.er1
14604 - ac_status=$?
14605 - grep -v '^ *+' conftest.er1 >conftest.err
14606 - rm -f conftest.er1
14607 - cat conftest.err >&5
14608 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
14609 - (exit $ac_status); } && {
14610 - test -z "$ac_c_werror_flag" ||
14611 - test ! -s conftest.err
14612 - } && test -s conftest.$ac_objext; then
14613 - ac_header_compiler=yes
14614 -else
14615 - echo "$as_me: failed program was:" >&5
14616 -sed 's/^/| /' conftest.$ac_ext >&5
14618 - ac_header_compiler=no
14621 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14622 -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14623 -echo "${ECHO_T}$ac_header_compiler" >&6; }
14625 -# Is the header present?
14626 -{ echo "$as_me:$LINENO: checking ffi.h presence" >&5
14627 -echo $ECHO_N "checking ffi.h presence... $ECHO_C" >&6; }
14628 -cat >conftest.$ac_ext <<_ACEOF
14629 -/* confdefs.h. */
14630 -_ACEOF
14631 -cat confdefs.h >>conftest.$ac_ext
14632 -cat >>conftest.$ac_ext <<_ACEOF
14633 -/* end confdefs.h. */
14634 -#include <ffi.h>
14635 -_ACEOF
14636 -if { (ac_try="$ac_cpp conftest.$ac_ext"
14637 -case "(($ac_try" in
14638 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14639 - *) ac_try_echo=$ac_try;;
14640 -esac
14641 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14642 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14643 - ac_status=$?
14644 - grep -v '^ *+' conftest.er1 >conftest.err
14645 - rm -f conftest.er1
14646 - cat conftest.err >&5
14647 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
14648 - (exit $ac_status); } >/dev/null && {
14649 - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14650 - test ! -s conftest.err
14651 - }; then
14652 - ac_header_preproc=yes
14653 -else
14654 - echo "$as_me: failed program was:" >&5
14655 -sed 's/^/| /' conftest.$ac_ext >&5
14657 - ac_header_preproc=no
14660 -rm -f conftest.err conftest.$ac_ext
14661 -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14662 -echo "${ECHO_T}$ac_header_preproc" >&6; }
14664 -# So? What about this header?
14665 -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14666 - yes:no: )
14667 - { echo "$as_me:$LINENO: WARNING: ffi.h: accepted by the compiler, rejected by the preprocessor!" >&5
14668 -echo "$as_me: WARNING: ffi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14669 - { echo "$as_me:$LINENO: WARNING: ffi.h: proceeding with the compiler's result" >&5
14670 -echo "$as_me: WARNING: ffi.h: proceeding with the compiler's result" >&2;}
14671 - ac_header_preproc=yes
14672 - ;;
14673 - no:yes:* )
14674 - { echo "$as_me:$LINENO: WARNING: ffi.h: present but cannot be compiled" >&5
14675 -echo "$as_me: WARNING: ffi.h: present but cannot be compiled" >&2;}
14676 - { echo "$as_me:$LINENO: WARNING: ffi.h: check for missing prerequisite headers?" >&5
14677 -echo "$as_me: WARNING: ffi.h: check for missing prerequisite headers?" >&2;}
14678 - { echo "$as_me:$LINENO: WARNING: ffi.h: see the Autoconf documentation" >&5
14679 -echo "$as_me: WARNING: ffi.h: see the Autoconf documentation" >&2;}
14680 - { echo "$as_me:$LINENO: WARNING: ffi.h: section \"Present But Cannot Be Compiled\"" >&5
14681 -echo "$as_me: WARNING: ffi.h: section \"Present But Cannot Be Compiled\"" >&2;}
14682 - { echo "$as_me:$LINENO: WARNING: ffi.h: proceeding with the preprocessor's result" >&5
14683 -echo "$as_me: WARNING: ffi.h: proceeding with the preprocessor's result" >&2;}
14684 - { echo "$as_me:$LINENO: WARNING: ffi.h: in the future, the compiler will take precedence" >&5
14685 -echo "$as_me: WARNING: ffi.h: in the future, the compiler will take precedence" >&2;}
14686 - ( cat <<\_ASBOX
14687 -## ------------------------------------------------ ##
14688 -## Report this to http://www.python.org/python-bugs ##
14689 -## ------------------------------------------------ ##
14690 -_ASBOX
14691 - ) | sed "s/^/$as_me: WARNING: /" >&2
14692 - ;;
14693 -esac
14694 -{ echo "$as_me:$LINENO: checking for ffi.h" >&5
14695 -echo $ECHO_N "checking for ffi.h... $ECHO_C" >&6; }
14696 -if test "${ac_cv_header_ffi_h+set}" = set; then
14697 - echo $ECHO_N "(cached) $ECHO_C" >&6
14698 -else
14699 - ac_cv_header_ffi_h=$ac_header_preproc
14701 -{ echo "$as_me:$LINENO: result: $ac_cv_header_ffi_h" >&5
14702 -echo "${ECHO_T}$ac_cv_header_ffi_h" >&6; }
14707 -{ echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
14708 -echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6; }
14710 -# Check whether --with-system_ffi was given.
14711 -if test "${with_system_ffi+set}" = set; then
14712 - withval=$with_system_ffi;
14716 -if test -z "$with_system_ffi" && test "$ac_cv_header_ffi_h" = yes; then
14717 - case "$ac_sys_system/`uname -m`" in
14718 - Linux/arm*) with_system_ffi="yes"; CONFIG_ARGS="$CONFIG_ARGS --with-system-ffi";;
14719 - *) with_system_ffi="no"
14720 - esac
14722 -{ echo "$as_me:$LINENO: result: $with_system_ffi" >&5
14723 -echo "${ECHO_T}$with_system_ffi" >&6; }
14725 -# Determine if signalmodule should be used.
14728 -{ echo "$as_me:$LINENO: checking for --with-signal-module" >&5
14729 -echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6; }
14731 -# Check whether --with-signal-module was given.
14732 -if test "${with_signal_module+set}" = set; then
14733 - withval=$with_signal_module;
14737 -if test -z "$with_signal_module"
14738 -then with_signal_module="yes"
14740 -{ echo "$as_me:$LINENO: result: $with_signal_module" >&5
14741 -echo "${ECHO_T}$with_signal_module" >&6; }
14743 -if test "${with_signal_module}" = "yes"; then
14744 - USE_SIGNAL_MODULE=""
14745 - SIGNAL_OBJS=""
14746 -else
14747 - USE_SIGNAL_MODULE="#"
14748 - SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o"
14751 -# This is used to generate Setup.config
14753 -USE_THREAD_MODULE=""
14755 -{ echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
14756 -echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6; }
14759 -# Check whether --with-dec-threads was given.
14760 -if test "${with_dec_threads+set}" = set; then
14761 - withval=$with_dec_threads;
14762 -{ echo "$as_me:$LINENO: result: $withval" >&5
14763 -echo "${ECHO_T}$withval" >&6; }
14764 -LDLAST=-threads
14765 -if test "${with_thread+set}" != set; then
14766 - with_thread="$withval";
14768 -else
14769 - { echo "$as_me:$LINENO: result: no" >&5
14770 -echo "${ECHO_T}no" >&6; }
14774 -# Templates for things AC_DEFINEd more than once.
14775 -# For a single AC_DEFINE, no template is needed.
14783 -{ echo "$as_me:$LINENO: checking for --with-threads" >&5
14784 -echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6; }
14786 -# Check whether --with-threads was given.
14787 -if test "${with_threads+set}" = set; then
14788 - withval=$with_threads;
14792 -# --with-thread is deprecated, but check for it anyway
14794 -# Check whether --with-thread was given.
14795 -if test "${with_thread+set}" = set; then
14796 - withval=$with_thread; with_threads=$with_thread
14800 -if test -z "$with_threads"
14801 -then with_threads="yes"
14803 -{ echo "$as_me:$LINENO: result: $with_threads" >&5
14804 -echo "${ECHO_T}$with_threads" >&6; }
14807 -if test "$with_threads" = "no"
14808 -then
14809 - USE_THREAD_MODULE="#"
14810 -elif test "$ac_cv_pthread_is_default" = yes
14811 -then
14812 - cat >>confdefs.h <<\_ACEOF
14813 -#define WITH_THREAD 1
14814 -_ACEOF
14816 - # Defining _REENTRANT on system with POSIX threads should not hurt.
14817 - cat >>confdefs.h <<\_ACEOF
14818 -#define _REENTRANT 1
14819 -_ACEOF
14821 - posix_threads=yes
14822 - THREADOBJ="Python/thread.o"
14823 -elif test "$ac_cv_kpthread" = "yes"
14824 -then
14825 - CC="$CC -Kpthread"
14826 - if test "$ac_cv_cxx_thread" = "yes"; then
14827 - CXX="$CXX -Kpthread"
14828 - fi
14829 - cat >>confdefs.h <<\_ACEOF
14830 -#define WITH_THREAD 1
14831 -_ACEOF
14833 - posix_threads=yes
14834 - THREADOBJ="Python/thread.o"
14835 -elif test "$ac_cv_kthread" = "yes"
14836 -then
14837 - CC="$CC -Kthread"
14838 - if test "$ac_cv_cxx_thread" = "yes"; then
14839 - CXX="$CXX -Kthread"
14840 - fi
14841 - cat >>confdefs.h <<\_ACEOF
14842 -#define WITH_THREAD 1
14843 -_ACEOF
14845 - posix_threads=yes
14846 - THREADOBJ="Python/thread.o"
14847 -elif test "$ac_cv_pthread" = "yes"
14848 -then
14849 - CC="$CC -pthread"
14850 - if test "$ac_cv_cxx_thread" = "yes"; then
14851 - CXX="$CXX -pthread"
14852 - fi
14853 - cat >>confdefs.h <<\_ACEOF
14854 -#define WITH_THREAD 1
14855 -_ACEOF
14857 - posix_threads=yes
14858 - THREADOBJ="Python/thread.o"
14859 -else
14860 - if test ! -z "$with_threads" -a -d "$with_threads"
14861 - then LDFLAGS="$LDFLAGS -L$with_threads"
14862 - fi
14863 - if test ! -z "$withval" -a -d "$withval"
14864 - then LDFLAGS="$LDFLAGS -L$withval"
14865 - fi
14867 - # According to the POSIX spec, a pthreads implementation must
14868 - # define _POSIX_THREADS in unistd.h. Some apparently don't
14869 - # (e.g. gnu pth with pthread emulation)
14870 - { echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
14871 -echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6; }
14872 - cat >conftest.$ac_ext <<_ACEOF
14873 -/* confdefs.h. */
14874 -_ACEOF
14875 -cat confdefs.h >>conftest.$ac_ext
14876 -cat >>conftest.$ac_ext <<_ACEOF
14877 -/* end confdefs.h. */
14879 -#include <unistd.h>
14880 -#ifdef _POSIX_THREADS
14881 -yes
14882 -#endif
14884 -_ACEOF
14885 -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14886 - $EGREP "yes" >/dev/null 2>&1; then
14887 - unistd_defines_pthreads=yes
14888 -else
14889 - unistd_defines_pthreads=no
14891 -rm -f conftest*
14893 - { echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
14894 -echo "${ECHO_T}$unistd_defines_pthreads" >&6; }
14896 - cat >>confdefs.h <<\_ACEOF
14897 -#define _REENTRANT 1
14898 -_ACEOF
14900 - if test "${ac_cv_header_cthreads_h+set}" = set; then
14901 - { echo "$as_me:$LINENO: checking for cthreads.h" >&5
14902 -echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
14903 -if test "${ac_cv_header_cthreads_h+set}" = set; then
14904 - echo $ECHO_N "(cached) $ECHO_C" >&6
14906 -{ echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
14907 -echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
14908 -else
14909 - # Is the header compilable?
14910 -{ echo "$as_me:$LINENO: checking cthreads.h usability" >&5
14911 -echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6; }
14912 -cat >conftest.$ac_ext <<_ACEOF
14913 -/* confdefs.h. */
14914 -_ACEOF
14915 -cat confdefs.h >>conftest.$ac_ext
14916 -cat >>conftest.$ac_ext <<_ACEOF
14917 -/* end confdefs.h. */
14918 -$ac_includes_default
14919 -#include <cthreads.h>
14920 -_ACEOF
14921 -rm -f conftest.$ac_objext
14922 -if { (ac_try="$ac_compile"
14923 -case "(($ac_try" in
14924 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14925 - *) ac_try_echo=$ac_try;;
14926 -esac
14927 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14928 - (eval "$ac_compile") 2>conftest.er1
14929 - ac_status=$?
14930 - grep -v '^ *+' conftest.er1 >conftest.err
14931 - rm -f conftest.er1
14932 - cat conftest.err >&5
14933 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
14934 - (exit $ac_status); } && {
14935 - test -z "$ac_c_werror_flag" ||
14936 - test ! -s conftest.err
14937 - } && test -s conftest.$ac_objext; then
14938 - ac_header_compiler=yes
14939 -else
14940 - echo "$as_me: failed program was:" >&5
14941 -sed 's/^/| /' conftest.$ac_ext >&5
14943 - ac_header_compiler=no
14946 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14947 -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14948 -echo "${ECHO_T}$ac_header_compiler" >&6; }
14950 -# Is the header present?
14951 -{ echo "$as_me:$LINENO: checking cthreads.h presence" >&5
14952 -echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6; }
14953 -cat >conftest.$ac_ext <<_ACEOF
14954 -/* confdefs.h. */
14955 -_ACEOF
14956 -cat confdefs.h >>conftest.$ac_ext
14957 -cat >>conftest.$ac_ext <<_ACEOF
14958 -/* end confdefs.h. */
14959 -#include <cthreads.h>
14960 -_ACEOF
14961 -if { (ac_try="$ac_cpp conftest.$ac_ext"
14962 -case "(($ac_try" in
14963 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14964 - *) ac_try_echo=$ac_try;;
14965 -esac
14966 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14967 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14968 - ac_status=$?
14969 - grep -v '^ *+' conftest.er1 >conftest.err
14970 - rm -f conftest.er1
14971 - cat conftest.err >&5
14972 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
14973 - (exit $ac_status); } >/dev/null && {
14974 - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14975 - test ! -s conftest.err
14976 - }; then
14977 - ac_header_preproc=yes
14978 -else
14979 - echo "$as_me: failed program was:" >&5
14980 -sed 's/^/| /' conftest.$ac_ext >&5
14982 - ac_header_preproc=no
14985 -rm -f conftest.err conftest.$ac_ext
14986 -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14987 -echo "${ECHO_T}$ac_header_preproc" >&6; }
14989 -# So? What about this header?
14990 -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14991 - yes:no: )
14992 - { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14993 -echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14994 - { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
14995 -echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
14996 - ac_header_preproc=yes
14997 - ;;
14998 - no:yes:* )
14999 - { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
15000 -echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
15001 - { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
15002 -echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
15003 - { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
15004 -echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
15005 - { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
15006 -echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
15007 - { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
15008 -echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
15009 - { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
15010 -echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
15011 - ( cat <<\_ASBOX
15012 -## ------------------------------------------------ ##
15013 -## Report this to http://www.python.org/python-bugs ##
15014 -## ------------------------------------------------ ##
15015 -_ASBOX
15016 - ) | sed "s/^/$as_me: WARNING: /" >&2
15017 - ;;
15018 -esac
15019 -{ echo "$as_me:$LINENO: checking for cthreads.h" >&5
15020 -echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
15021 -if test "${ac_cv_header_cthreads_h+set}" = set; then
15022 - echo $ECHO_N "(cached) $ECHO_C" >&6
15023 -else
15024 - ac_cv_header_cthreads_h=$ac_header_preproc
15026 -{ echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
15027 -echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
15030 -if test $ac_cv_header_cthreads_h = yes; then
15031 - cat >>confdefs.h <<\_ACEOF
15032 -#define WITH_THREAD 1
15033 -_ACEOF
15035 - cat >>confdefs.h <<\_ACEOF
15036 -#define C_THREADS 1
15037 -_ACEOF
15040 -cat >>confdefs.h <<\_ACEOF
15041 -#define HURD_C_THREADS 1
15042 -_ACEOF
15044 - LIBS="$LIBS -lthreads"
15045 - THREADOBJ="Python/thread.o"
15046 -else
15048 - if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
15049 - { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
15050 -echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
15051 -if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
15052 - echo $ECHO_N "(cached) $ECHO_C" >&6
15054 -{ echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
15055 -echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
15056 -else
15057 - # Is the header compilable?
15058 -{ echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
15059 -echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6; }
15060 -cat >conftest.$ac_ext <<_ACEOF
15061 -/* confdefs.h. */
15062 -_ACEOF
15063 -cat confdefs.h >>conftest.$ac_ext
15064 -cat >>conftest.$ac_ext <<_ACEOF
15065 -/* end confdefs.h. */
15066 -$ac_includes_default
15067 -#include <mach/cthreads.h>
15068 -_ACEOF
15069 -rm -f conftest.$ac_objext
15070 -if { (ac_try="$ac_compile"
15071 -case "(($ac_try" in
15072 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15073 - *) ac_try_echo=$ac_try;;
15074 -esac
15075 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15076 - (eval "$ac_compile") 2>conftest.er1
15077 - ac_status=$?
15078 - grep -v '^ *+' conftest.er1 >conftest.err
15079 - rm -f conftest.er1
15080 - cat conftest.err >&5
15081 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
15082 - (exit $ac_status); } && {
15083 - test -z "$ac_c_werror_flag" ||
15084 - test ! -s conftest.err
15085 - } && test -s conftest.$ac_objext; then
15086 - ac_header_compiler=yes
15087 -else
15088 - echo "$as_me: failed program was:" >&5
15089 -sed 's/^/| /' conftest.$ac_ext >&5
15091 - ac_header_compiler=no
15094 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15095 -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15096 -echo "${ECHO_T}$ac_header_compiler" >&6; }
15098 -# Is the header present?
15099 -{ echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
15100 -echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6; }
15101 -cat >conftest.$ac_ext <<_ACEOF
15102 -/* confdefs.h. */
15103 -_ACEOF
15104 -cat confdefs.h >>conftest.$ac_ext
15105 -cat >>conftest.$ac_ext <<_ACEOF
15106 -/* end confdefs.h. */
15107 -#include <mach/cthreads.h>
15108 -_ACEOF
15109 -if { (ac_try="$ac_cpp conftest.$ac_ext"
15110 -case "(($ac_try" in
15111 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15112 - *) ac_try_echo=$ac_try;;
15113 -esac
15114 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15115 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15116 - ac_status=$?
15117 - grep -v '^ *+' conftest.er1 >conftest.err
15118 - rm -f conftest.er1
15119 - cat conftest.err >&5
15120 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
15121 - (exit $ac_status); } >/dev/null && {
15122 - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15123 - test ! -s conftest.err
15124 - }; then
15125 - ac_header_preproc=yes
15126 -else
15127 - echo "$as_me: failed program was:" >&5
15128 -sed 's/^/| /' conftest.$ac_ext >&5
15130 - ac_header_preproc=no
15133 -rm -f conftest.err conftest.$ac_ext
15134 -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15135 -echo "${ECHO_T}$ac_header_preproc" >&6; }
15137 -# So? What about this header?
15138 -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15139 - yes:no: )
15140 - { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
15141 -echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15142 - { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
15143 -echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
15144 - ac_header_preproc=yes
15145 - ;;
15146 - no:yes:* )
15147 - { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
15148 -echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
15149 - { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
15150 -echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
15151 - { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
15152 -echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
15153 - { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
15154 -echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
15155 - { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
15156 -echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
15157 - { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
15158 -echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
15159 - ( cat <<\_ASBOX
15160 -## ------------------------------------------------ ##
15161 -## Report this to http://www.python.org/python-bugs ##
15162 -## ------------------------------------------------ ##
15163 -_ASBOX
15164 - ) | sed "s/^/$as_me: WARNING: /" >&2
15165 - ;;
15166 -esac
15167 -{ echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
15168 -echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
15169 -if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
15170 - echo $ECHO_N "(cached) $ECHO_C" >&6
15171 -else
15172 - ac_cv_header_mach_cthreads_h=$ac_header_preproc
15174 -{ echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
15175 -echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
15178 -if test $ac_cv_header_mach_cthreads_h = yes; then
15179 - cat >>confdefs.h <<\_ACEOF
15180 -#define WITH_THREAD 1
15181 -_ACEOF
15183 - cat >>confdefs.h <<\_ACEOF
15184 -#define C_THREADS 1
15185 -_ACEOF
15188 -cat >>confdefs.h <<\_ACEOF
15189 -#define MACH_C_THREADS 1
15190 -_ACEOF
15192 - THREADOBJ="Python/thread.o"
15193 -else
15195 - { echo "$as_me:$LINENO: checking for --with-pth" >&5
15196 -echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6; }
15198 -# Check whether --with-pth was given.
15199 -if test "${with_pth+set}" = set; then
15200 - withval=$with_pth; { echo "$as_me:$LINENO: result: $withval" >&5
15201 -echo "${ECHO_T}$withval" >&6; }
15202 - cat >>confdefs.h <<\_ACEOF
15203 -#define WITH_THREAD 1
15204 -_ACEOF
15207 -cat >>confdefs.h <<\_ACEOF
15208 -#define HAVE_PTH 1
15209 -_ACEOF
15211 - LIBS="-lpth $LIBS"
15212 - THREADOBJ="Python/thread.o"
15213 -else
15214 - { echo "$as_me:$LINENO: result: no" >&5
15215 -echo "${ECHO_T}no" >&6; }
15217 - # Just looking for pthread_create in libpthread is not enough:
15218 - # on HP/UX, pthread.h renames pthread_create to a different symbol name.
15219 - # So we really have to include pthread.h, and then link.
15220 - _libs=$LIBS
15221 - LIBS="$LIBS -lpthread"
15222 - { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
15223 -echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
15224 - cat >conftest.$ac_ext <<_ACEOF
15225 -/* confdefs.h. */
15226 -_ACEOF
15227 -cat confdefs.h >>conftest.$ac_ext
15228 -cat >>conftest.$ac_ext <<_ACEOF
15229 -/* end confdefs.h. */
15230 -#include <pthread.h>
15232 -void * start_routine (void *arg) { exit (0); }
15233 -int
15234 -main ()
15237 -pthread_create (NULL, NULL, start_routine, NULL)
15239 - return 0;
15241 -_ACEOF
15242 -rm -f conftest.$ac_objext conftest$ac_exeext
15243 -if { (ac_try="$ac_link"
15244 -case "(($ac_try" in
15245 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15246 - *) ac_try_echo=$ac_try;;
15247 -esac
15248 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15249 - (eval "$ac_link") 2>conftest.er1
15250 - ac_status=$?
15251 - grep -v '^ *+' conftest.er1 >conftest.err
15252 - rm -f conftest.er1
15253 - cat conftest.err >&5
15254 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
15255 - (exit $ac_status); } && {
15256 - test -z "$ac_c_werror_flag" ||
15257 - test ! -s conftest.err
15258 - } && test -s conftest$ac_exeext &&
15259 - $as_test_x conftest$ac_exeext; then
15261 - { echo "$as_me:$LINENO: result: yes" >&5
15262 -echo "${ECHO_T}yes" >&6; }
15263 - cat >>confdefs.h <<\_ACEOF
15264 -#define WITH_THREAD 1
15265 -_ACEOF
15267 - posix_threads=yes
15268 - THREADOBJ="Python/thread.o"
15269 -else
15270 - echo "$as_me: failed program was:" >&5
15271 -sed 's/^/| /' conftest.$ac_ext >&5
15274 - LIBS=$_libs
15275 - { echo "$as_me:$LINENO: checking for pthread_detach" >&5
15276 -echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6; }
15277 -if test "${ac_cv_func_pthread_detach+set}" = set; then
15278 - echo $ECHO_N "(cached) $ECHO_C" >&6
15279 -else
15280 - cat >conftest.$ac_ext <<_ACEOF
15281 -/* confdefs.h. */
15282 -_ACEOF
15283 -cat confdefs.h >>conftest.$ac_ext
15284 -cat >>conftest.$ac_ext <<_ACEOF
15285 -/* end confdefs.h. */
15286 -/* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
15287 - For example, HP-UX 11i <limits.h> declares gettimeofday. */
15288 -#define pthread_detach innocuous_pthread_detach
15290 -/* System header to define __stub macros and hopefully few prototypes,
15291 - which can conflict with char pthread_detach (); below.
15292 - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15293 - <limits.h> exists even on freestanding compilers. */
15295 -#ifdef __STDC__
15296 -# include <limits.h>
15297 -#else
15298 -# include <assert.h>
15299 -#endif
15301 -#undef pthread_detach
15303 -/* Override any GCC internal prototype to avoid an error.
15304 - Use char because int might match the return type of a GCC
15305 - builtin and then its argument prototype would still apply. */
15306 -#ifdef __cplusplus
15307 -extern "C"
15308 -#endif
15309 -char pthread_detach ();
15310 -/* The GNU C library defines this for functions which it implements
15311 - to always fail with ENOSYS. Some functions are actually named
15312 - something starting with __ and the normal name is an alias. */
15313 -#if defined __stub_pthread_detach || defined __stub___pthread_detach
15314 -choke me
15315 -#endif
15317 -int
15318 -main ()
15320 -return pthread_detach ();
15322 - return 0;
15324 -_ACEOF
15325 -rm -f conftest.$ac_objext conftest$ac_exeext
15326 -if { (ac_try="$ac_link"
15327 -case "(($ac_try" in
15328 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15329 - *) ac_try_echo=$ac_try;;
15330 -esac
15331 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15332 - (eval "$ac_link") 2>conftest.er1
15333 - ac_status=$?
15334 - grep -v '^ *+' conftest.er1 >conftest.err
15335 - rm -f conftest.er1
15336 - cat conftest.err >&5
15337 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
15338 - (exit $ac_status); } && {
15339 - test -z "$ac_c_werror_flag" ||
15340 - test ! -s conftest.err
15341 - } && test -s conftest$ac_exeext &&
15342 - $as_test_x conftest$ac_exeext; then
15343 - ac_cv_func_pthread_detach=yes
15344 -else
15345 - echo "$as_me: failed program was:" >&5
15346 -sed 's/^/| /' conftest.$ac_ext >&5
15348 - ac_cv_func_pthread_detach=no
15351 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15352 - conftest$ac_exeext conftest.$ac_ext
15354 -{ echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
15355 -echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6; }
15356 -if test $ac_cv_func_pthread_detach = yes; then
15357 - cat >>confdefs.h <<\_ACEOF
15358 -#define WITH_THREAD 1
15359 -_ACEOF
15361 - posix_threads=yes
15362 - THREADOBJ="Python/thread.o"
15363 -else
15365 - if test "${ac_cv_header_atheos_threads_h+set}" = set; then
15366 - { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
15367 -echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
15368 -if test "${ac_cv_header_atheos_threads_h+set}" = set; then
15369 - echo $ECHO_N "(cached) $ECHO_C" >&6
15371 -{ echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
15372 -echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
15373 -else
15374 - # Is the header compilable?
15375 -{ echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
15376 -echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6; }
15377 -cat >conftest.$ac_ext <<_ACEOF
15378 -/* confdefs.h. */
15379 -_ACEOF
15380 -cat confdefs.h >>conftest.$ac_ext
15381 -cat >>conftest.$ac_ext <<_ACEOF
15382 -/* end confdefs.h. */
15383 -$ac_includes_default
15384 -#include <atheos/threads.h>
15385 -_ACEOF
15386 -rm -f conftest.$ac_objext
15387 -if { (ac_try="$ac_compile"
15388 -case "(($ac_try" in
15389 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15390 - *) ac_try_echo=$ac_try;;
15391 -esac
15392 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15393 - (eval "$ac_compile") 2>conftest.er1
15394 - ac_status=$?
15395 - grep -v '^ *+' conftest.er1 >conftest.err
15396 - rm -f conftest.er1
15397 - cat conftest.err >&5
15398 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
15399 - (exit $ac_status); } && {
15400 - test -z "$ac_c_werror_flag" ||
15401 - test ! -s conftest.err
15402 - } && test -s conftest.$ac_objext; then
15403 - ac_header_compiler=yes
15404 -else
15405 - echo "$as_me: failed program was:" >&5
15406 -sed 's/^/| /' conftest.$ac_ext >&5
15408 - ac_header_compiler=no
15411 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15412 -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15413 -echo "${ECHO_T}$ac_header_compiler" >&6; }
15415 -# Is the header present?
15416 -{ echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
15417 -echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6; }
15418 -cat >conftest.$ac_ext <<_ACEOF
15419 -/* confdefs.h. */
15420 -_ACEOF
15421 -cat confdefs.h >>conftest.$ac_ext
15422 -cat >>conftest.$ac_ext <<_ACEOF
15423 -/* end confdefs.h. */
15424 -#include <atheos/threads.h>
15425 -_ACEOF
15426 -if { (ac_try="$ac_cpp conftest.$ac_ext"
15427 -case "(($ac_try" in
15428 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15429 - *) ac_try_echo=$ac_try;;
15430 -esac
15431 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15432 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15433 - ac_status=$?
15434 - grep -v '^ *+' conftest.er1 >conftest.err
15435 - rm -f conftest.er1
15436 - cat conftest.err >&5
15437 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
15438 - (exit $ac_status); } >/dev/null && {
15439 - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15440 - test ! -s conftest.err
15441 - }; then
15442 - ac_header_preproc=yes
15443 -else
15444 - echo "$as_me: failed program was:" >&5
15445 -sed 's/^/| /' conftest.$ac_ext >&5
15447 - ac_header_preproc=no
15450 -rm -f conftest.err conftest.$ac_ext
15451 -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15452 -echo "${ECHO_T}$ac_header_preproc" >&6; }
15454 -# So? What about this header?
15455 -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15456 - yes:no: )
15457 - { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
15458 -echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15459 - { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
15460 -echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
15461 - ac_header_preproc=yes
15462 - ;;
15463 - no:yes:* )
15464 - { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
15465 -echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
15466 - { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
15467 -echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
15468 - { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
15469 -echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
15470 - { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
15471 -echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
15472 - { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
15473 -echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
15474 - { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
15475 -echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
15476 - ( cat <<\_ASBOX
15477 -## ------------------------------------------------ ##
15478 -## Report this to http://www.python.org/python-bugs ##
15479 -## ------------------------------------------------ ##
15480 -_ASBOX
15481 - ) | sed "s/^/$as_me: WARNING: /" >&2
15482 - ;;
15483 -esac
15484 -{ echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
15485 -echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
15486 -if test "${ac_cv_header_atheos_threads_h+set}" = set; then
15487 - echo $ECHO_N "(cached) $ECHO_C" >&6
15488 -else
15489 - ac_cv_header_atheos_threads_h=$ac_header_preproc
15491 -{ echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
15492 -echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
15495 -if test $ac_cv_header_atheos_threads_h = yes; then
15496 - cat >>confdefs.h <<\_ACEOF
15497 -#define WITH_THREAD 1
15498 -_ACEOF
15501 -cat >>confdefs.h <<\_ACEOF
15502 -#define ATHEOS_THREADS 1
15503 -_ACEOF
15505 - THREADOBJ="Python/thread.o"
15506 -else
15508 - if test "${ac_cv_header_kernel_OS_h+set}" = set; then
15509 - { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
15510 -echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
15511 -if test "${ac_cv_header_kernel_OS_h+set}" = set; then
15512 - echo $ECHO_N "(cached) $ECHO_C" >&6
15514 -{ echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
15515 -echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
15516 -else
15517 - # Is the header compilable?
15518 -{ echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
15519 -echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6; }
15520 -cat >conftest.$ac_ext <<_ACEOF
15521 -/* confdefs.h. */
15522 -_ACEOF
15523 -cat confdefs.h >>conftest.$ac_ext
15524 -cat >>conftest.$ac_ext <<_ACEOF
15525 -/* end confdefs.h. */
15526 -$ac_includes_default
15527 -#include <kernel/OS.h>
15528 -_ACEOF
15529 -rm -f conftest.$ac_objext
15530 -if { (ac_try="$ac_compile"
15531 -case "(($ac_try" in
15532 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15533 - *) ac_try_echo=$ac_try;;
15534 -esac
15535 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15536 - (eval "$ac_compile") 2>conftest.er1
15537 - ac_status=$?
15538 - grep -v '^ *+' conftest.er1 >conftest.err
15539 - rm -f conftest.er1
15540 - cat conftest.err >&5
15541 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
15542 - (exit $ac_status); } && {
15543 - test -z "$ac_c_werror_flag" ||
15544 - test ! -s conftest.err
15545 - } && test -s conftest.$ac_objext; then
15546 - ac_header_compiler=yes
15547 -else
15548 - echo "$as_me: failed program was:" >&5
15549 -sed 's/^/| /' conftest.$ac_ext >&5
15551 - ac_header_compiler=no
15554 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15555 -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15556 -echo "${ECHO_T}$ac_header_compiler" >&6; }
15558 -# Is the header present?
15559 -{ echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
15560 -echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6; }
15561 -cat >conftest.$ac_ext <<_ACEOF
15562 -/* confdefs.h. */
15563 -_ACEOF
15564 -cat confdefs.h >>conftest.$ac_ext
15565 -cat >>conftest.$ac_ext <<_ACEOF
15566 -/* end confdefs.h. */
15567 -#include <kernel/OS.h>
15568 -_ACEOF
15569 -if { (ac_try="$ac_cpp conftest.$ac_ext"
15570 -case "(($ac_try" in
15571 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15572 - *) ac_try_echo=$ac_try;;
15573 -esac
15574 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15575 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15576 - ac_status=$?
15577 - grep -v '^ *+' conftest.er1 >conftest.err
15578 - rm -f conftest.er1
15579 - cat conftest.err >&5
15580 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
15581 - (exit $ac_status); } >/dev/null && {
15582 - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15583 - test ! -s conftest.err
15584 - }; then
15585 - ac_header_preproc=yes
15586 -else
15587 - echo "$as_me: failed program was:" >&5
15588 -sed 's/^/| /' conftest.$ac_ext >&5
15590 - ac_header_preproc=no
15593 -rm -f conftest.err conftest.$ac_ext
15594 -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15595 -echo "${ECHO_T}$ac_header_preproc" >&6; }
15597 -# So? What about this header?
15598 -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15599 - yes:no: )
15600 - { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
15601 -echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15602 - { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5
15603 -echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;}
15604 - ac_header_preproc=yes
15605 - ;;
15606 - no:yes:* )
15607 - { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
15608 -echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
15609 - { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
15610 -echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
15611 - { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5
15612 -echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;}
15613 - { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5
15614 -echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;}
15615 - { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
15616 -echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;}
15617 - { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5
15618 -echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;}
15619 - ( cat <<\_ASBOX
15620 -## ------------------------------------------------ ##
15621 -## Report this to http://www.python.org/python-bugs ##
15622 -## ------------------------------------------------ ##
15623 -_ASBOX
15624 - ) | sed "s/^/$as_me: WARNING: /" >&2
15625 - ;;
15626 -esac
15627 -{ echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
15628 -echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
15629 -if test "${ac_cv_header_kernel_OS_h+set}" = set; then
15630 - echo $ECHO_N "(cached) $ECHO_C" >&6
15631 -else
15632 - ac_cv_header_kernel_OS_h=$ac_header_preproc
15634 -{ echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
15635 -echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
15638 -if test $ac_cv_header_kernel_OS_h = yes; then
15639 - cat >>confdefs.h <<\_ACEOF
15640 -#define WITH_THREAD 1
15641 -_ACEOF
15644 -cat >>confdefs.h <<\_ACEOF
15645 -#define BEOS_THREADS 1
15646 -_ACEOF
15648 - THREADOBJ="Python/thread.o"
15649 -else
15651 - { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
15652 -echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
15653 -if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
15654 - echo $ECHO_N "(cached) $ECHO_C" >&6
15655 -else
15656 - ac_check_lib_save_LIBS=$LIBS
15657 -LIBS="-lpthreads $LIBS"
15658 -cat >conftest.$ac_ext <<_ACEOF
15659 -/* confdefs.h. */
15660 -_ACEOF
15661 -cat confdefs.h >>conftest.$ac_ext
15662 -cat >>conftest.$ac_ext <<_ACEOF
15663 -/* end confdefs.h. */
15665 -/* Override any GCC internal prototype to avoid an error.
15666 - Use char because int might match the return type of a GCC
15667 - builtin and then its argument prototype would still apply. */
15668 -#ifdef __cplusplus
15669 -extern "C"
15670 -#endif
15671 -char pthread_create ();
15672 -int
15673 -main ()
15675 -return pthread_create ();
15677 - return 0;
15679 -_ACEOF
15680 -rm -f conftest.$ac_objext conftest$ac_exeext
15681 -if { (ac_try="$ac_link"
15682 -case "(($ac_try" in
15683 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15684 - *) ac_try_echo=$ac_try;;
15685 -esac
15686 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15687 - (eval "$ac_link") 2>conftest.er1
15688 - ac_status=$?
15689 - grep -v '^ *+' conftest.er1 >conftest.err
15690 - rm -f conftest.er1
15691 - cat conftest.err >&5
15692 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
15693 - (exit $ac_status); } && {
15694 - test -z "$ac_c_werror_flag" ||
15695 - test ! -s conftest.err
15696 - } && test -s conftest$ac_exeext &&
15697 - $as_test_x conftest$ac_exeext; then
15698 - ac_cv_lib_pthreads_pthread_create=yes
15699 -else
15700 - echo "$as_me: failed program was:" >&5
15701 -sed 's/^/| /' conftest.$ac_ext >&5
15703 - ac_cv_lib_pthreads_pthread_create=no
15706 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15707 - conftest$ac_exeext conftest.$ac_ext
15708 -LIBS=$ac_check_lib_save_LIBS
15710 -{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
15711 -echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
15712 -if test $ac_cv_lib_pthreads_pthread_create = yes; then
15713 - cat >>confdefs.h <<\_ACEOF
15714 -#define WITH_THREAD 1
15715 -_ACEOF
15717 - posix_threads=yes
15718 - LIBS="$LIBS -lpthreads"
15719 - THREADOBJ="Python/thread.o"
15720 -else
15722 - { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
15723 -echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
15724 -if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
15725 - echo $ECHO_N "(cached) $ECHO_C" >&6
15726 -else
15727 - ac_check_lib_save_LIBS=$LIBS
15728 -LIBS="-lc_r $LIBS"
15729 -cat >conftest.$ac_ext <<_ACEOF
15730 -/* confdefs.h. */
15731 -_ACEOF
15732 -cat confdefs.h >>conftest.$ac_ext
15733 -cat >>conftest.$ac_ext <<_ACEOF
15734 -/* end confdefs.h. */
15736 -/* Override any GCC internal prototype to avoid an error.
15737 - Use char because int might match the return type of a GCC
15738 - builtin and then its argument prototype would still apply. */
15739 -#ifdef __cplusplus
15740 -extern "C"
15741 -#endif
15742 -char pthread_create ();
15743 -int
15744 -main ()
15746 -return pthread_create ();
15748 - return 0;
15750 -_ACEOF
15751 -rm -f conftest.$ac_objext conftest$ac_exeext
15752 -if { (ac_try="$ac_link"
15753 -case "(($ac_try" in
15754 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15755 - *) ac_try_echo=$ac_try;;
15756 -esac
15757 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15758 - (eval "$ac_link") 2>conftest.er1
15759 - ac_status=$?
15760 - grep -v '^ *+' conftest.er1 >conftest.err
15761 - rm -f conftest.er1
15762 - cat conftest.err >&5
15763 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
15764 - (exit $ac_status); } && {
15765 - test -z "$ac_c_werror_flag" ||
15766 - test ! -s conftest.err
15767 - } && test -s conftest$ac_exeext &&
15768 - $as_test_x conftest$ac_exeext; then
15769 - ac_cv_lib_c_r_pthread_create=yes
15770 -else
15771 - echo "$as_me: failed program was:" >&5
15772 -sed 's/^/| /' conftest.$ac_ext >&5
15774 - ac_cv_lib_c_r_pthread_create=no
15777 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15778 - conftest$ac_exeext conftest.$ac_ext
15779 -LIBS=$ac_check_lib_save_LIBS
15781 -{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
15782 -echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
15783 -if test $ac_cv_lib_c_r_pthread_create = yes; then
15784 - cat >>confdefs.h <<\_ACEOF
15785 -#define WITH_THREAD 1
15786 -_ACEOF
15788 - posix_threads=yes
15789 - LIBS="$LIBS -lc_r"
15790 - THREADOBJ="Python/thread.o"
15791 -else
15793 - { echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
15794 -echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6; }
15795 -if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
15796 - echo $ECHO_N "(cached) $ECHO_C" >&6
15797 -else
15798 - ac_check_lib_save_LIBS=$LIBS
15799 -LIBS="-lpthread $LIBS"
15800 -cat >conftest.$ac_ext <<_ACEOF
15801 -/* confdefs.h. */
15802 -_ACEOF
15803 -cat confdefs.h >>conftest.$ac_ext
15804 -cat >>conftest.$ac_ext <<_ACEOF
15805 -/* end confdefs.h. */
15807 -/* Override any GCC internal prototype to avoid an error.
15808 - Use char because int might match the return type of a GCC
15809 - builtin and then its argument prototype would still apply. */
15810 -#ifdef __cplusplus
15811 -extern "C"
15812 -#endif
15813 -char __pthread_create_system ();
15814 -int
15815 -main ()
15817 -return __pthread_create_system ();
15819 - return 0;
15821 -_ACEOF
15822 -rm -f conftest.$ac_objext conftest$ac_exeext
15823 -if { (ac_try="$ac_link"
15824 -case "(($ac_try" in
15825 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15826 - *) ac_try_echo=$ac_try;;
15827 -esac
15828 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15829 - (eval "$ac_link") 2>conftest.er1
15830 - ac_status=$?
15831 - grep -v '^ *+' conftest.er1 >conftest.err
15832 - rm -f conftest.er1
15833 - cat conftest.err >&5
15834 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
15835 - (exit $ac_status); } && {
15836 - test -z "$ac_c_werror_flag" ||
15837 - test ! -s conftest.err
15838 - } && test -s conftest$ac_exeext &&
15839 - $as_test_x conftest$ac_exeext; then
15840 - ac_cv_lib_pthread___pthread_create_system=yes
15841 -else
15842 - echo "$as_me: failed program was:" >&5
15843 -sed 's/^/| /' conftest.$ac_ext >&5
15845 - ac_cv_lib_pthread___pthread_create_system=no
15848 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15849 - conftest$ac_exeext conftest.$ac_ext
15850 -LIBS=$ac_check_lib_save_LIBS
15852 -{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
15853 -echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6; }
15854 -if test $ac_cv_lib_pthread___pthread_create_system = yes; then
15855 - cat >>confdefs.h <<\_ACEOF
15856 -#define WITH_THREAD 1
15857 -_ACEOF
15859 - posix_threads=yes
15860 - LIBS="$LIBS -lpthread"
15861 - THREADOBJ="Python/thread.o"
15862 -else
15864 - { echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
15865 -echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6; }
15866 -if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
15867 - echo $ECHO_N "(cached) $ECHO_C" >&6
15868 -else
15869 - ac_check_lib_save_LIBS=$LIBS
15870 -LIBS="-lcma $LIBS"
15871 -cat >conftest.$ac_ext <<_ACEOF
15872 -/* confdefs.h. */
15873 -_ACEOF
15874 -cat confdefs.h >>conftest.$ac_ext
15875 -cat >>conftest.$ac_ext <<_ACEOF
15876 -/* end confdefs.h. */
15878 -/* Override any GCC internal prototype to avoid an error.
15879 - Use char because int might match the return type of a GCC
15880 - builtin and then its argument prototype would still apply. */
15881 -#ifdef __cplusplus
15882 -extern "C"
15883 -#endif
15884 -char pthread_create ();
15885 -int
15886 -main ()
15888 -return pthread_create ();
15890 - return 0;
15892 -_ACEOF
15893 -rm -f conftest.$ac_objext conftest$ac_exeext
15894 -if { (ac_try="$ac_link"
15895 -case "(($ac_try" in
15896 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15897 - *) ac_try_echo=$ac_try;;
15898 -esac
15899 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15900 - (eval "$ac_link") 2>conftest.er1
15901 - ac_status=$?
15902 - grep -v '^ *+' conftest.er1 >conftest.err
15903 - rm -f conftest.er1
15904 - cat conftest.err >&5
15905 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
15906 - (exit $ac_status); } && {
15907 - test -z "$ac_c_werror_flag" ||
15908 - test ! -s conftest.err
15909 - } && test -s conftest$ac_exeext &&
15910 - $as_test_x conftest$ac_exeext; then
15911 - ac_cv_lib_cma_pthread_create=yes
15912 -else
15913 - echo "$as_me: failed program was:" >&5
15914 -sed 's/^/| /' conftest.$ac_ext >&5
15916 - ac_cv_lib_cma_pthread_create=no
15919 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15920 - conftest$ac_exeext conftest.$ac_ext
15921 -LIBS=$ac_check_lib_save_LIBS
15923 -{ echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
15924 -echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6; }
15925 -if test $ac_cv_lib_cma_pthread_create = yes; then
15926 - cat >>confdefs.h <<\_ACEOF
15927 -#define WITH_THREAD 1
15928 -_ACEOF
15930 - posix_threads=yes
15931 - LIBS="$LIBS -lcma"
15932 - THREADOBJ="Python/thread.o"
15933 -else
15935 - USE_THREAD_MODULE="#"
15955 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15956 - conftest$ac_exeext conftest.$ac_ext
15966 - { echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
15967 -echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6; }
15968 -if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
15969 - echo $ECHO_N "(cached) $ECHO_C" >&6
15970 -else
15971 - ac_check_lib_save_LIBS=$LIBS
15972 -LIBS="-lmpc $LIBS"
15973 -cat >conftest.$ac_ext <<_ACEOF
15974 -/* confdefs.h. */
15975 -_ACEOF
15976 -cat confdefs.h >>conftest.$ac_ext
15977 -cat >>conftest.$ac_ext <<_ACEOF
15978 -/* end confdefs.h. */
15980 -/* Override any GCC internal prototype to avoid an error.
15981 - Use char because int might match the return type of a GCC
15982 - builtin and then its argument prototype would still apply. */
15983 -#ifdef __cplusplus
15984 -extern "C"
15985 -#endif
15986 -char usconfig ();
15987 -int
15988 -main ()
15990 -return usconfig ();
15992 - return 0;
15994 -_ACEOF
15995 -rm -f conftest.$ac_objext conftest$ac_exeext
15996 -if { (ac_try="$ac_link"
15997 -case "(($ac_try" in
15998 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15999 - *) ac_try_echo=$ac_try;;
16000 -esac
16001 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16002 - (eval "$ac_link") 2>conftest.er1
16003 - ac_status=$?
16004 - grep -v '^ *+' conftest.er1 >conftest.err
16005 - rm -f conftest.er1
16006 - cat conftest.err >&5
16007 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
16008 - (exit $ac_status); } && {
16009 - test -z "$ac_c_werror_flag" ||
16010 - test ! -s conftest.err
16011 - } && test -s conftest$ac_exeext &&
16012 - $as_test_x conftest$ac_exeext; then
16013 - ac_cv_lib_mpc_usconfig=yes
16014 -else
16015 - echo "$as_me: failed program was:" >&5
16016 -sed 's/^/| /' conftest.$ac_ext >&5
16018 - ac_cv_lib_mpc_usconfig=no
16021 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16022 - conftest$ac_exeext conftest.$ac_ext
16023 -LIBS=$ac_check_lib_save_LIBS
16025 -{ echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
16026 -echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6; }
16027 -if test $ac_cv_lib_mpc_usconfig = yes; then
16028 - cat >>confdefs.h <<\_ACEOF
16029 -#define WITH_THREAD 1
16030 -_ACEOF
16032 - LIBS="$LIBS -lmpc"
16033 - THREADOBJ="Python/thread.o"
16034 - USE_THREAD_MODULE=""
16038 - if test "$posix_threads" != "yes"; then
16039 - { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
16040 -echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
16041 -if test "${ac_cv_lib_thread_thr_create+set}" = set; then
16042 - echo $ECHO_N "(cached) $ECHO_C" >&6
16043 -else
16044 - ac_check_lib_save_LIBS=$LIBS
16045 -LIBS="-lthread $LIBS"
16046 -cat >conftest.$ac_ext <<_ACEOF
16047 -/* confdefs.h. */
16048 -_ACEOF
16049 -cat confdefs.h >>conftest.$ac_ext
16050 -cat >>conftest.$ac_ext <<_ACEOF
16051 -/* end confdefs.h. */
16053 -/* Override any GCC internal prototype to avoid an error.
16054 - Use char because int might match the return type of a GCC
16055 - builtin and then its argument prototype would still apply. */
16056 -#ifdef __cplusplus
16057 -extern "C"
16058 -#endif
16059 -char thr_create ();
16060 -int
16061 -main ()
16063 -return thr_create ();
16065 - return 0;
16067 -_ACEOF
16068 -rm -f conftest.$ac_objext conftest$ac_exeext
16069 -if { (ac_try="$ac_link"
16070 -case "(($ac_try" in
16071 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16072 - *) ac_try_echo=$ac_try;;
16073 -esac
16074 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16075 - (eval "$ac_link") 2>conftest.er1
16076 - ac_status=$?
16077 - grep -v '^ *+' conftest.er1 >conftest.err
16078 - rm -f conftest.er1
16079 - cat conftest.err >&5
16080 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
16081 - (exit $ac_status); } && {
16082 - test -z "$ac_c_werror_flag" ||
16083 - test ! -s conftest.err
16084 - } && test -s conftest$ac_exeext &&
16085 - $as_test_x conftest$ac_exeext; then
16086 - ac_cv_lib_thread_thr_create=yes
16087 -else
16088 - echo "$as_me: failed program was:" >&5
16089 -sed 's/^/| /' conftest.$ac_ext >&5
16091 - ac_cv_lib_thread_thr_create=no
16094 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16095 - conftest$ac_exeext conftest.$ac_ext
16096 -LIBS=$ac_check_lib_save_LIBS
16098 -{ echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
16099 -echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
16100 -if test $ac_cv_lib_thread_thr_create = yes; then
16101 - cat >>confdefs.h <<\_ACEOF
16102 -#define WITH_THREAD 1
16103 -_ACEOF
16105 - LIBS="$LIBS -lthread"
16106 - THREADOBJ="Python/thread.o"
16107 - USE_THREAD_MODULE=""
16110 - fi
16112 - if test "$USE_THREAD_MODULE" != "#"
16113 - then
16114 - # If the above checks didn't disable threads, (at least) OSF1
16115 - # needs this '-threads' argument during linking.
16116 - case $ac_sys_system in
16117 - OSF1) LDLAST=-threads;;
16118 - esac
16119 - fi
16122 -if test "$posix_threads" = "yes"; then
16123 - if test "$unistd_defines_pthreads" = "no"; then
16125 -cat >>confdefs.h <<\_ACEOF
16126 -#define _POSIX_THREADS 1
16127 -_ACEOF
16129 - fi
16131 - # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
16132 - case $ac_sys_system/$ac_sys_release in
16133 - SunOS/5.6)
16134 -cat >>confdefs.h <<\_ACEOF
16135 -#define HAVE_PTHREAD_DESTRUCTOR 1
16136 -_ACEOF
16138 - ;;
16139 - SunOS/5.8)
16140 -cat >>confdefs.h <<\_ACEOF
16141 -#define HAVE_BROKEN_POSIX_SEMAPHORES 1
16142 -_ACEOF
16144 - ;;
16145 - AIX/5)
16146 -cat >>confdefs.h <<\_ACEOF
16147 -#define HAVE_BROKEN_POSIX_SEMAPHORES 1
16148 -_ACEOF
16150 - ;;
16151 - esac
16153 - { echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
16154 -echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6; }
16155 - if test "${ac_cv_pthread_system_supported+set}" = set; then
16156 - echo $ECHO_N "(cached) $ECHO_C" >&6
16157 -else
16158 - if test "$cross_compiling" = yes; then
16159 - ac_cv_pthread_system_supported=no
16160 -else
16161 - cat >conftest.$ac_ext <<_ACEOF
16162 -/* confdefs.h. */
16163 -_ACEOF
16164 -cat confdefs.h >>conftest.$ac_ext
16165 -cat >>conftest.$ac_ext <<_ACEOF
16166 -/* end confdefs.h. */
16167 -#include <pthread.h>
16168 - void *foo(void *parm) {
16169 - return NULL;
16171 - main() {
16172 - pthread_attr_t attr;
16173 - pthread_t id;
16174 - if (pthread_attr_init(&attr)) exit(-1);
16175 - if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
16176 - if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
16177 - exit(0);
16179 -_ACEOF
16180 -rm -f conftest$ac_exeext
16181 -if { (ac_try="$ac_link"
16182 -case "(($ac_try" in
16183 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16184 - *) ac_try_echo=$ac_try;;
16185 -esac
16186 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16187 - (eval "$ac_link") 2>&5
16188 - ac_status=$?
16189 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
16190 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16191 - { (case "(($ac_try" in
16192 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16193 - *) ac_try_echo=$ac_try;;
16194 -esac
16195 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16196 - (eval "$ac_try") 2>&5
16197 - ac_status=$?
16198 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
16199 - (exit $ac_status); }; }; then
16200 - ac_cv_pthread_system_supported=yes
16201 -else
16202 - echo "$as_me: program exited with status $ac_status" >&5
16203 -echo "$as_me: failed program was:" >&5
16204 -sed 's/^/| /' conftest.$ac_ext >&5
16206 -( exit $ac_status )
16207 -ac_cv_pthread_system_supported=no
16209 -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16216 - { echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
16217 -echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6; }
16218 - if test "$ac_cv_pthread_system_supported" = "yes"; then
16220 -cat >>confdefs.h <<\_ACEOF
16221 -#define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
16222 -_ACEOF
16224 - fi
16226 -for ac_func in pthread_sigmask
16228 -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16229 -{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16230 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16231 -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16232 - echo $ECHO_N "(cached) $ECHO_C" >&6
16233 -else
16234 - cat >conftest.$ac_ext <<_ACEOF
16235 -/* confdefs.h. */
16236 -_ACEOF
16237 -cat confdefs.h >>conftest.$ac_ext
16238 -cat >>conftest.$ac_ext <<_ACEOF
16239 -/* end confdefs.h. */
16240 -/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16241 - For example, HP-UX 11i <limits.h> declares gettimeofday. */
16242 -#define $ac_func innocuous_$ac_func
16244 -/* System header to define __stub macros and hopefully few prototypes,
16245 - which can conflict with char $ac_func (); below.
16246 - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16247 - <limits.h> exists even on freestanding compilers. */
16249 -#ifdef __STDC__
16250 -# include <limits.h>
16251 -#else
16252 -# include <assert.h>
16253 -#endif
16255 -#undef $ac_func
16257 -/* Override any GCC internal prototype to avoid an error.
16258 - Use char because int might match the return type of a GCC
16259 - builtin and then its argument prototype would still apply. */
16260 -#ifdef __cplusplus
16261 -extern "C"
16262 -#endif
16263 -char $ac_func ();
16264 -/* The GNU C library defines this for functions which it implements
16265 - to always fail with ENOSYS. Some functions are actually named
16266 - something starting with __ and the normal name is an alias. */
16267 -#if defined __stub_$ac_func || defined __stub___$ac_func
16268 -choke me
16269 -#endif
16271 -int
16272 -main ()
16274 -return $ac_func ();
16276 - return 0;
16278 -_ACEOF
16279 -rm -f conftest.$ac_objext conftest$ac_exeext
16280 -if { (ac_try="$ac_link"
16281 -case "(($ac_try" in
16282 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16283 - *) ac_try_echo=$ac_try;;
16284 -esac
16285 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16286 - (eval "$ac_link") 2>conftest.er1
16287 - ac_status=$?
16288 - grep -v '^ *+' conftest.er1 >conftest.err
16289 - rm -f conftest.er1
16290 - cat conftest.err >&5
16291 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
16292 - (exit $ac_status); } && {
16293 - test -z "$ac_c_werror_flag" ||
16294 - test ! -s conftest.err
16295 - } && test -s conftest$ac_exeext &&
16296 - $as_test_x conftest$ac_exeext; then
16297 - eval "$as_ac_var=yes"
16298 -else
16299 - echo "$as_me: failed program was:" >&5
16300 -sed 's/^/| /' conftest.$ac_ext >&5
16302 - eval "$as_ac_var=no"
16305 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16306 - conftest$ac_exeext conftest.$ac_ext
16308 -ac_res=`eval echo '${'$as_ac_var'}'`
16309 - { echo "$as_me:$LINENO: result: $ac_res" >&5
16310 -echo "${ECHO_T}$ac_res" >&6; }
16311 -if test `eval echo '${'$as_ac_var'}'` = yes; then
16312 - cat >>confdefs.h <<_ACEOF
16313 -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16314 -_ACEOF
16315 - case $ac_sys_system in
16316 - CYGWIN*)
16318 -cat >>confdefs.h <<\_ACEOF
16319 -#define HAVE_BROKEN_PTHREAD_SIGMASK 1
16320 -_ACEOF
16322 - ;;
16323 - esac
16325 -done
16330 -# Check for enable-ipv6
16333 -{ echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
16334 -echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6; }
16335 -# Check whether --enable-ipv6 was given.
16336 -if test "${enable_ipv6+set}" = set; then
16337 - enableval=$enable_ipv6; case "$enableval" in
16338 - no)
16339 - { echo "$as_me:$LINENO: result: no" >&5
16340 -echo "${ECHO_T}no" >&6; }
16341 - ipv6=no
16342 - ;;
16343 - *) { echo "$as_me:$LINENO: result: yes" >&5
16344 -echo "${ECHO_T}yes" >&6; }
16345 - cat >>confdefs.h <<\_ACEOF
16346 -#define ENABLE_IPV6 1
16347 -_ACEOF
16349 - ipv6=yes
16350 - ;;
16351 - esac
16352 -else
16354 - if test "$cross_compiling" = yes; then
16355 - { echo "$as_me:$LINENO: result: no" >&5
16356 -echo "${ECHO_T}no" >&6; }
16357 - ipv6=no
16359 -else
16360 - cat >conftest.$ac_ext <<_ACEOF
16361 -/* confdefs.h. */
16362 -_ACEOF
16363 -cat confdefs.h >>conftest.$ac_ext
16364 -cat >>conftest.$ac_ext <<_ACEOF
16365 -/* end confdefs.h. */
16366 - /* AF_INET6 available check */
16367 -#include <sys/types.h>
16368 -#include <sys/socket.h>
16369 -main()
16371 - if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
16372 - exit(1);
16373 - else
16374 - exit(0);
16377 -_ACEOF
16378 -rm -f conftest$ac_exeext
16379 -if { (ac_try="$ac_link"
16380 -case "(($ac_try" in
16381 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16382 - *) ac_try_echo=$ac_try;;
16383 -esac
16384 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16385 - (eval "$ac_link") 2>&5
16386 - ac_status=$?
16387 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
16388 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16389 - { (case "(($ac_try" in
16390 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16391 - *) ac_try_echo=$ac_try;;
16392 -esac
16393 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16394 - (eval "$ac_try") 2>&5
16395 - ac_status=$?
16396 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
16397 - (exit $ac_status); }; }; then
16398 - { echo "$as_me:$LINENO: result: yes" >&5
16399 -echo "${ECHO_T}yes" >&6; }
16400 - ipv6=yes
16401 -else
16402 - echo "$as_me: program exited with status $ac_status" >&5
16403 -echo "$as_me: failed program was:" >&5
16404 -sed 's/^/| /' conftest.$ac_ext >&5
16406 -( exit $ac_status )
16407 -{ echo "$as_me:$LINENO: result: no" >&5
16408 -echo "${ECHO_T}no" >&6; }
16409 - ipv6=no
16411 -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16416 -if test "$ipv6" = "yes"; then
16417 - { echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
16418 -echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6; }
16419 - cat >conftest.$ac_ext <<_ACEOF
16420 -/* confdefs.h. */
16421 -_ACEOF
16422 -cat confdefs.h >>conftest.$ac_ext
16423 -cat >>conftest.$ac_ext <<_ACEOF
16424 -/* end confdefs.h. */
16425 -#include <sys/types.h>
16426 -#include <netinet/in.h>
16427 -int
16428 -main ()
16430 -struct sockaddr_in6 x;
16431 -x.sin6_scope_id;
16433 - return 0;
16435 -_ACEOF
16436 -rm -f conftest.$ac_objext
16437 -if { (ac_try="$ac_compile"
16438 -case "(($ac_try" in
16439 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16440 - *) ac_try_echo=$ac_try;;
16441 -esac
16442 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16443 - (eval "$ac_compile") 2>conftest.er1
16444 - ac_status=$?
16445 - grep -v '^ *+' conftest.er1 >conftest.err
16446 - rm -f conftest.er1
16447 - cat conftest.err >&5
16448 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
16449 - (exit $ac_status); } && {
16450 - test -z "$ac_c_werror_flag" ||
16451 - test ! -s conftest.err
16452 - } && test -s conftest.$ac_objext; then
16453 - { echo "$as_me:$LINENO: result: yes" >&5
16454 -echo "${ECHO_T}yes" >&6; }
16455 - ipv6=yes
16456 -else
16457 - echo "$as_me: failed program was:" >&5
16458 -sed 's/^/| /' conftest.$ac_ext >&5
16460 - { echo "$as_me:$LINENO: result: no" >&5
16461 -echo "${ECHO_T}no" >&6; }
16462 - ipv6=no
16465 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16468 -if test "$ipv6" = "yes"; then
16469 - cat >>confdefs.h <<\_ACEOF
16470 -#define ENABLE_IPV6 1
16471 -_ACEOF
16478 -ipv6type=unknown
16479 -ipv6lib=none
16480 -ipv6trylibc=no
16482 -if test "$ipv6" = "yes"; then
16483 - { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
16484 -echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
16485 - for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
16486 - do
16487 - case $i in
16488 - inria)
16489 - cat >conftest.$ac_ext <<_ACEOF
16490 -/* confdefs.h. */
16491 -_ACEOF
16492 -cat confdefs.h >>conftest.$ac_ext
16493 -cat >>conftest.$ac_ext <<_ACEOF
16494 -/* end confdefs.h. */
16496 -#include <netinet/in.h>
16497 -#ifdef IPV6_INRIA_VERSION
16498 -yes
16499 -#endif
16500 -_ACEOF
16501 -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16502 - $EGREP "yes" >/dev/null 2>&1; then
16503 - ipv6type=$i
16505 -rm -f conftest*
16507 - ;;
16508 - kame)
16509 - cat >conftest.$ac_ext <<_ACEOF
16510 -/* confdefs.h. */
16511 -_ACEOF
16512 -cat confdefs.h >>conftest.$ac_ext
16513 -cat >>conftest.$ac_ext <<_ACEOF
16514 -/* end confdefs.h. */
16516 -#include <netinet/in.h>
16517 -#ifdef __KAME__
16518 -yes
16519 -#endif
16520 -_ACEOF
16521 -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16522 - $EGREP "yes" >/dev/null 2>&1; then
16523 - ipv6type=$i;
16524 - ipv6lib=inet6
16525 - ipv6libdir=/usr/local/v6/lib
16526 - ipv6trylibc=yes
16528 -rm -f conftest*
16530 - ;;
16531 - linux-glibc)
16532 - cat >conftest.$ac_ext <<_ACEOF
16533 -/* confdefs.h. */
16534 -_ACEOF
16535 -cat confdefs.h >>conftest.$ac_ext
16536 -cat >>conftest.$ac_ext <<_ACEOF
16537 -/* end confdefs.h. */
16539 -#include <features.h>
16540 -#if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
16541 -yes
16542 -#endif
16543 -_ACEOF
16544 -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16545 - $EGREP "yes" >/dev/null 2>&1; then
16546 - ipv6type=$i;
16547 - ipv6trylibc=yes
16549 -rm -f conftest*
16551 - ;;
16552 - linux-inet6)
16553 - if test -d /usr/inet6; then
16554 - ipv6type=$i
16555 - ipv6lib=inet6
16556 - ipv6libdir=/usr/inet6/lib
16557 - BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
16558 - fi
16559 - ;;
16560 - solaris)
16561 - if test -f /etc/netconfig; then
16562 - if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then
16563 - ipv6type=$i
16564 - ipv6trylibc=yes
16565 - fi
16566 - fi
16567 - ;;
16568 - toshiba)
16569 - cat >conftest.$ac_ext <<_ACEOF
16570 -/* confdefs.h. */
16571 -_ACEOF
16572 -cat confdefs.h >>conftest.$ac_ext
16573 -cat >>conftest.$ac_ext <<_ACEOF
16574 -/* end confdefs.h. */
16576 -#include <sys/param.h>
16577 -#ifdef _TOSHIBA_INET6
16578 -yes
16579 -#endif
16580 -_ACEOF
16581 -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16582 - $EGREP "yes" >/dev/null 2>&1; then
16583 - ipv6type=$i;
16584 - ipv6lib=inet6;
16585 - ipv6libdir=/usr/local/v6/lib
16587 -rm -f conftest*
16589 - ;;
16590 - v6d)
16591 - cat >conftest.$ac_ext <<_ACEOF
16592 -/* confdefs.h. */
16593 -_ACEOF
16594 -cat confdefs.h >>conftest.$ac_ext
16595 -cat >>conftest.$ac_ext <<_ACEOF
16596 -/* end confdefs.h. */
16598 -#include </usr/local/v6/include/sys/v6config.h>
16599 -#ifdef __V6D__
16600 -yes
16601 -#endif
16602 -_ACEOF
16603 -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16604 - $EGREP "yes" >/dev/null 2>&1; then
16605 - ipv6type=$i;
16606 - ipv6lib=v6;
16607 - ipv6libdir=/usr/local/v6/lib;
16608 - BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
16610 -rm -f conftest*
16612 - ;;
16613 - zeta)
16614 - cat >conftest.$ac_ext <<_ACEOF
16615 -/* confdefs.h. */
16616 -_ACEOF
16617 -cat confdefs.h >>conftest.$ac_ext
16618 -cat >>conftest.$ac_ext <<_ACEOF
16619 -/* end confdefs.h. */
16621 -#include <sys/param.h>
16622 -#ifdef _ZETA_MINAMI_INET6
16623 -yes
16624 -#endif
16625 -_ACEOF
16626 -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16627 - $EGREP "yes" >/dev/null 2>&1; then
16628 - ipv6type=$i;
16629 - ipv6lib=inet6;
16630 - ipv6libdir=/usr/local/v6/lib
16632 -rm -f conftest*
16634 - ;;
16635 - esac
16636 - if test "$ipv6type" != "unknown"; then
16637 - break
16638 - fi
16639 - done
16640 - { echo "$as_me:$LINENO: result: $ipv6type" >&5
16641 -echo "${ECHO_T}$ipv6type" >&6; }
16644 -if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
16645 - if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
16646 - LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
16647 - echo "using lib$ipv6lib"
16648 - else
16649 - if test $ipv6trylibc = "yes"; then
16650 - echo "using libc"
16651 - else
16652 - echo 'Fatal: no $ipv6lib library found. cannot continue.'
16653 - echo "You need to fetch lib$ipv6lib.a from appropriate"
16654 - echo 'ipv6 kit and compile beforehand.'
16655 - exit 1
16656 - fi
16657 - fi
16660 -# Check for --with-doc-strings
16661 -{ echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
16662 -echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6; }
16664 -# Check whether --with-doc-strings was given.
16665 -if test "${with_doc_strings+set}" = set; then
16666 - withval=$with_doc_strings;
16670 -if test -z "$with_doc_strings"
16671 -then with_doc_strings="yes"
16673 -if test "$with_doc_strings" != "no"
16674 -then
16676 -cat >>confdefs.h <<\_ACEOF
16677 -#define WITH_DOC_STRINGS 1
16678 -_ACEOF
16681 -{ echo "$as_me:$LINENO: result: $with_doc_strings" >&5
16682 -echo "${ECHO_T}$with_doc_strings" >&6; }
16684 -# Check for Python-specific malloc support
16685 -{ echo "$as_me:$LINENO: checking for --with-tsc" >&5
16686 -echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6; }
16688 -# Check whether --with-tsc was given.
16689 -if test "${with_tsc+set}" = set; then
16690 - withval=$with_tsc;
16691 -if test "$withval" != no
16692 -then
16694 -cat >>confdefs.h <<\_ACEOF
16695 -#define WITH_TSC 1
16696 -_ACEOF
16698 - { echo "$as_me:$LINENO: result: yes" >&5
16699 -echo "${ECHO_T}yes" >&6; }
16700 -else { echo "$as_me:$LINENO: result: no" >&5
16701 -echo "${ECHO_T}no" >&6; }
16703 -else
16704 - { echo "$as_me:$LINENO: result: no" >&5
16705 -echo "${ECHO_T}no" >&6; }
16709 -# Check for Python-specific malloc support
16710 -{ echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
16711 -echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6; }
16713 -# Check whether --with-pymalloc was given.
16714 -if test "${with_pymalloc+set}" = set; then
16715 - withval=$with_pymalloc;
16719 -if test -z "$with_pymalloc"
16720 -then with_pymalloc="yes"
16722 -if test "$with_pymalloc" != "no"
16723 -then
16725 -cat >>confdefs.h <<\_ACEOF
16726 -#define WITH_PYMALLOC 1
16727 -_ACEOF
16730 -{ echo "$as_me:$LINENO: result: $with_pymalloc" >&5
16731 -echo "${ECHO_T}$with_pymalloc" >&6; }
16733 -# Check for --with-wctype-functions
16734 -{ echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
16735 -echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6; }
16737 -# Check whether --with-wctype-functions was given.
16738 -if test "${with_wctype_functions+set}" = set; then
16739 - withval=$with_wctype_functions;
16740 -if test "$withval" != no
16741 -then
16743 -cat >>confdefs.h <<\_ACEOF
16744 -#define WANT_WCTYPE_FUNCTIONS 1
16745 -_ACEOF
16747 - { echo "$as_me:$LINENO: result: yes" >&5
16748 -echo "${ECHO_T}yes" >&6; }
16749 -else { echo "$as_me:$LINENO: result: no" >&5
16750 -echo "${ECHO_T}no" >&6; }
16752 -else
16753 - { echo "$as_me:$LINENO: result: no" >&5
16754 -echo "${ECHO_T}no" >&6; }
16758 -# -I${DLINCLDIR} is added to the compile rule for importdl.o
16760 -DLINCLDIR=.
16762 -# the dlopen() function means we might want to use dynload_shlib.o. some
16763 -# platforms, such as AIX, have dlopen(), but don't want to use it.
16765 -for ac_func in dlopen
16767 -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16768 -{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16769 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16770 -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16771 - echo $ECHO_N "(cached) $ECHO_C" >&6
16772 -else
16773 - cat >conftest.$ac_ext <<_ACEOF
16774 -/* confdefs.h. */
16775 -_ACEOF
16776 -cat confdefs.h >>conftest.$ac_ext
16777 -cat >>conftest.$ac_ext <<_ACEOF
16778 -/* end confdefs.h. */
16779 -/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16780 - For example, HP-UX 11i <limits.h> declares gettimeofday. */
16781 -#define $ac_func innocuous_$ac_func
16783 -/* System header to define __stub macros and hopefully few prototypes,
16784 - which can conflict with char $ac_func (); below.
16785 - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16786 - <limits.h> exists even on freestanding compilers. */
16788 -#ifdef __STDC__
16789 -# include <limits.h>
16790 -#else
16791 -# include <assert.h>
16792 -#endif
16794 -#undef $ac_func
16796 -/* Override any GCC internal prototype to avoid an error.
16797 - Use char because int might match the return type of a GCC
16798 - builtin and then its argument prototype would still apply. */
16799 -#ifdef __cplusplus
16800 -extern "C"
16801 -#endif
16802 -char $ac_func ();
16803 -/* The GNU C library defines this for functions which it implements
16804 - to always fail with ENOSYS. Some functions are actually named
16805 - something starting with __ and the normal name is an alias. */
16806 -#if defined __stub_$ac_func || defined __stub___$ac_func
16807 -choke me
16808 -#endif
16810 -int
16811 -main ()
16813 -return $ac_func ();
16815 - return 0;
16817 -_ACEOF
16818 -rm -f conftest.$ac_objext conftest$ac_exeext
16819 -if { (ac_try="$ac_link"
16820 -case "(($ac_try" in
16821 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16822 - *) ac_try_echo=$ac_try;;
16823 -esac
16824 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16825 - (eval "$ac_link") 2>conftest.er1
16826 - ac_status=$?
16827 - grep -v '^ *+' conftest.er1 >conftest.err
16828 - rm -f conftest.er1
16829 - cat conftest.err >&5
16830 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
16831 - (exit $ac_status); } && {
16832 - test -z "$ac_c_werror_flag" ||
16833 - test ! -s conftest.err
16834 - } && test -s conftest$ac_exeext &&
16835 - $as_test_x conftest$ac_exeext; then
16836 - eval "$as_ac_var=yes"
16837 -else
16838 - echo "$as_me: failed program was:" >&5
16839 -sed 's/^/| /' conftest.$ac_ext >&5
16841 - eval "$as_ac_var=no"
16844 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16845 - conftest$ac_exeext conftest.$ac_ext
16847 -ac_res=`eval echo '${'$as_ac_var'}'`
16848 - { echo "$as_me:$LINENO: result: $ac_res" >&5
16849 -echo "${ECHO_T}$ac_res" >&6; }
16850 -if test `eval echo '${'$as_ac_var'}'` = yes; then
16851 - cat >>confdefs.h <<_ACEOF
16852 -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16853 -_ACEOF
16856 -done
16859 -# DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
16860 -# loading of modules.
16862 -{ echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
16863 -echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6; }
16864 -if test -z "$DYNLOADFILE"
16865 -then
16866 - case $ac_sys_system/$ac_sys_release in
16867 - AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
16868 - if test "$ac_cv_func_dlopen" = yes
16869 - then DYNLOADFILE="dynload_shlib.o"
16870 - else DYNLOADFILE="dynload_aix.o"
16871 - fi
16872 - ;;
16873 - BeOS*) DYNLOADFILE="dynload_beos.o";;
16874 - hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
16875 - # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
16876 - Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";;
16877 - atheos*) DYNLOADFILE="dynload_atheos.o";;
16878 - *)
16879 - # use dynload_shlib.c and dlopen() if we have it; otherwise stub
16880 - # out any dynamic loading
16881 - if test "$ac_cv_func_dlopen" = yes
16882 - then DYNLOADFILE="dynload_shlib.o"
16883 - else DYNLOADFILE="dynload_stub.o"
16884 - fi
16885 - ;;
16886 - esac
16888 -{ echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
16889 -echo "${ECHO_T}$DYNLOADFILE" >&6; }
16890 -if test "$DYNLOADFILE" != "dynload_stub.o"
16891 -then
16893 -cat >>confdefs.h <<\_ACEOF
16894 -#define HAVE_DYNAMIC_LOADING 1
16895 -_ACEOF
16899 -# MACHDEP_OBJS can be set to platform-specific object files needed by Python
16902 -{ echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
16903 -echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6; }
16904 -if test -z "$MACHDEP_OBJS"
16905 -then
16906 - MACHDEP_OBJS=$extra_machdep_objs
16907 -else
16908 - MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
16910 -{ echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
16911 -echo "${ECHO_T}MACHDEP_OBJS" >&6; }
16913 -# checks for library functions
16990 -for ac_func in alarm bind_textdomain_codeset chown clock confstr ctermid \
16991 - execv fork fpathconf ftime ftruncate \
16992 - gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
16993 - getpriority getpwent getspnam getspent getsid getwd \
16994 - kill killpg lchown lstat mkfifo mknod mktime \
16995 - mremap nice pathconf pause plock poll pthread_init \
16996 - putenv readlink realpath \
16997 - select setegid seteuid setgid \
16998 - setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
16999 - sigaction siginterrupt sigrelse strftime \
17000 - sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
17001 - truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty
17003 -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17004 -{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17005 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17006 -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17007 - echo $ECHO_N "(cached) $ECHO_C" >&6
17008 -else
17009 - cat >conftest.$ac_ext <<_ACEOF
17010 -/* confdefs.h. */
17011 -_ACEOF
17012 -cat confdefs.h >>conftest.$ac_ext
17013 -cat >>conftest.$ac_ext <<_ACEOF
17014 -/* end confdefs.h. */
17015 -/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17016 - For example, HP-UX 11i <limits.h> declares gettimeofday. */
17017 -#define $ac_func innocuous_$ac_func
17019 -/* System header to define __stub macros and hopefully few prototypes,
17020 - which can conflict with char $ac_func (); below.
17021 - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17022 - <limits.h> exists even on freestanding compilers. */
17024 -#ifdef __STDC__
17025 -# include <limits.h>
17026 -#else
17027 -# include <assert.h>
17028 -#endif
17030 -#undef $ac_func
17032 -/* Override any GCC internal prototype to avoid an error.
17033 - Use char because int might match the return type of a GCC
17034 - builtin and then its argument prototype would still apply. */
17035 -#ifdef __cplusplus
17036 -extern "C"
17037 -#endif
17038 -char $ac_func ();
17039 -/* The GNU C library defines this for functions which it implements
17040 - to always fail with ENOSYS. Some functions are actually named
17041 - something starting with __ and the normal name is an alias. */
17042 -#if defined __stub_$ac_func || defined __stub___$ac_func
17043 -choke me
17044 -#endif
17046 -int
17047 -main ()
17049 -return $ac_func ();
17051 - return 0;
17053 -_ACEOF
17054 -rm -f conftest.$ac_objext conftest$ac_exeext
17055 -if { (ac_try="$ac_link"
17056 -case "(($ac_try" in
17057 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17058 - *) ac_try_echo=$ac_try;;
17059 -esac
17060 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17061 - (eval "$ac_link") 2>conftest.er1
17062 - ac_status=$?
17063 - grep -v '^ *+' conftest.er1 >conftest.err
17064 - rm -f conftest.er1
17065 - cat conftest.err >&5
17066 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
17067 - (exit $ac_status); } && {
17068 - test -z "$ac_c_werror_flag" ||
17069 - test ! -s conftest.err
17070 - } && test -s conftest$ac_exeext &&
17071 - $as_test_x conftest$ac_exeext; then
17072 - eval "$as_ac_var=yes"
17073 -else
17074 - echo "$as_me: failed program was:" >&5
17075 -sed 's/^/| /' conftest.$ac_ext >&5
17077 - eval "$as_ac_var=no"
17080 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17081 - conftest$ac_exeext conftest.$ac_ext
17083 -ac_res=`eval echo '${'$as_ac_var'}'`
17084 - { echo "$as_me:$LINENO: result: $ac_res" >&5
17085 -echo "${ECHO_T}$ac_res" >&6; }
17086 -if test `eval echo '${'$as_ac_var'}'` = yes; then
17087 - cat >>confdefs.h <<_ACEOF
17088 -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17089 -_ACEOF
17092 -done
17095 -# For some functions, having a definition is not sufficient, since
17096 -# we want to take their address.
17097 -{ echo "$as_me:$LINENO: checking for chroot" >&5
17098 -echo $ECHO_N "checking for chroot... $ECHO_C" >&6; }
17099 -cat >conftest.$ac_ext <<_ACEOF
17100 -/* confdefs.h. */
17101 -_ACEOF
17102 -cat confdefs.h >>conftest.$ac_ext
17103 -cat >>conftest.$ac_ext <<_ACEOF
17104 -/* end confdefs.h. */
17105 -#include <unistd.h>
17106 -int
17107 -main ()
17109 -void *x=chroot
17111 - return 0;
17113 -_ACEOF
17114 -rm -f conftest.$ac_objext
17115 -if { (ac_try="$ac_compile"
17116 -case "(($ac_try" in
17117 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17118 - *) ac_try_echo=$ac_try;;
17119 -esac
17120 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17121 - (eval "$ac_compile") 2>conftest.er1
17122 - ac_status=$?
17123 - grep -v '^ *+' conftest.er1 >conftest.err
17124 - rm -f conftest.er1
17125 - cat conftest.err >&5
17126 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
17127 - (exit $ac_status); } && {
17128 - test -z "$ac_c_werror_flag" ||
17129 - test ! -s conftest.err
17130 - } && test -s conftest.$ac_objext; then
17132 -cat >>confdefs.h <<\_ACEOF
17133 -#define HAVE_CHROOT 1
17134 -_ACEOF
17136 - { echo "$as_me:$LINENO: result: yes" >&5
17137 -echo "${ECHO_T}yes" >&6; }
17138 -else
17139 - echo "$as_me: failed program was:" >&5
17140 -sed 's/^/| /' conftest.$ac_ext >&5
17142 - { echo "$as_me:$LINENO: result: no" >&5
17143 -echo "${ECHO_T}no" >&6; }
17147 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17148 -{ echo "$as_me:$LINENO: checking for link" >&5
17149 -echo $ECHO_N "checking for link... $ECHO_C" >&6; }
17150 -cat >conftest.$ac_ext <<_ACEOF
17151 -/* confdefs.h. */
17152 -_ACEOF
17153 -cat confdefs.h >>conftest.$ac_ext
17154 -cat >>conftest.$ac_ext <<_ACEOF
17155 -/* end confdefs.h. */
17156 -#include <unistd.h>
17157 -int
17158 -main ()
17160 -void *x=link
17162 - return 0;
17164 -_ACEOF
17165 -rm -f conftest.$ac_objext
17166 -if { (ac_try="$ac_compile"
17167 -case "(($ac_try" in
17168 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17169 - *) ac_try_echo=$ac_try;;
17170 -esac
17171 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17172 - (eval "$ac_compile") 2>conftest.er1
17173 - ac_status=$?
17174 - grep -v '^ *+' conftest.er1 >conftest.err
17175 - rm -f conftest.er1
17176 - cat conftest.err >&5
17177 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
17178 - (exit $ac_status); } && {
17179 - test -z "$ac_c_werror_flag" ||
17180 - test ! -s conftest.err
17181 - } && test -s conftest.$ac_objext; then
17183 -cat >>confdefs.h <<\_ACEOF
17184 -#define HAVE_LINK 1
17185 -_ACEOF
17187 - { echo "$as_me:$LINENO: result: yes" >&5
17188 -echo "${ECHO_T}yes" >&6; }
17189 -else
17190 - echo "$as_me: failed program was:" >&5
17191 -sed 's/^/| /' conftest.$ac_ext >&5
17193 - { echo "$as_me:$LINENO: result: no" >&5
17194 -echo "${ECHO_T}no" >&6; }
17198 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17199 -{ echo "$as_me:$LINENO: checking for symlink" >&5
17200 -echo $ECHO_N "checking for symlink... $ECHO_C" >&6; }
17201 -cat >conftest.$ac_ext <<_ACEOF
17202 -/* confdefs.h. */
17203 -_ACEOF
17204 -cat confdefs.h >>conftest.$ac_ext
17205 -cat >>conftest.$ac_ext <<_ACEOF
17206 -/* end confdefs.h. */
17207 -#include <unistd.h>
17208 -int
17209 -main ()
17211 -void *x=symlink
17213 - return 0;
17215 -_ACEOF
17216 -rm -f conftest.$ac_objext
17217 -if { (ac_try="$ac_compile"
17218 -case "(($ac_try" in
17219 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17220 - *) ac_try_echo=$ac_try;;
17221 -esac
17222 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17223 - (eval "$ac_compile") 2>conftest.er1
17224 - ac_status=$?
17225 - grep -v '^ *+' conftest.er1 >conftest.err
17226 - rm -f conftest.er1
17227 - cat conftest.err >&5
17228 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
17229 - (exit $ac_status); } && {
17230 - test -z "$ac_c_werror_flag" ||
17231 - test ! -s conftest.err
17232 - } && test -s conftest.$ac_objext; then
17234 -cat >>confdefs.h <<\_ACEOF
17235 -#define HAVE_SYMLINK 1
17236 -_ACEOF
17238 - { echo "$as_me:$LINENO: result: yes" >&5
17239 -echo "${ECHO_T}yes" >&6; }
17240 -else
17241 - echo "$as_me: failed program was:" >&5
17242 -sed 's/^/| /' conftest.$ac_ext >&5
17244 - { echo "$as_me:$LINENO: result: no" >&5
17245 -echo "${ECHO_T}no" >&6; }
17249 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17250 -{ echo "$as_me:$LINENO: checking for fchdir" >&5
17251 -echo $ECHO_N "checking for fchdir... $ECHO_C" >&6; }
17252 -cat >conftest.$ac_ext <<_ACEOF
17253 -/* confdefs.h. */
17254 -_ACEOF
17255 -cat confdefs.h >>conftest.$ac_ext
17256 -cat >>conftest.$ac_ext <<_ACEOF
17257 -/* end confdefs.h. */
17258 -#include <unistd.h>
17259 -int
17260 -main ()
17262 -void *x=fchdir
17264 - return 0;
17266 -_ACEOF
17267 -rm -f conftest.$ac_objext
17268 -if { (ac_try="$ac_compile"
17269 -case "(($ac_try" in
17270 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17271 - *) ac_try_echo=$ac_try;;
17272 -esac
17273 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17274 - (eval "$ac_compile") 2>conftest.er1
17275 - ac_status=$?
17276 - grep -v '^ *+' conftest.er1 >conftest.err
17277 - rm -f conftest.er1
17278 - cat conftest.err >&5
17279 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
17280 - (exit $ac_status); } && {
17281 - test -z "$ac_c_werror_flag" ||
17282 - test ! -s conftest.err
17283 - } && test -s conftest.$ac_objext; then
17285 -cat >>confdefs.h <<\_ACEOF
17286 -#define HAVE_FCHDIR 1
17287 -_ACEOF
17289 - { echo "$as_me:$LINENO: result: yes" >&5
17290 -echo "${ECHO_T}yes" >&6; }
17291 -else
17292 - echo "$as_me: failed program was:" >&5
17293 -sed 's/^/| /' conftest.$ac_ext >&5
17295 - { echo "$as_me:$LINENO: result: no" >&5
17296 -echo "${ECHO_T}no" >&6; }
17300 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17301 -{ echo "$as_me:$LINENO: checking for fsync" >&5
17302 -echo $ECHO_N "checking for fsync... $ECHO_C" >&6; }
17303 -cat >conftest.$ac_ext <<_ACEOF
17304 -/* confdefs.h. */
17305 -_ACEOF
17306 -cat confdefs.h >>conftest.$ac_ext
17307 -cat >>conftest.$ac_ext <<_ACEOF
17308 -/* end confdefs.h. */
17309 -#include <unistd.h>
17310 -int
17311 -main ()
17313 -void *x=fsync
17315 - return 0;
17317 -_ACEOF
17318 -rm -f conftest.$ac_objext
17319 -if { (ac_try="$ac_compile"
17320 -case "(($ac_try" in
17321 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17322 - *) ac_try_echo=$ac_try;;
17323 -esac
17324 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17325 - (eval "$ac_compile") 2>conftest.er1
17326 - ac_status=$?
17327 - grep -v '^ *+' conftest.er1 >conftest.err
17328 - rm -f conftest.er1
17329 - cat conftest.err >&5
17330 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
17331 - (exit $ac_status); } && {
17332 - test -z "$ac_c_werror_flag" ||
17333 - test ! -s conftest.err
17334 - } && test -s conftest.$ac_objext; then
17336 -cat >>confdefs.h <<\_ACEOF
17337 -#define HAVE_FSYNC 1
17338 -_ACEOF
17340 - { echo "$as_me:$LINENO: result: yes" >&5
17341 -echo "${ECHO_T}yes" >&6; }
17342 -else
17343 - echo "$as_me: failed program was:" >&5
17344 -sed 's/^/| /' conftest.$ac_ext >&5
17346 - { echo "$as_me:$LINENO: result: no" >&5
17347 -echo "${ECHO_T}no" >&6; }
17351 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17352 -{ echo "$as_me:$LINENO: checking for fdatasync" >&5
17353 -echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; }
17354 -cat >conftest.$ac_ext <<_ACEOF
17355 -/* confdefs.h. */
17356 -_ACEOF
17357 -cat confdefs.h >>conftest.$ac_ext
17358 -cat >>conftest.$ac_ext <<_ACEOF
17359 -/* end confdefs.h. */
17360 -#include <unistd.h>
17361 -int
17362 -main ()
17364 -void *x=fdatasync
17366 - return 0;
17368 -_ACEOF
17369 -rm -f conftest.$ac_objext
17370 -if { (ac_try="$ac_compile"
17371 -case "(($ac_try" in
17372 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17373 - *) ac_try_echo=$ac_try;;
17374 -esac
17375 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17376 - (eval "$ac_compile") 2>conftest.er1
17377 - ac_status=$?
17378 - grep -v '^ *+' conftest.er1 >conftest.err
17379 - rm -f conftest.er1
17380 - cat conftest.err >&5
17381 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
17382 - (exit $ac_status); } && {
17383 - test -z "$ac_c_werror_flag" ||
17384 - test ! -s conftest.err
17385 - } && test -s conftest.$ac_objext; then
17387 -cat >>confdefs.h <<\_ACEOF
17388 -#define HAVE_FDATASYNC 1
17389 -_ACEOF
17391 - { echo "$as_me:$LINENO: result: yes" >&5
17392 -echo "${ECHO_T}yes" >&6; }
17393 -else
17394 - echo "$as_me: failed program was:" >&5
17395 -sed 's/^/| /' conftest.$ac_ext >&5
17397 - { echo "$as_me:$LINENO: result: no" >&5
17398 -echo "${ECHO_T}no" >&6; }
17402 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17404 -# On some systems (eg. FreeBSD 5), we would find a definition of the
17405 -# functions ctermid_r, setgroups in the library, but no prototype
17406 -# (e.g. because we use _XOPEN_SOURCE). See whether we can take their
17407 -# address to avoid compiler warnings and potential miscompilations
17408 -# because of the missing prototypes.
17410 -{ echo "$as_me:$LINENO: checking for ctermid_r" >&5
17411 -echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6; }
17412 -cat >conftest.$ac_ext <<_ACEOF
17413 -/* confdefs.h. */
17414 -_ACEOF
17415 -cat confdefs.h >>conftest.$ac_ext
17416 -cat >>conftest.$ac_ext <<_ACEOF
17417 -/* end confdefs.h. */
17419 -#include "confdefs.h"
17420 -#include <stdio.h>
17422 -int
17423 -main ()
17425 -void* p = ctermid_r
17427 - return 0;
17429 -_ACEOF
17430 -rm -f conftest.$ac_objext
17431 -if { (ac_try="$ac_compile"
17432 -case "(($ac_try" in
17433 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17434 - *) ac_try_echo=$ac_try;;
17435 -esac
17436 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17437 - (eval "$ac_compile") 2>conftest.er1
17438 - ac_status=$?
17439 - grep -v '^ *+' conftest.er1 >conftest.err
17440 - rm -f conftest.er1
17441 - cat conftest.err >&5
17442 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
17443 - (exit $ac_status); } && {
17444 - test -z "$ac_c_werror_flag" ||
17445 - test ! -s conftest.err
17446 - } && test -s conftest.$ac_objext; then
17448 -cat >>confdefs.h <<\_ACEOF
17449 -#define HAVE_CTERMID_R 1
17450 -_ACEOF
17452 - { echo "$as_me:$LINENO: result: yes" >&5
17453 -echo "${ECHO_T}yes" >&6; }
17454 -else
17455 - echo "$as_me: failed program was:" >&5
17456 -sed 's/^/| /' conftest.$ac_ext >&5
17458 - { echo "$as_me:$LINENO: result: no" >&5
17459 -echo "${ECHO_T}no" >&6; }
17463 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17465 -{ echo "$as_me:$LINENO: checking for flock" >&5
17466 -echo $ECHO_N "checking for flock... $ECHO_C" >&6; }
17467 -cat >conftest.$ac_ext <<_ACEOF
17468 -/* confdefs.h. */
17469 -_ACEOF
17470 -cat confdefs.h >>conftest.$ac_ext
17471 -cat >>conftest.$ac_ext <<_ACEOF
17472 -/* end confdefs.h. */
17474 -#include "confdefs.h"
17475 -#include <sys/file.h>
17477 -int
17478 -main ()
17480 -void* p = flock
17482 - return 0;
17484 -_ACEOF
17485 -rm -f conftest.$ac_objext
17486 -if { (ac_try="$ac_compile"
17487 -case "(($ac_try" in
17488 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17489 - *) ac_try_echo=$ac_try;;
17490 -esac
17491 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17492 - (eval "$ac_compile") 2>conftest.er1
17493 - ac_status=$?
17494 - grep -v '^ *+' conftest.er1 >conftest.err
17495 - rm -f conftest.er1
17496 - cat conftest.err >&5
17497 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
17498 - (exit $ac_status); } && {
17499 - test -z "$ac_c_werror_flag" ||
17500 - test ! -s conftest.err
17501 - } && test -s conftest.$ac_objext; then
17503 -cat >>confdefs.h <<\_ACEOF
17504 -#define HAVE_FLOCK 1
17505 -_ACEOF
17507 - { echo "$as_me:$LINENO: result: yes" >&5
17508 -echo "${ECHO_T}yes" >&6; }
17509 -else
17510 - echo "$as_me: failed program was:" >&5
17511 -sed 's/^/| /' conftest.$ac_ext >&5
17513 - { echo "$as_me:$LINENO: result: no" >&5
17514 -echo "${ECHO_T}no" >&6; }
17518 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17520 -{ echo "$as_me:$LINENO: checking for getpagesize" >&5
17521 -echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; }
17522 -cat >conftest.$ac_ext <<_ACEOF
17523 -/* confdefs.h. */
17524 -_ACEOF
17525 -cat confdefs.h >>conftest.$ac_ext
17526 -cat >>conftest.$ac_ext <<_ACEOF
17527 -/* end confdefs.h. */
17529 -#include "confdefs.h"
17530 -#include <unistd.h>
17532 -int
17533 -main ()
17535 -void* p = getpagesize
17537 - return 0;
17539 -_ACEOF
17540 -rm -f conftest.$ac_objext
17541 -if { (ac_try="$ac_compile"
17542 -case "(($ac_try" in
17543 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17544 - *) ac_try_echo=$ac_try;;
17545 -esac
17546 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17547 - (eval "$ac_compile") 2>conftest.er1
17548 - ac_status=$?
17549 - grep -v '^ *+' conftest.er1 >conftest.err
17550 - rm -f conftest.er1
17551 - cat conftest.err >&5
17552 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
17553 - (exit $ac_status); } && {
17554 - test -z "$ac_c_werror_flag" ||
17555 - test ! -s conftest.err
17556 - } && test -s conftest.$ac_objext; then
17558 -cat >>confdefs.h <<\_ACEOF
17559 -#define HAVE_GETPAGESIZE 1
17560 -_ACEOF
17562 - { echo "$as_me:$LINENO: result: yes" >&5
17563 -echo "${ECHO_T}yes" >&6; }
17564 -else
17565 - echo "$as_me: failed program was:" >&5
17566 -sed 's/^/| /' conftest.$ac_ext >&5
17568 - { echo "$as_me:$LINENO: result: no" >&5
17569 -echo "${ECHO_T}no" >&6; }
17573 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17575 -for ac_prog in true
17577 - # Extract the first word of "$ac_prog", so it can be a program name with args.
17578 -set dummy $ac_prog; ac_word=$2
17579 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
17580 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17581 -if test "${ac_cv_prog_TRUE+set}" = set; then
17582 - echo $ECHO_N "(cached) $ECHO_C" >&6
17583 -else
17584 - if test -n "$TRUE"; then
17585 - ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
17586 -else
17587 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17588 -for as_dir in $PATH
17590 - IFS=$as_save_IFS
17591 - test -z "$as_dir" && as_dir=.
17592 - for ac_exec_ext in '' $ac_executable_extensions; do
17593 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17594 - ac_cv_prog_TRUE="$ac_prog"
17595 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17596 - break 2
17597 - fi
17598 -done
17599 -done
17600 -IFS=$as_save_IFS
17604 -TRUE=$ac_cv_prog_TRUE
17605 -if test -n "$TRUE"; then
17606 - { echo "$as_me:$LINENO: result: $TRUE" >&5
17607 -echo "${ECHO_T}$TRUE" >&6; }
17608 -else
17609 - { echo "$as_me:$LINENO: result: no" >&5
17610 -echo "${ECHO_T}no" >&6; }
17614 - test -n "$TRUE" && break
17615 -done
17616 -test -n "$TRUE" || TRUE="/bin/true"
17619 -{ echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
17620 -echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6; }
17621 -if test "${ac_cv_lib_c_inet_aton+set}" = set; then
17622 - echo $ECHO_N "(cached) $ECHO_C" >&6
17623 -else
17624 - ac_check_lib_save_LIBS=$LIBS
17625 -LIBS="-lc $LIBS"
17626 -cat >conftest.$ac_ext <<_ACEOF
17627 -/* confdefs.h. */
17628 -_ACEOF
17629 -cat confdefs.h >>conftest.$ac_ext
17630 -cat >>conftest.$ac_ext <<_ACEOF
17631 -/* end confdefs.h. */
17633 -/* Override any GCC internal prototype to avoid an error.
17634 - Use char because int might match the return type of a GCC
17635 - builtin and then its argument prototype would still apply. */
17636 -#ifdef __cplusplus
17637 -extern "C"
17638 -#endif
17639 -char inet_aton ();
17640 -int
17641 -main ()
17643 -return inet_aton ();
17645 - return 0;
17647 -_ACEOF
17648 -rm -f conftest.$ac_objext conftest$ac_exeext
17649 -if { (ac_try="$ac_link"
17650 -case "(($ac_try" in
17651 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17652 - *) ac_try_echo=$ac_try;;
17653 -esac
17654 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17655 - (eval "$ac_link") 2>conftest.er1
17656 - ac_status=$?
17657 - grep -v '^ *+' conftest.er1 >conftest.err
17658 - rm -f conftest.er1
17659 - cat conftest.err >&5
17660 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
17661 - (exit $ac_status); } && {
17662 - test -z "$ac_c_werror_flag" ||
17663 - test ! -s conftest.err
17664 - } && test -s conftest$ac_exeext &&
17665 - $as_test_x conftest$ac_exeext; then
17666 - ac_cv_lib_c_inet_aton=yes
17667 -else
17668 - echo "$as_me: failed program was:" >&5
17669 -sed 's/^/| /' conftest.$ac_ext >&5
17671 - ac_cv_lib_c_inet_aton=no
17674 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17675 - conftest$ac_exeext conftest.$ac_ext
17676 -LIBS=$ac_check_lib_save_LIBS
17678 -{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
17679 -echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6; }
17680 -if test $ac_cv_lib_c_inet_aton = yes; then
17681 - $ac_cv_prog_TRUE
17682 -else
17684 -{ echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
17685 -echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
17686 -if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
17687 - echo $ECHO_N "(cached) $ECHO_C" >&6
17688 -else
17689 - ac_check_lib_save_LIBS=$LIBS
17690 -LIBS="-lresolv $LIBS"
17691 -cat >conftest.$ac_ext <<_ACEOF
17692 -/* confdefs.h. */
17693 -_ACEOF
17694 -cat confdefs.h >>conftest.$ac_ext
17695 -cat >>conftest.$ac_ext <<_ACEOF
17696 -/* end confdefs.h. */
17698 -/* Override any GCC internal prototype to avoid an error.
17699 - Use char because int might match the return type of a GCC
17700 - builtin and then its argument prototype would still apply. */
17701 -#ifdef __cplusplus
17702 -extern "C"
17703 -#endif
17704 -char inet_aton ();
17705 -int
17706 -main ()
17708 -return inet_aton ();
17710 - return 0;
17712 -_ACEOF
17713 -rm -f conftest.$ac_objext conftest$ac_exeext
17714 -if { (ac_try="$ac_link"
17715 -case "(($ac_try" in
17716 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17717 - *) ac_try_echo=$ac_try;;
17718 -esac
17719 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17720 - (eval "$ac_link") 2>conftest.er1
17721 - ac_status=$?
17722 - grep -v '^ *+' conftest.er1 >conftest.err
17723 - rm -f conftest.er1
17724 - cat conftest.err >&5
17725 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
17726 - (exit $ac_status); } && {
17727 - test -z "$ac_c_werror_flag" ||
17728 - test ! -s conftest.err
17729 - } && test -s conftest$ac_exeext &&
17730 - $as_test_x conftest$ac_exeext; then
17731 - ac_cv_lib_resolv_inet_aton=yes
17732 -else
17733 - echo "$as_me: failed program was:" >&5
17734 -sed 's/^/| /' conftest.$ac_ext >&5
17736 - ac_cv_lib_resolv_inet_aton=no
17739 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17740 - conftest$ac_exeext conftest.$ac_ext
17741 -LIBS=$ac_check_lib_save_LIBS
17743 -{ echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
17744 -echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
17745 -if test $ac_cv_lib_resolv_inet_aton = yes; then
17746 - cat >>confdefs.h <<_ACEOF
17747 -#define HAVE_LIBRESOLV 1
17748 -_ACEOF
17750 - LIBS="-lresolv $LIBS"
17752 + LINKFORSHARED="$extra_undefs"
17753 + if test "$enable_framework"
17754 + then
17755 + LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
17756 + fi
17757 + LINKFORSHARED="$LINKFORSHARED";;
17758 + OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
17759 + SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
17760 + ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
17761 + FreeBSD*|NetBSD*|OpenBSD*|DragonFly*)
17762 + if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
17763 + then
17764 + LINKFORSHARED="-Wl,--export-dynamic"
17765 + fi;;
17766 + SunOS/5*) case $CC in
17767 + *gcc*)
17768 + if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
17769 + then
17770 + LINKFORSHARED="-Xlinker --export-dynamic"
17771 + fi;;
17772 + esac;;
17773 + CYGWIN*)
17774 + if test $enable_shared = "no"
17775 + then
17776 + LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)'
17777 + fi;;
17778 + esac
17780 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKFORSHARED" >&5
17781 +$as_echo "$LINKFORSHARED" >&6; }
17784 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGSFORSHARED" >&5
17785 +$as_echo_n "checking CFLAGSFORSHARED... " >&6; }
17786 +if test ! "$LIBRARY" = "$LDLIBRARY"
17787 +then
17788 + case $ac_sys_system in
17789 + CYGWIN*)
17790 + # Cygwin needs CCSHARED when building extension DLLs
17791 + # but not when building the interpreter DLL.
17792 + CFLAGSFORSHARED='';;
17793 + *)
17794 + CFLAGSFORSHARED='$(CCSHARED)'
17795 + esac
17797 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLAGSFORSHARED" >&5
17798 +$as_echo "$CFLAGSFORSHARED" >&6; }
17800 +# SHLIBS are libraries (except -lc and -lm) to link to the python shared
17801 +# library (with --enable-shared).
17802 +# For platforms on which shared libraries are not allowed to have unresolved
17803 +# symbols, this must be set to $(LIBS) (expanded by make). We do this even
17804 +# if it is not required, since it creates a dependency of the shared library
17805 +# to LIBS. This, in turn, means that applications linking the shared libpython
17806 +# don't need to link LIBS explicitly. The default should be only changed
17807 +# on systems where this approach causes problems.
17809 -case $ac_sys_system/$ac_sys_release in
17810 -Darwin/*)
17811 - _CUR_CFLAGS="${CFLAGS}"
17812 - _CUR_LDFLAGS="${LDFLAGS}"
17813 - CFLAGS="${CFLAGS} -Wl,-search_paths_first"
17814 - LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
17815 - ;;
17816 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SHLIBS" >&5
17817 +$as_echo_n "checking SHLIBS... " >&6; }
17818 +case "$ac_sys_system" in
17819 + *)
17820 + SHLIBS='$(LIBS)';;
17821 esac
17822 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIBS" >&5
17823 +$as_echo "$SHLIBS" >&6; }
17826 -{ echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5
17827 -echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6; }
17828 -if test "${ac_cv_lib_z_inflateCopy+set}" = set; then
17829 - echo $ECHO_N "(cached) $ECHO_C" >&6
17830 +# checks for libraries
17831 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17832 +$as_echo_n "checking for dlopen in -ldl... " >&6; }
17833 +if ${ac_cv_lib_dl_dlopen+:} false; then :
17834 + $as_echo_n "(cached) " >&6
17835 else
17836 ac_check_lib_save_LIBS=$LIBS
17837 -LIBS="-lz $LIBS"
17838 -cat >conftest.$ac_ext <<_ACEOF
17839 -/* confdefs.h. */
17840 -_ACEOF
17841 -cat confdefs.h >>conftest.$ac_ext
17842 -cat >>conftest.$ac_ext <<_ACEOF
17843 +LIBS="-ldl $LIBS"
17844 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17845 /* end confdefs.h. */
17847 /* Override any GCC internal prototype to avoid an error.
17848 @@ -15507,330 +7086,228 @@
17849 #ifdef __cplusplus
17850 extern "C"
17851 #endif
17852 -char inflateCopy ();
17853 +char dlopen ();
17855 main ()
17857 -return inflateCopy ();
17858 +return dlopen ();
17860 return 0;
17862 _ACEOF
17863 -rm -f conftest.$ac_objext conftest$ac_exeext
17864 -if { (ac_try="$ac_link"
17865 -case "(($ac_try" in
17866 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17867 - *) ac_try_echo=$ac_try;;
17868 -esac
17869 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17870 - (eval "$ac_link") 2>conftest.er1
17871 - ac_status=$?
17872 - grep -v '^ *+' conftest.er1 >conftest.err
17873 - rm -f conftest.er1
17874 - cat conftest.err >&5
17875 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
17876 - (exit $ac_status); } && {
17877 - test -z "$ac_c_werror_flag" ||
17878 - test ! -s conftest.err
17879 - } && test -s conftest$ac_exeext &&
17880 - $as_test_x conftest$ac_exeext; then
17881 - ac_cv_lib_z_inflateCopy=yes
17882 +if ac_fn_c_try_link "$LINENO"; then :
17883 + ac_cv_lib_dl_dlopen=yes
17884 else
17885 - echo "$as_me: failed program was:" >&5
17886 -sed 's/^/| /' conftest.$ac_ext >&5
17888 - ac_cv_lib_z_inflateCopy=no
17889 + ac_cv_lib_dl_dlopen=no
17892 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17893 - conftest$ac_exeext conftest.$ac_ext
17894 +rm -f core conftest.err conftest.$ac_objext \
17895 + conftest$ac_exeext conftest.$ac_ext
17896 LIBS=$ac_check_lib_save_LIBS
17898 -{ echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5
17899 -echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6; }
17900 -if test $ac_cv_lib_z_inflateCopy = yes; then
17902 -cat >>confdefs.h <<\_ACEOF
17903 -#define HAVE_ZLIB_COPY 1
17904 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17905 +$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17906 +if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17907 + cat >>confdefs.h <<_ACEOF
17908 +#define HAVE_LIBDL 1
17909 _ACEOF
17914 -case $ac_sys_system/$ac_sys_release in
17915 -Darwin/*)
17916 - CFLAGS="${_CUR_CFLAGS}"
17917 - LDFLAGS="${_CUR_LDFLAGS}"
17918 - ;;
17919 -esac
17920 + LIBS="-ldl $LIBS"
17922 -{ echo "$as_me:$LINENO: checking for hstrerror" >&5
17923 -echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6; }
17924 -cat >conftest.$ac_ext <<_ACEOF
17925 -/* confdefs.h. */
17926 -_ACEOF
17927 -cat confdefs.h >>conftest.$ac_ext
17928 -cat >>conftest.$ac_ext <<_ACEOF
17930 + # Dynamic linking for SunOS/Solaris and SYSV
17931 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17932 +$as_echo_n "checking for shl_load in -ldld... " >&6; }
17933 +if ${ac_cv_lib_dld_shl_load+:} false; then :
17934 + $as_echo_n "(cached) " >&6
17935 +else
17936 + ac_check_lib_save_LIBS=$LIBS
17937 +LIBS="-ldld $LIBS"
17938 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17939 /* end confdefs.h. */
17941 -#include "confdefs.h"
17942 -#include <netdb.h>
17944 +/* Override any GCC internal prototype to avoid an error.
17945 + Use char because int might match the return type of a GCC
17946 + builtin and then its argument prototype would still apply. */
17947 +#ifdef __cplusplus
17948 +extern "C"
17949 +#endif
17950 +char shl_load ();
17952 main ()
17954 -void* p = hstrerror; hstrerror(0)
17955 +return shl_load ();
17957 return 0;
17959 _ACEOF
17960 -rm -f conftest.$ac_objext conftest$ac_exeext
17961 -if { (ac_try="$ac_link"
17962 -case "(($ac_try" in
17963 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17964 - *) ac_try_echo=$ac_try;;
17965 -esac
17966 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17967 - (eval "$ac_link") 2>conftest.er1
17968 - ac_status=$?
17969 - grep -v '^ *+' conftest.er1 >conftest.err
17970 - rm -f conftest.er1
17971 - cat conftest.err >&5
17972 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
17973 - (exit $ac_status); } && {
17974 - test -z "$ac_c_werror_flag" ||
17975 - test ! -s conftest.err
17976 - } && test -s conftest$ac_exeext &&
17977 - $as_test_x conftest$ac_exeext; then
17979 -cat >>confdefs.h <<\_ACEOF
17980 -#define HAVE_HSTRERROR 1
17981 -_ACEOF
17983 - { echo "$as_me:$LINENO: result: yes" >&5
17984 -echo "${ECHO_T}yes" >&6; }
17985 +if ac_fn_c_try_link "$LINENO"; then :
17986 + ac_cv_lib_dld_shl_load=yes
17987 else
17988 - echo "$as_me: failed program was:" >&5
17989 -sed 's/^/| /' conftest.$ac_ext >&5
17990 + ac_cv_lib_dld_shl_load=no
17992 +rm -f core conftest.err conftest.$ac_objext \
17993 + conftest$ac_exeext conftest.$ac_ext
17994 +LIBS=$ac_check_lib_save_LIBS
17996 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17997 +$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17998 +if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
17999 + cat >>confdefs.h <<_ACEOF
18000 +#define HAVE_LIBDLD 1
18001 +_ACEOF
18003 - { echo "$as_me:$LINENO: result: no" >&5
18004 -echo "${ECHO_T}no" >&6; }
18005 + LIBS="-ldld $LIBS"
18008 + # Dynamic linking for HP-UX
18010 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18011 - conftest$ac_exeext conftest.$ac_ext
18013 -{ echo "$as_me:$LINENO: checking for inet_aton" >&5
18014 -echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
18015 -cat >conftest.$ac_ext <<_ACEOF
18016 -/* confdefs.h. */
18017 -_ACEOF
18018 -cat confdefs.h >>conftest.$ac_ext
18019 -cat >>conftest.$ac_ext <<_ACEOF
18020 +# only check for sem_ini if thread support is requested
18021 +if test "$with_threads" = "yes" -o -z "$with_threads"; then
18022 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
18023 +$as_echo_n "checking for library containing sem_init... " >&6; }
18024 +if ${ac_cv_search_sem_init+:} false; then :
18025 + $as_echo_n "(cached) " >&6
18026 +else
18027 + ac_func_search_save_LIBS=$LIBS
18028 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18029 /* end confdefs.h. */
18031 -#include "confdefs.h"
18032 -#include <sys/types.h>
18033 -#include <sys/socket.h>
18034 -#include <netinet/in.h>
18035 -#include <arpa/inet.h>
18037 +/* Override any GCC internal prototype to avoid an error.
18038 + Use char because int might match the return type of a GCC
18039 + builtin and then its argument prototype would still apply. */
18040 +#ifdef __cplusplus
18041 +extern "C"
18042 +#endif
18043 +char sem_init ();
18045 main ()
18047 -void* p = inet_aton;inet_aton(0,0)
18048 +return sem_init ();
18050 return 0;
18052 _ACEOF
18053 -rm -f conftest.$ac_objext conftest$ac_exeext
18054 -if { (ac_try="$ac_link"
18055 -case "(($ac_try" in
18056 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18057 - *) ac_try_echo=$ac_try;;
18058 -esac
18059 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18060 - (eval "$ac_link") 2>conftest.er1
18061 - ac_status=$?
18062 - grep -v '^ *+' conftest.er1 >conftest.err
18063 - rm -f conftest.er1
18064 - cat conftest.err >&5
18065 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
18066 - (exit $ac_status); } && {
18067 - test -z "$ac_c_werror_flag" ||
18068 - test ! -s conftest.err
18069 - } && test -s conftest$ac_exeext &&
18070 - $as_test_x conftest$ac_exeext; then
18072 -cat >>confdefs.h <<\_ACEOF
18073 -#define HAVE_INET_ATON 1
18074 -_ACEOF
18075 +for ac_lib in '' pthread rt posix4; do
18076 + if test -z "$ac_lib"; then
18077 + ac_res="none required"
18078 + else
18079 + ac_res=-l$ac_lib
18080 + LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18081 + fi
18082 + if ac_fn_c_try_link "$LINENO"; then :
18083 + ac_cv_search_sem_init=$ac_res
18085 +rm -f core conftest.err conftest.$ac_objext \
18086 + conftest$ac_exeext
18087 + if ${ac_cv_search_sem_init+:} false; then :
18088 + break
18090 +done
18091 +if ${ac_cv_search_sem_init+:} false; then :
18093 - { echo "$as_me:$LINENO: result: yes" >&5
18094 -echo "${ECHO_T}yes" >&6; }
18095 else
18096 - echo "$as_me: failed program was:" >&5
18097 -sed 's/^/| /' conftest.$ac_ext >&5
18099 - { echo "$as_me:$LINENO: result: no" >&5
18100 -echo "${ECHO_T}no" >&6; }
18102 + ac_cv_search_sem_init=no
18104 +rm conftest.$ac_ext
18105 +LIBS=$ac_func_search_save_LIBS
18107 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5
18108 +$as_echo "$ac_cv_search_sem_init" >&6; }
18109 +ac_res=$ac_cv_search_sem_init
18110 +if test "$ac_res" != no; then :
18111 + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18113 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18114 - conftest$ac_exeext conftest.$ac_ext
18116 + # 'Real Time' functions on Solaris
18117 + # posix4 on Solaris 2.6
18118 + # pthread (first!) on Linux
18121 -{ echo "$as_me:$LINENO: checking for inet_pton" >&5
18122 -echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
18123 -cat >conftest.$ac_ext <<_ACEOF
18124 -/* confdefs.h. */
18125 -_ACEOF
18126 -cat confdefs.h >>conftest.$ac_ext
18127 -cat >>conftest.$ac_ext <<_ACEOF
18128 +# check if we need libintl for locale functions
18129 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for textdomain in -lintl" >&5
18130 +$as_echo_n "checking for textdomain in -lintl... " >&6; }
18131 +if ${ac_cv_lib_intl_textdomain+:} false; then :
18132 + $as_echo_n "(cached) " >&6
18133 +else
18134 + ac_check_lib_save_LIBS=$LIBS
18135 +LIBS="-lintl $LIBS"
18136 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18137 /* end confdefs.h. */
18139 -#include "confdefs.h"
18140 -#include <sys/types.h>
18141 -#include <sys/socket.h>
18142 -#include <netinet/in.h>
18143 -#include <arpa/inet.h>
18145 +/* Override any GCC internal prototype to avoid an error.
18146 + Use char because int might match the return type of a GCC
18147 + builtin and then its argument prototype would still apply. */
18148 +#ifdef __cplusplus
18149 +extern "C"
18150 +#endif
18151 +char textdomain ();
18153 main ()
18155 -void* p = inet_pton
18156 +return textdomain ();
18158 return 0;
18160 _ACEOF
18161 -rm -f conftest.$ac_objext
18162 -if { (ac_try="$ac_compile"
18163 -case "(($ac_try" in
18164 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18165 - *) ac_try_echo=$ac_try;;
18166 -esac
18167 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18168 - (eval "$ac_compile") 2>conftest.er1
18169 - ac_status=$?
18170 - grep -v '^ *+' conftest.er1 >conftest.err
18171 - rm -f conftest.er1
18172 - cat conftest.err >&5
18173 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
18174 - (exit $ac_status); } && {
18175 - test -z "$ac_c_werror_flag" ||
18176 - test ! -s conftest.err
18177 - } && test -s conftest.$ac_objext; then
18179 -cat >>confdefs.h <<\_ACEOF
18180 -#define HAVE_INET_PTON 1
18181 -_ACEOF
18183 - { echo "$as_me:$LINENO: result: yes" >&5
18184 -echo "${ECHO_T}yes" >&6; }
18185 +if ac_fn_c_try_link "$LINENO"; then :
18186 + ac_cv_lib_intl_textdomain=yes
18187 else
18188 - echo "$as_me: failed program was:" >&5
18189 -sed 's/^/| /' conftest.$ac_ext >&5
18190 + ac_cv_lib_intl_textdomain=no
18192 +rm -f core conftest.err conftest.$ac_objext \
18193 + conftest$ac_exeext conftest.$ac_ext
18194 +LIBS=$ac_check_lib_save_LIBS
18196 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_textdomain" >&5
18197 +$as_echo "$ac_cv_lib_intl_textdomain" >&6; }
18198 +if test "x$ac_cv_lib_intl_textdomain" = xyes; then :
18200 - { echo "$as_me:$LINENO: result: no" >&5
18201 -echo "${ECHO_T}no" >&6; }
18202 +$as_echo "#define WITH_LIBINTL 1" >>confdefs.h
18206 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18208 -# On some systems, setgroups is in unistd.h, on others, in grp.h
18209 -{ echo "$as_me:$LINENO: checking for setgroups" >&5
18210 -echo $ECHO_N "checking for setgroups... $ECHO_C" >&6; }
18211 -cat >conftest.$ac_ext <<_ACEOF
18212 -/* confdefs.h. */
18213 -_ACEOF
18214 -cat confdefs.h >>conftest.$ac_ext
18215 -cat >>conftest.$ac_ext <<_ACEOF
18216 +# checks for system dependent C++ extensions support
18217 +case "$ac_sys_system" in
18218 + AIX*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for genuine AIX C++ extensions support" >&5
18219 +$as_echo_n "checking for genuine AIX C++ extensions support... " >&6; }
18220 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18221 /* end confdefs.h. */
18223 -#include "confdefs.h"
18224 -#include <unistd.h>
18225 -#ifdef HAVE_GRP_H
18226 -#include <grp.h>
18227 -#endif
18229 +#include "/usr/lpp/xlC/include/load.h"
18231 main ()
18233 -void* p = setgroups
18234 +loadAndInit("", 0, "")
18236 return 0;
18238 _ACEOF
18239 -rm -f conftest.$ac_objext
18240 -if { (ac_try="$ac_compile"
18241 -case "(($ac_try" in
18242 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18243 - *) ac_try_echo=$ac_try;;
18244 -esac
18245 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18246 - (eval "$ac_compile") 2>conftest.er1
18247 - ac_status=$?
18248 - grep -v '^ *+' conftest.er1 >conftest.err
18249 - rm -f conftest.er1
18250 - cat conftest.err >&5
18251 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
18252 - (exit $ac_status); } && {
18253 - test -z "$ac_c_werror_flag" ||
18254 - test ! -s conftest.err
18255 - } && test -s conftest.$ac_objext; then
18256 +if ac_fn_c_try_link "$LINENO"; then :
18258 -cat >>confdefs.h <<\_ACEOF
18259 -#define HAVE_SETGROUPS 1
18260 -_ACEOF
18261 +$as_echo "#define AIX_GENUINE_CPLUSPLUS 1" >>confdefs.h
18263 - { echo "$as_me:$LINENO: result: yes" >&5
18264 -echo "${ECHO_T}yes" >&6; }
18265 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18266 +$as_echo "yes" >&6; }
18267 else
18268 - echo "$as_me: failed program was:" >&5
18269 -sed 's/^/| /' conftest.$ac_ext >&5
18271 - { echo "$as_me:$LINENO: result: no" >&5
18272 -echo "${ECHO_T}no" >&6; }
18274 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18275 +$as_echo "no" >&6; }
18277 +rm -f core conftest.err conftest.$ac_objext \
18278 + conftest$ac_exeext conftest.$ac_ext;;
18279 + *) ;;
18280 +esac
18282 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18284 -# check for openpty and forkpty
18287 -for ac_func in openpty
18289 -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18290 -{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18291 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18292 -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18293 - echo $ECHO_N "(cached) $ECHO_C" >&6
18294 +# Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
18295 +# BeOS' sockets are stashed in libnet.
18296 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_open in -lnsl" >&5
18297 +$as_echo_n "checking for t_open in -lnsl... " >&6; }
18298 +if ${ac_cv_lib_nsl_t_open+:} false; then :
18299 + $as_echo_n "(cached) " >&6
18300 else
18301 - cat >conftest.$ac_ext <<_ACEOF
18302 -/* confdefs.h. */
18303 -_ACEOF
18304 -cat confdefs.h >>conftest.$ac_ext
18305 -cat >>conftest.$ac_ext <<_ACEOF
18306 + ac_check_lib_save_LIBS=$LIBS
18307 +LIBS="-lnsl $LIBS"
18308 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18309 /* end confdefs.h. */
18310 -/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18311 - For example, HP-UX 11i <limits.h> declares gettimeofday. */
18312 -#define $ac_func innocuous_$ac_func
18314 -/* System header to define __stub macros and hopefully few prototypes,
18315 - which can conflict with char $ac_func (); below.
18316 - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18317 - <limits.h> exists even on freestanding compilers. */
18319 -#ifdef __STDC__
18320 -# include <limits.h>
18321 -#else
18322 -# include <assert.h>
18323 -#endif
18325 -#undef $ac_func
18327 /* Override any GCC internal prototype to avoid an error.
18328 Use char because int might match the return type of a GCC
18329 @@ -15838,72 +7315,38 @@
18330 #ifdef __cplusplus
18331 extern "C"
18332 #endif
18333 -char $ac_func ();
18334 -/* The GNU C library defines this for functions which it implements
18335 - to always fail with ENOSYS. Some functions are actually named
18336 - something starting with __ and the normal name is an alias. */
18337 -#if defined __stub_$ac_func || defined __stub___$ac_func
18338 -choke me
18339 -#endif
18341 +char t_open ();
18343 main ()
18345 -return $ac_func ();
18346 +return t_open ();
18348 return 0;
18350 _ACEOF
18351 -rm -f conftest.$ac_objext conftest$ac_exeext
18352 -if { (ac_try="$ac_link"
18353 -case "(($ac_try" in
18354 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18355 - *) ac_try_echo=$ac_try;;
18356 -esac
18357 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18358 - (eval "$ac_link") 2>conftest.er1
18359 - ac_status=$?
18360 - grep -v '^ *+' conftest.er1 >conftest.err
18361 - rm -f conftest.er1
18362 - cat conftest.err >&5
18363 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
18364 - (exit $ac_status); } && {
18365 - test -z "$ac_c_werror_flag" ||
18366 - test ! -s conftest.err
18367 - } && test -s conftest$ac_exeext &&
18368 - $as_test_x conftest$ac_exeext; then
18369 - eval "$as_ac_var=yes"
18370 +if ac_fn_c_try_link "$LINENO"; then :
18371 + ac_cv_lib_nsl_t_open=yes
18372 else
18373 - echo "$as_me: failed program was:" >&5
18374 -sed 's/^/| /' conftest.$ac_ext >&5
18376 - eval "$as_ac_var=no"
18377 + ac_cv_lib_nsl_t_open=no
18380 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18381 - conftest$ac_exeext conftest.$ac_ext
18382 +rm -f core conftest.err conftest.$ac_objext \
18383 + conftest$ac_exeext conftest.$ac_ext
18384 +LIBS=$ac_check_lib_save_LIBS
18386 -ac_res=`eval echo '${'$as_ac_var'}'`
18387 - { echo "$as_me:$LINENO: result: $ac_res" >&5
18388 -echo "${ECHO_T}$ac_res" >&6; }
18389 -if test `eval echo '${'$as_ac_var'}'` = yes; then
18390 - cat >>confdefs.h <<_ACEOF
18391 -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18392 -_ACEOF
18394 -else
18395 - { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
18396 -echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
18397 -if test "${ac_cv_lib_util_openpty+set}" = set; then
18398 - echo $ECHO_N "(cached) $ECHO_C" >&6
18399 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_t_open" >&5
18400 +$as_echo "$ac_cv_lib_nsl_t_open" >&6; }
18401 +if test "x$ac_cv_lib_nsl_t_open" = xyes; then :
18402 + LIBS="-lnsl $LIBS"
18404 + # SVR4
18405 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
18406 +$as_echo_n "checking for socket in -lsocket... " >&6; }
18407 +if ${ac_cv_lib_socket_socket+:} false; then :
18408 + $as_echo_n "(cached) " >&6
18409 else
18410 ac_check_lib_save_LIBS=$LIBS
18411 -LIBS="-lutil $LIBS"
18412 -cat >conftest.$ac_ext <<_ACEOF
18413 -/* confdefs.h. */
18414 -_ACEOF
18415 -cat confdefs.h >>conftest.$ac_ext
18416 -cat >>conftest.$ac_ext <<_ACEOF
18417 +LIBS="-lsocket $LIBS $LIBS"
18418 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18419 /* end confdefs.h. */
18421 /* Override any GCC internal prototype to avoid an error.
18422 @@ -15912,65 +7355,41 @@
18423 #ifdef __cplusplus
18424 extern "C"
18425 #endif
18426 -char openpty ();
18427 +char socket ();
18429 main ()
18431 -return openpty ();
18432 +return socket ();
18434 return 0;
18436 _ACEOF
18437 -rm -f conftest.$ac_objext conftest$ac_exeext
18438 -if { (ac_try="$ac_link"
18439 -case "(($ac_try" in
18440 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18441 - *) ac_try_echo=$ac_try;;
18442 -esac
18443 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18444 - (eval "$ac_link") 2>conftest.er1
18445 - ac_status=$?
18446 - grep -v '^ *+' conftest.er1 >conftest.err
18447 - rm -f conftest.er1
18448 - cat conftest.err >&5
18449 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
18450 - (exit $ac_status); } && {
18451 - test -z "$ac_c_werror_flag" ||
18452 - test ! -s conftest.err
18453 - } && test -s conftest$ac_exeext &&
18454 - $as_test_x conftest$ac_exeext; then
18455 - ac_cv_lib_util_openpty=yes
18456 +if ac_fn_c_try_link "$LINENO"; then :
18457 + ac_cv_lib_socket_socket=yes
18458 else
18459 - echo "$as_me: failed program was:" >&5
18460 -sed 's/^/| /' conftest.$ac_ext >&5
18462 - ac_cv_lib_util_openpty=no
18463 + ac_cv_lib_socket_socket=no
18466 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18467 - conftest$ac_exeext conftest.$ac_ext
18468 +rm -f core conftest.err conftest.$ac_objext \
18469 + conftest$ac_exeext conftest.$ac_ext
18470 LIBS=$ac_check_lib_save_LIBS
18472 -{ echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
18473 -echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
18474 -if test $ac_cv_lib_util_openpty = yes; then
18475 - cat >>confdefs.h <<\_ACEOF
18476 -#define HAVE_OPENPTY 1
18477 -_ACEOF
18478 - LIBS="$LIBS -lutil"
18479 -else
18480 - { echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
18481 -echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6; }
18482 -if test "${ac_cv_lib_bsd_openpty+set}" = set; then
18483 - echo $ECHO_N "(cached) $ECHO_C" >&6
18484 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
18485 +$as_echo "$ac_cv_lib_socket_socket" >&6; }
18486 +if test "x$ac_cv_lib_socket_socket" = xyes; then :
18487 + LIBS="-lsocket $LIBS"
18489 + # SVR4 sockets
18491 +case "$ac_sys_system" in
18492 +BeOS*)
18493 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnet" >&5
18494 +$as_echo_n "checking for socket in -lnet... " >&6; }
18495 +if ${ac_cv_lib_net_socket+:} false; then :
18496 + $as_echo_n "(cached) " >&6
18497 else
18498 ac_check_lib_save_LIBS=$LIBS
18499 -LIBS="-lbsd $LIBS"
18500 -cat >conftest.$ac_ext <<_ACEOF
18501 -/* confdefs.h. */
18502 -_ACEOF
18503 -cat confdefs.h >>conftest.$ac_ext
18504 -cat >>conftest.$ac_ext <<_ACEOF
18505 +LIBS="-lnet $LIBS $LIBS"
18506 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18507 /* end confdefs.h. */
18509 /* Override any GCC internal prototype to avoid an error.
18510 @@ -15979,232 +7398,341 @@
18511 #ifdef __cplusplus
18512 extern "C"
18513 #endif
18514 -char openpty ();
18515 +char socket ();
18517 main ()
18519 -return openpty ();
18520 +return socket ();
18522 return 0;
18524 _ACEOF
18525 -rm -f conftest.$ac_objext conftest$ac_exeext
18526 -if { (ac_try="$ac_link"
18527 -case "(($ac_try" in
18528 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18529 - *) ac_try_echo=$ac_try;;
18530 -esac
18531 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18532 - (eval "$ac_link") 2>conftest.er1
18533 - ac_status=$?
18534 - grep -v '^ *+' conftest.er1 >conftest.err
18535 - rm -f conftest.er1
18536 - cat conftest.err >&5
18537 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
18538 - (exit $ac_status); } && {
18539 - test -z "$ac_c_werror_flag" ||
18540 - test ! -s conftest.err
18541 - } && test -s conftest$ac_exeext &&
18542 - $as_test_x conftest$ac_exeext; then
18543 - ac_cv_lib_bsd_openpty=yes
18544 +if ac_fn_c_try_link "$LINENO"; then :
18545 + ac_cv_lib_net_socket=yes
18546 else
18547 - echo "$as_me: failed program was:" >&5
18548 -sed 's/^/| /' conftest.$ac_ext >&5
18549 + ac_cv_lib_net_socket=no
18551 +rm -f core conftest.err conftest.$ac_objext \
18552 + conftest$ac_exeext conftest.$ac_ext
18553 +LIBS=$ac_check_lib_save_LIBS
18555 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_net_socket" >&5
18556 +$as_echo "$ac_cv_lib_net_socket" >&6; }
18557 +if test "x$ac_cv_lib_net_socket" = xyes; then :
18558 + LIBS="-lnet $LIBS"
18560 + # BeOS
18562 +esac
18564 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libs" >&5
18565 +$as_echo_n "checking for --with-libs... " >&6; }
18567 +# Check whether --with-libs was given.
18568 +if test "${with_libs+set}" = set; then :
18569 + withval=$with_libs;
18570 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
18571 +$as_echo "$withval" >&6; }
18572 +LIBS="$withval $LIBS"
18574 - ac_cv_lib_bsd_openpty=no
18575 +else
18576 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18577 +$as_echo "no" >&6; }
18580 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18581 - conftest$ac_exeext conftest.$ac_ext
18582 -LIBS=$ac_check_lib_save_LIBS
18584 +# Check for use of the system libffi library
18585 +ac_fn_c_check_header_mongrel "$LINENO" "ffi.h" "ac_cv_header_ffi_h" "$ac_includes_default"
18586 +if test "x$ac_cv_header_ffi_h" = xyes; then :
18589 -{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
18590 -echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6; }
18591 -if test $ac_cv_lib_bsd_openpty = yes; then
18592 - cat >>confdefs.h <<\_ACEOF
18593 -#define HAVE_OPENPTY 1
18594 -_ACEOF
18595 - LIBS="$LIBS -lbsd"
18598 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-ffi" >&5
18599 +$as_echo_n "checking for --with-system-ffi... " >&6; }
18601 +# Check whether --with-system_ffi was given.
18602 +if test "${with_system_ffi+set}" = set; then :
18603 + withval=$with_system_ffi;
18607 +if test -z "$with_system_ffi" && test "$ac_cv_header_ffi_h" = yes; then
18608 + case "$ac_sys_system/`uname -m`" in
18609 + Linux/arm*) with_system_ffi="yes"; CONFIG_ARGS="$CONFIG_ARGS --with-system-ffi";;
18610 + *) with_system_ffi="no"
18611 + esac
18613 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_ffi" >&5
18614 +$as_echo "$with_system_ffi" >&6; }
18616 +# Determine if signalmodule should be used.
18619 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-signal-module" >&5
18620 +$as_echo_n "checking for --with-signal-module... " >&6; }
18622 +# Check whether --with-signal-module was given.
18623 +if test "${with_signal_module+set}" = set; then :
18624 + withval=$with_signal_module;
18626 -done
18629 -for ac_func in forkpty
18631 -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18632 -{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18633 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18634 -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18635 - echo $ECHO_N "(cached) $ECHO_C" >&6
18636 +if test -z "$with_signal_module"
18637 +then with_signal_module="yes"
18639 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_signal_module" >&5
18640 +$as_echo "$with_signal_module" >&6; }
18642 +if test "${with_signal_module}" = "yes"; then
18643 + USE_SIGNAL_MODULE=""
18644 + SIGNAL_OBJS=""
18645 else
18646 - cat >conftest.$ac_ext <<_ACEOF
18647 -/* confdefs.h. */
18648 -_ACEOF
18649 -cat confdefs.h >>conftest.$ac_ext
18650 -cat >>conftest.$ac_ext <<_ACEOF
18651 -/* end confdefs.h. */
18652 -/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18653 - For example, HP-UX 11i <limits.h> declares gettimeofday. */
18654 -#define $ac_func innocuous_$ac_func
18655 + USE_SIGNAL_MODULE="#"
18656 + SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o"
18659 -/* System header to define __stub macros and hopefully few prototypes,
18660 - which can conflict with char $ac_func (); below.
18661 - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18662 - <limits.h> exists even on freestanding compilers. */
18663 +# This is used to generate Setup.config
18665 -#ifdef __STDC__
18666 -# include <limits.h>
18667 -#else
18668 -# include <assert.h>
18669 -#endif
18670 +USE_THREAD_MODULE=""
18672 -#undef $ac_func
18673 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dec-threads" >&5
18674 +$as_echo_n "checking for --with-dec-threads... " >&6; }
18676 -/* Override any GCC internal prototype to avoid an error.
18677 - Use char because int might match the return type of a GCC
18678 - builtin and then its argument prototype would still apply. */
18679 -#ifdef __cplusplus
18680 -extern "C"
18681 -#endif
18682 -char $ac_func ();
18683 -/* The GNU C library defines this for functions which it implements
18684 - to always fail with ENOSYS. Some functions are actually named
18685 - something starting with __ and the normal name is an alias. */
18686 -#if defined __stub_$ac_func || defined __stub___$ac_func
18687 -choke me
18688 -#endif
18690 -int
18691 -main ()
18693 -return $ac_func ();
18695 - return 0;
18697 -_ACEOF
18698 -rm -f conftest.$ac_objext conftest$ac_exeext
18699 -if { (ac_try="$ac_link"
18700 -case "(($ac_try" in
18701 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18702 - *) ac_try_echo=$ac_try;;
18703 -esac
18704 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18705 - (eval "$ac_link") 2>conftest.er1
18706 - ac_status=$?
18707 - grep -v '^ *+' conftest.er1 >conftest.err
18708 - rm -f conftest.er1
18709 - cat conftest.err >&5
18710 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
18711 - (exit $ac_status); } && {
18712 - test -z "$ac_c_werror_flag" ||
18713 - test ! -s conftest.err
18714 - } && test -s conftest$ac_exeext &&
18715 - $as_test_x conftest$ac_exeext; then
18716 - eval "$as_ac_var=yes"
18717 +# Check whether --with-dec-threads was given.
18718 +if test "${with_dec_threads+set}" = set; then :
18719 + withval=$with_dec_threads;
18720 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
18721 +$as_echo "$withval" >&6; }
18722 +LDLAST=-threads
18723 +if test "${with_thread+set}" != set; then
18724 + with_thread="$withval";
18726 else
18727 - echo "$as_me: failed program was:" >&5
18728 -sed 's/^/| /' conftest.$ac_ext >&5
18729 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18730 +$as_echo "no" >&6; }
18733 - eval "$as_ac_var=no"
18735 +# Templates for things AC_DEFINEd more than once.
18736 +# For a single AC_DEFINE, no template is needed.
18741 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-threads" >&5
18742 +$as_echo_n "checking for --with-threads... " >&6; }
18744 +# Check whether --with-threads was given.
18745 +if test "${with_threads+set}" = set; then :
18746 + withval=$with_threads;
18749 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18750 - conftest$ac_exeext conftest.$ac_ext
18752 +# --with-thread is deprecated, but check for it anyway
18754 +# Check whether --with-thread was given.
18755 +if test "${with_thread+set}" = set; then :
18756 + withval=$with_thread; with_threads=$with_thread
18758 -ac_res=`eval echo '${'$as_ac_var'}'`
18759 - { echo "$as_me:$LINENO: result: $ac_res" >&5
18760 -echo "${ECHO_T}$ac_res" >&6; }
18761 -if test `eval echo '${'$as_ac_var'}'` = yes; then
18762 - cat >>confdefs.h <<_ACEOF
18763 -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18766 +if test -z "$with_threads"
18767 +then with_threads="yes"
18769 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_threads" >&5
18770 +$as_echo "$with_threads" >&6; }
18773 +if test "$with_threads" = "no"
18774 +then
18775 + USE_THREAD_MODULE="#"
18776 +elif test "$ac_cv_pthread_is_default" = yes
18777 +then
18778 + $as_echo "#define WITH_THREAD 1" >>confdefs.h
18780 + # Defining _REENTRANT on system with POSIX threads should not hurt.
18781 + $as_echo "#define _REENTRANT 1" >>confdefs.h
18783 + posix_threads=yes
18784 + THREADOBJ="Python/thread.o"
18785 +elif test "$ac_cv_kpthread" = "yes"
18786 +then
18787 + CC="$CC -Kpthread"
18788 + if test "$ac_cv_cxx_thread" = "yes"; then
18789 + CXX="$CXX -Kpthread"
18790 + fi
18791 + $as_echo "#define WITH_THREAD 1" >>confdefs.h
18793 + posix_threads=yes
18794 + THREADOBJ="Python/thread.o"
18795 +elif test "$ac_cv_kthread" = "yes"
18796 +then
18797 + CC="$CC -Kthread"
18798 + if test "$ac_cv_cxx_thread" = "yes"; then
18799 + CXX="$CXX -Kthread"
18800 + fi
18801 + $as_echo "#define WITH_THREAD 1" >>confdefs.h
18803 + posix_threads=yes
18804 + THREADOBJ="Python/thread.o"
18805 +elif test "$ac_cv_pthread" = "yes"
18806 +then
18807 + CC="$CC -pthread"
18808 + if test "$ac_cv_cxx_thread" = "yes"; then
18809 + CXX="$CXX -pthread"
18810 + fi
18811 + $as_echo "#define WITH_THREAD 1" >>confdefs.h
18813 + posix_threads=yes
18814 + THREADOBJ="Python/thread.o"
18815 +else
18816 + if test ! -z "$with_threads" -a -d "$with_threads"
18817 + then LDFLAGS="$LDFLAGS -L$with_threads"
18818 + fi
18819 + if test ! -z "$withval" -a -d "$withval"
18820 + then LDFLAGS="$LDFLAGS -L$withval"
18821 + fi
18823 + # According to the POSIX spec, a pthreads implementation must
18824 + # define _POSIX_THREADS in unistd.h. Some apparently don't
18825 + # (e.g. gnu pth with pthread emulation)
18826 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _POSIX_THREADS in unistd.h" >&5
18827 +$as_echo_n "checking for _POSIX_THREADS in unistd.h... " >&6; }
18828 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18829 +/* end confdefs.h. */
18831 +#include <unistd.h>
18832 +#ifdef _POSIX_THREADS
18833 +yes
18834 +#endif
18836 _ACEOF
18837 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18838 + $EGREP "yes" >/dev/null 2>&1; then :
18839 + unistd_defines_pthreads=yes
18840 +else
18841 + unistd_defines_pthreads=no
18843 +rm -f conftest*
18845 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unistd_defines_pthreads" >&5
18846 +$as_echo "$unistd_defines_pthreads" >&6; }
18848 + $as_echo "#define _REENTRANT 1" >>confdefs.h
18850 + ac_fn_c_check_header_mongrel "$LINENO" "cthreads.h" "ac_cv_header_cthreads_h" "$ac_includes_default"
18851 +if test "x$ac_cv_header_cthreads_h" = xyes; then :
18852 + $as_echo "#define WITH_THREAD 1" >>confdefs.h
18854 + $as_echo "#define C_THREADS 1" >>confdefs.h
18857 +$as_echo "#define HURD_C_THREADS 1" >>confdefs.h
18859 + LIBS="$LIBS -lthreads"
18860 + THREADOBJ="Python/thread.o"
18861 +else
18863 + ac_fn_c_check_header_mongrel "$LINENO" "mach/cthreads.h" "ac_cv_header_mach_cthreads_h" "$ac_includes_default"
18864 +if test "x$ac_cv_header_mach_cthreads_h" = xyes; then :
18865 + $as_echo "#define WITH_THREAD 1" >>confdefs.h
18867 + $as_echo "#define C_THREADS 1" >>confdefs.h
18870 +$as_echo "#define MACH_C_THREADS 1" >>confdefs.h
18872 + THREADOBJ="Python/thread.o"
18873 else
18874 - { echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
18875 -echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6; }
18876 -if test "${ac_cv_lib_util_forkpty+set}" = set; then
18877 - echo $ECHO_N "(cached) $ECHO_C" >&6
18879 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pth" >&5
18880 +$as_echo_n "checking for --with-pth... " >&6; }
18882 +# Check whether --with-pth was given.
18883 +if test "${with_pth+set}" = set; then :
18884 + withval=$with_pth; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
18885 +$as_echo "$withval" >&6; }
18886 + $as_echo "#define WITH_THREAD 1" >>confdefs.h
18889 +$as_echo "#define HAVE_PTH 1" >>confdefs.h
18891 + LIBS="-lpth $LIBS"
18892 + THREADOBJ="Python/thread.o"
18893 else
18894 - ac_check_lib_save_LIBS=$LIBS
18895 -LIBS="-lutil $LIBS"
18896 -cat >conftest.$ac_ext <<_ACEOF
18897 -/* confdefs.h. */
18898 -_ACEOF
18899 -cat confdefs.h >>conftest.$ac_ext
18900 -cat >>conftest.$ac_ext <<_ACEOF
18901 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18902 +$as_echo "no" >&6; }
18904 + # Just looking for pthread_create in libpthread is not enough:
18905 + # on HP/UX, pthread.h renames pthread_create to a different symbol name.
18906 + # So we really have to include pthread.h, and then link.
18907 + _libs=$LIBS
18908 + LIBS="$LIBS -lpthread"
18909 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
18910 +$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
18911 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18912 /* end confdefs.h. */
18913 +#include <pthread.h>
18915 -/* Override any GCC internal prototype to avoid an error.
18916 - Use char because int might match the return type of a GCC
18917 - builtin and then its argument prototype would still apply. */
18918 -#ifdef __cplusplus
18919 -extern "C"
18920 -#endif
18921 -char forkpty ();
18922 +void * start_routine (void *arg) { exit (0); }
18924 main ()
18926 -return forkpty ();
18928 +pthread_create (NULL, NULL, start_routine, NULL)
18930 return 0;
18932 _ACEOF
18933 -rm -f conftest.$ac_objext conftest$ac_exeext
18934 -if { (ac_try="$ac_link"
18935 -case "(($ac_try" in
18936 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18937 - *) ac_try_echo=$ac_try;;
18938 -esac
18939 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18940 - (eval "$ac_link") 2>conftest.er1
18941 - ac_status=$?
18942 - grep -v '^ *+' conftest.er1 >conftest.err
18943 - rm -f conftest.er1
18944 - cat conftest.err >&5
18945 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
18946 - (exit $ac_status); } && {
18947 - test -z "$ac_c_werror_flag" ||
18948 - test ! -s conftest.err
18949 - } && test -s conftest$ac_exeext &&
18950 - $as_test_x conftest$ac_exeext; then
18951 - ac_cv_lib_util_forkpty=yes
18952 +if ac_fn_c_try_link "$LINENO"; then :
18954 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18955 +$as_echo "yes" >&6; }
18956 + $as_echo "#define WITH_THREAD 1" >>confdefs.h
18958 + posix_threads=yes
18959 + THREADOBJ="Python/thread.o"
18960 else
18961 - echo "$as_me: failed program was:" >&5
18962 -sed 's/^/| /' conftest.$ac_ext >&5
18964 - ac_cv_lib_util_forkpty=no
18966 + LIBS=$_libs
18967 + ac_fn_c_check_func "$LINENO" "pthread_detach" "ac_cv_func_pthread_detach"
18968 +if test "x$ac_cv_func_pthread_detach" = xyes; then :
18969 + $as_echo "#define WITH_THREAD 1" >>confdefs.h
18971 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18972 - conftest$ac_exeext conftest.$ac_ext
18973 -LIBS=$ac_check_lib_save_LIBS
18975 -{ echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
18976 -echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6; }
18977 -if test $ac_cv_lib_util_forkpty = yes; then
18978 - cat >>confdefs.h <<\_ACEOF
18979 -#define HAVE_FORKPTY 1
18980 -_ACEOF
18981 - LIBS="$LIBS -lutil"
18982 + posix_threads=yes
18983 + THREADOBJ="Python/thread.o"
18984 +else
18986 + ac_fn_c_check_header_mongrel "$LINENO" "atheos/threads.h" "ac_cv_header_atheos_threads_h" "$ac_includes_default"
18987 +if test "x$ac_cv_header_atheos_threads_h" = xyes; then :
18988 + $as_echo "#define WITH_THREAD 1" >>confdefs.h
18991 +$as_echo "#define ATHEOS_THREADS 1" >>confdefs.h
18993 + THREADOBJ="Python/thread.o"
18994 +else
18996 + ac_fn_c_check_header_mongrel "$LINENO" "kernel/OS.h" "ac_cv_header_kernel_OS_h" "$ac_includes_default"
18997 +if test "x$ac_cv_header_kernel_OS_h" = xyes; then :
18998 + $as_echo "#define WITH_THREAD 1" >>confdefs.h
19001 +$as_echo "#define BEOS_THREADS 1" >>confdefs.h
19003 + THREADOBJ="Python/thread.o"
19004 else
19005 - { echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
19006 -echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6; }
19007 -if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
19008 - echo $ECHO_N "(cached) $ECHO_C" >&6
19010 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
19011 +$as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
19012 +if ${ac_cv_lib_pthreads_pthread_create+:} false; then :
19013 + $as_echo_n "(cached) " >&6
19014 else
19015 ac_check_lib_save_LIBS=$LIBS
19016 -LIBS="-lbsd $LIBS"
19017 -cat >conftest.$ac_ext <<_ACEOF
19018 -/* confdefs.h. */
19019 -_ACEOF
19020 -cat confdefs.h >>conftest.$ac_ext
19021 -cat >>conftest.$ac_ext <<_ACEOF
19022 +LIBS="-lpthreads $LIBS"
19023 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19024 /* end confdefs.h. */
19026 /* Override any GCC internal prototype to avoid an error.
19027 @@ -16213,99 +7741,43 @@
19028 #ifdef __cplusplus
19029 extern "C"
19030 #endif
19031 -char forkpty ();
19032 +char pthread_create ();
19034 main ()
19036 -return forkpty ();
19037 +return pthread_create ();
19039 return 0;
19041 _ACEOF
19042 -rm -f conftest.$ac_objext conftest$ac_exeext
19043 -if { (ac_try="$ac_link"
19044 -case "(($ac_try" in
19045 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19046 - *) ac_try_echo=$ac_try;;
19047 -esac
19048 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19049 - (eval "$ac_link") 2>conftest.er1
19050 - ac_status=$?
19051 - grep -v '^ *+' conftest.er1 >conftest.err
19052 - rm -f conftest.er1
19053 - cat conftest.err >&5
19054 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
19055 - (exit $ac_status); } && {
19056 - test -z "$ac_c_werror_flag" ||
19057 - test ! -s conftest.err
19058 - } && test -s conftest$ac_exeext &&
19059 - $as_test_x conftest$ac_exeext; then
19060 - ac_cv_lib_bsd_forkpty=yes
19061 +if ac_fn_c_try_link "$LINENO"; then :
19062 + ac_cv_lib_pthreads_pthread_create=yes
19063 else
19064 - echo "$as_me: failed program was:" >&5
19065 -sed 's/^/| /' conftest.$ac_ext >&5
19067 - ac_cv_lib_bsd_forkpty=no
19068 + ac_cv_lib_pthreads_pthread_create=no
19071 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19072 - conftest$ac_exeext conftest.$ac_ext
19073 +rm -f core conftest.err conftest.$ac_objext \
19074 + conftest$ac_exeext conftest.$ac_ext
19075 LIBS=$ac_check_lib_save_LIBS
19077 -{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
19078 -echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6; }
19079 -if test $ac_cv_lib_bsd_forkpty = yes; then
19080 - cat >>confdefs.h <<\_ACEOF
19081 -#define HAVE_FORKPTY 1
19082 -_ACEOF
19083 - LIBS="$LIBS -lbsd"
19091 -done
19094 -# check for long file support functions
19099 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
19100 +$as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
19101 +if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then :
19102 + $as_echo "#define WITH_THREAD 1" >>confdefs.h
19104 + posix_threads=yes
19105 + LIBS="$LIBS -lpthreads"
19106 + THREADOBJ="Python/thread.o"
19107 +else
19109 -for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
19111 -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19112 -{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19113 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19114 -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19115 - echo $ECHO_N "(cached) $ECHO_C" >&6
19116 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
19117 +$as_echo_n "checking for pthread_create in -lc_r... " >&6; }
19118 +if ${ac_cv_lib_c_r_pthread_create+:} false; then :
19119 + $as_echo_n "(cached) " >&6
19120 else
19121 - cat >conftest.$ac_ext <<_ACEOF
19122 -/* confdefs.h. */
19123 -_ACEOF
19124 -cat confdefs.h >>conftest.$ac_ext
19125 -cat >>conftest.$ac_ext <<_ACEOF
19126 + ac_check_lib_save_LIBS=$LIBS
19127 +LIBS="-lc_r $LIBS"
19128 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19129 /* end confdefs.h. */
19130 -/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19131 - For example, HP-UX 11i <limits.h> declares gettimeofday. */
19132 -#define $ac_func innocuous_$ac_func
19134 -/* System header to define __stub macros and hopefully few prototypes,
19135 - which can conflict with char $ac_func (); below.
19136 - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19137 - <limits.h> exists even on freestanding compilers. */
19139 -#ifdef __STDC__
19140 -# include <limits.h>
19141 -#else
19142 -# include <assert.h>
19143 -#endif
19145 -#undef $ac_func
19147 /* Override any GCC internal prototype to avoid an error.
19148 Use char because int might match the return type of a GCC
19149 @@ -16313,98 +7785,43 @@
19150 #ifdef __cplusplus
19151 extern "C"
19152 #endif
19153 -char $ac_func ();
19154 -/* The GNU C library defines this for functions which it implements
19155 - to always fail with ENOSYS. Some functions are actually named
19156 - something starting with __ and the normal name is an alias. */
19157 -#if defined __stub_$ac_func || defined __stub___$ac_func
19158 -choke me
19159 -#endif
19161 +char pthread_create ();
19163 main ()
19165 -return $ac_func ();
19166 +return pthread_create ();
19168 return 0;
19170 _ACEOF
19171 -rm -f conftest.$ac_objext conftest$ac_exeext
19172 -if { (ac_try="$ac_link"
19173 -case "(($ac_try" in
19174 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19175 - *) ac_try_echo=$ac_try;;
19176 -esac
19177 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19178 - (eval "$ac_link") 2>conftest.er1
19179 - ac_status=$?
19180 - grep -v '^ *+' conftest.er1 >conftest.err
19181 - rm -f conftest.er1
19182 - cat conftest.err >&5
19183 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
19184 - (exit $ac_status); } && {
19185 - test -z "$ac_c_werror_flag" ||
19186 - test ! -s conftest.err
19187 - } && test -s conftest$ac_exeext &&
19188 - $as_test_x conftest$ac_exeext; then
19189 - eval "$as_ac_var=yes"
19190 +if ac_fn_c_try_link "$LINENO"; then :
19191 + ac_cv_lib_c_r_pthread_create=yes
19192 else
19193 - echo "$as_me: failed program was:" >&5
19194 -sed 's/^/| /' conftest.$ac_ext >&5
19196 - eval "$as_ac_var=no"
19199 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19200 - conftest$ac_exeext conftest.$ac_ext
19201 + ac_cv_lib_c_r_pthread_create=no
19203 -ac_res=`eval echo '${'$as_ac_var'}'`
19204 - { echo "$as_me:$LINENO: result: $ac_res" >&5
19205 -echo "${ECHO_T}$ac_res" >&6; }
19206 -if test `eval echo '${'$as_ac_var'}'` = yes; then
19207 - cat >>confdefs.h <<_ACEOF
19208 -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19209 -_ACEOF
19211 +rm -f core conftest.err conftest.$ac_objext \
19212 + conftest$ac_exeext conftest.$ac_ext
19213 +LIBS=$ac_check_lib_save_LIBS
19215 -done
19221 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
19222 +$as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
19223 +if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
19224 + $as_echo "#define WITH_THREAD 1" >>confdefs.h
19226 + posix_threads=yes
19227 + LIBS="$LIBS -lc_r"
19228 + THREADOBJ="Python/thread.o"
19229 +else
19231 -for ac_func in dup2 getcwd strdup strerror memmove
19233 -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19234 -{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19235 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19236 -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19237 - echo $ECHO_N "(cached) $ECHO_C" >&6
19238 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __pthread_create_system in -lpthread" >&5
19239 +$as_echo_n "checking for __pthread_create_system in -lpthread... " >&6; }
19240 +if ${ac_cv_lib_pthread___pthread_create_system+:} false; then :
19241 + $as_echo_n "(cached) " >&6
19242 else
19243 - cat >conftest.$ac_ext <<_ACEOF
19244 -/* confdefs.h. */
19245 -_ACEOF
19246 -cat confdefs.h >>conftest.$ac_ext
19247 -cat >>conftest.$ac_ext <<_ACEOF
19248 + ac_check_lib_save_LIBS=$LIBS
19249 +LIBS="-lpthread $LIBS"
19250 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19251 /* end confdefs.h. */
19252 -/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19253 - For example, HP-UX 11i <limits.h> declares gettimeofday. */
19254 -#define $ac_func innocuous_$ac_func
19256 -/* System header to define __stub macros and hopefully few prototypes,
19257 - which can conflict with char $ac_func (); below.
19258 - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19259 - <limits.h> exists even on freestanding compilers. */
19261 -#ifdef __STDC__
19262 -# include <limits.h>
19263 -#else
19264 -# include <assert.h>
19265 -#endif
19267 -#undef $ac_func
19269 /* Override any GCC internal prototype to avoid an error.
19270 Use char because int might match the return type of a GCC
19271 @@ -16412,101 +7829,43 @@
19272 #ifdef __cplusplus
19273 extern "C"
19274 #endif
19275 -char $ac_func ();
19276 -/* The GNU C library defines this for functions which it implements
19277 - to always fail with ENOSYS. Some functions are actually named
19278 - something starting with __ and the normal name is an alias. */
19279 -#if defined __stub_$ac_func || defined __stub___$ac_func
19280 -choke me
19281 -#endif
19283 +char __pthread_create_system ();
19285 main ()
19287 -return $ac_func ();
19288 +return __pthread_create_system ();
19290 return 0;
19292 _ACEOF
19293 -rm -f conftest.$ac_objext conftest$ac_exeext
19294 -if { (ac_try="$ac_link"
19295 -case "(($ac_try" in
19296 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19297 - *) ac_try_echo=$ac_try;;
19298 -esac
19299 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19300 - (eval "$ac_link") 2>conftest.er1
19301 - ac_status=$?
19302 - grep -v '^ *+' conftest.er1 >conftest.err
19303 - rm -f conftest.er1
19304 - cat conftest.err >&5
19305 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
19306 - (exit $ac_status); } && {
19307 - test -z "$ac_c_werror_flag" ||
19308 - test ! -s conftest.err
19309 - } && test -s conftest$ac_exeext &&
19310 - $as_test_x conftest$ac_exeext; then
19311 - eval "$as_ac_var=yes"
19312 +if ac_fn_c_try_link "$LINENO"; then :
19313 + ac_cv_lib_pthread___pthread_create_system=yes
19314 else
19315 - echo "$as_me: failed program was:" >&5
19316 -sed 's/^/| /' conftest.$ac_ext >&5
19318 - eval "$as_ac_var=no"
19319 + ac_cv_lib_pthread___pthread_create_system=no
19322 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19323 - conftest$ac_exeext conftest.$ac_ext
19324 +rm -f core conftest.err conftest.$ac_objext \
19325 + conftest$ac_exeext conftest.$ac_ext
19326 +LIBS=$ac_check_lib_save_LIBS
19328 -ac_res=`eval echo '${'$as_ac_var'}'`
19329 - { echo "$as_me:$LINENO: result: $ac_res" >&5
19330 -echo "${ECHO_T}$ac_res" >&6; }
19331 -if test `eval echo '${'$as_ac_var'}'` = yes; then
19332 - cat >>confdefs.h <<_ACEOF
19333 -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19334 -_ACEOF
19335 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_create_system" >&5
19336 +$as_echo "$ac_cv_lib_pthread___pthread_create_system" >&6; }
19337 +if test "x$ac_cv_lib_pthread___pthread_create_system" = xyes; then :
19338 + $as_echo "#define WITH_THREAD 1" >>confdefs.h
19340 + posix_threads=yes
19341 + LIBS="$LIBS -lpthread"
19342 + THREADOBJ="Python/thread.o"
19343 else
19344 - case " $LIBOBJS " in
19345 - *" $ac_func.$ac_objext "* ) ;;
19346 - *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
19347 - ;;
19348 -esac
19351 -done
19355 -for ac_func in getpgrp
19357 -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19358 -{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19359 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19360 -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19361 - echo $ECHO_N "(cached) $ECHO_C" >&6
19362 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lcma" >&5
19363 +$as_echo_n "checking for pthread_create in -lcma... " >&6; }
19364 +if ${ac_cv_lib_cma_pthread_create+:} false; then :
19365 + $as_echo_n "(cached) " >&6
19366 else
19367 - cat >conftest.$ac_ext <<_ACEOF
19368 -/* confdefs.h. */
19369 -_ACEOF
19370 -cat confdefs.h >>conftest.$ac_ext
19371 -cat >>conftest.$ac_ext <<_ACEOF
19372 + ac_check_lib_save_LIBS=$LIBS
19373 +LIBS="-lcma $LIBS"
19374 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19375 /* end confdefs.h. */
19376 -/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19377 - For example, HP-UX 11i <limits.h> declares gettimeofday. */
19378 -#define $ac_func innocuous_$ac_func
19380 -/* System header to define __stub macros and hopefully few prototypes,
19381 - which can conflict with char $ac_func (); below.
19382 - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19383 - <limits.h> exists even on freestanding compilers. */
19385 -#ifdef __STDC__
19386 -# include <limits.h>
19387 -#else
19388 -# include <assert.h>
19389 -#endif
19391 -#undef $ac_func
19393 /* Override any GCC internal prototype to avoid an error.
19394 Use char because int might match the return type of a GCC
19395 @@ -16514,139 +7873,73 @@
19396 #ifdef __cplusplus
19397 extern "C"
19398 #endif
19399 -char $ac_func ();
19400 -/* The GNU C library defines this for functions which it implements
19401 - to always fail with ENOSYS. Some functions are actually named
19402 - something starting with __ and the normal name is an alias. */
19403 -#if defined __stub_$ac_func || defined __stub___$ac_func
19404 -choke me
19405 -#endif
19407 +char pthread_create ();
19409 main ()
19411 -return $ac_func ();
19412 +return pthread_create ();
19414 return 0;
19416 _ACEOF
19417 -rm -f conftest.$ac_objext conftest$ac_exeext
19418 -if { (ac_try="$ac_link"
19419 -case "(($ac_try" in
19420 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19421 - *) ac_try_echo=$ac_try;;
19422 -esac
19423 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19424 - (eval "$ac_link") 2>conftest.er1
19425 - ac_status=$?
19426 - grep -v '^ *+' conftest.er1 >conftest.err
19427 - rm -f conftest.er1
19428 - cat conftest.err >&5
19429 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
19430 - (exit $ac_status); } && {
19431 - test -z "$ac_c_werror_flag" ||
19432 - test ! -s conftest.err
19433 - } && test -s conftest$ac_exeext &&
19434 - $as_test_x conftest$ac_exeext; then
19435 - eval "$as_ac_var=yes"
19436 +if ac_fn_c_try_link "$LINENO"; then :
19437 + ac_cv_lib_cma_pthread_create=yes
19438 else
19439 - echo "$as_me: failed program was:" >&5
19440 -sed 's/^/| /' conftest.$ac_ext >&5
19442 - eval "$as_ac_var=no"
19443 + ac_cv_lib_cma_pthread_create=no
19446 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19447 - conftest$ac_exeext conftest.$ac_ext
19448 +rm -f core conftest.err conftest.$ac_objext \
19449 + conftest$ac_exeext conftest.$ac_ext
19450 +LIBS=$ac_check_lib_save_LIBS
19452 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cma_pthread_create" >&5
19453 +$as_echo "$ac_cv_lib_cma_pthread_create" >&6; }
19454 +if test "x$ac_cv_lib_cma_pthread_create" = xyes; then :
19455 + $as_echo "#define WITH_THREAD 1" >>confdefs.h
19457 + posix_threads=yes
19458 + LIBS="$LIBS -lcma"
19459 + THREADOBJ="Python/thread.o"
19460 +else
19462 + USE_THREAD_MODULE="#"
19464 -ac_res=`eval echo '${'$as_ac_var'}'`
19465 - { echo "$as_me:$LINENO: result: $ac_res" >&5
19466 -echo "${ECHO_T}$ac_res" >&6; }
19467 -if test `eval echo '${'$as_ac_var'}'` = yes; then
19468 - cat >>confdefs.h <<_ACEOF
19469 -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19470 -_ACEOF
19471 - cat >conftest.$ac_ext <<_ACEOF
19472 -/* confdefs.h. */
19473 -_ACEOF
19474 -cat confdefs.h >>conftest.$ac_ext
19475 -cat >>conftest.$ac_ext <<_ACEOF
19476 -/* end confdefs.h. */
19477 -#include <unistd.h>
19478 -int
19479 -main ()
19481 -getpgrp(0);
19483 - return 0;
19485 -_ACEOF
19486 -rm -f conftest.$ac_objext
19487 -if { (ac_try="$ac_compile"
19488 -case "(($ac_try" in
19489 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19490 - *) ac_try_echo=$ac_try;;
19491 -esac
19492 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19493 - (eval "$ac_compile") 2>conftest.er1
19494 - ac_status=$?
19495 - grep -v '^ *+' conftest.er1 >conftest.err
19496 - rm -f conftest.er1
19497 - cat conftest.err >&5
19498 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
19499 - (exit $ac_status); } && {
19500 - test -z "$ac_c_werror_flag" ||
19501 - test ! -s conftest.err
19502 - } && test -s conftest.$ac_objext; then
19504 -cat >>confdefs.h <<\_ACEOF
19505 -#define GETPGRP_HAVE_ARG 1
19506 -_ACEOF
19510 -else
19511 - echo "$as_me: failed program was:" >&5
19512 -sed 's/^/| /' conftest.$ac_ext >&5
19519 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19522 -done
19525 -for ac_func in setpgrp
19527 -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19528 -{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19529 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19530 -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19531 - echo $ECHO_N "(cached) $ECHO_C" >&6
19532 -else
19533 - cat >conftest.$ac_ext <<_ACEOF
19534 -/* confdefs.h. */
19535 -_ACEOF
19536 -cat confdefs.h >>conftest.$ac_ext
19537 -cat >>conftest.$ac_ext <<_ACEOF
19538 -/* end confdefs.h. */
19539 -/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19540 - For example, HP-UX 11i <limits.h> declares gettimeofday. */
19541 -#define $ac_func innocuous_$ac_func
19545 +rm -f core conftest.err conftest.$ac_objext \
19546 + conftest$ac_exeext conftest.$ac_ext
19554 -/* System header to define __stub macros and hopefully few prototypes,
19555 - which can conflict with char $ac_func (); below.
19556 - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19557 - <limits.h> exists even on freestanding compilers. */
19559 -#ifdef __STDC__
19560 -# include <limits.h>
19561 -#else
19562 -# include <assert.h>
19563 -#endif
19565 -#undef $ac_func
19566 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usconfig in -lmpc" >&5
19567 +$as_echo_n "checking for usconfig in -lmpc... " >&6; }
19568 +if ${ac_cv_lib_mpc_usconfig+:} false; then :
19569 + $as_echo_n "(cached) " >&6
19570 +else
19571 + ac_check_lib_save_LIBS=$LIBS
19572 +LIBS="-lmpc $LIBS"
19573 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19574 +/* end confdefs.h. */
19576 /* Override any GCC internal prototype to avoid an error.
19577 Use char because int might match the return type of a GCC
19578 @@ -16654,3722 +7947,2762 @@
19579 #ifdef __cplusplus
19580 extern "C"
19581 #endif
19582 -char $ac_func ();
19583 -/* The GNU C library defines this for functions which it implements
19584 - to always fail with ENOSYS. Some functions are actually named
19585 - something starting with __ and the normal name is an alias. */
19586 -#if defined __stub_$ac_func || defined __stub___$ac_func
19587 -choke me
19588 -#endif
19590 +char usconfig ();
19592 main ()
19594 -return $ac_func ();
19595 +return usconfig ();
19597 return 0;
19599 _ACEOF
19600 -rm -f conftest.$ac_objext conftest$ac_exeext
19601 -if { (ac_try="$ac_link"
19602 -case "(($ac_try" in
19603 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19604 - *) ac_try_echo=$ac_try;;
19605 -esac
19606 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19607 - (eval "$ac_link") 2>conftest.er1
19608 - ac_status=$?
19609 - grep -v '^ *+' conftest.er1 >conftest.err
19610 - rm -f conftest.er1
19611 - cat conftest.err >&5
19612 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
19613 - (exit $ac_status); } && {
19614 - test -z "$ac_c_werror_flag" ||
19615 - test ! -s conftest.err
19616 - } && test -s conftest$ac_exeext &&
19617 - $as_test_x conftest$ac_exeext; then
19618 - eval "$as_ac_var=yes"
19619 +if ac_fn_c_try_link "$LINENO"; then :
19620 + ac_cv_lib_mpc_usconfig=yes
19621 else
19622 - echo "$as_me: failed program was:" >&5
19623 -sed 's/^/| /' conftest.$ac_ext >&5
19625 - eval "$as_ac_var=no"
19626 + ac_cv_lib_mpc_usconfig=no
19628 +rm -f core conftest.err conftest.$ac_objext \
19629 + conftest$ac_exeext conftest.$ac_ext
19630 +LIBS=$ac_check_lib_save_LIBS
19632 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpc_usconfig" >&5
19633 +$as_echo "$ac_cv_lib_mpc_usconfig" >&6; }
19634 +if test "x$ac_cv_lib_mpc_usconfig" = xyes; then :
19635 + $as_echo "#define WITH_THREAD 1" >>confdefs.h
19637 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19638 - conftest$ac_exeext conftest.$ac_ext
19639 + LIBS="$LIBS -lmpc"
19640 + THREADOBJ="Python/thread.o"
19641 + USE_THREAD_MODULE=""
19643 -ac_res=`eval echo '${'$as_ac_var'}'`
19644 - { echo "$as_me:$LINENO: result: $ac_res" >&5
19645 -echo "${ECHO_T}$ac_res" >&6; }
19646 -if test `eval echo '${'$as_ac_var'}'` = yes; then
19647 - cat >>confdefs.h <<_ACEOF
19648 -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19649 -_ACEOF
19650 - cat >conftest.$ac_ext <<_ACEOF
19651 -/* confdefs.h. */
19652 -_ACEOF
19653 -cat confdefs.h >>conftest.$ac_ext
19654 -cat >>conftest.$ac_ext <<_ACEOF
19657 + if test "$posix_threads" != "yes"; then
19658 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5
19659 +$as_echo_n "checking for thr_create in -lthread... " >&6; }
19660 +if ${ac_cv_lib_thread_thr_create+:} false; then :
19661 + $as_echo_n "(cached) " >&6
19662 +else
19663 + ac_check_lib_save_LIBS=$LIBS
19664 +LIBS="-lthread $LIBS"
19665 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19666 /* end confdefs.h. */
19667 -#include <unistd.h>
19669 +/* Override any GCC internal prototype to avoid an error.
19670 + Use char because int might match the return type of a GCC
19671 + builtin and then its argument prototype would still apply. */
19672 +#ifdef __cplusplus
19673 +extern "C"
19674 +#endif
19675 +char thr_create ();
19677 main ()
19679 -setpgrp(0,0);
19680 +return thr_create ();
19682 return 0;
19684 _ACEOF
19685 -rm -f conftest.$ac_objext
19686 -if { (ac_try="$ac_compile"
19687 -case "(($ac_try" in
19688 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19689 - *) ac_try_echo=$ac_try;;
19690 -esac
19691 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19692 - (eval "$ac_compile") 2>conftest.er1
19693 - ac_status=$?
19694 - grep -v '^ *+' conftest.er1 >conftest.err
19695 - rm -f conftest.er1
19696 - cat conftest.err >&5
19697 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
19698 - (exit $ac_status); } && {
19699 - test -z "$ac_c_werror_flag" ||
19700 - test ! -s conftest.err
19701 - } && test -s conftest.$ac_objext; then
19702 +if ac_fn_c_try_link "$LINENO"; then :
19703 + ac_cv_lib_thread_thr_create=yes
19704 +else
19705 + ac_cv_lib_thread_thr_create=no
19707 +rm -f core conftest.err conftest.$ac_objext \
19708 + conftest$ac_exeext conftest.$ac_ext
19709 +LIBS=$ac_check_lib_save_LIBS
19711 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5
19712 +$as_echo "$ac_cv_lib_thread_thr_create" >&6; }
19713 +if test "x$ac_cv_lib_thread_thr_create" = xyes; then :
19714 + $as_echo "#define WITH_THREAD 1" >>confdefs.h
19716 -cat >>confdefs.h <<\_ACEOF
19717 -#define SETPGRP_HAVE_ARG 1
19718 -_ACEOF
19719 + LIBS="$LIBS -lthread"
19720 + THREADOBJ="Python/thread.o"
19721 + USE_THREAD_MODULE=""
19724 + fi
19726 + if test "$USE_THREAD_MODULE" != "#"
19727 + then
19728 + # If the above checks didn't disable threads, (at least) OSF1
19729 + # needs this '-threads' argument during linking.
19730 + case $ac_sys_system in
19731 + OSF1) LDLAST=-threads;;
19732 + esac
19733 + fi
19736 +if test "$posix_threads" = "yes"; then
19737 + if test "$unistd_defines_pthreads" = "no"; then
19739 +$as_echo "#define _POSIX_THREADS 1" >>confdefs.h
19741 + fi
19743 + # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
19744 + case $ac_sys_system/$ac_sys_release in
19745 + SunOS/5.6)
19746 +$as_echo "#define HAVE_PTHREAD_DESTRUCTOR 1" >>confdefs.h
19748 + ;;
19749 + SunOS/5.8)
19750 +$as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
19752 + ;;
19753 + AIX/5)
19754 +$as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
19756 + ;;
19757 + esac
19759 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
19760 +$as_echo_n "checking if PTHREAD_SCOPE_SYSTEM is supported... " >&6; }
19761 + if ${ac_cv_pthread_system_supported+:} false; then :
19762 + $as_echo_n "(cached) " >&6
19763 else
19764 - echo "$as_me: failed program was:" >&5
19765 -sed 's/^/| /' conftest.$ac_ext >&5
19766 + if test "$cross_compiling" = yes; then :
19767 + ac_cv_pthread_system_supported=no
19768 +else
19769 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19770 +/* end confdefs.h. */
19771 +#include <pthread.h>
19772 + void *foo(void *parm) {
19773 + return NULL;
19775 + main() {
19776 + pthread_attr_t attr;
19777 + pthread_t id;
19778 + if (pthread_attr_init(&attr)) exit(-1);
19779 + if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
19780 + if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
19781 + exit(0);
19783 +_ACEOF
19784 +if ac_fn_c_try_run "$LINENO"; then :
19785 + ac_cv_pthread_system_supported=yes
19786 +else
19787 + ac_cv_pthread_system_supported=no
19789 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19790 + conftest.$ac_objext conftest.beam conftest.$ac_ext
19796 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19797 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_system_supported" >&5
19798 +$as_echo "$ac_cv_pthread_system_supported" >&6; }
19799 + if test "$ac_cv_pthread_system_supported" = "yes"; then
19801 +$as_echo "#define PTHREAD_SYSTEM_SCHED_SUPPORTED 1" >>confdefs.h
19803 + fi
19804 + for ac_func in pthread_sigmask
19805 +do :
19806 + ac_fn_c_check_func "$LINENO" "pthread_sigmask" "ac_cv_func_pthread_sigmask"
19807 +if test "x$ac_cv_func_pthread_sigmask" = xyes; then :
19808 + cat >>confdefs.h <<_ACEOF
19809 +#define HAVE_PTHREAD_SIGMASK 1
19810 +_ACEOF
19811 + case $ac_sys_system in
19812 + CYGWIN*)
19814 +$as_echo "#define HAVE_BROKEN_PTHREAD_SIGMASK 1" >>confdefs.h
19816 + ;;
19817 + esac
19819 done
19823 -for ac_func in gettimeofday
19825 -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19826 -{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19827 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19828 -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19829 - echo $ECHO_N "(cached) $ECHO_C" >&6
19830 -else
19831 - cat >conftest.$ac_ext <<_ACEOF
19832 -/* confdefs.h. */
19833 -_ACEOF
19834 -cat confdefs.h >>conftest.$ac_ext
19835 -cat >>conftest.$ac_ext <<_ACEOF
19836 -/* end confdefs.h. */
19837 -/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19838 - For example, HP-UX 11i <limits.h> declares gettimeofday. */
19839 -#define $ac_func innocuous_$ac_func
19841 -/* System header to define __stub macros and hopefully few prototypes,
19842 - which can conflict with char $ac_func (); below.
19843 - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19844 - <limits.h> exists even on freestanding compilers. */
19845 +# Check for enable-ipv6
19847 -#ifdef __STDC__
19848 -# include <limits.h>
19849 -#else
19850 -# include <assert.h>
19851 -#endif
19852 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-ipv6 is specified" >&5
19853 +$as_echo_n "checking if --enable-ipv6 is specified... " >&6; }
19854 +# Check whether --enable-ipv6 was given.
19855 +if test "${enable_ipv6+set}" = set; then :
19856 + enableval=$enable_ipv6; case "$enableval" in
19857 + no)
19858 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19859 +$as_echo "no" >&6; }
19860 + ipv6=no
19861 + ;;
19862 + *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19863 +$as_echo "yes" >&6; }
19864 + $as_echo "#define ENABLE_IPV6 1" >>confdefs.h
19866 -#undef $ac_func
19867 + ipv6=yes
19868 + ;;
19869 + esac
19870 +else
19872 -/* Override any GCC internal prototype to avoid an error.
19873 - Use char because int might match the return type of a GCC
19874 - builtin and then its argument prototype would still apply. */
19875 -#ifdef __cplusplus
19876 -extern "C"
19877 -#endif
19878 -char $ac_func ();
19879 -/* The GNU C library defines this for functions which it implements
19880 - to always fail with ENOSYS. Some functions are actually named
19881 - something starting with __ and the normal name is an alias. */
19882 -#if defined __stub_$ac_func || defined __stub___$ac_func
19883 -choke me
19884 -#endif
19885 + if test "$cross_compiling" = yes; then :
19886 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19887 +$as_echo "no" >&6; }
19888 + ipv6=no
19890 -int
19891 -main ()
19892 +else
19893 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19894 +/* end confdefs.h. */
19895 + /* AF_INET6 available check */
19896 +#include <sys/types.h>
19897 +#include <sys/socket.h>
19898 +main()
19900 -return $ac_func ();
19902 - return 0;
19903 + if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
19904 + exit(1);
19905 + else
19906 + exit(0);
19909 _ACEOF
19910 -rm -f conftest.$ac_objext conftest$ac_exeext
19911 -if { (ac_try="$ac_link"
19912 -case "(($ac_try" in
19913 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19914 - *) ac_try_echo=$ac_try;;
19915 -esac
19916 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19917 - (eval "$ac_link") 2>conftest.er1
19918 - ac_status=$?
19919 - grep -v '^ *+' conftest.er1 >conftest.err
19920 - rm -f conftest.er1
19921 - cat conftest.err >&5
19922 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
19923 - (exit $ac_status); } && {
19924 - test -z "$ac_c_werror_flag" ||
19925 - test ! -s conftest.err
19926 - } && test -s conftest$ac_exeext &&
19927 - $as_test_x conftest$ac_exeext; then
19928 - eval "$as_ac_var=yes"
19929 +if ac_fn_c_try_run "$LINENO"; then :
19930 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19931 +$as_echo "yes" >&6; }
19932 + ipv6=yes
19933 else
19934 - echo "$as_me: failed program was:" >&5
19935 -sed 's/^/| /' conftest.$ac_ext >&5
19937 - eval "$as_ac_var=no"
19938 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19939 +$as_echo "no" >&6; }
19940 + ipv6=no
19943 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19944 - conftest$ac_exeext conftest.$ac_ext
19945 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19946 + conftest.$ac_objext conftest.beam conftest.$ac_ext
19948 -ac_res=`eval echo '${'$as_ac_var'}'`
19949 - { echo "$as_me:$LINENO: result: $ac_res" >&5
19950 -echo "${ECHO_T}$ac_res" >&6; }
19951 -if test `eval echo '${'$as_ac_var'}'` = yes; then
19952 - cat >>confdefs.h <<_ACEOF
19953 -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19954 -_ACEOF
19955 - cat >conftest.$ac_ext <<_ACEOF
19956 -/* confdefs.h. */
19957 -_ACEOF
19958 -cat confdefs.h >>conftest.$ac_ext
19959 -cat >>conftest.$ac_ext <<_ACEOF
19962 +if test "$ipv6" = "yes"; then
19963 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RFC2553 API is available" >&5
19964 +$as_echo_n "checking if RFC2553 API is available... " >&6; }
19965 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19966 /* end confdefs.h. */
19967 -#include <sys/time.h>
19968 +#include <sys/types.h>
19969 +#include <netinet/in.h>
19971 main ()
19973 -gettimeofday((struct timeval*)0,(struct timezone*)0);
19974 +struct sockaddr_in6 x;
19975 +x.sin6_scope_id;
19977 return 0;
19979 _ACEOF
19980 -rm -f conftest.$ac_objext
19981 -if { (ac_try="$ac_compile"
19982 -case "(($ac_try" in
19983 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19984 - *) ac_try_echo=$ac_try;;
19985 -esac
19986 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19987 - (eval "$ac_compile") 2>conftest.er1
19988 - ac_status=$?
19989 - grep -v '^ *+' conftest.er1 >conftest.err
19990 - rm -f conftest.er1
19991 - cat conftest.err >&5
19992 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
19993 - (exit $ac_status); } && {
19994 - test -z "$ac_c_werror_flag" ||
19995 - test ! -s conftest.err
19996 - } && test -s conftest.$ac_objext; then
19998 +if ac_fn_c_try_compile "$LINENO"; then :
19999 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20000 +$as_echo "yes" >&6; }
20001 + ipv6=yes
20002 else
20003 - echo "$as_me: failed program was:" >&5
20004 -sed 's/^/| /' conftest.$ac_ext >&5
20007 -cat >>confdefs.h <<\_ACEOF
20008 -#define GETTIMEOFDAY_NO_TZ 1
20009 -_ACEOF
20010 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20011 +$as_echo "no" >&6; }
20012 + ipv6=no
20014 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20017 +if test "$ipv6" = "yes"; then
20018 + $as_echo "#define ENABLE_IPV6 1" >>confdefs.h
20022 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20025 -done
20028 -{ echo "$as_me:$LINENO: checking for major" >&5
20029 -echo $ECHO_N "checking for major... $ECHO_C" >&6; }
20030 -cat >conftest.$ac_ext <<_ACEOF
20031 -/* confdefs.h. */
20032 -_ACEOF
20033 -cat confdefs.h >>conftest.$ac_ext
20034 -cat >>conftest.$ac_ext <<_ACEOF
20035 +ipv6type=unknown
20036 +ipv6lib=none
20037 +ipv6trylibc=no
20039 +if test "$ipv6" = "yes"; then
20040 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking ipv6 stack type" >&5
20041 +$as_echo_n "checking ipv6 stack type... " >&6; }
20042 + for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
20043 + do
20044 + case $i in
20045 + inria)
20046 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20047 /* end confdefs.h. */
20049 -#if defined(MAJOR_IN_MKDEV)
20050 -#include <sys/mkdev.h>
20051 -#elif defined(MAJOR_IN_SYSMACROS)
20052 -#include <sys/sysmacros.h>
20053 -#else
20054 -#include <sys/types.h>
20055 +#include <netinet/in.h>
20056 +#ifdef IPV6_INRIA_VERSION
20057 +yes
20058 #endif
20060 -int
20061 -main ()
20064 - makedev(major(0),minor(0));
20067 - return 0;
20069 _ACEOF
20070 -rm -f conftest.$ac_objext conftest$ac_exeext
20071 -if { (ac_try="$ac_link"
20072 -case "(($ac_try" in
20073 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20074 - *) ac_try_echo=$ac_try;;
20075 -esac
20076 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20077 - (eval "$ac_link") 2>conftest.er1
20078 - ac_status=$?
20079 - grep -v '^ *+' conftest.er1 >conftest.err
20080 - rm -f conftest.er1
20081 - cat conftest.err >&5
20082 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
20083 - (exit $ac_status); } && {
20084 - test -z "$ac_c_werror_flag" ||
20085 - test ! -s conftest.err
20086 - } && test -s conftest$ac_exeext &&
20087 - $as_test_x conftest$ac_exeext; then
20088 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20089 + $EGREP "yes" >/dev/null 2>&1; then :
20090 + ipv6type=$i
20092 +rm -f conftest*
20094 + ;;
20095 + kame)
20096 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20097 +/* end confdefs.h. */
20099 -cat >>confdefs.h <<\_ACEOF
20100 -#define HAVE_DEVICE_MACROS 1
20101 +#include <netinet/in.h>
20102 +#ifdef __KAME__
20103 +yes
20104 +#endif
20105 _ACEOF
20106 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20107 + $EGREP "yes" >/dev/null 2>&1; then :
20108 + ipv6type=$i;
20109 + ipv6lib=inet6
20110 + ipv6libdir=/usr/local/v6/lib
20111 + ipv6trylibc=yes
20113 +rm -f conftest*
20115 - { echo "$as_me:$LINENO: result: yes" >&5
20116 -echo "${ECHO_T}yes" >&6; }
20118 -else
20119 - echo "$as_me: failed program was:" >&5
20120 -sed 's/^/| /' conftest.$ac_ext >&5
20121 + ;;
20122 + linux-glibc)
20123 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20124 +/* end confdefs.h. */
20126 +#include <features.h>
20127 +#if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
20128 +yes
20129 +#endif
20130 +_ACEOF
20131 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20132 + $EGREP "yes" >/dev/null 2>&1; then :
20133 + ipv6type=$i;
20134 + ipv6trylibc=yes
20136 +rm -f conftest*
20138 - { echo "$as_me:$LINENO: result: no" >&5
20139 -echo "${ECHO_T}no" >&6; }
20140 + ;;
20141 + linux-inet6)
20142 + if test -d /usr/inet6; then
20143 + ipv6type=$i
20144 + ipv6lib=inet6
20145 + ipv6libdir=/usr/inet6/lib
20146 + BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
20147 + fi
20148 + ;;
20149 + solaris)
20150 + if test -f /etc/netconfig; then
20151 + if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then
20152 + ipv6type=$i
20153 + ipv6trylibc=yes
20154 + fi
20155 + fi
20156 + ;;
20157 + toshiba)
20158 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20159 +/* end confdefs.h. */
20161 +#include <sys/param.h>
20162 +#ifdef _TOSHIBA_INET6
20163 +yes
20164 +#endif
20165 +_ACEOF
20166 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20167 + $EGREP "yes" >/dev/null 2>&1; then :
20168 + ipv6type=$i;
20169 + ipv6lib=inet6;
20170 + ipv6libdir=/usr/local/v6/lib
20172 +rm -f conftest*
20174 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20175 - conftest$ac_exeext conftest.$ac_ext
20176 + ;;
20177 + v6d)
20178 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20179 +/* end confdefs.h. */
20181 -# On OSF/1 V5.1, getaddrinfo is available, but a define
20182 -# for [no]getaddrinfo in netdb.h.
20183 -{ echo "$as_me:$LINENO: checking for getaddrinfo" >&5
20184 -echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
20185 -cat >conftest.$ac_ext <<_ACEOF
20186 -/* confdefs.h. */
20187 +#include </usr/local/v6/include/sys/v6config.h>
20188 +#ifdef __V6D__
20189 +yes
20190 +#endif
20191 _ACEOF
20192 -cat confdefs.h >>conftest.$ac_ext
20193 -cat >>conftest.$ac_ext <<_ACEOF
20194 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20195 + $EGREP "yes" >/dev/null 2>&1; then :
20196 + ipv6type=$i;
20197 + ipv6lib=v6;
20198 + ipv6libdir=/usr/local/v6/lib;
20199 + BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
20201 +rm -f conftest*
20203 + ;;
20204 + zeta)
20205 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20206 /* end confdefs.h. */
20208 -#include <sys/types.h>
20209 -#include <sys/socket.h>
20210 -#include <netdb.h>
20211 -#include <stdio.h>
20212 +#include <sys/param.h>
20213 +#ifdef _ZETA_MINAMI_INET6
20214 +yes
20215 +#endif
20216 +_ACEOF
20217 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20218 + $EGREP "yes" >/dev/null 2>&1; then :
20219 + ipv6type=$i;
20220 + ipv6lib=inet6;
20221 + ipv6libdir=/usr/local/v6/lib
20223 +rm -f conftest*
20225 -int
20226 -main ()
20228 + ;;
20229 + esac
20230 + if test "$ipv6type" != "unknown"; then
20231 + break
20232 + fi
20233 + done
20234 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6type" >&5
20235 +$as_echo "$ipv6type" >&6; }
20238 -getaddrinfo(NULL, NULL, NULL, NULL);
20239 +if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
20240 + if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
20241 + LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
20242 + echo "using lib$ipv6lib"
20243 + else
20244 + if test $ipv6trylibc = "yes"; then
20245 + echo "using libc"
20246 + else
20247 + echo 'Fatal: no $ipv6lib library found. cannot continue.'
20248 + echo "You need to fetch lib$ipv6lib.a from appropriate"
20249 + echo 'ipv6 kit and compile beforehand.'
20250 + exit 1
20251 + fi
20252 + fi
20256 - return 0;
20258 -_ACEOF
20259 -rm -f conftest.$ac_objext conftest$ac_exeext
20260 -if { (ac_try="$ac_link"
20261 -case "(($ac_try" in
20262 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20263 - *) ac_try_echo=$ac_try;;
20264 -esac
20265 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20266 - (eval "$ac_link") 2>conftest.er1
20267 - ac_status=$?
20268 - grep -v '^ *+' conftest.er1 >conftest.err
20269 - rm -f conftest.er1
20270 - cat conftest.err >&5
20271 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
20272 - (exit $ac_status); } && {
20273 - test -z "$ac_c_werror_flag" ||
20274 - test ! -s conftest.err
20275 - } && test -s conftest$ac_exeext &&
20276 - $as_test_x conftest$ac_exeext; then
20277 +# Check for --with-doc-strings
20278 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-doc-strings" >&5
20279 +$as_echo_n "checking for --with-doc-strings... " >&6; }
20281 -{ echo "$as_me:$LINENO: result: yes" >&5
20282 -echo "${ECHO_T}yes" >&6; }
20283 -{ echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
20284 -echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
20285 -if test "$cross_compiling" = yes; then
20286 - { echo "$as_me:$LINENO: result: buggy" >&5
20287 -echo "${ECHO_T}buggy" >&6; }
20288 -buggygetaddrinfo=yes
20289 -else
20290 - cat >conftest.$ac_ext <<_ACEOF
20291 -/* confdefs.h. */
20292 -_ACEOF
20293 -cat confdefs.h >>conftest.$ac_ext
20294 -cat >>conftest.$ac_ext <<_ACEOF
20295 -/* end confdefs.h. */
20296 +# Check whether --with-doc-strings was given.
20297 +if test "${with_doc_strings+set}" = set; then :
20298 + withval=$with_doc_strings;
20301 -#include <sys/types.h>
20302 -#include <netdb.h>
20303 -#include <string.h>
20304 -#include <sys/socket.h>
20305 -#include <netinet/in.h>
20307 -main()
20309 - int passive, gaierr, inet4 = 0, inet6 = 0;
20310 - struct addrinfo hints, *ai, *aitop;
20311 - char straddr[INET6_ADDRSTRLEN], strport[16];
20312 +if test -z "$with_doc_strings"
20313 +then with_doc_strings="yes"
20315 +if test "$with_doc_strings" != "no"
20316 +then
20318 - for (passive = 0; passive <= 1; passive++) {
20319 - memset(&hints, 0, sizeof(hints));
20320 - hints.ai_family = AF_UNSPEC;
20321 - hints.ai_flags = passive ? AI_PASSIVE : 0;
20322 - hints.ai_socktype = SOCK_STREAM;
20323 - hints.ai_protocol = IPPROTO_TCP;
20324 - if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
20325 - (void)gai_strerror(gaierr);
20326 - goto bad;
20328 - for (ai = aitop; ai; ai = ai->ai_next) {
20329 - if (ai->ai_addr == NULL ||
20330 - ai->ai_addrlen == 0 ||
20331 - getnameinfo(ai->ai_addr, ai->ai_addrlen,
20332 - straddr, sizeof(straddr), strport, sizeof(strport),
20333 - NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
20334 - goto bad;
20336 - switch (ai->ai_family) {
20337 - case AF_INET:
20338 - if (strcmp(strport, "54321") != 0) {
20339 - goto bad;
20341 - if (passive) {
20342 - if (strcmp(straddr, "0.0.0.0") != 0) {
20343 - goto bad;
20345 - } else {
20346 - if (strcmp(straddr, "127.0.0.1") != 0) {
20347 - goto bad;
20350 - inet4++;
20351 - break;
20352 - case AF_INET6:
20353 - if (strcmp(strport, "54321") != 0) {
20354 - goto bad;
20356 - if (passive) {
20357 - if (strcmp(straddr, "::") != 0) {
20358 - goto bad;
20360 - } else {
20361 - if (strcmp(straddr, "::1") != 0) {
20362 - goto bad;
20365 - inet6++;
20366 - break;
20367 - case AF_UNSPEC:
20368 - goto bad;
20369 - break;
20370 - default:
20371 - /* another family support? */
20372 - break;
20376 +$as_echo "#define WITH_DOC_STRINGS 1" >>confdefs.h
20378 - if (!(inet4 == 0 || inet4 == 2))
20379 - goto bad;
20380 - if (!(inet6 == 0 || inet6 == 2))
20381 - goto bad;
20383 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_doc_strings" >&5
20384 +$as_echo "$with_doc_strings" >&6; }
20386 - if (aitop)
20387 - freeaddrinfo(aitop);
20388 - exit(0);
20389 +# Check for Python-specific malloc support
20390 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tsc" >&5
20391 +$as_echo_n "checking for --with-tsc... " >&6; }
20393 - bad:
20394 - if (aitop)
20395 - freeaddrinfo(aitop);
20396 - exit(1);
20398 +# Check whether --with-tsc was given.
20399 +if test "${with_tsc+set}" = set; then :
20400 + withval=$with_tsc;
20401 +if test "$withval" != no
20402 +then
20404 -_ACEOF
20405 -rm -f conftest$ac_exeext
20406 -if { (ac_try="$ac_link"
20407 -case "(($ac_try" in
20408 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20409 - *) ac_try_echo=$ac_try;;
20410 -esac
20411 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20412 - (eval "$ac_link") 2>&5
20413 - ac_status=$?
20414 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
20415 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20416 - { (case "(($ac_try" in
20417 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20418 - *) ac_try_echo=$ac_try;;
20419 -esac
20420 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20421 - (eval "$ac_try") 2>&5
20422 - ac_status=$?
20423 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
20424 - (exit $ac_status); }; }; then
20425 - { echo "$as_me:$LINENO: result: good" >&5
20426 -echo "${ECHO_T}good" >&6; }
20427 -buggygetaddrinfo=no
20428 +$as_echo "#define WITH_TSC 1" >>confdefs.h
20430 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20431 +$as_echo "yes" >&6; }
20432 +else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20433 +$as_echo "no" >&6; }
20435 else
20436 - echo "$as_me: program exited with status $ac_status" >&5
20437 -echo "$as_me: failed program was:" >&5
20438 -sed 's/^/| /' conftest.$ac_ext >&5
20439 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20440 +$as_echo "no" >&6; }
20443 -( exit $ac_status )
20444 -{ echo "$as_me:$LINENO: result: buggy" >&5
20445 -echo "${ECHO_T}buggy" >&6; }
20446 -buggygetaddrinfo=yes
20448 +# Check for Python-specific malloc support
20449 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pymalloc" >&5
20450 +$as_echo_n "checking for --with-pymalloc... " >&6; }
20452 +# Check whether --with-pymalloc was given.
20453 +if test "${with_pymalloc+set}" = set; then :
20454 + withval=$with_pymalloc;
20458 +if test -z "$with_pymalloc"
20459 +then with_pymalloc="yes"
20461 -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20462 +if test "$with_pymalloc" != "no"
20463 +then
20465 +$as_echo "#define WITH_PYMALLOC 1" >>confdefs.h
20468 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pymalloc" >&5
20469 +$as_echo "$with_pymalloc" >&6; }
20471 +# Check for --with-wctype-functions
20472 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-wctype-functions" >&5
20473 +$as_echo_n "checking for --with-wctype-functions... " >&6; }
20475 +# Check whether --with-wctype-functions was given.
20476 +if test "${with_wctype_functions+set}" = set; then :
20477 + withval=$with_wctype_functions;
20478 +if test "$withval" != no
20479 +then
20481 +$as_echo "#define WANT_WCTYPE_FUNCTIONS 1" >>confdefs.h
20483 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20484 +$as_echo "yes" >&6; }
20485 +else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20486 +$as_echo "no" >&6; }
20488 else
20489 - echo "$as_me: failed program was:" >&5
20490 -sed 's/^/| /' conftest.$ac_ext >&5
20491 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20492 +$as_echo "no" >&6; }
20496 -{ echo "$as_me:$LINENO: result: no" >&5
20497 -echo "${ECHO_T}no" >&6; }
20498 -buggygetaddrinfo=yes
20499 +# -I${DLINCLDIR} is added to the compile rule for importdl.o
20501 +DLINCLDIR=.
20503 +# the dlopen() function means we might want to use dynload_shlib.o. some
20504 +# platforms, such as AIX, have dlopen(), but don't want to use it.
20505 +for ac_func in dlopen
20506 +do :
20507 + ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
20508 +if test "x$ac_cv_func_dlopen" = xyes; then :
20509 + cat >>confdefs.h <<_ACEOF
20510 +#define HAVE_DLOPEN 1
20511 +_ACEOF
20514 +done
20516 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20517 - conftest$ac_exeext conftest.$ac_ext
20519 -if test "$buggygetaddrinfo" = "yes"; then
20520 - if test "$ipv6" = "yes"; then
20521 - echo 'Fatal: You must get working getaddrinfo() function.'
20522 - echo ' or you can specify "--disable-ipv6"'.
20523 - exit 1
20524 +# DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
20525 +# loading of modules.
20527 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking DYNLOADFILE" >&5
20528 +$as_echo_n "checking DYNLOADFILE... " >&6; }
20529 +if test -z "$DYNLOADFILE"
20530 +then
20531 + case $ac_sys_system/$ac_sys_release in
20532 + AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
20533 + if test "$ac_cv_func_dlopen" = yes
20534 + then DYNLOADFILE="dynload_shlib.o"
20535 + else DYNLOADFILE="dynload_aix.o"
20537 -else
20538 + ;;
20539 + BeOS*) DYNLOADFILE="dynload_beos.o";;
20540 + hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
20541 + # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
20542 + Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";;
20543 + atheos*) DYNLOADFILE="dynload_atheos.o";;
20544 + *)
20545 + # use dynload_shlib.c and dlopen() if we have it; otherwise stub
20546 + # out any dynamic loading
20547 + if test "$ac_cv_func_dlopen" = yes
20548 + then DYNLOADFILE="dynload_shlib.o"
20549 + else DYNLOADFILE="dynload_stub.o"
20550 + fi
20551 + ;;
20552 + esac
20554 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DYNLOADFILE" >&5
20555 +$as_echo "$DYNLOADFILE" >&6; }
20556 +if test "$DYNLOADFILE" != "dynload_stub.o"
20557 +then
20559 -cat >>confdefs.h <<\_ACEOF
20560 -#define HAVE_GETADDRINFO 1
20561 -_ACEOF
20562 +$as_echo "#define HAVE_DYNAMIC_LOADING 1" >>confdefs.h
20566 -for ac_func in getnameinfo
20568 -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20569 -{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20570 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20571 -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20572 - echo $ECHO_N "(cached) $ECHO_C" >&6
20573 -else
20574 - cat >conftest.$ac_ext <<_ACEOF
20575 -/* confdefs.h. */
20576 -_ACEOF
20577 -cat confdefs.h >>conftest.$ac_ext
20578 -cat >>conftest.$ac_ext <<_ACEOF
20579 -/* end confdefs.h. */
20580 -/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20581 - For example, HP-UX 11i <limits.h> declares gettimeofday. */
20582 -#define $ac_func innocuous_$ac_func
20583 +# MACHDEP_OBJS can be set to platform-specific object files needed by Python
20585 -/* System header to define __stub macros and hopefully few prototypes,
20586 - which can conflict with char $ac_func (); below.
20587 - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20588 - <limits.h> exists even on freestanding compilers. */
20590 -#ifdef __STDC__
20591 -# include <limits.h>
20592 -#else
20593 -# include <assert.h>
20594 -#endif
20595 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP_OBJS" >&5
20596 +$as_echo_n "checking MACHDEP_OBJS... " >&6; }
20597 +if test -z "$MACHDEP_OBJS"
20598 +then
20599 + MACHDEP_OBJS=$extra_machdep_objs
20600 +else
20601 + MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
20603 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: MACHDEP_OBJS" >&5
20604 +$as_echo "MACHDEP_OBJS" >&6; }
20606 +# checks for library functions
20607 +for ac_func in alarm bind_textdomain_codeset chown clock confstr ctermid \
20608 + execv fork fpathconf ftime ftruncate \
20609 + gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
20610 + getpriority getpwent getspnam getspent getsid getwd \
20611 + kill killpg lchown lstat mkfifo mknod mktime \
20612 + mremap nice pathconf pause plock poll pthread_init \
20613 + putenv readlink realpath \
20614 + select setegid seteuid setgid \
20615 + setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
20616 + sigaction siginterrupt sigrelse strftime \
20617 + sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
20618 + truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty
20619 +do :
20620 + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20621 +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20622 +if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20623 + cat >>confdefs.h <<_ACEOF
20624 +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20625 +_ACEOF
20627 -#undef $ac_func
20629 +done
20631 -/* Override any GCC internal prototype to avoid an error.
20632 - Use char because int might match the return type of a GCC
20633 - builtin and then its argument prototype would still apply. */
20634 -#ifdef __cplusplus
20635 -extern "C"
20636 -#endif
20637 -char $ac_func ();
20638 -/* The GNU C library defines this for functions which it implements
20639 - to always fail with ENOSYS. Some functions are actually named
20640 - something starting with __ and the normal name is an alias. */
20641 -#if defined __stub_$ac_func || defined __stub___$ac_func
20642 -choke me
20643 -#endif
20645 +# For some functions, having a definition is not sufficient, since
20646 +# we want to take their address.
20647 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for chroot" >&5
20648 +$as_echo_n "checking for chroot... " >&6; }
20649 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20650 +/* end confdefs.h. */
20651 +#include <unistd.h>
20653 main ()
20655 -return $ac_func ();
20656 +void *x=chroot
20658 return 0;
20660 _ACEOF
20661 -rm -f conftest.$ac_objext conftest$ac_exeext
20662 -if { (ac_try="$ac_link"
20663 -case "(($ac_try" in
20664 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20665 - *) ac_try_echo=$ac_try;;
20666 -esac
20667 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20668 - (eval "$ac_link") 2>conftest.er1
20669 - ac_status=$?
20670 - grep -v '^ *+' conftest.er1 >conftest.err
20671 - rm -f conftest.er1
20672 - cat conftest.err >&5
20673 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
20674 - (exit $ac_status); } && {
20675 - test -z "$ac_c_werror_flag" ||
20676 - test ! -s conftest.err
20677 - } && test -s conftest$ac_exeext &&
20678 - $as_test_x conftest$ac_exeext; then
20679 - eval "$as_ac_var=yes"
20680 +if ac_fn_c_try_compile "$LINENO"; then :
20682 +$as_echo "#define HAVE_CHROOT 1" >>confdefs.h
20684 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20685 +$as_echo "yes" >&6; }
20686 else
20687 - echo "$as_me: failed program was:" >&5
20688 -sed 's/^/| /' conftest.$ac_ext >&5
20689 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20690 +$as_echo "no" >&6; }
20692 - eval "$as_ac_var=no"
20694 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20695 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for link" >&5
20696 +$as_echo_n "checking for link... " >&6; }
20697 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20698 +/* end confdefs.h. */
20699 +#include <unistd.h>
20700 +int
20701 +main ()
20703 +void *x=link
20705 + return 0;
20707 +_ACEOF
20708 +if ac_fn_c_try_compile "$LINENO"; then :
20710 +$as_echo "#define HAVE_LINK 1" >>confdefs.h
20712 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20713 +$as_echo "yes" >&6; }
20714 +else
20715 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20716 +$as_echo "no" >&6; }
20718 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20719 - conftest$ac_exeext conftest.$ac_ext
20721 -ac_res=`eval echo '${'$as_ac_var'}'`
20722 - { echo "$as_me:$LINENO: result: $ac_res" >&5
20723 -echo "${ECHO_T}$ac_res" >&6; }
20724 -if test `eval echo '${'$as_ac_var'}'` = yes; then
20725 - cat >>confdefs.h <<_ACEOF
20726 -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20727 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20728 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for symlink" >&5
20729 +$as_echo_n "checking for symlink... " >&6; }
20730 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20731 +/* end confdefs.h. */
20732 +#include <unistd.h>
20733 +int
20734 +main ()
20736 +void *x=symlink
20738 + return 0;
20740 _ACEOF
20741 +if ac_fn_c_try_compile "$LINENO"; then :
20743 +$as_echo "#define HAVE_SYMLINK 1" >>confdefs.h
20745 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20746 +$as_echo "yes" >&6; }
20747 +else
20748 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20749 +$as_echo "no" >&6; }
20752 -done
20753 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20754 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fchdir" >&5
20755 +$as_echo_n "checking for fchdir... " >&6; }
20756 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20757 +/* end confdefs.h. */
20758 +#include <unistd.h>
20759 +int
20760 +main ()
20762 +void *x=fchdir
20764 + return 0;
20766 +_ACEOF
20767 +if ac_fn_c_try_compile "$LINENO"; then :
20769 +$as_echo "#define HAVE_FCHDIR 1" >>confdefs.h
20771 -# checks for structures
20772 -{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20773 -echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
20774 -if test "${ac_cv_header_time+set}" = set; then
20775 - echo $ECHO_N "(cached) $ECHO_C" >&6
20776 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20777 +$as_echo "yes" >&6; }
20778 else
20779 - cat >conftest.$ac_ext <<_ACEOF
20780 -/* confdefs.h. */
20781 -_ACEOF
20782 -cat confdefs.h >>conftest.$ac_ext
20783 -cat >>conftest.$ac_ext <<_ACEOF
20784 -/* end confdefs.h. */
20785 -#include <sys/types.h>
20786 -#include <sys/time.h>
20787 -#include <time.h>
20788 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20789 +$as_echo "no" >&6; }
20792 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20793 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fsync" >&5
20794 +$as_echo_n "checking for fsync... " >&6; }
20795 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20796 +/* end confdefs.h. */
20797 +#include <unistd.h>
20799 main ()
20801 -if ((struct tm *) 0)
20802 -return 0;
20803 +void *x=fsync
20805 return 0;
20807 _ACEOF
20808 -rm -f conftest.$ac_objext
20809 -if { (ac_try="$ac_compile"
20810 -case "(($ac_try" in
20811 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20812 - *) ac_try_echo=$ac_try;;
20813 -esac
20814 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20815 - (eval "$ac_compile") 2>conftest.er1
20816 - ac_status=$?
20817 - grep -v '^ *+' conftest.er1 >conftest.err
20818 - rm -f conftest.er1
20819 - cat conftest.err >&5
20820 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
20821 - (exit $ac_status); } && {
20822 - test -z "$ac_c_werror_flag" ||
20823 - test ! -s conftest.err
20824 - } && test -s conftest.$ac_objext; then
20825 - ac_cv_header_time=yes
20826 +if ac_fn_c_try_compile "$LINENO"; then :
20828 +$as_echo "#define HAVE_FSYNC 1" >>confdefs.h
20830 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20831 +$as_echo "yes" >&6; }
20832 else
20833 - echo "$as_me: failed program was:" >&5
20834 -sed 's/^/| /' conftest.$ac_ext >&5
20835 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20836 +$as_echo "no" >&6; }
20838 - ac_cv_header_time=no
20841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20843 -{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20844 -echo "${ECHO_T}$ac_cv_header_time" >&6; }
20845 -if test $ac_cv_header_time = yes; then
20847 -cat >>confdefs.h <<\_ACEOF
20848 -#define TIME_WITH_SYS_TIME 1
20849 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fdatasync" >&5
20850 +$as_echo_n "checking for fdatasync... " >&6; }
20851 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20852 +/* end confdefs.h. */
20853 +#include <unistd.h>
20854 +int
20855 +main ()
20857 +void *x=fdatasync
20859 + return 0;
20861 _ACEOF
20862 +if ac_fn_c_try_compile "$LINENO"; then :
20865 +$as_echo "#define HAVE_FDATASYNC 1" >>confdefs.h
20867 -{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20868 -echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
20869 -if test "${ac_cv_struct_tm+set}" = set; then
20870 - echo $ECHO_N "(cached) $ECHO_C" >&6
20871 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20872 +$as_echo "yes" >&6; }
20873 else
20874 - cat >conftest.$ac_ext <<_ACEOF
20875 -/* confdefs.h. */
20876 -_ACEOF
20877 -cat confdefs.h >>conftest.$ac_ext
20878 -cat >>conftest.$ac_ext <<_ACEOF
20879 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20880 +$as_echo "no" >&6; }
20883 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20885 +# On some systems (eg. FreeBSD 5), we would find a definition of the
20886 +# functions ctermid_r, setgroups in the library, but no prototype
20887 +# (e.g. because we use _XOPEN_SOURCE). See whether we can take their
20888 +# address to avoid compiler warnings and potential miscompilations
20889 +# because of the missing prototypes.
20891 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctermid_r" >&5
20892 +$as_echo_n "checking for ctermid_r... " >&6; }
20893 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20894 /* end confdefs.h. */
20895 -#include <sys/types.h>
20896 -#include <time.h>
20898 +#include "confdefs.h"
20899 +#include <stdio.h>
20902 main ()
20904 -struct tm tm;
20905 - int *p = &tm.tm_sec;
20906 - return !p;
20907 +void* p = ctermid_r
20909 return 0;
20911 _ACEOF
20912 -rm -f conftest.$ac_objext
20913 -if { (ac_try="$ac_compile"
20914 -case "(($ac_try" in
20915 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20916 - *) ac_try_echo=$ac_try;;
20917 -esac
20918 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20919 - (eval "$ac_compile") 2>conftest.er1
20920 - ac_status=$?
20921 - grep -v '^ *+' conftest.er1 >conftest.err
20922 - rm -f conftest.er1
20923 - cat conftest.err >&5
20924 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
20925 - (exit $ac_status); } && {
20926 - test -z "$ac_c_werror_flag" ||
20927 - test ! -s conftest.err
20928 - } && test -s conftest.$ac_objext; then
20929 - ac_cv_struct_tm=time.h
20930 -else
20931 - echo "$as_me: failed program was:" >&5
20932 -sed 's/^/| /' conftest.$ac_ext >&5
20934 - ac_cv_struct_tm=sys/time.h
20936 +if ac_fn_c_try_compile "$LINENO"; then :
20938 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20940 -{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20941 -echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
20942 -if test $ac_cv_struct_tm = sys/time.h; then
20943 +$as_echo "#define HAVE_CTERMID_R 1" >>confdefs.h
20945 -cat >>confdefs.h <<\_ACEOF
20946 -#define TM_IN_SYS_TIME 1
20947 -_ACEOF
20948 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20949 +$as_echo "yes" >&6; }
20950 +else
20951 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20952 +$as_echo "no" >&6; }
20955 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20957 -{ echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
20958 -echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
20959 -if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20960 - echo $ECHO_N "(cached) $ECHO_C" >&6
20961 -else
20962 - cat >conftest.$ac_ext <<_ACEOF
20963 -/* confdefs.h. */
20964 -_ACEOF
20965 -cat confdefs.h >>conftest.$ac_ext
20966 -cat >>conftest.$ac_ext <<_ACEOF
20967 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock" >&5
20968 +$as_echo_n "checking for flock... " >&6; }
20969 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20970 /* end confdefs.h. */
20971 -#include <sys/types.h>
20972 -#include <$ac_cv_struct_tm>
20974 +#include "confdefs.h"
20975 +#include <sys/file.h>
20978 main ()
20980 -static struct tm ac_aggr;
20981 -if (ac_aggr.tm_zone)
20982 -return 0;
20983 +void* p = flock
20985 return 0;
20987 _ACEOF
20988 -rm -f conftest.$ac_objext
20989 -if { (ac_try="$ac_compile"
20990 -case "(($ac_try" in
20991 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20992 - *) ac_try_echo=$ac_try;;
20993 -esac
20994 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20995 - (eval "$ac_compile") 2>conftest.er1
20996 - ac_status=$?
20997 - grep -v '^ *+' conftest.er1 >conftest.err
20998 - rm -f conftest.er1
20999 - cat conftest.err >&5
21000 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
21001 - (exit $ac_status); } && {
21002 - test -z "$ac_c_werror_flag" ||
21003 - test ! -s conftest.err
21004 - } && test -s conftest.$ac_objext; then
21005 - ac_cv_member_struct_tm_tm_zone=yes
21006 +if ac_fn_c_try_compile "$LINENO"; then :
21008 +$as_echo "#define HAVE_FLOCK 1" >>confdefs.h
21010 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21011 +$as_echo "yes" >&6; }
21012 else
21013 - echo "$as_me: failed program was:" >&5
21014 -sed 's/^/| /' conftest.$ac_ext >&5
21015 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21016 +$as_echo "no" >&6; }
21018 - cat >conftest.$ac_ext <<_ACEOF
21019 -/* confdefs.h. */
21020 -_ACEOF
21021 -cat confdefs.h >>conftest.$ac_ext
21022 -cat >>conftest.$ac_ext <<_ACEOF
21024 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21026 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize" >&5
21027 +$as_echo_n "checking for getpagesize... " >&6; }
21028 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21029 /* end confdefs.h. */
21030 -#include <sys/types.h>
21031 -#include <$ac_cv_struct_tm>
21033 +#include "confdefs.h"
21034 +#include <unistd.h>
21037 main ()
21039 -static struct tm ac_aggr;
21040 -if (sizeof ac_aggr.tm_zone)
21041 -return 0;
21042 +void* p = getpagesize
21044 return 0;
21046 _ACEOF
21047 -rm -f conftest.$ac_objext
21048 -if { (ac_try="$ac_compile"
21049 -case "(($ac_try" in
21050 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21051 - *) ac_try_echo=$ac_try;;
21052 -esac
21053 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21054 - (eval "$ac_compile") 2>conftest.er1
21055 - ac_status=$?
21056 - grep -v '^ *+' conftest.er1 >conftest.err
21057 - rm -f conftest.er1
21058 - cat conftest.err >&5
21059 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
21060 - (exit $ac_status); } && {
21061 - test -z "$ac_c_werror_flag" ||
21062 - test ! -s conftest.err
21063 - } && test -s conftest.$ac_objext; then
21064 - ac_cv_member_struct_tm_tm_zone=yes
21065 -else
21066 - echo "$as_me: failed program was:" >&5
21067 -sed 's/^/| /' conftest.$ac_ext >&5
21068 +if ac_fn_c_try_compile "$LINENO"; then :
21070 - ac_cv_member_struct_tm_tm_zone=no
21072 +$as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
21074 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21076 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21077 +$as_echo "yes" >&6; }
21078 +else
21079 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21080 +$as_echo "no" >&6; }
21082 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21084 -{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21085 -echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
21086 -if test $ac_cv_member_struct_tm_tm_zone = yes; then
21088 -cat >>confdefs.h <<_ACEOF
21089 -#define HAVE_STRUCT_TM_TM_ZONE 1
21090 -_ACEOF
21091 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21093 +for ac_prog in true
21095 + # Extract the first word of "$ac_prog", so it can be a program name with args.
21096 +set dummy $ac_prog; ac_word=$2
21097 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21098 +$as_echo_n "checking for $ac_word... " >&6; }
21099 +if ${ac_cv_prog_TRUE+:} false; then :
21100 + $as_echo_n "(cached) " >&6
21101 +else
21102 + if test -n "$TRUE"; then
21103 + ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
21104 +else
21105 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21106 +for as_dir in $PATH
21108 + IFS=$as_save_IFS
21109 + test -z "$as_dir" && as_dir=.
21110 + for ac_exec_ext in '' $ac_executable_extensions; do
21111 + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21112 + ac_cv_prog_TRUE="$ac_prog"
21113 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21114 + break 2
21115 + fi
21116 +done
21117 + done
21118 +IFS=$as_save_IFS
21122 +TRUE=$ac_cv_prog_TRUE
21123 +if test -n "$TRUE"; then
21124 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUE" >&5
21125 +$as_echo "$TRUE" >&6; }
21126 +else
21127 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21128 +$as_echo "no" >&6; }
21131 -if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21133 -cat >>confdefs.h <<\_ACEOF
21134 -#define HAVE_TM_ZONE 1
21135 -_ACEOF
21136 + test -n "$TRUE" && break
21137 +done
21138 +test -n "$TRUE" || TRUE="/bin/true"
21141 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lc" >&5
21142 +$as_echo_n "checking for inet_aton in -lc... " >&6; }
21143 +if ${ac_cv_lib_c_inet_aton+:} false; then :
21144 + $as_echo_n "(cached) " >&6
21145 else
21146 - { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
21147 -echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
21148 -if test "${ac_cv_have_decl_tzname+set}" = set; then
21149 - echo $ECHO_N "(cached) $ECHO_C" >&6
21150 -else
21151 - cat >conftest.$ac_ext <<_ACEOF
21152 -/* confdefs.h. */
21153 -_ACEOF
21154 -cat confdefs.h >>conftest.$ac_ext
21155 -cat >>conftest.$ac_ext <<_ACEOF
21156 + ac_check_lib_save_LIBS=$LIBS
21157 +LIBS="-lc $LIBS"
21158 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21159 /* end confdefs.h. */
21160 -#include <time.h>
21162 +/* Override any GCC internal prototype to avoid an error.
21163 + Use char because int might match the return type of a GCC
21164 + builtin and then its argument prototype would still apply. */
21165 +#ifdef __cplusplus
21166 +extern "C"
21167 +#endif
21168 +char inet_aton ();
21170 main ()
21172 -#ifndef tzname
21173 - (void) tzname;
21174 -#endif
21176 +return inet_aton ();
21178 return 0;
21180 _ACEOF
21181 -rm -f conftest.$ac_objext
21182 -if { (ac_try="$ac_compile"
21183 -case "(($ac_try" in
21184 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21185 - *) ac_try_echo=$ac_try;;
21186 -esac
21187 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21188 - (eval "$ac_compile") 2>conftest.er1
21189 - ac_status=$?
21190 - grep -v '^ *+' conftest.er1 >conftest.err
21191 - rm -f conftest.er1
21192 - cat conftest.err >&5
21193 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
21194 - (exit $ac_status); } && {
21195 - test -z "$ac_c_werror_flag" ||
21196 - test ! -s conftest.err
21197 - } && test -s conftest.$ac_objext; then
21198 - ac_cv_have_decl_tzname=yes
21199 +if ac_fn_c_try_link "$LINENO"; then :
21200 + ac_cv_lib_c_inet_aton=yes
21201 else
21202 - echo "$as_me: failed program was:" >&5
21203 -sed 's/^/| /' conftest.$ac_ext >&5
21205 - ac_cv_have_decl_tzname=no
21206 + ac_cv_lib_c_inet_aton=no
21209 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21210 +rm -f core conftest.err conftest.$ac_objext \
21211 + conftest$ac_exeext conftest.$ac_ext
21212 +LIBS=$ac_check_lib_save_LIBS
21214 -{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
21215 -echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
21216 -if test $ac_cv_have_decl_tzname = yes; then
21218 -cat >>confdefs.h <<_ACEOF
21219 -#define HAVE_DECL_TZNAME 1
21220 -_ACEOF
21223 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_inet_aton" >&5
21224 +$as_echo "$ac_cv_lib_c_inet_aton" >&6; }
21225 +if test "x$ac_cv_lib_c_inet_aton" = xyes; then :
21226 + $ac_cv_prog_TRUE
21227 else
21228 - cat >>confdefs.h <<_ACEOF
21229 -#define HAVE_DECL_TZNAME 0
21230 -_ACEOF
21236 - { echo "$as_me:$LINENO: checking for tzname" >&5
21237 -echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
21238 -if test "${ac_cv_var_tzname+set}" = set; then
21239 - echo $ECHO_N "(cached) $ECHO_C" >&6
21240 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
21241 +$as_echo_n "checking for inet_aton in -lresolv... " >&6; }
21242 +if ${ac_cv_lib_resolv_inet_aton+:} false; then :
21243 + $as_echo_n "(cached) " >&6
21244 else
21245 - cat >conftest.$ac_ext <<_ACEOF
21246 -/* confdefs.h. */
21247 -_ACEOF
21248 -cat confdefs.h >>conftest.$ac_ext
21249 -cat >>conftest.$ac_ext <<_ACEOF
21250 + ac_check_lib_save_LIBS=$LIBS
21251 +LIBS="-lresolv $LIBS"
21252 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21253 /* end confdefs.h. */
21254 -#include <time.h>
21255 -#if !HAVE_DECL_TZNAME
21256 -extern char *tzname[];
21257 -#endif
21259 +/* Override any GCC internal prototype to avoid an error.
21260 + Use char because int might match the return type of a GCC
21261 + builtin and then its argument prototype would still apply. */
21262 +#ifdef __cplusplus
21263 +extern "C"
21264 +#endif
21265 +char inet_aton ();
21267 main ()
21269 -return tzname[0][0];
21270 +return inet_aton ();
21272 return 0;
21274 _ACEOF
21275 -rm -f conftest.$ac_objext conftest$ac_exeext
21276 -if { (ac_try="$ac_link"
21277 -case "(($ac_try" in
21278 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21279 - *) ac_try_echo=$ac_try;;
21280 -esac
21281 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21282 - (eval "$ac_link") 2>conftest.er1
21283 - ac_status=$?
21284 - grep -v '^ *+' conftest.er1 >conftest.err
21285 - rm -f conftest.er1
21286 - cat conftest.err >&5
21287 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
21288 - (exit $ac_status); } && {
21289 - test -z "$ac_c_werror_flag" ||
21290 - test ! -s conftest.err
21291 - } && test -s conftest$ac_exeext &&
21292 - $as_test_x conftest$ac_exeext; then
21293 - ac_cv_var_tzname=yes
21294 +if ac_fn_c_try_link "$LINENO"; then :
21295 + ac_cv_lib_resolv_inet_aton=yes
21296 else
21297 - echo "$as_me: failed program was:" >&5
21298 -sed 's/^/| /' conftest.$ac_ext >&5
21300 - ac_cv_var_tzname=no
21301 + ac_cv_lib_resolv_inet_aton=no
21303 +rm -f core conftest.err conftest.$ac_objext \
21304 + conftest$ac_exeext conftest.$ac_ext
21305 +LIBS=$ac_check_lib_save_LIBS
21307 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
21308 +$as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
21309 +if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then :
21310 + cat >>confdefs.h <<_ACEOF
21311 +#define HAVE_LIBRESOLV 1
21312 +_ACEOF
21314 + LIBS="-lresolv $LIBS"
21316 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21317 - conftest$ac_exeext conftest.$ac_ext
21319 -{ echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21320 -echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
21321 - if test $ac_cv_var_tzname = yes; then
21323 -cat >>confdefs.h <<\_ACEOF
21324 -#define HAVE_TZNAME 1
21325 -_ACEOF
21327 - fi
21330 -{ echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
21331 -echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
21332 -if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
21333 - echo $ECHO_N "(cached) $ECHO_C" >&6
21334 -else
21335 - cat >conftest.$ac_ext <<_ACEOF
21336 -/* confdefs.h. */
21337 -_ACEOF
21338 -cat confdefs.h >>conftest.$ac_ext
21339 -cat >>conftest.$ac_ext <<_ACEOF
21340 -/* end confdefs.h. */
21341 -$ac_includes_default
21342 -int
21343 -main ()
21345 -static struct stat ac_aggr;
21346 -if (ac_aggr.st_rdev)
21347 -return 0;
21349 - return 0;
21351 -_ACEOF
21352 -rm -f conftest.$ac_objext
21353 -if { (ac_try="$ac_compile"
21354 -case "(($ac_try" in
21355 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21356 - *) ac_try_echo=$ac_try;;
21358 +case $ac_sys_system/$ac_sys_release in
21359 +Darwin/*)
21360 + _CUR_CFLAGS="${CFLAGS}"
21361 + _CUR_LDFLAGS="${LDFLAGS}"
21362 + CFLAGS="${CFLAGS} -Wl,-search_paths_first"
21363 + LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
21364 + ;;
21365 esac
21366 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21367 - (eval "$ac_compile") 2>conftest.er1
21368 - ac_status=$?
21369 - grep -v '^ *+' conftest.er1 >conftest.err
21370 - rm -f conftest.er1
21371 - cat conftest.err >&5
21372 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
21373 - (exit $ac_status); } && {
21374 - test -z "$ac_c_werror_flag" ||
21375 - test ! -s conftest.err
21376 - } && test -s conftest.$ac_objext; then
21377 - ac_cv_member_struct_stat_st_rdev=yes
21378 -else
21379 - echo "$as_me: failed program was:" >&5
21380 -sed 's/^/| /' conftest.$ac_ext >&5
21382 - cat >conftest.$ac_ext <<_ACEOF
21383 -/* confdefs.h. */
21384 -_ACEOF
21385 -cat confdefs.h >>conftest.$ac_ext
21386 -cat >>conftest.$ac_ext <<_ACEOF
21387 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5
21388 +$as_echo_n "checking for inflateCopy in -lz... " >&6; }
21389 +if ${ac_cv_lib_z_inflateCopy+:} false; then :
21390 + $as_echo_n "(cached) " >&6
21391 +else
21392 + ac_check_lib_save_LIBS=$LIBS
21393 +LIBS="-lz $LIBS"
21394 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21395 /* end confdefs.h. */
21396 -$ac_includes_default
21398 +/* Override any GCC internal prototype to avoid an error.
21399 + Use char because int might match the return type of a GCC
21400 + builtin and then its argument prototype would still apply. */
21401 +#ifdef __cplusplus
21402 +extern "C"
21403 +#endif
21404 +char inflateCopy ();
21406 main ()
21408 -static struct stat ac_aggr;
21409 -if (sizeof ac_aggr.st_rdev)
21410 -return 0;
21411 +return inflateCopy ();
21413 return 0;
21415 _ACEOF
21416 -rm -f conftest.$ac_objext
21417 -if { (ac_try="$ac_compile"
21418 -case "(($ac_try" in
21419 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21420 - *) ac_try_echo=$ac_try;;
21421 -esac
21422 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21423 - (eval "$ac_compile") 2>conftest.er1
21424 - ac_status=$?
21425 - grep -v '^ *+' conftest.er1 >conftest.err
21426 - rm -f conftest.er1
21427 - cat conftest.err >&5
21428 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
21429 - (exit $ac_status); } && {
21430 - test -z "$ac_c_werror_flag" ||
21431 - test ! -s conftest.err
21432 - } && test -s conftest.$ac_objext; then
21433 - ac_cv_member_struct_stat_st_rdev=yes
21434 +if ac_fn_c_try_link "$LINENO"; then :
21435 + ac_cv_lib_z_inflateCopy=yes
21436 else
21437 - echo "$as_me: failed program was:" >&5
21438 -sed 's/^/| /' conftest.$ac_ext >&5
21440 - ac_cv_member_struct_stat_st_rdev=no
21441 + ac_cv_lib_z_inflateCopy=no
21444 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21445 +rm -f core conftest.err conftest.$ac_objext \
21446 + conftest$ac_exeext conftest.$ac_ext
21447 +LIBS=$ac_check_lib_save_LIBS
21449 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5
21450 +$as_echo "$ac_cv_lib_z_inflateCopy" >&6; }
21451 +if test "x$ac_cv_lib_z_inflateCopy" = xyes; then :
21453 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21455 -{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
21456 -echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
21457 -if test $ac_cv_member_struct_stat_st_rdev = yes; then
21458 +$as_echo "#define HAVE_ZLIB_COPY 1" >>confdefs.h
21460 -cat >>confdefs.h <<_ACEOF
21461 -#define HAVE_STRUCT_STAT_ST_RDEV 1
21462 -_ACEOF
21467 +case $ac_sys_system/$ac_sys_release in
21468 +Darwin/*)
21469 + CFLAGS="${_CUR_CFLAGS}"
21470 + LDFLAGS="${_CUR_LDFLAGS}"
21471 + ;;
21472 +esac
21474 -{ echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
21475 -echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
21476 -if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
21477 - echo $ECHO_N "(cached) $ECHO_C" >&6
21478 -else
21479 - cat >conftest.$ac_ext <<_ACEOF
21480 -/* confdefs.h. */
21481 -_ACEOF
21482 -cat confdefs.h >>conftest.$ac_ext
21483 -cat >>conftest.$ac_ext <<_ACEOF
21484 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for hstrerror" >&5
21485 +$as_echo_n "checking for hstrerror... " >&6; }
21486 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21487 /* end confdefs.h. */
21488 -$ac_includes_default
21490 +#include "confdefs.h"
21491 +#include <netdb.h>
21494 main ()
21496 -static struct stat ac_aggr;
21497 -if (ac_aggr.st_blksize)
21498 -return 0;
21499 +void* p = hstrerror; hstrerror(0)
21501 return 0;
21503 _ACEOF
21504 -rm -f conftest.$ac_objext
21505 -if { (ac_try="$ac_compile"
21506 -case "(($ac_try" in
21507 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21508 - *) ac_try_echo=$ac_try;;
21509 -esac
21510 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21511 - (eval "$ac_compile") 2>conftest.er1
21512 - ac_status=$?
21513 - grep -v '^ *+' conftest.er1 >conftest.err
21514 - rm -f conftest.er1
21515 - cat conftest.err >&5
21516 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
21517 - (exit $ac_status); } && {
21518 - test -z "$ac_c_werror_flag" ||
21519 - test ! -s conftest.err
21520 - } && test -s conftest.$ac_objext; then
21521 - ac_cv_member_struct_stat_st_blksize=yes
21522 +if ac_fn_c_try_link "$LINENO"; then :
21524 +$as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h
21526 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21527 +$as_echo "yes" >&6; }
21528 else
21529 - echo "$as_me: failed program was:" >&5
21530 -sed 's/^/| /' conftest.$ac_ext >&5
21531 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21532 +$as_echo "no" >&6; }
21534 - cat >conftest.$ac_ext <<_ACEOF
21535 -/* confdefs.h. */
21536 -_ACEOF
21537 -cat confdefs.h >>conftest.$ac_ext
21538 -cat >>conftest.$ac_ext <<_ACEOF
21540 +rm -f core conftest.err conftest.$ac_objext \
21541 + conftest$ac_exeext conftest.$ac_ext
21543 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton" >&5
21544 +$as_echo_n "checking for inet_aton... " >&6; }
21545 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21546 /* end confdefs.h. */
21547 -$ac_includes_default
21549 +#include "confdefs.h"
21550 +#include <sys/types.h>
21551 +#include <sys/socket.h>
21552 +#include <netinet/in.h>
21553 +#include <arpa/inet.h>
21556 main ()
21558 -static struct stat ac_aggr;
21559 -if (sizeof ac_aggr.st_blksize)
21560 -return 0;
21561 +void* p = inet_aton;inet_aton(0,0)
21563 return 0;
21565 _ACEOF
21566 -rm -f conftest.$ac_objext
21567 -if { (ac_try="$ac_compile"
21568 -case "(($ac_try" in
21569 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21570 - *) ac_try_echo=$ac_try;;
21571 -esac
21572 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21573 - (eval "$ac_compile") 2>conftest.er1
21574 - ac_status=$?
21575 - grep -v '^ *+' conftest.er1 >conftest.err
21576 - rm -f conftest.er1
21577 - cat conftest.err >&5
21578 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
21579 - (exit $ac_status); } && {
21580 - test -z "$ac_c_werror_flag" ||
21581 - test ! -s conftest.err
21582 - } && test -s conftest.$ac_objext; then
21583 - ac_cv_member_struct_stat_st_blksize=yes
21584 -else
21585 - echo "$as_me: failed program was:" >&5
21586 -sed 's/^/| /' conftest.$ac_ext >&5
21587 +if ac_fn_c_try_link "$LINENO"; then :
21589 - ac_cv_member_struct_stat_st_blksize=no
21591 +$as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
21593 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21595 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21596 +$as_echo "yes" >&6; }
21597 +else
21598 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21599 +$as_echo "no" >&6; }
21601 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21603 -{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
21604 -echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
21605 -if test $ac_cv_member_struct_stat_st_blksize = yes; then
21607 -cat >>confdefs.h <<_ACEOF
21608 -#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
21609 -_ACEOF
21610 +rm -f core conftest.err conftest.$ac_objext \
21611 + conftest$ac_exeext conftest.$ac_ext
21613 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_pton" >&5
21614 +$as_echo_n "checking for inet_pton... " >&6; }
21615 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21616 +/* end confdefs.h. */
21619 +#include "confdefs.h"
21620 +#include <sys/types.h>
21621 +#include <sys/socket.h>
21622 +#include <netinet/in.h>
21623 +#include <arpa/inet.h>
21625 -{ echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
21626 -echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6; }
21627 -if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
21628 - echo $ECHO_N "(cached) $ECHO_C" >&6
21629 -else
21630 - cat >conftest.$ac_ext <<_ACEOF
21631 -/* confdefs.h. */
21632 -_ACEOF
21633 -cat confdefs.h >>conftest.$ac_ext
21634 -cat >>conftest.$ac_ext <<_ACEOF
21635 -/* end confdefs.h. */
21636 -$ac_includes_default
21638 main ()
21640 -static struct stat ac_aggr;
21641 -if (ac_aggr.st_flags)
21642 -return 0;
21643 +void* p = inet_pton
21645 return 0;
21647 _ACEOF
21648 -rm -f conftest.$ac_objext
21649 -if { (ac_try="$ac_compile"
21650 -case "(($ac_try" in
21651 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21652 - *) ac_try_echo=$ac_try;;
21653 -esac
21654 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21655 - (eval "$ac_compile") 2>conftest.er1
21656 - ac_status=$?
21657 - grep -v '^ *+' conftest.er1 >conftest.err
21658 - rm -f conftest.er1
21659 - cat conftest.err >&5
21660 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
21661 - (exit $ac_status); } && {
21662 - test -z "$ac_c_werror_flag" ||
21663 - test ! -s conftest.err
21664 - } && test -s conftest.$ac_objext; then
21665 - ac_cv_member_struct_stat_st_flags=yes
21666 +if ac_fn_c_try_compile "$LINENO"; then :
21668 +$as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
21670 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21671 +$as_echo "yes" >&6; }
21672 else
21673 - echo "$as_me: failed program was:" >&5
21674 -sed 's/^/| /' conftest.$ac_ext >&5
21675 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21676 +$as_echo "no" >&6; }
21678 - cat >conftest.$ac_ext <<_ACEOF
21679 -/* confdefs.h. */
21680 -_ACEOF
21681 -cat confdefs.h >>conftest.$ac_ext
21682 -cat >>conftest.$ac_ext <<_ACEOF
21684 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21686 +# On some systems, setgroups is in unistd.h, on others, in grp.h
21687 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for setgroups" >&5
21688 +$as_echo_n "checking for setgroups... " >&6; }
21689 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21690 /* end confdefs.h. */
21691 -$ac_includes_default
21693 +#include "confdefs.h"
21694 +#include <unistd.h>
21695 +#ifdef HAVE_GRP_H
21696 +#include <grp.h>
21697 +#endif
21700 main ()
21702 -static struct stat ac_aggr;
21703 -if (sizeof ac_aggr.st_flags)
21704 -return 0;
21705 +void* p = setgroups
21707 return 0;
21709 _ACEOF
21710 -rm -f conftest.$ac_objext
21711 -if { (ac_try="$ac_compile"
21712 -case "(($ac_try" in
21713 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21714 - *) ac_try_echo=$ac_try;;
21715 -esac
21716 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21717 - (eval "$ac_compile") 2>conftest.er1
21718 - ac_status=$?
21719 - grep -v '^ *+' conftest.er1 >conftest.err
21720 - rm -f conftest.er1
21721 - cat conftest.err >&5
21722 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
21723 - (exit $ac_status); } && {
21724 - test -z "$ac_c_werror_flag" ||
21725 - test ! -s conftest.err
21726 - } && test -s conftest.$ac_objext; then
21727 - ac_cv_member_struct_stat_st_flags=yes
21728 +if ac_fn_c_try_compile "$LINENO"; then :
21730 +$as_echo "#define HAVE_SETGROUPS 1" >>confdefs.h
21732 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21733 +$as_echo "yes" >&6; }
21734 else
21735 - echo "$as_me: failed program was:" >&5
21736 -sed 's/^/| /' conftest.$ac_ext >&5
21737 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21738 +$as_echo "no" >&6; }
21740 - ac_cv_member_struct_stat_st_flags=no
21743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21746 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21748 -{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
21749 -echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6; }
21750 -if test $ac_cv_member_struct_stat_st_flags = yes; then
21751 +# check for openpty and forkpty
21753 -cat >>confdefs.h <<_ACEOF
21754 -#define HAVE_STRUCT_STAT_ST_FLAGS 1
21755 +for ac_func in openpty
21756 +do :
21757 + ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty"
21758 +if test "x$ac_cv_func_openpty" = xyes; then :
21759 + cat >>confdefs.h <<_ACEOF
21760 +#define HAVE_OPENPTY 1
21761 _ACEOF
21766 -{ echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
21767 -echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6; }
21768 -if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
21769 - echo $ECHO_N "(cached) $ECHO_C" >&6
21770 else
21771 - cat >conftest.$ac_ext <<_ACEOF
21772 -/* confdefs.h. */
21773 -_ACEOF
21774 -cat confdefs.h >>conftest.$ac_ext
21775 -cat >>conftest.$ac_ext <<_ACEOF
21776 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
21777 +$as_echo_n "checking for openpty in -lutil... " >&6; }
21778 +if ${ac_cv_lib_util_openpty+:} false; then :
21779 + $as_echo_n "(cached) " >&6
21780 +else
21781 + ac_check_lib_save_LIBS=$LIBS
21782 +LIBS="-lutil $LIBS"
21783 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21784 /* end confdefs.h. */
21785 -$ac_includes_default
21787 +/* Override any GCC internal prototype to avoid an error.
21788 + Use char because int might match the return type of a GCC
21789 + builtin and then its argument prototype would still apply. */
21790 +#ifdef __cplusplus
21791 +extern "C"
21792 +#endif
21793 +char openpty ();
21795 main ()
21797 -static struct stat ac_aggr;
21798 -if (ac_aggr.st_gen)
21799 -return 0;
21800 +return openpty ();
21802 return 0;
21804 _ACEOF
21805 -rm -f conftest.$ac_objext
21806 -if { (ac_try="$ac_compile"
21807 -case "(($ac_try" in
21808 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21809 - *) ac_try_echo=$ac_try;;
21810 -esac
21811 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21812 - (eval "$ac_compile") 2>conftest.er1
21813 - ac_status=$?
21814 - grep -v '^ *+' conftest.er1 >conftest.err
21815 - rm -f conftest.er1
21816 - cat conftest.err >&5
21817 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
21818 - (exit $ac_status); } && {
21819 - test -z "$ac_c_werror_flag" ||
21820 - test ! -s conftest.err
21821 - } && test -s conftest.$ac_objext; then
21822 - ac_cv_member_struct_stat_st_gen=yes
21823 +if ac_fn_c_try_link "$LINENO"; then :
21824 + ac_cv_lib_util_openpty=yes
21825 else
21826 - echo "$as_me: failed program was:" >&5
21827 -sed 's/^/| /' conftest.$ac_ext >&5
21829 - cat >conftest.$ac_ext <<_ACEOF
21830 -/* confdefs.h. */
21831 -_ACEOF
21832 -cat confdefs.h >>conftest.$ac_ext
21833 -cat >>conftest.$ac_ext <<_ACEOF
21834 + ac_cv_lib_util_openpty=no
21836 +rm -f core conftest.err conftest.$ac_objext \
21837 + conftest$ac_exeext conftest.$ac_ext
21838 +LIBS=$ac_check_lib_save_LIBS
21840 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
21841 +$as_echo "$ac_cv_lib_util_openpty" >&6; }
21842 +if test "x$ac_cv_lib_util_openpty" = xyes; then :
21843 + $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h
21844 + LIBS="$LIBS -lutil"
21845 +else
21846 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lbsd" >&5
21847 +$as_echo_n "checking for openpty in -lbsd... " >&6; }
21848 +if ${ac_cv_lib_bsd_openpty+:} false; then :
21849 + $as_echo_n "(cached) " >&6
21850 +else
21851 + ac_check_lib_save_LIBS=$LIBS
21852 +LIBS="-lbsd $LIBS"
21853 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21854 /* end confdefs.h. */
21855 -$ac_includes_default
21857 +/* Override any GCC internal prototype to avoid an error.
21858 + Use char because int might match the return type of a GCC
21859 + builtin and then its argument prototype would still apply. */
21860 +#ifdef __cplusplus
21861 +extern "C"
21862 +#endif
21863 +char openpty ();
21865 main ()
21867 -static struct stat ac_aggr;
21868 -if (sizeof ac_aggr.st_gen)
21869 -return 0;
21870 +return openpty ();
21872 return 0;
21874 _ACEOF
21875 -rm -f conftest.$ac_objext
21876 -if { (ac_try="$ac_compile"
21877 -case "(($ac_try" in
21878 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21879 - *) ac_try_echo=$ac_try;;
21880 -esac
21881 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21882 - (eval "$ac_compile") 2>conftest.er1
21883 - ac_status=$?
21884 - grep -v '^ *+' conftest.er1 >conftest.err
21885 - rm -f conftest.er1
21886 - cat conftest.err >&5
21887 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
21888 - (exit $ac_status); } && {
21889 - test -z "$ac_c_werror_flag" ||
21890 - test ! -s conftest.err
21891 - } && test -s conftest.$ac_objext; then
21892 - ac_cv_member_struct_stat_st_gen=yes
21893 +if ac_fn_c_try_link "$LINENO"; then :
21894 + ac_cv_lib_bsd_openpty=yes
21895 else
21896 - echo "$as_me: failed program was:" >&5
21897 -sed 's/^/| /' conftest.$ac_ext >&5
21899 - ac_cv_member_struct_stat_st_gen=no
21900 + ac_cv_lib_bsd_openpty=no
21903 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21904 +rm -f core conftest.err conftest.$ac_objext \
21905 + conftest$ac_exeext conftest.$ac_ext
21906 +LIBS=$ac_check_lib_save_LIBS
21909 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21910 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_openpty" >&5
21911 +$as_echo "$ac_cv_lib_bsd_openpty" >&6; }
21912 +if test "x$ac_cv_lib_bsd_openpty" = xyes; then :
21913 + $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h
21914 + LIBS="$LIBS -lbsd"
21916 -{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
21917 -echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6; }
21918 -if test $ac_cv_member_struct_stat_st_gen = yes; then
21920 -cat >>confdefs.h <<_ACEOF
21921 -#define HAVE_STRUCT_STAT_ST_GEN 1
21922 -_ACEOF
21928 +done
21930 -{ echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
21931 -echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6; }
21932 -if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
21933 - echo $ECHO_N "(cached) $ECHO_C" >&6
21934 -else
21935 - cat >conftest.$ac_ext <<_ACEOF
21936 -/* confdefs.h. */
21937 +for ac_func in forkpty
21938 +do :
21939 + ac_fn_c_check_func "$LINENO" "forkpty" "ac_cv_func_forkpty"
21940 +if test "x$ac_cv_func_forkpty" = xyes; then :
21941 + cat >>confdefs.h <<_ACEOF
21942 +#define HAVE_FORKPTY 1
21943 _ACEOF
21944 -cat confdefs.h >>conftest.$ac_ext
21945 -cat >>conftest.$ac_ext <<_ACEOF
21947 +else
21948 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lutil" >&5
21949 +$as_echo_n "checking for forkpty in -lutil... " >&6; }
21950 +if ${ac_cv_lib_util_forkpty+:} false; then :
21951 + $as_echo_n "(cached) " >&6
21952 +else
21953 + ac_check_lib_save_LIBS=$LIBS
21954 +LIBS="-lutil $LIBS"
21955 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21956 /* end confdefs.h. */
21957 -$ac_includes_default
21959 +/* Override any GCC internal prototype to avoid an error.
21960 + Use char because int might match the return type of a GCC
21961 + builtin and then its argument prototype would still apply. */
21962 +#ifdef __cplusplus
21963 +extern "C"
21964 +#endif
21965 +char forkpty ();
21967 main ()
21969 -static struct stat ac_aggr;
21970 -if (ac_aggr.st_birthtime)
21971 -return 0;
21972 +return forkpty ();
21974 return 0;
21976 _ACEOF
21977 -rm -f conftest.$ac_objext
21978 -if { (ac_try="$ac_compile"
21979 -case "(($ac_try" in
21980 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21981 - *) ac_try_echo=$ac_try;;
21982 -esac
21983 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21984 - (eval "$ac_compile") 2>conftest.er1
21985 - ac_status=$?
21986 - grep -v '^ *+' conftest.er1 >conftest.err
21987 - rm -f conftest.er1
21988 - cat conftest.err >&5
21989 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
21990 - (exit $ac_status); } && {
21991 - test -z "$ac_c_werror_flag" ||
21992 - test ! -s conftest.err
21993 - } && test -s conftest.$ac_objext; then
21994 - ac_cv_member_struct_stat_st_birthtime=yes
21995 +if ac_fn_c_try_link "$LINENO"; then :
21996 + ac_cv_lib_util_forkpty=yes
21997 else
21998 - echo "$as_me: failed program was:" >&5
21999 -sed 's/^/| /' conftest.$ac_ext >&5
22001 - cat >conftest.$ac_ext <<_ACEOF
22002 -/* confdefs.h. */
22003 -_ACEOF
22004 -cat confdefs.h >>conftest.$ac_ext
22005 -cat >>conftest.$ac_ext <<_ACEOF
22006 + ac_cv_lib_util_forkpty=no
22008 +rm -f core conftest.err conftest.$ac_objext \
22009 + conftest$ac_exeext conftest.$ac_ext
22010 +LIBS=$ac_check_lib_save_LIBS
22012 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_forkpty" >&5
22013 +$as_echo "$ac_cv_lib_util_forkpty" >&6; }
22014 +if test "x$ac_cv_lib_util_forkpty" = xyes; then :
22015 + $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h
22016 + LIBS="$LIBS -lutil"
22017 +else
22018 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lbsd" >&5
22019 +$as_echo_n "checking for forkpty in -lbsd... " >&6; }
22020 +if ${ac_cv_lib_bsd_forkpty+:} false; then :
22021 + $as_echo_n "(cached) " >&6
22022 +else
22023 + ac_check_lib_save_LIBS=$LIBS
22024 +LIBS="-lbsd $LIBS"
22025 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22026 /* end confdefs.h. */
22027 -$ac_includes_default
22029 +/* Override any GCC internal prototype to avoid an error.
22030 + Use char because int might match the return type of a GCC
22031 + builtin and then its argument prototype would still apply. */
22032 +#ifdef __cplusplus
22033 +extern "C"
22034 +#endif
22035 +char forkpty ();
22037 main ()
22039 -static struct stat ac_aggr;
22040 -if (sizeof ac_aggr.st_birthtime)
22041 -return 0;
22042 +return forkpty ();
22044 return 0;
22046 _ACEOF
22047 -rm -f conftest.$ac_objext
22048 -if { (ac_try="$ac_compile"
22049 -case "(($ac_try" in
22050 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22051 - *) ac_try_echo=$ac_try;;
22052 -esac
22053 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22054 - (eval "$ac_compile") 2>conftest.er1
22055 - ac_status=$?
22056 - grep -v '^ *+' conftest.er1 >conftest.err
22057 - rm -f conftest.er1
22058 - cat conftest.err >&5
22059 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
22060 - (exit $ac_status); } && {
22061 - test -z "$ac_c_werror_flag" ||
22062 - test ! -s conftest.err
22063 - } && test -s conftest.$ac_objext; then
22064 - ac_cv_member_struct_stat_st_birthtime=yes
22065 +if ac_fn_c_try_link "$LINENO"; then :
22066 + ac_cv_lib_bsd_forkpty=yes
22067 else
22068 - echo "$as_me: failed program was:" >&5
22069 -sed 's/^/| /' conftest.$ac_ext >&5
22070 + ac_cv_lib_bsd_forkpty=no
22072 +rm -f core conftest.err conftest.$ac_objext \
22073 + conftest$ac_exeext conftest.$ac_ext
22074 +LIBS=$ac_check_lib_save_LIBS
22076 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_forkpty" >&5
22077 +$as_echo "$ac_cv_lib_bsd_forkpty" >&6; }
22078 +if test "x$ac_cv_lib_bsd_forkpty" = xyes; then :
22079 + $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h
22080 + LIBS="$LIBS -lbsd"
22088 +done
22091 +# check for long file support functions
22092 +for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
22093 +do :
22094 + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22095 +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22096 +if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22097 + cat >>confdefs.h <<_ACEOF
22098 +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22099 +_ACEOF
22102 +done
22105 +ac_fn_c_check_func "$LINENO" "dup2" "ac_cv_func_dup2"
22106 +if test "x$ac_cv_func_dup2" = xyes; then :
22107 + $as_echo "#define HAVE_DUP2 1" >>confdefs.h
22109 +else
22110 + case " $LIBOBJS " in
22111 + *" dup2.$ac_objext "* ) ;;
22112 + *) LIBOBJS="$LIBOBJS dup2.$ac_objext"
22113 + ;;
22114 +esac
22116 - ac_cv_member_struct_stat_st_birthtime=no
22119 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22120 +ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
22121 +if test "x$ac_cv_func_getcwd" = xyes; then :
22122 + $as_echo "#define HAVE_GETCWD 1" >>confdefs.h
22124 +else
22125 + case " $LIBOBJS " in
22126 + *" getcwd.$ac_objext "* ) ;;
22127 + *) LIBOBJS="$LIBOBJS getcwd.$ac_objext"
22128 + ;;
22129 +esac
22133 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22134 +ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
22135 +if test "x$ac_cv_func_strdup" = xyes; then :
22136 + $as_echo "#define HAVE_STRDUP 1" >>confdefs.h
22138 +else
22139 + case " $LIBOBJS " in
22140 + *" strdup.$ac_objext "* ) ;;
22141 + *) LIBOBJS="$LIBOBJS strdup.$ac_objext"
22142 + ;;
22143 +esac
22146 -{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
22147 -echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6; }
22148 -if test $ac_cv_member_struct_stat_st_birthtime = yes; then
22150 -cat >>confdefs.h <<_ACEOF
22151 -#define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
22152 -_ACEOF
22153 +ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
22154 +if test "x$ac_cv_func_strerror" = xyes; then :
22155 + $as_echo "#define HAVE_STRERROR 1" >>confdefs.h
22157 +else
22158 + case " $LIBOBJS " in
22159 + *" strerror.$ac_objext "* ) ;;
22160 + *) LIBOBJS="$LIBOBJS strerror.$ac_objext"
22161 + ;;
22162 +esac
22166 -{ echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
22167 -echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
22168 -if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
22169 - echo $ECHO_N "(cached) $ECHO_C" >&6
22170 +ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
22171 +if test "x$ac_cv_func_memmove" = xyes; then :
22172 + $as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h
22174 else
22175 - cat >conftest.$ac_ext <<_ACEOF
22176 -/* confdefs.h. */
22177 + case " $LIBOBJS " in
22178 + *" memmove.$ac_objext "* ) ;;
22179 + *) LIBOBJS="$LIBOBJS memmove.$ac_objext"
22180 + ;;
22181 +esac
22186 +for ac_func in getpgrp
22187 +do :
22188 + ac_fn_c_check_func "$LINENO" "getpgrp" "ac_cv_func_getpgrp"
22189 +if test "x$ac_cv_func_getpgrp" = xyes; then :
22190 + cat >>confdefs.h <<_ACEOF
22191 +#define HAVE_GETPGRP 1
22192 _ACEOF
22193 -cat confdefs.h >>conftest.$ac_ext
22194 -cat >>conftest.$ac_ext <<_ACEOF
22195 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22196 /* end confdefs.h. */
22197 -$ac_includes_default
22198 +#include <unistd.h>
22200 main ()
22202 -static struct stat ac_aggr;
22203 -if (ac_aggr.st_blocks)
22204 -return 0;
22205 +getpgrp(0);
22207 return 0;
22209 _ACEOF
22210 -rm -f conftest.$ac_objext
22211 -if { (ac_try="$ac_compile"
22212 -case "(($ac_try" in
22213 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22214 - *) ac_try_echo=$ac_try;;
22215 -esac
22216 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22217 - (eval "$ac_compile") 2>conftest.er1
22218 - ac_status=$?
22219 - grep -v '^ *+' conftest.er1 >conftest.err
22220 - rm -f conftest.er1
22221 - cat conftest.err >&5
22222 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
22223 - (exit $ac_status); } && {
22224 - test -z "$ac_c_werror_flag" ||
22225 - test ! -s conftest.err
22226 - } && test -s conftest.$ac_objext; then
22227 - ac_cv_member_struct_stat_st_blocks=yes
22228 -else
22229 - echo "$as_me: failed program was:" >&5
22230 -sed 's/^/| /' conftest.$ac_ext >&5
22231 +if ac_fn_c_try_compile "$LINENO"; then :
22233 +$as_echo "#define GETPGRP_HAVE_ARG 1" >>confdefs.h
22235 - cat >conftest.$ac_ext <<_ACEOF
22236 -/* confdefs.h. */
22239 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22242 +done
22244 +for ac_func in setpgrp
22245 +do :
22246 + ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp"
22247 +if test "x$ac_cv_func_setpgrp" = xyes; then :
22248 + cat >>confdefs.h <<_ACEOF
22249 +#define HAVE_SETPGRP 1
22250 _ACEOF
22251 -cat confdefs.h >>conftest.$ac_ext
22252 -cat >>conftest.$ac_ext <<_ACEOF
22253 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22254 /* end confdefs.h. */
22255 -$ac_includes_default
22256 +#include <unistd.h>
22258 main ()
22260 -static struct stat ac_aggr;
22261 -if (sizeof ac_aggr.st_blocks)
22262 -return 0;
22263 +setpgrp(0,0);
22265 return 0;
22267 _ACEOF
22268 -rm -f conftest.$ac_objext
22269 -if { (ac_try="$ac_compile"
22270 -case "(($ac_try" in
22271 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22272 - *) ac_try_echo=$ac_try;;
22273 -esac
22274 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22275 - (eval "$ac_compile") 2>conftest.er1
22276 - ac_status=$?
22277 - grep -v '^ *+' conftest.er1 >conftest.err
22278 - rm -f conftest.er1
22279 - cat conftest.err >&5
22280 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
22281 - (exit $ac_status); } && {
22282 - test -z "$ac_c_werror_flag" ||
22283 - test ! -s conftest.err
22284 - } && test -s conftest.$ac_objext; then
22285 - ac_cv_member_struct_stat_st_blocks=yes
22286 -else
22287 - echo "$as_me: failed program was:" >&5
22288 -sed 's/^/| /' conftest.$ac_ext >&5
22289 +if ac_fn_c_try_compile "$LINENO"; then :
22291 - ac_cv_member_struct_stat_st_blocks=no
22293 +$as_echo "#define SETPGRP_HAVE_ARG 1" >>confdefs.h
22295 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22298 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22300 -{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
22301 -echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
22302 -if test $ac_cv_member_struct_stat_st_blocks = yes; then
22304 -cat >>confdefs.h <<_ACEOF
22305 -#define HAVE_STRUCT_STAT_ST_BLOCKS 1
22306 -_ACEOF
22309 -cat >>confdefs.h <<\_ACEOF
22310 -#define HAVE_ST_BLOCKS 1
22311 -_ACEOF
22313 -else
22314 - case " $LIBOBJS " in
22315 - *" fileblocks.$ac_objext "* ) ;;
22316 - *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
22317 - ;;
22318 -esac
22319 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22322 +done
22326 -{ echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
22327 -echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6; }
22328 -if test "${ac_cv_header_time_altzone+set}" = set; then
22329 - echo $ECHO_N "(cached) $ECHO_C" >&6
22330 -else
22331 - cat >conftest.$ac_ext <<_ACEOF
22332 -/* confdefs.h. */
22333 +for ac_func in gettimeofday
22334 +do :
22335 + ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
22336 +if test "x$ac_cv_func_gettimeofday" = xyes; then :
22337 + cat >>confdefs.h <<_ACEOF
22338 +#define HAVE_GETTIMEOFDAY 1
22339 _ACEOF
22340 -cat confdefs.h >>conftest.$ac_ext
22341 -cat >>conftest.$ac_ext <<_ACEOF
22342 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22343 /* end confdefs.h. */
22344 -#include <time.h>
22345 +#include <sys/time.h>
22347 main ()
22349 -return altzone;
22350 +gettimeofday((struct timeval*)0,(struct timezone*)0);
22352 return 0;
22354 _ACEOF
22355 -rm -f conftest.$ac_objext
22356 -if { (ac_try="$ac_compile"
22357 -case "(($ac_try" in
22358 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22359 - *) ac_try_echo=$ac_try;;
22360 -esac
22361 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22362 - (eval "$ac_compile") 2>conftest.er1
22363 - ac_status=$?
22364 - grep -v '^ *+' conftest.er1 >conftest.err
22365 - rm -f conftest.er1
22366 - cat conftest.err >&5
22367 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
22368 - (exit $ac_status); } && {
22369 - test -z "$ac_c_werror_flag" ||
22370 - test ! -s conftest.err
22371 - } && test -s conftest.$ac_objext; then
22372 - ac_cv_header_time_altzone=yes
22373 -else
22374 - echo "$as_me: failed program was:" >&5
22375 -sed 's/^/| /' conftest.$ac_ext >&5
22376 +if ac_fn_c_try_compile "$LINENO"; then :
22378 - ac_cv_header_time_altzone=no
22380 +else
22382 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22384 +$as_echo "#define GETTIMEOFDAY_NO_TZ 1" >>confdefs.h
22386 -{ echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
22387 -echo "${ECHO_T}$ac_cv_header_time_altzone" >&6; }
22388 -if test $ac_cv_header_time_altzone = yes; then
22390 -cat >>confdefs.h <<\_ACEOF
22391 -#define HAVE_ALTZONE 1
22392 -_ACEOF
22394 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22397 +done
22399 -was_it_defined=no
22400 -{ echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
22401 -echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6; }
22402 -cat >conftest.$ac_ext <<_ACEOF
22403 -/* confdefs.h. */
22404 -_ACEOF
22405 -cat confdefs.h >>conftest.$ac_ext
22406 -cat >>conftest.$ac_ext <<_ACEOF
22408 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for major" >&5
22409 +$as_echo_n "checking for major... " >&6; }
22410 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22411 /* end confdefs.h. */
22413 +#if defined(MAJOR_IN_MKDEV)
22414 +#include <sys/mkdev.h>
22415 +#elif defined(MAJOR_IN_SYSMACROS)
22416 +#include <sys/sysmacros.h>
22417 +#else
22418 #include <sys/types.h>
22419 -#include <sys/select.h>
22420 -#include <sys/time.h>
22421 +#endif
22424 main ()
22428 + makedev(major(0),minor(0));
22431 return 0;
22433 _ACEOF
22434 -rm -f conftest.$ac_objext
22435 -if { (ac_try="$ac_compile"
22436 -case "(($ac_try" in
22437 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22438 - *) ac_try_echo=$ac_try;;
22439 -esac
22440 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22441 - (eval "$ac_compile") 2>conftest.er1
22442 - ac_status=$?
22443 - grep -v '^ *+' conftest.er1 >conftest.err
22444 - rm -f conftest.er1
22445 - cat conftest.err >&5
22446 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
22447 - (exit $ac_status); } && {
22448 - test -z "$ac_c_werror_flag" ||
22449 - test ! -s conftest.err
22450 - } && test -s conftest.$ac_objext; then
22451 +if ac_fn_c_try_link "$LINENO"; then :
22454 -cat >>confdefs.h <<\_ACEOF
22455 -#define SYS_SELECT_WITH_SYS_TIME 1
22456 -_ACEOF
22457 +$as_echo "#define HAVE_DEVICE_MACROS 1" >>confdefs.h
22459 - was_it_defined=yes
22460 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22461 +$as_echo "yes" >&6; }
22463 else
22464 - echo "$as_me: failed program was:" >&5
22465 -sed 's/^/| /' conftest.$ac_ext >&5
22467 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22468 +$as_echo "no" >&6; }
22471 +rm -f core conftest.err conftest.$ac_objext \
22472 + conftest$ac_exeext conftest.$ac_ext
22474 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22475 -{ echo "$as_me:$LINENO: result: $was_it_defined" >&5
22476 -echo "${ECHO_T}$was_it_defined" >&6; }
22478 -{ echo "$as_me:$LINENO: checking for addrinfo" >&5
22479 -echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
22480 -if test "${ac_cv_struct_addrinfo+set}" = set; then
22481 - echo $ECHO_N "(cached) $ECHO_C" >&6
22482 -else
22483 - cat >conftest.$ac_ext <<_ACEOF
22484 -/* confdefs.h. */
22485 -_ACEOF
22486 -cat confdefs.h >>conftest.$ac_ext
22487 -cat >>conftest.$ac_ext <<_ACEOF
22488 +# On OSF/1 V5.1, getaddrinfo is available, but a define
22489 +# for [no]getaddrinfo in netdb.h.
22490 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
22491 +$as_echo_n "checking for getaddrinfo... " >&6; }
22492 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22493 /* end confdefs.h. */
22495 -# include <netdb.h>
22496 +#include <sys/types.h>
22497 +#include <sys/socket.h>
22498 +#include <netdb.h>
22499 +#include <stdio.h>
22502 main ()
22504 -struct addrinfo a
22506 +getaddrinfo(NULL, NULL, NULL, NULL);
22509 return 0;
22511 _ACEOF
22512 -rm -f conftest.$ac_objext
22513 -if { (ac_try="$ac_compile"
22514 -case "(($ac_try" in
22515 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22516 - *) ac_try_echo=$ac_try;;
22517 -esac
22518 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22519 - (eval "$ac_compile") 2>conftest.er1
22520 - ac_status=$?
22521 - grep -v '^ *+' conftest.er1 >conftest.err
22522 - rm -f conftest.er1
22523 - cat conftest.err >&5
22524 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
22525 - (exit $ac_status); } && {
22526 - test -z "$ac_c_werror_flag" ||
22527 - test ! -s conftest.err
22528 - } && test -s conftest.$ac_objext; then
22529 - ac_cv_struct_addrinfo=yes
22530 +if ac_fn_c_try_link "$LINENO"; then :
22532 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22533 +$as_echo "yes" >&6; }
22534 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking getaddrinfo bug" >&5
22535 +$as_echo_n "checking getaddrinfo bug... " >&6; }
22536 +if test "$cross_compiling" = yes; then :
22537 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy" >&5
22538 +$as_echo "buggy" >&6; }
22539 +buggygetaddrinfo=yes
22540 else
22541 - echo "$as_me: failed program was:" >&5
22542 -sed 's/^/| /' conftest.$ac_ext >&5
22543 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22544 +/* end confdefs.h. */
22546 - ac_cv_struct_addrinfo=no
22548 +#include <sys/types.h>
22549 +#include <netdb.h>
22550 +#include <string.h>
22551 +#include <sys/socket.h>
22552 +#include <netinet/in.h>
22554 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22556 +main()
22558 + int passive, gaierr, inet4 = 0, inet6 = 0;
22559 + struct addrinfo hints, *ai, *aitop;
22560 + char straddr[INET6_ADDRSTRLEN], strport[16];
22562 -{ echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
22563 -echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6; }
22564 -if test $ac_cv_struct_addrinfo = yes; then
22565 + for (passive = 0; passive <= 1; passive++) {
22566 + memset(&hints, 0, sizeof(hints));
22567 + hints.ai_family = AF_UNSPEC;
22568 + hints.ai_flags = passive ? AI_PASSIVE : 0;
22569 + hints.ai_socktype = SOCK_STREAM;
22570 + hints.ai_protocol = IPPROTO_TCP;
22571 + if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
22572 + (void)gai_strerror(gaierr);
22573 + goto bad;
22575 + for (ai = aitop; ai; ai = ai->ai_next) {
22576 + if (ai->ai_addr == NULL ||
22577 + ai->ai_addrlen == 0 ||
22578 + getnameinfo(ai->ai_addr, ai->ai_addrlen,
22579 + straddr, sizeof(straddr), strport, sizeof(strport),
22580 + NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
22581 + goto bad;
22583 + switch (ai->ai_family) {
22584 + case AF_INET:
22585 + if (strcmp(strport, "54321") != 0) {
22586 + goto bad;
22588 + if (passive) {
22589 + if (strcmp(straddr, "0.0.0.0") != 0) {
22590 + goto bad;
22592 + } else {
22593 + if (strcmp(straddr, "127.0.0.1") != 0) {
22594 + goto bad;
22597 + inet4++;
22598 + break;
22599 + case AF_INET6:
22600 + if (strcmp(strport, "54321") != 0) {
22601 + goto bad;
22603 + if (passive) {
22604 + if (strcmp(straddr, "::") != 0) {
22605 + goto bad;
22607 + } else {
22608 + if (strcmp(straddr, "::1") != 0) {
22609 + goto bad;
22612 + inet6++;
22613 + break;
22614 + case AF_UNSPEC:
22615 + goto bad;
22616 + break;
22617 + default:
22618 + /* another family support? */
22619 + break;
22624 + if (!(inet4 == 0 || inet4 == 2))
22625 + goto bad;
22626 + if (!(inet6 == 0 || inet6 == 2))
22627 + goto bad;
22629 + if (aitop)
22630 + freeaddrinfo(aitop);
22631 + exit(0);
22633 + bad:
22634 + if (aitop)
22635 + freeaddrinfo(aitop);
22636 + exit(1);
22639 -cat >>confdefs.h <<\_ACEOF
22640 -#define HAVE_ADDRINFO 1
22641 _ACEOF
22643 +if ac_fn_c_try_run "$LINENO"; then :
22644 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: good" >&5
22645 +$as_echo "good" >&6; }
22646 +buggygetaddrinfo=no
22647 +else
22648 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy" >&5
22649 +$as_echo "buggy" >&6; }
22650 +buggygetaddrinfo=yes
22652 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22653 + conftest.$ac_objext conftest.beam conftest.$ac_ext
22656 -{ echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
22657 -echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
22658 -if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
22659 - echo $ECHO_N "(cached) $ECHO_C" >&6
22660 else
22661 - cat >conftest.$ac_ext <<_ACEOF
22662 -/* confdefs.h. */
22663 -_ACEOF
22664 -cat confdefs.h >>conftest.$ac_ext
22665 -cat >>conftest.$ac_ext <<_ACEOF
22666 -/* end confdefs.h. */
22668 -# include <sys/types.h>
22669 -# include <sys/socket.h>
22670 -int
22671 -main ()
22673 -struct sockaddr_storage s
22675 - return 0;
22677 -_ACEOF
22678 -rm -f conftest.$ac_objext
22679 -if { (ac_try="$ac_compile"
22680 -case "(($ac_try" in
22681 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22682 - *) ac_try_echo=$ac_try;;
22683 -esac
22684 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22685 - (eval "$ac_compile") 2>conftest.er1
22686 - ac_status=$?
22687 - grep -v '^ *+' conftest.er1 >conftest.err
22688 - rm -f conftest.er1
22689 - cat conftest.err >&5
22690 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
22691 - (exit $ac_status); } && {
22692 - test -z "$ac_c_werror_flag" ||
22693 - test ! -s conftest.err
22694 - } && test -s conftest.$ac_objext; then
22695 - ac_cv_struct_sockaddr_storage=yes
22696 -else
22697 - echo "$as_me: failed program was:" >&5
22698 -sed 's/^/| /' conftest.$ac_ext >&5
22699 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22700 +$as_echo "no" >&6; }
22701 +buggygetaddrinfo=yes
22703 - ac_cv_struct_sockaddr_storage=no
22705 +rm -f core conftest.err conftest.$ac_objext \
22706 + conftest$ac_exeext conftest.$ac_ext
22708 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22710 +if test "$buggygetaddrinfo" = "yes"; then
22711 + if test "$ipv6" = "yes"; then
22712 + echo 'Fatal: You must get working getaddrinfo() function.'
22713 + echo ' or you can specify "--disable-ipv6"'.
22714 + exit 1
22715 + fi
22716 +else
22718 -{ echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
22719 -echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6; }
22720 -if test $ac_cv_struct_sockaddr_storage = yes; then
22721 +$as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
22723 -cat >>confdefs.h <<\_ACEOF
22724 -#define HAVE_SOCKADDR_STORAGE 1
22726 +for ac_func in getnameinfo
22727 +do :
22728 + ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
22729 +if test "x$ac_cv_func_getnameinfo" = xyes; then :
22730 + cat >>confdefs.h <<_ACEOF
22731 +#define HAVE_GETNAMEINFO 1
22732 _ACEOF
22736 -# checks for compiler characteristics
22737 +done
22740 -{ echo "$as_me:$LINENO: checking whether char is unsigned" >&5
22741 -echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; }
22742 -if test "${ac_cv_c_char_unsigned+set}" = set; then
22743 - echo $ECHO_N "(cached) $ECHO_C" >&6
22744 +# checks for structures
22745 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
22746 +$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
22747 +if ${ac_cv_header_time+:} false; then :
22748 + $as_echo_n "(cached) " >&6
22749 else
22750 - cat >conftest.$ac_ext <<_ACEOF
22751 -/* confdefs.h. */
22752 -_ACEOF
22753 -cat confdefs.h >>conftest.$ac_ext
22754 -cat >>conftest.$ac_ext <<_ACEOF
22755 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22756 /* end confdefs.h. */
22757 -$ac_includes_default
22758 +#include <sys/types.h>
22759 +#include <sys/time.h>
22760 +#include <time.h>
22763 main ()
22765 -static int test_array [1 - 2 * !(((char) -1) < 0)];
22766 -test_array [0] = 0
22768 +if ((struct tm *) 0)
22769 +return 0;
22771 return 0;
22773 _ACEOF
22774 -rm -f conftest.$ac_objext
22775 -if { (ac_try="$ac_compile"
22776 -case "(($ac_try" in
22777 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22778 - *) ac_try_echo=$ac_try;;
22779 -esac
22780 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22781 - (eval "$ac_compile") 2>conftest.er1
22782 - ac_status=$?
22783 - grep -v '^ *+' conftest.er1 >conftest.err
22784 - rm -f conftest.er1
22785 - cat conftest.err >&5
22786 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
22787 - (exit $ac_status); } && {
22788 - test -z "$ac_c_werror_flag" ||
22789 - test ! -s conftest.err
22790 - } && test -s conftest.$ac_objext; then
22791 - ac_cv_c_char_unsigned=no
22792 +if ac_fn_c_try_compile "$LINENO"; then :
22793 + ac_cv_header_time=yes
22794 else
22795 - echo "$as_me: failed program was:" >&5
22796 -sed 's/^/| /' conftest.$ac_ext >&5
22798 - ac_cv_c_char_unsigned=yes
22799 + ac_cv_header_time=no
22802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22804 -{ echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
22805 -echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; }
22806 -if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
22807 - cat >>confdefs.h <<\_ACEOF
22808 -#define __CHAR_UNSIGNED__ 1
22809 -_ACEOF
22810 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
22811 +$as_echo "$ac_cv_header_time" >&6; }
22812 +if test $ac_cv_header_time = yes; then
22814 +$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
22818 -{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22819 -echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
22820 -if test "${ac_cv_c_const+set}" = set; then
22821 - echo $ECHO_N "(cached) $ECHO_C" >&6
22822 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
22823 +$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
22824 +if ${ac_cv_struct_tm+:} false; then :
22825 + $as_echo_n "(cached) " >&6
22826 else
22827 - cat >conftest.$ac_ext <<_ACEOF
22828 -/* confdefs.h. */
22829 -_ACEOF
22830 -cat confdefs.h >>conftest.$ac_ext
22831 -cat >>conftest.$ac_ext <<_ACEOF
22832 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22833 /* end confdefs.h. */
22834 +#include <sys/types.h>
22835 +#include <time.h>
22838 main ()
22840 -/* FIXME: Include the comments suggested by Paul. */
22841 -#ifndef __cplusplus
22842 - /* Ultrix mips cc rejects this. */
22843 - typedef int charset[2];
22844 - const charset cs;
22845 - /* SunOS 4.1.1 cc rejects this. */
22846 - char const *const *pcpcc;
22847 - char **ppc;
22848 - /* NEC SVR4.0.2 mips cc rejects this. */
22849 - struct point {int x, y;};
22850 - static struct point const zero = {0,0};
22851 - /* AIX XL C 1.02.0.0 rejects this.
22852 - It does not let you subtract one const X* pointer from another in
22853 - an arm of an if-expression whose if-part is not a constant
22854 - expression */
22855 - const char *g = "string";
22856 - pcpcc = &g + (g ? g-g : 0);
22857 - /* HPUX 7.0 cc rejects these. */
22858 - ++pcpcc;
22859 - ppc = (char**) pcpcc;
22860 - pcpcc = (char const *const *) ppc;
22861 - { /* SCO 3.2v4 cc rejects this. */
22862 - char *t;
22863 - char const *s = 0 ? (char *) 0 : (char const *) 0;
22865 - *t++ = 0;
22866 - if (s) return 0;
22868 - { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22869 - int x[] = {25, 17};
22870 - const int *foo = &x[0];
22871 - ++foo;
22873 - { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22874 - typedef const int *iptr;
22875 - iptr p = 0;
22876 - ++p;
22878 - { /* AIX XL C 1.02.0.0 rejects this saying
22879 - "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22880 - struct s { int j; const int *ap[3]; };
22881 - struct s *b; b->j = 5;
22883 - { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22884 - const int foo = 10;
22885 - if (!foo) return 0;
22887 - return !cs[0] && !zero.x;
22888 -#endif
22890 +struct tm tm;
22891 + int *p = &tm.tm_sec;
22892 + return !p;
22894 return 0;
22896 _ACEOF
22897 -rm -f conftest.$ac_objext
22898 -if { (ac_try="$ac_compile"
22899 -case "(($ac_try" in
22900 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22901 - *) ac_try_echo=$ac_try;;
22902 -esac
22903 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22904 - (eval "$ac_compile") 2>conftest.er1
22905 - ac_status=$?
22906 - grep -v '^ *+' conftest.er1 >conftest.err
22907 - rm -f conftest.er1
22908 - cat conftest.err >&5
22909 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
22910 - (exit $ac_status); } && {
22911 - test -z "$ac_c_werror_flag" ||
22912 - test ! -s conftest.err
22913 - } && test -s conftest.$ac_objext; then
22914 - ac_cv_c_const=yes
22915 +if ac_fn_c_try_compile "$LINENO"; then :
22916 + ac_cv_struct_tm=time.h
22917 else
22918 - echo "$as_me: failed program was:" >&5
22919 -sed 's/^/| /' conftest.$ac_ext >&5
22921 - ac_cv_c_const=no
22922 + ac_cv_struct_tm=sys/time.h
22925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22927 -{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22928 -echo "${ECHO_T}$ac_cv_c_const" >&6; }
22929 -if test $ac_cv_c_const = no; then
22930 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
22931 +$as_echo "$ac_cv_struct_tm" >&6; }
22932 +if test $ac_cv_struct_tm = sys/time.h; then
22934 -cat >>confdefs.h <<\_ACEOF
22935 -#define const
22936 -_ACEOF
22937 +$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
22941 +ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
22942 +#include <$ac_cv_struct_tm>
22944 -works=no
22945 -{ echo "$as_me:$LINENO: checking for working volatile" >&5
22946 -echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
22947 -cat >conftest.$ac_ext <<_ACEOF
22948 -/* confdefs.h. */
22949 -_ACEOF
22950 -cat confdefs.h >>conftest.$ac_ext
22951 -cat >>conftest.$ac_ext <<_ACEOF
22952 -/* end confdefs.h. */
22954 +if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
22956 -int
22957 -main ()
22959 -volatile int x; x = 0;
22961 - return 0;
22963 +cat >>confdefs.h <<_ACEOF
22964 +#define HAVE_STRUCT_TM_TM_ZONE 1
22965 _ACEOF
22966 -rm -f conftest.$ac_objext
22967 -if { (ac_try="$ac_compile"
22968 -case "(($ac_try" in
22969 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22970 - *) ac_try_echo=$ac_try;;
22971 -esac
22972 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22973 - (eval "$ac_compile") 2>conftest.er1
22974 - ac_status=$?
22975 - grep -v '^ *+' conftest.er1 >conftest.err
22976 - rm -f conftest.er1
22977 - cat conftest.err >&5
22978 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
22979 - (exit $ac_status); } && {
22980 - test -z "$ac_c_werror_flag" ||
22981 - test ! -s conftest.err
22982 - } && test -s conftest.$ac_objext; then
22983 - works=yes
22984 -else
22985 - echo "$as_me: failed program was:" >&5
22986 -sed 's/^/| /' conftest.$ac_ext >&5
22989 -cat >>confdefs.h <<\_ACEOF
22990 -#define volatile
22991 -_ACEOF
22994 +if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22997 +$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
22999 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23000 -{ echo "$as_me:$LINENO: result: $works" >&5
23001 -echo "${ECHO_T}$works" >&6; }
23002 +else
23003 + ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
23005 +if test "x$ac_cv_have_decl_tzname" = xyes; then :
23006 + ac_have_decl=1
23007 +else
23008 + ac_have_decl=0
23011 -works=no
23012 -{ echo "$as_me:$LINENO: checking for working signed char" >&5
23013 -echo $ECHO_N "checking for working signed char... $ECHO_C" >&6; }
23014 -cat >conftest.$ac_ext <<_ACEOF
23015 -/* confdefs.h. */
23016 +cat >>confdefs.h <<_ACEOF
23017 +#define HAVE_DECL_TZNAME $ac_have_decl
23018 _ACEOF
23019 -cat confdefs.h >>conftest.$ac_ext
23020 -cat >>conftest.$ac_ext <<_ACEOF
23022 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
23023 +$as_echo_n "checking for tzname... " >&6; }
23024 +if ${ac_cv_var_tzname+:} false; then :
23025 + $as_echo_n "(cached) " >&6
23026 +else
23027 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23028 /* end confdefs.h. */
23029 +#include <time.h>
23030 +#if !HAVE_DECL_TZNAME
23031 +extern char *tzname[];
23032 +#endif
23035 main ()
23037 -signed char c;
23038 +return tzname[0][0];
23040 return 0;
23042 _ACEOF
23043 -rm -f conftest.$ac_objext
23044 -if { (ac_try="$ac_compile"
23045 -case "(($ac_try" in
23046 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23047 - *) ac_try_echo=$ac_try;;
23048 -esac
23049 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23050 - (eval "$ac_compile") 2>conftest.er1
23051 - ac_status=$?
23052 - grep -v '^ *+' conftest.er1 >conftest.err
23053 - rm -f conftest.er1
23054 - cat conftest.err >&5
23055 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
23056 - (exit $ac_status); } && {
23057 - test -z "$ac_c_werror_flag" ||
23058 - test ! -s conftest.err
23059 - } && test -s conftest.$ac_objext; then
23060 - works=yes
23061 +if ac_fn_c_try_link "$LINENO"; then :
23062 + ac_cv_var_tzname=yes
23063 else
23064 - echo "$as_me: failed program was:" >&5
23065 -sed 's/^/| /' conftest.$ac_ext >&5
23066 + ac_cv_var_tzname=no
23068 +rm -f core conftest.err conftest.$ac_objext \
23069 + conftest$ac_exeext conftest.$ac_ext
23071 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
23072 +$as_echo "$ac_cv_var_tzname" >&6; }
23073 + if test $ac_cv_var_tzname = yes; then
23075 +$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
23077 + fi
23080 -cat >>confdefs.h <<\_ACEOF
23081 -#define signed
23082 +ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
23083 +if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
23085 +cat >>confdefs.h <<_ACEOF
23086 +#define HAVE_STRUCT_STAT_ST_RDEV 1
23087 _ACEOF
23092 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23093 -{ echo "$as_me:$LINENO: result: $works" >&5
23094 -echo "${ECHO_T}$works" >&6; }
23095 +ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
23096 +if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
23098 -have_prototypes=no
23099 -{ echo "$as_me:$LINENO: checking for prototypes" >&5
23100 -echo $ECHO_N "checking for prototypes... $ECHO_C" >&6; }
23101 -cat >conftest.$ac_ext <<_ACEOF
23102 -/* confdefs.h. */
23103 -_ACEOF
23104 -cat confdefs.h >>conftest.$ac_ext
23105 -cat >>conftest.$ac_ext <<_ACEOF
23106 -/* end confdefs.h. */
23107 -int foo(int x) { return 0; }
23108 -int
23109 -main ()
23111 -return foo(10);
23113 - return 0;
23115 +cat >>confdefs.h <<_ACEOF
23116 +#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
23117 _ACEOF
23118 -rm -f conftest.$ac_objext
23119 -if { (ac_try="$ac_compile"
23120 -case "(($ac_try" in
23121 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23122 - *) ac_try_echo=$ac_try;;
23123 -esac
23124 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23125 - (eval "$ac_compile") 2>conftest.er1
23126 - ac_status=$?
23127 - grep -v '^ *+' conftest.er1 >conftest.err
23128 - rm -f conftest.er1
23129 - cat conftest.err >&5
23130 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
23131 - (exit $ac_status); } && {
23132 - test -z "$ac_c_werror_flag" ||
23133 - test ! -s conftest.err
23134 - } && test -s conftest.$ac_objext; then
23137 -cat >>confdefs.h <<\_ACEOF
23138 -#define HAVE_PROTOTYPES 1
23139 -_ACEOF
23142 - have_prototypes=yes
23143 +ac_fn_c_check_member "$LINENO" "struct stat" "st_flags" "ac_cv_member_struct_stat_st_flags" "$ac_includes_default"
23144 +if test "x$ac_cv_member_struct_stat_st_flags" = xyes; then :
23146 -else
23147 - echo "$as_me: failed program was:" >&5
23148 -sed 's/^/| /' conftest.$ac_ext >&5
23149 +cat >>confdefs.h <<_ACEOF
23150 +#define HAVE_STRUCT_STAT_ST_FLAGS 1
23151 +_ACEOF
23156 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23157 -{ echo "$as_me:$LINENO: result: $have_prototypes" >&5
23158 -echo "${ECHO_T}$have_prototypes" >&6; }
23159 +ac_fn_c_check_member "$LINENO" "struct stat" "st_gen" "ac_cv_member_struct_stat_st_gen" "$ac_includes_default"
23160 +if test "x$ac_cv_member_struct_stat_st_gen" = xyes; then :
23162 -works=no
23163 -{ echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
23164 -echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6; }
23165 -cat >conftest.$ac_ext <<_ACEOF
23166 -/* confdefs.h. */
23167 +cat >>confdefs.h <<_ACEOF
23168 +#define HAVE_STRUCT_STAT_ST_GEN 1
23169 _ACEOF
23170 -cat confdefs.h >>conftest.$ac_ext
23171 -cat >>conftest.$ac_ext <<_ACEOF
23172 -/* end confdefs.h. */
23174 -#include <stdarg.h>
23175 -int foo(int x, ...) {
23176 - va_list va;
23177 - va_start(va, x);
23178 - va_arg(va, int);
23179 - va_arg(va, char *);
23180 - va_arg(va, double);
23181 - return 0;
23184 -int
23185 -main ()
23187 -return foo(10, "", 3.14);
23189 - return 0;
23191 -_ACEOF
23192 -rm -f conftest.$ac_objext
23193 -if { (ac_try="$ac_compile"
23194 -case "(($ac_try" in
23195 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23196 - *) ac_try_echo=$ac_try;;
23197 -esac
23198 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23199 - (eval "$ac_compile") 2>conftest.er1
23200 - ac_status=$?
23201 - grep -v '^ *+' conftest.er1 >conftest.err
23202 - rm -f conftest.er1
23203 - cat conftest.err >&5
23204 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
23205 - (exit $ac_status); } && {
23206 - test -z "$ac_c_werror_flag" ||
23207 - test ! -s conftest.err
23208 - } && test -s conftest.$ac_objext; then
23211 +ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "$ac_includes_default"
23212 +if test "x$ac_cv_member_struct_stat_st_birthtime" = xyes; then :
23214 -cat >>confdefs.h <<\_ACEOF
23215 -#define HAVE_STDARG_PROTOTYPES 1
23216 +cat >>confdefs.h <<_ACEOF
23217 +#define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
23218 _ACEOF
23220 - works=yes
23222 -else
23223 - echo "$as_me: failed program was:" >&5
23224 -sed 's/^/| /' conftest.$ac_ext >&5
23229 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23230 -{ echo "$as_me:$LINENO: result: $works" >&5
23231 -echo "${ECHO_T}$works" >&6; }
23232 +ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
23233 +if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
23235 -# check for socketpair
23236 -{ echo "$as_me:$LINENO: checking for socketpair" >&5
23237 -echo $ECHO_N "checking for socketpair... $ECHO_C" >&6; }
23238 -cat >conftest.$ac_ext <<_ACEOF
23239 -/* confdefs.h. */
23240 +cat >>confdefs.h <<_ACEOF
23241 +#define HAVE_STRUCT_STAT_ST_BLOCKS 1
23242 _ACEOF
23243 -cat confdefs.h >>conftest.$ac_ext
23244 -cat >>conftest.$ac_ext <<_ACEOF
23245 -/* end confdefs.h. */
23247 -#include <sys/types.h>
23248 -#include <sys/socket.h>
23250 +$as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
23252 +else
23253 + case " $LIBOBJS " in
23254 + *" fileblocks.$ac_objext "* ) ;;
23255 + *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
23256 + ;;
23257 +esac
23263 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for time.h that defines altzone" >&5
23264 +$as_echo_n "checking for time.h that defines altzone... " >&6; }
23265 +if ${ac_cv_header_time_altzone+:} false; then :
23266 + $as_echo_n "(cached) " >&6
23267 +else
23268 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23269 +/* end confdefs.h. */
23270 +#include <time.h>
23272 main ()
23274 -void *x=socketpair
23275 +return altzone;
23277 return 0;
23279 _ACEOF
23280 -rm -f conftest.$ac_objext
23281 -if { (ac_try="$ac_compile"
23282 -case "(($ac_try" in
23283 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23284 - *) ac_try_echo=$ac_try;;
23285 -esac
23286 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23287 - (eval "$ac_compile") 2>conftest.er1
23288 - ac_status=$?
23289 - grep -v '^ *+' conftest.er1 >conftest.err
23290 - rm -f conftest.er1
23291 - cat conftest.err >&5
23292 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
23293 - (exit $ac_status); } && {
23294 - test -z "$ac_c_werror_flag" ||
23295 - test ! -s conftest.err
23296 - } && test -s conftest.$ac_objext; then
23298 -cat >>confdefs.h <<\_ACEOF
23299 -#define HAVE_SOCKETPAIR 1
23300 -_ACEOF
23302 - { echo "$as_me:$LINENO: result: yes" >&5
23303 -echo "${ECHO_T}yes" >&6; }
23304 +if ac_fn_c_try_compile "$LINENO"; then :
23305 + ac_cv_header_time_altzone=yes
23306 else
23307 - echo "$as_me: failed program was:" >&5
23308 -sed 's/^/| /' conftest.$ac_ext >&5
23309 + ac_cv_header_time_altzone=no
23311 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23314 - { echo "$as_me:$LINENO: result: no" >&5
23315 -echo "${ECHO_T}no" >&6; }
23316 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time_altzone" >&5
23317 +$as_echo "$ac_cv_header_time_altzone" >&6; }
23318 +if test $ac_cv_header_time_altzone = yes; then
23321 +$as_echo "#define HAVE_ALTZONE 1" >>confdefs.h
23323 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23326 -# check if sockaddr has sa_len member
23327 -{ echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
23328 -echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6; }
23329 -cat >conftest.$ac_ext <<_ACEOF
23330 -/* confdefs.h. */
23331 -_ACEOF
23332 -cat confdefs.h >>conftest.$ac_ext
23333 -cat >>conftest.$ac_ext <<_ACEOF
23334 +was_it_defined=no
23335 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5
23336 +$as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; }
23337 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23338 /* end confdefs.h. */
23340 #include <sys/types.h>
23341 -#include <sys/socket.h>
23342 +#include <sys/select.h>
23343 +#include <sys/time.h>
23346 main ()
23348 -struct sockaddr x;
23349 -x.sa_len = 0;
23352 return 0;
23354 _ACEOF
23355 -rm -f conftest.$ac_objext
23356 -if { (ac_try="$ac_compile"
23357 -case "(($ac_try" in
23358 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23359 - *) ac_try_echo=$ac_try;;
23360 -esac
23361 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23362 - (eval "$ac_compile") 2>conftest.er1
23363 - ac_status=$?
23364 - grep -v '^ *+' conftest.er1 >conftest.err
23365 - rm -f conftest.er1
23366 - cat conftest.err >&5
23367 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
23368 - (exit $ac_status); } && {
23369 - test -z "$ac_c_werror_flag" ||
23370 - test ! -s conftest.err
23371 - } && test -s conftest.$ac_objext; then
23372 - { echo "$as_me:$LINENO: result: yes" >&5
23373 -echo "${ECHO_T}yes" >&6; }
23374 +if ac_fn_c_try_compile "$LINENO"; then :
23376 -cat >>confdefs.h <<\_ACEOF
23377 -#define HAVE_SOCKADDR_SA_LEN 1
23378 -_ACEOF
23380 -else
23381 - echo "$as_me: failed program was:" >&5
23382 -sed 's/^/| /' conftest.$ac_ext >&5
23383 +$as_echo "#define SYS_SELECT_WITH_SYS_TIME 1" >>confdefs.h
23385 - { echo "$as_me:$LINENO: result: no" >&5
23386 -echo "${ECHO_T}no" >&6; }
23388 + was_it_defined=yes
23391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23392 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5
23393 +$as_echo "$was_it_defined" >&6; }
23395 -va_list_is_array=no
23396 -{ echo "$as_me:$LINENO: checking whether va_list is an array" >&5
23397 -echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6; }
23398 -cat >conftest.$ac_ext <<_ACEOF
23399 -/* confdefs.h. */
23400 -_ACEOF
23401 -cat confdefs.h >>conftest.$ac_ext
23402 -cat >>conftest.$ac_ext <<_ACEOF
23403 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for addrinfo" >&5
23404 +$as_echo_n "checking for addrinfo... " >&6; }
23405 +if ${ac_cv_struct_addrinfo+:} false; then :
23406 + $as_echo_n "(cached) " >&6
23407 +else
23408 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23409 /* end confdefs.h. */
23411 -#ifdef HAVE_STDARG_PROTOTYPES
23412 -#include <stdarg.h>
23413 -#else
23414 -#include <varargs.h>
23415 -#endif
23417 +# include <netdb.h>
23419 main ()
23421 -va_list list1, list2; list1 = list2;
23422 +struct addrinfo a
23424 return 0;
23426 _ACEOF
23427 -rm -f conftest.$ac_objext
23428 -if { (ac_try="$ac_compile"
23429 -case "(($ac_try" in
23430 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23431 - *) ac_try_echo=$ac_try;;
23432 -esac
23433 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23434 - (eval "$ac_compile") 2>conftest.er1
23435 - ac_status=$?
23436 - grep -v '^ *+' conftest.er1 >conftest.err
23437 - rm -f conftest.er1
23438 - cat conftest.err >&5
23439 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
23440 - (exit $ac_status); } && {
23441 - test -z "$ac_c_werror_flag" ||
23442 - test ! -s conftest.err
23443 - } && test -s conftest.$ac_objext; then
23445 +if ac_fn_c_try_compile "$LINENO"; then :
23446 + ac_cv_struct_addrinfo=yes
23447 else
23448 - echo "$as_me: failed program was:" >&5
23449 -sed 's/^/| /' conftest.$ac_ext >&5
23453 -cat >>confdefs.h <<\_ACEOF
23454 -#define VA_LIST_IS_ARRAY 1
23455 -_ACEOF
23457 - va_list_is_array=yes
23459 + ac_cv_struct_addrinfo=no
23462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23463 -{ echo "$as_me:$LINENO: result: $va_list_is_array" >&5
23464 -echo "${ECHO_T}$va_list_is_array" >&6; }
23467 -# sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
23468 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_addrinfo" >&5
23469 +$as_echo "$ac_cv_struct_addrinfo" >&6; }
23470 +if test $ac_cv_struct_addrinfo = yes; then
23472 +$as_echo "#define HAVE_ADDRINFO 1" >>confdefs.h
23476 -{ echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
23477 -echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
23478 -if test "${ac_cv_func_gethostbyname_r+set}" = set; then
23479 - echo $ECHO_N "(cached) $ECHO_C" >&6
23480 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage" >&5
23481 +$as_echo_n "checking for sockaddr_storage... " >&6; }
23482 +if ${ac_cv_struct_sockaddr_storage+:} false; then :
23483 + $as_echo_n "(cached) " >&6
23484 else
23485 - cat >conftest.$ac_ext <<_ACEOF
23486 -/* confdefs.h. */
23487 -_ACEOF
23488 -cat confdefs.h >>conftest.$ac_ext
23489 -cat >>conftest.$ac_ext <<_ACEOF
23490 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23491 /* end confdefs.h. */
23492 -/* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
23493 - For example, HP-UX 11i <limits.h> declares gettimeofday. */
23494 -#define gethostbyname_r innocuous_gethostbyname_r
23496 -/* System header to define __stub macros and hopefully few prototypes,
23497 - which can conflict with char gethostbyname_r (); below.
23498 - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23499 - <limits.h> exists even on freestanding compilers. */
23501 -#ifdef __STDC__
23502 -# include <limits.h>
23503 -#else
23504 -# include <assert.h>
23505 -#endif
23507 -#undef gethostbyname_r
23509 -/* Override any GCC internal prototype to avoid an error.
23510 - Use char because int might match the return type of a GCC
23511 - builtin and then its argument prototype would still apply. */
23512 -#ifdef __cplusplus
23513 -extern "C"
23514 -#endif
23515 -char gethostbyname_r ();
23516 -/* The GNU C library defines this for functions which it implements
23517 - to always fail with ENOSYS. Some functions are actually named
23518 - something starting with __ and the normal name is an alias. */
23519 -#if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
23520 -choke me
23521 -#endif
23523 +# include <sys/types.h>
23524 +# include <sys/socket.h>
23526 main ()
23528 -return gethostbyname_r ();
23529 +struct sockaddr_storage s
23531 return 0;
23533 _ACEOF
23534 -rm -f conftest.$ac_objext conftest$ac_exeext
23535 -if { (ac_try="$ac_link"
23536 -case "(($ac_try" in
23537 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23538 - *) ac_try_echo=$ac_try;;
23539 -esac
23540 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23541 - (eval "$ac_link") 2>conftest.er1
23542 - ac_status=$?
23543 - grep -v '^ *+' conftest.er1 >conftest.err
23544 - rm -f conftest.er1
23545 - cat conftest.err >&5
23546 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
23547 - (exit $ac_status); } && {
23548 - test -z "$ac_c_werror_flag" ||
23549 - test ! -s conftest.err
23550 - } && test -s conftest$ac_exeext &&
23551 - $as_test_x conftest$ac_exeext; then
23552 - ac_cv_func_gethostbyname_r=yes
23553 +if ac_fn_c_try_compile "$LINENO"; then :
23554 + ac_cv_struct_sockaddr_storage=yes
23555 else
23556 - echo "$as_me: failed program was:" >&5
23557 -sed 's/^/| /' conftest.$ac_ext >&5
23559 - ac_cv_func_gethostbyname_r=no
23560 + ac_cv_struct_sockaddr_storage=no
23563 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23564 - conftest$ac_exeext conftest.$ac_ext
23565 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23567 -{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
23568 -echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
23569 -if test $ac_cv_func_gethostbyname_r = yes; then
23571 - cat >>confdefs.h <<\_ACEOF
23572 -#define HAVE_GETHOSTBYNAME_R 1
23573 -_ACEOF
23574 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_storage" >&5
23575 +$as_echo "$ac_cv_struct_sockaddr_storage" >&6; }
23576 +if test $ac_cv_struct_sockaddr_storage = yes; then
23578 - { echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
23579 -echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6; }
23580 - OLD_CFLAGS=$CFLAGS
23581 - CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
23582 - cat >conftest.$ac_ext <<_ACEOF
23583 -/* confdefs.h. */
23584 -_ACEOF
23585 -cat confdefs.h >>conftest.$ac_ext
23586 -cat >>conftest.$ac_ext <<_ACEOF
23587 -/* end confdefs.h. */
23588 +$as_echo "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h
23590 -# include <netdb.h>
23593 +# checks for compiler characteristics
23595 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
23596 +$as_echo_n "checking whether char is unsigned... " >&6; }
23597 +if ${ac_cv_c_char_unsigned+:} false; then :
23598 + $as_echo_n "(cached) " >&6
23599 +else
23600 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23601 +/* end confdefs.h. */
23602 +$ac_includes_default
23604 main ()
23607 - char *name;
23608 - struct hostent *he, *res;
23609 - char buffer[2048];
23610 - int buflen = 2048;
23611 - int h_errnop;
23613 - (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
23614 +static int test_array [1 - 2 * !(((char) -1) < 0)];
23615 +test_array [0] = 0;
23616 +return test_array [0];
23619 return 0;
23621 _ACEOF
23622 -rm -f conftest.$ac_objext
23623 -if { (ac_try="$ac_compile"
23624 -case "(($ac_try" in
23625 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23626 - *) ac_try_echo=$ac_try;;
23627 -esac
23628 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23629 - (eval "$ac_compile") 2>conftest.er1
23630 - ac_status=$?
23631 - grep -v '^ *+' conftest.er1 >conftest.err
23632 - rm -f conftest.er1
23633 - cat conftest.err >&5
23634 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
23635 - (exit $ac_status); } && {
23636 - test -z "$ac_c_werror_flag" ||
23637 - test ! -s conftest.err
23638 - } && test -s conftest.$ac_objext; then
23640 - cat >>confdefs.h <<\_ACEOF
23641 -#define HAVE_GETHOSTBYNAME_R 1
23642 -_ACEOF
23645 -cat >>confdefs.h <<\_ACEOF
23646 -#define HAVE_GETHOSTBYNAME_R_6_ARG 1
23647 -_ACEOF
23649 - { echo "$as_me:$LINENO: result: yes" >&5
23650 -echo "${ECHO_T}yes" >&6; }
23652 +if ac_fn_c_try_compile "$LINENO"; then :
23653 + ac_cv_c_char_unsigned=no
23654 else
23655 - echo "$as_me: failed program was:" >&5
23656 -sed 's/^/| /' conftest.$ac_ext >&5
23657 + ac_cv_c_char_unsigned=yes
23659 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23661 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
23662 +$as_echo "$ac_cv_c_char_unsigned" >&6; }
23663 +if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
23664 + $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
23668 - { echo "$as_me:$LINENO: result: no" >&5
23669 -echo "${ECHO_T}no" >&6; }
23670 - { echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
23671 -echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6; }
23672 - cat >conftest.$ac_ext <<_ACEOF
23673 -/* confdefs.h. */
23674 -_ACEOF
23675 -cat confdefs.h >>conftest.$ac_ext
23676 -cat >>conftest.$ac_ext <<_ACEOF
23677 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
23678 +$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
23679 +if ${ac_cv_c_const+:} false; then :
23680 + $as_echo_n "(cached) " >&6
23681 +else
23682 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23683 /* end confdefs.h. */
23685 -# include <netdb.h>
23688 main ()
23691 - char *name;
23692 - struct hostent *he;
23693 - char buffer[2048];
23694 - int buflen = 2048;
23695 - int h_errnop;
23697 - (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
23700 - return 0;
23702 -_ACEOF
23703 -rm -f conftest.$ac_objext
23704 -if { (ac_try="$ac_compile"
23705 -case "(($ac_try" in
23706 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23707 - *) ac_try_echo=$ac_try;;
23708 -esac
23709 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23710 - (eval "$ac_compile") 2>conftest.er1
23711 - ac_status=$?
23712 - grep -v '^ *+' conftest.er1 >conftest.err
23713 - rm -f conftest.er1
23714 - cat conftest.err >&5
23715 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
23716 - (exit $ac_status); } && {
23717 - test -z "$ac_c_werror_flag" ||
23718 - test ! -s conftest.err
23719 - } && test -s conftest.$ac_objext; then
23721 - cat >>confdefs.h <<\_ACEOF
23722 -#define HAVE_GETHOSTBYNAME_R 1
23723 -_ACEOF
23724 +#ifndef __cplusplus
23725 + /* Ultrix mips cc rejects this sort of thing. */
23726 + typedef int charset[2];
23727 + const charset cs = { 0, 0 };
23728 + /* SunOS 4.1.1 cc rejects this. */
23729 + char const *const *pcpcc;
23730 + char **ppc;
23731 + /* NEC SVR4.0.2 mips cc rejects this. */
23732 + struct point {int x, y;};
23733 + static struct point const zero = {0,0};
23734 + /* AIX XL C 1.02.0.0 rejects this.
23735 + It does not let you subtract one const X* pointer from another in
23736 + an arm of an if-expression whose if-part is not a constant
23737 + expression */
23738 + const char *g = "string";
23739 + pcpcc = &g + (g ? g-g : 0);
23740 + /* HPUX 7.0 cc rejects these. */
23741 + ++pcpcc;
23742 + ppc = (char**) pcpcc;
23743 + pcpcc = (char const *const *) ppc;
23744 + { /* SCO 3.2v4 cc rejects this sort of thing. */
23745 + char tx;
23746 + char *t = &tx;
23747 + char const *s = 0 ? (char *) 0 : (char const *) 0;
23749 + *t++ = 0;
23750 + if (s) return 0;
23752 + { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
23753 + int x[] = {25, 17};
23754 + const int *foo = &x[0];
23755 + ++foo;
23757 + { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23758 + typedef const int *iptr;
23759 + iptr p = 0;
23760 + ++p;
23762 + { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
23763 + "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23764 + struct s { int j; const int *ap[3]; } bx;
23765 + struct s *b = &bx; b->j = 5;
23767 + { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23768 + const int foo = 10;
23769 + if (!foo) return 0;
23771 + return !cs[0] && !zero.x;
23772 +#endif
23774 -cat >>confdefs.h <<\_ACEOF
23775 -#define HAVE_GETHOSTBYNAME_R_5_ARG 1
23777 + return 0;
23779 _ACEOF
23780 +if ac_fn_c_try_compile "$LINENO"; then :
23781 + ac_cv_c_const=yes
23782 +else
23783 + ac_cv_c_const=no
23785 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23787 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
23788 +$as_echo "$ac_cv_c_const" >&6; }
23789 +if test $ac_cv_c_const = no; then
23791 - { echo "$as_me:$LINENO: result: yes" >&5
23792 -echo "${ECHO_T}yes" >&6; }
23793 +$as_echo "#define const /**/" >>confdefs.h
23795 -else
23796 - echo "$as_me: failed program was:" >&5
23797 -sed 's/^/| /' conftest.$ac_ext >&5
23801 - { echo "$as_me:$LINENO: result: no" >&5
23802 -echo "${ECHO_T}no" >&6; }
23803 - { echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
23804 -echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6; }
23805 - cat >conftest.$ac_ext <<_ACEOF
23806 -/* confdefs.h. */
23807 -_ACEOF
23808 -cat confdefs.h >>conftest.$ac_ext
23809 -cat >>conftest.$ac_ext <<_ACEOF
23810 +works=no
23811 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
23812 +$as_echo_n "checking for working volatile... " >&6; }
23813 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23814 /* end confdefs.h. */
23816 -# include <netdb.h>
23819 main ()
23822 - char *name;
23823 - struct hostent *he;
23824 - struct hostent_data data;
23826 - (void) gethostbyname_r(name, he, &data);
23828 +volatile int x; x = 0;
23830 return 0;
23832 _ACEOF
23833 -rm -f conftest.$ac_objext
23834 -if { (ac_try="$ac_compile"
23835 -case "(($ac_try" in
23836 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23837 - *) ac_try_echo=$ac_try;;
23838 -esac
23839 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23840 - (eval "$ac_compile") 2>conftest.er1
23841 - ac_status=$?
23842 - grep -v '^ *+' conftest.er1 >conftest.err
23843 - rm -f conftest.er1
23844 - cat conftest.err >&5
23845 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
23846 - (exit $ac_status); } && {
23847 - test -z "$ac_c_werror_flag" ||
23848 - test ! -s conftest.err
23849 - } && test -s conftest.$ac_objext; then
23850 +if ac_fn_c_try_compile "$LINENO"; then :
23851 + works=yes
23852 +else
23854 - cat >>confdefs.h <<\_ACEOF
23855 -#define HAVE_GETHOSTBYNAME_R 1
23856 -_ACEOF
23857 +$as_echo "#define volatile /**/" >>confdefs.h
23860 -cat >>confdefs.h <<\_ACEOF
23861 -#define HAVE_GETHOSTBYNAME_R_3_ARG 1
23862 -_ACEOF
23864 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23865 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5
23866 +$as_echo "$works" >&6; }
23868 - { echo "$as_me:$LINENO: result: yes" >&5
23869 -echo "${ECHO_T}yes" >&6; }
23870 +works=no
23871 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working signed char" >&5
23872 +$as_echo_n "checking for working signed char... " >&6; }
23873 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23874 +/* end confdefs.h. */
23876 +int
23877 +main ()
23879 +signed char c;
23881 + return 0;
23883 +_ACEOF
23884 +if ac_fn_c_try_compile "$LINENO"; then :
23885 + works=yes
23886 else
23887 - echo "$as_me: failed program was:" >&5
23888 -sed 's/^/| /' conftest.$ac_ext >&5
23890 +$as_echo "#define signed /**/" >>confdefs.h
23892 - { echo "$as_me:$LINENO: result: no" >&5
23893 -echo "${ECHO_T}no" >&6; }
23897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23898 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5
23899 +$as_echo "$works" >&6; }
23903 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23904 +have_prototypes=no
23905 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for prototypes" >&5
23906 +$as_echo_n "checking for prototypes... " >&6; }
23907 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23908 +/* end confdefs.h. */
23909 +int foo(int x) { return 0; }
23910 +int
23911 +main ()
23913 +return foo(10);
23915 + return 0;
23917 +_ACEOF
23918 +if ac_fn_c_try_compile "$LINENO"; then :
23922 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23923 - CFLAGS=$OLD_CFLAGS
23924 +$as_echo "#define HAVE_PROTOTYPES 1" >>confdefs.h
23926 -else
23927 + have_prototypes=yes
23930 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23931 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_prototypes" >&5
23932 +$as_echo "$have_prototypes" >&6; }
23934 -for ac_func in gethostbyname
23936 -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23937 -{ echo "$as_me:$LINENO: checking for $ac_func" >&5
23938 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23939 -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23940 - echo $ECHO_N "(cached) $ECHO_C" >&6
23941 -else
23942 - cat >conftest.$ac_ext <<_ACEOF
23943 -/* confdefs.h. */
23944 -_ACEOF
23945 -cat confdefs.h >>conftest.$ac_ext
23946 -cat >>conftest.$ac_ext <<_ACEOF
23947 +works=no
23948 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for variable length prototypes and stdarg.h" >&5
23949 +$as_echo_n "checking for variable length prototypes and stdarg.h... " >&6; }
23950 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23951 /* end confdefs.h. */
23952 -/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23953 - For example, HP-UX 11i <limits.h> declares gettimeofday. */
23954 -#define $ac_func innocuous_$ac_func
23956 -/* System header to define __stub macros and hopefully few prototypes,
23957 - which can conflict with char $ac_func (); below.
23958 - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23959 - <limits.h> exists even on freestanding compilers. */
23961 -#ifdef __STDC__
23962 -# include <limits.h>
23963 -#else
23964 -# include <assert.h>
23965 -#endif
23967 -#undef $ac_func
23969 -/* Override any GCC internal prototype to avoid an error.
23970 - Use char because int might match the return type of a GCC
23971 - builtin and then its argument prototype would still apply. */
23972 -#ifdef __cplusplus
23973 -extern "C"
23974 -#endif
23975 -char $ac_func ();
23976 -/* The GNU C library defines this for functions which it implements
23977 - to always fail with ENOSYS. Some functions are actually named
23978 - something starting with __ and the normal name is an alias. */
23979 -#if defined __stub_$ac_func || defined __stub___$ac_func
23980 -choke me
23981 -#endif
23982 +#include <stdarg.h>
23983 +int foo(int x, ...) {
23984 + va_list va;
23985 + va_start(va, x);
23986 + va_arg(va, int);
23987 + va_arg(va, char *);
23988 + va_arg(va, double);
23989 + return 0;
23993 main ()
23995 -return $ac_func ();
23996 +return foo(10, "", 3.14);
23998 return 0;
24000 _ACEOF
24001 -rm -f conftest.$ac_objext conftest$ac_exeext
24002 -if { (ac_try="$ac_link"
24003 -case "(($ac_try" in
24004 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24005 - *) ac_try_echo=$ac_try;;
24006 -esac
24007 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24008 - (eval "$ac_link") 2>conftest.er1
24009 - ac_status=$?
24010 - grep -v '^ *+' conftest.er1 >conftest.err
24011 - rm -f conftest.er1
24012 - cat conftest.err >&5
24013 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
24014 - (exit $ac_status); } && {
24015 - test -z "$ac_c_werror_flag" ||
24016 - test ! -s conftest.err
24017 - } && test -s conftest$ac_exeext &&
24018 - $as_test_x conftest$ac_exeext; then
24019 - eval "$as_ac_var=yes"
24020 -else
24021 - echo "$as_me: failed program was:" >&5
24022 -sed 's/^/| /' conftest.$ac_ext >&5
24024 - eval "$as_ac_var=no"
24026 +if ac_fn_c_try_compile "$LINENO"; then :
24028 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24029 - conftest$ac_exeext conftest.$ac_ext
24031 -ac_res=`eval echo '${'$as_ac_var'}'`
24032 - { echo "$as_me:$LINENO: result: $ac_res" >&5
24033 -echo "${ECHO_T}$ac_res" >&6; }
24034 -if test `eval echo '${'$as_ac_var'}'` = yes; then
24035 - cat >>confdefs.h <<_ACEOF
24036 -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24037 -_ACEOF
24040 -done
24041 +$as_echo "#define HAVE_STDARG_PROTOTYPES 1" >>confdefs.h
24043 + works=yes
24046 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24047 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5
24048 +$as_echo "$works" >&6; }
24050 +# check for socketpair
24051 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socketpair" >&5
24052 +$as_echo_n "checking for socketpair... " >&6; }
24053 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24054 +/* end confdefs.h. */
24056 +#include <sys/types.h>
24057 +#include <sys/socket.h>
24063 -# checks for system services
24064 -# (none yet)
24066 -# Linux requires this for correct f.p. operations
24067 -{ echo "$as_me:$LINENO: checking for __fpu_control" >&5
24068 -echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6; }
24069 -if test "${ac_cv_func___fpu_control+set}" = set; then
24070 - echo $ECHO_N "(cached) $ECHO_C" >&6
24071 -else
24072 - cat >conftest.$ac_ext <<_ACEOF
24073 -/* confdefs.h. */
24074 +int
24075 +main ()
24077 +void *x=socketpair
24079 + return 0;
24081 _ACEOF
24082 -cat confdefs.h >>conftest.$ac_ext
24083 -cat >>conftest.$ac_ext <<_ACEOF
24084 -/* end confdefs.h. */
24085 -/* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
24086 - For example, HP-UX 11i <limits.h> declares gettimeofday. */
24087 -#define __fpu_control innocuous___fpu_control
24089 -/* System header to define __stub macros and hopefully few prototypes,
24090 - which can conflict with char __fpu_control (); below.
24091 - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24092 - <limits.h> exists even on freestanding compilers. */
24093 +if ac_fn_c_try_compile "$LINENO"; then :
24095 -#ifdef __STDC__
24096 -# include <limits.h>
24097 -#else
24098 -# include <assert.h>
24099 -#endif
24100 +$as_echo "#define HAVE_SOCKETPAIR 1" >>confdefs.h
24102 -#undef __fpu_control
24103 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24104 +$as_echo "yes" >&6; }
24105 +else
24106 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24107 +$as_echo "no" >&6; }
24109 -/* Override any GCC internal prototype to avoid an error.
24110 - Use char because int might match the return type of a GCC
24111 - builtin and then its argument prototype would still apply. */
24112 -#ifdef __cplusplus
24113 -extern "C"
24114 -#endif
24115 -char __fpu_control ();
24116 -/* The GNU C library defines this for functions which it implements
24117 - to always fail with ENOSYS. Some functions are actually named
24118 - something starting with __ and the normal name is an alias. */
24119 -#if defined __stub___fpu_control || defined __stub_____fpu_control
24120 -choke me
24121 -#endif
24123 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24125 +# check if sockaddr has sa_len member
24126 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr has sa_len member" >&5
24127 +$as_echo_n "checking if sockaddr has sa_len member... " >&6; }
24128 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24129 +/* end confdefs.h. */
24130 +#include <sys/types.h>
24131 +#include <sys/socket.h>
24133 main ()
24135 -return __fpu_control ();
24136 +struct sockaddr x;
24137 +x.sa_len = 0;
24139 return 0;
24141 _ACEOF
24142 -rm -f conftest.$ac_objext conftest$ac_exeext
24143 -if { (ac_try="$ac_link"
24144 -case "(($ac_try" in
24145 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24146 - *) ac_try_echo=$ac_try;;
24147 -esac
24148 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24149 - (eval "$ac_link") 2>conftest.er1
24150 - ac_status=$?
24151 - grep -v '^ *+' conftest.er1 >conftest.err
24152 - rm -f conftest.er1
24153 - cat conftest.err >&5
24154 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
24155 - (exit $ac_status); } && {
24156 - test -z "$ac_c_werror_flag" ||
24157 - test ! -s conftest.err
24158 - } && test -s conftest$ac_exeext &&
24159 - $as_test_x conftest$ac_exeext; then
24160 - ac_cv_func___fpu_control=yes
24161 -else
24162 - echo "$as_me: failed program was:" >&5
24163 -sed 's/^/| /' conftest.$ac_ext >&5
24164 +if ac_fn_c_try_compile "$LINENO"; then :
24165 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24166 +$as_echo "yes" >&6; }
24168 - ac_cv_func___fpu_control=no
24170 +$as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h
24172 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24173 - conftest$ac_exeext conftest.$ac_ext
24175 -{ echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
24176 -echo "${ECHO_T}$ac_cv_func___fpu_control" >&6; }
24177 -if test $ac_cv_func___fpu_control = yes; then
24179 else
24180 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24181 +$as_echo "no" >&6; }
24183 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24185 -{ echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
24186 -echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6; }
24187 -if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
24188 - echo $ECHO_N "(cached) $ECHO_C" >&6
24189 -else
24190 - ac_check_lib_save_LIBS=$LIBS
24191 -LIBS="-lieee $LIBS"
24192 -cat >conftest.$ac_ext <<_ACEOF
24193 -/* confdefs.h. */
24194 -_ACEOF
24195 -cat confdefs.h >>conftest.$ac_ext
24196 -cat >>conftest.$ac_ext <<_ACEOF
24197 +va_list_is_array=no
24198 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether va_list is an array" >&5
24199 +$as_echo_n "checking whether va_list is an array... " >&6; }
24200 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24201 /* end confdefs.h. */
24203 -/* Override any GCC internal prototype to avoid an error.
24204 - Use char because int might match the return type of a GCC
24205 - builtin and then its argument prototype would still apply. */
24206 -#ifdef __cplusplus
24207 -extern "C"
24208 +#ifdef HAVE_STDARG_PROTOTYPES
24209 +#include <stdarg.h>
24210 +#else
24211 +#include <varargs.h>
24212 #endif
24213 -char __fpu_control ();
24216 main ()
24218 -return __fpu_control ();
24219 +va_list list1, list2; list1 = list2;
24221 return 0;
24223 _ACEOF
24224 -rm -f conftest.$ac_objext conftest$ac_exeext
24225 -if { (ac_try="$ac_link"
24226 -case "(($ac_try" in
24227 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24228 - *) ac_try_echo=$ac_try;;
24229 -esac
24230 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24231 - (eval "$ac_link") 2>conftest.er1
24232 - ac_status=$?
24233 - grep -v '^ *+' conftest.er1 >conftest.err
24234 - rm -f conftest.er1
24235 - cat conftest.err >&5
24236 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
24237 - (exit $ac_status); } && {
24238 - test -z "$ac_c_werror_flag" ||
24239 - test ! -s conftest.err
24240 - } && test -s conftest$ac_exeext &&
24241 - $as_test_x conftest$ac_exeext; then
24242 - ac_cv_lib_ieee___fpu_control=yes
24243 +if ac_fn_c_try_compile "$LINENO"; then :
24245 else
24246 - echo "$as_me: failed program was:" >&5
24247 -sed 's/^/| /' conftest.$ac_ext >&5
24249 - ac_cv_lib_ieee___fpu_control=no
24252 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24253 - conftest$ac_exeext conftest.$ac_ext
24254 -LIBS=$ac_check_lib_save_LIBS
24256 -{ echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
24257 -echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6; }
24258 -if test $ac_cv_lib_ieee___fpu_control = yes; then
24259 - cat >>confdefs.h <<_ACEOF
24260 -#define HAVE_LIBIEEE 1
24261 -_ACEOF
24262 +$as_echo "#define VA_LIST_IS_ARRAY 1" >>confdefs.h
24264 - LIBS="-lieee $LIBS"
24265 + va_list_is_array=yes
24268 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24269 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $va_list_is_array" >&5
24270 +$as_echo "$va_list_is_array" >&6; }
24272 +# sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
24276 +ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
24277 +if test "x$ac_cv_func_gethostbyname_r" = xyes; then :
24279 -# Check for --with-fpectl
24280 -{ echo "$as_me:$LINENO: checking for --with-fpectl" >&5
24281 -echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6; }
24282 + $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
24284 -# Check whether --with-fpectl was given.
24285 -if test "${with_fpectl+set}" = set; then
24286 - withval=$with_fpectl;
24287 -if test "$withval" != no
24288 -then
24289 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 6 args" >&5
24290 +$as_echo_n "checking gethostbyname_r with 6 args... " >&6; }
24291 + OLD_CFLAGS=$CFLAGS
24292 + CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
24293 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24294 +/* end confdefs.h. */
24296 -cat >>confdefs.h <<\_ACEOF
24297 -#define WANT_SIGFPE_HANDLER 1
24298 +# include <netdb.h>
24300 +int
24301 +main ()
24304 + char *name;
24305 + struct hostent *he, *res;
24306 + char buffer[2048];
24307 + int buflen = 2048;
24308 + int h_errnop;
24310 + (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
24313 + return 0;
24315 _ACEOF
24316 +if ac_fn_c_try_compile "$LINENO"; then :
24318 - { echo "$as_me:$LINENO: result: yes" >&5
24319 -echo "${ECHO_T}yes" >&6; }
24320 -else { echo "$as_me:$LINENO: result: no" >&5
24321 -echo "${ECHO_T}no" >&6; }
24323 -else
24324 - { echo "$as_me:$LINENO: result: no" >&5
24325 -echo "${ECHO_T}no" >&6; }
24327 + $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
24330 -# check for --with-libm=...
24331 +$as_echo "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h
24333 -case $ac_sys_system in
24334 -Darwin) ;;
24335 -BeOS) ;;
24336 -*) LIBM=-lm
24337 -esac
24338 -{ echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
24339 -echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6; }
24340 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24341 +$as_echo "yes" >&6; }
24343 -# Check whether --with-libm was given.
24344 -if test "${with_libm+set}" = set; then
24345 - withval=$with_libm;
24346 -if test "$withval" = no
24347 -then LIBM=
24348 - { echo "$as_me:$LINENO: result: force LIBM empty" >&5
24349 -echo "${ECHO_T}force LIBM empty" >&6; }
24350 -elif test "$withval" != yes
24351 -then LIBM=$withval
24352 - { echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
24353 -echo "${ECHO_T}set LIBM=\"$withval\"" >&6; }
24354 -else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
24355 -echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
24356 - { (exit 1); exit 1; }; }
24358 else
24359 - { echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
24360 -echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6; }
24363 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24364 +$as_echo "no" >&6; }
24365 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 5 args" >&5
24366 +$as_echo_n "checking gethostbyname_r with 5 args... " >&6; }
24367 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24368 +/* end confdefs.h. */
24370 -# check for --with-libc=...
24372 -{ echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
24373 -echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6; }
24374 +# include <netdb.h>
24376 -# Check whether --with-libc was given.
24377 -if test "${with_libc+set}" = set; then
24378 - withval=$with_libc;
24379 -if test "$withval" = no
24380 -then LIBC=
24381 - { echo "$as_me:$LINENO: result: force LIBC empty" >&5
24382 -echo "${ECHO_T}force LIBC empty" >&6; }
24383 -elif test "$withval" != yes
24384 -then LIBC=$withval
24385 - { echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
24386 -echo "${ECHO_T}set LIBC=\"$withval\"" >&6; }
24387 -else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
24388 -echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
24389 - { (exit 1); exit 1; }; }
24391 -else
24392 - { echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
24393 -echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6; }
24395 +int
24396 +main ()
24399 + char *name;
24400 + struct hostent *he;
24401 + char buffer[2048];
24402 + int buflen = 2048;
24403 + int h_errnop;
24405 -# check for hypot() in math library
24406 -LIBS_SAVE=$LIBS
24407 -LIBS="$LIBS $LIBM"
24408 + (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
24410 -for ac_func in hypot
24412 -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24413 -{ echo "$as_me:$LINENO: checking for $ac_func" >&5
24414 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24415 -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24416 - echo $ECHO_N "(cached) $ECHO_C" >&6
24417 -else
24418 - cat >conftest.$ac_ext <<_ACEOF
24419 -/* confdefs.h. */
24421 + return 0;
24423 _ACEOF
24424 -cat confdefs.h >>conftest.$ac_ext
24425 -cat >>conftest.$ac_ext <<_ACEOF
24426 -/* end confdefs.h. */
24427 -/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24428 - For example, HP-UX 11i <limits.h> declares gettimeofday. */
24429 -#define $ac_func innocuous_$ac_func
24430 +if ac_fn_c_try_compile "$LINENO"; then :
24432 -/* System header to define __stub macros and hopefully few prototypes,
24433 - which can conflict with char $ac_func (); below.
24434 - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24435 - <limits.h> exists even on freestanding compilers. */
24436 + $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
24438 -#ifdef __STDC__
24439 -# include <limits.h>
24440 -#else
24441 -# include <assert.h>
24442 -#endif
24444 -#undef $ac_func
24445 +$as_echo "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h
24447 -/* Override any GCC internal prototype to avoid an error.
24448 - Use char because int might match the return type of a GCC
24449 - builtin and then its argument prototype would still apply. */
24450 -#ifdef __cplusplus
24451 -extern "C"
24452 -#endif
24453 -char $ac_func ();
24454 -/* The GNU C library defines this for functions which it implements
24455 - to always fail with ENOSYS. Some functions are actually named
24456 - something starting with __ and the normal name is an alias. */
24457 -#if defined __stub_$ac_func || defined __stub___$ac_func
24458 -choke me
24459 -#endif
24460 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24461 +$as_echo "yes" >&6; }
24463 +else
24465 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24466 +$as_echo "no" >&6; }
24467 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 3 args" >&5
24468 +$as_echo_n "checking gethostbyname_r with 3 args... " >&6; }
24469 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24470 +/* end confdefs.h. */
24472 +# include <netdb.h>
24475 main ()
24477 -return $ac_func ();
24479 + char *name;
24480 + struct hostent *he;
24481 + struct hostent_data data;
24483 + (void) gethostbyname_r(name, he, &data);
24486 return 0;
24488 _ACEOF
24489 -rm -f conftest.$ac_objext conftest$ac_exeext
24490 -if { (ac_try="$ac_link"
24491 -case "(($ac_try" in
24492 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24493 - *) ac_try_echo=$ac_try;;
24494 -esac
24495 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24496 - (eval "$ac_link") 2>conftest.er1
24497 - ac_status=$?
24498 - grep -v '^ *+' conftest.er1 >conftest.err
24499 - rm -f conftest.er1
24500 - cat conftest.err >&5
24501 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
24502 - (exit $ac_status); } && {
24503 - test -z "$ac_c_werror_flag" ||
24504 - test ! -s conftest.err
24505 - } && test -s conftest$ac_exeext &&
24506 - $as_test_x conftest$ac_exeext; then
24507 - eval "$as_ac_var=yes"
24508 -else
24509 - echo "$as_me: failed program was:" >&5
24510 -sed 's/^/| /' conftest.$ac_ext >&5
24511 +if ac_fn_c_try_compile "$LINENO"; then :
24513 - eval "$as_ac_var=no"
24515 + $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
24517 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24518 - conftest$ac_exeext conftest.$ac_ext
24520 -ac_res=`eval echo '${'$as_ac_var'}'`
24521 - { echo "$as_me:$LINENO: result: $ac_res" >&5
24522 -echo "${ECHO_T}$ac_res" >&6; }
24523 -if test `eval echo '${'$as_ac_var'}'` = yes; then
24524 - cat >>confdefs.h <<_ACEOF
24525 -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24526 -_ACEOF
24528 -else
24529 - case " $LIBOBJS " in
24530 - *" $ac_func.$ac_objext "* ) ;;
24531 - *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
24532 - ;;
24533 -esac
24534 +$as_echo "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h
24537 -done
24538 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24539 +$as_echo "yes" >&6; }
24541 +else
24543 -LIBS=$LIBS_SAVE
24544 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24545 +$as_echo "no" >&6; }
24547 -# check for wchar.h
24548 -if test "${ac_cv_header_wchar_h+set}" = set; then
24549 - { echo "$as_me:$LINENO: checking for wchar.h" >&5
24550 -echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
24551 -if test "${ac_cv_header_wchar_h+set}" = set; then
24552 - echo $ECHO_N "(cached) $ECHO_C" >&6
24554 -{ echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
24555 -echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
24556 -else
24557 - # Is the header compilable?
24558 -{ echo "$as_me:$LINENO: checking wchar.h usability" >&5
24559 -echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6; }
24560 -cat >conftest.$ac_ext <<_ACEOF
24561 -/* confdefs.h. */
24562 -_ACEOF
24563 -cat confdefs.h >>conftest.$ac_ext
24564 -cat >>conftest.$ac_ext <<_ACEOF
24565 -/* end confdefs.h. */
24566 -$ac_includes_default
24567 -#include <wchar.h>
24568 -_ACEOF
24569 -rm -f conftest.$ac_objext
24570 -if { (ac_try="$ac_compile"
24571 -case "(($ac_try" in
24572 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24573 - *) ac_try_echo=$ac_try;;
24574 -esac
24575 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24576 - (eval "$ac_compile") 2>conftest.er1
24577 - ac_status=$?
24578 - grep -v '^ *+' conftest.er1 >conftest.err
24579 - rm -f conftest.er1
24580 - cat conftest.err >&5
24581 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
24582 - (exit $ac_status); } && {
24583 - test -z "$ac_c_werror_flag" ||
24584 - test ! -s conftest.err
24585 - } && test -s conftest.$ac_objext; then
24586 - ac_header_compiler=yes
24587 -else
24588 - echo "$as_me: failed program was:" >&5
24589 -sed 's/^/| /' conftest.$ac_ext >&5
24590 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24592 - ac_header_compiler=no
24594 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24598 -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24599 -echo "${ECHO_T}$ac_header_compiler" >&6; }
24600 + CFLAGS=$OLD_CFLAGS
24602 -# Is the header present?
24603 -{ echo "$as_me:$LINENO: checking wchar.h presence" >&5
24604 -echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6; }
24605 -cat >conftest.$ac_ext <<_ACEOF
24606 -/* confdefs.h. */
24607 -_ACEOF
24608 -cat confdefs.h >>conftest.$ac_ext
24609 -cat >>conftest.$ac_ext <<_ACEOF
24610 -/* end confdefs.h. */
24611 -#include <wchar.h>
24612 -_ACEOF
24613 -if { (ac_try="$ac_cpp conftest.$ac_ext"
24614 -case "(($ac_try" in
24615 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24616 - *) ac_try_echo=$ac_try;;
24617 -esac
24618 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24619 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24620 - ac_status=$?
24621 - grep -v '^ *+' conftest.er1 >conftest.err
24622 - rm -f conftest.er1
24623 - cat conftest.err >&5
24624 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
24625 - (exit $ac_status); } >/dev/null && {
24626 - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24627 - test ! -s conftest.err
24628 - }; then
24629 - ac_header_preproc=yes
24630 else
24631 - echo "$as_me: failed program was:" >&5
24632 -sed 's/^/| /' conftest.$ac_ext >&5
24634 - ac_header_preproc=no
24635 + for ac_func in gethostbyname
24636 +do :
24637 + ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
24638 +if test "x$ac_cv_func_gethostbyname" = xyes; then :
24639 + cat >>confdefs.h <<_ACEOF
24640 +#define HAVE_GETHOSTBYNAME 1
24641 +_ACEOF
24644 +done
24646 -rm -f conftest.err conftest.$ac_ext
24647 -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24648 -echo "${ECHO_T}$ac_header_preproc" >&6; }
24650 -# So? What about this header?
24651 -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24652 - yes:no: )
24653 - { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
24654 -echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24655 - { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
24656 -echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
24657 - ac_header_preproc=yes
24658 - ;;
24659 - no:yes:* )
24660 - { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
24661 -echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
24662 - { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
24663 -echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
24664 - { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
24665 -echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
24666 - { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
24667 -echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
24668 - { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
24669 -echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
24670 - { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
24671 -echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
24672 - ( cat <<\_ASBOX
24673 -## ------------------------------------------------ ##
24674 -## Report this to http://www.python.org/python-bugs ##
24675 -## ------------------------------------------------ ##
24676 -_ASBOX
24677 - ) | sed "s/^/$as_me: WARNING: /" >&2
24678 - ;;
24679 -esac
24680 -{ echo "$as_me:$LINENO: checking for wchar.h" >&5
24681 -echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
24682 -if test "${ac_cv_header_wchar_h+set}" = set; then
24683 - echo $ECHO_N "(cached) $ECHO_C" >&6
24684 -else
24685 - ac_cv_header_wchar_h=$ac_header_preproc
24687 -{ echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
24688 -echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
24691 -if test $ac_cv_header_wchar_h = yes; then
24694 -cat >>confdefs.h <<\_ACEOF
24695 -#define HAVE_WCHAR_H 1
24696 -_ACEOF
24698 - wchar_h="yes"
24700 -else
24701 - wchar_h="no"
24705 +# checks for system services
24706 +# (none yet)
24708 +# Linux requires this for correct f.p. operations
24709 +ac_fn_c_check_func "$LINENO" "__fpu_control" "ac_cv_func___fpu_control"
24710 +if test "x$ac_cv_func___fpu_control" = xyes; then :
24712 -# determine wchar_t size
24713 -if test "$wchar_h" = yes
24714 -then
24715 - { echo "$as_me:$LINENO: checking for wchar_t" >&5
24716 -echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
24717 -if test "${ac_cv_type_wchar_t+set}" = set; then
24718 - echo $ECHO_N "(cached) $ECHO_C" >&6
24719 else
24720 - cat >conftest.$ac_ext <<_ACEOF
24721 -/* confdefs.h. */
24722 -_ACEOF
24723 -cat confdefs.h >>conftest.$ac_ext
24724 -cat >>conftest.$ac_ext <<_ACEOF
24725 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __fpu_control in -lieee" >&5
24726 +$as_echo_n "checking for __fpu_control in -lieee... " >&6; }
24727 +if ${ac_cv_lib_ieee___fpu_control+:} false; then :
24728 + $as_echo_n "(cached) " >&6
24729 +else
24730 + ac_check_lib_save_LIBS=$LIBS
24731 +LIBS="-lieee $LIBS"
24732 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24733 /* end confdefs.h. */
24734 -#include <wchar.h>
24736 -typedef wchar_t ac__type_new_;
24737 +/* Override any GCC internal prototype to avoid an error.
24738 + Use char because int might match the return type of a GCC
24739 + builtin and then its argument prototype would still apply. */
24740 +#ifdef __cplusplus
24741 +extern "C"
24742 +#endif
24743 +char __fpu_control ();
24745 main ()
24747 -if ((ac__type_new_ *) 0)
24748 - return 0;
24749 -if (sizeof (ac__type_new_))
24750 - return 0;
24751 +return __fpu_control ();
24753 return 0;
24755 _ACEOF
24756 -rm -f conftest.$ac_objext
24757 -if { (ac_try="$ac_compile"
24758 -case "(($ac_try" in
24759 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24760 - *) ac_try_echo=$ac_try;;
24761 -esac
24762 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24763 - (eval "$ac_compile") 2>conftest.er1
24764 - ac_status=$?
24765 - grep -v '^ *+' conftest.er1 >conftest.err
24766 - rm -f conftest.er1
24767 - cat conftest.err >&5
24768 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
24769 - (exit $ac_status); } && {
24770 - test -z "$ac_c_werror_flag" ||
24771 - test ! -s conftest.err
24772 - } && test -s conftest.$ac_objext; then
24773 - ac_cv_type_wchar_t=yes
24774 +if ac_fn_c_try_link "$LINENO"; then :
24775 + ac_cv_lib_ieee___fpu_control=yes
24776 else
24777 - echo "$as_me: failed program was:" >&5
24778 -sed 's/^/| /' conftest.$ac_ext >&5
24779 + ac_cv_lib_ieee___fpu_control=no
24781 +rm -f core conftest.err conftest.$ac_objext \
24782 + conftest$ac_exeext conftest.$ac_ext
24783 +LIBS=$ac_check_lib_save_LIBS
24785 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ieee___fpu_control" >&5
24786 +$as_echo "$ac_cv_lib_ieee___fpu_control" >&6; }
24787 +if test "x$ac_cv_lib_ieee___fpu_control" = xyes; then :
24788 + cat >>confdefs.h <<_ACEOF
24789 +#define HAVE_LIBIEEE 1
24790 +_ACEOF
24792 + LIBS="-lieee $LIBS"
24794 - ac_cv_type_wchar_t=no
24797 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24800 -{ echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
24801 -echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
24803 -# The cast to long int works around a bug in the HP C Compiler
24804 -# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24805 -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24806 -# This bug is HP SR number 8606223364.
24807 -{ echo "$as_me:$LINENO: checking size of wchar_t" >&5
24808 -echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
24809 -if test "${ac_cv_sizeof_wchar_t+set}" = set; then
24810 - echo $ECHO_N "(cached) $ECHO_C" >&6
24811 -else
24812 - if test "$cross_compiling" = yes; then
24813 - # Depending upon the size, compute the lo and hi bounds.
24814 -cat >conftest.$ac_ext <<_ACEOF
24815 -/* confdefs.h. */
24816 -_ACEOF
24817 -cat confdefs.h >>conftest.$ac_ext
24818 -cat >>conftest.$ac_ext <<_ACEOF
24819 -/* end confdefs.h. */
24820 -#include <wchar.h>
24822 - typedef wchar_t ac__type_sizeof_;
24823 -int
24824 -main ()
24826 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24827 -test_array [0] = 0
24828 +# Check for --with-fpectl
24829 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-fpectl" >&5
24830 +$as_echo_n "checking for --with-fpectl... " >&6; }
24833 - return 0;
24835 -_ACEOF
24836 -rm -f conftest.$ac_objext
24837 -if { (ac_try="$ac_compile"
24838 -case "(($ac_try" in
24839 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24840 - *) ac_try_echo=$ac_try;;
24841 -esac
24842 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24843 - (eval "$ac_compile") 2>conftest.er1
24844 - ac_status=$?
24845 - grep -v '^ *+' conftest.er1 >conftest.err
24846 - rm -f conftest.er1
24847 - cat conftest.err >&5
24848 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
24849 - (exit $ac_status); } && {
24850 - test -z "$ac_c_werror_flag" ||
24851 - test ! -s conftest.err
24852 - } && test -s conftest.$ac_objext; then
24853 - ac_lo=0 ac_mid=0
24854 - while :; do
24855 - cat >conftest.$ac_ext <<_ACEOF
24856 -/* confdefs.h. */
24857 -_ACEOF
24858 -cat confdefs.h >>conftest.$ac_ext
24859 -cat >>conftest.$ac_ext <<_ACEOF
24860 -/* end confdefs.h. */
24861 -#include <wchar.h>
24862 +# Check whether --with-fpectl was given.
24863 +if test "${with_fpectl+set}" = set; then :
24864 + withval=$with_fpectl;
24865 +if test "$withval" != no
24866 +then
24868 - typedef wchar_t ac__type_sizeof_;
24869 -int
24870 -main ()
24872 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24873 -test_array [0] = 0
24874 +$as_echo "#define WANT_SIGFPE_HANDLER 1" >>confdefs.h
24877 - return 0;
24879 -_ACEOF
24880 -rm -f conftest.$ac_objext
24881 -if { (ac_try="$ac_compile"
24882 -case "(($ac_try" in
24883 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24884 - *) ac_try_echo=$ac_try;;
24885 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24886 +$as_echo "yes" >&6; }
24887 +else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24888 +$as_echo "no" >&6; }
24890 +else
24891 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24892 +$as_echo "no" >&6; }
24896 +# check for --with-libm=...
24898 +case $ac_sys_system in
24899 +Darwin) ;;
24900 +BeOS) ;;
24901 +*) LIBM=-lm
24902 esac
24903 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24904 - (eval "$ac_compile") 2>conftest.er1
24905 - ac_status=$?
24906 - grep -v '^ *+' conftest.er1 >conftest.err
24907 - rm -f conftest.er1
24908 - cat conftest.err >&5
24909 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
24910 - (exit $ac_status); } && {
24911 - test -z "$ac_c_werror_flag" ||
24912 - test ! -s conftest.err
24913 - } && test -s conftest.$ac_objext; then
24914 - ac_hi=$ac_mid; break
24915 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libm=STRING" >&5
24916 +$as_echo_n "checking for --with-libm=STRING... " >&6; }
24918 +# Check whether --with-libm was given.
24919 +if test "${with_libm+set}" = set; then :
24920 + withval=$with_libm;
24921 +if test "$withval" = no
24922 +then LIBM=
24923 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBM empty" >&5
24924 +$as_echo "force LIBM empty" >&6; }
24925 +elif test "$withval" != yes
24926 +then LIBM=$withval
24927 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBM=\"$withval\"" >&5
24928 +$as_echo "set LIBM=\"$withval\"" >&6; }
24929 +else as_fn_error $? "proper usage is --with-libm=STRING" "$LINENO" 5
24931 else
24932 - echo "$as_me: failed program was:" >&5
24933 -sed 's/^/| /' conftest.$ac_ext >&5
24935 - ac_lo=`expr $ac_mid + 1`
24936 - if test $ac_lo -le $ac_mid; then
24937 - ac_lo= ac_hi=
24938 - break
24939 - fi
24940 - ac_mid=`expr 2 '*' $ac_mid + 1`
24941 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBM=\"$LIBM\"" >&5
24942 +$as_echo "default LIBM=\"$LIBM\"" >&6; }
24945 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24946 - done
24947 -else
24948 - echo "$as_me: failed program was:" >&5
24949 -sed 's/^/| /' conftest.$ac_ext >&5
24951 - cat >conftest.$ac_ext <<_ACEOF
24952 -/* confdefs.h. */
24953 -_ACEOF
24954 -cat confdefs.h >>conftest.$ac_ext
24955 -cat >>conftest.$ac_ext <<_ACEOF
24956 -/* end confdefs.h. */
24957 -#include <wchar.h>
24958 +# check for --with-libc=...
24960 - typedef wchar_t ac__type_sizeof_;
24961 -int
24962 -main ()
24964 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24965 -test_array [0] = 0
24966 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libc=STRING" >&5
24967 +$as_echo_n "checking for --with-libc=STRING... " >&6; }
24970 - return 0;
24972 -_ACEOF
24973 -rm -f conftest.$ac_objext
24974 -if { (ac_try="$ac_compile"
24975 -case "(($ac_try" in
24976 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24977 - *) ac_try_echo=$ac_try;;
24978 -esac
24979 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24980 - (eval "$ac_compile") 2>conftest.er1
24981 - ac_status=$?
24982 - grep -v '^ *+' conftest.er1 >conftest.err
24983 - rm -f conftest.er1
24984 - cat conftest.err >&5
24985 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
24986 - (exit $ac_status); } && {
24987 - test -z "$ac_c_werror_flag" ||
24988 - test ! -s conftest.err
24989 - } && test -s conftest.$ac_objext; then
24990 - ac_hi=-1 ac_mid=-1
24991 - while :; do
24992 - cat >conftest.$ac_ext <<_ACEOF
24993 -/* confdefs.h. */
24994 -_ACEOF
24995 -cat confdefs.h >>conftest.$ac_ext
24996 -cat >>conftest.$ac_ext <<_ACEOF
24997 -/* end confdefs.h. */
24998 -#include <wchar.h>
24999 +# Check whether --with-libc was given.
25000 +if test "${with_libc+set}" = set; then :
25001 + withval=$with_libc;
25002 +if test "$withval" = no
25003 +then LIBC=
25004 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBC empty" >&5
25005 +$as_echo "force LIBC empty" >&6; }
25006 +elif test "$withval" != yes
25007 +then LIBC=$withval
25008 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBC=\"$withval\"" >&5
25009 +$as_echo "set LIBC=\"$withval\"" >&6; }
25010 +else as_fn_error $? "proper usage is --with-libc=STRING" "$LINENO" 5
25012 +else
25013 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBC=\"$LIBC\"" >&5
25014 +$as_echo "default LIBC=\"$LIBC\"" >&6; }
25017 - typedef wchar_t ac__type_sizeof_;
25018 -int
25019 -main ()
25021 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25022 -test_array [0] = 0
25025 - return 0;
25027 -_ACEOF
25028 -rm -f conftest.$ac_objext
25029 -if { (ac_try="$ac_compile"
25030 -case "(($ac_try" in
25031 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25032 - *) ac_try_echo=$ac_try;;
25033 -esac
25034 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25035 - (eval "$ac_compile") 2>conftest.er1
25036 - ac_status=$?
25037 - grep -v '^ *+' conftest.er1 >conftest.err
25038 - rm -f conftest.er1
25039 - cat conftest.err >&5
25040 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
25041 - (exit $ac_status); } && {
25042 - test -z "$ac_c_werror_flag" ||
25043 - test ! -s conftest.err
25044 - } && test -s conftest.$ac_objext; then
25045 - ac_lo=$ac_mid; break
25046 +# check for hypot() in math library
25047 +LIBS_SAVE=$LIBS
25048 +LIBS="$LIBS $LIBM"
25049 +ac_fn_c_check_func "$LINENO" "hypot" "ac_cv_func_hypot"
25050 +if test "x$ac_cv_func_hypot" = xyes; then :
25051 + $as_echo "#define HAVE_HYPOT 1" >>confdefs.h
25053 else
25054 - echo "$as_me: failed program was:" >&5
25055 -sed 's/^/| /' conftest.$ac_ext >&5
25056 + case " $LIBOBJS " in
25057 + *" hypot.$ac_objext "* ) ;;
25058 + *) LIBOBJS="$LIBOBJS hypot.$ac_objext"
25059 + ;;
25060 +esac
25062 - ac_hi=`expr '(' $ac_mid ')' - 1`
25063 - if test $ac_mid -le $ac_hi; then
25064 - ac_lo= ac_hi=
25065 - break
25066 - fi
25067 - ac_mid=`expr 2 '*' $ac_mid`
25070 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25071 - done
25072 -else
25073 - echo "$as_me: failed program was:" >&5
25074 -sed 's/^/| /' conftest.$ac_ext >&5
25076 - ac_lo= ac_hi=
25078 +LIBS=$LIBS_SAVE
25080 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25082 +# check for wchar.h
25083 +ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
25084 +if test "x$ac_cv_header_wchar_h" = xyes; then :
25086 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25087 -# Binary search between lo and hi bounds.
25088 -while test "x$ac_lo" != "x$ac_hi"; do
25089 - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25090 - cat >conftest.$ac_ext <<_ACEOF
25091 -/* confdefs.h. */
25092 -_ACEOF
25093 -cat confdefs.h >>conftest.$ac_ext
25094 -cat >>conftest.$ac_ext <<_ACEOF
25095 -/* end confdefs.h. */
25096 -#include <wchar.h>
25098 - typedef wchar_t ac__type_sizeof_;
25099 -int
25100 -main ()
25102 -static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25103 -test_array [0] = 0
25104 +$as_echo "#define HAVE_WCHAR_H 1" >>confdefs.h
25106 + wchar_h="yes"
25109 - return 0;
25111 -_ACEOF
25112 -rm -f conftest.$ac_objext
25113 -if { (ac_try="$ac_compile"
25114 -case "(($ac_try" in
25115 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25116 - *) ac_try_echo=$ac_try;;
25117 -esac
25118 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25119 - (eval "$ac_compile") 2>conftest.er1
25120 - ac_status=$?
25121 - grep -v '^ *+' conftest.er1 >conftest.err
25122 - rm -f conftest.er1
25123 - cat conftest.err >&5
25124 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
25125 - (exit $ac_status); } && {
25126 - test -z "$ac_c_werror_flag" ||
25127 - test ! -s conftest.err
25128 - } && test -s conftest.$ac_objext; then
25129 - ac_hi=$ac_mid
25130 else
25131 - echo "$as_me: failed program was:" >&5
25132 -sed 's/^/| /' conftest.$ac_ext >&5
25133 + wchar_h="no"
25135 - ac_lo=`expr '(' $ac_mid ')' + 1`
25138 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25139 -done
25140 -case $ac_lo in
25141 -?*) ac_cv_sizeof_wchar_t=$ac_lo;;
25142 -'') if test "$ac_cv_type_wchar_t" = yes; then
25143 - { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
25144 -See \`config.log' for more details." >&5
25145 -echo "$as_me: error: cannot compute sizeof (wchar_t)
25146 -See \`config.log' for more details." >&2;}
25147 - { (exit 77); exit 77; }; }
25148 - else
25149 - ac_cv_sizeof_wchar_t=0
25150 - fi ;;
25151 -esac
25152 -else
25153 - cat >conftest.$ac_ext <<_ACEOF
25154 -/* confdefs.h. */
25155 -_ACEOF
25156 -cat confdefs.h >>conftest.$ac_ext
25157 -cat >>conftest.$ac_ext <<_ACEOF
25158 -/* end confdefs.h. */
25159 -#include <wchar.h>
25161 - typedef wchar_t ac__type_sizeof_;
25162 -static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25163 -static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25164 -#include <stdio.h>
25165 -#include <stdlib.h>
25166 -int
25167 -main ()
25170 - FILE *f = fopen ("conftest.val", "w");
25171 - if (! f)
25172 - return 1;
25173 - if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25175 - long int i = longval ();
25176 - if (i != ((long int) (sizeof (ac__type_sizeof_))))
25177 - return 1;
25178 - fprintf (f, "%ld\n", i);
25180 - else
25182 - unsigned long int i = ulongval ();
25183 - if (i != ((long int) (sizeof (ac__type_sizeof_))))
25184 - return 1;
25185 - fprintf (f, "%lu\n", i);
25187 - return ferror (f) || fclose (f) != 0;
25188 +# determine wchar_t size
25189 +if test "$wchar_h" = yes
25190 +then
25191 + # The cast to long int works around a bug in the HP C Compiler
25192 +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25193 +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25194 +# This bug is HP SR number 8606223364.
25195 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5
25196 +$as_echo_n "checking size of wchar_t... " >&6; }
25197 +if ${ac_cv_sizeof_wchar_t+:} false; then :
25198 + $as_echo_n "(cached) " >&6
25199 +else
25200 + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" "#include <wchar.h>
25201 +"; then :
25204 - return 0;
25206 -_ACEOF
25207 -rm -f conftest$ac_exeext
25208 -if { (ac_try="$ac_link"
25209 -case "(($ac_try" in
25210 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25211 - *) ac_try_echo=$ac_try;;
25212 -esac
25213 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25214 - (eval "$ac_link") 2>&5
25215 - ac_status=$?
25216 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
25217 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25218 - { (case "(($ac_try" in
25219 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25220 - *) ac_try_echo=$ac_try;;
25221 -esac
25222 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25223 - (eval "$ac_try") 2>&5
25224 - ac_status=$?
25225 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
25226 - (exit $ac_status); }; }; then
25227 - ac_cv_sizeof_wchar_t=`cat conftest.val`
25228 else
25229 - echo "$as_me: program exited with status $ac_status" >&5
25230 -echo "$as_me: failed program was:" >&5
25231 -sed 's/^/| /' conftest.$ac_ext >&5
25233 -( exit $ac_status )
25234 -if test "$ac_cv_type_wchar_t" = yes; then
25235 - { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
25236 -See \`config.log' for more details." >&5
25237 -echo "$as_me: error: cannot compute sizeof (wchar_t)
25238 -See \`config.log' for more details." >&2;}
25239 - { (exit 77); exit 77; }; }
25240 + if test "$ac_cv_type_wchar_t" = yes; then
25241 + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25242 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25243 +as_fn_error 77 "cannot compute sizeof (wchar_t)
25244 +See \`config.log' for more details" "$LINENO" 5; }
25245 else
25246 ac_cv_sizeof_wchar_t=0
25249 -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25251 -rm -f conftest.val
25254 -{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
25255 -echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
25256 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5
25257 +$as_echo "$ac_cv_sizeof_wchar_t" >&6; }
25261 @@ -20380,14 +10713,10 @@
25265 -{ echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
25266 -echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6; }
25267 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for UCS-4 tcl" >&5
25268 +$as_echo_n "checking for UCS-4 tcl... " >&6; }
25269 have_ucs4_tcl=no
25270 -cat >conftest.$ac_ext <<_ACEOF
25271 -/* confdefs.h. */
25272 -_ACEOF
25273 -cat confdefs.h >>conftest.$ac_ext
25274 -cat >>conftest.$ac_ext <<_ACEOF
25275 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25276 /* end confdefs.h. */
25278 #include <tcl.h>
25279 @@ -20402,60 +10731,32 @@
25280 return 0;
25282 _ACEOF
25283 -rm -f conftest.$ac_objext
25284 -if { (ac_try="$ac_compile"
25285 -case "(($ac_try" in
25286 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25287 - *) ac_try_echo=$ac_try;;
25288 -esac
25289 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25290 - (eval "$ac_compile") 2>conftest.er1
25291 - ac_status=$?
25292 - grep -v '^ *+' conftest.er1 >conftest.err
25293 - rm -f conftest.er1
25294 - cat conftest.err >&5
25295 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
25296 - (exit $ac_status); } && {
25297 - test -z "$ac_c_werror_flag" ||
25298 - test ! -s conftest.err
25299 - } && test -s conftest.$ac_objext; then
25300 +if ac_fn_c_try_compile "$LINENO"; then :
25303 -cat >>confdefs.h <<\_ACEOF
25304 -#define HAVE_UCS4_TCL 1
25305 -_ACEOF
25306 +$as_echo "#define HAVE_UCS4_TCL 1" >>confdefs.h
25308 have_ucs4_tcl=yes
25310 -else
25311 - echo "$as_me: failed program was:" >&5
25312 -sed 's/^/| /' conftest.$ac_ext >&5
25317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25318 -{ echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
25319 -echo "${ECHO_T}$have_ucs4_tcl" >&6; }
25320 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ucs4_tcl" >&5
25321 +$as_echo "$have_ucs4_tcl" >&6; }
25323 # check whether wchar_t is signed or not
25324 if test "$wchar_h" = yes
25325 then
25326 # check whether wchar_t is signed or not
25327 - { echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
25328 -echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6; }
25329 - if test "${ac_cv_wchar_t_signed+set}" = set; then
25330 - echo $ECHO_N "(cached) $ECHO_C" >&6
25331 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wchar_t is signed" >&5
25332 +$as_echo_n "checking whether wchar_t is signed... " >&6; }
25333 + if ${ac_cv_wchar_t_signed+:} false; then :
25334 + $as_echo_n "(cached) " >&6
25335 else
25337 - if test "$cross_compiling" = yes; then
25338 + if test "$cross_compiling" = yes; then :
25339 ac_cv_wchar_t_signed=yes
25340 else
25341 - cat >conftest.$ac_ext <<_ACEOF
25342 -/* confdefs.h. */
25343 -_ACEOF
25344 -cat confdefs.h >>conftest.$ac_ext
25345 -cat >>conftest.$ac_ext <<_ACEOF
25346 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25347 /* end confdefs.h. */
25349 #include <wchar.h>
25350 @@ -20466,49 +10767,25 @@
25353 _ACEOF
25354 -rm -f conftest$ac_exeext
25355 -if { (ac_try="$ac_link"
25356 -case "(($ac_try" in
25357 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25358 - *) ac_try_echo=$ac_try;;
25359 -esac
25360 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25361 - (eval "$ac_link") 2>&5
25362 - ac_status=$?
25363 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
25364 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25365 - { (case "(($ac_try" in
25366 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25367 - *) ac_try_echo=$ac_try;;
25368 -esac
25369 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25370 - (eval "$ac_try") 2>&5
25371 - ac_status=$?
25372 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
25373 - (exit $ac_status); }; }; then
25374 +if ac_fn_c_try_run "$LINENO"; then :
25375 ac_cv_wchar_t_signed=yes
25376 else
25377 - echo "$as_me: program exited with status $ac_status" >&5
25378 -echo "$as_me: failed program was:" >&5
25379 -sed 's/^/| /' conftest.$ac_ext >&5
25381 -( exit $ac_status )
25382 -ac_cv_wchar_t_signed=no
25383 + ac_cv_wchar_t_signed=no
25385 -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25386 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25387 + conftest.$ac_objext conftest.beam conftest.$ac_ext
25393 - { echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
25394 -echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6; }
25395 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_wchar_t_signed" >&5
25396 +$as_echo "$ac_cv_wchar_t_signed" >&6; }
25399 -{ echo "$as_me:$LINENO: checking what type to use for unicode" >&5
25400 -echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6; }
25401 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what type to use for unicode" >&5
25402 +$as_echo_n "checking what type to use for unicode... " >&6; }
25403 # Check whether --enable-unicode was given.
25404 -if test "${enable_unicode+set}" = set; then
25405 +if test "${enable_unicode+set}" = set; then :
25406 enableval=$enable_unicode;
25407 else
25408 enable_unicode=yes
25409 @@ -20527,18 +10804,13 @@
25414 case "$enable_unicode" in
25415 ucs2) unicode_size="2"
25416 - cat >>confdefs.h <<\_ACEOF
25417 -#define Py_UNICODE_SIZE 2
25418 -_ACEOF
25419 + $as_echo "#define Py_UNICODE_SIZE 2" >>confdefs.h
25422 ucs4) unicode_size="4"
25423 - cat >>confdefs.h <<\_ACEOF
25424 -#define Py_UNICODE_SIZE 4
25425 -_ACEOF
25426 + $as_echo "#define Py_UNICODE_SIZE 4" >>confdefs.h
25429 esac
25430 @@ -20546,18 +10818,15 @@
25435 if test "$enable_unicode" = "no"
25436 then
25437 UNICODE_OBJS=""
25438 - { echo "$as_me:$LINENO: result: not used" >&5
25439 -echo "${ECHO_T}not used" >&6; }
25440 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: not used" >&5
25441 +$as_echo "not used" >&6; }
25442 else
25443 UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o"
25445 -cat >>confdefs.h <<\_ACEOF
25446 -#define Py_USING_UNICODE 1
25447 -_ACEOF
25448 +$as_echo "#define Py_USING_UNICODE 1" >>confdefs.h
25451 # wchar_t is only usable if it maps to an unsigned type
25452 @@ -20566,291 +10835,266 @@
25453 then
25454 PY_UNICODE_TYPE="wchar_t"
25456 -cat >>confdefs.h <<\_ACEOF
25457 -#define HAVE_USABLE_WCHAR_T 1
25458 -_ACEOF
25459 +$as_echo "#define HAVE_USABLE_WCHAR_T 1" >>confdefs.h
25461 - cat >>confdefs.h <<\_ACEOF
25462 -#define PY_UNICODE_TYPE wchar_t
25463 -_ACEOF
25464 + $as_echo "#define PY_UNICODE_TYPE wchar_t" >>confdefs.h
25466 elif test "$ac_cv_sizeof_short" = "$unicode_size"
25467 then
25468 PY_UNICODE_TYPE="unsigned short"
25469 - cat >>confdefs.h <<\_ACEOF
25470 -#define PY_UNICODE_TYPE unsigned short
25471 -_ACEOF
25472 + $as_echo "#define PY_UNICODE_TYPE unsigned short" >>confdefs.h
25474 elif test "$ac_cv_sizeof_long" = "$unicode_size"
25475 then
25476 PY_UNICODE_TYPE="unsigned long"
25477 - cat >>confdefs.h <<\_ACEOF
25478 -#define PY_UNICODE_TYPE unsigned long
25479 -_ACEOF
25480 + $as_echo "#define PY_UNICODE_TYPE unsigned long" >>confdefs.h
25482 else
25483 PY_UNICODE_TYPE="no type found"
25485 - { echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
25486 -echo "${ECHO_T}$PY_UNICODE_TYPE" >&6; }
25487 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PY_UNICODE_TYPE" >&5
25488 +$as_echo "$PY_UNICODE_TYPE" >&6; }
25491 # check for endianness
25492 -{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
25493 -echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
25494 -if test "${ac_cv_c_bigendian+set}" = set; then
25495 - echo $ECHO_N "(cached) $ECHO_C" >&6
25496 -else
25497 - # See if sys/param.h defines the BYTE_ORDER macro.
25498 -cat >conftest.$ac_ext <<_ACEOF
25499 -/* confdefs.h. */
25500 -_ACEOF
25501 -cat confdefs.h >>conftest.$ac_ext
25502 -cat >>conftest.$ac_ext <<_ACEOF
25503 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
25504 +$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
25505 +if ${ac_cv_c_bigendian+:} false; then :
25506 + $as_echo_n "(cached) " >&6
25507 +else
25508 + ac_cv_c_bigendian=unknown
25509 + # See if we're dealing with a universal compiler.
25510 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25511 +/* end confdefs.h. */
25512 +#ifndef __APPLE_CC__
25513 + not a universal capable compiler
25514 + #endif
25515 + typedef int dummy;
25517 +_ACEOF
25518 +if ac_fn_c_try_compile "$LINENO"; then :
25520 + # Check for potential -arch flags. It is not universal unless
25521 + # there are at least two -arch flags with different values.
25522 + ac_arch=
25523 + ac_prev=
25524 + for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
25525 + if test -n "$ac_prev"; then
25526 + case $ac_word in
25527 + i?86 | x86_64 | ppc | ppc64)
25528 + if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
25529 + ac_arch=$ac_word
25530 + else
25531 + ac_cv_c_bigendian=universal
25532 + break
25533 + fi
25534 + ;;
25535 + esac
25536 + ac_prev=
25537 + elif test "x$ac_word" = "x-arch"; then
25538 + ac_prev=arch
25539 + fi
25540 + done
25542 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25543 + if test $ac_cv_c_bigendian = unknown; then
25544 + # See if sys/param.h defines the BYTE_ORDER macro.
25545 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25546 /* end confdefs.h. */
25547 #include <sys/types.h>
25548 -#include <sys/param.h>
25549 + #include <sys/param.h>
25552 main ()
25554 -#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
25555 - && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
25556 - bogus endian macros
25557 -#endif
25558 +#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
25559 + && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
25560 + && LITTLE_ENDIAN)
25561 + bogus endian macros
25562 + #endif
25565 return 0;
25567 _ACEOF
25568 -rm -f conftest.$ac_objext
25569 -if { (ac_try="$ac_compile"
25570 -case "(($ac_try" in
25571 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25572 - *) ac_try_echo=$ac_try;;
25573 -esac
25574 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25575 - (eval "$ac_compile") 2>conftest.er1
25576 - ac_status=$?
25577 - grep -v '^ *+' conftest.er1 >conftest.err
25578 - rm -f conftest.er1
25579 - cat conftest.err >&5
25580 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
25581 - (exit $ac_status); } && {
25582 - test -z "$ac_c_werror_flag" ||
25583 - test ! -s conftest.err
25584 - } && test -s conftest.$ac_objext; then
25585 +if ac_fn_c_try_compile "$LINENO"; then :
25586 # It does; now see whether it defined to BIG_ENDIAN or not.
25587 -cat >conftest.$ac_ext <<_ACEOF
25588 -/* confdefs.h. */
25589 -_ACEOF
25590 -cat confdefs.h >>conftest.$ac_ext
25591 -cat >>conftest.$ac_ext <<_ACEOF
25592 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25593 /* end confdefs.h. */
25594 #include <sys/types.h>
25595 -#include <sys/param.h>
25596 + #include <sys/param.h>
25599 main ()
25601 #if BYTE_ORDER != BIG_ENDIAN
25602 - not big endian
25603 -#endif
25604 + not big endian
25605 + #endif
25608 return 0;
25610 _ACEOF
25611 -rm -f conftest.$ac_objext
25612 -if { (ac_try="$ac_compile"
25613 -case "(($ac_try" in
25614 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25615 - *) ac_try_echo=$ac_try;;
25616 -esac
25617 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25618 - (eval "$ac_compile") 2>conftest.er1
25619 - ac_status=$?
25620 - grep -v '^ *+' conftest.er1 >conftest.err
25621 - rm -f conftest.er1
25622 - cat conftest.err >&5
25623 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
25624 - (exit $ac_status); } && {
25625 - test -z "$ac_c_werror_flag" ||
25626 - test ! -s conftest.err
25627 - } && test -s conftest.$ac_objext; then
25628 +if ac_fn_c_try_compile "$LINENO"; then :
25629 ac_cv_c_bigendian=yes
25630 else
25631 - echo "$as_me: failed program was:" >&5
25632 -sed 's/^/| /' conftest.$ac_ext >&5
25634 - ac_cv_c_bigendian=no
25635 + ac_cv_c_bigendian=no
25638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25639 -else
25640 - echo "$as_me: failed program was:" >&5
25641 -sed 's/^/| /' conftest.$ac_ext >&5
25643 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25644 + fi
25645 + if test $ac_cv_c_bigendian = unknown; then
25646 + # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
25647 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25648 +/* end confdefs.h. */
25649 +#include <limits.h>
25651 - # It does not; compile a test program.
25652 -if test "$cross_compiling" = yes; then
25653 - # try to guess the endianness by grepping values into an object file
25654 - ac_cv_c_bigendian=unknown
25655 - cat >conftest.$ac_ext <<_ACEOF
25656 -/* confdefs.h. */
25657 +int
25658 +main ()
25660 +#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
25661 + bogus endian macros
25662 + #endif
25665 + return 0;
25667 +_ACEOF
25668 +if ac_fn_c_try_compile "$LINENO"; then :
25669 + # It does; now see whether it defined to _BIG_ENDIAN or not.
25670 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25671 +/* end confdefs.h. */
25672 +#include <limits.h>
25674 +int
25675 +main ()
25677 +#ifndef _BIG_ENDIAN
25678 + not big endian
25679 + #endif
25682 + return 0;
25684 _ACEOF
25685 -cat confdefs.h >>conftest.$ac_ext
25686 -cat >>conftest.$ac_ext <<_ACEOF
25687 +if ac_fn_c_try_compile "$LINENO"; then :
25688 + ac_cv_c_bigendian=yes
25689 +else
25690 + ac_cv_c_bigendian=no
25692 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25694 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25695 + fi
25696 + if test $ac_cv_c_bigendian = unknown; then
25697 + # Compile a test program.
25698 + if test "$cross_compiling" = yes; then :
25699 + # Try to guess by grepping values from an object file.
25700 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25701 /* end confdefs.h. */
25702 -short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
25703 -short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
25704 -void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
25705 -short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
25706 -short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
25707 -void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
25708 +short int ascii_mm[] =
25709 + { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
25710 + short int ascii_ii[] =
25711 + { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
25712 + int use_ascii (int i) {
25713 + return ascii_mm[i] + ascii_ii[i];
25715 + short int ebcdic_ii[] =
25716 + { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
25717 + short int ebcdic_mm[] =
25718 + { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
25719 + int use_ebcdic (int i) {
25720 + return ebcdic_mm[i] + ebcdic_ii[i];
25722 + extern int foo;
25725 main ()
25727 - _ascii (); _ebcdic ();
25728 +return use_ascii (foo) == use_ebcdic (foo);
25730 return 0;
25732 _ACEOF
25733 -rm -f conftest.$ac_objext
25734 -if { (ac_try="$ac_compile"
25735 -case "(($ac_try" in
25736 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25737 - *) ac_try_echo=$ac_try;;
25738 -esac
25739 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25740 - (eval "$ac_compile") 2>conftest.er1
25741 - ac_status=$?
25742 - grep -v '^ *+' conftest.er1 >conftest.err
25743 - rm -f conftest.er1
25744 - cat conftest.err >&5
25745 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
25746 - (exit $ac_status); } && {
25747 - test -z "$ac_c_werror_flag" ||
25748 - test ! -s conftest.err
25749 - } && test -s conftest.$ac_objext; then
25750 - if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
25751 - ac_cv_c_bigendian=yes
25753 -if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
25754 - if test "$ac_cv_c_bigendian" = unknown; then
25755 - ac_cv_c_bigendian=no
25756 - else
25757 - # finding both strings is unlikely to happen, but who knows?
25758 - ac_cv_c_bigendian=unknown
25759 - fi
25761 -else
25762 - echo "$as_me: failed program was:" >&5
25763 -sed 's/^/| /' conftest.$ac_ext >&5
25766 +if ac_fn_c_try_compile "$LINENO"; then :
25767 + if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
25768 + ac_cv_c_bigendian=yes
25769 + fi
25770 + if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
25771 + if test "$ac_cv_c_bigendian" = unknown; then
25772 + ac_cv_c_bigendian=no
25773 + else
25774 + # finding both strings is unlikely to happen, but who knows?
25775 + ac_cv_c_bigendian=unknown
25776 + fi
25777 + fi
25780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25781 else
25782 - cat >conftest.$ac_ext <<_ACEOF
25783 -/* confdefs.h. */
25784 -_ACEOF
25785 -cat confdefs.h >>conftest.$ac_ext
25786 -cat >>conftest.$ac_ext <<_ACEOF
25787 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25788 /* end confdefs.h. */
25789 $ac_includes_default
25791 main ()
25794 - /* Are we little or big endian? From Harbison&Steele. */
25795 - union
25797 - long int l;
25798 - char c[sizeof (long int)];
25799 - } u;
25800 - u.l = 1;
25801 - return u.c[sizeof (long int) - 1] == 1;
25802 + /* Are we little or big endian? From Harbison&Steele. */
25803 + union
25805 + long int l;
25806 + char c[sizeof (long int)];
25807 + } u;
25808 + u.l = 1;
25809 + return u.c[sizeof (long int) - 1] == 1;
25812 return 0;
25814 _ACEOF
25815 -rm -f conftest$ac_exeext
25816 -if { (ac_try="$ac_link"
25817 -case "(($ac_try" in
25818 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25819 - *) ac_try_echo=$ac_try;;
25820 -esac
25821 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25822 - (eval "$ac_link") 2>&5
25823 - ac_status=$?
25824 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
25825 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25826 - { (case "(($ac_try" in
25827 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25828 - *) ac_try_echo=$ac_try;;
25829 -esac
25830 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25831 - (eval "$ac_try") 2>&5
25832 - ac_status=$?
25833 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
25834 - (exit $ac_status); }; }; then
25835 +if ac_fn_c_try_run "$LINENO"; then :
25836 ac_cv_c_bigendian=no
25837 else
25838 - echo "$as_me: program exited with status $ac_status" >&5
25839 -echo "$as_me: failed program was:" >&5
25840 -sed 's/^/| /' conftest.$ac_ext >&5
25842 -( exit $ac_status )
25843 -ac_cv_c_bigendian=yes
25845 -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25846 + ac_cv_c_bigendian=yes
25850 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25851 + conftest.$ac_objext conftest.beam conftest.$ac_ext
25854 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25855 + fi
25857 -{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
25858 -echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
25859 -case $ac_cv_c_bigendian in
25860 - yes)
25861 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
25862 +$as_echo "$ac_cv_c_bigendian" >&6; }
25863 + case $ac_cv_c_bigendian in #(
25864 + yes)
25865 + $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
25866 +;; #(
25867 + no)
25868 + ;; #(
25869 + universal)
25871 -cat >>confdefs.h <<\_ACEOF
25872 -#define WORDS_BIGENDIAN 1
25873 -_ACEOF
25874 - ;;
25875 - no)
25876 - ;;
25877 - *)
25878 - { { echo "$as_me:$LINENO: error: unknown endianness
25879 -presetting ac_cv_c_bigendian=no (or yes) will help" >&5
25880 -echo "$as_me: error: unknown endianness
25881 -presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
25882 - { (exit 1); exit 1; }; } ;;
25883 -esac
25884 +$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
25886 + ;; #(
25887 + *)
25888 + as_fn_error $? "unknown endianness
25889 + presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
25890 + esac
25894 # Check whether right shifting a negative integer extends the sign bit
25895 # or fills with zeros (like the Cray J90, according to Tim Peters).
25896 -{ echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
25897 -echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6; }
25898 -if test "${ac_cv_rshift_extends_sign+set}" = set; then
25899 - echo $ECHO_N "(cached) $ECHO_C" >&6
25900 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether right shift extends the sign bit" >&5
25901 +$as_echo_n "checking whether right shift extends the sign bit... " >&6; }
25902 +if ${ac_cv_rshift_extends_sign+:} false; then :
25903 + $as_echo_n "(cached) " >&6
25904 else
25906 -if test "$cross_compiling" = yes; then
25907 +if test "$cross_compiling" = yes; then :
25908 ac_cv_rshift_extends_sign=yes
25909 else
25910 - cat >conftest.$ac_ext <<_ACEOF
25911 -/* confdefs.h. */
25912 -_ACEOF
25913 -cat confdefs.h >>conftest.$ac_ext
25914 -cat >>conftest.$ac_ext <<_ACEOF
25915 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25916 /* end confdefs.h. */
25918 int main()
25919 @@ -20859,64 +11103,34 @@
25922 _ACEOF
25923 -rm -f conftest$ac_exeext
25924 -if { (ac_try="$ac_link"
25925 -case "(($ac_try" in
25926 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25927 - *) ac_try_echo=$ac_try;;
25928 -esac
25929 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25930 - (eval "$ac_link") 2>&5
25931 - ac_status=$?
25932 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
25933 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25934 - { (case "(($ac_try" in
25935 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25936 - *) ac_try_echo=$ac_try;;
25937 -esac
25938 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25939 - (eval "$ac_try") 2>&5
25940 - ac_status=$?
25941 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
25942 - (exit $ac_status); }; }; then
25943 +if ac_fn_c_try_run "$LINENO"; then :
25944 ac_cv_rshift_extends_sign=yes
25945 else
25946 - echo "$as_me: program exited with status $ac_status" >&5
25947 -echo "$as_me: failed program was:" >&5
25948 -sed 's/^/| /' conftest.$ac_ext >&5
25950 -( exit $ac_status )
25951 -ac_cv_rshift_extends_sign=no
25952 + ac_cv_rshift_extends_sign=no
25954 -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25955 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25956 + conftest.$ac_objext conftest.beam conftest.$ac_ext
25962 -{ echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
25963 -echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6; }
25964 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rshift_extends_sign" >&5
25965 +$as_echo "$ac_cv_rshift_extends_sign" >&6; }
25966 if test "$ac_cv_rshift_extends_sign" = no
25967 then
25969 -cat >>confdefs.h <<\_ACEOF
25970 -#define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
25971 -_ACEOF
25972 +$as_echo "#define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1" >>confdefs.h
25976 # check for getc_unlocked and related locking functions
25977 -{ echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
25978 -echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6; }
25979 -if test "${ac_cv_have_getc_unlocked+set}" = set; then
25980 - echo $ECHO_N "(cached) $ECHO_C" >&6
25981 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getc_unlocked() and friends" >&5
25982 +$as_echo_n "checking for getc_unlocked() and friends... " >&6; }
25983 +if ${ac_cv_have_getc_unlocked+:} false; then :
25984 + $as_echo_n "(cached) " >&6
25985 else
25987 -cat >conftest.$ac_ext <<_ACEOF
25988 -/* confdefs.h. */
25989 -_ACEOF
25990 -cat confdefs.h >>conftest.$ac_ext
25991 -cat >>conftest.$ac_ext <<_ACEOF
25992 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25993 /* end confdefs.h. */
25994 #include <stdio.h>
25996 @@ -20932,63 +11146,35 @@
25997 return 0;
25999 _ACEOF
26000 -rm -f conftest.$ac_objext conftest$ac_exeext
26001 -if { (ac_try="$ac_link"
26002 -case "(($ac_try" in
26003 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26004 - *) ac_try_echo=$ac_try;;
26005 -esac
26006 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26007 - (eval "$ac_link") 2>conftest.er1
26008 - ac_status=$?
26009 - grep -v '^ *+' conftest.er1 >conftest.err
26010 - rm -f conftest.er1
26011 - cat conftest.err >&5
26012 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
26013 - (exit $ac_status); } && {
26014 - test -z "$ac_c_werror_flag" ||
26015 - test ! -s conftest.err
26016 - } && test -s conftest$ac_exeext &&
26017 - $as_test_x conftest$ac_exeext; then
26018 +if ac_fn_c_try_link "$LINENO"; then :
26019 ac_cv_have_getc_unlocked=yes
26020 else
26021 - echo "$as_me: failed program was:" >&5
26022 -sed 's/^/| /' conftest.$ac_ext >&5
26024 - ac_cv_have_getc_unlocked=no
26025 + ac_cv_have_getc_unlocked=no
26028 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26029 - conftest$ac_exeext conftest.$ac_ext
26030 +rm -f core conftest.err conftest.$ac_objext \
26031 + conftest$ac_exeext conftest.$ac_ext
26034 -{ echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
26035 -echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6; }
26036 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getc_unlocked" >&5
26037 +$as_echo "$ac_cv_have_getc_unlocked" >&6; }
26038 if test "$ac_cv_have_getc_unlocked" = yes
26039 then
26041 -cat >>confdefs.h <<\_ACEOF
26042 -#define HAVE_GETC_UNLOCKED 1
26043 -_ACEOF
26044 +$as_echo "#define HAVE_GETC_UNLOCKED 1" >>confdefs.h
26048 # check where readline lives
26049 # save the value of LIBS so we don't actually link Python with readline
26050 LIBS_no_readline=$LIBS
26052 -{ echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
26053 -echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6; }
26054 -if test "${ac_cv_lib_readline_readline+set}" = set; then
26055 - echo $ECHO_N "(cached) $ECHO_C" >&6
26056 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
26057 +$as_echo_n "checking for readline in -lreadline... " >&6; }
26058 +if ${ac_cv_lib_readline_readline+:} false; then :
26059 + $as_echo_n "(cached) " >&6
26060 else
26061 ac_check_lib_save_LIBS=$LIBS
26062 LIBS="-lreadline $LIBS"
26063 -cat >conftest.$ac_ext <<_ACEOF
26064 -/* confdefs.h. */
26065 -_ACEOF
26066 -cat confdefs.h >>conftest.$ac_ext
26067 -cat >>conftest.$ac_ext <<_ACEOF
26068 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26069 /* end confdefs.h. */
26071 /* Override any GCC internal prototype to avoid an error.
26072 @@ -21006,39 +11192,18 @@
26073 return 0;
26075 _ACEOF
26076 -rm -f conftest.$ac_objext conftest$ac_exeext
26077 -if { (ac_try="$ac_link"
26078 -case "(($ac_try" in
26079 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26080 - *) ac_try_echo=$ac_try;;
26081 -esac
26082 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26083 - (eval "$ac_link") 2>conftest.er1
26084 - ac_status=$?
26085 - grep -v '^ *+' conftest.er1 >conftest.err
26086 - rm -f conftest.er1
26087 - cat conftest.err >&5
26088 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
26089 - (exit $ac_status); } && {
26090 - test -z "$ac_c_werror_flag" ||
26091 - test ! -s conftest.err
26092 - } && test -s conftest$ac_exeext &&
26093 - $as_test_x conftest$ac_exeext; then
26094 +if ac_fn_c_try_link "$LINENO"; then :
26095 ac_cv_lib_readline_readline=yes
26096 else
26097 - echo "$as_me: failed program was:" >&5
26098 -sed 's/^/| /' conftest.$ac_ext >&5
26100 - ac_cv_lib_readline_readline=no
26101 + ac_cv_lib_readline_readline=no
26104 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26105 - conftest$ac_exeext conftest.$ac_ext
26106 +rm -f core conftest.err conftest.$ac_objext \
26107 + conftest$ac_exeext conftest.$ac_ext
26108 LIBS=$ac_check_lib_save_LIBS
26110 -{ echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
26111 -echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6; }
26112 -if test $ac_cv_lib_readline_readline = yes; then
26113 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
26114 +$as_echo "$ac_cv_lib_readline_readline" >&6; }
26115 +if test "x$ac_cv_lib_readline_readline" = xyes; then :
26116 cat >>confdefs.h <<_ACEOF
26117 #define HAVE_LIBREADLINE 1
26118 _ACEOF
26119 @@ -21049,19 +11214,14 @@
26121 if test "$ac_cv_have_readline_readline" = no
26122 then
26124 -{ echo "$as_me:$LINENO: checking for readline in -ltermcap" >&5
26125 -echo $ECHO_N "checking for readline in -ltermcap... $ECHO_C" >&6; }
26126 -if test "${ac_cv_lib_termcap_readline+set}" = set; then
26127 - echo $ECHO_N "(cached) $ECHO_C" >&6
26128 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -ltermcap" >&5
26129 +$as_echo_n "checking for readline in -ltermcap... " >&6; }
26130 +if ${ac_cv_lib_termcap_readline+:} false; then :
26131 + $as_echo_n "(cached) " >&6
26132 else
26133 ac_check_lib_save_LIBS=$LIBS
26134 LIBS="-ltermcap $LIBS"
26135 -cat >conftest.$ac_ext <<_ACEOF
26136 -/* confdefs.h. */
26137 -_ACEOF
26138 -cat confdefs.h >>conftest.$ac_ext
26139 -cat >>conftest.$ac_ext <<_ACEOF
26140 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26141 /* end confdefs.h. */
26143 /* Override any GCC internal prototype to avoid an error.
26144 @@ -21079,39 +11239,18 @@
26145 return 0;
26147 _ACEOF
26148 -rm -f conftest.$ac_objext conftest$ac_exeext
26149 -if { (ac_try="$ac_link"
26150 -case "(($ac_try" in
26151 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26152 - *) ac_try_echo=$ac_try;;
26153 -esac
26154 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26155 - (eval "$ac_link") 2>conftest.er1
26156 - ac_status=$?
26157 - grep -v '^ *+' conftest.er1 >conftest.err
26158 - rm -f conftest.er1
26159 - cat conftest.err >&5
26160 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
26161 - (exit $ac_status); } && {
26162 - test -z "$ac_c_werror_flag" ||
26163 - test ! -s conftest.err
26164 - } && test -s conftest$ac_exeext &&
26165 - $as_test_x conftest$ac_exeext; then
26166 +if ac_fn_c_try_link "$LINENO"; then :
26167 ac_cv_lib_termcap_readline=yes
26168 else
26169 - echo "$as_me: failed program was:" >&5
26170 -sed 's/^/| /' conftest.$ac_ext >&5
26172 - ac_cv_lib_termcap_readline=no
26173 + ac_cv_lib_termcap_readline=no
26176 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26177 - conftest$ac_exeext conftest.$ac_ext
26178 +rm -f core conftest.err conftest.$ac_objext \
26179 + conftest$ac_exeext conftest.$ac_ext
26180 LIBS=$ac_check_lib_save_LIBS
26182 -{ echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_readline" >&5
26183 -echo "${ECHO_T}$ac_cv_lib_termcap_readline" >&6; }
26184 -if test $ac_cv_lib_termcap_readline = yes; then
26185 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_readline" >&5
26186 +$as_echo "$ac_cv_lib_termcap_readline" >&6; }
26187 +if test "x$ac_cv_lib_termcap_readline" = xyes; then :
26188 cat >>confdefs.h <<_ACEOF
26189 #define HAVE_LIBTERMCAP 1
26190 _ACEOF
26191 @@ -21123,18 +11262,14 @@
26194 # check for readline 2.1
26195 -{ echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
26196 -echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6; }
26197 -if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
26198 - echo $ECHO_N "(cached) $ECHO_C" >&6
26199 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_callback_handler_install in -lreadline" >&5
26200 +$as_echo_n "checking for rl_callback_handler_install in -lreadline... " >&6; }
26201 +if ${ac_cv_lib_readline_rl_callback_handler_install+:} false; then :
26202 + $as_echo_n "(cached) " >&6
26203 else
26204 ac_check_lib_save_LIBS=$LIBS
26205 LIBS="-lreadline $LIBS"
26206 -cat >conftest.$ac_ext <<_ACEOF
26207 -/* confdefs.h. */
26208 -_ACEOF
26209 -cat confdefs.h >>conftest.$ac_ext
26210 -cat >>conftest.$ac_ext <<_ACEOF
26211 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26212 /* end confdefs.h. */
26214 /* Override any GCC internal prototype to avoid an error.
26215 @@ -21152,98 +11287,46 @@
26216 return 0;
26218 _ACEOF
26219 -rm -f conftest.$ac_objext conftest$ac_exeext
26220 -if { (ac_try="$ac_link"
26221 -case "(($ac_try" in
26222 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26223 - *) ac_try_echo=$ac_try;;
26224 -esac
26225 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26226 - (eval "$ac_link") 2>conftest.er1
26227 - ac_status=$?
26228 - grep -v '^ *+' conftest.er1 >conftest.err
26229 - rm -f conftest.er1
26230 - cat conftest.err >&5
26231 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
26232 - (exit $ac_status); } && {
26233 - test -z "$ac_c_werror_flag" ||
26234 - test ! -s conftest.err
26235 - } && test -s conftest$ac_exeext &&
26236 - $as_test_x conftest$ac_exeext; then
26237 +if ac_fn_c_try_link "$LINENO"; then :
26238 ac_cv_lib_readline_rl_callback_handler_install=yes
26239 else
26240 - echo "$as_me: failed program was:" >&5
26241 -sed 's/^/| /' conftest.$ac_ext >&5
26243 - ac_cv_lib_readline_rl_callback_handler_install=no
26244 + ac_cv_lib_readline_rl_callback_handler_install=no
26247 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26248 - conftest$ac_exeext conftest.$ac_ext
26249 +rm -f core conftest.err conftest.$ac_objext \
26250 + conftest$ac_exeext conftest.$ac_ext
26251 LIBS=$ac_check_lib_save_LIBS
26253 -{ echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
26254 -echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
26255 -if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
26256 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
26257 +$as_echo "$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
26258 +if test "x$ac_cv_lib_readline_rl_callback_handler_install" = xyes; then :
26260 -cat >>confdefs.h <<\_ACEOF
26261 -#define HAVE_RL_CALLBACK 1
26262 -_ACEOF
26263 +$as_echo "#define HAVE_RL_CALLBACK 1" >>confdefs.h
26268 # check for readline 2.2
26269 -cat >conftest.$ac_ext <<_ACEOF
26270 -/* confdefs.h. */
26271 -_ACEOF
26272 -cat confdefs.h >>conftest.$ac_ext
26273 -cat >>conftest.$ac_ext <<_ACEOF
26274 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26275 /* end confdefs.h. */
26276 #include <readline/readline.h>
26277 _ACEOF
26278 -if { (ac_try="$ac_cpp conftest.$ac_ext"
26279 -case "(($ac_try" in
26280 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26281 - *) ac_try_echo=$ac_try;;
26282 -esac
26283 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26284 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26285 - ac_status=$?
26286 - grep -v '^ *+' conftest.er1 >conftest.err
26287 - rm -f conftest.er1
26288 - cat conftest.err >&5
26289 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
26290 - (exit $ac_status); } >/dev/null && {
26291 - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26292 - test ! -s conftest.err
26293 - }; then
26294 +if ac_fn_c_try_cpp "$LINENO"; then :
26295 have_readline=yes
26296 else
26297 - echo "$as_me: failed program was:" >&5
26298 -sed 's/^/| /' conftest.$ac_ext >&5
26300 have_readline=no
26303 -rm -f conftest.err conftest.$ac_ext
26304 +rm -f conftest.err conftest.i conftest.$ac_ext
26305 if test $have_readline = yes
26306 then
26307 - cat >conftest.$ac_ext <<_ACEOF
26308 -/* confdefs.h. */
26309 -_ACEOF
26310 -cat confdefs.h >>conftest.$ac_ext
26311 -cat >>conftest.$ac_ext <<_ACEOF
26312 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26313 /* end confdefs.h. */
26314 #include <readline/readline.h>
26316 _ACEOF
26317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26318 - $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then
26319 + $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then :
26321 -cat >>confdefs.h <<\_ACEOF
26322 -#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
26323 -_ACEOF
26324 +$as_echo "#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1" >>confdefs.h
26327 rm -f conftest*
26328 @@ -21251,18 +11334,14 @@
26331 # check for readline 4.0
26332 -{ echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
26333 -echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6; }
26334 -if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
26335 - echo $ECHO_N "(cached) $ECHO_C" >&6
26336 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_pre_input_hook in -lreadline" >&5
26337 +$as_echo_n "checking for rl_pre_input_hook in -lreadline... " >&6; }
26338 +if ${ac_cv_lib_readline_rl_pre_input_hook+:} false; then :
26339 + $as_echo_n "(cached) " >&6
26340 else
26341 ac_check_lib_save_LIBS=$LIBS
26342 LIBS="-lreadline $LIBS"
26343 -cat >conftest.$ac_ext <<_ACEOF
26344 -/* confdefs.h. */
26345 -_ACEOF
26346 -cat confdefs.h >>conftest.$ac_ext
26347 -cat >>conftest.$ac_ext <<_ACEOF
26348 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26349 /* end confdefs.h. */
26351 /* Override any GCC internal prototype to avoid an error.
26352 @@ -21280,60 +11359,33 @@
26353 return 0;
26355 _ACEOF
26356 -rm -f conftest.$ac_objext conftest$ac_exeext
26357 -if { (ac_try="$ac_link"
26358 -case "(($ac_try" in
26359 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26360 - *) ac_try_echo=$ac_try;;
26361 -esac
26362 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26363 - (eval "$ac_link") 2>conftest.er1
26364 - ac_status=$?
26365 - grep -v '^ *+' conftest.er1 >conftest.err
26366 - rm -f conftest.er1
26367 - cat conftest.err >&5
26368 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
26369 - (exit $ac_status); } && {
26370 - test -z "$ac_c_werror_flag" ||
26371 - test ! -s conftest.err
26372 - } && test -s conftest$ac_exeext &&
26373 - $as_test_x conftest$ac_exeext; then
26374 +if ac_fn_c_try_link "$LINENO"; then :
26375 ac_cv_lib_readline_rl_pre_input_hook=yes
26376 else
26377 - echo "$as_me: failed program was:" >&5
26378 -sed 's/^/| /' conftest.$ac_ext >&5
26380 - ac_cv_lib_readline_rl_pre_input_hook=no
26381 + ac_cv_lib_readline_rl_pre_input_hook=no
26384 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26385 - conftest$ac_exeext conftest.$ac_ext
26386 +rm -f core conftest.err conftest.$ac_objext \
26387 + conftest$ac_exeext conftest.$ac_ext
26388 LIBS=$ac_check_lib_save_LIBS
26390 -{ echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
26391 -echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6; }
26392 -if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
26393 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
26394 +$as_echo "$ac_cv_lib_readline_rl_pre_input_hook" >&6; }
26395 +if test "x$ac_cv_lib_readline_rl_pre_input_hook" = xyes; then :
26397 -cat >>confdefs.h <<\_ACEOF
26398 -#define HAVE_RL_PRE_INPUT_HOOK 1
26399 -_ACEOF
26400 +$as_echo "#define HAVE_RL_PRE_INPUT_HOOK 1" >>confdefs.h
26405 # check for readline 4.2
26406 -{ echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
26407 -echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6; }
26408 -if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
26409 - echo $ECHO_N "(cached) $ECHO_C" >&6
26410 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_matches in -lreadline" >&5
26411 +$as_echo_n "checking for rl_completion_matches in -lreadline... " >&6; }
26412 +if ${ac_cv_lib_readline_rl_completion_matches+:} false; then :
26413 + $as_echo_n "(cached) " >&6
26414 else
26415 ac_check_lib_save_LIBS=$LIBS
26416 LIBS="-lreadline $LIBS"
26417 -cat >conftest.$ac_ext <<_ACEOF
26418 -/* confdefs.h. */
26419 -_ACEOF
26420 -cat confdefs.h >>conftest.$ac_ext
26421 -cat >>conftest.$ac_ext <<_ACEOF
26422 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26423 /* end confdefs.h. */
26425 /* Override any GCC internal prototype to avoid an error.
26426 @@ -21351,98 +11403,46 @@
26427 return 0;
26429 _ACEOF
26430 -rm -f conftest.$ac_objext conftest$ac_exeext
26431 -if { (ac_try="$ac_link"
26432 -case "(($ac_try" in
26433 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26434 - *) ac_try_echo=$ac_try;;
26435 -esac
26436 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26437 - (eval "$ac_link") 2>conftest.er1
26438 - ac_status=$?
26439 - grep -v '^ *+' conftest.er1 >conftest.err
26440 - rm -f conftest.er1
26441 - cat conftest.err >&5
26442 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
26443 - (exit $ac_status); } && {
26444 - test -z "$ac_c_werror_flag" ||
26445 - test ! -s conftest.err
26446 - } && test -s conftest$ac_exeext &&
26447 - $as_test_x conftest$ac_exeext; then
26448 +if ac_fn_c_try_link "$LINENO"; then :
26449 ac_cv_lib_readline_rl_completion_matches=yes
26450 else
26451 - echo "$as_me: failed program was:" >&5
26452 -sed 's/^/| /' conftest.$ac_ext >&5
26454 - ac_cv_lib_readline_rl_completion_matches=no
26455 + ac_cv_lib_readline_rl_completion_matches=no
26458 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26459 - conftest$ac_exeext conftest.$ac_ext
26460 +rm -f core conftest.err conftest.$ac_objext \
26461 + conftest$ac_exeext conftest.$ac_ext
26462 LIBS=$ac_check_lib_save_LIBS
26464 -{ echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
26465 -echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6; }
26466 -if test $ac_cv_lib_readline_rl_completion_matches = yes; then
26467 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_matches" >&5
26468 +$as_echo "$ac_cv_lib_readline_rl_completion_matches" >&6; }
26469 +if test "x$ac_cv_lib_readline_rl_completion_matches" = xyes; then :
26471 -cat >>confdefs.h <<\_ACEOF
26472 -#define HAVE_RL_COMPLETION_MATCHES 1
26473 -_ACEOF
26474 +$as_echo "#define HAVE_RL_COMPLETION_MATCHES 1" >>confdefs.h
26479 # also in readline 4.2
26480 -cat >conftest.$ac_ext <<_ACEOF
26481 -/* confdefs.h. */
26482 -_ACEOF
26483 -cat confdefs.h >>conftest.$ac_ext
26484 -cat >>conftest.$ac_ext <<_ACEOF
26485 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26486 /* end confdefs.h. */
26487 #include <readline/readline.h>
26488 _ACEOF
26489 -if { (ac_try="$ac_cpp conftest.$ac_ext"
26490 -case "(($ac_try" in
26491 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26492 - *) ac_try_echo=$ac_try;;
26493 -esac
26494 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26495 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26496 - ac_status=$?
26497 - grep -v '^ *+' conftest.er1 >conftest.err
26498 - rm -f conftest.er1
26499 - cat conftest.err >&5
26500 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
26501 - (exit $ac_status); } >/dev/null && {
26502 - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26503 - test ! -s conftest.err
26504 - }; then
26505 +if ac_fn_c_try_cpp "$LINENO"; then :
26506 have_readline=yes
26507 else
26508 - echo "$as_me: failed program was:" >&5
26509 -sed 's/^/| /' conftest.$ac_ext >&5
26511 have_readline=no
26514 -rm -f conftest.err conftest.$ac_ext
26515 +rm -f conftest.err conftest.i conftest.$ac_ext
26516 if test $have_readline = yes
26517 then
26518 - cat >conftest.$ac_ext <<_ACEOF
26519 -/* confdefs.h. */
26520 -_ACEOF
26521 -cat confdefs.h >>conftest.$ac_ext
26522 -cat >>conftest.$ac_ext <<_ACEOF
26523 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26524 /* end confdefs.h. */
26525 #include <readline/readline.h>
26527 _ACEOF
26528 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26529 - $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then
26530 + $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then :
26532 -cat >>confdefs.h <<\_ACEOF
26533 -#define HAVE_RL_CATCH_SIGNAL 1
26534 -_ACEOF
26535 +$as_echo "#define HAVE_RL_CATCH_SIGNAL 1" >>confdefs.h
26538 rm -f conftest*
26539 @@ -21452,20 +11452,16 @@
26540 # End of readline checks: restore LIBS
26541 LIBS=$LIBS_no_readline
26543 -{ echo "$as_me:$LINENO: checking for broken nice()" >&5
26544 -echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6; }
26545 -if test "${ac_cv_broken_nice+set}" = set; then
26546 - echo $ECHO_N "(cached) $ECHO_C" >&6
26547 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken nice()" >&5
26548 +$as_echo_n "checking for broken nice()... " >&6; }
26549 +if ${ac_cv_broken_nice+:} false; then :
26550 + $as_echo_n "(cached) " >&6
26551 else
26553 -if test "$cross_compiling" = yes; then
26554 +if test "$cross_compiling" = yes; then :
26555 ac_cv_broken_nice=no
26556 else
26557 - cat >conftest.$ac_ext <<_ACEOF
26558 -/* confdefs.h. */
26559 -_ACEOF
26560 -cat confdefs.h >>conftest.$ac_ext
26561 -cat >>conftest.$ac_ext <<_ACEOF
26562 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26563 /* end confdefs.h. */
26565 int main()
26566 @@ -21477,62 +11473,32 @@
26569 _ACEOF
26570 -rm -f conftest$ac_exeext
26571 -if { (ac_try="$ac_link"
26572 -case "(($ac_try" in
26573 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26574 - *) ac_try_echo=$ac_try;;
26575 -esac
26576 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26577 - (eval "$ac_link") 2>&5
26578 - ac_status=$?
26579 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
26580 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26581 - { (case "(($ac_try" in
26582 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26583 - *) ac_try_echo=$ac_try;;
26584 -esac
26585 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26586 - (eval "$ac_try") 2>&5
26587 - ac_status=$?
26588 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
26589 - (exit $ac_status); }; }; then
26590 +if ac_fn_c_try_run "$LINENO"; then :
26591 ac_cv_broken_nice=yes
26592 else
26593 - echo "$as_me: program exited with status $ac_status" >&5
26594 -echo "$as_me: failed program was:" >&5
26595 -sed 's/^/| /' conftest.$ac_ext >&5
26597 -( exit $ac_status )
26598 -ac_cv_broken_nice=no
26599 + ac_cv_broken_nice=no
26601 -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26602 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26603 + conftest.$ac_objext conftest.beam conftest.$ac_ext
26609 -{ echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
26610 -echo "${ECHO_T}$ac_cv_broken_nice" >&6; }
26611 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_nice" >&5
26612 +$as_echo "$ac_cv_broken_nice" >&6; }
26613 if test "$ac_cv_broken_nice" = yes
26614 then
26616 -cat >>confdefs.h <<\_ACEOF
26617 -#define HAVE_BROKEN_NICE 1
26618 -_ACEOF
26619 +$as_echo "#define HAVE_BROKEN_NICE 1" >>confdefs.h
26623 -{ echo "$as_me:$LINENO: checking for broken poll()" >&5
26624 -echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6; }
26625 -if test "$cross_compiling" = yes; then
26626 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken poll()" >&5
26627 +$as_echo_n "checking for broken poll()... " >&6; }
26628 +if test "$cross_compiling" = yes; then :
26629 ac_cv_broken_poll=no
26630 else
26631 - cat >conftest.$ac_ext <<_ACEOF
26632 -/* confdefs.h. */
26633 -_ACEOF
26634 -cat confdefs.h >>conftest.$ac_ext
26635 -cat >>conftest.$ac_ext <<_ACEOF
26636 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26637 /* end confdefs.h. */
26639 #include <poll.h>
26640 @@ -21560,153 +11526,32 @@
26643 _ACEOF
26644 -rm -f conftest$ac_exeext
26645 -if { (ac_try="$ac_link"
26646 -case "(($ac_try" in
26647 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26648 - *) ac_try_echo=$ac_try;;
26649 -esac
26650 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26651 - (eval "$ac_link") 2>&5
26652 - ac_status=$?
26653 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
26654 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26655 - { (case "(($ac_try" in
26656 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26657 - *) ac_try_echo=$ac_try;;
26658 -esac
26659 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26660 - (eval "$ac_try") 2>&5
26661 - ac_status=$?
26662 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
26663 - (exit $ac_status); }; }; then
26664 +if ac_fn_c_try_run "$LINENO"; then :
26665 ac_cv_broken_poll=yes
26666 else
26667 - echo "$as_me: program exited with status $ac_status" >&5
26668 -echo "$as_me: failed program was:" >&5
26669 -sed 's/^/| /' conftest.$ac_ext >&5
26671 -( exit $ac_status )
26672 -ac_cv_broken_poll=no
26674 -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26678 -{ echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
26679 -echo "${ECHO_T}$ac_cv_broken_poll" >&6; }
26680 -if test "$ac_cv_broken_poll" = yes
26681 -then
26683 -cat >>confdefs.h <<\_ACEOF
26684 -#define HAVE_BROKEN_POLL 1
26685 -_ACEOF
26689 -# Before we can test tzset, we need to check if struct tm has a tm_zone
26690 -# (which is not required by ISO C or UNIX spec) and/or if we support
26691 -# tzname[]
26692 -{ echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
26693 -echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
26694 -if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
26695 - echo $ECHO_N "(cached) $ECHO_C" >&6
26696 -else
26697 - cat >conftest.$ac_ext <<_ACEOF
26698 -/* confdefs.h. */
26699 -_ACEOF
26700 -cat confdefs.h >>conftest.$ac_ext
26701 -cat >>conftest.$ac_ext <<_ACEOF
26702 -/* end confdefs.h. */
26703 -#include <sys/types.h>
26704 -#include <$ac_cv_struct_tm>
26707 -int
26708 -main ()
26710 -static struct tm ac_aggr;
26711 -if (ac_aggr.tm_zone)
26712 -return 0;
26714 - return 0;
26716 -_ACEOF
26717 -rm -f conftest.$ac_objext
26718 -if { (ac_try="$ac_compile"
26719 -case "(($ac_try" in
26720 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26721 - *) ac_try_echo=$ac_try;;
26722 -esac
26723 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26724 - (eval "$ac_compile") 2>conftest.er1
26725 - ac_status=$?
26726 - grep -v '^ *+' conftest.er1 >conftest.err
26727 - rm -f conftest.er1
26728 - cat conftest.err >&5
26729 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
26730 - (exit $ac_status); } && {
26731 - test -z "$ac_c_werror_flag" ||
26732 - test ! -s conftest.err
26733 - } && test -s conftest.$ac_objext; then
26734 - ac_cv_member_struct_tm_tm_zone=yes
26735 -else
26736 - echo "$as_me: failed program was:" >&5
26737 -sed 's/^/| /' conftest.$ac_ext >&5
26739 - cat >conftest.$ac_ext <<_ACEOF
26740 -/* confdefs.h. */
26741 -_ACEOF
26742 -cat confdefs.h >>conftest.$ac_ext
26743 -cat >>conftest.$ac_ext <<_ACEOF
26744 -/* end confdefs.h. */
26745 -#include <sys/types.h>
26746 -#include <$ac_cv_struct_tm>
26749 -int
26750 -main ()
26752 -static struct tm ac_aggr;
26753 -if (sizeof ac_aggr.tm_zone)
26754 -return 0;
26756 - return 0;
26758 -_ACEOF
26759 -rm -f conftest.$ac_objext
26760 -if { (ac_try="$ac_compile"
26761 -case "(($ac_try" in
26762 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26763 - *) ac_try_echo=$ac_try;;
26764 -esac
26765 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26766 - (eval "$ac_compile") 2>conftest.er1
26767 - ac_status=$?
26768 - grep -v '^ *+' conftest.er1 >conftest.err
26769 - rm -f conftest.er1
26770 - cat conftest.err >&5
26771 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
26772 - (exit $ac_status); } && {
26773 - test -z "$ac_c_werror_flag" ||
26774 - test ! -s conftest.err
26775 - } && test -s conftest.$ac_objext; then
26776 - ac_cv_member_struct_tm_tm_zone=yes
26777 -else
26778 - echo "$as_me: failed program was:" >&5
26779 -sed 's/^/| /' conftest.$ac_ext >&5
26781 - ac_cv_member_struct_tm_tm_zone=no
26782 + ac_cv_broken_poll=no
26785 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26786 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26787 + conftest.$ac_objext conftest.beam conftest.$ac_ext
26790 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26791 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_poll" >&5
26792 +$as_echo "$ac_cv_broken_poll" >&6; }
26793 +if test "$ac_cv_broken_poll" = yes
26794 +then
26796 +$as_echo "#define HAVE_BROKEN_POLL 1" >>confdefs.h
26799 -{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
26800 -echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
26801 -if test $ac_cv_member_struct_tm_tm_zone = yes; then
26803 +# Before we can test tzset, we need to check if struct tm has a tm_zone
26804 +# (which is not required by ISO C or UNIX spec) and/or if we support
26805 +# tzname[]
26806 +ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
26807 +#include <$ac_cv_struct_tm>
26810 +if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
26812 cat >>confdefs.h <<_ACEOF
26813 #define HAVE_STRUCT_TM_TM_ZONE 1
26814 @@ -21717,90 +11562,27 @@
26816 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
26818 -cat >>confdefs.h <<\_ACEOF
26819 -#define HAVE_TM_ZONE 1
26820 -_ACEOF
26821 +$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
26823 else
26824 - { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
26825 -echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
26826 -if test "${ac_cv_have_decl_tzname+set}" = set; then
26827 - echo $ECHO_N "(cached) $ECHO_C" >&6
26828 -else
26829 - cat >conftest.$ac_ext <<_ACEOF
26830 -/* confdefs.h. */
26831 -_ACEOF
26832 -cat confdefs.h >>conftest.$ac_ext
26833 -cat >>conftest.$ac_ext <<_ACEOF
26834 -/* end confdefs.h. */
26835 -#include <time.h>
26837 -int
26838 -main ()
26840 -#ifndef tzname
26841 - (void) tzname;
26842 -#endif
26845 - return 0;
26847 -_ACEOF
26848 -rm -f conftest.$ac_objext
26849 -if { (ac_try="$ac_compile"
26850 -case "(($ac_try" in
26851 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26852 - *) ac_try_echo=$ac_try;;
26853 -esac
26854 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26855 - (eval "$ac_compile") 2>conftest.er1
26856 - ac_status=$?
26857 - grep -v '^ *+' conftest.er1 >conftest.err
26858 - rm -f conftest.er1
26859 - cat conftest.err >&5
26860 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
26861 - (exit $ac_status); } && {
26862 - test -z "$ac_c_werror_flag" ||
26863 - test ! -s conftest.err
26864 - } && test -s conftest.$ac_objext; then
26865 - ac_cv_have_decl_tzname=yes
26866 + ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
26868 +if test "x$ac_cv_have_decl_tzname" = xyes; then :
26869 + ac_have_decl=1
26870 else
26871 - echo "$as_me: failed program was:" >&5
26872 -sed 's/^/| /' conftest.$ac_ext >&5
26874 - ac_cv_have_decl_tzname=no
26877 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26878 + ac_have_decl=0
26880 -{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
26881 -echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
26882 -if test $ac_cv_have_decl_tzname = yes; then
26884 cat >>confdefs.h <<_ACEOF
26885 -#define HAVE_DECL_TZNAME 1
26886 -_ACEOF
26889 -else
26890 - cat >>confdefs.h <<_ACEOF
26891 -#define HAVE_DECL_TZNAME 0
26892 +#define HAVE_DECL_TZNAME $ac_have_decl
26893 _ACEOF
26899 - { echo "$as_me:$LINENO: checking for tzname" >&5
26900 -echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
26901 -if test "${ac_cv_var_tzname+set}" = set; then
26902 - echo $ECHO_N "(cached) $ECHO_C" >&6
26903 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
26904 +$as_echo_n "checking for tzname... " >&6; }
26905 +if ${ac_cv_var_tzname+:} false; then :
26906 + $as_echo_n "(cached) " >&6
26907 else
26908 - cat >conftest.$ac_ext <<_ACEOF
26909 -/* confdefs.h. */
26910 -_ACEOF
26911 -cat confdefs.h >>conftest.$ac_ext
26912 -cat >>conftest.$ac_ext <<_ACEOF
26913 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26914 /* end confdefs.h. */
26915 #include <time.h>
26916 #if !HAVE_DECL_TZNAME
26917 @@ -21815,62 +11597,35 @@
26918 return 0;
26920 _ACEOF
26921 -rm -f conftest.$ac_objext conftest$ac_exeext
26922 -if { (ac_try="$ac_link"
26923 -case "(($ac_try" in
26924 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26925 - *) ac_try_echo=$ac_try;;
26926 -esac
26927 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26928 - (eval "$ac_link") 2>conftest.er1
26929 - ac_status=$?
26930 - grep -v '^ *+' conftest.er1 >conftest.err
26931 - rm -f conftest.er1
26932 - cat conftest.err >&5
26933 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
26934 - (exit $ac_status); } && {
26935 - test -z "$ac_c_werror_flag" ||
26936 - test ! -s conftest.err
26937 - } && test -s conftest$ac_exeext &&
26938 - $as_test_x conftest$ac_exeext; then
26939 +if ac_fn_c_try_link "$LINENO"; then :
26940 ac_cv_var_tzname=yes
26941 else
26942 - echo "$as_me: failed program was:" >&5
26943 -sed 's/^/| /' conftest.$ac_ext >&5
26945 - ac_cv_var_tzname=no
26946 + ac_cv_var_tzname=no
26949 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26950 - conftest$ac_exeext conftest.$ac_ext
26951 +rm -f core conftest.err conftest.$ac_objext \
26952 + conftest$ac_exeext conftest.$ac_ext
26954 -{ echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
26955 -echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
26956 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
26957 +$as_echo "$ac_cv_var_tzname" >&6; }
26958 if test $ac_cv_var_tzname = yes; then
26960 -cat >>confdefs.h <<\_ACEOF
26961 -#define HAVE_TZNAME 1
26962 -_ACEOF
26963 +$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
26969 # check tzset(3) exists and works like we expect it to
26970 -{ echo "$as_me:$LINENO: checking for working tzset()" >&5
26971 -echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6; }
26972 -if test "${ac_cv_working_tzset+set}" = set; then
26973 - echo $ECHO_N "(cached) $ECHO_C" >&6
26974 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working tzset()" >&5
26975 +$as_echo_n "checking for working tzset()... " >&6; }
26976 +if ${ac_cv_working_tzset+:} false; then :
26977 + $as_echo_n "(cached) " >&6
26978 else
26980 -if test "$cross_compiling" = yes; then
26981 +if test "$cross_compiling" = yes; then :
26982 ac_cv_working_tzset=no
26983 else
26984 - cat >conftest.$ac_ext <<_ACEOF
26985 -/* confdefs.h. */
26986 -_ACEOF
26987 -cat confdefs.h >>conftest.$ac_ext
26988 -cat >>conftest.$ac_ext <<_ACEOF
26989 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26990 /* end confdefs.h. */
26992 #include <stdlib.h>
26993 @@ -21937,63 +11692,33 @@
26996 _ACEOF
26997 -rm -f conftest$ac_exeext
26998 -if { (ac_try="$ac_link"
26999 -case "(($ac_try" in
27000 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27001 - *) ac_try_echo=$ac_try;;
27002 -esac
27003 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27004 - (eval "$ac_link") 2>&5
27005 - ac_status=$?
27006 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
27007 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27008 - { (case "(($ac_try" in
27009 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27010 - *) ac_try_echo=$ac_try;;
27011 -esac
27012 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27013 - (eval "$ac_try") 2>&5
27014 - ac_status=$?
27015 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
27016 - (exit $ac_status); }; }; then
27017 +if ac_fn_c_try_run "$LINENO"; then :
27018 ac_cv_working_tzset=yes
27019 else
27020 - echo "$as_me: program exited with status $ac_status" >&5
27021 -echo "$as_me: failed program was:" >&5
27022 -sed 's/^/| /' conftest.$ac_ext >&5
27024 -( exit $ac_status )
27025 -ac_cv_working_tzset=no
27026 + ac_cv_working_tzset=no
27028 -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27029 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27030 + conftest.$ac_objext conftest.beam conftest.$ac_ext
27036 -{ echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
27037 -echo "${ECHO_T}$ac_cv_working_tzset" >&6; }
27038 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_tzset" >&5
27039 +$as_echo "$ac_cv_working_tzset" >&6; }
27040 if test "$ac_cv_working_tzset" = yes
27041 then
27043 -cat >>confdefs.h <<\_ACEOF
27044 -#define HAVE_WORKING_TZSET 1
27045 -_ACEOF
27046 +$as_echo "#define HAVE_WORKING_TZSET 1" >>confdefs.h
27050 # Look for subsecond timestamps in struct stat
27051 -{ echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
27052 -echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6; }
27053 -if test "${ac_cv_stat_tv_nsec+set}" = set; then
27054 - echo $ECHO_N "(cached) $ECHO_C" >&6
27055 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec in struct stat" >&5
27056 +$as_echo_n "checking for tv_nsec in struct stat... " >&6; }
27057 +if ${ac_cv_stat_tv_nsec+:} false; then :
27058 + $as_echo_n "(cached) " >&6
27059 else
27060 - cat >conftest.$ac_ext <<_ACEOF
27061 -/* confdefs.h. */
27062 -_ACEOF
27063 -cat confdefs.h >>conftest.$ac_ext
27064 -cat >>conftest.$ac_ext <<_ACEOF
27065 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27066 /* end confdefs.h. */
27067 #include <sys/stat.h>
27069 @@ -22007,56 +11732,30 @@
27070 return 0;
27072 _ACEOF
27073 -rm -f conftest.$ac_objext
27074 -if { (ac_try="$ac_compile"
27075 -case "(($ac_try" in
27076 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27077 - *) ac_try_echo=$ac_try;;
27078 -esac
27079 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27080 - (eval "$ac_compile") 2>conftest.er1
27081 - ac_status=$?
27082 - grep -v '^ *+' conftest.er1 >conftest.err
27083 - rm -f conftest.er1
27084 - cat conftest.err >&5
27085 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
27086 - (exit $ac_status); } && {
27087 - test -z "$ac_c_werror_flag" ||
27088 - test ! -s conftest.err
27089 - } && test -s conftest.$ac_objext; then
27090 +if ac_fn_c_try_compile "$LINENO"; then :
27091 ac_cv_stat_tv_nsec=yes
27092 else
27093 - echo "$as_me: failed program was:" >&5
27094 -sed 's/^/| /' conftest.$ac_ext >&5
27096 - ac_cv_stat_tv_nsec=no
27097 + ac_cv_stat_tv_nsec=no
27100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27103 -{ echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
27104 -echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6; }
27105 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec" >&5
27106 +$as_echo "$ac_cv_stat_tv_nsec" >&6; }
27107 if test "$ac_cv_stat_tv_nsec" = yes
27108 then
27110 -cat >>confdefs.h <<\_ACEOF
27111 -#define HAVE_STAT_TV_NSEC 1
27112 -_ACEOF
27113 +$as_echo "#define HAVE_STAT_TV_NSEC 1" >>confdefs.h
27117 # Look for BSD style subsecond timestamps in struct stat
27118 -{ echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
27119 -echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6; }
27120 -if test "${ac_cv_stat_tv_nsec2+set}" = set; then
27121 - echo $ECHO_N "(cached) $ECHO_C" >&6
27122 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec2 in struct stat" >&5
27123 +$as_echo_n "checking for tv_nsec2 in struct stat... " >&6; }
27124 +if ${ac_cv_stat_tv_nsec2+:} false; then :
27125 + $as_echo_n "(cached) " >&6
27126 else
27127 - cat >conftest.$ac_ext <<_ACEOF
27128 -/* confdefs.h. */
27129 -_ACEOF
27130 -cat confdefs.h >>conftest.$ac_ext
27131 -cat >>conftest.$ac_ext <<_ACEOF
27132 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27133 /* end confdefs.h. */
27134 #include <sys/stat.h>
27136 @@ -22070,56 +11769,30 @@
27137 return 0;
27139 _ACEOF
27140 -rm -f conftest.$ac_objext
27141 -if { (ac_try="$ac_compile"
27142 -case "(($ac_try" in
27143 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27144 - *) ac_try_echo=$ac_try;;
27145 -esac
27146 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27147 - (eval "$ac_compile") 2>conftest.er1
27148 - ac_status=$?
27149 - grep -v '^ *+' conftest.er1 >conftest.err
27150 - rm -f conftest.er1
27151 - cat conftest.err >&5
27152 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
27153 - (exit $ac_status); } && {
27154 - test -z "$ac_c_werror_flag" ||
27155 - test ! -s conftest.err
27156 - } && test -s conftest.$ac_objext; then
27157 +if ac_fn_c_try_compile "$LINENO"; then :
27158 ac_cv_stat_tv_nsec2=yes
27159 else
27160 - echo "$as_me: failed program was:" >&5
27161 -sed 's/^/| /' conftest.$ac_ext >&5
27163 - ac_cv_stat_tv_nsec2=no
27164 + ac_cv_stat_tv_nsec2=no
27167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27170 -{ echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
27171 -echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6; }
27172 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec2" >&5
27173 +$as_echo "$ac_cv_stat_tv_nsec2" >&6; }
27174 if test "$ac_cv_stat_tv_nsec2" = yes
27175 then
27177 -cat >>confdefs.h <<\_ACEOF
27178 -#define HAVE_STAT_TV_NSEC2 1
27179 -_ACEOF
27180 +$as_echo "#define HAVE_STAT_TV_NSEC2 1" >>confdefs.h
27184 # On HP/UX 11.0, mvwdelch is a block with a return statement
27185 -{ echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
27186 -echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6; }
27187 -if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
27188 - echo $ECHO_N "(cached) $ECHO_C" >&6
27189 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mvwdelch is an expression" >&5
27190 +$as_echo_n "checking whether mvwdelch is an expression... " >&6; }
27191 +if ${ac_cv_mvwdelch_is_expression+:} false; then :
27192 + $as_echo_n "(cached) " >&6
27193 else
27194 - cat >conftest.$ac_ext <<_ACEOF
27195 -/* confdefs.h. */
27196 -_ACEOF
27197 -cat confdefs.h >>conftest.$ac_ext
27198 -cat >>conftest.$ac_ext <<_ACEOF
27199 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27200 /* end confdefs.h. */
27201 #include <curses.h>
27203 @@ -22133,56 +11806,30 @@
27204 return 0;
27206 _ACEOF
27207 -rm -f conftest.$ac_objext
27208 -if { (ac_try="$ac_compile"
27209 -case "(($ac_try" in
27210 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27211 - *) ac_try_echo=$ac_try;;
27212 -esac
27213 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27214 - (eval "$ac_compile") 2>conftest.er1
27215 - ac_status=$?
27216 - grep -v '^ *+' conftest.er1 >conftest.err
27217 - rm -f conftest.er1
27218 - cat conftest.err >&5
27219 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
27220 - (exit $ac_status); } && {
27221 - test -z "$ac_c_werror_flag" ||
27222 - test ! -s conftest.err
27223 - } && test -s conftest.$ac_objext; then
27224 +if ac_fn_c_try_compile "$LINENO"; then :
27225 ac_cv_mvwdelch_is_expression=yes
27226 else
27227 - echo "$as_me: failed program was:" >&5
27228 -sed 's/^/| /' conftest.$ac_ext >&5
27230 - ac_cv_mvwdelch_is_expression=no
27231 + ac_cv_mvwdelch_is_expression=no
27234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27237 -{ echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
27238 -echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6; }
27239 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mvwdelch_is_expression" >&5
27240 +$as_echo "$ac_cv_mvwdelch_is_expression" >&6; }
27242 if test "$ac_cv_mvwdelch_is_expression" = yes
27243 then
27245 -cat >>confdefs.h <<\_ACEOF
27246 -#define MVWDELCH_IS_EXPRESSION 1
27247 -_ACEOF
27248 +$as_echo "#define MVWDELCH_IS_EXPRESSION 1" >>confdefs.h
27252 -{ echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
27253 -echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6; }
27254 -if test "${ac_cv_window_has_flags+set}" = set; then
27255 - echo $ECHO_N "(cached) $ECHO_C" >&6
27256 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether WINDOW has _flags" >&5
27257 +$as_echo_n "checking whether WINDOW has _flags... " >&6; }
27258 +if ${ac_cv_window_has_flags+:} false; then :
27259 + $as_echo_n "(cached) " >&6
27260 else
27261 - cat >conftest.$ac_ext <<_ACEOF
27262 -/* confdefs.h. */
27263 -_ACEOF
27264 -cat confdefs.h >>conftest.$ac_ext
27265 -cat >>conftest.$ac_ext <<_ACEOF
27266 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27267 /* end confdefs.h. */
27268 #include <curses.h>
27270 @@ -22196,54 +11843,28 @@
27271 return 0;
27273 _ACEOF
27274 -rm -f conftest.$ac_objext
27275 -if { (ac_try="$ac_compile"
27276 -case "(($ac_try" in
27277 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27278 - *) ac_try_echo=$ac_try;;
27279 -esac
27280 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27281 - (eval "$ac_compile") 2>conftest.er1
27282 - ac_status=$?
27283 - grep -v '^ *+' conftest.er1 >conftest.err
27284 - rm -f conftest.er1
27285 - cat conftest.err >&5
27286 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
27287 - (exit $ac_status); } && {
27288 - test -z "$ac_c_werror_flag" ||
27289 - test ! -s conftest.err
27290 - } && test -s conftest.$ac_objext; then
27291 +if ac_fn_c_try_compile "$LINENO"; then :
27292 ac_cv_window_has_flags=yes
27293 else
27294 - echo "$as_me: failed program was:" >&5
27295 -sed 's/^/| /' conftest.$ac_ext >&5
27297 - ac_cv_window_has_flags=no
27298 + ac_cv_window_has_flags=no
27301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27304 -{ echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
27305 -echo "${ECHO_T}$ac_cv_window_has_flags" >&6; }
27306 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_window_has_flags" >&5
27307 +$as_echo "$ac_cv_window_has_flags" >&6; }
27310 if test "$ac_cv_window_has_flags" = yes
27311 then
27313 -cat >>confdefs.h <<\_ACEOF
27314 -#define WINDOW_HAS_FLAGS 1
27315 -_ACEOF
27316 +$as_echo "#define WINDOW_HAS_FLAGS 1" >>confdefs.h
27320 -{ echo "$as_me:$LINENO: checking for is_term_resized" >&5
27321 -echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6; }
27322 -cat >conftest.$ac_ext <<_ACEOF
27323 -/* confdefs.h. */
27324 -_ACEOF
27325 -cat confdefs.h >>conftest.$ac_ext
27326 -cat >>conftest.$ac_ext <<_ACEOF
27327 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_term_resized" >&5
27328 +$as_echo_n "checking for is_term_resized... " >&6; }
27329 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27330 /* end confdefs.h. */
27331 #include <curses.h>
27333 @@ -22254,48 +11875,22 @@
27334 return 0;
27336 _ACEOF
27337 -rm -f conftest.$ac_objext
27338 -if { (ac_try="$ac_compile"
27339 -case "(($ac_try" in
27340 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27341 - *) ac_try_echo=$ac_try;;
27342 -esac
27343 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27344 - (eval "$ac_compile") 2>conftest.er1
27345 - ac_status=$?
27346 - grep -v '^ *+' conftest.er1 >conftest.err
27347 - rm -f conftest.er1
27348 - cat conftest.err >&5
27349 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
27350 - (exit $ac_status); } && {
27351 - test -z "$ac_c_werror_flag" ||
27352 - test ! -s conftest.err
27353 - } && test -s conftest.$ac_objext; then
27354 +if ac_fn_c_try_compile "$LINENO"; then :
27356 -cat >>confdefs.h <<\_ACEOF
27357 -#define HAVE_CURSES_IS_TERM_RESIZED 1
27358 -_ACEOF
27359 +$as_echo "#define HAVE_CURSES_IS_TERM_RESIZED 1" >>confdefs.h
27361 - { echo "$as_me:$LINENO: result: yes" >&5
27362 -echo "${ECHO_T}yes" >&6; }
27363 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27364 +$as_echo "yes" >&6; }
27365 else
27366 - echo "$as_me: failed program was:" >&5
27367 -sed 's/^/| /' conftest.$ac_ext >&5
27369 - { echo "$as_me:$LINENO: result: no" >&5
27370 -echo "${ECHO_T}no" >&6; }
27371 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27372 +$as_echo "no" >&6; }
27376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27378 -{ echo "$as_me:$LINENO: checking for resize_term" >&5
27379 -echo $ECHO_N "checking for resize_term... $ECHO_C" >&6; }
27380 -cat >conftest.$ac_ext <<_ACEOF
27381 -/* confdefs.h. */
27382 -_ACEOF
27383 -cat confdefs.h >>conftest.$ac_ext
27384 -cat >>conftest.$ac_ext <<_ACEOF
27385 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for resize_term" >&5
27386 +$as_echo_n "checking for resize_term... " >&6; }
27387 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27388 /* end confdefs.h. */
27389 #include <curses.h>
27391 @@ -22306,48 +11901,22 @@
27392 return 0;
27394 _ACEOF
27395 -rm -f conftest.$ac_objext
27396 -if { (ac_try="$ac_compile"
27397 -case "(($ac_try" in
27398 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27399 - *) ac_try_echo=$ac_try;;
27400 -esac
27401 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27402 - (eval "$ac_compile") 2>conftest.er1
27403 - ac_status=$?
27404 - grep -v '^ *+' conftest.er1 >conftest.err
27405 - rm -f conftest.er1
27406 - cat conftest.err >&5
27407 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
27408 - (exit $ac_status); } && {
27409 - test -z "$ac_c_werror_flag" ||
27410 - test ! -s conftest.err
27411 - } && test -s conftest.$ac_objext; then
27412 +if ac_fn_c_try_compile "$LINENO"; then :
27414 -cat >>confdefs.h <<\_ACEOF
27415 -#define HAVE_CURSES_RESIZE_TERM 1
27416 -_ACEOF
27417 +$as_echo "#define HAVE_CURSES_RESIZE_TERM 1" >>confdefs.h
27419 - { echo "$as_me:$LINENO: result: yes" >&5
27420 -echo "${ECHO_T}yes" >&6; }
27421 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27422 +$as_echo "yes" >&6; }
27423 else
27424 - echo "$as_me: failed program was:" >&5
27425 -sed 's/^/| /' conftest.$ac_ext >&5
27427 - { echo "$as_me:$LINENO: result: no" >&5
27428 -echo "${ECHO_T}no" >&6; }
27429 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27430 +$as_echo "no" >&6; }
27434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27436 -{ echo "$as_me:$LINENO: checking for resizeterm" >&5
27437 -echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6; }
27438 -cat >conftest.$ac_ext <<_ACEOF
27439 -/* confdefs.h. */
27440 -_ACEOF
27441 -cat confdefs.h >>conftest.$ac_ext
27442 -cat >>conftest.$ac_ext <<_ACEOF
27443 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for resizeterm" >&5
27444 +$as_echo_n "checking for resizeterm... " >&6; }
27445 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27446 /* end confdefs.h. */
27447 #include <curses.h>
27449 @@ -22358,86 +11927,56 @@
27450 return 0;
27452 _ACEOF
27453 -rm -f conftest.$ac_objext
27454 -if { (ac_try="$ac_compile"
27455 -case "(($ac_try" in
27456 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27457 - *) ac_try_echo=$ac_try;;
27458 -esac
27459 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27460 - (eval "$ac_compile") 2>conftest.er1
27461 - ac_status=$?
27462 - grep -v '^ *+' conftest.er1 >conftest.err
27463 - rm -f conftest.er1
27464 - cat conftest.err >&5
27465 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
27466 - (exit $ac_status); } && {
27467 - test -z "$ac_c_werror_flag" ||
27468 - test ! -s conftest.err
27469 - } && test -s conftest.$ac_objext; then
27470 +if ac_fn_c_try_compile "$LINENO"; then :
27472 -cat >>confdefs.h <<\_ACEOF
27473 -#define HAVE_CURSES_RESIZETERM 1
27474 -_ACEOF
27475 +$as_echo "#define HAVE_CURSES_RESIZETERM 1" >>confdefs.h
27477 - { echo "$as_me:$LINENO: result: yes" >&5
27478 -echo "${ECHO_T}yes" >&6; }
27479 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27480 +$as_echo "yes" >&6; }
27481 else
27482 - echo "$as_me: failed program was:" >&5
27483 -sed 's/^/| /' conftest.$ac_ext >&5
27485 - { echo "$as_me:$LINENO: result: no" >&5
27486 -echo "${ECHO_T}no" >&6; }
27487 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27488 +$as_echo "no" >&6; }
27492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27494 -{ echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
27495 -echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6; }
27496 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5
27497 +$as_echo_n "checking for /dev/ptmx... " >&6; }
27499 if test -r /dev/ptmx
27500 then
27501 - { echo "$as_me:$LINENO: result: yes" >&5
27502 -echo "${ECHO_T}yes" >&6; }
27503 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27504 +$as_echo "yes" >&6; }
27506 -cat >>confdefs.h <<\_ACEOF
27507 -#define HAVE_DEV_PTMX 1
27508 -_ACEOF
27509 +$as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
27511 else
27512 - { echo "$as_me:$LINENO: result: no" >&5
27513 -echo "${ECHO_T}no" >&6; }
27514 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27515 +$as_echo "no" >&6; }
27518 -{ echo "$as_me:$LINENO: checking for /dev/ptc" >&5
27519 -echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; }
27520 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5
27521 +$as_echo_n "checking for /dev/ptc... " >&6; }
27523 if test -r /dev/ptc
27524 then
27525 - { echo "$as_me:$LINENO: result: yes" >&5
27526 -echo "${ECHO_T}yes" >&6; }
27527 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27528 +$as_echo "yes" >&6; }
27530 -cat >>confdefs.h <<\_ACEOF
27531 -#define HAVE_DEV_PTC 1
27532 -_ACEOF
27533 +$as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h
27535 else
27536 - { echo "$as_me:$LINENO: result: no" >&5
27537 -echo "${ECHO_T}no" >&6; }
27538 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27539 +$as_echo "no" >&6; }
27542 case $MACHDEP in
27543 darwin)
27544 - { echo "$as_me:$LINENO: checking for kOSADebuggerCreateSession" >&5
27545 -echo $ECHO_N "checking for kOSADebuggerCreateSession... $ECHO_C" >&6; }
27546 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kOSADebuggerCreateSession" >&5
27547 +$as_echo_n "checking for kOSADebuggerCreateSession... " >&6; }
27548 OLD_CFLAGS="${CFLAGS}"
27549 CFLAGS="${CFLAGS} -Wall -framework Carbon"
27550 - cat >conftest.$ac_ext <<_ACEOF
27551 -/* confdefs.h. */
27552 -_ACEOF
27553 -cat confdefs.h >>conftest.$ac_ext
27554 -cat >>conftest.$ac_ext <<_ACEOF
27555 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27556 /* end confdefs.h. */
27557 #include <Carbon/Carbon.h>
27559 @@ -22448,44 +11987,22 @@
27560 return 0;
27562 _ACEOF
27563 -rm -f conftest.$ac_objext
27564 -if { (ac_try="$ac_compile"
27565 -case "(($ac_try" in
27566 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27567 - *) ac_try_echo=$ac_try;;
27568 -esac
27569 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27570 - (eval "$ac_compile") 2>conftest.er1
27571 - ac_status=$?
27572 - grep -v '^ *+' conftest.er1 >conftest.err
27573 - rm -f conftest.er1
27574 - cat conftest.err >&5
27575 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
27576 - (exit $ac_status); } && {
27577 - test -z "$ac_c_werror_flag" ||
27578 - test ! -s conftest.err
27579 - } && test -s conftest.$ac_objext; then
27580 +if ac_fn_c_try_compile "$LINENO"; then :
27581 have_osa_debug=yes
27582 else
27583 - echo "$as_me: failed program was:" >&5
27584 -sed 's/^/| /' conftest.$ac_ext >&5
27586 - have_osa_debug=no
27587 + have_osa_debug=no
27590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27591 if test $have_osa_debug = yes
27592 then
27593 - { echo "$as_me:$LINENO: result: yes" >&5
27594 -echo "${ECHO_T}yes" >&6; }
27595 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27596 +$as_echo "yes" >&6; }
27598 -cat >>confdefs.h <<\_ACEOF
27599 -#define HAVE_OSA_DEBUG 1
27600 -_ACEOF
27601 +$as_echo "#define HAVE_OSA_DEBUG 1" >>confdefs.h
27603 else
27604 - { echo "$as_me:$LINENO: result: no" >&5
27605 -echo "${ECHO_T}no" >&6; }
27606 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27607 +$as_echo "no" >&6; }
27609 CFLAGS="${OLD_CFLAGS}"
27611 @@ -22493,20 +12010,16 @@
27615 -{ echo "$as_me:$LINENO: checking for %zd printf() format support" >&5
27616 -echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6; }
27617 -if test "$cross_compiling" = yes; then
27618 - { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
27619 -See \`config.log' for more details." >&5
27620 -echo "$as_me: error: cannot run test program while cross compiling
27621 -See \`config.log' for more details." >&2;}
27622 - { (exit 1); exit 1; }; }
27623 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for %zd printf() format support" >&5
27624 +$as_echo_n "checking for %zd printf() format support... " >&6; }
27625 +if ${ac_cv_printf_zd_format+:} false; then :
27626 + $as_echo_n "(cached) " >&6
27627 else
27628 - cat >conftest.$ac_ext <<_ACEOF
27629 -/* confdefs.h. */
27630 -_ACEOF
27631 -cat confdefs.h >>conftest.$ac_ext
27632 -cat >>conftest.$ac_ext <<_ACEOF
27634 +if test "$cross_compiling" = yes; then :
27635 + ac_cv_printf_zd_format=no
27636 +else
27637 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27638 /* end confdefs.h. */
27639 #include <stdio.h>
27640 #include <stddef.h>
27641 @@ -22543,59 +12056,27 @@
27642 return 0;
27644 _ACEOF
27645 -rm -f conftest$ac_exeext
27646 -if { (ac_try="$ac_link"
27647 -case "(($ac_try" in
27648 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27649 - *) ac_try_echo=$ac_try;;
27650 -esac
27651 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27652 - (eval "$ac_link") 2>&5
27653 - ac_status=$?
27654 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
27655 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27656 - { (case "(($ac_try" in
27657 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27658 - *) ac_try_echo=$ac_try;;
27659 -esac
27660 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27661 - (eval "$ac_try") 2>&5
27662 - ac_status=$?
27663 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
27664 - (exit $ac_status); }; }; then
27665 - { echo "$as_me:$LINENO: result: yes" >&5
27666 -echo "${ECHO_T}yes" >&6; }
27668 -cat >>confdefs.h <<\_ACEOF
27669 -#define PY_FORMAT_SIZE_T "z"
27670 -_ACEOF
27672 +if ac_fn_c_try_run "$LINENO"; then :
27673 + ac_cv_printf_zd_format=yes
27674 else
27675 - echo "$as_me: program exited with status $ac_status" >&5
27676 -echo "$as_me: failed program was:" >&5
27677 -sed 's/^/| /' conftest.$ac_ext >&5
27679 -( exit $ac_status )
27680 -{ echo "$as_me:$LINENO: result: no" >&5
27681 -echo "${ECHO_T}no" >&6; }
27682 + ac_cv_printf_zd_format=no
27684 -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27685 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27686 + conftest.$ac_objext conftest.beam conftest.$ac_ext
27691 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_printf_zd_format" >&5
27692 +$as_echo "$ac_cv_printf_zd_format" >&6; }
27694 -{ echo "$as_me:$LINENO: checking for socklen_t" >&5
27695 -echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
27696 -if test "${ac_cv_type_socklen_t+set}" = set; then
27697 - echo $ECHO_N "(cached) $ECHO_C" >&6
27698 -else
27699 - cat >conftest.$ac_ext <<_ACEOF
27700 -/* confdefs.h. */
27701 -_ACEOF
27702 -cat confdefs.h >>conftest.$ac_ext
27703 -cat >>conftest.$ac_ext <<_ACEOF
27704 -/* end confdefs.h. */
27705 +if test $ac_cv_printf_zd_format = yes; then
27707 +$as_echo "#define PY_FORMAT_SIZE_T \"z\"" >>confdefs.h
27711 +ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
27712 #ifdef HAVE_SYS_TYPES_H
27713 #include <sys/types.h>
27714 #endif
27715 @@ -22603,55 +12084,12 @@
27716 #include <sys/socket.h>
27717 #endif
27720 +if test "x$ac_cv_type_socklen_t" = xyes; then :
27722 -typedef socklen_t ac__type_new_;
27723 -int
27724 -main ()
27726 -if ((ac__type_new_ *) 0)
27727 - return 0;
27728 -if (sizeof (ac__type_new_))
27729 - return 0;
27731 - return 0;
27733 -_ACEOF
27734 -rm -f conftest.$ac_objext
27735 -if { (ac_try="$ac_compile"
27736 -case "(($ac_try" in
27737 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27738 - *) ac_try_echo=$ac_try;;
27739 -esac
27740 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27741 - (eval "$ac_compile") 2>conftest.er1
27742 - ac_status=$?
27743 - grep -v '^ *+' conftest.er1 >conftest.err
27744 - rm -f conftest.er1
27745 - cat conftest.err >&5
27746 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
27747 - (exit $ac_status); } && {
27748 - test -z "$ac_c_werror_flag" ||
27749 - test ! -s conftest.err
27750 - } && test -s conftest.$ac_objext; then
27751 - ac_cv_type_socklen_t=yes
27752 -else
27753 - echo "$as_me: failed program was:" >&5
27754 -sed 's/^/| /' conftest.$ac_ext >&5
27756 - ac_cv_type_socklen_t=no
27759 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27761 -{ echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
27762 -echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
27763 -if test $ac_cv_type_socklen_t = yes; then
27765 else
27767 -cat >>confdefs.h <<\_ACEOF
27768 -#define socklen_t int
27769 -_ACEOF
27770 +$as_echo "#define socklen_t int" >>confdefs.h
27774 @@ -22665,15 +12103,15 @@
27777 SRCDIRS="Parser Grammar Objects Python Modules Mac"
27778 -{ echo "$as_me:$LINENO: checking for build directories" >&5
27779 -echo $ECHO_N "checking for build directories... $ECHO_C" >&6; }
27780 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for build directories" >&5
27781 +$as_echo_n "checking for build directories... " >&6; }
27782 for dir in $SRCDIRS; do
27783 if test ! -d $dir; then
27784 mkdir $dir
27786 done
27787 -{ echo "$as_me:$LINENO: result: done" >&5
27788 -echo "${ECHO_T}done" >&6; }
27789 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
27790 +$as_echo "done" >&6; }
27792 # generate output files
27793 ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config"
27794 @@ -22705,12 +12143,13 @@
27795 case $ac_val in #(
27796 *${as_nl}*)
27797 case $ac_var in #(
27798 - *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
27799 -echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
27800 + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27801 +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27802 esac
27803 case $ac_var in #(
27804 _ | IFS | as_nl) ;; #(
27805 - *) $as_unset $ac_var ;;
27806 + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27807 + *) { eval $ac_var=; unset $ac_var;} ;;
27808 esac ;;
27809 esac
27810 done
27811 @@ -22718,8 +12157,8 @@
27812 (set) 2>&1 |
27813 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27814 *${as_nl}ac_space=\ *)
27815 - # `set' does not quote correctly, so add quotes (double-quote
27816 - # substitution turns \\\\ into \\, and sed turns \\ into \).
27817 + # `set' does not quote correctly, so add quotes: double-quote
27818 + # substitution turns \\\\ into \\, and sed turns \\ into \.
27819 sed -n \
27820 "s/'/'\\\\''/g;
27821 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27822 @@ -22741,13 +12180,24 @@
27823 :end' >>confcache
27824 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27825 if test -w "$cache_file"; then
27826 - test "x$cache_file" != "x/dev/null" &&
27827 - { echo "$as_me:$LINENO: updating cache $cache_file" >&5
27828 -echo "$as_me: updating cache $cache_file" >&6;}
27829 - cat confcache >$cache_file
27830 + if test "x$cache_file" != "x/dev/null"; then
27831 + { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27832 +$as_echo "$as_me: updating cache $cache_file" >&6;}
27833 + if test ! -f "$cache_file" || test -h "$cache_file"; then
27834 + cat confcache >"$cache_file"
27835 + else
27836 + case $cache_file in #(
27837 + */* | ?:*)
27838 + mv -f confcache "$cache_file"$$ &&
27839 + mv -f "$cache_file"$$ "$cache_file" ;; #(
27840 + *)
27841 + mv -f confcache "$cache_file" ;;
27842 + esac
27843 + fi
27844 + fi
27845 else
27846 - { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
27847 -echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27848 + { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27849 +$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27852 rm -f confcache
27853 @@ -22760,14 +12210,15 @@
27855 ac_libobjs=
27856 ac_ltlibobjs=
27858 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27859 # 1. Remove the extension, and $U if already installed.
27860 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27861 - ac_i=`echo "$ac_i" | sed "$ac_script"`
27862 + ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
27863 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27864 # will be set to the directory where LIBOBJS objects are built.
27865 - ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27866 - ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
27867 + as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27868 + as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
27869 done
27870 LIBOBJS=$ac_libobjs
27872 @@ -22775,12 +12226,15 @@
27876 -: ${CONFIG_STATUS=./config.status}
27878 +: "${CONFIG_STATUS=./config.status}"
27879 +ac_write_fail=0
27880 ac_clean_files_save=$ac_clean_files
27881 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27882 -{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
27883 -echo "$as_me: creating $CONFIG_STATUS" >&6;}
27884 -cat >$CONFIG_STATUS <<_ACEOF
27885 +{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27886 +$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27887 +as_write_fail=0
27888 +cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27889 #! $SHELL
27890 # Generated by $as_me.
27891 # Run this file to recreate the current configuration.
27892 @@ -22790,59 +12244,79 @@
27893 debug=false
27894 ac_cs_recheck=false
27895 ac_cs_silent=false
27896 -SHELL=\${CONFIG_SHELL-$SHELL}
27897 -_ACEOF
27899 -cat >>$CONFIG_STATUS <<\_ACEOF
27900 -## --------------------- ##
27901 -## M4sh Initialization. ##
27902 -## --------------------- ##
27903 +SHELL=\${CONFIG_SHELL-$SHELL}
27904 +export SHELL
27905 +_ASEOF
27906 +cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
27907 +## -------------------- ##
27908 +## M4sh Initialization. ##
27909 +## -------------------- ##
27911 # Be more Bourne compatible
27912 DUALCASE=1; export DUALCASE # for MKS sh
27913 -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27914 +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27915 emulate sh
27916 NULLCMD=:
27917 - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
27918 + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27919 # is contrary to our usage. Disable this feature.
27920 alias -g '${1+"$@"}'='"$@"'
27921 setopt NO_GLOB_SUBST
27922 -else
27923 - case `(set -o) 2>/dev/null` in
27924 - *posix*) set -o posix ;;
27925 -esac
27932 -# PATH needs CR
27933 -# Avoid depending upon Character Ranges.
27934 -as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27935 -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27936 -as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27937 -as_cr_digits='0123456789'
27938 -as_cr_alnum=$as_cr_Letters$as_cr_digits
27939 +else
27940 + case `(set -o) 2>/dev/null` in #(
27941 + *posix*) :
27942 + set -o posix ;; #(
27943 + *) :
27944 + ;;
27945 +esac
27948 -# The user is always right.
27949 -if test "${PATH_SEPARATOR+set}" != set; then
27950 - echo "#! /bin/sh" >conf$$.sh
27951 - echo "exit 0" >>conf$$.sh
27952 - chmod +x conf$$.sh
27953 - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
27954 - PATH_SEPARATOR=';'
27956 +as_nl='
27958 +export as_nl
27959 +# Printing a long string crashes Solaris 7 /usr/bin/printf.
27960 +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27961 +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27962 +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27963 +# Prefer a ksh shell builtin over an external printf program on Solaris,
27964 +# but without wasting forks for bash or zsh.
27965 +if test -z "$BASH_VERSION$ZSH_VERSION" \
27966 + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27967 + as_echo='print -r --'
27968 + as_echo_n='print -rn --'
27969 +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27970 + as_echo='printf %s\n'
27971 + as_echo_n='printf %s'
27972 +else
27973 + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27974 + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27975 + as_echo_n='/usr/ucb/echo -n'
27976 else
27977 - PATH_SEPARATOR=:
27978 + as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27979 + as_echo_n_body='eval
27980 + arg=$1;
27981 + case $arg in #(
27982 + *"$as_nl"*)
27983 + expr "X$arg" : "X\\(.*\\)$as_nl";
27984 + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27985 + esac;
27986 + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27988 + export as_echo_n_body
27989 + as_echo_n='sh -c $as_echo_n_body as_echo'
27991 - rm -f conf$$.sh
27992 + export as_echo_body
27993 + as_echo='sh -c $as_echo_body as_echo'
27996 -# Support unset when possible.
27997 -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27998 - as_unset=unset
27999 -else
28000 - as_unset=false
28001 +# The user is always right.
28002 +if test "${PATH_SEPARATOR+set}" != set; then
28003 + PATH_SEPARATOR=:
28004 + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
28005 + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
28006 + PATH_SEPARATOR=';'
28011 @@ -22851,20 +12325,19 @@
28012 # there to prevent editors from complaining about space-tab.
28013 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
28014 # splitting by setting IFS to empty value.)
28015 -as_nl='
28017 IFS=" "" $as_nl"
28019 # Find who we are. Look in the path if we contain no directory separator.
28020 -case $0 in
28021 +as_myself=
28022 +case $0 in #((
28023 *[\\/]* ) as_myself=$0 ;;
28024 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28025 for as_dir in $PATH
28027 IFS=$as_save_IFS
28028 test -z "$as_dir" && as_dir=.
28029 - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28030 -done
28031 + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28032 + done
28033 IFS=$as_save_IFS
28036 @@ -22875,32 +12348,111 @@
28037 as_myself=$0
28039 if test ! -f "$as_myself"; then
28040 - echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28041 - { (exit 1); exit 1; }
28042 + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28043 + exit 1
28046 -# Work around bugs in pre-3.0 UWIN ksh.
28047 -for as_var in ENV MAIL MAILPATH
28048 -do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
28049 +# Unset variables that we do not need and which cause bugs (e.g. in
28050 +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
28051 +# suppresses any "Segmentation fault" message there. '((' could
28052 +# trigger a bug in pdksh 5.2.14.
28053 +for as_var in BASH_ENV ENV MAIL MAILPATH
28054 +do eval test x\${$as_var+set} = xset \
28055 + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
28056 done
28057 PS1='$ '
28058 PS2='> '
28059 PS4='+ '
28061 # NLS nuisances.
28062 -for as_var in \
28063 - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
28064 - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
28065 - LC_TELEPHONE LC_TIME
28067 - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
28068 - eval $as_var=C; export $as_var
28069 - else
28070 - ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
28071 - fi
28072 -done
28073 +LC_ALL=C
28074 +export LC_ALL
28075 +LANGUAGE=C
28076 +export LANGUAGE
28078 +# CDPATH.
28079 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28082 +# as_fn_error STATUS ERROR [LINENO LOG_FD]
28083 +# ----------------------------------------
28084 +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
28085 +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
28086 +# script with STATUS, using 1 if that was 0.
28087 +as_fn_error ()
28089 + as_status=$1; test $as_status -eq 0 && as_status=1
28090 + if test "$4"; then
28091 + as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
28092 + $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
28093 + fi
28094 + $as_echo "$as_me: error: $2" >&2
28095 + as_fn_exit $as_status
28096 +} # as_fn_error
28099 +# as_fn_set_status STATUS
28100 +# -----------------------
28101 +# Set $? to STATUS, without forking.
28102 +as_fn_set_status ()
28104 + return $1
28105 +} # as_fn_set_status
28107 +# as_fn_exit STATUS
28108 +# -----------------
28109 +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
28110 +as_fn_exit ()
28112 + set +e
28113 + as_fn_set_status $1
28114 + exit $1
28115 +} # as_fn_exit
28117 +# as_fn_unset VAR
28118 +# ---------------
28119 +# Portably unset VAR.
28120 +as_fn_unset ()
28122 + { eval $1=; unset $1;}
28124 +as_unset=as_fn_unset
28125 +# as_fn_append VAR VALUE
28126 +# ----------------------
28127 +# Append the text in VALUE to the end of the definition contained in VAR. Take
28128 +# advantage of any shell optimizations that allow amortized linear growth over
28129 +# repeated appends, instead of the typical quadratic growth present in naive
28130 +# implementations.
28131 +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
28132 + eval 'as_fn_append ()
28134 + eval $1+=\$2
28135 + }'
28136 +else
28137 + as_fn_append ()
28139 + eval $1=\$$1\$2
28141 +fi # as_fn_append
28143 +# as_fn_arith ARG...
28144 +# ------------------
28145 +# Perform arithmetic evaluation on the ARGs, and store the result in the
28146 +# global $as_val. Take advantage of shells that can avoid forks. The arguments
28147 +# must be portable across $(()) and expr.
28148 +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
28149 + eval 'as_fn_arith ()
28151 + as_val=$(( $* ))
28152 + }'
28153 +else
28154 + as_fn_arith ()
28156 + as_val=`expr "$@" || test $? -eq 1`
28158 +fi # as_fn_arith
28161 -# Required to use basename.
28162 if expr a : '\(a\)' >/dev/null 2>&1 &&
28163 test "X`expr 00001 : '.*\(...\)'`" = X001; then
28164 as_expr=expr
28165 @@ -22914,13 +12466,17 @@
28166 as_basename=false
28169 +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
28170 + as_dirname=dirname
28171 +else
28172 + as_dirname=false
28175 -# Name of the executable.
28176 as_me=`$as_basename -- "$0" ||
28177 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28178 X"$0" : 'X\(//\)$' \| \
28179 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28180 -echo X/"$0" |
28181 +$as_echo X/"$0" |
28182 sed '/^.*\/\([^/][^/]*\)\/*$/{
28183 s//\1/
28185 @@ -22935,131 +12491,118 @@
28187 s/.*/./; q'`
28189 -# CDPATH.
28190 -$as_unset CDPATH
28194 - as_lineno_1=$LINENO
28195 - as_lineno_2=$LINENO
28196 - test "x$as_lineno_1" != "x$as_lineno_2" &&
28197 - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
28199 - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
28200 - # uniformly replaced by the line number. The first 'sed' inserts a
28201 - # line-number line after each line using $LINENO; the second 'sed'
28202 - # does the real work. The second script uses 'N' to pair each
28203 - # line-number line with the line containing $LINENO, and appends
28204 - # trailing '-' during substitution so that $LINENO is not a special
28205 - # case at line end.
28206 - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
28207 - # scripts with optimization help from Paolo Bonzini. Blame Lee
28208 - # E. McMahon (1931-1989) for sed's syntax. :-)
28209 - sed -n '
28211 - /[$]LINENO/=
28212 - ' <$as_myself |
28213 - sed '
28214 - s/[$]LINENO.*/&-/
28215 - t lineno
28217 - :lineno
28219 - :loop
28220 - s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
28221 - t loop
28222 - s/-\n.*//
28223 - ' >$as_me.lineno &&
28224 - chmod +x "$as_me.lineno" ||
28225 - { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
28226 - { (exit 1); exit 1; }; }
28228 - # Don't try to exec as it changes $[0], causing all sort of problems
28229 - # (the dirname of $[0] is not the place where we might find the
28230 - # original and so on. Autoconf is especially sensitive to this).
28231 - . "./$as_me.lineno"
28232 - # Exit status is that of the last command.
28233 - exit
28237 -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
28238 - as_dirname=dirname
28239 -else
28240 - as_dirname=false
28242 +# Avoid depending upon Character Ranges.
28243 +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28244 +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28245 +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28246 +as_cr_digits='0123456789'
28247 +as_cr_alnum=$as_cr_Letters$as_cr_digits
28249 ECHO_C= ECHO_N= ECHO_T=
28250 -case `echo -n x` in
28251 +case `echo -n x` in #(((((
28252 -n*)
28253 - case `echo 'x\c'` in
28254 + case `echo 'xy\c'` in
28255 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
28256 - *) ECHO_C='\c';;
28257 + xy) ECHO_C='\c';;
28258 + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
28259 + ECHO_T=' ';;
28260 esac;;
28262 ECHO_N='-n';;
28263 esac
28265 -if expr a : '\(a\)' >/dev/null 2>&1 &&
28266 - test "X`expr 00001 : '.*\(...\)'`" = X001; then
28267 - as_expr=expr
28268 -else
28269 - as_expr=false
28272 rm -f conf$$ conf$$.exe conf$$.file
28273 if test -d conf$$.dir; then
28274 rm -f conf$$.dir/conf$$.file
28275 else
28276 rm -f conf$$.dir
28277 - mkdir conf$$.dir
28278 + mkdir conf$$.dir 2>/dev/null
28280 -echo >conf$$.file
28281 -if ln -s conf$$.file conf$$ 2>/dev/null; then
28282 - as_ln_s='ln -s'
28283 - # ... but there are two gotchas:
28284 - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28285 - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28286 - # In both cases, we have to default to `cp -p'.
28287 - ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
28288 - as_ln_s='cp -p'
28289 -elif ln conf$$.file conf$$ 2>/dev/null; then
28290 - as_ln_s=ln
28291 +if (echo >conf$$.file) 2>/dev/null; then
28292 + if ln -s conf$$.file conf$$ 2>/dev/null; then
28293 + as_ln_s='ln -s'
28294 + # ... but there are two gotchas:
28295 + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28296 + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28297 + # In both cases, we have to default to `cp -pR'.
28298 + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
28299 + as_ln_s='cp -pR'
28300 + elif ln conf$$.file conf$$ 2>/dev/null; then
28301 + as_ln_s=ln
28302 + else
28303 + as_ln_s='cp -pR'
28304 + fi
28305 else
28306 - as_ln_s='cp -p'
28307 + as_ln_s='cp -pR'
28309 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
28310 rmdir conf$$.dir 2>/dev/null
28313 +# as_fn_mkdir_p
28314 +# -------------
28315 +# Create "$as_dir" as a directory, including parents if necessary.
28316 +as_fn_mkdir_p ()
28319 + case $as_dir in #(
28320 + -*) as_dir=./$as_dir;;
28321 + esac
28322 + test -d "$as_dir" || eval $as_mkdir_p || {
28323 + as_dirs=
28324 + while :; do
28325 + case $as_dir in #(
28326 + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
28327 + *) as_qdir=$as_dir;;
28328 + esac
28329 + as_dirs="'$as_qdir' $as_dirs"
28330 + as_dir=`$as_dirname -- "$as_dir" ||
28331 +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28332 + X"$as_dir" : 'X\(//\)[^/]' \| \
28333 + X"$as_dir" : 'X\(//\)$' \| \
28334 + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28335 +$as_echo X"$as_dir" |
28336 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28337 + s//\1/
28340 + /^X\(\/\/\)[^/].*/{
28341 + s//\1/
28344 + /^X\(\/\/\)$/{
28345 + s//\1/
28348 + /^X\(\/\).*/{
28349 + s//\1/
28352 + s/.*/./; q'`
28353 + test -d "$as_dir" && break
28354 + done
28355 + test -z "$as_dirs" || eval "mkdir $as_dirs"
28356 + } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
28359 +} # as_fn_mkdir_p
28360 if mkdir -p . 2>/dev/null; then
28361 - as_mkdir_p=:
28362 + as_mkdir_p='mkdir -p "$as_dir"'
28363 else
28364 test -d ./-p && rmdir ./-p
28365 as_mkdir_p=false
28368 -if test -x / >/dev/null 2>&1; then
28369 - as_test_x='test -x'
28370 -else
28371 - if ls -dL / >/dev/null 2>&1; then
28372 - as_ls_L_option=L
28373 - else
28374 - as_ls_L_option=
28375 - fi
28376 - as_test_x='
28377 - eval sh -c '\''
28378 - if test -d "$1"; then
28379 - test -d "$1/.";
28380 - else
28381 - case $1 in
28382 - -*)set "./$1";;
28383 - esac;
28384 - case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
28385 - ???[sx]*):;;*)false;;esac;fi
28386 - '\'' sh
28389 -as_executable_p=$as_test_x
28391 +# as_fn_executable_p FILE
28392 +# -----------------------
28393 +# Test if FILE is an executable regular file.
28394 +as_fn_executable_p ()
28396 + test -f "$1" && test -x "$1"
28397 +} # as_fn_executable_p
28398 +as_test_x='test -x'
28399 +as_executable_p=as_fn_executable_p
28401 # Sed expression to map a string onto a valid CPP name.
28402 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28403 @@ -23069,13 +12612,19 @@
28406 exec 6>&1
28407 +## ----------------------------------- ##
28408 +## Main body of $CONFIG_STATUS script. ##
28409 +## ----------------------------------- ##
28410 +_ASEOF
28411 +test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
28413 -# Save the log message, to keep $[0] and so on meaningful, and to
28414 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28415 +# Save the log message, to keep $0 and so on meaningful, and to
28416 # report actual input values of CONFIG_FILES etc. instead of their
28417 # values after options handling.
28418 ac_log="
28419 This file was extended by python $as_me 2.5, which was
28420 -generated by GNU Autoconf 2.61. Invocation command line was
28421 +generated by GNU Autoconf 2.69. Invocation command line was
28423 CONFIG_FILES = $CONFIG_FILES
28424 CONFIG_HEADERS = $CONFIG_HEADERS
28425 @@ -23088,29 +12637,41 @@
28427 _ACEOF
28429 -cat >>$CONFIG_STATUS <<_ACEOF
28430 +case $ac_config_files in *"
28431 +"*) set x $ac_config_files; shift; ac_config_files=$*;;
28432 +esac
28434 +case $ac_config_headers in *"
28435 +"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
28436 +esac
28439 +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28440 # Files that config.status was made for.
28441 config_files="$ac_config_files"
28442 config_headers="$ac_config_headers"
28444 _ACEOF
28446 -cat >>$CONFIG_STATUS <<\_ACEOF
28447 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28448 ac_cs_usage="\
28449 -\`$as_me' instantiates files from templates according to the
28450 -current configuration.
28451 +\`$as_me' instantiates files and other configuration actions
28452 +from templates according to the current configuration. Unless the files
28453 +and actions are specified as TAGs, all are instantiated by default.
28455 -Usage: $0 [OPTIONS] [FILE]...
28456 +Usage: $0 [OPTION]... [TAG]...
28458 -h, --help print this help, then exit
28459 -V, --version print version number and configuration settings, then exit
28460 - -q, --quiet do not print progress messages
28461 + --config print configuration, then exit
28462 + -q, --quiet, --silent
28463 + do not print progress messages
28464 -d, --debug don't remove temporary files
28465 --recheck update $as_me by reconfiguring in the same conditions
28466 - --file=FILE[:TEMPLATE]
28467 - instantiate the configuration file FILE
28468 - --header=FILE[:TEMPLATE]
28469 - instantiate the configuration header FILE
28470 + --file=FILE[:TEMPLATE]
28471 + instantiate the configuration file FILE
28472 + --header=FILE[:TEMPLATE]
28473 + instantiate the configuration header FILE
28475 Configuration files:
28476 $config_files
28477 @@ -23118,36 +12679,42 @@
28478 Configuration headers:
28479 $config_headers
28481 -Report bugs to <bug-autoconf@gnu.org>."
28482 +Report bugs to <http://www.python.org/python-bugs>."
28484 _ACEOF
28485 -cat >>$CONFIG_STATUS <<_ACEOF
28486 +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28487 +ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
28488 ac_cs_version="\\
28489 python config.status 2.5
28490 -configured by $0, generated by GNU Autoconf 2.61,
28491 - with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
28492 +configured by $0, generated by GNU Autoconf 2.69,
28493 + with options \\"\$ac_cs_config\\"
28495 -Copyright (C) 2006 Free Software Foundation, Inc.
28496 +Copyright (C) 2012 Free Software Foundation, Inc.
28497 This config.status script is free software; the Free Software Foundation
28498 gives unlimited permission to copy, distribute and modify it."
28500 ac_pwd='$ac_pwd'
28501 srcdir='$srcdir'
28502 INSTALL='$INSTALL'
28503 +test -n "\$AWK" || AWK=awk
28504 _ACEOF
28506 -cat >>$CONFIG_STATUS <<\_ACEOF
28507 -# If no file are specified by the user, then we need to provide default
28508 -# value. By we need to know if files were specified by the user.
28509 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28510 +# The default lists apply if the user does not specify any file.
28511 ac_need_defaults=:
28512 while test $# != 0
28514 case $1 in
28515 - --*=*)
28516 + --*=?*)
28517 ac_option=`expr "X$1" : 'X\([^=]*\)='`
28518 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
28519 ac_shift=:
28521 + --*=)
28522 + ac_option=`expr "X$1" : 'X\([^=]*\)='`
28523 + ac_optarg=
28524 + ac_shift=:
28525 + ;;
28527 ac_option=$1
28528 ac_optarg=$2
28529 @@ -23160,34 +12727,41 @@
28530 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28531 ac_cs_recheck=: ;;
28532 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
28533 - echo "$ac_cs_version"; exit ;;
28534 + $as_echo "$ac_cs_version"; exit ;;
28535 + --config | --confi | --conf | --con | --co | --c )
28536 + $as_echo "$ac_cs_config"; exit ;;
28537 --debug | --debu | --deb | --de | --d | -d )
28538 debug=: ;;
28539 --file | --fil | --fi | --f )
28540 $ac_shift
28541 - CONFIG_FILES="$CONFIG_FILES $ac_optarg"
28542 + case $ac_optarg in
28543 + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28544 + '') as_fn_error $? "missing file argument" ;;
28545 + esac
28546 + as_fn_append CONFIG_FILES " '$ac_optarg'"
28547 ac_need_defaults=false;;
28548 --header | --heade | --head | --hea )
28549 $ac_shift
28550 - CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
28551 + case $ac_optarg in
28552 + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28553 + esac
28554 + as_fn_append CONFIG_HEADERS " '$ac_optarg'"
28555 ac_need_defaults=false;;
28556 --he | --h)
28557 # Conflict between --help and --header
28558 - { echo "$as_me: error: ambiguous option: $1
28559 -Try \`$0 --help' for more information." >&2
28560 - { (exit 1); exit 1; }; };;
28561 + as_fn_error $? "ambiguous option: \`$1'
28562 +Try \`$0 --help' for more information.";;
28563 --help | --hel | -h )
28564 - echo "$ac_cs_usage"; exit ;;
28565 + $as_echo "$ac_cs_usage"; exit ;;
28566 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28567 | -silent | --silent | --silen | --sile | --sil | --si | --s)
28568 ac_cs_silent=: ;;
28570 # This is an error.
28571 - -*) { echo "$as_me: error: unrecognized option: $1
28572 -Try \`$0 --help' for more information." >&2
28573 - { (exit 1); exit 1; }; } ;;
28574 + -*) as_fn_error $? "unrecognized option: \`$1'
28575 +Try \`$0 --help' for more information." ;;
28577 - *) ac_config_targets="$ac_config_targets $1"
28578 + *) as_fn_append ac_config_targets " $1"
28579 ac_need_defaults=false ;;
28581 esac
28582 @@ -23202,30 +12776,32 @@
28585 _ACEOF
28586 -cat >>$CONFIG_STATUS <<_ACEOF
28587 +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28588 if \$ac_cs_recheck; then
28589 - echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
28590 - CONFIG_SHELL=$SHELL
28591 + set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28592 + shift
28593 + \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28594 + CONFIG_SHELL='$SHELL'
28595 export CONFIG_SHELL
28596 - exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28597 + exec "\$@"
28600 _ACEOF
28601 -cat >>$CONFIG_STATUS <<\_ACEOF
28602 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28603 exec 5>>config.log
28605 echo
28606 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28607 ## Running $as_me. ##
28608 _ASBOX
28609 - echo "$ac_log"
28610 + $as_echo "$ac_log"
28611 } >&5
28613 _ACEOF
28614 -cat >>$CONFIG_STATUS <<_ACEOF
28615 +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28616 _ACEOF
28618 -cat >>$CONFIG_STATUS <<\_ACEOF
28619 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28621 # Handling of arguments.
28622 for ac_config_target in $ac_config_targets
28623 @@ -23238,9 +12814,7 @@
28624 "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;;
28625 "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;;
28627 - *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
28628 -echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
28629 - { (exit 1); exit 1; }; };;
28630 + *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28631 esac
28632 done
28634 @@ -23262,268 +12836,302 @@
28635 # after its creation but before its name has been assigned to `$tmp'.
28636 $debug ||
28638 - tmp=
28639 + tmp= ac_tmp=
28640 trap 'exit_status=$?
28641 - { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28642 + : "${ac_tmp:=$tmp}"
28643 + { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
28645 - trap '{ (exit 1); exit 1; }' 1 2 13 15
28646 + trap 'as_fn_exit 1' 1 2 13 15
28648 # Create a (secure) tmp directory for tmp files.
28651 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28652 - test -n "$tmp" && test -d "$tmp"
28653 + test -d "$tmp"
28654 } ||
28656 tmp=./conf$$-$RANDOM
28657 (umask 077 && mkdir "$tmp")
28658 -} ||
28660 - echo "$me: cannot create a temporary directory in ." >&2
28661 - { (exit 1); exit 1; }
28665 -# Set up the sed scripts for CONFIG_FILES section.
28667 +} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
28668 +ac_tmp=$tmp
28670 -# No need to generate the scripts if there are no CONFIG_FILES.
28671 -# This happens for instance when ./config.status config.h
28672 +# Set up the scripts for CONFIG_FILES section.
28673 +# No need to generate them if there are no CONFIG_FILES.
28674 +# This happens for instance with `./config.status config.h'.
28675 if test -n "$CONFIG_FILES"; then
28677 -_ACEOF
28681 -ac_delim='%!_!# '
28682 -for ac_last_try in false false false false false :; do
28683 - cat >conf$$subs.sed <<_ACEOF
28684 -SHELL!$SHELL$ac_delim
28685 -PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
28686 -PACKAGE_NAME!$PACKAGE_NAME$ac_delim
28687 -PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
28688 -PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
28689 -PACKAGE_STRING!$PACKAGE_STRING$ac_delim
28690 -PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
28691 -exec_prefix!$exec_prefix$ac_delim
28692 -prefix!$prefix$ac_delim
28693 -program_transform_name!$program_transform_name$ac_delim
28694 -bindir!$bindir$ac_delim
28695 -sbindir!$sbindir$ac_delim
28696 -libexecdir!$libexecdir$ac_delim
28697 -datarootdir!$datarootdir$ac_delim
28698 -datadir!$datadir$ac_delim
28699 -sysconfdir!$sysconfdir$ac_delim
28700 -sharedstatedir!$sharedstatedir$ac_delim
28701 -localstatedir!$localstatedir$ac_delim
28702 -includedir!$includedir$ac_delim
28703 -oldincludedir!$oldincludedir$ac_delim
28704 -docdir!$docdir$ac_delim
28705 -infodir!$infodir$ac_delim
28706 -htmldir!$htmldir$ac_delim
28707 -dvidir!$dvidir$ac_delim
28708 -pdfdir!$pdfdir$ac_delim
28709 -psdir!$psdir$ac_delim
28710 -libdir!$libdir$ac_delim
28711 -localedir!$localedir$ac_delim
28712 -mandir!$mandir$ac_delim
28713 -DEFS!$DEFS$ac_delim
28714 -ECHO_C!$ECHO_C$ac_delim
28715 -ECHO_N!$ECHO_N$ac_delim
28716 -ECHO_T!$ECHO_T$ac_delim
28717 -LIBS!$LIBS$ac_delim
28718 -build_alias!$build_alias$ac_delim
28719 -host_alias!$host_alias$ac_delim
28720 -target_alias!$target_alias$ac_delim
28721 -VERSION!$VERSION$ac_delim
28722 -SOVERSION!$SOVERSION$ac_delim
28723 -CONFIG_ARGS!$CONFIG_ARGS$ac_delim
28724 -UNIVERSALSDK!$UNIVERSALSDK$ac_delim
28725 -PYTHONFRAMEWORK!$PYTHONFRAMEWORK$ac_delim
28726 -PYTHONFRAMEWORKDIR!$PYTHONFRAMEWORKDIR$ac_delim
28727 -PYTHONFRAMEWORKPREFIX!$PYTHONFRAMEWORKPREFIX$ac_delim
28728 -PYTHONFRAMEWORKINSTALLDIR!$PYTHONFRAMEWORKINSTALLDIR$ac_delim
28729 -FRAMEWORKINSTALLFIRST!$FRAMEWORKINSTALLFIRST$ac_delim
28730 -FRAMEWORKINSTALLLAST!$FRAMEWORKINSTALLLAST$ac_delim
28731 -FRAMEWORKALTINSTALLFIRST!$FRAMEWORKALTINSTALLFIRST$ac_delim
28732 -FRAMEWORKALTINSTALLLAST!$FRAMEWORKALTINSTALLLAST$ac_delim
28733 -FRAMEWORKUNIXTOOLSPREFIX!$FRAMEWORKUNIXTOOLSPREFIX$ac_delim
28734 -MACHDEP!$MACHDEP$ac_delim
28735 -SGI_ABI!$SGI_ABI$ac_delim
28736 -EXTRAPLATDIR!$EXTRAPLATDIR$ac_delim
28737 -EXTRAMACHDEPPATH!$EXTRAMACHDEPPATH$ac_delim
28738 -CONFIGURE_MACOSX_DEPLOYMENT_TARGET!$CONFIGURE_MACOSX_DEPLOYMENT_TARGET$ac_delim
28739 -EXPORT_MACOSX_DEPLOYMENT_TARGET!$EXPORT_MACOSX_DEPLOYMENT_TARGET$ac_delim
28740 -CC!$CC$ac_delim
28741 -CFLAGS!$CFLAGS$ac_delim
28742 -LDFLAGS!$LDFLAGS$ac_delim
28743 -CPPFLAGS!$CPPFLAGS$ac_delim
28744 -ac_ct_CC!$ac_ct_CC$ac_delim
28745 -EXEEXT!$EXEEXT$ac_delim
28746 -OBJEXT!$OBJEXT$ac_delim
28747 -CXX!$CXX$ac_delim
28748 -MAINCC!$MAINCC$ac_delim
28749 -CPP!$CPP$ac_delim
28750 -GREP!$GREP$ac_delim
28751 -EGREP!$EGREP$ac_delim
28752 -BUILDEXEEXT!$BUILDEXEEXT$ac_delim
28753 -LIBRARY!$LIBRARY$ac_delim
28754 -LDLIBRARY!$LDLIBRARY$ac_delim
28755 -DLLLIBRARY!$DLLLIBRARY$ac_delim
28756 -BLDLIBRARY!$BLDLIBRARY$ac_delim
28757 -LDLIBRARYDIR!$LDLIBRARYDIR$ac_delim
28758 -INSTSONAME!$INSTSONAME$ac_delim
28759 -RUNSHARED!$RUNSHARED$ac_delim
28760 -LINKCC!$LINKCC$ac_delim
28761 -RANLIB!$RANLIB$ac_delim
28762 -AR!$AR$ac_delim
28763 -SVNVERSION!$SVNVERSION$ac_delim
28764 -INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
28765 -INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
28766 -INSTALL_DATA!$INSTALL_DATA$ac_delim
28767 -LN!$LN$ac_delim
28768 -OPT!$OPT$ac_delim
28769 -BASECFLAGS!$BASECFLAGS$ac_delim
28770 -OTHER_LIBTOOL_OPT!$OTHER_LIBTOOL_OPT$ac_delim
28771 -LIBTOOL_CRUFT!$LIBTOOL_CRUFT$ac_delim
28772 -SO!$SO$ac_delim
28773 -LDSHARED!$LDSHARED$ac_delim
28774 -BLDSHARED!$BLDSHARED$ac_delim
28775 -CCSHARED!$CCSHARED$ac_delim
28776 -LINKFORSHARED!$LINKFORSHARED$ac_delim
28777 -CFLAGSFORSHARED!$CFLAGSFORSHARED$ac_delim
28778 -SHLIBS!$SHLIBS$ac_delim
28779 -USE_SIGNAL_MODULE!$USE_SIGNAL_MODULE$ac_delim
28780 -SIGNAL_OBJS!$SIGNAL_OBJS$ac_delim
28781 -_ACEOF
28783 - if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
28784 - break
28785 - elif $ac_last_try; then
28786 - { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
28787 -echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
28788 - { (exit 1); exit 1; }; }
28789 - else
28790 - ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28791 - fi
28792 -done
28794 -ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
28795 -if test -n "$ac_eof"; then
28796 - ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
28797 - ac_eof=`expr $ac_eof + 1`
28798 +ac_cr=`echo X | tr X '\015'`
28799 +# On cygwin, bash can eat \r inside `` if the user requested igncr.
28800 +# But we know of no other shell where ac_cr would be empty at this
28801 +# point, so we can use a bashism as a fallback.
28802 +if test "x$ac_cr" = x; then
28803 + eval ac_cr=\$\'\\r\'
28805 +ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28806 +if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28807 + ac_cs_awk_cr='\\r'
28808 +else
28809 + ac_cs_awk_cr=$ac_cr
28812 -cat >>$CONFIG_STATUS <<_ACEOF
28813 -cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
28814 -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28815 -_ACEOF
28816 -sed '
28817 -s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
28818 -s/^/s,@/; s/!/@,|#_!!_#|/
28820 -t n
28821 -s/'"$ac_delim"'$/,g/; t
28822 -s/$/\\/; p
28823 -N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
28824 -' >>$CONFIG_STATUS <conf$$subs.sed
28825 -rm -f conf$$subs.sed
28826 -cat >>$CONFIG_STATUS <<_ACEOF
28827 -CEOF$ac_eof
28828 +echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
28829 _ACEOF
28833 + echo "cat >conf$$subs.awk <<_ACEOF" &&
28834 + echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28835 + echo "_ACEOF"
28836 +} >conf$$subs.sh ||
28837 + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
28838 +ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
28839 ac_delim='%!_!# '
28840 for ac_last_try in false false false false false :; do
28841 - cat >conf$$subs.sed <<_ACEOF
28842 -USE_THREAD_MODULE!$USE_THREAD_MODULE$ac_delim
28843 -LDLAST!$LDLAST$ac_delim
28844 -THREADOBJ!$THREADOBJ$ac_delim
28845 -DLINCLDIR!$DLINCLDIR$ac_delim
28846 -DYNLOADFILE!$DYNLOADFILE$ac_delim
28847 -MACHDEP_OBJS!$MACHDEP_OBJS$ac_delim
28848 -TRUE!$TRUE$ac_delim
28849 -LIBOBJS!$LIBOBJS$ac_delim
28850 -HAVE_GETHOSTBYNAME_R_6_ARG!$HAVE_GETHOSTBYNAME_R_6_ARG$ac_delim
28851 -HAVE_GETHOSTBYNAME_R_5_ARG!$HAVE_GETHOSTBYNAME_R_5_ARG$ac_delim
28852 -HAVE_GETHOSTBYNAME_R_3_ARG!$HAVE_GETHOSTBYNAME_R_3_ARG$ac_delim
28853 -HAVE_GETHOSTBYNAME_R!$HAVE_GETHOSTBYNAME_R$ac_delim
28854 -HAVE_GETHOSTBYNAME!$HAVE_GETHOSTBYNAME$ac_delim
28855 -LIBM!$LIBM$ac_delim
28856 -LIBC!$LIBC$ac_delim
28857 -UNICODE_OBJS!$UNICODE_OBJS$ac_delim
28858 -THREADHEADERS!$THREADHEADERS$ac_delim
28859 -SRCDIRS!$SRCDIRS$ac_delim
28860 -LTLIBOBJS!$LTLIBOBJS$ac_delim
28861 -_ACEOF
28862 + . ./conf$$subs.sh ||
28863 + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
28865 - if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 19; then
28866 + ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
28867 + if test $ac_delim_n = $ac_delim_num; then
28868 break
28869 elif $ac_last_try; then
28870 - { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
28871 -echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
28872 - { (exit 1); exit 1; }; }
28873 + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
28874 else
28875 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28877 done
28878 +rm -f conf$$subs.sh
28880 -ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
28881 -if test -n "$ac_eof"; then
28882 - ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
28883 - ac_eof=`expr $ac_eof + 1`
28886 -cat >>$CONFIG_STATUS <<_ACEOF
28887 -cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
28888 -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
28889 -_ACEOF
28890 -sed '
28891 -s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
28892 -s/^/s,@/; s/!/@,|#_!!_#|/
28894 -t n
28895 -s/'"$ac_delim"'$/,g/; t
28896 -s/$/\\/; p
28897 -N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
28898 -' >>$CONFIG_STATUS <conf$$subs.sed
28899 -rm -f conf$$subs.sed
28900 -cat >>$CONFIG_STATUS <<_ACEOF
28901 -:end
28902 -s/|#_!!_#|//g
28903 -CEOF$ac_eof
28904 +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28905 +cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
28906 _ACEOF
28907 +sed -n '
28909 +s/^/S["/; s/!.*/"]=/
28912 +s/^[^!]*!//
28913 +:repl
28914 +t repl
28915 +s/'"$ac_delim"'$//
28916 +t delim
28917 +:nl
28919 +s/\(.\{148\}\)..*/\1/
28920 +t more1
28921 +s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
28924 +b repl
28925 +:more1
28926 +s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28929 +s/.\{148\}//
28930 +t nl
28931 +:delim
28933 +s/\(.\{148\}\)..*/\1/
28934 +t more2
28935 +s/["\\]/\\&/g; s/^/"/; s/$/"/
28938 +:more2
28939 +s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28942 +s/.\{148\}//
28943 +t delim
28944 +' <conf$$subs.awk | sed '
28945 +/^[^""]/{
28947 + s/\n//
28949 +' >>$CONFIG_STATUS || ac_write_fail=1
28950 +rm -f conf$$subs.awk
28951 +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28952 +_ACAWK
28953 +cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
28954 + for (key in S) S_is_set[key] = 1
28955 + FS = "\a"
28959 + line = $ 0
28960 + nfields = split(line, field, "@")
28961 + substed = 0
28962 + len = length(field[1])
28963 + for (i = 2; i < nfields; i++) {
28964 + key = field[i]
28965 + keylen = length(key)
28966 + if (S_is_set[key]) {
28967 + value = S[key]
28968 + line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28969 + len += length(value) + length(field[++i])
28970 + substed = 1
28971 + } else
28972 + len += 1 + keylen
28975 + print line
28978 +_ACAWK
28979 +_ACEOF
28980 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28981 +if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28982 + sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
28983 +else
28984 + cat
28985 +fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
28986 + || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
28987 +_ACEOF
28989 -# VPATH may cause trouble with some makes, so we remove $(srcdir),
28990 -# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28991 +# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
28992 +# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
28993 # trailing colons and then remove the whole line if VPATH becomes empty
28994 # (actually we leave an empty line to preserve line numbers).
28995 if test "x$srcdir" = x.; then
28996 - ac_vpsub='/^[ ]*VPATH[ ]*=/{
28997 -s/:*\$(srcdir):*/:/
28998 -s/:*\${srcdir}:*/:/
28999 -s/:*@srcdir@:*/:/
29000 -s/^\([^=]*=[ ]*\):*/\1/
29001 + ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
29003 +s///
29004 +s/^/:/
29005 +s/[ ]*$/:/
29006 +s/:\$(srcdir):/:/g
29007 +s/:\${srcdir}:/:/g
29008 +s/:@srcdir@:/:/g
29009 +s/^:*//
29010 s/:*$//
29012 +s/\(=[ ]*\).*/\1/
29014 +s/\n//
29015 s/^[^=]*=[ ]*$//
29019 -cat >>$CONFIG_STATUS <<\_ACEOF
29020 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29021 fi # test -n "$CONFIG_FILES"
29023 +# Set up the scripts for CONFIG_HEADERS section.
29024 +# No need to generate them if there are no CONFIG_HEADERS.
29025 +# This happens for instance with `./config.status Makefile'.
29026 +if test -n "$CONFIG_HEADERS"; then
29027 +cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
29028 +BEGIN {
29029 +_ACEOF
29031 +# Transform confdefs.h into an awk script `defines.awk', embedded as
29032 +# here-document in config.status, that substitutes the proper values into
29033 +# config.h.in to produce config.h.
29035 +# Create a delimiter string that does not exist in confdefs.h, to ease
29036 +# handling of long lines.
29037 +ac_delim='%!_!# '
29038 +for ac_last_try in false false :; do
29039 + ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
29040 + if test -z "$ac_tt"; then
29041 + break
29042 + elif $ac_last_try; then
29043 + as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
29044 + else
29045 + ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29046 + fi
29047 +done
29049 +# For the awk script, D is an array of macro values keyed by name,
29050 +# likewise P contains macro parameters if any. Preserve backslash
29051 +# newline sequences.
29053 +ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29054 +sed -n '
29055 +s/.\{148\}/&'"$ac_delim"'/g
29056 +t rset
29057 +:rset
29058 +s/^[ ]*#[ ]*define[ ][ ]*/ /
29059 +t def
29061 +:def
29062 +s/\\$//
29063 +t bsnl
29064 +s/["\\]/\\&/g
29065 +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29066 +D["\1"]=" \3"/p
29067 +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
29069 +:bsnl
29070 +s/["\\]/\\&/g
29071 +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29072 +D["\1"]=" \3\\\\\\n"\\/p
29073 +t cont
29074 +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
29075 +t cont
29077 +:cont
29079 +s/.\{148\}/&'"$ac_delim"'/g
29080 +t clear
29081 +:clear
29082 +s/\\$//
29083 +t bsnlc
29084 +s/["\\]/\\&/g; s/^/"/; s/$/"/p
29086 +:bsnlc
29087 +s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
29088 +b cont
29089 +' <confdefs.h | sed '
29090 +s/'"$ac_delim"'/"\\\
29091 +"/g' >>$CONFIG_STATUS || ac_write_fail=1
29093 +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29094 + for (key in D) D_is_set[key] = 1
29095 + FS = "\a"
29097 +/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
29098 + line = \$ 0
29099 + split(line, arg, " ")
29100 + if (arg[1] == "#") {
29101 + defundef = arg[2]
29102 + mac1 = arg[3]
29103 + } else {
29104 + defundef = substr(arg[1], 2)
29105 + mac1 = arg[2]
29107 + split(mac1, mac2, "(") #)
29108 + macro = mac2[1]
29109 + prefix = substr(line, 1, index(line, defundef) - 1)
29110 + if (D_is_set[macro]) {
29111 + # Preserve the white space surrounding the "#".
29112 + print prefix "define", macro P[macro] D[macro]
29113 + next
29114 + } else {
29115 + # Replace #undef with comments. This is necessary, for example,
29116 + # in the case of _POSIX_SOURCE, which is predefined and required
29117 + # on some systems where configure will not decide to define it.
29118 + if (defundef == "undef") {
29119 + print "/*", prefix defundef, macro, "*/"
29120 + next
29124 +{ print }
29125 +_ACAWK
29126 +_ACEOF
29127 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29128 + as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
29129 +fi # test -n "$CONFIG_HEADERS"
29132 -for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
29133 +eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
29134 +shift
29135 +for ac_tag
29137 case $ac_tag in
29138 :[FHLC]) ac_mode=$ac_tag; continue;;
29139 esac
29140 case $ac_mode$ac_tag in
29141 :[FHL]*:*);;
29142 - :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
29143 -echo "$as_me: error: Invalid tag $ac_tag." >&2;}
29144 - { (exit 1); exit 1; }; };;
29145 + :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
29146 :[FH]-) ac_tag=-:-;;
29147 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29148 esac
29149 @@ -23542,7 +13150,7 @@
29150 for ac_f
29152 case $ac_f in
29153 - -) ac_f="$tmp/stdin";;
29154 + -) ac_f="$ac_tmp/stdin";;
29155 *) # Look for the file first in the build tree, then in the source tree
29156 # (if the path is not absolute). The absolute path cannot be DOS-style,
29157 # because $ac_f cannot contain `:'.
29158 @@ -23551,26 +13159,34 @@
29159 [\\/$]*) false;;
29160 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29161 esac ||
29162 - { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
29163 -echo "$as_me: error: cannot find input file: $ac_f" >&2;}
29164 - { (exit 1); exit 1; }; };;
29165 + as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
29166 esac
29167 - ac_file_inputs="$ac_file_inputs $ac_f"
29168 + case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
29169 + as_fn_append ac_file_inputs " '$ac_f'"
29170 done
29172 # Let's still pretend it is `configure' which instantiates (i.e., don't
29173 # use $as_me), people would be surprised to read:
29174 # /* config.h. Generated by config.status. */
29175 - configure_input="Generated from "`IFS=:
29176 - echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
29177 + configure_input='Generated from '`
29178 + $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
29179 + `' by configure.'
29180 if test x"$ac_file" != x-; then
29181 configure_input="$ac_file. $configure_input"
29182 - { echo "$as_me:$LINENO: creating $ac_file" >&5
29183 -echo "$as_me: creating $ac_file" >&6;}
29184 + { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
29185 +$as_echo "$as_me: creating $ac_file" >&6;}
29187 + # Neutralize special characters interpreted by sed in replacement strings.
29188 + case $configure_input in #(
29189 + *\&* | *\|* | *\\* )
29190 + ac_sed_conf_input=`$as_echo "$configure_input" |
29191 + sed 's/[\\\\&|]/\\\\&/g'`;; #(
29192 + *) ac_sed_conf_input=$configure_input;;
29193 + esac
29195 case $ac_tag in
29196 - *:-:* | *:-) cat >"$tmp/stdin";;
29197 + *:-:* | *:-) cat >"$ac_tmp/stdin" \
29198 + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
29199 esac
29201 esac
29202 @@ -23580,42 +13196,7 @@
29203 X"$ac_file" : 'X\(//\)[^/]' \| \
29204 X"$ac_file" : 'X\(//\)$' \| \
29205 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29206 -echo X"$ac_file" |
29207 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29208 - s//\1/
29211 - /^X\(\/\/\)[^/].*/{
29212 - s//\1/
29215 - /^X\(\/\/\)$/{
29216 - s//\1/
29219 - /^X\(\/\).*/{
29220 - s//\1/
29223 - s/.*/./; q'`
29224 - { as_dir="$ac_dir"
29225 - case $as_dir in #(
29226 - -*) as_dir=./$as_dir;;
29227 - esac
29228 - test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
29229 - as_dirs=
29230 - while :; do
29231 - case $as_dir in #(
29232 - *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
29233 - *) as_qdir=$as_dir;;
29234 - esac
29235 - as_dirs="'$as_qdir' $as_dirs"
29236 - as_dir=`$as_dirname -- "$as_dir" ||
29237 -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29238 - X"$as_dir" : 'X\(//\)[^/]' \| \
29239 - X"$as_dir" : 'X\(//\)$' \| \
29240 - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29241 -echo X"$as_dir" |
29242 +$as_echo X"$ac_file" |
29243 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29244 s//\1/
29246 @@ -23633,20 +13214,15 @@
29249 s/.*/./; q'`
29250 - test -d "$as_dir" && break
29251 - done
29252 - test -z "$as_dirs" || eval "mkdir $as_dirs"
29253 - } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
29254 -echo "$as_me: error: cannot create directory $as_dir" >&2;}
29255 - { (exit 1); exit 1; }; }; }
29256 + as_dir="$ac_dir"; as_fn_mkdir_p
29257 ac_builddir=.
29259 case "$ac_dir" in
29260 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
29262 - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
29263 + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
29264 # A ".." for each directory in $ac_dir_suffix.
29265 - ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
29266 + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
29267 case $ac_top_builddir_sub in
29268 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
29269 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
29270 @@ -23686,12 +13262,12 @@
29271 esac
29272 _ACEOF
29274 -cat >>$CONFIG_STATUS <<\_ACEOF
29275 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29276 # If the template does not know about datarootdir, expand it.
29277 # FIXME: This hack should be removed a few years after 2.60.
29278 ac_datarootdir_hack=; ac_datarootdir_seen=
29280 -case `sed -n '/datarootdir/ {
29281 +ac_sed_dataroot='
29282 +/datarootdir/ {
29286 @@ -23699,36 +13275,37 @@
29287 /@docdir@/p
29288 /@infodir@/p
29289 /@localedir@/p
29290 -/@mandir@/p
29291 -' $ac_file_inputs` in
29292 +/@mandir@/p'
29293 +case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
29294 *datarootdir*) ac_datarootdir_seen=yes;;
29295 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
29296 - { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29297 -echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29298 + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29299 +$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29300 _ACEOF
29301 -cat >>$CONFIG_STATUS <<_ACEOF
29302 +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29303 ac_datarootdir_hack='
29304 s&@datadir@&$datadir&g
29305 s&@docdir@&$docdir&g
29306 s&@infodir@&$infodir&g
29307 s&@localedir@&$localedir&g
29308 s&@mandir@&$mandir&g
29309 - s&\\\${datarootdir}&$datarootdir&g' ;;
29310 + s&\\\${datarootdir}&$datarootdir&g' ;;
29311 esac
29312 _ACEOF
29314 # Neutralize VPATH when `$srcdir' = `.'.
29315 # Shell code in configure.ac might set extrasub.
29316 # FIXME: do we really want to maintain this feature?
29317 -cat >>$CONFIG_STATUS <<_ACEOF
29318 - sed "$ac_vpsub
29319 +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29320 +ac_sed_extra="$ac_vpsub
29321 $extrasub
29322 _ACEOF
29323 -cat >>$CONFIG_STATUS <<\_ACEOF
29324 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29326 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29327 -s&@configure_input@&$configure_input&;t t
29328 +s|@configure_input@|$ac_sed_conf_input|;t t
29329 s&@top_builddir@&$ac_top_builddir_sub&;t t
29330 +s&@top_build_prefix@&$ac_top_build_prefix&;t t
29331 s&@srcdir@&$ac_srcdir&;t t
29332 s&@abs_srcdir@&$ac_abs_srcdir&;t t
29333 s&@top_srcdir@&$ac_top_srcdir&;t t
29334 @@ -23738,119 +13315,49 @@
29335 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
29336 s&@INSTALL@&$ac_INSTALL&;t t
29337 $ac_datarootdir_hack
29338 -" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
29340 +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
29341 + >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
29343 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29344 - { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
29345 - { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
29346 - { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29347 -which seems to be undefined. Please make sure it is defined." >&5
29348 -echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29349 -which seems to be undefined. Please make sure it is defined." >&2;}
29350 + { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
29351 + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
29352 + "$ac_tmp/out"`; test -z "$ac_out"; } &&
29353 + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29354 +which seems to be undefined. Please make sure it is defined" >&5
29355 +$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29356 +which seems to be undefined. Please make sure it is defined" >&2;}
29358 - rm -f "$tmp/stdin"
29359 + rm -f "$ac_tmp/stdin"
29360 case $ac_file in
29361 - -) cat "$tmp/out"; rm -f "$tmp/out";;
29362 - *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
29363 - esac
29364 + -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
29365 + *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
29366 + esac \
29367 + || as_fn_error $? "could not create $ac_file" "$LINENO" 5
29371 # CONFIG_HEADER
29373 -_ACEOF
29375 -# Transform confdefs.h into a sed script `conftest.defines', that
29376 -# substitutes the proper values into config.h.in to produce config.h.
29377 -rm -f conftest.defines conftest.tail
29378 -# First, append a space to every undef/define line, to ease matching.
29379 -echo 's/$/ /' >conftest.defines
29380 -# Then, protect against being on the right side of a sed subst, or in
29381 -# an unquoted here document, in config.status. If some macros were
29382 -# called several times there might be several #defines for the same
29383 -# symbol, which is useless. But do not sort them, since the last
29384 -# AC_DEFINE must be honored.
29385 -ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29386 -# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
29387 -# NAME is the cpp macro being defined, VALUE is the value it is being given.
29388 -# PARAMS is the parameter list in the macro definition--in most cases, it's
29389 -# just an empty string.
29390 -ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
29391 -ac_dB='\\)[ (].*,\\1define\\2'
29392 -ac_dC=' '
29393 -ac_dD=' ,'
29395 -uniq confdefs.h |
29396 - sed -n '
29397 - t rset
29398 - :rset
29399 - s/^[ ]*#[ ]*define[ ][ ]*//
29400 - t ok
29402 - :ok
29403 - s/[\\&,]/\\&/g
29404 - s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
29405 - s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
29406 - ' >>conftest.defines
29408 -# Remove the space that was appended to ease matching.
29409 -# Then replace #undef with comments. This is necessary, for
29410 -# example, in the case of _POSIX_SOURCE, which is predefined and required
29411 -# on some systems where configure will not decide to define it.
29412 -# (The regexp can be short, since the line contains either #define or #undef.)
29413 -echo 's/ $//
29414 -s,^[ #]*u.*,/* & */,' >>conftest.defines
29416 -# Break up conftest.defines:
29417 -ac_max_sed_lines=50
29419 -# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
29420 -# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
29421 -# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
29422 -# et cetera.
29423 -ac_in='$ac_file_inputs'
29424 -ac_out='"$tmp/out1"'
29425 -ac_nxt='"$tmp/out2"'
29427 -while :
29429 - # Write a here document:
29430 - cat >>$CONFIG_STATUS <<_ACEOF
29431 - # First, check the format of the line:
29432 - cat >"\$tmp/defines.sed" <<\\CEOF
29433 -/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
29434 -/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
29436 -:def
29437 -_ACEOF
29438 - sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
29439 - echo 'CEOF
29440 - sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
29441 - ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
29442 - sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
29443 - grep . conftest.tail >/dev/null || break
29444 - rm -f conftest.defines
29445 - mv conftest.tail conftest.defines
29446 -done
29447 -rm -f conftest.defines conftest.tail
29449 -echo "ac_result=$ac_in" >>$CONFIG_STATUS
29450 -cat >>$CONFIG_STATUS <<\_ACEOF
29451 if test x"$ac_file" != x-; then
29452 - echo "/* $configure_input */" >"$tmp/config.h"
29453 - cat "$ac_result" >>"$tmp/config.h"
29454 - if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
29455 - { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
29456 -echo "$as_me: $ac_file is unchanged" >&6;}
29458 + $as_echo "/* $configure_input */" \
29459 + && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
29460 + } >"$ac_tmp/config.h" \
29461 + || as_fn_error $? "could not create $ac_file" "$LINENO" 5
29462 + if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
29463 + { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
29464 +$as_echo "$as_me: $ac_file is unchanged" >&6;}
29465 else
29466 - rm -f $ac_file
29467 - mv "$tmp/config.h" $ac_file
29468 + rm -f "$ac_file"
29469 + mv "$ac_tmp/config.h" "$ac_file" \
29470 + || as_fn_error $? "could not create $ac_file" "$LINENO" 5
29472 else
29473 - echo "/* $configure_input */"
29474 - cat "$ac_result"
29475 + $as_echo "/* $configure_input */" \
29476 + && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
29477 + || as_fn_error $? "could not create -" "$LINENO" 5
29479 - rm -f "$tmp/out12"
29483 @@ -23859,11 +13366,13 @@
29484 done # for ac_tag
29487 -{ (exit 0); exit 0; }
29488 +as_fn_exit 0
29489 _ACEOF
29490 -chmod +x $CONFIG_STATUS
29491 ac_clean_files=$ac_clean_files_save
29493 +test $ac_write_fail = 0 ||
29494 + as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
29497 # configure is writing to config.log, and then calls config.status.
29498 # config.status does its own redirection, appending to config.log.
29499 @@ -23883,7 +13392,11 @@
29500 exec 5>>config.log
29501 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29502 # would make configure fail if this is the last instruction.
29503 - $ac_cs_success || { (exit 1); exit 1; }
29504 + $ac_cs_success || as_fn_exit 1
29506 +if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29507 + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29508 +$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
29512 diff -ruN Python-2.5.2/configure.in Python-2.5.2.aros/configure.in
29513 --- Python-2.5.2/configure.in 2008-02-13 19:17:17.000000000 +0000
29514 +++ Python-2.5.2.aros/configure.in 2016-03-30 14:00:53.051851074 +0100
29515 @@ -3411,6 +3411,7 @@
29518 AC_MSG_CHECKING(for %zd printf() format support)
29519 +AC_CACHE_VAL(ac_cv_printf_zd_format, [
29520 AC_TRY_RUN([#include <stdio.h>
29521 #include <stddef.h>
29522 #include <string.h>
29523 @@ -3445,9 +3446,14 @@
29525 return 0;
29527 -[AC_MSG_RESULT(yes)
29528 - AC_DEFINE(PY_FORMAT_SIZE_T, "z", [Define to printf format modifier for Py_ssize_t])],
29529 - AC_MSG_RESULT(no))
29530 + ac_cv_printf_zd_format=yes,
29531 + ac_cv_printf_zd_format=no,
29532 + ac_cv_printf_zd_format=no)])
29533 +AC_MSG_RESULT($ac_cv_printf_zd_format)
29535 +if test $ac_cv_printf_zd_format = yes; then
29536 + AC_DEFINE(PY_FORMAT_SIZE_T, "z", [Define to printf format modifier for Py_ssize_t])
29539 AC_CHECK_TYPE(socklen_t,,
29540 AC_DEFINE(socklen_t,int,
29541 diff -ruN Python-2.5.2/Lib/plat-aros12/regen Python-2.5.2.aros/Lib/plat-aros12/regen
29542 --- Python-2.5.2/Lib/plat-aros12/regen 1970-01-01 01:00:00.000000000 +0100
29543 +++ Python-2.5.2.aros/Lib/plat-aros12/regen 2016-03-30 13:30:31.899978658 +0100
29544 @@ -0,0 +1,3 @@
29545 +#! /bin/sh
29546 +set -v
29547 +python$EXE ../../Tools/scripts/h2py.py -i '(u_long)' /usr/netinet/in.h
29548 diff -ruN Python-2.5.2/Makefile.pre.in Python-2.5.2.aros/Makefile.pre.in
29549 --- Python-2.5.2/Makefile.pre.in 2007-12-05 20:43:57.000000000 +0000
29550 +++ Python-2.5.2.aros/Makefile.pre.in 2016-03-30 13:30:31.899978658 +0100
29551 @@ -658,7 +658,7 @@
29552 then rm -f $(DESTDIR)$(BINDIR)/$(PYTHON); \
29553 else true; \
29555 - (cd $(DESTDIR)$(BINDIR); $(LN) python$(VERSION)$(EXE) $(PYTHON))
29556 + (cd $(DESTDIR)$(BINDIR); $(LN) -s python$(VERSION)$(EXE) $(PYTHON))
29557 -rm -f $(DESTDIR)$(BINDIR)/python-config
29558 (cd $(DESTDIR)$(BINDIR); $(LN) -s python$(VERSION)-config python-config)
29560 diff -ruN Python-2.5.2/Modules/posixmodule.c Python-2.5.2.aros/Modules/posixmodule.c
29561 --- Python-2.5.2/Modules/posixmodule.c 2008-02-03 07:20:39.000000000 +0000
29562 +++ Python-2.5.2.aros/Modules/posixmodule.c 2016-03-30 13:30:31.899978658 +0100
29563 @@ -3467,7 +3467,7 @@
29564 static PyObject *
29565 posix_fork(PyObject *self, PyObject *noargs)
29567 - int pid = fork();
29568 + int pid = vfork();
29569 if (pid == -1)
29570 return posix_error();
29571 if (pid == 0)
29572 diff -ruN Python-2.5.2/Modules/Setup.dist Python-2.5.2.aros/Modules/Setup.dist
29573 --- Python-2.5.2/Modules/Setup.dist 2006-08-06 08:26:21.000000000 +0100
29574 +++ Python-2.5.2.aros/Modules/Setup.dist 2016-03-30 13:30:31.899978658 +0100
29575 @@ -149,7 +149,7 @@
29576 # modules are to be built as shared libraries (see above for more
29577 # detail; also note that *static* reverses this effect):
29579 -#*shared*
29580 +*static*
29582 # GNU readline. Unlike previous Python incarnations, GNU readline is
29583 # now incorporated in an optional module, configured in the Setup file
29584 @@ -164,23 +164,23 @@
29586 # Modules that should always be present (non UNIX dependent):
29588 -#array arraymodule.c # array objects
29589 -#cmath cmathmodule.c # -lm # complex math library functions
29590 -#math mathmodule.c # -lm # math library functions, e.g. sin()
29591 -#_struct _struct.c # binary structure packing/unpacking
29592 -#time timemodule.c # -lm # time operations and variables
29593 -#operator operator.c # operator.add() and similar goodies
29594 -#_weakref _weakref.c # basic weak reference support
29595 -#_testcapi _testcapimodule.c # Python C API test module
29596 -#_random _randommodule.c # Random number generator
29597 -#collections collectionsmodule.c # Container types
29598 -#itertools itertoolsmodule.c # Functions creating iterators for efficient looping
29599 -#strop stropmodule.c # String manipulations
29600 +array arraymodule.c # array objects
29601 +cmath cmathmodule.c # -lm # complex math library functions
29602 +math mathmodule.c # -lm # math library functions, e.g. sin()
29603 +_struct _struct.c # binary structure packing/unpacking
29604 +time timemodule.c # -lm # time operations and variables
29605 +operator operator.c # operator.add() and similar goodies
29606 +_weakref _weakref.c # basic weak reference support
29607 +_testcapi _testcapimodule.c # Python C API test module
29608 +_random _randommodule.c # Random number generator
29609 +collections collectionsmodule.c # Container types
29610 +itertools itertoolsmodule.c # Functions creating iterators for efficient looping
29611 +strop stropmodule.c # String manipulations
29613 -#unicodedata unicodedata.c # static Unicode character database
29614 +unicodedata unicodedata.c # static Unicode character database
29616 # access to ISO C locale support
29617 -#_locale _localemodule.c # -lintl
29618 +_locale _localemodule.c # -lintl
29621 # Modules with some UNIX dependencies -- on by default:
29622 diff -ruN Python-2.5.2/setup.py Python-2.5.2.aros/setup.py
29623 --- Python-2.5.2/setup.py 2008-02-04 23:41:02.000000000 +0000
29624 +++ Python-2.5.2.aros/setup.py 2016-03-30 13:30:31.899978658 +0100
29625 @@ -15,7 +15,7 @@
29626 from distutils.command.install_lib import install_lib
29628 # This global variable is used to hold the list of modules to be disabled.
29629 -disabled_module_list = []
29630 +disabled_module_list = ['crypt', 'grp', 'select', 'binascii', 'parser', 'cStringIO', 'cPickle', 'mmap', 'audioop', '_csv', 'getnameinfo', '_ctypes', '_ctypes_test', 'datetime', 'time', '_bisect', '_heapq', '_functools', '_hotshot', '_lsprof', 'fcntl', '_sha', '_md5', '_sha256', '_sha512', 'termios', 'resource', 'nis', 'zlib', 'bz2', 'compress', 'pyexpat', '_socket', '_elementtree', '_multibytecodec', '_codecs', 'syslog', '_codecs_kr', '_codecs_jp', '_codecs_cn', '_codecs_tw', '_codecs_hk', '_codecs_iso2022', 'audioop', 'imageop', 'rgbimg']
29632 def add_dir_to_list(dirlist, dir):
29633 """Add the directory 'dir' to the list 'dirlist' (at the front) if