blob: 85beb4551aed2374d1bee2993302d24c97ef3e03 [file] [log] [blame]
David Tardon794e2e62012-06-16 13:56:33 +02001--- misc/build/Python-2.6.1/configure 2012-06-17 10:28:32.528616022 +0200
2+++ misc/build/Python-2.6.1/configure 2012-06-17 10:28:42.477677537 +0200
3@@ -1,63 +1,86 @@
4 #! /bin/sh
5 # From configure.in Revision: 67229 .
6 # Guess values for system-dependent variables and create Makefiles.
7-# Generated by GNU Autoconf 2.61 for python 2.6.
8+# Generated by GNU Autoconf 2.68 for python 2.6.
9 #
10 # Report bugs to <http://www.python.org/python-bugs>.
11 #
12+#
13 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
14-# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
15+# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
16+# Foundation, Inc.
17+#
18+#
19 # This configure script is free software; the Free Software Foundation
20 # gives unlimited permission to copy, distribute and modify it.
21-## --------------------- ##
22-## M4sh Initialization. ##
23-## --------------------- ##
24+## -------------------- ##
25+## M4sh Initialization. ##
26+## -------------------- ##
27
28 # Be more Bourne compatible
29 DUALCASE=1; export DUALCASE # for MKS sh
30-if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
31+if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
32 emulate sh
33 NULLCMD=:
34- # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
35+ # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
36 # is contrary to our usage. Disable this feature.
37 alias -g '${1+"$@"}'='"$@"'
38 setopt NO_GLOB_SUBST
39 else
40- case `(set -o) 2>/dev/null` in
41- *posix*) set -o posix ;;
42+ case `(set -o) 2>/dev/null` in #(
43+ *posix*) :
44+ set -o posix ;; #(
45+ *) :
46+ ;;
47 esac
48-
49 fi
50
51
52-
53-
54-# PATH needs CR
55-# Avoid depending upon Character Ranges.
56-as_cr_letters='abcdefghijklmnopqrstuvwxyz'
57-as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
58-as_cr_Letters=$as_cr_letters$as_cr_LETTERS
59-as_cr_digits='0123456789'
60-as_cr_alnum=$as_cr_Letters$as_cr_digits
61-
62-# The user is always right.
63-if test "${PATH_SEPARATOR+set}" != set; then
64- echo "#! /bin/sh" >conf$$.sh
65- echo "exit 0" >>conf$$.sh
66- chmod +x conf$$.sh
67- if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
68- PATH_SEPARATOR=';'
69+as_nl='
70+'
71+export as_nl
72+# Printing a long string crashes Solaris 7 /usr/bin/printf.
73+as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
74+as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
75+as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
76+# Prefer a ksh shell builtin over an external printf program on Solaris,
77+# but without wasting forks for bash or zsh.
78+if test -z "$BASH_VERSION$ZSH_VERSION" \
79+ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
80+ as_echo='print -r --'
81+ as_echo_n='print -rn --'
82+elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
83+ as_echo='printf %s\n'
84+ as_echo_n='printf %s'
85+else
86+ if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
87+ as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
88+ as_echo_n='/usr/ucb/echo -n'
89 else
90- PATH_SEPARATOR=:
91+ as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
92+ as_echo_n_body='eval
93+ arg=$1;
94+ case $arg in #(
95+ *"$as_nl"*)
96+ expr "X$arg" : "X\\(.*\\)$as_nl";
97+ arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
98+ esac;
99+ expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
100+ '
101+ export as_echo_n_body
102+ as_echo_n='sh -c $as_echo_n_body as_echo'
103 fi
104- rm -f conf$$.sh
105+ export as_echo_body
106+ as_echo='sh -c $as_echo_body as_echo'
107 fi
108
109-# Support unset when possible.
110-if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
111- as_unset=unset
112-else
113- as_unset=false
114+# The user is always right.
115+if test "${PATH_SEPARATOR+set}" != set; then
116+ PATH_SEPARATOR=:
117+ (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
118+ (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
119+ PATH_SEPARATOR=';'
120+ }
121 fi
122
123
124@@ -66,20 +89,19 @@ fi
125 # there to prevent editors from complaining about space-tab.
126 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
127 # splitting by setting IFS to empty value.)
128-as_nl='
129-'
130 IFS=" "" $as_nl"
131
132 # Find who we are. Look in the path if we contain no directory separator.
133-case $0 in
134+as_myself=
135+case $0 in #((
136 *[\\/]* ) as_myself=$0 ;;
137 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
138 for as_dir in $PATH
139 do
140 IFS=$as_save_IFS
141 test -z "$as_dir" && as_dir=.
142- test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
143-done
144+ test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
145+ done
146 IFS=$as_save_IFS
147
148 ;;
149@@ -90,354 +112,329 @@ if test "x$as_myself" = x; then
150 as_myself=$0
151 fi
152 if test ! -f "$as_myself"; then
153- echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
154- { (exit 1); exit 1; }
155+ $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
156+ exit 1
157 fi
158
159-# Work around bugs in pre-3.0 UWIN ksh.
160-for as_var in ENV MAIL MAILPATH
161-do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
162+# Unset variables that we do not need and which cause bugs (e.g. in
163+# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
164+# suppresses any "Segmentation fault" message there. '((' could
165+# trigger a bug in pdksh 5.2.14.
166+for as_var in BASH_ENV ENV MAIL MAILPATH
167+do eval test x\${$as_var+set} = xset \
168+ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
169 done
170 PS1='$ '
171 PS2='> '
172 PS4='+ '
173
174 # NLS nuisances.
175-for as_var in \
176- LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
177- LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
178- LC_TELEPHONE LC_TIME
179-do
180- if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
181- eval $as_var=C; export $as_var
182- else
183- ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
184- fi
185-done
186-
187-# Required to use basename.
188-if expr a : '\(a\)' >/dev/null 2>&1 &&
189- test "X`expr 00001 : '.*\(...\)'`" = X001; then
190- as_expr=expr
191-else
192- as_expr=false
193-fi
194-
195-if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
196- as_basename=basename
197-else
198- as_basename=false
199-fi
200-
201-
202-# Name of the executable.
203-as_me=`$as_basename -- "$0" ||
204-$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
205- X"$0" : 'X\(//\)$' \| \
206- X"$0" : 'X\(/\)' \| . 2>/dev/null ||
207-echo X/"$0" |
208- sed '/^.*\/\([^/][^/]*\)\/*$/{
209- s//\1/
210- q
211- }
212- /^X\/\(\/\/\)$/{
213- s//\1/
214- q
215- }
216- /^X\/\(\/\).*/{
217- s//\1/
218- q
219- }
220- s/.*/./; q'`
221+LC_ALL=C
222+export LC_ALL
223+LANGUAGE=C
224+export LANGUAGE
225
226 # CDPATH.
227-$as_unset CDPATH
228-
229+(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
230
231 if test "x$CONFIG_SHELL" = x; then
232- if (eval ":") 2>/dev/null; then
233- as_have_required=yes
234+ as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
235+ emulate sh
236+ NULLCMD=:
237+ # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
238+ # is contrary to our usage. Disable this feature.
239+ alias -g '\${1+\"\$@\"}'='\"\$@\"'
240+ setopt NO_GLOB_SUBST
241 else
242- as_have_required=no
243+ case \`(set -o) 2>/dev/null\` in #(
244+ *posix*) :
245+ set -o posix ;; #(
246+ *) :
247+ ;;
248+esac
249 fi
250-
251- if test $as_have_required = yes && (eval ":
252-(as_func_return () {
253- (exit \$1)
254-}
255-as_func_success () {
256- as_func_return 0
257-}
258-as_func_failure () {
259- as_func_return 1
260-}
261-as_func_ret_success () {
262- return 0
263-}
264-as_func_ret_failure () {
265- return 1
266-}
267+"
268+ as_required="as_fn_return () { (exit \$1); }
269+as_fn_success () { as_fn_return 0; }
270+as_fn_failure () { as_fn_return 1; }
271+as_fn_ret_success () { return 0; }
272+as_fn_ret_failure () { return 1; }
273
274 exitcode=0
275-if as_func_success; then
276- :
277-else
278- exitcode=1
279- echo as_func_success failed.
280-fi
281-
282-if as_func_failure; then
283- exitcode=1
284- echo as_func_failure succeeded.
285-fi
286-
287-if as_func_ret_success; then
288- :
289-else
290- exitcode=1
291- echo as_func_ret_success failed.
292-fi
293-
294-if as_func_ret_failure; then
295- exitcode=1
296- echo as_func_ret_failure succeeded.
297-fi
298-
299-if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
300- :
301+as_fn_success || { exitcode=1; echo as_fn_success failed.; }
302+as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
303+as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
304+as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
305+if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
306+
307+else
308+ exitcode=1; echo positional parameters were not saved.
309+fi
310+test x\$exitcode = x0 || exit 1"
311+ as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
312+ as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
313+ eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
314+ test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
315+test \$(( 1 + 1 )) = 2 || exit 1"
316+ if (eval "$as_required") 2>/dev/null; then :
317+ as_have_required=yes
318 else
319- exitcode=1
320- echo positional parameters were not saved.
321+ as_have_required=no
322 fi
323+ if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
324
325-test \$exitcode = 0) || { (exit 1); exit 1; }
326-
327-(
328- as_lineno_1=\$LINENO
329- as_lineno_2=\$LINENO
330- test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
331- test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
332-") 2> /dev/null; then
333- :
334 else
335- as_candidate_shells=
336- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
337+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
338+as_found=false
339 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
340 do
341 IFS=$as_save_IFS
342 test -z "$as_dir" && as_dir=.
343- case $as_dir in
344+ as_found=:
345+ case $as_dir in #(
346 /*)
347 for as_base in sh bash ksh sh5; do
348- as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
349+ # Try only shells that exist, to save several forks.
350+ as_shell=$as_dir/$as_base
351+ if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
352+ { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
353+ CONFIG_SHELL=$as_shell as_have_required=yes
354+ if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
355+ break 2
356+fi
357+fi
358 done;;
359 esac
360+ as_found=false
361 done
362+$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
363+ { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
364+ CONFIG_SHELL=$SHELL as_have_required=yes
365+fi; }
366 IFS=$as_save_IFS
367
368
369- for as_shell in $as_candidate_shells $SHELL; do
370- # Try only shells that exist, to save several forks.
371- if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
372- { ("$as_shell") 2> /dev/null <<\_ASEOF
373-if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
374- emulate sh
375- NULLCMD=:
376- # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
377- # is contrary to our usage. Disable this feature.
378- alias -g '${1+"$@"}'='"$@"'
379- setopt NO_GLOB_SUBST
380-else
381- case `(set -o) 2>/dev/null` in
382- *posix*) set -o posix ;;
383-esac
384-
385-fi
386-
387-
388-:
389-_ASEOF
390-}; then
391- CONFIG_SHELL=$as_shell
392- as_have_required=yes
393- if { "$as_shell" 2> /dev/null <<\_ASEOF
394-if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
395- emulate sh
396- NULLCMD=:
397- # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
398- # is contrary to our usage. Disable this feature.
399- alias -g '${1+"$@"}'='"$@"'
400- setopt NO_GLOB_SUBST
401-else
402- case `(set -o) 2>/dev/null` in
403- *posix*) set -o posix ;;
404-esac
405-
406-fi
407-
408-
409-:
410-(as_func_return () {
411- (exit $1)
412-}
413-as_func_success () {
414- as_func_return 0
415-}
416-as_func_failure () {
417- as_func_return 1
418-}
419-as_func_ret_success () {
420- return 0
421-}
422-as_func_ret_failure () {
423- return 1
424-}
425-
426-exitcode=0
427-if as_func_success; then
428- :
429-else
430- exitcode=1
431- echo as_func_success failed.
432-fi
433-
434-if as_func_failure; then
435- exitcode=1
436- echo as_func_failure succeeded.
437-fi
438-
439-if as_func_ret_success; then
440- :
441-else
442- exitcode=1
443- echo as_func_ret_success failed.
444-fi
445-
446-if as_func_ret_failure; then
447- exitcode=1
448- echo as_func_ret_failure succeeded.
449-fi
450-
451-if ( set x; as_func_ret_success y && test x = "$1" ); then
452- :
453-else
454- exitcode=1
455- echo positional parameters were not saved.
456+ if test "x$CONFIG_SHELL" != x; then :
457+ # We cannot yet assume a decent shell, so we have to provide a
458+ # neutralization value for shells without unset; and this also
459+ # works around shells that cannot unset nonexistent variables.
460+ # Preserve -v and -x to the replacement shell.
461+ BASH_ENV=/dev/null
462+ ENV=/dev/null
463+ (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
464+ export CONFIG_SHELL
465+ case $- in # ((((
466+ *v*x* | *x*v* ) as_opts=-vx ;;
467+ *v* ) as_opts=-v ;;
468+ *x* ) as_opts=-x ;;
469+ * ) as_opts= ;;
470+ esac
471+ exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
472 fi
473
474-test $exitcode = 0) || { (exit 1); exit 1; }
475-
476-(
477- as_lineno_1=$LINENO
478- as_lineno_2=$LINENO
479- test "x$as_lineno_1" != "x$as_lineno_2" &&
480- test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
481-
482-_ASEOF
483-}; then
484- break
485+ if test x$as_have_required = xno; then :
486+ $as_echo "$0: This script requires a shell more modern than all"
487+ $as_echo "$0: the shells that I found on your system."
488+ if test x${ZSH_VERSION+set} = xset ; then
489+ $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
490+ $as_echo "$0: be upgraded to zsh 4.3.4 or later."
491+ else
492+ $as_echo "$0: Please tell bug-autoconf@gnu.org and
493+$0: http://www.python.org/python-bugs about your system,
494+$0: including any error possibly output before this
495+$0: message. Then install a modern shell, or manually run
496+$0: the script under such a shell if you do have one."
497+ fi
498+ exit 1
499 fi
500-
501 fi
502-
503- done
504-
505- if test "x$CONFIG_SHELL" != x; then
506- for as_var in BASH_ENV ENV
507- do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
508- done
509- export CONFIG_SHELL
510- exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
511 fi
512+SHELL=${CONFIG_SHELL-/bin/sh}
513+export SHELL
514+# Unset more variables known to interfere with behavior of common tools.
515+CLICOLOR_FORCE= GREP_OPTIONS=
516+unset CLICOLOR_FORCE GREP_OPTIONS
517
518+## --------------------- ##
519+## M4sh Shell Functions. ##
520+## --------------------- ##
521+# as_fn_unset VAR
522+# ---------------
523+# Portably unset VAR.
524+as_fn_unset ()
525+{
526+ { eval $1=; unset $1;}
527+}
528+as_unset=as_fn_unset
529+
530+# as_fn_set_status STATUS
531+# -----------------------
532+# Set $? to STATUS, without forking.
533+as_fn_set_status ()
534+{
535+ return $1
536+} # as_fn_set_status
537+
538+# as_fn_exit STATUS
539+# -----------------
540+# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
541+as_fn_exit ()
542+{
543+ set +e
544+ as_fn_set_status $1
545+ exit $1
546+} # as_fn_exit
547+
548+# as_fn_mkdir_p
549+# -------------
550+# Create "$as_dir" as a directory, including parents if necessary.
551+as_fn_mkdir_p ()
552+{
553
554- if test $as_have_required = no; then
555- echo This script requires a shell more modern than all the
556- echo shells that I found on your system. Please install a
557- echo modern shell, or manually run the script under such a
558- echo shell if you do have one.
559- { (exit 1); exit 1; }
560-fi
561-
562+ case $as_dir in #(
563+ -*) as_dir=./$as_dir;;
564+ esac
565+ test -d "$as_dir" || eval $as_mkdir_p || {
566+ as_dirs=
567+ while :; do
568+ case $as_dir in #(
569+ *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
570+ *) as_qdir=$as_dir;;
571+ esac
572+ as_dirs="'$as_qdir' $as_dirs"
573+ as_dir=`$as_dirname -- "$as_dir" ||
574+$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
575+ X"$as_dir" : 'X\(//\)[^/]' \| \
576+ X"$as_dir" : 'X\(//\)$' \| \
577+ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
578+$as_echo X"$as_dir" |
579+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
580+ s//\1/
581+ q
582+ }
583+ /^X\(\/\/\)[^/].*/{
584+ s//\1/
585+ q
586+ }
587+ /^X\(\/\/\)$/{
588+ s//\1/
589+ q
590+ }
591+ /^X\(\/\).*/{
592+ s//\1/
593+ q
594+ }
595+ s/.*/./; q'`
596+ test -d "$as_dir" && break
597+ done
598+ test -z "$as_dirs" || eval "mkdir $as_dirs"
599+ } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
600
601-fi
602
603-fi
604+} # as_fn_mkdir_p
605+# as_fn_append VAR VALUE
606+# ----------------------
607+# Append the text in VALUE to the end of the definition contained in VAR. Take
608+# advantage of any shell optimizations that allow amortized linear growth over
609+# repeated appends, instead of the typical quadratic growth present in naive
610+# implementations.
611+if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
612+ eval 'as_fn_append ()
613+ {
614+ eval $1+=\$2
615+ }'
616+else
617+ as_fn_append ()
618+ {
619+ eval $1=\$$1\$2
620+ }
621+fi # as_fn_append
622
623+# as_fn_arith ARG...
624+# ------------------
625+# Perform arithmetic evaluation on the ARGs, and store the result in the
626+# global $as_val. Take advantage of shells that can avoid forks. The arguments
627+# must be portable across $(()) and expr.
628+if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
629+ eval 'as_fn_arith ()
630+ {
631+ as_val=$(( $* ))
632+ }'
633+else
634+ as_fn_arith ()
635+ {
636+ as_val=`expr "$@" || test $? -eq 1`
637+ }
638+fi # as_fn_arith
639
640
641-(eval "as_func_return () {
642- (exit \$1)
643-}
644-as_func_success () {
645- as_func_return 0
646-}
647-as_func_failure () {
648- as_func_return 1
649-}
650-as_func_ret_success () {
651- return 0
652-}
653-as_func_ret_failure () {
654- return 1
655-}
656+# as_fn_error STATUS ERROR [LINENO LOG_FD]
657+# ----------------------------------------
658+# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
659+# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
660+# script with STATUS, using 1 if that was 0.
661+as_fn_error ()
662+{
663+ as_status=$1; test $as_status -eq 0 && as_status=1
664+ if test "$4"; then
665+ as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
666+ $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
667+ fi
668+ $as_echo "$as_me: error: $2" >&2
669+ as_fn_exit $as_status
670+} # as_fn_error
671
672-exitcode=0
673-if as_func_success; then
674- :
675+if expr a : '\(a\)' >/dev/null 2>&1 &&
676+ test "X`expr 00001 : '.*\(...\)'`" = X001; then
677+ as_expr=expr
678 else
679- exitcode=1
680- echo as_func_success failed.
681-fi
682-
683-if as_func_failure; then
684- exitcode=1
685- echo as_func_failure succeeded.
686+ as_expr=false
687 fi
688
689-if as_func_ret_success; then
690- :
691+if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
692+ as_basename=basename
693 else
694- exitcode=1
695- echo as_func_ret_success failed.
696-fi
697-
698-if as_func_ret_failure; then
699- exitcode=1
700- echo as_func_ret_failure succeeded.
701+ as_basename=false
702 fi
703
704-if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
705- :
706+if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
707+ as_dirname=dirname
708 else
709- exitcode=1
710- echo positional parameters were not saved.
711+ as_dirname=false
712 fi
713
714-test \$exitcode = 0") || {
715- echo No shell found that supports shell functions.
716- echo Please tell autoconf@gnu.org about your system,
717- echo including any error possibly output before this
718- echo message
719-}
720+as_me=`$as_basename -- "$0" ||
721+$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
722+ X"$0" : 'X\(//\)$' \| \
723+ X"$0" : 'X\(/\)' \| . 2>/dev/null ||
724+$as_echo X/"$0" |
725+ sed '/^.*\/\([^/][^/]*\)\/*$/{
726+ s//\1/
727+ q
728+ }
729+ /^X\/\(\/\/\)$/{
730+ s//\1/
731+ q
732+ }
733+ /^X\/\(\/\).*/{
734+ s//\1/
735+ q
736+ }
737+ s/.*/./; q'`
738
739+# Avoid depending upon Character Ranges.
740+as_cr_letters='abcdefghijklmnopqrstuvwxyz'
741+as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
742+as_cr_Letters=$as_cr_letters$as_cr_LETTERS
743+as_cr_digits='0123456789'
744+as_cr_alnum=$as_cr_Letters$as_cr_digits
745
746
747- as_lineno_1=$LINENO
748- as_lineno_2=$LINENO
749- test "x$as_lineno_1" != "x$as_lineno_2" &&
750- test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
751-
752- # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
753- # uniformly replaced by the line number. The first 'sed' inserts a
754- # line-number line after each line using $LINENO; the second 'sed'
755- # does the real work. The second script uses 'N' to pair each
756- # line-number line with the line containing $LINENO, and appends
757- # trailing '-' during substitution so that $LINENO is not a special
758- # case at line end.
759- # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
760- # scripts with optimization help from Paolo Bonzini. Blame Lee
761- # E. McMahon (1931-1989) for sed's syntax. :-)
762+ as_lineno_1=$LINENO as_lineno_1a=$LINENO
763+ as_lineno_2=$LINENO as_lineno_2a=$LINENO
764+ eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
765+ test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
766+ # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
767 sed -n '
768 p
769 /[$]LINENO/=
770@@ -454,8 +451,7 @@ test \$exitcode = 0") || {
771 s/-\n.*//
772 ' >$as_me.lineno &&
773 chmod +x "$as_me.lineno" ||
774- { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
775- { (exit 1); exit 1; }; }
776+ { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
777
778 # Don't try to exec as it changes $[0], causing all sort of problems
779 # (the dirname of $[0] is not the place where we might find the
780@@ -465,49 +461,40 @@ test \$exitcode = 0") || {
781 exit
782 }
783
784-
785-if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
786- as_dirname=dirname
787-else
788- as_dirname=false
789-fi
790-
791 ECHO_C= ECHO_N= ECHO_T=
792-case `echo -n x` in
793+case `echo -n x` in #(((((
794 -n*)
795- case `echo 'x\c'` in
796+ case `echo 'xy\c'` in
797 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
798- *) ECHO_C='\c';;
799+ xy) ECHO_C='\c';;
800+ *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
801+ ECHO_T=' ';;
802 esac;;
803 *)
804 ECHO_N='-n';;
805 esac
806
807-if expr a : '\(a\)' >/dev/null 2>&1 &&
808- test "X`expr 00001 : '.*\(...\)'`" = X001; then
809- as_expr=expr
810-else
811- as_expr=false
812-fi
813-
814 rm -f conf$$ conf$$.exe conf$$.file
815 if test -d conf$$.dir; then
816 rm -f conf$$.dir/conf$$.file
817 else
818 rm -f conf$$.dir
819- mkdir conf$$.dir
820+ mkdir conf$$.dir 2>/dev/null
821 fi
822-echo >conf$$.file
823-if ln -s conf$$.file conf$$ 2>/dev/null; then
824- as_ln_s='ln -s'
825- # ... but there are two gotchas:
826- # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
827- # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
828- # In both cases, we have to default to `cp -p'.
829- ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
830+if (echo >conf$$.file) 2>/dev/null; then
831+ if ln -s conf$$.file conf$$ 2>/dev/null; then
832+ as_ln_s='ln -s'
833+ # ... but there are two gotchas:
834+ # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
835+ # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
836+ # In both cases, we have to default to `cp -p'.
837+ ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
838+ as_ln_s='cp -p'
839+ elif ln conf$$.file conf$$ 2>/dev/null; then
840+ as_ln_s=ln
841+ else
842 as_ln_s='cp -p'
843-elif ln conf$$.file conf$$ 2>/dev/null; then
844- as_ln_s=ln
845+ fi
846 else
847 as_ln_s='cp -p'
848 fi
849@@ -515,7 +502,7 @@ rm -f conf$$ conf$$.exe conf$$.dir/conf$
850 rmdir conf$$.dir 2>/dev/null
851
852 if mkdir -p . 2>/dev/null; then
853- as_mkdir_p=:
854+ as_mkdir_p='mkdir -p "$as_dir"'
855 else
856 test -d ./-p && rmdir ./-p
857 as_mkdir_p=false
858@@ -532,12 +519,12 @@ else
859 as_test_x='
860 eval sh -c '\''
861 if test -d "$1"; then
862- test -d "$1/.";
863+ test -d "$1/.";
864 else
865- case $1 in
866- -*)set "./$1";;
867+ case $1 in #(
868+ -*)set "./$1";;
869 esac;
870- case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
871+ case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
872 ???[sx]*):;;*)false;;esac;fi
873 '\'' sh
874 '
875@@ -551,11 +538,11 @@ as_tr_cpp="eval sed 'y%*$as_cr_letters%P
876 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
877
878
879-
880-exec 7<&0 </dev/null 6>&1
881+test -n "$DJDIR" || exec 7<&0 </dev/null
882+exec 6>&1
883
884 # Name of the host.
885-# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
886+# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
887 # so uname gets run too.
888 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
889
890@@ -570,7 +557,6 @@ cross_compiling=no
891 subdirs=
892 MFLAGS=
893 MAKEFLAGS=
894-SHELL=${CONFIG_SHELL-/bin/sh}
895
896 # Identity of this package.
897 PACKAGE_NAME='python'
898@@ -578,6 +564,7 @@ PACKAGE_TARNAME='python'
899 PACKAGE_VERSION='2.6'
900 PACKAGE_STRING='python 2.6'
901 PACKAGE_BUGREPORT='http://www.python.org/python-bugs'
902+PACKAGE_URL=''
903
904 ac_unique_file="Include/object.h"
905 # Factoring default headers for most tests.
906@@ -616,126 +603,178 @@ ac_includes_default="\
907 # include <unistd.h>
908 #endif"
909
910-ac_subst_vars='SHELL
911-PATH_SEPARATOR
912-PACKAGE_NAME
913-PACKAGE_TARNAME
914-PACKAGE_VERSION
915-PACKAGE_STRING
916-PACKAGE_BUGREPORT
917-exec_prefix
918-prefix
919-program_transform_name
920-bindir
921-sbindir
922-libexecdir
923-datarootdir
924-datadir
925-sysconfdir
926-sharedstatedir
927-localstatedir
928-includedir
929-oldincludedir
930-docdir
931-infodir
932-htmldir
933-dvidir
934-pdfdir
935-psdir
936-libdir
937-localedir
938-mandir
939-DEFS
940-ECHO_C
941-ECHO_N
942-ECHO_T
943-LIBS
944-build_alias
945-host_alias
946-target_alias
947-VERSION
948-SOVERSION
949-CONFIG_ARGS
950-UNIVERSALSDK
951-ARCH_RUN_32BIT
952-PYTHONFRAMEWORK
953-PYTHONFRAMEWORKIDENTIFIER
954-PYTHONFRAMEWORKDIR
955-PYTHONFRAMEWORKPREFIX
956-PYTHONFRAMEWORKINSTALLDIR
957-FRAMEWORKINSTALLFIRST
958-FRAMEWORKINSTALLLAST
959-FRAMEWORKALTINSTALLFIRST
960-FRAMEWORKALTINSTALLLAST
961-FRAMEWORKUNIXTOOLSPREFIX
962-MACHDEP
963-SGI_ABI
964-EXTRAPLATDIR
965-EXTRAMACHDEPPATH
966-CONFIGURE_MACOSX_DEPLOYMENT_TARGET
967-EXPORT_MACOSX_DEPLOYMENT_TARGET
968-CC
969-CFLAGS
970-LDFLAGS
971-CPPFLAGS
972-ac_ct_CC
973-EXEEXT
974+ac_subst_vars='LTLIBOBJS
975+O_FOR_BUILD
976+LIBS_FOR_BUILD
977+LDFLAGS_FOR_BUILD
978+EXEEXT_FOR_BUILD
979+CROSS_COMMENT
980+CPPFLAGS_FOR_BUILD
981+CFLAGS_FOR_BUILD
982+PYTHON_FOR_BUILD
983+CC_FOR_BUILD
984+cross_compiling
985+SRCDIRS
986+THREADHEADERS
987+UNICODE_OBJS
988+LIBC
989+LIBM
990+HAVE_GETHOSTBYNAME
991+HAVE_GETHOSTBYNAME_R
992+HAVE_GETHOSTBYNAME_R_3_ARG
993+HAVE_GETHOSTBYNAME_R_5_ARG
994+HAVE_GETHOSTBYNAME_R_6_ARG
995+LIBOBJS
996+TRUE
997+MACHDEP_OBJS
998+DYNLOADFILE
999+DLINCLDIR
1000+THREADOBJ
1001+LDLAST
1002+USE_THREAD_MODULE
1003+SIGNAL_OBJS
1004+USE_SIGNAL_MODULE
1005+SHLIBS
1006+CFLAGSFORSHARED
1007+LINKFORSHARED
1008+CCSHARED
1009+BLDSHARED
1010+LDSHARED
1011+SO
1012+LIBTOOL_CRUFT
1013+OTHER_LIBTOOL_OPT
1014+UNIVERSAL_ARCH_FLAGS
1015+BASECFLAGS
1016+OPT
1017+LN
1018+INSTALL_DATA
1019+INSTALL_SCRIPT
1020+INSTALL_PROGRAM
1021+SVNVERSION
1022+ac_ct_AR
1023+AR
1024+RANLIB
1025+LINKCC
1026+RUNSHARED
1027+INSTSONAME
1028+LDLIBRARYDIR
1029+BLDLIBRARY
1030+DLLLIBRARY
1031+LDLIBRARY
1032+LIBRARY
1033+BUILDEXEEXT
1034+EGREP
1035+GREP
1036+CPP
1037+MAINCC
1038 OBJEXT
1039+EXEEXT
1040+CPPFLAGS
1041+LDFLAGS
1042+CFLAGS
1043+EXPORT_MACOSX_DEPLOYMENT_TARGET
1044+CONFIGURE_MACOSX_DEPLOYMENT_TARGET
1045+DELIM
1046+EXTRAMACHDEPPATH
1047+EXTRAPLATDIR
1048+SGI_ABI
1049+MACHDEP
1050+FRAMEWORKUNIXTOOLSPREFIX
1051+FRAMEWORKALTINSTALLLAST
1052+FRAMEWORKALTINSTALLFIRST
1053+FRAMEWORKINSTALLLAST
1054+FRAMEWORKINSTALLFIRST
1055+PYTHONFRAMEWORKINSTALLDIR
1056+PYTHONFRAMEWORKPREFIX
1057+PYTHONFRAMEWORKDIR
1058+PYTHONFRAMEWORKIDENTIFIER
1059+PYTHONFRAMEWORK
1060+ARCH_RUN_32BIT
1061+UNIVERSALSDK
1062+CONFIG_ARGS
1063+SOVERSION
1064+VERSION
1065+ac_ct_CXX
1066 CXX
1067-MAINCC
1068-CPP
1069-GREP
1070-EGREP
1071-BUILDEXEEXT
1072-LIBRARY
1073-LDLIBRARY
1074-DLLLIBRARY
1075-BLDLIBRARY
1076-LDLIBRARYDIR
1077-INSTSONAME
1078-RUNSHARED
1079-LINKCC
1080-RANLIB
1081-AR
1082-SVNVERSION
1083-INSTALL_PROGRAM
1084-INSTALL_SCRIPT
1085-INSTALL_DATA
1086-LN
1087-OPT
1088-BASECFLAGS
1089-UNIVERSAL_ARCH_FLAGS
1090-OTHER_LIBTOOL_OPT
1091-LIBTOOL_CRUFT
1092-SO
1093-LDSHARED
1094-BLDSHARED
1095-CCSHARED
1096-LINKFORSHARED
1097-CFLAGSFORSHARED
1098-SHLIBS
1099-USE_SIGNAL_MODULE
1100-SIGNAL_OBJS
1101-USE_THREAD_MODULE
1102-LDLAST
1103-THREADOBJ
1104-DLINCLDIR
1105-DYNLOADFILE
1106-MACHDEP_OBJS
1107-TRUE
1108-LIBOBJS
1109-HAVE_GETHOSTBYNAME_R_6_ARG
1110-HAVE_GETHOSTBYNAME_R_5_ARG
1111-HAVE_GETHOSTBYNAME_R_3_ARG
1112-HAVE_GETHOSTBYNAME_R
1113-HAVE_GETHOSTBYNAME
1114-LIBM
1115-LIBC
1116-UNICODE_OBJS
1117-THREADHEADERS
1118-SRCDIRS
1119-LTLIBOBJS'
1120+ac_ct_CC
1121+CC
1122+host_os
1123+host_vendor
1124+host_cpu
1125+host
1126+build_os
1127+build_vendor
1128+build_cpu
1129+build
1130+target_alias
1131+host_alias
1132+build_alias
1133+LIBS
1134+ECHO_T
1135+ECHO_N
1136+ECHO_C
1137+DEFS
1138+mandir
1139+localedir
1140+libdir
1141+psdir
1142+pdfdir
1143+dvidir
1144+htmldir
1145+infodir
1146+docdir
1147+oldincludedir
1148+includedir
1149+localstatedir
1150+sharedstatedir
1151+sysconfdir
1152+datadir
1153+datarootdir
1154+libexecdir
1155+sbindir
1156+bindir
1157+program_transform_name
1158+prefix
1159+exec_prefix
1160+PACKAGE_URL
1161+PACKAGE_BUGREPORT
1162+PACKAGE_STRING
1163+PACKAGE_VERSION
1164+PACKAGE_TARNAME
1165+PACKAGE_NAME
1166+PATH_SEPARATOR
1167+SHELL'
1168 ac_subst_files=''
1169+ac_user_opts='
1170+enable_option_checking
1171+enable_universalsdk
1172+with_universal_archs
1173+with_framework_name
1174+enable_framework
1175+with_gcc
1176+with_cxx_main
1177+with_suffix
1178+enable_shared
1179+enable_profiling
1180+with_pydebug
1181+enable_toolbox_glue
1182+with_libs
1183+with_system_ffi
1184+with_signal_module
1185+with_dec_threads
1186+with_threads
1187+with_thread
1188+with_pth
1189+enable_ipv6
1190+with_doc_strings
1191+with_tsc
1192+with_pymalloc
1193+with_wctype_functions
1194+with_fpectl
1195+with_libm
1196+with_libc
1197+enable_unicode
1198+'
1199 ac_precious_vars='build_alias
1200 host_alias
1201 target_alias
1202@@ -744,12 +783,16 @@ CFLAGS
1203 LDFLAGS
1204 LIBS
1205 CPPFLAGS
1206-CPP'
1207+CPP
1208+CC_FOR_BUILD
1209+PYTHON_FOR_BUILD'
1210
1211
1212 # Initialize some variables set by options.
1213 ac_init_help=
1214 ac_init_version=false
1215+ac_unrecognized_opts=
1216+ac_unrecognized_sep=
1217 # The variables have the same names as the options, with
1218 # dashes changed to underlines.
1219 cache_file=/dev/null
1220@@ -805,8 +848,9 @@ do
1221 fi
1222
1223 case $ac_option in
1224- *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1225- *) ac_optarg=yes ;;
1226+ *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1227+ *=) ac_optarg= ;;
1228+ *) ac_optarg=yes ;;
1229 esac
1230
1231 # Accept the important Cygnus configure options, so we can diagnose typos.
1232@@ -848,13 +892,20 @@ do
1233 datarootdir=$ac_optarg ;;
1234
1235 -disable-* | --disable-*)
1236- ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1237+ ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1238 # Reject names that are not valid shell variable names.
1239- expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1240- { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1241- { (exit 1); exit 1; }; }
1242- ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1243- eval enable_$ac_feature=no ;;
1244+ expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1245+ as_fn_error $? "invalid feature name: $ac_useropt"
1246+ ac_useropt_orig=$ac_useropt
1247+ ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1248+ case $ac_user_opts in
1249+ *"
1250+"enable_$ac_useropt"
1251+"*) ;;
1252+ *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1253+ ac_unrecognized_sep=', ';;
1254+ esac
1255+ eval enable_$ac_useropt=no ;;
1256
1257 -docdir | --docdir | --docdi | --doc | --do)
1258 ac_prev=docdir ;;
1259@@ -867,13 +918,20 @@ do
1260 dvidir=$ac_optarg ;;
1261
1262 -enable-* | --enable-*)
1263- ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1264+ ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1265 # Reject names that are not valid shell variable names.
1266- expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1267- { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1268- { (exit 1); exit 1; }; }
1269- ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1270- eval enable_$ac_feature=\$ac_optarg ;;
1271+ expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1272+ as_fn_error $? "invalid feature name: $ac_useropt"
1273+ ac_useropt_orig=$ac_useropt
1274+ ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1275+ case $ac_user_opts in
1276+ *"
1277+"enable_$ac_useropt"
1278+"*) ;;
1279+ *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1280+ ac_unrecognized_sep=', ';;
1281+ esac
1282+ eval enable_$ac_useropt=\$ac_optarg ;;
1283
1284 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1285 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1286@@ -1064,22 +1122,36 @@ do
1287 ac_init_version=: ;;
1288
1289 -with-* | --with-*)
1290- ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1291+ ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1292 # Reject names that are not valid shell variable names.
1293- expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1294- { echo "$as_me: error: invalid package name: $ac_package" >&2
1295- { (exit 1); exit 1; }; }
1296- ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1297- eval with_$ac_package=\$ac_optarg ;;
1298+ expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1299+ as_fn_error $? "invalid package name: $ac_useropt"
1300+ ac_useropt_orig=$ac_useropt
1301+ ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1302+ case $ac_user_opts in
1303+ *"
1304+"with_$ac_useropt"
1305+"*) ;;
1306+ *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1307+ ac_unrecognized_sep=', ';;
1308+ esac
1309+ eval with_$ac_useropt=\$ac_optarg ;;
1310
1311 -without-* | --without-*)
1312- ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1313+ ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1314 # Reject names that are not valid shell variable names.
1315- expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1316- { echo "$as_me: error: invalid package name: $ac_package" >&2
1317- { (exit 1); exit 1; }; }
1318- ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1319- eval with_$ac_package=no ;;
1320+ expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1321+ as_fn_error $? "invalid package name: $ac_useropt"
1322+ ac_useropt_orig=$ac_useropt
1323+ ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1324+ case $ac_user_opts in
1325+ *"
1326+"with_$ac_useropt"
1327+"*) ;;
1328+ *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1329+ ac_unrecognized_sep=', ';;
1330+ esac
1331+ eval with_$ac_useropt=no ;;
1332
1333 --x)
1334 # Obsolete; use --with-x.
1335@@ -1099,26 +1171,26 @@ do
1336 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1337 x_libraries=$ac_optarg ;;
1338
1339- -*) { echo "$as_me: error: unrecognized option: $ac_option
1340-Try \`$0 --help' for more information." >&2
1341- { (exit 1); exit 1; }; }
1342+ -*) as_fn_error $? "unrecognized option: \`$ac_option'
1343+Try \`$0 --help' for more information"
1344 ;;
1345
1346 *=*)
1347 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1348 # Reject names that are not valid shell variable names.
1349- expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1350- { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1351- { (exit 1); exit 1; }; }
1352+ case $ac_envvar in #(
1353+ '' | [0-9]* | *[!_$as_cr_alnum]* )
1354+ as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1355+ esac
1356 eval $ac_envvar=\$ac_optarg
1357 export $ac_envvar ;;
1358
1359 *)
1360 # FIXME: should be removed in autoconf 3.0.
1361- echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1362+ $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1363 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1364- echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1365- : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1366+ $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1367+ : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1368 ;;
1369
1370 esac
1371@@ -1126,23 +1198,36 @@ done
1372
1373 if test -n "$ac_prev"; then
1374 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1375- { echo "$as_me: error: missing argument to $ac_option" >&2
1376- { (exit 1); exit 1; }; }
1377+ as_fn_error $? "missing argument to $ac_option"
1378 fi
1379
1380-# Be sure to have absolute directory names.
1381-for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1382+if test -n "$ac_unrecognized_opts"; then
1383+ case $enable_option_checking in
1384+ no) ;;
1385+ fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1386+ *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1387+ esac
1388+fi
1389+
1390+# Check all directory arguments for consistency.
1391+for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1392 datadir sysconfdir sharedstatedir localstatedir includedir \
1393 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1394 libdir localedir mandir
1395 do
1396 eval ac_val=\$$ac_var
1397+ # Remove trailing slashes.
1398+ case $ac_val in
1399+ */ )
1400+ ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1401+ eval $ac_var=\$ac_val;;
1402+ esac
1403+ # Be sure to have absolute directory names.
1404 case $ac_val in
1405 [\\/$]* | ?:[\\/]* ) continue;;
1406 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1407 esac
1408- { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1409- { (exit 1); exit 1; }; }
1410+ as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1411 done
1412
1413 # There might be people who depend on the old broken behavior: `$host'
1414@@ -1156,8 +1241,8 @@ target=$target_alias
1415 if test "x$host_alias" != x; then
1416 if test "x$build_alias" = x; then
1417 cross_compiling=maybe
1418- echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1419- If a cross compiler is detected then cross compile mode will be used." >&2
1420+ $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1421+ If a cross compiler is detected then cross compile mode will be used" >&2
1422 elif test "x$build_alias" != "x$host_alias"; then
1423 cross_compiling=yes
1424 fi
1425@@ -1172,23 +1257,21 @@ test "$silent" = yes && exec 6>/dev/null
1426 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1427 ac_ls_di=`ls -di .` &&
1428 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1429- { echo "$as_me: error: Working directory cannot be determined" >&2
1430- { (exit 1); exit 1; }; }
1431+ as_fn_error $? "working directory cannot be determined"
1432 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1433- { echo "$as_me: error: pwd does not report name of working directory" >&2
1434- { (exit 1); exit 1; }; }
1435+ as_fn_error $? "pwd does not report name of working directory"
1436
1437
1438 # Find the source files, if location was not specified.
1439 if test -z "$srcdir"; then
1440 ac_srcdir_defaulted=yes
1441 # Try the directory containing this script, then the parent directory.
1442- ac_confdir=`$as_dirname -- "$0" ||
1443-$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1444- X"$0" : 'X\(//\)[^/]' \| \
1445- X"$0" : 'X\(//\)$' \| \
1446- X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1447-echo X"$0" |
1448+ ac_confdir=`$as_dirname -- "$as_myself" ||
1449+$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1450+ X"$as_myself" : 'X\(//\)[^/]' \| \
1451+ X"$as_myself" : 'X\(//\)$' \| \
1452+ X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1453+$as_echo X"$as_myself" |
1454 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1455 s//\1/
1456 q
1457@@ -1215,13 +1298,11 @@ else
1458 fi
1459 if test ! -r "$srcdir/$ac_unique_file"; then
1460 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1461- { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1462- { (exit 1); exit 1; }; }
1463+ as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1464 fi
1465 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1466 ac_abs_confdir=`(
1467- cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1468- { (exit 1); exit 1; }; }
1469+ cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1470 pwd)`
1471 # When building in place, set srcdir=.
1472 if test "$ac_abs_confdir" = "$ac_pwd"; then
1473@@ -1261,7 +1342,7 @@ Configuration:
1474 --help=short display options specific to this package
1475 --help=recursive display the short help of all the included packages
1476 -V, --version display version information and exit
1477- -q, --quiet, --silent do not print \`checking...' messages
1478+ -q, --quiet, --silent do not print \`checking ...' messages
1479 --cache-file=FILE cache test results in FILE [disabled]
1480 -C, --config-cache alias for \`--cache-file=config.cache'
1481 -n, --no-create do not create output files
1482@@ -1269,9 +1350,9 @@ Configuration:
1483
1484 Installation directories:
1485 --prefix=PREFIX install architecture-independent files in PREFIX
1486- [$ac_default_prefix]
1487+ [$ac_default_prefix]
1488 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1489- [PREFIX]
1490+ [PREFIX]
1491
1492 By default, \`make install' will install all the files in
1493 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1494@@ -1281,28 +1362,32 @@ for instance \`--prefix=\$HOME'.
1495 For better control, use the options below.
1496
1497 Fine tuning of the installation directories:
1498- --bindir=DIR user executables [EPREFIX/bin]
1499- --sbindir=DIR system admin executables [EPREFIX/sbin]
1500- --libexecdir=DIR program executables [EPREFIX/libexec]
1501- --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1502- --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1503- --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1504- --libdir=DIR object code libraries [EPREFIX/lib]
1505- --includedir=DIR C header files [PREFIX/include]
1506- --oldincludedir=DIR C header files for non-gcc [/usr/include]
1507- --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1508- --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1509- --infodir=DIR info documentation [DATAROOTDIR/info]
1510- --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1511- --mandir=DIR man documentation [DATAROOTDIR/man]
1512- --docdir=DIR documentation root [DATAROOTDIR/doc/python]
1513- --htmldir=DIR html documentation [DOCDIR]
1514- --dvidir=DIR dvi documentation [DOCDIR]
1515- --pdfdir=DIR pdf documentation [DOCDIR]
1516- --psdir=DIR ps documentation [DOCDIR]
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 _ACEOF
1537
1538 cat <<\_ACEOF
1539+
1540+System types:
1541+ --build=BUILD configure for building on BUILD [guessed]
1542+ --host=HOST cross-compile to build programs to run on HOST [BUILD]
1543 _ACEOF
1544 fi
1545
1546@@ -1313,6 +1398,7 @@ if test -n "$ac_init_help"; then
1547 cat <<\_ACEOF
1548
1549 Optional Features:
1550+ --disable-option-checking ignore unrecognized --enable/--with options
1551 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1552 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1553 --enable-universalsdk[=SDKDIR]
1554@@ -1365,9 +1451,13 @@ Some influential environment variables:
1555 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1556 nonstandard directory <lib dir>
1557 LIBS libraries to pass to the linker, e.g. -l<library>
1558- CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1559+ CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1560 you have headers in a nonstandard directory <include dir>
1561 CPP C preprocessor
1562+ CC_FOR_BUILD
1563+ build system C compiler (default: cc)
1564+ PYTHON_FOR_BUILD
1565+ build system python (default: python)
1566
1567 Use these variables to override the choices made by `configure' or to help
1568 it to find libraries and programs with nonstandard names/locations.
1569@@ -1380,15 +1470,17 @@ fi
1570 if test "$ac_init_help" = "recursive"; then
1571 # If there are subdirs, report their specific --help.
1572 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1573- test -d "$ac_dir" || continue
1574+ test -d "$ac_dir" ||
1575+ { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1576+ continue
1577 ac_builddir=.
1578
1579 case "$ac_dir" in
1580 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1581 *)
1582- ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1583+ ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1584 # A ".." for each directory in $ac_dir_suffix.
1585- ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1586+ ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1587 case $ac_top_builddir_sub in
1588 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1589 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1590@@ -1424,7 +1516,7 @@ ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_
1591 echo &&
1592 $SHELL "$ac_srcdir/configure" --help=recursive
1593 else
1594- echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1595+ $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1596 fi || ac_status=$?
1597 cd "$ac_pwd" || { ac_status=$?; break; }
1598 done
1599@@ -1434,591 +1526,1567 @@ test -n "$ac_init_help" && exit $ac_stat
1600 if $ac_init_version; then
1601 cat <<\_ACEOF
1602 python configure 2.6
1603-generated by GNU Autoconf 2.61
1604+generated by GNU Autoconf 2.68
1605
1606-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1607-2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1608+Copyright (C) 2010 Free Software Foundation, Inc.
1609 This configure script is free software; the Free Software Foundation
1610 gives unlimited permission to copy, distribute and modify it.
1611 _ACEOF
1612 exit
1613 fi
1614-cat >config.log <<_ACEOF
1615-This file contains any messages produced by compilers while
1616-running configure, to aid debugging if configure makes a mistake.
1617
1618-It was created by python $as_me 2.6, which was
1619-generated by GNU Autoconf 2.61. Invocation command line was
1620+## ------------------------ ##
1621+## Autoconf initialization. ##
1622+## ------------------------ ##
1623+
1624+# ac_fn_c_try_compile LINENO
1625+# --------------------------
1626+# Try to compile conftest.$ac_ext, and return whether this succeeded.
1627+ac_fn_c_try_compile ()
1628+{
1629+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1630+ rm -f conftest.$ac_objext
1631+ if { { ac_try="$ac_compile"
1632+case "(($ac_try" in
1633+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1634+ *) ac_try_echo=$ac_try;;
1635+esac
1636+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1637+$as_echo "$ac_try_echo"; } >&5
1638+ (eval "$ac_compile") 2>conftest.err
1639+ ac_status=$?
1640+ if test -s conftest.err; then
1641+ grep -v '^ *+' conftest.err >conftest.er1
1642+ cat conftest.er1 >&5
1643+ mv -f conftest.er1 conftest.err
1644+ fi
1645+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1646+ test $ac_status = 0; } && {
1647+ test -z "$ac_c_werror_flag" ||
1648+ test ! -s conftest.err
1649+ } && test -s conftest.$ac_objext; then :
1650+ ac_retval=0
1651+else
1652+ $as_echo "$as_me: failed program was:" >&5
1653+sed 's/^/| /' conftest.$ac_ext >&5
1654
1655- $ $0 $@
1656+ ac_retval=1
1657+fi
1658+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1659+ as_fn_set_status $ac_retval
1660
1661-_ACEOF
1662-exec 5>>config.log
1663+} # ac_fn_c_try_compile
1664+
1665+# ac_fn_c_try_cpp LINENO
1666+# ----------------------
1667+# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1668+ac_fn_c_try_cpp ()
1669 {
1670-cat <<_ASUNAME
1671-## --------- ##
1672-## Platform. ##
1673-## --------- ##
1674+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1675+ if { { ac_try="$ac_cpp conftest.$ac_ext"
1676+case "(($ac_try" in
1677+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1678+ *) ac_try_echo=$ac_try;;
1679+esac
1680+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1681+$as_echo "$ac_try_echo"; } >&5
1682+ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1683+ ac_status=$?
1684+ if test -s conftest.err; then
1685+ grep -v '^ *+' conftest.err >conftest.er1
1686+ cat conftest.er1 >&5
1687+ mv -f conftest.er1 conftest.err
1688+ fi
1689+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1690+ test $ac_status = 0; } > conftest.i && {
1691+ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1692+ test ! -s conftest.err
1693+ }; then :
1694+ ac_retval=0
1695+else
1696+ $as_echo "$as_me: failed program was:" >&5
1697+sed 's/^/| /' conftest.$ac_ext >&5
1698
1699-hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1700-uname -m = `(uname -m) 2>/dev/null || echo unknown`
1701-uname -r = `(uname -r) 2>/dev/null || echo unknown`
1702-uname -s = `(uname -s) 2>/dev/null || echo unknown`
1703-uname -v = `(uname -v) 2>/dev/null || echo unknown`
1704+ ac_retval=1
1705+fi
1706+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1707+ as_fn_set_status $ac_retval
1708
1709-/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1710-/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1711+} # ac_fn_c_try_cpp
1712
1713-/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1714-/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1715-/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1716-/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1717-/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1718-/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1719-/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1720+# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1721+# -------------------------------------------------------
1722+# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1723+# the include files in INCLUDES and setting the cache variable VAR
1724+# accordingly.
1725+ac_fn_c_check_header_mongrel ()
1726+{
1727+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728+ if eval \${$3+:} false; then :
1729+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1730+$as_echo_n "checking for $2... " >&6; }
1731+if eval \${$3+:} false; then :
1732+ $as_echo_n "(cached) " >&6
1733+fi
1734+eval ac_res=\$$3
1735+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1736+$as_echo "$ac_res" >&6; }
1737+else
1738+ # Is the header compilable?
1739+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1740+$as_echo_n "checking $2 usability... " >&6; }
1741+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1742+/* end confdefs.h. */
1743+$4
1744+#include <$2>
1745+_ACEOF
1746+if ac_fn_c_try_compile "$LINENO"; then :
1747+ ac_header_compiler=yes
1748+else
1749+ ac_header_compiler=no
1750+fi
1751+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1752+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1753+$as_echo "$ac_header_compiler" >&6; }
1754
1755-_ASUNAME
1756+# Is the header present?
1757+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1758+$as_echo_n "checking $2 presence... " >&6; }
1759+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1760+/* end confdefs.h. */
1761+#include <$2>
1762+_ACEOF
1763+if ac_fn_c_try_cpp "$LINENO"; then :
1764+ ac_header_preproc=yes
1765+else
1766+ ac_header_preproc=no
1767+fi
1768+rm -f conftest.err conftest.i conftest.$ac_ext
1769+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1770+$as_echo "$ac_header_preproc" >&6; }
1771
1772-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1773-for as_dir in $PATH
1774-do
1775- IFS=$as_save_IFS
1776- test -z "$as_dir" && as_dir=.
1777- echo "PATH: $as_dir"
1778-done
1779-IFS=$as_save_IFS
1780+# So? What about this header?
1781+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1782+ yes:no: )
1783+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1784+$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1785+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1786+$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1787+ ;;
1788+ no:yes:* )
1789+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1790+$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1791+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1792+$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1793+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1794+$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1795+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1796+$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1797+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1798+$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1799+( $as_echo "## ------------------------------------------------ ##
1800+## Report this to http://www.python.org/python-bugs ##
1801+## ------------------------------------------------ ##"
1802+ ) | sed "s/^/$as_me: WARNING: /" >&2
1803+ ;;
1804+esac
1805+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1806+$as_echo_n "checking for $2... " >&6; }
1807+if eval \${$3+:} false; then :
1808+ $as_echo_n "(cached) " >&6
1809+else
1810+ eval "$3=\$ac_header_compiler"
1811+fi
1812+eval ac_res=\$$3
1813+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1814+$as_echo "$ac_res" >&6; }
1815+fi
1816+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1817
1818-} >&5
1819+} # ac_fn_c_check_header_mongrel
1820
1821-cat >&5 <<_ACEOF
1822+# ac_fn_c_try_run LINENO
1823+# ----------------------
1824+# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1825+# that executables *can* be run.
1826+ac_fn_c_try_run ()
1827+{
1828+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1829+ if { { ac_try="$ac_link"
1830+case "(($ac_try" in
1831+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1832+ *) ac_try_echo=$ac_try;;
1833+esac
1834+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1835+$as_echo "$ac_try_echo"; } >&5
1836+ (eval "$ac_link") 2>&5
1837+ ac_status=$?
1838+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1839+ test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1840+ { { case "(($ac_try" in
1841+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1842+ *) ac_try_echo=$ac_try;;
1843+esac
1844+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1845+$as_echo "$ac_try_echo"; } >&5
1846+ (eval "$ac_try") 2>&5
1847+ ac_status=$?
1848+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1849+ test $ac_status = 0; }; }; then :
1850+ ac_retval=0
1851+else
1852+ $as_echo "$as_me: program exited with status $ac_status" >&5
1853+ $as_echo "$as_me: failed program was:" >&5
1854+sed 's/^/| /' conftest.$ac_ext >&5
1855
1856+ ac_retval=$ac_status
1857+fi
1858+ rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1859+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1860+ as_fn_set_status $ac_retval
1861
1862-## ----------- ##
1863-## Core tests. ##
1864-## ----------- ##
1865+} # ac_fn_c_try_run
1866
1867+# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1868+# -------------------------------------------------------
1869+# Tests whether HEADER exists and can be compiled using the include files in
1870+# INCLUDES, setting the cache variable VAR accordingly.
1871+ac_fn_c_check_header_compile ()
1872+{
1873+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1874+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1875+$as_echo_n "checking for $2... " >&6; }
1876+if eval \${$3+:} false; then :
1877+ $as_echo_n "(cached) " >&6
1878+else
1879+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1880+/* end confdefs.h. */
1881+$4
1882+#include <$2>
1883 _ACEOF
1884+if ac_fn_c_try_compile "$LINENO"; then :
1885+ eval "$3=yes"
1886+else
1887+ eval "$3=no"
1888+fi
1889+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1890+fi
1891+eval ac_res=\$$3
1892+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1893+$as_echo "$ac_res" >&6; }
1894+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1895
1896+} # ac_fn_c_check_header_compile
1897
1898-# Keep a trace of the command line.
1899-# Strip out --no-create and --no-recursion so they do not pile up.
1900-# Strip out --silent because we don't want to record it for future runs.
1901-# Also quote any args containing shell meta-characters.
1902-# Make two passes to allow for proper duplicate-argument suppression.
1903-ac_configure_args=
1904-ac_configure_args0=
1905-ac_configure_args1=
1906-ac_must_keep_next=false
1907-for ac_pass in 1 2
1908-do
1909- for ac_arg
1910- do
1911- case $ac_arg in
1912- -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1913- -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1914- | -silent | --silent | --silen | --sile | --sil)
1915- continue ;;
1916- *\'*)
1917- ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1918- esac
1919- case $ac_pass in
1920- 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1921- 2)
1922- ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1923- if test $ac_must_keep_next = true; then
1924- ac_must_keep_next=false # Got value, back to normal.
1925- else
1926- case $ac_arg in
1927- *=* | --config-cache | -C | -disable-* | --disable-* \
1928- | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1929- | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1930- | -with-* | --with-* | -without-* | --without-* | --x)
1931- case "$ac_configure_args0 " in
1932- "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1933- esac
1934- ;;
1935- -* ) ac_must_keep_next=true ;;
1936- esac
1937- fi
1938- ac_configure_args="$ac_configure_args '$ac_arg'"
1939- ;;
1940- esac
1941- done
1942-done
1943-$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1944-$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1945-
1946-# When interrupted or exit'd, cleanup temporary files, and complete
1947-# config.log. We remove comments because anyway the quotes in there
1948-# would cause problems or look ugly.
1949-# WARNING: Use '\'' to represent an apostrophe within the trap.
1950-# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1951-trap 'exit_status=$?
1952- # Save into config.log some information that might help in debugging.
1953- {
1954- echo
1955+# ac_fn_c_try_link LINENO
1956+# -----------------------
1957+# Try to link conftest.$ac_ext, and return whether this succeeded.
1958+ac_fn_c_try_link ()
1959+{
1960+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1961+ rm -f conftest.$ac_objext conftest$ac_exeext
1962+ if { { ac_try="$ac_link"
1963+case "(($ac_try" in
1964+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1965+ *) ac_try_echo=$ac_try;;
1966+esac
1967+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1968+$as_echo "$ac_try_echo"; } >&5
1969+ (eval "$ac_link") 2>conftest.err
1970+ ac_status=$?
1971+ if test -s conftest.err; then
1972+ grep -v '^ *+' conftest.err >conftest.er1
1973+ cat conftest.er1 >&5
1974+ mv -f conftest.er1 conftest.err
1975+ fi
1976+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1977+ test $ac_status = 0; } && {
1978+ test -z "$ac_c_werror_flag" ||
1979+ test ! -s conftest.err
1980+ } && test -s conftest$ac_exeext && {
1981+ test "$cross_compiling" = yes ||
1982+ $as_test_x conftest$ac_exeext
1983+ }; then :
1984+ ac_retval=0
1985+else
1986+ $as_echo "$as_me: failed program was:" >&5
1987+sed 's/^/| /' conftest.$ac_ext >&5
1988
1989- cat <<\_ASBOX
1990-## ---------------- ##
1991-## Cache variables. ##
1992-## ---------------- ##
1993-_ASBOX
1994- echo
1995- # The following way of writing the cache mishandles newlines in values,
1996-(
1997- for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1998- eval ac_val=\$$ac_var
1999- case $ac_val in #(
2000- *${as_nl}*)
2001- case $ac_var in #(
2002- *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
2003-echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
2004- esac
2005- case $ac_var in #(
2006- _ | IFS | as_nl) ;; #(
2007- *) $as_unset $ac_var ;;
2008- esac ;;
2009- esac
2010- done
2011- (set) 2>&1 |
2012- case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2013- *${as_nl}ac_space=\ *)
2014- sed -n \
2015- "s/'\''/'\''\\\\'\'''\''/g;
2016- s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2017- ;; #(
2018- *)
2019- sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2020- ;;
2021- esac |
2022- sort
2023-)
2024- echo
2025+ ac_retval=1
2026+fi
2027+ # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2028+ # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2029+ # interfere with the next link command; also delete a directory that is
2030+ # left behind by Apple's compiler. We do this before executing the actions.
2031+ rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2032+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2033+ as_fn_set_status $ac_retval
2034
2035- cat <<\_ASBOX
2036-## ----------------- ##
2037-## Output variables. ##
2038-## ----------------- ##
2039-_ASBOX
2040- echo
2041- for ac_var in $ac_subst_vars
2042- do
2043- eval ac_val=\$$ac_var
2044- case $ac_val in
2045- *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2046- esac
2047- echo "$ac_var='\''$ac_val'\''"
2048- done | sort
2049- echo
2050+} # ac_fn_c_try_link
2051
2052- if test -n "$ac_subst_files"; then
2053- cat <<\_ASBOX
2054-## ------------------- ##
2055-## File substitutions. ##
2056-## ------------------- ##
2057-_ASBOX
2058- echo
2059- for ac_var in $ac_subst_files
2060- do
2061- eval ac_val=\$$ac_var
2062- case $ac_val in
2063- *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2064- esac
2065- echo "$ac_var='\''$ac_val'\''"
2066- done | sort
2067- echo
2068- fi
2069+# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2070+# -------------------------------------------
2071+# Tests whether TYPE exists after having included INCLUDES, setting cache
2072+# variable VAR accordingly.
2073+ac_fn_c_check_type ()
2074+{
2075+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2076+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2077+$as_echo_n "checking for $2... " >&6; }
2078+if eval \${$3+:} false; then :
2079+ $as_echo_n "(cached) " >&6
2080+else
2081+ eval "$3=no"
2082+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2083+/* end confdefs.h. */
2084+$4
2085+int
2086+main ()
2087+{
2088+if (sizeof ($2))
2089+ return 0;
2090+ ;
2091+ return 0;
2092+}
2093+_ACEOF
2094+if ac_fn_c_try_compile "$LINENO"; then :
2095+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2096+/* end confdefs.h. */
2097+$4
2098+int
2099+main ()
2100+{
2101+if (sizeof (($2)))
2102+ return 0;
2103+ ;
2104+ return 0;
2105+}
2106+_ACEOF
2107+if ac_fn_c_try_compile "$LINENO"; then :
2108
2109- if test -s confdefs.h; then
2110- cat <<\_ASBOX
2111-## ----------- ##
2112-## confdefs.h. ##
2113-## ----------- ##
2114-_ASBOX
2115- echo
2116- cat confdefs.h
2117- echo
2118- fi
2119- test "$ac_signal" != 0 &&
2120- echo "$as_me: caught signal $ac_signal"
2121- echo "$as_me: exit $exit_status"
2122- } >&5
2123- rm -f core *.core core.conftest.* &&
2124- rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2125- exit $exit_status
2126-' 0
2127-for ac_signal in 1 2 13 15; do
2128- trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2129-done
2130-ac_signal=0
2131+else
2132+ eval "$3=yes"
2133+fi
2134+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2135+fi
2136+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2137+fi
2138+eval ac_res=\$$3
2139+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2140+$as_echo "$ac_res" >&6; }
2141+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2142
2143-# confdefs.h avoids OS command line length limits that DEFS can exceed.
2144-rm -f -r conftest* confdefs.h
2145+} # ac_fn_c_check_type
2146
2147-# Predefined preprocessor variables.
2148+# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2149+# --------------------------------------------
2150+# Tries to find the compile-time value of EXPR in a program that includes
2151+# INCLUDES, setting VAR accordingly. Returns whether the value could be
2152+# computed
2153+ac_fn_c_compute_int ()
2154+{
2155+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2156+ if test "$cross_compiling" = yes; then
2157+ # Depending upon the size, compute the lo and hi bounds.
2158+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2159+/* end confdefs.h. */
2160+$4
2161+int
2162+main ()
2163+{
2164+static int test_array [1 - 2 * !(($2) >= 0)];
2165+test_array [0] = 0
2166
2167-cat >>confdefs.h <<_ACEOF
2168-#define PACKAGE_NAME "$PACKAGE_NAME"
2169+ ;
2170+ return 0;
2171+}
2172 _ACEOF
2173+if ac_fn_c_try_compile "$LINENO"; then :
2174+ ac_lo=0 ac_mid=0
2175+ while :; do
2176+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2177+/* end confdefs.h. */
2178+$4
2179+int
2180+main ()
2181+{
2182+static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2183+test_array [0] = 0
2184
2185-
2186-cat >>confdefs.h <<_ACEOF
2187-#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2188+ ;
2189+ return 0;
2190+}
2191 _ACEOF
2192+if ac_fn_c_try_compile "$LINENO"; then :
2193+ ac_hi=$ac_mid; break
2194+else
2195+ as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2196+ if test $ac_lo -le $ac_mid; then
2197+ ac_lo= ac_hi=
2198+ break
2199+ fi
2200+ as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2201+fi
2202+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2203+ done
2204+else
2205+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2206+/* end confdefs.h. */
2207+$4
2208+int
2209+main ()
2210+{
2211+static int test_array [1 - 2 * !(($2) < 0)];
2212+test_array [0] = 0
2213
2214-
2215-cat >>confdefs.h <<_ACEOF
2216-#define PACKAGE_VERSION "$PACKAGE_VERSION"
2217+ ;
2218+ return 0;
2219+}
2220 _ACEOF
2221+if ac_fn_c_try_compile "$LINENO"; then :
2222+ ac_hi=-1 ac_mid=-1
2223+ while :; do
2224+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2225+/* end confdefs.h. */
2226+$4
2227+int
2228+main ()
2229+{
2230+static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2231+test_array [0] = 0
2232
2233-
2234-cat >>confdefs.h <<_ACEOF
2235-#define PACKAGE_STRING "$PACKAGE_STRING"
2236+ ;
2237+ return 0;
2238+}
2239 _ACEOF
2240+if ac_fn_c_try_compile "$LINENO"; then :
2241+ ac_lo=$ac_mid; break
2242+else
2243+ as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2244+ if test $ac_mid -le $ac_hi; then
2245+ ac_lo= ac_hi=
2246+ break
2247+ fi
2248+ as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2249+fi
2250+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2251+ done
2252+else
2253+ ac_lo= ac_hi=
2254+fi
2255+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2256+fi
2257+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2258+# Binary search between lo and hi bounds.
2259+while test "x$ac_lo" != "x$ac_hi"; do
2260+ as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2261+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2262+/* end confdefs.h. */
2263+$4
2264+int
2265+main ()
2266+{
2267+static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2268+test_array [0] = 0
2269
2270-
2271-cat >>confdefs.h <<_ACEOF
2272-#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2273+ ;
2274+ return 0;
2275+}
2276 _ACEOF
2277-
2278-
2279-# Let the site file select an alternate cache file if it wants to.
2280-# Prefer explicitly selected file to automatically selected ones.
2281-if test -n "$CONFIG_SITE"; then
2282- set x "$CONFIG_SITE"
2283-elif test "x$prefix" != xNONE; then
2284- set x "$prefix/share/config.site" "$prefix/etc/config.site"
2285+if ac_fn_c_try_compile "$LINENO"; then :
2286+ ac_hi=$ac_mid
2287 else
2288- set x "$ac_default_prefix/share/config.site" \
2289- "$ac_default_prefix/etc/config.site"
2290+ as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2291 fi
2292-shift
2293-for ac_site_file
2294-do
2295- if test -r "$ac_site_file"; then
2296- { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2297-echo "$as_me: loading site script $ac_site_file" >&6;}
2298- sed 's/^/| /' "$ac_site_file" >&5
2299- . "$ac_site_file"
2300- fi
2301+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2302 done
2303+case $ac_lo in #((
2304+?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2305+'') ac_retval=1 ;;
2306+esac
2307+ else
2308+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2309+/* end confdefs.h. */
2310+$4
2311+static long int longval () { return $2; }
2312+static unsigned long int ulongval () { return $2; }
2313+#include <stdio.h>
2314+#include <stdlib.h>
2315+int
2316+main ()
2317+{
2318
2319-if test -r "$cache_file"; then
2320- # Some versions of bash will fail to source /dev/null (special
2321- # files actually), so we avoid doing that.
2322- if test -f "$cache_file"; then
2323- { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2324-echo "$as_me: loading cache $cache_file" >&6;}
2325- case $cache_file in
2326- [\\/]* | ?:[\\/]* ) . "$cache_file";;
2327- *) . "./$cache_file";;
2328- esac
2329- fi
2330+ FILE *f = fopen ("conftest.val", "w");
2331+ if (! f)
2332+ return 1;
2333+ if (($2) < 0)
2334+ {
2335+ long int i = longval ();
2336+ if (i != ($2))
2337+ return 1;
2338+ fprintf (f, "%ld", i);
2339+ }
2340+ else
2341+ {
2342+ unsigned long int i = ulongval ();
2343+ if (i != ($2))
2344+ return 1;
2345+ fprintf (f, "%lu", i);
2346+ }
2347+ /* Do not output a trailing newline, as this causes \r\n confusion
2348+ on some platforms. */
2349+ return ferror (f) || fclose (f) != 0;
2350+
2351+ ;
2352+ return 0;
2353+}
2354+_ACEOF
2355+if ac_fn_c_try_run "$LINENO"; then :
2356+ echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2357 else
2358- { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2359-echo "$as_me: creating cache $cache_file" >&6;}
2360- >$cache_file
2361+ ac_retval=1
2362 fi
2363+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2364+ conftest.$ac_objext conftest.beam conftest.$ac_ext
2365+rm -f conftest.val
2366
2367-# Check that the precious variables saved in the cache have kept the same
2368-# value.
2369-ac_cache_corrupted=false
2370-for ac_var in $ac_precious_vars; do
2371- eval ac_old_set=\$ac_cv_env_${ac_var}_set
2372- eval ac_new_set=\$ac_env_${ac_var}_set
2373- eval ac_old_val=\$ac_cv_env_${ac_var}_value
2374- eval ac_new_val=\$ac_env_${ac_var}_value
2375- case $ac_old_set,$ac_new_set in
2376- set,)
2377- { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2378-echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2379- ac_cache_corrupted=: ;;
2380- ,set)
2381- { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2382-echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2383- ac_cache_corrupted=: ;;
2384- ,);;
2385- *)
2386- if test "x$ac_old_val" != "x$ac_new_val"; then
2387- { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2388-echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2389- { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
2390-echo "$as_me: former value: $ac_old_val" >&2;}
2391- { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
2392-echo "$as_me: current value: $ac_new_val" >&2;}
2393- ac_cache_corrupted=:
2394- fi;;
2395- esac
2396- # Pass precious variables to config.status.
2397- if test "$ac_new_set" = set; then
2398- case $ac_new_val in
2399- *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2400- *) ac_arg=$ac_var=$ac_new_val ;;
2401- esac
2402- case " $ac_configure_args " in
2403- *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2404- *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2405- esac
2406 fi
2407-done
2408-if $ac_cache_corrupted; then
2409- { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2410-echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2411- { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2412-echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2413- { (exit 1); exit 1; }; }
2414-fi
2415-
2416-
2417-
2418-
2419-
2420-
2421-
2422-
2423-
2424-
2425+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2426+ as_fn_set_status $ac_retval
2427
2428+} # ac_fn_c_compute_int
2429
2430+# ac_fn_c_check_func LINENO FUNC VAR
2431+# ----------------------------------
2432+# Tests whether FUNC exists, setting the cache variable VAR accordingly
2433+ac_fn_c_check_func ()
2434+{
2435+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2436+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2437+$as_echo_n "checking for $2... " >&6; }
2438+if eval \${$3+:} false; then :
2439+ $as_echo_n "(cached) " >&6
2440+else
2441+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2442+/* end confdefs.h. */
2443+/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2444+ For example, HP-UX 11i <limits.h> declares gettimeofday. */
2445+#define $2 innocuous_$2
2446
2447+/* System header to define __stub macros and hopefully few prototypes,
2448+ which can conflict with char $2 (); below.
2449+ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2450+ <limits.h> exists even on freestanding compilers. */
2451
2452+#ifdef __STDC__
2453+# include <limits.h>
2454+#else
2455+# include <assert.h>
2456+#endif
2457
2458+#undef $2
2459
2460+/* Override any GCC internal prototype to avoid an error.
2461+ Use char because int might match the return type of a GCC
2462+ builtin and then its argument prototype would still apply. */
2463+#ifdef __cplusplus
2464+extern "C"
2465+#endif
2466+char $2 ();
2467+/* The GNU C library defines this for functions which it implements
2468+ to always fail with ENOSYS. Some functions are actually named
2469+ something starting with __ and the normal name is an alias. */
2470+#if defined __stub_$2 || defined __stub___$2
2471+choke me
2472+#endif
2473
2474+int
2475+main ()
2476+{
2477+return $2 ();
2478+ ;
2479+ return 0;
2480+}
2481+_ACEOF
2482+if ac_fn_c_try_link "$LINENO"; then :
2483+ eval "$3=yes"
2484+else
2485+ eval "$3=no"
2486+fi
2487+rm -f core conftest.err conftest.$ac_objext \
2488+ conftest$ac_exeext conftest.$ac_ext
2489+fi
2490+eval ac_res=\$$3
2491+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2492+$as_echo "$ac_res" >&6; }
2493+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2494
2495+} # ac_fn_c_check_func
2496
2497+# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2498+# ----------------------------------------------------
2499+# Tries to find if the field MEMBER exists in type AGGR, after including
2500+# INCLUDES, setting cache variable VAR accordingly.
2501+ac_fn_c_check_member ()
2502+{
2503+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2504+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2505+$as_echo_n "checking for $2.$3... " >&6; }
2506+if eval \${$4+:} false; then :
2507+ $as_echo_n "(cached) " >&6
2508+else
2509+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2510+/* end confdefs.h. */
2511+$5
2512+int
2513+main ()
2514+{
2515+static $2 ac_aggr;
2516+if (ac_aggr.$3)
2517+return 0;
2518+ ;
2519+ return 0;
2520+}
2521+_ACEOF
2522+if ac_fn_c_try_compile "$LINENO"; then :
2523+ eval "$4=yes"
2524+else
2525+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2526+/* end confdefs.h. */
2527+$5
2528+int
2529+main ()
2530+{
2531+static $2 ac_aggr;
2532+if (sizeof ac_aggr.$3)
2533+return 0;
2534+ ;
2535+ return 0;
2536+}
2537+_ACEOF
2538+if ac_fn_c_try_compile "$LINENO"; then :
2539+ eval "$4=yes"
2540+else
2541+ eval "$4=no"
2542+fi
2543+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2544+fi
2545+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2546+fi
2547+eval ac_res=\$$4
2548+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2549+$as_echo "$ac_res" >&6; }
2550+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2551
2552+} # ac_fn_c_check_member
2553
2554+# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2555+# ---------------------------------------------
2556+# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2557+# accordingly.
2558+ac_fn_c_check_decl ()
2559+{
2560+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2561+ as_decl_name=`echo $2|sed 's/ *(.*//'`
2562+ as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2563+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2564+$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2565+if eval \${$3+:} false; then :
2566+ $as_echo_n "(cached) " >&6
2567+else
2568+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2569+/* end confdefs.h. */
2570+$4
2571+int
2572+main ()
2573+{
2574+#ifndef $as_decl_name
2575+#ifdef __cplusplus
2576+ (void) $as_decl_use;
2577+#else
2578+ (void) $as_decl_name;
2579+#endif
2580+#endif
2581
2582+ ;
2583+ return 0;
2584+}
2585+_ACEOF
2586+if ac_fn_c_try_compile "$LINENO"; then :
2587+ eval "$3=yes"
2588+else
2589+ eval "$3=no"
2590+fi
2591+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2592+fi
2593+eval ac_res=\$$3
2594+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2595+$as_echo "$ac_res" >&6; }
2596+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2597
2598+} # ac_fn_c_check_decl
2599+cat >config.log <<_ACEOF
2600+This file contains any messages produced by compilers while
2601+running configure, to aid debugging if configure makes a mistake.
2602
2603+It was created by python $as_me 2.6, which was
2604+generated by GNU Autoconf 2.68. Invocation command line was
2605
2606-ac_ext=c
2607-ac_cpp='$CPP $CPPFLAGS'
2608-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2609-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2610-ac_compiler_gnu=$ac_cv_c_compiler_gnu
2611+ $ $0 $@
2612
2613+_ACEOF
2614+exec 5>>config.log
2615+{
2616+cat <<_ASUNAME
2617+## --------- ##
2618+## Platform. ##
2619+## --------- ##
2620
2621+hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2622+uname -m = `(uname -m) 2>/dev/null || echo unknown`
2623+uname -r = `(uname -r) 2>/dev/null || echo unknown`
2624+uname -s = `(uname -s) 2>/dev/null || echo unknown`
2625+uname -v = `(uname -v) 2>/dev/null || echo unknown`
2626
2627-ac_config_headers="$ac_config_headers pyconfig.h"
2628+/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2629+/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2630
2631+/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2632+/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2633+/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2634+/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2635+/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2636+/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2637+/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2638
2639+_ASUNAME
2640
2641+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2642+for as_dir in $PATH
2643+do
2644+ IFS=$as_save_IFS
2645+ test -z "$as_dir" && as_dir=.
2646+ $as_echo "PATH: $as_dir"
2647+ done
2648+IFS=$as_save_IFS
2649
2650+} >&5
2651
2652+cat >&5 <<_ACEOF
2653
2654
2655-# We don't use PACKAGE_ variables, and they cause conflicts
2656-# with other autoconf-based packages that include Python.h
2657-grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
2658-rm confdefs.h
2659-mv confdefs.h.new confdefs.h
2660+## ----------- ##
2661+## Core tests. ##
2662+## ----------- ##
2663
2664+_ACEOF
2665
2666-VERSION=2.6
2667
2668+# Keep a trace of the command line.
2669+# Strip out --no-create and --no-recursion so they do not pile up.
2670+# Strip out --silent because we don't want to record it for future runs.
2671+# Also quote any args containing shell meta-characters.
2672+# Make two passes to allow for proper duplicate-argument suppression.
2673+ac_configure_args=
2674+ac_configure_args0=
2675+ac_configure_args1=
2676+ac_must_keep_next=false
2677+for ac_pass in 1 2
2678+do
2679+ for ac_arg
2680+ do
2681+ case $ac_arg in
2682+ -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2683+ -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2684+ | -silent | --silent | --silen | --sile | --sil)
2685+ continue ;;
2686+ *\'*)
2687+ ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2688+ esac
2689+ case $ac_pass in
2690+ 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2691+ 2)
2692+ as_fn_append ac_configure_args1 " '$ac_arg'"
2693+ if test $ac_must_keep_next = true; then
2694+ ac_must_keep_next=false # Got value, back to normal.
2695+ else
2696+ case $ac_arg in
2697+ *=* | --config-cache | -C | -disable-* | --disable-* \
2698+ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2699+ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2700+ | -with-* | --with-* | -without-* | --without-* | --x)
2701+ case "$ac_configure_args0 " in
2702+ "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2703+ esac
2704+ ;;
2705+ -* ) ac_must_keep_next=true ;;
2706+ esac
2707+ fi
2708+ as_fn_append ac_configure_args " '$ac_arg'"
2709+ ;;
2710+ esac
2711+ done
2712+done
2713+{ ac_configure_args0=; unset ac_configure_args0;}
2714+{ ac_configure_args1=; unset ac_configure_args1;}
2715
2716-SOVERSION=1.0
2717+# When interrupted or exit'd, cleanup temporary files, and complete
2718+# config.log. We remove comments because anyway the quotes in there
2719+# would cause problems or look ugly.
2720+# WARNING: Use '\'' to represent an apostrophe within the trap.
2721+# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2722+trap 'exit_status=$?
2723+ # Save into config.log some information that might help in debugging.
2724+ {
2725+ echo
2726
2727-# The later defininition of _XOPEN_SOURCE disables certain features
2728-# on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
2729+ $as_echo "## ---------------- ##
2730+## Cache variables. ##
2731+## ---------------- ##"
2732+ echo
2733+ # The following way of writing the cache mishandles newlines in values,
2734+(
2735+ for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2736+ eval ac_val=\$$ac_var
2737+ case $ac_val in #(
2738+ *${as_nl}*)
2739+ case $ac_var in #(
2740+ *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2741+$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2742+ esac
2743+ case $ac_var in #(
2744+ _ | IFS | as_nl) ;; #(
2745+ BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2746+ *) { eval $ac_var=; unset $ac_var;} ;;
2747+ esac ;;
2748+ esac
2749+ done
2750+ (set) 2>&1 |
2751+ case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2752+ *${as_nl}ac_space=\ *)
2753+ sed -n \
2754+ "s/'\''/'\''\\\\'\'''\''/g;
2755+ s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2756+ ;; #(
2757+ *)
2758+ sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2759+ ;;
2760+ esac |
2761+ sort
2762+)
2763+ echo
2764
2765-cat >>confdefs.h <<\_ACEOF
2766-#define _GNU_SOURCE 1
2767-_ACEOF
2768+ $as_echo "## ----------------- ##
2769+## Output variables. ##
2770+## ----------------- ##"
2771+ echo
2772+ for ac_var in $ac_subst_vars
2773+ do
2774+ eval ac_val=\$$ac_var
2775+ case $ac_val in
2776+ *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2777+ esac
2778+ $as_echo "$ac_var='\''$ac_val'\''"
2779+ done | sort
2780+ echo
2781
2782+ if test -n "$ac_subst_files"; then
2783+ $as_echo "## ------------------- ##
2784+## File substitutions. ##
2785+## ------------------- ##"
2786+ echo
2787+ for ac_var in $ac_subst_files
2788+ do
2789+ eval ac_val=\$$ac_var
2790+ case $ac_val in
2791+ *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2792+ esac
2793+ $as_echo "$ac_var='\''$ac_val'\''"
2794+ done | sort
2795+ echo
2796+ fi
2797
2798-# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
2799-# certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
2800-# them.
2801+ if test -s confdefs.h; then
2802+ $as_echo "## ----------- ##
2803+## confdefs.h. ##
2804+## ----------- ##"
2805+ echo
2806+ cat confdefs.h
2807+ echo
2808+ fi
2809+ test "$ac_signal" != 0 &&
2810+ $as_echo "$as_me: caught signal $ac_signal"
2811+ $as_echo "$as_me: exit $exit_status"
2812+ } >&5
2813+ rm -f core *.core core.conftest.* &&
2814+ rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2815+ exit $exit_status
2816+' 0
2817+for ac_signal in 1 2 13 15; do
2818+ trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2819+done
2820+ac_signal=0
2821
2822-cat >>confdefs.h <<\_ACEOF
2823-#define _NETBSD_SOURCE 1
2824-_ACEOF
2825+# confdefs.h avoids OS command line length limits that DEFS can exceed.
2826+rm -f -r conftest* confdefs.h
2827
2828+$as_echo "/* confdefs.h */" > confdefs.h
2829
2830-# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
2831-# certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
2832-# them.
2833+# Predefined preprocessor variables.
2834
2835-cat >>confdefs.h <<\_ACEOF
2836-#define __BSD_VISIBLE 1
2837+cat >>confdefs.h <<_ACEOF
2838+#define PACKAGE_NAME "$PACKAGE_NAME"
2839 _ACEOF
2840
2841-
2842-# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
2843-# u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
2844-
2845-cat >>confdefs.h <<\_ACEOF
2846-#define _BSD_TYPES 1
2847+cat >>confdefs.h <<_ACEOF
2848+#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2849 _ACEOF
2850
2851-
2852-# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
2853-# certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable
2854-# them.
2855-
2856-cat >>confdefs.h <<\_ACEOF
2857-#define _DARWIN_C_SOURCE 1
2858+cat >>confdefs.h <<_ACEOF
2859+#define PACKAGE_VERSION "$PACKAGE_VERSION"
2860 _ACEOF
2861
2862+cat >>confdefs.h <<_ACEOF
2863+#define PACKAGE_STRING "$PACKAGE_STRING"
2864+_ACEOF
2865
2866+cat >>confdefs.h <<_ACEOF
2867+#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2868+_ACEOF
2869
2870-define_xopen_source=yes
2871-
2872-# Arguments passed to configure.
2873-
2874-CONFIG_ARGS="$ac_configure_args"
2875+cat >>confdefs.h <<_ACEOF
2876+#define PACKAGE_URL "$PACKAGE_URL"
2877+_ACEOF
2878
2879-# Check whether --enable-universalsdk was given.
2880-if test "${enable_universalsdk+set}" = set; then
2881- enableval=$enable_universalsdk;
2882- case $enableval in
2883- yes)
2884- enableval=/Developer/SDKs/MacOSX10.4u.sdk
2885- ;;
2886- esac
2887- case $enableval in
2888- no)
2889- UNIVERSALSDK=
2890- enable_universalsdk=
2891- ;;
2892- *)
2893- UNIVERSALSDK=$enableval
2894- ;;
2895- esac
2896
2897+# Let the site file select an alternate cache file if it wants to.
2898+# Prefer an explicitly selected file to automatically selected ones.
2899+ac_site_file1=NONE
2900+ac_site_file2=NONE
2901+if test -n "$CONFIG_SITE"; then
2902+ # We do not want a PATH search for config.site.
2903+ case $CONFIG_SITE in #((
2904+ -*) ac_site_file1=./$CONFIG_SITE;;
2905+ */*) ac_site_file1=$CONFIG_SITE;;
2906+ *) ac_site_file1=./$CONFIG_SITE;;
2907+ esac
2908+elif test "x$prefix" != xNONE; then
2909+ ac_site_file1=$prefix/share/config.site
2910+ ac_site_file2=$prefix/etc/config.site
2911 else
2912-
2913- UNIVERSALSDK=
2914- enable_universalsdk=
2915-
2916+ ac_site_file1=$ac_default_prefix/share/config.site
2917+ ac_site_file2=$ac_default_prefix/etc/config.site
2918 fi
2919+for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2920+do
2921+ test "x$ac_site_file" = xNONE && continue
2922+ if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2923+ { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2924+$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2925+ sed 's/^/| /' "$ac_site_file" >&5
2926+ . "$ac_site_file" \
2927+ || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2928+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2929+as_fn_error $? "failed to load site script $ac_site_file
2930+See \`config.log' for more details" "$LINENO" 5; }
2931+ fi
2932+done
2933
2934-
2935-
2936-ARCH_RUN_32BIT=
2937-
2938-
2939-UNIVERSAL_ARCHS="32-bit"
2940-{ echo "$as_me:$LINENO: checking for --with-universal-archs" >&5
2941-echo $ECHO_N "checking for --with-universal-archs... $ECHO_C" >&6; }
2942-
2943-# Check whether --with-universal-archs was given.
2944-if test "${with_universal_archs+set}" = set; then
2945- withval=$with_universal_archs;
2946- { echo "$as_me:$LINENO: result: $withval" >&5
2947-echo "${ECHO_T}$withval" >&6; }
2948- UNIVERSAL_ARCHS="$withval"
2949-
2950+if test -r "$cache_file"; then
2951+ # Some versions of bash will fail to source /dev/null (special files
2952+ # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2953+ if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2954+ { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2955+$as_echo "$as_me: loading cache $cache_file" >&6;}
2956+ case $cache_file in
2957+ [\\/]* | ?:[\\/]* ) . "$cache_file";;
2958+ *) . "./$cache_file";;
2959+ esac
2960+ fi
2961 else
2962-
2963- { echo "$as_me:$LINENO: result: 32-bit" >&5
2964-echo "${ECHO_T}32-bit" >&6; }
2965-
2966+ { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2967+$as_echo "$as_me: creating cache $cache_file" >&6;}
2968+ >$cache_file
2969 fi
2970
2971+# Check that the precious variables saved in the cache have kept the same
2972+# value.
2973+ac_cache_corrupted=false
2974+for ac_var in $ac_precious_vars; do
2975+ eval ac_old_set=\$ac_cv_env_${ac_var}_set
2976+ eval ac_new_set=\$ac_env_${ac_var}_set
2977+ eval ac_old_val=\$ac_cv_env_${ac_var}_value
2978+ eval ac_new_val=\$ac_env_${ac_var}_value
2979+ case $ac_old_set,$ac_new_set in
2980+ set,)
2981+ { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2982+$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2983+ ac_cache_corrupted=: ;;
2984+ ,set)
2985+ { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2986+$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2987+ ac_cache_corrupted=: ;;
2988+ ,);;
2989+ *)
2990+ if test "x$ac_old_val" != "x$ac_new_val"; then
2991+ # differences in whitespace do not lead to failure.
2992+ ac_old_val_w=`echo x $ac_old_val`
2993+ ac_new_val_w=`echo x $ac_new_val`
2994+ if test "$ac_old_val_w" != "$ac_new_val_w"; then
2995+ { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2996+$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2997+ ac_cache_corrupted=:
2998+ else
2999+ { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3000+$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3001+ eval $ac_var=\$ac_old_val
3002+ fi
3003+ { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3004+$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3005+ { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3006+$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3007+ fi;;
3008+ esac
3009+ # Pass precious variables to config.status.
3010+ if test "$ac_new_set" = set; then
3011+ case $ac_new_val in
3012+ *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3013+ *) ac_arg=$ac_var=$ac_new_val ;;
3014+ esac
3015+ case " $ac_configure_args " in
3016+ *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3017+ *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3018+ esac
3019+ fi
3020+done
3021+if $ac_cache_corrupted; then
3022+ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3023+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3024+ { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3025+$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3026+ as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3027+fi
3028+## -------------------- ##
3029+## Main body of script. ##
3030+## -------------------- ##
3031
3032+ac_ext=c
3033+ac_cpp='$CPP $CPPFLAGS'
3034+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3035+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3036+ac_compiler_gnu=$ac_cv_c_compiler_gnu
3037
3038
3039
3040-# Check whether --with-framework-name was given.
3041-if test "${with_framework_name+set}" = set; then
3042- withval=$with_framework_name;
3043- PYTHONFRAMEWORK=${withval}
3044- PYTHONFRAMEWORKDIR=${withval}.framework
3045- PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'`
3046-
3047-else
3048+ac_config_headers="$ac_config_headers pyconfig.h"
3049
3050- PYTHONFRAMEWORK=Python
3051- PYTHONFRAMEWORKDIR=Python.framework
3052- PYTHONFRAMEWORKIDENTIFIER=org.python.python
3053
3054+# find compiler while respecting --host setting
3055+ac_aux_dir=
3056+for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3057+ if test -f "$ac_dir/install-sh"; then
3058+ ac_aux_dir=$ac_dir
3059+ ac_install_sh="$ac_aux_dir/install-sh -c"
3060+ break
3061+ elif test -f "$ac_dir/install.sh"; then
3062+ ac_aux_dir=$ac_dir
3063+ ac_install_sh="$ac_aux_dir/install.sh -c"
3064+ break
3065+ elif test -f "$ac_dir/shtool"; then
3066+ ac_aux_dir=$ac_dir
3067+ ac_install_sh="$ac_aux_dir/shtool install -c"
3068+ break
3069+ fi
3070+done
3071+if test -z "$ac_aux_dir"; then
3072+ as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3073 fi
3074
3075-# Check whether --enable-framework was given.
3076-if test "${enable_framework+set}" = set; then
3077- enableval=$enable_framework;
3078- case $enableval in
3079- yes)
3080- enableval=/Library/Frameworks
3081- esac
3082- case $enableval in
3083- no)
3084- PYTHONFRAMEWORK=
3085- PYTHONFRAMEWORKDIR=no-framework
3086- PYTHONFRAMEWORKPREFIX=
3087- PYTHONFRAMEWORKINSTALLDIR=
3088- FRAMEWORKINSTALLFIRST=
3089- FRAMEWORKINSTALLLAST=
3090- FRAMEWORKALTINSTALLFIRST=
3091- FRAMEWORKALTINSTALLLAST=
3092- if test "x${prefix}" = "xNONE"; then
3093- FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
3094- else
3095- FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
3096- fi
3097- enable_framework=
3098- ;;
3099- *)
3100- PYTHONFRAMEWORKPREFIX=$enableval
3101- PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
3102- FRAMEWORKINSTALLFIRST="frameworkinstallstructure"
3103- FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure bininstall maninstall"
3104- if test "$UNIVERSAL_ARCHS" = "all"
3105- then
3106- FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkinstallunixtools4way"
3107- else
3108- FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
3109- fi
3110-
3111- if test "x${prefix}" = "xNONE" ; then
3112- FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
3113- else
3114- FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
3115- fi
3116- prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
3117-
3118- # Add files for Mac specific code to the list of output
3119- # files:
3120- ac_config_files="$ac_config_files Mac/Makefile"
3121-
3122- ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile"
3123+# These three variables are undocumented and unsupported,
3124+# and are intended to be withdrawn in a future Autoconf release.
3125+# They can cause serious problems if a builder's source tree is in a directory
3126+# whose full name contains unusual characters.
3127+ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3128+ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3129+ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3130
3131- ac_config_files="$ac_config_files Mac/IDLE/Makefile"
3132
3133- ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist"
3134+# Make sure we can run config.sub.
3135+$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3136+ as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3137+
3138+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3139+$as_echo_n "checking build system type... " >&6; }
3140+if ${ac_cv_build+:} false; then :
3141+ $as_echo_n "(cached) " >&6
3142+else
3143+ ac_build_alias=$build_alias
3144+test "x$ac_build_alias" = x &&
3145+ ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3146+test "x$ac_build_alias" = x &&
3147+ as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3148+ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3149+ as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3150+
3151+fi
3152+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3153+$as_echo "$ac_cv_build" >&6; }
3154+case $ac_cv_build in
3155+*-*-*) ;;
3156+*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3157+esac
3158+build=$ac_cv_build
3159+ac_save_IFS=$IFS; IFS='-'
3160+set x $ac_cv_build
3161+shift
3162+build_cpu=$1
3163+build_vendor=$2
3164+shift; shift
3165+# Remember, the first character of IFS is used to create $*,
3166+# except with old shells:
3167+build_os=$*
3168+IFS=$ac_save_IFS
3169+case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3170+
3171+
3172+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3173+$as_echo_n "checking host system type... " >&6; }
3174+if ${ac_cv_host+:} false; then :
3175+ $as_echo_n "(cached) " >&6
3176+else
3177+ if test "x$host_alias" = x; then
3178+ ac_cv_host=$ac_cv_build
3179+else
3180+ ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3181+ as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3182+fi
3183
3184- ac_config_files="$ac_config_files Mac/Resources/app/Info.plist"
3185+fi
3186+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3187+$as_echo "$ac_cv_host" >&6; }
3188+case $ac_cv_host in
3189+*-*-*) ;;
3190+*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3191+esac
3192+host=$ac_cv_host
3193+ac_save_IFS=$IFS; IFS='-'
3194+set x $ac_cv_host
3195+shift
3196+host_cpu=$1
3197+host_vendor=$2
3198+shift; shift
3199+# Remember, the first character of IFS is used to create $*,
3200+# except with old shells:
3201+host_os=$*
3202+IFS=$ac_save_IFS
3203+case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3204
3205- esac
3206
3207+if test -n "$ac_tool_prefix"; then
3208+ for ac_prog in gcc cc
3209+ do
3210+ # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3211+set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3212+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3213+$as_echo_n "checking for $ac_word... " >&6; }
3214+if ${ac_cv_prog_CC+:} false; then :
3215+ $as_echo_n "(cached) " >&6
3216+else
3217+ if test -n "$CC"; then
3218+ ac_cv_prog_CC="$CC" # Let the user override the test.
3219 else
3220+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3221+for as_dir in $PATH
3222+do
3223+ IFS=$as_save_IFS
3224+ test -z "$as_dir" && as_dir=.
3225+ for ac_exec_ext in '' $ac_executable_extensions; do
3226+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3227+ ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3228+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3229+ break 2
3230+ fi
3231+done
3232+ done
3233+IFS=$as_save_IFS
3234
3235- PYTHONFRAMEWORK=
3236- PYTHONFRAMEWORKDIR=no-framework
3237- PYTHONFRAMEWORKPREFIX=
3238- PYTHONFRAMEWORKINSTALLDIR=
3239- FRAMEWORKINSTALLFIRST=
3240- FRAMEWORKINSTALLLAST=
3241- FRAMEWORKALTINSTALLFIRST=
3242- FRAMEWORKALTINSTALLLAST=
3243- if test "x${prefix}" = "xNONE" ; then
3244- FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
3245- else
3246- FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
3247- fi
3248- enable_framework=
3249+fi
3250+fi
3251+CC=$ac_cv_prog_CC
3252+if test -n "$CC"; then
3253+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3254+$as_echo "$CC" >&6; }
3255+else
3256+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3257+$as_echo "no" >&6; }
3258+fi
3259
3260- if test "$UNIVERSAL_ARCHS" = "all"
3261- then
3262- FRAMEWORKINSTALLLAST=update4wayuniversal
3263- FRAMEWORKALTINSTALLLAST=update4wayuniversal
3264- fi
3265
3266+ test -n "$CC" && break
3267+ done
3268 fi
3269+if test -z "$CC"; then
3270+ ac_ct_CC=$CC
3271+ for ac_prog in gcc cc
3272+do
3273+ # Extract the first word of "$ac_prog", so it can be a program name with args.
3274+set dummy $ac_prog; ac_word=$2
3275+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3276+$as_echo_n "checking for $ac_word... " >&6; }
3277+if ${ac_cv_prog_ac_ct_CC+:} false; then :
3278+ $as_echo_n "(cached) " >&6
3279+else
3280+ if test -n "$ac_ct_CC"; then
3281+ ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3282+else
3283+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3284+for as_dir in $PATH
3285+do
3286+ IFS=$as_save_IFS
3287+ test -z "$as_dir" && as_dir=.
3288+ for ac_exec_ext in '' $ac_executable_extensions; do
3289+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3290+ ac_cv_prog_ac_ct_CC="$ac_prog"
3291+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3292+ break 2
3293+ fi
3294+done
3295+ done
3296+IFS=$as_save_IFS
3297+
3298+fi
3299+fi
3300+ac_ct_CC=$ac_cv_prog_ac_ct_CC
3301+if test -n "$ac_ct_CC"; then
3302+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3303+$as_echo "$ac_ct_CC" >&6; }
3304+else
3305+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3306+$as_echo "no" >&6; }
3307+fi
3308+
3309+
3310+ test -n "$ac_ct_CC" && break
3311+done
3312+
3313+ if test "x$ac_ct_CC" = x; then
3314+ CC=""
3315+ else
3316+ case $cross_compiling:$ac_tool_warned in
3317+yes:)
3318+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3319+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3320+ac_tool_warned=yes ;;
3321+esac
3322+ CC=$ac_ct_CC
3323+ fi
3324+fi
3325+
3326+if test -n "$ac_tool_prefix"; then
3327+ for ac_prog in g++ c++
3328+ do
3329+ # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3330+set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3331+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3332+$as_echo_n "checking for $ac_word... " >&6; }
3333+if ${ac_cv_prog_CXX+:} false; then :
3334+ $as_echo_n "(cached) " >&6
3335+else
3336+ if test -n "$CXX"; then
3337+ ac_cv_prog_CXX="$CXX" # Let the user override the test.
3338+else
3339+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3340+for as_dir in $PATH
3341+do
3342+ IFS=$as_save_IFS
3343+ test -z "$as_dir" && as_dir=.
3344+ for ac_exec_ext in '' $ac_executable_extensions; do
3345+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3346+ ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3347+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3348+ break 2
3349+ fi
3350+done
3351+ done
3352+IFS=$as_save_IFS
3353+
3354+fi
3355+fi
3356+CXX=$ac_cv_prog_CXX
3357+if test -n "$CXX"; then
3358+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3359+$as_echo "$CXX" >&6; }
3360+else
3361+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3362+$as_echo "no" >&6; }
3363+fi
3364+
3365+
3366+ test -n "$CXX" && break
3367+ done
3368+fi
3369+if test -z "$CXX"; then
3370+ ac_ct_CXX=$CXX
3371+ for ac_prog in g++ c++
3372+do
3373+ # Extract the first word of "$ac_prog", so it can be a program name with args.
3374+set dummy $ac_prog; ac_word=$2
3375+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3376+$as_echo_n "checking for $ac_word... " >&6; }
3377+if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3378+ $as_echo_n "(cached) " >&6
3379+else
3380+ if test -n "$ac_ct_CXX"; then
3381+ ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3382+else
3383+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3384+for as_dir in $PATH
3385+do
3386+ IFS=$as_save_IFS
3387+ test -z "$as_dir" && as_dir=.
3388+ for ac_exec_ext in '' $ac_executable_extensions; do
3389+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3390+ ac_cv_prog_ac_ct_CXX="$ac_prog"
3391+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3392+ break 2
3393+ fi
3394+done
3395+ done
3396+IFS=$as_save_IFS
3397+
3398+fi
3399+fi
3400+ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3401+if test -n "$ac_ct_CXX"; then
3402+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3403+$as_echo "$ac_ct_CXX" >&6; }
3404+else
3405+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3406+$as_echo "no" >&6; }
3407+fi
3408+
3409+
3410+ test -n "$ac_ct_CXX" && break
3411+done
3412+
3413+ if test "x$ac_ct_CXX" = x; then
3414+ CXX=""
3415+ else
3416+ case $cross_compiling:$ac_tool_warned in
3417+yes:)
3418+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3419+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3420+ac_tool_warned=yes ;;
3421+esac
3422+ CXX=$ac_ct_CXX
3423+ fi
3424+fi
3425+
3426+
3427+
3428+
3429+
3430+# We don't use PACKAGE_ variables, and they cause conflicts
3431+# with other autoconf-based packages that include Python.h
3432+grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
3433+rm confdefs.h
3434+mv confdefs.h.new confdefs.h
3435+
3436+
3437+VERSION=2.6
3438+
3439+
3440+SOVERSION=1.0
3441+
3442+# The later defininition of _XOPEN_SOURCE disables certain features
3443+# on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
3444+
3445+$as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3446+
3447+
3448+# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
3449+# certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
3450+# them.
3451+
3452+$as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
3453+
3454+
3455+# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
3456+# certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
3457+# them.
3458+
3459+$as_echo "#define __BSD_VISIBLE 1" >>confdefs.h
3460+
3461+
3462+# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
3463+# u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
3464+
3465+$as_echo "#define _BSD_TYPES 1" >>confdefs.h
3466+
3467+
3468+# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
3469+# certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable
3470+# them.
3471+
3472+$as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
3473+
3474+
3475+
3476+define_xopen_source=yes
3477+
3478+# Arguments passed to configure.
3479+
3480+CONFIG_ARGS="$ac_configure_args"
3481+
3482+# Check whether --enable-universalsdk was given.
3483+if test "${enable_universalsdk+set}" = set; then :
3484+ enableval=$enable_universalsdk;
3485+ case $enableval in
3486+ yes)
3487+ enableval=/Developer/SDKs/MacOSX10.4u.sdk
3488+ ;;
3489+ esac
3490+ case $enableval in
3491+ no)
3492+ UNIVERSALSDK=
3493+ enable_universalsdk=
3494+ ;;
3495+ *)
3496+ UNIVERSALSDK=$enableval
3497+ ;;
3498+ esac
3499+
3500+else
3501+
3502+ UNIVERSALSDK=
3503+ enable_universalsdk=
3504+
3505+fi
3506+
3507+
3508+
3509+ARCH_RUN_32BIT=
3510+
3511+
3512+UNIVERSAL_ARCHS="32-bit"
3513+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-universal-archs" >&5
3514+$as_echo_n "checking for --with-universal-archs... " >&6; }
3515+
3516+# Check whether --with-universal-archs was given.
3517+if test "${with_universal_archs+set}" = set; then :
3518+ withval=$with_universal_archs;
3519+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
3520+$as_echo "$withval" >&6; }
3521+ UNIVERSAL_ARCHS="$withval"
3522+
3523+else
3524+
3525+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: 32-bit" >&5
3526+$as_echo "32-bit" >&6; }
3527+
3528+fi
3529+
3530+
3531+
3532+
3533+
3534+# Check whether --with-framework-name was given.
3535+if test "${with_framework_name+set}" = set; then :
3536+ withval=$with_framework_name;
3537+ PYTHONFRAMEWORK=${withval}
3538+ PYTHONFRAMEWORKDIR=${withval}.framework
3539+ PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'`
3540+
3541+else
3542+
3543+ PYTHONFRAMEWORK=Python
3544+ PYTHONFRAMEWORKDIR=Python.framework
3545+ PYTHONFRAMEWORKIDENTIFIER=org.python.python
3546+
3547+fi
3548+
3549+# Check whether --enable-framework was given.
3550+if test "${enable_framework+set}" = set; then :
3551+ enableval=$enable_framework;
3552+ case $enableval in
3553+ yes)
3554+ enableval=/Library/Frameworks
3555+ esac
3556+ case $enableval in
3557+ no)
3558+ PYTHONFRAMEWORK=
3559+ PYTHONFRAMEWORKDIR=no-framework
3560+ PYTHONFRAMEWORKPREFIX=
3561+ PYTHONFRAMEWORKINSTALLDIR=
3562+ FRAMEWORKINSTALLFIRST=
3563+ FRAMEWORKINSTALLLAST=
3564+ FRAMEWORKALTINSTALLFIRST=
3565+ FRAMEWORKALTINSTALLLAST=
3566+ if test "x${prefix}" = "xNONE"; then
3567+ FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
3568+ else
3569+ FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
3570+ fi
3571+ enable_framework=
3572+ ;;
3573+ *)
3574+ PYTHONFRAMEWORKPREFIX=$enableval
3575+ PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
3576+ FRAMEWORKINSTALLFIRST="frameworkinstallstructure"
3577+ FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure bininstall maninstall"
3578+ if test "$UNIVERSAL_ARCHS" = "all"
3579+ then
3580+ FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkinstallunixtools4way"
3581+ else
3582+ FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
3583+ fi
3584+
3585+ if test "x${prefix}" = "xNONE" ; then
3586+ FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
3587+ else
3588+ FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
3589+ fi
3590+ prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
3591+
3592+ # Add files for Mac specific code to the list of output
3593+ # files:
3594+ ac_config_files="$ac_config_files Mac/Makefile"
3595+
3596+ ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile"
3597+
3598+ ac_config_files="$ac_config_files Mac/IDLE/Makefile"
3599+
3600+ ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist"
3601+
3602+ ac_config_files="$ac_config_files Mac/Resources/app/Info.plist"
3603+
3604+ esac
3605+
3606+else
3607+
3608+ PYTHONFRAMEWORK=
3609+ PYTHONFRAMEWORKDIR=no-framework
3610+ PYTHONFRAMEWORKPREFIX=
3611+ PYTHONFRAMEWORKINSTALLDIR=
3612+ FRAMEWORKINSTALLFIRST=
3613+ FRAMEWORKINSTALLLAST=
3614+ FRAMEWORKALTINSTALLFIRST=
3615+ FRAMEWORKALTINSTALLLAST=
3616+ if test "x${prefix}" = "xNONE" ; then
3617+ FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
3618+ else
3619+ FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
3620+ fi
3621+ enable_framework=
3622+
3623+ if test "$UNIVERSAL_ARCHS" = "all"
3624+ then
3625+ FRAMEWORKINSTALLLAST=update4wayuniversal
3626+ FRAMEWORKALTINSTALLLAST=update4wayuniversal
3627+ fi
3628+
3629+fi
3630+
3631
3632
3633
3634@@ -2030,17 +3098,16 @@ fi
3635
3636
3637
3638-
3639 ##AC_ARG_WITH(dyld,
3640 ## AC_HELP_STRING(--with-dyld,
3641 ## Use (OpenStep|Rhapsody) dynamic linker))
3642 ##
3643 # Set name for machine-dependent library files
3644
3645-{ echo "$as_me:$LINENO: checking MACHDEP" >&5
3646-echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6; }
3647-if test -z "$MACHDEP"
3648-then
3649+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP" >&5
3650+$as_echo_n "checking MACHDEP... " >&6; }
3651+if test -z "$MACHDEP"; then
3652+ if test "$cross_compiling" = "no"; then
3653 ac_sys_system=`uname -s`
3654 if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \
3655 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
3656@@ -2048,6 +3115,24 @@ then
3657 else
3658 ac_sys_release=`uname -r`
3659 fi
3660+ else
3661+ #m=`$CC -dumpmachine`
3662+ #changequote(<<, >>)#dnl
3663+ #ac_sys_system=`expr "$m" : "[^-]*-\([^-]*\)"`
3664+ #changequote([, ])#dnl
3665+
3666+ m=`$CC -dumpmachine`
3667+ ac_sys_system=`echo $m | cut -d- -f3`
3668+
3669+ case $ac_sys_system in
3670+ cygwin*) ac_sys_system=`echo $ac_sys_system | sed s/cygwin/CYGWIN/g `;;
3671+ darwin*) ac_sys_system=`echo $ac_sys_system | sed s/darwin/Darwin/g `;;
3672+ linux*) ac_sys_system=`echo $ac_sys_system | sed s/linux/Linux/g `;;
3673+ esac
3674+
3675+
3676+ fi
3677+
3678 ac_md_system=`echo $ac_sys_system |
3679 tr -d '/ ' | tr '[A-Z]' '[a-z]'`
3680 ac_md_release=`echo $ac_sys_release |
3681@@ -2056,6 +3141,7 @@ then
3682
3683 case $MACHDEP in
3684 cygwin*) MACHDEP="cygwin";;
3685+ mingw*) MACHDEP="mingw";;
3686 darwin*) MACHDEP="darwin";;
3687 atheos*) MACHDEP="atheos";;
3688 irix646) MACHDEP="irix6";;
3689@@ -2082,9 +3168,7 @@ case $ac_sys_system/$ac_sys_release in
3690 # also defined. This can be overridden by defining _BSD_SOURCE
3691 # As this has a different meaning on Linux, only define it on OpenBSD
3692
3693-cat >>confdefs.h <<\_ACEOF
3694-#define _BSD_SOURCE 1
3695-_ACEOF
3696+$as_echo "#define _BSD_SOURCE 1" >>confdefs.h
3697
3698 ;;
3699 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
3700@@ -2145,16 +3229,12 @@ then
3701 case $ac_sys_system/$ac_sys_release in
3702 SunOS/5.8|SunOS/5.9|SunOS/5.10)
3703
3704-cat >>confdefs.h <<\_ACEOF
3705-#define _XOPEN_SOURCE 500
3706-_ACEOF
3707+$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
3708
3709 ;;
3710 *)
3711
3712-cat >>confdefs.h <<\_ACEOF
3713-#define _XOPEN_SOURCE 600
3714-_ACEOF
3715+$as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h
3716
3717 ;;
3718 esac
3719@@ -2170,17 +3250,13 @@ _ACEOF
3720 ;;
3721 *)
3722
3723-cat >>confdefs.h <<\_ACEOF
3724-#define _XOPEN_SOURCE_EXTENDED 1
3725-_ACEOF
3726+$as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h
3727
3728 ;;
3729 esac
3730
3731
3732-cat >>confdefs.h <<\_ACEOF
3733-#define _POSIX_C_SOURCE 200112L
3734-_ACEOF
3735+$as_echo "#define _POSIX_C_SOURCE 200112L" >>confdefs.h
3736
3737
3738 fi
3739@@ -2201,14 +3277,14 @@ then
3740 LDFLAGS="$SGI_ABI $LDFLAGS"
3741 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
3742 fi
3743-{ echo "$as_me:$LINENO: result: $MACHDEP" >&5
3744-echo "${ECHO_T}$MACHDEP" >&6; }
3745+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACHDEP" >&5
3746+$as_echo "$MACHDEP" >&6; }
3747
3748-# And add extra plat-mac for darwin
3749+# And add extra plat-mac for Darwin
3750
3751
3752-{ echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5
3753-echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6; }
3754+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking EXTRAPLATDIR" >&5
3755+$as_echo_n "checking EXTRAPLATDIR... " >&6; }
3756 if test -z "$EXTRAPLATDIR"
3757 then
3758 case $MACHDEP in
3759@@ -2222,8 +3298,27 @@ then
3760 ;;
3761 esac
3762 fi
3763-{ echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5
3764-echo "${ECHO_T}$EXTRAPLATDIR" >&6; }
3765+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRAPLATDIR" >&5
3766+$as_echo "$EXTRAPLATDIR" >&6; }
3767+
3768+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking posix flavour" >&5
3769+$as_echo_n "checking posix flavour... " >&6; }
3770+if test -z "$POSIX"
3771+then
3772+ case $ac_sys_system/$ac_sys_release in
3773+ mingw*)
3774+ DELIM=';'
3775+ POSIX=nt
3776+ ;;
3777+ *)
3778+ DELIM=':'
3779+ POSIX=posix
3780+ ;;
3781+ esac
3782+ fi
3783+
3784+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $POSIX" >&5
3785+$as_echo "$POSIX" >&6; }
3786
3787 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
3788 # it may influence the way we can build extensions, so distutils
3789@@ -2233,11 +3328,11 @@ echo "${ECHO_T}$EXTRAPLATDIR" >&6; }
3790 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
3791 EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
3792
3793-{ echo "$as_me:$LINENO: checking machine type as reported by uname -m" >&5
3794-echo $ECHO_N "checking machine type as reported by uname -m... $ECHO_C" >&6; }
3795+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking machine type as reported by uname -m" >&5
3796+$as_echo_n "checking machine type as reported by uname -m... " >&6; }
3797 ac_sys_machine=`uname -m`
3798-{ echo "$as_me:$LINENO: result: $ac_sys_machine" >&5
3799-echo "${ECHO_T}$ac_sys_machine" >&6; }
3800+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sys_machine" >&5
3801+$as_echo "$ac_sys_machine" >&6; }
3802
3803 # checks for alternative programs
3804
3805@@ -2249,11 +3344,11 @@ echo "${ECHO_T}$ac_sys_machine" >&6; }
3806
3807 # XXX shouldn't some/most/all of this code be merged with the stuff later
3808 # on that fiddles with OPT and BASECFLAGS?
3809-{ echo "$as_me:$LINENO: checking for --without-gcc" >&5
3810-echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6; }
3811+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --without-gcc" >&5
3812+$as_echo_n "checking for --without-gcc... " >&6; }
3813
3814 # Check whether --with-gcc was given.
3815-if test "${with_gcc+set}" = set; then
3816+if test "${with_gcc+set}" = set; then :
3817 withval=$with_gcc;
3818 case $withval in
3819 no) CC=cc
3820@@ -2283,9 +3378,7 @@ else
3821 OPT="$OPT -O"
3822 ;;
3823 *)
3824- { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5
3825-echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;}
3826- { (exit 1); exit 1; }; }
3827+ as_fn_error $? "Unknown BeOS platform \"$BE_HOST_CPU\"" "$LINENO" 5
3828 ;;
3829 esac
3830 AR="\$(srcdir)/Modules/ar_beos"
3831@@ -2298,17 +3391,14 @@ echo "$as_me: error: Unknown BeOS platfo
3832 esac
3833 fi
3834
3835-{ echo "$as_me:$LINENO: result: $without_gcc" >&5
3836-echo "${ECHO_T}$without_gcc" >&6; }
3837+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $without_gcc" >&5
3838+$as_echo "$without_gcc" >&6; }
3839
3840 # If the user switches compilers, we can't believe the cache
3841 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
3842 then
3843- { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
3844-(it is also a good idea to do 'make clean' before compiling)" >&5
3845-echo "$as_me: error: cached CC is different -- throw away $cache_file
3846-(it is also a good idea to do 'make clean' before compiling)" >&2;}
3847- { (exit 1); exit 1; }; }
3848+ as_fn_error $? "cached CC is different -- throw away $cache_file
3849+(it is also a good idea to do 'make clean' before compiling)" "$LINENO" 5
3850 fi
3851
3852 ac_ext=c
3853@@ -2319,10 +3409,10 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
3854 if test -n "$ac_tool_prefix"; then
3855 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3856 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3857-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3858-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3859-if test "${ac_cv_prog_CC+set}" = set; then
3860- echo $ECHO_N "(cached) $ECHO_C" >&6
3861+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3862+$as_echo_n "checking for $ac_word... " >&6; }
3863+if ${ac_cv_prog_CC+:} false; then :
3864+ $as_echo_n "(cached) " >&6
3865 else
3866 if test -n "$CC"; then
3867 ac_cv_prog_CC="$CC" # Let the user override the test.
3868@@ -2332,25 +3422,25 @@ for as_dir in $PATH
3869 do
3870 IFS=$as_save_IFS
3871 test -z "$as_dir" && as_dir=.
3872- for ac_exec_ext in '' $ac_executable_extensions; do
3873+ for ac_exec_ext in '' $ac_executable_extensions; do
3874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3875 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3876- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3877+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3878 break 2
3879 fi
3880 done
3881-done
3882+ done
3883 IFS=$as_save_IFS
3884
3885 fi
3886 fi
3887 CC=$ac_cv_prog_CC
3888 if test -n "$CC"; then
3889- { echo "$as_me:$LINENO: result: $CC" >&5
3890-echo "${ECHO_T}$CC" >&6; }
3891+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3892+$as_echo "$CC" >&6; }
3893 else
3894- { echo "$as_me:$LINENO: result: no" >&5
3895-echo "${ECHO_T}no" >&6; }
3896+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3897+$as_echo "no" >&6; }
3898 fi
3899
3900
3901@@ -2359,10 +3449,10 @@ if test -z "$ac_cv_prog_CC"; then
3902 ac_ct_CC=$CC
3903 # Extract the first word of "gcc", so it can be a program name with args.
3904 set dummy gcc; ac_word=$2
3905-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3906-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3907-if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3908- echo $ECHO_N "(cached) $ECHO_C" >&6
3909+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3910+$as_echo_n "checking for $ac_word... " >&6; }
3911+if ${ac_cv_prog_ac_ct_CC+:} false; then :
3912+ $as_echo_n "(cached) " >&6
3913 else
3914 if test -n "$ac_ct_CC"; then
3915 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3916@@ -2372,25 +3462,25 @@ for as_dir in $PATH
3917 do
3918 IFS=$as_save_IFS
3919 test -z "$as_dir" && as_dir=.
3920- for ac_exec_ext in '' $ac_executable_extensions; do
3921+ for ac_exec_ext in '' $ac_executable_extensions; do
3922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3923 ac_cv_prog_ac_ct_CC="gcc"
3924- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3925+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3926 break 2
3927 fi
3928 done
3929-done
3930+ done
3931 IFS=$as_save_IFS
3932
3933 fi
3934 fi
3935 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3936 if test -n "$ac_ct_CC"; then
3937- { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3938-echo "${ECHO_T}$ac_ct_CC" >&6; }
3939+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3940+$as_echo "$ac_ct_CC" >&6; }
3941 else
3942- { echo "$as_me:$LINENO: result: no" >&5
3943-echo "${ECHO_T}no" >&6; }
3944+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3945+$as_echo "no" >&6; }
3946 fi
3947
3948 if test "x$ac_ct_CC" = x; then
3949@@ -2398,12 +3488,8 @@ fi
3950 else
3951 case $cross_compiling:$ac_tool_warned in
3952 yes:)
3953-{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3954-whose name does not start with the host triplet. If you think this
3955-configuration is useful to you, please write to autoconf@gnu.org." >&5
3956-echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3957-whose name does not start with the host triplet. If you think this
3958-configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3959+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3960+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3961 ac_tool_warned=yes ;;
3962 esac
3963 CC=$ac_ct_CC
3964@@ -2416,10 +3502,10 @@ if test -z "$CC"; then
3965 if test -n "$ac_tool_prefix"; then
3966 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3967 set dummy ${ac_tool_prefix}cc; ac_word=$2
3968-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3969-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3970-if test "${ac_cv_prog_CC+set}" = set; then
3971- echo $ECHO_N "(cached) $ECHO_C" >&6
3972+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3973+$as_echo_n "checking for $ac_word... " >&6; }
3974+if ${ac_cv_prog_CC+:} false; then :
3975+ $as_echo_n "(cached) " >&6
3976 else
3977 if test -n "$CC"; then
3978 ac_cv_prog_CC="$CC" # Let the user override the test.
3979@@ -2429,25 +3515,25 @@ for as_dir in $PATH
3980 do
3981 IFS=$as_save_IFS
3982 test -z "$as_dir" && as_dir=.
3983- for ac_exec_ext in '' $ac_executable_extensions; do
3984+ for ac_exec_ext in '' $ac_executable_extensions; do
3985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3986 ac_cv_prog_CC="${ac_tool_prefix}cc"
3987- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3988+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3989 break 2
3990 fi
3991 done
3992-done
3993+ done
3994 IFS=$as_save_IFS
3995
3996 fi
3997 fi
3998 CC=$ac_cv_prog_CC
3999 if test -n "$CC"; then
4000- { echo "$as_me:$LINENO: result: $CC" >&5
4001-echo "${ECHO_T}$CC" >&6; }
4002+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4003+$as_echo "$CC" >&6; }
4004 else
4005- { echo "$as_me:$LINENO: result: no" >&5
4006-echo "${ECHO_T}no" >&6; }
4007+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4008+$as_echo "no" >&6; }
4009 fi
4010
4011
4012@@ -2456,10 +3542,10 @@ fi
4013 if test -z "$CC"; then
4014 # Extract the first word of "cc", so it can be a program name with args.
4015 set dummy cc; ac_word=$2
4016-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4017-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4018-if test "${ac_cv_prog_CC+set}" = set; then
4019- echo $ECHO_N "(cached) $ECHO_C" >&6
4020+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4021+$as_echo_n "checking for $ac_word... " >&6; }
4022+if ${ac_cv_prog_CC+:} false; then :
4023+ $as_echo_n "(cached) " >&6
4024 else
4025 if test -n "$CC"; then
4026 ac_cv_prog_CC="$CC" # Let the user override the test.
4027@@ -2470,18 +3556,18 @@ for as_dir in $PATH
4028 do
4029 IFS=$as_save_IFS
4030 test -z "$as_dir" && as_dir=.
4031- for ac_exec_ext in '' $ac_executable_extensions; do
4032+ for ac_exec_ext in '' $ac_executable_extensions; do
4033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4034 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4035 ac_prog_rejected=yes
4036 continue
4037 fi
4038 ac_cv_prog_CC="cc"
4039- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4040+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4041 break 2
4042 fi
4043 done
4044-done
4045+ done
4046 IFS=$as_save_IFS
4047
4048 if test $ac_prog_rejected = yes; then
4049@@ -2500,11 +3586,11 @@ fi
4050 fi
4051 CC=$ac_cv_prog_CC
4052 if test -n "$CC"; then
4053- { echo "$as_me:$LINENO: result: $CC" >&5
4054-echo "${ECHO_T}$CC" >&6; }
4055+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4056+$as_echo "$CC" >&6; }
4057 else
4058- { echo "$as_me:$LINENO: result: no" >&5
4059-echo "${ECHO_T}no" >&6; }
4060+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4061+$as_echo "no" >&6; }
4062 fi
4063
4064
4065@@ -2515,10 +3601,10 @@ if test -z "$CC"; then
4066 do
4067 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4068 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4069-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4070-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4071-if test "${ac_cv_prog_CC+set}" = set; then
4072- echo $ECHO_N "(cached) $ECHO_C" >&6
4073+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4074+$as_echo_n "checking for $ac_word... " >&6; }
4075+if ${ac_cv_prog_CC+:} false; then :
4076+ $as_echo_n "(cached) " >&6
4077 else
4078 if test -n "$CC"; then
4079 ac_cv_prog_CC="$CC" # Let the user override the test.
4080@@ -2528,25 +3614,25 @@ for as_dir in $PATH
4081 do
4082 IFS=$as_save_IFS
4083 test -z "$as_dir" && as_dir=.
4084- for ac_exec_ext in '' $ac_executable_extensions; do
4085+ for ac_exec_ext in '' $ac_executable_extensions; do
4086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4087 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4088- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4089+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4090 break 2
4091 fi
4092 done
4093-done
4094+ done
4095 IFS=$as_save_IFS
4096
4097 fi
4098 fi
4099 CC=$ac_cv_prog_CC
4100 if test -n "$CC"; then
4101- { echo "$as_me:$LINENO: result: $CC" >&5
4102-echo "${ECHO_T}$CC" >&6; }
4103+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4104+$as_echo "$CC" >&6; }
4105 else
4106- { echo "$as_me:$LINENO: result: no" >&5
4107-echo "${ECHO_T}no" >&6; }
4108+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4109+$as_echo "no" >&6; }
4110 fi
4111
4112
4113@@ -2559,10 +3645,10 @@ if test -z "$CC"; then
4114 do
4115 # Extract the first word of "$ac_prog", so it can be a program name with args.
4116 set dummy $ac_prog; ac_word=$2
4117-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4118-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4119-if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4120- echo $ECHO_N "(cached) $ECHO_C" >&6
4121+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4122+$as_echo_n "checking for $ac_word... " >&6; }
4123+if ${ac_cv_prog_ac_ct_CC+:} false; then :
4124+ $as_echo_n "(cached) " >&6
4125 else
4126 if test -n "$ac_ct_CC"; then
4127 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4128@@ -2572,25 +3658,25 @@ for as_dir in $PATH
4129 do
4130 IFS=$as_save_IFS
4131 test -z "$as_dir" && as_dir=.
4132- for ac_exec_ext in '' $ac_executable_extensions; do
4133+ for ac_exec_ext in '' $ac_executable_extensions; do
4134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4135 ac_cv_prog_ac_ct_CC="$ac_prog"
4136- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4137+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4138 break 2
4139 fi
4140 done
4141-done
4142+ done
4143 IFS=$as_save_IFS
4144
4145 fi
4146 fi
4147 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4148 if test -n "$ac_ct_CC"; then
4149- { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4150-echo "${ECHO_T}$ac_ct_CC" >&6; }
4151+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4152+$as_echo "$ac_ct_CC" >&6; }
4153 else
4154- { echo "$as_me:$LINENO: result: no" >&5
4155-echo "${ECHO_T}no" >&6; }
4156+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4157+$as_echo "no" >&6; }
4158 fi
4159
4160
4161@@ -2602,12 +3688,8 @@ done
4162 else
4163 case $cross_compiling:$ac_tool_warned in
4164 yes:)
4165-{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4166-whose name does not start with the host triplet. If you think this
4167-configuration is useful to you, please write to autoconf@gnu.org." >&5
4168-echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4169-whose name does not start with the host triplet. If you think this
4170-configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4171+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4172+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4173 ac_tool_warned=yes ;;
4174 esac
4175 CC=$ac_ct_CC
4176@@ -2617,51 +3699,37 @@ fi
4177 fi
4178
4179
4180-test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4181-See \`config.log' for more details." >&5
4182-echo "$as_me: error: no acceptable C compiler found in \$PATH
4183-See \`config.log' for more details." >&2;}
4184- { (exit 1); exit 1; }; }
4185+test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4186+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4187+as_fn_error $? "no acceptable C compiler found in \$PATH
4188+See \`config.log' for more details" "$LINENO" 5; }
4189
4190 # Provide some information about the compiler.
4191-echo "$as_me:$LINENO: checking for C compiler version" >&5
4192-ac_compiler=`set X $ac_compile; echo $2`
4193-{ (ac_try="$ac_compiler --version >&5"
4194-case "(($ac_try" in
4195- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4196- *) ac_try_echo=$ac_try;;
4197-esac
4198-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4199- (eval "$ac_compiler --version >&5") 2>&5
4200- ac_status=$?
4201- echo "$as_me:$LINENO: \$? = $ac_status" >&5
4202- (exit $ac_status); }
4203-{ (ac_try="$ac_compiler -v >&5"
4204+$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4205+set X $ac_compile
4206+ac_compiler=$2
4207+for ac_option in --version -v -V -qversion; do
4208+ { { ac_try="$ac_compiler $ac_option >&5"
4209 case "(($ac_try" in
4210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4211 *) ac_try_echo=$ac_try;;
4212 esac
4213-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4214- (eval "$ac_compiler -v >&5") 2>&5
4215+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4216+$as_echo "$ac_try_echo"; } >&5
4217+ (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4218 ac_status=$?
4219- echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220- (exit $ac_status); }
4221-{ (ac_try="$ac_compiler -V >&5"
4222-case "(($ac_try" in
4223- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4224- *) ac_try_echo=$ac_try;;
4225-esac
4226-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4227- (eval "$ac_compiler -V >&5") 2>&5
4228- ac_status=$?
4229- echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230- (exit $ac_status); }
4231+ if test -s conftest.err; then
4232+ sed '10a\
4233+... rest of stderr output deleted ...
4234+ 10q' conftest.err >conftest.er1
4235+ cat conftest.er1 >&5
4236+ fi
4237+ rm -f conftest.er1 conftest.err
4238+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4239+ test $ac_status = 0; }
4240+done
4241
4242-cat >conftest.$ac_ext <<_ACEOF
4243-/* confdefs.h. */
4244-_ACEOF
4245-cat confdefs.h >>conftest.$ac_ext
4246-cat >>conftest.$ac_ext <<_ACEOF
4247+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4248 /* end confdefs.h. */
4249
4250 int
4251@@ -2673,42 +3741,38 @@ main ()
4252 }
4253 _ACEOF
4254 ac_clean_files_save=$ac_clean_files
4255-ac_clean_files="$ac_clean_files a.out a.exe b.out"
4256+ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4257 # Try to create an executable without -o first, disregard a.out.
4258 # It will help us diagnose broken compilers, and finding out an intuition
4259 # of exeext.
4260-{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4261-echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
4262-ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4263-#
4264-# List of possible output files, starting from the most likely.
4265-# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
4266-# only as a last resort. b.out is created by i960 compilers.
4267-ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
4268-#
4269-# The IRIX 6 linker writes into existing files which may not be
4270-# executable, retaining their permissions. Remove them first so a
4271-# subsequent execution test works.
4272+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4273+$as_echo_n "checking whether the C compiler works... " >&6; }
4274+ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4275+
4276+# The possible output files:
4277+ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4278+
4279 ac_rmfiles=
4280 for ac_file in $ac_files
4281 do
4282 case $ac_file in
4283- *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
4284+ *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4285 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4286 esac
4287 done
4288 rm -f $ac_rmfiles
4289
4290-if { (ac_try="$ac_link_default"
4291+if { { ac_try="$ac_link_default"
4292 case "(($ac_try" in
4293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4294 *) ac_try_echo=$ac_try;;
4295 esac
4296-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4297+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4298+$as_echo "$ac_try_echo"; } >&5
4299 (eval "$ac_link_default") 2>&5
4300 ac_status=$?
4301- echo "$as_me:$LINENO: \$? = $ac_status" >&5
4302- (exit $ac_status); }; then
4303+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4304+ test $ac_status = 0; }; then :
4305 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4306 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4307 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4308@@ -2718,14 +3782,14 @@ for ac_file in $ac_files ''
4309 do
4310 test -f "$ac_file" || continue
4311 case $ac_file in
4312- *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
4313+ *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4314 ;;
4315 [ab].out )
4316 # We found the default executable, but exeext='' is most
4317 # certainly right.
4318 break;;
4319 *.* )
4320- if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4321+ if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4322 then :; else
4323 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4324 fi
4325@@ -2744,78 +3808,41 @@ test "$ac_cv_exeext" = no && ac_cv_exeex
4326 else
4327 ac_file=''
4328 fi
4329-
4330-{ echo "$as_me:$LINENO: result: $ac_file" >&5
4331-echo "${ECHO_T}$ac_file" >&6; }
4332-if test -z "$ac_file"; then
4333- echo "$as_me: failed program was:" >&5
4334-sed 's/^/| /' conftest.$ac_ext >&5
4335-
4336-{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
4337-See \`config.log' for more details." >&5
4338-echo "$as_me: error: C compiler cannot create executables
4339-See \`config.log' for more details." >&2;}
4340- { (exit 77); exit 77; }; }
4341-fi
4342-
4343+if test -z "$ac_file"; then :
4344+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4345+$as_echo "no" >&6; }
4346+$as_echo "$as_me: failed program was:" >&5
4347+sed 's/^/| /' conftest.$ac_ext >&5
4348+
4349+{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4350+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4351+as_fn_error 77 "C compiler cannot create executables
4352+See \`config.log' for more details" "$LINENO" 5; }
4353+else
4354+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4355+$as_echo "yes" >&6; }
4356+fi
4357+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4358+$as_echo_n "checking for C compiler default output file name... " >&6; }
4359+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4360+$as_echo "$ac_file" >&6; }
4361 ac_exeext=$ac_cv_exeext
4362
4363-# Check that the compiler produces executables we can run. If not, either
4364-# the compiler is broken, or we cross compile.
4365-{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4366-echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
4367-# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4368-# If not cross compiling, check that we can run a simple program.
4369-if test "$cross_compiling" != yes; then
4370- if { ac_try='./$ac_file'
4371- { (case "(($ac_try" in
4372- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4373- *) ac_try_echo=$ac_try;;
4374-esac
4375-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4376- (eval "$ac_try") 2>&5
4377- ac_status=$?
4378- echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379- (exit $ac_status); }; }; then
4380- cross_compiling=no
4381- else
4382- if test "$cross_compiling" = maybe; then
4383- cross_compiling=yes
4384- else
4385- { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4386-If you meant to cross compile, use \`--host'.
4387-See \`config.log' for more details." >&5
4388-echo "$as_me: error: cannot run C compiled programs.
4389-If you meant to cross compile, use \`--host'.
4390-See \`config.log' for more details." >&2;}
4391- { (exit 1); exit 1; }; }
4392- fi
4393- fi
4394-fi
4395-{ echo "$as_me:$LINENO: result: yes" >&5
4396-echo "${ECHO_T}yes" >&6; }
4397-
4398-rm -f a.out a.exe conftest$ac_cv_exeext b.out
4399+rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4400 ac_clean_files=$ac_clean_files_save
4401-# Check that the compiler produces executables we can run. If not, either
4402-# the compiler is broken, or we cross compile.
4403-{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4404-echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
4405-{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
4406-echo "${ECHO_T}$cross_compiling" >&6; }
4407-
4408-{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
4409-echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
4410-if { (ac_try="$ac_link"
4411+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4412+$as_echo_n "checking for suffix of executables... " >&6; }
4413+if { { ac_try="$ac_link"
4414 case "(($ac_try" in
4415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4416 *) ac_try_echo=$ac_try;;
4417 esac
4418-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4419+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4420+$as_echo "$ac_try_echo"; } >&5
4421 (eval "$ac_link") 2>&5
4422 ac_status=$?
4423- echo "$as_me:$LINENO: \$? = $ac_status" >&5
4424- (exit $ac_status); }; then
4425+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4426+ test $ac_status = 0; }; then :
4427 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4428 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4429 # work properly (i.e., refer to `conftest.exe'), while it won't with
4430@@ -2823,37 +3850,90 @@ eval "echo \"\$as_me:$LINENO: $ac_try_ec
4431 for ac_file in conftest.exe conftest conftest.*; do
4432 test -f "$ac_file" || continue
4433 case $ac_file in
4434- *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
4435+ *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4436 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4437 break;;
4438 * ) break;;
4439 esac
4440 done
4441 else
4442- { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4443-See \`config.log' for more details." >&5
4444-echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4445-See \`config.log' for more details." >&2;}
4446- { (exit 1); exit 1; }; }
4447-fi
4448-
4449-rm -f conftest$ac_cv_exeext
4450-{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4451-echo "${ECHO_T}$ac_cv_exeext" >&6; }
4452+ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4453+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4454+as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4455+See \`config.log' for more details" "$LINENO" 5; }
4456+fi
4457+rm -f conftest conftest$ac_cv_exeext
4458+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4459+$as_echo "$ac_cv_exeext" >&6; }
4460
4461 rm -f conftest.$ac_ext
4462 EXEEXT=$ac_cv_exeext
4463 ac_exeext=$EXEEXT
4464-{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
4465-echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
4466-if test "${ac_cv_objext+set}" = set; then
4467- echo $ECHO_N "(cached) $ECHO_C" >&6
4468-else
4469- cat >conftest.$ac_ext <<_ACEOF
4470-/* confdefs.h. */
4471+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4472+/* end confdefs.h. */
4473+#include <stdio.h>
4474+int
4475+main ()
4476+{
4477+FILE *f = fopen ("conftest.out", "w");
4478+ return ferror (f) || fclose (f) != 0;
4479+
4480+ ;
4481+ return 0;
4482+}
4483 _ACEOF
4484-cat confdefs.h >>conftest.$ac_ext
4485-cat >>conftest.$ac_ext <<_ACEOF
4486+ac_clean_files="$ac_clean_files conftest.out"
4487+# Check that the compiler produces executables we can run. If not, either
4488+# the compiler is broken, or we cross compile.
4489+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4490+$as_echo_n "checking whether we are cross compiling... " >&6; }
4491+if test "$cross_compiling" != yes; then
4492+ { { ac_try="$ac_link"
4493+case "(($ac_try" in
4494+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4495+ *) ac_try_echo=$ac_try;;
4496+esac
4497+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4498+$as_echo "$ac_try_echo"; } >&5
4499+ (eval "$ac_link") 2>&5
4500+ ac_status=$?
4501+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4502+ test $ac_status = 0; }
4503+ if { ac_try='./conftest$ac_cv_exeext'
4504+ { { case "(($ac_try" in
4505+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4506+ *) ac_try_echo=$ac_try;;
4507+esac
4508+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4509+$as_echo "$ac_try_echo"; } >&5
4510+ (eval "$ac_try") 2>&5
4511+ ac_status=$?
4512+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4513+ test $ac_status = 0; }; }; then
4514+ cross_compiling=no
4515+ else
4516+ if test "$cross_compiling" = maybe; then
4517+ cross_compiling=yes
4518+ else
4519+ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4520+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4521+as_fn_error $? "cannot run C compiled programs.
4522+If you meant to cross compile, use \`--host'.
4523+See \`config.log' for more details" "$LINENO" 5; }
4524+ fi
4525+ fi
4526+fi
4527+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4528+$as_echo "$cross_compiling" >&6; }
4529+
4530+rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4531+ac_clean_files=$ac_clean_files_save
4532+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4533+$as_echo_n "checking for suffix of object files... " >&6; }
4534+if ${ac_cv_objext+:} false; then :
4535+ $as_echo_n "(cached) " >&6
4536+else
4537+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4538 /* end confdefs.h. */
4539
4540 int
4541@@ -2865,51 +3945,46 @@ main ()
4542 }
4543 _ACEOF
4544 rm -f conftest.o conftest.obj
4545-if { (ac_try="$ac_compile"
4546+if { { ac_try="$ac_compile"
4547 case "(($ac_try" in
4548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4549 *) ac_try_echo=$ac_try;;
4550 esac
4551-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4552+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4553+$as_echo "$ac_try_echo"; } >&5
4554 (eval "$ac_compile") 2>&5
4555 ac_status=$?
4556- echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557- (exit $ac_status); }; then
4558+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4559+ test $ac_status = 0; }; then :
4560 for ac_file in conftest.o conftest.obj conftest.*; do
4561 test -f "$ac_file" || continue;
4562 case $ac_file in
4563- *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
4564+ *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4565 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4566 break;;
4567 esac
4568 done
4569 else
4570- echo "$as_me: failed program was:" >&5
4571+ $as_echo "$as_me: failed program was:" >&5
4572 sed 's/^/| /' conftest.$ac_ext >&5
4573
4574-{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4575-See \`config.log' for more details." >&5
4576-echo "$as_me: error: cannot compute suffix of object files: cannot compile
4577-See \`config.log' for more details." >&2;}
4578- { (exit 1); exit 1; }; }
4579+{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4580+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4581+as_fn_error $? "cannot compute suffix of object files: cannot compile
4582+See \`config.log' for more details" "$LINENO" 5; }
4583 fi
4584-
4585 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4586 fi
4587-{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4588-echo "${ECHO_T}$ac_cv_objext" >&6; }
4589+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4590+$as_echo "$ac_cv_objext" >&6; }
4591 OBJEXT=$ac_cv_objext
4592 ac_objext=$OBJEXT
4593-{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4594-echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4595-if test "${ac_cv_c_compiler_gnu+set}" = set; then
4596- echo $ECHO_N "(cached) $ECHO_C" >&6
4597+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4598+$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4599+if ${ac_cv_c_compiler_gnu+:} false; then :
4600+ $as_echo_n "(cached) " >&6
4601 else
4602- cat >conftest.$ac_ext <<_ACEOF
4603-/* confdefs.h. */
4604-_ACEOF
4605-cat confdefs.h >>conftest.$ac_ext
4606-cat >>conftest.$ac_ext <<_ACEOF
4607+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4608 /* end confdefs.h. */
4609
4610 int
4611@@ -2923,54 +3998,34 @@ main ()
4612 return 0;
4613 }
4614 _ACEOF
4615-rm -f conftest.$ac_objext
4616-if { (ac_try="$ac_compile"
4617-case "(($ac_try" in
4618- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4619- *) ac_try_echo=$ac_try;;
4620-esac
4621-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4622- (eval "$ac_compile") 2>conftest.er1
4623- ac_status=$?
4624- grep -v '^ *+' conftest.er1 >conftest.err
4625- rm -f conftest.er1
4626- cat conftest.err >&5
4627- echo "$as_me:$LINENO: \$? = $ac_status" >&5
4628- (exit $ac_status); } && {
4629- test -z "$ac_c_werror_flag" ||
4630- test ! -s conftest.err
4631- } && test -s conftest.$ac_objext; then
4632+if ac_fn_c_try_compile "$LINENO"; then :
4633 ac_compiler_gnu=yes
4634 else
4635- echo "$as_me: failed program was:" >&5
4636-sed 's/^/| /' conftest.$ac_ext >&5
4637-
4638- ac_compiler_gnu=no
4639+ ac_compiler_gnu=no
4640 fi
4641-
4642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4643 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4644
4645 fi
4646-{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4647-echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4648-GCC=`test $ac_compiler_gnu = yes && echo yes`
4649+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4650+$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4651+if test $ac_compiler_gnu = yes; then
4652+ GCC=yes
4653+else
4654+ GCC=
4655+fi
4656 ac_test_CFLAGS=${CFLAGS+set}
4657 ac_save_CFLAGS=$CFLAGS
4658-{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4659-echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4660-if test "${ac_cv_prog_cc_g+set}" = set; then
4661- echo $ECHO_N "(cached) $ECHO_C" >&6
4662+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4663+$as_echo_n "checking whether $CC accepts -g... " >&6; }
4664+if ${ac_cv_prog_cc_g+:} false; then :
4665+ $as_echo_n "(cached) " >&6
4666 else
4667 ac_save_c_werror_flag=$ac_c_werror_flag
4668 ac_c_werror_flag=yes
4669 ac_cv_prog_cc_g=no
4670 CFLAGS="-g"
4671- cat >conftest.$ac_ext <<_ACEOF
4672-/* confdefs.h. */
4673-_ACEOF
4674-cat confdefs.h >>conftest.$ac_ext
4675-cat >>conftest.$ac_ext <<_ACEOF
4676+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4677 /* end confdefs.h. */
4678
4679 int
4680@@ -2981,34 +4036,11 @@ main ()
4681 return 0;
4682 }
4683 _ACEOF
4684-rm -f conftest.$ac_objext
4685-if { (ac_try="$ac_compile"
4686-case "(($ac_try" in
4687- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4688- *) ac_try_echo=$ac_try;;
4689-esac
4690-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4691- (eval "$ac_compile") 2>conftest.er1
4692- ac_status=$?
4693- grep -v '^ *+' conftest.er1 >conftest.err
4694- rm -f conftest.er1
4695- cat conftest.err >&5
4696- echo "$as_me:$LINENO: \$? = $ac_status" >&5
4697- (exit $ac_status); } && {
4698- test -z "$ac_c_werror_flag" ||
4699- test ! -s conftest.err
4700- } && test -s conftest.$ac_objext; then
4701+if ac_fn_c_try_compile "$LINENO"; then :
4702 ac_cv_prog_cc_g=yes
4703 else
4704- echo "$as_me: failed program was:" >&5
4705-sed 's/^/| /' conftest.$ac_ext >&5
4706-
4707- CFLAGS=""
4708- cat >conftest.$ac_ext <<_ACEOF
4709-/* confdefs.h. */
4710-_ACEOF
4711-cat confdefs.h >>conftest.$ac_ext
4712-cat >>conftest.$ac_ext <<_ACEOF
4713+ CFLAGS=""
4714+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4715 /* end confdefs.h. */
4716
4717 int
4718@@ -3019,35 +4051,12 @@ main ()
4719 return 0;
4720 }
4721 _ACEOF
4722-rm -f conftest.$ac_objext
4723-if { (ac_try="$ac_compile"
4724-case "(($ac_try" in
4725- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4726- *) ac_try_echo=$ac_try;;
4727-esac
4728-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4729- (eval "$ac_compile") 2>conftest.er1
4730- ac_status=$?
4731- grep -v '^ *+' conftest.er1 >conftest.err
4732- rm -f conftest.er1
4733- cat conftest.err >&5
4734- echo "$as_me:$LINENO: \$? = $ac_status" >&5
4735- (exit $ac_status); } && {
4736- test -z "$ac_c_werror_flag" ||
4737- test ! -s conftest.err
4738- } && test -s conftest.$ac_objext; then
4739- :
4740-else
4741- echo "$as_me: failed program was:" >&5
4742-sed 's/^/| /' conftest.$ac_ext >&5
4743+if ac_fn_c_try_compile "$LINENO"; then :
4744
4745- ac_c_werror_flag=$ac_save_c_werror_flag
4746+else
4747+ ac_c_werror_flag=$ac_save_c_werror_flag
4748 CFLAGS="-g"
4749- cat >conftest.$ac_ext <<_ACEOF
4750-/* confdefs.h. */
4751-_ACEOF
4752-cat confdefs.h >>conftest.$ac_ext
4753-cat >>conftest.$ac_ext <<_ACEOF
4754+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4755 /* end confdefs.h. */
4756
4757 int
4758@@ -3058,42 +4067,18 @@ main ()
4759 return 0;
4760 }
4761 _ACEOF
4762-rm -f conftest.$ac_objext
4763-if { (ac_try="$ac_compile"
4764-case "(($ac_try" in
4765- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4766- *) ac_try_echo=$ac_try;;
4767-esac
4768-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4769- (eval "$ac_compile") 2>conftest.er1
4770- ac_status=$?
4771- grep -v '^ *+' conftest.er1 >conftest.err
4772- rm -f conftest.er1
4773- cat conftest.err >&5
4774- echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775- (exit $ac_status); } && {
4776- test -z "$ac_c_werror_flag" ||
4777- test ! -s conftest.err
4778- } && test -s conftest.$ac_objext; then
4779+if ac_fn_c_try_compile "$LINENO"; then :
4780 ac_cv_prog_cc_g=yes
4781-else
4782- echo "$as_me: failed program was:" >&5
4783-sed 's/^/| /' conftest.$ac_ext >&5
4784-
4785-
4786 fi
4787-
4788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4789 fi
4790-
4791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4792 fi
4793-
4794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4795 ac_c_werror_flag=$ac_save_c_werror_flag
4796 fi
4797-{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4798-echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4799+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4800+$as_echo "$ac_cv_prog_cc_g" >&6; }
4801 if test "$ac_test_CFLAGS" = set; then
4802 CFLAGS=$ac_save_CFLAGS
4803 elif test $ac_cv_prog_cc_g = yes; then
4804@@ -3109,18 +4094,14 @@ else
4805 CFLAGS=
4806 fi
4807 fi
4808-{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4809-echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4810-if test "${ac_cv_prog_cc_c89+set}" = set; then
4811- echo $ECHO_N "(cached) $ECHO_C" >&6
4812+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4813+$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4814+if ${ac_cv_prog_cc_c89+:} false; then :
4815+ $as_echo_n "(cached) " >&6
4816 else
4817 ac_cv_prog_cc_c89=no
4818 ac_save_CC=$CC
4819-cat >conftest.$ac_ext <<_ACEOF
4820-/* confdefs.h. */
4821-_ACEOF
4822-cat confdefs.h >>conftest.$ac_ext
4823-cat >>conftest.$ac_ext <<_ACEOF
4824+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4825 /* end confdefs.h. */
4826 #include <stdarg.h>
4827 #include <stdio.h>
4828@@ -3177,31 +4158,9 @@ for ac_arg in '' -qlanglvl=extc89 -qlang
4829 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4830 do
4831 CC="$ac_save_CC $ac_arg"
4832- rm -f conftest.$ac_objext
4833-if { (ac_try="$ac_compile"
4834-case "(($ac_try" in
4835- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4836- *) ac_try_echo=$ac_try;;
4837-esac
4838-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4839- (eval "$ac_compile") 2>conftest.er1
4840- ac_status=$?
4841- grep -v '^ *+' conftest.er1 >conftest.err
4842- rm -f conftest.er1
4843- cat conftest.err >&5
4844- echo "$as_me:$LINENO: \$? = $ac_status" >&5
4845- (exit $ac_status); } && {
4846- test -z "$ac_c_werror_flag" ||
4847- test ! -s conftest.err
4848- } && test -s conftest.$ac_objext; then
4849+ if ac_fn_c_try_compile "$LINENO"; then :
4850 ac_cv_prog_cc_c89=$ac_arg
4851-else
4852- echo "$as_me: failed program was:" >&5
4853-sed 's/^/| /' conftest.$ac_ext >&5
4854-
4855-
4856 fi
4857-
4858 rm -f core conftest.err conftest.$ac_objext
4859 test "x$ac_cv_prog_cc_c89" != "xno" && break
4860 done
4861@@ -3212,17 +4171,19 @@ fi
4862 # AC_CACHE_VAL
4863 case "x$ac_cv_prog_cc_c89" in
4864 x)
4865- { echo "$as_me:$LINENO: result: none needed" >&5
4866-echo "${ECHO_T}none needed" >&6; } ;;
4867+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4868+$as_echo "none needed" >&6; } ;;
4869 xno)
4870- { echo "$as_me:$LINENO: result: unsupported" >&5
4871-echo "${ECHO_T}unsupported" >&6; } ;;
4872+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4873+$as_echo "unsupported" >&6; } ;;
4874 *)
4875 CC="$CC $ac_cv_prog_cc_c89"
4876- { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4877-echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4878+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4879+$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4880 esac
4881+if test "x$ac_cv_prog_cc_c89" != xno; then :
4882
4883+fi
4884
4885 ac_ext=c
4886 ac_cpp='$CPP $CPPFLAGS'
4887@@ -3233,11 +4194,11 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
4888
4889
4890
4891-{ echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5
4892-echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6; }
4893+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-cxx-main=<compiler>" >&5
4894+$as_echo_n "checking for --with-cxx-main=<compiler>... " >&6; }
4895
4896 # Check whether --with-cxx_main was given.
4897-if test "${with_cxx_main+set}" = set; then
4898+if test "${with_cxx_main+set}" = set; then :
4899 withval=$with_cxx_main;
4900
4901 case $withval in
4902@@ -3259,8 +4220,8 @@ else
4903
4904 fi
4905
4906-{ echo "$as_me:$LINENO: result: $with_cxx_main" >&5
4907-echo "${ECHO_T}$with_cxx_main" >&6; }
4908+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_cxx_main" >&5
4909+$as_echo "$with_cxx_main" >&6; }
4910
4911 preset_cxx="$CXX"
4912 if test -z "$CXX"
4913@@ -3268,10 +4229,10 @@ then
4914 case "$CC" in
4915 gcc) # Extract the first word of "g++", so it can be a program name with args.
4916 set dummy g++; ac_word=$2
4917-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4918-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4919-if test "${ac_cv_path_CXX+set}" = set; then
4920- echo $ECHO_N "(cached) $ECHO_C" >&6
4921+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4922+$as_echo_n "checking for $ac_word... " >&6; }
4923+if ${ac_cv_path_CXX+:} false; then :
4924+ $as_echo_n "(cached) " >&6
4925 else
4926 case $CXX in
4927 [\\/]* | ?:[\\/]*)
4928@@ -3283,14 +4244,14 @@ for as_dir in notfound
4929 do
4930 IFS=$as_save_IFS
4931 test -z "$as_dir" && as_dir=.
4932- for ac_exec_ext in '' $ac_executable_extensions; do
4933+ for ac_exec_ext in '' $ac_executable_extensions; do
4934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4935 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4936- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4937+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4938 break 2
4939 fi
4940 done
4941-done
4942+ done
4943 IFS=$as_save_IFS
4944
4945 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="g++"
4946@@ -3299,20 +4260,20 @@ esac
4947 fi
4948 CXX=$ac_cv_path_CXX
4949 if test -n "$CXX"; then
4950- { echo "$as_me:$LINENO: result: $CXX" >&5
4951-echo "${ECHO_T}$CXX" >&6; }
4952+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4953+$as_echo "$CXX" >&6; }
4954 else
4955- { echo "$as_me:$LINENO: result: no" >&5
4956-echo "${ECHO_T}no" >&6; }
4957+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4958+$as_echo "no" >&6; }
4959 fi
4960
4961 ;;
4962 cc) # Extract the first word of "c++", so it can be a program name with args.
4963 set dummy c++; ac_word=$2
4964-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4965-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4966-if test "${ac_cv_path_CXX+set}" = set; then
4967- echo $ECHO_N "(cached) $ECHO_C" >&6
4968+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4969+$as_echo_n "checking for $ac_word... " >&6; }
4970+if ${ac_cv_path_CXX+:} false; then :
4971+ $as_echo_n "(cached) " >&6
4972 else
4973 case $CXX in
4974 [\\/]* | ?:[\\/]*)
4975@@ -3324,14 +4285,14 @@ for as_dir in notfound
4976 do
4977 IFS=$as_save_IFS
4978 test -z "$as_dir" && as_dir=.
4979- for ac_exec_ext in '' $ac_executable_extensions; do
4980+ for ac_exec_ext in '' $ac_executable_extensions; do
4981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4982 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4983- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4984+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4985 break 2
4986 fi
4987 done
4988-done
4989+ done
4990 IFS=$as_save_IFS
4991
4992 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="c++"
4993@@ -3340,11 +4301,11 @@ esac
4994 fi
4995 CXX=$ac_cv_path_CXX
4996 if test -n "$CXX"; then
4997- { echo "$as_me:$LINENO: result: $CXX" >&5
4998-echo "${ECHO_T}$CXX" >&6; }
4999+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5000+$as_echo "$CXX" >&6; }
5001 else
5002- { echo "$as_me:$LINENO: result: no" >&5
5003-echo "${ECHO_T}no" >&6; }
5004+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5005+$as_echo "no" >&6; }
5006 fi
5007
5008 ;;
5009@@ -3360,10 +4321,10 @@ then
5010 do
5011 # Extract the first word of "$ac_prog", so it can be a program name with args.
5012 set dummy $ac_prog; ac_word=$2
5013-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5014-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5015-if test "${ac_cv_prog_CXX+set}" = set; then
5016- echo $ECHO_N "(cached) $ECHO_C" >&6
5017+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5018+$as_echo_n "checking for $ac_word... " >&6; }
5019+if ${ac_cv_prog_CXX+:} false; then :
5020+ $as_echo_n "(cached) " >&6
5021 else
5022 if test -n "$CXX"; then
5023 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5024@@ -3373,25 +4334,25 @@ for as_dir in $PATH
5025 do
5026 IFS=$as_save_IFS
5027 test -z "$as_dir" && as_dir=.
5028- for ac_exec_ext in '' $ac_executable_extensions; do
5029+ for ac_exec_ext in '' $ac_executable_extensions; do
5030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5031 ac_cv_prog_CXX="$ac_prog"
5032- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5033+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5034 break 2
5035 fi
5036 done
5037-done
5038+ done
5039 IFS=$as_save_IFS
5040
5041 fi
5042 fi
5043 CXX=$ac_cv_prog_CXX
5044 if test -n "$CXX"; then
5045- { echo "$as_me:$LINENO: result: $CXX" >&5
5046-echo "${ECHO_T}$CXX" >&6; }
5047+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5048+$as_echo "$CXX" >&6; }
5049 else
5050- { echo "$as_me:$LINENO: result: no" >&5
5051-echo "${ECHO_T}no" >&6; }
5052+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5053+$as_echo "no" >&6; }
5054 fi
5055
5056
5057@@ -3406,12 +4367,12 @@ test -n "$CXX" || CXX="notfound"
5058 fi
5059 if test "$preset_cxx" != "$CXX"
5060 then
5061- { echo "$as_me:$LINENO: WARNING:
5062+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
5063
5064 By default, distutils will build C++ extension modules with \"$CXX\".
5065 If this is not intended, then set CXX on the configure command line.
5066 " >&5
5067-echo "$as_me: WARNING:
5068+$as_echo "$as_me: WARNING:
5069
5070 By default, distutils will build C++ extension modules with \"$CXX\".
5071 If this is not intended, then set CXX on the configure command line.
5072@@ -3426,15 +4387,15 @@ ac_cpp='$CPP $CPPFLAGS'
5073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5076-{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5077-echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5078+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5079+$as_echo_n "checking how to run the C preprocessor... " >&6; }
5080 # On Suns, sometimes $CPP names a directory.
5081 if test -n "$CPP" && test -d "$CPP"; then
5082 CPP=
5083 fi
5084 if test -z "$CPP"; then
5085- if test "${ac_cv_prog_CPP+set}" = set; then
5086- echo $ECHO_N "(cached) $ECHO_C" >&6
5087+ if ${ac_cv_prog_CPP+:} false; then :
5088+ $as_echo_n "(cached) " >&6
5089 else
5090 # Double quotes because CPP needs to be expanded
5091 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5092@@ -3448,11 +4409,7 @@ do
5093 # <limits.h> exists even on freestanding compilers.
5094 # On the NeXT, cc -E runs the code through the compiler's parser,
5095 # not just through cpp. "Syntax error" is here to catch this case.
5096- cat >conftest.$ac_ext <<_ACEOF
5097-/* confdefs.h. */
5098-_ACEOF
5099-cat confdefs.h >>conftest.$ac_ext
5100-cat >>conftest.$ac_ext <<_ACEOF
5101+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5102 /* end confdefs.h. */
5103 #ifdef __STDC__
5104 # include <limits.h>
5105@@ -3461,76 +4418,34 @@ cat >>conftest.$ac_ext <<_ACEOF
5106 #endif
5107 Syntax error
5108 _ACEOF
5109-if { (ac_try="$ac_cpp conftest.$ac_ext"
5110-case "(($ac_try" in
5111- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5112- *) ac_try_echo=$ac_try;;
5113-esac
5114-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5115- (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5116- ac_status=$?
5117- grep -v '^ *+' conftest.er1 >conftest.err
5118- rm -f conftest.er1
5119- cat conftest.err >&5
5120- echo "$as_me:$LINENO: \$? = $ac_status" >&5
5121- (exit $ac_status); } >/dev/null && {
5122- test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5123- test ! -s conftest.err
5124- }; then
5125- :
5126-else
5127- echo "$as_me: failed program was:" >&5
5128-sed 's/^/| /' conftest.$ac_ext >&5
5129+if ac_fn_c_try_cpp "$LINENO"; then :
5130
5131+else
5132 # Broken: fails on valid input.
5133 continue
5134 fi
5135-
5136-rm -f conftest.err conftest.$ac_ext
5137+rm -f conftest.err conftest.i conftest.$ac_ext
5138
5139 # OK, works on sane cases. Now check whether nonexistent headers
5140 # can be detected and how.
5141- cat >conftest.$ac_ext <<_ACEOF
5142-/* confdefs.h. */
5143-_ACEOF
5144-cat confdefs.h >>conftest.$ac_ext
5145-cat >>conftest.$ac_ext <<_ACEOF
5146+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5147 /* end confdefs.h. */
5148 #include <ac_nonexistent.h>
5149 _ACEOF
5150-if { (ac_try="$ac_cpp conftest.$ac_ext"
5151-case "(($ac_try" in
5152- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5153- *) ac_try_echo=$ac_try;;
5154-esac
5155-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5156- (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5157- ac_status=$?
5158- grep -v '^ *+' conftest.er1 >conftest.err
5159- rm -f conftest.er1
5160- cat conftest.err >&5
5161- echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162- (exit $ac_status); } >/dev/null && {
5163- test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5164- test ! -s conftest.err
5165- }; then
5166+if ac_fn_c_try_cpp "$LINENO"; then :
5167 # Broken: success on invalid input.
5168 continue
5169 else
5170- echo "$as_me: failed program was:" >&5
5171-sed 's/^/| /' conftest.$ac_ext >&5
5172-
5173 # Passes both tests.
5174 ac_preproc_ok=:
5175 break
5176 fi
5177-
5178-rm -f conftest.err conftest.$ac_ext
5179+rm -f conftest.err conftest.i conftest.$ac_ext
5180
5181 done
5182 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5183-rm -f conftest.err conftest.$ac_ext
5184-if $ac_preproc_ok; then
5185+rm -f conftest.i conftest.err conftest.$ac_ext
5186+if $ac_preproc_ok; then :
5187 break
5188 fi
5189
5190@@ -3542,8 +4457,8 @@ fi
5191 else
5192 ac_cv_prog_CPP=$CPP
5193 fi
5194-{ echo "$as_me:$LINENO: result: $CPP" >&5
5195-echo "${ECHO_T}$CPP" >&6; }
5196+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5197+$as_echo "$CPP" >&6; }
5198 ac_preproc_ok=false
5199 for ac_c_preproc_warn_flag in '' yes
5200 do
5201@@ -3553,11 +4468,7 @@ do
5202 # <limits.h> exists even on freestanding compilers.
5203 # On the NeXT, cc -E runs the code through the compiler's parser,
5204 # not just through cpp. "Syntax error" is here to catch this case.
5205- cat >conftest.$ac_ext <<_ACEOF
5206-/* confdefs.h. */
5207-_ACEOF
5208-cat confdefs.h >>conftest.$ac_ext
5209-cat >>conftest.$ac_ext <<_ACEOF
5210+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5211 /* end confdefs.h. */
5212 #ifdef __STDC__
5213 # include <limits.h>
5214@@ -3566,83 +4477,40 @@ cat >>conftest.$ac_ext <<_ACEOF
5215 #endif
5216 Syntax error
5217 _ACEOF
5218-if { (ac_try="$ac_cpp conftest.$ac_ext"
5219-case "(($ac_try" in
5220- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5221- *) ac_try_echo=$ac_try;;
5222-esac
5223-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5224- (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5225- ac_status=$?
5226- grep -v '^ *+' conftest.er1 >conftest.err
5227- rm -f conftest.er1
5228- cat conftest.err >&5
5229- echo "$as_me:$LINENO: \$? = $ac_status" >&5
5230- (exit $ac_status); } >/dev/null && {
5231- test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5232- test ! -s conftest.err
5233- }; then
5234- :
5235-else
5236- echo "$as_me: failed program was:" >&5
5237-sed 's/^/| /' conftest.$ac_ext >&5
5238+if ac_fn_c_try_cpp "$LINENO"; then :
5239
5240+else
5241 # Broken: fails on valid input.
5242 continue
5243 fi
5244-
5245-rm -f conftest.err conftest.$ac_ext
5246+rm -f conftest.err conftest.i conftest.$ac_ext
5247
5248 # OK, works on sane cases. Now check whether nonexistent headers
5249 # can be detected and how.
5250- cat >conftest.$ac_ext <<_ACEOF
5251-/* confdefs.h. */
5252-_ACEOF
5253-cat confdefs.h >>conftest.$ac_ext
5254-cat >>conftest.$ac_ext <<_ACEOF
5255+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5256 /* end confdefs.h. */
5257 #include <ac_nonexistent.h>
5258 _ACEOF
5259-if { (ac_try="$ac_cpp conftest.$ac_ext"
5260-case "(($ac_try" in
5261- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5262- *) ac_try_echo=$ac_try;;
5263-esac
5264-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5265- (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5266- ac_status=$?
5267- grep -v '^ *+' conftest.er1 >conftest.err
5268- rm -f conftest.er1
5269- cat conftest.err >&5
5270- echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271- (exit $ac_status); } >/dev/null && {
5272- test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5273- test ! -s conftest.err
5274- }; then
5275+if ac_fn_c_try_cpp "$LINENO"; then :
5276 # Broken: success on invalid input.
5277 continue
5278 else
5279- echo "$as_me: failed program was:" >&5
5280-sed 's/^/| /' conftest.$ac_ext >&5
5281-
5282 # Passes both tests.
5283 ac_preproc_ok=:
5284 break
5285 fi
5286-
5287-rm -f conftest.err conftest.$ac_ext
5288+rm -f conftest.err conftest.i conftest.$ac_ext
5289
5290 done
5291 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5292-rm -f conftest.err conftest.$ac_ext
5293-if $ac_preproc_ok; then
5294- :
5295+rm -f conftest.i conftest.err conftest.$ac_ext
5296+if $ac_preproc_ok; then :
5297+
5298 else
5299- { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5300-See \`config.log' for more details." >&5
5301-echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5302-See \`config.log' for more details." >&2;}
5303- { (exit 1); exit 1; }; }
5304+ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5305+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5306+as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5307+See \`config.log' for more details" "$LINENO" 5; }
5308 fi
5309
5310 ac_ext=c
5311@@ -3652,45 +4520,40 @@ ac_link='$CC -o conftest$ac_exeext $CFLA
5312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5313
5314
5315-{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5316-echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5317-if test "${ac_cv_path_GREP+set}" = set; then
5318- echo $ECHO_N "(cached) $ECHO_C" >&6
5319-else
5320- # Extract the first word of "grep ggrep" to use in msg output
5321-if test -z "$GREP"; then
5322-set dummy grep ggrep; ac_prog_name=$2
5323-if test "${ac_cv_path_GREP+set}" = set; then
5324- echo $ECHO_N "(cached) $ECHO_C" >&6
5325+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5326+$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5327+if ${ac_cv_path_GREP+:} false; then :
5328+ $as_echo_n "(cached) " >&6
5329 else
5330+ if test -z "$GREP"; then
5331 ac_path_GREP_found=false
5332-# Loop through the user's path and test for each of PROGNAME-LIST
5333-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5334+ # Loop through the user's path and test for each of PROGNAME-LIST
5335+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5336 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5337 do
5338 IFS=$as_save_IFS
5339 test -z "$as_dir" && as_dir=.
5340- for ac_prog in grep ggrep; do
5341- for ac_exec_ext in '' $ac_executable_extensions; do
5342- ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5343- { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5344- # Check for GNU ac_path_GREP and select it if it is found.
5345+ for ac_prog in grep ggrep; do
5346+ for ac_exec_ext in '' $ac_executable_extensions; do
5347+ ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5348+ { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5349+# Check for GNU ac_path_GREP and select it if it is found.
5350 # Check for GNU $ac_path_GREP
5351 case `"$ac_path_GREP" --version 2>&1` in
5352 *GNU*)
5353 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5354 *)
5355 ac_count=0
5356- echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5357+ $as_echo_n 0123456789 >"conftest.in"
5358 while :
5359 do
5360 cat "conftest.in" "conftest.in" >"conftest.tmp"
5361 mv "conftest.tmp" "conftest.in"
5362 cp "conftest.in" "conftest.nl"
5363- echo 'GREP' >> "conftest.nl"
5364+ $as_echo 'GREP' >> "conftest.nl"
5365 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5366 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5367- ac_count=`expr $ac_count + 1`
5368+ as_fn_arith $ac_count + 1 && ac_count=$as_val
5369 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5370 # Best one so far, save it but keep looking for a better one
5371 ac_cv_path_GREP="$ac_path_GREP"
5372@@ -3702,77 +4565,61 @@ case `"$ac_path_GREP" --version 2>&1` in
5373 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5374 esac
5375
5376-
5377- $ac_path_GREP_found && break 3
5378+ $ac_path_GREP_found && break 3
5379+ done
5380+ done
5381 done
5382-done
5383-
5384-done
5385 IFS=$as_save_IFS
5386-
5387-
5388-fi
5389-
5390-GREP="$ac_cv_path_GREP"
5391-if test -z "$GREP"; then
5392- { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5393-echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5394- { (exit 1); exit 1; }; }
5395-fi
5396-
5397+ if test -z "$ac_cv_path_GREP"; then
5398+ as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5399+ fi
5400 else
5401 ac_cv_path_GREP=$GREP
5402 fi
5403
5404-
5405 fi
5406-{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5407-echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5408+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5409+$as_echo "$ac_cv_path_GREP" >&6; }
5410 GREP="$ac_cv_path_GREP"
5411
5412
5413-{ echo "$as_me:$LINENO: checking for egrep" >&5
5414-echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5415-if test "${ac_cv_path_EGREP+set}" = set; then
5416- echo $ECHO_N "(cached) $ECHO_C" >&6
5417+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5418+$as_echo_n "checking for egrep... " >&6; }
5419+if ${ac_cv_path_EGREP+:} false; then :
5420+ $as_echo_n "(cached) " >&6
5421 else
5422 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5423 then ac_cv_path_EGREP="$GREP -E"
5424 else
5425- # Extract the first word of "egrep" to use in msg output
5426-if test -z "$EGREP"; then
5427-set dummy egrep; ac_prog_name=$2
5428-if test "${ac_cv_path_EGREP+set}" = set; then
5429- echo $ECHO_N "(cached) $ECHO_C" >&6
5430-else
5431+ if test -z "$EGREP"; then
5432 ac_path_EGREP_found=false
5433-# Loop through the user's path and test for each of PROGNAME-LIST
5434-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5435+ # Loop through the user's path and test for each of PROGNAME-LIST
5436+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5437 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5438 do
5439 IFS=$as_save_IFS
5440 test -z "$as_dir" && as_dir=.
5441- for ac_prog in egrep; do
5442- for ac_exec_ext in '' $ac_executable_extensions; do
5443- ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5444- { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5445- # Check for GNU ac_path_EGREP and select it if it is found.
5446+ for ac_prog in egrep; do
5447+ for ac_exec_ext in '' $ac_executable_extensions; do
5448+ ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5449+ { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5450+# Check for GNU ac_path_EGREP and select it if it is found.
5451 # Check for GNU $ac_path_EGREP
5452 case `"$ac_path_EGREP" --version 2>&1` in
5453 *GNU*)
5454 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5455 *)
5456 ac_count=0
5457- echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5458+ $as_echo_n 0123456789 >"conftest.in"
5459 while :
5460 do
5461 cat "conftest.in" "conftest.in" >"conftest.tmp"
5462 mv "conftest.tmp" "conftest.in"
5463 cp "conftest.in" "conftest.nl"
5464- echo 'EGREP' >> "conftest.nl"
5465+ $as_echo 'EGREP' >> "conftest.nl"
5466 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5467 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5468- ac_count=`expr $ac_count + 1`
5469+ as_fn_arith $ac_count + 1 && ac_count=$as_val
5470 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5471 # Best one so far, save it but keep looking for a better one
5472 ac_cv_path_EGREP="$ac_path_EGREP"
5473@@ -3784,64 +4631,215 @@ case `"$ac_path_EGREP" --version 2>&1` i
5474 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5475 esac
5476
5477-
5478- $ac_path_EGREP_found && break 3
5479+ $ac_path_EGREP_found && break 3
5480+ done
5481+ done
5482 done
5483-done
5484-
5485-done
5486 IFS=$as_save_IFS
5487-
5488-
5489-fi
5490-
5491-EGREP="$ac_cv_path_EGREP"
5492-if test -z "$EGREP"; then
5493- { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5494-echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5495- { (exit 1); exit 1; }; }
5496-fi
5497-
5498+ if test -z "$ac_cv_path_EGREP"; then
5499+ as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5500+ fi
5501 else
5502 ac_cv_path_EGREP=$EGREP
5503 fi
5504
5505-
5506 fi
5507 fi
5508-{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5509-echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5510+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5511+$as_echo "$ac_cv_path_EGREP" >&6; }
5512 EGREP="$ac_cv_path_EGREP"
5513
5514
5515-
5516-{ echo "$as_me:$LINENO: checking for AIX" >&5
5517-echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
5518-cat >conftest.$ac_ext <<_ACEOF
5519-/* confdefs.h. */
5520-_ACEOF
5521-cat confdefs.h >>conftest.$ac_ext
5522-cat >>conftest.$ac_ext <<_ACEOF
5523+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5524+$as_echo_n "checking for ANSI C header files... " >&6; }
5525+if ${ac_cv_header_stdc+:} false; then :
5526+ $as_echo_n "(cached) " >&6
5527+else
5528+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5529 /* end confdefs.h. */
5530-#ifdef _AIX
5531- yes
5532-#endif
5533+#include <stdlib.h>
5534+#include <stdarg.h>
5535+#include <string.h>
5536+#include <float.h>
5537
5538-_ACEOF
5539+int
5540+main ()
5541+{
5542+
5543+ ;
5544+ return 0;
5545+}
5546+_ACEOF
5547+if ac_fn_c_try_compile "$LINENO"; then :
5548+ ac_cv_header_stdc=yes
5549+else
5550+ ac_cv_header_stdc=no
5551+fi
5552+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5553+
5554+if test $ac_cv_header_stdc = yes; then
5555+ # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5556+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5557+/* end confdefs.h. */
5558+#include <string.h>
5559+
5560+_ACEOF
5561 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5562- $EGREP "yes" >/dev/null 2>&1; then
5563- { echo "$as_me:$LINENO: result: yes" >&5
5564-echo "${ECHO_T}yes" >&6; }
5565-cat >>confdefs.h <<\_ACEOF
5566-#define _ALL_SOURCE 1
5567+ $EGREP "memchr" >/dev/null 2>&1; then :
5568+
5569+else
5570+ ac_cv_header_stdc=no
5571+fi
5572+rm -f conftest*
5573+
5574+fi
5575+
5576+if test $ac_cv_header_stdc = yes; then
5577+ # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5578+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5579+/* end confdefs.h. */
5580+#include <stdlib.h>
5581+
5582 _ACEOF
5583+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5584+ $EGREP "free" >/dev/null 2>&1; then :
5585
5586 else
5587- { echo "$as_me:$LINENO: result: no" >&5
5588-echo "${ECHO_T}no" >&6; }
5589+ ac_cv_header_stdc=no
5590 fi
5591 rm -f conftest*
5592
5593+fi
5594+
5595+if test $ac_cv_header_stdc = yes; then
5596+ # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5597+ if test "$cross_compiling" = yes; then :
5598+ :
5599+else
5600+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5601+/* end confdefs.h. */
5602+#include <ctype.h>
5603+#include <stdlib.h>
5604+#if ((' ' & 0x0FF) == 0x020)
5605+# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5606+# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5607+#else
5608+# define ISLOWER(c) \
5609+ (('a' <= (c) && (c) <= 'i') \
5610+ || ('j' <= (c) && (c) <= 'r') \
5611+ || ('s' <= (c) && (c) <= 'z'))
5612+# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5613+#endif
5614+
5615+#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5616+int
5617+main ()
5618+{
5619+ int i;
5620+ for (i = 0; i < 256; i++)
5621+ if (XOR (islower (i), ISLOWER (i))
5622+ || toupper (i) != TOUPPER (i))
5623+ return 2;
5624+ return 0;
5625+}
5626+_ACEOF
5627+if ac_fn_c_try_run "$LINENO"; then :
5628+
5629+else
5630+ ac_cv_header_stdc=no
5631+fi
5632+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5633+ conftest.$ac_objext conftest.beam conftest.$ac_ext
5634+fi
5635+
5636+fi
5637+fi
5638+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5639+$as_echo "$ac_cv_header_stdc" >&6; }
5640+if test $ac_cv_header_stdc = yes; then
5641+
5642+$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5643+
5644+fi
5645+
5646+# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5647+for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5648+ inttypes.h stdint.h unistd.h
5649+do :
5650+ as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5651+ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5652+"
5653+if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5654+ cat >>confdefs.h <<_ACEOF
5655+#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5656+_ACEOF
5657+
5658+fi
5659+
5660+done
5661+
5662+
5663+
5664+ ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5665+if test "x$ac_cv_header_minix_config_h" = xyes; then :
5666+ MINIX=yes
5667+else
5668+ MINIX=
5669+fi
5670+
5671+
5672+ if test "$MINIX" = yes; then
5673+
5674+$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5675+
5676+
5677+$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5678+
5679+
5680+$as_echo "#define _MINIX 1" >>confdefs.h
5681+
5682+ fi
5683+
5684+
5685+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5686+$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5687+if ${ac_cv_safe_to_define___extensions__+:} false; then :
5688+ $as_echo_n "(cached) " >&6
5689+else
5690+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5691+/* end confdefs.h. */
5692+
5693+# define __EXTENSIONS__ 1
5694+ $ac_includes_default
5695+int
5696+main ()
5697+{
5698+
5699+ ;
5700+ return 0;
5701+}
5702+_ACEOF
5703+if ac_fn_c_try_compile "$LINENO"; then :
5704+ ac_cv_safe_to_define___extensions__=yes
5705+else
5706+ ac_cv_safe_to_define___extensions__=no
5707+fi
5708+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5709+fi
5710+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5711+$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5712+ test $ac_cv_safe_to_define___extensions__ = yes &&
5713+ $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5714+
5715+ $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5716+
5717+ $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5718+
5719+ $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5720+
5721+ $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5722+
5723+
5724
5725
5726 # Check for unsupported systems
5727@@ -3853,11 +4851,11 @@ atheos*|Linux*/1*)
5728 esac
5729
5730
5731-{ echo "$as_me:$LINENO: checking for --with-suffix" >&5
5732-echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6; }
5733+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-suffix" >&5
5734+$as_echo_n "checking for --with-suffix... " >&6; }
5735
5736 # Check whether --with-suffix was given.
5737-if test "${with_suffix+set}" = set; then
5738+if test "${with_suffix+set}" = set; then :
5739 withval=$with_suffix;
5740 case $withval in
5741 no) EXEEXT=;;
5742@@ -3866,27 +4864,29 @@ if test "${with_suffix+set}" = set; then
5743 esac
5744 fi
5745
5746-{ echo "$as_me:$LINENO: result: $EXEEXT" >&5
5747-echo "${ECHO_T}$EXEEXT" >&6; }
5748+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXEEXT" >&5
5749+$as_echo "$EXEEXT" >&6; }
5750
5751 # Test whether we're running on a non-case-sensitive system, in which
5752 # case we give a warning if no ext is given
5753
5754-{ echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
5755-echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6; }
5756+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for case-insensitive build directory" >&5
5757+$as_echo_n "checking for case-insensitive build directory... " >&6; }
5758 if test ! -d CaseSensitiveTestDir; then
5759 mkdir CaseSensitiveTestDir
5760 fi
5761
5762 if test -d casesensitivetestdir
5763 then
5764- { echo "$as_me:$LINENO: result: yes" >&5
5765-echo "${ECHO_T}yes" >&6; }
5766+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5767+$as_echo "yes" >&6; }
5768 BUILDEXEEXT=.exe
5769+ case_sensitive=no
5770 else
5771- { echo "$as_me:$LINENO: result: no" >&5
5772-echo "${ECHO_T}no" >&6; }
5773- BUILDEXEEXT=$EXEEXT
5774+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5775+$as_echo "no" >&6; }
5776+ BUILDEXEEXT=$EXEEXT
5777+ case_sensitive=yes
5778 fi
5779 rmdir CaseSensitiveTestDir
5780
5781@@ -3909,23 +4909,21 @@ Monterey*)
5782 SunOS*)
5783 # Some functions have a prototype only with that define, e.g. confstr
5784
5785-cat >>confdefs.h <<\_ACEOF
5786-#define __EXTENSIONS__ 1
5787-_ACEOF
5788+$as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5789
5790 ;;
5791 esac
5792
5793
5794
5795-{ echo "$as_me:$LINENO: checking LIBRARY" >&5
5796-echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6; }
5797+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY" >&5
5798+$as_echo_n "checking LIBRARY... " >&6; }
5799 if test -z "$LIBRARY"
5800 then
5801 LIBRARY='libpython$(VERSION).a'
5802 fi
5803-{ echo "$as_me:$LINENO: result: $LIBRARY" >&5
5804-echo "${ECHO_T}$LIBRARY" >&6; }
5805+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBRARY" >&5
5806+$as_echo "$LIBRARY" >&6; }
5807
5808 # LDLIBRARY is the name of the library to link against (as opposed to the
5809 # name of the library into which to insert object files). BLDLIBRARY is also
5810@@ -3960,8 +4958,8 @@ RUNSHARED=''
5811 # This is altered for AIX in order to build the export list before
5812 # linking.
5813
5814-{ echo "$as_me:$LINENO: checking LINKCC" >&5
5815-echo $ECHO_N "checking LINKCC... $ECHO_C" >&6; }
5816+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKCC" >&5
5817+$as_echo_n "checking LINKCC... " >&6; }
5818 if test -z "$LINKCC"
5819 then
5820 LINKCC='$(PURIFY) $(MAINCC)'
5821@@ -3981,13 +4979,13 @@ then
5822 LINKCC=qcc;;
5823 esac
5824 fi
5825-{ echo "$as_me:$LINENO: result: $LINKCC" >&5
5826-echo "${ECHO_T}$LINKCC" >&6; }
5827+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKCC" >&5
5828+$as_echo "$LINKCC" >&6; }
5829
5830-{ echo "$as_me:$LINENO: checking for --enable-shared" >&5
5831-echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6; }
5832+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-shared" >&5
5833+$as_echo_n "checking for --enable-shared... " >&6; }
5834 # Check whether --enable-shared was given.
5835-if test "${enable_shared+set}" = set; then
5836+if test "${enable_shared+set}" = set; then :
5837 enableval=$enable_shared;
5838 fi
5839
5840@@ -3995,70 +4993,42 @@ fi
5841 if test -z "$enable_shared"
5842 then
5843 case $ac_sys_system in
5844- CYGWIN* | atheos*)
5845+ CYGWIN* | atheos* | mingw*)
5846 enable_shared="yes";;
5847 *)
5848 enable_shared="no";;
5849 esac
5850 fi
5851-{ echo "$as_me:$LINENO: result: $enable_shared" >&5
5852-echo "${ECHO_T}$enable_shared" >&6; }
5853+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
5854+$as_echo "$enable_shared" >&6; }
5855
5856-{ echo "$as_me:$LINENO: checking for --enable-profiling" >&5
5857-echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6; }
5858+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-profiling" >&5
5859+$as_echo_n "checking for --enable-profiling... " >&6; }
5860 # Check whether --enable-profiling was given.
5861-if test "${enable_profiling+set}" = set; then
5862+if test "${enable_profiling+set}" = set; then :
5863 enableval=$enable_profiling; ac_save_cc="$CC"
5864 CC="$CC -pg"
5865- if test "$cross_compiling" = yes; then
5866+ if test "$cross_compiling" = yes; then :
5867 ac_enable_profiling="no"
5868 else
5869- cat >conftest.$ac_ext <<_ACEOF
5870-/* confdefs.h. */
5871-_ACEOF
5872-cat confdefs.h >>conftest.$ac_ext
5873-cat >>conftest.$ac_ext <<_ACEOF
5874+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5875 /* end confdefs.h. */
5876 int main() { return 0; }
5877 _ACEOF
5878-rm -f conftest$ac_exeext
5879-if { (ac_try="$ac_link"
5880-case "(($ac_try" in
5881- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5882- *) ac_try_echo=$ac_try;;
5883-esac
5884-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5885- (eval "$ac_link") 2>&5
5886- ac_status=$?
5887- echo "$as_me:$LINENO: \$? = $ac_status" >&5
5888- (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5889- { (case "(($ac_try" in
5890- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5891- *) ac_try_echo=$ac_try;;
5892-esac
5893-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5894- (eval "$ac_try") 2>&5
5895- ac_status=$?
5896- echo "$as_me:$LINENO: \$? = $ac_status" >&5
5897- (exit $ac_status); }; }; then
5898+if ac_fn_c_try_run "$LINENO"; then :
5899 ac_enable_profiling="yes"
5900 else
5901- echo "$as_me: program exited with status $ac_status" >&5
5902-echo "$as_me: failed program was:" >&5
5903-sed 's/^/| /' conftest.$ac_ext >&5
5904-
5905-( exit $ac_status )
5906-ac_enable_profiling="no"
5907+ ac_enable_profiling="no"
5908 fi
5909-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5910+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5911+ conftest.$ac_objext conftest.beam conftest.$ac_ext
5912 fi
5913
5914-
5915 CC="$ac_save_cc"
5916 fi
5917
5918-{ echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
5919-echo "${ECHO_T}$ac_enable_profiling" >&6; }
5920+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_profiling" >&5
5921+$as_echo "$ac_enable_profiling" >&6; }
5922
5923 case "$ac_enable_profiling" in
5924 "yes")
5925@@ -4067,8 +5037,8 @@ case "$ac_enable_profiling" in
5926 ;;
5927 esac
5928
5929-{ echo "$as_me:$LINENO: checking LDLIBRARY" >&5
5930-echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6; }
5931+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LDLIBRARY" >&5
5932+$as_echo_n "checking LDLIBRARY... " >&6; }
5933
5934 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
5935 # library that we build, but we do not want to link against it (we
5936@@ -4088,9 +5058,7 @@ fi
5937 # Other platforms follow
5938 if test $enable_shared = "yes"; then
5939
5940-cat >>confdefs.h <<\_ACEOF
5941-#define Py_ENABLE_SHARED 1
5942-_ACEOF
5943+$as_echo "#define Py_ENABLE_SHARED 1" >>confdefs.h
5944
5945 case $ac_sys_system in
5946 BeOS*)
5947@@ -4100,6 +5068,10 @@ _ACEOF
5948 LDLIBRARY='libpython$(VERSION).dll.a'
5949 DLLLIBRARY='libpython$(VERSION).dll'
5950 ;;
5951+ mingw*)
5952+ LDLIBRARY='libpython$(VERSION).dll.a'
5953+ DLLLIBRARY='libpython$(VERSION).dll'
5954+ ;;
5955 SunOS*)
5956 LDLIBRARY='libpython$(VERSION).so'
5957 BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
5958@@ -4146,19 +5118,24 @@ else # shared is disabled
5959 BLDLIBRARY='$(LIBRARY)'
5960 LDLIBRARY='libpython$(VERSION).dll.a'
5961 ;;
5962+ mingw*)
5963+ BLDLIBRARY='$(LIBRARY)'
5964+ LDLIBRARY='libpython$(VERSION).dll.a'
5965+ ;;
5966 esac
5967 fi
5968
5969-{ echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
5970-echo "${ECHO_T}$LDLIBRARY" >&6; }
5971+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDLIBRARY" >&5
5972+$as_echo "$LDLIBRARY" >&6; }
5973
5974+# find tools while respecting --host setting
5975 if test -n "$ac_tool_prefix"; then
5976 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5977 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5978-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5979-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5980-if test "${ac_cv_prog_RANLIB+set}" = set; then
5981- echo $ECHO_N "(cached) $ECHO_C" >&6
5982+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5983+$as_echo_n "checking for $ac_word... " >&6; }
5984+if ${ac_cv_prog_RANLIB+:} false; then :
5985+ $as_echo_n "(cached) " >&6
5986 else
5987 if test -n "$RANLIB"; then
5988 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5989@@ -4168,25 +5145,25 @@ for as_dir in $PATH
5990 do
5991 IFS=$as_save_IFS
5992 test -z "$as_dir" && as_dir=.
5993- for ac_exec_ext in '' $ac_executable_extensions; do
5994+ for ac_exec_ext in '' $ac_executable_extensions; do
5995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5996 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5997- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5998+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5999 break 2
6000 fi
6001 done
6002-done
6003+ done
6004 IFS=$as_save_IFS
6005
6006 fi
6007 fi
6008 RANLIB=$ac_cv_prog_RANLIB
6009 if test -n "$RANLIB"; then
6010- { echo "$as_me:$LINENO: result: $RANLIB" >&5
6011-echo "${ECHO_T}$RANLIB" >&6; }
6012+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6013+$as_echo "$RANLIB" >&6; }
6014 else
6015- { echo "$as_me:$LINENO: result: no" >&5
6016-echo "${ECHO_T}no" >&6; }
6017+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6018+$as_echo "no" >&6; }
6019 fi
6020
6021
6022@@ -4195,10 +5172,10 @@ if test -z "$ac_cv_prog_RANLIB"; then
6023 ac_ct_RANLIB=$RANLIB
6024 # Extract the first word of "ranlib", so it can be a program name with args.
6025 set dummy ranlib; ac_word=$2
6026-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6027-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6028-if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6029- echo $ECHO_N "(cached) $ECHO_C" >&6
6030+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6031+$as_echo_n "checking for $ac_word... " >&6; }
6032+if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6033+ $as_echo_n "(cached) " >&6
6034 else
6035 if test -n "$ac_ct_RANLIB"; then
6036 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6037@@ -4208,38 +5185,34 @@ for as_dir in $PATH
6038 do
6039 IFS=$as_save_IFS
6040 test -z "$as_dir" && as_dir=.
6041- for ac_exec_ext in '' $ac_executable_extensions; do
6042+ for ac_exec_ext in '' $ac_executable_extensions; do
6043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6044 ac_cv_prog_ac_ct_RANLIB="ranlib"
6045- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6046+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6047 break 2
6048 fi
6049 done
6050-done
6051+ done
6052 IFS=$as_save_IFS
6053
6054 fi
6055 fi
6056 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6057 if test -n "$ac_ct_RANLIB"; then
6058- { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6059-echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6060+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6061+$as_echo "$ac_ct_RANLIB" >&6; }
6062 else
6063- { echo "$as_me:$LINENO: result: no" >&5
6064-echo "${ECHO_T}no" >&6; }
6065+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6066+$as_echo "no" >&6; }
6067 fi
6068
6069 if test "x$ac_ct_RANLIB" = x; then
6070- RANLIB=":"
6071+ RANLIB=""
6072 else
6073 case $cross_compiling:$ac_tool_warned in
6074 yes:)
6075-{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6076-whose name does not start with the host triplet. If you think this
6077-configuration is useful to you, please write to autoconf@gnu.org." >&5
6078-echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6079-whose name does not start with the host triplet. If you think this
6080-configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6081+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6082+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6083 ac_tool_warned=yes ;;
6084 esac
6085 RANLIB=$ac_ct_RANLIB
6086@@ -4248,15 +5221,15 @@ else
6087 RANLIB="$ac_cv_prog_RANLIB"
6088 fi
6089
6090-
6091-for ac_prog in ar aal
6092-do
6093- # Extract the first word of "$ac_prog", so it can be a program name with args.
6094-set dummy $ac_prog; ac_word=$2
6095-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6096-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6097-if test "${ac_cv_prog_AR+set}" = set; then
6098- echo $ECHO_N "(cached) $ECHO_C" >&6
6099+if test -n "$ac_tool_prefix"; then
6100+ for ac_prog in ar aal
6101+ do
6102+ # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6103+set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6104+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6105+$as_echo_n "checking for $ac_word... " >&6; }
6106+if ${ac_cv_prog_AR+:} false; then :
6107+ $as_echo_n "(cached) " >&6
6108 else
6109 if test -n "$AR"; then
6110 ac_cv_prog_AR="$AR" # Let the user override the test.
6111@@ -4266,40 +5239,96 @@ for as_dir in $PATH
6112 do
6113 IFS=$as_save_IFS
6114 test -z "$as_dir" && as_dir=.
6115- for ac_exec_ext in '' $ac_executable_extensions; do
6116+ for ac_exec_ext in '' $ac_executable_extensions; do
6117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6118- ac_cv_prog_AR="$ac_prog"
6119- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6120+ ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6121+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6122 break 2
6123 fi
6124 done
6125-done
6126+ done
6127 IFS=$as_save_IFS
6128
6129 fi
6130 fi
6131 AR=$ac_cv_prog_AR
6132 if test -n "$AR"; then
6133- { echo "$as_me:$LINENO: result: $AR" >&5
6134-echo "${ECHO_T}$AR" >&6; }
6135+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6136+$as_echo "$AR" >&6; }
6137+else
6138+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6139+$as_echo "no" >&6; }
6140+fi
6141+
6142+
6143+ test -n "$AR" && break
6144+ done
6145+fi
6146+if test -z "$AR"; then
6147+ ac_ct_AR=$AR
6148+ for ac_prog in ar aal
6149+do
6150+ # Extract the first word of "$ac_prog", so it can be a program name with args.
6151+set dummy $ac_prog; ac_word=$2
6152+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6153+$as_echo_n "checking for $ac_word... " >&6; }
6154+if ${ac_cv_prog_ac_ct_AR+:} false; then :
6155+ $as_echo_n "(cached) " >&6
6156+else
6157+ if test -n "$ac_ct_AR"; then
6158+ ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6159+else
6160+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6161+for as_dir in $PATH
6162+do
6163+ IFS=$as_save_IFS
6164+ test -z "$as_dir" && as_dir=.
6165+ for ac_exec_ext in '' $ac_executable_extensions; do
6166+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6167+ ac_cv_prog_ac_ct_AR="$ac_prog"
6168+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6169+ break 2
6170+ fi
6171+done
6172+ done
6173+IFS=$as_save_IFS
6174+
6175+fi
6176+fi
6177+ac_ct_AR=$ac_cv_prog_ac_ct_AR
6178+if test -n "$ac_ct_AR"; then
6179+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6180+$as_echo "$ac_ct_AR" >&6; }
6181 else
6182- { echo "$as_me:$LINENO: result: no" >&5
6183-echo "${ECHO_T}no" >&6; }
6184+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6185+$as_echo "no" >&6; }
6186 fi
6187
6188
6189- test -n "$AR" && break
6190+ test -n "$ac_ct_AR" && break
6191 done
6192-test -n "$AR" || AR="ar"
6193+
6194+ if test "x$ac_ct_AR" = x; then
6195+ AR="ar"
6196+ else
6197+ case $cross_compiling:$ac_tool_warned in
6198+yes:)
6199+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6200+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6201+ac_tool_warned=yes ;;
6202+esac
6203+ AR=$ac_ct_AR
6204+ fi
6205+fi
6206
6207
6208
6209 # Extract the first word of "svnversion", so it can be a program name with args.
6210 set dummy svnversion; ac_word=$2
6211-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6212-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6213-if test "${ac_cv_prog_SVNVERSION+set}" = set; then
6214- echo $ECHO_N "(cached) $ECHO_C" >&6
6215+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6216+$as_echo_n "checking for $ac_word... " >&6; }
6217+if ${ac_cv_prog_SVNVERSION+:} false; then :
6218+ $as_echo_n "(cached) " >&6
6219 else
6220 if test -n "$SVNVERSION"; then
6221 ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test.
6222@@ -4309,14 +5338,14 @@ for as_dir in $PATH
6223 do
6224 IFS=$as_save_IFS
6225 test -z "$as_dir" && as_dir=.
6226- for ac_exec_ext in '' $ac_executable_extensions; do
6227+ for ac_exec_ext in '' $ac_executable_extensions; do
6228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6229 ac_cv_prog_SVNVERSION="found"
6230- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6231+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6232 break 2
6233 fi
6234 done
6235-done
6236+ done
6237 IFS=$as_save_IFS
6238
6239 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION="not-found"
6240@@ -4324,11 +5353,11 @@ fi
6241 fi
6242 SVNVERSION=$ac_cv_prog_SVNVERSION
6243 if test -n "$SVNVERSION"; then
6244- { echo "$as_me:$LINENO: result: $SVNVERSION" >&5
6245-echo "${ECHO_T}$SVNVERSION" >&6; }
6246+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVNVERSION" >&5
6247+$as_echo "$SVNVERSION" >&6; }
6248 else
6249- { echo "$as_me:$LINENO: result: no" >&5
6250-echo "${ECHO_T}no" >&6; }
6251+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6252+$as_echo "no" >&6; }
6253 fi
6254
6255
6256@@ -4347,37 +5376,6 @@ bsdos*|hp*|HP*)
6257 INSTALL="${srcdir}/install-sh -c"
6258 fi
6259 esac
6260-ac_aux_dir=
6261-for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
6262- if test -f "$ac_dir/install-sh"; then
6263- ac_aux_dir=$ac_dir
6264- ac_install_sh="$ac_aux_dir/install-sh -c"
6265- break
6266- elif test -f "$ac_dir/install.sh"; then
6267- ac_aux_dir=$ac_dir
6268- ac_install_sh="$ac_aux_dir/install.sh -c"
6269- break
6270- elif test -f "$ac_dir/shtool"; then
6271- ac_aux_dir=$ac_dir
6272- ac_install_sh="$ac_aux_dir/shtool install -c"
6273- break
6274- fi
6275-done
6276-if test -z "$ac_aux_dir"; then
6277- { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
6278-echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
6279- { (exit 1); exit 1; }; }
6280-fi
6281-
6282-# These three variables are undocumented and unsupported,
6283-# and are intended to be withdrawn in a future Autoconf release.
6284-# They can cause serious problems if a builder's source tree is in a directory
6285-# whose full name contains unusual characters.
6286-ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
6287-ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
6288-ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
6289-
6290-
6291 # Find a good install program. We prefer a C program (faster),
6292 # so one script is as good as another. But avoid the broken or
6293 # incompatible versions:
6294@@ -4391,22 +5389,23 @@ ac_configure="$SHELL $ac_aux_dir/configu
6295 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6296 # OS/2's system install, which has a completely different semantic
6297 # ./install, which can be erroneously created by make from ./install.sh.
6298-{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6299-echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6300+# Reject install programs that cannot install multiple files.
6301+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
6302+$as_echo_n "checking for a BSD-compatible install... " >&6; }
6303 if test -z "$INSTALL"; then
6304-if test "${ac_cv_path_install+set}" = set; then
6305- echo $ECHO_N "(cached) $ECHO_C" >&6
6306+if ${ac_cv_path_install+:} false; then :
6307+ $as_echo_n "(cached) " >&6
6308 else
6309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6310 for as_dir in $PATH
6311 do
6312 IFS=$as_save_IFS
6313 test -z "$as_dir" && as_dir=.
6314- # Account for people who put trailing slashes in PATH elements.
6315-case $as_dir/ in
6316- ./ | .// | /cC/* | \
6317+ # Account for people who put trailing slashes in PATH elements.
6318+case $as_dir/ in #((
6319+ ./ | .// | /[cC]/* | \
6320 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6321- ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6322+ ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
6323 /usr/ucb/* ) ;;
6324 *)
6325 # OSF1 and SCO ODT 3.0 have their own names for install.
6326@@ -4424,17 +5423,29 @@ case $as_dir/ in
6327 # program-specific install script used by HP pwplus--don't use.
6328 :
6329 else
6330- ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6331- break 3
6332+ rm -rf conftest.one conftest.two conftest.dir
6333+ echo one > conftest.one
6334+ echo two > conftest.two
6335+ mkdir conftest.dir
6336+ if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6337+ test -s conftest.one && test -s conftest.two &&
6338+ test -s conftest.dir/conftest.one &&
6339+ test -s conftest.dir/conftest.two
6340+ then
6341+ ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6342+ break 3
6343+ fi
6344 fi
6345 fi
6346 done
6347 done
6348 ;;
6349 esac
6350-done
6351+
6352+ done
6353 IFS=$as_save_IFS
6354
6355+rm -rf conftest.one conftest.two conftest.dir
6356
6357 fi
6358 if test "${ac_cv_path_install+set}" = set; then
6359@@ -4447,8 +5458,8 @@ fi
6360 INSTALL=$ac_install_sh
6361 fi
6362 fi
6363-{ echo "$as_me:$LINENO: result: $INSTALL" >&5
6364-echo "${ECHO_T}$INSTALL" >&6; }
6365+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6366+$as_echo "$INSTALL" >&6; }
6367
6368 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6369 # It thinks the first close brace ends the variable substitution.
6370@@ -4471,28 +5482,26 @@ if test -z "$LN" ; then
6371 fi
6372
6373 # Check for --with-pydebug
6374-{ echo "$as_me:$LINENO: checking for --with-pydebug" >&5
6375-echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6; }
6376+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pydebug" >&5
6377+$as_echo_n "checking for --with-pydebug... " >&6; }
6378
6379 # Check whether --with-pydebug was given.
6380-if test "${with_pydebug+set}" = set; then
6381+if test "${with_pydebug+set}" = set; then :
6382 withval=$with_pydebug;
6383 if test "$withval" != no
6384 then
6385
6386-cat >>confdefs.h <<\_ACEOF
6387-#define Py_DEBUG 1
6388-_ACEOF
6389+$as_echo "#define Py_DEBUG 1" >>confdefs.h
6390
6391- { echo "$as_me:$LINENO: result: yes" >&5
6392-echo "${ECHO_T}yes" >&6; };
6393+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6394+$as_echo "yes" >&6; };
6395 Py_DEBUG='true'
6396-else { echo "$as_me:$LINENO: result: no" >&5
6397-echo "${ECHO_T}no" >&6; }; Py_DEBUG='false'
6398+else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6399+$as_echo "no" >&6; }; Py_DEBUG='false'
6400 fi
6401 else
6402- { echo "$as_me:$LINENO: result: no" >&5
6403-echo "${ECHO_T}no" >&6; }
6404+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6405+$as_echo "no" >&6; }
6406 fi
6407
6408
6409@@ -4570,57 +5579,29 @@ yes)
6410 # Python violates C99 rules, by casting between incompatible
6411 # pointer types. GCC may generate bad code as a result of that,
6412 # so use -fno-strict-aliasing if supported.
6413- { echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
6414-echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6; }
6415+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -fno-strict-aliasing" >&5
6416+$as_echo_n "checking whether $CC accepts -fno-strict-aliasing... " >&6; }
6417 ac_save_cc="$CC"
6418 CC="$CC -fno-strict-aliasing"
6419- if test "$cross_compiling" = yes; then
6420+ if test "$cross_compiling" = yes; then :
6421 ac_cv_no_strict_aliasing_ok=no
6422 else
6423- cat >conftest.$ac_ext <<_ACEOF
6424-/* confdefs.h. */
6425-_ACEOF
6426-cat confdefs.h >>conftest.$ac_ext
6427-cat >>conftest.$ac_ext <<_ACEOF
6428+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6429 /* end confdefs.h. */
6430 int main() { return 0; }
6431 _ACEOF
6432-rm -f conftest$ac_exeext
6433-if { (ac_try="$ac_link"
6434-case "(($ac_try" in
6435- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6436- *) ac_try_echo=$ac_try;;
6437-esac
6438-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6439- (eval "$ac_link") 2>&5
6440- ac_status=$?
6441- echo "$as_me:$LINENO: \$? = $ac_status" >&5
6442- (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6443- { (case "(($ac_try" in
6444- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6445- *) ac_try_echo=$ac_try;;
6446-esac
6447-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6448- (eval "$ac_try") 2>&5
6449- ac_status=$?
6450- echo "$as_me:$LINENO: \$? = $ac_status" >&5
6451- (exit $ac_status); }; }; then
6452+if ac_fn_c_try_run "$LINENO"; then :
6453 ac_cv_no_strict_aliasing_ok=yes
6454 else
6455- echo "$as_me: program exited with status $ac_status" >&5
6456-echo "$as_me: failed program was:" >&5
6457-sed 's/^/| /' conftest.$ac_ext >&5
6458-
6459-( exit $ac_status )
6460-ac_cv_no_strict_aliasing_ok=no
6461+ ac_cv_no_strict_aliasing_ok=no
6462 fi
6463-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6464+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6465+ conftest.$ac_objext conftest.beam conftest.$ac_ext
6466 fi
6467
6468-
6469 CC="$ac_save_cc"
6470- { echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
6471-echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6; }
6472+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_no_strict_aliasing_ok" >&5
6473+$as_echo "$ac_cv_no_strict_aliasing_ok" >&6; }
6474 if test $ac_cv_no_strict_aliasing_ok = yes
6475 then
6476 BASECFLAGS="$BASECFLAGS -fno-strict-aliasing"
6477@@ -4659,9 +5640,7 @@ echo "${ECHO_T}$ac_cv_no_strict_aliasing
6478 ARCH_RUN_32BIT="arch -i386 -ppc"
6479
6480 else
6481- { { echo "$as_me:$LINENO: error: proper usage is --with-universalarch=32-bit|64-bit|all" >&5
6482-echo "$as_me: error: proper usage is --with-universalarch=32-bit|64-bit|all" >&2;}
6483- { (exit 1); exit 1; }; }
6484+ as_fn_error $? "proper usage is --with-universalarch=32-bit|64-bit|all" "$LINENO" 5
6485
6486 fi
6487
6488@@ -4699,6 +5678,9 @@ echo "$as_me: error: proper usage is --w
6489 OSF*)
6490 BASECFLAGS="$BASECFLAGS -mieee"
6491 ;;
6492+ mingw*)
6493+ OPT="-DMS_WINDOWS -DPy_WIN_WIDE_FILENAMES $OPT"
6494+ ;;
6495 esac
6496 ;;
6497
6498@@ -4734,66 +5716,38 @@ then
6499 ac_cv_opt_olimit_ok=no
6500 fi
6501
6502-{ echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
6503-echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6; }
6504-if test "${ac_cv_opt_olimit_ok+set}" = set; then
6505- echo $ECHO_N "(cached) $ECHO_C" >&6
6506+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -OPT:Olimit=0" >&5
6507+$as_echo_n "checking whether $CC accepts -OPT:Olimit=0... " >&6; }
6508+if ${ac_cv_opt_olimit_ok+:} false; then :
6509+ $as_echo_n "(cached) " >&6
6510 else
6511 ac_save_cc="$CC"
6512 CC="$CC -OPT:Olimit=0"
6513-if test "$cross_compiling" = yes; then
6514+if test "$cross_compiling" = yes; then :
6515 ac_cv_opt_olimit_ok=no
6516 else
6517- cat >conftest.$ac_ext <<_ACEOF
6518-/* confdefs.h. */
6519-_ACEOF
6520-cat confdefs.h >>conftest.$ac_ext
6521-cat >>conftest.$ac_ext <<_ACEOF
6522+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6523 /* end confdefs.h. */
6524 int main() { return 0; }
6525 _ACEOF
6526-rm -f conftest$ac_exeext
6527-if { (ac_try="$ac_link"
6528-case "(($ac_try" in
6529- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6530- *) ac_try_echo=$ac_try;;
6531-esac
6532-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6533- (eval "$ac_link") 2>&5
6534- ac_status=$?
6535- echo "$as_me:$LINENO: \$? = $ac_status" >&5
6536- (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6537- { (case "(($ac_try" in
6538- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6539- *) ac_try_echo=$ac_try;;
6540-esac
6541-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6542- (eval "$ac_try") 2>&5
6543- ac_status=$?
6544- echo "$as_me:$LINENO: \$? = $ac_status" >&5
6545- (exit $ac_status); }; }; then
6546+if ac_fn_c_try_run "$LINENO"; then :
6547 ac_cv_opt_olimit_ok=yes
6548 else
6549- echo "$as_me: program exited with status $ac_status" >&5
6550-echo "$as_me: failed program was:" >&5
6551-sed 's/^/| /' conftest.$ac_ext >&5
6552-
6553-( exit $ac_status )
6554-ac_cv_opt_olimit_ok=no
6555+ ac_cv_opt_olimit_ok=no
6556 fi
6557-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6558+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6559+ conftest.$ac_objext conftest.beam conftest.$ac_ext
6560 fi
6561
6562-
6563 CC="$ac_save_cc"
6564 fi
6565
6566-{ echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
6567-echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6; }
6568+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_opt_olimit_ok" >&5
6569+$as_echo "$ac_cv_opt_olimit_ok" >&6; }
6570 if test $ac_cv_opt_olimit_ok = yes; then
6571 case $ac_sys_system in
6572 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
6573- # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
6574+ # olimit_ok test is "no". Is it "yes" in some other darwin-esque
6575 # environment?
6576 Darwin*)
6577 ;;
6578@@ -4802,62 +5756,34 @@ if test $ac_cv_opt_olimit_ok = yes; then
6579 ;;
6580 esac
6581 else
6582- { echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
6583-echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6; }
6584- if test "${ac_cv_olimit_ok+set}" = set; then
6585- echo $ECHO_N "(cached) $ECHO_C" >&6
6586+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Olimit 1500" >&5
6587+$as_echo_n "checking whether $CC accepts -Olimit 1500... " >&6; }
6588+ if ${ac_cv_olimit_ok+:} false; then :
6589+ $as_echo_n "(cached) " >&6
6590 else
6591 ac_save_cc="$CC"
6592 CC="$CC -Olimit 1500"
6593- if test "$cross_compiling" = yes; then
6594+ if test "$cross_compiling" = yes; then :
6595 ac_cv_olimit_ok=no
6596 else
6597- cat >conftest.$ac_ext <<_ACEOF
6598-/* confdefs.h. */
6599-_ACEOF
6600-cat confdefs.h >>conftest.$ac_ext
6601-cat >>conftest.$ac_ext <<_ACEOF
6602+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6603 /* end confdefs.h. */
6604 int main() { return 0; }
6605 _ACEOF
6606-rm -f conftest$ac_exeext
6607-if { (ac_try="$ac_link"
6608-case "(($ac_try" in
6609- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6610- *) ac_try_echo=$ac_try;;
6611-esac
6612-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6613- (eval "$ac_link") 2>&5
6614- ac_status=$?
6615- echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616- (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6617- { (case "(($ac_try" in
6618- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6619- *) ac_try_echo=$ac_try;;
6620-esac
6621-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6622- (eval "$ac_try") 2>&5
6623- ac_status=$?
6624- echo "$as_me:$LINENO: \$? = $ac_status" >&5
6625- (exit $ac_status); }; }; then
6626+if ac_fn_c_try_run "$LINENO"; then :
6627 ac_cv_olimit_ok=yes
6628 else
6629- echo "$as_me: program exited with status $ac_status" >&5
6630-echo "$as_me: failed program was:" >&5
6631-sed 's/^/| /' conftest.$ac_ext >&5
6632-
6633-( exit $ac_status )
6634-ac_cv_olimit_ok=no
6635+ ac_cv_olimit_ok=no
6636 fi
6637-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6638+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6639+ conftest.$ac_objext conftest.beam conftest.$ac_ext
6640 fi
6641
6642-
6643 CC="$ac_save_cc"
6644 fi
6645
6646- { echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
6647-echo "${ECHO_T}$ac_cv_olimit_ok" >&6; }
6648+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_olimit_ok" >&5
6649+$as_echo "$ac_cv_olimit_ok" >&6; }
6650 if test $ac_cv_olimit_ok = yes; then
6651 BASECFLAGS="$BASECFLAGS -Olimit 1500"
6652 fi
6653@@ -4866,15 +5792,11 @@ fi
6654 # Check whether GCC supports PyArg_ParseTuple format
6655 if test "$GCC" = "yes"
6656 then
6657- { echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5
6658-echo $ECHO_N "checking whether gcc supports ParseTuple __format__... $ECHO_C" >&6; }
6659+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc supports ParseTuple __format__" >&5
6660+$as_echo_n "checking whether gcc supports ParseTuple __format__... " >&6; }
6661 save_CFLAGS=$CFLAGS
6662 CFLAGS="$CFLAGS -Werror"
6663- cat >conftest.$ac_ext <<_ACEOF
6664-/* confdefs.h. */
6665-_ACEOF
6666-cat confdefs.h >>conftest.$ac_ext
6667-cat >>conftest.$ac_ext <<_ACEOF
6668+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6669 /* end confdefs.h. */
6670
6671 void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2)));
6672@@ -4887,39 +5809,17 @@ main ()
6673 return 0;
6674 }
6675 _ACEOF
6676-rm -f conftest.$ac_objext
6677-if { (ac_try="$ac_compile"
6678-case "(($ac_try" in
6679- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6680- *) ac_try_echo=$ac_try;;
6681-esac
6682-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6683- (eval "$ac_compile") 2>conftest.er1
6684- ac_status=$?
6685- grep -v '^ *+' conftest.er1 >conftest.err
6686- rm -f conftest.er1
6687- cat conftest.err >&5
6688- echo "$as_me:$LINENO: \$? = $ac_status" >&5
6689- (exit $ac_status); } && {
6690- test -z "$ac_c_werror_flag" ||
6691- test ! -s conftest.err
6692- } && test -s conftest.$ac_objext; then
6693+if ac_fn_c_try_compile "$LINENO"; then :
6694
6695-cat >>confdefs.h <<\_ACEOF
6696-#define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1
6697-_ACEOF
6698+$as_echo "#define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1" >>confdefs.h
6699
6700- { echo "$as_me:$LINENO: result: yes" >&5
6701-echo "${ECHO_T}yes" >&6; }
6702+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6703+$as_echo "yes" >&6; }
6704 else
6705- echo "$as_me: failed program was:" >&5
6706-sed 's/^/| /' conftest.$ac_ext >&5
6707-
6708- { echo "$as_me:$LINENO: result: no" >&5
6709-echo "${ECHO_T}no" >&6; }
6710+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6711+$as_echo "no" >&6; }
6712
6713 fi
6714-
6715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6716 CFLAGS=$save_CFLAGS
6717 fi
6718@@ -4929,19 +5829,15 @@ fi
6719 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
6720 # So we have to see first whether pthreads are available without
6721 # options before we can check whether -Kpthread improves anything.
6722-{ echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
6723-echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6; }
6724-if test "${ac_cv_pthread_is_default+set}" = set; then
6725- echo $ECHO_N "(cached) $ECHO_C" >&6
6726+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads are available without options" >&5
6727+$as_echo_n "checking whether pthreads are available without options... " >&6; }
6728+if ${ac_cv_pthread_is_default+:} false; then :
6729+ $as_echo_n "(cached) " >&6
6730 else
6731- if test "$cross_compiling" = yes; then
6732+ if test "$cross_compiling" = yes; then :
6733 ac_cv_pthread_is_default=no
6734 else
6735- cat >conftest.$ac_ext <<_ACEOF
6736-/* confdefs.h. */
6737-_ACEOF
6738-cat confdefs.h >>conftest.$ac_ext
6739-cat >>conftest.$ac_ext <<_ACEOF
6740+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6741 /* end confdefs.h. */
6742
6743 #include <pthread.h>
6744@@ -4957,48 +5853,24 @@ int main(){
6745 }
6746
6747 _ACEOF
6748-rm -f conftest$ac_exeext
6749-if { (ac_try="$ac_link"
6750-case "(($ac_try" in
6751- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6752- *) ac_try_echo=$ac_try;;
6753-esac
6754-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6755- (eval "$ac_link") 2>&5
6756- ac_status=$?
6757- echo "$as_me:$LINENO: \$? = $ac_status" >&5
6758- (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6759- { (case "(($ac_try" in
6760- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6761- *) ac_try_echo=$ac_try;;
6762-esac
6763-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6764- (eval "$ac_try") 2>&5
6765- ac_status=$?
6766- echo "$as_me:$LINENO: \$? = $ac_status" >&5
6767- (exit $ac_status); }; }; then
6768+if ac_fn_c_try_run "$LINENO"; then :
6769
6770 ac_cv_pthread_is_default=yes
6771 ac_cv_kthread=no
6772 ac_cv_pthread=no
6773
6774 else
6775- echo "$as_me: program exited with status $ac_status" >&5
6776-echo "$as_me: failed program was:" >&5
6777-sed 's/^/| /' conftest.$ac_ext >&5
6778-
6779-( exit $ac_status )
6780-ac_cv_pthread_is_default=no
6781+ ac_cv_pthread_is_default=no
6782 fi
6783-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6784+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6785+ conftest.$ac_objext conftest.beam conftest.$ac_ext
6786 fi
6787
6788
6789-
6790 fi
6791
6792-{ echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
6793-echo "${ECHO_T}$ac_cv_pthread_is_default" >&6; }
6794+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_is_default" >&5
6795+$as_echo "$ac_cv_pthread_is_default" >&6; }
6796
6797
6798 if test $ac_cv_pthread_is_default = yes
6799@@ -5010,21 +5882,17 @@ else
6800 # Some compilers won't report that they do not support -Kpthread,
6801 # so we need to run a program to see whether it really made the
6802 # function available.
6803-{ echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
6804-echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6; }
6805-if test "${ac_cv_kpthread+set}" = set; then
6806- echo $ECHO_N "(cached) $ECHO_C" >&6
6807+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kpthread" >&5
6808+$as_echo_n "checking whether $CC accepts -Kpthread... " >&6; }
6809+if ${ac_cv_kpthread+:} false; then :
6810+ $as_echo_n "(cached) " >&6
6811 else
6812 ac_save_cc="$CC"
6813 CC="$CC -Kpthread"
6814-if test "$cross_compiling" = yes; then
6815+if test "$cross_compiling" = yes; then :
6816 ac_cv_kpthread=no
6817 else
6818- cat >conftest.$ac_ext <<_ACEOF
6819-/* confdefs.h. */
6820-_ACEOF
6821-cat confdefs.h >>conftest.$ac_ext
6822-cat >>conftest.$ac_ext <<_ACEOF
6823+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6824 /* end confdefs.h. */
6825
6826 #include <pthread.h>
6827@@ -5040,44 +5908,20 @@ int main(){
6828 }
6829
6830 _ACEOF
6831-rm -f conftest$ac_exeext
6832-if { (ac_try="$ac_link"
6833-case "(($ac_try" in
6834- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6835- *) ac_try_echo=$ac_try;;
6836-esac
6837-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6838- (eval "$ac_link") 2>&5
6839- ac_status=$?
6840- echo "$as_me:$LINENO: \$? = $ac_status" >&5
6841- (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6842- { (case "(($ac_try" in
6843- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6844- *) ac_try_echo=$ac_try;;
6845-esac
6846-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6847- (eval "$ac_try") 2>&5
6848- ac_status=$?
6849- echo "$as_me:$LINENO: \$? = $ac_status" >&5
6850- (exit $ac_status); }; }; then
6851+if ac_fn_c_try_run "$LINENO"; then :
6852 ac_cv_kpthread=yes
6853 else
6854- echo "$as_me: program exited with status $ac_status" >&5
6855-echo "$as_me: failed program was:" >&5
6856-sed 's/^/| /' conftest.$ac_ext >&5
6857-
6858-( exit $ac_status )
6859-ac_cv_kpthread=no
6860+ ac_cv_kpthread=no
6861 fi
6862-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6863+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6864+ conftest.$ac_objext conftest.beam conftest.$ac_ext
6865 fi
6866
6867-
6868 CC="$ac_save_cc"
6869 fi
6870
6871-{ echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
6872-echo "${ECHO_T}$ac_cv_kpthread" >&6; }
6873+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kpthread" >&5
6874+$as_echo "$ac_cv_kpthread" >&6; }
6875 fi
6876
6877 if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
6878@@ -5087,21 +5931,17 @@ then
6879 # Some compilers won't report that they do not support -Kthread,
6880 # so we need to run a program to see whether it really made the
6881 # function available.
6882-{ echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
6883-echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6; }
6884-if test "${ac_cv_kthread+set}" = set; then
6885- echo $ECHO_N "(cached) $ECHO_C" >&6
6886+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kthread" >&5
6887+$as_echo_n "checking whether $CC accepts -Kthread... " >&6; }
6888+if ${ac_cv_kthread+:} false; then :
6889+ $as_echo_n "(cached) " >&6
6890 else
6891 ac_save_cc="$CC"
6892 CC="$CC -Kthread"
6893-if test "$cross_compiling" = yes; then
6894+if test "$cross_compiling" = yes; then :
6895 ac_cv_kthread=no
6896 else
6897- cat >conftest.$ac_ext <<_ACEOF
6898-/* confdefs.h. */
6899-_ACEOF
6900-cat confdefs.h >>conftest.$ac_ext
6901-cat >>conftest.$ac_ext <<_ACEOF
6902+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6903 /* end confdefs.h. */
6904
6905 #include <pthread.h>
6906@@ -5117,44 +5957,20 @@ int main(){
6907 }
6908
6909 _ACEOF
6910-rm -f conftest$ac_exeext
6911-if { (ac_try="$ac_link"
6912-case "(($ac_try" in
6913- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6914- *) ac_try_echo=$ac_try;;
6915-esac
6916-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6917- (eval "$ac_link") 2>&5
6918- ac_status=$?
6919- echo "$as_me:$LINENO: \$? = $ac_status" >&5
6920- (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6921- { (case "(($ac_try" in
6922- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6923- *) ac_try_echo=$ac_try;;
6924-esac
6925-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6926- (eval "$ac_try") 2>&5
6927- ac_status=$?
6928- echo "$as_me:$LINENO: \$? = $ac_status" >&5
6929- (exit $ac_status); }; }; then
6930+if ac_fn_c_try_run "$LINENO"; then :
6931 ac_cv_kthread=yes
6932 else
6933- echo "$as_me: program exited with status $ac_status" >&5
6934-echo "$as_me: failed program was:" >&5
6935-sed 's/^/| /' conftest.$ac_ext >&5
6936-
6937-( exit $ac_status )
6938-ac_cv_kthread=no
6939+ ac_cv_kthread=no
6940 fi
6941-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6942+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6943+ conftest.$ac_objext conftest.beam conftest.$ac_ext
6944 fi
6945
6946-
6947 CC="$ac_save_cc"
6948 fi
6949
6950-{ echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
6951-echo "${ECHO_T}$ac_cv_kthread" >&6; }
6952+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kthread" >&5
6953+$as_echo "$ac_cv_kthread" >&6; }
6954 fi
6955
6956 if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
6957@@ -5164,21 +5980,17 @@ then
6958 # Some compilers won't report that they do not support -pthread,
6959 # so we need to run a program to see whether it really made the
6960 # function available.
6961-{ echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
6962-echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6; }
6963-if test "${ac_cv_thread+set}" = set; then
6964- echo $ECHO_N "(cached) $ECHO_C" >&6
6965+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -pthread" >&5
6966+$as_echo_n "checking whether $CC accepts -pthread... " >&6; }
6967+if ${ac_cv_thread+:} false; then :
6968+ $as_echo_n "(cached) " >&6
6969 else
6970 ac_save_cc="$CC"
6971 CC="$CC -pthread"
6972-if test "$cross_compiling" = yes; then
6973+if test "$cross_compiling" = yes; then :
6974 ac_cv_pthread=no
6975 else
6976- cat >conftest.$ac_ext <<_ACEOF
6977-/* confdefs.h. */
6978-_ACEOF
6979-cat confdefs.h >>conftest.$ac_ext
6980-cat >>conftest.$ac_ext <<_ACEOF
6981+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6982 /* end confdefs.h. */
6983
6984 #include <pthread.h>
6985@@ -5194,44 +6006,20 @@ int main(){
6986 }
6987
6988 _ACEOF
6989-rm -f conftest$ac_exeext
6990-if { (ac_try="$ac_link"
6991-case "(($ac_try" in
6992- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6993- *) ac_try_echo=$ac_try;;
6994-esac
6995-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6996- (eval "$ac_link") 2>&5
6997- ac_status=$?
6998- echo "$as_me:$LINENO: \$? = $ac_status" >&5
6999- (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7000- { (case "(($ac_try" in
7001- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7002- *) ac_try_echo=$ac_try;;
7003-esac
7004-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7005- (eval "$ac_try") 2>&5
7006- ac_status=$?
7007- echo "$as_me:$LINENO: \$? = $ac_status" >&5
7008- (exit $ac_status); }; }; then
7009+if ac_fn_c_try_run "$LINENO"; then :
7010 ac_cv_pthread=yes
7011 else
7012- echo "$as_me: program exited with status $ac_status" >&5
7013-echo "$as_me: failed program was:" >&5
7014-sed 's/^/| /' conftest.$ac_ext >&5
7015-
7016-( exit $ac_status )
7017-ac_cv_pthread=no
7018+ ac_cv_pthread=no
7019 fi
7020-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7021+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7022+ conftest.$ac_objext conftest.beam conftest.$ac_ext
7023 fi
7024
7025-
7026 CC="$ac_save_cc"
7027 fi
7028
7029-{ echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
7030-echo "${ECHO_T}$ac_cv_pthread" >&6; }
7031+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread" >&5
7032+$as_echo "$ac_cv_pthread" >&6; }
7033 fi
7034
7035 # If we have set a CC compiler flag for thread support then
7036@@ -5239,8 +6027,8 @@ fi
7037 ac_cv_cxx_thread=no
7038 if test ! -z "$CXX"
7039 then
7040-{ echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
7041-echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6; }
7042+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX also accepts flags for thread support" >&5
7043+$as_echo_n "checking whether $CXX also accepts flags for thread support... " >&6; }
7044 ac_save_cxx="$CXX"
7045
7046 if test "$ac_cv_kpthread" = "yes"
7047@@ -5270,23 +6058,19 @@ then
7048 fi
7049 rm -fr conftest*
7050 fi
7051-{ echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
7052-echo "${ECHO_T}$ac_cv_cxx_thread" >&6; }
7053+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_thread" >&5
7054+$as_echo "$ac_cv_cxx_thread" >&6; }
7055 fi
7056 CXX="$ac_save_cxx"
7057
7058
7059 # checks for header files
7060-{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7061-echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7062-if test "${ac_cv_header_stdc+set}" = set; then
7063- echo $ECHO_N "(cached) $ECHO_C" >&6
7064+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7065+$as_echo_n "checking for ANSI C header files... " >&6; }
7066+if ${ac_cv_header_stdc+:} false; then :
7067+ $as_echo_n "(cached) " >&6
7068 else
7069- cat >conftest.$ac_ext <<_ACEOF
7070-/* confdefs.h. */
7071-_ACEOF
7072-cat confdefs.h >>conftest.$ac_ext
7073-cat >>conftest.$ac_ext <<_ACEOF
7074+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7075 /* end confdefs.h. */
7076 #include <stdlib.h>
7077 #include <stdarg.h>
7078@@ -5301,47 +6085,23 @@ main ()
7079 return 0;
7080 }
7081 _ACEOF
7082-rm -f conftest.$ac_objext
7083-if { (ac_try="$ac_compile"
7084-case "(($ac_try" in
7085- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7086- *) ac_try_echo=$ac_try;;
7087-esac
7088-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7089- (eval "$ac_compile") 2>conftest.er1
7090- ac_status=$?
7091- grep -v '^ *+' conftest.er1 >conftest.err
7092- rm -f conftest.er1
7093- cat conftest.err >&5
7094- echo "$as_me:$LINENO: \$? = $ac_status" >&5
7095- (exit $ac_status); } && {
7096- test -z "$ac_c_werror_flag" ||
7097- test ! -s conftest.err
7098- } && test -s conftest.$ac_objext; then
7099+if ac_fn_c_try_compile "$LINENO"; then :
7100 ac_cv_header_stdc=yes
7101 else
7102- echo "$as_me: failed program was:" >&5
7103-sed 's/^/| /' conftest.$ac_ext >&5
7104-
7105- ac_cv_header_stdc=no
7106+ ac_cv_header_stdc=no
7107 fi
7108-
7109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7110
7111 if test $ac_cv_header_stdc = yes; then
7112 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7113- cat >conftest.$ac_ext <<_ACEOF
7114-/* confdefs.h. */
7115-_ACEOF
7116-cat confdefs.h >>conftest.$ac_ext
7117-cat >>conftest.$ac_ext <<_ACEOF
7118+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7119 /* end confdefs.h. */
7120 #include <string.h>
7121
7122 _ACEOF
7123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7124- $EGREP "memchr" >/dev/null 2>&1; then
7125- :
7126+ $EGREP "memchr" >/dev/null 2>&1; then :
7127+
7128 else
7129 ac_cv_header_stdc=no
7130 fi
7131@@ -5351,18 +6111,14 @@ fi
7132
7133 if test $ac_cv_header_stdc = yes; then
7134 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7135- cat >conftest.$ac_ext <<_ACEOF
7136-/* confdefs.h. */
7137-_ACEOF
7138-cat confdefs.h >>conftest.$ac_ext
7139-cat >>conftest.$ac_ext <<_ACEOF
7140+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7141 /* end confdefs.h. */
7142 #include <stdlib.h>
7143
7144 _ACEOF
7145 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7146- $EGREP "free" >/dev/null 2>&1; then
7147- :
7148+ $EGREP "free" >/dev/null 2>&1; then :
7149+
7150 else
7151 ac_cv_header_stdc=no
7152 fi
7153@@ -5372,14 +6128,10 @@ fi
7154
7155 if test $ac_cv_header_stdc = yes; then
7156 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7157- if test "$cross_compiling" = yes; then
7158+ if test "$cross_compiling" = yes; then :
7159 :
7160 else
7161- cat >conftest.$ac_ext <<_ACEOF
7162-/* confdefs.h. */
7163-_ACEOF
7164-cat confdefs.h >>conftest.$ac_ext
7165-cat >>conftest.$ac_ext <<_ACEOF
7166+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7167 /* end confdefs.h. */
7168 #include <ctype.h>
7169 #include <stdlib.h>
7170@@ -5406,11805 +6158,1709 @@ main ()
7171 return 0;
7172 }
7173 _ACEOF
7174-rm -f conftest$ac_exeext
7175-if { (ac_try="$ac_link"
7176-case "(($ac_try" in
7177- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7178- *) ac_try_echo=$ac_try;;
7179-esac
7180-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7181- (eval "$ac_link") 2>&5
7182- ac_status=$?
7183- echo "$as_me:$LINENO: \$? = $ac_status" >&5
7184- (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7185- { (case "(($ac_try" in
7186- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7187- *) ac_try_echo=$ac_try;;
7188-esac
7189-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7190- (eval "$ac_try") 2>&5
7191- ac_status=$?
7192- echo "$as_me:$LINENO: \$? = $ac_status" >&5
7193- (exit $ac_status); }; }; then
7194- :
7195-else
7196- echo "$as_me: program exited with status $ac_status" >&5
7197-echo "$as_me: failed program was:" >&5
7198-sed 's/^/| /' conftest.$ac_ext >&5
7199+if ac_fn_c_try_run "$LINENO"; then :
7200
7201-( exit $ac_status )
7202-ac_cv_header_stdc=no
7203+else
7204+ ac_cv_header_stdc=no
7205 fi
7206-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7207+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7208+ conftest.$ac_objext conftest.beam conftest.$ac_ext
7209 fi
7210
7211-
7212 fi
7213 fi
7214-{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7215-echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7216+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7217+$as_echo "$ac_cv_header_stdc" >&6; }
7218 if test $ac_cv_header_stdc = yes; then
7219
7220-cat >>confdefs.h <<\_ACEOF
7221-#define STDC_HEADERS 1
7222-_ACEOF
7223+$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7224
7225 fi
7226
7227-# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7228-
7229-
7230-
7231-
7232-
7233-
7234+for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \
7235+fcntl.h grp.h \
7236+ieeefp.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
7237+shadow.h signal.h stdint.h stropts.h termios.h thread.h \
7238+unistd.h utime.h \
7239+sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \
7240+sys/lock.h sys/mkdev.h sys/modem.h \
7241+sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \
7242+sys/termio.h sys/time.h \
7243+sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
7244+sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
7245+bluetooth/bluetooth.h linux/tipc.h
7246+do :
7247+ as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7248+ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7249+if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7250+ cat >>confdefs.h <<_ACEOF
7251+#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7252+_ACEOF
7253
7254+fi
7255
7256+done
7257
7258-for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7259- inttypes.h stdint.h unistd.h
7260-do
7261-as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7262-{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7263-echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7264-if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7265- echo $ECHO_N "(cached) $ECHO_C" >&6
7266+ac_header_dirent=no
7267+for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7268+ as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7269+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
7270+$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
7271+if eval \${$as_ac_Header+:} false; then :
7272+ $as_echo_n "(cached) " >&6
7273 else
7274- cat >conftest.$ac_ext <<_ACEOF
7275-/* confdefs.h. */
7276-_ACEOF
7277-cat confdefs.h >>conftest.$ac_ext
7278-cat >>conftest.$ac_ext <<_ACEOF
7279+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7280 /* end confdefs.h. */
7281-$ac_includes_default
7282+#include <sys/types.h>
7283+#include <$ac_hdr>
7284
7285-#include <$ac_header>
7286+int
7287+main ()
7288+{
7289+if ((DIR *) 0)
7290+return 0;
7291+ ;
7292+ return 0;
7293+}
7294 _ACEOF
7295-rm -f conftest.$ac_objext
7296-if { (ac_try="$ac_compile"
7297-case "(($ac_try" in
7298- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7299- *) ac_try_echo=$ac_try;;
7300-esac
7301-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7302- (eval "$ac_compile") 2>conftest.er1
7303- ac_status=$?
7304- grep -v '^ *+' conftest.er1 >conftest.err
7305- rm -f conftest.er1
7306- cat conftest.err >&5
7307- echo "$as_me:$LINENO: \$? = $ac_status" >&5
7308- (exit $ac_status); } && {
7309- test -z "$ac_c_werror_flag" ||
7310- test ! -s conftest.err
7311- } && test -s conftest.$ac_objext; then
7312+if ac_fn_c_try_compile "$LINENO"; then :
7313 eval "$as_ac_Header=yes"
7314 else
7315- echo "$as_me: failed program was:" >&5
7316-sed 's/^/| /' conftest.$ac_ext >&5
7317-
7318- eval "$as_ac_Header=no"
7319+ eval "$as_ac_Header=no"
7320 fi
7321-
7322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7323 fi
7324-ac_res=`eval echo '${'$as_ac_Header'}'`
7325- { echo "$as_me:$LINENO: result: $ac_res" >&5
7326-echo "${ECHO_T}$ac_res" >&6; }
7327-if test `eval echo '${'$as_ac_Header'}'` = yes; then
7328+eval ac_res=\$$as_ac_Header
7329+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7330+$as_echo "$ac_res" >&6; }
7331+if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7332 cat >>confdefs.h <<_ACEOF
7333-#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7334+#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7335 _ACEOF
7336
7337+ac_header_dirent=$ac_hdr; break
7338 fi
7339
7340 done
7341+# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7342+if test $ac_header_dirent = dirent.h; then
7343+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7344+$as_echo_n "checking for library containing opendir... " >&6; }
7345+if ${ac_cv_search_opendir+:} false; then :
7346+ $as_echo_n "(cached) " >&6
7347+else
7348+ ac_func_search_save_LIBS=$LIBS
7349+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7350+/* end confdefs.h. */
7351
7352+/* Override any GCC internal prototype to avoid an error.
7353+ Use char because int might match the return type of a GCC
7354+ builtin and then its argument prototype would still apply. */
7355+#ifdef __cplusplus
7356+extern "C"
7357+#endif
7358+char opendir ();
7359+int
7360+main ()
7361+{
7362+return opendir ();
7363+ ;
7364+ return 0;
7365+}
7366+_ACEOF
7367+for ac_lib in '' dir; do
7368+ if test -z "$ac_lib"; then
7369+ ac_res="none required"
7370+ else
7371+ ac_res=-l$ac_lib
7372+ LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7373+ fi
7374+ if ac_fn_c_try_link "$LINENO"; then :
7375+ ac_cv_search_opendir=$ac_res
7376+fi
7377+rm -f core conftest.err conftest.$ac_objext \
7378+ conftest$ac_exeext
7379+ if ${ac_cv_search_opendir+:} false; then :
7380+ break
7381+fi
7382+done
7383+if ${ac_cv_search_opendir+:} false; then :
7384
7385+else
7386+ ac_cv_search_opendir=no
7387+fi
7388+rm conftest.$ac_ext
7389+LIBS=$ac_func_search_save_LIBS
7390+fi
7391+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7392+$as_echo "$ac_cv_search_opendir" >&6; }
7393+ac_res=$ac_cv_search_opendir
7394+if test "$ac_res" != no; then :
7395+ test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7396
7397+fi
7398
7399+else
7400+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7401+$as_echo_n "checking for library containing opendir... " >&6; }
7402+if ${ac_cv_search_opendir+:} false; then :
7403+ $as_echo_n "(cached) " >&6
7404+else
7405+ ac_func_search_save_LIBS=$LIBS
7406+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7407+/* end confdefs.h. */
7408
7409+/* Override any GCC internal prototype to avoid an error.
7410+ Use char because int might match the return type of a GCC
7411+ builtin and then its argument prototype would still apply. */
7412+#ifdef __cplusplus
7413+extern "C"
7414+#endif
7415+char opendir ();
7416+int
7417+main ()
7418+{
7419+return opendir ();
7420+ ;
7421+ return 0;
7422+}
7423+_ACEOF
7424+for ac_lib in '' x; do
7425+ if test -z "$ac_lib"; then
7426+ ac_res="none required"
7427+ else
7428+ ac_res=-l$ac_lib
7429+ LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7430+ fi
7431+ if ac_fn_c_try_link "$LINENO"; then :
7432+ ac_cv_search_opendir=$ac_res
7433+fi
7434+rm -f core conftest.err conftest.$ac_objext \
7435+ conftest$ac_exeext
7436+ if ${ac_cv_search_opendir+:} false; then :
7437+ break
7438+fi
7439+done
7440+if ${ac_cv_search_opendir+:} false; then :
7441+
7442+else
7443+ ac_cv_search_opendir=no
7444+fi
7445+rm conftest.$ac_ext
7446+LIBS=$ac_func_search_save_LIBS
7447+fi
7448+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7449+$as_echo "$ac_cv_search_opendir" >&6; }
7450+ac_res=$ac_cv_search_opendir
7451+if test "$ac_res" != no; then :
7452+ test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7453
7454+fi
7455
7456+fi
7457
7458+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
7459+$as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
7460+if ${ac_cv_header_sys_types_h_makedev+:} false; then :
7461+ $as_echo_n "(cached) " >&6
7462+else
7463+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7464+/* end confdefs.h. */
7465+#include <sys/types.h>
7466+int
7467+main ()
7468+{
7469+return makedev(0, 0);
7470+ ;
7471+ return 0;
7472+}
7473+_ACEOF
7474+if ac_fn_c_try_link "$LINENO"; then :
7475+ ac_cv_header_sys_types_h_makedev=yes
7476+else
7477+ ac_cv_header_sys_types_h_makedev=no
7478+fi
7479+rm -f core conftest.err conftest.$ac_objext \
7480+ conftest$ac_exeext conftest.$ac_ext
7481
7482+fi
7483+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
7484+$as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
7485
7486+if test $ac_cv_header_sys_types_h_makedev = no; then
7487+ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
7488+if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
7489
7490+$as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
7491
7492+fi
7493
7494
7495
7496+ if test $ac_cv_header_sys_mkdev_h = no; then
7497+ ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
7498+if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
7499
7500+$as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
7501
7502+fi
7503
7504
7505+ fi
7506+fi
7507
7508
7509+# On Solaris, term.h requires curses.h
7510+for ac_header in term.h
7511+do :
7512+ ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "
7513+#ifdef HAVE_CURSES_H
7514+#include <curses.h>
7515+#endif
7516
7517+"
7518+if test "x$ac_cv_header_term_h" = xyes; then :
7519+ cat >>confdefs.h <<_ACEOF
7520+#define HAVE_TERM_H 1
7521+_ACEOF
7522
7523+fi
7524
7525+done
7526
7527
7528+# On Linux, netlink.h requires asm/types.h
7529+for ac_header in linux/netlink.h
7530+do :
7531+ ac_fn_c_check_header_compile "$LINENO" "linux/netlink.h" "ac_cv_header_linux_netlink_h" "
7532+#ifdef HAVE_ASM_TYPES_H
7533+#include <asm/types.h>
7534+#endif
7535+#ifdef HAVE_SYS_SOCKET_H
7536+#include <sys/socket.h>
7537+#endif
7538
7539+"
7540+if test "x$ac_cv_header_linux_netlink_h" = xyes; then :
7541+ cat >>confdefs.h <<_ACEOF
7542+#define HAVE_LINUX_NETLINK_H 1
7543+_ACEOF
7544
7545+fi
7546
7547+done
7548
7549
7550+# checks for typedefs
7551+was_it_defined=no
7552+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t in time.h" >&5
7553+$as_echo_n "checking for clock_t in time.h... " >&6; }
7554+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7555+/* end confdefs.h. */
7556+#include <time.h>
7557
7558+_ACEOF
7559+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7560+ $EGREP "clock_t" >/dev/null 2>&1; then :
7561+ was_it_defined=yes
7562+else
7563
7564
7565+$as_echo "#define clock_t long" >>confdefs.h
7566
7567
7568+fi
7569+rm -f conftest*
7570
7571+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5
7572+$as_echo "$was_it_defined" >&6; }
7573
7574-
7575-
7576-
7577-
7578-
7579-
7580-
7581-
7582-
7583-
7584-
7585-
7586-
7587-
7588-
7589-
7590-
7591-
7592-for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \
7593-fcntl.h grp.h \
7594-ieeefp.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
7595-shadow.h signal.h stdint.h stropts.h termios.h thread.h \
7596-unistd.h utime.h \
7597-sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \
7598-sys/lock.h sys/mkdev.h sys/modem.h \
7599-sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \
7600-sys/termio.h sys/time.h \
7601-sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
7602-sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
7603-bluetooth/bluetooth.h linux/tipc.h
7604-do
7605-as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7606-if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7607- { echo "$as_me:$LINENO: checking for $ac_header" >&5
7608-echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7609-if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7610- echo $ECHO_N "(cached) $ECHO_C" >&6
7611-fi
7612-ac_res=`eval echo '${'$as_ac_Header'}'`
7613- { echo "$as_me:$LINENO: result: $ac_res" >&5
7614-echo "${ECHO_T}$ac_res" >&6; }
7615-else
7616- # Is the header compilable?
7617-{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7618-echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7619-cat >conftest.$ac_ext <<_ACEOF
7620-/* confdefs.h. */
7621+# Check whether using makedev requires defining _OSF_SOURCE
7622+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for makedev" >&5
7623+$as_echo_n "checking for makedev... " >&6; }
7624+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7625+/* end confdefs.h. */
7626+#include <sys/types.h>
7627+int
7628+main ()
7629+{
7630+ makedev(0, 0)
7631+ ;
7632+ return 0;
7633+}
7634 _ACEOF
7635-cat confdefs.h >>conftest.$ac_ext
7636-cat >>conftest.$ac_ext <<_ACEOF
7637+if ac_fn_c_try_link "$LINENO"; then :
7638+ ac_cv_has_makedev=yes
7639+else
7640+ ac_cv_has_makedev=no
7641+fi
7642+rm -f core conftest.err conftest.$ac_objext \
7643+ conftest$ac_exeext conftest.$ac_ext
7644+if test "$ac_cv_has_makedev" = "no"; then
7645+ # we didn't link, try if _OSF_SOURCE will allow us to link
7646+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7647 /* end confdefs.h. */
7648-$ac_includes_default
7649-#include <$ac_header>
7650+
7651+#define _OSF_SOURCE 1
7652+#include <sys/types.h>
7653+
7654+int
7655+main ()
7656+{
7657+ makedev(0, 0)
7658+ ;
7659+ return 0;
7660+}
7661 _ACEOF
7662-rm -f conftest.$ac_objext
7663-if { (ac_try="$ac_compile"
7664-case "(($ac_try" in
7665- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7666- *) ac_try_echo=$ac_try;;
7667-esac
7668-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7669- (eval "$ac_compile") 2>conftest.er1
7670- ac_status=$?
7671- grep -v '^ *+' conftest.er1 >conftest.err
7672- rm -f conftest.er1
7673- cat conftest.err >&5
7674- echo "$as_me:$LINENO: \$? = $ac_status" >&5
7675- (exit $ac_status); } && {
7676- test -z "$ac_c_werror_flag" ||
7677- test ! -s conftest.err
7678- } && test -s conftest.$ac_objext; then
7679- ac_header_compiler=yes
7680+if ac_fn_c_try_link "$LINENO"; then :
7681+ ac_cv_has_makedev=yes
7682 else
7683- echo "$as_me: failed program was:" >&5
7684-sed 's/^/| /' conftest.$ac_ext >&5
7685+ ac_cv_has_makedev=no
7686+fi
7687+rm -f core conftest.err conftest.$ac_objext \
7688+ conftest$ac_exeext conftest.$ac_ext
7689+ if test "$ac_cv_has_makedev" = "yes"; then
7690
7691- ac_header_compiler=no
7692+$as_echo "#define _OSF_SOURCE 1" >>confdefs.h
7693+
7694+ fi
7695 fi
7696+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_makedev" >&5
7697+$as_echo "$ac_cv_has_makedev" >&6; }
7698+if test "$ac_cv_has_makedev" = "yes"; then
7699
7700-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7701-{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7702-echo "${ECHO_T}$ac_header_compiler" >&6; }
7703+$as_echo "#define HAVE_MAKEDEV 1" >>confdefs.h
7704
7705-# Is the header present?
7706-{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
7707-echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7708-cat >conftest.$ac_ext <<_ACEOF
7709-/* confdefs.h. */
7710-_ACEOF
7711-cat confdefs.h >>conftest.$ac_ext
7712-cat >>conftest.$ac_ext <<_ACEOF
7713+fi
7714+
7715+# Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
7716+# the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
7717+# defined, but the compiler does not support pragma redefine_extname,
7718+# and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
7719+# structures (such as rlimit64) without declaring them. As a
7720+# work-around, disable LFS on such configurations
7721+
7722+use_lfs=yes
7723+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Solaris LFS bug" >&5
7724+$as_echo_n "checking Solaris LFS bug... " >&6; }
7725+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7726 /* end confdefs.h. */
7727-#include <$ac_header>
7728+
7729+#define _LARGEFILE_SOURCE 1
7730+#define _FILE_OFFSET_BITS 64
7731+#include <sys/resource.h>
7732+
7733+int
7734+main ()
7735+{
7736+struct rlimit foo;
7737+ ;
7738+ return 0;
7739+}
7740 _ACEOF
7741-if { (ac_try="$ac_cpp conftest.$ac_ext"
7742-case "(($ac_try" in
7743- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7744- *) ac_try_echo=$ac_try;;
7745-esac
7746-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7747- (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7748- ac_status=$?
7749- grep -v '^ *+' conftest.er1 >conftest.err
7750- rm -f conftest.er1
7751- cat conftest.err >&5
7752- echo "$as_me:$LINENO: \$? = $ac_status" >&5
7753- (exit $ac_status); } >/dev/null && {
7754- test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7755- test ! -s conftest.err
7756- }; then
7757- ac_header_preproc=yes
7758+if ac_fn_c_try_compile "$LINENO"; then :
7759+ sol_lfs_bug=no
7760 else
7761- echo "$as_me: failed program was:" >&5
7762-sed 's/^/| /' conftest.$ac_ext >&5
7763+ sol_lfs_bug=yes
7764+fi
7765+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7766+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sol_lfs_bug" >&5
7767+$as_echo "$sol_lfs_bug" >&6; }
7768+if test "$sol_lfs_bug" = "yes"; then
7769+ use_lfs=no
7770+fi
7771+
7772+if test "$use_lfs" = "yes"; then
7773+# Two defines needed to enable largefile support on various platforms
7774+# These may affect some typedefs
7775+
7776+$as_echo "#define _LARGEFILE_SOURCE 1" >>confdefs.h
7777+
7778+
7779+$as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
7780
7781- ac_header_preproc=no
7782 fi
7783
7784-rm -f conftest.err conftest.$ac_ext
7785-{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7786-echo "${ECHO_T}$ac_header_preproc" >&6; }
7787+# Add some code to confdefs.h so that the test for off_t works on SCO
7788+cat >> confdefs.h <<\EOF
7789+#if defined(SCO_DS)
7790+#undef _OFF_T
7791+#endif
7792+EOF
7793+
7794+# Type availability checks
7795+ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
7796+if test "x$ac_cv_type_mode_t" = xyes; then :
7797
7798-# So? What about this header?
7799-case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7800- yes:no: )
7801- { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7802-echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7803- { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7804-echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7805- ac_header_preproc=yes
7806- ;;
7807- no:yes:* )
7808- { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7809-echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7810- { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7811-echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7812- { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7813-echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7814- { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7815-echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7816- { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7817-echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7818- { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7819-echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7820- ( cat <<\_ASBOX
7821-## ------------------------------------------------ ##
7822-## Report this to http://www.python.org/python-bugs ##
7823-## ------------------------------------------------ ##
7824-_ASBOX
7825- ) | sed "s/^/$as_me: WARNING: /" >&2
7826- ;;
7827-esac
7828-{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7829-echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7830-if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7831- echo $ECHO_N "(cached) $ECHO_C" >&6
7832 else
7833- eval "$as_ac_Header=\$ac_header_preproc"
7834-fi
7835-ac_res=`eval echo '${'$as_ac_Header'}'`
7836- { echo "$as_me:$LINENO: result: $ac_res" >&5
7837-echo "${ECHO_T}$ac_res" >&6; }
7838
7839-fi
7840-if test `eval echo '${'$as_ac_Header'}'` = yes; then
7841- cat >>confdefs.h <<_ACEOF
7842-#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7843+cat >>confdefs.h <<_ACEOF
7844+#define mode_t int
7845 _ACEOF
7846
7847 fi
7848
7849-done
7850-
7851+ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
7852+if test "x$ac_cv_type_off_t" = xyes; then :
7853
7854+else
7855
7856+cat >>confdefs.h <<_ACEOF
7857+#define off_t long int
7858+_ACEOF
7859
7860+fi
7861
7862+ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7863+if test "x$ac_cv_type_pid_t" = xyes; then :
7864
7865-ac_header_dirent=no
7866-for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7867- as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7868-{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
7869-echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
7870-if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7871- echo $ECHO_N "(cached) $ECHO_C" >&6
7872 else
7873- cat >conftest.$ac_ext <<_ACEOF
7874-/* confdefs.h. */
7875+
7876+cat >>confdefs.h <<_ACEOF
7877+#define pid_t int
7878 _ACEOF
7879-cat confdefs.h >>conftest.$ac_ext
7880-cat >>conftest.$ac_ext <<_ACEOF
7881+
7882+fi
7883+
7884+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
7885+$as_echo_n "checking return type of signal handlers... " >&6; }
7886+if ${ac_cv_type_signal+:} false; then :
7887+ $as_echo_n "(cached) " >&6
7888+else
7889+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7890 /* end confdefs.h. */
7891 #include <sys/types.h>
7892-#include <$ac_hdr>
7893+#include <signal.h>
7894
7895 int
7896 main ()
7897 {
7898-if ((DIR *) 0)
7899-return 0;
7900+return *(signal (0, 0)) (0) == 1;
7901 ;
7902 return 0;
7903 }
7904 _ACEOF
7905-rm -f conftest.$ac_objext
7906-if { (ac_try="$ac_compile"
7907-case "(($ac_try" in
7908- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7909- *) ac_try_echo=$ac_try;;
7910-esac
7911-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7912- (eval "$ac_compile") 2>conftest.er1
7913- ac_status=$?
7914- grep -v '^ *+' conftest.er1 >conftest.err
7915- rm -f conftest.er1
7916- cat conftest.err >&5
7917- echo "$as_me:$LINENO: \$? = $ac_status" >&5
7918- (exit $ac_status); } && {
7919- test -z "$ac_c_werror_flag" ||
7920- test ! -s conftest.err
7921- } && test -s conftest.$ac_objext; then
7922- eval "$as_ac_Header=yes"
7923+if ac_fn_c_try_compile "$LINENO"; then :
7924+ ac_cv_type_signal=int
7925 else
7926- echo "$as_me: failed program was:" >&5
7927-sed 's/^/| /' conftest.$ac_ext >&5
7928-
7929- eval "$as_ac_Header=no"
7930+ ac_cv_type_signal=void
7931 fi
7932-
7933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7934 fi
7935-ac_res=`eval echo '${'$as_ac_Header'}'`
7936- { echo "$as_me:$LINENO: result: $ac_res" >&5
7937-echo "${ECHO_T}$ac_res" >&6; }
7938-if test `eval echo '${'$as_ac_Header'}'` = yes; then
7939- cat >>confdefs.h <<_ACEOF
7940-#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7941+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
7942+$as_echo "$ac_cv_type_signal" >&6; }
7943+
7944+cat >>confdefs.h <<_ACEOF
7945+#define RETSIGTYPE $ac_cv_type_signal
7946 _ACEOF
7947
7948-ac_header_dirent=$ac_hdr; break
7949-fi
7950
7951-done
7952-# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7953-if test $ac_header_dirent = dirent.h; then
7954- { echo "$as_me:$LINENO: checking for library containing opendir" >&5
7955-echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
7956-if test "${ac_cv_search_opendir+set}" = set; then
7957- echo $ECHO_N "(cached) $ECHO_C" >&6
7958+ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7959+if test "x$ac_cv_type_size_t" = xyes; then :
7960+
7961 else
7962- ac_func_search_save_LIBS=$LIBS
7963-cat >conftest.$ac_ext <<_ACEOF
7964-/* confdefs.h. */
7965+
7966+cat >>confdefs.h <<_ACEOF
7967+#define size_t unsigned int
7968 _ACEOF
7969-cat confdefs.h >>conftest.$ac_ext
7970-cat >>conftest.$ac_ext <<_ACEOF
7971+
7972+fi
7973+
7974+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
7975+$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7976+if ${ac_cv_type_uid_t+:} false; then :
7977+ $as_echo_n "(cached) " >&6
7978+else
7979+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7980 /* end confdefs.h. */
7981+#include <sys/types.h>
7982
7983-/* Override any GCC internal prototype to avoid an error.
7984- Use char because int might match the return type of a GCC
7985- builtin and then its argument prototype would still apply. */
7986-#ifdef __cplusplus
7987-extern "C"
7988-#endif
7989-char opendir ();
7990-int
7991-main ()
7992-{
7993-return opendir ();
7994- ;
7995- return 0;
7996-}
7997 _ACEOF
7998-for ac_lib in '' dir; do
7999- if test -z "$ac_lib"; then
8000- ac_res="none required"
8001- else
8002- ac_res=-l$ac_lib
8003- LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8004- fi
8005- rm -f conftest.$ac_objext conftest$ac_exeext
8006-if { (ac_try="$ac_link"
8007-case "(($ac_try" in
8008- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8009- *) ac_try_echo=$ac_try;;
8010-esac
8011-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8012- (eval "$ac_link") 2>conftest.er1
8013- ac_status=$?
8014- grep -v '^ *+' conftest.er1 >conftest.err
8015- rm -f conftest.er1
8016- cat conftest.err >&5
8017- echo "$as_me:$LINENO: \$? = $ac_status" >&5
8018- (exit $ac_status); } && {
8019- test -z "$ac_c_werror_flag" ||
8020- test ! -s conftest.err
8021- } && test -s conftest$ac_exeext &&
8022- $as_test_x conftest$ac_exeext; then
8023- ac_cv_search_opendir=$ac_res
8024+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8025+ $EGREP "uid_t" >/dev/null 2>&1; then :
8026+ ac_cv_type_uid_t=yes
8027 else
8028- echo "$as_me: failed program was:" >&5
8029-sed 's/^/| /' conftest.$ac_ext >&5
8030+ ac_cv_type_uid_t=no
8031+fi
8032+rm -f conftest*
8033+
8034+fi
8035+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
8036+$as_echo "$ac_cv_type_uid_t" >&6; }
8037+if test $ac_cv_type_uid_t = no; then
8038+
8039+$as_echo "#define uid_t int" >>confdefs.h
8040+
8041
8042+$as_echo "#define gid_t int" >>confdefs.h
8043
8044 fi
8045
8046-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8047- conftest$ac_exeext
8048- if test "${ac_cv_search_opendir+set}" = set; then
8049- break
8050+ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
8051+if test "x$ac_cv_type_ssize_t" = xyes; then :
8052+
8053+$as_echo "#define HAVE_SSIZE_T 1" >>confdefs.h
8054+
8055 fi
8056-done
8057-if test "${ac_cv_search_opendir+set}" = set; then
8058- :
8059+
8060+
8061+# Sizes of various common basic types
8062+# ANSI C requires sizeof(char) == 1, so no need to check it
8063+# The cast to long int works around a bug in the HP C Compiler
8064+# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8065+# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8066+# This bug is HP SR number 8606223364.
8067+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
8068+$as_echo_n "checking size of int... " >&6; }
8069+if ${ac_cv_sizeof_int+:} false; then :
8070+ $as_echo_n "(cached) " >&6
8071+else
8072+ if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
8073+
8074 else
8075- ac_cv_search_opendir=no
8076-fi
8077-rm conftest.$ac_ext
8078-LIBS=$ac_func_search_save_LIBS
8079+ if test "$ac_cv_type_int" = yes; then
8080+ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8081+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8082+as_fn_error 77 "cannot compute sizeof (int)
8083+See \`config.log' for more details" "$LINENO" 5; }
8084+ else
8085+ ac_cv_sizeof_int=0
8086+ fi
8087 fi
8088-{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8089-echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8090-ac_res=$ac_cv_search_opendir
8091-if test "$ac_res" != no; then
8092- test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8093
8094 fi
8095+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
8096+$as_echo "$ac_cv_sizeof_int" >&6; }
8097
8098-else
8099- { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8100-echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8101-if test "${ac_cv_search_opendir+set}" = set; then
8102- echo $ECHO_N "(cached) $ECHO_C" >&6
8103-else
8104- ac_func_search_save_LIBS=$LIBS
8105-cat >conftest.$ac_ext <<_ACEOF
8106-/* confdefs.h. */
8107-_ACEOF
8108-cat confdefs.h >>conftest.$ac_ext
8109-cat >>conftest.$ac_ext <<_ACEOF
8110-/* end confdefs.h. */
8111
8112-/* Override any GCC internal prototype to avoid an error.
8113- Use char because int might match the return type of a GCC
8114- builtin and then its argument prototype would still apply. */
8115-#ifdef __cplusplus
8116-extern "C"
8117-#endif
8118-char opendir ();
8119-int
8120-main ()
8121-{
8122-return opendir ();
8123- ;
8124- return 0;
8125-}
8126+
8127+cat >>confdefs.h <<_ACEOF
8128+#define SIZEOF_INT $ac_cv_sizeof_int
8129 _ACEOF
8130-for ac_lib in '' x; do
8131- if test -z "$ac_lib"; then
8132- ac_res="none required"
8133- else
8134- ac_res=-l$ac_lib
8135- LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8136- fi
8137- rm -f conftest.$ac_objext conftest$ac_exeext
8138-if { (ac_try="$ac_link"
8139-case "(($ac_try" in
8140- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8141- *) ac_try_echo=$ac_try;;
8142-esac
8143-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8144- (eval "$ac_link") 2>conftest.er1
8145- ac_status=$?
8146- grep -v '^ *+' conftest.er1 >conftest.err
8147- rm -f conftest.er1
8148- cat conftest.err >&5
8149- echo "$as_me:$LINENO: \$? = $ac_status" >&5
8150- (exit $ac_status); } && {
8151- test -z "$ac_c_werror_flag" ||
8152- test ! -s conftest.err
8153- } && test -s conftest$ac_exeext &&
8154- $as_test_x conftest$ac_exeext; then
8155- ac_cv_search_opendir=$ac_res
8156-else
8157- echo "$as_me: failed program was:" >&5
8158-sed 's/^/| /' conftest.$ac_ext >&5
8159
8160
8161-fi
8162+# The cast to long int works around a bug in the HP C Compiler
8163+# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8164+# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8165+# This bug is HP SR number 8606223364.
8166+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
8167+$as_echo_n "checking size of long... " >&6; }
8168+if ${ac_cv_sizeof_long+:} false; then :
8169+ $as_echo_n "(cached) " >&6
8170+else
8171+ if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
8172
8173-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8174- conftest$ac_exeext
8175- if test "${ac_cv_search_opendir+set}" = set; then
8176- break
8177-fi
8178-done
8179-if test "${ac_cv_search_opendir+set}" = set; then
8180- :
8181 else
8182- ac_cv_search_opendir=no
8183-fi
8184-rm conftest.$ac_ext
8185-LIBS=$ac_func_search_save_LIBS
8186+ if test "$ac_cv_type_long" = yes; then
8187+ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8188+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8189+as_fn_error 77 "cannot compute sizeof (long)
8190+See \`config.log' for more details" "$LINENO" 5; }
8191+ else
8192+ ac_cv_sizeof_long=0
8193+ fi
8194 fi
8195-{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8196-echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8197-ac_res=$ac_cv_search_opendir
8198-if test "$ac_res" != no; then
8199- test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8200
8201 fi
8202+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
8203+$as_echo "$ac_cv_sizeof_long" >&6; }
8204
8205-fi
8206
8207-{ echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
8208-echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
8209-if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
8210- echo $ECHO_N "(cached) $ECHO_C" >&6
8211-else
8212- cat >conftest.$ac_ext <<_ACEOF
8213-/* confdefs.h. */
8214-_ACEOF
8215-cat confdefs.h >>conftest.$ac_ext
8216-cat >>conftest.$ac_ext <<_ACEOF
8217-/* end confdefs.h. */
8218-#include <sys/types.h>
8219-int
8220-main ()
8221-{
8222-return makedev(0, 0);
8223- ;
8224- return 0;
8225-}
8226+
8227+cat >>confdefs.h <<_ACEOF
8228+#define SIZEOF_LONG $ac_cv_sizeof_long
8229 _ACEOF
8230-rm -f conftest.$ac_objext conftest$ac_exeext
8231-if { (ac_try="$ac_link"
8232-case "(($ac_try" in
8233- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8234- *) ac_try_echo=$ac_try;;
8235-esac
8236-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8237- (eval "$ac_link") 2>conftest.er1
8238- ac_status=$?
8239- grep -v '^ *+' conftest.er1 >conftest.err
8240- rm -f conftest.er1
8241- cat conftest.err >&5
8242- echo "$as_me:$LINENO: \$? = $ac_status" >&5
8243- (exit $ac_status); } && {
8244- test -z "$ac_c_werror_flag" ||
8245- test ! -s conftest.err
8246- } && test -s conftest$ac_exeext &&
8247- $as_test_x conftest$ac_exeext; then
8248- ac_cv_header_sys_types_h_makedev=yes
8249-else
8250- echo "$as_me: failed program was:" >&5
8251-sed 's/^/| /' conftest.$ac_ext >&5
8252
8253- ac_cv_header_sys_types_h_makedev=no
8254-fi
8255
8256-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8257- conftest$ac_exeext conftest.$ac_ext
8258+# The cast to long int works around a bug in the HP C Compiler
8259+# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8260+# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8261+# This bug is HP SR number 8606223364.
8262+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
8263+$as_echo_n "checking size of void *... " >&6; }
8264+if ${ac_cv_sizeof_void_p+:} false; then :
8265+ $as_echo_n "(cached) " >&6
8266+else
8267+ if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
8268
8269+else
8270+ if test "$ac_cv_type_void_p" = yes; then
8271+ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8272+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8273+as_fn_error 77 "cannot compute sizeof (void *)
8274+See \`config.log' for more details" "$LINENO" 5; }
8275+ else
8276+ ac_cv_sizeof_void_p=0
8277+ fi
8278 fi
8279-{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
8280-echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
8281
8282-if test $ac_cv_header_sys_types_h_makedev = no; then
8283-if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
8284- { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
8285-echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
8286-if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
8287- echo $ECHO_N "(cached) $ECHO_C" >&6
8288 fi
8289-{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
8290-echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
8291-else
8292- # Is the header compilable?
8293-{ echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
8294-echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
8295-cat >conftest.$ac_ext <<_ACEOF
8296-/* confdefs.h. */
8297-_ACEOF
8298-cat confdefs.h >>conftest.$ac_ext
8299-cat >>conftest.$ac_ext <<_ACEOF
8300-/* end confdefs.h. */
8301-$ac_includes_default
8302-#include <sys/mkdev.h>
8303+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
8304+$as_echo "$ac_cv_sizeof_void_p" >&6; }
8305+
8306+
8307+
8308+cat >>confdefs.h <<_ACEOF
8309+#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8310 _ACEOF
8311-rm -f conftest.$ac_objext
8312-if { (ac_try="$ac_compile"
8313-case "(($ac_try" in
8314- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8315- *) ac_try_echo=$ac_try;;
8316-esac
8317-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8318- (eval "$ac_compile") 2>conftest.er1
8319- ac_status=$?
8320- grep -v '^ *+' conftest.er1 >conftest.err
8321- rm -f conftest.er1
8322- cat conftest.err >&5
8323- echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324- (exit $ac_status); } && {
8325- test -z "$ac_c_werror_flag" ||
8326- test ! -s conftest.err
8327- } && test -s conftest.$ac_objext; then
8328- ac_header_compiler=yes
8329+
8330+
8331+# The cast to long int works around a bug in the HP C Compiler
8332+# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8333+# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8334+# This bug is HP SR number 8606223364.
8335+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
8336+$as_echo_n "checking size of short... " >&6; }
8337+if ${ac_cv_sizeof_short+:} false; then :
8338+ $as_echo_n "(cached) " >&6
8339+else
8340+ if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
8341+
8342 else
8343- echo "$as_me: failed program was:" >&5
8344-sed 's/^/| /' conftest.$ac_ext >&5
8345+ if test "$ac_cv_type_short" = yes; then
8346+ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8347+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8348+as_fn_error 77 "cannot compute sizeof (short)
8349+See \`config.log' for more details" "$LINENO" 5; }
8350+ else
8351+ ac_cv_sizeof_short=0
8352+ fi
8353+fi
8354
8355- ac_header_compiler=no
8356 fi
8357+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
8358+$as_echo "$ac_cv_sizeof_short" >&6; }
8359
8360-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8361-{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8362-echo "${ECHO_T}$ac_header_compiler" >&6; }
8363
8364-# Is the header present?
8365-{ echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
8366-echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
8367-cat >conftest.$ac_ext <<_ACEOF
8368-/* confdefs.h. */
8369-_ACEOF
8370-cat confdefs.h >>conftest.$ac_ext
8371-cat >>conftest.$ac_ext <<_ACEOF
8372-/* end confdefs.h. */
8373-#include <sys/mkdev.h>
8374+
8375+cat >>confdefs.h <<_ACEOF
8376+#define SIZEOF_SHORT $ac_cv_sizeof_short
8377 _ACEOF
8378-if { (ac_try="$ac_cpp conftest.$ac_ext"
8379-case "(($ac_try" in
8380- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8381- *) ac_try_echo=$ac_try;;
8382-esac
8383-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8384- (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8385- ac_status=$?
8386- grep -v '^ *+' conftest.er1 >conftest.err
8387- rm -f conftest.er1
8388- cat conftest.err >&5
8389- echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390- (exit $ac_status); } >/dev/null && {
8391- test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8392- test ! -s conftest.err
8393- }; then
8394- ac_header_preproc=yes
8395-else
8396- echo "$as_me: failed program was:" >&5
8397-sed 's/^/| /' conftest.$ac_ext >&5
8398
8399- ac_header_preproc=no
8400-fi
8401
8402-rm -f conftest.err conftest.$ac_ext
8403-{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8404-echo "${ECHO_T}$ac_header_preproc" >&6; }
8405+# The cast to long int works around a bug in the HP C Compiler
8406+# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8407+# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8408+# This bug is HP SR number 8606223364.
8409+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
8410+$as_echo_n "checking size of float... " >&6; }
8411+if ${ac_cv_sizeof_float+:} false; then :
8412+ $as_echo_n "(cached) " >&6
8413+else
8414+ if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
8415
8416-# So? What about this header?
8417-case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8418- yes:no: )
8419- { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
8420-echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8421- { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
8422-echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
8423- ac_header_preproc=yes
8424- ;;
8425- no:yes:* )
8426- { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
8427-echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
8428- { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
8429-echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
8430- { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
8431-echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
8432- { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
8433-echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
8434- { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
8435-echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
8436- { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
8437-echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
8438- ( cat <<\_ASBOX
8439-## ------------------------------------------------ ##
8440-## Report this to http://www.python.org/python-bugs ##
8441-## ------------------------------------------------ ##
8442-_ASBOX
8443- ) | sed "s/^/$as_me: WARNING: /" >&2
8444- ;;
8445-esac
8446-{ echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
8447-echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
8448-if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
8449- echo $ECHO_N "(cached) $ECHO_C" >&6
8450 else
8451- ac_cv_header_sys_mkdev_h=$ac_header_preproc
8452+ if test "$ac_cv_type_float" = yes; then
8453+ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8454+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8455+as_fn_error 77 "cannot compute sizeof (float)
8456+See \`config.log' for more details" "$LINENO" 5; }
8457+ else
8458+ ac_cv_sizeof_float=0
8459+ fi
8460 fi
8461-{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
8462-echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
8463
8464 fi
8465-if test $ac_cv_header_sys_mkdev_h = yes; then
8466+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
8467+$as_echo "$ac_cv_sizeof_float" >&6; }
8468+
8469
8470-cat >>confdefs.h <<\_ACEOF
8471-#define MAJOR_IN_MKDEV 1
8472+
8473+cat >>confdefs.h <<_ACEOF
8474+#define SIZEOF_FLOAT $ac_cv_sizeof_float
8475 _ACEOF
8476
8477-fi
8478
8479+# The cast to long int works around a bug in the HP C Compiler
8480+# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8481+# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8482+# This bug is HP SR number 8606223364.
8483+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
8484+$as_echo_n "checking size of double... " >&6; }
8485+if ${ac_cv_sizeof_double+:} false; then :
8486+ $as_echo_n "(cached) " >&6
8487+else
8488+ if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
8489
8490+else
8491+ if test "$ac_cv_type_double" = yes; then
8492+ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8493+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8494+as_fn_error 77 "cannot compute sizeof (double)
8495+See \`config.log' for more details" "$LINENO" 5; }
8496+ else
8497+ ac_cv_sizeof_double=0
8498+ fi
8499+fi
8500
8501- if test $ac_cv_header_sys_mkdev_h = no; then
8502- if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
8503- { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
8504-echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
8505-if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
8506- echo $ECHO_N "(cached) $ECHO_C" >&6
8507 fi
8508-{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
8509-echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
8510-else
8511- # Is the header compilable?
8512-{ echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
8513-echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
8514-cat >conftest.$ac_ext <<_ACEOF
8515-/* confdefs.h. */
8516-_ACEOF
8517-cat confdefs.h >>conftest.$ac_ext
8518-cat >>conftest.$ac_ext <<_ACEOF
8519-/* end confdefs.h. */
8520-$ac_includes_default
8521-#include <sys/sysmacros.h>
8522-_ACEOF
8523-rm -f conftest.$ac_objext
8524-if { (ac_try="$ac_compile"
8525-case "(($ac_try" in
8526- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8527- *) ac_try_echo=$ac_try;;
8528-esac
8529-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8530- (eval "$ac_compile") 2>conftest.er1
8531- ac_status=$?
8532- grep -v '^ *+' conftest.er1 >conftest.err
8533- rm -f conftest.er1
8534- cat conftest.err >&5
8535- echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536- (exit $ac_status); } && {
8537- test -z "$ac_c_werror_flag" ||
8538- test ! -s conftest.err
8539- } && test -s conftest.$ac_objext; then
8540- ac_header_compiler=yes
8541-else
8542- echo "$as_me: failed program was:" >&5
8543-sed 's/^/| /' conftest.$ac_ext >&5
8544+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
8545+$as_echo "$ac_cv_sizeof_double" >&6; }
8546
8547- ac_header_compiler=no
8548-fi
8549
8550-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8551-{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8552-echo "${ECHO_T}$ac_header_compiler" >&6; }
8553
8554-# Is the header present?
8555-{ echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
8556-echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
8557-cat >conftest.$ac_ext <<_ACEOF
8558-/* confdefs.h. */
8559-_ACEOF
8560-cat confdefs.h >>conftest.$ac_ext
8561-cat >>conftest.$ac_ext <<_ACEOF
8562-/* end confdefs.h. */
8563-#include <sys/sysmacros.h>
8564+cat >>confdefs.h <<_ACEOF
8565+#define SIZEOF_DOUBLE $ac_cv_sizeof_double
8566 _ACEOF
8567-if { (ac_try="$ac_cpp conftest.$ac_ext"
8568-case "(($ac_try" in
8569- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8570- *) ac_try_echo=$ac_try;;
8571-esac
8572-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8573- (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8574- ac_status=$?
8575- grep -v '^ *+' conftest.er1 >conftest.err
8576- rm -f conftest.er1
8577- cat conftest.err >&5
8578- echo "$as_me:$LINENO: \$? = $ac_status" >&5
8579- (exit $ac_status); } >/dev/null && {
8580- test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8581- test ! -s conftest.err
8582- }; then
8583- ac_header_preproc=yes
8584-else
8585- echo "$as_me: failed program was:" >&5
8586-sed 's/^/| /' conftest.$ac_ext >&5
8587
8588- ac_header_preproc=no
8589-fi
8590
8591-rm -f conftest.err conftest.$ac_ext
8592-{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8593-echo "${ECHO_T}$ac_header_preproc" >&6; }
8594+# The cast to long int works around a bug in the HP C Compiler
8595+# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8596+# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8597+# This bug is HP SR number 8606223364.
8598+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of fpos_t" >&5
8599+$as_echo_n "checking size of fpos_t... " >&6; }
8600+if ${ac_cv_sizeof_fpos_t+:} false; then :
8601+ $as_echo_n "(cached) " >&6
8602+else
8603+ if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (fpos_t))" "ac_cv_sizeof_fpos_t" "$ac_includes_default"; then :
8604
8605-# So? What about this header?
8606-case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8607- yes:no: )
8608- { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
8609-echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8610- { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
8611-echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
8612- ac_header_preproc=yes
8613- ;;
8614- no:yes:* )
8615- { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
8616-echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
8617- { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
8618-echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
8619- { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
8620-echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
8621- { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
8622-echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
8623- { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
8624-echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
8625- { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
8626-echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
8627- ( cat <<\_ASBOX
8628-## ------------------------------------------------ ##
8629-## Report this to http://www.python.org/python-bugs ##
8630-## ------------------------------------------------ ##
8631-_ASBOX
8632- ) | sed "s/^/$as_me: WARNING: /" >&2
8633- ;;
8634-esac
8635-{ echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
8636-echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
8637-if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
8638- echo $ECHO_N "(cached) $ECHO_C" >&6
8639 else
8640- ac_cv_header_sys_sysmacros_h=$ac_header_preproc
8641+ if test "$ac_cv_type_fpos_t" = yes; then
8642+ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8643+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8644+as_fn_error 77 "cannot compute sizeof (fpos_t)
8645+See \`config.log' for more details" "$LINENO" 5; }
8646+ else
8647+ ac_cv_sizeof_fpos_t=0
8648+ fi
8649 fi
8650-{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
8651-echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
8652
8653 fi
8654-if test $ac_cv_header_sys_sysmacros_h = yes; then
8655+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_fpos_t" >&5
8656+$as_echo "$ac_cv_sizeof_fpos_t" >&6; }
8657+
8658
8659-cat >>confdefs.h <<\_ACEOF
8660-#define MAJOR_IN_SYSMACROS 1
8661+
8662+cat >>confdefs.h <<_ACEOF
8663+#define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
8664 _ACEOF
8665
8666-fi
8667
8668+# The cast to long int works around a bug in the HP C Compiler
8669+# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8670+# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8671+# This bug is HP SR number 8606223364.
8672+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
8673+$as_echo_n "checking size of size_t... " >&6; }
8674+if ${ac_cv_sizeof_size_t+:} false; then :
8675+ $as_echo_n "(cached) " >&6
8676+else
8677+ if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
8678
8679- fi
8680+else
8681+ if test "$ac_cv_type_size_t" = yes; then
8682+ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8683+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8684+as_fn_error 77 "cannot compute sizeof (size_t)
8685+See \`config.log' for more details" "$LINENO" 5; }
8686+ else
8687+ ac_cv_sizeof_size_t=0
8688+ fi
8689 fi
8690
8691+fi
8692+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
8693+$as_echo "$ac_cv_sizeof_size_t" >&6; }
8694
8695-# On Solaris, term.h requires curses.h
8696
8697-for ac_header in term.h
8698-do
8699-as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8700-{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8701-echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8702-if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8703- echo $ECHO_N "(cached) $ECHO_C" >&6
8704-else
8705- cat >conftest.$ac_ext <<_ACEOF
8706-/* confdefs.h. */
8707+
8708+cat >>confdefs.h <<_ACEOF
8709+#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
8710 _ACEOF
8711-cat confdefs.h >>conftest.$ac_ext
8712-cat >>conftest.$ac_ext <<_ACEOF
8713-/* end confdefs.h. */
8714
8715-#ifdef HAVE_CURSES_H
8716-#include <curses.h>
8717-#endif
8718
8719+# The cast to long int works around a bug in the HP C Compiler
8720+# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8721+# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8722+# This bug is HP SR number 8606223364.
8723+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pid_t" >&5
8724+$as_echo_n "checking size of pid_t... " >&6; }
8725+if ${ac_cv_sizeof_pid_t+:} false; then :
8726+ $as_echo_n "(cached) " >&6
8727+else
8728+ if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pid_t))" "ac_cv_sizeof_pid_t" "$ac_includes_default"; then :
8729
8730-#include <$ac_header>
8731-_ACEOF
8732-rm -f conftest.$ac_objext
8733-if { (ac_try="$ac_compile"
8734-case "(($ac_try" in
8735- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8736- *) ac_try_echo=$ac_try;;
8737-esac
8738-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8739- (eval "$ac_compile") 2>conftest.er1
8740- ac_status=$?
8741- grep -v '^ *+' conftest.er1 >conftest.err
8742- rm -f conftest.er1
8743- cat conftest.err >&5
8744- echo "$as_me:$LINENO: \$? = $ac_status" >&5
8745- (exit $ac_status); } && {
8746- test -z "$ac_c_werror_flag" ||
8747- test ! -s conftest.err
8748- } && test -s conftest.$ac_objext; then
8749- eval "$as_ac_Header=yes"
8750 else
8751- echo "$as_me: failed program was:" >&5
8752-sed 's/^/| /' conftest.$ac_ext >&5
8753-
8754- eval "$as_ac_Header=no"
8755+ if test "$ac_cv_type_pid_t" = yes; then
8756+ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8757+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8758+as_fn_error 77 "cannot compute sizeof (pid_t)
8759+See \`config.log' for more details" "$LINENO" 5; }
8760+ else
8761+ ac_cv_sizeof_pid_t=0
8762+ fi
8763 fi
8764
8765-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8766 fi
8767-ac_res=`eval echo '${'$as_ac_Header'}'`
8768- { echo "$as_me:$LINENO: result: $ac_res" >&5
8769-echo "${ECHO_T}$ac_res" >&6; }
8770-if test `eval echo '${'$as_ac_Header'}'` = yes; then
8771- cat >>confdefs.h <<_ACEOF
8772-#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8773-_ACEOF
8774+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pid_t" >&5
8775+$as_echo "$ac_cv_sizeof_pid_t" >&6; }
8776
8777-fi
8778
8779-done
8780
8781+cat >>confdefs.h <<_ACEOF
8782+#define SIZEOF_PID_T $ac_cv_sizeof_pid_t
8783+_ACEOF
8784
8785-# On Linux, netlink.h requires asm/types.h
8786
8787-for ac_header in linux/netlink.h
8788-do
8789-as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8790-{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8791-echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8792-if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8793- echo $ECHO_N "(cached) $ECHO_C" >&6
8794-else
8795- cat >conftest.$ac_ext <<_ACEOF
8796-/* confdefs.h. */
8797-_ACEOF
8798-cat confdefs.h >>conftest.$ac_ext
8799-cat >>conftest.$ac_ext <<_ACEOF
8800+
8801+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support" >&5
8802+$as_echo_n "checking for long long support... " >&6; }
8803+have_long_long=no
8804+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8805 /* end confdefs.h. */
8806
8807-#ifdef HAVE_ASM_TYPES_H
8808-#include <asm/types.h>
8809-#endif
8810-#ifdef HAVE_SYS_SOCKET_H
8811-#include <sys/socket.h>
8812-#endif
8813+int
8814+main ()
8815+{
8816+long long x; x = (long long)0;
8817+ ;
8818+ return 0;
8819+}
8820+_ACEOF
8821+if ac_fn_c_try_compile "$LINENO"; then :
8822
8823
8824-#include <$ac_header>
8825-_ACEOF
8826-rm -f conftest.$ac_objext
8827-if { (ac_try="$ac_compile"
8828-case "(($ac_try" in
8829- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8830- *) ac_try_echo=$ac_try;;
8831-esac
8832-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8833- (eval "$ac_compile") 2>conftest.er1
8834- ac_status=$?
8835- grep -v '^ *+' conftest.er1 >conftest.err
8836- rm -f conftest.er1
8837- cat conftest.err >&5
8838- echo "$as_me:$LINENO: \$? = $ac_status" >&5
8839- (exit $ac_status); } && {
8840- test -z "$ac_c_werror_flag" ||
8841- test ! -s conftest.err
8842- } && test -s conftest.$ac_objext; then
8843- eval "$as_ac_Header=yes"
8844-else
8845- echo "$as_me: failed program was:" >&5
8846-sed 's/^/| /' conftest.$ac_ext >&5
8847+$as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
8848
8849- eval "$as_ac_Header=no"
8850-fi
8851+ have_long_long=yes
8852
8853-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8854 fi
8855-ac_res=`eval echo '${'$as_ac_Header'}'`
8856- { echo "$as_me:$LINENO: result: $ac_res" >&5
8857-echo "${ECHO_T}$ac_res" >&6; }
8858-if test `eval echo '${'$as_ac_Header'}'` = yes; then
8859- cat >>confdefs.h <<_ACEOF
8860-#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8861-_ACEOF
8862+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8863+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_long_long" >&5
8864+$as_echo "$have_long_long" >&6; }
8865+if test "$have_long_long" = yes ; then
8866+# The cast to long int works around a bug in the HP C Compiler
8867+# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8868+# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8869+# This bug is HP SR number 8606223364.
8870+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
8871+$as_echo_n "checking size of long long... " >&6; }
8872+if ${ac_cv_sizeof_long_long+:} false; then :
8873+ $as_echo_n "(cached) " >&6
8874+else
8875+ if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
8876
8877+else
8878+ if test "$ac_cv_type_long_long" = yes; then
8879+ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8880+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8881+as_fn_error 77 "cannot compute sizeof (long long)
8882+See \`config.log' for more details" "$LINENO" 5; }
8883+ else
8884+ ac_cv_sizeof_long_long=0
8885+ fi
8886 fi
8887
8888-done
8889-
8890-
8891-# checks for typedefs
8892-was_it_defined=no
8893-{ echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
8894-echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6; }
8895-cat >conftest.$ac_ext <<_ACEOF
8896-/* confdefs.h. */
8897-_ACEOF
8898-cat confdefs.h >>conftest.$ac_ext
8899-cat >>conftest.$ac_ext <<_ACEOF
8900-/* end confdefs.h. */
8901-#include <time.h>
8902+fi
8903+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
8904+$as_echo "$ac_cv_sizeof_long_long" >&6; }
8905
8906-_ACEOF
8907-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8908- $EGREP "clock_t" >/dev/null 2>&1; then
8909- was_it_defined=yes
8910-else
8911
8912
8913-cat >>confdefs.h <<\_ACEOF
8914-#define clock_t long
8915+cat >>confdefs.h <<_ACEOF
8916+#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
8917 _ACEOF
8918
8919
8920 fi
8921-rm -f conftest*
8922
8923-{ echo "$as_me:$LINENO: result: $was_it_defined" >&5
8924-echo "${ECHO_T}$was_it_defined" >&6; }
8925-
8926-# Check whether using makedev requires defining _OSF_SOURCE
8927-{ echo "$as_me:$LINENO: checking for makedev" >&5
8928-echo $ECHO_N "checking for makedev... $ECHO_C" >&6; }
8929-cat >conftest.$ac_ext <<_ACEOF
8930-/* confdefs.h. */
8931-_ACEOF
8932-cat confdefs.h >>conftest.$ac_ext
8933-cat >>conftest.$ac_ext <<_ACEOF
8934+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support" >&5
8935+$as_echo_n "checking for long double support... " >&6; }
8936+have_long_double=no
8937+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8938 /* end confdefs.h. */
8939-#include <sys/types.h>
8940+
8941 int
8942 main ()
8943 {
8944- makedev(0, 0)
8945+long double x; x = (long double)0.;
8946 ;
8947 return 0;
8948 }
8949 _ACEOF
8950-rm -f conftest.$ac_objext conftest$ac_exeext
8951-if { (ac_try="$ac_link"
8952-case "(($ac_try" in
8953- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8954- *) ac_try_echo=$ac_try;;
8955-esac
8956-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8957- (eval "$ac_link") 2>conftest.er1
8958- ac_status=$?
8959- grep -v '^ *+' conftest.er1 >conftest.err
8960- rm -f conftest.er1
8961- cat conftest.err >&5
8962- echo "$as_me:$LINENO: \$? = $ac_status" >&5
8963- (exit $ac_status); } && {
8964- test -z "$ac_c_werror_flag" ||
8965- test ! -s conftest.err
8966- } && test -s conftest$ac_exeext &&
8967- $as_test_x conftest$ac_exeext; then
8968- ac_cv_has_makedev=yes
8969+if ac_fn_c_try_compile "$LINENO"; then :
8970+
8971+
8972+$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
8973+
8974+ have_long_double=yes
8975+
8976+fi
8977+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8978+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_long_double" >&5
8979+$as_echo "$have_long_double" >&6; }
8980+if test "$have_long_double" = yes ; then
8981+# The cast to long int works around a bug in the HP C Compiler
8982+# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8983+# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8984+# This bug is HP SR number 8606223364.
8985+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
8986+$as_echo_n "checking size of long double... " >&6; }
8987+if ${ac_cv_sizeof_long_double+:} false; then :
8988+ $as_echo_n "(cached) " >&6
8989+else
8990+ if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
8991+
8992 else
8993- echo "$as_me: failed program was:" >&5
8994-sed 's/^/| /' conftest.$ac_ext >&5
8995+ if test "$ac_cv_type_long_double" = yes; then
8996+ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8997+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8998+as_fn_error 77 "cannot compute sizeof (long double)
8999+See \`config.log' for more details" "$LINENO" 5; }
9000+ else
9001+ ac_cv_sizeof_long_double=0
9002+ fi
9003+fi
9004
9005- ac_cv_has_makedev=no
9006 fi
9007+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
9008+$as_echo "$ac_cv_sizeof_long_double" >&6; }
9009
9010-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9011- conftest$ac_exeext conftest.$ac_ext
9012-if test "$ac_cv_has_makedev" = "no"; then
9013- # we didn't link, try if _OSF_SOURCE will allow us to link
9014- cat >conftest.$ac_ext <<_ACEOF
9015-/* confdefs.h. */
9016+
9017+
9018+cat >>confdefs.h <<_ACEOF
9019+#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
9020 _ACEOF
9021-cat confdefs.h >>conftest.$ac_ext
9022-cat >>conftest.$ac_ext <<_ACEOF
9023-/* end confdefs.h. */
9024
9025-#define _OSF_SOURCE 1
9026-#include <sys/types.h>
9027+
9028+fi
9029+
9030+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Bool support" >&5
9031+$as_echo_n "checking for _Bool support... " >&6; }
9032+have_c99_bool=no
9033+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9034+/* end confdefs.h. */
9035
9036 int
9037 main ()
9038 {
9039- makedev(0, 0)
9040+_Bool x; x = (_Bool)0;
9041 ;
9042 return 0;
9043 }
9044 _ACEOF
9045-rm -f conftest.$ac_objext conftest$ac_exeext
9046-if { (ac_try="$ac_link"
9047-case "(($ac_try" in
9048- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9049- *) ac_try_echo=$ac_try;;
9050-esac
9051-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9052- (eval "$ac_link") 2>conftest.er1
9053- ac_status=$?
9054- grep -v '^ *+' conftest.er1 >conftest.err
9055- rm -f conftest.er1
9056- cat conftest.err >&5
9057- echo "$as_me:$LINENO: \$? = $ac_status" >&5
9058- (exit $ac_status); } && {
9059- test -z "$ac_c_werror_flag" ||
9060- test ! -s conftest.err
9061- } && test -s conftest$ac_exeext &&
9062- $as_test_x conftest$ac_exeext; then
9063- ac_cv_has_makedev=yes
9064-else
9065- echo "$as_me: failed program was:" >&5
9066-sed 's/^/| /' conftest.$ac_ext >&5
9067+if ac_fn_c_try_compile "$LINENO"; then :
9068
9069- ac_cv_has_makedev=no
9070-fi
9071
9072-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9073- conftest$ac_exeext conftest.$ac_ext
9074- if test "$ac_cv_has_makedev" = "yes"; then
9075+$as_echo "#define HAVE_C99_BOOL 1" >>confdefs.h
9076
9077-cat >>confdefs.h <<\_ACEOF
9078-#define _OSF_SOURCE 1
9079-_ACEOF
9080+ have_c99_bool=yes
9081
9082- fi
9083 fi
9084-{ echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
9085-echo "${ECHO_T}$ac_cv_has_makedev" >&6; }
9086-if test "$ac_cv_has_makedev" = "yes"; then
9087+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9088+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_c99_bool" >&5
9089+$as_echo "$have_c99_bool" >&6; }
9090+if test "$have_c99_bool" = yes ; then
9091+# The cast to long int works around a bug in the HP C Compiler
9092+# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9093+# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9094+# This bug is HP SR number 8606223364.
9095+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of _Bool" >&5
9096+$as_echo_n "checking size of _Bool... " >&6; }
9097+if ${ac_cv_sizeof__Bool+:} false; then :
9098+ $as_echo_n "(cached) " >&6
9099+else
9100+ if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (_Bool))" "ac_cv_sizeof__Bool" "$ac_includes_default"; then :
9101
9102-cat >>confdefs.h <<\_ACEOF
9103-#define HAVE_MAKEDEV 1
9104-_ACEOF
9105+else
9106+ if test "$ac_cv_type__Bool" = yes; then
9107+ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9108+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9109+as_fn_error 77 "cannot compute sizeof (_Bool)
9110+See \`config.log' for more details" "$LINENO" 5; }
9111+ else
9112+ ac_cv_sizeof__Bool=0
9113+ fi
9114+fi
9115
9116 fi
9117+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof__Bool" >&5
9118+$as_echo "$ac_cv_sizeof__Bool" >&6; }
9119
9120-# Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
9121-# the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
9122-# defined, but the compiler does not support pragma redefine_extname,
9123-# and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
9124-# structures (such as rlimit64) without declaring them. As a
9125-# work-around, disable LFS on such configurations
9126
9127-use_lfs=yes
9128-{ echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
9129-echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6; }
9130-cat >conftest.$ac_ext <<_ACEOF
9131-/* confdefs.h. */
9132+
9133+cat >>confdefs.h <<_ACEOF
9134+#define SIZEOF__BOOL $ac_cv_sizeof__Bool
9135 _ACEOF
9136-cat confdefs.h >>conftest.$ac_ext
9137-cat >>conftest.$ac_ext <<_ACEOF
9138-/* end confdefs.h. */
9139
9140-#define _LARGEFILE_SOURCE 1
9141-#define _FILE_OFFSET_BITS 64
9142-#include <sys/resource.h>
9143-
9144-int
9145-main ()
9146-{
9147-struct rlimit foo;
9148- ;
9149- return 0;
9150-}
9151-_ACEOF
9152-rm -f conftest.$ac_objext
9153-if { (ac_try="$ac_compile"
9154-case "(($ac_try" in
9155- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9156- *) ac_try_echo=$ac_try;;
9157-esac
9158-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9159- (eval "$ac_compile") 2>conftest.er1
9160- ac_status=$?
9161- grep -v '^ *+' conftest.er1 >conftest.err
9162- rm -f conftest.er1
9163- cat conftest.err >&5
9164- echo "$as_me:$LINENO: \$? = $ac_status" >&5
9165- (exit $ac_status); } && {
9166- test -z "$ac_c_werror_flag" ||
9167- test ! -s conftest.err
9168- } && test -s conftest.$ac_objext; then
9169- sol_lfs_bug=no
9170-else
9171- echo "$as_me: failed program was:" >&5
9172-sed 's/^/| /' conftest.$ac_ext >&5
9173-
9174- sol_lfs_bug=yes
9175-fi
9176
9177-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9178-{ echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
9179-echo "${ECHO_T}$sol_lfs_bug" >&6; }
9180-if test "$sol_lfs_bug" = "yes"; then
9181- use_lfs=no
9182 fi
9183
9184-if test "$use_lfs" = "yes"; then
9185-# Two defines needed to enable largefile support on various platforms
9186-# These may affect some typedefs
9187+ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#ifdef HAVE_STDINT_H
9188+ #include <stdint.h>
9189+ #endif
9190+"
9191+if test "x$ac_cv_type_uintptr_t" = xyes; then :
9192
9193-cat >>confdefs.h <<\_ACEOF
9194-#define _LARGEFILE_SOURCE 1
9195+cat >>confdefs.h <<_ACEOF
9196+#define HAVE_UINTPTR_T 1
9197 _ACEOF
9198
9199+# The cast to long int works around a bug in the HP C Compiler
9200+# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9201+# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9202+# This bug is HP SR number 8606223364.
9203+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uintptr_t" >&5
9204+$as_echo_n "checking size of uintptr_t... " >&6; }
9205+if ${ac_cv_sizeof_uintptr_t+:} false; then :
9206+ $as_echo_n "(cached) " >&6
9207+else
9208+ if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uintptr_t))" "ac_cv_sizeof_uintptr_t" "$ac_includes_default"; then :
9209
9210-cat >>confdefs.h <<\_ACEOF
9211-#define _FILE_OFFSET_BITS 64
9212-_ACEOF
9213+else
9214+ if test "$ac_cv_type_uintptr_t" = yes; then
9215+ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9216+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9217+as_fn_error 77 "cannot compute sizeof (uintptr_t)
9218+See \`config.log' for more details" "$LINENO" 5; }
9219+ else
9220+ ac_cv_sizeof_uintptr_t=0
9221+ fi
9222+fi
9223
9224 fi
9225+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uintptr_t" >&5
9226+$as_echo "$ac_cv_sizeof_uintptr_t" >&6; }
9227
9228-# Add some code to confdefs.h so that the test for off_t works on SCO
9229-cat >> confdefs.h <<\EOF
9230-#if defined(SCO_DS)
9231-#undef _OFF_T
9232-#endif
9233-EOF
9234
9235-# Type availability checks
9236-{ echo "$as_me:$LINENO: checking for mode_t" >&5
9237-echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
9238-if test "${ac_cv_type_mode_t+set}" = set; then
9239- echo $ECHO_N "(cached) $ECHO_C" >&6
9240-else
9241- cat >conftest.$ac_ext <<_ACEOF
9242-/* confdefs.h. */
9243-_ACEOF
9244-cat confdefs.h >>conftest.$ac_ext
9245-cat >>conftest.$ac_ext <<_ACEOF
9246-/* end confdefs.h. */
9247-$ac_includes_default
9248-typedef mode_t ac__type_new_;
9249-int
9250-main ()
9251-{
9252-if ((ac__type_new_ *) 0)
9253- return 0;
9254-if (sizeof (ac__type_new_))
9255- return 0;
9256- ;
9257- return 0;
9258-}
9259+
9260+cat >>confdefs.h <<_ACEOF
9261+#define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
9262 _ACEOF
9263-rm -f conftest.$ac_objext
9264-if { (ac_try="$ac_compile"
9265-case "(($ac_try" in
9266- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9267- *) ac_try_echo=$ac_try;;
9268-esac
9269-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9270- (eval "$ac_compile") 2>conftest.er1
9271- ac_status=$?
9272- grep -v '^ *+' conftest.er1 >conftest.err
9273- rm -f conftest.er1
9274- cat conftest.err >&5
9275- echo "$as_me:$LINENO: \$? = $ac_status" >&5
9276- (exit $ac_status); } && {
9277- test -z "$ac_c_werror_flag" ||
9278- test ! -s conftest.err
9279- } && test -s conftest.$ac_objext; then
9280- ac_cv_type_mode_t=yes
9281-else
9282- echo "$as_me: failed program was:" >&5
9283-sed 's/^/| /' conftest.$ac_ext >&5
9284
9285- ac_cv_type_mode_t=no
9286-fi
9287
9288-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9289 fi
9290-{ echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
9291-echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
9292-if test $ac_cv_type_mode_t = yes; then
9293- :
9294-else
9295
9296-cat >>confdefs.h <<_ACEOF
9297-#define mode_t int
9298-_ACEOF
9299
9300-fi
9301
9302-{ echo "$as_me:$LINENO: checking for off_t" >&5
9303-echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
9304-if test "${ac_cv_type_off_t+set}" = set; then
9305- echo $ECHO_N "(cached) $ECHO_C" >&6
9306+# Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.
9307+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
9308+$as_echo_n "checking size of off_t... " >&6; }
9309+if ${ac_cv_sizeof_off_t+:} false; then :
9310+ $as_echo_n "(cached) " >&6
9311 else
9312- cat >conftest.$ac_ext <<_ACEOF
9313-/* confdefs.h. */
9314-_ACEOF
9315-cat confdefs.h >>conftest.$ac_ext
9316-cat >>conftest.$ac_ext <<_ACEOF
9317+ if test "$cross_compiling" = yes; then :
9318+ ac_cv_sizeof_off_t=4
9319+else
9320+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9321 /* end confdefs.h. */
9322-$ac_includes_default
9323-typedef off_t ac__type_new_;
9324-int
9325-main ()
9326+#include <stdio.h>
9327+#include <sys/types.h>
9328+main()
9329 {
9330-if ((ac__type_new_ *) 0)
9331- return 0;
9332-if (sizeof (ac__type_new_))
9333- return 0;
9334- ;
9335- return 0;
9336+ FILE *f=fopen("conftestval", "w");
9337+ if (!f) exit(1);
9338+ fprintf(f, "%d\n", sizeof(off_t));
9339+ exit(0);
9340 }
9341 _ACEOF
9342-rm -f conftest.$ac_objext
9343-if { (ac_try="$ac_compile"
9344-case "(($ac_try" in
9345- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9346- *) ac_try_echo=$ac_try;;
9347-esac
9348-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9349- (eval "$ac_compile") 2>conftest.er1
9350- ac_status=$?
9351- grep -v '^ *+' conftest.er1 >conftest.err
9352- rm -f conftest.er1
9353- cat conftest.err >&5
9354- echo "$as_me:$LINENO: \$? = $ac_status" >&5
9355- (exit $ac_status); } && {
9356- test -z "$ac_c_werror_flag" ||
9357- test ! -s conftest.err
9358- } && test -s conftest.$ac_objext; then
9359- ac_cv_type_off_t=yes
9360+if ac_fn_c_try_run "$LINENO"; then :
9361+ ac_cv_sizeof_off_t=`cat conftestval`
9362 else
9363- echo "$as_me: failed program was:" >&5
9364-sed 's/^/| /' conftest.$ac_ext >&5
9365-
9366- ac_cv_type_off_t=no
9367+ ac_cv_sizeof_off_t=0
9368 fi
9369-
9370-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9371+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9372+ conftest.$ac_objext conftest.beam conftest.$ac_ext
9373 fi
9374-{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
9375-echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
9376-if test $ac_cv_type_off_t = yes; then
9377- :
9378-else
9379
9380-cat >>confdefs.h <<_ACEOF
9381-#define off_t long int
9382-_ACEOF
9383
9384 fi
9385
9386-{ echo "$as_me:$LINENO: checking for pid_t" >&5
9387-echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
9388-if test "${ac_cv_type_pid_t+set}" = set; then
9389- echo $ECHO_N "(cached) $ECHO_C" >&6
9390-else
9391- cat >conftest.$ac_ext <<_ACEOF
9392-/* confdefs.h. */
9393-_ACEOF
9394-cat confdefs.h >>conftest.$ac_ext
9395-cat >>conftest.$ac_ext <<_ACEOF
9396-/* end confdefs.h. */
9397-$ac_includes_default
9398-typedef pid_t ac__type_new_;
9399-int
9400-main ()
9401-{
9402-if ((ac__type_new_ *) 0)
9403- return 0;
9404-if (sizeof (ac__type_new_))
9405- return 0;
9406- ;
9407- return 0;
9408-}
9409+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
9410+$as_echo "$ac_cv_sizeof_off_t" >&6; }
9411+
9412+cat >>confdefs.h <<_ACEOF
9413+#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
9414 _ACEOF
9415-rm -f conftest.$ac_objext
9416-if { (ac_try="$ac_compile"
9417-case "(($ac_try" in
9418- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9419- *) ac_try_echo=$ac_try;;
9420-esac
9421-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9422- (eval "$ac_compile") 2>conftest.er1
9423- ac_status=$?
9424- grep -v '^ *+' conftest.er1 >conftest.err
9425- rm -f conftest.er1
9426- cat conftest.err >&5
9427- echo "$as_me:$LINENO: \$? = $ac_status" >&5
9428- (exit $ac_status); } && {
9429- test -z "$ac_c_werror_flag" ||
9430- test ! -s conftest.err
9431- } && test -s conftest.$ac_objext; then
9432- ac_cv_type_pid_t=yes
9433-else
9434- echo "$as_me: failed program was:" >&5
9435-sed 's/^/| /' conftest.$ac_ext >&5
9436
9437- ac_cv_type_pid_t=no
9438-fi
9439
9440-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9441-fi
9442-{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
9443-echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
9444-if test $ac_cv_type_pid_t = yes; then
9445- :
9446-else
9447+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable large file support" >&5
9448+$as_echo_n "checking whether to enable large file support... " >&6; }
9449+if test "$have_long_long" = yes -a \
9450+ "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
9451+ "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
9452
9453-cat >>confdefs.h <<_ACEOF
9454-#define pid_t int
9455-_ACEOF
9456+$as_echo "#define HAVE_LARGEFILE_SUPPORT 1" >>confdefs.h
9457
9458+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9459+$as_echo "yes" >&6; }
9460+else
9461+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9462+$as_echo "no" >&6; }
9463 fi
9464
9465-{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
9466-echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
9467-if test "${ac_cv_type_signal+set}" = set; then
9468- echo $ECHO_N "(cached) $ECHO_C" >&6
9469+# AC_CHECK_SIZEOF() doesn't include <time.h>.
9470+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
9471+$as_echo_n "checking size of time_t... " >&6; }
9472+if ${ac_cv_sizeof_time_t+:} false; then :
9473+ $as_echo_n "(cached) " >&6
9474 else
9475- cat >conftest.$ac_ext <<_ACEOF
9476-/* confdefs.h. */
9477-_ACEOF
9478-cat confdefs.h >>conftest.$ac_ext
9479-cat >>conftest.$ac_ext <<_ACEOF
9480+ if test "$cross_compiling" = yes; then :
9481+ ac_cv_sizeof_time_t=4
9482+else
9483+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9484 /* end confdefs.h. */
9485-#include <sys/types.h>
9486-#include <signal.h>
9487-
9488-int
9489-main ()
9490+#include <stdio.h>
9491+#include <time.h>
9492+main()
9493 {
9494-return *(signal (0, 0)) (0) == 1;
9495- ;
9496- return 0;
9497+ FILE *f=fopen("conftestval", "w");
9498+ if (!f) exit(1);
9499+ fprintf(f, "%d\n", sizeof(time_t));
9500+ exit(0);
9501 }
9502 _ACEOF
9503-rm -f conftest.$ac_objext
9504-if { (ac_try="$ac_compile"
9505-case "(($ac_try" in
9506- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9507- *) ac_try_echo=$ac_try;;
9508-esac
9509-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9510- (eval "$ac_compile") 2>conftest.er1
9511- ac_status=$?
9512- grep -v '^ *+' conftest.er1 >conftest.err
9513- rm -f conftest.er1
9514- cat conftest.err >&5
9515- echo "$as_me:$LINENO: \$? = $ac_status" >&5
9516- (exit $ac_status); } && {
9517- test -z "$ac_c_werror_flag" ||
9518- test ! -s conftest.err
9519- } && test -s conftest.$ac_objext; then
9520- ac_cv_type_signal=int
9521+if ac_fn_c_try_run "$LINENO"; then :
9522+ ac_cv_sizeof_time_t=`cat conftestval`
9523 else
9524- echo "$as_me: failed program was:" >&5
9525-sed 's/^/| /' conftest.$ac_ext >&5
9526-
9527- ac_cv_type_signal=void
9528+ ac_cv_sizeof_time_t=0
9529+fi
9530+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9531+ conftest.$ac_objext conftest.beam conftest.$ac_ext
9532 fi
9533
9534-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9535+
9536 fi
9537-{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
9538-echo "${ECHO_T}$ac_cv_type_signal" >&6; }
9539+
9540+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
9541+$as_echo "$ac_cv_sizeof_time_t" >&6; }
9542
9543 cat >>confdefs.h <<_ACEOF
9544-#define RETSIGTYPE $ac_cv_type_signal
9545+#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
9546 _ACEOF
9547
9548
9549-{ echo "$as_me:$LINENO: checking for size_t" >&5
9550-echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
9551-if test "${ac_cv_type_size_t+set}" = set; then
9552- echo $ECHO_N "(cached) $ECHO_C" >&6
9553-else
9554- cat >conftest.$ac_ext <<_ACEOF
9555-/* confdefs.h. */
9556-_ACEOF
9557-cat confdefs.h >>conftest.$ac_ext
9558-cat >>conftest.$ac_ext <<_ACEOF
9559+
9560+# if have pthread_t then define SIZEOF_PTHREAD_T
9561+ac_save_cc="$CC"
9562+if test "$ac_cv_kpthread" = "yes"
9563+then CC="$CC -Kpthread"
9564+elif test "$ac_cv_kthread" = "yes"
9565+then CC="$CC -Kthread"
9566+elif test "$ac_cv_pthread" = "yes"
9567+then CC="$CC -pthread"
9568+fi
9569+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_t" >&5
9570+$as_echo_n "checking for pthread_t... " >&6; }
9571+have_pthread_t=no
9572+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9573 /* end confdefs.h. */
9574-$ac_includes_default
9575-typedef size_t ac__type_new_;
9576+#include <pthread.h>
9577 int
9578 main ()
9579 {
9580-if ((ac__type_new_ *) 0)
9581- return 0;
9582-if (sizeof (ac__type_new_))
9583- return 0;
9584+pthread_t x; x = *(pthread_t*)0;
9585 ;
9586 return 0;
9587 }
9588 _ACEOF
9589-rm -f conftest.$ac_objext
9590-if { (ac_try="$ac_compile"
9591-case "(($ac_try" in
9592- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9593- *) ac_try_echo=$ac_try;;
9594-esac
9595-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9596- (eval "$ac_compile") 2>conftest.er1
9597- ac_status=$?
9598- grep -v '^ *+' conftest.er1 >conftest.err
9599- rm -f conftest.er1
9600- cat conftest.err >&5
9601- echo "$as_me:$LINENO: \$? = $ac_status" >&5
9602- (exit $ac_status); } && {
9603- test -z "$ac_c_werror_flag" ||
9604- test ! -s conftest.err
9605- } && test -s conftest.$ac_objext; then
9606- ac_cv_type_size_t=yes
9607-else
9608- echo "$as_me: failed program was:" >&5
9609-sed 's/^/| /' conftest.$ac_ext >&5
9610-
9611- ac_cv_type_size_t=no
9612+if ac_fn_c_try_compile "$LINENO"; then :
9613+ have_pthread_t=yes
9614 fi
9615-
9616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9617-fi
9618-{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9619-echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
9620-if test $ac_cv_type_size_t = yes; then
9621- :
9622+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_t" >&5
9623+$as_echo "$have_pthread_t" >&6; }
9624+if test "$have_pthread_t" = yes ; then
9625+ # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
9626+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
9627+$as_echo_n "checking size of pthread_t... " >&6; }
9628+ if ${ac_cv_sizeof_pthread_t+:} false; then :
9629+ $as_echo_n "(cached) " >&6
9630 else
9631-
9632-cat >>confdefs.h <<_ACEOF
9633-#define size_t unsigned int
9634-_ACEOF
9635-
9636-fi
9637-
9638-{ echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
9639-echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
9640-if test "${ac_cv_type_uid_t+set}" = set; then
9641- echo $ECHO_N "(cached) $ECHO_C" >&6
9642+ if test "$cross_compiling" = yes; then :
9643+ ac_cv_sizeof_pthread_t=4
9644 else
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+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9651 /* end confdefs.h. */
9652-#include <sys/types.h>
9653-
9654+#include <stdio.h>
9655+#include <pthread.h>
9656+ main()
9657+ {
9658+ FILE *f=fopen("conftestval", "w");
9659+ if (!f) exit(1);
9660+ fprintf(f, "%d\n", sizeof(pthread_t));
9661+ exit(0);
9662+ }
9663 _ACEOF
9664-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9665- $EGREP "uid_t" >/dev/null 2>&1; then
9666- ac_cv_type_uid_t=yes
9667+if ac_fn_c_try_run "$LINENO"; then :
9668+ ac_cv_sizeof_pthread_t=`cat conftestval`
9669 else
9670- ac_cv_type_uid_t=no
9671+ ac_cv_sizeof_pthread_t=0
9672 fi
9673-rm -f conftest*
9674-
9675+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9676+ conftest.$ac_objext conftest.beam conftest.$ac_ext
9677 fi
9678-{ echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
9679-echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
9680-if test $ac_cv_type_uid_t = no; then
9681
9682-cat >>confdefs.h <<\_ACEOF
9683-#define uid_t int
9684-_ACEOF
9685
9686+fi
9687
9688-cat >>confdefs.h <<\_ACEOF
9689-#define gid_t int
9690-_ACEOF
9691-
9692-fi
9693+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
9694+$as_echo "$ac_cv_sizeof_pthread_t" >&6; }
9695
9696-{ echo "$as_me:$LINENO: checking for ssize_t" >&5
9697-echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
9698-if test "${ac_cv_type_ssize_t+set}" = set; then
9699- echo $ECHO_N "(cached) $ECHO_C" >&6
9700-else
9701- cat >conftest.$ac_ext <<_ACEOF
9702-/* confdefs.h. */
9703-_ACEOF
9704-cat confdefs.h >>conftest.$ac_ext
9705-cat >>conftest.$ac_ext <<_ACEOF
9706-/* end confdefs.h. */
9707-$ac_includes_default
9708-typedef ssize_t ac__type_new_;
9709-int
9710-main ()
9711-{
9712-if ((ac__type_new_ *) 0)
9713- return 0;
9714-if (sizeof (ac__type_new_))
9715- return 0;
9716- ;
9717- return 0;
9718-}
9719+cat >>confdefs.h <<_ACEOF
9720+#define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
9721 _ACEOF
9722-rm -f conftest.$ac_objext
9723-if { (ac_try="$ac_compile"
9724-case "(($ac_try" in
9725- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9726- *) ac_try_echo=$ac_try;;
9727-esac
9728-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9729- (eval "$ac_compile") 2>conftest.er1
9730- ac_status=$?
9731- grep -v '^ *+' conftest.er1 >conftest.err
9732- rm -f conftest.er1
9733- cat conftest.err >&5
9734- echo "$as_me:$LINENO: \$? = $ac_status" >&5
9735- (exit $ac_status); } && {
9736- test -z "$ac_c_werror_flag" ||
9737- test ! -s conftest.err
9738- } && test -s conftest.$ac_objext; then
9739- ac_cv_type_ssize_t=yes
9740-else
9741- echo "$as_me: failed program was:" >&5
9742-sed 's/^/| /' conftest.$ac_ext >&5
9743
9744- ac_cv_type_ssize_t=no
9745 fi
9746+CC="$ac_save_cc"
9747
9748-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9749+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-toolbox-glue" >&5
9750+$as_echo_n "checking for --enable-toolbox-glue... " >&6; }
9751+# Check whether --enable-toolbox-glue was given.
9752+if test "${enable_toolbox_glue+set}" = set; then :
9753+ enableval=$enable_toolbox_glue;
9754 fi
9755-{ echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
9756-echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
9757-if test $ac_cv_type_ssize_t = yes; then
9758
9759-cat >>confdefs.h <<\_ACEOF
9760-#define HAVE_SSIZE_T 1
9761-_ACEOF
9762
9763+if test -z "$enable_toolbox_glue"
9764+then
9765+ case $ac_sys_system/$ac_sys_release in
9766+ Darwin/*)
9767+ enable_toolbox_glue="yes";;
9768+ *)
9769+ enable_toolbox_glue="no";;
9770+ esac
9771 fi
9772+case "$enable_toolbox_glue" in
9773+yes)
9774+ extra_machdep_objs="Python/mactoolboxglue.o"
9775+ extra_undefs="-u _PyMac_Error"
9776
9777+$as_echo "#define USE_TOOLBOX_OBJECT_GLUE 1" >>confdefs.h
9778
9779-# Sizes of various common basic types
9780-# ANSI C requires sizeof(char) == 1, so no need to check it
9781-{ echo "$as_me:$LINENO: checking for int" >&5
9782-echo $ECHO_N "checking for int... $ECHO_C" >&6; }
9783-if test "${ac_cv_type_int+set}" = set; then
9784- echo $ECHO_N "(cached) $ECHO_C" >&6
9785-else
9786- cat >conftest.$ac_ext <<_ACEOF
9787-/* confdefs.h. */
9788-_ACEOF
9789-cat confdefs.h >>conftest.$ac_ext
9790-cat >>conftest.$ac_ext <<_ACEOF
9791-/* end confdefs.h. */
9792-$ac_includes_default
9793-typedef int ac__type_new_;
9794-int
9795-main ()
9796-{
9797-if ((ac__type_new_ *) 0)
9798- return 0;
9799-if (sizeof (ac__type_new_))
9800- return 0;
9801- ;
9802- return 0;
9803-}
9804-_ACEOF
9805-rm -f conftest.$ac_objext
9806-if { (ac_try="$ac_compile"
9807-case "(($ac_try" in
9808- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9809- *) ac_try_echo=$ac_try;;
9810+ ;;
9811+*)
9812+ extra_machdep_objs=""
9813+ extra_undefs=""
9814+ ;;
9815 esac
9816-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9817- (eval "$ac_compile") 2>conftest.er1
9818- ac_status=$?
9819- grep -v '^ *+' conftest.er1 >conftest.err
9820- rm -f conftest.er1
9821- cat conftest.err >&5
9822- echo "$as_me:$LINENO: \$? = $ac_status" >&5
9823- (exit $ac_status); } && {
9824- test -z "$ac_c_werror_flag" ||
9825- test ! -s conftest.err
9826- } && test -s conftest.$ac_objext; then
9827- ac_cv_type_int=yes
9828-else
9829- echo "$as_me: failed program was:" >&5
9830-sed 's/^/| /' conftest.$ac_ext >&5
9831-
9832- ac_cv_type_int=no
9833-fi
9834+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_toolbox_glue" >&5
9835+$as_echo "$enable_toolbox_glue" >&6; }
9836
9837-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9838-fi
9839-{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
9840-echo "${ECHO_T}$ac_cv_type_int" >&6; }
9841
9842-# The cast to long int works around a bug in the HP C Compiler
9843-# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9844-# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9845-# This bug is HP SR number 8606223364.
9846-{ echo "$as_me:$LINENO: checking size of int" >&5
9847-echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
9848-if test "${ac_cv_sizeof_int+set}" = set; then
9849- echo $ECHO_N "(cached) $ECHO_C" >&6
9850-else
9851- if test "$cross_compiling" = yes; then
9852- # Depending upon the size, compute the lo and hi bounds.
9853-cat >conftest.$ac_ext <<_ACEOF
9854-/* confdefs.h. */
9855-_ACEOF
9856-cat confdefs.h >>conftest.$ac_ext
9857-cat >>conftest.$ac_ext <<_ACEOF
9858-/* end confdefs.h. */
9859-$ac_includes_default
9860- typedef int ac__type_sizeof_;
9861-int
9862-main ()
9863-{
9864-static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9865-test_array [0] = 0
9866
9867- ;
9868- return 0;
9869-}
9870-_ACEOF
9871-rm -f conftest.$ac_objext
9872-if { (ac_try="$ac_compile"
9873-case "(($ac_try" in
9874- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9875- *) ac_try_echo=$ac_try;;
9876+case $ac_sys_system/$ac_sys_release in
9877+ Darwin/[01567]\..*)
9878+ OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
9879+ ;;
9880+ Darwin/*)
9881+ OTHER_LIBTOOL_OPT=""
9882+ ;;
9883 esac
9884-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9885- (eval "$ac_compile") 2>conftest.er1
9886- ac_status=$?
9887- grep -v '^ *+' conftest.er1 >conftest.err
9888- rm -f conftest.er1
9889- cat conftest.err >&5
9890- echo "$as_me:$LINENO: \$? = $ac_status" >&5
9891- (exit $ac_status); } && {
9892- test -z "$ac_c_werror_flag" ||
9893- test ! -s conftest.err
9894- } && test -s conftest.$ac_objext; then
9895- ac_lo=0 ac_mid=0
9896- while :; do
9897- cat >conftest.$ac_ext <<_ACEOF
9898-/* confdefs.h. */
9899-_ACEOF
9900-cat confdefs.h >>conftest.$ac_ext
9901-cat >>conftest.$ac_ext <<_ACEOF
9902-/* end confdefs.h. */
9903-$ac_includes_default
9904- typedef int ac__type_sizeof_;
9905-int
9906-main ()
9907-{
9908-static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9909-test_array [0] = 0
9910
9911- ;
9912- return 0;
9913-}
9914-_ACEOF
9915-rm -f conftest.$ac_objext
9916-if { (ac_try="$ac_compile"
9917-case "(($ac_try" in
9918- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9919- *) ac_try_echo=$ac_try;;
9920+
9921+case $ac_sys_system/$ac_sys_release in
9922+ Darwin/[01567]\..*)
9923+ LIBTOOL_CRUFT="-framework System -lcc_dynamic"
9924+ if test "${enable_universalsdk}"; then
9925+ :
9926+ else
9927+ LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch`"
9928+ fi
9929+ LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
9930+ LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
9931+ Darwin/*)
9932+ gcc_version=`gcc -v 2>&1 | grep version | cut -d\ -f3`
9933+ if test ${gcc_version} '<' 4.0
9934+ then
9935+ LIBTOOL_CRUFT="-lcc_dynamic"
9936+ else
9937+ LIBTOOL_CRUFT=""
9938+ fi
9939+ LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch`"
9940+ LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
9941+ LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
9942 esac
9943-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9944- (eval "$ac_compile") 2>conftest.er1
9945- ac_status=$?
9946- grep -v '^ *+' conftest.er1 >conftest.err
9947- rm -f conftest.er1
9948- cat conftest.err >&5
9949- echo "$as_me:$LINENO: \$? = $ac_status" >&5
9950- (exit $ac_status); } && {
9951- test -z "$ac_c_werror_flag" ||
9952- test ! -s conftest.err
9953- } && test -s conftest.$ac_objext; then
9954- ac_hi=$ac_mid; break
9955-else
9956- echo "$as_me: failed program was:" >&5
9957-sed 's/^/| /' conftest.$ac_ext >&5
9958
9959- ac_lo=`expr $ac_mid + 1`
9960- if test $ac_lo -le $ac_mid; then
9961- ac_lo= ac_hi=
9962- break
9963- fi
9964- ac_mid=`expr 2 '*' $ac_mid + 1`
9965-fi
9966+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-framework" >&5
9967+$as_echo_n "checking for --enable-framework... " >&6; }
9968+if test "$enable_framework"
9969+then
9970+ BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
9971+ # -F. is needed to allow linking to the framework while
9972+ # in the build location.
9973
9974-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9975- done
9976+$as_echo "#define WITH_NEXT_FRAMEWORK 1" >>confdefs.h
9977+
9978+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9979+$as_echo "yes" >&6; }
9980 else
9981- echo "$as_me: failed program was:" >&5
9982-sed 's/^/| /' conftest.$ac_ext >&5
9983+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9984+$as_echo "no" >&6; }
9985+fi
9986
9987- cat >conftest.$ac_ext <<_ACEOF
9988-/* confdefs.h. */
9989-_ACEOF
9990-cat confdefs.h >>conftest.$ac_ext
9991-cat >>conftest.$ac_ext <<_ACEOF
9992-/* end confdefs.h. */
9993-$ac_includes_default
9994- typedef int ac__type_sizeof_;
9995-int
9996-main ()
9997-{
9998-static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9999-test_array [0] = 0
10000+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dyld" >&5
10001+$as_echo_n "checking for dyld... " >&6; }
10002+case $ac_sys_system/$ac_sys_release in
10003+ Darwin/*)
10004
10005- ;
10006- return 0;
10007-}
10008-_ACEOF
10009-rm -f conftest.$ac_objext
10010-if { (ac_try="$ac_compile"
10011-case "(($ac_try" in
10012- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10013- *) ac_try_echo=$ac_try;;
10014-esac
10015-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10016- (eval "$ac_compile") 2>conftest.er1
10017- ac_status=$?
10018- grep -v '^ *+' conftest.er1 >conftest.err
10019- rm -f conftest.er1
10020- cat conftest.err >&5
10021- echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022- (exit $ac_status); } && {
10023- test -z "$ac_c_werror_flag" ||
10024- test ! -s conftest.err
10025- } && test -s conftest.$ac_objext; then
10026- ac_hi=-1 ac_mid=-1
10027- while :; do
10028- cat >conftest.$ac_ext <<_ACEOF
10029-/* confdefs.h. */
10030-_ACEOF
10031-cat confdefs.h >>conftest.$ac_ext
10032-cat >>conftest.$ac_ext <<_ACEOF
10033-/* end confdefs.h. */
10034-$ac_includes_default
10035- typedef int ac__type_sizeof_;
10036-int
10037-main ()
10038-{
10039-static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10040-test_array [0] = 0
10041+$as_echo "#define WITH_DYLD 1" >>confdefs.h
10042
10043- ;
10044- return 0;
10045-}
10046-_ACEOF
10047-rm -f conftest.$ac_objext
10048-if { (ac_try="$ac_compile"
10049-case "(($ac_try" in
10050- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10051- *) ac_try_echo=$ac_try;;
10052+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: always on for Darwin" >&5
10053+$as_echo "always on for Darwin" >&6; }
10054+ ;;
10055+ *)
10056+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10057+$as_echo "no" >&6; }
10058+ ;;
10059 esac
10060-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10061- (eval "$ac_compile") 2>conftest.er1
10062- ac_status=$?
10063- grep -v '^ *+' conftest.er1 >conftest.err
10064- rm -f conftest.er1
10065- cat conftest.err >&5
10066- echo "$as_me:$LINENO: \$? = $ac_status" >&5
10067- (exit $ac_status); } && {
10068- test -z "$ac_c_werror_flag" ||
10069- test ! -s conftest.err
10070- } && test -s conftest.$ac_objext; then
10071- ac_lo=$ac_mid; break
10072-else
10073- echo "$as_me: failed program was:" >&5
10074-sed 's/^/| /' conftest.$ac_ext >&5
10075
10076- ac_hi=`expr '(' $ac_mid ')' - 1`
10077- if test $ac_mid -le $ac_hi; then
10078- ac_lo= ac_hi=
10079- break
10080- fi
10081- ac_mid=`expr 2 '*' $ac_mid`
10082-fi
10083+# Set info about shared libraries.
10084
10085-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10086- done
10087-else
10088- echo "$as_me: failed program was:" >&5
10089-sed 's/^/| /' conftest.$ac_ext >&5
10090
10091- ac_lo= ac_hi=
10092-fi
10093
10094-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10095+
10096+
10097+# SO is the extension of shared libraries `(including the dot!)
10098+# -- usually .so, .sl on HP-UX, .dll on Cygwin
10099+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SO" >&5
10100+$as_echo_n "checking SO... " >&6; }
10101+if test -z "$SO"
10102+then
10103+ case $ac_sys_system in
10104+ hp*|HP*)
10105+ case `uname -m` in
10106+ ia64) SO=.so;;
10107+ *) SO=.sl;;
10108+ esac
10109+ ;;
10110+ CYGWIN*) SO=.dll;;
10111+ mingw*) SO=.dll;;
10112+ *) SO=.so;;
10113+ esac
10114+else
10115+ # this might also be a termcap variable, see #610332
10116+ echo
10117+ echo '====================================================================='
10118+ echo '+ +'
10119+ echo '+ WARNING: You have set SO in your environment. +'
10120+ echo '+ Do you really mean to change the extension for shared libraries? +'
10121+ echo '+ Continuing in 10 seconds to let you to ponder. +'
10122+ echo '+ +'
10123+ echo '====================================================================='
10124+ sleep 10
10125 fi
10126+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SO" >&5
10127+$as_echo "$SO" >&6; }
10128
10129-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10130-# Binary search between lo and hi bounds.
10131-while test "x$ac_lo" != "x$ac_hi"; do
10132- ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10133- cat >conftest.$ac_ext <<_ACEOF
10134-/* confdefs.h. */
10135+cat >>confdefs.h <<_ACEOF
10136+#define SHLIB_EXT "$SO"
10137 _ACEOF
10138-cat confdefs.h >>conftest.$ac_ext
10139-cat >>conftest.$ac_ext <<_ACEOF
10140-/* end confdefs.h. */
10141-$ac_includes_default
10142- typedef int ac__type_sizeof_;
10143-int
10144-main ()
10145-{
10146-static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10147-test_array [0] = 0
10148-
10149- ;
10150- return 0;
10151-}
10152-_ACEOF
10153-rm -f conftest.$ac_objext
10154-if { (ac_try="$ac_compile"
10155-case "(($ac_try" in
10156- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10157- *) ac_try_echo=$ac_try;;
10158-esac
10159-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10160- (eval "$ac_compile") 2>conftest.er1
10161- ac_status=$?
10162- grep -v '^ *+' conftest.er1 >conftest.err
10163- rm -f conftest.er1
10164- cat conftest.err >&5
10165- echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166- (exit $ac_status); } && {
10167- test -z "$ac_c_werror_flag" ||
10168- test ! -s conftest.err
10169- } && test -s conftest.$ac_objext; then
10170- ac_hi=$ac_mid
10171-else
10172- echo "$as_me: failed program was:" >&5
10173-sed 's/^/| /' conftest.$ac_ext >&5
10174-
10175- ac_lo=`expr '(' $ac_mid ')' + 1`
10176-fi
10177-
10178-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10179-done
10180-case $ac_lo in
10181-?*) ac_cv_sizeof_int=$ac_lo;;
10182-'') if test "$ac_cv_type_int" = yes; then
10183- { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
10184-See \`config.log' for more details." >&5
10185-echo "$as_me: error: cannot compute sizeof (int)
10186-See \`config.log' for more details." >&2;}
10187- { (exit 77); exit 77; }; }
10188- else
10189- ac_cv_sizeof_int=0
10190- fi ;;
10191-esac
10192-else
10193- cat >conftest.$ac_ext <<_ACEOF
10194-/* confdefs.h. */
10195-_ACEOF
10196-cat confdefs.h >>conftest.$ac_ext
10197-cat >>conftest.$ac_ext <<_ACEOF
10198-/* end confdefs.h. */
10199-$ac_includes_default
10200- typedef int ac__type_sizeof_;
10201-static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10202-static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10203-#include <stdio.h>
10204-#include <stdlib.h>
10205-int
10206-main ()
10207-{
10208-
10209- FILE *f = fopen ("conftest.val", "w");
10210- if (! f)
10211- return 1;
10212- if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10213- {
10214- long int i = longval ();
10215- if (i != ((long int) (sizeof (ac__type_sizeof_))))
10216- return 1;
10217- fprintf (f, "%ld\n", i);
10218- }
10219- else
10220- {
10221- unsigned long int i = ulongval ();
10222- if (i != ((long int) (sizeof (ac__type_sizeof_))))
10223- return 1;
10224- fprintf (f, "%lu\n", i);
10225- }
10226- return ferror (f) || fclose (f) != 0;
10227-
10228- ;
10229- return 0;
10230-}
10231-_ACEOF
10232-rm -f conftest$ac_exeext
10233-if { (ac_try="$ac_link"
10234-case "(($ac_try" in
10235- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10236- *) ac_try_echo=$ac_try;;
10237-esac
10238-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10239- (eval "$ac_link") 2>&5
10240- ac_status=$?
10241- echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242- (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10243- { (case "(($ac_try" in
10244- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10245- *) ac_try_echo=$ac_try;;
10246-esac
10247-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10248- (eval "$ac_try") 2>&5
10249- ac_status=$?
10250- echo "$as_me:$LINENO: \$? = $ac_status" >&5
10251- (exit $ac_status); }; }; then
10252- ac_cv_sizeof_int=`cat conftest.val`
10253-else
10254- echo "$as_me: program exited with status $ac_status" >&5
10255-echo "$as_me: failed program was:" >&5
10256-sed 's/^/| /' conftest.$ac_ext >&5
10257-
10258-( exit $ac_status )
10259-if test "$ac_cv_type_int" = yes; then
10260- { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
10261-See \`config.log' for more details." >&5
10262-echo "$as_me: error: cannot compute sizeof (int)
10263-See \`config.log' for more details." >&2;}
10264- { (exit 77); exit 77; }; }
10265- else
10266- ac_cv_sizeof_int=0
10267- fi
10268-fi
10269-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10270-fi
10271-rm -f conftest.val
10272-fi
10273-{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
10274-echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
10275-
10276-
10277-
10278-cat >>confdefs.h <<_ACEOF
10279-#define SIZEOF_INT $ac_cv_sizeof_int
10280-_ACEOF
10281-
10282-
10283-{ echo "$as_me:$LINENO: checking for long" >&5
10284-echo $ECHO_N "checking for long... $ECHO_C" >&6; }
10285-if test "${ac_cv_type_long+set}" = set; then
10286- echo $ECHO_N "(cached) $ECHO_C" >&6
10287-else
10288- cat >conftest.$ac_ext <<_ACEOF
10289-/* confdefs.h. */
10290-_ACEOF
10291-cat confdefs.h >>conftest.$ac_ext
10292-cat >>conftest.$ac_ext <<_ACEOF
10293-/* end confdefs.h. */
10294-$ac_includes_default
10295-typedef long ac__type_new_;
10296-int
10297-main ()
10298-{
10299-if ((ac__type_new_ *) 0)
10300- return 0;
10301-if (sizeof (ac__type_new_))
10302- return 0;
10303- ;
10304- return 0;
10305-}
10306-_ACEOF
10307-rm -f conftest.$ac_objext
10308-if { (ac_try="$ac_compile"
10309-case "(($ac_try" in
10310- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10311- *) ac_try_echo=$ac_try;;
10312-esac
10313-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10314- (eval "$ac_compile") 2>conftest.er1
10315- ac_status=$?
10316- grep -v '^ *+' conftest.er1 >conftest.err
10317- rm -f conftest.er1
10318- cat conftest.err >&5
10319- echo "$as_me:$LINENO: \$? = $ac_status" >&5
10320- (exit $ac_status); } && {
10321- test -z "$ac_c_werror_flag" ||
10322- test ! -s conftest.err
10323- } && test -s conftest.$ac_objext; then
10324- ac_cv_type_long=yes
10325-else
10326- echo "$as_me: failed program was:" >&5
10327-sed 's/^/| /' conftest.$ac_ext >&5
10328-
10329- ac_cv_type_long=no
10330-fi
10331-
10332-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10333-fi
10334-{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
10335-echo "${ECHO_T}$ac_cv_type_long" >&6; }
10336-
10337-# The cast to long int works around a bug in the HP C Compiler
10338-# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10339-# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10340-# This bug is HP SR number 8606223364.
10341-{ echo "$as_me:$LINENO: checking size of long" >&5
10342-echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
10343-if test "${ac_cv_sizeof_long+set}" = set; then
10344- echo $ECHO_N "(cached) $ECHO_C" >&6
10345-else
10346- if test "$cross_compiling" = yes; then
10347- # Depending upon the size, compute the lo and hi bounds.
10348-cat >conftest.$ac_ext <<_ACEOF
10349-/* confdefs.h. */
10350-_ACEOF
10351-cat confdefs.h >>conftest.$ac_ext
10352-cat >>conftest.$ac_ext <<_ACEOF
10353-/* end confdefs.h. */
10354-$ac_includes_default
10355- typedef long ac__type_sizeof_;
10356-int
10357-main ()
10358-{
10359-static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10360-test_array [0] = 0
10361-
10362- ;
10363- return 0;
10364-}
10365-_ACEOF
10366-rm -f conftest.$ac_objext
10367-if { (ac_try="$ac_compile"
10368-case "(($ac_try" in
10369- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10370- *) ac_try_echo=$ac_try;;
10371-esac
10372-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10373- (eval "$ac_compile") 2>conftest.er1
10374- ac_status=$?
10375- grep -v '^ *+' conftest.er1 >conftest.err
10376- rm -f conftest.er1
10377- cat conftest.err >&5
10378- echo "$as_me:$LINENO: \$? = $ac_status" >&5
10379- (exit $ac_status); } && {
10380- test -z "$ac_c_werror_flag" ||
10381- test ! -s conftest.err
10382- } && test -s conftest.$ac_objext; then
10383- ac_lo=0 ac_mid=0
10384- while :; do
10385- cat >conftest.$ac_ext <<_ACEOF
10386-/* confdefs.h. */
10387-_ACEOF
10388-cat confdefs.h >>conftest.$ac_ext
10389-cat >>conftest.$ac_ext <<_ACEOF
10390-/* end confdefs.h. */
10391-$ac_includes_default
10392- typedef long ac__type_sizeof_;
10393-int
10394-main ()
10395-{
10396-static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10397-test_array [0] = 0
10398-
10399- ;
10400- return 0;
10401-}
10402-_ACEOF
10403-rm -f conftest.$ac_objext
10404-if { (ac_try="$ac_compile"
10405-case "(($ac_try" in
10406- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10407- *) ac_try_echo=$ac_try;;
10408-esac
10409-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10410- (eval "$ac_compile") 2>conftest.er1
10411- ac_status=$?
10412- grep -v '^ *+' conftest.er1 >conftest.err
10413- rm -f conftest.er1
10414- cat conftest.err >&5
10415- echo "$as_me:$LINENO: \$? = $ac_status" >&5
10416- (exit $ac_status); } && {
10417- test -z "$ac_c_werror_flag" ||
10418- test ! -s conftest.err
10419- } && test -s conftest.$ac_objext; then
10420- ac_hi=$ac_mid; break
10421-else
10422- echo "$as_me: failed program was:" >&5
10423-sed 's/^/| /' conftest.$ac_ext >&5
10424-
10425- ac_lo=`expr $ac_mid + 1`
10426- if test $ac_lo -le $ac_mid; then
10427- ac_lo= ac_hi=
10428- break
10429- fi
10430- ac_mid=`expr 2 '*' $ac_mid + 1`
10431-fi
10432-
10433-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10434- done
10435-else
10436- echo "$as_me: failed program was:" >&5
10437-sed 's/^/| /' conftest.$ac_ext >&5
10438-
10439- cat >conftest.$ac_ext <<_ACEOF
10440-/* confdefs.h. */
10441-_ACEOF
10442-cat confdefs.h >>conftest.$ac_ext
10443-cat >>conftest.$ac_ext <<_ACEOF
10444-/* end confdefs.h. */
10445-$ac_includes_default
10446- typedef long ac__type_sizeof_;
10447-int
10448-main ()
10449-{
10450-static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10451-test_array [0] = 0
10452-
10453- ;
10454- return 0;
10455-}
10456-_ACEOF
10457-rm -f conftest.$ac_objext
10458-if { (ac_try="$ac_compile"
10459-case "(($ac_try" in
10460- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10461- *) ac_try_echo=$ac_try;;
10462-esac
10463-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10464- (eval "$ac_compile") 2>conftest.er1
10465- ac_status=$?
10466- grep -v '^ *+' conftest.er1 >conftest.err
10467- rm -f conftest.er1
10468- cat conftest.err >&5
10469- echo "$as_me:$LINENO: \$? = $ac_status" >&5
10470- (exit $ac_status); } && {
10471- test -z "$ac_c_werror_flag" ||
10472- test ! -s conftest.err
10473- } && test -s conftest.$ac_objext; then
10474- ac_hi=-1 ac_mid=-1
10475- while :; do
10476- cat >conftest.$ac_ext <<_ACEOF
10477-/* confdefs.h. */
10478-_ACEOF
10479-cat confdefs.h >>conftest.$ac_ext
10480-cat >>conftest.$ac_ext <<_ACEOF
10481-/* end confdefs.h. */
10482-$ac_includes_default
10483- typedef long ac__type_sizeof_;
10484-int
10485-main ()
10486-{
10487-static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10488-test_array [0] = 0
10489-
10490- ;
10491- return 0;
10492-}
10493-_ACEOF
10494-rm -f conftest.$ac_objext
10495-if { (ac_try="$ac_compile"
10496-case "(($ac_try" in
10497- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10498- *) ac_try_echo=$ac_try;;
10499-esac
10500-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10501- (eval "$ac_compile") 2>conftest.er1
10502- ac_status=$?
10503- grep -v '^ *+' conftest.er1 >conftest.err
10504- rm -f conftest.er1
10505- cat conftest.err >&5
10506- echo "$as_me:$LINENO: \$? = $ac_status" >&5
10507- (exit $ac_status); } && {
10508- test -z "$ac_c_werror_flag" ||
10509- test ! -s conftest.err
10510- } && test -s conftest.$ac_objext; then
10511- ac_lo=$ac_mid; break
10512-else
10513- echo "$as_me: failed program was:" >&5
10514-sed 's/^/| /' conftest.$ac_ext >&5
10515-
10516- ac_hi=`expr '(' $ac_mid ')' - 1`
10517- if test $ac_mid -le $ac_hi; then
10518- ac_lo= ac_hi=
10519- break
10520- fi
10521- ac_mid=`expr 2 '*' $ac_mid`
10522-fi
10523-
10524-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10525- done
10526-else
10527- echo "$as_me: failed program was:" >&5
10528-sed 's/^/| /' conftest.$ac_ext >&5
10529-
10530- ac_lo= ac_hi=
10531-fi
10532-
10533-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10534-fi
10535-
10536-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10537-# Binary search between lo and hi bounds.
10538-while test "x$ac_lo" != "x$ac_hi"; do
10539- ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10540- cat >conftest.$ac_ext <<_ACEOF
10541-/* confdefs.h. */
10542-_ACEOF
10543-cat confdefs.h >>conftest.$ac_ext
10544-cat >>conftest.$ac_ext <<_ACEOF
10545-/* end confdefs.h. */
10546-$ac_includes_default
10547- typedef long ac__type_sizeof_;
10548-int
10549-main ()
10550-{
10551-static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10552-test_array [0] = 0
10553-
10554- ;
10555- return 0;
10556-}
10557-_ACEOF
10558-rm -f conftest.$ac_objext
10559-if { (ac_try="$ac_compile"
10560-case "(($ac_try" in
10561- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10562- *) ac_try_echo=$ac_try;;
10563-esac
10564-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10565- (eval "$ac_compile") 2>conftest.er1
10566- ac_status=$?
10567- grep -v '^ *+' conftest.er1 >conftest.err
10568- rm -f conftest.er1
10569- cat conftest.err >&5
10570- echo "$as_me:$LINENO: \$? = $ac_status" >&5
10571- (exit $ac_status); } && {
10572- test -z "$ac_c_werror_flag" ||
10573- test ! -s conftest.err
10574- } && test -s conftest.$ac_objext; then
10575- ac_hi=$ac_mid
10576-else
10577- echo "$as_me: failed program was:" >&5
10578-sed 's/^/| /' conftest.$ac_ext >&5
10579-
10580- ac_lo=`expr '(' $ac_mid ')' + 1`
10581-fi
10582-
10583-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10584-done
10585-case $ac_lo in
10586-?*) ac_cv_sizeof_long=$ac_lo;;
10587-'') if test "$ac_cv_type_long" = yes; then
10588- { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
10589-See \`config.log' for more details." >&5
10590-echo "$as_me: error: cannot compute sizeof (long)
10591-See \`config.log' for more details." >&2;}
10592- { (exit 77); exit 77; }; }
10593- else
10594- ac_cv_sizeof_long=0
10595- fi ;;
10596-esac
10597-else
10598- cat >conftest.$ac_ext <<_ACEOF
10599-/* confdefs.h. */
10600-_ACEOF
10601-cat confdefs.h >>conftest.$ac_ext
10602-cat >>conftest.$ac_ext <<_ACEOF
10603-/* end confdefs.h. */
10604-$ac_includes_default
10605- typedef long ac__type_sizeof_;
10606-static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10607-static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10608-#include <stdio.h>
10609-#include <stdlib.h>
10610-int
10611-main ()
10612-{
10613-
10614- FILE *f = fopen ("conftest.val", "w");
10615- if (! f)
10616- return 1;
10617- if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10618- {
10619- long int i = longval ();
10620- if (i != ((long int) (sizeof (ac__type_sizeof_))))
10621- return 1;
10622- fprintf (f, "%ld\n", i);
10623- }
10624- else
10625- {
10626- unsigned long int i = ulongval ();
10627- if (i != ((long int) (sizeof (ac__type_sizeof_))))
10628- return 1;
10629- fprintf (f, "%lu\n", i);
10630- }
10631- return ferror (f) || fclose (f) != 0;
10632-
10633- ;
10634- return 0;
10635-}
10636-_ACEOF
10637-rm -f conftest$ac_exeext
10638-if { (ac_try="$ac_link"
10639-case "(($ac_try" in
10640- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10641- *) ac_try_echo=$ac_try;;
10642-esac
10643-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10644- (eval "$ac_link") 2>&5
10645- ac_status=$?
10646- echo "$as_me:$LINENO: \$? = $ac_status" >&5
10647- (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10648- { (case "(($ac_try" in
10649- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10650- *) ac_try_echo=$ac_try;;
10651-esac
10652-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10653- (eval "$ac_try") 2>&5
10654- ac_status=$?
10655- echo "$as_me:$LINENO: \$? = $ac_status" >&5
10656- (exit $ac_status); }; }; then
10657- ac_cv_sizeof_long=`cat conftest.val`
10658-else
10659- echo "$as_me: program exited with status $ac_status" >&5
10660-echo "$as_me: failed program was:" >&5
10661-sed 's/^/| /' conftest.$ac_ext >&5
10662-
10663-( exit $ac_status )
10664-if test "$ac_cv_type_long" = yes; then
10665- { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
10666-See \`config.log' for more details." >&5
10667-echo "$as_me: error: cannot compute sizeof (long)
10668-See \`config.log' for more details." >&2;}
10669- { (exit 77); exit 77; }; }
10670- else
10671- ac_cv_sizeof_long=0
10672- fi
10673-fi
10674-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10675-fi
10676-rm -f conftest.val
10677-fi
10678-{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
10679-echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
10680-
10681-
10682-
10683-cat >>confdefs.h <<_ACEOF
10684-#define SIZEOF_LONG $ac_cv_sizeof_long
10685-_ACEOF
10686-
10687-
10688-{ echo "$as_me:$LINENO: checking for void *" >&5
10689-echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
10690-if test "${ac_cv_type_void_p+set}" = set; then
10691- echo $ECHO_N "(cached) $ECHO_C" >&6
10692-else
10693- cat >conftest.$ac_ext <<_ACEOF
10694-/* confdefs.h. */
10695-_ACEOF
10696-cat confdefs.h >>conftest.$ac_ext
10697-cat >>conftest.$ac_ext <<_ACEOF
10698-/* end confdefs.h. */
10699-$ac_includes_default
10700-typedef void * ac__type_new_;
10701-int
10702-main ()
10703-{
10704-if ((ac__type_new_ *) 0)
10705- return 0;
10706-if (sizeof (ac__type_new_))
10707- return 0;
10708- ;
10709- return 0;
10710-}
10711-_ACEOF
10712-rm -f conftest.$ac_objext
10713-if { (ac_try="$ac_compile"
10714-case "(($ac_try" in
10715- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10716- *) ac_try_echo=$ac_try;;
10717-esac
10718-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10719- (eval "$ac_compile") 2>conftest.er1
10720- ac_status=$?
10721- grep -v '^ *+' conftest.er1 >conftest.err
10722- rm -f conftest.er1
10723- cat conftest.err >&5
10724- echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725- (exit $ac_status); } && {
10726- test -z "$ac_c_werror_flag" ||
10727- test ! -s conftest.err
10728- } && test -s conftest.$ac_objext; then
10729- ac_cv_type_void_p=yes
10730-else
10731- echo "$as_me: failed program was:" >&5
10732-sed 's/^/| /' conftest.$ac_ext >&5
10733-
10734- ac_cv_type_void_p=no
10735-fi
10736-
10737-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10738-fi
10739-{ echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
10740-echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
10741-
10742-# The cast to long int works around a bug in the HP C Compiler
10743-# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10744-# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10745-# This bug is HP SR number 8606223364.
10746-{ echo "$as_me:$LINENO: checking size of void *" >&5
10747-echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
10748-if test "${ac_cv_sizeof_void_p+set}" = set; then
10749- echo $ECHO_N "(cached) $ECHO_C" >&6
10750-else
10751- if test "$cross_compiling" = yes; then
10752- # Depending upon the size, compute the lo and hi bounds.
10753-cat >conftest.$ac_ext <<_ACEOF
10754-/* confdefs.h. */
10755-_ACEOF
10756-cat confdefs.h >>conftest.$ac_ext
10757-cat >>conftest.$ac_ext <<_ACEOF
10758-/* end confdefs.h. */
10759-$ac_includes_default
10760- typedef void * ac__type_sizeof_;
10761-int
10762-main ()
10763-{
10764-static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10765-test_array [0] = 0
10766-
10767- ;
10768- return 0;
10769-}
10770-_ACEOF
10771-rm -f conftest.$ac_objext
10772-if { (ac_try="$ac_compile"
10773-case "(($ac_try" in
10774- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10775- *) ac_try_echo=$ac_try;;
10776-esac
10777-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10778- (eval "$ac_compile") 2>conftest.er1
10779- ac_status=$?
10780- grep -v '^ *+' conftest.er1 >conftest.err
10781- rm -f conftest.er1
10782- cat conftest.err >&5
10783- echo "$as_me:$LINENO: \$? = $ac_status" >&5
10784- (exit $ac_status); } && {
10785- test -z "$ac_c_werror_flag" ||
10786- test ! -s conftest.err
10787- } && test -s conftest.$ac_objext; then
10788- ac_lo=0 ac_mid=0
10789- while :; do
10790- cat >conftest.$ac_ext <<_ACEOF
10791-/* confdefs.h. */
10792-_ACEOF
10793-cat confdefs.h >>conftest.$ac_ext
10794-cat >>conftest.$ac_ext <<_ACEOF
10795-/* end confdefs.h. */
10796-$ac_includes_default
10797- typedef void * ac__type_sizeof_;
10798-int
10799-main ()
10800-{
10801-static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10802-test_array [0] = 0
10803-
10804- ;
10805- return 0;
10806-}
10807-_ACEOF
10808-rm -f conftest.$ac_objext
10809-if { (ac_try="$ac_compile"
10810-case "(($ac_try" in
10811- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10812- *) ac_try_echo=$ac_try;;
10813-esac
10814-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10815- (eval "$ac_compile") 2>conftest.er1
10816- ac_status=$?
10817- grep -v '^ *+' conftest.er1 >conftest.err
10818- rm -f conftest.er1
10819- cat conftest.err >&5
10820- echo "$as_me:$LINENO: \$? = $ac_status" >&5
10821- (exit $ac_status); } && {
10822- test -z "$ac_c_werror_flag" ||
10823- test ! -s conftest.err
10824- } && test -s conftest.$ac_objext; then
10825- ac_hi=$ac_mid; break
10826-else
10827- echo "$as_me: failed program was:" >&5
10828-sed 's/^/| /' conftest.$ac_ext >&5
10829-
10830- ac_lo=`expr $ac_mid + 1`
10831- if test $ac_lo -le $ac_mid; then
10832- ac_lo= ac_hi=
10833- break
10834- fi
10835- ac_mid=`expr 2 '*' $ac_mid + 1`
10836-fi
10837-
10838-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10839- done
10840-else
10841- echo "$as_me: failed program was:" >&5
10842-sed 's/^/| /' conftest.$ac_ext >&5
10843-
10844- cat >conftest.$ac_ext <<_ACEOF
10845-/* confdefs.h. */
10846-_ACEOF
10847-cat confdefs.h >>conftest.$ac_ext
10848-cat >>conftest.$ac_ext <<_ACEOF
10849-/* end confdefs.h. */
10850-$ac_includes_default
10851- typedef void * ac__type_sizeof_;
10852-int
10853-main ()
10854-{
10855-static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10856-test_array [0] = 0
10857-
10858- ;
10859- return 0;
10860-}
10861-_ACEOF
10862-rm -f conftest.$ac_objext
10863-if { (ac_try="$ac_compile"
10864-case "(($ac_try" in
10865- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10866- *) ac_try_echo=$ac_try;;
10867-esac
10868-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10869- (eval "$ac_compile") 2>conftest.er1
10870- ac_status=$?
10871- grep -v '^ *+' conftest.er1 >conftest.err
10872- rm -f conftest.er1
10873- cat conftest.err >&5
10874- echo "$as_me:$LINENO: \$? = $ac_status" >&5
10875- (exit $ac_status); } && {
10876- test -z "$ac_c_werror_flag" ||
10877- test ! -s conftest.err
10878- } && test -s conftest.$ac_objext; then
10879- ac_hi=-1 ac_mid=-1
10880- while :; do
10881- cat >conftest.$ac_ext <<_ACEOF
10882-/* confdefs.h. */
10883-_ACEOF
10884-cat confdefs.h >>conftest.$ac_ext
10885-cat >>conftest.$ac_ext <<_ACEOF
10886-/* end confdefs.h. */
10887-$ac_includes_default
10888- typedef void * ac__type_sizeof_;
10889-int
10890-main ()
10891-{
10892-static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10893-test_array [0] = 0
10894-
10895- ;
10896- return 0;
10897-}
10898-_ACEOF
10899-rm -f conftest.$ac_objext
10900-if { (ac_try="$ac_compile"
10901-case "(($ac_try" in
10902- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10903- *) ac_try_echo=$ac_try;;
10904-esac
10905-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10906- (eval "$ac_compile") 2>conftest.er1
10907- ac_status=$?
10908- grep -v '^ *+' conftest.er1 >conftest.err
10909- rm -f conftest.er1
10910- cat conftest.err >&5
10911- echo "$as_me:$LINENO: \$? = $ac_status" >&5
10912- (exit $ac_status); } && {
10913- test -z "$ac_c_werror_flag" ||
10914- test ! -s conftest.err
10915- } && test -s conftest.$ac_objext; then
10916- ac_lo=$ac_mid; break
10917-else
10918- echo "$as_me: failed program was:" >&5
10919-sed 's/^/| /' conftest.$ac_ext >&5
10920-
10921- ac_hi=`expr '(' $ac_mid ')' - 1`
10922- if test $ac_mid -le $ac_hi; then
10923- ac_lo= ac_hi=
10924- break
10925- fi
10926- ac_mid=`expr 2 '*' $ac_mid`
10927-fi
10928-
10929-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10930- done
10931-else
10932- echo "$as_me: failed program was:" >&5
10933-sed 's/^/| /' conftest.$ac_ext >&5
10934-
10935- ac_lo= ac_hi=
10936-fi
10937-
10938-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10939-fi
10940-
10941-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10942-# Binary search between lo and hi bounds.
10943-while test "x$ac_lo" != "x$ac_hi"; do
10944- ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10945- cat >conftest.$ac_ext <<_ACEOF
10946-/* confdefs.h. */
10947-_ACEOF
10948-cat confdefs.h >>conftest.$ac_ext
10949-cat >>conftest.$ac_ext <<_ACEOF
10950-/* end confdefs.h. */
10951-$ac_includes_default
10952- typedef void * ac__type_sizeof_;
10953-int
10954-main ()
10955-{
10956-static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10957-test_array [0] = 0
10958-
10959- ;
10960- return 0;
10961-}
10962-_ACEOF
10963-rm -f conftest.$ac_objext
10964-if { (ac_try="$ac_compile"
10965-case "(($ac_try" in
10966- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10967- *) ac_try_echo=$ac_try;;
10968-esac
10969-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10970- (eval "$ac_compile") 2>conftest.er1
10971- ac_status=$?
10972- grep -v '^ *+' conftest.er1 >conftest.err
10973- rm -f conftest.er1
10974- cat conftest.err >&5
10975- echo "$as_me:$LINENO: \$? = $ac_status" >&5
10976- (exit $ac_status); } && {
10977- test -z "$ac_c_werror_flag" ||
10978- test ! -s conftest.err
10979- } && test -s conftest.$ac_objext; then
10980- ac_hi=$ac_mid
10981-else
10982- echo "$as_me: failed program was:" >&5
10983-sed 's/^/| /' conftest.$ac_ext >&5
10984-
10985- ac_lo=`expr '(' $ac_mid ')' + 1`
10986-fi
10987-
10988-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10989-done
10990-case $ac_lo in
10991-?*) ac_cv_sizeof_void_p=$ac_lo;;
10992-'') if test "$ac_cv_type_void_p" = yes; then
10993- { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
10994-See \`config.log' for more details." >&5
10995-echo "$as_me: error: cannot compute sizeof (void *)
10996-See \`config.log' for more details." >&2;}
10997- { (exit 77); exit 77; }; }
10998- else
10999- ac_cv_sizeof_void_p=0
11000- fi ;;
11001-esac
11002-else
11003- cat >conftest.$ac_ext <<_ACEOF
11004-/* confdefs.h. */
11005-_ACEOF
11006-cat confdefs.h >>conftest.$ac_ext
11007-cat >>conftest.$ac_ext <<_ACEOF
11008-/* end confdefs.h. */
11009-$ac_includes_default
11010- typedef void * ac__type_sizeof_;
11011-static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11012-static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11013-#include <stdio.h>
11014-#include <stdlib.h>
11015-int
11016-main ()
11017-{
11018-
11019- FILE *f = fopen ("conftest.val", "w");
11020- if (! f)
11021- return 1;
11022- if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11023- {
11024- long int i = longval ();
11025- if (i != ((long int) (sizeof (ac__type_sizeof_))))
11026- return 1;
11027- fprintf (f, "%ld\n", i);
11028- }
11029- else
11030- {
11031- unsigned long int i = ulongval ();
11032- if (i != ((long int) (sizeof (ac__type_sizeof_))))
11033- return 1;
11034- fprintf (f, "%lu\n", i);
11035- }
11036- return ferror (f) || fclose (f) != 0;
11037-
11038- ;
11039- return 0;
11040-}
11041-_ACEOF
11042-rm -f conftest$ac_exeext
11043-if { (ac_try="$ac_link"
11044-case "(($ac_try" in
11045- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11046- *) ac_try_echo=$ac_try;;
11047-esac
11048-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11049- (eval "$ac_link") 2>&5
11050- ac_status=$?
11051- echo "$as_me:$LINENO: \$? = $ac_status" >&5
11052- (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11053- { (case "(($ac_try" in
11054- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11055- *) ac_try_echo=$ac_try;;
11056-esac
11057-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11058- (eval "$ac_try") 2>&5
11059- ac_status=$?
11060- echo "$as_me:$LINENO: \$? = $ac_status" >&5
11061- (exit $ac_status); }; }; then
11062- ac_cv_sizeof_void_p=`cat conftest.val`
11063-else
11064- echo "$as_me: program exited with status $ac_status" >&5
11065-echo "$as_me: failed program was:" >&5
11066-sed 's/^/| /' conftest.$ac_ext >&5
11067-
11068-( exit $ac_status )
11069-if test "$ac_cv_type_void_p" = yes; then
11070- { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
11071-See \`config.log' for more details." >&5
11072-echo "$as_me: error: cannot compute sizeof (void *)
11073-See \`config.log' for more details." >&2;}
11074- { (exit 77); exit 77; }; }
11075- else
11076- ac_cv_sizeof_void_p=0
11077- fi
11078-fi
11079-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11080-fi
11081-rm -f conftest.val
11082-fi
11083-{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
11084-echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
11085-
11086-
11087-
11088-cat >>confdefs.h <<_ACEOF
11089-#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
11090-_ACEOF
11091-
11092-
11093-{ echo "$as_me:$LINENO: checking for short" >&5
11094-echo $ECHO_N "checking for short... $ECHO_C" >&6; }
11095-if test "${ac_cv_type_short+set}" = set; then
11096- echo $ECHO_N "(cached) $ECHO_C" >&6
11097-else
11098- cat >conftest.$ac_ext <<_ACEOF
11099-/* confdefs.h. */
11100-_ACEOF
11101-cat confdefs.h >>conftest.$ac_ext
11102-cat >>conftest.$ac_ext <<_ACEOF
11103-/* end confdefs.h. */
11104-$ac_includes_default
11105-typedef short ac__type_new_;
11106-int
11107-main ()
11108-{
11109-if ((ac__type_new_ *) 0)
11110- return 0;
11111-if (sizeof (ac__type_new_))
11112- return 0;
11113- ;
11114- return 0;
11115-}
11116-_ACEOF
11117-rm -f conftest.$ac_objext
11118-if { (ac_try="$ac_compile"
11119-case "(($ac_try" in
11120- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11121- *) ac_try_echo=$ac_try;;
11122-esac
11123-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11124- (eval "$ac_compile") 2>conftest.er1
11125- ac_status=$?
11126- grep -v '^ *+' conftest.er1 >conftest.err
11127- rm -f conftest.er1
11128- cat conftest.err >&5
11129- echo "$as_me:$LINENO: \$? = $ac_status" >&5
11130- (exit $ac_status); } && {
11131- test -z "$ac_c_werror_flag" ||
11132- test ! -s conftest.err
11133- } && test -s conftest.$ac_objext; then
11134- ac_cv_type_short=yes
11135-else
11136- echo "$as_me: failed program was:" >&5
11137-sed 's/^/| /' conftest.$ac_ext >&5
11138-
11139- ac_cv_type_short=no
11140-fi
11141-
11142-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11143-fi
11144-{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
11145-echo "${ECHO_T}$ac_cv_type_short" >&6; }
11146-
11147-# The cast to long int works around a bug in the HP C Compiler
11148-# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11149-# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11150-# This bug is HP SR number 8606223364.
11151-{ echo "$as_me:$LINENO: checking size of short" >&5
11152-echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
11153-if test "${ac_cv_sizeof_short+set}" = set; then
11154- echo $ECHO_N "(cached) $ECHO_C" >&6
11155-else
11156- if test "$cross_compiling" = yes; then
11157- # Depending upon the size, compute the lo and hi bounds.
11158-cat >conftest.$ac_ext <<_ACEOF
11159-/* confdefs.h. */
11160-_ACEOF
11161-cat confdefs.h >>conftest.$ac_ext
11162-cat >>conftest.$ac_ext <<_ACEOF
11163-/* end confdefs.h. */
11164-$ac_includes_default
11165- typedef short ac__type_sizeof_;
11166-int
11167-main ()
11168-{
11169-static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11170-test_array [0] = 0
11171-
11172- ;
11173- return 0;
11174-}
11175-_ACEOF
11176-rm -f conftest.$ac_objext
11177-if { (ac_try="$ac_compile"
11178-case "(($ac_try" in
11179- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11180- *) ac_try_echo=$ac_try;;
11181-esac
11182-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11183- (eval "$ac_compile") 2>conftest.er1
11184- ac_status=$?
11185- grep -v '^ *+' conftest.er1 >conftest.err
11186- rm -f conftest.er1
11187- cat conftest.err >&5
11188- echo "$as_me:$LINENO: \$? = $ac_status" >&5
11189- (exit $ac_status); } && {
11190- test -z "$ac_c_werror_flag" ||
11191- test ! -s conftest.err
11192- } && test -s conftest.$ac_objext; then
11193- ac_lo=0 ac_mid=0
11194- while :; do
11195- cat >conftest.$ac_ext <<_ACEOF
11196-/* confdefs.h. */
11197-_ACEOF
11198-cat confdefs.h >>conftest.$ac_ext
11199-cat >>conftest.$ac_ext <<_ACEOF
11200-/* end confdefs.h. */
11201-$ac_includes_default
11202- typedef short ac__type_sizeof_;
11203-int
11204-main ()
11205-{
11206-static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11207-test_array [0] = 0
11208-
11209- ;
11210- return 0;
11211-}
11212-_ACEOF
11213-rm -f conftest.$ac_objext
11214-if { (ac_try="$ac_compile"
11215-case "(($ac_try" in
11216- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11217- *) ac_try_echo=$ac_try;;
11218-esac
11219-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11220- (eval "$ac_compile") 2>conftest.er1
11221- ac_status=$?
11222- grep -v '^ *+' conftest.er1 >conftest.err
11223- rm -f conftest.er1
11224- cat conftest.err >&5
11225- echo "$as_me:$LINENO: \$? = $ac_status" >&5
11226- (exit $ac_status); } && {
11227- test -z "$ac_c_werror_flag" ||
11228- test ! -s conftest.err
11229- } && test -s conftest.$ac_objext; then
11230- ac_hi=$ac_mid; break
11231-else
11232- echo "$as_me: failed program was:" >&5
11233-sed 's/^/| /' conftest.$ac_ext >&5
11234-
11235- ac_lo=`expr $ac_mid + 1`
11236- if test $ac_lo -le $ac_mid; then
11237- ac_lo= ac_hi=
11238- break
11239- fi
11240- ac_mid=`expr 2 '*' $ac_mid + 1`
11241-fi
11242-
11243-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11244- done
11245-else
11246- echo "$as_me: failed program was:" >&5
11247-sed 's/^/| /' conftest.$ac_ext >&5
11248-
11249- cat >conftest.$ac_ext <<_ACEOF
11250-/* confdefs.h. */
11251-_ACEOF
11252-cat confdefs.h >>conftest.$ac_ext
11253-cat >>conftest.$ac_ext <<_ACEOF
11254-/* end confdefs.h. */
11255-$ac_includes_default
11256- typedef short ac__type_sizeof_;
11257-int
11258-main ()
11259-{
11260-static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11261-test_array [0] = 0
11262-
11263- ;
11264- return 0;
11265-}
11266-_ACEOF
11267-rm -f conftest.$ac_objext
11268-if { (ac_try="$ac_compile"
11269-case "(($ac_try" in
11270- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11271- *) ac_try_echo=$ac_try;;
11272-esac
11273-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11274- (eval "$ac_compile") 2>conftest.er1
11275- ac_status=$?
11276- grep -v '^ *+' conftest.er1 >conftest.err
11277- rm -f conftest.er1
11278- cat conftest.err >&5
11279- echo "$as_me:$LINENO: \$? = $ac_status" >&5
11280- (exit $ac_status); } && {
11281- test -z "$ac_c_werror_flag" ||
11282- test ! -s conftest.err
11283- } && test -s conftest.$ac_objext; then
11284- ac_hi=-1 ac_mid=-1
11285- while :; do
11286- cat >conftest.$ac_ext <<_ACEOF
11287-/* confdefs.h. */
11288-_ACEOF
11289-cat confdefs.h >>conftest.$ac_ext
11290-cat >>conftest.$ac_ext <<_ACEOF
11291-/* end confdefs.h. */
11292-$ac_includes_default
11293- typedef short ac__type_sizeof_;
11294-int
11295-main ()
11296-{
11297-static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11298-test_array [0] = 0
11299-
11300- ;
11301- return 0;
11302-}
11303-_ACEOF
11304-rm -f conftest.$ac_objext
11305-if { (ac_try="$ac_compile"
11306-case "(($ac_try" in
11307- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11308- *) ac_try_echo=$ac_try;;
11309-esac
11310-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11311- (eval "$ac_compile") 2>conftest.er1
11312- ac_status=$?
11313- grep -v '^ *+' conftest.er1 >conftest.err
11314- rm -f conftest.er1
11315- cat conftest.err >&5
11316- echo "$as_me:$LINENO: \$? = $ac_status" >&5
11317- (exit $ac_status); } && {
11318- test -z "$ac_c_werror_flag" ||
11319- test ! -s conftest.err
11320- } && test -s conftest.$ac_objext; then
11321- ac_lo=$ac_mid; break
11322-else
11323- echo "$as_me: failed program was:" >&5
11324-sed 's/^/| /' conftest.$ac_ext >&5
11325-
11326- ac_hi=`expr '(' $ac_mid ')' - 1`
11327- if test $ac_mid -le $ac_hi; then
11328- ac_lo= ac_hi=
11329- break
11330- fi
11331- ac_mid=`expr 2 '*' $ac_mid`
11332-fi
11333-
11334-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11335- done
11336-else
11337- echo "$as_me: failed program was:" >&5
11338-sed 's/^/| /' conftest.$ac_ext >&5
11339-
11340- ac_lo= ac_hi=
11341-fi
11342-
11343-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11344-fi
11345-
11346-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11347-# Binary search between lo and hi bounds.
11348-while test "x$ac_lo" != "x$ac_hi"; do
11349- ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11350- cat >conftest.$ac_ext <<_ACEOF
11351-/* confdefs.h. */
11352-_ACEOF
11353-cat confdefs.h >>conftest.$ac_ext
11354-cat >>conftest.$ac_ext <<_ACEOF
11355-/* end confdefs.h. */
11356-$ac_includes_default
11357- typedef short ac__type_sizeof_;
11358-int
11359-main ()
11360-{
11361-static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11362-test_array [0] = 0
11363-
11364- ;
11365- return 0;
11366-}
11367-_ACEOF
11368-rm -f conftest.$ac_objext
11369-if { (ac_try="$ac_compile"
11370-case "(($ac_try" in
11371- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11372- *) ac_try_echo=$ac_try;;
11373-esac
11374-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11375- (eval "$ac_compile") 2>conftest.er1
11376- ac_status=$?
11377- grep -v '^ *+' conftest.er1 >conftest.err
11378- rm -f conftest.er1
11379- cat conftest.err >&5
11380- echo "$as_me:$LINENO: \$? = $ac_status" >&5
11381- (exit $ac_status); } && {
11382- test -z "$ac_c_werror_flag" ||
11383- test ! -s conftest.err
11384- } && test -s conftest.$ac_objext; then
11385- ac_hi=$ac_mid
11386-else
11387- echo "$as_me: failed program was:" >&5
11388-sed 's/^/| /' conftest.$ac_ext >&5
11389-
11390- ac_lo=`expr '(' $ac_mid ')' + 1`
11391-fi
11392-
11393-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11394-done
11395-case $ac_lo in
11396-?*) ac_cv_sizeof_short=$ac_lo;;
11397-'') if test "$ac_cv_type_short" = yes; then
11398- { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
11399-See \`config.log' for more details." >&5
11400-echo "$as_me: error: cannot compute sizeof (short)
11401-See \`config.log' for more details." >&2;}
11402- { (exit 77); exit 77; }; }
11403- else
11404- ac_cv_sizeof_short=0
11405- fi ;;
11406-esac
11407-else
11408- cat >conftest.$ac_ext <<_ACEOF
11409-/* confdefs.h. */
11410-_ACEOF
11411-cat confdefs.h >>conftest.$ac_ext
11412-cat >>conftest.$ac_ext <<_ACEOF
11413-/* end confdefs.h. */
11414-$ac_includes_default
11415- typedef short ac__type_sizeof_;
11416-static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11417-static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11418-#include <stdio.h>
11419-#include <stdlib.h>
11420-int
11421-main ()
11422-{
11423-
11424- FILE *f = fopen ("conftest.val", "w");
11425- if (! f)
11426- return 1;
11427- if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11428- {
11429- long int i = longval ();
11430- if (i != ((long int) (sizeof (ac__type_sizeof_))))
11431- return 1;
11432- fprintf (f, "%ld\n", i);
11433- }
11434- else
11435- {
11436- unsigned long int i = ulongval ();
11437- if (i != ((long int) (sizeof (ac__type_sizeof_))))
11438- return 1;
11439- fprintf (f, "%lu\n", i);
11440- }
11441- return ferror (f) || fclose (f) != 0;
11442-
11443- ;
11444- return 0;
11445-}
11446-_ACEOF
11447-rm -f conftest$ac_exeext
11448-if { (ac_try="$ac_link"
11449-case "(($ac_try" in
11450- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11451- *) ac_try_echo=$ac_try;;
11452-esac
11453-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11454- (eval "$ac_link") 2>&5
11455- ac_status=$?
11456- echo "$as_me:$LINENO: \$? = $ac_status" >&5
11457- (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11458- { (case "(($ac_try" in
11459- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11460- *) ac_try_echo=$ac_try;;
11461-esac
11462-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11463- (eval "$ac_try") 2>&5
11464- ac_status=$?
11465- echo "$as_me:$LINENO: \$? = $ac_status" >&5
11466- (exit $ac_status); }; }; then
11467- ac_cv_sizeof_short=`cat conftest.val`
11468-else
11469- echo "$as_me: program exited with status $ac_status" >&5
11470-echo "$as_me: failed program was:" >&5
11471-sed 's/^/| /' conftest.$ac_ext >&5
11472-
11473-( exit $ac_status )
11474-if test "$ac_cv_type_short" = yes; then
11475- { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
11476-See \`config.log' for more details." >&5
11477-echo "$as_me: error: cannot compute sizeof (short)
11478-See \`config.log' for more details." >&2;}
11479- { (exit 77); exit 77; }; }
11480- else
11481- ac_cv_sizeof_short=0
11482- fi
11483-fi
11484-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11485-fi
11486-rm -f conftest.val
11487-fi
11488-{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
11489-echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
11490-
11491-
11492-
11493-cat >>confdefs.h <<_ACEOF
11494-#define SIZEOF_SHORT $ac_cv_sizeof_short
11495-_ACEOF
11496-
11497-
11498-{ echo "$as_me:$LINENO: checking for float" >&5
11499-echo $ECHO_N "checking for float... $ECHO_C" >&6; }
11500-if test "${ac_cv_type_float+set}" = set; then
11501- echo $ECHO_N "(cached) $ECHO_C" >&6
11502-else
11503- cat >conftest.$ac_ext <<_ACEOF
11504-/* confdefs.h. */
11505-_ACEOF
11506-cat confdefs.h >>conftest.$ac_ext
11507-cat >>conftest.$ac_ext <<_ACEOF
11508-/* end confdefs.h. */
11509-$ac_includes_default
11510-typedef float ac__type_new_;
11511-int
11512-main ()
11513-{
11514-if ((ac__type_new_ *) 0)
11515- return 0;
11516-if (sizeof (ac__type_new_))
11517- return 0;
11518- ;
11519- return 0;
11520-}
11521-_ACEOF
11522-rm -f conftest.$ac_objext
11523-if { (ac_try="$ac_compile"
11524-case "(($ac_try" in
11525- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11526- *) ac_try_echo=$ac_try;;
11527-esac
11528-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11529- (eval "$ac_compile") 2>conftest.er1
11530- ac_status=$?
11531- grep -v '^ *+' conftest.er1 >conftest.err
11532- rm -f conftest.er1
11533- cat conftest.err >&5
11534- echo "$as_me:$LINENO: \$? = $ac_status" >&5
11535- (exit $ac_status); } && {
11536- test -z "$ac_c_werror_flag" ||
11537- test ! -s conftest.err
11538- } && test -s conftest.$ac_objext; then
11539- ac_cv_type_float=yes
11540-else
11541- echo "$as_me: failed program was:" >&5
11542-sed 's/^/| /' conftest.$ac_ext >&5
11543-
11544- ac_cv_type_float=no
11545-fi
11546-
11547-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11548-fi
11549-{ echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
11550-echo "${ECHO_T}$ac_cv_type_float" >&6; }
11551-
11552-# The cast to long int works around a bug in the HP C Compiler
11553-# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11554-# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11555-# This bug is HP SR number 8606223364.
11556-{ echo "$as_me:$LINENO: checking size of float" >&5
11557-echo $ECHO_N "checking size of float... $ECHO_C" >&6; }
11558-if test "${ac_cv_sizeof_float+set}" = set; then
11559- echo $ECHO_N "(cached) $ECHO_C" >&6
11560-else
11561- if test "$cross_compiling" = yes; then
11562- # Depending upon the size, compute the lo and hi bounds.
11563-cat >conftest.$ac_ext <<_ACEOF
11564-/* confdefs.h. */
11565-_ACEOF
11566-cat confdefs.h >>conftest.$ac_ext
11567-cat >>conftest.$ac_ext <<_ACEOF
11568-/* end confdefs.h. */
11569-$ac_includes_default
11570- typedef float ac__type_sizeof_;
11571-int
11572-main ()
11573-{
11574-static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11575-test_array [0] = 0
11576-
11577- ;
11578- return 0;
11579-}
11580-_ACEOF
11581-rm -f conftest.$ac_objext
11582-if { (ac_try="$ac_compile"
11583-case "(($ac_try" in
11584- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11585- *) ac_try_echo=$ac_try;;
11586-esac
11587-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11588- (eval "$ac_compile") 2>conftest.er1
11589- ac_status=$?
11590- grep -v '^ *+' conftest.er1 >conftest.err
11591- rm -f conftest.er1
11592- cat conftest.err >&5
11593- echo "$as_me:$LINENO: \$? = $ac_status" >&5
11594- (exit $ac_status); } && {
11595- test -z "$ac_c_werror_flag" ||
11596- test ! -s conftest.err
11597- } && test -s conftest.$ac_objext; then
11598- ac_lo=0 ac_mid=0
11599- while :; do
11600- cat >conftest.$ac_ext <<_ACEOF
11601-/* confdefs.h. */
11602-_ACEOF
11603-cat confdefs.h >>conftest.$ac_ext
11604-cat >>conftest.$ac_ext <<_ACEOF
11605-/* end confdefs.h. */
11606-$ac_includes_default
11607- typedef float ac__type_sizeof_;
11608-int
11609-main ()
11610-{
11611-static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11612-test_array [0] = 0
11613-
11614- ;
11615- return 0;
11616-}
11617-_ACEOF
11618-rm -f conftest.$ac_objext
11619-if { (ac_try="$ac_compile"
11620-case "(($ac_try" in
11621- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11622- *) ac_try_echo=$ac_try;;
11623-esac
11624-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11625- (eval "$ac_compile") 2>conftest.er1
11626- ac_status=$?
11627- grep -v '^ *+' conftest.er1 >conftest.err
11628- rm -f conftest.er1
11629- cat conftest.err >&5
11630- echo "$as_me:$LINENO: \$? = $ac_status" >&5
11631- (exit $ac_status); } && {
11632- test -z "$ac_c_werror_flag" ||
11633- test ! -s conftest.err
11634- } && test -s conftest.$ac_objext; then
11635- ac_hi=$ac_mid; break
11636-else
11637- echo "$as_me: failed program was:" >&5
11638-sed 's/^/| /' conftest.$ac_ext >&5
11639-
11640- ac_lo=`expr $ac_mid + 1`
11641- if test $ac_lo -le $ac_mid; then
11642- ac_lo= ac_hi=
11643- break
11644- fi
11645- ac_mid=`expr 2 '*' $ac_mid + 1`
11646-fi
11647-
11648-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11649- done
11650-else
11651- echo "$as_me: failed program was:" >&5
11652-sed 's/^/| /' conftest.$ac_ext >&5
11653-
11654- cat >conftest.$ac_ext <<_ACEOF
11655-/* confdefs.h. */
11656-_ACEOF
11657-cat confdefs.h >>conftest.$ac_ext
11658-cat >>conftest.$ac_ext <<_ACEOF
11659-/* end confdefs.h. */
11660-$ac_includes_default
11661- typedef float ac__type_sizeof_;
11662-int
11663-main ()
11664-{
11665-static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11666-test_array [0] = 0
11667-
11668- ;
11669- return 0;
11670-}
11671-_ACEOF
11672-rm -f conftest.$ac_objext
11673-if { (ac_try="$ac_compile"
11674-case "(($ac_try" in
11675- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11676- *) ac_try_echo=$ac_try;;
11677-esac
11678-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11679- (eval "$ac_compile") 2>conftest.er1
11680- ac_status=$?
11681- grep -v '^ *+' conftest.er1 >conftest.err
11682- rm -f conftest.er1
11683- cat conftest.err >&5
11684- echo "$as_me:$LINENO: \$? = $ac_status" >&5
11685- (exit $ac_status); } && {
11686- test -z "$ac_c_werror_flag" ||
11687- test ! -s conftest.err
11688- } && test -s conftest.$ac_objext; then
11689- ac_hi=-1 ac_mid=-1
11690- while :; do
11691- cat >conftest.$ac_ext <<_ACEOF
11692-/* confdefs.h. */
11693-_ACEOF
11694-cat confdefs.h >>conftest.$ac_ext
11695-cat >>conftest.$ac_ext <<_ACEOF
11696-/* end confdefs.h. */
11697-$ac_includes_default
11698- typedef float ac__type_sizeof_;
11699-int
11700-main ()
11701-{
11702-static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11703-test_array [0] = 0
11704-
11705- ;
11706- return 0;
11707-}
11708-_ACEOF
11709-rm -f conftest.$ac_objext
11710-if { (ac_try="$ac_compile"
11711-case "(($ac_try" in
11712- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11713- *) ac_try_echo=$ac_try;;
11714-esac
11715-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11716- (eval "$ac_compile") 2>conftest.er1
11717- ac_status=$?
11718- grep -v '^ *+' conftest.er1 >conftest.err
11719- rm -f conftest.er1
11720- cat conftest.err >&5
11721- echo "$as_me:$LINENO: \$? = $ac_status" >&5
11722- (exit $ac_status); } && {
11723- test -z "$ac_c_werror_flag" ||
11724- test ! -s conftest.err
11725- } && test -s conftest.$ac_objext; then
11726- ac_lo=$ac_mid; break
11727-else
11728- echo "$as_me: failed program was:" >&5
11729-sed 's/^/| /' conftest.$ac_ext >&5
11730-
11731- ac_hi=`expr '(' $ac_mid ')' - 1`
11732- if test $ac_mid -le $ac_hi; then
11733- ac_lo= ac_hi=
11734- break
11735- fi
11736- ac_mid=`expr 2 '*' $ac_mid`
11737-fi
11738-
11739-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11740- done
11741-else
11742- echo "$as_me: failed program was:" >&5
11743-sed 's/^/| /' conftest.$ac_ext >&5
11744-
11745- ac_lo= ac_hi=
11746-fi
11747-
11748-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11749-fi
11750-
11751-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11752-# Binary search between lo and hi bounds.
11753-while test "x$ac_lo" != "x$ac_hi"; do
11754- ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11755- cat >conftest.$ac_ext <<_ACEOF
11756-/* confdefs.h. */
11757-_ACEOF
11758-cat confdefs.h >>conftest.$ac_ext
11759-cat >>conftest.$ac_ext <<_ACEOF
11760-/* end confdefs.h. */
11761-$ac_includes_default
11762- typedef float ac__type_sizeof_;
11763-int
11764-main ()
11765-{
11766-static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11767-test_array [0] = 0
11768-
11769- ;
11770- return 0;
11771-}
11772-_ACEOF
11773-rm -f conftest.$ac_objext
11774-if { (ac_try="$ac_compile"
11775-case "(($ac_try" in
11776- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11777- *) ac_try_echo=$ac_try;;
11778-esac
11779-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11780- (eval "$ac_compile") 2>conftest.er1
11781- ac_status=$?
11782- grep -v '^ *+' conftest.er1 >conftest.err
11783- rm -f conftest.er1
11784- cat conftest.err >&5
11785- echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786- (exit $ac_status); } && {
11787- test -z "$ac_c_werror_flag" ||
11788- test ! -s conftest.err
11789- } && test -s conftest.$ac_objext; then
11790- ac_hi=$ac_mid
11791-else
11792- echo "$as_me: failed program was:" >&5
11793-sed 's/^/| /' conftest.$ac_ext >&5
11794-
11795- ac_lo=`expr '(' $ac_mid ')' + 1`
11796-fi
11797-
11798-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11799-done
11800-case $ac_lo in
11801-?*) ac_cv_sizeof_float=$ac_lo;;
11802-'') if test "$ac_cv_type_float" = yes; then
11803- { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
11804-See \`config.log' for more details." >&5
11805-echo "$as_me: error: cannot compute sizeof (float)
11806-See \`config.log' for more details." >&2;}
11807- { (exit 77); exit 77; }; }
11808- else
11809- ac_cv_sizeof_float=0
11810- fi ;;
11811-esac
11812-else
11813- cat >conftest.$ac_ext <<_ACEOF
11814-/* confdefs.h. */
11815-_ACEOF
11816-cat confdefs.h >>conftest.$ac_ext
11817-cat >>conftest.$ac_ext <<_ACEOF
11818-/* end confdefs.h. */
11819-$ac_includes_default
11820- typedef float ac__type_sizeof_;
11821-static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11822-static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11823-#include <stdio.h>
11824-#include <stdlib.h>
11825-int
11826-main ()
11827-{
11828-
11829- FILE *f = fopen ("conftest.val", "w");
11830- if (! f)
11831- return 1;
11832- if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11833- {
11834- long int i = longval ();
11835- if (i != ((long int) (sizeof (ac__type_sizeof_))))
11836- return 1;
11837- fprintf (f, "%ld\n", i);
11838- }
11839- else
11840- {
11841- unsigned long int i = ulongval ();
11842- if (i != ((long int) (sizeof (ac__type_sizeof_))))
11843- return 1;
11844- fprintf (f, "%lu\n", i);
11845- }
11846- return ferror (f) || fclose (f) != 0;
11847-
11848- ;
11849- return 0;
11850-}
11851-_ACEOF
11852-rm -f conftest$ac_exeext
11853-if { (ac_try="$ac_link"
11854-case "(($ac_try" in
11855- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11856- *) ac_try_echo=$ac_try;;
11857-esac
11858-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11859- (eval "$ac_link") 2>&5
11860- ac_status=$?
11861- echo "$as_me:$LINENO: \$? = $ac_status" >&5
11862- (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11863- { (case "(($ac_try" in
11864- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11865- *) ac_try_echo=$ac_try;;
11866-esac
11867-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11868- (eval "$ac_try") 2>&5
11869- ac_status=$?
11870- echo "$as_me:$LINENO: \$? = $ac_status" >&5
11871- (exit $ac_status); }; }; then
11872- ac_cv_sizeof_float=`cat conftest.val`
11873-else
11874- echo "$as_me: program exited with status $ac_status" >&5
11875-echo "$as_me: failed program was:" >&5
11876-sed 's/^/| /' conftest.$ac_ext >&5
11877-
11878-( exit $ac_status )
11879-if test "$ac_cv_type_float" = yes; then
11880- { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
11881-See \`config.log' for more details." >&5
11882-echo "$as_me: error: cannot compute sizeof (float)
11883-See \`config.log' for more details." >&2;}
11884- { (exit 77); exit 77; }; }
11885- else
11886- ac_cv_sizeof_float=0
11887- fi
11888-fi
11889-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11890-fi
11891-rm -f conftest.val
11892-fi
11893-{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
11894-echo "${ECHO_T}$ac_cv_sizeof_float" >&6; }
11895-
11896-
11897-
11898-cat >>confdefs.h <<_ACEOF
11899-#define SIZEOF_FLOAT $ac_cv_sizeof_float
11900-_ACEOF
11901-
11902-
11903-{ echo "$as_me:$LINENO: checking for double" >&5
11904-echo $ECHO_N "checking for double... $ECHO_C" >&6; }
11905-if test "${ac_cv_type_double+set}" = set; then
11906- echo $ECHO_N "(cached) $ECHO_C" >&6
11907-else
11908- cat >conftest.$ac_ext <<_ACEOF
11909-/* confdefs.h. */
11910-_ACEOF
11911-cat confdefs.h >>conftest.$ac_ext
11912-cat >>conftest.$ac_ext <<_ACEOF
11913-/* end confdefs.h. */
11914-$ac_includes_default
11915-typedef double ac__type_new_;
11916-int
11917-main ()
11918-{
11919-if ((ac__type_new_ *) 0)
11920- return 0;
11921-if (sizeof (ac__type_new_))
11922- return 0;
11923- ;
11924- return 0;
11925-}
11926-_ACEOF
11927-rm -f conftest.$ac_objext
11928-if { (ac_try="$ac_compile"
11929-case "(($ac_try" in
11930- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11931- *) ac_try_echo=$ac_try;;
11932-esac
11933-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11934- (eval "$ac_compile") 2>conftest.er1
11935- ac_status=$?
11936- grep -v '^ *+' conftest.er1 >conftest.err
11937- rm -f conftest.er1
11938- cat conftest.err >&5
11939- echo "$as_me:$LINENO: \$? = $ac_status" >&5
11940- (exit $ac_status); } && {
11941- test -z "$ac_c_werror_flag" ||
11942- test ! -s conftest.err
11943- } && test -s conftest.$ac_objext; then
11944- ac_cv_type_double=yes
11945-else
11946- echo "$as_me: failed program was:" >&5
11947-sed 's/^/| /' conftest.$ac_ext >&5
11948-
11949- ac_cv_type_double=no
11950-fi
11951-
11952-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11953-fi
11954-{ echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
11955-echo "${ECHO_T}$ac_cv_type_double" >&6; }
11956-
11957-# The cast to long int works around a bug in the HP C Compiler
11958-# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11959-# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11960-# This bug is HP SR number 8606223364.
11961-{ echo "$as_me:$LINENO: checking size of double" >&5
11962-echo $ECHO_N "checking size of double... $ECHO_C" >&6; }
11963-if test "${ac_cv_sizeof_double+set}" = set; then
11964- echo $ECHO_N "(cached) $ECHO_C" >&6
11965-else
11966- if test "$cross_compiling" = yes; then
11967- # Depending upon the size, compute the lo and hi bounds.
11968-cat >conftest.$ac_ext <<_ACEOF
11969-/* confdefs.h. */
11970-_ACEOF
11971-cat confdefs.h >>conftest.$ac_ext
11972-cat >>conftest.$ac_ext <<_ACEOF
11973-/* end confdefs.h. */
11974-$ac_includes_default
11975- typedef double ac__type_sizeof_;
11976-int
11977-main ()
11978-{
11979-static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11980-test_array [0] = 0
11981-
11982- ;
11983- return 0;
11984-}
11985-_ACEOF
11986-rm -f conftest.$ac_objext
11987-if { (ac_try="$ac_compile"
11988-case "(($ac_try" in
11989- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11990- *) ac_try_echo=$ac_try;;
11991-esac
11992-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11993- (eval "$ac_compile") 2>conftest.er1
11994- ac_status=$?
11995- grep -v '^ *+' conftest.er1 >conftest.err
11996- rm -f conftest.er1
11997- cat conftest.err >&5
11998- echo "$as_me:$LINENO: \$? = $ac_status" >&5
11999- (exit $ac_status); } && {
12000- test -z "$ac_c_werror_flag" ||
12001- test ! -s conftest.err
12002- } && test -s conftest.$ac_objext; then
12003- ac_lo=0 ac_mid=0
12004- while :; do
12005- cat >conftest.$ac_ext <<_ACEOF
12006-/* confdefs.h. */
12007-_ACEOF
12008-cat confdefs.h >>conftest.$ac_ext
12009-cat >>conftest.$ac_ext <<_ACEOF
12010-/* end confdefs.h. */
12011-$ac_includes_default
12012- typedef double ac__type_sizeof_;
12013-int
12014-main ()
12015-{
12016-static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12017-test_array [0] = 0
12018-
12019- ;
12020- return 0;
12021-}
12022-_ACEOF
12023-rm -f conftest.$ac_objext
12024-if { (ac_try="$ac_compile"
12025-case "(($ac_try" in
12026- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12027- *) ac_try_echo=$ac_try;;
12028-esac
12029-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12030- (eval "$ac_compile") 2>conftest.er1
12031- ac_status=$?
12032- grep -v '^ *+' conftest.er1 >conftest.err
12033- rm -f conftest.er1
12034- cat conftest.err >&5
12035- echo "$as_me:$LINENO: \$? = $ac_status" >&5
12036- (exit $ac_status); } && {
12037- test -z "$ac_c_werror_flag" ||
12038- test ! -s conftest.err
12039- } && test -s conftest.$ac_objext; then
12040- ac_hi=$ac_mid; break
12041-else
12042- echo "$as_me: failed program was:" >&5
12043-sed 's/^/| /' conftest.$ac_ext >&5
12044-
12045- ac_lo=`expr $ac_mid + 1`
12046- if test $ac_lo -le $ac_mid; then
12047- ac_lo= ac_hi=
12048- break
12049- fi
12050- ac_mid=`expr 2 '*' $ac_mid + 1`
12051-fi
12052-
12053-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12054- done
12055-else
12056- echo "$as_me: failed program was:" >&5
12057-sed 's/^/| /' conftest.$ac_ext >&5
12058-
12059- cat >conftest.$ac_ext <<_ACEOF
12060-/* confdefs.h. */
12061-_ACEOF
12062-cat confdefs.h >>conftest.$ac_ext
12063-cat >>conftest.$ac_ext <<_ACEOF
12064-/* end confdefs.h. */
12065-$ac_includes_default
12066- typedef double ac__type_sizeof_;
12067-int
12068-main ()
12069-{
12070-static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12071-test_array [0] = 0
12072-
12073- ;
12074- return 0;
12075-}
12076-_ACEOF
12077-rm -f conftest.$ac_objext
12078-if { (ac_try="$ac_compile"
12079-case "(($ac_try" in
12080- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12081- *) ac_try_echo=$ac_try;;
12082-esac
12083-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12084- (eval "$ac_compile") 2>conftest.er1
12085- ac_status=$?
12086- grep -v '^ *+' conftest.er1 >conftest.err
12087- rm -f conftest.er1
12088- cat conftest.err >&5
12089- echo "$as_me:$LINENO: \$? = $ac_status" >&5
12090- (exit $ac_status); } && {
12091- test -z "$ac_c_werror_flag" ||
12092- test ! -s conftest.err
12093- } && test -s conftest.$ac_objext; then
12094- ac_hi=-1 ac_mid=-1
12095- while :; do
12096- cat >conftest.$ac_ext <<_ACEOF
12097-/* confdefs.h. */
12098-_ACEOF
12099-cat confdefs.h >>conftest.$ac_ext
12100-cat >>conftest.$ac_ext <<_ACEOF
12101-/* end confdefs.h. */
12102-$ac_includes_default
12103- typedef double ac__type_sizeof_;
12104-int
12105-main ()
12106-{
12107-static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12108-test_array [0] = 0
12109-
12110- ;
12111- return 0;
12112-}
12113-_ACEOF
12114-rm -f conftest.$ac_objext
12115-if { (ac_try="$ac_compile"
12116-case "(($ac_try" in
12117- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12118- *) ac_try_echo=$ac_try;;
12119-esac
12120-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12121- (eval "$ac_compile") 2>conftest.er1
12122- ac_status=$?
12123- grep -v '^ *+' conftest.er1 >conftest.err
12124- rm -f conftest.er1
12125- cat conftest.err >&5
12126- echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127- (exit $ac_status); } && {
12128- test -z "$ac_c_werror_flag" ||
12129- test ! -s conftest.err
12130- } && test -s conftest.$ac_objext; then
12131- ac_lo=$ac_mid; break
12132-else
12133- echo "$as_me: failed program was:" >&5
12134-sed 's/^/| /' conftest.$ac_ext >&5
12135-
12136- ac_hi=`expr '(' $ac_mid ')' - 1`
12137- if test $ac_mid -le $ac_hi; then
12138- ac_lo= ac_hi=
12139- break
12140- fi
12141- ac_mid=`expr 2 '*' $ac_mid`
12142-fi
12143-
12144-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12145- done
12146-else
12147- echo "$as_me: failed program was:" >&5
12148-sed 's/^/| /' conftest.$ac_ext >&5
12149-
12150- ac_lo= ac_hi=
12151-fi
12152-
12153-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12154-fi
12155-
12156-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12157-# Binary search between lo and hi bounds.
12158-while test "x$ac_lo" != "x$ac_hi"; do
12159- ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12160- cat >conftest.$ac_ext <<_ACEOF
12161-/* confdefs.h. */
12162-_ACEOF
12163-cat confdefs.h >>conftest.$ac_ext
12164-cat >>conftest.$ac_ext <<_ACEOF
12165-/* end confdefs.h. */
12166-$ac_includes_default
12167- typedef double ac__type_sizeof_;
12168-int
12169-main ()
12170-{
12171-static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12172-test_array [0] = 0
12173-
12174- ;
12175- return 0;
12176-}
12177-_ACEOF
12178-rm -f conftest.$ac_objext
12179-if { (ac_try="$ac_compile"
12180-case "(($ac_try" in
12181- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12182- *) ac_try_echo=$ac_try;;
12183-esac
12184-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12185- (eval "$ac_compile") 2>conftest.er1
12186- ac_status=$?
12187- grep -v '^ *+' conftest.er1 >conftest.err
12188- rm -f conftest.er1
12189- cat conftest.err >&5
12190- echo "$as_me:$LINENO: \$? = $ac_status" >&5
12191- (exit $ac_status); } && {
12192- test -z "$ac_c_werror_flag" ||
12193- test ! -s conftest.err
12194- } && test -s conftest.$ac_objext; then
12195- ac_hi=$ac_mid
12196-else
12197- echo "$as_me: failed program was:" >&5
12198-sed 's/^/| /' conftest.$ac_ext >&5
12199-
12200- ac_lo=`expr '(' $ac_mid ')' + 1`
12201-fi
12202-
12203-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12204-done
12205-case $ac_lo in
12206-?*) ac_cv_sizeof_double=$ac_lo;;
12207-'') if test "$ac_cv_type_double" = yes; then
12208- { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
12209-See \`config.log' for more details." >&5
12210-echo "$as_me: error: cannot compute sizeof (double)
12211-See \`config.log' for more details." >&2;}
12212- { (exit 77); exit 77; }; }
12213- else
12214- ac_cv_sizeof_double=0
12215- fi ;;
12216-esac
12217-else
12218- cat >conftest.$ac_ext <<_ACEOF
12219-/* confdefs.h. */
12220-_ACEOF
12221-cat confdefs.h >>conftest.$ac_ext
12222-cat >>conftest.$ac_ext <<_ACEOF
12223-/* end confdefs.h. */
12224-$ac_includes_default
12225- typedef double ac__type_sizeof_;
12226-static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12227-static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12228-#include <stdio.h>
12229-#include <stdlib.h>
12230-int
12231-main ()
12232-{
12233-
12234- FILE *f = fopen ("conftest.val", "w");
12235- if (! f)
12236- return 1;
12237- if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12238- {
12239- long int i = longval ();
12240- if (i != ((long int) (sizeof (ac__type_sizeof_))))
12241- return 1;
12242- fprintf (f, "%ld\n", i);
12243- }
12244- else
12245- {
12246- unsigned long int i = ulongval ();
12247- if (i != ((long int) (sizeof (ac__type_sizeof_))))
12248- return 1;
12249- fprintf (f, "%lu\n", i);
12250- }
12251- return ferror (f) || fclose (f) != 0;
12252-
12253- ;
12254- return 0;
12255-}
12256-_ACEOF
12257-rm -f conftest$ac_exeext
12258-if { (ac_try="$ac_link"
12259-case "(($ac_try" in
12260- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12261- *) ac_try_echo=$ac_try;;
12262-esac
12263-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12264- (eval "$ac_link") 2>&5
12265- ac_status=$?
12266- echo "$as_me:$LINENO: \$? = $ac_status" >&5
12267- (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12268- { (case "(($ac_try" in
12269- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12270- *) ac_try_echo=$ac_try;;
12271-esac
12272-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12273- (eval "$ac_try") 2>&5
12274- ac_status=$?
12275- echo "$as_me:$LINENO: \$? = $ac_status" >&5
12276- (exit $ac_status); }; }; then
12277- ac_cv_sizeof_double=`cat conftest.val`
12278-else
12279- echo "$as_me: program exited with status $ac_status" >&5
12280-echo "$as_me: failed program was:" >&5
12281-sed 's/^/| /' conftest.$ac_ext >&5
12282-
12283-( exit $ac_status )
12284-if test "$ac_cv_type_double" = yes; then
12285- { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
12286-See \`config.log' for more details." >&5
12287-echo "$as_me: error: cannot compute sizeof (double)
12288-See \`config.log' for more details." >&2;}
12289- { (exit 77); exit 77; }; }
12290- else
12291- ac_cv_sizeof_double=0
12292- fi
12293-fi
12294-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12295-fi
12296-rm -f conftest.val
12297-fi
12298-{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
12299-echo "${ECHO_T}$ac_cv_sizeof_double" >&6; }
12300-
12301-
12302-
12303-cat >>confdefs.h <<_ACEOF
12304-#define SIZEOF_DOUBLE $ac_cv_sizeof_double
12305-_ACEOF
12306-
12307-
12308-{ echo "$as_me:$LINENO: checking for fpos_t" >&5
12309-echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6; }
12310-if test "${ac_cv_type_fpos_t+set}" = set; then
12311- echo $ECHO_N "(cached) $ECHO_C" >&6
12312-else
12313- cat >conftest.$ac_ext <<_ACEOF
12314-/* confdefs.h. */
12315-_ACEOF
12316-cat confdefs.h >>conftest.$ac_ext
12317-cat >>conftest.$ac_ext <<_ACEOF
12318-/* end confdefs.h. */
12319-$ac_includes_default
12320-typedef fpos_t ac__type_new_;
12321-int
12322-main ()
12323-{
12324-if ((ac__type_new_ *) 0)
12325- return 0;
12326-if (sizeof (ac__type_new_))
12327- return 0;
12328- ;
12329- return 0;
12330-}
12331-_ACEOF
12332-rm -f conftest.$ac_objext
12333-if { (ac_try="$ac_compile"
12334-case "(($ac_try" in
12335- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12336- *) ac_try_echo=$ac_try;;
12337-esac
12338-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12339- (eval "$ac_compile") 2>conftest.er1
12340- ac_status=$?
12341- grep -v '^ *+' conftest.er1 >conftest.err
12342- rm -f conftest.er1
12343- cat conftest.err >&5
12344- echo "$as_me:$LINENO: \$? = $ac_status" >&5
12345- (exit $ac_status); } && {
12346- test -z "$ac_c_werror_flag" ||
12347- test ! -s conftest.err
12348- } && test -s conftest.$ac_objext; then
12349- ac_cv_type_fpos_t=yes
12350-else
12351- echo "$as_me: failed program was:" >&5
12352-sed 's/^/| /' conftest.$ac_ext >&5
12353-
12354- ac_cv_type_fpos_t=no
12355-fi
12356-
12357-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12358-fi
12359-{ echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
12360-echo "${ECHO_T}$ac_cv_type_fpos_t" >&6; }
12361-
12362-# The cast to long int works around a bug in the HP C Compiler
12363-# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12364-# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12365-# This bug is HP SR number 8606223364.
12366-{ echo "$as_me:$LINENO: checking size of fpos_t" >&5
12367-echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6; }
12368-if test "${ac_cv_sizeof_fpos_t+set}" = set; then
12369- echo $ECHO_N "(cached) $ECHO_C" >&6
12370-else
12371- if test "$cross_compiling" = yes; then
12372- # Depending upon the size, compute the lo and hi bounds.
12373-cat >conftest.$ac_ext <<_ACEOF
12374-/* confdefs.h. */
12375-_ACEOF
12376-cat confdefs.h >>conftest.$ac_ext
12377-cat >>conftest.$ac_ext <<_ACEOF
12378-/* end confdefs.h. */
12379-$ac_includes_default
12380- typedef fpos_t ac__type_sizeof_;
12381-int
12382-main ()
12383-{
12384-static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12385-test_array [0] = 0
12386-
12387- ;
12388- return 0;
12389-}
12390-_ACEOF
12391-rm -f conftest.$ac_objext
12392-if { (ac_try="$ac_compile"
12393-case "(($ac_try" in
12394- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12395- *) ac_try_echo=$ac_try;;
12396-esac
12397-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12398- (eval "$ac_compile") 2>conftest.er1
12399- ac_status=$?
12400- grep -v '^ *+' conftest.er1 >conftest.err
12401- rm -f conftest.er1
12402- cat conftest.err >&5
12403- echo "$as_me:$LINENO: \$? = $ac_status" >&5
12404- (exit $ac_status); } && {
12405- test -z "$ac_c_werror_flag" ||
12406- test ! -s conftest.err
12407- } && test -s conftest.$ac_objext; then
12408- ac_lo=0 ac_mid=0
12409- while :; do
12410- cat >conftest.$ac_ext <<_ACEOF
12411-/* confdefs.h. */
12412-_ACEOF
12413-cat confdefs.h >>conftest.$ac_ext
12414-cat >>conftest.$ac_ext <<_ACEOF
12415-/* end confdefs.h. */
12416-$ac_includes_default
12417- typedef fpos_t ac__type_sizeof_;
12418-int
12419-main ()
12420-{
12421-static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12422-test_array [0] = 0
12423-
12424- ;
12425- return 0;
12426-}
12427-_ACEOF
12428-rm -f conftest.$ac_objext
12429-if { (ac_try="$ac_compile"
12430-case "(($ac_try" in
12431- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12432- *) ac_try_echo=$ac_try;;
12433-esac
12434-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12435- (eval "$ac_compile") 2>conftest.er1
12436- ac_status=$?
12437- grep -v '^ *+' conftest.er1 >conftest.err
12438- rm -f conftest.er1
12439- cat conftest.err >&5
12440- echo "$as_me:$LINENO: \$? = $ac_status" >&5
12441- (exit $ac_status); } && {
12442- test -z "$ac_c_werror_flag" ||
12443- test ! -s conftest.err
12444- } && test -s conftest.$ac_objext; then
12445- ac_hi=$ac_mid; break
12446-else
12447- echo "$as_me: failed program was:" >&5
12448-sed 's/^/| /' conftest.$ac_ext >&5
12449-
12450- ac_lo=`expr $ac_mid + 1`
12451- if test $ac_lo -le $ac_mid; then
12452- ac_lo= ac_hi=
12453- break
12454- fi
12455- ac_mid=`expr 2 '*' $ac_mid + 1`
12456-fi
12457-
12458-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12459- done
12460-else
12461- echo "$as_me: failed program was:" >&5
12462-sed 's/^/| /' conftest.$ac_ext >&5
12463-
12464- cat >conftest.$ac_ext <<_ACEOF
12465-/* confdefs.h. */
12466-_ACEOF
12467-cat confdefs.h >>conftest.$ac_ext
12468-cat >>conftest.$ac_ext <<_ACEOF
12469-/* end confdefs.h. */
12470-$ac_includes_default
12471- typedef fpos_t ac__type_sizeof_;
12472-int
12473-main ()
12474-{
12475-static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12476-test_array [0] = 0
12477-
12478- ;
12479- return 0;
12480-}
12481-_ACEOF
12482-rm -f conftest.$ac_objext
12483-if { (ac_try="$ac_compile"
12484-case "(($ac_try" in
12485- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12486- *) ac_try_echo=$ac_try;;
12487-esac
12488-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12489- (eval "$ac_compile") 2>conftest.er1
12490- ac_status=$?
12491- grep -v '^ *+' conftest.er1 >conftest.err
12492- rm -f conftest.er1
12493- cat conftest.err >&5
12494- echo "$as_me:$LINENO: \$? = $ac_status" >&5
12495- (exit $ac_status); } && {
12496- test -z "$ac_c_werror_flag" ||
12497- test ! -s conftest.err
12498- } && test -s conftest.$ac_objext; then
12499- ac_hi=-1 ac_mid=-1
12500- while :; do
12501- cat >conftest.$ac_ext <<_ACEOF
12502-/* confdefs.h. */
12503-_ACEOF
12504-cat confdefs.h >>conftest.$ac_ext
12505-cat >>conftest.$ac_ext <<_ACEOF
12506-/* end confdefs.h. */
12507-$ac_includes_default
12508- typedef fpos_t ac__type_sizeof_;
12509-int
12510-main ()
12511-{
12512-static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12513-test_array [0] = 0
12514-
12515- ;
12516- return 0;
12517-}
12518-_ACEOF
12519-rm -f conftest.$ac_objext
12520-if { (ac_try="$ac_compile"
12521-case "(($ac_try" in
12522- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12523- *) ac_try_echo=$ac_try;;
12524-esac
12525-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12526- (eval "$ac_compile") 2>conftest.er1
12527- ac_status=$?
12528- grep -v '^ *+' conftest.er1 >conftest.err
12529- rm -f conftest.er1
12530- cat conftest.err >&5
12531- echo "$as_me:$LINENO: \$? = $ac_status" >&5
12532- (exit $ac_status); } && {
12533- test -z "$ac_c_werror_flag" ||
12534- test ! -s conftest.err
12535- } && test -s conftest.$ac_objext; then
12536- ac_lo=$ac_mid; break
12537-else
12538- echo "$as_me: failed program was:" >&5
12539-sed 's/^/| /' conftest.$ac_ext >&5
12540-
12541- ac_hi=`expr '(' $ac_mid ')' - 1`
12542- if test $ac_mid -le $ac_hi; then
12543- ac_lo= ac_hi=
12544- break
12545- fi
12546- ac_mid=`expr 2 '*' $ac_mid`
12547-fi
12548-
12549-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12550- done
12551-else
12552- echo "$as_me: failed program was:" >&5
12553-sed 's/^/| /' conftest.$ac_ext >&5
12554-
12555- ac_lo= ac_hi=
12556-fi
12557-
12558-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12559-fi
12560-
12561-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12562-# Binary search between lo and hi bounds.
12563-while test "x$ac_lo" != "x$ac_hi"; do
12564- ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12565- cat >conftest.$ac_ext <<_ACEOF
12566-/* confdefs.h. */
12567-_ACEOF
12568-cat confdefs.h >>conftest.$ac_ext
12569-cat >>conftest.$ac_ext <<_ACEOF
12570-/* end confdefs.h. */
12571-$ac_includes_default
12572- typedef fpos_t ac__type_sizeof_;
12573-int
12574-main ()
12575-{
12576-static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12577-test_array [0] = 0
12578-
12579- ;
12580- return 0;
12581-}
12582-_ACEOF
12583-rm -f conftest.$ac_objext
12584-if { (ac_try="$ac_compile"
12585-case "(($ac_try" in
12586- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12587- *) ac_try_echo=$ac_try;;
12588-esac
12589-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12590- (eval "$ac_compile") 2>conftest.er1
12591- ac_status=$?
12592- grep -v '^ *+' conftest.er1 >conftest.err
12593- rm -f conftest.er1
12594- cat conftest.err >&5
12595- echo "$as_me:$LINENO: \$? = $ac_status" >&5
12596- (exit $ac_status); } && {
12597- test -z "$ac_c_werror_flag" ||
12598- test ! -s conftest.err
12599- } && test -s conftest.$ac_objext; then
12600- ac_hi=$ac_mid
12601-else
12602- echo "$as_me: failed program was:" >&5
12603-sed 's/^/| /' conftest.$ac_ext >&5
12604-
12605- ac_lo=`expr '(' $ac_mid ')' + 1`
12606-fi
12607-
12608-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12609-done
12610-case $ac_lo in
12611-?*) ac_cv_sizeof_fpos_t=$ac_lo;;
12612-'') if test "$ac_cv_type_fpos_t" = yes; then
12613- { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
12614-See \`config.log' for more details." >&5
12615-echo "$as_me: error: cannot compute sizeof (fpos_t)
12616-See \`config.log' for more details." >&2;}
12617- { (exit 77); exit 77; }; }
12618- else
12619- ac_cv_sizeof_fpos_t=0
12620- fi ;;
12621-esac
12622-else
12623- cat >conftest.$ac_ext <<_ACEOF
12624-/* confdefs.h. */
12625-_ACEOF
12626-cat confdefs.h >>conftest.$ac_ext
12627-cat >>conftest.$ac_ext <<_ACEOF
12628-/* end confdefs.h. */
12629-$ac_includes_default
12630- typedef fpos_t ac__type_sizeof_;
12631-static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12632-static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12633-#include <stdio.h>
12634-#include <stdlib.h>
12635-int
12636-main ()
12637-{
12638-
12639- FILE *f = fopen ("conftest.val", "w");
12640- if (! f)
12641- return 1;
12642- if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12643- {
12644- long int i = longval ();
12645- if (i != ((long int) (sizeof (ac__type_sizeof_))))
12646- return 1;
12647- fprintf (f, "%ld\n", i);
12648- }
12649- else
12650- {
12651- unsigned long int i = ulongval ();
12652- if (i != ((long int) (sizeof (ac__type_sizeof_))))
12653- return 1;
12654- fprintf (f, "%lu\n", i);
12655- }
12656- return ferror (f) || fclose (f) != 0;
12657-
12658- ;
12659- return 0;
12660-}
12661-_ACEOF
12662-rm -f conftest$ac_exeext
12663-if { (ac_try="$ac_link"
12664-case "(($ac_try" in
12665- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12666- *) ac_try_echo=$ac_try;;
12667-esac
12668-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12669- (eval "$ac_link") 2>&5
12670- ac_status=$?
12671- echo "$as_me:$LINENO: \$? = $ac_status" >&5
12672- (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12673- { (case "(($ac_try" in
12674- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12675- *) ac_try_echo=$ac_try;;
12676-esac
12677-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12678- (eval "$ac_try") 2>&5
12679- ac_status=$?
12680- echo "$as_me:$LINENO: \$? = $ac_status" >&5
12681- (exit $ac_status); }; }; then
12682- ac_cv_sizeof_fpos_t=`cat conftest.val`
12683-else
12684- echo "$as_me: program exited with status $ac_status" >&5
12685-echo "$as_me: failed program was:" >&5
12686-sed 's/^/| /' conftest.$ac_ext >&5
12687-
12688-( exit $ac_status )
12689-if test "$ac_cv_type_fpos_t" = yes; then
12690- { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
12691-See \`config.log' for more details." >&5
12692-echo "$as_me: error: cannot compute sizeof (fpos_t)
12693-See \`config.log' for more details." >&2;}
12694- { (exit 77); exit 77; }; }
12695- else
12696- ac_cv_sizeof_fpos_t=0
12697- fi
12698-fi
12699-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12700-fi
12701-rm -f conftest.val
12702-fi
12703-{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
12704-echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6; }
12705-
12706-
12707-
12708-cat >>confdefs.h <<_ACEOF
12709-#define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
12710-_ACEOF
12711-
12712-
12713-{ echo "$as_me:$LINENO: checking for size_t" >&5
12714-echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
12715-if test "${ac_cv_type_size_t+set}" = set; then
12716- echo $ECHO_N "(cached) $ECHO_C" >&6
12717-else
12718- cat >conftest.$ac_ext <<_ACEOF
12719-/* confdefs.h. */
12720-_ACEOF
12721-cat confdefs.h >>conftest.$ac_ext
12722-cat >>conftest.$ac_ext <<_ACEOF
12723-/* end confdefs.h. */
12724-$ac_includes_default
12725-typedef size_t ac__type_new_;
12726-int
12727-main ()
12728-{
12729-if ((ac__type_new_ *) 0)
12730- return 0;
12731-if (sizeof (ac__type_new_))
12732- return 0;
12733- ;
12734- return 0;
12735-}
12736-_ACEOF
12737-rm -f conftest.$ac_objext
12738-if { (ac_try="$ac_compile"
12739-case "(($ac_try" in
12740- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12741- *) ac_try_echo=$ac_try;;
12742-esac
12743-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12744- (eval "$ac_compile") 2>conftest.er1
12745- ac_status=$?
12746- grep -v '^ *+' conftest.er1 >conftest.err
12747- rm -f conftest.er1
12748- cat conftest.err >&5
12749- echo "$as_me:$LINENO: \$? = $ac_status" >&5
12750- (exit $ac_status); } && {
12751- test -z "$ac_c_werror_flag" ||
12752- test ! -s conftest.err
12753- } && test -s conftest.$ac_objext; then
12754- ac_cv_type_size_t=yes
12755-else
12756- echo "$as_me: failed program was:" >&5
12757-sed 's/^/| /' conftest.$ac_ext >&5
12758-
12759- ac_cv_type_size_t=no
12760-fi
12761-
12762-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12763-fi
12764-{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
12765-echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
12766-
12767-# The cast to long int works around a bug in the HP C Compiler
12768-# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12769-# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12770-# This bug is HP SR number 8606223364.
12771-{ echo "$as_me:$LINENO: checking size of size_t" >&5
12772-echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
12773-if test "${ac_cv_sizeof_size_t+set}" = set; then
12774- echo $ECHO_N "(cached) $ECHO_C" >&6
12775-else
12776- if test "$cross_compiling" = yes; then
12777- # Depending upon the size, compute the lo and hi bounds.
12778-cat >conftest.$ac_ext <<_ACEOF
12779-/* confdefs.h. */
12780-_ACEOF
12781-cat confdefs.h >>conftest.$ac_ext
12782-cat >>conftest.$ac_ext <<_ACEOF
12783-/* end confdefs.h. */
12784-$ac_includes_default
12785- typedef size_t ac__type_sizeof_;
12786-int
12787-main ()
12788-{
12789-static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12790-test_array [0] = 0
12791-
12792- ;
12793- return 0;
12794-}
12795-_ACEOF
12796-rm -f conftest.$ac_objext
12797-if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
12804- ac_status=$?
12805- grep -v '^ *+' conftest.er1 >conftest.err
12806- rm -f conftest.er1
12807- cat conftest.err >&5
12808- echo "$as_me:$LINENO: \$? = $ac_status" >&5
12809- (exit $ac_status); } && {
12810- test -z "$ac_c_werror_flag" ||
12811- test ! -s conftest.err
12812- } && test -s conftest.$ac_objext; then
12813- ac_lo=0 ac_mid=0
12814- while :; do
12815- cat >conftest.$ac_ext <<_ACEOF
12816-/* confdefs.h. */
12817-_ACEOF
12818-cat confdefs.h >>conftest.$ac_ext
12819-cat >>conftest.$ac_ext <<_ACEOF
12820-/* end confdefs.h. */
12821-$ac_includes_default
12822- typedef size_t ac__type_sizeof_;
12823-int
12824-main ()
12825-{
12826-static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12827-test_array [0] = 0
12828-
12829- ;
12830- return 0;
12831-}
12832-_ACEOF
12833-rm -f conftest.$ac_objext
12834-if { (ac_try="$ac_compile"
12835-case "(($ac_try" in
12836- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12837- *) ac_try_echo=$ac_try;;
12838-esac
12839-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12840- (eval "$ac_compile") 2>conftest.er1
12841- ac_status=$?
12842- grep -v '^ *+' conftest.er1 >conftest.err
12843- rm -f conftest.er1
12844- cat conftest.err >&5
12845- echo "$as_me:$LINENO: \$? = $ac_status" >&5
12846- (exit $ac_status); } && {
12847- test -z "$ac_c_werror_flag" ||
12848- test ! -s conftest.err
12849- } && test -s conftest.$ac_objext; then
12850- ac_hi=$ac_mid; break
12851-else
12852- echo "$as_me: failed program was:" >&5
12853-sed 's/^/| /' conftest.$ac_ext >&5
12854-
12855- ac_lo=`expr $ac_mid + 1`
12856- if test $ac_lo -le $ac_mid; then
12857- ac_lo= ac_hi=
12858- break
12859- fi
12860- ac_mid=`expr 2 '*' $ac_mid + 1`
12861-fi
12862-
12863-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12864- done
12865-else
12866- echo "$as_me: failed program was:" >&5
12867-sed 's/^/| /' conftest.$ac_ext >&5
12868-
12869- cat >conftest.$ac_ext <<_ACEOF
12870-/* confdefs.h. */
12871-_ACEOF
12872-cat confdefs.h >>conftest.$ac_ext
12873-cat >>conftest.$ac_ext <<_ACEOF
12874-/* end confdefs.h. */
12875-$ac_includes_default
12876- typedef size_t ac__type_sizeof_;
12877-int
12878-main ()
12879-{
12880-static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12881-test_array [0] = 0
12882-
12883- ;
12884- return 0;
12885-}
12886-_ACEOF
12887-rm -f conftest.$ac_objext
12888-if { (ac_try="$ac_compile"
12889-case "(($ac_try" in
12890- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12891- *) ac_try_echo=$ac_try;;
12892-esac
12893-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12894- (eval "$ac_compile") 2>conftest.er1
12895- ac_status=$?
12896- grep -v '^ *+' conftest.er1 >conftest.err
12897- rm -f conftest.er1
12898- cat conftest.err >&5
12899- echo "$as_me:$LINENO: \$? = $ac_status" >&5
12900- (exit $ac_status); } && {
12901- test -z "$ac_c_werror_flag" ||
12902- test ! -s conftest.err
12903- } && test -s conftest.$ac_objext; then
12904- ac_hi=-1 ac_mid=-1
12905- while :; do
12906- cat >conftest.$ac_ext <<_ACEOF
12907-/* confdefs.h. */
12908-_ACEOF
12909-cat confdefs.h >>conftest.$ac_ext
12910-cat >>conftest.$ac_ext <<_ACEOF
12911-/* end confdefs.h. */
12912-$ac_includes_default
12913- typedef size_t ac__type_sizeof_;
12914-int
12915-main ()
12916-{
12917-static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12918-test_array [0] = 0
12919-
12920- ;
12921- return 0;
12922-}
12923-_ACEOF
12924-rm -f conftest.$ac_objext
12925-if { (ac_try="$ac_compile"
12926-case "(($ac_try" in
12927- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12928- *) ac_try_echo=$ac_try;;
12929-esac
12930-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12931- (eval "$ac_compile") 2>conftest.er1
12932- ac_status=$?
12933- grep -v '^ *+' conftest.er1 >conftest.err
12934- rm -f conftest.er1
12935- cat conftest.err >&5
12936- echo "$as_me:$LINENO: \$? = $ac_status" >&5
12937- (exit $ac_status); } && {
12938- test -z "$ac_c_werror_flag" ||
12939- test ! -s conftest.err
12940- } && test -s conftest.$ac_objext; then
12941- ac_lo=$ac_mid; break
12942-else
12943- echo "$as_me: failed program was:" >&5
12944-sed 's/^/| /' conftest.$ac_ext >&5
12945-
12946- ac_hi=`expr '(' $ac_mid ')' - 1`
12947- if test $ac_mid -le $ac_hi; then
12948- ac_lo= ac_hi=
12949- break
12950- fi
12951- ac_mid=`expr 2 '*' $ac_mid`
12952-fi
12953-
12954-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12955- done
12956-else
12957- echo "$as_me: failed program was:" >&5
12958-sed 's/^/| /' conftest.$ac_ext >&5
12959-
12960- ac_lo= ac_hi=
12961-fi
12962-
12963-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12964-fi
12965-
12966-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12967-# Binary search between lo and hi bounds.
12968-while test "x$ac_lo" != "x$ac_hi"; do
12969- ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12970- cat >conftest.$ac_ext <<_ACEOF
12971-/* confdefs.h. */
12972-_ACEOF
12973-cat confdefs.h >>conftest.$ac_ext
12974-cat >>conftest.$ac_ext <<_ACEOF
12975-/* end confdefs.h. */
12976-$ac_includes_default
12977- typedef size_t ac__type_sizeof_;
12978-int
12979-main ()
12980-{
12981-static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12982-test_array [0] = 0
12983-
12984- ;
12985- return 0;
12986-}
12987-_ACEOF
12988-rm -f conftest.$ac_objext
12989-if { (ac_try="$ac_compile"
12990-case "(($ac_try" in
12991- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12992- *) ac_try_echo=$ac_try;;
12993-esac
12994-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12995- (eval "$ac_compile") 2>conftest.er1
12996- ac_status=$?
12997- grep -v '^ *+' conftest.er1 >conftest.err
12998- rm -f conftest.er1
12999- cat conftest.err >&5
13000- echo "$as_me:$LINENO: \$? = $ac_status" >&5
13001- (exit $ac_status); } && {
13002- test -z "$ac_c_werror_flag" ||
13003- test ! -s conftest.err
13004- } && test -s conftest.$ac_objext; then
13005- ac_hi=$ac_mid
13006-else
13007- echo "$as_me: failed program was:" >&5
13008-sed 's/^/| /' conftest.$ac_ext >&5
13009-
13010- ac_lo=`expr '(' $ac_mid ')' + 1`
13011-fi
13012-
13013-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13014-done
13015-case $ac_lo in
13016-?*) ac_cv_sizeof_size_t=$ac_lo;;
13017-'') if test "$ac_cv_type_size_t" = yes; then
13018- { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
13019-See \`config.log' for more details." >&5
13020-echo "$as_me: error: cannot compute sizeof (size_t)
13021-See \`config.log' for more details." >&2;}
13022- { (exit 77); exit 77; }; }
13023- else
13024- ac_cv_sizeof_size_t=0
13025- fi ;;
13026-esac
13027-else
13028- cat >conftest.$ac_ext <<_ACEOF
13029-/* confdefs.h. */
13030-_ACEOF
13031-cat confdefs.h >>conftest.$ac_ext
13032-cat >>conftest.$ac_ext <<_ACEOF
13033-/* end confdefs.h. */
13034-$ac_includes_default
13035- typedef size_t ac__type_sizeof_;
13036-static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13037-static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13038-#include <stdio.h>
13039-#include <stdlib.h>
13040-int
13041-main ()
13042-{
13043-
13044- FILE *f = fopen ("conftest.val", "w");
13045- if (! f)
13046- return 1;
13047- if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13048- {
13049- long int i = longval ();
13050- if (i != ((long int) (sizeof (ac__type_sizeof_))))
13051- return 1;
13052- fprintf (f, "%ld\n", i);
13053- }
13054- else
13055- {
13056- unsigned long int i = ulongval ();
13057- if (i != ((long int) (sizeof (ac__type_sizeof_))))
13058- return 1;
13059- fprintf (f, "%lu\n", i);
13060- }
13061- return ferror (f) || fclose (f) != 0;
13062-
13063- ;
13064- return 0;
13065-}
13066-_ACEOF
13067-rm -f conftest$ac_exeext
13068-if { (ac_try="$ac_link"
13069-case "(($ac_try" in
13070- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13071- *) ac_try_echo=$ac_try;;
13072-esac
13073-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13074- (eval "$ac_link") 2>&5
13075- ac_status=$?
13076- echo "$as_me:$LINENO: \$? = $ac_status" >&5
13077- (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
13084- ac_status=$?
13085- echo "$as_me:$LINENO: \$? = $ac_status" >&5
13086- (exit $ac_status); }; }; then
13087- ac_cv_sizeof_size_t=`cat conftest.val`
13088-else
13089- echo "$as_me: program exited with status $ac_status" >&5
13090-echo "$as_me: failed program was:" >&5
13091-sed 's/^/| /' conftest.$ac_ext >&5
13092-
13093-( exit $ac_status )
13094-if test "$ac_cv_type_size_t" = yes; then
13095- { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
13096-See \`config.log' for more details." >&5
13097-echo "$as_me: error: cannot compute sizeof (size_t)
13098-See \`config.log' for more details." >&2;}
13099- { (exit 77); exit 77; }; }
13100- else
13101- ac_cv_sizeof_size_t=0
13102- fi
13103-fi
13104-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13105-fi
13106-rm -f conftest.val
13107-fi
13108-{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
13109-echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
13110-
13111-
13112-
13113-cat >>confdefs.h <<_ACEOF
13114-#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
13115-_ACEOF
13116-
13117-
13118-{ echo "$as_me:$LINENO: checking for pid_t" >&5
13119-echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
13120-if test "${ac_cv_type_pid_t+set}" = set; then
13121- echo $ECHO_N "(cached) $ECHO_C" >&6
13122-else
13123- cat >conftest.$ac_ext <<_ACEOF
13124-/* confdefs.h. */
13125-_ACEOF
13126-cat confdefs.h >>conftest.$ac_ext
13127-cat >>conftest.$ac_ext <<_ACEOF
13128-/* end confdefs.h. */
13129-$ac_includes_default
13130-typedef pid_t ac__type_new_;
13131-int
13132-main ()
13133-{
13134-if ((ac__type_new_ *) 0)
13135- return 0;
13136-if (sizeof (ac__type_new_))
13137- return 0;
13138- ;
13139- return 0;
13140-}
13141-_ACEOF
13142-rm -f conftest.$ac_objext
13143-if { (ac_try="$ac_compile"
13144-case "(($ac_try" in
13145- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13146- *) ac_try_echo=$ac_try;;
13147-esac
13148-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13149- (eval "$ac_compile") 2>conftest.er1
13150- ac_status=$?
13151- grep -v '^ *+' conftest.er1 >conftest.err
13152- rm -f conftest.er1
13153- cat conftest.err >&5
13154- echo "$as_me:$LINENO: \$? = $ac_status" >&5
13155- (exit $ac_status); } && {
13156- test -z "$ac_c_werror_flag" ||
13157- test ! -s conftest.err
13158- } && test -s conftest.$ac_objext; then
13159- ac_cv_type_pid_t=yes
13160-else
13161- echo "$as_me: failed program was:" >&5
13162-sed 's/^/| /' conftest.$ac_ext >&5
13163-
13164- ac_cv_type_pid_t=no
13165-fi
13166-
13167-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13168-fi
13169-{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
13170-echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
13171-
13172-# The cast to long int works around a bug in the HP C Compiler
13173-# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13174-# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13175-# This bug is HP SR number 8606223364.
13176-{ echo "$as_me:$LINENO: checking size of pid_t" >&5
13177-echo $ECHO_N "checking size of pid_t... $ECHO_C" >&6; }
13178-if test "${ac_cv_sizeof_pid_t+set}" = set; then
13179- echo $ECHO_N "(cached) $ECHO_C" >&6
13180-else
13181- if test "$cross_compiling" = yes; then
13182- # Depending upon the size, compute the lo and hi bounds.
13183-cat >conftest.$ac_ext <<_ACEOF
13184-/* confdefs.h. */
13185-_ACEOF
13186-cat confdefs.h >>conftest.$ac_ext
13187-cat >>conftest.$ac_ext <<_ACEOF
13188-/* end confdefs.h. */
13189-$ac_includes_default
13190- typedef pid_t ac__type_sizeof_;
13191-int
13192-main ()
13193-{
13194-static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13195-test_array [0] = 0
13196-
13197- ;
13198- return 0;
13199-}
13200-_ACEOF
13201-rm -f conftest.$ac_objext
13202-if { (ac_try="$ac_compile"
13203-case "(($ac_try" in
13204- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13205- *) ac_try_echo=$ac_try;;
13206-esac
13207-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13208- (eval "$ac_compile") 2>conftest.er1
13209- ac_status=$?
13210- grep -v '^ *+' conftest.er1 >conftest.err
13211- rm -f conftest.er1
13212- cat conftest.err >&5
13213- echo "$as_me:$LINENO: \$? = $ac_status" >&5
13214- (exit $ac_status); } && {
13215- test -z "$ac_c_werror_flag" ||
13216- test ! -s conftest.err
13217- } && test -s conftest.$ac_objext; then
13218- ac_lo=0 ac_mid=0
13219- while :; do
13220- cat >conftest.$ac_ext <<_ACEOF
13221-/* confdefs.h. */
13222-_ACEOF
13223-cat confdefs.h >>conftest.$ac_ext
13224-cat >>conftest.$ac_ext <<_ACEOF
13225-/* end confdefs.h. */
13226-$ac_includes_default
13227- typedef pid_t ac__type_sizeof_;
13228-int
13229-main ()
13230-{
13231-static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13232-test_array [0] = 0
13233-
13234- ;
13235- return 0;
13236-}
13237-_ACEOF
13238-rm -f conftest.$ac_objext
13239-if { (ac_try="$ac_compile"
13240-case "(($ac_try" in
13241- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13242- *) ac_try_echo=$ac_try;;
13243-esac
13244-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13245- (eval "$ac_compile") 2>conftest.er1
13246- ac_status=$?
13247- grep -v '^ *+' conftest.er1 >conftest.err
13248- rm -f conftest.er1
13249- cat conftest.err >&5
13250- echo "$as_me:$LINENO: \$? = $ac_status" >&5
13251- (exit $ac_status); } && {
13252- test -z "$ac_c_werror_flag" ||
13253- test ! -s conftest.err
13254- } && test -s conftest.$ac_objext; then
13255- ac_hi=$ac_mid; break
13256-else
13257- echo "$as_me: failed program was:" >&5
13258-sed 's/^/| /' conftest.$ac_ext >&5
13259-
13260- ac_lo=`expr $ac_mid + 1`
13261- if test $ac_lo -le $ac_mid; then
13262- ac_lo= ac_hi=
13263- break
13264- fi
13265- ac_mid=`expr 2 '*' $ac_mid + 1`
13266-fi
13267-
13268-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13269- done
13270-else
13271- echo "$as_me: failed program was:" >&5
13272-sed 's/^/| /' conftest.$ac_ext >&5
13273-
13274- cat >conftest.$ac_ext <<_ACEOF
13275-/* confdefs.h. */
13276-_ACEOF
13277-cat confdefs.h >>conftest.$ac_ext
13278-cat >>conftest.$ac_ext <<_ACEOF
13279-/* end confdefs.h. */
13280-$ac_includes_default
13281- typedef pid_t ac__type_sizeof_;
13282-int
13283-main ()
13284-{
13285-static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13286-test_array [0] = 0
13287-
13288- ;
13289- return 0;
13290-}
13291-_ACEOF
13292-rm -f conftest.$ac_objext
13293-if { (ac_try="$ac_compile"
13294-case "(($ac_try" in
13295- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13296- *) ac_try_echo=$ac_try;;
13297-esac
13298-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13299- (eval "$ac_compile") 2>conftest.er1
13300- ac_status=$?
13301- grep -v '^ *+' conftest.er1 >conftest.err
13302- rm -f conftest.er1
13303- cat conftest.err >&5
13304- echo "$as_me:$LINENO: \$? = $ac_status" >&5
13305- (exit $ac_status); } && {
13306- test -z "$ac_c_werror_flag" ||
13307- test ! -s conftest.err
13308- } && test -s conftest.$ac_objext; then
13309- ac_hi=-1 ac_mid=-1
13310- while :; do
13311- cat >conftest.$ac_ext <<_ACEOF
13312-/* confdefs.h. */
13313-_ACEOF
13314-cat confdefs.h >>conftest.$ac_ext
13315-cat >>conftest.$ac_ext <<_ACEOF
13316-/* end confdefs.h. */
13317-$ac_includes_default
13318- typedef pid_t ac__type_sizeof_;
13319-int
13320-main ()
13321-{
13322-static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13323-test_array [0] = 0
13324-
13325- ;
13326- return 0;
13327-}
13328-_ACEOF
13329-rm -f conftest.$ac_objext
13330-if { (ac_try="$ac_compile"
13331-case "(($ac_try" in
13332- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13333- *) ac_try_echo=$ac_try;;
13334-esac
13335-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13336- (eval "$ac_compile") 2>conftest.er1
13337- ac_status=$?
13338- grep -v '^ *+' conftest.er1 >conftest.err
13339- rm -f conftest.er1
13340- cat conftest.err >&5
13341- echo "$as_me:$LINENO: \$? = $ac_status" >&5
13342- (exit $ac_status); } && {
13343- test -z "$ac_c_werror_flag" ||
13344- test ! -s conftest.err
13345- } && test -s conftest.$ac_objext; then
13346- ac_lo=$ac_mid; break
13347-else
13348- echo "$as_me: failed program was:" >&5
13349-sed 's/^/| /' conftest.$ac_ext >&5
13350-
13351- ac_hi=`expr '(' $ac_mid ')' - 1`
13352- if test $ac_mid -le $ac_hi; then
13353- ac_lo= ac_hi=
13354- break
13355- fi
13356- ac_mid=`expr 2 '*' $ac_mid`
13357-fi
13358-
13359-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13360- done
13361-else
13362- echo "$as_me: failed program was:" >&5
13363-sed 's/^/| /' conftest.$ac_ext >&5
13364-
13365- ac_lo= ac_hi=
13366-fi
13367-
13368-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13369-fi
13370-
13371-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13372-# Binary search between lo and hi bounds.
13373-while test "x$ac_lo" != "x$ac_hi"; do
13374- ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13375- cat >conftest.$ac_ext <<_ACEOF
13376-/* confdefs.h. */
13377-_ACEOF
13378-cat confdefs.h >>conftest.$ac_ext
13379-cat >>conftest.$ac_ext <<_ACEOF
13380-/* end confdefs.h. */
13381-$ac_includes_default
13382- typedef pid_t ac__type_sizeof_;
13383-int
13384-main ()
13385-{
13386-static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13387-test_array [0] = 0
13388-
13389- ;
13390- return 0;
13391-}
13392-_ACEOF
13393-rm -f conftest.$ac_objext
13394-if { (ac_try="$ac_compile"
13395-case "(($ac_try" in
13396- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13397- *) ac_try_echo=$ac_try;;
13398-esac
13399-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13400- (eval "$ac_compile") 2>conftest.er1
13401- ac_status=$?
13402- grep -v '^ *+' conftest.er1 >conftest.err
13403- rm -f conftest.er1
13404- cat conftest.err >&5
13405- echo "$as_me:$LINENO: \$? = $ac_status" >&5
13406- (exit $ac_status); } && {
13407- test -z "$ac_c_werror_flag" ||
13408- test ! -s conftest.err
13409- } && test -s conftest.$ac_objext; then
13410- ac_hi=$ac_mid
13411-else
13412- echo "$as_me: failed program was:" >&5
13413-sed 's/^/| /' conftest.$ac_ext >&5
13414-
13415- ac_lo=`expr '(' $ac_mid ')' + 1`
13416-fi
13417-
13418-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13419-done
13420-case $ac_lo in
13421-?*) ac_cv_sizeof_pid_t=$ac_lo;;
13422-'') if test "$ac_cv_type_pid_t" = yes; then
13423- { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
13424-See \`config.log' for more details." >&5
13425-echo "$as_me: error: cannot compute sizeof (pid_t)
13426-See \`config.log' for more details." >&2;}
13427- { (exit 77); exit 77; }; }
13428- else
13429- ac_cv_sizeof_pid_t=0
13430- fi ;;
13431-esac
13432-else
13433- cat >conftest.$ac_ext <<_ACEOF
13434-/* confdefs.h. */
13435-_ACEOF
13436-cat confdefs.h >>conftest.$ac_ext
13437-cat >>conftest.$ac_ext <<_ACEOF
13438-/* end confdefs.h. */
13439-$ac_includes_default
13440- typedef pid_t ac__type_sizeof_;
13441-static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13442-static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13443-#include <stdio.h>
13444-#include <stdlib.h>
13445-int
13446-main ()
13447-{
13448-
13449- FILE *f = fopen ("conftest.val", "w");
13450- if (! f)
13451- return 1;
13452- if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13453- {
13454- long int i = longval ();
13455- if (i != ((long int) (sizeof (ac__type_sizeof_))))
13456- return 1;
13457- fprintf (f, "%ld\n", i);
13458- }
13459- else
13460- {
13461- unsigned long int i = ulongval ();
13462- if (i != ((long int) (sizeof (ac__type_sizeof_))))
13463- return 1;
13464- fprintf (f, "%lu\n", i);
13465- }
13466- return ferror (f) || fclose (f) != 0;
13467-
13468- ;
13469- return 0;
13470-}
13471-_ACEOF
13472-rm -f conftest$ac_exeext
13473-if { (ac_try="$ac_link"
13474-case "(($ac_try" in
13475- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13476- *) ac_try_echo=$ac_try;;
13477-esac
13478-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13479- (eval "$ac_link") 2>&5
13480- ac_status=$?
13481- echo "$as_me:$LINENO: \$? = $ac_status" >&5
13482- (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13483- { (case "(($ac_try" in
13484- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13485- *) ac_try_echo=$ac_try;;
13486-esac
13487-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13488- (eval "$ac_try") 2>&5
13489- ac_status=$?
13490- echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491- (exit $ac_status); }; }; then
13492- ac_cv_sizeof_pid_t=`cat conftest.val`
13493-else
13494- echo "$as_me: program exited with status $ac_status" >&5
13495-echo "$as_me: failed program was:" >&5
13496-sed 's/^/| /' conftest.$ac_ext >&5
13497-
13498-( exit $ac_status )
13499-if test "$ac_cv_type_pid_t" = yes; then
13500- { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
13501-See \`config.log' for more details." >&5
13502-echo "$as_me: error: cannot compute sizeof (pid_t)
13503-See \`config.log' for more details." >&2;}
13504- { (exit 77); exit 77; }; }
13505- else
13506- ac_cv_sizeof_pid_t=0
13507- fi
13508-fi
13509-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13510-fi
13511-rm -f conftest.val
13512-fi
13513-{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_pid_t" >&5
13514-echo "${ECHO_T}$ac_cv_sizeof_pid_t" >&6; }
13515-
13516-
13517-
13518-cat >>confdefs.h <<_ACEOF
13519-#define SIZEOF_PID_T $ac_cv_sizeof_pid_t
13520-_ACEOF
13521-
13522-
13523-
13524-{ echo "$as_me:$LINENO: checking for long long support" >&5
13525-echo $ECHO_N "checking for long long support... $ECHO_C" >&6; }
13526-have_long_long=no
13527-cat >conftest.$ac_ext <<_ACEOF
13528-/* confdefs.h. */
13529-_ACEOF
13530-cat confdefs.h >>conftest.$ac_ext
13531-cat >>conftest.$ac_ext <<_ACEOF
13532-/* end confdefs.h. */
13533-
13534-int
13535-main ()
13536-{
13537-long long x; x = (long long)0;
13538- ;
13539- return 0;
13540-}
13541-_ACEOF
13542-rm -f conftest.$ac_objext
13543-if { (ac_try="$ac_compile"
13544-case "(($ac_try" in
13545- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13546- *) ac_try_echo=$ac_try;;
13547-esac
13548-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13549- (eval "$ac_compile") 2>conftest.er1
13550- ac_status=$?
13551- grep -v '^ *+' conftest.er1 >conftest.err
13552- rm -f conftest.er1
13553- cat conftest.err >&5
13554- echo "$as_me:$LINENO: \$? = $ac_status" >&5
13555- (exit $ac_status); } && {
13556- test -z "$ac_c_werror_flag" ||
13557- test ! -s conftest.err
13558- } && test -s conftest.$ac_objext; then
13559-
13560-
13561-cat >>confdefs.h <<\_ACEOF
13562-#define HAVE_LONG_LONG 1
13563-_ACEOF
13564-
13565- have_long_long=yes
13566-
13567-else
13568- echo "$as_me: failed program was:" >&5
13569-sed 's/^/| /' conftest.$ac_ext >&5
13570-
13571-
13572-fi
13573-
13574-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13575-{ echo "$as_me:$LINENO: result: $have_long_long" >&5
13576-echo "${ECHO_T}$have_long_long" >&6; }
13577-if test "$have_long_long" = yes ; then
13578-{ echo "$as_me:$LINENO: checking for long long" >&5
13579-echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
13580-if test "${ac_cv_type_long_long+set}" = set; then
13581- echo $ECHO_N "(cached) $ECHO_C" >&6
13582-else
13583- cat >conftest.$ac_ext <<_ACEOF
13584-/* confdefs.h. */
13585-_ACEOF
13586-cat confdefs.h >>conftest.$ac_ext
13587-cat >>conftest.$ac_ext <<_ACEOF
13588-/* end confdefs.h. */
13589-$ac_includes_default
13590-typedef long long ac__type_new_;
13591-int
13592-main ()
13593-{
13594-if ((ac__type_new_ *) 0)
13595- return 0;
13596-if (sizeof (ac__type_new_))
13597- return 0;
13598- ;
13599- return 0;
13600-}
13601-_ACEOF
13602-rm -f conftest.$ac_objext
13603-if { (ac_try="$ac_compile"
13604-case "(($ac_try" in
13605- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13606- *) ac_try_echo=$ac_try;;
13607-esac
13608-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13609- (eval "$ac_compile") 2>conftest.er1
13610- ac_status=$?
13611- grep -v '^ *+' conftest.er1 >conftest.err
13612- rm -f conftest.er1
13613- cat conftest.err >&5
13614- echo "$as_me:$LINENO: \$? = $ac_status" >&5
13615- (exit $ac_status); } && {
13616- test -z "$ac_c_werror_flag" ||
13617- test ! -s conftest.err
13618- } && test -s conftest.$ac_objext; then
13619- ac_cv_type_long_long=yes
13620-else
13621- echo "$as_me: failed program was:" >&5
13622-sed 's/^/| /' conftest.$ac_ext >&5
13623-
13624- ac_cv_type_long_long=no
13625-fi
13626-
13627-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13628-fi
13629-{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
13630-echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
13631-
13632-# The cast to long int works around a bug in the HP C Compiler
13633-# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13634-# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13635-# This bug is HP SR number 8606223364.
13636-{ echo "$as_me:$LINENO: checking size of long long" >&5
13637-echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
13638-if test "${ac_cv_sizeof_long_long+set}" = set; then
13639- echo $ECHO_N "(cached) $ECHO_C" >&6
13640-else
13641- if test "$cross_compiling" = yes; then
13642- # Depending upon the size, compute the lo and hi bounds.
13643-cat >conftest.$ac_ext <<_ACEOF
13644-/* confdefs.h. */
13645-_ACEOF
13646-cat confdefs.h >>conftest.$ac_ext
13647-cat >>conftest.$ac_ext <<_ACEOF
13648-/* end confdefs.h. */
13649-$ac_includes_default
13650- typedef long long ac__type_sizeof_;
13651-int
13652-main ()
13653-{
13654-static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13655-test_array [0] = 0
13656-
13657- ;
13658- return 0;
13659-}
13660-_ACEOF
13661-rm -f conftest.$ac_objext
13662-if { (ac_try="$ac_compile"
13663-case "(($ac_try" in
13664- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13665- *) ac_try_echo=$ac_try;;
13666-esac
13667-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13668- (eval "$ac_compile") 2>conftest.er1
13669- ac_status=$?
13670- grep -v '^ *+' conftest.er1 >conftest.err
13671- rm -f conftest.er1
13672- cat conftest.err >&5
13673- echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674- (exit $ac_status); } && {
13675- test -z "$ac_c_werror_flag" ||
13676- test ! -s conftest.err
13677- } && test -s conftest.$ac_objext; then
13678- ac_lo=0 ac_mid=0
13679- while :; do
13680- cat >conftest.$ac_ext <<_ACEOF
13681-/* confdefs.h. */
13682-_ACEOF
13683-cat confdefs.h >>conftest.$ac_ext
13684-cat >>conftest.$ac_ext <<_ACEOF
13685-/* end confdefs.h. */
13686-$ac_includes_default
13687- typedef long long ac__type_sizeof_;
13688-int
13689-main ()
13690-{
13691-static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13692-test_array [0] = 0
13693-
13694- ;
13695- return 0;
13696-}
13697-_ACEOF
13698-rm -f conftest.$ac_objext
13699-if { (ac_try="$ac_compile"
13700-case "(($ac_try" in
13701- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13702- *) ac_try_echo=$ac_try;;
13703-esac
13704-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13705- (eval "$ac_compile") 2>conftest.er1
13706- ac_status=$?
13707- grep -v '^ *+' conftest.er1 >conftest.err
13708- rm -f conftest.er1
13709- cat conftest.err >&5
13710- echo "$as_me:$LINENO: \$? = $ac_status" >&5
13711- (exit $ac_status); } && {
13712- test -z "$ac_c_werror_flag" ||
13713- test ! -s conftest.err
13714- } && test -s conftest.$ac_objext; then
13715- ac_hi=$ac_mid; break
13716-else
13717- echo "$as_me: failed program was:" >&5
13718-sed 's/^/| /' conftest.$ac_ext >&5
13719-
13720- ac_lo=`expr $ac_mid + 1`
13721- if test $ac_lo -le $ac_mid; then
13722- ac_lo= ac_hi=
13723- break
13724- fi
13725- ac_mid=`expr 2 '*' $ac_mid + 1`
13726-fi
13727-
13728-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13729- done
13730-else
13731- echo "$as_me: failed program was:" >&5
13732-sed 's/^/| /' conftest.$ac_ext >&5
13733-
13734- cat >conftest.$ac_ext <<_ACEOF
13735-/* confdefs.h. */
13736-_ACEOF
13737-cat confdefs.h >>conftest.$ac_ext
13738-cat >>conftest.$ac_ext <<_ACEOF
13739-/* end confdefs.h. */
13740-$ac_includes_default
13741- typedef long long ac__type_sizeof_;
13742-int
13743-main ()
13744-{
13745-static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13746-test_array [0] = 0
13747-
13748- ;
13749- return 0;
13750-}
13751-_ACEOF
13752-rm -f conftest.$ac_objext
13753-if { (ac_try="$ac_compile"
13754-case "(($ac_try" in
13755- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13756- *) ac_try_echo=$ac_try;;
13757-esac
13758-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13759- (eval "$ac_compile") 2>conftest.er1
13760- ac_status=$?
13761- grep -v '^ *+' conftest.er1 >conftest.err
13762- rm -f conftest.er1
13763- cat conftest.err >&5
13764- echo "$as_me:$LINENO: \$? = $ac_status" >&5
13765- (exit $ac_status); } && {
13766- test -z "$ac_c_werror_flag" ||
13767- test ! -s conftest.err
13768- } && test -s conftest.$ac_objext; then
13769- ac_hi=-1 ac_mid=-1
13770- while :; do
13771- cat >conftest.$ac_ext <<_ACEOF
13772-/* confdefs.h. */
13773-_ACEOF
13774-cat confdefs.h >>conftest.$ac_ext
13775-cat >>conftest.$ac_ext <<_ACEOF
13776-/* end confdefs.h. */
13777-$ac_includes_default
13778- typedef long long ac__type_sizeof_;
13779-int
13780-main ()
13781-{
13782-static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13783-test_array [0] = 0
13784-
13785- ;
13786- return 0;
13787-}
13788-_ACEOF
13789-rm -f conftest.$ac_objext
13790-if { (ac_try="$ac_compile"
13791-case "(($ac_try" in
13792- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13793- *) ac_try_echo=$ac_try;;
13794-esac
13795-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13796- (eval "$ac_compile") 2>conftest.er1
13797- ac_status=$?
13798- grep -v '^ *+' conftest.er1 >conftest.err
13799- rm -f conftest.er1
13800- cat conftest.err >&5
13801- echo "$as_me:$LINENO: \$? = $ac_status" >&5
13802- (exit $ac_status); } && {
13803- test -z "$ac_c_werror_flag" ||
13804- test ! -s conftest.err
13805- } && test -s conftest.$ac_objext; then
13806- ac_lo=$ac_mid; break
13807-else
13808- echo "$as_me: failed program was:" >&5
13809-sed 's/^/| /' conftest.$ac_ext >&5
13810-
13811- ac_hi=`expr '(' $ac_mid ')' - 1`
13812- if test $ac_mid -le $ac_hi; then
13813- ac_lo= ac_hi=
13814- break
13815- fi
13816- ac_mid=`expr 2 '*' $ac_mid`
13817-fi
13818-
13819-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13820- done
13821-else
13822- echo "$as_me: failed program was:" >&5
13823-sed 's/^/| /' conftest.$ac_ext >&5
13824-
13825- ac_lo= ac_hi=
13826-fi
13827-
13828-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13829-fi
13830-
13831-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13832-# Binary search between lo and hi bounds.
13833-while test "x$ac_lo" != "x$ac_hi"; do
13834- ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13835- cat >conftest.$ac_ext <<_ACEOF
13836-/* confdefs.h. */
13837-_ACEOF
13838-cat confdefs.h >>conftest.$ac_ext
13839-cat >>conftest.$ac_ext <<_ACEOF
13840-/* end confdefs.h. */
13841-$ac_includes_default
13842- typedef long long ac__type_sizeof_;
13843-int
13844-main ()
13845-{
13846-static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13847-test_array [0] = 0
13848-
13849- ;
13850- return 0;
13851-}
13852-_ACEOF
13853-rm -f conftest.$ac_objext
13854-if { (ac_try="$ac_compile"
13855-case "(($ac_try" in
13856- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13857- *) ac_try_echo=$ac_try;;
13858-esac
13859-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13860- (eval "$ac_compile") 2>conftest.er1
13861- ac_status=$?
13862- grep -v '^ *+' conftest.er1 >conftest.err
13863- rm -f conftest.er1
13864- cat conftest.err >&5
13865- echo "$as_me:$LINENO: \$? = $ac_status" >&5
13866- (exit $ac_status); } && {
13867- test -z "$ac_c_werror_flag" ||
13868- test ! -s conftest.err
13869- } && test -s conftest.$ac_objext; then
13870- ac_hi=$ac_mid
13871-else
13872- echo "$as_me: failed program was:" >&5
13873-sed 's/^/| /' conftest.$ac_ext >&5
13874-
13875- ac_lo=`expr '(' $ac_mid ')' + 1`
13876-fi
13877-
13878-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13879-done
13880-case $ac_lo in
13881-?*) ac_cv_sizeof_long_long=$ac_lo;;
13882-'') if test "$ac_cv_type_long_long" = yes; then
13883- { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
13884-See \`config.log' for more details." >&5
13885-echo "$as_me: error: cannot compute sizeof (long long)
13886-See \`config.log' for more details." >&2;}
13887- { (exit 77); exit 77; }; }
13888- else
13889- ac_cv_sizeof_long_long=0
13890- fi ;;
13891-esac
13892-else
13893- cat >conftest.$ac_ext <<_ACEOF
13894-/* confdefs.h. */
13895-_ACEOF
13896-cat confdefs.h >>conftest.$ac_ext
13897-cat >>conftest.$ac_ext <<_ACEOF
13898-/* end confdefs.h. */
13899-$ac_includes_default
13900- typedef long long ac__type_sizeof_;
13901-static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13902-static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13903-#include <stdio.h>
13904-#include <stdlib.h>
13905-int
13906-main ()
13907-{
13908-
13909- FILE *f = fopen ("conftest.val", "w");
13910- if (! f)
13911- return 1;
13912- if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13913- {
13914- long int i = longval ();
13915- if (i != ((long int) (sizeof (ac__type_sizeof_))))
13916- return 1;
13917- fprintf (f, "%ld\n", i);
13918- }
13919- else
13920- {
13921- unsigned long int i = ulongval ();
13922- if (i != ((long int) (sizeof (ac__type_sizeof_))))
13923- return 1;
13924- fprintf (f, "%lu\n", i);
13925- }
13926- return ferror (f) || fclose (f) != 0;
13927-
13928- ;
13929- return 0;
13930-}
13931-_ACEOF
13932-rm -f conftest$ac_exeext
13933-if { (ac_try="$ac_link"
13934-case "(($ac_try" in
13935- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13936- *) ac_try_echo=$ac_try;;
13937-esac
13938-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13939- (eval "$ac_link") 2>&5
13940- ac_status=$?
13941- echo "$as_me:$LINENO: \$? = $ac_status" >&5
13942- (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13943- { (case "(($ac_try" in
13944- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13945- *) ac_try_echo=$ac_try;;
13946-esac
13947-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13948- (eval "$ac_try") 2>&5
13949- ac_status=$?
13950- echo "$as_me:$LINENO: \$? = $ac_status" >&5
13951- (exit $ac_status); }; }; then
13952- ac_cv_sizeof_long_long=`cat conftest.val`
13953-else
13954- echo "$as_me: program exited with status $ac_status" >&5
13955-echo "$as_me: failed program was:" >&5
13956-sed 's/^/| /' conftest.$ac_ext >&5
13957-
13958-( exit $ac_status )
13959-if test "$ac_cv_type_long_long" = yes; then
13960- { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
13961-See \`config.log' for more details." >&5
13962-echo "$as_me: error: cannot compute sizeof (long long)
13963-See \`config.log' for more details." >&2;}
13964- { (exit 77); exit 77; }; }
13965- else
13966- ac_cv_sizeof_long_long=0
13967- fi
13968-fi
13969-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13970-fi
13971-rm -f conftest.val
13972-fi
13973-{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
13974-echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
13975-
13976-
13977-
13978-cat >>confdefs.h <<_ACEOF
13979-#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
13980-_ACEOF
13981-
13982-
13983-fi
13984-
13985-{ echo "$as_me:$LINENO: checking for long double support" >&5
13986-echo $ECHO_N "checking for long double support... $ECHO_C" >&6; }
13987-have_long_double=no
13988-cat >conftest.$ac_ext <<_ACEOF
13989-/* confdefs.h. */
13990-_ACEOF
13991-cat confdefs.h >>conftest.$ac_ext
13992-cat >>conftest.$ac_ext <<_ACEOF
13993-/* end confdefs.h. */
13994-
13995-int
13996-main ()
13997-{
13998-long double x; x = (long double)0.;
13999- ;
14000- return 0;
14001-}
14002-_ACEOF
14003-rm -f conftest.$ac_objext
14004-if { (ac_try="$ac_compile"
14005-case "(($ac_try" in
14006- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14007- *) ac_try_echo=$ac_try;;
14008-esac
14009-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14010- (eval "$ac_compile") 2>conftest.er1
14011- ac_status=$?
14012- grep -v '^ *+' conftest.er1 >conftest.err
14013- rm -f conftest.er1
14014- cat conftest.err >&5
14015- echo "$as_me:$LINENO: \$? = $ac_status" >&5
14016- (exit $ac_status); } && {
14017- test -z "$ac_c_werror_flag" ||
14018- test ! -s conftest.err
14019- } && test -s conftest.$ac_objext; then
14020-
14021-
14022-cat >>confdefs.h <<\_ACEOF
14023-#define HAVE_LONG_DOUBLE 1
14024-_ACEOF
14025-
14026- have_long_double=yes
14027-
14028-else
14029- echo "$as_me: failed program was:" >&5
14030-sed 's/^/| /' conftest.$ac_ext >&5
14031-
14032-
14033-fi
14034-
14035-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14036-{ echo "$as_me:$LINENO: result: $have_long_double" >&5
14037-echo "${ECHO_T}$have_long_double" >&6; }
14038-if test "$have_long_double" = yes ; then
14039-{ echo "$as_me:$LINENO: checking for long double" >&5
14040-echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
14041-if test "${ac_cv_type_long_double+set}" = set; then
14042- echo $ECHO_N "(cached) $ECHO_C" >&6
14043-else
14044- cat >conftest.$ac_ext <<_ACEOF
14045-/* confdefs.h. */
14046-_ACEOF
14047-cat confdefs.h >>conftest.$ac_ext
14048-cat >>conftest.$ac_ext <<_ACEOF
14049-/* end confdefs.h. */
14050-$ac_includes_default
14051-typedef long double ac__type_new_;
14052-int
14053-main ()
14054-{
14055-if ((ac__type_new_ *) 0)
14056- return 0;
14057-if (sizeof (ac__type_new_))
14058- return 0;
14059- ;
14060- return 0;
14061-}
14062-_ACEOF
14063-rm -f conftest.$ac_objext
14064-if { (ac_try="$ac_compile"
14065-case "(($ac_try" in
14066- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14067- *) ac_try_echo=$ac_try;;
14068-esac
14069-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14070- (eval "$ac_compile") 2>conftest.er1
14071- ac_status=$?
14072- grep -v '^ *+' conftest.er1 >conftest.err
14073- rm -f conftest.er1
14074- cat conftest.err >&5
14075- echo "$as_me:$LINENO: \$? = $ac_status" >&5
14076- (exit $ac_status); } && {
14077- test -z "$ac_c_werror_flag" ||
14078- test ! -s conftest.err
14079- } && test -s conftest.$ac_objext; then
14080- ac_cv_type_long_double=yes
14081-else
14082- echo "$as_me: failed program was:" >&5
14083-sed 's/^/| /' conftest.$ac_ext >&5
14084-
14085- ac_cv_type_long_double=no
14086-fi
14087-
14088-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14089-fi
14090-{ echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
14091-echo "${ECHO_T}$ac_cv_type_long_double" >&6; }
14092-
14093-# The cast to long int works around a bug in the HP C Compiler
14094-# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14095-# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14096-# This bug is HP SR number 8606223364.
14097-{ echo "$as_me:$LINENO: checking size of long double" >&5
14098-echo $ECHO_N "checking size of long double... $ECHO_C" >&6; }
14099-if test "${ac_cv_sizeof_long_double+set}" = set; then
14100- echo $ECHO_N "(cached) $ECHO_C" >&6
14101-else
14102- if test "$cross_compiling" = yes; then
14103- # Depending upon the size, compute the lo and hi bounds.
14104-cat >conftest.$ac_ext <<_ACEOF
14105-/* confdefs.h. */
14106-_ACEOF
14107-cat confdefs.h >>conftest.$ac_ext
14108-cat >>conftest.$ac_ext <<_ACEOF
14109-/* end confdefs.h. */
14110-$ac_includes_default
14111- typedef long double ac__type_sizeof_;
14112-int
14113-main ()
14114-{
14115-static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
14116-test_array [0] = 0
14117-
14118- ;
14119- return 0;
14120-}
14121-_ACEOF
14122-rm -f conftest.$ac_objext
14123-if { (ac_try="$ac_compile"
14124-case "(($ac_try" in
14125- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14126- *) ac_try_echo=$ac_try;;
14127-esac
14128-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14129- (eval "$ac_compile") 2>conftest.er1
14130- ac_status=$?
14131- grep -v '^ *+' conftest.er1 >conftest.err
14132- rm -f conftest.er1
14133- cat conftest.err >&5
14134- echo "$as_me:$LINENO: \$? = $ac_status" >&5
14135- (exit $ac_status); } && {
14136- test -z "$ac_c_werror_flag" ||
14137- test ! -s conftest.err
14138- } && test -s conftest.$ac_objext; then
14139- ac_lo=0 ac_mid=0
14140- while :; do
14141- cat >conftest.$ac_ext <<_ACEOF
14142-/* confdefs.h. */
14143-_ACEOF
14144-cat confdefs.h >>conftest.$ac_ext
14145-cat >>conftest.$ac_ext <<_ACEOF
14146-/* end confdefs.h. */
14147-$ac_includes_default
14148- typedef long double ac__type_sizeof_;
14149-int
14150-main ()
14151-{
14152-static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14153-test_array [0] = 0
14154-
14155- ;
14156- return 0;
14157-}
14158-_ACEOF
14159-rm -f conftest.$ac_objext
14160-if { (ac_try="$ac_compile"
14161-case "(($ac_try" in
14162- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14163- *) ac_try_echo=$ac_try;;
14164-esac
14165-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14166- (eval "$ac_compile") 2>conftest.er1
14167- ac_status=$?
14168- grep -v '^ *+' conftest.er1 >conftest.err
14169- rm -f conftest.er1
14170- cat conftest.err >&5
14171- echo "$as_me:$LINENO: \$? = $ac_status" >&5
14172- (exit $ac_status); } && {
14173- test -z "$ac_c_werror_flag" ||
14174- test ! -s conftest.err
14175- } && test -s conftest.$ac_objext; then
14176- ac_hi=$ac_mid; break
14177-else
14178- echo "$as_me: failed program was:" >&5
14179-sed 's/^/| /' conftest.$ac_ext >&5
14180-
14181- ac_lo=`expr $ac_mid + 1`
14182- if test $ac_lo -le $ac_mid; then
14183- ac_lo= ac_hi=
14184- break
14185- fi
14186- ac_mid=`expr 2 '*' $ac_mid + 1`
14187-fi
14188-
14189-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14190- done
14191-else
14192- echo "$as_me: failed program was:" >&5
14193-sed 's/^/| /' conftest.$ac_ext >&5
14194-
14195- cat >conftest.$ac_ext <<_ACEOF
14196-/* confdefs.h. */
14197-_ACEOF
14198-cat confdefs.h >>conftest.$ac_ext
14199-cat >>conftest.$ac_ext <<_ACEOF
14200-/* end confdefs.h. */
14201-$ac_includes_default
14202- typedef long double ac__type_sizeof_;
14203-int
14204-main ()
14205-{
14206-static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
14207-test_array [0] = 0
14208-
14209- ;
14210- return 0;
14211-}
14212-_ACEOF
14213-rm -f conftest.$ac_objext
14214-if { (ac_try="$ac_compile"
14215-case "(($ac_try" in
14216- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14217- *) ac_try_echo=$ac_try;;
14218-esac
14219-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14220- (eval "$ac_compile") 2>conftest.er1
14221- ac_status=$?
14222- grep -v '^ *+' conftest.er1 >conftest.err
14223- rm -f conftest.er1
14224- cat conftest.err >&5
14225- echo "$as_me:$LINENO: \$? = $ac_status" >&5
14226- (exit $ac_status); } && {
14227- test -z "$ac_c_werror_flag" ||
14228- test ! -s conftest.err
14229- } && test -s conftest.$ac_objext; then
14230- ac_hi=-1 ac_mid=-1
14231- while :; do
14232- cat >conftest.$ac_ext <<_ACEOF
14233-/* confdefs.h. */
14234-_ACEOF
14235-cat confdefs.h >>conftest.$ac_ext
14236-cat >>conftest.$ac_ext <<_ACEOF
14237-/* end confdefs.h. */
14238-$ac_includes_default
14239- typedef long double ac__type_sizeof_;
14240-int
14241-main ()
14242-{
14243-static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
14244-test_array [0] = 0
14245-
14246- ;
14247- return 0;
14248-}
14249-_ACEOF
14250-rm -f conftest.$ac_objext
14251-if { (ac_try="$ac_compile"
14252-case "(($ac_try" in
14253- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14254- *) ac_try_echo=$ac_try;;
14255-esac
14256-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14257- (eval "$ac_compile") 2>conftest.er1
14258- ac_status=$?
14259- grep -v '^ *+' conftest.er1 >conftest.err
14260- rm -f conftest.er1
14261- cat conftest.err >&5
14262- echo "$as_me:$LINENO: \$? = $ac_status" >&5
14263- (exit $ac_status); } && {
14264- test -z "$ac_c_werror_flag" ||
14265- test ! -s conftest.err
14266- } && test -s conftest.$ac_objext; then
14267- ac_lo=$ac_mid; break
14268-else
14269- echo "$as_me: failed program was:" >&5
14270-sed 's/^/| /' conftest.$ac_ext >&5
14271-
14272- ac_hi=`expr '(' $ac_mid ')' - 1`
14273- if test $ac_mid -le $ac_hi; then
14274- ac_lo= ac_hi=
14275- break
14276- fi
14277- ac_mid=`expr 2 '*' $ac_mid`
14278-fi
14279-
14280-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14281- done
14282-else
14283- echo "$as_me: failed program was:" >&5
14284-sed 's/^/| /' conftest.$ac_ext >&5
14285-
14286- ac_lo= ac_hi=
14287-fi
14288-
14289-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14290-fi
14291-
14292-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14293-# Binary search between lo and hi bounds.
14294-while test "x$ac_lo" != "x$ac_hi"; do
14295- ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14296- cat >conftest.$ac_ext <<_ACEOF
14297-/* confdefs.h. */
14298-_ACEOF
14299-cat confdefs.h >>conftest.$ac_ext
14300-cat >>conftest.$ac_ext <<_ACEOF
14301-/* end confdefs.h. */
14302-$ac_includes_default
14303- typedef long double ac__type_sizeof_;
14304-int
14305-main ()
14306-{
14307-static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14308-test_array [0] = 0
14309-
14310- ;
14311- return 0;
14312-}
14313-_ACEOF
14314-rm -f conftest.$ac_objext
14315-if { (ac_try="$ac_compile"
14316-case "(($ac_try" in
14317- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14318- *) ac_try_echo=$ac_try;;
14319-esac
14320-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14321- (eval "$ac_compile") 2>conftest.er1
14322- ac_status=$?
14323- grep -v '^ *+' conftest.er1 >conftest.err
14324- rm -f conftest.er1
14325- cat conftest.err >&5
14326- echo "$as_me:$LINENO: \$? = $ac_status" >&5
14327- (exit $ac_status); } && {
14328- test -z "$ac_c_werror_flag" ||
14329- test ! -s conftest.err
14330- } && test -s conftest.$ac_objext; then
14331- ac_hi=$ac_mid
14332-else
14333- echo "$as_me: failed program was:" >&5
14334-sed 's/^/| /' conftest.$ac_ext >&5
14335-
14336- ac_lo=`expr '(' $ac_mid ')' + 1`
14337-fi
14338-
14339-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14340-done
14341-case $ac_lo in
14342-?*) ac_cv_sizeof_long_double=$ac_lo;;
14343-'') if test "$ac_cv_type_long_double" = yes; then
14344- { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
14345-See \`config.log' for more details." >&5
14346-echo "$as_me: error: cannot compute sizeof (long double)
14347-See \`config.log' for more details." >&2;}
14348- { (exit 77); exit 77; }; }
14349- else
14350- ac_cv_sizeof_long_double=0
14351- fi ;;
14352-esac
14353-else
14354- cat >conftest.$ac_ext <<_ACEOF
14355-/* confdefs.h. */
14356-_ACEOF
14357-cat confdefs.h >>conftest.$ac_ext
14358-cat >>conftest.$ac_ext <<_ACEOF
14359-/* end confdefs.h. */
14360-$ac_includes_default
14361- typedef long double ac__type_sizeof_;
14362-static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
14363-static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
14364-#include <stdio.h>
14365-#include <stdlib.h>
14366-int
14367-main ()
14368-{
14369-
14370- FILE *f = fopen ("conftest.val", "w");
14371- if (! f)
14372- return 1;
14373- if (((long int) (sizeof (ac__type_sizeof_))) < 0)
14374- {
14375- long int i = longval ();
14376- if (i != ((long int) (sizeof (ac__type_sizeof_))))
14377- return 1;
14378- fprintf (f, "%ld\n", i);
14379- }
14380- else
14381- {
14382- unsigned long int i = ulongval ();
14383- if (i != ((long int) (sizeof (ac__type_sizeof_))))
14384- return 1;
14385- fprintf (f, "%lu\n", i);
14386- }
14387- return ferror (f) || fclose (f) != 0;
14388-
14389- ;
14390- return 0;
14391-}
14392-_ACEOF
14393-rm -f conftest$ac_exeext
14394-if { (ac_try="$ac_link"
14395-case "(($ac_try" in
14396- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14397- *) ac_try_echo=$ac_try;;
14398-esac
14399-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14400- (eval "$ac_link") 2>&5
14401- ac_status=$?
14402- echo "$as_me:$LINENO: \$? = $ac_status" >&5
14403- (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14404- { (case "(($ac_try" in
14405- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14406- *) ac_try_echo=$ac_try;;
14407-esac
14408-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14409- (eval "$ac_try") 2>&5
14410- ac_status=$?
14411- echo "$as_me:$LINENO: \$? = $ac_status" >&5
14412- (exit $ac_status); }; }; then
14413- ac_cv_sizeof_long_double=`cat conftest.val`
14414-else
14415- echo "$as_me: program exited with status $ac_status" >&5
14416-echo "$as_me: failed program was:" >&5
14417-sed 's/^/| /' conftest.$ac_ext >&5
14418-
14419-( exit $ac_status )
14420-if test "$ac_cv_type_long_double" = yes; then
14421- { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
14422-See \`config.log' for more details." >&5
14423-echo "$as_me: error: cannot compute sizeof (long double)
14424-See \`config.log' for more details." >&2;}
14425- { (exit 77); exit 77; }; }
14426- else
14427- ac_cv_sizeof_long_double=0
14428- fi
14429-fi
14430-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14431-fi
14432-rm -f conftest.val
14433-fi
14434-{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
14435-echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6; }
14436-
14437-
14438-
14439-cat >>confdefs.h <<_ACEOF
14440-#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
14441-_ACEOF
14442-
14443-
14444-fi
14445-
14446-{ echo "$as_me:$LINENO: checking for _Bool support" >&5
14447-echo $ECHO_N "checking for _Bool support... $ECHO_C" >&6; }
14448-have_c99_bool=no
14449-cat >conftest.$ac_ext <<_ACEOF
14450-/* confdefs.h. */
14451-_ACEOF
14452-cat confdefs.h >>conftest.$ac_ext
14453-cat >>conftest.$ac_ext <<_ACEOF
14454-/* end confdefs.h. */
14455-
14456-int
14457-main ()
14458-{
14459-_Bool x; x = (_Bool)0;
14460- ;
14461- return 0;
14462-}
14463-_ACEOF
14464-rm -f conftest.$ac_objext
14465-if { (ac_try="$ac_compile"
14466-case "(($ac_try" in
14467- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14468- *) ac_try_echo=$ac_try;;
14469-esac
14470-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14471- (eval "$ac_compile") 2>conftest.er1
14472- ac_status=$?
14473- grep -v '^ *+' conftest.er1 >conftest.err
14474- rm -f conftest.er1
14475- cat conftest.err >&5
14476- echo "$as_me:$LINENO: \$? = $ac_status" >&5
14477- (exit $ac_status); } && {
14478- test -z "$ac_c_werror_flag" ||
14479- test ! -s conftest.err
14480- } && test -s conftest.$ac_objext; then
14481-
14482-
14483-cat >>confdefs.h <<\_ACEOF
14484-#define HAVE_C99_BOOL 1
14485-_ACEOF
14486-
14487- have_c99_bool=yes
14488-
14489-else
14490- echo "$as_me: failed program was:" >&5
14491-sed 's/^/| /' conftest.$ac_ext >&5
14492-
14493-
14494-fi
14495-
14496-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14497-{ echo "$as_me:$LINENO: result: $have_c99_bool" >&5
14498-echo "${ECHO_T}$have_c99_bool" >&6; }
14499-if test "$have_c99_bool" = yes ; then
14500-{ echo "$as_me:$LINENO: checking for _Bool" >&5
14501-echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
14502-if test "${ac_cv_type__Bool+set}" = set; then
14503- echo $ECHO_N "(cached) $ECHO_C" >&6
14504-else
14505- cat >conftest.$ac_ext <<_ACEOF
14506-/* confdefs.h. */
14507-_ACEOF
14508-cat confdefs.h >>conftest.$ac_ext
14509-cat >>conftest.$ac_ext <<_ACEOF
14510-/* end confdefs.h. */
14511-$ac_includes_default
14512-typedef _Bool ac__type_new_;
14513-int
14514-main ()
14515-{
14516-if ((ac__type_new_ *) 0)
14517- return 0;
14518-if (sizeof (ac__type_new_))
14519- return 0;
14520- ;
14521- return 0;
14522-}
14523-_ACEOF
14524-rm -f conftest.$ac_objext
14525-if { (ac_try="$ac_compile"
14526-case "(($ac_try" in
14527- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14528- *) ac_try_echo=$ac_try;;
14529-esac
14530-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14531- (eval "$ac_compile") 2>conftest.er1
14532- ac_status=$?
14533- grep -v '^ *+' conftest.er1 >conftest.err
14534- rm -f conftest.er1
14535- cat conftest.err >&5
14536- echo "$as_me:$LINENO: \$? = $ac_status" >&5
14537- (exit $ac_status); } && {
14538- test -z "$ac_c_werror_flag" ||
14539- test ! -s conftest.err
14540- } && test -s conftest.$ac_objext; then
14541- ac_cv_type__Bool=yes
14542-else
14543- echo "$as_me: failed program was:" >&5
14544-sed 's/^/| /' conftest.$ac_ext >&5
14545-
14546- ac_cv_type__Bool=no
14547-fi
14548-
14549-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14550-fi
14551-{ echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
14552-echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
14553-
14554-# The cast to long int works around a bug in the HP C Compiler
14555-# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14556-# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14557-# This bug is HP SR number 8606223364.
14558-{ echo "$as_me:$LINENO: checking size of _Bool" >&5
14559-echo $ECHO_N "checking size of _Bool... $ECHO_C" >&6; }
14560-if test "${ac_cv_sizeof__Bool+set}" = set; then
14561- echo $ECHO_N "(cached) $ECHO_C" >&6
14562-else
14563- if test "$cross_compiling" = yes; then
14564- # Depending upon the size, compute the lo and hi bounds.
14565-cat >conftest.$ac_ext <<_ACEOF
14566-/* confdefs.h. */
14567-_ACEOF
14568-cat confdefs.h >>conftest.$ac_ext
14569-cat >>conftest.$ac_ext <<_ACEOF
14570-/* end confdefs.h. */
14571-$ac_includes_default
14572- typedef _Bool ac__type_sizeof_;
14573-int
14574-main ()
14575-{
14576-static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
14577-test_array [0] = 0
14578-
14579- ;
14580- return 0;
14581-}
14582-_ACEOF
14583-rm -f conftest.$ac_objext
14584-if { (ac_try="$ac_compile"
14585-case "(($ac_try" in
14586- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14587- *) ac_try_echo=$ac_try;;
14588-esac
14589-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14590- (eval "$ac_compile") 2>conftest.er1
14591- ac_status=$?
14592- grep -v '^ *+' conftest.er1 >conftest.err
14593- rm -f conftest.er1
14594- cat conftest.err >&5
14595- echo "$as_me:$LINENO: \$? = $ac_status" >&5
14596- (exit $ac_status); } && {
14597- test -z "$ac_c_werror_flag" ||
14598- test ! -s conftest.err
14599- } && test -s conftest.$ac_objext; then
14600- ac_lo=0 ac_mid=0
14601- while :; do
14602- cat >conftest.$ac_ext <<_ACEOF
14603-/* confdefs.h. */
14604-_ACEOF
14605-cat confdefs.h >>conftest.$ac_ext
14606-cat >>conftest.$ac_ext <<_ACEOF
14607-/* end confdefs.h. */
14608-$ac_includes_default
14609- typedef _Bool ac__type_sizeof_;
14610-int
14611-main ()
14612-{
14613-static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14614-test_array [0] = 0
14615-
14616- ;
14617- return 0;
14618-}
14619-_ACEOF
14620-rm -f conftest.$ac_objext
14621-if { (ac_try="$ac_compile"
14622-case "(($ac_try" in
14623- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14624- *) ac_try_echo=$ac_try;;
14625-esac
14626-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14627- (eval "$ac_compile") 2>conftest.er1
14628- ac_status=$?
14629- grep -v '^ *+' conftest.er1 >conftest.err
14630- rm -f conftest.er1
14631- cat conftest.err >&5
14632- echo "$as_me:$LINENO: \$? = $ac_status" >&5
14633- (exit $ac_status); } && {
14634- test -z "$ac_c_werror_flag" ||
14635- test ! -s conftest.err
14636- } && test -s conftest.$ac_objext; then
14637- ac_hi=$ac_mid; break
14638-else
14639- echo "$as_me: failed program was:" >&5
14640-sed 's/^/| /' conftest.$ac_ext >&5
14641-
14642- ac_lo=`expr $ac_mid + 1`
14643- if test $ac_lo -le $ac_mid; then
14644- ac_lo= ac_hi=
14645- break
14646- fi
14647- ac_mid=`expr 2 '*' $ac_mid + 1`
14648-fi
14649-
14650-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14651- done
14652-else
14653- echo "$as_me: failed program was:" >&5
14654-sed 's/^/| /' conftest.$ac_ext >&5
14655-
14656- cat >conftest.$ac_ext <<_ACEOF
14657-/* confdefs.h. */
14658-_ACEOF
14659-cat confdefs.h >>conftest.$ac_ext
14660-cat >>conftest.$ac_ext <<_ACEOF
14661-/* end confdefs.h. */
14662-$ac_includes_default
14663- typedef _Bool ac__type_sizeof_;
14664-int
14665-main ()
14666-{
14667-static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
14668-test_array [0] = 0
14669-
14670- ;
14671- return 0;
14672-}
14673-_ACEOF
14674-rm -f conftest.$ac_objext
14675-if { (ac_try="$ac_compile"
14676-case "(($ac_try" in
14677- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14678- *) ac_try_echo=$ac_try;;
14679-esac
14680-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14681- (eval "$ac_compile") 2>conftest.er1
14682- ac_status=$?
14683- grep -v '^ *+' conftest.er1 >conftest.err
14684- rm -f conftest.er1
14685- cat conftest.err >&5
14686- echo "$as_me:$LINENO: \$? = $ac_status" >&5
14687- (exit $ac_status); } && {
14688- test -z "$ac_c_werror_flag" ||
14689- test ! -s conftest.err
14690- } && test -s conftest.$ac_objext; then
14691- ac_hi=-1 ac_mid=-1
14692- while :; do
14693- cat >conftest.$ac_ext <<_ACEOF
14694-/* confdefs.h. */
14695-_ACEOF
14696-cat confdefs.h >>conftest.$ac_ext
14697-cat >>conftest.$ac_ext <<_ACEOF
14698-/* end confdefs.h. */
14699-$ac_includes_default
14700- typedef _Bool ac__type_sizeof_;
14701-int
14702-main ()
14703-{
14704-static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
14705-test_array [0] = 0
14706-
14707- ;
14708- return 0;
14709-}
14710-_ACEOF
14711-rm -f conftest.$ac_objext
14712-if { (ac_try="$ac_compile"
14713-case "(($ac_try" in
14714- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14715- *) ac_try_echo=$ac_try;;
14716-esac
14717-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14718- (eval "$ac_compile") 2>conftest.er1
14719- ac_status=$?
14720- grep -v '^ *+' conftest.er1 >conftest.err
14721- rm -f conftest.er1
14722- cat conftest.err >&5
14723- echo "$as_me:$LINENO: \$? = $ac_status" >&5
14724- (exit $ac_status); } && {
14725- test -z "$ac_c_werror_flag" ||
14726- test ! -s conftest.err
14727- } && test -s conftest.$ac_objext; then
14728- ac_lo=$ac_mid; break
14729-else
14730- echo "$as_me: failed program was:" >&5
14731-sed 's/^/| /' conftest.$ac_ext >&5
14732-
14733- ac_hi=`expr '(' $ac_mid ')' - 1`
14734- if test $ac_mid -le $ac_hi; then
14735- ac_lo= ac_hi=
14736- break
14737- fi
14738- ac_mid=`expr 2 '*' $ac_mid`
14739-fi
14740-
14741-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14742- done
14743-else
14744- echo "$as_me: failed program was:" >&5
14745-sed 's/^/| /' conftest.$ac_ext >&5
14746-
14747- ac_lo= ac_hi=
14748-fi
14749-
14750-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14751-fi
14752-
14753-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14754-# Binary search between lo and hi bounds.
14755-while test "x$ac_lo" != "x$ac_hi"; do
14756- ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14757- cat >conftest.$ac_ext <<_ACEOF
14758-/* confdefs.h. */
14759-_ACEOF
14760-cat confdefs.h >>conftest.$ac_ext
14761-cat >>conftest.$ac_ext <<_ACEOF
14762-/* end confdefs.h. */
14763-$ac_includes_default
14764- typedef _Bool ac__type_sizeof_;
14765-int
14766-main ()
14767-{
14768-static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14769-test_array [0] = 0
14770-
14771- ;
14772- return 0;
14773-}
14774-_ACEOF
14775-rm -f conftest.$ac_objext
14776-if { (ac_try="$ac_compile"
14777-case "(($ac_try" in
14778- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14779- *) ac_try_echo=$ac_try;;
14780-esac
14781-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14782- (eval "$ac_compile") 2>conftest.er1
14783- ac_status=$?
14784- grep -v '^ *+' conftest.er1 >conftest.err
14785- rm -f conftest.er1
14786- cat conftest.err >&5
14787- echo "$as_me:$LINENO: \$? = $ac_status" >&5
14788- (exit $ac_status); } && {
14789- test -z "$ac_c_werror_flag" ||
14790- test ! -s conftest.err
14791- } && test -s conftest.$ac_objext; then
14792- ac_hi=$ac_mid
14793-else
14794- echo "$as_me: failed program was:" >&5
14795-sed 's/^/| /' conftest.$ac_ext >&5
14796-
14797- ac_lo=`expr '(' $ac_mid ')' + 1`
14798-fi
14799-
14800-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14801-done
14802-case $ac_lo in
14803-?*) ac_cv_sizeof__Bool=$ac_lo;;
14804-'') if test "$ac_cv_type__Bool" = yes; then
14805- { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
14806-See \`config.log' for more details." >&5
14807-echo "$as_me: error: cannot compute sizeof (_Bool)
14808-See \`config.log' for more details." >&2;}
14809- { (exit 77); exit 77; }; }
14810- else
14811- ac_cv_sizeof__Bool=0
14812- fi ;;
14813-esac
14814-else
14815- cat >conftest.$ac_ext <<_ACEOF
14816-/* confdefs.h. */
14817-_ACEOF
14818-cat confdefs.h >>conftest.$ac_ext
14819-cat >>conftest.$ac_ext <<_ACEOF
14820-/* end confdefs.h. */
14821-$ac_includes_default
14822- typedef _Bool ac__type_sizeof_;
14823-static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
14824-static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
14825-#include <stdio.h>
14826-#include <stdlib.h>
14827-int
14828-main ()
14829-{
14830-
14831- FILE *f = fopen ("conftest.val", "w");
14832- if (! f)
14833- return 1;
14834- if (((long int) (sizeof (ac__type_sizeof_))) < 0)
14835- {
14836- long int i = longval ();
14837- if (i != ((long int) (sizeof (ac__type_sizeof_))))
14838- return 1;
14839- fprintf (f, "%ld\n", i);
14840- }
14841- else
14842- {
14843- unsigned long int i = ulongval ();
14844- if (i != ((long int) (sizeof (ac__type_sizeof_))))
14845- return 1;
14846- fprintf (f, "%lu\n", i);
14847- }
14848- return ferror (f) || fclose (f) != 0;
14849-
14850- ;
14851- return 0;
14852-}
14853-_ACEOF
14854-rm -f conftest$ac_exeext
14855-if { (ac_try="$ac_link"
14856-case "(($ac_try" in
14857- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14858- *) ac_try_echo=$ac_try;;
14859-esac
14860-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14861- (eval "$ac_link") 2>&5
14862- ac_status=$?
14863- echo "$as_me:$LINENO: \$? = $ac_status" >&5
14864- (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14865- { (case "(($ac_try" in
14866- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14867- *) ac_try_echo=$ac_try;;
14868-esac
14869-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14870- (eval "$ac_try") 2>&5
14871- ac_status=$?
14872- echo "$as_me:$LINENO: \$? = $ac_status" >&5
14873- (exit $ac_status); }; }; then
14874- ac_cv_sizeof__Bool=`cat conftest.val`
14875-else
14876- echo "$as_me: program exited with status $ac_status" >&5
14877-echo "$as_me: failed program was:" >&5
14878-sed 's/^/| /' conftest.$ac_ext >&5
14879-
14880-( exit $ac_status )
14881-if test "$ac_cv_type__Bool" = yes; then
14882- { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
14883-See \`config.log' for more details." >&5
14884-echo "$as_me: error: cannot compute sizeof (_Bool)
14885-See \`config.log' for more details." >&2;}
14886- { (exit 77); exit 77; }; }
14887- else
14888- ac_cv_sizeof__Bool=0
14889- fi
14890-fi
14891-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14892-fi
14893-rm -f conftest.val
14894-fi
14895-{ echo "$as_me:$LINENO: result: $ac_cv_sizeof__Bool" >&5
14896-echo "${ECHO_T}$ac_cv_sizeof__Bool" >&6; }
14897-
14898-
14899-
14900-cat >>confdefs.h <<_ACEOF
14901-#define SIZEOF__BOOL $ac_cv_sizeof__Bool
14902-_ACEOF
14903-
14904-
14905-fi
14906-
14907-{ echo "$as_me:$LINENO: checking for uintptr_t" >&5
14908-echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
14909-if test "${ac_cv_type_uintptr_t+set}" = set; then
14910- echo $ECHO_N "(cached) $ECHO_C" >&6
14911-else
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-#ifdef HAVE_STDINT_H
14919- #include <stdint.h>
14920- #endif
14921-
14922-typedef uintptr_t ac__type_new_;
14923-int
14924-main ()
14925-{
14926-if ((ac__type_new_ *) 0)
14927- return 0;
14928-if (sizeof (ac__type_new_))
14929- return 0;
14930- ;
14931- return 0;
14932-}
14933-_ACEOF
14934-rm -f conftest.$ac_objext
14935-if { (ac_try="$ac_compile"
14936-case "(($ac_try" in
14937- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14938- *) ac_try_echo=$ac_try;;
14939-esac
14940-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14941- (eval "$ac_compile") 2>conftest.er1
14942- ac_status=$?
14943- grep -v '^ *+' conftest.er1 >conftest.err
14944- rm -f conftest.er1
14945- cat conftest.err >&5
14946- echo "$as_me:$LINENO: \$? = $ac_status" >&5
14947- (exit $ac_status); } && {
14948- test -z "$ac_c_werror_flag" ||
14949- test ! -s conftest.err
14950- } && test -s conftest.$ac_objext; then
14951- ac_cv_type_uintptr_t=yes
14952-else
14953- echo "$as_me: failed program was:" >&5
14954-sed 's/^/| /' conftest.$ac_ext >&5
14955-
14956- ac_cv_type_uintptr_t=no
14957-fi
14958-
14959-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14960-fi
14961-{ echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
14962-echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
14963-if test $ac_cv_type_uintptr_t = yes; then
14964-
14965-cat >>confdefs.h <<_ACEOF
14966-#define HAVE_UINTPTR_T 1
14967-_ACEOF
14968-
14969-{ echo "$as_me:$LINENO: checking for uintptr_t" >&5
14970-echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
14971-if test "${ac_cv_type_uintptr_t+set}" = set; then
14972- echo $ECHO_N "(cached) $ECHO_C" >&6
14973-else
14974- cat >conftest.$ac_ext <<_ACEOF
14975-/* confdefs.h. */
14976-_ACEOF
14977-cat confdefs.h >>conftest.$ac_ext
14978-cat >>conftest.$ac_ext <<_ACEOF
14979-/* end confdefs.h. */
14980-$ac_includes_default
14981-typedef uintptr_t ac__type_new_;
14982-int
14983-main ()
14984-{
14985-if ((ac__type_new_ *) 0)
14986- return 0;
14987-if (sizeof (ac__type_new_))
14988- return 0;
14989- ;
14990- return 0;
14991-}
14992-_ACEOF
14993-rm -f conftest.$ac_objext
14994-if { (ac_try="$ac_compile"
14995-case "(($ac_try" in
14996- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14997- *) ac_try_echo=$ac_try;;
14998-esac
14999-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15000- (eval "$ac_compile") 2>conftest.er1
15001- ac_status=$?
15002- grep -v '^ *+' conftest.er1 >conftest.err
15003- rm -f conftest.er1
15004- cat conftest.err >&5
15005- echo "$as_me:$LINENO: \$? = $ac_status" >&5
15006- (exit $ac_status); } && {
15007- test -z "$ac_c_werror_flag" ||
15008- test ! -s conftest.err
15009- } && test -s conftest.$ac_objext; then
15010- ac_cv_type_uintptr_t=yes
15011-else
15012- echo "$as_me: failed program was:" >&5
15013-sed 's/^/| /' conftest.$ac_ext >&5
15014-
15015- ac_cv_type_uintptr_t=no
15016-fi
15017-
15018-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15019-fi
15020-{ echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
15021-echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
15022-
15023-# The cast to long int works around a bug in the HP C Compiler
15024-# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15025-# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15026-# This bug is HP SR number 8606223364.
15027-{ echo "$as_me:$LINENO: checking size of uintptr_t" >&5
15028-echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6; }
15029-if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
15030- echo $ECHO_N "(cached) $ECHO_C" >&6
15031-else
15032- if test "$cross_compiling" = yes; then
15033- # Depending upon the size, compute the lo and hi bounds.
15034-cat >conftest.$ac_ext <<_ACEOF
15035-/* confdefs.h. */
15036-_ACEOF
15037-cat confdefs.h >>conftest.$ac_ext
15038-cat >>conftest.$ac_ext <<_ACEOF
15039-/* end confdefs.h. */
15040-$ac_includes_default
15041- typedef uintptr_t ac__type_sizeof_;
15042-int
15043-main ()
15044-{
15045-static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
15046-test_array [0] = 0
15047-
15048- ;
15049- return 0;
15050-}
15051-_ACEOF
15052-rm -f conftest.$ac_objext
15053-if { (ac_try="$ac_compile"
15054-case "(($ac_try" in
15055- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15056- *) ac_try_echo=$ac_try;;
15057-esac
15058-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15059- (eval "$ac_compile") 2>conftest.er1
15060- ac_status=$?
15061- grep -v '^ *+' conftest.er1 >conftest.err
15062- rm -f conftest.er1
15063- cat conftest.err >&5
15064- echo "$as_me:$LINENO: \$? = $ac_status" >&5
15065- (exit $ac_status); } && {
15066- test -z "$ac_c_werror_flag" ||
15067- test ! -s conftest.err
15068- } && test -s conftest.$ac_objext; then
15069- ac_lo=0 ac_mid=0
15070- while :; do
15071- cat >conftest.$ac_ext <<_ACEOF
15072-/* confdefs.h. */
15073-_ACEOF
15074-cat confdefs.h >>conftest.$ac_ext
15075-cat >>conftest.$ac_ext <<_ACEOF
15076-/* end confdefs.h. */
15077-$ac_includes_default
15078- typedef uintptr_t ac__type_sizeof_;
15079-int
15080-main ()
15081-{
15082-static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
15083-test_array [0] = 0
15084-
15085- ;
15086- return 0;
15087-}
15088-_ACEOF
15089-rm -f conftest.$ac_objext
15090-if { (ac_try="$ac_compile"
15091-case "(($ac_try" in
15092- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15093- *) ac_try_echo=$ac_try;;
15094-esac
15095-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15096- (eval "$ac_compile") 2>conftest.er1
15097- ac_status=$?
15098- grep -v '^ *+' conftest.er1 >conftest.err
15099- rm -f conftest.er1
15100- cat conftest.err >&5
15101- echo "$as_me:$LINENO: \$? = $ac_status" >&5
15102- (exit $ac_status); } && {
15103- test -z "$ac_c_werror_flag" ||
15104- test ! -s conftest.err
15105- } && test -s conftest.$ac_objext; then
15106- ac_hi=$ac_mid; break
15107-else
15108- echo "$as_me: failed program was:" >&5
15109-sed 's/^/| /' conftest.$ac_ext >&5
15110-
15111- ac_lo=`expr $ac_mid + 1`
15112- if test $ac_lo -le $ac_mid; then
15113- ac_lo= ac_hi=
15114- break
15115- fi
15116- ac_mid=`expr 2 '*' $ac_mid + 1`
15117-fi
15118-
15119-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15120- done
15121-else
15122- echo "$as_me: failed program was:" >&5
15123-sed 's/^/| /' conftest.$ac_ext >&5
15124-
15125- cat >conftest.$ac_ext <<_ACEOF
15126-/* confdefs.h. */
15127-_ACEOF
15128-cat confdefs.h >>conftest.$ac_ext
15129-cat >>conftest.$ac_ext <<_ACEOF
15130-/* end confdefs.h. */
15131-$ac_includes_default
15132- typedef uintptr_t ac__type_sizeof_;
15133-int
15134-main ()
15135-{
15136-static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
15137-test_array [0] = 0
15138-
15139- ;
15140- return 0;
15141-}
15142-_ACEOF
15143-rm -f conftest.$ac_objext
15144-if { (ac_try="$ac_compile"
15145-case "(($ac_try" in
15146- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15147- *) ac_try_echo=$ac_try;;
15148-esac
15149-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15150- (eval "$ac_compile") 2>conftest.er1
15151- ac_status=$?
15152- grep -v '^ *+' conftest.er1 >conftest.err
15153- rm -f conftest.er1
15154- cat conftest.err >&5
15155- echo "$as_me:$LINENO: \$? = $ac_status" >&5
15156- (exit $ac_status); } && {
15157- test -z "$ac_c_werror_flag" ||
15158- test ! -s conftest.err
15159- } && test -s conftest.$ac_objext; then
15160- ac_hi=-1 ac_mid=-1
15161- while :; do
15162- cat >conftest.$ac_ext <<_ACEOF
15163-/* confdefs.h. */
15164-_ACEOF
15165-cat confdefs.h >>conftest.$ac_ext
15166-cat >>conftest.$ac_ext <<_ACEOF
15167-/* end confdefs.h. */
15168-$ac_includes_default
15169- typedef uintptr_t ac__type_sizeof_;
15170-int
15171-main ()
15172-{
15173-static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
15174-test_array [0] = 0
15175-
15176- ;
15177- return 0;
15178-}
15179-_ACEOF
15180-rm -f conftest.$ac_objext
15181-if { (ac_try="$ac_compile"
15182-case "(($ac_try" in
15183- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15184- *) ac_try_echo=$ac_try;;
15185-esac
15186-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15187- (eval "$ac_compile") 2>conftest.er1
15188- ac_status=$?
15189- grep -v '^ *+' conftest.er1 >conftest.err
15190- rm -f conftest.er1
15191- cat conftest.err >&5
15192- echo "$as_me:$LINENO: \$? = $ac_status" >&5
15193- (exit $ac_status); } && {
15194- test -z "$ac_c_werror_flag" ||
15195- test ! -s conftest.err
15196- } && test -s conftest.$ac_objext; then
15197- ac_lo=$ac_mid; break
15198-else
15199- echo "$as_me: failed program was:" >&5
15200-sed 's/^/| /' conftest.$ac_ext >&5
15201-
15202- ac_hi=`expr '(' $ac_mid ')' - 1`
15203- if test $ac_mid -le $ac_hi; then
15204- ac_lo= ac_hi=
15205- break
15206- fi
15207- ac_mid=`expr 2 '*' $ac_mid`
15208-fi
15209-
15210-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15211- done
15212-else
15213- echo "$as_me: failed program was:" >&5
15214-sed 's/^/| /' conftest.$ac_ext >&5
15215-
15216- ac_lo= ac_hi=
15217-fi
15218-
15219-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15220-fi
15221-
15222-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15223-# Binary search between lo and hi bounds.
15224-while test "x$ac_lo" != "x$ac_hi"; do
15225- ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15226- cat >conftest.$ac_ext <<_ACEOF
15227-/* confdefs.h. */
15228-_ACEOF
15229-cat confdefs.h >>conftest.$ac_ext
15230-cat >>conftest.$ac_ext <<_ACEOF
15231-/* end confdefs.h. */
15232-$ac_includes_default
15233- typedef uintptr_t ac__type_sizeof_;
15234-int
15235-main ()
15236-{
15237-static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
15238-test_array [0] = 0
15239-
15240- ;
15241- return 0;
15242-}
15243-_ACEOF
15244-rm -f conftest.$ac_objext
15245-if { (ac_try="$ac_compile"
15246-case "(($ac_try" in
15247- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15248- *) ac_try_echo=$ac_try;;
15249-esac
15250-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15251- (eval "$ac_compile") 2>conftest.er1
15252- ac_status=$?
15253- grep -v '^ *+' conftest.er1 >conftest.err
15254- rm -f conftest.er1
15255- cat conftest.err >&5
15256- echo "$as_me:$LINENO: \$? = $ac_status" >&5
15257- (exit $ac_status); } && {
15258- test -z "$ac_c_werror_flag" ||
15259- test ! -s conftest.err
15260- } && test -s conftest.$ac_objext; then
15261- ac_hi=$ac_mid
15262-else
15263- echo "$as_me: failed program was:" >&5
15264-sed 's/^/| /' conftest.$ac_ext >&5
15265-
15266- ac_lo=`expr '(' $ac_mid ')' + 1`
15267-fi
15268-
15269-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15270-done
15271-case $ac_lo in
15272-?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
15273-'') if test "$ac_cv_type_uintptr_t" = yes; then
15274- { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
15275-See \`config.log' for more details." >&5
15276-echo "$as_me: error: cannot compute sizeof (uintptr_t)
15277-See \`config.log' for more details." >&2;}
15278- { (exit 77); exit 77; }; }
15279- else
15280- ac_cv_sizeof_uintptr_t=0
15281- fi ;;
15282-esac
15283-else
15284- cat >conftest.$ac_ext <<_ACEOF
15285-/* confdefs.h. */
15286-_ACEOF
15287-cat confdefs.h >>conftest.$ac_ext
15288-cat >>conftest.$ac_ext <<_ACEOF
15289-/* end confdefs.h. */
15290-$ac_includes_default
15291- typedef uintptr_t ac__type_sizeof_;
15292-static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
15293-static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
15294-#include <stdio.h>
15295-#include <stdlib.h>
15296-int
15297-main ()
15298-{
15299-
15300- FILE *f = fopen ("conftest.val", "w");
15301- if (! f)
15302- return 1;
15303- if (((long int) (sizeof (ac__type_sizeof_))) < 0)
15304- {
15305- long int i = longval ();
15306- if (i != ((long int) (sizeof (ac__type_sizeof_))))
15307- return 1;
15308- fprintf (f, "%ld\n", i);
15309- }
15310- else
15311- {
15312- unsigned long int i = ulongval ();
15313- if (i != ((long int) (sizeof (ac__type_sizeof_))))
15314- return 1;
15315- fprintf (f, "%lu\n", i);
15316- }
15317- return ferror (f) || fclose (f) != 0;
15318-
15319- ;
15320- return 0;
15321-}
15322-_ACEOF
15323-rm -f conftest$ac_exeext
15324-if { (ac_try="$ac_link"
15325-case "(($ac_try" in
15326- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15327- *) ac_try_echo=$ac_try;;
15328-esac
15329-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15330- (eval "$ac_link") 2>&5
15331- ac_status=$?
15332- echo "$as_me:$LINENO: \$? = $ac_status" >&5
15333- (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15334- { (case "(($ac_try" in
15335- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15336- *) ac_try_echo=$ac_try;;
15337-esac
15338-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15339- (eval "$ac_try") 2>&5
15340- ac_status=$?
15341- echo "$as_me:$LINENO: \$? = $ac_status" >&5
15342- (exit $ac_status); }; }; then
15343- ac_cv_sizeof_uintptr_t=`cat conftest.val`
15344-else
15345- echo "$as_me: program exited with status $ac_status" >&5
15346-echo "$as_me: failed program was:" >&5
15347-sed 's/^/| /' conftest.$ac_ext >&5
15348-
15349-( exit $ac_status )
15350-if test "$ac_cv_type_uintptr_t" = yes; then
15351- { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
15352-See \`config.log' for more details." >&5
15353-echo "$as_me: error: cannot compute sizeof (uintptr_t)
15354-See \`config.log' for more details." >&2;}
15355- { (exit 77); exit 77; }; }
15356- else
15357- ac_cv_sizeof_uintptr_t=0
15358- fi
15359-fi
15360-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15361-fi
15362-rm -f conftest.val
15363-fi
15364-{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
15365-echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6; }
15366-
15367-
15368-
15369-cat >>confdefs.h <<_ACEOF
15370-#define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
15371-_ACEOF
15372-
15373-
15374-fi
15375-
15376-
15377-
15378-# Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.
15379-{ echo "$as_me:$LINENO: checking size of off_t" >&5
15380-echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
15381-if test "${ac_cv_sizeof_off_t+set}" = set; then
15382- echo $ECHO_N "(cached) $ECHO_C" >&6
15383-else
15384- if test "$cross_compiling" = yes; then
15385- ac_cv_sizeof_off_t=4
15386-else
15387- cat >conftest.$ac_ext <<_ACEOF
15388-/* confdefs.h. */
15389-_ACEOF
15390-cat confdefs.h >>conftest.$ac_ext
15391-cat >>conftest.$ac_ext <<_ACEOF
15392-/* end confdefs.h. */
15393-#include <stdio.h>
15394-#include <sys/types.h>
15395-main()
15396-{
15397- FILE *f=fopen("conftestval", "w");
15398- if (!f) exit(1);
15399- fprintf(f, "%d\n", sizeof(off_t));
15400- exit(0);
15401-}
15402-_ACEOF
15403-rm -f conftest$ac_exeext
15404-if { (ac_try="$ac_link"
15405-case "(($ac_try" in
15406- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15407- *) ac_try_echo=$ac_try;;
15408-esac
15409-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15410- (eval "$ac_link") 2>&5
15411- ac_status=$?
15412- echo "$as_me:$LINENO: \$? = $ac_status" >&5
15413- (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15414- { (case "(($ac_try" in
15415- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15416- *) ac_try_echo=$ac_try;;
15417-esac
15418-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15419- (eval "$ac_try") 2>&5
15420- ac_status=$?
15421- echo "$as_me:$LINENO: \$? = $ac_status" >&5
15422- (exit $ac_status); }; }; then
15423- ac_cv_sizeof_off_t=`cat conftestval`
15424-else
15425- echo "$as_me: program exited with status $ac_status" >&5
15426-echo "$as_me: failed program was:" >&5
15427-sed 's/^/| /' conftest.$ac_ext >&5
15428-
15429-( exit $ac_status )
15430-ac_cv_sizeof_off_t=0
15431-fi
15432-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15433-fi
15434-
15435-
15436-
15437-fi
15438-
15439-{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
15440-echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
15441-
15442-cat >>confdefs.h <<_ACEOF
15443-#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
15444-_ACEOF
15445-
15446-
15447-{ echo "$as_me:$LINENO: checking whether to enable large file support" >&5
15448-echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6; }
15449-if test "$have_long_long" = yes -a \
15450- "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
15451- "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
15452-
15453-cat >>confdefs.h <<\_ACEOF
15454-#define HAVE_LARGEFILE_SUPPORT 1
15455-_ACEOF
15456-
15457- { echo "$as_me:$LINENO: result: yes" >&5
15458-echo "${ECHO_T}yes" >&6; }
15459-else
15460- { echo "$as_me:$LINENO: result: no" >&5
15461-echo "${ECHO_T}no" >&6; }
15462-fi
15463-
15464-# AC_CHECK_SIZEOF() doesn't include <time.h>.
15465-{ echo "$as_me:$LINENO: checking size of time_t" >&5
15466-echo $ECHO_N "checking size of time_t... $ECHO_C" >&6; }
15467-if test "${ac_cv_sizeof_time_t+set}" = set; then
15468- echo $ECHO_N "(cached) $ECHO_C" >&6
15469-else
15470- if test "$cross_compiling" = yes; then
15471- ac_cv_sizeof_time_t=4
15472-else
15473- cat >conftest.$ac_ext <<_ACEOF
15474-/* confdefs.h. */
15475-_ACEOF
15476-cat confdefs.h >>conftest.$ac_ext
15477-cat >>conftest.$ac_ext <<_ACEOF
15478-/* end confdefs.h. */
15479-#include <stdio.h>
15480-#include <time.h>
15481-main()
15482-{
15483- FILE *f=fopen("conftestval", "w");
15484- if (!f) exit(1);
15485- fprintf(f, "%d\n", sizeof(time_t));
15486- exit(0);
15487-}
15488-_ACEOF
15489-rm -f conftest$ac_exeext
15490-if { (ac_try="$ac_link"
15491-case "(($ac_try" in
15492- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15493- *) ac_try_echo=$ac_try;;
15494-esac
15495-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15496- (eval "$ac_link") 2>&5
15497- ac_status=$?
15498- echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499- (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15500- { (case "(($ac_try" in
15501- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15502- *) ac_try_echo=$ac_try;;
15503-esac
15504-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15505- (eval "$ac_try") 2>&5
15506- ac_status=$?
15507- echo "$as_me:$LINENO: \$? = $ac_status" >&5
15508- (exit $ac_status); }; }; then
15509- ac_cv_sizeof_time_t=`cat conftestval`
15510-else
15511- echo "$as_me: program exited with status $ac_status" >&5
15512-echo "$as_me: failed program was:" >&5
15513-sed 's/^/| /' conftest.$ac_ext >&5
15514-
15515-( exit $ac_status )
15516-ac_cv_sizeof_time_t=0
15517-fi
15518-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15519-fi
15520-
15521-
15522-
15523-fi
15524-
15525-{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
15526-echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; }
15527-
15528-cat >>confdefs.h <<_ACEOF
15529-#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
15530-_ACEOF
15531-
15532-
15533-
15534-# if have pthread_t then define SIZEOF_PTHREAD_T
15535-ac_save_cc="$CC"
15536-if test "$ac_cv_kpthread" = "yes"
15537-then CC="$CC -Kpthread"
15538-elif test "$ac_cv_kthread" = "yes"
15539-then CC="$CC -Kthread"
15540-elif test "$ac_cv_pthread" = "yes"
15541-then CC="$CC -pthread"
15542-fi
15543-{ echo "$as_me:$LINENO: checking for pthread_t" >&5
15544-echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; }
15545-have_pthread_t=no
15546-cat >conftest.$ac_ext <<_ACEOF
15547-/* confdefs.h. */
15548-_ACEOF
15549-cat confdefs.h >>conftest.$ac_ext
15550-cat >>conftest.$ac_ext <<_ACEOF
15551-/* end confdefs.h. */
15552-#include <pthread.h>
15553-int
15554-main ()
15555-{
15556-pthread_t x; x = *(pthread_t*)0;
15557- ;
15558- return 0;
15559-}
15560-_ACEOF
15561-rm -f conftest.$ac_objext
15562-if { (ac_try="$ac_compile"
15563-case "(($ac_try" in
15564- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15565- *) ac_try_echo=$ac_try;;
15566-esac
15567-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15568- (eval "$ac_compile") 2>conftest.er1
15569- ac_status=$?
15570- grep -v '^ *+' conftest.er1 >conftest.err
15571- rm -f conftest.er1
15572- cat conftest.err >&5
15573- echo "$as_me:$LINENO: \$? = $ac_status" >&5
15574- (exit $ac_status); } && {
15575- test -z "$ac_c_werror_flag" ||
15576- test ! -s conftest.err
15577- } && test -s conftest.$ac_objext; then
15578- have_pthread_t=yes
15579-else
15580- echo "$as_me: failed program was:" >&5
15581-sed 's/^/| /' conftest.$ac_ext >&5
15582-
15583-
15584-fi
15585-
15586-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15587-{ echo "$as_me:$LINENO: result: $have_pthread_t" >&5
15588-echo "${ECHO_T}$have_pthread_t" >&6; }
15589-if test "$have_pthread_t" = yes ; then
15590- # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
15591- { echo "$as_me:$LINENO: checking size of pthread_t" >&5
15592-echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6; }
15593- if test "${ac_cv_sizeof_pthread_t+set}" = set; then
15594- echo $ECHO_N "(cached) $ECHO_C" >&6
15595-else
15596- if test "$cross_compiling" = yes; then
15597- ac_cv_sizeof_pthread_t=4
15598-else
15599- cat >conftest.$ac_ext <<_ACEOF
15600-/* confdefs.h. */
15601-_ACEOF
15602-cat confdefs.h >>conftest.$ac_ext
15603-cat >>conftest.$ac_ext <<_ACEOF
15604-/* end confdefs.h. */
15605-#include <stdio.h>
15606-#include <pthread.h>
15607- main()
15608- {
15609- FILE *f=fopen("conftestval", "w");
15610- if (!f) exit(1);
15611- fprintf(f, "%d\n", sizeof(pthread_t));
15612- exit(0);
15613- }
15614-_ACEOF
15615-rm -f conftest$ac_exeext
15616-if { (ac_try="$ac_link"
15617-case "(($ac_try" in
15618- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15619- *) ac_try_echo=$ac_try;;
15620-esac
15621-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15622- (eval "$ac_link") 2>&5
15623- ac_status=$?
15624- echo "$as_me:$LINENO: \$? = $ac_status" >&5
15625- (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15626- { (case "(($ac_try" in
15627- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15628- *) ac_try_echo=$ac_try;;
15629-esac
15630-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15631- (eval "$ac_try") 2>&5
15632- ac_status=$?
15633- echo "$as_me:$LINENO: \$? = $ac_status" >&5
15634- (exit $ac_status); }; }; then
15635- ac_cv_sizeof_pthread_t=`cat conftestval`
15636-else
15637- echo "$as_me: program exited with status $ac_status" >&5
15638-echo "$as_me: failed program was:" >&5
15639-sed 's/^/| /' conftest.$ac_ext >&5
15640-
15641-( exit $ac_status )
15642-ac_cv_sizeof_pthread_t=0
15643-fi
15644-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15645-fi
15646-
15647-
15648-
15649-fi
15650-
15651- { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
15652-echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6; }
15653-
15654-cat >>confdefs.h <<_ACEOF
15655-#define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
15656-_ACEOF
15657-
15658-fi
15659-CC="$ac_save_cc"
15660-
15661-{ echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
15662-echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6; }
15663-# Check whether --enable-toolbox-glue was given.
15664-if test "${enable_toolbox_glue+set}" = set; then
15665- enableval=$enable_toolbox_glue;
15666-fi
15667-
15668-
15669-if test -z "$enable_toolbox_glue"
15670-then
15671- case $ac_sys_system/$ac_sys_release in
15672- Darwin/*)
15673- enable_toolbox_glue="yes";;
15674- *)
15675- enable_toolbox_glue="no";;
15676- esac
15677-fi
15678-case "$enable_toolbox_glue" in
15679-yes)
15680- extra_machdep_objs="Python/mactoolboxglue.o"
15681- extra_undefs="-u _PyMac_Error"
15682-
15683-cat >>confdefs.h <<\_ACEOF
15684-#define USE_TOOLBOX_OBJECT_GLUE 1
15685-_ACEOF
15686-
15687- ;;
15688-*)
15689- extra_machdep_objs=""
15690- extra_undefs=""
15691- ;;
15692-esac
15693-{ echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
15694-echo "${ECHO_T}$enable_toolbox_glue" >&6; }
15695-
15696-
15697-
15698-case $ac_sys_system/$ac_sys_release in
15699- Darwin/[01567]\..*)
15700- OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
15701- ;;
15702- Darwin/*)
15703- OTHER_LIBTOOL_OPT=""
15704- ;;
15705-esac
15706-
15707-
15708-case $ac_sys_system/$ac_sys_release in
15709- Darwin/[01567]\..*)
15710- LIBTOOL_CRUFT="-framework System -lcc_dynamic"
15711- if test "${enable_universalsdk}"; then
15712- :
15713- else
15714- LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch`"
15715- fi
15716- LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
15717- LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
15718- Darwin/*)
15719- gcc_version=`gcc -v 2>&1 | grep version | cut -d\ -f3`
15720- if test ${gcc_version} '<' 4.0
15721- then
15722- LIBTOOL_CRUFT="-lcc_dynamic"
15723- else
15724- LIBTOOL_CRUFT=""
15725- fi
15726- LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch`"
15727- LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
15728- LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
15729-esac
15730-
15731-{ echo "$as_me:$LINENO: checking for --enable-framework" >&5
15732-echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6; }
15733-if test "$enable_framework"
15734-then
15735- BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
15736- # -F. is needed to allow linking to the framework while
15737- # in the build location.
15738-
15739-cat >>confdefs.h <<\_ACEOF
15740-#define WITH_NEXT_FRAMEWORK 1
15741-_ACEOF
15742-
15743- { echo "$as_me:$LINENO: result: yes" >&5
15744-echo "${ECHO_T}yes" >&6; }
15745-else
15746- { echo "$as_me:$LINENO: result: no" >&5
15747-echo "${ECHO_T}no" >&6; }
15748-fi
15749-
15750-{ echo "$as_me:$LINENO: checking for dyld" >&5
15751-echo $ECHO_N "checking for dyld... $ECHO_C" >&6; }
15752-case $ac_sys_system/$ac_sys_release in
15753- Darwin/*)
15754-
15755-cat >>confdefs.h <<\_ACEOF
15756-#define WITH_DYLD 1
15757-_ACEOF
15758-
15759- { echo "$as_me:$LINENO: result: always on for Darwin" >&5
15760-echo "${ECHO_T}always on for Darwin" >&6; }
15761- ;;
15762- *)
15763- { echo "$as_me:$LINENO: result: no" >&5
15764-echo "${ECHO_T}no" >&6; }
15765- ;;
15766-esac
15767-
15768-# Set info about shared libraries.
15769-
15770-
15771-
15772-
15773-
15774-# SO is the extension of shared libraries `(including the dot!)
15775-# -- usually .so, .sl on HP-UX, .dll on Cygwin
15776-{ echo "$as_me:$LINENO: checking SO" >&5
15777-echo $ECHO_N "checking SO... $ECHO_C" >&6; }
15778-if test -z "$SO"
15779-then
15780- case $ac_sys_system in
15781- hp*|HP*)
15782- case `uname -m` in
15783- ia64) SO=.so;;
15784- *) SO=.sl;;
15785- esac
15786- ;;
15787- CYGWIN*) SO=.dll;;
15788- *) SO=.so;;
15789- esac
15790-else
15791- # this might also be a termcap variable, see #610332
15792- echo
15793- echo '====================================================================='
15794- echo '+ +'
15795- echo '+ WARNING: You have set SO in your environment. +'
15796- echo '+ Do you really mean to change the extension for shared libraries? +'
15797- echo '+ Continuing in 10 seconds to let you to ponder. +'
15798- echo '+ +'
15799- echo '====================================================================='
15800- sleep 10
15801-fi
15802-{ echo "$as_me:$LINENO: result: $SO" >&5
15803-echo "${ECHO_T}$SO" >&6; }
15804-
15805-cat >>confdefs.h <<_ACEOF
15806-#define SHLIB_EXT "$SO"
15807-_ACEOF
15808-
15809-# LDSHARED is the ld *command* used to create shared library
15810-# -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
15811-# (Shared libraries in this instance are shared modules to be loaded into
15812-# Python, as opposed to building Python itself as a shared library.)
15813-{ echo "$as_me:$LINENO: checking LDSHARED" >&5
15814-echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6; }
15815-if test -z "$LDSHARED"
15816-then
15817- case $ac_sys_system/$ac_sys_release in
15818- AIX*)
15819- BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
15820- LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
15821- ;;
15822- BeOS*)
15823- BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
15824- LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
15825- ;;
15826- IRIX/5*) LDSHARED="ld -shared";;
15827- IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
15828- SunOS/5*)
15829- if test "$GCC" = "yes"
15830- then LDSHARED='$(CC) -shared'
15831- else LDSHARED='$(CC) -G';
15832- fi ;;
15833- hp*|HP*)
15834- if test "$GCC" = "yes"
15835- then LDSHARED='$(CC) -shared'
15836- else LDSHARED='ld -b';
15837- fi ;;
15838- OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
15839- Darwin/1.3*)
15840- LDSHARED='$(CC) $(LDFLAGS) -bundle'
15841- if test "$enable_framework" ; then
15842- # Link against the framework. All externals should be defined.
15843- BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
15844- LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
15845- else
15846- # No framework. Ignore undefined symbols, assuming they come from Python
15847- LDSHARED="$LDSHARED -undefined suppress"
15848- fi ;;
15849- Darwin/1.4*|Darwin/5.*|Darwin/6.*)
15850- LDSHARED='$(CC) $(LDFLAGS) -bundle'
15851- if test "$enable_framework" ; then
15852- # Link against the framework. All externals should be defined.
15853- BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
15854- LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
15855- else
15856- # No framework, use the Python app as bundle-loader
15857- BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
15858- LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
15859- fi ;;
15860- Darwin/*)
15861- # Use -undefined dynamic_lookup whenever possible (10.3 and later).
15862- # This allows an extension to be used in any Python
15863-
15864- if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2
15865- then
15866- if test "${enable_universalsdk}"; then
15867- LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
15868- fi
15869- LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
15870- BLDSHARED="$LDSHARED"
15871- else
15872- LDSHARED='$(CC) $(LDFLAGS) -bundle'
15873- if test "$enable_framework" ; then
15874- # Link against the framework. All externals should be defined.
15875- BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
15876- LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
15877- else
15878- # No framework, use the Python app as bundle-loader
15879- BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
15880- LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
15881- fi
15882- fi
15883- ;;
15884- Linux*|GNU*|QNX*) LDSHARED='$(CC) -shared';;
15885- BSD/OS*/4*) LDSHARED="gcc -shared";;
15886- FreeBSD*)
15887- if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
15888- then
15889- LDSHARED="$CC -shared ${LDFLAGS}"
15890- else
15891- LDSHARED="ld -Bshareable ${LDFLAGS}"
15892- fi;;
15893- OpenBSD*)
15894- if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
15895- then
15896- LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
15897- else
15898- case `uname -r` in
15899- [01].* | 2.[0-7] | 2.[0-7].*)
15900- LDSHARED="ld -Bshareable ${LDFLAGS}"
15901- ;;
15902- *)
15903- LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
15904- ;;
15905- esac
15906- fi;;
15907- NetBSD*|DragonFly*) LDSHARED="cc -shared ${LDFLAGS}";;
15908- OpenUNIX*|UnixWare*)
15909- if test "$GCC" = "yes"
15910- then LDSHARED='$(CC) -shared'
15911- else LDSHARED='$(CC) -G'
15912- fi;;
15913- SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';;
15914- Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
15915- CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";;
15916- atheos*) LDSHARED="gcc -shared";;
15917- *) LDSHARED="ld";;
15918- esac
15919-fi
15920-{ echo "$as_me:$LINENO: result: $LDSHARED" >&5
15921-echo "${ECHO_T}$LDSHARED" >&6; }
15922-BLDSHARED=${BLDSHARED-$LDSHARED}
15923-# CCSHARED are the C *flags* used to create objects to go into a shared
15924-# library (module) -- this is only needed for a few systems
15925-{ echo "$as_me:$LINENO: checking CCSHARED" >&5
15926-echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6; }
15927-if test -z "$CCSHARED"
15928-then
15929- case $ac_sys_system/$ac_sys_release in
15930- SunOS*) if test "$GCC" = yes;
15931- then CCSHARED="-fPIC";
15932- elif test `uname -p` = sparc;
15933- then CCSHARED="-xcode=pic32";
15934- else CCSHARED="-Kpic";
15935- fi;;
15936- hp*|HP*) if test "$GCC" = yes;
15937- then CCSHARED="-fPIC";
15938- else CCSHARED="+z";
15939- fi;;
15940- Linux*|GNU*) CCSHARED="-fPIC";;
15941- BSD/OS*/4*) CCSHARED="-fpic";;
15942- FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";;
15943- OpenUNIX*|UnixWare*)
15944- if test "$GCC" = "yes"
15945- then CCSHARED="-fPIC"
15946- else CCSHARED="-KPIC"
15947- fi;;
15948- SCO_SV*)
15949- if test "$GCC" = "yes"
15950- then CCSHARED="-fPIC"
15951- else CCSHARED="-Kpic -belf"
15952- fi;;
15953- Monterey*) CCSHARED="-G";;
15954- IRIX*/6*) case $CC in
15955- *gcc*) CCSHARED="-shared";;
15956- *) CCSHARED="";;
15957- esac;;
15958- atheos*) CCSHARED="-fPIC";;
15959- esac
15960-fi
15961-{ echo "$as_me:$LINENO: result: $CCSHARED" >&5
15962-echo "${ECHO_T}$CCSHARED" >&6; }
15963-# LINKFORSHARED are the flags passed to the $(CC) command that links
15964-# the python executable -- this is only needed for a few systems
15965-{ echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
15966-echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6; }
15967-if test -z "$LINKFORSHARED"
15968-then
15969- case $ac_sys_system/$ac_sys_release in
15970- AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';;
15971- hp*|HP*)
15972- LINKFORSHARED="-Wl,-E -Wl,+s";;
15973-# LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
15974- BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
15975- Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
15976- # -u libsys_s pulls in all symbols in libsys
15977- Darwin/*)
15978- # -u _PyMac_Error is needed to pull in the mac toolbox glue,
15979- # which is
15980- # not used by the core itself but which needs to be in the core so
15981- # that dynamically loaded extension modules have access to it.
15982- # -prebind is no longer used, because it actually seems to give a
15983- # slowdown in stead of a speedup, maybe due to the large number of
15984- # dynamic loads Python does.
15985-
15986- LINKFORSHARED="$extra_undefs"
15987- if test "$enable_framework"
15988- then
15989- LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
15990- fi
15991- LINKFORSHARED="$LINKFORSHARED";;
15992- OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
15993- SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
15994- ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
15995- FreeBSD*|NetBSD*|OpenBSD*|DragonFly*)
15996- if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
15997- then
15998- LINKFORSHARED="-Wl,--export-dynamic"
15999- fi;;
16000- SunOS/5*) case $CC in
16001- *gcc*)
16002- if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
16003- then
16004- LINKFORSHARED="-Xlinker --export-dynamic"
16005- fi;;
16006- esac;;
16007- CYGWIN*)
16008- if test $enable_shared = "no"
16009- then
16010- LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)'
16011- fi;;
16012- QNX*)
16013- # -Wl,-E causes the symbols to be added to the dynamic
16014- # symbol table so that they can be found when a module
16015- # is loaded. -N 2048K causes the stack size to be set
16016- # to 2048 kilobytes so that the stack doesn't overflow
16017- # when running test_compile.py.
16018- LINKFORSHARED='-Wl,-E -N 2048K';;
16019- esac
16020-fi
16021-{ echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
16022-echo "${ECHO_T}$LINKFORSHARED" >&6; }
16023-
16024-
16025-
16026-{ echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
16027-echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6; }
16028-if test ! "$LIBRARY" = "$LDLIBRARY"
16029-then
16030- case $ac_sys_system in
16031- CYGWIN*)
16032- # Cygwin needs CCSHARED when building extension DLLs
16033- # but not when building the interpreter DLL.
16034- CFLAGSFORSHARED='';;
16035- *)
16036- CFLAGSFORSHARED='$(CCSHARED)'
16037- esac
16038-fi
16039-{ echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
16040-echo "${ECHO_T}$CFLAGSFORSHARED" >&6; }
16041-
16042-# SHLIBS are libraries (except -lc and -lm) to link to the python shared
16043-# library (with --enable-shared).
16044-# For platforms on which shared libraries are not allowed to have unresolved
16045-# symbols, this must be set to $(LIBS) (expanded by make). We do this even
16046-# if it is not required, since it creates a dependency of the shared library
16047-# to LIBS. This, in turn, means that applications linking the shared libpython
16048-# don't need to link LIBS explicitly. The default should be only changed
16049-# on systems where this approach causes problems.
16050-
16051-{ echo "$as_me:$LINENO: checking SHLIBS" >&5
16052-echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6; }
16053-case "$ac_sys_system" in
16054- *)
16055- SHLIBS='$(LIBS)';;
16056-esac
16057-{ echo "$as_me:$LINENO: result: $SHLIBS" >&5
16058-echo "${ECHO_T}$SHLIBS" >&6; }
16059-
16060-
16061-# checks for libraries
16062-
16063-{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16064-echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16065-if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16066- echo $ECHO_N "(cached) $ECHO_C" >&6
16067-else
16068- ac_check_lib_save_LIBS=$LIBS
16069-LIBS="-ldl $LIBS"
16070-cat >conftest.$ac_ext <<_ACEOF
16071-/* confdefs.h. */
16072-_ACEOF
16073-cat confdefs.h >>conftest.$ac_ext
16074-cat >>conftest.$ac_ext <<_ACEOF
16075-/* end confdefs.h. */
16076-
16077-/* Override any GCC internal prototype to avoid an error.
16078- Use char because int might match the return type of a GCC
16079- builtin and then its argument prototype would still apply. */
16080-#ifdef __cplusplus
16081-extern "C"
16082-#endif
16083-char dlopen ();
16084-int
16085-main ()
16086-{
16087-return dlopen ();
16088- ;
16089- return 0;
16090-}
16091-_ACEOF
16092-rm -f conftest.$ac_objext conftest$ac_exeext
16093-if { (ac_try="$ac_link"
16094-case "(($ac_try" in
16095- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16096- *) ac_try_echo=$ac_try;;
16097-esac
16098-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16099- (eval "$ac_link") 2>conftest.er1
16100- ac_status=$?
16101- grep -v '^ *+' conftest.er1 >conftest.err
16102- rm -f conftest.er1
16103- cat conftest.err >&5
16104- echo "$as_me:$LINENO: \$? = $ac_status" >&5
16105- (exit $ac_status); } && {
16106- test -z "$ac_c_werror_flag" ||
16107- test ! -s conftest.err
16108- } && test -s conftest$ac_exeext &&
16109- $as_test_x conftest$ac_exeext; then
16110- ac_cv_lib_dl_dlopen=yes
16111-else
16112- echo "$as_me: failed program was:" >&5
16113-sed 's/^/| /' conftest.$ac_ext >&5
16114-
16115- ac_cv_lib_dl_dlopen=no
16116-fi
16117-
16118-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16119- conftest$ac_exeext conftest.$ac_ext
16120-LIBS=$ac_check_lib_save_LIBS
16121-fi
16122-{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16123-echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16124-if test $ac_cv_lib_dl_dlopen = yes; then
16125- cat >>confdefs.h <<_ACEOF
16126-#define HAVE_LIBDL 1
16127-_ACEOF
16128-
16129- LIBS="-ldl $LIBS"
16130-
16131-fi
16132- # Dynamic linking for SunOS/Solaris and SYSV
16133-
16134-{ echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16135-echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
16136-if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16137- echo $ECHO_N "(cached) $ECHO_C" >&6
16138-else
16139- ac_check_lib_save_LIBS=$LIBS
16140-LIBS="-ldld $LIBS"
16141-cat >conftest.$ac_ext <<_ACEOF
16142-/* confdefs.h. */
16143-_ACEOF
16144-cat confdefs.h >>conftest.$ac_ext
16145-cat >>conftest.$ac_ext <<_ACEOF
16146-/* end confdefs.h. */
16147-
16148-/* Override any GCC internal prototype to avoid an error.
16149- Use char because int might match the return type of a GCC
16150- builtin and then its argument prototype would still apply. */
16151-#ifdef __cplusplus
16152-extern "C"
16153-#endif
16154-char shl_load ();
16155-int
16156-main ()
16157-{
16158-return shl_load ();
16159- ;
16160- return 0;
16161-}
16162-_ACEOF
16163-rm -f conftest.$ac_objext conftest$ac_exeext
16164-if { (ac_try="$ac_link"
16165-case "(($ac_try" in
16166- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16167- *) ac_try_echo=$ac_try;;
16168-esac
16169-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16170- (eval "$ac_link") 2>conftest.er1
16171- ac_status=$?
16172- grep -v '^ *+' conftest.er1 >conftest.err
16173- rm -f conftest.er1
16174- cat conftest.err >&5
16175- echo "$as_me:$LINENO: \$? = $ac_status" >&5
16176- (exit $ac_status); } && {
16177- test -z "$ac_c_werror_flag" ||
16178- test ! -s conftest.err
16179- } && test -s conftest$ac_exeext &&
16180- $as_test_x conftest$ac_exeext; then
16181- ac_cv_lib_dld_shl_load=yes
16182-else
16183- echo "$as_me: failed program was:" >&5
16184-sed 's/^/| /' conftest.$ac_ext >&5
16185-
16186- ac_cv_lib_dld_shl_load=no
16187-fi
16188-
16189-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16190- conftest$ac_exeext conftest.$ac_ext
16191-LIBS=$ac_check_lib_save_LIBS
16192-fi
16193-{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16194-echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
16195-if test $ac_cv_lib_dld_shl_load = yes; then
16196- cat >>confdefs.h <<_ACEOF
16197-#define HAVE_LIBDLD 1
16198-_ACEOF
16199-
16200- LIBS="-ldld $LIBS"
16201-
16202-fi
16203- # Dynamic linking for HP-UX
16204-
16205-# only check for sem_ini if thread support is requested
16206-if test "$with_threads" = "yes" -o -z "$with_threads"; then
16207- { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
16208-echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
16209-if test "${ac_cv_search_sem_init+set}" = set; then
16210- echo $ECHO_N "(cached) $ECHO_C" >&6
16211-else
16212- ac_func_search_save_LIBS=$LIBS
16213-cat >conftest.$ac_ext <<_ACEOF
16214-/* confdefs.h. */
16215-_ACEOF
16216-cat confdefs.h >>conftest.$ac_ext
16217-cat >>conftest.$ac_ext <<_ACEOF
16218-/* end confdefs.h. */
16219-
16220-/* Override any GCC internal prototype to avoid an error.
16221- Use char because int might match the return type of a GCC
16222- builtin and then its argument prototype would still apply. */
16223-#ifdef __cplusplus
16224-extern "C"
16225-#endif
16226-char sem_init ();
16227-int
16228-main ()
16229-{
16230-return sem_init ();
16231- ;
16232- return 0;
16233-}
16234-_ACEOF
16235-for ac_lib in '' pthread rt posix4; do
16236- if test -z "$ac_lib"; then
16237- ac_res="none required"
16238- else
16239- ac_res=-l$ac_lib
16240- LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16241- fi
16242- rm -f conftest.$ac_objext conftest$ac_exeext
16243-if { (ac_try="$ac_link"
16244-case "(($ac_try" in
16245- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16246- *) ac_try_echo=$ac_try;;
16247-esac
16248-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16249- (eval "$ac_link") 2>conftest.er1
16250- ac_status=$?
16251- grep -v '^ *+' conftest.er1 >conftest.err
16252- rm -f conftest.er1
16253- cat conftest.err >&5
16254- echo "$as_me:$LINENO: \$? = $ac_status" >&5
16255- (exit $ac_status); } && {
16256- test -z "$ac_c_werror_flag" ||
16257- test ! -s conftest.err
16258- } && test -s conftest$ac_exeext &&
16259- $as_test_x conftest$ac_exeext; then
16260- ac_cv_search_sem_init=$ac_res
16261-else
16262- echo "$as_me: failed program was:" >&5
16263-sed 's/^/| /' conftest.$ac_ext >&5
16264-
16265-
16266-fi
16267-
16268-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16269- conftest$ac_exeext
16270- if test "${ac_cv_search_sem_init+set}" = set; then
16271- break
16272-fi
16273-done
16274-if test "${ac_cv_search_sem_init+set}" = set; then
16275- :
16276-else
16277- ac_cv_search_sem_init=no
16278-fi
16279-rm conftest.$ac_ext
16280-LIBS=$ac_func_search_save_LIBS
16281-fi
16282-{ echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
16283-echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
16284-ac_res=$ac_cv_search_sem_init
16285-if test "$ac_res" != no; then
16286- test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16287-
16288-fi
16289- # 'Real Time' functions on Solaris
16290- # posix4 on Solaris 2.6
16291- # pthread (first!) on Linux
16292-fi
16293-
16294-# check if we need libintl for locale functions
16295-{ echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
16296-echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6; }
16297-if test "${ac_cv_lib_intl_textdomain+set}" = set; then
16298- echo $ECHO_N "(cached) $ECHO_C" >&6
16299-else
16300- ac_check_lib_save_LIBS=$LIBS
16301-LIBS="-lintl $LIBS"
16302-cat >conftest.$ac_ext <<_ACEOF
16303-/* confdefs.h. */
16304-_ACEOF
16305-cat confdefs.h >>conftest.$ac_ext
16306-cat >>conftest.$ac_ext <<_ACEOF
16307-/* end confdefs.h. */
16308-
16309-/* Override any GCC internal prototype to avoid an error.
16310- Use char because int might match the return type of a GCC
16311- builtin and then its argument prototype would still apply. */
16312-#ifdef __cplusplus
16313-extern "C"
16314-#endif
16315-char textdomain ();
16316-int
16317-main ()
16318-{
16319-return textdomain ();
16320- ;
16321- return 0;
16322-}
16323-_ACEOF
16324-rm -f conftest.$ac_objext conftest$ac_exeext
16325-if { (ac_try="$ac_link"
16326-case "(($ac_try" in
16327- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16328- *) ac_try_echo=$ac_try;;
16329-esac
16330-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16331- (eval "$ac_link") 2>conftest.er1
16332- ac_status=$?
16333- grep -v '^ *+' conftest.er1 >conftest.err
16334- rm -f conftest.er1
16335- cat conftest.err >&5
16336- echo "$as_me:$LINENO: \$? = $ac_status" >&5
16337- (exit $ac_status); } && {
16338- test -z "$ac_c_werror_flag" ||
16339- test ! -s conftest.err
16340- } && test -s conftest$ac_exeext &&
16341- $as_test_x conftest$ac_exeext; then
16342- ac_cv_lib_intl_textdomain=yes
16343-else
16344- echo "$as_me: failed program was:" >&5
16345-sed 's/^/| /' conftest.$ac_ext >&5
16346-
16347- ac_cv_lib_intl_textdomain=no
16348-fi
16349-
16350-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16351- conftest$ac_exeext conftest.$ac_ext
16352-LIBS=$ac_check_lib_save_LIBS
16353-fi
16354-{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
16355-echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6; }
16356-if test $ac_cv_lib_intl_textdomain = yes; then
16357-
16358-cat >>confdefs.h <<\_ACEOF
16359-#define WITH_LIBINTL 1
16360-_ACEOF
16361-
16362-fi
16363-
16364-
16365-# checks for system dependent C++ extensions support
16366-case "$ac_sys_system" in
16367- AIX*) { echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
16368-echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6; }
16369- cat >conftest.$ac_ext <<_ACEOF
16370-/* confdefs.h. */
16371-_ACEOF
16372-cat confdefs.h >>conftest.$ac_ext
16373-cat >>conftest.$ac_ext <<_ACEOF
16374-/* end confdefs.h. */
16375-#include "/usr/lpp/xlC/include/load.h"
16376-int
16377-main ()
16378-{
16379-loadAndInit("", 0, "")
16380- ;
16381- return 0;
16382-}
16383-_ACEOF
16384-rm -f conftest.$ac_objext conftest$ac_exeext
16385-if { (ac_try="$ac_link"
16386-case "(($ac_try" in
16387- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16388- *) ac_try_echo=$ac_try;;
16389-esac
16390-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16391- (eval "$ac_link") 2>conftest.er1
16392- ac_status=$?
16393- grep -v '^ *+' conftest.er1 >conftest.err
16394- rm -f conftest.er1
16395- cat conftest.err >&5
16396- echo "$as_me:$LINENO: \$? = $ac_status" >&5
16397- (exit $ac_status); } && {
16398- test -z "$ac_c_werror_flag" ||
16399- test ! -s conftest.err
16400- } && test -s conftest$ac_exeext &&
16401- $as_test_x conftest$ac_exeext; then
16402-
16403-cat >>confdefs.h <<\_ACEOF
16404-#define AIX_GENUINE_CPLUSPLUS 1
16405-_ACEOF
16406-
16407- { echo "$as_me:$LINENO: result: yes" >&5
16408-echo "${ECHO_T}yes" >&6; }
16409-else
16410- echo "$as_me: failed program was:" >&5
16411-sed 's/^/| /' conftest.$ac_ext >&5
16412-
16413- { echo "$as_me:$LINENO: result: no" >&5
16414-echo "${ECHO_T}no" >&6; }
16415-fi
16416-
16417-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16418- conftest$ac_exeext conftest.$ac_ext;;
16419- *) ;;
16420-esac
16421-
16422-# Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
16423-# BeOS' sockets are stashed in libnet.
16424-{ echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
16425-echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6; }
16426-if test "${ac_cv_lib_nsl_t_open+set}" = set; then
16427- echo $ECHO_N "(cached) $ECHO_C" >&6
16428-else
16429- ac_check_lib_save_LIBS=$LIBS
16430-LIBS="-lnsl $LIBS"
16431-cat >conftest.$ac_ext <<_ACEOF
16432-/* confdefs.h. */
16433-_ACEOF
16434-cat confdefs.h >>conftest.$ac_ext
16435-cat >>conftest.$ac_ext <<_ACEOF
16436-/* end confdefs.h. */
16437-
16438-/* Override any GCC internal prototype to avoid an error.
16439- Use char because int might match the return type of a GCC
16440- builtin and then its argument prototype would still apply. */
16441-#ifdef __cplusplus
16442-extern "C"
16443-#endif
16444-char t_open ();
16445-int
16446-main ()
16447-{
16448-return t_open ();
16449- ;
16450- return 0;
16451-}
16452-_ACEOF
16453-rm -f conftest.$ac_objext conftest$ac_exeext
16454-if { (ac_try="$ac_link"
16455-case "(($ac_try" in
16456- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16457- *) ac_try_echo=$ac_try;;
16458-esac
16459-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16460- (eval "$ac_link") 2>conftest.er1
16461- ac_status=$?
16462- grep -v '^ *+' conftest.er1 >conftest.err
16463- rm -f conftest.er1
16464- cat conftest.err >&5
16465- echo "$as_me:$LINENO: \$? = $ac_status" >&5
16466- (exit $ac_status); } && {
16467- test -z "$ac_c_werror_flag" ||
16468- test ! -s conftest.err
16469- } && test -s conftest$ac_exeext &&
16470- $as_test_x conftest$ac_exeext; then
16471- ac_cv_lib_nsl_t_open=yes
16472-else
16473- echo "$as_me: failed program was:" >&5
16474-sed 's/^/| /' conftest.$ac_ext >&5
16475-
16476- ac_cv_lib_nsl_t_open=no
16477-fi
16478-
16479-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16480- conftest$ac_exeext conftest.$ac_ext
16481-LIBS=$ac_check_lib_save_LIBS
16482-fi
16483-{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
16484-echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6; }
16485-if test $ac_cv_lib_nsl_t_open = yes; then
16486- LIBS="-lnsl $LIBS"
16487-fi
16488- # SVR4
16489-{ echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
16490-echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
16491-if test "${ac_cv_lib_socket_socket+set}" = set; then
16492- echo $ECHO_N "(cached) $ECHO_C" >&6
16493-else
16494- ac_check_lib_save_LIBS=$LIBS
16495-LIBS="-lsocket $LIBS $LIBS"
16496-cat >conftest.$ac_ext <<_ACEOF
16497-/* confdefs.h. */
16498-_ACEOF
16499-cat confdefs.h >>conftest.$ac_ext
16500-cat >>conftest.$ac_ext <<_ACEOF
16501-/* end confdefs.h. */
16502-
16503-/* Override any GCC internal prototype to avoid an error.
16504- Use char because int might match the return type of a GCC
16505- builtin and then its argument prototype would still apply. */
16506-#ifdef __cplusplus
16507-extern "C"
16508-#endif
16509-char socket ();
16510-int
16511-main ()
16512-{
16513-return socket ();
16514- ;
16515- return 0;
16516-}
16517-_ACEOF
16518-rm -f conftest.$ac_objext conftest$ac_exeext
16519-if { (ac_try="$ac_link"
16520-case "(($ac_try" in
16521- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16522- *) ac_try_echo=$ac_try;;
16523-esac
16524-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16525- (eval "$ac_link") 2>conftest.er1
16526- ac_status=$?
16527- grep -v '^ *+' conftest.er1 >conftest.err
16528- rm -f conftest.er1
16529- cat conftest.err >&5
16530- echo "$as_me:$LINENO: \$? = $ac_status" >&5
16531- (exit $ac_status); } && {
16532- test -z "$ac_c_werror_flag" ||
16533- test ! -s conftest.err
16534- } && test -s conftest$ac_exeext &&
16535- $as_test_x conftest$ac_exeext; then
16536- ac_cv_lib_socket_socket=yes
16537-else
16538- echo "$as_me: failed program was:" >&5
16539-sed 's/^/| /' conftest.$ac_ext >&5
16540-
16541- ac_cv_lib_socket_socket=no
16542-fi
16543-
16544-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16545- conftest$ac_exeext conftest.$ac_ext
16546-LIBS=$ac_check_lib_save_LIBS
16547-fi
16548-{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
16549-echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
16550-if test $ac_cv_lib_socket_socket = yes; then
16551- LIBS="-lsocket $LIBS"
16552-fi
16553- # SVR4 sockets
16554-
16555-case "$ac_sys_system" in
16556-BeOS*)
16557-{ echo "$as_me:$LINENO: checking for socket in -lnet" >&5
16558-echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6; }
16559-if test "${ac_cv_lib_net_socket+set}" = set; then
16560- echo $ECHO_N "(cached) $ECHO_C" >&6
16561-else
16562- ac_check_lib_save_LIBS=$LIBS
16563-LIBS="-lnet $LIBS $LIBS"
16564-cat >conftest.$ac_ext <<_ACEOF
16565-/* confdefs.h. */
16566-_ACEOF
16567-cat confdefs.h >>conftest.$ac_ext
16568-cat >>conftest.$ac_ext <<_ACEOF
16569-/* end confdefs.h. */
16570-
16571-/* Override any GCC internal prototype to avoid an error.
16572- Use char because int might match the return type of a GCC
16573- builtin and then its argument prototype would still apply. */
16574-#ifdef __cplusplus
16575-extern "C"
16576-#endif
16577-char socket ();
16578-int
16579-main ()
16580-{
16581-return socket ();
16582- ;
16583- return 0;
16584-}
16585-_ACEOF
16586-rm -f conftest.$ac_objext conftest$ac_exeext
16587-if { (ac_try="$ac_link"
16588-case "(($ac_try" in
16589- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16590- *) ac_try_echo=$ac_try;;
16591-esac
16592-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16593- (eval "$ac_link") 2>conftest.er1
16594- ac_status=$?
16595- grep -v '^ *+' conftest.er1 >conftest.err
16596- rm -f conftest.er1
16597- cat conftest.err >&5
16598- echo "$as_me:$LINENO: \$? = $ac_status" >&5
16599- (exit $ac_status); } && {
16600- test -z "$ac_c_werror_flag" ||
16601- test ! -s conftest.err
16602- } && test -s conftest$ac_exeext &&
16603- $as_test_x conftest$ac_exeext; then
16604- ac_cv_lib_net_socket=yes
16605-else
16606- echo "$as_me: failed program was:" >&5
16607-sed 's/^/| /' conftest.$ac_ext >&5
16608-
16609- ac_cv_lib_net_socket=no
16610-fi
16611-
16612-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16613- conftest$ac_exeext conftest.$ac_ext
16614-LIBS=$ac_check_lib_save_LIBS
16615-fi
16616-{ echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
16617-echo "${ECHO_T}$ac_cv_lib_net_socket" >&6; }
16618-if test $ac_cv_lib_net_socket = yes; then
16619- LIBS="-lnet $LIBS"
16620-fi
16621- # BeOS
16622-;;
16623-esac
16624-
16625-{ echo "$as_me:$LINENO: checking for --with-libs" >&5
16626-echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6; }
16627-
16628-# Check whether --with-libs was given.
16629-if test "${with_libs+set}" = set; then
16630- withval=$with_libs;
16631-{ echo "$as_me:$LINENO: result: $withval" >&5
16632-echo "${ECHO_T}$withval" >&6; }
16633-LIBS="$withval $LIBS"
16634-
16635-else
16636- { echo "$as_me:$LINENO: result: no" >&5
16637-echo "${ECHO_T}no" >&6; }
16638-fi
16639-
16640-
16641-# Check for use of the system libffi library
16642-{ echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
16643-echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6; }
16644-
16645-# Check whether --with-system_ffi was given.
16646-if test "${with_system_ffi+set}" = set; then
16647- withval=$with_system_ffi;
16648-fi
16649-
16650-
16651-{ echo "$as_me:$LINENO: result: $with_system_ffi" >&5
16652-echo "${ECHO_T}$with_system_ffi" >&6; }
16653-
16654-# Determine if signalmodule should be used.
16655-
16656-
16657-{ echo "$as_me:$LINENO: checking for --with-signal-module" >&5
16658-echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6; }
16659-
16660-# Check whether --with-signal-module was given.
16661-if test "${with_signal_module+set}" = set; then
16662- withval=$with_signal_module;
16663-fi
16664-
16665-
16666-if test -z "$with_signal_module"
16667-then with_signal_module="yes"
16668-fi
16669-{ echo "$as_me:$LINENO: result: $with_signal_module" >&5
16670-echo "${ECHO_T}$with_signal_module" >&6; }
16671-
16672-if test "${with_signal_module}" = "yes"; then
16673- USE_SIGNAL_MODULE=""
16674- SIGNAL_OBJS=""
16675-else
16676- USE_SIGNAL_MODULE="#"
16677- SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o"
16678-fi
16679-
16680-# This is used to generate Setup.config
16681-
16682-USE_THREAD_MODULE=""
16683-
16684-{ echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
16685-echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6; }
16686-
16687-
16688-# Check whether --with-dec-threads was given.
16689-if test "${with_dec_threads+set}" = set; then
16690- withval=$with_dec_threads;
16691-{ echo "$as_me:$LINENO: result: $withval" >&5
16692-echo "${ECHO_T}$withval" >&6; }
16693-LDLAST=-threads
16694-if test "${with_thread+set}" != set; then
16695- with_thread="$withval";
16696-fi
16697-else
16698- { echo "$as_me:$LINENO: result: no" >&5
16699-echo "${ECHO_T}no" >&6; }
16700-fi
16701-
16702-
16703-# Templates for things AC_DEFINEd more than once.
16704-# For a single AC_DEFINE, no template is needed.
16705-
16706-
16707-
16708-
16709-
16710-
16711-
16712-{ echo "$as_me:$LINENO: checking for --with-threads" >&5
16713-echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6; }
16714-
16715-# Check whether --with-threads was given.
16716-if test "${with_threads+set}" = set; then
16717- withval=$with_threads;
16718-fi
16719-
16720-
16721-# --with-thread is deprecated, but check for it anyway
16722-
16723-# Check whether --with-thread was given.
16724-if test "${with_thread+set}" = set; then
16725- withval=$with_thread; with_threads=$with_thread
16726-fi
16727-
16728-
16729-if test -z "$with_threads"
16730-then with_threads="yes"
16731-fi
16732-{ echo "$as_me:$LINENO: result: $with_threads" >&5
16733-echo "${ECHO_T}$with_threads" >&6; }
16734-
16735-
16736-if test "$with_threads" = "no"
16737-then
16738- USE_THREAD_MODULE="#"
16739-elif test "$ac_cv_pthread_is_default" = yes
16740-then
16741- cat >>confdefs.h <<\_ACEOF
16742-#define WITH_THREAD 1
16743-_ACEOF
16744-
16745- # Defining _REENTRANT on system with POSIX threads should not hurt.
16746- cat >>confdefs.h <<\_ACEOF
16747-#define _REENTRANT 1
16748-_ACEOF
16749-
16750- posix_threads=yes
16751- THREADOBJ="Python/thread.o"
16752-elif test "$ac_cv_kpthread" = "yes"
16753-then
16754- CC="$CC -Kpthread"
16755- if test "$ac_cv_cxx_thread" = "yes"; then
16756- CXX="$CXX -Kpthread"
16757- fi
16758- cat >>confdefs.h <<\_ACEOF
16759-#define WITH_THREAD 1
16760-_ACEOF
16761-
16762- posix_threads=yes
16763- THREADOBJ="Python/thread.o"
16764-elif test "$ac_cv_kthread" = "yes"
16765-then
16766- CC="$CC -Kthread"
16767- if test "$ac_cv_cxx_thread" = "yes"; then
16768- CXX="$CXX -Kthread"
16769- fi
16770- cat >>confdefs.h <<\_ACEOF
16771-#define WITH_THREAD 1
16772-_ACEOF
16773-
16774- posix_threads=yes
16775- THREADOBJ="Python/thread.o"
16776-elif test "$ac_cv_pthread" = "yes"
16777-then
16778- CC="$CC -pthread"
16779- if test "$ac_cv_cxx_thread" = "yes"; then
16780- CXX="$CXX -pthread"
16781- fi
16782- cat >>confdefs.h <<\_ACEOF
16783-#define WITH_THREAD 1
16784-_ACEOF
16785-
16786- posix_threads=yes
16787- THREADOBJ="Python/thread.o"
16788-else
16789- if test ! -z "$with_threads" -a -d "$with_threads"
16790- then LDFLAGS="$LDFLAGS -L$with_threads"
16791- fi
16792- if test ! -z "$withval" -a -d "$withval"
16793- then LDFLAGS="$LDFLAGS -L$withval"
16794- fi
16795-
16796- # According to the POSIX spec, a pthreads implementation must
16797- # define _POSIX_THREADS in unistd.h. Some apparently don't
16798- # (e.g. gnu pth with pthread emulation)
16799- { echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
16800-echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6; }
16801- cat >conftest.$ac_ext <<_ACEOF
16802-/* confdefs.h. */
16803-_ACEOF
16804-cat confdefs.h >>conftest.$ac_ext
16805-cat >>conftest.$ac_ext <<_ACEOF
16806-/* end confdefs.h. */
16807-
16808-#include <unistd.h>
16809-#ifdef _POSIX_THREADS
16810-yes
16811-#endif
16812-
16813-_ACEOF
16814-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16815- $EGREP "yes" >/dev/null 2>&1; then
16816- unistd_defines_pthreads=yes
16817-else
16818- unistd_defines_pthreads=no
16819-fi
16820-rm -f conftest*
16821-
16822- { echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
16823-echo "${ECHO_T}$unistd_defines_pthreads" >&6; }
16824-
16825- cat >>confdefs.h <<\_ACEOF
16826-#define _REENTRANT 1
16827-_ACEOF
16828-
16829- if test "${ac_cv_header_cthreads_h+set}" = set; then
16830- { echo "$as_me:$LINENO: checking for cthreads.h" >&5
16831-echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
16832-if test "${ac_cv_header_cthreads_h+set}" = set; then
16833- echo $ECHO_N "(cached) $ECHO_C" >&6
16834-fi
16835-{ echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
16836-echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
16837-else
16838- # Is the header compilable?
16839-{ echo "$as_me:$LINENO: checking cthreads.h usability" >&5
16840-echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6; }
16841-cat >conftest.$ac_ext <<_ACEOF
16842-/* confdefs.h. */
16843-_ACEOF
16844-cat confdefs.h >>conftest.$ac_ext
16845-cat >>conftest.$ac_ext <<_ACEOF
16846-/* end confdefs.h. */
16847-$ac_includes_default
16848-#include <cthreads.h>
16849-_ACEOF
16850-rm -f conftest.$ac_objext
16851-if { (ac_try="$ac_compile"
16852-case "(($ac_try" in
16853- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16854- *) ac_try_echo=$ac_try;;
16855-esac
16856-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16857- (eval "$ac_compile") 2>conftest.er1
16858- ac_status=$?
16859- grep -v '^ *+' conftest.er1 >conftest.err
16860- rm -f conftest.er1
16861- cat conftest.err >&5
16862- echo "$as_me:$LINENO: \$? = $ac_status" >&5
16863- (exit $ac_status); } && {
16864- test -z "$ac_c_werror_flag" ||
16865- test ! -s conftest.err
16866- } && test -s conftest.$ac_objext; then
16867- ac_header_compiler=yes
16868-else
16869- echo "$as_me: failed program was:" >&5
16870-sed 's/^/| /' conftest.$ac_ext >&5
16871-
16872- ac_header_compiler=no
16873-fi
16874-
16875-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16876-{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16877-echo "${ECHO_T}$ac_header_compiler" >&6; }
16878-
16879-# Is the header present?
16880-{ echo "$as_me:$LINENO: checking cthreads.h presence" >&5
16881-echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6; }
16882-cat >conftest.$ac_ext <<_ACEOF
16883-/* confdefs.h. */
16884-_ACEOF
16885-cat confdefs.h >>conftest.$ac_ext
16886-cat >>conftest.$ac_ext <<_ACEOF
16887-/* end confdefs.h. */
16888-#include <cthreads.h>
16889-_ACEOF
16890-if { (ac_try="$ac_cpp conftest.$ac_ext"
16891-case "(($ac_try" in
16892- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16893- *) ac_try_echo=$ac_try;;
16894-esac
16895-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16896- (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16897- ac_status=$?
16898- grep -v '^ *+' conftest.er1 >conftest.err
16899- rm -f conftest.er1
16900- cat conftest.err >&5
16901- echo "$as_me:$LINENO: \$? = $ac_status" >&5
16902- (exit $ac_status); } >/dev/null && {
16903- test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16904- test ! -s conftest.err
16905- }; then
16906- ac_header_preproc=yes
16907-else
16908- echo "$as_me: failed program was:" >&5
16909-sed 's/^/| /' conftest.$ac_ext >&5
16910-
16911- ac_header_preproc=no
16912-fi
16913-
16914-rm -f conftest.err conftest.$ac_ext
16915-{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16916-echo "${ECHO_T}$ac_header_preproc" >&6; }
16917-
16918-# So? What about this header?
16919-case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16920- yes:no: )
16921- { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
16922-echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16923- { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
16924-echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
16925- ac_header_preproc=yes
16926- ;;
16927- no:yes:* )
16928- { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
16929-echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
16930- { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
16931-echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
16932- { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
16933-echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
16934- { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
16935-echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
16936- { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
16937-echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
16938- { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
16939-echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
16940- ( cat <<\_ASBOX
16941-## ------------------------------------------------ ##
16942-## Report this to http://www.python.org/python-bugs ##
16943-## ------------------------------------------------ ##
16944-_ASBOX
16945- ) | sed "s/^/$as_me: WARNING: /" >&2
16946- ;;
16947-esac
16948-{ echo "$as_me:$LINENO: checking for cthreads.h" >&5
16949-echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
16950-if test "${ac_cv_header_cthreads_h+set}" = set; then
16951- echo $ECHO_N "(cached) $ECHO_C" >&6
16952-else
16953- ac_cv_header_cthreads_h=$ac_header_preproc
16954-fi
16955-{ echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
16956-echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
16957-
16958-fi
16959-if test $ac_cv_header_cthreads_h = yes; then
16960- cat >>confdefs.h <<\_ACEOF
16961-#define WITH_THREAD 1
16962-_ACEOF
16963-
16964- cat >>confdefs.h <<\_ACEOF
16965-#define C_THREADS 1
16966-_ACEOF
16967-
16968-
16969-cat >>confdefs.h <<\_ACEOF
16970-#define HURD_C_THREADS 1
16971-_ACEOF
16972-
16973- LIBS="$LIBS -lthreads"
16974- THREADOBJ="Python/thread.o"
16975-else
16976-
16977- if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
16978- { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
16979-echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
16980-if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
16981- echo $ECHO_N "(cached) $ECHO_C" >&6
16982-fi
16983-{ echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
16984-echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
16985-else
16986- # Is the header compilable?
16987-{ echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
16988-echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6; }
16989-cat >conftest.$ac_ext <<_ACEOF
16990-/* confdefs.h. */
16991-_ACEOF
16992-cat confdefs.h >>conftest.$ac_ext
16993-cat >>conftest.$ac_ext <<_ACEOF
16994-/* end confdefs.h. */
16995-$ac_includes_default
16996-#include <mach/cthreads.h>
16997-_ACEOF
16998-rm -f conftest.$ac_objext
16999-if { (ac_try="$ac_compile"
17000-case "(($ac_try" in
17001- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17002- *) ac_try_echo=$ac_try;;
17003-esac
17004-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17005- (eval "$ac_compile") 2>conftest.er1
17006- ac_status=$?
17007- grep -v '^ *+' conftest.er1 >conftest.err
17008- rm -f conftest.er1
17009- cat conftest.err >&5
17010- echo "$as_me:$LINENO: \$? = $ac_status" >&5
17011- (exit $ac_status); } && {
17012- test -z "$ac_c_werror_flag" ||
17013- test ! -s conftest.err
17014- } && test -s conftest.$ac_objext; then
17015- ac_header_compiler=yes
17016-else
17017- echo "$as_me: failed program was:" >&5
17018-sed 's/^/| /' conftest.$ac_ext >&5
17019-
17020- ac_header_compiler=no
17021-fi
17022-
17023-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17024-{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17025-echo "${ECHO_T}$ac_header_compiler" >&6; }
17026-
17027-# Is the header present?
17028-{ echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
17029-echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6; }
17030-cat >conftest.$ac_ext <<_ACEOF
17031-/* confdefs.h. */
17032-_ACEOF
17033-cat confdefs.h >>conftest.$ac_ext
17034-cat >>conftest.$ac_ext <<_ACEOF
17035-/* end confdefs.h. */
17036-#include <mach/cthreads.h>
17037-_ACEOF
17038-if { (ac_try="$ac_cpp conftest.$ac_ext"
17039-case "(($ac_try" in
17040- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17041- *) ac_try_echo=$ac_try;;
17042-esac
17043-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17044- (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17045- ac_status=$?
17046- grep -v '^ *+' conftest.er1 >conftest.err
17047- rm -f conftest.er1
17048- cat conftest.err >&5
17049- echo "$as_me:$LINENO: \$? = $ac_status" >&5
17050- (exit $ac_status); } >/dev/null && {
17051- test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17052- test ! -s conftest.err
17053- }; then
17054- ac_header_preproc=yes
17055-else
17056- echo "$as_me: failed program was:" >&5
17057-sed 's/^/| /' conftest.$ac_ext >&5
17058-
17059- ac_header_preproc=no
17060-fi
17061-
17062-rm -f conftest.err conftest.$ac_ext
17063-{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17064-echo "${ECHO_T}$ac_header_preproc" >&6; }
17065-
17066-# So? What about this header?
17067-case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17068- yes:no: )
17069- { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
17070-echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17071- { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
17072-echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
17073- ac_header_preproc=yes
17074- ;;
17075- no:yes:* )
17076- { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
17077-echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
17078- { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
17079-echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
17080- { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
17081-echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
17082- { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
17083-echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
17084- { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
17085-echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
17086- { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
17087-echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
17088- ( cat <<\_ASBOX
17089-## ------------------------------------------------ ##
17090-## Report this to http://www.python.org/python-bugs ##
17091-## ------------------------------------------------ ##
17092-_ASBOX
17093- ) | sed "s/^/$as_me: WARNING: /" >&2
17094- ;;
17095-esac
17096-{ echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
17097-echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
17098-if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
17099- echo $ECHO_N "(cached) $ECHO_C" >&6
17100-else
17101- ac_cv_header_mach_cthreads_h=$ac_header_preproc
17102-fi
17103-{ echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
17104-echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
17105-
17106-fi
17107-if test $ac_cv_header_mach_cthreads_h = yes; then
17108- cat >>confdefs.h <<\_ACEOF
17109-#define WITH_THREAD 1
17110-_ACEOF
17111-
17112- cat >>confdefs.h <<\_ACEOF
17113-#define C_THREADS 1
17114-_ACEOF
17115-
17116-
17117-cat >>confdefs.h <<\_ACEOF
17118-#define MACH_C_THREADS 1
17119-_ACEOF
17120-
17121- THREADOBJ="Python/thread.o"
17122-else
17123-
17124- { echo "$as_me:$LINENO: checking for --with-pth" >&5
17125-echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6; }
17126-
17127-# Check whether --with-pth was given.
17128-if test "${with_pth+set}" = set; then
17129- withval=$with_pth; { echo "$as_me:$LINENO: result: $withval" >&5
17130-echo "${ECHO_T}$withval" >&6; }
17131- cat >>confdefs.h <<\_ACEOF
17132-#define WITH_THREAD 1
17133-_ACEOF
17134-
17135-
17136-cat >>confdefs.h <<\_ACEOF
17137-#define HAVE_PTH 1
17138-_ACEOF
17139-
17140- LIBS="-lpth $LIBS"
17141- THREADOBJ="Python/thread.o"
17142-else
17143- { echo "$as_me:$LINENO: result: no" >&5
17144-echo "${ECHO_T}no" >&6; }
17145-
17146- # Just looking for pthread_create in libpthread is not enough:
17147- # on HP/UX, pthread.h renames pthread_create to a different symbol name.
17148- # So we really have to include pthread.h, and then link.
17149- _libs=$LIBS
17150- LIBS="$LIBS -lpthread"
17151- { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
17152-echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
17153- cat >conftest.$ac_ext <<_ACEOF
17154-/* confdefs.h. */
17155-_ACEOF
17156-cat confdefs.h >>conftest.$ac_ext
17157-cat >>conftest.$ac_ext <<_ACEOF
17158-/* end confdefs.h. */
17159-#include <pthread.h>
17160-
17161-void * start_routine (void *arg) { exit (0); }
17162-int
17163-main ()
17164-{
17165-
17166-pthread_create (NULL, NULL, start_routine, NULL)
17167- ;
17168- return 0;
17169-}
17170-_ACEOF
17171-rm -f conftest.$ac_objext conftest$ac_exeext
17172-if { (ac_try="$ac_link"
17173-case "(($ac_try" in
17174- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17175- *) ac_try_echo=$ac_try;;
17176-esac
17177-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17178- (eval "$ac_link") 2>conftest.er1
17179- ac_status=$?
17180- grep -v '^ *+' conftest.er1 >conftest.err
17181- rm -f conftest.er1
17182- cat conftest.err >&5
17183- echo "$as_me:$LINENO: \$? = $ac_status" >&5
17184- (exit $ac_status); } && {
17185- test -z "$ac_c_werror_flag" ||
17186- test ! -s conftest.err
17187- } && test -s conftest$ac_exeext &&
17188- $as_test_x conftest$ac_exeext; then
17189-
17190- { echo "$as_me:$LINENO: result: yes" >&5
17191-echo "${ECHO_T}yes" >&6; }
17192- cat >>confdefs.h <<\_ACEOF
17193-#define WITH_THREAD 1
17194-_ACEOF
17195-
17196- posix_threads=yes
17197- THREADOBJ="Python/thread.o"
17198-else
17199- echo "$as_me: failed program was:" >&5
17200-sed 's/^/| /' conftest.$ac_ext >&5
17201-
17202-
17203- LIBS=$_libs
17204- { echo "$as_me:$LINENO: checking for pthread_detach" >&5
17205-echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6; }
17206-if test "${ac_cv_func_pthread_detach+set}" = set; then
17207- echo $ECHO_N "(cached) $ECHO_C" >&6
17208-else
17209- cat >conftest.$ac_ext <<_ACEOF
17210-/* confdefs.h. */
17211-_ACEOF
17212-cat confdefs.h >>conftest.$ac_ext
17213-cat >>conftest.$ac_ext <<_ACEOF
17214-/* end confdefs.h. */
17215-/* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
17216- For example, HP-UX 11i <limits.h> declares gettimeofday. */
17217-#define pthread_detach innocuous_pthread_detach
17218-
17219-/* System header to define __stub macros and hopefully few prototypes,
17220- which can conflict with char pthread_detach (); below.
17221- Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17222- <limits.h> exists even on freestanding compilers. */
17223-
17224-#ifdef __STDC__
17225-# include <limits.h>
17226-#else
17227-# include <assert.h>
17228-#endif
17229-
17230-#undef pthread_detach
17231-
17232-/* Override any GCC internal prototype to avoid an error.
17233- Use char because int might match the return type of a GCC
17234- builtin and then its argument prototype would still apply. */
17235-#ifdef __cplusplus
17236-extern "C"
17237-#endif
17238-char pthread_detach ();
17239-/* The GNU C library defines this for functions which it implements
17240- to always fail with ENOSYS. Some functions are actually named
17241- something starting with __ and the normal name is an alias. */
17242-#if defined __stub_pthread_detach || defined __stub___pthread_detach
17243-choke me
17244-#endif
17245-
17246-int
17247-main ()
17248-{
17249-return pthread_detach ();
17250- ;
17251- return 0;
17252-}
17253-_ACEOF
17254-rm -f conftest.$ac_objext conftest$ac_exeext
17255-if { (ac_try="$ac_link"
17256-case "(($ac_try" in
17257- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17258- *) ac_try_echo=$ac_try;;
17259-esac
17260-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17261- (eval "$ac_link") 2>conftest.er1
17262- ac_status=$?
17263- grep -v '^ *+' conftest.er1 >conftest.err
17264- rm -f conftest.er1
17265- cat conftest.err >&5
17266- echo "$as_me:$LINENO: \$? = $ac_status" >&5
17267- (exit $ac_status); } && {
17268- test -z "$ac_c_werror_flag" ||
17269- test ! -s conftest.err
17270- } && test -s conftest$ac_exeext &&
17271- $as_test_x conftest$ac_exeext; then
17272- ac_cv_func_pthread_detach=yes
17273-else
17274- echo "$as_me: failed program was:" >&5
17275-sed 's/^/| /' conftest.$ac_ext >&5
17276-
17277- ac_cv_func_pthread_detach=no
17278-fi
17279-
17280-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17281- conftest$ac_exeext conftest.$ac_ext
17282-fi
17283-{ echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
17284-echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6; }
17285-if test $ac_cv_func_pthread_detach = yes; then
17286- cat >>confdefs.h <<\_ACEOF
17287-#define WITH_THREAD 1
17288-_ACEOF
17289-
17290- posix_threads=yes
17291- THREADOBJ="Python/thread.o"
17292-else
17293-
17294- if test "${ac_cv_header_atheos_threads_h+set}" = set; then
17295- { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
17296-echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
17297-if test "${ac_cv_header_atheos_threads_h+set}" = set; then
17298- echo $ECHO_N "(cached) $ECHO_C" >&6
17299-fi
17300-{ echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
17301-echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
17302-else
17303- # Is the header compilable?
17304-{ echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
17305-echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6; }
17306-cat >conftest.$ac_ext <<_ACEOF
17307-/* confdefs.h. */
17308-_ACEOF
17309-cat confdefs.h >>conftest.$ac_ext
17310-cat >>conftest.$ac_ext <<_ACEOF
17311-/* end confdefs.h. */
17312-$ac_includes_default
17313-#include <atheos/threads.h>
17314-_ACEOF
17315-rm -f conftest.$ac_objext
17316-if { (ac_try="$ac_compile"
17317-case "(($ac_try" in
17318- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17319- *) ac_try_echo=$ac_try;;
17320-esac
17321-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17322- (eval "$ac_compile") 2>conftest.er1
17323- ac_status=$?
17324- grep -v '^ *+' conftest.er1 >conftest.err
17325- rm -f conftest.er1
17326- cat conftest.err >&5
17327- echo "$as_me:$LINENO: \$? = $ac_status" >&5
17328- (exit $ac_status); } && {
17329- test -z "$ac_c_werror_flag" ||
17330- test ! -s conftest.err
17331- } && test -s conftest.$ac_objext; then
17332- ac_header_compiler=yes
17333-else
17334- echo "$as_me: failed program was:" >&5
17335-sed 's/^/| /' conftest.$ac_ext >&5
17336-
17337- ac_header_compiler=no
17338-fi
17339-
17340-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17341-{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17342-echo "${ECHO_T}$ac_header_compiler" >&6; }
17343-
17344-# Is the header present?
17345-{ echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
17346-echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6; }
17347-cat >conftest.$ac_ext <<_ACEOF
17348-/* confdefs.h. */
17349-_ACEOF
17350-cat confdefs.h >>conftest.$ac_ext
17351-cat >>conftest.$ac_ext <<_ACEOF
17352-/* end confdefs.h. */
17353-#include <atheos/threads.h>
17354-_ACEOF
17355-if { (ac_try="$ac_cpp conftest.$ac_ext"
17356-case "(($ac_try" in
17357- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17358- *) ac_try_echo=$ac_try;;
17359-esac
17360-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17361- (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17362- ac_status=$?
17363- grep -v '^ *+' conftest.er1 >conftest.err
17364- rm -f conftest.er1
17365- cat conftest.err >&5
17366- echo "$as_me:$LINENO: \$? = $ac_status" >&5
17367- (exit $ac_status); } >/dev/null && {
17368- test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17369- test ! -s conftest.err
17370- }; then
17371- ac_header_preproc=yes
17372-else
17373- echo "$as_me: failed program was:" >&5
17374-sed 's/^/| /' conftest.$ac_ext >&5
17375-
17376- ac_header_preproc=no
17377-fi
17378-
17379-rm -f conftest.err conftest.$ac_ext
17380-{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17381-echo "${ECHO_T}$ac_header_preproc" >&6; }
17382-
17383-# So? What about this header?
17384-case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17385- yes:no: )
17386- { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
17387-echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17388- { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
17389-echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
17390- ac_header_preproc=yes
17391- ;;
17392- no:yes:* )
17393- { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
17394-echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
17395- { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
17396-echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
17397- { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
17398-echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
17399- { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
17400-echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
17401- { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
17402-echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
17403- { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
17404-echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
17405- ( cat <<\_ASBOX
17406-## ------------------------------------------------ ##
17407-## Report this to http://www.python.org/python-bugs ##
17408-## ------------------------------------------------ ##
17409-_ASBOX
17410- ) | sed "s/^/$as_me: WARNING: /" >&2
17411- ;;
17412-esac
17413-{ echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
17414-echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
17415-if test "${ac_cv_header_atheos_threads_h+set}" = set; then
17416- echo $ECHO_N "(cached) $ECHO_C" >&6
17417-else
17418- ac_cv_header_atheos_threads_h=$ac_header_preproc
17419-fi
17420-{ echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
17421-echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
17422-
17423-fi
17424-if test $ac_cv_header_atheos_threads_h = yes; then
17425- cat >>confdefs.h <<\_ACEOF
17426-#define WITH_THREAD 1
17427-_ACEOF
17428-
17429-
17430-cat >>confdefs.h <<\_ACEOF
17431-#define ATHEOS_THREADS 1
17432-_ACEOF
17433-
17434- THREADOBJ="Python/thread.o"
17435-else
17436-
17437- if test "${ac_cv_header_kernel_OS_h+set}" = set; then
17438- { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
17439-echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
17440-if test "${ac_cv_header_kernel_OS_h+set}" = set; then
17441- echo $ECHO_N "(cached) $ECHO_C" >&6
17442-fi
17443-{ echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
17444-echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
17445-else
17446- # Is the header compilable?
17447-{ echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
17448-echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6; }
17449-cat >conftest.$ac_ext <<_ACEOF
17450-/* confdefs.h. */
17451-_ACEOF
17452-cat confdefs.h >>conftest.$ac_ext
17453-cat >>conftest.$ac_ext <<_ACEOF
17454-/* end confdefs.h. */
17455-$ac_includes_default
17456-#include <kernel/OS.h>
17457-_ACEOF
17458-rm -f conftest.$ac_objext
17459-if { (ac_try="$ac_compile"
17460-case "(($ac_try" in
17461- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17462- *) ac_try_echo=$ac_try;;
17463-esac
17464-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17465- (eval "$ac_compile") 2>conftest.er1
17466- ac_status=$?
17467- grep -v '^ *+' conftest.er1 >conftest.err
17468- rm -f conftest.er1
17469- cat conftest.err >&5
17470- echo "$as_me:$LINENO: \$? = $ac_status" >&5
17471- (exit $ac_status); } && {
17472- test -z "$ac_c_werror_flag" ||
17473- test ! -s conftest.err
17474- } && test -s conftest.$ac_objext; then
17475- ac_header_compiler=yes
17476-else
17477- echo "$as_me: failed program was:" >&5
17478-sed 's/^/| /' conftest.$ac_ext >&5
17479-
17480- ac_header_compiler=no
17481-fi
17482-
17483-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17484-{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17485-echo "${ECHO_T}$ac_header_compiler" >&6; }
17486-
17487-# Is the header present?
17488-{ echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
17489-echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6; }
17490-cat >conftest.$ac_ext <<_ACEOF
17491-/* confdefs.h. */
17492-_ACEOF
17493-cat confdefs.h >>conftest.$ac_ext
17494-cat >>conftest.$ac_ext <<_ACEOF
17495-/* end confdefs.h. */
17496-#include <kernel/OS.h>
17497-_ACEOF
17498-if { (ac_try="$ac_cpp conftest.$ac_ext"
17499-case "(($ac_try" in
17500- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17501- *) ac_try_echo=$ac_try;;
17502-esac
17503-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17504- (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17505- ac_status=$?
17506- grep -v '^ *+' conftest.er1 >conftest.err
17507- rm -f conftest.er1
17508- cat conftest.err >&5
17509- echo "$as_me:$LINENO: \$? = $ac_status" >&5
17510- (exit $ac_status); } >/dev/null && {
17511- test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17512- test ! -s conftest.err
17513- }; then
17514- ac_header_preproc=yes
17515-else
17516- echo "$as_me: failed program was:" >&5
17517-sed 's/^/| /' conftest.$ac_ext >&5
17518-
17519- ac_header_preproc=no
17520-fi
17521-
17522-rm -f conftest.err conftest.$ac_ext
17523-{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17524-echo "${ECHO_T}$ac_header_preproc" >&6; }
17525-
17526-# So? What about this header?
17527-case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17528- yes:no: )
17529- { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
17530-echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17531- { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5
17532-echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;}
17533- ac_header_preproc=yes
17534- ;;
17535- no:yes:* )
17536- { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
17537-echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
17538- { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
17539-echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
17540- { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5
17541-echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;}
17542- { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5
17543-echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;}
17544- { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
17545-echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;}
17546- { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5
17547-echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;}
17548- ( cat <<\_ASBOX
17549-## ------------------------------------------------ ##
17550-## Report this to http://www.python.org/python-bugs ##
17551-## ------------------------------------------------ ##
17552-_ASBOX
17553- ) | sed "s/^/$as_me: WARNING: /" >&2
17554- ;;
17555-esac
17556-{ echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
17557-echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
17558-if test "${ac_cv_header_kernel_OS_h+set}" = set; then
17559- echo $ECHO_N "(cached) $ECHO_C" >&6
17560-else
17561- ac_cv_header_kernel_OS_h=$ac_header_preproc
17562-fi
17563-{ echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
17564-echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
17565-
17566-fi
17567-if test $ac_cv_header_kernel_OS_h = yes; then
17568- cat >>confdefs.h <<\_ACEOF
17569-#define WITH_THREAD 1
17570-_ACEOF
17571-
17572-
17573-cat >>confdefs.h <<\_ACEOF
17574-#define BEOS_THREADS 1
17575-_ACEOF
17576-
17577- THREADOBJ="Python/thread.o"
17578-else
17579-
17580- { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
17581-echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
17582-if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
17583- echo $ECHO_N "(cached) $ECHO_C" >&6
17584-else
17585- ac_check_lib_save_LIBS=$LIBS
17586-LIBS="-lpthreads $LIBS"
17587-cat >conftest.$ac_ext <<_ACEOF
17588-/* confdefs.h. */
17589-_ACEOF
17590-cat confdefs.h >>conftest.$ac_ext
17591-cat >>conftest.$ac_ext <<_ACEOF
17592-/* end confdefs.h. */
17593-
17594-/* Override any GCC internal prototype to avoid an error.
17595- Use char because int might match the return type of a GCC
17596- builtin and then its argument prototype would still apply. */
17597-#ifdef __cplusplus
17598-extern "C"
17599-#endif
17600-char pthread_create ();
17601-int
17602-main ()
17603-{
17604-return pthread_create ();
17605- ;
17606- return 0;
17607-}
17608-_ACEOF
17609-rm -f conftest.$ac_objext conftest$ac_exeext
17610-if { (ac_try="$ac_link"
17611-case "(($ac_try" in
17612- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17613- *) ac_try_echo=$ac_try;;
17614-esac
17615-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17616- (eval "$ac_link") 2>conftest.er1
17617- ac_status=$?
17618- grep -v '^ *+' conftest.er1 >conftest.err
17619- rm -f conftest.er1
17620- cat conftest.err >&5
17621- echo "$as_me:$LINENO: \$? = $ac_status" >&5
17622- (exit $ac_status); } && {
17623- test -z "$ac_c_werror_flag" ||
17624- test ! -s conftest.err
17625- } && test -s conftest$ac_exeext &&
17626- $as_test_x conftest$ac_exeext; then
17627- ac_cv_lib_pthreads_pthread_create=yes
17628-else
17629- echo "$as_me: failed program was:" >&5
17630-sed 's/^/| /' conftest.$ac_ext >&5
17631-
17632- ac_cv_lib_pthreads_pthread_create=no
17633-fi
17634-
17635-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17636- conftest$ac_exeext conftest.$ac_ext
17637-LIBS=$ac_check_lib_save_LIBS
17638-fi
17639-{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
17640-echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
17641-if test $ac_cv_lib_pthreads_pthread_create = yes; then
17642- cat >>confdefs.h <<\_ACEOF
17643-#define WITH_THREAD 1
17644-_ACEOF
17645-
17646- posix_threads=yes
17647- LIBS="$LIBS -lpthreads"
17648- THREADOBJ="Python/thread.o"
17649-else
17650-
17651- { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
17652-echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
17653-if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
17654- echo $ECHO_N "(cached) $ECHO_C" >&6
17655-else
17656- ac_check_lib_save_LIBS=$LIBS
17657-LIBS="-lc_r $LIBS"
17658-cat >conftest.$ac_ext <<_ACEOF
17659-/* confdefs.h. */
17660-_ACEOF
17661-cat confdefs.h >>conftest.$ac_ext
17662-cat >>conftest.$ac_ext <<_ACEOF
17663-/* end confdefs.h. */
17664-
17665-/* Override any GCC internal prototype to avoid an error.
17666- Use char because int might match the return type of a GCC
17667- builtin and then its argument prototype would still apply. */
17668-#ifdef __cplusplus
17669-extern "C"
17670-#endif
17671-char pthread_create ();
17672-int
17673-main ()
17674-{
17675-return pthread_create ();
17676- ;
17677- return 0;
17678-}
17679-_ACEOF
17680-rm -f conftest.$ac_objext conftest$ac_exeext
17681-if { (ac_try="$ac_link"
17682-case "(($ac_try" in
17683- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17684- *) ac_try_echo=$ac_try;;
17685-esac
17686-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17687- (eval "$ac_link") 2>conftest.er1
17688- ac_status=$?
17689- grep -v '^ *+' conftest.er1 >conftest.err
17690- rm -f conftest.er1
17691- cat conftest.err >&5
17692- echo "$as_me:$LINENO: \$? = $ac_status" >&5
17693- (exit $ac_status); } && {
17694- test -z "$ac_c_werror_flag" ||
17695- test ! -s conftest.err
17696- } && test -s conftest$ac_exeext &&
17697- $as_test_x conftest$ac_exeext; then
17698- ac_cv_lib_c_r_pthread_create=yes
17699-else
17700- echo "$as_me: failed program was:" >&5
17701-sed 's/^/| /' conftest.$ac_ext >&5
17702-
17703- ac_cv_lib_c_r_pthread_create=no
17704-fi
17705-
17706-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17707- conftest$ac_exeext conftest.$ac_ext
17708-LIBS=$ac_check_lib_save_LIBS
17709-fi
17710-{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
17711-echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
17712-if test $ac_cv_lib_c_r_pthread_create = yes; then
17713- cat >>confdefs.h <<\_ACEOF
17714-#define WITH_THREAD 1
17715-_ACEOF
17716-
17717- posix_threads=yes
17718- LIBS="$LIBS -lc_r"
17719- THREADOBJ="Python/thread.o"
17720-else
17721-
17722- { echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
17723-echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6; }
17724-if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
17725- echo $ECHO_N "(cached) $ECHO_C" >&6
17726-else
17727- ac_check_lib_save_LIBS=$LIBS
17728-LIBS="-lpthread $LIBS"
17729-cat >conftest.$ac_ext <<_ACEOF
17730-/* confdefs.h. */
17731-_ACEOF
17732-cat confdefs.h >>conftest.$ac_ext
17733-cat >>conftest.$ac_ext <<_ACEOF
17734-/* end confdefs.h. */
17735-
17736-/* Override any GCC internal prototype to avoid an error.
17737- Use char because int might match the return type of a GCC
17738- builtin and then its argument prototype would still apply. */
17739-#ifdef __cplusplus
17740-extern "C"
17741-#endif
17742-char __pthread_create_system ();
17743-int
17744-main ()
17745-{
17746-return __pthread_create_system ();
17747- ;
17748- return 0;
17749-}
17750-_ACEOF
17751-rm -f conftest.$ac_objext conftest$ac_exeext
17752-if { (ac_try="$ac_link"
17753-case "(($ac_try" in
17754- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17755- *) ac_try_echo=$ac_try;;
17756-esac
17757-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17758- (eval "$ac_link") 2>conftest.er1
17759- ac_status=$?
17760- grep -v '^ *+' conftest.er1 >conftest.err
17761- rm -f conftest.er1
17762- cat conftest.err >&5
17763- echo "$as_me:$LINENO: \$? = $ac_status" >&5
17764- (exit $ac_status); } && {
17765- test -z "$ac_c_werror_flag" ||
17766- test ! -s conftest.err
17767- } && test -s conftest$ac_exeext &&
17768- $as_test_x conftest$ac_exeext; then
17769- ac_cv_lib_pthread___pthread_create_system=yes
17770-else
17771- echo "$as_me: failed program was:" >&5
17772-sed 's/^/| /' conftest.$ac_ext >&5
17773-
17774- ac_cv_lib_pthread___pthread_create_system=no
17775-fi
17776-
17777-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17778- conftest$ac_exeext conftest.$ac_ext
17779-LIBS=$ac_check_lib_save_LIBS
17780-fi
17781-{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
17782-echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6; }
17783-if test $ac_cv_lib_pthread___pthread_create_system = yes; then
17784- cat >>confdefs.h <<\_ACEOF
17785-#define WITH_THREAD 1
17786-_ACEOF
17787-
17788- posix_threads=yes
17789- LIBS="$LIBS -lpthread"
17790- THREADOBJ="Python/thread.o"
17791-else
17792-
17793- { echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
17794-echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6; }
17795-if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
17796- echo $ECHO_N "(cached) $ECHO_C" >&6
17797-else
17798- ac_check_lib_save_LIBS=$LIBS
17799-LIBS="-lcma $LIBS"
17800-cat >conftest.$ac_ext <<_ACEOF
17801-/* confdefs.h. */
17802-_ACEOF
17803-cat confdefs.h >>conftest.$ac_ext
17804-cat >>conftest.$ac_ext <<_ACEOF
17805-/* end confdefs.h. */
17806-
17807-/* Override any GCC internal prototype to avoid an error.
17808- Use char because int might match the return type of a GCC
17809- builtin and then its argument prototype would still apply. */
17810-#ifdef __cplusplus
17811-extern "C"
17812-#endif
17813-char pthread_create ();
17814-int
17815-main ()
17816-{
17817-return pthread_create ();
17818- ;
17819- return 0;
17820-}
17821-_ACEOF
17822-rm -f conftest.$ac_objext conftest$ac_exeext
17823-if { (ac_try="$ac_link"
17824-case "(($ac_try" in
17825- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17826- *) ac_try_echo=$ac_try;;
17827-esac
17828-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17829- (eval "$ac_link") 2>conftest.er1
17830- ac_status=$?
17831- grep -v '^ *+' conftest.er1 >conftest.err
17832- rm -f conftest.er1
17833- cat conftest.err >&5
17834- echo "$as_me:$LINENO: \$? = $ac_status" >&5
17835- (exit $ac_status); } && {
17836- test -z "$ac_c_werror_flag" ||
17837- test ! -s conftest.err
17838- } && test -s conftest$ac_exeext &&
17839- $as_test_x conftest$ac_exeext; then
17840- ac_cv_lib_cma_pthread_create=yes
17841-else
17842- echo "$as_me: failed program was:" >&5
17843-sed 's/^/| /' conftest.$ac_ext >&5
17844-
17845- ac_cv_lib_cma_pthread_create=no
17846-fi
17847-
17848-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17849- conftest$ac_exeext conftest.$ac_ext
17850-LIBS=$ac_check_lib_save_LIBS
17851-fi
17852-{ echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
17853-echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6; }
17854-if test $ac_cv_lib_cma_pthread_create = yes; then
17855- cat >>confdefs.h <<\_ACEOF
17856-#define WITH_THREAD 1
17857-_ACEOF
17858-
17859- posix_threads=yes
17860- LIBS="$LIBS -lcma"
17861- THREADOBJ="Python/thread.o"
17862-else
17863-
17864- USE_THREAD_MODULE="#"
17865-fi
17866-
17867-
17868-fi
17869-
17870-fi
17871-
17872-fi
17873-
17874-fi
17875-
17876-
17877-fi
17878-
17879-
17880-fi
17881-
17882-fi
17883-
17884-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17885- conftest$ac_exeext conftest.$ac_ext
17886-fi
17887-
17888-fi
17889-
17890-
17891-fi
17892-
17893-
17894-
17895- { echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
17896-echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6; }
17897-if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
17898- echo $ECHO_N "(cached) $ECHO_C" >&6
17899-else
17900- ac_check_lib_save_LIBS=$LIBS
17901-LIBS="-lmpc $LIBS"
17902-cat >conftest.$ac_ext <<_ACEOF
17903-/* confdefs.h. */
17904-_ACEOF
17905-cat confdefs.h >>conftest.$ac_ext
17906-cat >>conftest.$ac_ext <<_ACEOF
17907-/* end confdefs.h. */
17908-
17909-/* Override any GCC internal prototype to avoid an error.
17910- Use char because int might match the return type of a GCC
17911- builtin and then its argument prototype would still apply. */
17912-#ifdef __cplusplus
17913-extern "C"
17914-#endif
17915-char usconfig ();
17916-int
17917-main ()
17918-{
17919-return usconfig ();
17920- ;
17921- return 0;
17922-}
17923-_ACEOF
17924-rm -f conftest.$ac_objext conftest$ac_exeext
17925-if { (ac_try="$ac_link"
17926-case "(($ac_try" in
17927- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17928- *) ac_try_echo=$ac_try;;
17929-esac
17930-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17931- (eval "$ac_link") 2>conftest.er1
17932- ac_status=$?
17933- grep -v '^ *+' conftest.er1 >conftest.err
17934- rm -f conftest.er1
17935- cat conftest.err >&5
17936- echo "$as_me:$LINENO: \$? = $ac_status" >&5
17937- (exit $ac_status); } && {
17938- test -z "$ac_c_werror_flag" ||
17939- test ! -s conftest.err
17940- } && test -s conftest$ac_exeext &&
17941- $as_test_x conftest$ac_exeext; then
17942- ac_cv_lib_mpc_usconfig=yes
17943-else
17944- echo "$as_me: failed program was:" >&5
17945-sed 's/^/| /' conftest.$ac_ext >&5
17946-
17947- ac_cv_lib_mpc_usconfig=no
17948-fi
17949-
17950-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17951- conftest$ac_exeext conftest.$ac_ext
17952-LIBS=$ac_check_lib_save_LIBS
17953-fi
17954-{ echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
17955-echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6; }
17956-if test $ac_cv_lib_mpc_usconfig = yes; then
17957- cat >>confdefs.h <<\_ACEOF
17958-#define WITH_THREAD 1
17959-_ACEOF
17960-
17961- LIBS="$LIBS -lmpc"
17962- THREADOBJ="Python/thread.o"
17963- USE_THREAD_MODULE=""
17964-fi
17965-
17966-
17967- if test "$posix_threads" != "yes"; then
17968- { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
17969-echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
17970-if test "${ac_cv_lib_thread_thr_create+set}" = set; then
17971- echo $ECHO_N "(cached) $ECHO_C" >&6
17972-else
17973- ac_check_lib_save_LIBS=$LIBS
17974-LIBS="-lthread $LIBS"
17975-cat >conftest.$ac_ext <<_ACEOF
17976-/* confdefs.h. */
17977-_ACEOF
17978-cat confdefs.h >>conftest.$ac_ext
17979-cat >>conftest.$ac_ext <<_ACEOF
17980-/* end confdefs.h. */
17981-
17982-/* Override any GCC internal prototype to avoid an error.
17983- Use char because int might match the return type of a GCC
17984- builtin and then its argument prototype would still apply. */
17985-#ifdef __cplusplus
17986-extern "C"
17987-#endif
17988-char thr_create ();
17989-int
17990-main ()
17991-{
17992-return thr_create ();
17993- ;
17994- return 0;
17995-}
17996-_ACEOF
17997-rm -f conftest.$ac_objext conftest$ac_exeext
17998-if { (ac_try="$ac_link"
17999-case "(($ac_try" in
18000- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18001- *) ac_try_echo=$ac_try;;
18002-esac
18003-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18004- (eval "$ac_link") 2>conftest.er1
18005- ac_status=$?
18006- grep -v '^ *+' conftest.er1 >conftest.err
18007- rm -f conftest.er1
18008- cat conftest.err >&5
18009- echo "$as_me:$LINENO: \$? = $ac_status" >&5
18010- (exit $ac_status); } && {
18011- test -z "$ac_c_werror_flag" ||
18012- test ! -s conftest.err
18013- } && test -s conftest$ac_exeext &&
18014- $as_test_x conftest$ac_exeext; then
18015- ac_cv_lib_thread_thr_create=yes
18016-else
18017- echo "$as_me: failed program was:" >&5
18018-sed 's/^/| /' conftest.$ac_ext >&5
18019-
18020- ac_cv_lib_thread_thr_create=no
18021-fi
18022-
18023-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18024- conftest$ac_exeext conftest.$ac_ext
18025-LIBS=$ac_check_lib_save_LIBS
18026-fi
18027-{ echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
18028-echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
18029-if test $ac_cv_lib_thread_thr_create = yes; then
18030- cat >>confdefs.h <<\_ACEOF
18031-#define WITH_THREAD 1
18032-_ACEOF
18033-
18034- LIBS="$LIBS -lthread"
18035- THREADOBJ="Python/thread.o"
18036- USE_THREAD_MODULE=""
18037-fi
18038-
18039- fi
18040-
18041- if test "$USE_THREAD_MODULE" != "#"
18042- then
18043- # If the above checks didn't disable threads, (at least) OSF1
18044- # needs this '-threads' argument during linking.
18045- case $ac_sys_system in
18046- OSF1) LDLAST=-threads;;
18047- esac
18048- fi
18049-fi
18050-
18051-if test "$posix_threads" = "yes"; then
18052- if test "$unistd_defines_pthreads" = "no"; then
18053-
18054-cat >>confdefs.h <<\_ACEOF
18055-#define _POSIX_THREADS 1
18056-_ACEOF
18057-
18058- fi
18059-
18060- # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
18061- case $ac_sys_system/$ac_sys_release in
18062- SunOS/5.6)
18063-cat >>confdefs.h <<\_ACEOF
18064-#define HAVE_PTHREAD_DESTRUCTOR 1
18065-_ACEOF
18066-
18067- ;;
18068- SunOS/5.8)
18069-cat >>confdefs.h <<\_ACEOF
18070-#define HAVE_BROKEN_POSIX_SEMAPHORES 1
18071-_ACEOF
18072-
18073- ;;
18074- AIX/5)
18075-cat >>confdefs.h <<\_ACEOF
18076-#define HAVE_BROKEN_POSIX_SEMAPHORES 1
18077-_ACEOF
18078-
18079- ;;
18080- esac
18081-
18082- { echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
18083-echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6; }
18084- if test "${ac_cv_pthread_system_supported+set}" = set; then
18085- echo $ECHO_N "(cached) $ECHO_C" >&6
18086-else
18087- if test "$cross_compiling" = yes; then
18088- ac_cv_pthread_system_supported=no
18089-else
18090- cat >conftest.$ac_ext <<_ACEOF
18091-/* confdefs.h. */
18092-_ACEOF
18093-cat confdefs.h >>conftest.$ac_ext
18094-cat >>conftest.$ac_ext <<_ACEOF
18095-/* end confdefs.h. */
18096-#include <pthread.h>
18097- void *foo(void *parm) {
18098- return NULL;
18099- }
18100- main() {
18101- pthread_attr_t attr;
18102- pthread_t id;
18103- if (pthread_attr_init(&attr)) exit(-1);
18104- if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
18105- if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
18106- exit(0);
18107- }
18108-_ACEOF
18109-rm -f conftest$ac_exeext
18110-if { (ac_try="$ac_link"
18111-case "(($ac_try" in
18112- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18113- *) ac_try_echo=$ac_try;;
18114-esac
18115-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18116- (eval "$ac_link") 2>&5
18117- ac_status=$?
18118- echo "$as_me:$LINENO: \$? = $ac_status" >&5
18119- (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18120- { (case "(($ac_try" in
18121- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18122- *) ac_try_echo=$ac_try;;
18123-esac
18124-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18125- (eval "$ac_try") 2>&5
18126- ac_status=$?
18127- echo "$as_me:$LINENO: \$? = $ac_status" >&5
18128- (exit $ac_status); }; }; then
18129- ac_cv_pthread_system_supported=yes
18130-else
18131- echo "$as_me: program exited with status $ac_status" >&5
18132-echo "$as_me: failed program was:" >&5
18133-sed 's/^/| /' conftest.$ac_ext >&5
18134-
18135-( exit $ac_status )
18136-ac_cv_pthread_system_supported=no
18137-fi
18138-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18139-fi
18140-
18141-
18142-
18143-fi
18144-
18145- { echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
18146-echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6; }
18147- if test "$ac_cv_pthread_system_supported" = "yes"; then
18148-
18149-cat >>confdefs.h <<\_ACEOF
18150-#define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
18151-_ACEOF
18152-
18153- fi
18154-
18155-for ac_func in pthread_sigmask
18156-do
18157-as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18158-{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18159-echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18160-if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18161- echo $ECHO_N "(cached) $ECHO_C" >&6
18162-else
18163- cat >conftest.$ac_ext <<_ACEOF
18164-/* confdefs.h. */
18165-_ACEOF
18166-cat confdefs.h >>conftest.$ac_ext
18167-cat >>conftest.$ac_ext <<_ACEOF
18168-/* end confdefs.h. */
18169-/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18170- For example, HP-UX 11i <limits.h> declares gettimeofday. */
18171-#define $ac_func innocuous_$ac_func
18172-
18173-/* System header to define __stub macros and hopefully few prototypes,
18174- which can conflict with char $ac_func (); below.
18175- Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18176- <limits.h> exists even on freestanding compilers. */
18177-
18178-#ifdef __STDC__
18179-# include <limits.h>
18180-#else
18181-# include <assert.h>
18182-#endif
18183-
18184-#undef $ac_func
18185-
18186-/* Override any GCC internal prototype to avoid an error.
18187- Use char because int might match the return type of a GCC
18188- builtin and then its argument prototype would still apply. */
18189-#ifdef __cplusplus
18190-extern "C"
18191-#endif
18192-char $ac_func ();
18193-/* The GNU C library defines this for functions which it implements
18194- to always fail with ENOSYS. Some functions are actually named
18195- something starting with __ and the normal name is an alias. */
18196-#if defined __stub_$ac_func || defined __stub___$ac_func
18197-choke me
18198-#endif
18199-
18200-int
18201-main ()
18202-{
18203-return $ac_func ();
18204- ;
18205- return 0;
18206-}
18207-_ACEOF
18208-rm -f conftest.$ac_objext conftest$ac_exeext
18209-if { (ac_try="$ac_link"
18210-case "(($ac_try" in
18211- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18212- *) ac_try_echo=$ac_try;;
18213-esac
18214-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18215- (eval "$ac_link") 2>conftest.er1
18216- ac_status=$?
18217- grep -v '^ *+' conftest.er1 >conftest.err
18218- rm -f conftest.er1
18219- cat conftest.err >&5
18220- echo "$as_me:$LINENO: \$? = $ac_status" >&5
18221- (exit $ac_status); } && {
18222- test -z "$ac_c_werror_flag" ||
18223- test ! -s conftest.err
18224- } && test -s conftest$ac_exeext &&
18225- $as_test_x conftest$ac_exeext; then
18226- eval "$as_ac_var=yes"
18227-else
18228- echo "$as_me: failed program was:" >&5
18229-sed 's/^/| /' conftest.$ac_ext >&5
18230-
18231- eval "$as_ac_var=no"
18232-fi
18233-
18234-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18235- conftest$ac_exeext conftest.$ac_ext
18236-fi
18237-ac_res=`eval echo '${'$as_ac_var'}'`
18238- { echo "$as_me:$LINENO: result: $ac_res" >&5
18239-echo "${ECHO_T}$ac_res" >&6; }
18240-if test `eval echo '${'$as_ac_var'}'` = yes; then
18241- cat >>confdefs.h <<_ACEOF
18242-#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18243-_ACEOF
18244- case $ac_sys_system in
18245- CYGWIN*)
18246-
18247-cat >>confdefs.h <<\_ACEOF
18248-#define HAVE_BROKEN_PTHREAD_SIGMASK 1
18249-_ACEOF
18250-
18251- ;;
18252- esac
18253-fi
18254-done
18255-
18256-fi
18257-
18258-
18259-# Check for enable-ipv6
18260-
18261-
18262-{ echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
18263-echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6; }
18264-# Check whether --enable-ipv6 was given.
18265-if test "${enable_ipv6+set}" = set; then
18266- enableval=$enable_ipv6; case "$enableval" in
18267- no)
18268- { echo "$as_me:$LINENO: result: no" >&5
18269-echo "${ECHO_T}no" >&6; }
18270- ipv6=no
18271- ;;
18272- *) { echo "$as_me:$LINENO: result: yes" >&5
18273-echo "${ECHO_T}yes" >&6; }
18274- cat >>confdefs.h <<\_ACEOF
18275-#define ENABLE_IPV6 1
18276-_ACEOF
18277-
18278- ipv6=yes
18279- ;;
18280- esac
18281-else
18282-
18283- if test "$cross_compiling" = yes; then
18284- { echo "$as_me:$LINENO: result: no" >&5
18285-echo "${ECHO_T}no" >&6; }
18286- ipv6=no
18287-
18288-else
18289- cat >conftest.$ac_ext <<_ACEOF
18290-/* confdefs.h. */
18291-_ACEOF
18292-cat confdefs.h >>conftest.$ac_ext
18293-cat >>conftest.$ac_ext <<_ACEOF
18294-/* end confdefs.h. */
18295- /* AF_INET6 available check */
18296-#include <sys/types.h>
18297-#include <sys/socket.h>
18298-main()
18299-{
18300- if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
18301- exit(1);
18302- else
18303- exit(0);
18304-}
18305-
18306-_ACEOF
18307-rm -f conftest$ac_exeext
18308-if { (ac_try="$ac_link"
18309-case "(($ac_try" in
18310- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18311- *) ac_try_echo=$ac_try;;
18312-esac
18313-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18314- (eval "$ac_link") 2>&5
18315- ac_status=$?
18316- echo "$as_me:$LINENO: \$? = $ac_status" >&5
18317- (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18318- { (case "(($ac_try" in
18319- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18320- *) ac_try_echo=$ac_try;;
18321-esac
18322-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18323- (eval "$ac_try") 2>&5
18324- ac_status=$?
18325- echo "$as_me:$LINENO: \$? = $ac_status" >&5
18326- (exit $ac_status); }; }; then
18327- { echo "$as_me:$LINENO: result: yes" >&5
18328-echo "${ECHO_T}yes" >&6; }
18329- ipv6=yes
18330-else
18331- echo "$as_me: program exited with status $ac_status" >&5
18332-echo "$as_me: failed program was:" >&5
18333-sed 's/^/| /' conftest.$ac_ext >&5
18334-
18335-( exit $ac_status )
18336-{ echo "$as_me:$LINENO: result: no" >&5
18337-echo "${ECHO_T}no" >&6; }
18338- ipv6=no
18339-fi
18340-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18341-fi
18342-
18343-
18344-
18345-if test "$ipv6" = "yes"; then
18346- { echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
18347-echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6; }
18348- cat >conftest.$ac_ext <<_ACEOF
18349-/* confdefs.h. */
18350-_ACEOF
18351-cat confdefs.h >>conftest.$ac_ext
18352-cat >>conftest.$ac_ext <<_ACEOF
18353-/* end confdefs.h. */
18354-#include <sys/types.h>
18355-#include <netinet/in.h>
18356-int
18357-main ()
18358-{
18359-struct sockaddr_in6 x;
18360-x.sin6_scope_id;
18361- ;
18362- return 0;
18363-}
18364-_ACEOF
18365-rm -f conftest.$ac_objext
18366-if { (ac_try="$ac_compile"
18367-case "(($ac_try" in
18368- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18369- *) ac_try_echo=$ac_try;;
18370-esac
18371-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18372- (eval "$ac_compile") 2>conftest.er1
18373- ac_status=$?
18374- grep -v '^ *+' conftest.er1 >conftest.err
18375- rm -f conftest.er1
18376- cat conftest.err >&5
18377- echo "$as_me:$LINENO: \$? = $ac_status" >&5
18378- (exit $ac_status); } && {
18379- test -z "$ac_c_werror_flag" ||
18380- test ! -s conftest.err
18381- } && test -s conftest.$ac_objext; then
18382- { echo "$as_me:$LINENO: result: yes" >&5
18383-echo "${ECHO_T}yes" >&6; }
18384- ipv6=yes
18385-else
18386- echo "$as_me: failed program was:" >&5
18387-sed 's/^/| /' conftest.$ac_ext >&5
18388-
18389- { echo "$as_me:$LINENO: result: no" >&5
18390-echo "${ECHO_T}no" >&6; }
18391- ipv6=no
18392-fi
18393-
18394-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18395-fi
18396-
18397-if test "$ipv6" = "yes"; then
18398- cat >>confdefs.h <<\_ACEOF
18399-#define ENABLE_IPV6 1
18400-_ACEOF
18401-
18402-fi
18403-
18404-fi
18405-
18406-
18407-ipv6type=unknown
18408-ipv6lib=none
18409-ipv6trylibc=no
18410-
18411-if test "$ipv6" = "yes"; then
18412- { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
18413-echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
18414- for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
18415- do
18416- case $i in
18417- inria)
18418- cat >conftest.$ac_ext <<_ACEOF
18419-/* confdefs.h. */
18420-_ACEOF
18421-cat confdefs.h >>conftest.$ac_ext
18422-cat >>conftest.$ac_ext <<_ACEOF
18423-/* end confdefs.h. */
18424-
18425-#include <netinet/in.h>
18426-#ifdef IPV6_INRIA_VERSION
18427-yes
18428-#endif
18429-_ACEOF
18430-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18431- $EGREP "yes" >/dev/null 2>&1; then
18432- ipv6type=$i
18433-fi
18434-rm -f conftest*
18435-
18436- ;;
18437- kame)
18438- cat >conftest.$ac_ext <<_ACEOF
18439-/* confdefs.h. */
18440-_ACEOF
18441-cat confdefs.h >>conftest.$ac_ext
18442-cat >>conftest.$ac_ext <<_ACEOF
18443-/* end confdefs.h. */
18444-
18445-#include <netinet/in.h>
18446-#ifdef __KAME__
18447-yes
18448-#endif
18449-_ACEOF
18450-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18451- $EGREP "yes" >/dev/null 2>&1; then
18452- ipv6type=$i;
18453- ipv6lib=inet6
18454- ipv6libdir=/usr/local/v6/lib
18455- ipv6trylibc=yes
18456-fi
18457-rm -f conftest*
18458-
18459- ;;
18460- linux-glibc)
18461- cat >conftest.$ac_ext <<_ACEOF
18462-/* confdefs.h. */
18463-_ACEOF
18464-cat confdefs.h >>conftest.$ac_ext
18465-cat >>conftest.$ac_ext <<_ACEOF
18466-/* end confdefs.h. */
18467-
18468-#include <features.h>
18469-#if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
18470-yes
18471-#endif
18472-_ACEOF
18473-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18474- $EGREP "yes" >/dev/null 2>&1; then
18475- ipv6type=$i;
18476- ipv6trylibc=yes
18477-fi
18478-rm -f conftest*
18479-
18480- ;;
18481- linux-inet6)
18482- if test -d /usr/inet6; then
18483- ipv6type=$i
18484- ipv6lib=inet6
18485- ipv6libdir=/usr/inet6/lib
18486- BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
18487- fi
18488- ;;
18489- solaris)
18490- if test -f /etc/netconfig; then
18491- if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then
18492- ipv6type=$i
18493- ipv6trylibc=yes
18494- fi
18495- fi
18496- ;;
18497- toshiba)
18498- cat >conftest.$ac_ext <<_ACEOF
18499-/* confdefs.h. */
18500-_ACEOF
18501-cat confdefs.h >>conftest.$ac_ext
18502-cat >>conftest.$ac_ext <<_ACEOF
18503-/* end confdefs.h. */
18504-
18505-#include <sys/param.h>
18506-#ifdef _TOSHIBA_INET6
18507-yes
18508-#endif
18509-_ACEOF
18510-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18511- $EGREP "yes" >/dev/null 2>&1; then
18512- ipv6type=$i;
18513- ipv6lib=inet6;
18514- ipv6libdir=/usr/local/v6/lib
18515-fi
18516-rm -f conftest*
18517-
18518- ;;
18519- v6d)
18520- cat >conftest.$ac_ext <<_ACEOF
18521-/* confdefs.h. */
18522-_ACEOF
18523-cat confdefs.h >>conftest.$ac_ext
18524-cat >>conftest.$ac_ext <<_ACEOF
18525-/* end confdefs.h. */
18526-
18527-#include </usr/local/v6/include/sys/v6config.h>
18528-#ifdef __V6D__
18529-yes
18530-#endif
18531-_ACEOF
18532-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18533- $EGREP "yes" >/dev/null 2>&1; then
18534- ipv6type=$i;
18535- ipv6lib=v6;
18536- ipv6libdir=/usr/local/v6/lib;
18537- BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
18538-fi
18539-rm -f conftest*
18540-
18541- ;;
18542- zeta)
18543- cat >conftest.$ac_ext <<_ACEOF
18544-/* confdefs.h. */
18545-_ACEOF
18546-cat confdefs.h >>conftest.$ac_ext
18547-cat >>conftest.$ac_ext <<_ACEOF
18548-/* end confdefs.h. */
18549-
18550-#include <sys/param.h>
18551-#ifdef _ZETA_MINAMI_INET6
18552-yes
18553-#endif
18554-_ACEOF
18555-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18556- $EGREP "yes" >/dev/null 2>&1; then
18557- ipv6type=$i;
18558- ipv6lib=inet6;
18559- ipv6libdir=/usr/local/v6/lib
18560-fi
18561-rm -f conftest*
18562-
18563- ;;
18564- esac
18565- if test "$ipv6type" != "unknown"; then
18566- break
18567- fi
18568- done
18569- { echo "$as_me:$LINENO: result: $ipv6type" >&5
18570-echo "${ECHO_T}$ipv6type" >&6; }
18571-fi
18572-
18573-if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
18574- if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
18575- LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
18576- echo "using lib$ipv6lib"
18577- else
18578- if test $ipv6trylibc = "yes"; then
18579- echo "using libc"
18580- else
18581- echo 'Fatal: no $ipv6lib library found. cannot continue.'
18582- echo "You need to fetch lib$ipv6lib.a from appropriate"
18583- echo 'ipv6 kit and compile beforehand.'
18584- exit 1
18585- fi
18586- fi
18587-fi
18588-
18589-{ echo "$as_me:$LINENO: checking for OSX 10.5 SDK or later" >&5
18590-echo $ECHO_N "checking for OSX 10.5 SDK or later... $ECHO_C" >&6; }
18591-cat >conftest.$ac_ext <<_ACEOF
18592-/* confdefs.h. */
18593-_ACEOF
18594-cat confdefs.h >>conftest.$ac_ext
18595-cat >>conftest.$ac_ext <<_ACEOF
18596-/* end confdefs.h. */
18597-#include <Carbon/Carbon.h>
18598-int
18599-main ()
18600-{
18601-FSIORefNum fRef = 0
18602- ;
18603- return 0;
18604-}
18605-_ACEOF
18606-rm -f conftest.$ac_objext
18607-if { (ac_try="$ac_compile"
18608-case "(($ac_try" in
18609- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18610- *) ac_try_echo=$ac_try;;
18611-esac
18612-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18613- (eval "$ac_compile") 2>conftest.er1
18614- ac_status=$?
18615- grep -v '^ *+' conftest.er1 >conftest.err
18616- rm -f conftest.er1
18617- cat conftest.err >&5
18618- echo "$as_me:$LINENO: \$? = $ac_status" >&5
18619- (exit $ac_status); } && {
18620- test -z "$ac_c_werror_flag" ||
18621- test ! -s conftest.err
18622- } && test -s conftest.$ac_objext; then
18623-
18624-cat >>confdefs.h <<\_ACEOF
18625-#define HAVE_OSX105_SDK 1
18626-_ACEOF
18627-
18628- { echo "$as_me:$LINENO: result: yes" >&5
18629-echo "${ECHO_T}yes" >&6; }
18630-else
18631- echo "$as_me: failed program was:" >&5
18632-sed 's/^/| /' conftest.$ac_ext >&5
18633-
18634- { echo "$as_me:$LINENO: result: no" >&5
18635-echo "${ECHO_T}no" >&6; }
18636-
18637-fi
18638-
18639-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18640-
18641-# Check for --with-doc-strings
18642-{ echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
18643-echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6; }
18644-
18645-# Check whether --with-doc-strings was given.
18646-if test "${with_doc_strings+set}" = set; then
18647- withval=$with_doc_strings;
18648-fi
18649-
18650-
18651-if test -z "$with_doc_strings"
18652-then with_doc_strings="yes"
18653-fi
18654-if test "$with_doc_strings" != "no"
18655-then
18656-
18657-cat >>confdefs.h <<\_ACEOF
18658-#define WITH_DOC_STRINGS 1
18659-_ACEOF
18660-
18661-fi
18662-{ echo "$as_me:$LINENO: result: $with_doc_strings" >&5
18663-echo "${ECHO_T}$with_doc_strings" >&6; }
18664-
18665-# Check for Python-specific malloc support
18666-{ echo "$as_me:$LINENO: checking for --with-tsc" >&5
18667-echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6; }
18668-
18669-# Check whether --with-tsc was given.
18670-if test "${with_tsc+set}" = set; then
18671- withval=$with_tsc;
18672-if test "$withval" != no
18673-then
18674-
18675-cat >>confdefs.h <<\_ACEOF
18676-#define WITH_TSC 1
18677-_ACEOF
18678-
18679- { echo "$as_me:$LINENO: result: yes" >&5
18680-echo "${ECHO_T}yes" >&6; }
18681-else { echo "$as_me:$LINENO: result: no" >&5
18682-echo "${ECHO_T}no" >&6; }
18683-fi
18684-else
18685- { echo "$as_me:$LINENO: result: no" >&5
18686-echo "${ECHO_T}no" >&6; }
18687-fi
18688-
18689-
18690-# Check for Python-specific malloc support
18691-{ echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
18692-echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6; }
18693-
18694-# Check whether --with-pymalloc was given.
18695-if test "${with_pymalloc+set}" = set; then
18696- withval=$with_pymalloc;
18697-fi
18698-
18699-
18700-if test -z "$with_pymalloc"
18701-then with_pymalloc="yes"
18702-fi
18703-if test "$with_pymalloc" != "no"
18704-then
18705-
18706-cat >>confdefs.h <<\_ACEOF
18707-#define WITH_PYMALLOC 1
18708-_ACEOF
18709-
18710-fi
18711-{ echo "$as_me:$LINENO: result: $with_pymalloc" >&5
18712-echo "${ECHO_T}$with_pymalloc" >&6; }
18713-
18714-# Check for --with-wctype-functions
18715-{ echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
18716-echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6; }
18717-
18718-# Check whether --with-wctype-functions was given.
18719-if test "${with_wctype_functions+set}" = set; then
18720- withval=$with_wctype_functions;
18721-if test "$withval" != no
18722-then
18723-
18724-cat >>confdefs.h <<\_ACEOF
18725-#define WANT_WCTYPE_FUNCTIONS 1
18726-_ACEOF
18727-
18728- { echo "$as_me:$LINENO: result: yes" >&5
18729-echo "${ECHO_T}yes" >&6; }
18730-else { echo "$as_me:$LINENO: result: no" >&5
18731-echo "${ECHO_T}no" >&6; }
18732-fi
18733-else
18734- { echo "$as_me:$LINENO: result: no" >&5
18735-echo "${ECHO_T}no" >&6; }
18736-fi
18737-
18738-
18739-# -I${DLINCLDIR} is added to the compile rule for importdl.o
18740-
18741-DLINCLDIR=.
18742-
18743-# the dlopen() function means we might want to use dynload_shlib.o. some
18744-# platforms, such as AIX, have dlopen(), but don't want to use it.
18745-
18746-for ac_func in dlopen
18747-do
18748-as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18749-{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18750-echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18751-if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18752- echo $ECHO_N "(cached) $ECHO_C" >&6
18753-else
18754- cat >conftest.$ac_ext <<_ACEOF
18755-/* confdefs.h. */
18756-_ACEOF
18757-cat confdefs.h >>conftest.$ac_ext
18758-cat >>conftest.$ac_ext <<_ACEOF
18759-/* end confdefs.h. */
18760-/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18761- For example, HP-UX 11i <limits.h> declares gettimeofday. */
18762-#define $ac_func innocuous_$ac_func
18763-
18764-/* System header to define __stub macros and hopefully few prototypes,
18765- which can conflict with char $ac_func (); below.
18766- Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18767- <limits.h> exists even on freestanding compilers. */
18768-
18769-#ifdef __STDC__
18770-# include <limits.h>
18771-#else
18772-# include <assert.h>
18773-#endif
18774-
18775-#undef $ac_func
18776-
18777-/* Override any GCC internal prototype to avoid an error.
18778- Use char because int might match the return type of a GCC
18779- builtin and then its argument prototype would still apply. */
18780-#ifdef __cplusplus
18781-extern "C"
18782-#endif
18783-char $ac_func ();
18784-/* The GNU C library defines this for functions which it implements
18785- to always fail with ENOSYS. Some functions are actually named
18786- something starting with __ and the normal name is an alias. */
18787-#if defined __stub_$ac_func || defined __stub___$ac_func
18788-choke me
18789-#endif
18790-
18791-int
18792-main ()
18793-{
18794-return $ac_func ();
18795- ;
18796- return 0;
18797-}
18798-_ACEOF
18799-rm -f conftest.$ac_objext conftest$ac_exeext
18800-if { (ac_try="$ac_link"
18801-case "(($ac_try" in
18802- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18803- *) ac_try_echo=$ac_try;;
18804-esac
18805-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18806- (eval "$ac_link") 2>conftest.er1
18807- ac_status=$?
18808- grep -v '^ *+' conftest.er1 >conftest.err
18809- rm -f conftest.er1
18810- cat conftest.err >&5
18811- echo "$as_me:$LINENO: \$? = $ac_status" >&5
18812- (exit $ac_status); } && {
18813- test -z "$ac_c_werror_flag" ||
18814- test ! -s conftest.err
18815- } && test -s conftest$ac_exeext &&
18816- $as_test_x conftest$ac_exeext; then
18817- eval "$as_ac_var=yes"
18818-else
18819- echo "$as_me: failed program was:" >&5
18820-sed 's/^/| /' conftest.$ac_ext >&5
18821-
18822- eval "$as_ac_var=no"
18823-fi
18824-
18825-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18826- conftest$ac_exeext conftest.$ac_ext
18827-fi
18828-ac_res=`eval echo '${'$as_ac_var'}'`
18829- { echo "$as_me:$LINENO: result: $ac_res" >&5
18830-echo "${ECHO_T}$ac_res" >&6; }
18831-if test `eval echo '${'$as_ac_var'}'` = yes; then
18832- cat >>confdefs.h <<_ACEOF
18833-#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18834-_ACEOF
18835-
18836-fi
18837-done
18838-
18839-
18840-# DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
18841-# loading of modules.
18842-
18843-{ echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
18844-echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6; }
18845-if test -z "$DYNLOADFILE"
18846-then
18847- case $ac_sys_system/$ac_sys_release in
18848- AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
18849- if test "$ac_cv_func_dlopen" = yes
18850- then DYNLOADFILE="dynload_shlib.o"
18851- else DYNLOADFILE="dynload_aix.o"
18852- fi
18853- ;;
18854- BeOS*) DYNLOADFILE="dynload_beos.o";;
18855- hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
18856- # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
18857- Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";;
18858- atheos*) DYNLOADFILE="dynload_atheos.o";;
18859- *)
18860- # use dynload_shlib.c and dlopen() if we have it; otherwise stub
18861- # out any dynamic loading
18862- if test "$ac_cv_func_dlopen" = yes
18863- then DYNLOADFILE="dynload_shlib.o"
18864- else DYNLOADFILE="dynload_stub.o"
18865- fi
18866- ;;
18867- esac
18868-fi
18869-{ echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
18870-echo "${ECHO_T}$DYNLOADFILE" >&6; }
18871-if test "$DYNLOADFILE" != "dynload_stub.o"
18872-then
18873-
18874-cat >>confdefs.h <<\_ACEOF
18875-#define HAVE_DYNAMIC_LOADING 1
18876-_ACEOF
18877-
18878-fi
18879-
18880-# MACHDEP_OBJS can be set to platform-specific object files needed by Python
18881-
18882-
18883-{ echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
18884-echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6; }
18885-if test -z "$MACHDEP_OBJS"
18886-then
18887- MACHDEP_OBJS=$extra_machdep_objs
18888-else
18889- MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
18890-fi
18891-{ echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
18892-echo "${ECHO_T}MACHDEP_OBJS" >&6; }
18893-
18894-# checks for library functions
18895-
18896-
18897-
18898-
18899-
18900-
18901-
18902-
18903-
18904-
18905-
18906-
18907-
18908-
18909-
18910-
18911-
18912-
18913-
18914-
18915-
18916-
18917-
18918-
18919-
18920-
18921-
18922-
18923-
18924-
18925-
18926-
18927-
18928-
18929-
18930-
18931-
18932-
18933-
18934-
18935-
18936-
18937-
18938-
18939-
18940-
18941-
18942-
18943-
18944-
18945-
18946-
18947-
18948-
18949-
18950-
18951-
18952-
18953-
18954-
18955-
18956-
18957-
18958-
18959-
18960-
18961-
18962-
18963-
18964-
18965-
18966-
18967-
18968-
18969-
18970-
18971-
18972-
18973-
18974-
18975-
18976-for ac_func in alarm setitimer getitimer bind_textdomain_codeset chown \
18977- clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \
18978- gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
18979- getpriority getpwent getspnam getspent getsid getwd \
18980- kill killpg lchmod lchown lstat mkfifo mknod mktime \
18981- mremap nice pathconf pause plock poll pthread_init \
18982- putenv readlink realpath \
18983- select setegid seteuid setgid \
18984- setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
18985- sigaction siginterrupt sigrelse strftime \
18986- sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
18987- truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty
18988-do
18989-as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18990-{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18991-echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18992-if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18993- echo $ECHO_N "(cached) $ECHO_C" >&6
18994-else
18995- cat >conftest.$ac_ext <<_ACEOF
18996-/* confdefs.h. */
18997-_ACEOF
18998-cat confdefs.h >>conftest.$ac_ext
18999-cat >>conftest.$ac_ext <<_ACEOF
19000-/* end confdefs.h. */
19001-/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19002- For example, HP-UX 11i <limits.h> declares gettimeofday. */
19003-#define $ac_func innocuous_$ac_func
19004-
19005-/* System header to define __stub macros and hopefully few prototypes,
19006- which can conflict with char $ac_func (); below.
19007- Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19008- <limits.h> exists even on freestanding compilers. */
19009-
19010-#ifdef __STDC__
19011-# include <limits.h>
19012-#else
19013-# include <assert.h>
19014-#endif
19015-
19016-#undef $ac_func
19017-
19018-/* Override any GCC internal prototype to avoid an error.
19019- Use char because int might match the return type of a GCC
19020- builtin and then its argument prototype would still apply. */
19021-#ifdef __cplusplus
19022-extern "C"
19023-#endif
19024-char $ac_func ();
19025-/* The GNU C library defines this for functions which it implements
19026- to always fail with ENOSYS. Some functions are actually named
19027- something starting with __ and the normal name is an alias. */
19028-#if defined __stub_$ac_func || defined __stub___$ac_func
19029-choke me
19030-#endif
19031-
19032-int
19033-main ()
19034-{
19035-return $ac_func ();
19036- ;
19037- return 0;
19038-}
19039-_ACEOF
19040-rm -f conftest.$ac_objext conftest$ac_exeext
19041-if { (ac_try="$ac_link"
19042-case "(($ac_try" in
19043- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19044- *) ac_try_echo=$ac_try;;
19045-esac
19046-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19047- (eval "$ac_link") 2>conftest.er1
19048- ac_status=$?
19049- grep -v '^ *+' conftest.er1 >conftest.err
19050- rm -f conftest.er1
19051- cat conftest.err >&5
19052- echo "$as_me:$LINENO: \$? = $ac_status" >&5
19053- (exit $ac_status); } && {
19054- test -z "$ac_c_werror_flag" ||
19055- test ! -s conftest.err
19056- } && test -s conftest$ac_exeext &&
19057- $as_test_x conftest$ac_exeext; then
19058- eval "$as_ac_var=yes"
19059-else
19060- echo "$as_me: failed program was:" >&5
19061-sed 's/^/| /' conftest.$ac_ext >&5
19062-
19063- eval "$as_ac_var=no"
19064-fi
19065-
19066-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19067- conftest$ac_exeext conftest.$ac_ext
19068-fi
19069-ac_res=`eval echo '${'$as_ac_var'}'`
19070- { echo "$as_me:$LINENO: result: $ac_res" >&5
19071-echo "${ECHO_T}$ac_res" >&6; }
19072-if test `eval echo '${'$as_ac_var'}'` = yes; then
19073- cat >>confdefs.h <<_ACEOF
19074-#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19075-_ACEOF
19076-
19077-fi
19078-done
19079-
19080-
19081-# For some functions, having a definition is not sufficient, since
19082-# we want to take their address.
19083-{ echo "$as_me:$LINENO: checking for chroot" >&5
19084-echo $ECHO_N "checking for chroot... $ECHO_C" >&6; }
19085-cat >conftest.$ac_ext <<_ACEOF
19086-/* confdefs.h. */
19087-_ACEOF
19088-cat confdefs.h >>conftest.$ac_ext
19089-cat >>conftest.$ac_ext <<_ACEOF
19090-/* end confdefs.h. */
19091-#include <unistd.h>
19092-int
19093-main ()
19094-{
19095-void *x=chroot
19096- ;
19097- return 0;
19098-}
19099-_ACEOF
19100-rm -f conftest.$ac_objext
19101-if { (ac_try="$ac_compile"
19102-case "(($ac_try" in
19103- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19104- *) ac_try_echo=$ac_try;;
19105-esac
19106-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19107- (eval "$ac_compile") 2>conftest.er1
19108- ac_status=$?
19109- grep -v '^ *+' conftest.er1 >conftest.err
19110- rm -f conftest.er1
19111- cat conftest.err >&5
19112- echo "$as_me:$LINENO: \$? = $ac_status" >&5
19113- (exit $ac_status); } && {
19114- test -z "$ac_c_werror_flag" ||
19115- test ! -s conftest.err
19116- } && test -s conftest.$ac_objext; then
19117-
19118-cat >>confdefs.h <<\_ACEOF
19119-#define HAVE_CHROOT 1
19120-_ACEOF
19121-
19122- { echo "$as_me:$LINENO: result: yes" >&5
19123-echo "${ECHO_T}yes" >&6; }
19124-else
19125- echo "$as_me: failed program was:" >&5
19126-sed 's/^/| /' conftest.$ac_ext >&5
19127-
19128- { echo "$as_me:$LINENO: result: no" >&5
19129-echo "${ECHO_T}no" >&6; }
19130-
19131-fi
19132-
19133-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19134-{ echo "$as_me:$LINENO: checking for link" >&5
19135-echo $ECHO_N "checking for link... $ECHO_C" >&6; }
19136-cat >conftest.$ac_ext <<_ACEOF
19137-/* confdefs.h. */
19138-_ACEOF
19139-cat confdefs.h >>conftest.$ac_ext
19140-cat >>conftest.$ac_ext <<_ACEOF
19141-/* end confdefs.h. */
19142-#include <unistd.h>
19143-int
19144-main ()
19145-{
19146-void *x=link
19147- ;
19148- return 0;
19149-}
19150-_ACEOF
19151-rm -f conftest.$ac_objext
19152-if { (ac_try="$ac_compile"
19153-case "(($ac_try" in
19154- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19155- *) ac_try_echo=$ac_try;;
19156-esac
19157-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19158- (eval "$ac_compile") 2>conftest.er1
19159- ac_status=$?
19160- grep -v '^ *+' conftest.er1 >conftest.err
19161- rm -f conftest.er1
19162- cat conftest.err >&5
19163- echo "$as_me:$LINENO: \$? = $ac_status" >&5
19164- (exit $ac_status); } && {
19165- test -z "$ac_c_werror_flag" ||
19166- test ! -s conftest.err
19167- } && test -s conftest.$ac_objext; then
19168-
19169-cat >>confdefs.h <<\_ACEOF
19170-#define HAVE_LINK 1
19171-_ACEOF
19172-
19173- { echo "$as_me:$LINENO: result: yes" >&5
19174-echo "${ECHO_T}yes" >&6; }
19175-else
19176- echo "$as_me: failed program was:" >&5
19177-sed 's/^/| /' conftest.$ac_ext >&5
19178-
19179- { echo "$as_me:$LINENO: result: no" >&5
19180-echo "${ECHO_T}no" >&6; }
19181-
19182-fi
19183-
19184-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19185-{ echo "$as_me:$LINENO: checking for symlink" >&5
19186-echo $ECHO_N "checking for symlink... $ECHO_C" >&6; }
19187-cat >conftest.$ac_ext <<_ACEOF
19188-/* confdefs.h. */
19189-_ACEOF
19190-cat confdefs.h >>conftest.$ac_ext
19191-cat >>conftest.$ac_ext <<_ACEOF
19192-/* end confdefs.h. */
19193-#include <unistd.h>
19194-int
19195-main ()
19196-{
19197-void *x=symlink
19198- ;
19199- return 0;
19200-}
19201-_ACEOF
19202-rm -f conftest.$ac_objext
19203-if { (ac_try="$ac_compile"
19204-case "(($ac_try" in
19205- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19206- *) ac_try_echo=$ac_try;;
19207-esac
19208-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19209- (eval "$ac_compile") 2>conftest.er1
19210- ac_status=$?
19211- grep -v '^ *+' conftest.er1 >conftest.err
19212- rm -f conftest.er1
19213- cat conftest.err >&5
19214- echo "$as_me:$LINENO: \$? = $ac_status" >&5
19215- (exit $ac_status); } && {
19216- test -z "$ac_c_werror_flag" ||
19217- test ! -s conftest.err
19218- } && test -s conftest.$ac_objext; then
19219-
19220-cat >>confdefs.h <<\_ACEOF
19221-#define HAVE_SYMLINK 1
19222-_ACEOF
19223-
19224- { echo "$as_me:$LINENO: result: yes" >&5
19225-echo "${ECHO_T}yes" >&6; }
19226-else
19227- echo "$as_me: failed program was:" >&5
19228-sed 's/^/| /' conftest.$ac_ext >&5
19229-
19230- { echo "$as_me:$LINENO: result: no" >&5
19231-echo "${ECHO_T}no" >&6; }
19232-
19233-fi
19234-
19235-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19236-{ echo "$as_me:$LINENO: checking for fchdir" >&5
19237-echo $ECHO_N "checking for fchdir... $ECHO_C" >&6; }
19238-cat >conftest.$ac_ext <<_ACEOF
19239-/* confdefs.h. */
19240-_ACEOF
19241-cat confdefs.h >>conftest.$ac_ext
19242-cat >>conftest.$ac_ext <<_ACEOF
19243-/* end confdefs.h. */
19244-#include <unistd.h>
19245-int
19246-main ()
19247-{
19248-void *x=fchdir
19249- ;
19250- return 0;
19251-}
19252-_ACEOF
19253-rm -f conftest.$ac_objext
19254-if { (ac_try="$ac_compile"
19255-case "(($ac_try" in
19256- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19257- *) ac_try_echo=$ac_try;;
19258-esac
19259-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19260- (eval "$ac_compile") 2>conftest.er1
19261- ac_status=$?
19262- grep -v '^ *+' conftest.er1 >conftest.err
19263- rm -f conftest.er1
19264- cat conftest.err >&5
19265- echo "$as_me:$LINENO: \$? = $ac_status" >&5
19266- (exit $ac_status); } && {
19267- test -z "$ac_c_werror_flag" ||
19268- test ! -s conftest.err
19269- } && test -s conftest.$ac_objext; then
19270-
19271-cat >>confdefs.h <<\_ACEOF
19272-#define HAVE_FCHDIR 1
19273-_ACEOF
19274-
19275- { echo "$as_me:$LINENO: result: yes" >&5
19276-echo "${ECHO_T}yes" >&6; }
19277-else
19278- echo "$as_me: failed program was:" >&5
19279-sed 's/^/| /' conftest.$ac_ext >&5
19280-
19281- { echo "$as_me:$LINENO: result: no" >&5
19282-echo "${ECHO_T}no" >&6; }
19283-
19284-fi
19285-
19286-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19287-{ echo "$as_me:$LINENO: checking for fsync" >&5
19288-echo $ECHO_N "checking for fsync... $ECHO_C" >&6; }
19289-cat >conftest.$ac_ext <<_ACEOF
19290-/* confdefs.h. */
19291-_ACEOF
19292-cat confdefs.h >>conftest.$ac_ext
19293-cat >>conftest.$ac_ext <<_ACEOF
19294-/* end confdefs.h. */
19295-#include <unistd.h>
19296-int
19297-main ()
19298-{
19299-void *x=fsync
19300- ;
19301- return 0;
19302-}
19303-_ACEOF
19304-rm -f conftest.$ac_objext
19305-if { (ac_try="$ac_compile"
19306-case "(($ac_try" in
19307- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19308- *) ac_try_echo=$ac_try;;
19309-esac
19310-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19311- (eval "$ac_compile") 2>conftest.er1
19312- ac_status=$?
19313- grep -v '^ *+' conftest.er1 >conftest.err
19314- rm -f conftest.er1
19315- cat conftest.err >&5
19316- echo "$as_me:$LINENO: \$? = $ac_status" >&5
19317- (exit $ac_status); } && {
19318- test -z "$ac_c_werror_flag" ||
19319- test ! -s conftest.err
19320- } && test -s conftest.$ac_objext; then
19321-
19322-cat >>confdefs.h <<\_ACEOF
19323-#define HAVE_FSYNC 1
19324-_ACEOF
19325-
19326- { echo "$as_me:$LINENO: result: yes" >&5
19327-echo "${ECHO_T}yes" >&6; }
19328-else
19329- echo "$as_me: failed program was:" >&5
19330-sed 's/^/| /' conftest.$ac_ext >&5
19331-
19332- { echo "$as_me:$LINENO: result: no" >&5
19333-echo "${ECHO_T}no" >&6; }
19334-
19335-fi
19336-
19337-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19338-{ echo "$as_me:$LINENO: checking for fdatasync" >&5
19339-echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; }
19340-cat >conftest.$ac_ext <<_ACEOF
19341-/* confdefs.h. */
19342-_ACEOF
19343-cat confdefs.h >>conftest.$ac_ext
19344-cat >>conftest.$ac_ext <<_ACEOF
19345-/* end confdefs.h. */
19346-#include <unistd.h>
19347-int
19348-main ()
19349-{
19350-void *x=fdatasync
19351- ;
19352- return 0;
19353-}
19354-_ACEOF
19355-rm -f conftest.$ac_objext
19356-if { (ac_try="$ac_compile"
19357-case "(($ac_try" in
19358- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19359- *) ac_try_echo=$ac_try;;
19360-esac
19361-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19362- (eval "$ac_compile") 2>conftest.er1
19363- ac_status=$?
19364- grep -v '^ *+' conftest.er1 >conftest.err
19365- rm -f conftest.er1
19366- cat conftest.err >&5
19367- echo "$as_me:$LINENO: \$? = $ac_status" >&5
19368- (exit $ac_status); } && {
19369- test -z "$ac_c_werror_flag" ||
19370- test ! -s conftest.err
19371- } && test -s conftest.$ac_objext; then
19372-
19373-cat >>confdefs.h <<\_ACEOF
19374-#define HAVE_FDATASYNC 1
19375-_ACEOF
19376-
19377- { echo "$as_me:$LINENO: result: yes" >&5
19378-echo "${ECHO_T}yes" >&6; }
19379-else
19380- echo "$as_me: failed program was:" >&5
19381-sed 's/^/| /' conftest.$ac_ext >&5
19382-
19383- { echo "$as_me:$LINENO: result: no" >&5
19384-echo "${ECHO_T}no" >&6; }
19385-
19386-fi
19387-
19388-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19389-{ echo "$as_me:$LINENO: checking for epoll" >&5
19390-echo $ECHO_N "checking for epoll... $ECHO_C" >&6; }
19391-cat >conftest.$ac_ext <<_ACEOF
19392-/* confdefs.h. */
19393-_ACEOF
19394-cat confdefs.h >>conftest.$ac_ext
19395-cat >>conftest.$ac_ext <<_ACEOF
19396-/* end confdefs.h. */
19397-#include <sys/epoll.h>
19398-int
19399-main ()
19400-{
19401-void *x=epoll_create
19402- ;
19403- return 0;
19404-}
19405-_ACEOF
19406-rm -f conftest.$ac_objext
19407-if { (ac_try="$ac_compile"
19408-case "(($ac_try" in
19409- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19410- *) ac_try_echo=$ac_try;;
19411-esac
19412-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19413- (eval "$ac_compile") 2>conftest.er1
19414- ac_status=$?
19415- grep -v '^ *+' conftest.er1 >conftest.err
19416- rm -f conftest.er1
19417- cat conftest.err >&5
19418- echo "$as_me:$LINENO: \$? = $ac_status" >&5
19419- (exit $ac_status); } && {
19420- test -z "$ac_c_werror_flag" ||
19421- test ! -s conftest.err
19422- } && test -s conftest.$ac_objext; then
19423-
19424-cat >>confdefs.h <<\_ACEOF
19425-#define HAVE_EPOLL 1
19426-_ACEOF
19427-
19428- { echo "$as_me:$LINENO: result: yes" >&5
19429-echo "${ECHO_T}yes" >&6; }
19430-else
19431- echo "$as_me: failed program was:" >&5
19432-sed 's/^/| /' conftest.$ac_ext >&5
19433-
19434- { echo "$as_me:$LINENO: result: no" >&5
19435-echo "${ECHO_T}no" >&6; }
19436-
19437-fi
19438-
19439-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19440-{ echo "$as_me:$LINENO: checking for kqueue" >&5
19441-echo $ECHO_N "checking for kqueue... $ECHO_C" >&6; }
19442-cat >conftest.$ac_ext <<_ACEOF
19443-/* confdefs.h. */
19444-_ACEOF
19445-cat confdefs.h >>conftest.$ac_ext
19446-cat >>conftest.$ac_ext <<_ACEOF
19447-/* end confdefs.h. */
19448-
19449-#include <sys/types.h>
19450-#include <sys/event.h>
19451-
19452-int
19453-main ()
19454-{
19455-int x=kqueue()
19456- ;
19457- return 0;
19458-}
19459-_ACEOF
19460-rm -f conftest.$ac_objext
19461-if { (ac_try="$ac_compile"
19462-case "(($ac_try" in
19463- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19464- *) ac_try_echo=$ac_try;;
19465-esac
19466-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19467- (eval "$ac_compile") 2>conftest.er1
19468- ac_status=$?
19469- grep -v '^ *+' conftest.er1 >conftest.err
19470- rm -f conftest.er1
19471- cat conftest.err >&5
19472- echo "$as_me:$LINENO: \$? = $ac_status" >&5
19473- (exit $ac_status); } && {
19474- test -z "$ac_c_werror_flag" ||
19475- test ! -s conftest.err
19476- } && test -s conftest.$ac_objext; then
19477-
19478-cat >>confdefs.h <<\_ACEOF
19479-#define HAVE_KQUEUE 1
19480-_ACEOF
19481-
19482- { echo "$as_me:$LINENO: result: yes" >&5
19483-echo "${ECHO_T}yes" >&6; }
19484-else
19485- echo "$as_me: failed program was:" >&5
19486-sed 's/^/| /' conftest.$ac_ext >&5
19487-
19488- { echo "$as_me:$LINENO: result: no" >&5
19489-echo "${ECHO_T}no" >&6; }
19490-
19491-fi
19492-
19493-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19494-# On some systems (eg. FreeBSD 5), we would find a definition of the
19495-# functions ctermid_r, setgroups in the library, but no prototype
19496-# (e.g. because we use _XOPEN_SOURCE). See whether we can take their
19497-# address to avoid compiler warnings and potential miscompilations
19498-# because of the missing prototypes.
19499-
19500-{ echo "$as_me:$LINENO: checking for ctermid_r" >&5
19501-echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6; }
19502-cat >conftest.$ac_ext <<_ACEOF
19503-/* confdefs.h. */
19504-_ACEOF
19505-cat confdefs.h >>conftest.$ac_ext
19506-cat >>conftest.$ac_ext <<_ACEOF
19507-/* end confdefs.h. */
19508-
19509-#include "confdefs.h"
19510-#include <stdio.h>
19511-
19512-int
19513-main ()
19514-{
19515-void* p = ctermid_r
19516- ;
19517- return 0;
19518-}
19519-_ACEOF
19520-rm -f conftest.$ac_objext
19521-if { (ac_try="$ac_compile"
19522-case "(($ac_try" in
19523- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19524- *) ac_try_echo=$ac_try;;
19525-esac
19526-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19527- (eval "$ac_compile") 2>conftest.er1
19528- ac_status=$?
19529- grep -v '^ *+' conftest.er1 >conftest.err
19530- rm -f conftest.er1
19531- cat conftest.err >&5
19532- echo "$as_me:$LINENO: \$? = $ac_status" >&5
19533- (exit $ac_status); } && {
19534- test -z "$ac_c_werror_flag" ||
19535- test ! -s conftest.err
19536- } && test -s conftest.$ac_objext; then
19537-
19538-cat >>confdefs.h <<\_ACEOF
19539-#define HAVE_CTERMID_R 1
19540-_ACEOF
19541-
19542- { echo "$as_me:$LINENO: result: yes" >&5
19543-echo "${ECHO_T}yes" >&6; }
19544-else
19545- echo "$as_me: failed program was:" >&5
19546-sed 's/^/| /' conftest.$ac_ext >&5
19547-
19548- { echo "$as_me:$LINENO: result: no" >&5
19549-echo "${ECHO_T}no" >&6; }
19550-
19551-fi
19552-
19553-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19554-
19555-{ echo "$as_me:$LINENO: checking for flock" >&5
19556-echo $ECHO_N "checking for flock... $ECHO_C" >&6; }
19557-cat >conftest.$ac_ext <<_ACEOF
19558-/* confdefs.h. */
19559-_ACEOF
19560-cat confdefs.h >>conftest.$ac_ext
19561-cat >>conftest.$ac_ext <<_ACEOF
19562-/* end confdefs.h. */
19563-
19564-#include "confdefs.h"
19565-#include <sys/file.h>
19566-
19567-int
19568-main ()
19569-{
19570-void* p = flock
19571- ;
19572- return 0;
19573-}
19574-_ACEOF
19575-rm -f conftest.$ac_objext
19576-if { (ac_try="$ac_compile"
19577-case "(($ac_try" in
19578- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19579- *) ac_try_echo=$ac_try;;
19580-esac
19581-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19582- (eval "$ac_compile") 2>conftest.er1
19583- ac_status=$?
19584- grep -v '^ *+' conftest.er1 >conftest.err
19585- rm -f conftest.er1
19586- cat conftest.err >&5
19587- echo "$as_me:$LINENO: \$? = $ac_status" >&5
19588- (exit $ac_status); } && {
19589- test -z "$ac_c_werror_flag" ||
19590- test ! -s conftest.err
19591- } && test -s conftest.$ac_objext; then
19592-
19593-cat >>confdefs.h <<\_ACEOF
19594-#define HAVE_FLOCK 1
19595-_ACEOF
19596-
19597- { echo "$as_me:$LINENO: result: yes" >&5
19598-echo "${ECHO_T}yes" >&6; }
19599-else
19600- echo "$as_me: failed program was:" >&5
19601-sed 's/^/| /' conftest.$ac_ext >&5
19602-
19603- { echo "$as_me:$LINENO: result: no" >&5
19604-echo "${ECHO_T}no" >&6; }
19605-
19606-fi
19607-
19608-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19609-
19610-{ echo "$as_me:$LINENO: checking for getpagesize" >&5
19611-echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; }
19612-cat >conftest.$ac_ext <<_ACEOF
19613-/* confdefs.h. */
19614-_ACEOF
19615-cat confdefs.h >>conftest.$ac_ext
19616-cat >>conftest.$ac_ext <<_ACEOF
19617-/* end confdefs.h. */
19618-
19619-#include "confdefs.h"
19620-#include <unistd.h>
19621-
19622-int
19623-main ()
19624-{
19625-void* p = getpagesize
19626- ;
19627- return 0;
19628-}
19629-_ACEOF
19630-rm -f conftest.$ac_objext
19631-if { (ac_try="$ac_compile"
19632-case "(($ac_try" in
19633- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19634- *) ac_try_echo=$ac_try;;
19635-esac
19636-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19637- (eval "$ac_compile") 2>conftest.er1
19638- ac_status=$?
19639- grep -v '^ *+' conftest.er1 >conftest.err
19640- rm -f conftest.er1
19641- cat conftest.err >&5
19642- echo "$as_me:$LINENO: \$? = $ac_status" >&5
19643- (exit $ac_status); } && {
19644- test -z "$ac_c_werror_flag" ||
19645- test ! -s conftest.err
19646- } && test -s conftest.$ac_objext; then
19647-
19648-cat >>confdefs.h <<\_ACEOF
19649-#define HAVE_GETPAGESIZE 1
19650-_ACEOF
19651-
19652- { echo "$as_me:$LINENO: result: yes" >&5
19653-echo "${ECHO_T}yes" >&6; }
19654-else
19655- echo "$as_me: failed program was:" >&5
19656-sed 's/^/| /' conftest.$ac_ext >&5
19657-
19658- { echo "$as_me:$LINENO: result: no" >&5
19659-echo "${ECHO_T}no" >&6; }
19660-
19661-fi
19662-
19663-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19664-
19665-for ac_prog in true
19666-do
19667- # Extract the first word of "$ac_prog", so it can be a program name with args.
19668-set dummy $ac_prog; ac_word=$2
19669-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19670-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19671-if test "${ac_cv_prog_TRUE+set}" = set; then
19672- echo $ECHO_N "(cached) $ECHO_C" >&6
19673-else
19674- if test -n "$TRUE"; then
19675- ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
19676-else
19677-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19678-for as_dir in $PATH
19679-do
19680- IFS=$as_save_IFS
19681- test -z "$as_dir" && as_dir=.
19682- for ac_exec_ext in '' $ac_executable_extensions; do
19683- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19684- ac_cv_prog_TRUE="$ac_prog"
19685- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19686- break 2
19687- fi
19688-done
19689-done
19690-IFS=$as_save_IFS
19691-
19692-fi
19693-fi
19694-TRUE=$ac_cv_prog_TRUE
19695-if test -n "$TRUE"; then
19696- { echo "$as_me:$LINENO: result: $TRUE" >&5
19697-echo "${ECHO_T}$TRUE" >&6; }
19698-else
19699- { echo "$as_me:$LINENO: result: no" >&5
19700-echo "${ECHO_T}no" >&6; }
19701-fi
19702-
19703-
19704- test -n "$TRUE" && break
19705-done
19706-test -n "$TRUE" || TRUE="/bin/true"
19707-
19708-
19709-{ echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
19710-echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6; }
19711-if test "${ac_cv_lib_c_inet_aton+set}" = set; then
19712- echo $ECHO_N "(cached) $ECHO_C" >&6
19713-else
19714- ac_check_lib_save_LIBS=$LIBS
19715-LIBS="-lc $LIBS"
19716-cat >conftest.$ac_ext <<_ACEOF
19717-/* confdefs.h. */
19718-_ACEOF
19719-cat confdefs.h >>conftest.$ac_ext
19720-cat >>conftest.$ac_ext <<_ACEOF
19721-/* end confdefs.h. */
19722
19723-/* Override any GCC internal prototype to avoid an error.
19724- Use char because int might match the return type of a GCC
19725- builtin and then its argument prototype would still apply. */
19726-#ifdef __cplusplus
19727-extern "C"
19728-#endif
19729-char inet_aton ();
19730-int
19731-main ()
19732-{
19733-return inet_aton ();
19734- ;
19735- return 0;
19736-}
19737-_ACEOF
19738-rm -f conftest.$ac_objext conftest$ac_exeext
19739-if { (ac_try="$ac_link"
19740-case "(($ac_try" in
19741- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19742- *) ac_try_echo=$ac_try;;
19743-esac
19744-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19745- (eval "$ac_link") 2>conftest.er1
19746- ac_status=$?
19747- grep -v '^ *+' conftest.er1 >conftest.err
19748- rm -f conftest.er1
19749- cat conftest.err >&5
19750- echo "$as_me:$LINENO: \$? = $ac_status" >&5
19751- (exit $ac_status); } && {
19752- test -z "$ac_c_werror_flag" ||
19753- test ! -s conftest.err
19754- } && test -s conftest$ac_exeext &&
19755- $as_test_x conftest$ac_exeext; then
19756- ac_cv_lib_c_inet_aton=yes
19757-else
19758- echo "$as_me: failed program was:" >&5
19759-sed 's/^/| /' conftest.$ac_ext >&5
19760-
19761- ac_cv_lib_c_inet_aton=no
19762-fi
19763+# LDSHARED is the ld *command* used to create shared library
19764+# -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
19765+# (Shared libraries in this instance are shared modules to be loaded into
19766+# Python, as opposed to building Python itself as a shared library.)
19767+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LDSHARED" >&5
19768+$as_echo_n "checking LDSHARED... " >&6; }
19769+if test -z "$LDSHARED"
19770+then
19771+ case $ac_sys_system/$ac_sys_release in
19772+ AIX*)
19773+ BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
19774+ LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
19775+ ;;
19776+ BeOS*)
19777+ BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
19778+ LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
19779+ ;;
19780+ IRIX/5*) LDSHARED="ld -shared";;
19781+ IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
19782+ SunOS/5*)
19783+ if test "$GCC" = "yes"
19784+ then LDSHARED='$(CC) -shared'
19785+ else LDSHARED='$(CC) -G';
19786+ fi ;;
19787+ hp*|HP*)
19788+ if test "$GCC" = "yes"
19789+ then LDSHARED='$(CC) -shared'
19790+ else LDSHARED='ld -b';
19791+ fi ;;
19792+ OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
19793+ Darwin/1.3*)
19794+ LDSHARED='$(CC) $(LDFLAGS) -bundle'
19795+ if test "$enable_framework" ; then
19796+ # Link against the framework. All externals should be defined.
19797+ BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
19798+ LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
19799+ else
19800+ # No framework. Ignore undefined symbols, assuming they come from Python
19801+ LDSHARED="$LDSHARED -undefined suppress"
19802+ fi ;;
19803+ Darwin/1.4*|Darwin/5.*|Darwin/6.*)
19804+ LDSHARED='$(CC) $(LDFLAGS) -bundle'
19805+ if test "$enable_framework" ; then
19806+ # Link against the framework. All externals should be defined.
19807+ BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
19808+ LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
19809+ else
19810+ # No framework, use the Python app as bundle-loader
19811+ BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
19812+ LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
19813+ fi ;;
19814+ Darwin/*)
19815+ # Use -undefined dynamic_lookup whenever possible (10.3 and later).
19816+ # This allows an extension to be used in any Python
19817
19818-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19819- conftest$ac_exeext conftest.$ac_ext
19820-LIBS=$ac_check_lib_save_LIBS
19821+ if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2
19822+ then
19823+ if test "${enable_universalsdk}"; then
19824+ LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
19825+ fi
19826+ LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
19827+ BLDSHARED="$LDSHARED"
19828+ else
19829+ LDSHARED='$(CC) $(LDFLAGS) -bundle'
19830+ if test "$enable_framework" ; then
19831+ # Link against the framework. All externals should be defined.
19832+ BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
19833+ LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
19834+ else
19835+ # No framework, use the Python app as bundle-loader
19836+ BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
19837+ LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
19838+ fi
19839+ fi
19840+ ;;
19841+ Linux*|GNU*|QNX*) LDSHARED='$(CC) -shared';;
19842+ BSD/OS*/4*) LDSHARED="gcc -shared";;
19843+ FreeBSD*)
19844+ if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
19845+ then
19846+ LDSHARED="$CC -shared ${LDFLAGS}"
19847+ else
19848+ LDSHARED="ld -Bshareable ${LDFLAGS}"
19849+ fi;;
19850+ OpenBSD*)
19851+ if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
19852+ then
19853+ LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
19854+ else
19855+ case `uname -r` in
19856+ [01].* | 2.[0-7] | 2.[0-7].*)
19857+ LDSHARED="ld -Bshareable ${LDFLAGS}"
19858+ ;;
19859+ *)
19860+ LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
19861+ ;;
19862+ esac
19863+ fi;;
19864+ NetBSD*|DragonFly*) LDSHARED="cc -shared ${LDFLAGS}";;
19865+ OpenUNIX*|UnixWare*)
19866+ if test "$GCC" = "yes"
19867+ then LDSHARED='$(CC) -shared'
19868+ else LDSHARED='$(CC) -G'
19869+ fi;;
19870+ SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';;
19871+ Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
19872+ CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";;
19873+ mingw*) LDSHARED='$(CC) -mdll'
19874+ BLDSHARED='$(CC) -mdll libpython$(VERSION).dll';;
19875+ atheos*) LDSHARED="gcc -shared";;
19876+ *) LDSHARED="ld";;
19877+ esac
19878 fi
19879-{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
19880-echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6; }
19881-if test $ac_cv_lib_c_inet_aton = yes; then
19882- $ac_cv_prog_TRUE
19883-else
19884-
19885-{ echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
19886-echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
19887-if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
19888- echo $ECHO_N "(cached) $ECHO_C" >&6
19889-else
19890- ac_check_lib_save_LIBS=$LIBS
19891-LIBS="-lresolv $LIBS"
19892-cat >conftest.$ac_ext <<_ACEOF
19893-/* confdefs.h. */
19894-_ACEOF
19895-cat confdefs.h >>conftest.$ac_ext
19896-cat >>conftest.$ac_ext <<_ACEOF
19897-/* end confdefs.h. */
19898-
19899-/* Override any GCC internal prototype to avoid an error.
19900- Use char because int might match the return type of a GCC
19901- builtin and then its argument prototype would still apply. */
19902-#ifdef __cplusplus
19903-extern "C"
19904-#endif
19905-char inet_aton ();
19906-int
19907-main ()
19908-{
19909-return inet_aton ();
19910- ;
19911- return 0;
19912-}
19913-_ACEOF
19914-rm -f conftest.$ac_objext conftest$ac_exeext
19915-if { (ac_try="$ac_link"
19916-case "(($ac_try" in
19917- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19918- *) ac_try_echo=$ac_try;;
19919-esac
19920-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19921- (eval "$ac_link") 2>conftest.er1
19922- ac_status=$?
19923- grep -v '^ *+' conftest.er1 >conftest.err
19924- rm -f conftest.er1
19925- cat conftest.err >&5
19926- echo "$as_me:$LINENO: \$? = $ac_status" >&5
19927- (exit $ac_status); } && {
19928- test -z "$ac_c_werror_flag" ||
19929- test ! -s conftest.err
19930- } && test -s conftest$ac_exeext &&
19931- $as_test_x conftest$ac_exeext; then
19932- ac_cv_lib_resolv_inet_aton=yes
19933-else
19934- echo "$as_me: failed program was:" >&5
19935-sed 's/^/| /' conftest.$ac_ext >&5
19936-
19937- ac_cv_lib_resolv_inet_aton=no
19938+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDSHARED" >&5
19939+$as_echo "$LDSHARED" >&6; }
19940+BLDSHARED=${BLDSHARED-$LDSHARED}
19941+# CCSHARED are the C *flags* used to create objects to go into a shared
19942+# library (module) -- this is only needed for a few systems
19943+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CCSHARED" >&5
19944+$as_echo_n "checking CCSHARED... " >&6; }
19945+if test -z "$CCSHARED"
19946+then
19947+ case $ac_sys_system/$ac_sys_release in
19948+ SunOS*) if test "$GCC" = yes;
19949+ then CCSHARED="-fPIC";
19950+ elif test `uname -p` = sparc;
19951+ then CCSHARED="-xcode=pic32";
19952+ else CCSHARED="-Kpic";
19953+ fi;;
19954+ hp*|HP*) if test "$GCC" = yes;
19955+ then CCSHARED="-fPIC";
19956+ else CCSHARED="+z";
19957+ fi;;
19958+ Linux*|GNU*) CCSHARED="-fPIC";;
19959+ BSD/OS*/4*) CCSHARED="-fpic";;
19960+ FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";;
19961+ OpenUNIX*|UnixWare*)
19962+ if test "$GCC" = "yes"
19963+ then CCSHARED="-fPIC"
19964+ else CCSHARED="-KPIC"
19965+ fi;;
19966+ SCO_SV*)
19967+ if test "$GCC" = "yes"
19968+ then CCSHARED="-fPIC"
19969+ else CCSHARED="-Kpic -belf"
19970+ fi;;
19971+ Monterey*) CCSHARED="-G";;
19972+ IRIX*/6*) case $CC in
19973+ *gcc*) CCSHARED="-shared";;
19974+ *) CCSHARED="";;
19975+ esac;;
19976+ atheos*) CCSHARED="-fPIC";;
19977+ esac
19978 fi
19979+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCSHARED" >&5
19980+$as_echo "$CCSHARED" >&6; }
19981+# LINKFORSHARED are the flags passed to the $(CC) command that links
19982+# the python executable -- this is only needed for a few systems
19983+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKFORSHARED" >&5
19984+$as_echo_n "checking LINKFORSHARED... " >&6; }
19985+if test -z "$LINKFORSHARED"
19986+then
19987+ case $ac_sys_system/$ac_sys_release in
19988+ AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';;
19989+ hp*|HP*)
19990+ LINKFORSHARED="-Wl,-E -Wl,+s";;
19991+# LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
19992+ BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
19993+ Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
19994+ # -u libsys_s pulls in all symbols in libsys
19995+ Darwin/*)
19996+ # -u _PyMac_Error is needed to pull in the mac toolbox glue,
19997+ # which is
19998+ # not used by the core itself but which needs to be in the core so
19999+ # that dynamically loaded extension modules have access to it.
20000+ # -prebind is no longer used, because it actually seems to give a
20001+ # slowdown in stead of a speedup, maybe due to the large number of
20002+ # dynamic loads Python does.
20003
20004-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20005- conftest$ac_exeext conftest.$ac_ext
20006-LIBS=$ac_check_lib_save_LIBS
20007+ LINKFORSHARED="$extra_undefs"
20008+ if test "$enable_framework"
20009+ then
20010+ LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
20011+ fi
20012+ LINKFORSHARED="$LINKFORSHARED";;
20013+ OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
20014+ SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
20015+ ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
20016+ FreeBSD*|NetBSD*|OpenBSD*|DragonFly*)
20017+ if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
20018+ then
20019+ LINKFORSHARED="-Wl,--export-dynamic"
20020+ fi;;
20021+ SunOS/5*) case $CC in
20022+ *gcc*)
20023+ if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
20024+ then
20025+ LINKFORSHARED="-Xlinker --export-dynamic"
20026+ fi;;
20027+ esac;;
20028+ CYGWIN*)
20029+ if test $enable_shared = "no"
20030+ then
20031+ LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)'
20032+ fi;;
20033+ mingw*)
20034+ if test $enable_shared = "no"
20035+ then
20036+ LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)'
20037+ fi;;
20038+ QNX*)
20039+ # -Wl,-E causes the symbols to be added to the dynamic
20040+ # symbol table so that they can be found when a module
20041+ # is loaded. -N 2048K causes the stack size to be set
20042+ # to 2048 kilobytes so that the stack doesn't overflow
20043+ # when running test_compile.py.
20044+ LINKFORSHARED='-Wl,-E -N 2048K';;
20045+ esac
20046 fi
20047-{ echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
20048-echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
20049-if test $ac_cv_lib_resolv_inet_aton = yes; then
20050- cat >>confdefs.h <<_ACEOF
20051-#define HAVE_LIBRESOLV 1
20052-_ACEOF
20053+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKFORSHARED" >&5
20054+$as_echo "$LINKFORSHARED" >&6; }
20055
20056- LIBS="-lresolv $LIBS"
20057-
20058-fi
20059
20060
20061+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGSFORSHARED" >&5
20062+$as_echo_n "checking CFLAGSFORSHARED... " >&6; }
20063+if test ! "$LIBRARY" = "$LDLIBRARY"
20064+then
20065+ case $ac_sys_system in
20066+ CYGWIN*)
20067+ # Cygwin needs CCSHARED when building extension DLLs
20068+ # but not when building the interpreter DLL.
20069+ CFLAGSFORSHARED='';;
20070+ *)
20071+ CFLAGSFORSHARED='$(CCSHARED)'
20072+ esac
20073 fi
20074+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLAGSFORSHARED" >&5
20075+$as_echo "$CFLAGSFORSHARED" >&6; }
20076
20077+# SHLIBS are libraries (except -lc and -lm) to link to the python shared
20078+# library (with --enable-shared).
20079+# For platforms on which shared libraries are not allowed to have unresolved
20080+# symbols, this must be set to $(LIBS) (expanded by make). We do this even
20081+# if it is not required, since it creates a dependency of the shared library
20082+# to LIBS. This, in turn, means that applications linking the shared libpython
20083+# don't need to link LIBS explicitly. The default should be only changed
20084+# on systems where this approach causes problems.
20085
20086-# On Tru64, chflags seems to be present, but calling it will
20087-# exit Python
20088-{ echo "$as_me:$LINENO: checking for chflags" >&5
20089-echo $ECHO_N "checking for chflags... $ECHO_C" >&6; }
20090-if test "$cross_compiling" = yes; then
20091- { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20092-See \`config.log' for more details." >&5
20093-echo "$as_me: error: cannot run test program while cross compiling
20094-See \`config.log' for more details." >&2;}
20095- { (exit 1); exit 1; }; }
20096-else
20097- cat >conftest.$ac_ext <<_ACEOF
20098-/* confdefs.h. */
20099-_ACEOF
20100-cat confdefs.h >>conftest.$ac_ext
20101-cat >>conftest.$ac_ext <<_ACEOF
20102-/* end confdefs.h. */
20103-
20104-#include <sys/stat.h>
20105-#include <unistd.h>
20106-int main(int argc, char*argv[])
20107-{
20108- if(chflags(argv[0], 0) != 0)
20109- return 1;
20110- return 0;
20111-}
20112-
20113-_ACEOF
20114-rm -f conftest$ac_exeext
20115-if { (ac_try="$ac_link"
20116-case "(($ac_try" in
20117- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20118- *) ac_try_echo=$ac_try;;
20119-esac
20120-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20121- (eval "$ac_link") 2>&5
20122- ac_status=$?
20123- echo "$as_me:$LINENO: \$? = $ac_status" >&5
20124- (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20125- { (case "(($ac_try" in
20126- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20127- *) ac_try_echo=$ac_try;;
20128-esac
20129-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20130- (eval "$ac_try") 2>&5
20131- ac_status=$?
20132- echo "$as_me:$LINENO: \$? = $ac_status" >&5
20133- (exit $ac_status); }; }; then
20134-
20135-cat >>confdefs.h <<\_ACEOF
20136-#define HAVE_CHFLAGS 1
20137-_ACEOF
20138-
20139- { echo "$as_me:$LINENO: result: yes" >&5
20140-echo "${ECHO_T}yes" >&6; }
20141-else
20142- echo "$as_me: program exited with status $ac_status" >&5
20143-echo "$as_me: failed program was:" >&5
20144-sed 's/^/| /' conftest.$ac_ext >&5
20145-
20146-( exit $ac_status )
20147-{ echo "$as_me:$LINENO: result: no" >&5
20148-echo "${ECHO_T}no" >&6; }
20149-
20150-fi
20151-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20152-fi
20153-
20154+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SHLIBS" >&5
20155+$as_echo_n "checking SHLIBS... " >&6; }
20156+case "$ac_sys_system" in
20157+ *)
20158+ SHLIBS='$(LIBS)';;
20159+esac
20160+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIBS" >&5
20161+$as_echo "$SHLIBS" >&6; }
20162
20163
20164-{ echo "$as_me:$LINENO: checking for lchflags" >&5
20165-echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; }
20166-if test "$cross_compiling" = yes; then
20167- { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20168-See \`config.log' for more details." >&5
20169-echo "$as_me: error: cannot run test program while cross compiling
20170-See \`config.log' for more details." >&2;}
20171- { (exit 1); exit 1; }; }
20172+# checks for libraries
20173+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
20174+$as_echo_n "checking for dlopen in -ldl... " >&6; }
20175+if ${ac_cv_lib_dl_dlopen+:} false; then :
20176+ $as_echo_n "(cached) " >&6
20177 else
20178- cat >conftest.$ac_ext <<_ACEOF
20179-/* confdefs.h. */
20180-_ACEOF
20181-cat confdefs.h >>conftest.$ac_ext
20182-cat >>conftest.$ac_ext <<_ACEOF
20183+ ac_check_lib_save_LIBS=$LIBS
20184+LIBS="-ldl $LIBS"
20185+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20186 /* end confdefs.h. */
20187
20188-#include <sys/stat.h>
20189-#include <unistd.h>
20190-int main(int argc, char*argv[])
20191+/* Override any GCC internal prototype to avoid an error.
20192+ Use char because int might match the return type of a GCC
20193+ builtin and then its argument prototype would still apply. */
20194+#ifdef __cplusplus
20195+extern "C"
20196+#endif
20197+char dlopen ();
20198+int
20199+main ()
20200 {
20201- if(lchflags(argv[0], 0) != 0)
20202- return 1;
20203+return dlopen ();
20204+ ;
20205 return 0;
20206 }
20207-
20208-_ACEOF
20209-rm -f conftest$ac_exeext
20210-if { (ac_try="$ac_link"
20211-case "(($ac_try" in
20212- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20213- *) ac_try_echo=$ac_try;;
20214-esac
20215-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20216- (eval "$ac_link") 2>&5
20217- ac_status=$?
20218- echo "$as_me:$LINENO: \$? = $ac_status" >&5
20219- (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20220- { (case "(($ac_try" in
20221- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20222- *) ac_try_echo=$ac_try;;
20223-esac
20224-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20225- (eval "$ac_try") 2>&5
20226- ac_status=$?
20227- echo "$as_me:$LINENO: \$? = $ac_status" >&5
20228- (exit $ac_status); }; }; then
20229-
20230-cat >>confdefs.h <<\_ACEOF
20231-#define HAVE_LCHFLAGS 1
20232 _ACEOF
20233-
20234- { echo "$as_me:$LINENO: result: yes" >&5
20235-echo "${ECHO_T}yes" >&6; }
20236+if ac_fn_c_try_link "$LINENO"; then :
20237+ ac_cv_lib_dl_dlopen=yes
20238 else
20239- echo "$as_me: program exited with status $ac_status" >&5
20240-echo "$as_me: failed program was:" >&5
20241-sed 's/^/| /' conftest.$ac_ext >&5
20242-
20243-( exit $ac_status )
20244-{ echo "$as_me:$LINENO: result: no" >&5
20245-echo "${ECHO_T}no" >&6; }
20246-
20247+ ac_cv_lib_dl_dlopen=no
20248 fi
20249-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20250+rm -f core conftest.err conftest.$ac_objext \
20251+ conftest$ac_exeext conftest.$ac_ext
20252+LIBS=$ac_check_lib_save_LIBS
20253 fi
20254+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
20255+$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
20256+if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
20257+ cat >>confdefs.h <<_ACEOF
20258+#define HAVE_LIBDL 1
20259+_ACEOF
20260
20261+ LIBS="-ldl $LIBS"
20262
20263-
20264-case $ac_sys_system/$ac_sys_release in
20265-Darwin/*)
20266- _CUR_CFLAGS="${CFLAGS}"
20267- _CUR_LDFLAGS="${LDFLAGS}"
20268- CFLAGS="${CFLAGS} -Wl,-search_paths_first"
20269- LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
20270- ;;
20271-esac
20272-
20273-{ echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5
20274-echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6; }
20275-if test "${ac_cv_lib_z_inflateCopy+set}" = set; then
20276- echo $ECHO_N "(cached) $ECHO_C" >&6
20277+fi
20278+ # Dynamic linking for SunOS/Solaris and SYSV
20279+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
20280+$as_echo_n "checking for shl_load in -ldld... " >&6; }
20281+if ${ac_cv_lib_dld_shl_load+:} false; then :
20282+ $as_echo_n "(cached) " >&6
20283 else
20284 ac_check_lib_save_LIBS=$LIBS
20285-LIBS="-lz $LIBS"
20286-cat >conftest.$ac_ext <<_ACEOF
20287-/* confdefs.h. */
20288-_ACEOF
20289-cat confdefs.h >>conftest.$ac_ext
20290-cat >>conftest.$ac_ext <<_ACEOF
20291+LIBS="-ldld $LIBS"
20292+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20293 /* end confdefs.h. */
20294
20295 /* Override any GCC internal prototype to avoid an error.
20296@@ -17213,330 +7869,269 @@ cat >>conftest.$ac_ext <<_ACEOF
20297 #ifdef __cplusplus
20298 extern "C"
20299 #endif
20300-char inflateCopy ();
20301+char shl_load ();
20302 int
20303 main ()
20304 {
20305-return inflateCopy ();
20306+return shl_load ();
20307 ;
20308 return 0;
20309 }
20310 _ACEOF
20311-rm -f conftest.$ac_objext conftest$ac_exeext
20312-if { (ac_try="$ac_link"
20313-case "(($ac_try" in
20314- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20315- *) ac_try_echo=$ac_try;;
20316-esac
20317-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20318- (eval "$ac_link") 2>conftest.er1
20319- ac_status=$?
20320- grep -v '^ *+' conftest.er1 >conftest.err
20321- rm -f conftest.er1
20322- cat conftest.err >&5
20323- echo "$as_me:$LINENO: \$? = $ac_status" >&5
20324- (exit $ac_status); } && {
20325- test -z "$ac_c_werror_flag" ||
20326- test ! -s conftest.err
20327- } && test -s conftest$ac_exeext &&
20328- $as_test_x conftest$ac_exeext; then
20329- ac_cv_lib_z_inflateCopy=yes
20330+if ac_fn_c_try_link "$LINENO"; then :
20331+ ac_cv_lib_dld_shl_load=yes
20332 else
20333- echo "$as_me: failed program was:" >&5
20334-sed 's/^/| /' conftest.$ac_ext >&5
20335-
20336- ac_cv_lib_z_inflateCopy=no
20337+ ac_cv_lib_dld_shl_load=no
20338 fi
20339-
20340-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20341- conftest$ac_exeext conftest.$ac_ext
20342+rm -f core conftest.err conftest.$ac_objext \
20343+ conftest$ac_exeext conftest.$ac_ext
20344 LIBS=$ac_check_lib_save_LIBS
20345 fi
20346-{ echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5
20347-echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6; }
20348-if test $ac_cv_lib_z_inflateCopy = yes; then
20349-
20350-cat >>confdefs.h <<\_ACEOF
20351-#define HAVE_ZLIB_COPY 1
20352+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
20353+$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
20354+if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
20355+ cat >>confdefs.h <<_ACEOF
20356+#define HAVE_LIBDLD 1
20357 _ACEOF
20358
20359-fi
20360-
20361+ LIBS="-ldld $LIBS"
20362
20363-case $ac_sys_system/$ac_sys_release in
20364-Darwin/*)
20365- CFLAGS="${_CUR_CFLAGS}"
20366- LDFLAGS="${_CUR_LDFLAGS}"
20367- ;;
20368-esac
20369+fi
20370+ # Dynamic linking for HP-UX
20371
20372-{ echo "$as_me:$LINENO: checking for hstrerror" >&5
20373-echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6; }
20374-cat >conftest.$ac_ext <<_ACEOF
20375-/* confdefs.h. */
20376-_ACEOF
20377-cat confdefs.h >>conftest.$ac_ext
20378-cat >>conftest.$ac_ext <<_ACEOF
20379+# only check for sem_ini if thread support is requested
20380+if test "$with_threads" = "yes" -o -z "$with_threads"; then
20381+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
20382+$as_echo_n "checking for library containing sem_init... " >&6; }
20383+if ${ac_cv_search_sem_init+:} false; then :
20384+ $as_echo_n "(cached) " >&6
20385+else
20386+ ac_func_search_save_LIBS=$LIBS
20387+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20388 /* end confdefs.h. */
20389
20390-#include "confdefs.h"
20391-#include <netdb.h>
20392-
20393+/* Override any GCC internal prototype to avoid an error.
20394+ Use char because int might match the return type of a GCC
20395+ builtin and then its argument prototype would still apply. */
20396+#ifdef __cplusplus
20397+extern "C"
20398+#endif
20399+char sem_init ();
20400 int
20401 main ()
20402 {
20403-void* p = hstrerror; hstrerror(0)
20404+return sem_init ();
20405 ;
20406 return 0;
20407 }
20408 _ACEOF
20409-rm -f conftest.$ac_objext conftest$ac_exeext
20410-if { (ac_try="$ac_link"
20411-case "(($ac_try" in
20412- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20413- *) ac_try_echo=$ac_try;;
20414-esac
20415-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20416- (eval "$ac_link") 2>conftest.er1
20417- ac_status=$?
20418- grep -v '^ *+' conftest.er1 >conftest.err
20419- rm -f conftest.er1
20420- cat conftest.err >&5
20421- echo "$as_me:$LINENO: \$? = $ac_status" >&5
20422- (exit $ac_status); } && {
20423- test -z "$ac_c_werror_flag" ||
20424- test ! -s conftest.err
20425- } && test -s conftest$ac_exeext &&
20426- $as_test_x conftest$ac_exeext; then
20427-
20428-cat >>confdefs.h <<\_ACEOF
20429-#define HAVE_HSTRERROR 1
20430-_ACEOF
20431+for ac_lib in '' pthread rt posix4; do
20432+ if test -z "$ac_lib"; then
20433+ ac_res="none required"
20434+ else
20435+ ac_res=-l$ac_lib
20436+ LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20437+ fi
20438+ if ac_fn_c_try_link "$LINENO"; then :
20439+ ac_cv_search_sem_init=$ac_res
20440+fi
20441+rm -f core conftest.err conftest.$ac_objext \
20442+ conftest$ac_exeext
20443+ if ${ac_cv_search_sem_init+:} false; then :
20444+ break
20445+fi
20446+done
20447+if ${ac_cv_search_sem_init+:} false; then :
20448
20449- { echo "$as_me:$LINENO: result: yes" >&5
20450-echo "${ECHO_T}yes" >&6; }
20451 else
20452- echo "$as_me: failed program was:" >&5
20453-sed 's/^/| /' conftest.$ac_ext >&5
20454-
20455- { echo "$as_me:$LINENO: result: no" >&5
20456-echo "${ECHO_T}no" >&6; }
20457-
20458+ ac_cv_search_sem_init=no
20459+fi
20460+rm conftest.$ac_ext
20461+LIBS=$ac_func_search_save_LIBS
20462 fi
20463+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5
20464+$as_echo "$ac_cv_search_sem_init" >&6; }
20465+ac_res=$ac_cv_search_sem_init
20466+if test "$ac_res" != no; then :
20467+ test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20468
20469-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20470- conftest$ac_exeext conftest.$ac_ext
20471+fi
20472+ # 'Real Time' functions on Solaris
20473+ # posix4 on Solaris 2.6
20474+ # pthread (first!) on Linux
20475+fi
20476
20477-{ echo "$as_me:$LINENO: checking for inet_aton" >&5
20478-echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
20479-cat >conftest.$ac_ext <<_ACEOF
20480-/* confdefs.h. */
20481-_ACEOF
20482-cat confdefs.h >>conftest.$ac_ext
20483-cat >>conftest.$ac_ext <<_ACEOF
20484+# check if we need libintl for locale functions
20485+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for textdomain in -lintl" >&5
20486+$as_echo_n "checking for textdomain in -lintl... " >&6; }
20487+if ${ac_cv_lib_intl_textdomain+:} false; then :
20488+ $as_echo_n "(cached) " >&6
20489+else
20490+ ac_check_lib_save_LIBS=$LIBS
20491+LIBS="-lintl $LIBS"
20492+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20493 /* end confdefs.h. */
20494
20495-#include "confdefs.h"
20496-#include <sys/types.h>
20497-#include <sys/socket.h>
20498-#include <netinet/in.h>
20499-#include <arpa/inet.h>
20500-
20501+/* Override any GCC internal prototype to avoid an error.
20502+ Use char because int might match the return type of a GCC
20503+ builtin and then its argument prototype would still apply. */
20504+#ifdef __cplusplus
20505+extern "C"
20506+#endif
20507+char textdomain ();
20508 int
20509 main ()
20510 {
20511-void* p = inet_aton;inet_aton(0,0)
20512+return textdomain ();
20513 ;
20514 return 0;
20515 }
20516 _ACEOF
20517-rm -f conftest.$ac_objext conftest$ac_exeext
20518-if { (ac_try="$ac_link"
20519-case "(($ac_try" in
20520- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20521- *) ac_try_echo=$ac_try;;
20522-esac
20523-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20524- (eval "$ac_link") 2>conftest.er1
20525- ac_status=$?
20526- grep -v '^ *+' conftest.er1 >conftest.err
20527- rm -f conftest.er1
20528- cat conftest.err >&5
20529- echo "$as_me:$LINENO: \$? = $ac_status" >&5
20530- (exit $ac_status); } && {
20531- test -z "$ac_c_werror_flag" ||
20532- test ! -s conftest.err
20533- } && test -s conftest$ac_exeext &&
20534- $as_test_x conftest$ac_exeext; then
20535-
20536-cat >>confdefs.h <<\_ACEOF
20537-#define HAVE_INET_ATON 1
20538-_ACEOF
20539-
20540- { echo "$as_me:$LINENO: result: yes" >&5
20541-echo "${ECHO_T}yes" >&6; }
20542+if ac_fn_c_try_link "$LINENO"; then :
20543+ ac_cv_lib_intl_textdomain=yes
20544 else
20545- echo "$as_me: failed program was:" >&5
20546-sed 's/^/| /' conftest.$ac_ext >&5
20547+ ac_cv_lib_intl_textdomain=no
20548+fi
20549+rm -f core conftest.err conftest.$ac_objext \
20550+ conftest$ac_exeext conftest.$ac_ext
20551+LIBS=$ac_check_lib_save_LIBS
20552+fi
20553+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_textdomain" >&5
20554+$as_echo "$ac_cv_lib_intl_textdomain" >&6; }
20555+if test "x$ac_cv_lib_intl_textdomain" = xyes; then :
20556
20557- { echo "$as_me:$LINENO: result: no" >&5
20558-echo "${ECHO_T}no" >&6; }
20559+$as_echo "#define WITH_LIBINTL 1" >>confdefs.h
20560
20561 fi
20562
20563-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20564- conftest$ac_exeext conftest.$ac_ext
20565
20566-{ echo "$as_me:$LINENO: checking for inet_pton" >&5
20567-echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
20568-cat >conftest.$ac_ext <<_ACEOF
20569-/* confdefs.h. */
20570-_ACEOF
20571-cat confdefs.h >>conftest.$ac_ext
20572-cat >>conftest.$ac_ext <<_ACEOF
20573+# checks for system dependent C++ extensions support
20574+case "$ac_sys_system" in
20575+ AIX*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for genuine AIX C++ extensions support" >&5
20576+$as_echo_n "checking for genuine AIX C++ extensions support... " >&6; }
20577+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20578 /* end confdefs.h. */
20579-
20580-#include "confdefs.h"
20581-#include <sys/types.h>
20582-#include <sys/socket.h>
20583-#include <netinet/in.h>
20584-#include <arpa/inet.h>
20585-
20586+#include "/usr/lpp/xlC/include/load.h"
20587 int
20588 main ()
20589 {
20590-void* p = inet_pton
20591+loadAndInit("", 0, "")
20592 ;
20593 return 0;
20594 }
20595 _ACEOF
20596-rm -f conftest.$ac_objext
20597-if { (ac_try="$ac_compile"
20598-case "(($ac_try" in
20599- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20600- *) ac_try_echo=$ac_try;;
20601-esac
20602-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20603- (eval "$ac_compile") 2>conftest.er1
20604- ac_status=$?
20605- grep -v '^ *+' conftest.er1 >conftest.err
20606- rm -f conftest.er1
20607- cat conftest.err >&5
20608- echo "$as_me:$LINENO: \$? = $ac_status" >&5
20609- (exit $ac_status); } && {
20610- test -z "$ac_c_werror_flag" ||
20611- test ! -s conftest.err
20612- } && test -s conftest.$ac_objext; then
20613+if ac_fn_c_try_link "$LINENO"; then :
20614
20615-cat >>confdefs.h <<\_ACEOF
20616-#define HAVE_INET_PTON 1
20617-_ACEOF
20618+$as_echo "#define AIX_GENUINE_CPLUSPLUS 1" >>confdefs.h
20619
20620- { echo "$as_me:$LINENO: result: yes" >&5
20621-echo "${ECHO_T}yes" >&6; }
20622+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20623+$as_echo "yes" >&6; }
20624 else
20625- echo "$as_me: failed program was:" >&5
20626-sed 's/^/| /' conftest.$ac_ext >&5
20627-
20628- { echo "$as_me:$LINENO: result: no" >&5
20629-echo "${ECHO_T}no" >&6; }
20630-
20631+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20632+$as_echo "no" >&6; }
20633 fi
20634+rm -f core conftest.err conftest.$ac_objext \
20635+ conftest$ac_exeext conftest.$ac_ext;;
20636+ *) ;;
20637+esac
20638
20639-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20640-
20641-# On some systems, setgroups is in unistd.h, on others, in grp.h
20642-{ echo "$as_me:$LINENO: checking for setgroups" >&5
20643-echo $ECHO_N "checking for setgroups... $ECHO_C" >&6; }
20644-cat >conftest.$ac_ext <<_ACEOF
20645-/* confdefs.h. */
20646-_ACEOF
20647-cat confdefs.h >>conftest.$ac_ext
20648-cat >>conftest.$ac_ext <<_ACEOF
20649+# Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
20650+# BeOS' sockets are stashed in libnet.
20651+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_open in -lnsl" >&5
20652+$as_echo_n "checking for t_open in -lnsl... " >&6; }
20653+if ${ac_cv_lib_nsl_t_open+:} false; then :
20654+ $as_echo_n "(cached) " >&6
20655+else
20656+ ac_check_lib_save_LIBS=$LIBS
20657+LIBS="-lnsl $LIBS"
20658+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20659 /* end confdefs.h. */
20660
20661-#include "confdefs.h"
20662-#include <unistd.h>
20663-#ifdef HAVE_GRP_H
20664-#include <grp.h>
20665+/* Override any GCC internal prototype to avoid an error.
20666+ Use char because int might match the return type of a GCC
20667+ builtin and then its argument prototype would still apply. */
20668+#ifdef __cplusplus
20669+extern "C"
20670 #endif
20671-
20672+char t_open ();
20673 int
20674 main ()
20675 {
20676-void* p = setgroups
20677+return t_open ();
20678 ;
20679 return 0;
20680 }
20681 _ACEOF
20682-rm -f conftest.$ac_objext
20683-if { (ac_try="$ac_compile"
20684-case "(($ac_try" in
20685- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20686- *) ac_try_echo=$ac_try;;
20687-esac
20688-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20689- (eval "$ac_compile") 2>conftest.er1
20690- ac_status=$?
20691- grep -v '^ *+' conftest.er1 >conftest.err
20692- rm -f conftest.er1
20693- cat conftest.err >&5
20694- echo "$as_me:$LINENO: \$? = $ac_status" >&5
20695- (exit $ac_status); } && {
20696- test -z "$ac_c_werror_flag" ||
20697- test ! -s conftest.err
20698- } && test -s conftest.$ac_objext; then
20699+if ac_fn_c_try_link "$LINENO"; then :
20700+ ac_cv_lib_nsl_t_open=yes
20701+else
20702+ ac_cv_lib_nsl_t_open=no
20703+fi
20704+rm -f core conftest.err conftest.$ac_objext \
20705+ conftest$ac_exeext conftest.$ac_ext
20706+LIBS=$ac_check_lib_save_LIBS
20707+fi
20708+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_t_open" >&5
20709+$as_echo "$ac_cv_lib_nsl_t_open" >&6; }
20710+if test "x$ac_cv_lib_nsl_t_open" = xyes; then :
20711+ LIBS="-lnsl $LIBS"
20712+fi
20713+ # SVR4
20714+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
20715+$as_echo_n "checking for socket in -lsocket... " >&6; }
20716+if ${ac_cv_lib_socket_socket+:} false; then :
20717+ $as_echo_n "(cached) " >&6
20718+else
20719+ ac_check_lib_save_LIBS=$LIBS
20720+LIBS="-lsocket $LIBS $LIBS"
20721+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20722+/* end confdefs.h. */
20723
20724-cat >>confdefs.h <<\_ACEOF
20725-#define HAVE_SETGROUPS 1
20726+/* Override any GCC internal prototype to avoid an error.
20727+ Use char because int might match the return type of a GCC
20728+ builtin and then its argument prototype would still apply. */
20729+#ifdef __cplusplus
20730+extern "C"
20731+#endif
20732+char socket ();
20733+int
20734+main ()
20735+{
20736+return socket ();
20737+ ;
20738+ return 0;
20739+}
20740 _ACEOF
20741-
20742- { echo "$as_me:$LINENO: result: yes" >&5
20743-echo "${ECHO_T}yes" >&6; }
20744+if ac_fn_c_try_link "$LINENO"; then :
20745+ ac_cv_lib_socket_socket=yes
20746 else
20747- echo "$as_me: failed program was:" >&5
20748-sed 's/^/| /' conftest.$ac_ext >&5
20749-
20750- { echo "$as_me:$LINENO: result: no" >&5
20751-echo "${ECHO_T}no" >&6; }
20752-
20753+ ac_cv_lib_socket_socket=no
20754 fi
20755+rm -f core conftest.err conftest.$ac_objext \
20756+ conftest$ac_exeext conftest.$ac_ext
20757+LIBS=$ac_check_lib_save_LIBS
20758+fi
20759+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
20760+$as_echo "$ac_cv_lib_socket_socket" >&6; }
20761+if test "x$ac_cv_lib_socket_socket" = xyes; then :
20762+ LIBS="-lsocket $LIBS"
20763+fi
20764+ # SVR4 sockets
20765+ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
20766+if test "x$ac_cv_header_winsock2_h" = xyes; then :
20767
20768-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20769-
20770-# check for openpty and forkpty
20771+fi
20772
20773
20774-for ac_func in openpty
20775-do
20776-as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20777-{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20778-echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20779-if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20780- echo $ECHO_N "(cached) $ECHO_C" >&6
20781+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for select in -lwsock32" >&5
20782+$as_echo_n "checking for select in -lwsock32... " >&6; }
20783+if ${ac_cv_lib_wsock32_select+:} false; then :
20784+ $as_echo_n "(cached) " >&6
20785 else
20786- cat >conftest.$ac_ext <<_ACEOF
20787-/* confdefs.h. */
20788-_ACEOF
20789-cat confdefs.h >>conftest.$ac_ext
20790-cat >>conftest.$ac_ext <<_ACEOF
20791+ ac_check_lib_save_LIBS=$LIBS
20792+LIBS="-lwsock32 $LIBS $LIBS"
20793+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20794 /* end confdefs.h. */
20795-/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20796- For example, HP-UX 11i <limits.h> declares gettimeofday. */
20797-#define $ac_func innocuous_$ac_func
20798-
20799-/* System header to define __stub macros and hopefully few prototypes,
20800- which can conflict with char $ac_func (); below.
20801- Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20802- <limits.h> exists even on freestanding compilers. */
20803-
20804-#ifdef __STDC__
20805-# include <limits.h>
20806-#else
20807-# include <assert.h>
20808-#endif
20809-
20810-#undef $ac_func
20811
20812 /* Override any GCC internal prototype to avoid an error.
20813 Use char because int might match the return type of a GCC
20814@@ -17544,72 +8139,66 @@ cat >>conftest.$ac_ext <<_ACEOF
20815 #ifdef __cplusplus
20816 extern "C"
20817 #endif
20818-char $ac_func ();
20819-/* The GNU C library defines this for functions which it implements
20820- to always fail with ENOSYS. Some functions are actually named
20821- something starting with __ and the normal name is an alias. */
20822-#if defined __stub_$ac_func || defined __stub___$ac_func
20823-choke me
20824-#endif
20825-
20826+char select ();
20827 int
20828 main ()
20829 {
20830-return $ac_func ();
20831+return select ();
20832 ;
20833 return 0;
20834 }
20835 _ACEOF
20836-rm -f conftest.$ac_objext conftest$ac_exeext
20837-if { (ac_try="$ac_link"
20838-case "(($ac_try" in
20839- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20840- *) ac_try_echo=$ac_try;;
20841-esac
20842-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20843- (eval "$ac_link") 2>conftest.er1
20844- ac_status=$?
20845- grep -v '^ *+' conftest.er1 >conftest.err
20846- rm -f conftest.er1
20847- cat conftest.err >&5
20848- echo "$as_me:$LINENO: \$? = $ac_status" >&5
20849- (exit $ac_status); } && {
20850- test -z "$ac_c_werror_flag" ||
20851- test ! -s conftest.err
20852- } && test -s conftest$ac_exeext &&
20853- $as_test_x conftest$ac_exeext; then
20854- eval "$as_ac_var=yes"
20855+if ac_fn_c_try_link "$LINENO"; then :
20856+ ac_cv_lib_wsock32_select=yes
20857 else
20858- echo "$as_me: failed program was:" >&5
20859-sed 's/^/| /' conftest.$ac_ext >&5
20860-
20861- eval "$as_ac_var=no"
20862+ ac_cv_lib_wsock32_select=no
20863 fi
20864-
20865-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20866- conftest$ac_exeext conftest.$ac_ext
20867+rm -f core conftest.err conftest.$ac_objext \
20868+ conftest$ac_exeext conftest.$ac_ext
20869+LIBS=$ac_check_lib_save_LIBS
20870 fi
20871-ac_res=`eval echo '${'$as_ac_var'}'`
20872- { echo "$as_me:$LINENO: result: $ac_res" >&5
20873-echo "${ECHO_T}$ac_res" >&6; }
20874-if test `eval echo '${'$as_ac_var'}'` = yes; then
20875- cat >>confdefs.h <<_ACEOF
20876-#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20877+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wsock32_select" >&5
20878+$as_echo "$ac_cv_lib_wsock32_select" >&6; }
20879+if test "x$ac_cv_lib_wsock32_select" = xyes; then :
20880+ LIBS="-lws2_32 -lwsock32 $LIBS"
20881+fi
20882+ # Mingw32 select
20883+save_LIBS="$LIBS"
20884+LIBS="-lws2_32 -lwsock32 $LIBS"
20885+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for include <winsock2.h> select in libwinsock32" >&5
20886+$as_echo_n "checking for include <winsock2.h> select in libwinsock32... " >&6; }
20887+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20888+/* end confdefs.h. */
20889+#include <winsock2.h>
20890+int
20891+main ()
20892+{
20893+select (1,2,3,4,5);
20894+ ;
20895+ return 0;
20896+}
20897 _ACEOF
20898-
20899+if ac_fn_c_try_link "$LINENO"; then :
20900+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20901+$as_echo "yes" >&6; }
20902 else
20903- { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
20904-echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
20905-if test "${ac_cv_lib_util_openpty+set}" = set; then
20906- echo $ECHO_N "(cached) $ECHO_C" >&6
20907+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20908+$as_echo "no" >&6; }
20909+ LIBS="$save_LIBS"
20910+fi
20911+rm -f core conftest.err conftest.$ac_objext \
20912+ conftest$ac_exeext conftest.$ac_ext
20913+
20914+case "$ac_sys_system" in
20915+BeOS*)
20916+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnet" >&5
20917+$as_echo_n "checking for socket in -lnet... " >&6; }
20918+if ${ac_cv_lib_net_socket+:} false; then :
20919+ $as_echo_n "(cached) " >&6
20920 else
20921 ac_check_lib_save_LIBS=$LIBS
20922-LIBS="-lutil $LIBS"
20923-cat >conftest.$ac_ext <<_ACEOF
20924-/* confdefs.h. */
20925-_ACEOF
20926-cat confdefs.h >>conftest.$ac_ext
20927-cat >>conftest.$ac_ext <<_ACEOF
20928+LIBS="-lnet $LIBS $LIBS"
20929+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20930 /* end confdefs.h. */
20931
20932 /* Override any GCC internal prototype to avoid an error.
20933@@ -17618,159 +8207,330 @@ cat >>conftest.$ac_ext <<_ACEOF
20934 #ifdef __cplusplus
20935 extern "C"
20936 #endif
20937-char openpty ();
20938+char socket ();
20939 int
20940 main ()
20941 {
20942-return openpty ();
20943+return socket ();
20944 ;
20945 return 0;
20946 }
20947 _ACEOF
20948-rm -f conftest.$ac_objext conftest$ac_exeext
20949-if { (ac_try="$ac_link"
20950-case "(($ac_try" in
20951- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20952- *) ac_try_echo=$ac_try;;
20953+if ac_fn_c_try_link "$LINENO"; then :
20954+ ac_cv_lib_net_socket=yes
20955+else
20956+ ac_cv_lib_net_socket=no
20957+fi
20958+rm -f core conftest.err conftest.$ac_objext \
20959+ conftest$ac_exeext conftest.$ac_ext
20960+LIBS=$ac_check_lib_save_LIBS
20961+fi
20962+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_net_socket" >&5
20963+$as_echo "$ac_cv_lib_net_socket" >&6; }
20964+if test "x$ac_cv_lib_net_socket" = xyes; then :
20965+ LIBS="-lnet $LIBS"
20966+fi
20967+ # BeOS
20968+;;
20969 esac
20970-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20971- (eval "$ac_link") 2>conftest.er1
20972- ac_status=$?
20973- grep -v '^ *+' conftest.er1 >conftest.err
20974- rm -f conftest.er1
20975- cat conftest.err >&5
20976- echo "$as_me:$LINENO: \$? = $ac_status" >&5
20977- (exit $ac_status); } && {
20978- test -z "$ac_c_werror_flag" ||
20979- test ! -s conftest.err
20980- } && test -s conftest$ac_exeext &&
20981- $as_test_x conftest$ac_exeext; then
20982- ac_cv_lib_util_openpty=yes
20983+
20984+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libs" >&5
20985+$as_echo_n "checking for --with-libs... " >&6; }
20986+
20987+# Check whether --with-libs was given.
20988+if test "${with_libs+set}" = set; then :
20989+ withval=$with_libs;
20990+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
20991+$as_echo "$withval" >&6; }
20992+LIBS="$withval $LIBS"
20993+
20994 else
20995- echo "$as_me: failed program was:" >&5
20996-sed 's/^/| /' conftest.$ac_ext >&5
20997+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20998+$as_echo "no" >&6; }
20999+fi
21000+
21001
21002- ac_cv_lib_util_openpty=no
21003+# Check for use of the system libffi library
21004+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-ffi" >&5
21005+$as_echo_n "checking for --with-system-ffi... " >&6; }
21006+
21007+# Check whether --with-system_ffi was given.
21008+if test "${with_system_ffi+set}" = set; then :
21009+ withval=$with_system_ffi;
21010 fi
21011
21012-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21013- conftest$ac_exeext conftest.$ac_ext
21014-LIBS=$ac_check_lib_save_LIBS
21015+
21016+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_ffi" >&5
21017+$as_echo "$with_system_ffi" >&6; }
21018+
21019+# Determine if signalmodule should be used.
21020+
21021+
21022+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-signal-module" >&5
21023+$as_echo_n "checking for --with-signal-module... " >&6; }
21024+
21025+# Check whether --with-signal-module was given.
21026+if test "${with_signal_module+set}" = set; then :
21027+ withval=$with_signal_module;
21028+fi
21029+
21030+
21031+if test -z "$with_signal_module"
21032+then with_signal_module="yes"
21033+fi
21034+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_signal_module" >&5
21035+$as_echo "$with_signal_module" >&6; }
21036+
21037+if test "${with_signal_module}" = "yes"; then
21038+ USE_SIGNAL_MODULE=""
21039+ SIGNAL_OBJS=""
21040+else
21041+ USE_SIGNAL_MODULE="#"
21042+ SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o"
21043+fi
21044+
21045+# This is used to generate Setup.config
21046+
21047+USE_THREAD_MODULE=""
21048+
21049+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dec-threads" >&5
21050+$as_echo_n "checking for --with-dec-threads... " >&6; }
21051+
21052+
21053+# Check whether --with-dec-threads was given.
21054+if test "${with_dec_threads+set}" = set; then :
21055+ withval=$with_dec_threads;
21056+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
21057+$as_echo "$withval" >&6; }
21058+LDLAST=-threads
21059+if test "${with_thread+set}" != set; then
21060+ with_thread="$withval";
21061 fi
21062-{ echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
21063-echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
21064-if test $ac_cv_lib_util_openpty = yes; then
21065- cat >>confdefs.h <<\_ACEOF
21066-#define HAVE_OPENPTY 1
21067-_ACEOF
21068- LIBS="$LIBS -lutil"
21069 else
21070- { echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
21071-echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6; }
21072-if test "${ac_cv_lib_bsd_openpty+set}" = set; then
21073- echo $ECHO_N "(cached) $ECHO_C" >&6
21074+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21075+$as_echo "no" >&6; }
21076+fi
21077+
21078+
21079+# Templates for things AC_DEFINEd more than once.
21080+# For a single AC_DEFINE, no template is needed.
21081+
21082+
21083+
21084+
21085+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-threads" >&5
21086+$as_echo_n "checking for --with-threads... " >&6; }
21087+
21088+# Check whether --with-threads was given.
21089+if test "${with_threads+set}" = set; then :
21090+ withval=$with_threads;
21091+fi
21092+
21093+
21094+# --with-thread is deprecated, but check for it anyway
21095+
21096+# Check whether --with-thread was given.
21097+if test "${with_thread+set}" = set; then :
21098+ withval=$with_thread; with_threads=$with_thread
21099+fi
21100+
21101+
21102+if test -z "$with_threads"
21103+then with_threads="yes"
21104+fi
21105+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_threads" >&5
21106+$as_echo "$with_threads" >&6; }
21107+
21108+
21109+if test "$with_threads" = "no"
21110+then
21111+ USE_THREAD_MODULE="#"
21112+elif test "$ac_cv_pthread_is_default" = yes
21113+then
21114+ $as_echo "#define WITH_THREAD 1" >>confdefs.h
21115+
21116+ # Defining _REENTRANT on system with POSIX threads should not hurt.
21117+ $as_echo "#define _REENTRANT 1" >>confdefs.h
21118+
21119+ posix_threads=yes
21120+ THREADOBJ="Python/thread.o"
21121+elif test "$ac_cv_kpthread" = "yes"
21122+then
21123+ CC="$CC -Kpthread"
21124+ if test "$ac_cv_cxx_thread" = "yes"; then
21125+ CXX="$CXX -Kpthread"
21126+ fi
21127+ $as_echo "#define WITH_THREAD 1" >>confdefs.h
21128+
21129+ posix_threads=yes
21130+ THREADOBJ="Python/thread.o"
21131+elif test "$ac_cv_kthread" = "yes"
21132+then
21133+ CC="$CC -Kthread"
21134+ if test "$ac_cv_cxx_thread" = "yes"; then
21135+ CXX="$CXX -Kthread"
21136+ fi
21137+ $as_echo "#define WITH_THREAD 1" >>confdefs.h
21138+
21139+ posix_threads=yes
21140+ THREADOBJ="Python/thread.o"
21141+elif test "$ac_cv_pthread" = "yes"
21142+then
21143+ CC="$CC -pthread"
21144+ if test "$ac_cv_cxx_thread" = "yes"; then
21145+ CXX="$CXX -pthread"
21146+ fi
21147+ $as_echo "#define WITH_THREAD 1" >>confdefs.h
21148+
21149+ posix_threads=yes
21150+ THREADOBJ="Python/thread.o"
21151 else
21152- ac_check_lib_save_LIBS=$LIBS
21153-LIBS="-lbsd $LIBS"
21154-cat >conftest.$ac_ext <<_ACEOF
21155-/* confdefs.h. */
21156+ if test ! -z "$with_threads" -a -d "$with_threads"
21157+ then LDFLAGS="$LDFLAGS -L$with_threads"
21158+ fi
21159+ if test ! -z "$withval" -a -d "$withval"
21160+ then LDFLAGS="$LDFLAGS -L$withval"
21161+ fi
21162+
21163+ # According to the POSIX spec, a pthreads implementation must
21164+ # define _POSIX_THREADS in unistd.h. Some apparently don't
21165+ # (e.g. gnu pth with pthread emulation)
21166+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _POSIX_THREADS in unistd.h" >&5
21167+$as_echo_n "checking for _POSIX_THREADS in unistd.h... " >&6; }
21168+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21169+/* end confdefs.h. */
21170+
21171+#include <unistd.h>
21172+#ifdef _POSIX_THREADS
21173+yes
21174+#endif
21175+
21176 _ACEOF
21177-cat confdefs.h >>conftest.$ac_ext
21178-cat >>conftest.$ac_ext <<_ACEOF
21179+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21180+ $EGREP "yes" >/dev/null 2>&1; then :
21181+ unistd_defines_pthreads=yes
21182+else
21183+ unistd_defines_pthreads=no
21184+fi
21185+rm -f conftest*
21186+
21187+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unistd_defines_pthreads" >&5
21188+$as_echo "$unistd_defines_pthreads" >&6; }
21189+
21190+ $as_echo "#define _REENTRANT 1" >>confdefs.h
21191+
21192+ ac_fn_c_check_header_mongrel "$LINENO" "cthreads.h" "ac_cv_header_cthreads_h" "$ac_includes_default"
21193+if test "x$ac_cv_header_cthreads_h" = xyes; then :
21194+ $as_echo "#define WITH_THREAD 1" >>confdefs.h
21195+
21196+ $as_echo "#define C_THREADS 1" >>confdefs.h
21197+
21198+
21199+$as_echo "#define HURD_C_THREADS 1" >>confdefs.h
21200+
21201+ LIBS="$LIBS -lthreads"
21202+ THREADOBJ="Python/thread.o"
21203+else
21204+
21205+ ac_fn_c_check_header_mongrel "$LINENO" "mach/cthreads.h" "ac_cv_header_mach_cthreads_h" "$ac_includes_default"
21206+if test "x$ac_cv_header_mach_cthreads_h" = xyes; then :
21207+ $as_echo "#define WITH_THREAD 1" >>confdefs.h
21208+
21209+ $as_echo "#define C_THREADS 1" >>confdefs.h
21210+
21211+
21212+$as_echo "#define MACH_C_THREADS 1" >>confdefs.h
21213+
21214+ THREADOBJ="Python/thread.o"
21215+else
21216+
21217+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pth" >&5
21218+$as_echo_n "checking for --with-pth... " >&6; }
21219+
21220+# Check whether --with-pth was given.
21221+if test "${with_pth+set}" = set; then :
21222+ withval=$with_pth; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
21223+$as_echo "$withval" >&6; }
21224+ $as_echo "#define WITH_THREAD 1" >>confdefs.h
21225+
21226+
21227+$as_echo "#define HAVE_PTH 1" >>confdefs.h
21228+
21229+ LIBS="-lpth $LIBS"
21230+ THREADOBJ="Python/thread.o"
21231+else
21232+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21233+$as_echo "no" >&6; }
21234+
21235+ # Just looking for pthread_create in libpthread is not enough:
21236+ # on HP/UX, pthread.h renames pthread_create to a different symbol name.
21237+ # So we really have to include pthread.h, and then link.
21238+ _libs=$LIBS
21239+ LIBS="$LIBS -lpthread"
21240+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
21241+$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
21242+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21243 /* end confdefs.h. */
21244+#include <pthread.h>
21245
21246-/* Override any GCC internal prototype to avoid an error.
21247- Use char because int might match the return type of a GCC
21248- builtin and then its argument prototype would still apply. */
21249-#ifdef __cplusplus
21250-extern "C"
21251-#endif
21252-char openpty ();
21253+void * start_routine (void *arg) { exit (0); }
21254 int
21255 main ()
21256 {
21257-return openpty ();
21258+
21259+pthread_create (NULL, NULL, start_routine, NULL)
21260 ;
21261 return 0;
21262 }
21263 _ACEOF
21264-rm -f conftest.$ac_objext conftest$ac_exeext
21265-if { (ac_try="$ac_link"
21266-case "(($ac_try" in
21267- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21268- *) ac_try_echo=$ac_try;;
21269-esac
21270-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21271- (eval "$ac_link") 2>conftest.er1
21272- ac_status=$?
21273- grep -v '^ *+' conftest.er1 >conftest.err
21274- rm -f conftest.er1
21275- cat conftest.err >&5
21276- echo "$as_me:$LINENO: \$? = $ac_status" >&5
21277- (exit $ac_status); } && {
21278- test -z "$ac_c_werror_flag" ||
21279- test ! -s conftest.err
21280- } && test -s conftest$ac_exeext &&
21281- $as_test_x conftest$ac_exeext; then
21282- ac_cv_lib_bsd_openpty=yes
21283-else
21284- echo "$as_me: failed program was:" >&5
21285-sed 's/^/| /' conftest.$ac_ext >&5
21286+if ac_fn_c_try_link "$LINENO"; then :
21287
21288- ac_cv_lib_bsd_openpty=no
21289-fi
21290+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21291+$as_echo "yes" >&6; }
21292+ $as_echo "#define WITH_THREAD 1" >>confdefs.h
21293
21294-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21295- conftest$ac_exeext conftest.$ac_ext
21296-LIBS=$ac_check_lib_save_LIBS
21297-fi
21298-{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
21299-echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6; }
21300-if test $ac_cv_lib_bsd_openpty = yes; then
21301- cat >>confdefs.h <<\_ACEOF
21302-#define HAVE_OPENPTY 1
21303-_ACEOF
21304- LIBS="$LIBS -lbsd"
21305-fi
21306+ posix_threads=yes
21307+ THREADOBJ="Python/thread.o"
21308+else
21309
21310+ LIBS=$_libs
21311+ ac_fn_c_check_func "$LINENO" "pthread_detach" "ac_cv_func_pthread_detach"
21312+if test "x$ac_cv_func_pthread_detach" = xyes; then :
21313+ $as_echo "#define WITH_THREAD 1" >>confdefs.h
21314
21315-fi
21316+ posix_threads=yes
21317+ THREADOBJ="Python/thread.o"
21318+else
21319
21320+ ac_fn_c_check_header_mongrel "$LINENO" "atheos/threads.h" "ac_cv_header_atheos_threads_h" "$ac_includes_default"
21321+if test "x$ac_cv_header_atheos_threads_h" = xyes; then :
21322+ $as_echo "#define WITH_THREAD 1" >>confdefs.h
21323
21324-fi
21325-done
21326
21327+$as_echo "#define ATHEOS_THREADS 1" >>confdefs.h
21328
21329-for ac_func in forkpty
21330-do
21331-as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21332-{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21333-echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21334-if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21335- echo $ECHO_N "(cached) $ECHO_C" >&6
21336+ THREADOBJ="Python/thread.o"
21337 else
21338- cat >conftest.$ac_ext <<_ACEOF
21339-/* confdefs.h. */
21340-_ACEOF
21341-cat confdefs.h >>conftest.$ac_ext
21342-cat >>conftest.$ac_ext <<_ACEOF
21343-/* end confdefs.h. */
21344-/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21345- For example, HP-UX 11i <limits.h> declares gettimeofday. */
21346-#define $ac_func innocuous_$ac_func
21347
21348-/* System header to define __stub macros and hopefully few prototypes,
21349- which can conflict with char $ac_func (); below.
21350- Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21351- <limits.h> exists even on freestanding compilers. */
21352+ ac_fn_c_check_header_mongrel "$LINENO" "kernel/OS.h" "ac_cv_header_kernel_OS_h" "$ac_includes_default"
21353+if test "x$ac_cv_header_kernel_OS_h" = xyes; then :
21354+ $as_echo "#define WITH_THREAD 1" >>confdefs.h
21355
21356-#ifdef __STDC__
21357-# include <limits.h>
21358-#else
21359-# include <assert.h>
21360-#endif
21361
21362-#undef $ac_func
21363+$as_echo "#define BEOS_THREADS 1" >>confdefs.h
21364+
21365+ THREADOBJ="Python/thread.o"
21366+else
21367+
21368+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
21369+$as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
21370+if ${ac_cv_lib_pthreads_pthread_create+:} false; then :
21371+ $as_echo_n "(cached) " >&6
21372+else
21373+ ac_check_lib_save_LIBS=$LIBS
21374+LIBS="-lpthreads $LIBS"
21375+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21376+/* end confdefs.h. */
21377
21378 /* Override any GCC internal prototype to avoid an error.
21379 Use char because int might match the return type of a GCC
21380@@ -17778,72 +8538,42 @@ cat >>conftest.$ac_ext <<_ACEOF
21381 #ifdef __cplusplus
21382 extern "C"
21383 #endif
21384-char $ac_func ();
21385-/* The GNU C library defines this for functions which it implements
21386- to always fail with ENOSYS. Some functions are actually named
21387- something starting with __ and the normal name is an alias. */
21388-#if defined __stub_$ac_func || defined __stub___$ac_func
21389-choke me
21390-#endif
21391-
21392+char pthread_create ();
21393 int
21394 main ()
21395 {
21396-return $ac_func ();
21397+return pthread_create ();
21398 ;
21399 return 0;
21400 }
21401 _ACEOF
21402-rm -f conftest.$ac_objext conftest$ac_exeext
21403-if { (ac_try="$ac_link"
21404-case "(($ac_try" in
21405- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21406- *) ac_try_echo=$ac_try;;
21407-esac
21408-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21409- (eval "$ac_link") 2>conftest.er1
21410- ac_status=$?
21411- grep -v '^ *+' conftest.er1 >conftest.err
21412- rm -f conftest.er1
21413- cat conftest.err >&5
21414- echo "$as_me:$LINENO: \$? = $ac_status" >&5
21415- (exit $ac_status); } && {
21416- test -z "$ac_c_werror_flag" ||
21417- test ! -s conftest.err
21418- } && test -s conftest$ac_exeext &&
21419- $as_test_x conftest$ac_exeext; then
21420- eval "$as_ac_var=yes"
21421+if ac_fn_c_try_link "$LINENO"; then :
21422+ ac_cv_lib_pthreads_pthread_create=yes
21423 else
21424- echo "$as_me: failed program was:" >&5
21425-sed 's/^/| /' conftest.$ac_ext >&5
21426-
21427- eval "$as_ac_var=no"
21428+ ac_cv_lib_pthreads_pthread_create=no
21429 fi
21430-
21431-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21432- conftest$ac_exeext conftest.$ac_ext
21433+rm -f core conftest.err conftest.$ac_objext \
21434+ conftest$ac_exeext conftest.$ac_ext
21435+LIBS=$ac_check_lib_save_LIBS
21436 fi
21437-ac_res=`eval echo '${'$as_ac_var'}'`
21438- { echo "$as_me:$LINENO: result: $ac_res" >&5
21439-echo "${ECHO_T}$ac_res" >&6; }
21440-if test `eval echo '${'$as_ac_var'}'` = yes; then
21441- cat >>confdefs.h <<_ACEOF
21442-#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21443-_ACEOF
21444+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
21445+$as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
21446+if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then :
21447+ $as_echo "#define WITH_THREAD 1" >>confdefs.h
21448
21449+ posix_threads=yes
21450+ LIBS="$LIBS -lpthreads"
21451+ THREADOBJ="Python/thread.o"
21452 else
21453- { echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
21454-echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6; }
21455-if test "${ac_cv_lib_util_forkpty+set}" = set; then
21456- echo $ECHO_N "(cached) $ECHO_C" >&6
21457+
21458+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
21459+$as_echo_n "checking for pthread_create in -lc_r... " >&6; }
21460+if ${ac_cv_lib_c_r_pthread_create+:} false; then :
21461+ $as_echo_n "(cached) " >&6
21462 else
21463 ac_check_lib_save_LIBS=$LIBS
21464-LIBS="-lutil $LIBS"
21465-cat >conftest.$ac_ext <<_ACEOF
21466-/* confdefs.h. */
21467-_ACEOF
21468-cat confdefs.h >>conftest.$ac_ext
21469-cat >>conftest.$ac_ext <<_ACEOF
21470+LIBS="-lc_r $LIBS"
21471+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21472 /* end confdefs.h. */
21473
21474 /* Override any GCC internal prototype to avoid an error.
21475@@ -17852,65 +8582,42 @@ cat >>conftest.$ac_ext <<_ACEOF
21476 #ifdef __cplusplus
21477 extern "C"
21478 #endif
21479-char forkpty ();
21480+char pthread_create ();
21481 int
21482 main ()
21483 {
21484-return forkpty ();
21485+return pthread_create ();
21486 ;
21487 return 0;
21488 }
21489 _ACEOF
21490-rm -f conftest.$ac_objext conftest$ac_exeext
21491-if { (ac_try="$ac_link"
21492-case "(($ac_try" in
21493- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21494- *) ac_try_echo=$ac_try;;
21495-esac
21496-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21497- (eval "$ac_link") 2>conftest.er1
21498- ac_status=$?
21499- grep -v '^ *+' conftest.er1 >conftest.err
21500- rm -f conftest.er1
21501- cat conftest.err >&5
21502- echo "$as_me:$LINENO: \$? = $ac_status" >&5
21503- (exit $ac_status); } && {
21504- test -z "$ac_c_werror_flag" ||
21505- test ! -s conftest.err
21506- } && test -s conftest$ac_exeext &&
21507- $as_test_x conftest$ac_exeext; then
21508- ac_cv_lib_util_forkpty=yes
21509+if ac_fn_c_try_link "$LINENO"; then :
21510+ ac_cv_lib_c_r_pthread_create=yes
21511 else
21512- echo "$as_me: failed program was:" >&5
21513-sed 's/^/| /' conftest.$ac_ext >&5
21514-
21515- ac_cv_lib_util_forkpty=no
21516+ ac_cv_lib_c_r_pthread_create=no
21517 fi
21518-
21519-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21520- conftest$ac_exeext conftest.$ac_ext
21521+rm -f core conftest.err conftest.$ac_objext \
21522+ conftest$ac_exeext conftest.$ac_ext
21523 LIBS=$ac_check_lib_save_LIBS
21524 fi
21525-{ echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
21526-echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6; }
21527-if test $ac_cv_lib_util_forkpty = yes; then
21528- cat >>confdefs.h <<\_ACEOF
21529-#define HAVE_FORKPTY 1
21530-_ACEOF
21531- LIBS="$LIBS -lutil"
21532+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
21533+$as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
21534+if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
21535+ $as_echo "#define WITH_THREAD 1" >>confdefs.h
21536+
21537+ posix_threads=yes
21538+ LIBS="$LIBS -lc_r"
21539+ THREADOBJ="Python/thread.o"
21540 else
21541- { echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
21542-echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6; }
21543-if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
21544- echo $ECHO_N "(cached) $ECHO_C" >&6
21545+
21546+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __pthread_create_system in -lpthread" >&5
21547+$as_echo_n "checking for __pthread_create_system in -lpthread... " >&6; }
21548+if ${ac_cv_lib_pthread___pthread_create_system+:} false; then :
21549+ $as_echo_n "(cached) " >&6
21550 else
21551 ac_check_lib_save_LIBS=$LIBS
21552-LIBS="-lbsd $LIBS"
21553-cat >conftest.$ac_ext <<_ACEOF
21554-/* confdefs.h. */
21555-_ACEOF
21556-cat confdefs.h >>conftest.$ac_ext
21557-cat >>conftest.$ac_ext <<_ACEOF
21558+LIBS="-lpthread $LIBS"
21559+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21560 /* end confdefs.h. */
21561
21562 /* Override any GCC internal prototype to avoid an error.
21563@@ -17919,94 +8626,43 @@ cat >>conftest.$ac_ext <<_ACEOF
21564 #ifdef __cplusplus
21565 extern "C"
21566 #endif
21567-char forkpty ();
21568+char __pthread_create_system ();
21569 int
21570 main ()
21571 {
21572-return forkpty ();
21573+return __pthread_create_system ();
21574 ;
21575 return 0;
21576 }
21577 _ACEOF
21578-rm -f conftest.$ac_objext conftest$ac_exeext
21579-if { (ac_try="$ac_link"
21580-case "(($ac_try" in
21581- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21582- *) ac_try_echo=$ac_try;;
21583-esac
21584-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21585- (eval "$ac_link") 2>conftest.er1
21586- ac_status=$?
21587- grep -v '^ *+' conftest.er1 >conftest.err
21588- rm -f conftest.er1
21589- cat conftest.err >&5
21590- echo "$as_me:$LINENO: \$? = $ac_status" >&5
21591- (exit $ac_status); } && {
21592- test -z "$ac_c_werror_flag" ||
21593- test ! -s conftest.err
21594- } && test -s conftest$ac_exeext &&
21595- $as_test_x conftest$ac_exeext; then
21596- ac_cv_lib_bsd_forkpty=yes
21597+if ac_fn_c_try_link "$LINENO"; then :
21598+ ac_cv_lib_pthread___pthread_create_system=yes
21599 else
21600- echo "$as_me: failed program was:" >&5
21601-sed 's/^/| /' conftest.$ac_ext >&5
21602-
21603- ac_cv_lib_bsd_forkpty=no
21604+ ac_cv_lib_pthread___pthread_create_system=no
21605 fi
21606-
21607-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21608- conftest$ac_exeext conftest.$ac_ext
21609+rm -f core conftest.err conftest.$ac_objext \
21610+ conftest$ac_exeext conftest.$ac_ext
21611 LIBS=$ac_check_lib_save_LIBS
21612 fi
21613-{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
21614-echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6; }
21615-if test $ac_cv_lib_bsd_forkpty = yes; then
21616- cat >>confdefs.h <<\_ACEOF
21617-#define HAVE_FORKPTY 1
21618-_ACEOF
21619- LIBS="$LIBS -lbsd"
21620-fi
21621+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_create_system" >&5
21622+$as_echo "$ac_cv_lib_pthread___pthread_create_system" >&6; }
21623+if test "x$ac_cv_lib_pthread___pthread_create_system" = xyes; then :
21624+ $as_echo "#define WITH_THREAD 1" >>confdefs.h
21625
21626+ posix_threads=yes
21627+ LIBS="$LIBS -lpthread"
21628+ THREADOBJ="Python/thread.o"
21629+else
21630
21631-fi
21632-
21633-
21634-fi
21635-done
21636-
21637-
21638-# Stuff for expat.
21639-
21640-for ac_func in memmove
21641-do
21642-as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21643-{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21644-echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21645-if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21646- echo $ECHO_N "(cached) $ECHO_C" >&6
21647+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lcma" >&5
21648+$as_echo_n "checking for pthread_create in -lcma... " >&6; }
21649+if ${ac_cv_lib_cma_pthread_create+:} false; then :
21650+ $as_echo_n "(cached) " >&6
21651 else
21652- cat >conftest.$ac_ext <<_ACEOF
21653-/* confdefs.h. */
21654-_ACEOF
21655-cat confdefs.h >>conftest.$ac_ext
21656-cat >>conftest.$ac_ext <<_ACEOF
21657+ ac_check_lib_save_LIBS=$LIBS
21658+LIBS="-lcma $LIBS"
21659+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21660 /* end confdefs.h. */
21661-/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21662- For example, HP-UX 11i <limits.h> declares gettimeofday. */
21663-#define $ac_func innocuous_$ac_func
21664-
21665-/* System header to define __stub macros and hopefully few prototypes,
21666- which can conflict with char $ac_func (); below.
21667- Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21668- <limits.h> exists even on freestanding compilers. */
21669-
21670-#ifdef __STDC__
21671-# include <limits.h>
21672-#else
21673-# include <assert.h>
21674-#endif
21675-
21676-#undef $ac_func
21677
21678 /* Override any GCC internal prototype to avoid an error.
21679 Use char because int might match the return type of a GCC
21680@@ -18014,197 +8670,73 @@ cat >>conftest.$ac_ext <<_ACEOF
21681 #ifdef __cplusplus
21682 extern "C"
21683 #endif
21684-char $ac_func ();
21685-/* The GNU C library defines this for functions which it implements
21686- to always fail with ENOSYS. Some functions are actually named
21687- something starting with __ and the normal name is an alias. */
21688-#if defined __stub_$ac_func || defined __stub___$ac_func
21689-choke me
21690-#endif
21691-
21692+char pthread_create ();
21693 int
21694 main ()
21695 {
21696-return $ac_func ();
21697+return pthread_create ();
21698 ;
21699 return 0;
21700 }
21701 _ACEOF
21702-rm -f conftest.$ac_objext conftest$ac_exeext
21703-if { (ac_try="$ac_link"
21704-case "(($ac_try" in
21705- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21706- *) ac_try_echo=$ac_try;;
21707-esac
21708-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21709- (eval "$ac_link") 2>conftest.er1
21710- ac_status=$?
21711- grep -v '^ *+' conftest.er1 >conftest.err
21712- rm -f conftest.er1
21713- cat conftest.err >&5
21714- echo "$as_me:$LINENO: \$? = $ac_status" >&5
21715- (exit $ac_status); } && {
21716- test -z "$ac_c_werror_flag" ||
21717- test ! -s conftest.err
21718- } && test -s conftest$ac_exeext &&
21719- $as_test_x conftest$ac_exeext; then
21720- eval "$as_ac_var=yes"
21721+if ac_fn_c_try_link "$LINENO"; then :
21722+ ac_cv_lib_cma_pthread_create=yes
21723 else
21724- echo "$as_me: failed program was:" >&5
21725-sed 's/^/| /' conftest.$ac_ext >&5
21726-
21727- eval "$as_ac_var=no"
21728+ ac_cv_lib_cma_pthread_create=no
21729 fi
21730-
21731-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21732- conftest$ac_exeext conftest.$ac_ext
21733-fi
21734-ac_res=`eval echo '${'$as_ac_var'}'`
21735- { echo "$as_me:$LINENO: result: $ac_res" >&5
21736-echo "${ECHO_T}$ac_res" >&6; }
21737-if test `eval echo '${'$as_ac_var'}'` = yes; then
21738- cat >>confdefs.h <<_ACEOF
21739-#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21740-_ACEOF
21741-
21742+rm -f core conftest.err conftest.$ac_objext \
21743+ conftest$ac_exeext conftest.$ac_ext
21744+LIBS=$ac_check_lib_save_LIBS
21745 fi
21746-done
21747-
21748-
21749-# check for long file support functions
21750-
21751-
21752+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cma_pthread_create" >&5
21753+$as_echo "$ac_cv_lib_cma_pthread_create" >&6; }
21754+if test "x$ac_cv_lib_cma_pthread_create" = xyes; then :
21755+ $as_echo "#define WITH_THREAD 1" >>confdefs.h
21756
21757+ posix_threads=yes
21758+ LIBS="$LIBS -lcma"
21759+ THREADOBJ="Python/thread.o"
21760+else
21761
21762+ USE_THREAD_MODULE="#"
21763+fi
21764
21765
21766-for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
21767-do
21768-as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21769-{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21770-echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21771-if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21772- echo $ECHO_N "(cached) $ECHO_C" >&6
21773-else
21774- cat >conftest.$ac_ext <<_ACEOF
21775-/* confdefs.h. */
21776-_ACEOF
21777-cat confdefs.h >>conftest.$ac_ext
21778-cat >>conftest.$ac_ext <<_ACEOF
21779-/* end confdefs.h. */
21780-/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21781- For example, HP-UX 11i <limits.h> declares gettimeofday. */
21782-#define $ac_func innocuous_$ac_func
21783+fi
21784
21785-/* System header to define __stub macros and hopefully few prototypes,
21786- which can conflict with char $ac_func (); below.
21787- Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21788- <limits.h> exists even on freestanding compilers. */
21789+fi
21790
21791-#ifdef __STDC__
21792-# include <limits.h>
21793-#else
21794-# include <assert.h>
21795-#endif
21796+fi
21797
21798-#undef $ac_func
21799+fi
21800
21801-/* Override any GCC internal prototype to avoid an error.
21802- Use char because int might match the return type of a GCC
21803- builtin and then its argument prototype would still apply. */
21804-#ifdef __cplusplus
21805-extern "C"
21806-#endif
21807-char $ac_func ();
21808-/* The GNU C library defines this for functions which it implements
21809- to always fail with ENOSYS. Some functions are actually named
21810- something starting with __ and the normal name is an alias. */
21811-#if defined __stub_$ac_func || defined __stub___$ac_func
21812-choke me
21813-#endif
21814
21815-int
21816-main ()
21817-{
21818-return $ac_func ();
21819- ;
21820- return 0;
21821-}
21822-_ACEOF
21823-rm -f conftest.$ac_objext conftest$ac_exeext
21824-if { (ac_try="$ac_link"
21825-case "(($ac_try" in
21826- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21827- *) ac_try_echo=$ac_try;;
21828-esac
21829-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21830- (eval "$ac_link") 2>conftest.er1
21831- ac_status=$?
21832- grep -v '^ *+' conftest.er1 >conftest.err
21833- rm -f conftest.er1
21834- cat conftest.err >&5
21835- echo "$as_me:$LINENO: \$? = $ac_status" >&5
21836- (exit $ac_status); } && {
21837- test -z "$ac_c_werror_flag" ||
21838- test ! -s conftest.err
21839- } && test -s conftest$ac_exeext &&
21840- $as_test_x conftest$ac_exeext; then
21841- eval "$as_ac_var=yes"
21842-else
21843- echo "$as_me: failed program was:" >&5
21844-sed 's/^/| /' conftest.$ac_ext >&5
21845+fi
21846+
21847
21848- eval "$as_ac_var=no"
21849 fi
21850
21851-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21852- conftest$ac_exeext conftest.$ac_ext
21853 fi
21854-ac_res=`eval echo '${'$as_ac_var'}'`
21855- { echo "$as_me:$LINENO: result: $ac_res" >&5
21856-echo "${ECHO_T}$ac_res" >&6; }
21857-if test `eval echo '${'$as_ac_var'}'` = yes; then
21858- cat >>confdefs.h <<_ACEOF
21859-#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21860-_ACEOF
21861+rm -f core conftest.err conftest.$ac_objext \
21862+ conftest$ac_exeext conftest.$ac_ext
21863+fi
21864
21865 fi
21866-done
21867
21868
21869+fi
21870
21871
21872
21873-for ac_func in dup2 getcwd strdup
21874-do
21875-as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21876-{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21877-echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21878-if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21879- echo $ECHO_N "(cached) $ECHO_C" >&6
21880+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usconfig in -lmpc" >&5
21881+$as_echo_n "checking for usconfig in -lmpc... " >&6; }
21882+if ${ac_cv_lib_mpc_usconfig+:} false; then :
21883+ $as_echo_n "(cached) " >&6
21884 else
21885- cat >conftest.$ac_ext <<_ACEOF
21886-/* confdefs.h. */
21887-_ACEOF
21888-cat confdefs.h >>conftest.$ac_ext
21889-cat >>conftest.$ac_ext <<_ACEOF
21890+ ac_check_lib_save_LIBS=$LIBS
21891+LIBS="-lmpc $LIBS"
21892+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21893 /* end confdefs.h. */
21894-/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21895- For example, HP-UX 11i <limits.h> declares gettimeofday. */
21896-#define $ac_func innocuous_$ac_func
21897-
21898-/* System header to define __stub macros and hopefully few prototypes,
21899- which can conflict with char $ac_func (); below.
21900- Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21901- <limits.h> exists even on freestanding compilers. */
21902-
21903-#ifdef __STDC__
21904-# include <limits.h>
21905-#else
21906-# include <assert.h>
21907-#endif
21908-
21909-#undef $ac_func
21910
21911 /* Override any GCC internal prototype to avoid an error.
21912 Use char because int might match the return type of a GCC
21913@@ -18212,101 +8744,45 @@ cat >>conftest.$ac_ext <<_ACEOF
21914 #ifdef __cplusplus
21915 extern "C"
21916 #endif
21917-char $ac_func ();
21918-/* The GNU C library defines this for functions which it implements
21919- to always fail with ENOSYS. Some functions are actually named
21920- something starting with __ and the normal name is an alias. */
21921-#if defined __stub_$ac_func || defined __stub___$ac_func
21922-choke me
21923-#endif
21924-
21925+char usconfig ();
21926 int
21927 main ()
21928 {
21929-return $ac_func ();
21930+return usconfig ();
21931 ;
21932 return 0;
21933 }
21934 _ACEOF
21935-rm -f conftest.$ac_objext conftest$ac_exeext
21936-if { (ac_try="$ac_link"
21937-case "(($ac_try" in
21938- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21939- *) ac_try_echo=$ac_try;;
21940-esac
21941-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21942- (eval "$ac_link") 2>conftest.er1
21943- ac_status=$?
21944- grep -v '^ *+' conftest.er1 >conftest.err
21945- rm -f conftest.er1
21946- cat conftest.err >&5
21947- echo "$as_me:$LINENO: \$? = $ac_status" >&5
21948- (exit $ac_status); } && {
21949- test -z "$ac_c_werror_flag" ||
21950- test ! -s conftest.err
21951- } && test -s conftest$ac_exeext &&
21952- $as_test_x conftest$ac_exeext; then
21953- eval "$as_ac_var=yes"
21954+if ac_fn_c_try_link "$LINENO"; then :
21955+ ac_cv_lib_mpc_usconfig=yes
21956 else
21957- echo "$as_me: failed program was:" >&5
21958-sed 's/^/| /' conftest.$ac_ext >&5
21959-
21960- eval "$as_ac_var=no"
21961+ ac_cv_lib_mpc_usconfig=no
21962 fi
21963-
21964-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21965- conftest$ac_exeext conftest.$ac_ext
21966+rm -f core conftest.err conftest.$ac_objext \
21967+ conftest$ac_exeext conftest.$ac_ext
21968+LIBS=$ac_check_lib_save_LIBS
21969 fi
21970-ac_res=`eval echo '${'$as_ac_var'}'`
21971- { echo "$as_me:$LINENO: result: $ac_res" >&5
21972-echo "${ECHO_T}$ac_res" >&6; }
21973-if test `eval echo '${'$as_ac_var'}'` = yes; then
21974- cat >>confdefs.h <<_ACEOF
21975-#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21976-_ACEOF
21977-
21978-else
21979- case " $LIBOBJS " in
21980- *" $ac_func.$ac_objext "* ) ;;
21981- *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21982- ;;
21983-esac
21984+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpc_usconfig" >&5
21985+$as_echo "$ac_cv_lib_mpc_usconfig" >&6; }
21986+if test "x$ac_cv_lib_mpc_usconfig" = xyes; then :
21987+ $as_echo "#define WITH_THREAD 1" >>confdefs.h
21988
21989+ LIBS="$LIBS -lmpc"
21990+ THREADOBJ="Python/thread.o"
21991+ USE_THREAD_MODULE=""
21992 fi
21993-done
21994-
21995
21996
21997-for ac_func in getpgrp
21998-do
21999-as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22000-{ echo "$as_me:$LINENO: checking for $ac_func" >&5
22001-echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22002-if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22003- echo $ECHO_N "(cached) $ECHO_C" >&6
22004+ if test "$posix_threads" != "yes"; then
22005+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5
22006+$as_echo_n "checking for thr_create in -lthread... " >&6; }
22007+if ${ac_cv_lib_thread_thr_create+:} false; then :
22008+ $as_echo_n "(cached) " >&6
22009 else
22010- cat >conftest.$ac_ext <<_ACEOF
22011-/* confdefs.h. */
22012-_ACEOF
22013-cat confdefs.h >>conftest.$ac_ext
22014-cat >>conftest.$ac_ext <<_ACEOF
22015+ ac_check_lib_save_LIBS=$LIBS
22016+LIBS="-lthread $LIBS"
22017+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22018 /* end confdefs.h. */
22019-/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22020- For example, HP-UX 11i <limits.h> declares gettimeofday. */
22021-#define $ac_func innocuous_$ac_func
22022-
22023-/* System header to define __stub macros and hopefully few prototypes,
22024- which can conflict with char $ac_func (); below.
22025- Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22026- <limits.h> exists even on freestanding compilers. */
22027-
22028-#ifdef __STDC__
22029-# include <limits.h>
22030-#else
22031-# include <assert.h>
22032-#endif
22033-
22034-#undef $ac_func
22035
22036 /* Override any GCC internal prototype to avoid an error.
22037 Use char because int might match the return type of a GCC
22038@@ -18314,3386 +8790,2642 @@ cat >>conftest.$ac_ext <<_ACEOF
22039 #ifdef __cplusplus
22040 extern "C"
22041 #endif
22042-char $ac_func ();
22043-/* The GNU C library defines this for functions which it implements
22044- to always fail with ENOSYS. Some functions are actually named
22045- something starting with __ and the normal name is an alias. */
22046-#if defined __stub_$ac_func || defined __stub___$ac_func
22047-choke me
22048-#endif
22049-
22050+char thr_create ();
22051 int
22052 main ()
22053 {
22054-return $ac_func ();
22055+return thr_create ();
22056 ;
22057 return 0;
22058 }
22059 _ACEOF
22060-rm -f conftest.$ac_objext conftest$ac_exeext
22061-if { (ac_try="$ac_link"
22062-case "(($ac_try" in
22063- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22064- *) ac_try_echo=$ac_try;;
22065-esac
22066-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22067- (eval "$ac_link") 2>conftest.er1
22068- ac_status=$?
22069- grep -v '^ *+' conftest.er1 >conftest.err
22070- rm -f conftest.er1
22071- cat conftest.err >&5
22072- echo "$as_me:$LINENO: \$? = $ac_status" >&5
22073- (exit $ac_status); } && {
22074- test -z "$ac_c_werror_flag" ||
22075- test ! -s conftest.err
22076- } && test -s conftest$ac_exeext &&
22077- $as_test_x conftest$ac_exeext; then
22078- eval "$as_ac_var=yes"
22079+if ac_fn_c_try_link "$LINENO"; then :
22080+ ac_cv_lib_thread_thr_create=yes
22081 else
22082- echo "$as_me: failed program was:" >&5
22083-sed 's/^/| /' conftest.$ac_ext >&5
22084-
22085- eval "$as_ac_var=no"
22086+ ac_cv_lib_thread_thr_create=no
22087+fi
22088+rm -f core conftest.err conftest.$ac_objext \
22089+ conftest$ac_exeext conftest.$ac_ext
22090+LIBS=$ac_check_lib_save_LIBS
22091 fi
22092+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5
22093+$as_echo "$ac_cv_lib_thread_thr_create" >&6; }
22094+if test "x$ac_cv_lib_thread_thr_create" = xyes; then :
22095+ $as_echo "#define WITH_THREAD 1" >>confdefs.h
22096
22097-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22098- conftest$ac_exeext conftest.$ac_ext
22099+ LIBS="$LIBS -lthread"
22100+ THREADOBJ="Python/thread.o"
22101+ USE_THREAD_MODULE=""
22102 fi
22103-ac_res=`eval echo '${'$as_ac_var'}'`
22104- { echo "$as_me:$LINENO: result: $ac_res" >&5
22105-echo "${ECHO_T}$ac_res" >&6; }
22106-if test `eval echo '${'$as_ac_var'}'` = yes; then
22107- cat >>confdefs.h <<_ACEOF
22108-#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22109-_ACEOF
22110- cat >conftest.$ac_ext <<_ACEOF
22111-/* confdefs.h. */
22112-_ACEOF
22113-cat confdefs.h >>conftest.$ac_ext
22114-cat >>conftest.$ac_ext <<_ACEOF
22115-/* end confdefs.h. */
22116-#include <unistd.h>
22117-int
22118-main ()
22119-{
22120-getpgrp(0);
22121- ;
22122- return 0;
22123-}
22124-_ACEOF
22125-rm -f conftest.$ac_objext
22126-if { (ac_try="$ac_compile"
22127-case "(($ac_try" in
22128- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22129- *) ac_try_echo=$ac_try;;
22130-esac
22131-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22132- (eval "$ac_compile") 2>conftest.er1
22133- ac_status=$?
22134- grep -v '^ *+' conftest.er1 >conftest.err
22135- rm -f conftest.er1
22136- cat conftest.err >&5
22137- echo "$as_me:$LINENO: \$? = $ac_status" >&5
22138- (exit $ac_status); } && {
22139- test -z "$ac_c_werror_flag" ||
22140- test ! -s conftest.err
22141- } && test -s conftest.$ac_objext; then
22142
22143-cat >>confdefs.h <<\_ACEOF
22144-#define GETPGRP_HAVE_ARG 1
22145-_ACEOF
22146+ fi
22147
22148+ if test "$USE_THREAD_MODULE" != "#"
22149+ then
22150+ # If the above checks didn't disable threads, (at least) OSF1
22151+ # needs this '-threads' argument during linking.
22152+ case $ac_sys_system in
22153+ OSF1) LDLAST=-threads;;
22154+ esac
22155+ fi
22156+fi
22157
22158-else
22159- echo "$as_me: failed program was:" >&5
22160-sed 's/^/| /' conftest.$ac_ext >&5
22161+if test "$posix_threads" = "yes"; then
22162+ if test "$unistd_defines_pthreads" = "no"; then
22163
22164+$as_echo "#define _POSIX_THREADS 1" >>confdefs.h
22165
22166-fi
22167+ fi
22168
22169-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22170+ # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
22171+ case $ac_sys_system/$ac_sys_release in
22172+ SunOS/5.6)
22173+$as_echo "#define HAVE_PTHREAD_DESTRUCTOR 1" >>confdefs.h
22174
22175-fi
22176-done
22177+ ;;
22178+ SunOS/5.8)
22179+$as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
22180
22181+ ;;
22182+ AIX/5)
22183+$as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
22184
22185-for ac_func in setpgrp
22186-do
22187-as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22188-{ echo "$as_me:$LINENO: checking for $ac_func" >&5
22189-echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22190-if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22191- echo $ECHO_N "(cached) $ECHO_C" >&6
22192+ ;;
22193+ esac
22194+
22195+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
22196+$as_echo_n "checking if PTHREAD_SCOPE_SYSTEM is supported... " >&6; }
22197+ if ${ac_cv_pthread_system_supported+:} false; then :
22198+ $as_echo_n "(cached) " >&6
22199 else
22200- cat >conftest.$ac_ext <<_ACEOF
22201-/* confdefs.h. */
22202-_ACEOF
22203-cat confdefs.h >>conftest.$ac_ext
22204-cat >>conftest.$ac_ext <<_ACEOF
22205+ if test "$cross_compiling" = yes; then :
22206+ ac_cv_pthread_system_supported=no
22207+else
22208+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22209 /* end confdefs.h. */
22210-/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22211- For example, HP-UX 11i <limits.h> declares gettimeofday. */
22212-#define $ac_func innocuous_$ac_func
22213+#include <pthread.h>
22214+ void *foo(void *parm) {
22215+ return NULL;
22216+ }
22217+ main() {
22218+ pthread_attr_t attr;
22219+ pthread_t id;
22220+ if (pthread_attr_init(&attr)) exit(-1);
22221+ if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
22222+ if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
22223+ exit(0);
22224+ }
22225+_ACEOF
22226+if ac_fn_c_try_run "$LINENO"; then :
22227+ ac_cv_pthread_system_supported=yes
22228+else
22229+ ac_cv_pthread_system_supported=no
22230+fi
22231+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22232+ conftest.$ac_objext conftest.beam conftest.$ac_ext
22233+fi
22234
22235-/* System header to define __stub macros and hopefully few prototypes,
22236- which can conflict with char $ac_func (); below.
22237- Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22238- <limits.h> exists even on freestanding compilers. */
22239
22240-#ifdef __STDC__
22241-# include <limits.h>
22242-#else
22243-# include <assert.h>
22244-#endif
22245+fi
22246
22247-#undef $ac_func
22248+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_system_supported" >&5
22249+$as_echo "$ac_cv_pthread_system_supported" >&6; }
22250+ if test "$ac_cv_pthread_system_supported" = "yes"; then
22251
22252-/* Override any GCC internal prototype to avoid an error.
22253- Use char because int might match the return type of a GCC
22254- builtin and then its argument prototype would still apply. */
22255-#ifdef __cplusplus
22256-extern "C"
22257-#endif
22258-char $ac_func ();
22259-/* The GNU C library defines this for functions which it implements
22260- to always fail with ENOSYS. Some functions are actually named
22261- something starting with __ and the normal name is an alias. */
22262-#if defined __stub_$ac_func || defined __stub___$ac_func
22263-choke me
22264-#endif
22265+$as_echo "#define PTHREAD_SYSTEM_SCHED_SUPPORTED 1" >>confdefs.h
22266
22267-int
22268-main ()
22269-{
22270-return $ac_func ();
22271- ;
22272- return 0;
22273-}
22274+ fi
22275+ for ac_func in pthread_sigmask
22276+do :
22277+ ac_fn_c_check_func "$LINENO" "pthread_sigmask" "ac_cv_func_pthread_sigmask"
22278+if test "x$ac_cv_func_pthread_sigmask" = xyes; then :
22279+ cat >>confdefs.h <<_ACEOF
22280+#define HAVE_PTHREAD_SIGMASK 1
22281 _ACEOF
22282-rm -f conftest.$ac_objext conftest$ac_exeext
22283-if { (ac_try="$ac_link"
22284-case "(($ac_try" in
22285- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22286- *) ac_try_echo=$ac_try;;
22287-esac
22288-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22289- (eval "$ac_link") 2>conftest.er1
22290- ac_status=$?
22291- grep -v '^ *+' conftest.er1 >conftest.err
22292- rm -f conftest.er1
22293- cat conftest.err >&5
22294- echo "$as_me:$LINENO: \$? = $ac_status" >&5
22295- (exit $ac_status); } && {
22296- test -z "$ac_c_werror_flag" ||
22297- test ! -s conftest.err
22298- } && test -s conftest$ac_exeext &&
22299- $as_test_x conftest$ac_exeext; then
22300- eval "$as_ac_var=yes"
22301-else
22302- echo "$as_me: failed program was:" >&5
22303-sed 's/^/| /' conftest.$ac_ext >&5
22304+ case $ac_sys_system in
22305+ CYGWIN*)
22306+
22307+$as_echo "#define HAVE_BROKEN_PTHREAD_SIGMASK 1" >>confdefs.h
22308
22309- eval "$as_ac_var=no"
22310+ ;;
22311+ esac
22312 fi
22313+done
22314
22315-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22316- conftest$ac_exeext conftest.$ac_ext
22317 fi
22318-ac_res=`eval echo '${'$as_ac_var'}'`
22319- { echo "$as_me:$LINENO: result: $ac_res" >&5
22320-echo "${ECHO_T}$ac_res" >&6; }
22321-if test `eval echo '${'$as_ac_var'}'` = yes; then
22322- cat >>confdefs.h <<_ACEOF
22323-#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22324-_ACEOF
22325- cat >conftest.$ac_ext <<_ACEOF
22326-/* confdefs.h. */
22327-_ACEOF
22328-cat confdefs.h >>conftest.$ac_ext
22329-cat >>conftest.$ac_ext <<_ACEOF
22330+
22331+
22332+# Check for enable-ipv6
22333+
22334+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-ipv6 is specified" >&5
22335+$as_echo_n "checking if --enable-ipv6 is specified... " >&6; }
22336+# Check whether --enable-ipv6 was given.
22337+if test "${enable_ipv6+set}" = set; then :
22338+ enableval=$enable_ipv6; case "$enableval" in
22339+ no)
22340+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22341+$as_echo "no" >&6; }
22342+ ipv6=no
22343+ ;;
22344+ *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22345+$as_echo "yes" >&6; }
22346+ $as_echo "#define ENABLE_IPV6 1" >>confdefs.h
22347+
22348+ ipv6=yes
22349+ ;;
22350+ esac
22351+else
22352+
22353+ if test "$cross_compiling" = yes; then :
22354+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22355+$as_echo "no" >&6; }
22356+ ipv6=no
22357+
22358+else
22359+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22360 /* end confdefs.h. */
22361-#include <unistd.h>
22362-int
22363-main ()
22364+ /* AF_INET6 available check */
22365+#include <sys/types.h>
22366+#include <sys/socket.h>
22367+main()
22368 {
22369-setpgrp(0,0);
22370- ;
22371- return 0;
22372-}
22373-_ACEOF
22374-rm -f conftest.$ac_objext
22375-if { (ac_try="$ac_compile"
22376-case "(($ac_try" in
22377- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22378- *) ac_try_echo=$ac_try;;
22379-esac
22380-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22381- (eval "$ac_compile") 2>conftest.er1
22382- ac_status=$?
22383- grep -v '^ *+' conftest.er1 >conftest.err
22384- rm -f conftest.er1
22385- cat conftest.err >&5
22386- echo "$as_me:$LINENO: \$? = $ac_status" >&5
22387- (exit $ac_status); } && {
22388- test -z "$ac_c_werror_flag" ||
22389- test ! -s conftest.err
22390- } && test -s conftest.$ac_objext; then
22391+ if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
22392+ exit(1);
22393+ else
22394+ exit(0);
22395+}
22396
22397-cat >>confdefs.h <<\_ACEOF
22398-#define SETPGRP_HAVE_ARG 1
22399 _ACEOF
22400-
22401-
22402+if ac_fn_c_try_run "$LINENO"; then :
22403+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22404+$as_echo "yes" >&6; }
22405+ ipv6=yes
22406 else
22407- echo "$as_me: failed program was:" >&5
22408-sed 's/^/| /' conftest.$ac_ext >&5
22409-
22410-
22411+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22412+$as_echo "no" >&6; }
22413+ ipv6=no
22414 fi
22415-
22416-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22417-
22418+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22419+ conftest.$ac_objext conftest.beam conftest.$ac_ext
22420 fi
22421-done
22422
22423
22424-for ac_func in gettimeofday
22425-do
22426-as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22427-{ echo "$as_me:$LINENO: checking for $ac_func" >&5
22428-echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22429-if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22430- echo $ECHO_N "(cached) $ECHO_C" >&6
22431-else
22432- cat >conftest.$ac_ext <<_ACEOF
22433-/* confdefs.h. */
22434-_ACEOF
22435-cat confdefs.h >>conftest.$ac_ext
22436-cat >>conftest.$ac_ext <<_ACEOF
22437+if test "$ipv6" = "yes"; then
22438+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RFC2553 API is available" >&5
22439+$as_echo_n "checking if RFC2553 API is available... " >&6; }
22440+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22441 /* end confdefs.h. */
22442-/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22443- For example, HP-UX 11i <limits.h> declares gettimeofday. */
22444-#define $ac_func innocuous_$ac_func
22445-
22446-/* System header to define __stub macros and hopefully few prototypes,
22447- which can conflict with char $ac_func (); below.
22448- Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22449- <limits.h> exists even on freestanding compilers. */
22450-
22451-#ifdef __STDC__
22452-# include <limits.h>
22453-#else
22454-# include <assert.h>
22455-#endif
22456-
22457-#undef $ac_func
22458-
22459-/* Override any GCC internal prototype to avoid an error.
22460- Use char because int might match the return type of a GCC
22461- builtin and then its argument prototype would still apply. */
22462-#ifdef __cplusplus
22463-extern "C"
22464-#endif
22465-char $ac_func ();
22466-/* The GNU C library defines this for functions which it implements
22467- to always fail with ENOSYS. Some functions are actually named
22468- something starting with __ and the normal name is an alias. */
22469-#if defined __stub_$ac_func || defined __stub___$ac_func
22470-choke me
22471-#endif
22472-
22473+#include <sys/types.h>
22474+#include <netinet/in.h>
22475 int
22476 main ()
22477 {
22478-return $ac_func ();
22479+struct sockaddr_in6 x;
22480+x.sin6_scope_id;
22481 ;
22482 return 0;
22483 }
22484 _ACEOF
22485-rm -f conftest.$ac_objext conftest$ac_exeext
22486-if { (ac_try="$ac_link"
22487-case "(($ac_try" in
22488- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22489- *) ac_try_echo=$ac_try;;
22490-esac
22491-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22492- (eval "$ac_link") 2>conftest.er1
22493- ac_status=$?
22494- grep -v '^ *+' conftest.er1 >conftest.err
22495- rm -f conftest.er1
22496- cat conftest.err >&5
22497- echo "$as_me:$LINENO: \$? = $ac_status" >&5
22498- (exit $ac_status); } && {
22499- test -z "$ac_c_werror_flag" ||
22500- test ! -s conftest.err
22501- } && test -s conftest$ac_exeext &&
22502- $as_test_x conftest$ac_exeext; then
22503- eval "$as_ac_var=yes"
22504+if ac_fn_c_try_compile "$LINENO"; then :
22505+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22506+$as_echo "yes" >&6; }
22507+ ipv6=yes
22508 else
22509- echo "$as_me: failed program was:" >&5
22510-sed 's/^/| /' conftest.$ac_ext >&5
22511+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22512+$as_echo "no" >&6; }
22513+ ipv6=no
22514+fi
22515+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22516+fi
22517+
22518+if test "$ipv6" = "yes"; then
22519+ $as_echo "#define ENABLE_IPV6 1" >>confdefs.h
22520
22521- eval "$as_ac_var=no"
22522 fi
22523
22524-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22525- conftest$ac_exeext conftest.$ac_ext
22526 fi
22527-ac_res=`eval echo '${'$as_ac_var'}'`
22528- { echo "$as_me:$LINENO: result: $ac_res" >&5
22529-echo "${ECHO_T}$ac_res" >&6; }
22530-if test `eval echo '${'$as_ac_var'}'` = yes; then
22531- cat >>confdefs.h <<_ACEOF
22532-#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22533-_ACEOF
22534- cat >conftest.$ac_ext <<_ACEOF
22535-/* confdefs.h. */
22536-_ACEOF
22537-cat confdefs.h >>conftest.$ac_ext
22538-cat >>conftest.$ac_ext <<_ACEOF
22539+
22540+
22541+ipv6type=unknown
22542+ipv6lib=none
22543+ipv6trylibc=no
22544+
22545+if test "$ipv6" = "yes"; then
22546+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking ipv6 stack type" >&5
22547+$as_echo_n "checking ipv6 stack type... " >&6; }
22548+ for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
22549+ do
22550+ case $i in
22551+ inria)
22552+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22553 /* end confdefs.h. */
22554-#include <sys/time.h>
22555-int
22556-main ()
22557-{
22558-gettimeofday((struct timeval*)0,(struct timezone*)0);
22559- ;
22560- return 0;
22561-}
22562+
22563+#include <netinet/in.h>
22564+#ifdef IPV6_INRIA_VERSION
22565+yes
22566+#endif
22567 _ACEOF
22568-rm -f conftest.$ac_objext
22569-if { (ac_try="$ac_compile"
22570-case "(($ac_try" in
22571- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22572- *) ac_try_echo=$ac_try;;
22573-esac
22574-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22575- (eval "$ac_compile") 2>conftest.er1
22576- ac_status=$?
22577- grep -v '^ *+' conftest.er1 >conftest.err
22578- rm -f conftest.er1
22579- cat conftest.err >&5
22580- echo "$as_me:$LINENO: \$? = $ac_status" >&5
22581- (exit $ac_status); } && {
22582- test -z "$ac_c_werror_flag" ||
22583- test ! -s conftest.err
22584- } && test -s conftest.$ac_objext; then
22585- :
22586-else
22587- echo "$as_me: failed program was:" >&5
22588-sed 's/^/| /' conftest.$ac_ext >&5
22589+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22590+ $EGREP "yes" >/dev/null 2>&1; then :
22591+ ipv6type=$i
22592+fi
22593+rm -f conftest*
22594
22595+ ;;
22596+ kame)
22597+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22598+/* end confdefs.h. */
22599
22600-cat >>confdefs.h <<\_ACEOF
22601-#define GETTIMEOFDAY_NO_TZ 1
22602+#include <netinet/in.h>
22603+#ifdef __KAME__
22604+yes
22605+#endif
22606 _ACEOF
22607+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22608+ $EGREP "yes" >/dev/null 2>&1; then :
22609+ ipv6type=$i;
22610+ ipv6lib=inet6
22611+ ipv6libdir=/usr/local/v6/lib
22612+ ipv6trylibc=yes
22613+fi
22614+rm -f conftest*
22615
22616+ ;;
22617+ linux-glibc)
22618+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22619+/* end confdefs.h. */
22620
22621+#include <features.h>
22622+#if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
22623+yes
22624+#endif
22625+_ACEOF
22626+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22627+ $EGREP "yes" >/dev/null 2>&1; then :
22628+ ipv6type=$i;
22629+ ipv6trylibc=yes
22630 fi
22631+rm -f conftest*
22632
22633-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22634+ ;;
22635+ linux-inet6)
22636+ if test -d /usr/inet6; then
22637+ ipv6type=$i
22638+ ipv6lib=inet6
22639+ ipv6libdir=/usr/inet6/lib
22640+ BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
22641+ fi
22642+ ;;
22643+ solaris)
22644+ if test -f /etc/netconfig; then
22645+ if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then
22646+ ipv6type=$i
22647+ ipv6trylibc=yes
22648+ fi
22649+ fi
22650+ ;;
22651+ toshiba)
22652+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22653+/* end confdefs.h. */
22654
22655+#include <sys/param.h>
22656+#ifdef _TOSHIBA_INET6
22657+yes
22658+#endif
22659+_ACEOF
22660+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22661+ $EGREP "yes" >/dev/null 2>&1; then :
22662+ ipv6type=$i;
22663+ ipv6lib=inet6;
22664+ ipv6libdir=/usr/local/v6/lib
22665 fi
22666-done
22667+rm -f conftest*
22668
22669+ ;;
22670+ v6d)
22671+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22672+/* end confdefs.h. */
22673
22674-{ echo "$as_me:$LINENO: checking for major" >&5
22675-echo $ECHO_N "checking for major... $ECHO_C" >&6; }
22676-cat >conftest.$ac_ext <<_ACEOF
22677-/* confdefs.h. */
22678+#include </usr/local/v6/include/sys/v6config.h>
22679+#ifdef __V6D__
22680+yes
22681+#endif
22682 _ACEOF
22683-cat confdefs.h >>conftest.$ac_ext
22684-cat >>conftest.$ac_ext <<_ACEOF
22685+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22686+ $EGREP "yes" >/dev/null 2>&1; then :
22687+ ipv6type=$i;
22688+ ipv6lib=v6;
22689+ ipv6libdir=/usr/local/v6/lib;
22690+ BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
22691+fi
22692+rm -f conftest*
22693+
22694+ ;;
22695+ zeta)
22696+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22697 /* end confdefs.h. */
22698
22699-#if defined(MAJOR_IN_MKDEV)
22700-#include <sys/mkdev.h>
22701-#elif defined(MAJOR_IN_SYSMACROS)
22702-#include <sys/sysmacros.h>
22703-#else
22704-#include <sys/types.h>
22705+#include <sys/param.h>
22706+#ifdef _ZETA_MINAMI_INET6
22707+yes
22708 #endif
22709+_ACEOF
22710+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22711+ $EGREP "yes" >/dev/null 2>&1; then :
22712+ ipv6type=$i;
22713+ ipv6lib=inet6;
22714+ ipv6libdir=/usr/local/v6/lib
22715+fi
22716+rm -f conftest*
22717+
22718+ ;;
22719+ esac
22720+ if test "$ipv6type" != "unknown"; then
22721+ break
22722+ fi
22723+ done
22724+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6type" >&5
22725+$as_echo "$ipv6type" >&6; }
22726+fi
22727+
22728+if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
22729+ if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
22730+ LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
22731+ echo "using lib$ipv6lib"
22732+ else
22733+ if test $ipv6trylibc = "yes"; then
22734+ echo "using libc"
22735+ else
22736+ echo 'Fatal: no $ipv6lib library found. cannot continue.'
22737+ echo "You need to fetch lib$ipv6lib.a from appropriate"
22738+ echo 'ipv6 kit and compile beforehand.'
22739+ exit 1
22740+ fi
22741+ fi
22742+fi
22743
22744+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSX 10.5 SDK or later" >&5
22745+$as_echo_n "checking for OSX 10.5 SDK or later... " >&6; }
22746+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22747+/* end confdefs.h. */
22748+#include <Carbon/Carbon.h>
22749 int
22750 main ()
22751 {
22752-
22753- makedev(major(0),minor(0));
22754-
22755+FSIORefNum fRef = 0
22756 ;
22757 return 0;
22758 }
22759 _ACEOF
22760-rm -f conftest.$ac_objext conftest$ac_exeext
22761-if { (ac_try="$ac_link"
22762-case "(($ac_try" in
22763- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22764- *) ac_try_echo=$ac_try;;
22765-esac
22766-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22767- (eval "$ac_link") 2>conftest.er1
22768- ac_status=$?
22769- grep -v '^ *+' conftest.er1 >conftest.err
22770- rm -f conftest.er1
22771- cat conftest.err >&5
22772- echo "$as_me:$LINENO: \$? = $ac_status" >&5
22773- (exit $ac_status); } && {
22774- test -z "$ac_c_werror_flag" ||
22775- test ! -s conftest.err
22776- } && test -s conftest$ac_exeext &&
22777- $as_test_x conftest$ac_exeext; then
22778+if ac_fn_c_try_compile "$LINENO"; then :
22779
22780+$as_echo "#define HAVE_OSX105_SDK 1" >>confdefs.h
22781
22782-cat >>confdefs.h <<\_ACEOF
22783-#define HAVE_DEVICE_MACROS 1
22784-_ACEOF
22785+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22786+$as_echo "yes" >&6; }
22787+else
22788+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22789+$as_echo "no" >&6; }
22790
22791- { echo "$as_me:$LINENO: result: yes" >&5
22792-echo "${ECHO_T}yes" >&6; }
22793+fi
22794+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22795+
22796+# Check for --with-doc-strings
22797+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-doc-strings" >&5
22798+$as_echo_n "checking for --with-doc-strings... " >&6; }
22799+
22800+# Check whether --with-doc-strings was given.
22801+if test "${with_doc_strings+set}" = set; then :
22802+ withval=$with_doc_strings;
22803+fi
22804
22805-else
22806- echo "$as_me: failed program was:" >&5
22807-sed 's/^/| /' conftest.$ac_ext >&5
22808
22809+if test -z "$with_doc_strings"
22810+then with_doc_strings="yes"
22811+fi
22812+if test "$with_doc_strings" != "no"
22813+then
22814
22815- { echo "$as_me:$LINENO: result: no" >&5
22816-echo "${ECHO_T}no" >&6; }
22817+$as_echo "#define WITH_DOC_STRINGS 1" >>confdefs.h
22818
22819 fi
22820+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_doc_strings" >&5
22821+$as_echo "$with_doc_strings" >&6; }
22822
22823-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22824- conftest$ac_exeext conftest.$ac_ext
22825+# Check for Python-specific malloc support
22826+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tsc" >&5
22827+$as_echo_n "checking for --with-tsc... " >&6; }
22828
22829-# On OSF/1 V5.1, getaddrinfo is available, but a define
22830-# for [no]getaddrinfo in netdb.h.
22831-{ echo "$as_me:$LINENO: checking for getaddrinfo" >&5
22832-echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
22833-cat >conftest.$ac_ext <<_ACEOF
22834-/* confdefs.h. */
22835-_ACEOF
22836-cat confdefs.h >>conftest.$ac_ext
22837-cat >>conftest.$ac_ext <<_ACEOF
22838-/* end confdefs.h. */
22839+# Check whether --with-tsc was given.
22840+if test "${with_tsc+set}" = set; then :
22841+ withval=$with_tsc;
22842+if test "$withval" != no
22843+then
22844
22845-#include <sys/types.h>
22846-#include <sys/socket.h>
22847-#include <netdb.h>
22848-#include <stdio.h>
22849+$as_echo "#define WITH_TSC 1" >>confdefs.h
22850
22851-int
22852-main ()
22853-{
22854+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22855+$as_echo "yes" >&6; }
22856+else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22857+$as_echo "no" >&6; }
22858+fi
22859+else
22860+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22861+$as_echo "no" >&6; }
22862+fi
22863
22864-getaddrinfo(NULL, NULL, NULL, NULL);
22865
22866- ;
22867- return 0;
22868-}
22869-_ACEOF
22870-rm -f conftest.$ac_objext conftest$ac_exeext
22871-if { (ac_try="$ac_link"
22872-case "(($ac_try" in
22873- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22874- *) ac_try_echo=$ac_try;;
22875-esac
22876-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22877- (eval "$ac_link") 2>conftest.er1
22878- ac_status=$?
22879- grep -v '^ *+' conftest.er1 >conftest.err
22880- rm -f conftest.er1
22881- cat conftest.err >&5
22882- echo "$as_me:$LINENO: \$? = $ac_status" >&5
22883- (exit $ac_status); } && {
22884- test -z "$ac_c_werror_flag" ||
22885- test ! -s conftest.err
22886- } && test -s conftest$ac_exeext &&
22887- $as_test_x conftest$ac_exeext; then
22888+# Check for Python-specific malloc support
22889+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pymalloc" >&5
22890+$as_echo_n "checking for --with-pymalloc... " >&6; }
22891
22892-{ echo "$as_me:$LINENO: result: yes" >&5
22893-echo "${ECHO_T}yes" >&6; }
22894-{ echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
22895-echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
22896-if test "$cross_compiling" = yes; then
22897- { echo "$as_me:$LINENO: result: buggy" >&5
22898-echo "${ECHO_T}buggy" >&6; }
22899-buggygetaddrinfo=yes
22900-else
22901- cat >conftest.$ac_ext <<_ACEOF
22902-/* confdefs.h. */
22903-_ACEOF
22904-cat confdefs.h >>conftest.$ac_ext
22905-cat >>conftest.$ac_ext <<_ACEOF
22906-/* end confdefs.h. */
22907+# Check whether --with-pymalloc was given.
22908+if test "${with_pymalloc+set}" = set; then :
22909+ withval=$with_pymalloc;
22910+fi
22911
22912-#include <sys/types.h>
22913-#include <netdb.h>
22914-#include <string.h>
22915-#include <sys/socket.h>
22916-#include <netinet/in.h>
22917
22918-main()
22919-{
22920- int passive, gaierr, inet4 = 0, inet6 = 0;
22921- struct addrinfo hints, *ai, *aitop;
22922- char straddr[INET6_ADDRSTRLEN], strport[16];
22923+if test -z "$with_pymalloc"
22924+then with_pymalloc="yes"
22925+fi
22926+if test "$with_pymalloc" != "no"
22927+then
22928
22929- for (passive = 0; passive <= 1; passive++) {
22930- memset(&hints, 0, sizeof(hints));
22931- hints.ai_family = AF_UNSPEC;
22932- hints.ai_flags = passive ? AI_PASSIVE : 0;
22933- hints.ai_socktype = SOCK_STREAM;
22934- hints.ai_protocol = IPPROTO_TCP;
22935- if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
22936- (void)gai_strerror(gaierr);
22937- goto bad;
22938- }
22939- for (ai = aitop; ai; ai = ai->ai_next) {
22940- if (ai->ai_addr == NULL ||
22941- ai->ai_addrlen == 0 ||
22942- getnameinfo(ai->ai_addr, ai->ai_addrlen,
22943- straddr, sizeof(straddr), strport, sizeof(strport),
22944- NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
22945- goto bad;
22946- }
22947- switch (ai->ai_family) {
22948- case AF_INET:
22949- if (strcmp(strport, "54321") != 0) {
22950- goto bad;
22951- }
22952- if (passive) {
22953- if (strcmp(straddr, "0.0.0.0") != 0) {
22954- goto bad;
22955- }
22956- } else {
22957- if (strcmp(straddr, "127.0.0.1") != 0) {
22958- goto bad;
22959- }
22960- }
22961- inet4++;
22962- break;
22963- case AF_INET6:
22964- if (strcmp(strport, "54321") != 0) {
22965- goto bad;
22966- }
22967- if (passive) {
22968- if (strcmp(straddr, "::") != 0) {
22969- goto bad;
22970- }
22971- } else {
22972- if (strcmp(straddr, "::1") != 0) {
22973- goto bad;
22974- }
22975- }
22976- inet6++;
22977- break;
22978- case AF_UNSPEC:
22979- goto bad;
22980- break;
22981- default:
22982- /* another family support? */
22983- break;
22984- }
22985- }
22986- }
22987+$as_echo "#define WITH_PYMALLOC 1" >>confdefs.h
22988
22989- if (!(inet4 == 0 || inet4 == 2))
22990- goto bad;
22991- if (!(inet6 == 0 || inet6 == 2))
22992- goto bad;
22993+fi
22994+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pymalloc" >&5
22995+$as_echo "$with_pymalloc" >&6; }
22996
22997- if (aitop)
22998- freeaddrinfo(aitop);
22999- exit(0);
23000+# Check for --with-wctype-functions
23001+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-wctype-functions" >&5
23002+$as_echo_n "checking for --with-wctype-functions... " >&6; }
23003
23004- bad:
23005- if (aitop)
23006- freeaddrinfo(aitop);
23007- exit(1);
23008-}
23009+# Check whether --with-wctype-functions was given.
23010+if test "${with_wctype_functions+set}" = set; then :
23011+ withval=$with_wctype_functions;
23012+if test "$withval" != no
23013+then
23014
23015-_ACEOF
23016-rm -f conftest$ac_exeext
23017-if { (ac_try="$ac_link"
23018-case "(($ac_try" in
23019- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23020- *) ac_try_echo=$ac_try;;
23021-esac
23022-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23023- (eval "$ac_link") 2>&5
23024- ac_status=$?
23025- echo "$as_me:$LINENO: \$? = $ac_status" >&5
23026- (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23027- { (case "(($ac_try" in
23028- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23029- *) ac_try_echo=$ac_try;;
23030-esac
23031-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23032- (eval "$ac_try") 2>&5
23033- ac_status=$?
23034- echo "$as_me:$LINENO: \$? = $ac_status" >&5
23035- (exit $ac_status); }; }; then
23036- { echo "$as_me:$LINENO: result: good" >&5
23037-echo "${ECHO_T}good" >&6; }
23038-buggygetaddrinfo=no
23039-else
23040- echo "$as_me: program exited with status $ac_status" >&5
23041-echo "$as_me: failed program was:" >&5
23042-sed 's/^/| /' conftest.$ac_ext >&5
23043+$as_echo "#define WANT_WCTYPE_FUNCTIONS 1" >>confdefs.h
23044
23045-( exit $ac_status )
23046-{ echo "$as_me:$LINENO: result: buggy" >&5
23047-echo "${ECHO_T}buggy" >&6; }
23048-buggygetaddrinfo=yes
23049+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23050+$as_echo "yes" >&6; }
23051+else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23052+$as_echo "no" >&6; }
23053 fi
23054-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23055+else
23056+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23057+$as_echo "no" >&6; }
23058 fi
23059
23060
23061-else
23062- echo "$as_me: failed program was:" >&5
23063-sed 's/^/| /' conftest.$ac_ext >&5
23064+# -I${DLINCLDIR} is added to the compile rule for importdl.o
23065
23066+DLINCLDIR=.
23067
23068-{ echo "$as_me:$LINENO: result: no" >&5
23069-echo "${ECHO_T}no" >&6; }
23070-buggygetaddrinfo=yes
23071+# the dlopen() function means we might want to use dynload_shlib.o. some
23072+# platforms, such as AIX, have dlopen(), but don't want to use it.
23073+for ac_func in dlopen
23074+do :
23075+ ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
23076+if test "x$ac_cv_func_dlopen" = xyes; then :
23077+ cat >>confdefs.h <<_ACEOF
23078+#define HAVE_DLOPEN 1
23079+_ACEOF
23080
23081 fi
23082+done
23083
23084-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23085- conftest$ac_exeext conftest.$ac_ext
23086
23087-if test "$buggygetaddrinfo" = "yes"; then
23088- if test "$ipv6" = "yes"; then
23089- echo 'Fatal: You must get working getaddrinfo() function.'
23090- echo ' or you can specify "--disable-ipv6"'.
23091- exit 1
23092+# DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
23093+# loading of modules.
23094+
23095+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking DYNLOADFILE" >&5
23096+$as_echo_n "checking DYNLOADFILE... " >&6; }
23097+if test -z "$DYNLOADFILE"
23098+then
23099+ case $ac_sys_system/$ac_sys_release in
23100+ AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
23101+ if test "$ac_cv_func_dlopen" = yes
23102+ then DYNLOADFILE="dynload_shlib.o"
23103+ else DYNLOADFILE="dynload_aix.o"
23104 fi
23105-else
23106+ ;;
23107+ BeOS*) DYNLOADFILE="dynload_beos.o";;
23108+ hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
23109+ # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
23110+ Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";;
23111+ atheos*) DYNLOADFILE="dynload_atheos.o";;
23112+ mingw*) DYNLOADFILE="dynload_win.o";;
23113+ *)
23114+ # use dynload_shlib.c and dlopen() if we have it; otherwise stub
23115+ # out any dynamic loading
23116+ if test "$ac_cv_func_dlopen" = yes
23117+ then DYNLOADFILE="dynload_shlib.o"
23118+ else DYNLOADFILE="dynload_stub.o"
23119+ fi
23120+ ;;
23121+ esac
23122+fi
23123+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DYNLOADFILE" >&5
23124+$as_echo "$DYNLOADFILE" >&6; }
23125+if test "$DYNLOADFILE" != "dynload_stub.o"
23126+then
23127
23128-cat >>confdefs.h <<\_ACEOF
23129-#define HAVE_GETADDRINFO 1
23130-_ACEOF
23131+$as_echo "#define HAVE_DYNAMIC_LOADING 1" >>confdefs.h
23132
23133 fi
23134
23135-for ac_func in getnameinfo
23136-do
23137-as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23138-{ echo "$as_me:$LINENO: checking for $ac_func" >&5
23139-echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23140-if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23141- echo $ECHO_N "(cached) $ECHO_C" >&6
23142-else
23143- cat >conftest.$ac_ext <<_ACEOF
23144-/* confdefs.h. */
23145-_ACEOF
23146-cat confdefs.h >>conftest.$ac_ext
23147-cat >>conftest.$ac_ext <<_ACEOF
23148-/* end confdefs.h. */
23149-/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23150- For example, HP-UX 11i <limits.h> declares gettimeofday. */
23151-#define $ac_func innocuous_$ac_func
23152+# MACHDEP_OBJS can be set to platform-specific object files needed by Python
23153
23154-/* System header to define __stub macros and hopefully few prototypes,
23155- which can conflict with char $ac_func (); below.
23156- Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23157- <limits.h> exists even on freestanding compilers. */
23158
23159-#ifdef __STDC__
23160-# include <limits.h>
23161-#else
23162-# include <assert.h>
23163-#endif
23164+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP_OBJS" >&5
23165+$as_echo_n "checking MACHDEP_OBJS... " >&6; }
23166+if test -z "$MACHDEP_OBJS"
23167+then
23168+ MACHDEP_OBJS=$extra_machdep_objs
23169+else
23170+ MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
23171+fi
23172+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: MACHDEP_OBJS" >&5
23173+$as_echo "MACHDEP_OBJS" >&6; }
23174
23175-#undef $ac_func
23176+# checks for library functions
23177+for ac_func in alarm setitimer getitimer bind_textdomain_codeset chown \
23178+ clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \
23179+ gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
23180+ getpriority getpwent getspnam getspent getsid getwd \
23181+ kill killpg lchmod lchown lstat mkfifo mknod mktime \
23182+ mremap nice pathconf pause plock poll pthread_init \
23183+ putenv readlink realpath \
23184+ select setegid seteuid setgid \
23185+ setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
23186+ sigaction siginterrupt sigrelse strftime \
23187+ sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
23188+ truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty
23189+do :
23190+ as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23191+ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23192+if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23193+ cat >>confdefs.h <<_ACEOF
23194+#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23195+_ACEOF
23196+
23197+fi
23198+done
23199
23200-/* Override any GCC internal prototype to avoid an error.
23201- Use char because int might match the return type of a GCC
23202- builtin and then its argument prototype would still apply. */
23203-#ifdef __cplusplus
23204-extern "C"
23205-#endif
23206-char $ac_func ();
23207-/* The GNU C library defines this for functions which it implements
23208- to always fail with ENOSYS. Some functions are actually named
23209- something starting with __ and the normal name is an alias. */
23210-#if defined __stub_$ac_func || defined __stub___$ac_func
23211-choke me
23212-#endif
23213
23214+# For some functions, having a definition is not sufficient, since
23215+# we want to take their address.
23216+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for chroot" >&5
23217+$as_echo_n "checking for chroot... " >&6; }
23218+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23219+/* end confdefs.h. */
23220+#include <unistd.h>
23221 int
23222 main ()
23223 {
23224-return $ac_func ();
23225+void *x=chroot
23226 ;
23227- return 0;
23228-}
23229-_ACEOF
23230-rm -f conftest.$ac_objext conftest$ac_exeext
23231-if { (ac_try="$ac_link"
23232-case "(($ac_try" in
23233- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23234- *) ac_try_echo=$ac_try;;
23235-esac
23236-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23237- (eval "$ac_link") 2>conftest.er1
23238- ac_status=$?
23239- grep -v '^ *+' conftest.er1 >conftest.err
23240- rm -f conftest.er1
23241- cat conftest.err >&5
23242- echo "$as_me:$LINENO: \$? = $ac_status" >&5
23243- (exit $ac_status); } && {
23244- test -z "$ac_c_werror_flag" ||
23245- test ! -s conftest.err
23246- } && test -s conftest$ac_exeext &&
23247- $as_test_x conftest$ac_exeext; then
23248- eval "$as_ac_var=yes"
23249-else
23250- echo "$as_me: failed program was:" >&5
23251-sed 's/^/| /' conftest.$ac_ext >&5
23252-
23253- eval "$as_ac_var=no"
23254-fi
23255-
23256-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23257- conftest$ac_exeext conftest.$ac_ext
23258-fi
23259-ac_res=`eval echo '${'$as_ac_var'}'`
23260- { echo "$as_me:$LINENO: result: $ac_res" >&5
23261-echo "${ECHO_T}$ac_res" >&6; }
23262-if test `eval echo '${'$as_ac_var'}'` = yes; then
23263- cat >>confdefs.h <<_ACEOF
23264-#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23265+ return 0;
23266+}
23267 _ACEOF
23268+if ac_fn_c_try_compile "$LINENO"; then :
23269
23270-fi
23271-done
23272-
23273+$as_echo "#define HAVE_CHROOT 1" >>confdefs.h
23274
23275-# checks for structures
23276-{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
23277-echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
23278-if test "${ac_cv_header_time+set}" = set; then
23279- echo $ECHO_N "(cached) $ECHO_C" >&6
23280+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23281+$as_echo "yes" >&6; }
23282 else
23283- cat >conftest.$ac_ext <<_ACEOF
23284-/* confdefs.h. */
23285-_ACEOF
23286-cat confdefs.h >>conftest.$ac_ext
23287-cat >>conftest.$ac_ext <<_ACEOF
23288-/* end confdefs.h. */
23289-#include <sys/types.h>
23290-#include <sys/time.h>
23291-#include <time.h>
23292+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23293+$as_echo "no" >&6; }
23294
23295+fi
23296+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23297+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for link" >&5
23298+$as_echo_n "checking for link... " >&6; }
23299+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23300+/* end confdefs.h. */
23301+#include <unistd.h>
23302 int
23303 main ()
23304 {
23305-if ((struct tm *) 0)
23306-return 0;
23307+void *x=link
23308 ;
23309 return 0;
23310 }
23311 _ACEOF
23312-rm -f conftest.$ac_objext
23313-if { (ac_try="$ac_compile"
23314-case "(($ac_try" in
23315- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23316- *) ac_try_echo=$ac_try;;
23317-esac
23318-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23319- (eval "$ac_compile") 2>conftest.er1
23320- ac_status=$?
23321- grep -v '^ *+' conftest.er1 >conftest.err
23322- rm -f conftest.er1
23323- cat conftest.err >&5
23324- echo "$as_me:$LINENO: \$? = $ac_status" >&5
23325- (exit $ac_status); } && {
23326- test -z "$ac_c_werror_flag" ||
23327- test ! -s conftest.err
23328- } && test -s conftest.$ac_objext; then
23329- ac_cv_header_time=yes
23330+if ac_fn_c_try_compile "$LINENO"; then :
23331+
23332+$as_echo "#define HAVE_LINK 1" >>confdefs.h
23333+
23334+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23335+$as_echo "yes" >&6; }
23336 else
23337- echo "$as_me: failed program was:" >&5
23338-sed 's/^/| /' conftest.$ac_ext >&5
23339+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23340+$as_echo "no" >&6; }
23341
23342- ac_cv_header_time=no
23343 fi
23344-
23345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23346-fi
23347-{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
23348-echo "${ECHO_T}$ac_cv_header_time" >&6; }
23349-if test $ac_cv_header_time = yes; then
23350-
23351-cat >>confdefs.h <<\_ACEOF
23352-#define TIME_WITH_SYS_TIME 1
23353+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for symlink" >&5
23354+$as_echo_n "checking for symlink... " >&6; }
23355+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23356+/* end confdefs.h. */
23357+#include <unistd.h>
23358+int
23359+main ()
23360+{
23361+void *x=symlink
23362+ ;
23363+ return 0;
23364+}
23365 _ACEOF
23366+if ac_fn_c_try_compile "$LINENO"; then :
23367
23368-fi
23369+$as_echo "#define HAVE_SYMLINK 1" >>confdefs.h
23370
23371-{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
23372-echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
23373-if test "${ac_cv_struct_tm+set}" = set; then
23374- echo $ECHO_N "(cached) $ECHO_C" >&6
23375+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23376+$as_echo "yes" >&6; }
23377 else
23378- cat >conftest.$ac_ext <<_ACEOF
23379-/* confdefs.h. */
23380-_ACEOF
23381-cat confdefs.h >>conftest.$ac_ext
23382-cat >>conftest.$ac_ext <<_ACEOF
23383-/* end confdefs.h. */
23384-#include <sys/types.h>
23385-#include <time.h>
23386+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23387+$as_echo "no" >&6; }
23388
23389+fi
23390+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23391+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fchdir" >&5
23392+$as_echo_n "checking for fchdir... " >&6; }
23393+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23394+/* end confdefs.h. */
23395+#include <unistd.h>
23396 int
23397 main ()
23398 {
23399-struct tm tm;
23400- int *p = &tm.tm_sec;
23401- return !p;
23402+void *x=fchdir
23403 ;
23404 return 0;
23405 }
23406 _ACEOF
23407-rm -f conftest.$ac_objext
23408-if { (ac_try="$ac_compile"
23409-case "(($ac_try" in
23410- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23411- *) ac_try_echo=$ac_try;;
23412-esac
23413-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23414- (eval "$ac_compile") 2>conftest.er1
23415- ac_status=$?
23416- grep -v '^ *+' conftest.er1 >conftest.err
23417- rm -f conftest.er1
23418- cat conftest.err >&5
23419- echo "$as_me:$LINENO: \$? = $ac_status" >&5
23420- (exit $ac_status); } && {
23421- test -z "$ac_c_werror_flag" ||
23422- test ! -s conftest.err
23423- } && test -s conftest.$ac_objext; then
23424- ac_cv_struct_tm=time.h
23425+if ac_fn_c_try_compile "$LINENO"; then :
23426+
23427+$as_echo "#define HAVE_FCHDIR 1" >>confdefs.h
23428+
23429+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23430+$as_echo "yes" >&6; }
23431 else
23432- echo "$as_me: failed program was:" >&5
23433-sed 's/^/| /' conftest.$ac_ext >&5
23434+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23435+$as_echo "no" >&6; }
23436
23437- ac_cv_struct_tm=sys/time.h
23438 fi
23439-
23440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23441-fi
23442-{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
23443-echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
23444-if test $ac_cv_struct_tm = sys/time.h; then
23445-
23446-cat >>confdefs.h <<\_ACEOF
23447-#define TM_IN_SYS_TIME 1
23448+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fsync" >&5
23449+$as_echo_n "checking for fsync... " >&6; }
23450+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23451+/* end confdefs.h. */
23452+#include <unistd.h>
23453+int
23454+main ()
23455+{
23456+void *x=fsync
23457+ ;
23458+ return 0;
23459+}
23460 _ACEOF
23461+if ac_fn_c_try_compile "$LINENO"; then :
23462
23463-fi
23464+$as_echo "#define HAVE_FSYNC 1" >>confdefs.h
23465
23466-{ echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
23467-echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
23468-if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
23469- echo $ECHO_N "(cached) $ECHO_C" >&6
23470+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23471+$as_echo "yes" >&6; }
23472 else
23473- cat >conftest.$ac_ext <<_ACEOF
23474-/* confdefs.h. */
23475-_ACEOF
23476-cat confdefs.h >>conftest.$ac_ext
23477-cat >>conftest.$ac_ext <<_ACEOF
23478-/* end confdefs.h. */
23479-#include <sys/types.h>
23480-#include <$ac_cv_struct_tm>
23481-
23482+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23483+$as_echo "no" >&6; }
23484
23485+fi
23486+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23487+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fdatasync" >&5
23488+$as_echo_n "checking for fdatasync... " >&6; }
23489+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23490+/* end confdefs.h. */
23491+#include <unistd.h>
23492 int
23493 main ()
23494 {
23495-static struct tm ac_aggr;
23496-if (ac_aggr.tm_zone)
23497-return 0;
23498+void *x=fdatasync
23499 ;
23500 return 0;
23501 }
23502 _ACEOF
23503-rm -f conftest.$ac_objext
23504-if { (ac_try="$ac_compile"
23505-case "(($ac_try" in
23506- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23507- *) ac_try_echo=$ac_try;;
23508-esac
23509-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23510- (eval "$ac_compile") 2>conftest.er1
23511- ac_status=$?
23512- grep -v '^ *+' conftest.er1 >conftest.err
23513- rm -f conftest.er1
23514- cat conftest.err >&5
23515- echo "$as_me:$LINENO: \$? = $ac_status" >&5
23516- (exit $ac_status); } && {
23517- test -z "$ac_c_werror_flag" ||
23518- test ! -s conftest.err
23519- } && test -s conftest.$ac_objext; then
23520- ac_cv_member_struct_tm_tm_zone=yes
23521-else
23522- echo "$as_me: failed program was:" >&5
23523-sed 's/^/| /' conftest.$ac_ext >&5
23524+if ac_fn_c_try_compile "$LINENO"; then :
23525
23526- cat >conftest.$ac_ext <<_ACEOF
23527-/* confdefs.h. */
23528-_ACEOF
23529-cat confdefs.h >>conftest.$ac_ext
23530-cat >>conftest.$ac_ext <<_ACEOF
23531-/* end confdefs.h. */
23532-#include <sys/types.h>
23533-#include <$ac_cv_struct_tm>
23534+$as_echo "#define HAVE_FDATASYNC 1" >>confdefs.h
23535
23536+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23537+$as_echo "yes" >&6; }
23538+else
23539+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23540+$as_echo "no" >&6; }
23541
23542+fi
23543+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23544+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll" >&5
23545+$as_echo_n "checking for epoll... " >&6; }
23546+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23547+/* end confdefs.h. */
23548+#include <sys/epoll.h>
23549 int
23550 main ()
23551 {
23552-static struct tm ac_aggr;
23553-if (sizeof ac_aggr.tm_zone)
23554-return 0;
23555+void *x=epoll_create
23556 ;
23557 return 0;
23558 }
23559 _ACEOF
23560-rm -f conftest.$ac_objext
23561-if { (ac_try="$ac_compile"
23562-case "(($ac_try" in
23563- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23564- *) ac_try_echo=$ac_try;;
23565-esac
23566-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23567- (eval "$ac_compile") 2>conftest.er1
23568- ac_status=$?
23569- grep -v '^ *+' conftest.er1 >conftest.err
23570- rm -f conftest.er1
23571- cat conftest.err >&5
23572- echo "$as_me:$LINENO: \$? = $ac_status" >&5
23573- (exit $ac_status); } && {
23574- test -z "$ac_c_werror_flag" ||
23575- test ! -s conftest.err
23576- } && test -s conftest.$ac_objext; then
23577- ac_cv_member_struct_tm_tm_zone=yes
23578+if ac_fn_c_try_compile "$LINENO"; then :
23579+
23580+$as_echo "#define HAVE_EPOLL 1" >>confdefs.h
23581+
23582+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23583+$as_echo "yes" >&6; }
23584 else
23585- echo "$as_me: failed program was:" >&5
23586-sed 's/^/| /' conftest.$ac_ext >&5
23587+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23588+$as_echo "no" >&6; }
23589
23590- ac_cv_member_struct_tm_tm_zone=no
23591 fi
23592-
23593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23594-fi
23595+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for kqueue" >&5
23596+$as_echo_n "checking for kqueue... " >&6; }
23597+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23598+/* end confdefs.h. */
23599
23600-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23601-fi
23602-{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
23603-echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
23604-if test $ac_cv_member_struct_tm_tm_zone = yes; then
23605+#include <sys/types.h>
23606+#include <sys/event.h>
23607
23608-cat >>confdefs.h <<_ACEOF
23609-#define HAVE_STRUCT_TM_TM_ZONE 1
23610+int
23611+main ()
23612+{
23613+int x=kqueue()
23614+ ;
23615+ return 0;
23616+}
23617 _ACEOF
23618+if ac_fn_c_try_compile "$LINENO"; then :
23619
23620+$as_echo "#define HAVE_KQUEUE 1" >>confdefs.h
23621
23622-fi
23623-
23624-if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
23625+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23626+$as_echo "yes" >&6; }
23627+else
23628+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23629+$as_echo "no" >&6; }
23630
23631-cat >>confdefs.h <<\_ACEOF
23632-#define HAVE_TM_ZONE 1
23633-_ACEOF
23634+fi
23635+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23636+# On some systems (eg. FreeBSD 5), we would find a definition of the
23637+# functions ctermid_r, setgroups in the library, but no prototype
23638+# (e.g. because we use _XOPEN_SOURCE). See whether we can take their
23639+# address to avoid compiler warnings and potential miscompilations
23640+# because of the missing prototypes.
23641
23642-else
23643- { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
23644-echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
23645-if test "${ac_cv_have_decl_tzname+set}" = set; then
23646- echo $ECHO_N "(cached) $ECHO_C" >&6
23647-else
23648- cat >conftest.$ac_ext <<_ACEOF
23649-/* confdefs.h. */
23650-_ACEOF
23651-cat confdefs.h >>conftest.$ac_ext
23652-cat >>conftest.$ac_ext <<_ACEOF
23653+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctermid_r" >&5
23654+$as_echo_n "checking for ctermid_r... " >&6; }
23655+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23656 /* end confdefs.h. */
23657-#include <time.h>
23658+
23659+#include "confdefs.h"
23660+#include <stdio.h>
23661
23662 int
23663 main ()
23664 {
23665-#ifndef tzname
23666- (void) tzname;
23667-#endif
23668-
23669+void* p = ctermid_r
23670 ;
23671 return 0;
23672 }
23673 _ACEOF
23674-rm -f conftest.$ac_objext
23675-if { (ac_try="$ac_compile"
23676-case "(($ac_try" in
23677- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23678- *) ac_try_echo=$ac_try;;
23679-esac
23680-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23681- (eval "$ac_compile") 2>conftest.er1
23682- ac_status=$?
23683- grep -v '^ *+' conftest.er1 >conftest.err
23684- rm -f conftest.er1
23685- cat conftest.err >&5
23686- echo "$as_me:$LINENO: \$? = $ac_status" >&5
23687- (exit $ac_status); } && {
23688- test -z "$ac_c_werror_flag" ||
23689- test ! -s conftest.err
23690- } && test -s conftest.$ac_objext; then
23691- ac_cv_have_decl_tzname=yes
23692+if ac_fn_c_try_compile "$LINENO"; then :
23693+
23694+$as_echo "#define HAVE_CTERMID_R 1" >>confdefs.h
23695+
23696+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23697+$as_echo "yes" >&6; }
23698 else
23699- echo "$as_me: failed program was:" >&5
23700-sed 's/^/| /' conftest.$ac_ext >&5
23701+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23702+$as_echo "no" >&6; }
23703
23704- ac_cv_have_decl_tzname=no
23705 fi
23706-
23707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23708-fi
23709-{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
23710-echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
23711-if test $ac_cv_have_decl_tzname = yes; then
23712
23713-cat >>confdefs.h <<_ACEOF
23714-#define HAVE_DECL_TZNAME 1
23715-_ACEOF
23716+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock" >&5
23717+$as_echo_n "checking for flock... " >&6; }
23718+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23719+/* end confdefs.h. */
23720
23721+#include "confdefs.h"
23722+#include <sys/file.h>
23723
23724-else
23725- cat >>confdefs.h <<_ACEOF
23726-#define HAVE_DECL_TZNAME 0
23727+int
23728+main ()
23729+{
23730+void* p = flock
23731+ ;
23732+ return 0;
23733+}
23734 _ACEOF
23735+if ac_fn_c_try_compile "$LINENO"; then :
23736
23737+$as_echo "#define HAVE_FLOCK 1" >>confdefs.h
23738
23739-fi
23740+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23741+$as_echo "yes" >&6; }
23742+else
23743+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23744+$as_echo "no" >&6; }
23745
23746+fi
23747+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23748
23749- { echo "$as_me:$LINENO: checking for tzname" >&5
23750-echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
23751-if test "${ac_cv_var_tzname+set}" = set; then
23752- echo $ECHO_N "(cached) $ECHO_C" >&6
23753-else
23754- cat >conftest.$ac_ext <<_ACEOF
23755-/* confdefs.h. */
23756-_ACEOF
23757-cat confdefs.h >>conftest.$ac_ext
23758-cat >>conftest.$ac_ext <<_ACEOF
23759+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize" >&5
23760+$as_echo_n "checking for getpagesize... " >&6; }
23761+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23762 /* end confdefs.h. */
23763-#include <time.h>
23764-#if !HAVE_DECL_TZNAME
23765-extern char *tzname[];
23766-#endif
23767+
23768+#include "confdefs.h"
23769+#include <unistd.h>
23770
23771 int
23772 main ()
23773 {
23774-return tzname[0][0];
23775+void* p = getpagesize
23776 ;
23777 return 0;
23778 }
23779 _ACEOF
23780-rm -f conftest.$ac_objext conftest$ac_exeext
23781-if { (ac_try="$ac_link"
23782-case "(($ac_try" in
23783- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23784- *) ac_try_echo=$ac_try;;
23785-esac
23786-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23787- (eval "$ac_link") 2>conftest.er1
23788- ac_status=$?
23789- grep -v '^ *+' conftest.er1 >conftest.err
23790- rm -f conftest.er1
23791- cat conftest.err >&5
23792- echo "$as_me:$LINENO: \$? = $ac_status" >&5
23793- (exit $ac_status); } && {
23794- test -z "$ac_c_werror_flag" ||
23795- test ! -s conftest.err
23796- } && test -s conftest$ac_exeext &&
23797- $as_test_x conftest$ac_exeext; then
23798- ac_cv_var_tzname=yes
23799+if ac_fn_c_try_compile "$LINENO"; then :
23800+
23801+$as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
23802+
23803+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23804+$as_echo "yes" >&6; }
23805 else
23806- echo "$as_me: failed program was:" >&5
23807-sed 's/^/| /' conftest.$ac_ext >&5
23808+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23809+$as_echo "no" >&6; }
23810
23811- ac_cv_var_tzname=no
23812 fi
23813+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23814+
23815+for ac_prog in true
23816+do
23817+ # Extract the first word of "$ac_prog", so it can be a program name with args.
23818+set dummy $ac_prog; ac_word=$2
23819+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23820+$as_echo_n "checking for $ac_word... " >&6; }
23821+if ${ac_cv_prog_TRUE+:} false; then :
23822+ $as_echo_n "(cached) " >&6
23823+else
23824+ if test -n "$TRUE"; then
23825+ ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
23826+else
23827+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23828+for as_dir in $PATH
23829+do
23830+ IFS=$as_save_IFS
23831+ test -z "$as_dir" && as_dir=.
23832+ for ac_exec_ext in '' $ac_executable_extensions; do
23833+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23834+ ac_cv_prog_TRUE="$ac_prog"
23835+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23836+ break 2
23837+ fi
23838+done
23839+ done
23840+IFS=$as_save_IFS
23841
23842-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23843- conftest$ac_exeext conftest.$ac_ext
23844 fi
23845-{ echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
23846-echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
23847- if test $ac_cv_var_tzname = yes; then
23848+fi
23849+TRUE=$ac_cv_prog_TRUE
23850+if test -n "$TRUE"; then
23851+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUE" >&5
23852+$as_echo "$TRUE" >&6; }
23853+else
23854+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23855+$as_echo "no" >&6; }
23856+fi
23857
23858-cat >>confdefs.h <<\_ACEOF
23859-#define HAVE_TZNAME 1
23860-_ACEOF
23861
23862- fi
23863-fi
23864+ test -n "$TRUE" && break
23865+done
23866+test -n "$TRUE" || TRUE="/bin/true"
23867
23868-{ echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
23869-echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
23870-if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
23871- echo $ECHO_N "(cached) $ECHO_C" >&6
23872+
23873+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lc" >&5
23874+$as_echo_n "checking for inet_aton in -lc... " >&6; }
23875+if ${ac_cv_lib_c_inet_aton+:} false; then :
23876+ $as_echo_n "(cached) " >&6
23877 else
23878- cat >conftest.$ac_ext <<_ACEOF
23879-/* confdefs.h. */
23880-_ACEOF
23881-cat confdefs.h >>conftest.$ac_ext
23882-cat >>conftest.$ac_ext <<_ACEOF
23883+ ac_check_lib_save_LIBS=$LIBS
23884+LIBS="-lc $LIBS"
23885+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23886 /* end confdefs.h. */
23887-$ac_includes_default
23888+
23889+/* Override any GCC internal prototype to avoid an error.
23890+ Use char because int might match the return type of a GCC
23891+ builtin and then its argument prototype would still apply. */
23892+#ifdef __cplusplus
23893+extern "C"
23894+#endif
23895+char inet_aton ();
23896 int
23897 main ()
23898 {
23899-static struct stat ac_aggr;
23900-if (ac_aggr.st_rdev)
23901-return 0;
23902+return inet_aton ();
23903 ;
23904 return 0;
23905 }
23906 _ACEOF
23907-rm -f conftest.$ac_objext
23908-if { (ac_try="$ac_compile"
23909-case "(($ac_try" in
23910- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23911- *) ac_try_echo=$ac_try;;
23912-esac
23913-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23914- (eval "$ac_compile") 2>conftest.er1
23915- ac_status=$?
23916- grep -v '^ *+' conftest.er1 >conftest.err
23917- rm -f conftest.er1
23918- cat conftest.err >&5
23919- echo "$as_me:$LINENO: \$? = $ac_status" >&5
23920- (exit $ac_status); } && {
23921- test -z "$ac_c_werror_flag" ||
23922- test ! -s conftest.err
23923- } && test -s conftest.$ac_objext; then
23924- ac_cv_member_struct_stat_st_rdev=yes
23925+if ac_fn_c_try_link "$LINENO"; then :
23926+ ac_cv_lib_c_inet_aton=yes
23927 else
23928- echo "$as_me: failed program was:" >&5
23929-sed 's/^/| /' conftest.$ac_ext >&5
23930-
23931- cat >conftest.$ac_ext <<_ACEOF
23932-/* confdefs.h. */
23933-_ACEOF
23934-cat confdefs.h >>conftest.$ac_ext
23935-cat >>conftest.$ac_ext <<_ACEOF
23936+ ac_cv_lib_c_inet_aton=no
23937+fi
23938+rm -f core conftest.err conftest.$ac_objext \
23939+ conftest$ac_exeext conftest.$ac_ext
23940+LIBS=$ac_check_lib_save_LIBS
23941+fi
23942+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_inet_aton" >&5
23943+$as_echo "$ac_cv_lib_c_inet_aton" >&6; }
23944+if test "x$ac_cv_lib_c_inet_aton" = xyes; then :
23945+ $ac_cv_prog_TRUE
23946+else
23947+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
23948+$as_echo_n "checking for inet_aton in -lresolv... " >&6; }
23949+if ${ac_cv_lib_resolv_inet_aton+:} false; then :
23950+ $as_echo_n "(cached) " >&6
23951+else
23952+ ac_check_lib_save_LIBS=$LIBS
23953+LIBS="-lresolv $LIBS"
23954+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23955 /* end confdefs.h. */
23956-$ac_includes_default
23957+
23958+/* Override any GCC internal prototype to avoid an error.
23959+ Use char because int might match the return type of a GCC
23960+ builtin and then its argument prototype would still apply. */
23961+#ifdef __cplusplus
23962+extern "C"
23963+#endif
23964+char inet_aton ();
23965 int
23966 main ()
23967 {
23968-static struct stat ac_aggr;
23969-if (sizeof ac_aggr.st_rdev)
23970-return 0;
23971+return inet_aton ();
23972 ;
23973 return 0;
23974 }
23975 _ACEOF
23976-rm -f conftest.$ac_objext
23977-if { (ac_try="$ac_compile"
23978-case "(($ac_try" in
23979- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23980- *) ac_try_echo=$ac_try;;
23981-esac
23982-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23983- (eval "$ac_compile") 2>conftest.er1
23984- ac_status=$?
23985- grep -v '^ *+' conftest.er1 >conftest.err
23986- rm -f conftest.er1
23987- cat conftest.err >&5
23988- echo "$as_me:$LINENO: \$? = $ac_status" >&5
23989- (exit $ac_status); } && {
23990- test -z "$ac_c_werror_flag" ||
23991- test ! -s conftest.err
23992- } && test -s conftest.$ac_objext; then
23993- ac_cv_member_struct_stat_st_rdev=yes
23994+if ac_fn_c_try_link "$LINENO"; then :
23995+ ac_cv_lib_resolv_inet_aton=yes
23996 else
23997- echo "$as_me: failed program was:" >&5
23998-sed 's/^/| /' conftest.$ac_ext >&5
23999-
24000- ac_cv_member_struct_stat_st_rdev=no
24001+ ac_cv_lib_resolv_inet_aton=no
24002 fi
24003-
24004-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24005+rm -f core conftest.err conftest.$ac_objext \
24006+ conftest$ac_exeext conftest.$ac_ext
24007+LIBS=$ac_check_lib_save_LIBS
24008 fi
24009+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
24010+$as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
24011+if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then :
24012+ cat >>confdefs.h <<_ACEOF
24013+#define HAVE_LIBRESOLV 1
24014+_ACEOF
24015
24016-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24017-fi
24018-{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
24019-echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
24020-if test $ac_cv_member_struct_stat_st_rdev = yes; then
24021+ LIBS="-lresolv $LIBS"
24022
24023-cat >>confdefs.h <<_ACEOF
24024-#define HAVE_STRUCT_STAT_ST_RDEV 1
24025-_ACEOF
24026+fi
24027
24028
24029 fi
24030
24031-{ echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
24032-echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
24033-if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
24034- echo $ECHO_N "(cached) $ECHO_C" >&6
24035-else
24036- cat >conftest.$ac_ext <<_ACEOF
24037-/* confdefs.h. */
24038-_ACEOF
24039-cat confdefs.h >>conftest.$ac_ext
24040-cat >>conftest.$ac_ext <<_ACEOF
24041+
24042+# On Tru64, chflags seems to be present, but calling it will
24043+# exit Python
24044+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for chflags" >&5
24045+$as_echo_n "checking for chflags... " >&6; }
24046+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24047 /* end confdefs.h. */
24048-$ac_includes_default
24049+
24050+#include <sys/stat.h>
24051+#include <unistd.h>
24052+int main(int argc, char*argv[])
24053+{
24054+ if(chflags(argv[0], 0) != 0)
24055+ return 1;
24056+ return 0;
24057+}
24058+
24059 int
24060 main ()
24061 {
24062-static struct stat ac_aggr;
24063-if (ac_aggr.st_blksize)
24064-return 0;
24065+void* p=chflags
24066 ;
24067 return 0;
24068 }
24069 _ACEOF
24070-rm -f conftest.$ac_objext
24071-if { (ac_try="$ac_compile"
24072-case "(($ac_try" in
24073- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24074- *) ac_try_echo=$ac_try;;
24075-esac
24076-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24077- (eval "$ac_compile") 2>conftest.er1
24078- ac_status=$?
24079- grep -v '^ *+' conftest.er1 >conftest.err
24080- rm -f conftest.er1
24081- cat conftest.err >&5
24082- echo "$as_me:$LINENO: \$? = $ac_status" >&5
24083- (exit $ac_status); } && {
24084- test -z "$ac_c_werror_flag" ||
24085- test ! -s conftest.err
24086- } && test -s conftest.$ac_objext; then
24087- ac_cv_member_struct_stat_st_blksize=yes
24088+if ac_fn_c_try_compile "$LINENO"; then :
24089+
24090+$as_echo "#define HAVE_CHFLAGS 1" >>confdefs.h
24091+
24092+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24093+$as_echo "yes" >&6; }
24094 else
24095- echo "$as_me: failed program was:" >&5
24096-sed 's/^/| /' conftest.$ac_ext >&5
24097+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24098+$as_echo "no" >&6; }
24099
24100- cat >conftest.$ac_ext <<_ACEOF
24101-/* confdefs.h. */
24102-_ACEOF
24103-cat confdefs.h >>conftest.$ac_ext
24104-cat >>conftest.$ac_ext <<_ACEOF
24105+fi
24106+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24107+
24108+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lchflags" >&5
24109+$as_echo_n "checking for lchflags... " >&6; }
24110+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24111 /* end confdefs.h. */
24112-$ac_includes_default
24113+
24114+#include <sys/stat.h>
24115+#include <unistd.h>
24116+int main(int argc, char*argv[])
24117+{
24118+ if(lchflags(argv[0], 0) != 0)
24119+ return 1;
24120+ return 0;
24121+}
24122+
24123 int
24124 main ()
24125 {
24126-static struct stat ac_aggr;
24127-if (sizeof ac_aggr.st_blksize)
24128-return 0;
24129+void* p=lchflags
24130 ;
24131 return 0;
24132 }
24133 _ACEOF
24134-rm -f conftest.$ac_objext
24135-if { (ac_try="$ac_compile"
24136-case "(($ac_try" in
24137- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24138- *) ac_try_echo=$ac_try;;
24139-esac
24140-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24141- (eval "$ac_compile") 2>conftest.er1
24142- ac_status=$?
24143- grep -v '^ *+' conftest.er1 >conftest.err
24144- rm -f conftest.er1
24145- cat conftest.err >&5
24146- echo "$as_me:$LINENO: \$? = $ac_status" >&5
24147- (exit $ac_status); } && {
24148- test -z "$ac_c_werror_flag" ||
24149- test ! -s conftest.err
24150- } && test -s conftest.$ac_objext; then
24151- ac_cv_member_struct_stat_st_blksize=yes
24152-else
24153- echo "$as_me: failed program was:" >&5
24154-sed 's/^/| /' conftest.$ac_ext >&5
24155+if ac_fn_c_try_compile "$LINENO"; then :
24156
24157- ac_cv_member_struct_stat_st_blksize=no
24158-fi
24159+$as_echo "#define HAVE_LCHFLAGS 1" >>confdefs.h
24160
24161-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24162-fi
24163+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24164+$as_echo "yes" >&6; }
24165+else
24166+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24167+$as_echo "no" >&6; }
24168
24169-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24170 fi
24171-{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
24172-echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
24173-if test $ac_cv_member_struct_stat_st_blksize = yes; then
24174-
24175-cat >>confdefs.h <<_ACEOF
24176-#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
24177-_ACEOF
24178-
24179+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24180
24181-fi
24182+case $ac_sys_system/$ac_sys_release in
24183+Darwin/*)
24184+ _CUR_CFLAGS="${CFLAGS}"
24185+ _CUR_LDFLAGS="${LDFLAGS}"
24186+ CFLAGS="${CFLAGS} -Wl,-search_paths_first"
24187+ LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
24188+ ;;
24189+esac
24190
24191-{ echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
24192-echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6; }
24193-if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
24194- echo $ECHO_N "(cached) $ECHO_C" >&6
24195+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5
24196+$as_echo_n "checking for inflateCopy in -lz... " >&6; }
24197+if ${ac_cv_lib_z_inflateCopy+:} false; then :
24198+ $as_echo_n "(cached) " >&6
24199 else
24200- cat >conftest.$ac_ext <<_ACEOF
24201-/* confdefs.h. */
24202-_ACEOF
24203-cat confdefs.h >>conftest.$ac_ext
24204-cat >>conftest.$ac_ext <<_ACEOF
24205+ ac_check_lib_save_LIBS=$LIBS
24206+LIBS="-lz $LIBS"
24207+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24208 /* end confdefs.h. */
24209-$ac_includes_default
24210+
24211+/* Override any GCC internal prototype to avoid an error.
24212+ Use char because int might match the return type of a GCC
24213+ builtin and then its argument prototype would still apply. */
24214+#ifdef __cplusplus
24215+extern "C"
24216+#endif
24217+char inflateCopy ();
24218 int
24219 main ()
24220 {
24221-static struct stat ac_aggr;
24222-if (ac_aggr.st_flags)
24223-return 0;
24224+return inflateCopy ();
24225 ;
24226 return 0;
24227 }
24228 _ACEOF
24229-rm -f conftest.$ac_objext
24230-if { (ac_try="$ac_compile"
24231-case "(($ac_try" in
24232- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24233- *) ac_try_echo=$ac_try;;
24234-esac
24235-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24236- (eval "$ac_compile") 2>conftest.er1
24237- ac_status=$?
24238- grep -v '^ *+' conftest.er1 >conftest.err
24239- rm -f conftest.er1
24240- cat conftest.err >&5
24241- echo "$as_me:$LINENO: \$? = $ac_status" >&5
24242- (exit $ac_status); } && {
24243- test -z "$ac_c_werror_flag" ||
24244- test ! -s conftest.err
24245- } && test -s conftest.$ac_objext; then
24246- ac_cv_member_struct_stat_st_flags=yes
24247+if ac_fn_c_try_link "$LINENO"; then :
24248+ ac_cv_lib_z_inflateCopy=yes
24249 else
24250- echo "$as_me: failed program was:" >&5
24251-sed 's/^/| /' conftest.$ac_ext >&5
24252+ ac_cv_lib_z_inflateCopy=no
24253+fi
24254+rm -f core conftest.err conftest.$ac_objext \
24255+ conftest$ac_exeext conftest.$ac_ext
24256+LIBS=$ac_check_lib_save_LIBS
24257+fi
24258+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5
24259+$as_echo "$ac_cv_lib_z_inflateCopy" >&6; }
24260+if test "x$ac_cv_lib_z_inflateCopy" = xyes; then :
24261
24262- cat >conftest.$ac_ext <<_ACEOF
24263-/* confdefs.h. */
24264-_ACEOF
24265-cat confdefs.h >>conftest.$ac_ext
24266-cat >>conftest.$ac_ext <<_ACEOF
24267+$as_echo "#define HAVE_ZLIB_COPY 1" >>confdefs.h
24268+
24269+fi
24270+
24271+
24272+case $ac_sys_system/$ac_sys_release in
24273+Darwin/*)
24274+ CFLAGS="${_CUR_CFLAGS}"
24275+ LDFLAGS="${_CUR_LDFLAGS}"
24276+ ;;
24277+esac
24278+
24279+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for hstrerror" >&5
24280+$as_echo_n "checking for hstrerror... " >&6; }
24281+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24282 /* end confdefs.h. */
24283-$ac_includes_default
24284+
24285+#include "confdefs.h"
24286+#include <netdb.h>
24287+
24288 int
24289 main ()
24290 {
24291-static struct stat ac_aggr;
24292-if (sizeof ac_aggr.st_flags)
24293-return 0;
24294+void* p = hstrerror; hstrerror(0)
24295 ;
24296 return 0;
24297 }
24298 _ACEOF
24299-rm -f conftest.$ac_objext
24300-if { (ac_try="$ac_compile"
24301-case "(($ac_try" in
24302- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24303- *) ac_try_echo=$ac_try;;
24304-esac
24305-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24306- (eval "$ac_compile") 2>conftest.er1
24307- ac_status=$?
24308- grep -v '^ *+' conftest.er1 >conftest.err
24309- rm -f conftest.er1
24310- cat conftest.err >&5
24311- echo "$as_me:$LINENO: \$? = $ac_status" >&5
24312- (exit $ac_status); } && {
24313- test -z "$ac_c_werror_flag" ||
24314- test ! -s conftest.err
24315- } && test -s conftest.$ac_objext; then
24316- ac_cv_member_struct_stat_st_flags=yes
24317-else
24318- echo "$as_me: failed program was:" >&5
24319-sed 's/^/| /' conftest.$ac_ext >&5
24320+if ac_fn_c_try_link "$LINENO"; then :
24321
24322- ac_cv_member_struct_stat_st_flags=no
24323-fi
24324+$as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h
24325
24326-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24327-fi
24328+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24329+$as_echo "yes" >&6; }
24330+else
24331+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24332+$as_echo "no" >&6; }
24333
24334-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24335 fi
24336-{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
24337-echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6; }
24338-if test $ac_cv_member_struct_stat_st_flags = yes; then
24339-
24340-cat >>confdefs.h <<_ACEOF
24341-#define HAVE_STRUCT_STAT_ST_FLAGS 1
24342-_ACEOF
24343+rm -f core conftest.err conftest.$ac_objext \
24344+ conftest$ac_exeext conftest.$ac_ext
24345
24346+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton" >&5
24347+$as_echo_n "checking for inet_aton... " >&6; }
24348+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24349+/* end confdefs.h. */
24350
24351-fi
24352+#include "confdefs.h"
24353+#include <sys/types.h>
24354+#include <sys/socket.h>
24355+#include <netinet/in.h>
24356+#include <arpa/inet.h>
24357
24358-{ echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
24359-echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6; }
24360-if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
24361- echo $ECHO_N "(cached) $ECHO_C" >&6
24362-else
24363- cat >conftest.$ac_ext <<_ACEOF
24364-/* confdefs.h. */
24365-_ACEOF
24366-cat confdefs.h >>conftest.$ac_ext
24367-cat >>conftest.$ac_ext <<_ACEOF
24368-/* end confdefs.h. */
24369-$ac_includes_default
24370 int
24371 main ()
24372 {
24373-static struct stat ac_aggr;
24374-if (ac_aggr.st_gen)
24375-return 0;
24376+void* p = inet_aton;inet_aton(0,0)
24377 ;
24378 return 0;
24379 }
24380 _ACEOF
24381-rm -f conftest.$ac_objext
24382-if { (ac_try="$ac_compile"
24383-case "(($ac_try" in
24384- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24385- *) ac_try_echo=$ac_try;;
24386-esac
24387-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24388- (eval "$ac_compile") 2>conftest.er1
24389- ac_status=$?
24390- grep -v '^ *+' conftest.er1 >conftest.err
24391- rm -f conftest.er1
24392- cat conftest.err >&5
24393- echo "$as_me:$LINENO: \$? = $ac_status" >&5
24394- (exit $ac_status); } && {
24395- test -z "$ac_c_werror_flag" ||
24396- test ! -s conftest.err
24397- } && test -s conftest.$ac_objext; then
24398- ac_cv_member_struct_stat_st_gen=yes
24399+if ac_fn_c_try_link "$LINENO"; then :
24400+
24401+$as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
24402+
24403+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24404+$as_echo "yes" >&6; }
24405 else
24406- echo "$as_me: failed program was:" >&5
24407-sed 's/^/| /' conftest.$ac_ext >&5
24408+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24409+$as_echo "no" >&6; }
24410
24411- cat >conftest.$ac_ext <<_ACEOF
24412-/* confdefs.h. */
24413-_ACEOF
24414-cat confdefs.h >>conftest.$ac_ext
24415-cat >>conftest.$ac_ext <<_ACEOF
24416+fi
24417+rm -f core conftest.err conftest.$ac_objext \
24418+ conftest$ac_exeext conftest.$ac_ext
24419+
24420+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_pton" >&5
24421+$as_echo_n "checking for inet_pton... " >&6; }
24422+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24423 /* end confdefs.h. */
24424-$ac_includes_default
24425+
24426+#include "confdefs.h"
24427+#include <sys/types.h>
24428+#include <sys/socket.h>
24429+#include <netinet/in.h>
24430+#include <arpa/inet.h>
24431+
24432 int
24433 main ()
24434 {
24435-static struct stat ac_aggr;
24436-if (sizeof ac_aggr.st_gen)
24437-return 0;
24438+void* p = inet_pton
24439 ;
24440 return 0;
24441 }
24442 _ACEOF
24443-rm -f conftest.$ac_objext
24444-if { (ac_try="$ac_compile"
24445-case "(($ac_try" in
24446- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24447- *) ac_try_echo=$ac_try;;
24448-esac
24449-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24450- (eval "$ac_compile") 2>conftest.er1
24451- ac_status=$?
24452- grep -v '^ *+' conftest.er1 >conftest.err
24453- rm -f conftest.er1
24454- cat conftest.err >&5
24455- echo "$as_me:$LINENO: \$? = $ac_status" >&5
24456- (exit $ac_status); } && {
24457- test -z "$ac_c_werror_flag" ||
24458- test ! -s conftest.err
24459- } && test -s conftest.$ac_objext; then
24460- ac_cv_member_struct_stat_st_gen=yes
24461+if ac_fn_c_try_compile "$LINENO"; then :
24462+
24463+$as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
24464+
24465+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24466+$as_echo "yes" >&6; }
24467 else
24468- echo "$as_me: failed program was:" >&5
24469-sed 's/^/| /' conftest.$ac_ext >&5
24470+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24471+$as_echo "no" >&6; }
24472
24473- ac_cv_member_struct_stat_st_gen=no
24474 fi
24475-
24476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24477-fi
24478
24479-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24480-fi
24481-{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
24482-echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6; }
24483-if test $ac_cv_member_struct_stat_st_gen = yes; then
24484+# On some systems, setgroups is in unistd.h, on others, in grp.h
24485+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for setgroups" >&5
24486+$as_echo_n "checking for setgroups... " >&6; }
24487+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24488+/* end confdefs.h. */
24489
24490-cat >>confdefs.h <<_ACEOF
24491-#define HAVE_STRUCT_STAT_ST_GEN 1
24492+#include "confdefs.h"
24493+#include <unistd.h>
24494+#ifdef HAVE_GRP_H
24495+#include <grp.h>
24496+#endif
24497+
24498+int
24499+main ()
24500+{
24501+void* p = setgroups
24502+ ;
24503+ return 0;
24504+}
24505 _ACEOF
24506+if ac_fn_c_try_compile "$LINENO"; then :
24507
24508+$as_echo "#define HAVE_SETGROUPS 1" >>confdefs.h
24509+
24510+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24511+$as_echo "yes" >&6; }
24512+else
24513+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24514+$as_echo "no" >&6; }
24515
24516 fi
24517+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24518
24519-{ echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
24520-echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6; }
24521-if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
24522- echo $ECHO_N "(cached) $ECHO_C" >&6
24523-else
24524- cat >conftest.$ac_ext <<_ACEOF
24525-/* confdefs.h. */
24526+# check for openpty and forkpty
24527+
24528+for ac_func in openpty
24529+do :
24530+ ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty"
24531+if test "x$ac_cv_func_openpty" = xyes; then :
24532+ cat >>confdefs.h <<_ACEOF
24533+#define HAVE_OPENPTY 1
24534 _ACEOF
24535-cat confdefs.h >>conftest.$ac_ext
24536-cat >>conftest.$ac_ext <<_ACEOF
24537+
24538+else
24539+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
24540+$as_echo_n "checking for openpty in -lutil... " >&6; }
24541+if ${ac_cv_lib_util_openpty+:} false; then :
24542+ $as_echo_n "(cached) " >&6
24543+else
24544+ ac_check_lib_save_LIBS=$LIBS
24545+LIBS="-lutil $LIBS"
24546+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24547 /* end confdefs.h. */
24548-$ac_includes_default
24549+
24550+/* Override any GCC internal prototype to avoid an error.
24551+ Use char because int might match the return type of a GCC
24552+ builtin and then its argument prototype would still apply. */
24553+#ifdef __cplusplus
24554+extern "C"
24555+#endif
24556+char openpty ();
24557 int
24558 main ()
24559 {
24560-static struct stat ac_aggr;
24561-if (ac_aggr.st_birthtime)
24562-return 0;
24563+return openpty ();
24564 ;
24565 return 0;
24566 }
24567 _ACEOF
24568-rm -f conftest.$ac_objext
24569-if { (ac_try="$ac_compile"
24570-case "(($ac_try" in
24571- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24572- *) ac_try_echo=$ac_try;;
24573-esac
24574-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24575- (eval "$ac_compile") 2>conftest.er1
24576- ac_status=$?
24577- grep -v '^ *+' conftest.er1 >conftest.err
24578- rm -f conftest.er1
24579- cat conftest.err >&5
24580- echo "$as_me:$LINENO: \$? = $ac_status" >&5
24581- (exit $ac_status); } && {
24582- test -z "$ac_c_werror_flag" ||
24583- test ! -s conftest.err
24584- } && test -s conftest.$ac_objext; then
24585- ac_cv_member_struct_stat_st_birthtime=yes
24586+if ac_fn_c_try_link "$LINENO"; then :
24587+ ac_cv_lib_util_openpty=yes
24588 else
24589- echo "$as_me: failed program was:" >&5
24590-sed 's/^/| /' conftest.$ac_ext >&5
24591-
24592- cat >conftest.$ac_ext <<_ACEOF
24593-/* confdefs.h. */
24594-_ACEOF
24595-cat confdefs.h >>conftest.$ac_ext
24596-cat >>conftest.$ac_ext <<_ACEOF
24597+ ac_cv_lib_util_openpty=no
24598+fi
24599+rm -f core conftest.err conftest.$ac_objext \
24600+ conftest$ac_exeext conftest.$ac_ext
24601+LIBS=$ac_check_lib_save_LIBS
24602+fi
24603+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
24604+$as_echo "$ac_cv_lib_util_openpty" >&6; }
24605+if test "x$ac_cv_lib_util_openpty" = xyes; then :
24606+ $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h
24607+ LIBS="$LIBS -lutil"
24608+else
24609+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lbsd" >&5
24610+$as_echo_n "checking for openpty in -lbsd... " >&6; }
24611+if ${ac_cv_lib_bsd_openpty+:} false; then :
24612+ $as_echo_n "(cached) " >&6
24613+else
24614+ ac_check_lib_save_LIBS=$LIBS
24615+LIBS="-lbsd $LIBS"
24616+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24617 /* end confdefs.h. */
24618-$ac_includes_default
24619+
24620+/* Override any GCC internal prototype to avoid an error.
24621+ Use char because int might match the return type of a GCC
24622+ builtin and then its argument prototype would still apply. */
24623+#ifdef __cplusplus
24624+extern "C"
24625+#endif
24626+char openpty ();
24627 int
24628 main ()
24629 {
24630-static struct stat ac_aggr;
24631-if (sizeof ac_aggr.st_birthtime)
24632-return 0;
24633+return openpty ();
24634 ;
24635 return 0;
24636 }
24637 _ACEOF
24638-rm -f conftest.$ac_objext
24639-if { (ac_try="$ac_compile"
24640-case "(($ac_try" in
24641- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24642- *) ac_try_echo=$ac_try;;
24643-esac
24644-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24645- (eval "$ac_compile") 2>conftest.er1
24646- ac_status=$?
24647- grep -v '^ *+' conftest.er1 >conftest.err
24648- rm -f conftest.er1
24649- cat conftest.err >&5
24650- echo "$as_me:$LINENO: \$? = $ac_status" >&5
24651- (exit $ac_status); } && {
24652- test -z "$ac_c_werror_flag" ||
24653- test ! -s conftest.err
24654- } && test -s conftest.$ac_objext; then
24655- ac_cv_member_struct_stat_st_birthtime=yes
24656+if ac_fn_c_try_link "$LINENO"; then :
24657+ ac_cv_lib_bsd_openpty=yes
24658 else
24659- echo "$as_me: failed program was:" >&5
24660-sed 's/^/| /' conftest.$ac_ext >&5
24661-
24662- ac_cv_member_struct_stat_st_birthtime=no
24663+ ac_cv_lib_bsd_openpty=no
24664 fi
24665-
24666-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24667+rm -f core conftest.err conftest.$ac_objext \
24668+ conftest$ac_exeext conftest.$ac_ext
24669+LIBS=$ac_check_lib_save_LIBS
24670 fi
24671-
24672-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24673+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_openpty" >&5
24674+$as_echo "$ac_cv_lib_bsd_openpty" >&6; }
24675+if test "x$ac_cv_lib_bsd_openpty" = xyes; then :
24676+ $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h
24677+ LIBS="$LIBS -lbsd"
24678 fi
24679-{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
24680-echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6; }
24681-if test $ac_cv_member_struct_stat_st_birthtime = yes; then
24682
24683-cat >>confdefs.h <<_ACEOF
24684-#define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
24685-_ACEOF
24686+
24687+fi
24688
24689
24690 fi
24691+done
24692
24693-{ echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
24694-echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
24695-if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
24696- echo $ECHO_N "(cached) $ECHO_C" >&6
24697-else
24698- cat >conftest.$ac_ext <<_ACEOF
24699-/* confdefs.h. */
24700+for ac_func in forkpty
24701+do :
24702+ ac_fn_c_check_func "$LINENO" "forkpty" "ac_cv_func_forkpty"
24703+if test "x$ac_cv_func_forkpty" = xyes; then :
24704+ cat >>confdefs.h <<_ACEOF
24705+#define HAVE_FORKPTY 1
24706 _ACEOF
24707-cat confdefs.h >>conftest.$ac_ext
24708-cat >>conftest.$ac_ext <<_ACEOF
24709+
24710+else
24711+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lutil" >&5
24712+$as_echo_n "checking for forkpty in -lutil... " >&6; }
24713+if ${ac_cv_lib_util_forkpty+:} false; then :
24714+ $as_echo_n "(cached) " >&6
24715+else
24716+ ac_check_lib_save_LIBS=$LIBS
24717+LIBS="-lutil $LIBS"
24718+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24719 /* end confdefs.h. */
24720-$ac_includes_default
24721+
24722+/* Override any GCC internal prototype to avoid an error.
24723+ Use char because int might match the return type of a GCC
24724+ builtin and then its argument prototype would still apply. */
24725+#ifdef __cplusplus
24726+extern "C"
24727+#endif
24728+char forkpty ();
24729 int
24730 main ()
24731 {
24732-static struct stat ac_aggr;
24733-if (ac_aggr.st_blocks)
24734-return 0;
24735+return forkpty ();
24736 ;
24737 return 0;
24738 }
24739 _ACEOF
24740-rm -f conftest.$ac_objext
24741-if { (ac_try="$ac_compile"
24742-case "(($ac_try" in
24743- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24744- *) ac_try_echo=$ac_try;;
24745-esac
24746-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24747- (eval "$ac_compile") 2>conftest.er1
24748- ac_status=$?
24749- grep -v '^ *+' conftest.er1 >conftest.err
24750- rm -f conftest.er1
24751- cat conftest.err >&5
24752- echo "$as_me:$LINENO: \$? = $ac_status" >&5
24753- (exit $ac_status); } && {
24754- test -z "$ac_c_werror_flag" ||
24755- test ! -s conftest.err
24756- } && test -s conftest.$ac_objext; then
24757- ac_cv_member_struct_stat_st_blocks=yes
24758+if ac_fn_c_try_link "$LINENO"; then :
24759+ ac_cv_lib_util_forkpty=yes
24760 else
24761- echo "$as_me: failed program was:" >&5
24762-sed 's/^/| /' conftest.$ac_ext >&5
24763-
24764- cat >conftest.$ac_ext <<_ACEOF
24765-/* confdefs.h. */
24766-_ACEOF
24767-cat confdefs.h >>conftest.$ac_ext
24768-cat >>conftest.$ac_ext <<_ACEOF
24769+ ac_cv_lib_util_forkpty=no
24770+fi
24771+rm -f core conftest.err conftest.$ac_objext \
24772+ conftest$ac_exeext conftest.$ac_ext
24773+LIBS=$ac_check_lib_save_LIBS
24774+fi
24775+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_forkpty" >&5
24776+$as_echo "$ac_cv_lib_util_forkpty" >&6; }
24777+if test "x$ac_cv_lib_util_forkpty" = xyes; then :
24778+ $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h
24779+ LIBS="$LIBS -lutil"
24780+else
24781+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lbsd" >&5
24782+$as_echo_n "checking for forkpty in -lbsd... " >&6; }
24783+if ${ac_cv_lib_bsd_forkpty+:} false; then :
24784+ $as_echo_n "(cached) " >&6
24785+else
24786+ ac_check_lib_save_LIBS=$LIBS
24787+LIBS="-lbsd $LIBS"
24788+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24789 /* end confdefs.h. */
24790-$ac_includes_default
24791+
24792+/* Override any GCC internal prototype to avoid an error.
24793+ Use char because int might match the return type of a GCC
24794+ builtin and then its argument prototype would still apply. */
24795+#ifdef __cplusplus
24796+extern "C"
24797+#endif
24798+char forkpty ();
24799 int
24800 main ()
24801 {
24802-static struct stat ac_aggr;
24803-if (sizeof ac_aggr.st_blocks)
24804-return 0;
24805+return forkpty ();
24806 ;
24807 return 0;
24808 }
24809 _ACEOF
24810-rm -f conftest.$ac_objext
24811-if { (ac_try="$ac_compile"
24812-case "(($ac_try" in
24813- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24814- *) ac_try_echo=$ac_try;;
24815-esac
24816-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24817- (eval "$ac_compile") 2>conftest.er1
24818- ac_status=$?
24819- grep -v '^ *+' conftest.er1 >conftest.err
24820- rm -f conftest.er1
24821- cat conftest.err >&5
24822- echo "$as_me:$LINENO: \$? = $ac_status" >&5
24823- (exit $ac_status); } && {
24824- test -z "$ac_c_werror_flag" ||
24825- test ! -s conftest.err
24826- } && test -s conftest.$ac_objext; then
24827- ac_cv_member_struct_stat_st_blocks=yes
24828+if ac_fn_c_try_link "$LINENO"; then :
24829+ ac_cv_lib_bsd_forkpty=yes
24830 else
24831- echo "$as_me: failed program was:" >&5
24832-sed 's/^/| /' conftest.$ac_ext >&5
24833-
24834- ac_cv_member_struct_stat_st_blocks=no
24835+ ac_cv_lib_bsd_forkpty=no
24836+fi
24837+rm -f core conftest.err conftest.$ac_objext \
24838+ conftest$ac_exeext conftest.$ac_ext
24839+LIBS=$ac_check_lib_save_LIBS
24840+fi
24841+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_forkpty" >&5
24842+$as_echo "$ac_cv_lib_bsd_forkpty" >&6; }
24843+if test "x$ac_cv_lib_bsd_forkpty" = xyes; then :
24844+ $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h
24845+ LIBS="$LIBS -lbsd"
24846 fi
24847
24848-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24849+
24850 fi
24851
24852-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24853+
24854 fi
24855-{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
24856-echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
24857-if test $ac_cv_member_struct_stat_st_blocks = yes; then
24858+done
24859
24860-cat >>confdefs.h <<_ACEOF
24861-#define HAVE_STRUCT_STAT_ST_BLOCKS 1
24862+
24863+# Stuff for expat.
24864+for ac_func in memmove
24865+do :
24866+ ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
24867+if test "x$ac_cv_func_memmove" = xyes; then :
24868+ cat >>confdefs.h <<_ACEOF
24869+#define HAVE_MEMMOVE 1
24870 _ACEOF
24871
24872+fi
24873+done
24874+
24875
24876-cat >>confdefs.h <<\_ACEOF
24877-#define HAVE_ST_BLOCKS 1
24878+# check for long file support functions
24879+for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
24880+do :
24881+ as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24882+ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24883+if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24884+ cat >>confdefs.h <<_ACEOF
24885+#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24886 _ACEOF
24887
24888+fi
24889+done
24890+
24891+
24892+ac_fn_c_check_func "$LINENO" "dup2" "ac_cv_func_dup2"
24893+if test "x$ac_cv_func_dup2" = xyes; then :
24894+ $as_echo "#define HAVE_DUP2 1" >>confdefs.h
24895+
24896 else
24897 case " $LIBOBJS " in
24898- *" fileblocks.$ac_objext "* ) ;;
24899- *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
24900+ *" dup2.$ac_objext "* ) ;;
24901+ *) LIBOBJS="$LIBOBJS dup2.$ac_objext"
24902 ;;
24903 esac
24904
24905 fi
24906
24907+ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
24908+if test "x$ac_cv_func_getcwd" = xyes; then :
24909+ $as_echo "#define HAVE_GETCWD 1" >>confdefs.h
24910
24911-
24912-{ echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
24913-echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6; }
24914-if test "${ac_cv_header_time_altzone+set}" = set; then
24915- echo $ECHO_N "(cached) $ECHO_C" >&6
24916 else
24917- cat >conftest.$ac_ext <<_ACEOF
24918-/* confdefs.h. */
24919-_ACEOF
24920-cat confdefs.h >>conftest.$ac_ext
24921-cat >>conftest.$ac_ext <<_ACEOF
24922-/* end confdefs.h. */
24923-#include <time.h>
24924-int
24925-main ()
24926-{
24927-return altzone;
24928- ;
24929- return 0;
24930-}
24931-_ACEOF
24932-rm -f conftest.$ac_objext
24933-if { (ac_try="$ac_compile"
24934-case "(($ac_try" in
24935- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24936- *) ac_try_echo=$ac_try;;
24937+ case " $LIBOBJS " in
24938+ *" getcwd.$ac_objext "* ) ;;
24939+ *) LIBOBJS="$LIBOBJS getcwd.$ac_objext"
24940+ ;;
24941 esac
24942-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24943- (eval "$ac_compile") 2>conftest.er1
24944- ac_status=$?
24945- grep -v '^ *+' conftest.er1 >conftest.err
24946- rm -f conftest.er1
24947- cat conftest.err >&5
24948- echo "$as_me:$LINENO: \$? = $ac_status" >&5
24949- (exit $ac_status); } && {
24950- test -z "$ac_c_werror_flag" ||
24951- test ! -s conftest.err
24952- } && test -s conftest.$ac_objext; then
24953- ac_cv_header_time_altzone=yes
24954-else
24955- echo "$as_me: failed program was:" >&5
24956-sed 's/^/| /' conftest.$ac_ext >&5
24957-
24958- ac_cv_header_time_altzone=no
24959-fi
24960
24961-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24962 fi
24963
24964-{ echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
24965-echo "${ECHO_T}$ac_cv_header_time_altzone" >&6; }
24966-if test $ac_cv_header_time_altzone = yes; then
24967+ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
24968+if test "x$ac_cv_func_strdup" = xyes; then :
24969+ $as_echo "#define HAVE_STRDUP 1" >>confdefs.h
24970
24971-cat >>confdefs.h <<\_ACEOF
24972-#define HAVE_ALTZONE 1
24973-_ACEOF
24974+else
24975+ case " $LIBOBJS " in
24976+ *" strdup.$ac_objext "* ) ;;
24977+ *) LIBOBJS="$LIBOBJS strdup.$ac_objext"
24978+ ;;
24979+esac
24980
24981 fi
24982
24983-was_it_defined=no
24984-{ echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
24985-echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6; }
24986-cat >conftest.$ac_ext <<_ACEOF
24987-/* confdefs.h. */
24988+
24989+for ac_func in getpgrp
24990+do :
24991+ ac_fn_c_check_func "$LINENO" "getpgrp" "ac_cv_func_getpgrp"
24992+if test "x$ac_cv_func_getpgrp" = xyes; then :
24993+ cat >>confdefs.h <<_ACEOF
24994+#define HAVE_GETPGRP 1
24995 _ACEOF
24996-cat confdefs.h >>conftest.$ac_ext
24997-cat >>conftest.$ac_ext <<_ACEOF
24998+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24999 /* end confdefs.h. */
25000-
25001-#include <sys/types.h>
25002-#include <sys/select.h>
25003-#include <sys/time.h>
25004-
25005+#include <unistd.h>
25006 int
25007 main ()
25008 {
25009-;
25010+getpgrp(0);
25011 ;
25012 return 0;
25013 }
25014 _ACEOF
25015-rm -f conftest.$ac_objext
25016-if { (ac_try="$ac_compile"
25017-case "(($ac_try" in
25018- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25019- *) ac_try_echo=$ac_try;;
25020-esac
25021-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25022- (eval "$ac_compile") 2>conftest.er1
25023- ac_status=$?
25024- grep -v '^ *+' conftest.er1 >conftest.err
25025- rm -f conftest.er1
25026- cat conftest.err >&5
25027- echo "$as_me:$LINENO: \$? = $ac_status" >&5
25028- (exit $ac_status); } && {
25029- test -z "$ac_c_werror_flag" ||
25030- test ! -s conftest.err
25031- } && test -s conftest.$ac_objext; then
25032-
25033+if ac_fn_c_try_compile "$LINENO"; then :
25034
25035-cat >>confdefs.h <<\_ACEOF
25036-#define SYS_SELECT_WITH_SYS_TIME 1
25037-_ACEOF
25038-
25039- was_it_defined=yes
25040-
25041-else
25042- echo "$as_me: failed program was:" >&5
25043-sed 's/^/| /' conftest.$ac_ext >&5
25044+$as_echo "#define GETPGRP_HAVE_ARG 1" >>confdefs.h
25045
25046
25047 fi
25048-
25049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25050-{ echo "$as_me:$LINENO: result: $was_it_defined" >&5
25051-echo "${ECHO_T}$was_it_defined" >&6; }
25052
25053-{ echo "$as_me:$LINENO: checking for addrinfo" >&5
25054-echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
25055-if test "${ac_cv_struct_addrinfo+set}" = set; then
25056- echo $ECHO_N "(cached) $ECHO_C" >&6
25057-else
25058- cat >conftest.$ac_ext <<_ACEOF
25059-/* confdefs.h. */
25060+fi
25061+done
25062+
25063+for ac_func in setpgrp
25064+do :
25065+ ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp"
25066+if test "x$ac_cv_func_setpgrp" = xyes; then :
25067+ cat >>confdefs.h <<_ACEOF
25068+#define HAVE_SETPGRP 1
25069 _ACEOF
25070-cat confdefs.h >>conftest.$ac_ext
25071-cat >>conftest.$ac_ext <<_ACEOF
25072+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25073 /* end confdefs.h. */
25074-
25075-# include <netdb.h>
25076+#include <unistd.h>
25077 int
25078 main ()
25079 {
25080-struct addrinfo a
25081+setpgrp(0,0);
25082 ;
25083 return 0;
25084 }
25085 _ACEOF
25086-rm -f conftest.$ac_objext
25087-if { (ac_try="$ac_compile"
25088-case "(($ac_try" in
25089- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25090- *) ac_try_echo=$ac_try;;
25091-esac
25092-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25093- (eval "$ac_compile") 2>conftest.er1
25094- ac_status=$?
25095- grep -v '^ *+' conftest.er1 >conftest.err
25096- rm -f conftest.er1
25097- cat conftest.err >&5
25098- echo "$as_me:$LINENO: \$? = $ac_status" >&5
25099- (exit $ac_status); } && {
25100- test -z "$ac_c_werror_flag" ||
25101- test ! -s conftest.err
25102- } && test -s conftest.$ac_objext; then
25103- ac_cv_struct_addrinfo=yes
25104-else
25105- echo "$as_me: failed program was:" >&5
25106-sed 's/^/| /' conftest.$ac_ext >&5
25107+if ac_fn_c_try_compile "$LINENO"; then :
25108
25109- ac_cv_struct_addrinfo=no
25110-fi
25111-
25112-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25113-fi
25114+$as_echo "#define SETPGRP_HAVE_ARG 1" >>confdefs.h
25115
25116-{ echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
25117-echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6; }
25118-if test $ac_cv_struct_addrinfo = yes; then
25119
25120-cat >>confdefs.h <<\_ACEOF
25121-#define HAVE_ADDRINFO 1
25122-_ACEOF
25123+fi
25124+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25125
25126 fi
25127+done
25128
25129-{ echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
25130-echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
25131-if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
25132- echo $ECHO_N "(cached) $ECHO_C" >&6
25133-else
25134- cat >conftest.$ac_ext <<_ACEOF
25135-/* confdefs.h. */
25136+for ac_func in gettimeofday
25137+do :
25138+ ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
25139+if test "x$ac_cv_func_gettimeofday" = xyes; then :
25140+ cat >>confdefs.h <<_ACEOF
25141+#define HAVE_GETTIMEOFDAY 1
25142 _ACEOF
25143-cat confdefs.h >>conftest.$ac_ext
25144-cat >>conftest.$ac_ext <<_ACEOF
25145+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25146 /* end confdefs.h. */
25147-
25148-# include <sys/types.h>
25149-# include <sys/socket.h>
25150+#include <sys/time.h>
25151 int
25152 main ()
25153 {
25154-struct sockaddr_storage s
25155+gettimeofday((struct timeval*)0,(struct timezone*)0);
25156 ;
25157 return 0;
25158 }
25159 _ACEOF
25160-rm -f conftest.$ac_objext
25161-if { (ac_try="$ac_compile"
25162-case "(($ac_try" in
25163- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25164- *) ac_try_echo=$ac_try;;
25165-esac
25166-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25167- (eval "$ac_compile") 2>conftest.er1
25168- ac_status=$?
25169- grep -v '^ *+' conftest.er1 >conftest.err
25170- rm -f conftest.er1
25171- cat conftest.err >&5
25172- echo "$as_me:$LINENO: \$? = $ac_status" >&5
25173- (exit $ac_status); } && {
25174- test -z "$ac_c_werror_flag" ||
25175- test ! -s conftest.err
25176- } && test -s conftest.$ac_objext; then
25177- ac_cv_struct_sockaddr_storage=yes
25178+if ac_fn_c_try_compile "$LINENO"; then :
25179+
25180 else
25181- echo "$as_me: failed program was:" >&5
25182-sed 's/^/| /' conftest.$ac_ext >&5
25183
25184- ac_cv_struct_sockaddr_storage=no
25185-fi
25186+$as_echo "#define GETTIMEOFDAY_NO_TZ 1" >>confdefs.h
25187+
25188
25189+fi
25190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25191+
25192 fi
25193+done
25194
25195-{ echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
25196-echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6; }
25197-if test $ac_cv_struct_sockaddr_storage = yes; then
25198
25199-cat >>confdefs.h <<\_ACEOF
25200-#define HAVE_SOCKADDR_STORAGE 1
25201+for ac_func in cwait fsync pipe popen spawnv system
25202+do :
25203+ as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25204+ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
25205+if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
25206+ cat >>confdefs.h <<_ACEOF
25207+#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25208 _ACEOF
25209
25210 fi
25211-
25212-# checks for compiler characteristics
25213+done
25214
25215
25216-{ echo "$as_me:$LINENO: checking whether char is unsigned" >&5
25217-echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; }
25218-if test "${ac_cv_c_char_unsigned+set}" = set; then
25219- echo $ECHO_N "(cached) $ECHO_C" >&6
25220-else
25221- cat >conftest.$ac_ext <<_ACEOF
25222-/* confdefs.h. */
25223-_ACEOF
25224-cat confdefs.h >>conftest.$ac_ext
25225-cat >>conftest.$ac_ext <<_ACEOF
25226+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for major" >&5
25227+$as_echo_n "checking for major... " >&6; }
25228+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25229 /* end confdefs.h. */
25230-$ac_includes_default
25231+
25232+#if defined(MAJOR_IN_MKDEV)
25233+#include <sys/mkdev.h>
25234+#elif defined(MAJOR_IN_SYSMACROS)
25235+#include <sys/sysmacros.h>
25236+#else
25237+#include <sys/types.h>
25238+#endif
25239+
25240 int
25241 main ()
25242 {
25243-static int test_array [1 - 2 * !(((char) -1) < 0)];
25244-test_array [0] = 0
25245+
25246+ makedev(major(0),minor(0));
25247
25248 ;
25249 return 0;
25250 }
25251 _ACEOF
25252-rm -f conftest.$ac_objext
25253-if { (ac_try="$ac_compile"
25254-case "(($ac_try" in
25255- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25256- *) ac_try_echo=$ac_try;;
25257-esac
25258-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25259- (eval "$ac_compile") 2>conftest.er1
25260- ac_status=$?
25261- grep -v '^ *+' conftest.er1 >conftest.err
25262- rm -f conftest.er1
25263- cat conftest.err >&5
25264- echo "$as_me:$LINENO: \$? = $ac_status" >&5
25265- (exit $ac_status); } && {
25266- test -z "$ac_c_werror_flag" ||
25267- test ! -s conftest.err
25268- } && test -s conftest.$ac_objext; then
25269- ac_cv_c_char_unsigned=no
25270-else
25271- echo "$as_me: failed program was:" >&5
25272-sed 's/^/| /' conftest.$ac_ext >&5
25273+if ac_fn_c_try_link "$LINENO"; then :
25274
25275- ac_cv_c_char_unsigned=yes
25276-fi
25277
25278-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25279-fi
25280-{ echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
25281-echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; }
25282-if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
25283- cat >>confdefs.h <<\_ACEOF
25284-#define __CHAR_UNSIGNED__ 1
25285-_ACEOF
25286+$as_echo "#define HAVE_DEVICE_MACROS 1" >>confdefs.h
25287
25288-fi
25289+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25290+$as_echo "yes" >&6; }
25291
25292-{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
25293-echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
25294-if test "${ac_cv_c_const+set}" = set; then
25295- echo $ECHO_N "(cached) $ECHO_C" >&6
25296 else
25297- cat >conftest.$ac_ext <<_ACEOF
25298-/* confdefs.h. */
25299-_ACEOF
25300-cat confdefs.h >>conftest.$ac_ext
25301-cat >>conftest.$ac_ext <<_ACEOF
25302+
25303+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25304+$as_echo "no" >&6; }
25305+
25306+fi
25307+rm -f core conftest.err conftest.$ac_objext \
25308+ conftest$ac_exeext conftest.$ac_ext
25309+
25310+# On OSF/1 V5.1, getaddrinfo is available, but a define
25311+# for [no]getaddrinfo in netdb.h.
25312+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
25313+$as_echo_n "checking for getaddrinfo... " >&6; }
25314+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25315 /* end confdefs.h. */
25316
25317+#include <sys/types.h>
25318+#include <sys/socket.h>
25319+#include <netdb.h>
25320+#include <stdio.h>
25321+
25322 int
25323 main ()
25324 {
25325-/* FIXME: Include the comments suggested by Paul. */
25326-#ifndef __cplusplus
25327- /* Ultrix mips cc rejects this. */
25328- typedef int charset[2];
25329- const charset cs;
25330- /* SunOS 4.1.1 cc rejects this. */
25331- char const *const *pcpcc;
25332- char **ppc;
25333- /* NEC SVR4.0.2 mips cc rejects this. */
25334- struct point {int x, y;};
25335- static struct point const zero = {0,0};
25336- /* AIX XL C 1.02.0.0 rejects this.
25337- It does not let you subtract one const X* pointer from another in
25338- an arm of an if-expression whose if-part is not a constant
25339- expression */
25340- const char *g = "string";
25341- pcpcc = &g + (g ? g-g : 0);
25342- /* HPUX 7.0 cc rejects these. */
25343- ++pcpcc;
25344- ppc = (char**) pcpcc;
25345- pcpcc = (char const *const *) ppc;
25346- { /* SCO 3.2v4 cc rejects this. */
25347- char *t;
25348- char const *s = 0 ? (char *) 0 : (char const *) 0;
25349
25350- *t++ = 0;
25351- if (s) return 0;
25352- }
25353- { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
25354- int x[] = {25, 17};
25355- const int *foo = &x[0];
25356- ++foo;
25357- }
25358- { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
25359- typedef const int *iptr;
25360- iptr p = 0;
25361- ++p;
25362- }
25363- { /* AIX XL C 1.02.0.0 rejects this saying
25364- "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
25365- struct s { int j; const int *ap[3]; };
25366- struct s *b; b->j = 5;
25367- }
25368- { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
25369- const int foo = 10;
25370- if (!foo) return 0;
25371- }
25372- return !cs[0] && !zero.x;
25373-#endif
25374+getaddrinfo(NULL, NULL, NULL, NULL);
25375
25376 ;
25377 return 0;
25378 }
25379 _ACEOF
25380-rm -f conftest.$ac_objext
25381-if { (ac_try="$ac_compile"
25382-case "(($ac_try" in
25383- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25384- *) ac_try_echo=$ac_try;;
25385-esac
25386-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25387- (eval "$ac_compile") 2>conftest.er1
25388- ac_status=$?
25389- grep -v '^ *+' conftest.er1 >conftest.err
25390- rm -f conftest.er1
25391- cat conftest.err >&5
25392- echo "$as_me:$LINENO: \$? = $ac_status" >&5
25393- (exit $ac_status); } && {
25394- test -z "$ac_c_werror_flag" ||
25395- test ! -s conftest.err
25396- } && test -s conftest.$ac_objext; then
25397- ac_cv_c_const=yes
25398-else
25399- echo "$as_me: failed program was:" >&5
25400-sed 's/^/| /' conftest.$ac_ext >&5
25401+if ac_fn_c_try_link "$LINENO"; then :
25402
25403- ac_cv_c_const=no
25404-fi
25405+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25406+$as_echo "yes" >&6; }
25407+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking getaddrinfo bug" >&5
25408+$as_echo_n "checking getaddrinfo bug... " >&6; }
25409+if test "$cross_compiling" = yes; then :
25410+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy" >&5
25411+$as_echo "buggy" >&6; }
25412+buggygetaddrinfo=yes
25413+else
25414+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25415+/* end confdefs.h. */
25416
25417-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25418-fi
25419-{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
25420-echo "${ECHO_T}$ac_cv_c_const" >&6; }
25421-if test $ac_cv_c_const = no; then
25422+#include <sys/types.h>
25423+#include <netdb.h>
25424+#include <string.h>
25425+#include <sys/socket.h>
25426+#include <netinet/in.h>
25427
25428-cat >>confdefs.h <<\_ACEOF
25429-#define const
25430-_ACEOF
25431+main()
25432+{
25433+ int passive, gaierr, inet4 = 0, inet6 = 0;
25434+ struct addrinfo hints, *ai, *aitop;
25435+ char straddr[INET6_ADDRSTRLEN], strport[16];
25436
25437-fi
25438+ for (passive = 0; passive <= 1; passive++) {
25439+ memset(&hints, 0, sizeof(hints));
25440+ hints.ai_family = AF_UNSPEC;
25441+ hints.ai_flags = passive ? AI_PASSIVE : 0;
25442+ hints.ai_socktype = SOCK_STREAM;
25443+ hints.ai_protocol = IPPROTO_TCP;
25444+ if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
25445+ (void)gai_strerror(gaierr);
25446+ goto bad;
25447+ }
25448+ for (ai = aitop; ai; ai = ai->ai_next) {
25449+ if (ai->ai_addr == NULL ||
25450+ ai->ai_addrlen == 0 ||
25451+ getnameinfo(ai->ai_addr, ai->ai_addrlen,
25452+ straddr, sizeof(straddr), strport, sizeof(strport),
25453+ NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
25454+ goto bad;
25455+ }
25456+ switch (ai->ai_family) {
25457+ case AF_INET:
25458+ if (strcmp(strport, "54321") != 0) {
25459+ goto bad;
25460+ }
25461+ if (passive) {
25462+ if (strcmp(straddr, "0.0.0.0") != 0) {
25463+ goto bad;
25464+ }
25465+ } else {
25466+ if (strcmp(straddr, "127.0.0.1") != 0) {
25467+ goto bad;
25468+ }
25469+ }
25470+ inet4++;
25471+ break;
25472+ case AF_INET6:
25473+ if (strcmp(strport, "54321") != 0) {
25474+ goto bad;
25475+ }
25476+ if (passive) {
25477+ if (strcmp(straddr, "::") != 0) {
25478+ goto bad;
25479+ }
25480+ } else {
25481+ if (strcmp(straddr, "::1") != 0) {
25482+ goto bad;
25483+ }
25484+ }
25485+ inet6++;
25486+ break;
25487+ case AF_UNSPEC:
25488+ goto bad;
25489+ break;
25490+ default:
25491+ /* another family support? */
25492+ break;
25493+ }
25494+ }
25495+ }
25496
25497+ if (!(inet4 == 0 || inet4 == 2))
25498+ goto bad;
25499+ if (!(inet6 == 0 || inet6 == 2))
25500+ goto bad;
25501
25502-works=no
25503-{ echo "$as_me:$LINENO: checking for working volatile" >&5
25504-echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
25505-cat >conftest.$ac_ext <<_ACEOF
25506-/* confdefs.h. */
25507-_ACEOF
25508-cat confdefs.h >>conftest.$ac_ext
25509-cat >>conftest.$ac_ext <<_ACEOF
25510-/* end confdefs.h. */
25511+ if (aitop)
25512+ freeaddrinfo(aitop);
25513+ exit(0);
25514
25515-int
25516-main ()
25517-{
25518-volatile int x; x = 0;
25519- ;
25520- return 0;
25521+ bad:
25522+ if (aitop)
25523+ freeaddrinfo(aitop);
25524+ exit(1);
25525 }
25526+
25527 _ACEOF
25528-rm -f conftest.$ac_objext
25529-if { (ac_try="$ac_compile"
25530-case "(($ac_try" in
25531- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25532- *) ac_try_echo=$ac_try;;
25533-esac
25534-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25535- (eval "$ac_compile") 2>conftest.er1
25536- ac_status=$?
25537- grep -v '^ *+' conftest.er1 >conftest.err
25538- rm -f conftest.er1
25539- cat conftest.err >&5
25540- echo "$as_me:$LINENO: \$? = $ac_status" >&5
25541- (exit $ac_status); } && {
25542- test -z "$ac_c_werror_flag" ||
25543- test ! -s conftest.err
25544- } && test -s conftest.$ac_objext; then
25545- works=yes
25546+if ac_fn_c_try_run "$LINENO"; then :
25547+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: good" >&5
25548+$as_echo "good" >&6; }
25549+buggygetaddrinfo=no
25550 else
25551- echo "$as_me: failed program was:" >&5
25552-sed 's/^/| /' conftest.$ac_ext >&5
25553+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy" >&5
25554+$as_echo "buggy" >&6; }
25555+buggygetaddrinfo=yes
25556+fi
25557+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25558+ conftest.$ac_objext conftest.beam conftest.$ac_ext
25559+fi
25560
25561+else
25562+
25563+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25564+$as_echo "no" >&6; }
25565+buggygetaddrinfo=yes
25566+
25567+fi
25568+rm -f core conftest.err conftest.$ac_objext \
25569+ conftest$ac_exeext conftest.$ac_ext
25570+
25571+if test "$buggygetaddrinfo" = "yes"; then
25572+ if test "$ipv6" = "yes"; then
25573+ echo 'Fatal: You must get working getaddrinfo() function.'
25574+ echo ' or you can specify "--disable-ipv6"'.
25575+ exit 1
25576+ fi
25577+else
25578+
25579+$as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
25580
25581-cat >>confdefs.h <<\_ACEOF
25582-#define volatile
25583+fi
25584+for ac_func in getnameinfo
25585+do :
25586+ ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
25587+if test "x$ac_cv_func_getnameinfo" = xyes; then :
25588+ cat >>confdefs.h <<_ACEOF
25589+#define HAVE_GETNAMEINFO 1
25590 _ACEOF
25591
25592-
25593 fi
25594+done
25595
25596-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25597-{ echo "$as_me:$LINENO: result: $works" >&5
25598-echo "${ECHO_T}$works" >&6; }
25599
25600-works=no
25601-{ echo "$as_me:$LINENO: checking for working signed char" >&5
25602-echo $ECHO_N "checking for working signed char... $ECHO_C" >&6; }
25603-cat >conftest.$ac_ext <<_ACEOF
25604-/* confdefs.h. */
25605-_ACEOF
25606-cat confdefs.h >>conftest.$ac_ext
25607-cat >>conftest.$ac_ext <<_ACEOF
25608+# checks for structures
25609+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
25610+$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
25611+if ${ac_cv_header_time+:} false; then :
25612+ $as_echo_n "(cached) " >&6
25613+else
25614+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25615 /* end confdefs.h. */
25616+#include <sys/types.h>
25617+#include <sys/time.h>
25618+#include <time.h>
25619
25620 int
25621 main ()
25622 {
25623-signed char c;
25624+if ((struct tm *) 0)
25625+return 0;
25626 ;
25627 return 0;
25628 }
25629 _ACEOF
25630-rm -f conftest.$ac_objext
25631-if { (ac_try="$ac_compile"
25632-case "(($ac_try" in
25633- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25634- *) ac_try_echo=$ac_try;;
25635-esac
25636-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25637- (eval "$ac_compile") 2>conftest.er1
25638- ac_status=$?
25639- grep -v '^ *+' conftest.er1 >conftest.err
25640- rm -f conftest.er1
25641- cat conftest.err >&5
25642- echo "$as_me:$LINENO: \$? = $ac_status" >&5
25643- (exit $ac_status); } && {
25644- test -z "$ac_c_werror_flag" ||
25645- test ! -s conftest.err
25646- } && test -s conftest.$ac_objext; then
25647- works=yes
25648+if ac_fn_c_try_compile "$LINENO"; then :
25649+ ac_cv_header_time=yes
25650 else
25651- echo "$as_me: failed program was:" >&5
25652-sed 's/^/| /' conftest.$ac_ext >&5
25653-
25654-
25655-cat >>confdefs.h <<\_ACEOF
25656-#define signed
25657-_ACEOF
25658+ ac_cv_header_time=no
25659+fi
25660+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25661+fi
25662+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
25663+$as_echo "$ac_cv_header_time" >&6; }
25664+if test $ac_cv_header_time = yes; then
25665
25666+$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
25667
25668 fi
25669
25670-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25671-{ echo "$as_me:$LINENO: result: $works" >&5
25672-echo "${ECHO_T}$works" >&6; }
25673-
25674-have_prototypes=no
25675-{ echo "$as_me:$LINENO: checking for prototypes" >&5
25676-echo $ECHO_N "checking for prototypes... $ECHO_C" >&6; }
25677-cat >conftest.$ac_ext <<_ACEOF
25678-/* confdefs.h. */
25679-_ACEOF
25680-cat confdefs.h >>conftest.$ac_ext
25681-cat >>conftest.$ac_ext <<_ACEOF
25682+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
25683+$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
25684+if ${ac_cv_struct_tm+:} false; then :
25685+ $as_echo_n "(cached) " >&6
25686+else
25687+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25688 /* end confdefs.h. */
25689-int foo(int x) { return 0; }
25690+#include <sys/types.h>
25691+#include <time.h>
25692+
25693 int
25694 main ()
25695 {
25696-return foo(10);
25697+struct tm tm;
25698+ int *p = &tm.tm_sec;
25699+ return !p;
25700 ;
25701 return 0;
25702 }
25703 _ACEOF
25704-rm -f conftest.$ac_objext
25705-if { (ac_try="$ac_compile"
25706-case "(($ac_try" in
25707- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25708- *) ac_try_echo=$ac_try;;
25709-esac
25710-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25711- (eval "$ac_compile") 2>conftest.er1
25712- ac_status=$?
25713- grep -v '^ *+' conftest.er1 >conftest.err
25714- rm -f conftest.er1
25715- cat conftest.err >&5
25716- echo "$as_me:$LINENO: \$? = $ac_status" >&5
25717- (exit $ac_status); } && {
25718- test -z "$ac_c_werror_flag" ||
25719- test ! -s conftest.err
25720- } && test -s conftest.$ac_objext; then
25721-
25722-
25723-cat >>confdefs.h <<\_ACEOF
25724-#define HAVE_PROTOTYPES 1
25725-_ACEOF
25726-
25727- have_prototypes=yes
25728-
25729+if ac_fn_c_try_compile "$LINENO"; then :
25730+ ac_cv_struct_tm=time.h
25731 else
25732- echo "$as_me: failed program was:" >&5
25733-sed 's/^/| /' conftest.$ac_ext >&5
25734-
25735-
25736+ ac_cv_struct_tm=sys/time.h
25737 fi
25738-
25739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25740-{ echo "$as_me:$LINENO: result: $have_prototypes" >&5
25741-echo "${ECHO_T}$have_prototypes" >&6; }
25742+fi
25743+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
25744+$as_echo "$ac_cv_struct_tm" >&6; }
25745+if test $ac_cv_struct_tm = sys/time.h; then
25746
25747-works=no
25748-{ echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
25749-echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6; }
25750-cat >conftest.$ac_ext <<_ACEOF
25751-/* confdefs.h. */
25752-_ACEOF
25753-cat confdefs.h >>conftest.$ac_ext
25754-cat >>conftest.$ac_ext <<_ACEOF
25755-/* end confdefs.h. */
25756+$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
25757
25758-#include <stdarg.h>
25759-int foo(int x, ...) {
25760- va_list va;
25761- va_start(va, x);
25762- va_arg(va, int);
25763- va_arg(va, char *);
25764- va_arg(va, double);
25765- return 0;
25766-}
25767+fi
25768
25769-int
25770-main ()
25771-{
25772-return foo(10, "", 3.14);
25773- ;
25774- return 0;
25775-}
25776-_ACEOF
25777-rm -f conftest.$ac_objext
25778-if { (ac_try="$ac_compile"
25779-case "(($ac_try" in
25780- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25781- *) ac_try_echo=$ac_try;;
25782-esac
25783-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25784- (eval "$ac_compile") 2>conftest.er1
25785- ac_status=$?
25786- grep -v '^ *+' conftest.er1 >conftest.err
25787- rm -f conftest.er1
25788- cat conftest.err >&5
25789- echo "$as_me:$LINENO: \$? = $ac_status" >&5
25790- (exit $ac_status); } && {
25791- test -z "$ac_c_werror_flag" ||
25792- test ! -s conftest.err
25793- } && test -s conftest.$ac_objext; then
25794+ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
25795+#include <$ac_cv_struct_tm>
25796
25797+"
25798+if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
25799
25800-cat >>confdefs.h <<\_ACEOF
25801-#define HAVE_STDARG_PROTOTYPES 1
25802+cat >>confdefs.h <<_ACEOF
25803+#define HAVE_STRUCT_TM_TM_ZONE 1
25804 _ACEOF
25805
25806- works=yes
25807
25808-else
25809- echo "$as_me: failed program was:" >&5
25810-sed 's/^/| /' conftest.$ac_ext >&5
25811+fi
25812
25813+if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
25814
25815-fi
25816+$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
25817
25818-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25819-{ echo "$as_me:$LINENO: result: $works" >&5
25820-echo "${ECHO_T}$works" >&6; }
25821+else
25822+ ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
25823+"
25824+if test "x$ac_cv_have_decl_tzname" = xyes; then :
25825+ ac_have_decl=1
25826+else
25827+ ac_have_decl=0
25828+fi
25829
25830-# check for socketpair
25831-{ echo "$as_me:$LINENO: checking for socketpair" >&5
25832-echo $ECHO_N "checking for socketpair... $ECHO_C" >&6; }
25833-cat >conftest.$ac_ext <<_ACEOF
25834-/* confdefs.h. */
25835+cat >>confdefs.h <<_ACEOF
25836+#define HAVE_DECL_TZNAME $ac_have_decl
25837 _ACEOF
25838-cat confdefs.h >>conftest.$ac_ext
25839-cat >>conftest.$ac_ext <<_ACEOF
25840-/* end confdefs.h. */
25841
25842-#include <sys/types.h>
25843-#include <sys/socket.h>
25844+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
25845+$as_echo_n "checking for tzname... " >&6; }
25846+if ${ac_cv_var_tzname+:} false; then :
25847+ $as_echo_n "(cached) " >&6
25848+else
25849+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25850+/* end confdefs.h. */
25851+#include <time.h>
25852+#if !HAVE_DECL_TZNAME
25853+extern char *tzname[];
25854+#endif
25855
25856 int
25857 main ()
25858 {
25859-void *x=socketpair
25860+return tzname[0][0];
25861 ;
25862 return 0;
25863 }
25864 _ACEOF
25865-rm -f conftest.$ac_objext
25866-if { (ac_try="$ac_compile"
25867-case "(($ac_try" in
25868- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25869- *) ac_try_echo=$ac_try;;
25870-esac
25871-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25872- (eval "$ac_compile") 2>conftest.er1
25873- ac_status=$?
25874- grep -v '^ *+' conftest.er1 >conftest.err
25875- rm -f conftest.er1
25876- cat conftest.err >&5
25877- echo "$as_me:$LINENO: \$? = $ac_status" >&5
25878- (exit $ac_status); } && {
25879- test -z "$ac_c_werror_flag" ||
25880- test ! -s conftest.err
25881- } && test -s conftest.$ac_objext; then
25882-
25883-cat >>confdefs.h <<\_ACEOF
25884-#define HAVE_SOCKETPAIR 1
25885-_ACEOF
25886-
25887- { echo "$as_me:$LINENO: result: yes" >&5
25888-echo "${ECHO_T}yes" >&6; }
25889+if ac_fn_c_try_link "$LINENO"; then :
25890+ ac_cv_var_tzname=yes
25891 else
25892- echo "$as_me: failed program was:" >&5
25893-sed 's/^/| /' conftest.$ac_ext >&5
25894+ ac_cv_var_tzname=no
25895+fi
25896+rm -f core conftest.err conftest.$ac_objext \
25897+ conftest$ac_exeext conftest.$ac_ext
25898+fi
25899+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
25900+$as_echo "$ac_cv_var_tzname" >&6; }
25901+ if test $ac_cv_var_tzname = yes; then
25902
25903- { echo "$as_me:$LINENO: result: no" >&5
25904-echo "${ECHO_T}no" >&6; }
25905+$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
25906
25907+ fi
25908 fi
25909
25910-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25911-
25912-# check if sockaddr has sa_len member
25913-{ echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
25914-echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6; }
25915-cat >conftest.$ac_ext <<_ACEOF
25916-/* confdefs.h. */
25917-_ACEOF
25918-cat confdefs.h >>conftest.$ac_ext
25919-cat >>conftest.$ac_ext <<_ACEOF
25920-/* end confdefs.h. */
25921-#include <sys/types.h>
25922-#include <sys/socket.h>
25923-int
25924-main ()
25925-{
25926-struct sockaddr x;
25927-x.sa_len = 0;
25928- ;
25929- return 0;
25930-}
25931-_ACEOF
25932-rm -f conftest.$ac_objext
25933-if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
25940- ac_status=$?
25941- grep -v '^ *+' conftest.er1 >conftest.err
25942- rm -f conftest.er1
25943- cat conftest.err >&5
25944- echo "$as_me:$LINENO: \$? = $ac_status" >&5
25945- (exit $ac_status); } && {
25946- test -z "$ac_c_werror_flag" ||
25947- test ! -s conftest.err
25948- } && test -s conftest.$ac_objext; then
25949- { echo "$as_me:$LINENO: result: yes" >&5
25950-echo "${ECHO_T}yes" >&6; }
25951+ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
25952+if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
25953
25954-cat >>confdefs.h <<\_ACEOF
25955-#define HAVE_SOCKADDR_SA_LEN 1
25956+cat >>confdefs.h <<_ACEOF
25957+#define HAVE_STRUCT_STAT_ST_RDEV 1
25958 _ACEOF
25959
25960-else
25961- echo "$as_me: failed program was:" >&5
25962-sed 's/^/| /' conftest.$ac_ext >&5
25963
25964- { echo "$as_me:$LINENO: result: no" >&5
25965-echo "${ECHO_T}no" >&6; }
25966 fi
25967
25968-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25969+ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
25970+if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
25971
25972-va_list_is_array=no
25973-{ echo "$as_me:$LINENO: checking whether va_list is an array" >&5
25974-echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6; }
25975-cat >conftest.$ac_ext <<_ACEOF
25976-/* confdefs.h. */
25977+cat >>confdefs.h <<_ACEOF
25978+#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
25979 _ACEOF
25980-cat confdefs.h >>conftest.$ac_ext
25981-cat >>conftest.$ac_ext <<_ACEOF
25982-/* end confdefs.h. */
25983-
25984-#ifdef HAVE_STDARG_PROTOTYPES
25985-#include <stdarg.h>
25986-#else
25987-#include <varargs.h>
25988-#endif
25989
25990-int
25991-main ()
25992-{
25993-va_list list1, list2; list1 = list2;
25994- ;
25995- return 0;
25996-}
25997-_ACEOF
25998-rm -f conftest.$ac_objext
25999-if { (ac_try="$ac_compile"
26000-case "(($ac_try" in
26001- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26002- *) ac_try_echo=$ac_try;;
26003-esac
26004-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26005- (eval "$ac_compile") 2>conftest.er1
26006- ac_status=$?
26007- grep -v '^ *+' conftest.er1 >conftest.err
26008- rm -f conftest.er1
26009- cat conftest.err >&5
26010- echo "$as_me:$LINENO: \$? = $ac_status" >&5
26011- (exit $ac_status); } && {
26012- test -z "$ac_c_werror_flag" ||
26013- test ! -s conftest.err
26014- } && test -s conftest.$ac_objext; then
26015- :
26016-else
26017- echo "$as_me: failed program was:" >&5
26018-sed 's/^/| /' conftest.$ac_ext >&5
26019
26020+fi
26021
26022+ac_fn_c_check_member "$LINENO" "struct stat" "st_flags" "ac_cv_member_struct_stat_st_flags" "$ac_includes_default"
26023+if test "x$ac_cv_member_struct_stat_st_flags" = xyes; then :
26024
26025-cat >>confdefs.h <<\_ACEOF
26026-#define VA_LIST_IS_ARRAY 1
26027+cat >>confdefs.h <<_ACEOF
26028+#define HAVE_STRUCT_STAT_ST_FLAGS 1
26029 _ACEOF
26030
26031- va_list_is_array=yes
26032
26033 fi
26034
26035-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26036-{ echo "$as_me:$LINENO: result: $va_list_is_array" >&5
26037-echo "${ECHO_T}$va_list_is_array" >&6; }
26038+ac_fn_c_check_member "$LINENO" "struct stat" "st_gen" "ac_cv_member_struct_stat_st_gen" "$ac_includes_default"
26039+if test "x$ac_cv_member_struct_stat_st_gen" = xyes; then :
26040
26041-# sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
26042+cat >>confdefs.h <<_ACEOF
26043+#define HAVE_STRUCT_STAT_ST_GEN 1
26044+_ACEOF
26045
26046
26047+fi
26048
26049-{ echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
26050-echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
26051-if test "${ac_cv_func_gethostbyname_r+set}" = set; then
26052- echo $ECHO_N "(cached) $ECHO_C" >&6
26053-else
26054- cat >conftest.$ac_ext <<_ACEOF
26055-/* confdefs.h. */
26056-_ACEOF
26057-cat confdefs.h >>conftest.$ac_ext
26058-cat >>conftest.$ac_ext <<_ACEOF
26059-/* end confdefs.h. */
26060-/* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
26061- For example, HP-UX 11i <limits.h> declares gettimeofday. */
26062-#define gethostbyname_r innocuous_gethostbyname_r
26063+ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "$ac_includes_default"
26064+if test "x$ac_cv_member_struct_stat_st_birthtime" = xyes; then :
26065
26066-/* System header to define __stub macros and hopefully few prototypes,
26067- which can conflict with char gethostbyname_r (); below.
26068- Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26069- <limits.h> exists even on freestanding compilers. */
26070+cat >>confdefs.h <<_ACEOF
26071+#define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
26072+_ACEOF
26073
26074-#ifdef __STDC__
26075-# include <limits.h>
26076-#else
26077-# include <assert.h>
26078-#endif
26079
26080-#undef gethostbyname_r
26081+fi
26082
26083-/* Override any GCC internal prototype to avoid an error.
26084- Use char because int might match the return type of a GCC
26085- builtin and then its argument prototype would still apply. */
26086-#ifdef __cplusplus
26087-extern "C"
26088-#endif
26089-char gethostbyname_r ();
26090-/* The GNU C library defines this for functions which it implements
26091- to always fail with ENOSYS. Some functions are actually named
26092- something starting with __ and the normal name is an alias. */
26093-#if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
26094-choke me
26095-#endif
26096+#AC_STRUCT_ST_BLOCKS
26097
26098+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for time.h that defines altzone" >&5
26099+$as_echo_n "checking for time.h that defines altzone... " >&6; }
26100+if ${ac_cv_header_time_altzone+:} false; then :
26101+ $as_echo_n "(cached) " >&6
26102+else
26103+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26104+/* end confdefs.h. */
26105+#include <time.h>
26106 int
26107 main ()
26108 {
26109-return gethostbyname_r ();
26110+return altzone;
26111 ;
26112 return 0;
26113 }
26114 _ACEOF
26115-rm -f conftest.$ac_objext conftest$ac_exeext
26116-if { (ac_try="$ac_link"
26117-case "(($ac_try" in
26118- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26119- *) ac_try_echo=$ac_try;;
26120-esac
26121-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26122- (eval "$ac_link") 2>conftest.er1
26123- ac_status=$?
26124- grep -v '^ *+' conftest.er1 >conftest.err
26125- rm -f conftest.er1
26126- cat conftest.err >&5
26127- echo "$as_me:$LINENO: \$? = $ac_status" >&5
26128- (exit $ac_status); } && {
26129- test -z "$ac_c_werror_flag" ||
26130- test ! -s conftest.err
26131- } && test -s conftest$ac_exeext &&
26132- $as_test_x conftest$ac_exeext; then
26133- ac_cv_func_gethostbyname_r=yes
26134+if ac_fn_c_try_compile "$LINENO"; then :
26135+ ac_cv_header_time_altzone=yes
26136 else
26137- echo "$as_me: failed program was:" >&5
26138-sed 's/^/| /' conftest.$ac_ext >&5
26139-
26140- ac_cv_func_gethostbyname_r=no
26141+ ac_cv_header_time_altzone=no
26142 fi
26143-
26144-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26145- conftest$ac_exeext conftest.$ac_ext
26146+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26147 fi
26148-{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
26149-echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
26150-if test $ac_cv_func_gethostbyname_r = yes; then
26151
26152- cat >>confdefs.h <<\_ACEOF
26153-#define HAVE_GETHOSTBYNAME_R 1
26154-_ACEOF
26155+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time_altzone" >&5
26156+$as_echo "$ac_cv_header_time_altzone" >&6; }
26157+if test $ac_cv_header_time_altzone = yes; then
26158
26159- { echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
26160-echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6; }
26161- OLD_CFLAGS=$CFLAGS
26162- CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
26163- cat >conftest.$ac_ext <<_ACEOF
26164-/* confdefs.h. */
26165-_ACEOF
26166-cat confdefs.h >>conftest.$ac_ext
26167-cat >>conftest.$ac_ext <<_ACEOF
26168+$as_echo "#define HAVE_ALTZONE 1" >>confdefs.h
26169+
26170+fi
26171+
26172+was_it_defined=no
26173+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5
26174+$as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; }
26175+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26176 /* end confdefs.h. */
26177
26178-# include <netdb.h>
26179+#include <sys/types.h>
26180+#include <sys/select.h>
26181+#include <sys/time.h>
26182
26183 int
26184 main ()
26185 {
26186-
26187- char *name;
26188- struct hostent *he, *res;
26189- char buffer[2048];
26190- int buflen = 2048;
26191- int h_errnop;
26192-
26193- (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
26194-
26195+;
26196 ;
26197 return 0;
26198 }
26199 _ACEOF
26200-rm -f conftest.$ac_objext
26201-if { (ac_try="$ac_compile"
26202-case "(($ac_try" in
26203- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26204- *) ac_try_echo=$ac_try;;
26205-esac
26206-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26207- (eval "$ac_compile") 2>conftest.er1
26208- ac_status=$?
26209- grep -v '^ *+' conftest.er1 >conftest.err
26210- rm -f conftest.er1
26211- cat conftest.err >&5
26212- echo "$as_me:$LINENO: \$? = $ac_status" >&5
26213- (exit $ac_status); } && {
26214- test -z "$ac_c_werror_flag" ||
26215- test ! -s conftest.err
26216- } && test -s conftest.$ac_objext; then
26217+if ac_fn_c_try_compile "$LINENO"; then :
26218
26219- cat >>confdefs.h <<\_ACEOF
26220-#define HAVE_GETHOSTBYNAME_R 1
26221-_ACEOF
26222
26223+$as_echo "#define SYS_SELECT_WITH_SYS_TIME 1" >>confdefs.h
26224
26225-cat >>confdefs.h <<\_ACEOF
26226-#define HAVE_GETHOSTBYNAME_R_6_ARG 1
26227-_ACEOF
26228+ was_it_defined=yes
26229
26230- { echo "$as_me:$LINENO: result: yes" >&5
26231-echo "${ECHO_T}yes" >&6; }
26232+fi
26233+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26234+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5
26235+$as_echo "$was_it_defined" >&6; }
26236
26237+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for addrinfo" >&5
26238+$as_echo_n "checking for addrinfo... " >&6; }
26239+if ${ac_cv_struct_addrinfo+:} false; then :
26240+ $as_echo_n "(cached) " >&6
26241 else
26242- echo "$as_me: failed program was:" >&5
26243-sed 's/^/| /' conftest.$ac_ext >&5
26244-
26245-
26246- { echo "$as_me:$LINENO: result: no" >&5
26247-echo "${ECHO_T}no" >&6; }
26248- { echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
26249-echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6; }
26250- cat >conftest.$ac_ext <<_ACEOF
26251-/* confdefs.h. */
26252-_ACEOF
26253-cat confdefs.h >>conftest.$ac_ext
26254-cat >>conftest.$ac_ext <<_ACEOF
26255+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26256 /* end confdefs.h. */
26257
26258-# include <netdb.h>
26259-
26260+# include <netdb.h>
26261 int
26262 main ()
26263 {
26264-
26265- char *name;
26266- struct hostent *he;
26267- char buffer[2048];
26268- int buflen = 2048;
26269- int h_errnop;
26270-
26271- (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
26272-
26273+struct addrinfo a
26274 ;
26275 return 0;
26276 }
26277 _ACEOF
26278-rm -f conftest.$ac_objext
26279-if { (ac_try="$ac_compile"
26280-case "(($ac_try" in
26281- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26282- *) ac_try_echo=$ac_try;;
26283-esac
26284-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26285- (eval "$ac_compile") 2>conftest.er1
26286- ac_status=$?
26287- grep -v '^ *+' conftest.er1 >conftest.err
26288- rm -f conftest.er1
26289- cat conftest.err >&5
26290- echo "$as_me:$LINENO: \$? = $ac_status" >&5
26291- (exit $ac_status); } && {
26292- test -z "$ac_c_werror_flag" ||
26293- test ! -s conftest.err
26294- } && test -s conftest.$ac_objext; then
26295-
26296- cat >>confdefs.h <<\_ACEOF
26297-#define HAVE_GETHOSTBYNAME_R 1
26298-_ACEOF
26299+if ac_fn_c_try_compile "$LINENO"; then :
26300+ ac_cv_struct_addrinfo=yes
26301+else
26302+ ac_cv_struct_addrinfo=no
26303+fi
26304+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26305+fi
26306
26307+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_addrinfo" >&5
26308+$as_echo "$ac_cv_struct_addrinfo" >&6; }
26309+if test $ac_cv_struct_addrinfo = yes; then
26310
26311-cat >>confdefs.h <<\_ACEOF
26312-#define HAVE_GETHOSTBYNAME_R_5_ARG 1
26313-_ACEOF
26314+$as_echo "#define HAVE_ADDRINFO 1" >>confdefs.h
26315
26316- { echo "$as_me:$LINENO: result: yes" >&5
26317-echo "${ECHO_T}yes" >&6; }
26318+fi
26319
26320+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage" >&5
26321+$as_echo_n "checking for sockaddr_storage... " >&6; }
26322+if ${ac_cv_struct_sockaddr_storage+:} false; then :
26323+ $as_echo_n "(cached) " >&6
26324 else
26325- echo "$as_me: failed program was:" >&5
26326-sed 's/^/| /' conftest.$ac_ext >&5
26327-
26328-
26329- { echo "$as_me:$LINENO: result: no" >&5
26330-echo "${ECHO_T}no" >&6; }
26331- { echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
26332-echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6; }
26333- cat >conftest.$ac_ext <<_ACEOF
26334-/* confdefs.h. */
26335-_ACEOF
26336-cat confdefs.h >>conftest.$ac_ext
26337-cat >>conftest.$ac_ext <<_ACEOF
26338+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26339 /* end confdefs.h. */
26340
26341-# include <netdb.h>
26342-
26343+# include <sys/types.h>
26344+# include <sys/socket.h>
26345 int
26346 main ()
26347 {
26348-
26349- char *name;
26350- struct hostent *he;
26351- struct hostent_data data;
26352-
26353- (void) gethostbyname_r(name, he, &data);
26354-
26355+struct sockaddr_storage s
26356 ;
26357 return 0;
26358 }
26359 _ACEOF
26360-rm -f conftest.$ac_objext
26361-if { (ac_try="$ac_compile"
26362-case "(($ac_try" in
26363- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26364- *) ac_try_echo=$ac_try;;
26365-esac
26366-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26367- (eval "$ac_compile") 2>conftest.er1
26368- ac_status=$?
26369- grep -v '^ *+' conftest.er1 >conftest.err
26370- rm -f conftest.er1
26371- cat conftest.err >&5
26372- echo "$as_me:$LINENO: \$? = $ac_status" >&5
26373- (exit $ac_status); } && {
26374- test -z "$ac_c_werror_flag" ||
26375- test ! -s conftest.err
26376- } && test -s conftest.$ac_objext; then
26377-
26378- cat >>confdefs.h <<\_ACEOF
26379-#define HAVE_GETHOSTBYNAME_R 1
26380-_ACEOF
26381-
26382-
26383-cat >>confdefs.h <<\_ACEOF
26384-#define HAVE_GETHOSTBYNAME_R_3_ARG 1
26385-_ACEOF
26386-
26387- { echo "$as_me:$LINENO: result: yes" >&5
26388-echo "${ECHO_T}yes" >&6; }
26389-
26390+if ac_fn_c_try_compile "$LINENO"; then :
26391+ ac_cv_struct_sockaddr_storage=yes
26392 else
26393- echo "$as_me: failed program was:" >&5
26394-sed 's/^/| /' conftest.$ac_ext >&5
26395-
26396-
26397- { echo "$as_me:$LINENO: result: no" >&5
26398-echo "${ECHO_T}no" >&6; }
26399-
26400+ ac_cv_struct_sockaddr_storage=no
26401 fi
26402-
26403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26404-
26405 fi
26406
26407-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26408-
26409-fi
26410+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_storage" >&5
26411+$as_echo "$ac_cv_struct_sockaddr_storage" >&6; }
26412+if test $ac_cv_struct_sockaddr_storage = yes; then
26413
26414-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26415- CFLAGS=$OLD_CFLAGS
26416+$as_echo "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h
26417
26418-else
26419+fi
26420
26421+# checks for compiler characteristics
26422
26423-for ac_func in gethostbyname
26424-do
26425-as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26426-{ echo "$as_me:$LINENO: checking for $ac_func" >&5
26427-echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26428-if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26429- echo $ECHO_N "(cached) $ECHO_C" >&6
26430+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
26431+$as_echo_n "checking whether char is unsigned... " >&6; }
26432+if ${ac_cv_c_char_unsigned+:} false; then :
26433+ $as_echo_n "(cached) " >&6
26434 else
26435- cat >conftest.$ac_ext <<_ACEOF
26436-/* confdefs.h. */
26437-_ACEOF
26438-cat confdefs.h >>conftest.$ac_ext
26439-cat >>conftest.$ac_ext <<_ACEOF
26440+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26441 /* end confdefs.h. */
26442-/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26443- For example, HP-UX 11i <limits.h> declares gettimeofday. */
26444-#define $ac_func innocuous_$ac_func
26445-
26446-/* System header to define __stub macros and hopefully few prototypes,
26447- which can conflict with char $ac_func (); below.
26448- Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26449- <limits.h> exists even on freestanding compilers. */
26450-
26451-#ifdef __STDC__
26452-# include <limits.h>
26453-#else
26454-# include <assert.h>
26455-#endif
26456-
26457-#undef $ac_func
26458-
26459-/* Override any GCC internal prototype to avoid an error.
26460- Use char because int might match the return type of a GCC
26461- builtin and then its argument prototype would still apply. */
26462-#ifdef __cplusplus
26463-extern "C"
26464-#endif
26465-char $ac_func ();
26466-/* The GNU C library defines this for functions which it implements
26467- to always fail with ENOSYS. Some functions are actually named
26468- something starting with __ and the normal name is an alias. */
26469-#if defined __stub_$ac_func || defined __stub___$ac_func
26470-choke me
26471-#endif
26472-
26473+$ac_includes_default
26474 int
26475 main ()
26476 {
26477-return $ac_func ();
26478+static int test_array [1 - 2 * !(((char) -1) < 0)];
26479+test_array [0] = 0
26480+
26481 ;
26482 return 0;
26483 }
26484 _ACEOF
26485-rm -f conftest.$ac_objext conftest$ac_exeext
26486-if { (ac_try="$ac_link"
26487-case "(($ac_try" in
26488- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26489- *) ac_try_echo=$ac_try;;
26490-esac
26491-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26492- (eval "$ac_link") 2>conftest.er1
26493- ac_status=$?
26494- grep -v '^ *+' conftest.er1 >conftest.err
26495- rm -f conftest.er1
26496- cat conftest.err >&5
26497- echo "$as_me:$LINENO: \$? = $ac_status" >&5
26498- (exit $ac_status); } && {
26499- test -z "$ac_c_werror_flag" ||
26500- test ! -s conftest.err
26501- } && test -s conftest$ac_exeext &&
26502- $as_test_x conftest$ac_exeext; then
26503- eval "$as_ac_var=yes"
26504+if ac_fn_c_try_compile "$LINENO"; then :
26505+ ac_cv_c_char_unsigned=no
26506 else
26507- echo "$as_me: failed program was:" >&5
26508-sed 's/^/| /' conftest.$ac_ext >&5
26509-
26510- eval "$as_ac_var=no"
26511+ ac_cv_c_char_unsigned=yes
26512 fi
26513-
26514-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26515- conftest$ac_exeext conftest.$ac_ext
26516+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26517 fi
26518-ac_res=`eval echo '${'$as_ac_var'}'`
26519- { echo "$as_me:$LINENO: result: $ac_res" >&5
26520-echo "${ECHO_T}$ac_res" >&6; }
26521-if test `eval echo '${'$as_ac_var'}'` = yes; then
26522- cat >>confdefs.h <<_ACEOF
26523-#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26524-_ACEOF
26525+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
26526+$as_echo "$ac_cv_c_char_unsigned" >&6; }
26527+if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
26528+ $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
26529
26530 fi
26531-done
26532
26533+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
26534+$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
26535+if ${ac_cv_c_const+:} false; then :
26536+ $as_echo_n "(cached) " >&6
26537+else
26538+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26539+/* end confdefs.h. */
26540
26541-fi
26542-
26543+int
26544+main ()
26545+{
26546+/* FIXME: Include the comments suggested by Paul. */
26547+#ifndef __cplusplus
26548+ /* Ultrix mips cc rejects this. */
26549+ typedef int charset[2];
26550+ const charset cs;
26551+ /* SunOS 4.1.1 cc rejects this. */
26552+ char const *const *pcpcc;
26553+ char **ppc;
26554+ /* NEC SVR4.0.2 mips cc rejects this. */
26555+ struct point {int x, y;};
26556+ static struct point const zero = {0,0};
26557+ /* AIX XL C 1.02.0.0 rejects this.
26558+ It does not let you subtract one const X* pointer from another in
26559+ an arm of an if-expression whose if-part is not a constant
26560+ expression */
26561+ const char *g = "string";
26562+ pcpcc = &g + (g ? g-g : 0);
26563+ /* HPUX 7.0 cc rejects these. */
26564+ ++pcpcc;
26565+ ppc = (char**) pcpcc;
26566+ pcpcc = (char const *const *) ppc;
26567+ { /* SCO 3.2v4 cc rejects this. */
26568+ char *t;
26569+ char const *s = 0 ? (char *) 0 : (char const *) 0;
26570
26571+ *t++ = 0;
26572+ if (s) return 0;
26573+ }
26574+ { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
26575+ int x[] = {25, 17};
26576+ const int *foo = &x[0];
26577+ ++foo;
26578+ }
26579+ { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26580+ typedef const int *iptr;
26581+ iptr p = 0;
26582+ ++p;
26583+ }
26584+ { /* AIX XL C 1.02.0.0 rejects this saying
26585+ "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26586+ struct s { int j; const int *ap[3]; };
26587+ struct s *b; b->j = 5;
26588+ }
26589+ { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26590+ const int foo = 10;
26591+ if (!foo) return 0;
26592+ }
26593+ return !cs[0] && !zero.x;
26594+#endif
26595
26596+ ;
26597+ return 0;
26598+}
26599+_ACEOF
26600+if ac_fn_c_try_compile "$LINENO"; then :
26601+ ac_cv_c_const=yes
26602+else
26603+ ac_cv_c_const=no
26604+fi
26605+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26606+fi
26607+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
26608+$as_echo "$ac_cv_c_const" >&6; }
26609+if test $ac_cv_c_const = no; then
26610
26611+$as_echo "#define const /**/" >>confdefs.h
26612
26613+fi
26614
26615
26616-# checks for system services
26617-# (none yet)
26618+works=no
26619+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
26620+$as_echo_n "checking for working volatile... " >&6; }
26621+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26622+/* end confdefs.h. */
26623
26624-# Linux requires this for correct f.p. operations
26625-{ echo "$as_me:$LINENO: checking for __fpu_control" >&5
26626-echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6; }
26627-if test "${ac_cv_func___fpu_control+set}" = set; then
26628- echo $ECHO_N "(cached) $ECHO_C" >&6
26629-else
26630- cat >conftest.$ac_ext <<_ACEOF
26631-/* confdefs.h. */
26632+int
26633+main ()
26634+{
26635+volatile int x; x = 0;
26636+ ;
26637+ return 0;
26638+}
26639 _ACEOF
26640-cat confdefs.h >>conftest.$ac_ext
26641-cat >>conftest.$ac_ext <<_ACEOF
26642-/* end confdefs.h. */
26643-/* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
26644- For example, HP-UX 11i <limits.h> declares gettimeofday. */
26645-#define __fpu_control innocuous___fpu_control
26646+if ac_fn_c_try_compile "$LINENO"; then :
26647+ works=yes
26648+else
26649
26650-/* System header to define __stub macros and hopefully few prototypes,
26651- which can conflict with char __fpu_control (); below.
26652- Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26653- <limits.h> exists even on freestanding compilers. */
26654+$as_echo "#define volatile /**/" >>confdefs.h
26655
26656-#ifdef __STDC__
26657-# include <limits.h>
26658-#else
26659-# include <assert.h>
26660-#endif
26661
26662-#undef __fpu_control
26663+fi
26664+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26665+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5
26666+$as_echo "$works" >&6; }
26667
26668-/* Override any GCC internal prototype to avoid an error.
26669- Use char because int might match the return type of a GCC
26670- builtin and then its argument prototype would still apply. */
26671-#ifdef __cplusplus
26672-extern "C"
26673-#endif
26674-char __fpu_control ();
26675-/* The GNU C library defines this for functions which it implements
26676- to always fail with ENOSYS. Some functions are actually named
26677- something starting with __ and the normal name is an alias. */
26678-#if defined __stub___fpu_control || defined __stub_____fpu_control
26679-choke me
26680-#endif
26681+works=no
26682+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working signed char" >&5
26683+$as_echo_n "checking for working signed char... " >&6; }
26684+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26685+/* end confdefs.h. */
26686
26687 int
26688 main ()
26689 {
26690-return __fpu_control ();
26691+signed char c;
26692 ;
26693 return 0;
26694 }
26695 _ACEOF
26696-rm -f conftest.$ac_objext conftest$ac_exeext
26697-if { (ac_try="$ac_link"
26698-case "(($ac_try" in
26699- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26700- *) ac_try_echo=$ac_try;;
26701-esac
26702-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26703- (eval "$ac_link") 2>conftest.er1
26704- ac_status=$?
26705- grep -v '^ *+' conftest.er1 >conftest.err
26706- rm -f conftest.er1
26707- cat conftest.err >&5
26708- echo "$as_me:$LINENO: \$? = $ac_status" >&5
26709- (exit $ac_status); } && {
26710- test -z "$ac_c_werror_flag" ||
26711- test ! -s conftest.err
26712- } && test -s conftest$ac_exeext &&
26713- $as_test_x conftest$ac_exeext; then
26714- ac_cv_func___fpu_control=yes
26715+if ac_fn_c_try_compile "$LINENO"; then :
26716+ works=yes
26717 else
26718- echo "$as_me: failed program was:" >&5
26719-sed 's/^/| /' conftest.$ac_ext >&5
26720
26721- ac_cv_func___fpu_control=no
26722-fi
26723+$as_echo "#define signed /**/" >>confdefs.h
26724+
26725
26726-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26727- conftest$ac_exeext conftest.$ac_ext
26728 fi
26729-{ echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
26730-echo "${ECHO_T}$ac_cv_func___fpu_control" >&6; }
26731-if test $ac_cv_func___fpu_control = yes; then
26732- :
26733-else
26734+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26735+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5
26736+$as_echo "$works" >&6; }
26737
26738-{ echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
26739-echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6; }
26740-if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
26741- echo $ECHO_N "(cached) $ECHO_C" >&6
26742-else
26743- ac_check_lib_save_LIBS=$LIBS
26744-LIBS="-lieee $LIBS"
26745-cat >conftest.$ac_ext <<_ACEOF
26746-/* confdefs.h. */
26747-_ACEOF
26748-cat confdefs.h >>conftest.$ac_ext
26749-cat >>conftest.$ac_ext <<_ACEOF
26750+have_prototypes=no
26751+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for prototypes" >&5
26752+$as_echo_n "checking for prototypes... " >&6; }
26753+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26754 /* end confdefs.h. */
26755-
26756-/* Override any GCC internal prototype to avoid an error.
26757- Use char because int might match the return type of a GCC
26758- builtin and then its argument prototype would still apply. */
26759-#ifdef __cplusplus
26760-extern "C"
26761-#endif
26762-char __fpu_control ();
26763+int foo(int x) { return 0; }
26764 int
26765 main ()
26766 {
26767-return __fpu_control ();
26768+return foo(10);
26769 ;
26770 return 0;
26771 }
26772 _ACEOF
26773-rm -f conftest.$ac_objext conftest$ac_exeext
26774-if { (ac_try="$ac_link"
26775-case "(($ac_try" in
26776- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26777- *) ac_try_echo=$ac_try;;
26778-esac
26779-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26780- (eval "$ac_link") 2>conftest.er1
26781- ac_status=$?
26782- grep -v '^ *+' conftest.er1 >conftest.err
26783- rm -f conftest.er1
26784- cat conftest.err >&5
26785- echo "$as_me:$LINENO: \$? = $ac_status" >&5
26786- (exit $ac_status); } && {
26787- test -z "$ac_c_werror_flag" ||
26788- test ! -s conftest.err
26789- } && test -s conftest$ac_exeext &&
26790- $as_test_x conftest$ac_exeext; then
26791- ac_cv_lib_ieee___fpu_control=yes
26792-else
26793- echo "$as_me: failed program was:" >&5
26794-sed 's/^/| /' conftest.$ac_ext >&5
26795+if ac_fn_c_try_compile "$LINENO"; then :
26796
26797- ac_cv_lib_ieee___fpu_control=no
26798-fi
26799
26800-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26801- conftest$ac_exeext conftest.$ac_ext
26802-LIBS=$ac_check_lib_save_LIBS
26803+$as_echo "#define HAVE_PROTOTYPES 1" >>confdefs.h
26804+
26805+ have_prototypes=yes
26806+
26807 fi
26808-{ echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
26809-echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6; }
26810-if test $ac_cv_lib_ieee___fpu_control = yes; then
26811- cat >>confdefs.h <<_ACEOF
26812-#define HAVE_LIBIEEE 1
26813+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26814+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_prototypes" >&5
26815+$as_echo "$have_prototypes" >&6; }
26816+
26817+works=no
26818+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for variable length prototypes and stdarg.h" >&5
26819+$as_echo_n "checking for variable length prototypes and stdarg.h... " >&6; }
26820+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26821+/* end confdefs.h. */
26822+
26823+#include <stdarg.h>
26824+int foo(int x, ...) {
26825+ va_list va;
26826+ va_start(va, x);
26827+ va_arg(va, int);
26828+ va_arg(va, char *);
26829+ va_arg(va, double);
26830+ return 0;
26831+}
26832+
26833+int
26834+main ()
26835+{
26836+return foo(10, "", 3.14);
26837+ ;
26838+ return 0;
26839+}
26840 _ACEOF
26841+if ac_fn_c_try_compile "$LINENO"; then :
26842
26843- LIBS="-lieee $LIBS"
26844
26845-fi
26846+$as_echo "#define HAVE_STDARG_PROTOTYPES 1" >>confdefs.h
26847
26848+ works=yes
26849
26850 fi
26851+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26852+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5
26853+$as_echo "$works" >&6; }
26854
26855+# check for socketpair
26856+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socketpair" >&5
26857+$as_echo_n "checking for socketpair... " >&6; }
26858+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26859+/* end confdefs.h. */
26860
26861-# Check for --with-fpectl
26862-{ echo "$as_me:$LINENO: checking for --with-fpectl" >&5
26863-echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6; }
26864-
26865-# Check whether --with-fpectl was given.
26866-if test "${with_fpectl+set}" = set; then
26867- withval=$with_fpectl;
26868-if test "$withval" != no
26869-then
26870+#include <sys/types.h>
26871+#include <sys/socket.h>
26872
26873-cat >>confdefs.h <<\_ACEOF
26874-#define WANT_SIGFPE_HANDLER 1
26875+int
26876+main ()
26877+{
26878+void *x=socketpair
26879+ ;
26880+ return 0;
26881+}
26882 _ACEOF
26883+if ac_fn_c_try_compile "$LINENO"; then :
26884
26885- { echo "$as_me:$LINENO: result: yes" >&5
26886-echo "${ECHO_T}yes" >&6; }
26887-else { echo "$as_me:$LINENO: result: no" >&5
26888-echo "${ECHO_T}no" >&6; }
26889-fi
26890+$as_echo "#define HAVE_SOCKETPAIR 1" >>confdefs.h
26891+
26892+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26893+$as_echo "yes" >&6; }
26894 else
26895- { echo "$as_me:$LINENO: result: no" >&5
26896-echo "${ECHO_T}no" >&6; }
26897-fi
26898+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26899+$as_echo "no" >&6; }
26900
26901+fi
26902+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26903
26904-# check for --with-libm=...
26905+# check if sockaddr has sa_len member
26906+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr has sa_len member" >&5
26907+$as_echo_n "checking if sockaddr has sa_len member... " >&6; }
26908+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26909+/* end confdefs.h. */
26910+#include <sys/types.h>
26911+#include <sys/socket.h>
26912+int
26913+main ()
26914+{
26915+struct sockaddr x;
26916+x.sa_len = 0;
26917+ ;
26918+ return 0;
26919+}
26920+_ACEOF
26921+if ac_fn_c_try_compile "$LINENO"; then :
26922+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26923+$as_echo "yes" >&6; }
26924
26925-case $ac_sys_system in
26926-Darwin) ;;
26927-BeOS) ;;
26928-*) LIBM=-lm
26929-esac
26930-{ echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
26931-echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6; }
26932+$as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h
26933
26934-# Check whether --with-libm was given.
26935-if test "${with_libm+set}" = set; then
26936- withval=$with_libm;
26937-if test "$withval" = no
26938-then LIBM=
26939- { echo "$as_me:$LINENO: result: force LIBM empty" >&5
26940-echo "${ECHO_T}force LIBM empty" >&6; }
26941-elif test "$withval" != yes
26942-then LIBM=$withval
26943- { echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
26944-echo "${ECHO_T}set LIBM=\"$withval\"" >&6; }
26945-else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
26946-echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
26947- { (exit 1); exit 1; }; }
26948-fi
26949 else
26950- { echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
26951-echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6; }
26952+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26953+$as_echo "no" >&6; }
26954 fi
26955+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26956
26957+va_list_is_array=no
26958+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether va_list is an array" >&5
26959+$as_echo_n "checking whether va_list is an array... " >&6; }
26960+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26961+/* end confdefs.h. */
26962
26963-# check for --with-libc=...
26964+#ifdef HAVE_STDARG_PROTOTYPES
26965+#include <stdarg.h>
26966+#else
26967+#include <varargs.h>
26968+#endif
26969
26970-{ echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
26971-echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6; }
26972+int
26973+main ()
26974+{
26975+va_list list1, list2; list1 = list2;
26976+ ;
26977+ return 0;
26978+}
26979+_ACEOF
26980+if ac_fn_c_try_compile "$LINENO"; then :
26981
26982-# Check whether --with-libc was given.
26983-if test "${with_libc+set}" = set; then
26984- withval=$with_libc;
26985-if test "$withval" = no
26986-then LIBC=
26987- { echo "$as_me:$LINENO: result: force LIBC empty" >&5
26988-echo "${ECHO_T}force LIBC empty" >&6; }
26989-elif test "$withval" != yes
26990-then LIBC=$withval
26991- { echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
26992-echo "${ECHO_T}set LIBC=\"$withval\"" >&6; }
26993-else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
26994-echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
26995- { (exit 1); exit 1; }; }
26996-fi
26997 else
26998- { echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
26999-echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6; }
27000+
27001+
27002+$as_echo "#define VA_LIST_IS_ARRAY 1" >>confdefs.h
27003+
27004+ va_list_is_array=yes
27005+
27006 fi
27007+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27008+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $va_list_is_array" >&5
27009+$as_echo "$va_list_is_array" >&6; }
27010
27011+# sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
27012
27013-# ************************************
27014-# * Check for mathematical functions *
27015-# ************************************
27016
27017-LIBS_SAVE=$LIBS
27018-LIBS="$LIBS $LIBM"
27019+ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
27020+if test "x$ac_cv_func_gethostbyname_r" = xyes; then :
27021
27022-# On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of
27023-# -0. on some architectures.
27024-{ echo "$as_me:$LINENO: checking whether tanh preserves the sign of zero" >&5
27025-echo $ECHO_N "checking whether tanh preserves the sign of zero... $ECHO_C" >&6; }
27026-if test "${ac_cv_tanh_preserves_zero_sign+set}" = set; then
27027- echo $ECHO_N "(cached) $ECHO_C" >&6
27028-else
27029+ $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
27030
27031-if test "$cross_compiling" = yes; then
27032- ac_cv_tanh_preserves_zero_sign=no
27033-else
27034- cat >conftest.$ac_ext <<_ACEOF
27035-/* confdefs.h. */
27036-_ACEOF
27037-cat confdefs.h >>conftest.$ac_ext
27038-cat >>conftest.$ac_ext <<_ACEOF
27039+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 6 args" >&5
27040+$as_echo_n "checking gethostbyname_r with 6 args... " >&6; }
27041+ OLD_CFLAGS=$CFLAGS
27042+ CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
27043+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27044 /* end confdefs.h. */
27045
27046-#include <math.h>
27047-#include <stdlib.h>
27048-int main() {
27049- /* return 0 if either negative zeros don't exist
27050- on this platform or if negative zeros exist
27051- and tanh(-0.) == -0. */
27052- if (atan2(0., -1.) == atan2(-0., -1.) ||
27053- atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0);
27054- else exit(1);
27055-}
27056+# include <netdb.h>
27057
27058-_ACEOF
27059-rm -f conftest$ac_exeext
27060-if { (ac_try="$ac_link"
27061-case "(($ac_try" in
27062- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27063- *) ac_try_echo=$ac_try;;
27064-esac
27065-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27066- (eval "$ac_link") 2>&5
27067- ac_status=$?
27068- echo "$as_me:$LINENO: \$? = $ac_status" >&5
27069- (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27070- { (case "(($ac_try" in
27071- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27072- *) ac_try_echo=$ac_try;;
27073-esac
27074-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27075- (eval "$ac_try") 2>&5
27076- ac_status=$?
27077- echo "$as_me:$LINENO: \$? = $ac_status" >&5
27078- (exit $ac_status); }; }; then
27079- ac_cv_tanh_preserves_zero_sign=yes
27080-else
27081- echo "$as_me: program exited with status $ac_status" >&5
27082-echo "$as_me: failed program was:" >&5
27083-sed 's/^/| /' conftest.$ac_ext >&5
27084+int
27085+main ()
27086+{
27087
27088-( exit $ac_status )
27089-ac_cv_tanh_preserves_zero_sign=no
27090-fi
27091-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27092-fi
27093+ char *name;
27094+ struct hostent *he, *res;
27095+ char buffer[2048];
27096+ int buflen = 2048;
27097+ int h_errnop;
27098
27099+ (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
27100
27101-fi
27102+ ;
27103+ return 0;
27104+}
27105+_ACEOF
27106+if ac_fn_c_try_compile "$LINENO"; then :
27107
27108-{ echo "$as_me:$LINENO: result: $ac_cv_tanh_preserves_zero_sign" >&5
27109-echo "${ECHO_T}$ac_cv_tanh_preserves_zero_sign" >&6; }
27110-if test "$ac_cv_tanh_preserves_zero_sign" = yes
27111-then
27112+ $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
27113
27114-cat >>confdefs.h <<\_ACEOF
27115-#define TANH_PRESERVES_ZERO_SIGN 1
27116-_ACEOF
27117
27118-fi
27119+$as_echo "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h
27120
27121+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27122+$as_echo "yes" >&6; }
27123
27124-for ac_func in hypot
27125-do
27126-as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27127-{ echo "$as_me:$LINENO: checking for $ac_func" >&5
27128-echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27129-if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27130- echo $ECHO_N "(cached) $ECHO_C" >&6
27131 else
27132- cat >conftest.$ac_ext <<_ACEOF
27133-/* confdefs.h. */
27134-_ACEOF
27135-cat confdefs.h >>conftest.$ac_ext
27136-cat >>conftest.$ac_ext <<_ACEOF
27137+
27138+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27139+$as_echo "no" >&6; }
27140+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 5 args" >&5
27141+$as_echo_n "checking gethostbyname_r with 5 args... " >&6; }
27142+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27143 /* end confdefs.h. */
27144-/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27145- For example, HP-UX 11i <limits.h> declares gettimeofday. */
27146-#define $ac_func innocuous_$ac_func
27147
27148-/* System header to define __stub macros and hopefully few prototypes,
27149- which can conflict with char $ac_func (); below.
27150- Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27151- <limits.h> exists even on freestanding compilers. */
27152+# include <netdb.h>
27153
27154-#ifdef __STDC__
27155-# include <limits.h>
27156-#else
27157-# include <assert.h>
27158-#endif
27159+int
27160+main ()
27161+{
27162
27163-#undef $ac_func
27164+ char *name;
27165+ struct hostent *he;
27166+ char buffer[2048];
27167+ int buflen = 2048;
27168+ int h_errnop;
27169
27170-/* Override any GCC internal prototype to avoid an error.
27171- Use char because int might match the return type of a GCC
27172- builtin and then its argument prototype would still apply. */
27173-#ifdef __cplusplus
27174-extern "C"
27175-#endif
27176-char $ac_func ();
27177-/* The GNU C library defines this for functions which it implements
27178- to always fail with ENOSYS. Some functions are actually named
27179- something starting with __ and the normal name is an alias. */
27180-#if defined __stub_$ac_func || defined __stub___$ac_func
27181-choke me
27182-#endif
27183+ (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
27184+
27185+ ;
27186+ return 0;
27187+}
27188+_ACEOF
27189+if ac_fn_c_try_compile "$LINENO"; then :
27190+
27191+ $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
27192+
27193+
27194+$as_echo "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h
27195+
27196+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27197+$as_echo "yes" >&6; }
27198+
27199+else
27200+
27201+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27202+$as_echo "no" >&6; }
27203+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 3 args" >&5
27204+$as_echo_n "checking gethostbyname_r with 3 args... " >&6; }
27205+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27206+/* end confdefs.h. */
27207+
27208+# include <netdb.h>
27209
27210 int
27211 main ()
27212 {
27213-return $ac_func ();
27214+
27215+ char *name;
27216+ struct hostent *he;
27217+ struct hostent_data data;
27218+
27219+ (void) gethostbyname_r(name, he, &data);
27220+
27221 ;
27222 return 0;
27223 }
27224 _ACEOF
27225-rm -f conftest.$ac_objext conftest$ac_exeext
27226-if { (ac_try="$ac_link"
27227-case "(($ac_try" in
27228- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27229- *) ac_try_echo=$ac_try;;
27230-esac
27231-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27232- (eval "$ac_link") 2>conftest.er1
27233- ac_status=$?
27234- grep -v '^ *+' conftest.er1 >conftest.err
27235- rm -f conftest.er1
27236- cat conftest.err >&5
27237- echo "$as_me:$LINENO: \$? = $ac_status" >&5
27238- (exit $ac_status); } && {
27239- test -z "$ac_c_werror_flag" ||
27240- test ! -s conftest.err
27241- } && test -s conftest$ac_exeext &&
27242- $as_test_x conftest$ac_exeext; then
27243- eval "$as_ac_var=yes"
27244+if ac_fn_c_try_compile "$LINENO"; then :
27245+
27246+ $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
27247+
27248+
27249+$as_echo "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h
27250+
27251+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27252+$as_echo "yes" >&6; }
27253+
27254 else
27255- echo "$as_me: failed program was:" >&5
27256-sed 's/^/| /' conftest.$ac_ext >&5
27257
27258- eval "$as_ac_var=no"
27259+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27260+$as_echo "no" >&6; }
27261+
27262 fi
27263+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27264
27265-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27266- conftest$ac_exeext conftest.$ac_ext
27267 fi
27268-ac_res=`eval echo '${'$as_ac_var'}'`
27269- { echo "$as_me:$LINENO: result: $ac_res" >&5
27270-echo "${ECHO_T}$ac_res" >&6; }
27271-if test `eval echo '${'$as_ac_var'}'` = yes; then
27272- cat >>confdefs.h <<_ACEOF
27273-#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27274-_ACEOF
27275+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27276+
27277+fi
27278+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27279+ CFLAGS=$OLD_CFLAGS
27280
27281 else
27282- case " $LIBOBJS " in
27283- *" $ac_func.$ac_objext "* ) ;;
27284- *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
27285- ;;
27286-esac
27287+
27288+ for ac_func in gethostbyname
27289+do :
27290+ ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
27291+if test "x$ac_cv_func_gethostbyname" = xyes; then :
27292+ cat >>confdefs.h <<_ACEOF
27293+#define HAVE_GETHOSTBYNAME 1
27294+_ACEOF
27295
27296 fi
27297 done
27298
27299
27300+fi
27301
27302
27303
27304@@ -21701,39 +11433,23 @@ done
27305
27306
27307
27308+# checks for system services
27309+# (none yet)
27310
27311+# Linux requires this for correct f.p. operations
27312+ac_fn_c_check_func "$LINENO" "__fpu_control" "ac_cv_func___fpu_control"
27313+if test "x$ac_cv_func___fpu_control" = xyes; then :
27314
27315-
27316-for ac_func in acosh asinh atanh copysign expm1 finite isinf isnan log1p
27317-do
27318-as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27319-{ echo "$as_me:$LINENO: checking for $ac_func" >&5
27320-echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27321-if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27322- echo $ECHO_N "(cached) $ECHO_C" >&6
27323 else
27324- cat >conftest.$ac_ext <<_ACEOF
27325-/* confdefs.h. */
27326-_ACEOF
27327-cat confdefs.h >>conftest.$ac_ext
27328-cat >>conftest.$ac_ext <<_ACEOF
27329+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __fpu_control in -lieee" >&5
27330+$as_echo_n "checking for __fpu_control in -lieee... " >&6; }
27331+if ${ac_cv_lib_ieee___fpu_control+:} false; then :
27332+ $as_echo_n "(cached) " >&6
27333+else
27334+ ac_check_lib_save_LIBS=$LIBS
27335+LIBS="-lieee $LIBS"
27336+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27337 /* end confdefs.h. */
27338-/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27339- For example, HP-UX 11i <limits.h> declares gettimeofday. */
27340-#define $ac_func innocuous_$ac_func
27341-
27342-/* System header to define __stub macros and hopefully few prototypes,
27343- which can conflict with char $ac_func (); below.
27344- Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27345- <limits.h> exists even on freestanding compilers. */
27346-
27347-#ifdef __STDC__
27348-# include <limits.h>
27349-#else
27350-# include <assert.h>
27351-#endif
27352-
27353-#undef $ac_func
27354
27355 /* Override any GCC internal prototype to avoid an error.
27356 Use char because int might match the return type of a GCC
27357@@ -21741,619 +11457,243 @@ cat >>conftest.$ac_ext <<_ACEOF
27358 #ifdef __cplusplus
27359 extern "C"
27360 #endif
27361-char $ac_func ();
27362-/* The GNU C library defines this for functions which it implements
27363- to always fail with ENOSYS. Some functions are actually named
27364- something starting with __ and the normal name is an alias. */
27365-#if defined __stub_$ac_func || defined __stub___$ac_func
27366-choke me
27367-#endif
27368-
27369+char __fpu_control ();
27370 int
27371 main ()
27372 {
27373-return $ac_func ();
27374+return __fpu_control ();
27375 ;
27376 return 0;
27377 }
27378 _ACEOF
27379-rm -f conftest.$ac_objext conftest$ac_exeext
27380-if { (ac_try="$ac_link"
27381-case "(($ac_try" in
27382- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27383- *) ac_try_echo=$ac_try;;
27384-esac
27385-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27386- (eval "$ac_link") 2>conftest.er1
27387- ac_status=$?
27388- grep -v '^ *+' conftest.er1 >conftest.err
27389- rm -f conftest.er1
27390- cat conftest.err >&5
27391- echo "$as_me:$LINENO: \$? = $ac_status" >&5
27392- (exit $ac_status); } && {
27393- test -z "$ac_c_werror_flag" ||
27394- test ! -s conftest.err
27395- } && test -s conftest$ac_exeext &&
27396- $as_test_x conftest$ac_exeext; then
27397- eval "$as_ac_var=yes"
27398+if ac_fn_c_try_link "$LINENO"; then :
27399+ ac_cv_lib_ieee___fpu_control=yes
27400 else
27401- echo "$as_me: failed program was:" >&5
27402-sed 's/^/| /' conftest.$ac_ext >&5
27403-
27404- eval "$as_ac_var=no"
27405+ ac_cv_lib_ieee___fpu_control=no
27406 fi
27407-
27408-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27409- conftest$ac_exeext conftest.$ac_ext
27410+rm -f core conftest.err conftest.$ac_objext \
27411+ conftest$ac_exeext conftest.$ac_ext
27412+LIBS=$ac_check_lib_save_LIBS
27413 fi
27414-ac_res=`eval echo '${'$as_ac_var'}'`
27415- { echo "$as_me:$LINENO: result: $ac_res" >&5
27416-echo "${ECHO_T}$ac_res" >&6; }
27417-if test `eval echo '${'$as_ac_var'}'` = yes; then
27418+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ieee___fpu_control" >&5
27419+$as_echo "$ac_cv_lib_ieee___fpu_control" >&6; }
27420+if test "x$ac_cv_lib_ieee___fpu_control" = xyes; then :
27421 cat >>confdefs.h <<_ACEOF
27422-#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27423+#define HAVE_LIBIEEE 1
27424 _ACEOF
27425
27426-fi
27427-done
27428-
27429-
27430-LIBS=$LIBS_SAVE
27431+ LIBS="-lieee $LIBS"
27432
27433-# check for wchar.h
27434-if test "${ac_cv_header_wchar_h+set}" = set; then
27435- { echo "$as_me:$LINENO: checking for wchar.h" >&5
27436-echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
27437-if test "${ac_cv_header_wchar_h+set}" = set; then
27438- echo $ECHO_N "(cached) $ECHO_C" >&6
27439 fi
27440-{ echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
27441-echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
27442-else
27443- # Is the header compilable?
27444-{ echo "$as_me:$LINENO: checking wchar.h usability" >&5
27445-echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6; }
27446-cat >conftest.$ac_ext <<_ACEOF
27447-/* confdefs.h. */
27448-_ACEOF
27449-cat confdefs.h >>conftest.$ac_ext
27450-cat >>conftest.$ac_ext <<_ACEOF
27451-/* end confdefs.h. */
27452-$ac_includes_default
27453-#include <wchar.h>
27454-_ACEOF
27455-rm -f conftest.$ac_objext
27456-if { (ac_try="$ac_compile"
27457-case "(($ac_try" in
27458- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27459- *) ac_try_echo=$ac_try;;
27460-esac
27461-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27462- (eval "$ac_compile") 2>conftest.er1
27463- ac_status=$?
27464- grep -v '^ *+' conftest.er1 >conftest.err
27465- rm -f conftest.er1
27466- cat conftest.err >&5
27467- echo "$as_me:$LINENO: \$? = $ac_status" >&5
27468- (exit $ac_status); } && {
27469- test -z "$ac_c_werror_flag" ||
27470- test ! -s conftest.err
27471- } && test -s conftest.$ac_objext; then
27472- ac_header_compiler=yes
27473-else
27474- echo "$as_me: failed program was:" >&5
27475-sed 's/^/| /' conftest.$ac_ext >&5
27476
27477- ac_header_compiler=no
27478+
27479 fi
27480
27481-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27482-{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27483-echo "${ECHO_T}$ac_header_compiler" >&6; }
27484
27485-# Is the header present?
27486-{ echo "$as_me:$LINENO: checking wchar.h presence" >&5
27487-echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6; }
27488-cat >conftest.$ac_ext <<_ACEOF
27489-/* confdefs.h. */
27490-_ACEOF
27491-cat confdefs.h >>conftest.$ac_ext
27492-cat >>conftest.$ac_ext <<_ACEOF
27493-/* end confdefs.h. */
27494-#include <wchar.h>
27495-_ACEOF
27496-if { (ac_try="$ac_cpp conftest.$ac_ext"
27497-case "(($ac_try" in
27498- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27499- *) ac_try_echo=$ac_try;;
27500-esac
27501-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27502- (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27503- ac_status=$?
27504- grep -v '^ *+' conftest.er1 >conftest.err
27505- rm -f conftest.er1
27506- cat conftest.err >&5
27507- echo "$as_me:$LINENO: \$? = $ac_status" >&5
27508- (exit $ac_status); } >/dev/null && {
27509- test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27510- test ! -s conftest.err
27511- }; then
27512- ac_header_preproc=yes
27513-else
27514- echo "$as_me: failed program was:" >&5
27515-sed 's/^/| /' conftest.$ac_ext >&5
27516+# Check for --with-fpectl
27517+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-fpectl" >&5
27518+$as_echo_n "checking for --with-fpectl... " >&6; }
27519
27520- ac_header_preproc=no
27521-fi
27522+# Check whether --with-fpectl was given.
27523+if test "${with_fpectl+set}" = set; then :
27524+ withval=$with_fpectl;
27525+if test "$withval" != no
27526+then
27527
27528-rm -f conftest.err conftest.$ac_ext
27529-{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27530-echo "${ECHO_T}$ac_header_preproc" >&6; }
27531+$as_echo "#define WANT_SIGFPE_HANDLER 1" >>confdefs.h
27532
27533-# So? What about this header?
27534-case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27535- yes:no: )
27536- { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
27537-echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27538- { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
27539-echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
27540- ac_header_preproc=yes
27541- ;;
27542- no:yes:* )
27543- { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
27544-echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
27545- { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
27546-echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
27547- { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
27548-echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
27549- { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
27550-echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
27551- { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
27552-echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
27553- { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
27554-echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
27555- ( cat <<\_ASBOX
27556-## ------------------------------------------------ ##
27557-## Report this to http://www.python.org/python-bugs ##
27558-## ------------------------------------------------ ##
27559-_ASBOX
27560- ) | sed "s/^/$as_me: WARNING: /" >&2
27561- ;;
27562-esac
27563-{ echo "$as_me:$LINENO: checking for wchar.h" >&5
27564-echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
27565-if test "${ac_cv_header_wchar_h+set}" = set; then
27566- echo $ECHO_N "(cached) $ECHO_C" >&6
27567-else
27568- ac_cv_header_wchar_h=$ac_header_preproc
27569+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27570+$as_echo "yes" >&6; }
27571+else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27572+$as_echo "no" >&6; }
27573 fi
27574-{ echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
27575-echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
27576-
27577+else
27578+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27579+$as_echo "no" >&6; }
27580 fi
27581-if test $ac_cv_header_wchar_h = yes; then
27582
27583
27584-cat >>confdefs.h <<\_ACEOF
27585-#define HAVE_WCHAR_H 1
27586-_ACEOF
27587+# check for --with-libm=...
27588
27589- wchar_h="yes"
27590+case $ac_sys_system in
27591+Darwin) ;;
27592+BeOS) ;;
27593+*) LIBM=-lm
27594+esac
27595+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libm=STRING" >&5
27596+$as_echo_n "checking for --with-libm=STRING... " >&6; }
27597
27598+# Check whether --with-libm was given.
27599+if test "${with_libm+set}" = set; then :
27600+ withval=$with_libm;
27601+if test "$withval" = no
27602+then LIBM=
27603+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBM empty" >&5
27604+$as_echo "force LIBM empty" >&6; }
27605+elif test "$withval" != yes
27606+then LIBM=$withval
27607+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBM=\"$withval\"" >&5
27608+$as_echo "set LIBM=\"$withval\"" >&6; }
27609+else as_fn_error $? "proper usage is --with-libm=STRING" "$LINENO" 5
27610+fi
27611 else
27612- wchar_h="no"
27613-
27614+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBM=\"$LIBM\"" >&5
27615+$as_echo "default LIBM=\"$LIBM\"" >&6; }
27616 fi
27617
27618
27619+# check for --with-libc=...
27620
27621-# determine wchar_t size
27622-if test "$wchar_h" = yes
27623-then
27624- { echo "$as_me:$LINENO: checking for wchar_t" >&5
27625-echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
27626-if test "${ac_cv_type_wchar_t+set}" = set; then
27627- echo $ECHO_N "(cached) $ECHO_C" >&6
27628-else
27629- cat >conftest.$ac_ext <<_ACEOF
27630-/* confdefs.h. */
27631-_ACEOF
27632-cat confdefs.h >>conftest.$ac_ext
27633-cat >>conftest.$ac_ext <<_ACEOF
27634-/* end confdefs.h. */
27635-#include <wchar.h>
27636+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libc=STRING" >&5
27637+$as_echo_n "checking for --with-libc=STRING... " >&6; }
27638
27639-typedef wchar_t ac__type_new_;
27640-int
27641-main ()
27642-{
27643-if ((ac__type_new_ *) 0)
27644- return 0;
27645-if (sizeof (ac__type_new_))
27646- return 0;
27647- ;
27648- return 0;
27649-}
27650-_ACEOF
27651-rm -f conftest.$ac_objext
27652-if { (ac_try="$ac_compile"
27653-case "(($ac_try" in
27654- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27655- *) ac_try_echo=$ac_try;;
27656-esac
27657-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27658- (eval "$ac_compile") 2>conftest.er1
27659- ac_status=$?
27660- grep -v '^ *+' conftest.er1 >conftest.err
27661- rm -f conftest.er1
27662- cat conftest.err >&5
27663- echo "$as_me:$LINENO: \$? = $ac_status" >&5
27664- (exit $ac_status); } && {
27665- test -z "$ac_c_werror_flag" ||
27666- test ! -s conftest.err
27667- } && test -s conftest.$ac_objext; then
27668- ac_cv_type_wchar_t=yes
27669+# Check whether --with-libc was given.
27670+if test "${with_libc+set}" = set; then :
27671+ withval=$with_libc;
27672+if test "$withval" = no
27673+then LIBC=
27674+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBC empty" >&5
27675+$as_echo "force LIBC empty" >&6; }
27676+elif test "$withval" != yes
27677+then LIBC=$withval
27678+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBC=\"$withval\"" >&5
27679+$as_echo "set LIBC=\"$withval\"" >&6; }
27680+else as_fn_error $? "proper usage is --with-libc=STRING" "$LINENO" 5
27681+fi
27682 else
27683- echo "$as_me: failed program was:" >&5
27684-sed 's/^/| /' conftest.$ac_ext >&5
27685-
27686- ac_cv_type_wchar_t=no
27687+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBC=\"$LIBC\"" >&5
27688+$as_echo "default LIBC=\"$LIBC\"" >&6; }
27689 fi
27690
27691-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27692-fi
27693-{ echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
27694-echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
27695
27696-# The cast to long int works around a bug in the HP C Compiler
27697-# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27698-# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27699-# This bug is HP SR number 8606223364.
27700-{ echo "$as_me:$LINENO: checking size of wchar_t" >&5
27701-echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
27702-if test "${ac_cv_sizeof_wchar_t+set}" = set; then
27703- echo $ECHO_N "(cached) $ECHO_C" >&6
27704-else
27705- if test "$cross_compiling" = yes; then
27706- # Depending upon the size, compute the lo and hi bounds.
27707-cat >conftest.$ac_ext <<_ACEOF
27708-/* confdefs.h. */
27709-_ACEOF
27710-cat confdefs.h >>conftest.$ac_ext
27711-cat >>conftest.$ac_ext <<_ACEOF
27712-/* end confdefs.h. */
27713-#include <wchar.h>
27714+# ************************************
27715+# * Check for mathematical functions *
27716+# ************************************
27717
27718- typedef wchar_t ac__type_sizeof_;
27719-int
27720-main ()
27721-{
27722-static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
27723-test_array [0] = 0
27724+LIBS_SAVE=$LIBS
27725+LIBS="$LIBS $LIBM"
27726
27727- ;
27728- return 0;
27729-}
27730-_ACEOF
27731-rm -f conftest.$ac_objext
27732-if { (ac_try="$ac_compile"
27733-case "(($ac_try" in
27734- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27735- *) ac_try_echo=$ac_try;;
27736-esac
27737-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27738- (eval "$ac_compile") 2>conftest.er1
27739- ac_status=$?
27740- grep -v '^ *+' conftest.er1 >conftest.err
27741- rm -f conftest.er1
27742- cat conftest.err >&5
27743- echo "$as_me:$LINENO: \$? = $ac_status" >&5
27744- (exit $ac_status); } && {
27745- test -z "$ac_c_werror_flag" ||
27746- test ! -s conftest.err
27747- } && test -s conftest.$ac_objext; then
27748- ac_lo=0 ac_mid=0
27749- while :; do
27750- cat >conftest.$ac_ext <<_ACEOF
27751-/* confdefs.h. */
27752-_ACEOF
27753-cat confdefs.h >>conftest.$ac_ext
27754-cat >>conftest.$ac_ext <<_ACEOF
27755-/* end confdefs.h. */
27756-#include <wchar.h>
27757+# On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of
27758+# -0. on some architectures.
27759+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tanh preserves the sign of zero" >&5
27760+$as_echo_n "checking whether tanh preserves the sign of zero... " >&6; }
27761+if ${ac_cv_tanh_preserves_zero_sign+:} false; then :
27762+ $as_echo_n "(cached) " >&6
27763+else
27764
27765- typedef wchar_t ac__type_sizeof_;
27766-int
27767-main ()
27768-{
27769-static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27770-test_array [0] = 0
27771+if test "$cross_compiling" = yes; then :
27772+ ac_cv_tanh_preserves_zero_sign=no
27773+else
27774+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27775+/* end confdefs.h. */
27776
27777- ;
27778- return 0;
27779-}
27780-_ACEOF
27781-rm -f conftest.$ac_objext
27782-if { (ac_try="$ac_compile"
27783-case "(($ac_try" in
27784- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27785- *) ac_try_echo=$ac_try;;
27786-esac
27787-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27788- (eval "$ac_compile") 2>conftest.er1
27789- ac_status=$?
27790- grep -v '^ *+' conftest.er1 >conftest.err
27791- rm -f conftest.er1
27792- cat conftest.err >&5
27793- echo "$as_me:$LINENO: \$? = $ac_status" >&5
27794- (exit $ac_status); } && {
27795- test -z "$ac_c_werror_flag" ||
27796- test ! -s conftest.err
27797- } && test -s conftest.$ac_objext; then
27798- ac_hi=$ac_mid; break
27799+#include <math.h>
27800+#include <stdlib.h>
27801+int main() {
27802+ /* return 0 if either negative zeros don't exist
27803+ on this platform or if negative zeros exist
27804+ and tanh(-0.) == -0. */
27805+ if (atan2(0., -1.) == atan2(-0., -1.) ||
27806+ atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0);
27807+ else exit(1);
27808+}
27809+
27810+_ACEOF
27811+if ac_fn_c_try_run "$LINENO"; then :
27812+ ac_cv_tanh_preserves_zero_sign=yes
27813 else
27814- echo "$as_me: failed program was:" >&5
27815-sed 's/^/| /' conftest.$ac_ext >&5
27816+ ac_cv_tanh_preserves_zero_sign=no
27817+fi
27818+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27819+ conftest.$ac_objext conftest.beam conftest.$ac_ext
27820+fi
27821
27822- ac_lo=`expr $ac_mid + 1`
27823- if test $ac_lo -le $ac_mid; then
27824- ac_lo= ac_hi=
27825- break
27826- fi
27827- ac_mid=`expr 2 '*' $ac_mid + 1`
27828 fi
27829
27830-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27831- done
27832-else
27833- echo "$as_me: failed program was:" >&5
27834-sed 's/^/| /' conftest.$ac_ext >&5
27835+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tanh_preserves_zero_sign" >&5
27836+$as_echo "$ac_cv_tanh_preserves_zero_sign" >&6; }
27837+if test "$ac_cv_tanh_preserves_zero_sign" = yes
27838+then
27839
27840- cat >conftest.$ac_ext <<_ACEOF
27841-/* confdefs.h. */
27842-_ACEOF
27843-cat confdefs.h >>conftest.$ac_ext
27844-cat >>conftest.$ac_ext <<_ACEOF
27845-/* end confdefs.h. */
27846-#include <wchar.h>
27847+$as_echo "#define TANH_PRESERVES_ZERO_SIGN 1" >>confdefs.h
27848
27849- typedef wchar_t ac__type_sizeof_;
27850-int
27851-main ()
27852-{
27853-static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
27854-test_array [0] = 0
27855+fi
27856
27857- ;
27858- return 0;
27859-}
27860-_ACEOF
27861-rm -f conftest.$ac_objext
27862-if { (ac_try="$ac_compile"
27863-case "(($ac_try" in
27864- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27865- *) ac_try_echo=$ac_try;;
27866+ac_fn_c_check_func "$LINENO" "hypot" "ac_cv_func_hypot"
27867+if test "x$ac_cv_func_hypot" = xyes; then :
27868+ $as_echo "#define HAVE_HYPOT 1" >>confdefs.h
27869+
27870+else
27871+ case " $LIBOBJS " in
27872+ *" hypot.$ac_objext "* ) ;;
27873+ *) LIBOBJS="$LIBOBJS hypot.$ac_objext"
27874+ ;;
27875 esac
27876-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27877- (eval "$ac_compile") 2>conftest.er1
27878- ac_status=$?
27879- grep -v '^ *+' conftest.er1 >conftest.err
27880- rm -f conftest.er1
27881- cat conftest.err >&5
27882- echo "$as_me:$LINENO: \$? = $ac_status" >&5
27883- (exit $ac_status); } && {
27884- test -z "$ac_c_werror_flag" ||
27885- test ! -s conftest.err
27886- } && test -s conftest.$ac_objext; then
27887- ac_hi=-1 ac_mid=-1
27888- while :; do
27889- cat >conftest.$ac_ext <<_ACEOF
27890-/* confdefs.h. */
27891-_ACEOF
27892-cat confdefs.h >>conftest.$ac_ext
27893-cat >>conftest.$ac_ext <<_ACEOF
27894-/* end confdefs.h. */
27895-#include <wchar.h>
27896
27897- typedef wchar_t ac__type_sizeof_;
27898-int
27899-main ()
27900-{
27901-static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
27902-test_array [0] = 0
27903+fi
27904
27905- ;
27906- return 0;
27907-}
27908+
27909+
27910+for ac_func in acosh asinh atanh copysign expm1 finite isinf isnan log1p
27911+do :
27912+ as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27913+ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27914+if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27915+ cat >>confdefs.h <<_ACEOF
27916+#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27917 _ACEOF
27918-rm -f conftest.$ac_objext
27919-if { (ac_try="$ac_compile"
27920-case "(($ac_try" in
27921- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27922- *) ac_try_echo=$ac_try;;
27923-esac
27924-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27925- (eval "$ac_compile") 2>conftest.er1
27926- ac_status=$?
27927- grep -v '^ *+' conftest.er1 >conftest.err
27928- rm -f conftest.er1
27929- cat conftest.err >&5
27930- echo "$as_me:$LINENO: \$? = $ac_status" >&5
27931- (exit $ac_status); } && {
27932- test -z "$ac_c_werror_flag" ||
27933- test ! -s conftest.err
27934- } && test -s conftest.$ac_objext; then
27935- ac_lo=$ac_mid; break
27936-else
27937- echo "$as_me: failed program was:" >&5
27938-sed 's/^/| /' conftest.$ac_ext >&5
27939
27940- ac_hi=`expr '(' $ac_mid ')' - 1`
27941- if test $ac_mid -le $ac_hi; then
27942- ac_lo= ac_hi=
27943- break
27944- fi
27945- ac_mid=`expr 2 '*' $ac_mid`
27946 fi
27947+done
27948
27949-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27950- done
27951-else
27952- echo "$as_me: failed program was:" >&5
27953-sed 's/^/| /' conftest.$ac_ext >&5
27954
27955- ac_lo= ac_hi=
27956-fi
27957+LIBS=$LIBS_SAVE
27958
27959-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27960-fi
27961+# check for wchar.h
27962+ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
27963+if test "x$ac_cv_header_wchar_h" = xyes; then :
27964
27965-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27966-# Binary search between lo and hi bounds.
27967-while test "x$ac_lo" != "x$ac_hi"; do
27968- ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27969- cat >conftest.$ac_ext <<_ACEOF
27970-/* confdefs.h. */
27971-_ACEOF
27972-cat confdefs.h >>conftest.$ac_ext
27973-cat >>conftest.$ac_ext <<_ACEOF
27974-/* end confdefs.h. */
27975-#include <wchar.h>
27976
27977- typedef wchar_t ac__type_sizeof_;
27978-int
27979-main ()
27980-{
27981-static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27982-test_array [0] = 0
27983+$as_echo "#define HAVE_WCHAR_H 1" >>confdefs.h
27984+
27985+ wchar_h="yes"
27986
27987- ;
27988- return 0;
27989-}
27990-_ACEOF
27991-rm -f conftest.$ac_objext
27992-if { (ac_try="$ac_compile"
27993-case "(($ac_try" in
27994- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27995- *) ac_try_echo=$ac_try;;
27996-esac
27997-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27998- (eval "$ac_compile") 2>conftest.er1
27999- ac_status=$?
28000- grep -v '^ *+' conftest.er1 >conftest.err
28001- rm -f conftest.er1
28002- cat conftest.err >&5
28003- echo "$as_me:$LINENO: \$? = $ac_status" >&5
28004- (exit $ac_status); } && {
28005- test -z "$ac_c_werror_flag" ||
28006- test ! -s conftest.err
28007- } && test -s conftest.$ac_objext; then
28008- ac_hi=$ac_mid
28009 else
28010- echo "$as_me: failed program was:" >&5
28011-sed 's/^/| /' conftest.$ac_ext >&5
28012+ wchar_h="no"
28013
28014- ac_lo=`expr '(' $ac_mid ')' + 1`
28015 fi
28016
28017-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28018-done
28019-case $ac_lo in
28020-?*) ac_cv_sizeof_wchar_t=$ac_lo;;
28021-'') if test "$ac_cv_type_wchar_t" = yes; then
28022- { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
28023-See \`config.log' for more details." >&5
28024-echo "$as_me: error: cannot compute sizeof (wchar_t)
28025-See \`config.log' for more details." >&2;}
28026- { (exit 77); exit 77; }; }
28027- else
28028- ac_cv_sizeof_wchar_t=0
28029- fi ;;
28030-esac
28031-else
28032- cat >conftest.$ac_ext <<_ACEOF
28033-/* confdefs.h. */
28034-_ACEOF
28035-cat confdefs.h >>conftest.$ac_ext
28036-cat >>conftest.$ac_ext <<_ACEOF
28037-/* end confdefs.h. */
28038-#include <wchar.h>
28039
28040- typedef wchar_t ac__type_sizeof_;
28041-static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28042-static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28043-#include <stdio.h>
28044-#include <stdlib.h>
28045-int
28046-main ()
28047-{
28048
28049- FILE *f = fopen ("conftest.val", "w");
28050- if (! f)
28051- return 1;
28052- if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28053- {
28054- long int i = longval ();
28055- if (i != ((long int) (sizeof (ac__type_sizeof_))))
28056- return 1;
28057- fprintf (f, "%ld\n", i);
28058- }
28059- else
28060- {
28061- unsigned long int i = ulongval ();
28062- if (i != ((long int) (sizeof (ac__type_sizeof_))))
28063- return 1;
28064- fprintf (f, "%lu\n", i);
28065- }
28066- return ferror (f) || fclose (f) != 0;
28067+# determine wchar_t size
28068+if test "$wchar_h" = yes
28069+then
28070+ # The cast to long int works around a bug in the HP C Compiler
28071+# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28072+# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28073+# This bug is HP SR number 8606223364.
28074+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5
28075+$as_echo_n "checking size of wchar_t... " >&6; }
28076+if ${ac_cv_sizeof_wchar_t+:} false; then :
28077+ $as_echo_n "(cached) " >&6
28078+else
28079+ if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" "#include <wchar.h>
28080+"; then :
28081
28082- ;
28083- return 0;
28084-}
28085-_ACEOF
28086-rm -f conftest$ac_exeext
28087-if { (ac_try="$ac_link"
28088-case "(($ac_try" in
28089- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28090- *) ac_try_echo=$ac_try;;
28091-esac
28092-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28093- (eval "$ac_link") 2>&5
28094- ac_status=$?
28095- echo "$as_me:$LINENO: \$? = $ac_status" >&5
28096- (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28097- { (case "(($ac_try" in
28098- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28099- *) ac_try_echo=$ac_try;;
28100-esac
28101-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28102- (eval "$ac_try") 2>&5
28103- ac_status=$?
28104- echo "$as_me:$LINENO: \$? = $ac_status" >&5
28105- (exit $ac_status); }; }; then
28106- ac_cv_sizeof_wchar_t=`cat conftest.val`
28107 else
28108- echo "$as_me: program exited with status $ac_status" >&5
28109-echo "$as_me: failed program was:" >&5
28110-sed 's/^/| /' conftest.$ac_ext >&5
28111-
28112-( exit $ac_status )
28113-if test "$ac_cv_type_wchar_t" = yes; then
28114- { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
28115-See \`config.log' for more details." >&5
28116-echo "$as_me: error: cannot compute sizeof (wchar_t)
28117-See \`config.log' for more details." >&2;}
28118- { (exit 77); exit 77; }; }
28119+ if test "$ac_cv_type_wchar_t" = yes; then
28120+ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28121+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28122+as_fn_error 77 "cannot compute sizeof (wchar_t)
28123+See \`config.log' for more details" "$LINENO" 5; }
28124 else
28125 ac_cv_sizeof_wchar_t=0
28126 fi
28127 fi
28128-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28129-fi
28130-rm -f conftest.val
28131+
28132 fi
28133-{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
28134-echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
28135+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5
28136+$as_echo "$ac_cv_sizeof_wchar_t" >&6; }
28137
28138
28139
28140@@ -22364,14 +11704,10 @@ _ACEOF
28141
28142 fi
28143
28144-{ echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
28145-echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6; }
28146+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for UCS-4 tcl" >&5
28147+$as_echo_n "checking for UCS-4 tcl... " >&6; }
28148 have_ucs4_tcl=no
28149-cat >conftest.$ac_ext <<_ACEOF
28150-/* confdefs.h. */
28151-_ACEOF
28152-cat confdefs.h >>conftest.$ac_ext
28153-cat >>conftest.$ac_ext <<_ACEOF
28154+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28155 /* end confdefs.h. */
28156
28157 #include <tcl.h>
28158@@ -22386,60 +11722,32 @@ main ()
28159 return 0;
28160 }
28161 _ACEOF
28162-rm -f conftest.$ac_objext
28163-if { (ac_try="$ac_compile"
28164-case "(($ac_try" in
28165- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28166- *) ac_try_echo=$ac_try;;
28167-esac
28168-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28169- (eval "$ac_compile") 2>conftest.er1
28170- ac_status=$?
28171- grep -v '^ *+' conftest.er1 >conftest.err
28172- rm -f conftest.er1
28173- cat conftest.err >&5
28174- echo "$as_me:$LINENO: \$? = $ac_status" >&5
28175- (exit $ac_status); } && {
28176- test -z "$ac_c_werror_flag" ||
28177- test ! -s conftest.err
28178- } && test -s conftest.$ac_objext; then
28179+if ac_fn_c_try_compile "$LINENO"; then :
28180
28181
28182-cat >>confdefs.h <<\_ACEOF
28183-#define HAVE_UCS4_TCL 1
28184-_ACEOF
28185+$as_echo "#define HAVE_UCS4_TCL 1" >>confdefs.h
28186
28187 have_ucs4_tcl=yes
28188
28189-else
28190- echo "$as_me: failed program was:" >&5
28191-sed 's/^/| /' conftest.$ac_ext >&5
28192-
28193-
28194 fi
28195-
28196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28197-{ echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
28198-echo "${ECHO_T}$have_ucs4_tcl" >&6; }
28199+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ucs4_tcl" >&5
28200+$as_echo "$have_ucs4_tcl" >&6; }
28201
28202 # check whether wchar_t is signed or not
28203 if test "$wchar_h" = yes
28204 then
28205 # check whether wchar_t is signed or not
28206- { echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
28207-echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6; }
28208- if test "${ac_cv_wchar_t_signed+set}" = set; then
28209- echo $ECHO_N "(cached) $ECHO_C" >&6
28210+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wchar_t is signed" >&5
28211+$as_echo_n "checking whether wchar_t is signed... " >&6; }
28212+ if ${ac_cv_wchar_t_signed+:} false; then :
28213+ $as_echo_n "(cached) " >&6
28214 else
28215
28216- if test "$cross_compiling" = yes; then
28217+ if test "$cross_compiling" = yes; then :
28218 ac_cv_wchar_t_signed=yes
28219 else
28220- cat >conftest.$ac_ext <<_ACEOF
28221-/* confdefs.h. */
28222-_ACEOF
28223-cat confdefs.h >>conftest.$ac_ext
28224-cat >>conftest.$ac_ext <<_ACEOF
28225+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28226 /* end confdefs.h. */
28227
28228 #include <wchar.h>
28229@@ -22450,49 +11758,25 @@ cat >>conftest.$ac_ext <<_ACEOF
28230 }
28231
28232 _ACEOF
28233-rm -f conftest$ac_exeext
28234-if { (ac_try="$ac_link"
28235-case "(($ac_try" in
28236- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28237- *) ac_try_echo=$ac_try;;
28238-esac
28239-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28240- (eval "$ac_link") 2>&5
28241- ac_status=$?
28242- echo "$as_me:$LINENO: \$? = $ac_status" >&5
28243- (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28244- { (case "(($ac_try" in
28245- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28246- *) ac_try_echo=$ac_try;;
28247-esac
28248-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28249- (eval "$ac_try") 2>&5
28250- ac_status=$?
28251- echo "$as_me:$LINENO: \$? = $ac_status" >&5
28252- (exit $ac_status); }; }; then
28253+if ac_fn_c_try_run "$LINENO"; then :
28254 ac_cv_wchar_t_signed=yes
28255 else
28256- echo "$as_me: program exited with status $ac_status" >&5
28257-echo "$as_me: failed program was:" >&5
28258-sed 's/^/| /' conftest.$ac_ext >&5
28259-
28260-( exit $ac_status )
28261-ac_cv_wchar_t_signed=no
28262+ ac_cv_wchar_t_signed=no
28263 fi
28264-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28265+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28266+ conftest.$ac_objext conftest.beam conftest.$ac_ext
28267 fi
28268
28269-
28270 fi
28271
28272- { echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
28273-echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6; }
28274+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_wchar_t_signed" >&5
28275+$as_echo "$ac_cv_wchar_t_signed" >&6; }
28276 fi
28277
28278-{ echo "$as_me:$LINENO: checking what type to use for unicode" >&5
28279-echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6; }
28280+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what type to use for unicode" >&5
28281+$as_echo_n "checking what type to use for unicode... " >&6; }
28282 # Check whether --enable-unicode was given.
28283-if test "${enable_unicode+set}" = set; then
28284+if test "${enable_unicode+set}" = set; then :
28285 enableval=$enable_unicode;
28286 else
28287 enable_unicode=yes
28288@@ -22511,18 +11795,13 @@ then
28289 fi
28290
28291
28292-
28293 case "$enable_unicode" in
28294 ucs2) unicode_size="2"
28295- cat >>confdefs.h <<\_ACEOF
28296-#define Py_UNICODE_SIZE 2
28297-_ACEOF
28298+ $as_echo "#define Py_UNICODE_SIZE 2" >>confdefs.h
28299
28300 ;;
28301 ucs4) unicode_size="4"
28302- cat >>confdefs.h <<\_ACEOF
28303-#define Py_UNICODE_SIZE 4
28304-_ACEOF
28305+ $as_echo "#define Py_UNICODE_SIZE 4" >>confdefs.h
28306
28307 ;;
28308 esac
28309@@ -22530,18 +11809,15 @@ esac
28310
28311
28312
28313-
28314 if test "$enable_unicode" = "no"
28315 then
28316 UNICODE_OBJS=""
28317- { echo "$as_me:$LINENO: result: not used" >&5
28318-echo "${ECHO_T}not used" >&6; }
28319+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: not used" >&5
28320+$as_echo "not used" >&6; }
28321 else
28322 UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o"
28323
28324-cat >>confdefs.h <<\_ACEOF
28325-#define Py_USING_UNICODE 1
28326-_ACEOF
28327+$as_echo "#define Py_USING_UNICODE 1" >>confdefs.h
28328
28329
28330 # wchar_t is only usable if it maps to an unsigned type
28331@@ -22550,289 +11826,265 @@ _ACEOF
28332 then
28333 PY_UNICODE_TYPE="wchar_t"
28334
28335-cat >>confdefs.h <<\_ACEOF
28336-#define HAVE_USABLE_WCHAR_T 1
28337-_ACEOF
28338+$as_echo "#define HAVE_USABLE_WCHAR_T 1" >>confdefs.h
28339
28340- cat >>confdefs.h <<\_ACEOF
28341-#define PY_UNICODE_TYPE wchar_t
28342-_ACEOF
28343+ $as_echo "#define PY_UNICODE_TYPE wchar_t" >>confdefs.h
28344
28345 elif test "$ac_cv_sizeof_short" = "$unicode_size"
28346 then
28347 PY_UNICODE_TYPE="unsigned short"
28348- cat >>confdefs.h <<\_ACEOF
28349-#define PY_UNICODE_TYPE unsigned short
28350-_ACEOF
28351+ $as_echo "#define PY_UNICODE_TYPE unsigned short" >>confdefs.h
28352
28353 elif test "$ac_cv_sizeof_long" = "$unicode_size"
28354 then
28355 PY_UNICODE_TYPE="unsigned long"
28356- cat >>confdefs.h <<\_ACEOF
28357-#define PY_UNICODE_TYPE unsigned long
28358-_ACEOF
28359+ $as_echo "#define PY_UNICODE_TYPE unsigned long" >>confdefs.h
28360
28361 else
28362 PY_UNICODE_TYPE="no type found"
28363 fi
28364- { echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
28365-echo "${ECHO_T}$PY_UNICODE_TYPE" >&6; }
28366+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PY_UNICODE_TYPE" >&5
28367+$as_echo "$PY_UNICODE_TYPE" >&6; }
28368 fi
28369
28370 # check for endianness
28371-{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
28372-echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
28373-if test "${ac_cv_c_bigendian+set}" = set; then
28374- echo $ECHO_N "(cached) $ECHO_C" >&6
28375-else
28376- # See if sys/param.h defines the BYTE_ORDER macro.
28377-cat >conftest.$ac_ext <<_ACEOF
28378-/* confdefs.h. */
28379-_ACEOF
28380-cat confdefs.h >>conftest.$ac_ext
28381-cat >>conftest.$ac_ext <<_ACEOF
28382+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
28383+$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
28384+if ${ac_cv_c_bigendian+:} false; then :
28385+ $as_echo_n "(cached) " >&6
28386+else
28387+ ac_cv_c_bigendian=unknown
28388+ # See if we're dealing with a universal compiler.
28389+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28390+/* end confdefs.h. */
28391+#ifndef __APPLE_CC__
28392+ not a universal capable compiler
28393+ #endif
28394+ typedef int dummy;
28395+
28396+_ACEOF
28397+if ac_fn_c_try_compile "$LINENO"; then :
28398+
28399+ # Check for potential -arch flags. It is not universal unless
28400+ # there are at least two -arch flags with different values.
28401+ ac_arch=
28402+ ac_prev=
28403+ for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
28404+ if test -n "$ac_prev"; then
28405+ case $ac_word in
28406+ i?86 | x86_64 | ppc | ppc64)
28407+ if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
28408+ ac_arch=$ac_word
28409+ else
28410+ ac_cv_c_bigendian=universal
28411+ break
28412+ fi
28413+ ;;
28414+ esac
28415+ ac_prev=
28416+ elif test "x$ac_word" = "x-arch"; then
28417+ ac_prev=arch
28418+ fi
28419+ done
28420+fi
28421+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28422+ if test $ac_cv_c_bigendian = unknown; then
28423+ # See if sys/param.h defines the BYTE_ORDER macro.
28424+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28425 /* end confdefs.h. */
28426 #include <sys/types.h>
28427-#include <sys/param.h>
28428+ #include <sys/param.h>
28429
28430 int
28431 main ()
28432 {
28433-#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
28434- && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
28435- bogus endian macros
28436-#endif
28437+#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
28438+ && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
28439+ && LITTLE_ENDIAN)
28440+ bogus endian macros
28441+ #endif
28442
28443 ;
28444 return 0;
28445 }
28446 _ACEOF
28447-rm -f conftest.$ac_objext
28448-if { (ac_try="$ac_compile"
28449-case "(($ac_try" in
28450- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28451- *) ac_try_echo=$ac_try;;
28452-esac
28453-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28454- (eval "$ac_compile") 2>conftest.er1
28455- ac_status=$?
28456- grep -v '^ *+' conftest.er1 >conftest.err
28457- rm -f conftest.er1
28458- cat conftest.err >&5
28459- echo "$as_me:$LINENO: \$? = $ac_status" >&5
28460- (exit $ac_status); } && {
28461- test -z "$ac_c_werror_flag" ||
28462- test ! -s conftest.err
28463- } && test -s conftest.$ac_objext; then
28464+if ac_fn_c_try_compile "$LINENO"; then :
28465 # It does; now see whether it defined to BIG_ENDIAN or not.
28466-cat >conftest.$ac_ext <<_ACEOF
28467-/* confdefs.h. */
28468-_ACEOF
28469-cat confdefs.h >>conftest.$ac_ext
28470-cat >>conftest.$ac_ext <<_ACEOF
28471+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28472 /* end confdefs.h. */
28473 #include <sys/types.h>
28474-#include <sys/param.h>
28475+ #include <sys/param.h>
28476
28477 int
28478 main ()
28479 {
28480 #if BYTE_ORDER != BIG_ENDIAN
28481- not big endian
28482-#endif
28483+ not big endian
28484+ #endif
28485
28486 ;
28487 return 0;
28488 }
28489 _ACEOF
28490-rm -f conftest.$ac_objext
28491-if { (ac_try="$ac_compile"
28492-case "(($ac_try" in
28493- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28494- *) ac_try_echo=$ac_try;;
28495-esac
28496-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28497- (eval "$ac_compile") 2>conftest.er1
28498- ac_status=$?
28499- grep -v '^ *+' conftest.er1 >conftest.err
28500- rm -f conftest.er1
28501- cat conftest.err >&5
28502- echo "$as_me:$LINENO: \$? = $ac_status" >&5
28503- (exit $ac_status); } && {
28504- test -z "$ac_c_werror_flag" ||
28505- test ! -s conftest.err
28506- } && test -s conftest.$ac_objext; then
28507+if ac_fn_c_try_compile "$LINENO"; then :
28508 ac_cv_c_bigendian=yes
28509 else
28510- echo "$as_me: failed program was:" >&5
28511-sed 's/^/| /' conftest.$ac_ext >&5
28512-
28513- ac_cv_c_bigendian=no
28514+ ac_cv_c_bigendian=no
28515 fi
28516-
28517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28518-else
28519- echo "$as_me: failed program was:" >&5
28520-sed 's/^/| /' conftest.$ac_ext >&5
28521+fi
28522+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28523+ fi
28524+ if test $ac_cv_c_bigendian = unknown; then
28525+ # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
28526+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28527+/* end confdefs.h. */
28528+#include <limits.h>
28529
28530- # It does not; compile a test program.
28531-if test "$cross_compiling" = yes; then
28532- # try to guess the endianness by grepping values into an object file
28533- ac_cv_c_bigendian=unknown
28534- cat >conftest.$ac_ext <<_ACEOF
28535-/* confdefs.h. */
28536+int
28537+main ()
28538+{
28539+#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
28540+ bogus endian macros
28541+ #endif
28542+
28543+ ;
28544+ return 0;
28545+}
28546+_ACEOF
28547+if ac_fn_c_try_compile "$LINENO"; then :
28548+ # It does; now see whether it defined to _BIG_ENDIAN or not.
28549+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28550+/* end confdefs.h. */
28551+#include <limits.h>
28552+
28553+int
28554+main ()
28555+{
28556+#ifndef _BIG_ENDIAN
28557+ not big endian
28558+ #endif
28559+
28560+ ;
28561+ return 0;
28562+}
28563 _ACEOF
28564-cat confdefs.h >>conftest.$ac_ext
28565-cat >>conftest.$ac_ext <<_ACEOF
28566+if ac_fn_c_try_compile "$LINENO"; then :
28567+ ac_cv_c_bigendian=yes
28568+else
28569+ ac_cv_c_bigendian=no
28570+fi
28571+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28572+fi
28573+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28574+ fi
28575+ if test $ac_cv_c_bigendian = unknown; then
28576+ # Compile a test program.
28577+ if test "$cross_compiling" = yes; then :
28578+ # Try to guess by grepping values from an object file.
28579+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28580 /* end confdefs.h. */
28581-short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
28582-short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
28583-void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
28584-short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
28585-short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
28586-void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
28587+short int ascii_mm[] =
28588+ { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
28589+ short int ascii_ii[] =
28590+ { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
28591+ int use_ascii (int i) {
28592+ return ascii_mm[i] + ascii_ii[i];
28593+ }
28594+ short int ebcdic_ii[] =
28595+ { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
28596+ short int ebcdic_mm[] =
28597+ { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
28598+ int use_ebcdic (int i) {
28599+ return ebcdic_mm[i] + ebcdic_ii[i];
28600+ }
28601+ extern int foo;
28602+
28603 int
28604 main ()
28605 {
28606- _ascii (); _ebcdic ();
28607+return use_ascii (foo) == use_ebcdic (foo);
28608 ;
28609 return 0;
28610 }
28611 _ACEOF
28612-rm -f conftest.$ac_objext
28613-if { (ac_try="$ac_compile"
28614-case "(($ac_try" in
28615- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28616- *) ac_try_echo=$ac_try;;
28617-esac
28618-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28619- (eval "$ac_compile") 2>conftest.er1
28620- ac_status=$?
28621- grep -v '^ *+' conftest.er1 >conftest.err
28622- rm -f conftest.er1
28623- cat conftest.err >&5
28624- echo "$as_me:$LINENO: \$? = $ac_status" >&5
28625- (exit $ac_status); } && {
28626- test -z "$ac_c_werror_flag" ||
28627- test ! -s conftest.err
28628- } && test -s conftest.$ac_objext; then
28629- if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
28630- ac_cv_c_bigendian=yes
28631-fi
28632-if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
28633- if test "$ac_cv_c_bigendian" = unknown; then
28634- ac_cv_c_bigendian=no
28635- else
28636- # finding both strings is unlikely to happen, but who knows?
28637- ac_cv_c_bigendian=unknown
28638- fi
28639-fi
28640-else
28641- echo "$as_me: failed program was:" >&5
28642-sed 's/^/| /' conftest.$ac_ext >&5
28643-
28644-
28645+if ac_fn_c_try_compile "$LINENO"; then :
28646+ if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
28647+ ac_cv_c_bigendian=yes
28648+ fi
28649+ if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
28650+ if test "$ac_cv_c_bigendian" = unknown; then
28651+ ac_cv_c_bigendian=no
28652+ else
28653+ # finding both strings is unlikely to happen, but who knows?
28654+ ac_cv_c_bigendian=unknown
28655+ fi
28656+ fi
28657 fi
28658-
28659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28660 else
28661- cat >conftest.$ac_ext <<_ACEOF
28662-/* confdefs.h. */
28663-_ACEOF
28664-cat confdefs.h >>conftest.$ac_ext
28665-cat >>conftest.$ac_ext <<_ACEOF
28666+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28667 /* end confdefs.h. */
28668 $ac_includes_default
28669 int
28670 main ()
28671 {
28672
28673- /* Are we little or big endian? From Harbison&Steele. */
28674- union
28675- {
28676- long int l;
28677- char c[sizeof (long int)];
28678- } u;
28679- u.l = 1;
28680- return u.c[sizeof (long int) - 1] == 1;
28681+ /* Are we little or big endian? From Harbison&Steele. */
28682+ union
28683+ {
28684+ long int l;
28685+ char c[sizeof (long int)];
28686+ } u;
28687+ u.l = 1;
28688+ return u.c[sizeof (long int) - 1] == 1;
28689
28690 ;
28691 return 0;
28692 }
28693 _ACEOF
28694-rm -f conftest$ac_exeext
28695-if { (ac_try="$ac_link"
28696-case "(($ac_try" in
28697- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28698- *) ac_try_echo=$ac_try;;
28699-esac
28700-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28701- (eval "$ac_link") 2>&5
28702- ac_status=$?
28703- echo "$as_me:$LINENO: \$? = $ac_status" >&5
28704- (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28705- { (case "(($ac_try" in
28706- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28707- *) ac_try_echo=$ac_try;;
28708-esac
28709-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28710- (eval "$ac_try") 2>&5
28711- ac_status=$?
28712- echo "$as_me:$LINENO: \$? = $ac_status" >&5
28713- (exit $ac_status); }; }; then
28714+if ac_fn_c_try_run "$LINENO"; then :
28715 ac_cv_c_bigendian=no
28716 else
28717- echo "$as_me: program exited with status $ac_status" >&5
28718-echo "$as_me: failed program was:" >&5
28719-sed 's/^/| /' conftest.$ac_ext >&5
28720-
28721-( exit $ac_status )
28722-ac_cv_c_bigendian=yes
28723+ ac_cv_c_bigendian=yes
28724 fi
28725-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28726+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28727+ conftest.$ac_objext conftest.beam conftest.$ac_ext
28728 fi
28729
28730-
28731+ fi
28732 fi
28733+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
28734+$as_echo "$ac_cv_c_bigendian" >&6; }
28735+ case $ac_cv_c_bigendian in #(
28736+ yes)
28737+ $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
28738+;; #(
28739+ no)
28740+ ;; #(
28741+ universal)
28742
28743-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28744-fi
28745-{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
28746-echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
28747-case $ac_cv_c_bigendian in
28748- yes)
28749+$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
28750
28751-cat >>confdefs.h <<\_ACEOF
28752-#define WORDS_BIGENDIAN 1
28753-_ACEOF
28754- ;;
28755- no)
28756- ;;
28757- *)
28758- { { echo "$as_me:$LINENO: error: unknown endianness
28759-presetting ac_cv_c_bigendian=no (or yes) will help" >&5
28760-echo "$as_me: error: unknown endianness
28761-presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
28762- { (exit 1); exit 1; }; } ;;
28763-esac
28764+ ;; #(
28765+ *)
28766+ as_fn_error $? "unknown endianness
28767+ presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
28768+ esac
28769
28770
28771 # Check whether right shifting a negative integer extends the sign bit
28772 # or fills with zeros (like the Cray J90, according to Tim Peters).
28773-{ echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
28774-echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6; }
28775-if test "${ac_cv_rshift_extends_sign+set}" = set; then
28776- echo $ECHO_N "(cached) $ECHO_C" >&6
28777+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether right shift extends the sign bit" >&5
28778+$as_echo_n "checking whether right shift extends the sign bit... " >&6; }
28779+if ${ac_cv_rshift_extends_sign+:} false; then :
28780+ $as_echo_n "(cached) " >&6
28781 else
28782
28783-if test "$cross_compiling" = yes; then
28784+if test "$cross_compiling" = yes; then :
28785 ac_cv_rshift_extends_sign=yes
28786 else
28787- cat >conftest.$ac_ext <<_ACEOF
28788-/* confdefs.h. */
28789-_ACEOF
28790-cat confdefs.h >>conftest.$ac_ext
28791-cat >>conftest.$ac_ext <<_ACEOF
28792+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28793 /* end confdefs.h. */
28794
28795 int main()
28796@@ -22841,64 +12093,34 @@ int main()
28797 }
28798
28799 _ACEOF
28800-rm -f conftest$ac_exeext
28801-if { (ac_try="$ac_link"
28802-case "(($ac_try" in
28803- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28804- *) ac_try_echo=$ac_try;;
28805-esac
28806-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28807- (eval "$ac_link") 2>&5
28808- ac_status=$?
28809- echo "$as_me:$LINENO: \$? = $ac_status" >&5
28810- (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28811- { (case "(($ac_try" in
28812- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28813- *) ac_try_echo=$ac_try;;
28814-esac
28815-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28816- (eval "$ac_try") 2>&5
28817- ac_status=$?
28818- echo "$as_me:$LINENO: \$? = $ac_status" >&5
28819- (exit $ac_status); }; }; then
28820+if ac_fn_c_try_run "$LINENO"; then :
28821 ac_cv_rshift_extends_sign=yes
28822 else
28823- echo "$as_me: program exited with status $ac_status" >&5
28824-echo "$as_me: failed program was:" >&5
28825-sed 's/^/| /' conftest.$ac_ext >&5
28826-
28827-( exit $ac_status )
28828-ac_cv_rshift_extends_sign=no
28829+ ac_cv_rshift_extends_sign=no
28830 fi
28831-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28832+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28833+ conftest.$ac_objext conftest.beam conftest.$ac_ext
28834 fi
28835
28836-
28837 fi
28838
28839-{ echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
28840-echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6; }
28841+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rshift_extends_sign" >&5
28842+$as_echo "$ac_cv_rshift_extends_sign" >&6; }
28843 if test "$ac_cv_rshift_extends_sign" = no
28844 then
28845
28846-cat >>confdefs.h <<\_ACEOF
28847-#define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
28848-_ACEOF
28849+$as_echo "#define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1" >>confdefs.h
28850
28851 fi
28852
28853 # check for getc_unlocked and related locking functions
28854-{ echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
28855-echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6; }
28856-if test "${ac_cv_have_getc_unlocked+set}" = set; then
28857- echo $ECHO_N "(cached) $ECHO_C" >&6
28858+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getc_unlocked() and friends" >&5
28859+$as_echo_n "checking for getc_unlocked() and friends... " >&6; }
28860+if ${ac_cv_have_getc_unlocked+:} false; then :
28861+ $as_echo_n "(cached) " >&6
28862 else
28863
28864-cat >conftest.$ac_ext <<_ACEOF
28865-/* confdefs.h. */
28866-_ACEOF
28867-cat confdefs.h >>conftest.$ac_ext
28868-cat >>conftest.$ac_ext <<_ACEOF
28869+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28870 /* end confdefs.h. */
28871 #include <stdio.h>
28872 int
28873@@ -22914,44 +12136,21 @@ main ()
28874 return 0;
28875 }
28876 _ACEOF
28877-rm -f conftest.$ac_objext conftest$ac_exeext
28878-if { (ac_try="$ac_link"
28879-case "(($ac_try" in
28880- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28881- *) ac_try_echo=$ac_try;;
28882-esac
28883-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28884- (eval "$ac_link") 2>conftest.er1
28885- ac_status=$?
28886- grep -v '^ *+' conftest.er1 >conftest.err
28887- rm -f conftest.er1
28888- cat conftest.err >&5
28889- echo "$as_me:$LINENO: \$? = $ac_status" >&5
28890- (exit $ac_status); } && {
28891- test -z "$ac_c_werror_flag" ||
28892- test ! -s conftest.err
28893- } && test -s conftest$ac_exeext &&
28894- $as_test_x conftest$ac_exeext; then
28895+if ac_fn_c_try_link "$LINENO"; then :
28896 ac_cv_have_getc_unlocked=yes
28897 else
28898- echo "$as_me: failed program was:" >&5
28899-sed 's/^/| /' conftest.$ac_ext >&5
28900-
28901- ac_cv_have_getc_unlocked=no
28902+ ac_cv_have_getc_unlocked=no
28903 fi
28904-
28905-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28906- conftest$ac_exeext conftest.$ac_ext
28907+rm -f core conftest.err conftest.$ac_objext \
28908+ conftest$ac_exeext conftest.$ac_ext
28909 fi
28910
28911-{ echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
28912-echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6; }
28913+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getc_unlocked" >&5
28914+$as_echo "$ac_cv_have_getc_unlocked" >&6; }
28915 if test "$ac_cv_have_getc_unlocked" = yes
28916 then
28917
28918-cat >>confdefs.h <<\_ACEOF
28919-#define HAVE_GETC_UNLOCKED 1
28920-_ACEOF
28921+$as_echo "#define HAVE_GETC_UNLOCKED 1" >>confdefs.h
28922
28923 fi
28924
28925@@ -22963,8 +12162,8 @@ LIBS_no_readline=$LIBS
28926 # library. NOTE: Keep the precedence of listed libraries synchronised
28927 # with setup.py.
28928 py_cv_lib_readline=no
28929-{ echo "$as_me:$LINENO: checking how to link readline libs" >&5
28930-echo $ECHO_N "checking how to link readline libs... $ECHO_C" >&6; }
28931+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link readline libs" >&5
28932+$as_echo_n "checking how to link readline libs... " >&6; }
28933 for py_libtermcap in "" ncursesw ncurses curses termcap; do
28934 if test -z "$py_libtermcap"; then
28935 READLINE_LIBS="-lreadline"
28936@@ -22972,11 +12171,7 @@ for py_libtermcap in "" ncursesw ncurses
28937 READLINE_LIBS="-lreadline -l$py_libtermcap"
28938 fi
28939 LIBS="$READLINE_LIBS $LIBS_no_readline"
28940- cat >conftest.$ac_ext <<_ACEOF
28941-/* confdefs.h. */
28942-_ACEOF
28943-cat confdefs.h >>conftest.$ac_ext
28944-cat >>conftest.$ac_ext <<_ACEOF
28945+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28946 /* end confdefs.h. */
28947
28948 /* Override any GCC internal prototype to avoid an error.
28949@@ -22994,34 +12189,11 @@ return readline ();
28950 return 0;
28951 }
28952 _ACEOF
28953-rm -f conftest.$ac_objext conftest$ac_exeext
28954-if { (ac_try="$ac_link"
28955-case "(($ac_try" in
28956- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28957- *) ac_try_echo=$ac_try;;
28958-esac
28959-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28960- (eval "$ac_link") 2>conftest.er1
28961- ac_status=$?
28962- grep -v '^ *+' conftest.er1 >conftest.err
28963- rm -f conftest.er1
28964- cat conftest.err >&5
28965- echo "$as_me:$LINENO: \$? = $ac_status" >&5
28966- (exit $ac_status); } && {
28967- test -z "$ac_c_werror_flag" ||
28968- test ! -s conftest.err
28969- } && test -s conftest$ac_exeext &&
28970- $as_test_x conftest$ac_exeext; then
28971+if ac_fn_c_try_link "$LINENO"; then :
28972 py_cv_lib_readline=yes
28973-else
28974- echo "$as_me: failed program was:" >&5
28975-sed 's/^/| /' conftest.$ac_ext >&5
28976-
28977-
28978 fi
28979-
28980-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28981- conftest$ac_exeext conftest.$ac_ext
28982+rm -f core conftest.err conftest.$ac_objext \
28983+ conftest$ac_exeext conftest.$ac_ext
28984 if test $py_cv_lib_readline = yes; then
28985 break
28986 fi
28987@@ -23029,31 +12201,25 @@ done
28988 # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts
28989 #AC_SUBST([READLINE_LIBS])
28990 if test $py_cv_lib_readline = no; then
28991- { echo "$as_me:$LINENO: result: none" >&5
28992-echo "${ECHO_T}none" >&6; }
28993+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
28994+$as_echo "none" >&6; }
28995 else
28996- { echo "$as_me:$LINENO: result: $READLINE_LIBS" >&5
28997-echo "${ECHO_T}$READLINE_LIBS" >&6; }
28998+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE_LIBS" >&5
28999+$as_echo "$READLINE_LIBS" >&6; }
29000
29001-cat >>confdefs.h <<\_ACEOF
29002-#define HAVE_LIBREADLINE 1
29003-_ACEOF
29004+$as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
29005
29006 fi
29007
29008 # check for readline 2.1
29009-{ echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
29010-echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6; }
29011-if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
29012- echo $ECHO_N "(cached) $ECHO_C" >&6
29013+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_callback_handler_install in -lreadline" >&5
29014+$as_echo_n "checking for rl_callback_handler_install in -lreadline... " >&6; }
29015+if ${ac_cv_lib_readline_rl_callback_handler_install+:} false; then :
29016+ $as_echo_n "(cached) " >&6
29017 else
29018 ac_check_lib_save_LIBS=$LIBS
29019 LIBS="-lreadline $READLINE_LIBS $LIBS"
29020-cat >conftest.$ac_ext <<_ACEOF
29021-/* confdefs.h. */
29022-_ACEOF
29023-cat confdefs.h >>conftest.$ac_ext
29024-cat >>conftest.$ac_ext <<_ACEOF
29025+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29026 /* end confdefs.h. */
29027
29028 /* Override any GCC internal prototype to avoid an error.
29029@@ -23071,98 +12237,46 @@ return rl_callback_handler_install ();
29030 return 0;
29031 }
29032 _ACEOF
29033-rm -f conftest.$ac_objext conftest$ac_exeext
29034-if { (ac_try="$ac_link"
29035-case "(($ac_try" in
29036- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29037- *) ac_try_echo=$ac_try;;
29038-esac
29039-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29040- (eval "$ac_link") 2>conftest.er1
29041- ac_status=$?
29042- grep -v '^ *+' conftest.er1 >conftest.err
29043- rm -f conftest.er1
29044- cat conftest.err >&5
29045- echo "$as_me:$LINENO: \$? = $ac_status" >&5
29046- (exit $ac_status); } && {
29047- test -z "$ac_c_werror_flag" ||
29048- test ! -s conftest.err
29049- } && test -s conftest$ac_exeext &&
29050- $as_test_x conftest$ac_exeext; then
29051+if ac_fn_c_try_link "$LINENO"; then :
29052 ac_cv_lib_readline_rl_callback_handler_install=yes
29053 else
29054- echo "$as_me: failed program was:" >&5
29055-sed 's/^/| /' conftest.$ac_ext >&5
29056-
29057- ac_cv_lib_readline_rl_callback_handler_install=no
29058+ ac_cv_lib_readline_rl_callback_handler_install=no
29059 fi
29060-
29061-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29062- conftest$ac_exeext conftest.$ac_ext
29063+rm -f core conftest.err conftest.$ac_objext \
29064+ conftest$ac_exeext conftest.$ac_ext
29065 LIBS=$ac_check_lib_save_LIBS
29066 fi
29067-{ echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
29068-echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
29069-if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
29070+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
29071+$as_echo "$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
29072+if test "x$ac_cv_lib_readline_rl_callback_handler_install" = xyes; then :
29073
29074-cat >>confdefs.h <<\_ACEOF
29075-#define HAVE_RL_CALLBACK 1
29076-_ACEOF
29077+$as_echo "#define HAVE_RL_CALLBACK 1" >>confdefs.h
29078
29079 fi
29080
29081
29082 # check for readline 2.2
29083-cat >conftest.$ac_ext <<_ACEOF
29084-/* confdefs.h. */
29085-_ACEOF
29086-cat confdefs.h >>conftest.$ac_ext
29087-cat >>conftest.$ac_ext <<_ACEOF
29088+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29089 /* end confdefs.h. */
29090 #include <readline/readline.h>
29091 _ACEOF
29092-if { (ac_try="$ac_cpp conftest.$ac_ext"
29093-case "(($ac_try" in
29094- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29095- *) ac_try_echo=$ac_try;;
29096-esac
29097-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29098- (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29099- ac_status=$?
29100- grep -v '^ *+' conftest.er1 >conftest.err
29101- rm -f conftest.er1
29102- cat conftest.err >&5
29103- echo "$as_me:$LINENO: \$? = $ac_status" >&5
29104- (exit $ac_status); } >/dev/null && {
29105- test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29106- test ! -s conftest.err
29107- }; then
29108+if ac_fn_c_try_cpp "$LINENO"; then :
29109 have_readline=yes
29110 else
29111- echo "$as_me: failed program was:" >&5
29112-sed 's/^/| /' conftest.$ac_ext >&5
29113-
29114 have_readline=no
29115 fi
29116-
29117-rm -f conftest.err conftest.$ac_ext
29118+rm -f conftest.err conftest.i conftest.$ac_ext
29119 if test $have_readline = yes
29120 then
29121- cat >conftest.$ac_ext <<_ACEOF
29122-/* confdefs.h. */
29123-_ACEOF
29124-cat confdefs.h >>conftest.$ac_ext
29125-cat >>conftest.$ac_ext <<_ACEOF
29126+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29127 /* end confdefs.h. */
29128 #include <readline/readline.h>
29129
29130 _ACEOF
29131 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29132- $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then
29133+ $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then :
29134
29135-cat >>confdefs.h <<\_ACEOF
29136-#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
29137-_ACEOF
29138+$as_echo "#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1" >>confdefs.h
29139
29140 fi
29141 rm -f conftest*
29142@@ -23170,18 +12284,14 @@ rm -f conftest*
29143 fi
29144
29145 # check for readline 4.0
29146-{ echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
29147-echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6; }
29148-if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
29149- echo $ECHO_N "(cached) $ECHO_C" >&6
29150+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_pre_input_hook in -lreadline" >&5
29151+$as_echo_n "checking for rl_pre_input_hook in -lreadline... " >&6; }
29152+if ${ac_cv_lib_readline_rl_pre_input_hook+:} false; then :
29153+ $as_echo_n "(cached) " >&6
29154 else
29155 ac_check_lib_save_LIBS=$LIBS
29156 LIBS="-lreadline $READLINE_LIBS $LIBS"
29157-cat >conftest.$ac_ext <<_ACEOF
29158-/* confdefs.h. */
29159-_ACEOF
29160-cat confdefs.h >>conftest.$ac_ext
29161-cat >>conftest.$ac_ext <<_ACEOF
29162+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29163 /* end confdefs.h. */
29164
29165 /* Override any GCC internal prototype to avoid an error.
29166@@ -23199,60 +12309,33 @@ return rl_pre_input_hook ();
29167 return 0;
29168 }
29169 _ACEOF
29170-rm -f conftest.$ac_objext conftest$ac_exeext
29171-if { (ac_try="$ac_link"
29172-case "(($ac_try" in
29173- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29174- *) ac_try_echo=$ac_try;;
29175-esac
29176-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29177- (eval "$ac_link") 2>conftest.er1
29178- ac_status=$?
29179- grep -v '^ *+' conftest.er1 >conftest.err
29180- rm -f conftest.er1
29181- cat conftest.err >&5
29182- echo "$as_me:$LINENO: \$? = $ac_status" >&5
29183- (exit $ac_status); } && {
29184- test -z "$ac_c_werror_flag" ||
29185- test ! -s conftest.err
29186- } && test -s conftest$ac_exeext &&
29187- $as_test_x conftest$ac_exeext; then
29188+if ac_fn_c_try_link "$LINENO"; then :
29189 ac_cv_lib_readline_rl_pre_input_hook=yes
29190 else
29191- echo "$as_me: failed program was:" >&5
29192-sed 's/^/| /' conftest.$ac_ext >&5
29193-
29194- ac_cv_lib_readline_rl_pre_input_hook=no
29195+ ac_cv_lib_readline_rl_pre_input_hook=no
29196 fi
29197-
29198-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29199- conftest$ac_exeext conftest.$ac_ext
29200+rm -f core conftest.err conftest.$ac_objext \
29201+ conftest$ac_exeext conftest.$ac_ext
29202 LIBS=$ac_check_lib_save_LIBS
29203 fi
29204-{ echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
29205-echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6; }
29206-if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
29207+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
29208+$as_echo "$ac_cv_lib_readline_rl_pre_input_hook" >&6; }
29209+if test "x$ac_cv_lib_readline_rl_pre_input_hook" = xyes; then :
29210
29211-cat >>confdefs.h <<\_ACEOF
29212-#define HAVE_RL_PRE_INPUT_HOOK 1
29213-_ACEOF
29214+$as_echo "#define HAVE_RL_PRE_INPUT_HOOK 1" >>confdefs.h
29215
29216 fi
29217
29218
29219 # also in 4.0
29220-{ echo "$as_me:$LINENO: checking for rl_completion_display_matches_hook in -lreadline" >&5
29221-echo $ECHO_N "checking for rl_completion_display_matches_hook in -lreadline... $ECHO_C" >&6; }
29222-if test "${ac_cv_lib_readline_rl_completion_display_matches_hook+set}" = set; then
29223- echo $ECHO_N "(cached) $ECHO_C" >&6
29224+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_display_matches_hook in -lreadline" >&5
29225+$as_echo_n "checking for rl_completion_display_matches_hook in -lreadline... " >&6; }
29226+if ${ac_cv_lib_readline_rl_completion_display_matches_hook+:} false; then :
29227+ $as_echo_n "(cached) " >&6
29228 else
29229 ac_check_lib_save_LIBS=$LIBS
29230 LIBS="-lreadline $READLINE_LIBS $LIBS"
29231-cat >conftest.$ac_ext <<_ACEOF
29232-/* confdefs.h. */
29233-_ACEOF
29234-cat confdefs.h >>conftest.$ac_ext
29235-cat >>conftest.$ac_ext <<_ACEOF
29236+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29237 /* end confdefs.h. */
29238
29239 /* Override any GCC internal prototype to avoid an error.
29240@@ -23270,60 +12353,33 @@ return rl_completion_display_matches_hoo
29241 return 0;
29242 }
29243 _ACEOF
29244-rm -f conftest.$ac_objext conftest$ac_exeext
29245-if { (ac_try="$ac_link"
29246-case "(($ac_try" in
29247- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29248- *) ac_try_echo=$ac_try;;
29249-esac
29250-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29251- (eval "$ac_link") 2>conftest.er1
29252- ac_status=$?
29253- grep -v '^ *+' conftest.er1 >conftest.err
29254- rm -f conftest.er1
29255- cat conftest.err >&5
29256- echo "$as_me:$LINENO: \$? = $ac_status" >&5
29257- (exit $ac_status); } && {
29258- test -z "$ac_c_werror_flag" ||
29259- test ! -s conftest.err
29260- } && test -s conftest$ac_exeext &&
29261- $as_test_x conftest$ac_exeext; then
29262+if ac_fn_c_try_link "$LINENO"; then :
29263 ac_cv_lib_readline_rl_completion_display_matches_hook=yes
29264 else
29265- echo "$as_me: failed program was:" >&5
29266-sed 's/^/| /' conftest.$ac_ext >&5
29267-
29268- ac_cv_lib_readline_rl_completion_display_matches_hook=no
29269+ ac_cv_lib_readline_rl_completion_display_matches_hook=no
29270 fi
29271-
29272-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29273- conftest$ac_exeext conftest.$ac_ext
29274+rm -f core conftest.err conftest.$ac_objext \
29275+ conftest$ac_exeext conftest.$ac_ext
29276 LIBS=$ac_check_lib_save_LIBS
29277 fi
29278-{ echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5
29279-echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; }
29280-if test $ac_cv_lib_readline_rl_completion_display_matches_hook = yes; then
29281+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5
29282+$as_echo "$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; }
29283+if test "x$ac_cv_lib_readline_rl_completion_display_matches_hook" = xyes; then :
29284
29285-cat >>confdefs.h <<\_ACEOF
29286-#define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1
29287-_ACEOF
29288+$as_echo "#define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1" >>confdefs.h
29289
29290 fi
29291
29292
29293 # check for readline 4.2
29294-{ echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
29295-echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6; }
29296-if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
29297- echo $ECHO_N "(cached) $ECHO_C" >&6
29298+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_matches in -lreadline" >&5
29299+$as_echo_n "checking for rl_completion_matches in -lreadline... " >&6; }
29300+if ${ac_cv_lib_readline_rl_completion_matches+:} false; then :
29301+ $as_echo_n "(cached) " >&6
29302 else
29303 ac_check_lib_save_LIBS=$LIBS
29304 LIBS="-lreadline $READLINE_LIBS $LIBS"
29305-cat >conftest.$ac_ext <<_ACEOF
29306-/* confdefs.h. */
29307-_ACEOF
29308-cat confdefs.h >>conftest.$ac_ext
29309-cat >>conftest.$ac_ext <<_ACEOF
29310+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29311 /* end confdefs.h. */
29312
29313 /* Override any GCC internal prototype to avoid an error.
29314@@ -23341,98 +12397,46 @@ return rl_completion_matches ();
29315 return 0;
29316 }
29317 _ACEOF
29318-rm -f conftest.$ac_objext conftest$ac_exeext
29319-if { (ac_try="$ac_link"
29320-case "(($ac_try" in
29321- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29322- *) ac_try_echo=$ac_try;;
29323-esac
29324-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29325- (eval "$ac_link") 2>conftest.er1
29326- ac_status=$?
29327- grep -v '^ *+' conftest.er1 >conftest.err
29328- rm -f conftest.er1
29329- cat conftest.err >&5
29330- echo "$as_me:$LINENO: \$? = $ac_status" >&5
29331- (exit $ac_status); } && {
29332- test -z "$ac_c_werror_flag" ||
29333- test ! -s conftest.err
29334- } && test -s conftest$ac_exeext &&
29335- $as_test_x conftest$ac_exeext; then
29336+if ac_fn_c_try_link "$LINENO"; then :
29337 ac_cv_lib_readline_rl_completion_matches=yes
29338 else
29339- echo "$as_me: failed program was:" >&5
29340-sed 's/^/| /' conftest.$ac_ext >&5
29341-
29342- ac_cv_lib_readline_rl_completion_matches=no
29343+ ac_cv_lib_readline_rl_completion_matches=no
29344 fi
29345-
29346-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29347- conftest$ac_exeext conftest.$ac_ext
29348+rm -f core conftest.err conftest.$ac_objext \
29349+ conftest$ac_exeext conftest.$ac_ext
29350 LIBS=$ac_check_lib_save_LIBS
29351 fi
29352-{ echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
29353-echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6; }
29354-if test $ac_cv_lib_readline_rl_completion_matches = yes; then
29355+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_matches" >&5
29356+$as_echo "$ac_cv_lib_readline_rl_completion_matches" >&6; }
29357+if test "x$ac_cv_lib_readline_rl_completion_matches" = xyes; then :
29358
29359-cat >>confdefs.h <<\_ACEOF
29360-#define HAVE_RL_COMPLETION_MATCHES 1
29361-_ACEOF
29362+$as_echo "#define HAVE_RL_COMPLETION_MATCHES 1" >>confdefs.h
29363
29364 fi
29365
29366
29367 # also in readline 4.2
29368-cat >conftest.$ac_ext <<_ACEOF
29369-/* confdefs.h. */
29370-_ACEOF
29371-cat confdefs.h >>conftest.$ac_ext
29372-cat >>conftest.$ac_ext <<_ACEOF
29373+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29374 /* end confdefs.h. */
29375 #include <readline/readline.h>
29376 _ACEOF
29377-if { (ac_try="$ac_cpp conftest.$ac_ext"
29378-case "(($ac_try" in
29379- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29380- *) ac_try_echo=$ac_try;;
29381-esac
29382-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29383- (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29384- ac_status=$?
29385- grep -v '^ *+' conftest.er1 >conftest.err
29386- rm -f conftest.er1
29387- cat conftest.err >&5
29388- echo "$as_me:$LINENO: \$? = $ac_status" >&5
29389- (exit $ac_status); } >/dev/null && {
29390- test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29391- test ! -s conftest.err
29392- }; then
29393+if ac_fn_c_try_cpp "$LINENO"; then :
29394 have_readline=yes
29395 else
29396- echo "$as_me: failed program was:" >&5
29397-sed 's/^/| /' conftest.$ac_ext >&5
29398-
29399 have_readline=no
29400 fi
29401-
29402-rm -f conftest.err conftest.$ac_ext
29403+rm -f conftest.err conftest.i conftest.$ac_ext
29404 if test $have_readline = yes
29405 then
29406- cat >conftest.$ac_ext <<_ACEOF
29407-/* confdefs.h. */
29408-_ACEOF
29409-cat confdefs.h >>conftest.$ac_ext
29410-cat >>conftest.$ac_ext <<_ACEOF
29411+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29412 /* end confdefs.h. */
29413 #include <readline/readline.h>
29414
29415 _ACEOF
29416 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29417- $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then
29418+ $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then :
29419
29420-cat >>confdefs.h <<\_ACEOF
29421-#define HAVE_RL_CATCH_SIGNAL 1
29422-_ACEOF
29423+$as_echo "#define HAVE_RL_CATCH_SIGNAL 1" >>confdefs.h
29424
29425 fi
29426 rm -f conftest*
29427@@ -23442,20 +12446,16 @@ fi
29428 # End of readline checks: restore LIBS
29429 LIBS=$LIBS_no_readline
29430
29431-{ echo "$as_me:$LINENO: checking for broken nice()" >&5
29432-echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6; }
29433-if test "${ac_cv_broken_nice+set}" = set; then
29434- echo $ECHO_N "(cached) $ECHO_C" >&6
29435+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken nice()" >&5
29436+$as_echo_n "checking for broken nice()... " >&6; }
29437+if ${ac_cv_broken_nice+:} false; then :
29438+ $as_echo_n "(cached) " >&6
29439 else
29440
29441-if test "$cross_compiling" = yes; then
29442+if test "$cross_compiling" = yes; then :
29443 ac_cv_broken_nice=no
29444 else
29445- cat >conftest.$ac_ext <<_ACEOF
29446-/* confdefs.h. */
29447-_ACEOF
29448-cat confdefs.h >>conftest.$ac_ext
29449-cat >>conftest.$ac_ext <<_ACEOF
29450+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29451 /* end confdefs.h. */
29452
29453 int main()
29454@@ -23467,62 +12467,32 @@ int main()
29455 }
29456
29457 _ACEOF
29458-rm -f conftest$ac_exeext
29459-if { (ac_try="$ac_link"
29460-case "(($ac_try" in
29461- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29462- *) ac_try_echo=$ac_try;;
29463-esac
29464-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29465- (eval "$ac_link") 2>&5
29466- ac_status=$?
29467- echo "$as_me:$LINENO: \$? = $ac_status" >&5
29468- (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29469- { (case "(($ac_try" in
29470- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29471- *) ac_try_echo=$ac_try;;
29472-esac
29473-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29474- (eval "$ac_try") 2>&5
29475- ac_status=$?
29476- echo "$as_me:$LINENO: \$? = $ac_status" >&5
29477- (exit $ac_status); }; }; then
29478+if ac_fn_c_try_run "$LINENO"; then :
29479 ac_cv_broken_nice=yes
29480 else
29481- echo "$as_me: program exited with status $ac_status" >&5
29482-echo "$as_me: failed program was:" >&5
29483-sed 's/^/| /' conftest.$ac_ext >&5
29484-
29485-( exit $ac_status )
29486-ac_cv_broken_nice=no
29487+ ac_cv_broken_nice=no
29488 fi
29489-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29490+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29491+ conftest.$ac_objext conftest.beam conftest.$ac_ext
29492 fi
29493
29494-
29495 fi
29496
29497-{ echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
29498-echo "${ECHO_T}$ac_cv_broken_nice" >&6; }
29499+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_nice" >&5
29500+$as_echo "$ac_cv_broken_nice" >&6; }
29501 if test "$ac_cv_broken_nice" = yes
29502 then
29503
29504-cat >>confdefs.h <<\_ACEOF
29505-#define HAVE_BROKEN_NICE 1
29506-_ACEOF
29507+$as_echo "#define HAVE_BROKEN_NICE 1" >>confdefs.h
29508
29509 fi
29510
29511-{ echo "$as_me:$LINENO: checking for broken poll()" >&5
29512-echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6; }
29513-if test "$cross_compiling" = yes; then
29514+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken poll()" >&5
29515+$as_echo_n "checking for broken poll()... " >&6; }
29516+if test "$cross_compiling" = yes; then :
29517 ac_cv_broken_poll=no
29518 else
29519- cat >conftest.$ac_ext <<_ACEOF
29520-/* confdefs.h. */
29521-_ACEOF
29522-cat confdefs.h >>conftest.$ac_ext
29523-cat >>conftest.$ac_ext <<_ACEOF
29524+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29525 /* end confdefs.h. */
29526
29527 #include <poll.h>
29528@@ -23550,153 +12520,32 @@ int main (void)
29529 }
29530
29531 _ACEOF
29532-rm -f conftest$ac_exeext
29533-if { (ac_try="$ac_link"
29534-case "(($ac_try" in
29535- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29536- *) ac_try_echo=$ac_try;;
29537-esac
29538-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29539- (eval "$ac_link") 2>&5
29540- ac_status=$?
29541- echo "$as_me:$LINENO: \$? = $ac_status" >&5
29542- (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29543- { (case "(($ac_try" in
29544- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29545- *) ac_try_echo=$ac_try;;
29546-esac
29547-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29548- (eval "$ac_try") 2>&5
29549- ac_status=$?
29550- echo "$as_me:$LINENO: \$? = $ac_status" >&5
29551- (exit $ac_status); }; }; then
29552+if ac_fn_c_try_run "$LINENO"; then :
29553 ac_cv_broken_poll=yes
29554 else
29555- echo "$as_me: program exited with status $ac_status" >&5
29556-echo "$as_me: failed program was:" >&5
29557-sed 's/^/| /' conftest.$ac_ext >&5
29558-
29559-( exit $ac_status )
29560-ac_cv_broken_poll=no
29561-fi
29562-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29563-fi
29564-
29565-
29566-{ echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
29567-echo "${ECHO_T}$ac_cv_broken_poll" >&6; }
29568-if test "$ac_cv_broken_poll" = yes
29569-then
29570-
29571-cat >>confdefs.h <<\_ACEOF
29572-#define HAVE_BROKEN_POLL 1
29573-_ACEOF
29574-
29575-fi
29576-
29577-# Before we can test tzset, we need to check if struct tm has a tm_zone
29578-# (which is not required by ISO C or UNIX spec) and/or if we support
29579-# tzname[]
29580-{ echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
29581-echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
29582-if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
29583- echo $ECHO_N "(cached) $ECHO_C" >&6
29584-else
29585- cat >conftest.$ac_ext <<_ACEOF
29586-/* confdefs.h. */
29587-_ACEOF
29588-cat confdefs.h >>conftest.$ac_ext
29589-cat >>conftest.$ac_ext <<_ACEOF
29590-/* end confdefs.h. */
29591-#include <sys/types.h>
29592-#include <$ac_cv_struct_tm>
29593-
29594-
29595-int
29596-main ()
29597-{
29598-static struct tm ac_aggr;
29599-if (ac_aggr.tm_zone)
29600-return 0;
29601- ;
29602- return 0;
29603-}
29604-_ACEOF
29605-rm -f conftest.$ac_objext
29606-if { (ac_try="$ac_compile"
29607-case "(($ac_try" in
29608- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29609- *) ac_try_echo=$ac_try;;
29610-esac
29611-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29612- (eval "$ac_compile") 2>conftest.er1
29613- ac_status=$?
29614- grep -v '^ *+' conftest.er1 >conftest.err
29615- rm -f conftest.er1
29616- cat conftest.err >&5
29617- echo "$as_me:$LINENO: \$? = $ac_status" >&5
29618- (exit $ac_status); } && {
29619- test -z "$ac_c_werror_flag" ||
29620- test ! -s conftest.err
29621- } && test -s conftest.$ac_objext; then
29622- ac_cv_member_struct_tm_tm_zone=yes
29623-else
29624- echo "$as_me: failed program was:" >&5
29625-sed 's/^/| /' conftest.$ac_ext >&5
29626-
29627- cat >conftest.$ac_ext <<_ACEOF
29628-/* confdefs.h. */
29629-_ACEOF
29630-cat confdefs.h >>conftest.$ac_ext
29631-cat >>conftest.$ac_ext <<_ACEOF
29632-/* end confdefs.h. */
29633-#include <sys/types.h>
29634-#include <$ac_cv_struct_tm>
29635-
29636-
29637-int
29638-main ()
29639-{
29640-static struct tm ac_aggr;
29641-if (sizeof ac_aggr.tm_zone)
29642-return 0;
29643- ;
29644- return 0;
29645-}
29646-_ACEOF
29647-rm -f conftest.$ac_objext
29648-if { (ac_try="$ac_compile"
29649-case "(($ac_try" in
29650- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29651- *) ac_try_echo=$ac_try;;
29652-esac
29653-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29654- (eval "$ac_compile") 2>conftest.er1
29655- ac_status=$?
29656- grep -v '^ *+' conftest.er1 >conftest.err
29657- rm -f conftest.er1
29658- cat conftest.err >&5
29659- echo "$as_me:$LINENO: \$? = $ac_status" >&5
29660- (exit $ac_status); } && {
29661- test -z "$ac_c_werror_flag" ||
29662- test ! -s conftest.err
29663- } && test -s conftest.$ac_objext; then
29664- ac_cv_member_struct_tm_tm_zone=yes
29665-else
29666- echo "$as_me: failed program was:" >&5
29667-sed 's/^/| /' conftest.$ac_ext >&5
29668-
29669- ac_cv_member_struct_tm_tm_zone=no
29670+ ac_cv_broken_poll=no
29671 fi
29672-
29673-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29674+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29675+ conftest.$ac_objext conftest.beam conftest.$ac_ext
29676 fi
29677
29678-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29679+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_poll" >&5
29680+$as_echo "$ac_cv_broken_poll" >&6; }
29681+if test "$ac_cv_broken_poll" = yes
29682+then
29683+
29684+$as_echo "#define HAVE_BROKEN_POLL 1" >>confdefs.h
29685+
29686 fi
29687-{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
29688-echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
29689-if test $ac_cv_member_struct_tm_tm_zone = yes; then
29690+
29691+# Before we can test tzset, we need to check if struct tm has a tm_zone
29692+# (which is not required by ISO C or UNIX spec) and/or if we support
29693+# tzname[]
29694+ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
29695+#include <$ac_cv_struct_tm>
29696+
29697+"
29698+if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
29699
29700 cat >>confdefs.h <<_ACEOF
29701 #define HAVE_STRUCT_TM_TM_ZONE 1
29702@@ -23707,90 +12556,27 @@ fi
29703
29704 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
29705
29706-cat >>confdefs.h <<\_ACEOF
29707-#define HAVE_TM_ZONE 1
29708-_ACEOF
29709+$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
29710
29711 else
29712- { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
29713-echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
29714-if test "${ac_cv_have_decl_tzname+set}" = set; then
29715- echo $ECHO_N "(cached) $ECHO_C" >&6
29716-else
29717- cat >conftest.$ac_ext <<_ACEOF
29718-/* confdefs.h. */
29719-_ACEOF
29720-cat confdefs.h >>conftest.$ac_ext
29721-cat >>conftest.$ac_ext <<_ACEOF
29722-/* end confdefs.h. */
29723-#include <time.h>
29724-
29725-int
29726-main ()
29727-{
29728-#ifndef tzname
29729- (void) tzname;
29730-#endif
29731-
29732- ;
29733- return 0;
29734-}
29735-_ACEOF
29736-rm -f conftest.$ac_objext
29737-if { (ac_try="$ac_compile"
29738-case "(($ac_try" in
29739- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29740- *) ac_try_echo=$ac_try;;
29741-esac
29742-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29743- (eval "$ac_compile") 2>conftest.er1
29744- ac_status=$?
29745- grep -v '^ *+' conftest.er1 >conftest.err
29746- rm -f conftest.er1
29747- cat conftest.err >&5
29748- echo "$as_me:$LINENO: \$? = $ac_status" >&5
29749- (exit $ac_status); } && {
29750- test -z "$ac_c_werror_flag" ||
29751- test ! -s conftest.err
29752- } && test -s conftest.$ac_objext; then
29753- ac_cv_have_decl_tzname=yes
29754+ ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
29755+"
29756+if test "x$ac_cv_have_decl_tzname" = xyes; then :
29757+ ac_have_decl=1
29758 else
29759- echo "$as_me: failed program was:" >&5
29760-sed 's/^/| /' conftest.$ac_ext >&5
29761-
29762- ac_cv_have_decl_tzname=no
29763+ ac_have_decl=0
29764 fi
29765
29766-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29767-fi
29768-{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
29769-echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
29770-if test $ac_cv_have_decl_tzname = yes; then
29771-
29772 cat >>confdefs.h <<_ACEOF
29773-#define HAVE_DECL_TZNAME 1
29774-_ACEOF
29775-
29776-
29777-else
29778- cat >>confdefs.h <<_ACEOF
29779-#define HAVE_DECL_TZNAME 0
29780+#define HAVE_DECL_TZNAME $ac_have_decl
29781 _ACEOF
29782
29783-
29784-fi
29785-
29786-
29787- { echo "$as_me:$LINENO: checking for tzname" >&5
29788-echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
29789-if test "${ac_cv_var_tzname+set}" = set; then
29790- echo $ECHO_N "(cached) $ECHO_C" >&6
29791+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
29792+$as_echo_n "checking for tzname... " >&6; }
29793+if ${ac_cv_var_tzname+:} false; then :
29794+ $as_echo_n "(cached) " >&6
29795 else
29796- cat >conftest.$ac_ext <<_ACEOF
29797-/* confdefs.h. */
29798-_ACEOF
29799-cat confdefs.h >>conftest.$ac_ext
29800-cat >>conftest.$ac_ext <<_ACEOF
29801+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29802 /* end confdefs.h. */
29803 #include <time.h>
29804 #if !HAVE_DECL_TZNAME
29805@@ -23805,62 +12591,35 @@ return tzname[0][0];
29806 return 0;
29807 }
29808 _ACEOF
29809-rm -f conftest.$ac_objext conftest$ac_exeext
29810-if { (ac_try="$ac_link"
29811-case "(($ac_try" in
29812- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29813- *) ac_try_echo=$ac_try;;
29814-esac
29815-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29816- (eval "$ac_link") 2>conftest.er1
29817- ac_status=$?
29818- grep -v '^ *+' conftest.er1 >conftest.err
29819- rm -f conftest.er1
29820- cat conftest.err >&5
29821- echo "$as_me:$LINENO: \$? = $ac_status" >&5
29822- (exit $ac_status); } && {
29823- test -z "$ac_c_werror_flag" ||
29824- test ! -s conftest.err
29825- } && test -s conftest$ac_exeext &&
29826- $as_test_x conftest$ac_exeext; then
29827+if ac_fn_c_try_link "$LINENO"; then :
29828 ac_cv_var_tzname=yes
29829 else
29830- echo "$as_me: failed program was:" >&5
29831-sed 's/^/| /' conftest.$ac_ext >&5
29832-
29833- ac_cv_var_tzname=no
29834+ ac_cv_var_tzname=no
29835 fi
29836-
29837-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29838- conftest$ac_exeext conftest.$ac_ext
29839+rm -f core conftest.err conftest.$ac_objext \
29840+ conftest$ac_exeext conftest.$ac_ext
29841 fi
29842-{ echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
29843-echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
29844+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
29845+$as_echo "$ac_cv_var_tzname" >&6; }
29846 if test $ac_cv_var_tzname = yes; then
29847
29848-cat >>confdefs.h <<\_ACEOF
29849-#define HAVE_TZNAME 1
29850-_ACEOF
29851+$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
29852
29853 fi
29854 fi
29855
29856
29857 # check tzset(3) exists and works like we expect it to
29858-{ echo "$as_me:$LINENO: checking for working tzset()" >&5
29859-echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6; }
29860-if test "${ac_cv_working_tzset+set}" = set; then
29861- echo $ECHO_N "(cached) $ECHO_C" >&6
29862+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working tzset()" >&5
29863+$as_echo_n "checking for working tzset()... " >&6; }
29864+if ${ac_cv_working_tzset+:} false; then :
29865+ $as_echo_n "(cached) " >&6
29866 else
29867
29868-if test "$cross_compiling" = yes; then
29869+if test "$cross_compiling" = yes; then :
29870 ac_cv_working_tzset=no
29871 else
29872- cat >conftest.$ac_ext <<_ACEOF
29873-/* confdefs.h. */
29874-_ACEOF
29875-cat confdefs.h >>conftest.$ac_ext
29876-cat >>conftest.$ac_ext <<_ACEOF
29877+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29878 /* end confdefs.h. */
29879
29880 #include <stdlib.h>
29881@@ -23927,63 +12686,33 @@ int main()
29882 }
29883
29884 _ACEOF
29885-rm -f conftest$ac_exeext
29886-if { (ac_try="$ac_link"
29887-case "(($ac_try" in
29888- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29889- *) ac_try_echo=$ac_try;;
29890-esac
29891-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29892- (eval "$ac_link") 2>&5
29893- ac_status=$?
29894- echo "$as_me:$LINENO: \$? = $ac_status" >&5
29895- (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29896- { (case "(($ac_try" in
29897- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29898- *) ac_try_echo=$ac_try;;
29899-esac
29900-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29901- (eval "$ac_try") 2>&5
29902- ac_status=$?
29903- echo "$as_me:$LINENO: \$? = $ac_status" >&5
29904- (exit $ac_status); }; }; then
29905+if ac_fn_c_try_run "$LINENO"; then :
29906 ac_cv_working_tzset=yes
29907 else
29908- echo "$as_me: program exited with status $ac_status" >&5
29909-echo "$as_me: failed program was:" >&5
29910-sed 's/^/| /' conftest.$ac_ext >&5
29911-
29912-( exit $ac_status )
29913-ac_cv_working_tzset=no
29914+ ac_cv_working_tzset=no
29915 fi
29916-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29917+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29918+ conftest.$ac_objext conftest.beam conftest.$ac_ext
29919 fi
29920
29921-
29922 fi
29923
29924-{ echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
29925-echo "${ECHO_T}$ac_cv_working_tzset" >&6; }
29926+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_tzset" >&5
29927+$as_echo "$ac_cv_working_tzset" >&6; }
29928 if test "$ac_cv_working_tzset" = yes
29929 then
29930
29931-cat >>confdefs.h <<\_ACEOF
29932-#define HAVE_WORKING_TZSET 1
29933-_ACEOF
29934+$as_echo "#define HAVE_WORKING_TZSET 1" >>confdefs.h
29935
29936 fi
29937
29938 # Look for subsecond timestamps in struct stat
29939-{ echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
29940-echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6; }
29941-if test "${ac_cv_stat_tv_nsec+set}" = set; then
29942- echo $ECHO_N "(cached) $ECHO_C" >&6
29943+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec in struct stat" >&5
29944+$as_echo_n "checking for tv_nsec in struct stat... " >&6; }
29945+if ${ac_cv_stat_tv_nsec+:} false; then :
29946+ $as_echo_n "(cached) " >&6
29947 else
29948- cat >conftest.$ac_ext <<_ACEOF
29949-/* confdefs.h. */
29950-_ACEOF
29951-cat confdefs.h >>conftest.$ac_ext
29952-cat >>conftest.$ac_ext <<_ACEOF
29953+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29954 /* end confdefs.h. */
29955 #include <sys/stat.h>
29956 int
29957@@ -23997,56 +12726,30 @@ st.st_mtim.tv_nsec = 1;
29958 return 0;
29959 }
29960 _ACEOF
29961-rm -f conftest.$ac_objext
29962-if { (ac_try="$ac_compile"
29963-case "(($ac_try" in
29964- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29965- *) ac_try_echo=$ac_try;;
29966-esac
29967-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29968- (eval "$ac_compile") 2>conftest.er1
29969- ac_status=$?
29970- grep -v '^ *+' conftest.er1 >conftest.err
29971- rm -f conftest.er1
29972- cat conftest.err >&5
29973- echo "$as_me:$LINENO: \$? = $ac_status" >&5
29974- (exit $ac_status); } && {
29975- test -z "$ac_c_werror_flag" ||
29976- test ! -s conftest.err
29977- } && test -s conftest.$ac_objext; then
29978+if ac_fn_c_try_compile "$LINENO"; then :
29979 ac_cv_stat_tv_nsec=yes
29980 else
29981- echo "$as_me: failed program was:" >&5
29982-sed 's/^/| /' conftest.$ac_ext >&5
29983-
29984- ac_cv_stat_tv_nsec=no
29985+ ac_cv_stat_tv_nsec=no
29986 fi
29987-
29988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29989 fi
29990
29991-{ echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
29992-echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6; }
29993+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec" >&5
29994+$as_echo "$ac_cv_stat_tv_nsec" >&6; }
29995 if test "$ac_cv_stat_tv_nsec" = yes
29996 then
29997
29998-cat >>confdefs.h <<\_ACEOF
29999-#define HAVE_STAT_TV_NSEC 1
30000-_ACEOF
30001+$as_echo "#define HAVE_STAT_TV_NSEC 1" >>confdefs.h
30002
30003 fi
30004
30005 # Look for BSD style subsecond timestamps in struct stat
30006-{ echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
30007-echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6; }
30008-if test "${ac_cv_stat_tv_nsec2+set}" = set; then
30009- echo $ECHO_N "(cached) $ECHO_C" >&6
30010+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec2 in struct stat" >&5
30011+$as_echo_n "checking for tv_nsec2 in struct stat... " >&6; }
30012+if ${ac_cv_stat_tv_nsec2+:} false; then :
30013+ $as_echo_n "(cached) " >&6
30014 else
30015- cat >conftest.$ac_ext <<_ACEOF
30016-/* confdefs.h. */
30017-_ACEOF
30018-cat confdefs.h >>conftest.$ac_ext
30019-cat >>conftest.$ac_ext <<_ACEOF
30020+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30021 /* end confdefs.h. */
30022 #include <sys/stat.h>
30023 int
30024@@ -24060,56 +12763,30 @@ st.st_mtimespec.tv_nsec = 1;
30025 return 0;
30026 }
30027 _ACEOF
30028-rm -f conftest.$ac_objext
30029-if { (ac_try="$ac_compile"
30030-case "(($ac_try" in
30031- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30032- *) ac_try_echo=$ac_try;;
30033-esac
30034-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30035- (eval "$ac_compile") 2>conftest.er1
30036- ac_status=$?
30037- grep -v '^ *+' conftest.er1 >conftest.err
30038- rm -f conftest.er1
30039- cat conftest.err >&5
30040- echo "$as_me:$LINENO: \$? = $ac_status" >&5
30041- (exit $ac_status); } && {
30042- test -z "$ac_c_werror_flag" ||
30043- test ! -s conftest.err
30044- } && test -s conftest.$ac_objext; then
30045+if ac_fn_c_try_compile "$LINENO"; then :
30046 ac_cv_stat_tv_nsec2=yes
30047 else
30048- echo "$as_me: failed program was:" >&5
30049-sed 's/^/| /' conftest.$ac_ext >&5
30050-
30051- ac_cv_stat_tv_nsec2=no
30052+ ac_cv_stat_tv_nsec2=no
30053 fi
30054-
30055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30056 fi
30057
30058-{ echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
30059-echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6; }
30060+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec2" >&5
30061+$as_echo "$ac_cv_stat_tv_nsec2" >&6; }
30062 if test "$ac_cv_stat_tv_nsec2" = yes
30063 then
30064
30065-cat >>confdefs.h <<\_ACEOF
30066-#define HAVE_STAT_TV_NSEC2 1
30067-_ACEOF
30068+$as_echo "#define HAVE_STAT_TV_NSEC2 1" >>confdefs.h
30069
30070 fi
30071
30072 # On HP/UX 11.0, mvwdelch is a block with a return statement
30073-{ echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
30074-echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6; }
30075-if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
30076- echo $ECHO_N "(cached) $ECHO_C" >&6
30077+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mvwdelch is an expression" >&5
30078+$as_echo_n "checking whether mvwdelch is an expression... " >&6; }
30079+if ${ac_cv_mvwdelch_is_expression+:} false; then :
30080+ $as_echo_n "(cached) " >&6
30081 else
30082- cat >conftest.$ac_ext <<_ACEOF
30083-/* confdefs.h. */
30084-_ACEOF
30085-cat confdefs.h >>conftest.$ac_ext
30086-cat >>conftest.$ac_ext <<_ACEOF
30087+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30088 /* end confdefs.h. */
30089 #include <curses.h>
30090 int
30091@@ -24123,56 +12800,30 @@ main ()
30092 return 0;
30093 }
30094 _ACEOF
30095-rm -f conftest.$ac_objext
30096-if { (ac_try="$ac_compile"
30097-case "(($ac_try" in
30098- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30099- *) ac_try_echo=$ac_try;;
30100-esac
30101-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30102- (eval "$ac_compile") 2>conftest.er1
30103- ac_status=$?
30104- grep -v '^ *+' conftest.er1 >conftest.err
30105- rm -f conftest.er1
30106- cat conftest.err >&5
30107- echo "$as_me:$LINENO: \$? = $ac_status" >&5
30108- (exit $ac_status); } && {
30109- test -z "$ac_c_werror_flag" ||
30110- test ! -s conftest.err
30111- } && test -s conftest.$ac_objext; then
30112+if ac_fn_c_try_compile "$LINENO"; then :
30113 ac_cv_mvwdelch_is_expression=yes
30114 else
30115- echo "$as_me: failed program was:" >&5
30116-sed 's/^/| /' conftest.$ac_ext >&5
30117-
30118- ac_cv_mvwdelch_is_expression=no
30119+ ac_cv_mvwdelch_is_expression=no
30120 fi
30121-
30122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30123 fi
30124
30125-{ echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
30126-echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6; }
30127+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mvwdelch_is_expression" >&5
30128+$as_echo "$ac_cv_mvwdelch_is_expression" >&6; }
30129
30130 if test "$ac_cv_mvwdelch_is_expression" = yes
30131 then
30132
30133-cat >>confdefs.h <<\_ACEOF
30134-#define MVWDELCH_IS_EXPRESSION 1
30135-_ACEOF
30136+$as_echo "#define MVWDELCH_IS_EXPRESSION 1" >>confdefs.h
30137
30138 fi
30139
30140-{ echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
30141-echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6; }
30142-if test "${ac_cv_window_has_flags+set}" = set; then
30143- echo $ECHO_N "(cached) $ECHO_C" >&6
30144+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether WINDOW has _flags" >&5
30145+$as_echo_n "checking whether WINDOW has _flags... " >&6; }
30146+if ${ac_cv_window_has_flags+:} false; then :
30147+ $as_echo_n "(cached) " >&6
30148 else
30149- cat >conftest.$ac_ext <<_ACEOF
30150-/* confdefs.h. */
30151-_ACEOF
30152-cat confdefs.h >>conftest.$ac_ext
30153-cat >>conftest.$ac_ext <<_ACEOF
30154+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30155 /* end confdefs.h. */
30156 #include <curses.h>
30157 int
30158@@ -24186,54 +12837,28 @@ main ()
30159 return 0;
30160 }
30161 _ACEOF
30162-rm -f conftest.$ac_objext
30163-if { (ac_try="$ac_compile"
30164-case "(($ac_try" in
30165- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30166- *) ac_try_echo=$ac_try;;
30167-esac
30168-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30169- (eval "$ac_compile") 2>conftest.er1
30170- ac_status=$?
30171- grep -v '^ *+' conftest.er1 >conftest.err
30172- rm -f conftest.er1
30173- cat conftest.err >&5
30174- echo "$as_me:$LINENO: \$? = $ac_status" >&5
30175- (exit $ac_status); } && {
30176- test -z "$ac_c_werror_flag" ||
30177- test ! -s conftest.err
30178- } && test -s conftest.$ac_objext; then
30179+if ac_fn_c_try_compile "$LINENO"; then :
30180 ac_cv_window_has_flags=yes
30181 else
30182- echo "$as_me: failed program was:" >&5
30183-sed 's/^/| /' conftest.$ac_ext >&5
30184-
30185- ac_cv_window_has_flags=no
30186+ ac_cv_window_has_flags=no
30187 fi
30188-
30189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30190 fi
30191
30192-{ echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
30193-echo "${ECHO_T}$ac_cv_window_has_flags" >&6; }
30194+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_window_has_flags" >&5
30195+$as_echo "$ac_cv_window_has_flags" >&6; }
30196
30197
30198 if test "$ac_cv_window_has_flags" = yes
30199 then
30200
30201-cat >>confdefs.h <<\_ACEOF
30202-#define WINDOW_HAS_FLAGS 1
30203-_ACEOF
30204+$as_echo "#define WINDOW_HAS_FLAGS 1" >>confdefs.h
30205
30206 fi
30207
30208-{ echo "$as_me:$LINENO: checking for is_term_resized" >&5
30209-echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6; }
30210-cat >conftest.$ac_ext <<_ACEOF
30211-/* confdefs.h. */
30212-_ACEOF
30213-cat confdefs.h >>conftest.$ac_ext
30214-cat >>conftest.$ac_ext <<_ACEOF
30215+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_term_resized" >&5
30216+$as_echo_n "checking for is_term_resized... " >&6; }
30217+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30218 /* end confdefs.h. */
30219 #include <curses.h>
30220 int
30221@@ -24244,48 +12869,22 @@ void *x=is_term_resized
30222 return 0;
30223 }
30224 _ACEOF
30225-rm -f conftest.$ac_objext
30226-if { (ac_try="$ac_compile"
30227-case "(($ac_try" in
30228- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30229- *) ac_try_echo=$ac_try;;
30230-esac
30231-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30232- (eval "$ac_compile") 2>conftest.er1
30233- ac_status=$?
30234- grep -v '^ *+' conftest.er1 >conftest.err
30235- rm -f conftest.er1
30236- cat conftest.err >&5
30237- echo "$as_me:$LINENO: \$? = $ac_status" >&5
30238- (exit $ac_status); } && {
30239- test -z "$ac_c_werror_flag" ||
30240- test ! -s conftest.err
30241- } && test -s conftest.$ac_objext; then
30242+if ac_fn_c_try_compile "$LINENO"; then :
30243
30244-cat >>confdefs.h <<\_ACEOF
30245-#define HAVE_CURSES_IS_TERM_RESIZED 1
30246-_ACEOF
30247+$as_echo "#define HAVE_CURSES_IS_TERM_RESIZED 1" >>confdefs.h
30248
30249- { echo "$as_me:$LINENO: result: yes" >&5
30250-echo "${ECHO_T}yes" >&6; }
30251+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30252+$as_echo "yes" >&6; }
30253 else
30254- echo "$as_me: failed program was:" >&5
30255-sed 's/^/| /' conftest.$ac_ext >&5
30256-
30257- { echo "$as_me:$LINENO: result: no" >&5
30258-echo "${ECHO_T}no" >&6; }
30259+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30260+$as_echo "no" >&6; }
30261
30262 fi
30263-
30264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30265
30266-{ echo "$as_me:$LINENO: checking for resize_term" >&5
30267-echo $ECHO_N "checking for resize_term... $ECHO_C" >&6; }
30268-cat >conftest.$ac_ext <<_ACEOF
30269-/* confdefs.h. */
30270-_ACEOF
30271-cat confdefs.h >>conftest.$ac_ext
30272-cat >>conftest.$ac_ext <<_ACEOF
30273+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for resize_term" >&5
30274+$as_echo_n "checking for resize_term... " >&6; }
30275+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30276 /* end confdefs.h. */
30277 #include <curses.h>
30278 int
30279@@ -24296,48 +12895,22 @@ void *x=resize_term
30280 return 0;
30281 }
30282 _ACEOF
30283-rm -f conftest.$ac_objext
30284-if { (ac_try="$ac_compile"
30285-case "(($ac_try" in
30286- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30287- *) ac_try_echo=$ac_try;;
30288-esac
30289-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30290- (eval "$ac_compile") 2>conftest.er1
30291- ac_status=$?
30292- grep -v '^ *+' conftest.er1 >conftest.err
30293- rm -f conftest.er1
30294- cat conftest.err >&5
30295- echo "$as_me:$LINENO: \$? = $ac_status" >&5
30296- (exit $ac_status); } && {
30297- test -z "$ac_c_werror_flag" ||
30298- test ! -s conftest.err
30299- } && test -s conftest.$ac_objext; then
30300+if ac_fn_c_try_compile "$LINENO"; then :
30301
30302-cat >>confdefs.h <<\_ACEOF
30303-#define HAVE_CURSES_RESIZE_TERM 1
30304-_ACEOF
30305+$as_echo "#define HAVE_CURSES_RESIZE_TERM 1" >>confdefs.h
30306
30307- { echo "$as_me:$LINENO: result: yes" >&5
30308-echo "${ECHO_T}yes" >&6; }
30309+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30310+$as_echo "yes" >&6; }
30311 else
30312- echo "$as_me: failed program was:" >&5
30313-sed 's/^/| /' conftest.$ac_ext >&5
30314-
30315- { echo "$as_me:$LINENO: result: no" >&5
30316-echo "${ECHO_T}no" >&6; }
30317+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30318+$as_echo "no" >&6; }
30319
30320 fi
30321-
30322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30323
30324-{ echo "$as_me:$LINENO: checking for resizeterm" >&5
30325-echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6; }
30326-cat >conftest.$ac_ext <<_ACEOF
30327-/* confdefs.h. */
30328-_ACEOF
30329-cat confdefs.h >>conftest.$ac_ext
30330-cat >>conftest.$ac_ext <<_ACEOF
30331+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for resizeterm" >&5
30332+$as_echo_n "checking for resizeterm... " >&6; }
30333+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30334 /* end confdefs.h. */
30335 #include <curses.h>
30336 int
30337@@ -24348,89 +12921,61 @@ void *x=resizeterm
30338 return 0;
30339 }
30340 _ACEOF
30341-rm -f conftest.$ac_objext
30342-if { (ac_try="$ac_compile"
30343-case "(($ac_try" in
30344- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30345- *) ac_try_echo=$ac_try;;
30346-esac
30347-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30348- (eval "$ac_compile") 2>conftest.er1
30349- ac_status=$?
30350- grep -v '^ *+' conftest.er1 >conftest.err
30351- rm -f conftest.er1
30352- cat conftest.err >&5
30353- echo "$as_me:$LINENO: \$? = $ac_status" >&5
30354- (exit $ac_status); } && {
30355- test -z "$ac_c_werror_flag" ||
30356- test ! -s conftest.err
30357- } && test -s conftest.$ac_objext; then
30358+if ac_fn_c_try_compile "$LINENO"; then :
30359
30360-cat >>confdefs.h <<\_ACEOF
30361-#define HAVE_CURSES_RESIZETERM 1
30362-_ACEOF
30363+$as_echo "#define HAVE_CURSES_RESIZETERM 1" >>confdefs.h
30364
30365- { echo "$as_me:$LINENO: result: yes" >&5
30366-echo "${ECHO_T}yes" >&6; }
30367+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30368+$as_echo "yes" >&6; }
30369 else
30370- echo "$as_me: failed program was:" >&5
30371-sed 's/^/| /' conftest.$ac_ext >&5
30372-
30373- { echo "$as_me:$LINENO: result: no" >&5
30374-echo "${ECHO_T}no" >&6; }
30375+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30376+$as_echo "no" >&6; }
30377
30378 fi
30379-
30380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30381
30382-{ echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
30383-echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6; }
30384+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5
30385+$as_echo_n "checking for /dev/ptmx... " >&6; }
30386
30387 if test -r /dev/ptmx
30388 then
30389- { echo "$as_me:$LINENO: result: yes" >&5
30390-echo "${ECHO_T}yes" >&6; }
30391+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30392+$as_echo "yes" >&6; }
30393
30394-cat >>confdefs.h <<\_ACEOF
30395-#define HAVE_DEV_PTMX 1
30396-_ACEOF
30397+$as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
30398
30399 else
30400- { echo "$as_me:$LINENO: result: no" >&5
30401-echo "${ECHO_T}no" >&6; }
30402+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30403+$as_echo "no" >&6; }
30404 fi
30405
30406-{ echo "$as_me:$LINENO: checking for /dev/ptc" >&5
30407-echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; }
30408+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5
30409+$as_echo_n "checking for /dev/ptc... " >&6; }
30410
30411 if test -r /dev/ptc
30412 then
30413- { echo "$as_me:$LINENO: result: yes" >&5
30414-echo "${ECHO_T}yes" >&6; }
30415+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30416+$as_echo "yes" >&6; }
30417
30418-cat >>confdefs.h <<\_ACEOF
30419-#define HAVE_DEV_PTC 1
30420-_ACEOF
30421+$as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h
30422
30423 else
30424- { echo "$as_me:$LINENO: result: no" >&5
30425-echo "${ECHO_T}no" >&6; }
30426+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30427+$as_echo "no" >&6; }
30428 fi
30429
30430-{ echo "$as_me:$LINENO: checking for %zd printf() format support" >&5
30431-echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6; }
30432-if test "$cross_compiling" = yes; then
30433- { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
30434-See \`config.log' for more details." >&5
30435-echo "$as_me: error: cannot run test program while cross compiling
30436-See \`config.log' for more details." >&2;}
30437- { (exit 1); exit 1; }; }
30438+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for %zd printf() format support" >&5
30439+$as_echo_n "checking for %zd printf() format support... " >&6; }
30440+if ${ac_cv_printf_zd_format+:} false; then :
30441+ $as_echo_n "(cached) " >&6
30442 else
30443- cat >conftest.$ac_ext <<_ACEOF
30444-/* confdefs.h. */
30445-_ACEOF
30446-cat confdefs.h >>conftest.$ac_ext
30447-cat >>conftest.$ac_ext <<_ACEOF
30448+ if test "$cross_compiling" = yes; then :
30449+ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
30450+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30451+as_fn_error $? "cannot run test program while cross compiling
30452+See \`config.log' for more details" "$LINENO" 5; }
30453+else
30454+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30455 /* end confdefs.h. */
30456 #include <stdio.h>
30457 #include <stddef.h>
30458@@ -24450,7 +12995,7 @@ typedef int Py_ssize_t;
30459
30460 int main()
30461 {
30462- char buffer[256];
30463+ char buffer256;
30464
30465 if(sprintf(buffer, "%zd", (size_t)123) < 0)
30466 return 1;
30467@@ -24467,115 +13012,40 @@ int main()
30468 return 0;
30469 }
30470 _ACEOF
30471-rm -f conftest$ac_exeext
30472-if { (ac_try="$ac_link"
30473-case "(($ac_try" in
30474- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30475- *) ac_try_echo=$ac_try;;
30476-esac
30477-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30478- (eval "$ac_link") 2>&5
30479- ac_status=$?
30480- echo "$as_me:$LINENO: \$? = $ac_status" >&5
30481- (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30482- { (case "(($ac_try" in
30483- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30484- *) ac_try_echo=$ac_try;;
30485-esac
30486-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30487- (eval "$ac_try") 2>&5
30488- ac_status=$?
30489- echo "$as_me:$LINENO: \$? = $ac_status" >&5
30490- (exit $ac_status); }; }; then
30491- { echo "$as_me:$LINENO: result: yes" >&5
30492-echo "${ECHO_T}yes" >&6; }
30493+if ac_fn_c_try_run "$LINENO"; then :
30494+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30495+$as_echo "yes" >&6; }
30496
30497-cat >>confdefs.h <<\_ACEOF
30498-#define PY_FORMAT_SIZE_T "z"
30499-_ACEOF
30500+$as_echo "#define PY_FORMAT_SIZE_T \"z\"" >>confdefs.h
30501
30502 else
30503- echo "$as_me: program exited with status $ac_status" >&5
30504-echo "$as_me: failed program was:" >&5
30505-sed 's/^/| /' conftest.$ac_ext >&5
30506-
30507-( exit $ac_status )
30508-{ echo "$as_me:$LINENO: result: no" >&5
30509-echo "${ECHO_T}no" >&6; }
30510+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30511+$as_echo "no" >&6; }
30512 fi
30513-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30514+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30515+ conftest.$ac_objext conftest.beam conftest.$ac_ext
30516 fi
30517
30518+fi
30519
30520
30521-{ echo "$as_me:$LINENO: checking for socklen_t" >&5
30522-echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
30523-if test "${ac_cv_type_socklen_t+set}" = set; then
30524- echo $ECHO_N "(cached) $ECHO_C" >&6
30525-else
30526- cat >conftest.$ac_ext <<_ACEOF
30527-/* confdefs.h. */
30528-_ACEOF
30529-cat confdefs.h >>conftest.$ac_ext
30530-cat >>conftest.$ac_ext <<_ACEOF
30531-/* end confdefs.h. */
30532-
30533+ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
30534 #ifdef HAVE_SYS_TYPES_H
30535 #include <sys/types.h>
30536 #endif
30537 #ifdef HAVE_SYS_SOCKET_H
30538 #include <sys/socket.h>
30539 #endif
30540+#ifdef _WIN32
30541+#include <ws2tcpip.h>
30542+#endif
30543
30544+"
30545+if test "x$ac_cv_type_socklen_t" = xyes; then :
30546
30547-typedef socklen_t ac__type_new_;
30548-int
30549-main ()
30550-{
30551-if ((ac__type_new_ *) 0)
30552- return 0;
30553-if (sizeof (ac__type_new_))
30554- return 0;
30555- ;
30556- return 0;
30557-}
30558-_ACEOF
30559-rm -f conftest.$ac_objext
30560-if { (ac_try="$ac_compile"
30561-case "(($ac_try" in
30562- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30563- *) ac_try_echo=$ac_try;;
30564-esac
30565-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30566- (eval "$ac_compile") 2>conftest.er1
30567- ac_status=$?
30568- grep -v '^ *+' conftest.er1 >conftest.err
30569- rm -f conftest.er1
30570- cat conftest.err >&5
30571- echo "$as_me:$LINENO: \$? = $ac_status" >&5
30572- (exit $ac_status); } && {
30573- test -z "$ac_c_werror_flag" ||
30574- test ! -s conftest.err
30575- } && test -s conftest.$ac_objext; then
30576- ac_cv_type_socklen_t=yes
30577-else
30578- echo "$as_me: failed program was:" >&5
30579-sed 's/^/| /' conftest.$ac_ext >&5
30580-
30581- ac_cv_type_socklen_t=no
30582-fi
30583-
30584-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30585-fi
30586-{ echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
30587-echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
30588-if test $ac_cv_type_socklen_t = yes; then
30589- :
30590 else
30591
30592-cat >>confdefs.h <<\_ACEOF
30593-#define socklen_t int
30594-_ACEOF
30595+$as_echo "#define socklen_t int" >>confdefs.h
30596
30597 fi
30598
30599@@ -24589,15 +13059,80 @@ done
30600
30601
30602 SRCDIRS="Parser Grammar Objects Python Modules Mac"
30603-{ echo "$as_me:$LINENO: checking for build directories" >&5
30604-echo $ECHO_N "checking for build directories... $ECHO_C" >&6; }
30605+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for build directories" >&5
30606+$as_echo_n "checking for build directories... " >&6; }
30607 for dir in $SRCDIRS; do
30608 if test ! -d $dir; then
30609 mkdir $dir
30610 fi
30611 done
30612-{ echo "$as_me:$LINENO: result: done" >&5
30613-echo "${ECHO_T}done" >&6; }
30614+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
30615+$as_echo "done" >&6; }
30616+
30617+# Cross compiling
30618+
30619+
30620+if test "$cross_compiling" = "yes"; then
30621+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking cc for build" >&5
30622+$as_echo_n "checking cc for build... " >&6; }
30623+ ## /usr/bin/cc still uses wrong assembler
30624+ ## CC_FOR_BUILD="${CC_FOR_BUILD-/usr/bin/cc}"
30625+ CC_FOR_BUILD="${CC_FOR_BUILD-PATH=/usr/bin:$PATH cc}"
30626+else
30627+ CC_FOR_BUILD="${CC_FOR_BUILD-$CC}"
30628+fi
30629+
30630+if test "$cross_compiling" = "yes"; then
30631+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
30632+$as_echo "$CC_FOR_BUILD" >&6; }
30633+fi
30634+
30635+
30636+
30637+if test "$cross_compiling" = "yes"; then
30638+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking python for build" >&5
30639+$as_echo_n "checking python for build... " >&6; }
30640+ PYTHON_FOR_BUILD="${PYTHON_FOR_BUILD-python}"
30641+else
30642+ PYTHON_FOR_BUILD='$(BUILDPYTHON)'
30643+fi
30644+
30645+if test "$cross_compiling" = "yes"; then
30646+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_FOR_BUILD" >&5
30647+$as_echo "$PYTHON_FOR_BUILD" >&6; }
30648+fi
30649+
30650+
30651+
30652+if test "$cross_compiling" = "yes"; then
30653+ CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-}
30654+ #dnl
30655+ python_include=`$PYTHON_FOR_BUILD -c 'import sys; sys.stdout.write ("%s/include/python%s" % (sys.prefix, sys.version[:3]))'`
30656+ #dnl
30657+ CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"-I$python_include"}
30658+ CROSS_COMMENT=#
30659+ if test "$case_sensitive" = "yes"
30660+ then
30661+ EXEEXT_FOR_BUILD=
30662+ else
30663+ EXEEXT_FOR_BUILD=.exe
30664+ fi
30665+ LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-}
30666+ LIBS_FOR_BUILD=${LIBS_FOR_BUILD-}
30667+ O_FOR_BUILD=x
30668+ RUNSHARED="CROSS_TARGET=$ac_sys_system SRCDIR=$srcdir SO=${SO}"
30669+else
30670+ CROSS_COMMENT=
30671+ EXEEXT_FOR_BUILD=$BUILDEXEEXT
30672+ O_FOR_BUILD=o
30673+fi
30674+
30675+
30676+
30677+
30678+
30679+
30680+
30681
30682 # generate output files
30683 ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config"
30684@@ -24629,12 +13164,13 @@ _ACEOF
30685 case $ac_val in #(
30686 *${as_nl}*)
30687 case $ac_var in #(
30688- *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
30689-echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
30690+ *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
30691+$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30692 esac
30693 case $ac_var in #(
30694 _ | IFS | as_nl) ;; #(
30695- *) $as_unset $ac_var ;;
30696+ BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
30697+ *) { eval $ac_var=; unset $ac_var;} ;;
30698 esac ;;
30699 esac
30700 done
30701@@ -24642,8 +13178,8 @@ echo "$as_me: WARNING: Cache variable $a
30702 (set) 2>&1 |
30703 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30704 *${as_nl}ac_space=\ *)
30705- # `set' does not quote correctly, so add quotes (double-quote
30706- # substitution turns \\\\ into \\, and sed turns \\ into \).
30707+ # `set' does not quote correctly, so add quotes: double-quote
30708+ # substitution turns \\\\ into \\, and sed turns \\ into \.
30709 sed -n \
30710 "s/'/'\\\\''/g;
30711 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30712@@ -24665,13 +13201,24 @@ echo "$as_me: WARNING: Cache variable $a
30713 :end' >>confcache
30714 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30715 if test -w "$cache_file"; then
30716- test "x$cache_file" != "x/dev/null" &&
30717- { echo "$as_me:$LINENO: updating cache $cache_file" >&5
30718-echo "$as_me: updating cache $cache_file" >&6;}
30719- cat confcache >$cache_file
30720+ if test "x$cache_file" != "x/dev/null"; then
30721+ { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
30722+$as_echo "$as_me: updating cache $cache_file" >&6;}
30723+ if test ! -f "$cache_file" || test -h "$cache_file"; then
30724+ cat confcache >"$cache_file"
30725+ else
30726+ case $cache_file in #(
30727+ */* | ?:*)
30728+ mv -f confcache "$cache_file"$$ &&
30729+ mv -f "$cache_file"$$ "$cache_file" ;; #(
30730+ *)
30731+ mv -f confcache "$cache_file" ;;
30732+ esac
30733+ fi
30734+ fi
30735 else
30736- { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
30737-echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30738+ { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
30739+$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30740 fi
30741 fi
30742 rm -f confcache
30743@@ -24684,14 +13231,15 @@ DEFS=-DHAVE_CONFIG_H
30744
30745 ac_libobjs=
30746 ac_ltlibobjs=
30747+U=
30748 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30749 # 1. Remove the extension, and $U if already installed.
30750 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30751- ac_i=`echo "$ac_i" | sed "$ac_script"`
30752+ ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
30753 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30754 # will be set to the directory where LIBOBJS objects are built.
30755- ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30756- ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
30757+ as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30758+ as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
30759 done
30760 LIBOBJS=$ac_libobjs
30761
30762@@ -24699,12 +13247,15 @@ LTLIBOBJS=$ac_ltlibobjs
30763
30764
30765
30766-: ${CONFIG_STATUS=./config.status}
30767+
30768+: "${CONFIG_STATUS=./config.status}"
30769+ac_write_fail=0
30770 ac_clean_files_save=$ac_clean_files
30771 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30772-{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30773-echo "$as_me: creating $CONFIG_STATUS" >&6;}
30774-cat >$CONFIG_STATUS <<_ACEOF
30775+{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
30776+$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30777+as_write_fail=0
30778+cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
30779 #! $SHELL
30780 # Generated by $as_me.
30781 # Run this file to recreate the current configuration.
30782@@ -24714,59 +13265,79 @@ cat >$CONFIG_STATUS <<_ACEOF
30783 debug=false
30784 ac_cs_recheck=false
30785 ac_cs_silent=false
30786-SHELL=\${CONFIG_SHELL-$SHELL}
30787-_ACEOF
30788
30789-cat >>$CONFIG_STATUS <<\_ACEOF
30790-## --------------------- ##
30791-## M4sh Initialization. ##
30792-## --------------------- ##
30793+SHELL=\${CONFIG_SHELL-$SHELL}
30794+export SHELL
30795+_ASEOF
30796+cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
30797+## -------------------- ##
30798+## M4sh Initialization. ##
30799+## -------------------- ##
30800
30801 # Be more Bourne compatible
30802 DUALCASE=1; export DUALCASE # for MKS sh
30803-if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30804+if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
30805 emulate sh
30806 NULLCMD=:
30807- # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30808+ # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30809 # is contrary to our usage. Disable this feature.
30810 alias -g '${1+"$@"}'='"$@"'
30811 setopt NO_GLOB_SUBST
30812 else
30813- case `(set -o) 2>/dev/null` in
30814- *posix*) set -o posix ;;
30815+ case `(set -o) 2>/dev/null` in #(
30816+ *posix*) :
30817+ set -o posix ;; #(
30818+ *) :
30819+ ;;
30820 esac
30821-
30822 fi
30823
30824
30825-
30826-
30827-# PATH needs CR
30828-# Avoid depending upon Character Ranges.
30829-as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30830-as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30831-as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30832-as_cr_digits='0123456789'
30833-as_cr_alnum=$as_cr_Letters$as_cr_digits
30834-
30835-# The user is always right.
30836-if test "${PATH_SEPARATOR+set}" != set; then
30837- echo "#! /bin/sh" >conf$$.sh
30838- echo "exit 0" >>conf$$.sh
30839- chmod +x conf$$.sh
30840- if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30841- PATH_SEPARATOR=';'
30842+as_nl='
30843+'
30844+export as_nl
30845+# Printing a long string crashes Solaris 7 /usr/bin/printf.
30846+as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30847+as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30848+as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30849+# Prefer a ksh shell builtin over an external printf program on Solaris,
30850+# but without wasting forks for bash or zsh.
30851+if test -z "$BASH_VERSION$ZSH_VERSION" \
30852+ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
30853+ as_echo='print -r --'
30854+ as_echo_n='print -rn --'
30855+elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30856+ as_echo='printf %s\n'
30857+ as_echo_n='printf %s'
30858+else
30859+ if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30860+ as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
30861+ as_echo_n='/usr/ucb/echo -n'
30862 else
30863- PATH_SEPARATOR=:
30864+ as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30865+ as_echo_n_body='eval
30866+ arg=$1;
30867+ case $arg in #(
30868+ *"$as_nl"*)
30869+ expr "X$arg" : "X\\(.*\\)$as_nl";
30870+ arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30871+ esac;
30872+ expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
30873+ '
30874+ export as_echo_n_body
30875+ as_echo_n='sh -c $as_echo_n_body as_echo'
30876 fi
30877- rm -f conf$$.sh
30878+ export as_echo_body
30879+ as_echo='sh -c $as_echo_body as_echo'
30880 fi
30881
30882-# Support unset when possible.
30883-if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30884- as_unset=unset
30885-else
30886- as_unset=false
30887+# The user is always right.
30888+if test "${PATH_SEPARATOR+set}" != set; then
30889+ PATH_SEPARATOR=:
30890+ (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30891+ (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30892+ PATH_SEPARATOR=';'
30893+ }
30894 fi
30895
30896
30897@@ -24775,20 +13346,19 @@ fi
30898 # there to prevent editors from complaining about space-tab.
30899 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30900 # splitting by setting IFS to empty value.)
30901-as_nl='
30902-'
30903 IFS=" "" $as_nl"
30904
30905 # Find who we are. Look in the path if we contain no directory separator.
30906-case $0 in
30907+as_myself=
30908+case $0 in #((
30909 *[\\/]* ) as_myself=$0 ;;
30910 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30911 for as_dir in $PATH
30912 do
30913 IFS=$as_save_IFS
30914 test -z "$as_dir" && as_dir=.
30915- test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30916-done
30917+ test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30918+ done
30919 IFS=$as_save_IFS
30920
30921 ;;
30922@@ -24799,32 +13369,111 @@ if test "x$as_myself" = x; then
30923 as_myself=$0
30924 fi
30925 if test ! -f "$as_myself"; then
30926- echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30927- { (exit 1); exit 1; }
30928+ $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30929+ exit 1
30930 fi
30931
30932-# Work around bugs in pre-3.0 UWIN ksh.
30933-for as_var in ENV MAIL MAILPATH
30934-do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30935+# Unset variables that we do not need and which cause bugs (e.g. in
30936+# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
30937+# suppresses any "Segmentation fault" message there. '((' could
30938+# trigger a bug in pdksh 5.2.14.
30939+for as_var in BASH_ENV ENV MAIL MAILPATH
30940+do eval test x\${$as_var+set} = xset \
30941+ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
30942 done
30943 PS1='$ '
30944 PS2='> '
30945 PS4='+ '
30946
30947 # NLS nuisances.
30948-for as_var in \
30949- LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30950- LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30951- LC_TELEPHONE LC_TIME
30952-do
30953- if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30954- eval $as_var=C; export $as_var
30955- else
30956- ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30957- fi
30958-done
30959+LC_ALL=C
30960+export LC_ALL
30961+LANGUAGE=C
30962+export LANGUAGE
30963+
30964+# CDPATH.
30965+(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30966+
30967+
30968+# as_fn_error STATUS ERROR [LINENO LOG_FD]
30969+# ----------------------------------------
30970+# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
30971+# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
30972+# script with STATUS, using 1 if that was 0.
30973+as_fn_error ()
30974+{
30975+ as_status=$1; test $as_status -eq 0 && as_status=1
30976+ if test "$4"; then
30977+ as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
30978+ $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
30979+ fi
30980+ $as_echo "$as_me: error: $2" >&2
30981+ as_fn_exit $as_status
30982+} # as_fn_error
30983+
30984+
30985+# as_fn_set_status STATUS
30986+# -----------------------
30987+# Set $? to STATUS, without forking.
30988+as_fn_set_status ()
30989+{
30990+ return $1
30991+} # as_fn_set_status
30992+
30993+# as_fn_exit STATUS
30994+# -----------------
30995+# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
30996+as_fn_exit ()
30997+{
30998+ set +e
30999+ as_fn_set_status $1
31000+ exit $1
31001+} # as_fn_exit
31002+
31003+# as_fn_unset VAR
31004+# ---------------
31005+# Portably unset VAR.
31006+as_fn_unset ()
31007+{
31008+ { eval $1=; unset $1;}
31009+}
31010+as_unset=as_fn_unset
31011+# as_fn_append VAR VALUE
31012+# ----------------------
31013+# Append the text in VALUE to the end of the definition contained in VAR. Take
31014+# advantage of any shell optimizations that allow amortized linear growth over
31015+# repeated appends, instead of the typical quadratic growth present in naive
31016+# implementations.
31017+if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
31018+ eval 'as_fn_append ()
31019+ {
31020+ eval $1+=\$2
31021+ }'
31022+else
31023+ as_fn_append ()
31024+ {
31025+ eval $1=\$$1\$2
31026+ }
31027+fi # as_fn_append
31028+
31029+# as_fn_arith ARG...
31030+# ------------------
31031+# Perform arithmetic evaluation on the ARGs, and store the result in the
31032+# global $as_val. Take advantage of shells that can avoid forks. The arguments
31033+# must be portable across $(()) and expr.
31034+if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
31035+ eval 'as_fn_arith ()
31036+ {
31037+ as_val=$(( $* ))
31038+ }'
31039+else
31040+ as_fn_arith ()
31041+ {
31042+ as_val=`expr "$@" || test $? -eq 1`
31043+ }
31044+fi # as_fn_arith
31045+
31046
31047-# Required to use basename.
31048 if expr a : '\(a\)' >/dev/null 2>&1 &&
31049 test "X`expr 00001 : '.*\(...\)'`" = X001; then
31050 as_expr=expr
31051@@ -24838,13 +13487,17 @@ else
31052 as_basename=false
31053 fi
31054
31055+if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
31056+ as_dirname=dirname
31057+else
31058+ as_dirname=false
31059+fi
31060
31061-# Name of the executable.
31062 as_me=`$as_basename -- "$0" ||
31063 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31064 X"$0" : 'X\(//\)$' \| \
31065 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31066-echo X/"$0" |
31067+$as_echo X/"$0" |
31068 sed '/^.*\/\([^/][^/]*\)\/*$/{
31069 s//\1/
31070 q
31071@@ -24859,104 +13512,103 @@ echo X/"$0" |
31072 }
31073 s/.*/./; q'`
31074
31075-# CDPATH.
31076-$as_unset CDPATH
31077-
31078-
31079-
31080- as_lineno_1=$LINENO
31081- as_lineno_2=$LINENO
31082- test "x$as_lineno_1" != "x$as_lineno_2" &&
31083- test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
31084-
31085- # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
31086- # uniformly replaced by the line number. The first 'sed' inserts a
31087- # line-number line after each line using $LINENO; the second 'sed'
31088- # does the real work. The second script uses 'N' to pair each
31089- # line-number line with the line containing $LINENO, and appends
31090- # trailing '-' during substitution so that $LINENO is not a special
31091- # case at line end.
31092- # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
31093- # scripts with optimization help from Paolo Bonzini. Blame Lee
31094- # E. McMahon (1931-1989) for sed's syntax. :-)
31095- sed -n '
31096- p
31097- /[$]LINENO/=
31098- ' <$as_myself |
31099- sed '
31100- s/[$]LINENO.*/&-/
31101- t lineno
31102- b
31103- :lineno
31104- N
31105- :loop
31106- s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
31107- t loop
31108- s/-\n.*//
31109- ' >$as_me.lineno &&
31110- chmod +x "$as_me.lineno" ||
31111- { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
31112- { (exit 1); exit 1; }; }
31113-
31114- # Don't try to exec as it changes $[0], causing all sort of problems
31115- # (the dirname of $[0] is not the place where we might find the
31116- # original and so on. Autoconf is especially sensitive to this).
31117- . "./$as_me.lineno"
31118- # Exit status is that of the last command.
31119- exit
31120-}
31121-
31122-
31123-if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
31124- as_dirname=dirname
31125-else
31126- as_dirname=false
31127-fi
31128+# Avoid depending upon Character Ranges.
31129+as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31130+as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31131+as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31132+as_cr_digits='0123456789'
31133+as_cr_alnum=$as_cr_Letters$as_cr_digits
31134
31135 ECHO_C= ECHO_N= ECHO_T=
31136-case `echo -n x` in
31137+case `echo -n x` in #(((((
31138 -n*)
31139- case `echo 'x\c'` in
31140+ case `echo 'xy\c'` in
31141 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
31142- *) ECHO_C='\c';;
31143+ xy) ECHO_C='\c';;
31144+ *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
31145+ ECHO_T=' ';;
31146 esac;;
31147 *)
31148 ECHO_N='-n';;
31149 esac
31150
31151-if expr a : '\(a\)' >/dev/null 2>&1 &&
31152- test "X`expr 00001 : '.*\(...\)'`" = X001; then
31153- as_expr=expr
31154-else
31155- as_expr=false
31156-fi
31157-
31158 rm -f conf$$ conf$$.exe conf$$.file
31159 if test -d conf$$.dir; then
31160 rm -f conf$$.dir/conf$$.file
31161 else
31162 rm -f conf$$.dir
31163- mkdir conf$$.dir
31164+ mkdir conf$$.dir 2>/dev/null
31165 fi
31166-echo >conf$$.file
31167-if ln -s conf$$.file conf$$ 2>/dev/null; then
31168- as_ln_s='ln -s'
31169- # ... but there are two gotchas:
31170- # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31171- # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31172- # In both cases, we have to default to `cp -p'.
31173- ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31174+if (echo >conf$$.file) 2>/dev/null; then
31175+ if ln -s conf$$.file conf$$ 2>/dev/null; then
31176+ as_ln_s='ln -s'
31177+ # ... but there are two gotchas:
31178+ # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31179+ # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31180+ # In both cases, we have to default to `cp -p'.
31181+ ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31182+ as_ln_s='cp -p'
31183+ elif ln conf$$.file conf$$ 2>/dev/null; then
31184+ as_ln_s=ln
31185+ else
31186 as_ln_s='cp -p'
31187-elif ln conf$$.file conf$$ 2>/dev/null; then
31188- as_ln_s=ln
31189+ fi
31190 else
31191 as_ln_s='cp -p'
31192 fi
31193 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31194 rmdir conf$$.dir 2>/dev/null
31195
31196+
31197+# as_fn_mkdir_p
31198+# -------------
31199+# Create "$as_dir" as a directory, including parents if necessary.
31200+as_fn_mkdir_p ()
31201+{
31202+
31203+ case $as_dir in #(
31204+ -*) as_dir=./$as_dir;;
31205+ esac
31206+ test -d "$as_dir" || eval $as_mkdir_p || {
31207+ as_dirs=
31208+ while :; do
31209+ case $as_dir in #(
31210+ *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31211+ *) as_qdir=$as_dir;;
31212+ esac
31213+ as_dirs="'$as_qdir' $as_dirs"
31214+ as_dir=`$as_dirname -- "$as_dir" ||
31215+$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31216+ X"$as_dir" : 'X\(//\)[^/]' \| \
31217+ X"$as_dir" : 'X\(//\)$' \| \
31218+ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31219+$as_echo X"$as_dir" |
31220+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31221+ s//\1/
31222+ q
31223+ }
31224+ /^X\(\/\/\)[^/].*/{
31225+ s//\1/
31226+ q
31227+ }
31228+ /^X\(\/\/\)$/{
31229+ s//\1/
31230+ q
31231+ }
31232+ /^X\(\/\).*/{
31233+ s//\1/
31234+ q
31235+ }
31236+ s/.*/./; q'`
31237+ test -d "$as_dir" && break
31238+ done
31239+ test -z "$as_dirs" || eval "mkdir $as_dirs"
31240+ } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
31241+
31242+
31243+} # as_fn_mkdir_p
31244 if mkdir -p . 2>/dev/null; then
31245- as_mkdir_p=:
31246+ as_mkdir_p='mkdir -p "$as_dir"'
31247 else
31248 test -d ./-p && rmdir ./-p
31249 as_mkdir_p=false
31250@@ -24973,12 +13625,12 @@ else
31251 as_test_x='
31252 eval sh -c '\''
31253 if test -d "$1"; then
31254- test -d "$1/.";
31255+ test -d "$1/.";
31256 else
31257- case $1 in
31258- -*)set "./$1";;
31259+ case $1 in #(
31260+ -*)set "./$1";;
31261 esac;
31262- case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
31263+ case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
31264 ???[sx]*):;;*)false;;esac;fi
31265 '\'' sh
31266 '
31267@@ -24993,13 +13645,19 @@ as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr
31268
31269
31270 exec 6>&1
31271+## ----------------------------------- ##
31272+## Main body of $CONFIG_STATUS script. ##
31273+## ----------------------------------- ##
31274+_ASEOF
31275+test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
31276
31277-# Save the log message, to keep $[0] and so on meaningful, and to
31278+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31279+# Save the log message, to keep $0 and so on meaningful, and to
31280 # report actual input values of CONFIG_FILES etc. instead of their
31281 # values after options handling.
31282 ac_log="
31283 This file was extended by python $as_me 2.6, which was
31284-generated by GNU Autoconf 2.61. Invocation command line was
31285+generated by GNU Autoconf 2.68. Invocation command line was
31286
31287 CONFIG_FILES = $CONFIG_FILES
31288 CONFIG_HEADERS = $CONFIG_HEADERS
31289@@ -25012,29 +13670,41 @@ on `(hostname || uname -n) 2>/dev/null |
31290
31291 _ACEOF
31292
31293-cat >>$CONFIG_STATUS <<_ACEOF
31294+case $ac_config_files in *"
31295+"*) set x $ac_config_files; shift; ac_config_files=$*;;
31296+esac
31297+
31298+case $ac_config_headers in *"
31299+"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
31300+esac
31301+
31302+
31303+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31304 # Files that config.status was made for.
31305 config_files="$ac_config_files"
31306 config_headers="$ac_config_headers"
31307
31308 _ACEOF
31309
31310-cat >>$CONFIG_STATUS <<\_ACEOF
31311+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31312 ac_cs_usage="\
31313-\`$as_me' instantiates files from templates according to the
31314-current configuration.
31315+\`$as_me' instantiates files and other configuration actions
31316+from templates according to the current configuration. Unless the files
31317+and actions are specified as TAGs, all are instantiated by default.
31318
31319-Usage: $0 [OPTIONS] [FILE]...
31320+Usage: $0 [OPTION]... [TAG]...
31321
31322 -h, --help print this help, then exit
31323 -V, --version print version number and configuration settings, then exit
31324- -q, --quiet do not print progress messages
31325+ --config print configuration, then exit
31326+ -q, --quiet, --silent
31327+ do not print progress messages
31328 -d, --debug don't remove temporary files
31329 --recheck update $as_me by reconfiguring in the same conditions
31330- --file=FILE[:TEMPLATE]
31331- instantiate the configuration file FILE
31332- --header=FILE[:TEMPLATE]
31333- instantiate the configuration header FILE
31334+ --file=FILE[:TEMPLATE]
31335+ instantiate the configuration file FILE
31336+ --header=FILE[:TEMPLATE]
31337+ instantiate the configuration header FILE
31338
31339 Configuration files:
31340 $config_files
31341@@ -25042,36 +13712,42 @@ $config_files
31342 Configuration headers:
31343 $config_headers
31344
31345-Report bugs to <bug-autoconf@gnu.org>."
31346+Report bugs to <http://www.python.org/python-bugs>."
31347
31348 _ACEOF
31349-cat >>$CONFIG_STATUS <<_ACEOF
31350+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31351+ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
31352 ac_cs_version="\\
31353 python config.status 2.6
31354-configured by $0, generated by GNU Autoconf 2.61,
31355- with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
31356+configured by $0, generated by GNU Autoconf 2.68,
31357+ with options \\"\$ac_cs_config\\"
31358
31359-Copyright (C) 2006 Free Software Foundation, Inc.
31360+Copyright (C) 2010 Free Software Foundation, Inc.
31361 This config.status script is free software; the Free Software Foundation
31362 gives unlimited permission to copy, distribute and modify it."
31363
31364 ac_pwd='$ac_pwd'
31365 srcdir='$srcdir'
31366 INSTALL='$INSTALL'
31367+test -n "\$AWK" || AWK=awk
31368 _ACEOF
31369
31370-cat >>$CONFIG_STATUS <<\_ACEOF
31371-# If no file are specified by the user, then we need to provide default
31372-# value. By we need to know if files were specified by the user.
31373+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31374+# The default lists apply if the user does not specify any file.
31375 ac_need_defaults=:
31376 while test $# != 0
31377 do
31378 case $1 in
31379- --*=*)
31380+ --*=?*)
31381 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31382 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31383 ac_shift=:
31384 ;;
31385+ --*=)
31386+ ac_option=`expr "X$1" : 'X\([^=]*\)='`
31387+ ac_optarg=
31388+ ac_shift=:
31389+ ;;
31390 *)
31391 ac_option=$1
31392 ac_optarg=$2
31393@@ -25084,34 +13760,41 @@ do
31394 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31395 ac_cs_recheck=: ;;
31396 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31397- echo "$ac_cs_version"; exit ;;
31398+ $as_echo "$ac_cs_version"; exit ;;
31399+ --config | --confi | --conf | --con | --co | --c )
31400+ $as_echo "$ac_cs_config"; exit ;;
31401 --debug | --debu | --deb | --de | --d | -d )
31402 debug=: ;;
31403 --file | --fil | --fi | --f )
31404 $ac_shift
31405- CONFIG_FILES="$CONFIG_FILES $ac_optarg"
31406+ case $ac_optarg in
31407+ *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31408+ '') as_fn_error $? "missing file argument" ;;
31409+ esac
31410+ as_fn_append CONFIG_FILES " '$ac_optarg'"
31411 ac_need_defaults=false;;
31412 --header | --heade | --head | --hea )
31413 $ac_shift
31414- CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
31415+ case $ac_optarg in
31416+ *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31417+ esac
31418+ as_fn_append CONFIG_HEADERS " '$ac_optarg'"
31419 ac_need_defaults=false;;
31420 --he | --h)
31421 # Conflict between --help and --header
31422- { echo "$as_me: error: ambiguous option: $1
31423-Try \`$0 --help' for more information." >&2
31424- { (exit 1); exit 1; }; };;
31425+ as_fn_error $? "ambiguous option: \`$1'
31426+Try \`$0 --help' for more information.";;
31427 --help | --hel | -h )
31428- echo "$ac_cs_usage"; exit ;;
31429+ $as_echo "$ac_cs_usage"; exit ;;
31430 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31431 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31432 ac_cs_silent=: ;;
31433
31434 # This is an error.
31435- -*) { echo "$as_me: error: unrecognized option: $1
31436-Try \`$0 --help' for more information." >&2
31437- { (exit 1); exit 1; }; } ;;
31438+ -*) as_fn_error $? "unrecognized option: \`$1'
31439+Try \`$0 --help' for more information." ;;
31440
31441- *) ac_config_targets="$ac_config_targets $1"
31442+ *) as_fn_append ac_config_targets " $1"
31443 ac_need_defaults=false ;;
31444
31445 esac
31446@@ -25126,30 +13809,32 @@ if $ac_cs_silent; then
31447 fi
31448
31449 _ACEOF
31450-cat >>$CONFIG_STATUS <<_ACEOF
31451+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31452 if \$ac_cs_recheck; then
31453- echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
31454- CONFIG_SHELL=$SHELL
31455+ set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31456+ shift
31457+ \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31458+ CONFIG_SHELL='$SHELL'
31459 export CONFIG_SHELL
31460- exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31461+ exec "\$@"
31462 fi
31463
31464 _ACEOF
31465-cat >>$CONFIG_STATUS <<\_ACEOF
31466+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31467 exec 5>>config.log
31468 {
31469 echo
31470 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31471 ## Running $as_me. ##
31472 _ASBOX
31473- echo "$ac_log"
31474+ $as_echo "$ac_log"
31475 } >&5
31476
31477 _ACEOF
31478-cat >>$CONFIG_STATUS <<_ACEOF
31479+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31480 _ACEOF
31481
31482-cat >>$CONFIG_STATUS <<\_ACEOF
31483+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31484
31485 # Handling of arguments.
31486 for ac_config_target in $ac_config_targets
31487@@ -25164,9 +13849,7 @@ do
31488 "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;;
31489 "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;;
31490
31491- *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31492-echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31493- { (exit 1); exit 1; }; };;
31494+ *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
31495 esac
31496 done
31497
31498@@ -25188,271 +13871,302 @@ fi
31499 # after its creation but before its name has been assigned to `$tmp'.
31500 $debug ||
31501 {
31502- tmp=
31503+ tmp= ac_tmp=
31504 trap 'exit_status=$?
31505- { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
31506+ : "${ac_tmp:=$tmp}"
31507+ { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
31508 ' 0
31509- trap '{ (exit 1); exit 1; }' 1 2 13 15
31510+ trap 'as_fn_exit 1' 1 2 13 15
31511 }
31512 # Create a (secure) tmp directory for tmp files.
31513
31514 {
31515 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31516- test -n "$tmp" && test -d "$tmp"
31517+ test -d "$tmp"
31518 } ||
31519 {
31520 tmp=./conf$$-$RANDOM
31521 (umask 077 && mkdir "$tmp")
31522-} ||
31523-{
31524- echo "$me: cannot create a temporary directory in ." >&2
31525- { (exit 1); exit 1; }
31526-}
31527+} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
31528+ac_tmp=$tmp
31529
31530-#
31531-# Set up the sed scripts for CONFIG_FILES section.
31532-#
31533-
31534-# No need to generate the scripts if there are no CONFIG_FILES.
31535-# This happens for instance when ./config.status config.h
31536+# Set up the scripts for CONFIG_FILES section.
31537+# No need to generate them if there are no CONFIG_FILES.
31538+# This happens for instance with `./config.status config.h'.
31539 if test -n "$CONFIG_FILES"; then
31540
31541-_ACEOF
31542-
31543-
31544-
31545-ac_delim='%!_!# '
31546-for ac_last_try in false false false false false :; do
31547- cat >conf$$subs.sed <<_ACEOF
31548-SHELL!$SHELL$ac_delim
31549-PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
31550-PACKAGE_NAME!$PACKAGE_NAME$ac_delim
31551-PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
31552-PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
31553-PACKAGE_STRING!$PACKAGE_STRING$ac_delim
31554-PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
31555-exec_prefix!$exec_prefix$ac_delim
31556-prefix!$prefix$ac_delim
31557-program_transform_name!$program_transform_name$ac_delim
31558-bindir!$bindir$ac_delim
31559-sbindir!$sbindir$ac_delim
31560-libexecdir!$libexecdir$ac_delim
31561-datarootdir!$datarootdir$ac_delim
31562-datadir!$datadir$ac_delim
31563-sysconfdir!$sysconfdir$ac_delim
31564-sharedstatedir!$sharedstatedir$ac_delim
31565-localstatedir!$localstatedir$ac_delim
31566-includedir!$includedir$ac_delim
31567-oldincludedir!$oldincludedir$ac_delim
31568-docdir!$docdir$ac_delim
31569-infodir!$infodir$ac_delim
31570-htmldir!$htmldir$ac_delim
31571-dvidir!$dvidir$ac_delim
31572-pdfdir!$pdfdir$ac_delim
31573-psdir!$psdir$ac_delim
31574-libdir!$libdir$ac_delim
31575-localedir!$localedir$ac_delim
31576-mandir!$mandir$ac_delim
31577-DEFS!$DEFS$ac_delim
31578-ECHO_C!$ECHO_C$ac_delim
31579-ECHO_N!$ECHO_N$ac_delim
31580-ECHO_T!$ECHO_T$ac_delim
31581-LIBS!$LIBS$ac_delim
31582-build_alias!$build_alias$ac_delim
31583-host_alias!$host_alias$ac_delim
31584-target_alias!$target_alias$ac_delim
31585-VERSION!$VERSION$ac_delim
31586-SOVERSION!$SOVERSION$ac_delim
31587-CONFIG_ARGS!$CONFIG_ARGS$ac_delim
31588-UNIVERSALSDK!$UNIVERSALSDK$ac_delim
31589-ARCH_RUN_32BIT!$ARCH_RUN_32BIT$ac_delim
31590-PYTHONFRAMEWORK!$PYTHONFRAMEWORK$ac_delim
31591-PYTHONFRAMEWORKIDENTIFIER!$PYTHONFRAMEWORKIDENTIFIER$ac_delim
31592-PYTHONFRAMEWORKDIR!$PYTHONFRAMEWORKDIR$ac_delim
31593-PYTHONFRAMEWORKPREFIX!$PYTHONFRAMEWORKPREFIX$ac_delim
31594-PYTHONFRAMEWORKINSTALLDIR!$PYTHONFRAMEWORKINSTALLDIR$ac_delim
31595-FRAMEWORKINSTALLFIRST!$FRAMEWORKINSTALLFIRST$ac_delim
31596-FRAMEWORKINSTALLLAST!$FRAMEWORKINSTALLLAST$ac_delim
31597-FRAMEWORKALTINSTALLFIRST!$FRAMEWORKALTINSTALLFIRST$ac_delim
31598-FRAMEWORKALTINSTALLLAST!$FRAMEWORKALTINSTALLLAST$ac_delim
31599-FRAMEWORKUNIXTOOLSPREFIX!$FRAMEWORKUNIXTOOLSPREFIX$ac_delim
31600-MACHDEP!$MACHDEP$ac_delim
31601-SGI_ABI!$SGI_ABI$ac_delim
31602-EXTRAPLATDIR!$EXTRAPLATDIR$ac_delim
31603-EXTRAMACHDEPPATH!$EXTRAMACHDEPPATH$ac_delim
31604-CONFIGURE_MACOSX_DEPLOYMENT_TARGET!$CONFIGURE_MACOSX_DEPLOYMENT_TARGET$ac_delim
31605-EXPORT_MACOSX_DEPLOYMENT_TARGET!$EXPORT_MACOSX_DEPLOYMENT_TARGET$ac_delim
31606-CC!$CC$ac_delim
31607-CFLAGS!$CFLAGS$ac_delim
31608-LDFLAGS!$LDFLAGS$ac_delim
31609-CPPFLAGS!$CPPFLAGS$ac_delim
31610-ac_ct_CC!$ac_ct_CC$ac_delim
31611-EXEEXT!$EXEEXT$ac_delim
31612-OBJEXT!$OBJEXT$ac_delim
31613-CXX!$CXX$ac_delim
31614-MAINCC!$MAINCC$ac_delim
31615-CPP!$CPP$ac_delim
31616-GREP!$GREP$ac_delim
31617-EGREP!$EGREP$ac_delim
31618-BUILDEXEEXT!$BUILDEXEEXT$ac_delim
31619-LIBRARY!$LIBRARY$ac_delim
31620-LDLIBRARY!$LDLIBRARY$ac_delim
31621-DLLLIBRARY!$DLLLIBRARY$ac_delim
31622-BLDLIBRARY!$BLDLIBRARY$ac_delim
31623-LDLIBRARYDIR!$LDLIBRARYDIR$ac_delim
31624-INSTSONAME!$INSTSONAME$ac_delim
31625-RUNSHARED!$RUNSHARED$ac_delim
31626-LINKCC!$LINKCC$ac_delim
31627-RANLIB!$RANLIB$ac_delim
31628-AR!$AR$ac_delim
31629-SVNVERSION!$SVNVERSION$ac_delim
31630-INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
31631-INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
31632-INSTALL_DATA!$INSTALL_DATA$ac_delim
31633-LN!$LN$ac_delim
31634-OPT!$OPT$ac_delim
31635-BASECFLAGS!$BASECFLAGS$ac_delim
31636-UNIVERSAL_ARCH_FLAGS!$UNIVERSAL_ARCH_FLAGS$ac_delim
31637-OTHER_LIBTOOL_OPT!$OTHER_LIBTOOL_OPT$ac_delim
31638-LIBTOOL_CRUFT!$LIBTOOL_CRUFT$ac_delim
31639-SO!$SO$ac_delim
31640-LDSHARED!$LDSHARED$ac_delim
31641-BLDSHARED!$BLDSHARED$ac_delim
31642-CCSHARED!$CCSHARED$ac_delim
31643-LINKFORSHARED!$LINKFORSHARED$ac_delim
31644-CFLAGSFORSHARED!$CFLAGSFORSHARED$ac_delim
31645-_ACEOF
31646-
31647- if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
31648- break
31649- elif $ac_last_try; then
31650- { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31651-echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31652- { (exit 1); exit 1; }; }
31653- else
31654- ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31655- fi
31656-done
31657
31658-ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31659-if test -n "$ac_eof"; then
31660- ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31661- ac_eof=`expr $ac_eof + 1`
31662+ac_cr=`echo X | tr X '\015'`
31663+# On cygwin, bash can eat \r inside `` if the user requested igncr.
31664+# But we know of no other shell where ac_cr would be empty at this
31665+# point, so we can use a bashism as a fallback.
31666+if test "x$ac_cr" = x; then
31667+ eval ac_cr=\$\'\\r\'
31668+fi
31669+ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
31670+if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
31671+ ac_cs_awk_cr='\\r'
31672+else
31673+ ac_cs_awk_cr=$ac_cr
31674 fi
31675
31676-cat >>$CONFIG_STATUS <<_ACEOF
31677-cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
31678-/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31679-_ACEOF
31680-sed '
31681-s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31682-s/^/s,@/; s/!/@,|#_!!_#|/
31683-:n
31684-t n
31685-s/'"$ac_delim"'$/,g/; t
31686-s/$/\\/; p
31687-N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31688-' >>$CONFIG_STATUS <conf$$subs.sed
31689-rm -f conf$$subs.sed
31690-cat >>$CONFIG_STATUS <<_ACEOF
31691-CEOF$ac_eof
31692+echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
31693 _ACEOF
31694
31695
31696+{
31697+ echo "cat >conf$$subs.awk <<_ACEOF" &&
31698+ echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
31699+ echo "_ACEOF"
31700+} >conf$$subs.sh ||
31701+ as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31702+ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
31703 ac_delim='%!_!# '
31704 for ac_last_try in false false false false false :; do
31705- cat >conf$$subs.sed <<_ACEOF
31706-SHLIBS!$SHLIBS$ac_delim
31707-USE_SIGNAL_MODULE!$USE_SIGNAL_MODULE$ac_delim
31708-SIGNAL_OBJS!$SIGNAL_OBJS$ac_delim
31709-USE_THREAD_MODULE!$USE_THREAD_MODULE$ac_delim
31710-LDLAST!$LDLAST$ac_delim
31711-THREADOBJ!$THREADOBJ$ac_delim
31712-DLINCLDIR!$DLINCLDIR$ac_delim
31713-DYNLOADFILE!$DYNLOADFILE$ac_delim
31714-MACHDEP_OBJS!$MACHDEP_OBJS$ac_delim
31715-TRUE!$TRUE$ac_delim
31716-LIBOBJS!$LIBOBJS$ac_delim
31717-HAVE_GETHOSTBYNAME_R_6_ARG!$HAVE_GETHOSTBYNAME_R_6_ARG$ac_delim
31718-HAVE_GETHOSTBYNAME_R_5_ARG!$HAVE_GETHOSTBYNAME_R_5_ARG$ac_delim
31719-HAVE_GETHOSTBYNAME_R_3_ARG!$HAVE_GETHOSTBYNAME_R_3_ARG$ac_delim
31720-HAVE_GETHOSTBYNAME_R!$HAVE_GETHOSTBYNAME_R$ac_delim
31721-HAVE_GETHOSTBYNAME!$HAVE_GETHOSTBYNAME$ac_delim
31722-LIBM!$LIBM$ac_delim
31723-LIBC!$LIBC$ac_delim
31724-UNICODE_OBJS!$UNICODE_OBJS$ac_delim
31725-THREADHEADERS!$THREADHEADERS$ac_delim
31726-SRCDIRS!$SRCDIRS$ac_delim
31727-LTLIBOBJS!$LTLIBOBJS$ac_delim
31728-_ACEOF
31729+ . ./conf$$subs.sh ||
31730+ as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31731
31732- if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 22; then
31733+ ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
31734+ if test $ac_delim_n = $ac_delim_num; then
31735 break
31736 elif $ac_last_try; then
31737- { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31738-echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31739- { (exit 1); exit 1; }; }
31740+ as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31741 else
31742 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31743 fi
31744 done
31745+rm -f conf$$subs.sh
31746
31747-ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31748-if test -n "$ac_eof"; then
31749- ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31750- ac_eof=`expr $ac_eof + 1`
31751-fi
31752-
31753-cat >>$CONFIG_STATUS <<_ACEOF
31754-cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
31755-/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
31756-_ACEOF
31757-sed '
31758-s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31759-s/^/s,@/; s/!/@,|#_!!_#|/
31760-:n
31761-t n
31762-s/'"$ac_delim"'$/,g/; t
31763-s/$/\\/; p
31764-N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31765-' >>$CONFIG_STATUS <conf$$subs.sed
31766-rm -f conf$$subs.sed
31767-cat >>$CONFIG_STATUS <<_ACEOF
31768-:end
31769-s/|#_!!_#|//g
31770-CEOF$ac_eof
31771+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31772+cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
31773 _ACEOF
31774+sed -n '
31775+h
31776+s/^/S["/; s/!.*/"]=/
31777+p
31778+g
31779+s/^[^!]*!//
31780+:repl
31781+t repl
31782+s/'"$ac_delim"'$//
31783+t delim
31784+:nl
31785+h
31786+s/\(.\{148\}\)..*/\1/
31787+t more1
31788+s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
31789+p
31790+n
31791+b repl
31792+:more1
31793+s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31794+p
31795+g
31796+s/.\{148\}//
31797+t nl
31798+:delim
31799+h
31800+s/\(.\{148\}\)..*/\1/
31801+t more2
31802+s/["\\]/\\&/g; s/^/"/; s/$/"/
31803+p
31804+b
31805+:more2
31806+s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31807+p
31808+g
31809+s/.\{148\}//
31810+t delim
31811+' <conf$$subs.awk | sed '
31812+/^[^""]/{
31813+ N
31814+ s/\n//
31815+}
31816+' >>$CONFIG_STATUS || ac_write_fail=1
31817+rm -f conf$$subs.awk
31818+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31819+_ACAWK
31820+cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
31821+ for (key in S) S_is_set[key] = 1
31822+ FS = ""
31823+
31824+}
31825+{
31826+ line = $ 0
31827+ nfields = split(line, field, "@")
31828+ substed = 0
31829+ len = length(field[1])
31830+ for (i = 2; i < nfields; i++) {
31831+ key = field[i]
31832+ keylen = length(key)
31833+ if (S_is_set[key]) {
31834+ value = S[key]
31835+ line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
31836+ len += length(value) + length(field[++i])
31837+ substed = 1
31838+ } else
31839+ len += 1 + keylen
31840+ }
31841
31842+ print line
31843+}
31844+
31845+_ACAWK
31846+_ACEOF
31847+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31848+if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
31849+ sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
31850+else
31851+ cat
31852+fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
31853+ || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
31854+_ACEOF
31855
31856-# VPATH may cause trouble with some makes, so we remove $(srcdir),
31857-# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31858+# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
31859+# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
31860 # trailing colons and then remove the whole line if VPATH becomes empty
31861 # (actually we leave an empty line to preserve line numbers).
31862 if test "x$srcdir" = x.; then
31863- ac_vpsub='/^[ ]*VPATH[ ]*=/{
31864-s/:*\$(srcdir):*/:/
31865-s/:*\${srcdir}:*/:/
31866-s/:*@srcdir@:*/:/
31867-s/^\([^=]*=[ ]*\):*/\1/
31868+ ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
31869+h
31870+s///
31871+s/^/:/
31872+s/[ ]*$/:/
31873+s/:\$(srcdir):/:/g
31874+s/:\${srcdir}:/:/g
31875+s/:@srcdir@:/:/g
31876+s/^:*//
31877 s/:*$//
31878+x
31879+s/\(=[ ]*\).*/\1/
31880+G
31881+s/\n//
31882 s/^[^=]*=[ ]*$//
31883 }'
31884 fi
31885
31886-cat >>$CONFIG_STATUS <<\_ACEOF
31887+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31888 fi # test -n "$CONFIG_FILES"
31889
31890+# Set up the scripts for CONFIG_HEADERS section.
31891+# No need to generate them if there are no CONFIG_HEADERS.
31892+# This happens for instance with `./config.status Makefile'.
31893+if test -n "$CONFIG_HEADERS"; then
31894+cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
31895+BEGIN {
31896+_ACEOF
31897+
31898+# Transform confdefs.h into an awk script `defines.awk', embedded as
31899+# here-document in config.status, that substitutes the proper values into
31900+# config.h.in to produce config.h.
31901+
31902+# Create a delimiter string that does not exist in confdefs.h, to ease
31903+# handling of long lines.
31904+ac_delim='%!_!# '
31905+for ac_last_try in false false :; do
31906+ ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
31907+ if test -z "$ac_tt"; then
31908+ break
31909+ elif $ac_last_try; then
31910+ as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
31911+ else
31912+ ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31913+ fi
31914+done
31915+
31916+# For the awk script, D is an array of macro values keyed by name,
31917+# likewise P contains macro parameters if any. Preserve backslash
31918+# newline sequences.
31919
31920-for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
31921+ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31922+sed -n '
31923+s/.\{148\}/&'"$ac_delim"'/g
31924+t rset
31925+:rset
31926+s/^[ ]*#[ ]*define[ ][ ]*/ /
31927+t def
31928+d
31929+:def
31930+s/\\$//
31931+t bsnl
31932+s/["\\]/\\&/g
31933+s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
31934+D["\1"]=" \3"/p
31935+s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
31936+d
31937+:bsnl
31938+s/["\\]/\\&/g
31939+s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
31940+D["\1"]=" \3\\\\\\n"\\/p
31941+t cont
31942+s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
31943+t cont
31944+d
31945+:cont
31946+n
31947+s/.\{148\}/&'"$ac_delim"'/g
31948+t clear
31949+:clear
31950+s/\\$//
31951+t bsnlc
31952+s/["\\]/\\&/g; s/^/"/; s/$/"/p
31953+d
31954+:bsnlc
31955+s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
31956+b cont
31957+' <confdefs.h | sed '
31958+s/'"$ac_delim"'/"\\\
31959+"/g' >>$CONFIG_STATUS || ac_write_fail=1
31960+
31961+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31962+ for (key in D) D_is_set[key] = 1
31963+ FS = ""
31964+}
31965+/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
31966+ line = \$ 0
31967+ split(line, arg, " ")
31968+ if (arg[1] == "#") {
31969+ defundef = arg[2]
31970+ mac1 = arg[3]
31971+ } else {
31972+ defundef = substr(arg[1], 2)
31973+ mac1 = arg[2]
31974+ }
31975+ split(mac1, mac2, "(") #)
31976+ macro = mac2[1]
31977+ prefix = substr(line, 1, index(line, defundef) - 1)
31978+ if (D_is_set[macro]) {
31979+ # Preserve the white space surrounding the "#".
31980+ print prefix "define", macro P[macro] D[macro]
31981+ next
31982+ } else {
31983+ # Replace #undef with comments. This is necessary, for example,
31984+ # in the case of _POSIX_SOURCE, which is predefined and required
31985+ # on some systems where configure will not decide to define it.
31986+ if (defundef == "undef") {
31987+ print "/*", prefix defundef, macro, "*/"
31988+ next
31989+ }
31990+ }
31991+}
31992+{ print }
31993+_ACAWK
31994+_ACEOF
31995+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31996+ as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
31997+fi # test -n "$CONFIG_HEADERS"
31998+
31999+
32000+eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
32001+shift
32002+for ac_tag
32003 do
32004 case $ac_tag in
32005 :[FHLC]) ac_mode=$ac_tag; continue;;
32006 esac
32007 case $ac_mode$ac_tag in
32008 :[FHL]*:*);;
32009- :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
32010-echo "$as_me: error: Invalid tag $ac_tag." >&2;}
32011- { (exit 1); exit 1; }; };;
32012+ :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
32013 :[FH]-) ac_tag=-:-;;
32014 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
32015 esac
32016@@ -25471,7 +14185,7 @@ echo "$as_me: error: Invalid tag $ac_tag
32017 for ac_f
32018 do
32019 case $ac_f in
32020- -) ac_f="$tmp/stdin";;
32021+ -) ac_f="$ac_tmp/stdin";;
32022 *) # Look for the file first in the build tree, then in the source tree
32023 # (if the path is not absolute). The absolute path cannot be DOS-style,
32024 # because $ac_f cannot contain `:'.
32025@@ -25480,26 +14194,34 @@ echo "$as_me: error: Invalid tag $ac_tag
32026 [\\/$]*) false;;
32027 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
32028 esac ||
32029- { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
32030-echo "$as_me: error: cannot find input file: $ac_f" >&2;}
32031- { (exit 1); exit 1; }; };;
32032+ as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
32033 esac
32034- ac_file_inputs="$ac_file_inputs $ac_f"
32035+ case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
32036+ as_fn_append ac_file_inputs " '$ac_f'"
32037 done
32038
32039 # Let's still pretend it is `configure' which instantiates (i.e., don't
32040 # use $as_me), people would be surprised to read:
32041 # /* config.h. Generated by config.status. */
32042- configure_input="Generated from "`IFS=:
32043- echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
32044+ configure_input='Generated from '`
32045+ $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
32046+ `' by configure.'
32047 if test x"$ac_file" != x-; then
32048 configure_input="$ac_file. $configure_input"
32049- { echo "$as_me:$LINENO: creating $ac_file" >&5
32050-echo "$as_me: creating $ac_file" >&6;}
32051+ { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
32052+$as_echo "$as_me: creating $ac_file" >&6;}
32053 fi
32054+ # Neutralize special characters interpreted by sed in replacement strings.
32055+ case $configure_input in #(
32056+ *\&* | *\|* | *\\* )
32057+ ac_sed_conf_input=`$as_echo "$configure_input" |
32058+ sed 's/[\\\\&|]/\\\\&/g'`;; #(
32059+ *) ac_sed_conf_input=$configure_input;;
32060+ esac
32061
32062 case $ac_tag in
32063- *:-:* | *:-) cat >"$tmp/stdin";;
32064+ *:-:* | *:-) cat >"$ac_tmp/stdin" \
32065+ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
32066 esac
32067 ;;
32068 esac
32069@@ -25509,42 +14231,7 @@ $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^
32070 X"$ac_file" : 'X\(//\)[^/]' \| \
32071 X"$ac_file" : 'X\(//\)$' \| \
32072 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32073-echo X"$ac_file" |
32074- sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32075- s//\1/
32076- q
32077- }
32078- /^X\(\/\/\)[^/].*/{
32079- s//\1/
32080- q
32081- }
32082- /^X\(\/\/\)$/{
32083- s//\1/
32084- q
32085- }
32086- /^X\(\/\).*/{
32087- s//\1/
32088- q
32089- }
32090- s/.*/./; q'`
32091- { as_dir="$ac_dir"
32092- case $as_dir in #(
32093- -*) as_dir=./$as_dir;;
32094- esac
32095- test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
32096- as_dirs=
32097- while :; do
32098- case $as_dir in #(
32099- *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
32100- *) as_qdir=$as_dir;;
32101- esac
32102- as_dirs="'$as_qdir' $as_dirs"
32103- as_dir=`$as_dirname -- "$as_dir" ||
32104-$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32105- X"$as_dir" : 'X\(//\)[^/]' \| \
32106- X"$as_dir" : 'X\(//\)$' \| \
32107- X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
32108-echo X"$as_dir" |
32109+$as_echo X"$ac_file" |
32110 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32111 s//\1/
32112 q
32113@@ -25562,20 +14249,15 @@ echo X"$as_dir" |
32114 q
32115 }
32116 s/.*/./; q'`
32117- test -d "$as_dir" && break
32118- done
32119- test -z "$as_dirs" || eval "mkdir $as_dirs"
32120- } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
32121-echo "$as_me: error: cannot create directory $as_dir" >&2;}
32122- { (exit 1); exit 1; }; }; }
32123+ as_dir="$ac_dir"; as_fn_mkdir_p
32124 ac_builddir=.
32125
32126 case "$ac_dir" in
32127 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
32128 *)
32129- ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32130+ ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
32131 # A ".." for each directory in $ac_dir_suffix.
32132- ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
32133+ ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
32134 case $ac_top_builddir_sub in
32135 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
32136 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
32137@@ -25615,12 +14297,12 @@ ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_
32138 esac
32139 _ACEOF
32140
32141-cat >>$CONFIG_STATUS <<\_ACEOF
32142+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32143 # If the template does not know about datarootdir, expand it.
32144 # FIXME: This hack should be removed a few years after 2.60.
32145 ac_datarootdir_hack=; ac_datarootdir_seen=
32146-
32147-case `sed -n '/datarootdir/ {
32148+ac_sed_dataroot='
32149+/datarootdir/ {
32150 p
32151 q
32152 }
32153@@ -25628,36 +14310,37 @@ case `sed -n '/datarootdir/ {
32154 /@docdir@/p
32155 /@infodir@/p
32156 /@localedir@/p
32157-/@mandir@/p
32158-' $ac_file_inputs` in
32159+/@mandir@/p'
32160+case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
32161 *datarootdir*) ac_datarootdir_seen=yes;;
32162 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
32163- { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
32164-echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32165+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
32166+$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32167 _ACEOF
32168-cat >>$CONFIG_STATUS <<_ACEOF
32169+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32170 ac_datarootdir_hack='
32171 s&@datadir@&$datadir&g
32172 s&@docdir@&$docdir&g
32173 s&@infodir@&$infodir&g
32174 s&@localedir@&$localedir&g
32175 s&@mandir@&$mandir&g
32176- s&\\\${datarootdir}&$datarootdir&g' ;;
32177+ s&\\\${datarootdir}&$datarootdir&g' ;;
32178 esac
32179 _ACEOF
32180
32181 # Neutralize VPATH when `$srcdir' = `.'.
32182 # Shell code in configure.ac might set extrasub.
32183 # FIXME: do we really want to maintain this feature?
32184-cat >>$CONFIG_STATUS <<_ACEOF
32185- sed "$ac_vpsub
32186+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32187+ac_sed_extra="$ac_vpsub
32188 $extrasub
32189 _ACEOF
32190-cat >>$CONFIG_STATUS <<\_ACEOF
32191+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32192 :t
32193 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32194-s&@configure_input@&$configure_input&;t t
32195+s|@configure_input@|$ac_sed_conf_input|;t t
32196 s&@top_builddir@&$ac_top_builddir_sub&;t t
32197+s&@top_build_prefix@&$ac_top_build_prefix&;t t
32198 s&@srcdir@&$ac_srcdir&;t t
32199 s&@abs_srcdir@&$ac_abs_srcdir&;t t
32200 s&@top_srcdir@&$ac_top_srcdir&;t t
32201@@ -25667,119 +14350,49 @@ s&@abs_builddir@&$ac_abs_builddir&;t t
32202 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32203 s&@INSTALL@&$ac_INSTALL&;t t
32204 $ac_datarootdir_hack
32205-" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
32206+"
32207+eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
32208+ >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32209
32210 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32211- { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
32212- { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
32213- { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32214-which seems to be undefined. Please make sure it is defined." >&5
32215-echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32216-which seems to be undefined. Please make sure it is defined." >&2;}
32217+ { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
32218+ { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
32219+ "$ac_tmp/out"`; test -z "$ac_out"; } &&
32220+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32221+which seems to be undefined. Please make sure it is defined" >&5
32222+$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32223+which seems to be undefined. Please make sure it is defined" >&2;}
32224
32225- rm -f "$tmp/stdin"
32226+ rm -f "$ac_tmp/stdin"
32227 case $ac_file in
32228- -) cat "$tmp/out"; rm -f "$tmp/out";;
32229- *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
32230- esac
32231+ -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
32232+ *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
32233+ esac \
32234+ || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32235 ;;
32236 :H)
32237 #
32238 # CONFIG_HEADER
32239 #
32240-_ACEOF
32241-
32242-# Transform confdefs.h into a sed script `conftest.defines', that
32243-# substitutes the proper values into config.h.in to produce config.h.
32244-rm -f conftest.defines conftest.tail
32245-# First, append a space to every undef/define line, to ease matching.
32246-echo 's/$/ /' >conftest.defines
32247-# Then, protect against being on the right side of a sed subst, or in
32248-# an unquoted here document, in config.status. If some macros were
32249-# called several times there might be several #defines for the same
32250-# symbol, which is useless. But do not sort them, since the last
32251-# AC_DEFINE must be honored.
32252-ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
32253-# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
32254-# NAME is the cpp macro being defined, VALUE is the value it is being given.
32255-# PARAMS is the parameter list in the macro definition--in most cases, it's
32256-# just an empty string.
32257-ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
32258-ac_dB='\\)[ (].*,\\1define\\2'
32259-ac_dC=' '
32260-ac_dD=' ,'
32261-
32262-uniq confdefs.h |
32263- sed -n '
32264- t rset
32265- :rset
32266- s/^[ ]*#[ ]*define[ ][ ]*//
32267- t ok
32268- d
32269- :ok
32270- s/[\\&,]/\\&/g
32271- s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
32272- s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
32273- ' >>conftest.defines
32274-
32275-# Remove the space that was appended to ease matching.
32276-# Then replace #undef with comments. This is necessary, for
32277-# example, in the case of _POSIX_SOURCE, which is predefined and required
32278-# on some systems where configure will not decide to define it.
32279-# (The regexp can be short, since the line contains either #define or #undef.)
32280-echo 's/ $//
32281-s,^[ #]*u.*,/* & */,' >>conftest.defines
32282-
32283-# Break up conftest.defines:
32284-ac_max_sed_lines=50
32285-
32286-# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
32287-# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
32288-# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
32289-# et cetera.
32290-ac_in='$ac_file_inputs'
32291-ac_out='"$tmp/out1"'
32292-ac_nxt='"$tmp/out2"'
32293-
32294-while :
32295-do
32296- # Write a here document:
32297- cat >>$CONFIG_STATUS <<_ACEOF
32298- # First, check the format of the line:
32299- cat >"\$tmp/defines.sed" <<\\CEOF
32300-/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
32301-/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
32302-b
32303-:def
32304-_ACEOF
32305- sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
32306- echo 'CEOF
32307- sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
32308- ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
32309- sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
32310- grep . conftest.tail >/dev/null || break
32311- rm -f conftest.defines
32312- mv conftest.tail conftest.defines
32313-done
32314-rm -f conftest.defines conftest.tail
32315-
32316-echo "ac_result=$ac_in" >>$CONFIG_STATUS
32317-cat >>$CONFIG_STATUS <<\_ACEOF
32318 if test x"$ac_file" != x-; then
32319- echo "/* $configure_input */" >"$tmp/config.h"
32320- cat "$ac_result" >>"$tmp/config.h"
32321- if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
32322- { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
32323-echo "$as_me: $ac_file is unchanged" >&6;}
32324+ {
32325+ $as_echo "/* $configure_input */" \
32326+ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
32327+ } >"$ac_tmp/config.h" \
32328+ || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32329+ if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
32330+ { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
32331+$as_echo "$as_me: $ac_file is unchanged" >&6;}
32332 else
32333- rm -f $ac_file
32334- mv "$tmp/config.h" $ac_file
32335+ rm -f "$ac_file"
32336+ mv "$ac_tmp/config.h" "$ac_file" \
32337+ || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32338 fi
32339 else
32340- echo "/* $configure_input */"
32341- cat "$ac_result"
32342+ $as_echo "/* $configure_input */" \
32343+ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
32344+ || as_fn_error $? "could not create -" "$LINENO" 5
32345 fi
32346- rm -f "$tmp/out12"
32347 ;;
32348
32349
32350@@ -25788,11 +14401,13 @@ echo "$as_me: $ac_file is unchanged" >&6
32351 done # for ac_tag
32352
32353
32354-{ (exit 0); exit 0; }
32355+as_fn_exit 0
32356 _ACEOF
32357-chmod +x $CONFIG_STATUS
32358 ac_clean_files=$ac_clean_files_save
32359
32360+test $ac_write_fail = 0 ||
32361+ as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
32362+
32363
32364 # configure is writing to config.log, and then calls config.status.
32365 # config.status does its own redirection, appending to config.log.
32366@@ -25812,7 +14427,11 @@ if test "$no_create" != yes; then
32367 exec 5>>config.log
32368 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32369 # would make configure fail if this is the last instruction.
32370- $ac_cs_success || { (exit 1); exit 1; }
32371+ $ac_cs_success || as_fn_exit 1
32372+fi
32373+if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
32374+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
32375+$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
32376 fi
32377
32378
32379@@ -25821,6 +14440,9 @@ if test ! -f Modules/Setup
32380 then
32381 cp $srcdir/Modules/Setup.dist Modules/Setup
32382 fi
32383+mv Modules/Setup Modules/Setup~
32384+sed -e "s/@POSIX@/$POSIX/g" < Modules/Setup~ > Modules/Setup
32385+
32386
32387 echo "creating Modules/Setup.local"
32388 if test ! -f Modules/Setup.local
32389@@ -25835,12 +14457,12 @@ $SHELL $srcdir/Modules/makesetup -c $src
32390
32391 case $ac_sys_system in
32392 BeOS)
32393- { echo "$as_me:$LINENO: WARNING:
32394+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
32395
32396 Support for BeOS is deprecated as of Python 2.6.
32397 See PEP 11 for the gory details.
32398 " >&5
32399-echo "$as_me: WARNING:
32400+$as_echo "$as_me: WARNING:
32401
32402 Support for BeOS is deprecated as of Python 2.6.
32403 See PEP 11 for the gory details.
32404--- /dev/null 2012-06-15 13:22:51.534182765 +0200
32405+++ misc/build/Python-2.6.1/config.sub 2012-06-17 10:35:40.571274992 +0200
32406@@ -0,0 +1,1705 @@
32407+#! /bin/sh
32408+# Configuration validation subroutine script.
32409+# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
32410+# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
32411+# Free Software Foundation, Inc.
32412+
32413+timestamp='2009-11-20'
32414+
32415+# This file is (in principle) common to ALL GNU software.
32416+# The presence of a machine in this file suggests that SOME GNU software
32417+# can handle that machine. It does not imply ALL GNU software can.
32418+#
32419+# This file is free software; you can redistribute it and/or modify
32420+# it under the terms of the GNU General Public License as published by
32421+# the Free Software Foundation; either version 2 of the License, or
32422+# (at your option) any later version.
32423+#
32424+# This program is distributed in the hope that it will be useful,
32425+# but WITHOUT ANY WARRANTY; without even the implied warranty of
32426+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
32427+# GNU General Public License for more details.
32428+#
32429+# You should have received a copy of the GNU General Public License
32430+# along with this program; if not, write to the Free Software
32431+# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
32432+# 02110-1301, USA.
32433+#
32434+# As a special exception to the GNU General Public License, if you
32435+# distribute this file as part of a program that contains a
32436+# configuration script generated by Autoconf, you may include it under
32437+# the same distribution terms that you use for the rest of that program.
32438+
32439+
32440+# Please send patches to <config-patches@gnu.org>. Submit a context
32441+# diff and a properly formatted GNU ChangeLog entry.
32442+#
32443+# Configuration subroutine to validate and canonicalize a configuration type.
32444+# Supply the specified configuration type as an argument.
32445+# If it is invalid, we print an error message on stderr and exit with code 1.
32446+# Otherwise, we print the canonical config type on stdout and succeed.
32447+
32448+# You can get the latest version of this script from:
32449+# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
32450+
32451+# This file is supposed to be the same for all GNU packages
32452+# and recognize all the CPU types, system types and aliases
32453+# that are meaningful with *any* GNU software.
32454+# Each package is responsible for reporting which valid configurations
32455+# it does not support. The user should be able to distinguish
32456+# a failure to support a valid configuration from a meaningless
32457+# configuration.
32458+
32459+# The goal of this file is to map all the various variations of a given
32460+# machine specification into a single specification in the form:
32461+# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
32462+# or in some cases, the newer four-part form:
32463+# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
32464+# It is wrong to echo any other type of specification.
32465+
32466+me=`echo "$0" | sed -e 's,.*/,,'`
32467+
32468+usage="\
32469+Usage: $0 [OPTION] CPU-MFR-OPSYS
32470+ $0 [OPTION] ALIAS
32471+
32472+Canonicalize a configuration name.
32473+
32474+Operation modes:
32475+ -h, --help print this help, then exit
32476+ -t, --time-stamp print date of last modification, then exit
32477+ -v, --version print version number, then exit
32478+
32479+Report bugs and patches to <config-patches@gnu.org>."
32480+
32481+version="\
32482+GNU config.sub ($timestamp)
32483+
32484+Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
32485+2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
32486+
32487+This is free software; see the source for copying conditions. There is NO
32488+warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
32489+
32490+help="
32491+Try \`$me --help' for more information."
32492+
32493+# Parse command line
32494+while test $# -gt 0 ; do
32495+ case $1 in
32496+ --time-stamp | --time* | -t )
32497+ echo "$timestamp" ; exit ;;
32498+ --version | -v )
32499+ echo "$version" ; exit ;;
32500+ --help | --h* | -h )
32501+ echo "$usage"; exit ;;
32502+ -- ) # Stop option processing
32503+ shift; break ;;
32504+ - ) # Use stdin as input.
32505+ break ;;
32506+ -* )
32507+ echo "$me: invalid option $1$help"
32508+ exit 1 ;;
32509+
32510+ *local*)
32511+ # First pass through any local machine types.
32512+ echo $1
32513+ exit ;;
32514+
32515+ * )
32516+ break ;;
32517+ esac
32518+done
32519+
32520+case $# in
32521+ 0) echo "$me: missing argument$help" >&2
32522+ exit 1;;
32523+ 1) ;;
32524+ *) echo "$me: too many arguments$help" >&2
32525+ exit 1;;
32526+esac
32527+
32528+# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
32529+# Here we must recognize all the valid KERNEL-OS combinations.
32530+maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
32531+case $maybe_os in
32532+ nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
32533+ uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
32534+ kopensolaris*-gnu* | \
32535+ storm-chaos* | os2-emx* | rtmk-nova*)
32536+ os=-$maybe_os
32537+ basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
32538+ ;;
32539+ *)
32540+ basic_machine=`echo $1 | sed 's/-[^-]*$//'`
32541+ if [ $basic_machine != $1 ]
32542+ then os=`echo $1 | sed 's/.*-/-/'`
32543+ else os=; fi
32544+ ;;
32545+esac
32546+
32547+### Let's recognize common machines as not being operating systems so
32548+### that things like config.sub decstation-3100 work. We also
32549+### recognize some manufacturers as not being operating systems, so we
32550+### can provide default operating systems below.
32551+case $os in
32552+ -sun*os*)
32553+ # Prevent following clause from handling this invalid input.
32554+ ;;
32555+ -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
32556+ -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
32557+ -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
32558+ -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
32559+ -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
32560+ -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
32561+ -apple | -axis | -knuth | -cray | -microblaze)
32562+ os=
32563+ basic_machine=$1
32564+ ;;
32565+ -bluegene*)
32566+ os=-cnk
32567+ ;;
32568+ -sim | -cisco | -oki | -wec | -winbond)
32569+ os=
32570+ basic_machine=$1
32571+ ;;
32572+ -scout)
32573+ ;;
32574+ -wrs)
32575+ os=-vxworks
32576+ basic_machine=$1
32577+ ;;
32578+ -chorusos*)
32579+ os=-chorusos
32580+ basic_machine=$1
32581+ ;;
32582+ -chorusrdb)
32583+ os=-chorusrdb
32584+ basic_machine=$1
32585+ ;;
32586+ -hiux*)
32587+ os=-hiuxwe2
32588+ ;;
32589+ -sco6)
32590+ os=-sco5v6
32591+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
32592+ ;;
32593+ -sco5)
32594+ os=-sco3.2v5
32595+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
32596+ ;;
32597+ -sco4)
32598+ os=-sco3.2v4
32599+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
32600+ ;;
32601+ -sco3.2.[4-9]*)
32602+ os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
32603+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
32604+ ;;
32605+ -sco3.2v[4-9]*)
32606+ # Don't forget version if it is 3.2v4 or newer.
32607+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
32608+ ;;
32609+ -sco5v6*)
32610+ # Don't forget version if it is 3.2v4 or newer.
32611+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
32612+ ;;
32613+ -sco*)
32614+ os=-sco3.2v2
32615+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
32616+ ;;
32617+ -udk*)
32618+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
32619+ ;;
32620+ -isc)
32621+ os=-isc2.2
32622+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
32623+ ;;
32624+ -clix*)
32625+ basic_machine=clipper-intergraph
32626+ ;;
32627+ -isc*)
32628+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
32629+ ;;
32630+ -lynx*)
32631+ os=-lynxos
32632+ ;;
32633+ -ptx*)
32634+ basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
32635+ ;;
32636+ -windowsnt*)
32637+ os=`echo $os | sed -e 's/windowsnt/winnt/'`
32638+ ;;
32639+ -psos*)
32640+ os=-psos
32641+ ;;
32642+ -mint | -mint[0-9]*)
32643+ basic_machine=m68k-atari
32644+ os=-mint
32645+ ;;
32646+esac
32647+
32648+# Decode aliases for certain CPU-COMPANY combinations.
32649+case $basic_machine in
32650+ # Recognize the basic CPU types without company name.
32651+ # Some are omitted here because they have special meanings below.
32652+ 1750a | 580 \
32653+ | a29k \
32654+ | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
32655+ | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
32656+ | am33_2.0 \
32657+ | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
32658+ | bfin \
32659+ | c4x | clipper \
32660+ | d10v | d30v | dlx | dsp16xx \
32661+ | fido | fr30 | frv \
32662+ | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
32663+ | i370 | i860 | i960 | ia64 \
32664+ | ip2k | iq2000 \
32665+ | lm32 \
32666+ | m32c | m32r | m32rle | m68000 | m68k | m88k \
32667+ | maxq | mb | microblaze | mcore | mep | metag \
32668+ | mips | mipsbe | mipseb | mipsel | mipsle \
32669+ | mips16 \
32670+ | mips64 | mips64el \
32671+ | mips64octeon | mips64octeonel \
32672+ | mips64orion | mips64orionel \
32673+ | mips64r5900 | mips64r5900el \
32674+ | mips64vr | mips64vrel \
32675+ | mips64vr4100 | mips64vr4100el \
32676+ | mips64vr4300 | mips64vr4300el \
32677+ | mips64vr5000 | mips64vr5000el \
32678+ | mips64vr5900 | mips64vr5900el \
32679+ | mipsisa32 | mipsisa32el \
32680+ | mipsisa32r2 | mipsisa32r2el \
32681+ | mipsisa64 | mipsisa64el \
32682+ | mipsisa64r2 | mipsisa64r2el \
32683+ | mipsisa64sb1 | mipsisa64sb1el \
32684+ | mipsisa64sr71k | mipsisa64sr71kel \
32685+ | mipstx39 | mipstx39el \
32686+ | mn10200 | mn10300 \
32687+ | moxie \
32688+ | mt \
32689+ | msp430 \
32690+ | nios | nios2 \
32691+ | ns16k | ns32k \
32692+ | or32 \
32693+ | pdp10 | pdp11 | pj | pjl \
32694+ | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
32695+ | pyramid \
32696+ | rx \
32697+ | score \
32698+ | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
32699+ | sh64 | sh64le \
32700+ | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
32701+ | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
32702+ | spu | strongarm \
32703+ | tahoe | thumb | tic4x | tic80 | tron \
32704+ | ubicom32 \
32705+ | v850 | v850e \
32706+ | we32k \
32707+ | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
32708+ | z8k | z80)
32709+ basic_machine=$basic_machine-unknown
32710+ ;;
32711+ m6811 | m68hc11 | m6812 | m68hc12 | picochip)
32712+ # Motorola 68HC11/12.
32713+ basic_machine=$basic_machine-unknown
32714+ os=-none
32715+ ;;
32716+ m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
32717+ ;;
32718+ ms1)
32719+ basic_machine=mt-unknown
32720+ ;;
32721+
32722+ # We use `pc' rather than `unknown'
32723+ # because (1) that's what they normally are, and
32724+ # (2) the word "unknown" tends to confuse beginning users.
32725+ i*86 | x86_64)
32726+ basic_machine=$basic_machine-pc
32727+ ;;
32728+ # Object if more than one company name word.
32729+ *-*-*)
32730+ echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
32731+ exit 1
32732+ ;;
32733+ # Recognize the basic CPU types with company name.
32734+ 580-* \
32735+ | a29k-* \
32736+ | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
32737+ | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
32738+ | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
32739+ | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
32740+ | avr-* | avr32-* \
32741+ | bfin-* | bs2000-* \
32742+ | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
32743+ | clipper-* | craynv-* | cydra-* \
32744+ | d10v-* | d30v-* | dlx-* \
32745+ | elxsi-* \
32746+ | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
32747+ | h8300-* | h8500-* \
32748+ | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
32749+ | i*86-* | i860-* | i960-* | ia64-* \
32750+ | ip2k-* | iq2000-* \
32751+ | lm32-* \
32752+ | m32c-* | m32r-* | m32rle-* \
32753+ | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
32754+ | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
32755+ | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
32756+ | mips16-* \
32757+ | mips64-* | mips64el-* \
32758+ | mips64octeon-* | mips64octeonel-* \
32759+ | mips64orion-* | mips64orionel-* \
32760+ | mips64r5900-* | mips64r5900el-* \
32761+ | mips64vr-* | mips64vrel-* \
32762+ | mips64vr4100-* | mips64vr4100el-* \
32763+ | mips64vr4300-* | mips64vr4300el-* \
32764+ | mips64vr5000-* | mips64vr5000el-* \
32765+ | mips64vr5900-* | mips64vr5900el-* \
32766+ | mipsisa32-* | mipsisa32el-* \
32767+ | mipsisa32r2-* | mipsisa32r2el-* \
32768+ | mipsisa64-* | mipsisa64el-* \
32769+ | mipsisa64r2-* | mipsisa64r2el-* \
32770+ | mipsisa64sb1-* | mipsisa64sb1el-* \
32771+ | mipsisa64sr71k-* | mipsisa64sr71kel-* \
32772+ | mipstx39-* | mipstx39el-* \
32773+ | mmix-* \
32774+ | mt-* \
32775+ | msp430-* \
32776+ | nios-* | nios2-* \
32777+ | none-* | np1-* | ns16k-* | ns32k-* \
32778+ | orion-* \
32779+ | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
32780+ | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
32781+ | pyramid-* \
32782+ | romp-* | rs6000-* | rx-* \
32783+ | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
32784+ | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
32785+ | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
32786+ | sparclite-* \
32787+ | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
32788+ | tahoe-* | thumb-* \
32789+ | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \
32790+ | tron-* \
32791+ | ubicom32-* \
32792+ | v850-* | v850e-* | vax-* \
32793+ | we32k-* \
32794+ | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
32795+ | xstormy16-* | xtensa*-* \
32796+ | ymp-* \
32797+ | z8k-* | z80-*)
32798+ ;;
32799+ # Recognize the basic CPU types without company name, with glob match.
32800+ xtensa*)
32801+ basic_machine=$basic_machine-unknown
32802+ ;;
32803+ # Recognize the various machine names and aliases which stand
32804+ # for a CPU type and a company and sometimes even an OS.
32805+ 386bsd)
32806+ basic_machine=i386-unknown
32807+ os=-bsd
32808+ ;;
32809+ 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
32810+ basic_machine=m68000-att
32811+ ;;
32812+ 3b*)
32813+ basic_machine=we32k-att
32814+ ;;
32815+ a29khif)
32816+ basic_machine=a29k-amd
32817+ os=-udi
32818+ ;;
32819+ abacus)
32820+ basic_machine=abacus-unknown
32821+ ;;
32822+ adobe68k)
32823+ basic_machine=m68010-adobe
32824+ os=-scout
32825+ ;;
32826+ alliant | fx80)
32827+ basic_machine=fx80-alliant
32828+ ;;
32829+ altos | altos3068)
32830+ basic_machine=m68k-altos
32831+ ;;
32832+ am29k)
32833+ basic_machine=a29k-none
32834+ os=-bsd
32835+ ;;
32836+ amd64)
32837+ basic_machine=x86_64-pc
32838+ ;;
32839+ amd64-*)
32840+ basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
32841+ ;;
32842+ amdahl)
32843+ basic_machine=580-amdahl
32844+ os=-sysv
32845+ ;;
32846+ amiga | amiga-*)
32847+ basic_machine=m68k-unknown
32848+ ;;
32849+ amigaos | amigados)
32850+ basic_machine=m68k-unknown
32851+ os=-amigaos
32852+ ;;
32853+ amigaunix | amix)
32854+ basic_machine=m68k-unknown
32855+ os=-sysv4
32856+ ;;
32857+ apollo68)
32858+ basic_machine=m68k-apollo
32859+ os=-sysv
32860+ ;;
32861+ apollo68bsd)
32862+ basic_machine=m68k-apollo
32863+ os=-bsd
32864+ ;;
32865+ aros)
32866+ basic_machine=i386-pc
32867+ os=-aros
32868+ ;;
32869+ aux)
32870+ basic_machine=m68k-apple
32871+ os=-aux
32872+ ;;
32873+ balance)
32874+ basic_machine=ns32k-sequent
32875+ os=-dynix
32876+ ;;
32877+ blackfin)
32878+ basic_machine=bfin-unknown
32879+ os=-linux
32880+ ;;
32881+ blackfin-*)
32882+ basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
32883+ os=-linux
32884+ ;;
32885+ bluegene*)
32886+ basic_machine=powerpc-ibm
32887+ os=-cnk
32888+ ;;
32889+ c90)
32890+ basic_machine=c90-cray
32891+ os=-unicos
32892+ ;;
32893+ cegcc)
32894+ basic_machine=arm-unknown
32895+ os=-cegcc
32896+ ;;
32897+ convex-c1)
32898+ basic_machine=c1-convex
32899+ os=-bsd
32900+ ;;
32901+ convex-c2)
32902+ basic_machine=c2-convex
32903+ os=-bsd
32904+ ;;
32905+ convex-c32)
32906+ basic_machine=c32-convex
32907+ os=-bsd
32908+ ;;
32909+ convex-c34)
32910+ basic_machine=c34-convex
32911+ os=-bsd
32912+ ;;
32913+ convex-c38)
32914+ basic_machine=c38-convex
32915+ os=-bsd
32916+ ;;
32917+ cray | j90)
32918+ basic_machine=j90-cray
32919+ os=-unicos
32920+ ;;
32921+ craynv)
32922+ basic_machine=craynv-cray
32923+ os=-unicosmp
32924+ ;;
32925+ cr16)
32926+ basic_machine=cr16-unknown
32927+ os=-elf
32928+ ;;
32929+ crds | unos)
32930+ basic_machine=m68k-crds
32931+ ;;
32932+ crisv32 | crisv32-* | etraxfs*)
32933+ basic_machine=crisv32-axis
32934+ ;;
32935+ cris | cris-* | etrax*)
32936+ basic_machine=cris-axis
32937+ ;;
32938+ crx)
32939+ basic_machine=crx-unknown
32940+ os=-elf
32941+ ;;
32942+ da30 | da30-*)
32943+ basic_machine=m68k-da30
32944+ ;;
32945+ decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
32946+ basic_machine=mips-dec
32947+ ;;
32948+ decsystem10* | dec10*)
32949+ basic_machine=pdp10-dec
32950+ os=-tops10
32951+ ;;
32952+ decsystem20* | dec20*)
32953+ basic_machine=pdp10-dec
32954+ os=-tops20
32955+ ;;
32956+ delta | 3300 | motorola-3300 | motorola-delta \
32957+ | 3300-motorola | delta-motorola)
32958+ basic_machine=m68k-motorola
32959+ ;;
32960+ delta88)
32961+ basic_machine=m88k-motorola
32962+ os=-sysv3
32963+ ;;
32964+ dicos)
32965+ basic_machine=i686-pc
32966+ os=-dicos
32967+ ;;
32968+ djgpp)
32969+ basic_machine=i586-pc
32970+ os=-msdosdjgpp
32971+ ;;
32972+ dpx20 | dpx20-*)
32973+ basic_machine=rs6000-bull
32974+ os=-bosx
32975+ ;;
32976+ dpx2* | dpx2*-bull)
32977+ basic_machine=m68k-bull
32978+ os=-sysv3
32979+ ;;
32980+ ebmon29k)
32981+ basic_machine=a29k-amd
32982+ os=-ebmon
32983+ ;;
32984+ elxsi)
32985+ basic_machine=elxsi-elxsi
32986+ os=-bsd
32987+ ;;
32988+ encore | umax | mmax)
32989+ basic_machine=ns32k-encore
32990+ ;;
32991+ es1800 | OSE68k | ose68k | ose | OSE)
32992+ basic_machine=m68k-ericsson
32993+ os=-ose
32994+ ;;
32995+ fx2800)
32996+ basic_machine=i860-alliant
32997+ ;;
32998+ genix)
32999+ basic_machine=ns32k-ns
33000+ ;;
33001+ gmicro)
33002+ basic_machine=tron-gmicro
33003+ os=-sysv
33004+ ;;
33005+ go32)
33006+ basic_machine=i386-pc
33007+ os=-go32
33008+ ;;
33009+ h3050r* | hiux*)
33010+ basic_machine=hppa1.1-hitachi
33011+ os=-hiuxwe2
33012+ ;;
33013+ h8300hms)
33014+ basic_machine=h8300-hitachi
33015+ os=-hms
33016+ ;;
33017+ h8300xray)
33018+ basic_machine=h8300-hitachi
33019+ os=-xray
33020+ ;;
33021+ h8500hms)
33022+ basic_machine=h8500-hitachi
33023+ os=-hms
33024+ ;;
33025+ harris)
33026+ basic_machine=m88k-harris
33027+ os=-sysv3
33028+ ;;
33029+ hp300-*)
33030+ basic_machine=m68k-hp
33031+ ;;
33032+ hp300bsd)
33033+ basic_machine=m68k-hp
33034+ os=-bsd
33035+ ;;
33036+ hp300hpux)
33037+ basic_machine=m68k-hp
33038+ os=-hpux
33039+ ;;
33040+ hp3k9[0-9][0-9] | hp9[0-9][0-9])
33041+ basic_machine=hppa1.0-hp
33042+ ;;
33043+ hp9k2[0-9][0-9] | hp9k31[0-9])
33044+ basic_machine=m68000-hp
33045+ ;;
33046+ hp9k3[2-9][0-9])
33047+ basic_machine=m68k-hp
33048+ ;;
33049+ hp9k6[0-9][0-9] | hp6[0-9][0-9])
33050+ basic_machine=hppa1.0-hp
33051+ ;;
33052+ hp9k7[0-79][0-9] | hp7[0-79][0-9])
33053+ basic_machine=hppa1.1-hp
33054+ ;;
33055+ hp9k78[0-9] | hp78[0-9])
33056+ # FIXME: really hppa2.0-hp
33057+ basic_machine=hppa1.1-hp
33058+ ;;
33059+ hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
33060+ # FIXME: really hppa2.0-hp
33061+ basic_machine=hppa1.1-hp
33062+ ;;
33063+ hp9k8[0-9][13679] | hp8[0-9][13679])
33064+ basic_machine=hppa1.1-hp
33065+ ;;
33066+ hp9k8[0-9][0-9] | hp8[0-9][0-9])
33067+ basic_machine=hppa1.0-hp
33068+ ;;
33069+ hppa-next)
33070+ os=-nextstep3
33071+ ;;
33072+ hppaosf)
33073+ basic_machine=hppa1.1-hp
33074+ os=-osf
33075+ ;;
33076+ hppro)
33077+ basic_machine=hppa1.1-hp
33078+ os=-proelf
33079+ ;;
33080+ i370-ibm* | ibm*)
33081+ basic_machine=i370-ibm
33082+ ;;
33083+# I'm not sure what "Sysv32" means. Should this be sysv3.2?
33084+ i*86v32)
33085+ basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
33086+ os=-sysv32
33087+ ;;
33088+ i*86v4*)
33089+ basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
33090+ os=-sysv4
33091+ ;;
33092+ i*86v)
33093+ basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
33094+ os=-sysv
33095+ ;;
33096+ i*86sol2)
33097+ basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
33098+ os=-solaris2
33099+ ;;
33100+ i386mach)
33101+ basic_machine=i386-mach
33102+ os=-mach
33103+ ;;
33104+ i386-vsta | vsta)
33105+ basic_machine=i386-unknown
33106+ os=-vsta
33107+ ;;
33108+ iris | iris4d)
33109+ basic_machine=mips-sgi
33110+ case $os in
33111+ -irix*)
33112+ ;;
33113+ *)
33114+ os=-irix4
33115+ ;;
33116+ esac
33117+ ;;
33118+ isi68 | isi)
33119+ basic_machine=m68k-isi
33120+ os=-sysv
33121+ ;;
33122+ m68knommu)
33123+ basic_machine=m68k-unknown
33124+ os=-linux
33125+ ;;
33126+ m68knommu-*)
33127+ basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
33128+ os=-linux
33129+ ;;
33130+ m88k-omron*)
33131+ basic_machine=m88k-omron
33132+ ;;
33133+ magnum | m3230)
33134+ basic_machine=mips-mips
33135+ os=-sysv
33136+ ;;
33137+ merlin)
33138+ basic_machine=ns32k-utek
33139+ os=-sysv
33140+ ;;
33141+ microblaze)
33142+ basic_machine=microblaze-xilinx
33143+ ;;
33144+ mingw32)
33145+ basic_machine=i386-pc
33146+ os=-mingw32
33147+ ;;
33148+ mingw32ce)
33149+ basic_machine=arm-unknown
33150+ os=-mingw32ce
33151+ ;;
33152+ miniframe)
33153+ basic_machine=m68000-convergent
33154+ ;;
33155+ *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
33156+ basic_machine=m68k-atari
33157+ os=-mint
33158+ ;;
33159+ mips3*-*)
33160+ basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
33161+ ;;
33162+ mips3*)
33163+ basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
33164+ ;;
33165+ monitor)
33166+ basic_machine=m68k-rom68k
33167+ os=-coff
33168+ ;;
33169+ morphos)
33170+ basic_machine=powerpc-unknown
33171+ os=-morphos
33172+ ;;
33173+ msdos)
33174+ basic_machine=i386-pc
33175+ os=-msdos
33176+ ;;
33177+ ms1-*)
33178+ basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
33179+ ;;
33180+ mvs)
33181+ basic_machine=i370-ibm
33182+ os=-mvs
33183+ ;;
33184+ ncr3000)
33185+ basic_machine=i486-ncr
33186+ os=-sysv4
33187+ ;;
33188+ netbsd386)
33189+ basic_machine=i386-unknown
33190+ os=-netbsd
33191+ ;;
33192+ netwinder)
33193+ basic_machine=armv4l-rebel
33194+ os=-linux
33195+ ;;
33196+ news | news700 | news800 | news900)
33197+ basic_machine=m68k-sony
33198+ os=-newsos
33199+ ;;
33200+ news1000)
33201+ basic_machine=m68030-sony
33202+ os=-newsos
33203+ ;;
33204+ news-3600 | risc-news)
33205+ basic_machine=mips-sony
33206+ os=-newsos
33207+ ;;
33208+ necv70)
33209+ basic_machine=v70-nec
33210+ os=-sysv
33211+ ;;
33212+ next | m*-next )
33213+ basic_machine=m68k-next
33214+ case $os in
33215+ -nextstep* )
33216+ ;;
33217+ -ns2*)
33218+ os=-nextstep2
33219+ ;;
33220+ *)
33221+ os=-nextstep3
33222+ ;;
33223+ esac
33224+ ;;
33225+ nh3000)
33226+ basic_machine=m68k-harris
33227+ os=-cxux
33228+ ;;
33229+ nh[45]000)
33230+ basic_machine=m88k-harris
33231+ os=-cxux
33232+ ;;
33233+ nindy960)
33234+ basic_machine=i960-intel
33235+ os=-nindy
33236+ ;;
33237+ mon960)
33238+ basic_machine=i960-intel
33239+ os=-mon960
33240+ ;;
33241+ nonstopux)
33242+ basic_machine=mips-compaq
33243+ os=-nonstopux
33244+ ;;
33245+ np1)
33246+ basic_machine=np1-gould
33247+ ;;
33248+ nsr-tandem)
33249+ basic_machine=nsr-tandem
33250+ ;;
33251+ op50n-* | op60c-*)
33252+ basic_machine=hppa1.1-oki
33253+ os=-proelf
33254+ ;;
33255+ openrisc | openrisc-*)
33256+ basic_machine=or32-unknown
33257+ ;;
33258+ os400)
33259+ basic_machine=powerpc-ibm
33260+ os=-os400
33261+ ;;
33262+ OSE68000 | ose68000)
33263+ basic_machine=m68000-ericsson
33264+ os=-ose
33265+ ;;
33266+ os68k)
33267+ basic_machine=m68k-none
33268+ os=-os68k
33269+ ;;
33270+ pa-hitachi)
33271+ basic_machine=hppa1.1-hitachi
33272+ os=-hiuxwe2
33273+ ;;
33274+ paragon)
33275+ basic_machine=i860-intel
33276+ os=-osf
33277+ ;;
33278+ parisc)
33279+ basic_machine=hppa-unknown
33280+ os=-linux
33281+ ;;
33282+ parisc-*)
33283+ basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
33284+ os=-linux
33285+ ;;
33286+ pbd)
33287+ basic_machine=sparc-tti
33288+ ;;
33289+ pbb)
33290+ basic_machine=m68k-tti
33291+ ;;
33292+ pc532 | pc532-*)
33293+ basic_machine=ns32k-pc532
33294+ ;;
33295+ pc98)
33296+ basic_machine=i386-pc
33297+ ;;
33298+ pc98-*)
33299+ basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
33300+ ;;
33301+ pentium | p5 | k5 | k6 | nexgen | viac3)
33302+ basic_machine=i586-pc
33303+ ;;
33304+ pentiumpro | p6 | 6x86 | athlon | athlon_*)
33305+ basic_machine=i686-pc
33306+ ;;
33307+ pentiumii | pentium2 | pentiumiii | pentium3)
33308+ basic_machine=i686-pc
33309+ ;;
33310+ pentium4)
33311+ basic_machine=i786-pc
33312+ ;;
33313+ pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
33314+ basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
33315+ ;;
33316+ pentiumpro-* | p6-* | 6x86-* | athlon-*)
33317+ basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
33318+ ;;
33319+ pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
33320+ basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
33321+ ;;
33322+ pentium4-*)
33323+ basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
33324+ ;;
33325+ pn)
33326+ basic_machine=pn-gould
33327+ ;;
33328+ power) basic_machine=power-ibm
33329+ ;;
33330+ ppc) basic_machine=powerpc-unknown
33331+ ;;
33332+ ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
33333+ ;;
33334+ ppcle | powerpclittle | ppc-le | powerpc-little)
33335+ basic_machine=powerpcle-unknown
33336+ ;;
33337+ ppcle-* | powerpclittle-*)
33338+ basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
33339+ ;;
33340+ ppc64) basic_machine=powerpc64-unknown
33341+ ;;
33342+ ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
33343+ ;;
33344+ ppc64le | powerpc64little | ppc64-le | powerpc64-little)
33345+ basic_machine=powerpc64le-unknown
33346+ ;;
33347+ ppc64le-* | powerpc64little-*)
33348+ basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
33349+ ;;
33350+ ps2)
33351+ basic_machine=i386-ibm
33352+ ;;
33353+ pw32)
33354+ basic_machine=i586-unknown
33355+ os=-pw32
33356+ ;;
33357+ rdos)
33358+ basic_machine=i386-pc
33359+ os=-rdos
33360+ ;;
33361+ rom68k)
33362+ basic_machine=m68k-rom68k
33363+ os=-coff
33364+ ;;
33365+ rm[46]00)
33366+ basic_machine=mips-siemens
33367+ ;;
33368+ rtpc | rtpc-*)
33369+ basic_machine=romp-ibm
33370+ ;;
33371+ s390 | s390-*)
33372+ basic_machine=s390-ibm
33373+ ;;
33374+ s390x | s390x-*)
33375+ basic_machine=s390x-ibm
33376+ ;;
33377+ sa29200)
33378+ basic_machine=a29k-amd
33379+ os=-udi
33380+ ;;
33381+ sb1)
33382+ basic_machine=mipsisa64sb1-unknown
33383+ ;;
33384+ sb1el)
33385+ basic_machine=mipsisa64sb1el-unknown
33386+ ;;
33387+ sde)
33388+ basic_machine=mipsisa32-sde
33389+ os=-elf
33390+ ;;
33391+ sei)
33392+ basic_machine=mips-sei
33393+ os=-seiux
33394+ ;;
33395+ sequent)
33396+ basic_machine=i386-sequent
33397+ ;;
33398+ sh)
33399+ basic_machine=sh-hitachi
33400+ os=-hms
33401+ ;;
33402+ sh5el)
33403+ basic_machine=sh5le-unknown
33404+ ;;
33405+ sh64)
33406+ basic_machine=sh64-unknown
33407+ ;;
33408+ sparclite-wrs | simso-wrs)
33409+ basic_machine=sparclite-wrs
33410+ os=-vxworks
33411+ ;;
33412+ sps7)
33413+ basic_machine=m68k-bull
33414+ os=-sysv2
33415+ ;;
33416+ spur)
33417+ basic_machine=spur-unknown
33418+ ;;
33419+ st2000)
33420+ basic_machine=m68k-tandem
33421+ ;;
33422+ stratus)
33423+ basic_machine=i860-stratus
33424+ os=-sysv4
33425+ ;;
33426+ sun2)
33427+ basic_machine=m68000-sun
33428+ ;;
33429+ sun2os3)
33430+ basic_machine=m68000-sun
33431+ os=-sunos3
33432+ ;;
33433+ sun2os4)
33434+ basic_machine=m68000-sun
33435+ os=-sunos4
33436+ ;;
33437+ sun3os3)
33438+ basic_machine=m68k-sun
33439+ os=-sunos3
33440+ ;;
33441+ sun3os4)
33442+ basic_machine=m68k-sun
33443+ os=-sunos4
33444+ ;;
33445+ sun4os3)
33446+ basic_machine=sparc-sun
33447+ os=-sunos3
33448+ ;;
33449+ sun4os4)
33450+ basic_machine=sparc-sun
33451+ os=-sunos4
33452+ ;;
33453+ sun4sol2)
33454+ basic_machine=sparc-sun
33455+ os=-solaris2
33456+ ;;
33457+ sun3 | sun3-*)
33458+ basic_machine=m68k-sun
33459+ ;;
33460+ sun4)
33461+ basic_machine=sparc-sun
33462+ ;;
33463+ sun386 | sun386i | roadrunner)
33464+ basic_machine=i386-sun
33465+ ;;
33466+ sv1)
33467+ basic_machine=sv1-cray
33468+ os=-unicos
33469+ ;;
33470+ symmetry)
33471+ basic_machine=i386-sequent
33472+ os=-dynix
33473+ ;;
33474+ t3e)
33475+ basic_machine=alphaev5-cray
33476+ os=-unicos
33477+ ;;
33478+ t90)
33479+ basic_machine=t90-cray
33480+ os=-unicos
33481+ ;;
33482+ tic54x | c54x*)
33483+ basic_machine=tic54x-unknown
33484+ os=-coff
33485+ ;;
33486+ tic55x | c55x*)
33487+ basic_machine=tic55x-unknown
33488+ os=-coff
33489+ ;;
33490+ tic6x | c6x*)
33491+ basic_machine=tic6x-unknown
33492+ os=-coff
33493+ ;;
33494+ tile*)
33495+ basic_machine=tile-unknown
33496+ os=-linux-gnu
33497+ ;;
33498+ tx39)
33499+ basic_machine=mipstx39-unknown
33500+ ;;
33501+ tx39el)
33502+ basic_machine=mipstx39el-unknown
33503+ ;;
33504+ toad1)
33505+ basic_machine=pdp10-xkl
33506+ os=-tops20
33507+ ;;
33508+ tower | tower-32)
33509+ basic_machine=m68k-ncr
33510+ ;;
33511+ tpf)
33512+ basic_machine=s390x-ibm
33513+ os=-tpf
33514+ ;;
33515+ udi29k)
33516+ basic_machine=a29k-amd
33517+ os=-udi
33518+ ;;
33519+ ultra3)
33520+ basic_machine=a29k-nyu
33521+ os=-sym1
33522+ ;;
33523+ v810 | necv810)
33524+ basic_machine=v810-nec
33525+ os=-none
33526+ ;;
33527+ vaxv)
33528+ basic_machine=vax-dec
33529+ os=-sysv
33530+ ;;
33531+ vms)
33532+ basic_machine=vax-dec
33533+ os=-vms
33534+ ;;
33535+ vpp*|vx|vx-*)
33536+ basic_machine=f301-fujitsu
33537+ ;;
33538+ vxworks960)
33539+ basic_machine=i960-wrs
33540+ os=-vxworks
33541+ ;;
33542+ vxworks68)
33543+ basic_machine=m68k-wrs
33544+ os=-vxworks
33545+ ;;
33546+ vxworks29k)
33547+ basic_machine=a29k-wrs
33548+ os=-vxworks
33549+ ;;
33550+ w65*)
33551+ basic_machine=w65-wdc
33552+ os=-none
33553+ ;;
33554+ w89k-*)
33555+ basic_machine=hppa1.1-winbond
33556+ os=-proelf
33557+ ;;
33558+ xbox)
33559+ basic_machine=i686-pc
33560+ os=-mingw32
33561+ ;;
33562+ xps | xps100)
33563+ basic_machine=xps100-honeywell
33564+ ;;
33565+ ymp)
33566+ basic_machine=ymp-cray
33567+ os=-unicos
33568+ ;;
33569+ z8k-*-coff)
33570+ basic_machine=z8k-unknown
33571+ os=-sim
33572+ ;;
33573+ z80-*-coff)
33574+ basic_machine=z80-unknown
33575+ os=-sim
33576+ ;;
33577+ none)
33578+ basic_machine=none-none
33579+ os=-none
33580+ ;;
33581+
33582+# Here we handle the default manufacturer of certain CPU types. It is in
33583+# some cases the only manufacturer, in others, it is the most popular.
33584+ w89k)
33585+ basic_machine=hppa1.1-winbond
33586+ ;;
33587+ op50n)
33588+ basic_machine=hppa1.1-oki
33589+ ;;
33590+ op60c)
33591+ basic_machine=hppa1.1-oki
33592+ ;;
33593+ romp)
33594+ basic_machine=romp-ibm
33595+ ;;
33596+ mmix)
33597+ basic_machine=mmix-knuth
33598+ ;;
33599+ rs6000)
33600+ basic_machine=rs6000-ibm
33601+ ;;
33602+ vax)
33603+ basic_machine=vax-dec
33604+ ;;
33605+ pdp10)
33606+ # there are many clones, so DEC is not a safe bet
33607+ basic_machine=pdp10-unknown
33608+ ;;
33609+ pdp11)
33610+ basic_machine=pdp11-dec
33611+ ;;
33612+ we32k)
33613+ basic_machine=we32k-att
33614+ ;;
33615+ sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
33616+ basic_machine=sh-unknown
33617+ ;;
33618+ sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
33619+ basic_machine=sparc-sun
33620+ ;;
33621+ cydra)
33622+ basic_machine=cydra-cydrome
33623+ ;;
33624+ orion)
33625+ basic_machine=orion-highlevel
33626+ ;;
33627+ orion105)
33628+ basic_machine=clipper-highlevel
33629+ ;;
33630+ mac | mpw | mac-mpw)
33631+ basic_machine=m68k-apple
33632+ ;;
33633+ pmac | pmac-mpw)
33634+ basic_machine=powerpc-apple
33635+ ;;
33636+ *-unknown)
33637+ # Make sure to match an already-canonicalized machine name.
33638+ ;;
33639+ *)
33640+ echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
33641+ exit 1
33642+ ;;
33643+esac
33644+
33645+# Here we canonicalize certain aliases for manufacturers.
33646+case $basic_machine in
33647+ *-digital*)
33648+ basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
33649+ ;;
33650+ *-commodore*)
33651+ basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
33652+ ;;
33653+ *)
33654+ ;;
33655+esac
33656+
33657+# Decode manufacturer-specific aliases for certain operating systems.
33658+
33659+if [ x"$os" != x"" ]
33660+then
33661+case $os in
33662+ # First match some system type aliases
33663+ # that might get confused with valid system types.
33664+ # -solaris* is a basic system type, with this one exception.
33665+ -auroraux)
33666+ os=-auroraux
33667+ ;;
33668+ -solaris1 | -solaris1.*)
33669+ os=`echo $os | sed -e 's|solaris1|sunos4|'`
33670+ ;;
33671+ -solaris)
33672+ os=-solaris2
33673+ ;;
33674+ -svr4*)
33675+ os=-sysv4
33676+ ;;
33677+ -unixware*)
33678+ os=-sysv4.2uw
33679+ ;;
33680+ -gnu/linux*)
33681+ os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
33682+ ;;
33683+ # First accept the basic system types.
33684+ # The portable systems comes first.
33685+ # Each alternative MUST END IN A *, to match a version number.
33686+ # -sysv* is not here because it comes later, after sysvr4.
33687+ -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
33688+ | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
33689+ | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
33690+ | -sym* | -kopensolaris* \
33691+ | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
33692+ | -aos* | -aros* \
33693+ | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
33694+ | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
33695+ | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
33696+ | -openbsd* | -solidbsd* \
33697+ | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
33698+ | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
33699+ | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
33700+ | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
33701+ | -chorusos* | -chorusrdb* | -cegcc* \
33702+ | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
33703+ | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
33704+ | -uxpv* | -beos* | -mpeix* | -udk* \
33705+ | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
33706+ | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
33707+ | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
33708+ | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
33709+ | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
33710+ | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
33711+ | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
33712+ # Remember, each alternative MUST END IN *, to match a version number.
33713+ ;;
33714+ -qnx*)
33715+ case $basic_machine in
33716+ x86-* | i*86-*)
33717+ ;;
33718+ *)
33719+ os=-nto$os
33720+ ;;
33721+ esac
33722+ ;;
33723+ -nto-qnx*)
33724+ ;;
33725+ -nto*)
33726+ os=`echo $os | sed -e 's|nto|nto-qnx|'`
33727+ ;;
33728+ -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
33729+ | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
33730+ | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
33731+ ;;
33732+ -mac*)
33733+ os=`echo $os | sed -e 's|mac|macos|'`
33734+ ;;
33735+ -linux-dietlibc)
33736+ os=-linux-dietlibc
33737+ ;;
33738+ -linux*)
33739+ os=`echo $os | sed -e 's|linux|linux-gnu|'`
33740+ ;;
33741+ -sunos5*)
33742+ os=`echo $os | sed -e 's|sunos5|solaris2|'`
33743+ ;;
33744+ -sunos6*)
33745+ os=`echo $os | sed -e 's|sunos6|solaris3|'`
33746+ ;;
33747+ -opened*)
33748+ os=-openedition
33749+ ;;
33750+ -os400*)
33751+ os=-os400
33752+ ;;
33753+ -wince*)
33754+ os=-wince
33755+ ;;
33756+ -osfrose*)
33757+ os=-osfrose
33758+ ;;
33759+ -osf*)
33760+ os=-osf
33761+ ;;
33762+ -utek*)
33763+ os=-bsd
33764+ ;;
33765+ -dynix*)
33766+ os=-bsd
33767+ ;;
33768+ -acis*)
33769+ os=-aos
33770+ ;;
33771+ -atheos*)
33772+ os=-atheos
33773+ ;;
33774+ -syllable*)
33775+ os=-syllable
33776+ ;;
33777+ -386bsd)
33778+ os=-bsd
33779+ ;;
33780+ -ctix* | -uts*)
33781+ os=-sysv
33782+ ;;
33783+ -nova*)
33784+ os=-rtmk-nova
33785+ ;;
33786+ -ns2 )
33787+ os=-nextstep2
33788+ ;;
33789+ -nsk*)
33790+ os=-nsk
33791+ ;;
33792+ # Preserve the version number of sinix5.
33793+ -sinix5.*)
33794+ os=`echo $os | sed -e 's|sinix|sysv|'`
33795+ ;;
33796+ -sinix*)
33797+ os=-sysv4
33798+ ;;
33799+ -tpf*)
33800+ os=-tpf
33801+ ;;
33802+ -triton*)
33803+ os=-sysv3
33804+ ;;
33805+ -oss*)
33806+ os=-sysv3
33807+ ;;
33808+ -svr4)
33809+ os=-sysv4
33810+ ;;
33811+ -svr3)
33812+ os=-sysv3
33813+ ;;
33814+ -sysvr4)
33815+ os=-sysv4
33816+ ;;
33817+ # This must come after -sysvr4.
33818+ -sysv*)
33819+ ;;
33820+ -ose*)
33821+ os=-ose
33822+ ;;
33823+ -es1800*)
33824+ os=-ose
33825+ ;;
33826+ -xenix)
33827+ os=-xenix
33828+ ;;
33829+ -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
33830+ os=-mint
33831+ ;;
33832+ -aros*)
33833+ os=-aros
33834+ ;;
33835+ -kaos*)
33836+ os=-kaos
33837+ ;;
33838+ -zvmoe)
33839+ os=-zvmoe
33840+ ;;
33841+ -dicos*)
33842+ os=-dicos
33843+ ;;
33844+ -none)
33845+ ;;
33846+ *)
33847+ # Get rid of the `-' at the beginning of $os.
33848+ os=`echo $os | sed 's/[^-]*-//'`
33849+ echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
33850+ exit 1
33851+ ;;
33852+esac
33853+else
33854+
33855+# Here we handle the default operating systems that come with various machines.
33856+# The value should be what the vendor currently ships out the door with their
33857+# machine or put another way, the most popular os provided with the machine.
33858+
33859+# Note that if you're going to try to match "-MANUFACTURER" here (say,
33860+# "-sun"), then you have to tell the case statement up towards the top
33861+# that MANUFACTURER isn't an operating system. Otherwise, code above
33862+# will signal an error saying that MANUFACTURER isn't an operating
33863+# system, and we'll never get to this point.
33864+
33865+case $basic_machine in
33866+ score-*)
33867+ os=-elf
33868+ ;;
33869+ spu-*)
33870+ os=-elf
33871+ ;;
33872+ *-acorn)
33873+ os=-riscix1.2
33874+ ;;
33875+ arm*-rebel)
33876+ os=-linux
33877+ ;;
33878+ arm*-semi)
33879+ os=-aout
33880+ ;;
33881+ c4x-* | tic4x-*)
33882+ os=-coff
33883+ ;;
33884+ # This must come before the *-dec entry.
33885+ pdp10-*)
33886+ os=-tops20
33887+ ;;
33888+ pdp11-*)
33889+ os=-none
33890+ ;;
33891+ *-dec | vax-*)
33892+ os=-ultrix4.2
33893+ ;;
33894+ m68*-apollo)
33895+ os=-domain
33896+ ;;
33897+ i386-sun)
33898+ os=-sunos4.0.2
33899+ ;;
33900+ m68000-sun)
33901+ os=-sunos3
33902+ # This also exists in the configure program, but was not the
33903+ # default.
33904+ # os=-sunos4
33905+ ;;
33906+ m68*-cisco)
33907+ os=-aout
33908+ ;;
33909+ mep-*)
33910+ os=-elf
33911+ ;;
33912+ mips*-cisco)
33913+ os=-elf
33914+ ;;
33915+ mips*-*)
33916+ os=-elf
33917+ ;;
33918+ or32-*)
33919+ os=-coff
33920+ ;;
33921+ *-tti) # must be before sparc entry or we get the wrong os.
33922+ os=-sysv3
33923+ ;;
33924+ sparc-* | *-sun)
33925+ os=-sunos4.1.1
33926+ ;;
33927+ *-be)
33928+ os=-beos
33929+ ;;
33930+ *-haiku)
33931+ os=-haiku
33932+ ;;
33933+ *-ibm)
33934+ os=-aix
33935+ ;;
33936+ *-knuth)
33937+ os=-mmixware
33938+ ;;
33939+ *-wec)
33940+ os=-proelf
33941+ ;;
33942+ *-winbond)
33943+ os=-proelf
33944+ ;;
33945+ *-oki)
33946+ os=-proelf
33947+ ;;
33948+ *-hp)
33949+ os=-hpux
33950+ ;;
33951+ *-hitachi)
33952+ os=-hiux
33953+ ;;
33954+ i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
33955+ os=-sysv
33956+ ;;
33957+ *-cbm)
33958+ os=-amigaos
33959+ ;;
33960+ *-dg)
33961+ os=-dgux
33962+ ;;
33963+ *-dolphin)
33964+ os=-sysv3
33965+ ;;
33966+ m68k-ccur)
33967+ os=-rtu
33968+ ;;
33969+ m88k-omron*)
33970+ os=-luna
33971+ ;;
33972+ *-next )
33973+ os=-nextstep
33974+ ;;
33975+ *-sequent)
33976+ os=-ptx
33977+ ;;
33978+ *-crds)
33979+ os=-unos
33980+ ;;
33981+ *-ns)
33982+ os=-genix
33983+ ;;
33984+ i370-*)
33985+ os=-mvs
33986+ ;;
33987+ *-next)
33988+ os=-nextstep3
33989+ ;;
33990+ *-gould)
33991+ os=-sysv
33992+ ;;
33993+ *-highlevel)
33994+ os=-bsd
33995+ ;;
33996+ *-encore)
33997+ os=-bsd
33998+ ;;
33999+ *-sgi)
34000+ os=-irix
34001+ ;;
34002+ *-siemens)
34003+ os=-sysv4
34004+ ;;
34005+ *-masscomp)
34006+ os=-rtu
34007+ ;;
34008+ f30[01]-fujitsu | f700-fujitsu)
34009+ os=-uxpv
34010+ ;;
34011+ *-rom68k)
34012+ os=-coff
34013+ ;;
34014+ *-*bug)
34015+ os=-coff
34016+ ;;
34017+ *-apple)
34018+ os=-macos
34019+ ;;
34020+ *-atari*)
34021+ os=-mint
34022+ ;;
34023+ *)
34024+ os=-none
34025+ ;;
34026+esac
34027+fi
34028+
34029+# Here we handle the case where we know the os, and the CPU type, but not the
34030+# manufacturer. We pick the logical manufacturer.
34031+vendor=unknown
34032+case $basic_machine in
34033+ *-unknown)
34034+ case $os in
34035+ -riscix*)
34036+ vendor=acorn
34037+ ;;
34038+ -sunos*)
34039+ vendor=sun
34040+ ;;
34041+ -cnk*|-aix*)
34042+ vendor=ibm
34043+ ;;
34044+ -beos*)
34045+ vendor=be
34046+ ;;
34047+ -hpux*)
34048+ vendor=hp
34049+ ;;
34050+ -mpeix*)
34051+ vendor=hp
34052+ ;;
34053+ -hiux*)
34054+ vendor=hitachi
34055+ ;;
34056+ -unos*)
34057+ vendor=crds
34058+ ;;
34059+ -dgux*)
34060+ vendor=dg
34061+ ;;
34062+ -luna*)
34063+ vendor=omron
34064+ ;;
34065+ -genix*)
34066+ vendor=ns
34067+ ;;
34068+ -mvs* | -opened*)
34069+ vendor=ibm
34070+ ;;
34071+ -os400*)
34072+ vendor=ibm
34073+ ;;
34074+ -ptx*)
34075+ vendor=sequent
34076+ ;;
34077+ -tpf*)
34078+ vendor=ibm
34079+ ;;
34080+ -vxsim* | -vxworks* | -windiss*)
34081+ vendor=wrs
34082+ ;;
34083+ -aux*)
34084+ vendor=apple
34085+ ;;
34086+ -hms*)
34087+ vendor=hitachi
34088+ ;;
34089+ -mpw* | -macos*)
34090+ vendor=apple
34091+ ;;
34092+ -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
34093+ vendor=atari
34094+ ;;
34095+ -vos*)
34096+ vendor=stratus
34097+ ;;
34098+ esac
34099+ basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
34100+ ;;
34101+esac
34102+
34103+echo $basic_machine$os
34104+exit
34105+
34106+# Local variables:
34107+# eval: (add-hook 'write-file-hooks 'time-stamp)
34108+# time-stamp-start: "timestamp='"
34109+# time-stamp-format: "%:y-%02m-%02d"
34110+# time-stamp-end: "'"
34111+# End: