blob: 54c93c0ecee04bd0996df381acc8779e9e3ccb13 [file] [log] [blame]
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00001#! /bin/sh
Georg Brandl464432d2009-05-20 18:24:08 +00002# From configure.in Revision: 72497 .
Guido van Rossum627b2d71993-12-24 10:39:16 +00003# Guess values for system-dependent variables and create Makefiles.
Martin v. Löwis174440b2008-10-03 08:59:41 +00004# Generated by GNU Autoconf 2.61 for python 2.7.
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005#
Georg Brandl464432d2009-05-20 18:24:08 +00006# Report bugs to <http://bugs.python.org/>.
Martin v. Löwis1d459062005-03-14 21:23:33 +00007#
Martin v. Löwiseba40652007-08-30 20:10:57 +00008# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
Guido van Rossum76be6ed1995-01-02 18:33:54 +000010# This configure script is free software; the Free Software Foundation
11# gives unlimited permission to copy, distribute and modify it.
Martin v. Löwis11437992002-04-12 09:54:03 +000012## --------------------- ##
13## M4sh Initialization. ##
14## --------------------- ##
15
Martin v. Löwiseba40652007-08-30 20:10:57 +000016# Be more Bourne compatible
17DUALCASE=1; export DUALCASE # for MKS sh
Martin v. Löwis11437992002-04-12 09:54:03 +000018if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 emulate sh
20 NULLCMD=:
Skip Montanaro6dead952003-09-25 14:50:04 +000021 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
Martin v. Löwiseba40652007-08-30 20:10:57 +000024 setopt NO_GLOB_SUBST
Skip Montanaro89e975f2007-08-22 19:05:21 +000025else
Martin v. Löwiseba40652007-08-30 20:10:57 +000026 case `(set -o) 2>/dev/null` in
27 *posix*) set -o posix ;;
28esac
29
Martin v. Löwis11437992002-04-12 09:54:03 +000030fi
31
Skip Montanaro6dead952003-09-25 14:50:04 +000032
Martin v. Löwis11437992002-04-12 09:54:03 +000033
34
Martin v. Löwiseba40652007-08-30 20:10:57 +000035# PATH needs CR
Martin v. Löwis11437992002-04-12 09:54:03 +000036# Avoid depending upon Character Ranges.
37as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40as_cr_digits='0123456789'
41as_cr_alnum=$as_cr_Letters$as_cr_digits
42
43# The user is always right.
44if test "${PATH_SEPARATOR+set}" != set; then
Skip Montanaro6dead952003-09-25 14:50:04 +000045 echo "#! /bin/sh" >conf$$.sh
46 echo "exit 0" >>conf$$.sh
47 chmod +x conf$$.sh
48 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
Martin v. Löwis11437992002-04-12 09:54:03 +000049 PATH_SEPARATOR=';'
50 else
51 PATH_SEPARATOR=:
52 fi
Skip Montanaro6dead952003-09-25 14:50:04 +000053 rm -f conf$$.sh
Martin v. Löwis11437992002-04-12 09:54:03 +000054fi
55
Martin v. Löwiseba40652007-08-30 20:10:57 +000056# Support unset when possible.
57if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58 as_unset=unset
59else
60 as_unset=false
61fi
Martin v. Löwis11437992002-04-12 09:54:03 +000062
Martin v. Löwiseba40652007-08-30 20:10:57 +000063
64# IFS
65# We need space, tab and new line, in precisely that order. Quoting is
66# there to prevent editors from complaining about space-tab.
67# (If _AS_PATH_WALK were called with IFS unset, it would disable word
68# splitting by setting IFS to empty value.)
69as_nl='
70'
71IFS=" "" $as_nl"
72
73# Find who we are. Look in the path if we contain no directory separator.
74case $0 in
75 *[\\/]* ) as_myself=$0 ;;
76 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Martin v. Löwis11437992002-04-12 09:54:03 +000077for as_dir in $PATH
78do
79 IFS=$as_save_IFS
80 test -z "$as_dir" && as_dir=.
81 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
82done
Martin v. Löwiseba40652007-08-30 20:10:57 +000083IFS=$as_save_IFS
Martin v. Löwis11437992002-04-12 09:54:03 +000084
Martin v. Löwiseba40652007-08-30 20:10:57 +000085 ;;
86esac
87# We did not find ourselves, most probably we were run as `sh COMMAND'
88# in which case we are not to be found in the path.
89if test "x$as_myself" = x; then
90 as_myself=$0
91fi
92if test ! -f "$as_myself"; then
93 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 { (exit 1); exit 1; }
95fi
96
97# Work around bugs in pre-3.0 UWIN ksh.
98for as_var in ENV MAIL MAILPATH
99do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100done
101PS1='$ '
102PS2='> '
103PS4='+ '
104
105# NLS nuisances.
106for as_var in \
107 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
109 LC_TELEPHONE LC_TIME
110do
111 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112 eval $as_var=C; export $as_var
113 else
114 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Martin v. Löwis11437992002-04-12 09:54:03 +0000115 fi
Martin v. Löwiseba40652007-08-30 20:10:57 +0000116done
117
118# Required to use basename.
119if expr a : '\(a\)' >/dev/null 2>&1 &&
120 test "X`expr 00001 : '.*\(...\)'`" = X001; then
121 as_expr=expr
122else
123 as_expr=false
124fi
125
126if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
127 as_basename=basename
128else
129 as_basename=false
130fi
131
132
133# Name of the executable.
134as_me=`$as_basename -- "$0" ||
135$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136 X"$0" : 'X\(//\)$' \| \
137 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138echo X/"$0" |
139 sed '/^.*\/\([^/][^/]*\)\/*$/{
140 s//\1/
141 q
142 }
143 /^X\/\(\/\/\)$/{
144 s//\1/
145 q
146 }
147 /^X\/\(\/\).*/{
148 s//\1/
149 q
150 }
151 s/.*/./; q'`
152
153# CDPATH.
154$as_unset CDPATH
155
156
157if test "x$CONFIG_SHELL" = x; then
158 if (eval ":") 2>/dev/null; then
159 as_have_required=yes
160else
161 as_have_required=no
162fi
163
164 if test $as_have_required = yes && (eval ":
165(as_func_return () {
166 (exit \$1)
167}
168as_func_success () {
169 as_func_return 0
170}
171as_func_failure () {
172 as_func_return 1
173}
174as_func_ret_success () {
175 return 0
176}
177as_func_ret_failure () {
178 return 1
179}
180
181exitcode=0
182if as_func_success; then
183 :
184else
185 exitcode=1
186 echo as_func_success failed.
187fi
188
189if as_func_failure; then
190 exitcode=1
191 echo as_func_failure succeeded.
192fi
193
194if as_func_ret_success; then
195 :
196else
197 exitcode=1
198 echo as_func_ret_success failed.
199fi
200
201if as_func_ret_failure; then
202 exitcode=1
203 echo as_func_ret_failure succeeded.
204fi
205
206if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 :
208else
209 exitcode=1
210 echo positional parameters were not saved.
211fi
212
213test \$exitcode = 0) || { (exit 1); exit 1; }
214
215(
216 as_lineno_1=\$LINENO
217 as_lineno_2=\$LINENO
218 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220") 2> /dev/null; then
221 :
222else
223 as_candidate_shells=
Martin v. Löwis11437992002-04-12 09:54:03 +0000224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
225for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
226do
227 IFS=$as_save_IFS
228 test -z "$as_dir" && as_dir=.
Martin v. Löwiseba40652007-08-30 20:10:57 +0000229 case $as_dir in
Martin v. Löwis11437992002-04-12 09:54:03 +0000230 /*)
Martin v. Löwiseba40652007-08-30 20:10:57 +0000231 for as_base in sh bash ksh sh5; do
232 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
233 done;;
234 esac
235done
236IFS=$as_save_IFS
237
238
239 for as_shell in $as_candidate_shells $SHELL; do
240 # Try only shells that exist, to save several forks.
241 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
242 { ("$as_shell") 2> /dev/null <<\_ASEOF
243if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 emulate sh
245 NULLCMD=:
246 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247 # is contrary to our usage. Disable this feature.
248 alias -g '${1+"$@"}'='"$@"'
249 setopt NO_GLOB_SUBST
250else
251 case `(set -o) 2>/dev/null` in
252 *posix*) set -o posix ;;
253esac
254
255fi
256
257
258:
259_ASEOF
260}; then
261 CONFIG_SHELL=$as_shell
262 as_have_required=yes
263 if { "$as_shell" 2> /dev/null <<\_ASEOF
264if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
265 emulate sh
266 NULLCMD=:
267 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268 # is contrary to our usage. Disable this feature.
269 alias -g '${1+"$@"}'='"$@"'
270 setopt NO_GLOB_SUBST
271else
272 case `(set -o) 2>/dev/null` in
273 *posix*) set -o posix ;;
274esac
275
276fi
277
278
279:
280(as_func_return () {
281 (exit $1)
282}
283as_func_success () {
284 as_func_return 0
285}
286as_func_failure () {
287 as_func_return 1
288}
289as_func_ret_success () {
290 return 0
291}
292as_func_ret_failure () {
293 return 1
294}
295
296exitcode=0
297if as_func_success; then
298 :
299else
300 exitcode=1
301 echo as_func_success failed.
302fi
303
304if as_func_failure; then
305 exitcode=1
306 echo as_func_failure succeeded.
307fi
308
309if as_func_ret_success; then
310 :
311else
312 exitcode=1
313 echo as_func_ret_success failed.
314fi
315
316if as_func_ret_failure; then
317 exitcode=1
318 echo as_func_ret_failure succeeded.
319fi
320
321if ( set x; as_func_ret_success y && test x = "$1" ); then
322 :
323else
324 exitcode=1
325 echo positional parameters were not saved.
326fi
327
328test $exitcode = 0) || { (exit 1); exit 1; }
329
330(
Skip Montanaro89e975f2007-08-22 19:05:21 +0000331 as_lineno_1=$LINENO
332 as_lineno_2=$LINENO
Skip Montanaro89e975f2007-08-22 19:05:21 +0000333 test "x$as_lineno_1" != "x$as_lineno_2" &&
Martin v. Löwiseba40652007-08-30 20:10:57 +0000334 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
335
336_ASEOF
337}; then
338 break
339fi
340
341fi
342
343 done
344
345 if test "x$CONFIG_SHELL" != x; then
346 for as_var in BASH_ENV ENV
347 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
348 done
349 export CONFIG_SHELL
350 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351fi
352
353
354 if test $as_have_required = no; then
355 echo This script requires a shell more modern than all the
356 echo shells that I found on your system. Please install a
357 echo modern shell, or manually run the script under such a
358 echo shell if you do have one.
359 { (exit 1); exit 1; }
360fi
361
362
363fi
364
365fi
366
367
368
369(eval "as_func_return () {
370 (exit \$1)
371}
372as_func_success () {
373 as_func_return 0
374}
375as_func_failure () {
376 as_func_return 1
377}
378as_func_ret_success () {
379 return 0
380}
381as_func_ret_failure () {
382 return 1
383}
384
385exitcode=0
386if as_func_success; then
387 :
388else
389 exitcode=1
390 echo as_func_success failed.
391fi
392
393if as_func_failure; then
394 exitcode=1
395 echo as_func_failure succeeded.
396fi
397
398if as_func_ret_success; then
399 :
400else
401 exitcode=1
402 echo as_func_ret_success failed.
403fi
404
405if as_func_ret_failure; then
406 exitcode=1
407 echo as_func_ret_failure succeeded.
408fi
409
410if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 :
412else
413 exitcode=1
414 echo positional parameters were not saved.
415fi
416
417test \$exitcode = 0") || {
418 echo No shell found that supports shell functions.
419 echo Please tell autoconf@gnu.org about your system,
420 echo including any error possibly output before this
421 echo message
422}
423
424
425
426 as_lineno_1=$LINENO
427 as_lineno_2=$LINENO
428 test "x$as_lineno_1" != "x$as_lineno_2" &&
429 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
Martin v. Löwis11437992002-04-12 09:54:03 +0000430
431 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432 # uniformly replaced by the line number. The first 'sed' inserts a
Martin v. Löwiseba40652007-08-30 20:10:57 +0000433 # line-number line after each line using $LINENO; the second 'sed'
434 # does the real work. The second script uses 'N' to pair each
435 # line-number line with the line containing $LINENO, and appends
436 # trailing '-' during substitution so that $LINENO is not a special
437 # case at line end.
Martin v. Löwis11437992002-04-12 09:54:03 +0000438 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Martin v. Löwiseba40652007-08-30 20:10:57 +0000439 # scripts with optimization help from Paolo Bonzini. Blame Lee
440 # E. McMahon (1931-1989) for sed's syntax. :-)
441 sed -n '
442 p
443 /[$]LINENO/=
444 ' <$as_myself |
Martin v. Löwis11437992002-04-12 09:54:03 +0000445 sed '
Martin v. Löwiseba40652007-08-30 20:10:57 +0000446 s/[$]LINENO.*/&-/
447 t lineno
448 b
449 :lineno
Martin v. Löwis11437992002-04-12 09:54:03 +0000450 N
Martin v. Löwiseba40652007-08-30 20:10:57 +0000451 :loop
452 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Martin v. Löwis11437992002-04-12 09:54:03 +0000453 t loop
Martin v. Löwiseba40652007-08-30 20:10:57 +0000454 s/-\n.*//
Martin v. Löwis11437992002-04-12 09:54:03 +0000455 ' >$as_me.lineno &&
Martin v. Löwiseba40652007-08-30 20:10:57 +0000456 chmod +x "$as_me.lineno" ||
Martin v. Löwis11437992002-04-12 09:54:03 +0000457 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458 { (exit 1); exit 1; }; }
459
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
Martin v. Löwiseba40652007-08-30 20:10:57 +0000462 # original and so on. Autoconf is especially sensitive to this).
463 . "./$as_me.lineno"
Martin v. Löwis11437992002-04-12 09:54:03 +0000464 # Exit status is that of the last command.
465 exit
466}
467
468
Martin v. Löwiseba40652007-08-30 20:10:57 +0000469if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 as_dirname=dirname
471else
472 as_dirname=false
473fi
474
475ECHO_C= ECHO_N= ECHO_T=
476case `echo -n x` in
477-n*)
478 case `echo 'x\c'` in
479 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
480 *) ECHO_C='\c';;
481 esac;;
482*)
483 ECHO_N='-n';;
Martin v. Löwis11437992002-04-12 09:54:03 +0000484esac
485
Martin v. Löwiseba40652007-08-30 20:10:57 +0000486if expr a : '\(a\)' >/dev/null 2>&1 &&
487 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Martin v. Löwis11437992002-04-12 09:54:03 +0000488 as_expr=expr
489else
490 as_expr=false
491fi
492
493rm -f conf$$ conf$$.exe conf$$.file
Martin v. Löwiseba40652007-08-30 20:10:57 +0000494if test -d conf$$.dir; then
495 rm -f conf$$.dir/conf$$.file
496else
497 rm -f conf$$.dir
498 mkdir conf$$.dir
499fi
Martin v. Löwis11437992002-04-12 09:54:03 +0000500echo >conf$$.file
501if ln -s conf$$.file conf$$ 2>/dev/null; then
Martin v. Löwiseba40652007-08-30 20:10:57 +0000502 as_ln_s='ln -s'
503 # ... but there are two gotchas:
504 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506 # In both cases, we have to default to `cp -p'.
507 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Martin v. Löwis11437992002-04-12 09:54:03 +0000508 as_ln_s='cp -p'
Martin v. Löwis11437992002-04-12 09:54:03 +0000509elif ln conf$$.file conf$$ 2>/dev/null; then
510 as_ln_s=ln
511else
512 as_ln_s='cp -p'
513fi
Martin v. Löwiseba40652007-08-30 20:10:57 +0000514rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
515rmdir conf$$.dir 2>/dev/null
Martin v. Löwis11437992002-04-12 09:54:03 +0000516
Skip Montanaro6dead952003-09-25 14:50:04 +0000517if mkdir -p . 2>/dev/null; then
518 as_mkdir_p=:
519else
Skip Montanarof0d5f792004-08-15 14:08:23 +0000520 test -d ./-p && rmdir ./-p
Skip Montanaro6dead952003-09-25 14:50:04 +0000521 as_mkdir_p=false
522fi
523
Martin v. Löwiseba40652007-08-30 20:10:57 +0000524if test -x / >/dev/null 2>&1; then
525 as_test_x='test -x'
526else
527 if ls -dL / >/dev/null 2>&1; then
528 as_ls_L_option=L
529 else
530 as_ls_L_option=
531 fi
532 as_test_x='
533 eval sh -c '\''
534 if test -d "$1"; then
535 test -d "$1/.";
536 else
537 case $1 in
538 -*)set "./$1";;
539 esac;
540 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541 ???[sx]*):;;*)false;;esac;fi
542 '\'' sh
543 '
544fi
545as_executable_p=$as_test_x
Martin v. Löwis11437992002-04-12 09:54:03 +0000546
547# Sed expression to map a string onto a valid CPP name.
Skip Montanarof0d5f792004-08-15 14:08:23 +0000548as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Martin v. Löwis11437992002-04-12 09:54:03 +0000549
550# Sed expression to map a string onto a valid variable name.
Skip Montanarof0d5f792004-08-15 14:08:23 +0000551as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Martin v. Löwis11437992002-04-12 09:54:03 +0000552
553
Martin v. Löwis11437992002-04-12 09:54:03 +0000554
Martin v. Löwiseba40652007-08-30 20:10:57 +0000555exec 7<&0 </dev/null 6>&1
Martin v. Löwis11437992002-04-12 09:54:03 +0000556
557# Name of the host.
558# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
559# so uname gets run too.
560ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
561
Martin v. Löwis11437992002-04-12 09:54:03 +0000562#
563# Initializations.
564#
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000565ac_default_prefix=/usr/local
Martin v. Löwiseba40652007-08-30 20:10:57 +0000566ac_clean_files=
Skip Montanaro6dead952003-09-25 14:50:04 +0000567ac_config_libobj_dir=.
Martin v. Löwiseba40652007-08-30 20:10:57 +0000568LIBOBJS=
Martin v. Löwis11437992002-04-12 09:54:03 +0000569cross_compiling=no
570subdirs=
571MFLAGS=
572MAKEFLAGS=
573SHELL=${CONFIG_SHELL-/bin/sh}
574
Martin v. Löwis11437992002-04-12 09:54:03 +0000575# Identity of this package.
Martin v. Löwis88afe662002-10-26 13:47:44 +0000576PACKAGE_NAME='python'
577PACKAGE_TARNAME='python'
Martin v. Löwis174440b2008-10-03 08:59:41 +0000578PACKAGE_VERSION='2.7'
579PACKAGE_STRING='python 2.7'
Georg Brandl464432d2009-05-20 18:24:08 +0000580PACKAGE_BUGREPORT='http://bugs.python.org/'
Martin v. Löwis11437992002-04-12 09:54:03 +0000581
582ac_unique_file="Include/object.h"
583# Factoring default headers for most tests.
584ac_includes_default="\
585#include <stdio.h>
Martin v. Löwiseba40652007-08-30 20:10:57 +0000586#ifdef HAVE_SYS_TYPES_H
Martin v. Löwis11437992002-04-12 09:54:03 +0000587# include <sys/types.h>
588#endif
Martin v. Löwiseba40652007-08-30 20:10:57 +0000589#ifdef HAVE_SYS_STAT_H
Martin v. Löwis11437992002-04-12 09:54:03 +0000590# include <sys/stat.h>
591#endif
Martin v. Löwiseba40652007-08-30 20:10:57 +0000592#ifdef STDC_HEADERS
Martin v. Löwis11437992002-04-12 09:54:03 +0000593# include <stdlib.h>
594# include <stddef.h>
595#else
Martin v. Löwiseba40652007-08-30 20:10:57 +0000596# ifdef HAVE_STDLIB_H
Martin v. Löwis11437992002-04-12 09:54:03 +0000597# include <stdlib.h>
598# endif
599#endif
Martin v. Löwiseba40652007-08-30 20:10:57 +0000600#ifdef HAVE_STRING_H
601# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
Martin v. Löwis11437992002-04-12 09:54:03 +0000602# include <memory.h>
603# endif
604# include <string.h>
605#endif
Martin v. Löwiseba40652007-08-30 20:10:57 +0000606#ifdef HAVE_STRINGS_H
Martin v. Löwis11437992002-04-12 09:54:03 +0000607# include <strings.h>
608#endif
Martin v. Löwiseba40652007-08-30 20:10:57 +0000609#ifdef HAVE_INTTYPES_H
Martin v. Löwis11437992002-04-12 09:54:03 +0000610# include <inttypes.h>
Martin v. Löwis11437992002-04-12 09:54:03 +0000611#endif
Martin v. Löwiseba40652007-08-30 20:10:57 +0000612#ifdef HAVE_STDINT_H
613# include <stdint.h>
614#endif
615#ifdef HAVE_UNISTD_H
Martin v. Löwis11437992002-04-12 09:54:03 +0000616# include <unistd.h>
617#endif"
618
Martin v. Löwiseba40652007-08-30 20:10:57 +0000619ac_subst_vars='SHELL
620PATH_SEPARATOR
621PACKAGE_NAME
622PACKAGE_TARNAME
623PACKAGE_VERSION
624PACKAGE_STRING
625PACKAGE_BUGREPORT
626exec_prefix
627prefix
628program_transform_name
629bindir
630sbindir
631libexecdir
632datarootdir
633datadir
634sysconfdir
635sharedstatedir
636localstatedir
637includedir
638oldincludedir
639docdir
640infodir
641htmldir
642dvidir
643pdfdir
644psdir
645libdir
646localedir
647mandir
648DEFS
649ECHO_C
650ECHO_N
651ECHO_T
652LIBS
653build_alias
654host_alias
655target_alias
656VERSION
657SOVERSION
658CONFIG_ARGS
659UNIVERSALSDK
Benjamin Peterson0e6ea5d2008-07-16 20:17:04 +0000660ARCH_RUN_32BIT
Martin v. Löwiseba40652007-08-30 20:10:57 +0000661PYTHONFRAMEWORK
Ronald Oussoren580c7fe2008-05-02 19:45:11 +0000662PYTHONFRAMEWORKIDENTIFIER
Martin v. Löwiseba40652007-08-30 20:10:57 +0000663PYTHONFRAMEWORKDIR
664PYTHONFRAMEWORKPREFIX
665PYTHONFRAMEWORKINSTALLDIR
666FRAMEWORKINSTALLFIRST
667FRAMEWORKINSTALLLAST
668FRAMEWORKALTINSTALLFIRST
669FRAMEWORKALTINSTALLLAST
670FRAMEWORKUNIXTOOLSPREFIX
671MACHDEP
672SGI_ABI
673EXTRAPLATDIR
674EXTRAMACHDEPPATH
675CONFIGURE_MACOSX_DEPLOYMENT_TARGET
676EXPORT_MACOSX_DEPLOYMENT_TARGET
677CC
678CFLAGS
679LDFLAGS
680CPPFLAGS
681ac_ct_CC
682EXEEXT
683OBJEXT
684CXX
685MAINCC
686CPP
687GREP
688EGREP
689BUILDEXEEXT
690LIBRARY
691LDLIBRARY
692DLLLIBRARY
693BLDLIBRARY
694LDLIBRARYDIR
695INSTSONAME
696RUNSHARED
697LINKCC
Tarek Ziadée2be83d2009-05-09 08:28:53 +0000698GNULD
Martin v. Löwiseba40652007-08-30 20:10:57 +0000699RANLIB
700AR
Tarek Ziadé3a6e8862009-05-07 22:19:27 +0000701ARFLAGS
Martin v. Löwiseba40652007-08-30 20:10:57 +0000702SVNVERSION
703INSTALL_PROGRAM
704INSTALL_SCRIPT
705INSTALL_DATA
706LN
707OPT
708BASECFLAGS
Ronald Oussoren5640ce22008-06-05 12:58:24 +0000709UNIVERSAL_ARCH_FLAGS
Martin v. Löwiseba40652007-08-30 20:10:57 +0000710OTHER_LIBTOOL_OPT
711LIBTOOL_CRUFT
712SO
713LDSHARED
714BLDSHARED
715CCSHARED
716LINKFORSHARED
717CFLAGSFORSHARED
718SHLIBS
719USE_SIGNAL_MODULE
720SIGNAL_OBJS
721USE_THREAD_MODULE
722LDLAST
723THREADOBJ
724DLINCLDIR
725DYNLOADFILE
726MACHDEP_OBJS
727TRUE
728LIBOBJS
729HAVE_GETHOSTBYNAME_R_6_ARG
730HAVE_GETHOSTBYNAME_R_5_ARG
731HAVE_GETHOSTBYNAME_R_3_ARG
732HAVE_GETHOSTBYNAME_R
733HAVE_GETHOSTBYNAME
734LIBM
735LIBC
736UNICODE_OBJS
737THREADHEADERS
738SRCDIRS
739LTLIBOBJS'
Skip Montanaro6dead952003-09-25 14:50:04 +0000740ac_subst_files=''
Martin v. Löwiseba40652007-08-30 20:10:57 +0000741 ac_precious_vars='build_alias
742host_alias
743target_alias
744CC
745CFLAGS
746LDFLAGS
747LIBS
748CPPFLAGS
749CPP'
750
Guido van Rossum627b2d71993-12-24 10:39:16 +0000751
Guido van Rossum7f43da71994-08-01 12:15:30 +0000752# Initialize some variables set by options.
Martin v. Löwis11437992002-04-12 09:54:03 +0000753ac_init_help=
754ac_init_version=false
Guido van Rossum7f43da71994-08-01 12:15:30 +0000755# The variables have the same names as the options, with
756# dashes changed to underlines.
Martin v. Löwis11437992002-04-12 09:54:03 +0000757cache_file=/dev/null
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000758exec_prefix=NONE
Guido van Rossum7f43da71994-08-01 12:15:30 +0000759no_create=
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000760no_recursion=
761prefix=NONE
762program_prefix=NONE
763program_suffix=NONE
764program_transform_name=s,x,x,
Guido van Rossum7f43da71994-08-01 12:15:30 +0000765silent=
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000766site=
Guido van Rossum7f43da71994-08-01 12:15:30 +0000767srcdir=
Guido van Rossum7f43da71994-08-01 12:15:30 +0000768verbose=
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000769x_includes=NONE
770x_libraries=NONE
Martin v. Löwis11437992002-04-12 09:54:03 +0000771
772# Installation directory options.
773# These are left unexpanded so users can "make install exec_prefix=/foo"
774# and all the variables that are supposed to be based on exec_prefix
775# by default will actually change.
776# Use braces instead of parens because sh, perl, etc. also accept them.
Martin v. Löwiseba40652007-08-30 20:10:57 +0000777# (The list follows the same order as the GNU Coding Standards.)
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000778bindir='${exec_prefix}/bin'
779sbindir='${exec_prefix}/sbin'
780libexecdir='${exec_prefix}/libexec'
Martin v. Löwiseba40652007-08-30 20:10:57 +0000781datarootdir='${prefix}/share'
782datadir='${datarootdir}'
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000783sysconfdir='${prefix}/etc'
784sharedstatedir='${prefix}/com'
785localstatedir='${prefix}/var'
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000786includedir='${prefix}/include'
787oldincludedir='/usr/include'
Martin v. Löwiseba40652007-08-30 20:10:57 +0000788docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
789infodir='${datarootdir}/info'
790htmldir='${docdir}'
791dvidir='${docdir}'
792pdfdir='${docdir}'
793psdir='${docdir}'
794libdir='${exec_prefix}/lib'
795localedir='${datarootdir}/locale'
796mandir='${datarootdir}/man'
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000797
Guido van Rossum7f43da71994-08-01 12:15:30 +0000798ac_prev=
Martin v. Löwiseba40652007-08-30 20:10:57 +0000799ac_dashdash=
Guido van Rossum7f43da71994-08-01 12:15:30 +0000800for ac_option
Guido van Rossum627b2d71993-12-24 10:39:16 +0000801do
Guido van Rossum7f43da71994-08-01 12:15:30 +0000802 # If the previous option needs an argument, assign it.
803 if test -n "$ac_prev"; then
Martin v. Löwiseba40652007-08-30 20:10:57 +0000804 eval $ac_prev=\$ac_option
Guido van Rossum7f43da71994-08-01 12:15:30 +0000805 ac_prev=
806 continue
Guido van Rossum627b2d71993-12-24 10:39:16 +0000807 fi
Guido van Rossum7f43da71994-08-01 12:15:30 +0000808
Martin v. Löwiseba40652007-08-30 20:10:57 +0000809 case $ac_option in
810 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
811 *) ac_optarg=yes ;;
812 esac
Guido van Rossum7f43da71994-08-01 12:15:30 +0000813
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000814 # Accept the important Cygnus configure options, so we can diagnose typos.
815
Martin v. Löwiseba40652007-08-30 20:10:57 +0000816 case $ac_dashdash$ac_option in
817 --)
818 ac_dashdash=yes ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +0000819
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000820 -bindir | --bindir | --bindi | --bind | --bin | --bi)
821 ac_prev=bindir ;;
822 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Martin v. Löwis11437992002-04-12 09:54:03 +0000823 bindir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000824
825 -build | --build | --buil | --bui | --bu)
Martin v. Löwis11437992002-04-12 09:54:03 +0000826 ac_prev=build_alias ;;
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000827 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Martin v. Löwis11437992002-04-12 09:54:03 +0000828 build_alias=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +0000829
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000830 -cache-file | --cache-file | --cache-fil | --cache-fi \
831 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
832 ac_prev=cache_file ;;
833 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
834 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Martin v. Löwis11437992002-04-12 09:54:03 +0000835 cache_file=$ac_optarg ;;
836
837 --config-cache | -C)
838 cache_file=config.cache ;;
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000839
Martin v. Löwiseba40652007-08-30 20:10:57 +0000840 -datadir | --datadir | --datadi | --datad)
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000841 ac_prev=datadir ;;
Martin v. Löwiseba40652007-08-30 20:10:57 +0000842 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Martin v. Löwis11437992002-04-12 09:54:03 +0000843 datadir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000844
Martin v. Löwiseba40652007-08-30 20:10:57 +0000845 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
846 | --dataroo | --dataro | --datar)
847 ac_prev=datarootdir ;;
848 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
849 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
850 datarootdir=$ac_optarg ;;
851
Guido van Rossum7f43da71994-08-01 12:15:30 +0000852 -disable-* | --disable-*)
Martin v. Löwis11437992002-04-12 09:54:03 +0000853 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000854 # Reject names that are not valid shell variable names.
Martin v. Löwiseba40652007-08-30 20:10:57 +0000855 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Martin v. Löwis11437992002-04-12 09:54:03 +0000856 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
857 { (exit 1); exit 1; }; }
Martin v. Löwiseba40652007-08-30 20:10:57 +0000858 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
859 eval enable_$ac_feature=no ;;
860
861 -docdir | --docdir | --docdi | --doc | --do)
862 ac_prev=docdir ;;
863 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
864 docdir=$ac_optarg ;;
865
866 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
867 ac_prev=dvidir ;;
868 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
869 dvidir=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +0000870
871 -enable-* | --enable-*)
Martin v. Löwis11437992002-04-12 09:54:03 +0000872 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000873 # Reject names that are not valid shell variable names.
Martin v. Löwiseba40652007-08-30 20:10:57 +0000874 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Martin v. Löwis11437992002-04-12 09:54:03 +0000875 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
876 { (exit 1); exit 1; }; }
Martin v. Löwiseba40652007-08-30 20:10:57 +0000877 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
878 eval enable_$ac_feature=\$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +0000879
Guido van Rossum7f43da71994-08-01 12:15:30 +0000880 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
881 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
882 | --exec | --exe | --ex)
883 ac_prev=exec_prefix ;;
884 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
885 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
886 | --exec=* | --exe=* | --ex=*)
Martin v. Löwis11437992002-04-12 09:54:03 +0000887 exec_prefix=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +0000888
889 -gas | --gas | --ga | --g)
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000890 # Obsolete; use --with-gas.
891 with_gas=yes ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +0000892
Martin v. Löwis11437992002-04-12 09:54:03 +0000893 -help | --help | --hel | --he | -h)
894 ac_init_help=long ;;
895 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
896 ac_init_help=recursive ;;
897 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
898 ac_init_help=short ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +0000899
900 -host | --host | --hos | --ho)
Martin v. Löwis11437992002-04-12 09:54:03 +0000901 ac_prev=host_alias ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +0000902 -host=* | --host=* | --hos=* | --ho=*)
Martin v. Löwis11437992002-04-12 09:54:03 +0000903 host_alias=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +0000904
Martin v. Löwiseba40652007-08-30 20:10:57 +0000905 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
906 ac_prev=htmldir ;;
907 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
908 | --ht=*)
909 htmldir=$ac_optarg ;;
910
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000911 -includedir | --includedir | --includedi | --included | --include \
912 | --includ | --inclu | --incl | --inc)
913 ac_prev=includedir ;;
914 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
915 | --includ=* | --inclu=* | --incl=* | --inc=*)
Martin v. Löwis11437992002-04-12 09:54:03 +0000916 includedir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000917
918 -infodir | --infodir | --infodi | --infod | --info | --inf)
919 ac_prev=infodir ;;
920 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Martin v. Löwis11437992002-04-12 09:54:03 +0000921 infodir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000922
923 -libdir | --libdir | --libdi | --libd)
924 ac_prev=libdir ;;
925 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Martin v. Löwis11437992002-04-12 09:54:03 +0000926 libdir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000927
928 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
929 | --libexe | --libex | --libe)
930 ac_prev=libexecdir ;;
931 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
932 | --libexe=* | --libex=* | --libe=*)
Martin v. Löwis11437992002-04-12 09:54:03 +0000933 libexecdir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000934
Martin v. Löwiseba40652007-08-30 20:10:57 +0000935 -localedir | --localedir | --localedi | --localed | --locale)
936 ac_prev=localedir ;;
937 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
938 localedir=$ac_optarg ;;
939
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000940 -localstatedir | --localstatedir | --localstatedi | --localstated \
Martin v. Löwiseba40652007-08-30 20:10:57 +0000941 | --localstate | --localstat | --localsta | --localst | --locals)
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000942 ac_prev=localstatedir ;;
943 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Martin v. Löwiseba40652007-08-30 20:10:57 +0000944 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Martin v. Löwis11437992002-04-12 09:54:03 +0000945 localstatedir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000946
947 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
948 ac_prev=mandir ;;
949 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Martin v. Löwis11437992002-04-12 09:54:03 +0000950 mandir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000951
Guido van Rossum7f43da71994-08-01 12:15:30 +0000952 -nfp | --nfp | --nf)
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000953 # Obsolete; use --without-fp.
954 with_fp=no ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +0000955
956 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Martin v. Löwis11437992002-04-12 09:54:03 +0000957 | --no-cr | --no-c | -n)
Guido van Rossum7f43da71994-08-01 12:15:30 +0000958 no_create=yes ;;
959
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000960 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
961 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
962 no_recursion=yes ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +0000963
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000964 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
965 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
966 | --oldin | --oldi | --old | --ol | --o)
967 ac_prev=oldincludedir ;;
968 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
969 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
970 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Martin v. Löwis11437992002-04-12 09:54:03 +0000971 oldincludedir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000972
Guido van Rossum7f43da71994-08-01 12:15:30 +0000973 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
974 ac_prev=prefix ;;
975 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Martin v. Löwis11437992002-04-12 09:54:03 +0000976 prefix=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +0000977
978 -program-prefix | --program-prefix | --program-prefi | --program-pref \
979 | --program-pre | --program-pr | --program-p)
980 ac_prev=program_prefix ;;
981 -program-prefix=* | --program-prefix=* | --program-prefi=* \
982 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Martin v. Löwis11437992002-04-12 09:54:03 +0000983 program_prefix=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +0000984
985 -program-suffix | --program-suffix | --program-suffi | --program-suff \
986 | --program-suf | --program-su | --program-s)
987 ac_prev=program_suffix ;;
988 -program-suffix=* | --program-suffix=* | --program-suffi=* \
989 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Martin v. Löwis11437992002-04-12 09:54:03 +0000990 program_suffix=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +0000991
992 -program-transform-name | --program-transform-name \
993 | --program-transform-nam | --program-transform-na \
994 | --program-transform-n | --program-transform- \
995 | --program-transform | --program-transfor \
996 | --program-transfo | --program-transf \
997 | --program-trans | --program-tran \
998 | --progr-tra | --program-tr | --program-t)
999 ac_prev=program_transform_name ;;
1000 -program-transform-name=* | --program-transform-name=* \
1001 | --program-transform-nam=* | --program-transform-na=* \
1002 | --program-transform-n=* | --program-transform-=* \
1003 | --program-transform=* | --program-transfor=* \
1004 | --program-transfo=* | --program-transf=* \
1005 | --program-trans=* | --program-tran=* \
1006 | --progr-tra=* | --program-tr=* | --program-t=*)
Martin v. Löwis11437992002-04-12 09:54:03 +00001007 program_transform_name=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +00001008
Martin v. Löwiseba40652007-08-30 20:10:57 +00001009 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1010 ac_prev=pdfdir ;;
1011 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1012 pdfdir=$ac_optarg ;;
1013
1014 -psdir | --psdir | --psdi | --psd | --ps)
1015 ac_prev=psdir ;;
1016 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1017 psdir=$ac_optarg ;;
1018
Guido van Rossum7f43da71994-08-01 12:15:30 +00001019 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1020 | -silent | --silent | --silen | --sile | --sil)
1021 silent=yes ;;
1022
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00001023 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1024 ac_prev=sbindir ;;
1025 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1026 | --sbi=* | --sb=*)
Martin v. Löwis11437992002-04-12 09:54:03 +00001027 sbindir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00001028
1029 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1030 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1031 | --sharedst | --shareds | --shared | --share | --shar \
1032 | --sha | --sh)
1033 ac_prev=sharedstatedir ;;
1034 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1035 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1036 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1037 | --sha=* | --sh=*)
Martin v. Löwis11437992002-04-12 09:54:03 +00001038 sharedstatedir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00001039
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001040 -site | --site | --sit)
1041 ac_prev=site ;;
1042 -site=* | --site=* | --sit=*)
Martin v. Löwis11437992002-04-12 09:54:03 +00001043 site=$ac_optarg ;;
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001044
Guido van Rossum7f43da71994-08-01 12:15:30 +00001045 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1046 ac_prev=srcdir ;;
1047 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Martin v. Löwis11437992002-04-12 09:54:03 +00001048 srcdir=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +00001049
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00001050 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1051 | --syscon | --sysco | --sysc | --sys | --sy)
1052 ac_prev=sysconfdir ;;
1053 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1054 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Martin v. Löwis11437992002-04-12 09:54:03 +00001055 sysconfdir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00001056
Guido van Rossum7f43da71994-08-01 12:15:30 +00001057 -target | --target | --targe | --targ | --tar | --ta | --t)
Martin v. Löwis11437992002-04-12 09:54:03 +00001058 ac_prev=target_alias ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +00001059 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Martin v. Löwis11437992002-04-12 09:54:03 +00001060 target_alias=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +00001061
1062 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1063 verbose=yes ;;
1064
Martin v. Löwis11437992002-04-12 09:54:03 +00001065 -version | --version | --versio | --versi | --vers | -V)
1066 ac_init_version=: ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +00001067
1068 -with-* | --with-*)
Martin v. Löwis11437992002-04-12 09:54:03 +00001069 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001070 # Reject names that are not valid shell variable names.
Martin v. Löwiseba40652007-08-30 20:10:57 +00001071 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Martin v. Löwis11437992002-04-12 09:54:03 +00001072 { echo "$as_me: error: invalid package name: $ac_package" >&2
1073 { (exit 1); exit 1; }; }
Martin v. Löwiseba40652007-08-30 20:10:57 +00001074 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1075 eval with_$ac_package=\$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +00001076
1077 -without-* | --without-*)
Martin v. Löwis11437992002-04-12 09:54:03 +00001078 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001079 # Reject names that are not valid shell variable names.
Martin v. Löwiseba40652007-08-30 20:10:57 +00001080 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Martin v. Löwis11437992002-04-12 09:54:03 +00001081 { echo "$as_me: error: invalid package name: $ac_package" >&2
1082 { (exit 1); exit 1; }; }
Martin v. Löwiseba40652007-08-30 20:10:57 +00001083 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1084 eval with_$ac_package=no ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +00001085
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001086 --x)
1087 # Obsolete; use --with-x.
1088 with_x=yes ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +00001089
1090 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1091 | --x-incl | --x-inc | --x-in | --x-i)
1092 ac_prev=x_includes ;;
1093 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1094 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Martin v. Löwis11437992002-04-12 09:54:03 +00001095 x_includes=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +00001096
1097 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1098 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1099 ac_prev=x_libraries ;;
1100 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1101 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Martin v. Löwis11437992002-04-12 09:54:03 +00001102 x_libraries=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +00001103
Martin v. Löwis11437992002-04-12 09:54:03 +00001104 -*) { echo "$as_me: error: unrecognized option: $ac_option
1105Try \`$0 --help' for more information." >&2
1106 { (exit 1); exit 1; }; }
Guido van Rossum7f43da71994-08-01 12:15:30 +00001107 ;;
1108
Martin v. Löwis11437992002-04-12 09:54:03 +00001109 *=*)
1110 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1111 # Reject names that are not valid shell variable names.
1112 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1113 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1114 { (exit 1); exit 1; }; }
Martin v. Löwiseba40652007-08-30 20:10:57 +00001115 eval $ac_envvar=\$ac_optarg
Martin v. Löwis11437992002-04-12 09:54:03 +00001116 export $ac_envvar ;;
1117
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00001118 *)
Martin v. Löwis11437992002-04-12 09:54:03 +00001119 # FIXME: should be removed in autoconf 3.0.
1120 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1121 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1122 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1123 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
Guido van Rossum7f43da71994-08-01 12:15:30 +00001124 ;;
1125
1126 esac
Guido van Rossum627b2d71993-12-24 10:39:16 +00001127done
1128
Guido van Rossum7f43da71994-08-01 12:15:30 +00001129if test -n "$ac_prev"; then
Martin v. Löwis11437992002-04-12 09:54:03 +00001130 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1131 { echo "$as_me: error: missing argument to $ac_option" >&2
1132 { (exit 1); exit 1; }; }
Guido van Rossum7f43da71994-08-01 12:15:30 +00001133fi
1134
Martin v. Löwiseba40652007-08-30 20:10:57 +00001135# Be sure to have absolute directory names.
1136for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1137 datadir sysconfdir sharedstatedir localstatedir includedir \
1138 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1139 libdir localedir mandir
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001140do
Martin v. Löwiseba40652007-08-30 20:10:57 +00001141 eval ac_val=\$$ac_var
Martin v. Löwis11437992002-04-12 09:54:03 +00001142 case $ac_val in
Martin v. Löwiseba40652007-08-30 20:10:57 +00001143 [\\/$]* | ?:[\\/]* ) continue;;
1144 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Guido van Rossum7f43da71994-08-01 12:15:30 +00001145 esac
Martin v. Löwiseba40652007-08-30 20:10:57 +00001146 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1147 { (exit 1); exit 1; }; }
Martin v. Löwis11437992002-04-12 09:54:03 +00001148done
Guido van Rossum627b2d71993-12-24 10:39:16 +00001149
Martin v. Löwis11437992002-04-12 09:54:03 +00001150# There might be people who depend on the old broken behavior: `$host'
1151# used to hold the argument of --host etc.
1152# FIXME: To remove some day.
1153build=$build_alias
1154host=$host_alias
1155target=$target_alias
Guido van Rossum627b2d71993-12-24 10:39:16 +00001156
Martin v. Löwis11437992002-04-12 09:54:03 +00001157# FIXME: To remove some day.
1158if test "x$host_alias" != x; then
1159 if test "x$build_alias" = x; then
1160 cross_compiling=maybe
1161 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1162 If a cross compiler is detected then cross compile mode will be used." >&2
1163 elif test "x$build_alias" != "x$host_alias"; then
1164 cross_compiling=yes
1165 fi
1166fi
1167
1168ac_tool_prefix=
1169test -n "$host_alias" && ac_tool_prefix=$host_alias-
1170
1171test "$silent" = yes && exec 6>/dev/null
1172
Guido van Rossum627b2d71993-12-24 10:39:16 +00001173
Martin v. Löwiseba40652007-08-30 20:10:57 +00001174ac_pwd=`pwd` && test -n "$ac_pwd" &&
1175ac_ls_di=`ls -di .` &&
1176ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1177 { echo "$as_me: error: Working directory cannot be determined" >&2
1178 { (exit 1); exit 1; }; }
1179test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1180 { echo "$as_me: error: pwd does not report name of working directory" >&2
1181 { (exit 1); exit 1; }; }
1182
1183
Guido van Rossum627b2d71993-12-24 10:39:16 +00001184# Find the source files, if location was not specified.
1185if test -z "$srcdir"; then
Guido van Rossum7f43da71994-08-01 12:15:30 +00001186 ac_srcdir_defaulted=yes
Martin v. Löwiseba40652007-08-30 20:10:57 +00001187 # Try the directory containing this script, then the parent directory.
1188 ac_confdir=`$as_dirname -- "$0" ||
Martin v. Löwis11437992002-04-12 09:54:03 +00001189$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Skip Montanarof0d5f792004-08-15 14:08:23 +00001190 X"$0" : 'X\(//\)[^/]' \| \
1191 X"$0" : 'X\(//\)$' \| \
Martin v. Löwiseba40652007-08-30 20:10:57 +00001192 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Martin v. Löwis11437992002-04-12 09:54:03 +00001193echo X"$0" |
Martin v. Löwiseba40652007-08-30 20:10:57 +00001194 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1195 s//\1/
1196 q
1197 }
1198 /^X\(\/\/\)[^/].*/{
1199 s//\1/
1200 q
1201 }
1202 /^X\(\/\/\)$/{
1203 s//\1/
1204 q
1205 }
1206 /^X\(\/\).*/{
1207 s//\1/
1208 q
1209 }
1210 s/.*/./; q'`
Guido van Rossum7f43da71994-08-01 12:15:30 +00001211 srcdir=$ac_confdir
Martin v. Löwiseba40652007-08-30 20:10:57 +00001212 if test ! -r "$srcdir/$ac_unique_file"; then
Guido van Rossum627b2d71993-12-24 10:39:16 +00001213 srcdir=..
1214 fi
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001215else
1216 ac_srcdir_defaulted=no
Guido van Rossum627b2d71993-12-24 10:39:16 +00001217fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00001218if test ! -r "$srcdir/$ac_unique_file"; then
1219 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1220 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
Martin v. Löwis11437992002-04-12 09:54:03 +00001221 { (exit 1); exit 1; }; }
Brett Cannon19fab762007-06-02 03:02:29 +00001222fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00001223ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1224ac_abs_confdir=`(
1225 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
Skip Montanaro89e975f2007-08-22 19:05:21 +00001226 { (exit 1); exit 1; }; }
Martin v. Löwiseba40652007-08-30 20:10:57 +00001227 pwd)`
1228# When building in place, set srcdir=.
1229if test "$ac_abs_confdir" = "$ac_pwd"; then
1230 srcdir=.
1231fi
1232# Remove unnecessary trailing slashes from srcdir.
1233# Double slashes in file names in object file debugging info
1234# mess up M-x gdb in Emacs.
1235case $srcdir in
1236*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1237esac
1238for ac_var in $ac_precious_vars; do
1239 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1240 eval ac_env_${ac_var}_value=\$${ac_var}
1241 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1242 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1243done
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001244
Martin v. Löwis11437992002-04-12 09:54:03 +00001245#
1246# Report the --help message.
1247#
1248if test "$ac_init_help" = "long"; then
1249 # Omit some internal or obsolete options to make the list less imposing.
1250 # This message is too long to be a string in the A/UX 3.1 sh.
1251 cat <<_ACEOF
Martin v. Löwis174440b2008-10-03 08:59:41 +00001252\`configure' configures python 2.7 to adapt to many kinds of systems.
Martin v. Löwis11437992002-04-12 09:54:03 +00001253
1254Usage: $0 [OPTION]... [VAR=VALUE]...
1255
1256To assign environment variables (e.g., CC, CFLAGS...), specify them as
1257VAR=VALUE. See below for descriptions of some of the useful variables.
1258
1259Defaults for the options are specified in brackets.
1260
1261Configuration:
1262 -h, --help display this help and exit
1263 --help=short display options specific to this package
1264 --help=recursive display the short help of all the included packages
1265 -V, --version display version information and exit
1266 -q, --quiet, --silent do not print \`checking...' messages
1267 --cache-file=FILE cache test results in FILE [disabled]
1268 -C, --config-cache alias for \`--cache-file=config.cache'
1269 -n, --no-create do not create output files
1270 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1271
Martin v. Löwis11437992002-04-12 09:54:03 +00001272Installation directories:
1273 --prefix=PREFIX install architecture-independent files in PREFIX
Skip Montanarof0d5f792004-08-15 14:08:23 +00001274 [$ac_default_prefix]
Martin v. Löwis11437992002-04-12 09:54:03 +00001275 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Skip Montanarof0d5f792004-08-15 14:08:23 +00001276 [PREFIX]
Martin v. Löwis11437992002-04-12 09:54:03 +00001277
1278By default, \`make install' will install all the files in
1279\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1280an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1281for instance \`--prefix=\$HOME'.
1282
1283For better control, use the options below.
1284
1285Fine tuning of the installation directories:
1286 --bindir=DIR user executables [EPREFIX/bin]
1287 --sbindir=DIR system admin executables [EPREFIX/sbin]
1288 --libexecdir=DIR program executables [EPREFIX/libexec]
Martin v. Löwis11437992002-04-12 09:54:03 +00001289 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1290 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1291 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1292 --libdir=DIR object code libraries [EPREFIX/lib]
1293 --includedir=DIR C header files [PREFIX/include]
1294 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Martin v. Löwiseba40652007-08-30 20:10:57 +00001295 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1296 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1297 --infodir=DIR info documentation [DATAROOTDIR/info]
1298 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1299 --mandir=DIR man documentation [DATAROOTDIR/man]
1300 --docdir=DIR documentation root [DATAROOTDIR/doc/python]
1301 --htmldir=DIR html documentation [DOCDIR]
1302 --dvidir=DIR dvi documentation [DOCDIR]
1303 --pdfdir=DIR pdf documentation [DOCDIR]
1304 --psdir=DIR ps documentation [DOCDIR]
Martin v. Löwis11437992002-04-12 09:54:03 +00001305_ACEOF
1306
1307 cat <<\_ACEOF
1308_ACEOF
1309fi
1310
1311if test -n "$ac_init_help"; then
Martin v. Löwis88afe662002-10-26 13:47:44 +00001312 case $ac_init_help in
Martin v. Löwis174440b2008-10-03 08:59:41 +00001313 short | recursive ) echo "Configuration of python 2.7:";;
Martin v. Löwis88afe662002-10-26 13:47:44 +00001314 esac
Martin v. Löwis11437992002-04-12 09:54:03 +00001315 cat <<\_ACEOF
1316
1317Optional Features:
1318 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1319 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Brett Cannon91a1dec2008-02-13 19:15:44 +00001320 --enable-universalsdk[=SDKDIR]
Brett Cannon9a8bb0e2008-02-03 02:07:55 +00001321 Build against Mac OS X 10.4u SDK (ppc/i386)
Martin v. Löwis3e2c6322002-10-29 10:07:43 +00001322 --enable-framework[=INSTALLDIR]
1323 Build (MacOSX|Darwin) framework
1324 --enable-shared disable/enable building shared python library
Skip Montanaro56f6a4f2004-06-18 02:47:22 +00001325 --enable-profiling enable C-level code profiling
Martin v. Löwis3e2c6322002-10-29 10:07:43 +00001326 --enable-toolbox-glue disable/enable MacOSX glue code for extensions
1327 --enable-ipv6 Enable ipv6 (with ipv4) support
1328 --disable-ipv6 Disable ipv6 support
Mark Dickinsonefc82f72009-03-20 15:51:55 +00001329 --enable-big-digits[=BITS]
1330 use big digits for Python longs [BITS=30]
Martin v. Löwis3e2c6322002-10-29 10:07:43 +00001331 --enable-unicode[=ucs[24]]
1332 Enable Unicode strings (default is yes)
Martin v. Löwis11437992002-04-12 09:54:03 +00001333
1334Optional Packages:
1335 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1336 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Ronald Oussoren5640ce22008-06-05 12:58:24 +00001337 --with-universal-archs=ARCH
1338 select architectures for universal build ("32-bit",
1339 "64-bit" or "all")
Ronald Oussoren580c7fe2008-05-02 19:45:11 +00001340 --with-framework-name=FRAMEWORK
1341 specify an alternate name of the framework built
1342 with --enable-framework
Martin v. Löwis3e2c6322002-10-29 10:07:43 +00001343 --without-gcc never use gcc
Martin v. Löwis0f48d982006-04-14 14:34:26 +00001344 --with-cxx-main=<compiler>
1345 compile main() and link python executable with C++
1346 compiler
Martin v. Löwis3e2c6322002-10-29 10:07:43 +00001347 --with-suffix=.exe set executable suffix
1348 --with-pydebug build with Py_DEBUG defined
1349 --with-libs='lib1 ...' link against additional libs
Martin v. Löwis9176fc12006-04-11 11:12:43 +00001350 --with-system-ffi build _ctypes module using an installed ffi library
Benjamin Peterson867475c2009-04-29 20:36:25 +00001351 --with-dbmliborder=db1:db2:...
1352 order to check db backends for dbm. Valid value is a
1353 colon separated string with the backend names
1354 `ndbm', `gdbm' and `bdb'.
Martin v. Löwis3e2c6322002-10-29 10:07:43 +00001355 --with-signal-module disable/enable signal module
1356 --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries
1357 --with(out)-threads[=DIRECTORY]
1358 disable/enable thread support
1359 --with(out)-thread[=DIRECTORY]
1360 deprecated; use --with(out)-threads
1361 --with-pth use GNU pth threading libraries
Martin v. Löwis3e2c6322002-10-29 10:07:43 +00001362 --with(out)-doc-strings disable/enable documentation strings
Martin v. Löwisf30d60e2004-06-08 08:17:44 +00001363 --with(out)-tsc enable/disable timestamp counter profile
Martin v. Löwis3e2c6322002-10-29 10:07:43 +00001364 --with(out)-pymalloc disable/enable specialized mallocs
1365 --with-wctype-functions use wctype.h functions
Martin v. Löwis3e2c6322002-10-29 10:07:43 +00001366 --with-fpectl enable SIGFPE catching
1367 --with-libm=STRING math library
1368 --with-libc=STRING C library
Martin v. Löwis11437992002-04-12 09:54:03 +00001369
1370Some influential environment variables:
1371 CC C compiler command
1372 CFLAGS C compiler flags
1373 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1374 nonstandard directory <lib dir>
Martin v. Löwiseba40652007-08-30 20:10:57 +00001375 LIBS libraries to pass to the linker, e.g. -l<library>
1376 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1377 you have headers in a nonstandard directory <include dir>
Martin v. Löwis11437992002-04-12 09:54:03 +00001378 CPP C preprocessor
1379
1380Use these variables to override the choices made by `configure' or to help
1381it to find libraries and programs with nonstandard names/locations.
1382
Georg Brandl464432d2009-05-20 18:24:08 +00001383Report bugs to <http://bugs.python.org/>.
Martin v. Löwis11437992002-04-12 09:54:03 +00001384_ACEOF
Martin v. Löwiseba40652007-08-30 20:10:57 +00001385ac_status=$?
Martin v. Löwis11437992002-04-12 09:54:03 +00001386fi
1387
1388if test "$ac_init_help" = "recursive"; then
1389 # If there are subdirs, report their specific --help.
Martin v. Löwis11437992002-04-12 09:54:03 +00001390 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Martin v. Löwiseba40652007-08-30 20:10:57 +00001391 test -d "$ac_dir" || continue
Martin v. Löwis11437992002-04-12 09:54:03 +00001392 ac_builddir=.
1393
Martin v. Löwiseba40652007-08-30 20:10:57 +00001394case "$ac_dir" in
1395.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1396*)
Martin v. Löwis11437992002-04-12 09:54:03 +00001397 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Martin v. Löwiseba40652007-08-30 20:10:57 +00001398 # A ".." for each directory in $ac_dir_suffix.
1399 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1400 case $ac_top_builddir_sub in
1401 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1402 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1403 esac ;;
1404esac
1405ac_abs_top_builddir=$ac_pwd
1406ac_abs_builddir=$ac_pwd$ac_dir_suffix
1407# for backward compatibility:
1408ac_top_builddir=$ac_top_build_prefix
Martin v. Löwis11437992002-04-12 09:54:03 +00001409
1410case $srcdir in
Martin v. Löwiseba40652007-08-30 20:10:57 +00001411 .) # We are building in place.
Martin v. Löwis11437992002-04-12 09:54:03 +00001412 ac_srcdir=.
Martin v. Löwiseba40652007-08-30 20:10:57 +00001413 ac_top_srcdir=$ac_top_builddir_sub
1414 ac_abs_top_srcdir=$ac_pwd ;;
1415 [\\/]* | ?:[\\/]* ) # Absolute name.
Martin v. Löwis11437992002-04-12 09:54:03 +00001416 ac_srcdir=$srcdir$ac_dir_suffix;
Martin v. Löwiseba40652007-08-30 20:10:57 +00001417 ac_top_srcdir=$srcdir
1418 ac_abs_top_srcdir=$srcdir ;;
1419 *) # Relative name.
1420 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1421 ac_top_srcdir=$ac_top_build_prefix$srcdir
1422 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Martin v. Löwis11437992002-04-12 09:54:03 +00001423esac
Martin v. Löwiseba40652007-08-30 20:10:57 +00001424ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Skip Montanarof0d5f792004-08-15 14:08:23 +00001425
Martin v. Löwiseba40652007-08-30 20:10:57 +00001426 cd "$ac_dir" || { ac_status=$?; continue; }
1427 # Check for guested configure.
1428 if test -f "$ac_srcdir/configure.gnu"; then
1429 echo &&
1430 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1431 elif test -f "$ac_srcdir/configure"; then
1432 echo &&
1433 $SHELL "$ac_srcdir/configure" --help=recursive
Martin v. Löwis11437992002-04-12 09:54:03 +00001434 else
1435 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Martin v. Löwiseba40652007-08-30 20:10:57 +00001436 fi || ac_status=$?
1437 cd "$ac_pwd" || { ac_status=$?; break; }
Martin v. Löwis11437992002-04-12 09:54:03 +00001438 done
1439fi
1440
Martin v. Löwiseba40652007-08-30 20:10:57 +00001441test -n "$ac_init_help" && exit $ac_status
Martin v. Löwis11437992002-04-12 09:54:03 +00001442if $ac_init_version; then
1443 cat <<\_ACEOF
Martin v. Löwis174440b2008-10-03 08:59:41 +00001444python configure 2.7
Martin v. Löwiseba40652007-08-30 20:10:57 +00001445generated by GNU Autoconf 2.61
Martin v. Löwis11437992002-04-12 09:54:03 +00001446
Martin v. Löwiseba40652007-08-30 20:10:57 +00001447Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
14482002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
Martin v. Löwis11437992002-04-12 09:54:03 +00001449This configure script is free software; the Free Software Foundation
1450gives unlimited permission to copy, distribute and modify it.
1451_ACEOF
Martin v. Löwiseba40652007-08-30 20:10:57 +00001452 exit
Martin v. Löwis11437992002-04-12 09:54:03 +00001453fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00001454cat >config.log <<_ACEOF
Martin v. Löwis11437992002-04-12 09:54:03 +00001455This file contains any messages produced by compilers while
1456running configure, to aid debugging if configure makes a mistake.
1457
Martin v. Löwis174440b2008-10-03 08:59:41 +00001458It was created by python $as_me 2.7, which was
Martin v. Löwiseba40652007-08-30 20:10:57 +00001459generated by GNU Autoconf 2.61. Invocation command line was
Martin v. Löwis11437992002-04-12 09:54:03 +00001460
1461 $ $0 $@
1462
1463_ACEOF
Martin v. Löwiseba40652007-08-30 20:10:57 +00001464exec 5>>config.log
Martin v. Löwis11437992002-04-12 09:54:03 +00001465{
1466cat <<_ASUNAME
1467## --------- ##
1468## Platform. ##
1469## --------- ##
1470
1471hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1472uname -m = `(uname -m) 2>/dev/null || echo unknown`
1473uname -r = `(uname -r) 2>/dev/null || echo unknown`
1474uname -s = `(uname -s) 2>/dev/null || echo unknown`
1475uname -v = `(uname -v) 2>/dev/null || echo unknown`
1476
1477/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1478/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1479
1480/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1481/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1482/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Martin v. Löwiseba40652007-08-30 20:10:57 +00001483/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Martin v. Löwis11437992002-04-12 09:54:03 +00001484/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1485/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1486/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1487
1488_ASUNAME
1489
1490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1491for as_dir in $PATH
1492do
1493 IFS=$as_save_IFS
1494 test -z "$as_dir" && as_dir=.
1495 echo "PATH: $as_dir"
1496done
Martin v. Löwiseba40652007-08-30 20:10:57 +00001497IFS=$as_save_IFS
Martin v. Löwis11437992002-04-12 09:54:03 +00001498
1499} >&5
1500
1501cat >&5 <<_ACEOF
1502
1503
1504## ----------- ##
1505## Core tests. ##
1506## ----------- ##
1507
1508_ACEOF
1509
1510
1511# Keep a trace of the command line.
1512# Strip out --no-create and --no-recursion so they do not pile up.
Skip Montanaro6dead952003-09-25 14:50:04 +00001513# Strip out --silent because we don't want to record it for future runs.
Martin v. Löwis11437992002-04-12 09:54:03 +00001514# Also quote any args containing shell meta-characters.
Skip Montanaro6dead952003-09-25 14:50:04 +00001515# Make two passes to allow for proper duplicate-argument suppression.
Martin v. Löwis11437992002-04-12 09:54:03 +00001516ac_configure_args=
Skip Montanaro6dead952003-09-25 14:50:04 +00001517ac_configure_args0=
1518ac_configure_args1=
Skip Montanaro6dead952003-09-25 14:50:04 +00001519ac_must_keep_next=false
1520for ac_pass in 1 2
Martin v. Löwis11437992002-04-12 09:54:03 +00001521do
Skip Montanaro6dead952003-09-25 14:50:04 +00001522 for ac_arg
1523 do
1524 case $ac_arg in
1525 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1526 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1527 | -silent | --silent | --silen | --sile | --sil)
1528 continue ;;
Martin v. Löwiseba40652007-08-30 20:10:57 +00001529 *\'*)
Skip Montanaro6dead952003-09-25 14:50:04 +00001530 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1531 esac
1532 case $ac_pass in
1533 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1534 2)
1535 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1536 if test $ac_must_keep_next = true; then
Skip Montanarof0d5f792004-08-15 14:08:23 +00001537 ac_must_keep_next=false # Got value, back to normal.
Skip Montanaro6dead952003-09-25 14:50:04 +00001538 else
Skip Montanarof0d5f792004-08-15 14:08:23 +00001539 case $ac_arg in
1540 *=* | --config-cache | -C | -disable-* | --disable-* \
1541 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1542 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1543 | -with-* | --with-* | -without-* | --without-* | --x)
1544 case "$ac_configure_args0 " in
1545 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1546 esac
1547 ;;
1548 -* ) ac_must_keep_next=true ;;
1549 esac
Skip Montanaro6dead952003-09-25 14:50:04 +00001550 fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00001551 ac_configure_args="$ac_configure_args '$ac_arg'"
Skip Montanaro6dead952003-09-25 14:50:04 +00001552 ;;
1553 esac
1554 done
Martin v. Löwis11437992002-04-12 09:54:03 +00001555done
Skip Montanaro6dead952003-09-25 14:50:04 +00001556$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1557$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
Martin v. Löwis11437992002-04-12 09:54:03 +00001558
1559# When interrupted or exit'd, cleanup temporary files, and complete
1560# config.log. We remove comments because anyway the quotes in there
1561# would cause problems or look ugly.
Martin v. Löwiseba40652007-08-30 20:10:57 +00001562# WARNING: Use '\'' to represent an apostrophe within the trap.
1563# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
Martin v. Löwis11437992002-04-12 09:54:03 +00001564trap 'exit_status=$?
1565 # Save into config.log some information that might help in debugging.
1566 {
1567 echo
Skip Montanaro6dead952003-09-25 14:50:04 +00001568
Martin v. Löwis11437992002-04-12 09:54:03 +00001569 cat <<\_ASBOX
1570## ---------------- ##
1571## Cache variables. ##
1572## ---------------- ##
1573_ASBOX
1574 echo
1575 # The following way of writing the cache mishandles newlines in values,
Martin v. Löwiseba40652007-08-30 20:10:57 +00001576(
1577 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1578 eval ac_val=\$$ac_var
1579 case $ac_val in #(
1580 *${as_nl}*)
1581 case $ac_var in #(
1582 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1583echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1584 esac
1585 case $ac_var in #(
1586 _ | IFS | as_nl) ;; #(
1587 *) $as_unset $ac_var ;;
1588 esac ;;
1589 esac
1590 done
Martin v. Löwis11437992002-04-12 09:54:03 +00001591 (set) 2>&1 |
Martin v. Löwiseba40652007-08-30 20:10:57 +00001592 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1593 *${as_nl}ac_space=\ *)
Martin v. Löwis11437992002-04-12 09:54:03 +00001594 sed -n \
Martin v. Löwiseba40652007-08-30 20:10:57 +00001595 "s/'\''/'\''\\\\'\'''\''/g;
1596 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1597 ;; #(
Skip Montanaro89e975f2007-08-22 19:05:21 +00001598 *)
Martin v. Löwiseba40652007-08-30 20:10:57 +00001599 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Skip Montanaro89e975f2007-08-22 19:05:21 +00001600 ;;
Martin v. Löwiseba40652007-08-30 20:10:57 +00001601 esac |
1602 sort
1603)
Martin v. Löwis11437992002-04-12 09:54:03 +00001604 echo
Skip Montanaro6dead952003-09-25 14:50:04 +00001605
1606 cat <<\_ASBOX
1607## ----------------- ##
1608## Output variables. ##
1609## ----------------- ##
1610_ASBOX
1611 echo
1612 for ac_var in $ac_subst_vars
1613 do
Martin v. Löwiseba40652007-08-30 20:10:57 +00001614 eval ac_val=\$$ac_var
1615 case $ac_val in
1616 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1617 esac
1618 echo "$ac_var='\''$ac_val'\''"
Skip Montanaro6dead952003-09-25 14:50:04 +00001619 done | sort
1620 echo
1621
1622 if test -n "$ac_subst_files"; then
1623 cat <<\_ASBOX
Martin v. Löwiseba40652007-08-30 20:10:57 +00001624## ------------------- ##
1625## File substitutions. ##
1626## ------------------- ##
Skip Montanaro6dead952003-09-25 14:50:04 +00001627_ASBOX
1628 echo
1629 for ac_var in $ac_subst_files
1630 do
Martin v. Löwiseba40652007-08-30 20:10:57 +00001631 eval ac_val=\$$ac_var
1632 case $ac_val in
1633 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1634 esac
1635 echo "$ac_var='\''$ac_val'\''"
Skip Montanaro6dead952003-09-25 14:50:04 +00001636 done | sort
1637 echo
1638 fi
1639
Martin v. Löwis11437992002-04-12 09:54:03 +00001640 if test -s confdefs.h; then
1641 cat <<\_ASBOX
1642## ----------- ##
1643## confdefs.h. ##
1644## ----------- ##
1645_ASBOX
1646 echo
Martin v. Löwiseba40652007-08-30 20:10:57 +00001647 cat confdefs.h
Martin v. Löwis11437992002-04-12 09:54:03 +00001648 echo
1649 fi
1650 test "$ac_signal" != 0 &&
1651 echo "$as_me: caught signal $ac_signal"
1652 echo "$as_me: exit $exit_status"
1653 } >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00001654 rm -f core *.core core.conftest.* &&
1655 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Martin v. Löwis11437992002-04-12 09:54:03 +00001656 exit $exit_status
Martin v. Löwiseba40652007-08-30 20:10:57 +00001657' 0
Martin v. Löwis11437992002-04-12 09:54:03 +00001658for ac_signal in 1 2 13 15; do
1659 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1660done
1661ac_signal=0
1662
1663# confdefs.h avoids OS command line length limits that DEFS can exceed.
Martin v. Löwiseba40652007-08-30 20:10:57 +00001664rm -f -r conftest* confdefs.h
Martin v. Löwis11437992002-04-12 09:54:03 +00001665
1666# Predefined preprocessor variables.
1667
1668cat >>confdefs.h <<_ACEOF
1669#define PACKAGE_NAME "$PACKAGE_NAME"
1670_ACEOF
1671
1672
1673cat >>confdefs.h <<_ACEOF
1674#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1675_ACEOF
1676
1677
1678cat >>confdefs.h <<_ACEOF
1679#define PACKAGE_VERSION "$PACKAGE_VERSION"
1680_ACEOF
1681
1682
1683cat >>confdefs.h <<_ACEOF
1684#define PACKAGE_STRING "$PACKAGE_STRING"
1685_ACEOF
1686
1687
1688cat >>confdefs.h <<_ACEOF
1689#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1690_ACEOF
1691
1692
1693# Let the site file select an alternate cache file if it wants to.
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001694# Prefer explicitly selected file to automatically selected ones.
Martin v. Löwiseba40652007-08-30 20:10:57 +00001695if test -n "$CONFIG_SITE"; then
1696 set x "$CONFIG_SITE"
1697elif test "x$prefix" != xNONE; then
1698 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1699else
1700 set x "$ac_default_prefix/share/config.site" \
1701 "$ac_default_prefix/etc/config.site"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001702fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00001703shift
1704for ac_site_file
1705do
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001706 if test -r "$ac_site_file"; then
Martin v. Löwis11437992002-04-12 09:54:03 +00001707 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1708echo "$as_me: loading site script $ac_site_file" >&6;}
1709 sed 's/^/| /' "$ac_site_file" >&5
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001710 . "$ac_site_file"
1711 fi
1712done
1713
1714if test -r "$cache_file"; then
Martin v. Löwis11437992002-04-12 09:54:03 +00001715 # Some versions of bash will fail to source /dev/null (special
1716 # files actually), so we avoid doing that.
1717 if test -f "$cache_file"; then
1718 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1719echo "$as_me: loading cache $cache_file" >&6;}
1720 case $cache_file in
Martin v. Löwiseba40652007-08-30 20:10:57 +00001721 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1722 *) . "./$cache_file";;
Martin v. Löwis11437992002-04-12 09:54:03 +00001723 esac
1724 fi
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001725else
Martin v. Löwis11437992002-04-12 09:54:03 +00001726 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1727echo "$as_me: creating cache $cache_file" >&6;}
1728 >$cache_file
1729fi
1730
1731# Check that the precious variables saved in the cache have kept the same
1732# value.
1733ac_cache_corrupted=false
Martin v. Löwiseba40652007-08-30 20:10:57 +00001734for ac_var in $ac_precious_vars; do
Martin v. Löwis11437992002-04-12 09:54:03 +00001735 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1736 eval ac_new_set=\$ac_env_${ac_var}_set
Martin v. Löwiseba40652007-08-30 20:10:57 +00001737 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1738 eval ac_new_val=\$ac_env_${ac_var}_value
Martin v. Löwis11437992002-04-12 09:54:03 +00001739 case $ac_old_set,$ac_new_set in
1740 set,)
1741 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1742echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1743 ac_cache_corrupted=: ;;
1744 ,set)
1745 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1746echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1747 ac_cache_corrupted=: ;;
1748 ,);;
1749 *)
1750 if test "x$ac_old_val" != "x$ac_new_val"; then
Skip Montanarof0d5f792004-08-15 14:08:23 +00001751 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00001752echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Skip Montanarof0d5f792004-08-15 14:08:23 +00001753 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00001754echo "$as_me: former value: $ac_old_val" >&2;}
Skip Montanarof0d5f792004-08-15 14:08:23 +00001755 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00001756echo "$as_me: current value: $ac_new_val" >&2;}
Skip Montanarof0d5f792004-08-15 14:08:23 +00001757 ac_cache_corrupted=:
Martin v. Löwis11437992002-04-12 09:54:03 +00001758 fi;;
1759 esac
1760 # Pass precious variables to config.status.
1761 if test "$ac_new_set" = set; then
1762 case $ac_new_val in
Martin v. Löwiseba40652007-08-30 20:10:57 +00001763 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Martin v. Löwis11437992002-04-12 09:54:03 +00001764 *) ac_arg=$ac_var=$ac_new_val ;;
1765 esac
1766 case " $ac_configure_args " in
1767 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1768 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1769 esac
1770 fi
1771done
1772if $ac_cache_corrupted; then
1773 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1774echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1775 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1776echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1777 { (exit 1); exit 1; }; }
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001778fi
1779
Martin v. Löwiseba40652007-08-30 20:10:57 +00001780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
Guido van Rossum7f43da71994-08-01 12:15:30 +00001804ac_ext=c
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001805ac_cpp='$CPP $CPPFLAGS'
Martin v. Löwis11437992002-04-12 09:54:03 +00001806ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1807ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1808ac_compiler_gnu=$ac_cv_c_compiler_gnu
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001809
Guido van Rossum627b2d71993-12-24 10:39:16 +00001810
Michael W. Hudson54241132001-12-07 15:38:26 +00001811
Martin v. Löwiseba40652007-08-30 20:10:57 +00001812ac_config_headers="$ac_config_headers pyconfig.h"
Martin v. Löwis11437992002-04-12 09:54:03 +00001813
1814
Martin v. Löwis11437992002-04-12 09:54:03 +00001815
Georg Brandlbcd64a32009-03-31 21:45:18 +00001816if test "$prefix" != "/"; then
1817 prefix=`echo "$prefix" | sed -e 's/\/$//g'`
1818fi
1819
1820
Martin v. Löwis11437992002-04-12 09:54:03 +00001821
1822
Guido van Rossum1fd74a71997-07-19 19:36:02 +00001823
Martin v. Löwisbddf5a52002-11-11 13:37:28 +00001824
Martin v. Löwis8316feb2003-06-14 07:48:07 +00001825# We don't use PACKAGE_ variables, and they cause conflicts
1826# with other autoconf-based packages that include Python.h
1827grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
1828rm confdefs.h
1829mv confdefs.h.new confdefs.h
1830
Martin v. Löwisbddf5a52002-11-11 13:37:28 +00001831
Martin v. Löwis174440b2008-10-03 08:59:41 +00001832VERSION=2.7
Guido van Rossum1fd74a71997-07-19 19:36:02 +00001833
Martin v. Löwis1142de32002-03-29 16:28:31 +00001834
1835SOVERSION=1.0
1836
Martin v. Löwis6f18a3c2002-07-20 08:51:52 +00001837# The later defininition of _XOPEN_SOURCE disables certain features
1838# on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
1839
1840cat >>confdefs.h <<\_ACEOF
1841#define _GNU_SOURCE 1
1842_ACEOF
1843
1844
Martin v. Löwisbcd93962003-05-03 10:32:18 +00001845# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1846# certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
1847# them.
1848
1849cat >>confdefs.h <<\_ACEOF
1850#define _NETBSD_SOURCE 1
1851_ACEOF
1852
1853
Andrew MacIntyreabccf412003-07-02 13:53:25 +00001854# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1855# certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
1856# them.
1857
1858cat >>confdefs.h <<\_ACEOF
1859#define __BSD_VISIBLE 1
1860_ACEOF
1861
1862
Martin v. Löwisd6320502004-08-12 13:45:08 +00001863# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1864# u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
1865
1866cat >>confdefs.h <<\_ACEOF
1867#define _BSD_TYPES 1
1868_ACEOF
1869
1870
Ronald Oussoren5640ce22008-06-05 12:58:24 +00001871# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1872# certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable
1873# them.
1874
1875cat >>confdefs.h <<\_ACEOF
1876#define _DARWIN_C_SOURCE 1
1877_ACEOF
1878
1879
1880
Martin v. Löwis35195ad2002-11-11 13:26:51 +00001881define_xopen_source=yes
Martin v. Löwis6f18a3c2002-07-20 08:51:52 +00001882
Neil Schemenauer4edbc2a2001-03-22 00:34:03 +00001883# Arguments passed to configure.
1884
1885CONFIG_ARGS="$ac_configure_args"
1886
Martin v. Löwiseba40652007-08-30 20:10:57 +00001887# Check whether --enable-universalsdk was given.
Ronald Oussoren988117f2006-04-29 11:31:35 +00001888if test "${enable_universalsdk+set}" = set; then
Martin v. Löwiseba40652007-08-30 20:10:57 +00001889 enableval=$enable_universalsdk;
Ronald Oussoren988117f2006-04-29 11:31:35 +00001890 case $enableval in
1891 yes)
1892 enableval=/Developer/SDKs/MacOSX10.4u.sdk
1893 ;;
1894 esac
1895 case $enableval in
1896 no)
1897 UNIVERSALSDK=
1898 enable_universalsdk=
1899 ;;
1900 *)
1901 UNIVERSALSDK=$enableval
1902 ;;
1903 esac
1904
1905else
1906
1907 UNIVERSALSDK=
1908 enable_universalsdk=
1909
Martin v. Löwiseba40652007-08-30 20:10:57 +00001910fi
Ronald Oussoren988117f2006-04-29 11:31:35 +00001911
1912
Martin v. Löwiseba40652007-08-30 20:10:57 +00001913
Benjamin Peterson0e6ea5d2008-07-16 20:17:04 +00001914ARCH_RUN_32BIT=
1915
1916
Ronald Oussoren5640ce22008-06-05 12:58:24 +00001917UNIVERSAL_ARCHS="32-bit"
1918{ echo "$as_me:$LINENO: checking for --with-universal-archs" >&5
1919echo $ECHO_N "checking for --with-universal-archs... $ECHO_C" >&6; }
1920
1921# Check whether --with-universal-archs was given.
1922if test "${with_universal_archs+set}" = set; then
1923 withval=$with_universal_archs;
1924 { echo "$as_me:$LINENO: result: $withval" >&5
1925echo "${ECHO_T}$withval" >&6; }
1926 UNIVERSAL_ARCHS="$withval"
1927
1928else
1929
1930 { echo "$as_me:$LINENO: result: 32-bit" >&5
1931echo "${ECHO_T}32-bit" >&6; }
1932
1933fi
1934
1935
1936
1937
Ronald Oussoren580c7fe2008-05-02 19:45:11 +00001938
1939# Check whether --with-framework-name was given.
1940if test "${with_framework_name+set}" = set; then
1941 withval=$with_framework_name;
1942 PYTHONFRAMEWORK=${withval}
1943 PYTHONFRAMEWORKDIR=${withval}.framework
1944 PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'`
1945
1946else
1947
1948 PYTHONFRAMEWORK=Python
1949 PYTHONFRAMEWORKDIR=Python.framework
1950 PYTHONFRAMEWORKIDENTIFIER=org.python.python
1951
1952fi
1953
Martin v. Löwiseba40652007-08-30 20:10:57 +00001954# Check whether --enable-framework was given.
Jack Jansene578a632001-08-15 01:27:14 +00001955if test "${enable_framework+set}" = set; then
Martin v. Löwiseba40652007-08-30 20:10:57 +00001956 enableval=$enable_framework;
Jack Jansene578a632001-08-15 01:27:14 +00001957 case $enableval in
Martin v. Löwis11437992002-04-12 09:54:03 +00001958 yes)
Jack Jansene578a632001-08-15 01:27:14 +00001959 enableval=/Library/Frameworks
Jack Jansen127e56e2001-09-11 14:41:54 +00001960 esac
1961 case $enableval in
1962 no)
1963 PYTHONFRAMEWORK=
1964 PYTHONFRAMEWORKDIR=no-framework
1965 PYTHONFRAMEWORKPREFIX=
1966 PYTHONFRAMEWORKINSTALLDIR=
Ronald Oussoren567a8ff2006-05-26 11:43:26 +00001967 FRAMEWORKINSTALLFIRST=
1968 FRAMEWORKINSTALLLAST=
Ronald Oussoren5b787322006-06-06 19:50:24 +00001969 FRAMEWORKALTINSTALLFIRST=
1970 FRAMEWORKALTINSTALLLAST=
Ronald Oussoren2db3a8f2006-06-07 19:06:01 +00001971 if test "x${prefix}" = "xNONE"; then
1972 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1973 else
1974 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1975 fi
Jack Jansen127e56e2001-09-11 14:41:54 +00001976 enable_framework=
Jack Jansene578a632001-08-15 01:27:14 +00001977 ;;
1978 *)
1979 PYTHONFRAMEWORKPREFIX=$enableval
Jack Jansen127e56e2001-09-11 14:41:54 +00001980 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
Ronald Oussoren567a8ff2006-05-26 11:43:26 +00001981 FRAMEWORKINSTALLFIRST="frameworkinstallstructure"
Ronald Oussoren5640ce22008-06-05 12:58:24 +00001982 FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure bininstall maninstall"
1983 if test "$UNIVERSAL_ARCHS" = "all"
1984 then
1985 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkinstallunixtools4way"
Ronald Oussorenbb8cb0e2009-03-30 17:53:39 +00001986 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkaltinstallunixtools4way"
Ronald Oussoren5640ce22008-06-05 12:58:24 +00001987 else
Ronald Oussorenbb8cb0e2009-03-30 17:53:39 +00001988 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools"
Ronald Oussoren5640ce22008-06-05 12:58:24 +00001989 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
1990 fi
1991
Ronald Oussoren2db3a8f2006-06-07 19:06:01 +00001992 if test "x${prefix}" = "xNONE" ; then
1993 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1994 else
1995 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1996 fi
Jack Jansen127e56e2001-09-11 14:41:54 +00001997 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
Ronald Oussoren836b0392006-05-14 19:56:34 +00001998
Ronald Oussoren580c7fe2008-05-02 19:45:11 +00001999 # Add files for Mac specific code to the list of output
Ronald Oussoren836b0392006-05-14 19:56:34 +00002000 # files:
Martin v. Löwiseba40652007-08-30 20:10:57 +00002001 ac_config_files="$ac_config_files Mac/Makefile"
Ronald Oussoren836b0392006-05-14 19:56:34 +00002002
Martin v. Löwiseba40652007-08-30 20:10:57 +00002003 ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile"
Ronald Oussoren836b0392006-05-14 19:56:34 +00002004
Martin v. Löwiseba40652007-08-30 20:10:57 +00002005 ac_config_files="$ac_config_files Mac/IDLE/Makefile"
Ronald Oussoren836b0392006-05-14 19:56:34 +00002006
Ronald Oussoren580c7fe2008-05-02 19:45:11 +00002007 ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist"
2008
2009 ac_config_files="$ac_config_files Mac/Resources/app/Info.plist"
2010
Jack Jansene578a632001-08-15 01:27:14 +00002011 esac
Martin v. Löwis11437992002-04-12 09:54:03 +00002012
Guido van Rossum563e7081996-09-10 18:20:48 +00002013else
Martin v. Löwis11437992002-04-12 09:54:03 +00002014
Jack Jansene578a632001-08-15 01:27:14 +00002015 PYTHONFRAMEWORK=
Jack Jansen127e56e2001-09-11 14:41:54 +00002016 PYTHONFRAMEWORKDIR=no-framework
Jack Jansene578a632001-08-15 01:27:14 +00002017 PYTHONFRAMEWORKPREFIX=
2018 PYTHONFRAMEWORKINSTALLDIR=
Ronald Oussoren567a8ff2006-05-26 11:43:26 +00002019 FRAMEWORKINSTALLFIRST=
2020 FRAMEWORKINSTALLLAST=
Ronald Oussoren5b787322006-06-06 19:50:24 +00002021 FRAMEWORKALTINSTALLFIRST=
2022 FRAMEWORKALTINSTALLLAST=
Ronald Oussoren2db3a8f2006-06-07 19:06:01 +00002023 if test "x${prefix}" = "xNONE" ; then
2024 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
2025 else
2026 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
2027 fi
Jack Jansene578a632001-08-15 01:27:14 +00002028 enable_framework=
Guido van Rossum7b3853f1996-07-30 18:09:35 +00002029
Ronald Oussoren5640ce22008-06-05 12:58:24 +00002030 if test "$UNIVERSAL_ARCHS" = "all"
2031 then
2032 FRAMEWORKINSTALLLAST=update4wayuniversal
2033 FRAMEWORKALTINSTALLLAST=update4wayuniversal
2034 fi
2035
Martin v. Löwiseba40652007-08-30 20:10:57 +00002036fi
2037
Michael W. Hudson54241132001-12-07 15:38:26 +00002038
2039
2040
2041
Jack Jansene578a632001-08-15 01:27:14 +00002042
Ronald Oussoren567a8ff2006-05-26 11:43:26 +00002043
2044
Ronald Oussoren5b787322006-06-06 19:50:24 +00002045
2046
2047
Ronald Oussoren580c7fe2008-05-02 19:45:11 +00002048
Jack Jansene578a632001-08-15 01:27:14 +00002049##AC_ARG_WITH(dyld,
Martin v. Löwis3e2c6322002-10-29 10:07:43 +00002050## AC_HELP_STRING(--with-dyld,
2051## Use (OpenStep|Rhapsody) dynamic linker))
Jack Jansene578a632001-08-15 01:27:14 +00002052##
Guido van Rossum7b3853f1996-07-30 18:09:35 +00002053# Set name for machine-dependent library files
2054
Martin v. Löwiseba40652007-08-30 20:10:57 +00002055{ echo "$as_me:$LINENO: checking MACHDEP" >&5
2056echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6; }
Guido van Rossum7b3853f1996-07-30 18:09:35 +00002057if test -z "$MACHDEP"
2058then
Guido van Rossum563e7081996-09-10 18:20:48 +00002059 ac_sys_system=`uname -s`
Martin v. Löwis21ee4092002-09-30 16:19:48 +00002060 if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \
2061 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
Guido van Rossum563e7081996-09-10 18:20:48 +00002062 ac_sys_release=`uname -v`
Guido van Rossum7b3853f1996-07-30 18:09:35 +00002063 else
Guido van Rossum563e7081996-09-10 18:20:48 +00002064 ac_sys_release=`uname -r`
Guido van Rossum7b3853f1996-07-30 18:09:35 +00002065 fi
Guido van Rossum563e7081996-09-10 18:20:48 +00002066 ac_md_system=`echo $ac_sys_system |
2067 tr -d '/ ' | tr '[A-Z]' '[a-z]'`
2068 ac_md_release=`echo $ac_sys_release |
Guido van Rossum67b26592001-10-20 14:21:45 +00002069 tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'`
Guido van Rossumb97ef171997-09-28 05:44:03 +00002070 MACHDEP="$ac_md_system$ac_md_release"
Guido van Rossum563e7081996-09-10 18:20:48 +00002071
Guido van Rossum07397971997-04-29 21:49:50 +00002072 case $MACHDEP in
Andrew M. Kuchling5a3e4cb2001-07-20 19:29:04 +00002073 cygwin*) MACHDEP="cygwin";;
Jack Jansen8a97f4a2001-12-05 23:27:32 +00002074 darwin*) MACHDEP="darwin";;
Martin v. Löwisf90ae202002-06-11 06:22:31 +00002075 atheos*) MACHDEP="atheos";;
Martin v. Löwisf3322282003-07-13 09:46:13 +00002076 irix646) MACHDEP="irix6";;
Guido van Rossumb97ef171997-09-28 05:44:03 +00002077 '') MACHDEP="unknown";;
Guido van Rossum7b3853f1996-07-30 18:09:35 +00002078 esac
2079fi
Guido van Rossum91922671997-10-09 20:24:13 +00002080
Martin v. Löwis35195ad2002-11-11 13:26:51 +00002081# Some systems cannot stand _XOPEN_SOURCE being defined at all; they
2082# disable features if it is defined, without any means to access these
2083# features as extensions. For these systems, we skip the definition of
2084# _XOPEN_SOURCE. Before adding a system to the list to gain access to
2085# some feature, make sure there is no alternative way to access this
2086# feature. Also, when using wildcards, make sure you have verified the
2087# need for not defining _XOPEN_SOURCE on all systems matching the
2088# wildcard, and that the wildcard does not include future systems
2089# (which may remove their limitations).
2090case $ac_sys_system/$ac_sys_release in
2091 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
2092 # even though select is a POSIX function. Reported by J. Ribbens.
Martin v. Löwis76bafc62003-10-03 13:47:44 +00002093 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
Gregory P. Smithcc023f12008-09-07 05:15:58 +00002094 OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0123])
Martin v. Löwiscb78de62007-12-29 18:49:21 +00002095 define_xopen_source=no
2096 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
2097 # also defined. This can be overridden by defining _BSD_SOURCE
2098 # As this has a different meaning on Linux, only define it on OpenBSD
2099
2100cat >>confdefs.h <<\_ACEOF
2101#define _BSD_SOURCE 1
2102_ACEOF
2103
2104 ;;
Martin v. Löwis4d542ec2006-11-25 15:39:19 +00002105 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
2106 # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
2107 # Marc Recht
Benjamin Petersoneac68f42008-11-16 17:54:55 +00002108 NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S])
Martin v. Löwis4d542ec2006-11-25 15:39:19 +00002109 define_xopen_source=no;;
Martin v. Löwisa9d71422003-03-28 18:43:31 +00002110 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
2111 # of union __?sigval. Reported by Stuart Bishop.
2112 SunOS/5.6)
2113 define_xopen_source=no;;
Martin v. Löwisc2409b42003-05-11 05:53:41 +00002114 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
2115 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
Jack Jansen6b08a402004-06-03 12:41:45 +00002116 # Reconfirmed for 7.1.4 by Martin v. Loewis.
Martin v. Löwis253d1f42004-05-07 19:14:14 +00002117 OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
Martin v. Löwisc2409b42003-05-11 05:53:41 +00002118 define_xopen_source=no;;
2119 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
Martin v. Löwis53e73c32003-05-05 05:13:18 +00002120 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
Martin v. Löwisc2409b42003-05-11 05:53:41 +00002121 SCO_SV/3.2)
Martin v. Löwis53e73c32003-05-05 05:13:18 +00002122 define_xopen_source=no;;
Martin v. Löwisbb86d832008-11-04 20:40:09 +00002123 # On FreeBSD 4, the math functions C89 does not cover are never defined
2124 # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them.
2125 FreeBSD/4.*)
2126 define_xopen_source=no;;
2127 # On MacOS X 10.2, a bug in ncurses.h means that it craps out if
2128 # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which
2129 # identifies itself as Darwin/7.*
2130 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2131 # disables platform specific features beyond repair.
2132 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2133 # has no effect, don't bother defining them
2134 Darwin/[6789].*)
Anthony Baxter6169c6b2003-10-04 07:46:23 +00002135 define_xopen_source=no;;
Trent Mickc5625ba2004-08-25 23:59:39 +00002136 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
2137 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
2138 # or has another value. By not (re)defining it, the defaults come in place.
Martin v. Löwisc19c5a62003-11-18 20:00:44 +00002139 AIX/4)
2140 define_xopen_source=no;;
Trent Mickc5625ba2004-08-25 23:59:39 +00002141 AIX/5)
2142 if test `uname -r` -eq 1; then
2143 define_xopen_source=no
2144 fi
2145 ;;
Martin v. Löwis8c255e42008-05-23 15:06:50 +00002146 # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from
2147 # defining NI_NUMERICHOST.
2148 QNX/6.3.2)
2149 define_xopen_source=no
2150 ;;
Martin v. Löwisa0588362006-04-04 06:03:50 +00002151
Martin v. Löwis35195ad2002-11-11 13:26:51 +00002152esac
2153
2154if test $define_xopen_source = yes
2155then
Skip Montanarof0d5f792004-08-15 14:08:23 +00002156 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
2157 # defined precisely as g++ defines it
Martin v. Löwis7dece662005-11-26 11:38:24 +00002158 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
2159 # compiler
Skip Montanarof0d5f792004-08-15 14:08:23 +00002160 case $ac_sys_system/$ac_sys_release in
Martin v. Löwis7dece662005-11-26 11:38:24 +00002161 SunOS/5.8|SunOS/5.9|SunOS/5.10)
Skip Montanarof0d5f792004-08-15 14:08:23 +00002162
2163cat >>confdefs.h <<\_ACEOF
2164#define _XOPEN_SOURCE 500
2165_ACEOF
2166
2167 ;;
2168 *)
Martin v. Löwis678fc1e2002-11-12 06:04:39 +00002169
2170cat >>confdefs.h <<\_ACEOF
2171#define _XOPEN_SOURCE 600
Martin v. Löwis35195ad2002-11-11 13:26:51 +00002172_ACEOF
2173
Skip Montanarof0d5f792004-08-15 14:08:23 +00002174 ;;
2175 esac
Martin v. Löwis678fc1e2002-11-12 06:04:39 +00002176
2177 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
2178 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
2179 # several APIs are not declared. Since this is also needed in some
2180 # cases for HP-UX, we define it globally.
Martin v. Löwis7dece662005-11-26 11:38:24 +00002181 # except for Solaris 10, where it must not be defined,
2182 # as it implies XPG4.2
2183 case $ac_sys_system/$ac_sys_release in
2184 SunOS/5.10)
2185 ;;
2186 *)
Martin v. Löwis678fc1e2002-11-12 06:04:39 +00002187
2188cat >>confdefs.h <<\_ACEOF
2189#define _XOPEN_SOURCE_EXTENDED 1
2190_ACEOF
2191
Martin v. Löwis7dece662005-11-26 11:38:24 +00002192 ;;
2193 esac
Martin v. Löwis678fc1e2002-11-12 06:04:39 +00002194
Bob Ippolito7026a0a2005-03-28 23:23:47 +00002195
Martin v. Löwis678fc1e2002-11-12 06:04:39 +00002196cat >>confdefs.h <<\_ACEOF
2197#define _POSIX_C_SOURCE 200112L
2198_ACEOF
2199
2200
Martin v. Löwis35195ad2002-11-11 13:26:51 +00002201fi
2202
Guido van Rossum91922671997-10-09 20:24:13 +00002203#
2204# SGI compilers allow the specification of the both the ABI and the
2205# ISA on the command line. Depending on the values of these switches,
2206# different and often incompatable code will be generated.
2207#
2208# The SGI_ABI variable can be used to modify the CC and LDFLAGS and
2209# thus supply support for various ABI/ISA combinations. The MACHDEP
2210# variable is also adjusted.
2211#
2212
2213if test ! -z "$SGI_ABI"
2214then
2215 CC="cc $SGI_ABI"
2216 LDFLAGS="$SGI_ABI $LDFLAGS"
2217 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
2218fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00002219{ echo "$as_me:$LINENO: result: $MACHDEP" >&5
2220echo "${ECHO_T}$MACHDEP" >&6; }
Guido van Rossum7b3853f1996-07-30 18:09:35 +00002221
Jack Jansen83f898c2002-12-30 22:23:40 +00002222# And add extra plat-mac for darwin
2223
Jack Jansen7b59b422003-03-17 15:44:10 +00002224
Martin v. Löwiseba40652007-08-30 20:10:57 +00002225{ echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5
2226echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6; }
Jack Jansen83f898c2002-12-30 22:23:40 +00002227if test -z "$EXTRAPLATDIR"
2228then
2229 case $MACHDEP in
Jack Jansen7b59b422003-03-17 15:44:10 +00002230 darwin)
2231 EXTRAPLATDIR="\$(PLATMACDIRS)"
2232 EXTRAMACHDEPPATH="\$(PLATMACPATH)"
2233 ;;
2234 *)
2235 EXTRAPLATDIR=""
2236 EXTRAMACHDEPPATH=""
2237 ;;
Jack Jansen83f898c2002-12-30 22:23:40 +00002238 esac
2239fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00002240{ echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5
2241echo "${ECHO_T}$EXTRAPLATDIR" >&6; }
Jack Jansen83f898c2002-12-30 22:23:40 +00002242
Jack Jansen6b08a402004-06-03 12:41:45 +00002243# Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
2244# it may influence the way we can build extensions, so distutils
2245# needs to check it
2246
Ronald Oussoren988117f2006-04-29 11:31:35 +00002247
Jack Jansen6b08a402004-06-03 12:41:45 +00002248CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
Ronald Oussoren988117f2006-04-29 11:31:35 +00002249EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
Jack Jansen6b08a402004-06-03 12:41:45 +00002250
Mark Dickinson65134662008-04-25 16:11:04 +00002251{ echo "$as_me:$LINENO: checking machine type as reported by uname -m" >&5
2252echo $ECHO_N "checking machine type as reported by uname -m... $ECHO_C" >&6; }
2253ac_sys_machine=`uname -m`
2254{ echo "$as_me:$LINENO: result: $ac_sys_machine" >&5
2255echo "${ECHO_T}$ac_sys_machine" >&6; }
2256
Guido van Rossum627b2d71993-12-24 10:39:16 +00002257# checks for alternative programs
Skip Montanarodecc6a42003-01-01 20:07:49 +00002258
2259# compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
2260# for debug/optimization stuff. BASECFLAGS is for flags that are required
2261# just to get things to compile and link. Users are free to override OPT
2262# when running configure or make. The build should not break if they do.
2263# BASECFLAGS should generally not be messed with, however.
2264
2265# XXX shouldn't some/most/all of this code be merged with the stuff later
2266# on that fiddles with OPT and BASECFLAGS?
Martin v. Löwiseba40652007-08-30 20:10:57 +00002267{ echo "$as_me:$LINENO: checking for --without-gcc" >&5
2268echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00002269
Martin v. Löwiseba40652007-08-30 20:10:57 +00002270# Check whether --with-gcc was given.
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00002271if test "${with_gcc+set}" = set; then
Martin v. Löwiseba40652007-08-30 20:10:57 +00002272 withval=$with_gcc;
Guido van Rossum7f43da71994-08-01 12:15:30 +00002273 case $withval in
Mark Dickinson04b27232009-01-04 12:29:36 +00002274 no) CC=${CC:-cc}
Guido van Rossumda88dad1995-01-26 00:46:29 +00002275 without_gcc=yes;;
2276 yes) CC=gcc
2277 without_gcc=no;;
2278 *) CC=$withval
2279 without_gcc=$withval;;
Guido van Rossum7f43da71994-08-01 12:15:30 +00002280 esac
Guido van Rossumda88dad1995-01-26 00:46:29 +00002281else
Martin v. Löwis11437992002-04-12 09:54:03 +00002282
Guido van Rossum7b3853f1996-07-30 18:09:35 +00002283 case $ac_sys_system in
Neil Schemenauer4a7bbcb2001-02-16 03:37:54 +00002284 AIX*) CC=cc_r
2285 without_gcc=;;
Guido van Rossum7a5f4201999-01-12 20:30:23 +00002286 BeOS*)
Guido van Rossum7a5f4201999-01-12 20:30:23 +00002287 case $BE_HOST_CPU in
2288 ppc)
Fred Drake5790be12000-10-09 17:06:13 +00002289 CC=mwcc
Guido van Rossum7a5f4201999-01-12 20:30:23 +00002290 without_gcc=yes
Skip Montanarodecc6a42003-01-01 20:07:49 +00002291 BASECFLAGS="$BASECFLAGS -export pragma"
2292 OPT="$OPT -O"
Guido van Rossum7a5f4201999-01-12 20:30:23 +00002293 LDFLAGS="$LDFLAGS -nodup"
Guido van Rossum7a5f4201999-01-12 20:30:23 +00002294 ;;
2295 x86)
Fred Drake5790be12000-10-09 17:06:13 +00002296 CC=gcc
Guido van Rossum7a5f4201999-01-12 20:30:23 +00002297 without_gcc=no
Skip Montanarodecc6a42003-01-01 20:07:49 +00002298 OPT="$OPT -O"
Guido van Rossum7a5f4201999-01-12 20:30:23 +00002299 ;;
2300 *)
Martin v. Löwis11437992002-04-12 09:54:03 +00002301 { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5
2302echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;}
2303 { (exit 1); exit 1; }; }
Guido van Rossum7a5f4201999-01-12 20:30:23 +00002304 ;;
2305 esac
Neil Schemenauer4a7bbcb2001-02-16 03:37:54 +00002306 AR="\$(srcdir)/Modules/ar_beos"
2307 RANLIB=:
Guido van Rossum7a5f4201999-01-12 20:30:23 +00002308 ;;
Trent Mick635f6fb2000-08-23 21:33:05 +00002309 Monterey*)
2310 RANLIB=:
Martin v. Löwis130fb172001-07-19 11:00:41 +00002311 without_gcc=;;
2312 *) without_gcc=no;;
Guido van Rossume77438c1995-09-13 18:59:59 +00002313 esac
Martin v. Löwiseba40652007-08-30 20:10:57 +00002314fi
2315
2316{ echo "$as_me:$LINENO: result: $without_gcc" >&5
2317echo "${ECHO_T}$without_gcc" >&6; }
Michael W. Hudson54241132001-12-07 15:38:26 +00002318
Guido van Rossum8b131c51995-03-09 14:10:13 +00002319# If the user switches compilers, we can't believe the cache
2320if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
2321then
Martin v. Löwis11437992002-04-12 09:54:03 +00002322 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
2323(it is also a good idea to do 'make clean' before compiling)" >&5
2324echo "$as_me: error: cached CC is different -- throw away $cache_file
2325(it is also a good idea to do 'make clean' before compiling)" >&2;}
2326 { (exit 1); exit 1; }; }
Guido van Rossum8b131c51995-03-09 14:10:13 +00002327fi
2328
Martin v. Löwis11437992002-04-12 09:54:03 +00002329ac_ext=c
2330ac_cpp='$CPP $CPPFLAGS'
2331ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2332ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2333ac_compiler_gnu=$ac_cv_c_compiler_gnu
2334if test -n "$ac_tool_prefix"; then
2335 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2336set dummy ${ac_tool_prefix}gcc; ac_word=$2
Martin v. Löwiseba40652007-08-30 20:10:57 +00002337{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2338echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00002339if test "${ac_cv_prog_CC+set}" = set; then
2340 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00002341else
2342 if test -n "$CC"; then
2343 ac_cv_prog_CC="$CC" # Let the user override the test.
2344else
Martin v. Löwis11437992002-04-12 09:54:03 +00002345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2346for as_dir in $PATH
2347do
2348 IFS=$as_save_IFS
2349 test -z "$as_dir" && as_dir=.
2350 for ac_exec_ext in '' $ac_executable_extensions; do
Martin v. Löwiseba40652007-08-30 20:10:57 +00002351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Martin v. Löwis11437992002-04-12 09:54:03 +00002352 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2354 break 2
2355 fi
2356done
2357done
Martin v. Löwiseba40652007-08-30 20:10:57 +00002358IFS=$as_save_IFS
Martin v. Löwis11437992002-04-12 09:54:03 +00002359
Jack Jansendd19cf82001-12-06 22:36:17 +00002360fi
2361fi
Martin v. Löwis11437992002-04-12 09:54:03 +00002362CC=$ac_cv_prog_CC
Jack Jansendd19cf82001-12-06 22:36:17 +00002363if test -n "$CC"; then
Martin v. Löwiseba40652007-08-30 20:10:57 +00002364 { echo "$as_me:$LINENO: result: $CC" >&5
2365echo "${ECHO_T}$CC" >&6; }
Jack Jansendd19cf82001-12-06 22:36:17 +00002366else
Martin v. Löwiseba40652007-08-30 20:10:57 +00002367 { echo "$as_me:$LINENO: result: no" >&5
2368echo "${ECHO_T}no" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00002369fi
2370
Martin v. Löwiseba40652007-08-30 20:10:57 +00002371
Martin v. Löwis11437992002-04-12 09:54:03 +00002372fi
2373if test -z "$ac_cv_prog_CC"; then
2374 ac_ct_CC=$CC
2375 # Extract the first word of "gcc", so it can be a program name with args.
2376set dummy gcc; ac_word=$2
Martin v. Löwiseba40652007-08-30 20:10:57 +00002377{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2378echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00002379if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2380 echo $ECHO_N "(cached) $ECHO_C" >&6
2381else
2382 if test -n "$ac_ct_CC"; then
2383 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2384else
2385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2386for as_dir in $PATH
2387do
2388 IFS=$as_save_IFS
2389 test -z "$as_dir" && as_dir=.
2390 for ac_exec_ext in '' $ac_executable_extensions; do
Martin v. Löwiseba40652007-08-30 20:10:57 +00002391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Martin v. Löwis11437992002-04-12 09:54:03 +00002392 ac_cv_prog_ac_ct_CC="gcc"
2393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2394 break 2
2395 fi
2396done
2397done
Martin v. Löwiseba40652007-08-30 20:10:57 +00002398IFS=$as_save_IFS
Martin v. Löwis11437992002-04-12 09:54:03 +00002399
2400fi
2401fi
2402ac_ct_CC=$ac_cv_prog_ac_ct_CC
2403if test -n "$ac_ct_CC"; then
Martin v. Löwiseba40652007-08-30 20:10:57 +00002404 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2405echo "${ECHO_T}$ac_ct_CC" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00002406else
Martin v. Löwiseba40652007-08-30 20:10:57 +00002407 { echo "$as_me:$LINENO: result: no" >&5
2408echo "${ECHO_T}no" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00002409fi
2410
Martin v. Löwiseba40652007-08-30 20:10:57 +00002411 if test "x$ac_ct_CC" = x; then
2412 CC=""
2413 else
2414 case $cross_compiling:$ac_tool_warned in
2415yes:)
2416{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2417whose name does not start with the host triplet. If you think this
2418configuration is useful to you, please write to autoconf@gnu.org." >&5
2419echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2420whose name does not start with the host triplet. If you think this
2421configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2422ac_tool_warned=yes ;;
2423esac
2424 CC=$ac_ct_CC
2425 fi
Martin v. Löwis11437992002-04-12 09:54:03 +00002426else
2427 CC="$ac_cv_prog_CC"
Jack Jansendd19cf82001-12-06 22:36:17 +00002428fi
2429
Jack Jansendd19cf82001-12-06 22:36:17 +00002430if test -z "$CC"; then
Martin v. Löwiseba40652007-08-30 20:10:57 +00002431 if test -n "$ac_tool_prefix"; then
2432 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
Martin v. Löwis11437992002-04-12 09:54:03 +00002433set dummy ${ac_tool_prefix}cc; ac_word=$2
Martin v. Löwiseba40652007-08-30 20:10:57 +00002434{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2435echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00002436if test "${ac_cv_prog_CC+set}" = set; then
2437 echo $ECHO_N "(cached) $ECHO_C" >&6
Jack Jansendd19cf82001-12-06 22:36:17 +00002438else
2439 if test -n "$CC"; then
2440 ac_cv_prog_CC="$CC" # Let the user override the test.
2441else
Martin v. Löwis11437992002-04-12 09:54:03 +00002442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2443for as_dir in $PATH
2444do
2445 IFS=$as_save_IFS
2446 test -z "$as_dir" && as_dir=.
2447 for ac_exec_ext in '' $ac_executable_extensions; do
Martin v. Löwiseba40652007-08-30 20:10:57 +00002448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Martin v. Löwis11437992002-04-12 09:54:03 +00002449 ac_cv_prog_CC="${ac_tool_prefix}cc"
2450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2451 break 2
2452 fi
2453done
2454done
Martin v. Löwiseba40652007-08-30 20:10:57 +00002455IFS=$as_save_IFS
Martin v. Löwis11437992002-04-12 09:54:03 +00002456
2457fi
2458fi
2459CC=$ac_cv_prog_CC
2460if test -n "$CC"; then
Martin v. Löwiseba40652007-08-30 20:10:57 +00002461 { echo "$as_me:$LINENO: result: $CC" >&5
2462echo "${ECHO_T}$CC" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00002463else
Martin v. Löwiseba40652007-08-30 20:10:57 +00002464 { echo "$as_me:$LINENO: result: no" >&5
2465echo "${ECHO_T}no" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00002466fi
2467
Martin v. Löwiseba40652007-08-30 20:10:57 +00002468
Martin v. Löwis11437992002-04-12 09:54:03 +00002469 fi
Martin v. Löwis11437992002-04-12 09:54:03 +00002470fi
2471if test -z "$CC"; then
2472 # Extract the first word of "cc", so it can be a program name with args.
2473set dummy cc; ac_word=$2
Martin v. Löwiseba40652007-08-30 20:10:57 +00002474{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2475echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00002476if test "${ac_cv_prog_CC+set}" = set; then
2477 echo $ECHO_N "(cached) $ECHO_C" >&6
2478else
2479 if test -n "$CC"; then
2480 ac_cv_prog_CC="$CC" # Let the user override the test.
2481else
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00002482 ac_prog_rejected=no
Martin v. Löwis11437992002-04-12 09:54:03 +00002483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2484for as_dir in $PATH
2485do
2486 IFS=$as_save_IFS
2487 test -z "$as_dir" && as_dir=.
2488 for ac_exec_ext in '' $ac_executable_extensions; do
Martin v. Löwiseba40652007-08-30 20:10:57 +00002489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Martin v. Löwis11437992002-04-12 09:54:03 +00002490 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2491 ac_prog_rejected=yes
2492 continue
2493 fi
2494 ac_cv_prog_CC="cc"
2495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2496 break 2
2497 fi
2498done
2499done
Martin v. Löwiseba40652007-08-30 20:10:57 +00002500IFS=$as_save_IFS
Martin v. Löwis11437992002-04-12 09:54:03 +00002501
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00002502if test $ac_prog_rejected = yes; then
2503 # We found a bogon in the path, so make sure we never use it.
2504 set dummy $ac_cv_prog_CC
2505 shift
Martin v. Löwis11437992002-04-12 09:54:03 +00002506 if test $# != 0; then
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00002507 # We chose a different compiler from the bogus one.
2508 # However, it has the same basename, so the bogon will be chosen
2509 # first if we set CC to just the basename; use the full file name.
2510 shift
Skip Montanaro6dead952003-09-25 14:50:04 +00002511 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00002512 fi
2513fi
2514fi
2515fi
Martin v. Löwis11437992002-04-12 09:54:03 +00002516CC=$ac_cv_prog_CC
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00002517if test -n "$CC"; then
Martin v. Löwiseba40652007-08-30 20:10:57 +00002518 { echo "$as_me:$LINENO: result: $CC" >&5
2519echo "${ECHO_T}$CC" >&6; }
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00002520else
Martin v. Löwiseba40652007-08-30 20:10:57 +00002521 { echo "$as_me:$LINENO: result: no" >&5
2522echo "${ECHO_T}no" >&6; }
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00002523fi
2524
Martin v. Löwiseba40652007-08-30 20:10:57 +00002525
Martin v. Löwis11437992002-04-12 09:54:03 +00002526fi
2527if test -z "$CC"; then
2528 if test -n "$ac_tool_prefix"; then
Martin v. Löwiseba40652007-08-30 20:10:57 +00002529 for ac_prog in cl.exe
Martin v. Löwis11437992002-04-12 09:54:03 +00002530 do
2531 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2532set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Martin v. Löwiseba40652007-08-30 20:10:57 +00002533{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2534echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00002535if test "${ac_cv_prog_CC+set}" = set; then
2536 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossume6c2cf11999-01-08 21:08:33 +00002537else
2538 if test -n "$CC"; then
2539 ac_cv_prog_CC="$CC" # Let the user override the test.
2540else
Martin v. Löwis11437992002-04-12 09:54:03 +00002541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2542for as_dir in $PATH
2543do
2544 IFS=$as_save_IFS
2545 test -z "$as_dir" && as_dir=.
2546 for ac_exec_ext in '' $ac_executable_extensions; do
Martin v. Löwiseba40652007-08-30 20:10:57 +00002547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Martin v. Löwis11437992002-04-12 09:54:03 +00002548 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2550 break 2
Guido van Rossumf78abae1997-01-21 22:02:36 +00002551 fi
Martin v. Löwis11437992002-04-12 09:54:03 +00002552done
2553done
Martin v. Löwiseba40652007-08-30 20:10:57 +00002554IFS=$as_save_IFS
Martin v. Löwis11437992002-04-12 09:54:03 +00002555
2556fi
2557fi
2558CC=$ac_cv_prog_CC
2559if test -n "$CC"; then
Martin v. Löwiseba40652007-08-30 20:10:57 +00002560 { echo "$as_me:$LINENO: result: $CC" >&5
2561echo "${ECHO_T}$CC" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00002562else
Martin v. Löwiseba40652007-08-30 20:10:57 +00002563 { echo "$as_me:$LINENO: result: no" >&5
2564echo "${ECHO_T}no" >&6; }
Jack Jansendd19cf82001-12-06 22:36:17 +00002565fi
2566
Martin v. Löwiseba40652007-08-30 20:10:57 +00002567
Martin v. Löwis11437992002-04-12 09:54:03 +00002568 test -n "$CC" && break
2569 done
2570fi
2571if test -z "$CC"; then
2572 ac_ct_CC=$CC
Martin v. Löwiseba40652007-08-30 20:10:57 +00002573 for ac_prog in cl.exe
Martin v. Löwis11437992002-04-12 09:54:03 +00002574do
2575 # Extract the first word of "$ac_prog", so it can be a program name with args.
2576set dummy $ac_prog; ac_word=$2
Martin v. Löwiseba40652007-08-30 20:10:57 +00002577{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2578echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00002579if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2580 echo $ECHO_N "(cached) $ECHO_C" >&6
2581else
2582 if test -n "$ac_ct_CC"; then
2583 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2584else
2585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2586for as_dir in $PATH
2587do
2588 IFS=$as_save_IFS
2589 test -z "$as_dir" && as_dir=.
2590 for ac_exec_ext in '' $ac_executable_extensions; do
Martin v. Löwiseba40652007-08-30 20:10:57 +00002591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Martin v. Löwis11437992002-04-12 09:54:03 +00002592 ac_cv_prog_ac_ct_CC="$ac_prog"
2593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2594 break 2
2595 fi
2596done
2597done
Martin v. Löwiseba40652007-08-30 20:10:57 +00002598IFS=$as_save_IFS
Jack Jansendd19cf82001-12-06 22:36:17 +00002599
Martin v. Löwis11437992002-04-12 09:54:03 +00002600fi
2601fi
2602ac_ct_CC=$ac_cv_prog_ac_ct_CC
2603if test -n "$ac_ct_CC"; then
Martin v. Löwiseba40652007-08-30 20:10:57 +00002604 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2605echo "${ECHO_T}$ac_ct_CC" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00002606else
Martin v. Löwiseba40652007-08-30 20:10:57 +00002607 { echo "$as_me:$LINENO: result: no" >&5
2608echo "${ECHO_T}no" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00002609fi
Michael W. Hudson54241132001-12-07 15:38:26 +00002610
Martin v. Löwiseba40652007-08-30 20:10:57 +00002611
Martin v. Löwis11437992002-04-12 09:54:03 +00002612 test -n "$ac_ct_CC" && break
2613done
Michael W. Hudson54241132001-12-07 15:38:26 +00002614
Martin v. Löwiseba40652007-08-30 20:10:57 +00002615 if test "x$ac_ct_CC" = x; then
2616 CC=""
2617 else
2618 case $cross_compiling:$ac_tool_warned in
2619yes:)
2620{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2621whose name does not start with the host triplet. If you think this
2622configuration is useful to you, please write to autoconf@gnu.org." >&5
2623echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2624whose name does not start with the host triplet. If you think this
2625configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2626ac_tool_warned=yes ;;
2627esac
2628 CC=$ac_ct_CC
2629 fi
Martin v. Löwis11437992002-04-12 09:54:03 +00002630fi
2631
2632fi
2633
2634
Skip Montanaro6dead952003-09-25 14:50:04 +00002635test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2636See \`config.log' for more details." >&5
2637echo "$as_me: error: no acceptable C compiler found in \$PATH
2638See \`config.log' for more details." >&2;}
Martin v. Löwis11437992002-04-12 09:54:03 +00002639 { (exit 1); exit 1; }; }
2640
2641# Provide some information about the compiler.
Martin v. Löwiseba40652007-08-30 20:10:57 +00002642echo "$as_me:$LINENO: checking for C compiler version" >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00002643ac_compiler=`set X $ac_compile; echo $2`
Martin v. Löwiseba40652007-08-30 20:10:57 +00002644{ (ac_try="$ac_compiler --version >&5"
2645case "(($ac_try" in
2646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2647 *) ac_try_echo=$ac_try;;
2648esac
2649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2650 (eval "$ac_compiler --version >&5") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +00002651 ac_status=$?
2652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2653 (exit $ac_status); }
Martin v. Löwiseba40652007-08-30 20:10:57 +00002654{ (ac_try="$ac_compiler -v >&5"
2655case "(($ac_try" in
2656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2657 *) ac_try_echo=$ac_try;;
2658esac
2659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2660 (eval "$ac_compiler -v >&5") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +00002661 ac_status=$?
2662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663 (exit $ac_status); }
Martin v. Löwiseba40652007-08-30 20:10:57 +00002664{ (ac_try="$ac_compiler -V >&5"
2665case "(($ac_try" in
2666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2667 *) ac_try_echo=$ac_try;;
2668esac
2669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2670 (eval "$ac_compiler -V >&5") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +00002671 ac_status=$?
2672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673 (exit $ac_status); }
2674
2675cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00002676/* confdefs.h. */
2677_ACEOF
2678cat confdefs.h >>conftest.$ac_ext
2679cat >>conftest.$ac_ext <<_ACEOF
2680/* end confdefs.h. */
Jack Jansendd19cf82001-12-06 22:36:17 +00002681
Martin v. Löwis11437992002-04-12 09:54:03 +00002682int
2683main ()
2684{
2685
2686 ;
2687 return 0;
2688}
2689_ACEOF
2690ac_clean_files_save=$ac_clean_files
Skip Montanaro6dead952003-09-25 14:50:04 +00002691ac_clean_files="$ac_clean_files a.out a.exe b.out"
Martin v. Löwis11437992002-04-12 09:54:03 +00002692# Try to create an executable without -o first, disregard a.out.
2693# It will help us diagnose broken compilers, and finding out an intuition
2694# of exeext.
Martin v. Löwiseba40652007-08-30 20:10:57 +00002695{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2696echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00002697ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Martin v. Löwiseba40652007-08-30 20:10:57 +00002698#
2699# List of possible output files, starting from the most likely.
2700# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2701# only as a last resort. b.out is created by i960 compilers.
2702ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2703#
2704# The IRIX 6 linker writes into existing files which may not be
2705# executable, retaining their permissions. Remove them first so a
2706# subsequent execution test works.
2707ac_rmfiles=
2708for ac_file in $ac_files
2709do
2710 case $ac_file in
2711 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2712 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2713 esac
2714done
2715rm -f $ac_rmfiles
2716
2717if { (ac_try="$ac_link_default"
2718case "(($ac_try" in
2719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2720 *) ac_try_echo=$ac_try;;
2721esac
2722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2723 (eval "$ac_link_default") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +00002724 ac_status=$?
2725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726 (exit $ac_status); }; then
Martin v. Löwiseba40652007-08-30 20:10:57 +00002727 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2728# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2729# in a Makefile. We should not override ac_cv_exeext if it was cached,
2730# so that the user can short-circuit this test for compilers unknown to
2731# Autoconf.
2732for ac_file in $ac_files ''
Skip Montanaro6dead952003-09-25 14:50:04 +00002733do
2734 test -f "$ac_file" || continue
Martin v. Löwis11437992002-04-12 09:54:03 +00002735 case $ac_file in
Martin v. Löwiseba40652007-08-30 20:10:57 +00002736 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Skip Montanarof0d5f792004-08-15 14:08:23 +00002737 ;;
Skip Montanaro6dead952003-09-25 14:50:04 +00002738 [ab].out )
Skip Montanarof0d5f792004-08-15 14:08:23 +00002739 # We found the default executable, but exeext='' is most
2740 # certainly right.
2741 break;;
Skip Montanaro6dead952003-09-25 14:50:04 +00002742 *.* )
Martin v. Löwiseba40652007-08-30 20:10:57 +00002743 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2744 then :; else
2745 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2746 fi
2747 # We set ac_cv_exeext here because the later test for it is not
2748 # safe: cross compilers may not add the suffix if given an `-o'
2749 # argument, so we may need to know it at that point already.
2750 # Even if this section looks crufty: it has the advantage of
2751 # actually working.
Skip Montanarof0d5f792004-08-15 14:08:23 +00002752 break;;
Skip Montanaro6dead952003-09-25 14:50:04 +00002753 * )
Skip Montanarof0d5f792004-08-15 14:08:23 +00002754 break;;
Martin v. Löwis11437992002-04-12 09:54:03 +00002755 esac
2756done
Martin v. Löwiseba40652007-08-30 20:10:57 +00002757test "$ac_cv_exeext" = no && ac_cv_exeext=
2758
Guido van Rossume6c2cf11999-01-08 21:08:33 +00002759else
Martin v. Löwiseba40652007-08-30 20:10:57 +00002760 ac_file=''
2761fi
2762
2763{ echo "$as_me:$LINENO: result: $ac_file" >&5
2764echo "${ECHO_T}$ac_file" >&6; }
2765if test -z "$ac_file"; then
Martin v. Löwis11437992002-04-12 09:54:03 +00002766 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00002767sed 's/^/| /' conftest.$ac_ext >&5
2768
2769{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2770See \`config.log' for more details." >&5
2771echo "$as_me: error: C compiler cannot create executables
2772See \`config.log' for more details." >&2;}
Martin v. Löwis11437992002-04-12 09:54:03 +00002773 { (exit 77); exit 77; }; }
Michael W. Hudson54241132001-12-07 15:38:26 +00002774fi
Guido van Rossume6c2cf11999-01-08 21:08:33 +00002775
Martin v. Löwis11437992002-04-12 09:54:03 +00002776ac_exeext=$ac_cv_exeext
Michael W. Hudson54241132001-12-07 15:38:26 +00002777
Martin v. Löwiseba40652007-08-30 20:10:57 +00002778# Check that the compiler produces executables we can run. If not, either
Martin v. Löwis11437992002-04-12 09:54:03 +00002779# the compiler is broken, or we cross compile.
Martin v. Löwiseba40652007-08-30 20:10:57 +00002780{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2781echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00002782# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2783# If not cross compiling, check that we can run a simple program.
2784if test "$cross_compiling" != yes; then
2785 if { ac_try='./$ac_file'
Martin v. Löwiseba40652007-08-30 20:10:57 +00002786 { (case "(($ac_try" in
2787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2788 *) ac_try_echo=$ac_try;;
2789esac
2790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2791 (eval "$ac_try") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +00002792 ac_status=$?
2793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794 (exit $ac_status); }; }; then
2795 cross_compiling=no
2796 else
2797 if test "$cross_compiling" = maybe; then
2798 cross_compiling=yes
2799 else
2800 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
Skip Montanaro6dead952003-09-25 14:50:04 +00002801If you meant to cross compile, use \`--host'.
2802See \`config.log' for more details." >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00002803echo "$as_me: error: cannot run C compiled programs.
Skip Montanaro6dead952003-09-25 14:50:04 +00002804If you meant to cross compile, use \`--host'.
2805See \`config.log' for more details." >&2;}
Martin v. Löwis11437992002-04-12 09:54:03 +00002806 { (exit 1); exit 1; }; }
2807 fi
2808 fi
2809fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00002810{ echo "$as_me:$LINENO: result: yes" >&5
2811echo "${ECHO_T}yes" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00002812
Skip Montanaro6dead952003-09-25 14:50:04 +00002813rm -f a.out a.exe conftest$ac_cv_exeext b.out
Martin v. Löwis11437992002-04-12 09:54:03 +00002814ac_clean_files=$ac_clean_files_save
Martin v. Löwiseba40652007-08-30 20:10:57 +00002815# Check that the compiler produces executables we can run. If not, either
Martin v. Löwis11437992002-04-12 09:54:03 +00002816# the compiler is broken, or we cross compile.
Martin v. Löwiseba40652007-08-30 20:10:57 +00002817{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2818echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2819{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2820echo "${ECHO_T}$cross_compiling" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00002821
Martin v. Löwiseba40652007-08-30 20:10:57 +00002822{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2823echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2824if { (ac_try="$ac_link"
2825case "(($ac_try" in
2826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2827 *) ac_try_echo=$ac_try;;
2828esac
2829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2830 (eval "$ac_link") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +00002831 ac_status=$?
2832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833 (exit $ac_status); }; then
2834 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2835# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2836# work properly (i.e., refer to `conftest.exe'), while it won't with
2837# `rm'.
Skip Montanaro6dead952003-09-25 14:50:04 +00002838for ac_file in conftest.exe conftest conftest.*; do
2839 test -f "$ac_file" || continue
Martin v. Löwis11437992002-04-12 09:54:03 +00002840 case $ac_file in
Martin v. Löwiseba40652007-08-30 20:10:57 +00002841 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Martin v. Löwis11437992002-04-12 09:54:03 +00002842 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Skip Montanarof0d5f792004-08-15 14:08:23 +00002843 break;;
Martin v. Löwis11437992002-04-12 09:54:03 +00002844 * ) break;;
2845 esac
2846done
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002847else
Skip Montanaro6dead952003-09-25 14:50:04 +00002848 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2849See \`config.log' for more details." >&5
2850echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2851See \`config.log' for more details." >&2;}
Martin v. Löwis11437992002-04-12 09:54:03 +00002852 { (exit 1); exit 1; }; }
Michael W. Hudson54241132001-12-07 15:38:26 +00002853fi
Jack Jansendd19cf82001-12-06 22:36:17 +00002854
Martin v. Löwis11437992002-04-12 09:54:03 +00002855rm -f conftest$ac_cv_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +00002856{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2857echo "${ECHO_T}$ac_cv_exeext" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00002858
2859rm -f conftest.$ac_ext
2860EXEEXT=$ac_cv_exeext
2861ac_exeext=$EXEEXT
Martin v. Löwiseba40652007-08-30 20:10:57 +00002862{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2863echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00002864if test "${ac_cv_objext+set}" = set; then
2865 echo $ECHO_N "(cached) $ECHO_C" >&6
Michael W. Hudson54241132001-12-07 15:38:26 +00002866else
Martin v. Löwis11437992002-04-12 09:54:03 +00002867 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00002868/* confdefs.h. */
2869_ACEOF
2870cat confdefs.h >>conftest.$ac_ext
2871cat >>conftest.$ac_ext <<_ACEOF
2872/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00002873
Martin v. Löwis11437992002-04-12 09:54:03 +00002874int
2875main ()
2876{
2877
2878 ;
2879 return 0;
2880}
2881_ACEOF
2882rm -f conftest.o conftest.obj
Martin v. Löwiseba40652007-08-30 20:10:57 +00002883if { (ac_try="$ac_compile"
2884case "(($ac_try" in
2885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2886 *) ac_try_echo=$ac_try;;
2887esac
2888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2889 (eval "$ac_compile") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +00002890 ac_status=$?
2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); }; then
Martin v. Löwiseba40652007-08-30 20:10:57 +00002893 for ac_file in conftest.o conftest.obj conftest.*; do
2894 test -f "$ac_file" || continue;
Martin v. Löwis11437992002-04-12 09:54:03 +00002895 case $ac_file in
Martin v. Löwiseba40652007-08-30 20:10:57 +00002896 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
Martin v. Löwis11437992002-04-12 09:54:03 +00002897 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2898 break;;
2899 esac
2900done
2901else
2902 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00002903sed 's/^/| /' conftest.$ac_ext >&5
2904
2905{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2906See \`config.log' for more details." >&5
2907echo "$as_me: error: cannot compute suffix of object files: cannot compile
2908See \`config.log' for more details." >&2;}
Martin v. Löwis11437992002-04-12 09:54:03 +00002909 { (exit 1); exit 1; }; }
2910fi
2911
2912rm -f conftest.$ac_cv_objext conftest.$ac_ext
2913fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00002914{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2915echo "${ECHO_T}$ac_cv_objext" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00002916OBJEXT=$ac_cv_objext
2917ac_objext=$OBJEXT
Martin v. Löwiseba40652007-08-30 20:10:57 +00002918{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2919echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00002920if test "${ac_cv_c_compiler_gnu+set}" = set; then
2921 echo $ECHO_N "(cached) $ECHO_C" >&6
2922else
2923 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00002924/* confdefs.h. */
2925_ACEOF
2926cat confdefs.h >>conftest.$ac_ext
2927cat >>conftest.$ac_ext <<_ACEOF
2928/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00002929
Martin v. Löwis11437992002-04-12 09:54:03 +00002930int
2931main ()
2932{
2933#ifndef __GNUC__
2934 choke me
2935#endif
2936
2937 ;
2938 return 0;
2939}
2940_ACEOF
2941rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00002942if { (ac_try="$ac_compile"
2943case "(($ac_try" in
2944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2945 *) ac_try_echo=$ac_try;;
2946esac
2947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2948 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00002949 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00002950 grep -v '^ *+' conftest.er1 >conftest.err
2951 rm -f conftest.er1
2952 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00002953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00002954 (exit $ac_status); } && {
2955 test -z "$ac_c_werror_flag" ||
2956 test ! -s conftest.err
2957 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00002958 ac_compiler_gnu=yes
2959else
2960 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00002961sed 's/^/| /' conftest.$ac_ext >&5
2962
Martin v. Löwiseba40652007-08-30 20:10:57 +00002963 ac_compiler_gnu=no
Martin v. Löwis11437992002-04-12 09:54:03 +00002964fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00002965
2966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00002967ac_cv_c_compiler_gnu=$ac_compiler_gnu
2968
2969fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00002970{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2971echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00002972GCC=`test $ac_compiler_gnu = yes && echo yes`
2973ac_test_CFLAGS=${CFLAGS+set}
2974ac_save_CFLAGS=$CFLAGS
Martin v. Löwiseba40652007-08-30 20:10:57 +00002975{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2976echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00002977if test "${ac_cv_prog_cc_g+set}" = set; then
2978 echo $ECHO_N "(cached) $ECHO_C" >&6
2979else
Martin v. Löwiseba40652007-08-30 20:10:57 +00002980 ac_save_c_werror_flag=$ac_c_werror_flag
2981 ac_c_werror_flag=yes
2982 ac_cv_prog_cc_g=no
2983 CFLAGS="-g"
2984 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00002985/* confdefs.h. */
2986_ACEOF
2987cat confdefs.h >>conftest.$ac_ext
2988cat >>conftest.$ac_ext <<_ACEOF
2989/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00002990
Martin v. Löwis11437992002-04-12 09:54:03 +00002991int
2992main ()
2993{
2994
2995 ;
2996 return 0;
2997}
2998_ACEOF
2999rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00003000if { (ac_try="$ac_compile"
3001case "(($ac_try" in
3002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3003 *) ac_try_echo=$ac_try;;
3004esac
3005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3006 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00003007 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00003008 grep -v '^ *+' conftest.er1 >conftest.err
3009 rm -f conftest.er1
3010 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00003011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00003012 (exit $ac_status); } && {
3013 test -z "$ac_c_werror_flag" ||
3014 test ! -s conftest.err
3015 } && test -s conftest.$ac_objext; then
Guido van Rossumf78abae1997-01-21 22:02:36 +00003016 ac_cv_prog_cc_g=yes
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003017else
Martin v. Löwis11437992002-04-12 09:54:03 +00003018 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00003019sed 's/^/| /' conftest.$ac_ext >&5
3020
Martin v. Löwiseba40652007-08-30 20:10:57 +00003021 CFLAGS=""
3022 cat >conftest.$ac_ext <<_ACEOF
3023/* confdefs.h. */
3024_ACEOF
3025cat confdefs.h >>conftest.$ac_ext
3026cat >>conftest.$ac_ext <<_ACEOF
3027/* end confdefs.h. */
3028
3029int
3030main ()
3031{
3032
3033 ;
3034 return 0;
3035}
3036_ACEOF
3037rm -f conftest.$ac_objext
3038if { (ac_try="$ac_compile"
3039case "(($ac_try" in
3040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3041 *) ac_try_echo=$ac_try;;
3042esac
3043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3044 (eval "$ac_compile") 2>conftest.er1
3045 ac_status=$?
3046 grep -v '^ *+' conftest.er1 >conftest.err
3047 rm -f conftest.er1
3048 cat conftest.err >&5
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); } && {
3051 test -z "$ac_c_werror_flag" ||
3052 test ! -s conftest.err
3053 } && test -s conftest.$ac_objext; then
3054 :
3055else
3056 echo "$as_me: failed program was:" >&5
3057sed 's/^/| /' conftest.$ac_ext >&5
3058
3059 ac_c_werror_flag=$ac_save_c_werror_flag
3060 CFLAGS="-g"
3061 cat >conftest.$ac_ext <<_ACEOF
3062/* confdefs.h. */
3063_ACEOF
3064cat confdefs.h >>conftest.$ac_ext
3065cat >>conftest.$ac_ext <<_ACEOF
3066/* end confdefs.h. */
3067
3068int
3069main ()
3070{
3071
3072 ;
3073 return 0;
3074}
3075_ACEOF
3076rm -f conftest.$ac_objext
3077if { (ac_try="$ac_compile"
3078case "(($ac_try" in
3079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3080 *) ac_try_echo=$ac_try;;
3081esac
3082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3083 (eval "$ac_compile") 2>conftest.er1
3084 ac_status=$?
3085 grep -v '^ *+' conftest.er1 >conftest.err
3086 rm -f conftest.er1
3087 cat conftest.err >&5
3088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089 (exit $ac_status); } && {
3090 test -z "$ac_c_werror_flag" ||
3091 test ! -s conftest.err
3092 } && test -s conftest.$ac_objext; then
3093 ac_cv_prog_cc_g=yes
3094else
3095 echo "$as_me: failed program was:" >&5
3096sed 's/^/| /' conftest.$ac_ext >&5
3097
3098
Guido van Rossum627b2d71993-12-24 10:39:16 +00003099fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00003100
3101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003102fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00003103
3104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3105fi
3106
3107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3108 ac_c_werror_flag=$ac_save_c_werror_flag
3109fi
3110{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3111echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Guido van Rossume6c2cf11999-01-08 21:08:33 +00003112if test "$ac_test_CFLAGS" = set; then
Martin v. Löwis11437992002-04-12 09:54:03 +00003113 CFLAGS=$ac_save_CFLAGS
Guido van Rossume6c2cf11999-01-08 21:08:33 +00003114elif test $ac_cv_prog_cc_g = yes; then
3115 if test "$GCC" = yes; then
Guido van Rossumf78abae1997-01-21 22:02:36 +00003116 CFLAGS="-g -O2"
3117 else
Guido van Rossume6c2cf11999-01-08 21:08:33 +00003118 CFLAGS="-g"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003119 fi
3120else
Guido van Rossume6c2cf11999-01-08 21:08:33 +00003121 if test "$GCC" = yes; then
3122 CFLAGS="-O2"
3123 else
3124 CFLAGS=
3125 fi
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003126fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00003127{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3128echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3129if test "${ac_cv_prog_cc_c89+set}" = set; then
Skip Montanaro6dead952003-09-25 14:50:04 +00003130 echo $ECHO_N "(cached) $ECHO_C" >&6
3131else
Martin v. Löwiseba40652007-08-30 20:10:57 +00003132 ac_cv_prog_cc_c89=no
Skip Montanaro6dead952003-09-25 14:50:04 +00003133ac_save_CC=$CC
3134cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00003135/* confdefs.h. */
3136_ACEOF
3137cat confdefs.h >>conftest.$ac_ext
3138cat >>conftest.$ac_ext <<_ACEOF
3139/* end confdefs.h. */
3140#include <stdarg.h>
3141#include <stdio.h>
3142#include <sys/types.h>
3143#include <sys/stat.h>
3144/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3145struct buf { int x; };
3146FILE * (*rcsopen) (struct buf *, struct stat *, int);
3147static char *e (p, i)
3148 char **p;
3149 int i;
3150{
3151 return p[i];
3152}
3153static char *f (char * (*g) (char **, int), char **p, ...)
3154{
3155 char *s;
3156 va_list v;
3157 va_start (v,p);
3158 s = g (p, va_arg (v,int));
3159 va_end (v);
3160 return s;
3161}
Skip Montanarof0d5f792004-08-15 14:08:23 +00003162
3163/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3164 function prototypes and stuff, but not '\xHH' hex character constants.
3165 These don't provoke an error unfortunately, instead are silently treated
Martin v. Löwiseba40652007-08-30 20:10:57 +00003166 as 'x'. The following induces an error, until -std is added to get
Skip Montanarof0d5f792004-08-15 14:08:23 +00003167 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3168 array size at least. It's necessary to write '\x00'==0 to get something
Martin v. Löwiseba40652007-08-30 20:10:57 +00003169 that's true only with -std. */
Skip Montanarof0d5f792004-08-15 14:08:23 +00003170int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3171
Martin v. Löwiseba40652007-08-30 20:10:57 +00003172/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3173 inside strings and character constants. */
3174#define FOO(x) 'x'
3175int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3176
Skip Montanaro6dead952003-09-25 14:50:04 +00003177int test (int i, double x);
3178struct s1 {int (*f) (int a);};
3179struct s2 {int (*f) (double a);};
3180int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3181int argc;
3182char **argv;
3183int
3184main ()
3185{
3186return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3187 ;
3188 return 0;
3189}
3190_ACEOF
Martin v. Löwiseba40652007-08-30 20:10:57 +00003191for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3192 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Skip Montanaro6dead952003-09-25 14:50:04 +00003193do
3194 CC="$ac_save_CC $ac_arg"
3195 rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00003196if { (ac_try="$ac_compile"
3197case "(($ac_try" in
3198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3199 *) ac_try_echo=$ac_try;;
3200esac
3201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3202 (eval "$ac_compile") 2>conftest.er1
Skip Montanaro6dead952003-09-25 14:50:04 +00003203 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00003204 grep -v '^ *+' conftest.er1 >conftest.err
3205 rm -f conftest.er1
3206 cat conftest.err >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00003207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00003208 (exit $ac_status); } && {
3209 test -z "$ac_c_werror_flag" ||
3210 test ! -s conftest.err
3211 } && test -s conftest.$ac_objext; then
3212 ac_cv_prog_cc_c89=$ac_arg
Skip Montanaro6dead952003-09-25 14:50:04 +00003213else
3214 echo "$as_me: failed program was:" >&5
3215sed 's/^/| /' conftest.$ac_ext >&5
3216
Martin v. Löwiseba40652007-08-30 20:10:57 +00003217
Skip Montanaro6dead952003-09-25 14:50:04 +00003218fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00003219
3220rm -f core conftest.err conftest.$ac_objext
3221 test "x$ac_cv_prog_cc_c89" != "xno" && break
Skip Montanaro6dead952003-09-25 14:50:04 +00003222done
Martin v. Löwiseba40652007-08-30 20:10:57 +00003223rm -f conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +00003224CC=$ac_save_CC
3225
3226fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00003227# AC_CACHE_VAL
3228case "x$ac_cv_prog_cc_c89" in
3229 x)
3230 { echo "$as_me:$LINENO: result: none needed" >&5
3231echo "${ECHO_T}none needed" >&6; } ;;
3232 xno)
3233 { echo "$as_me:$LINENO: result: unsupported" >&5
3234echo "${ECHO_T}unsupported" >&6; } ;;
Skip Montanaro6dead952003-09-25 14:50:04 +00003235 *)
Martin v. Löwiseba40652007-08-30 20:10:57 +00003236 CC="$CC $ac_cv_prog_cc_c89"
3237 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3238echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Skip Montanaro6dead952003-09-25 14:50:04 +00003239esac
3240
Skip Montanaro6dead952003-09-25 14:50:04 +00003241
Martin v. Löwis11437992002-04-12 09:54:03 +00003242ac_ext=c
3243ac_cpp='$CPP $CPPFLAGS'
3244ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3245ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3246ac_compiler_gnu=$ac_cv_c_compiler_gnu
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003247
Martin v. Löwis1d5ecb72001-08-09 10:29:44 +00003248
Martin v. Löwis0f48d982006-04-14 14:34:26 +00003249
3250
Martin v. Löwiseba40652007-08-30 20:10:57 +00003251{ echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5
3252echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6; }
Martin v. Löwis0f48d982006-04-14 14:34:26 +00003253
Martin v. Löwiseba40652007-08-30 20:10:57 +00003254# Check whether --with-cxx_main was given.
Martin v. Löwis0f48d982006-04-14 14:34:26 +00003255if test "${with_cxx_main+set}" = set; then
Martin v. Löwiseba40652007-08-30 20:10:57 +00003256 withval=$with_cxx_main;
Martin v. Löwis0f48d982006-04-14 14:34:26 +00003257
3258 case $withval in
3259 no) with_cxx_main=no
3260 MAINCC='$(CC)';;
3261 yes) with_cxx_main=yes
3262 MAINCC='$(CXX)';;
3263 *) with_cxx_main=yes
3264 MAINCC=$withval
3265 if test -z "$CXX"
3266 then
3267 CXX=$withval
3268 fi;;
3269 esac
3270else
3271
3272 with_cxx_main=no
3273 MAINCC='$(CC)'
3274
Martin v. Löwiseba40652007-08-30 20:10:57 +00003275fi
3276
3277{ echo "$as_me:$LINENO: result: $with_cxx_main" >&5
3278echo "${ECHO_T}$with_cxx_main" >&6; }
Martin v. Löwis0f48d982006-04-14 14:34:26 +00003279
3280preset_cxx="$CXX"
3281if test -z "$CXX"
3282then
3283 case "$CC" in
3284 gcc) # Extract the first word of "g++", so it can be a program name with args.
3285set dummy g++; ac_word=$2
Martin v. Löwiseba40652007-08-30 20:10:57 +00003286{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3287echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Martin v. Löwis0f48d982006-04-14 14:34:26 +00003288if test "${ac_cv_path_CXX+set}" = set; then
3289 echo $ECHO_N "(cached) $ECHO_C" >&6
3290else
3291 case $CXX in
3292 [\\/]* | ?:[\\/]*)
3293 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3294 ;;
3295 *)
3296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3297for as_dir in notfound
3298do
3299 IFS=$as_save_IFS
3300 test -z "$as_dir" && as_dir=.
3301 for ac_exec_ext in '' $ac_executable_extensions; do
Martin v. Löwiseba40652007-08-30 20:10:57 +00003302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Martin v. Löwis0f48d982006-04-14 14:34:26 +00003303 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3305 break 2
3306 fi
3307done
3308done
Martin v. Löwiseba40652007-08-30 20:10:57 +00003309IFS=$as_save_IFS
Martin v. Löwis0f48d982006-04-14 14:34:26 +00003310
3311 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="g++"
3312 ;;
3313esac
3314fi
3315CXX=$ac_cv_path_CXX
Skip Montanaro89e975f2007-08-22 19:05:21 +00003316if test -n "$CXX"; then
Martin v. Löwiseba40652007-08-30 20:10:57 +00003317 { echo "$as_me:$LINENO: result: $CXX" >&5
3318echo "${ECHO_T}$CXX" >&6; }
Skip Montanaro89e975f2007-08-22 19:05:21 +00003319else
Martin v. Löwiseba40652007-08-30 20:10:57 +00003320 { echo "$as_me:$LINENO: result: no" >&5
3321echo "${ECHO_T}no" >&6; }
Skip Montanaro89e975f2007-08-22 19:05:21 +00003322fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00003323
Martin v. Löwis0f48d982006-04-14 14:34:26 +00003324 ;;
3325 cc) # Extract the first word of "c++", so it can be a program name with args.
3326set dummy c++; ac_word=$2
Martin v. Löwiseba40652007-08-30 20:10:57 +00003327{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3328echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Martin v. Löwis0f48d982006-04-14 14:34:26 +00003329if test "${ac_cv_path_CXX+set}" = set; then
3330 echo $ECHO_N "(cached) $ECHO_C" >&6
3331else
3332 case $CXX in
3333 [\\/]* | ?:[\\/]*)
3334 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3335 ;;
3336 *)
3337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3338for as_dir in notfound
3339do
3340 IFS=$as_save_IFS
3341 test -z "$as_dir" && as_dir=.
3342 for ac_exec_ext in '' $ac_executable_extensions; do
Martin v. Löwiseba40652007-08-30 20:10:57 +00003343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Martin v. Löwis0f48d982006-04-14 14:34:26 +00003344 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3346 break 2
3347 fi
3348done
3349done
Martin v. Löwiseba40652007-08-30 20:10:57 +00003350IFS=$as_save_IFS
Martin v. Löwis0f48d982006-04-14 14:34:26 +00003351
3352 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="c++"
3353 ;;
3354esac
3355fi
3356CXX=$ac_cv_path_CXX
Skip Montanaro89e975f2007-08-22 19:05:21 +00003357if test -n "$CXX"; then
Martin v. Löwiseba40652007-08-30 20:10:57 +00003358 { echo "$as_me:$LINENO: result: $CXX" >&5
3359echo "${ECHO_T}$CXX" >&6; }
Skip Montanaro89e975f2007-08-22 19:05:21 +00003360else
Martin v. Löwiseba40652007-08-30 20:10:57 +00003361 { echo "$as_me:$LINENO: result: no" >&5
3362echo "${ECHO_T}no" >&6; }
Skip Montanaro89e975f2007-08-22 19:05:21 +00003363fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00003364
Martin v. Löwis0f48d982006-04-14 14:34:26 +00003365 ;;
3366 esac
3367 if test "$CXX" = "notfound"
3368 then
3369 CXX=""
3370 fi
3371fi
3372if test -z "$CXX"
3373then
3374 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
3375do
3376 # Extract the first word of "$ac_prog", so it can be a program name with args.
3377set dummy $ac_prog; ac_word=$2
Martin v. Löwiseba40652007-08-30 20:10:57 +00003378{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3379echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Martin v. Löwis0f48d982006-04-14 14:34:26 +00003380if test "${ac_cv_prog_CXX+set}" = set; then
3381 echo $ECHO_N "(cached) $ECHO_C" >&6
3382else
3383 if test -n "$CXX"; then
3384 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3385else
3386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3387for as_dir in $PATH
3388do
3389 IFS=$as_save_IFS
3390 test -z "$as_dir" && as_dir=.
3391 for ac_exec_ext in '' $ac_executable_extensions; do
Martin v. Löwiseba40652007-08-30 20:10:57 +00003392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Martin v. Löwis0f48d982006-04-14 14:34:26 +00003393 ac_cv_prog_CXX="$ac_prog"
3394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3395 break 2
3396 fi
3397done
3398done
Martin v. Löwiseba40652007-08-30 20:10:57 +00003399IFS=$as_save_IFS
Martin v. Löwis0f48d982006-04-14 14:34:26 +00003400
3401fi
3402fi
3403CXX=$ac_cv_prog_CXX
3404if test -n "$CXX"; then
Martin v. Löwiseba40652007-08-30 20:10:57 +00003405 { echo "$as_me:$LINENO: result: $CXX" >&5
3406echo "${ECHO_T}$CXX" >&6; }
Martin v. Löwis0f48d982006-04-14 14:34:26 +00003407else
Martin v. Löwiseba40652007-08-30 20:10:57 +00003408 { echo "$as_me:$LINENO: result: no" >&5
3409echo "${ECHO_T}no" >&6; }
Martin v. Löwis0f48d982006-04-14 14:34:26 +00003410fi
3411
Martin v. Löwiseba40652007-08-30 20:10:57 +00003412
Martin v. Löwis0f48d982006-04-14 14:34:26 +00003413 test -n "$CXX" && break
3414done
3415test -n "$CXX" || CXX="notfound"
3416
3417 if test "$CXX" = "notfound"
3418 then
3419 CXX=""
3420 fi
3421fi
3422if test "$preset_cxx" != "$CXX"
3423then
3424 { echo "$as_me:$LINENO: WARNING:
3425
3426 By default, distutils will build C++ extension modules with \"$CXX\".
3427 If this is not intended, then set CXX on the configure command line.
3428 " >&5
3429echo "$as_me: WARNING:
3430
3431 By default, distutils will build C++ extension modules with \"$CXX\".
3432 If this is not intended, then set CXX on the configure command line.
3433 " >&2;}
3434fi
3435
3436
Martin v. Löwis1d5ecb72001-08-09 10:29:44 +00003437# checks for UNIX variants that set C preprocessor variables
Martin v. Löwis11437992002-04-12 09:54:03 +00003438
3439ac_ext=c
3440ac_cpp='$CPP $CPPFLAGS'
3441ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3442ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3443ac_compiler_gnu=$ac_cv_c_compiler_gnu
Martin v. Löwiseba40652007-08-30 20:10:57 +00003444{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3445echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Martin v. Löwis1d5ecb72001-08-09 10:29:44 +00003446# On Suns, sometimes $CPP names a directory.
3447if test -n "$CPP" && test -d "$CPP"; then
3448 CPP=
3449fi
3450if test -z "$CPP"; then
Martin v. Löwis11437992002-04-12 09:54:03 +00003451 if test "${ac_cv_prog_CPP+set}" = set; then
3452 echo $ECHO_N "(cached) $ECHO_C" >&6
Martin v. Löwis1d5ecb72001-08-09 10:29:44 +00003453else
Martin v. Löwis11437992002-04-12 09:54:03 +00003454 # Double quotes because CPP needs to be expanded
3455 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3456 do
3457 ac_preproc_ok=false
3458for ac_c_preproc_warn_flag in '' yes
3459do
3460 # Use a header file that comes with gcc, so configuring glibc
3461 # with a fresh cross-compiler works.
Skip Montanaro6dead952003-09-25 14:50:04 +00003462 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3463 # <limits.h> exists even on freestanding compilers.
Martin v. Löwis1d5ecb72001-08-09 10:29:44 +00003464 # On the NeXT, cc -E runs the code through the compiler's parser,
Martin v. Löwis11437992002-04-12 09:54:03 +00003465 # not just through cpp. "Syntax error" is here to catch this case.
3466 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00003467/* confdefs.h. */
3468_ACEOF
3469cat confdefs.h >>conftest.$ac_ext
3470cat >>conftest.$ac_ext <<_ACEOF
3471/* end confdefs.h. */
3472#ifdef __STDC__
3473# include <limits.h>
3474#else
3475# include <assert.h>
3476#endif
Skip Montanarof0d5f792004-08-15 14:08:23 +00003477 Syntax error
Martin v. Löwis11437992002-04-12 09:54:03 +00003478_ACEOF
Martin v. Löwiseba40652007-08-30 20:10:57 +00003479if { (ac_try="$ac_cpp conftest.$ac_ext"
3480case "(($ac_try" in
3481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3482 *) ac_try_echo=$ac_try;;
3483esac
3484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3485 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00003486 ac_status=$?
Skip Montanaro6dead952003-09-25 14:50:04 +00003487 grep -v '^ *+' conftest.er1 >conftest.err
Martin v. Löwis11437992002-04-12 09:54:03 +00003488 rm -f conftest.er1
3489 cat conftest.err >&5
3490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00003491 (exit $ac_status); } >/dev/null && {
3492 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3493 test ! -s conftest.err
3494 }; then
Martin v. Löwis1d5ecb72001-08-09 10:29:44 +00003495 :
3496else
Martin v. Löwis11437992002-04-12 09:54:03 +00003497 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00003498sed 's/^/| /' conftest.$ac_ext >&5
3499
Martin v. Löwis11437992002-04-12 09:54:03 +00003500 # Broken: fails on valid input.
3501continue
Jack Jansendd19cf82001-12-06 22:36:17 +00003502fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00003503
Martin v. Löwis11437992002-04-12 09:54:03 +00003504rm -f conftest.err conftest.$ac_ext
Jack Jansendd19cf82001-12-06 22:36:17 +00003505
Martin v. Löwiseba40652007-08-30 20:10:57 +00003506 # OK, works on sane cases. Now check whether nonexistent headers
Martin v. Löwis11437992002-04-12 09:54:03 +00003507 # can be detected and how.
3508 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00003509/* confdefs.h. */
3510_ACEOF
3511cat confdefs.h >>conftest.$ac_ext
3512cat >>conftest.$ac_ext <<_ACEOF
3513/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00003514#include <ac_nonexistent.h>
3515_ACEOF
Martin v. Löwiseba40652007-08-30 20:10:57 +00003516if { (ac_try="$ac_cpp conftest.$ac_ext"
3517case "(($ac_try" in
3518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3519 *) ac_try_echo=$ac_try;;
3520esac
3521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3522 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00003523 ac_status=$?
Skip Montanaro6dead952003-09-25 14:50:04 +00003524 grep -v '^ *+' conftest.er1 >conftest.err
Martin v. Löwis11437992002-04-12 09:54:03 +00003525 rm -f conftest.er1
3526 cat conftest.err >&5
3527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00003528 (exit $ac_status); } >/dev/null && {
3529 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3530 test ! -s conftest.err
3531 }; then
Martin v. Löwis11437992002-04-12 09:54:03 +00003532 # Broken: success on invalid input.
3533continue
3534else
3535 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00003536sed 's/^/| /' conftest.$ac_ext >&5
3537
Martin v. Löwis11437992002-04-12 09:54:03 +00003538 # Passes both tests.
3539ac_preproc_ok=:
3540break
3541fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00003542
Martin v. Löwis11437992002-04-12 09:54:03 +00003543rm -f conftest.err conftest.$ac_ext
3544
3545done
3546# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3547rm -f conftest.err conftest.$ac_ext
3548if $ac_preproc_ok; then
3549 break
3550fi
3551
3552 done
3553 ac_cv_prog_CPP=$CPP
3554
3555fi
3556 CPP=$ac_cv_prog_CPP
3557else
3558 ac_cv_prog_CPP=$CPP
3559fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00003560{ echo "$as_me:$LINENO: result: $CPP" >&5
3561echo "${ECHO_T}$CPP" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00003562ac_preproc_ok=false
3563for ac_c_preproc_warn_flag in '' yes
3564do
3565 # Use a header file that comes with gcc, so configuring glibc
3566 # with a fresh cross-compiler works.
Skip Montanaro6dead952003-09-25 14:50:04 +00003567 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3568 # <limits.h> exists even on freestanding compilers.
Martin v. Löwis11437992002-04-12 09:54:03 +00003569 # On the NeXT, cc -E runs the code through the compiler's parser,
3570 # not just through cpp. "Syntax error" is here to catch this case.
3571 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00003572/* confdefs.h. */
3573_ACEOF
3574cat confdefs.h >>conftest.$ac_ext
3575cat >>conftest.$ac_ext <<_ACEOF
3576/* end confdefs.h. */
3577#ifdef __STDC__
3578# include <limits.h>
3579#else
3580# include <assert.h>
3581#endif
Skip Montanarof0d5f792004-08-15 14:08:23 +00003582 Syntax error
Martin v. Löwis11437992002-04-12 09:54:03 +00003583_ACEOF
Martin v. Löwiseba40652007-08-30 20:10:57 +00003584if { (ac_try="$ac_cpp conftest.$ac_ext"
3585case "(($ac_try" in
3586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3587 *) ac_try_echo=$ac_try;;
3588esac
3589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3590 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00003591 ac_status=$?
Skip Montanaro6dead952003-09-25 14:50:04 +00003592 grep -v '^ *+' conftest.er1 >conftest.err
Martin v. Löwis11437992002-04-12 09:54:03 +00003593 rm -f conftest.er1
3594 cat conftest.err >&5
3595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00003596 (exit $ac_status); } >/dev/null && {
3597 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3598 test ! -s conftest.err
3599 }; then
Martin v. Löwis11437992002-04-12 09:54:03 +00003600 :
3601else
3602 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00003603sed 's/^/| /' conftest.$ac_ext >&5
3604
Martin v. Löwis11437992002-04-12 09:54:03 +00003605 # Broken: fails on valid input.
3606continue
3607fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00003608
Martin v. Löwis11437992002-04-12 09:54:03 +00003609rm -f conftest.err conftest.$ac_ext
3610
Martin v. Löwiseba40652007-08-30 20:10:57 +00003611 # OK, works on sane cases. Now check whether nonexistent headers
Martin v. Löwis11437992002-04-12 09:54:03 +00003612 # can be detected and how.
3613 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00003614/* confdefs.h. */
3615_ACEOF
3616cat confdefs.h >>conftest.$ac_ext
3617cat >>conftest.$ac_ext <<_ACEOF
3618/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00003619#include <ac_nonexistent.h>
3620_ACEOF
Martin v. Löwiseba40652007-08-30 20:10:57 +00003621if { (ac_try="$ac_cpp conftest.$ac_ext"
3622case "(($ac_try" in
3623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3624 *) ac_try_echo=$ac_try;;
3625esac
3626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3627 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00003628 ac_status=$?
Skip Montanaro6dead952003-09-25 14:50:04 +00003629 grep -v '^ *+' conftest.er1 >conftest.err
Martin v. Löwis11437992002-04-12 09:54:03 +00003630 rm -f conftest.er1
3631 cat conftest.err >&5
3632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00003633 (exit $ac_status); } >/dev/null && {
3634 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3635 test ! -s conftest.err
3636 }; then
Martin v. Löwis11437992002-04-12 09:54:03 +00003637 # Broken: success on invalid input.
3638continue
3639else
3640 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00003641sed 's/^/| /' conftest.$ac_ext >&5
3642
Martin v. Löwis11437992002-04-12 09:54:03 +00003643 # Passes both tests.
3644ac_preproc_ok=:
3645break
3646fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00003647
Martin v. Löwis11437992002-04-12 09:54:03 +00003648rm -f conftest.err conftest.$ac_ext
3649
3650done
3651# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3652rm -f conftest.err conftest.$ac_ext
3653if $ac_preproc_ok; then
3654 :
3655else
Skip Montanaro6dead952003-09-25 14:50:04 +00003656 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3657See \`config.log' for more details." >&5
3658echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3659See \`config.log' for more details." >&2;}
Martin v. Löwis11437992002-04-12 09:54:03 +00003660 { (exit 1); exit 1; }; }
3661fi
3662
3663ac_ext=c
3664ac_cpp='$CPP $CPPFLAGS'
3665ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3666ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3667ac_compiler_gnu=$ac_cv_c_compiler_gnu
3668
3669
Martin v. Löwiseba40652007-08-30 20:10:57 +00003670{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3671echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3672if test "${ac_cv_path_GREP+set}" = set; then
Skip Montanaro6dead952003-09-25 14:50:04 +00003673 echo $ECHO_N "(cached) $ECHO_C" >&6
3674else
Martin v. Löwiseba40652007-08-30 20:10:57 +00003675 # Extract the first word of "grep ggrep" to use in msg output
3676if test -z "$GREP"; then
3677set dummy grep ggrep; ac_prog_name=$2
3678if test "${ac_cv_path_GREP+set}" = set; then
3679 echo $ECHO_N "(cached) $ECHO_C" >&6
3680else
3681 ac_path_GREP_found=false
3682# Loop through the user's path and test for each of PROGNAME-LIST
3683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3684for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3685do
3686 IFS=$as_save_IFS
3687 test -z "$as_dir" && as_dir=.
3688 for ac_prog in grep ggrep; do
3689 for ac_exec_ext in '' $ac_executable_extensions; do
3690 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3691 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3692 # Check for GNU ac_path_GREP and select it if it is found.
3693 # Check for GNU $ac_path_GREP
3694case `"$ac_path_GREP" --version 2>&1` in
3695*GNU*)
3696 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3697*)
3698 ac_count=0
3699 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3700 while :
3701 do
3702 cat "conftest.in" "conftest.in" >"conftest.tmp"
3703 mv "conftest.tmp" "conftest.in"
3704 cp "conftest.in" "conftest.nl"
3705 echo 'GREP' >> "conftest.nl"
3706 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3707 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3708 ac_count=`expr $ac_count + 1`
3709 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3710 # Best one so far, save it but keep looking for a better one
3711 ac_cv_path_GREP="$ac_path_GREP"
3712 ac_path_GREP_max=$ac_count
Skip Montanaro6dead952003-09-25 14:50:04 +00003713 fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00003714 # 10*(2^10) chars as input seems more than enough
3715 test $ac_count -gt 10 && break
3716 done
3717 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3718esac
3719
3720
3721 $ac_path_GREP_found && break 3
3722 done
3723done
3724
3725done
3726IFS=$as_save_IFS
3727
3728
Skip Montanaro6dead952003-09-25 14:50:04 +00003729fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00003730
3731GREP="$ac_cv_path_GREP"
3732if test -z "$GREP"; then
3733 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3734echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3735 { (exit 1); exit 1; }; }
3736fi
3737
3738else
3739 ac_cv_path_GREP=$GREP
3740fi
3741
3742
3743fi
3744{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3745echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3746 GREP="$ac_cv_path_GREP"
3747
3748
3749{ echo "$as_me:$LINENO: checking for egrep" >&5
3750echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3751if test "${ac_cv_path_EGREP+set}" = set; then
3752 echo $ECHO_N "(cached) $ECHO_C" >&6
3753else
3754 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3755 then ac_cv_path_EGREP="$GREP -E"
3756 else
3757 # Extract the first word of "egrep" to use in msg output
3758if test -z "$EGREP"; then
3759set dummy egrep; ac_prog_name=$2
3760if test "${ac_cv_path_EGREP+set}" = set; then
3761 echo $ECHO_N "(cached) $ECHO_C" >&6
3762else
3763 ac_path_EGREP_found=false
3764# Loop through the user's path and test for each of PROGNAME-LIST
3765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3766for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3767do
3768 IFS=$as_save_IFS
3769 test -z "$as_dir" && as_dir=.
3770 for ac_prog in egrep; do
3771 for ac_exec_ext in '' $ac_executable_extensions; do
3772 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3773 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3774 # Check for GNU ac_path_EGREP and select it if it is found.
3775 # Check for GNU $ac_path_EGREP
3776case `"$ac_path_EGREP" --version 2>&1` in
3777*GNU*)
3778 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3779*)
3780 ac_count=0
3781 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3782 while :
3783 do
3784 cat "conftest.in" "conftest.in" >"conftest.tmp"
3785 mv "conftest.tmp" "conftest.in"
3786 cp "conftest.in" "conftest.nl"
3787 echo 'EGREP' >> "conftest.nl"
3788 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3789 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3790 ac_count=`expr $ac_count + 1`
3791 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3792 # Best one so far, save it but keep looking for a better one
3793 ac_cv_path_EGREP="$ac_path_EGREP"
3794 ac_path_EGREP_max=$ac_count
3795 fi
3796 # 10*(2^10) chars as input seems more than enough
3797 test $ac_count -gt 10 && break
3798 done
3799 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3800esac
3801
3802
3803 $ac_path_EGREP_found && break 3
3804 done
3805done
3806
3807done
3808IFS=$as_save_IFS
3809
3810
3811fi
3812
3813EGREP="$ac_cv_path_EGREP"
3814if test -z "$EGREP"; then
3815 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3816echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3817 { (exit 1); exit 1; }; }
3818fi
3819
3820else
3821 ac_cv_path_EGREP=$EGREP
3822fi
3823
3824
3825 fi
3826fi
3827{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3828echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3829 EGREP="$ac_cv_path_EGREP"
Skip Montanaro6dead952003-09-25 14:50:04 +00003830
3831
Martin v. Löwis11437992002-04-12 09:54:03 +00003832
Martin v. Löwiseba40652007-08-30 20:10:57 +00003833{ echo "$as_me:$LINENO: checking for AIX" >&5
3834echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00003835cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00003836/* confdefs.h. */
3837_ACEOF
3838cat confdefs.h >>conftest.$ac_ext
3839cat >>conftest.$ac_ext <<_ACEOF
3840/* end confdefs.h. */
Martin v. Löwis1d5ecb72001-08-09 10:29:44 +00003841#ifdef _AIX
3842 yes
3843#endif
3844
Martin v. Löwis11437992002-04-12 09:54:03 +00003845_ACEOF
Martin v. Löwis1d5ecb72001-08-09 10:29:44 +00003846if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Skip Montanaro6dead952003-09-25 14:50:04 +00003847 $EGREP "yes" >/dev/null 2>&1; then
Martin v. Löwiseba40652007-08-30 20:10:57 +00003848 { echo "$as_me:$LINENO: result: yes" >&5
3849echo "${ECHO_T}yes" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00003850cat >>confdefs.h <<\_ACEOF
Martin v. Löwis1d5ecb72001-08-09 10:29:44 +00003851#define _ALL_SOURCE 1
Martin v. Löwis11437992002-04-12 09:54:03 +00003852_ACEOF
Martin v. Löwis1d5ecb72001-08-09 10:29:44 +00003853
3854else
Martin v. Löwiseba40652007-08-30 20:10:57 +00003855 { echo "$as_me:$LINENO: result: no" >&5
3856echo "${ECHO_T}no" >&6; }
Martin v. Löwis1d5ecb72001-08-09 10:29:44 +00003857fi
3858rm -f conftest*
3859
Michael W. Hudson54241132001-12-07 15:38:26 +00003860
Martin v. Löwis1d5ecb72001-08-09 10:29:44 +00003861
Martin v. Löwis779ffc02002-12-02 22:17:01 +00003862# Check for unsupported systems
3863case $ac_sys_system/$ac_sys_release in
Brett Cannon19fab762007-06-02 03:02:29 +00003864atheos*|Linux*/1*)
Martin v. Löwis779ffc02002-12-02 22:17:01 +00003865 echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported.
3866 echo See README for details.
3867 exit 1;;
3868esac
3869
Michael W. Hudson54241132001-12-07 15:38:26 +00003870
Martin v. Löwiseba40652007-08-30 20:10:57 +00003871{ echo "$as_me:$LINENO: checking for --with-suffix" >&5
3872echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6; }
Michael W. Hudson54241132001-12-07 15:38:26 +00003873
Martin v. Löwiseba40652007-08-30 20:10:57 +00003874# Check whether --with-suffix was given.
Neil Schemenauerdfb38e42001-01-27 06:57:08 +00003875if test "${with_suffix+set}" = set; then
Martin v. Löwiseba40652007-08-30 20:10:57 +00003876 withval=$with_suffix;
Neil Schemenauerdfb38e42001-01-27 06:57:08 +00003877 case $withval in
3878 no) EXEEXT=;;
3879 yes) EXEEXT=.exe;;
3880 *) EXEEXT=$withval;;
3881 esac
Martin v. Löwiseba40652007-08-30 20:10:57 +00003882fi
3883
3884{ echo "$as_me:$LINENO: result: $EXEEXT" >&5
3885echo "${ECHO_T}$EXEEXT" >&6; }
Jack Jansen1999ef42001-12-06 21:47:20 +00003886
Jack Jansen9a66b6d2001-08-08 13:56:14 +00003887# Test whether we're running on a non-case-sensitive system, in which
3888# case we give a warning if no ext is given
Jack Jansen1999ef42001-12-06 21:47:20 +00003889
Martin v. Löwiseba40652007-08-30 20:10:57 +00003890{ echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3891echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6; }
Jack Jansen3c2c4332002-11-06 13:33:32 +00003892if test ! -d CaseSensitiveTestDir; then
3893mkdir CaseSensitiveTestDir
3894fi
3895
3896if test -d casesensitivetestdir
Jack Jansen9a66b6d2001-08-08 13:56:14 +00003897then
Martin v. Löwiseba40652007-08-30 20:10:57 +00003898 { echo "$as_me:$LINENO: result: yes" >&5
3899echo "${ECHO_T}yes" >&6; }
Jack Jansen1999ef42001-12-06 21:47:20 +00003900 BUILDEXEEXT=.exe
3901else
Martin v. Löwiseba40652007-08-30 20:10:57 +00003902 { echo "$as_me:$LINENO: result: no" >&5
3903echo "${ECHO_T}no" >&6; }
Jack Jansendd19cf82001-12-06 22:36:17 +00003904 BUILDEXEEXT=$EXEEXT
Jack Jansen9a66b6d2001-08-08 13:56:14 +00003905fi
Jack Jansen3c2c4332002-11-06 13:33:32 +00003906rmdir CaseSensitiveTestDir
Guido van Rossumff555e32000-09-22 15:38:21 +00003907
Guido van Rossumdd997f71998-10-07 19:58:26 +00003908case $MACHDEP in
3909bsdos*)
3910 case $CC in
3911 gcc) CC="$CC -D_HAVE_BSDI";;
3912 esac;;
3913esac
3914
Guido van Rossum24b1e751997-08-21 02:29:16 +00003915case $ac_sys_system in
3916hp*|HP*)
3917 case $CC in
Guido van Rossumcd5ff9f2000-09-22 16:15:54 +00003918 cc|*/cc) CC="$CC -Ae";;
Guido van Rossum24b1e751997-08-21 02:29:16 +00003919 esac;;
Trent Mick635f6fb2000-08-23 21:33:05 +00003920Monterey*)
3921 case $CC in
3922 cc) CC="$CC -Wl,-Bexport";;
3923 esac;;
Martin v. Löwisa30c1002001-03-06 12:10:20 +00003924SunOS*)
3925 # Some functions have a prototype only with that define, e.g. confstr
Martin v. Löwis11437992002-04-12 09:54:03 +00003926
3927cat >>confdefs.h <<\_ACEOF
Martin v. Löwisa30c1002001-03-06 12:10:20 +00003928#define __EXTENSIONS__ 1
Martin v. Löwis11437992002-04-12 09:54:03 +00003929_ACEOF
Martin v. Löwisa30c1002001-03-06 12:10:20 +00003930
3931 ;;
Guido van Rossum24b1e751997-08-21 02:29:16 +00003932esac
3933
Michael W. Hudson54241132001-12-07 15:38:26 +00003934
3935
Martin v. Löwiseba40652007-08-30 20:10:57 +00003936{ echo "$as_me:$LINENO: checking LIBRARY" >&5
3937echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6; }
Neil Schemenauer3ecf0aa2001-01-26 16:15:20 +00003938if test -z "$LIBRARY"
3939then
3940 LIBRARY='libpython$(VERSION).a'
3941fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00003942{ echo "$as_me:$LINENO: result: $LIBRARY" >&5
3943echo "${ECHO_T}$LIBRARY" >&6; }
Neil Schemenauer3ecf0aa2001-01-26 16:15:20 +00003944
Guido van Rossum54ecc3d1999-01-27 17:53:11 +00003945# LDLIBRARY is the name of the library to link against (as opposed to the
Jack Jansene578a632001-08-15 01:27:14 +00003946# name of the library into which to insert object files). BLDLIBRARY is also
3947# the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3948# is blank as the main program is not linked directly against LDLIBRARY.
3949# LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3950# systems without shared libraries, LDLIBRARY is the same as LIBRARY
3951# (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3952# DLLLIBRARY is the shared (i.e., DLL) library.
Martin v. Löwis11437992002-04-12 09:54:03 +00003953#
Martin v. Löwis1142de32002-03-29 16:28:31 +00003954# RUNSHARED is used to run shared python without installed libraries
3955#
3956# INSTSONAME is the name of the shared library that will be use to install
3957# on the system - some systems like version suffix, others don't
3958
3959
Michael W. Hudson54241132001-12-07 15:38:26 +00003960
3961
3962
Guido van Rossum54ecc3d1999-01-27 17:53:11 +00003963
Neil Schemenauer3ecf0aa2001-01-26 16:15:20 +00003964LDLIBRARY="$LIBRARY"
Jack Jansene578a632001-08-15 01:27:14 +00003965BLDLIBRARY='$(LDLIBRARY)'
Martin v. Löwis09bdf722002-05-08 08:51:29 +00003966INSTSONAME='$(LDLIBRARY)'
Guido van Rossumca563f22001-01-23 01:52:44 +00003967DLLLIBRARY=''
Jack Jansene578a632001-08-15 01:27:14 +00003968LDLIBRARYDIR=''
Martin v. Löwis1142de32002-03-29 16:28:31 +00003969RUNSHARED=''
Guido van Rossum54ecc3d1999-01-27 17:53:11 +00003970
Guido van Rossum76c5fe21997-08-14 19:45:07 +00003971# LINKCC is the command that links the python executable -- default is $(CC).
Martin v. Löwisb7da67a2001-10-18 15:35:38 +00003972# If CXX is set, and if it is needed to link a main function that was
3973# compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3974# python might then depend on the C++ runtime
Martin v. Löwis11437992002-04-12 09:54:03 +00003975# This is altered for AIX in order to build the export list before
Guido van Rossumec95c7b1998-08-04 17:59:56 +00003976# linking.
Guido van Rossum76c5fe21997-08-14 19:45:07 +00003977
Martin v. Löwiseba40652007-08-30 20:10:57 +00003978{ echo "$as_me:$LINENO: checking LINKCC" >&5
3979echo $ECHO_N "checking LINKCC... $ECHO_C" >&6; }
Guido van Rossum76c5fe21997-08-14 19:45:07 +00003980if test -z "$LINKCC"
3981then
Martin v. Löwis0f48d982006-04-14 14:34:26 +00003982 LINKCC='$(PURIFY) $(MAINCC)'
Guido van Rossum76c5fe21997-08-14 19:45:07 +00003983 case $ac_sys_system in
3984 AIX*)
Neal Norwitz0b27ff92003-03-31 15:53:49 +00003985 exp_extra="\"\""
3986 if test $ac_sys_release -ge 5 -o \
3987 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3988 exp_extra="."
3989 fi
3990 LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
Trent Mick635f6fb2000-08-23 21:33:05 +00003991 Monterey64*)
Martin v. Löwis4e732dc2002-03-19 15:15:32 +00003992 LINKCC="$LINKCC -L/usr/lib/ia64l64";;
Martin v. Löwis8c255e42008-05-23 15:06:50 +00003993 QNX*)
3994 # qcc must be used because the other compilers do not
3995 # support -N.
3996 LINKCC=qcc;;
Guido van Rossum76c5fe21997-08-14 19:45:07 +00003997 esac
3998fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00003999{ echo "$as_me:$LINENO: result: $LINKCC" >&5
4000echo "${ECHO_T}$LINKCC" >&6; }
Guido van Rossum76c5fe21997-08-14 19:45:07 +00004001
Tarek Ziadée2be83d2009-05-09 08:28:53 +00004002# GNULD is set to "yes" if the GNU linker is used. If this goes wrong
4003# make sure we default having it set to "no": this is used by
4004# distutils.unixccompiler to know if it should add --enable-new-dtags
4005# to linker command lines, and failing to detect GNU ld simply results
4006# in the same bahaviour as before.
4007
4008{ echo "$as_me:$LINENO: checking for GNU ld" >&5
4009echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4010ac_prog=ld
4011if test "$GCC" = yes; then
4012 ac_prog=`$CC -print-prog-name=ld`
4013fi
4014case `"$ac_prog" -V 2>&1 < /dev/null` in
4015 *GNU*)
4016 GNULD=yes;;
4017 *)
4018 GNULD=no;;
4019esac
4020{ echo "$as_me:$LINENO: result: $GNULD" >&5
4021echo "${ECHO_T}$GNULD" >&6; }
4022
Martin v. Löwiseba40652007-08-30 20:10:57 +00004023{ echo "$as_me:$LINENO: checking for --enable-shared" >&5
4024echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6; }
4025# Check whether --enable-shared was given.
Martin v. Löwis1142de32002-03-29 16:28:31 +00004026if test "${enable_shared+set}" = set; then
Martin v. Löwiseba40652007-08-30 20:10:57 +00004027 enableval=$enable_shared;
4028fi
Guido van Rossum54ecc3d1999-01-27 17:53:11 +00004029
Martin v. Löwis1142de32002-03-29 16:28:31 +00004030
4031if test -z "$enable_shared"
Martin v. Löwis11437992002-04-12 09:54:03 +00004032then
Martin v. Löwisb51033d2002-05-03 05:53:15 +00004033 case $ac_sys_system in
Martin v. Löwisf90ae202002-06-11 06:22:31 +00004034 CYGWIN* | atheos*)
Martin v. Löwisb51033d2002-05-03 05:53:15 +00004035 enable_shared="yes";;
4036 *)
4037 enable_shared="no";;
4038 esac
Martin v. Löwis1142de32002-03-29 16:28:31 +00004039fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00004040{ echo "$as_me:$LINENO: result: $enable_shared" >&5
4041echo "${ECHO_T}$enable_shared" >&6; }
Martin v. Löwis1142de32002-03-29 16:28:31 +00004042
Martin v. Löwiseba40652007-08-30 20:10:57 +00004043{ echo "$as_me:$LINENO: checking for --enable-profiling" >&5
4044echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6; }
4045# Check whether --enable-profiling was given.
Skip Montanaro56f6a4f2004-06-18 02:47:22 +00004046if test "${enable_profiling+set}" = set; then
Martin v. Löwiseba40652007-08-30 20:10:57 +00004047 enableval=$enable_profiling; ac_save_cc="$CC"
Skip Montanaro56f6a4f2004-06-18 02:47:22 +00004048 CC="$CC -pg"
4049 if test "$cross_compiling" = yes; then
4050 ac_enable_profiling="no"
4051else
4052 cat >conftest.$ac_ext <<_ACEOF
4053/* confdefs.h. */
4054_ACEOF
4055cat confdefs.h >>conftest.$ac_ext
4056cat >>conftest.$ac_ext <<_ACEOF
4057/* end confdefs.h. */
4058int main() { return 0; }
4059_ACEOF
4060rm -f conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +00004061if { (ac_try="$ac_link"
4062case "(($ac_try" in
4063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4064 *) ac_try_echo=$ac_try;;
4065esac
4066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4067 (eval "$ac_link") 2>&5
Skip Montanaro56f6a4f2004-06-18 02:47:22 +00004068 ac_status=$?
4069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Martin v. Löwiseba40652007-08-30 20:10:57 +00004071 { (case "(($ac_try" in
4072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4073 *) ac_try_echo=$ac_try;;
4074esac
4075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4076 (eval "$ac_try") 2>&5
Skip Montanaro56f6a4f2004-06-18 02:47:22 +00004077 ac_status=$?
4078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079 (exit $ac_status); }; }; then
4080 ac_enable_profiling="yes"
4081else
4082 echo "$as_me: program exited with status $ac_status" >&5
4083echo "$as_me: failed program was:" >&5
4084sed 's/^/| /' conftest.$ac_ext >&5
4085
4086( exit $ac_status )
4087ac_enable_profiling="no"
4088fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00004089rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Skip Montanaro56f6a4f2004-06-18 02:47:22 +00004090fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00004091
4092
Skip Montanaro56f6a4f2004-06-18 02:47:22 +00004093 CC="$ac_save_cc"
Martin v. Löwiseba40652007-08-30 20:10:57 +00004094fi
4095
4096{ echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
4097echo "${ECHO_T}$ac_enable_profiling" >&6; }
Skip Montanaro56f6a4f2004-06-18 02:47:22 +00004098
4099case "$ac_enable_profiling" in
4100 "yes")
4101 BASECFLAGS="-pg $BASECFLAGS"
4102 LDFLAGS="-pg $LDFLAGS"
4103 ;;
4104esac
Martin v. Löwis1142de32002-03-29 16:28:31 +00004105
Martin v. Löwiseba40652007-08-30 20:10:57 +00004106{ echo "$as_me:$LINENO: checking LDLIBRARY" >&5
4107echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6; }
Jack Jansene578a632001-08-15 01:27:14 +00004108
Guido van Rossumb8552162001-09-05 14:58:11 +00004109# MacOSX framework builds need more magic. LDLIBRARY is the dynamic
4110# library that we build, but we do not want to link against it (we
4111# will find it with a -framework option). For this reason there is an
4112# extra variable BLDLIBRARY against which Python and the extension
4113# modules are linked, BLDLIBRARY. This is normally the same as
4114# LDLIBRARY, but empty for MacOSX framework builds.
Jack Jansene578a632001-08-15 01:27:14 +00004115if test "$enable_framework"
4116then
4117 LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
Jack Jansen66b84832003-07-04 12:14:39 +00004118 RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH"
Jack Jansene578a632001-08-15 01:27:14 +00004119 BLDLIBRARY=''
4120else
4121 BLDLIBRARY='$(LDLIBRARY)'
Martin v. Löwis11437992002-04-12 09:54:03 +00004122fi
Jack Jansene578a632001-08-15 01:27:14 +00004123
Martin v. Löwis1142de32002-03-29 16:28:31 +00004124# Other platforms follow
4125if test $enable_shared = "yes"; then
Mark Hammond8235ea12002-07-19 06:55:41 +00004126
4127cat >>confdefs.h <<\_ACEOF
4128#define Py_ENABLE_SHARED 1
4129_ACEOF
4130
Martin v. Löwis1142de32002-03-29 16:28:31 +00004131 case $ac_sys_system in
4132 BeOS*)
4133 LDLIBRARY='libpython$(VERSION).so'
4134 ;;
4135 CYGWIN*)
4136 LDLIBRARY='libpython$(VERSION).dll.a'
4137 DLLLIBRARY='libpython$(VERSION).dll'
4138 ;;
4139 SunOS*)
4140 LDLIBRARY='libpython$(VERSION).so'
Martin v. Löwisd141a8c2003-06-14 15:20:28 +00004141 BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
Martin v. Löwisfc9b75f2003-08-09 09:06:52 +00004142 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
Martin v. Löwis2389c412003-10-31 15:42:07 +00004143 INSTSONAME="$LDLIBRARY".$SOVERSION
Martin v. Löwis1142de32002-03-29 16:28:31 +00004144 ;;
Martin v. Löwis86d66262006-02-17 08:40:11 +00004145 Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*)
Martin v. Löwis1142de32002-03-29 16:28:31 +00004146 LDLIBRARY='libpython$(VERSION).so'
4147 BLDLIBRARY='-L. -lpython$(VERSION)'
Martin v. Löwisfc9b75f2003-08-09 09:06:52 +00004148 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
Hye-Shik Chang33761492004-10-26 09:53:46 +00004149 case $ac_sys_system in
4150 FreeBSD*)
4151 SOVERSION=`echo $SOVERSION|cut -d "." -f 1`
4152 ;;
4153 esac
Martin v. Löwis1142de32002-03-29 16:28:31 +00004154 INSTSONAME="$LDLIBRARY".$SOVERSION
4155 ;;
4156 hp*|HP*)
Neal Norwitz58e28882006-05-19 07:00:58 +00004157 case `uname -m` in
4158 ia64)
4159 LDLIBRARY='libpython$(VERSION).so'
4160 ;;
4161 *)
4162 LDLIBRARY='libpython$(VERSION).sl'
4163 ;;
4164 esac
Martin v. Löwis1142de32002-03-29 16:28:31 +00004165 BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
Martin v. Löwisfc9b75f2003-08-09 09:06:52 +00004166 RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH}
Martin v. Löwis1142de32002-03-29 16:28:31 +00004167 ;;
4168 OSF*)
4169 LDLIBRARY='libpython$(VERSION).so'
Neal Norwitz671b9e32006-01-09 07:07:12 +00004170 BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
Martin v. Löwisfc9b75f2003-08-09 09:06:52 +00004171 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
Martin v. Löwis1142de32002-03-29 16:28:31 +00004172 ;;
Martin v. Löwisf90ae202002-06-11 06:22:31 +00004173 atheos*)
4174 LDLIBRARY='libpython$(VERSION).so'
4175 BLDLIBRARY='-L. -lpython$(VERSION)'
4176 RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
4177 ;;
Ronald Oussoren79f90492009-01-02 10:44:46 +00004178 Darwin*)
4179 LDLIBRARY='libpython$(VERSION).dylib'
4180 BLDLIBRARY='-L. -lpython$(VERSION)'
4181 RUNSHARED='DYLD_LIBRARY_PATH=`pwd`:${DYLD_LIBRARY_PATH}'
4182 ;;
4183
Martin v. Löwis1142de32002-03-29 16:28:31 +00004184 esac
Jason Tishler30765592003-09-04 11:04:06 +00004185else # shared is disabled
4186 case $ac_sys_system in
4187 CYGWIN*)
4188 BLDLIBRARY='$(LIBRARY)'
4189 LDLIBRARY='libpython$(VERSION).dll.a'
4190 ;;
4191 esac
Martin v. Löwis1142de32002-03-29 16:28:31 +00004192fi
4193
Martin v. Löwiseba40652007-08-30 20:10:57 +00004194{ echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
4195echo "${ECHO_T}$LDLIBRARY" >&6; }
Guido van Rossum54ecc3d1999-01-27 17:53:11 +00004196
Martin v. Löwis11437992002-04-12 09:54:03 +00004197if test -n "$ac_tool_prefix"; then
4198 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4199set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Martin v. Löwiseba40652007-08-30 20:10:57 +00004200{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4201echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00004202if test "${ac_cv_prog_RANLIB+set}" = set; then
4203 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004204else
4205 if test -n "$RANLIB"; then
4206 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4207else
Martin v. Löwis11437992002-04-12 09:54:03 +00004208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4209for as_dir in $PATH
4210do
4211 IFS=$as_save_IFS
4212 test -z "$as_dir" && as_dir=.
4213 for ac_exec_ext in '' $ac_executable_extensions; do
Martin v. Löwiseba40652007-08-30 20:10:57 +00004214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Martin v. Löwis11437992002-04-12 09:54:03 +00004215 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4217 break 2
4218 fi
4219done
4220done
Martin v. Löwiseba40652007-08-30 20:10:57 +00004221IFS=$as_save_IFS
Martin v. Löwis11437992002-04-12 09:54:03 +00004222
Guido van Rossum627b2d71993-12-24 10:39:16 +00004223fi
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004224fi
Martin v. Löwis11437992002-04-12 09:54:03 +00004225RANLIB=$ac_cv_prog_RANLIB
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004226if test -n "$RANLIB"; then
Martin v. Löwiseba40652007-08-30 20:10:57 +00004227 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4228echo "${ECHO_T}$RANLIB" >&6; }
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004229else
Martin v. Löwiseba40652007-08-30 20:10:57 +00004230 { echo "$as_me:$LINENO: result: no" >&5
4231echo "${ECHO_T}no" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00004232fi
4233
Martin v. Löwiseba40652007-08-30 20:10:57 +00004234
Martin v. Löwis11437992002-04-12 09:54:03 +00004235fi
4236if test -z "$ac_cv_prog_RANLIB"; then
4237 ac_ct_RANLIB=$RANLIB
4238 # Extract the first word of "ranlib", so it can be a program name with args.
4239set dummy ranlib; ac_word=$2
Martin v. Löwiseba40652007-08-30 20:10:57 +00004240{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4241echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00004242if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4243 echo $ECHO_N "(cached) $ECHO_C" >&6
4244else
4245 if test -n "$ac_ct_RANLIB"; then
4246 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4247else
4248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4249for as_dir in $PATH
4250do
4251 IFS=$as_save_IFS
4252 test -z "$as_dir" && as_dir=.
4253 for ac_exec_ext in '' $ac_executable_extensions; do
Martin v. Löwiseba40652007-08-30 20:10:57 +00004254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Martin v. Löwis11437992002-04-12 09:54:03 +00004255 ac_cv_prog_ac_ct_RANLIB="ranlib"
4256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4257 break 2
4258 fi
4259done
4260done
Martin v. Löwiseba40652007-08-30 20:10:57 +00004261IFS=$as_save_IFS
Martin v. Löwis11437992002-04-12 09:54:03 +00004262
Martin v. Löwis11437992002-04-12 09:54:03 +00004263fi
4264fi
4265ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4266if test -n "$ac_ct_RANLIB"; then
Martin v. Löwiseba40652007-08-30 20:10:57 +00004267 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4268echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00004269else
Martin v. Löwiseba40652007-08-30 20:10:57 +00004270 { echo "$as_me:$LINENO: result: no" >&5
4271echo "${ECHO_T}no" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00004272fi
4273
Martin v. Löwiseba40652007-08-30 20:10:57 +00004274 if test "x$ac_ct_RANLIB" = x; then
4275 RANLIB=":"
4276 else
4277 case $cross_compiling:$ac_tool_warned in
4278yes:)
4279{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4280whose name does not start with the host triplet. If you think this
4281configuration is useful to you, please write to autoconf@gnu.org." >&5
4282echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4283whose name does not start with the host triplet. If you think this
4284configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4285ac_tool_warned=yes ;;
4286esac
4287 RANLIB=$ac_ct_RANLIB
4288 fi
Martin v. Löwis11437992002-04-12 09:54:03 +00004289else
4290 RANLIB="$ac_cv_prog_RANLIB"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004291fi
Guido van Rossum627b2d71993-12-24 10:39:16 +00004292
4293
Guido van Rossum7f43da71994-08-01 12:15:30 +00004294for ac_prog in ar aal
4295do
Martin v. Löwis11437992002-04-12 09:54:03 +00004296 # Extract the first word of "$ac_prog", so it can be a program name with args.
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004297set dummy $ac_prog; ac_word=$2
Martin v. Löwiseba40652007-08-30 20:10:57 +00004298{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4299echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00004300if test "${ac_cv_prog_AR+set}" = set; then
4301 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004302else
4303 if test -n "$AR"; then
4304 ac_cv_prog_AR="$AR" # Let the user override the test.
4305else
Martin v. Löwis11437992002-04-12 09:54:03 +00004306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4307for as_dir in $PATH
4308do
4309 IFS=$as_save_IFS
4310 test -z "$as_dir" && as_dir=.
4311 for ac_exec_ext in '' $ac_executable_extensions; do
Martin v. Löwiseba40652007-08-30 20:10:57 +00004312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Martin v. Löwis11437992002-04-12 09:54:03 +00004313 ac_cv_prog_AR="$ac_prog"
4314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4315 break 2
4316 fi
4317done
4318done
Martin v. Löwiseba40652007-08-30 20:10:57 +00004319IFS=$as_save_IFS
Martin v. Löwis11437992002-04-12 09:54:03 +00004320
Guido van Rossum7f43da71994-08-01 12:15:30 +00004321fi
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004322fi
Martin v. Löwis11437992002-04-12 09:54:03 +00004323AR=$ac_cv_prog_AR
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004324if test -n "$AR"; then
Martin v. Löwiseba40652007-08-30 20:10:57 +00004325 { echo "$as_me:$LINENO: result: $AR" >&5
4326echo "${ECHO_T}$AR" >&6; }
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004327else
Martin v. Löwiseba40652007-08-30 20:10:57 +00004328 { echo "$as_me:$LINENO: result: no" >&5
4329echo "${ECHO_T}no" >&6; }
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004330fi
Guido van Rossum7f43da71994-08-01 12:15:30 +00004331
Martin v. Löwiseba40652007-08-30 20:10:57 +00004332
Martin v. Löwis11437992002-04-12 09:54:03 +00004333 test -n "$AR" && break
Guido van Rossum7f43da71994-08-01 12:15:30 +00004334done
4335test -n "$AR" || AR="ar"
4336
Michael W. Hudson54241132001-12-07 15:38:26 +00004337
Tarek Ziadé3a6e8862009-05-07 22:19:27 +00004338# tweak ARFLAGS only if the user didn't set it on the command line
4339
4340if test -z "$ARFLAGS"
4341then
4342 ARFLAGS="rc"
4343fi
4344
Martin v. Löwisdea59e52006-01-05 10:00:36 +00004345
Martin v. Löwisc5bf5a02006-01-05 10:33:59 +00004346# Extract the first word of "svnversion", so it can be a program name with args.
4347set dummy svnversion; ac_word=$2
Martin v. Löwiseba40652007-08-30 20:10:57 +00004348{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4349echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Martin v. Löwisdea59e52006-01-05 10:00:36 +00004350if test "${ac_cv_prog_SVNVERSION+set}" = set; then
4351 echo $ECHO_N "(cached) $ECHO_C" >&6
4352else
4353 if test -n "$SVNVERSION"; then
4354 ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test.
4355else
4356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4357for as_dir in $PATH
4358do
4359 IFS=$as_save_IFS
4360 test -z "$as_dir" && as_dir=.
4361 for ac_exec_ext in '' $ac_executable_extensions; do
Martin v. Löwiseba40652007-08-30 20:10:57 +00004362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Martin v. Löwisc5bf5a02006-01-05 10:33:59 +00004363 ac_cv_prog_SVNVERSION="found"
Martin v. Löwisdea59e52006-01-05 10:00:36 +00004364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4365 break 2
4366 fi
4367done
4368done
Martin v. Löwiseba40652007-08-30 20:10:57 +00004369IFS=$as_save_IFS
Martin v. Löwisdea59e52006-01-05 10:00:36 +00004370
Martin v. Löwisff600232006-04-03 19:12:32 +00004371 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION="not-found"
Martin v. Löwisdea59e52006-01-05 10:00:36 +00004372fi
4373fi
4374SVNVERSION=$ac_cv_prog_SVNVERSION
4375if test -n "$SVNVERSION"; then
Martin v. Löwiseba40652007-08-30 20:10:57 +00004376 { echo "$as_me:$LINENO: result: $SVNVERSION" >&5
4377echo "${ECHO_T}$SVNVERSION" >&6; }
Martin v. Löwisdea59e52006-01-05 10:00:36 +00004378else
Martin v. Löwiseba40652007-08-30 20:10:57 +00004379 { echo "$as_me:$LINENO: result: no" >&5
4380echo "${ECHO_T}no" >&6; }
Martin v. Löwisdea59e52006-01-05 10:00:36 +00004381fi
4382
Martin v. Löwiseba40652007-08-30 20:10:57 +00004383
Martin v. Löwisc5bf5a02006-01-05 10:33:59 +00004384if test $SVNVERSION = found
4385then
4386 SVNVERSION="svnversion \$(srcdir)"
4387else
4388 SVNVERSION="echo exported"
4389fi
Martin v. Löwisdea59e52006-01-05 10:00:36 +00004390
Neil Schemenauera42c8272001-03-31 00:01:55 +00004391case $MACHDEP in
Neil Schemenaueraf5567f2001-10-21 22:32:04 +00004392bsdos*|hp*|HP*)
4393 # install -d does not work on BSDI or HP-UX
Neil Schemenauera42c8272001-03-31 00:01:55 +00004394 if test -z "$INSTALL"
4395 then
4396 INSTALL="${srcdir}/install-sh -c"
4397 fi
4398esac
Neil Schemenauerd32c2492001-01-24 17:25:28 +00004399ac_aux_dir=
Martin v. Löwiseba40652007-08-30 20:10:57 +00004400for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4401 if test -f "$ac_dir/install-sh"; then
Neil Schemenauerd32c2492001-01-24 17:25:28 +00004402 ac_aux_dir=$ac_dir
4403 ac_install_sh="$ac_aux_dir/install-sh -c"
4404 break
Martin v. Löwiseba40652007-08-30 20:10:57 +00004405 elif test -f "$ac_dir/install.sh"; then
Neil Schemenauerd32c2492001-01-24 17:25:28 +00004406 ac_aux_dir=$ac_dir
4407 ac_install_sh="$ac_aux_dir/install.sh -c"
4408 break
Martin v. Löwiseba40652007-08-30 20:10:57 +00004409 elif test -f "$ac_dir/shtool"; then
Martin v. Löwis11437992002-04-12 09:54:03 +00004410 ac_aux_dir=$ac_dir
4411 ac_install_sh="$ac_aux_dir/shtool install -c"
4412 break
Neil Schemenauerd32c2492001-01-24 17:25:28 +00004413 fi
4414done
4415if test -z "$ac_aux_dir"; then
Martin v. Löwiseba40652007-08-30 20:10:57 +00004416 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4417echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
Martin v. Löwis11437992002-04-12 09:54:03 +00004418 { (exit 1); exit 1; }; }
Guido van Rossumb1ba03f1994-08-19 15:34:50 +00004419fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00004420
4421# These three variables are undocumented and unsupported,
4422# and are intended to be withdrawn in a future Autoconf release.
4423# They can cause serious problems if a builder's source tree is in a directory
4424# whose full name contains unusual characters.
4425ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4426ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4427ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4428
Neil Schemenauerd32c2492001-01-24 17:25:28 +00004429
4430# Find a good install program. We prefer a C program (faster),
4431# so one script is as good as another. But avoid the broken or
4432# incompatible versions:
4433# SysV /etc/install, /usr/sbin/install
4434# SunOS /usr/etc/install
4435# IRIX /sbin/install
4436# AIX /bin/install
Martin v. Löwis11437992002-04-12 09:54:03 +00004437# AmigaOS /C/install, which installs bootblocks on floppy discs
Neil Schemenauerd32c2492001-01-24 17:25:28 +00004438# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4439# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4440# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Skip Montanarof0d5f792004-08-15 14:08:23 +00004441# OS/2's system install, which has a completely different semantic
Neil Schemenauerd32c2492001-01-24 17:25:28 +00004442# ./install, which can be erroneously created by make from ./install.sh.
Martin v. Löwiseba40652007-08-30 20:10:57 +00004443{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4444echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Neil Schemenauerd32c2492001-01-24 17:25:28 +00004445if test -z "$INSTALL"; then
Martin v. Löwis11437992002-04-12 09:54:03 +00004446if test "${ac_cv_path_install+set}" = set; then
4447 echo $ECHO_N "(cached) $ECHO_C" >&6
Neil Schemenauerd32c2492001-01-24 17:25:28 +00004448else
Martin v. Löwis11437992002-04-12 09:54:03 +00004449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4450for as_dir in $PATH
4451do
4452 IFS=$as_save_IFS
4453 test -z "$as_dir" && as_dir=.
4454 # Account for people who put trailing slashes in PATH elements.
4455case $as_dir/ in
4456 ./ | .// | /cC/* | \
4457 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Skip Montanarof0d5f792004-08-15 14:08:23 +00004458 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Martin v. Löwis11437992002-04-12 09:54:03 +00004459 /usr/ucb/* ) ;;
4460 *)
4461 # OSF1 and SCO ODT 3.0 have their own names for install.
4462 # Don't use installbsd from OSF since it installs stuff as root
4463 # by default.
4464 for ac_prog in ginstall scoinst install; do
4465 for ac_exec_ext in '' $ac_executable_extensions; do
Martin v. Löwiseba40652007-08-30 20:10:57 +00004466 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
Skip Montanarof0d5f792004-08-15 14:08:23 +00004467 if test $ac_prog = install &&
4468 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4469 # AIX install. It has an incompatible calling convention.
4470 :
4471 elif test $ac_prog = install &&
4472 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4473 # program-specific install script used by HP pwplus--don't use.
4474 :
4475 else
4476 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4477 break 3
4478 fi
4479 fi
Neil Schemenauerd32c2492001-01-24 17:25:28 +00004480 done
Martin v. Löwis11437992002-04-12 09:54:03 +00004481 done
4482 ;;
4483esac
4484done
Martin v. Löwiseba40652007-08-30 20:10:57 +00004485IFS=$as_save_IFS
Martin v. Löwis11437992002-04-12 09:54:03 +00004486
Neil Schemenauerd32c2492001-01-24 17:25:28 +00004487
4488fi
4489 if test "${ac_cv_path_install+set}" = set; then
Martin v. Löwis11437992002-04-12 09:54:03 +00004490 INSTALL=$ac_cv_path_install
Neil Schemenauerd32c2492001-01-24 17:25:28 +00004491 else
Martin v. Löwiseba40652007-08-30 20:10:57 +00004492 # As a last resort, use the slow shell script. Don't cache a
4493 # value for INSTALL within a source directory, because that will
Neil Schemenauerd32c2492001-01-24 17:25:28 +00004494 # break other packages using the cache if that directory is
Martin v. Löwiseba40652007-08-30 20:10:57 +00004495 # removed, or if the value is a relative name.
Martin v. Löwis11437992002-04-12 09:54:03 +00004496 INSTALL=$ac_install_sh
Neil Schemenauerd32c2492001-01-24 17:25:28 +00004497 fi
4498fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00004499{ echo "$as_me:$LINENO: result: $INSTALL" >&5
4500echo "${ECHO_T}$INSTALL" >&6; }
Neil Schemenauerd32c2492001-01-24 17:25:28 +00004501
4502# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4503# It thinks the first close brace ends the variable substitution.
4504test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4505
Martin v. Löwis11437992002-04-12 09:54:03 +00004506test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Neil Schemenauerd32c2492001-01-24 17:25:28 +00004507
4508test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4509
Michael W. Hudson54241132001-12-07 15:38:26 +00004510
Guido van Rossumec95c7b1998-08-04 17:59:56 +00004511# Not every filesystem supports hard links
4512
4513if test -z "$LN" ; then
4514 case $ac_sys_system in
4515 BeOS*) LN="ln -s";;
Guido van Rossumaef734b2001-01-10 21:09:12 +00004516 CYGWIN*) LN="ln -s";;
Martin v. Löwisf90ae202002-06-11 06:22:31 +00004517 atheos*) LN="ln -s";;
Guido van Rossumec95c7b1998-08-04 17:59:56 +00004518 *) LN=ln;;
4519 esac
4520fi
4521
Fred Drake109d9862001-07-11 06:27:56 +00004522# Check for --with-pydebug
Martin v. Löwiseba40652007-08-30 20:10:57 +00004523{ echo "$as_me:$LINENO: checking for --with-pydebug" >&5
4524echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00004525
Martin v. Löwiseba40652007-08-30 20:10:57 +00004526# Check whether --with-pydebug was given.
Fred Drake109d9862001-07-11 06:27:56 +00004527if test "${with_pydebug+set}" = set; then
Martin v. Löwiseba40652007-08-30 20:10:57 +00004528 withval=$with_pydebug;
Fred Drake109d9862001-07-11 06:27:56 +00004529if test "$withval" != no
Martin v. Löwis11437992002-04-12 09:54:03 +00004530then
4531
4532cat >>confdefs.h <<\_ACEOF
Fred Drake109d9862001-07-11 06:27:56 +00004533#define Py_DEBUG 1
Martin v. Löwis11437992002-04-12 09:54:03 +00004534_ACEOF
4535
Martin v. Löwiseba40652007-08-30 20:10:57 +00004536 { echo "$as_me:$LINENO: result: yes" >&5
4537echo "${ECHO_T}yes" >&6; };
Martin v. Löwisc45929e2002-04-06 10:10:49 +00004538 Py_DEBUG='true'
Martin v. Löwiseba40652007-08-30 20:10:57 +00004539else { echo "$as_me:$LINENO: result: no" >&5
4540echo "${ECHO_T}no" >&6; }; Py_DEBUG='false'
Fred Drake109d9862001-07-11 06:27:56 +00004541fi
4542else
Martin v. Löwiseba40652007-08-30 20:10:57 +00004543 { echo "$as_me:$LINENO: result: no" >&5
4544echo "${ECHO_T}no" >&6; }
4545fi
4546
Fred Drake109d9862001-07-11 06:27:56 +00004547
Skip Montanarodecc6a42003-01-01 20:07:49 +00004548# XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
4549# merged with this chunk of code?
4550
Neil Schemenauerd32c2492001-01-24 17:25:28 +00004551# Optimizer/debugger flags
Skip Montanarodecc6a42003-01-01 20:07:49 +00004552# ------------------------
4553# (The following bit of code is complicated enough - please keep things
4554# indented properly. Just pretend you're editing Python code. ;-)
4555
4556# There are two parallel sets of case statements below, one that checks to
4557# see if OPT was set and one that does BASECFLAGS setting based upon
4558# compiler and platform. BASECFLAGS tweaks need to be made even if the
4559# user set OPT.
4560
4561# tweak OPT based on compiler and platform, only if the user didn't set
4562# it on the command line
Guido van Rossum7b3853f1996-07-30 18:09:35 +00004563
Guido van Rossumb1ba03f1994-08-19 15:34:50 +00004564if test -z "$OPT"
Guido van Rossum7b3853f1996-07-30 18:09:35 +00004565then
Skip Montanarodecc6a42003-01-01 20:07:49 +00004566 case $GCC in
4567 yes)
Skip Montanaro288a5be2006-04-13 02:00:56 +00004568 if test "$CC" != 'g++' ; then
4569 STRICT_PROTO="-Wstrict-prototypes"
4570 fi
Thomas Hellere5529592007-12-13 21:20:29 +00004571 # For gcc 4.x we need to use -fwrapv so lets check if its supported
4572 if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then
4573 WRAP="-fwrapv"
4574 fi
Skip Montanarodecc6a42003-01-01 20:07:49 +00004575 case $ac_cv_prog_cc_g in
Guido van Rossum2242f2f2001-04-11 20:58:20 +00004576 yes)
Fred Drake109d9862001-07-11 06:27:56 +00004577 if test "$Py_DEBUG" = 'true' ; then
4578 # Optimization messes up debuggers, so turn it off for
4579 # debug builds.
Skip Montanaro288a5be2006-04-13 02:00:56 +00004580 OPT="-g -Wall $STRICT_PROTO"
Fred Drake109d9862001-07-11 06:27:56 +00004581 else
Thomas Hellere5529592007-12-13 21:20:29 +00004582 OPT="-g $WRAP -O3 -Wall $STRICT_PROTO"
Skip Montanarodecc6a42003-01-01 20:07:49 +00004583 fi
4584 ;;
Guido van Rossum2242f2f2001-04-11 20:58:20 +00004585 *)
Skip Montanaro288a5be2006-04-13 02:00:56 +00004586 OPT="-O3 -Wall $STRICT_PROTO"
Skip Montanarodecc6a42003-01-01 20:07:49 +00004587 ;;
Fred Drake109d9862001-07-11 06:27:56 +00004588 esac
Martin v. Löwis21ee4092002-09-30 16:19:48 +00004589 case $ac_sys_system in
Skip Montanarodecc6a42003-01-01 20:07:49 +00004590 SCO_SV*) OPT="$OPT -m486 -DSCO5"
4591 ;;
4592 esac
Fred Drake109d9862001-07-11 06:27:56 +00004593 ;;
Skip Montanarodecc6a42003-01-01 20:07:49 +00004594
Guido van Rossum2242f2f2001-04-11 20:58:20 +00004595 *)
Skip Montanarodecc6a42003-01-01 20:07:49 +00004596 OPT="-O"
4597 ;;
Guido van Rossum2242f2f2001-04-11 20:58:20 +00004598 esac
Skip Montanarodecc6a42003-01-01 20:07:49 +00004599
4600 # The current (beta) Monterey compiler dies with optimizations
4601 # XXX what is Monterey? Does it still die w/ -O? Can we get rid of this?
Jack Jansenca06bc62001-08-03 15:32:23 +00004602 case $ac_sys_system in
Skip Montanarodecc6a42003-01-01 20:07:49 +00004603 Monterey*)
4604 OPT=""
4605 ;;
Jack Jansenca06bc62001-08-03 15:32:23 +00004606 esac
Skip Montanarodecc6a42003-01-01 20:07:49 +00004607
Guido van Rossumb1ba03f1994-08-19 15:34:50 +00004608fi
4609
Skip Montanarodecc6a42003-01-01 20:07:49 +00004610
Ronald Oussoren5640ce22008-06-05 12:58:24 +00004611
4612# The -arch flags for universal builds on OSX
4613UNIVERSAL_ARCH_FLAGS=
4614
4615
Skip Montanarodecc6a42003-01-01 20:07:49 +00004616# tweak BASECFLAGS based on compiler and platform
4617case $GCC in
4618yes)
Martin v. Löwis70fedcd2003-07-07 21:26:19 +00004619 # Python violates C99 rules, by casting between incompatible
4620 # pointer types. GCC may generate bad code as a result of that,
4621 # so use -fno-strict-aliasing if supported.
Martin v. Löwiseba40652007-08-30 20:10:57 +00004622 { echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
4623echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6; }
Martin v. Löwis70fedcd2003-07-07 21:26:19 +00004624 ac_save_cc="$CC"
4625 CC="$CC -fno-strict-aliasing"
4626 if test "$cross_compiling" = yes; then
4627 ac_cv_no_strict_aliasing_ok=no
4628else
4629 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00004630/* confdefs.h. */
4631_ACEOF
4632cat confdefs.h >>conftest.$ac_ext
4633cat >>conftest.$ac_ext <<_ACEOF
4634/* end confdefs.h. */
Martin v. Löwis70fedcd2003-07-07 21:26:19 +00004635int main() { return 0; }
4636_ACEOF
4637rm -f conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +00004638if { (ac_try="$ac_link"
4639case "(($ac_try" in
4640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4641 *) ac_try_echo=$ac_try;;
4642esac
4643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4644 (eval "$ac_link") 2>&5
Martin v. Löwis70fedcd2003-07-07 21:26:19 +00004645 ac_status=$?
4646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4647 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Martin v. Löwiseba40652007-08-30 20:10:57 +00004648 { (case "(($ac_try" in
4649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4650 *) ac_try_echo=$ac_try;;
4651esac
4652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4653 (eval "$ac_try") 2>&5
Martin v. Löwis70fedcd2003-07-07 21:26:19 +00004654 ac_status=$?
4655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656 (exit $ac_status); }; }; then
4657 ac_cv_no_strict_aliasing_ok=yes
4658else
4659 echo "$as_me: program exited with status $ac_status" >&5
4660echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00004661sed 's/^/| /' conftest.$ac_ext >&5
4662
Martin v. Löwis70fedcd2003-07-07 21:26:19 +00004663( exit $ac_status )
4664ac_cv_no_strict_aliasing_ok=no
4665fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00004666rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis70fedcd2003-07-07 21:26:19 +00004667fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00004668
4669
Martin v. Löwis70fedcd2003-07-07 21:26:19 +00004670 CC="$ac_save_cc"
Martin v. Löwiseba40652007-08-30 20:10:57 +00004671 { echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
4672echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6; }
Martin v. Löwis70fedcd2003-07-07 21:26:19 +00004673 if test $ac_cv_no_strict_aliasing_ok = yes
4674 then
4675 BASECFLAGS="$BASECFLAGS -fno-strict-aliasing"
4676 fi
Mark Dickinson65134662008-04-25 16:11:04 +00004677
4678 # if using gcc on alpha, use -mieee to get (near) full IEEE 754
4679 # support. Without this, treatment of subnormals doesn't follow
4680 # the standard.
4681 case $ac_sys_machine in
4682 alpha*)
4683 BASECFLAGS="$BASECFLAGS -mieee"
4684 ;;
4685 esac
4686
Skip Montanarodecc6a42003-01-01 20:07:49 +00004687 case $ac_sys_system in
4688 SCO_SV*)
4689 BASECFLAGS="$BASECFLAGS -m486 -DSCO5"
4690 ;;
4691 # is there any other compiler on Darwin besides gcc?
4692 Darwin*)
Jeffrey Yasskin1b4e45b2008-03-17 14:40:53 +00004693 # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd
4694 # used to be here, but non-Apple gcc doesn't accept them.
Benjamin Peterson4347c442008-07-17 15:59:24 +00004695
4696
Ronald Oussoren988117f2006-04-29 11:31:35 +00004697 if test "${enable_universalsdk}"; then
Ronald Oussoren5640ce22008-06-05 12:58:24 +00004698 UNIVERSAL_ARCH_FLAGS=""
4699 if test "$UNIVERSAL_ARCHS" = "32-bit" ; then
4700 UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386"
Benjamin Peterson0e6ea5d2008-07-16 20:17:04 +00004701 ARCH_RUN_32BIT=""
Ronald Oussoren5640ce22008-06-05 12:58:24 +00004702
4703 elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then
4704 UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64"
4705
4706 elif test "$UNIVERSAL_ARCHS" = "all" ; then
4707 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64"
Ronald Oussorena4cb4722008-08-12 12:29:13 +00004708 ARCH_RUN_32BIT="arch -i386 -ppc"
Ronald Oussoren5640ce22008-06-05 12:58:24 +00004709
4710 else
4711 { { echo "$as_me:$LINENO: error: proper usage is --with-universalarch=32-bit|64-bit|all" >&5
4712echo "$as_me: error: proper usage is --with-universalarch=32-bit|64-bit|all" >&2;}
4713 { (exit 1); exit 1; }; }
4714
4715 fi
4716
4717
4718 BASECFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${BASECFLAGS}"
Ronald Oussoren5a849d42008-07-22 07:06:00 +00004719 tgt=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
Benjamin Peterson4347c442008-07-17 15:59:24 +00004720 if test "${UNIVERSALSDK}" != "/" -a "${tgt}" '>' '10.4' ; then
4721 CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}"
4722 fi
Ronald Oussoren988117f2006-04-29 11:31:35 +00004723 fi
4724
Benjamin Peterson4347c442008-07-17 15:59:24 +00004725 # Calculate the right deployment target for this build.
4726 #
4727 cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
4728 if test ${cur_target} '>' 10.2; then
4729 cur_target=10.3
4730 fi
4731 if test "${UNIVERSAL_ARCHS}" = "all"; then
4732 # Ensure that the default platform for a 4-way
4733 # universal build is OSX 10.5, that's the first
4734 # OS release where 4-way builds make sense.
4735 cur_target='10.5'
4736 fi
4737 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
4738
4739 # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the
4740 # environment with a value that is the same as what we'll use
4741 # in the Makefile to ensure that we'll get the same compiler
4742 # environment during configure and build time.
4743 MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET"
4744 export MACOSX_DEPLOYMENT_TARGET
4745 EXPORT_MACOSX_DEPLOYMENT_TARGET=''
4746
Skip Montanarodecc6a42003-01-01 20:07:49 +00004747 ;;
Neal Norwitzdedeeaa2006-03-31 06:54:45 +00004748 OSF*)
4749 BASECFLAGS="$BASECFLAGS -mieee"
4750 ;;
Skip Montanarodecc6a42003-01-01 20:07:49 +00004751 esac
4752 ;;
4753
4754*)
4755 case $ac_sys_system in
4756 OpenUNIX*|UnixWare*)
4757 BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
4758 ;;
Neal Norwitzb44f1652003-05-26 14:11:55 +00004759 OSF*)
4760 BASECFLAGS="$BASECFLAGS -ieee -std"
4761 ;;
Skip Montanarodecc6a42003-01-01 20:07:49 +00004762 SCO_SV*)
4763 BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5"
4764 ;;
4765 esac
4766 ;;
4767esac
4768
Fred Drakee1ceaa02001-12-04 20:55:47 +00004769if test "$Py_DEBUG" = 'true'; then
4770 :
4771else
4772 OPT="-DNDEBUG $OPT"
4773fi
4774
Guido van Rossum563e7081996-09-10 18:20:48 +00004775if test "$ac_arch_flags"
Guido van Rossuma68acba1996-07-31 17:36:39 +00004776then
Skip Montanarodecc6a42003-01-01 20:07:49 +00004777 BASECFLAGS="$BASECFLAGS $ac_arch_flags"
Guido van Rossuma68acba1996-07-31 17:36:39 +00004778fi
Guido van Rossumda88dad1995-01-26 00:46:29 +00004779
Neal Norwitz020c46a2006-01-07 21:39:28 +00004780# disable check for icc since it seems to pass, but generates a warning
4781if test "$CC" = icc
4782then
4783 ac_cv_opt_olimit_ok=no
4784fi
4785
Martin v. Löwiseba40652007-08-30 20:10:57 +00004786{ echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
4787echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00004788if test "${ac_cv_opt_olimit_ok+set}" = set; then
4789 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossum91922671997-10-09 20:24:13 +00004790else
4791 ac_save_cc="$CC"
4792CC="$CC -OPT:Olimit=0"
4793if test "$cross_compiling" = yes; then
Guido van Rossum3065c942001-09-17 04:03:14 +00004794 ac_cv_opt_olimit_ok=no
Guido van Rossum91922671997-10-09 20:24:13 +00004795else
Martin v. Löwis11437992002-04-12 09:54:03 +00004796 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00004797/* confdefs.h. */
4798_ACEOF
4799cat confdefs.h >>conftest.$ac_ext
4800cat >>conftest.$ac_ext <<_ACEOF
4801/* end confdefs.h. */
Guido van Rossum91922671997-10-09 20:24:13 +00004802int main() { return 0; }
Martin v. Löwis11437992002-04-12 09:54:03 +00004803_ACEOF
4804rm -f conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +00004805if { (ac_try="$ac_link"
4806case "(($ac_try" in
4807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4808 *) ac_try_echo=$ac_try;;
4809esac
4810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4811 (eval "$ac_link") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +00004812 ac_status=$?
4813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Martin v. Löwiseba40652007-08-30 20:10:57 +00004815 { (case "(($ac_try" in
4816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4817 *) ac_try_echo=$ac_try;;
4818esac
4819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4820 (eval "$ac_try") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +00004821 ac_status=$?
4822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823 (exit $ac_status); }; }; then
Guido van Rossum91922671997-10-09 20:24:13 +00004824 ac_cv_opt_olimit_ok=yes
4825else
Martin v. Löwis11437992002-04-12 09:54:03 +00004826 echo "$as_me: program exited with status $ac_status" >&5
4827echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00004828sed 's/^/| /' conftest.$ac_ext >&5
4829
Martin v. Löwis11437992002-04-12 09:54:03 +00004830( exit $ac_status )
4831ac_cv_opt_olimit_ok=no
Guido van Rossum91922671997-10-09 20:24:13 +00004832fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00004833rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Guido van Rossum91922671997-10-09 20:24:13 +00004834fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00004835
4836
Guido van Rossum91922671997-10-09 20:24:13 +00004837CC="$ac_save_cc"
4838fi
4839
Martin v. Löwiseba40652007-08-30 20:10:57 +00004840{ echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
4841echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6; }
Guido van Rossum2efa34b1997-10-23 17:43:11 +00004842if test $ac_cv_opt_olimit_ok = yes; then
Guido van Rossum5839e582000-10-09 19:52:35 +00004843 case $ac_sys_system in
Skip Montanarodecc6a42003-01-01 20:07:49 +00004844 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
4845 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
4846 # environment?
4847 Darwin*)
4848 ;;
4849 *)
4850 BASECFLAGS="$BASECFLAGS -OPT:Olimit=0"
4851 ;;
Guido van Rossum5839e582000-10-09 19:52:35 +00004852 esac
Guido van Rossum6b3d77e1998-07-07 21:11:02 +00004853else
Martin v. Löwiseba40652007-08-30 20:10:57 +00004854 { echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
4855echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00004856 if test "${ac_cv_olimit_ok+set}" = set; then
4857 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossum6b3d77e1998-07-07 21:11:02 +00004858else
4859 ac_save_cc="$CC"
4860 CC="$CC -Olimit 1500"
4861 if test "$cross_compiling" = yes; then
Guido van Rossum3065c942001-09-17 04:03:14 +00004862 ac_cv_olimit_ok=no
Guido van Rossum6b3d77e1998-07-07 21:11:02 +00004863else
Martin v. Löwis11437992002-04-12 09:54:03 +00004864 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00004865/* confdefs.h. */
4866_ACEOF
4867cat confdefs.h >>conftest.$ac_ext
4868cat >>conftest.$ac_ext <<_ACEOF
4869/* end confdefs.h. */
Guido van Rossum6b3d77e1998-07-07 21:11:02 +00004870int main() { return 0; }
Martin v. Löwis11437992002-04-12 09:54:03 +00004871_ACEOF
4872rm -f conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +00004873if { (ac_try="$ac_link"
4874case "(($ac_try" in
4875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4876 *) ac_try_echo=$ac_try;;
4877esac
4878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4879 (eval "$ac_link") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +00004880 ac_status=$?
4881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4882 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Martin v. Löwiseba40652007-08-30 20:10:57 +00004883 { (case "(($ac_try" in
4884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4885 *) ac_try_echo=$ac_try;;
4886esac
4887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4888 (eval "$ac_try") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +00004889 ac_status=$?
4890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4891 (exit $ac_status); }; }; then
Guido van Rossum6b3d77e1998-07-07 21:11:02 +00004892 ac_cv_olimit_ok=yes
4893else
Martin v. Löwis11437992002-04-12 09:54:03 +00004894 echo "$as_me: program exited with status $ac_status" >&5
4895echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00004896sed 's/^/| /' conftest.$ac_ext >&5
4897
Martin v. Löwis11437992002-04-12 09:54:03 +00004898( exit $ac_status )
4899ac_cv_olimit_ok=no
Guido van Rossum201afe51997-05-14 21:14:44 +00004900fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00004901rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Guido van Rossum6b3d77e1998-07-07 21:11:02 +00004902fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00004903
4904
Guido van Rossum6b3d77e1998-07-07 21:11:02 +00004905 CC="$ac_save_cc"
4906fi
4907
Martin v. Löwiseba40652007-08-30 20:10:57 +00004908 { echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
4909echo "${ECHO_T}$ac_cv_olimit_ok" >&6; }
Guido van Rossum6b3d77e1998-07-07 21:11:02 +00004910 if test $ac_cv_olimit_ok = yes; then
Skip Montanarodecc6a42003-01-01 20:07:49 +00004911 BASECFLAGS="$BASECFLAGS -Olimit 1500"
Guido van Rossum6b3d77e1998-07-07 21:11:02 +00004912 fi
4913fi
4914
Martin v. Löwisaac13162006-10-19 10:58:46 +00004915# Check whether GCC supports PyArg_ParseTuple format
4916if test "$GCC" = "yes"
4917then
Martin v. Löwiseba40652007-08-30 20:10:57 +00004918 { echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5
4919echo $ECHO_N "checking whether gcc supports ParseTuple __format__... $ECHO_C" >&6; }
Martin v. Löwisaac13162006-10-19 10:58:46 +00004920 save_CFLAGS=$CFLAGS
4921 CFLAGS="$CFLAGS -Werror"
4922 cat >conftest.$ac_ext <<_ACEOF
4923/* confdefs.h. */
4924_ACEOF
4925cat confdefs.h >>conftest.$ac_ext
4926cat >>conftest.$ac_ext <<_ACEOF
4927/* end confdefs.h. */
4928
4929 void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2)));
4930
4931int
4932main ()
4933{
4934
4935 ;
4936 return 0;
4937}
4938_ACEOF
4939rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00004940if { (ac_try="$ac_compile"
4941case "(($ac_try" in
4942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4943 *) ac_try_echo=$ac_try;;
4944esac
4945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4946 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwisaac13162006-10-19 10:58:46 +00004947 ac_status=$?
4948 grep -v '^ *+' conftest.er1 >conftest.err
4949 rm -f conftest.er1
4950 cat conftest.err >&5
4951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00004952 (exit $ac_status); } && {
4953 test -z "$ac_c_werror_flag" ||
4954 test ! -s conftest.err
4955 } && test -s conftest.$ac_objext; then
Martin v. Löwisaac13162006-10-19 10:58:46 +00004956
4957cat >>confdefs.h <<\_ACEOF
4958#define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1
4959_ACEOF
4960
Martin v. Löwiseba40652007-08-30 20:10:57 +00004961 { echo "$as_me:$LINENO: result: yes" >&5
4962echo "${ECHO_T}yes" >&6; }
Martin v. Löwisaac13162006-10-19 10:58:46 +00004963else
4964 echo "$as_me: failed program was:" >&5
4965sed 's/^/| /' conftest.$ac_ext >&5
4966
Martin v. Löwiseba40652007-08-30 20:10:57 +00004967 { echo "$as_me:$LINENO: result: no" >&5
4968echo "${ECHO_T}no" >&6; }
Martin v. Löwisaac13162006-10-19 10:58:46 +00004969
4970fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00004971
4972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwisc1d75972006-10-19 16:01:37 +00004973 CFLAGS=$save_CFLAGS
Martin v. Löwisaac13162006-10-19 10:58:46 +00004974fi
4975
Martin v. Löwisa5f73f92001-10-15 08:06:29 +00004976# On some compilers, pthreads are available without further options
4977# (e.g. MacOS X). On some of these systems, the compiler will not
4978# complain if unaccepted options are passed (e.g. gcc on Mac OS X).
4979# So we have to see first whether pthreads are available without
4980# options before we can check whether -Kpthread improves anything.
Martin v. Löwiseba40652007-08-30 20:10:57 +00004981{ echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
4982echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00004983if test "${ac_cv_pthread_is_default+set}" = set; then
4984 echo $ECHO_N "(cached) $ECHO_C" >&6
Martin v. Löwis130fb172001-07-19 11:00:41 +00004985else
Martin v. Löwisa5f73f92001-10-15 08:06:29 +00004986 if test "$cross_compiling" = yes; then
4987 ac_cv_pthread_is_default=no
Martin v. Löwis260aecc2001-10-07 08:14:41 +00004988else
Martin v. Löwis11437992002-04-12 09:54:03 +00004989 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00004990/* confdefs.h. */
4991_ACEOF
4992cat confdefs.h >>conftest.$ac_ext
4993cat >>conftest.$ac_ext <<_ACEOF
4994/* end confdefs.h. */
Martin v. Löwis260aecc2001-10-07 08:14:41 +00004995
Martin v. Löwis130fb172001-07-19 11:00:41 +00004996#include <pthread.h>
Martin v. Löwis260aecc2001-10-07 08:14:41 +00004997
4998void* routine(void* p){return NULL;}
4999
5000int main(){
5001 pthread_t p;
5002 if(pthread_create(&p,NULL,routine,NULL)!=0)
5003 return 1;
Jack Jansen4f8d0542002-03-08 13:43:01 +00005004 (void)pthread_detach(p);
Martin v. Löwis260aecc2001-10-07 08:14:41 +00005005 return 0;
5006}
5007
Martin v. Löwis11437992002-04-12 09:54:03 +00005008_ACEOF
5009rm -f conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +00005010if { (ac_try="$ac_link"
5011case "(($ac_try" in
5012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5013 *) ac_try_echo=$ac_try;;
5014esac
5015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5016 (eval "$ac_link") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +00005017 ac_status=$?
5018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Martin v. Löwiseba40652007-08-30 20:10:57 +00005020 { (case "(($ac_try" in
5021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5022 *) ac_try_echo=$ac_try;;
5023esac
5024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5025 (eval "$ac_try") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +00005026 ac_status=$?
5027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028 (exit $ac_status); }; }; then
Skip Montanarod8d39a02003-07-10 20:44:10 +00005029
Martin v. Löwisa5f73f92001-10-15 08:06:29 +00005030 ac_cv_pthread_is_default=yes
Skip Montanarod8d39a02003-07-10 20:44:10 +00005031 ac_cv_kthread=no
5032 ac_cv_pthread=no
5033
Martin v. Löwisa5f73f92001-10-15 08:06:29 +00005034else
Martin v. Löwis11437992002-04-12 09:54:03 +00005035 echo "$as_me: program exited with status $ac_status" >&5
5036echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00005037sed 's/^/| /' conftest.$ac_ext >&5
5038
Martin v. Löwis11437992002-04-12 09:54:03 +00005039( exit $ac_status )
5040ac_cv_pthread_is_default=no
Martin v. Löwisa5f73f92001-10-15 08:06:29 +00005041fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00005042rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Martin v. Löwisa5f73f92001-10-15 08:06:29 +00005043fi
5044
Martin v. Löwiseba40652007-08-30 20:10:57 +00005045
5046
Martin v. Löwisa5f73f92001-10-15 08:06:29 +00005047fi
5048
Martin v. Löwiseba40652007-08-30 20:10:57 +00005049{ echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
5050echo "${ECHO_T}$ac_cv_pthread_is_default" >&6; }
Martin v. Löwisa5f73f92001-10-15 08:06:29 +00005051
Michael W. Hudson54241132001-12-07 15:38:26 +00005052
Martin v. Löwis11437992002-04-12 09:54:03 +00005053if test $ac_cv_pthread_is_default = yes
Martin v. Löwisa5f73f92001-10-15 08:06:29 +00005054then
5055 ac_cv_kpthread=no
5056else
5057# -Kpthread, if available, provides the right #defines
5058# and linker options to make pthread_create available
5059# Some compilers won't report that they do not support -Kpthread,
5060# so we need to run a program to see whether it really made the
5061# function available.
Martin v. Löwiseba40652007-08-30 20:10:57 +00005062{ echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
5063echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00005064if test "${ac_cv_kpthread+set}" = set; then
5065 echo $ECHO_N "(cached) $ECHO_C" >&6
Martin v. Löwisa5f73f92001-10-15 08:06:29 +00005066else
5067 ac_save_cc="$CC"
5068CC="$CC -Kpthread"
5069if test "$cross_compiling" = yes; then
5070 ac_cv_kpthread=no
5071else
Martin v. Löwis11437992002-04-12 09:54:03 +00005072 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00005073/* confdefs.h. */
5074_ACEOF
5075cat confdefs.h >>conftest.$ac_ext
5076cat >>conftest.$ac_ext <<_ACEOF
5077/* end confdefs.h. */
Martin v. Löwisa5f73f92001-10-15 08:06:29 +00005078
5079#include <pthread.h>
5080
5081void* routine(void* p){return NULL;}
5082
5083int main(){
5084 pthread_t p;
5085 if(pthread_create(&p,NULL,routine,NULL)!=0)
5086 return 1;
Jack Jansen4f8d0542002-03-08 13:43:01 +00005087 (void)pthread_detach(p);
Martin v. Löwisa5f73f92001-10-15 08:06:29 +00005088 return 0;
5089}
5090
Martin v. Löwis11437992002-04-12 09:54:03 +00005091_ACEOF
5092rm -f conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +00005093if { (ac_try="$ac_link"
5094case "(($ac_try" in
5095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5096 *) ac_try_echo=$ac_try;;
5097esac
5098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5099 (eval "$ac_link") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +00005100 ac_status=$?
5101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Martin v. Löwiseba40652007-08-30 20:10:57 +00005103 { (case "(($ac_try" in
5104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5105 *) ac_try_echo=$ac_try;;
5106esac
5107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5108 (eval "$ac_try") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +00005109 ac_status=$?
5110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5111 (exit $ac_status); }; }; then
Martin v. Löwis130fb172001-07-19 11:00:41 +00005112 ac_cv_kpthread=yes
5113else
Martin v. Löwis11437992002-04-12 09:54:03 +00005114 echo "$as_me: program exited with status $ac_status" >&5
5115echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00005116sed 's/^/| /' conftest.$ac_ext >&5
5117
Martin v. Löwis11437992002-04-12 09:54:03 +00005118( exit $ac_status )
5119ac_cv_kpthread=no
Martin v. Löwis130fb172001-07-19 11:00:41 +00005120fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00005121rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis260aecc2001-10-07 08:14:41 +00005122fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00005123
5124
Martin v. Löwis130fb172001-07-19 11:00:41 +00005125CC="$ac_save_cc"
5126fi
5127
Martin v. Löwiseba40652007-08-30 20:10:57 +00005128{ echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
5129echo "${ECHO_T}$ac_cv_kpthread" >&6; }
Martin v. Löwisa5f73f92001-10-15 08:06:29 +00005130fi
Martin v. Löwis130fb172001-07-19 11:00:41 +00005131
Skip Montanarod8d39a02003-07-10 20:44:10 +00005132if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
Martin v. Löwis5f433f02003-05-05 05:05:30 +00005133then
5134# -Kthread, if available, provides the right #defines
5135# and linker options to make pthread_create available
5136# Some compilers won't report that they do not support -Kthread,
5137# so we need to run a program to see whether it really made the
5138# function available.
Martin v. Löwiseba40652007-08-30 20:10:57 +00005139{ echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
5140echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6; }
Martin v. Löwis5f433f02003-05-05 05:05:30 +00005141if test "${ac_cv_kthread+set}" = set; then
5142 echo $ECHO_N "(cached) $ECHO_C" >&6
5143else
5144 ac_save_cc="$CC"
5145CC="$CC -Kthread"
5146if test "$cross_compiling" = yes; then
5147 ac_cv_kthread=no
5148else
5149 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00005150/* confdefs.h. */
5151_ACEOF
5152cat confdefs.h >>conftest.$ac_ext
5153cat >>conftest.$ac_ext <<_ACEOF
5154/* end confdefs.h. */
Martin v. Löwis5f433f02003-05-05 05:05:30 +00005155
5156#include <pthread.h>
5157
5158void* routine(void* p){return NULL;}
5159
5160int main(){
5161 pthread_t p;
5162 if(pthread_create(&p,NULL,routine,NULL)!=0)
5163 return 1;
5164 (void)pthread_detach(p);
5165 return 0;
5166}
5167
5168_ACEOF
5169rm -f conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +00005170if { (ac_try="$ac_link"
5171case "(($ac_try" in
5172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5173 *) ac_try_echo=$ac_try;;
5174esac
5175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5176 (eval "$ac_link") 2>&5
Martin v. Löwis5f433f02003-05-05 05:05:30 +00005177 ac_status=$?
5178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5179 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Martin v. Löwiseba40652007-08-30 20:10:57 +00005180 { (case "(($ac_try" in
5181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5182 *) ac_try_echo=$ac_try;;
5183esac
5184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5185 (eval "$ac_try") 2>&5
Martin v. Löwis5f433f02003-05-05 05:05:30 +00005186 ac_status=$?
5187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5188 (exit $ac_status); }; }; then
5189 ac_cv_kthread=yes
5190else
5191 echo "$as_me: program exited with status $ac_status" >&5
5192echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00005193sed 's/^/| /' conftest.$ac_ext >&5
5194
Martin v. Löwis5f433f02003-05-05 05:05:30 +00005195( exit $ac_status )
5196ac_cv_kthread=no
5197fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00005198rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis5f433f02003-05-05 05:05:30 +00005199fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00005200
5201
Martin v. Löwis5f433f02003-05-05 05:05:30 +00005202CC="$ac_save_cc"
5203fi
5204
Martin v. Löwiseba40652007-08-30 20:10:57 +00005205{ echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
5206echo "${ECHO_T}$ac_cv_kthread" >&6; }
Martin v. Löwis5f433f02003-05-05 05:05:30 +00005207fi
5208
Skip Montanarod8d39a02003-07-10 20:44:10 +00005209if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +00005210then
5211# -pthread, if available, provides the right #defines
5212# and linker options to make pthread_create available
5213# Some compilers won't report that they do not support -pthread,
5214# so we need to run a program to see whether it really made the
5215# function available.
Martin v. Löwiseba40652007-08-30 20:10:57 +00005216{ echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
5217echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6; }
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +00005218if test "${ac_cv_thread+set}" = set; then
5219 echo $ECHO_N "(cached) $ECHO_C" >&6
5220else
5221 ac_save_cc="$CC"
5222CC="$CC -pthread"
5223if test "$cross_compiling" = yes; then
5224 ac_cv_pthread=no
5225else
5226 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00005227/* confdefs.h. */
5228_ACEOF
5229cat confdefs.h >>conftest.$ac_ext
5230cat >>conftest.$ac_ext <<_ACEOF
5231/* end confdefs.h. */
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +00005232
5233#include <pthread.h>
5234
5235void* routine(void* p){return NULL;}
5236
5237int main(){
5238 pthread_t p;
5239 if(pthread_create(&p,NULL,routine,NULL)!=0)
5240 return 1;
5241 (void)pthread_detach(p);
5242 return 0;
5243}
5244
5245_ACEOF
5246rm -f conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +00005247if { (ac_try="$ac_link"
5248case "(($ac_try" in
5249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5250 *) ac_try_echo=$ac_try;;
5251esac
5252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5253 (eval "$ac_link") 2>&5
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +00005254 ac_status=$?
5255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Martin v. Löwiseba40652007-08-30 20:10:57 +00005257 { (case "(($ac_try" in
5258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5259 *) ac_try_echo=$ac_try;;
5260esac
5261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5262 (eval "$ac_try") 2>&5
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +00005263 ac_status=$?
5264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265 (exit $ac_status); }; }; then
5266 ac_cv_pthread=yes
5267else
5268 echo "$as_me: program exited with status $ac_status" >&5
5269echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00005270sed 's/^/| /' conftest.$ac_ext >&5
5271
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +00005272( exit $ac_status )
5273ac_cv_pthread=no
5274fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00005275rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +00005276fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00005277
5278
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +00005279CC="$ac_save_cc"
5280fi
5281
Martin v. Löwiseba40652007-08-30 20:10:57 +00005282{ echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
5283echo "${ECHO_T}$ac_cv_pthread" >&6; }
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +00005284fi
5285
Martin v. Löwisab1e5852003-06-28 07:46:38 +00005286# If we have set a CC compiler flag for thread support then
5287# check if it works for CXX, too.
5288ac_cv_cxx_thread=no
5289if test ! -z "$CXX"
5290then
Martin v. Löwiseba40652007-08-30 20:10:57 +00005291{ echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
5292echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6; }
Martin v. Löwisab1e5852003-06-28 07:46:38 +00005293ac_save_cxx="$CXX"
5294
5295if test "$ac_cv_kpthread" = "yes"
5296then
5297 CXX="$CXX -Kpthread"
5298 ac_cv_cxx_thread=yes
5299elif test "$ac_cv_kthread" = "yes"
5300then
5301 CXX="$CXX -Kthread"
5302 ac_cv_cxx_thread=yes
5303elif test "$ac_cv_pthread" = "yes"
5304then
5305 CXX="$CXX -pthread"
5306 ac_cv_cxx_thread=yes
5307fi
5308
5309if test $ac_cv_cxx_thread = yes
5310then
5311 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
5312 $CXX -c conftest.$ac_ext 2>&5
5313 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
5314 && test -s conftest$ac_exeext && ./conftest$ac_exeext
5315 then
5316 ac_cv_cxx_thread=yes
5317 else
5318 ac_cv_cxx_thread=no
Martin v. Löwisab1e5852003-06-28 07:46:38 +00005319 fi
5320 rm -fr conftest*
Martin v. Löwisab1e5852003-06-28 07:46:38 +00005321fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00005322{ echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
5323echo "${ECHO_T}$ac_cv_cxx_thread" >&6; }
Brett Cannonc601e0f2004-11-07 01:24:12 +00005324fi
5325CXX="$ac_save_cxx"
Martin v. Löwisab1e5852003-06-28 07:46:38 +00005326
Michael W. Hudson54241132001-12-07 15:38:26 +00005327
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00005328# checks for header files
Martin v. Löwiseba40652007-08-30 20:10:57 +00005329{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5330echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00005331if test "${ac_cv_header_stdc+set}" = set; then
5332 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005333else
Martin v. Löwis11437992002-04-12 09:54:03 +00005334 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00005335/* confdefs.h. */
5336_ACEOF
5337cat confdefs.h >>conftest.$ac_ext
5338cat >>conftest.$ac_ext <<_ACEOF
5339/* end confdefs.h. */
Guido van Rossum627b2d71993-12-24 10:39:16 +00005340#include <stdlib.h>
5341#include <stdarg.h>
5342#include <string.h>
5343#include <float.h>
Martin v. Löwis11437992002-04-12 09:54:03 +00005344
Skip Montanaro6dead952003-09-25 14:50:04 +00005345int
5346main ()
5347{
5348
5349 ;
5350 return 0;
5351}
Martin v. Löwis11437992002-04-12 09:54:03 +00005352_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00005353rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00005354if { (ac_try="$ac_compile"
5355case "(($ac_try" in
5356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5357 *) ac_try_echo=$ac_try;;
5358esac
5359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5360 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00005361 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00005362 grep -v '^ *+' conftest.er1 >conftest.err
5363 rm -f conftest.er1
5364 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00005365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00005366 (exit $ac_status); } && {
5367 test -z "$ac_c_werror_flag" ||
5368 test ! -s conftest.err
5369 } && test -s conftest.$ac_objext; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005370 ac_cv_header_stdc=yes
5371else
Martin v. Löwis11437992002-04-12 09:54:03 +00005372 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00005373sed 's/^/| /' conftest.$ac_ext >&5
5374
Martin v. Löwiseba40652007-08-30 20:10:57 +00005375 ac_cv_header_stdc=no
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005376fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00005377
5378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005379
5380if test $ac_cv_header_stdc = yes; then
5381 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Martin v. Löwis11437992002-04-12 09:54:03 +00005382 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00005383/* confdefs.h. */
5384_ACEOF
5385cat confdefs.h >>conftest.$ac_ext
5386cat >>conftest.$ac_ext <<_ACEOF
5387/* end confdefs.h. */
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005388#include <string.h>
Martin v. Löwis11437992002-04-12 09:54:03 +00005389
5390_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005391if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Skip Montanaro6dead952003-09-25 14:50:04 +00005392 $EGREP "memchr" >/dev/null 2>&1; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005393 :
5394else
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005395 ac_cv_header_stdc=no
5396fi
5397rm -f conftest*
5398
5399fi
5400
5401if test $ac_cv_header_stdc = yes; then
5402 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Martin v. Löwis11437992002-04-12 09:54:03 +00005403 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00005404/* confdefs.h. */
5405_ACEOF
5406cat confdefs.h >>conftest.$ac_ext
5407cat >>conftest.$ac_ext <<_ACEOF
5408/* end confdefs.h. */
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005409#include <stdlib.h>
Martin v. Löwis11437992002-04-12 09:54:03 +00005410
5411_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005412if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Skip Montanaro6dead952003-09-25 14:50:04 +00005413 $EGREP "free" >/dev/null 2>&1; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005414 :
5415else
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005416 ac_cv_header_stdc=no
5417fi
5418rm -f conftest*
5419
5420fi
5421
5422if test $ac_cv_header_stdc = yes; then
5423 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Martin v. Löwis11437992002-04-12 09:54:03 +00005424 if test "$cross_compiling" = yes; then
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00005425 :
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005426else
Martin v. Löwis11437992002-04-12 09:54:03 +00005427 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00005428/* confdefs.h. */
5429_ACEOF
5430cat confdefs.h >>conftest.$ac_ext
5431cat >>conftest.$ac_ext <<_ACEOF
5432/* end confdefs.h. */
Guido van Rossum627b2d71993-12-24 10:39:16 +00005433#include <ctype.h>
Martin v. Löwiseba40652007-08-30 20:10:57 +00005434#include <stdlib.h>
Martin v. Löwis11437992002-04-12 09:54:03 +00005435#if ((' ' & 0x0FF) == 0x020)
5436# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5437# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5438#else
Skip Montanaro6dead952003-09-25 14:50:04 +00005439# define ISLOWER(c) \
Skip Montanarof0d5f792004-08-15 14:08:23 +00005440 (('a' <= (c) && (c) <= 'i') \
5441 || ('j' <= (c) && (c) <= 'r') \
5442 || ('s' <= (c) && (c) <= 'z'))
Martin v. Löwis11437992002-04-12 09:54:03 +00005443# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5444#endif
Michael W. Hudson54241132001-12-07 15:38:26 +00005445
Martin v. Löwis11437992002-04-12 09:54:03 +00005446#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5447int
5448main ()
5449{
5450 int i;
5451 for (i = 0; i < 256; i++)
5452 if (XOR (islower (i), ISLOWER (i))
Skip Montanarof0d5f792004-08-15 14:08:23 +00005453 || toupper (i) != TOUPPER (i))
Martin v. Löwiseba40652007-08-30 20:10:57 +00005454 return 2;
5455 return 0;
Martin v. Löwis11437992002-04-12 09:54:03 +00005456}
5457_ACEOF
5458rm -f conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +00005459if { (ac_try="$ac_link"
5460case "(($ac_try" in
5461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5462 *) ac_try_echo=$ac_try;;
5463esac
5464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5465 (eval "$ac_link") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +00005466 ac_status=$?
5467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Martin v. Löwiseba40652007-08-30 20:10:57 +00005469 { (case "(($ac_try" in
5470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5471 *) ac_try_echo=$ac_try;;
5472esac
5473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5474 (eval "$ac_try") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +00005475 ac_status=$?
5476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477 (exit $ac_status); }; }; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005478 :
5479else
Martin v. Löwis11437992002-04-12 09:54:03 +00005480 echo "$as_me: program exited with status $ac_status" >&5
5481echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00005482sed 's/^/| /' conftest.$ac_ext >&5
5483
Martin v. Löwis11437992002-04-12 09:54:03 +00005484( exit $ac_status )
5485ac_cv_header_stdc=no
Guido van Rossum627b2d71993-12-24 10:39:16 +00005486fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00005487rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5488fi
5489
5490
Michael W. Hudson54241132001-12-07 15:38:26 +00005491fi
5492fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00005493{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5494echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
Michael W. Hudson54241132001-12-07 15:38:26 +00005495if test $ac_cv_header_stdc = yes; then
Martin v. Löwis11437992002-04-12 09:54:03 +00005496
5497cat >>confdefs.h <<\_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005498#define STDC_HEADERS 1
Martin v. Löwis11437992002-04-12 09:54:03 +00005499_ACEOF
Guido van Rossum627b2d71993-12-24 10:39:16 +00005500
5501fi
Guido van Rossum627b2d71993-12-24 10:39:16 +00005502
Skip Montanarob9820a32004-01-17 00:16:12 +00005503# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
Skip Montanarof0d5f792004-08-15 14:08:23 +00005514 inttypes.h stdint.h unistd.h
Skip Montanarob9820a32004-01-17 00:16:12 +00005515do
5516as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Martin v. Löwiseba40652007-08-30 20:10:57 +00005517{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5518echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5519if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Skip Montanarob9820a32004-01-17 00:16:12 +00005520 echo $ECHO_N "(cached) $ECHO_C" >&6
5521else
5522 cat >conftest.$ac_ext <<_ACEOF
Skip Montanarob9820a32004-01-17 00:16:12 +00005523/* confdefs.h. */
5524_ACEOF
5525cat confdefs.h >>conftest.$ac_ext
5526cat >>conftest.$ac_ext <<_ACEOF
5527/* end confdefs.h. */
5528$ac_includes_default
5529
5530#include <$ac_header>
5531_ACEOF
5532rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00005533if { (ac_try="$ac_compile"
5534case "(($ac_try" in
5535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5536 *) ac_try_echo=$ac_try;;
5537esac
5538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5539 (eval "$ac_compile") 2>conftest.er1
Skip Montanarob9820a32004-01-17 00:16:12 +00005540 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00005541 grep -v '^ *+' conftest.er1 >conftest.err
5542 rm -f conftest.er1
5543 cat conftest.err >&5
Skip Montanarob9820a32004-01-17 00:16:12 +00005544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00005545 (exit $ac_status); } && {
5546 test -z "$ac_c_werror_flag" ||
5547 test ! -s conftest.err
5548 } && test -s conftest.$ac_objext; then
Skip Montanarob9820a32004-01-17 00:16:12 +00005549 eval "$as_ac_Header=yes"
5550else
5551 echo "$as_me: failed program was:" >&5
5552sed 's/^/| /' conftest.$ac_ext >&5
5553
Martin v. Löwiseba40652007-08-30 20:10:57 +00005554 eval "$as_ac_Header=no"
Skip Montanarob9820a32004-01-17 00:16:12 +00005555fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00005556
5557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Skip Montanarob9820a32004-01-17 00:16:12 +00005558fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00005559ac_res=`eval echo '${'$as_ac_Header'}'`
5560 { echo "$as_me:$LINENO: result: $ac_res" >&5
5561echo "${ECHO_T}$ac_res" >&6; }
Skip Montanarob9820a32004-01-17 00:16:12 +00005562if test `eval echo '${'$as_ac_Header'}'` = yes; then
5563 cat >>confdefs.h <<_ACEOF
5564#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5565_ACEOF
5566
5567fi
5568
5569done
5570
5571
Martin v. Löwis11437992002-04-12 09:54:03 +00005572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
Anthony Baxter8a560de2004-10-13 15:30:56 +00005608
Martin v. Löwisc3001752005-01-23 09:27:24 +00005609
Martin v. Löwis11017b12006-01-14 18:12:57 +00005610
Martin v. Löwis5f5d99c2006-05-16 07:05:37 +00005611
Martin v. Löwis0e8bd7e2006-06-10 12:23:46 +00005612
5613
5614
5615
5616
5617
5618
5619
Martin v. Löwis40e9aed2006-10-02 15:20:37 +00005620
Christian Heimesfb2d25a2008-01-07 16:12:44 +00005621
Christian Heimes0e9ab5f2008-03-21 23:49:44 +00005622
5623
Neal Norwitz9fdfaaf2008-03-28 05:34:59 +00005624
Martin v. Löwis8c255e42008-05-23 15:06:50 +00005625
Martin v. Löwis0e8bd7e2006-06-10 12:23:46 +00005626for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \
5627fcntl.h grp.h \
Neal Norwitz9fdfaaf2008-03-28 05:34:59 +00005628ieeefp.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
Martin v. Löwis40e9aed2006-10-02 15:20:37 +00005629shadow.h signal.h stdint.h stropts.h termios.h thread.h \
Martin v. Löwis14e73b12003-01-01 09:51:12 +00005630unistd.h utime.h \
Christian Heimes0e9ab5f2008-03-21 23:49:44 +00005631sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \
5632sys/lock.h sys/mkdev.h sys/modem.h \
Martin v. Löwis0e8bd7e2006-06-10 12:23:46 +00005633sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \
Martin v. Löwis8c255e42008-05-23 15:06:50 +00005634sys/termio.h sys/time.h \
Martin v. Löwis0e8bd7e2006-06-10 12:23:46 +00005635sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
Martin v. Löwis0347a9a2006-10-27 07:06:52 +00005636sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
Christian Heimesfb2d25a2008-01-07 16:12:44 +00005637bluetooth/bluetooth.h linux/tipc.h
Guido van Rossum627b2d71993-12-24 10:39:16 +00005638do
Martin v. Löwis11437992002-04-12 09:54:03 +00005639as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Martin v. Löwiseba40652007-08-30 20:10:57 +00005640if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5641 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5642echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5643if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Martin v. Löwis11437992002-04-12 09:54:03 +00005644 echo $ECHO_N "(cached) $ECHO_C" >&6
5645fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00005646ac_res=`eval echo '${'$as_ac_Header'}'`
5647 { echo "$as_me:$LINENO: result: $ac_res" >&5
5648echo "${ECHO_T}$ac_res" >&6; }
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005649else
Martin v. Löwis11437992002-04-12 09:54:03 +00005650 # Is the header compilable?
Martin v. Löwiseba40652007-08-30 20:10:57 +00005651{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5652echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00005653cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00005654/* confdefs.h. */
5655_ACEOF
5656cat confdefs.h >>conftest.$ac_ext
5657cat >>conftest.$ac_ext <<_ACEOF
5658/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00005659$ac_includes_default
5660#include <$ac_header>
5661_ACEOF
5662rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00005663if { (ac_try="$ac_compile"
5664case "(($ac_try" in
5665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5666 *) ac_try_echo=$ac_try;;
5667esac
5668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5669 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00005670 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00005671 grep -v '^ *+' conftest.er1 >conftest.err
5672 rm -f conftest.er1
5673 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00005674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00005675 (exit $ac_status); } && {
5676 test -z "$ac_c_werror_flag" ||
5677 test ! -s conftest.err
5678 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00005679 ac_header_compiler=yes
Michael W. Hudson54241132001-12-07 15:38:26 +00005680else
Martin v. Löwis11437992002-04-12 09:54:03 +00005681 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00005682sed 's/^/| /' conftest.$ac_ext >&5
5683
Martin v. Löwiseba40652007-08-30 20:10:57 +00005684 ac_header_compiler=no
Martin v. Löwis11437992002-04-12 09:54:03 +00005685fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00005686
5687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5688{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5689echo "${ECHO_T}$ac_header_compiler" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00005690
5691# Is the header present?
Martin v. Löwiseba40652007-08-30 20:10:57 +00005692{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5693echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00005694cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00005695/* confdefs.h. */
5696_ACEOF
5697cat confdefs.h >>conftest.$ac_ext
5698cat >>conftest.$ac_ext <<_ACEOF
5699/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00005700#include <$ac_header>
5701_ACEOF
Martin v. Löwiseba40652007-08-30 20:10:57 +00005702if { (ac_try="$ac_cpp conftest.$ac_ext"
5703case "(($ac_try" in
5704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5705 *) ac_try_echo=$ac_try;;
5706esac
5707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5708 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00005709 ac_status=$?
Skip Montanaro6dead952003-09-25 14:50:04 +00005710 grep -v '^ *+' conftest.er1 >conftest.err
Martin v. Löwis11437992002-04-12 09:54:03 +00005711 rm -f conftest.er1
5712 cat conftest.err >&5
5713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00005714 (exit $ac_status); } >/dev/null && {
5715 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5716 test ! -s conftest.err
5717 }; then
Martin v. Löwis11437992002-04-12 09:54:03 +00005718 ac_header_preproc=yes
5719else
5720 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00005721sed 's/^/| /' conftest.$ac_ext >&5
5722
Martin v. Löwis11437992002-04-12 09:54:03 +00005723 ac_header_preproc=no
Michael W. Hudson54241132001-12-07 15:38:26 +00005724fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00005725
Martin v. Löwis11437992002-04-12 09:54:03 +00005726rm -f conftest.err conftest.$ac_ext
Martin v. Löwiseba40652007-08-30 20:10:57 +00005727{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5728echo "${ECHO_T}$ac_header_preproc" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00005729
5730# So? What about this header?
Skip Montanarof0d5f792004-08-15 14:08:23 +00005731case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5732 yes:no: )
Martin v. Löwis11437992002-04-12 09:54:03 +00005733 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5734echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Skip Montanarof0d5f792004-08-15 14:08:23 +00005735 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5736echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5737 ac_header_preproc=yes
Michael W. Hudson30ea2f22004-07-07 17:44:12 +00005738 ;;
Skip Montanarof0d5f792004-08-15 14:08:23 +00005739 no:yes:* )
Michael W. Hudson30ea2f22004-07-07 17:44:12 +00005740 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5741echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Skip Montanarof0d5f792004-08-15 14:08:23 +00005742 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5743echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5744 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5745echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5746 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5747echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Michael W. Hudson30ea2f22004-07-07 17:44:12 +00005748 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5749echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Skip Montanarof0d5f792004-08-15 14:08:23 +00005750 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5751echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Martin v. Löwiseba40652007-08-30 20:10:57 +00005752 ( cat <<\_ASBOX
Georg Brandl464432d2009-05-20 18:24:08 +00005753## -------------------------------------- ##
5754## Report this to http://bugs.python.org/ ##
5755## -------------------------------------- ##
Skip Montanaro6dead952003-09-25 14:50:04 +00005756_ASBOX
Martin v. Löwiseba40652007-08-30 20:10:57 +00005757 ) | sed "s/^/$as_me: WARNING: /" >&2
Skip Montanaro6dead952003-09-25 14:50:04 +00005758 ;;
Martin v. Löwis11437992002-04-12 09:54:03 +00005759esac
Martin v. Löwiseba40652007-08-30 20:10:57 +00005760{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5761echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5762if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Martin v. Löwis11437992002-04-12 09:54:03 +00005763 echo $ECHO_N "(cached) $ECHO_C" >&6
Michael W. Hudson54241132001-12-07 15:38:26 +00005764else
Skip Montanarof0d5f792004-08-15 14:08:23 +00005765 eval "$as_ac_Header=\$ac_header_preproc"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005766fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00005767ac_res=`eval echo '${'$as_ac_Header'}'`
5768 { echo "$as_me:$LINENO: result: $ac_res" >&5
5769echo "${ECHO_T}$ac_res" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00005770
5771fi
5772if test `eval echo '${'$as_ac_Header'}'` = yes; then
5773 cat >>confdefs.h <<_ACEOF
5774#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5775_ACEOF
5776
5777fi
5778
Guido van Rossum627b2d71993-12-24 10:39:16 +00005779done
5780
Martin v. Löwis11437992002-04-12 09:54:03 +00005781
5782
5783
5784
5785
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005786ac_header_dirent=no
Martin v. Löwis11437992002-04-12 09:54:03 +00005787for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5788 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Martin v. Löwiseba40652007-08-30 20:10:57 +00005789{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5790echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5791if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Martin v. Löwis11437992002-04-12 09:54:03 +00005792 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossum627b2d71993-12-24 10:39:16 +00005793else
Martin v. Löwis11437992002-04-12 09:54:03 +00005794 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00005795/* confdefs.h. */
5796_ACEOF
5797cat confdefs.h >>conftest.$ac_ext
5798cat >>conftest.$ac_ext <<_ACEOF
5799/* end confdefs.h. */
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005800#include <sys/types.h>
5801#include <$ac_hdr>
Martin v. Löwis11437992002-04-12 09:54:03 +00005802
Martin v. Löwis11437992002-04-12 09:54:03 +00005803int
5804main ()
5805{
5806if ((DIR *) 0)
5807return 0;
5808 ;
5809 return 0;
5810}
5811_ACEOF
5812rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00005813if { (ac_try="$ac_compile"
5814case "(($ac_try" in
5815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5816 *) ac_try_echo=$ac_try;;
5817esac
5818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5819 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00005820 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00005821 grep -v '^ *+' conftest.er1 >conftest.err
5822 rm -f conftest.er1
5823 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00005824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00005825 (exit $ac_status); } && {
5826 test -z "$ac_c_werror_flag" ||
5827 test ! -s conftest.err
5828 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00005829 eval "$as_ac_Header=yes"
Michael W. Hudson54241132001-12-07 15:38:26 +00005830else
Martin v. Löwis11437992002-04-12 09:54:03 +00005831 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00005832sed 's/^/| /' conftest.$ac_ext >&5
5833
Martin v. Löwiseba40652007-08-30 20:10:57 +00005834 eval "$as_ac_Header=no"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005835fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00005836
5837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Michael W. Hudson54241132001-12-07 15:38:26 +00005838fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00005839ac_res=`eval echo '${'$as_ac_Header'}'`
5840 { echo "$as_me:$LINENO: result: $ac_res" >&5
5841echo "${ECHO_T}$ac_res" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00005842if test `eval echo '${'$as_ac_Header'}'` = yes; then
5843 cat >>confdefs.h <<_ACEOF
5844#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5845_ACEOF
5846
5847ac_header_dirent=$ac_hdr; break
Michael W. Hudson54241132001-12-07 15:38:26 +00005848fi
Martin v. Löwis11437992002-04-12 09:54:03 +00005849
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005850done
5851# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5852if test $ac_header_dirent = dirent.h; then
Martin v. Löwiseba40652007-08-30 20:10:57 +00005853 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5854echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00005855if test "${ac_cv_search_opendir+set}" = set; then
5856 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005857else
Martin v. Löwis11437992002-04-12 09:54:03 +00005858 ac_func_search_save_LIBS=$LIBS
Martin v. Löwis11437992002-04-12 09:54:03 +00005859cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00005860/* confdefs.h. */
5861_ACEOF
5862cat confdefs.h >>conftest.$ac_ext
5863cat >>conftest.$ac_ext <<_ACEOF
5864/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00005865
Martin v. Löwiseba40652007-08-30 20:10:57 +00005866/* Override any GCC internal prototype to avoid an error.
5867 Use char because int might match the return type of a GCC
5868 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +00005869#ifdef __cplusplus
5870extern "C"
5871#endif
Martin v. Löwis11437992002-04-12 09:54:03 +00005872char opendir ();
Martin v. Löwis11437992002-04-12 09:54:03 +00005873int
5874main ()
5875{
Martin v. Löwiseba40652007-08-30 20:10:57 +00005876return opendir ();
Martin v. Löwis11437992002-04-12 09:54:03 +00005877 ;
5878 return 0;
5879}
5880_ACEOF
Martin v. Löwiseba40652007-08-30 20:10:57 +00005881for ac_lib in '' dir; do
5882 if test -z "$ac_lib"; then
5883 ac_res="none required"
5884 else
5885 ac_res=-l$ac_lib
Skip Montanaro89e975f2007-08-22 19:05:21 +00005886 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Martin v. Löwiseba40652007-08-30 20:10:57 +00005887 fi
5888 rm -f conftest.$ac_objext conftest$ac_exeext
5889if { (ac_try="$ac_link"
5890case "(($ac_try" in
5891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5892 *) ac_try_echo=$ac_try;;
5893esac
5894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5895 (eval "$ac_link") 2>conftest.er1
Skip Montanaro89e975f2007-08-22 19:05:21 +00005896 ac_status=$?
5897 grep -v '^ *+' conftest.er1 >conftest.err
5898 rm -f conftest.er1
5899 cat conftest.err >&5
5900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00005901 (exit $ac_status); } && {
5902 test -z "$ac_c_werror_flag" ||
5903 test ! -s conftest.err
5904 } && test -s conftest$ac_exeext &&
5905 $as_test_x conftest$ac_exeext; then
5906 ac_cv_search_opendir=$ac_res
Brett Cannon19fab762007-06-02 03:02:29 +00005907else
Skip Montanaro89e975f2007-08-22 19:05:21 +00005908 echo "$as_me: failed program was:" >&5
5909sed 's/^/| /' conftest.$ac_ext >&5
5910
Martin v. Löwiseba40652007-08-30 20:10:57 +00005911
Brett Cannon19fab762007-06-02 03:02:29 +00005912fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00005913
5914rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5915 conftest$ac_exeext
5916 if test "${ac_cv_search_opendir+set}" = set; then
5917 break
Skip Montanaro89e975f2007-08-22 19:05:21 +00005918fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00005919done
5920if test "${ac_cv_search_opendir+set}" = set; then
5921 :
5922else
5923 ac_cv_search_opendir=no
5924fi
5925rm conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00005926LIBS=$ac_func_search_save_LIBS
5927fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00005928{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5929echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5930ac_res=$ac_cv_search_opendir
5931if test "$ac_res" != no; then
5932 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Michael W. Hudson54241132001-12-07 15:38:26 +00005933
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005934fi
Martin v. Löwis11437992002-04-12 09:54:03 +00005935
Michael W. Hudson54241132001-12-07 15:38:26 +00005936else
Martin v. Löwiseba40652007-08-30 20:10:57 +00005937 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5938echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00005939if test "${ac_cv_search_opendir+set}" = set; then
5940 echo $ECHO_N "(cached) $ECHO_C" >&6
5941else
5942 ac_func_search_save_LIBS=$LIBS
Martin v. Löwis11437992002-04-12 09:54:03 +00005943cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00005944/* confdefs.h. */
5945_ACEOF
5946cat confdefs.h >>conftest.$ac_ext
5947cat >>conftest.$ac_ext <<_ACEOF
5948/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00005949
Martin v. Löwiseba40652007-08-30 20:10:57 +00005950/* Override any GCC internal prototype to avoid an error.
5951 Use char because int might match the return type of a GCC
5952 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +00005953#ifdef __cplusplus
5954extern "C"
5955#endif
Martin v. Löwis11437992002-04-12 09:54:03 +00005956char opendir ();
Martin v. Löwis11437992002-04-12 09:54:03 +00005957int
5958main ()
5959{
Martin v. Löwiseba40652007-08-30 20:10:57 +00005960return opendir ();
Martin v. Löwis11437992002-04-12 09:54:03 +00005961 ;
5962 return 0;
5963}
5964_ACEOF
Martin v. Löwiseba40652007-08-30 20:10:57 +00005965for ac_lib in '' x; do
5966 if test -z "$ac_lib"; then
5967 ac_res="none required"
5968 else
5969 ac_res=-l$ac_lib
Skip Montanaro89e975f2007-08-22 19:05:21 +00005970 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Martin v. Löwiseba40652007-08-30 20:10:57 +00005971 fi
5972 rm -f conftest.$ac_objext conftest$ac_exeext
5973if { (ac_try="$ac_link"
5974case "(($ac_try" in
5975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5976 *) ac_try_echo=$ac_try;;
5977esac
5978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5979 (eval "$ac_link") 2>conftest.er1
Skip Montanaro89e975f2007-08-22 19:05:21 +00005980 ac_status=$?
5981 grep -v '^ *+' conftest.er1 >conftest.err
5982 rm -f conftest.er1
5983 cat conftest.err >&5
5984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00005985 (exit $ac_status); } && {
5986 test -z "$ac_c_werror_flag" ||
5987 test ! -s conftest.err
5988 } && test -s conftest$ac_exeext &&
5989 $as_test_x conftest$ac_exeext; then
5990 ac_cv_search_opendir=$ac_res
Brett Cannon19fab762007-06-02 03:02:29 +00005991else
Skip Montanaro89e975f2007-08-22 19:05:21 +00005992 echo "$as_me: failed program was:" >&5
5993sed 's/^/| /' conftest.$ac_ext >&5
5994
Martin v. Löwiseba40652007-08-30 20:10:57 +00005995
Brett Cannon19fab762007-06-02 03:02:29 +00005996fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00005997
5998rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5999 conftest$ac_exeext
6000 if test "${ac_cv_search_opendir+set}" = set; then
6001 break
Skip Montanaro89e975f2007-08-22 19:05:21 +00006002fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00006003done
6004if test "${ac_cv_search_opendir+set}" = set; then
6005 :
6006else
6007 ac_cv_search_opendir=no
6008fi
6009rm conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00006010LIBS=$ac_func_search_save_LIBS
6011fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00006012{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6013echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
6014ac_res=$ac_cv_search_opendir
6015if test "$ac_res" != no; then
6016 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Martin v. Löwis11437992002-04-12 09:54:03 +00006017
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006018fi
6019
6020fi
Guido van Rossum627b2d71993-12-24 10:39:16 +00006021
Martin v. Löwiseba40652007-08-30 20:10:57 +00006022{ echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
6023echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006024if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
6025 echo $ECHO_N "(cached) $ECHO_C" >&6
6026else
6027 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00006028/* confdefs.h. */
6029_ACEOF
6030cat confdefs.h >>conftest.$ac_ext
6031cat >>conftest.$ac_ext <<_ACEOF
6032/* end confdefs.h. */
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006033#include <sys/types.h>
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006034int
6035main ()
6036{
6037return makedev(0, 0);
6038 ;
6039 return 0;
6040}
6041_ACEOF
6042rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +00006043if { (ac_try="$ac_link"
6044case "(($ac_try" in
6045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6046 *) ac_try_echo=$ac_try;;
6047esac
6048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6049 (eval "$ac_link") 2>conftest.er1
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006050 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00006051 grep -v '^ *+' conftest.er1 >conftest.err
6052 rm -f conftest.er1
6053 cat conftest.err >&5
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00006055 (exit $ac_status); } && {
6056 test -z "$ac_c_werror_flag" ||
6057 test ! -s conftest.err
6058 } && test -s conftest$ac_exeext &&
6059 $as_test_x conftest$ac_exeext; then
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006060 ac_cv_header_sys_types_h_makedev=yes
6061else
6062 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00006063sed 's/^/| /' conftest.$ac_ext >&5
6064
Martin v. Löwiseba40652007-08-30 20:10:57 +00006065 ac_cv_header_sys_types_h_makedev=no
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006066fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00006067
6068rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +00006069 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006070
6071fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00006072{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
6073echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006074
6075if test $ac_cv_header_sys_types_h_makedev = no; then
6076if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
Martin v. Löwiseba40652007-08-30 20:10:57 +00006077 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6078echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006079if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6080 echo $ECHO_N "(cached) $ECHO_C" >&6
6081fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00006082{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6083echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006084else
6085 # Is the header compilable?
Martin v. Löwiseba40652007-08-30 20:10:57 +00006086{ echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
6087echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006088cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00006089/* confdefs.h. */
6090_ACEOF
6091cat confdefs.h >>conftest.$ac_ext
6092cat >>conftest.$ac_ext <<_ACEOF
6093/* end confdefs.h. */
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006094$ac_includes_default
6095#include <sys/mkdev.h>
6096_ACEOF
6097rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00006098if { (ac_try="$ac_compile"
6099case "(($ac_try" in
6100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6101 *) ac_try_echo=$ac_try;;
6102esac
6103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6104 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006105 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00006106 grep -v '^ *+' conftest.er1 >conftest.err
6107 rm -f conftest.er1
6108 cat conftest.err >&5
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00006110 (exit $ac_status); } && {
6111 test -z "$ac_c_werror_flag" ||
6112 test ! -s conftest.err
6113 } && test -s conftest.$ac_objext; then
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006114 ac_header_compiler=yes
6115else
6116 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00006117sed 's/^/| /' conftest.$ac_ext >&5
6118
Martin v. Löwiseba40652007-08-30 20:10:57 +00006119 ac_header_compiler=no
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006120fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00006121
6122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6123{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6124echo "${ECHO_T}$ac_header_compiler" >&6; }
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006125
6126# Is the header present?
Martin v. Löwiseba40652007-08-30 20:10:57 +00006127{ echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
6128echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006129cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00006130/* confdefs.h. */
6131_ACEOF
6132cat confdefs.h >>conftest.$ac_ext
6133cat >>conftest.$ac_ext <<_ACEOF
6134/* end confdefs.h. */
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006135#include <sys/mkdev.h>
6136_ACEOF
Martin v. Löwiseba40652007-08-30 20:10:57 +00006137if { (ac_try="$ac_cpp conftest.$ac_ext"
6138case "(($ac_try" in
6139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6140 *) ac_try_echo=$ac_try;;
6141esac
6142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6143 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006144 ac_status=$?
Skip Montanaro6dead952003-09-25 14:50:04 +00006145 grep -v '^ *+' conftest.er1 >conftest.err
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006146 rm -f conftest.er1
6147 cat conftest.err >&5
6148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00006149 (exit $ac_status); } >/dev/null && {
6150 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6151 test ! -s conftest.err
6152 }; then
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006153 ac_header_preproc=yes
6154else
6155 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00006156sed 's/^/| /' conftest.$ac_ext >&5
6157
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006158 ac_header_preproc=no
6159fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00006160
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006161rm -f conftest.err conftest.$ac_ext
Martin v. Löwiseba40652007-08-30 20:10:57 +00006162{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6163echo "${ECHO_T}$ac_header_preproc" >&6; }
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006164
6165# So? What about this header?
Skip Montanarof0d5f792004-08-15 14:08:23 +00006166case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6167 yes:no: )
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006168 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
6169echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
Skip Montanarof0d5f792004-08-15 14:08:23 +00006170 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
6171echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
6172 ac_header_preproc=yes
Michael W. Hudson30ea2f22004-07-07 17:44:12 +00006173 ;;
Skip Montanarof0d5f792004-08-15 14:08:23 +00006174 no:yes:* )
Michael W. Hudson30ea2f22004-07-07 17:44:12 +00006175 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
6176echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
Skip Montanarof0d5f792004-08-15 14:08:23 +00006177 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
6178echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
6179 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
6180echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
6181 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
6182echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
Michael W. Hudson30ea2f22004-07-07 17:44:12 +00006183 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
6184echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
Skip Montanarof0d5f792004-08-15 14:08:23 +00006185 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
6186echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
Martin v. Löwiseba40652007-08-30 20:10:57 +00006187 ( cat <<\_ASBOX
Georg Brandl464432d2009-05-20 18:24:08 +00006188## -------------------------------------- ##
6189## Report this to http://bugs.python.org/ ##
6190## -------------------------------------- ##
Skip Montanaro6dead952003-09-25 14:50:04 +00006191_ASBOX
Martin v. Löwiseba40652007-08-30 20:10:57 +00006192 ) | sed "s/^/$as_me: WARNING: /" >&2
Skip Montanaro6dead952003-09-25 14:50:04 +00006193 ;;
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006194esac
Martin v. Löwiseba40652007-08-30 20:10:57 +00006195{ echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6196echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006197if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6198 echo $ECHO_N "(cached) $ECHO_C" >&6
6199else
6200 ac_cv_header_sys_mkdev_h=$ac_header_preproc
6201fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00006202{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6203echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006204
6205fi
6206if test $ac_cv_header_sys_mkdev_h = yes; then
6207
6208cat >>confdefs.h <<\_ACEOF
6209#define MAJOR_IN_MKDEV 1
6210_ACEOF
6211
6212fi
6213
6214
6215
6216 if test $ac_cv_header_sys_mkdev_h = no; then
6217 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
Martin v. Löwiseba40652007-08-30 20:10:57 +00006218 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6219echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006220if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6221 echo $ECHO_N "(cached) $ECHO_C" >&6
6222fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00006223{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6224echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006225else
6226 # Is the header compilable?
Martin v. Löwiseba40652007-08-30 20:10:57 +00006227{ echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
6228echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006229cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00006230/* confdefs.h. */
6231_ACEOF
6232cat confdefs.h >>conftest.$ac_ext
6233cat >>conftest.$ac_ext <<_ACEOF
6234/* end confdefs.h. */
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006235$ac_includes_default
6236#include <sys/sysmacros.h>
6237_ACEOF
6238rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00006239if { (ac_try="$ac_compile"
6240case "(($ac_try" in
6241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6242 *) ac_try_echo=$ac_try;;
6243esac
6244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6245 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006246 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00006247 grep -v '^ *+' conftest.er1 >conftest.err
6248 rm -f conftest.er1
6249 cat conftest.err >&5
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00006251 (exit $ac_status); } && {
6252 test -z "$ac_c_werror_flag" ||
6253 test ! -s conftest.err
6254 } && test -s conftest.$ac_objext; then
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006255 ac_header_compiler=yes
6256else
6257 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00006258sed 's/^/| /' conftest.$ac_ext >&5
6259
Martin v. Löwiseba40652007-08-30 20:10:57 +00006260 ac_header_compiler=no
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006261fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00006262
6263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6264{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6265echo "${ECHO_T}$ac_header_compiler" >&6; }
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006266
6267# Is the header present?
Martin v. Löwiseba40652007-08-30 20:10:57 +00006268{ echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
6269echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006270cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00006271/* confdefs.h. */
6272_ACEOF
6273cat confdefs.h >>conftest.$ac_ext
6274cat >>conftest.$ac_ext <<_ACEOF
6275/* end confdefs.h. */
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006276#include <sys/sysmacros.h>
6277_ACEOF
Martin v. Löwiseba40652007-08-30 20:10:57 +00006278if { (ac_try="$ac_cpp conftest.$ac_ext"
6279case "(($ac_try" in
6280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6281 *) ac_try_echo=$ac_try;;
6282esac
6283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6284 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006285 ac_status=$?
Skip Montanaro6dead952003-09-25 14:50:04 +00006286 grep -v '^ *+' conftest.er1 >conftest.err
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006287 rm -f conftest.er1
6288 cat conftest.err >&5
6289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00006290 (exit $ac_status); } >/dev/null && {
6291 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6292 test ! -s conftest.err
6293 }; then
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006294 ac_header_preproc=yes
6295else
6296 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00006297sed 's/^/| /' conftest.$ac_ext >&5
6298
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006299 ac_header_preproc=no
6300fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00006301
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006302rm -f conftest.err conftest.$ac_ext
Martin v. Löwiseba40652007-08-30 20:10:57 +00006303{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6304echo "${ECHO_T}$ac_header_preproc" >&6; }
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006305
6306# So? What about this header?
Skip Montanarof0d5f792004-08-15 14:08:23 +00006307case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6308 yes:no: )
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006309 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
6310echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
Skip Montanarof0d5f792004-08-15 14:08:23 +00006311 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
6312echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
6313 ac_header_preproc=yes
Michael W. Hudson30ea2f22004-07-07 17:44:12 +00006314 ;;
Skip Montanarof0d5f792004-08-15 14:08:23 +00006315 no:yes:* )
Michael W. Hudson30ea2f22004-07-07 17:44:12 +00006316 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
6317echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
Skip Montanarof0d5f792004-08-15 14:08:23 +00006318 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
6319echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
6320 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
6321echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
6322 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
6323echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
Michael W. Hudson30ea2f22004-07-07 17:44:12 +00006324 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
6325echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
Skip Montanarof0d5f792004-08-15 14:08:23 +00006326 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
6327echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
Martin v. Löwiseba40652007-08-30 20:10:57 +00006328 ( cat <<\_ASBOX
Georg Brandl464432d2009-05-20 18:24:08 +00006329## -------------------------------------- ##
6330## Report this to http://bugs.python.org/ ##
6331## -------------------------------------- ##
Skip Montanaro6dead952003-09-25 14:50:04 +00006332_ASBOX
Martin v. Löwiseba40652007-08-30 20:10:57 +00006333 ) | sed "s/^/$as_me: WARNING: /" >&2
Skip Montanaro6dead952003-09-25 14:50:04 +00006334 ;;
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006335esac
Martin v. Löwiseba40652007-08-30 20:10:57 +00006336{ echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6337echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006338if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6339 echo $ECHO_N "(cached) $ECHO_C" >&6
6340else
6341 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
6342fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00006343{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6344echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006345
6346fi
6347if test $ac_cv_header_sys_sysmacros_h = yes; then
6348
6349cat >>confdefs.h <<\_ACEOF
6350#define MAJOR_IN_SYSMACROS 1
6351_ACEOF
6352
6353fi
6354
6355
6356 fi
6357fi
6358
Michael W. Hudson54241132001-12-07 15:38:26 +00006359
Martin v. Löwisae2830c2004-09-18 09:54:52 +00006360# On Solaris, term.h requires curses.h
Martin v. Löwisfd1c69e2004-11-30 22:09:37 +00006361
6362for ac_header in term.h
6363do
6364as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Martin v. Löwiseba40652007-08-30 20:10:57 +00006365{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6366echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6367if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Martin v. Löwisae2830c2004-09-18 09:54:52 +00006368 echo $ECHO_N "(cached) $ECHO_C" >&6
6369else
6370 cat >conftest.$ac_ext <<_ACEOF
6371/* confdefs.h. */
6372_ACEOF
6373cat confdefs.h >>conftest.$ac_ext
6374cat >>conftest.$ac_ext <<_ACEOF
6375/* end confdefs.h. */
Martin v. Löwisae2830c2004-09-18 09:54:52 +00006376
Martin v. Löwis5d52e782004-09-18 10:07:03 +00006377#ifdef HAVE_CURSES_H
6378#include <curses.h>
6379#endif
6380
6381
Martin v. Löwisfd1c69e2004-11-30 22:09:37 +00006382#include <$ac_header>
Martin v. Löwisae2830c2004-09-18 09:54:52 +00006383_ACEOF
6384rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00006385if { (ac_try="$ac_compile"
6386case "(($ac_try" in
6387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6388 *) ac_try_echo=$ac_try;;
6389esac
6390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6391 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwisae2830c2004-09-18 09:54:52 +00006392 ac_status=$?
6393 grep -v '^ *+' conftest.er1 >conftest.err
6394 rm -f conftest.er1
6395 cat conftest.err >&5
6396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00006397 (exit $ac_status); } && {
6398 test -z "$ac_c_werror_flag" ||
6399 test ! -s conftest.err
6400 } && test -s conftest.$ac_objext; then
Martin v. Löwisfd1c69e2004-11-30 22:09:37 +00006401 eval "$as_ac_Header=yes"
Martin v. Löwisae2830c2004-09-18 09:54:52 +00006402else
6403 echo "$as_me: failed program was:" >&5
6404sed 's/^/| /' conftest.$ac_ext >&5
6405
Martin v. Löwiseba40652007-08-30 20:10:57 +00006406 eval "$as_ac_Header=no"
Martin v. Löwisae2830c2004-09-18 09:54:52 +00006407fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00006408
6409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwisae2830c2004-09-18 09:54:52 +00006410fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00006411ac_res=`eval echo '${'$as_ac_Header'}'`
6412 { echo "$as_me:$LINENO: result: $ac_res" >&5
6413echo "${ECHO_T}$ac_res" >&6; }
Martin v. Löwisfd1c69e2004-11-30 22:09:37 +00006414if test `eval echo '${'$as_ac_Header'}'` = yes; then
6415 cat >>confdefs.h <<_ACEOF
6416#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6417_ACEOF
Martin v. Löwisae2830c2004-09-18 09:54:52 +00006418
Martin v. Löwisfd1c69e2004-11-30 22:09:37 +00006419fi
6420
6421done
Martin v. Löwisae2830c2004-09-18 09:54:52 +00006422
6423
Martin v. Löwis11017b12006-01-14 18:12:57 +00006424# On Linux, netlink.h requires asm/types.h
6425
6426for ac_header in linux/netlink.h
6427do
6428as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Martin v. Löwiseba40652007-08-30 20:10:57 +00006429{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6430echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6431if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Martin v. Löwis11017b12006-01-14 18:12:57 +00006432 echo $ECHO_N "(cached) $ECHO_C" >&6
6433else
6434 cat >conftest.$ac_ext <<_ACEOF
6435/* confdefs.h. */
6436_ACEOF
6437cat confdefs.h >>conftest.$ac_ext
6438cat >>conftest.$ac_ext <<_ACEOF
6439/* end confdefs.h. */
6440
6441#ifdef HAVE_ASM_TYPES_H
6442#include <asm/types.h>
6443#endif
6444#ifdef HAVE_SYS_SOCKET_H
6445#include <sys/socket.h>
6446#endif
6447
6448
6449#include <$ac_header>
6450_ACEOF
6451rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00006452if { (ac_try="$ac_compile"
6453case "(($ac_try" in
6454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6455 *) ac_try_echo=$ac_try;;
6456esac
6457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6458 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11017b12006-01-14 18:12:57 +00006459 ac_status=$?
6460 grep -v '^ *+' conftest.er1 >conftest.err
6461 rm -f conftest.er1
6462 cat conftest.err >&5
6463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00006464 (exit $ac_status); } && {
6465 test -z "$ac_c_werror_flag" ||
6466 test ! -s conftest.err
6467 } && test -s conftest.$ac_objext; then
Martin v. Löwis11017b12006-01-14 18:12:57 +00006468 eval "$as_ac_Header=yes"
6469else
6470 echo "$as_me: failed program was:" >&5
6471sed 's/^/| /' conftest.$ac_ext >&5
6472
Martin v. Löwiseba40652007-08-30 20:10:57 +00006473 eval "$as_ac_Header=no"
Martin v. Löwis11017b12006-01-14 18:12:57 +00006474fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00006475
6476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11017b12006-01-14 18:12:57 +00006477fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00006478ac_res=`eval echo '${'$as_ac_Header'}'`
6479 { echo "$as_me:$LINENO: result: $ac_res" >&5
6480echo "${ECHO_T}$ac_res" >&6; }
Martin v. Löwis11017b12006-01-14 18:12:57 +00006481if test `eval echo '${'$as_ac_Header'}'` = yes; then
6482 cat >>confdefs.h <<_ACEOF
6483#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6484_ACEOF
6485
6486fi
6487
6488done
6489
6490
Guido van Rossum627b2d71993-12-24 10:39:16 +00006491# checks for typedefs
Guido van Rossumda88dad1995-01-26 00:46:29 +00006492was_it_defined=no
Martin v. Löwiseba40652007-08-30 20:10:57 +00006493{ echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
6494echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00006495cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00006496/* confdefs.h. */
6497_ACEOF
6498cat confdefs.h >>conftest.$ac_ext
6499cat >>conftest.$ac_ext <<_ACEOF
6500/* end confdefs.h. */
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006501#include <time.h>
Martin v. Löwis11437992002-04-12 09:54:03 +00006502
6503_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006504if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Skip Montanaro6dead952003-09-25 14:50:04 +00006505 $EGREP "clock_t" >/dev/null 2>&1; then
Guido van Rossumda88dad1995-01-26 00:46:29 +00006506 was_it_defined=yes
Guido van Rossum627b2d71993-12-24 10:39:16 +00006507else
Martin v. Löwis11437992002-04-12 09:54:03 +00006508
6509
6510cat >>confdefs.h <<\_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006511#define clock_t long
Martin v. Löwis11437992002-04-12 09:54:03 +00006512_ACEOF
Guido van Rossum627b2d71993-12-24 10:39:16 +00006513
Martin v. Löwisc45929e2002-04-06 10:10:49 +00006514
Guido van Rossum627b2d71993-12-24 10:39:16 +00006515fi
6516rm -f conftest*
6517
Martin v. Löwiseba40652007-08-30 20:10:57 +00006518{ echo "$as_me:$LINENO: result: $was_it_defined" >&5
6519echo "${ECHO_T}$was_it_defined" >&6; }
Guido van Rossumda88dad1995-01-26 00:46:29 +00006520
Neal Norwitz11690112002-07-30 01:08:28 +00006521# Check whether using makedev requires defining _OSF_SOURCE
Martin v. Löwiseba40652007-08-30 20:10:57 +00006522{ echo "$as_me:$LINENO: checking for makedev" >&5
6523echo $ECHO_N "checking for makedev... $ECHO_C" >&6; }
Neal Norwitz11690112002-07-30 01:08:28 +00006524cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00006525/* confdefs.h. */
6526_ACEOF
6527cat confdefs.h >>conftest.$ac_ext
6528cat >>conftest.$ac_ext <<_ACEOF
6529/* end confdefs.h. */
Neal Norwitz6eb37f02003-02-23 23:28:15 +00006530#include <sys/types.h>
Neal Norwitz11690112002-07-30 01:08:28 +00006531int
6532main ()
6533{
6534 makedev(0, 0)
6535 ;
6536 return 0;
6537}
6538_ACEOF
6539rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +00006540if { (ac_try="$ac_link"
6541case "(($ac_try" in
6542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6543 *) ac_try_echo=$ac_try;;
6544esac
6545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6546 (eval "$ac_link") 2>conftest.er1
Neal Norwitz11690112002-07-30 01:08:28 +00006547 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00006548 grep -v '^ *+' conftest.er1 >conftest.err
6549 rm -f conftest.er1
6550 cat conftest.err >&5
Neal Norwitz11690112002-07-30 01:08:28 +00006551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00006552 (exit $ac_status); } && {
6553 test -z "$ac_c_werror_flag" ||
6554 test ! -s conftest.err
6555 } && test -s conftest$ac_exeext &&
6556 $as_test_x conftest$ac_exeext; then
Neal Norwitz11690112002-07-30 01:08:28 +00006557 ac_cv_has_makedev=yes
6558else
6559 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00006560sed 's/^/| /' conftest.$ac_ext >&5
6561
Martin v. Löwiseba40652007-08-30 20:10:57 +00006562 ac_cv_has_makedev=no
Neal Norwitz11690112002-07-30 01:08:28 +00006563fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00006564
6565rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +00006566 conftest$ac_exeext conftest.$ac_ext
Neal Norwitz11690112002-07-30 01:08:28 +00006567if test "$ac_cv_has_makedev" = "no"; then
6568 # we didn't link, try if _OSF_SOURCE will allow us to link
6569 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00006570/* confdefs.h. */
6571_ACEOF
6572cat confdefs.h >>conftest.$ac_ext
6573cat >>conftest.$ac_ext <<_ACEOF
6574/* end confdefs.h. */
Neal Norwitz11690112002-07-30 01:08:28 +00006575
Neal Norwitz6eb37f02003-02-23 23:28:15 +00006576#define _OSF_SOURCE 1
6577#include <sys/types.h>
Neal Norwitz11690112002-07-30 01:08:28 +00006578
Neal Norwitz11690112002-07-30 01:08:28 +00006579int
6580main ()
6581{
6582 makedev(0, 0)
6583 ;
6584 return 0;
6585}
6586_ACEOF
6587rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +00006588if { (ac_try="$ac_link"
6589case "(($ac_try" in
6590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6591 *) ac_try_echo=$ac_try;;
6592esac
6593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6594 (eval "$ac_link") 2>conftest.er1
Neal Norwitz11690112002-07-30 01:08:28 +00006595 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00006596 grep -v '^ *+' conftest.er1 >conftest.err
6597 rm -f conftest.er1
6598 cat conftest.err >&5
Neal Norwitz11690112002-07-30 01:08:28 +00006599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00006600 (exit $ac_status); } && {
6601 test -z "$ac_c_werror_flag" ||
6602 test ! -s conftest.err
6603 } && test -s conftest$ac_exeext &&
6604 $as_test_x conftest$ac_exeext; then
Neal Norwitz11690112002-07-30 01:08:28 +00006605 ac_cv_has_makedev=yes
6606else
6607 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00006608sed 's/^/| /' conftest.$ac_ext >&5
6609
Martin v. Löwiseba40652007-08-30 20:10:57 +00006610 ac_cv_has_makedev=no
Neal Norwitz11690112002-07-30 01:08:28 +00006611fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00006612
6613rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +00006614 conftest$ac_exeext conftest.$ac_ext
Neal Norwitz11690112002-07-30 01:08:28 +00006615 if test "$ac_cv_has_makedev" = "yes"; then
6616
6617cat >>confdefs.h <<\_ACEOF
6618#define _OSF_SOURCE 1
6619_ACEOF
6620
6621 fi
6622fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00006623{ echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
6624echo "${ECHO_T}$ac_cv_has_makedev" >&6; }
Neal Norwitz11690112002-07-30 01:08:28 +00006625if test "$ac_cv_has_makedev" = "yes"; then
6626
6627cat >>confdefs.h <<\_ACEOF
6628#define HAVE_MAKEDEV 1
6629_ACEOF
6630
6631fi
6632
Martin v. Löwis399a6892002-10-04 10:22:02 +00006633# Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
6634# the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
6635# defined, but the compiler does not support pragma redefine_extname,
6636# and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
6637# structures (such as rlimit64) without declaring them. As a
6638# work-around, disable LFS on such configurations
6639
6640use_lfs=yes
Martin v. Löwiseba40652007-08-30 20:10:57 +00006641{ echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
6642echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6; }
Martin v. Löwis399a6892002-10-04 10:22:02 +00006643cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00006644/* confdefs.h. */
6645_ACEOF
6646cat confdefs.h >>conftest.$ac_ext
6647cat >>conftest.$ac_ext <<_ACEOF
6648/* end confdefs.h. */
Martin v. Löwis399a6892002-10-04 10:22:02 +00006649
6650#define _LARGEFILE_SOURCE 1
6651#define _FILE_OFFSET_BITS 64
6652#include <sys/resource.h>
6653
Martin v. Löwis399a6892002-10-04 10:22:02 +00006654int
6655main ()
6656{
6657struct rlimit foo;
6658 ;
6659 return 0;
6660}
6661_ACEOF
6662rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00006663if { (ac_try="$ac_compile"
6664case "(($ac_try" in
6665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6666 *) ac_try_echo=$ac_try;;
6667esac
6668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6669 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis399a6892002-10-04 10:22:02 +00006670 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00006671 grep -v '^ *+' conftest.er1 >conftest.err
6672 rm -f conftest.er1
6673 cat conftest.err >&5
Martin v. Löwis399a6892002-10-04 10:22:02 +00006674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00006675 (exit $ac_status); } && {
6676 test -z "$ac_c_werror_flag" ||
6677 test ! -s conftest.err
6678 } && test -s conftest.$ac_objext; then
Martin v. Löwis399a6892002-10-04 10:22:02 +00006679 sol_lfs_bug=no
6680else
6681 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00006682sed 's/^/| /' conftest.$ac_ext >&5
6683
Martin v. Löwiseba40652007-08-30 20:10:57 +00006684 sol_lfs_bug=yes
Martin v. Löwis399a6892002-10-04 10:22:02 +00006685fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00006686
6687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6688{ echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
6689echo "${ECHO_T}$sol_lfs_bug" >&6; }
Martin v. Löwis399a6892002-10-04 10:22:02 +00006690if test "$sol_lfs_bug" = "yes"; then
6691 use_lfs=no
6692fi
6693
6694if test "$use_lfs" = "yes"; then
Guido van Rossum810cc512001-09-09 23:51:39 +00006695# Two defines needed to enable largefile support on various platforms
6696# These may affect some typedefs
Guido van Rossum810cc512001-09-09 23:51:39 +00006697
Martin v. Löwis11437992002-04-12 09:54:03 +00006698cat >>confdefs.h <<\_ACEOF
6699#define _LARGEFILE_SOURCE 1
6700_ACEOF
6701
6702
6703cat >>confdefs.h <<\_ACEOF
Guido van Rossum810cc512001-09-09 23:51:39 +00006704#define _FILE_OFFSET_BITS 64
Martin v. Löwis11437992002-04-12 09:54:03 +00006705_ACEOF
Guido van Rossum810cc512001-09-09 23:51:39 +00006706
Martin v. Löwis399a6892002-10-04 10:22:02 +00006707fi
Michael W. Hudson54241132001-12-07 15:38:26 +00006708
Guido van Rossum84e7b241996-08-19 21:59:00 +00006709# Add some code to confdefs.h so that the test for off_t works on SCO
6710cat >> confdefs.h <<\EOF
6711#if defined(SCO_DS)
6712#undef _OFF_T
6713#endif
6714EOF
6715
Guido van Rossumef2255b2000-03-10 22:30:29 +00006716# Type availability checks
Martin v. Löwiseba40652007-08-30 20:10:57 +00006717{ echo "$as_me:$LINENO: checking for mode_t" >&5
6718echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00006719if test "${ac_cv_type_mode_t+set}" = set; then
6720 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006721else
Martin v. Löwis11437992002-04-12 09:54:03 +00006722 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00006723/* confdefs.h. */
6724_ACEOF
6725cat confdefs.h >>conftest.$ac_ext
6726cat >>conftest.$ac_ext <<_ACEOF
6727/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00006728$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00006729typedef mode_t ac__type_new_;
Martin v. Löwis11437992002-04-12 09:54:03 +00006730int
6731main ()
6732{
Martin v. Löwiseba40652007-08-30 20:10:57 +00006733if ((ac__type_new_ *) 0)
Martin v. Löwis11437992002-04-12 09:54:03 +00006734 return 0;
Martin v. Löwiseba40652007-08-30 20:10:57 +00006735if (sizeof (ac__type_new_))
Martin v. Löwis11437992002-04-12 09:54:03 +00006736 return 0;
6737 ;
6738 return 0;
6739}
6740_ACEOF
6741rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00006742if { (ac_try="$ac_compile"
6743case "(($ac_try" in
6744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6745 *) ac_try_echo=$ac_try;;
6746esac
6747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6748 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00006749 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00006750 grep -v '^ *+' conftest.er1 >conftest.err
6751 rm -f conftest.er1
6752 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00006753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00006754 (exit $ac_status); } && {
6755 test -z "$ac_c_werror_flag" ||
6756 test ! -s conftest.err
6757 } && test -s conftest.$ac_objext; then
Jack Jansendd19cf82001-12-06 22:36:17 +00006758 ac_cv_type_mode_t=yes
6759else
Martin v. Löwis11437992002-04-12 09:54:03 +00006760 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00006761sed 's/^/| /' conftest.$ac_ext >&5
6762
Martin v. Löwiseba40652007-08-30 20:10:57 +00006763 ac_cv_type_mode_t=no
Jack Jansendd19cf82001-12-06 22:36:17 +00006764fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00006765
6766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Michael W. Hudson54241132001-12-07 15:38:26 +00006767fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00006768{ echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6769echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00006770if test $ac_cv_type_mode_t = yes; then
6771 :
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006772else
Martin v. Löwis11437992002-04-12 09:54:03 +00006773
6774cat >>confdefs.h <<_ACEOF
6775#define mode_t int
6776_ACEOF
6777
6778fi
6779
Martin v. Löwiseba40652007-08-30 20:10:57 +00006780{ echo "$as_me:$LINENO: checking for off_t" >&5
6781echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00006782if test "${ac_cv_type_off_t+set}" = set; then
6783 echo $ECHO_N "(cached) $ECHO_C" >&6
6784else
6785 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00006786/* confdefs.h. */
6787_ACEOF
6788cat confdefs.h >>conftest.$ac_ext
6789cat >>conftest.$ac_ext <<_ACEOF
6790/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00006791$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00006792typedef off_t ac__type_new_;
Martin v. Löwis11437992002-04-12 09:54:03 +00006793int
6794main ()
6795{
Martin v. Löwiseba40652007-08-30 20:10:57 +00006796if ((ac__type_new_ *) 0)
Martin v. Löwis11437992002-04-12 09:54:03 +00006797 return 0;
Martin v. Löwiseba40652007-08-30 20:10:57 +00006798if (sizeof (ac__type_new_))
Martin v. Löwis11437992002-04-12 09:54:03 +00006799 return 0;
6800 ;
6801 return 0;
6802}
6803_ACEOF
6804rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00006805if { (ac_try="$ac_compile"
6806case "(($ac_try" in
6807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6808 *) ac_try_echo=$ac_try;;
6809esac
6810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6811 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00006812 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00006813 grep -v '^ *+' conftest.er1 >conftest.err
6814 rm -f conftest.er1
6815 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00006816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00006817 (exit $ac_status); } && {
6818 test -z "$ac_c_werror_flag" ||
6819 test ! -s conftest.err
6820 } && test -s conftest.$ac_objext; then
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00006821 ac_cv_type_off_t=yes
Guido van Rossum627b2d71993-12-24 10:39:16 +00006822else
Martin v. Löwis11437992002-04-12 09:54:03 +00006823 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00006824sed 's/^/| /' conftest.$ac_ext >&5
6825
Martin v. Löwiseba40652007-08-30 20:10:57 +00006826 ac_cv_type_off_t=no
Guido van Rossum627b2d71993-12-24 10:39:16 +00006827fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00006828
6829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Michael W. Hudson54241132001-12-07 15:38:26 +00006830fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00006831{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6832echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00006833if test $ac_cv_type_off_t = yes; then
6834 :
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006835else
Martin v. Löwis11437992002-04-12 09:54:03 +00006836
6837cat >>confdefs.h <<_ACEOF
Martin v. Löwiseba40652007-08-30 20:10:57 +00006838#define off_t long int
Martin v. Löwis11437992002-04-12 09:54:03 +00006839_ACEOF
6840
6841fi
6842
Martin v. Löwiseba40652007-08-30 20:10:57 +00006843{ echo "$as_me:$LINENO: checking for pid_t" >&5
6844echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00006845if test "${ac_cv_type_pid_t+set}" = set; then
6846 echo $ECHO_N "(cached) $ECHO_C" >&6
6847else
6848 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00006849/* confdefs.h. */
6850_ACEOF
6851cat confdefs.h >>conftest.$ac_ext
6852cat >>conftest.$ac_ext <<_ACEOF
6853/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00006854$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00006855typedef pid_t ac__type_new_;
Martin v. Löwis11437992002-04-12 09:54:03 +00006856int
6857main ()
6858{
Martin v. Löwiseba40652007-08-30 20:10:57 +00006859if ((ac__type_new_ *) 0)
Martin v. Löwis11437992002-04-12 09:54:03 +00006860 return 0;
Martin v. Löwiseba40652007-08-30 20:10:57 +00006861if (sizeof (ac__type_new_))
Martin v. Löwis11437992002-04-12 09:54:03 +00006862 return 0;
6863 ;
6864 return 0;
6865}
6866_ACEOF
6867rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00006868if { (ac_try="$ac_compile"
6869case "(($ac_try" in
6870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6871 *) ac_try_echo=$ac_try;;
6872esac
6873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6874 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00006875 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00006876 grep -v '^ *+' conftest.er1 >conftest.err
6877 rm -f conftest.er1
6878 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00006879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00006880 (exit $ac_status); } && {
6881 test -z "$ac_c_werror_flag" ||
6882 test ! -s conftest.err
6883 } && test -s conftest.$ac_objext; then
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00006884 ac_cv_type_pid_t=yes
Guido van Rossum627b2d71993-12-24 10:39:16 +00006885else
Martin v. Löwis11437992002-04-12 09:54:03 +00006886 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00006887sed 's/^/| /' conftest.$ac_ext >&5
6888
Martin v. Löwiseba40652007-08-30 20:10:57 +00006889 ac_cv_type_pid_t=no
Guido van Rossum627b2d71993-12-24 10:39:16 +00006890fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00006891
6892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Michael W. Hudson54241132001-12-07 15:38:26 +00006893fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00006894{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6895echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00006896if test $ac_cv_type_pid_t = yes; then
6897 :
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006898else
Martin v. Löwis11437992002-04-12 09:54:03 +00006899
6900cat >>confdefs.h <<_ACEOF
6901#define pid_t int
6902_ACEOF
6903
6904fi
6905
Martin v. Löwiseba40652007-08-30 20:10:57 +00006906{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6907echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00006908if test "${ac_cv_type_signal+set}" = set; then
6909 echo $ECHO_N "(cached) $ECHO_C" >&6
6910else
6911 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00006912/* confdefs.h. */
6913_ACEOF
6914cat confdefs.h >>conftest.$ac_ext
6915cat >>conftest.$ac_ext <<_ACEOF
6916/* end confdefs.h. */
Guido van Rossum627b2d71993-12-24 10:39:16 +00006917#include <sys/types.h>
6918#include <signal.h>
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00006919
Martin v. Löwis11437992002-04-12 09:54:03 +00006920int
6921main ()
6922{
Martin v. Löwiseba40652007-08-30 20:10:57 +00006923return *(signal (0, 0)) (0) == 1;
Martin v. Löwis11437992002-04-12 09:54:03 +00006924 ;
6925 return 0;
6926}
6927_ACEOF
6928rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00006929if { (ac_try="$ac_compile"
6930case "(($ac_try" in
6931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6932 *) ac_try_echo=$ac_try;;
6933esac
6934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6935 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00006936 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00006937 grep -v '^ *+' conftest.er1 >conftest.err
6938 rm -f conftest.er1
6939 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00006940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00006941 (exit $ac_status); } && {
6942 test -z "$ac_c_werror_flag" ||
6943 test ! -s conftest.err
6944 } && test -s conftest.$ac_objext; then
6945 ac_cv_type_signal=int
Guido van Rossum627b2d71993-12-24 10:39:16 +00006946else
Martin v. Löwis11437992002-04-12 09:54:03 +00006947 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00006948sed 's/^/| /' conftest.$ac_ext >&5
6949
Martin v. Löwiseba40652007-08-30 20:10:57 +00006950 ac_cv_type_signal=void
Guido van Rossum627b2d71993-12-24 10:39:16 +00006951fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00006952
6953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006954fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00006955{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6956echo "${ECHO_T}$ac_cv_type_signal" >&6; }
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00006957
Martin v. Löwis11437992002-04-12 09:54:03 +00006958cat >>confdefs.h <<_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006959#define RETSIGTYPE $ac_cv_type_signal
Martin v. Löwis11437992002-04-12 09:54:03 +00006960_ACEOF
Guido van Rossum627b2d71993-12-24 10:39:16 +00006961
Michael W. Hudson54241132001-12-07 15:38:26 +00006962
Martin v. Löwiseba40652007-08-30 20:10:57 +00006963{ echo "$as_me:$LINENO: checking for size_t" >&5
6964echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00006965if test "${ac_cv_type_size_t+set}" = set; then
6966 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006967else
Martin v. Löwis11437992002-04-12 09:54:03 +00006968 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00006969/* confdefs.h. */
6970_ACEOF
6971cat confdefs.h >>conftest.$ac_ext
6972cat >>conftest.$ac_ext <<_ACEOF
6973/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00006974$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00006975typedef size_t ac__type_new_;
Martin v. Löwis11437992002-04-12 09:54:03 +00006976int
6977main ()
6978{
Martin v. Löwiseba40652007-08-30 20:10:57 +00006979if ((ac__type_new_ *) 0)
Martin v. Löwis11437992002-04-12 09:54:03 +00006980 return 0;
Martin v. Löwiseba40652007-08-30 20:10:57 +00006981if (sizeof (ac__type_new_))
Martin v. Löwis11437992002-04-12 09:54:03 +00006982 return 0;
6983 ;
6984 return 0;
6985}
6986_ACEOF
6987rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00006988if { (ac_try="$ac_compile"
6989case "(($ac_try" in
6990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6991 *) ac_try_echo=$ac_try;;
6992esac
6993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6994 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00006995 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00006996 grep -v '^ *+' conftest.er1 >conftest.err
6997 rm -f conftest.er1
6998 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00006999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00007000 (exit $ac_status); } && {
7001 test -z "$ac_c_werror_flag" ||
7002 test ! -s conftest.err
7003 } && test -s conftest.$ac_objext; then
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00007004 ac_cv_type_size_t=yes
Guido van Rossum627b2d71993-12-24 10:39:16 +00007005else
Martin v. Löwis11437992002-04-12 09:54:03 +00007006 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00007007sed 's/^/| /' conftest.$ac_ext >&5
7008
Martin v. Löwiseba40652007-08-30 20:10:57 +00007009 ac_cv_type_size_t=no
Guido van Rossum627b2d71993-12-24 10:39:16 +00007010fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00007011
7012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Michael W. Hudson54241132001-12-07 15:38:26 +00007013fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00007014{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7015echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00007016if test $ac_cv_type_size_t = yes; then
7017 :
Guido van Rossum76be6ed1995-01-02 18:33:54 +00007018else
Martin v. Löwis11437992002-04-12 09:54:03 +00007019
7020cat >>confdefs.h <<_ACEOF
Martin v. Löwiseba40652007-08-30 20:10:57 +00007021#define size_t unsigned int
Martin v. Löwis11437992002-04-12 09:54:03 +00007022_ACEOF
7023
7024fi
7025
Martin v. Löwiseba40652007-08-30 20:10:57 +00007026{ echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7027echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00007028if test "${ac_cv_type_uid_t+set}" = set; then
7029 echo $ECHO_N "(cached) $ECHO_C" >&6
7030else
7031 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00007032/* confdefs.h. */
7033_ACEOF
7034cat confdefs.h >>conftest.$ac_ext
7035cat >>conftest.$ac_ext <<_ACEOF
7036/* end confdefs.h. */
Guido van Rossum76be6ed1995-01-02 18:33:54 +00007037#include <sys/types.h>
Martin v. Löwis11437992002-04-12 09:54:03 +00007038
7039_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +00007040if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Skip Montanaro6dead952003-09-25 14:50:04 +00007041 $EGREP "uid_t" >/dev/null 2>&1; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +00007042 ac_cv_type_uid_t=yes
7043else
Guido van Rossum76be6ed1995-01-02 18:33:54 +00007044 ac_cv_type_uid_t=no
7045fi
Guido van Rossum627b2d71993-12-24 10:39:16 +00007046rm -f conftest*
7047
Guido van Rossum76be6ed1995-01-02 18:33:54 +00007048fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00007049{ echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7050echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
Michael W. Hudson54241132001-12-07 15:38:26 +00007051if test $ac_cv_type_uid_t = no; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +00007052
Martin v. Löwis11437992002-04-12 09:54:03 +00007053cat >>confdefs.h <<\_ACEOF
7054#define uid_t int
7055_ACEOF
7056
7057
7058cat >>confdefs.h <<\_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +00007059#define gid_t int
Martin v. Löwis11437992002-04-12 09:54:03 +00007060_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +00007061
7062fi
7063
Mark Dickinsonefc82f72009-03-20 15:51:55 +00007064
7065 { echo "$as_me:$LINENO: checking for uint32_t" >&5
7066echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
7067if test "${ac_cv_c_uint32_t+set}" = set; then
7068 echo $ECHO_N "(cached) $ECHO_C" >&6
7069else
7070 ac_cv_c_uint32_t=no
7071 for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
7072 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7073 cat >conftest.$ac_ext <<_ACEOF
7074/* confdefs.h. */
7075_ACEOF
7076cat confdefs.h >>conftest.$ac_ext
7077cat >>conftest.$ac_ext <<_ACEOF
7078/* end confdefs.h. */
7079$ac_includes_default
7080int
7081main ()
7082{
7083static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
7084test_array [0] = 0
7085
7086 ;
7087 return 0;
7088}
7089_ACEOF
7090rm -f conftest.$ac_objext
7091if { (ac_try="$ac_compile"
7092case "(($ac_try" in
7093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7094 *) ac_try_echo=$ac_try;;
7095esac
7096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7097 (eval "$ac_compile") 2>conftest.er1
7098 ac_status=$?
7099 grep -v '^ *+' conftest.er1 >conftest.err
7100 rm -f conftest.er1
7101 cat conftest.err >&5
7102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7103 (exit $ac_status); } && {
7104 test -z "$ac_c_werror_flag" ||
7105 test ! -s conftest.err
7106 } && test -s conftest.$ac_objext; then
7107 case $ac_type in
7108 uint32_t) ac_cv_c_uint32_t=yes ;;
7109 *) ac_cv_c_uint32_t=$ac_type ;;
7110esac
7111
7112else
7113 echo "$as_me: failed program was:" >&5
7114sed 's/^/| /' conftest.$ac_ext >&5
7115
7116
7117fi
7118
7119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7120 test "$ac_cv_c_uint32_t" != no && break
7121 done
7122fi
7123{ echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
7124echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; }
7125 case $ac_cv_c_uint32_t in #(
7126 no|yes) ;; #(
7127 *)
7128
7129cat >>confdefs.h <<\_ACEOF
7130#define _UINT32_T 1
7131_ACEOF
7132
7133
7134cat >>confdefs.h <<_ACEOF
7135#define uint32_t $ac_cv_c_uint32_t
7136_ACEOF
7137;;
7138 esac
7139
7140
7141 { echo "$as_me:$LINENO: checking for uint64_t" >&5
7142echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
7143if test "${ac_cv_c_uint64_t+set}" = set; then
7144 echo $ECHO_N "(cached) $ECHO_C" >&6
7145else
7146 ac_cv_c_uint64_t=no
7147 for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \
7148 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7149 cat >conftest.$ac_ext <<_ACEOF
7150/* confdefs.h. */
7151_ACEOF
7152cat confdefs.h >>conftest.$ac_ext
7153cat >>conftest.$ac_ext <<_ACEOF
7154/* end confdefs.h. */
7155$ac_includes_default
7156int
7157main ()
7158{
7159static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
7160test_array [0] = 0
7161
7162 ;
7163 return 0;
7164}
7165_ACEOF
7166rm -f conftest.$ac_objext
7167if { (ac_try="$ac_compile"
7168case "(($ac_try" in
7169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7170 *) ac_try_echo=$ac_try;;
7171esac
7172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7173 (eval "$ac_compile") 2>conftest.er1
7174 ac_status=$?
7175 grep -v '^ *+' conftest.er1 >conftest.err
7176 rm -f conftest.er1
7177 cat conftest.err >&5
7178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7179 (exit $ac_status); } && {
7180 test -z "$ac_c_werror_flag" ||
7181 test ! -s conftest.err
7182 } && test -s conftest.$ac_objext; then
7183 case $ac_type in
7184 uint64_t) ac_cv_c_uint64_t=yes ;;
7185 *) ac_cv_c_uint64_t=$ac_type ;;
7186esac
7187
7188else
7189 echo "$as_me: failed program was:" >&5
7190sed 's/^/| /' conftest.$ac_ext >&5
7191
7192
7193fi
7194
7195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7196 test "$ac_cv_c_uint64_t" != no && break
7197 done
7198fi
7199{ echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
7200echo "${ECHO_T}$ac_cv_c_uint64_t" >&6; }
7201 case $ac_cv_c_uint64_t in #(
7202 no|yes) ;; #(
7203 *)
7204
7205cat >>confdefs.h <<\_ACEOF
7206#define _UINT64_T 1
7207_ACEOF
7208
7209
7210cat >>confdefs.h <<_ACEOF
7211#define uint64_t $ac_cv_c_uint64_t
7212_ACEOF
7213;;
7214 esac
7215
7216
7217 { echo "$as_me:$LINENO: checking for int32_t" >&5
7218echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
7219if test "${ac_cv_c_int32_t+set}" = set; then
7220 echo $ECHO_N "(cached) $ECHO_C" >&6
7221else
7222 ac_cv_c_int32_t=no
7223 for ac_type in 'int32_t' 'int' 'long int' \
7224 'long long int' 'short int' 'signed char'; do
7225 cat >conftest.$ac_ext <<_ACEOF
7226/* confdefs.h. */
7227_ACEOF
7228cat confdefs.h >>conftest.$ac_ext
7229cat >>conftest.$ac_ext <<_ACEOF
7230/* end confdefs.h. */
7231$ac_includes_default
7232int
7233main ()
7234{
7235static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
7236test_array [0] = 0
7237
7238 ;
7239 return 0;
7240}
7241_ACEOF
7242rm -f conftest.$ac_objext
7243if { (ac_try="$ac_compile"
7244case "(($ac_try" in
7245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7246 *) ac_try_echo=$ac_try;;
7247esac
7248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7249 (eval "$ac_compile") 2>conftest.er1
7250 ac_status=$?
7251 grep -v '^ *+' conftest.er1 >conftest.err
7252 rm -f conftest.er1
7253 cat conftest.err >&5
7254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7255 (exit $ac_status); } && {
7256 test -z "$ac_c_werror_flag" ||
7257 test ! -s conftest.err
7258 } && test -s conftest.$ac_objext; then
7259 cat >conftest.$ac_ext <<_ACEOF
7260/* confdefs.h. */
7261_ACEOF
7262cat confdefs.h >>conftest.$ac_ext
7263cat >>conftest.$ac_ext <<_ACEOF
7264/* end confdefs.h. */
7265$ac_includes_default
7266int
7267main ()
7268{
7269static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
7270 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
7271test_array [0] = 0
7272
7273 ;
7274 return 0;
7275}
7276_ACEOF
7277rm -f conftest.$ac_objext
7278if { (ac_try="$ac_compile"
7279case "(($ac_try" in
7280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7281 *) ac_try_echo=$ac_try;;
7282esac
7283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7284 (eval "$ac_compile") 2>conftest.er1
7285 ac_status=$?
7286 grep -v '^ *+' conftest.er1 >conftest.err
7287 rm -f conftest.er1
7288 cat conftest.err >&5
7289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7290 (exit $ac_status); } && {
7291 test -z "$ac_c_werror_flag" ||
7292 test ! -s conftest.err
7293 } && test -s conftest.$ac_objext; then
7294 :
7295else
7296 echo "$as_me: failed program was:" >&5
7297sed 's/^/| /' conftest.$ac_ext >&5
7298
7299 case $ac_type in
7300 int32_t) ac_cv_c_int32_t=yes ;;
7301 *) ac_cv_c_int32_t=$ac_type ;;
7302esac
7303
7304fi
7305
7306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7307else
7308 echo "$as_me: failed program was:" >&5
7309sed 's/^/| /' conftest.$ac_ext >&5
7310
7311
7312fi
7313
7314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7315 test "$ac_cv_c_int32_t" != no && break
7316 done
7317fi
7318{ echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
7319echo "${ECHO_T}$ac_cv_c_int32_t" >&6; }
7320 case $ac_cv_c_int32_t in #(
7321 no|yes) ;; #(
7322 *)
7323
7324cat >>confdefs.h <<_ACEOF
7325#define int32_t $ac_cv_c_int32_t
7326_ACEOF
7327;;
7328 esac
7329
7330
7331 { echo "$as_me:$LINENO: checking for int64_t" >&5
7332echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
7333if test "${ac_cv_c_int64_t+set}" = set; then
7334 echo $ECHO_N "(cached) $ECHO_C" >&6
7335else
7336 ac_cv_c_int64_t=no
7337 for ac_type in 'int64_t' 'int' 'long int' \
7338 'long long int' 'short int' 'signed char'; do
7339 cat >conftest.$ac_ext <<_ACEOF
7340/* confdefs.h. */
7341_ACEOF
7342cat confdefs.h >>conftest.$ac_ext
7343cat >>conftest.$ac_ext <<_ACEOF
7344/* end confdefs.h. */
7345$ac_includes_default
7346int
7347main ()
7348{
7349static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
7350test_array [0] = 0
7351
7352 ;
7353 return 0;
7354}
7355_ACEOF
7356rm -f conftest.$ac_objext
7357if { (ac_try="$ac_compile"
7358case "(($ac_try" in
7359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7360 *) ac_try_echo=$ac_try;;
7361esac
7362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7363 (eval "$ac_compile") 2>conftest.er1
7364 ac_status=$?
7365 grep -v '^ *+' conftest.er1 >conftest.err
7366 rm -f conftest.er1
7367 cat conftest.err >&5
7368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7369 (exit $ac_status); } && {
7370 test -z "$ac_c_werror_flag" ||
7371 test ! -s conftest.err
7372 } && test -s conftest.$ac_objext; then
7373 cat >conftest.$ac_ext <<_ACEOF
7374/* confdefs.h. */
7375_ACEOF
7376cat confdefs.h >>conftest.$ac_ext
7377cat >>conftest.$ac_ext <<_ACEOF
7378/* end confdefs.h. */
7379$ac_includes_default
7380int
7381main ()
7382{
7383static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
7384 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
7385test_array [0] = 0
7386
7387 ;
7388 return 0;
7389}
7390_ACEOF
7391rm -f conftest.$ac_objext
7392if { (ac_try="$ac_compile"
7393case "(($ac_try" in
7394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7395 *) ac_try_echo=$ac_try;;
7396esac
7397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7398 (eval "$ac_compile") 2>conftest.er1
7399 ac_status=$?
7400 grep -v '^ *+' conftest.er1 >conftest.err
7401 rm -f conftest.er1
7402 cat conftest.err >&5
7403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7404 (exit $ac_status); } && {
7405 test -z "$ac_c_werror_flag" ||
7406 test ! -s conftest.err
7407 } && test -s conftest.$ac_objext; then
7408 :
7409else
7410 echo "$as_me: failed program was:" >&5
7411sed 's/^/| /' conftest.$ac_ext >&5
7412
7413 case $ac_type in
7414 int64_t) ac_cv_c_int64_t=yes ;;
7415 *) ac_cv_c_int64_t=$ac_type ;;
7416esac
7417
7418fi
7419
7420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7421else
7422 echo "$as_me: failed program was:" >&5
7423sed 's/^/| /' conftest.$ac_ext >&5
7424
7425
7426fi
7427
7428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7429 test "$ac_cv_c_int64_t" != no && break
7430 done
7431fi
7432{ echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
7433echo "${ECHO_T}$ac_cv_c_int64_t" >&6; }
7434 case $ac_cv_c_int64_t in #(
7435 no|yes) ;; #(
7436 *)
7437
7438cat >>confdefs.h <<_ACEOF
7439#define int64_t $ac_cv_c_int64_t
7440_ACEOF
7441;;
7442 esac
7443
Martin v. Löwiseba40652007-08-30 20:10:57 +00007444{ echo "$as_me:$LINENO: checking for ssize_t" >&5
7445echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
Martin v. Löwis18e16552006-02-15 17:27:45 +00007446if test "${ac_cv_type_ssize_t+set}" = set; then
7447 echo $ECHO_N "(cached) $ECHO_C" >&6
7448else
7449 cat >conftest.$ac_ext <<_ACEOF
7450/* confdefs.h. */
7451_ACEOF
7452cat confdefs.h >>conftest.$ac_ext
7453cat >>conftest.$ac_ext <<_ACEOF
7454/* end confdefs.h. */
7455$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00007456typedef ssize_t ac__type_new_;
Martin v. Löwis18e16552006-02-15 17:27:45 +00007457int
7458main ()
7459{
Martin v. Löwiseba40652007-08-30 20:10:57 +00007460if ((ac__type_new_ *) 0)
Martin v. Löwis18e16552006-02-15 17:27:45 +00007461 return 0;
Martin v. Löwiseba40652007-08-30 20:10:57 +00007462if (sizeof (ac__type_new_))
Martin v. Löwis18e16552006-02-15 17:27:45 +00007463 return 0;
7464 ;
7465 return 0;
7466}
7467_ACEOF
7468rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00007469if { (ac_try="$ac_compile"
7470case "(($ac_try" in
7471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7472 *) ac_try_echo=$ac_try;;
7473esac
7474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7475 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis18e16552006-02-15 17:27:45 +00007476 ac_status=$?
7477 grep -v '^ *+' conftest.er1 >conftest.err
7478 rm -f conftest.er1
7479 cat conftest.err >&5
7480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00007481 (exit $ac_status); } && {
7482 test -z "$ac_c_werror_flag" ||
7483 test ! -s conftest.err
7484 } && test -s conftest.$ac_objext; then
Martin v. Löwis18e16552006-02-15 17:27:45 +00007485 ac_cv_type_ssize_t=yes
7486else
7487 echo "$as_me: failed program was:" >&5
7488sed 's/^/| /' conftest.$ac_ext >&5
7489
Martin v. Löwiseba40652007-08-30 20:10:57 +00007490 ac_cv_type_ssize_t=no
Martin v. Löwis18e16552006-02-15 17:27:45 +00007491fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00007492
7493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis18e16552006-02-15 17:27:45 +00007494fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00007495{ echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
7496echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
Martin v. Löwis18e16552006-02-15 17:27:45 +00007497if test $ac_cv_type_ssize_t = yes; then
7498
7499cat >>confdefs.h <<\_ACEOF
7500#define HAVE_SSIZE_T 1
7501_ACEOF
7502
7503fi
7504
Jack Jansendd19cf82001-12-06 22:36:17 +00007505
Michael W. Hudson54241132001-12-07 15:38:26 +00007506# Sizes of various common basic types
Skip Montanarob9820a32004-01-17 00:16:12 +00007507# ANSI C requires sizeof(char) == 1, so no need to check it
Martin v. Löwiseba40652007-08-30 20:10:57 +00007508{ echo "$as_me:$LINENO: checking for int" >&5
7509echo $ECHO_N "checking for int... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00007510if test "${ac_cv_type_int+set}" = set; then
7511 echo $ECHO_N "(cached) $ECHO_C" >&6
7512else
7513 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00007514/* confdefs.h. */
7515_ACEOF
7516cat confdefs.h >>conftest.$ac_ext
7517cat >>conftest.$ac_ext <<_ACEOF
7518/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00007519$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00007520typedef int ac__type_new_;
Martin v. Löwis11437992002-04-12 09:54:03 +00007521int
7522main ()
7523{
Martin v. Löwiseba40652007-08-30 20:10:57 +00007524if ((ac__type_new_ *) 0)
Martin v. Löwis11437992002-04-12 09:54:03 +00007525 return 0;
Martin v. Löwiseba40652007-08-30 20:10:57 +00007526if (sizeof (ac__type_new_))
Martin v. Löwis11437992002-04-12 09:54:03 +00007527 return 0;
7528 ;
7529 return 0;
7530}
7531_ACEOF
7532rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00007533if { (ac_try="$ac_compile"
7534case "(($ac_try" in
7535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7536 *) ac_try_echo=$ac_try;;
7537esac
7538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7539 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00007540 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00007541 grep -v '^ *+' conftest.er1 >conftest.err
7542 rm -f conftest.er1
7543 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00007544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00007545 (exit $ac_status); } && {
7546 test -z "$ac_c_werror_flag" ||
7547 test ! -s conftest.err
7548 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00007549 ac_cv_type_int=yes
7550else
7551 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00007552sed 's/^/| /' conftest.$ac_ext >&5
7553
Martin v. Löwiseba40652007-08-30 20:10:57 +00007554 ac_cv_type_int=no
Martin v. Löwis11437992002-04-12 09:54:03 +00007555fi
Brett Cannon19fab762007-06-02 03:02:29 +00007556
Martin v. Löwiseba40652007-08-30 20:10:57 +00007557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7558fi
7559{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
7560echo "${ECHO_T}$ac_cv_type_int" >&6; }
7561
7562# The cast to long int works around a bug in the HP C Compiler
7563# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7564# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7565# This bug is HP SR number 8606223364.
7566{ echo "$as_me:$LINENO: checking size of int" >&5
7567echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00007568if test "${ac_cv_sizeof_int+set}" = set; then
7569 echo $ECHO_N "(cached) $ECHO_C" >&6
7570else
Martin v. Löwis11437992002-04-12 09:54:03 +00007571 if test "$cross_compiling" = yes; then
7572 # Depending upon the size, compute the lo and hi bounds.
7573cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00007574/* confdefs.h. */
7575_ACEOF
7576cat confdefs.h >>conftest.$ac_ext
7577cat >>conftest.$ac_ext <<_ACEOF
7578/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00007579$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00007580 typedef int ac__type_sizeof_;
Martin v. Löwis11437992002-04-12 09:54:03 +00007581int
7582main ()
7583{
Martin v. Löwiseba40652007-08-30 20:10:57 +00007584static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Martin v. Löwis11437992002-04-12 09:54:03 +00007585test_array [0] = 0
7586
7587 ;
7588 return 0;
7589}
7590_ACEOF
7591rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00007592if { (ac_try="$ac_compile"
7593case "(($ac_try" in
7594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7595 *) ac_try_echo=$ac_try;;
7596esac
7597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7598 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00007599 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00007600 grep -v '^ *+' conftest.er1 >conftest.err
7601 rm -f conftest.er1
7602 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00007603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00007604 (exit $ac_status); } && {
7605 test -z "$ac_c_werror_flag" ||
7606 test ! -s conftest.err
7607 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00007608 ac_lo=0 ac_mid=0
7609 while :; do
7610 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00007611/* confdefs.h. */
7612_ACEOF
7613cat confdefs.h >>conftest.$ac_ext
7614cat >>conftest.$ac_ext <<_ACEOF
7615/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00007616$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00007617 typedef int ac__type_sizeof_;
Martin v. Löwis11437992002-04-12 09:54:03 +00007618int
7619main ()
7620{
Martin v. Löwiseba40652007-08-30 20:10:57 +00007621static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Martin v. Löwis11437992002-04-12 09:54:03 +00007622test_array [0] = 0
7623
7624 ;
7625 return 0;
7626}
7627_ACEOF
7628rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00007629if { (ac_try="$ac_compile"
7630case "(($ac_try" in
7631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7632 *) ac_try_echo=$ac_try;;
7633esac
7634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7635 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00007636 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00007637 grep -v '^ *+' conftest.er1 >conftest.err
7638 rm -f conftest.er1
7639 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00007640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00007641 (exit $ac_status); } && {
7642 test -z "$ac_c_werror_flag" ||
7643 test ! -s conftest.err
7644 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00007645 ac_hi=$ac_mid; break
7646else
7647 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00007648sed 's/^/| /' conftest.$ac_ext >&5
7649
Martin v. Löwiseba40652007-08-30 20:10:57 +00007650 ac_lo=`expr $ac_mid + 1`
7651 if test $ac_lo -le $ac_mid; then
7652 ac_lo= ac_hi=
7653 break
7654 fi
7655 ac_mid=`expr 2 '*' $ac_mid + 1`
Martin v. Löwis11437992002-04-12 09:54:03 +00007656fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00007657
7658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00007659 done
7660else
7661 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00007662sed 's/^/| /' conftest.$ac_ext >&5
7663
Martin v. Löwiseba40652007-08-30 20:10:57 +00007664 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00007665/* confdefs.h. */
7666_ACEOF
7667cat confdefs.h >>conftest.$ac_ext
7668cat >>conftest.$ac_ext <<_ACEOF
7669/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00007670$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00007671 typedef int ac__type_sizeof_;
Martin v. Löwis11437992002-04-12 09:54:03 +00007672int
7673main ()
7674{
Martin v. Löwiseba40652007-08-30 20:10:57 +00007675static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Martin v. Löwis11437992002-04-12 09:54:03 +00007676test_array [0] = 0
7677
7678 ;
7679 return 0;
7680}
7681_ACEOF
7682rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00007683if { (ac_try="$ac_compile"
7684case "(($ac_try" in
7685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7686 *) ac_try_echo=$ac_try;;
7687esac
7688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7689 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00007690 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00007691 grep -v '^ *+' conftest.er1 >conftest.err
7692 rm -f conftest.er1
7693 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00007694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00007695 (exit $ac_status); } && {
7696 test -z "$ac_c_werror_flag" ||
7697 test ! -s conftest.err
7698 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00007699 ac_hi=-1 ac_mid=-1
7700 while :; do
7701 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00007702/* confdefs.h. */
7703_ACEOF
7704cat confdefs.h >>conftest.$ac_ext
7705cat >>conftest.$ac_ext <<_ACEOF
7706/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00007707$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00007708 typedef int ac__type_sizeof_;
Martin v. Löwis11437992002-04-12 09:54:03 +00007709int
7710main ()
7711{
Martin v. Löwiseba40652007-08-30 20:10:57 +00007712static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Martin v. Löwis11437992002-04-12 09:54:03 +00007713test_array [0] = 0
7714
7715 ;
7716 return 0;
7717}
7718_ACEOF
7719rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00007720if { (ac_try="$ac_compile"
7721case "(($ac_try" in
7722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7723 *) ac_try_echo=$ac_try;;
7724esac
7725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7726 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00007727 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00007728 grep -v '^ *+' conftest.er1 >conftest.err
7729 rm -f conftest.er1
7730 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00007731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00007732 (exit $ac_status); } && {
7733 test -z "$ac_c_werror_flag" ||
7734 test ! -s conftest.err
7735 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00007736 ac_lo=$ac_mid; break
7737else
7738 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00007739sed 's/^/| /' conftest.$ac_ext >&5
7740
Martin v. Löwiseba40652007-08-30 20:10:57 +00007741 ac_hi=`expr '(' $ac_mid ')' - 1`
7742 if test $ac_mid -le $ac_hi; then
7743 ac_lo= ac_hi=
7744 break
7745 fi
7746 ac_mid=`expr 2 '*' $ac_mid`
Martin v. Löwis11437992002-04-12 09:54:03 +00007747fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00007748
7749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00007750 done
7751else
7752 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00007753sed 's/^/| /' conftest.$ac_ext >&5
7754
Martin v. Löwiseba40652007-08-30 20:10:57 +00007755 ac_lo= ac_hi=
Martin v. Löwis11437992002-04-12 09:54:03 +00007756fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00007757
7758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00007759fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00007760
7761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00007762# Binary search between lo and hi bounds.
7763while test "x$ac_lo" != "x$ac_hi"; do
7764 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7765 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00007766/* confdefs.h. */
7767_ACEOF
7768cat confdefs.h >>conftest.$ac_ext
7769cat >>conftest.$ac_ext <<_ACEOF
7770/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00007771$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00007772 typedef int ac__type_sizeof_;
Martin v. Löwis11437992002-04-12 09:54:03 +00007773int
7774main ()
7775{
Martin v. Löwiseba40652007-08-30 20:10:57 +00007776static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Martin v. Löwis11437992002-04-12 09:54:03 +00007777test_array [0] = 0
7778
7779 ;
7780 return 0;
7781}
7782_ACEOF
7783rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00007784if { (ac_try="$ac_compile"
7785case "(($ac_try" in
7786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7787 *) ac_try_echo=$ac_try;;
7788esac
7789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7790 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00007791 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00007792 grep -v '^ *+' conftest.er1 >conftest.err
7793 rm -f conftest.er1
7794 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00007795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00007796 (exit $ac_status); } && {
7797 test -z "$ac_c_werror_flag" ||
7798 test ! -s conftest.err
7799 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00007800 ac_hi=$ac_mid
7801else
7802 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00007803sed 's/^/| /' conftest.$ac_ext >&5
7804
Martin v. Löwiseba40652007-08-30 20:10:57 +00007805 ac_lo=`expr '(' $ac_mid ')' + 1`
Martin v. Löwis11437992002-04-12 09:54:03 +00007806fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00007807
7808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00007809done
7810case $ac_lo in
7811?*) ac_cv_sizeof_int=$ac_lo;;
Martin v. Löwiseba40652007-08-30 20:10:57 +00007812'') if test "$ac_cv_type_int" = yes; then
7813 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
Skip Montanaro6dead952003-09-25 14:50:04 +00007814See \`config.log' for more details." >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00007815echo "$as_me: error: cannot compute sizeof (int)
Skip Montanaro6dead952003-09-25 14:50:04 +00007816See \`config.log' for more details." >&2;}
Martin v. Löwiseba40652007-08-30 20:10:57 +00007817 { (exit 77); exit 77; }; }
7818 else
7819 ac_cv_sizeof_int=0
7820 fi ;;
Martin v. Löwis11437992002-04-12 09:54:03 +00007821esac
Guido van Rossumccaf3b61996-12-06 21:19:16 +00007822else
Martin v. Löwis11437992002-04-12 09:54:03 +00007823 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00007824/* confdefs.h. */
7825_ACEOF
7826cat confdefs.h >>conftest.$ac_ext
7827cat >>conftest.$ac_ext <<_ACEOF
7828/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00007829$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00007830 typedef int ac__type_sizeof_;
7831static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7832static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Michael W. Hudson54241132001-12-07 15:38:26 +00007833#include <stdio.h>
Martin v. Löwis11437992002-04-12 09:54:03 +00007834#include <stdlib.h>
Martin v. Löwis11437992002-04-12 09:54:03 +00007835int
7836main ()
Guido van Rossumccaf3b61996-12-06 21:19:16 +00007837{
Martin v. Löwis11437992002-04-12 09:54:03 +00007838
7839 FILE *f = fopen ("conftest.val", "w");
7840 if (! f)
Martin v. Löwiseba40652007-08-30 20:10:57 +00007841 return 1;
7842 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Martin v. Löwis11437992002-04-12 09:54:03 +00007843 {
Martin v. Löwiseba40652007-08-30 20:10:57 +00007844 long int i = longval ();
7845 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7846 return 1;
Martin v. Löwis11437992002-04-12 09:54:03 +00007847 fprintf (f, "%ld\n", i);
7848 }
7849 else
7850 {
Martin v. Löwiseba40652007-08-30 20:10:57 +00007851 unsigned long int i = ulongval ();
7852 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7853 return 1;
Martin v. Löwis11437992002-04-12 09:54:03 +00007854 fprintf (f, "%lu\n", i);
7855 }
Martin v. Löwiseba40652007-08-30 20:10:57 +00007856 return ferror (f) || fclose (f) != 0;
Martin v. Löwis11437992002-04-12 09:54:03 +00007857
7858 ;
7859 return 0;
Guido van Rossumccaf3b61996-12-06 21:19:16 +00007860}
Martin v. Löwis11437992002-04-12 09:54:03 +00007861_ACEOF
7862rm -f conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +00007863if { (ac_try="$ac_link"
7864case "(($ac_try" in
7865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7866 *) ac_try_echo=$ac_try;;
7867esac
7868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7869 (eval "$ac_link") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +00007870 ac_status=$?
7871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7872 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Martin v. Löwiseba40652007-08-30 20:10:57 +00007873 { (case "(($ac_try" in
7874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7875 *) ac_try_echo=$ac_try;;
7876esac
7877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7878 (eval "$ac_try") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +00007879 ac_status=$?
7880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7881 (exit $ac_status); }; }; then
7882 ac_cv_sizeof_int=`cat conftest.val`
Guido van Rossumccaf3b61996-12-06 21:19:16 +00007883else
Martin v. Löwis11437992002-04-12 09:54:03 +00007884 echo "$as_me: program exited with status $ac_status" >&5
7885echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00007886sed 's/^/| /' conftest.$ac_ext >&5
7887
Martin v. Löwis11437992002-04-12 09:54:03 +00007888( exit $ac_status )
Martin v. Löwiseba40652007-08-30 20:10:57 +00007889if test "$ac_cv_type_int" = yes; then
7890 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
Skip Montanaro6dead952003-09-25 14:50:04 +00007891See \`config.log' for more details." >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00007892echo "$as_me: error: cannot compute sizeof (int)
Skip Montanaro6dead952003-09-25 14:50:04 +00007893See \`config.log' for more details." >&2;}
Martin v. Löwiseba40652007-08-30 20:10:57 +00007894 { (exit 77); exit 77; }; }
7895 else
7896 ac_cv_sizeof_int=0
7897 fi
Martin v. Löwis11437992002-04-12 09:54:03 +00007898fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00007899rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00007900fi
7901rm -f conftest.val
Guido van Rossumccaf3b61996-12-06 21:19:16 +00007902fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00007903{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
7904echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
7905
7906
7907
Martin v. Löwis11437992002-04-12 09:54:03 +00007908cat >>confdefs.h <<_ACEOF
Guido van Rossumccaf3b61996-12-06 21:19:16 +00007909#define SIZEOF_INT $ac_cv_sizeof_int
Martin v. Löwis11437992002-04-12 09:54:03 +00007910_ACEOF
Guido van Rossumccaf3b61996-12-06 21:19:16 +00007911
7912
Martin v. Löwiseba40652007-08-30 20:10:57 +00007913{ echo "$as_me:$LINENO: checking for long" >&5
7914echo $ECHO_N "checking for long... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00007915if test "${ac_cv_type_long+set}" = set; then
7916 echo $ECHO_N "(cached) $ECHO_C" >&6
7917else
7918 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00007919/* confdefs.h. */
7920_ACEOF
7921cat confdefs.h >>conftest.$ac_ext
7922cat >>conftest.$ac_ext <<_ACEOF
7923/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00007924$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00007925typedef long ac__type_new_;
Martin v. Löwis11437992002-04-12 09:54:03 +00007926int
7927main ()
7928{
Martin v. Löwiseba40652007-08-30 20:10:57 +00007929if ((ac__type_new_ *) 0)
Martin v. Löwis11437992002-04-12 09:54:03 +00007930 return 0;
Martin v. Löwiseba40652007-08-30 20:10:57 +00007931if (sizeof (ac__type_new_))
Martin v. Löwis11437992002-04-12 09:54:03 +00007932 return 0;
7933 ;
7934 return 0;
7935}
7936_ACEOF
7937rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00007938if { (ac_try="$ac_compile"
7939case "(($ac_try" in
7940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7941 *) ac_try_echo=$ac_try;;
7942esac
7943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7944 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00007945 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00007946 grep -v '^ *+' conftest.er1 >conftest.err
7947 rm -f conftest.er1
7948 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00007949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00007950 (exit $ac_status); } && {
7951 test -z "$ac_c_werror_flag" ||
7952 test ! -s conftest.err
7953 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00007954 ac_cv_type_long=yes
7955else
7956 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00007957sed 's/^/| /' conftest.$ac_ext >&5
7958
Martin v. Löwiseba40652007-08-30 20:10:57 +00007959 ac_cv_type_long=no
Martin v. Löwis11437992002-04-12 09:54:03 +00007960fi
Brett Cannon19fab762007-06-02 03:02:29 +00007961
Martin v. Löwiseba40652007-08-30 20:10:57 +00007962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7963fi
7964{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
7965echo "${ECHO_T}$ac_cv_type_long" >&6; }
7966
7967# The cast to long int works around a bug in the HP C Compiler
7968# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7969# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7970# This bug is HP SR number 8606223364.
7971{ echo "$as_me:$LINENO: checking size of long" >&5
7972echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00007973if test "${ac_cv_sizeof_long+set}" = set; then
7974 echo $ECHO_N "(cached) $ECHO_C" >&6
7975else
Martin v. Löwis11437992002-04-12 09:54:03 +00007976 if test "$cross_compiling" = yes; then
7977 # Depending upon the size, compute the lo and hi bounds.
7978cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00007979/* confdefs.h. */
7980_ACEOF
7981cat confdefs.h >>conftest.$ac_ext
7982cat >>conftest.$ac_ext <<_ACEOF
7983/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00007984$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00007985 typedef long ac__type_sizeof_;
Martin v. Löwis11437992002-04-12 09:54:03 +00007986int
7987main ()
7988{
Martin v. Löwiseba40652007-08-30 20:10:57 +00007989static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Martin v. Löwis11437992002-04-12 09:54:03 +00007990test_array [0] = 0
7991
7992 ;
7993 return 0;
7994}
7995_ACEOF
7996rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00007997if { (ac_try="$ac_compile"
7998case "(($ac_try" in
7999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8000 *) ac_try_echo=$ac_try;;
8001esac
8002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8003 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00008004 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00008005 grep -v '^ *+' conftest.er1 >conftest.err
8006 rm -f conftest.er1
8007 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00008008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00008009 (exit $ac_status); } && {
8010 test -z "$ac_c_werror_flag" ||
8011 test ! -s conftest.err
8012 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00008013 ac_lo=0 ac_mid=0
8014 while :; do
8015 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00008016/* confdefs.h. */
8017_ACEOF
8018cat confdefs.h >>conftest.$ac_ext
8019cat >>conftest.$ac_ext <<_ACEOF
8020/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00008021$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00008022 typedef long ac__type_sizeof_;
Martin v. Löwis11437992002-04-12 09:54:03 +00008023int
8024main ()
8025{
Martin v. Löwiseba40652007-08-30 20:10:57 +00008026static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Martin v. Löwis11437992002-04-12 09:54:03 +00008027test_array [0] = 0
8028
8029 ;
8030 return 0;
8031}
8032_ACEOF
8033rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00008034if { (ac_try="$ac_compile"
8035case "(($ac_try" in
8036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8037 *) ac_try_echo=$ac_try;;
8038esac
8039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8040 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00008041 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00008042 grep -v '^ *+' conftest.er1 >conftest.err
8043 rm -f conftest.er1
8044 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00008045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00008046 (exit $ac_status); } && {
8047 test -z "$ac_c_werror_flag" ||
8048 test ! -s conftest.err
8049 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00008050 ac_hi=$ac_mid; break
8051else
8052 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00008053sed 's/^/| /' conftest.$ac_ext >&5
8054
Martin v. Löwiseba40652007-08-30 20:10:57 +00008055 ac_lo=`expr $ac_mid + 1`
8056 if test $ac_lo -le $ac_mid; then
8057 ac_lo= ac_hi=
8058 break
8059 fi
8060 ac_mid=`expr 2 '*' $ac_mid + 1`
Martin v. Löwis11437992002-04-12 09:54:03 +00008061fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00008062
8063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00008064 done
8065else
8066 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00008067sed 's/^/| /' conftest.$ac_ext >&5
8068
Martin v. Löwiseba40652007-08-30 20:10:57 +00008069 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00008070/* confdefs.h. */
8071_ACEOF
8072cat confdefs.h >>conftest.$ac_ext
8073cat >>conftest.$ac_ext <<_ACEOF
8074/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00008075$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00008076 typedef long ac__type_sizeof_;
Martin v. Löwis11437992002-04-12 09:54:03 +00008077int
8078main ()
8079{
Martin v. Löwiseba40652007-08-30 20:10:57 +00008080static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Martin v. Löwis11437992002-04-12 09:54:03 +00008081test_array [0] = 0
8082
8083 ;
8084 return 0;
8085}
8086_ACEOF
8087rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00008088if { (ac_try="$ac_compile"
8089case "(($ac_try" in
8090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8091 *) ac_try_echo=$ac_try;;
8092esac
8093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8094 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00008095 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00008096 grep -v '^ *+' conftest.er1 >conftest.err
8097 rm -f conftest.er1
8098 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00008099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00008100 (exit $ac_status); } && {
8101 test -z "$ac_c_werror_flag" ||
8102 test ! -s conftest.err
8103 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00008104 ac_hi=-1 ac_mid=-1
8105 while :; do
8106 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00008107/* confdefs.h. */
8108_ACEOF
8109cat confdefs.h >>conftest.$ac_ext
8110cat >>conftest.$ac_ext <<_ACEOF
8111/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00008112$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00008113 typedef long ac__type_sizeof_;
Martin v. Löwis11437992002-04-12 09:54:03 +00008114int
8115main ()
8116{
Martin v. Löwiseba40652007-08-30 20:10:57 +00008117static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Martin v. Löwis11437992002-04-12 09:54:03 +00008118test_array [0] = 0
8119
8120 ;
8121 return 0;
8122}
8123_ACEOF
8124rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00008125if { (ac_try="$ac_compile"
8126case "(($ac_try" in
8127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8128 *) ac_try_echo=$ac_try;;
8129esac
8130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8131 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00008132 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00008133 grep -v '^ *+' conftest.er1 >conftest.err
8134 rm -f conftest.er1
8135 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00008136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00008137 (exit $ac_status); } && {
8138 test -z "$ac_c_werror_flag" ||
8139 test ! -s conftest.err
8140 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00008141 ac_lo=$ac_mid; break
8142else
8143 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00008144sed 's/^/| /' conftest.$ac_ext >&5
8145
Martin v. Löwiseba40652007-08-30 20:10:57 +00008146 ac_hi=`expr '(' $ac_mid ')' - 1`
8147 if test $ac_mid -le $ac_hi; then
8148 ac_lo= ac_hi=
8149 break
8150 fi
8151 ac_mid=`expr 2 '*' $ac_mid`
Martin v. Löwis11437992002-04-12 09:54:03 +00008152fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00008153
8154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00008155 done
8156else
8157 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00008158sed 's/^/| /' conftest.$ac_ext >&5
8159
Martin v. Löwiseba40652007-08-30 20:10:57 +00008160 ac_lo= ac_hi=
Martin v. Löwis11437992002-04-12 09:54:03 +00008161fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00008162
8163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00008164fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00008165
8166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00008167# Binary search between lo and hi bounds.
8168while test "x$ac_lo" != "x$ac_hi"; do
8169 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8170 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00008171/* confdefs.h. */
8172_ACEOF
8173cat confdefs.h >>conftest.$ac_ext
8174cat >>conftest.$ac_ext <<_ACEOF
8175/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00008176$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00008177 typedef long ac__type_sizeof_;
Martin v. Löwis11437992002-04-12 09:54:03 +00008178int
8179main ()
8180{
Martin v. Löwiseba40652007-08-30 20:10:57 +00008181static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Martin v. Löwis11437992002-04-12 09:54:03 +00008182test_array [0] = 0
8183
8184 ;
8185 return 0;
8186}
8187_ACEOF
8188rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00008189if { (ac_try="$ac_compile"
8190case "(($ac_try" in
8191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8192 *) ac_try_echo=$ac_try;;
8193esac
8194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8195 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00008196 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00008197 grep -v '^ *+' conftest.er1 >conftest.err
8198 rm -f conftest.er1
8199 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00008200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00008201 (exit $ac_status); } && {
8202 test -z "$ac_c_werror_flag" ||
8203 test ! -s conftest.err
8204 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00008205 ac_hi=$ac_mid
8206else
8207 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00008208sed 's/^/| /' conftest.$ac_ext >&5
8209
Martin v. Löwiseba40652007-08-30 20:10:57 +00008210 ac_lo=`expr '(' $ac_mid ')' + 1`
Martin v. Löwis11437992002-04-12 09:54:03 +00008211fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00008212
8213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00008214done
8215case $ac_lo in
8216?*) ac_cv_sizeof_long=$ac_lo;;
Martin v. Löwiseba40652007-08-30 20:10:57 +00008217'') if test "$ac_cv_type_long" = yes; then
8218 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
Skip Montanaro6dead952003-09-25 14:50:04 +00008219See \`config.log' for more details." >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00008220echo "$as_me: error: cannot compute sizeof (long)
Skip Montanaro6dead952003-09-25 14:50:04 +00008221See \`config.log' for more details." >&2;}
Martin v. Löwiseba40652007-08-30 20:10:57 +00008222 { (exit 77); exit 77; }; }
8223 else
8224 ac_cv_sizeof_long=0
8225 fi ;;
Martin v. Löwis11437992002-04-12 09:54:03 +00008226esac
Guido van Rossumccaf3b61996-12-06 21:19:16 +00008227else
Martin v. Löwis11437992002-04-12 09:54:03 +00008228 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00008229/* confdefs.h. */
8230_ACEOF
8231cat confdefs.h >>conftest.$ac_ext
8232cat >>conftest.$ac_ext <<_ACEOF
8233/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00008234$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00008235 typedef long ac__type_sizeof_;
8236static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8237static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Michael W. Hudson54241132001-12-07 15:38:26 +00008238#include <stdio.h>
Martin v. Löwis11437992002-04-12 09:54:03 +00008239#include <stdlib.h>
Martin v. Löwis11437992002-04-12 09:54:03 +00008240int
8241main ()
Guido van Rossumccaf3b61996-12-06 21:19:16 +00008242{
Martin v. Löwis11437992002-04-12 09:54:03 +00008243
8244 FILE *f = fopen ("conftest.val", "w");
8245 if (! f)
Martin v. Löwiseba40652007-08-30 20:10:57 +00008246 return 1;
8247 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Martin v. Löwis11437992002-04-12 09:54:03 +00008248 {
Martin v. Löwiseba40652007-08-30 20:10:57 +00008249 long int i = longval ();
8250 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8251 return 1;
Martin v. Löwis11437992002-04-12 09:54:03 +00008252 fprintf (f, "%ld\n", i);
8253 }
8254 else
8255 {
Martin v. Löwiseba40652007-08-30 20:10:57 +00008256 unsigned long int i = ulongval ();
8257 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8258 return 1;
Martin v. Löwis11437992002-04-12 09:54:03 +00008259 fprintf (f, "%lu\n", i);
8260 }
Martin v. Löwiseba40652007-08-30 20:10:57 +00008261 return ferror (f) || fclose (f) != 0;
Martin v. Löwis11437992002-04-12 09:54:03 +00008262
8263 ;
8264 return 0;
Guido van Rossumccaf3b61996-12-06 21:19:16 +00008265}
Martin v. Löwis11437992002-04-12 09:54:03 +00008266_ACEOF
8267rm -f conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +00008268if { (ac_try="$ac_link"
8269case "(($ac_try" in
8270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8271 *) ac_try_echo=$ac_try;;
8272esac
8273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8274 (eval "$ac_link") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +00008275 ac_status=$?
8276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8277 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Martin v. Löwiseba40652007-08-30 20:10:57 +00008278 { (case "(($ac_try" in
8279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8280 *) ac_try_echo=$ac_try;;
8281esac
8282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8283 (eval "$ac_try") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +00008284 ac_status=$?
8285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8286 (exit $ac_status); }; }; then
8287 ac_cv_sizeof_long=`cat conftest.val`
Guido van Rossumccaf3b61996-12-06 21:19:16 +00008288else
Martin v. Löwis11437992002-04-12 09:54:03 +00008289 echo "$as_me: program exited with status $ac_status" >&5
8290echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00008291sed 's/^/| /' conftest.$ac_ext >&5
8292
Martin v. Löwis11437992002-04-12 09:54:03 +00008293( exit $ac_status )
Martin v. Löwiseba40652007-08-30 20:10:57 +00008294if test "$ac_cv_type_long" = yes; then
8295 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
Skip Montanaro6dead952003-09-25 14:50:04 +00008296See \`config.log' for more details." >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00008297echo "$as_me: error: cannot compute sizeof (long)
Skip Montanaro6dead952003-09-25 14:50:04 +00008298See \`config.log' for more details." >&2;}
Martin v. Löwiseba40652007-08-30 20:10:57 +00008299 { (exit 77); exit 77; }; }
8300 else
8301 ac_cv_sizeof_long=0
8302 fi
Martin v. Löwis11437992002-04-12 09:54:03 +00008303fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00008304rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00008305fi
8306rm -f conftest.val
Guido van Rossumccaf3b61996-12-06 21:19:16 +00008307fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00008308{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
8309echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
8310
8311
8312
Martin v. Löwis11437992002-04-12 09:54:03 +00008313cat >>confdefs.h <<_ACEOF
Guido van Rossumccaf3b61996-12-06 21:19:16 +00008314#define SIZEOF_LONG $ac_cv_sizeof_long
Martin v. Löwis11437992002-04-12 09:54:03 +00008315_ACEOF
Guido van Rossumccaf3b61996-12-06 21:19:16 +00008316
8317
Martin v. Löwiseba40652007-08-30 20:10:57 +00008318{ echo "$as_me:$LINENO: checking for void *" >&5
8319echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00008320if test "${ac_cv_type_void_p+set}" = set; then
8321 echo $ECHO_N "(cached) $ECHO_C" >&6
8322else
8323 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00008324/* confdefs.h. */
8325_ACEOF
8326cat confdefs.h >>conftest.$ac_ext
8327cat >>conftest.$ac_ext <<_ACEOF
8328/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00008329$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00008330typedef void * ac__type_new_;
Martin v. Löwis11437992002-04-12 09:54:03 +00008331int
8332main ()
8333{
Martin v. Löwiseba40652007-08-30 20:10:57 +00008334if ((ac__type_new_ *) 0)
Martin v. Löwis11437992002-04-12 09:54:03 +00008335 return 0;
Martin v. Löwiseba40652007-08-30 20:10:57 +00008336if (sizeof (ac__type_new_))
Martin v. Löwis11437992002-04-12 09:54:03 +00008337 return 0;
8338 ;
8339 return 0;
8340}
8341_ACEOF
8342rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00008343if { (ac_try="$ac_compile"
8344case "(($ac_try" in
8345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8346 *) ac_try_echo=$ac_try;;
8347esac
8348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8349 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00008350 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00008351 grep -v '^ *+' conftest.er1 >conftest.err
8352 rm -f conftest.er1
8353 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00008354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00008355 (exit $ac_status); } && {
8356 test -z "$ac_c_werror_flag" ||
8357 test ! -s conftest.err
8358 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00008359 ac_cv_type_void_p=yes
8360else
8361 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00008362sed 's/^/| /' conftest.$ac_ext >&5
8363
Martin v. Löwiseba40652007-08-30 20:10:57 +00008364 ac_cv_type_void_p=no
Martin v. Löwis11437992002-04-12 09:54:03 +00008365fi
Brett Cannon19fab762007-06-02 03:02:29 +00008366
Martin v. Löwiseba40652007-08-30 20:10:57 +00008367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8368fi
8369{ echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
8370echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
8371
8372# The cast to long int works around a bug in the HP C Compiler
8373# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8374# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8375# This bug is HP SR number 8606223364.
8376{ echo "$as_me:$LINENO: checking size of void *" >&5
8377echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00008378if test "${ac_cv_sizeof_void_p+set}" = set; then
8379 echo $ECHO_N "(cached) $ECHO_C" >&6
8380else
Martin v. Löwis11437992002-04-12 09:54:03 +00008381 if test "$cross_compiling" = yes; then
8382 # Depending upon the size, compute the lo and hi bounds.
8383cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00008384/* confdefs.h. */
8385_ACEOF
8386cat confdefs.h >>conftest.$ac_ext
8387cat >>conftest.$ac_ext <<_ACEOF
8388/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00008389$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00008390 typedef void * ac__type_sizeof_;
Martin v. Löwis11437992002-04-12 09:54:03 +00008391int
8392main ()
8393{
Martin v. Löwiseba40652007-08-30 20:10:57 +00008394static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Martin v. Löwis11437992002-04-12 09:54:03 +00008395test_array [0] = 0
8396
8397 ;
8398 return 0;
8399}
8400_ACEOF
8401rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00008402if { (ac_try="$ac_compile"
8403case "(($ac_try" in
8404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8405 *) ac_try_echo=$ac_try;;
8406esac
8407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8408 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00008409 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00008410 grep -v '^ *+' conftest.er1 >conftest.err
8411 rm -f conftest.er1
8412 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00008413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00008414 (exit $ac_status); } && {
8415 test -z "$ac_c_werror_flag" ||
8416 test ! -s conftest.err
8417 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00008418 ac_lo=0 ac_mid=0
8419 while :; do
8420 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00008421/* confdefs.h. */
8422_ACEOF
8423cat confdefs.h >>conftest.$ac_ext
8424cat >>conftest.$ac_ext <<_ACEOF
8425/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00008426$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00008427 typedef void * ac__type_sizeof_;
Martin v. Löwis11437992002-04-12 09:54:03 +00008428int
8429main ()
8430{
Martin v. Löwiseba40652007-08-30 20:10:57 +00008431static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Martin v. Löwis11437992002-04-12 09:54:03 +00008432test_array [0] = 0
8433
8434 ;
8435 return 0;
8436}
8437_ACEOF
8438rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00008439if { (ac_try="$ac_compile"
8440case "(($ac_try" in
8441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8442 *) ac_try_echo=$ac_try;;
8443esac
8444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8445 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00008446 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00008447 grep -v '^ *+' conftest.er1 >conftest.err
8448 rm -f conftest.er1
8449 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00008450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00008451 (exit $ac_status); } && {
8452 test -z "$ac_c_werror_flag" ||
8453 test ! -s conftest.err
8454 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00008455 ac_hi=$ac_mid; break
8456else
8457 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00008458sed 's/^/| /' conftest.$ac_ext >&5
8459
Martin v. Löwiseba40652007-08-30 20:10:57 +00008460 ac_lo=`expr $ac_mid + 1`
8461 if test $ac_lo -le $ac_mid; then
8462 ac_lo= ac_hi=
8463 break
8464 fi
8465 ac_mid=`expr 2 '*' $ac_mid + 1`
Martin v. Löwis11437992002-04-12 09:54:03 +00008466fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00008467
8468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00008469 done
8470else
8471 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00008472sed 's/^/| /' conftest.$ac_ext >&5
8473
Martin v. Löwiseba40652007-08-30 20:10:57 +00008474 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00008475/* confdefs.h. */
8476_ACEOF
8477cat confdefs.h >>conftest.$ac_ext
8478cat >>conftest.$ac_ext <<_ACEOF
8479/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00008480$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00008481 typedef void * ac__type_sizeof_;
Martin v. Löwis11437992002-04-12 09:54:03 +00008482int
8483main ()
8484{
Martin v. Löwiseba40652007-08-30 20:10:57 +00008485static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Martin v. Löwis11437992002-04-12 09:54:03 +00008486test_array [0] = 0
8487
8488 ;
8489 return 0;
8490}
8491_ACEOF
8492rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00008493if { (ac_try="$ac_compile"
8494case "(($ac_try" in
8495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8496 *) ac_try_echo=$ac_try;;
8497esac
8498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8499 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00008500 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00008501 grep -v '^ *+' conftest.er1 >conftest.err
8502 rm -f conftest.er1
8503 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00008504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00008505 (exit $ac_status); } && {
8506 test -z "$ac_c_werror_flag" ||
8507 test ! -s conftest.err
8508 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00008509 ac_hi=-1 ac_mid=-1
8510 while :; do
8511 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00008512/* confdefs.h. */
8513_ACEOF
8514cat confdefs.h >>conftest.$ac_ext
8515cat >>conftest.$ac_ext <<_ACEOF
8516/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00008517$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00008518 typedef void * ac__type_sizeof_;
Martin v. Löwis11437992002-04-12 09:54:03 +00008519int
8520main ()
8521{
Martin v. Löwiseba40652007-08-30 20:10:57 +00008522static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Martin v. Löwis11437992002-04-12 09:54:03 +00008523test_array [0] = 0
8524
8525 ;
8526 return 0;
8527}
8528_ACEOF
8529rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00008530if { (ac_try="$ac_compile"
8531case "(($ac_try" in
8532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8533 *) ac_try_echo=$ac_try;;
8534esac
8535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8536 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00008537 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00008538 grep -v '^ *+' conftest.er1 >conftest.err
8539 rm -f conftest.er1
8540 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00008541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00008542 (exit $ac_status); } && {
8543 test -z "$ac_c_werror_flag" ||
8544 test ! -s conftest.err
8545 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00008546 ac_lo=$ac_mid; break
8547else
8548 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00008549sed 's/^/| /' conftest.$ac_ext >&5
8550
Martin v. Löwiseba40652007-08-30 20:10:57 +00008551 ac_hi=`expr '(' $ac_mid ')' - 1`
8552 if test $ac_mid -le $ac_hi; then
8553 ac_lo= ac_hi=
8554 break
8555 fi
8556 ac_mid=`expr 2 '*' $ac_mid`
Martin v. Löwis11437992002-04-12 09:54:03 +00008557fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00008558
8559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00008560 done
8561else
8562 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00008563sed 's/^/| /' conftest.$ac_ext >&5
8564
Martin v. Löwiseba40652007-08-30 20:10:57 +00008565 ac_lo= ac_hi=
Martin v. Löwis11437992002-04-12 09:54:03 +00008566fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00008567
8568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00008569fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00008570
8571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00008572# Binary search between lo and hi bounds.
8573while test "x$ac_lo" != "x$ac_hi"; do
8574 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8575 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00008576/* confdefs.h. */
8577_ACEOF
8578cat confdefs.h >>conftest.$ac_ext
8579cat >>conftest.$ac_ext <<_ACEOF
8580/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00008581$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00008582 typedef void * ac__type_sizeof_;
Martin v. Löwis11437992002-04-12 09:54:03 +00008583int
8584main ()
8585{
Martin v. Löwiseba40652007-08-30 20:10:57 +00008586static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Martin v. Löwis11437992002-04-12 09:54:03 +00008587test_array [0] = 0
8588
8589 ;
8590 return 0;
8591}
8592_ACEOF
8593rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00008594if { (ac_try="$ac_compile"
8595case "(($ac_try" in
8596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8597 *) ac_try_echo=$ac_try;;
8598esac
8599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8600 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00008601 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00008602 grep -v '^ *+' conftest.er1 >conftest.err
8603 rm -f conftest.er1
8604 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00008605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00008606 (exit $ac_status); } && {
8607 test -z "$ac_c_werror_flag" ||
8608 test ! -s conftest.err
8609 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00008610 ac_hi=$ac_mid
8611else
8612 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00008613sed 's/^/| /' conftest.$ac_ext >&5
8614
Martin v. Löwiseba40652007-08-30 20:10:57 +00008615 ac_lo=`expr '(' $ac_mid ')' + 1`
Martin v. Löwis11437992002-04-12 09:54:03 +00008616fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00008617
8618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00008619done
8620case $ac_lo in
8621?*) ac_cv_sizeof_void_p=$ac_lo;;
Martin v. Löwiseba40652007-08-30 20:10:57 +00008622'') if test "$ac_cv_type_void_p" = yes; then
8623 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
Skip Montanaro6dead952003-09-25 14:50:04 +00008624See \`config.log' for more details." >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00008625echo "$as_me: error: cannot compute sizeof (void *)
Skip Montanaro6dead952003-09-25 14:50:04 +00008626See \`config.log' for more details." >&2;}
Martin v. Löwiseba40652007-08-30 20:10:57 +00008627 { (exit 77); exit 77; }; }
8628 else
8629 ac_cv_sizeof_void_p=0
8630 fi ;;
Martin v. Löwis11437992002-04-12 09:54:03 +00008631esac
Guido van Rossumad678af1998-10-02 14:42:15 +00008632else
Martin v. Löwis11437992002-04-12 09:54:03 +00008633 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00008634/* confdefs.h. */
8635_ACEOF
8636cat confdefs.h >>conftest.$ac_ext
8637cat >>conftest.$ac_ext <<_ACEOF
8638/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00008639$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00008640 typedef void * ac__type_sizeof_;
8641static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8642static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Michael W. Hudson54241132001-12-07 15:38:26 +00008643#include <stdio.h>
Martin v. Löwis11437992002-04-12 09:54:03 +00008644#include <stdlib.h>
Martin v. Löwis11437992002-04-12 09:54:03 +00008645int
8646main ()
Guido van Rossumad678af1998-10-02 14:42:15 +00008647{
Martin v. Löwis11437992002-04-12 09:54:03 +00008648
8649 FILE *f = fopen ("conftest.val", "w");
8650 if (! f)
Martin v. Löwiseba40652007-08-30 20:10:57 +00008651 return 1;
8652 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Martin v. Löwis11437992002-04-12 09:54:03 +00008653 {
Martin v. Löwiseba40652007-08-30 20:10:57 +00008654 long int i = longval ();
8655 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8656 return 1;
Martin v. Löwis11437992002-04-12 09:54:03 +00008657 fprintf (f, "%ld\n", i);
8658 }
8659 else
8660 {
Martin v. Löwiseba40652007-08-30 20:10:57 +00008661 unsigned long int i = ulongval ();
8662 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8663 return 1;
Martin v. Löwis11437992002-04-12 09:54:03 +00008664 fprintf (f, "%lu\n", i);
8665 }
Martin v. Löwiseba40652007-08-30 20:10:57 +00008666 return ferror (f) || fclose (f) != 0;
Martin v. Löwis11437992002-04-12 09:54:03 +00008667
8668 ;
8669 return 0;
Guido van Rossumad678af1998-10-02 14:42:15 +00008670}
Martin v. Löwis11437992002-04-12 09:54:03 +00008671_ACEOF
8672rm -f conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +00008673if { (ac_try="$ac_link"
8674case "(($ac_try" in
8675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8676 *) ac_try_echo=$ac_try;;
8677esac
8678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8679 (eval "$ac_link") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +00008680 ac_status=$?
8681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8682 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Martin v. Löwiseba40652007-08-30 20:10:57 +00008683 { (case "(($ac_try" in
8684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8685 *) ac_try_echo=$ac_try;;
8686esac
8687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8688 (eval "$ac_try") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +00008689 ac_status=$?
8690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8691 (exit $ac_status); }; }; then
8692 ac_cv_sizeof_void_p=`cat conftest.val`
Guido van Rossumad678af1998-10-02 14:42:15 +00008693else
Martin v. Löwis11437992002-04-12 09:54:03 +00008694 echo "$as_me: program exited with status $ac_status" >&5
8695echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00008696sed 's/^/| /' conftest.$ac_ext >&5
8697
Martin v. Löwis11437992002-04-12 09:54:03 +00008698( exit $ac_status )
Martin v. Löwiseba40652007-08-30 20:10:57 +00008699if test "$ac_cv_type_void_p" = yes; then
8700 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
Skip Montanaro6dead952003-09-25 14:50:04 +00008701See \`config.log' for more details." >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00008702echo "$as_me: error: cannot compute sizeof (void *)
Skip Montanaro6dead952003-09-25 14:50:04 +00008703See \`config.log' for more details." >&2;}
Martin v. Löwiseba40652007-08-30 20:10:57 +00008704 { (exit 77); exit 77; }; }
8705 else
8706 ac_cv_sizeof_void_p=0
8707 fi
Martin v. Löwis11437992002-04-12 09:54:03 +00008708fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00008709rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00008710fi
8711rm -f conftest.val
Guido van Rossumad678af1998-10-02 14:42:15 +00008712fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00008713{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
8714echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
8715
8716
8717
Martin v. Löwis11437992002-04-12 09:54:03 +00008718cat >>confdefs.h <<_ACEOF
Guido van Rossumad678af1998-10-02 14:42:15 +00008719#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
Martin v. Löwis11437992002-04-12 09:54:03 +00008720_ACEOF
Guido van Rossumad678af1998-10-02 14:42:15 +00008721
8722
Martin v. Löwiseba40652007-08-30 20:10:57 +00008723{ echo "$as_me:$LINENO: checking for short" >&5
8724echo $ECHO_N "checking for short... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00008725if test "${ac_cv_type_short+set}" = set; then
8726 echo $ECHO_N "(cached) $ECHO_C" >&6
8727else
8728 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00008729/* confdefs.h. */
8730_ACEOF
8731cat confdefs.h >>conftest.$ac_ext
8732cat >>conftest.$ac_ext <<_ACEOF
8733/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00008734$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00008735typedef short ac__type_new_;
Martin v. Löwis11437992002-04-12 09:54:03 +00008736int
8737main ()
8738{
Martin v. Löwiseba40652007-08-30 20:10:57 +00008739if ((ac__type_new_ *) 0)
Martin v. Löwis11437992002-04-12 09:54:03 +00008740 return 0;
Martin v. Löwiseba40652007-08-30 20:10:57 +00008741if (sizeof (ac__type_new_))
Martin v. Löwis11437992002-04-12 09:54:03 +00008742 return 0;
8743 ;
8744 return 0;
8745}
8746_ACEOF
8747rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00008748if { (ac_try="$ac_compile"
8749case "(($ac_try" in
8750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8751 *) ac_try_echo=$ac_try;;
8752esac
8753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8754 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00008755 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00008756 grep -v '^ *+' conftest.er1 >conftest.err
8757 rm -f conftest.er1
8758 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00008759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00008760 (exit $ac_status); } && {
8761 test -z "$ac_c_werror_flag" ||
8762 test ! -s conftest.err
8763 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00008764 ac_cv_type_short=yes
8765else
8766 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00008767sed 's/^/| /' conftest.$ac_ext >&5
8768
Martin v. Löwiseba40652007-08-30 20:10:57 +00008769 ac_cv_type_short=no
Martin v. Löwis11437992002-04-12 09:54:03 +00008770fi
Brett Cannon19fab762007-06-02 03:02:29 +00008771
Martin v. Löwiseba40652007-08-30 20:10:57 +00008772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8773fi
8774{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
8775echo "${ECHO_T}$ac_cv_type_short" >&6; }
8776
8777# The cast to long int works around a bug in the HP C Compiler
8778# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8779# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8780# This bug is HP SR number 8606223364.
8781{ echo "$as_me:$LINENO: checking size of short" >&5
8782echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00008783if test "${ac_cv_sizeof_short+set}" = set; then
8784 echo $ECHO_N "(cached) $ECHO_C" >&6
8785else
Martin v. Löwis11437992002-04-12 09:54:03 +00008786 if test "$cross_compiling" = yes; then
8787 # Depending upon the size, compute the lo and hi bounds.
8788cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00008789/* confdefs.h. */
8790_ACEOF
8791cat confdefs.h >>conftest.$ac_ext
8792cat >>conftest.$ac_ext <<_ACEOF
8793/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00008794$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00008795 typedef short ac__type_sizeof_;
Martin v. Löwis11437992002-04-12 09:54:03 +00008796int
8797main ()
8798{
Martin v. Löwiseba40652007-08-30 20:10:57 +00008799static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Martin v. Löwis11437992002-04-12 09:54:03 +00008800test_array [0] = 0
8801
8802 ;
8803 return 0;
8804}
8805_ACEOF
8806rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00008807if { (ac_try="$ac_compile"
8808case "(($ac_try" in
8809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8810 *) ac_try_echo=$ac_try;;
8811esac
8812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8813 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00008814 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00008815 grep -v '^ *+' conftest.er1 >conftest.err
8816 rm -f conftest.er1
8817 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00008818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00008819 (exit $ac_status); } && {
8820 test -z "$ac_c_werror_flag" ||
8821 test ! -s conftest.err
8822 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00008823 ac_lo=0 ac_mid=0
8824 while :; do
8825 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00008826/* confdefs.h. */
8827_ACEOF
8828cat confdefs.h >>conftest.$ac_ext
8829cat >>conftest.$ac_ext <<_ACEOF
8830/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00008831$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00008832 typedef short ac__type_sizeof_;
Martin v. Löwis11437992002-04-12 09:54:03 +00008833int
8834main ()
8835{
Martin v. Löwiseba40652007-08-30 20:10:57 +00008836static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Martin v. Löwis11437992002-04-12 09:54:03 +00008837test_array [0] = 0
8838
8839 ;
8840 return 0;
8841}
8842_ACEOF
8843rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00008844if { (ac_try="$ac_compile"
8845case "(($ac_try" in
8846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8847 *) ac_try_echo=$ac_try;;
8848esac
8849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8850 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00008851 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00008852 grep -v '^ *+' conftest.er1 >conftest.err
8853 rm -f conftest.er1
8854 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00008855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00008856 (exit $ac_status); } && {
8857 test -z "$ac_c_werror_flag" ||
8858 test ! -s conftest.err
8859 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00008860 ac_hi=$ac_mid; break
8861else
8862 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00008863sed 's/^/| /' conftest.$ac_ext >&5
8864
Martin v. Löwiseba40652007-08-30 20:10:57 +00008865 ac_lo=`expr $ac_mid + 1`
8866 if test $ac_lo -le $ac_mid; then
8867 ac_lo= ac_hi=
8868 break
8869 fi
8870 ac_mid=`expr 2 '*' $ac_mid + 1`
Martin v. Löwis11437992002-04-12 09:54:03 +00008871fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00008872
8873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00008874 done
8875else
8876 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00008877sed 's/^/| /' conftest.$ac_ext >&5
8878
Martin v. Löwiseba40652007-08-30 20:10:57 +00008879 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00008880/* confdefs.h. */
8881_ACEOF
8882cat confdefs.h >>conftest.$ac_ext
8883cat >>conftest.$ac_ext <<_ACEOF
8884/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00008885$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00008886 typedef short ac__type_sizeof_;
Martin v. Löwis11437992002-04-12 09:54:03 +00008887int
8888main ()
8889{
Martin v. Löwiseba40652007-08-30 20:10:57 +00008890static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Martin v. Löwis11437992002-04-12 09:54:03 +00008891test_array [0] = 0
8892
8893 ;
8894 return 0;
8895}
8896_ACEOF
8897rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00008898if { (ac_try="$ac_compile"
8899case "(($ac_try" in
8900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8901 *) ac_try_echo=$ac_try;;
8902esac
8903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8904 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00008905 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00008906 grep -v '^ *+' conftest.er1 >conftest.err
8907 rm -f conftest.er1
8908 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00008909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00008910 (exit $ac_status); } && {
8911 test -z "$ac_c_werror_flag" ||
8912 test ! -s conftest.err
8913 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00008914 ac_hi=-1 ac_mid=-1
8915 while :; do
8916 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00008917/* confdefs.h. */
8918_ACEOF
8919cat confdefs.h >>conftest.$ac_ext
8920cat >>conftest.$ac_ext <<_ACEOF
8921/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00008922$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00008923 typedef short ac__type_sizeof_;
Martin v. Löwis11437992002-04-12 09:54:03 +00008924int
8925main ()
8926{
Martin v. Löwiseba40652007-08-30 20:10:57 +00008927static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Martin v. Löwis11437992002-04-12 09:54:03 +00008928test_array [0] = 0
8929
8930 ;
8931 return 0;
8932}
8933_ACEOF
8934rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00008935if { (ac_try="$ac_compile"
8936case "(($ac_try" in
8937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8938 *) ac_try_echo=$ac_try;;
8939esac
8940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8941 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00008942 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00008943 grep -v '^ *+' conftest.er1 >conftest.err
8944 rm -f conftest.er1
8945 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00008946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00008947 (exit $ac_status); } && {
8948 test -z "$ac_c_werror_flag" ||
8949 test ! -s conftest.err
8950 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00008951 ac_lo=$ac_mid; break
8952else
8953 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00008954sed 's/^/| /' conftest.$ac_ext >&5
8955
Martin v. Löwiseba40652007-08-30 20:10:57 +00008956 ac_hi=`expr '(' $ac_mid ')' - 1`
8957 if test $ac_mid -le $ac_hi; then
8958 ac_lo= ac_hi=
8959 break
8960 fi
8961 ac_mid=`expr 2 '*' $ac_mid`
Martin v. Löwis11437992002-04-12 09:54:03 +00008962fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00008963
8964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00008965 done
8966else
8967 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00008968sed 's/^/| /' conftest.$ac_ext >&5
8969
Martin v. Löwiseba40652007-08-30 20:10:57 +00008970 ac_lo= ac_hi=
Martin v. Löwis11437992002-04-12 09:54:03 +00008971fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00008972
8973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00008974fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00008975
8976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00008977# Binary search between lo and hi bounds.
8978while test "x$ac_lo" != "x$ac_hi"; do
8979 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8980 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00008981/* confdefs.h. */
8982_ACEOF
8983cat confdefs.h >>conftest.$ac_ext
8984cat >>conftest.$ac_ext <<_ACEOF
8985/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00008986$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00008987 typedef short ac__type_sizeof_;
Martin v. Löwis11437992002-04-12 09:54:03 +00008988int
8989main ()
8990{
Martin v. Löwiseba40652007-08-30 20:10:57 +00008991static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Martin v. Löwis11437992002-04-12 09:54:03 +00008992test_array [0] = 0
8993
8994 ;
8995 return 0;
8996}
8997_ACEOF
8998rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00008999if { (ac_try="$ac_compile"
9000case "(($ac_try" in
9001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9002 *) ac_try_echo=$ac_try;;
9003esac
9004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9005 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00009006 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00009007 grep -v '^ *+' conftest.er1 >conftest.err
9008 rm -f conftest.er1
9009 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00009010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00009011 (exit $ac_status); } && {
9012 test -z "$ac_c_werror_flag" ||
9013 test ! -s conftest.err
9014 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00009015 ac_hi=$ac_mid
9016else
9017 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00009018sed 's/^/| /' conftest.$ac_ext >&5
9019
Martin v. Löwiseba40652007-08-30 20:10:57 +00009020 ac_lo=`expr '(' $ac_mid ')' + 1`
Martin v. Löwis11437992002-04-12 09:54:03 +00009021fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00009022
9023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00009024done
9025case $ac_lo in
9026?*) ac_cv_sizeof_short=$ac_lo;;
Martin v. Löwiseba40652007-08-30 20:10:57 +00009027'') if test "$ac_cv_type_short" = yes; then
9028 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
Skip Montanaro6dead952003-09-25 14:50:04 +00009029See \`config.log' for more details." >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00009030echo "$as_me: error: cannot compute sizeof (short)
Skip Montanaro6dead952003-09-25 14:50:04 +00009031See \`config.log' for more details." >&2;}
Martin v. Löwiseba40652007-08-30 20:10:57 +00009032 { (exit 77); exit 77; }; }
9033 else
9034 ac_cv_sizeof_short=0
9035 fi ;;
Martin v. Löwis11437992002-04-12 09:54:03 +00009036esac
Guido van Rossumef2255b2000-03-10 22:30:29 +00009037else
Martin v. Löwis11437992002-04-12 09:54:03 +00009038 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00009039/* confdefs.h. */
9040_ACEOF
9041cat confdefs.h >>conftest.$ac_ext
9042cat >>conftest.$ac_ext <<_ACEOF
9043/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00009044$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00009045 typedef short ac__type_sizeof_;
9046static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9047static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Michael W. Hudson54241132001-12-07 15:38:26 +00009048#include <stdio.h>
Martin v. Löwis11437992002-04-12 09:54:03 +00009049#include <stdlib.h>
Martin v. Löwis11437992002-04-12 09:54:03 +00009050int
9051main ()
Guido van Rossumef2255b2000-03-10 22:30:29 +00009052{
Martin v. Löwis11437992002-04-12 09:54:03 +00009053
9054 FILE *f = fopen ("conftest.val", "w");
9055 if (! f)
Martin v. Löwiseba40652007-08-30 20:10:57 +00009056 return 1;
9057 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Martin v. Löwis11437992002-04-12 09:54:03 +00009058 {
Martin v. Löwiseba40652007-08-30 20:10:57 +00009059 long int i = longval ();
9060 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9061 return 1;
Martin v. Löwis11437992002-04-12 09:54:03 +00009062 fprintf (f, "%ld\n", i);
9063 }
9064 else
9065 {
Martin v. Löwiseba40652007-08-30 20:10:57 +00009066 unsigned long int i = ulongval ();
9067 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9068 return 1;
Martin v. Löwis11437992002-04-12 09:54:03 +00009069 fprintf (f, "%lu\n", i);
9070 }
Martin v. Löwiseba40652007-08-30 20:10:57 +00009071 return ferror (f) || fclose (f) != 0;
Martin v. Löwis11437992002-04-12 09:54:03 +00009072
9073 ;
9074 return 0;
Guido van Rossumef2255b2000-03-10 22:30:29 +00009075}
Martin v. Löwis11437992002-04-12 09:54:03 +00009076_ACEOF
9077rm -f conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +00009078if { (ac_try="$ac_link"
9079case "(($ac_try" in
9080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9081 *) ac_try_echo=$ac_try;;
9082esac
9083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9084 (eval "$ac_link") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +00009085 ac_status=$?
9086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9087 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Martin v. Löwiseba40652007-08-30 20:10:57 +00009088 { (case "(($ac_try" in
9089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9090 *) ac_try_echo=$ac_try;;
9091esac
9092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9093 (eval "$ac_try") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +00009094 ac_status=$?
9095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9096 (exit $ac_status); }; }; then
9097 ac_cv_sizeof_short=`cat conftest.val`
Guido van Rossumef2255b2000-03-10 22:30:29 +00009098else
Martin v. Löwis11437992002-04-12 09:54:03 +00009099 echo "$as_me: program exited with status $ac_status" >&5
9100echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00009101sed 's/^/| /' conftest.$ac_ext >&5
9102
Martin v. Löwis11437992002-04-12 09:54:03 +00009103( exit $ac_status )
Martin v. Löwiseba40652007-08-30 20:10:57 +00009104if test "$ac_cv_type_short" = yes; then
9105 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
Skip Montanaro6dead952003-09-25 14:50:04 +00009106See \`config.log' for more details." >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00009107echo "$as_me: error: cannot compute sizeof (short)
Skip Montanaro6dead952003-09-25 14:50:04 +00009108See \`config.log' for more details." >&2;}
Martin v. Löwiseba40652007-08-30 20:10:57 +00009109 { (exit 77); exit 77; }; }
9110 else
9111 ac_cv_sizeof_short=0
9112 fi
Martin v. Löwis11437992002-04-12 09:54:03 +00009113fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00009114rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00009115fi
9116rm -f conftest.val
Guido van Rossumef2255b2000-03-10 22:30:29 +00009117fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00009118{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
9119echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
9120
9121
9122
Martin v. Löwis11437992002-04-12 09:54:03 +00009123cat >>confdefs.h <<_ACEOF
Guido van Rossumef2255b2000-03-10 22:30:29 +00009124#define SIZEOF_SHORT $ac_cv_sizeof_short
Martin v. Löwis11437992002-04-12 09:54:03 +00009125_ACEOF
Guido van Rossumef2255b2000-03-10 22:30:29 +00009126
9127
Martin v. Löwiseba40652007-08-30 20:10:57 +00009128{ echo "$as_me:$LINENO: checking for float" >&5
9129echo $ECHO_N "checking for float... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00009130if test "${ac_cv_type_float+set}" = set; then
9131 echo $ECHO_N "(cached) $ECHO_C" >&6
9132else
9133 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00009134/* confdefs.h. */
9135_ACEOF
9136cat confdefs.h >>conftest.$ac_ext
9137cat >>conftest.$ac_ext <<_ACEOF
9138/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00009139$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00009140typedef float ac__type_new_;
Martin v. Löwis11437992002-04-12 09:54:03 +00009141int
9142main ()
9143{
Martin v. Löwiseba40652007-08-30 20:10:57 +00009144if ((ac__type_new_ *) 0)
Martin v. Löwis11437992002-04-12 09:54:03 +00009145 return 0;
Martin v. Löwiseba40652007-08-30 20:10:57 +00009146if (sizeof (ac__type_new_))
Martin v. Löwis11437992002-04-12 09:54:03 +00009147 return 0;
9148 ;
9149 return 0;
9150}
9151_ACEOF
9152rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00009153if { (ac_try="$ac_compile"
9154case "(($ac_try" in
9155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9156 *) ac_try_echo=$ac_try;;
9157esac
9158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9159 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00009160 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00009161 grep -v '^ *+' conftest.er1 >conftest.err
9162 rm -f conftest.er1
9163 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00009164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00009165 (exit $ac_status); } && {
9166 test -z "$ac_c_werror_flag" ||
9167 test ! -s conftest.err
9168 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00009169 ac_cv_type_float=yes
9170else
9171 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00009172sed 's/^/| /' conftest.$ac_ext >&5
9173
Martin v. Löwiseba40652007-08-30 20:10:57 +00009174 ac_cv_type_float=no
Martin v. Löwis11437992002-04-12 09:54:03 +00009175fi
Brett Cannon19fab762007-06-02 03:02:29 +00009176
Martin v. Löwiseba40652007-08-30 20:10:57 +00009177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9178fi
9179{ echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
9180echo "${ECHO_T}$ac_cv_type_float" >&6; }
9181
9182# The cast to long int works around a bug in the HP C Compiler
9183# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9184# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9185# This bug is HP SR number 8606223364.
9186{ echo "$as_me:$LINENO: checking size of float" >&5
9187echo $ECHO_N "checking size of float... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00009188if test "${ac_cv_sizeof_float+set}" = set; then
9189 echo $ECHO_N "(cached) $ECHO_C" >&6
9190else
Martin v. Löwis11437992002-04-12 09:54:03 +00009191 if test "$cross_compiling" = yes; then
9192 # Depending upon the size, compute the lo and hi bounds.
9193cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00009194/* confdefs.h. */
9195_ACEOF
9196cat confdefs.h >>conftest.$ac_ext
9197cat >>conftest.$ac_ext <<_ACEOF
9198/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00009199$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00009200 typedef float ac__type_sizeof_;
Martin v. Löwis11437992002-04-12 09:54:03 +00009201int
9202main ()
9203{
Martin v. Löwiseba40652007-08-30 20:10:57 +00009204static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Martin v. Löwis11437992002-04-12 09:54:03 +00009205test_array [0] = 0
9206
9207 ;
9208 return 0;
9209}
9210_ACEOF
9211rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00009212if { (ac_try="$ac_compile"
9213case "(($ac_try" in
9214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9215 *) ac_try_echo=$ac_try;;
9216esac
9217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9218 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00009219 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00009220 grep -v '^ *+' conftest.er1 >conftest.err
9221 rm -f conftest.er1
9222 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00009223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00009224 (exit $ac_status); } && {
9225 test -z "$ac_c_werror_flag" ||
9226 test ! -s conftest.err
9227 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00009228 ac_lo=0 ac_mid=0
9229 while :; do
9230 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00009231/* confdefs.h. */
9232_ACEOF
9233cat confdefs.h >>conftest.$ac_ext
9234cat >>conftest.$ac_ext <<_ACEOF
9235/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00009236$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00009237 typedef float ac__type_sizeof_;
Martin v. Löwis11437992002-04-12 09:54:03 +00009238int
9239main ()
9240{
Martin v. Löwiseba40652007-08-30 20:10:57 +00009241static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Martin v. Löwis11437992002-04-12 09:54:03 +00009242test_array [0] = 0
9243
9244 ;
9245 return 0;
9246}
9247_ACEOF
9248rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00009249if { (ac_try="$ac_compile"
9250case "(($ac_try" in
9251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9252 *) ac_try_echo=$ac_try;;
9253esac
9254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9255 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00009256 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00009257 grep -v '^ *+' conftest.er1 >conftest.err
9258 rm -f conftest.er1
9259 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00009260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00009261 (exit $ac_status); } && {
9262 test -z "$ac_c_werror_flag" ||
9263 test ! -s conftest.err
9264 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00009265 ac_hi=$ac_mid; break
9266else
9267 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00009268sed 's/^/| /' conftest.$ac_ext >&5
9269
Martin v. Löwiseba40652007-08-30 20:10:57 +00009270 ac_lo=`expr $ac_mid + 1`
9271 if test $ac_lo -le $ac_mid; then
9272 ac_lo= ac_hi=
9273 break
9274 fi
9275 ac_mid=`expr 2 '*' $ac_mid + 1`
Martin v. Löwis11437992002-04-12 09:54:03 +00009276fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00009277
9278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00009279 done
9280else
9281 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00009282sed 's/^/| /' conftest.$ac_ext >&5
9283
Martin v. Löwiseba40652007-08-30 20:10:57 +00009284 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00009285/* confdefs.h. */
9286_ACEOF
9287cat confdefs.h >>conftest.$ac_ext
9288cat >>conftest.$ac_ext <<_ACEOF
9289/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00009290$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00009291 typedef float ac__type_sizeof_;
Martin v. Löwis11437992002-04-12 09:54:03 +00009292int
9293main ()
9294{
Martin v. Löwiseba40652007-08-30 20:10:57 +00009295static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Martin v. Löwis11437992002-04-12 09:54:03 +00009296test_array [0] = 0
9297
9298 ;
9299 return 0;
9300}
9301_ACEOF
9302rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00009303if { (ac_try="$ac_compile"
9304case "(($ac_try" in
9305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9306 *) ac_try_echo=$ac_try;;
9307esac
9308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9309 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00009310 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00009311 grep -v '^ *+' conftest.er1 >conftest.err
9312 rm -f conftest.er1
9313 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00009314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00009315 (exit $ac_status); } && {
9316 test -z "$ac_c_werror_flag" ||
9317 test ! -s conftest.err
9318 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00009319 ac_hi=-1 ac_mid=-1
9320 while :; do
9321 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00009322/* confdefs.h. */
9323_ACEOF
9324cat confdefs.h >>conftest.$ac_ext
9325cat >>conftest.$ac_ext <<_ACEOF
9326/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00009327$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00009328 typedef float ac__type_sizeof_;
Martin v. Löwis11437992002-04-12 09:54:03 +00009329int
9330main ()
9331{
Martin v. Löwiseba40652007-08-30 20:10:57 +00009332static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Martin v. Löwis11437992002-04-12 09:54:03 +00009333test_array [0] = 0
9334
9335 ;
9336 return 0;
9337}
9338_ACEOF
9339rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00009340if { (ac_try="$ac_compile"
9341case "(($ac_try" in
9342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9343 *) ac_try_echo=$ac_try;;
9344esac
9345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9346 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00009347 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00009348 grep -v '^ *+' conftest.er1 >conftest.err
9349 rm -f conftest.er1
9350 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00009351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00009352 (exit $ac_status); } && {
9353 test -z "$ac_c_werror_flag" ||
9354 test ! -s conftest.err
9355 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00009356 ac_lo=$ac_mid; break
9357else
9358 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00009359sed 's/^/| /' conftest.$ac_ext >&5
9360
Martin v. Löwiseba40652007-08-30 20:10:57 +00009361 ac_hi=`expr '(' $ac_mid ')' - 1`
9362 if test $ac_mid -le $ac_hi; then
9363 ac_lo= ac_hi=
9364 break
9365 fi
9366 ac_mid=`expr 2 '*' $ac_mid`
Martin v. Löwis11437992002-04-12 09:54:03 +00009367fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00009368
9369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00009370 done
9371else
9372 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00009373sed 's/^/| /' conftest.$ac_ext >&5
9374
Martin v. Löwiseba40652007-08-30 20:10:57 +00009375 ac_lo= ac_hi=
Martin v. Löwis11437992002-04-12 09:54:03 +00009376fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00009377
9378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00009379fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00009380
9381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00009382# Binary search between lo and hi bounds.
9383while test "x$ac_lo" != "x$ac_hi"; do
9384 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9385 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00009386/* confdefs.h. */
9387_ACEOF
9388cat confdefs.h >>conftest.$ac_ext
9389cat >>conftest.$ac_ext <<_ACEOF
9390/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00009391$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00009392 typedef float ac__type_sizeof_;
Martin v. Löwis11437992002-04-12 09:54:03 +00009393int
9394main ()
9395{
Martin v. Löwiseba40652007-08-30 20:10:57 +00009396static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Martin v. Löwis11437992002-04-12 09:54:03 +00009397test_array [0] = 0
9398
9399 ;
9400 return 0;
9401}
9402_ACEOF
9403rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00009404if { (ac_try="$ac_compile"
9405case "(($ac_try" in
9406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9407 *) ac_try_echo=$ac_try;;
9408esac
9409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9410 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00009411 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00009412 grep -v '^ *+' conftest.er1 >conftest.err
9413 rm -f conftest.er1
9414 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00009415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00009416 (exit $ac_status); } && {
9417 test -z "$ac_c_werror_flag" ||
9418 test ! -s conftest.err
9419 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00009420 ac_hi=$ac_mid
9421else
9422 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00009423sed 's/^/| /' conftest.$ac_ext >&5
9424
Martin v. Löwiseba40652007-08-30 20:10:57 +00009425 ac_lo=`expr '(' $ac_mid ')' + 1`
Martin v. Löwis11437992002-04-12 09:54:03 +00009426fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00009427
9428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00009429done
9430case $ac_lo in
9431?*) ac_cv_sizeof_float=$ac_lo;;
Martin v. Löwiseba40652007-08-30 20:10:57 +00009432'') if test "$ac_cv_type_float" = yes; then
9433 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
Skip Montanaro6dead952003-09-25 14:50:04 +00009434See \`config.log' for more details." >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00009435echo "$as_me: error: cannot compute sizeof (float)
Skip Montanaro6dead952003-09-25 14:50:04 +00009436See \`config.log' for more details." >&2;}
Martin v. Löwiseba40652007-08-30 20:10:57 +00009437 { (exit 77); exit 77; }; }
9438 else
9439 ac_cv_sizeof_float=0
9440 fi ;;
Martin v. Löwis11437992002-04-12 09:54:03 +00009441esac
Guido van Rossumef2255b2000-03-10 22:30:29 +00009442else
Martin v. Löwis11437992002-04-12 09:54:03 +00009443 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00009444/* confdefs.h. */
9445_ACEOF
9446cat confdefs.h >>conftest.$ac_ext
9447cat >>conftest.$ac_ext <<_ACEOF
9448/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00009449$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00009450 typedef float ac__type_sizeof_;
9451static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9452static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Michael W. Hudson54241132001-12-07 15:38:26 +00009453#include <stdio.h>
Martin v. Löwis11437992002-04-12 09:54:03 +00009454#include <stdlib.h>
Martin v. Löwis11437992002-04-12 09:54:03 +00009455int
9456main ()
Guido van Rossumef2255b2000-03-10 22:30:29 +00009457{
Martin v. Löwis11437992002-04-12 09:54:03 +00009458
9459 FILE *f = fopen ("conftest.val", "w");
9460 if (! f)
Martin v. Löwiseba40652007-08-30 20:10:57 +00009461 return 1;
9462 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Martin v. Löwis11437992002-04-12 09:54:03 +00009463 {
Martin v. Löwiseba40652007-08-30 20:10:57 +00009464 long int i = longval ();
9465 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9466 return 1;
Martin v. Löwis11437992002-04-12 09:54:03 +00009467 fprintf (f, "%ld\n", i);
9468 }
9469 else
9470 {
Martin v. Löwiseba40652007-08-30 20:10:57 +00009471 unsigned long int i = ulongval ();
9472 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9473 return 1;
Martin v. Löwis11437992002-04-12 09:54:03 +00009474 fprintf (f, "%lu\n", i);
9475 }
Martin v. Löwiseba40652007-08-30 20:10:57 +00009476 return ferror (f) || fclose (f) != 0;
Martin v. Löwis11437992002-04-12 09:54:03 +00009477
9478 ;
9479 return 0;
Guido van Rossumef2255b2000-03-10 22:30:29 +00009480}
Martin v. Löwis11437992002-04-12 09:54:03 +00009481_ACEOF
9482rm -f conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +00009483if { (ac_try="$ac_link"
9484case "(($ac_try" in
9485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9486 *) ac_try_echo=$ac_try;;
9487esac
9488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9489 (eval "$ac_link") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +00009490 ac_status=$?
9491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9492 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Martin v. Löwiseba40652007-08-30 20:10:57 +00009493 { (case "(($ac_try" in
9494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9495 *) ac_try_echo=$ac_try;;
9496esac
9497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9498 (eval "$ac_try") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +00009499 ac_status=$?
9500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9501 (exit $ac_status); }; }; then
9502 ac_cv_sizeof_float=`cat conftest.val`
Guido van Rossumef2255b2000-03-10 22:30:29 +00009503else
Martin v. Löwis11437992002-04-12 09:54:03 +00009504 echo "$as_me: program exited with status $ac_status" >&5
9505echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00009506sed 's/^/| /' conftest.$ac_ext >&5
9507
Martin v. Löwis11437992002-04-12 09:54:03 +00009508( exit $ac_status )
Martin v. Löwiseba40652007-08-30 20:10:57 +00009509if test "$ac_cv_type_float" = yes; then
9510 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
Skip Montanaro6dead952003-09-25 14:50:04 +00009511See \`config.log' for more details." >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00009512echo "$as_me: error: cannot compute sizeof (float)
Skip Montanaro6dead952003-09-25 14:50:04 +00009513See \`config.log' for more details." >&2;}
Martin v. Löwiseba40652007-08-30 20:10:57 +00009514 { (exit 77); exit 77; }; }
9515 else
9516 ac_cv_sizeof_float=0
9517 fi
Martin v. Löwis11437992002-04-12 09:54:03 +00009518fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00009519rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00009520fi
9521rm -f conftest.val
Guido van Rossumef2255b2000-03-10 22:30:29 +00009522fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00009523{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
9524echo "${ECHO_T}$ac_cv_sizeof_float" >&6; }
9525
9526
9527
Martin v. Löwis11437992002-04-12 09:54:03 +00009528cat >>confdefs.h <<_ACEOF
Guido van Rossumef2255b2000-03-10 22:30:29 +00009529#define SIZEOF_FLOAT $ac_cv_sizeof_float
Martin v. Löwis11437992002-04-12 09:54:03 +00009530_ACEOF
Guido van Rossumef2255b2000-03-10 22:30:29 +00009531
9532
Martin v. Löwiseba40652007-08-30 20:10:57 +00009533{ echo "$as_me:$LINENO: checking for double" >&5
9534echo $ECHO_N "checking for double... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00009535if test "${ac_cv_type_double+set}" = set; then
9536 echo $ECHO_N "(cached) $ECHO_C" >&6
9537else
9538 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00009539/* confdefs.h. */
9540_ACEOF
9541cat confdefs.h >>conftest.$ac_ext
9542cat >>conftest.$ac_ext <<_ACEOF
9543/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00009544$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00009545typedef double ac__type_new_;
Martin v. Löwis11437992002-04-12 09:54:03 +00009546int
9547main ()
9548{
Martin v. Löwiseba40652007-08-30 20:10:57 +00009549if ((ac__type_new_ *) 0)
Martin v. Löwis11437992002-04-12 09:54:03 +00009550 return 0;
Martin v. Löwiseba40652007-08-30 20:10:57 +00009551if (sizeof (ac__type_new_))
Martin v. Löwis11437992002-04-12 09:54:03 +00009552 return 0;
9553 ;
9554 return 0;
9555}
9556_ACEOF
9557rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00009558if { (ac_try="$ac_compile"
9559case "(($ac_try" in
9560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9561 *) ac_try_echo=$ac_try;;
9562esac
9563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9564 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00009565 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00009566 grep -v '^ *+' conftest.er1 >conftest.err
9567 rm -f conftest.er1
9568 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00009569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00009570 (exit $ac_status); } && {
9571 test -z "$ac_c_werror_flag" ||
9572 test ! -s conftest.err
9573 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00009574 ac_cv_type_double=yes
9575else
9576 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00009577sed 's/^/| /' conftest.$ac_ext >&5
9578
Martin v. Löwiseba40652007-08-30 20:10:57 +00009579 ac_cv_type_double=no
Martin v. Löwis11437992002-04-12 09:54:03 +00009580fi
Brett Cannon19fab762007-06-02 03:02:29 +00009581
Martin v. Löwiseba40652007-08-30 20:10:57 +00009582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9583fi
9584{ echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
9585echo "${ECHO_T}$ac_cv_type_double" >&6; }
9586
9587# The cast to long int works around a bug in the HP C Compiler
9588# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9589# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9590# This bug is HP SR number 8606223364.
9591{ echo "$as_me:$LINENO: checking size of double" >&5
9592echo $ECHO_N "checking size of double... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00009593if test "${ac_cv_sizeof_double+set}" = set; then
9594 echo $ECHO_N "(cached) $ECHO_C" >&6
9595else
Martin v. Löwis11437992002-04-12 09:54:03 +00009596 if test "$cross_compiling" = yes; then
9597 # Depending upon the size, compute the lo and hi bounds.
9598cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00009599/* confdefs.h. */
9600_ACEOF
9601cat confdefs.h >>conftest.$ac_ext
9602cat >>conftest.$ac_ext <<_ACEOF
9603/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00009604$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00009605 typedef double ac__type_sizeof_;
Martin v. Löwis11437992002-04-12 09:54:03 +00009606int
9607main ()
9608{
Martin v. Löwiseba40652007-08-30 20:10:57 +00009609static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Martin v. Löwis11437992002-04-12 09:54:03 +00009610test_array [0] = 0
9611
9612 ;
9613 return 0;
9614}
9615_ACEOF
9616rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00009617if { (ac_try="$ac_compile"
9618case "(($ac_try" in
9619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9620 *) ac_try_echo=$ac_try;;
9621esac
9622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9623 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00009624 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00009625 grep -v '^ *+' conftest.er1 >conftest.err
9626 rm -f conftest.er1
9627 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00009628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00009629 (exit $ac_status); } && {
9630 test -z "$ac_c_werror_flag" ||
9631 test ! -s conftest.err
9632 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00009633 ac_lo=0 ac_mid=0
9634 while :; do
9635 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00009636/* confdefs.h. */
9637_ACEOF
9638cat confdefs.h >>conftest.$ac_ext
9639cat >>conftest.$ac_ext <<_ACEOF
9640/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00009641$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00009642 typedef double ac__type_sizeof_;
Martin v. Löwis11437992002-04-12 09:54:03 +00009643int
9644main ()
9645{
Martin v. Löwiseba40652007-08-30 20:10:57 +00009646static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Martin v. Löwis11437992002-04-12 09:54:03 +00009647test_array [0] = 0
9648
9649 ;
9650 return 0;
9651}
9652_ACEOF
9653rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00009654if { (ac_try="$ac_compile"
9655case "(($ac_try" in
9656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9657 *) ac_try_echo=$ac_try;;
9658esac
9659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9660 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00009661 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00009662 grep -v '^ *+' conftest.er1 >conftest.err
9663 rm -f conftest.er1
9664 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00009665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00009666 (exit $ac_status); } && {
9667 test -z "$ac_c_werror_flag" ||
9668 test ! -s conftest.err
9669 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00009670 ac_hi=$ac_mid; break
9671else
9672 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00009673sed 's/^/| /' conftest.$ac_ext >&5
9674
Martin v. Löwiseba40652007-08-30 20:10:57 +00009675 ac_lo=`expr $ac_mid + 1`
9676 if test $ac_lo -le $ac_mid; then
9677 ac_lo= ac_hi=
9678 break
9679 fi
9680 ac_mid=`expr 2 '*' $ac_mid + 1`
Martin v. Löwis11437992002-04-12 09:54:03 +00009681fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00009682
9683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00009684 done
9685else
9686 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00009687sed 's/^/| /' conftest.$ac_ext >&5
9688
Martin v. Löwiseba40652007-08-30 20:10:57 +00009689 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00009690/* confdefs.h. */
9691_ACEOF
9692cat confdefs.h >>conftest.$ac_ext
9693cat >>conftest.$ac_ext <<_ACEOF
9694/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00009695$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00009696 typedef double ac__type_sizeof_;
Martin v. Löwis11437992002-04-12 09:54:03 +00009697int
9698main ()
9699{
Martin v. Löwiseba40652007-08-30 20:10:57 +00009700static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Martin v. Löwis11437992002-04-12 09:54:03 +00009701test_array [0] = 0
9702
9703 ;
9704 return 0;
9705}
9706_ACEOF
9707rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00009708if { (ac_try="$ac_compile"
9709case "(($ac_try" in
9710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9711 *) ac_try_echo=$ac_try;;
9712esac
9713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9714 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00009715 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00009716 grep -v '^ *+' conftest.er1 >conftest.err
9717 rm -f conftest.er1
9718 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00009719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00009720 (exit $ac_status); } && {
9721 test -z "$ac_c_werror_flag" ||
9722 test ! -s conftest.err
9723 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00009724 ac_hi=-1 ac_mid=-1
9725 while :; do
9726 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00009727/* confdefs.h. */
9728_ACEOF
9729cat confdefs.h >>conftest.$ac_ext
9730cat >>conftest.$ac_ext <<_ACEOF
9731/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00009732$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00009733 typedef double ac__type_sizeof_;
Martin v. Löwis11437992002-04-12 09:54:03 +00009734int
9735main ()
9736{
Martin v. Löwiseba40652007-08-30 20:10:57 +00009737static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Martin v. Löwis11437992002-04-12 09:54:03 +00009738test_array [0] = 0
9739
9740 ;
9741 return 0;
9742}
9743_ACEOF
9744rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00009745if { (ac_try="$ac_compile"
9746case "(($ac_try" in
9747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9748 *) ac_try_echo=$ac_try;;
9749esac
9750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9751 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00009752 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00009753 grep -v '^ *+' conftest.er1 >conftest.err
9754 rm -f conftest.er1
9755 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00009756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00009757 (exit $ac_status); } && {
9758 test -z "$ac_c_werror_flag" ||
9759 test ! -s conftest.err
9760 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00009761 ac_lo=$ac_mid; break
9762else
9763 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00009764sed 's/^/| /' conftest.$ac_ext >&5
9765
Martin v. Löwiseba40652007-08-30 20:10:57 +00009766 ac_hi=`expr '(' $ac_mid ')' - 1`
9767 if test $ac_mid -le $ac_hi; then
9768 ac_lo= ac_hi=
9769 break
9770 fi
9771 ac_mid=`expr 2 '*' $ac_mid`
Martin v. Löwis11437992002-04-12 09:54:03 +00009772fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00009773
9774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00009775 done
9776else
9777 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00009778sed 's/^/| /' conftest.$ac_ext >&5
9779
Martin v. Löwiseba40652007-08-30 20:10:57 +00009780 ac_lo= ac_hi=
Martin v. Löwis11437992002-04-12 09:54:03 +00009781fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00009782
9783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00009784fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00009785
9786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00009787# Binary search between lo and hi bounds.
9788while test "x$ac_lo" != "x$ac_hi"; do
9789 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9790 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00009791/* confdefs.h. */
9792_ACEOF
9793cat confdefs.h >>conftest.$ac_ext
9794cat >>conftest.$ac_ext <<_ACEOF
9795/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00009796$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00009797 typedef double ac__type_sizeof_;
Martin v. Löwis11437992002-04-12 09:54:03 +00009798int
9799main ()
9800{
Martin v. Löwiseba40652007-08-30 20:10:57 +00009801static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Martin v. Löwis11437992002-04-12 09:54:03 +00009802test_array [0] = 0
9803
9804 ;
9805 return 0;
9806}
9807_ACEOF
9808rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00009809if { (ac_try="$ac_compile"
9810case "(($ac_try" in
9811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9812 *) ac_try_echo=$ac_try;;
9813esac
9814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9815 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00009816 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00009817 grep -v '^ *+' conftest.er1 >conftest.err
9818 rm -f conftest.er1
9819 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00009820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00009821 (exit $ac_status); } && {
9822 test -z "$ac_c_werror_flag" ||
9823 test ! -s conftest.err
9824 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00009825 ac_hi=$ac_mid
9826else
9827 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00009828sed 's/^/| /' conftest.$ac_ext >&5
9829
Martin v. Löwiseba40652007-08-30 20:10:57 +00009830 ac_lo=`expr '(' $ac_mid ')' + 1`
Martin v. Löwis11437992002-04-12 09:54:03 +00009831fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00009832
9833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00009834done
9835case $ac_lo in
9836?*) ac_cv_sizeof_double=$ac_lo;;
Martin v. Löwiseba40652007-08-30 20:10:57 +00009837'') if test "$ac_cv_type_double" = yes; then
9838 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
Skip Montanaro6dead952003-09-25 14:50:04 +00009839See \`config.log' for more details." >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00009840echo "$as_me: error: cannot compute sizeof (double)
Skip Montanaro6dead952003-09-25 14:50:04 +00009841See \`config.log' for more details." >&2;}
Martin v. Löwiseba40652007-08-30 20:10:57 +00009842 { (exit 77); exit 77; }; }
9843 else
9844 ac_cv_sizeof_double=0
9845 fi ;;
Martin v. Löwis11437992002-04-12 09:54:03 +00009846esac
Guido van Rossumef2255b2000-03-10 22:30:29 +00009847else
Martin v. Löwis11437992002-04-12 09:54:03 +00009848 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00009849/* confdefs.h. */
9850_ACEOF
9851cat confdefs.h >>conftest.$ac_ext
9852cat >>conftest.$ac_ext <<_ACEOF
9853/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00009854$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00009855 typedef double ac__type_sizeof_;
9856static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9857static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Michael W. Hudson54241132001-12-07 15:38:26 +00009858#include <stdio.h>
Martin v. Löwis11437992002-04-12 09:54:03 +00009859#include <stdlib.h>
Martin v. Löwis11437992002-04-12 09:54:03 +00009860int
9861main ()
Guido van Rossumef2255b2000-03-10 22:30:29 +00009862{
Martin v. Löwis11437992002-04-12 09:54:03 +00009863
9864 FILE *f = fopen ("conftest.val", "w");
9865 if (! f)
Martin v. Löwiseba40652007-08-30 20:10:57 +00009866 return 1;
9867 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Martin v. Löwis11437992002-04-12 09:54:03 +00009868 {
Martin v. Löwiseba40652007-08-30 20:10:57 +00009869 long int i = longval ();
9870 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9871 return 1;
Martin v. Löwis11437992002-04-12 09:54:03 +00009872 fprintf (f, "%ld\n", i);
9873 }
9874 else
9875 {
Martin v. Löwiseba40652007-08-30 20:10:57 +00009876 unsigned long int i = ulongval ();
9877 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9878 return 1;
Martin v. Löwis11437992002-04-12 09:54:03 +00009879 fprintf (f, "%lu\n", i);
9880 }
Martin v. Löwiseba40652007-08-30 20:10:57 +00009881 return ferror (f) || fclose (f) != 0;
Martin v. Löwis11437992002-04-12 09:54:03 +00009882
9883 ;
9884 return 0;
Guido van Rossumef2255b2000-03-10 22:30:29 +00009885}
Martin v. Löwis11437992002-04-12 09:54:03 +00009886_ACEOF
9887rm -f conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +00009888if { (ac_try="$ac_link"
9889case "(($ac_try" in
9890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9891 *) ac_try_echo=$ac_try;;
9892esac
9893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9894 (eval "$ac_link") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +00009895 ac_status=$?
9896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Martin v. Löwiseba40652007-08-30 20:10:57 +00009898 { (case "(($ac_try" in
9899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9900 *) ac_try_echo=$ac_try;;
9901esac
9902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9903 (eval "$ac_try") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +00009904 ac_status=$?
9905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906 (exit $ac_status); }; }; then
9907 ac_cv_sizeof_double=`cat conftest.val`
Guido van Rossumef2255b2000-03-10 22:30:29 +00009908else
Martin v. Löwis11437992002-04-12 09:54:03 +00009909 echo "$as_me: program exited with status $ac_status" >&5
9910echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00009911sed 's/^/| /' conftest.$ac_ext >&5
9912
Martin v. Löwis11437992002-04-12 09:54:03 +00009913( exit $ac_status )
Martin v. Löwiseba40652007-08-30 20:10:57 +00009914if test "$ac_cv_type_double" = yes; then
9915 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
Skip Montanaro6dead952003-09-25 14:50:04 +00009916See \`config.log' for more details." >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00009917echo "$as_me: error: cannot compute sizeof (double)
Skip Montanaro6dead952003-09-25 14:50:04 +00009918See \`config.log' for more details." >&2;}
Martin v. Löwiseba40652007-08-30 20:10:57 +00009919 { (exit 77); exit 77; }; }
9920 else
9921 ac_cv_sizeof_double=0
9922 fi
Martin v. Löwis11437992002-04-12 09:54:03 +00009923fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00009924rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00009925fi
9926rm -f conftest.val
Guido van Rossumef2255b2000-03-10 22:30:29 +00009927fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00009928{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
9929echo "${ECHO_T}$ac_cv_sizeof_double" >&6; }
9930
9931
9932
Martin v. Löwis11437992002-04-12 09:54:03 +00009933cat >>confdefs.h <<_ACEOF
Guido van Rossumef2255b2000-03-10 22:30:29 +00009934#define SIZEOF_DOUBLE $ac_cv_sizeof_double
Martin v. Löwis11437992002-04-12 09:54:03 +00009935_ACEOF
Guido van Rossumef2255b2000-03-10 22:30:29 +00009936
9937
Martin v. Löwiseba40652007-08-30 20:10:57 +00009938{ echo "$as_me:$LINENO: checking for fpos_t" >&5
9939echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00009940if test "${ac_cv_type_fpos_t+set}" = set; then
9941 echo $ECHO_N "(cached) $ECHO_C" >&6
9942else
9943 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00009944/* confdefs.h. */
9945_ACEOF
9946cat confdefs.h >>conftest.$ac_ext
9947cat >>conftest.$ac_ext <<_ACEOF
9948/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00009949$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +00009950typedef fpos_t ac__type_new_;
Martin v. Löwis11437992002-04-12 09:54:03 +00009951int
9952main ()
9953{
Martin v. Löwiseba40652007-08-30 20:10:57 +00009954if ((ac__type_new_ *) 0)
Martin v. Löwis11437992002-04-12 09:54:03 +00009955 return 0;
Martin v. Löwiseba40652007-08-30 20:10:57 +00009956if (sizeof (ac__type_new_))
Martin v. Löwis11437992002-04-12 09:54:03 +00009957 return 0;
9958 ;
9959 return 0;
9960}
9961_ACEOF
9962rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00009963if { (ac_try="$ac_compile"
9964case "(($ac_try" in
9965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9966 *) ac_try_echo=$ac_try;;
9967esac
9968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9969 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00009970 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00009971 grep -v '^ *+' conftest.er1 >conftest.err
9972 rm -f conftest.er1
9973 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00009974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00009975 (exit $ac_status); } && {
9976 test -z "$ac_c_werror_flag" ||
9977 test ! -s conftest.err
9978 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00009979 ac_cv_type_fpos_t=yes
9980else
9981 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00009982sed 's/^/| /' conftest.$ac_ext >&5
9983
Martin v. Löwiseba40652007-08-30 20:10:57 +00009984 ac_cv_type_fpos_t=no
Martin v. Löwis11437992002-04-12 09:54:03 +00009985fi
Brett Cannon19fab762007-06-02 03:02:29 +00009986
Martin v. Löwiseba40652007-08-30 20:10:57 +00009987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9988fi
9989{ echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
9990echo "${ECHO_T}$ac_cv_type_fpos_t" >&6; }
9991
9992# The cast to long int works around a bug in the HP C Compiler
9993# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9994# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9995# This bug is HP SR number 8606223364.
9996{ echo "$as_me:$LINENO: checking size of fpos_t" >&5
9997echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00009998if test "${ac_cv_sizeof_fpos_t+set}" = set; then
9999 echo $ECHO_N "(cached) $ECHO_C" >&6
10000else
Martin v. Löwis11437992002-04-12 09:54:03 +000010001 if test "$cross_compiling" = yes; then
10002 # Depending upon the size, compute the lo and hi bounds.
10003cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000010004/* confdefs.h. */
10005_ACEOF
10006cat confdefs.h >>conftest.$ac_ext
10007cat >>conftest.$ac_ext <<_ACEOF
10008/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000010009$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +000010010 typedef fpos_t ac__type_sizeof_;
Martin v. Löwis11437992002-04-12 09:54:03 +000010011int
10012main ()
10013{
Martin v. Löwiseba40652007-08-30 20:10:57 +000010014static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Martin v. Löwis11437992002-04-12 09:54:03 +000010015test_array [0] = 0
10016
10017 ;
10018 return 0;
10019}
10020_ACEOF
10021rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000010022if { (ac_try="$ac_compile"
10023case "(($ac_try" in
10024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10025 *) ac_try_echo=$ac_try;;
10026esac
10027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10028 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000010029 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000010030 grep -v '^ *+' conftest.er1 >conftest.err
10031 rm -f conftest.er1
10032 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000010033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000010034 (exit $ac_status); } && {
10035 test -z "$ac_c_werror_flag" ||
10036 test ! -s conftest.err
10037 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000010038 ac_lo=0 ac_mid=0
10039 while :; do
10040 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000010041/* confdefs.h. */
10042_ACEOF
10043cat confdefs.h >>conftest.$ac_ext
10044cat >>conftest.$ac_ext <<_ACEOF
10045/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000010046$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +000010047 typedef fpos_t ac__type_sizeof_;
Martin v. Löwis11437992002-04-12 09:54:03 +000010048int
10049main ()
10050{
Martin v. Löwiseba40652007-08-30 20:10:57 +000010051static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Martin v. Löwis11437992002-04-12 09:54:03 +000010052test_array [0] = 0
10053
10054 ;
10055 return 0;
10056}
10057_ACEOF
10058rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000010059if { (ac_try="$ac_compile"
10060case "(($ac_try" in
10061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10062 *) ac_try_echo=$ac_try;;
10063esac
10064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10065 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000010066 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000010067 grep -v '^ *+' conftest.er1 >conftest.err
10068 rm -f conftest.er1
10069 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000010070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000010071 (exit $ac_status); } && {
10072 test -z "$ac_c_werror_flag" ||
10073 test ! -s conftest.err
10074 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000010075 ac_hi=$ac_mid; break
10076else
10077 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000010078sed 's/^/| /' conftest.$ac_ext >&5
10079
Martin v. Löwiseba40652007-08-30 20:10:57 +000010080 ac_lo=`expr $ac_mid + 1`
10081 if test $ac_lo -le $ac_mid; then
10082 ac_lo= ac_hi=
10083 break
10084 fi
10085 ac_mid=`expr 2 '*' $ac_mid + 1`
Martin v. Löwis11437992002-04-12 09:54:03 +000010086fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000010087
10088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000010089 done
10090else
10091 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000010092sed 's/^/| /' conftest.$ac_ext >&5
10093
Martin v. Löwiseba40652007-08-30 20:10:57 +000010094 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000010095/* confdefs.h. */
10096_ACEOF
10097cat confdefs.h >>conftest.$ac_ext
10098cat >>conftest.$ac_ext <<_ACEOF
10099/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000010100$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +000010101 typedef fpos_t ac__type_sizeof_;
Martin v. Löwis11437992002-04-12 09:54:03 +000010102int
10103main ()
10104{
Martin v. Löwiseba40652007-08-30 20:10:57 +000010105static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Martin v. Löwis11437992002-04-12 09:54:03 +000010106test_array [0] = 0
10107
10108 ;
10109 return 0;
10110}
10111_ACEOF
10112rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000010113if { (ac_try="$ac_compile"
10114case "(($ac_try" in
10115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10116 *) ac_try_echo=$ac_try;;
10117esac
10118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10119 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000010120 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000010121 grep -v '^ *+' conftest.er1 >conftest.err
10122 rm -f conftest.er1
10123 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000010124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000010125 (exit $ac_status); } && {
10126 test -z "$ac_c_werror_flag" ||
10127 test ! -s conftest.err
10128 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000010129 ac_hi=-1 ac_mid=-1
10130 while :; do
10131 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000010132/* confdefs.h. */
10133_ACEOF
10134cat confdefs.h >>conftest.$ac_ext
10135cat >>conftest.$ac_ext <<_ACEOF
10136/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000010137$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +000010138 typedef fpos_t ac__type_sizeof_;
Martin v. Löwis11437992002-04-12 09:54:03 +000010139int
10140main ()
10141{
Martin v. Löwiseba40652007-08-30 20:10:57 +000010142static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Martin v. Löwis11437992002-04-12 09:54:03 +000010143test_array [0] = 0
10144
10145 ;
10146 return 0;
10147}
10148_ACEOF
10149rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000010150if { (ac_try="$ac_compile"
10151case "(($ac_try" in
10152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10153 *) ac_try_echo=$ac_try;;
10154esac
10155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10156 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000010157 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000010158 grep -v '^ *+' conftest.er1 >conftest.err
10159 rm -f conftest.er1
10160 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000010161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000010162 (exit $ac_status); } && {
10163 test -z "$ac_c_werror_flag" ||
10164 test ! -s conftest.err
10165 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000010166 ac_lo=$ac_mid; break
10167else
10168 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000010169sed 's/^/| /' conftest.$ac_ext >&5
10170
Martin v. Löwiseba40652007-08-30 20:10:57 +000010171 ac_hi=`expr '(' $ac_mid ')' - 1`
10172 if test $ac_mid -le $ac_hi; then
10173 ac_lo= ac_hi=
10174 break
10175 fi
10176 ac_mid=`expr 2 '*' $ac_mid`
Martin v. Löwis11437992002-04-12 09:54:03 +000010177fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000010178
10179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000010180 done
10181else
10182 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000010183sed 's/^/| /' conftest.$ac_ext >&5
10184
Martin v. Löwiseba40652007-08-30 20:10:57 +000010185 ac_lo= ac_hi=
Martin v. Löwis11437992002-04-12 09:54:03 +000010186fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000010187
10188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000010189fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000010190
10191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000010192# Binary search between lo and hi bounds.
10193while test "x$ac_lo" != "x$ac_hi"; do
10194 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10195 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000010196/* confdefs.h. */
10197_ACEOF
10198cat confdefs.h >>conftest.$ac_ext
10199cat >>conftest.$ac_ext <<_ACEOF
10200/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000010201$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +000010202 typedef fpos_t ac__type_sizeof_;
Martin v. Löwis11437992002-04-12 09:54:03 +000010203int
10204main ()
10205{
Martin v. Löwiseba40652007-08-30 20:10:57 +000010206static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Martin v. Löwis11437992002-04-12 09:54:03 +000010207test_array [0] = 0
10208
10209 ;
10210 return 0;
10211}
10212_ACEOF
10213rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000010214if { (ac_try="$ac_compile"
10215case "(($ac_try" in
10216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10217 *) ac_try_echo=$ac_try;;
10218esac
10219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10220 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000010221 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000010222 grep -v '^ *+' conftest.er1 >conftest.err
10223 rm -f conftest.er1
10224 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000010225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000010226 (exit $ac_status); } && {
10227 test -z "$ac_c_werror_flag" ||
10228 test ! -s conftest.err
10229 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000010230 ac_hi=$ac_mid
10231else
10232 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000010233sed 's/^/| /' conftest.$ac_ext >&5
10234
Martin v. Löwiseba40652007-08-30 20:10:57 +000010235 ac_lo=`expr '(' $ac_mid ')' + 1`
Martin v. Löwis11437992002-04-12 09:54:03 +000010236fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000010237
10238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000010239done
10240case $ac_lo in
10241?*) ac_cv_sizeof_fpos_t=$ac_lo;;
Martin v. Löwiseba40652007-08-30 20:10:57 +000010242'') if test "$ac_cv_type_fpos_t" = yes; then
10243 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
Skip Montanaro6dead952003-09-25 14:50:04 +000010244See \`config.log' for more details." >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000010245echo "$as_me: error: cannot compute sizeof (fpos_t)
Skip Montanaro6dead952003-09-25 14:50:04 +000010246See \`config.log' for more details." >&2;}
Martin v. Löwiseba40652007-08-30 20:10:57 +000010247 { (exit 77); exit 77; }; }
10248 else
10249 ac_cv_sizeof_fpos_t=0
10250 fi ;;
Martin v. Löwis11437992002-04-12 09:54:03 +000010251esac
Guido van Rossumb9a22a12000-06-30 02:48:53 +000010252else
Martin v. Löwis11437992002-04-12 09:54:03 +000010253 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000010254/* confdefs.h. */
10255_ACEOF
10256cat confdefs.h >>conftest.$ac_ext
10257cat >>conftest.$ac_ext <<_ACEOF
10258/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000010259$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +000010260 typedef fpos_t ac__type_sizeof_;
10261static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10262static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Michael W. Hudson54241132001-12-07 15:38:26 +000010263#include <stdio.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000010264#include <stdlib.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000010265int
10266main ()
Guido van Rossumb9a22a12000-06-30 02:48:53 +000010267{
Martin v. Löwis11437992002-04-12 09:54:03 +000010268
10269 FILE *f = fopen ("conftest.val", "w");
10270 if (! f)
Martin v. Löwiseba40652007-08-30 20:10:57 +000010271 return 1;
10272 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Martin v. Löwis11437992002-04-12 09:54:03 +000010273 {
Martin v. Löwiseba40652007-08-30 20:10:57 +000010274 long int i = longval ();
10275 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10276 return 1;
Martin v. Löwis11437992002-04-12 09:54:03 +000010277 fprintf (f, "%ld\n", i);
10278 }
10279 else
10280 {
Martin v. Löwiseba40652007-08-30 20:10:57 +000010281 unsigned long int i = ulongval ();
10282 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10283 return 1;
Martin v. Löwis11437992002-04-12 09:54:03 +000010284 fprintf (f, "%lu\n", i);
10285 }
Martin v. Löwiseba40652007-08-30 20:10:57 +000010286 return ferror (f) || fclose (f) != 0;
Martin v. Löwis11437992002-04-12 09:54:03 +000010287
10288 ;
10289 return 0;
Guido van Rossumb9a22a12000-06-30 02:48:53 +000010290}
Martin v. Löwis11437992002-04-12 09:54:03 +000010291_ACEOF
10292rm -f conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000010293if { (ac_try="$ac_link"
10294case "(($ac_try" in
10295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10296 *) ac_try_echo=$ac_try;;
10297esac
10298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10299 (eval "$ac_link") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +000010300 ac_status=$?
10301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Martin v. Löwiseba40652007-08-30 20:10:57 +000010303 { (case "(($ac_try" in
10304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10305 *) ac_try_echo=$ac_try;;
10306esac
10307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10308 (eval "$ac_try") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +000010309 ac_status=$?
10310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10311 (exit $ac_status); }; }; then
10312 ac_cv_sizeof_fpos_t=`cat conftest.val`
Guido van Rossumb9a22a12000-06-30 02:48:53 +000010313else
Martin v. Löwis11437992002-04-12 09:54:03 +000010314 echo "$as_me: program exited with status $ac_status" >&5
10315echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000010316sed 's/^/| /' conftest.$ac_ext >&5
10317
Martin v. Löwis11437992002-04-12 09:54:03 +000010318( exit $ac_status )
Martin v. Löwiseba40652007-08-30 20:10:57 +000010319if test "$ac_cv_type_fpos_t" = yes; then
10320 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
Skip Montanaro6dead952003-09-25 14:50:04 +000010321See \`config.log' for more details." >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000010322echo "$as_me: error: cannot compute sizeof (fpos_t)
Skip Montanaro6dead952003-09-25 14:50:04 +000010323See \`config.log' for more details." >&2;}
Martin v. Löwiseba40652007-08-30 20:10:57 +000010324 { (exit 77); exit 77; }; }
10325 else
10326 ac_cv_sizeof_fpos_t=0
10327 fi
Martin v. Löwis11437992002-04-12 09:54:03 +000010328fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000010329rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000010330fi
10331rm -f conftest.val
Guido van Rossumb9a22a12000-06-30 02:48:53 +000010332fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000010333{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
10334echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6; }
10335
10336
10337
Martin v. Löwis11437992002-04-12 09:54:03 +000010338cat >>confdefs.h <<_ACEOF
Guido van Rossumb9a22a12000-06-30 02:48:53 +000010339#define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
Martin v. Löwis11437992002-04-12 09:54:03 +000010340_ACEOF
Guido van Rossumb9a22a12000-06-30 02:48:53 +000010341
Michael W. Hudson54241132001-12-07 15:38:26 +000010342
Martin v. Löwiseba40652007-08-30 20:10:57 +000010343{ echo "$as_me:$LINENO: checking for size_t" >&5
10344echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
Martin v. Löwis18e16552006-02-15 17:27:45 +000010345if test "${ac_cv_type_size_t+set}" = set; then
10346 echo $ECHO_N "(cached) $ECHO_C" >&6
10347else
10348 cat >conftest.$ac_ext <<_ACEOF
10349/* confdefs.h. */
10350_ACEOF
10351cat confdefs.h >>conftest.$ac_ext
10352cat >>conftest.$ac_ext <<_ACEOF
10353/* end confdefs.h. */
10354$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +000010355typedef size_t ac__type_new_;
Martin v. Löwis18e16552006-02-15 17:27:45 +000010356int
10357main ()
10358{
Martin v. Löwiseba40652007-08-30 20:10:57 +000010359if ((ac__type_new_ *) 0)
Martin v. Löwis18e16552006-02-15 17:27:45 +000010360 return 0;
Martin v. Löwiseba40652007-08-30 20:10:57 +000010361if (sizeof (ac__type_new_))
Martin v. Löwis18e16552006-02-15 17:27:45 +000010362 return 0;
10363 ;
10364 return 0;
10365}
10366_ACEOF
10367rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000010368if { (ac_try="$ac_compile"
10369case "(($ac_try" in
10370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10371 *) ac_try_echo=$ac_try;;
10372esac
10373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10374 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis18e16552006-02-15 17:27:45 +000010375 ac_status=$?
10376 grep -v '^ *+' conftest.er1 >conftest.err
10377 rm -f conftest.er1
10378 cat conftest.err >&5
10379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000010380 (exit $ac_status); } && {
10381 test -z "$ac_c_werror_flag" ||
10382 test ! -s conftest.err
10383 } && test -s conftest.$ac_objext; then
Martin v. Löwis18e16552006-02-15 17:27:45 +000010384 ac_cv_type_size_t=yes
10385else
10386 echo "$as_me: failed program was:" >&5
10387sed 's/^/| /' conftest.$ac_ext >&5
10388
Martin v. Löwiseba40652007-08-30 20:10:57 +000010389 ac_cv_type_size_t=no
Martin v. Löwis18e16552006-02-15 17:27:45 +000010390fi
Brett Cannon19fab762007-06-02 03:02:29 +000010391
Martin v. Löwiseba40652007-08-30 20:10:57 +000010392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10393fi
10394{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10395echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
10396
10397# The cast to long int works around a bug in the HP C Compiler
10398# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10399# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10400# This bug is HP SR number 8606223364.
10401{ echo "$as_me:$LINENO: checking size of size_t" >&5
10402echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
Martin v. Löwis18e16552006-02-15 17:27:45 +000010403if test "${ac_cv_sizeof_size_t+set}" = set; then
10404 echo $ECHO_N "(cached) $ECHO_C" >&6
10405else
Martin v. Löwis18e16552006-02-15 17:27:45 +000010406 if test "$cross_compiling" = yes; then
10407 # Depending upon the size, compute the lo and hi bounds.
10408cat >conftest.$ac_ext <<_ACEOF
10409/* confdefs.h. */
10410_ACEOF
10411cat confdefs.h >>conftest.$ac_ext
10412cat >>conftest.$ac_ext <<_ACEOF
10413/* end confdefs.h. */
10414$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +000010415 typedef size_t ac__type_sizeof_;
Martin v. Löwis18e16552006-02-15 17:27:45 +000010416int
10417main ()
10418{
Martin v. Löwiseba40652007-08-30 20:10:57 +000010419static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Martin v. Löwis18e16552006-02-15 17:27:45 +000010420test_array [0] = 0
10421
10422 ;
10423 return 0;
10424}
10425_ACEOF
10426rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000010427if { (ac_try="$ac_compile"
10428case "(($ac_try" in
10429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10430 *) ac_try_echo=$ac_try;;
10431esac
10432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10433 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis18e16552006-02-15 17:27:45 +000010434 ac_status=$?
10435 grep -v '^ *+' conftest.er1 >conftest.err
10436 rm -f conftest.er1
10437 cat conftest.err >&5
10438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000010439 (exit $ac_status); } && {
10440 test -z "$ac_c_werror_flag" ||
10441 test ! -s conftest.err
10442 } && test -s conftest.$ac_objext; then
Martin v. Löwis18e16552006-02-15 17:27:45 +000010443 ac_lo=0 ac_mid=0
10444 while :; do
10445 cat >conftest.$ac_ext <<_ACEOF
10446/* confdefs.h. */
10447_ACEOF
10448cat confdefs.h >>conftest.$ac_ext
10449cat >>conftest.$ac_ext <<_ACEOF
10450/* end confdefs.h. */
10451$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +000010452 typedef size_t ac__type_sizeof_;
Martin v. Löwis18e16552006-02-15 17:27:45 +000010453int
10454main ()
10455{
Martin v. Löwiseba40652007-08-30 20:10:57 +000010456static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Martin v. Löwis18e16552006-02-15 17:27:45 +000010457test_array [0] = 0
10458
10459 ;
10460 return 0;
10461}
10462_ACEOF
10463rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000010464if { (ac_try="$ac_compile"
10465case "(($ac_try" in
10466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10467 *) ac_try_echo=$ac_try;;
10468esac
10469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10470 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis18e16552006-02-15 17:27:45 +000010471 ac_status=$?
10472 grep -v '^ *+' conftest.er1 >conftest.err
10473 rm -f conftest.er1
10474 cat conftest.err >&5
10475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000010476 (exit $ac_status); } && {
10477 test -z "$ac_c_werror_flag" ||
10478 test ! -s conftest.err
10479 } && test -s conftest.$ac_objext; then
Martin v. Löwis18e16552006-02-15 17:27:45 +000010480 ac_hi=$ac_mid; break
10481else
10482 echo "$as_me: failed program was:" >&5
10483sed 's/^/| /' conftest.$ac_ext >&5
10484
Martin v. Löwiseba40652007-08-30 20:10:57 +000010485 ac_lo=`expr $ac_mid + 1`
10486 if test $ac_lo -le $ac_mid; then
10487 ac_lo= ac_hi=
10488 break
10489 fi
10490 ac_mid=`expr 2 '*' $ac_mid + 1`
Martin v. Löwis18e16552006-02-15 17:27:45 +000010491fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000010492
10493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis18e16552006-02-15 17:27:45 +000010494 done
10495else
10496 echo "$as_me: failed program was:" >&5
10497sed 's/^/| /' conftest.$ac_ext >&5
10498
Martin v. Löwiseba40652007-08-30 20:10:57 +000010499 cat >conftest.$ac_ext <<_ACEOF
Martin v. Löwis18e16552006-02-15 17:27:45 +000010500/* confdefs.h. */
10501_ACEOF
10502cat confdefs.h >>conftest.$ac_ext
10503cat >>conftest.$ac_ext <<_ACEOF
10504/* end confdefs.h. */
10505$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +000010506 typedef size_t ac__type_sizeof_;
Martin v. Löwis18e16552006-02-15 17:27:45 +000010507int
10508main ()
10509{
Martin v. Löwiseba40652007-08-30 20:10:57 +000010510static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Martin v. Löwis18e16552006-02-15 17:27:45 +000010511test_array [0] = 0
10512
10513 ;
10514 return 0;
10515}
10516_ACEOF
10517rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000010518if { (ac_try="$ac_compile"
10519case "(($ac_try" in
10520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10521 *) ac_try_echo=$ac_try;;
10522esac
10523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10524 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis18e16552006-02-15 17:27:45 +000010525 ac_status=$?
10526 grep -v '^ *+' conftest.er1 >conftest.err
10527 rm -f conftest.er1
10528 cat conftest.err >&5
10529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000010530 (exit $ac_status); } && {
10531 test -z "$ac_c_werror_flag" ||
10532 test ! -s conftest.err
10533 } && test -s conftest.$ac_objext; then
Martin v. Löwis18e16552006-02-15 17:27:45 +000010534 ac_hi=-1 ac_mid=-1
10535 while :; do
10536 cat >conftest.$ac_ext <<_ACEOF
10537/* confdefs.h. */
10538_ACEOF
10539cat confdefs.h >>conftest.$ac_ext
10540cat >>conftest.$ac_ext <<_ACEOF
10541/* end confdefs.h. */
10542$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +000010543 typedef size_t ac__type_sizeof_;
Martin v. Löwis18e16552006-02-15 17:27:45 +000010544int
10545main ()
10546{
Martin v. Löwiseba40652007-08-30 20:10:57 +000010547static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Martin v. Löwis18e16552006-02-15 17:27:45 +000010548test_array [0] = 0
10549
10550 ;
10551 return 0;
10552}
10553_ACEOF
10554rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000010555if { (ac_try="$ac_compile"
10556case "(($ac_try" in
10557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10558 *) ac_try_echo=$ac_try;;
10559esac
10560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10561 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis18e16552006-02-15 17:27:45 +000010562 ac_status=$?
10563 grep -v '^ *+' conftest.er1 >conftest.err
10564 rm -f conftest.er1
10565 cat conftest.err >&5
10566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000010567 (exit $ac_status); } && {
10568 test -z "$ac_c_werror_flag" ||
10569 test ! -s conftest.err
10570 } && test -s conftest.$ac_objext; then
Martin v. Löwis18e16552006-02-15 17:27:45 +000010571 ac_lo=$ac_mid; break
10572else
10573 echo "$as_me: failed program was:" >&5
10574sed 's/^/| /' conftest.$ac_ext >&5
10575
Martin v. Löwiseba40652007-08-30 20:10:57 +000010576 ac_hi=`expr '(' $ac_mid ')' - 1`
10577 if test $ac_mid -le $ac_hi; then
10578 ac_lo= ac_hi=
10579 break
10580 fi
10581 ac_mid=`expr 2 '*' $ac_mid`
Martin v. Löwis18e16552006-02-15 17:27:45 +000010582fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000010583
10584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis18e16552006-02-15 17:27:45 +000010585 done
10586else
10587 echo "$as_me: failed program was:" >&5
10588sed 's/^/| /' conftest.$ac_ext >&5
10589
Martin v. Löwiseba40652007-08-30 20:10:57 +000010590 ac_lo= ac_hi=
Martin v. Löwis18e16552006-02-15 17:27:45 +000010591fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000010592
10593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis18e16552006-02-15 17:27:45 +000010594fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000010595
10596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis18e16552006-02-15 17:27:45 +000010597# Binary search between lo and hi bounds.
10598while test "x$ac_lo" != "x$ac_hi"; do
10599 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10600 cat >conftest.$ac_ext <<_ACEOF
10601/* confdefs.h. */
10602_ACEOF
10603cat confdefs.h >>conftest.$ac_ext
10604cat >>conftest.$ac_ext <<_ACEOF
10605/* end confdefs.h. */
10606$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +000010607 typedef size_t ac__type_sizeof_;
Martin v. Löwis18e16552006-02-15 17:27:45 +000010608int
10609main ()
10610{
Martin v. Löwiseba40652007-08-30 20:10:57 +000010611static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Martin v. Löwis18e16552006-02-15 17:27:45 +000010612test_array [0] = 0
10613
10614 ;
10615 return 0;
10616}
10617_ACEOF
10618rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000010619if { (ac_try="$ac_compile"
10620case "(($ac_try" in
10621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10622 *) ac_try_echo=$ac_try;;
10623esac
10624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10625 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis18e16552006-02-15 17:27:45 +000010626 ac_status=$?
10627 grep -v '^ *+' conftest.er1 >conftest.err
10628 rm -f conftest.er1
10629 cat conftest.err >&5
10630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000010631 (exit $ac_status); } && {
10632 test -z "$ac_c_werror_flag" ||
10633 test ! -s conftest.err
10634 } && test -s conftest.$ac_objext; then
Martin v. Löwis18e16552006-02-15 17:27:45 +000010635 ac_hi=$ac_mid
10636else
10637 echo "$as_me: failed program was:" >&5
10638sed 's/^/| /' conftest.$ac_ext >&5
10639
Martin v. Löwiseba40652007-08-30 20:10:57 +000010640 ac_lo=`expr '(' $ac_mid ')' + 1`
Martin v. Löwis18e16552006-02-15 17:27:45 +000010641fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000010642
10643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis18e16552006-02-15 17:27:45 +000010644done
10645case $ac_lo in
10646?*) ac_cv_sizeof_size_t=$ac_lo;;
Martin v. Löwiseba40652007-08-30 20:10:57 +000010647'') if test "$ac_cv_type_size_t" = yes; then
10648 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
Martin v. Löwis18e16552006-02-15 17:27:45 +000010649See \`config.log' for more details." >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000010650echo "$as_me: error: cannot compute sizeof (size_t)
Martin v. Löwis18e16552006-02-15 17:27:45 +000010651See \`config.log' for more details." >&2;}
Martin v. Löwiseba40652007-08-30 20:10:57 +000010652 { (exit 77); exit 77; }; }
10653 else
10654 ac_cv_sizeof_size_t=0
10655 fi ;;
Martin v. Löwis18e16552006-02-15 17:27:45 +000010656esac
10657else
Martin v. Löwis18e16552006-02-15 17:27:45 +000010658 cat >conftest.$ac_ext <<_ACEOF
10659/* confdefs.h. */
10660_ACEOF
10661cat confdefs.h >>conftest.$ac_ext
10662cat >>conftest.$ac_ext <<_ACEOF
10663/* end confdefs.h. */
10664$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +000010665 typedef size_t ac__type_sizeof_;
10666static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10667static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Martin v. Löwis18e16552006-02-15 17:27:45 +000010668#include <stdio.h>
10669#include <stdlib.h>
10670int
10671main ()
10672{
10673
10674 FILE *f = fopen ("conftest.val", "w");
10675 if (! f)
Martin v. Löwiseba40652007-08-30 20:10:57 +000010676 return 1;
10677 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Martin v. Löwis18e16552006-02-15 17:27:45 +000010678 {
Martin v. Löwiseba40652007-08-30 20:10:57 +000010679 long int i = longval ();
10680 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10681 return 1;
Martin v. Löwis18e16552006-02-15 17:27:45 +000010682 fprintf (f, "%ld\n", i);
10683 }
10684 else
10685 {
Martin v. Löwiseba40652007-08-30 20:10:57 +000010686 unsigned long int i = ulongval ();
10687 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10688 return 1;
Martin v. Löwis18e16552006-02-15 17:27:45 +000010689 fprintf (f, "%lu\n", i);
10690 }
Martin v. Löwiseba40652007-08-30 20:10:57 +000010691 return ferror (f) || fclose (f) != 0;
Martin v. Löwis18e16552006-02-15 17:27:45 +000010692
10693 ;
10694 return 0;
10695}
10696_ACEOF
10697rm -f conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000010698if { (ac_try="$ac_link"
10699case "(($ac_try" in
10700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10701 *) ac_try_echo=$ac_try;;
10702esac
10703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10704 (eval "$ac_link") 2>&5
Martin v. Löwis18e16552006-02-15 17:27:45 +000010705 ac_status=$?
10706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10707 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Martin v. Löwiseba40652007-08-30 20:10:57 +000010708 { (case "(($ac_try" in
10709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10710 *) ac_try_echo=$ac_try;;
10711esac
10712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10713 (eval "$ac_try") 2>&5
Martin v. Löwis18e16552006-02-15 17:27:45 +000010714 ac_status=$?
10715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10716 (exit $ac_status); }; }; then
10717 ac_cv_sizeof_size_t=`cat conftest.val`
10718else
10719 echo "$as_me: program exited with status $ac_status" >&5
10720echo "$as_me: failed program was:" >&5
10721sed 's/^/| /' conftest.$ac_ext >&5
10722
10723( exit $ac_status )
Martin v. Löwiseba40652007-08-30 20:10:57 +000010724if test "$ac_cv_type_size_t" = yes; then
10725 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
Martin v. Löwis18e16552006-02-15 17:27:45 +000010726See \`config.log' for more details." >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000010727echo "$as_me: error: cannot compute sizeof (size_t)
Martin v. Löwis18e16552006-02-15 17:27:45 +000010728See \`config.log' for more details." >&2;}
Martin v. Löwiseba40652007-08-30 20:10:57 +000010729 { (exit 77); exit 77; }; }
10730 else
10731 ac_cv_sizeof_size_t=0
10732 fi
Martin v. Löwis18e16552006-02-15 17:27:45 +000010733fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000010734rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis18e16552006-02-15 17:27:45 +000010735fi
10736rm -f conftest.val
Martin v. Löwis18e16552006-02-15 17:27:45 +000010737fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000010738{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
10739echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
10740
10741
10742
Martin v. Löwis18e16552006-02-15 17:27:45 +000010743cat >>confdefs.h <<_ACEOF
10744#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
10745_ACEOF
10746
10747
Christian Heimes951cc0f2008-01-31 23:08:23 +000010748{ echo "$as_me:$LINENO: checking for pid_t" >&5
10749echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
10750if test "${ac_cv_type_pid_t+set}" = set; then
10751 echo $ECHO_N "(cached) $ECHO_C" >&6
10752else
10753 cat >conftest.$ac_ext <<_ACEOF
10754/* confdefs.h. */
10755_ACEOF
10756cat confdefs.h >>conftest.$ac_ext
10757cat >>conftest.$ac_ext <<_ACEOF
10758/* end confdefs.h. */
10759$ac_includes_default
10760typedef pid_t ac__type_new_;
10761int
10762main ()
10763{
10764if ((ac__type_new_ *) 0)
10765 return 0;
10766if (sizeof (ac__type_new_))
10767 return 0;
10768 ;
10769 return 0;
10770}
10771_ACEOF
10772rm -f conftest.$ac_objext
10773if { (ac_try="$ac_compile"
10774case "(($ac_try" in
10775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10776 *) ac_try_echo=$ac_try;;
10777esac
10778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10779 (eval "$ac_compile") 2>conftest.er1
10780 ac_status=$?
10781 grep -v '^ *+' conftest.er1 >conftest.err
10782 rm -f conftest.er1
10783 cat conftest.err >&5
10784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785 (exit $ac_status); } && {
10786 test -z "$ac_c_werror_flag" ||
10787 test ! -s conftest.err
10788 } && test -s conftest.$ac_objext; then
10789 ac_cv_type_pid_t=yes
10790else
10791 echo "$as_me: failed program was:" >&5
10792sed 's/^/| /' conftest.$ac_ext >&5
10793
10794 ac_cv_type_pid_t=no
10795fi
10796
10797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10798fi
10799{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10800echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
10801
10802# The cast to long int works around a bug in the HP C Compiler
10803# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10804# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10805# This bug is HP SR number 8606223364.
10806{ echo "$as_me:$LINENO: checking size of pid_t" >&5
10807echo $ECHO_N "checking size of pid_t... $ECHO_C" >&6; }
10808if test "${ac_cv_sizeof_pid_t+set}" = set; then
10809 echo $ECHO_N "(cached) $ECHO_C" >&6
10810else
10811 if test "$cross_compiling" = yes; then
10812 # Depending upon the size, compute the lo and hi bounds.
10813cat >conftest.$ac_ext <<_ACEOF
10814/* confdefs.h. */
10815_ACEOF
10816cat confdefs.h >>conftest.$ac_ext
10817cat >>conftest.$ac_ext <<_ACEOF
10818/* end confdefs.h. */
10819$ac_includes_default
10820 typedef pid_t ac__type_sizeof_;
10821int
10822main ()
10823{
10824static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10825test_array [0] = 0
10826
10827 ;
10828 return 0;
10829}
10830_ACEOF
10831rm -f conftest.$ac_objext
10832if { (ac_try="$ac_compile"
10833case "(($ac_try" in
10834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10835 *) ac_try_echo=$ac_try;;
10836esac
10837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10838 (eval "$ac_compile") 2>conftest.er1
10839 ac_status=$?
10840 grep -v '^ *+' conftest.er1 >conftest.err
10841 rm -f conftest.er1
10842 cat conftest.err >&5
10843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10844 (exit $ac_status); } && {
10845 test -z "$ac_c_werror_flag" ||
10846 test ! -s conftest.err
10847 } && test -s conftest.$ac_objext; then
10848 ac_lo=0 ac_mid=0
10849 while :; do
10850 cat >conftest.$ac_ext <<_ACEOF
10851/* confdefs.h. */
10852_ACEOF
10853cat confdefs.h >>conftest.$ac_ext
10854cat >>conftest.$ac_ext <<_ACEOF
10855/* end confdefs.h. */
10856$ac_includes_default
10857 typedef pid_t ac__type_sizeof_;
10858int
10859main ()
10860{
10861static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10862test_array [0] = 0
10863
10864 ;
10865 return 0;
10866}
10867_ACEOF
10868rm -f conftest.$ac_objext
10869if { (ac_try="$ac_compile"
10870case "(($ac_try" in
10871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10872 *) ac_try_echo=$ac_try;;
10873esac
10874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10875 (eval "$ac_compile") 2>conftest.er1
10876 ac_status=$?
10877 grep -v '^ *+' conftest.er1 >conftest.err
10878 rm -f conftest.er1
10879 cat conftest.err >&5
10880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10881 (exit $ac_status); } && {
10882 test -z "$ac_c_werror_flag" ||
10883 test ! -s conftest.err
10884 } && test -s conftest.$ac_objext; then
10885 ac_hi=$ac_mid; break
10886else
10887 echo "$as_me: failed program was:" >&5
10888sed 's/^/| /' conftest.$ac_ext >&5
10889
10890 ac_lo=`expr $ac_mid + 1`
10891 if test $ac_lo -le $ac_mid; then
10892 ac_lo= ac_hi=
10893 break
10894 fi
10895 ac_mid=`expr 2 '*' $ac_mid + 1`
10896fi
10897
10898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10899 done
10900else
10901 echo "$as_me: failed program was:" >&5
10902sed 's/^/| /' conftest.$ac_ext >&5
10903
10904 cat >conftest.$ac_ext <<_ACEOF
10905/* confdefs.h. */
10906_ACEOF
10907cat confdefs.h >>conftest.$ac_ext
10908cat >>conftest.$ac_ext <<_ACEOF
10909/* end confdefs.h. */
10910$ac_includes_default
10911 typedef pid_t ac__type_sizeof_;
10912int
10913main ()
10914{
10915static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10916test_array [0] = 0
10917
10918 ;
10919 return 0;
10920}
10921_ACEOF
10922rm -f conftest.$ac_objext
10923if { (ac_try="$ac_compile"
10924case "(($ac_try" in
10925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10926 *) ac_try_echo=$ac_try;;
10927esac
10928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10929 (eval "$ac_compile") 2>conftest.er1
10930 ac_status=$?
10931 grep -v '^ *+' conftest.er1 >conftest.err
10932 rm -f conftest.er1
10933 cat conftest.err >&5
10934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10935 (exit $ac_status); } && {
10936 test -z "$ac_c_werror_flag" ||
10937 test ! -s conftest.err
10938 } && test -s conftest.$ac_objext; then
10939 ac_hi=-1 ac_mid=-1
10940 while :; do
10941 cat >conftest.$ac_ext <<_ACEOF
10942/* confdefs.h. */
10943_ACEOF
10944cat confdefs.h >>conftest.$ac_ext
10945cat >>conftest.$ac_ext <<_ACEOF
10946/* end confdefs.h. */
10947$ac_includes_default
10948 typedef pid_t ac__type_sizeof_;
10949int
10950main ()
10951{
10952static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10953test_array [0] = 0
10954
10955 ;
10956 return 0;
10957}
10958_ACEOF
10959rm -f conftest.$ac_objext
10960if { (ac_try="$ac_compile"
10961case "(($ac_try" in
10962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10963 *) ac_try_echo=$ac_try;;
10964esac
10965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10966 (eval "$ac_compile") 2>conftest.er1
10967 ac_status=$?
10968 grep -v '^ *+' conftest.er1 >conftest.err
10969 rm -f conftest.er1
10970 cat conftest.err >&5
10971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10972 (exit $ac_status); } && {
10973 test -z "$ac_c_werror_flag" ||
10974 test ! -s conftest.err
10975 } && test -s conftest.$ac_objext; then
10976 ac_lo=$ac_mid; break
10977else
10978 echo "$as_me: failed program was:" >&5
10979sed 's/^/| /' conftest.$ac_ext >&5
10980
10981 ac_hi=`expr '(' $ac_mid ')' - 1`
10982 if test $ac_mid -le $ac_hi; then
10983 ac_lo= ac_hi=
10984 break
10985 fi
10986 ac_mid=`expr 2 '*' $ac_mid`
10987fi
10988
10989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10990 done
10991else
10992 echo "$as_me: failed program was:" >&5
10993sed 's/^/| /' conftest.$ac_ext >&5
10994
10995 ac_lo= ac_hi=
10996fi
10997
10998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10999fi
11000
11001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11002# Binary search between lo and hi bounds.
11003while test "x$ac_lo" != "x$ac_hi"; do
11004 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11005 cat >conftest.$ac_ext <<_ACEOF
11006/* confdefs.h. */
11007_ACEOF
11008cat confdefs.h >>conftest.$ac_ext
11009cat >>conftest.$ac_ext <<_ACEOF
11010/* end confdefs.h. */
11011$ac_includes_default
11012 typedef pid_t ac__type_sizeof_;
11013int
11014main ()
11015{
11016static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11017test_array [0] = 0
11018
11019 ;
11020 return 0;
11021}
11022_ACEOF
11023rm -f conftest.$ac_objext
11024if { (ac_try="$ac_compile"
11025case "(($ac_try" in
11026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11027 *) ac_try_echo=$ac_try;;
11028esac
11029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11030 (eval "$ac_compile") 2>conftest.er1
11031 ac_status=$?
11032 grep -v '^ *+' conftest.er1 >conftest.err
11033 rm -f conftest.er1
11034 cat conftest.err >&5
11035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11036 (exit $ac_status); } && {
11037 test -z "$ac_c_werror_flag" ||
11038 test ! -s conftest.err
11039 } && test -s conftest.$ac_objext; then
11040 ac_hi=$ac_mid
11041else
11042 echo "$as_me: failed program was:" >&5
11043sed 's/^/| /' conftest.$ac_ext >&5
11044
11045 ac_lo=`expr '(' $ac_mid ')' + 1`
11046fi
11047
11048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11049done
11050case $ac_lo in
11051?*) ac_cv_sizeof_pid_t=$ac_lo;;
11052'') if test "$ac_cv_type_pid_t" = yes; then
11053 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
11054See \`config.log' for more details." >&5
11055echo "$as_me: error: cannot compute sizeof (pid_t)
11056See \`config.log' for more details." >&2;}
11057 { (exit 77); exit 77; }; }
11058 else
11059 ac_cv_sizeof_pid_t=0
11060 fi ;;
11061esac
11062else
11063 cat >conftest.$ac_ext <<_ACEOF
11064/* confdefs.h. */
11065_ACEOF
11066cat confdefs.h >>conftest.$ac_ext
11067cat >>conftest.$ac_ext <<_ACEOF
11068/* end confdefs.h. */
11069$ac_includes_default
11070 typedef pid_t ac__type_sizeof_;
11071static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11072static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11073#include <stdio.h>
11074#include <stdlib.h>
11075int
11076main ()
11077{
11078
11079 FILE *f = fopen ("conftest.val", "w");
11080 if (! f)
11081 return 1;
11082 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11083 {
11084 long int i = longval ();
11085 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11086 return 1;
11087 fprintf (f, "%ld\n", i);
11088 }
11089 else
11090 {
11091 unsigned long int i = ulongval ();
11092 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11093 return 1;
11094 fprintf (f, "%lu\n", i);
11095 }
11096 return ferror (f) || fclose (f) != 0;
11097
11098 ;
11099 return 0;
11100}
11101_ACEOF
11102rm -f conftest$ac_exeext
11103if { (ac_try="$ac_link"
11104case "(($ac_try" in
11105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11106 *) ac_try_echo=$ac_try;;
11107esac
11108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11109 (eval "$ac_link") 2>&5
11110 ac_status=$?
11111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11112 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11113 { (case "(($ac_try" in
11114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11115 *) ac_try_echo=$ac_try;;
11116esac
11117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11118 (eval "$ac_try") 2>&5
11119 ac_status=$?
11120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11121 (exit $ac_status); }; }; then
11122 ac_cv_sizeof_pid_t=`cat conftest.val`
11123else
11124 echo "$as_me: program exited with status $ac_status" >&5
11125echo "$as_me: failed program was:" >&5
11126sed 's/^/| /' conftest.$ac_ext >&5
11127
11128( exit $ac_status )
11129if test "$ac_cv_type_pid_t" = yes; then
11130 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
11131See \`config.log' for more details." >&5
11132echo "$as_me: error: cannot compute sizeof (pid_t)
11133See \`config.log' for more details." >&2;}
11134 { (exit 77); exit 77; }; }
11135 else
11136 ac_cv_sizeof_pid_t=0
11137 fi
11138fi
11139rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11140fi
11141rm -f conftest.val
11142fi
11143{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_pid_t" >&5
11144echo "${ECHO_T}$ac_cv_sizeof_pid_t" >&6; }
11145
11146
11147
11148cat >>confdefs.h <<_ACEOF
11149#define SIZEOF_PID_T $ac_cv_sizeof_pid_t
11150_ACEOF
11151
11152
Michael W. Hudson54241132001-12-07 15:38:26 +000011153
Martin v. Löwiseba40652007-08-30 20:10:57 +000011154{ echo "$as_me:$LINENO: checking for long long support" >&5
11155echo $ECHO_N "checking for long long support... $ECHO_C" >&6; }
Guido van Rossumec95c7b1998-08-04 17:59:56 +000011156have_long_long=no
Martin v. Löwis11437992002-04-12 09:54:03 +000011157cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000011158/* confdefs.h. */
11159_ACEOF
11160cat confdefs.h >>conftest.$ac_ext
11161cat >>conftest.$ac_ext <<_ACEOF
11162/* end confdefs.h. */
Guido van Rossumec95c7b1998-08-04 17:59:56 +000011163
Martin v. Löwis11437992002-04-12 09:54:03 +000011164int
11165main ()
11166{
Guido van Rossumec95c7b1998-08-04 17:59:56 +000011167long long x; x = (long long)0;
Martin v. Löwis11437992002-04-12 09:54:03 +000011168 ;
11169 return 0;
11170}
11171_ACEOF
11172rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000011173if { (ac_try="$ac_compile"
11174case "(($ac_try" in
11175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11176 *) ac_try_echo=$ac_try;;
11177esac
11178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11179 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000011180 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000011181 grep -v '^ *+' conftest.er1 >conftest.err
11182 rm -f conftest.er1
11183 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000011184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000011185 (exit $ac_status); } && {
11186 test -z "$ac_c_werror_flag" ||
11187 test ! -s conftest.err
11188 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000011189
11190
11191cat >>confdefs.h <<\_ACEOF
Guido van Rossumec95c7b1998-08-04 17:59:56 +000011192#define HAVE_LONG_LONG 1
Martin v. Löwis11437992002-04-12 09:54:03 +000011193_ACEOF
11194
Martin v. Löwisc45929e2002-04-06 10:10:49 +000011195 have_long_long=yes
11196
Guido van Rossumec95c7b1998-08-04 17:59:56 +000011197else
Martin v. Löwis11437992002-04-12 09:54:03 +000011198 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000011199sed 's/^/| /' conftest.$ac_ext >&5
11200
Martin v. Löwiseba40652007-08-30 20:10:57 +000011201
Guido van Rossumec95c7b1998-08-04 17:59:56 +000011202fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000011203
11204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11205{ echo "$as_me:$LINENO: result: $have_long_long" >&5
11206echo "${ECHO_T}$have_long_long" >&6; }
Guido van Rossum96f2eb91999-04-10 16:02:18 +000011207if test "$have_long_long" = yes ; then
Martin v. Löwiseba40652007-08-30 20:10:57 +000011208{ echo "$as_me:$LINENO: checking for long long" >&5
11209echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000011210if test "${ac_cv_type_long_long+set}" = set; then
11211 echo $ECHO_N "(cached) $ECHO_C" >&6
11212else
11213 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000011214/* confdefs.h. */
11215_ACEOF
11216cat confdefs.h >>conftest.$ac_ext
11217cat >>conftest.$ac_ext <<_ACEOF
11218/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000011219$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +000011220typedef long long ac__type_new_;
Martin v. Löwis11437992002-04-12 09:54:03 +000011221int
11222main ()
11223{
Martin v. Löwiseba40652007-08-30 20:10:57 +000011224if ((ac__type_new_ *) 0)
Martin v. Löwis11437992002-04-12 09:54:03 +000011225 return 0;
Martin v. Löwiseba40652007-08-30 20:10:57 +000011226if (sizeof (ac__type_new_))
Martin v. Löwis11437992002-04-12 09:54:03 +000011227 return 0;
11228 ;
11229 return 0;
11230}
11231_ACEOF
11232rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000011233if { (ac_try="$ac_compile"
11234case "(($ac_try" in
11235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11236 *) ac_try_echo=$ac_try;;
11237esac
11238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11239 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000011240 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000011241 grep -v '^ *+' conftest.er1 >conftest.err
11242 rm -f conftest.er1
11243 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000011244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000011245 (exit $ac_status); } && {
11246 test -z "$ac_c_werror_flag" ||
11247 test ! -s conftest.err
11248 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000011249 ac_cv_type_long_long=yes
11250else
11251 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000011252sed 's/^/| /' conftest.$ac_ext >&5
11253
Martin v. Löwiseba40652007-08-30 20:10:57 +000011254 ac_cv_type_long_long=no
Martin v. Löwis11437992002-04-12 09:54:03 +000011255fi
Brett Cannon19fab762007-06-02 03:02:29 +000011256
Martin v. Löwiseba40652007-08-30 20:10:57 +000011257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11258fi
11259{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
11260echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
11261
11262# The cast to long int works around a bug in the HP C Compiler
11263# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11264# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11265# This bug is HP SR number 8606223364.
11266{ echo "$as_me:$LINENO: checking size of long long" >&5
11267echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000011268if test "${ac_cv_sizeof_long_long+set}" = set; then
11269 echo $ECHO_N "(cached) $ECHO_C" >&6
11270else
Martin v. Löwis11437992002-04-12 09:54:03 +000011271 if test "$cross_compiling" = yes; then
11272 # Depending upon the size, compute the lo and hi bounds.
11273cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000011274/* confdefs.h. */
11275_ACEOF
11276cat confdefs.h >>conftest.$ac_ext
11277cat >>conftest.$ac_ext <<_ACEOF
11278/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000011279$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +000011280 typedef long long ac__type_sizeof_;
Martin v. Löwis11437992002-04-12 09:54:03 +000011281int
11282main ()
11283{
Martin v. Löwiseba40652007-08-30 20:10:57 +000011284static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Martin v. Löwis11437992002-04-12 09:54:03 +000011285test_array [0] = 0
11286
11287 ;
11288 return 0;
11289}
11290_ACEOF
11291rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000011292if { (ac_try="$ac_compile"
11293case "(($ac_try" in
11294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11295 *) ac_try_echo=$ac_try;;
11296esac
11297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11298 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000011299 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000011300 grep -v '^ *+' conftest.er1 >conftest.err
11301 rm -f conftest.er1
11302 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000011303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000011304 (exit $ac_status); } && {
11305 test -z "$ac_c_werror_flag" ||
11306 test ! -s conftest.err
11307 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000011308 ac_lo=0 ac_mid=0
11309 while :; do
11310 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000011311/* confdefs.h. */
11312_ACEOF
11313cat confdefs.h >>conftest.$ac_ext
11314cat >>conftest.$ac_ext <<_ACEOF
11315/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000011316$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +000011317 typedef long long ac__type_sizeof_;
Martin v. Löwis11437992002-04-12 09:54:03 +000011318int
11319main ()
11320{
Martin v. Löwiseba40652007-08-30 20:10:57 +000011321static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Martin v. Löwis11437992002-04-12 09:54:03 +000011322test_array [0] = 0
11323
11324 ;
11325 return 0;
11326}
11327_ACEOF
11328rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000011329if { (ac_try="$ac_compile"
11330case "(($ac_try" in
11331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11332 *) ac_try_echo=$ac_try;;
11333esac
11334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11335 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000011336 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000011337 grep -v '^ *+' conftest.er1 >conftest.err
11338 rm -f conftest.er1
11339 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000011340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000011341 (exit $ac_status); } && {
11342 test -z "$ac_c_werror_flag" ||
11343 test ! -s conftest.err
11344 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000011345 ac_hi=$ac_mid; break
11346else
11347 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000011348sed 's/^/| /' conftest.$ac_ext >&5
11349
Martin v. Löwiseba40652007-08-30 20:10:57 +000011350 ac_lo=`expr $ac_mid + 1`
11351 if test $ac_lo -le $ac_mid; then
11352 ac_lo= ac_hi=
11353 break
11354 fi
11355 ac_mid=`expr 2 '*' $ac_mid + 1`
Martin v. Löwis11437992002-04-12 09:54:03 +000011356fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000011357
11358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000011359 done
11360else
11361 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000011362sed 's/^/| /' conftest.$ac_ext >&5
11363
Martin v. Löwiseba40652007-08-30 20:10:57 +000011364 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000011365/* confdefs.h. */
11366_ACEOF
11367cat confdefs.h >>conftest.$ac_ext
11368cat >>conftest.$ac_ext <<_ACEOF
11369/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000011370$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +000011371 typedef long long ac__type_sizeof_;
Martin v. Löwis11437992002-04-12 09:54:03 +000011372int
11373main ()
11374{
Martin v. Löwiseba40652007-08-30 20:10:57 +000011375static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Martin v. Löwis11437992002-04-12 09:54:03 +000011376test_array [0] = 0
11377
11378 ;
11379 return 0;
11380}
11381_ACEOF
11382rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000011383if { (ac_try="$ac_compile"
11384case "(($ac_try" in
11385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11386 *) ac_try_echo=$ac_try;;
11387esac
11388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11389 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000011390 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000011391 grep -v '^ *+' conftest.er1 >conftest.err
11392 rm -f conftest.er1
11393 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000011394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000011395 (exit $ac_status); } && {
11396 test -z "$ac_c_werror_flag" ||
11397 test ! -s conftest.err
11398 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000011399 ac_hi=-1 ac_mid=-1
11400 while :; do
11401 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000011402/* confdefs.h. */
11403_ACEOF
11404cat confdefs.h >>conftest.$ac_ext
11405cat >>conftest.$ac_ext <<_ACEOF
11406/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000011407$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +000011408 typedef long long ac__type_sizeof_;
Martin v. Löwis11437992002-04-12 09:54:03 +000011409int
11410main ()
11411{
Martin v. Löwiseba40652007-08-30 20:10:57 +000011412static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Martin v. Löwis11437992002-04-12 09:54:03 +000011413test_array [0] = 0
11414
11415 ;
11416 return 0;
11417}
11418_ACEOF
11419rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000011420if { (ac_try="$ac_compile"
11421case "(($ac_try" in
11422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11423 *) ac_try_echo=$ac_try;;
11424esac
11425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11426 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000011427 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000011428 grep -v '^ *+' conftest.er1 >conftest.err
11429 rm -f conftest.er1
11430 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000011431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000011432 (exit $ac_status); } && {
11433 test -z "$ac_c_werror_flag" ||
11434 test ! -s conftest.err
11435 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000011436 ac_lo=$ac_mid; break
11437else
11438 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000011439sed 's/^/| /' conftest.$ac_ext >&5
11440
Martin v. Löwiseba40652007-08-30 20:10:57 +000011441 ac_hi=`expr '(' $ac_mid ')' - 1`
11442 if test $ac_mid -le $ac_hi; then
11443 ac_lo= ac_hi=
11444 break
11445 fi
11446 ac_mid=`expr 2 '*' $ac_mid`
Martin v. Löwis11437992002-04-12 09:54:03 +000011447fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000011448
11449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000011450 done
11451else
11452 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000011453sed 's/^/| /' conftest.$ac_ext >&5
11454
Martin v. Löwiseba40652007-08-30 20:10:57 +000011455 ac_lo= ac_hi=
Martin v. Löwis11437992002-04-12 09:54:03 +000011456fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000011457
11458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000011459fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000011460
11461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000011462# Binary search between lo and hi bounds.
11463while test "x$ac_lo" != "x$ac_hi"; do
11464 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11465 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000011466/* confdefs.h. */
11467_ACEOF
11468cat confdefs.h >>conftest.$ac_ext
11469cat >>conftest.$ac_ext <<_ACEOF
11470/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000011471$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +000011472 typedef long long ac__type_sizeof_;
Martin v. Löwis11437992002-04-12 09:54:03 +000011473int
11474main ()
11475{
Martin v. Löwiseba40652007-08-30 20:10:57 +000011476static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Martin v. Löwis11437992002-04-12 09:54:03 +000011477test_array [0] = 0
11478
11479 ;
11480 return 0;
11481}
11482_ACEOF
11483rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000011484if { (ac_try="$ac_compile"
11485case "(($ac_try" in
11486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11487 *) ac_try_echo=$ac_try;;
11488esac
11489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11490 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000011491 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000011492 grep -v '^ *+' conftest.er1 >conftest.err
11493 rm -f conftest.er1
11494 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000011495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000011496 (exit $ac_status); } && {
11497 test -z "$ac_c_werror_flag" ||
11498 test ! -s conftest.err
11499 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000011500 ac_hi=$ac_mid
11501else
11502 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000011503sed 's/^/| /' conftest.$ac_ext >&5
11504
Martin v. Löwiseba40652007-08-30 20:10:57 +000011505 ac_lo=`expr '(' $ac_mid ')' + 1`
Martin v. Löwis11437992002-04-12 09:54:03 +000011506fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000011507
11508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000011509done
11510case $ac_lo in
11511?*) ac_cv_sizeof_long_long=$ac_lo;;
Martin v. Löwiseba40652007-08-30 20:10:57 +000011512'') if test "$ac_cv_type_long_long" = yes; then
11513 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
Skip Montanaro6dead952003-09-25 14:50:04 +000011514See \`config.log' for more details." >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000011515echo "$as_me: error: cannot compute sizeof (long long)
Skip Montanaro6dead952003-09-25 14:50:04 +000011516See \`config.log' for more details." >&2;}
Martin v. Löwiseba40652007-08-30 20:10:57 +000011517 { (exit 77); exit 77; }; }
11518 else
11519 ac_cv_sizeof_long_long=0
11520 fi ;;
Martin v. Löwis11437992002-04-12 09:54:03 +000011521esac
Guido van Rossumec95c7b1998-08-04 17:59:56 +000011522else
Martin v. Löwis11437992002-04-12 09:54:03 +000011523 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000011524/* confdefs.h. */
11525_ACEOF
11526cat confdefs.h >>conftest.$ac_ext
11527cat >>conftest.$ac_ext <<_ACEOF
11528/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000011529$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +000011530 typedef long long ac__type_sizeof_;
11531static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11532static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Michael W. Hudson54241132001-12-07 15:38:26 +000011533#include <stdio.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000011534#include <stdlib.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000011535int
11536main ()
Guido van Rossumec95c7b1998-08-04 17:59:56 +000011537{
Martin v. Löwis11437992002-04-12 09:54:03 +000011538
11539 FILE *f = fopen ("conftest.val", "w");
11540 if (! f)
Martin v. Löwiseba40652007-08-30 20:10:57 +000011541 return 1;
11542 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Martin v. Löwis11437992002-04-12 09:54:03 +000011543 {
Martin v. Löwiseba40652007-08-30 20:10:57 +000011544 long int i = longval ();
11545 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11546 return 1;
Martin v. Löwis11437992002-04-12 09:54:03 +000011547 fprintf (f, "%ld\n", i);
11548 }
11549 else
11550 {
Martin v. Löwiseba40652007-08-30 20:10:57 +000011551 unsigned long int i = ulongval ();
11552 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11553 return 1;
Martin v. Löwis11437992002-04-12 09:54:03 +000011554 fprintf (f, "%lu\n", i);
11555 }
Martin v. Löwiseba40652007-08-30 20:10:57 +000011556 return ferror (f) || fclose (f) != 0;
Martin v. Löwis11437992002-04-12 09:54:03 +000011557
11558 ;
11559 return 0;
Guido van Rossumec95c7b1998-08-04 17:59:56 +000011560}
Martin v. Löwis11437992002-04-12 09:54:03 +000011561_ACEOF
11562rm -f conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000011563if { (ac_try="$ac_link"
11564case "(($ac_try" in
11565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11566 *) ac_try_echo=$ac_try;;
11567esac
11568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11569 (eval "$ac_link") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +000011570 ac_status=$?
11571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11572 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Martin v. Löwiseba40652007-08-30 20:10:57 +000011573 { (case "(($ac_try" in
11574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11575 *) ac_try_echo=$ac_try;;
11576esac
11577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11578 (eval "$ac_try") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +000011579 ac_status=$?
11580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11581 (exit $ac_status); }; }; then
11582 ac_cv_sizeof_long_long=`cat conftest.val`
Guido van Rossumec95c7b1998-08-04 17:59:56 +000011583else
Martin v. Löwis11437992002-04-12 09:54:03 +000011584 echo "$as_me: program exited with status $ac_status" >&5
11585echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000011586sed 's/^/| /' conftest.$ac_ext >&5
11587
Martin v. Löwis11437992002-04-12 09:54:03 +000011588( exit $ac_status )
Martin v. Löwiseba40652007-08-30 20:10:57 +000011589if test "$ac_cv_type_long_long" = yes; then
11590 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
Skip Montanaro6dead952003-09-25 14:50:04 +000011591See \`config.log' for more details." >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000011592echo "$as_me: error: cannot compute sizeof (long long)
Skip Montanaro6dead952003-09-25 14:50:04 +000011593See \`config.log' for more details." >&2;}
Martin v. Löwiseba40652007-08-30 20:10:57 +000011594 { (exit 77); exit 77; }; }
11595 else
11596 ac_cv_sizeof_long_long=0
11597 fi
Martin v. Löwis11437992002-04-12 09:54:03 +000011598fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000011599rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000011600fi
11601rm -f conftest.val
Guido van Rossumec95c7b1998-08-04 17:59:56 +000011602fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000011603{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
11604echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
11605
11606
11607
Martin v. Löwis11437992002-04-12 09:54:03 +000011608cat >>confdefs.h <<_ACEOF
Guido van Rossumec95c7b1998-08-04 17:59:56 +000011609#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
Martin v. Löwis11437992002-04-12 09:54:03 +000011610_ACEOF
Guido van Rossumec95c7b1998-08-04 17:59:56 +000011611
Michael W. Hudson54241132001-12-07 15:38:26 +000011612
Guido van Rossumec95c7b1998-08-04 17:59:56 +000011613fi
11614
Mark Dickinsondc1688a2008-06-27 22:20:14 +000011615{ echo "$as_me:$LINENO: checking for long double support" >&5
11616echo $ECHO_N "checking for long double support... $ECHO_C" >&6; }
11617have_long_double=no
11618cat >conftest.$ac_ext <<_ACEOF
11619/* confdefs.h. */
11620_ACEOF
11621cat confdefs.h >>conftest.$ac_ext
11622cat >>conftest.$ac_ext <<_ACEOF
11623/* end confdefs.h. */
11624
11625int
11626main ()
11627{
11628long double x; x = (long double)0.;
11629 ;
11630 return 0;
11631}
11632_ACEOF
11633rm -f conftest.$ac_objext
11634if { (ac_try="$ac_compile"
11635case "(($ac_try" in
11636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11637 *) ac_try_echo=$ac_try;;
11638esac
11639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11640 (eval "$ac_compile") 2>conftest.er1
11641 ac_status=$?
11642 grep -v '^ *+' conftest.er1 >conftest.err
11643 rm -f conftest.er1
11644 cat conftest.err >&5
11645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11646 (exit $ac_status); } && {
11647 test -z "$ac_c_werror_flag" ||
11648 test ! -s conftest.err
11649 } && test -s conftest.$ac_objext; then
11650
11651
11652cat >>confdefs.h <<\_ACEOF
11653#define HAVE_LONG_DOUBLE 1
11654_ACEOF
11655
11656 have_long_double=yes
11657
11658else
11659 echo "$as_me: failed program was:" >&5
11660sed 's/^/| /' conftest.$ac_ext >&5
11661
11662
11663fi
11664
11665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11666{ echo "$as_me:$LINENO: result: $have_long_double" >&5
11667echo "${ECHO_T}$have_long_double" >&6; }
11668if test "$have_long_double" = yes ; then
11669{ echo "$as_me:$LINENO: checking for long double" >&5
11670echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
11671if test "${ac_cv_type_long_double+set}" = set; then
11672 echo $ECHO_N "(cached) $ECHO_C" >&6
11673else
11674 cat >conftest.$ac_ext <<_ACEOF
11675/* confdefs.h. */
11676_ACEOF
11677cat confdefs.h >>conftest.$ac_ext
11678cat >>conftest.$ac_ext <<_ACEOF
11679/* end confdefs.h. */
11680$ac_includes_default
11681typedef long double ac__type_new_;
11682int
11683main ()
11684{
11685if ((ac__type_new_ *) 0)
11686 return 0;
11687if (sizeof (ac__type_new_))
11688 return 0;
11689 ;
11690 return 0;
11691}
11692_ACEOF
11693rm -f conftest.$ac_objext
11694if { (ac_try="$ac_compile"
11695case "(($ac_try" in
11696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11697 *) ac_try_echo=$ac_try;;
11698esac
11699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11700 (eval "$ac_compile") 2>conftest.er1
11701 ac_status=$?
11702 grep -v '^ *+' conftest.er1 >conftest.err
11703 rm -f conftest.er1
11704 cat conftest.err >&5
11705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706 (exit $ac_status); } && {
11707 test -z "$ac_c_werror_flag" ||
11708 test ! -s conftest.err
11709 } && test -s conftest.$ac_objext; then
11710 ac_cv_type_long_double=yes
11711else
11712 echo "$as_me: failed program was:" >&5
11713sed 's/^/| /' conftest.$ac_ext >&5
11714
11715 ac_cv_type_long_double=no
11716fi
11717
11718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11719fi
11720{ echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
11721echo "${ECHO_T}$ac_cv_type_long_double" >&6; }
11722
11723# The cast to long int works around a bug in the HP C Compiler
11724# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11725# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11726# This bug is HP SR number 8606223364.
11727{ echo "$as_me:$LINENO: checking size of long double" >&5
11728echo $ECHO_N "checking size of long double... $ECHO_C" >&6; }
11729if test "${ac_cv_sizeof_long_double+set}" = set; then
11730 echo $ECHO_N "(cached) $ECHO_C" >&6
11731else
11732 if test "$cross_compiling" = yes; then
11733 # Depending upon the size, compute the lo and hi bounds.
11734cat >conftest.$ac_ext <<_ACEOF
11735/* confdefs.h. */
11736_ACEOF
11737cat confdefs.h >>conftest.$ac_ext
11738cat >>conftest.$ac_ext <<_ACEOF
11739/* end confdefs.h. */
11740$ac_includes_default
11741 typedef long double ac__type_sizeof_;
11742int
11743main ()
11744{
11745static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11746test_array [0] = 0
11747
11748 ;
11749 return 0;
11750}
11751_ACEOF
11752rm -f conftest.$ac_objext
11753if { (ac_try="$ac_compile"
11754case "(($ac_try" in
11755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11756 *) ac_try_echo=$ac_try;;
11757esac
11758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11759 (eval "$ac_compile") 2>conftest.er1
11760 ac_status=$?
11761 grep -v '^ *+' conftest.er1 >conftest.err
11762 rm -f conftest.er1
11763 cat conftest.err >&5
11764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11765 (exit $ac_status); } && {
11766 test -z "$ac_c_werror_flag" ||
11767 test ! -s conftest.err
11768 } && test -s conftest.$ac_objext; then
11769 ac_lo=0 ac_mid=0
11770 while :; do
11771 cat >conftest.$ac_ext <<_ACEOF
11772/* confdefs.h. */
11773_ACEOF
11774cat confdefs.h >>conftest.$ac_ext
11775cat >>conftest.$ac_ext <<_ACEOF
11776/* end confdefs.h. */
11777$ac_includes_default
11778 typedef long double ac__type_sizeof_;
11779int
11780main ()
11781{
11782static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11783test_array [0] = 0
11784
11785 ;
11786 return 0;
11787}
11788_ACEOF
11789rm -f conftest.$ac_objext
11790if { (ac_try="$ac_compile"
11791case "(($ac_try" in
11792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11793 *) ac_try_echo=$ac_try;;
11794esac
11795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11796 (eval "$ac_compile") 2>conftest.er1
11797 ac_status=$?
11798 grep -v '^ *+' conftest.er1 >conftest.err
11799 rm -f conftest.er1
11800 cat conftest.err >&5
11801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11802 (exit $ac_status); } && {
11803 test -z "$ac_c_werror_flag" ||
11804 test ! -s conftest.err
11805 } && test -s conftest.$ac_objext; then
11806 ac_hi=$ac_mid; break
11807else
11808 echo "$as_me: failed program was:" >&5
11809sed 's/^/| /' conftest.$ac_ext >&5
11810
11811 ac_lo=`expr $ac_mid + 1`
11812 if test $ac_lo -le $ac_mid; then
11813 ac_lo= ac_hi=
11814 break
11815 fi
11816 ac_mid=`expr 2 '*' $ac_mid + 1`
11817fi
11818
11819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11820 done
11821else
11822 echo "$as_me: failed program was:" >&5
11823sed 's/^/| /' conftest.$ac_ext >&5
11824
11825 cat >conftest.$ac_ext <<_ACEOF
11826/* confdefs.h. */
11827_ACEOF
11828cat confdefs.h >>conftest.$ac_ext
11829cat >>conftest.$ac_ext <<_ACEOF
11830/* end confdefs.h. */
11831$ac_includes_default
11832 typedef long double ac__type_sizeof_;
11833int
11834main ()
11835{
11836static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11837test_array [0] = 0
11838
11839 ;
11840 return 0;
11841}
11842_ACEOF
11843rm -f conftest.$ac_objext
11844if { (ac_try="$ac_compile"
11845case "(($ac_try" in
11846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11847 *) ac_try_echo=$ac_try;;
11848esac
11849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11850 (eval "$ac_compile") 2>conftest.er1
11851 ac_status=$?
11852 grep -v '^ *+' conftest.er1 >conftest.err
11853 rm -f conftest.er1
11854 cat conftest.err >&5
11855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11856 (exit $ac_status); } && {
11857 test -z "$ac_c_werror_flag" ||
11858 test ! -s conftest.err
11859 } && test -s conftest.$ac_objext; then
11860 ac_hi=-1 ac_mid=-1
11861 while :; do
11862 cat >conftest.$ac_ext <<_ACEOF
11863/* confdefs.h. */
11864_ACEOF
11865cat confdefs.h >>conftest.$ac_ext
11866cat >>conftest.$ac_ext <<_ACEOF
11867/* end confdefs.h. */
11868$ac_includes_default
11869 typedef long double ac__type_sizeof_;
11870int
11871main ()
11872{
11873static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11874test_array [0] = 0
11875
11876 ;
11877 return 0;
11878}
11879_ACEOF
11880rm -f conftest.$ac_objext
11881if { (ac_try="$ac_compile"
11882case "(($ac_try" in
11883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11884 *) ac_try_echo=$ac_try;;
11885esac
11886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11887 (eval "$ac_compile") 2>conftest.er1
11888 ac_status=$?
11889 grep -v '^ *+' conftest.er1 >conftest.err
11890 rm -f conftest.er1
11891 cat conftest.err >&5
11892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11893 (exit $ac_status); } && {
11894 test -z "$ac_c_werror_flag" ||
11895 test ! -s conftest.err
11896 } && test -s conftest.$ac_objext; then
11897 ac_lo=$ac_mid; break
11898else
11899 echo "$as_me: failed program was:" >&5
11900sed 's/^/| /' conftest.$ac_ext >&5
11901
11902 ac_hi=`expr '(' $ac_mid ')' - 1`
11903 if test $ac_mid -le $ac_hi; then
11904 ac_lo= ac_hi=
11905 break
11906 fi
11907 ac_mid=`expr 2 '*' $ac_mid`
11908fi
11909
11910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11911 done
11912else
11913 echo "$as_me: failed program was:" >&5
11914sed 's/^/| /' conftest.$ac_ext >&5
11915
11916 ac_lo= ac_hi=
11917fi
11918
11919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11920fi
11921
11922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11923# Binary search between lo and hi bounds.
11924while test "x$ac_lo" != "x$ac_hi"; do
11925 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11926 cat >conftest.$ac_ext <<_ACEOF
11927/* confdefs.h. */
11928_ACEOF
11929cat confdefs.h >>conftest.$ac_ext
11930cat >>conftest.$ac_ext <<_ACEOF
11931/* end confdefs.h. */
11932$ac_includes_default
11933 typedef long double ac__type_sizeof_;
11934int
11935main ()
11936{
11937static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11938test_array [0] = 0
11939
11940 ;
11941 return 0;
11942}
11943_ACEOF
11944rm -f conftest.$ac_objext
11945if { (ac_try="$ac_compile"
11946case "(($ac_try" in
11947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11948 *) ac_try_echo=$ac_try;;
11949esac
11950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11951 (eval "$ac_compile") 2>conftest.er1
11952 ac_status=$?
11953 grep -v '^ *+' conftest.er1 >conftest.err
11954 rm -f conftest.er1
11955 cat conftest.err >&5
11956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11957 (exit $ac_status); } && {
11958 test -z "$ac_c_werror_flag" ||
11959 test ! -s conftest.err
11960 } && test -s conftest.$ac_objext; then
11961 ac_hi=$ac_mid
11962else
11963 echo "$as_me: failed program was:" >&5
11964sed 's/^/| /' conftest.$ac_ext >&5
11965
11966 ac_lo=`expr '(' $ac_mid ')' + 1`
11967fi
11968
11969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11970done
11971case $ac_lo in
11972?*) ac_cv_sizeof_long_double=$ac_lo;;
11973'') if test "$ac_cv_type_long_double" = yes; then
11974 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
11975See \`config.log' for more details." >&5
11976echo "$as_me: error: cannot compute sizeof (long double)
11977See \`config.log' for more details." >&2;}
11978 { (exit 77); exit 77; }; }
11979 else
11980 ac_cv_sizeof_long_double=0
11981 fi ;;
11982esac
11983else
11984 cat >conftest.$ac_ext <<_ACEOF
11985/* confdefs.h. */
11986_ACEOF
11987cat confdefs.h >>conftest.$ac_ext
11988cat >>conftest.$ac_ext <<_ACEOF
11989/* end confdefs.h. */
11990$ac_includes_default
11991 typedef long double ac__type_sizeof_;
11992static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11993static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11994#include <stdio.h>
11995#include <stdlib.h>
11996int
11997main ()
11998{
11999
12000 FILE *f = fopen ("conftest.val", "w");
12001 if (! f)
12002 return 1;
12003 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12004 {
12005 long int i = longval ();
12006 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12007 return 1;
12008 fprintf (f, "%ld\n", i);
12009 }
12010 else
12011 {
12012 unsigned long int i = ulongval ();
12013 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12014 return 1;
12015 fprintf (f, "%lu\n", i);
12016 }
12017 return ferror (f) || fclose (f) != 0;
12018
12019 ;
12020 return 0;
12021}
12022_ACEOF
12023rm -f conftest$ac_exeext
12024if { (ac_try="$ac_link"
12025case "(($ac_try" in
12026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12027 *) ac_try_echo=$ac_try;;
12028esac
12029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12030 (eval "$ac_link") 2>&5
12031 ac_status=$?
12032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12033 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12034 { (case "(($ac_try" in
12035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12036 *) ac_try_echo=$ac_try;;
12037esac
12038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12039 (eval "$ac_try") 2>&5
12040 ac_status=$?
12041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042 (exit $ac_status); }; }; then
12043 ac_cv_sizeof_long_double=`cat conftest.val`
12044else
12045 echo "$as_me: program exited with status $ac_status" >&5
12046echo "$as_me: failed program was:" >&5
12047sed 's/^/| /' conftest.$ac_ext >&5
12048
12049( exit $ac_status )
12050if test "$ac_cv_type_long_double" = yes; then
12051 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
12052See \`config.log' for more details." >&5
12053echo "$as_me: error: cannot compute sizeof (long double)
12054See \`config.log' for more details." >&2;}
12055 { (exit 77); exit 77; }; }
12056 else
12057 ac_cv_sizeof_long_double=0
12058 fi
12059fi
12060rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12061fi
12062rm -f conftest.val
12063fi
12064{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
12065echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6; }
12066
12067
12068
12069cat >>confdefs.h <<_ACEOF
12070#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
12071_ACEOF
12072
12073
12074fi
12075
Martin v. Löwiseba40652007-08-30 20:10:57 +000012076{ echo "$as_me:$LINENO: checking for _Bool support" >&5
12077echo $ECHO_N "checking for _Bool support... $ECHO_C" >&6; }
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012078have_c99_bool=no
12079cat >conftest.$ac_ext <<_ACEOF
12080/* confdefs.h. */
12081_ACEOF
12082cat confdefs.h >>conftest.$ac_ext
12083cat >>conftest.$ac_ext <<_ACEOF
12084/* end confdefs.h. */
12085
12086int
12087main ()
12088{
12089_Bool x; x = (_Bool)0;
12090 ;
12091 return 0;
12092}
12093_ACEOF
12094rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000012095if { (ac_try="$ac_compile"
12096case "(($ac_try" in
12097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12098 *) ac_try_echo=$ac_try;;
12099esac
12100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12101 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012102 ac_status=$?
12103 grep -v '^ *+' conftest.er1 >conftest.err
12104 rm -f conftest.er1
12105 cat conftest.err >&5
12106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000012107 (exit $ac_status); } && {
12108 test -z "$ac_c_werror_flag" ||
12109 test ! -s conftest.err
12110 } && test -s conftest.$ac_objext; then
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012111
12112
12113cat >>confdefs.h <<\_ACEOF
12114#define HAVE_C99_BOOL 1
12115_ACEOF
12116
12117 have_c99_bool=yes
12118
12119else
12120 echo "$as_me: failed program was:" >&5
12121sed 's/^/| /' conftest.$ac_ext >&5
12122
Martin v. Löwiseba40652007-08-30 20:10:57 +000012123
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012124fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000012125
12126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12127{ echo "$as_me:$LINENO: result: $have_c99_bool" >&5
12128echo "${ECHO_T}$have_c99_bool" >&6; }
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012129if test "$have_c99_bool" = yes ; then
Martin v. Löwiseba40652007-08-30 20:10:57 +000012130{ echo "$as_me:$LINENO: checking for _Bool" >&5
12131echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012132if test "${ac_cv_type__Bool+set}" = set; then
12133 echo $ECHO_N "(cached) $ECHO_C" >&6
12134else
12135 cat >conftest.$ac_ext <<_ACEOF
12136/* confdefs.h. */
12137_ACEOF
12138cat confdefs.h >>conftest.$ac_ext
12139cat >>conftest.$ac_ext <<_ACEOF
12140/* end confdefs.h. */
12141$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +000012142typedef _Bool ac__type_new_;
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012143int
12144main ()
12145{
Martin v. Löwiseba40652007-08-30 20:10:57 +000012146if ((ac__type_new_ *) 0)
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012147 return 0;
Martin v. Löwiseba40652007-08-30 20:10:57 +000012148if (sizeof (ac__type_new_))
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012149 return 0;
12150 ;
12151 return 0;
12152}
12153_ACEOF
12154rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000012155if { (ac_try="$ac_compile"
12156case "(($ac_try" in
12157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12158 *) ac_try_echo=$ac_try;;
12159esac
12160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12161 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012162 ac_status=$?
12163 grep -v '^ *+' conftest.er1 >conftest.err
12164 rm -f conftest.er1
12165 cat conftest.err >&5
12166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000012167 (exit $ac_status); } && {
12168 test -z "$ac_c_werror_flag" ||
12169 test ! -s conftest.err
12170 } && test -s conftest.$ac_objext; then
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012171 ac_cv_type__Bool=yes
12172else
12173 echo "$as_me: failed program was:" >&5
12174sed 's/^/| /' conftest.$ac_ext >&5
12175
Martin v. Löwiseba40652007-08-30 20:10:57 +000012176 ac_cv_type__Bool=no
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012177fi
Brett Cannon19fab762007-06-02 03:02:29 +000012178
Martin v. Löwiseba40652007-08-30 20:10:57 +000012179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12180fi
12181{ echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
12182echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
12183
12184# The cast to long int works around a bug in the HP C Compiler
12185# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12186# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12187# This bug is HP SR number 8606223364.
12188{ echo "$as_me:$LINENO: checking size of _Bool" >&5
12189echo $ECHO_N "checking size of _Bool... $ECHO_C" >&6; }
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012190if test "${ac_cv_sizeof__Bool+set}" = set; then
12191 echo $ECHO_N "(cached) $ECHO_C" >&6
12192else
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012193 if test "$cross_compiling" = yes; then
12194 # Depending upon the size, compute the lo and hi bounds.
12195cat >conftest.$ac_ext <<_ACEOF
12196/* confdefs.h. */
12197_ACEOF
12198cat confdefs.h >>conftest.$ac_ext
12199cat >>conftest.$ac_ext <<_ACEOF
12200/* end confdefs.h. */
12201$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +000012202 typedef _Bool ac__type_sizeof_;
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012203int
12204main ()
12205{
Martin v. Löwiseba40652007-08-30 20:10:57 +000012206static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012207test_array [0] = 0
12208
12209 ;
12210 return 0;
12211}
12212_ACEOF
12213rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000012214if { (ac_try="$ac_compile"
12215case "(($ac_try" in
12216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12217 *) ac_try_echo=$ac_try;;
12218esac
12219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12220 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012221 ac_status=$?
12222 grep -v '^ *+' conftest.er1 >conftest.err
12223 rm -f conftest.er1
12224 cat conftest.err >&5
12225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000012226 (exit $ac_status); } && {
12227 test -z "$ac_c_werror_flag" ||
12228 test ! -s conftest.err
12229 } && test -s conftest.$ac_objext; then
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012230 ac_lo=0 ac_mid=0
12231 while :; do
12232 cat >conftest.$ac_ext <<_ACEOF
12233/* confdefs.h. */
12234_ACEOF
12235cat confdefs.h >>conftest.$ac_ext
12236cat >>conftest.$ac_ext <<_ACEOF
12237/* end confdefs.h. */
12238$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +000012239 typedef _Bool ac__type_sizeof_;
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012240int
12241main ()
12242{
Martin v. Löwiseba40652007-08-30 20:10:57 +000012243static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012244test_array [0] = 0
12245
12246 ;
12247 return 0;
12248}
12249_ACEOF
12250rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000012251if { (ac_try="$ac_compile"
12252case "(($ac_try" in
12253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12254 *) ac_try_echo=$ac_try;;
12255esac
12256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12257 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012258 ac_status=$?
12259 grep -v '^ *+' conftest.er1 >conftest.err
12260 rm -f conftest.er1
12261 cat conftest.err >&5
12262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000012263 (exit $ac_status); } && {
12264 test -z "$ac_c_werror_flag" ||
12265 test ! -s conftest.err
12266 } && test -s conftest.$ac_objext; then
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012267 ac_hi=$ac_mid; break
12268else
12269 echo "$as_me: failed program was:" >&5
12270sed 's/^/| /' conftest.$ac_ext >&5
12271
Martin v. Löwiseba40652007-08-30 20:10:57 +000012272 ac_lo=`expr $ac_mid + 1`
12273 if test $ac_lo -le $ac_mid; then
12274 ac_lo= ac_hi=
12275 break
12276 fi
12277 ac_mid=`expr 2 '*' $ac_mid + 1`
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012278fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000012279
12280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012281 done
12282else
12283 echo "$as_me: failed program was:" >&5
12284sed 's/^/| /' conftest.$ac_ext >&5
12285
Martin v. Löwiseba40652007-08-30 20:10:57 +000012286 cat >conftest.$ac_ext <<_ACEOF
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012287/* confdefs.h. */
12288_ACEOF
12289cat confdefs.h >>conftest.$ac_ext
12290cat >>conftest.$ac_ext <<_ACEOF
12291/* end confdefs.h. */
12292$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +000012293 typedef _Bool ac__type_sizeof_;
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012294int
12295main ()
12296{
Martin v. Löwiseba40652007-08-30 20:10:57 +000012297static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012298test_array [0] = 0
12299
12300 ;
12301 return 0;
12302}
12303_ACEOF
12304rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000012305if { (ac_try="$ac_compile"
12306case "(($ac_try" in
12307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12308 *) ac_try_echo=$ac_try;;
12309esac
12310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12311 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012312 ac_status=$?
12313 grep -v '^ *+' conftest.er1 >conftest.err
12314 rm -f conftest.er1
12315 cat conftest.err >&5
12316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000012317 (exit $ac_status); } && {
12318 test -z "$ac_c_werror_flag" ||
12319 test ! -s conftest.err
12320 } && test -s conftest.$ac_objext; then
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012321 ac_hi=-1 ac_mid=-1
12322 while :; do
12323 cat >conftest.$ac_ext <<_ACEOF
12324/* confdefs.h. */
12325_ACEOF
12326cat confdefs.h >>conftest.$ac_ext
12327cat >>conftest.$ac_ext <<_ACEOF
12328/* end confdefs.h. */
12329$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +000012330 typedef _Bool ac__type_sizeof_;
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012331int
12332main ()
12333{
Martin v. Löwiseba40652007-08-30 20:10:57 +000012334static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012335test_array [0] = 0
12336
12337 ;
12338 return 0;
12339}
12340_ACEOF
12341rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000012342if { (ac_try="$ac_compile"
12343case "(($ac_try" in
12344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12345 *) ac_try_echo=$ac_try;;
12346esac
12347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12348 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012349 ac_status=$?
12350 grep -v '^ *+' conftest.er1 >conftest.err
12351 rm -f conftest.er1
12352 cat conftest.err >&5
12353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000012354 (exit $ac_status); } && {
12355 test -z "$ac_c_werror_flag" ||
12356 test ! -s conftest.err
12357 } && test -s conftest.$ac_objext; then
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012358 ac_lo=$ac_mid; break
12359else
12360 echo "$as_me: failed program was:" >&5
12361sed 's/^/| /' conftest.$ac_ext >&5
12362
Martin v. Löwiseba40652007-08-30 20:10:57 +000012363 ac_hi=`expr '(' $ac_mid ')' - 1`
12364 if test $ac_mid -le $ac_hi; then
12365 ac_lo= ac_hi=
12366 break
12367 fi
12368 ac_mid=`expr 2 '*' $ac_mid`
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012369fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000012370
12371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012372 done
12373else
12374 echo "$as_me: failed program was:" >&5
12375sed 's/^/| /' conftest.$ac_ext >&5
12376
Martin v. Löwiseba40652007-08-30 20:10:57 +000012377 ac_lo= ac_hi=
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012378fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000012379
12380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012381fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000012382
12383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012384# Binary search between lo and hi bounds.
12385while test "x$ac_lo" != "x$ac_hi"; do
12386 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12387 cat >conftest.$ac_ext <<_ACEOF
12388/* confdefs.h. */
12389_ACEOF
12390cat confdefs.h >>conftest.$ac_ext
12391cat >>conftest.$ac_ext <<_ACEOF
12392/* end confdefs.h. */
12393$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +000012394 typedef _Bool ac__type_sizeof_;
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012395int
12396main ()
12397{
Martin v. Löwiseba40652007-08-30 20:10:57 +000012398static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012399test_array [0] = 0
12400
12401 ;
12402 return 0;
12403}
12404_ACEOF
12405rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000012406if { (ac_try="$ac_compile"
12407case "(($ac_try" in
12408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12409 *) ac_try_echo=$ac_try;;
12410esac
12411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12412 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012413 ac_status=$?
12414 grep -v '^ *+' conftest.er1 >conftest.err
12415 rm -f conftest.er1
12416 cat conftest.err >&5
12417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000012418 (exit $ac_status); } && {
12419 test -z "$ac_c_werror_flag" ||
12420 test ! -s conftest.err
12421 } && test -s conftest.$ac_objext; then
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012422 ac_hi=$ac_mid
12423else
12424 echo "$as_me: failed program was:" >&5
12425sed 's/^/| /' conftest.$ac_ext >&5
12426
Martin v. Löwiseba40652007-08-30 20:10:57 +000012427 ac_lo=`expr '(' $ac_mid ')' + 1`
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012428fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000012429
12430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012431done
12432case $ac_lo in
12433?*) ac_cv_sizeof__Bool=$ac_lo;;
Martin v. Löwiseba40652007-08-30 20:10:57 +000012434'') if test "$ac_cv_type__Bool" = yes; then
12435 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012436See \`config.log' for more details." >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000012437echo "$as_me: error: cannot compute sizeof (_Bool)
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012438See \`config.log' for more details." >&2;}
Martin v. Löwiseba40652007-08-30 20:10:57 +000012439 { (exit 77); exit 77; }; }
12440 else
12441 ac_cv_sizeof__Bool=0
12442 fi ;;
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012443esac
12444else
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012445 cat >conftest.$ac_ext <<_ACEOF
12446/* confdefs.h. */
12447_ACEOF
12448cat confdefs.h >>conftest.$ac_ext
12449cat >>conftest.$ac_ext <<_ACEOF
12450/* end confdefs.h. */
12451$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +000012452 typedef _Bool ac__type_sizeof_;
12453static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12454static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012455#include <stdio.h>
12456#include <stdlib.h>
12457int
12458main ()
12459{
12460
12461 FILE *f = fopen ("conftest.val", "w");
12462 if (! f)
Martin v. Löwiseba40652007-08-30 20:10:57 +000012463 return 1;
12464 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012465 {
Martin v. Löwiseba40652007-08-30 20:10:57 +000012466 long int i = longval ();
12467 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12468 return 1;
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012469 fprintf (f, "%ld\n", i);
12470 }
12471 else
12472 {
Martin v. Löwiseba40652007-08-30 20:10:57 +000012473 unsigned long int i = ulongval ();
12474 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12475 return 1;
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012476 fprintf (f, "%lu\n", i);
12477 }
Martin v. Löwiseba40652007-08-30 20:10:57 +000012478 return ferror (f) || fclose (f) != 0;
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012479
12480 ;
12481 return 0;
12482}
12483_ACEOF
12484rm -f conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000012485if { (ac_try="$ac_link"
12486case "(($ac_try" in
12487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12488 *) ac_try_echo=$ac_try;;
12489esac
12490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12491 (eval "$ac_link") 2>&5
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012492 ac_status=$?
12493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12494 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Martin v. Löwiseba40652007-08-30 20:10:57 +000012495 { (case "(($ac_try" in
12496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12497 *) ac_try_echo=$ac_try;;
12498esac
12499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12500 (eval "$ac_try") 2>&5
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012501 ac_status=$?
12502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12503 (exit $ac_status); }; }; then
12504 ac_cv_sizeof__Bool=`cat conftest.val`
12505else
12506 echo "$as_me: program exited with status $ac_status" >&5
12507echo "$as_me: failed program was:" >&5
12508sed 's/^/| /' conftest.$ac_ext >&5
12509
12510( exit $ac_status )
Martin v. Löwiseba40652007-08-30 20:10:57 +000012511if test "$ac_cv_type__Bool" = yes; then
12512 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012513See \`config.log' for more details." >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000012514echo "$as_me: error: cannot compute sizeof (_Bool)
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012515See \`config.log' for more details." >&2;}
Martin v. Löwiseba40652007-08-30 20:10:57 +000012516 { (exit 77); exit 77; }; }
12517 else
12518 ac_cv_sizeof__Bool=0
12519 fi
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012520fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000012521rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012522fi
12523rm -f conftest.val
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012524fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000012525{ echo "$as_me:$LINENO: result: $ac_cv_sizeof__Bool" >&5
12526echo "${ECHO_T}$ac_cv_sizeof__Bool" >&6; }
12527
12528
12529
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012530cat >>confdefs.h <<_ACEOF
12531#define SIZEOF__BOOL $ac_cv_sizeof__Bool
12532_ACEOF
12533
12534
12535fi
12536
Martin v. Löwiseba40652007-08-30 20:10:57 +000012537{ echo "$as_me:$LINENO: checking for uintptr_t" >&5
12538echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
Martin v. Löwisebe26702006-10-02 14:55:51 +000012539if test "${ac_cv_type_uintptr_t+set}" = set; then
12540 echo $ECHO_N "(cached) $ECHO_C" >&6
12541else
12542 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000012543/* confdefs.h. */
12544_ACEOF
12545cat confdefs.h >>conftest.$ac_ext
12546cat >>conftest.$ac_ext <<_ACEOF
12547/* end confdefs.h. */
Martin v. Löwis40e9aed2006-10-02 15:20:37 +000012548#ifdef HAVE_STDINT_H
12549 #include <stdint.h>
12550 #endif
Barry Warsawbc7c7f92000-08-18 04:53:33 +000012551
Martin v. Löwiseba40652007-08-30 20:10:57 +000012552typedef uintptr_t ac__type_new_;
Martin v. Löwis11437992002-04-12 09:54:03 +000012553int
12554main ()
12555{
Martin v. Löwiseba40652007-08-30 20:10:57 +000012556if ((ac__type_new_ *) 0)
Martin v. Löwisebe26702006-10-02 14:55:51 +000012557 return 0;
Martin v. Löwiseba40652007-08-30 20:10:57 +000012558if (sizeof (ac__type_new_))
Martin v. Löwisebe26702006-10-02 14:55:51 +000012559 return 0;
Martin v. Löwis11437992002-04-12 09:54:03 +000012560 ;
12561 return 0;
12562}
12563_ACEOF
12564rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000012565if { (ac_try="$ac_compile"
12566case "(($ac_try" in
12567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12568 *) ac_try_echo=$ac_try;;
12569esac
12570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12571 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000012572 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000012573 grep -v '^ *+' conftest.er1 >conftest.err
12574 rm -f conftest.er1
12575 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000012576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000012577 (exit $ac_status); } && {
12578 test -z "$ac_c_werror_flag" ||
12579 test ! -s conftest.err
12580 } && test -s conftest.$ac_objext; then
Martin v. Löwisebe26702006-10-02 14:55:51 +000012581 ac_cv_type_uintptr_t=yes
Barry Warsawbc7c7f92000-08-18 04:53:33 +000012582else
Martin v. Löwis11437992002-04-12 09:54:03 +000012583 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000012584sed 's/^/| /' conftest.$ac_ext >&5
12585
Martin v. Löwiseba40652007-08-30 20:10:57 +000012586 ac_cv_type_uintptr_t=no
Barry Warsawbc7c7f92000-08-18 04:53:33 +000012587fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000012588
12589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwisebe26702006-10-02 14:55:51 +000012590fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000012591{ echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12592echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
Martin v. Löwisebe26702006-10-02 14:55:51 +000012593if test $ac_cv_type_uintptr_t = yes; then
12594
12595cat >>confdefs.h <<_ACEOF
12596#define HAVE_UINTPTR_T 1
12597_ACEOF
12598
Martin v. Löwiseba40652007-08-30 20:10:57 +000012599{ echo "$as_me:$LINENO: checking for uintptr_t" >&5
12600echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000012601if test "${ac_cv_type_uintptr_t+set}" = set; then
12602 echo $ECHO_N "(cached) $ECHO_C" >&6
12603else
12604 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000012605/* confdefs.h. */
12606_ACEOF
12607cat confdefs.h >>conftest.$ac_ext
12608cat >>conftest.$ac_ext <<_ACEOF
12609/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000012610$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +000012611typedef uintptr_t ac__type_new_;
Martin v. Löwis11437992002-04-12 09:54:03 +000012612int
12613main ()
12614{
Martin v. Löwiseba40652007-08-30 20:10:57 +000012615if ((ac__type_new_ *) 0)
Martin v. Löwis11437992002-04-12 09:54:03 +000012616 return 0;
Martin v. Löwiseba40652007-08-30 20:10:57 +000012617if (sizeof (ac__type_new_))
Martin v. Löwis11437992002-04-12 09:54:03 +000012618 return 0;
12619 ;
12620 return 0;
12621}
12622_ACEOF
12623rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000012624if { (ac_try="$ac_compile"
12625case "(($ac_try" in
12626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12627 *) ac_try_echo=$ac_try;;
12628esac
12629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12630 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000012631 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000012632 grep -v '^ *+' conftest.er1 >conftest.err
12633 rm -f conftest.er1
12634 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000012635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000012636 (exit $ac_status); } && {
12637 test -z "$ac_c_werror_flag" ||
12638 test ! -s conftest.err
12639 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000012640 ac_cv_type_uintptr_t=yes
12641else
12642 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000012643sed 's/^/| /' conftest.$ac_ext >&5
12644
Martin v. Löwiseba40652007-08-30 20:10:57 +000012645 ac_cv_type_uintptr_t=no
Martin v. Löwis11437992002-04-12 09:54:03 +000012646fi
Brett Cannon19fab762007-06-02 03:02:29 +000012647
Martin v. Löwiseba40652007-08-30 20:10:57 +000012648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12649fi
12650{ echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12651echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12652
12653# The cast to long int works around a bug in the HP C Compiler
12654# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12655# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12656# This bug is HP SR number 8606223364.
12657{ echo "$as_me:$LINENO: checking size of uintptr_t" >&5
12658echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000012659if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
12660 echo $ECHO_N "(cached) $ECHO_C" >&6
12661else
Martin v. Löwis11437992002-04-12 09:54:03 +000012662 if test "$cross_compiling" = yes; then
12663 # Depending upon the size, compute the lo and hi bounds.
12664cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000012665/* confdefs.h. */
12666_ACEOF
12667cat confdefs.h >>conftest.$ac_ext
12668cat >>conftest.$ac_ext <<_ACEOF
12669/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000012670$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +000012671 typedef uintptr_t ac__type_sizeof_;
Martin v. Löwis11437992002-04-12 09:54:03 +000012672int
12673main ()
12674{
Martin v. Löwiseba40652007-08-30 20:10:57 +000012675static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Martin v. Löwis11437992002-04-12 09:54:03 +000012676test_array [0] = 0
12677
12678 ;
12679 return 0;
12680}
12681_ACEOF
12682rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000012683if { (ac_try="$ac_compile"
12684case "(($ac_try" in
12685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12686 *) ac_try_echo=$ac_try;;
12687esac
12688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12689 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000012690 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000012691 grep -v '^ *+' conftest.er1 >conftest.err
12692 rm -f conftest.er1
12693 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000012694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000012695 (exit $ac_status); } && {
12696 test -z "$ac_c_werror_flag" ||
12697 test ! -s conftest.err
12698 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000012699 ac_lo=0 ac_mid=0
12700 while :; do
12701 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000012702/* confdefs.h. */
12703_ACEOF
12704cat confdefs.h >>conftest.$ac_ext
12705cat >>conftest.$ac_ext <<_ACEOF
12706/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000012707$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +000012708 typedef uintptr_t ac__type_sizeof_;
Martin v. Löwis11437992002-04-12 09:54:03 +000012709int
12710main ()
12711{
Martin v. Löwiseba40652007-08-30 20:10:57 +000012712static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Martin v. Löwis11437992002-04-12 09:54:03 +000012713test_array [0] = 0
12714
12715 ;
12716 return 0;
12717}
12718_ACEOF
12719rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000012720if { (ac_try="$ac_compile"
12721case "(($ac_try" in
12722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12723 *) ac_try_echo=$ac_try;;
12724esac
12725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12726 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000012727 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000012728 grep -v '^ *+' conftest.er1 >conftest.err
12729 rm -f conftest.er1
12730 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000012731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000012732 (exit $ac_status); } && {
12733 test -z "$ac_c_werror_flag" ||
12734 test ! -s conftest.err
12735 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000012736 ac_hi=$ac_mid; break
12737else
12738 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000012739sed 's/^/| /' conftest.$ac_ext >&5
12740
Martin v. Löwiseba40652007-08-30 20:10:57 +000012741 ac_lo=`expr $ac_mid + 1`
12742 if test $ac_lo -le $ac_mid; then
12743 ac_lo= ac_hi=
12744 break
12745 fi
12746 ac_mid=`expr 2 '*' $ac_mid + 1`
Martin v. Löwis11437992002-04-12 09:54:03 +000012747fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000012748
12749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000012750 done
12751else
12752 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000012753sed 's/^/| /' conftest.$ac_ext >&5
12754
Martin v. Löwiseba40652007-08-30 20:10:57 +000012755 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000012756/* confdefs.h. */
12757_ACEOF
12758cat confdefs.h >>conftest.$ac_ext
12759cat >>conftest.$ac_ext <<_ACEOF
12760/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000012761$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +000012762 typedef uintptr_t ac__type_sizeof_;
Martin v. Löwis11437992002-04-12 09:54:03 +000012763int
12764main ()
12765{
Martin v. Löwiseba40652007-08-30 20:10:57 +000012766static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Martin v. Löwis11437992002-04-12 09:54:03 +000012767test_array [0] = 0
12768
12769 ;
12770 return 0;
12771}
12772_ACEOF
12773rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000012774if { (ac_try="$ac_compile"
12775case "(($ac_try" in
12776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12777 *) ac_try_echo=$ac_try;;
12778esac
12779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12780 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000012781 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000012782 grep -v '^ *+' conftest.er1 >conftest.err
12783 rm -f conftest.er1
12784 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000012785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000012786 (exit $ac_status); } && {
12787 test -z "$ac_c_werror_flag" ||
12788 test ! -s conftest.err
12789 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000012790 ac_hi=-1 ac_mid=-1
12791 while :; do
12792 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000012793/* confdefs.h. */
12794_ACEOF
12795cat confdefs.h >>conftest.$ac_ext
12796cat >>conftest.$ac_ext <<_ACEOF
12797/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000012798$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +000012799 typedef uintptr_t ac__type_sizeof_;
Martin v. Löwis11437992002-04-12 09:54:03 +000012800int
12801main ()
12802{
Martin v. Löwiseba40652007-08-30 20:10:57 +000012803static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Martin v. Löwis11437992002-04-12 09:54:03 +000012804test_array [0] = 0
12805
12806 ;
12807 return 0;
12808}
12809_ACEOF
12810rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000012811if { (ac_try="$ac_compile"
12812case "(($ac_try" in
12813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12814 *) ac_try_echo=$ac_try;;
12815esac
12816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12817 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000012818 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000012819 grep -v '^ *+' conftest.er1 >conftest.err
12820 rm -f conftest.er1
12821 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000012822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000012823 (exit $ac_status); } && {
12824 test -z "$ac_c_werror_flag" ||
12825 test ! -s conftest.err
12826 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000012827 ac_lo=$ac_mid; break
12828else
12829 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000012830sed 's/^/| /' conftest.$ac_ext >&5
12831
Martin v. Löwiseba40652007-08-30 20:10:57 +000012832 ac_hi=`expr '(' $ac_mid ')' - 1`
12833 if test $ac_mid -le $ac_hi; then
12834 ac_lo= ac_hi=
12835 break
12836 fi
12837 ac_mid=`expr 2 '*' $ac_mid`
Martin v. Löwis11437992002-04-12 09:54:03 +000012838fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000012839
12840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000012841 done
12842else
12843 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000012844sed 's/^/| /' conftest.$ac_ext >&5
12845
Martin v. Löwiseba40652007-08-30 20:10:57 +000012846 ac_lo= ac_hi=
Martin v. Löwis11437992002-04-12 09:54:03 +000012847fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000012848
12849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000012850fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000012851
12852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000012853# Binary search between lo and hi bounds.
12854while test "x$ac_lo" != "x$ac_hi"; do
12855 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12856 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000012857/* confdefs.h. */
12858_ACEOF
12859cat confdefs.h >>conftest.$ac_ext
12860cat >>conftest.$ac_ext <<_ACEOF
12861/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000012862$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +000012863 typedef uintptr_t ac__type_sizeof_;
Martin v. Löwis11437992002-04-12 09:54:03 +000012864int
12865main ()
12866{
Martin v. Löwiseba40652007-08-30 20:10:57 +000012867static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Martin v. Löwis11437992002-04-12 09:54:03 +000012868test_array [0] = 0
12869
12870 ;
12871 return 0;
12872}
12873_ACEOF
12874rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000012875if { (ac_try="$ac_compile"
12876case "(($ac_try" in
12877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12878 *) ac_try_echo=$ac_try;;
12879esac
12880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12881 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000012882 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000012883 grep -v '^ *+' conftest.er1 >conftest.err
12884 rm -f conftest.er1
12885 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000012886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000012887 (exit $ac_status); } && {
12888 test -z "$ac_c_werror_flag" ||
12889 test ! -s conftest.err
12890 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000012891 ac_hi=$ac_mid
12892else
12893 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000012894sed 's/^/| /' conftest.$ac_ext >&5
12895
Martin v. Löwiseba40652007-08-30 20:10:57 +000012896 ac_lo=`expr '(' $ac_mid ')' + 1`
Martin v. Löwis11437992002-04-12 09:54:03 +000012897fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000012898
12899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000012900done
12901case $ac_lo in
12902?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
Martin v. Löwiseba40652007-08-30 20:10:57 +000012903'') if test "$ac_cv_type_uintptr_t" = yes; then
12904 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
Skip Montanaro6dead952003-09-25 14:50:04 +000012905See \`config.log' for more details." >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000012906echo "$as_me: error: cannot compute sizeof (uintptr_t)
Skip Montanaro6dead952003-09-25 14:50:04 +000012907See \`config.log' for more details." >&2;}
Martin v. Löwiseba40652007-08-30 20:10:57 +000012908 { (exit 77); exit 77; }; }
12909 else
12910 ac_cv_sizeof_uintptr_t=0
12911 fi ;;
Martin v. Löwis11437992002-04-12 09:54:03 +000012912esac
Barry Warsawbc7c7f92000-08-18 04:53:33 +000012913else
Martin v. Löwis11437992002-04-12 09:54:03 +000012914 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000012915/* confdefs.h. */
12916_ACEOF
12917cat confdefs.h >>conftest.$ac_ext
12918cat >>conftest.$ac_ext <<_ACEOF
12919/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000012920$ac_includes_default
Martin v. Löwiseba40652007-08-30 20:10:57 +000012921 typedef uintptr_t ac__type_sizeof_;
12922static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12923static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Michael W. Hudson54241132001-12-07 15:38:26 +000012924#include <stdio.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000012925#include <stdlib.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000012926int
12927main ()
Barry Warsawbc7c7f92000-08-18 04:53:33 +000012928{
Martin v. Löwis11437992002-04-12 09:54:03 +000012929
12930 FILE *f = fopen ("conftest.val", "w");
12931 if (! f)
Martin v. Löwiseba40652007-08-30 20:10:57 +000012932 return 1;
12933 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Martin v. Löwis11437992002-04-12 09:54:03 +000012934 {
Martin v. Löwiseba40652007-08-30 20:10:57 +000012935 long int i = longval ();
12936 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12937 return 1;
Martin v. Löwis11437992002-04-12 09:54:03 +000012938 fprintf (f, "%ld\n", i);
12939 }
12940 else
12941 {
Martin v. Löwiseba40652007-08-30 20:10:57 +000012942 unsigned long int i = ulongval ();
12943 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12944 return 1;
Martin v. Löwis11437992002-04-12 09:54:03 +000012945 fprintf (f, "%lu\n", i);
12946 }
Martin v. Löwiseba40652007-08-30 20:10:57 +000012947 return ferror (f) || fclose (f) != 0;
Martin v. Löwis11437992002-04-12 09:54:03 +000012948
12949 ;
12950 return 0;
Barry Warsawbc7c7f92000-08-18 04:53:33 +000012951}
Martin v. Löwis11437992002-04-12 09:54:03 +000012952_ACEOF
12953rm -f conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000012954if { (ac_try="$ac_link"
12955case "(($ac_try" in
12956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12957 *) ac_try_echo=$ac_try;;
12958esac
12959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12960 (eval "$ac_link") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +000012961 ac_status=$?
12962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12963 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Martin v. Löwiseba40652007-08-30 20:10:57 +000012964 { (case "(($ac_try" in
12965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12966 *) ac_try_echo=$ac_try;;
12967esac
12968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12969 (eval "$ac_try") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +000012970 ac_status=$?
12971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12972 (exit $ac_status); }; }; then
12973 ac_cv_sizeof_uintptr_t=`cat conftest.val`
Barry Warsawbc7c7f92000-08-18 04:53:33 +000012974else
Martin v. Löwis11437992002-04-12 09:54:03 +000012975 echo "$as_me: program exited with status $ac_status" >&5
12976echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000012977sed 's/^/| /' conftest.$ac_ext >&5
12978
Martin v. Löwis11437992002-04-12 09:54:03 +000012979( exit $ac_status )
Martin v. Löwiseba40652007-08-30 20:10:57 +000012980if test "$ac_cv_type_uintptr_t" = yes; then
12981 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
Skip Montanaro6dead952003-09-25 14:50:04 +000012982See \`config.log' for more details." >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000012983echo "$as_me: error: cannot compute sizeof (uintptr_t)
Skip Montanaro6dead952003-09-25 14:50:04 +000012984See \`config.log' for more details." >&2;}
Martin v. Löwiseba40652007-08-30 20:10:57 +000012985 { (exit 77); exit 77; }; }
12986 else
12987 ac_cv_sizeof_uintptr_t=0
12988 fi
Martin v. Löwis11437992002-04-12 09:54:03 +000012989fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000012990rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000012991fi
12992rm -f conftest.val
Barry Warsawbc7c7f92000-08-18 04:53:33 +000012993fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000012994{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
12995echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6; }
12996
12997
12998
Martin v. Löwis11437992002-04-12 09:54:03 +000012999cat >>confdefs.h <<_ACEOF
Barry Warsawbc7c7f92000-08-18 04:53:33 +000013000#define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
Martin v. Löwis11437992002-04-12 09:54:03 +000013001_ACEOF
Barry Warsawbc7c7f92000-08-18 04:53:33 +000013002
Michael W. Hudson54241132001-12-07 15:38:26 +000013003
Barry Warsawbc7c7f92000-08-18 04:53:33 +000013004fi
13005
Martin v. Löwisebe26702006-10-02 14:55:51 +000013006
13007
Guido van Rossumf98e2a71999-01-06 18:53:34 +000013008# Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.
Martin v. Löwiseba40652007-08-30 20:10:57 +000013009{ echo "$as_me:$LINENO: checking size of off_t" >&5
13010echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000013011if test "${ac_cv_sizeof_off_t+set}" = set; then
13012 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossumf98e2a71999-01-06 18:53:34 +000013013else
13014 if test "$cross_compiling" = yes; then
Guido van Rossum3065c942001-09-17 04:03:14 +000013015 ac_cv_sizeof_off_t=4
Guido van Rossumf98e2a71999-01-06 18:53:34 +000013016else
Martin v. Löwis11437992002-04-12 09:54:03 +000013017 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000013018/* confdefs.h. */
13019_ACEOF
13020cat confdefs.h >>conftest.$ac_ext
13021cat >>conftest.$ac_ext <<_ACEOF
13022/* end confdefs.h. */
Guido van Rossumf98e2a71999-01-06 18:53:34 +000013023#include <stdio.h>
13024#include <sys/types.h>
13025main()
13026{
13027 FILE *f=fopen("conftestval", "w");
13028 if (!f) exit(1);
13029 fprintf(f, "%d\n", sizeof(off_t));
13030 exit(0);
13031}
Martin v. Löwis11437992002-04-12 09:54:03 +000013032_ACEOF
13033rm -f conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000013034if { (ac_try="$ac_link"
13035case "(($ac_try" in
13036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13037 *) ac_try_echo=$ac_try;;
13038esac
13039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13040 (eval "$ac_link") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +000013041 ac_status=$?
13042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13043 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Martin v. Löwiseba40652007-08-30 20:10:57 +000013044 { (case "(($ac_try" in
13045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13046 *) ac_try_echo=$ac_try;;
13047esac
13048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13049 (eval "$ac_try") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +000013050 ac_status=$?
13051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13052 (exit $ac_status); }; }; then
Guido van Rossumf98e2a71999-01-06 18:53:34 +000013053 ac_cv_sizeof_off_t=`cat conftestval`
13054else
Martin v. Löwis11437992002-04-12 09:54:03 +000013055 echo "$as_me: program exited with status $ac_status" >&5
13056echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000013057sed 's/^/| /' conftest.$ac_ext >&5
13058
Martin v. Löwis11437992002-04-12 09:54:03 +000013059( exit $ac_status )
13060ac_cv_sizeof_off_t=0
Guido van Rossumf98e2a71999-01-06 18:53:34 +000013061fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000013062rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Guido van Rossumf98e2a71999-01-06 18:53:34 +000013063fi
13064
Martin v. Löwiseba40652007-08-30 20:10:57 +000013065
13066
Guido van Rossumf98e2a71999-01-06 18:53:34 +000013067fi
13068
Martin v. Löwiseba40652007-08-30 20:10:57 +000013069{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
13070echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000013071
13072cat >>confdefs.h <<_ACEOF
Guido van Rossumf98e2a71999-01-06 18:53:34 +000013073#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
Martin v. Löwis11437992002-04-12 09:54:03 +000013074_ACEOF
Guido van Rossumf98e2a71999-01-06 18:53:34 +000013075
Michael W. Hudson54241132001-12-07 15:38:26 +000013076
Martin v. Löwiseba40652007-08-30 20:10:57 +000013077{ echo "$as_me:$LINENO: checking whether to enable large file support" >&5
13078echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6; }
Guido van Rossum96f2eb91999-04-10 16:02:18 +000013079if test "$have_long_long" = yes -a \
13080 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
13081 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
Guido van Rossumf98e2a71999-01-06 18:53:34 +000013082
Martin v. Löwis11437992002-04-12 09:54:03 +000013083cat >>confdefs.h <<\_ACEOF
13084#define HAVE_LARGEFILE_SUPPORT 1
13085_ACEOF
13086
Martin v. Löwiseba40652007-08-30 20:10:57 +000013087 { echo "$as_me:$LINENO: result: yes" >&5
13088echo "${ECHO_T}yes" >&6; }
Guido van Rossumf98e2a71999-01-06 18:53:34 +000013089else
Martin v. Löwiseba40652007-08-30 20:10:57 +000013090 { echo "$as_me:$LINENO: result: no" >&5
13091echo "${ECHO_T}no" >&6; }
Guido van Rossumf98e2a71999-01-06 18:53:34 +000013092fi
13093
Guido van Rossumb9a22a12000-06-30 02:48:53 +000013094# AC_CHECK_SIZEOF() doesn't include <time.h>.
Martin v. Löwiseba40652007-08-30 20:10:57 +000013095{ echo "$as_me:$LINENO: checking size of time_t" >&5
13096echo $ECHO_N "checking size of time_t... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000013097if test "${ac_cv_sizeof_time_t+set}" = set; then
13098 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossumb9a22a12000-06-30 02:48:53 +000013099else
13100 if test "$cross_compiling" = yes; then
Guido van Rossum3065c942001-09-17 04:03:14 +000013101 ac_cv_sizeof_time_t=4
Guido van Rossumb9a22a12000-06-30 02:48:53 +000013102else
Martin v. Löwis11437992002-04-12 09:54:03 +000013103 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000013104/* confdefs.h. */
13105_ACEOF
13106cat confdefs.h >>conftest.$ac_ext
13107cat >>conftest.$ac_ext <<_ACEOF
13108/* end confdefs.h. */
Guido van Rossumb9a22a12000-06-30 02:48:53 +000013109#include <stdio.h>
13110#include <time.h>
13111main()
13112{
13113 FILE *f=fopen("conftestval", "w");
13114 if (!f) exit(1);
13115 fprintf(f, "%d\n", sizeof(time_t));
13116 exit(0);
13117}
Martin v. Löwis11437992002-04-12 09:54:03 +000013118_ACEOF
13119rm -f conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000013120if { (ac_try="$ac_link"
13121case "(($ac_try" in
13122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13123 *) ac_try_echo=$ac_try;;
13124esac
13125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13126 (eval "$ac_link") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +000013127 ac_status=$?
13128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Martin v. Löwiseba40652007-08-30 20:10:57 +000013130 { (case "(($ac_try" in
13131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13132 *) ac_try_echo=$ac_try;;
13133esac
13134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13135 (eval "$ac_try") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +000013136 ac_status=$?
13137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13138 (exit $ac_status); }; }; then
Guido van Rossumb9a22a12000-06-30 02:48:53 +000013139 ac_cv_sizeof_time_t=`cat conftestval`
13140else
Martin v. Löwis11437992002-04-12 09:54:03 +000013141 echo "$as_me: program exited with status $ac_status" >&5
13142echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000013143sed 's/^/| /' conftest.$ac_ext >&5
13144
Martin v. Löwis11437992002-04-12 09:54:03 +000013145( exit $ac_status )
13146ac_cv_sizeof_time_t=0
Guido van Rossumb9a22a12000-06-30 02:48:53 +000013147fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000013148rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Guido van Rossumb9a22a12000-06-30 02:48:53 +000013149fi
13150
Martin v. Löwiseba40652007-08-30 20:10:57 +000013151
13152
Guido van Rossumb9a22a12000-06-30 02:48:53 +000013153fi
13154
Martin v. Löwiseba40652007-08-30 20:10:57 +000013155{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
13156echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000013157
13158cat >>confdefs.h <<_ACEOF
Guido van Rossumb9a22a12000-06-30 02:48:53 +000013159#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
Martin v. Löwis11437992002-04-12 09:54:03 +000013160_ACEOF
Guido van Rossumb9a22a12000-06-30 02:48:53 +000013161
Michael W. Hudson54241132001-12-07 15:38:26 +000013162
13163
Trent Mick635f6fb2000-08-23 21:33:05 +000013164# if have pthread_t then define SIZEOF_PTHREAD_T
Martin v. Löwis123cbd22001-07-19 14:21:10 +000013165ac_save_cc="$CC"
13166if test "$ac_cv_kpthread" = "yes"
13167then CC="$CC -Kpthread"
Martin v. Löwis5f433f02003-05-05 05:05:30 +000013168elif test "$ac_cv_kthread" = "yes"
13169then CC="$CC -Kthread"
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000013170elif test "$ac_cv_pthread" = "yes"
13171then CC="$CC -pthread"
Martin v. Löwis123cbd22001-07-19 14:21:10 +000013172fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000013173{ echo "$as_me:$LINENO: checking for pthread_t" >&5
13174echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; }
Trent Mick635f6fb2000-08-23 21:33:05 +000013175have_pthread_t=no
Martin v. Löwis11437992002-04-12 09:54:03 +000013176cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000013177/* confdefs.h. */
13178_ACEOF
13179cat confdefs.h >>conftest.$ac_ext
13180cat >>conftest.$ac_ext <<_ACEOF
13181/* end confdefs.h. */
Trent Mick635f6fb2000-08-23 21:33:05 +000013182#include <pthread.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000013183int
13184main ()
13185{
Guido van Rossum12580492000-09-24 16:47:19 +000013186pthread_t x; x = *(pthread_t*)0;
Martin v. Löwis11437992002-04-12 09:54:03 +000013187 ;
13188 return 0;
13189}
13190_ACEOF
13191rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000013192if { (ac_try="$ac_compile"
13193case "(($ac_try" in
13194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13195 *) ac_try_echo=$ac_try;;
13196esac
13197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13198 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000013199 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000013200 grep -v '^ *+' conftest.er1 >conftest.err
13201 rm -f conftest.er1
13202 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000013203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000013204 (exit $ac_status); } && {
13205 test -z "$ac_c_werror_flag" ||
13206 test ! -s conftest.err
13207 } && test -s conftest.$ac_objext; then
Trent Mick635f6fb2000-08-23 21:33:05 +000013208 have_pthread_t=yes
13209else
Martin v. Löwis11437992002-04-12 09:54:03 +000013210 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000013211sed 's/^/| /' conftest.$ac_ext >&5
13212
Martin v. Löwiseba40652007-08-30 20:10:57 +000013213
Trent Mick635f6fb2000-08-23 21:33:05 +000013214fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000013215
13216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13217{ echo "$as_me:$LINENO: result: $have_pthread_t" >&5
13218echo "${ECHO_T}$have_pthread_t" >&6; }
Trent Mick635f6fb2000-08-23 21:33:05 +000013219if test "$have_pthread_t" = yes ; then
13220 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
Martin v. Löwiseba40652007-08-30 20:10:57 +000013221 { echo "$as_me:$LINENO: checking size of pthread_t" >&5
13222echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000013223 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
13224 echo $ECHO_N "(cached) $ECHO_C" >&6
Trent Mick635f6fb2000-08-23 21:33:05 +000013225else
13226 if test "$cross_compiling" = yes; then
Guido van Rossum3065c942001-09-17 04:03:14 +000013227 ac_cv_sizeof_pthread_t=4
Trent Mick635f6fb2000-08-23 21:33:05 +000013228else
Martin v. Löwis11437992002-04-12 09:54:03 +000013229 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000013230/* confdefs.h. */
13231_ACEOF
13232cat confdefs.h >>conftest.$ac_ext
13233cat >>conftest.$ac_ext <<_ACEOF
13234/* end confdefs.h. */
Trent Mick635f6fb2000-08-23 21:33:05 +000013235#include <stdio.h>
Neal Norwitz6eb37f02003-02-23 23:28:15 +000013236#include <pthread.h>
Trent Mick635f6fb2000-08-23 21:33:05 +000013237 main()
13238 {
13239 FILE *f=fopen("conftestval", "w");
13240 if (!f) exit(1);
13241 fprintf(f, "%d\n", sizeof(pthread_t));
13242 exit(0);
13243 }
Martin v. Löwis11437992002-04-12 09:54:03 +000013244_ACEOF
13245rm -f conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000013246if { (ac_try="$ac_link"
13247case "(($ac_try" in
13248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13249 *) ac_try_echo=$ac_try;;
13250esac
13251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13252 (eval "$ac_link") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +000013253 ac_status=$?
13254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13255 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Martin v. Löwiseba40652007-08-30 20:10:57 +000013256 { (case "(($ac_try" in
13257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13258 *) ac_try_echo=$ac_try;;
13259esac
13260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13261 (eval "$ac_try") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +000013262 ac_status=$?
13263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13264 (exit $ac_status); }; }; then
Trent Mick635f6fb2000-08-23 21:33:05 +000013265 ac_cv_sizeof_pthread_t=`cat conftestval`
13266else
Martin v. Löwis11437992002-04-12 09:54:03 +000013267 echo "$as_me: program exited with status $ac_status" >&5
13268echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000013269sed 's/^/| /' conftest.$ac_ext >&5
13270
Martin v. Löwis11437992002-04-12 09:54:03 +000013271( exit $ac_status )
13272ac_cv_sizeof_pthread_t=0
Trent Mick635f6fb2000-08-23 21:33:05 +000013273fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000013274rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Trent Mick635f6fb2000-08-23 21:33:05 +000013275fi
13276
Martin v. Löwiseba40652007-08-30 20:10:57 +000013277
13278
Trent Mick635f6fb2000-08-23 21:33:05 +000013279fi
13280
Martin v. Löwiseba40652007-08-30 20:10:57 +000013281 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
13282echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000013283
13284cat >>confdefs.h <<_ACEOF
Trent Mick635f6fb2000-08-23 21:33:05 +000013285#define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
Martin v. Löwis11437992002-04-12 09:54:03 +000013286_ACEOF
Trent Mick635f6fb2000-08-23 21:33:05 +000013287
13288fi
Martin v. Löwis123cbd22001-07-19 14:21:10 +000013289CC="$ac_save_cc"
Trent Mick635f6fb2000-08-23 21:33:05 +000013290
Martin v. Löwiseba40652007-08-30 20:10:57 +000013291{ echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
13292echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6; }
13293# Check whether --enable-toolbox-glue was given.
Jack Jansene578a632001-08-15 01:27:14 +000013294if test "${enable_toolbox_glue+set}" = set; then
Martin v. Löwiseba40652007-08-30 20:10:57 +000013295 enableval=$enable_toolbox_glue;
13296fi
Jack Jansene578a632001-08-15 01:27:14 +000013297
13298
13299if test -z "$enable_toolbox_glue"
Martin v. Löwis11437992002-04-12 09:54:03 +000013300then
Jack Jansene578a632001-08-15 01:27:14 +000013301 case $ac_sys_system/$ac_sys_release in
13302 Darwin/*)
13303 enable_toolbox_glue="yes";;
13304 *)
13305 enable_toolbox_glue="no";;
13306 esac
13307fi
13308case "$enable_toolbox_glue" in
13309yes)
Jack Jansene578a632001-08-15 01:27:14 +000013310 extra_machdep_objs="Python/mactoolboxglue.o"
Anthony Baxtereef2d3b2004-11-06 04:45:33 +000013311 extra_undefs="-u _PyMac_Error"
Martin v. Löwis11437992002-04-12 09:54:03 +000013312
13313cat >>confdefs.h <<\_ACEOF
Jack Jansene578a632001-08-15 01:27:14 +000013314#define USE_TOOLBOX_OBJECT_GLUE 1
Martin v. Löwis11437992002-04-12 09:54:03 +000013315_ACEOF
Jack Jansene578a632001-08-15 01:27:14 +000013316
13317 ;;
13318*)
Jack Jansene578a632001-08-15 01:27:14 +000013319 extra_machdep_objs=""
Jack Jansen591cbed2001-08-15 13:55:15 +000013320 extra_undefs=""
Jack Jansene578a632001-08-15 01:27:14 +000013321 ;;
13322esac
Martin v. Löwiseba40652007-08-30 20:10:57 +000013323{ echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
13324echo "${ECHO_T}$enable_toolbox_glue" >&6; }
Michael W. Hudson54241132001-12-07 15:38:26 +000013325
Guido van Rossum54ecc3d1999-01-27 17:53:11 +000013326
Ronald Oussoren0d236eb2008-06-06 21:31:33 +000013327
Guido van Rossum54ecc3d1999-01-27 17:53:11 +000013328case $ac_sys_system/$ac_sys_release in
Anthony Baxter82201742006-04-09 15:07:40 +000013329 Darwin/[01567]\..*)
Bob Ippolito7026a0a2005-03-28 23:23:47 +000013330 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
13331 ;;
13332 Darwin/*)
13333 OTHER_LIBTOOL_OPT=""
13334 ;;
13335esac
13336
13337
13338case $ac_sys_system/$ac_sys_release in
Anthony Baxter82201742006-04-09 15:07:40 +000013339 Darwin/[01567]\..*)
Ronald Oussoren988117f2006-04-29 11:31:35 +000013340 LIBTOOL_CRUFT="-framework System -lcc_dynamic"
13341 if test "${enable_universalsdk}"; then
13342 :
13343 else
13344 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch`"
13345 fi
Jack Jansenb36687a2004-07-16 08:43:47 +000013346 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
Jack Jansena3891ea2001-09-07 14:25:12 +000013347 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
Guido van Rossum5839e582000-10-09 19:52:35 +000013348 Darwin/*)
Bob Ippolito7026a0a2005-03-28 23:23:47 +000013349 gcc_version=`gcc -v 2>&1 | grep version | cut -d\ -f3`
13350 if test ${gcc_version} '<' 4.0
13351 then
13352 LIBTOOL_CRUFT="-lcc_dynamic"
13353 else
13354 LIBTOOL_CRUFT=""
13355 fi
Jack Jansen39fd2312006-02-23 15:12:19 +000013356 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch`"
Jack Jansenb36687a2004-07-16 08:43:47 +000013357 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
Jack Jansene578a632001-08-15 01:27:14 +000013358 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
Guido van Rossum54ecc3d1999-01-27 17:53:11 +000013359esac
13360
Martin v. Löwiseba40652007-08-30 20:10:57 +000013361{ echo "$as_me:$LINENO: checking for --enable-framework" >&5
13362echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6; }
Jack Jansene578a632001-08-15 01:27:14 +000013363if test "$enable_framework"
Guido van Rossum54ecc3d1999-01-27 17:53:11 +000013364then
Skip Montanarodecc6a42003-01-01 20:07:49 +000013365 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
Martin v. Löwis11437992002-04-12 09:54:03 +000013366 # -F. is needed to allow linking to the framework while
Jack Jansene578a632001-08-15 01:27:14 +000013367 # in the build location.
Guido van Rossum54ecc3d1999-01-27 17:53:11 +000013368
Martin v. Löwis11437992002-04-12 09:54:03 +000013369cat >>confdefs.h <<\_ACEOF
13370#define WITH_NEXT_FRAMEWORK 1
13371_ACEOF
13372
Martin v. Löwiseba40652007-08-30 20:10:57 +000013373 { echo "$as_me:$LINENO: result: yes" >&5
13374echo "${ECHO_T}yes" >&6; }
Guido van Rossum54ecc3d1999-01-27 17:53:11 +000013375else
Martin v. Löwiseba40652007-08-30 20:10:57 +000013376 { echo "$as_me:$LINENO: result: no" >&5
13377echo "${ECHO_T}no" >&6; }
Guido van Rossum54ecc3d1999-01-27 17:53:11 +000013378fi
13379
Martin v. Löwiseba40652007-08-30 20:10:57 +000013380{ echo "$as_me:$LINENO: checking for dyld" >&5
13381echo $ECHO_N "checking for dyld... $ECHO_C" >&6; }
Jack Jansen9a66b6d2001-08-08 13:56:14 +000013382case $ac_sys_system/$ac_sys_release in
13383 Darwin/*)
Guido van Rossum54ecc3d1999-01-27 17:53:11 +000013384
Martin v. Löwis11437992002-04-12 09:54:03 +000013385cat >>confdefs.h <<\_ACEOF
13386#define WITH_DYLD 1
13387_ACEOF
13388
Martin v. Löwiseba40652007-08-30 20:10:57 +000013389 { echo "$as_me:$LINENO: result: always on for Darwin" >&5
13390echo "${ECHO_T}always on for Darwin" >&6; }
Jack Jansen9a66b6d2001-08-08 13:56:14 +000013391 ;;
13392 *)
Martin v. Löwiseba40652007-08-30 20:10:57 +000013393 { echo "$as_me:$LINENO: result: no" >&5
13394echo "${ECHO_T}no" >&6; }
Jack Jansene578a632001-08-15 01:27:14 +000013395 ;;
Jack Jansen9a66b6d2001-08-08 13:56:14 +000013396esac
Guido van Rossum54ecc3d1999-01-27 17:53:11 +000013397
Guido van Rossum0a516c91994-09-12 10:58:40 +000013398# Set info about shared libraries.
Guido van Rossum0a516c91994-09-12 10:58:40 +000013399
Michael W. Hudson54241132001-12-07 15:38:26 +000013400
13401
13402
13403
Guido van Rossum0a516c91994-09-12 10:58:40 +000013404# SO is the extension of shared libraries `(including the dot!)
Guido van Rossumaef734b2001-01-10 21:09:12 +000013405# -- usually .so, .sl on HP-UX, .dll on Cygwin
Martin v. Löwiseba40652007-08-30 20:10:57 +000013406{ echo "$as_me:$LINENO: checking SO" >&5
13407echo $ECHO_N "checking SO... $ECHO_C" >&6; }
Guido van Rossum0a516c91994-09-12 10:58:40 +000013408if test -z "$SO"
13409then
Guido van Rossum76be6ed1995-01-02 18:33:54 +000013410 case $ac_sys_system in
Neal Norwitz58e28882006-05-19 07:00:58 +000013411 hp*|HP*)
13412 case `uname -m` in
13413 ia64) SO=.so;;
13414 *) SO=.sl;;
13415 esac
13416 ;;
Guido van Rossumaef734b2001-01-10 21:09:12 +000013417 CYGWIN*) SO=.dll;;
Guido van Rossum563e7081996-09-10 18:20:48 +000013418 *) SO=.so;;
Guido van Rossum0a516c91994-09-12 10:58:40 +000013419 esac
Martin v. Löwis368de8f2003-06-14 14:46:38 +000013420else
13421 # this might also be a termcap variable, see #610332
13422 echo
13423 echo '====================================================================='
13424 echo '+ +'
13425 echo '+ WARNING: You have set SO in your environment. +'
13426 echo '+ Do you really mean to change the extension for shared libraries? +'
13427 echo '+ Continuing in 10 seconds to let you to ponder. +'
13428 echo '+ +'
13429 echo '====================================================================='
13430 sleep 10
Guido van Rossum0a516c91994-09-12 10:58:40 +000013431fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000013432{ echo "$as_me:$LINENO: result: $SO" >&5
13433echo "${ECHO_T}$SO" >&6; }
Neal Norwitz58e28882006-05-19 07:00:58 +000013434
Ronald Oussoren79f90492009-01-02 10:44:46 +000013435
Neal Norwitz58e28882006-05-19 07:00:58 +000013436cat >>confdefs.h <<_ACEOF
13437#define SHLIB_EXT "$SO"
13438_ACEOF
13439
Guido van Rossum0a516c91994-09-12 10:58:40 +000013440# LDSHARED is the ld *command* used to create shared library
Martin v. Löwis12af0482004-01-31 12:34:17 +000013441# -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
Guido van Rossum54ecc3d1999-01-27 17:53:11 +000013442# (Shared libraries in this instance are shared modules to be loaded into
13443# Python, as opposed to building Python itself as a shared library.)
Martin v. Löwiseba40652007-08-30 20:10:57 +000013444{ echo "$as_me:$LINENO: checking LDSHARED" >&5
13445echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6; }
Guido van Rossum0a516c91994-09-12 10:58:40 +000013446if test -z "$LDSHARED"
13447then
Guido van Rossum76be6ed1995-01-02 18:33:54 +000013448 case $ac_sys_system/$ac_sys_release in
Neil Schemenauer4a7bbcb2001-02-16 03:37:54 +000013449 AIX*)
13450 BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
Guido van Rossumce608b02001-09-28 15:59:38 +000013451 LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
Neil Schemenauer4a7bbcb2001-02-16 03:37:54 +000013452 ;;
13453 BeOS*)
13454 BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
Guido van Rossumce608b02001-09-28 15:59:38 +000013455 LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
Neil Schemenauer4a7bbcb2001-02-16 03:37:54 +000013456 ;;
Guido van Rossum07397971997-04-29 21:49:50 +000013457 IRIX/5*) LDSHARED="ld -shared";;
Guido van Rossum91922671997-10-09 20:24:13 +000013458 IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
Martin v. Löwis11437992002-04-12 09:54:03 +000013459 SunOS/5*)
Greg Ward57c9a662000-05-26 12:22:54 +000013460 if test "$GCC" = "yes"
Neil Schemenauer8ba94452001-02-19 18:18:48 +000013461 then LDSHARED='$(CC) -shared'
Martin v. Löwisaa5afe12002-10-07 06:21:41 +000013462 else LDSHARED='$(CC) -G';
Greg Ward57c9a662000-05-26 12:22:54 +000013463 fi ;;
Thomas Hellerdc96a772008-04-04 10:07:55 +000013464 hp*|HP*)
13465 if test "$GCC" = "yes"
13466 then LDSHARED='$(CC) -shared'
13467 else LDSHARED='ld -b';
13468 fi ;;
Guido van Rossumda88dad1995-01-26 00:46:29 +000013469 OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
Jack Jansen418c3b12001-11-14 10:59:57 +000013470 Darwin/1.3*)
Jack Jansena3891ea2001-09-07 14:25:12 +000013471 LDSHARED='$(CC) $(LDFLAGS) -bundle'
13472 if test "$enable_framework" ; then
13473 # Link against the framework. All externals should be defined.
Jack Jansenda49e192005-01-07 13:08:22 +000013474 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13475 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
Jack Jansena3891ea2001-09-07 14:25:12 +000013476 else
13477 # No framework. Ignore undefined symbols, assuming they come from Python
Jack Jansen418c3b12001-11-14 10:59:57 +000013478 LDSHARED="$LDSHARED -undefined suppress"
Jack Jansena3891ea2001-09-07 14:25:12 +000013479 fi ;;
Jack Jansen6b08a402004-06-03 12:41:45 +000013480 Darwin/1.4*|Darwin/5.*|Darwin/6.*)
Jack Jansene578a632001-08-15 01:27:14 +000013481 LDSHARED='$(CC) $(LDFLAGS) -bundle'
13482 if test "$enable_framework" ; then
13483 # Link against the framework. All externals should be defined.
Jack Jansenda49e192005-01-07 13:08:22 +000013484 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13485 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
Jack Jansene578a632001-08-15 01:27:14 +000013486 else
Michael W. Hudson594bc802002-03-07 09:59:15 +000013487 # No framework, use the Python app as bundle-loader
13488 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
Jack Jansenc28fc372003-02-25 13:14:43 +000013489 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
Guido van Rossum54ecc3d1999-01-27 17:53:11 +000013490 fi ;;
Jack Jansen6b08a402004-06-03 12:41:45 +000013491 Darwin/*)
13492 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
13493 # This allows an extension to be used in any Python
Ronald Oussoren38f1b982007-09-02 09:46:07 +000013494
Ronald Oussoren5640ce22008-06-05 12:58:24 +000013495 if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2
Jack Jansen6b08a402004-06-03 12:41:45 +000013496 then
Ronald Oussoren988117f2006-04-29 11:31:35 +000013497 if test "${enable_universalsdk}"; then
Ronald Oussoren5640ce22008-06-05 12:58:24 +000013498 LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
Ronald Oussoren988117f2006-04-29 11:31:35 +000013499 fi
Jack Jansen6b08a402004-06-03 12:41:45 +000013500 LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
13501 BLDSHARED="$LDSHARED"
Jack Jansen6b08a402004-06-03 12:41:45 +000013502 else
13503 LDSHARED='$(CC) $(LDFLAGS) -bundle'
13504 if test "$enable_framework" ; then
13505 # Link against the framework. All externals should be defined.
Jack Jansenda49e192005-01-07 13:08:22 +000013506 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13507 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
Jack Jansen6b08a402004-06-03 12:41:45 +000013508 else
13509 # No framework, use the Python app as bundle-loader
13510 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
13511 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
13512 fi
13513 fi
13514 ;;
Martin v. Löwis8c255e42008-05-23 15:06:50 +000013515 Linux*|GNU*|QNX*) LDSHARED='$(CC) -shared';;
Guido van Rossum458e7fa1999-09-17 15:40:40 +000013516 BSD/OS*/4*) LDSHARED="gcc -shared";;
Martin v. Löwis222c5152006-06-03 07:37:13 +000013517 FreeBSD*)
Jeremy Hylton4bcc7c52000-08-31 17:45:35 +000013518 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
Guido van Rossum0286ae82000-08-29 15:06:49 +000013519 then
Hye-Shik Chang33761492004-10-26 09:53:46 +000013520 LDSHARED="$CC -shared ${LDFLAGS}"
Guido van Rossum0286ae82000-08-29 15:06:49 +000013521 else
13522 LDSHARED="ld -Bshareable ${LDFLAGS}"
13523 fi;;
Martin v. Löwis222c5152006-06-03 07:37:13 +000013524 OpenBSD*)
13525 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13526 then
13527 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
13528 else
13529 case `uname -r` in
13530 [01].* | 2.[0-7] | 2.[0-7].*)
13531 LDSHARED="ld -Bshareable ${LDFLAGS}"
13532 ;;
13533 *)
13534 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
13535 ;;
13536 esac
13537 fi;;
Martin v. Löwis86d66262006-02-17 08:40:11 +000013538 NetBSD*|DragonFly*) LDSHARED="cc -shared ${LDFLAGS}";;
Martin v. Löwis25ae43b2001-10-07 08:39:18 +000013539 OpenUNIX*|UnixWare*)
Martin v. Löwisbec19582001-03-21 15:57:54 +000013540 if test "$GCC" = "yes"
Martin v. Löwis79f3c532002-12-11 12:51:58 +000013541 then LDSHARED='$(CC) -shared'
13542 else LDSHARED='$(CC) -G'
Martin v. Löwisbec19582001-03-21 15:57:54 +000013543 fi;;
Martin v. Löwis79f3c532002-12-11 12:51:58 +000013544 SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';;
Trent Mick635f6fb2000-08-23 21:33:05 +000013545 Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
Guido van Rossumaef734b2001-01-10 21:09:12 +000013546 CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";;
Martin v. Löwisf90ae202002-06-11 06:22:31 +000013547 atheos*) LDSHARED="gcc -shared";;
Guido van Rossum0a516c91994-09-12 10:58:40 +000013548 *) LDSHARED="ld";;
13549 esac
Guido van Rossum0a516c91994-09-12 10:58:40 +000013550fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000013551{ echo "$as_me:$LINENO: result: $LDSHARED" >&5
13552echo "${ECHO_T}$LDSHARED" >&6; }
Neil Schemenauer4a7bbcb2001-02-16 03:37:54 +000013553BLDSHARED=${BLDSHARED-$LDSHARED}
Guido van Rossum0a516c91994-09-12 10:58:40 +000013554# CCSHARED are the C *flags* used to create objects to go into a shared
Guido van Rossum54ecc3d1999-01-27 17:53:11 +000013555# library (module) -- this is only needed for a few systems
Martin v. Löwiseba40652007-08-30 20:10:57 +000013556{ echo "$as_me:$LINENO: checking CCSHARED" >&5
13557echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6; }
Guido van Rossum0a516c91994-09-12 10:58:40 +000013558if test -z "$CCSHARED"
13559then
Guido van Rossum07397971997-04-29 21:49:50 +000013560 case $ac_sys_system/$ac_sys_release in
Neil Schemenauerc761fc82001-02-19 04:50:49 +000013561 SunOS*) if test "$GCC" = yes;
Martin v. Löwiseb623572007-03-12 10:50:39 +000013562 then CCSHARED="-fPIC";
13563 elif test `uname -p` = sparc;
13564 then CCSHARED="-xcode=pic32";
13565 else CCSHARED="-Kpic";
13566 fi;;
Guido van Rossumaf07a441995-02-13 19:45:27 +000013567 hp*|HP*) if test "$GCC" = yes;
Martin v. Löwis703ad702001-09-05 08:36:52 +000013568 then CCSHARED="-fPIC";
Guido van Rossumaf07a441995-02-13 19:45:27 +000013569 else CCSHARED="+z";
13570 fi;;
Martin v. Löwisa6e97582002-01-01 18:41:33 +000013571 Linux*|GNU*) CCSHARED="-fPIC";;
Guido van Rossumf5957ea1999-10-05 21:59:33 +000013572 BSD/OS*/4*) CCSHARED="-fpic";;
Martin v. Löwis86d66262006-02-17 08:40:11 +000013573 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";;
Martin v. Löwis25ae43b2001-10-07 08:39:18 +000013574 OpenUNIX*|UnixWare*)
Martin v. Löwisbec19582001-03-21 15:57:54 +000013575 if test "$GCC" = "yes"
13576 then CCSHARED="-fPIC"
Martin v. Löwis130fb172001-07-19 11:00:41 +000013577 else CCSHARED="-KPIC"
Martin v. Löwisbec19582001-03-21 15:57:54 +000013578 fi;;
Martin v. Löwis21ee4092002-09-30 16:19:48 +000013579 SCO_SV*)
13580 if test "$GCC" = "yes"
13581 then CCSHARED="-fPIC"
13582 else CCSHARED="-Kpic -belf"
13583 fi;;
Trent Mick635f6fb2000-08-23 21:33:05 +000013584 Monterey*) CCSHARED="-G";;
Guido van Rossum2b5ca001998-03-05 15:41:09 +000013585 IRIX*/6*) case $CC in
13586 *gcc*) CCSHARED="-shared";;
Guido van Rossumee21f411998-04-20 18:51:54 +000013587 *) CCSHARED="";;
Guido van Rossum2b5ca001998-03-05 15:41:09 +000013588 esac;;
Martin v. Löwisf90ae202002-06-11 06:22:31 +000013589 atheos*) CCSHARED="-fPIC";;
Guido van Rossum0a516c91994-09-12 10:58:40 +000013590 esac
Guido van Rossum0a516c91994-09-12 10:58:40 +000013591fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000013592{ echo "$as_me:$LINENO: result: $CCSHARED" >&5
13593echo "${ECHO_T}$CCSHARED" >&6; }
Guido van Rossum0a516c91994-09-12 10:58:40 +000013594# LINKFORSHARED are the flags passed to the $(CC) command that links
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +000013595# the python executable -- this is only needed for a few systems
Martin v. Löwiseba40652007-08-30 20:10:57 +000013596{ echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
13597echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6; }
Guido van Rossum0a516c91994-09-12 10:58:40 +000013598if test -z "$LINKFORSHARED"
13599then
Guido van Rossum07397971997-04-29 21:49:50 +000013600 case $ac_sys_system/$ac_sys_release in
Neil Schemenauer4a7bbcb2001-02-16 03:37:54 +000013601 AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';;
Guido van Rossumccaf3b61996-12-06 21:19:16 +000013602 hp*|HP*)
Martin v. Löwis1142de32002-03-29 16:28:31 +000013603 LINKFORSHARED="-Wl,-E -Wl,+s";;
13604# LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
Guido van Rossumf5957ea1999-10-05 21:59:33 +000013605 BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
Martin v. Löwisa6e97582002-01-01 18:41:33 +000013606 Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
Guido van Rossum54ecc3d1999-01-27 17:53:11 +000013607 # -u libsys_s pulls in all symbols in libsys
Martin v. Löwis11437992002-04-12 09:54:03 +000013608 Darwin/*)
Anthony Baxtereef2d3b2004-11-06 04:45:33 +000013609 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
13610 # which is
Jack Jansene578a632001-08-15 01:27:14 +000013611 # not used by the core itself but which needs to be in the core so
13612 # that dynamically loaded extension modules have access to it.
Jack Jansen97e3f002003-02-23 22:59:01 +000013613 # -prebind is no longer used, because it actually seems to give a
13614 # slowdown in stead of a speedup, maybe due to the large number of
13615 # dynamic loads Python does.
Anthony Baxtereef2d3b2004-11-06 04:45:33 +000013616
13617 LINKFORSHARED="$extra_undefs"
Jack Jansene578a632001-08-15 01:27:14 +000013618 if test "$enable_framework"
13619 then
Jack Jansenda49e192005-01-07 13:08:22 +000013620 LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
Jack Jansene578a632001-08-15 01:27:14 +000013621 fi
Anthony Baxtereef2d3b2004-11-06 04:45:33 +000013622 LINKFORSHARED="$LINKFORSHARED";;
Martin v. Löwis25ae43b2001-10-07 08:39:18 +000013623 OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
Martin v. Löwis21ee4092002-09-30 16:19:48 +000013624 SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
Fred Drake02706f52000-09-25 15:08:46 +000013625 ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
Martin v. Löwis86d66262006-02-17 08:40:11 +000013626 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*)
Guido van Rossumdf693651999-01-07 21:50:41 +000013627 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13628 then
13629 LINKFORSHARED="-Wl,--export-dynamic"
13630 fi;;
Guido van Rossum2b5ca001998-03-05 15:41:09 +000013631 SunOS/5*) case $CC in
13632 *gcc*)
Martin v. Löwisa4548572002-04-18 14:51:36 +000013633 if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
Guido van Rossum8f4ceb11997-12-18 23:42:19 +000013634 then
13635 LINKFORSHARED="-Xlinker --export-dynamic"
Guido van Rossum2b5ca001998-03-05 15:41:09 +000013636 fi;;
13637 esac;;
Jason Tishler30765592003-09-04 11:04:06 +000013638 CYGWIN*)
13639 if test $enable_shared = "no"
13640 then
13641 LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)'
13642 fi;;
Martin v. Löwis8c255e42008-05-23 15:06:50 +000013643 QNX*)
13644 # -Wl,-E causes the symbols to be added to the dynamic
13645 # symbol table so that they can be found when a module
13646 # is loaded. -N 2048K causes the stack size to be set
13647 # to 2048 kilobytes so that the stack doesn't overflow
13648 # when running test_compile.py.
13649 LINKFORSHARED='-Wl,-E -N 2048K';;
Guido van Rossum0a516c91994-09-12 10:58:40 +000013650 esac
Guido van Rossum0a516c91994-09-12 10:58:40 +000013651fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000013652{ echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
13653echo "${ECHO_T}$LINKFORSHARED" >&6; }
Guido van Rossum0a516c91994-09-12 10:58:40 +000013654
Michael W. Hudson54241132001-12-07 15:38:26 +000013655
Ronald Oussoren0d236eb2008-06-06 21:31:33 +000013656
Martin v. Löwiseba40652007-08-30 20:10:57 +000013657{ echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
13658echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6; }
Neil Schemenauer3ecf0aa2001-01-26 16:15:20 +000013659if test ! "$LIBRARY" = "$LDLIBRARY"
13660then
Neil Schemenauer0c6141f2001-01-27 21:40:54 +000013661 case $ac_sys_system in
13662 CYGWIN*)
13663 # Cygwin needs CCSHARED when building extension DLLs
13664 # but not when building the interpreter DLL.
13665 CFLAGSFORSHARED='';;
13666 *)
13667 CFLAGSFORSHARED='$(CCSHARED)'
13668 esac
Neil Schemenauer3ecf0aa2001-01-26 16:15:20 +000013669fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000013670{ echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
13671echo "${ECHO_T}$CFLAGSFORSHARED" >&6; }
Neil Schemenauer3ecf0aa2001-01-26 16:15:20 +000013672
Martin v. Löwisf90ae202002-06-11 06:22:31 +000013673# SHLIBS are libraries (except -lc and -lm) to link to the python shared
13674# library (with --enable-shared).
13675# For platforms on which shared libraries are not allowed to have unresolved
Martin v. Löwisd6359c52002-08-04 12:38:50 +000013676# symbols, this must be set to $(LIBS) (expanded by make). We do this even
13677# if it is not required, since it creates a dependency of the shared library
13678# to LIBS. This, in turn, means that applications linking the shared libpython
13679# don't need to link LIBS explicitly. The default should be only changed
13680# on systems where this approach causes problems.
Martin v. Löwisf90ae202002-06-11 06:22:31 +000013681
Martin v. Löwiseba40652007-08-30 20:10:57 +000013682{ echo "$as_me:$LINENO: checking SHLIBS" >&5
13683echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6; }
Martin v. Löwisf90ae202002-06-11 06:22:31 +000013684case "$ac_sys_system" in
Martin v. Löwisf90ae202002-06-11 06:22:31 +000013685 *)
Martin v. Löwisd6359c52002-08-04 12:38:50 +000013686 SHLIBS='$(LIBS)';;
Martin v. Löwisf90ae202002-06-11 06:22:31 +000013687esac
Martin v. Löwiseba40652007-08-30 20:10:57 +000013688{ echo "$as_me:$LINENO: result: $SHLIBS" >&5
13689echo "${ECHO_T}$SHLIBS" >&6; }
Martin v. Löwisf90ae202002-06-11 06:22:31 +000013690
13691
Guido van Rossum627b2d71993-12-24 10:39:16 +000013692# checks for libraries
Martin v. Löwis11437992002-04-12 09:54:03 +000013693
Martin v. Löwiseba40652007-08-30 20:10:57 +000013694{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13695echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000013696if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13697 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +000013698else
Martin v. Löwis11437992002-04-12 09:54:03 +000013699 ac_check_lib_save_LIBS=$LIBS
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +000013700LIBS="-ldl $LIBS"
Martin v. Löwis11437992002-04-12 09:54:03 +000013701cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000013702/* confdefs.h. */
13703_ACEOF
13704cat confdefs.h >>conftest.$ac_ext
13705cat >>conftest.$ac_ext <<_ACEOF
13706/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000013707
Martin v. Löwiseba40652007-08-30 20:10:57 +000013708/* Override any GCC internal prototype to avoid an error.
13709 Use char because int might match the return type of a GCC
13710 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +000013711#ifdef __cplusplus
13712extern "C"
13713#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000013714char dlopen ();
Martin v. Löwis11437992002-04-12 09:54:03 +000013715int
13716main ()
13717{
Martin v. Löwiseba40652007-08-30 20:10:57 +000013718return dlopen ();
Martin v. Löwis11437992002-04-12 09:54:03 +000013719 ;
13720 return 0;
13721}
13722_ACEOF
13723rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000013724if { (ac_try="$ac_link"
13725case "(($ac_try" in
13726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13727 *) ac_try_echo=$ac_try;;
13728esac
13729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13730 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000013731 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000013732 grep -v '^ *+' conftest.er1 >conftest.err
13733 rm -f conftest.er1
13734 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000013735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000013736 (exit $ac_status); } && {
13737 test -z "$ac_c_werror_flag" ||
13738 test ! -s conftest.err
13739 } && test -s conftest$ac_exeext &&
13740 $as_test_x conftest$ac_exeext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000013741 ac_cv_lib_dl_dlopen=yes
Guido van Rossum76be6ed1995-01-02 18:33:54 +000013742else
Martin v. Löwis11437992002-04-12 09:54:03 +000013743 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000013744sed 's/^/| /' conftest.$ac_ext >&5
13745
Martin v. Löwiseba40652007-08-30 20:10:57 +000013746 ac_cv_lib_dl_dlopen=no
Guido van Rossum627b2d71993-12-24 10:39:16 +000013747fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000013748
13749rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000013750 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000013751LIBS=$ac_check_lib_save_LIBS
Guido van Rossum627b2d71993-12-24 10:39:16 +000013752fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000013753{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13754echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000013755if test $ac_cv_lib_dl_dlopen = yes; then
13756 cat >>confdefs.h <<_ACEOF
13757#define HAVE_LIBDL 1
13758_ACEOF
Guido van Rossum627b2d71993-12-24 10:39:16 +000013759
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +000013760 LIBS="-ldl $LIBS"
Guido van Rossum7f43da71994-08-01 12:15:30 +000013761
Guido van Rossum76be6ed1995-01-02 18:33:54 +000013762fi
13763 # Dynamic linking for SunOS/Solaris and SYSV
Martin v. Löwis11437992002-04-12 09:54:03 +000013764
Martin v. Löwiseba40652007-08-30 20:10:57 +000013765{ echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13766echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000013767if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13768 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +000013769else
Martin v. Löwis11437992002-04-12 09:54:03 +000013770 ac_check_lib_save_LIBS=$LIBS
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +000013771LIBS="-ldld $LIBS"
Martin v. Löwis11437992002-04-12 09:54:03 +000013772cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000013773/* confdefs.h. */
13774_ACEOF
13775cat confdefs.h >>conftest.$ac_ext
13776cat >>conftest.$ac_ext <<_ACEOF
13777/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000013778
Martin v. Löwiseba40652007-08-30 20:10:57 +000013779/* Override any GCC internal prototype to avoid an error.
13780 Use char because int might match the return type of a GCC
13781 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +000013782#ifdef __cplusplus
13783extern "C"
13784#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000013785char shl_load ();
Martin v. Löwis11437992002-04-12 09:54:03 +000013786int
13787main ()
13788{
Martin v. Löwiseba40652007-08-30 20:10:57 +000013789return shl_load ();
Martin v. Löwis11437992002-04-12 09:54:03 +000013790 ;
13791 return 0;
13792}
13793_ACEOF
13794rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000013795if { (ac_try="$ac_link"
13796case "(($ac_try" in
13797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13798 *) ac_try_echo=$ac_try;;
13799esac
13800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13801 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000013802 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000013803 grep -v '^ *+' conftest.er1 >conftest.err
13804 rm -f conftest.er1
13805 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000013806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000013807 (exit $ac_status); } && {
13808 test -z "$ac_c_werror_flag" ||
13809 test ! -s conftest.err
13810 } && test -s conftest$ac_exeext &&
13811 $as_test_x conftest$ac_exeext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000013812 ac_cv_lib_dld_shl_load=yes
Guido van Rossum76be6ed1995-01-02 18:33:54 +000013813else
Martin v. Löwis11437992002-04-12 09:54:03 +000013814 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000013815sed 's/^/| /' conftest.$ac_ext >&5
13816
Martin v. Löwiseba40652007-08-30 20:10:57 +000013817 ac_cv_lib_dld_shl_load=no
Guido van Rossum627b2d71993-12-24 10:39:16 +000013818fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000013819
13820rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000013821 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000013822LIBS=$ac_check_lib_save_LIBS
Guido van Rossum627b2d71993-12-24 10:39:16 +000013823fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000013824{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13825echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000013826if test $ac_cv_lib_dld_shl_load = yes; then
13827 cat >>confdefs.h <<_ACEOF
13828#define HAVE_LIBDLD 1
13829_ACEOF
Guido van Rossum627b2d71993-12-24 10:39:16 +000013830
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +000013831 LIBS="-ldld $LIBS"
Guido van Rossum76be6ed1995-01-02 18:33:54 +000013832
Guido van Rossum76be6ed1995-01-02 18:33:54 +000013833fi
13834 # Dynamic linking for HP-UX
Martin v. Löwis519adae2003-09-20 10:47:47 +000013835
Ronald Oussoren79f90492009-01-02 10:44:46 +000013836# only check for sem_init if thread support is requested
Martin v. Löwis519adae2003-09-20 10:47:47 +000013837if test "$with_threads" = "yes" -o -z "$with_threads"; then
Martin v. Löwiseba40652007-08-30 20:10:57 +000013838 { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
13839echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
Martin v. Löwis82c19a72002-10-06 11:48:09 +000013840if test "${ac_cv_search_sem_init+set}" = set; then
Martin v. Löwis11437992002-04-12 09:54:03 +000013841 echo $ECHO_N "(cached) $ECHO_C" >&6
Martin v. Löwis41933dd2002-03-21 15:10:58 +000013842else
Martin v. Löwis82c19a72002-10-06 11:48:09 +000013843 ac_func_search_save_LIBS=$LIBS
Martin v. Löwis11437992002-04-12 09:54:03 +000013844cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000013845/* confdefs.h. */
13846_ACEOF
13847cat confdefs.h >>conftest.$ac_ext
13848cat >>conftest.$ac_ext <<_ACEOF
13849/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000013850
Martin v. Löwiseba40652007-08-30 20:10:57 +000013851/* Override any GCC internal prototype to avoid an error.
13852 Use char because int might match the return type of a GCC
13853 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +000013854#ifdef __cplusplus
13855extern "C"
13856#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000013857char sem_init ();
Martin v. Löwis11437992002-04-12 09:54:03 +000013858int
13859main ()
13860{
Martin v. Löwiseba40652007-08-30 20:10:57 +000013861return sem_init ();
Martin v. Löwis11437992002-04-12 09:54:03 +000013862 ;
13863 return 0;
13864}
13865_ACEOF
Martin v. Löwiseba40652007-08-30 20:10:57 +000013866for ac_lib in '' pthread rt posix4; do
13867 if test -z "$ac_lib"; then
13868 ac_res="none required"
13869 else
13870 ac_res=-l$ac_lib
Skip Montanaro89e975f2007-08-22 19:05:21 +000013871 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Martin v. Löwiseba40652007-08-30 20:10:57 +000013872 fi
13873 rm -f conftest.$ac_objext conftest$ac_exeext
13874if { (ac_try="$ac_link"
13875case "(($ac_try" in
13876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13877 *) ac_try_echo=$ac_try;;
13878esac
13879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13880 (eval "$ac_link") 2>conftest.er1
Skip Montanaro89e975f2007-08-22 19:05:21 +000013881 ac_status=$?
13882 grep -v '^ *+' conftest.er1 >conftest.err
13883 rm -f conftest.er1
13884 cat conftest.err >&5
13885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000013886 (exit $ac_status); } && {
13887 test -z "$ac_c_werror_flag" ||
13888 test ! -s conftest.err
13889 } && test -s conftest$ac_exeext &&
13890 $as_test_x conftest$ac_exeext; then
13891 ac_cv_search_sem_init=$ac_res
Brett Cannon19fab762007-06-02 03:02:29 +000013892else
Skip Montanaro89e975f2007-08-22 19:05:21 +000013893 echo "$as_me: failed program was:" >&5
13894sed 's/^/| /' conftest.$ac_ext >&5
13895
Martin v. Löwiseba40652007-08-30 20:10:57 +000013896
Brett Cannon19fab762007-06-02 03:02:29 +000013897fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000013898
13899rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13900 conftest$ac_exeext
13901 if test "${ac_cv_search_sem_init+set}" = set; then
13902 break
Skip Montanaro89e975f2007-08-22 19:05:21 +000013903fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000013904done
13905if test "${ac_cv_search_sem_init+set}" = set; then
13906 :
13907else
13908 ac_cv_search_sem_init=no
13909fi
13910rm conftest.$ac_ext
Martin v. Löwis82c19a72002-10-06 11:48:09 +000013911LIBS=$ac_func_search_save_LIBS
13912fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000013913{ echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
13914echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
13915ac_res=$ac_cv_search_sem_init
13916if test "$ac_res" != no; then
13917 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Martin v. Löwis41933dd2002-03-21 15:10:58 +000013918
Martin v. Löwis41933dd2002-03-21 15:10:58 +000013919fi
Martin v. Löwisd3545ec2003-05-03 11:25:43 +000013920 # 'Real Time' functions on Solaris
Martin v. Löwis519adae2003-09-20 10:47:47 +000013921 # posix4 on Solaris 2.6
13922 # pthread (first!) on Linux
13923fi
13924
Martin v. Löwis19d17342003-06-14 21:03:05 +000013925# check if we need libintl for locale functions
Martin v. Löwiseba40652007-08-30 20:10:57 +000013926{ echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
13927echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6; }
Martin v. Löwis19d17342003-06-14 21:03:05 +000013928if test "${ac_cv_lib_intl_textdomain+set}" = set; then
13929 echo $ECHO_N "(cached) $ECHO_C" >&6
13930else
13931 ac_check_lib_save_LIBS=$LIBS
13932LIBS="-lintl $LIBS"
13933cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000013934/* confdefs.h. */
13935_ACEOF
13936cat confdefs.h >>conftest.$ac_ext
13937cat >>conftest.$ac_ext <<_ACEOF
13938/* end confdefs.h. */
Martin v. Löwis19d17342003-06-14 21:03:05 +000013939
Martin v. Löwiseba40652007-08-30 20:10:57 +000013940/* Override any GCC internal prototype to avoid an error.
13941 Use char because int might match the return type of a GCC
13942 builtin and then its argument prototype would still apply. */
Martin v. Löwis19d17342003-06-14 21:03:05 +000013943#ifdef __cplusplus
13944extern "C"
13945#endif
Martin v. Löwis19d17342003-06-14 21:03:05 +000013946char textdomain ();
Martin v. Löwis19d17342003-06-14 21:03:05 +000013947int
13948main ()
13949{
Martin v. Löwiseba40652007-08-30 20:10:57 +000013950return textdomain ();
Martin v. Löwis19d17342003-06-14 21:03:05 +000013951 ;
13952 return 0;
13953}
13954_ACEOF
13955rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000013956if { (ac_try="$ac_link"
13957case "(($ac_try" in
13958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13959 *) ac_try_echo=$ac_try;;
13960esac
13961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13962 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis19d17342003-06-14 21:03:05 +000013963 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000013964 grep -v '^ *+' conftest.er1 >conftest.err
13965 rm -f conftest.er1
13966 cat conftest.err >&5
Martin v. Löwis19d17342003-06-14 21:03:05 +000013967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000013968 (exit $ac_status); } && {
13969 test -z "$ac_c_werror_flag" ||
13970 test ! -s conftest.err
13971 } && test -s conftest$ac_exeext &&
13972 $as_test_x conftest$ac_exeext; then
Martin v. Löwis19d17342003-06-14 21:03:05 +000013973 ac_cv_lib_intl_textdomain=yes
13974else
13975 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000013976sed 's/^/| /' conftest.$ac_ext >&5
13977
Martin v. Löwiseba40652007-08-30 20:10:57 +000013978 ac_cv_lib_intl_textdomain=no
Martin v. Löwis19d17342003-06-14 21:03:05 +000013979fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000013980
13981rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000013982 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis19d17342003-06-14 21:03:05 +000013983LIBS=$ac_check_lib_save_LIBS
13984fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000013985{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
13986echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6; }
Martin v. Löwis19d17342003-06-14 21:03:05 +000013987if test $ac_cv_lib_intl_textdomain = yes; then
13988
13989cat >>confdefs.h <<\_ACEOF
13990#define WITH_LIBINTL 1
13991_ACEOF
13992
13993fi
13994
Guido van Rossum0eefa3f1999-11-16 15:57:37 +000013995
13996# checks for system dependent C++ extensions support
13997case "$ac_sys_system" in
Martin v. Löwiseba40652007-08-30 20:10:57 +000013998 AIX*) { echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
13999echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000014000 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000014001/* confdefs.h. */
14002_ACEOF
14003cat confdefs.h >>conftest.$ac_ext
14004cat >>conftest.$ac_ext <<_ACEOF
14005/* end confdefs.h. */
Guido van Rossum0eefa3f1999-11-16 15:57:37 +000014006#include "/usr/lpp/xlC/include/load.h"
Martin v. Löwis11437992002-04-12 09:54:03 +000014007int
14008main ()
14009{
Guido van Rossum0eefa3f1999-11-16 15:57:37 +000014010loadAndInit("", 0, "")
Martin v. Löwis11437992002-04-12 09:54:03 +000014011 ;
14012 return 0;
14013}
14014_ACEOF
14015rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000014016if { (ac_try="$ac_link"
14017case "(($ac_try" in
14018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14019 *) ac_try_echo=$ac_try;;
14020esac
14021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14022 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000014023 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000014024 grep -v '^ *+' conftest.er1 >conftest.err
14025 rm -f conftest.er1
14026 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000014027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000014028 (exit $ac_status); } && {
14029 test -z "$ac_c_werror_flag" ||
14030 test ! -s conftest.err
14031 } && test -s conftest$ac_exeext &&
14032 $as_test_x conftest$ac_exeext; then
Guido van Rossum0eefa3f1999-11-16 15:57:37 +000014033
Martin v. Löwis11437992002-04-12 09:54:03 +000014034cat >>confdefs.h <<\_ACEOF
14035#define AIX_GENUINE_CPLUSPLUS 1
14036_ACEOF
14037
Martin v. Löwiseba40652007-08-30 20:10:57 +000014038 { echo "$as_me:$LINENO: result: yes" >&5
14039echo "${ECHO_T}yes" >&6; }
Guido van Rossum0eefa3f1999-11-16 15:57:37 +000014040else
Martin v. Löwis11437992002-04-12 09:54:03 +000014041 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000014042sed 's/^/| /' conftest.$ac_ext >&5
14043
Martin v. Löwiseba40652007-08-30 20:10:57 +000014044 { echo "$as_me:$LINENO: result: no" >&5
14045echo "${ECHO_T}no" >&6; }
Guido van Rossum0eefa3f1999-11-16 15:57:37 +000014046fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000014047
14048rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000014049 conftest$ac_exeext conftest.$ac_ext;;
Guido van Rossum0eefa3f1999-11-16 15:57:37 +000014050 *) ;;
14051esac
14052
Guido van Rossum70c7f481998-03-26 18:44:10 +000014053# Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
Guido van Rossumec95c7b1998-08-04 17:59:56 +000014054# BeOS' sockets are stashed in libnet.
Martin v. Löwiseba40652007-08-30 20:10:57 +000014055{ echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
14056echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000014057if test "${ac_cv_lib_nsl_t_open+set}" = set; then
14058 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossum79dddcb1995-01-12 12:25:42 +000014059else
Martin v. Löwis11437992002-04-12 09:54:03 +000014060 ac_check_lib_save_LIBS=$LIBS
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +000014061LIBS="-lnsl $LIBS"
Martin v. Löwis11437992002-04-12 09:54:03 +000014062cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000014063/* confdefs.h. */
14064_ACEOF
14065cat confdefs.h >>conftest.$ac_ext
14066cat >>conftest.$ac_ext <<_ACEOF
14067/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000014068
Martin v. Löwiseba40652007-08-30 20:10:57 +000014069/* Override any GCC internal prototype to avoid an error.
14070 Use char because int might match the return type of a GCC
14071 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +000014072#ifdef __cplusplus
14073extern "C"
14074#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000014075char t_open ();
Martin v. Löwis11437992002-04-12 09:54:03 +000014076int
14077main ()
14078{
Martin v. Löwiseba40652007-08-30 20:10:57 +000014079return t_open ();
Martin v. Löwis11437992002-04-12 09:54:03 +000014080 ;
14081 return 0;
14082}
14083_ACEOF
14084rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000014085if { (ac_try="$ac_link"
14086case "(($ac_try" in
14087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14088 *) ac_try_echo=$ac_try;;
14089esac
14090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14091 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000014092 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000014093 grep -v '^ *+' conftest.er1 >conftest.err
14094 rm -f conftest.er1
14095 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000014096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000014097 (exit $ac_status); } && {
14098 test -z "$ac_c_werror_flag" ||
14099 test ! -s conftest.err
14100 } && test -s conftest$ac_exeext &&
14101 $as_test_x conftest$ac_exeext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000014102 ac_cv_lib_nsl_t_open=yes
Guido van Rossum79dddcb1995-01-12 12:25:42 +000014103else
Martin v. Löwis11437992002-04-12 09:54:03 +000014104 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000014105sed 's/^/| /' conftest.$ac_ext >&5
14106
Martin v. Löwiseba40652007-08-30 20:10:57 +000014107 ac_cv_lib_nsl_t_open=no
Guido van Rossum79dddcb1995-01-12 12:25:42 +000014108fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000014109
14110rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000014111 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000014112LIBS=$ac_check_lib_save_LIBS
Guido van Rossum79dddcb1995-01-12 12:25:42 +000014113fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000014114{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
14115echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000014116if test $ac_cv_lib_nsl_t_open = yes; then
Guido van Rossum79dddcb1995-01-12 12:25:42 +000014117 LIBS="-lnsl $LIBS"
Guido van Rossum79dddcb1995-01-12 12:25:42 +000014118fi
Guido van Rossum0ddb0281995-01-17 16:46:14 +000014119 # SVR4
Martin v. Löwiseba40652007-08-30 20:10:57 +000014120{ echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
14121echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000014122if test "${ac_cv_lib_socket_socket+set}" = set; then
14123 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +000014124else
Martin v. Löwis11437992002-04-12 09:54:03 +000014125 ac_check_lib_save_LIBS=$LIBS
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +000014126LIBS="-lsocket $LIBS $LIBS"
Martin v. Löwis11437992002-04-12 09:54:03 +000014127cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000014128/* confdefs.h. */
14129_ACEOF
14130cat confdefs.h >>conftest.$ac_ext
14131cat >>conftest.$ac_ext <<_ACEOF
14132/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000014133
Martin v. Löwiseba40652007-08-30 20:10:57 +000014134/* Override any GCC internal prototype to avoid an error.
14135 Use char because int might match the return type of a GCC
14136 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +000014137#ifdef __cplusplus
14138extern "C"
14139#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000014140char socket ();
Martin v. Löwis11437992002-04-12 09:54:03 +000014141int
14142main ()
14143{
Martin v. Löwiseba40652007-08-30 20:10:57 +000014144return socket ();
Martin v. Löwis11437992002-04-12 09:54:03 +000014145 ;
14146 return 0;
14147}
14148_ACEOF
14149rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000014150if { (ac_try="$ac_link"
14151case "(($ac_try" in
14152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14153 *) ac_try_echo=$ac_try;;
14154esac
14155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14156 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000014157 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000014158 grep -v '^ *+' conftest.er1 >conftest.err
14159 rm -f conftest.er1
14160 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000014161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000014162 (exit $ac_status); } && {
14163 test -z "$ac_c_werror_flag" ||
14164 test ! -s conftest.err
14165 } && test -s conftest$ac_exeext &&
14166 $as_test_x conftest$ac_exeext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000014167 ac_cv_lib_socket_socket=yes
Guido van Rossumec95c7b1998-08-04 17:59:56 +000014168else
Martin v. Löwis11437992002-04-12 09:54:03 +000014169 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000014170sed 's/^/| /' conftest.$ac_ext >&5
14171
Martin v. Löwiseba40652007-08-30 20:10:57 +000014172 ac_cv_lib_socket_socket=no
Guido van Rossumec95c7b1998-08-04 17:59:56 +000014173fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000014174
14175rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000014176 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000014177LIBS=$ac_check_lib_save_LIBS
Guido van Rossumec95c7b1998-08-04 17:59:56 +000014178fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000014179{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
14180echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000014181if test $ac_cv_lib_socket_socket = yes; then
Guido van Rossumad678af1998-10-02 14:42:15 +000014182 LIBS="-lsocket $LIBS"
Guido van Rossumad678af1998-10-02 14:42:15 +000014183fi
14184 # SVR4 sockets
Skip Montanarob9949db2004-01-17 04:04:13 +000014185
Jeremy Hyltoncb25d5e2000-07-27 21:23:28 +000014186case "$ac_sys_system" in
14187BeOS*)
Martin v. Löwiseba40652007-08-30 20:10:57 +000014188{ echo "$as_me:$LINENO: checking for socket in -lnet" >&5
14189echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000014190if test "${ac_cv_lib_net_socket+set}" = set; then
14191 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossumad678af1998-10-02 14:42:15 +000014192else
Martin v. Löwis11437992002-04-12 09:54:03 +000014193 ac_check_lib_save_LIBS=$LIBS
Guido van Rossumad678af1998-10-02 14:42:15 +000014194LIBS="-lnet $LIBS $LIBS"
Martin v. Löwis11437992002-04-12 09:54:03 +000014195cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000014196/* confdefs.h. */
14197_ACEOF
14198cat confdefs.h >>conftest.$ac_ext
14199cat >>conftest.$ac_ext <<_ACEOF
14200/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000014201
Martin v. Löwiseba40652007-08-30 20:10:57 +000014202/* Override any GCC internal prototype to avoid an error.
14203 Use char because int might match the return type of a GCC
14204 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +000014205#ifdef __cplusplus
14206extern "C"
14207#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000014208char socket ();
Martin v. Löwis11437992002-04-12 09:54:03 +000014209int
14210main ()
14211{
Martin v. Löwiseba40652007-08-30 20:10:57 +000014212return socket ();
Martin v. Löwis11437992002-04-12 09:54:03 +000014213 ;
14214 return 0;
14215}
14216_ACEOF
14217rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000014218if { (ac_try="$ac_link"
14219case "(($ac_try" in
14220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14221 *) ac_try_echo=$ac_try;;
14222esac
14223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14224 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000014225 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000014226 grep -v '^ *+' conftest.er1 >conftest.err
14227 rm -f conftest.er1
14228 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000014229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000014230 (exit $ac_status); } && {
14231 test -z "$ac_c_werror_flag" ||
14232 test ! -s conftest.err
14233 } && test -s conftest$ac_exeext &&
14234 $as_test_x conftest$ac_exeext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000014235 ac_cv_lib_net_socket=yes
Guido van Rossumad678af1998-10-02 14:42:15 +000014236else
Martin v. Löwis11437992002-04-12 09:54:03 +000014237 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000014238sed 's/^/| /' conftest.$ac_ext >&5
14239
Martin v. Löwiseba40652007-08-30 20:10:57 +000014240 ac_cv_lib_net_socket=no
Guido van Rossumad678af1998-10-02 14:42:15 +000014241fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000014242
14243rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000014244 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000014245LIBS=$ac_check_lib_save_LIBS
Guido van Rossumad678af1998-10-02 14:42:15 +000014246fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000014247{ echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
14248echo "${ECHO_T}$ac_cv_lib_net_socket" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000014249if test $ac_cv_lib_net_socket = yes; then
Guido van Rossumec95c7b1998-08-04 17:59:56 +000014250 LIBS="-lnet $LIBS"
Guido van Rossumec95c7b1998-08-04 17:59:56 +000014251fi
14252 # BeOS
14253;;
14254esac
Guido van Rossum70c7f481998-03-26 18:44:10 +000014255
Martin v. Löwiseba40652007-08-30 20:10:57 +000014256{ echo "$as_me:$LINENO: checking for --with-libs" >&5
14257echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000014258
Martin v. Löwiseba40652007-08-30 20:10:57 +000014259# Check whether --with-libs was given.
Guido van Rossuma68acba1996-07-31 17:36:39 +000014260if test "${with_libs+set}" = set; then
Martin v. Löwiseba40652007-08-30 20:10:57 +000014261 withval=$with_libs;
14262{ echo "$as_me:$LINENO: result: $withval" >&5
14263echo "${ECHO_T}$withval" >&6; }
Guido van Rossuma68acba1996-07-31 17:36:39 +000014264LIBS="$withval $LIBS"
14265
14266else
Martin v. Löwiseba40652007-08-30 20:10:57 +000014267 { echo "$as_me:$LINENO: result: no" >&5
14268echo "${ECHO_T}no" >&6; }
14269fi
14270
Guido van Rossum7f43da71994-08-01 12:15:30 +000014271
Martin v. Löwis9176fc12006-04-11 11:12:43 +000014272# Check for use of the system libffi library
Martin v. Löwiseba40652007-08-30 20:10:57 +000014273{ echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
14274echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6; }
Martin v. Löwis9176fc12006-04-11 11:12:43 +000014275
Martin v. Löwiseba40652007-08-30 20:10:57 +000014276# Check whether --with-system_ffi was given.
Martin v. Löwis9176fc12006-04-11 11:12:43 +000014277if test "${with_system_ffi+set}" = set; then
Martin v. Löwiseba40652007-08-30 20:10:57 +000014278 withval=$with_system_ffi;
14279fi
Martin v. Löwis9176fc12006-04-11 11:12:43 +000014280
Martin v. Löwis9176fc12006-04-11 11:12:43 +000014281
Martin v. Löwiseba40652007-08-30 20:10:57 +000014282{ echo "$as_me:$LINENO: result: $with_system_ffi" >&5
14283echo "${ECHO_T}$with_system_ffi" >&6; }
Martin v. Löwis9176fc12006-04-11 11:12:43 +000014284
Benjamin Peterson867475c2009-04-29 20:36:25 +000014285# Check for --with-dbmliborder
14286{ echo "$as_me:$LINENO: checking for --with-dbmliborder" >&5
14287echo $ECHO_N "checking for --with-dbmliborder... $ECHO_C" >&6; }
14288
14289# Check whether --with-dbmliborder was given.
14290if test "${with_dbmliborder+set}" = set; then
14291 withval=$with_dbmliborder;
14292if test x$with_dbmliborder = xyes
14293then
14294{ { echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5
14295echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;}
14296 { (exit 1); exit 1; }; }
14297else
14298 for db in `echo $with_dbmliborder | sed 's/:/ /g'`; do
14299 if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb
14300 then
14301 { { echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5
14302echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;}
14303 { (exit 1); exit 1; }; }
14304 fi
14305 done
14306fi
14307fi
14308
14309{ echo "$as_me:$LINENO: result: $with_dbmliborder" >&5
14310echo "${ECHO_T}$with_dbmliborder" >&6; }
14311
Martin v. Löwis3e2c6322002-10-29 10:07:43 +000014312# Determine if signalmodule should be used.
Neil Schemenauerd32c2492001-01-24 17:25:28 +000014313
14314
Martin v. Löwiseba40652007-08-30 20:10:57 +000014315{ echo "$as_me:$LINENO: checking for --with-signal-module" >&5
14316echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000014317
Martin v. Löwiseba40652007-08-30 20:10:57 +000014318# Check whether --with-signal-module was given.
Neil Schemenauerd32c2492001-01-24 17:25:28 +000014319if test "${with_signal_module+set}" = set; then
Martin v. Löwiseba40652007-08-30 20:10:57 +000014320 withval=$with_signal_module;
14321fi
Neil Schemenauerd32c2492001-01-24 17:25:28 +000014322
14323
14324if test -z "$with_signal_module"
14325then with_signal_module="yes"
14326fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000014327{ echo "$as_me:$LINENO: result: $with_signal_module" >&5
14328echo "${ECHO_T}$with_signal_module" >&6; }
Neil Schemenauerd32c2492001-01-24 17:25:28 +000014329
14330if test "${with_signal_module}" = "yes"; then
14331 USE_SIGNAL_MODULE=""
14332 SIGNAL_OBJS=""
14333else
14334 USE_SIGNAL_MODULE="#"
14335 SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o"
14336fi
14337
Guido van Rossum3d15bd82001-01-10 18:53:48 +000014338# This is used to generate Setup.config
Guido van Rossum009f7871997-12-04 00:51:42 +000014339
Barry Warsawc0d24d82000-06-29 16:12:00 +000014340USE_THREAD_MODULE=""
Guido van Rossum009f7871997-12-04 00:51:42 +000014341
Martin v. Löwiseba40652007-08-30 20:10:57 +000014342{ echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
14343echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000014344
Guido van Rossumec2f0731997-01-22 20:54:01 +000014345
Martin v. Löwiseba40652007-08-30 20:10:57 +000014346# Check whether --with-dec-threads was given.
Guido van Rossumec2f0731997-01-22 20:54:01 +000014347if test "${with_dec_threads+set}" = set; then
Martin v. Löwiseba40652007-08-30 20:10:57 +000014348 withval=$with_dec_threads;
14349{ echo "$as_me:$LINENO: result: $withval" >&5
14350echo "${ECHO_T}$withval" >&6; }
Guido van Rossumec2f0731997-01-22 20:54:01 +000014351LDLAST=-threads
Guido van Rossumf78abae1997-01-21 22:02:36 +000014352if test "${with_thread+set}" != set; then
Guido van Rossumec2f0731997-01-22 20:54:01 +000014353 with_thread="$withval";
Guido van Rossumf78abae1997-01-21 22:02:36 +000014354fi
Guido van Rossumec2f0731997-01-22 20:54:01 +000014355else
Martin v. Löwiseba40652007-08-30 20:10:57 +000014356 { echo "$as_me:$LINENO: result: no" >&5
14357echo "${ECHO_T}no" >&6; }
14358fi
14359
Martin v. Löwis11437992002-04-12 09:54:03 +000014360
14361# Templates for things AC_DEFINEd more than once.
14362# For a single AC_DEFINE, no template is needed.
Guido van Rossumec2f0731997-01-22 20:54:01 +000014363
14364
Martin v. Löwis11437992002-04-12 09:54:03 +000014365
14366
14367
14368
14369
Martin v. Löwiseba40652007-08-30 20:10:57 +000014370{ echo "$as_me:$LINENO: checking for --with-threads" >&5
14371echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000014372
Martin v. Löwiseba40652007-08-30 20:10:57 +000014373# Check whether --with-threads was given.
Guido van Rossumec2f0731997-01-22 20:54:01 +000014374if test "${with_threads+set}" = set; then
Martin v. Löwiseba40652007-08-30 20:10:57 +000014375 withval=$with_threads;
14376fi
Guido van Rossumec2f0731997-01-22 20:54:01 +000014377
14378
Barry Warsawc0d24d82000-06-29 16:12:00 +000014379# --with-thread is deprecated, but check for it anyway
Martin v. Löwis11437992002-04-12 09:54:03 +000014380
Martin v. Löwiseba40652007-08-30 20:10:57 +000014381# Check whether --with-thread was given.
Guido van Rossum48bdbfc1996-05-28 22:53:48 +000014382if test "${with_thread+set}" = set; then
Martin v. Löwiseba40652007-08-30 20:10:57 +000014383 withval=$with_thread; with_threads=$with_thread
14384fi
14385
Barry Warsawc0d24d82000-06-29 16:12:00 +000014386
14387if test -z "$with_threads"
14388then with_threads="yes"
14389fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000014390{ echo "$as_me:$LINENO: result: $with_threads" >&5
14391echo "${ECHO_T}$with_threads" >&6; }
Barry Warsawc0d24d82000-06-29 16:12:00 +000014392
Martin v. Löwis2d7e2642002-04-05 16:50:53 +000014393
Barry Warsawc0d24d82000-06-29 16:12:00 +000014394if test "$with_threads" = "no"
14395then
14396 USE_THREAD_MODULE="#"
Martin v. Löwisa5f73f92001-10-15 08:06:29 +000014397elif test "$ac_cv_pthread_is_default" = yes
14398then
Martin v. Löwis11437992002-04-12 09:54:03 +000014399 cat >>confdefs.h <<\_ACEOF
Martin v. Löwisa5f73f92001-10-15 08:06:29 +000014400#define WITH_THREAD 1
Martin v. Löwis11437992002-04-12 09:54:03 +000014401_ACEOF
Martin v. Löwisa5f73f92001-10-15 08:06:29 +000014402
Martin v. Löwisa5f73f92001-10-15 08:06:29 +000014403 # Defining _REENTRANT on system with POSIX threads should not hurt.
Martin v. Löwis11437992002-04-12 09:54:03 +000014404 cat >>confdefs.h <<\_ACEOF
Martin v. Löwisa5f73f92001-10-15 08:06:29 +000014405#define _REENTRANT 1
Martin v. Löwis11437992002-04-12 09:54:03 +000014406_ACEOF
Martin v. Löwisa5f73f92001-10-15 08:06:29 +000014407
14408 posix_threads=yes
Martin v. Löwis11437992002-04-12 09:54:03 +000014409 THREADOBJ="Python/thread.o"
Martin v. Löwis130fb172001-07-19 11:00:41 +000014410elif test "$ac_cv_kpthread" = "yes"
14411then
14412 CC="$CC -Kpthread"
Martin v. Löwis519adae2003-09-20 10:47:47 +000014413 if test "$ac_cv_cxx_thread" = "yes"; then
14414 CXX="$CXX -Kpthread"
14415 fi
Martin v. Löwis11437992002-04-12 09:54:03 +000014416 cat >>confdefs.h <<\_ACEOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +000014417#define WITH_THREAD 1
Martin v. Löwis11437992002-04-12 09:54:03 +000014418_ACEOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +000014419
Guido van Rossumd0b69ec2001-09-10 14:10:54 +000014420 posix_threads=yes
Martin v. Löwis2d7e2642002-04-05 16:50:53 +000014421 THREADOBJ="Python/thread.o"
Martin v. Löwis5f433f02003-05-05 05:05:30 +000014422elif test "$ac_cv_kthread" = "yes"
14423then
14424 CC="$CC -Kthread"
Martin v. Löwis519adae2003-09-20 10:47:47 +000014425 if test "$ac_cv_cxx_thread" = "yes"; then
14426 CXX="$CXX -Kthread"
14427 fi
Martin v. Löwis5f433f02003-05-05 05:05:30 +000014428 cat >>confdefs.h <<\_ACEOF
14429#define WITH_THREAD 1
14430_ACEOF
14431
14432 posix_threads=yes
14433 THREADOBJ="Python/thread.o"
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000014434elif test "$ac_cv_pthread" = "yes"
14435then
14436 CC="$CC -pthread"
Martin v. Löwis519adae2003-09-20 10:47:47 +000014437 if test "$ac_cv_cxx_thread" = "yes"; then
14438 CXX="$CXX -pthread"
14439 fi
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000014440 cat >>confdefs.h <<\_ACEOF
14441#define WITH_THREAD 1
14442_ACEOF
14443
14444 posix_threads=yes
14445 THREADOBJ="Python/thread.o"
Martin v. Löwis130fb172001-07-19 11:00:41 +000014446else
14447 if test ! -z "$with_threads" -a -d "$with_threads"
14448 then LDFLAGS="$LDFLAGS -L$with_threads"
14449 fi
14450 if test ! -z "$withval" -a -d "$withval"
14451 then LDFLAGS="$LDFLAGS -L$withval"
14452 fi
Martin v. Löwis69c0ff32001-10-15 14:34:42 +000014453
14454 # According to the POSIX spec, a pthreads implementation must
Matthias Klosea2542be2004-08-16 11:35:51 +000014455 # define _POSIX_THREADS in unistd.h. Some apparently don't
14456 # (e.g. gnu pth with pthread emulation)
Martin v. Löwiseba40652007-08-30 20:10:57 +000014457 { echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
14458echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000014459 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000014460/* confdefs.h. */
14461_ACEOF
14462cat confdefs.h >>conftest.$ac_ext
14463cat >>conftest.$ac_ext <<_ACEOF
14464/* end confdefs.h. */
Neal Norwitz6eb37f02003-02-23 23:28:15 +000014465
Martin v. Löwis69c0ff32001-10-15 14:34:42 +000014466#include <unistd.h>
Neal Norwitz6eb37f02003-02-23 23:28:15 +000014467#ifdef _POSIX_THREADS
14468yes
14469#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000014470
14471_ACEOF
Martin v. Löwis69c0ff32001-10-15 14:34:42 +000014472if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Skip Montanaro6dead952003-09-25 14:50:04 +000014473 $EGREP "yes" >/dev/null 2>&1; then
Martin v. Löwis69c0ff32001-10-15 14:34:42 +000014474 unistd_defines_pthreads=yes
14475else
Martin v. Löwis69c0ff32001-10-15 14:34:42 +000014476 unistd_defines_pthreads=no
14477fi
14478rm -f conftest*
14479
Martin v. Löwiseba40652007-08-30 20:10:57 +000014480 { echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
14481echo "${ECHO_T}$unistd_defines_pthreads" >&6; }
Martin v. Löwis69c0ff32001-10-15 14:34:42 +000014482
Martin v. Löwis11437992002-04-12 09:54:03 +000014483 cat >>confdefs.h <<\_ACEOF
Guido van Rossum9caf77a1996-08-01 00:52:26 +000014484#define _REENTRANT 1
Martin v. Löwis11437992002-04-12 09:54:03 +000014485_ACEOF
Guido van Rossum9caf77a1996-08-01 00:52:26 +000014486
Martin v. Löwis11437992002-04-12 09:54:03 +000014487 if test "${ac_cv_header_cthreads_h+set}" = set; then
Martin v. Löwiseba40652007-08-30 20:10:57 +000014488 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
14489echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000014490if test "${ac_cv_header_cthreads_h+set}" = set; then
14491 echo $ECHO_N "(cached) $ECHO_C" >&6
14492fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000014493{ echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
14494echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
Guido van Rossum7b3853f1996-07-30 18:09:35 +000014495else
Martin v. Löwis11437992002-04-12 09:54:03 +000014496 # Is the header compilable?
Martin v. Löwiseba40652007-08-30 20:10:57 +000014497{ echo "$as_me:$LINENO: checking cthreads.h usability" >&5
14498echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000014499cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000014500/* confdefs.h. */
14501_ACEOF
14502cat confdefs.h >>conftest.$ac_ext
14503cat >>conftest.$ac_ext <<_ACEOF
14504/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000014505$ac_includes_default
14506#include <cthreads.h>
14507_ACEOF
14508rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000014509if { (ac_try="$ac_compile"
14510case "(($ac_try" in
14511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14512 *) ac_try_echo=$ac_try;;
14513esac
14514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14515 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000014516 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000014517 grep -v '^ *+' conftest.er1 >conftest.err
14518 rm -f conftest.er1
14519 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000014520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000014521 (exit $ac_status); } && {
14522 test -z "$ac_c_werror_flag" ||
14523 test ! -s conftest.err
14524 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000014525 ac_header_compiler=yes
14526else
14527 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000014528sed 's/^/| /' conftest.$ac_ext >&5
14529
Martin v. Löwiseba40652007-08-30 20:10:57 +000014530 ac_header_compiler=no
Martin v. Löwis11437992002-04-12 09:54:03 +000014531fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000014532
14533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14534{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14535echo "${ECHO_T}$ac_header_compiler" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000014536
14537# Is the header present?
Martin v. Löwiseba40652007-08-30 20:10:57 +000014538{ echo "$as_me:$LINENO: checking cthreads.h presence" >&5
14539echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000014540cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000014541/* confdefs.h. */
14542_ACEOF
14543cat confdefs.h >>conftest.$ac_ext
14544cat >>conftest.$ac_ext <<_ACEOF
14545/* end confdefs.h. */
Martin v. Löwisa6e97582002-01-01 18:41:33 +000014546#include <cthreads.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000014547_ACEOF
Martin v. Löwiseba40652007-08-30 20:10:57 +000014548if { (ac_try="$ac_cpp conftest.$ac_ext"
14549case "(($ac_try" in
14550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14551 *) ac_try_echo=$ac_try;;
14552esac
14553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14554 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000014555 ac_status=$?
Skip Montanaro6dead952003-09-25 14:50:04 +000014556 grep -v '^ *+' conftest.er1 >conftest.err
Martin v. Löwis11437992002-04-12 09:54:03 +000014557 rm -f conftest.er1
14558 cat conftest.err >&5
14559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000014560 (exit $ac_status); } >/dev/null && {
14561 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14562 test ! -s conftest.err
14563 }; then
Martin v. Löwis11437992002-04-12 09:54:03 +000014564 ac_header_preproc=yes
14565else
14566 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000014567sed 's/^/| /' conftest.$ac_ext >&5
14568
Martin v. Löwis11437992002-04-12 09:54:03 +000014569 ac_header_preproc=no
Guido van Rossum7b3853f1996-07-30 18:09:35 +000014570fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000014571
Martin v. Löwis11437992002-04-12 09:54:03 +000014572rm -f conftest.err conftest.$ac_ext
Martin v. Löwiseba40652007-08-30 20:10:57 +000014573{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14574echo "${ECHO_T}$ac_header_preproc" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000014575
14576# So? What about this header?
Skip Montanarof0d5f792004-08-15 14:08:23 +000014577case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14578 yes:no: )
Martin v. Löwis11437992002-04-12 09:54:03 +000014579 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14580echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
Skip Montanarof0d5f792004-08-15 14:08:23 +000014581 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
14582echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
14583 ac_header_preproc=yes
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000014584 ;;
Skip Montanarof0d5f792004-08-15 14:08:23 +000014585 no:yes:* )
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000014586 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
14587echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
Skip Montanarof0d5f792004-08-15 14:08:23 +000014588 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
14589echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
14590 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
14591echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
14592 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
14593echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000014594 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
14595echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
Skip Montanarof0d5f792004-08-15 14:08:23 +000014596 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
14597echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
Martin v. Löwiseba40652007-08-30 20:10:57 +000014598 ( cat <<\_ASBOX
Georg Brandl464432d2009-05-20 18:24:08 +000014599## -------------------------------------- ##
14600## Report this to http://bugs.python.org/ ##
14601## -------------------------------------- ##
Skip Montanaro6dead952003-09-25 14:50:04 +000014602_ASBOX
Martin v. Löwiseba40652007-08-30 20:10:57 +000014603 ) | sed "s/^/$as_me: WARNING: /" >&2
Skip Montanaro6dead952003-09-25 14:50:04 +000014604 ;;
Martin v. Löwis11437992002-04-12 09:54:03 +000014605esac
Martin v. Löwiseba40652007-08-30 20:10:57 +000014606{ echo "$as_me:$LINENO: checking for cthreads.h" >&5
14607echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000014608if test "${ac_cv_header_cthreads_h+set}" = set; then
14609 echo $ECHO_N "(cached) $ECHO_C" >&6
14610else
14611 ac_cv_header_cthreads_h=$ac_header_preproc
Guido van Rossum7b3853f1996-07-30 18:09:35 +000014612fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000014613{ echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
14614echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000014615
14616fi
14617if test $ac_cv_header_cthreads_h = yes; then
14618 cat >>confdefs.h <<\_ACEOF
Guido van Rossum7b3853f1996-07-30 18:09:35 +000014619#define WITH_THREAD 1
Martin v. Löwis11437992002-04-12 09:54:03 +000014620_ACEOF
Guido van Rossum7b3853f1996-07-30 18:09:35 +000014621
Martin v. Löwis11437992002-04-12 09:54:03 +000014622 cat >>confdefs.h <<\_ACEOF
Guido van Rossum7b3853f1996-07-30 18:09:35 +000014623#define C_THREADS 1
Martin v. Löwis11437992002-04-12 09:54:03 +000014624_ACEOF
Guido van Rossum7b3853f1996-07-30 18:09:35 +000014625
Martin v. Löwis11437992002-04-12 09:54:03 +000014626
14627cat >>confdefs.h <<\_ACEOF
Martin v. Löwisa6e97582002-01-01 18:41:33 +000014628#define HURD_C_THREADS 1
Martin v. Löwis11437992002-04-12 09:54:03 +000014629_ACEOF
Martin v. Löwisa6e97582002-01-01 18:41:33 +000014630
14631 LIBS="$LIBS -lthreads"
Martin v. Löwis2d7e2642002-04-05 16:50:53 +000014632 THREADOBJ="Python/thread.o"
Martin v. Löwisa6e97582002-01-01 18:41:33 +000014633else
Martin v. Löwisa6e97582002-01-01 18:41:33 +000014634
Martin v. Löwis11437992002-04-12 09:54:03 +000014635 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
Martin v. Löwiseba40652007-08-30 20:10:57 +000014636 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
14637echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000014638if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14639 echo $ECHO_N "(cached) $ECHO_C" >&6
14640fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000014641{ echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
14642echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
Martin v. Löwisa6e97582002-01-01 18:41:33 +000014643else
Martin v. Löwis11437992002-04-12 09:54:03 +000014644 # Is the header compilable?
Martin v. Löwiseba40652007-08-30 20:10:57 +000014645{ echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
14646echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000014647cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000014648/* confdefs.h. */
14649_ACEOF
14650cat confdefs.h >>conftest.$ac_ext
14651cat >>conftest.$ac_ext <<_ACEOF
14652/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000014653$ac_includes_default
14654#include <mach/cthreads.h>
14655_ACEOF
14656rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000014657if { (ac_try="$ac_compile"
14658case "(($ac_try" in
14659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14660 *) ac_try_echo=$ac_try;;
14661esac
14662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14663 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000014664 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000014665 grep -v '^ *+' conftest.er1 >conftest.err
14666 rm -f conftest.er1
14667 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000014668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000014669 (exit $ac_status); } && {
14670 test -z "$ac_c_werror_flag" ||
14671 test ! -s conftest.err
14672 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000014673 ac_header_compiler=yes
14674else
14675 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000014676sed 's/^/| /' conftest.$ac_ext >&5
14677
Martin v. Löwiseba40652007-08-30 20:10:57 +000014678 ac_header_compiler=no
Martin v. Löwis11437992002-04-12 09:54:03 +000014679fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000014680
14681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14682{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14683echo "${ECHO_T}$ac_header_compiler" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000014684
14685# Is the header present?
Martin v. Löwiseba40652007-08-30 20:10:57 +000014686{ echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
14687echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000014688cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000014689/* confdefs.h. */
14690_ACEOF
14691cat confdefs.h >>conftest.$ac_ext
14692cat >>conftest.$ac_ext <<_ACEOF
14693/* end confdefs.h. */
Martin v. Löwisa6e97582002-01-01 18:41:33 +000014694#include <mach/cthreads.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000014695_ACEOF
Martin v. Löwiseba40652007-08-30 20:10:57 +000014696if { (ac_try="$ac_cpp conftest.$ac_ext"
14697case "(($ac_try" in
14698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14699 *) ac_try_echo=$ac_try;;
14700esac
14701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14702 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000014703 ac_status=$?
Skip Montanaro6dead952003-09-25 14:50:04 +000014704 grep -v '^ *+' conftest.er1 >conftest.err
Martin v. Löwis11437992002-04-12 09:54:03 +000014705 rm -f conftest.er1
14706 cat conftest.err >&5
14707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000014708 (exit $ac_status); } >/dev/null && {
14709 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14710 test ! -s conftest.err
14711 }; then
Martin v. Löwis11437992002-04-12 09:54:03 +000014712 ac_header_preproc=yes
14713else
14714 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000014715sed 's/^/| /' conftest.$ac_ext >&5
14716
Martin v. Löwis11437992002-04-12 09:54:03 +000014717 ac_header_preproc=no
Martin v. Löwisa6e97582002-01-01 18:41:33 +000014718fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000014719
Martin v. Löwis11437992002-04-12 09:54:03 +000014720rm -f conftest.err conftest.$ac_ext
Martin v. Löwiseba40652007-08-30 20:10:57 +000014721{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14722echo "${ECHO_T}$ac_header_preproc" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000014723
14724# So? What about this header?
Skip Montanarof0d5f792004-08-15 14:08:23 +000014725case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14726 yes:no: )
Martin v. Löwis11437992002-04-12 09:54:03 +000014727 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14728echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
Skip Montanarof0d5f792004-08-15 14:08:23 +000014729 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
14730echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
14731 ac_header_preproc=yes
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000014732 ;;
Skip Montanarof0d5f792004-08-15 14:08:23 +000014733 no:yes:* )
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000014734 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
14735echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
Skip Montanarof0d5f792004-08-15 14:08:23 +000014736 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
14737echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
14738 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
14739echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
14740 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
14741echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000014742 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
14743echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
Skip Montanarof0d5f792004-08-15 14:08:23 +000014744 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
14745echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
Martin v. Löwiseba40652007-08-30 20:10:57 +000014746 ( cat <<\_ASBOX
Georg Brandl464432d2009-05-20 18:24:08 +000014747## -------------------------------------- ##
14748## Report this to http://bugs.python.org/ ##
14749## -------------------------------------- ##
Skip Montanaro6dead952003-09-25 14:50:04 +000014750_ASBOX
Martin v. Löwiseba40652007-08-30 20:10:57 +000014751 ) | sed "s/^/$as_me: WARNING: /" >&2
Skip Montanaro6dead952003-09-25 14:50:04 +000014752 ;;
Martin v. Löwis11437992002-04-12 09:54:03 +000014753esac
Martin v. Löwiseba40652007-08-30 20:10:57 +000014754{ echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
14755echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000014756if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14757 echo $ECHO_N "(cached) $ECHO_C" >&6
14758else
14759 ac_cv_header_mach_cthreads_h=$ac_header_preproc
Martin v. Löwisa6e97582002-01-01 18:41:33 +000014760fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000014761{ echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
14762echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000014763
14764fi
14765if test $ac_cv_header_mach_cthreads_h = yes; then
14766 cat >>confdefs.h <<\_ACEOF
Martin v. Löwisa6e97582002-01-01 18:41:33 +000014767#define WITH_THREAD 1
Martin v. Löwis11437992002-04-12 09:54:03 +000014768_ACEOF
Martin v. Löwisa6e97582002-01-01 18:41:33 +000014769
Martin v. Löwis11437992002-04-12 09:54:03 +000014770 cat >>confdefs.h <<\_ACEOF
Martin v. Löwisa6e97582002-01-01 18:41:33 +000014771#define C_THREADS 1
Martin v. Löwis11437992002-04-12 09:54:03 +000014772_ACEOF
Martin v. Löwisa6e97582002-01-01 18:41:33 +000014773
Martin v. Löwis11437992002-04-12 09:54:03 +000014774
14775cat >>confdefs.h <<\_ACEOF
Martin v. Löwisa6e97582002-01-01 18:41:33 +000014776#define MACH_C_THREADS 1
Martin v. Löwis11437992002-04-12 09:54:03 +000014777_ACEOF
Martin v. Löwisa6e97582002-01-01 18:41:33 +000014778
Martin v. Löwis2d7e2642002-04-05 16:50:53 +000014779 THREADOBJ="Python/thread.o"
Guido van Rossum7b3853f1996-07-30 18:09:35 +000014780else
Guido van Rossum7b3853f1996-07-30 18:09:35 +000014781
Martin v. Löwiseba40652007-08-30 20:10:57 +000014782 { echo "$as_me:$LINENO: checking for --with-pth" >&5
14783echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000014784
Martin v. Löwiseba40652007-08-30 20:10:57 +000014785# Check whether --with-pth was given.
Guido van Rossum9e8181b2000-09-19 00:46:46 +000014786if test "${with_pth+set}" = set; then
Martin v. Löwiseba40652007-08-30 20:10:57 +000014787 withval=$with_pth; { echo "$as_me:$LINENO: result: $withval" >&5
14788echo "${ECHO_T}$withval" >&6; }
Martin v. Löwis3e2c6322002-10-29 10:07:43 +000014789 cat >>confdefs.h <<\_ACEOF
Martin v. Löwis11437992002-04-12 09:54:03 +000014790#define WITH_THREAD 1
14791_ACEOF
14792
14793
14794cat >>confdefs.h <<\_ACEOF
Guido van Rossum9e8181b2000-09-19 00:46:46 +000014795#define HAVE_PTH 1
Martin v. Löwis11437992002-04-12 09:54:03 +000014796_ACEOF
Guido van Rossum9e8181b2000-09-19 00:46:46 +000014797
Martin v. Löwis3e2c6322002-10-29 10:07:43 +000014798 LIBS="-lpth $LIBS"
14799 THREADOBJ="Python/thread.o"
Guido van Rossum9e8181b2000-09-19 00:46:46 +000014800else
Martin v. Löwiseba40652007-08-30 20:10:57 +000014801 { echo "$as_me:$LINENO: result: no" >&5
14802echo "${ECHO_T}no" >&6; }
Martin v. Löwis8158b5a2001-10-08 13:17:28 +000014803
14804 # Just looking for pthread_create in libpthread is not enough:
14805 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
14806 # So we really have to include pthread.h, and then link.
14807 _libs=$LIBS
14808 LIBS="$LIBS -lpthread"
Martin v. Löwiseba40652007-08-30 20:10:57 +000014809 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
14810echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000014811 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000014812/* confdefs.h. */
14813_ACEOF
14814cat confdefs.h >>conftest.$ac_ext
14815cat >>conftest.$ac_ext <<_ACEOF
14816/* end confdefs.h. */
Martin v. Löwis8158b5a2001-10-08 13:17:28 +000014817#include <pthread.h>
Guido van Rossum02a1c402000-02-25 19:26:31 +000014818
Martin v. Löwis8158b5a2001-10-08 13:17:28 +000014819void * start_routine (void *arg) { exit (0); }
Martin v. Löwis11437992002-04-12 09:54:03 +000014820int
14821main ()
14822{
Martin v. Löwis8158b5a2001-10-08 13:17:28 +000014823
14824pthread_create (NULL, NULL, start_routine, NULL)
Martin v. Löwis11437992002-04-12 09:54:03 +000014825 ;
14826 return 0;
14827}
14828_ACEOF
14829rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000014830if { (ac_try="$ac_link"
14831case "(($ac_try" in
14832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14833 *) ac_try_echo=$ac_try;;
14834esac
14835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14836 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000014837 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000014838 grep -v '^ *+' conftest.er1 >conftest.err
14839 rm -f conftest.er1
14840 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000014841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000014842 (exit $ac_status); } && {
14843 test -z "$ac_c_werror_flag" ||
14844 test ! -s conftest.err
14845 } && test -s conftest$ac_exeext &&
14846 $as_test_x conftest$ac_exeext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000014847
Martin v. Löwiseba40652007-08-30 20:10:57 +000014848 { echo "$as_me:$LINENO: result: yes" >&5
14849echo "${ECHO_T}yes" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000014850 cat >>confdefs.h <<\_ACEOF
Guido van Rossum02a1c402000-02-25 19:26:31 +000014851#define WITH_THREAD 1
Martin v. Löwis11437992002-04-12 09:54:03 +000014852_ACEOF
Guido van Rossum02a1c402000-02-25 19:26:31 +000014853
Martin v. Löwis69c0ff32001-10-15 14:34:42 +000014854 posix_threads=yes
Martin v. Löwis2d7e2642002-04-05 16:50:53 +000014855 THREADOBJ="Python/thread.o"
Guido van Rossum02a1c402000-02-25 19:26:31 +000014856else
Martin v. Löwis11437992002-04-12 09:54:03 +000014857 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000014858sed 's/^/| /' conftest.$ac_ext >&5
14859
Martin v. Löwis11437992002-04-12 09:54:03 +000014860
Martin v. Löwis8158b5a2001-10-08 13:17:28 +000014861 LIBS=$_libs
Martin v. Löwiseba40652007-08-30 20:10:57 +000014862 { echo "$as_me:$LINENO: checking for pthread_detach" >&5
14863echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000014864if test "${ac_cv_func_pthread_detach+set}" = set; then
14865 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossumad678af1998-10-02 14:42:15 +000014866else
Martin v. Löwis11437992002-04-12 09:54:03 +000014867 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000014868/* confdefs.h. */
14869_ACEOF
14870cat confdefs.h >>conftest.$ac_ext
14871cat >>conftest.$ac_ext <<_ACEOF
14872/* end confdefs.h. */
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000014873/* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
14874 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14875#define pthread_detach innocuous_pthread_detach
14876
Guido van Rossumad678af1998-10-02 14:42:15 +000014877/* System header to define __stub macros and hopefully few prototypes,
Skip Montanaro6dead952003-09-25 14:50:04 +000014878 which can conflict with char pthread_detach (); below.
14879 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000014880 <limits.h> exists even on freestanding compilers. */
14881
14882#ifdef __STDC__
Skip Montanaro6dead952003-09-25 14:50:04 +000014883# include <limits.h>
14884#else
14885# include <assert.h>
14886#endif
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000014887
14888#undef pthread_detach
14889
Martin v. Löwiseba40652007-08-30 20:10:57 +000014890/* Override any GCC internal prototype to avoid an error.
14891 Use char because int might match the return type of a GCC
14892 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +000014893#ifdef __cplusplus
14894extern "C"
14895#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000014896char pthread_detach ();
Guido van Rossumad678af1998-10-02 14:42:15 +000014897/* The GNU C library defines this for functions which it implements
14898 to always fail with ENOSYS. Some functions are actually named
14899 something starting with __ and the normal name is an alias. */
Martin v. Löwiseba40652007-08-30 20:10:57 +000014900#if defined __stub_pthread_detach || defined __stub___pthread_detach
Guido van Rossumad678af1998-10-02 14:42:15 +000014901choke me
Guido van Rossumad678af1998-10-02 14:42:15 +000014902#endif
14903
Skip Montanaro6dead952003-09-25 14:50:04 +000014904int
14905main ()
14906{
Martin v. Löwiseba40652007-08-30 20:10:57 +000014907return pthread_detach ();
Martin v. Löwis11437992002-04-12 09:54:03 +000014908 ;
14909 return 0;
14910}
14911_ACEOF
14912rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000014913if { (ac_try="$ac_link"
14914case "(($ac_try" in
14915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14916 *) ac_try_echo=$ac_try;;
14917esac
14918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14919 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000014920 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000014921 grep -v '^ *+' conftest.er1 >conftest.err
14922 rm -f conftest.er1
14923 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000014924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000014925 (exit $ac_status); } && {
14926 test -z "$ac_c_werror_flag" ||
14927 test ! -s conftest.err
14928 } && test -s conftest$ac_exeext &&
14929 $as_test_x conftest$ac_exeext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000014930 ac_cv_func_pthread_detach=yes
Guido van Rossumad678af1998-10-02 14:42:15 +000014931else
Martin v. Löwis11437992002-04-12 09:54:03 +000014932 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000014933sed 's/^/| /' conftest.$ac_ext >&5
14934
Martin v. Löwiseba40652007-08-30 20:10:57 +000014935 ac_cv_func_pthread_detach=no
Guido van Rossumad678af1998-10-02 14:42:15 +000014936fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000014937
14938rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000014939 conftest$ac_exeext conftest.$ac_ext
Guido van Rossumad678af1998-10-02 14:42:15 +000014940fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000014941{ echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
14942echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000014943if test $ac_cv_func_pthread_detach = yes; then
14944 cat >>confdefs.h <<\_ACEOF
Guido van Rossumad678af1998-10-02 14:42:15 +000014945#define WITH_THREAD 1
Martin v. Löwis11437992002-04-12 09:54:03 +000014946_ACEOF
Guido van Rossumad678af1998-10-02 14:42:15 +000014947
Martin v. Löwis69c0ff32001-10-15 14:34:42 +000014948 posix_threads=yes
Martin v. Löwis2d7e2642002-04-05 16:50:53 +000014949 THREADOBJ="Python/thread.o"
Guido van Rossumad678af1998-10-02 14:42:15 +000014950else
Guido van Rossumad678af1998-10-02 14:42:15 +000014951
Martin v. Löwisf90ae202002-06-11 06:22:31 +000014952 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
Martin v. Löwiseba40652007-08-30 20:10:57 +000014953 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
14954echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
Martin v. Löwisf90ae202002-06-11 06:22:31 +000014955if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14956 echo $ECHO_N "(cached) $ECHO_C" >&6
14957fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000014958{ echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
14959echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
Martin v. Löwisf90ae202002-06-11 06:22:31 +000014960else
14961 # Is the header compilable?
Martin v. Löwiseba40652007-08-30 20:10:57 +000014962{ echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
14963echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6; }
Martin v. Löwisf90ae202002-06-11 06:22:31 +000014964cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000014965/* confdefs.h. */
14966_ACEOF
14967cat confdefs.h >>conftest.$ac_ext
14968cat >>conftest.$ac_ext <<_ACEOF
14969/* end confdefs.h. */
Martin v. Löwisf90ae202002-06-11 06:22:31 +000014970$ac_includes_default
14971#include <atheos/threads.h>
14972_ACEOF
14973rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000014974if { (ac_try="$ac_compile"
14975case "(($ac_try" in
14976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14977 *) ac_try_echo=$ac_try;;
14978esac
14979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14980 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwisf90ae202002-06-11 06:22:31 +000014981 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000014982 grep -v '^ *+' conftest.er1 >conftest.err
14983 rm -f conftest.er1
14984 cat conftest.err >&5
Martin v. Löwisf90ae202002-06-11 06:22:31 +000014985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000014986 (exit $ac_status); } && {
14987 test -z "$ac_c_werror_flag" ||
14988 test ! -s conftest.err
14989 } && test -s conftest.$ac_objext; then
Martin v. Löwisf90ae202002-06-11 06:22:31 +000014990 ac_header_compiler=yes
14991else
14992 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000014993sed 's/^/| /' conftest.$ac_ext >&5
14994
Martin v. Löwiseba40652007-08-30 20:10:57 +000014995 ac_header_compiler=no
Martin v. Löwisf90ae202002-06-11 06:22:31 +000014996fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000014997
14998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14999{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15000echo "${ECHO_T}$ac_header_compiler" >&6; }
Martin v. Löwisf90ae202002-06-11 06:22:31 +000015001
15002# Is the header present?
Martin v. Löwiseba40652007-08-30 20:10:57 +000015003{ echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
15004echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6; }
Martin v. Löwisf90ae202002-06-11 06:22:31 +000015005cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000015006/* confdefs.h. */
15007_ACEOF
15008cat confdefs.h >>conftest.$ac_ext
15009cat >>conftest.$ac_ext <<_ACEOF
15010/* end confdefs.h. */
Martin v. Löwisf90ae202002-06-11 06:22:31 +000015011#include <atheos/threads.h>
15012_ACEOF
Martin v. Löwiseba40652007-08-30 20:10:57 +000015013if { (ac_try="$ac_cpp conftest.$ac_ext"
15014case "(($ac_try" in
15015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15016 *) ac_try_echo=$ac_try;;
15017esac
15018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15019 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Martin v. Löwisf90ae202002-06-11 06:22:31 +000015020 ac_status=$?
Skip Montanaro6dead952003-09-25 14:50:04 +000015021 grep -v '^ *+' conftest.er1 >conftest.err
Martin v. Löwisf90ae202002-06-11 06:22:31 +000015022 rm -f conftest.er1
15023 cat conftest.err >&5
15024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000015025 (exit $ac_status); } >/dev/null && {
15026 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15027 test ! -s conftest.err
15028 }; then
Martin v. Löwisf90ae202002-06-11 06:22:31 +000015029 ac_header_preproc=yes
15030else
15031 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000015032sed 's/^/| /' conftest.$ac_ext >&5
15033
Martin v. Löwisf90ae202002-06-11 06:22:31 +000015034 ac_header_preproc=no
15035fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000015036
Martin v. Löwisf90ae202002-06-11 06:22:31 +000015037rm -f conftest.err conftest.$ac_ext
Martin v. Löwiseba40652007-08-30 20:10:57 +000015038{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15039echo "${ECHO_T}$ac_header_preproc" >&6; }
Martin v. Löwisf90ae202002-06-11 06:22:31 +000015040
15041# So? What about this header?
Skip Montanarof0d5f792004-08-15 14:08:23 +000015042case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15043 yes:no: )
Martin v. Löwisf90ae202002-06-11 06:22:31 +000015044 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
15045echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
Skip Montanarof0d5f792004-08-15 14:08:23 +000015046 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
15047echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
15048 ac_header_preproc=yes
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000015049 ;;
Skip Montanarof0d5f792004-08-15 14:08:23 +000015050 no:yes:* )
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000015051 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
15052echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
Skip Montanarof0d5f792004-08-15 14:08:23 +000015053 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
15054echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
15055 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
15056echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
15057 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
15058echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000015059 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
15060echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
Skip Montanarof0d5f792004-08-15 14:08:23 +000015061 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
15062echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
Martin v. Löwiseba40652007-08-30 20:10:57 +000015063 ( cat <<\_ASBOX
Georg Brandl464432d2009-05-20 18:24:08 +000015064## -------------------------------------- ##
15065## Report this to http://bugs.python.org/ ##
15066## -------------------------------------- ##
Skip Montanaro6dead952003-09-25 14:50:04 +000015067_ASBOX
Martin v. Löwiseba40652007-08-30 20:10:57 +000015068 ) | sed "s/^/$as_me: WARNING: /" >&2
Skip Montanaro6dead952003-09-25 14:50:04 +000015069 ;;
Martin v. Löwisf90ae202002-06-11 06:22:31 +000015070esac
Martin v. Löwiseba40652007-08-30 20:10:57 +000015071{ echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
15072echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
Martin v. Löwisf90ae202002-06-11 06:22:31 +000015073if test "${ac_cv_header_atheos_threads_h+set}" = set; then
15074 echo $ECHO_N "(cached) $ECHO_C" >&6
15075else
15076 ac_cv_header_atheos_threads_h=$ac_header_preproc
15077fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000015078{ echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
15079echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
Martin v. Löwisf90ae202002-06-11 06:22:31 +000015080
15081fi
15082if test $ac_cv_header_atheos_threads_h = yes; then
15083 cat >>confdefs.h <<\_ACEOF
15084#define WITH_THREAD 1
15085_ACEOF
15086
15087
15088cat >>confdefs.h <<\_ACEOF
15089#define ATHEOS_THREADS 1
15090_ACEOF
15091
15092 THREADOBJ="Python/thread.o"
15093else
15094
Martin v. Löwis11437992002-04-12 09:54:03 +000015095 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
Martin v. Löwiseba40652007-08-30 20:10:57 +000015096 { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
15097echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000015098if test "${ac_cv_header_kernel_OS_h+set}" = set; then
15099 echo $ECHO_N "(cached) $ECHO_C" >&6
15100fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000015101{ echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
15102echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
Guido van Rossumec95c7b1998-08-04 17:59:56 +000015103else
Martin v. Löwis11437992002-04-12 09:54:03 +000015104 # Is the header compilable?
Martin v. Löwiseba40652007-08-30 20:10:57 +000015105{ echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
15106echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000015107cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000015108/* confdefs.h. */
15109_ACEOF
15110cat confdefs.h >>conftest.$ac_ext
15111cat >>conftest.$ac_ext <<_ACEOF
15112/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000015113$ac_includes_default
15114#include <kernel/OS.h>
15115_ACEOF
15116rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000015117if { (ac_try="$ac_compile"
15118case "(($ac_try" in
15119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15120 *) ac_try_echo=$ac_try;;
15121esac
15122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15123 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000015124 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000015125 grep -v '^ *+' conftest.er1 >conftest.err
15126 rm -f conftest.er1
15127 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000015128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000015129 (exit $ac_status); } && {
15130 test -z "$ac_c_werror_flag" ||
15131 test ! -s conftest.err
15132 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000015133 ac_header_compiler=yes
15134else
15135 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000015136sed 's/^/| /' conftest.$ac_ext >&5
15137
Martin v. Löwiseba40652007-08-30 20:10:57 +000015138 ac_header_compiler=no
Martin v. Löwis11437992002-04-12 09:54:03 +000015139fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000015140
15141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15142{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15143echo "${ECHO_T}$ac_header_compiler" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000015144
15145# Is the header present?
Martin v. Löwiseba40652007-08-30 20:10:57 +000015146{ echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
15147echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000015148cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000015149/* confdefs.h. */
15150_ACEOF
15151cat confdefs.h >>conftest.$ac_ext
15152cat >>conftest.$ac_ext <<_ACEOF
15153/* end confdefs.h. */
Guido van Rossumec95c7b1998-08-04 17:59:56 +000015154#include <kernel/OS.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000015155_ACEOF
Martin v. Löwiseba40652007-08-30 20:10:57 +000015156if { (ac_try="$ac_cpp conftest.$ac_ext"
15157case "(($ac_try" in
15158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15159 *) ac_try_echo=$ac_try;;
15160esac
15161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15162 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000015163 ac_status=$?
Skip Montanaro6dead952003-09-25 14:50:04 +000015164 grep -v '^ *+' conftest.er1 >conftest.err
Martin v. Löwis11437992002-04-12 09:54:03 +000015165 rm -f conftest.er1
15166 cat conftest.err >&5
15167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000015168 (exit $ac_status); } >/dev/null && {
15169 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15170 test ! -s conftest.err
15171 }; then
Martin v. Löwis11437992002-04-12 09:54:03 +000015172 ac_header_preproc=yes
15173else
15174 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000015175sed 's/^/| /' conftest.$ac_ext >&5
15176
Martin v. Löwis11437992002-04-12 09:54:03 +000015177 ac_header_preproc=no
Guido van Rossumec95c7b1998-08-04 17:59:56 +000015178fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000015179
Martin v. Löwis11437992002-04-12 09:54:03 +000015180rm -f conftest.err conftest.$ac_ext
Martin v. Löwiseba40652007-08-30 20:10:57 +000015181{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15182echo "${ECHO_T}$ac_header_preproc" >&6; }
Guido van Rossumec95c7b1998-08-04 17:59:56 +000015183
Martin v. Löwis11437992002-04-12 09:54:03 +000015184# So? What about this header?
Skip Montanarof0d5f792004-08-15 14:08:23 +000015185case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15186 yes:no: )
Martin v. Löwis11437992002-04-12 09:54:03 +000015187 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
15188echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
Skip Montanarof0d5f792004-08-15 14:08:23 +000015189 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5
15190echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;}
15191 ac_header_preproc=yes
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000015192 ;;
Skip Montanarof0d5f792004-08-15 14:08:23 +000015193 no:yes:* )
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000015194 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
15195echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
Skip Montanarof0d5f792004-08-15 14:08:23 +000015196 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
15197echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
15198 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5
15199echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;}
15200 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5
15201echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;}
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000015202 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
15203echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;}
Skip Montanarof0d5f792004-08-15 14:08:23 +000015204 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5
15205echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;}
Martin v. Löwiseba40652007-08-30 20:10:57 +000015206 ( cat <<\_ASBOX
Georg Brandl464432d2009-05-20 18:24:08 +000015207## -------------------------------------- ##
15208## Report this to http://bugs.python.org/ ##
15209## -------------------------------------- ##
Skip Montanaro6dead952003-09-25 14:50:04 +000015210_ASBOX
Martin v. Löwiseba40652007-08-30 20:10:57 +000015211 ) | sed "s/^/$as_me: WARNING: /" >&2
Skip Montanaro6dead952003-09-25 14:50:04 +000015212 ;;
Martin v. Löwis11437992002-04-12 09:54:03 +000015213esac
Martin v. Löwiseba40652007-08-30 20:10:57 +000015214{ echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
15215echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000015216if test "${ac_cv_header_kernel_OS_h+set}" = set; then
15217 echo $ECHO_N "(cached) $ECHO_C" >&6
15218else
15219 ac_cv_header_kernel_OS_h=$ac_header_preproc
15220fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000015221{ echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
15222echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000015223
15224fi
15225if test $ac_cv_header_kernel_OS_h = yes; then
15226 cat >>confdefs.h <<\_ACEOF
15227#define WITH_THREAD 1
15228_ACEOF
15229
15230
15231cat >>confdefs.h <<\_ACEOF
Guido van Rossumec95c7b1998-08-04 17:59:56 +000015232#define BEOS_THREADS 1
Martin v. Löwis11437992002-04-12 09:54:03 +000015233_ACEOF
Guido van Rossumec95c7b1998-08-04 17:59:56 +000015234
Martin v. Löwis2d7e2642002-04-05 16:50:53 +000015235 THREADOBJ="Python/thread.o"
Guido van Rossumec95c7b1998-08-04 17:59:56 +000015236else
Guido van Rossumec95c7b1998-08-04 17:59:56 +000015237
Martin v. Löwiseba40652007-08-30 20:10:57 +000015238 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
15239echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000015240if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
15241 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +000015242else
Martin v. Löwis11437992002-04-12 09:54:03 +000015243 ac_check_lib_save_LIBS=$LIBS
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +000015244LIBS="-lpthreads $LIBS"
Martin v. Löwis11437992002-04-12 09:54:03 +000015245cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000015246/* confdefs.h. */
15247_ACEOF
15248cat confdefs.h >>conftest.$ac_ext
15249cat >>conftest.$ac_ext <<_ACEOF
15250/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000015251
Martin v. Löwiseba40652007-08-30 20:10:57 +000015252/* Override any GCC internal prototype to avoid an error.
15253 Use char because int might match the return type of a GCC
15254 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +000015255#ifdef __cplusplus
15256extern "C"
15257#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000015258char pthread_create ();
Martin v. Löwis11437992002-04-12 09:54:03 +000015259int
15260main ()
15261{
Martin v. Löwiseba40652007-08-30 20:10:57 +000015262return pthread_create ();
Martin v. Löwis11437992002-04-12 09:54:03 +000015263 ;
15264 return 0;
15265}
15266_ACEOF
15267rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000015268if { (ac_try="$ac_link"
15269case "(($ac_try" in
15270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15271 *) ac_try_echo=$ac_try;;
15272esac
15273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15274 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000015275 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000015276 grep -v '^ *+' conftest.er1 >conftest.err
15277 rm -f conftest.er1
15278 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000015279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000015280 (exit $ac_status); } && {
15281 test -z "$ac_c_werror_flag" ||
15282 test ! -s conftest.err
15283 } && test -s conftest$ac_exeext &&
15284 $as_test_x conftest$ac_exeext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000015285 ac_cv_lib_pthreads_pthread_create=yes
Greg Steinadf63d62000-07-05 10:38:09 +000015286else
Martin v. Löwis11437992002-04-12 09:54:03 +000015287 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000015288sed 's/^/| /' conftest.$ac_ext >&5
15289
Martin v. Löwiseba40652007-08-30 20:10:57 +000015290 ac_cv_lib_pthreads_pthread_create=no
Greg Steinadf63d62000-07-05 10:38:09 +000015291fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000015292
15293rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000015294 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000015295LIBS=$ac_check_lib_save_LIBS
Greg Steinadf63d62000-07-05 10:38:09 +000015296fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000015297{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
15298echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000015299if test $ac_cv_lib_pthreads_pthread_create = yes; then
15300 cat >>confdefs.h <<\_ACEOF
Greg Steinadf63d62000-07-05 10:38:09 +000015301#define WITH_THREAD 1
Martin v. Löwis11437992002-04-12 09:54:03 +000015302_ACEOF
Greg Steinadf63d62000-07-05 10:38:09 +000015303
Guido van Rossumd0b69ec2001-09-10 14:10:54 +000015304 posix_threads=yes
Martin v. Löwis130fb172001-07-19 11:00:41 +000015305 LIBS="$LIBS -lpthreads"
Martin v. Löwis2d7e2642002-04-05 16:50:53 +000015306 THREADOBJ="Python/thread.o"
Greg Steinadf63d62000-07-05 10:38:09 +000015307else
Greg Steinadf63d62000-07-05 10:38:09 +000015308
Martin v. Löwiseba40652007-08-30 20:10:57 +000015309 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
15310echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000015311if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
15312 echo $ECHO_N "(cached) $ECHO_C" >&6
Greg Steinadf63d62000-07-05 10:38:09 +000015313else
Martin v. Löwis11437992002-04-12 09:54:03 +000015314 ac_check_lib_save_LIBS=$LIBS
Greg Steinadf63d62000-07-05 10:38:09 +000015315LIBS="-lc_r $LIBS"
Martin v. Löwis11437992002-04-12 09:54:03 +000015316cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000015317/* confdefs.h. */
15318_ACEOF
15319cat confdefs.h >>conftest.$ac_ext
15320cat >>conftest.$ac_ext <<_ACEOF
15321/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000015322
Martin v. Löwiseba40652007-08-30 20:10:57 +000015323/* Override any GCC internal prototype to avoid an error.
15324 Use char because int might match the return type of a GCC
15325 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +000015326#ifdef __cplusplus
15327extern "C"
15328#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000015329char pthread_create ();
Martin v. Löwis11437992002-04-12 09:54:03 +000015330int
15331main ()
15332{
Martin v. Löwiseba40652007-08-30 20:10:57 +000015333return pthread_create ();
Martin v. Löwis11437992002-04-12 09:54:03 +000015334 ;
15335 return 0;
15336}
15337_ACEOF
15338rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000015339if { (ac_try="$ac_link"
15340case "(($ac_try" in
15341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15342 *) ac_try_echo=$ac_try;;
15343esac
15344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15345 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000015346 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000015347 grep -v '^ *+' conftest.er1 >conftest.err
15348 rm -f conftest.er1
15349 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000015350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000015351 (exit $ac_status); } && {
15352 test -z "$ac_c_werror_flag" ||
15353 test ! -s conftest.err
15354 } && test -s conftest$ac_exeext &&
15355 $as_test_x conftest$ac_exeext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000015356 ac_cv_lib_c_r_pthread_create=yes
Guido van Rossum49545951997-12-02 19:28:29 +000015357else
Martin v. Löwis11437992002-04-12 09:54:03 +000015358 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000015359sed 's/^/| /' conftest.$ac_ext >&5
15360
Martin v. Löwiseba40652007-08-30 20:10:57 +000015361 ac_cv_lib_c_r_pthread_create=no
Guido van Rossum49545951997-12-02 19:28:29 +000015362fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000015363
15364rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000015365 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000015366LIBS=$ac_check_lib_save_LIBS
Guido van Rossum49545951997-12-02 19:28:29 +000015367fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000015368{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
15369echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000015370if test $ac_cv_lib_c_r_pthread_create = yes; then
15371 cat >>confdefs.h <<\_ACEOF
Guido van Rossum49545951997-12-02 19:28:29 +000015372#define WITH_THREAD 1
Martin v. Löwis11437992002-04-12 09:54:03 +000015373_ACEOF
Guido van Rossum49545951997-12-02 19:28:29 +000015374
Guido van Rossumd0b69ec2001-09-10 14:10:54 +000015375 posix_threads=yes
Martin v. Löwis130fb172001-07-19 11:00:41 +000015376 LIBS="$LIBS -lc_r"
Martin v. Löwis2d7e2642002-04-05 16:50:53 +000015377 THREADOBJ="Python/thread.o"
Guido van Rossum07bd90e2000-05-08 13:41:38 +000015378else
Guido van Rossum07bd90e2000-05-08 13:41:38 +000015379
Martin v. Löwiseba40652007-08-30 20:10:57 +000015380 { echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
15381echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000015382if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
15383 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossum8d6e8af2000-10-30 17:45:07 +000015384else
Martin v. Löwis11437992002-04-12 09:54:03 +000015385 ac_check_lib_save_LIBS=$LIBS
Guido van Rossum8d6e8af2000-10-30 17:45:07 +000015386LIBS="-lpthread $LIBS"
Martin v. Löwis11437992002-04-12 09:54:03 +000015387cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000015388/* confdefs.h. */
15389_ACEOF
15390cat confdefs.h >>conftest.$ac_ext
15391cat >>conftest.$ac_ext <<_ACEOF
15392/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000015393
Martin v. Löwiseba40652007-08-30 20:10:57 +000015394/* Override any GCC internal prototype to avoid an error.
15395 Use char because int might match the return type of a GCC
15396 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +000015397#ifdef __cplusplus
15398extern "C"
15399#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000015400char __pthread_create_system ();
Martin v. Löwis11437992002-04-12 09:54:03 +000015401int
15402main ()
15403{
Martin v. Löwiseba40652007-08-30 20:10:57 +000015404return __pthread_create_system ();
Martin v. Löwis11437992002-04-12 09:54:03 +000015405 ;
15406 return 0;
15407}
15408_ACEOF
15409rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000015410if { (ac_try="$ac_link"
15411case "(($ac_try" in
15412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15413 *) ac_try_echo=$ac_try;;
15414esac
15415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15416 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000015417 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000015418 grep -v '^ *+' conftest.er1 >conftest.err
15419 rm -f conftest.er1
15420 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000015421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000015422 (exit $ac_status); } && {
15423 test -z "$ac_c_werror_flag" ||
15424 test ! -s conftest.err
15425 } && test -s conftest$ac_exeext &&
15426 $as_test_x conftest$ac_exeext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000015427 ac_cv_lib_pthread___pthread_create_system=yes
Guido van Rossum8d6e8af2000-10-30 17:45:07 +000015428else
Martin v. Löwis11437992002-04-12 09:54:03 +000015429 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000015430sed 's/^/| /' conftest.$ac_ext >&5
15431
Martin v. Löwiseba40652007-08-30 20:10:57 +000015432 ac_cv_lib_pthread___pthread_create_system=no
Guido van Rossum8d6e8af2000-10-30 17:45:07 +000015433fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000015434
15435rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000015436 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000015437LIBS=$ac_check_lib_save_LIBS
Guido van Rossum8d6e8af2000-10-30 17:45:07 +000015438fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000015439{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
15440echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000015441if test $ac_cv_lib_pthread___pthread_create_system = yes; then
15442 cat >>confdefs.h <<\_ACEOF
Guido van Rossum8d6e8af2000-10-30 17:45:07 +000015443#define WITH_THREAD 1
Martin v. Löwis11437992002-04-12 09:54:03 +000015444_ACEOF
Guido van Rossum8d6e8af2000-10-30 17:45:07 +000015445
Guido van Rossumd0b69ec2001-09-10 14:10:54 +000015446 posix_threads=yes
Martin v. Löwis130fb172001-07-19 11:00:41 +000015447 LIBS="$LIBS -lpthread"
Martin v. Löwis2d7e2642002-04-05 16:50:53 +000015448 THREADOBJ="Python/thread.o"
Guido van Rossum8d6e8af2000-10-30 17:45:07 +000015449else
Guido van Rossum8d6e8af2000-10-30 17:45:07 +000015450
Martin v. Löwiseba40652007-08-30 20:10:57 +000015451 { echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
15452echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000015453if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
15454 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossumb93a8621998-05-07 13:27:32 +000015455else
Martin v. Löwis11437992002-04-12 09:54:03 +000015456 ac_check_lib_save_LIBS=$LIBS
Guido van Rossumb93a8621998-05-07 13:27:32 +000015457LIBS="-lcma $LIBS"
Martin v. Löwis11437992002-04-12 09:54:03 +000015458cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000015459/* confdefs.h. */
15460_ACEOF
15461cat confdefs.h >>conftest.$ac_ext
15462cat >>conftest.$ac_ext <<_ACEOF
15463/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000015464
Martin v. Löwiseba40652007-08-30 20:10:57 +000015465/* Override any GCC internal prototype to avoid an error.
15466 Use char because int might match the return type of a GCC
15467 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +000015468#ifdef __cplusplus
15469extern "C"
15470#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000015471char pthread_create ();
Martin v. Löwis11437992002-04-12 09:54:03 +000015472int
15473main ()
15474{
Martin v. Löwiseba40652007-08-30 20:10:57 +000015475return pthread_create ();
Martin v. Löwis11437992002-04-12 09:54:03 +000015476 ;
15477 return 0;
15478}
15479_ACEOF
15480rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000015481if { (ac_try="$ac_link"
15482case "(($ac_try" in
15483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15484 *) ac_try_echo=$ac_try;;
15485esac
15486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15487 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000015488 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000015489 grep -v '^ *+' conftest.er1 >conftest.err
15490 rm -f conftest.er1
15491 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000015492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000015493 (exit $ac_status); } && {
15494 test -z "$ac_c_werror_flag" ||
15495 test ! -s conftest.err
15496 } && test -s conftest$ac_exeext &&
15497 $as_test_x conftest$ac_exeext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000015498 ac_cv_lib_cma_pthread_create=yes
Guido van Rossumb93a8621998-05-07 13:27:32 +000015499else
Martin v. Löwis11437992002-04-12 09:54:03 +000015500 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000015501sed 's/^/| /' conftest.$ac_ext >&5
15502
Martin v. Löwiseba40652007-08-30 20:10:57 +000015503 ac_cv_lib_cma_pthread_create=no
Guido van Rossumb93a8621998-05-07 13:27:32 +000015504fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000015505
15506rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000015507 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000015508LIBS=$ac_check_lib_save_LIBS
Guido van Rossumb93a8621998-05-07 13:27:32 +000015509fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000015510{ echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
15511echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000015512if test $ac_cv_lib_cma_pthread_create = yes; then
15513 cat >>confdefs.h <<\_ACEOF
Guido van Rossumb93a8621998-05-07 13:27:32 +000015514#define WITH_THREAD 1
Martin v. Löwis11437992002-04-12 09:54:03 +000015515_ACEOF
Guido van Rossumb93a8621998-05-07 13:27:32 +000015516
Guido van Rossumd0b69ec2001-09-10 14:10:54 +000015517 posix_threads=yes
Martin v. Löwis130fb172001-07-19 11:00:41 +000015518 LIBS="$LIBS -lcma"
Martin v. Löwis2d7e2642002-04-05 16:50:53 +000015519 THREADOBJ="Python/thread.o"
Guido van Rossumb93a8621998-05-07 13:27:32 +000015520else
Thomas Wouters0db2b2b2000-08-26 11:33:43 +000015521
Martin v. Löwis130fb172001-07-19 11:00:41 +000015522 USE_THREAD_MODULE="#"
Guido van Rossum2d38f911996-06-26 19:47:01 +000015523fi
15524
Guido van Rossum627b2d71993-12-24 10:39:16 +000015525
Guido van Rossum7b3853f1996-07-30 18:09:35 +000015526fi
15527
Guido van Rossum0be3e491997-05-22 20:33:33 +000015528fi
15529
Guido van Rossum49545951997-12-02 19:28:29 +000015530fi
15531
Guido van Rossumb93a8621998-05-07 13:27:32 +000015532fi
15533
Guido van Rossum07bd90e2000-05-08 13:41:38 +000015534
Michael W. Hudson54241132001-12-07 15:38:26 +000015535fi
15536
Martin v. Löwisf90ae202002-06-11 06:22:31 +000015537
15538fi
15539
Martin v. Löwisa6e97582002-01-01 18:41:33 +000015540fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000015541
15542rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000015543 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwiseba40652007-08-30 20:10:57 +000015544fi
15545
Martin v. Löwis11437992002-04-12 09:54:03 +000015546fi
15547
15548
15549fi
15550
Martin v. Löwisa6e97582002-01-01 18:41:33 +000015551
Michael W. Hudson54241132001-12-07 15:38:26 +000015552
Martin v. Löwiseba40652007-08-30 20:10:57 +000015553 { echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
15554echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000015555if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
15556 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +000015557else
Martin v. Löwis11437992002-04-12 09:54:03 +000015558 ac_check_lib_save_LIBS=$LIBS
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +000015559LIBS="-lmpc $LIBS"
Martin v. Löwis11437992002-04-12 09:54:03 +000015560cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000015561/* confdefs.h. */
15562_ACEOF
15563cat confdefs.h >>conftest.$ac_ext
15564cat >>conftest.$ac_ext <<_ACEOF
15565/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000015566
Martin v. Löwiseba40652007-08-30 20:10:57 +000015567/* Override any GCC internal prototype to avoid an error.
15568 Use char because int might match the return type of a GCC
15569 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +000015570#ifdef __cplusplus
15571extern "C"
15572#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000015573char usconfig ();
Martin v. Löwis11437992002-04-12 09:54:03 +000015574int
15575main ()
15576{
Martin v. Löwiseba40652007-08-30 20:10:57 +000015577return usconfig ();
Martin v. Löwis11437992002-04-12 09:54:03 +000015578 ;
15579 return 0;
15580}
15581_ACEOF
15582rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000015583if { (ac_try="$ac_link"
15584case "(($ac_try" in
15585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15586 *) ac_try_echo=$ac_try;;
15587esac
15588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15589 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000015590 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000015591 grep -v '^ *+' conftest.er1 >conftest.err
15592 rm -f conftest.er1
15593 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000015594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000015595 (exit $ac_status); } && {
15596 test -z "$ac_c_werror_flag" ||
15597 test ! -s conftest.err
15598 } && test -s conftest$ac_exeext &&
15599 $as_test_x conftest$ac_exeext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000015600 ac_cv_lib_mpc_usconfig=yes
Guido van Rossum76be6ed1995-01-02 18:33:54 +000015601else
Martin v. Löwis11437992002-04-12 09:54:03 +000015602 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000015603sed 's/^/| /' conftest.$ac_ext >&5
15604
Martin v. Löwiseba40652007-08-30 20:10:57 +000015605 ac_cv_lib_mpc_usconfig=no
Guido van Rossum627b2d71993-12-24 10:39:16 +000015606fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000015607
15608rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000015609 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000015610LIBS=$ac_check_lib_save_LIBS
Guido van Rossum76be6ed1995-01-02 18:33:54 +000015611fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000015612{ echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
15613echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000015614if test $ac_cv_lib_mpc_usconfig = yes; then
15615 cat >>confdefs.h <<\_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000015616#define WITH_THREAD 1
Martin v. Löwis11437992002-04-12 09:54:03 +000015617_ACEOF
Guido van Rossum627b2d71993-12-24 10:39:16 +000015618
Martin v. Löwis130fb172001-07-19 11:00:41 +000015619 LIBS="$LIBS -lmpc"
Martin v. Löwis2d7e2642002-04-05 16:50:53 +000015620 THREADOBJ="Python/thread.o"
Martin v. Löwis130fb172001-07-19 11:00:41 +000015621 USE_THREAD_MODULE=""
Guido van Rossum627b2d71993-12-24 10:39:16 +000015622fi
15623
Martin v. Löwis3d2b5492002-03-15 13:48:21 +000015624
Neal Norwitza978ab02002-11-02 16:58:05 +000015625 if test "$posix_threads" != "yes"; then
Martin v. Löwiseba40652007-08-30 20:10:57 +000015626 { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
15627echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000015628if test "${ac_cv_lib_thread_thr_create+set}" = set; then
15629 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +000015630else
Martin v. Löwis11437992002-04-12 09:54:03 +000015631 ac_check_lib_save_LIBS=$LIBS
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +000015632LIBS="-lthread $LIBS"
Martin v. Löwis11437992002-04-12 09:54:03 +000015633cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000015634/* confdefs.h. */
15635_ACEOF
15636cat confdefs.h >>conftest.$ac_ext
15637cat >>conftest.$ac_ext <<_ACEOF
15638/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000015639
Martin v. Löwiseba40652007-08-30 20:10:57 +000015640/* Override any GCC internal prototype to avoid an error.
15641 Use char because int might match the return type of a GCC
15642 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +000015643#ifdef __cplusplus
15644extern "C"
15645#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000015646char thr_create ();
Martin v. Löwis11437992002-04-12 09:54:03 +000015647int
15648main ()
15649{
Martin v. Löwiseba40652007-08-30 20:10:57 +000015650return thr_create ();
Martin v. Löwis11437992002-04-12 09:54:03 +000015651 ;
15652 return 0;
15653}
15654_ACEOF
15655rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000015656if { (ac_try="$ac_link"
15657case "(($ac_try" in
15658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15659 *) ac_try_echo=$ac_try;;
15660esac
15661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15662 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000015663 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000015664 grep -v '^ *+' conftest.er1 >conftest.err
15665 rm -f conftest.er1
15666 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000015667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000015668 (exit $ac_status); } && {
15669 test -z "$ac_c_werror_flag" ||
15670 test ! -s conftest.err
15671 } && test -s conftest$ac_exeext &&
15672 $as_test_x conftest$ac_exeext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000015673 ac_cv_lib_thread_thr_create=yes
Guido van Rossum76be6ed1995-01-02 18:33:54 +000015674else
Martin v. Löwis11437992002-04-12 09:54:03 +000015675 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000015676sed 's/^/| /' conftest.$ac_ext >&5
15677
Martin v. Löwiseba40652007-08-30 20:10:57 +000015678 ac_cv_lib_thread_thr_create=no
Guido van Rossum627b2d71993-12-24 10:39:16 +000015679fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000015680
15681rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000015682 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000015683LIBS=$ac_check_lib_save_LIBS
Guido van Rossum76be6ed1995-01-02 18:33:54 +000015684fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000015685{ echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
15686echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000015687if test $ac_cv_lib_thread_thr_create = yes; then
15688 cat >>confdefs.h <<\_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000015689#define WITH_THREAD 1
Martin v. Löwis11437992002-04-12 09:54:03 +000015690_ACEOF
Guido van Rossum627b2d71993-12-24 10:39:16 +000015691
Martin v. Löwis3d2b5492002-03-15 13:48:21 +000015692 LIBS="$LIBS -lthread"
Martin v. Löwis2d7e2642002-04-05 16:50:53 +000015693 THREADOBJ="Python/thread.o"
Martin v. Löwis3d2b5492002-03-15 13:48:21 +000015694 USE_THREAD_MODULE=""
Guido van Rossum627b2d71993-12-24 10:39:16 +000015695fi
15696
Martin v. Löwis3d2b5492002-03-15 13:48:21 +000015697 fi
Michael W. Hudson54241132001-12-07 15:38:26 +000015698
Martin v. Löwis130fb172001-07-19 11:00:41 +000015699 if test "$USE_THREAD_MODULE" != "#"
15700 then
15701 # If the above checks didn't disable threads, (at least) OSF1
15702 # needs this '-threads' argument during linking.
15703 case $ac_sys_system in
15704 OSF1) LDLAST=-threads;;
15705 esac
Jeremy Hylton1a2ca862000-10-16 16:59:12 +000015706 fi
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000015707fi
Martin v. Löwisa7a76d32002-10-04 07:21:24 +000015708
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000015709if test "$posix_threads" = "yes"; then
15710 if test "$unistd_defines_pthreads" = "no"; then
Martin v. Löwisa7a76d32002-10-04 07:21:24 +000015711
15712cat >>confdefs.h <<\_ACEOF
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000015713#define _POSIX_THREADS 1
15714_ACEOF
15715
15716 fi
15717
15718 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
15719 case $ac_sys_system/$ac_sys_release in
15720 SunOS/5.6)
15721cat >>confdefs.h <<\_ACEOF
Martin v. Löwisa7a76d32002-10-04 07:21:24 +000015722#define HAVE_PTHREAD_DESTRUCTOR 1
15723_ACEOF
15724
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000015725 ;;
15726 SunOS/5.8)
15727cat >>confdefs.h <<\_ACEOF
15728#define HAVE_BROKEN_POSIX_SEMAPHORES 1
15729_ACEOF
15730
15731 ;;
Christian Heimescba36bb2008-01-30 22:54:18 +000015732 AIX/5)
15733cat >>confdefs.h <<\_ACEOF
15734#define HAVE_BROKEN_POSIX_SEMAPHORES 1
15735_ACEOF
15736
15737 ;;
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000015738 esac
15739
Martin v. Löwiseba40652007-08-30 20:10:57 +000015740 { echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
15741echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6; }
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000015742 if test "${ac_cv_pthread_system_supported+set}" = set; then
15743 echo $ECHO_N "(cached) $ECHO_C" >&6
15744else
15745 if test "$cross_compiling" = yes; then
15746 ac_cv_pthread_system_supported=no
15747else
15748 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000015749/* confdefs.h. */
15750_ACEOF
15751cat confdefs.h >>conftest.$ac_ext
15752cat >>conftest.$ac_ext <<_ACEOF
15753/* end confdefs.h. */
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000015754#include <pthread.h>
15755 void *foo(void *parm) {
15756 return NULL;
15757 }
15758 main() {
15759 pthread_attr_t attr;
15760 pthread_t id;
15761 if (pthread_attr_init(&attr)) exit(-1);
15762 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
15763 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
15764 exit(0);
15765 }
15766_ACEOF
15767rm -f conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000015768if { (ac_try="$ac_link"
15769case "(($ac_try" in
15770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15771 *) ac_try_echo=$ac_try;;
15772esac
15773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15774 (eval "$ac_link") 2>&5
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000015775 ac_status=$?
15776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Martin v. Löwiseba40652007-08-30 20:10:57 +000015778 { (case "(($ac_try" in
15779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15780 *) ac_try_echo=$ac_try;;
15781esac
15782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15783 (eval "$ac_try") 2>&5
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000015784 ac_status=$?
15785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15786 (exit $ac_status); }; }; then
15787 ac_cv_pthread_system_supported=yes
15788else
15789 echo "$as_me: program exited with status $ac_status" >&5
15790echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000015791sed 's/^/| /' conftest.$ac_ext >&5
15792
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000015793( exit $ac_status )
15794ac_cv_pthread_system_supported=no
15795fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000015796rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000015797fi
Martin v. Löwisa7a76d32002-10-04 07:21:24 +000015798
Martin v. Löwiseba40652007-08-30 20:10:57 +000015799
15800
Guido van Rossum627b2d71993-12-24 10:39:16 +000015801fi
15802
Martin v. Löwiseba40652007-08-30 20:10:57 +000015803 { echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
15804echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6; }
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000015805 if test "$ac_cv_pthread_system_supported" = "yes"; then
15806
15807cat >>confdefs.h <<\_ACEOF
15808#define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
15809_ACEOF
15810
15811 fi
15812
15813for ac_func in pthread_sigmask
15814do
15815as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Martin v. Löwiseba40652007-08-30 20:10:57 +000015816{ echo "$as_me:$LINENO: checking for $ac_func" >&5
15817echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15818if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000015819 echo $ECHO_N "(cached) $ECHO_C" >&6
15820else
15821 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000015822/* confdefs.h. */
15823_ACEOF
15824cat confdefs.h >>conftest.$ac_ext
15825cat >>conftest.$ac_ext <<_ACEOF
15826/* end confdefs.h. */
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000015827/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15828 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15829#define $ac_func innocuous_$ac_func
15830
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000015831/* System header to define __stub macros and hopefully few prototypes,
Skip Montanaro6dead952003-09-25 14:50:04 +000015832 which can conflict with char $ac_func (); below.
15833 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000015834 <limits.h> exists even on freestanding compilers. */
15835
15836#ifdef __STDC__
Skip Montanaro6dead952003-09-25 14:50:04 +000015837# include <limits.h>
15838#else
15839# include <assert.h>
15840#endif
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000015841
15842#undef $ac_func
15843
Martin v. Löwiseba40652007-08-30 20:10:57 +000015844/* Override any GCC internal prototype to avoid an error.
15845 Use char because int might match the return type of a GCC
15846 builtin and then its argument prototype would still apply. */
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000015847#ifdef __cplusplus
15848extern "C"
15849#endif
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000015850char $ac_func ();
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000015851/* The GNU C library defines this for functions which it implements
15852 to always fail with ENOSYS. Some functions are actually named
15853 something starting with __ and the normal name is an alias. */
Martin v. Löwiseba40652007-08-30 20:10:57 +000015854#if defined __stub_$ac_func || defined __stub___$ac_func
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000015855choke me
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000015856#endif
15857
Skip Montanaro6dead952003-09-25 14:50:04 +000015858int
15859main ()
15860{
Martin v. Löwiseba40652007-08-30 20:10:57 +000015861return $ac_func ();
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000015862 ;
15863 return 0;
15864}
15865_ACEOF
15866rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000015867if { (ac_try="$ac_link"
15868case "(($ac_try" in
15869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15870 *) ac_try_echo=$ac_try;;
15871esac
15872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15873 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000015874 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000015875 grep -v '^ *+' conftest.er1 >conftest.err
15876 rm -f conftest.er1
15877 cat conftest.err >&5
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000015878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000015879 (exit $ac_status); } && {
15880 test -z "$ac_c_werror_flag" ||
15881 test ! -s conftest.err
15882 } && test -s conftest$ac_exeext &&
15883 $as_test_x conftest$ac_exeext; then
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000015884 eval "$as_ac_var=yes"
15885else
15886 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000015887sed 's/^/| /' conftest.$ac_ext >&5
15888
Martin v. Löwiseba40652007-08-30 20:10:57 +000015889 eval "$as_ac_var=no"
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000015890fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000015891
15892rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000015893 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000015894fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000015895ac_res=`eval echo '${'$as_ac_var'}'`
15896 { echo "$as_me:$LINENO: result: $ac_res" >&5
15897echo "${ECHO_T}$ac_res" >&6; }
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000015898if test `eval echo '${'$as_ac_var'}'` = yes; then
15899 cat >>confdefs.h <<_ACEOF
15900#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15901_ACEOF
Jason Tishlerfac083d2003-07-22 15:20:49 +000015902 case $ac_sys_system in
15903 CYGWIN*)
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000015904
Jason Tishlerfac083d2003-07-22 15:20:49 +000015905cat >>confdefs.h <<\_ACEOF
15906#define HAVE_BROKEN_PTHREAD_SIGMASK 1
15907_ACEOF
15908
15909 ;;
15910 esac
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000015911fi
15912done
15913
15914fi
15915
15916
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000015917# Check for enable-ipv6
Martin v. Löwis11437992002-04-12 09:54:03 +000015918
15919
Martin v. Löwiseba40652007-08-30 20:10:57 +000015920{ echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
15921echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6; }
15922# Check whether --enable-ipv6 was given.
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000015923if test "${enable_ipv6+set}" = set; then
Martin v. Löwiseba40652007-08-30 20:10:57 +000015924 enableval=$enable_ipv6; case "$enableval" in
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000015925 no)
Martin v. Löwiseba40652007-08-30 20:10:57 +000015926 { echo "$as_me:$LINENO: result: no" >&5
15927echo "${ECHO_T}no" >&6; }
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000015928 ipv6=no
15929 ;;
Martin v. Löwiseba40652007-08-30 20:10:57 +000015930 *) { echo "$as_me:$LINENO: result: yes" >&5
15931echo "${ECHO_T}yes" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000015932 cat >>confdefs.h <<\_ACEOF
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000015933#define ENABLE_IPV6 1
Martin v. Löwis11437992002-04-12 09:54:03 +000015934_ACEOF
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000015935
15936 ipv6=yes
15937 ;;
Martin v. Löwis11437992002-04-12 09:54:03 +000015938 esac
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000015939else
Martin v. Löwis11437992002-04-12 09:54:03 +000015940
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000015941 if test "$cross_compiling" = yes; then
Martin v. Löwiseba40652007-08-30 20:10:57 +000015942 { echo "$as_me:$LINENO: result: no" >&5
15943echo "${ECHO_T}no" >&6; }
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000015944 ipv6=no
15945
15946else
Martin v. Löwis11437992002-04-12 09:54:03 +000015947 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000015948/* confdefs.h. */
15949_ACEOF
15950cat confdefs.h >>conftest.$ac_ext
15951cat >>conftest.$ac_ext <<_ACEOF
15952/* end confdefs.h. */
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000015953 /* AF_INET6 available check */
15954#include <sys/types.h>
15955#include <sys/socket.h>
15956main()
15957{
15958 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
15959 exit(1);
15960 else
15961 exit(0);
15962}
15963
Martin v. Löwis11437992002-04-12 09:54:03 +000015964_ACEOF
15965rm -f conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000015966if { (ac_try="$ac_link"
15967case "(($ac_try" in
15968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15969 *) ac_try_echo=$ac_try;;
15970esac
15971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15972 (eval "$ac_link") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +000015973 ac_status=$?
15974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15975 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Martin v. Löwiseba40652007-08-30 20:10:57 +000015976 { (case "(($ac_try" in
15977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15978 *) ac_try_echo=$ac_try;;
15979esac
15980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15981 (eval "$ac_try") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +000015982 ac_status=$?
15983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15984 (exit $ac_status); }; }; then
Martin v. Löwiseba40652007-08-30 20:10:57 +000015985 { echo "$as_me:$LINENO: result: yes" >&5
15986echo "${ECHO_T}yes" >&6; }
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000015987 ipv6=yes
15988else
Martin v. Löwis11437992002-04-12 09:54:03 +000015989 echo "$as_me: program exited with status $ac_status" >&5
15990echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000015991sed 's/^/| /' conftest.$ac_ext >&5
15992
Martin v. Löwis11437992002-04-12 09:54:03 +000015993( exit $ac_status )
Martin v. Löwiseba40652007-08-30 20:10:57 +000015994{ echo "$as_me:$LINENO: result: no" >&5
15995echo "${ECHO_T}no" >&6; }
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000015996 ipv6=no
15997fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000015998rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000015999fi
16000
Martin v. Löwiseba40652007-08-30 20:10:57 +000016001
16002
Martin v. Löwisa5f8bb52001-09-05 08:22:34 +000016003if test "$ipv6" = "yes"; then
Martin v. Löwiseba40652007-08-30 20:10:57 +000016004 { echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
16005echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000016006 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000016007/* confdefs.h. */
16008_ACEOF
16009cat confdefs.h >>conftest.$ac_ext
16010cat >>conftest.$ac_ext <<_ACEOF
16011/* end confdefs.h. */
Martin v. Löwisa5f8bb52001-09-05 08:22:34 +000016012#include <sys/types.h>
16013#include <netinet/in.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000016014int
16015main ()
16016{
Martin v. Löwisa5f8bb52001-09-05 08:22:34 +000016017struct sockaddr_in6 x;
16018x.sin6_scope_id;
Martin v. Löwis11437992002-04-12 09:54:03 +000016019 ;
16020 return 0;
16021}
16022_ACEOF
16023rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000016024if { (ac_try="$ac_compile"
16025case "(($ac_try" in
16026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16027 *) ac_try_echo=$ac_try;;
16028esac
16029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16030 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000016031 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000016032 grep -v '^ *+' conftest.er1 >conftest.err
16033 rm -f conftest.er1
16034 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000016035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000016036 (exit $ac_status); } && {
16037 test -z "$ac_c_werror_flag" ||
16038 test ! -s conftest.err
16039 } && test -s conftest.$ac_objext; then
16040 { echo "$as_me:$LINENO: result: yes" >&5
16041echo "${ECHO_T}yes" >&6; }
Martin v. Löwisa5f8bb52001-09-05 08:22:34 +000016042 ipv6=yes
16043else
Martin v. Löwis11437992002-04-12 09:54:03 +000016044 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000016045sed 's/^/| /' conftest.$ac_ext >&5
16046
Martin v. Löwiseba40652007-08-30 20:10:57 +000016047 { echo "$as_me:$LINENO: result: no" >&5
16048echo "${ECHO_T}no" >&6; }
Martin v. Löwisa5f8bb52001-09-05 08:22:34 +000016049 ipv6=no
16050fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000016051
16052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwisa5f8bb52001-09-05 08:22:34 +000016053fi
16054
16055if test "$ipv6" = "yes"; then
Martin v. Löwis11437992002-04-12 09:54:03 +000016056 cat >>confdefs.h <<\_ACEOF
Martin v. Löwisa5f8bb52001-09-05 08:22:34 +000016057#define ENABLE_IPV6 1
Martin v. Löwis11437992002-04-12 09:54:03 +000016058_ACEOF
Martin v. Löwisa5f8bb52001-09-05 08:22:34 +000016059
16060fi
16061
Martin v. Löwiseba40652007-08-30 20:10:57 +000016062fi
16063
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000016064
16065ipv6type=unknown
16066ipv6lib=none
16067ipv6trylibc=no
16068
16069if test "$ipv6" = "yes"; then
Martin v. Löwiseba40652007-08-30 20:10:57 +000016070 { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
16071echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
Guido van Rossumb8552162001-09-05 14:58:11 +000016072 for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
16073 do
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000016074 case $i in
16075 inria)
Martin v. Löwis11437992002-04-12 09:54:03 +000016076 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000016077/* confdefs.h. */
16078_ACEOF
16079cat confdefs.h >>conftest.$ac_ext
16080cat >>conftest.$ac_ext <<_ACEOF
16081/* end confdefs.h. */
Martin v. Löwisa5f73f92001-10-15 08:06:29 +000016082
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000016083#include <netinet/in.h>
16084#ifdef IPV6_INRIA_VERSION
16085yes
16086#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000016087_ACEOF
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000016088if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Skip Montanaro6dead952003-09-25 14:50:04 +000016089 $EGREP "yes" >/dev/null 2>&1; then
Martin v. Löwis44ddbde2001-12-02 10:15:37 +000016090 ipv6type=$i
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000016091fi
16092rm -f conftest*
16093
16094 ;;
16095 kame)
Martin v. Löwis11437992002-04-12 09:54:03 +000016096 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000016097/* confdefs.h. */
16098_ACEOF
16099cat confdefs.h >>conftest.$ac_ext
16100cat >>conftest.$ac_ext <<_ACEOF
16101/* end confdefs.h. */
Martin v. Löwisa5f73f92001-10-15 08:06:29 +000016102
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000016103#include <netinet/in.h>
16104#ifdef __KAME__
16105yes
16106#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000016107_ACEOF
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000016108if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Skip Montanaro6dead952003-09-25 14:50:04 +000016109 $EGREP "yes" >/dev/null 2>&1; then
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000016110 ipv6type=$i;
16111 ipv6lib=inet6
16112 ipv6libdir=/usr/local/v6/lib
16113 ipv6trylibc=yes
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000016114fi
16115rm -f conftest*
16116
16117 ;;
16118 linux-glibc)
Martin v. Löwis11437992002-04-12 09:54:03 +000016119 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000016120/* confdefs.h. */
16121_ACEOF
16122cat confdefs.h >>conftest.$ac_ext
16123cat >>conftest.$ac_ext <<_ACEOF
16124/* end confdefs.h. */
Martin v. Löwisa5f73f92001-10-15 08:06:29 +000016125
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000016126#include <features.h>
16127#if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
16128yes
16129#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000016130_ACEOF
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000016131if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Skip Montanaro6dead952003-09-25 14:50:04 +000016132 $EGREP "yes" >/dev/null 2>&1; then
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000016133 ipv6type=$i;
16134 ipv6trylibc=yes
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000016135fi
16136rm -f conftest*
16137
16138 ;;
16139 linux-inet6)
16140 if test -d /usr/inet6; then
16141 ipv6type=$i
16142 ipv6lib=inet6
16143 ipv6libdir=/usr/inet6/lib
Skip Montanarodecc6a42003-01-01 20:07:49 +000016144 BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000016145 fi
16146 ;;
16147 solaris)
16148 if test -f /etc/netconfig; then
16149 if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then
16150 ipv6type=$i
16151 ipv6trylibc=yes
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000016152 fi
16153 fi
16154 ;;
16155 toshiba)
Martin v. Löwis11437992002-04-12 09:54:03 +000016156 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000016157/* confdefs.h. */
16158_ACEOF
16159cat confdefs.h >>conftest.$ac_ext
16160cat >>conftest.$ac_ext <<_ACEOF
16161/* end confdefs.h. */
Martin v. Löwisa5f73f92001-10-15 08:06:29 +000016162
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000016163#include <sys/param.h>
16164#ifdef _TOSHIBA_INET6
16165yes
16166#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000016167_ACEOF
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000016168if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Skip Montanaro6dead952003-09-25 14:50:04 +000016169 $EGREP "yes" >/dev/null 2>&1; then
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000016170 ipv6type=$i;
16171 ipv6lib=inet6;
Martin v. Löwis44ddbde2001-12-02 10:15:37 +000016172 ipv6libdir=/usr/local/v6/lib
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000016173fi
16174rm -f conftest*
16175
16176 ;;
16177 v6d)
Martin v. Löwis11437992002-04-12 09:54:03 +000016178 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000016179/* confdefs.h. */
16180_ACEOF
16181cat confdefs.h >>conftest.$ac_ext
16182cat >>conftest.$ac_ext <<_ACEOF
16183/* end confdefs.h. */
Martin v. Löwisa5f73f92001-10-15 08:06:29 +000016184
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000016185#include </usr/local/v6/include/sys/v6config.h>
16186#ifdef __V6D__
16187yes
16188#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000016189_ACEOF
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000016190if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Skip Montanaro6dead952003-09-25 14:50:04 +000016191 $EGREP "yes" >/dev/null 2>&1; then
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000016192 ipv6type=$i;
16193 ipv6lib=v6;
16194 ipv6libdir=/usr/local/v6/lib;
Skip Montanarodecc6a42003-01-01 20:07:49 +000016195 BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000016196fi
16197rm -f conftest*
16198
16199 ;;
16200 zeta)
Martin v. Löwis11437992002-04-12 09:54:03 +000016201 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000016202/* confdefs.h. */
16203_ACEOF
16204cat confdefs.h >>conftest.$ac_ext
16205cat >>conftest.$ac_ext <<_ACEOF
16206/* end confdefs.h. */
Martin v. Löwisa5f73f92001-10-15 08:06:29 +000016207
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000016208#include <sys/param.h>
16209#ifdef _ZETA_MINAMI_INET6
16210yes
16211#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000016212_ACEOF
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000016213if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Skip Montanaro6dead952003-09-25 14:50:04 +000016214 $EGREP "yes" >/dev/null 2>&1; then
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000016215 ipv6type=$i;
16216 ipv6lib=inet6;
Martin v. Löwis44ddbde2001-12-02 10:15:37 +000016217 ipv6libdir=/usr/local/v6/lib
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000016218fi
16219rm -f conftest*
16220
16221 ;;
16222 esac
16223 if test "$ipv6type" != "unknown"; then
16224 break
16225 fi
16226 done
Martin v. Löwiseba40652007-08-30 20:10:57 +000016227 { echo "$as_me:$LINENO: result: $ipv6type" >&5
16228echo "${ECHO_T}$ipv6type" >&6; }
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000016229fi
16230
16231if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
16232 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
16233 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
16234 echo "using lib$ipv6lib"
16235 else
16236 if test $ipv6trylibc = "yes"; then
16237 echo "using libc"
16238 else
16239 echo 'Fatal: no $ipv6lib library found. cannot continue.'
16240 echo "You need to fetch lib$ipv6lib.a from appropriate"
16241 echo 'ipv6 kit and compile beforehand.'
16242 exit 1
16243 fi
16244 fi
16245fi
16246
Ronald Oussoren0d236eb2008-06-06 21:31:33 +000016247{ echo "$as_me:$LINENO: checking for OSX 10.5 SDK or later" >&5
16248echo $ECHO_N "checking for OSX 10.5 SDK or later... $ECHO_C" >&6; }
16249cat >conftest.$ac_ext <<_ACEOF
16250/* confdefs.h. */
16251_ACEOF
16252cat confdefs.h >>conftest.$ac_ext
16253cat >>conftest.$ac_ext <<_ACEOF
16254/* end confdefs.h. */
16255#include <Carbon/Carbon.h>
16256int
16257main ()
16258{
16259FSIORefNum fRef = 0
16260 ;
16261 return 0;
16262}
16263_ACEOF
16264rm -f conftest.$ac_objext
16265if { (ac_try="$ac_compile"
16266case "(($ac_try" in
16267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16268 *) ac_try_echo=$ac_try;;
16269esac
16270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16271 (eval "$ac_compile") 2>conftest.er1
16272 ac_status=$?
16273 grep -v '^ *+' conftest.er1 >conftest.err
16274 rm -f conftest.er1
16275 cat conftest.err >&5
16276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16277 (exit $ac_status); } && {
16278 test -z "$ac_c_werror_flag" ||
16279 test ! -s conftest.err
16280 } && test -s conftest.$ac_objext; then
16281
16282cat >>confdefs.h <<\_ACEOF
16283#define HAVE_OSX105_SDK 1
16284_ACEOF
16285
16286 { echo "$as_me:$LINENO: result: yes" >&5
16287echo "${ECHO_T}yes" >&6; }
16288else
16289 echo "$as_me: failed program was:" >&5
16290sed 's/^/| /' conftest.$ac_ext >&5
16291
16292 { echo "$as_me:$LINENO: result: no" >&5
16293echo "${ECHO_T}no" >&6; }
16294
16295fi
16296
16297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16298
Martin v. Löwisa3fb4f72002-06-09 13:33:54 +000016299# Check for --with-doc-strings
Martin v. Löwiseba40652007-08-30 20:10:57 +000016300{ echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
16301echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6; }
Martin v. Löwisa3fb4f72002-06-09 13:33:54 +000016302
Martin v. Löwiseba40652007-08-30 20:10:57 +000016303# Check whether --with-doc-strings was given.
Martin v. Löwisa3fb4f72002-06-09 13:33:54 +000016304if test "${with_doc_strings+set}" = set; then
Martin v. Löwiseba40652007-08-30 20:10:57 +000016305 withval=$with_doc_strings;
16306fi
Martin v. Löwisa3fb4f72002-06-09 13:33:54 +000016307
Martin v. Löwisa3fb4f72002-06-09 13:33:54 +000016308
16309if test -z "$with_doc_strings"
16310then with_doc_strings="yes"
16311fi
16312if test "$with_doc_strings" != "no"
16313then
16314
16315cat >>confdefs.h <<\_ACEOF
16316#define WITH_DOC_STRINGS 1
16317_ACEOF
16318
16319fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000016320{ echo "$as_me:$LINENO: result: $with_doc_strings" >&5
16321echo "${ECHO_T}$with_doc_strings" >&6; }
Martin v. Löwisa3fb4f72002-06-09 13:33:54 +000016322
Neil Schemenauera35c6882001-02-27 04:45:05 +000016323# Check for Python-specific malloc support
Martin v. Löwiseba40652007-08-30 20:10:57 +000016324{ echo "$as_me:$LINENO: checking for --with-tsc" >&5
16325echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6; }
Martin v. Löwisf30d60e2004-06-08 08:17:44 +000016326
Martin v. Löwiseba40652007-08-30 20:10:57 +000016327# Check whether --with-tsc was given.
Martin v. Löwisf30d60e2004-06-08 08:17:44 +000016328if test "${with_tsc+set}" = set; then
Martin v. Löwiseba40652007-08-30 20:10:57 +000016329 withval=$with_tsc;
Martin v. Löwisf30d60e2004-06-08 08:17:44 +000016330if test "$withval" != no
16331then
16332
16333cat >>confdefs.h <<\_ACEOF
16334#define WITH_TSC 1
16335_ACEOF
16336
Martin v. Löwiseba40652007-08-30 20:10:57 +000016337 { echo "$as_me:$LINENO: result: yes" >&5
16338echo "${ECHO_T}yes" >&6; }
16339else { echo "$as_me:$LINENO: result: no" >&5
16340echo "${ECHO_T}no" >&6; }
Martin v. Löwisf30d60e2004-06-08 08:17:44 +000016341fi
16342else
Martin v. Löwiseba40652007-08-30 20:10:57 +000016343 { echo "$as_me:$LINENO: result: no" >&5
16344echo "${ECHO_T}no" >&6; }
16345fi
16346
Martin v. Löwisf30d60e2004-06-08 08:17:44 +000016347
16348# Check for Python-specific malloc support
Martin v. Löwiseba40652007-08-30 20:10:57 +000016349{ echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
16350echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000016351
Martin v. Löwiseba40652007-08-30 20:10:57 +000016352# Check whether --with-pymalloc was given.
Neil Schemenauera35c6882001-02-27 04:45:05 +000016353if test "${with_pymalloc+set}" = set; then
Martin v. Löwiseba40652007-08-30 20:10:57 +000016354 withval=$with_pymalloc;
16355fi
Michael W. Hudson54241132001-12-07 15:38:26 +000016356
Neil Schemenauera35c6882001-02-27 04:45:05 +000016357
Neil Schemenauer16c22972002-03-22 15:34:49 +000016358if test -z "$with_pymalloc"
16359then with_pymalloc="yes"
16360fi
16361if test "$with_pymalloc" != "no"
16362then
Martin v. Löwis11437992002-04-12 09:54:03 +000016363
16364cat >>confdefs.h <<\_ACEOF
Neil Schemenauer16c22972002-03-22 15:34:49 +000016365#define WITH_PYMALLOC 1
Martin v. Löwis11437992002-04-12 09:54:03 +000016366_ACEOF
Neil Schemenauer16c22972002-03-22 15:34:49 +000016367
16368fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000016369{ echo "$as_me:$LINENO: result: $with_pymalloc" >&5
16370echo "${ECHO_T}$with_pymalloc" >&6; }
Neil Schemenauer16c22972002-03-22 15:34:49 +000016371
Barry Warsawef82cd72000-06-30 16:21:01 +000016372# Check for --with-wctype-functions
Martin v. Löwiseba40652007-08-30 20:10:57 +000016373{ echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
16374echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000016375
Martin v. Löwiseba40652007-08-30 20:10:57 +000016376# Check whether --with-wctype-functions was given.
Barry Warsawef82cd72000-06-30 16:21:01 +000016377if test "${with_wctype_functions+set}" = set; then
Martin v. Löwiseba40652007-08-30 20:10:57 +000016378 withval=$with_wctype_functions;
Barry Warsawef82cd72000-06-30 16:21:01 +000016379if test "$withval" != no
Martin v. Löwis11437992002-04-12 09:54:03 +000016380then
16381
16382cat >>confdefs.h <<\_ACEOF
Barry Warsawef82cd72000-06-30 16:21:01 +000016383#define WANT_WCTYPE_FUNCTIONS 1
Martin v. Löwis11437992002-04-12 09:54:03 +000016384_ACEOF
16385
Martin v. Löwiseba40652007-08-30 20:10:57 +000016386 { echo "$as_me:$LINENO: result: yes" >&5
16387echo "${ECHO_T}yes" >&6; }
16388else { echo "$as_me:$LINENO: result: no" >&5
16389echo "${ECHO_T}no" >&6; }
Barry Warsawef82cd72000-06-30 16:21:01 +000016390fi
16391else
Martin v. Löwiseba40652007-08-30 20:10:57 +000016392 { echo "$as_me:$LINENO: result: no" >&5
16393echo "${ECHO_T}no" >&6; }
16394fi
16395
Barry Warsawef82cd72000-06-30 16:21:01 +000016396
Guido van Rossum48bdbfc1996-05-28 22:53:48 +000016397# -I${DLINCLDIR} is added to the compile rule for importdl.o
Guido van Rossum7f43da71994-08-01 12:15:30 +000016398
Guido van Rossum98935bf2001-09-05 19:13:16 +000016399DLINCLDIR=.
Guido van Rossum7f43da71994-08-01 12:15:30 +000016400
Guido van Rossume97ee181999-12-20 21:27:22 +000016401# the dlopen() function means we might want to use dynload_shlib.o. some
16402# platforms, such as AIX, have dlopen(), but don't want to use it.
Martin v. Löwis11437992002-04-12 09:54:03 +000016403
Thomas Wouters3a584202000-08-05 23:28:51 +000016404for ac_func in dlopen
16405do
Martin v. Löwis11437992002-04-12 09:54:03 +000016406as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Martin v. Löwiseba40652007-08-30 20:10:57 +000016407{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16408echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16409if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Martin v. Löwis11437992002-04-12 09:54:03 +000016410 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossume97ee181999-12-20 21:27:22 +000016411else
Martin v. Löwis11437992002-04-12 09:54:03 +000016412 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000016413/* confdefs.h. */
16414_ACEOF
16415cat confdefs.h >>conftest.$ac_ext
16416cat >>conftest.$ac_ext <<_ACEOF
16417/* end confdefs.h. */
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000016418/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16419 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16420#define $ac_func innocuous_$ac_func
16421
Guido van Rossume97ee181999-12-20 21:27:22 +000016422/* System header to define __stub macros and hopefully few prototypes,
Skip Montanaro6dead952003-09-25 14:50:04 +000016423 which can conflict with char $ac_func (); below.
16424 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000016425 <limits.h> exists even on freestanding compilers. */
16426
16427#ifdef __STDC__
Skip Montanaro6dead952003-09-25 14:50:04 +000016428# include <limits.h>
16429#else
16430# include <assert.h>
16431#endif
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000016432
16433#undef $ac_func
16434
Martin v. Löwiseba40652007-08-30 20:10:57 +000016435/* Override any GCC internal prototype to avoid an error.
16436 Use char because int might match the return type of a GCC
16437 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +000016438#ifdef __cplusplus
16439extern "C"
16440#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000016441char $ac_func ();
Guido van Rossume97ee181999-12-20 21:27:22 +000016442/* The GNU C library defines this for functions which it implements
16443 to always fail with ENOSYS. Some functions are actually named
16444 something starting with __ and the normal name is an alias. */
Martin v. Löwiseba40652007-08-30 20:10:57 +000016445#if defined __stub_$ac_func || defined __stub___$ac_func
Guido van Rossume97ee181999-12-20 21:27:22 +000016446choke me
Guido van Rossume97ee181999-12-20 21:27:22 +000016447#endif
16448
Skip Montanaro6dead952003-09-25 14:50:04 +000016449int
16450main ()
16451{
Martin v. Löwiseba40652007-08-30 20:10:57 +000016452return $ac_func ();
Martin v. Löwis11437992002-04-12 09:54:03 +000016453 ;
16454 return 0;
16455}
16456_ACEOF
16457rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000016458if { (ac_try="$ac_link"
16459case "(($ac_try" in
16460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16461 *) ac_try_echo=$ac_try;;
16462esac
16463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16464 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000016465 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000016466 grep -v '^ *+' conftest.er1 >conftest.err
16467 rm -f conftest.er1
16468 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000016469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000016470 (exit $ac_status); } && {
16471 test -z "$ac_c_werror_flag" ||
16472 test ! -s conftest.err
16473 } && test -s conftest$ac_exeext &&
16474 $as_test_x conftest$ac_exeext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000016475 eval "$as_ac_var=yes"
Michael W. Hudson54241132001-12-07 15:38:26 +000016476else
Martin v. Löwis11437992002-04-12 09:54:03 +000016477 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000016478sed 's/^/| /' conftest.$ac_ext >&5
16479
Martin v. Löwiseba40652007-08-30 20:10:57 +000016480 eval "$as_ac_var=no"
Michael W. Hudson54241132001-12-07 15:38:26 +000016481fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000016482
16483rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000016484 conftest$ac_exeext conftest.$ac_ext
Michael W. Hudson54241132001-12-07 15:38:26 +000016485fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000016486ac_res=`eval echo '${'$as_ac_var'}'`
16487 { echo "$as_me:$LINENO: result: $ac_res" >&5
16488echo "${ECHO_T}$ac_res" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000016489if test `eval echo '${'$as_ac_var'}'` = yes; then
16490 cat >>confdefs.h <<_ACEOF
16491#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16492_ACEOF
Guido van Rossume97ee181999-12-20 21:27:22 +000016493
Guido van Rossume97ee181999-12-20 21:27:22 +000016494fi
Thomas Wouters3a584202000-08-05 23:28:51 +000016495done
Guido van Rossume97ee181999-12-20 21:27:22 +000016496
Michael W. Hudson54241132001-12-07 15:38:26 +000016497
Guido van Rossume97ee181999-12-20 21:27:22 +000016498# DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
16499# loading of modules.
16500
Martin v. Löwiseba40652007-08-30 20:10:57 +000016501{ echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
16502echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6; }
Guido van Rossume97ee181999-12-20 21:27:22 +000016503if test -z "$DYNLOADFILE"
16504then
16505 case $ac_sys_system/$ac_sys_release in
Martin v. Löwisc19c5a62003-11-18 20:00:44 +000016506 AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
16507 if test "$ac_cv_func_dlopen" = yes
16508 then DYNLOADFILE="dynload_shlib.o"
16509 else DYNLOADFILE="dynload_aix.o"
16510 fi
16511 ;;
Guido van Rossume97ee181999-12-20 21:27:22 +000016512 BeOS*) DYNLOADFILE="dynload_beos.o";;
16513 hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
Anthony Baxter82201742006-04-09 15:07:40 +000016514 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
16515 Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";;
Martin v. Löwisf90ae202002-06-11 06:22:31 +000016516 atheos*) DYNLOADFILE="dynload_atheos.o";;
Guido van Rossume97ee181999-12-20 21:27:22 +000016517 *)
16518 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
16519 # out any dynamic loading
16520 if test "$ac_cv_func_dlopen" = yes
16521 then DYNLOADFILE="dynload_shlib.o"
16522 else DYNLOADFILE="dynload_stub.o"
16523 fi
16524 ;;
16525 esac
16526fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000016527{ echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
16528echo "${ECHO_T}$DYNLOADFILE" >&6; }
Guido van Rossume97ee181999-12-20 21:27:22 +000016529if test "$DYNLOADFILE" != "dynload_stub.o"
16530then
Martin v. Löwis11437992002-04-12 09:54:03 +000016531
16532cat >>confdefs.h <<\_ACEOF
Guido van Rossume97ee181999-12-20 21:27:22 +000016533#define HAVE_DYNAMIC_LOADING 1
Martin v. Löwis11437992002-04-12 09:54:03 +000016534_ACEOF
Guido van Rossume97ee181999-12-20 21:27:22 +000016535
16536fi
16537
Neil Schemenauer4e425612001-06-19 15:44:15 +000016538# MACHDEP_OBJS can be set to platform-specific object files needed by Python
16539
Michael W. Hudson54241132001-12-07 15:38:26 +000016540
Martin v. Löwiseba40652007-08-30 20:10:57 +000016541{ echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
16542echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6; }
Neil Schemenauer4e425612001-06-19 15:44:15 +000016543if test -z "$MACHDEP_OBJS"
16544then
Jack Jansene578a632001-08-15 01:27:14 +000016545 MACHDEP_OBJS=$extra_machdep_objs
16546else
16547 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
Neil Schemenauer4e425612001-06-19 15:44:15 +000016548fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000016549{ echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
16550echo "${ECHO_T}MACHDEP_OBJS" >&6; }
Neil Schemenauer4e425612001-06-19 15:44:15 +000016551
Guido van Rossum627b2d71993-12-24 10:39:16 +000016552# checks for library functions
Martin v. Löwis11437992002-04-12 09:54:03 +000016553
16554
16555
16556
16557
16558
16559
16560
16561
16562
16563
16564
16565
16566
16567
16568
16569
16570
16571
16572
16573
16574
16575
16576
16577
16578
16579
16580
16581
16582
16583
16584
16585
16586
16587
16588
16589
16590
16591
16592
16593
16594
16595
16596
16597
16598
16599
16600
16601
16602
16603
16604
16605
16606
16607
16608
16609
16610
16611
16612
16613
16614
16615
16616
16617
16618
16619
16620
16621
16622
16623
Martin v. Löwisd6320502004-08-12 13:45:08 +000016624
Martin v. Löwisc3001752005-01-23 09:27:24 +000016625
16626
Neal Norwitz05a45592006-03-20 06:30:08 +000016627
16628
Martin v. Löwis382abef2007-02-19 10:55:19 +000016629
16630
Christian Heimes36281872007-11-30 21:11:28 +000016631
Martin v. Löwisaef18b12008-03-24 13:31:16 +000016632
16633
Jesse Noller355b1262009-04-02 00:03:28 +000016634
16635
16636
16637
Martin v. Löwisaef18b12008-03-24 13:31:16 +000016638for ac_func in alarm setitimer getitimer bind_textdomain_codeset chown \
16639 clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \
Martin v. Löwis438b5342002-12-27 10:16:42 +000016640 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
Martin v. Löwisc3001752005-01-23 09:27:24 +000016641 getpriority getpwent getspnam getspent getsid getwd \
Martin v. Löwisa51d5c82007-12-04 08:37:59 +000016642 kill killpg lchmod lchown lstat mkfifo mknod mktime \
Martin v. Löwisa5f09072002-10-11 05:37:59 +000016643 mremap nice pathconf pause plock poll pthread_init \
Guido van Rossum162e38c2003-02-19 15:25:10 +000016644 putenv readlink realpath \
Jesse Noller355b1262009-04-02 00:03:28 +000016645 select sem_open sem_timedwait sem_getvalue sem_unlink setegid seteuid \
16646 setgid \
Martin v. Löwis4daacb12003-03-28 18:37:01 +000016647 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
Skip Montanaro7e11a012004-02-07 12:55:46 +000016648 sigaction siginterrupt sigrelse strftime \
Michael W. Hudson34f20ea2002-05-27 15:08:24 +000016649 sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
Neal Norwitz05a45592006-03-20 06:30:08 +000016650 truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty
Guido van Rossum627b2d71993-12-24 10:39:16 +000016651do
Martin v. Löwis11437992002-04-12 09:54:03 +000016652as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Martin v. Löwiseba40652007-08-30 20:10:57 +000016653{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16654echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16655if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Martin v. Löwis11437992002-04-12 09:54:03 +000016656 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +000016657else
Martin v. Löwis11437992002-04-12 09:54:03 +000016658 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000016659/* confdefs.h. */
16660_ACEOF
16661cat confdefs.h >>conftest.$ac_ext
16662cat >>conftest.$ac_ext <<_ACEOF
16663/* end confdefs.h. */
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000016664/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16665 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16666#define $ac_func innocuous_$ac_func
16667
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +000016668/* System header to define __stub macros and hopefully few prototypes,
Skip Montanaro6dead952003-09-25 14:50:04 +000016669 which can conflict with char $ac_func (); below.
16670 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000016671 <limits.h> exists even on freestanding compilers. */
16672
16673#ifdef __STDC__
Skip Montanaro6dead952003-09-25 14:50:04 +000016674# include <limits.h>
16675#else
16676# include <assert.h>
16677#endif
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000016678
16679#undef $ac_func
16680
Martin v. Löwiseba40652007-08-30 20:10:57 +000016681/* Override any GCC internal prototype to avoid an error.
16682 Use char because int might match the return type of a GCC
16683 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +000016684#ifdef __cplusplus
16685extern "C"
16686#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000016687char $ac_func ();
Guido van Rossum627b2d71993-12-24 10:39:16 +000016688/* The GNU C library defines this for functions which it implements
16689 to always fail with ENOSYS. Some functions are actually named
16690 something starting with __ and the normal name is an alias. */
Martin v. Löwiseba40652007-08-30 20:10:57 +000016691#if defined __stub_$ac_func || defined __stub___$ac_func
Guido van Rossum627b2d71993-12-24 10:39:16 +000016692choke me
Guido van Rossum627b2d71993-12-24 10:39:16 +000016693#endif
Guido van Rossum76be6ed1995-01-02 18:33:54 +000016694
Skip Montanaro6dead952003-09-25 14:50:04 +000016695int
16696main ()
16697{
Martin v. Löwiseba40652007-08-30 20:10:57 +000016698return $ac_func ();
Martin v. Löwis11437992002-04-12 09:54:03 +000016699 ;
16700 return 0;
16701}
16702_ACEOF
16703rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000016704if { (ac_try="$ac_link"
16705case "(($ac_try" in
16706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16707 *) ac_try_echo=$ac_try;;
16708esac
16709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16710 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000016711 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000016712 grep -v '^ *+' conftest.er1 >conftest.err
16713 rm -f conftest.er1
16714 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000016715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000016716 (exit $ac_status); } && {
16717 test -z "$ac_c_werror_flag" ||
16718 test ! -s conftest.err
16719 } && test -s conftest$ac_exeext &&
16720 $as_test_x conftest$ac_exeext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000016721 eval "$as_ac_var=yes"
Michael W. Hudson54241132001-12-07 15:38:26 +000016722else
Martin v. Löwis11437992002-04-12 09:54:03 +000016723 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000016724sed 's/^/| /' conftest.$ac_ext >&5
16725
Martin v. Löwiseba40652007-08-30 20:10:57 +000016726 eval "$as_ac_var=no"
Michael W. Hudson54241132001-12-07 15:38:26 +000016727fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000016728
16729rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000016730 conftest$ac_exeext conftest.$ac_ext
Michael W. Hudson54241132001-12-07 15:38:26 +000016731fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000016732ac_res=`eval echo '${'$as_ac_var'}'`
16733 { echo "$as_me:$LINENO: result: $ac_res" >&5
16734echo "${ECHO_T}$ac_res" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000016735if test `eval echo '${'$as_ac_var'}'` = yes; then
16736 cat >>confdefs.h <<_ACEOF
16737#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16738_ACEOF
Fred Drake8cef4cf2000-06-28 16:40:38 +000016739
Guido van Rossumd0b69ec2001-09-10 14:10:54 +000016740fi
16741done
16742
Michael W. Hudson54241132001-12-07 15:38:26 +000016743
Martin v. Löwisc8ad7cc2002-11-11 13:23:45 +000016744# For some functions, having a definition is not sufficient, since
16745# we want to take their address.
Martin v. Löwiseba40652007-08-30 20:10:57 +000016746{ echo "$as_me:$LINENO: checking for chroot" >&5
16747echo $ECHO_N "checking for chroot... $ECHO_C" >&6; }
Martin v. Löwisc8ad7cc2002-11-11 13:23:45 +000016748cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000016749/* confdefs.h. */
16750_ACEOF
16751cat confdefs.h >>conftest.$ac_ext
16752cat >>conftest.$ac_ext <<_ACEOF
16753/* end confdefs.h. */
Martin v. Löwisc8ad7cc2002-11-11 13:23:45 +000016754#include <unistd.h>
Martin v. Löwisc8ad7cc2002-11-11 13:23:45 +000016755int
16756main ()
16757{
16758void *x=chroot
16759 ;
16760 return 0;
16761}
16762_ACEOF
16763rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000016764if { (ac_try="$ac_compile"
16765case "(($ac_try" in
16766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16767 *) ac_try_echo=$ac_try;;
16768esac
16769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16770 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwisc8ad7cc2002-11-11 13:23:45 +000016771 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000016772 grep -v '^ *+' conftest.er1 >conftest.err
16773 rm -f conftest.er1
16774 cat conftest.err >&5
Martin v. Löwisc8ad7cc2002-11-11 13:23:45 +000016775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000016776 (exit $ac_status); } && {
16777 test -z "$ac_c_werror_flag" ||
16778 test ! -s conftest.err
16779 } && test -s conftest.$ac_objext; then
Martin v. Löwisc8ad7cc2002-11-11 13:23:45 +000016780
16781cat >>confdefs.h <<\_ACEOF
16782#define HAVE_CHROOT 1
16783_ACEOF
16784
Martin v. Löwiseba40652007-08-30 20:10:57 +000016785 { echo "$as_me:$LINENO: result: yes" >&5
16786echo "${ECHO_T}yes" >&6; }
Martin v. Löwisc8ad7cc2002-11-11 13:23:45 +000016787else
16788 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000016789sed 's/^/| /' conftest.$ac_ext >&5
16790
Martin v. Löwiseba40652007-08-30 20:10:57 +000016791 { echo "$as_me:$LINENO: result: no" >&5
16792echo "${ECHO_T}no" >&6; }
Martin v. Löwisc8ad7cc2002-11-11 13:23:45 +000016793
16794fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000016795
16796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16797{ echo "$as_me:$LINENO: checking for link" >&5
16798echo $ECHO_N "checking for link... $ECHO_C" >&6; }
Martin v. Löwisc8ad7cc2002-11-11 13:23:45 +000016799cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000016800/* confdefs.h. */
16801_ACEOF
16802cat confdefs.h >>conftest.$ac_ext
16803cat >>conftest.$ac_ext <<_ACEOF
16804/* end confdefs.h. */
Martin v. Löwisc8ad7cc2002-11-11 13:23:45 +000016805#include <unistd.h>
Martin v. Löwisc8ad7cc2002-11-11 13:23:45 +000016806int
16807main ()
16808{
16809void *x=link
16810 ;
16811 return 0;
16812}
16813_ACEOF
16814rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000016815if { (ac_try="$ac_compile"
16816case "(($ac_try" in
16817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16818 *) ac_try_echo=$ac_try;;
16819esac
16820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16821 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwisc8ad7cc2002-11-11 13:23:45 +000016822 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000016823 grep -v '^ *+' conftest.er1 >conftest.err
16824 rm -f conftest.er1
16825 cat conftest.err >&5
Martin v. Löwisc8ad7cc2002-11-11 13:23:45 +000016826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000016827 (exit $ac_status); } && {
16828 test -z "$ac_c_werror_flag" ||
16829 test ! -s conftest.err
16830 } && test -s conftest.$ac_objext; then
Martin v. Löwisc8ad7cc2002-11-11 13:23:45 +000016831
16832cat >>confdefs.h <<\_ACEOF
16833#define HAVE_LINK 1
16834_ACEOF
16835
Martin v. Löwiseba40652007-08-30 20:10:57 +000016836 { echo "$as_me:$LINENO: result: yes" >&5
16837echo "${ECHO_T}yes" >&6; }
Martin v. Löwisc8ad7cc2002-11-11 13:23:45 +000016838else
16839 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000016840sed 's/^/| /' conftest.$ac_ext >&5
16841
Martin v. Löwiseba40652007-08-30 20:10:57 +000016842 { echo "$as_me:$LINENO: result: no" >&5
16843echo "${ECHO_T}no" >&6; }
Martin v. Löwisc8ad7cc2002-11-11 13:23:45 +000016844
16845fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000016846
16847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16848{ echo "$as_me:$LINENO: checking for symlink" >&5
16849echo $ECHO_N "checking for symlink... $ECHO_C" >&6; }
Martin v. Löwisc8ad7cc2002-11-11 13:23:45 +000016850cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000016851/* confdefs.h. */
16852_ACEOF
16853cat confdefs.h >>conftest.$ac_ext
16854cat >>conftest.$ac_ext <<_ACEOF
16855/* end confdefs.h. */
Martin v. Löwisc8ad7cc2002-11-11 13:23:45 +000016856#include <unistd.h>
Martin v. Löwisc8ad7cc2002-11-11 13:23:45 +000016857int
16858main ()
16859{
16860void *x=symlink
16861 ;
16862 return 0;
16863}
16864_ACEOF
16865rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000016866if { (ac_try="$ac_compile"
16867case "(($ac_try" in
16868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16869 *) ac_try_echo=$ac_try;;
16870esac
16871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16872 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwisc8ad7cc2002-11-11 13:23:45 +000016873 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000016874 grep -v '^ *+' conftest.er1 >conftest.err
16875 rm -f conftest.er1
16876 cat conftest.err >&5
Martin v. Löwisc8ad7cc2002-11-11 13:23:45 +000016877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000016878 (exit $ac_status); } && {
16879 test -z "$ac_c_werror_flag" ||
16880 test ! -s conftest.err
16881 } && test -s conftest.$ac_objext; then
Martin v. Löwisc8ad7cc2002-11-11 13:23:45 +000016882
16883cat >>confdefs.h <<\_ACEOF
16884#define HAVE_SYMLINK 1
16885_ACEOF
16886
Martin v. Löwiseba40652007-08-30 20:10:57 +000016887 { echo "$as_me:$LINENO: result: yes" >&5
16888echo "${ECHO_T}yes" >&6; }
Martin v. Löwisc8ad7cc2002-11-11 13:23:45 +000016889else
16890 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000016891sed 's/^/| /' conftest.$ac_ext >&5
16892
Martin v. Löwiseba40652007-08-30 20:10:57 +000016893 { echo "$as_me:$LINENO: result: no" >&5
16894echo "${ECHO_T}no" >&6; }
Martin v. Löwisc8ad7cc2002-11-11 13:23:45 +000016895
16896fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000016897
16898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16899{ echo "$as_me:$LINENO: checking for fchdir" >&5
16900echo $ECHO_N "checking for fchdir... $ECHO_C" >&6; }
Martin v. Löwisa64988c2003-09-20 15:30:20 +000016901cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000016902/* confdefs.h. */
16903_ACEOF
16904cat confdefs.h >>conftest.$ac_ext
16905cat >>conftest.$ac_ext <<_ACEOF
16906/* end confdefs.h. */
Martin v. Löwisa64988c2003-09-20 15:30:20 +000016907#include <unistd.h>
16908int
16909main ()
16910{
16911void *x=fchdir
16912 ;
16913 return 0;
16914}
16915_ACEOF
16916rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000016917if { (ac_try="$ac_compile"
16918case "(($ac_try" in
16919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16920 *) ac_try_echo=$ac_try;;
16921esac
16922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16923 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwisa64988c2003-09-20 15:30:20 +000016924 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000016925 grep -v '^ *+' conftest.er1 >conftest.err
16926 rm -f conftest.er1
16927 cat conftest.err >&5
Martin v. Löwisa64988c2003-09-20 15:30:20 +000016928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000016929 (exit $ac_status); } && {
16930 test -z "$ac_c_werror_flag" ||
16931 test ! -s conftest.err
16932 } && test -s conftest.$ac_objext; then
Martin v. Löwisa64988c2003-09-20 15:30:20 +000016933
16934cat >>confdefs.h <<\_ACEOF
16935#define HAVE_FCHDIR 1
16936_ACEOF
16937
Martin v. Löwiseba40652007-08-30 20:10:57 +000016938 { echo "$as_me:$LINENO: result: yes" >&5
16939echo "${ECHO_T}yes" >&6; }
Martin v. Löwisa64988c2003-09-20 15:30:20 +000016940else
16941 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000016942sed 's/^/| /' conftest.$ac_ext >&5
16943
Martin v. Löwiseba40652007-08-30 20:10:57 +000016944 { echo "$as_me:$LINENO: result: no" >&5
16945echo "${ECHO_T}no" >&6; }
Martin v. Löwisa64988c2003-09-20 15:30:20 +000016946
16947fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000016948
16949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16950{ echo "$as_me:$LINENO: checking for fsync" >&5
16951echo $ECHO_N "checking for fsync... $ECHO_C" >&6; }
Martin v. Löwisa64988c2003-09-20 15:30:20 +000016952cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000016953/* confdefs.h. */
16954_ACEOF
16955cat confdefs.h >>conftest.$ac_ext
16956cat >>conftest.$ac_ext <<_ACEOF
16957/* end confdefs.h. */
Martin v. Löwisa64988c2003-09-20 15:30:20 +000016958#include <unistd.h>
16959int
16960main ()
16961{
16962void *x=fsync
16963 ;
16964 return 0;
16965}
16966_ACEOF
16967rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000016968if { (ac_try="$ac_compile"
16969case "(($ac_try" in
16970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16971 *) ac_try_echo=$ac_try;;
16972esac
16973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16974 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwisa64988c2003-09-20 15:30:20 +000016975 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000016976 grep -v '^ *+' conftest.er1 >conftest.err
16977 rm -f conftest.er1
16978 cat conftest.err >&5
Martin v. Löwisa64988c2003-09-20 15:30:20 +000016979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000016980 (exit $ac_status); } && {
16981 test -z "$ac_c_werror_flag" ||
16982 test ! -s conftest.err
16983 } && test -s conftest.$ac_objext; then
Martin v. Löwisa64988c2003-09-20 15:30:20 +000016984
16985cat >>confdefs.h <<\_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000016986#define HAVE_FSYNC 1
Martin v. Löwisa64988c2003-09-20 15:30:20 +000016987_ACEOF
16988
Martin v. Löwiseba40652007-08-30 20:10:57 +000016989 { echo "$as_me:$LINENO: result: yes" >&5
16990echo "${ECHO_T}yes" >&6; }
Martin v. Löwisa64988c2003-09-20 15:30:20 +000016991else
16992 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000016993sed 's/^/| /' conftest.$ac_ext >&5
16994
Martin v. Löwiseba40652007-08-30 20:10:57 +000016995 { echo "$as_me:$LINENO: result: no" >&5
16996echo "${ECHO_T}no" >&6; }
Martin v. Löwisa64988c2003-09-20 15:30:20 +000016997
16998fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000016999
17000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17001{ echo "$as_me:$LINENO: checking for fdatasync" >&5
17002echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; }
Martin v. Löwisa64988c2003-09-20 15:30:20 +000017003cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000017004/* confdefs.h. */
17005_ACEOF
17006cat confdefs.h >>conftest.$ac_ext
17007cat >>conftest.$ac_ext <<_ACEOF
17008/* end confdefs.h. */
Martin v. Löwisa64988c2003-09-20 15:30:20 +000017009#include <unistd.h>
17010int
17011main ()
17012{
17013void *x=fdatasync
17014 ;
17015 return 0;
17016}
17017_ACEOF
17018rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000017019if { (ac_try="$ac_compile"
17020case "(($ac_try" in
17021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17022 *) ac_try_echo=$ac_try;;
17023esac
17024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17025 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwisa64988c2003-09-20 15:30:20 +000017026 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000017027 grep -v '^ *+' conftest.er1 >conftest.err
17028 rm -f conftest.er1
17029 cat conftest.err >&5
Martin v. Löwisa64988c2003-09-20 15:30:20 +000017030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000017031 (exit $ac_status); } && {
17032 test -z "$ac_c_werror_flag" ||
17033 test ! -s conftest.err
17034 } && test -s conftest.$ac_objext; then
Martin v. Löwisa64988c2003-09-20 15:30:20 +000017035
17036cat >>confdefs.h <<\_ACEOF
17037#define HAVE_FDATASYNC 1
17038_ACEOF
17039
Martin v. Löwiseba40652007-08-30 20:10:57 +000017040 { echo "$as_me:$LINENO: result: yes" >&5
17041echo "${ECHO_T}yes" >&6; }
Martin v. Löwisa64988c2003-09-20 15:30:20 +000017042else
17043 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000017044sed 's/^/| /' conftest.$ac_ext >&5
17045
Martin v. Löwiseba40652007-08-30 20:10:57 +000017046 { echo "$as_me:$LINENO: result: no" >&5
17047echo "${ECHO_T}no" >&6; }
Martin v. Löwisa64988c2003-09-20 15:30:20 +000017048
17049fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000017050
17051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Christian Heimes0e9ab5f2008-03-21 23:49:44 +000017052{ echo "$as_me:$LINENO: checking for epoll" >&5
17053echo $ECHO_N "checking for epoll... $ECHO_C" >&6; }
17054cat >conftest.$ac_ext <<_ACEOF
17055/* confdefs.h. */
17056_ACEOF
17057cat confdefs.h >>conftest.$ac_ext
17058cat >>conftest.$ac_ext <<_ACEOF
17059/* end confdefs.h. */
17060#include <sys/epoll.h>
17061int
17062main ()
17063{
17064void *x=epoll_create
17065 ;
17066 return 0;
17067}
17068_ACEOF
17069rm -f conftest.$ac_objext
17070if { (ac_try="$ac_compile"
17071case "(($ac_try" in
17072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17073 *) ac_try_echo=$ac_try;;
17074esac
17075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17076 (eval "$ac_compile") 2>conftest.er1
17077 ac_status=$?
17078 grep -v '^ *+' conftest.er1 >conftest.err
17079 rm -f conftest.er1
17080 cat conftest.err >&5
17081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17082 (exit $ac_status); } && {
17083 test -z "$ac_c_werror_flag" ||
17084 test ! -s conftest.err
17085 } && test -s conftest.$ac_objext; then
Martin v. Löwisc8ad7cc2002-11-11 13:23:45 +000017086
Christian Heimes0e9ab5f2008-03-21 23:49:44 +000017087cat >>confdefs.h <<\_ACEOF
17088#define HAVE_EPOLL 1
17089_ACEOF
17090
17091 { echo "$as_me:$LINENO: result: yes" >&5
17092echo "${ECHO_T}yes" >&6; }
17093else
17094 echo "$as_me: failed program was:" >&5
17095sed 's/^/| /' conftest.$ac_ext >&5
17096
17097 { echo "$as_me:$LINENO: result: no" >&5
17098echo "${ECHO_T}no" >&6; }
17099
17100fi
17101
17102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17103{ echo "$as_me:$LINENO: checking for kqueue" >&5
17104echo $ECHO_N "checking for kqueue... $ECHO_C" >&6; }
17105cat >conftest.$ac_ext <<_ACEOF
17106/* confdefs.h. */
17107_ACEOF
17108cat confdefs.h >>conftest.$ac_ext
17109cat >>conftest.$ac_ext <<_ACEOF
17110/* end confdefs.h. */
17111
17112#include <sys/types.h>
17113#include <sys/event.h>
17114
17115int
17116main ()
17117{
17118int x=kqueue()
17119 ;
17120 return 0;
17121}
17122_ACEOF
17123rm -f conftest.$ac_objext
17124if { (ac_try="$ac_compile"
17125case "(($ac_try" in
17126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17127 *) ac_try_echo=$ac_try;;
17128esac
17129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17130 (eval "$ac_compile") 2>conftest.er1
17131 ac_status=$?
17132 grep -v '^ *+' conftest.er1 >conftest.err
17133 rm -f conftest.er1
17134 cat conftest.err >&5
17135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17136 (exit $ac_status); } && {
17137 test -z "$ac_c_werror_flag" ||
17138 test ! -s conftest.err
17139 } && test -s conftest.$ac_objext; then
17140
17141cat >>confdefs.h <<\_ACEOF
17142#define HAVE_KQUEUE 1
17143_ACEOF
17144
17145 { echo "$as_me:$LINENO: result: yes" >&5
17146echo "${ECHO_T}yes" >&6; }
17147else
17148 echo "$as_me: failed program was:" >&5
17149sed 's/^/| /' conftest.$ac_ext >&5
17150
17151 { echo "$as_me:$LINENO: result: no" >&5
17152echo "${ECHO_T}no" >&6; }
17153
17154fi
17155
17156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwisd5843682002-11-21 20:41:28 +000017157# On some systems (eg. FreeBSD 5), we would find a definition of the
17158# functions ctermid_r, setgroups in the library, but no prototype
17159# (e.g. because we use _XOPEN_SOURCE). See whether we can take their
17160# address to avoid compiler warnings and potential miscompilations
17161# because of the missing prototypes.
17162
Martin v. Löwiseba40652007-08-30 20:10:57 +000017163{ echo "$as_me:$LINENO: checking for ctermid_r" >&5
17164echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6; }
Martin v. Löwisd5843682002-11-21 20:41:28 +000017165cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000017166/* confdefs.h. */
17167_ACEOF
17168cat confdefs.h >>conftest.$ac_ext
17169cat >>conftest.$ac_ext <<_ACEOF
17170/* end confdefs.h. */
Martin v. Löwisd5843682002-11-21 20:41:28 +000017171
17172#include "confdefs.h"
17173#include <stdio.h>
17174
Martin v. Löwisd5843682002-11-21 20:41:28 +000017175int
17176main ()
17177{
17178void* p = ctermid_r
17179 ;
17180 return 0;
17181}
17182_ACEOF
17183rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000017184if { (ac_try="$ac_compile"
17185case "(($ac_try" in
17186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17187 *) ac_try_echo=$ac_try;;
17188esac
17189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17190 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwisd5843682002-11-21 20:41:28 +000017191 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000017192 grep -v '^ *+' conftest.er1 >conftest.err
17193 rm -f conftest.er1
17194 cat conftest.err >&5
Martin v. Löwisd5843682002-11-21 20:41:28 +000017195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000017196 (exit $ac_status); } && {
17197 test -z "$ac_c_werror_flag" ||
17198 test ! -s conftest.err
17199 } && test -s conftest.$ac_objext; then
Martin v. Löwisd5843682002-11-21 20:41:28 +000017200
17201cat >>confdefs.h <<\_ACEOF
17202#define HAVE_CTERMID_R 1
17203_ACEOF
17204
Martin v. Löwiseba40652007-08-30 20:10:57 +000017205 { echo "$as_me:$LINENO: result: yes" >&5
17206echo "${ECHO_T}yes" >&6; }
Martin v. Löwisd5843682002-11-21 20:41:28 +000017207else
17208 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000017209sed 's/^/| /' conftest.$ac_ext >&5
17210
Martin v. Löwiseba40652007-08-30 20:10:57 +000017211 { echo "$as_me:$LINENO: result: no" >&5
17212echo "${ECHO_T}no" >&6; }
Martin v. Löwisd5843682002-11-21 20:41:28 +000017213
17214fi
Martin v. Löwisd5843682002-11-21 20:41:28 +000017215
Martin v. Löwiseba40652007-08-30 20:10:57 +000017216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17217
17218{ echo "$as_me:$LINENO: checking for flock" >&5
17219echo $ECHO_N "checking for flock... $ECHO_C" >&6; }
Martin v. Löwisf26d63b2003-03-30 17:23:49 +000017220cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000017221/* confdefs.h. */
17222_ACEOF
17223cat confdefs.h >>conftest.$ac_ext
17224cat >>conftest.$ac_ext <<_ACEOF
17225/* end confdefs.h. */
Martin v. Löwisf26d63b2003-03-30 17:23:49 +000017226
17227#include "confdefs.h"
17228#include <sys/file.h>
17229
Martin v. Löwisf26d63b2003-03-30 17:23:49 +000017230int
17231main ()
17232{
17233void* p = flock
17234 ;
17235 return 0;
17236}
17237_ACEOF
17238rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000017239if { (ac_try="$ac_compile"
17240case "(($ac_try" in
17241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17242 *) ac_try_echo=$ac_try;;
17243esac
17244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17245 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwisf26d63b2003-03-30 17:23:49 +000017246 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000017247 grep -v '^ *+' conftest.er1 >conftest.err
17248 rm -f conftest.er1
17249 cat conftest.err >&5
Martin v. Löwisf26d63b2003-03-30 17:23:49 +000017250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000017251 (exit $ac_status); } && {
17252 test -z "$ac_c_werror_flag" ||
17253 test ! -s conftest.err
17254 } && test -s conftest.$ac_objext; then
Martin v. Löwisf26d63b2003-03-30 17:23:49 +000017255
17256cat >>confdefs.h <<\_ACEOF
17257#define HAVE_FLOCK 1
17258_ACEOF
17259
Martin v. Löwiseba40652007-08-30 20:10:57 +000017260 { echo "$as_me:$LINENO: result: yes" >&5
17261echo "${ECHO_T}yes" >&6; }
Martin v. Löwisf26d63b2003-03-30 17:23:49 +000017262else
17263 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000017264sed 's/^/| /' conftest.$ac_ext >&5
17265
Martin v. Löwiseba40652007-08-30 20:10:57 +000017266 { echo "$as_me:$LINENO: result: no" >&5
17267echo "${ECHO_T}no" >&6; }
Martin v. Löwisf26d63b2003-03-30 17:23:49 +000017268
17269fi
Martin v. Löwisf26d63b2003-03-30 17:23:49 +000017270
Martin v. Löwiseba40652007-08-30 20:10:57 +000017271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17272
17273{ echo "$as_me:$LINENO: checking for getpagesize" >&5
17274echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; }
Martin v. Löwisf26d63b2003-03-30 17:23:49 +000017275cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000017276/* confdefs.h. */
17277_ACEOF
17278cat confdefs.h >>conftest.$ac_ext
17279cat >>conftest.$ac_ext <<_ACEOF
17280/* end confdefs.h. */
Martin v. Löwisf26d63b2003-03-30 17:23:49 +000017281
17282#include "confdefs.h"
17283#include <unistd.h>
17284
Martin v. Löwisf26d63b2003-03-30 17:23:49 +000017285int
17286main ()
17287{
17288void* p = getpagesize
17289 ;
17290 return 0;
17291}
17292_ACEOF
17293rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000017294if { (ac_try="$ac_compile"
17295case "(($ac_try" in
17296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17297 *) ac_try_echo=$ac_try;;
17298esac
17299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17300 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwisf26d63b2003-03-30 17:23:49 +000017301 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000017302 grep -v '^ *+' conftest.er1 >conftest.err
17303 rm -f conftest.er1
17304 cat conftest.err >&5
Martin v. Löwisf26d63b2003-03-30 17:23:49 +000017305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000017306 (exit $ac_status); } && {
17307 test -z "$ac_c_werror_flag" ||
17308 test ! -s conftest.err
17309 } && test -s conftest.$ac_objext; then
Martin v. Löwisf26d63b2003-03-30 17:23:49 +000017310
17311cat >>confdefs.h <<\_ACEOF
17312#define HAVE_GETPAGESIZE 1
17313_ACEOF
17314
Martin v. Löwiseba40652007-08-30 20:10:57 +000017315 { echo "$as_me:$LINENO: result: yes" >&5
17316echo "${ECHO_T}yes" >&6; }
Martin v. Löwisf26d63b2003-03-30 17:23:49 +000017317else
17318 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000017319sed 's/^/| /' conftest.$ac_ext >&5
17320
Martin v. Löwiseba40652007-08-30 20:10:57 +000017321 { echo "$as_me:$LINENO: result: no" >&5
17322echo "${ECHO_T}no" >&6; }
Martin v. Löwisf26d63b2003-03-30 17:23:49 +000017323
17324fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000017325
17326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwisf26d63b2003-03-30 17:23:49 +000017327
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000017328for ac_prog in true
17329do
17330 # Extract the first word of "$ac_prog", so it can be a program name with args.
17331set dummy $ac_prog; ac_word=$2
Martin v. Löwiseba40652007-08-30 20:10:57 +000017332{ echo "$as_me:$LINENO: checking for $ac_word" >&5
17333echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000017334if test "${ac_cv_prog_TRUE+set}" = set; then
17335 echo $ECHO_N "(cached) $ECHO_C" >&6
17336else
17337 if test -n "$TRUE"; then
17338 ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
17339else
17340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17341for as_dir in $PATH
17342do
17343 IFS=$as_save_IFS
17344 test -z "$as_dir" && as_dir=.
17345 for ac_exec_ext in '' $ac_executable_extensions; do
Martin v. Löwiseba40652007-08-30 20:10:57 +000017346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000017347 ac_cv_prog_TRUE="$ac_prog"
17348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17349 break 2
17350 fi
17351done
17352done
Martin v. Löwiseba40652007-08-30 20:10:57 +000017353IFS=$as_save_IFS
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000017354
17355fi
17356fi
17357TRUE=$ac_cv_prog_TRUE
17358if test -n "$TRUE"; then
Martin v. Löwiseba40652007-08-30 20:10:57 +000017359 { echo "$as_me:$LINENO: result: $TRUE" >&5
17360echo "${ECHO_T}$TRUE" >&6; }
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000017361else
Martin v. Löwiseba40652007-08-30 20:10:57 +000017362 { echo "$as_me:$LINENO: result: no" >&5
17363echo "${ECHO_T}no" >&6; }
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000017364fi
17365
Martin v. Löwiseba40652007-08-30 20:10:57 +000017366
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000017367 test -n "$TRUE" && break
17368done
17369test -n "$TRUE" || TRUE="/bin/true"
17370
17371
Martin v. Löwiseba40652007-08-30 20:10:57 +000017372{ echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
17373echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6; }
Martin v. Löwis95c419b2003-05-03 12:10:48 +000017374if test "${ac_cv_lib_c_inet_aton+set}" = set; then
17375 echo $ECHO_N "(cached) $ECHO_C" >&6
17376else
17377 ac_check_lib_save_LIBS=$LIBS
17378LIBS="-lc $LIBS"
17379cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000017380/* confdefs.h. */
17381_ACEOF
17382cat confdefs.h >>conftest.$ac_ext
17383cat >>conftest.$ac_ext <<_ACEOF
17384/* end confdefs.h. */
Martin v. Löwis95c419b2003-05-03 12:10:48 +000017385
Martin v. Löwiseba40652007-08-30 20:10:57 +000017386/* Override any GCC internal prototype to avoid an error.
17387 Use char because int might match the return type of a GCC
17388 builtin and then its argument prototype would still apply. */
Martin v. Löwis95c419b2003-05-03 12:10:48 +000017389#ifdef __cplusplus
17390extern "C"
17391#endif
Martin v. Löwis95c419b2003-05-03 12:10:48 +000017392char inet_aton ();
Martin v. Löwis95c419b2003-05-03 12:10:48 +000017393int
17394main ()
17395{
Martin v. Löwiseba40652007-08-30 20:10:57 +000017396return inet_aton ();
Martin v. Löwis95c419b2003-05-03 12:10:48 +000017397 ;
17398 return 0;
17399}
17400_ACEOF
17401rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000017402if { (ac_try="$ac_link"
17403case "(($ac_try" in
17404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17405 *) ac_try_echo=$ac_try;;
17406esac
17407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17408 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis95c419b2003-05-03 12:10:48 +000017409 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000017410 grep -v '^ *+' conftest.er1 >conftest.err
17411 rm -f conftest.er1
17412 cat conftest.err >&5
Martin v. Löwis95c419b2003-05-03 12:10:48 +000017413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000017414 (exit $ac_status); } && {
17415 test -z "$ac_c_werror_flag" ||
17416 test ! -s conftest.err
17417 } && test -s conftest$ac_exeext &&
17418 $as_test_x conftest$ac_exeext; then
Martin v. Löwis95c419b2003-05-03 12:10:48 +000017419 ac_cv_lib_c_inet_aton=yes
17420else
17421 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000017422sed 's/^/| /' conftest.$ac_ext >&5
17423
Martin v. Löwiseba40652007-08-30 20:10:57 +000017424 ac_cv_lib_c_inet_aton=no
Martin v. Löwis95c419b2003-05-03 12:10:48 +000017425fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000017426
17427rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000017428 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis95c419b2003-05-03 12:10:48 +000017429LIBS=$ac_check_lib_save_LIBS
17430fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000017431{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
17432echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6; }
Martin v. Löwis95c419b2003-05-03 12:10:48 +000017433if test $ac_cv_lib_c_inet_aton = yes; then
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000017434 $ac_cv_prog_TRUE
Martin v. Löwis95c419b2003-05-03 12:10:48 +000017435else
17436
Martin v. Löwiseba40652007-08-30 20:10:57 +000017437{ echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
17438echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
Martin v. Löwis95c419b2003-05-03 12:10:48 +000017439if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
17440 echo $ECHO_N "(cached) $ECHO_C" >&6
17441else
17442 ac_check_lib_save_LIBS=$LIBS
17443LIBS="-lresolv $LIBS"
17444cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000017445/* confdefs.h. */
17446_ACEOF
17447cat confdefs.h >>conftest.$ac_ext
17448cat >>conftest.$ac_ext <<_ACEOF
17449/* end confdefs.h. */
Martin v. Löwis95c419b2003-05-03 12:10:48 +000017450
Martin v. Löwiseba40652007-08-30 20:10:57 +000017451/* Override any GCC internal prototype to avoid an error.
17452 Use char because int might match the return type of a GCC
17453 builtin and then its argument prototype would still apply. */
Martin v. Löwis95c419b2003-05-03 12:10:48 +000017454#ifdef __cplusplus
17455extern "C"
17456#endif
Martin v. Löwis95c419b2003-05-03 12:10:48 +000017457char inet_aton ();
Martin v. Löwis95c419b2003-05-03 12:10:48 +000017458int
17459main ()
17460{
Martin v. Löwiseba40652007-08-30 20:10:57 +000017461return inet_aton ();
Martin v. Löwis95c419b2003-05-03 12:10:48 +000017462 ;
17463 return 0;
17464}
17465_ACEOF
17466rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000017467if { (ac_try="$ac_link"
17468case "(($ac_try" in
17469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17470 *) ac_try_echo=$ac_try;;
17471esac
17472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17473 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis95c419b2003-05-03 12:10:48 +000017474 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000017475 grep -v '^ *+' conftest.er1 >conftest.err
17476 rm -f conftest.er1
17477 cat conftest.err >&5
Martin v. Löwis95c419b2003-05-03 12:10:48 +000017478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000017479 (exit $ac_status); } && {
17480 test -z "$ac_c_werror_flag" ||
17481 test ! -s conftest.err
17482 } && test -s conftest$ac_exeext &&
17483 $as_test_x conftest$ac_exeext; then
Martin v. Löwis95c419b2003-05-03 12:10:48 +000017484 ac_cv_lib_resolv_inet_aton=yes
17485else
17486 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000017487sed 's/^/| /' conftest.$ac_ext >&5
17488
Martin v. Löwiseba40652007-08-30 20:10:57 +000017489 ac_cv_lib_resolv_inet_aton=no
Martin v. Löwis95c419b2003-05-03 12:10:48 +000017490fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000017491
17492rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000017493 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis95c419b2003-05-03 12:10:48 +000017494LIBS=$ac_check_lib_save_LIBS
17495fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000017496{ echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
17497echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
Martin v. Löwis95c419b2003-05-03 12:10:48 +000017498if test $ac_cv_lib_resolv_inet_aton = yes; then
17499 cat >>confdefs.h <<_ACEOF
17500#define HAVE_LIBRESOLV 1
17501_ACEOF
17502
17503 LIBS="-lresolv $LIBS"
17504
17505fi
17506
17507
17508fi
17509
17510
Martin v. Löwisa51d5c82007-12-04 08:37:59 +000017511# On Tru64, chflags seems to be present, but calling it will
17512# exit Python
17513{ echo "$as_me:$LINENO: checking for chflags" >&5
17514echo $ECHO_N "checking for chflags... $ECHO_C" >&6; }
17515if test "$cross_compiling" = yes; then
17516 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17517See \`config.log' for more details." >&5
17518echo "$as_me: error: cannot run test program while cross compiling
17519See \`config.log' for more details." >&2;}
17520 { (exit 1); exit 1; }; }
17521else
17522 cat >conftest.$ac_ext <<_ACEOF
17523/* confdefs.h. */
17524_ACEOF
17525cat confdefs.h >>conftest.$ac_ext
17526cat >>conftest.$ac_ext <<_ACEOF
17527/* end confdefs.h. */
17528
17529#include <sys/stat.h>
17530#include <unistd.h>
17531int main(int argc, char*argv[])
17532{
17533 if(chflags(argv[0], 0) != 0)
17534 return 1;
17535 return 0;
17536}
17537
17538_ACEOF
17539rm -f conftest$ac_exeext
17540if { (ac_try="$ac_link"
17541case "(($ac_try" in
17542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17543 *) ac_try_echo=$ac_try;;
17544esac
17545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17546 (eval "$ac_link") 2>&5
17547 ac_status=$?
17548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17549 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17550 { (case "(($ac_try" in
17551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17552 *) ac_try_echo=$ac_try;;
17553esac
17554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17555 (eval "$ac_try") 2>&5
17556 ac_status=$?
17557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17558 (exit $ac_status); }; }; then
17559
17560cat >>confdefs.h <<\_ACEOF
17561#define HAVE_CHFLAGS 1
17562_ACEOF
17563
17564 { echo "$as_me:$LINENO: result: yes" >&5
17565echo "${ECHO_T}yes" >&6; }
17566else
17567 echo "$as_me: program exited with status $ac_status" >&5
17568echo "$as_me: failed program was:" >&5
17569sed 's/^/| /' conftest.$ac_ext >&5
17570
17571( exit $ac_status )
17572{ echo "$as_me:$LINENO: result: no" >&5
17573echo "${ECHO_T}no" >&6; }
17574
17575fi
17576rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17577fi
17578
17579
17580
17581{ echo "$as_me:$LINENO: checking for lchflags" >&5
17582echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; }
17583if test "$cross_compiling" = yes; then
17584 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17585See \`config.log' for more details." >&5
17586echo "$as_me: error: cannot run test program while cross compiling
17587See \`config.log' for more details." >&2;}
17588 { (exit 1); exit 1; }; }
17589else
17590 cat >conftest.$ac_ext <<_ACEOF
17591/* confdefs.h. */
17592_ACEOF
17593cat confdefs.h >>conftest.$ac_ext
17594cat >>conftest.$ac_ext <<_ACEOF
17595/* end confdefs.h. */
17596
17597#include <sys/stat.h>
17598#include <unistd.h>
17599int main(int argc, char*argv[])
17600{
17601 if(lchflags(argv[0], 0) != 0)
17602 return 1;
17603 return 0;
17604}
17605
17606_ACEOF
17607rm -f conftest$ac_exeext
17608if { (ac_try="$ac_link"
17609case "(($ac_try" in
17610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17611 *) ac_try_echo=$ac_try;;
17612esac
17613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17614 (eval "$ac_link") 2>&5
17615 ac_status=$?
17616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17617 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17618 { (case "(($ac_try" in
17619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17620 *) ac_try_echo=$ac_try;;
17621esac
17622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17623 (eval "$ac_try") 2>&5
17624 ac_status=$?
17625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17626 (exit $ac_status); }; }; then
17627
17628cat >>confdefs.h <<\_ACEOF
17629#define HAVE_LCHFLAGS 1
17630_ACEOF
17631
17632 { echo "$as_me:$LINENO: result: yes" >&5
17633echo "${ECHO_T}yes" >&6; }
17634else
17635 echo "$as_me: program exited with status $ac_status" >&5
17636echo "$as_me: failed program was:" >&5
17637sed 's/^/| /' conftest.$ac_ext >&5
17638
17639( exit $ac_status )
17640{ echo "$as_me:$LINENO: result: no" >&5
17641echo "${ECHO_T}no" >&6; }
17642
17643fi
17644rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17645fi
17646
17647
17648
Ronald Oussorenf8752642006-07-06 10:13:35 +000017649case $ac_sys_system/$ac_sys_release in
17650Darwin/*)
17651 _CUR_CFLAGS="${CFLAGS}"
17652 _CUR_LDFLAGS="${LDFLAGS}"
17653 CFLAGS="${CFLAGS} -Wl,-search_paths_first"
17654 LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
17655 ;;
17656esac
17657
Martin v. Löwiseba40652007-08-30 20:10:57 +000017658{ echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5
17659echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6; }
Neal Norwitz6e73aaa2006-06-12 03:33:09 +000017660if test "${ac_cv_lib_z_inflateCopy+set}" = set; then
17661 echo $ECHO_N "(cached) $ECHO_C" >&6
17662else
17663 ac_check_lib_save_LIBS=$LIBS
17664LIBS="-lz $LIBS"
17665cat >conftest.$ac_ext <<_ACEOF
17666/* confdefs.h. */
17667_ACEOF
17668cat confdefs.h >>conftest.$ac_ext
17669cat >>conftest.$ac_ext <<_ACEOF
17670/* end confdefs.h. */
17671
Martin v. Löwiseba40652007-08-30 20:10:57 +000017672/* Override any GCC internal prototype to avoid an error.
17673 Use char because int might match the return type of a GCC
17674 builtin and then its argument prototype would still apply. */
Neal Norwitz6e73aaa2006-06-12 03:33:09 +000017675#ifdef __cplusplus
17676extern "C"
17677#endif
Neal Norwitz6e73aaa2006-06-12 03:33:09 +000017678char inflateCopy ();
17679int
17680main ()
17681{
Martin v. Löwiseba40652007-08-30 20:10:57 +000017682return inflateCopy ();
Neal Norwitz6e73aaa2006-06-12 03:33:09 +000017683 ;
17684 return 0;
17685}
17686_ACEOF
17687rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000017688if { (ac_try="$ac_link"
17689case "(($ac_try" in
17690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17691 *) ac_try_echo=$ac_try;;
17692esac
17693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17694 (eval "$ac_link") 2>conftest.er1
Neal Norwitz6e73aaa2006-06-12 03:33:09 +000017695 ac_status=$?
17696 grep -v '^ *+' conftest.er1 >conftest.err
17697 rm -f conftest.er1
17698 cat conftest.err >&5
17699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000017700 (exit $ac_status); } && {
17701 test -z "$ac_c_werror_flag" ||
17702 test ! -s conftest.err
17703 } && test -s conftest$ac_exeext &&
17704 $as_test_x conftest$ac_exeext; then
Neal Norwitz6e73aaa2006-06-12 03:33:09 +000017705 ac_cv_lib_z_inflateCopy=yes
17706else
17707 echo "$as_me: failed program was:" >&5
17708sed 's/^/| /' conftest.$ac_ext >&5
17709
Martin v. Löwiseba40652007-08-30 20:10:57 +000017710 ac_cv_lib_z_inflateCopy=no
Neal Norwitz6e73aaa2006-06-12 03:33:09 +000017711fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000017712
17713rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Neal Norwitz6e73aaa2006-06-12 03:33:09 +000017714 conftest$ac_exeext conftest.$ac_ext
17715LIBS=$ac_check_lib_save_LIBS
17716fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000017717{ echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5
17718echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6; }
Neal Norwitz6e73aaa2006-06-12 03:33:09 +000017719if test $ac_cv_lib_z_inflateCopy = yes; then
17720
17721cat >>confdefs.h <<\_ACEOF
17722#define HAVE_ZLIB_COPY 1
17723_ACEOF
17724
17725fi
17726
17727
Ronald Oussorenf8752642006-07-06 10:13:35 +000017728case $ac_sys_system/$ac_sys_release in
17729Darwin/*)
17730 CFLAGS="${_CUR_CFLAGS}"
17731 LDFLAGS="${_CUR_LDFLAGS}"
17732 ;;
17733esac
17734
Martin v. Löwiseba40652007-08-30 20:10:57 +000017735{ echo "$as_me:$LINENO: checking for hstrerror" >&5
17736echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6; }
Martin v. Löwise9416172003-05-03 10:12:45 +000017737cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000017738/* confdefs.h. */
17739_ACEOF
17740cat confdefs.h >>conftest.$ac_ext
17741cat >>conftest.$ac_ext <<_ACEOF
17742/* end confdefs.h. */
Martin v. Löwise9416172003-05-03 10:12:45 +000017743
17744#include "confdefs.h"
17745#include <netdb.h>
17746
Martin v. Löwise9416172003-05-03 10:12:45 +000017747int
17748main ()
17749{
Martin v. Löwis95c419b2003-05-03 12:10:48 +000017750void* p = hstrerror; hstrerror(0)
Martin v. Löwise9416172003-05-03 10:12:45 +000017751 ;
17752 return 0;
17753}
17754_ACEOF
Martin v. Löwis95c419b2003-05-03 12:10:48 +000017755rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000017756if { (ac_try="$ac_link"
17757case "(($ac_try" in
17758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17759 *) ac_try_echo=$ac_try;;
17760esac
17761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17762 (eval "$ac_link") 2>conftest.er1
Martin v. Löwise9416172003-05-03 10:12:45 +000017763 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000017764 grep -v '^ *+' conftest.er1 >conftest.err
17765 rm -f conftest.er1
17766 cat conftest.err >&5
Martin v. Löwise9416172003-05-03 10:12:45 +000017767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000017768 (exit $ac_status); } && {
17769 test -z "$ac_c_werror_flag" ||
17770 test ! -s conftest.err
17771 } && test -s conftest$ac_exeext &&
17772 $as_test_x conftest$ac_exeext; then
Martin v. Löwise9416172003-05-03 10:12:45 +000017773
17774cat >>confdefs.h <<\_ACEOF
17775#define HAVE_HSTRERROR 1
17776_ACEOF
17777
Martin v. Löwiseba40652007-08-30 20:10:57 +000017778 { echo "$as_me:$LINENO: result: yes" >&5
17779echo "${ECHO_T}yes" >&6; }
Martin v. Löwise9416172003-05-03 10:12:45 +000017780else
17781 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000017782sed 's/^/| /' conftest.$ac_ext >&5
17783
Martin v. Löwiseba40652007-08-30 20:10:57 +000017784 { echo "$as_me:$LINENO: result: no" >&5
17785echo "${ECHO_T}no" >&6; }
Martin v. Löwise9416172003-05-03 10:12:45 +000017786
17787fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000017788
17789rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000017790 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwise9416172003-05-03 10:12:45 +000017791
Martin v. Löwiseba40652007-08-30 20:10:57 +000017792{ echo "$as_me:$LINENO: checking for inet_aton" >&5
17793echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
Martin v. Löwise9416172003-05-03 10:12:45 +000017794cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000017795/* confdefs.h. */
17796_ACEOF
17797cat confdefs.h >>conftest.$ac_ext
17798cat >>conftest.$ac_ext <<_ACEOF
17799/* end confdefs.h. */
Martin v. Löwise9416172003-05-03 10:12:45 +000017800
17801#include "confdefs.h"
Martin v. Löwis86d66262006-02-17 08:40:11 +000017802#include <sys/types.h>
Martin v. Löwise9416172003-05-03 10:12:45 +000017803#include <sys/socket.h>
17804#include <netinet/in.h>
17805#include <arpa/inet.h>
17806
Martin v. Löwise9416172003-05-03 10:12:45 +000017807int
17808main ()
17809{
Martin v. Löwis95c419b2003-05-03 12:10:48 +000017810void* p = inet_aton;inet_aton(0,0)
Martin v. Löwise9416172003-05-03 10:12:45 +000017811 ;
17812 return 0;
17813}
17814_ACEOF
Martin v. Löwis95c419b2003-05-03 12:10:48 +000017815rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000017816if { (ac_try="$ac_link"
17817case "(($ac_try" in
17818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17819 *) ac_try_echo=$ac_try;;
17820esac
17821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17822 (eval "$ac_link") 2>conftest.er1
Martin v. Löwise9416172003-05-03 10:12:45 +000017823 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000017824 grep -v '^ *+' conftest.er1 >conftest.err
17825 rm -f conftest.er1
17826 cat conftest.err >&5
Martin v. Löwise9416172003-05-03 10:12:45 +000017827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000017828 (exit $ac_status); } && {
17829 test -z "$ac_c_werror_flag" ||
17830 test ! -s conftest.err
17831 } && test -s conftest$ac_exeext &&
17832 $as_test_x conftest$ac_exeext; then
Martin v. Löwise9416172003-05-03 10:12:45 +000017833
17834cat >>confdefs.h <<\_ACEOF
17835#define HAVE_INET_ATON 1
17836_ACEOF
17837
Martin v. Löwiseba40652007-08-30 20:10:57 +000017838 { echo "$as_me:$LINENO: result: yes" >&5
17839echo "${ECHO_T}yes" >&6; }
Martin v. Löwise9416172003-05-03 10:12:45 +000017840else
17841 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000017842sed 's/^/| /' conftest.$ac_ext >&5
17843
Martin v. Löwiseba40652007-08-30 20:10:57 +000017844 { echo "$as_me:$LINENO: result: no" >&5
17845echo "${ECHO_T}no" >&6; }
Martin v. Löwise9416172003-05-03 10:12:45 +000017846
17847fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000017848
17849rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000017850 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwise9416172003-05-03 10:12:45 +000017851
Martin v. Löwiseba40652007-08-30 20:10:57 +000017852{ echo "$as_me:$LINENO: checking for inet_pton" >&5
17853echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
Martin v. Löwise9416172003-05-03 10:12:45 +000017854cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000017855/* confdefs.h. */
17856_ACEOF
17857cat confdefs.h >>conftest.$ac_ext
17858cat >>conftest.$ac_ext <<_ACEOF
17859/* end confdefs.h. */
Martin v. Löwise9416172003-05-03 10:12:45 +000017860
17861#include "confdefs.h"
Martin v. Löwisf2e488d2003-05-05 22:00:11 +000017862#include <sys/types.h>
Martin v. Löwise9416172003-05-03 10:12:45 +000017863#include <sys/socket.h>
17864#include <netinet/in.h>
17865#include <arpa/inet.h>
17866
Martin v. Löwise9416172003-05-03 10:12:45 +000017867int
17868main ()
17869{
17870void* p = inet_pton
17871 ;
17872 return 0;
17873}
17874_ACEOF
17875rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000017876if { (ac_try="$ac_compile"
17877case "(($ac_try" in
17878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17879 *) ac_try_echo=$ac_try;;
17880esac
17881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17882 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwise9416172003-05-03 10:12:45 +000017883 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000017884 grep -v '^ *+' conftest.er1 >conftest.err
17885 rm -f conftest.er1
17886 cat conftest.err >&5
Martin v. Löwise9416172003-05-03 10:12:45 +000017887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000017888 (exit $ac_status); } && {
17889 test -z "$ac_c_werror_flag" ||
17890 test ! -s conftest.err
17891 } && test -s conftest.$ac_objext; then
Martin v. Löwise9416172003-05-03 10:12:45 +000017892
17893cat >>confdefs.h <<\_ACEOF
17894#define HAVE_INET_PTON 1
17895_ACEOF
17896
Martin v. Löwiseba40652007-08-30 20:10:57 +000017897 { echo "$as_me:$LINENO: result: yes" >&5
17898echo "${ECHO_T}yes" >&6; }
Martin v. Löwise9416172003-05-03 10:12:45 +000017899else
17900 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000017901sed 's/^/| /' conftest.$ac_ext >&5
17902
Martin v. Löwiseba40652007-08-30 20:10:57 +000017903 { echo "$as_me:$LINENO: result: no" >&5
17904echo "${ECHO_T}no" >&6; }
Martin v. Löwise9416172003-05-03 10:12:45 +000017905
17906fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000017907
17908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwise9416172003-05-03 10:12:45 +000017909
Martin v. Löwisd6640d42003-07-06 09:29:52 +000017910# On some systems, setgroups is in unistd.h, on others, in grp.h
Martin v. Löwiseba40652007-08-30 20:10:57 +000017911{ echo "$as_me:$LINENO: checking for setgroups" >&5
17912echo $ECHO_N "checking for setgroups... $ECHO_C" >&6; }
Martin v. Löwisd5843682002-11-21 20:41:28 +000017913cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000017914/* confdefs.h. */
17915_ACEOF
17916cat confdefs.h >>conftest.$ac_ext
17917cat >>conftest.$ac_ext <<_ACEOF
17918/* end confdefs.h. */
Martin v. Löwisd5843682002-11-21 20:41:28 +000017919
17920#include "confdefs.h"
Martin v. Löwisf2e488d2003-05-05 22:00:11 +000017921#include <unistd.h>
Martin v. Löwisd6640d42003-07-06 09:29:52 +000017922#ifdef HAVE_GRP_H
17923#include <grp.h>
17924#endif
Martin v. Löwisd5843682002-11-21 20:41:28 +000017925
Martin v. Löwisd5843682002-11-21 20:41:28 +000017926int
17927main ()
17928{
17929void* p = setgroups
17930 ;
17931 return 0;
17932}
17933_ACEOF
17934rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000017935if { (ac_try="$ac_compile"
17936case "(($ac_try" in
17937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17938 *) ac_try_echo=$ac_try;;
17939esac
17940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17941 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwisd5843682002-11-21 20:41:28 +000017942 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000017943 grep -v '^ *+' conftest.er1 >conftest.err
17944 rm -f conftest.er1
17945 cat conftest.err >&5
Martin v. Löwisd5843682002-11-21 20:41:28 +000017946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000017947 (exit $ac_status); } && {
17948 test -z "$ac_c_werror_flag" ||
17949 test ! -s conftest.err
17950 } && test -s conftest.$ac_objext; then
Martin v. Löwisd5843682002-11-21 20:41:28 +000017951
17952cat >>confdefs.h <<\_ACEOF
17953#define HAVE_SETGROUPS 1
17954_ACEOF
17955
Martin v. Löwiseba40652007-08-30 20:10:57 +000017956 { echo "$as_me:$LINENO: result: yes" >&5
17957echo "${ECHO_T}yes" >&6; }
Martin v. Löwisd5843682002-11-21 20:41:28 +000017958else
17959 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000017960sed 's/^/| /' conftest.$ac_ext >&5
17961
Martin v. Löwiseba40652007-08-30 20:10:57 +000017962 { echo "$as_me:$LINENO: result: no" >&5
17963echo "${ECHO_T}no" >&6; }
Martin v. Löwisd5843682002-11-21 20:41:28 +000017964
17965fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000017966
17967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwisd5843682002-11-21 20:41:28 +000017968
Guido van Rossumd0b69ec2001-09-10 14:10:54 +000017969# check for openpty and forkpty
17970
Martin v. Löwis11437992002-04-12 09:54:03 +000017971
Guido van Rossumd0b69ec2001-09-10 14:10:54 +000017972for ac_func in openpty
17973do
Martin v. Löwis11437992002-04-12 09:54:03 +000017974as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Martin v. Löwiseba40652007-08-30 20:10:57 +000017975{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17976echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17977if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Martin v. Löwis11437992002-04-12 09:54:03 +000017978 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossumd0b69ec2001-09-10 14:10:54 +000017979else
Martin v. Löwis11437992002-04-12 09:54:03 +000017980 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000017981/* confdefs.h. */
17982_ACEOF
17983cat confdefs.h >>conftest.$ac_ext
17984cat >>conftest.$ac_ext <<_ACEOF
17985/* end confdefs.h. */
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000017986/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17987 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17988#define $ac_func innocuous_$ac_func
17989
Guido van Rossumd0b69ec2001-09-10 14:10:54 +000017990/* System header to define __stub macros and hopefully few prototypes,
Skip Montanaro6dead952003-09-25 14:50:04 +000017991 which can conflict with char $ac_func (); below.
17992 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000017993 <limits.h> exists even on freestanding compilers. */
17994
17995#ifdef __STDC__
Skip Montanaro6dead952003-09-25 14:50:04 +000017996# include <limits.h>
17997#else
17998# include <assert.h>
17999#endif
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000018000
18001#undef $ac_func
18002
Martin v. Löwiseba40652007-08-30 20:10:57 +000018003/* Override any GCC internal prototype to avoid an error.
18004 Use char because int might match the return type of a GCC
18005 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +000018006#ifdef __cplusplus
18007extern "C"
18008#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000018009char $ac_func ();
Guido van Rossumd0b69ec2001-09-10 14:10:54 +000018010/* The GNU C library defines this for functions which it implements
18011 to always fail with ENOSYS. Some functions are actually named
18012 something starting with __ and the normal name is an alias. */
Martin v. Löwiseba40652007-08-30 20:10:57 +000018013#if defined __stub_$ac_func || defined __stub___$ac_func
Guido van Rossumd0b69ec2001-09-10 14:10:54 +000018014choke me
Guido van Rossumd0b69ec2001-09-10 14:10:54 +000018015#endif
18016
Skip Montanaro6dead952003-09-25 14:50:04 +000018017int
18018main ()
18019{
Martin v. Löwiseba40652007-08-30 20:10:57 +000018020return $ac_func ();
Martin v. Löwis11437992002-04-12 09:54:03 +000018021 ;
18022 return 0;
18023}
18024_ACEOF
18025rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000018026if { (ac_try="$ac_link"
18027case "(($ac_try" in
18028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18029 *) ac_try_echo=$ac_try;;
18030esac
18031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18032 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000018033 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000018034 grep -v '^ *+' conftest.er1 >conftest.err
18035 rm -f conftest.er1
18036 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000018037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000018038 (exit $ac_status); } && {
18039 test -z "$ac_c_werror_flag" ||
18040 test ! -s conftest.err
18041 } && test -s conftest$ac_exeext &&
18042 $as_test_x conftest$ac_exeext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000018043 eval "$as_ac_var=yes"
Michael W. Hudson54241132001-12-07 15:38:26 +000018044else
Martin v. Löwis11437992002-04-12 09:54:03 +000018045 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000018046sed 's/^/| /' conftest.$ac_ext >&5
18047
Martin v. Löwiseba40652007-08-30 20:10:57 +000018048 eval "$as_ac_var=no"
Michael W. Hudson54241132001-12-07 15:38:26 +000018049fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000018050
18051rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000018052 conftest$ac_exeext conftest.$ac_ext
Michael W. Hudson54241132001-12-07 15:38:26 +000018053fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000018054ac_res=`eval echo '${'$as_ac_var'}'`
18055 { echo "$as_me:$LINENO: result: $ac_res" >&5
18056echo "${ECHO_T}$ac_res" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000018057if test `eval echo '${'$as_ac_var'}'` = yes; then
18058 cat >>confdefs.h <<_ACEOF
18059#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18060_ACEOF
Guido van Rossumd0b69ec2001-09-10 14:10:54 +000018061
Guido van Rossumd0b69ec2001-09-10 14:10:54 +000018062else
Martin v. Löwiseba40652007-08-30 20:10:57 +000018063 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
18064echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000018065if test "${ac_cv_lib_util_openpty+set}" = set; then
18066 echo $ECHO_N "(cached) $ECHO_C" >&6
Fred Drake8cef4cf2000-06-28 16:40:38 +000018067else
Martin v. Löwis11437992002-04-12 09:54:03 +000018068 ac_check_lib_save_LIBS=$LIBS
Fred Drake8cef4cf2000-06-28 16:40:38 +000018069LIBS="-lutil $LIBS"
Martin v. Löwis11437992002-04-12 09:54:03 +000018070cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000018071/* confdefs.h. */
18072_ACEOF
18073cat confdefs.h >>conftest.$ac_ext
18074cat >>conftest.$ac_ext <<_ACEOF
18075/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000018076
Martin v. Löwiseba40652007-08-30 20:10:57 +000018077/* Override any GCC internal prototype to avoid an error.
18078 Use char because int might match the return type of a GCC
18079 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +000018080#ifdef __cplusplus
18081extern "C"
18082#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000018083char openpty ();
Martin v. Löwis11437992002-04-12 09:54:03 +000018084int
18085main ()
18086{
Martin v. Löwiseba40652007-08-30 20:10:57 +000018087return openpty ();
Martin v. Löwis11437992002-04-12 09:54:03 +000018088 ;
18089 return 0;
18090}
18091_ACEOF
18092rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000018093if { (ac_try="$ac_link"
18094case "(($ac_try" in
18095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18096 *) ac_try_echo=$ac_try;;
18097esac
18098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18099 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000018100 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000018101 grep -v '^ *+' conftest.er1 >conftest.err
18102 rm -f conftest.er1
18103 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000018104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000018105 (exit $ac_status); } && {
18106 test -z "$ac_c_werror_flag" ||
18107 test ! -s conftest.err
18108 } && test -s conftest$ac_exeext &&
18109 $as_test_x conftest$ac_exeext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000018110 ac_cv_lib_util_openpty=yes
Fred Drake8cef4cf2000-06-28 16:40:38 +000018111else
Martin v. Löwis11437992002-04-12 09:54:03 +000018112 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000018113sed 's/^/| /' conftest.$ac_ext >&5
18114
Martin v. Löwiseba40652007-08-30 20:10:57 +000018115 ac_cv_lib_util_openpty=no
Fred Drake8cef4cf2000-06-28 16:40:38 +000018116fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000018117
18118rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000018119 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000018120LIBS=$ac_check_lib_save_LIBS
Fred Drake8cef4cf2000-06-28 16:40:38 +000018121fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000018122{ echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
18123echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000018124if test $ac_cv_lib_util_openpty = yes; then
18125 cat >>confdefs.h <<\_ACEOF
Fred Drake8cef4cf2000-06-28 16:40:38 +000018126#define HAVE_OPENPTY 1
Martin v. Löwis11437992002-04-12 09:54:03 +000018127_ACEOF
Fred Drake8cef4cf2000-06-28 16:40:38 +000018128 LIBS="$LIBS -lutil"
Martin v. Löwisfd9a72a2006-01-08 10:07:33 +000018129else
Martin v. Löwiseba40652007-08-30 20:10:57 +000018130 { echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
18131echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6; }
Martin v. Löwisfd9a72a2006-01-08 10:07:33 +000018132if test "${ac_cv_lib_bsd_openpty+set}" = set; then
18133 echo $ECHO_N "(cached) $ECHO_C" >&6
18134else
18135 ac_check_lib_save_LIBS=$LIBS
18136LIBS="-lbsd $LIBS"
18137cat >conftest.$ac_ext <<_ACEOF
18138/* confdefs.h. */
18139_ACEOF
18140cat confdefs.h >>conftest.$ac_ext
18141cat >>conftest.$ac_ext <<_ACEOF
18142/* end confdefs.h. */
18143
Martin v. Löwiseba40652007-08-30 20:10:57 +000018144/* Override any GCC internal prototype to avoid an error.
18145 Use char because int might match the return type of a GCC
18146 builtin and then its argument prototype would still apply. */
Martin v. Löwisfd9a72a2006-01-08 10:07:33 +000018147#ifdef __cplusplus
18148extern "C"
18149#endif
Martin v. Löwisfd9a72a2006-01-08 10:07:33 +000018150char openpty ();
18151int
18152main ()
18153{
Martin v. Löwiseba40652007-08-30 20:10:57 +000018154return openpty ();
Martin v. Löwisfd9a72a2006-01-08 10:07:33 +000018155 ;
18156 return 0;
18157}
18158_ACEOF
18159rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000018160if { (ac_try="$ac_link"
18161case "(($ac_try" in
18162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18163 *) ac_try_echo=$ac_try;;
18164esac
18165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18166 (eval "$ac_link") 2>conftest.er1
Martin v. Löwisfd9a72a2006-01-08 10:07:33 +000018167 ac_status=$?
18168 grep -v '^ *+' conftest.er1 >conftest.err
18169 rm -f conftest.er1
18170 cat conftest.err >&5
18171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000018172 (exit $ac_status); } && {
18173 test -z "$ac_c_werror_flag" ||
18174 test ! -s conftest.err
18175 } && test -s conftest$ac_exeext &&
18176 $as_test_x conftest$ac_exeext; then
Martin v. Löwisfd9a72a2006-01-08 10:07:33 +000018177 ac_cv_lib_bsd_openpty=yes
18178else
18179 echo "$as_me: failed program was:" >&5
18180sed 's/^/| /' conftest.$ac_ext >&5
18181
Martin v. Löwiseba40652007-08-30 20:10:57 +000018182 ac_cv_lib_bsd_openpty=no
Fred Drake8cef4cf2000-06-28 16:40:38 +000018183fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000018184
18185rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Martin v. Löwisfd9a72a2006-01-08 10:07:33 +000018186 conftest$ac_exeext conftest.$ac_ext
18187LIBS=$ac_check_lib_save_LIBS
18188fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000018189{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
18190echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6; }
Martin v. Löwisfd9a72a2006-01-08 10:07:33 +000018191if test $ac_cv_lib_bsd_openpty = yes; then
18192 cat >>confdefs.h <<\_ACEOF
18193#define HAVE_OPENPTY 1
18194_ACEOF
18195 LIBS="$LIBS -lbsd"
18196fi
18197
18198
18199fi
18200
Fred Drake8cef4cf2000-06-28 16:40:38 +000018201
18202fi
18203done
18204
Martin v. Löwis11437992002-04-12 09:54:03 +000018205
Fred Drake8cef4cf2000-06-28 16:40:38 +000018206for ac_func in forkpty
18207do
Martin v. Löwis11437992002-04-12 09:54:03 +000018208as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Martin v. Löwiseba40652007-08-30 20:10:57 +000018209{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18210echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18211if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Martin v. Löwis11437992002-04-12 09:54:03 +000018212 echo $ECHO_N "(cached) $ECHO_C" >&6
Fred Drake8cef4cf2000-06-28 16:40:38 +000018213else
Martin v. Löwis11437992002-04-12 09:54:03 +000018214 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000018215/* confdefs.h. */
18216_ACEOF
18217cat confdefs.h >>conftest.$ac_ext
18218cat >>conftest.$ac_ext <<_ACEOF
18219/* end confdefs.h. */
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000018220/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18221 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18222#define $ac_func innocuous_$ac_func
18223
Fred Drake8cef4cf2000-06-28 16:40:38 +000018224/* System header to define __stub macros and hopefully few prototypes,
Skip Montanaro6dead952003-09-25 14:50:04 +000018225 which can conflict with char $ac_func (); below.
18226 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000018227 <limits.h> exists even on freestanding compilers. */
18228
18229#ifdef __STDC__
Skip Montanaro6dead952003-09-25 14:50:04 +000018230# include <limits.h>
18231#else
18232# include <assert.h>
18233#endif
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000018234
18235#undef $ac_func
18236
Martin v. Löwiseba40652007-08-30 20:10:57 +000018237/* Override any GCC internal prototype to avoid an error.
18238 Use char because int might match the return type of a GCC
18239 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +000018240#ifdef __cplusplus
18241extern "C"
18242#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000018243char $ac_func ();
Fred Drake8cef4cf2000-06-28 16:40:38 +000018244/* The GNU C library defines this for functions which it implements
18245 to always fail with ENOSYS. Some functions are actually named
18246 something starting with __ and the normal name is an alias. */
Martin v. Löwiseba40652007-08-30 20:10:57 +000018247#if defined __stub_$ac_func || defined __stub___$ac_func
Fred Drake8cef4cf2000-06-28 16:40:38 +000018248choke me
Fred Drake8cef4cf2000-06-28 16:40:38 +000018249#endif
18250
Skip Montanaro6dead952003-09-25 14:50:04 +000018251int
18252main ()
18253{
Martin v. Löwiseba40652007-08-30 20:10:57 +000018254return $ac_func ();
Martin v. Löwis11437992002-04-12 09:54:03 +000018255 ;
18256 return 0;
18257}
18258_ACEOF
18259rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000018260if { (ac_try="$ac_link"
18261case "(($ac_try" in
18262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18263 *) ac_try_echo=$ac_try;;
18264esac
18265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18266 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000018267 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000018268 grep -v '^ *+' conftest.er1 >conftest.err
18269 rm -f conftest.er1
18270 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000018271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000018272 (exit $ac_status); } && {
18273 test -z "$ac_c_werror_flag" ||
18274 test ! -s conftest.err
18275 } && test -s conftest$ac_exeext &&
18276 $as_test_x conftest$ac_exeext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000018277 eval "$as_ac_var=yes"
Michael W. Hudson54241132001-12-07 15:38:26 +000018278else
Martin v. Löwis11437992002-04-12 09:54:03 +000018279 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000018280sed 's/^/| /' conftest.$ac_ext >&5
18281
Martin v. Löwiseba40652007-08-30 20:10:57 +000018282 eval "$as_ac_var=no"
Michael W. Hudson54241132001-12-07 15:38:26 +000018283fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000018284
18285rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000018286 conftest$ac_exeext conftest.$ac_ext
Michael W. Hudson54241132001-12-07 15:38:26 +000018287fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000018288ac_res=`eval echo '${'$as_ac_var'}'`
18289 { echo "$as_me:$LINENO: result: $ac_res" >&5
18290echo "${ECHO_T}$ac_res" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000018291if test `eval echo '${'$as_ac_var'}'` = yes; then
18292 cat >>confdefs.h <<_ACEOF
18293#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18294_ACEOF
Fred Drake8cef4cf2000-06-28 16:40:38 +000018295
Fred Drake8cef4cf2000-06-28 16:40:38 +000018296else
Martin v. Löwiseba40652007-08-30 20:10:57 +000018297 { echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
18298echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000018299if test "${ac_cv_lib_util_forkpty+set}" = set; then
18300 echo $ECHO_N "(cached) $ECHO_C" >&6
Fred Drake8cef4cf2000-06-28 16:40:38 +000018301else
Martin v. Löwis11437992002-04-12 09:54:03 +000018302 ac_check_lib_save_LIBS=$LIBS
Fred Drake8cef4cf2000-06-28 16:40:38 +000018303LIBS="-lutil $LIBS"
Martin v. Löwis11437992002-04-12 09:54:03 +000018304cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000018305/* confdefs.h. */
18306_ACEOF
18307cat confdefs.h >>conftest.$ac_ext
18308cat >>conftest.$ac_ext <<_ACEOF
18309/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000018310
Martin v. Löwiseba40652007-08-30 20:10:57 +000018311/* Override any GCC internal prototype to avoid an error.
18312 Use char because int might match the return type of a GCC
18313 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +000018314#ifdef __cplusplus
18315extern "C"
18316#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000018317char forkpty ();
Martin v. Löwis11437992002-04-12 09:54:03 +000018318int
18319main ()
18320{
Martin v. Löwiseba40652007-08-30 20:10:57 +000018321return forkpty ();
Martin v. Löwis11437992002-04-12 09:54:03 +000018322 ;
18323 return 0;
18324}
18325_ACEOF
18326rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000018327if { (ac_try="$ac_link"
18328case "(($ac_try" in
18329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18330 *) ac_try_echo=$ac_try;;
18331esac
18332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18333 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000018334 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000018335 grep -v '^ *+' conftest.er1 >conftest.err
18336 rm -f conftest.er1
18337 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000018338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000018339 (exit $ac_status); } && {
18340 test -z "$ac_c_werror_flag" ||
18341 test ! -s conftest.err
18342 } && test -s conftest$ac_exeext &&
18343 $as_test_x conftest$ac_exeext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000018344 ac_cv_lib_util_forkpty=yes
Fred Drake8cef4cf2000-06-28 16:40:38 +000018345else
Martin v. Löwis11437992002-04-12 09:54:03 +000018346 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000018347sed 's/^/| /' conftest.$ac_ext >&5
18348
Martin v. Löwiseba40652007-08-30 20:10:57 +000018349 ac_cv_lib_util_forkpty=no
Fred Drake8cef4cf2000-06-28 16:40:38 +000018350fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000018351
18352rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000018353 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000018354LIBS=$ac_check_lib_save_LIBS
Fred Drake8cef4cf2000-06-28 16:40:38 +000018355fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000018356{ echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
18357echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000018358if test $ac_cv_lib_util_forkpty = yes; then
18359 cat >>confdefs.h <<\_ACEOF
Fred Drake8cef4cf2000-06-28 16:40:38 +000018360#define HAVE_FORKPTY 1
Martin v. Löwis11437992002-04-12 09:54:03 +000018361_ACEOF
Fred Drake8cef4cf2000-06-28 16:40:38 +000018362 LIBS="$LIBS -lutil"
Martin v. Löwisfd9a72a2006-01-08 10:07:33 +000018363else
Martin v. Löwiseba40652007-08-30 20:10:57 +000018364 { echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
18365echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6; }
Martin v. Löwisfd9a72a2006-01-08 10:07:33 +000018366if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
18367 echo $ECHO_N "(cached) $ECHO_C" >&6
18368else
18369 ac_check_lib_save_LIBS=$LIBS
18370LIBS="-lbsd $LIBS"
18371cat >conftest.$ac_ext <<_ACEOF
18372/* confdefs.h. */
18373_ACEOF
18374cat confdefs.h >>conftest.$ac_ext
18375cat >>conftest.$ac_ext <<_ACEOF
18376/* end confdefs.h. */
18377
Martin v. Löwiseba40652007-08-30 20:10:57 +000018378/* Override any GCC internal prototype to avoid an error.
18379 Use char because int might match the return type of a GCC
18380 builtin and then its argument prototype would still apply. */
Martin v. Löwisfd9a72a2006-01-08 10:07:33 +000018381#ifdef __cplusplus
18382extern "C"
18383#endif
Martin v. Löwisfd9a72a2006-01-08 10:07:33 +000018384char forkpty ();
18385int
18386main ()
18387{
Martin v. Löwiseba40652007-08-30 20:10:57 +000018388return forkpty ();
Martin v. Löwisfd9a72a2006-01-08 10:07:33 +000018389 ;
18390 return 0;
18391}
18392_ACEOF
18393rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000018394if { (ac_try="$ac_link"
18395case "(($ac_try" in
18396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18397 *) ac_try_echo=$ac_try;;
18398esac
18399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18400 (eval "$ac_link") 2>conftest.er1
Martin v. Löwisfd9a72a2006-01-08 10:07:33 +000018401 ac_status=$?
18402 grep -v '^ *+' conftest.er1 >conftest.err
18403 rm -f conftest.er1
18404 cat conftest.err >&5
18405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000018406 (exit $ac_status); } && {
18407 test -z "$ac_c_werror_flag" ||
18408 test ! -s conftest.err
18409 } && test -s conftest$ac_exeext &&
18410 $as_test_x conftest$ac_exeext; then
Martin v. Löwisfd9a72a2006-01-08 10:07:33 +000018411 ac_cv_lib_bsd_forkpty=yes
18412else
18413 echo "$as_me: failed program was:" >&5
18414sed 's/^/| /' conftest.$ac_ext >&5
18415
Martin v. Löwiseba40652007-08-30 20:10:57 +000018416 ac_cv_lib_bsd_forkpty=no
Fred Drake8cef4cf2000-06-28 16:40:38 +000018417fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000018418
18419rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Martin v. Löwisfd9a72a2006-01-08 10:07:33 +000018420 conftest$ac_exeext conftest.$ac_ext
18421LIBS=$ac_check_lib_save_LIBS
18422fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000018423{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
18424echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6; }
Martin v. Löwisfd9a72a2006-01-08 10:07:33 +000018425if test $ac_cv_lib_bsd_forkpty = yes; then
18426 cat >>confdefs.h <<\_ACEOF
18427#define HAVE_FORKPTY 1
18428_ACEOF
18429 LIBS="$LIBS -lbsd"
18430fi
18431
18432
18433fi
18434
Fred Drake8cef4cf2000-06-28 16:40:38 +000018435
18436fi
18437done
18438
Jack Jansendd19cf82001-12-06 22:36:17 +000018439
Brett Cannonaa5778d2008-03-18 04:09:00 +000018440# Stuff for expat.
18441
18442for ac_func in memmove
18443do
18444as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18445{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18446echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18447if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18448 echo $ECHO_N "(cached) $ECHO_C" >&6
18449else
18450 cat >conftest.$ac_ext <<_ACEOF
18451/* confdefs.h. */
18452_ACEOF
18453cat confdefs.h >>conftest.$ac_ext
18454cat >>conftest.$ac_ext <<_ACEOF
18455/* end confdefs.h. */
18456/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18457 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18458#define $ac_func innocuous_$ac_func
18459
18460/* System header to define __stub macros and hopefully few prototypes,
18461 which can conflict with char $ac_func (); below.
18462 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18463 <limits.h> exists even on freestanding compilers. */
18464
18465#ifdef __STDC__
18466# include <limits.h>
18467#else
18468# include <assert.h>
18469#endif
18470
18471#undef $ac_func
18472
18473/* Override any GCC internal prototype to avoid an error.
18474 Use char because int might match the return type of a GCC
18475 builtin and then its argument prototype would still apply. */
18476#ifdef __cplusplus
18477extern "C"
18478#endif
18479char $ac_func ();
18480/* The GNU C library defines this for functions which it implements
18481 to always fail with ENOSYS. Some functions are actually named
18482 something starting with __ and the normal name is an alias. */
18483#if defined __stub_$ac_func || defined __stub___$ac_func
18484choke me
18485#endif
18486
18487int
18488main ()
18489{
18490return $ac_func ();
18491 ;
18492 return 0;
18493}
18494_ACEOF
18495rm -f conftest.$ac_objext conftest$ac_exeext
18496if { (ac_try="$ac_link"
18497case "(($ac_try" in
18498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18499 *) ac_try_echo=$ac_try;;
18500esac
18501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18502 (eval "$ac_link") 2>conftest.er1
18503 ac_status=$?
18504 grep -v '^ *+' conftest.er1 >conftest.err
18505 rm -f conftest.er1
18506 cat conftest.err >&5
18507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18508 (exit $ac_status); } && {
18509 test -z "$ac_c_werror_flag" ||
18510 test ! -s conftest.err
18511 } && test -s conftest$ac_exeext &&
18512 $as_test_x conftest$ac_exeext; then
18513 eval "$as_ac_var=yes"
18514else
18515 echo "$as_me: failed program was:" >&5
18516sed 's/^/| /' conftest.$ac_ext >&5
18517
18518 eval "$as_ac_var=no"
18519fi
18520
18521rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18522 conftest$ac_exeext conftest.$ac_ext
18523fi
18524ac_res=`eval echo '${'$as_ac_var'}'`
18525 { echo "$as_me:$LINENO: result: $ac_res" >&5
18526echo "${ECHO_T}$ac_res" >&6; }
18527if test `eval echo '${'$as_ac_var'}'` = yes; then
18528 cat >>confdefs.h <<_ACEOF
18529#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18530_ACEOF
18531
18532fi
18533done
18534
18535
Michael W. Hudson54241132001-12-07 15:38:26 +000018536# check for long file support functions
Martin v. Löwis11437992002-04-12 09:54:03 +000018537
18538
18539
18540
18541
18542
Fred Drake8cef4cf2000-06-28 16:40:38 +000018543for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
18544do
Martin v. Löwis11437992002-04-12 09:54:03 +000018545as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Martin v. Löwiseba40652007-08-30 20:10:57 +000018546{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18547echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18548if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Martin v. Löwis11437992002-04-12 09:54:03 +000018549 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossumf98e2a71999-01-06 18:53:34 +000018550else
Martin v. Löwis11437992002-04-12 09:54:03 +000018551 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000018552/* confdefs.h. */
18553_ACEOF
18554cat confdefs.h >>conftest.$ac_ext
18555cat >>conftest.$ac_ext <<_ACEOF
18556/* end confdefs.h. */
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000018557/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18558 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18559#define $ac_func innocuous_$ac_func
18560
Guido van Rossumf98e2a71999-01-06 18:53:34 +000018561/* System header to define __stub macros and hopefully few prototypes,
Skip Montanaro6dead952003-09-25 14:50:04 +000018562 which can conflict with char $ac_func (); below.
18563 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000018564 <limits.h> exists even on freestanding compilers. */
18565
18566#ifdef __STDC__
Skip Montanaro6dead952003-09-25 14:50:04 +000018567# include <limits.h>
18568#else
18569# include <assert.h>
18570#endif
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000018571
18572#undef $ac_func
18573
Martin v. Löwiseba40652007-08-30 20:10:57 +000018574/* Override any GCC internal prototype to avoid an error.
18575 Use char because int might match the return type of a GCC
18576 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +000018577#ifdef __cplusplus
18578extern "C"
18579#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000018580char $ac_func ();
Guido van Rossumf98e2a71999-01-06 18:53:34 +000018581/* The GNU C library defines this for functions which it implements
18582 to always fail with ENOSYS. Some functions are actually named
18583 something starting with __ and the normal name is an alias. */
Martin v. Löwiseba40652007-08-30 20:10:57 +000018584#if defined __stub_$ac_func || defined __stub___$ac_func
Guido van Rossumf98e2a71999-01-06 18:53:34 +000018585choke me
Guido van Rossumf98e2a71999-01-06 18:53:34 +000018586#endif
18587
Skip Montanaro6dead952003-09-25 14:50:04 +000018588int
18589main ()
18590{
Martin v. Löwiseba40652007-08-30 20:10:57 +000018591return $ac_func ();
Martin v. Löwis11437992002-04-12 09:54:03 +000018592 ;
18593 return 0;
18594}
18595_ACEOF
18596rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000018597if { (ac_try="$ac_link"
18598case "(($ac_try" in
18599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18600 *) ac_try_echo=$ac_try;;
18601esac
18602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18603 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000018604 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000018605 grep -v '^ *+' conftest.er1 >conftest.err
18606 rm -f conftest.er1
18607 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000018608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000018609 (exit $ac_status); } && {
18610 test -z "$ac_c_werror_flag" ||
18611 test ! -s conftest.err
18612 } && test -s conftest$ac_exeext &&
18613 $as_test_x conftest$ac_exeext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000018614 eval "$as_ac_var=yes"
Guido van Rossum76be6ed1995-01-02 18:33:54 +000018615else
Martin v. Löwis11437992002-04-12 09:54:03 +000018616 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000018617sed 's/^/| /' conftest.$ac_ext >&5
18618
Martin v. Löwiseba40652007-08-30 20:10:57 +000018619 eval "$as_ac_var=no"
Michael W. Hudson54241132001-12-07 15:38:26 +000018620fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000018621
18622rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000018623 conftest$ac_exeext conftest.$ac_ext
Michael W. Hudson54241132001-12-07 15:38:26 +000018624fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000018625ac_res=`eval echo '${'$as_ac_var'}'`
18626 { echo "$as_me:$LINENO: result: $ac_res" >&5
18627echo "${ECHO_T}$ac_res" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000018628if test `eval echo '${'$as_ac_var'}'` = yes; then
18629 cat >>confdefs.h <<_ACEOF
18630#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18631_ACEOF
Michael W. Hudson54241132001-12-07 15:38:26 +000018632
Guido van Rossum76be6ed1995-01-02 18:33:54 +000018633fi
Guido van Rossum627b2d71993-12-24 10:39:16 +000018634done
18635
Michael W. Hudson54241132001-12-07 15:38:26 +000018636
Martin v. Löwis11437992002-04-12 09:54:03 +000018637
18638
18639
Brett Cannonaa5778d2008-03-18 04:09:00 +000018640for ac_func in dup2 getcwd strdup
Thomas Wouters3a584202000-08-05 23:28:51 +000018641do
Martin v. Löwis11437992002-04-12 09:54:03 +000018642as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Martin v. Löwiseba40652007-08-30 20:10:57 +000018643{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18644echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18645if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Martin v. Löwis11437992002-04-12 09:54:03 +000018646 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +000018647else
Martin v. Löwis11437992002-04-12 09:54:03 +000018648 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000018649/* confdefs.h. */
18650_ACEOF
18651cat confdefs.h >>conftest.$ac_ext
18652cat >>conftest.$ac_ext <<_ACEOF
18653/* end confdefs.h. */
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000018654/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18655 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18656#define $ac_func innocuous_$ac_func
18657
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +000018658/* System header to define __stub macros and hopefully few prototypes,
Skip Montanaro6dead952003-09-25 14:50:04 +000018659 which can conflict with char $ac_func (); below.
18660 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000018661 <limits.h> exists even on freestanding compilers. */
18662
18663#ifdef __STDC__
Skip Montanaro6dead952003-09-25 14:50:04 +000018664# include <limits.h>
18665#else
18666# include <assert.h>
18667#endif
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000018668
18669#undef $ac_func
18670
Martin v. Löwiseba40652007-08-30 20:10:57 +000018671/* Override any GCC internal prototype to avoid an error.
18672 Use char because int might match the return type of a GCC
18673 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +000018674#ifdef __cplusplus
18675extern "C"
18676#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000018677char $ac_func ();
Guido van Rossum627b2d71993-12-24 10:39:16 +000018678/* The GNU C library defines this for functions which it implements
18679 to always fail with ENOSYS. Some functions are actually named
18680 something starting with __ and the normal name is an alias. */
Martin v. Löwiseba40652007-08-30 20:10:57 +000018681#if defined __stub_$ac_func || defined __stub___$ac_func
Guido van Rossum627b2d71993-12-24 10:39:16 +000018682choke me
Guido van Rossum627b2d71993-12-24 10:39:16 +000018683#endif
Guido van Rossum76be6ed1995-01-02 18:33:54 +000018684
Skip Montanaro6dead952003-09-25 14:50:04 +000018685int
18686main ()
18687{
Martin v. Löwiseba40652007-08-30 20:10:57 +000018688return $ac_func ();
Martin v. Löwis11437992002-04-12 09:54:03 +000018689 ;
18690 return 0;
18691}
18692_ACEOF
18693rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000018694if { (ac_try="$ac_link"
18695case "(($ac_try" in
18696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18697 *) ac_try_echo=$ac_try;;
18698esac
18699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18700 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000018701 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000018702 grep -v '^ *+' conftest.er1 >conftest.err
18703 rm -f conftest.er1
18704 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000018705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000018706 (exit $ac_status); } && {
18707 test -z "$ac_c_werror_flag" ||
18708 test ! -s conftest.err
18709 } && test -s conftest$ac_exeext &&
18710 $as_test_x conftest$ac_exeext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000018711 eval "$as_ac_var=yes"
Martin v. Löwis1142de32002-03-29 16:28:31 +000018712else
Martin v. Löwis11437992002-04-12 09:54:03 +000018713 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000018714sed 's/^/| /' conftest.$ac_ext >&5
18715
Martin v. Löwiseba40652007-08-30 20:10:57 +000018716 eval "$as_ac_var=no"
Martin v. Löwis1142de32002-03-29 16:28:31 +000018717fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000018718
18719rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000018720 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis1142de32002-03-29 16:28:31 +000018721fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000018722ac_res=`eval echo '${'$as_ac_var'}'`
18723 { echo "$as_me:$LINENO: result: $ac_res" >&5
18724echo "${ECHO_T}$ac_res" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000018725if test `eval echo '${'$as_ac_var'}'` = yes; then
18726 cat >>confdefs.h <<_ACEOF
18727#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18728_ACEOF
Martin v. Löwis1142de32002-03-29 16:28:31 +000018729
Martin v. Löwis1142de32002-03-29 16:28:31 +000018730else
Martin v. Löwiseba40652007-08-30 20:10:57 +000018731 case " $LIBOBJS " in
Skip Montanarof0d5f792004-08-15 14:08:23 +000018732 *" $ac_func.$ac_objext "* ) ;;
Martin v. Löwiseba40652007-08-30 20:10:57 +000018733 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18734 ;;
Skip Montanarof0d5f792004-08-15 14:08:23 +000018735esac
18736
Martin v. Löwis1142de32002-03-29 16:28:31 +000018737fi
18738done
18739
18740
Martin v. Löwis11437992002-04-12 09:54:03 +000018741
Martin v. Löwis1142de32002-03-29 16:28:31 +000018742for ac_func in getpgrp
18743do
Martin v. Löwis11437992002-04-12 09:54:03 +000018744as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Martin v. Löwiseba40652007-08-30 20:10:57 +000018745{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18746echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18747if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Martin v. Löwis11437992002-04-12 09:54:03 +000018748 echo $ECHO_N "(cached) $ECHO_C" >&6
Martin v. Löwis1142de32002-03-29 16:28:31 +000018749else
Martin v. Löwis11437992002-04-12 09:54:03 +000018750 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000018751/* confdefs.h. */
18752_ACEOF
18753cat confdefs.h >>conftest.$ac_ext
18754cat >>conftest.$ac_ext <<_ACEOF
18755/* end confdefs.h. */
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000018756/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18757 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18758#define $ac_func innocuous_$ac_func
18759
Martin v. Löwis1142de32002-03-29 16:28:31 +000018760/* System header to define __stub macros and hopefully few prototypes,
Skip Montanaro6dead952003-09-25 14:50:04 +000018761 which can conflict with char $ac_func (); below.
18762 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000018763 <limits.h> exists even on freestanding compilers. */
18764
18765#ifdef __STDC__
Skip Montanaro6dead952003-09-25 14:50:04 +000018766# include <limits.h>
18767#else
18768# include <assert.h>
18769#endif
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000018770
18771#undef $ac_func
18772
Martin v. Löwiseba40652007-08-30 20:10:57 +000018773/* Override any GCC internal prototype to avoid an error.
18774 Use char because int might match the return type of a GCC
18775 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +000018776#ifdef __cplusplus
18777extern "C"
18778#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000018779char $ac_func ();
Martin v. Löwis1142de32002-03-29 16:28:31 +000018780/* The GNU C library defines this for functions which it implements
18781 to always fail with ENOSYS. Some functions are actually named
18782 something starting with __ and the normal name is an alias. */
Martin v. Löwiseba40652007-08-30 20:10:57 +000018783#if defined __stub_$ac_func || defined __stub___$ac_func
Martin v. Löwis1142de32002-03-29 16:28:31 +000018784choke me
Martin v. Löwis1142de32002-03-29 16:28:31 +000018785#endif
18786
Skip Montanaro6dead952003-09-25 14:50:04 +000018787int
18788main ()
18789{
Martin v. Löwiseba40652007-08-30 20:10:57 +000018790return $ac_func ();
Martin v. Löwis11437992002-04-12 09:54:03 +000018791 ;
18792 return 0;
18793}
18794_ACEOF
18795rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000018796if { (ac_try="$ac_link"
18797case "(($ac_try" in
18798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18799 *) ac_try_echo=$ac_try;;
18800esac
18801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18802 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000018803 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000018804 grep -v '^ *+' conftest.er1 >conftest.err
18805 rm -f conftest.er1
18806 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000018807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000018808 (exit $ac_status); } && {
18809 test -z "$ac_c_werror_flag" ||
18810 test ! -s conftest.err
18811 } && test -s conftest$ac_exeext &&
18812 $as_test_x conftest$ac_exeext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000018813 eval "$as_ac_var=yes"
Michael W. Hudson54241132001-12-07 15:38:26 +000018814else
Martin v. Löwis11437992002-04-12 09:54:03 +000018815 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000018816sed 's/^/| /' conftest.$ac_ext >&5
18817
Martin v. Löwiseba40652007-08-30 20:10:57 +000018818 eval "$as_ac_var=no"
Michael W. Hudson54241132001-12-07 15:38:26 +000018819fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000018820
18821rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000018822 conftest$ac_exeext conftest.$ac_ext
Michael W. Hudson54241132001-12-07 15:38:26 +000018823fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000018824ac_res=`eval echo '${'$as_ac_var'}'`
18825 { echo "$as_me:$LINENO: result: $ac_res" >&5
18826echo "${ECHO_T}$ac_res" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000018827if test `eval echo '${'$as_ac_var'}'` = yes; then
18828 cat >>confdefs.h <<_ACEOF
18829#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18830_ACEOF
18831 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000018832/* confdefs.h. */
18833_ACEOF
18834cat confdefs.h >>conftest.$ac_ext
18835cat >>conftest.$ac_ext <<_ACEOF
18836/* end confdefs.h. */
Guido van Rossum76be6ed1995-01-02 18:33:54 +000018837#include <unistd.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000018838int
18839main ()
18840{
Guido van Rossum76be6ed1995-01-02 18:33:54 +000018841getpgrp(0);
Martin v. Löwis11437992002-04-12 09:54:03 +000018842 ;
18843 return 0;
18844}
18845_ACEOF
18846rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000018847if { (ac_try="$ac_compile"
18848case "(($ac_try" in
18849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18850 *) ac_try_echo=$ac_try;;
18851esac
18852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18853 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000018854 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000018855 grep -v '^ *+' conftest.er1 >conftest.err
18856 rm -f conftest.er1
18857 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000018858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000018859 (exit $ac_status); } && {
18860 test -z "$ac_c_werror_flag" ||
18861 test ! -s conftest.err
18862 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000018863
18864cat >>confdefs.h <<\_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000018865#define GETPGRP_HAVE_ARG 1
Martin v. Löwis11437992002-04-12 09:54:03 +000018866_ACEOF
Guido van Rossum627b2d71993-12-24 10:39:16 +000018867
Martin v. Löwis11437992002-04-12 09:54:03 +000018868
Guido van Rossumf78abae1997-01-21 22:02:36 +000018869else
Martin v. Löwis11437992002-04-12 09:54:03 +000018870 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000018871sed 's/^/| /' conftest.$ac_ext >&5
18872
Martin v. Löwiseba40652007-08-30 20:10:57 +000018873
Guido van Rossum627b2d71993-12-24 10:39:16 +000018874fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000018875
18876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwisc45929e2002-04-06 10:10:49 +000018877
Guido van Rossum627b2d71993-12-24 10:39:16 +000018878fi
Thomas Wouters3a584202000-08-05 23:28:51 +000018879done
Guido van Rossum627b2d71993-12-24 10:39:16 +000018880
Jack Jansen150753c2003-03-29 22:07:47 +000018881
18882for ac_func in setpgrp
18883do
18884as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Martin v. Löwiseba40652007-08-30 20:10:57 +000018885{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18886echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18887if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Martin v. Löwis11437992002-04-12 09:54:03 +000018888 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +000018889else
Martin v. Löwis11437992002-04-12 09:54:03 +000018890 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000018891/* confdefs.h. */
18892_ACEOF
18893cat confdefs.h >>conftest.$ac_ext
18894cat >>conftest.$ac_ext <<_ACEOF
18895/* end confdefs.h. */
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000018896/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18897 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18898#define $ac_func innocuous_$ac_func
18899
Jack Jansen150753c2003-03-29 22:07:47 +000018900/* System header to define __stub macros and hopefully few prototypes,
Skip Montanaro6dead952003-09-25 14:50:04 +000018901 which can conflict with char $ac_func (); below.
18902 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000018903 <limits.h> exists even on freestanding compilers. */
18904
18905#ifdef __STDC__
Skip Montanaro6dead952003-09-25 14:50:04 +000018906# include <limits.h>
18907#else
18908# include <assert.h>
18909#endif
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000018910
18911#undef $ac_func
18912
Martin v. Löwiseba40652007-08-30 20:10:57 +000018913/* Override any GCC internal prototype to avoid an error.
18914 Use char because int might match the return type of a GCC
18915 builtin and then its argument prototype would still apply. */
Jack Jansen150753c2003-03-29 22:07:47 +000018916#ifdef __cplusplus
18917extern "C"
Martin v. Löwis11437992002-04-12 09:54:03 +000018918#endif
Jack Jansen150753c2003-03-29 22:07:47 +000018919char $ac_func ();
Jack Jansen150753c2003-03-29 22:07:47 +000018920/* The GNU C library defines this for functions which it implements
18921 to always fail with ENOSYS. Some functions are actually named
18922 something starting with __ and the normal name is an alias. */
Martin v. Löwiseba40652007-08-30 20:10:57 +000018923#if defined __stub_$ac_func || defined __stub___$ac_func
Jack Jansen150753c2003-03-29 22:07:47 +000018924choke me
Jack Jansen150753c2003-03-29 22:07:47 +000018925#endif
18926
Skip Montanaro6dead952003-09-25 14:50:04 +000018927int
18928main ()
18929{
Martin v. Löwiseba40652007-08-30 20:10:57 +000018930return $ac_func ();
Martin v. Löwis11437992002-04-12 09:54:03 +000018931 ;
18932 return 0;
18933}
18934_ACEOF
Jack Jansen150753c2003-03-29 22:07:47 +000018935rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000018936if { (ac_try="$ac_link"
18937case "(($ac_try" in
18938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18939 *) ac_try_echo=$ac_try;;
18940esac
18941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18942 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000018943 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000018944 grep -v '^ *+' conftest.er1 >conftest.err
18945 rm -f conftest.er1
18946 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000018947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000018948 (exit $ac_status); } && {
18949 test -z "$ac_c_werror_flag" ||
18950 test ! -s conftest.err
18951 } && test -s conftest$ac_exeext &&
18952 $as_test_x conftest$ac_exeext; then
Jack Jansen150753c2003-03-29 22:07:47 +000018953 eval "$as_ac_var=yes"
Michael W. Hudson54241132001-12-07 15:38:26 +000018954else
Jack Jansen150753c2003-03-29 22:07:47 +000018955 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000018956sed 's/^/| /' conftest.$ac_ext >&5
18957
Martin v. Löwiseba40652007-08-30 20:10:57 +000018958 eval "$as_ac_var=no"
Michael W. Hudson54241132001-12-07 15:38:26 +000018959fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000018960
18961rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000018962 conftest$ac_exeext conftest.$ac_ext
Michael W. Hudson54241132001-12-07 15:38:26 +000018963fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000018964ac_res=`eval echo '${'$as_ac_var'}'`
18965 { echo "$as_me:$LINENO: result: $ac_res" >&5
18966echo "${ECHO_T}$ac_res" >&6; }
Jack Jansen150753c2003-03-29 22:07:47 +000018967if test `eval echo '${'$as_ac_var'}'` = yes; then
18968 cat >>confdefs.h <<_ACEOF
18969#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18970_ACEOF
18971 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000018972/* confdefs.h. */
18973_ACEOF
18974cat confdefs.h >>conftest.$ac_ext
18975cat >>conftest.$ac_ext <<_ACEOF
18976/* end confdefs.h. */
Jack Jansen150753c2003-03-29 22:07:47 +000018977#include <unistd.h>
Jack Jansen150753c2003-03-29 22:07:47 +000018978int
18979main ()
18980{
18981setpgrp(0,0);
18982 ;
18983 return 0;
18984}
18985_ACEOF
18986rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000018987if { (ac_try="$ac_compile"
18988case "(($ac_try" in
18989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18990 *) ac_try_echo=$ac_try;;
18991esac
18992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18993 (eval "$ac_compile") 2>conftest.er1
Jack Jansen150753c2003-03-29 22:07:47 +000018994 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000018995 grep -v '^ *+' conftest.er1 >conftest.err
18996 rm -f conftest.er1
18997 cat conftest.err >&5
Jack Jansen150753c2003-03-29 22:07:47 +000018998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000018999 (exit $ac_status); } && {
19000 test -z "$ac_c_werror_flag" ||
19001 test ! -s conftest.err
19002 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000019003
19004cat >>confdefs.h <<\_ACEOF
Jack Jansen150753c2003-03-29 22:07:47 +000019005#define SETPGRP_HAVE_ARG 1
Martin v. Löwis11437992002-04-12 09:54:03 +000019006_ACEOF
Guido van Rossum8eee56f1994-10-20 22:18:37 +000019007
Jack Jansen150753c2003-03-29 22:07:47 +000019008
19009else
19010 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000019011sed 's/^/| /' conftest.$ac_ext >&5
19012
Martin v. Löwiseba40652007-08-30 20:10:57 +000019013
Guido van Rossum8eee56f1994-10-20 22:18:37 +000019014fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000019015
19016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Jack Jansen150753c2003-03-29 22:07:47 +000019017
19018fi
19019done
Guido van Rossum8eee56f1994-10-20 22:18:37 +000019020
Martin v. Löwis11437992002-04-12 09:54:03 +000019021
Thomas Wouters3a584202000-08-05 23:28:51 +000019022for ac_func in gettimeofday
19023do
Martin v. Löwis11437992002-04-12 09:54:03 +000019024as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Martin v. Löwiseba40652007-08-30 20:10:57 +000019025{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19026echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19027if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Martin v. Löwis11437992002-04-12 09:54:03 +000019028 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +000019029else
Martin v. Löwis11437992002-04-12 09:54:03 +000019030 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000019031/* confdefs.h. */
19032_ACEOF
19033cat confdefs.h >>conftest.$ac_ext
19034cat >>conftest.$ac_ext <<_ACEOF
19035/* end confdefs.h. */
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000019036/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19037 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19038#define $ac_func innocuous_$ac_func
19039
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +000019040/* System header to define __stub macros and hopefully few prototypes,
Skip Montanaro6dead952003-09-25 14:50:04 +000019041 which can conflict with char $ac_func (); below.
19042 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000019043 <limits.h> exists even on freestanding compilers. */
19044
19045#ifdef __STDC__
Skip Montanaro6dead952003-09-25 14:50:04 +000019046# include <limits.h>
19047#else
19048# include <assert.h>
19049#endif
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000019050
19051#undef $ac_func
19052
Martin v. Löwiseba40652007-08-30 20:10:57 +000019053/* Override any GCC internal prototype to avoid an error.
19054 Use char because int might match the return type of a GCC
19055 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +000019056#ifdef __cplusplus
19057extern "C"
19058#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000019059char $ac_func ();
Guido van Rossum76be6ed1995-01-02 18:33:54 +000019060/* The GNU C library defines this for functions which it implements
19061 to always fail with ENOSYS. Some functions are actually named
19062 something starting with __ and the normal name is an alias. */
Martin v. Löwiseba40652007-08-30 20:10:57 +000019063#if defined __stub_$ac_func || defined __stub___$ac_func
Guido van Rossum76be6ed1995-01-02 18:33:54 +000019064choke me
Guido van Rossum76be6ed1995-01-02 18:33:54 +000019065#endif
19066
Skip Montanaro6dead952003-09-25 14:50:04 +000019067int
19068main ()
19069{
Martin v. Löwiseba40652007-08-30 20:10:57 +000019070return $ac_func ();
Martin v. Löwis11437992002-04-12 09:54:03 +000019071 ;
19072 return 0;
19073}
19074_ACEOF
19075rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000019076if { (ac_try="$ac_link"
19077case "(($ac_try" in
19078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19079 *) ac_try_echo=$ac_try;;
19080esac
19081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19082 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000019083 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000019084 grep -v '^ *+' conftest.er1 >conftest.err
19085 rm -f conftest.er1
19086 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000019087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000019088 (exit $ac_status); } && {
19089 test -z "$ac_c_werror_flag" ||
19090 test ! -s conftest.err
19091 } && test -s conftest$ac_exeext &&
19092 $as_test_x conftest$ac_exeext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000019093 eval "$as_ac_var=yes"
Michael W. Hudson54241132001-12-07 15:38:26 +000019094else
Martin v. Löwis11437992002-04-12 09:54:03 +000019095 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000019096sed 's/^/| /' conftest.$ac_ext >&5
19097
Martin v. Löwiseba40652007-08-30 20:10:57 +000019098 eval "$as_ac_var=no"
Michael W. Hudson54241132001-12-07 15:38:26 +000019099fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000019100
19101rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000019102 conftest$ac_exeext conftest.$ac_ext
Michael W. Hudson54241132001-12-07 15:38:26 +000019103fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000019104ac_res=`eval echo '${'$as_ac_var'}'`
19105 { echo "$as_me:$LINENO: result: $ac_res" >&5
19106echo "${ECHO_T}$ac_res" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000019107if test `eval echo '${'$as_ac_var'}'` = yes; then
19108 cat >>confdefs.h <<_ACEOF
19109#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19110_ACEOF
19111 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000019112/* confdefs.h. */
19113_ACEOF
19114cat confdefs.h >>conftest.$ac_ext
19115cat >>conftest.$ac_ext <<_ACEOF
19116/* end confdefs.h. */
Guido van Rossum627b2d71993-12-24 10:39:16 +000019117#include <sys/time.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000019118int
19119main ()
19120{
Guido van Rossum76be6ed1995-01-02 18:33:54 +000019121gettimeofday((struct timeval*)0,(struct timezone*)0);
Martin v. Löwis11437992002-04-12 09:54:03 +000019122 ;
19123 return 0;
19124}
19125_ACEOF
19126rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000019127if { (ac_try="$ac_compile"
19128case "(($ac_try" in
19129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19130 *) ac_try_echo=$ac_try;;
19131esac
19132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19133 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000019134 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000019135 grep -v '^ *+' conftest.er1 >conftest.err
19136 rm -f conftest.er1
19137 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000019138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000019139 (exit $ac_status); } && {
19140 test -z "$ac_c_werror_flag" ||
19141 test ! -s conftest.err
19142 } && test -s conftest.$ac_objext; then
Guido van Rossum627b2d71993-12-24 10:39:16 +000019143 :
19144else
Martin v. Löwis11437992002-04-12 09:54:03 +000019145 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000019146sed 's/^/| /' conftest.$ac_ext >&5
19147
Martin v. Löwis11437992002-04-12 09:54:03 +000019148
19149cat >>confdefs.h <<\_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000019150#define GETTIMEOFDAY_NO_TZ 1
Martin v. Löwis11437992002-04-12 09:54:03 +000019151_ACEOF
Guido van Rossum627b2d71993-12-24 10:39:16 +000019152
Martin v. Löwis11437992002-04-12 09:54:03 +000019153
Guido van Rossum627b2d71993-12-24 10:39:16 +000019154fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000019155
19156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwisc45929e2002-04-06 10:10:49 +000019157
Guido van Rossum76be6ed1995-01-02 18:33:54 +000019158fi
Thomas Wouters3a584202000-08-05 23:28:51 +000019159done
Guido van Rossum76be6ed1995-01-02 18:33:54 +000019160
Michael W. Hudson54241132001-12-07 15:38:26 +000019161
Martin v. Löwiseba40652007-08-30 20:10:57 +000019162{ echo "$as_me:$LINENO: checking for major" >&5
19163echo $ECHO_N "checking for major... $ECHO_C" >&6; }
Martin v. Löwisdbe3f762002-10-10 14:27:30 +000019164cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000019165/* confdefs.h. */
19166_ACEOF
19167cat confdefs.h >>conftest.$ac_ext
19168cat >>conftest.$ac_ext <<_ACEOF
19169/* end confdefs.h. */
Martin v. Löwisdbe3f762002-10-10 14:27:30 +000019170
Neal Norwitz6eb37f02003-02-23 23:28:15 +000019171#if defined(MAJOR_IN_MKDEV)
19172#include <sys/mkdev.h>
19173#elif defined(MAJOR_IN_SYSMACROS)
19174#include <sys/sysmacros.h>
19175#else
19176#include <sys/types.h>
19177#endif
Martin v. Löwisdbe3f762002-10-10 14:27:30 +000019178
Martin v. Löwisdbe3f762002-10-10 14:27:30 +000019179int
19180main ()
19181{
19182
19183 makedev(major(0),minor(0));
19184
19185 ;
19186 return 0;
19187}
19188_ACEOF
Martin v. Löwise3271202002-11-07 07:42:30 +000019189rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000019190if { (ac_try="$ac_link"
19191case "(($ac_try" in
19192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19193 *) ac_try_echo=$ac_try;;
19194esac
19195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19196 (eval "$ac_link") 2>conftest.er1
Martin v. Löwisdbe3f762002-10-10 14:27:30 +000019197 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000019198 grep -v '^ *+' conftest.er1 >conftest.err
19199 rm -f conftest.er1
19200 cat conftest.err >&5
Martin v. Löwisdbe3f762002-10-10 14:27:30 +000019201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000019202 (exit $ac_status); } && {
19203 test -z "$ac_c_werror_flag" ||
19204 test ! -s conftest.err
19205 } && test -s conftest$ac_exeext &&
19206 $as_test_x conftest$ac_exeext; then
Martin v. Löwisdbe3f762002-10-10 14:27:30 +000019207
19208
19209cat >>confdefs.h <<\_ACEOF
19210#define HAVE_DEVICE_MACROS 1
19211_ACEOF
19212
Martin v. Löwiseba40652007-08-30 20:10:57 +000019213 { echo "$as_me:$LINENO: result: yes" >&5
19214echo "${ECHO_T}yes" >&6; }
Martin v. Löwisdbe3f762002-10-10 14:27:30 +000019215
19216else
19217 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000019218sed 's/^/| /' conftest.$ac_ext >&5
19219
Martin v. Löwisdbe3f762002-10-10 14:27:30 +000019220
Martin v. Löwiseba40652007-08-30 20:10:57 +000019221 { echo "$as_me:$LINENO: result: no" >&5
19222echo "${ECHO_T}no" >&6; }
Martin v. Löwisdbe3f762002-10-10 14:27:30 +000019223
19224fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000019225
19226rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000019227 conftest$ac_exeext conftest.$ac_ext
Michael W. Hudson54241132001-12-07 15:38:26 +000019228
Martin v. Löwis861a65b2001-10-24 14:36:00 +000019229# On OSF/1 V5.1, getaddrinfo is available, but a define
Martin v. Löwis11437992002-04-12 09:54:03 +000019230# for [no]getaddrinfo in netdb.h.
Martin v. Löwiseba40652007-08-30 20:10:57 +000019231{ echo "$as_me:$LINENO: checking for getaddrinfo" >&5
19232echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000019233cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000019234/* confdefs.h. */
19235_ACEOF
19236cat confdefs.h >>conftest.$ac_ext
19237cat >>conftest.$ac_ext <<_ACEOF
19238/* end confdefs.h. */
Martin v. Löwis861a65b2001-10-24 14:36:00 +000019239
Martin v. Löwisc010b6d2001-11-09 17:50:52 +000019240#include <sys/types.h>
Martin v. Löwis861a65b2001-10-24 14:36:00 +000019241#include <sys/socket.h>
19242#include <netdb.h>
Martin v. Löwisc010b6d2001-11-09 17:50:52 +000019243#include <stdio.h>
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000019244
Martin v. Löwis11437992002-04-12 09:54:03 +000019245int
19246main ()
19247{
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000019248
Martin v. Löwis861a65b2001-10-24 14:36:00 +000019249getaddrinfo(NULL, NULL, NULL, NULL);
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000019250
Martin v. Löwis11437992002-04-12 09:54:03 +000019251 ;
19252 return 0;
19253}
19254_ACEOF
19255rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000019256if { (ac_try="$ac_link"
19257case "(($ac_try" in
19258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19259 *) ac_try_echo=$ac_try;;
19260esac
19261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19262 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000019263 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000019264 grep -v '^ *+' conftest.er1 >conftest.err
19265 rm -f conftest.er1
19266 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000019267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000019268 (exit $ac_status); } && {
19269 test -z "$ac_c_werror_flag" ||
19270 test ! -s conftest.err
19271 } && test -s conftest$ac_exeext &&
19272 $as_test_x conftest$ac_exeext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000019273
Martin v. Löwiseba40652007-08-30 20:10:57 +000019274{ echo "$as_me:$LINENO: result: yes" >&5
19275echo "${ECHO_T}yes" >&6; }
19276{ echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
19277echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000019278if test "$cross_compiling" = yes; then
Martin v. Löwiseba40652007-08-30 20:10:57 +000019279 { echo "$as_me:$LINENO: result: buggy" >&5
19280echo "${ECHO_T}buggy" >&6; }
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000019281buggygetaddrinfo=yes
19282else
Martin v. Löwis11437992002-04-12 09:54:03 +000019283 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000019284/* confdefs.h. */
19285_ACEOF
19286cat confdefs.h >>conftest.$ac_ext
19287cat >>conftest.$ac_ext <<_ACEOF
19288/* end confdefs.h. */
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000019289
19290#include <sys/types.h>
19291#include <netdb.h>
19292#include <string.h>
19293#include <sys/socket.h>
19294#include <netinet/in.h>
19295
19296main()
19297{
19298 int passive, gaierr, inet4 = 0, inet6 = 0;
19299 struct addrinfo hints, *ai, *aitop;
19300 char straddr[INET6_ADDRSTRLEN], strport[16];
19301
19302 for (passive = 0; passive <= 1; passive++) {
19303 memset(&hints, 0, sizeof(hints));
19304 hints.ai_family = AF_UNSPEC;
19305 hints.ai_flags = passive ? AI_PASSIVE : 0;
19306 hints.ai_socktype = SOCK_STREAM;
Hye-Shik Chang54f94392004-04-14 07:55:31 +000019307 hints.ai_protocol = IPPROTO_TCP;
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000019308 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
19309 (void)gai_strerror(gaierr);
19310 goto bad;
19311 }
19312 for (ai = aitop; ai; ai = ai->ai_next) {
19313 if (ai->ai_addr == NULL ||
19314 ai->ai_addrlen == 0 ||
19315 getnameinfo(ai->ai_addr, ai->ai_addrlen,
19316 straddr, sizeof(straddr), strport, sizeof(strport),
19317 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
19318 goto bad;
19319 }
19320 switch (ai->ai_family) {
19321 case AF_INET:
19322 if (strcmp(strport, "54321") != 0) {
19323 goto bad;
19324 }
19325 if (passive) {
19326 if (strcmp(straddr, "0.0.0.0") != 0) {
19327 goto bad;
19328 }
19329 } else {
19330 if (strcmp(straddr, "127.0.0.1") != 0) {
19331 goto bad;
19332 }
19333 }
19334 inet4++;
19335 break;
19336 case AF_INET6:
19337 if (strcmp(strport, "54321") != 0) {
19338 goto bad;
19339 }
19340 if (passive) {
19341 if (strcmp(straddr, "::") != 0) {
19342 goto bad;
19343 }
19344 } else {
19345 if (strcmp(straddr, "::1") != 0) {
19346 goto bad;
19347 }
19348 }
19349 inet6++;
19350 break;
19351 case AF_UNSPEC:
19352 goto bad;
19353 break;
19354 default:
19355 /* another family support? */
19356 break;
19357 }
19358 }
19359 }
19360
19361 if (!(inet4 == 0 || inet4 == 2))
19362 goto bad;
19363 if (!(inet6 == 0 || inet6 == 2))
19364 goto bad;
19365
19366 if (aitop)
19367 freeaddrinfo(aitop);
19368 exit(0);
19369
19370 bad:
19371 if (aitop)
19372 freeaddrinfo(aitop);
19373 exit(1);
19374}
19375
Martin v. Löwis11437992002-04-12 09:54:03 +000019376_ACEOF
19377rm -f conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000019378if { (ac_try="$ac_link"
19379case "(($ac_try" in
19380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19381 *) ac_try_echo=$ac_try;;
19382esac
19383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19384 (eval "$ac_link") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +000019385 ac_status=$?
19386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19387 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Martin v. Löwiseba40652007-08-30 20:10:57 +000019388 { (case "(($ac_try" in
19389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19390 *) ac_try_echo=$ac_try;;
19391esac
19392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19393 (eval "$ac_try") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +000019394 ac_status=$?
19395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19396 (exit $ac_status); }; }; then
Martin v. Löwiseba40652007-08-30 20:10:57 +000019397 { echo "$as_me:$LINENO: result: good" >&5
19398echo "${ECHO_T}good" >&6; }
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000019399buggygetaddrinfo=no
19400else
Martin v. Löwis11437992002-04-12 09:54:03 +000019401 echo "$as_me: program exited with status $ac_status" >&5
19402echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000019403sed 's/^/| /' conftest.$ac_ext >&5
19404
Martin v. Löwis11437992002-04-12 09:54:03 +000019405( exit $ac_status )
Martin v. Löwiseba40652007-08-30 20:10:57 +000019406{ echo "$as_me:$LINENO: result: buggy" >&5
19407echo "${ECHO_T}buggy" >&6; }
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000019408buggygetaddrinfo=yes
19409fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000019410rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000019411fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000019412
19413
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000019414else
Martin v. Löwis11437992002-04-12 09:54:03 +000019415 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000019416sed 's/^/| /' conftest.$ac_ext >&5
19417
Martin v. Löwis11437992002-04-12 09:54:03 +000019418
Martin v. Löwiseba40652007-08-30 20:10:57 +000019419{ echo "$as_me:$LINENO: result: no" >&5
19420echo "${ECHO_T}no" >&6; }
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000019421buggygetaddrinfo=yes
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000019422
Martin v. Löwis861a65b2001-10-24 14:36:00 +000019423fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000019424
19425rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000019426 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000019427
19428if test "$buggygetaddrinfo" = "yes"; then
19429 if test "$ipv6" = "yes"; then
19430 echo 'Fatal: You must get working getaddrinfo() function.'
19431 echo ' or you can specify "--disable-ipv6"'.
19432 exit 1
19433 fi
Martin v. Löwis861a65b2001-10-24 14:36:00 +000019434else
Martin v. Löwis11437992002-04-12 09:54:03 +000019435
19436cat >>confdefs.h <<\_ACEOF
Martin v. Löwis861a65b2001-10-24 14:36:00 +000019437#define HAVE_GETADDRINFO 1
Martin v. Löwis11437992002-04-12 09:54:03 +000019438_ACEOF
Martin v. Löwis861a65b2001-10-24 14:36:00 +000019439
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000019440fi
Martin v. Löwis11437992002-04-12 09:54:03 +000019441
Jack Jansen9a66b6d2001-08-08 13:56:14 +000019442for ac_func in getnameinfo
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000019443do
Martin v. Löwis11437992002-04-12 09:54:03 +000019444as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Martin v. Löwiseba40652007-08-30 20:10:57 +000019445{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19446echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19447if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Martin v. Löwis11437992002-04-12 09:54:03 +000019448 echo $ECHO_N "(cached) $ECHO_C" >&6
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000019449else
Martin v. Löwis11437992002-04-12 09:54:03 +000019450 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000019451/* confdefs.h. */
19452_ACEOF
19453cat confdefs.h >>conftest.$ac_ext
19454cat >>conftest.$ac_ext <<_ACEOF
19455/* end confdefs.h. */
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000019456/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19457 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19458#define $ac_func innocuous_$ac_func
19459
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000019460/* System header to define __stub macros and hopefully few prototypes,
Skip Montanaro6dead952003-09-25 14:50:04 +000019461 which can conflict with char $ac_func (); below.
19462 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000019463 <limits.h> exists even on freestanding compilers. */
19464
19465#ifdef __STDC__
Skip Montanaro6dead952003-09-25 14:50:04 +000019466# include <limits.h>
19467#else
19468# include <assert.h>
19469#endif
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000019470
19471#undef $ac_func
19472
Martin v. Löwiseba40652007-08-30 20:10:57 +000019473/* Override any GCC internal prototype to avoid an error.
19474 Use char because int might match the return type of a GCC
19475 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +000019476#ifdef __cplusplus
19477extern "C"
19478#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000019479char $ac_func ();
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000019480/* The GNU C library defines this for functions which it implements
19481 to always fail with ENOSYS. Some functions are actually named
19482 something starting with __ and the normal name is an alias. */
Martin v. Löwiseba40652007-08-30 20:10:57 +000019483#if defined __stub_$ac_func || defined __stub___$ac_func
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000019484choke me
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000019485#endif
19486
Skip Montanaro6dead952003-09-25 14:50:04 +000019487int
19488main ()
19489{
Martin v. Löwiseba40652007-08-30 20:10:57 +000019490return $ac_func ();
Martin v. Löwis11437992002-04-12 09:54:03 +000019491 ;
19492 return 0;
19493}
19494_ACEOF
19495rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000019496if { (ac_try="$ac_link"
19497case "(($ac_try" in
19498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19499 *) ac_try_echo=$ac_try;;
19500esac
19501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19502 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000019503 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000019504 grep -v '^ *+' conftest.er1 >conftest.err
19505 rm -f conftest.er1
19506 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000019507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000019508 (exit $ac_status); } && {
19509 test -z "$ac_c_werror_flag" ||
19510 test ! -s conftest.err
19511 } && test -s conftest$ac_exeext &&
19512 $as_test_x conftest$ac_exeext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000019513 eval "$as_ac_var=yes"
Michael W. Hudson54241132001-12-07 15:38:26 +000019514else
Martin v. Löwis11437992002-04-12 09:54:03 +000019515 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000019516sed 's/^/| /' conftest.$ac_ext >&5
19517
Martin v. Löwiseba40652007-08-30 20:10:57 +000019518 eval "$as_ac_var=no"
Michael W. Hudson54241132001-12-07 15:38:26 +000019519fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000019520
19521rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000019522 conftest$ac_exeext conftest.$ac_ext
Michael W. Hudson54241132001-12-07 15:38:26 +000019523fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000019524ac_res=`eval echo '${'$as_ac_var'}'`
19525 { echo "$as_me:$LINENO: result: $ac_res" >&5
19526echo "${ECHO_T}$ac_res" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000019527if test `eval echo '${'$as_ac_var'}'` = yes; then
19528 cat >>confdefs.h <<_ACEOF
19529#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19530_ACEOF
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000019531
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000019532fi
19533done
19534
Michael W. Hudson54241132001-12-07 15:38:26 +000019535
Guido van Rossum76be6ed1995-01-02 18:33:54 +000019536# checks for structures
Martin v. Löwiseba40652007-08-30 20:10:57 +000019537{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19538echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000019539if test "${ac_cv_header_time+set}" = set; then
19540 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +000019541else
Martin v. Löwis11437992002-04-12 09:54:03 +000019542 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000019543/* confdefs.h. */
19544_ACEOF
19545cat confdefs.h >>conftest.$ac_ext
19546cat >>conftest.$ac_ext <<_ACEOF
19547/* end confdefs.h. */
Guido van Rossum76be6ed1995-01-02 18:33:54 +000019548#include <sys/types.h>
19549#include <sys/time.h>
19550#include <time.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000019551
Martin v. Löwis11437992002-04-12 09:54:03 +000019552int
19553main ()
19554{
19555if ((struct tm *) 0)
19556return 0;
19557 ;
19558 return 0;
19559}
19560_ACEOF
19561rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000019562if { (ac_try="$ac_compile"
19563case "(($ac_try" in
19564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19565 *) ac_try_echo=$ac_try;;
19566esac
19567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19568 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000019569 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000019570 grep -v '^ *+' conftest.er1 >conftest.err
19571 rm -f conftest.er1
19572 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000019573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000019574 (exit $ac_status); } && {
19575 test -z "$ac_c_werror_flag" ||
19576 test ! -s conftest.err
19577 } && test -s conftest.$ac_objext; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +000019578 ac_cv_header_time=yes
Guido van Rossum627b2d71993-12-24 10:39:16 +000019579else
Martin v. Löwis11437992002-04-12 09:54:03 +000019580 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000019581sed 's/^/| /' conftest.$ac_ext >&5
19582
Martin v. Löwiseba40652007-08-30 20:10:57 +000019583 ac_cv_header_time=no
Guido van Rossum627b2d71993-12-24 10:39:16 +000019584fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000019585
19586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Guido van Rossum76be6ed1995-01-02 18:33:54 +000019587fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000019588{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19589echo "${ECHO_T}$ac_cv_header_time" >&6; }
Michael W. Hudson54241132001-12-07 15:38:26 +000019590if test $ac_cv_header_time = yes; then
Martin v. Löwis11437992002-04-12 09:54:03 +000019591
19592cat >>confdefs.h <<\_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000019593#define TIME_WITH_SYS_TIME 1
Martin v. Löwis11437992002-04-12 09:54:03 +000019594_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000019595
19596fi
19597
Martin v. Löwiseba40652007-08-30 20:10:57 +000019598{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
19599echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000019600if test "${ac_cv_struct_tm+set}" = set; then
19601 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +000019602else
Martin v. Löwis11437992002-04-12 09:54:03 +000019603 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000019604/* confdefs.h. */
19605_ACEOF
19606cat confdefs.h >>conftest.$ac_ext
19607cat >>conftest.$ac_ext <<_ACEOF
19608/* end confdefs.h. */
Guido van Rossum76be6ed1995-01-02 18:33:54 +000019609#include <sys/types.h>
19610#include <time.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000019611
Martin v. Löwis11437992002-04-12 09:54:03 +000019612int
19613main ()
19614{
Martin v. Löwiseba40652007-08-30 20:10:57 +000019615struct tm tm;
19616 int *p = &tm.tm_sec;
19617 return !p;
Martin v. Löwis11437992002-04-12 09:54:03 +000019618 ;
19619 return 0;
19620}
19621_ACEOF
19622rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000019623if { (ac_try="$ac_compile"
19624case "(($ac_try" in
19625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19626 *) ac_try_echo=$ac_try;;
19627esac
19628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19629 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000019630 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000019631 grep -v '^ *+' conftest.er1 >conftest.err
19632 rm -f conftest.er1
19633 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000019634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000019635 (exit $ac_status); } && {
19636 test -z "$ac_c_werror_flag" ||
19637 test ! -s conftest.err
19638 } && test -s conftest.$ac_objext; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +000019639 ac_cv_struct_tm=time.h
19640else
Martin v. Löwis11437992002-04-12 09:54:03 +000019641 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000019642sed 's/^/| /' conftest.$ac_ext >&5
19643
Martin v. Löwiseba40652007-08-30 20:10:57 +000019644 ac_cv_struct_tm=sys/time.h
Guido van Rossum76be6ed1995-01-02 18:33:54 +000019645fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000019646
19647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Guido van Rossum76be6ed1995-01-02 18:33:54 +000019648fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000019649{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
19650echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Michael W. Hudson54241132001-12-07 15:38:26 +000019651if test $ac_cv_struct_tm = sys/time.h; then
Martin v. Löwis11437992002-04-12 09:54:03 +000019652
19653cat >>confdefs.h <<\_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000019654#define TM_IN_SYS_TIME 1
Martin v. Löwis11437992002-04-12 09:54:03 +000019655_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000019656
19657fi
19658
Martin v. Löwiseba40652007-08-30 20:10:57 +000019659{ echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
19660echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000019661if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
19662 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +000019663else
Martin v. Löwis11437992002-04-12 09:54:03 +000019664 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000019665/* confdefs.h. */
19666_ACEOF
19667cat confdefs.h >>conftest.$ac_ext
19668cat >>conftest.$ac_ext <<_ACEOF
19669/* end confdefs.h. */
Guido van Rossum76be6ed1995-01-02 18:33:54 +000019670#include <sys/types.h>
19671#include <$ac_cv_struct_tm>
Martin v. Löwis11437992002-04-12 09:54:03 +000019672
19673
Martin v. Löwis11437992002-04-12 09:54:03 +000019674int
19675main ()
19676{
19677static struct tm ac_aggr;
19678if (ac_aggr.tm_zone)
19679return 0;
19680 ;
19681 return 0;
19682}
19683_ACEOF
19684rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000019685if { (ac_try="$ac_compile"
19686case "(($ac_try" in
19687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19688 *) ac_try_echo=$ac_try;;
19689esac
19690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19691 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000019692 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000019693 grep -v '^ *+' conftest.er1 >conftest.err
19694 rm -f conftest.er1
19695 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000019696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000019697 (exit $ac_status); } && {
19698 test -z "$ac_c_werror_flag" ||
19699 test ! -s conftest.err
19700 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000019701 ac_cv_member_struct_tm_tm_zone=yes
Michael W. Hudson54241132001-12-07 15:38:26 +000019702else
Martin v. Löwis11437992002-04-12 09:54:03 +000019703 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000019704sed 's/^/| /' conftest.$ac_ext >&5
19705
Martin v. Löwiseba40652007-08-30 20:10:57 +000019706 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000019707/* confdefs.h. */
19708_ACEOF
19709cat confdefs.h >>conftest.$ac_ext
19710cat >>conftest.$ac_ext <<_ACEOF
19711/* end confdefs.h. */
19712#include <sys/types.h>
19713#include <$ac_cv_struct_tm>
19714
19715
19716int
19717main ()
19718{
19719static struct tm ac_aggr;
19720if (sizeof ac_aggr.tm_zone)
19721return 0;
19722 ;
19723 return 0;
19724}
19725_ACEOF
19726rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000019727if { (ac_try="$ac_compile"
19728case "(($ac_try" in
19729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19730 *) ac_try_echo=$ac_try;;
19731esac
19732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19733 (eval "$ac_compile") 2>conftest.er1
Skip Montanaro6dead952003-09-25 14:50:04 +000019734 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000019735 grep -v '^ *+' conftest.er1 >conftest.err
19736 rm -f conftest.er1
19737 cat conftest.err >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000019738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000019739 (exit $ac_status); } && {
19740 test -z "$ac_c_werror_flag" ||
19741 test ! -s conftest.err
19742 } && test -s conftest.$ac_objext; then
Skip Montanaro6dead952003-09-25 14:50:04 +000019743 ac_cv_member_struct_tm_tm_zone=yes
19744else
19745 echo "$as_me: failed program was:" >&5
19746sed 's/^/| /' conftest.$ac_ext >&5
19747
Martin v. Löwiseba40652007-08-30 20:10:57 +000019748 ac_cv_member_struct_tm_tm_zone=no
Michael W. Hudson54241132001-12-07 15:38:26 +000019749fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000019750
19751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000019752fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000019753
19754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +000019755fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000019756{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
19757echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000019758if test $ac_cv_member_struct_tm_tm_zone = yes; then
19759
19760cat >>confdefs.h <<_ACEOF
19761#define HAVE_STRUCT_TM_TM_ZONE 1
19762_ACEOF
19763
19764
Guido van Rossum76be6ed1995-01-02 18:33:54 +000019765fi
Guido van Rossum48bdbfc1996-05-28 22:53:48 +000019766
Martin v. Löwis11437992002-04-12 09:54:03 +000019767if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
19768
19769cat >>confdefs.h <<\_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000019770#define HAVE_TM_ZONE 1
Martin v. Löwis11437992002-04-12 09:54:03 +000019771_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000019772
19773else
Martin v. Löwiseba40652007-08-30 20:10:57 +000019774 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
19775echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
19776if test "${ac_cv_have_decl_tzname+set}" = set; then
19777 echo $ECHO_N "(cached) $ECHO_C" >&6
19778else
19779 cat >conftest.$ac_ext <<_ACEOF
19780/* confdefs.h. */
19781_ACEOF
19782cat confdefs.h >>conftest.$ac_ext
19783cat >>conftest.$ac_ext <<_ACEOF
19784/* end confdefs.h. */
19785#include <time.h>
19786
19787int
19788main ()
19789{
19790#ifndef tzname
19791 (void) tzname;
19792#endif
19793
19794 ;
19795 return 0;
19796}
19797_ACEOF
19798rm -f conftest.$ac_objext
19799if { (ac_try="$ac_compile"
19800case "(($ac_try" in
19801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19802 *) ac_try_echo=$ac_try;;
19803esac
19804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19805 (eval "$ac_compile") 2>conftest.er1
19806 ac_status=$?
19807 grep -v '^ *+' conftest.er1 >conftest.err
19808 rm -f conftest.er1
19809 cat conftest.err >&5
19810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19811 (exit $ac_status); } && {
19812 test -z "$ac_c_werror_flag" ||
19813 test ! -s conftest.err
19814 } && test -s conftest.$ac_objext; then
19815 ac_cv_have_decl_tzname=yes
19816else
19817 echo "$as_me: failed program was:" >&5
19818sed 's/^/| /' conftest.$ac_ext >&5
19819
19820 ac_cv_have_decl_tzname=no
19821fi
19822
19823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19824fi
19825{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
19826echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
19827if test $ac_cv_have_decl_tzname = yes; then
19828
19829cat >>confdefs.h <<_ACEOF
19830#define HAVE_DECL_TZNAME 1
19831_ACEOF
19832
19833
19834else
19835 cat >>confdefs.h <<_ACEOF
19836#define HAVE_DECL_TZNAME 0
19837_ACEOF
19838
19839
19840fi
19841
19842
19843 { echo "$as_me:$LINENO: checking for tzname" >&5
19844echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000019845if test "${ac_cv_var_tzname+set}" = set; then
19846 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +000019847else
Martin v. Löwis11437992002-04-12 09:54:03 +000019848 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000019849/* confdefs.h. */
19850_ACEOF
19851cat confdefs.h >>conftest.$ac_ext
19852cat >>conftest.$ac_ext <<_ACEOF
19853/* end confdefs.h. */
Guido van Rossum627b2d71993-12-24 10:39:16 +000019854#include <time.h>
Martin v. Löwiseba40652007-08-30 20:10:57 +000019855#if !HAVE_DECL_TZNAME
19856extern char *tzname[];
Guido van Rossum627b2d71993-12-24 10:39:16 +000019857#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000019858
Martin v. Löwis11437992002-04-12 09:54:03 +000019859int
19860main ()
19861{
Martin v. Löwiseba40652007-08-30 20:10:57 +000019862return tzname[0][0];
Martin v. Löwis11437992002-04-12 09:54:03 +000019863 ;
19864 return 0;
19865}
19866_ACEOF
19867rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000019868if { (ac_try="$ac_link"
19869case "(($ac_try" in
19870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19871 *) ac_try_echo=$ac_try;;
19872esac
19873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19874 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000019875 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000019876 grep -v '^ *+' conftest.er1 >conftest.err
19877 rm -f conftest.er1
19878 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000019879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000019880 (exit $ac_status); } && {
19881 test -z "$ac_c_werror_flag" ||
19882 test ! -s conftest.err
19883 } && test -s conftest$ac_exeext &&
19884 $as_test_x conftest$ac_exeext; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +000019885 ac_cv_var_tzname=yes
19886else
Martin v. Löwis11437992002-04-12 09:54:03 +000019887 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000019888sed 's/^/| /' conftest.$ac_ext >&5
19889
Martin v. Löwiseba40652007-08-30 20:10:57 +000019890 ac_cv_var_tzname=no
Guido van Rossum627b2d71993-12-24 10:39:16 +000019891fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000019892
19893rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000019894 conftest$ac_exeext conftest.$ac_ext
Guido van Rossum627b2d71993-12-24 10:39:16 +000019895fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000019896{ echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
19897echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
Michael W. Hudson54241132001-12-07 15:38:26 +000019898 if test $ac_cv_var_tzname = yes; then
Martin v. Löwis11437992002-04-12 09:54:03 +000019899
19900cat >>confdefs.h <<\_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000019901#define HAVE_TZNAME 1
Martin v. Löwis11437992002-04-12 09:54:03 +000019902_ACEOF
Guido van Rossum627b2d71993-12-24 10:39:16 +000019903
Guido van Rossum76be6ed1995-01-02 18:33:54 +000019904 fi
19905fi
19906
Martin v. Löwiseba40652007-08-30 20:10:57 +000019907{ echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
19908echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000019909if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
19910 echo $ECHO_N "(cached) $ECHO_C" >&6
19911else
19912 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000019913/* confdefs.h. */
19914_ACEOF
19915cat confdefs.h >>conftest.$ac_ext
19916cat >>conftest.$ac_ext <<_ACEOF
19917/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000019918$ac_includes_default
Martin v. Löwis11437992002-04-12 09:54:03 +000019919int
19920main ()
19921{
19922static struct stat ac_aggr;
19923if (ac_aggr.st_rdev)
19924return 0;
19925 ;
19926 return 0;
19927}
19928_ACEOF
19929rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000019930if { (ac_try="$ac_compile"
19931case "(($ac_try" in
19932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19933 *) ac_try_echo=$ac_try;;
19934esac
19935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19936 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000019937 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000019938 grep -v '^ *+' conftest.er1 >conftest.err
19939 rm -f conftest.er1
19940 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000019941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000019942 (exit $ac_status); } && {
19943 test -z "$ac_c_werror_flag" ||
19944 test ! -s conftest.err
19945 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000019946 ac_cv_member_struct_stat_st_rdev=yes
19947else
19948 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000019949sed 's/^/| /' conftest.$ac_ext >&5
19950
Martin v. Löwiseba40652007-08-30 20:10:57 +000019951 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000019952/* confdefs.h. */
19953_ACEOF
19954cat confdefs.h >>conftest.$ac_ext
19955cat >>conftest.$ac_ext <<_ACEOF
19956/* end confdefs.h. */
19957$ac_includes_default
19958int
19959main ()
19960{
19961static struct stat ac_aggr;
19962if (sizeof ac_aggr.st_rdev)
19963return 0;
19964 ;
19965 return 0;
19966}
19967_ACEOF
19968rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000019969if { (ac_try="$ac_compile"
19970case "(($ac_try" in
19971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19972 *) ac_try_echo=$ac_try;;
19973esac
19974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19975 (eval "$ac_compile") 2>conftest.er1
Skip Montanaro6dead952003-09-25 14:50:04 +000019976 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000019977 grep -v '^ *+' conftest.er1 >conftest.err
19978 rm -f conftest.er1
19979 cat conftest.err >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000019980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000019981 (exit $ac_status); } && {
19982 test -z "$ac_c_werror_flag" ||
19983 test ! -s conftest.err
19984 } && test -s conftest.$ac_objext; then
Skip Montanaro6dead952003-09-25 14:50:04 +000019985 ac_cv_member_struct_stat_st_rdev=yes
19986else
19987 echo "$as_me: failed program was:" >&5
19988sed 's/^/| /' conftest.$ac_ext >&5
19989
Martin v. Löwiseba40652007-08-30 20:10:57 +000019990 ac_cv_member_struct_stat_st_rdev=no
Martin v. Löwis11437992002-04-12 09:54:03 +000019991fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000019992
19993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000019994fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000019995
19996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +000019997fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000019998{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
19999echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000020000if test $ac_cv_member_struct_stat_st_rdev = yes; then
20001
20002cat >>confdefs.h <<_ACEOF
20003#define HAVE_STRUCT_STAT_ST_RDEV 1
20004_ACEOF
20005
20006
Guido van Rossum98bf58f2001-10-18 20:34:25 +000020007fi
20008
Martin v. Löwiseba40652007-08-30 20:10:57 +000020009{ echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
20010echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000020011if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
20012 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossum98bf58f2001-10-18 20:34:25 +000020013else
Martin v. Löwis11437992002-04-12 09:54:03 +000020014 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000020015/* confdefs.h. */
20016_ACEOF
20017cat confdefs.h >>conftest.$ac_ext
20018cat >>conftest.$ac_ext <<_ACEOF
20019/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000020020$ac_includes_default
Martin v. Löwis11437992002-04-12 09:54:03 +000020021int
20022main ()
20023{
20024static struct stat ac_aggr;
20025if (ac_aggr.st_blksize)
20026return 0;
20027 ;
20028 return 0;
20029}
20030_ACEOF
20031rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000020032if { (ac_try="$ac_compile"
20033case "(($ac_try" in
20034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20035 *) ac_try_echo=$ac_try;;
20036esac
20037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20038 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000020039 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000020040 grep -v '^ *+' conftest.er1 >conftest.err
20041 rm -f conftest.er1
20042 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000020043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000020044 (exit $ac_status); } && {
20045 test -z "$ac_c_werror_flag" ||
20046 test ! -s conftest.err
20047 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000020048 ac_cv_member_struct_stat_st_blksize=yes
Michael W. Hudson54241132001-12-07 15:38:26 +000020049else
Martin v. Löwis11437992002-04-12 09:54:03 +000020050 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000020051sed 's/^/| /' conftest.$ac_ext >&5
20052
Martin v. Löwiseba40652007-08-30 20:10:57 +000020053 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000020054/* confdefs.h. */
20055_ACEOF
20056cat confdefs.h >>conftest.$ac_ext
20057cat >>conftest.$ac_ext <<_ACEOF
20058/* end confdefs.h. */
20059$ac_includes_default
20060int
20061main ()
20062{
20063static struct stat ac_aggr;
20064if (sizeof ac_aggr.st_blksize)
20065return 0;
20066 ;
20067 return 0;
20068}
20069_ACEOF
20070rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000020071if { (ac_try="$ac_compile"
20072case "(($ac_try" in
20073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20074 *) ac_try_echo=$ac_try;;
20075esac
20076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20077 (eval "$ac_compile") 2>conftest.er1
Skip Montanaro6dead952003-09-25 14:50:04 +000020078 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000020079 grep -v '^ *+' conftest.er1 >conftest.err
20080 rm -f conftest.er1
20081 cat conftest.err >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000020082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000020083 (exit $ac_status); } && {
20084 test -z "$ac_c_werror_flag" ||
20085 test ! -s conftest.err
20086 } && test -s conftest.$ac_objext; then
Skip Montanaro6dead952003-09-25 14:50:04 +000020087 ac_cv_member_struct_stat_st_blksize=yes
20088else
20089 echo "$as_me: failed program was:" >&5
20090sed 's/^/| /' conftest.$ac_ext >&5
20091
Martin v. Löwiseba40652007-08-30 20:10:57 +000020092 ac_cv_member_struct_stat_st_blksize=no
Michael W. Hudson54241132001-12-07 15:38:26 +000020093fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000020094
20095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Michael W. Hudson54241132001-12-07 15:38:26 +000020096fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000020097
20098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +000020099fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000020100{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
20101echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000020102if test $ac_cv_member_struct_stat_st_blksize = yes; then
Jack Jansendd19cf82001-12-06 22:36:17 +000020103
Martin v. Löwis11437992002-04-12 09:54:03 +000020104cat >>confdefs.h <<_ACEOF
20105#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
20106_ACEOF
20107
20108
Guido van Rossum98bf58f2001-10-18 20:34:25 +000020109fi
20110
Martin v. Löwiseba40652007-08-30 20:10:57 +000020111{ echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
20112echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6; }
Hye-Shik Chang5f937a72005-06-02 13:09:30 +000020113if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
20114 echo $ECHO_N "(cached) $ECHO_C" >&6
20115else
20116 cat >conftest.$ac_ext <<_ACEOF
20117/* confdefs.h. */
20118_ACEOF
20119cat confdefs.h >>conftest.$ac_ext
20120cat >>conftest.$ac_ext <<_ACEOF
20121/* end confdefs.h. */
20122$ac_includes_default
20123int
20124main ()
20125{
20126static struct stat ac_aggr;
20127if (ac_aggr.st_flags)
20128return 0;
20129 ;
20130 return 0;
20131}
20132_ACEOF
20133rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000020134if { (ac_try="$ac_compile"
20135case "(($ac_try" in
20136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20137 *) ac_try_echo=$ac_try;;
20138esac
20139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20140 (eval "$ac_compile") 2>conftest.er1
Hye-Shik Chang5f937a72005-06-02 13:09:30 +000020141 ac_status=$?
20142 grep -v '^ *+' conftest.er1 >conftest.err
20143 rm -f conftest.er1
20144 cat conftest.err >&5
20145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000020146 (exit $ac_status); } && {
20147 test -z "$ac_c_werror_flag" ||
20148 test ! -s conftest.err
20149 } && test -s conftest.$ac_objext; then
Hye-Shik Chang5f937a72005-06-02 13:09:30 +000020150 ac_cv_member_struct_stat_st_flags=yes
20151else
20152 echo "$as_me: failed program was:" >&5
20153sed 's/^/| /' conftest.$ac_ext >&5
20154
Martin v. Löwiseba40652007-08-30 20:10:57 +000020155 cat >conftest.$ac_ext <<_ACEOF
Hye-Shik Chang5f937a72005-06-02 13:09:30 +000020156/* confdefs.h. */
20157_ACEOF
20158cat confdefs.h >>conftest.$ac_ext
20159cat >>conftest.$ac_ext <<_ACEOF
20160/* end confdefs.h. */
20161$ac_includes_default
20162int
20163main ()
20164{
20165static struct stat ac_aggr;
20166if (sizeof ac_aggr.st_flags)
20167return 0;
20168 ;
20169 return 0;
20170}
20171_ACEOF
20172rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000020173if { (ac_try="$ac_compile"
20174case "(($ac_try" in
20175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20176 *) ac_try_echo=$ac_try;;
20177esac
20178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20179 (eval "$ac_compile") 2>conftest.er1
Hye-Shik Chang5f937a72005-06-02 13:09:30 +000020180 ac_status=$?
20181 grep -v '^ *+' conftest.er1 >conftest.err
20182 rm -f conftest.er1
20183 cat conftest.err >&5
20184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000020185 (exit $ac_status); } && {
20186 test -z "$ac_c_werror_flag" ||
20187 test ! -s conftest.err
20188 } && test -s conftest.$ac_objext; then
Hye-Shik Chang5f937a72005-06-02 13:09:30 +000020189 ac_cv_member_struct_stat_st_flags=yes
20190else
20191 echo "$as_me: failed program was:" >&5
20192sed 's/^/| /' conftest.$ac_ext >&5
20193
Martin v. Löwiseba40652007-08-30 20:10:57 +000020194 ac_cv_member_struct_stat_st_flags=no
Hye-Shik Chang5f937a72005-06-02 13:09:30 +000020195fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000020196
20197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Hye-Shik Chang5f937a72005-06-02 13:09:30 +000020198fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000020199
20200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Hye-Shik Chang5f937a72005-06-02 13:09:30 +000020201fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000020202{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
20203echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6; }
Hye-Shik Chang5f937a72005-06-02 13:09:30 +000020204if test $ac_cv_member_struct_stat_st_flags = yes; then
20205
20206cat >>confdefs.h <<_ACEOF
20207#define HAVE_STRUCT_STAT_ST_FLAGS 1
20208_ACEOF
20209
20210
20211fi
20212
Martin v. Löwiseba40652007-08-30 20:10:57 +000020213{ echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
20214echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6; }
Martin v. Löwisebd9d5b2005-08-09 15:00:59 +000020215if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
20216 echo $ECHO_N "(cached) $ECHO_C" >&6
20217else
20218 cat >conftest.$ac_ext <<_ACEOF
20219/* confdefs.h. */
20220_ACEOF
20221cat confdefs.h >>conftest.$ac_ext
20222cat >>conftest.$ac_ext <<_ACEOF
20223/* end confdefs.h. */
20224$ac_includes_default
20225int
20226main ()
20227{
20228static struct stat ac_aggr;
20229if (ac_aggr.st_gen)
20230return 0;
20231 ;
20232 return 0;
20233}
20234_ACEOF
20235rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000020236if { (ac_try="$ac_compile"
20237case "(($ac_try" in
20238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20239 *) ac_try_echo=$ac_try;;
20240esac
20241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20242 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwisebd9d5b2005-08-09 15:00:59 +000020243 ac_status=$?
20244 grep -v '^ *+' conftest.er1 >conftest.err
20245 rm -f conftest.er1
20246 cat conftest.err >&5
20247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000020248 (exit $ac_status); } && {
20249 test -z "$ac_c_werror_flag" ||
20250 test ! -s conftest.err
20251 } && test -s conftest.$ac_objext; then
Martin v. Löwisebd9d5b2005-08-09 15:00:59 +000020252 ac_cv_member_struct_stat_st_gen=yes
20253else
20254 echo "$as_me: failed program was:" >&5
20255sed 's/^/| /' conftest.$ac_ext >&5
20256
Martin v. Löwiseba40652007-08-30 20:10:57 +000020257 cat >conftest.$ac_ext <<_ACEOF
Martin v. Löwisebd9d5b2005-08-09 15:00:59 +000020258/* confdefs.h. */
20259_ACEOF
20260cat confdefs.h >>conftest.$ac_ext
20261cat >>conftest.$ac_ext <<_ACEOF
20262/* end confdefs.h. */
20263$ac_includes_default
20264int
20265main ()
20266{
20267static struct stat ac_aggr;
20268if (sizeof ac_aggr.st_gen)
20269return 0;
20270 ;
20271 return 0;
20272}
20273_ACEOF
20274rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000020275if { (ac_try="$ac_compile"
20276case "(($ac_try" in
20277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20278 *) ac_try_echo=$ac_try;;
20279esac
20280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20281 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwisebd9d5b2005-08-09 15:00:59 +000020282 ac_status=$?
20283 grep -v '^ *+' conftest.er1 >conftest.err
20284 rm -f conftest.er1
20285 cat conftest.err >&5
20286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000020287 (exit $ac_status); } && {
20288 test -z "$ac_c_werror_flag" ||
20289 test ! -s conftest.err
20290 } && test -s conftest.$ac_objext; then
Martin v. Löwisebd9d5b2005-08-09 15:00:59 +000020291 ac_cv_member_struct_stat_st_gen=yes
20292else
20293 echo "$as_me: failed program was:" >&5
20294sed 's/^/| /' conftest.$ac_ext >&5
20295
Martin v. Löwiseba40652007-08-30 20:10:57 +000020296 ac_cv_member_struct_stat_st_gen=no
Martin v. Löwisebd9d5b2005-08-09 15:00:59 +000020297fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000020298
20299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwisebd9d5b2005-08-09 15:00:59 +000020300fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000020301
20302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwisebd9d5b2005-08-09 15:00:59 +000020303fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000020304{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
20305echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6; }
Martin v. Löwisebd9d5b2005-08-09 15:00:59 +000020306if test $ac_cv_member_struct_stat_st_gen = yes; then
20307
20308cat >>confdefs.h <<_ACEOF
20309#define HAVE_STRUCT_STAT_ST_GEN 1
20310_ACEOF
20311
20312
20313fi
20314
Martin v. Löwiseba40652007-08-30 20:10:57 +000020315{ echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
20316echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6; }
Martin v. Löwisebd9d5b2005-08-09 15:00:59 +000020317if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
20318 echo $ECHO_N "(cached) $ECHO_C" >&6
20319else
20320 cat >conftest.$ac_ext <<_ACEOF
20321/* confdefs.h. */
20322_ACEOF
20323cat confdefs.h >>conftest.$ac_ext
20324cat >>conftest.$ac_ext <<_ACEOF
20325/* end confdefs.h. */
20326$ac_includes_default
20327int
20328main ()
20329{
20330static struct stat ac_aggr;
20331if (ac_aggr.st_birthtime)
20332return 0;
20333 ;
20334 return 0;
20335}
20336_ACEOF
20337rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000020338if { (ac_try="$ac_compile"
20339case "(($ac_try" in
20340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20341 *) ac_try_echo=$ac_try;;
20342esac
20343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20344 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwisebd9d5b2005-08-09 15:00:59 +000020345 ac_status=$?
20346 grep -v '^ *+' conftest.er1 >conftest.err
20347 rm -f conftest.er1
20348 cat conftest.err >&5
20349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000020350 (exit $ac_status); } && {
20351 test -z "$ac_c_werror_flag" ||
20352 test ! -s conftest.err
20353 } && test -s conftest.$ac_objext; then
Martin v. Löwisebd9d5b2005-08-09 15:00:59 +000020354 ac_cv_member_struct_stat_st_birthtime=yes
20355else
20356 echo "$as_me: failed program was:" >&5
20357sed 's/^/| /' conftest.$ac_ext >&5
20358
Martin v. Löwiseba40652007-08-30 20:10:57 +000020359 cat >conftest.$ac_ext <<_ACEOF
Martin v. Löwisebd9d5b2005-08-09 15:00:59 +000020360/* confdefs.h. */
20361_ACEOF
20362cat confdefs.h >>conftest.$ac_ext
20363cat >>conftest.$ac_ext <<_ACEOF
20364/* end confdefs.h. */
20365$ac_includes_default
20366int
20367main ()
20368{
20369static struct stat ac_aggr;
20370if (sizeof ac_aggr.st_birthtime)
20371return 0;
20372 ;
20373 return 0;
20374}
20375_ACEOF
20376rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000020377if { (ac_try="$ac_compile"
20378case "(($ac_try" in
20379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20380 *) ac_try_echo=$ac_try;;
20381esac
20382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20383 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwisebd9d5b2005-08-09 15:00:59 +000020384 ac_status=$?
20385 grep -v '^ *+' conftest.er1 >conftest.err
20386 rm -f conftest.er1
20387 cat conftest.err >&5
20388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000020389 (exit $ac_status); } && {
20390 test -z "$ac_c_werror_flag" ||
20391 test ! -s conftest.err
20392 } && test -s conftest.$ac_objext; then
Martin v. Löwisebd9d5b2005-08-09 15:00:59 +000020393 ac_cv_member_struct_stat_st_birthtime=yes
20394else
20395 echo "$as_me: failed program was:" >&5
20396sed 's/^/| /' conftest.$ac_ext >&5
20397
Martin v. Löwiseba40652007-08-30 20:10:57 +000020398 ac_cv_member_struct_stat_st_birthtime=no
Martin v. Löwisebd9d5b2005-08-09 15:00:59 +000020399fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000020400
20401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwisebd9d5b2005-08-09 15:00:59 +000020402fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000020403
20404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwisebd9d5b2005-08-09 15:00:59 +000020405fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000020406{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
20407echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6; }
Martin v. Löwisebd9d5b2005-08-09 15:00:59 +000020408if test $ac_cv_member_struct_stat_st_birthtime = yes; then
20409
20410cat >>confdefs.h <<_ACEOF
20411#define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
20412_ACEOF
20413
20414
20415fi
20416
Martin v. Löwiseba40652007-08-30 20:10:57 +000020417{ echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
20418echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000020419if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
20420 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossum98bf58f2001-10-18 20:34:25 +000020421else
Martin v. Löwis11437992002-04-12 09:54:03 +000020422 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000020423/* confdefs.h. */
20424_ACEOF
20425cat confdefs.h >>conftest.$ac_ext
20426cat >>conftest.$ac_ext <<_ACEOF
20427/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000020428$ac_includes_default
Martin v. Löwis11437992002-04-12 09:54:03 +000020429int
20430main ()
20431{
20432static struct stat ac_aggr;
20433if (ac_aggr.st_blocks)
20434return 0;
20435 ;
20436 return 0;
20437}
20438_ACEOF
20439rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000020440if { (ac_try="$ac_compile"
20441case "(($ac_try" in
20442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20443 *) ac_try_echo=$ac_try;;
20444esac
20445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20446 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000020447 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000020448 grep -v '^ *+' conftest.er1 >conftest.err
20449 rm -f conftest.er1
20450 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000020451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000020452 (exit $ac_status); } && {
20453 test -z "$ac_c_werror_flag" ||
20454 test ! -s conftest.err
20455 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000020456 ac_cv_member_struct_stat_st_blocks=yes
Michael W. Hudson54241132001-12-07 15:38:26 +000020457else
Martin v. Löwis11437992002-04-12 09:54:03 +000020458 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000020459sed 's/^/| /' conftest.$ac_ext >&5
20460
Martin v. Löwiseba40652007-08-30 20:10:57 +000020461 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000020462/* confdefs.h. */
20463_ACEOF
20464cat confdefs.h >>conftest.$ac_ext
20465cat >>conftest.$ac_ext <<_ACEOF
20466/* end confdefs.h. */
20467$ac_includes_default
20468int
20469main ()
20470{
20471static struct stat ac_aggr;
20472if (sizeof ac_aggr.st_blocks)
20473return 0;
20474 ;
20475 return 0;
20476}
20477_ACEOF
20478rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000020479if { (ac_try="$ac_compile"
20480case "(($ac_try" in
20481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20482 *) ac_try_echo=$ac_try;;
20483esac
20484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20485 (eval "$ac_compile") 2>conftest.er1
Skip Montanaro6dead952003-09-25 14:50:04 +000020486 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000020487 grep -v '^ *+' conftest.er1 >conftest.err
20488 rm -f conftest.er1
20489 cat conftest.err >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000020490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000020491 (exit $ac_status); } && {
20492 test -z "$ac_c_werror_flag" ||
20493 test ! -s conftest.err
20494 } && test -s conftest.$ac_objext; then
Skip Montanaro6dead952003-09-25 14:50:04 +000020495 ac_cv_member_struct_stat_st_blocks=yes
20496else
20497 echo "$as_me: failed program was:" >&5
20498sed 's/^/| /' conftest.$ac_ext >&5
20499
Martin v. Löwiseba40652007-08-30 20:10:57 +000020500 ac_cv_member_struct_stat_st_blocks=no
Michael W. Hudson54241132001-12-07 15:38:26 +000020501fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000020502
20503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Michael W. Hudson54241132001-12-07 15:38:26 +000020504fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000020505
20506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +000020507fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000020508{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
20509echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000020510if test $ac_cv_member_struct_stat_st_blocks = yes; then
Jack Jansendd19cf82001-12-06 22:36:17 +000020511
Martin v. Löwis11437992002-04-12 09:54:03 +000020512cat >>confdefs.h <<_ACEOF
20513#define HAVE_STRUCT_STAT_ST_BLOCKS 1
20514_ACEOF
20515
20516
20517cat >>confdefs.h <<\_ACEOF
Guido van Rossum98bf58f2001-10-18 20:34:25 +000020518#define HAVE_ST_BLOCKS 1
Martin v. Löwis11437992002-04-12 09:54:03 +000020519_ACEOF
Guido van Rossum98bf58f2001-10-18 20:34:25 +000020520
20521else
Martin v. Löwiseba40652007-08-30 20:10:57 +000020522 case " $LIBOBJS " in
Skip Montanarof0d5f792004-08-15 14:08:23 +000020523 *" fileblocks.$ac_objext "* ) ;;
Martin v. Löwiseba40652007-08-30 20:10:57 +000020524 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
20525 ;;
Skip Montanarof0d5f792004-08-15 14:08:23 +000020526esac
20527
Guido van Rossum98bf58f2001-10-18 20:34:25 +000020528fi
20529
Michael W. Hudson54241132001-12-07 15:38:26 +000020530
Martin v. Löwis11437992002-04-12 09:54:03 +000020531
Martin v. Löwiseba40652007-08-30 20:10:57 +000020532{ echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
20533echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000020534if test "${ac_cv_header_time_altzone+set}" = set; then
20535 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +000020536else
Martin v. Löwis11437992002-04-12 09:54:03 +000020537 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000020538/* confdefs.h. */
20539_ACEOF
20540cat confdefs.h >>conftest.$ac_ext
20541cat >>conftest.$ac_ext <<_ACEOF
20542/* end confdefs.h. */
Guido van Rossum7f43da71994-08-01 12:15:30 +000020543#include <time.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000020544int
20545main ()
20546{
Guido van Rossum76be6ed1995-01-02 18:33:54 +000020547return altzone;
Martin v. Löwis11437992002-04-12 09:54:03 +000020548 ;
20549 return 0;
20550}
20551_ACEOF
20552rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000020553if { (ac_try="$ac_compile"
20554case "(($ac_try" in
20555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20556 *) ac_try_echo=$ac_try;;
20557esac
20558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20559 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000020560 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000020561 grep -v '^ *+' conftest.er1 >conftest.err
20562 rm -f conftest.er1
20563 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000020564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000020565 (exit $ac_status); } && {
20566 test -z "$ac_c_werror_flag" ||
20567 test ! -s conftest.err
20568 } && test -s conftest.$ac_objext; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +000020569 ac_cv_header_time_altzone=yes
20570else
Martin v. Löwis11437992002-04-12 09:54:03 +000020571 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000020572sed 's/^/| /' conftest.$ac_ext >&5
20573
Martin v. Löwiseba40652007-08-30 20:10:57 +000020574 ac_cv_header_time_altzone=no
Guido van Rossum76be6ed1995-01-02 18:33:54 +000020575fi
20576
Martin v. Löwiseba40652007-08-30 20:10:57 +000020577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20578fi
20579
20580{ echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
20581echo "${ECHO_T}$ac_cv_header_time_altzone" >&6; }
Guido van Rossum76be6ed1995-01-02 18:33:54 +000020582if test $ac_cv_header_time_altzone = yes; then
Martin v. Löwis11437992002-04-12 09:54:03 +000020583
20584cat >>confdefs.h <<\_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000020585#define HAVE_ALTZONE 1
Martin v. Löwis11437992002-04-12 09:54:03 +000020586_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000020587
20588fi
20589
Guido van Rossumda88dad1995-01-26 00:46:29 +000020590was_it_defined=no
Martin v. Löwiseba40652007-08-30 20:10:57 +000020591{ echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
20592echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000020593cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000020594/* confdefs.h. */
20595_ACEOF
20596cat confdefs.h >>conftest.$ac_ext
20597cat >>conftest.$ac_ext <<_ACEOF
20598/* end confdefs.h. */
Guido van Rossum7f43da71994-08-01 12:15:30 +000020599
20600#include <sys/types.h>
20601#include <sys/select.h>
20602#include <sys/time.h>
20603
Martin v. Löwis11437992002-04-12 09:54:03 +000020604int
20605main ()
20606{
Guido van Rossum76be6ed1995-01-02 18:33:54 +000020607;
Martin v. Löwis11437992002-04-12 09:54:03 +000020608 ;
20609 return 0;
20610}
20611_ACEOF
20612rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000020613if { (ac_try="$ac_compile"
20614case "(($ac_try" in
20615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20616 *) ac_try_echo=$ac_try;;
20617esac
20618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20619 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000020620 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000020621 grep -v '^ *+' conftest.er1 >conftest.err
20622 rm -f conftest.er1
20623 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000020624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000020625 (exit $ac_status); } && {
20626 test -z "$ac_c_werror_flag" ||
20627 test ! -s conftest.err
20628 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000020629
20630
20631cat >>confdefs.h <<\_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000020632#define SYS_SELECT_WITH_SYS_TIME 1
Martin v. Löwis11437992002-04-12 09:54:03 +000020633_ACEOF
20634
Martin v. Löwisc45929e2002-04-06 10:10:49 +000020635 was_it_defined=yes
20636
Guido van Rossumf78abae1997-01-21 22:02:36 +000020637else
Martin v. Löwis11437992002-04-12 09:54:03 +000020638 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000020639sed 's/^/| /' conftest.$ac_ext >&5
20640
Brett Cannon19fab762007-06-02 03:02:29 +000020641
Martin v. Löwiseba40652007-08-30 20:10:57 +000020642fi
20643
20644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20645{ echo "$as_me:$LINENO: result: $was_it_defined" >&5
20646echo "${ECHO_T}$was_it_defined" >&6; }
20647
20648{ echo "$as_me:$LINENO: checking for addrinfo" >&5
20649echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000020650if test "${ac_cv_struct_addrinfo+set}" = set; then
20651 echo $ECHO_N "(cached) $ECHO_C" >&6
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000020652else
Martin v. Löwis11437992002-04-12 09:54:03 +000020653 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000020654/* confdefs.h. */
20655_ACEOF
20656cat confdefs.h >>conftest.$ac_ext
20657cat >>conftest.$ac_ext <<_ACEOF
20658/* end confdefs.h. */
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000020659
20660# include <netdb.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000020661int
20662main ()
20663{
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000020664struct addrinfo a
Martin v. Löwis11437992002-04-12 09:54:03 +000020665 ;
20666 return 0;
20667}
20668_ACEOF
20669rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000020670if { (ac_try="$ac_compile"
20671case "(($ac_try" in
20672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20673 *) ac_try_echo=$ac_try;;
20674esac
20675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20676 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000020677 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000020678 grep -v '^ *+' conftest.er1 >conftest.err
20679 rm -f conftest.er1
20680 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000020681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000020682 (exit $ac_status); } && {
20683 test -z "$ac_c_werror_flag" ||
20684 test ! -s conftest.err
20685 } && test -s conftest.$ac_objext; then
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000020686 ac_cv_struct_addrinfo=yes
20687else
Martin v. Löwis11437992002-04-12 09:54:03 +000020688 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000020689sed 's/^/| /' conftest.$ac_ext >&5
20690
Martin v. Löwiseba40652007-08-30 20:10:57 +000020691 ac_cv_struct_addrinfo=no
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000020692fi
20693
Martin v. Löwiseba40652007-08-30 20:10:57 +000020694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20695fi
20696
20697{ echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
20698echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6; }
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000020699if test $ac_cv_struct_addrinfo = yes; then
Martin v. Löwis11437992002-04-12 09:54:03 +000020700
20701cat >>confdefs.h <<\_ACEOF
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000020702#define HAVE_ADDRINFO 1
Martin v. Löwis11437992002-04-12 09:54:03 +000020703_ACEOF
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000020704
20705fi
20706
Martin v. Löwiseba40652007-08-30 20:10:57 +000020707{ echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
20708echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000020709if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
20710 echo $ECHO_N "(cached) $ECHO_C" >&6
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000020711else
Martin v. Löwis11437992002-04-12 09:54:03 +000020712 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000020713/* confdefs.h. */
20714_ACEOF
20715cat confdefs.h >>conftest.$ac_ext
20716cat >>conftest.$ac_ext <<_ACEOF
20717/* end confdefs.h. */
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000020718
20719# include <sys/types.h>
20720# include <sys/socket.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000020721int
20722main ()
20723{
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000020724struct sockaddr_storage s
Martin v. Löwis11437992002-04-12 09:54:03 +000020725 ;
20726 return 0;
20727}
20728_ACEOF
20729rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000020730if { (ac_try="$ac_compile"
20731case "(($ac_try" in
20732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20733 *) ac_try_echo=$ac_try;;
20734esac
20735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20736 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000020737 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000020738 grep -v '^ *+' conftest.er1 >conftest.err
20739 rm -f conftest.er1
20740 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000020741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000020742 (exit $ac_status); } && {
20743 test -z "$ac_c_werror_flag" ||
20744 test ! -s conftest.err
20745 } && test -s conftest.$ac_objext; then
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000020746 ac_cv_struct_sockaddr_storage=yes
20747else
Martin v. Löwis11437992002-04-12 09:54:03 +000020748 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000020749sed 's/^/| /' conftest.$ac_ext >&5
20750
Martin v. Löwiseba40652007-08-30 20:10:57 +000020751 ac_cv_struct_sockaddr_storage=no
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000020752fi
20753
Martin v. Löwiseba40652007-08-30 20:10:57 +000020754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20755fi
20756
20757{ echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
20758echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6; }
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000020759if test $ac_cv_struct_sockaddr_storage = yes; then
Martin v. Löwis11437992002-04-12 09:54:03 +000020760
20761cat >>confdefs.h <<\_ACEOF
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000020762#define HAVE_SOCKADDR_STORAGE 1
Martin v. Löwis11437992002-04-12 09:54:03 +000020763_ACEOF
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000020764
20765fi
20766
Guido van Rossum627b2d71993-12-24 10:39:16 +000020767# checks for compiler characteristics
Guido van Rossum7f43da71994-08-01 12:15:30 +000020768
Michael W. Hudson54241132001-12-07 15:38:26 +000020769
Martin v. Löwiseba40652007-08-30 20:10:57 +000020770{ echo "$as_me:$LINENO: checking whether char is unsigned" >&5
20771echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000020772if test "${ac_cv_c_char_unsigned+set}" = set; then
20773 echo $ECHO_N "(cached) $ECHO_C" >&6
Jack Jansendd19cf82001-12-06 22:36:17 +000020774else
Martin v. Löwis11437992002-04-12 09:54:03 +000020775 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000020776/* confdefs.h. */
20777_ACEOF
20778cat confdefs.h >>conftest.$ac_ext
20779cat >>conftest.$ac_ext <<_ACEOF
20780/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000020781$ac_includes_default
Martin v. Löwis11437992002-04-12 09:54:03 +000020782int
20783main ()
20784{
20785static int test_array [1 - 2 * !(((char) -1) < 0)];
20786test_array [0] = 0
20787
20788 ;
20789 return 0;
Michael W. Hudson54241132001-12-07 15:38:26 +000020790}
Martin v. Löwis11437992002-04-12 09:54:03 +000020791_ACEOF
20792rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000020793if { (ac_try="$ac_compile"
20794case "(($ac_try" in
20795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20796 *) ac_try_echo=$ac_try;;
20797esac
20798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20799 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000020800 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000020801 grep -v '^ *+' conftest.er1 >conftest.err
20802 rm -f conftest.er1
20803 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000020804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000020805 (exit $ac_status); } && {
20806 test -z "$ac_c_werror_flag" ||
20807 test ! -s conftest.err
20808 } && test -s conftest.$ac_objext; then
Michael W. Hudson54241132001-12-07 15:38:26 +000020809 ac_cv_c_char_unsigned=no
Martin v. Löwis11437992002-04-12 09:54:03 +000020810else
20811 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000020812sed 's/^/| /' conftest.$ac_ext >&5
20813
Martin v. Löwiseba40652007-08-30 20:10:57 +000020814 ac_cv_c_char_unsigned=yes
Guido van Rossum76be6ed1995-01-02 18:33:54 +000020815fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000020816
20817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Michael W. Hudson54241132001-12-07 15:38:26 +000020818fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000020819{ echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
20820echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; }
Guido van Rossum76be6ed1995-01-02 18:33:54 +000020821if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
Martin v. Löwis11437992002-04-12 09:54:03 +000020822 cat >>confdefs.h <<\_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000020823#define __CHAR_UNSIGNED__ 1
Martin v. Löwis11437992002-04-12 09:54:03 +000020824_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000020825
20826fi
Guido van Rossum7f43da71994-08-01 12:15:30 +000020827
Martin v. Löwiseba40652007-08-30 20:10:57 +000020828{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20829echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000020830if test "${ac_cv_c_const+set}" = set; then
20831 echo $ECHO_N "(cached) $ECHO_C" >&6
20832else
20833 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000020834/* confdefs.h. */
20835_ACEOF
20836cat confdefs.h >>conftest.$ac_ext
20837cat >>conftest.$ac_ext <<_ACEOF
20838/* end confdefs.h. */
Guido van Rossum76be6ed1995-01-02 18:33:54 +000020839
Martin v. Löwis11437992002-04-12 09:54:03 +000020840int
20841main ()
20842{
20843/* FIXME: Include the comments suggested by Paul. */
20844#ifndef __cplusplus
20845 /* Ultrix mips cc rejects this. */
20846 typedef int charset[2];
Martin v. Löwiseba40652007-08-30 20:10:57 +000020847 const charset cs;
Martin v. Löwis11437992002-04-12 09:54:03 +000020848 /* SunOS 4.1.1 cc rejects this. */
Martin v. Löwiseba40652007-08-30 20:10:57 +000020849 char const *const *pcpcc;
20850 char **ppc;
Martin v. Löwis11437992002-04-12 09:54:03 +000020851 /* NEC SVR4.0.2 mips cc rejects this. */
20852 struct point {int x, y;};
20853 static struct point const zero = {0,0};
20854 /* AIX XL C 1.02.0.0 rejects this.
20855 It does not let you subtract one const X* pointer from another in
20856 an arm of an if-expression whose if-part is not a constant
20857 expression */
20858 const char *g = "string";
Martin v. Löwiseba40652007-08-30 20:10:57 +000020859 pcpcc = &g + (g ? g-g : 0);
Martin v. Löwis11437992002-04-12 09:54:03 +000020860 /* HPUX 7.0 cc rejects these. */
Martin v. Löwiseba40652007-08-30 20:10:57 +000020861 ++pcpcc;
20862 ppc = (char**) pcpcc;
20863 pcpcc = (char const *const *) ppc;
Martin v. Löwis11437992002-04-12 09:54:03 +000020864 { /* SCO 3.2v4 cc rejects this. */
20865 char *t;
20866 char const *s = 0 ? (char *) 0 : (char const *) 0;
Guido van Rossum76be6ed1995-01-02 18:33:54 +000020867
Martin v. Löwis11437992002-04-12 09:54:03 +000020868 *t++ = 0;
Martin v. Löwiseba40652007-08-30 20:10:57 +000020869 if (s) return 0;
Martin v. Löwis11437992002-04-12 09:54:03 +000020870 }
20871 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20872 int x[] = {25, 17};
20873 const int *foo = &x[0];
20874 ++foo;
20875 }
20876 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20877 typedef const int *iptr;
20878 iptr p = 0;
20879 ++p;
20880 }
20881 { /* AIX XL C 1.02.0.0 rejects this saying
20882 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20883 struct s { int j; const int *ap[3]; };
20884 struct s *b; b->j = 5;
20885 }
20886 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20887 const int foo = 10;
Martin v. Löwiseba40652007-08-30 20:10:57 +000020888 if (!foo) return 0;
Martin v. Löwis11437992002-04-12 09:54:03 +000020889 }
Martin v. Löwiseba40652007-08-30 20:10:57 +000020890 return !cs[0] && !zero.x;
Martin v. Löwis11437992002-04-12 09:54:03 +000020891#endif
Guido van Rossum627b2d71993-12-24 10:39:16 +000020892
Martin v. Löwis11437992002-04-12 09:54:03 +000020893 ;
20894 return 0;
Guido van Rossum627b2d71993-12-24 10:39:16 +000020895}
Martin v. Löwis11437992002-04-12 09:54:03 +000020896_ACEOF
20897rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000020898if { (ac_try="$ac_compile"
20899case "(($ac_try" in
20900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20901 *) ac_try_echo=$ac_try;;
20902esac
20903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20904 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000020905 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000020906 grep -v '^ *+' conftest.er1 >conftest.err
20907 rm -f conftest.er1
20908 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000020909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000020910 (exit $ac_status); } && {
20911 test -z "$ac_c_werror_flag" ||
20912 test ! -s conftest.err
20913 } && test -s conftest.$ac_objext; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +000020914 ac_cv_c_const=yes
20915else
Martin v. Löwis11437992002-04-12 09:54:03 +000020916 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000020917sed 's/^/| /' conftest.$ac_ext >&5
20918
Martin v. Löwiseba40652007-08-30 20:10:57 +000020919 ac_cv_c_const=no
Guido van Rossum76be6ed1995-01-02 18:33:54 +000020920fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000020921
20922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Guido van Rossum76be6ed1995-01-02 18:33:54 +000020923fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000020924{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20925echo "${ECHO_T}$ac_cv_c_const" >&6; }
Guido van Rossum76be6ed1995-01-02 18:33:54 +000020926if test $ac_cv_c_const = no; then
Martin v. Löwis11437992002-04-12 09:54:03 +000020927
20928cat >>confdefs.h <<\_ACEOF
20929#define const
20930_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000020931
20932fi
20933
Michael W. Hudson54241132001-12-07 15:38:26 +000020934
Guido van Rossumda88dad1995-01-26 00:46:29 +000020935works=no
Martin v. Löwiseba40652007-08-30 20:10:57 +000020936{ echo "$as_me:$LINENO: checking for working volatile" >&5
20937echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000020938cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000020939/* confdefs.h. */
20940_ACEOF
20941cat confdefs.h >>conftest.$ac_ext
20942cat >>conftest.$ac_ext <<_ACEOF
20943/* end confdefs.h. */
Guido van Rossum627b2d71993-12-24 10:39:16 +000020944
Martin v. Löwis11437992002-04-12 09:54:03 +000020945int
20946main ()
20947{
Guido van Rossum76be6ed1995-01-02 18:33:54 +000020948volatile int x; x = 0;
Martin v. Löwis11437992002-04-12 09:54:03 +000020949 ;
20950 return 0;
20951}
20952_ACEOF
20953rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000020954if { (ac_try="$ac_compile"
20955case "(($ac_try" in
20956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20957 *) ac_try_echo=$ac_try;;
20958esac
20959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20960 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000020961 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000020962 grep -v '^ *+' conftest.er1 >conftest.err
20963 rm -f conftest.er1
20964 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000020965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000020966 (exit $ac_status); } && {
20967 test -z "$ac_c_werror_flag" ||
20968 test ! -s conftest.err
20969 } && test -s conftest.$ac_objext; then
Guido van Rossumda88dad1995-01-26 00:46:29 +000020970 works=yes
Guido van Rossum627b2d71993-12-24 10:39:16 +000020971else
Martin v. Löwis11437992002-04-12 09:54:03 +000020972 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000020973sed 's/^/| /' conftest.$ac_ext >&5
20974
Martin v. Löwis11437992002-04-12 09:54:03 +000020975
20976cat >>confdefs.h <<\_ACEOF
20977#define volatile
20978_ACEOF
Guido van Rossum627b2d71993-12-24 10:39:16 +000020979
Martin v. Löwisc45929e2002-04-06 10:10:49 +000020980
Guido van Rossum627b2d71993-12-24 10:39:16 +000020981fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000020982
20983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20984{ echo "$as_me:$LINENO: result: $works" >&5
20985echo "${ECHO_T}$works" >&6; }
Guido van Rossum7f43da71994-08-01 12:15:30 +000020986
Guido van Rossumda88dad1995-01-26 00:46:29 +000020987works=no
Martin v. Löwiseba40652007-08-30 20:10:57 +000020988{ echo "$as_me:$LINENO: checking for working signed char" >&5
20989echo $ECHO_N "checking for working signed char... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000020990cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000020991/* confdefs.h. */
20992_ACEOF
20993cat confdefs.h >>conftest.$ac_ext
20994cat >>conftest.$ac_ext <<_ACEOF
20995/* end confdefs.h. */
Guido van Rossumdabb11b1994-10-11 15:04:27 +000020996
Martin v. Löwis11437992002-04-12 09:54:03 +000020997int
20998main ()
20999{
Guido van Rossum76be6ed1995-01-02 18:33:54 +000021000signed char c;
Martin v. Löwis11437992002-04-12 09:54:03 +000021001 ;
21002 return 0;
21003}
21004_ACEOF
21005rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000021006if { (ac_try="$ac_compile"
21007case "(($ac_try" in
21008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21009 *) ac_try_echo=$ac_try;;
21010esac
21011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21012 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000021013 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000021014 grep -v '^ *+' conftest.er1 >conftest.err
21015 rm -f conftest.er1
21016 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000021017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000021018 (exit $ac_status); } && {
21019 test -z "$ac_c_werror_flag" ||
21020 test ! -s conftest.err
21021 } && test -s conftest.$ac_objext; then
Guido van Rossumda88dad1995-01-26 00:46:29 +000021022 works=yes
Guido van Rossumdabb11b1994-10-11 15:04:27 +000021023else
Martin v. Löwis11437992002-04-12 09:54:03 +000021024 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000021025sed 's/^/| /' conftest.$ac_ext >&5
21026
Martin v. Löwis11437992002-04-12 09:54:03 +000021027
21028cat >>confdefs.h <<\_ACEOF
21029#define signed
21030_ACEOF
Guido van Rossum7f43da71994-08-01 12:15:30 +000021031
Martin v. Löwisc45929e2002-04-06 10:10:49 +000021032
Guido van Rossum7f43da71994-08-01 12:15:30 +000021033fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000021034
21035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21036{ echo "$as_me:$LINENO: result: $works" >&5
21037echo "${ECHO_T}$works" >&6; }
Guido van Rossum7f43da71994-08-01 12:15:30 +000021038
Guido van Rossumda88dad1995-01-26 00:46:29 +000021039have_prototypes=no
Martin v. Löwiseba40652007-08-30 20:10:57 +000021040{ echo "$as_me:$LINENO: checking for prototypes" >&5
21041echo $ECHO_N "checking for prototypes... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000021042cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000021043/* confdefs.h. */
21044_ACEOF
21045cat confdefs.h >>conftest.$ac_ext
21046cat >>conftest.$ac_ext <<_ACEOF
21047/* end confdefs.h. */
Guido van Rossum7f43da71994-08-01 12:15:30 +000021048int foo(int x) { return 0; }
Martin v. Löwis11437992002-04-12 09:54:03 +000021049int
21050main ()
21051{
Guido van Rossum76be6ed1995-01-02 18:33:54 +000021052return foo(10);
Martin v. Löwis11437992002-04-12 09:54:03 +000021053 ;
21054 return 0;
21055}
21056_ACEOF
21057rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000021058if { (ac_try="$ac_compile"
21059case "(($ac_try" in
21060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21061 *) ac_try_echo=$ac_try;;
21062esac
21063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21064 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000021065 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000021066 grep -v '^ *+' conftest.er1 >conftest.err
21067 rm -f conftest.er1
21068 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000021069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000021070 (exit $ac_status); } && {
21071 test -z "$ac_c_werror_flag" ||
21072 test ! -s conftest.err
21073 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000021074
21075
21076cat >>confdefs.h <<\_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000021077#define HAVE_PROTOTYPES 1
Martin v. Löwis11437992002-04-12 09:54:03 +000021078_ACEOF
21079
Martin v. Löwisc45929e2002-04-06 10:10:49 +000021080 have_prototypes=yes
21081
Guido van Rossumf78abae1997-01-21 22:02:36 +000021082else
Martin v. Löwis11437992002-04-12 09:54:03 +000021083 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000021084sed 's/^/| /' conftest.$ac_ext >&5
21085
Martin v. Löwiseba40652007-08-30 20:10:57 +000021086
Guido van Rossum7f43da71994-08-01 12:15:30 +000021087fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000021088
21089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21090{ echo "$as_me:$LINENO: result: $have_prototypes" >&5
21091echo "${ECHO_T}$have_prototypes" >&6; }
Guido van Rossum76be6ed1995-01-02 18:33:54 +000021092
Guido van Rossumda88dad1995-01-26 00:46:29 +000021093works=no
Martin v. Löwiseba40652007-08-30 20:10:57 +000021094{ echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
21095echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000021096cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000021097/* confdefs.h. */
21098_ACEOF
21099cat confdefs.h >>conftest.$ac_ext
21100cat >>conftest.$ac_ext <<_ACEOF
21101/* end confdefs.h. */
Guido van Rossum7f43da71994-08-01 12:15:30 +000021102
21103#include <stdarg.h>
Guido van Rossum90eea071996-08-30 20:58:57 +000021104int foo(int x, ...) {
21105 va_list va;
21106 va_start(va, x);
21107 va_arg(va, int);
21108 va_arg(va, char *);
21109 va_arg(va, double);
21110 return 0;
21111}
Guido van Rossum7f43da71994-08-01 12:15:30 +000021112
Martin v. Löwis11437992002-04-12 09:54:03 +000021113int
21114main ()
21115{
Guido van Rossum90eea071996-08-30 20:58:57 +000021116return foo(10, "", 3.14);
Martin v. Löwis11437992002-04-12 09:54:03 +000021117 ;
21118 return 0;
21119}
21120_ACEOF
21121rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000021122if { (ac_try="$ac_compile"
21123case "(($ac_try" in
21124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21125 *) ac_try_echo=$ac_try;;
21126esac
21127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21128 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000021129 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000021130 grep -v '^ *+' conftest.er1 >conftest.err
21131 rm -f conftest.er1
21132 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000021133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000021134 (exit $ac_status); } && {
21135 test -z "$ac_c_werror_flag" ||
21136 test ! -s conftest.err
21137 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000021138
21139
21140cat >>confdefs.h <<\_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000021141#define HAVE_STDARG_PROTOTYPES 1
Martin v. Löwis11437992002-04-12 09:54:03 +000021142_ACEOF
21143
Martin v. Löwisc45929e2002-04-06 10:10:49 +000021144 works=yes
21145
Guido van Rossumf78abae1997-01-21 22:02:36 +000021146else
Martin v. Löwis11437992002-04-12 09:54:03 +000021147 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000021148sed 's/^/| /' conftest.$ac_ext >&5
21149
Martin v. Löwiseba40652007-08-30 20:10:57 +000021150
Guido van Rossum627b2d71993-12-24 10:39:16 +000021151fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000021152
21153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21154{ echo "$as_me:$LINENO: result: $works" >&5
21155echo "${ECHO_T}$works" >&6; }
Guido van Rossum76be6ed1995-01-02 18:33:54 +000021156
Martin v. Löwisd6320502004-08-12 13:45:08 +000021157# check for socketpair
Martin v. Löwiseba40652007-08-30 20:10:57 +000021158{ echo "$as_me:$LINENO: checking for socketpair" >&5
21159echo $ECHO_N "checking for socketpair... $ECHO_C" >&6; }
Martin v. Löwisd6320502004-08-12 13:45:08 +000021160cat >conftest.$ac_ext <<_ACEOF
Martin v. Löwisd6320502004-08-12 13:45:08 +000021161/* confdefs.h. */
21162_ACEOF
21163cat confdefs.h >>conftest.$ac_ext
21164cat >>conftest.$ac_ext <<_ACEOF
21165/* end confdefs.h. */
21166
21167#include <sys/types.h>
21168#include <sys/socket.h>
21169
21170int
21171main ()
21172{
21173void *x=socketpair
21174 ;
21175 return 0;
21176}
21177_ACEOF
21178rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000021179if { (ac_try="$ac_compile"
21180case "(($ac_try" in
21181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21182 *) ac_try_echo=$ac_try;;
21183esac
21184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21185 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwisd6320502004-08-12 13:45:08 +000021186 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000021187 grep -v '^ *+' conftest.er1 >conftest.err
21188 rm -f conftest.er1
21189 cat conftest.err >&5
Martin v. Löwisd6320502004-08-12 13:45:08 +000021190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000021191 (exit $ac_status); } && {
21192 test -z "$ac_c_werror_flag" ||
21193 test ! -s conftest.err
21194 } && test -s conftest.$ac_objext; then
Martin v. Löwisd6320502004-08-12 13:45:08 +000021195
21196cat >>confdefs.h <<\_ACEOF
21197#define HAVE_SOCKETPAIR 1
21198_ACEOF
21199
Martin v. Löwiseba40652007-08-30 20:10:57 +000021200 { echo "$as_me:$LINENO: result: yes" >&5
21201echo "${ECHO_T}yes" >&6; }
Martin v. Löwisd6320502004-08-12 13:45:08 +000021202else
21203 echo "$as_me: failed program was:" >&5
21204sed 's/^/| /' conftest.$ac_ext >&5
21205
Martin v. Löwiseba40652007-08-30 20:10:57 +000021206 { echo "$as_me:$LINENO: result: no" >&5
21207echo "${ECHO_T}no" >&6; }
Martin v. Löwisd6320502004-08-12 13:45:08 +000021208
21209fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000021210
21211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwisd6320502004-08-12 13:45:08 +000021212
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000021213# check if sockaddr has sa_len member
Martin v. Löwiseba40652007-08-30 20:10:57 +000021214{ echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
21215echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000021216cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000021217/* confdefs.h. */
21218_ACEOF
21219cat confdefs.h >>conftest.$ac_ext
21220cat >>conftest.$ac_ext <<_ACEOF
21221/* end confdefs.h. */
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000021222#include <sys/types.h>
21223#include <sys/socket.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000021224int
21225main ()
21226{
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000021227struct sockaddr x;
21228x.sa_len = 0;
Martin v. Löwis11437992002-04-12 09:54:03 +000021229 ;
21230 return 0;
21231}
21232_ACEOF
21233rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000021234if { (ac_try="$ac_compile"
21235case "(($ac_try" in
21236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21237 *) ac_try_echo=$ac_try;;
21238esac
21239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21240 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000021241 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000021242 grep -v '^ *+' conftest.er1 >conftest.err
21243 rm -f conftest.er1
21244 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000021245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000021246 (exit $ac_status); } && {
21247 test -z "$ac_c_werror_flag" ||
21248 test ! -s conftest.err
21249 } && test -s conftest.$ac_objext; then
21250 { echo "$as_me:$LINENO: result: yes" >&5
21251echo "${ECHO_T}yes" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000021252
21253cat >>confdefs.h <<\_ACEOF
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000021254#define HAVE_SOCKADDR_SA_LEN 1
Martin v. Löwis11437992002-04-12 09:54:03 +000021255_ACEOF
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000021256
21257else
Martin v. Löwis11437992002-04-12 09:54:03 +000021258 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000021259sed 's/^/| /' conftest.$ac_ext >&5
21260
Martin v. Löwiseba40652007-08-30 20:10:57 +000021261 { echo "$as_me:$LINENO: result: no" >&5
21262echo "${ECHO_T}no" >&6; }
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000021263fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000021264
21265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000021266
Guido van Rossumda88dad1995-01-26 00:46:29 +000021267va_list_is_array=no
Martin v. Löwiseba40652007-08-30 20:10:57 +000021268{ echo "$as_me:$LINENO: checking whether va_list is an array" >&5
21269echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000021270cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000021271/* confdefs.h. */
21272_ACEOF
21273cat confdefs.h >>conftest.$ac_ext
21274cat >>conftest.$ac_ext <<_ACEOF
21275/* end confdefs.h. */
Guido van Rossum76be6ed1995-01-02 18:33:54 +000021276
21277#ifdef HAVE_STDARG_PROTOTYPES
21278#include <stdarg.h>
21279#else
21280#include <varargs.h>
21281#endif
21282
Martin v. Löwis11437992002-04-12 09:54:03 +000021283int
21284main ()
21285{
Guido van Rossum76be6ed1995-01-02 18:33:54 +000021286va_list list1, list2; list1 = list2;
Martin v. Löwis11437992002-04-12 09:54:03 +000021287 ;
21288 return 0;
21289}
21290_ACEOF
21291rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000021292if { (ac_try="$ac_compile"
21293case "(($ac_try" in
21294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21295 *) ac_try_echo=$ac_try;;
21296esac
21297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21298 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000021299 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000021300 grep -v '^ *+' conftest.er1 >conftest.err
21301 rm -f conftest.er1
21302 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000021303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000021304 (exit $ac_status); } && {
21305 test -z "$ac_c_werror_flag" ||
21306 test ! -s conftest.err
21307 } && test -s conftest.$ac_objext; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +000021308 :
21309else
Martin v. Löwis11437992002-04-12 09:54:03 +000021310 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000021311sed 's/^/| /' conftest.$ac_ext >&5
21312
Martin v. Löwis11437992002-04-12 09:54:03 +000021313
21314
21315cat >>confdefs.h <<\_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000021316#define VA_LIST_IS_ARRAY 1
Martin v. Löwis11437992002-04-12 09:54:03 +000021317_ACEOF
21318
Guido van Rossumda88dad1995-01-26 00:46:29 +000021319 va_list_is_array=yes
Martin v. Löwisc45929e2002-04-06 10:10:49 +000021320
Guido van Rossum76be6ed1995-01-02 18:33:54 +000021321fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000021322
21323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21324{ echo "$as_me:$LINENO: result: $va_list_is_array" >&5
21325echo "${ECHO_T}$va_list_is_array" >&6; }
Guido van Rossum76be6ed1995-01-02 18:33:54 +000021326
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000021327# sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
Martin v. Löwis11437992002-04-12 09:54:03 +000021328
21329
21330
Martin v. Löwiseba40652007-08-30 20:10:57 +000021331{ echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
21332echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000021333if test "${ac_cv_func_gethostbyname_r+set}" = set; then
21334 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000021335else
Martin v. Löwis11437992002-04-12 09:54:03 +000021336 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000021337/* confdefs.h. */
21338_ACEOF
21339cat confdefs.h >>conftest.$ac_ext
21340cat >>conftest.$ac_ext <<_ACEOF
21341/* end confdefs.h. */
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000021342/* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
21343 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21344#define gethostbyname_r innocuous_gethostbyname_r
21345
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000021346/* System header to define __stub macros and hopefully few prototypes,
Skip Montanaro6dead952003-09-25 14:50:04 +000021347 which can conflict with char gethostbyname_r (); below.
21348 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000021349 <limits.h> exists even on freestanding compilers. */
21350
21351#ifdef __STDC__
Skip Montanaro6dead952003-09-25 14:50:04 +000021352# include <limits.h>
21353#else
21354# include <assert.h>
21355#endif
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000021356
21357#undef gethostbyname_r
21358
Martin v. Löwiseba40652007-08-30 20:10:57 +000021359/* Override any GCC internal prototype to avoid an error.
21360 Use char because int might match the return type of a GCC
21361 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +000021362#ifdef __cplusplus
21363extern "C"
21364#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000021365char gethostbyname_r ();
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000021366/* The GNU C library defines this for functions which it implements
21367 to always fail with ENOSYS. Some functions are actually named
21368 something starting with __ and the normal name is an alias. */
Martin v. Löwiseba40652007-08-30 20:10:57 +000021369#if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000021370choke me
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000021371#endif
21372
Skip Montanaro6dead952003-09-25 14:50:04 +000021373int
21374main ()
21375{
Martin v. Löwiseba40652007-08-30 20:10:57 +000021376return gethostbyname_r ();
Martin v. Löwis11437992002-04-12 09:54:03 +000021377 ;
21378 return 0;
21379}
21380_ACEOF
21381rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000021382if { (ac_try="$ac_link"
21383case "(($ac_try" in
21384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21385 *) ac_try_echo=$ac_try;;
21386esac
21387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21388 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000021389 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000021390 grep -v '^ *+' conftest.er1 >conftest.err
21391 rm -f conftest.er1
21392 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000021393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000021394 (exit $ac_status); } && {
21395 test -z "$ac_c_werror_flag" ||
21396 test ! -s conftest.err
21397 } && test -s conftest$ac_exeext &&
21398 $as_test_x conftest$ac_exeext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000021399 ac_cv_func_gethostbyname_r=yes
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000021400else
Martin v. Löwis11437992002-04-12 09:54:03 +000021401 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000021402sed 's/^/| /' conftest.$ac_ext >&5
21403
Martin v. Löwiseba40652007-08-30 20:10:57 +000021404 ac_cv_func_gethostbyname_r=no
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000021405fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000021406
21407rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000021408 conftest$ac_exeext conftest.$ac_ext
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000021409fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000021410{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
21411echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000021412if test $ac_cv_func_gethostbyname_r = yes; then
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000021413
Martin v. Löwis11437992002-04-12 09:54:03 +000021414 cat >>confdefs.h <<\_ACEOF
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000021415#define HAVE_GETHOSTBYNAME_R 1
Martin v. Löwis11437992002-04-12 09:54:03 +000021416_ACEOF
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000021417
Martin v. Löwiseba40652007-08-30 20:10:57 +000021418 { echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
21419echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6; }
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000021420 OLD_CFLAGS=$CFLAGS
21421 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
Martin v. Löwis11437992002-04-12 09:54:03 +000021422 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000021423/* confdefs.h. */
21424_ACEOF
21425cat confdefs.h >>conftest.$ac_ext
21426cat >>conftest.$ac_ext <<_ACEOF
21427/* end confdefs.h. */
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000021428
21429# include <netdb.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000021430
Martin v. Löwis11437992002-04-12 09:54:03 +000021431int
21432main ()
21433{
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000021434
21435 char *name;
21436 struct hostent *he, *res;
21437 char buffer[2048];
21438 int buflen = 2048;
21439 int h_errnop;
21440
21441 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
Martin v. Löwis11437992002-04-12 09:54:03 +000021442
21443 ;
21444 return 0;
21445}
21446_ACEOF
21447rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000021448if { (ac_try="$ac_compile"
21449case "(($ac_try" in
21450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21451 *) ac_try_echo=$ac_try;;
21452esac
21453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21454 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000021455 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000021456 grep -v '^ *+' conftest.er1 >conftest.err
21457 rm -f conftest.er1
21458 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000021459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000021460 (exit $ac_status); } && {
21461 test -z "$ac_c_werror_flag" ||
21462 test ! -s conftest.err
21463 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000021464
21465 cat >>confdefs.h <<\_ACEOF
Guido van Rossum8db7d8b1999-03-23 16:40:33 +000021466#define HAVE_GETHOSTBYNAME_R 1
Martin v. Löwis11437992002-04-12 09:54:03 +000021467_ACEOF
Guido van Rossum8db7d8b1999-03-23 16:40:33 +000021468
Martin v. Löwis11437992002-04-12 09:54:03 +000021469
21470cat >>confdefs.h <<\_ACEOF
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000021471#define HAVE_GETHOSTBYNAME_R_6_ARG 1
Martin v. Löwis11437992002-04-12 09:54:03 +000021472_ACEOF
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000021473
Martin v. Löwiseba40652007-08-30 20:10:57 +000021474 { echo "$as_me:$LINENO: result: yes" >&5
21475echo "${ECHO_T}yes" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000021476
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000021477else
Martin v. Löwis11437992002-04-12 09:54:03 +000021478 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000021479sed 's/^/| /' conftest.$ac_ext >&5
21480
Martin v. Löwis11437992002-04-12 09:54:03 +000021481
Martin v. Löwiseba40652007-08-30 20:10:57 +000021482 { echo "$as_me:$LINENO: result: no" >&5
21483echo "${ECHO_T}no" >&6; }
21484 { echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
21485echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000021486 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000021487/* confdefs.h. */
21488_ACEOF
21489cat confdefs.h >>conftest.$ac_ext
21490cat >>conftest.$ac_ext <<_ACEOF
21491/* end confdefs.h. */
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000021492
21493# include <netdb.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000021494
Martin v. Löwis11437992002-04-12 09:54:03 +000021495int
21496main ()
21497{
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000021498
21499 char *name;
21500 struct hostent *he;
21501 char buffer[2048];
21502 int buflen = 2048;
21503 int h_errnop;
21504
21505 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
Martin v. Löwis11437992002-04-12 09:54:03 +000021506
21507 ;
21508 return 0;
21509}
21510_ACEOF
21511rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000021512if { (ac_try="$ac_compile"
21513case "(($ac_try" in
21514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21515 *) ac_try_echo=$ac_try;;
21516esac
21517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21518 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000021519 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000021520 grep -v '^ *+' conftest.er1 >conftest.err
21521 rm -f conftest.er1
21522 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000021523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000021524 (exit $ac_status); } && {
21525 test -z "$ac_c_werror_flag" ||
21526 test ! -s conftest.err
21527 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000021528
21529 cat >>confdefs.h <<\_ACEOF
Guido van Rossum8db7d8b1999-03-23 16:40:33 +000021530#define HAVE_GETHOSTBYNAME_R 1
Martin v. Löwis11437992002-04-12 09:54:03 +000021531_ACEOF
Guido van Rossum8db7d8b1999-03-23 16:40:33 +000021532
Martin v. Löwis11437992002-04-12 09:54:03 +000021533
21534cat >>confdefs.h <<\_ACEOF
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000021535#define HAVE_GETHOSTBYNAME_R_5_ARG 1
Martin v. Löwis11437992002-04-12 09:54:03 +000021536_ACEOF
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000021537
Martin v. Löwiseba40652007-08-30 20:10:57 +000021538 { echo "$as_me:$LINENO: result: yes" >&5
21539echo "${ECHO_T}yes" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000021540
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000021541else
Martin v. Löwis11437992002-04-12 09:54:03 +000021542 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000021543sed 's/^/| /' conftest.$ac_ext >&5
21544
Martin v. Löwis11437992002-04-12 09:54:03 +000021545
Martin v. Löwiseba40652007-08-30 20:10:57 +000021546 { echo "$as_me:$LINENO: result: no" >&5
21547echo "${ECHO_T}no" >&6; }
21548 { echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
21549echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000021550 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000021551/* confdefs.h. */
21552_ACEOF
21553cat confdefs.h >>conftest.$ac_ext
21554cat >>conftest.$ac_ext <<_ACEOF
21555/* end confdefs.h. */
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000021556
21557# include <netdb.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000021558
Martin v. Löwis11437992002-04-12 09:54:03 +000021559int
21560main ()
21561{
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000021562
21563 char *name;
21564 struct hostent *he;
21565 struct hostent_data data;
21566
21567 (void) gethostbyname_r(name, he, &data);
Martin v. Löwis11437992002-04-12 09:54:03 +000021568
21569 ;
21570 return 0;
21571}
21572_ACEOF
21573rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000021574if { (ac_try="$ac_compile"
21575case "(($ac_try" in
21576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21577 *) ac_try_echo=$ac_try;;
21578esac
21579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21580 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000021581 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000021582 grep -v '^ *+' conftest.er1 >conftest.err
21583 rm -f conftest.er1
21584 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000021585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000021586 (exit $ac_status); } && {
21587 test -z "$ac_c_werror_flag" ||
21588 test ! -s conftest.err
21589 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000021590
21591 cat >>confdefs.h <<\_ACEOF
Guido van Rossum8db7d8b1999-03-23 16:40:33 +000021592#define HAVE_GETHOSTBYNAME_R 1
Martin v. Löwis11437992002-04-12 09:54:03 +000021593_ACEOF
Guido van Rossum8db7d8b1999-03-23 16:40:33 +000021594
Martin v. Löwis11437992002-04-12 09:54:03 +000021595
21596cat >>confdefs.h <<\_ACEOF
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000021597#define HAVE_GETHOSTBYNAME_R_3_ARG 1
Martin v. Löwis11437992002-04-12 09:54:03 +000021598_ACEOF
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000021599
Martin v. Löwiseba40652007-08-30 20:10:57 +000021600 { echo "$as_me:$LINENO: result: yes" >&5
21601echo "${ECHO_T}yes" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000021602
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000021603else
Martin v. Löwis11437992002-04-12 09:54:03 +000021604 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000021605sed 's/^/| /' conftest.$ac_ext >&5
21606
Martin v. Löwis11437992002-04-12 09:54:03 +000021607
Martin v. Löwiseba40652007-08-30 20:10:57 +000021608 { echo "$as_me:$LINENO: result: no" >&5
21609echo "${ECHO_T}no" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000021610
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000021611fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000021612
21613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000021614
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000021615fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000021616
21617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000021618
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000021619fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000021620
21621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000021622 CFLAGS=$OLD_CFLAGS
21623
21624else
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000021625
Martin v. Löwis11437992002-04-12 09:54:03 +000021626
21627for ac_func in gethostbyname
Thomas Wouters3a584202000-08-05 23:28:51 +000021628do
Martin v. Löwis11437992002-04-12 09:54:03 +000021629as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Martin v. Löwiseba40652007-08-30 20:10:57 +000021630{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21631echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21632if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Martin v. Löwis11437992002-04-12 09:54:03 +000021633 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000021634else
Martin v. Löwis11437992002-04-12 09:54:03 +000021635 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000021636/* confdefs.h. */
21637_ACEOF
21638cat confdefs.h >>conftest.$ac_ext
21639cat >>conftest.$ac_ext <<_ACEOF
21640/* end confdefs.h. */
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000021641/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21642 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21643#define $ac_func innocuous_$ac_func
21644
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000021645/* System header to define __stub macros and hopefully few prototypes,
Skip Montanaro6dead952003-09-25 14:50:04 +000021646 which can conflict with char $ac_func (); below.
21647 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000021648 <limits.h> exists even on freestanding compilers. */
21649
21650#ifdef __STDC__
Skip Montanaro6dead952003-09-25 14:50:04 +000021651# include <limits.h>
21652#else
21653# include <assert.h>
21654#endif
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000021655
21656#undef $ac_func
21657
Martin v. Löwiseba40652007-08-30 20:10:57 +000021658/* Override any GCC internal prototype to avoid an error.
21659 Use char because int might match the return type of a GCC
21660 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +000021661#ifdef __cplusplus
21662extern "C"
21663#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000021664char $ac_func ();
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000021665/* The GNU C library defines this for functions which it implements
21666 to always fail with ENOSYS. Some functions are actually named
21667 something starting with __ and the normal name is an alias. */
Martin v. Löwiseba40652007-08-30 20:10:57 +000021668#if defined __stub_$ac_func || defined __stub___$ac_func
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000021669choke me
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000021670#endif
21671
Skip Montanaro6dead952003-09-25 14:50:04 +000021672int
21673main ()
21674{
Martin v. Löwiseba40652007-08-30 20:10:57 +000021675return $ac_func ();
Martin v. Löwis11437992002-04-12 09:54:03 +000021676 ;
21677 return 0;
21678}
21679_ACEOF
21680rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000021681if { (ac_try="$ac_link"
21682case "(($ac_try" in
21683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21684 *) ac_try_echo=$ac_try;;
21685esac
21686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21687 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000021688 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000021689 grep -v '^ *+' conftest.er1 >conftest.err
21690 rm -f conftest.er1
21691 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000021692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000021693 (exit $ac_status); } && {
21694 test -z "$ac_c_werror_flag" ||
21695 test ! -s conftest.err
21696 } && test -s conftest$ac_exeext &&
21697 $as_test_x conftest$ac_exeext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000021698 eval "$as_ac_var=yes"
Michael W. Hudson54241132001-12-07 15:38:26 +000021699else
Martin v. Löwis11437992002-04-12 09:54:03 +000021700 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000021701sed 's/^/| /' conftest.$ac_ext >&5
21702
Martin v. Löwiseba40652007-08-30 20:10:57 +000021703 eval "$as_ac_var=no"
Michael W. Hudson54241132001-12-07 15:38:26 +000021704fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000021705
21706rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000021707 conftest$ac_exeext conftest.$ac_ext
Michael W. Hudson54241132001-12-07 15:38:26 +000021708fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000021709ac_res=`eval echo '${'$as_ac_var'}'`
21710 { echo "$as_me:$LINENO: result: $ac_res" >&5
21711echo "${ECHO_T}$ac_res" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000021712if test `eval echo '${'$as_ac_var'}'` = yes; then
21713 cat >>confdefs.h <<_ACEOF
21714#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21715_ACEOF
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000021716
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000021717fi
Thomas Wouters3a584202000-08-05 23:28:51 +000021718done
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000021719
Michael W. Hudson54241132001-12-07 15:38:26 +000021720
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000021721fi
21722
Michael W. Hudson54241132001-12-07 15:38:26 +000021723
21724
21725
21726
21727
21728
Guido van Rossum627b2d71993-12-24 10:39:16 +000021729# checks for system services
21730# (none yet)
21731
Guido van Rossum76be6ed1995-01-02 18:33:54 +000021732# Linux requires this for correct f.p. operations
Martin v. Löwiseba40652007-08-30 20:10:57 +000021733{ echo "$as_me:$LINENO: checking for __fpu_control" >&5
21734echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000021735if test "${ac_cv_func___fpu_control+set}" = set; then
21736 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeremy Hyltonbe28f5b2000-07-27 21:03:04 +000021737else
Martin v. Löwis11437992002-04-12 09:54:03 +000021738 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000021739/* confdefs.h. */
21740_ACEOF
21741cat confdefs.h >>conftest.$ac_ext
21742cat >>conftest.$ac_ext <<_ACEOF
21743/* end confdefs.h. */
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000021744/* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
21745 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21746#define __fpu_control innocuous___fpu_control
21747
Jeremy Hyltonbe28f5b2000-07-27 21:03:04 +000021748/* System header to define __stub macros and hopefully few prototypes,
Skip Montanaro6dead952003-09-25 14:50:04 +000021749 which can conflict with char __fpu_control (); below.
21750 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000021751 <limits.h> exists even on freestanding compilers. */
21752
21753#ifdef __STDC__
Skip Montanaro6dead952003-09-25 14:50:04 +000021754# include <limits.h>
21755#else
21756# include <assert.h>
21757#endif
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000021758
21759#undef __fpu_control
21760
Martin v. Löwiseba40652007-08-30 20:10:57 +000021761/* Override any GCC internal prototype to avoid an error.
21762 Use char because int might match the return type of a GCC
21763 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +000021764#ifdef __cplusplus
21765extern "C"
21766#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000021767char __fpu_control ();
Jeremy Hyltonbe28f5b2000-07-27 21:03:04 +000021768/* The GNU C library defines this for functions which it implements
21769 to always fail with ENOSYS. Some functions are actually named
21770 something starting with __ and the normal name is an alias. */
Martin v. Löwiseba40652007-08-30 20:10:57 +000021771#if defined __stub___fpu_control || defined __stub_____fpu_control
Jeremy Hyltonbe28f5b2000-07-27 21:03:04 +000021772choke me
Jeremy Hyltonbe28f5b2000-07-27 21:03:04 +000021773#endif
21774
Skip Montanaro6dead952003-09-25 14:50:04 +000021775int
21776main ()
21777{
Martin v. Löwiseba40652007-08-30 20:10:57 +000021778return __fpu_control ();
Martin v. Löwis11437992002-04-12 09:54:03 +000021779 ;
21780 return 0;
21781}
21782_ACEOF
21783rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000021784if { (ac_try="$ac_link"
21785case "(($ac_try" in
21786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21787 *) ac_try_echo=$ac_try;;
21788esac
21789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21790 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000021791 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000021792 grep -v '^ *+' conftest.er1 >conftest.err
21793 rm -f conftest.er1
21794 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000021795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000021796 (exit $ac_status); } && {
21797 test -z "$ac_c_werror_flag" ||
21798 test ! -s conftest.err
21799 } && test -s conftest$ac_exeext &&
21800 $as_test_x conftest$ac_exeext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000021801 ac_cv_func___fpu_control=yes
Jeremy Hyltonbe28f5b2000-07-27 21:03:04 +000021802else
Martin v. Löwis11437992002-04-12 09:54:03 +000021803 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000021804sed 's/^/| /' conftest.$ac_ext >&5
21805
Martin v. Löwiseba40652007-08-30 20:10:57 +000021806 ac_cv_func___fpu_control=no
Jeremy Hyltonbe28f5b2000-07-27 21:03:04 +000021807fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000021808
21809rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000021810 conftest$ac_exeext conftest.$ac_ext
Jeremy Hyltonbe28f5b2000-07-27 21:03:04 +000021811fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000021812{ echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
21813echo "${ECHO_T}$ac_cv_func___fpu_control" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000021814if test $ac_cv_func___fpu_control = yes; then
Jeremy Hyltonbe28f5b2000-07-27 21:03:04 +000021815 :
21816else
Martin v. Löwis11437992002-04-12 09:54:03 +000021817
Martin v. Löwiseba40652007-08-30 20:10:57 +000021818{ echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
21819echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000021820if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
21821 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +000021822else
Martin v. Löwis11437992002-04-12 09:54:03 +000021823 ac_check_lib_save_LIBS=$LIBS
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +000021824LIBS="-lieee $LIBS"
Martin v. Löwis11437992002-04-12 09:54:03 +000021825cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000021826/* confdefs.h. */
21827_ACEOF
21828cat confdefs.h >>conftest.$ac_ext
21829cat >>conftest.$ac_ext <<_ACEOF
21830/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000021831
Martin v. Löwiseba40652007-08-30 20:10:57 +000021832/* Override any GCC internal prototype to avoid an error.
21833 Use char because int might match the return type of a GCC
21834 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +000021835#ifdef __cplusplus
21836extern "C"
21837#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000021838char __fpu_control ();
Martin v. Löwis11437992002-04-12 09:54:03 +000021839int
21840main ()
21841{
Martin v. Löwiseba40652007-08-30 20:10:57 +000021842return __fpu_control ();
Martin v. Löwis11437992002-04-12 09:54:03 +000021843 ;
21844 return 0;
21845}
21846_ACEOF
21847rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000021848if { (ac_try="$ac_link"
21849case "(($ac_try" in
21850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21851 *) ac_try_echo=$ac_try;;
21852esac
21853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21854 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000021855 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000021856 grep -v '^ *+' conftest.er1 >conftest.err
21857 rm -f conftest.er1
21858 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000021859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000021860 (exit $ac_status); } && {
21861 test -z "$ac_c_werror_flag" ||
21862 test ! -s conftest.err
21863 } && test -s conftest$ac_exeext &&
21864 $as_test_x conftest$ac_exeext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000021865 ac_cv_lib_ieee___fpu_control=yes
Guido van Rossum627b2d71993-12-24 10:39:16 +000021866else
Martin v. Löwis11437992002-04-12 09:54:03 +000021867 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000021868sed 's/^/| /' conftest.$ac_ext >&5
21869
Martin v. Löwiseba40652007-08-30 20:10:57 +000021870 ac_cv_lib_ieee___fpu_control=no
Guido van Rossum627b2d71993-12-24 10:39:16 +000021871fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000021872
21873rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000021874 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000021875LIBS=$ac_check_lib_save_LIBS
Guido van Rossum76be6ed1995-01-02 18:33:54 +000021876fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000021877{ echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
21878echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000021879if test $ac_cv_lib_ieee___fpu_control = yes; then
21880 cat >>confdefs.h <<_ACEOF
21881#define HAVE_LIBIEEE 1
21882_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000021883
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +000021884 LIBS="-lieee $LIBS"
Guido van Rossum76be6ed1995-01-02 18:33:54 +000021885
Guido van Rossum627b2d71993-12-24 10:39:16 +000021886fi
21887
Michael W. Hudson54241132001-12-07 15:38:26 +000021888
Jeremy Hyltonbe28f5b2000-07-27 21:03:04 +000021889fi
21890
Michael W. Hudson54241132001-12-07 15:38:26 +000021891
Guido van Rossum7f253911997-05-09 02:42:48 +000021892# Check for --with-fpectl
Martin v. Löwiseba40652007-08-30 20:10:57 +000021893{ echo "$as_me:$LINENO: checking for --with-fpectl" >&5
21894echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000021895
Martin v. Löwiseba40652007-08-30 20:10:57 +000021896# Check whether --with-fpectl was given.
Guido van Rossum7f253911997-05-09 02:42:48 +000021897if test "${with_fpectl+set}" = set; then
Martin v. Löwiseba40652007-08-30 20:10:57 +000021898 withval=$with_fpectl;
Guido van Rossum7f253911997-05-09 02:42:48 +000021899if test "$withval" != no
Martin v. Löwis11437992002-04-12 09:54:03 +000021900then
21901
21902cat >>confdefs.h <<\_ACEOF
Guido van Rossum7f253911997-05-09 02:42:48 +000021903#define WANT_SIGFPE_HANDLER 1
Martin v. Löwis11437992002-04-12 09:54:03 +000021904_ACEOF
21905
Martin v. Löwiseba40652007-08-30 20:10:57 +000021906 { echo "$as_me:$LINENO: result: yes" >&5
21907echo "${ECHO_T}yes" >&6; }
21908else { echo "$as_me:$LINENO: result: no" >&5
21909echo "${ECHO_T}no" >&6; }
Guido van Rossum7f253911997-05-09 02:42:48 +000021910fi
Guido van Rossumef2255b2000-03-10 22:30:29 +000021911else
Martin v. Löwiseba40652007-08-30 20:10:57 +000021912 { echo "$as_me:$LINENO: result: no" >&5
21913echo "${ECHO_T}no" >&6; }
21914fi
21915
Guido van Rossum7f253911997-05-09 02:42:48 +000021916
Guido van Rossum7f43da71994-08-01 12:15:30 +000021917# check for --with-libm=...
21918
Guido van Rossum563e7081996-09-10 18:20:48 +000021919case $ac_sys_system in
Guido van Rossum3dc0a512000-10-05 18:00:06 +000021920Darwin) ;;
Guido van Rossumec95c7b1998-08-04 17:59:56 +000021921BeOS) ;;
Guido van Rossum563e7081996-09-10 18:20:48 +000021922*) LIBM=-lm
21923esac
Martin v. Löwiseba40652007-08-30 20:10:57 +000021924{ echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
21925echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000021926
Martin v. Löwiseba40652007-08-30 20:10:57 +000021927# Check whether --with-libm was given.
Guido van Rossum48bdbfc1996-05-28 22:53:48 +000021928if test "${with_libm+set}" = set; then
Martin v. Löwiseba40652007-08-30 20:10:57 +000021929 withval=$with_libm;
Guido van Rossum7f253911997-05-09 02:42:48 +000021930if test "$withval" = no
21931then LIBM=
Martin v. Löwiseba40652007-08-30 20:10:57 +000021932 { echo "$as_me:$LINENO: result: force LIBM empty" >&5
21933echo "${ECHO_T}force LIBM empty" >&6; }
Guido van Rossum7f253911997-05-09 02:42:48 +000021934elif test "$withval" != yes
Guido van Rossum7f43da71994-08-01 12:15:30 +000021935then LIBM=$withval
Martin v. Löwiseba40652007-08-30 20:10:57 +000021936 { echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
21937echo "${ECHO_T}set LIBM=\"$withval\"" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000021938else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
21939echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
21940 { (exit 1); exit 1; }; }
Guido van Rossum7f43da71994-08-01 12:15:30 +000021941fi
Guido van Rossum7f253911997-05-09 02:42:48 +000021942else
Martin v. Löwiseba40652007-08-30 20:10:57 +000021943 { echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
21944echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6; }
21945fi
21946
Guido van Rossum7f43da71994-08-01 12:15:30 +000021947
21948# check for --with-libc=...
21949
Martin v. Löwiseba40652007-08-30 20:10:57 +000021950{ echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
21951echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000021952
Martin v. Löwiseba40652007-08-30 20:10:57 +000021953# Check whether --with-libc was given.
Guido van Rossum48bdbfc1996-05-28 22:53:48 +000021954if test "${with_libc+set}" = set; then
Martin v. Löwiseba40652007-08-30 20:10:57 +000021955 withval=$with_libc;
Guido van Rossum7f253911997-05-09 02:42:48 +000021956if test "$withval" = no
21957then LIBC=
Martin v. Löwiseba40652007-08-30 20:10:57 +000021958 { echo "$as_me:$LINENO: result: force LIBC empty" >&5
21959echo "${ECHO_T}force LIBC empty" >&6; }
Guido van Rossum7f253911997-05-09 02:42:48 +000021960elif test "$withval" != yes
Guido van Rossum7f43da71994-08-01 12:15:30 +000021961then LIBC=$withval
Martin v. Löwiseba40652007-08-30 20:10:57 +000021962 { echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
21963echo "${ECHO_T}set LIBC=\"$withval\"" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000021964else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
21965echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
21966 { (exit 1); exit 1; }; }
Guido van Rossum7f43da71994-08-01 12:15:30 +000021967fi
Guido van Rossum7f253911997-05-09 02:42:48 +000021968else
Martin v. Löwiseba40652007-08-30 20:10:57 +000021969 { echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
21970echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6; }
21971fi
21972
Guido van Rossum7f43da71994-08-01 12:15:30 +000021973
Christian Heimes0a8143f2007-12-18 23:22:54 +000021974# ************************************
21975# * Check for mathematical functions *
21976# ************************************
Mark Dickinson265d7382008-04-21 22:32:24 +000021977
Mark Dickinson7a3d8642008-04-22 00:54:27 +000021978LIBS_SAVE=$LIBS
21979LIBS="$LIBS $LIBM"
21980
Mark Dickinson04b27232009-01-04 12:29:36 +000021981# Detect whether system arithmetic is subject to x87-style double
21982# rounding issues. The result of this test has little meaning on non
21983# IEEE 754 platforms. On IEEE 754, test should return 1 if rounding
21984# mode is round-to-nearest and double rounding issues are present, and
21985# 0 otherwise. See http://bugs.python.org/issue2937 for more info.
21986{ echo "$as_me:$LINENO: checking for x87-style double rounding" >&5
21987echo $ECHO_N "checking for x87-style double rounding... $ECHO_C" >&6; }
21988if test "${ac_cv_x87_double_rounding+set}" = set; then
21989 echo $ECHO_N "(cached) $ECHO_C" >&6
21990else
21991
21992if test "$cross_compiling" = yes; then
21993 ac_cv_x87_double_rounding=no
21994else
21995 cat >conftest.$ac_ext <<_ACEOF
21996/* confdefs.h. */
21997_ACEOF
21998cat confdefs.h >>conftest.$ac_ext
21999cat >>conftest.$ac_ext <<_ACEOF
22000/* end confdefs.h. */
22001
22002#include <stdlib.h>
22003#include <math.h>
22004int main() {
22005 volatile double x, y, z;
22006 /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */
22007 x = 0.99999999999999989; /* 1-2**-53 */
22008 y = 1./x;
22009 if (y != 1.)
22010 exit(0);
22011 /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */
22012 x = 1e16;
22013 y = 2.99999;
22014 z = x + y;
22015 if (z != 1e16+4.)
22016 exit(0);
22017 /* both tests show evidence of double rounding */
22018 exit(1);
22019}
22020
22021_ACEOF
22022rm -f conftest$ac_exeext
22023if { (ac_try="$ac_link"
22024case "(($ac_try" in
22025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22026 *) ac_try_echo=$ac_try;;
22027esac
22028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22029 (eval "$ac_link") 2>&5
22030 ac_status=$?
22031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22032 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22033 { (case "(($ac_try" in
22034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22035 *) ac_try_echo=$ac_try;;
22036esac
22037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22038 (eval "$ac_try") 2>&5
22039 ac_status=$?
22040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22041 (exit $ac_status); }; }; then
22042 ac_cv_x87_double_rounding=no
22043else
22044 echo "$as_me: program exited with status $ac_status" >&5
22045echo "$as_me: failed program was:" >&5
22046sed 's/^/| /' conftest.$ac_ext >&5
22047
22048( exit $ac_status )
22049ac_cv_x87_double_rounding=yes
22050fi
22051rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22052fi
22053
22054
22055fi
22056
22057{ echo "$as_me:$LINENO: result: $ac_cv_x87_double_rounding" >&5
22058echo "${ECHO_T}$ac_cv_x87_double_rounding" >&6; }
22059if test "$ac_cv_x87_double_rounding" = yes
22060then
22061
22062cat >>confdefs.h <<\_ACEOF
22063#define X87_DOUBLE_ROUNDING 1
22064_ACEOF
22065
22066fi
22067
Jesse Noller355b1262009-04-02 00:03:28 +000022068# Multiprocessing check for broken sem_getvalue
22069{ echo "$as_me:$LINENO: checking for broken sem_getvalue" >&5
22070echo $ECHO_N "checking for broken sem_getvalue... $ECHO_C" >&6; }
22071if test "$cross_compiling" = yes; then
22072 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22073See \`config.log' for more details." >&5
22074echo "$as_me: error: cannot run test program while cross compiling
22075See \`config.log' for more details." >&2;}
22076 { (exit 1); exit 1; }; }
22077else
22078 cat >conftest.$ac_ext <<_ACEOF
22079/* confdefs.h. */
22080_ACEOF
22081cat confdefs.h >>conftest.$ac_ext
22082cat >>conftest.$ac_ext <<_ACEOF
22083/* end confdefs.h. */
22084
22085#include <unistd.h>
22086#include <fcntl.h>
22087#include <stdio.h>
22088#include <semaphore.h>
22089#include <sys/stat.h>
22090
22091int main(void){
22092 sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0);
22093 int count;
22094 int res;
22095 if(a==SEM_FAILED){
22096 perror("sem_open");
22097 return 1;
22098
22099 }
22100 res = sem_getvalue(a, &count);
22101 sem_close(a);
22102 return res==-1 ? 1 : 0;
22103}
22104
22105
22106_ACEOF
22107rm -f conftest$ac_exeext
22108if { (ac_try="$ac_link"
22109case "(($ac_try" in
22110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22111 *) ac_try_echo=$ac_try;;
22112esac
22113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22114 (eval "$ac_link") 2>&5
22115 ac_status=$?
22116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22117 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22118 { (case "(($ac_try" in
22119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22120 *) ac_try_echo=$ac_try;;
22121esac
22122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22123 (eval "$ac_try") 2>&5
22124 ac_status=$?
22125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22126 (exit $ac_status); }; }; then
22127 { echo "$as_me:$LINENO: result: no" >&5
22128echo "${ECHO_T}no" >&6; }
22129else
22130 echo "$as_me: program exited with status $ac_status" >&5
22131echo "$as_me: failed program was:" >&5
22132sed 's/^/| /' conftest.$ac_ext >&5
22133
22134( exit $ac_status )
22135{ echo "$as_me:$LINENO: result: yes" >&5
22136echo "${ECHO_T}yes" >&6; }
22137
22138cat >>confdefs.h <<\_ACEOF
22139#define HAVE_BROKEN_SEM_GETVALUE 1
22140_ACEOF
22141
22142
22143fi
22144rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22145fi
22146
22147
Mark Dickinson04b27232009-01-04 12:29:36 +000022148
Mark Dickinson265d7382008-04-21 22:32:24 +000022149# On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of
22150# -0. on some architectures.
22151{ echo "$as_me:$LINENO: checking whether tanh preserves the sign of zero" >&5
22152echo $ECHO_N "checking whether tanh preserves the sign of zero... $ECHO_C" >&6; }
22153if test "${ac_cv_tanh_preserves_zero_sign+set}" = set; then
22154 echo $ECHO_N "(cached) $ECHO_C" >&6
22155else
22156
22157if test "$cross_compiling" = yes; then
22158 ac_cv_tanh_preserves_zero_sign=no
22159else
22160 cat >conftest.$ac_ext <<_ACEOF
22161/* confdefs.h. */
22162_ACEOF
22163cat confdefs.h >>conftest.$ac_ext
22164cat >>conftest.$ac_ext <<_ACEOF
22165/* end confdefs.h. */
22166
22167#include <math.h>
Mark Dickinson7a3d8642008-04-22 00:54:27 +000022168#include <stdlib.h>
Mark Dickinson265d7382008-04-21 22:32:24 +000022169int main() {
22170 /* return 0 if either negative zeros don't exist
22171 on this platform or if negative zeros exist
22172 and tanh(-0.) == -0. */
22173 if (atan2(0., -1.) == atan2(-0., -1.) ||
22174 atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0);
22175 else exit(1);
22176}
22177
22178_ACEOF
22179rm -f conftest$ac_exeext
22180if { (ac_try="$ac_link"
22181case "(($ac_try" in
22182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22183 *) ac_try_echo=$ac_try;;
22184esac
22185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22186 (eval "$ac_link") 2>&5
22187 ac_status=$?
22188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22189 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22190 { (case "(($ac_try" in
22191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22192 *) ac_try_echo=$ac_try;;
22193esac
22194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22195 (eval "$ac_try") 2>&5
22196 ac_status=$?
22197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22198 (exit $ac_status); }; }; then
22199 ac_cv_tanh_preserves_zero_sign=yes
22200else
22201 echo "$as_me: program exited with status $ac_status" >&5
22202echo "$as_me: failed program was:" >&5
22203sed 's/^/| /' conftest.$ac_ext >&5
22204
22205( exit $ac_status )
22206ac_cv_tanh_preserves_zero_sign=no
22207fi
22208rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22209fi
22210
22211
22212fi
22213
22214{ echo "$as_me:$LINENO: result: $ac_cv_tanh_preserves_zero_sign" >&5
22215echo "${ECHO_T}$ac_cv_tanh_preserves_zero_sign" >&6; }
22216if test "$ac_cv_tanh_preserves_zero_sign" = yes
22217then
22218
22219cat >>confdefs.h <<\_ACEOF
22220#define TANH_PRESERVES_ZERO_SIGN 1
22221_ACEOF
22222
22223fi
22224
Martin v. Löwis11437992002-04-12 09:54:03 +000022225
Guido van Rossum2b3ac691996-08-30 15:18:41 +000022226
Michael W. Hudson54241132001-12-07 15:38:26 +000022227
Christian Heimes0a8143f2007-12-18 23:22:54 +000022228
22229
22230
22231
22232
Mark Dickinson8e5446f2009-04-18 14:41:37 +000022233
22234for ac_func in acosh asinh atanh copysign expm1 finite hypot log1p round
Christian Heimes0a8143f2007-12-18 23:22:54 +000022235do
22236as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22237{ echo "$as_me:$LINENO: checking for $ac_func" >&5
22238echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22239if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22240 echo $ECHO_N "(cached) $ECHO_C" >&6
22241else
22242 cat >conftest.$ac_ext <<_ACEOF
22243/* confdefs.h. */
22244_ACEOF
22245cat confdefs.h >>conftest.$ac_ext
22246cat >>conftest.$ac_ext <<_ACEOF
22247/* end confdefs.h. */
22248/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22249 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22250#define $ac_func innocuous_$ac_func
22251
22252/* System header to define __stub macros and hopefully few prototypes,
22253 which can conflict with char $ac_func (); below.
22254 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22255 <limits.h> exists even on freestanding compilers. */
22256
22257#ifdef __STDC__
22258# include <limits.h>
22259#else
22260# include <assert.h>
22261#endif
22262
22263#undef $ac_func
22264
22265/* Override any GCC internal prototype to avoid an error.
22266 Use char because int might match the return type of a GCC
22267 builtin and then its argument prototype would still apply. */
22268#ifdef __cplusplus
22269extern "C"
22270#endif
22271char $ac_func ();
22272/* The GNU C library defines this for functions which it implements
22273 to always fail with ENOSYS. Some functions are actually named
22274 something starting with __ and the normal name is an alias. */
22275#if defined __stub_$ac_func || defined __stub___$ac_func
22276choke me
22277#endif
22278
22279int
22280main ()
22281{
22282return $ac_func ();
22283 ;
22284 return 0;
22285}
22286_ACEOF
22287rm -f conftest.$ac_objext conftest$ac_exeext
22288if { (ac_try="$ac_link"
22289case "(($ac_try" in
22290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22291 *) ac_try_echo=$ac_try;;
22292esac
22293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22294 (eval "$ac_link") 2>conftest.er1
22295 ac_status=$?
22296 grep -v '^ *+' conftest.er1 >conftest.err
22297 rm -f conftest.er1
22298 cat conftest.err >&5
22299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22300 (exit $ac_status); } && {
22301 test -z "$ac_c_werror_flag" ||
22302 test ! -s conftest.err
22303 } && test -s conftest$ac_exeext &&
22304 $as_test_x conftest$ac_exeext; then
22305 eval "$as_ac_var=yes"
22306else
22307 echo "$as_me: failed program was:" >&5
22308sed 's/^/| /' conftest.$ac_ext >&5
22309
22310 eval "$as_ac_var=no"
22311fi
22312
22313rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22314 conftest$ac_exeext conftest.$ac_ext
22315fi
22316ac_res=`eval echo '${'$as_ac_var'}'`
22317 { echo "$as_me:$LINENO: result: $ac_res" >&5
22318echo "${ECHO_T}$ac_res" >&6; }
22319if test `eval echo '${'$as_ac_var'}'` = yes; then
22320 cat >>confdefs.h <<_ACEOF
22321#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22322_ACEOF
22323
22324fi
22325done
22326
Mark Dickinsond181e3a2009-01-04 13:57:26 +000022327{ echo "$as_me:$LINENO: checking whether isinf is declared" >&5
22328echo $ECHO_N "checking whether isinf is declared... $ECHO_C" >&6; }
22329if test "${ac_cv_have_decl_isinf+set}" = set; then
22330 echo $ECHO_N "(cached) $ECHO_C" >&6
22331else
22332 cat >conftest.$ac_ext <<_ACEOF
22333/* confdefs.h. */
22334_ACEOF
22335cat confdefs.h >>conftest.$ac_ext
22336cat >>conftest.$ac_ext <<_ACEOF
22337/* end confdefs.h. */
22338#include <math.h>
22339
22340int
22341main ()
22342{
22343#ifndef isinf
22344 (void) isinf;
22345#endif
22346
22347 ;
22348 return 0;
22349}
22350_ACEOF
22351rm -f conftest.$ac_objext
22352if { (ac_try="$ac_compile"
22353case "(($ac_try" in
22354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22355 *) ac_try_echo=$ac_try;;
22356esac
22357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22358 (eval "$ac_compile") 2>conftest.er1
22359 ac_status=$?
22360 grep -v '^ *+' conftest.er1 >conftest.err
22361 rm -f conftest.er1
22362 cat conftest.err >&5
22363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22364 (exit $ac_status); } && {
22365 test -z "$ac_c_werror_flag" ||
22366 test ! -s conftest.err
22367 } && test -s conftest.$ac_objext; then
22368 ac_cv_have_decl_isinf=yes
22369else
22370 echo "$as_me: failed program was:" >&5
22371sed 's/^/| /' conftest.$ac_ext >&5
22372
22373 ac_cv_have_decl_isinf=no
22374fi
22375
22376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22377fi
22378{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_isinf" >&5
22379echo "${ECHO_T}$ac_cv_have_decl_isinf" >&6; }
22380if test $ac_cv_have_decl_isinf = yes; then
22381
22382cat >>confdefs.h <<_ACEOF
22383#define HAVE_DECL_ISINF 1
22384_ACEOF
22385
22386
22387else
22388 cat >>confdefs.h <<_ACEOF
22389#define HAVE_DECL_ISINF 0
22390_ACEOF
22391
22392
22393fi
22394{ echo "$as_me:$LINENO: checking whether isnan is declared" >&5
22395echo $ECHO_N "checking whether isnan is declared... $ECHO_C" >&6; }
22396if test "${ac_cv_have_decl_isnan+set}" = set; then
22397 echo $ECHO_N "(cached) $ECHO_C" >&6
22398else
22399 cat >conftest.$ac_ext <<_ACEOF
22400/* confdefs.h. */
22401_ACEOF
22402cat confdefs.h >>conftest.$ac_ext
22403cat >>conftest.$ac_ext <<_ACEOF
22404/* end confdefs.h. */
22405#include <math.h>
22406
22407int
22408main ()
22409{
22410#ifndef isnan
22411 (void) isnan;
22412#endif
22413
22414 ;
22415 return 0;
22416}
22417_ACEOF
22418rm -f conftest.$ac_objext
22419if { (ac_try="$ac_compile"
22420case "(($ac_try" in
22421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22422 *) ac_try_echo=$ac_try;;
22423esac
22424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22425 (eval "$ac_compile") 2>conftest.er1
22426 ac_status=$?
22427 grep -v '^ *+' conftest.er1 >conftest.err
22428 rm -f conftest.er1
22429 cat conftest.err >&5
22430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22431 (exit $ac_status); } && {
22432 test -z "$ac_c_werror_flag" ||
22433 test ! -s conftest.err
22434 } && test -s conftest.$ac_objext; then
22435 ac_cv_have_decl_isnan=yes
22436else
22437 echo "$as_me: failed program was:" >&5
22438sed 's/^/| /' conftest.$ac_ext >&5
22439
22440 ac_cv_have_decl_isnan=no
22441fi
22442
22443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22444fi
22445{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_isnan" >&5
22446echo "${ECHO_T}$ac_cv_have_decl_isnan" >&6; }
22447if test $ac_cv_have_decl_isnan = yes; then
22448
22449cat >>confdefs.h <<_ACEOF
22450#define HAVE_DECL_ISNAN 1
22451_ACEOF
22452
22453
22454else
22455 cat >>confdefs.h <<_ACEOF
22456#define HAVE_DECL_ISNAN 0
22457_ACEOF
22458
22459
22460fi
22461{ echo "$as_me:$LINENO: checking whether isfinite is declared" >&5
22462echo $ECHO_N "checking whether isfinite is declared... $ECHO_C" >&6; }
22463if test "${ac_cv_have_decl_isfinite+set}" = set; then
22464 echo $ECHO_N "(cached) $ECHO_C" >&6
22465else
22466 cat >conftest.$ac_ext <<_ACEOF
22467/* confdefs.h. */
22468_ACEOF
22469cat confdefs.h >>conftest.$ac_ext
22470cat >>conftest.$ac_ext <<_ACEOF
22471/* end confdefs.h. */
22472#include <math.h>
22473
22474int
22475main ()
22476{
22477#ifndef isfinite
22478 (void) isfinite;
22479#endif
22480
22481 ;
22482 return 0;
22483}
22484_ACEOF
22485rm -f conftest.$ac_objext
22486if { (ac_try="$ac_compile"
22487case "(($ac_try" in
22488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22489 *) ac_try_echo=$ac_try;;
22490esac
22491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22492 (eval "$ac_compile") 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_objext; then
22502 ac_cv_have_decl_isfinite=yes
22503else
22504 echo "$as_me: failed program was:" >&5
22505sed 's/^/| /' conftest.$ac_ext >&5
22506
22507 ac_cv_have_decl_isfinite=no
22508fi
22509
22510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22511fi
22512{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_isfinite" >&5
22513echo "${ECHO_T}$ac_cv_have_decl_isfinite" >&6; }
22514if test $ac_cv_have_decl_isfinite = yes; then
22515
22516cat >>confdefs.h <<_ACEOF
22517#define HAVE_DECL_ISFINITE 1
22518_ACEOF
22519
22520
22521else
22522 cat >>confdefs.h <<_ACEOF
22523#define HAVE_DECL_ISFINITE 0
22524_ACEOF
22525
22526
22527fi
22528
22529
Christian Heimes0a8143f2007-12-18 23:22:54 +000022530
Guido van Rossumaf5b83e1995-01-04 19:02:35 +000022531LIBS=$LIBS_SAVE
22532
Mark Dickinsonefc82f72009-03-20 15:51:55 +000022533# determine what size digit to use for Python's longs
22534{ echo "$as_me:$LINENO: checking digit size for Python's longs" >&5
22535echo $ECHO_N "checking digit size for Python's longs... $ECHO_C" >&6; }
22536# Check whether --enable-big-digits was given.
22537if test "${enable_big_digits+set}" = set; then
22538 enableval=$enable_big_digits; case $enable_big_digits in
22539yes)
22540 enable_big_digits=30 ;;
22541no)
22542 enable_big_digits=15 ;;
2254315|30)
22544 ;;
22545*)
22546 { { echo "$as_me:$LINENO: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&5
22547echo "$as_me: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&2;}
22548 { (exit 1); exit 1; }; } ;;
22549esac
22550{ echo "$as_me:$LINENO: result: $enable_big_digits" >&5
22551echo "${ECHO_T}$enable_big_digits" >&6; }
22552
22553cat >>confdefs.h <<_ACEOF
22554#define PYLONG_BITS_IN_DIGIT $enable_big_digits
22555_ACEOF
22556
22557
22558else
22559 { echo "$as_me:$LINENO: result: no value specified" >&5
22560echo "${ECHO_T}no value specified" >&6; }
22561fi
22562
22563
Guido van Rossumef2255b2000-03-10 22:30:29 +000022564# check for wchar.h
Martin v. Löwis11437992002-04-12 09:54:03 +000022565if test "${ac_cv_header_wchar_h+set}" = set; then
Martin v. Löwiseba40652007-08-30 20:10:57 +000022566 { echo "$as_me:$LINENO: checking for wchar.h" >&5
22567echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000022568if test "${ac_cv_header_wchar_h+set}" = set; then
22569 echo $ECHO_N "(cached) $ECHO_C" >&6
22570fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000022571{ echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
22572echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
Guido van Rossumef2255b2000-03-10 22:30:29 +000022573else
Martin v. Löwis11437992002-04-12 09:54:03 +000022574 # Is the header compilable?
Martin v. Löwiseba40652007-08-30 20:10:57 +000022575{ echo "$as_me:$LINENO: checking wchar.h usability" >&5
22576echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000022577cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000022578/* confdefs.h. */
22579_ACEOF
22580cat confdefs.h >>conftest.$ac_ext
22581cat >>conftest.$ac_ext <<_ACEOF
22582/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000022583$ac_includes_default
22584#include <wchar.h>
22585_ACEOF
22586rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000022587if { (ac_try="$ac_compile"
22588case "(($ac_try" in
22589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22590 *) ac_try_echo=$ac_try;;
22591esac
22592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22593 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000022594 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000022595 grep -v '^ *+' conftest.er1 >conftest.err
22596 rm -f conftest.er1
22597 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000022598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000022599 (exit $ac_status); } && {
22600 test -z "$ac_c_werror_flag" ||
22601 test ! -s conftest.err
22602 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000022603 ac_header_compiler=yes
22604else
22605 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000022606sed 's/^/| /' conftest.$ac_ext >&5
22607
Martin v. Löwiseba40652007-08-30 20:10:57 +000022608 ac_header_compiler=no
Martin v. Löwis11437992002-04-12 09:54:03 +000022609fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000022610
22611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22612{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22613echo "${ECHO_T}$ac_header_compiler" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000022614
22615# Is the header present?
Martin v. Löwiseba40652007-08-30 20:10:57 +000022616{ echo "$as_me:$LINENO: checking wchar.h presence" >&5
22617echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000022618cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000022619/* confdefs.h. */
22620_ACEOF
22621cat confdefs.h >>conftest.$ac_ext
22622cat >>conftest.$ac_ext <<_ACEOF
22623/* end confdefs.h. */
Guido van Rossumef2255b2000-03-10 22:30:29 +000022624#include <wchar.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000022625_ACEOF
Martin v. Löwiseba40652007-08-30 20:10:57 +000022626if { (ac_try="$ac_cpp conftest.$ac_ext"
22627case "(($ac_try" in
22628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22629 *) ac_try_echo=$ac_try;;
22630esac
22631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22632 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000022633 ac_status=$?
Skip Montanaro6dead952003-09-25 14:50:04 +000022634 grep -v '^ *+' conftest.er1 >conftest.err
Martin v. Löwis11437992002-04-12 09:54:03 +000022635 rm -f conftest.er1
22636 cat conftest.err >&5
22637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000022638 (exit $ac_status); } >/dev/null && {
22639 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22640 test ! -s conftest.err
22641 }; then
Martin v. Löwis11437992002-04-12 09:54:03 +000022642 ac_header_preproc=yes
22643else
22644 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000022645sed 's/^/| /' conftest.$ac_ext >&5
22646
Martin v. Löwis11437992002-04-12 09:54:03 +000022647 ac_header_preproc=no
Guido van Rossumef2255b2000-03-10 22:30:29 +000022648fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000022649
Martin v. Löwis11437992002-04-12 09:54:03 +000022650rm -f conftest.err conftest.$ac_ext
Martin v. Löwiseba40652007-08-30 20:10:57 +000022651{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22652echo "${ECHO_T}$ac_header_preproc" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000022653
22654# So? What about this header?
Skip Montanarof0d5f792004-08-15 14:08:23 +000022655case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22656 yes:no: )
Martin v. Löwis11437992002-04-12 09:54:03 +000022657 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
22658echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
Skip Montanarof0d5f792004-08-15 14:08:23 +000022659 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
22660echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
22661 ac_header_preproc=yes
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000022662 ;;
Skip Montanarof0d5f792004-08-15 14:08:23 +000022663 no:yes:* )
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000022664 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
22665echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
Skip Montanarof0d5f792004-08-15 14:08:23 +000022666 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
22667echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
22668 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
22669echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
22670 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
22671echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000022672 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
22673echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
Skip Montanarof0d5f792004-08-15 14:08:23 +000022674 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
22675echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
Martin v. Löwiseba40652007-08-30 20:10:57 +000022676 ( cat <<\_ASBOX
Georg Brandl464432d2009-05-20 18:24:08 +000022677## -------------------------------------- ##
22678## Report this to http://bugs.python.org/ ##
22679## -------------------------------------- ##
Skip Montanaro6dead952003-09-25 14:50:04 +000022680_ASBOX
Martin v. Löwiseba40652007-08-30 20:10:57 +000022681 ) | sed "s/^/$as_me: WARNING: /" >&2
Skip Montanaro6dead952003-09-25 14:50:04 +000022682 ;;
Martin v. Löwis11437992002-04-12 09:54:03 +000022683esac
Martin v. Löwiseba40652007-08-30 20:10:57 +000022684{ echo "$as_me:$LINENO: checking for wchar.h" >&5
22685echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000022686if test "${ac_cv_header_wchar_h+set}" = set; then
22687 echo $ECHO_N "(cached) $ECHO_C" >&6
22688else
22689 ac_cv_header_wchar_h=$ac_header_preproc
Guido van Rossumef2255b2000-03-10 22:30:29 +000022690fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000022691{ echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
22692echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000022693
22694fi
22695if test $ac_cv_header_wchar_h = yes; then
22696
22697
22698cat >>confdefs.h <<\_ACEOF
Guido van Rossumef2255b2000-03-10 22:30:29 +000022699#define HAVE_WCHAR_H 1
Martin v. Löwis11437992002-04-12 09:54:03 +000022700_ACEOF
22701
Martin v. Löwisc45929e2002-04-06 10:10:49 +000022702 wchar_h="yes"
22703
Guido van Rossumef2255b2000-03-10 22:30:29 +000022704else
Martin v. Löwis11437992002-04-12 09:54:03 +000022705 wchar_h="no"
Guido van Rossumef2255b2000-03-10 22:30:29 +000022706
22707fi
22708
Michael W. Hudson54241132001-12-07 15:38:26 +000022709
Martin v. Löwis11437992002-04-12 09:54:03 +000022710
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000022711# determine wchar_t size
22712if test "$wchar_h" = yes
22713then
Martin v. Löwiseba40652007-08-30 20:10:57 +000022714 { echo "$as_me:$LINENO: checking for wchar_t" >&5
22715echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000022716if test "${ac_cv_type_wchar_t+set}" = set; then
22717 echo $ECHO_N "(cached) $ECHO_C" >&6
22718else
22719 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000022720/* confdefs.h. */
22721_ACEOF
22722cat confdefs.h >>conftest.$ac_ext
22723cat >>conftest.$ac_ext <<_ACEOF
22724/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000022725#include <wchar.h>
22726
Martin v. Löwiseba40652007-08-30 20:10:57 +000022727typedef wchar_t ac__type_new_;
Martin v. Löwis11437992002-04-12 09:54:03 +000022728int
22729main ()
22730{
Martin v. Löwiseba40652007-08-30 20:10:57 +000022731if ((ac__type_new_ *) 0)
Martin v. Löwis11437992002-04-12 09:54:03 +000022732 return 0;
Martin v. Löwiseba40652007-08-30 20:10:57 +000022733if (sizeof (ac__type_new_))
Martin v. Löwis11437992002-04-12 09:54:03 +000022734 return 0;
22735 ;
22736 return 0;
22737}
22738_ACEOF
22739rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000022740if { (ac_try="$ac_compile"
22741case "(($ac_try" in
22742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22743 *) ac_try_echo=$ac_try;;
22744esac
22745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22746 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000022747 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000022748 grep -v '^ *+' conftest.er1 >conftest.err
22749 rm -f conftest.er1
22750 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000022751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000022752 (exit $ac_status); } && {
22753 test -z "$ac_c_werror_flag" ||
22754 test ! -s conftest.err
22755 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000022756 ac_cv_type_wchar_t=yes
22757else
22758 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000022759sed 's/^/| /' conftest.$ac_ext >&5
22760
Martin v. Löwiseba40652007-08-30 20:10:57 +000022761 ac_cv_type_wchar_t=no
Martin v. Löwis11437992002-04-12 09:54:03 +000022762fi
Brett Cannon19fab762007-06-02 03:02:29 +000022763
Martin v. Löwiseba40652007-08-30 20:10:57 +000022764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22765fi
22766{ echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
22767echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
22768
22769# The cast to long int works around a bug in the HP C Compiler
22770# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22771# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22772# This bug is HP SR number 8606223364.
22773{ echo "$as_me:$LINENO: checking size of wchar_t" >&5
22774echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000022775if test "${ac_cv_sizeof_wchar_t+set}" = set; then
22776 echo $ECHO_N "(cached) $ECHO_C" >&6
22777else
Martin v. Löwis11437992002-04-12 09:54:03 +000022778 if test "$cross_compiling" = yes; then
22779 # Depending upon the size, compute the lo and hi bounds.
22780cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000022781/* confdefs.h. */
22782_ACEOF
22783cat confdefs.h >>conftest.$ac_ext
22784cat >>conftest.$ac_ext <<_ACEOF
22785/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000022786#include <wchar.h>
22787
Martin v. Löwiseba40652007-08-30 20:10:57 +000022788 typedef wchar_t ac__type_sizeof_;
Martin v. Löwis11437992002-04-12 09:54:03 +000022789int
22790main ()
22791{
Martin v. Löwiseba40652007-08-30 20:10:57 +000022792static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Martin v. Löwis11437992002-04-12 09:54:03 +000022793test_array [0] = 0
22794
22795 ;
22796 return 0;
22797}
22798_ACEOF
22799rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000022800if { (ac_try="$ac_compile"
22801case "(($ac_try" in
22802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22803 *) ac_try_echo=$ac_try;;
22804esac
22805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22806 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000022807 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000022808 grep -v '^ *+' conftest.er1 >conftest.err
22809 rm -f conftest.er1
22810 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000022811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000022812 (exit $ac_status); } && {
22813 test -z "$ac_c_werror_flag" ||
22814 test ! -s conftest.err
22815 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000022816 ac_lo=0 ac_mid=0
22817 while :; do
22818 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000022819/* confdefs.h. */
22820_ACEOF
22821cat confdefs.h >>conftest.$ac_ext
22822cat >>conftest.$ac_ext <<_ACEOF
22823/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000022824#include <wchar.h>
22825
Martin v. Löwiseba40652007-08-30 20:10:57 +000022826 typedef wchar_t ac__type_sizeof_;
Martin v. Löwis11437992002-04-12 09:54:03 +000022827int
22828main ()
22829{
Martin v. Löwiseba40652007-08-30 20:10:57 +000022830static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Martin v. Löwis11437992002-04-12 09:54:03 +000022831test_array [0] = 0
22832
22833 ;
22834 return 0;
22835}
22836_ACEOF
22837rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000022838if { (ac_try="$ac_compile"
22839case "(($ac_try" in
22840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22841 *) ac_try_echo=$ac_try;;
22842esac
22843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22844 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000022845 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000022846 grep -v '^ *+' conftest.er1 >conftest.err
22847 rm -f conftest.er1
22848 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000022849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000022850 (exit $ac_status); } && {
22851 test -z "$ac_c_werror_flag" ||
22852 test ! -s conftest.err
22853 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000022854 ac_hi=$ac_mid; break
22855else
22856 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000022857sed 's/^/| /' conftest.$ac_ext >&5
22858
Martin v. Löwiseba40652007-08-30 20:10:57 +000022859 ac_lo=`expr $ac_mid + 1`
22860 if test $ac_lo -le $ac_mid; then
22861 ac_lo= ac_hi=
22862 break
22863 fi
22864 ac_mid=`expr 2 '*' $ac_mid + 1`
Martin v. Löwis11437992002-04-12 09:54:03 +000022865fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000022866
22867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000022868 done
22869else
22870 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000022871sed 's/^/| /' conftest.$ac_ext >&5
22872
Martin v. Löwiseba40652007-08-30 20:10:57 +000022873 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000022874/* confdefs.h. */
22875_ACEOF
22876cat confdefs.h >>conftest.$ac_ext
22877cat >>conftest.$ac_ext <<_ACEOF
22878/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000022879#include <wchar.h>
22880
Martin v. Löwiseba40652007-08-30 20:10:57 +000022881 typedef wchar_t ac__type_sizeof_;
Martin v. Löwis11437992002-04-12 09:54:03 +000022882int
22883main ()
22884{
Martin v. Löwiseba40652007-08-30 20:10:57 +000022885static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Martin v. Löwis11437992002-04-12 09:54:03 +000022886test_array [0] = 0
22887
22888 ;
22889 return 0;
22890}
22891_ACEOF
22892rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000022893if { (ac_try="$ac_compile"
22894case "(($ac_try" in
22895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22896 *) ac_try_echo=$ac_try;;
22897esac
22898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22899 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000022900 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000022901 grep -v '^ *+' conftest.er1 >conftest.err
22902 rm -f conftest.er1
22903 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000022904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000022905 (exit $ac_status); } && {
22906 test -z "$ac_c_werror_flag" ||
22907 test ! -s conftest.err
22908 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000022909 ac_hi=-1 ac_mid=-1
22910 while :; do
22911 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000022912/* confdefs.h. */
22913_ACEOF
22914cat confdefs.h >>conftest.$ac_ext
22915cat >>conftest.$ac_ext <<_ACEOF
22916/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000022917#include <wchar.h>
22918
Martin v. Löwiseba40652007-08-30 20:10:57 +000022919 typedef wchar_t ac__type_sizeof_;
Martin v. Löwis11437992002-04-12 09:54:03 +000022920int
22921main ()
22922{
Martin v. Löwiseba40652007-08-30 20:10:57 +000022923static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Martin v. Löwis11437992002-04-12 09:54:03 +000022924test_array [0] = 0
22925
22926 ;
22927 return 0;
22928}
22929_ACEOF
22930rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000022931if { (ac_try="$ac_compile"
22932case "(($ac_try" in
22933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22934 *) ac_try_echo=$ac_try;;
22935esac
22936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22937 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000022938 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000022939 grep -v '^ *+' conftest.er1 >conftest.err
22940 rm -f conftest.er1
22941 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000022942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000022943 (exit $ac_status); } && {
22944 test -z "$ac_c_werror_flag" ||
22945 test ! -s conftest.err
22946 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000022947 ac_lo=$ac_mid; break
22948else
22949 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000022950sed 's/^/| /' conftest.$ac_ext >&5
22951
Martin v. Löwiseba40652007-08-30 20:10:57 +000022952 ac_hi=`expr '(' $ac_mid ')' - 1`
22953 if test $ac_mid -le $ac_hi; then
22954 ac_lo= ac_hi=
22955 break
22956 fi
22957 ac_mid=`expr 2 '*' $ac_mid`
Martin v. Löwis11437992002-04-12 09:54:03 +000022958fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000022959
22960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000022961 done
22962else
22963 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000022964sed 's/^/| /' conftest.$ac_ext >&5
22965
Martin v. Löwiseba40652007-08-30 20:10:57 +000022966 ac_lo= ac_hi=
Martin v. Löwis11437992002-04-12 09:54:03 +000022967fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000022968
22969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000022970fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000022971
22972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000022973# Binary search between lo and hi bounds.
22974while test "x$ac_lo" != "x$ac_hi"; do
22975 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22976 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000022977/* confdefs.h. */
22978_ACEOF
22979cat confdefs.h >>conftest.$ac_ext
22980cat >>conftest.$ac_ext <<_ACEOF
22981/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000022982#include <wchar.h>
22983
Martin v. Löwiseba40652007-08-30 20:10:57 +000022984 typedef wchar_t ac__type_sizeof_;
Martin v. Löwis11437992002-04-12 09:54:03 +000022985int
22986main ()
22987{
Martin v. Löwiseba40652007-08-30 20:10:57 +000022988static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Martin v. Löwis11437992002-04-12 09:54:03 +000022989test_array [0] = 0
22990
22991 ;
22992 return 0;
22993}
22994_ACEOF
22995rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000022996if { (ac_try="$ac_compile"
22997case "(($ac_try" in
22998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22999 *) ac_try_echo=$ac_try;;
23000esac
23001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23002 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000023003 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000023004 grep -v '^ *+' conftest.er1 >conftest.err
23005 rm -f conftest.er1
23006 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000023007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000023008 (exit $ac_status); } && {
23009 test -z "$ac_c_werror_flag" ||
23010 test ! -s conftest.err
23011 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000023012 ac_hi=$ac_mid
23013else
23014 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000023015sed 's/^/| /' conftest.$ac_ext >&5
23016
Martin v. Löwiseba40652007-08-30 20:10:57 +000023017 ac_lo=`expr '(' $ac_mid ')' + 1`
Martin v. Löwis11437992002-04-12 09:54:03 +000023018fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000023019
23020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000023021done
23022case $ac_lo in
23023?*) ac_cv_sizeof_wchar_t=$ac_lo;;
Martin v. Löwiseba40652007-08-30 20:10:57 +000023024'') if test "$ac_cv_type_wchar_t" = yes; then
23025 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
Skip Montanaro6dead952003-09-25 14:50:04 +000023026See \`config.log' for more details." >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000023027echo "$as_me: error: cannot compute sizeof (wchar_t)
Skip Montanaro6dead952003-09-25 14:50:04 +000023028See \`config.log' for more details." >&2;}
Martin v. Löwiseba40652007-08-30 20:10:57 +000023029 { (exit 77); exit 77; }; }
23030 else
23031 ac_cv_sizeof_wchar_t=0
23032 fi ;;
Martin v. Löwis11437992002-04-12 09:54:03 +000023033esac
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000023034else
Martin v. Löwis11437992002-04-12 09:54:03 +000023035 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000023036/* confdefs.h. */
23037_ACEOF
23038cat confdefs.h >>conftest.$ac_ext
23039cat >>conftest.$ac_ext <<_ACEOF
23040/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000023041#include <wchar.h>
23042
Martin v. Löwiseba40652007-08-30 20:10:57 +000023043 typedef wchar_t ac__type_sizeof_;
23044static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23045static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Michael W. Hudson54241132001-12-07 15:38:26 +000023046#include <stdio.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000023047#include <stdlib.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000023048int
23049main ()
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000023050{
Martin v. Löwis11437992002-04-12 09:54:03 +000023051
23052 FILE *f = fopen ("conftest.val", "w");
23053 if (! f)
Martin v. Löwiseba40652007-08-30 20:10:57 +000023054 return 1;
23055 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Martin v. Löwis11437992002-04-12 09:54:03 +000023056 {
Martin v. Löwiseba40652007-08-30 20:10:57 +000023057 long int i = longval ();
23058 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23059 return 1;
Martin v. Löwis11437992002-04-12 09:54:03 +000023060 fprintf (f, "%ld\n", i);
23061 }
23062 else
23063 {
Martin v. Löwiseba40652007-08-30 20:10:57 +000023064 unsigned long int i = ulongval ();
23065 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23066 return 1;
Martin v. Löwis11437992002-04-12 09:54:03 +000023067 fprintf (f, "%lu\n", i);
23068 }
Martin v. Löwiseba40652007-08-30 20:10:57 +000023069 return ferror (f) || fclose (f) != 0;
Martin v. Löwis11437992002-04-12 09:54:03 +000023070
23071 ;
23072 return 0;
Guido van Rossumef2255b2000-03-10 22:30:29 +000023073}
Martin v. Löwis11437992002-04-12 09:54:03 +000023074_ACEOF
23075rm -f conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000023076if { (ac_try="$ac_link"
23077case "(($ac_try" in
23078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23079 *) ac_try_echo=$ac_try;;
23080esac
23081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23082 (eval "$ac_link") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +000023083 ac_status=$?
23084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23085 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Martin v. Löwiseba40652007-08-30 20:10:57 +000023086 { (case "(($ac_try" in
23087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23088 *) ac_try_echo=$ac_try;;
23089esac
23090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23091 (eval "$ac_try") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +000023092 ac_status=$?
23093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23094 (exit $ac_status); }; }; then
23095 ac_cv_sizeof_wchar_t=`cat conftest.val`
Guido van Rossumef2255b2000-03-10 22:30:29 +000023096else
Martin v. Löwis11437992002-04-12 09:54:03 +000023097 echo "$as_me: program exited with status $ac_status" >&5
23098echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000023099sed 's/^/| /' conftest.$ac_ext >&5
23100
Martin v. Löwis11437992002-04-12 09:54:03 +000023101( exit $ac_status )
Martin v. Löwiseba40652007-08-30 20:10:57 +000023102if test "$ac_cv_type_wchar_t" = yes; then
23103 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
Skip Montanaro6dead952003-09-25 14:50:04 +000023104See \`config.log' for more details." >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000023105echo "$as_me: error: cannot compute sizeof (wchar_t)
Skip Montanaro6dead952003-09-25 14:50:04 +000023106See \`config.log' for more details." >&2;}
Martin v. Löwiseba40652007-08-30 20:10:57 +000023107 { (exit 77); exit 77; }; }
23108 else
23109 ac_cv_sizeof_wchar_t=0
23110 fi
Martin v. Löwis11437992002-04-12 09:54:03 +000023111fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000023112rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000023113fi
23114rm -f conftest.val
Guido van Rossumef2255b2000-03-10 22:30:29 +000023115fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000023116{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
23117echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
23118
23119
23120
Martin v. Löwis11437992002-04-12 09:54:03 +000023121cat >>confdefs.h <<_ACEOF
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000023122#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
Martin v. Löwis11437992002-04-12 09:54:03 +000023123_ACEOF
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000023124
Michael W. Hudson54241132001-12-07 15:38:26 +000023125
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000023126fi
23127
Martin v. Löwiseba40652007-08-30 20:10:57 +000023128{ echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
23129echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6; }
Martin v. Löwisfa3bdea2003-09-04 18:50:54 +000023130have_ucs4_tcl=no
23131cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000023132/* confdefs.h. */
23133_ACEOF
23134cat confdefs.h >>conftest.$ac_ext
23135cat >>conftest.$ac_ext <<_ACEOF
23136/* end confdefs.h. */
Martin v. Löwisfa3bdea2003-09-04 18:50:54 +000023137
23138#include <tcl.h>
23139#if TCL_UTF_MAX != 6
23140# error "NOT UCS4_TCL"
23141#endif
23142int
23143main ()
23144{
23145
23146 ;
23147 return 0;
23148}
23149_ACEOF
23150rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000023151if { (ac_try="$ac_compile"
23152case "(($ac_try" in
23153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23154 *) ac_try_echo=$ac_try;;
23155esac
23156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23157 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwisfa3bdea2003-09-04 18:50:54 +000023158 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000023159 grep -v '^ *+' conftest.er1 >conftest.err
23160 rm -f conftest.er1
23161 cat conftest.err >&5
Martin v. Löwisfa3bdea2003-09-04 18:50:54 +000023162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000023163 (exit $ac_status); } && {
23164 test -z "$ac_c_werror_flag" ||
23165 test ! -s conftest.err
23166 } && test -s conftest.$ac_objext; then
Martin v. Löwisfa3bdea2003-09-04 18:50:54 +000023167
23168
23169cat >>confdefs.h <<\_ACEOF
23170#define HAVE_UCS4_TCL 1
23171_ACEOF
23172
23173 have_ucs4_tcl=yes
23174
23175else
23176 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000023177sed 's/^/| /' conftest.$ac_ext >&5
23178
Martin v. Löwiseba40652007-08-30 20:10:57 +000023179
Martin v. Löwisfa3bdea2003-09-04 18:50:54 +000023180fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000023181
23182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23183{ echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
23184echo "${ECHO_T}$have_ucs4_tcl" >&6; }
Martin v. Löwisfa3bdea2003-09-04 18:50:54 +000023185
Skip Montanaro6dead952003-09-25 14:50:04 +000023186# check whether wchar_t is signed or not
Marc-André Lemburgd7160f82003-09-22 11:14:40 +000023187if test "$wchar_h" = yes
23188then
23189 # check whether wchar_t is signed or not
Martin v. Löwiseba40652007-08-30 20:10:57 +000023190 { echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
23191echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6; }
Marc-André Lemburgd7160f82003-09-22 11:14:40 +000023192 if test "${ac_cv_wchar_t_signed+set}" = set; then
23193 echo $ECHO_N "(cached) $ECHO_C" >&6
23194else
23195
23196 if test "$cross_compiling" = yes; then
23197 ac_cv_wchar_t_signed=yes
23198else
23199 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000023200/* confdefs.h. */
23201_ACEOF
23202cat confdefs.h >>conftest.$ac_ext
23203cat >>conftest.$ac_ext <<_ACEOF
23204/* end confdefs.h. */
Marc-André Lemburgd7160f82003-09-22 11:14:40 +000023205
23206 #include <wchar.h>
23207 int main()
23208 {
Martin v. Löwis44fe0e42006-04-11 07:15:30 +000023209 /* Success: exit code 0 */
23210 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
Marc-André Lemburgd7160f82003-09-22 11:14:40 +000023211 }
23212
23213_ACEOF
23214rm -f conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000023215if { (ac_try="$ac_link"
23216case "(($ac_try" in
23217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23218 *) ac_try_echo=$ac_try;;
23219esac
23220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23221 (eval "$ac_link") 2>&5
Marc-André Lemburgd7160f82003-09-22 11:14:40 +000023222 ac_status=$?
23223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23224 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Martin v. Löwiseba40652007-08-30 20:10:57 +000023225 { (case "(($ac_try" in
23226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23227 *) ac_try_echo=$ac_try;;
23228esac
23229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23230 (eval "$ac_try") 2>&5
Marc-André Lemburgd7160f82003-09-22 11:14:40 +000023231 ac_status=$?
23232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23233 (exit $ac_status); }; }; then
23234 ac_cv_wchar_t_signed=yes
23235else
23236 echo "$as_me: program exited with status $ac_status" >&5
23237echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000023238sed 's/^/| /' conftest.$ac_ext >&5
23239
Marc-André Lemburgd7160f82003-09-22 11:14:40 +000023240( exit $ac_status )
23241ac_cv_wchar_t_signed=no
23242fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000023243rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Marc-André Lemburgd7160f82003-09-22 11:14:40 +000023244fi
23245
Martin v. Löwiseba40652007-08-30 20:10:57 +000023246
Marc-André Lemburgd7160f82003-09-22 11:14:40 +000023247fi
23248
Martin v. Löwiseba40652007-08-30 20:10:57 +000023249 { echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
23250echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6; }
23251fi
23252
23253{ echo "$as_me:$LINENO: checking what type to use for unicode" >&5
23254echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6; }
23255# Check whether --enable-unicode was given.
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000023256if test "${enable_unicode+set}" = set; then
Martin v. Löwiseba40652007-08-30 20:10:57 +000023257 enableval=$enable_unicode;
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000023258else
23259 enable_unicode=yes
Martin v. Löwiseba40652007-08-30 20:10:57 +000023260fi
23261
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000023262
23263if test $enable_unicode = yes
23264then
Martin v. Löwisfd917792001-06-27 20:22:04 +000023265 # Without any arguments, Py_UNICODE defaults to two-byte mode
Martin v. Löwisfa3bdea2003-09-04 18:50:54 +000023266 case "$have_ucs4_tcl" in
23267 yes) enable_unicode="ucs4"
23268 ;;
23269 *) enable_unicode="ucs2"
23270 ;;
23271 esac
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000023272fi
23273
Martin v. Löwis0036cba2002-04-12 09:58:45 +000023274
23275
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000023276case "$enable_unicode" in
23277ucs2) unicode_size="2"
Martin v. Löwis11437992002-04-12 09:54:03 +000023278 cat >>confdefs.h <<\_ACEOF
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000023279#define Py_UNICODE_SIZE 2
Martin v. Löwis11437992002-04-12 09:54:03 +000023280_ACEOF
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000023281
23282 ;;
23283ucs4) unicode_size="4"
Martin v. Löwis11437992002-04-12 09:54:03 +000023284 cat >>confdefs.h <<\_ACEOF
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000023285#define Py_UNICODE_SIZE 4
Martin v. Löwis11437992002-04-12 09:54:03 +000023286_ACEOF
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000023287
23288 ;;
23289esac
23290
Michael W. Hudson54241132001-12-07 15:38:26 +000023291
Martin v. Löwis11437992002-04-12 09:54:03 +000023292
23293
Martin v. Löwis0036cba2002-04-12 09:58:45 +000023294
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000023295if test "$enable_unicode" = "no"
23296then
Martin v. Löwis339d0f72001-08-17 18:39:25 +000023297 UNICODE_OBJS=""
Martin v. Löwiseba40652007-08-30 20:10:57 +000023298 { echo "$as_me:$LINENO: result: not used" >&5
23299echo "${ECHO_T}not used" >&6; }
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000023300else
Martin v. Löwis339d0f72001-08-17 18:39:25 +000023301 UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o"
Martin v. Löwis11437992002-04-12 09:54:03 +000023302
23303cat >>confdefs.h <<\_ACEOF
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000023304#define Py_USING_UNICODE 1
Martin v. Löwis11437992002-04-12 09:54:03 +000023305_ACEOF
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000023306
Marc-André Lemburgd7160f82003-09-22 11:14:40 +000023307
23308 # wchar_t is only usable if it maps to an unsigned type
23309 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
Matthias Klose7dbeed72004-12-24 08:22:17 +000023310 -a "$ac_cv_wchar_t_signed" = "no"
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000023311 then
23312 PY_UNICODE_TYPE="wchar_t"
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000023313
Martin v. Löwis11437992002-04-12 09:54:03 +000023314cat >>confdefs.h <<\_ACEOF
23315#define HAVE_USABLE_WCHAR_T 1
23316_ACEOF
23317
23318 cat >>confdefs.h <<\_ACEOF
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000023319#define PY_UNICODE_TYPE wchar_t
Martin v. Löwis11437992002-04-12 09:54:03 +000023320_ACEOF
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000023321
23322 elif test "$ac_cv_sizeof_short" = "$unicode_size"
23323 then
23324 PY_UNICODE_TYPE="unsigned short"
Martin v. Löwis11437992002-04-12 09:54:03 +000023325 cat >>confdefs.h <<\_ACEOF
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000023326#define PY_UNICODE_TYPE unsigned short
Martin v. Löwis11437992002-04-12 09:54:03 +000023327_ACEOF
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000023328
23329 elif test "$ac_cv_sizeof_long" = "$unicode_size"
23330 then
23331 PY_UNICODE_TYPE="unsigned long"
Martin v. Löwis11437992002-04-12 09:54:03 +000023332 cat >>confdefs.h <<\_ACEOF
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000023333#define PY_UNICODE_TYPE unsigned long
Martin v. Löwis11437992002-04-12 09:54:03 +000023334_ACEOF
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000023335
23336 else
23337 PY_UNICODE_TYPE="no type found"
23338 fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000023339 { echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
23340echo "${ECHO_T}$PY_UNICODE_TYPE" >&6; }
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000023341fi
Guido van Rossumef2255b2000-03-10 22:30:29 +000023342
23343# check for endianness
Martin v. Löwiseba40652007-08-30 20:10:57 +000023344{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
23345echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000023346if test "${ac_cv_c_bigendian+set}" = set; then
23347 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossumef2255b2000-03-10 22:30:29 +000023348else
Martin v. Löwis11437992002-04-12 09:54:03 +000023349 # See if sys/param.h defines the BYTE_ORDER macro.
23350cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000023351/* confdefs.h. */
23352_ACEOF
23353cat confdefs.h >>conftest.$ac_ext
23354cat >>conftest.$ac_ext <<_ACEOF
23355/* end confdefs.h. */
Guido van Rossumef2255b2000-03-10 22:30:29 +000023356#include <sys/types.h>
23357#include <sys/param.h>
Guido van Rossumef2255b2000-03-10 22:30:29 +000023358
Martin v. Löwis11437992002-04-12 09:54:03 +000023359int
23360main ()
23361{
Martin v. Löwiseba40652007-08-30 20:10:57 +000023362#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
23363 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
Guido van Rossumef2255b2000-03-10 22:30:29 +000023364 bogus endian macros
23365#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000023366
23367 ;
23368 return 0;
23369}
23370_ACEOF
23371rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000023372if { (ac_try="$ac_compile"
23373case "(($ac_try" in
23374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23375 *) ac_try_echo=$ac_try;;
23376esac
23377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23378 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000023379 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000023380 grep -v '^ *+' conftest.er1 >conftest.err
23381 rm -f conftest.er1
23382 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000023383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000023384 (exit $ac_status); } && {
23385 test -z "$ac_c_werror_flag" ||
23386 test ! -s conftest.err
23387 } && test -s conftest.$ac_objext; then
Guido van Rossumef2255b2000-03-10 22:30:29 +000023388 # It does; now see whether it defined to BIG_ENDIAN or not.
Martin v. Löwis11437992002-04-12 09:54:03 +000023389cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000023390/* confdefs.h. */
23391_ACEOF
23392cat confdefs.h >>conftest.$ac_ext
23393cat >>conftest.$ac_ext <<_ACEOF
23394/* end confdefs.h. */
Guido van Rossumef2255b2000-03-10 22:30:29 +000023395#include <sys/types.h>
23396#include <sys/param.h>
Guido van Rossumef2255b2000-03-10 22:30:29 +000023397
Martin v. Löwis11437992002-04-12 09:54:03 +000023398int
23399main ()
23400{
Guido van Rossumef2255b2000-03-10 22:30:29 +000023401#if BYTE_ORDER != BIG_ENDIAN
23402 not big endian
23403#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000023404
23405 ;
23406 return 0;
23407}
23408_ACEOF
23409rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000023410if { (ac_try="$ac_compile"
23411case "(($ac_try" in
23412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23413 *) ac_try_echo=$ac_try;;
23414esac
23415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23416 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000023417 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000023418 grep -v '^ *+' conftest.er1 >conftest.err
23419 rm -f conftest.er1
23420 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000023421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000023422 (exit $ac_status); } && {
23423 test -z "$ac_c_werror_flag" ||
23424 test ! -s conftest.err
23425 } && test -s conftest.$ac_objext; then
Guido van Rossumef2255b2000-03-10 22:30:29 +000023426 ac_cv_c_bigendian=yes
23427else
Martin v. Löwis11437992002-04-12 09:54:03 +000023428 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000023429sed 's/^/| /' conftest.$ac_ext >&5
23430
Martin v. Löwiseba40652007-08-30 20:10:57 +000023431 ac_cv_c_bigendian=no
Guido van Rossumef2255b2000-03-10 22:30:29 +000023432fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000023433
23434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Guido van Rossumef2255b2000-03-10 22:30:29 +000023435else
Martin v. Löwis11437992002-04-12 09:54:03 +000023436 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000023437sed 's/^/| /' conftest.$ac_ext >&5
23438
Martin v. Löwiseba40652007-08-30 20:10:57 +000023439 # It does not; compile a test program.
Guido van Rossumef2255b2000-03-10 22:30:29 +000023440if test "$cross_compiling" = yes; then
Skip Montanaro6dead952003-09-25 14:50:04 +000023441 # try to guess the endianness by grepping values into an object file
Martin v. Löwis11437992002-04-12 09:54:03 +000023442 ac_cv_c_bigendian=unknown
23443 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000023444/* confdefs.h. */
23445_ACEOF
23446cat confdefs.h >>conftest.$ac_ext
23447cat >>conftest.$ac_ext <<_ACEOF
23448/* end confdefs.h. */
Martin v. Löwiseba40652007-08-30 20:10:57 +000023449short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23450short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
Martin v. Löwis11437992002-04-12 09:54:03 +000023451void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
Martin v. Löwiseba40652007-08-30 20:10:57 +000023452short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23453short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
Martin v. Löwis11437992002-04-12 09:54:03 +000023454void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
Martin v. Löwis11437992002-04-12 09:54:03 +000023455int
23456main ()
23457{
23458 _ascii (); _ebcdic ();
23459 ;
23460 return 0;
23461}
23462_ACEOF
23463rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000023464if { (ac_try="$ac_compile"
23465case "(($ac_try" in
23466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23467 *) ac_try_echo=$ac_try;;
23468esac
23469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23470 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000023471 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000023472 grep -v '^ *+' conftest.er1 >conftest.err
23473 rm -f conftest.er1
23474 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000023475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000023476 (exit $ac_status); } && {
23477 test -z "$ac_c_werror_flag" ||
23478 test ! -s conftest.err
23479 } && test -s conftest.$ac_objext; then
Skip Montanaro6dead952003-09-25 14:50:04 +000023480 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
Martin v. Löwis11437992002-04-12 09:54:03 +000023481 ac_cv_c_bigendian=yes
23482fi
Skip Montanaro6dead952003-09-25 14:50:04 +000023483if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
Martin v. Löwis11437992002-04-12 09:54:03 +000023484 if test "$ac_cv_c_bigendian" = unknown; then
23485 ac_cv_c_bigendian=no
23486 else
23487 # finding both strings is unlikely to happen, but who knows?
23488 ac_cv_c_bigendian=unknown
23489 fi
23490fi
23491else
23492 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000023493sed 's/^/| /' conftest.$ac_ext >&5
23494
Martin v. Löwiseba40652007-08-30 20:10:57 +000023495
Martin v. Löwis11437992002-04-12 09:54:03 +000023496fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000023497
23498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000023499else
23500 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000023501/* confdefs.h. */
23502_ACEOF
23503cat confdefs.h >>conftest.$ac_ext
23504cat >>conftest.$ac_ext <<_ACEOF
23505/* end confdefs.h. */
Martin v. Löwiseba40652007-08-30 20:10:57 +000023506$ac_includes_default
Martin v. Löwis11437992002-04-12 09:54:03 +000023507int
23508main ()
23509{
Martin v. Löwiseba40652007-08-30 20:10:57 +000023510
Guido van Rossumef2255b2000-03-10 22:30:29 +000023511 /* Are we little or big endian? From Harbison&Steele. */
23512 union
23513 {
Martin v. Löwiseba40652007-08-30 20:10:57 +000023514 long int l;
23515 char c[sizeof (long int)];
Guido van Rossumef2255b2000-03-10 22:30:29 +000023516 } u;
23517 u.l = 1;
Martin v. Löwiseba40652007-08-30 20:10:57 +000023518 return u.c[sizeof (long int) - 1] == 1;
23519
23520 ;
23521 return 0;
Guido van Rossumef2255b2000-03-10 22:30:29 +000023522}
Martin v. Löwis11437992002-04-12 09:54:03 +000023523_ACEOF
23524rm -f conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000023525if { (ac_try="$ac_link"
23526case "(($ac_try" in
23527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23528 *) ac_try_echo=$ac_try;;
23529esac
23530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23531 (eval "$ac_link") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +000023532 ac_status=$?
23533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23534 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Martin v. Löwiseba40652007-08-30 20:10:57 +000023535 { (case "(($ac_try" in
23536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23537 *) ac_try_echo=$ac_try;;
23538esac
23539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23540 (eval "$ac_try") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +000023541 ac_status=$?
23542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23543 (exit $ac_status); }; }; then
Guido van Rossumef2255b2000-03-10 22:30:29 +000023544 ac_cv_c_bigendian=no
23545else
Martin v. Löwis11437992002-04-12 09:54:03 +000023546 echo "$as_me: program exited with status $ac_status" >&5
23547echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000023548sed 's/^/| /' conftest.$ac_ext >&5
23549
Martin v. Löwis11437992002-04-12 09:54:03 +000023550( exit $ac_status )
23551ac_cv_c_bigendian=yes
Guido van Rossumef2255b2000-03-10 22:30:29 +000023552fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000023553rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Guido van Rossumef2255b2000-03-10 22:30:29 +000023554fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000023555
23556
Martin v. Löwis11437992002-04-12 09:54:03 +000023557fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000023558
23559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000023560fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000023561{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
23562echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000023563case $ac_cv_c_bigendian in
23564 yes)
Jack Jansendd19cf82001-12-06 22:36:17 +000023565
Martin v. Löwis11437992002-04-12 09:54:03 +000023566cat >>confdefs.h <<\_ACEOF
Guido van Rossumef2255b2000-03-10 22:30:29 +000023567#define WORDS_BIGENDIAN 1
Martin v. Löwis11437992002-04-12 09:54:03 +000023568_ACEOF
23569 ;;
23570 no)
23571 ;;
23572 *)
Skip Montanaro6dead952003-09-25 14:50:04 +000023573 { { echo "$as_me:$LINENO: error: unknown endianness
Martin v. Löwis11437992002-04-12 09:54:03 +000023574presetting ac_cv_c_bigendian=no (or yes) will help" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000023575echo "$as_me: error: unknown endianness
Martin v. Löwis11437992002-04-12 09:54:03 +000023576presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
23577 { (exit 1); exit 1; }; } ;;
23578esac
Guido van Rossumef2255b2000-03-10 22:30:29 +000023579
Michael W. Hudson54241132001-12-07 15:38:26 +000023580
Vladimir Marangozov676aa882000-07-12 03:02:43 +000023581# Check whether right shifting a negative integer extends the sign bit
23582# or fills with zeros (like the Cray J90, according to Tim Peters).
Martin v. Löwiseba40652007-08-30 20:10:57 +000023583{ echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
23584echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000023585if test "${ac_cv_rshift_extends_sign+set}" = set; then
23586 echo $ECHO_N "(cached) $ECHO_C" >&6
Vladimir Marangozova6180282000-07-12 05:05:06 +000023587else
Martin v. Löwis11437992002-04-12 09:54:03 +000023588
Vladimir Marangozov676aa882000-07-12 03:02:43 +000023589if test "$cross_compiling" = yes; then
Guido van Rossum3065c942001-09-17 04:03:14 +000023590 ac_cv_rshift_extends_sign=yes
Vladimir Marangozov676aa882000-07-12 03:02:43 +000023591else
Martin v. Löwis11437992002-04-12 09:54:03 +000023592 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000023593/* confdefs.h. */
23594_ACEOF
23595cat confdefs.h >>conftest.$ac_ext
23596cat >>conftest.$ac_ext <<_ACEOF
23597/* end confdefs.h. */
Vladimir Marangozov676aa882000-07-12 03:02:43 +000023598
23599int main()
23600{
Vladimir Marangozova6180282000-07-12 05:05:06 +000023601 exit(((-1)>>3 == -1) ? 0 : 1);
Vladimir Marangozov676aa882000-07-12 03:02:43 +000023602}
23603
Martin v. Löwis11437992002-04-12 09:54:03 +000023604_ACEOF
23605rm -f conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000023606if { (ac_try="$ac_link"
23607case "(($ac_try" in
23608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23609 *) ac_try_echo=$ac_try;;
23610esac
23611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23612 (eval "$ac_link") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +000023613 ac_status=$?
23614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23615 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Martin v. Löwiseba40652007-08-30 20:10:57 +000023616 { (case "(($ac_try" in
23617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23618 *) ac_try_echo=$ac_try;;
23619esac
23620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23621 (eval "$ac_try") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +000023622 ac_status=$?
23623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23624 (exit $ac_status); }; }; then
Vladimir Marangozova6180282000-07-12 05:05:06 +000023625 ac_cv_rshift_extends_sign=yes
23626else
Martin v. Löwis11437992002-04-12 09:54:03 +000023627 echo "$as_me: program exited with status $ac_status" >&5
23628echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000023629sed 's/^/| /' conftest.$ac_ext >&5
23630
Martin v. Löwis11437992002-04-12 09:54:03 +000023631( exit $ac_status )
23632ac_cv_rshift_extends_sign=no
Vladimir Marangozova6180282000-07-12 05:05:06 +000023633fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000023634rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Vladimir Marangozova6180282000-07-12 05:05:06 +000023635fi
23636
Martin v. Löwiseba40652007-08-30 20:10:57 +000023637
23638fi
23639
23640{ echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
23641echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6; }
Vladimir Marangozova6180282000-07-12 05:05:06 +000023642if test "$ac_cv_rshift_extends_sign" = no
Vladimir Marangozov676aa882000-07-12 03:02:43 +000023643then
Martin v. Löwis11437992002-04-12 09:54:03 +000023644
23645cat >>confdefs.h <<\_ACEOF
Vladimir Marangozov676aa882000-07-12 03:02:43 +000023646#define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
Martin v. Löwis11437992002-04-12 09:54:03 +000023647_ACEOF
Vladimir Marangozov676aa882000-07-12 03:02:43 +000023648
Vladimir Marangozov676aa882000-07-12 03:02:43 +000023649fi
23650
Guido van Rossumcadfaec2001-01-05 14:45:49 +000023651# check for getc_unlocked and related locking functions
Martin v. Löwiseba40652007-08-30 20:10:57 +000023652{ echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
23653echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000023654if test "${ac_cv_have_getc_unlocked+set}" = set; then
23655 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossumcadfaec2001-01-05 14:45:49 +000023656else
Martin v. Löwis11437992002-04-12 09:54:03 +000023657
23658cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000023659/* confdefs.h. */
23660_ACEOF
23661cat confdefs.h >>conftest.$ac_ext
23662cat >>conftest.$ac_ext <<_ACEOF
23663/* end confdefs.h. */
Guido van Rossumcadfaec2001-01-05 14:45:49 +000023664#include <stdio.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000023665int
23666main ()
23667{
Guido van Rossumcadfaec2001-01-05 14:45:49 +000023668
23669 FILE *f = fopen("/dev/null", "r");
23670 flockfile(f);
23671 getc_unlocked(f);
23672 funlockfile(f);
23673
Martin v. Löwis11437992002-04-12 09:54:03 +000023674 ;
23675 return 0;
23676}
23677_ACEOF
23678rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000023679if { (ac_try="$ac_link"
23680case "(($ac_try" in
23681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23682 *) ac_try_echo=$ac_try;;
23683esac
23684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23685 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000023686 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000023687 grep -v '^ *+' conftest.er1 >conftest.err
23688 rm -f conftest.er1
23689 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000023690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000023691 (exit $ac_status); } && {
23692 test -z "$ac_c_werror_flag" ||
23693 test ! -s conftest.err
23694 } && test -s conftest$ac_exeext &&
23695 $as_test_x conftest$ac_exeext; then
Guido van Rossumcadfaec2001-01-05 14:45:49 +000023696 ac_cv_have_getc_unlocked=yes
23697else
Martin v. Löwis11437992002-04-12 09:54:03 +000023698 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000023699sed 's/^/| /' conftest.$ac_ext >&5
23700
Martin v. Löwiseba40652007-08-30 20:10:57 +000023701 ac_cv_have_getc_unlocked=no
Guido van Rossumcadfaec2001-01-05 14:45:49 +000023702fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000023703
23704rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000023705 conftest$ac_exeext conftest.$ac_ext
Guido van Rossumcadfaec2001-01-05 14:45:49 +000023706fi
23707
Martin v. Löwiseba40652007-08-30 20:10:57 +000023708{ echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
23709echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6; }
Guido van Rossumcadfaec2001-01-05 14:45:49 +000023710if test "$ac_cv_have_getc_unlocked" = yes
23711then
Martin v. Löwis11437992002-04-12 09:54:03 +000023712
23713cat >>confdefs.h <<\_ACEOF
Guido van Rossumcadfaec2001-01-05 14:45:49 +000023714#define HAVE_GETC_UNLOCKED 1
Martin v. Löwis11437992002-04-12 09:54:03 +000023715_ACEOF
Guido van Rossumcadfaec2001-01-05 14:45:49 +000023716
23717fi
Vladimir Marangozov676aa882000-07-12 03:02:43 +000023718
Neal Norwitzfe8e3d92006-01-07 21:07:20 +000023719# check where readline lives
Martin v. Löwis82bca632006-02-10 20:49:30 +000023720# save the value of LIBS so we don't actually link Python with readline
23721LIBS_no_readline=$LIBS
Neal Norwitzfe8e3d92006-01-07 21:07:20 +000023722
Gregory P. Smithcc023f12008-09-07 05:15:58 +000023723# On some systems we need to link readline to a termcap compatible
23724# library. NOTE: Keep the precedence of listed libraries synchronised
23725# with setup.py.
23726py_cv_lib_readline=no
23727{ echo "$as_me:$LINENO: checking how to link readline libs" >&5
23728echo $ECHO_N "checking how to link readline libs... $ECHO_C" >&6; }
23729for py_libtermcap in "" ncursesw ncurses curses termcap; do
23730 if test -z "$py_libtermcap"; then
23731 READLINE_LIBS="-lreadline"
23732 else
23733 READLINE_LIBS="-lreadline -l$py_libtermcap"
23734 fi
23735 LIBS="$READLINE_LIBS $LIBS_no_readline"
23736 cat >conftest.$ac_ext <<_ACEOF
Neal Norwitzfe8e3d92006-01-07 21:07:20 +000023737/* confdefs.h. */
23738_ACEOF
23739cat confdefs.h >>conftest.$ac_ext
23740cat >>conftest.$ac_ext <<_ACEOF
23741/* end confdefs.h. */
23742
Martin v. Löwiseba40652007-08-30 20:10:57 +000023743/* Override any GCC internal prototype to avoid an error.
23744 Use char because int might match the return type of a GCC
23745 builtin and then its argument prototype would still apply. */
Neal Norwitzfe8e3d92006-01-07 21:07:20 +000023746#ifdef __cplusplus
23747extern "C"
23748#endif
Neal Norwitzfe8e3d92006-01-07 21:07:20 +000023749char readline ();
23750int
23751main ()
23752{
Martin v. Löwiseba40652007-08-30 20:10:57 +000023753return readline ();
Neal Norwitzfe8e3d92006-01-07 21:07:20 +000023754 ;
23755 return 0;
23756}
23757_ACEOF
23758rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000023759if { (ac_try="$ac_link"
23760case "(($ac_try" in
23761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23762 *) ac_try_echo=$ac_try;;
23763esac
23764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23765 (eval "$ac_link") 2>conftest.er1
Neal Norwitzfe8e3d92006-01-07 21:07:20 +000023766 ac_status=$?
23767 grep -v '^ *+' conftest.er1 >conftest.err
23768 rm -f conftest.er1
23769 cat conftest.err >&5
23770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000023771 (exit $ac_status); } && {
23772 test -z "$ac_c_werror_flag" ||
23773 test ! -s conftest.err
23774 } && test -s conftest$ac_exeext &&
23775 $as_test_x conftest$ac_exeext; then
Gregory P. Smithcc023f12008-09-07 05:15:58 +000023776 py_cv_lib_readline=yes
Neal Norwitzfe8e3d92006-01-07 21:07:20 +000023777else
23778 echo "$as_me: failed program was:" >&5
23779sed 's/^/| /' conftest.$ac_ext >&5
23780
Gregory P. Smithcc023f12008-09-07 05:15:58 +000023781
Neal Norwitzfe8e3d92006-01-07 21:07:20 +000023782fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000023783
23784rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Neal Norwitzfe8e3d92006-01-07 21:07:20 +000023785 conftest$ac_exeext conftest.$ac_ext
Gregory P. Smithcc023f12008-09-07 05:15:58 +000023786 if test $py_cv_lib_readline = yes; then
23787 break
23788 fi
23789done
23790# Uncomment this line if you want to use READINE_LIBS in Makefile or scripts
23791#AC_SUBST([READLINE_LIBS])
Gregory P. Smithe080cdf2008-09-07 19:19:04 +000023792if test $py_cv_lib_readline = no; then
Gregory P. Smithcc023f12008-09-07 05:15:58 +000023793 { echo "$as_me:$LINENO: result: none" >&5
23794echo "${ECHO_T}none" >&6; }
23795else
23796 { echo "$as_me:$LINENO: result: $READLINE_LIBS" >&5
23797echo "${ECHO_T}$READLINE_LIBS" >&6; }
23798
23799cat >>confdefs.h <<\_ACEOF
Neal Norwitzfe8e3d92006-01-07 21:07:20 +000023800#define HAVE_LIBREADLINE 1
23801_ACEOF
23802
Neal Norwitzfe8e3d92006-01-07 21:07:20 +000023803fi
23804
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000023805# check for readline 2.1
Martin v. Löwiseba40652007-08-30 20:10:57 +000023806{ echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
23807echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6; }
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000023808if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
23809 echo $ECHO_N "(cached) $ECHO_C" >&6
23810else
23811 ac_check_lib_save_LIBS=$LIBS
Gregory P. Smithff7b2d52008-09-03 05:57:48 +000023812LIBS="-lreadline $READLINE_LIBS $LIBS"
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000023813cat >conftest.$ac_ext <<_ACEOF
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000023814/* confdefs.h. */
23815_ACEOF
23816cat confdefs.h >>conftest.$ac_ext
23817cat >>conftest.$ac_ext <<_ACEOF
23818/* end confdefs.h. */
23819
Martin v. Löwiseba40652007-08-30 20:10:57 +000023820/* Override any GCC internal prototype to avoid an error.
23821 Use char because int might match the return type of a GCC
23822 builtin and then its argument prototype would still apply. */
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000023823#ifdef __cplusplus
23824extern "C"
23825#endif
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000023826char rl_callback_handler_install ();
23827int
23828main ()
23829{
Martin v. Löwiseba40652007-08-30 20:10:57 +000023830return rl_callback_handler_install ();
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000023831 ;
23832 return 0;
23833}
23834_ACEOF
23835rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000023836if { (ac_try="$ac_link"
23837case "(($ac_try" in
23838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23839 *) ac_try_echo=$ac_try;;
23840esac
23841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23842 (eval "$ac_link") 2>conftest.er1
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000023843 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000023844 grep -v '^ *+' conftest.er1 >conftest.err
23845 rm -f conftest.er1
23846 cat conftest.err >&5
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000023847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000023848 (exit $ac_status); } && {
23849 test -z "$ac_c_werror_flag" ||
23850 test ! -s conftest.err
23851 } && test -s conftest$ac_exeext &&
23852 $as_test_x conftest$ac_exeext; then
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000023853 ac_cv_lib_readline_rl_callback_handler_install=yes
23854else
23855 echo "$as_me: failed program was:" >&5
23856sed 's/^/| /' conftest.$ac_ext >&5
23857
Martin v. Löwiseba40652007-08-30 20:10:57 +000023858 ac_cv_lib_readline_rl_callback_handler_install=no
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000023859fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000023860
23861rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000023862 conftest$ac_exeext conftest.$ac_ext
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000023863LIBS=$ac_check_lib_save_LIBS
23864fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000023865{ echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
23866echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000023867if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
23868
23869cat >>confdefs.h <<\_ACEOF
23870#define HAVE_RL_CALLBACK 1
23871_ACEOF
23872
23873fi
23874
23875
Guido van Rossumfaf5e4d2002-12-30 16:25:41 +000023876# check for readline 2.2
23877cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000023878/* confdefs.h. */
23879_ACEOF
23880cat confdefs.h >>conftest.$ac_ext
23881cat >>conftest.$ac_ext <<_ACEOF
23882/* end confdefs.h. */
Guido van Rossumfaf5e4d2002-12-30 16:25:41 +000023883#include <readline/readline.h>
23884_ACEOF
Martin v. Löwiseba40652007-08-30 20:10:57 +000023885if { (ac_try="$ac_cpp conftest.$ac_ext"
23886case "(($ac_try" in
23887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23888 *) ac_try_echo=$ac_try;;
23889esac
23890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23891 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Guido van Rossumfaf5e4d2002-12-30 16:25:41 +000023892 ac_status=$?
Skip Montanaro6dead952003-09-25 14:50:04 +000023893 grep -v '^ *+' conftest.er1 >conftest.err
Guido van Rossumfaf5e4d2002-12-30 16:25:41 +000023894 rm -f conftest.er1
23895 cat conftest.err >&5
23896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000023897 (exit $ac_status); } >/dev/null && {
23898 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23899 test ! -s conftest.err
23900 }; then
Guido van Rossumfaf5e4d2002-12-30 16:25:41 +000023901 have_readline=yes
23902else
23903 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000023904sed 's/^/| /' conftest.$ac_ext >&5
23905
Guido van Rossumfaf5e4d2002-12-30 16:25:41 +000023906 have_readline=no
23907fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000023908
Guido van Rossumfaf5e4d2002-12-30 16:25:41 +000023909rm -f conftest.err conftest.$ac_ext
23910if test $have_readline = yes
23911then
23912 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000023913/* confdefs.h. */
23914_ACEOF
23915cat confdefs.h >>conftest.$ac_ext
23916cat >>conftest.$ac_ext <<_ACEOF
23917/* end confdefs.h. */
Guido van Rossumfaf5e4d2002-12-30 16:25:41 +000023918#include <readline/readline.h>
23919
23920_ACEOF
23921if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Skip Montanaro6dead952003-09-25 14:50:04 +000023922 $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then
Guido van Rossumfaf5e4d2002-12-30 16:25:41 +000023923
23924cat >>confdefs.h <<\_ACEOF
23925#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
23926_ACEOF
23927
23928fi
23929rm -f conftest*
23930
23931fi
23932
Martin v. Löwis0daad592001-09-30 21:09:59 +000023933# check for readline 4.0
Martin v. Löwiseba40652007-08-30 20:10:57 +000023934{ echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
23935echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000023936if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
23937 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossum353ae582001-07-10 16:45:32 +000023938else
Martin v. Löwis11437992002-04-12 09:54:03 +000023939 ac_check_lib_save_LIBS=$LIBS
Gregory P. Smithff7b2d52008-09-03 05:57:48 +000023940LIBS="-lreadline $READLINE_LIBS $LIBS"
Martin v. Löwis11437992002-04-12 09:54:03 +000023941cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000023942/* confdefs.h. */
23943_ACEOF
23944cat confdefs.h >>conftest.$ac_ext
23945cat >>conftest.$ac_ext <<_ACEOF
23946/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000023947
Martin v. Löwiseba40652007-08-30 20:10:57 +000023948/* Override any GCC internal prototype to avoid an error.
23949 Use char because int might match the return type of a GCC
23950 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +000023951#ifdef __cplusplus
23952extern "C"
23953#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000023954char rl_pre_input_hook ();
Martin v. Löwis11437992002-04-12 09:54:03 +000023955int
23956main ()
23957{
Martin v. Löwiseba40652007-08-30 20:10:57 +000023958return rl_pre_input_hook ();
Martin v. Löwis11437992002-04-12 09:54:03 +000023959 ;
23960 return 0;
23961}
23962_ACEOF
23963rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000023964if { (ac_try="$ac_link"
23965case "(($ac_try" in
23966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23967 *) ac_try_echo=$ac_try;;
23968esac
23969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23970 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000023971 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000023972 grep -v '^ *+' conftest.er1 >conftest.err
23973 rm -f conftest.er1
23974 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000023975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000023976 (exit $ac_status); } && {
23977 test -z "$ac_c_werror_flag" ||
23978 test ! -s conftest.err
23979 } && test -s conftest$ac_exeext &&
23980 $as_test_x conftest$ac_exeext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000023981 ac_cv_lib_readline_rl_pre_input_hook=yes
Martin v. Löwis0daad592001-09-30 21:09:59 +000023982else
Martin v. Löwis11437992002-04-12 09:54:03 +000023983 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000023984sed 's/^/| /' conftest.$ac_ext >&5
23985
Martin v. Löwiseba40652007-08-30 20:10:57 +000023986 ac_cv_lib_readline_rl_pre_input_hook=no
Martin v. Löwis0daad592001-09-30 21:09:59 +000023987fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000023988
23989rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000023990 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000023991LIBS=$ac_check_lib_save_LIBS
23992fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000023993{ echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
23994echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000023995if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
Michael W. Hudson54241132001-12-07 15:38:26 +000023996
Martin v. Löwis11437992002-04-12 09:54:03 +000023997cat >>confdefs.h <<\_ACEOF
Martin v. Löwis0daad592001-09-30 21:09:59 +000023998#define HAVE_RL_PRE_INPUT_HOOK 1
Martin v. Löwis11437992002-04-12 09:54:03 +000023999_ACEOF
Martin v. Löwis0daad592001-09-30 21:09:59 +000024000
Martin v. Löwis0daad592001-09-30 21:09:59 +000024001fi
24002
Michael W. Hudson54241132001-12-07 15:38:26 +000024003
Martin v. Löwis58bd49f2007-09-04 13:13:14 +000024004# also in 4.0
24005{ echo "$as_me:$LINENO: checking for rl_completion_display_matches_hook in -lreadline" >&5
24006echo $ECHO_N "checking for rl_completion_display_matches_hook in -lreadline... $ECHO_C" >&6; }
24007if test "${ac_cv_lib_readline_rl_completion_display_matches_hook+set}" = set; then
24008 echo $ECHO_N "(cached) $ECHO_C" >&6
24009else
24010 ac_check_lib_save_LIBS=$LIBS
Gregory P. Smithff7b2d52008-09-03 05:57:48 +000024011LIBS="-lreadline $READLINE_LIBS $LIBS"
Martin v. Löwis58bd49f2007-09-04 13:13:14 +000024012cat >conftest.$ac_ext <<_ACEOF
24013/* confdefs.h. */
24014_ACEOF
24015cat confdefs.h >>conftest.$ac_ext
24016cat >>conftest.$ac_ext <<_ACEOF
24017/* end confdefs.h. */
24018
24019/* Override any GCC internal prototype to avoid an error.
24020 Use char because int might match the return type of a GCC
24021 builtin and then its argument prototype would still apply. */
24022#ifdef __cplusplus
24023extern "C"
24024#endif
24025char rl_completion_display_matches_hook ();
24026int
24027main ()
24028{
24029return rl_completion_display_matches_hook ();
24030 ;
24031 return 0;
24032}
24033_ACEOF
24034rm -f conftest.$ac_objext conftest$ac_exeext
24035if { (ac_try="$ac_link"
24036case "(($ac_try" in
24037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24038 *) ac_try_echo=$ac_try;;
24039esac
24040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24041 (eval "$ac_link") 2>conftest.er1
24042 ac_status=$?
24043 grep -v '^ *+' conftest.er1 >conftest.err
24044 rm -f conftest.er1
24045 cat conftest.err >&5
24046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24047 (exit $ac_status); } && {
24048 test -z "$ac_c_werror_flag" ||
24049 test ! -s conftest.err
24050 } && test -s conftest$ac_exeext &&
24051 $as_test_x conftest$ac_exeext; then
24052 ac_cv_lib_readline_rl_completion_display_matches_hook=yes
24053else
24054 echo "$as_me: failed program was:" >&5
24055sed 's/^/| /' conftest.$ac_ext >&5
24056
24057 ac_cv_lib_readline_rl_completion_display_matches_hook=no
24058fi
24059
24060rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24061 conftest$ac_exeext conftest.$ac_ext
24062LIBS=$ac_check_lib_save_LIBS
24063fi
24064{ echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5
24065echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; }
24066if test $ac_cv_lib_readline_rl_completion_display_matches_hook = yes; then
24067
24068cat >>confdefs.h <<\_ACEOF
24069#define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1
24070_ACEOF
24071
24072fi
24073
24074
Martin v. Löwis0daad592001-09-30 21:09:59 +000024075# check for readline 4.2
Martin v. Löwiseba40652007-08-30 20:10:57 +000024076{ echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
24077echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000024078if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
24079 echo $ECHO_N "(cached) $ECHO_C" >&6
Martin v. Löwis0daad592001-09-30 21:09:59 +000024080else
Martin v. Löwis11437992002-04-12 09:54:03 +000024081 ac_check_lib_save_LIBS=$LIBS
Gregory P. Smithff7b2d52008-09-03 05:57:48 +000024082LIBS="-lreadline $READLINE_LIBS $LIBS"
Martin v. Löwis11437992002-04-12 09:54:03 +000024083cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000024084/* confdefs.h. */
24085_ACEOF
24086cat confdefs.h >>conftest.$ac_ext
24087cat >>conftest.$ac_ext <<_ACEOF
24088/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000024089
Martin v. Löwiseba40652007-08-30 20:10:57 +000024090/* Override any GCC internal prototype to avoid an error.
24091 Use char because int might match the return type of a GCC
24092 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +000024093#ifdef __cplusplus
24094extern "C"
24095#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000024096char rl_completion_matches ();
Martin v. Löwis11437992002-04-12 09:54:03 +000024097int
24098main ()
24099{
Martin v. Löwiseba40652007-08-30 20:10:57 +000024100return rl_completion_matches ();
Martin v. Löwis11437992002-04-12 09:54:03 +000024101 ;
24102 return 0;
24103}
24104_ACEOF
24105rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000024106if { (ac_try="$ac_link"
24107case "(($ac_try" in
24108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24109 *) ac_try_echo=$ac_try;;
24110esac
24111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24112 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000024113 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000024114 grep -v '^ *+' conftest.er1 >conftest.err
24115 rm -f conftest.er1
24116 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000024117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000024118 (exit $ac_status); } && {
24119 test -z "$ac_c_werror_flag" ||
24120 test ! -s conftest.err
24121 } && test -s conftest$ac_exeext &&
24122 $as_test_x conftest$ac_exeext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000024123 ac_cv_lib_readline_rl_completion_matches=yes
Guido van Rossum353ae582001-07-10 16:45:32 +000024124else
Martin v. Löwis11437992002-04-12 09:54:03 +000024125 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000024126sed 's/^/| /' conftest.$ac_ext >&5
24127
Martin v. Löwiseba40652007-08-30 20:10:57 +000024128 ac_cv_lib_readline_rl_completion_matches=no
Guido van Rossum353ae582001-07-10 16:45:32 +000024129fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000024130
24131rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000024132 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000024133LIBS=$ac_check_lib_save_LIBS
24134fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000024135{ echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
24136echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000024137if test $ac_cv_lib_readline_rl_completion_matches = yes; then
Michael W. Hudson54241132001-12-07 15:38:26 +000024138
Martin v. Löwis11437992002-04-12 09:54:03 +000024139cat >>confdefs.h <<\_ACEOF
Guido van Rossum353ae582001-07-10 16:45:32 +000024140#define HAVE_RL_COMPLETION_MATCHES 1
Martin v. Löwis11437992002-04-12 09:54:03 +000024141_ACEOF
Guido van Rossum353ae582001-07-10 16:45:32 +000024142
Guido van Rossum353ae582001-07-10 16:45:32 +000024143fi
24144
Jack Jansendd19cf82001-12-06 22:36:17 +000024145
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000024146# also in readline 4.2
24147cat >conftest.$ac_ext <<_ACEOF
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000024148/* confdefs.h. */
24149_ACEOF
24150cat confdefs.h >>conftest.$ac_ext
24151cat >>conftest.$ac_ext <<_ACEOF
24152/* end confdefs.h. */
24153#include <readline/readline.h>
24154_ACEOF
Martin v. Löwiseba40652007-08-30 20:10:57 +000024155if { (ac_try="$ac_cpp conftest.$ac_ext"
24156case "(($ac_try" in
24157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24158 *) ac_try_echo=$ac_try;;
24159esac
24160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24161 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000024162 ac_status=$?
24163 grep -v '^ *+' conftest.er1 >conftest.err
24164 rm -f conftest.er1
24165 cat conftest.err >&5
24166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000024167 (exit $ac_status); } >/dev/null && {
24168 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24169 test ! -s conftest.err
24170 }; then
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000024171 have_readline=yes
24172else
24173 echo "$as_me: failed program was:" >&5
24174sed 's/^/| /' conftest.$ac_ext >&5
24175
24176 have_readline=no
24177fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000024178
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000024179rm -f conftest.err conftest.$ac_ext
24180if test $have_readline = yes
24181then
24182 cat >conftest.$ac_ext <<_ACEOF
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000024183/* confdefs.h. */
24184_ACEOF
24185cat confdefs.h >>conftest.$ac_ext
24186cat >>conftest.$ac_ext <<_ACEOF
24187/* end confdefs.h. */
24188#include <readline/readline.h>
24189
24190_ACEOF
24191if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24192 $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then
24193
24194cat >>confdefs.h <<\_ACEOF
24195#define HAVE_RL_CATCH_SIGNAL 1
24196_ACEOF
24197
24198fi
24199rm -f conftest*
24200
24201fi
24202
Martin v. Löwis82bca632006-02-10 20:49:30 +000024203# End of readline checks: restore LIBS
24204LIBS=$LIBS_no_readline
24205
Martin v. Löwiseba40652007-08-30 20:10:57 +000024206{ echo "$as_me:$LINENO: checking for broken nice()" >&5
24207echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000024208if test "${ac_cv_broken_nice+set}" = set; then
24209 echo $ECHO_N "(cached) $ECHO_C" >&6
Michael W. Hudson54241132001-12-07 15:38:26 +000024210else
Martin v. Löwis11437992002-04-12 09:54:03 +000024211
Thomas Wouterse38b2f12001-07-11 22:35:31 +000024212if test "$cross_compiling" = yes; then
Guido van Rossum3065c942001-09-17 04:03:14 +000024213 ac_cv_broken_nice=no
Thomas Wouterse38b2f12001-07-11 22:35:31 +000024214else
Martin v. Löwis11437992002-04-12 09:54:03 +000024215 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000024216/* confdefs.h. */
24217_ACEOF
24218cat confdefs.h >>conftest.$ac_ext
24219cat >>conftest.$ac_ext <<_ACEOF
24220/* end confdefs.h. */
Thomas Wouterse38b2f12001-07-11 22:35:31 +000024221
24222int main()
24223{
24224 int val1 = nice(1);
24225 if (val1 != -1 && val1 == nice(2))
24226 exit(0);
24227 exit(1);
24228}
24229
Martin v. Löwis11437992002-04-12 09:54:03 +000024230_ACEOF
24231rm -f conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000024232if { (ac_try="$ac_link"
24233case "(($ac_try" in
24234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24235 *) ac_try_echo=$ac_try;;
24236esac
24237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24238 (eval "$ac_link") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +000024239 ac_status=$?
24240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24241 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Martin v. Löwiseba40652007-08-30 20:10:57 +000024242 { (case "(($ac_try" in
24243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24244 *) ac_try_echo=$ac_try;;
24245esac
24246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24247 (eval "$ac_try") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +000024248 ac_status=$?
24249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24250 (exit $ac_status); }; }; then
Thomas Wouterse38b2f12001-07-11 22:35:31 +000024251 ac_cv_broken_nice=yes
24252else
Martin v. Löwis11437992002-04-12 09:54:03 +000024253 echo "$as_me: program exited with status $ac_status" >&5
24254echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000024255sed 's/^/| /' conftest.$ac_ext >&5
24256
Martin v. Löwis11437992002-04-12 09:54:03 +000024257( exit $ac_status )
24258ac_cv_broken_nice=no
Thomas Wouterse38b2f12001-07-11 22:35:31 +000024259fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000024260rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Thomas Wouterse38b2f12001-07-11 22:35:31 +000024261fi
24262
Martin v. Löwiseba40652007-08-30 20:10:57 +000024263
24264fi
24265
24266{ echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
24267echo "${ECHO_T}$ac_cv_broken_nice" >&6; }
Thomas Wouterse38b2f12001-07-11 22:35:31 +000024268if test "$ac_cv_broken_nice" = yes
24269then
Martin v. Löwis11437992002-04-12 09:54:03 +000024270
24271cat >>confdefs.h <<\_ACEOF
Thomas Wouterse38b2f12001-07-11 22:35:31 +000024272#define HAVE_BROKEN_NICE 1
Martin v. Löwis11437992002-04-12 09:54:03 +000024273_ACEOF
Thomas Wouterse38b2f12001-07-11 22:35:31 +000024274
24275fi
24276
Martin v. Löwiseba40652007-08-30 20:10:57 +000024277{ echo "$as_me:$LINENO: checking for broken poll()" >&5
24278echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6; }
Nicholas Bastine62c5c82004-03-21 23:45:42 +000024279if test "$cross_compiling" = yes; then
24280 ac_cv_broken_poll=no
24281else
24282 cat >conftest.$ac_ext <<_ACEOF
Nicholas Bastine62c5c82004-03-21 23:45:42 +000024283/* confdefs.h. */
24284_ACEOF
24285cat confdefs.h >>conftest.$ac_ext
24286cat >>conftest.$ac_ext <<_ACEOF
24287/* end confdefs.h. */
24288
24289#include <poll.h>
24290
24291int main (void)
24292 {
24293 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
24294
24295 close (42);
24296
24297 int poll_test = poll (&poll_struct, 1, 0);
24298
24299 if (poll_test < 0)
24300 {
24301 exit(0);
24302 }
24303 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
24304 {
24305 exit(0);
24306 }
24307 else
24308 {
24309 exit(1);
24310 }
24311 }
24312
24313_ACEOF
24314rm -f conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000024315if { (ac_try="$ac_link"
24316case "(($ac_try" in
24317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24318 *) ac_try_echo=$ac_try;;
24319esac
24320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24321 (eval "$ac_link") 2>&5
Nicholas Bastine62c5c82004-03-21 23:45:42 +000024322 ac_status=$?
24323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24324 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Martin v. Löwiseba40652007-08-30 20:10:57 +000024325 { (case "(($ac_try" in
24326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24327 *) ac_try_echo=$ac_try;;
24328esac
24329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24330 (eval "$ac_try") 2>&5
Nicholas Bastine62c5c82004-03-21 23:45:42 +000024331 ac_status=$?
24332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24333 (exit $ac_status); }; }; then
24334 ac_cv_broken_poll=yes
24335else
24336 echo "$as_me: program exited with status $ac_status" >&5
24337echo "$as_me: failed program was:" >&5
24338sed 's/^/| /' conftest.$ac_ext >&5
24339
24340( exit $ac_status )
24341ac_cv_broken_poll=no
24342fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000024343rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Nicholas Bastine62c5c82004-03-21 23:45:42 +000024344fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000024345
24346
24347{ echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
24348echo "${ECHO_T}$ac_cv_broken_poll" >&6; }
Nicholas Bastine62c5c82004-03-21 23:45:42 +000024349if test "$ac_cv_broken_poll" = yes
24350then
24351
24352cat >>confdefs.h <<\_ACEOF
24353#define HAVE_BROKEN_POLL 1
24354_ACEOF
24355
24356fi
24357
Brett Cannon43802422005-02-10 20:48:03 +000024358# Before we can test tzset, we need to check if struct tm has a tm_zone
Martin v. Löwis1d459062005-03-14 21:23:33 +000024359# (which is not required by ISO C or UNIX spec) and/or if we support
24360# tzname[]
Martin v. Löwiseba40652007-08-30 20:10:57 +000024361{ echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
24362echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
Brett Cannon43802422005-02-10 20:48:03 +000024363if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
24364 echo $ECHO_N "(cached) $ECHO_C" >&6
24365else
24366 cat >conftest.$ac_ext <<_ACEOF
24367/* confdefs.h. */
24368_ACEOF
24369cat confdefs.h >>conftest.$ac_ext
24370cat >>conftest.$ac_ext <<_ACEOF
24371/* end confdefs.h. */
24372#include <sys/types.h>
24373#include <$ac_cv_struct_tm>
24374
24375
24376int
24377main ()
24378{
24379static struct tm ac_aggr;
24380if (ac_aggr.tm_zone)
24381return 0;
24382 ;
24383 return 0;
24384}
24385_ACEOF
24386rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000024387if { (ac_try="$ac_compile"
24388case "(($ac_try" in
24389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24390 *) ac_try_echo=$ac_try;;
24391esac
24392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24393 (eval "$ac_compile") 2>conftest.er1
Brett Cannon43802422005-02-10 20:48:03 +000024394 ac_status=$?
24395 grep -v '^ *+' conftest.er1 >conftest.err
24396 rm -f conftest.er1
24397 cat conftest.err >&5
24398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000024399 (exit $ac_status); } && {
24400 test -z "$ac_c_werror_flag" ||
24401 test ! -s conftest.err
24402 } && test -s conftest.$ac_objext; then
Brett Cannon43802422005-02-10 20:48:03 +000024403 ac_cv_member_struct_tm_tm_zone=yes
24404else
24405 echo "$as_me: failed program was:" >&5
24406sed 's/^/| /' conftest.$ac_ext >&5
24407
Martin v. Löwiseba40652007-08-30 20:10:57 +000024408 cat >conftest.$ac_ext <<_ACEOF
Brett Cannon43802422005-02-10 20:48:03 +000024409/* confdefs.h. */
24410_ACEOF
24411cat confdefs.h >>conftest.$ac_ext
24412cat >>conftest.$ac_ext <<_ACEOF
24413/* end confdefs.h. */
24414#include <sys/types.h>
24415#include <$ac_cv_struct_tm>
24416
24417
24418int
24419main ()
24420{
24421static struct tm ac_aggr;
24422if (sizeof ac_aggr.tm_zone)
24423return 0;
24424 ;
24425 return 0;
24426}
24427_ACEOF
24428rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000024429if { (ac_try="$ac_compile"
24430case "(($ac_try" in
24431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24432 *) ac_try_echo=$ac_try;;
24433esac
24434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24435 (eval "$ac_compile") 2>conftest.er1
Brett Cannon43802422005-02-10 20:48:03 +000024436 ac_status=$?
24437 grep -v '^ *+' conftest.er1 >conftest.err
24438 rm -f conftest.er1
24439 cat conftest.err >&5
24440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000024441 (exit $ac_status); } && {
24442 test -z "$ac_c_werror_flag" ||
24443 test ! -s conftest.err
24444 } && test -s conftest.$ac_objext; then
Brett Cannon43802422005-02-10 20:48:03 +000024445 ac_cv_member_struct_tm_tm_zone=yes
24446else
24447 echo "$as_me: failed program was:" >&5
24448sed 's/^/| /' conftest.$ac_ext >&5
24449
Martin v. Löwiseba40652007-08-30 20:10:57 +000024450 ac_cv_member_struct_tm_tm_zone=no
Brett Cannon43802422005-02-10 20:48:03 +000024451fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000024452
24453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brett Cannon43802422005-02-10 20:48:03 +000024454fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000024455
24456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brett Cannon43802422005-02-10 20:48:03 +000024457fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000024458{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
24459echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
Brett Cannon43802422005-02-10 20:48:03 +000024460if test $ac_cv_member_struct_tm_tm_zone = yes; then
24461
24462cat >>confdefs.h <<_ACEOF
24463#define HAVE_STRUCT_TM_TM_ZONE 1
24464_ACEOF
24465
24466
24467fi
24468
24469if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
24470
24471cat >>confdefs.h <<\_ACEOF
24472#define HAVE_TM_ZONE 1
24473_ACEOF
24474
24475else
Martin v. Löwiseba40652007-08-30 20:10:57 +000024476 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
24477echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
24478if test "${ac_cv_have_decl_tzname+set}" = set; then
24479 echo $ECHO_N "(cached) $ECHO_C" >&6
24480else
24481 cat >conftest.$ac_ext <<_ACEOF
24482/* confdefs.h. */
24483_ACEOF
24484cat confdefs.h >>conftest.$ac_ext
24485cat >>conftest.$ac_ext <<_ACEOF
24486/* end confdefs.h. */
24487#include <time.h>
24488
24489int
24490main ()
24491{
24492#ifndef tzname
24493 (void) tzname;
24494#endif
24495
24496 ;
24497 return 0;
24498}
24499_ACEOF
24500rm -f conftest.$ac_objext
24501if { (ac_try="$ac_compile"
24502case "(($ac_try" in
24503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24504 *) ac_try_echo=$ac_try;;
24505esac
24506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24507 (eval "$ac_compile") 2>conftest.er1
24508 ac_status=$?
24509 grep -v '^ *+' conftest.er1 >conftest.err
24510 rm -f conftest.er1
24511 cat conftest.err >&5
24512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24513 (exit $ac_status); } && {
24514 test -z "$ac_c_werror_flag" ||
24515 test ! -s conftest.err
24516 } && test -s conftest.$ac_objext; then
24517 ac_cv_have_decl_tzname=yes
24518else
24519 echo "$as_me: failed program was:" >&5
24520sed 's/^/| /' conftest.$ac_ext >&5
24521
24522 ac_cv_have_decl_tzname=no
24523fi
24524
24525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24526fi
24527{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
24528echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
24529if test $ac_cv_have_decl_tzname = yes; then
24530
24531cat >>confdefs.h <<_ACEOF
24532#define HAVE_DECL_TZNAME 1
24533_ACEOF
24534
24535
24536else
24537 cat >>confdefs.h <<_ACEOF
24538#define HAVE_DECL_TZNAME 0
24539_ACEOF
24540
24541
24542fi
24543
24544
24545 { echo "$as_me:$LINENO: checking for tzname" >&5
24546echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
Brett Cannon43802422005-02-10 20:48:03 +000024547if test "${ac_cv_var_tzname+set}" = set; then
24548 echo $ECHO_N "(cached) $ECHO_C" >&6
24549else
24550 cat >conftest.$ac_ext <<_ACEOF
24551/* confdefs.h. */
24552_ACEOF
24553cat confdefs.h >>conftest.$ac_ext
24554cat >>conftest.$ac_ext <<_ACEOF
24555/* end confdefs.h. */
24556#include <time.h>
Martin v. Löwiseba40652007-08-30 20:10:57 +000024557#if !HAVE_DECL_TZNAME
24558extern char *tzname[];
Brett Cannon43802422005-02-10 20:48:03 +000024559#endif
24560
24561int
24562main ()
24563{
Martin v. Löwiseba40652007-08-30 20:10:57 +000024564return tzname[0][0];
Brett Cannon43802422005-02-10 20:48:03 +000024565 ;
24566 return 0;
24567}
24568_ACEOF
24569rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000024570if { (ac_try="$ac_link"
24571case "(($ac_try" in
24572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24573 *) ac_try_echo=$ac_try;;
24574esac
24575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24576 (eval "$ac_link") 2>conftest.er1
Brett Cannon43802422005-02-10 20:48:03 +000024577 ac_status=$?
24578 grep -v '^ *+' conftest.er1 >conftest.err
24579 rm -f conftest.er1
24580 cat conftest.err >&5
24581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000024582 (exit $ac_status); } && {
24583 test -z "$ac_c_werror_flag" ||
24584 test ! -s conftest.err
24585 } && test -s conftest$ac_exeext &&
24586 $as_test_x conftest$ac_exeext; then
Brett Cannon43802422005-02-10 20:48:03 +000024587 ac_cv_var_tzname=yes
24588else
24589 echo "$as_me: failed program was:" >&5
24590sed 's/^/| /' conftest.$ac_ext >&5
24591
Martin v. Löwiseba40652007-08-30 20:10:57 +000024592 ac_cv_var_tzname=no
Brett Cannon43802422005-02-10 20:48:03 +000024593fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000024594
24595rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Brett Cannon43802422005-02-10 20:48:03 +000024596 conftest$ac_exeext conftest.$ac_ext
24597fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000024598{ echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
24599echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
Brett Cannon43802422005-02-10 20:48:03 +000024600 if test $ac_cv_var_tzname = yes; then
24601
24602cat >>confdefs.h <<\_ACEOF
24603#define HAVE_TZNAME 1
24604_ACEOF
24605
24606 fi
24607fi
24608
Nicholas Bastine62c5c82004-03-21 23:45:42 +000024609
Martin v. Löwis1d459062005-03-14 21:23:33 +000024610# check tzset(3) exists and works like we expect it to
Martin v. Löwiseba40652007-08-30 20:10:57 +000024611{ echo "$as_me:$LINENO: checking for working tzset()" >&5
24612echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6; }
Guido van Rossumd11b62e2003-03-14 21:51:36 +000024613if test "${ac_cv_working_tzset+set}" = set; then
24614 echo $ECHO_N "(cached) $ECHO_C" >&6
24615else
24616
24617if test "$cross_compiling" = yes; then
24618 ac_cv_working_tzset=no
24619else
24620 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000024621/* confdefs.h. */
24622_ACEOF
24623cat confdefs.h >>conftest.$ac_ext
24624cat >>conftest.$ac_ext <<_ACEOF
24625/* end confdefs.h. */
Guido van Rossumd11b62e2003-03-14 21:51:36 +000024626
24627#include <stdlib.h>
24628#include <time.h>
Brett Cannon18367812003-09-19 00:59:16 +000024629#include <string.h>
Brett Cannon43802422005-02-10 20:48:03 +000024630
24631#if HAVE_TZNAME
24632extern char *tzname[];
24633#endif
24634
Guido van Rossumd11b62e2003-03-14 21:51:36 +000024635int main()
24636{
Brett Cannon18367812003-09-19 00:59:16 +000024637 /* Note that we need to ensure that not only does tzset(3)
24638 do 'something' with localtime, but it works as documented
24639 in the library reference and as expected by the test suite.
Martin v. Löwis1d459062005-03-14 21:23:33 +000024640 This includes making sure that tzname is set properly if
24641 tm->tm_zone does not exist since it is the alternative way
24642 of getting timezone info.
Brett Cannon18367812003-09-19 00:59:16 +000024643
24644 Red Hat 6.2 doesn't understand the southern hemisphere
Martin v. Löwis1d459062005-03-14 21:23:33 +000024645 after New Year's Day.
Brett Cannon18367812003-09-19 00:59:16 +000024646 */
24647
Martin v. Löwis1d459062005-03-14 21:23:33 +000024648 time_t groundhogday = 1044144000; /* GMT-based */
Brett Cannon18367812003-09-19 00:59:16 +000024649 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
24650
Neal Norwitz7f2588c2003-04-11 15:35:53 +000024651 putenv("TZ=UTC+0");
Guido van Rossumd11b62e2003-03-14 21:51:36 +000024652 tzset();
Brett Cannon18367812003-09-19 00:59:16 +000024653 if (localtime(&groundhogday)->tm_hour != 0)
24654 exit(1);
Brett Cannon43802422005-02-10 20:48:03 +000024655#if HAVE_TZNAME
24656 /* For UTC, tzname[1] is sometimes "", sometimes " " */
24657 if (strcmp(tzname[0], "UTC") ||
24658 (tzname[1][0] != 0 && tzname[1][0] != ' '))
24659 exit(1);
24660#endif
Brett Cannon18367812003-09-19 00:59:16 +000024661
Neal Norwitz7f2588c2003-04-11 15:35:53 +000024662 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
Guido van Rossumd11b62e2003-03-14 21:51:36 +000024663 tzset();
Brett Cannon18367812003-09-19 00:59:16 +000024664 if (localtime(&groundhogday)->tm_hour != 19)
Guido van Rossumd11b62e2003-03-14 21:51:36 +000024665 exit(1);
Brett Cannon43802422005-02-10 20:48:03 +000024666#if HAVE_TZNAME
24667 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
24668 exit(1);
24669#endif
Brett Cannon18367812003-09-19 00:59:16 +000024670
24671 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
24672 tzset();
24673 if (localtime(&groundhogday)->tm_hour != 11)
24674 exit(1);
Brett Cannon43802422005-02-10 20:48:03 +000024675#if HAVE_TZNAME
24676 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
24677 exit(1);
24678#endif
24679
24680#if HAVE_STRUCT_TM_TM_ZONE
Brett Cannon18367812003-09-19 00:59:16 +000024681 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
24682 exit(1);
24683 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
24684 exit(1);
Brett Cannon43802422005-02-10 20:48:03 +000024685#endif
Brett Cannon18367812003-09-19 00:59:16 +000024686
Guido van Rossumd11b62e2003-03-14 21:51:36 +000024687 exit(0);
24688}
24689
24690_ACEOF
24691rm -f conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000024692if { (ac_try="$ac_link"
24693case "(($ac_try" in
24694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24695 *) ac_try_echo=$ac_try;;
24696esac
24697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24698 (eval "$ac_link") 2>&5
Guido van Rossumd11b62e2003-03-14 21:51:36 +000024699 ac_status=$?
24700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24701 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Martin v. Löwiseba40652007-08-30 20:10:57 +000024702 { (case "(($ac_try" in
24703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24704 *) ac_try_echo=$ac_try;;
24705esac
24706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24707 (eval "$ac_try") 2>&5
Guido van Rossumd11b62e2003-03-14 21:51:36 +000024708 ac_status=$?
24709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24710 (exit $ac_status); }; }; then
24711 ac_cv_working_tzset=yes
24712else
24713 echo "$as_me: program exited with status $ac_status" >&5
24714echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000024715sed 's/^/| /' conftest.$ac_ext >&5
24716
Guido van Rossumd11b62e2003-03-14 21:51:36 +000024717( exit $ac_status )
24718ac_cv_working_tzset=no
24719fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000024720rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Guido van Rossumd11b62e2003-03-14 21:51:36 +000024721fi
24722
Martin v. Löwiseba40652007-08-30 20:10:57 +000024723
24724fi
24725
24726{ echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
24727echo "${ECHO_T}$ac_cv_working_tzset" >&6; }
Guido van Rossumd11b62e2003-03-14 21:51:36 +000024728if test "$ac_cv_working_tzset" = yes
24729then
24730
24731cat >>confdefs.h <<\_ACEOF
24732#define HAVE_WORKING_TZSET 1
24733_ACEOF
24734
24735fi
24736
Martin v. Löwis94717ed2002-09-09 14:24:16 +000024737# Look for subsecond timestamps in struct stat
Martin v. Löwiseba40652007-08-30 20:10:57 +000024738{ echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
24739echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6; }
Martin v. Löwis94717ed2002-09-09 14:24:16 +000024740if test "${ac_cv_stat_tv_nsec+set}" = set; then
24741 echo $ECHO_N "(cached) $ECHO_C" >&6
24742else
24743 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000024744/* confdefs.h. */
24745_ACEOF
24746cat confdefs.h >>conftest.$ac_ext
24747cat >>conftest.$ac_ext <<_ACEOF
24748/* end confdefs.h. */
Martin v. Löwis94717ed2002-09-09 14:24:16 +000024749#include <sys/stat.h>
Martin v. Löwis94717ed2002-09-09 14:24:16 +000024750int
24751main ()
24752{
24753
24754struct stat st;
24755st.st_mtim.tv_nsec = 1;
24756
24757 ;
24758 return 0;
24759}
24760_ACEOF
24761rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000024762if { (ac_try="$ac_compile"
24763case "(($ac_try" in
24764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24765 *) ac_try_echo=$ac_try;;
24766esac
24767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24768 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis94717ed2002-09-09 14:24:16 +000024769 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000024770 grep -v '^ *+' conftest.er1 >conftest.err
24771 rm -f conftest.er1
24772 cat conftest.err >&5
Martin v. Löwis94717ed2002-09-09 14:24:16 +000024773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000024774 (exit $ac_status); } && {
24775 test -z "$ac_c_werror_flag" ||
24776 test ! -s conftest.err
24777 } && test -s conftest.$ac_objext; then
Martin v. Löwisa32c9942002-09-09 16:17:47 +000024778 ac_cv_stat_tv_nsec=yes
Martin v. Löwis94717ed2002-09-09 14:24:16 +000024779else
24780 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000024781sed 's/^/| /' conftest.$ac_ext >&5
24782
Martin v. Löwiseba40652007-08-30 20:10:57 +000024783 ac_cv_stat_tv_nsec=no
Martin v. Löwis94717ed2002-09-09 14:24:16 +000024784fi
24785
Martin v. Löwiseba40652007-08-30 20:10:57 +000024786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24787fi
24788
24789{ echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
24790echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6; }
Martin v. Löwis94717ed2002-09-09 14:24:16 +000024791if test "$ac_cv_stat_tv_nsec" = yes
24792then
24793
24794cat >>confdefs.h <<\_ACEOF
24795#define HAVE_STAT_TV_NSEC 1
24796_ACEOF
24797
24798fi
24799
Martin v. Löwisebd9d5b2005-08-09 15:00:59 +000024800# Look for BSD style subsecond timestamps in struct stat
Martin v. Löwiseba40652007-08-30 20:10:57 +000024801{ echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
24802echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6; }
Martin v. Löwisebd9d5b2005-08-09 15:00:59 +000024803if test "${ac_cv_stat_tv_nsec2+set}" = set; then
24804 echo $ECHO_N "(cached) $ECHO_C" >&6
24805else
24806 cat >conftest.$ac_ext <<_ACEOF
24807/* confdefs.h. */
24808_ACEOF
24809cat confdefs.h >>conftest.$ac_ext
24810cat >>conftest.$ac_ext <<_ACEOF
24811/* end confdefs.h. */
24812#include <sys/stat.h>
24813int
24814main ()
24815{
24816
24817struct stat st;
24818st.st_mtimespec.tv_nsec = 1;
24819
24820 ;
24821 return 0;
24822}
24823_ACEOF
24824rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000024825if { (ac_try="$ac_compile"
24826case "(($ac_try" in
24827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24828 *) ac_try_echo=$ac_try;;
24829esac
24830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24831 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwisebd9d5b2005-08-09 15:00:59 +000024832 ac_status=$?
24833 grep -v '^ *+' conftest.er1 >conftest.err
24834 rm -f conftest.er1
24835 cat conftest.err >&5
24836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000024837 (exit $ac_status); } && {
24838 test -z "$ac_c_werror_flag" ||
24839 test ! -s conftest.err
24840 } && test -s conftest.$ac_objext; then
Martin v. Löwisebd9d5b2005-08-09 15:00:59 +000024841 ac_cv_stat_tv_nsec2=yes
24842else
24843 echo "$as_me: failed program was:" >&5
24844sed 's/^/| /' conftest.$ac_ext >&5
24845
Martin v. Löwiseba40652007-08-30 20:10:57 +000024846 ac_cv_stat_tv_nsec2=no
Martin v. Löwisebd9d5b2005-08-09 15:00:59 +000024847fi
24848
Martin v. Löwiseba40652007-08-30 20:10:57 +000024849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24850fi
24851
24852{ echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
24853echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6; }
Martin v. Löwisebd9d5b2005-08-09 15:00:59 +000024854if test "$ac_cv_stat_tv_nsec2" = yes
24855then
24856
24857cat >>confdefs.h <<\_ACEOF
24858#define HAVE_STAT_TV_NSEC2 1
24859_ACEOF
24860
24861fi
24862
Jack Jansen666b1e72001-10-31 12:11:48 +000024863# On HP/UX 11.0, mvwdelch is a block with a return statement
Martin v. Löwiseba40652007-08-30 20:10:57 +000024864{ echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
24865echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000024866if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
24867 echo $ECHO_N "(cached) $ECHO_C" >&6
Jack Jansen666b1e72001-10-31 12:11:48 +000024868else
Martin v. Löwis11437992002-04-12 09:54:03 +000024869 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000024870/* confdefs.h. */
24871_ACEOF
24872cat confdefs.h >>conftest.$ac_ext
24873cat >>conftest.$ac_ext <<_ACEOF
24874/* end confdefs.h. */
Jack Jansen666b1e72001-10-31 12:11:48 +000024875#include <curses.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000024876int
24877main ()
24878{
Jack Jansen666b1e72001-10-31 12:11:48 +000024879
24880 int rtn;
24881 rtn = mvwdelch(0,0,0);
24882
Martin v. Löwis11437992002-04-12 09:54:03 +000024883 ;
24884 return 0;
24885}
24886_ACEOF
24887rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000024888if { (ac_try="$ac_compile"
24889case "(($ac_try" in
24890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24891 *) ac_try_echo=$ac_try;;
24892esac
24893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24894 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000024895 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000024896 grep -v '^ *+' conftest.er1 >conftest.err
24897 rm -f conftest.er1
24898 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000024899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000024900 (exit $ac_status); } && {
24901 test -z "$ac_c_werror_flag" ||
24902 test ! -s conftest.err
24903 } && test -s conftest.$ac_objext; then
Jack Jansen666b1e72001-10-31 12:11:48 +000024904 ac_cv_mvwdelch_is_expression=yes
24905else
Martin v. Löwis11437992002-04-12 09:54:03 +000024906 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000024907sed 's/^/| /' conftest.$ac_ext >&5
24908
Martin v. Löwiseba40652007-08-30 20:10:57 +000024909 ac_cv_mvwdelch_is_expression=no
Jack Jansen666b1e72001-10-31 12:11:48 +000024910fi
24911
Martin v. Löwiseba40652007-08-30 20:10:57 +000024912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24913fi
24914
24915{ echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
24916echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6; }
Jack Jansen666b1e72001-10-31 12:11:48 +000024917
24918if test "$ac_cv_mvwdelch_is_expression" = yes
24919then
Martin v. Löwis11437992002-04-12 09:54:03 +000024920
24921cat >>confdefs.h <<\_ACEOF
Jack Jansen666b1e72001-10-31 12:11:48 +000024922#define MVWDELCH_IS_EXPRESSION 1
Martin v. Löwis11437992002-04-12 09:54:03 +000024923_ACEOF
Jack Jansen666b1e72001-10-31 12:11:48 +000024924
24925fi
24926
Martin v. Löwiseba40652007-08-30 20:10:57 +000024927{ echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
24928echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000024929if test "${ac_cv_window_has_flags+set}" = set; then
24930 echo $ECHO_N "(cached) $ECHO_C" >&6
Jack Jansen666b1e72001-10-31 12:11:48 +000024931else
Martin v. Löwis11437992002-04-12 09:54:03 +000024932 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000024933/* confdefs.h. */
24934_ACEOF
24935cat confdefs.h >>conftest.$ac_ext
24936cat >>conftest.$ac_ext <<_ACEOF
24937/* end confdefs.h. */
Jack Jansen666b1e72001-10-31 12:11:48 +000024938#include <curses.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000024939int
24940main ()
24941{
Jack Jansen666b1e72001-10-31 12:11:48 +000024942
24943 WINDOW *w;
24944 w->_flags = 0;
24945
Martin v. Löwis11437992002-04-12 09:54:03 +000024946 ;
24947 return 0;
24948}
24949_ACEOF
24950rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000024951if { (ac_try="$ac_compile"
24952case "(($ac_try" in
24953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24954 *) ac_try_echo=$ac_try;;
24955esac
24956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24957 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000024958 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000024959 grep -v '^ *+' conftest.er1 >conftest.err
24960 rm -f conftest.er1
24961 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000024962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000024963 (exit $ac_status); } && {
24964 test -z "$ac_c_werror_flag" ||
24965 test ! -s conftest.err
24966 } && test -s conftest.$ac_objext; then
Jack Jansen666b1e72001-10-31 12:11:48 +000024967 ac_cv_window_has_flags=yes
24968else
Martin v. Löwis11437992002-04-12 09:54:03 +000024969 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000024970sed 's/^/| /' conftest.$ac_ext >&5
24971
Martin v. Löwiseba40652007-08-30 20:10:57 +000024972 ac_cv_window_has_flags=no
Jack Jansen666b1e72001-10-31 12:11:48 +000024973fi
24974
Martin v. Löwiseba40652007-08-30 20:10:57 +000024975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24976fi
24977
24978{ echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
24979echo "${ECHO_T}$ac_cv_window_has_flags" >&6; }
Michael W. Hudson54241132001-12-07 15:38:26 +000024980
Jack Jansen666b1e72001-10-31 12:11:48 +000024981
24982if test "$ac_cv_window_has_flags" = yes
24983then
Martin v. Löwis11437992002-04-12 09:54:03 +000024984
24985cat >>confdefs.h <<\_ACEOF
Jack Jansen666b1e72001-10-31 12:11:48 +000024986#define WINDOW_HAS_FLAGS 1
Martin v. Löwis11437992002-04-12 09:54:03 +000024987_ACEOF
Jack Jansen666b1e72001-10-31 12:11:48 +000024988
24989fi
24990
Martin v. Löwiseba40652007-08-30 20:10:57 +000024991{ echo "$as_me:$LINENO: checking for is_term_resized" >&5
24992echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6; }
Walter Dörwald4994d952006-06-19 08:07:50 +000024993cat >conftest.$ac_ext <<_ACEOF
24994/* confdefs.h. */
24995_ACEOF
24996cat confdefs.h >>conftest.$ac_ext
24997cat >>conftest.$ac_ext <<_ACEOF
24998/* end confdefs.h. */
24999#include <curses.h>
25000int
25001main ()
25002{
25003void *x=is_term_resized
25004 ;
25005 return 0;
25006}
25007_ACEOF
25008rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000025009if { (ac_try="$ac_compile"
25010case "(($ac_try" in
25011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25012 *) ac_try_echo=$ac_try;;
25013esac
25014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25015 (eval "$ac_compile") 2>conftest.er1
Walter Dörwald4994d952006-06-19 08:07:50 +000025016 ac_status=$?
25017 grep -v '^ *+' conftest.er1 >conftest.err
25018 rm -f conftest.er1
25019 cat conftest.err >&5
25020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000025021 (exit $ac_status); } && {
25022 test -z "$ac_c_werror_flag" ||
25023 test ! -s conftest.err
25024 } && test -s conftest.$ac_objext; then
Walter Dörwald4994d952006-06-19 08:07:50 +000025025
25026cat >>confdefs.h <<\_ACEOF
25027#define HAVE_CURSES_IS_TERM_RESIZED 1
25028_ACEOF
25029
Martin v. Löwiseba40652007-08-30 20:10:57 +000025030 { echo "$as_me:$LINENO: result: yes" >&5
25031echo "${ECHO_T}yes" >&6; }
Walter Dörwald4994d952006-06-19 08:07:50 +000025032else
25033 echo "$as_me: failed program was:" >&5
25034sed 's/^/| /' conftest.$ac_ext >&5
25035
Martin v. Löwiseba40652007-08-30 20:10:57 +000025036 { echo "$as_me:$LINENO: result: no" >&5
25037echo "${ECHO_T}no" >&6; }
Walter Dörwald4994d952006-06-19 08:07:50 +000025038
25039fi
Walter Dörwald4994d952006-06-19 08:07:50 +000025040
Martin v. Löwiseba40652007-08-30 20:10:57 +000025041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25042
25043{ echo "$as_me:$LINENO: checking for resize_term" >&5
25044echo $ECHO_N "checking for resize_term... $ECHO_C" >&6; }
Walter Dörwald4994d952006-06-19 08:07:50 +000025045cat >conftest.$ac_ext <<_ACEOF
25046/* confdefs.h. */
25047_ACEOF
25048cat confdefs.h >>conftest.$ac_ext
25049cat >>conftest.$ac_ext <<_ACEOF
25050/* end confdefs.h. */
25051#include <curses.h>
25052int
25053main ()
25054{
25055void *x=resize_term
25056 ;
25057 return 0;
25058}
25059_ACEOF
25060rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000025061if { (ac_try="$ac_compile"
25062case "(($ac_try" in
25063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25064 *) ac_try_echo=$ac_try;;
25065esac
25066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25067 (eval "$ac_compile") 2>conftest.er1
Walter Dörwald4994d952006-06-19 08:07:50 +000025068 ac_status=$?
25069 grep -v '^ *+' conftest.er1 >conftest.err
25070 rm -f conftest.er1
25071 cat conftest.err >&5
25072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000025073 (exit $ac_status); } && {
25074 test -z "$ac_c_werror_flag" ||
25075 test ! -s conftest.err
25076 } && test -s conftest.$ac_objext; then
Walter Dörwald4994d952006-06-19 08:07:50 +000025077
25078cat >>confdefs.h <<\_ACEOF
25079#define HAVE_CURSES_RESIZE_TERM 1
25080_ACEOF
25081
Martin v. Löwiseba40652007-08-30 20:10:57 +000025082 { echo "$as_me:$LINENO: result: yes" >&5
25083echo "${ECHO_T}yes" >&6; }
Walter Dörwald4994d952006-06-19 08:07:50 +000025084else
25085 echo "$as_me: failed program was:" >&5
25086sed 's/^/| /' conftest.$ac_ext >&5
25087
Martin v. Löwiseba40652007-08-30 20:10:57 +000025088 { echo "$as_me:$LINENO: result: no" >&5
25089echo "${ECHO_T}no" >&6; }
Walter Dörwald4994d952006-06-19 08:07:50 +000025090
25091fi
Walter Dörwald4994d952006-06-19 08:07:50 +000025092
Martin v. Löwiseba40652007-08-30 20:10:57 +000025093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25094
25095{ echo "$as_me:$LINENO: checking for resizeterm" >&5
25096echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6; }
Walter Dörwald4994d952006-06-19 08:07:50 +000025097cat >conftest.$ac_ext <<_ACEOF
25098/* confdefs.h. */
25099_ACEOF
25100cat confdefs.h >>conftest.$ac_ext
25101cat >>conftest.$ac_ext <<_ACEOF
25102/* end confdefs.h. */
25103#include <curses.h>
25104int
25105main ()
25106{
25107void *x=resizeterm
25108 ;
25109 return 0;
25110}
25111_ACEOF
25112rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000025113if { (ac_try="$ac_compile"
25114case "(($ac_try" in
25115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25116 *) ac_try_echo=$ac_try;;
25117esac
25118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25119 (eval "$ac_compile") 2>conftest.er1
Walter Dörwald4994d952006-06-19 08:07:50 +000025120 ac_status=$?
25121 grep -v '^ *+' conftest.er1 >conftest.err
25122 rm -f conftest.er1
25123 cat conftest.err >&5
25124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000025125 (exit $ac_status); } && {
25126 test -z "$ac_c_werror_flag" ||
25127 test ! -s conftest.err
25128 } && test -s conftest.$ac_objext; then
Walter Dörwald4994d952006-06-19 08:07:50 +000025129
25130cat >>confdefs.h <<\_ACEOF
25131#define HAVE_CURSES_RESIZETERM 1
25132_ACEOF
25133
Martin v. Löwiseba40652007-08-30 20:10:57 +000025134 { echo "$as_me:$LINENO: result: yes" >&5
25135echo "${ECHO_T}yes" >&6; }
Walter Dörwald4994d952006-06-19 08:07:50 +000025136else
25137 echo "$as_me: failed program was:" >&5
25138sed 's/^/| /' conftest.$ac_ext >&5
25139
Martin v. Löwiseba40652007-08-30 20:10:57 +000025140 { echo "$as_me:$LINENO: result: no" >&5
25141echo "${ECHO_T}no" >&6; }
Walter Dörwald4994d952006-06-19 08:07:50 +000025142
25143fi
Walter Dörwald4994d952006-06-19 08:07:50 +000025144
Martin v. Löwiseba40652007-08-30 20:10:57 +000025145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25146
25147{ echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
25148echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6; }
Martin v. Löwisfefbc202006-10-17 18:59:23 +000025149
25150if test -r /dev/ptmx
25151then
Martin v. Löwiseba40652007-08-30 20:10:57 +000025152 { echo "$as_me:$LINENO: result: yes" >&5
25153echo "${ECHO_T}yes" >&6; }
Martin v. Löwis24a880b2002-12-31 12:55:15 +000025154
25155cat >>confdefs.h <<\_ACEOF
25156#define HAVE_DEV_PTMX 1
25157_ACEOF
25158
Martin v. Löwisfefbc202006-10-17 18:59:23 +000025159else
Martin v. Löwiseba40652007-08-30 20:10:57 +000025160 { echo "$as_me:$LINENO: result: no" >&5
25161echo "${ECHO_T}no" >&6; }
Martin v. Löwis24a880b2002-12-31 12:55:15 +000025162fi
25163
Martin v. Löwiseba40652007-08-30 20:10:57 +000025164{ echo "$as_me:$LINENO: checking for /dev/ptc" >&5
25165echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; }
Martin v. Löwisfefbc202006-10-17 18:59:23 +000025166
25167if test -r /dev/ptc
25168then
Martin v. Löwiseba40652007-08-30 20:10:57 +000025169 { echo "$as_me:$LINENO: result: yes" >&5
25170echo "${ECHO_T}yes" >&6; }
Neal Norwitz865400f2003-03-21 01:42:58 +000025171
25172cat >>confdefs.h <<\_ACEOF
25173#define HAVE_DEV_PTC 1
25174_ACEOF
25175
Martin v. Löwisfefbc202006-10-17 18:59:23 +000025176else
Martin v. Löwiseba40652007-08-30 20:10:57 +000025177 { echo "$as_me:$LINENO: result: no" >&5
25178echo "${ECHO_T}no" >&6; }
Neal Norwitz865400f2003-03-21 01:42:58 +000025179fi
25180
Martin v. Löwiseba40652007-08-30 20:10:57 +000025181{ echo "$as_me:$LINENO: checking for %zd printf() format support" >&5
25182echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6; }
Brett Cannon09d12362006-05-11 05:11:33 +000025183if test "$cross_compiling" = yes; then
25184 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25185See \`config.log' for more details." >&5
25186echo "$as_me: error: cannot run test program while cross compiling
25187See \`config.log' for more details." >&2;}
25188 { (exit 1); exit 1; }; }
25189else
25190 cat >conftest.$ac_ext <<_ACEOF
25191/* confdefs.h. */
25192_ACEOF
25193cat confdefs.h >>conftest.$ac_ext
25194cat >>conftest.$ac_ext <<_ACEOF
25195/* end confdefs.h. */
25196#include <stdio.h>
25197#include <stddef.h>
25198#include <string.h>
25199
Christian Heimesdb3d6cb2007-12-16 21:39:43 +000025200#ifdef HAVE_SYS_TYPES_H
25201#include <sys/types.h>
25202#endif
Neal Norwitz4a8fbdb2006-09-22 08:16:26 +000025203
25204#ifdef HAVE_SSIZE_T
25205typedef ssize_t Py_ssize_t;
25206#elif SIZEOF_VOID_P == SIZEOF_LONG
25207typedef long Py_ssize_t;
25208#else
25209typedef int Py_ssize_t;
25210#endif
Brett Cannon09d12362006-05-11 05:11:33 +000025211
Christian Heimesdb3d6cb2007-12-16 21:39:43 +000025212int main()
25213{
25214 char buffer[256];
25215
Brett Cannon09d12362006-05-11 05:11:33 +000025216 if(sprintf(buffer, "%zd", (size_t)123) < 0)
25217 return 1;
25218
Neal Norwitz4a8fbdb2006-09-22 08:16:26 +000025219 if (strcmp(buffer, "123"))
25220 return 1;
25221
25222 if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
25223 return 1;
25224
25225 if (strcmp(buffer, "-123"))
Brett Cannon09d12362006-05-11 05:11:33 +000025226 return 1;
25227
25228 return 0;
25229}
25230_ACEOF
25231rm -f conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000025232if { (ac_try="$ac_link"
25233case "(($ac_try" in
25234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25235 *) ac_try_echo=$ac_try;;
25236esac
25237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25238 (eval "$ac_link") 2>&5
Brett Cannon09d12362006-05-11 05:11:33 +000025239 ac_status=$?
25240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25241 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Martin v. Löwiseba40652007-08-30 20:10:57 +000025242 { (case "(($ac_try" in
25243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25244 *) ac_try_echo=$ac_try;;
25245esac
25246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25247 (eval "$ac_try") 2>&5
Brett Cannon09d12362006-05-11 05:11:33 +000025248 ac_status=$?
25249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25250 (exit $ac_status); }; }; then
Martin v. Löwiseba40652007-08-30 20:10:57 +000025251 { echo "$as_me:$LINENO: result: yes" >&5
25252echo "${ECHO_T}yes" >&6; }
Brett Cannon09d12362006-05-11 05:11:33 +000025253
25254cat >>confdefs.h <<\_ACEOF
25255#define PY_FORMAT_SIZE_T "z"
25256_ACEOF
25257
25258else
25259 echo "$as_me: program exited with status $ac_status" >&5
25260echo "$as_me: failed program was:" >&5
25261sed 's/^/| /' conftest.$ac_ext >&5
25262
25263( exit $ac_status )
Martin v. Löwiseba40652007-08-30 20:10:57 +000025264{ echo "$as_me:$LINENO: result: no" >&5
25265echo "${ECHO_T}no" >&6; }
Brett Cannon09d12362006-05-11 05:11:33 +000025266fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000025267rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Brett Cannon09d12362006-05-11 05:11:33 +000025268fi
25269
Martin v. Löwiseba40652007-08-30 20:10:57 +000025270
25271
25272{ echo "$as_me:$LINENO: checking for socklen_t" >&5
25273echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000025274if test "${ac_cv_type_socklen_t+set}" = set; then
25275 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossum95713eb2000-05-18 20:53:31 +000025276else
Martin v. Löwis11437992002-04-12 09:54:03 +000025277 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000025278/* confdefs.h. */
25279_ACEOF
25280cat confdefs.h >>conftest.$ac_ext
25281cat >>conftest.$ac_ext <<_ACEOF
25282/* end confdefs.h. */
Martin v. Löwis01c04012002-11-11 14:58:44 +000025283
25284#ifdef HAVE_SYS_TYPES_H
25285#include <sys/types.h>
25286#endif
25287#ifdef HAVE_SYS_SOCKET_H
25288#include <sys/socket.h>
25289#endif
25290
25291
Martin v. Löwiseba40652007-08-30 20:10:57 +000025292typedef socklen_t ac__type_new_;
Martin v. Löwis11437992002-04-12 09:54:03 +000025293int
25294main ()
25295{
Martin v. Löwiseba40652007-08-30 20:10:57 +000025296if ((ac__type_new_ *) 0)
Martin v. Löwis11437992002-04-12 09:54:03 +000025297 return 0;
Martin v. Löwiseba40652007-08-30 20:10:57 +000025298if (sizeof (ac__type_new_))
Martin v. Löwis11437992002-04-12 09:54:03 +000025299 return 0;
25300 ;
25301 return 0;
25302}
25303_ACEOF
25304rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000025305if { (ac_try="$ac_compile"
25306case "(($ac_try" in
25307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25308 *) ac_try_echo=$ac_try;;
25309esac
25310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25311 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000025312 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000025313 grep -v '^ *+' conftest.er1 >conftest.err
25314 rm -f conftest.er1
25315 cat conftest.err >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000025316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000025317 (exit $ac_status); } && {
25318 test -z "$ac_c_werror_flag" ||
25319 test ! -s conftest.err
25320 } && test -s conftest.$ac_objext; then
Guido van Rossum8d6e8af2000-10-30 17:45:07 +000025321 ac_cv_type_socklen_t=yes
Guido van Rossum95713eb2000-05-18 20:53:31 +000025322else
Martin v. Löwis11437992002-04-12 09:54:03 +000025323 echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000025324sed 's/^/| /' conftest.$ac_ext >&5
25325
Martin v. Löwiseba40652007-08-30 20:10:57 +000025326 ac_cv_type_socklen_t=no
Guido van Rossum95713eb2000-05-18 20:53:31 +000025327fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000025328
25329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000025330fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000025331{ echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
25332echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000025333if test $ac_cv_type_socklen_t = yes; then
25334 :
25335else
Guido van Rossum95713eb2000-05-18 20:53:31 +000025336
Martin v. Löwis01c04012002-11-11 14:58:44 +000025337cat >>confdefs.h <<\_ACEOF
Guido van Rossum95713eb2000-05-18 20:53:31 +000025338#define socklen_t int
Martin v. Löwis11437992002-04-12 09:54:03 +000025339_ACEOF
Guido van Rossum95713eb2000-05-18 20:53:31 +000025340
25341fi
25342
Michael W. Hudson54241132001-12-07 15:38:26 +000025343
Michael W. Hudson54241132001-12-07 15:38:26 +000025344
25345
Martin v. Löwis06f15bb2001-12-02 13:02:32 +000025346for h in `(cd $srcdir;echo Python/thread_*.h)`
25347do
25348 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
25349done
25350
Michael W. Hudson54241132001-12-07 15:38:26 +000025351
Neal Norwitzd24499d2005-12-18 21:36:39 +000025352SRCDIRS="Parser Grammar Objects Python Modules Mac"
Martin v. Löwiseba40652007-08-30 20:10:57 +000025353{ echo "$as_me:$LINENO: checking for build directories" >&5
25354echo $ECHO_N "checking for build directories... $ECHO_C" >&6; }
Neil Schemenauerd32c2492001-01-24 17:25:28 +000025355for dir in $SRCDIRS; do
25356 if test ! -d $dir; then
25357 mkdir $dir
Guido van Rossum262cf202000-11-02 19:33:53 +000025358 fi
Neil Schemenauerd32c2492001-01-24 17:25:28 +000025359done
Martin v. Löwiseba40652007-08-30 20:10:57 +000025360{ echo "$as_me:$LINENO: result: done" >&5
25361echo "${ECHO_T}done" >&6; }
Fred Drake036144d2000-10-26 17:09:35 +000025362
Guido van Rossum627b2d71993-12-24 10:39:16 +000025363# generate output files
Martin v. Löwiseba40652007-08-30 20:10:57 +000025364ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config"
Martin v. Löwis88afe662002-10-26 13:47:44 +000025365
Martin v. Löwis11437992002-04-12 09:54:03 +000025366cat >confcache <<\_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000025367# This file is a shell script that caches the results of configure
25368# tests run on this system so they can be shared between configure
Martin v. Löwis11437992002-04-12 09:54:03 +000025369# scripts and configure runs, see configure's option --config-cache.
25370# It is not useful on other systems. If it contains results you don't
25371# want to keep, you may remove or edit it.
Guido van Rossum76be6ed1995-01-02 18:33:54 +000025372#
Martin v. Löwis11437992002-04-12 09:54:03 +000025373# config.status only pays attention to the cache file if you give it
25374# the --recheck option to rerun configure.
Guido van Rossum76be6ed1995-01-02 18:33:54 +000025375#
Skip Montanaro6dead952003-09-25 14:50:04 +000025376# `ac_cv_env_foo' variables (set or unset) will be overridden when
Martin v. Löwis11437992002-04-12 09:54:03 +000025377# loading this file, other *unset* `ac_cv_foo' will be assigned the
25378# following values.
25379
25380_ACEOF
25381
Guido van Rossumf78abae1997-01-21 22:02:36 +000025382# The following way of writing the cache mishandles newlines in values,
25383# but we know of no workaround that is simple, portable, and efficient.
Martin v. Löwiseba40652007-08-30 20:10:57 +000025384# So, we kill variables containing newlines.
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +000025385# Ultrix sh set writes to stderr and can't be redirected directly,
25386# and sets the high bit in the cache file unless we assign to the vars.
Martin v. Löwiseba40652007-08-30 20:10:57 +000025387(
25388 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25389 eval ac_val=\$$ac_var
25390 case $ac_val in #(
25391 *${as_nl}*)
25392 case $ac_var in #(
25393 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25394echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25395 esac
25396 case $ac_var in #(
25397 _ | IFS | as_nl) ;; #(
25398 *) $as_unset $ac_var ;;
25399 esac ;;
25400 esac
25401 done
25402
Martin v. Löwis11437992002-04-12 09:54:03 +000025403 (set) 2>&1 |
Martin v. Löwiseba40652007-08-30 20:10:57 +000025404 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25405 *${as_nl}ac_space=\ *)
Martin v. Löwis11437992002-04-12 09:54:03 +000025406 # `set' does not quote correctly, so add quotes (double-quote
25407 # substitution turns \\\\ into \\, and sed turns \\ into \).
25408 sed -n \
Skip Montanarof0d5f792004-08-15 14:08:23 +000025409 "s/'/'\\\\''/g;
25410 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Martin v. Löwiseba40652007-08-30 20:10:57 +000025411 ;; #(
Martin v. Löwis11437992002-04-12 09:54:03 +000025412 *)
25413 # `set' quotes correctly as required by POSIX, so do not add quotes.
Martin v. Löwiseba40652007-08-30 20:10:57 +000025414 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Martin v. Löwis11437992002-04-12 09:54:03 +000025415 ;;
Martin v. Löwiseba40652007-08-30 20:10:57 +000025416 esac |
25417 sort
25418) |
Martin v. Löwis11437992002-04-12 09:54:03 +000025419 sed '
Martin v. Löwiseba40652007-08-30 20:10:57 +000025420 /^ac_cv_env_/b end
Martin v. Löwis11437992002-04-12 09:54:03 +000025421 t clear
Martin v. Löwiseba40652007-08-30 20:10:57 +000025422 :clear
Martin v. Löwis11437992002-04-12 09:54:03 +000025423 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25424 t end
Martin v. Löwiseba40652007-08-30 20:10:57 +000025425 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25426 :end' >>confcache
25427if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25428 if test -w "$cache_file"; then
25429 test "x$cache_file" != "x/dev/null" &&
25430 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
25431echo "$as_me: updating cache $cache_file" >&6;}
Martin v. Löwis11437992002-04-12 09:54:03 +000025432 cat confcache >$cache_file
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +000025433 else
Martin v. Löwiseba40652007-08-30 20:10:57 +000025434 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25435echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +000025436 fi
Guido van Rossum76be6ed1995-01-02 18:33:54 +000025437fi
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +000025438rm -f confcache
Guido van Rossum0a516c91994-09-12 10:58:40 +000025439
Guido van Rossum76be6ed1995-01-02 18:33:54 +000025440test "x$prefix" = xNONE && prefix=$ac_default_prefix
25441# Let make expand exec_prefix.
25442test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
Guido van Rossum0a516c91994-09-12 10:58:40 +000025443
Guido van Rossum76be6ed1995-01-02 18:33:54 +000025444DEFS=-DHAVE_CONFIG_H
25445
Skip Montanaro6dead952003-09-25 14:50:04 +000025446ac_libobjs=
25447ac_ltlibobjs=
25448for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25449 # 1. Remove the extension, and $U if already installed.
Martin v. Löwiseba40652007-08-30 20:10:57 +000025450 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25451 ac_i=`echo "$ac_i" | sed "$ac_script"`
25452 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25453 # will be set to the directory where LIBOBJS objects are built.
25454 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25455 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
Skip Montanaro6dead952003-09-25 14:50:04 +000025456done
25457LIBOBJS=$ac_libobjs
25458
25459LTLIBOBJS=$ac_ltlibobjs
25460
25461
Martin v. Löwis11437992002-04-12 09:54:03 +000025462
Guido van Rossum76be6ed1995-01-02 18:33:54 +000025463: ${CONFIG_STATUS=./config.status}
Martin v. Löwis11437992002-04-12 09:54:03 +000025464ac_clean_files_save=$ac_clean_files
25465ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25466{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25467echo "$as_me: creating $CONFIG_STATUS" >&6;}
25468cat >$CONFIG_STATUS <<_ACEOF
25469#! $SHELL
25470# Generated by $as_me.
Guido van Rossum627b2d71993-12-24 10:39:16 +000025471# Run this file to recreate the current configuration.
Guido van Rossum76be6ed1995-01-02 18:33:54 +000025472# Compiler output produced by configure, useful for debugging
Martin v. Löwis11437992002-04-12 09:54:03 +000025473# configure, is in config.log if it exists.
Guido van Rossum627b2d71993-12-24 10:39:16 +000025474
Martin v. Löwis11437992002-04-12 09:54:03 +000025475debug=false
Skip Montanaro6dead952003-09-25 14:50:04 +000025476ac_cs_recheck=false
25477ac_cs_silent=false
Martin v. Löwis11437992002-04-12 09:54:03 +000025478SHELL=\${CONFIG_SHELL-$SHELL}
25479_ACEOF
Jack Jansendd19cf82001-12-06 22:36:17 +000025480
Martin v. Löwis11437992002-04-12 09:54:03 +000025481cat >>$CONFIG_STATUS <<\_ACEOF
Martin v. Löwis11437992002-04-12 09:54:03 +000025482## --------------------- ##
25483## M4sh Initialization. ##
25484## --------------------- ##
Jack Jansendd19cf82001-12-06 22:36:17 +000025485
Martin v. Löwiseba40652007-08-30 20:10:57 +000025486# Be more Bourne compatible
25487DUALCASE=1; export DUALCASE # for MKS sh
Martin v. Löwis11437992002-04-12 09:54:03 +000025488if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25489 emulate sh
25490 NULLCMD=:
Skip Montanaro6dead952003-09-25 14:50:04 +000025491 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25492 # is contrary to our usage. Disable this feature.
25493 alias -g '${1+"$@"}'='"$@"'
Martin v. Löwiseba40652007-08-30 20:10:57 +000025494 setopt NO_GLOB_SUBST
Skip Montanaro89e975f2007-08-22 19:05:21 +000025495else
Martin v. Löwiseba40652007-08-30 20:10:57 +000025496 case `(set -o) 2>/dev/null` in
25497 *posix*) set -o posix ;;
25498esac
25499
Martin v. Löwis11437992002-04-12 09:54:03 +000025500fi
Michael W. Hudson54241132001-12-07 15:38:26 +000025501
Skip Montanaro6dead952003-09-25 14:50:04 +000025502
Martin v. Löwis11437992002-04-12 09:54:03 +000025503
25504
Martin v. Löwiseba40652007-08-30 20:10:57 +000025505# PATH needs CR
Martin v. Löwis11437992002-04-12 09:54:03 +000025506# Avoid depending upon Character Ranges.
25507as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25508as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25509as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25510as_cr_digits='0123456789'
25511as_cr_alnum=$as_cr_Letters$as_cr_digits
25512
25513# The user is always right.
25514if test "${PATH_SEPARATOR+set}" != set; then
Skip Montanaro6dead952003-09-25 14:50:04 +000025515 echo "#! /bin/sh" >conf$$.sh
25516 echo "exit 0" >>conf$$.sh
25517 chmod +x conf$$.sh
25518 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
Martin v. Löwis11437992002-04-12 09:54:03 +000025519 PATH_SEPARATOR=';'
25520 else
25521 PATH_SEPARATOR=:
25522 fi
Skip Montanaro6dead952003-09-25 14:50:04 +000025523 rm -f conf$$.sh
Martin v. Löwis11437992002-04-12 09:54:03 +000025524fi
25525
Martin v. Löwiseba40652007-08-30 20:10:57 +000025526# Support unset when possible.
25527if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25528 as_unset=unset
25529else
25530 as_unset=false
25531fi
Martin v. Löwis11437992002-04-12 09:54:03 +000025532
Martin v. Löwiseba40652007-08-30 20:10:57 +000025533
25534# IFS
25535# We need space, tab and new line, in precisely that order. Quoting is
25536# there to prevent editors from complaining about space-tab.
25537# (If _AS_PATH_WALK were called with IFS unset, it would disable word
25538# splitting by setting IFS to empty value.)
25539as_nl='
25540'
25541IFS=" "" $as_nl"
25542
25543# Find who we are. Look in the path if we contain no directory separator.
25544case $0 in
25545 *[\\/]* ) as_myself=$0 ;;
25546 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Martin v. Löwis11437992002-04-12 09:54:03 +000025547for as_dir in $PATH
25548do
25549 IFS=$as_save_IFS
25550 test -z "$as_dir" && as_dir=.
25551 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25552done
Martin v. Löwiseba40652007-08-30 20:10:57 +000025553IFS=$as_save_IFS
Martin v. Löwis11437992002-04-12 09:54:03 +000025554
Martin v. Löwiseba40652007-08-30 20:10:57 +000025555 ;;
25556esac
25557# We did not find ourselves, most probably we were run as `sh COMMAND'
25558# in which case we are not to be found in the path.
25559if test "x$as_myself" = x; then
25560 as_myself=$0
25561fi
25562if test ! -f "$as_myself"; then
25563 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25564 { (exit 1); exit 1; }
25565fi
25566
25567# Work around bugs in pre-3.0 UWIN ksh.
25568for as_var in ENV MAIL MAILPATH
25569do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25570done
25571PS1='$ '
25572PS2='> '
25573PS4='+ '
25574
25575# NLS nuisances.
25576for as_var in \
25577 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25578 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25579 LC_TELEPHONE LC_TIME
Skip Montanaro89e975f2007-08-22 19:05:21 +000025580do
Martin v. Löwiseba40652007-08-30 20:10:57 +000025581 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25582 eval $as_var=C; export $as_var
25583 else
25584 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25585 fi
25586done
25587
25588# Required to use basename.
25589if expr a : '\(a\)' >/dev/null 2>&1 &&
25590 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25591 as_expr=expr
25592else
25593 as_expr=false
25594fi
25595
25596if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25597 as_basename=basename
25598else
25599 as_basename=false
25600fi
25601
25602
25603# Name of the executable.
25604as_me=`$as_basename -- "$0" ||
25605$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25606 X"$0" : 'X\(//\)$' \| \
25607 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25608echo X/"$0" |
25609 sed '/^.*\/\([^/][^/]*\)\/*$/{
25610 s//\1/
25611 q
25612 }
25613 /^X\/\(\/\/\)$/{
25614 s//\1/
25615 q
25616 }
25617 /^X\/\(\/\).*/{
25618 s//\1/
25619 q
25620 }
25621 s/.*/./; q'`
25622
25623# CDPATH.
25624$as_unset CDPATH
25625
25626
25627
Martin v. Löwis11437992002-04-12 09:54:03 +000025628 as_lineno_1=$LINENO
25629 as_lineno_2=$LINENO
Martin v. Löwis11437992002-04-12 09:54:03 +000025630 test "x$as_lineno_1" != "x$as_lineno_2" &&
Martin v. Löwiseba40652007-08-30 20:10:57 +000025631 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
Jack Jansendd19cf82001-12-06 22:36:17 +000025632
Martin v. Löwis11437992002-04-12 09:54:03 +000025633 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25634 # uniformly replaced by the line number. The first 'sed' inserts a
Martin v. Löwiseba40652007-08-30 20:10:57 +000025635 # line-number line after each line using $LINENO; the second 'sed'
25636 # does the real work. The second script uses 'N' to pair each
25637 # line-number line with the line containing $LINENO, and appends
25638 # trailing '-' during substitution so that $LINENO is not a special
25639 # case at line end.
Martin v. Löwis11437992002-04-12 09:54:03 +000025640 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Martin v. Löwiseba40652007-08-30 20:10:57 +000025641 # scripts with optimization help from Paolo Bonzini. Blame Lee
25642 # E. McMahon (1931-1989) for sed's syntax. :-)
25643 sed -n '
25644 p
25645 /[$]LINENO/=
25646 ' <$as_myself |
Martin v. Löwis11437992002-04-12 09:54:03 +000025647 sed '
Martin v. Löwiseba40652007-08-30 20:10:57 +000025648 s/[$]LINENO.*/&-/
25649 t lineno
25650 b
25651 :lineno
Martin v. Löwis11437992002-04-12 09:54:03 +000025652 N
Martin v. Löwiseba40652007-08-30 20:10:57 +000025653 :loop
25654 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Martin v. Löwis11437992002-04-12 09:54:03 +000025655 t loop
Martin v. Löwiseba40652007-08-30 20:10:57 +000025656 s/-\n.*//
Martin v. Löwis11437992002-04-12 09:54:03 +000025657 ' >$as_me.lineno &&
Martin v. Löwiseba40652007-08-30 20:10:57 +000025658 chmod +x "$as_me.lineno" ||
25659 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
Martin v. Löwis11437992002-04-12 09:54:03 +000025660 { (exit 1); exit 1; }; }
Michael W. Hudson54241132001-12-07 15:38:26 +000025661
Martin v. Löwis11437992002-04-12 09:54:03 +000025662 # Don't try to exec as it changes $[0], causing all sort of problems
25663 # (the dirname of $[0] is not the place where we might find the
Martin v. Löwiseba40652007-08-30 20:10:57 +000025664 # original and so on. Autoconf is especially sensitive to this).
25665 . "./$as_me.lineno"
Martin v. Löwis11437992002-04-12 09:54:03 +000025666 # Exit status is that of the last command.
25667 exit
25668}
25669
25670
Martin v. Löwiseba40652007-08-30 20:10:57 +000025671if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25672 as_dirname=dirname
25673else
25674 as_dirname=false
25675fi
25676
25677ECHO_C= ECHO_N= ECHO_T=
25678case `echo -n x` in
25679-n*)
25680 case `echo 'x\c'` in
25681 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25682 *) ECHO_C='\c';;
25683 esac;;
25684*)
25685 ECHO_N='-n';;
Martin v. Löwis11437992002-04-12 09:54:03 +000025686esac
25687
Martin v. Löwiseba40652007-08-30 20:10:57 +000025688if expr a : '\(a\)' >/dev/null 2>&1 &&
25689 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Martin v. Löwis11437992002-04-12 09:54:03 +000025690 as_expr=expr
25691else
25692 as_expr=false
25693fi
25694
25695rm -f conf$$ conf$$.exe conf$$.file
Martin v. Löwiseba40652007-08-30 20:10:57 +000025696if test -d conf$$.dir; then
25697 rm -f conf$$.dir/conf$$.file
25698else
25699 rm -f conf$$.dir
25700 mkdir conf$$.dir
25701fi
Martin v. Löwis11437992002-04-12 09:54:03 +000025702echo >conf$$.file
25703if ln -s conf$$.file conf$$ 2>/dev/null; then
Martin v. Löwiseba40652007-08-30 20:10:57 +000025704 as_ln_s='ln -s'
25705 # ... but there are two gotchas:
25706 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25707 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25708 # In both cases, we have to default to `cp -p'.
25709 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Martin v. Löwis11437992002-04-12 09:54:03 +000025710 as_ln_s='cp -p'
Martin v. Löwis11437992002-04-12 09:54:03 +000025711elif ln conf$$.file conf$$ 2>/dev/null; then
25712 as_ln_s=ln
25713else
25714 as_ln_s='cp -p'
25715fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000025716rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25717rmdir conf$$.dir 2>/dev/null
Martin v. Löwis11437992002-04-12 09:54:03 +000025718
Skip Montanaro6dead952003-09-25 14:50:04 +000025719if mkdir -p . 2>/dev/null; then
25720 as_mkdir_p=:
25721else
Skip Montanarof0d5f792004-08-15 14:08:23 +000025722 test -d ./-p && rmdir ./-p
Skip Montanaro6dead952003-09-25 14:50:04 +000025723 as_mkdir_p=false
25724fi
25725
Martin v. Löwiseba40652007-08-30 20:10:57 +000025726if test -x / >/dev/null 2>&1; then
25727 as_test_x='test -x'
25728else
25729 if ls -dL / >/dev/null 2>&1; then
25730 as_ls_L_option=L
25731 else
25732 as_ls_L_option=
25733 fi
25734 as_test_x='
25735 eval sh -c '\''
25736 if test -d "$1"; then
25737 test -d "$1/.";
25738 else
25739 case $1 in
25740 -*)set "./$1";;
25741 esac;
25742 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
25743 ???[sx]*):;;*)false;;esac;fi
25744 '\'' sh
25745 '
25746fi
25747as_executable_p=$as_test_x
Martin v. Löwis11437992002-04-12 09:54:03 +000025748
25749# Sed expression to map a string onto a valid CPP name.
Skip Montanarof0d5f792004-08-15 14:08:23 +000025750as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Martin v. Löwis11437992002-04-12 09:54:03 +000025751
25752# Sed expression to map a string onto a valid variable name.
Skip Montanarof0d5f792004-08-15 14:08:23 +000025753as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Martin v. Löwis11437992002-04-12 09:54:03 +000025754
25755
Martin v. Löwis11437992002-04-12 09:54:03 +000025756exec 6>&1
25757
Martin v. Löwiseba40652007-08-30 20:10:57 +000025758# Save the log message, to keep $[0] and so on meaningful, and to
Martin v. Löwis11437992002-04-12 09:54:03 +000025759# report actual input values of CONFIG_FILES etc. instead of their
Martin v. Löwiseba40652007-08-30 20:10:57 +000025760# values after options handling.
25761ac_log="
Martin v. Löwis174440b2008-10-03 08:59:41 +000025762This file was extended by python $as_me 2.7, which was
Martin v. Löwiseba40652007-08-30 20:10:57 +000025763generated by GNU Autoconf 2.61. Invocation command line was
Martin v. Löwis11437992002-04-12 09:54:03 +000025764
25765 CONFIG_FILES = $CONFIG_FILES
25766 CONFIG_HEADERS = $CONFIG_HEADERS
25767 CONFIG_LINKS = $CONFIG_LINKS
25768 CONFIG_COMMANDS = $CONFIG_COMMANDS
25769 $ $0 $@
25770
Martin v. Löwiseba40652007-08-30 20:10:57 +000025771on `(hostname || uname -n) 2>/dev/null | sed 1q`
25772"
25773
Martin v. Löwis11437992002-04-12 09:54:03 +000025774_ACEOF
25775
Martin v. Löwiseba40652007-08-30 20:10:57 +000025776cat >>$CONFIG_STATUS <<_ACEOF
Martin v. Löwis11437992002-04-12 09:54:03 +000025777# Files that config.status was made for.
Martin v. Löwiseba40652007-08-30 20:10:57 +000025778config_files="$ac_config_files"
25779config_headers="$ac_config_headers"
Martin v. Löwis11437992002-04-12 09:54:03 +000025780
Martin v. Löwiseba40652007-08-30 20:10:57 +000025781_ACEOF
Martin v. Löwis11437992002-04-12 09:54:03 +000025782
25783cat >>$CONFIG_STATUS <<\_ACEOF
Martin v. Löwis11437992002-04-12 09:54:03 +000025784ac_cs_usage="\
25785\`$as_me' instantiates files from templates according to the
25786current configuration.
25787
25788Usage: $0 [OPTIONS] [FILE]...
25789
25790 -h, --help print this help, then exit
Martin v. Löwiseba40652007-08-30 20:10:57 +000025791 -V, --version print version number and configuration settings, then exit
Skip Montanaro6dead952003-09-25 14:50:04 +000025792 -q, --quiet do not print progress messages
Martin v. Löwis11437992002-04-12 09:54:03 +000025793 -d, --debug don't remove temporary files
25794 --recheck update $as_me by reconfiguring in the same conditions
25795 --file=FILE[:TEMPLATE]
Skip Montanarof0d5f792004-08-15 14:08:23 +000025796 instantiate the configuration file FILE
Martin v. Löwis11437992002-04-12 09:54:03 +000025797 --header=FILE[:TEMPLATE]
Skip Montanarof0d5f792004-08-15 14:08:23 +000025798 instantiate the configuration header FILE
Martin v. Löwis11437992002-04-12 09:54:03 +000025799
25800Configuration files:
25801$config_files
25802
25803Configuration headers:
25804$config_headers
25805
25806Report bugs to <bug-autoconf@gnu.org>."
Skip Montanaro89e975f2007-08-22 19:05:21 +000025807
Martin v. Löwiseba40652007-08-30 20:10:57 +000025808_ACEOF
Martin v. Löwis11437992002-04-12 09:54:03 +000025809cat >>$CONFIG_STATUS <<_ACEOF
25810ac_cs_version="\\
Martin v. Löwis174440b2008-10-03 08:59:41 +000025811python config.status 2.7
Martin v. Löwiseba40652007-08-30 20:10:57 +000025812configured by $0, generated by GNU Autoconf 2.61,
25813 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
Martin v. Löwis11437992002-04-12 09:54:03 +000025814
Martin v. Löwiseba40652007-08-30 20:10:57 +000025815Copyright (C) 2006 Free Software Foundation, Inc.
Martin v. Löwis11437992002-04-12 09:54:03 +000025816This config.status script is free software; the Free Software Foundation
25817gives unlimited permission to copy, distribute and modify it."
Martin v. Löwiseba40652007-08-30 20:10:57 +000025818
25819ac_pwd='$ac_pwd'
25820srcdir='$srcdir'
25821INSTALL='$INSTALL'
Martin v. Löwis11437992002-04-12 09:54:03 +000025822_ACEOF
25823
25824cat >>$CONFIG_STATUS <<\_ACEOF
25825# If no file are specified by the user, then we need to provide default
25826# value. By we need to know if files were specified by the user.
25827ac_need_defaults=:
25828while test $# != 0
25829do
25830 case $1 in
25831 --*=*)
Martin v. Löwiseba40652007-08-30 20:10:57 +000025832 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25833 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Skip Montanaro6dead952003-09-25 14:50:04 +000025834 ac_shift=:
Martin v. Löwis11437992002-04-12 09:54:03 +000025835 ;;
Martin v. Löwiseba40652007-08-30 20:10:57 +000025836 *)
Skip Montanaro6dead952003-09-25 14:50:04 +000025837 ac_option=$1
25838 ac_optarg=$2
25839 ac_shift=shift
25840 ;;
Martin v. Löwis11437992002-04-12 09:54:03 +000025841 esac
25842
Skip Montanaro6dead952003-09-25 14:50:04 +000025843 case $ac_option in
Martin v. Löwis11437992002-04-12 09:54:03 +000025844 # Handling of the options.
Skip Montanaro6dead952003-09-25 14:50:04 +000025845 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25846 ac_cs_recheck=: ;;
Martin v. Löwiseba40652007-08-30 20:10:57 +000025847 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25848 echo "$ac_cs_version"; exit ;;
25849 --debug | --debu | --deb | --de | --d | -d )
Martin v. Löwis11437992002-04-12 09:54:03 +000025850 debug=: ;;
25851 --file | --fil | --fi | --f )
Skip Montanaro6dead952003-09-25 14:50:04 +000025852 $ac_shift
25853 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
Martin v. Löwis11437992002-04-12 09:54:03 +000025854 ac_need_defaults=false;;
25855 --header | --heade | --head | --hea )
Skip Montanaro6dead952003-09-25 14:50:04 +000025856 $ac_shift
25857 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
Martin v. Löwis11437992002-04-12 09:54:03 +000025858 ac_need_defaults=false;;
Martin v. Löwiseba40652007-08-30 20:10:57 +000025859 --he | --h)
25860 # Conflict between --help and --header
25861 { echo "$as_me: error: ambiguous option: $1
25862Try \`$0 --help' for more information." >&2
25863 { (exit 1); exit 1; }; };;
25864 --help | --hel | -h )
25865 echo "$ac_cs_usage"; exit ;;
Skip Montanaro6dead952003-09-25 14:50:04 +000025866 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25867 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25868 ac_cs_silent=: ;;
Martin v. Löwis11437992002-04-12 09:54:03 +000025869
25870 # This is an error.
Martin v. Löwiseba40652007-08-30 20:10:57 +000025871 -*) { echo "$as_me: error: unrecognized option: $1
25872Try \`$0 --help' for more information." >&2
Martin v. Löwis11437992002-04-12 09:54:03 +000025873 { (exit 1); exit 1; }; } ;;
25874
Martin v. Löwiseba40652007-08-30 20:10:57 +000025875 *) ac_config_targets="$ac_config_targets $1"
25876 ac_need_defaults=false ;;
Martin v. Löwis11437992002-04-12 09:54:03 +000025877
25878 esac
25879 shift
25880done
25881
Skip Montanaro6dead952003-09-25 14:50:04 +000025882ac_configure_extra_args=
25883
25884if $ac_cs_silent; then
25885 exec 6>/dev/null
25886 ac_configure_extra_args="$ac_configure_extra_args --silent"
25887fi
25888
25889_ACEOF
25890cat >>$CONFIG_STATUS <<_ACEOF
25891if \$ac_cs_recheck; then
Martin v. Löwiseba40652007-08-30 20:10:57 +000025892 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25893 CONFIG_SHELL=$SHELL
25894 export CONFIG_SHELL
25895 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Skip Montanaro6dead952003-09-25 14:50:04 +000025896fi
25897
Martin v. Löwis11437992002-04-12 09:54:03 +000025898_ACEOF
Martin v. Löwiseba40652007-08-30 20:10:57 +000025899cat >>$CONFIG_STATUS <<\_ACEOF
25900exec 5>>config.log
25901{
25902 echo
25903 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25904## Running $as_me. ##
25905_ASBOX
25906 echo "$ac_log"
25907} >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000025908
Martin v. Löwiseba40652007-08-30 20:10:57 +000025909_ACEOF
25910cat >>$CONFIG_STATUS <<_ACEOF
25911_ACEOF
Martin v. Löwis11437992002-04-12 09:54:03 +000025912
25913cat >>$CONFIG_STATUS <<\_ACEOF
Martin v. Löwiseba40652007-08-30 20:10:57 +000025914
25915# Handling of arguments.
Martin v. Löwis11437992002-04-12 09:54:03 +000025916for ac_config_target in $ac_config_targets
25917do
Martin v. Löwiseba40652007-08-30 20:10:57 +000025918 case $ac_config_target in
25919 "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;;
25920 "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;;
25921 "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
25922 "Mac/IDLE/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/IDLE/Makefile" ;;
Ronald Oussoren580c7fe2008-05-02 19:45:11 +000025923 "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;;
25924 "Mac/Resources/app/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/app/Info.plist" ;;
Martin v. Löwiseba40652007-08-30 20:10:57 +000025925 "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;;
25926 "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;;
25927
Martin v. Löwis11437992002-04-12 09:54:03 +000025928 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25929echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25930 { (exit 1); exit 1; }; };;
25931 esac
25932done
25933
Martin v. Löwiseba40652007-08-30 20:10:57 +000025934
Martin v. Löwis11437992002-04-12 09:54:03 +000025935# If the user did not use the arguments to specify the items to instantiate,
25936# then the envvar interface is used. Set only those that are not.
25937# We use the long form for the default assignment because of an extremely
25938# bizarre bug on SunOS 4.1.3.
25939if $ac_need_defaults; then
25940 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25941 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25942fi
25943
Skip Montanaro6dead952003-09-25 14:50:04 +000025944# Have a temporary directory for convenience. Make it in the build tree
Martin v. Löwiseba40652007-08-30 20:10:57 +000025945# simply because there is no reason against having it here, and in addition,
Skip Montanaro6dead952003-09-25 14:50:04 +000025946# creating and moving files from /tmp can sometimes cause problems.
Martin v. Löwiseba40652007-08-30 20:10:57 +000025947# Hook for its removal unless debugging.
25948# Note that there is a small window in which the directory will not be cleaned:
25949# after its creation but before its name has been assigned to `$tmp'.
Martin v. Löwis11437992002-04-12 09:54:03 +000025950$debug ||
25951{
Martin v. Löwiseba40652007-08-30 20:10:57 +000025952 tmp=
25953 trap 'exit_status=$?
25954 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25955' 0
Martin v. Löwis11437992002-04-12 09:54:03 +000025956 trap '{ (exit 1); exit 1; }' 1 2 13 15
25957}
Martin v. Löwis11437992002-04-12 09:54:03 +000025958# Create a (secure) tmp directory for tmp files.
Skip Montanaro6dead952003-09-25 14:50:04 +000025959
Martin v. Löwis11437992002-04-12 09:54:03 +000025960{
Martin v. Löwiseba40652007-08-30 20:10:57 +000025961 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Martin v. Löwis11437992002-04-12 09:54:03 +000025962 test -n "$tmp" && test -d "$tmp"
25963} ||
25964{
Martin v. Löwiseba40652007-08-30 20:10:57 +000025965 tmp=./conf$$-$RANDOM
25966 (umask 077 && mkdir "$tmp")
Martin v. Löwis11437992002-04-12 09:54:03 +000025967} ||
25968{
Skip Montanaro6dead952003-09-25 14:50:04 +000025969 echo "$me: cannot create a temporary directory in ." >&2
Martin v. Löwis11437992002-04-12 09:54:03 +000025970 { (exit 1); exit 1; }
25971}
25972
Martin v. Löwis11437992002-04-12 09:54:03 +000025973#
Martin v. Löwiseba40652007-08-30 20:10:57 +000025974# Set up the sed scripts for CONFIG_FILES section.
Martin v. Löwis11437992002-04-12 09:54:03 +000025975#
25976
25977# No need to generate the scripts if there are no CONFIG_FILES.
25978# This happens for instance when ./config.status config.h
Martin v. Löwiseba40652007-08-30 20:10:57 +000025979if test -n "$CONFIG_FILES"; then
Martin v. Löwis11437992002-04-12 09:54:03 +000025980
25981_ACEOF
25982
Martin v. Löwiseba40652007-08-30 20:10:57 +000025983
25984
25985ac_delim='%!_!# '
25986for ac_last_try in false false false false false :; do
25987 cat >conf$$subs.sed <<_ACEOF
25988SHELL!$SHELL$ac_delim
25989PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25990PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25991PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25992PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25993PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25994PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25995exec_prefix!$exec_prefix$ac_delim
25996prefix!$prefix$ac_delim
25997program_transform_name!$program_transform_name$ac_delim
25998bindir!$bindir$ac_delim
25999sbindir!$sbindir$ac_delim
26000libexecdir!$libexecdir$ac_delim
26001datarootdir!$datarootdir$ac_delim
26002datadir!$datadir$ac_delim
26003sysconfdir!$sysconfdir$ac_delim
26004sharedstatedir!$sharedstatedir$ac_delim
26005localstatedir!$localstatedir$ac_delim
26006includedir!$includedir$ac_delim
26007oldincludedir!$oldincludedir$ac_delim
26008docdir!$docdir$ac_delim
26009infodir!$infodir$ac_delim
26010htmldir!$htmldir$ac_delim
26011dvidir!$dvidir$ac_delim
26012pdfdir!$pdfdir$ac_delim
26013psdir!$psdir$ac_delim
26014libdir!$libdir$ac_delim
26015localedir!$localedir$ac_delim
26016mandir!$mandir$ac_delim
26017DEFS!$DEFS$ac_delim
26018ECHO_C!$ECHO_C$ac_delim
26019ECHO_N!$ECHO_N$ac_delim
26020ECHO_T!$ECHO_T$ac_delim
26021LIBS!$LIBS$ac_delim
26022build_alias!$build_alias$ac_delim
26023host_alias!$host_alias$ac_delim
26024target_alias!$target_alias$ac_delim
26025VERSION!$VERSION$ac_delim
26026SOVERSION!$SOVERSION$ac_delim
26027CONFIG_ARGS!$CONFIG_ARGS$ac_delim
26028UNIVERSALSDK!$UNIVERSALSDK$ac_delim
Benjamin Peterson0e6ea5d2008-07-16 20:17:04 +000026029ARCH_RUN_32BIT!$ARCH_RUN_32BIT$ac_delim
Martin v. Löwiseba40652007-08-30 20:10:57 +000026030PYTHONFRAMEWORK!$PYTHONFRAMEWORK$ac_delim
Ronald Oussoren580c7fe2008-05-02 19:45:11 +000026031PYTHONFRAMEWORKIDENTIFIER!$PYTHONFRAMEWORKIDENTIFIER$ac_delim
Martin v. Löwiseba40652007-08-30 20:10:57 +000026032PYTHONFRAMEWORKDIR!$PYTHONFRAMEWORKDIR$ac_delim
26033PYTHONFRAMEWORKPREFIX!$PYTHONFRAMEWORKPREFIX$ac_delim
26034PYTHONFRAMEWORKINSTALLDIR!$PYTHONFRAMEWORKINSTALLDIR$ac_delim
26035FRAMEWORKINSTALLFIRST!$FRAMEWORKINSTALLFIRST$ac_delim
26036FRAMEWORKINSTALLLAST!$FRAMEWORKINSTALLLAST$ac_delim
26037FRAMEWORKALTINSTALLFIRST!$FRAMEWORKALTINSTALLFIRST$ac_delim
26038FRAMEWORKALTINSTALLLAST!$FRAMEWORKALTINSTALLLAST$ac_delim
26039FRAMEWORKUNIXTOOLSPREFIX!$FRAMEWORKUNIXTOOLSPREFIX$ac_delim
26040MACHDEP!$MACHDEP$ac_delim
26041SGI_ABI!$SGI_ABI$ac_delim
26042EXTRAPLATDIR!$EXTRAPLATDIR$ac_delim
26043EXTRAMACHDEPPATH!$EXTRAMACHDEPPATH$ac_delim
26044CONFIGURE_MACOSX_DEPLOYMENT_TARGET!$CONFIGURE_MACOSX_DEPLOYMENT_TARGET$ac_delim
26045EXPORT_MACOSX_DEPLOYMENT_TARGET!$EXPORT_MACOSX_DEPLOYMENT_TARGET$ac_delim
26046CC!$CC$ac_delim
26047CFLAGS!$CFLAGS$ac_delim
26048LDFLAGS!$LDFLAGS$ac_delim
26049CPPFLAGS!$CPPFLAGS$ac_delim
26050ac_ct_CC!$ac_ct_CC$ac_delim
26051EXEEXT!$EXEEXT$ac_delim
26052OBJEXT!$OBJEXT$ac_delim
26053CXX!$CXX$ac_delim
26054MAINCC!$MAINCC$ac_delim
26055CPP!$CPP$ac_delim
26056GREP!$GREP$ac_delim
26057EGREP!$EGREP$ac_delim
26058BUILDEXEEXT!$BUILDEXEEXT$ac_delim
26059LIBRARY!$LIBRARY$ac_delim
26060LDLIBRARY!$LDLIBRARY$ac_delim
26061DLLLIBRARY!$DLLLIBRARY$ac_delim
26062BLDLIBRARY!$BLDLIBRARY$ac_delim
26063LDLIBRARYDIR!$LDLIBRARYDIR$ac_delim
26064INSTSONAME!$INSTSONAME$ac_delim
26065RUNSHARED!$RUNSHARED$ac_delim
26066LINKCC!$LINKCC$ac_delim
Tarek Ziadée2be83d2009-05-09 08:28:53 +000026067GNULD!$GNULD$ac_delim
Martin v. Löwiseba40652007-08-30 20:10:57 +000026068RANLIB!$RANLIB$ac_delim
26069AR!$AR$ac_delim
Tarek Ziadé3a6e8862009-05-07 22:19:27 +000026070ARFLAGS!$ARFLAGS$ac_delim
Martin v. Löwiseba40652007-08-30 20:10:57 +000026071SVNVERSION!$SVNVERSION$ac_delim
26072INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
26073INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
26074INSTALL_DATA!$INSTALL_DATA$ac_delim
26075LN!$LN$ac_delim
26076OPT!$OPT$ac_delim
26077BASECFLAGS!$BASECFLAGS$ac_delim
Ronald Oussoren5640ce22008-06-05 12:58:24 +000026078UNIVERSAL_ARCH_FLAGS!$UNIVERSAL_ARCH_FLAGS$ac_delim
Martin v. Löwiseba40652007-08-30 20:10:57 +000026079OTHER_LIBTOOL_OPT!$OTHER_LIBTOOL_OPT$ac_delim
26080LIBTOOL_CRUFT!$LIBTOOL_CRUFT$ac_delim
26081SO!$SO$ac_delim
26082LDSHARED!$LDSHARED$ac_delim
26083BLDSHARED!$BLDSHARED$ac_delim
26084CCSHARED!$CCSHARED$ac_delim
Martin v. Löwiseba40652007-08-30 20:10:57 +000026085_ACEOF
26086
26087 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
26088 break
26089 elif $ac_last_try; then
26090 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26091echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26092 { (exit 1); exit 1; }; }
26093 else
26094 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Martin v. Löwis11437992002-04-12 09:54:03 +000026095 fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000026096done
26097
26098ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26099if test -n "$ac_eof"; then
26100 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26101 ac_eof=`expr $ac_eof + 1`
26102fi
26103
26104cat >>$CONFIG_STATUS <<_ACEOF
26105cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
26106/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26107_ACEOF
26108sed '
26109s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26110s/^/s,@/; s/!/@,|#_!!_#|/
26111:n
26112t n
26113s/'"$ac_delim"'$/,g/; t
26114s/$/\\/; p
26115N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26116' >>$CONFIG_STATUS <conf$$subs.sed
26117rm -f conf$$subs.sed
26118cat >>$CONFIG_STATUS <<_ACEOF
26119CEOF$ac_eof
26120_ACEOF
26121
26122
26123ac_delim='%!_!# '
26124for ac_last_try in false false false false false :; do
26125 cat >conf$$subs.sed <<_ACEOF
Tarek Ziadée2be83d2009-05-09 08:28:53 +000026126LINKFORSHARED!$LINKFORSHARED$ac_delim
Tarek Ziadé3a6e8862009-05-07 22:19:27 +000026127CFLAGSFORSHARED!$CFLAGSFORSHARED$ac_delim
Benjamin Peterson0e6ea5d2008-07-16 20:17:04 +000026128SHLIBS!$SHLIBS$ac_delim
Ronald Oussoren5640ce22008-06-05 12:58:24 +000026129USE_SIGNAL_MODULE!$USE_SIGNAL_MODULE$ac_delim
Ronald Oussoren580c7fe2008-05-02 19:45:11 +000026130SIGNAL_OBJS!$SIGNAL_OBJS$ac_delim
Martin v. Löwiseba40652007-08-30 20:10:57 +000026131USE_THREAD_MODULE!$USE_THREAD_MODULE$ac_delim
26132LDLAST!$LDLAST$ac_delim
26133THREADOBJ!$THREADOBJ$ac_delim
26134DLINCLDIR!$DLINCLDIR$ac_delim
26135DYNLOADFILE!$DYNLOADFILE$ac_delim
26136MACHDEP_OBJS!$MACHDEP_OBJS$ac_delim
26137TRUE!$TRUE$ac_delim
26138LIBOBJS!$LIBOBJS$ac_delim
26139HAVE_GETHOSTBYNAME_R_6_ARG!$HAVE_GETHOSTBYNAME_R_6_ARG$ac_delim
26140HAVE_GETHOSTBYNAME_R_5_ARG!$HAVE_GETHOSTBYNAME_R_5_ARG$ac_delim
26141HAVE_GETHOSTBYNAME_R_3_ARG!$HAVE_GETHOSTBYNAME_R_3_ARG$ac_delim
26142HAVE_GETHOSTBYNAME_R!$HAVE_GETHOSTBYNAME_R$ac_delim
26143HAVE_GETHOSTBYNAME!$HAVE_GETHOSTBYNAME$ac_delim
26144LIBM!$LIBM$ac_delim
26145LIBC!$LIBC$ac_delim
26146UNICODE_OBJS!$UNICODE_OBJS$ac_delim
26147THREADHEADERS!$THREADHEADERS$ac_delim
26148SRCDIRS!$SRCDIRS$ac_delim
26149LTLIBOBJS!$LTLIBOBJS$ac_delim
26150_ACEOF
26151
Tarek Ziadée2be83d2009-05-09 08:28:53 +000026152 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 24; then
Martin v. Löwiseba40652007-08-30 20:10:57 +000026153 break
26154 elif $ac_last_try; then
26155 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26156echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26157 { (exit 1); exit 1; }; }
26158 else
26159 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26160 fi
26161done
26162
26163ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26164if test -n "$ac_eof"; then
26165 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26166 ac_eof=`expr $ac_eof + 1`
26167fi
26168
26169cat >>$CONFIG_STATUS <<_ACEOF
26170cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
26171/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
26172_ACEOF
26173sed '
26174s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26175s/^/s,@/; s/!/@,|#_!!_#|/
26176:n
26177t n
26178s/'"$ac_delim"'$/,g/; t
26179s/$/\\/; p
26180N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26181' >>$CONFIG_STATUS <conf$$subs.sed
26182rm -f conf$$subs.sed
26183cat >>$CONFIG_STATUS <<_ACEOF
26184:end
26185s/|#_!!_#|//g
26186CEOF$ac_eof
26187_ACEOF
26188
26189
26190# VPATH may cause trouble with some makes, so we remove $(srcdir),
26191# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26192# trailing colons and then remove the whole line if VPATH becomes empty
26193# (actually we leave an empty line to preserve line numbers).
26194if test "x$srcdir" = x.; then
26195 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26196s/:*\$(srcdir):*/:/
26197s/:*\${srcdir}:*/:/
26198s/:*@srcdir@:*/:/
26199s/^\([^=]*=[ ]*\):*/\1/
26200s/:*$//
26201s/^[^=]*=[ ]*$//
26202}'
26203fi
26204
26205cat >>$CONFIG_STATUS <<\_ACEOF
Martin v. Löwis11437992002-04-12 09:54:03 +000026206fi # test -n "$CONFIG_FILES"
26207
Martin v. Löwiseba40652007-08-30 20:10:57 +000026208
26209for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
26210do
26211 case $ac_tag in
26212 :[FHLC]) ac_mode=$ac_tag; continue;;
26213 esac
26214 case $ac_mode$ac_tag in
26215 :[FHL]*:*);;
26216 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26217echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26218 { (exit 1); exit 1; }; };;
26219 :[FH]-) ac_tag=-:-;;
26220 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26221 esac
26222 ac_save_IFS=$IFS
26223 IFS=:
26224 set x $ac_tag
26225 IFS=$ac_save_IFS
26226 shift
26227 ac_file=$1
26228 shift
26229
26230 case $ac_mode in
26231 :L) ac_source=$1;;
26232 :[FH])
26233 ac_file_inputs=
26234 for ac_f
26235 do
26236 case $ac_f in
26237 -) ac_f="$tmp/stdin";;
26238 *) # Look for the file first in the build tree, then in the source tree
26239 # (if the path is not absolute). The absolute path cannot be DOS-style,
26240 # because $ac_f cannot contain `:'.
26241 test -f "$ac_f" ||
26242 case $ac_f in
26243 [\\/$]*) false;;
26244 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26245 esac ||
26246 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26247echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26248 { (exit 1); exit 1; }; };;
26249 esac
26250 ac_file_inputs="$ac_file_inputs $ac_f"
26251 done
26252
26253 # Let's still pretend it is `configure' which instantiates (i.e., don't
26254 # use $as_me), people would be surprised to read:
26255 # /* config.h. Generated by config.status. */
26256 configure_input="Generated from "`IFS=:
26257 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
26258 if test x"$ac_file" != x-; then
26259 configure_input="$ac_file. $configure_input"
26260 { echo "$as_me:$LINENO: creating $ac_file" >&5
26261echo "$as_me: creating $ac_file" >&6;}
26262 fi
26263
26264 case $ac_tag in
26265 *:-:* | *:-) cat >"$tmp/stdin";;
26266 esac
26267 ;;
Martin v. Löwis11437992002-04-12 09:54:03 +000026268 esac
26269
Martin v. Löwiseba40652007-08-30 20:10:57 +000026270 ac_dir=`$as_dirname -- "$ac_file" ||
Martin v. Löwis11437992002-04-12 09:54:03 +000026271$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Skip Montanarof0d5f792004-08-15 14:08:23 +000026272 X"$ac_file" : 'X\(//\)[^/]' \| \
26273 X"$ac_file" : 'X\(//\)$' \| \
Martin v. Löwiseba40652007-08-30 20:10:57 +000026274 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Martin v. Löwis11437992002-04-12 09:54:03 +000026275echo X"$ac_file" |
Martin v. Löwiseba40652007-08-30 20:10:57 +000026276 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26277 s//\1/
26278 q
26279 }
26280 /^X\(\/\/\)[^/].*/{
26281 s//\1/
26282 q
26283 }
26284 /^X\(\/\/\)$/{
26285 s//\1/
26286 q
26287 }
26288 /^X\(\/\).*/{
26289 s//\1/
26290 q
26291 }
26292 s/.*/./; q'`
26293 { as_dir="$ac_dir"
26294 case $as_dir in #(
26295 -*) as_dir=./$as_dir;;
26296 esac
26297 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
Skip Montanaro6dead952003-09-25 14:50:04 +000026298 as_dirs=
Martin v. Löwiseba40652007-08-30 20:10:57 +000026299 while :; do
26300 case $as_dir in #(
26301 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26302 *) as_qdir=$as_dir;;
26303 esac
26304 as_dirs="'$as_qdir' $as_dirs"
26305 as_dir=`$as_dirname -- "$as_dir" ||
Skip Montanaro6dead952003-09-25 14:50:04 +000026306$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Skip Montanarof0d5f792004-08-15 14:08:23 +000026307 X"$as_dir" : 'X\(//\)[^/]' \| \
26308 X"$as_dir" : 'X\(//\)$' \| \
Martin v. Löwiseba40652007-08-30 20:10:57 +000026309 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
Skip Montanaro6dead952003-09-25 14:50:04 +000026310echo X"$as_dir" |
Martin v. Löwiseba40652007-08-30 20:10:57 +000026311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26312 s//\1/
26313 q
26314 }
26315 /^X\(\/\/\)[^/].*/{
26316 s//\1/
26317 q
26318 }
26319 /^X\(\/\/\)$/{
26320 s//\1/
26321 q
26322 }
26323 /^X\(\/\).*/{
26324 s//\1/
26325 q
26326 }
26327 s/.*/./; q'`
26328 test -d "$as_dir" && break
Skip Montanaro6dead952003-09-25 14:50:04 +000026329 done
Martin v. Löwiseba40652007-08-30 20:10:57 +000026330 test -z "$as_dirs" || eval "mkdir $as_dirs"
26331 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26332echo "$as_me: error: cannot create directory $as_dir" >&2;}
Skip Montanaro6dead952003-09-25 14:50:04 +000026333 { (exit 1); exit 1; }; }; }
Martin v. Löwis11437992002-04-12 09:54:03 +000026334 ac_builddir=.
26335
Martin v. Löwiseba40652007-08-30 20:10:57 +000026336case "$ac_dir" in
26337.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26338*)
Martin v. Löwis11437992002-04-12 09:54:03 +000026339 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Martin v. Löwiseba40652007-08-30 20:10:57 +000026340 # A ".." for each directory in $ac_dir_suffix.
26341 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26342 case $ac_top_builddir_sub in
26343 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26344 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26345 esac ;;
26346esac
26347ac_abs_top_builddir=$ac_pwd
26348ac_abs_builddir=$ac_pwd$ac_dir_suffix
26349# for backward compatibility:
26350ac_top_builddir=$ac_top_build_prefix
Martin v. Löwis11437992002-04-12 09:54:03 +000026351
26352case $srcdir in
Martin v. Löwiseba40652007-08-30 20:10:57 +000026353 .) # We are building in place.
Martin v. Löwis11437992002-04-12 09:54:03 +000026354 ac_srcdir=.
Martin v. Löwiseba40652007-08-30 20:10:57 +000026355 ac_top_srcdir=$ac_top_builddir_sub
26356 ac_abs_top_srcdir=$ac_pwd ;;
26357 [\\/]* | ?:[\\/]* ) # Absolute name.
Martin v. Löwis11437992002-04-12 09:54:03 +000026358 ac_srcdir=$srcdir$ac_dir_suffix;
Martin v. Löwiseba40652007-08-30 20:10:57 +000026359 ac_top_srcdir=$srcdir
26360 ac_abs_top_srcdir=$srcdir ;;
26361 *) # Relative name.
26362 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26363 ac_top_srcdir=$ac_top_build_prefix$srcdir
26364 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Martin v. Löwis11437992002-04-12 09:54:03 +000026365esac
Martin v. Löwiseba40652007-08-30 20:10:57 +000026366ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Skip Montanarof0d5f792004-08-15 14:08:23 +000026367
Martin v. Löwis11437992002-04-12 09:54:03 +000026368
Martin v. Löwiseba40652007-08-30 20:10:57 +000026369 case $ac_mode in
26370 :F)
26371 #
26372 # CONFIG_FILE
26373 #
Martin v. Löwis11437992002-04-12 09:54:03 +000026374
26375 case $INSTALL in
26376 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Martin v. Löwiseba40652007-08-30 20:10:57 +000026377 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Martin v. Löwis11437992002-04-12 09:54:03 +000026378 esac
Brett Cannon19fab762007-06-02 03:02:29 +000026379_ACEOF
Martin v. Löwiseba40652007-08-30 20:10:57 +000026380
26381cat >>$CONFIG_STATUS <<\_ACEOF
26382# If the template does not know about datarootdir, expand it.
26383# FIXME: This hack should be removed a few years after 2.60.
26384ac_datarootdir_hack=; ac_datarootdir_seen=
26385
26386case `sed -n '/datarootdir/ {
26387 p
26388 q
26389}
26390/@datadir@/p
26391/@docdir@/p
26392/@infodir@/p
26393/@localedir@/p
26394/@mandir@/p
26395' $ac_file_inputs` in
26396*datarootdir*) ac_datarootdir_seen=yes;;
26397*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26398 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26399echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26400_ACEOF
26401cat >>$CONFIG_STATUS <<_ACEOF
26402 ac_datarootdir_hack='
26403 s&@datadir@&$datadir&g
26404 s&@docdir@&$docdir&g
26405 s&@infodir@&$infodir&g
26406 s&@localedir@&$localedir&g
26407 s&@mandir@&$mandir&g
26408 s&\\\${datarootdir}&$datarootdir&g' ;;
26409esac
26410_ACEOF
26411
26412# Neutralize VPATH when `$srcdir' = `.'.
26413# Shell code in configure.ac might set extrasub.
26414# FIXME: do we really want to maintain this feature?
Brett Cannon19fab762007-06-02 03:02:29 +000026415cat >>$CONFIG_STATUS <<_ACEOF
Martin v. Löwis11437992002-04-12 09:54:03 +000026416 sed "$ac_vpsub
26417$extrasub
26418_ACEOF
26419cat >>$CONFIG_STATUS <<\_ACEOF
26420:t
26421/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Martin v. Löwiseba40652007-08-30 20:10:57 +000026422s&@configure_input@&$configure_input&;t t
26423s&@top_builddir@&$ac_top_builddir_sub&;t t
26424s&@srcdir@&$ac_srcdir&;t t
26425s&@abs_srcdir@&$ac_abs_srcdir&;t t
26426s&@top_srcdir@&$ac_top_srcdir&;t t
26427s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26428s&@builddir@&$ac_builddir&;t t
26429s&@abs_builddir@&$ac_abs_builddir&;t t
26430s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26431s&@INSTALL@&$ac_INSTALL&;t t
26432$ac_datarootdir_hack
26433" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
Guido van Rossum76be6ed1995-01-02 18:33:54 +000026434
Martin v. Löwiseba40652007-08-30 20:10:57 +000026435test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26436 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26437 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26438 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26439which seems to be undefined. Please make sure it is defined." >&5
26440echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26441which seems to be undefined. Please make sure it is defined." >&2;}
Guido van Rossum76be6ed1995-01-02 18:33:54 +000026442
Martin v. Löwiseba40652007-08-30 20:10:57 +000026443 rm -f "$tmp/stdin"
Martin v. Löwis11437992002-04-12 09:54:03 +000026444 case $ac_file in
Martin v. Löwiseba40652007-08-30 20:10:57 +000026445 -) cat "$tmp/out"; rm -f "$tmp/out";;
26446 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
Guido van Rossum76be6ed1995-01-02 18:33:54 +000026447 esac
Martin v. Löwiseba40652007-08-30 20:10:57 +000026448 ;;
26449 :H)
26450 #
26451 # CONFIG_HEADER
26452 #
Martin v. Löwis11437992002-04-12 09:54:03 +000026453_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000026454
Martin v. Löwiseba40652007-08-30 20:10:57 +000026455# Transform confdefs.h into a sed script `conftest.defines', that
26456# substitutes the proper values into config.h.in to produce config.h.
26457rm -f conftest.defines conftest.tail
26458# First, append a space to every undef/define line, to ease matching.
26459echo 's/$/ /' >conftest.defines
26460# Then, protect against being on the right side of a sed subst, or in
26461# an unquoted here document, in config.status. If some macros were
26462# called several times there might be several #defines for the same
26463# symbol, which is useless. But do not sort them, since the last
26464# AC_DEFINE must be honored.
26465ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26466# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
26467# NAME is the cpp macro being defined, VALUE is the value it is being given.
26468# PARAMS is the parameter list in the macro definition--in most cases, it's
26469# just an empty string.
26470ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
26471ac_dB='\\)[ (].*,\\1define\\2'
26472ac_dC=' '
26473ac_dD=' ,'
Guido van Rossum76be6ed1995-01-02 18:33:54 +000026474
Martin v. Löwiseba40652007-08-30 20:10:57 +000026475uniq confdefs.h |
26476 sed -n '
26477 t rset
26478 :rset
26479 s/^[ ]*#[ ]*define[ ][ ]*//
26480 t ok
26481 d
26482 :ok
26483 s/[\\&,]/\\&/g
26484 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
26485 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
26486 ' >>conftest.defines
26487
26488# Remove the space that was appended to ease matching.
26489# Then replace #undef with comments. This is necessary, for
Guido van Rossum76be6ed1995-01-02 18:33:54 +000026490# example, in the case of _POSIX_SOURCE, which is predefined and required
26491# on some systems where configure will not decide to define it.
Martin v. Löwiseba40652007-08-30 20:10:57 +000026492# (The regexp can be short, since the line contains either #define or #undef.)
26493echo 's/ $//
26494s,^[ #]*u.*,/* & */,' >>conftest.defines
Skip Montanaro89e975f2007-08-22 19:05:21 +000026495
Martin v. Löwiseba40652007-08-30 20:10:57 +000026496# Break up conftest.defines:
26497ac_max_sed_lines=50
26498
26499# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
26500# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
26501# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
26502# et cetera.
26503ac_in='$ac_file_inputs'
26504ac_out='"$tmp/out1"'
26505ac_nxt='"$tmp/out2"'
26506
26507while :
Skip Montanaro89e975f2007-08-22 19:05:21 +000026508do
Martin v. Löwiseba40652007-08-30 20:10:57 +000026509 # Write a here document:
26510 cat >>$CONFIG_STATUS <<_ACEOF
26511 # First, check the format of the line:
26512 cat >"\$tmp/defines.sed" <<\\CEOF
26513/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
26514/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
26515b
26516:def
26517_ACEOF
26518 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
Jack Jansendd19cf82001-12-06 22:36:17 +000026519 echo 'CEOF
Martin v. Löwiseba40652007-08-30 20:10:57 +000026520 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
26521 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
26522 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
26523 grep . conftest.tail >/dev/null || break
Martin v. Löwis11437992002-04-12 09:54:03 +000026524 rm -f conftest.defines
26525 mv conftest.tail conftest.defines
Jack Jansendd19cf82001-12-06 22:36:17 +000026526done
Martin v. Löwiseba40652007-08-30 20:10:57 +000026527rm -f conftest.defines conftest.tail
Jack Jansendd19cf82001-12-06 22:36:17 +000026528
Martin v. Löwiseba40652007-08-30 20:10:57 +000026529echo "ac_result=$ac_in" >>$CONFIG_STATUS
Martin v. Löwis11437992002-04-12 09:54:03 +000026530cat >>$CONFIG_STATUS <<\_ACEOF
Martin v. Löwis11437992002-04-12 09:54:03 +000026531 if test x"$ac_file" != x-; then
Martin v. Löwiseba40652007-08-30 20:10:57 +000026532 echo "/* $configure_input */" >"$tmp/config.h"
26533 cat "$ac_result" >>"$tmp/config.h"
26534 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
Martin v. Löwis11437992002-04-12 09:54:03 +000026535 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26536echo "$as_me: $ac_file is unchanged" >&6;}
26537 else
Martin v. Löwis11437992002-04-12 09:54:03 +000026538 rm -f $ac_file
Martin v. Löwiseba40652007-08-30 20:10:57 +000026539 mv "$tmp/config.h" $ac_file
Martin v. Löwis11437992002-04-12 09:54:03 +000026540 fi
26541 else
Martin v. Löwiseba40652007-08-30 20:10:57 +000026542 echo "/* $configure_input */"
26543 cat "$ac_result"
Martin v. Löwis11437992002-04-12 09:54:03 +000026544 fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000026545 rm -f "$tmp/out12"
26546 ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +000026547
Martin v. Löwiseba40652007-08-30 20:10:57 +000026548
26549 esac
26550
26551done # for ac_tag
26552
Guido van Rossum627b2d71993-12-24 10:39:16 +000026553
Martin v. Löwis11437992002-04-12 09:54:03 +000026554{ (exit 0); exit 0; }
26555_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000026556chmod +x $CONFIG_STATUS
Martin v. Löwis11437992002-04-12 09:54:03 +000026557ac_clean_files=$ac_clean_files_save
26558
26559
26560# configure is writing to config.log, and then calls config.status.
26561# config.status does its own redirection, appending to config.log.
26562# Unfortunately, on DOS this fails, as config.log is still kept open
26563# by configure, so config.status won't be able to write to it; its
26564# output is simply discarded. So we exec the FD to /dev/null,
26565# effectively closing config.log, so it can be properly (re)opened and
26566# appended to by config.status. When coming back to configure, we
26567# need to make the FD available again.
26568if test "$no_create" != yes; then
26569 ac_cs_success=:
Skip Montanaro6dead952003-09-25 14:50:04 +000026570 ac_config_status_args=
26571 test "$silent" = yes &&
26572 ac_config_status_args="$ac_config_status_args --quiet"
Martin v. Löwis11437992002-04-12 09:54:03 +000026573 exec 5>/dev/null
Skip Montanaro6dead952003-09-25 14:50:04 +000026574 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
Martin v. Löwis11437992002-04-12 09:54:03 +000026575 exec 5>>config.log
26576 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26577 # would make configure fail if this is the last instruction.
26578 $ac_cs_success || { (exit 1); exit 1; }
26579fi
Guido van Rossum627b2d71993-12-24 10:39:16 +000026580
Neil Schemenauer3ecf0aa2001-01-26 16:15:20 +000026581
Martin v. Löwisf7afe952006-04-14 15:16:15 +000026582echo "creating Modules/Setup"
Neil Schemenauer3ecf0aa2001-01-26 16:15:20 +000026583if test ! -f Modules/Setup
26584then
26585 cp $srcdir/Modules/Setup.dist Modules/Setup
26586fi
26587
Martin v. Löwisf7afe952006-04-14 15:16:15 +000026588echo "creating Modules/Setup.local"
Neil Schemenauer3ecf0aa2001-01-26 16:15:20 +000026589if test ! -f Modules/Setup.local
26590then
26591 echo "# Edit this file for local setup changes" >Modules/Setup.local
26592fi
26593
26594echo "creating Makefile"
26595$SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
26596 -s Modules Modules/Setup.config \
Neil Schemenauerf8b71c52001-04-21 17:41:16 +000026597 Modules/Setup.local Modules/Setup
Skip Montanaro89e975f2007-08-22 19:05:21 +000026598
26599case $ac_sys_system in
26600BeOS)
26601 { echo "$as_me:$LINENO: WARNING:
26602
26603 Support for BeOS is deprecated as of Python 2.6.
26604 See PEP 11 for the gory details.
26605 " >&5
26606echo "$as_me: WARNING:
26607
26608 Support for BeOS is deprecated as of Python 2.6.
26609 See PEP 11 for the gory details.
26610 " >&2;}
26611 ;;
26612*) ;;
26613esac
26614
Neil Schemenauerc761fc82001-02-19 04:50:49 +000026615mv config.c Modules